-
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.
- Loading branch information
Showing
46 changed files
with
996 additions
and
628 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,6 @@ | |
} | ||
body { | ||
@apply bg-background text-foreground; | ||
@apply font-sans; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import React from "react"; | ||
import { Badge } from "src/atoms/badge"; | ||
|
||
const meta: Meta<typeof Badge> = { | ||
component: () => { | ||
return ( | ||
<div className="flex flex-col gap-2 w-32"> | ||
<Badge variant="default">Default</Badge> | ||
<Badge variant="destructive">Destructive</Badge> | ||
<Badge variant="outline">Outlined</Badge> | ||
<Badge variant="secondary">Secondary</Badge> | ||
</div> | ||
); | ||
}, | ||
export function BadgeDemo() { | ||
return ( | ||
<div className="flex flex-col gap-2 w-32"> | ||
<Badge variant="default">Default</Badge> | ||
<Badge variant="destructive">Destructive</Badge> | ||
<Badge variant="outline">Outlined</Badge> | ||
<Badge variant="secondary">Secondary</Badge> | ||
</div> | ||
); | ||
} | ||
|
||
const meta: Meta<typeof BadgeDemo> = { | ||
component: BadgeDemo, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof Badge>; | ||
|
||
export const Default: Story = { | ||
export const Default: StoryObj<typeof BadgeDemo> = { | ||
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 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 |
---|---|---|
@@ -1,35 +1,33 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import React from "react"; | ||
import { Button } from "src/atoms/button"; | ||
import type { Meta } from "@storybook/react"; | ||
import { Checkbox } from "src/atoms/checkbox"; | ||
|
||
const meta: Meta<typeof Button> = { | ||
component: () => { | ||
return ( | ||
<div className="items-top flex space-x-2"> | ||
<Checkbox id="terms1" /> | ||
<div className="grid gap-1.5 leading-none"> | ||
<label | ||
htmlFor="terms1" | ||
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" | ||
> | ||
Accept terms and conditions | ||
</label> | ||
<p className="text-sm text-muted-foreground"> | ||
You agree to our Terms of Service and Privacy Policy. | ||
</p> | ||
</div> | ||
const CheckboxDemo = () => { | ||
return ( | ||
<div className="items-top flex space-x-2"> | ||
<Checkbox id="terms1" /> | ||
<div className="grid gap-1.5 leading-none"> | ||
<label | ||
htmlFor="terms1" | ||
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" | ||
> | ||
Accept terms and conditions | ||
</label> | ||
<p className="text-sm text-muted-foreground"> | ||
You agree to our Terms of Service and Privacy Policy. | ||
</p> | ||
</div> | ||
); | ||
}, | ||
</div> | ||
); | ||
}; | ||
|
||
import type { StoryObj } from "@storybook/react"; | ||
|
||
const meta: Meta<typeof CheckboxDemo> = { | ||
component: CheckboxDemo, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof Button>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
variant: "default", | ||
children: "default", | ||
}, | ||
export const Default: StoryObj<typeof CheckboxDemo> = { | ||
args: {}, | ||
}; |
Oops, something went wrong.