-
-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
216 additions
and
155 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
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import Accordion from '../Accordion'; | ||
|
||
type AccordionStoryType = StoryObj<typeof Accordion>; | ||
|
||
const meta: Meta<typeof Accordion> = { | ||
title: 'Accordion', | ||
component: Accordion, | ||
args: { | ||
accessibilityId: '1', | ||
content: { | ||
headingChildren: <h5>Can be JSX</h5>, | ||
bodyChildren: <p>Can also be JSX</p>, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Default: AccordionStoryType = { | ||
render: args => <Accordion {...args} />, | ||
}; |
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 was deleted.
Oops, something went wrong.
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,39 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import Alert from '../Alert'; | ||
|
||
type AlertStoryType = StoryObj<typeof Alert>; | ||
|
||
const meta: Meta<typeof Alert> = { | ||
title: 'Alert', | ||
component: Alert, | ||
}; | ||
|
||
export default meta; | ||
|
||
const AlertStoryTemplate: AlertStoryType = { | ||
render: args => <Alert {...args} />, | ||
}; | ||
|
||
export const ErrorAlert: AlertStoryType = { | ||
...AlertStoryTemplate, | ||
args: { | ||
children: 'Error Alert JSX or Text', | ||
type: 'error', | ||
}, | ||
}; | ||
|
||
export const SuccessAlert: AlertStoryType = { | ||
...AlertStoryTemplate, | ||
args: { | ||
children: 'Success Alert JSX or Text', | ||
type: 'success', | ||
}, | ||
}; | ||
|
||
export const WarningAlert: AlertStoryType = { | ||
...AlertStoryTemplate, | ||
args: { | ||
children: 'Warning Alert JSX or Text', | ||
type: 'warning', | ||
}, | ||
}; |
13 changes: 9 additions & 4 deletions
13
components/Alert/__tests__/Alert.test.js → components/Alert/__tests__/Alert.test.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
File renamed without changes.
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: 11 additions & 12 deletions
23
...onents/Buttons/CloseButton/CloseButton.js → ...nents/Buttons/CloseButton/CloseButton.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
11 changes: 0 additions & 11 deletions
11
components/Buttons/CloseButton/__stories__/CloseButton.stories.js
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
components/Buttons/CloseButton/__stories__/CloseButton.stories.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,18 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import CloseButton from '../CloseButton'; | ||
|
||
type CloseButtonStoryType = StoryObj<typeof CloseButton>; | ||
|
||
const meta: Meta<typeof CloseButton> = { | ||
title: 'Buttons/Closebutton', | ||
component: CloseButton, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Default: CloseButtonStoryType = { | ||
render: args => <CloseButton {...args} />, | ||
args: { | ||
theme: 'primary', | ||
}, | ||
}; |
Oops, something went wrong.