@kinetixui/ui 0.4.3 → 0.5.1

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.
Files changed (76) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +4 -4
  3. package/src/components/chart.tsx +15 -3
  4. package/src/stories/Accordion.stories.tsx +2 -2
  5. package/src/stories/Alert.stories.tsx +2 -2
  6. package/src/stories/AlertDialog.stories.tsx +2 -2
  7. package/src/stories/AspectRatio.stories.tsx +2 -2
  8. package/src/stories/AudioPlayer.stories.tsx +2 -2
  9. package/src/stories/Avatar.stories.tsx +2 -2
  10. package/src/stories/AvatarGroup.stories.tsx +2 -2
  11. package/src/stories/Badge.stories.tsx +2 -2
  12. package/src/stories/Breadcrumb.stories.tsx +2 -2
  13. package/src/stories/Button.stories.tsx +1 -1
  14. package/src/stories/Calendar.stories.tsx +2 -2
  15. package/src/stories/Card.stories.tsx +2 -2
  16. package/src/stories/Carousel.stories.tsx +2 -2
  17. package/src/stories/Chart.stories.tsx +2 -2
  18. package/src/stories/Checkbox.stories.tsx +2 -2
  19. package/src/stories/CircularProgress.stories.tsx +2 -2
  20. package/src/stories/CodeBlock.stories.tsx +2 -2
  21. package/src/stories/Collapsible.stories.tsx +2 -2
  22. package/src/stories/Combobox.stories.tsx +2 -2
  23. package/src/stories/Command.stories.tsx +2 -2
  24. package/src/stories/ContextMenu.stories.tsx +2 -2
  25. package/src/stories/DataTable.stories.tsx +2 -2
  26. package/src/stories/DatePicker.stories.tsx +2 -2
  27. package/src/stories/Dialog.stories.tsx +2 -2
  28. package/src/stories/Drawer.stories.tsx +2 -2
  29. package/src/stories/DropdownMenu.stories.tsx +2 -2
  30. package/src/stories/Fab.stories.tsx +2 -2
  31. package/src/stories/Field.stories.tsx +2 -2
  32. package/src/stories/FileUpload.stories.tsx +2 -2
  33. package/src/stories/Footer.stories.tsx +2 -2
  34. package/src/stories/Form.stories.tsx +2 -2
  35. package/src/stories/HoverCard.stories.tsx +2 -2
  36. package/src/stories/Image.stories.tsx +2 -2
  37. package/src/stories/Inform.stories.tsx +2 -2
  38. package/src/stories/Input.stories.tsx +1 -1
  39. package/src/stories/InputGroup.stories.tsx +2 -2
  40. package/src/stories/InputOTP.stories.tsx +2 -2
  41. package/src/stories/Label.stories.tsx +2 -2
  42. package/src/stories/List.stories.tsx +2 -2
  43. package/src/stories/Menubar.stories.tsx +2 -2
  44. package/src/stories/Metric.stories.tsx +2 -2
  45. package/src/stories/Modal.stories.tsx +2 -2
  46. package/src/stories/NavigationBar.stories.tsx +2 -2
  47. package/src/stories/NavigationMenu.stories.tsx +2 -2
  48. package/src/stories/NumberInput.stories.tsx +2 -2
  49. package/src/stories/Pagination.stories.tsx +2 -2
  50. package/src/stories/PasswordInput.stories.tsx +2 -2
  51. package/src/stories/Popover.stories.tsx +2 -2
  52. package/src/stories/Progress.stories.tsx +2 -2
  53. package/src/stories/Quote.stories.tsx +2 -2
  54. package/src/stories/RadioGroup.stories.tsx +2 -2
  55. package/src/stories/Rating.stories.tsx +2 -2
  56. package/src/stories/Resizable.stories.tsx +2 -2
  57. package/src/stories/ScrollArea.stories.tsx +2 -2
  58. package/src/stories/Select.stories.tsx +2 -2
  59. package/src/stories/Separator.stories.tsx +2 -2
  60. package/src/stories/Sheet.stories.tsx +2 -2
  61. package/src/stories/Sidebar.stories.tsx +2 -2
  62. package/src/stories/Skeleton.stories.tsx +2 -2
  63. package/src/stories/Slider.stories.tsx +2 -2
  64. package/src/stories/Sonner.stories.tsx +2 -2
  65. package/src/stories/Spinner.stories.tsx +2 -2
  66. package/src/stories/Stepper.stories.tsx +2 -2
  67. package/src/stories/Switch.stories.tsx +2 -2
  68. package/src/stories/TabBar.stories.tsx +2 -2
  69. package/src/stories/Table.stories.tsx +2 -2
  70. package/src/stories/TableOfContents.stories.tsx +2 -2
  71. package/src/stories/Tabs.stories.tsx +2 -2
  72. package/src/stories/Tag.stories.tsx +2 -2
  73. package/src/stories/Textarea.stories.tsx +1 -1
  74. package/src/stories/Toggle.stories.tsx +2 -2
  75. package/src/stories/ToggleGroup.stories.tsx +2 -2
  76. 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 · 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 { Slider } from "@kinetixui/ui";
