@kinetixui/ui 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +35 -1
- package/dist/index.js +202 -99
- package/package.json +4 -4
- package/src/components/app-bar.tsx +139 -0
- package/src/components/chart.tsx +15 -3
- package/src/index.ts +9 -0
- package/src/stories/Accordion.stories.tsx +2 -2
- package/src/stories/Alert.stories.tsx +2 -2
- package/src/stories/AlertDialog.stories.tsx +2 -2
- package/src/stories/AppBar.stories.tsx +46 -0
- package/src/stories/AspectRatio.stories.tsx +2 -2
- package/src/stories/AudioPlayer.stories.tsx +2 -2
- package/src/stories/Avatar.stories.tsx +2 -2
- package/src/stories/AvatarGroup.stories.tsx +2 -2
- package/src/stories/Badge.stories.tsx +2 -2
- package/src/stories/Breadcrumb.stories.tsx +2 -2
- package/src/stories/Button.stories.tsx +1 -1
- package/src/stories/Calendar.stories.tsx +2 -2
- package/src/stories/Card.stories.tsx +2 -2
- package/src/stories/Carousel.stories.tsx +2 -2
- package/src/stories/Chart.stories.tsx +2 -2
- package/src/stories/Checkbox.stories.tsx +2 -2
- package/src/stories/CircularProgress.stories.tsx +2 -2
- package/src/stories/CodeBlock.stories.tsx +2 -2
- package/src/stories/Collapsible.stories.tsx +2 -2
- package/src/stories/Combobox.stories.tsx +2 -2
- package/src/stories/Command.stories.tsx +2 -2
- package/src/stories/ContextMenu.stories.tsx +2 -2
- package/src/stories/DataTable.stories.tsx +2 -2
- package/src/stories/DatePicker.stories.tsx +2 -2
- package/src/stories/Dialog.stories.tsx +2 -2
- package/src/stories/Drawer.stories.tsx +2 -2
- package/src/stories/DropdownMenu.stories.tsx +2 -2
- package/src/stories/Fab.stories.tsx +2 -2
- package/src/stories/Field.stories.tsx +2 -2
- package/src/stories/FileUpload.stories.tsx +2 -2
- package/src/stories/Footer.stories.tsx +2 -2
- package/src/stories/Form.stories.tsx +2 -2
- package/src/stories/HoverCard.stories.tsx +2 -2
- package/src/stories/Image.stories.tsx +2 -2
- package/src/stories/Inform.stories.tsx +2 -2
- package/src/stories/Input.stories.tsx +1 -1
- package/src/stories/InputGroup.stories.tsx +2 -2
- package/src/stories/InputOTP.stories.tsx +2 -2
- package/src/stories/Label.stories.tsx +2 -2
- package/src/stories/List.stories.tsx +2 -2
- package/src/stories/Menubar.stories.tsx +2 -2
- package/src/stories/Metric.stories.tsx +2 -2
- package/src/stories/Modal.stories.tsx +2 -2
- package/src/stories/NavigationBar.stories.tsx +2 -2
- package/src/stories/NavigationMenu.stories.tsx +2 -2
- package/src/stories/NumberInput.stories.tsx +2 -2
- package/src/stories/Pagination.stories.tsx +2 -2
- package/src/stories/PasswordInput.stories.tsx +2 -2
- package/src/stories/Popover.stories.tsx +2 -2
- package/src/stories/Progress.stories.tsx +2 -2
- package/src/stories/Quote.stories.tsx +2 -2
- package/src/stories/RadioGroup.stories.tsx +2 -2
- package/src/stories/Rating.stories.tsx +2 -2
- package/src/stories/Resizable.stories.tsx +2 -2
- package/src/stories/ScrollArea.stories.tsx +2 -2
- package/src/stories/Select.stories.tsx +2 -2
- package/src/stories/Separator.stories.tsx +2 -2
- package/src/stories/Sheet.stories.tsx +2 -2
- package/src/stories/Sidebar.stories.tsx +2 -2
- package/src/stories/Skeleton.stories.tsx +2 -2
- package/src/stories/Slider.stories.tsx +2 -2
- package/src/stories/Sonner.stories.tsx +2 -2
- package/src/stories/Spinner.stories.tsx +2 -2
- package/src/stories/Stepper.stories.tsx +2 -2
- package/src/stories/Switch.stories.tsx +2 -2
- package/src/stories/TabBar.stories.tsx +2 -2
- package/src/stories/Table.stories.tsx +2 -2
- package/src/stories/TableOfContents.stories.tsx +2 -2
- package/src/stories/Tabs.stories.tsx +2 -2
- package/src/stories/Tag.stories.tsx +2 -2
- package/src/stories/Textarea.stories.tsx +1 -1
- package/src/stories/Toggle.stories.tsx +2 -2
- package/src/stories/ToggleGroup.stories.tsx +2 -2
- package/src/stories/Tooltip.stories.tsx +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Calendar, Command as Cmd, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "@kinetixui/ui";
|
|
6
6
|
import { Search } from "lucide-react";
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ const meta = {
|
|
|
23
23
|
title: "Controls & Actions/Command",
|
|
24
24
|
parameters: {
|
|
25
25
|
layout: "centered",
|
|
26
|
-
docs: { source: { code:
|
|
26
|
+
docs: { source: { code: "<Command>\\n <CommandInput placeholder=\"Type a command…\" />\\n <CommandList>\\n <CommandEmpty>No results found.</CommandEmpty>\\n <CommandGroup heading=\"Suggestions\">\\n <CommandItem>Calendar</CommandItem>\\n </CommandGroup>\\n </CommandList>\\n</Command>", language: "tsx" } },
|
|
27
27
|
},
|
|
28
28
|
} satisfies Meta;
|
|
29
29
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -22,7 +22,7 @@ const meta = {
|
|
|
22
22
|
title: "Overlays/ContextMenu",
|
|
23
23
|
parameters: {
|
|
24
24
|
layout: "centered",
|
|
25
|
-
docs: { source: { code:
|
|
25
|
+
docs: { source: { code: "<ContextMenu>\\n <ContextMenuTrigger>Right-click here</ContextMenuTrigger>\\n <ContextMenuContent>\\n <ContextMenuItem>Back</ContextMenuItem>\\n </ContextMenuContent>\\n</ContextMenu>", language: "tsx" } },
|
|
26
26
|
},
|
|
27
27
|
} satisfies Meta;
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { DataTable } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => {
|
|
@@ -22,7 +22,7 @@ const meta = {
|
|
|
22
22
|
title: "Data Display/DataTable",
|
|
23
23
|
parameters: {
|
|
24
24
|
layout: "padded",
|
|
25
|
-
docs: { source: { code:
|
|
25
|
+
docs: { source: { code: "const columns: ColumnDef<Invoice>[] = [\\n { accessorKey: \"invoice\", header: \"Invoice\" },\\n { accessorKey: \"amount\", header: \"Amount\" },\\n]\\n<DataTable columns={columns} data={data} />", language: "tsx" } },
|
|
26
26
|
},
|
|
27
27
|
} satisfies Meta;
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { DatePicker } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => {
|
|
@@ -21,7 +21,7 @@ const meta = {
|
|
|
21
21
|
title: "Form Inputs/DatePicker",
|
|
22
22
|
parameters: {
|
|
23
23
|
layout: "centered",
|
|
24
|
-
docs: { source: { code:
|
|
24
|
+
docs: { source: { code: "<DatePicker\\n label=\"Appointment date\"\\n value={date}\\n onChange={setDate}\\n helperText=\"Choose a weekday\"\\n/>", language: "tsx" } },
|
|
25
25
|
},
|
|
26
26
|
} satisfies Meta;
|
|
27
27
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Input, Label } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -29,7 +29,7 @@ const meta = {
|
|
|
29
29
|
title: "Overlays/Dialog",
|
|
30
30
|
parameters: {
|
|
31
31
|
layout: "centered",
|
|
32
|
-
docs: { source: { code:
|
|
32
|
+
docs: { source: { code: "<Dialog>\\n <DialogTrigger asChild><Button variant=\"Outline\">Edit profile</Button></DialogTrigger>\\n <DialogContent>…</DialogContent>\\n</Dialog>", language: "tsx" } },
|
|
33
33
|
},
|
|
34
34
|
} satisfies Meta;
|
|
35
35
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Button, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -30,7 +30,7 @@ const meta = {
|
|
|
30
30
|
title: "Overlays/Drawer",
|
|
31
31
|
parameters: {
|
|
32
32
|
layout: "centered",
|
|
33
|
-
docs: { source: { code:
|
|
33
|
+
docs: { source: { code: "<Drawer>\\n <DrawerTrigger asChild><Button variant=\"Outline\">Open Drawer</Button></DrawerTrigger>\\n <DrawerContent>…</DrawerContent>\\n</Drawer>", language: "tsx" } },
|
|
34
34
|
},
|
|
35
35
|
} satisfies Meta;
|
|
36
36
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Button, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -23,7 +23,7 @@ const meta = {
|
|
|
23
23
|
title: "Overlays/DropdownMenu",
|
|
24
24
|
parameters: {
|
|
25
25
|
layout: "centered",
|
|
26
|
-
docs: { source: { code:
|
|
26
|
+
docs: { source: { code: "<DropdownMenu>\\n <DropdownMenuTrigger asChild><Button variant=\"Outline\">Open</Button></DropdownMenuTrigger>\\n <DropdownMenuContent>…</DropdownMenuContent>\\n</DropdownMenu>", language: "tsx" } },
|
|
27
27
|
},
|
|
28
28
|
} satisfies Meta;
|
|
29
29
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx · controls: scripts/gen-stories.mjs CONTROLS */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Fab } from "@kinetixui/ui";
|
|
6
6
|
import { Plus } from "lucide-react";
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ const meta = {
|
|
|
31
31
|
},
|
|
32
32
|
parameters: {
|
|
33
33
|
layout: "centered",
|
|
34
|
-
docs: { source: { code:
|
|
34
|
+
docs: { source: { code: "<Fab aria-label=\"Add\">\\n <Plus />\\n</Fab>\\n\\n<Fab extended>\\n <Plus />\\n New item\\n</Fab>", language: "tsx" } },
|
|
35
35
|
},
|
|
36
36
|
} satisfies Meta;
|
|
37
37
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Field, FieldControl, FieldDescription, FieldLabel, FieldMessage, Input } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => {
|
|
@@ -26,7 +26,7 @@ const meta = {
|
|
|
26
26
|
title: "Form Inputs/Field",
|
|
27
27
|
parameters: {
|
|
28
28
|
layout: "centered",
|
|
29
|
-
docs: { source: { code:
|
|
29
|
+
docs: { source: { code: "<Field invalid={!!error}>\\n <FieldLabel>Email</FieldLabel>\\n <FieldControl><Input type=\"email\" {...register(\"email\")} /></FieldControl>\\n <FieldDescription>We'll only use it to send receipts.</FieldDescription>\\n {error && <FieldMessage intent=\"error\">{error.message}</FieldMessage>}\\n</Field>", language: "tsx" } },
|
|
30
30
|
},
|
|
31
31
|
} satisfies Meta;
|
|
32
32
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { FileUpload } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => {
|
|
@@ -27,7 +27,7 @@ const meta = {
|
|
|
27
27
|
title: "Form Inputs/FileUpload",
|
|
28
28
|
parameters: {
|
|
29
29
|
layout: "centered",
|
|
30
|
-
docs: { source: { code:
|
|
30
|
+
docs: { source: { code: "<FileUpload\\n multiple\\n files={files}\\n onFilesSelected={(picked) => upload(picked)}\\n onRemove={(id) => removeFile(id)}\\n/>", language: "tsx" } },
|
|
31
31
|
},
|
|
32
32
|
} satisfies Meta;
|
|
33
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Footer, FooterBottom, FooterColumn, FooterLink } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -30,7 +30,7 @@ const meta = {
|
|
|
30
30
|
title: "Data Display/Footer",
|
|
31
31
|
parameters: {
|
|
32
32
|
layout: "padded",
|
|
33
|
-
docs: { source: { code:
|
|
33
|
+
docs: { source: { code: "<Footer>\\n <div className=\"grid grid-cols-2 gap-6\">\\n <FooterColumn title=\"Product\">\\n <FooterLink href=\"/pricing\">Pricing</FooterLink>\\n </FooterColumn>\\n </div>\\n <FooterBottom>© 2026 Acme Inc.</FooterBottom>\\n</Footer>", language: "tsx" } },
|
|
34
34
|
},
|
|
35
35
|
} satisfies Meta;
|
|
36
36
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Button, Input } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -19,7 +19,7 @@ const meta = {
|
|
|
19
19
|
title: "Form Inputs/Form",
|
|
20
20
|
parameters: {
|
|
21
21
|
layout: "centered",
|
|
22
|
-
docs: { source: { code:
|
|
22
|
+
docs: { source: { code: "const form = useForm<z.infer<typeof schema>>({ resolver: zodResolver(schema) })\\n\\n<Form {...form}>\\n <form onSubmit={form.handleSubmit(onSubmit)}>\\n <FormField control={form.control} name=\"username\" render={({ field }) => (\\n <FormItem>\\n <FormLabel>Username</FormLabel>\\n <FormControl><Input {...field} /></FormControl>\\n <FormMessage />\\n </FormItem>\\n )} />\\n <Button type=\"submit\">Submit</Button>\\n </form>\\n</Form>", language: "tsx" } },
|
|
23
23
|
},
|
|
24
24
|
} satisfies Meta;
|
|
25
25
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx · controls: scripts/gen-stories.mjs CONTROLS */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Button, HoverCard, HoverCardContent, HoverCardTrigger } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -23,7 +23,7 @@ const meta = {
|
|
|
23
23
|
},
|
|
24
24
|
parameters: {
|
|
25
25
|
layout: "centered",
|
|
26
|
-
docs: { source: { code:
|
|
26
|
+
docs: { source: { code: "<HoverCard>\\n <HoverCardTrigger>@kinetixui</HoverCardTrigger>\\n <HoverCardContent>…</HoverCardContent>\\n</HoverCard>", language: "tsx" } },
|
|
27
27
|
},
|
|
28
28
|
} satisfies Meta;
|
|
29
29
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx · controls: scripts/gen-stories.mjs CONTROLS */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Image } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -22,7 +22,7 @@ const meta = {
|
|
|
22
22
|
},
|
|
23
23
|
parameters: {
|
|
24
24
|
layout: "centered",
|
|
25
|
-
docs: { source: { code:
|
|
25
|
+
docs: { source: { code: "<Image ratio=\"1:1\" src=\"/photo.jpg\" alt=\"\" />\\n<Image ratio=\"4:3\" src=\"/photo.jpg\" alt=\"\" />\\n<Image ratio=\"16:9\" src=\"/photo.jpg\" alt=\"\" rounded={false} />", language: "tsx" } },
|
|
26
26
|
},
|
|
27
27
|
} satisfies Meta;
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx · controls: scripts/gen-stories.mjs CONTROLS */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Inform } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -26,7 +26,7 @@ const meta = {
|
|
|
26
26
|
},
|
|
27
27
|
parameters: {
|
|
28
28
|
layout: "centered",
|
|
29
|
-
docs: { source: { code:
|
|
29
|
+
docs: { source: { code: "<Inform variant=\"information\" onDismiss={close}>\\n A new software update is available.\\n</Inform>\\n\\n<Inform variant=\"error\" action={{ label: \"Retry\", onClick: retry }}>\\n We couldn't process your payment.\\n</Inform>", language: "tsx" } },
|
|
30
30
|
},
|
|
31
31
|
} satisfies Meta;
|
|
32
32
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText } from "@kinetixui/ui";
|
|
6
6
|
import { Search } from "lucide-react";
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ const meta = {
|
|
|
27
27
|
title: "Form Inputs/InputGroup",
|
|
28
28
|
parameters: {
|
|
29
29
|
layout: "centered",
|
|
30
|
-
docs: { source: { code:
|
|
30
|
+
docs: { source: { code: "<InputGroup>\\n <InputGroupText>https://</InputGroupText>\\n <InputGroupInput placeholder=\"kinetixui.com\" />\\n</InputGroup>\\n\\n<InputGroup>\\n <InputGroupAddon align=\"start\">$</InputGroupAddon>\\n <InputGroupInput placeholder=\"0.00\" />\\n <InputGroupText>USD</InputGroupText>\\n</InputGroup>", language: "tsx" } },
|
|
31
31
|
},
|
|
32
32
|
} satisfies Meta;
|
|
33
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { InputOTP, InputOTPGroup, InputOTPSlot } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -18,7 +18,7 @@ const meta = {
|
|
|
18
18
|
title: "Form Inputs/InputOTP",
|
|
19
19
|
parameters: {
|
|
20
20
|
layout: "centered",
|
|
21
|
-
docs: { source: { code:
|
|
21
|
+
docs: { source: { code: "<InputOTP maxLength={6}>\\n <InputOTPGroup>\\n <InputOTPSlot index={0} />\\n ...\\n <InputOTPSlot index={5} />\\n </InputOTPGroup>\\n</InputOTP>", language: "tsx" } },
|
|
22
22
|
},
|
|
23
23
|
} satisfies Meta;
|
|
24
24
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Checkbox, Label } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -15,7 +15,7 @@ const meta = {
|
|
|
15
15
|
title: "Foundations/Label",
|
|
16
16
|
parameters: {
|
|
17
17
|
layout: "centered",
|
|
18
|
-
docs: { source: { code:
|
|
18
|
+
docs: { source: { code: "<Label htmlFor=\"email\">Your email address</Label>", language: "tsx" } },
|
|
19
19
|
},
|
|
20
20
|
} satisfies Meta;
|
|
21
21
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Badge, List, ListItem, Switch } from "@kinetixui/ui";
|
|
6
6
|
import { Bell, Settings, User } from "lucide-react";
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ const meta = {
|
|
|
17
17
|
title: "Data Display/List",
|
|
18
18
|
parameters: {
|
|
19
19
|
layout: "centered",
|
|
20
|
-
docs: { source: { code:
|
|
20
|
+
docs: { source: { code: "<List>\\n <ListItem\\n leading={<User />}\\n title=\"Profile\"\\n description=\"Name, photo, and personal details\"\\n onSelect={() => router.push(\"/profile\")}\\n />\\n <ListItem leading={<Bell />} title=\"Notifications\" trailing={<Switch />} />\\n</List>", language: "tsx" } },
|
|
21
21
|
},
|
|
22
22
|
} satisfies Meta;
|
|
23
23
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarTrigger } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -29,7 +29,7 @@ const meta = {
|
|
|
29
29
|
title: "Navigation/Menubar",
|
|
30
30
|
parameters: {
|
|
31
31
|
layout: "padded",
|
|
32
|
-
docs: { source: { code:
|
|
32
|
+
docs: { source: { code: "<Menubar>\\n <MenubarMenu>\\n <MenubarTrigger>File</MenubarTrigger>\\n <MenubarContent>\\n <MenubarItem>New Tab</MenubarItem>\\n </MenubarContent>\\n </MenubarMenu>\\n</Menubar>", language: "tsx" } },
|
|
33
33
|
},
|
|
34
34
|
} satisfies Meta;
|
|
35
35
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx · controls: scripts/gen-stories.mjs CONTROLS */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Metric } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -21,7 +21,7 @@ const meta = {
|
|
|
21
21
|
},
|
|
22
22
|
parameters: {
|
|
23
23
|
layout: "centered",
|
|
24
|
-
docs: { source: { code:
|
|
24
|
+
docs: { source: { code: "<Metric label=\"Active users\" value=\"2,420\" trend=\"up\" change=\"12%\" />", language: "tsx" } },
|
|
25
25
|
},
|
|
26
26
|
} satisfies Meta;
|
|
27
27
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Button, Dialog, Modal } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -22,7 +22,7 @@ const meta = {
|
|
|
22
22
|
title: "Overlays/Modal",
|
|
23
23
|
parameters: {
|
|
24
24
|
layout: "centered",
|
|
25
|
-
docs: { source: { code:
|
|
25
|
+
docs: { source: { code: "<Modal\\n type=\"Confirmation\"\\n title=\"Are you sure?\"\\n description=\"This action cannot be undone.\"\\n trigger={<Button variant=\"Outline\">Delete</Button>}\\n onAction={handleDelete}\\n/>", language: "tsx" } },
|
|
26
26
|
},
|
|
27
27
|
} satisfies Meta;
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { NavigationBar } from "@kinetixui/ui";
|
|
6
6
|
import { Search } from "lucide-react";
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ const meta = {
|
|
|
23
23
|
title: "Navigation/NavigationBar",
|
|
24
24
|
parameters: {
|
|
25
25
|
layout: "centered",
|
|
26
|
-
docs: { source: { code:
|
|
26
|
+
docs: { source: { code: "<NavigationBar\\n title=\"Appointments\"\\n infoText=\"3 upcoming\"\\n onBack={() => router.back()}\\n actions={<Button variant=\"Ghost\" size=\"icon\"><Search /></Button>}\\n/>", language: "tsx" } },
|
|
27
27
|
},
|
|
28
28
|
} satisfies Meta;
|
|
29
29
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -25,7 +25,7 @@ const meta = {
|
|
|
25
25
|
title: "Navigation/NavigationMenu",
|
|
26
26
|
parameters: {
|
|
27
27
|
layout: "padded",
|
|
28
|
-
docs: { source: { code:
|
|
28
|
+
docs: { source: { code: "<NavigationMenu>\\n <NavigationMenuList>\\n <NavigationMenuItem>\\n <NavigationMenuTrigger>Getting started</NavigationMenuTrigger>\\n <NavigationMenuContent>…</NavigationMenuContent>\\n </NavigationMenuItem>\\n </NavigationMenuList>\\n</NavigationMenu>", language: "tsx" } },
|
|
29
29
|
},
|
|
30
30
|
} satisfies Meta;
|
|
31
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx · controls: scripts/gen-stories.mjs CONTROLS */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { NumberInput } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => {
|
|
@@ -18,7 +18,7 @@ const meta = {
|
|
|
18
18
|
},
|
|
19
19
|
parameters: {
|
|
20
20
|
layout: "centered",
|
|
21
|
-
docs: { source: { code:
|
|
21
|
+
docs: { source: { code: "<NumberInput value={qty} onChange={setQty} min={0} max={10} />", language: "tsx" } },
|
|
22
22
|
},
|
|
23
23
|
} satisfies Meta;
|
|
24
24
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -21,7 +21,7 @@ const meta = {
|
|
|
21
21
|
title: "Controls & Actions/Pagination",
|
|
22
22
|
parameters: {
|
|
23
23
|
layout: "centered",
|
|
24
|
-
docs: { source: { code:
|
|
24
|
+
docs: { source: { code: "<Pagination>\\n <PaginationContent>\\n <PaginationItem><PaginationPrevious href=\"#\" /></PaginationItem>\\n <PaginationItem><PaginationLink href=\"#\" isActive>2</PaginationLink></PaginationItem>\\n <PaginationItem><PaginationNext href=\"#\" /></PaginationItem>\\n </PaginationContent>\\n</Pagination>", language: "tsx" } },
|
|
25
25
|
},
|
|
26
26
|
} satisfies Meta;
|
|
27
27
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { PasswordInput } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -14,7 +14,7 @@ const meta = {
|
|
|
14
14
|
title: "Form Inputs/PasswordInput",
|
|
15
15
|
parameters: {
|
|
16
16
|
layout: "centered",
|
|
17
|
-
docs: { source: { code:
|
|
17
|
+
docs: { source: { code: "<PasswordInput placeholder=\"••••••••\" />", language: "tsx" } },
|
|
18
18
|
},
|
|
19
19
|
} satisfies Meta;
|
|
20
20
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx · controls: scripts/gen-stories.mjs CONTROLS */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Button, Popover, PopoverContent, PopoverTrigger } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -26,7 +26,7 @@ const meta = {
|
|
|
26
26
|
},
|
|
27
27
|
parameters: {
|
|
28
28
|
layout: "centered",
|
|
29
|
-
docs: { source: { code:
|
|
29
|
+
docs: { source: { code: "<Popover>\\n <PopoverTrigger asChild><Button variant=\"Outline\">Open popover</Button></PopoverTrigger>\\n <PopoverContent>…</PopoverContent>\\n</Popover>", language: "tsx" } },
|
|
30
30
|
},
|
|
31
31
|
} satisfies Meta;
|
|
32
32
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx · controls: scripts/gen-stories.mjs CONTROLS */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Progress } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => {
|
|
@@ -20,7 +20,7 @@ const meta = {
|
|
|
20
20
|
argTypes: { value: { control: { type: "range", min: 0, max: 100 } } },
|
|
21
21
|
parameters: {
|
|
22
22
|
layout: "centered",
|
|
23
|
-
docs: { source: { code:
|
|
23
|
+
docs: { source: { code: "const [value, setValue] = React.useState(13)\\n// ...\\n<Progress value={value} />", language: "tsx" } },
|
|
24
24
|
},
|
|
25
25
|
} satisfies Meta;
|
|
26
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Avatar, AvatarFallback, Quote } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -23,7 +23,7 @@ const meta = {
|
|
|
23
23
|
title: "Data Display/Quote",
|
|
24
24
|
parameters: {
|
|
25
25
|
layout: "centered",
|
|
26
|
-
docs: { source: { code:
|
|
26
|
+
docs: { source: { code: "<Quote author=\"Amira K.\" authorTitle=\"Product Designer\" avatar={<Avatar>...</Avatar>}>\\n This is exactly the token workflow our team needed.\\n</Quote>", language: "tsx" } },
|
|
27
27
|
},
|
|
28
28
|
} satisfies Meta;
|
|
29
29
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* AUTO-GENERATED by scripts/gen-stories.mjs — do not edit.
|
|
2
2
|
Source of truth: apps/web/src/registry/demos.tsx · controls: scripts/gen-stories.mjs CONTROLS */
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
5
5
|
import { Label, RadioGroup, RadioGroupItem } from "@kinetixui/ui";
|
|
6
6
|
|
|
7
7
|
const Demo = () => (
|
|
@@ -25,7 +25,7 @@ const meta = {
|
|
|
25
25
|
},
|
|
26
26
|
parameters: {
|
|
27
27
|
layout: "centered",
|
|
28
|
-
docs: { source: { code:
|
|
28
|
+
docs: { source: { code: "<RadioGroup defaultValue=\"comfortable\">\\n <div className=\"flex items-center gap-2\">\\n <RadioGroupItem value=\"default\" id=\"r1\" />\\n <Label htmlFor=\"r1\">Default</Label>\\n </div>\\n</RadioGroup>", language: "tsx" } },
|
|
29
29
|
},
|
|
30
30
|
} satisfies Meta;
|
|
31
31
|
|