-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds spinner and buttonGroup example stories
- Loading branch information
Showing
30 changed files
with
338 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
core/components/atoms/button/__stories__/Download.story.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
core/components/atoms/button/__stories__/LargeIconRightPrimary.story.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 12 additions & 11 deletions
23
core/components/atoms/button/__stories__/LoadingPrimary.story.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
core/components/atoms/message/__stories__/Success.story.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as React from 'react'; | ||
import Message from '../index'; | ||
|
||
// CSF format story | ||
export const successWithoutTitle = () => ( | ||
<Message | ||
appearance={'success'} | ||
> | ||
{'Password updated. Login with your updated credentials.'} | ||
</Message> | ||
); | ||
|
||
export default { | ||
title: 'Atoms|Message', | ||
component: Message | ||
}; |
17 changes: 17 additions & 0 deletions
17
core/components/atoms/message/__stories__/SuccessWithTitle.story.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from 'react'; | ||
import Message from '../index'; | ||
|
||
// CSF format story | ||
export const successWithTitle = () => ( | ||
<Message | ||
appearance={'success'} | ||
title={'Outreach successfully sent'} | ||
> | ||
{'2,340 messages sent.'} | ||
</Message> | ||
); | ||
|
||
export default { | ||
title: 'Atoms|Message', | ||
component: Message | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
core/components/atoms/progressBar/__stories__/ZeroPercent.story.tsx
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
core/components/atoms/progressRing/__stories__/SeventyFivePercent.story.tsx
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
core/components/atoms/spinner/__stories__/InlineLoader.story.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from 'react'; | ||
import Spinner from '../Spinner'; | ||
import Text from '@/components/atoms/text'; | ||
|
||
// CSF format story | ||
export const inlineLoader = () => ( | ||
<div className="d-flex"> | ||
<Spinner | ||
appearance="primary" | ||
size="small" | ||
className="mr-3" | ||
/> | ||
<Text>uploading...</Text> | ||
</div> | ||
); | ||
|
||
export default { | ||
title: 'Atoms|Loaders/Spinner', | ||
component: Spinner | ||
}; |
15 changes: 15 additions & 0 deletions
15
core/components/atoms/spinner/__stories__/ModalLoader.story.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as React from 'react'; | ||
import Spinner from '../Spinner'; | ||
|
||
// CSF format story | ||
export const modalLoader = () => ( | ||
<Spinner | ||
appearance="primary" | ||
size="medium" | ||
/> | ||
); | ||
|
||
export default { | ||
title: 'Atoms|Loaders/Spinner', | ||
component: Spinner | ||
}; |
14 changes: 8 additions & 6 deletions
14
core/components/atoms/statusHint/__stories__/Completed.story.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
core/components/atoms/statusHint/__stories__/Inactive.story.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.