@oneplatformdev/ui 0.1.10-1 → 0.1.10-3

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 (214) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +6 -9
  3. package/{index.js → ui.js} +87 -87
  4. package/{Badge/Badge.js → ui12.js} +1 -1
  5. package/{Button/Button.js → ui15.js} +5 -6
  6. package/{ButtonIcon/ButtonIcon.js → ui17.js} +4 -5
  7. package/{Calendar/Calendar.js → ui19.js} +1 -2
  8. package/{Carousel/Carousel.js → ui21.js} +6 -7
  9. package/{Checkbox/Checkbox.js → ui23.js} +18 -19
  10. package/{Combobox/Combobox.js → ui25.js} +36 -38
  11. package/{Command/Command.js → ui26.js} +19 -20
  12. package/{DataTable/DataTable.js → ui27.js} +12 -13
  13. package/{DatePicker/DatePicker.js → ui28.js} +15 -16
  14. package/{Dialog/Dialog.js → ui29.js} +1 -1
  15. package/{DropdownMenu/DropdownMenu.js → ui32.js} +5 -5
  16. package/{Form/Form.js → ui33.js} +8 -9
  17. package/{Form/FormRenderControl.js → ui34.js} +1 -1
  18. package/{FormCheckbox/FormCheckbox.js → ui35.js} +5 -5
  19. package/{FormCombobox/FormCombobox.js → ui36.js} +5 -5
  20. package/{FormDatePicker/FormDatePicker.js → ui37.js} +5 -5
  21. package/{FormInput/FormInput.js → ui38.js} +7 -7
  22. package/ui39.js +39 -0
  23. package/{Alert/Alert.js → ui4.js} +1 -1
  24. package/{FormTextarea/FormTextarea.js → ui40.js} +5 -5
  25. package/{Header/Header.js → ui41.js} +2 -2
  26. package/{Input/Input.js → ui43.js} +1 -1
  27. package/{Label/Label.js → ui45.js} +1 -1
  28. package/ui47.js +7 -0
  29. package/{LoadingMask/LoadingMask.js → ui49.js} +1 -1
  30. package/{AlertDialog/AlertDialogRoot.js → ui5.js} +32 -33
  31. package/{LoadingProgress/LoadingProgress.js → ui51.js} +1 -1
  32. package/{Menubar/Menubar.js → ui53.js} +4 -4
  33. package/{NavigationMenu/NavigationMenu.js → ui54.js} +1 -1
  34. package/{Pagination/Pagination.js → ui56.js} +1 -2
  35. package/{Popover/Popover.js → ui57.js} +1 -1
  36. package/{RadioGroup/RadioGroup.js → ui59.js} +1 -1
  37. package/{AlertDialog/AlertDialog.js → ui6.js} +1 -1
  38. package/{Search/Search.js → ui62.js} +9 -9
  39. package/{Select/SelectRoot.js → ui63.js} +3 -3
  40. package/{Select/Select.js → ui64.js} +24 -25
  41. package/{Sidebar/Sidebar.js → ui67.js} +15 -16
  42. package/{AreaChart/AreaChart.js → ui7.js} +1 -1
  43. package/{Tabs/Tabs.js → ui74.js} +1 -1
  44. package/{Textarea/Textarea.js → ui75.js} +1 -1
  45. package/{Theme/ThemeModeToggle.js → ui77.js} +5 -6
  46. package/{Toast/Toast.js → ui78.js} +1 -1
  47. package/{Aside/Aside.js → ui8.js} +1 -1
  48. package/{Toaster/Toaster.js → ui80.js} +2 -2
  49. package/{ToggleGroup/ToggleGroup.js → ui82.js} +1 -1
  50. package/{Tooltip/Tooltip.js → ui84.js} +1 -1
  51. package/{Dropzone/Dropzone.js → ui85.js} +5 -5
  52. package/ui87.js +19 -0
  53. package/{TablePagination/TablePagination.js → ui88.js} +14 -16
  54. package/{Aside/AsideSidebar.js → ui9.js} +1 -1
  55. package/ui91.js +63 -0
  56. package/{Dropzone/DropzoneFilePreview.js → ui93.js} +2 -2
  57. package/{Dropzone/DropzoneSinglePickPreview.js → ui94.js} +1 -1
  58. package/ui98.js +47 -0
  59. package/Accordion/index.js +0 -7
  60. package/Alert/index.js +0 -6
  61. package/AlertDialog/AlertDialog.stories.js +0 -121
  62. package/AlertDialog/AlertDialog.types.js +0 -1
  63. package/AlertDialog/index.js +0 -16
  64. package/AreaChart/AreaChart.types.js +0 -1
  65. package/AreaChart/index.js +0 -4
  66. package/Aside/Aside.types.js +0 -1
  67. package/Aside/index.js +0 -7
  68. package/AspectRatio/index.js +0 -5
  69. package/Avatar/index.js +0 -6
  70. package/Badge/Badge.types.js +0 -1
  71. package/Badge/index.js +0 -6
  72. package/Breadcrumb/index.js +0 -10
  73. package/Button/Button.stories.js +0 -20
  74. package/Button/Button.types.js +0 -1
  75. package/Button/index.js +0 -7
  76. package/ButtonIcon/ButtonIcon.stories.js +0 -126
  77. package/ButtonIcon/ButtonIcon.types.js +0 -1
  78. package/ButtonIcon/index.js +0 -7
  79. package/Calendar/index.js +0 -4
  80. package/Card/index.js +0 -9
  81. package/Carousel/index.js +0 -8
  82. package/Chart/index.js +0 -9
  83. package/Checkbox/Checkbox.types.js +0 -1
  84. package/Checkbox/index.js +0 -5
  85. package/Collapsible/index.js +0 -6
  86. package/Combobox/Combobox.types.js +0 -1
  87. package/Combobox/ComboboxOptionItem.js +0 -108
  88. package/Combobox/ComboboxOptions.js +0 -64
  89. package/Combobox/index.js +0 -4
  90. package/Command/index.js +0 -12
  91. package/DataTable/DataTable.types.js +0 -1
  92. package/DataTable/DataTableColumnFilter.js +0 -31
  93. package/DataTable/index.js +0 -4
  94. package/DataTable/useDataTable.js +0 -30
  95. package/DatePicker/DatePicker.types.js +0 -1
  96. package/DatePicker/index.js +0 -5
  97. package/Dialog/index.js +0 -17
  98. package/Drawer/index.js +0 -13
  99. package/DropdownMenu/index.js +0 -18
  100. package/Dropzone/index.js +0 -7
  101. package/Form/FormRenderControl.types.js +0 -1
  102. package/Form/index.js +0 -13
  103. package/FormCheckbox/FormCheckbox.types.js +0 -1
  104. package/FormCheckbox/index.js +0 -4
  105. package/FormCombobox/FormCombobox.types.js +0 -1
  106. package/FormCombobox/index.js +0 -4
  107. package/FormDatePicker/FormDatePicker.types.js +0 -1
  108. package/FormDatePicker/index.js +0 -5
  109. package/FormDropzone/FormDropzone.js +0 -19
  110. package/FormDropzone/FormDropzone.types.js +0 -1
  111. package/FormDropzone/index.js +0 -4
  112. package/FormInput/FormInput.types.js +0 -1
  113. package/FormInput/index.js +0 -4
  114. package/FormRadio/FormRadio.js +0 -40
  115. package/FormRadio/FormRadio.types.js +0 -1
  116. package/FormRadio/index.js +0 -4
  117. package/FormSelect/FormSelect.js +0 -40
  118. package/FormSelect/FormSelect.types.js +0 -1
  119. package/FormSelect/index.js +0 -4
  120. package/FormTextarea/FormTextarea.types.js +0 -1
  121. package/FormTextarea/index.js +0 -4
  122. package/Header/Header.types.js +0 -1
  123. package/Header/index.js +0 -5
  124. package/HoverCard/index.js +0 -6
  125. package/Input/Input.types.js +0 -1
  126. package/Input/index.js +0 -7
  127. package/InputOTP/index.js +0 -7
  128. package/Label/index.js +0 -6
  129. package/LazyLoader/LazyLoader.js +0 -8
  130. package/LazyLoader/index.js +0 -5
  131. package/LoadedIcon/index.js +0 -4
  132. package/LoadingMask/LoadingMask.types.js +0 -1
  133. package/LoadingMask/index.js +0 -6
  134. package/LoadingProgress/LoadingProgress.types.js +0 -1
  135. package/LoadingProgress/index.js +0 -6
  136. package/Menubar/index.js +0 -19
  137. package/NavigationMenu/index.js +0 -13
  138. package/Pagination/index.js +0 -10
  139. package/Popover/index.js +0 -7
  140. package/Progress/index.js +0 -4
  141. package/Radio/Radio.js +0 -12
  142. package/Radio/Radio.types.js +0 -1
  143. package/Radio/index.js +0 -4
  144. package/RadioGroup/index.js +0 -6
  145. package/Resizable/index.js +0 -6
  146. package/ScrollArea/index.js +0 -5
  147. package/Search/Search.types.js +0 -1
  148. package/Search/index.js +0 -5
  149. package/Select/Select.stories.js +0 -41
  150. package/Select/Select.types.js +0 -1
  151. package/Select/index.js +0 -15
  152. package/Separator/index.js +0 -4
  153. package/Sheet/index.js +0 -13
  154. package/Sidebar/index.js +0 -27
  155. package/Skeleton/index.js +0 -4
  156. package/Slider/index.js +0 -4
  157. package/Sonner/index.js +0 -4
  158. package/Switch/index.js +0 -4
  159. package/Table/index.js +0 -11
  160. package/TablePagination/index.js +0 -4
  161. package/Tabs/Tabs.types.js +0 -1
  162. package/Tabs/index.js +0 -10
  163. package/Textarea/Textarea.types.js +0 -1
  164. package/Textarea/index.js +0 -4
  165. package/Theme/index.js +0 -6
  166. package/Toast/Toast.types.js +0 -1
  167. package/Toast/index.js +0 -15
  168. package/Toast/toast.constants.js +0 -9
  169. package/Toaster/index.js +0 -4
  170. package/Toggle/index.js +0 -5
  171. package/ToggleGroup/index.js +0 -5
  172. package/Tooltip/Tooltip.types.js +0 -1
  173. package/Tooltip/index.js +0 -9
  174. /package/{AspectRatio/AspectRatio.js → ui10.js} +0 -0
  175. /package/{Avatar/Avatar.js → ui11.js} +0 -0
  176. /package/{Badge/badgeVariants.js → ui13.js} +0 -0
  177. /package/{Breadcrumb/Breadcrumb.js → ui14.js} +0 -0
  178. /package/{Button/buttonVariants.js → ui16.js} +0 -0
  179. /package/{ButtonIcon/buttonIconVariants.js → ui18.js} +0 -0
  180. /package/{Card/Card.js → ui20.js} +0 -0
  181. /package/{Chart/Chart.js → ui22.js} +0 -0
  182. /package/{Collapsible/Collapsible.js → ui24.js} +0 -0
  183. /package/{Accordion/Accordion.js → ui3.js} +0 -0
  184. /package/{Dialog/DialogOverlayScope.js → ui30.js} +0 -0
  185. /package/{Drawer/Drawer.js → ui31.js} +0 -0
  186. /package/{HoverCard/HoverCard.js → ui42.js} +0 -0
  187. /package/{InputOTP/InputOTP.js → ui44.js} +0 -0
  188. /package/{Label/labelVariants.js → ui46.js} +0 -0
  189. /package/{LoadedIcon/LoadedIcon.js → ui48.js} +0 -0
  190. /package/{LoadingMask/RenderLoadingMask.js → ui50.js} +0 -0
  191. /package/{LoadingProgress/loadingProgressVariants.js → ui52.js} +0 -0
  192. /package/{NavigationMenu/navigationMenuVariants.js → ui55.js} +0 -0
  193. /package/{Progress/Progress.js → ui58.js} +0 -0
  194. /package/{Resizable/Resizable.js → ui60.js} +0 -0
  195. /package/{ScrollArea/ScrollArea.js → ui61.js} +0 -0
  196. /package/{Separator/Separator.js → ui65.js} +0 -0
  197. /package/{Sheet/Sheet.js → ui66.js} +0 -0
  198. /package/{Skeleton/Skeleton.js → ui68.js} +0 -0
  199. /package/{Slider/Slider.js → ui69.js} +0 -0
  200. /package/{Sonner/Sonner.js → ui70.js} +0 -0
  201. /package/{Switch/Switch.js → ui71.js} +0 -0
  202. /package/{Table/Table.js → ui72.js} +0 -0
  203. /package/{Tabs/TabsRoot.js → ui73.js} +0 -0
  204. /package/{Theme/ThemeProvider.js → ui76.js} +0 -0
  205. /package/{Toast/useToast.js → ui79.js} +0 -0
  206. /package/{Toggle/Toggle.js → ui81.js} +0 -0
  207. /package/{Tooltip/TooltipRoot.js → ui83.js} +0 -0
  208. /package/{Dropzone/Dropzone.types.js → ui86.js} +0 -0
  209. /package/{Alert/alertVariants.js → ui89.js} +0 -0
  210. /package/{Input/inputVariants.js → ui90.js} +0 -0
  211. /package/{Toast/toastVariants.js → ui92.js} +0 -0
  212. /package/{Dropzone/DropzoneUtils.js → ui95.js} +0 -0
  213. /package/{Textarea/useAutosizeTextArea.js → ui96.js} +0 -0
  214. /package/{packages/hooks/src/useIsMobile/useIsMobile.js → ui97.js} +0 -0
