-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): link, actionable, dismissible inline banner 스토리를 추가해요
- Loading branch information
Showing
7 changed files
with
160 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import { ActionableInlineBanner } from "seed-design/ui/actionable-inline-banner"; | ||
|
||
import { inlineBannerVariantMap } from "@seed-design/recipe/inlineBanner"; | ||
import { VariantTable } from "./components/variant-table"; | ||
import { IconBellLine } from "@daangn/react-monochrome-icon"; | ||
import { SeedThemeDecorator } from "./components/decorator"; | ||
|
||
const meta = { | ||
component: ActionableInlineBanner, | ||
decorators: [SeedThemeDecorator], | ||
} satisfies Meta<typeof ActionableInlineBanner>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
const CommonStoryTemplate: Story = { | ||
args: { | ||
children: | ||
"Ex do aliqua est non ea adipisicing nostrud. Exercitation ea mollit sunt magna quis quis exercitation.", | ||
icon: <IconBellLine />, | ||
onClick: () => {}, | ||
}, | ||
render: (args) => ( | ||
<VariantTable Component={meta.component} variantMap={inlineBannerVariantMap} {...args} /> | ||
), | ||
}; | ||
|
||
export const LightTheme: Story = CommonStoryTemplate; | ||
|
||
export const DarkTheme: Story = CommonStoryTemplate; | ||
|
||
export const FontScalingExtraSmall: Story = CommonStoryTemplate; | ||
|
||
export const FontScalingExtraExtraExtraLarge: Story = CommonStoryTemplate; |
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,37 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import { DismissibleInlineBanner } from "seed-design/ui/dismissible-inline-banner"; | ||
|
||
import { inlineBannerVariantMap } from "@seed-design/recipe/inlineBanner"; | ||
import { VariantTable } from "./components/variant-table"; | ||
import { IconBellLine } from "@daangn/react-monochrome-icon"; | ||
import { SeedThemeDecorator } from "./components/decorator"; | ||
|
||
const meta = { | ||
component: DismissibleInlineBanner, | ||
decorators: [SeedThemeDecorator], | ||
} satisfies Meta<typeof DismissibleInlineBanner>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
const CommonStoryTemplate: Story = { | ||
args: { | ||
children: | ||
"Ex do aliqua est non ea adipisicing nostrud. Exercitation ea mollit sunt magna quis quis exercitation.", | ||
icon: <IconBellLine />, | ||
dismissAriaLabel: "닫기", | ||
}, | ||
render: (args) => ( | ||
<VariantTable Component={meta.component} variantMap={inlineBannerVariantMap} {...args} /> | ||
), | ||
}; | ||
|
||
export const LightTheme: Story = CommonStoryTemplate; | ||
|
||
export const DarkTheme: Story = CommonStoryTemplate; | ||
|
||
export const FontScalingExtraSmall: Story = CommonStoryTemplate; | ||
|
||
export const FontScalingExtraExtraExtraLarge: Story = CommonStoryTemplate; |
Oops, something went wrong.