@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,14 +1,13 @@
1
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
1
+ import { jsx as d, jsxs as s } from "react/jsx-runtime";
2
2
  import * as m from "react";
3
3
  import { Command as t } from "cmdk";
4
4
  import { SearchIcon as p } from "lucide-react";
5
5
  import { cn as r } from "@oneplatformdev/utils";
6
- import { Dialog as i, DialogContent as l } from "../Dialog/Dialog.js";
7
- import "../Dialog/DialogOverlayScope.js";
8
- const n = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
6
+ import { Dialog as i, DialogContent as l } from "./ui29.js";
7
+ const n = m.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ d(
9
8
  t,
10
9
  {
11
- ref: d,
10
+ ref: o,
12
11
  className: r(
13
12
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
14
13
  e
@@ -17,12 +16,12 @@ const n = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
17
16
  }
18
17
  ));
19
18
  n.displayName = t.displayName;
20
- const b = ({ children: e, ...a }) => /* @__PURE__ */ o(i, { ...a, children: /* @__PURE__ */ o(l, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(n, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), c = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ s("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
21
- /* @__PURE__ */ o(p, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
22
- /* @__PURE__ */ o(
19
+ const C = ({ children: e, ...a }) => /* @__PURE__ */ d(i, { ...a, children: /* @__PURE__ */ d(l, { className: "overflow-hidden p-0", children: /* @__PURE__ */ d(n, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), c = m.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ s("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
20
+ /* @__PURE__ */ d(p, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
21
+ /* @__PURE__ */ d(
23
22
  t.Input,
24
23
  {
25
- ref: d,
24
+ ref: o,
26
25
  className: r(
27
26
  "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
28
27
  e
@@ -32,16 +31,16 @@ const b = ({ children: e, ...a }) => /* @__PURE__ */ o(i, { ...a, children: /* @
32
31
  )
33
32
  ] }));
34
33
  c.displayName = t.Input.displayName;
35
- const u = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
34
+ const u = m.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ d(
36
35
  t.List,
37
36
  {
38
- ref: d,
37
+ ref: o,
39
38
  className: r("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
40
39
  ...a
41
40
  }
42
41
  ));
43
42
  u.displayName = t.List.displayName;
44
- const f = m.forwardRef((e, a) => /* @__PURE__ */ o(
43
+ const f = m.forwardRef((e, a) => /* @__PURE__ */ d(
45
44
  t.Empty,
46
45
  {
47
46
  ref: a,
@@ -50,10 +49,10 @@ const f = m.forwardRef((e, a) => /* @__PURE__ */ o(
50
49
  }
51
50
  ));
52
51
  f.displayName = t.Empty.displayName;
53
- const g = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
52
+ const g = m.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ d(
54
53
  t.Group,
55
54
  {
56
- ref: d,
55
+ ref: o,
57
56
  className: r(
58
57
  "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
59
58
  e
@@ -62,19 +61,19 @@ const g = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
62
61
  }
63
62
  ));
64
63
  g.displayName = t.Group.displayName;
65
- const x = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
64
+ const x = m.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ d(
66
65
  t.Separator,
67
66
  {
68
- ref: d,
67
+ ref: o,
69
68
  className: r("-mx-1 h-px bg-border", e),
70
69
  ...a
71
70
  }
72
71
  ));
73
72
  x.displayName = t.Separator.displayName;
74
- const h = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
73
+ const h = m.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ d(
75
74
  t.Item,
76
75
  {
77
- ref: d,
76
+ ref: o,
78
77
  className: r(
79
78
  "relative flex gap-2 select-none items-center rounded-sm",
80
79
  "min-h-8 px-2 py-1",
@@ -93,7 +92,7 @@ h.displayName = t.Item.displayName;
93
92
  const y = ({
94
93
  className: e,
95
94
  ...a
96
- }) => /* @__PURE__ */ o(
95
+ }) => /* @__PURE__ */ d(
97
96
  "span",
98
97
  {
99
98
  className: r(
@@ -106,7 +105,7 @@ const y = ({
106
105
  y.displayName = "CommandShortcut";
107
106
  export {
108
107
  n as Command,
109
- b as CommandDialog,
108
+ C as CommandDialog,
110
109
  f as CommandEmpty,
111
110
  g as CommandGroup,
112
111
  c as CommandInput,
@@ -1,11 +1,10 @@
1
1
  import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
- import { Button as m } from "../Button/Button.js";
3
- import "../Button/buttonVariants.js";
4
- import { DropdownMenu as h, DropdownMenuTrigger as p, DropdownMenuContent as g, DropdownMenuCheckboxItem as u } from "../DropdownMenu/DropdownMenu.js";
5
- import { Table as C, TableHeader as f, TableRow as t, TableHead as w, TableBody as x, TableCell as o } from "../Table/Table.js";
6
2
  import { flexRender as d } from "@tanstack/react-table";
7
- import { ChevronDown as b } from "lucide-react";
8
- const k = ({
3
+ import { ChevronDown as m } from "lucide-react";
4
+ import { DropdownMenu as h, DropdownMenuTrigger as g, DropdownMenuContent as p, DropdownMenuCheckboxItem as u } from "./ui32.js";
5
+ import { Button as C } from "./ui15.js";
6
+ import { Table as f, TableHeader as w, TableRow as t, TableHead as x, TableBody as b, TableCell as o } from "./ui72.js";
7
+ const R = ({
9
8
  table: r,
10
9
  ToolBar: a,
11
10
  tColumns: s = "Columns",
@@ -14,12 +13,12 @@ const k = ({
14
13
  /* @__PURE__ */ i("div", { className: "flex items-center py-4", children: [
15
14
  a,
16
15
  /* @__PURE__ */ i(h, { children: [
17
- /* @__PURE__ */ l(p, { asChild: !0, children: /* @__PURE__ */ i(m, { variant: "outline", className: "ml-auto", children: [
16
+ /* @__PURE__ */ l(g, { asChild: !0, children: /* @__PURE__ */ i(C, { variant: "outline", className: "ml-auto", children: [
18
17
  s,
19
18
  " ",
20
- /* @__PURE__ */ l(b, { className: "ml-2 h-4 w-4" })
19
+ /* @__PURE__ */ l(m, { className: "ml-2 h-4 w-4" })
21
20
  ] }) }),
22
- /* @__PURE__ */ l(g, { align: "end", children: r.getAllColumns().filter((e) => e.getCanHide()).map((e) => /* @__PURE__ */ l(
21
+ /* @__PURE__ */ l(p, { align: "end", children: r.getAllColumns().filter((e) => e.getCanHide()).map((e) => /* @__PURE__ */ l(
23
22
  u,
24
23
  {
25
24
  className: "capitalize",
@@ -31,12 +30,12 @@ const k = ({
31
30
  )) })
32
31
  ] })
33
32
  ] }),
34
- /* @__PURE__ */ l("div", { className: "rounded-md border", children: /* @__PURE__ */ i(C, { children: [
35
- /* @__PURE__ */ l(f, { children: r.getHeaderGroups().map((e) => /* @__PURE__ */ l(t, { children: e.headers.map((n) => /* @__PURE__ */ l(w, { children: n.isPlaceholder ? null : d(
33
+ /* @__PURE__ */ l("div", { className: "rounded-md border", children: /* @__PURE__ */ i(f, { children: [
34
+ /* @__PURE__ */ l(w, { children: r.getHeaderGroups().map((e) => /* @__PURE__ */ l(t, { children: e.headers.map((n) => /* @__PURE__ */ l(x, { children: n.isPlaceholder ? null : d(
36
35
  n.column.columnDef.header,
37
36
  n.getContext()
38
37
  ) }, n.id)) }, e.id)) }),
39
- /* @__PURE__ */ l(x, { children: r.getRowModel().rows?.length ? r.getRowModel().rows.map((e) => /* @__PURE__ */ l(
38
+ /* @__PURE__ */ l(b, { children: r.getRowModel().rows?.length ? r.getRowModel().rows.map((e) => /* @__PURE__ */ l(
40
39
  t,
41
40
  {
42
41
  "data-state": e.getIsSelected() && "selected",
@@ -57,5 +56,5 @@ const k = ({
57
56
  ] }) })
58
57
  ] });
59
58
  export {
60
- k as DataTable
59
+ R as DataTable
61
60
  };
@@ -1,33 +1,32 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
3
  import { format as d } from "date-fns";
4
4
  import { Calendar as s } from "lucide-react";
5
5
  import { cn as c } from "@oneplatformdev/utils";
6
- import { Button as f } from "../Button/Button.js";
7
- import "../Button/buttonVariants.js";
8
- import { Calendar as p } from "../Calendar/Calendar.js";
9
- import { Popover as u, PopoverTrigger as h, PopoverContent as y } from "../Popover/Popover.js";
10
- import { uk as t } from "../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/uk.js";
6
+ import { uk as t } from "date-fns/locale";
7
+ import { Button as f } from "./ui15.js";
8
+ import { Calendar as p } from "./ui19.js";
9
+ import { Popover as u, PopoverTrigger as h, PopoverContent as y } from "./ui57.js";
11
10
  const g = i.forwardRef(
12
- (a, m) => {
11
+ (a, l) => {
13
12
  const {
14
- selectedDate: o,
15
- onDateChange: l,
13
+ selectedDate: e,
14
+ onDateChange: m,
16
15
  disabled: n = !1
17
16
  } = a;
18
- return /* @__PURE__ */ e(u, { children: [
19
- /* @__PURE__ */ r(h, { asChild: !0, children: /* @__PURE__ */ e(
17
+ return /* @__PURE__ */ o(u, { children: [
18
+ /* @__PURE__ */ r(h, { asChild: !0, children: /* @__PURE__ */ o(
20
19
  f,
21
20
  {
22
- ref: m,
21
+ ref: l,
23
22
  disabled: n,
24
23
  variant: "outline-solid",
25
24
  className: c(
26
25
  "w-full justify-start text-left font-normal border h-10",
27
- !o && "text-muted-foreground"
26
+ !e && "text-muted-foreground"
28
27
  ),
29
28
  children: [
30
- o ? d(o, "LLL dd, y", { locale: t }) : /* @__PURE__ */ r("span", { children: "dd/mm/yyyy" }),
29
+ e ? d(e, "LLL dd, y", { locale: t }) : /* @__PURE__ */ r("span", { children: "dd/mm/yyyy" }),
31
30
  /* @__PURE__ */ r(s, { className: "mr-2 h-4 w-4 ml-auto" })
32
31
  ]
33
32
  }
@@ -37,8 +36,8 @@ const g = i.forwardRef(
37
36
  {
38
37
  mode: "single",
39
38
  captionLayout: "dropdown-buttons",
40
- selected: o,
41
- onSelect: l,
39
+ selected: e,
40
+ onSelect: m,
42
41
  fromYear: 1960,
43
42
  toYear: 2030,
44
43
  locale: t
@@ -3,7 +3,7 @@ import i, { useState as y, useRef as N } from "react";
3
3
  import * as a from "@radix-ui/react-dialog";
4
4
  import { XIcon as D } from "lucide-react";
5
5
  import { cn as l, composeRefs as h } from "@oneplatformdev/utils";
6
- import { DialogOverlayScope as b } from "./DialogOverlayScope.js";
6
+ import { DialogOverlayScope as b } from "./ui30.js";
7
7
  const P = (e) => {
8
8
  const { modal: t, ...s } = e;
9
9
  return /* @__PURE__ */ o(a.Root, { modal: t, ...s });
@@ -1,7 +1,7 @@
1
- import { jsxs as l, jsx as n } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as l } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
3
  import * as e from "@radix-ui/react-dropdown-menu";
4
- import { ChevronRight as m, Check as c, Circle as p } from "lucide-react";
4
+ import { Check as m, Circle as c, ChevronRight as p } from "lucide-react";
5
5
  import { cn as s } from "@oneplatformdev/utils";
6
6
  const R = e.Root, I = e.Trigger, S = e.Group, C = e.Portal, z = e.Sub, k = e.RadioGroup, u = d.forwardRef(({ className: o, inset: t, children: a, ...r }, i) => /* @__PURE__ */ l(
7
7
  e.SubTrigger,
@@ -15,7 +15,7 @@ const R = e.Root, I = e.Trigger, S = e.Group, C = e.Portal, z = e.Sub, k = e.Rad
15
15
  ...r,
16
16
  children: [
17
17
  a,
18
- /* @__PURE__ */ n(m, { className: "ml-auto" })
18
+ /* @__PURE__ */ n(p, { className: "ml-auto" })
19
19
  ]
20
20
  }
21
21
  ));
@@ -70,7 +70,7 @@ const b = d.forwardRef(({ className: o, children: t, checked: a, ...r }, i) => /
70
70
  checked: a,
71
71
  ...r,
72
72
  children: [
73
- /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(c, { className: "h-4 w-4" }) }) }),
73
+ /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(m, { className: "h-4 w-4" }) }) }),
74
74
  t
75
75
  ]
76
76
  }
@@ -86,7 +86,7 @@ const h = d.forwardRef(({ className: o, children: t, ...a }, r) => /* @__PURE__
86
86
  ),
87
87
  ...a,
88
88
  children: [
89
- /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(p, { className: "h-2 w-2 fill-current" }) }) }),
89
+ /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(c, { className: "h-2 w-2 fill-current" }) }) }),
90
90
  t
91
91
  ]
92
92
  }
@@ -1,16 +1,15 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import * as m from "react";
3
3
  import { Slot as F } from "@radix-ui/react-slot";
4
- import { useFormContext as u, Controller as p, FormProvider as x } from "react-hook-form";
4
+ import { FormProvider as u, useFormContext as p, Controller as x } from "react-hook-form";
5
5
  import { cn as a } from "@oneplatformdev/utils";
6
- import { Label as I } from "../Label/Label.js";
7
- import "../Label/labelVariants.js";
8
- const M = x, l = m.createContext(
6
+ import { Label as I } from "./ui45.js";
7
+ const D = u, l = m.createContext(
9
8
  {}
10
- ), S = ({
9
+ ), M = ({
11
10
  ...e
12
- }) => /* @__PURE__ */ n(l.Provider, { value: { name: e.name }, children: /* @__PURE__ */ n(p, { ...e }) }), c = () => {
13
- const e = m.useContext(l), t = m.useContext(f), { getFieldState: o, formState: r } = u(), i = o(e.name, r);
11
+ }) => /* @__PURE__ */ n(l.Provider, { value: { name: e.name }, children: /* @__PURE__ */ n(x, { ...e }) }), c = () => {
12
+ const e = m.useContext(l), t = m.useContext(f), { getFieldState: o, formState: r } = p(), i = o(e.name, r);
14
13
  if (!e)
15
14
  throw new Error("useFormField should be used within <FormField>");
16
15
  const { id: s } = t;
@@ -87,10 +86,10 @@ const w = m.forwardRef(({ className: e, children: t, ...o }, r) => {
87
86
  });
88
87
  w.displayName = "FormMessage";
89
88
  export {
90
- M as Form,
89
+ D as Form,
91
90
  g as FormControl,
92
91
  N as FormDescription,
93
- S as FormField,
92
+ M as FormField,
94
93
  v as FormItem,
95
94
  C as FormLabel,
96
95
  w as FormMessage,
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
- import { FormField as d, FormItem as i, FormLabel as F, FormMessage as p } from "./Form.js";
2
+ import { FormField as d, FormItem as i, FormLabel as F, FormMessage as p } from "./ui33.js";
3
3
  const b = (e) => {
4
4
  const { form: n, name: m, label: o, render: t, containerProps: l = {}, ...s } = e;
5
5
  return /* @__PURE__ */ r(
@@ -1,15 +1,15 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { FormControl as a } from "../Form/Form.js";
3
- import { FormRenderControl as l } from "../Form/FormRenderControl.js";
4
- import { CheckboxLabel as k } from "../Checkbox/Checkbox.js";
2
+ import { FormRenderControl as a } from "./ui34.js";
3
+ import { FormControl as l } from "./ui33.js";
4
+ import { CheckboxLabel as k } from "./ui23.js";
5
5
  const f = (m) => {
6
6
  const { form: t, label: c, name: h, onCheckedChange: C, ...r } = m;
7
7
  return /* @__PURE__ */ e(
8
- l,
8
+ a,
9
9
  {
10
10
  form: t,
11
11
  name: h,
12
- render: ({ field: o }) => /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
12
+ render: ({ field: o }) => /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(
13
13
  k,
14
14
  {
15
15
  ...o,
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { FormControl as b } from "../Form/Form.js";
3
- import { FormRenderControl as p } from "../Form/FormRenderControl.js";
4
- import { Combobox as a } from "../Combobox/Combobox.js";
2
+ import { Combobox as b } from "./ui25.js";
3
+ import { FormRenderControl as p } from "./ui34.js";
4
+ import { FormControl as a } from "./ui33.js";
5
5
  const x = (m) => {
6
6
  const { form: n, label: e, name: t, ...C } = m;
7
7
  return /* @__PURE__ */ o(
@@ -10,8 +10,8 @@ const x = (m) => {
10
10
  form: n,
11
11
  label: e,
12
12
  name: t,
13
- render: ({ field: r }) => /* @__PURE__ */ o(b, { children: /* @__PURE__ */ o(
14
- a,
13
+ render: ({ field: r }) => /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(
14
+ b,
15
15
  {
16
16
  ...C,
17
17
  ...r,
@@ -1,16 +1,16 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { DatePicker as l } from "../DatePicker/DatePicker.js";
3
- import { FormControl as p } from "../Form/Form.js";
4
- import { FormRenderControl as s } from "../Form/FormRenderControl.js";
2
+ import { DatePicker as l } from "./ui28.js";
3
+ import { FormRenderControl as p } from "./ui34.js";
4
+ import { FormControl as s } from "./ui33.js";
5
5
  const g = (t) => {
6
6
  const { form: n, name: m, label: a, onDateChange: c, ...i } = t;
7
7
  return /* @__PURE__ */ o(
8
- s,
8
+ p,
9
9
  {
10
10
  form: n,
11
11
  name: m,
12
12
  label: a,
13
- render: ({ field: r }) => /* @__PURE__ */ o(p, { children: /* @__PURE__ */ o(
13
+ render: ({ field: r }) => /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(
14
14
  l,
15
15
  {
16
16
  ...r,
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { FormControl as x } from "../Form/Form.js";
3
- import { FormRenderControl as C } from "../Form/FormRenderControl.js";
4
- import { Input as D } from "../Input/Input.js";
5
- import { forwardRef as F } from "react";
2
+ import { forwardRef as x } from "react";
3
+ import { FormRenderControl as C } from "./ui34.js";
4
+ import { FormControl as D } from "./ui33.js";
5
+ import { Input as F } from "./ui43.js";
6
6
  function I(l, e) {
7
7
  const { form: a, label: s, name: u, onChange: c, onBlur: m, onPaste: p, style: i, ...f } = l;
8
8
  return /* @__PURE__ */ r(
@@ -11,8 +11,8 @@ function I(l, e) {
11
11
  form: a,
12
12
  name: u,
13
13
  label: s,
14
- render: ({ field: o }) => /* @__PURE__ */ r(x, { children: /* @__PURE__ */ r(
15
- D,
14
+ render: ({ field: o }) => /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(
15
+ F,
16
16
  {
17
17
  ...o,
18
18
  ...f,
@@ -39,7 +39,7 @@ function I(l, e) {
39
39
  }
40
40
  );
41
41
  }
42
- const j = F(I);
42
+ const j = x(I);
43
43
  export {
44
44
  j as FormInput
45
45
  };
package/ui39.js ADDED
@@ -0,0 +1,39 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Select as g } from "./ui64.js";
3
+ import { FormRenderControl as C } from "./ui34.js";
4
+ import { FormControl as f } from "./ui33.js";
5
+ const x = (n) => {
6
+ const {
7
+ form: t,
8
+ label: m,
9
+ name: a,
10
+ options: i = [],
11
+ onChange: l,
12
+ containerProps: p,
13
+ ...c
14
+ } = n;
15
+ return /* @__PURE__ */ o(
16
+ C,
17
+ {
18
+ form: t,
19
+ name: a,
20
+ label: m,
21
+ containerProps: p,
22
+ render: ({ field: e }) => /* @__PURE__ */ o(
23
+ g,
24
+ {
25
+ value: e.value,
26
+ options: i,
27
+ onChange: (r) => {
28
+ e.onChange(r), l?.(r);
29
+ },
30
+ renderTrigger: (r, s) => /* @__PURE__ */ o(f, { children: s }),
31
+ ...c
32
+ }
33
+ )
34
+ }
35
+ );
36
+ };
37
+ export {
38
+ x as FormSelect
39
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
3
  import { cn as l } from "@oneplatformdev/utils";
4
- import { alertVariants as m } from "./alertVariants.js";
4
+ import { alertVariants as m } from "./ui89.js";
5
5
  const s = i.forwardRef(({ className: e, variant: r, ...t }, o) => /* @__PURE__ */ a(
6
6
  "div",
7
7
  {
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { FormControl as p } from "../Form/Form.js";
3
- import { FormRenderControl as i } from "../Form/FormRenderControl.js";
4
- import { Textarea as s } from "../Textarea/Textarea.js";
2
+ import { Textarea as p } from "./ui75.js";
3
+ import { FormRenderControl as i } from "./ui34.js";
4
+ import { FormControl as s } from "./ui33.js";
5
5
  const F = (e) => {
6
6
  const { form: t, label: m, name: n, containerProps: a, ...l } = e;
7
7
  return /* @__PURE__ */ r(
@@ -11,8 +11,8 @@ const F = (e) => {
11
11
  name: n,
12
12
  label: m,
13
13
  containerProps: a,
14
- render: ({ field: o }) => /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(
15
- s,
14
+ render: ({ field: o }) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(
15
+ p,
16
16
  {
17
17
  ...o,
18
18
  value: o.value || "",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { SidebarTrigger as t } from "../Sidebar/Sidebar.js";
3
- import { Separator as l } from "../Separator/Separator.js";
2
+ import { SidebarTrigger as t } from "./ui67.js";
3
+ import { Separator as l } from "./ui65.js";
4
4
  const m = (s) => {
5
5
  const {
6
6
  children: r,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as N, jsx as s } from "react/jsx-runtime";
2
2
  import c, { useState as b } from "react";
3
3
  import { Eye as v, EyeOff as h } from "lucide-react";
4
- import { inputVariants as P } from "./inputVariants.js";
4
+ import { inputVariants as P } from "./ui90.js";
5
5
  import { cn as p } from "@oneplatformdev/utils";
6
6
  const m = c.forwardRef(
7
7
  (t, a) => {
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
3
  import * as o from "@radix-ui/react-label";
4
4
  import { cn as e } from "@oneplatformdev/utils";
5
- import { labelVariants as s } from "./labelVariants.js";
5
+ import { labelVariants as s } from "./ui46.js";
6
6
  const p = i.forwardRef(({ className: a, ...r }, m) => /* @__PURE__ */ t(
7
7
  o.Root,
8
8
  {
package/ui47.js ADDED
@@ -0,0 +1,7 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Suspense as m } from "react";
3
+ import { LoadingMask as t } from "./ui49.js";
4
+ const p = (r, a = !0) => (e) => /* @__PURE__ */ o(m, { fallback: a ? /* @__PURE__ */ o(t, {}) : null, children: /* @__PURE__ */ o(r, { ...e }) });
5
+ export {
6
+ p as LazyLoader
7
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { RenderLoadingMask as r } from "./RenderLoadingMask.js";
2
+ import { RenderLoadingMask as r } from "./ui50.js";
3
3
  import { cn as o } from "@oneplatformdev/utils";
4
4
  const f = (t) => {
5
5
  const { fullWidth: s = !1, className: i, ...n } = t;