@@ -1,22 +1,20 @@
1
1
  import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
- import { Button as o } from "../Button/Button.js";
3
- import "../Button/buttonVariants.js";
4
- import "../Select/SelectRoot.js";
5
- import { Select as P } from "../Select/Select.js";
6
- const y = ({
2
+ import { Button as o } from "./ui15.js";
3
+ import { Select as P } from "./ui64.js";
4
+ const j = ({
7
5
  offset: l,
8
6
  limit: a,
9
7
  totalRows: s,
10
- setLimit: p,
8
+ setLimit: d,
11
9
  setOffset: t,
12
- tRowsPerPage: d = "Rows per page",
13
- tPrevious: m = "Previous",
14
- tPage: u = "Page",
15
- tNext: x = "Next",
10
+ tRowsPerPage: p = "Rows per page",
11
+ tPrevious: u = "Previous",
12
+ tPage: x = "Page",
13
+ tNext: m = "Next",
16
14
  tOf: v = "Of"
17
15
  }) => {
18
16
  const i = Math.ceil(l / a) + 1, r = Math.ceil(s / a), h = i === r, b = (e) => {
19
- t(0), p(parseInt(e));
17
+ t(0), d(parseInt(e));
20
18
  }, g = () => {
21
19
  let e = l - a;
22
20
  e < 0 && (e = 0), t(e);
@@ -26,7 +24,7 @@ const y = ({
26
24
  };
27
25
  return /* @__PURE__ */ c("div", { className: "flex items-center justify-end space-x-2 py-4", children: [
28
26
  /* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
29
- /* @__PURE__ */ n("span", { className: "text-sm text-nowrap", children: d }),
27
+ /* @__PURE__ */ n("span", { className: "text-sm text-nowrap", children: p }),
30
28
  /* @__PURE__ */ n(
31
29
  P,
32
30
  {
@@ -52,10 +50,10 @@ const y = ({
52
50
  size: "sm",
53
51
  disabled: !l,
54
52
  onClick: g,
55
- children: m
53
+ children: u
56
54
  }
57
55
  ),
58
- /* @__PURE__ */ n("span", { className: "text-sm", children: `${u} ${i} ${v} ${r}` }),
56
+ /* @__PURE__ */ n("span", { className: "text-sm", children: `${x} ${i} ${v} ${r}` }),
59
57
  /* @__PURE__ */ n(
60
58
  o,
61
59
  {
@@ -63,12 +61,12 @@ const y = ({
63
61
  size: "sm",
64
62
  disabled: h,
65
63
  onClick: N,
66
- children: x
64
+ children: m
67
65
  }
68
66
  )
69
67
  ] })
70
68
  ] });
71
69
  };
72
70
  export {
73
- y as TablePagination
71
+ j as TablePagination
74
72
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as c, jsx as i, Fragment as f } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
- import { Sidebar as S, SidebarHeader as s, SidebarContent as p, SidebarFooter as m, SidebarRail as E } from "../Sidebar/Sidebar.js";
3
+ import { Sidebar as S, SidebarHeader as s, SidebarContent as p, SidebarFooter as m, SidebarRail as E } from "./ui67.js";
4
4
  function d(l, e) {
5
5
  return a.isValidElement(l) && l.type === e;
6
6
  }
package/ui91.js ADDED
@@ -0,0 +1,63 @@
1
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
+ import { forwardRef as p, useState as u } from "react";
3
+ import { ComboboxOptionItem as c } from "./ui98.js";
4
+ import { ChevronDownIcon as h } from "lucide-react";
5
+ import { cn as i } from "@oneplatformdev/utils";
6
+ import { Collapsible as b, CollapsibleTrigger as g, CollapsibleContent as C } from "./ui24.js";
7
+ import { Button as x } from "./ui15.js";
8
+ const d = p((e, r) => {
9
+ const { option: s, deep: a = 0 } = e, [t, l] = u(!0);
10
+ return s?.items?.length ? /* @__PURE__ */ m(
11
+ b,
12
+ {
13
+ ref: r,
14
+ open: t,
15
+ onOpenChange: l,
16
+ "data-opened": t,
17
+ className: i("group/collapsible"),
18
+ children: [
19
+ /* @__PURE__ */ o(c, { ...e, children: /* @__PURE__ */ o(g, { asChild: !0, children: /* @__PURE__ */ m(
20
+ x,
21
+ {
22
+ onClick: (n) => {
23
+ n?.preventDefault(), n?.stopPropagation(), l((f) => !f);
24
+ },
25
+ type: "button",
26
+ variant: "ghost",
27
+ size: "sm",
28
+ className: i("aspect-square size-6", "transition-transform"),
29
+ children: [
30
+ /* @__PURE__ */ o(
31
+ h,
32
+ {
33
+ className: i(
34
+ "size-5!",
35
+ "transition-transform",
36
+ t && "rotate-180"
37
+ )
38
+ }
39
+ ),
40
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Toggle" })
41
+ ]
42
+ }
43
+ ) }) }),
44
+ /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-0", children: s?.items.map((n) => /* @__PURE__ */ o(
45
+ d,
46
+ {
47
+ ...e,
48
+ deep: a + 1,
49
+ option: n
50
+ },
51
+ n.value
52
+ )) }) })
53
+ ]
54
+ }
55
+ ) : /* @__PURE__ */ o(c, { ...e, ref: r });
56
+ }), D = p((e, r) => {
57
+ const { options: s = [], ...a } = e;
58
+ return /* @__PURE__ */ o("div", { ref: r, className: "flex flex-col gap-0", children: s.map((t) => /* @__PURE__ */ o(d, { ...a, option: t }, t.value)) });
59
+ });
60
+ export {
61
+ D as ComboboxOptions,
62
+ d as ComboboxOptionsNode
63
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
2
  import { useState as u, useEffect as f } from "react";
3
3
  import { File as m } from "lucide-react";
4
- import { DEFAULT_IMAGES_TYPES as p } from "./Dropzone.types.js";
5
- import { isFile as a } from "./DropzoneUtils.js";
4
+ import { DEFAULT_IMAGES_TYPES as p } from "./ui86.js";
5
+ import { isFile as a } from "./ui95.js";
6
6
  import { cn as t } from "@oneplatformdev/utils";
7
7
  const N = ({ item: e, styles: s }) => {
8
8
  const [c, r] = u(null), i = a(e) && p.includes(e.type);
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as c } from "react";
3
- import { isFile as u } from "./DropzoneUtils.js";
3
+ import { isFile as u } from "./ui95.js";
4
4
  import { X as f, FileIcon as d } from "lucide-react";
5
5
  const m = (e) => {
6
6
  if (!e) return "";
package/ui98.js ADDED
@@ -0,0 +1,47 @@
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as c } from "react";
3
+ /* empty css */
4
+ import { Check as f } from "lucide-react";
5
+ import { cn as a } from "@oneplatformdev/utils";
6
+ import { CommandItem as d } from "./ui26.js";
7
+ const u = 8, O = c((i, r) => {
8
+ const { children: m, setOpen: n, option: e, onChangeOption: o, value: l = "", deep: p = 0 } = i;
9
+ return /* @__PURE__ */ s(
10
+ d,
11
+ {
12
+ ref: r,
13
+ value: e.value,
14
+ onSelect: () => {
15
+ l === e.value ? o?.({ value: "", label: "" }) : o?.(e), n(!1);
16
+ },
17
+ style: {
18
+ paddingLeft: (p + 1) * u
19
+ },
20
+ children: [
21
+ m,
22
+ /* @__PURE__ */ t(
23
+ "span",
24
+ {
25
+ className: a(
26
+ "overflow-hidden whitespace-wrap text-ellipsis line-clamp-2"
27
+ ),
28
+ children: e.label
29
+ }
30
+ ),
31
+ /* @__PURE__ */ t(
32
+ f,
33
+ {
34
+ className: a(
35
+ "ml-auto",
36
+ l === e.value ? "opacity-100" : "opacity-0"
37
+ )
38
+ }
39
+ )
40
+ ]
41
+ },
42
+ e.value
43
+ );
44
+ });
45
+ export {
46
+ O as ComboboxOptionItem
47
+ };
@@ -1,7 +0,0 @@
1
- import { Accordion as r, AccordionContent as n, AccordionItem as i, AccordionTrigger as d } from "./Accordion.js";
2
- export {
3
- r as Accordion,
4
- n as AccordionContent,
5
- i as AccordionItem,
6
- d as AccordionTrigger
7
- };
package/Alert/index.js DELETED
@@ -1,6 +0,0 @@
1
- import { Alert as t, AlertDescription as l, AlertTitle as i } from "./Alert.js";
2
- export {
3
- t as Alert,
4
- l as AlertDescription,
5
- i as AlertTitle
6
- };
@@ -1,121 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { AlertDialog as n } from "./AlertDialog.js";
3
- import { Button as l } from "../Button/Button.js";
4
- import "../Button/buttonVariants.js";
5
- const c = (e) => /* @__PURE__ */ t(n, { ...e }), r = ["confirm", "alert", "destructive"], b = {
6
- title: "AlertDialog",
7
- component: n,
8
- render: c,
9
- argTypes: {
10
- open: {
11
- control: {
12
- type: "boolean"
13
- }
14
- },
15
- variant: {
16
- name: "variant",
17
- description: "ButtonIcon variant",
18
- options: r,
19
- control: {
20
- type: "inline-radio"
21
- }
22
- },
23
- cancelLabel: {
24
- control: {
25
- type: "text"
26
- }
27
- },
28
- actionLabel: {
29
- control: {
30
- type: "text"
31
- }
32
- },
33
- title: {
34
- control: {
35
- type: "text"
36
- }
37
- },
38
- description: {
39
- control: {
40
- type: "text"
41
- }
42
- }
43
- },
44
- args: {
45
- variant: "alert",
46
- cancelLabel: "Cancel",
47
- actionLabel: "Action"
48
- }
49
- }, s = (e) => /* @__PURE__ */ t(
50
- n,
51
- {
52
- ...e
53
- }
54
- );
55
- s.args = {
56
- trigger: "Trigger text or ReactNode",
57
- variant: "confirm",
58
- title: "Dialog title...",
59
- description: "Description text...",
60
- cancelLabel: "Cancel label",
61
- actionLabel: "Action label"
62
- };
63
- const i = (e) => /* @__PURE__ */ t("div", { className: "flex gap-3", children: r.map((o) => /* @__PURE__ */ t(
64
- n,
65
- {
66
- trigger: o,
67
- ...e,
68
- variant: o
69
- },
70
- o
71
- )) });
72
- i.parameters = {
73
- controls: {
74
- include: ["title", "description", "cancelLabel", "actionLabel"]
75
- }
76
- };
77
- i.args = {
78
- title: "Dialog title",
79
- description: "Description text..."
80
- };
81
- const a = (e) => /* @__PURE__ */ t(
82
- n,
83
- {
84
- onOpenChange: (o) => console.log(o),
85
- trigger: /* @__PURE__ */ t(l, { variant: "outline", children: "Control Trigger" }),
86
- header: /* @__PURE__ */ t("div", { children: "Custom Header" }),
87
- footer: [
88
- /* @__PURE__ */ t(l, { variant: "outline", onClick: console.log, children: "On cancel" }, "cancel"),
89
- /* @__PURE__ */ t(l, { variant: "outline", onClick: console.log, children: "On Action" }, "action")
90
- ],
91
- ...e
92
- }
93
- );
94
- a.parameters = {
95
- controls: {
96
- include: ["open"]
97
- }
98
- };
99
- a.args = {
100
- open: !1
101
- };
102
- const p = (e) => /* @__PURE__ */ t(
103
- n,
104
- {
105
- trigger: /* @__PURE__ */ t(l, { variant: "outline", children: "Full Content Trigger" }),
106
- ...e,
107
- children: "Full Content..."
108
- }
109
- );
110
- p.parameters = {
111
- controls: {
112
- include: []
113
- }
114
- };
115
- export {
116
- p as FullContent,
117
- a as FullControl,
118
- s as Playground,
119
- i as Variants,
120
- b as default
121
- };
@@ -1 +0,0 @@
1
-
@@ -1,16 +0,0 @@
1
- import { AlertDialogAction as e, AlertDialogCancel as r, AlertDialogContent as t, AlertDialogDescription as i, AlertDialogFooter as a, AlertDialogHeader as g, AlertDialogOverlay as A, AlertDialogPortal as D, AlertDialogRoot as n, AlertDialogTitle as c, AlertDialogTrigger as p } from "./AlertDialogRoot.js";
2
- import { AlertDialog as m } from "./AlertDialog.js";
3
- export {
4
- m as AlertDialog,
5
- e as AlertDialogAction,
6
- r as AlertDialogCancel,
7
- t as AlertDialogContent,
8
- i as AlertDialogDescription,
9
- a as AlertDialogFooter,
10
- g as AlertDialogHeader,
11
- A as AlertDialogOverlay,
12
- D as AlertDialogPortal,
13
- n as AlertDialogRoot,
14
- c as AlertDialogTitle,
15
- p as AlertDialogTrigger
16
- };
@@ -1 +0,0 @@
1
-
@@ -1,4 +0,0 @@
1
- import { AreaChart as e } from "./AreaChart.js";
2
- export {
3
- e as AreaChart
4
- };
@@ -1 +0,0 @@
1
-
package/Aside/index.js DELETED
@@ -1,7 +0,0 @@
1
- import { Aside as r, Aside as i } from "./Aside.js";
2
- import { AsideSidebar as s } from "./AsideSidebar.js";
3
- export {
4
- r as Aside,
5
- s as AsideSidebar,
6
- i as default
7
- };
@@ -1,5 +0,0 @@
1
- import { AspectRatio as e, AspectRatio as o } from "./AspectRatio.js";
2
- export {
3
- e as AspectRatio,
4
- o as default
5
- };
package/Avatar/index.js DELETED
@@ -1,6 +0,0 @@
1
- import { Avatar as t, AvatarFallback as v, AvatarImage as A } from "./Avatar.js";
2
- export {
3
- t as Avatar,
4
- v as AvatarFallback,
5
- A as AvatarImage
6
- };
@@ -1 +0,0 @@
1
-
package/Badge/index.js DELETED
@@ -1,6 +0,0 @@
1
- import { Badge as e } from "./Badge.js";
2
- import { badgeVariants as t } from "./badgeVariants.js";
3
- export {
4
- e as Badge,
5
- t as badgeVariants
6
- };
@@ -1,10 +0,0 @@
1
- import { Breadcrumb as a, BreadcrumbEllipsis as m, BreadcrumbItem as b, BreadcrumbLink as c, BreadcrumbList as d, BreadcrumbPage as u, BreadcrumbSeparator as B } from "./Breadcrumb.js";
2
- export {
3
- a as Breadcrumb,
4
- m as BreadcrumbEllipsis,
5
- b as BreadcrumbItem,
6
- c as BreadcrumbLink,
7
- d as BreadcrumbList,
8
- u as BreadcrumbPage,
9
- B as BreadcrumbSeparator
10
- };
@@ -1,20 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { Button as t } from "./Button.js";
3
- const o = (e) => /* @__PURE__ */ a(t, { ...e }), n = {
4
- title: "Button",
5
- component: t,
6
- render: o,
7
- args: {
8
- variant: "default",
9
- size: "default",
10
- disabled: !1
11
- }
12
- }, s = {
13
- args: {
14
- children: "Default"
15
- }
16
- };
17
- export {
18
- s as Default,
19
- n as default
20
- };
@@ -1 +0,0 @@
1
-
package/Button/index.js DELETED
@@ -1,7 +0,0 @@
1
- import { Button as r, Button as a } from "./Button.js";
2
- import { buttonVariants as u } from "./buttonVariants.js";
3
- export {
4
- r as Button,
5
- u as buttonVariants,
6
- a as default
7
- };
@@ -1,126 +0,0 @@
1
- import { jsx as o, jsxs as d } from "react/jsx-runtime";
2
- import { ButtonIcon as m } from "./ButtonIcon.js";
3
- import { PencilLineIcon as x } from "lucide-react";
4
- const s = ["contained", "outlined", "ghost", "link"], c = [
5
- "primary",
6
- "secondary",
7
- "error",
8
- "success",
9
- "disabled"
10
- ], f = ["sm", "md", "lg"], l = (a) => /* @__PURE__ */ o(m, { ...a, children: /* @__PURE__ */ o(x, {}) }), z = {
11
- title: "ButtonIcon",
12
- component: m,
13
- render: l,
14
- argTypes: {
15
- variant: {
16
- name: "variant",
17
- description: "ButtonIcon variant",
18
- defaultValue: "contained",
19
- options: s,
20
- control: {
21
- type: "inline-radio"
22
- }
23
- },
24
- color: {
25
- options: c,
26
- control: {
27
- type: "inline-radio"
28
- }
29
- },
30
- size: {
31
- options: f,
32
- control: {
33
- type: "inline-radio"
34
- }
35
- },
36
- tooltip: {
37
- control: {
38
- type: "text"
39
- }
40
- },
41
- disabled: {
42
- control: {
43
- type: "boolean"
44
- }
45
- },
46
- rounded: {
47
- control: {
48
- type: "boolean"
49
- }
50
- }
51
- },
52
- args: {
53
- variant: "contained",
54
- color: "primary",
55
- size: "md",
56
- disabled: !1,
57
- rounded: !1,
58
- tooltip: "ButtonIcon tooltip"
59
- }
60
- }, u = ({ rounded: a, ...n }) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-10", children: [
61
- /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(l, { rounded: a, ...n }) }),
62
- /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: s.map((e) => /* @__PURE__ */ o("div", { className: "flex gap-2", children: c.map((t) => {
63
- const i = `${e}-${t}`;
64
- return /* @__PURE__ */ o("div", { className: "flex gap-2", children: f.map((r) => {
65
- const p = `${i}-${r}`;
66
- return /* @__PURE__ */ o(
67
- l,
68
- {
69
- color: t,
70
- size: r,
71
- variant: e,
72
- rounded: a,
73
- tooltip: p
74
- },
75
- p
76
- );
77
- }) }, i);
78
- }) }, e)) })
79
- ] });
80
- u.args = {
81
- onClick: { action: (a) => a }
82
- };
83
- const g = ({ variant: a, ...n }) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-10", children: [
84
- /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(l, { variant: a, ...n }) }),
85
- /* @__PURE__ */ o("div", { className: "flex gap-2", children: s.map((e) => /* @__PURE__ */ o(l, { variant: e, tooltip: e }, e)) })
86
- ] });
87
- g.parameters = {
88
- controls: {
89
- include: ["disabled", "color", "size", "variant"]
90
- }
91
- };
92
- const h = ({ color: a, ...n }) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-2", children: [
93
- /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(l, { color: a, ...n }) }),
94
- /* @__PURE__ */ o("div", { className: "flex gap-2", children: c.map((e) => /* @__PURE__ */ o(l, { color: e, tooltip: e, ...n }, e)) })
95
- ] });
96
- h.parameters = {
97
- controls: {
98
- include: ["disabled", "color", "size", "variant"]
99
- }
100
- };
101
- const v = ({ variant: a, color: n, ...e }) => /* @__PURE__ */ o("div", { className: "flex flex-col gap-10", children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: s.map((t) => /* @__PURE__ */ o("div", { className: "flex gap-2", children: c.map((i) => {
102
- const r = `${t}-${i}`;
103
- return /* @__PURE__ */ o(
104
- l,
105
- {
106
- variant: t,
107
- color: i,
108
- disabled: !0,
109
- tooltip: r,
110
- ...e
111
- },
112
- r
113
- );
114
- }) }, t)) }) });
115
- v.parameters = {
116
- controls: {
117
- include: []
118
- }
119
- };
120
- export {
121
- h as Colors,
122
- v as Disabled,
123
- u as Playground,
124
- g as Variants,
125
- z as default
126
- };
@@ -1 +0,0 @@
1
-
@@ -1,7 +0,0 @@
1
- import { ButtonIcon as n, ButtonIcon as r } from "./ButtonIcon.js";
2
- import { buttonIconVariants as u } from "./buttonIconVariants.js";
3
- export {
4
- n as ButtonIcon,
5
- u as buttonIconVariants,
6
- r as default
7
- };
package/Calendar/index.js DELETED
@@ -1,4 +0,0 @@
1
- import { Calendar as e } from "./Calendar.js";
2
- export {
3
- e as Calendar
4
- };
package/Card/index.js DELETED
@@ -1,9 +0,0 @@
1
- import { Card as d, CardContent as e, CardDescription as C, CardFooter as o, CardHeader as t, CardTitle as i } from "./Card.js";
2
- export {
3
- d as Card,
4
- e as CardContent,
5
- C as CardDescription,
6
- o as CardFooter,
7
- t as CardHeader,
8
- i as CardTitle
9
- };
package/Carousel/index.js DELETED
@@ -1,8 +0,0 @@
1
- import { Carousel as r, CarouselContent as s, CarouselItem as u, CarouselNext as C, CarouselPrevious as a } from "./Carousel.js";
2
- export {
3
- r as Carousel,
4
- s as CarouselContent,
5
- u as CarouselItem,
6
- C as CarouselNext,
7
- a as CarouselPrevious
8
- };
package/Chart/index.js DELETED
@@ -1,9 +0,0 @@
1
- import { ChartContainer as o, ChartLegend as r, ChartLegendContent as C, ChartStyle as n, ChartTooltip as a, ChartTooltipContent as h } from "./Chart.js";
2
- export {
3
- o as ChartContainer,
4
- r as ChartLegend,
5
- C as ChartLegendContent,
6
- n as ChartStyle,
7
- a as ChartTooltip,
8
- h as ChartTooltipContent
9
- };
@@ -1 +0,0 @@
1
-
package/Checkbox/index.js DELETED
@@ -1,5 +0,0 @@
1
- import { Checkbox as b, CheckboxLabel as x } from "./Checkbox.js";
2
- export {
3
- b as Checkbox,
4
- x as CheckboxLabel
5
- };
@@ -1,6 +0,0 @@
1
- import { Collapsible as o, CollapsibleContent as i, CollapsibleTrigger as p } from "./Collapsible.js";
2
- export {
3
- o as Collapsible,
4
- i as CollapsibleContent,
5
- p as CollapsibleTrigger
6
- };
@@ -1 +0,0 @@
1
-