-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: step1 of atom components stories (#113)
- Loading branch information
Showing
15 changed files
with
137 additions
and
36 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import OutlineBadge from "../../../components/atoms/badges/OutlineBadge"; | ||
|
||
const meta = { | ||
title: "Atoms/Badge/OutlineBadge", | ||
component: OutlineBadge, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof OutlineBadge>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Primary: Story = { | ||
args: { | ||
colorScheme: "mintTheme", | ||
text: "OutlineBadge", | ||
}, | ||
}; | ||
|
||
export const PrimarySizeSmall: Story = { | ||
args: { | ||
...Primary.args, | ||
size: "sm", | ||
}, | ||
}; |
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 { faLock } from "@fortawesome/pro-light-svg-icons"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import IconButtonColBlock from "../../../components/atoms/blocks/IconButtonColBlock"; | ||
|
||
const meta = { | ||
title: "Atoms/Blocks/IconButtonColBlock", | ||
component: IconButtonColBlock, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof IconButtonColBlock>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Primary: Story = { | ||
args: { | ||
props: { | ||
icon: <FontAwesomeIcon icon={faLock} color="var(--gray-3)" />, | ||
title: "I'm title prop", | ||
buttonProp: { | ||
text: "I'm Button's text prop", | ||
func: () => {}, | ||
}, | ||
disabled: false, | ||
}, | ||
}, | ||
}; | ||
|
||
export const PrimaryDisabled: Story = { | ||
args: { | ||
...Primary.args, | ||
props: { | ||
...Primary.args.props, | ||
disabled: true, | ||
}, | ||
}, | ||
}; |
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
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 type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import { MainLoading } from "../../../components/atoms/loaders/MainLoading"; | ||
|
||
const meta = { | ||
title: "Atoms/Loaders/MainLoading", | ||
component: MainLoading, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof MainLoading>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Primary: Story = { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import ProfileIcon from "../../../components/atoms/Profile/ProfileIcon"; | ||
|
||
const meta = { | ||
title: "Atoms/Profile/ProfileIcon", | ||
component: ProfileIcon, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof ProfileIcon>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Primary: Story = { | ||
args: { | ||
user: "ABOUT", | ||
size: "md", | ||
}, | ||
}; |
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,19 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import Skeleton from "../../../components/atoms/skeleton/Skeleton"; | ||
|
||
const meta = { | ||
title: "Atoms/skeleton/Skeleton", | ||
component: Skeleton, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof Skeleton>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Primary: Story = { | ||
args: { | ||
children: "I'm Skeleton's children", | ||
}, | ||
}; |