6
6
 
7
7
  const Demo = () => <Slider defaultValue={[50]} max={100} step={1} className="w-[60%]" />;
@@ -13,7 +13,7 @@ const meta = {
13
13
  argTypes: { disabled: { control: "boolean" } },
14
14
  parameters: {
15
15
  layout: "centered",
16
- docs: { source: { code: `<Slider defaultValue={[50]} max={100} step={1} />`, language: "tsx" } },
16
+ docs: { source: { code: "<Slider defaultValue={[50]} max={100} step={1} />", language: "tsx" } },
17
17
  },
18
18
  } satisfies Meta;
19
19
 
@@ -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, Toaster, toast } from "@kinetixui/ui";
6
6
 
7
7
  const Demo = () => (
@@ -17,7 +17,7 @@ const meta = {
17
17
  title: "Feedback/Sonner",
18
18
  parameters: {
19
19
  layout: "centered",
20
- docs: { source: { code: `// app/layout.tsx\n<Toaster />\n\n// anywhere\ntoast("Event created", { description: "Sunday, December 03" })`, language: "tsx" } },
20
+ docs: { source: { code: "// app/layout.tsx\\n<Toaster />\\n\\n// anywhere\\ntoast(\"Event created\", { description: \"Sunday, December 03\" })", 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 · 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 { Spinner } 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: `<Spinner size="sm" />\n<Spinner />\n<Spinner size="lg" />`, language: "tsx" } },
25
+ docs: { source: { code: "<Spinner size=\"sm\" />\\n<Spinner />\\n<Spinner size=\"lg\" />", 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 { Stepper } from "@kinetixui/ui";
6
6
 
7
7
  const Demo = () => (
@@ -26,7 +26,7 @@ const meta = {
26
26
  title: "Navigation/Stepper",
27
27
  parameters: {
28
28
  layout: "padded",
29
- docs: { source: { code: `<Stepper\n current={1}\n steps={[{ label: "Account" }, { label: "Profile" }, { label: "Review" }]}\n/>`, language: "tsx" } },
29
+ docs: { source: { code: "<Stepper\\n current={1}\\n steps={[{ label: \"Account\" }, { label: \"Profile\" }, { label: \"Review\" }]}\\n/>", 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 { Label, Switch } from "@kinetixui/ui";
6
6
 
7
7
  const Demo = () => (
@@ -18,7 +18,7 @@ const meta = {
18
18
  argTypes: { disabled: { control: "boolean" }, defaultChecked: { control: "boolean" } },
19
19
  parameters: {
20
20
  layout: "centered",
21
- docs: { source: { code: `<div className="flex items-center gap-2">\n <Switch id="airplane" />\n <Label htmlFor="airplane">Airplane mode</Label>\n</div>`, language: "tsx" } },
21
+ docs: { source: { code: "<div className=\"flex items-center gap-2\">\\n <Switch id=\"airplane\" />\\n <Label htmlFor=\"airplane\">Airplane mode</Label>\\n</div>", 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 { TabBar, TabBarItem } from "@kinetixui/ui";
6
6
  import { Home, Mail, Search, User } from "lucide-react";
7
7
 
@@ -26,7 +26,7 @@ const meta = {
26
26
  title: "Navigation/TabBar",
27
27
  parameters: {
28
28
  layout: "centered",
29
- docs: { source: { code: `<TabBar>\n <TabBarItem icon={<Home />} label="Home" active={tab === "home"} onClick={() => setTab("home")} />\n <TabBarItem icon={<Mail />} label="Mail" badge={3} active={tab === "mail"} onClick={() => setTab("mail")} />\n</TabBar>`, language: "tsx" } },
29
+ docs: { source: { code: "<TabBar>\\n <TabBarItem icon={<Home />} label=\"Home\" active={tab === \"home\"} onClick={() => setTab(\"home\")} />\\n <TabBarItem icon={<Mail />} label=\"Mail\" badge={3} active={tab === \"mail\"} onClick={() => setTab(\"mail\")} />\\n</TabBar>", 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 { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@kinetixui/ui";
6
6
 
7
7
  const Demo = () => (
@@ -33,7 +33,7 @@ const meta = {
33
33
  title: "Data Display/Table",
34
34
  parameters: {
35
35
  layout: "padded",
36
- docs: { source: { code: `<Table>\n <TableHeader>…</TableHeader>\n <TableBody>\n <TableRow><TableCell>INV001</TableCell>…</TableRow>\n </TableBody>\n</Table>`, language: "tsx" } },
36
+ docs: { source: { code: "<Table>\\n <TableHeader>…</TableHeader>\\n <TableBody>\\n <TableRow><TableCell>INV001</TableCell>…</TableRow>\\n </TableBody>\\n</Table>", language: "tsx" } },
37
37
  },
38
38
  } satisfies Meta;
39
39
 
@@ -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 { TableOfContents } from "@kinetixui/ui";
6
6
 
7
7
  const Demo = () => (
@@ -22,7 +22,7 @@ const meta = {
22
22
  title: "Navigation/TableOfContents",
23
23
  parameters: {
24
24
  layout: "centered",
25
- docs: { source: { code: `<TableOfContents\n active={activeId}\n items={[{ id: "overview", label: "Overview" }, { id: "props", label: "Props", level: 2 }]}\n/>`, language: "tsx" } },
25
+ docs: { source: { code: "<TableOfContents\\n active={activeId}\\n items={[{ id: \"overview\", label: \"Overview\" }, { id: \"props\", label: \"Props\", level: 2 }]}\\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 · 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 { Tabs, TabsContent, TabsList, TabsTrigger } from "@kinetixui/ui";
6
6
 
7
7
  const Demo = () => (
@@ -26,7 +26,7 @@ const meta = {
26
26
  argTypes: { defaultValue: { control: "inline-radio", options: ["account", "password"] } },
27
27
  parameters: {
28
28
  layout: "centered",
29
- docs: { source: { code: `<Tabs defaultValue="account">\n <TabsList>\n <TabsTrigger value="account">Account</TabsTrigger>\n <TabsTrigger value="password">Password</TabsTrigger>\n </TabsList>\n <TabsContent value="account">…</TabsContent>\n</Tabs>`, language: "tsx" } },
29
+ docs: { source: { code: "<Tabs defaultValue=\"account\">\\n <TabsList>\\n <TabsTrigger value=\"account\">Account</TabsTrigger>\\n <TabsTrigger value=\"password\">Password</TabsTrigger>\\n </TabsList>\\n <TabsContent value=\"account\">…</TabsContent>\\n</Tabs>", 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 { Tag } from "@kinetixui/ui";
6
6
 
7
7
  const Demo = () => {
@@ -31,7 +31,7 @@ const meta = {
31
31
  },
32
32
  parameters: {
33
33
  layout: "centered",
34
- docs: { source: { code: `<Tag onRemove={() => remove(t)}>{t}</Tag>\n<Tag variant="secondary">secondary</Tag>\n<Tag variant="warning">warning</Tag>\n<Tag variant="outline">outline</Tag>`, language: "tsx" } },
34
+ docs: { source: { code: "<Tag onRemove={() => remove(t)}>{t}</Tag>\\n<Tag variant=\"secondary\">secondary</Tag>\\n<Tag variant=\"warning\">warning</Tag>\\n<Tag variant=\"outline\">outline</Tag>", language: "tsx" } },
35
35
  },
36
36
  } satisfies Meta;
37
37
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
1
+ import type { Meta, StoryObj } from "@storybook/react-vite";
2
2
  import { Textarea } from "../components/textarea";
3
3
 
4
4
  const STATES = ["Default", "Focus", "Error", "Disabled"] as const;
@@ -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 { Toggle } from "@kinetixui/ui";
6
6
  import { Italic } from "lucide-react";
7
7
 
@@ -21,7 +21,7 @@ const meta = {
21
21
  },
22
22
  parameters: {
23
23
  layout: "centered",
24
- docs: { source: { code: `<Toggle aria-label="Toggle italic"><Italic className="size-4" /></Toggle>`, language: "tsx" } },
24
+ docs: { source: { code: "<Toggle aria-label=\"Toggle italic\"><Italic className=\"size-4\" /></Toggle>", 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 · 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 { ToggleGroup, ToggleGroupItem } from "@kinetixui/ui";
6
6
  import { Bold, Italic, Underline } from "lucide-react";
7
7
 
@@ -20,7 +20,7 @@ const meta = {
20
20
  argTypes: { type: { control: "inline-radio", options: ["single", "multiple"] } },
21
21
  parameters: {
22
22
  layout: "centered",
23
- docs: { source: { code: `<ToggleGroup type="multiple">\n <ToggleGroupItem value="bold"><Bold /></ToggleGroupItem>\n <ToggleGroupItem value="italic"><Italic /></ToggleGroupItem>\n</ToggleGroup>`, language: "tsx" } },
23
+ docs: { source: { code: "<ToggleGroup type=\"multiple\">\\n <ToggleGroupItem value=\"bold\"><Bold /></ToggleGroupItem>\\n <ToggleGroupItem value=\"italic\"><Italic /></ToggleGroupItem>\\n</ToggleGroup>", 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 · 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, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@kinetixui/ui";
6
6
 
7
7
  const Demo = () => (
@@ -22,7 +22,7 @@ const meta = {
22
22
  argTypes: { delayDuration: { control: { type: "number", step: 100 } } },
23
23
  parameters: {
24
24
  layout: "centered",
25
- docs: { source: { code: `<TooltipProvider>\n <Tooltip>\n <TooltipTrigger asChild><Button variant="Outline">Hover</Button></TooltipTrigger>\n <TooltipContent>Add to library</TooltipContent>\n </Tooltip>\n</TooltipProvider>`, language: "tsx" } },
25
+ docs: { source: { code: "<TooltipProvider>\\n <Tooltip>\\n <TooltipTrigger asChild><Button variant=\"Outline\">Hover</Button></TooltipTrigger>\\n <TooltipContent>Add to library</TooltipContent>\\n </Tooltip>\\n</TooltipProvider>", language: "tsx" } },
26
26
  },
27
27
  } satisfies Meta;
28
28