diff --git a/apps/docs/src/components/checkbox.stories.tsx b/apps/docs/src/components/checkbox.stories.tsx new file mode 100644 index 0000000..c9a4f65 --- /dev/null +++ b/apps/docs/src/components/checkbox.stories.tsx @@ -0,0 +1,57 @@ +import { Checkbox, Label } from "@ai-ui/ui"; +import type { Meta, StoryObj } from "@storybook/react"; + +const meta = { + title: "Components/Checkbox", + component: Checkbox, + args: { + defaultChecked: true + }, + argTypes: { + className: { + control: false + }, + defaultChecked: { + control: "boolean" + }, + disabled: { + control: "boolean" + }, + invalid: { + control: "boolean" + } + }, + parameters: { + layout: "centered" + }, + tags: ["autodocs"] +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Playground: Story = {}; + +export const States: Story = { + render: () => ( +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ ) +}; diff --git a/apps/docs/src/components/dialog.stories.tsx b/apps/docs/src/components/dialog.stories.tsx new file mode 100644 index 0000000..d0947d9 --- /dev/null +++ b/apps/docs/src/components/dialog.stories.tsx @@ -0,0 +1,46 @@ +import { + Button, + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, + DialogTrigger +} from "@ai-ui/ui"; +import type { Meta, StoryObj } from "@storybook/react"; + +const meta = { + title: "Components/Dialog", + component: Dialog, + parameters: { + layout: "centered" + }, + tags: ["autodocs"] +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Playground: Story = { + render: () => ( + + + + + + + Launch this release? + + This will notify the routing team and publish the release note to the activity feed. + + + + + + + + + ) +}; diff --git a/apps/docs/src/components/dropdown-menu.stories.tsx b/apps/docs/src/components/dropdown-menu.stories.tsx new file mode 100644 index 0000000..6d59028 --- /dev/null +++ b/apps/docs/src/components/dropdown-menu.stories.tsx @@ -0,0 +1,66 @@ +import { + Button, + DropdownMenu, + DropdownMenuCheckboxItem, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuLabel, + DropdownMenuRadioGroup, + DropdownMenuRadioItem, + DropdownMenuSeparator, + DropdownMenuShortcut, + DropdownMenuSub, + DropdownMenuSubContent, + DropdownMenuSubTrigger, + DropdownMenuTrigger +} from "@ai-ui/ui"; +import type { Meta, StoryObj } from "@storybook/react"; + +const meta = { + title: "Components/DropdownMenu", + component: DropdownMenu, + parameters: { + layout: "centered" + }, + tags: ["autodocs"] +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Playground: Story = { + render: () => ( + + + + + + Launch actions + + Review summary + R + + + Share preview + S + + + Notify stakeholders + + + Staged rollout + Global rollout + + + + More actions + + Duplicate release + Archive release + + + + + ) +}; diff --git a/apps/docs/src/components/field.stories.tsx b/apps/docs/src/components/field.stories.tsx new file mode 100644 index 0000000..4474128 --- /dev/null +++ b/apps/docs/src/components/field.stories.tsx @@ -0,0 +1,50 @@ +import { Field, FieldControl, FieldDescription, FieldError, Input, Label, Textarea } from "@ai-ui/ui"; +import type { Meta, StoryObj } from "@storybook/react"; + +function FieldExamples() { + return ( +
+ + + + + + This appears in your internal release log and changelog. + + + + + + + + + Use lowercase letters, numbers, and hyphens only. + Slug cannot contain spaces or punctuation. + + + + + + +