@oneplatformdev/ui 0.1.10-0 → 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 +24 -0
  2. package/package.json +14 -8
  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,39 +1,38 @@
1
1
  import { jsx as l, jsxs as c } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
- import * as e from "@radix-ui/react-alert-dialog";
3
+ import * as t from "@radix-ui/react-alert-dialog";
4
4
  import { cn as s } from "@oneplatformdev/utils";
5
- import "../Button/Button.js";
6
- import { buttonVariants as n } from "../Button/buttonVariants.js";
7
- const v = e.Root, C = e.Trigger, f = e.Portal, m = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
8
- e.Overlay,
5
+ import { buttonVariants as n } from "./ui16.js";
6
+ const b = t.Root, v = t.Trigger, f = t.Portal, m = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
7
+ t.Overlay,
9
8
  {
10
9
  className: s(
11
10
  "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
12
11
  a
13
12
  ),
14
- ...t,
13
+ ...e,
15
14
  ref: o
16
15
  }
17
16
  ));
18
- m.displayName = e.Overlay.displayName;
19
- const p = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ c(f, { children: [
17
+ m.displayName = t.Overlay.displayName;
18
+ const p = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ c(f, { children: [
20
19
  /* @__PURE__ */ l(m, {}),
21
20
  /* @__PURE__ */ l(
22
- e.Content,
21
+ t.Content,
23
22
  {
24
23
  ref: o,
25
24
  className: s(
26
25
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
27
26
  a
28
27
  ),
29
- ...t
28
+ ...e
30
29
  }
31
30
  )
32
31
  ] }));
33
- p.displayName = e.Content.displayName;
32
+ p.displayName = t.Content.displayName;
34
33
  const g = ({
35
34
  className: a,
36
- ...t
35
+ ...e
37
36
  }) => /* @__PURE__ */ l(
38
37
  "div",
39
38
  {
@@ -41,13 +40,13 @@ const g = ({
41
40
  "w-full min-w-0 flex flex-col space-y-2 text-center sm:text-left",
42
41
  a
43
42
  ),
44
- ...t
43
+ ...e
45
44
  }
46
45
  );
47
46
  g.displayName = "AlertDialogHeader";
48
47
  const N = ({
49
48
  className: a,
50
- ...t
49
+ ...e
51
50
  }) => /* @__PURE__ */ l(
52
51
  "div",
53
52
  {
@@ -55,50 +54,50 @@ const N = ({
55
54
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
56
55
  a
57
56
  ),
58
- ...t
57
+ ...e
59
58
  }
60
59
  );
61
60
  N.displayName = "AlertDialogFooter";
62
- const y = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
63
- e.Title,
61
+ const y = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
62
+ t.Title,
64
63
  {
65
64
  ref: o,
66
65
  className: s("text-lg font-semibold", a),
67
- ...t
66
+ ...e
68
67
  }
69
68
  ));
70
- y.displayName = e.Title.displayName;
71
- const x = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
72
- e.Description,
69
+ y.displayName = t.Title.displayName;
70
+ const x = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
71
+ t.Description,
73
72
  {
74
73
  ref: o,
75
74
  className: s("text-sm text-muted-foreground", a),
76
- ...t
75
+ ...e
77
76
  }
78
77
  ));
79
- x.displayName = e.Description.displayName;
80
- const u = i.forwardRef(({ className: a, variant: t, size: o, ...r }, d) => /* @__PURE__ */ l(
81
- e.Action,
78
+ x.displayName = t.Description.displayName;
79
+ const u = i.forwardRef(({ className: a, variant: e, size: o, ...r }, d) => /* @__PURE__ */ l(
80
+ t.Action,
82
81
  {
83
82
  ref: d,
84
- className: s(n({ variant: t, size: o }), a),
83
+ className: s(n({ variant: e, size: o }), a),
85
84
  ...r
86
85
  }
87
86
  ));
88
- u.displayName = e.Action.displayName;
89
- const A = i.forwardRef(({ className: a, variant: t = "outline-solid", size: o, ...r }, d) => /* @__PURE__ */ l(
90
- e.Cancel,
87
+ u.displayName = t.Action.displayName;
88
+ const A = i.forwardRef(({ className: a, variant: e = "outline-solid", size: o, ...r }, d) => /* @__PURE__ */ l(
89
+ t.Cancel,
91
90
  {
92
91
  ref: d,
93
92
  className: s(
94
- n({ variant: t, size: o }),
93
+ n({ variant: e, size: o }),
95
94
  "mt-2 sm:mt-0",
96
95
  a
97
96
  ),
98
97
  ...r
99
98
  }
100
99
  ));
101
- A.displayName = e.Cancel.displayName;
100
+ A.displayName = t.Cancel.displayName;
102
101
  export {
103
102
  u as AlertDialogAction,
104
103
  A as AlertDialogCancel,
@@ -108,7 +107,7 @@ export {
108
107
  g as AlertDialogHeader,
109
108
  m as AlertDialogOverlay,
110
109
  f as AlertDialogPortal,
111
- v as AlertDialogRoot,
110
+ b as AlertDialogRoot,
112
111
  y as AlertDialogTitle,
113
- C as AlertDialogTrigger
112
+ v as AlertDialogTrigger
114
113
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { cn as r } from "@oneplatformdev/utils";
3
- import { loadingProgressVariants as a } from "./loadingProgressVariants.js";
3
+ import { loadingProgressVariants as a } from "./ui52.js";
4
4
  const f = (e) => {
5
5
  const { className: s, fullWidth: t = !1, size: i, color: l, wrapClassName: n } = e;
6
6
  return /* @__PURE__ */ o(
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
3
  import * as e from "@radix-ui/react-menubar";
4
- import { ChevronRight as m, Check as u, Circle as p } from "lucide-react";
4
+ import { Check as m, Circle as u, ChevronRight as p } from "lucide-react";
5
5
  import { cn as s } from "@oneplatformdev/utils";
6
6
  const k = e.Menu, z = e.Group, T = e.Portal, j = e.Sub, G = e.RadioGroup, f = d.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ r(
7
7
  e.Root,
@@ -39,7 +39,7 @@ const g = d.forwardRef(({ className: t, inset: a, children: o, ...n }, i) => /*
39
39
  ...n,
40
40
  children: [
41
41
  o,
42
- /* @__PURE__ */ r(m, { className: "ml-auto h-4 w-4" })
42
+ /* @__PURE__ */ r(p, { className: "ml-auto h-4 w-4" })
43
43
  ]
44
44
  }
45
45
  ));
@@ -97,7 +97,7 @@ const y = d.forwardRef(({ className: t, children: a, checked: o, ...n }, i) => /
97
97
  checked: o,
98
98
  ...n,
99
99
  children: [
100
- /* @__PURE__ */ r("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ r(e.ItemIndicator, { children: /* @__PURE__ */ r(u, { className: "h-4 w-4" }) }) }),
100
+ /* @__PURE__ */ r("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ r(e.ItemIndicator, { children: /* @__PURE__ */ r(m, { className: "h-4 w-4" }) }) }),
101
101
  a
102
102
  ]
103
103
  }
@@ -113,7 +113,7 @@ const w = d.forwardRef(({ className: t, children: a, ...o }, n) => /* @__PURE__
113
113
  ),
114
114
  ...o,
115
115
  children: [
116
- /* @__PURE__ */ r("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ r(e.ItemIndicator, { children: /* @__PURE__ */ r(p, { className: "h-4 w-4 fill-current" }) }) }),
116
+ /* @__PURE__ */ r("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ r(e.ItemIndicator, { children: /* @__PURE__ */ r(u, { className: "h-4 w-4 fill-current" }) }) }),
117
117
  a
118
118
  ]
119
119
  }
@@ -3,7 +3,7 @@ import * as r from "react";
3
3
  import * as t from "@radix-ui/react-navigation-menu";
4
4
  import { ChevronDown as l } from "lucide-react";
5
5
  import { cn as n } from "@oneplatformdev/utils";
6
- import { navigationMenuVariants as f } from "./navigationMenuVariants.js";
6
+ import { navigationMenuVariants as f } from "./ui55.js";
7
7
  const p = r.forwardRef(({ className: a, children: e, ...o }, d) => /* @__PURE__ */ s(
8
8
  t.Root,
9
9
  {
@@ -2,8 +2,7 @@ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import { ChevronLeft as m, ChevronRight as c, MoreHorizontal as p } from "lucide-react";
4
4
  import { cn as n } from "@oneplatformdev/utils";
5
- import "../Button/Button.js";
6
- import { buttonVariants as g } from "../Button/buttonVariants.js";
5
+ import { buttonVariants as g } from "./ui16.js";
7
6
  const d = ({ className: i, ...a }) => /* @__PURE__ */ e(
8
7
  "nav",
9
8
  {
@@ -2,7 +2,7 @@ import { jsx as a } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
3
  import * as o from "@radix-ui/react-popover";
4
4
  import { cn as l } from "@oneplatformdev/utils";
5
- import { useDialogOverlayContainer as c } from "../Dialog/DialogOverlayScope.js";
5
+ import { useDialogOverlayContainer as c } from "./ui30.js";
6
6
  const h = (t) => {
7
7
  const { modal: e, ...r } = t;
8
8
  return /* @__PURE__ */ a(o.Root, { modal: e, ...r });
@@ -3,7 +3,7 @@ import * as o from "@radix-ui/react-radio-group";
3
3
  import { Circle as c } from "lucide-react";
4
4
  import * as s from "react";
5
5
  import { cn as t } from "@oneplatformdev/utils";
6
- import { Label as p } from "../Label/Label.js";
6
+ import { Label as p } from "./ui45.js";
7
7
  const f = s.forwardRef(({ className: r, ...a }, i) => /* @__PURE__ */ e(
8
8
  o.Root,
9
9
  {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as g, jsx as t } from "react/jsx-runtime";
2
2
  import { cloneElement as a, useId as j, Children as y } from "react";
3
- import { AlertDialogRoot as E, AlertDialogContent as u, AlertDialogTrigger as v, AlertDialogHeader as f, AlertDialogTitle as B, AlertDialogDescription as R, AlertDialogFooter as A, AlertDialogAction as D, AlertDialogCancel as k } from "./AlertDialogRoot.js";
3
+ import { AlertDialogRoot as E, AlertDialogContent as u, AlertDialogTrigger as v, AlertDialogHeader as f, AlertDialogTitle as B, AlertDialogDescription as R, AlertDialogFooter as A, AlertDialogAction as D, AlertDialogCancel as k } from "./ui5.js";
4
4
  import { isValidReactElement as s } from "@oneplatformdev/utils";
5
5
  const F = (o) => {
6
6
  const { slotProps: e = {}, children: r } = o, i = e.trigger ?? {};
@@ -1,10 +1,10 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { useState as g } from "react";
3
- import { Input as v } from "../Input/Input.js";
4
- import { useDebounceCallback as C } from "@oneplatformdev/hooks";
5
- import { cn as b } from "@oneplatformdev/utils";
6
- import { SearchIcon as x } from "lucide-react";
7
- import { LoadedIcon as I } from "../LoadedIcon/LoadedIcon.js";
3
+ import { useDebounceCallback as v } from "@oneplatformdev/hooks";
4
+ import { cn as C } from "@oneplatformdev/utils";
5
+ import { SearchIcon as b } from "lucide-react";
6
+ import { LoadedIcon as x } from "./ui48.js";
7
+ import { Input as I } from "./ui43.js";
8
8
  const D = (a) => {
9
9
  const {
10
10
  search: t,
@@ -16,24 +16,24 @@ const D = (a) => {
16
16
  slotProps: e,
17
17
  name: l = "search",
18
18
  ...h
19
- } = a, [p, u] = g(t), d = C(s, 1e3), f = (o) => {
19
+ } = a, [p, u] = g(t), d = v(s, 1e3), f = (o) => {
20
20
  const S = o.target.value;
21
21
  u(S), n?.(o), d(o.target.value);
22
22
  };
23
23
  return /* @__PURE__ */ r(
24
- v,
24
+ I,
25
25
  {
26
26
  name: l,
27
27
  placeholder: c,
28
28
  value: p,
29
- className: b("min-w-[340px]", m),
29
+ className: C("min-w-[340px]", m),
30
30
  onChange: f,
31
31
  ...h,
32
32
  ...e || {},
33
33
  slotProps: {
34
34
  ...e || {},
35
35
  input: {
36
- startAdornment: /* @__PURE__ */ r(I, { loading: i, size: "sm", children: /* @__PURE__ */ r(x, {}) }),
36
+ startAdornment: /* @__PURE__ */ r(x, { loading: i, size: "sm", children: /* @__PURE__ */ r(b, {}) }),
37
37
  ...e?.input || {}
38
38
  }
39
39
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import * as e from "@radix-ui/react-select";
4
- import { ChevronDown as n, ChevronUp as u, Check as h } from "lucide-react";
4
+ import { ChevronDown as n, Check as u, ChevronUp as h } from "lucide-react";
5
5
  import { cn as s } from "@oneplatformdev/utils";
6
6
  const R = e.Root, C = e.Group, I = e.Value, w = l.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__ */ i(
7
7
  e.Trigger,
@@ -29,7 +29,7 @@ const c = l.forwardRef(({ className: o, ...r }, a) => /* @__PURE__ */ t(
29
29
  o
30
30
  ),
31
31
  ...r,
32
- children: /* @__PURE__ */ t(u, { className: "h-4 w-4" })
32
+ children: /* @__PURE__ */ t(h, { className: "h-4 w-4" })
33
33
  }
34
34
  ));
35
35
  c.displayName = e.ScrollUpButton.displayName;
@@ -97,7 +97,7 @@ const N = l.forwardRef(({ className: o, children: r, ...a }, d) => /* @__PURE__
97
97
  ),
98
98
  ...a,
99
99
  children: [
100
- /* @__PURE__ */ t("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t(e.ItemIndicator, { children: /* @__PURE__ */ t(h, { className: "h-4 w-4" }) }) }),
100
+ /* @__PURE__ */ t("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t(e.ItemIndicator, { children: /* @__PURE__ */ t(u, { className: "h-4 w-4" }) }) }),
101
101
  /* @__PURE__ */ t(e.ItemText, { children: r })
102
102
  ]
103
103
  }
@@ -1,12 +1,11 @@
1
- import { jsxs as d, jsx as r, Fragment as h } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as r, Fragment as p } from "react/jsx-runtime";
2
2
  import { createElement as m, isValidElement as v } from "react";
3
- import { Button as x } from "../Button/Button.js";
4
- import "../Button/buttonVariants.js";
5
- import { SelectRoot as S, SelectContent as y, SelectTrigger as b, SelectValue as C, SelectItem as f } from "./SelectRoot.js";
6
- import { isValidReactElement as R } from "@oneplatformdev/utils";
3
+ import { isValidReactElement as x } from "@oneplatformdev/utils";
4
+ import { SelectRoot as S, SelectContent as y, SelectTrigger as b, SelectValue as C, SelectItem as f } from "./ui63.js";
5
+ import { Button as R } from "./ui15.js";
7
6
  const V = (n) => {
8
7
  const { placeholder: t, renderTrigger: e, slotProps: o } = n, l = /* @__PURE__ */ r(b, { ...o?.triggerProps || {}, children: /* @__PURE__ */ r(C, { placeholder: t }) });
9
- return e && typeof e == "function" && R(e(n, l)) ? e(n, l) : l;
8
+ return e && typeof e == "function" && x(e(n, l)) ? e(n, l) : l;
10
9
  }, c = (n) => {
11
10
  const { children: t, option: e, deep: o = 0 } = n;
12
11
  return /* @__PURE__ */ d(
@@ -18,26 +17,26 @@ const V = (n) => {
18
17
  style: { paddingLeft: `calc(8px + ${(o || 0) * 8}px)` },
19
18
  children: [
20
19
  !t && e.label,
21
- t && /* @__PURE__ */ r(h, { children: typeof t == "function" ? t({ ...n }) : t })
20
+ t && /* @__PURE__ */ r(p, { children: typeof t == "function" ? t({ ...n }) : t })
22
21
  ]
23
22
  },
24
23
  e.value
25
24
  );
26
- }, p = (n) => {
27
- const { renderOption: t, option: e, index: o, options: l, deep: u = 0, ...a } = n;
25
+ }, g = (n) => {
26
+ const { renderOption: t, option: e, index: o, options: l, deep: u = 0, ...i } = n;
28
27
  return t && typeof t == "function" && v(
29
28
  t(
30
29
  e,
31
30
  o,
32
31
  l,
33
- { ...a, options: l },
32
+ { ...i, options: l },
34
33
  /* @__PURE__ */ r(c, { ...n })
35
34
  )
36
35
  ) ? /* @__PURE__ */ r(f, { value: e.value, children: t(
37
36
  e,
38
37
  o,
39
38
  l,
40
- { ...a, options: l },
39
+ { ...i, options: l },
41
40
  /* @__PURE__ */ r(c, { ...n })
42
41
  ) }, e.value) : e.children?.length ? /* @__PURE__ */ d(
43
42
  "div",
@@ -45,13 +44,13 @@ const V = (n) => {
45
44
  className: "flex flex-col gap-1 truncate line-clamp-2",
46
45
  children: [
47
46
  /* @__PURE__ */ r(c, { ...n }),
48
- e.children?.map((i, s, g) => /* @__PURE__ */ m(
49
- p,
47
+ e.children?.map((a, s, h) => /* @__PURE__ */ m(
48
+ g,
50
49
  {
51
50
  ...n,
52
- key: i.value,
53
- option: i,
54
- options: g,
51
+ key: a.value,
52
+ option: a,
53
+ options: h,
55
54
  index: s,
56
55
  deep: (u || 0) + 1
57
56
  }
@@ -60,20 +59,20 @@ const V = (n) => {
60
59
  },
61
60
  e.value
62
61
  ) : /* @__PURE__ */ r(c, { ...n });
63
- }, j = (n) => {
62
+ }, T = (n) => {
64
63
  const {
65
64
  value: t,
66
65
  options: e,
67
66
  onChange: o,
68
67
  nullable: l = !1,
69
68
  clearLabel: u = "Clear",
70
- disabled: a
69
+ disabled: i
71
70
  } = n;
72
- return /* @__PURE__ */ d(S, { value: t, onValueChange: o, disabled: a, children: [
71
+ return /* @__PURE__ */ d(S, { value: t, onValueChange: o, disabled: i, children: [
73
72
  /* @__PURE__ */ r(V, { ...n }),
74
73
  /* @__PURE__ */ d(y, { children: [
75
74
  l && /* @__PURE__ */ r(
76
- x,
75
+ R,
77
76
  {
78
77
  className: "w-full px-2",
79
78
  variant: "secondary",
@@ -84,12 +83,12 @@ const V = (n) => {
84
83
  children: u
85
84
  }
86
85
  ),
87
- e.map((i, s) => /* @__PURE__ */ m(
88
- p,
86
+ e.map((a, s) => /* @__PURE__ */ m(
87
+ g,
89
88
  {
90
89
  ...n,
91
- key: i.value,
92
- option: i,
90
+ key: a.value,
91
+ option: a,
93
92
  index: s,
94
93
  deep: 0
95
94
  }
@@ -98,5 +97,5 @@ const V = (n) => {
98
97
  ] });
99
98
  };
100
99
  export {
101
- j as Select
100
+ T as Select
102
101
  };
@@ -3,16 +3,15 @@ import * as i from "react";
3
3
  import { Slot as h } from "@radix-ui/react-slot";
4
4
  import { cva as _ } from "class-variance-authority";
5
5
  import { PanelLeft as I } from "lucide-react";
6
- import { useIsMobile as z } from "../packages/hooks/src/useIsMobile/useIsMobile.js";
6
+ import { useIsMobile as z } from "./ui97.js";
7
7
  import { cn as d } from "@oneplatformdev/utils";
8
- import { Button as B } from "../Button/Button.js";
9
- import "../Button/buttonVariants.js";
10
- import { Input as E } from "../Input/Input.js";
11
- import { Separator as T } from "../Separator/Separator.js";
12
- import { Sheet as A, SheetContent as D } from "../Sheet/Sheet.js";
13
- import { Skeleton as M } from "../Skeleton/Skeleton.js";
14
- import { TooltipProvider as O, TooltipTrigger as G, TooltipContent as H } from "../Tooltip/TooltipRoot.js";
15
- import { Tooltip as K } from "../Tooltip/Tooltip.js";
8
+ import { Sheet as B, SheetContent as E } from "./ui66.js";
9
+ import { Input as T } from "./ui43.js";
10
+ import { TooltipTrigger as A, TooltipContent as D, TooltipProvider as O } from "./ui83.js";
11
+ import { Skeleton as M } from "./ui68.js";
12
+ import { Separator as G } from "./ui65.js";
13
+ import { Button as H } from "./ui15.js";
14
+ import { Tooltip as K } from "./ui84.js";
16
15
  const L = "sidebar:state", j = 3600 * 24 * 7, P = "16rem", $ = "18rem", V = "3rem", W = "b", R = i.createContext(null);
17
16
  function N() {
18
17
  const a = i.useContext(R);
@@ -96,8 +95,8 @@ const F = i.forwardRef(
96
95
  ...s,
97
96
  children: n
98
97
  }
99
- ) : m ? /* @__PURE__ */ r(A, { open: p, onOpenChange: u, ...s, children: /* @__PURE__ */ r(
100
- D,
98
+ ) : m ? /* @__PURE__ */ r(B, { open: p, onOpenChange: u, ...s, children: /* @__PURE__ */ r(
99
+ E,
101
100
  {
102
101
  "data-sidebar": "sidebar",
103
102
  "data-mobile": "true",
@@ -159,7 +158,7 @@ F.displayName = "Sidebar";
159
158
  const U = i.forwardRef(({ className: a, onClick: e, ...t }, o) => {
160
159
  const { toggleSidebar: n } = N();
161
160
  return /* @__PURE__ */ S(
162
- B,
161
+ H,
163
162
  {
164
163
  ref: o,
165
164
  "data-sidebar": "trigger",
@@ -217,7 +216,7 @@ const Y = i.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
217
216
  ));
218
217
  Y.displayName = "SidebarInset";
219
218
  const J = i.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
220
- E,
219
+ T,
221
220
  {
222
221
  ref: t,
223
222
  "data-sidebar": "input",
@@ -250,7 +249,7 @@ const Z = i.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
250
249
  ));
251
250
  Z.displayName = "SidebarFooter";
252
251
  const ee = i.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
253
- T,
252
+ G,
254
253
  {
255
254
  ref: t,
256
255
  "data-sidebar": "separator",
@@ -385,9 +384,9 @@ const se = _(
385
384
  return n ? (typeof n == "string" && (n = {
386
385
  children: n
387
386
  }), /* @__PURE__ */ S(K, { children: [
388
- /* @__PURE__ */ r(G, { asChild: !0, children: v }),
387
+ /* @__PURE__ */ r(A, { asChild: !0, children: v }),
389
388
  /* @__PURE__ */ r(
390
- H,
389
+ D,
391
390
  {
392
391
  side: "right",
393
392
  align: "center",
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
2
  import { AreaChart as s, CartesianGrid as n, XAxis as l, YAxis as h, Area as p } from "recharts";
3
- import { ChartContainer as d, ChartTooltip as f, ChartTooltipContent as c } from "../Chart/Chart.js";
3
+ import { ChartContainer as d, ChartTooltip as f, ChartTooltipContent as c } from "./ui22.js";
4
4
  const k = ({ data: o, config: i }) => /* @__PURE__ */ t(d, { config: i, className: "h-[350px] w-full", children: /* @__PURE__ */ a(s, { data: o, width: 808, height: 350, margin: { top: 10, right: 10, left: 0, bottom: 0 }, children: [
5
5
  /* @__PURE__ */ t("defs", { children: Object.entries(i).map(([e, { color: r }]) => /* @__PURE__ */ a("linearGradient", { id: `${e}Gradient`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
6
6
  /* @__PURE__ */ t("stop", { offset: "5%", stopColor: r, stopOpacity: 0.8 }),
@@ -1,6 +1,6 @@
1
1
  import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
2
  import { Children as c } from "react";
3
- import { TabsContent as p, TabsRoot as m, TabsList as b, TabsTrigger as i } from "./TabsRoot.js";
3
+ import { TabsContent as p, TabsRoot as m, TabsList as b, TabsTrigger as i } from "./ui73.js";
4
4
  const h = (a) => {
5
5
  const { tabs: s = [], contents: t } = a;
6
6
  return c.map(t, (n, r) => {
@@ -2,7 +2,7 @@ import { jsxs as l, Fragment as g, jsx as b } from "react/jsx-runtime";
2
2
  import * as h from "react";
3
3
  import { useId as A, useRef as v, useState as w, useImperativeHandle as z, useEffect as F } from "react";
4
4
  import { cn as d } from "@oneplatformdev/utils";
5
- import { useAutosizeTextArea as N } from "./useAutosizeTextArea.js";
5
+ import { useAutosizeTextArea as N } from "./ui96.js";
6
6
  const y = h.forwardRef(
7
7
  (u, m) => {
8
8
  const {
@@ -2,9 +2,8 @@ import { jsxs as n, jsx as e, Fragment as c } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
3
  import { Moon as h, Sun as u, SunMoon as p } from "lucide-react";
4
4
  import { useTheme as l } from "next-themes";
5
- import { Button as g } from "../Button/Button.js";
6
- import "../Button/buttonVariants.js";
7
- import { DropdownMenu as T, DropdownMenuTrigger as f, DropdownMenuContent as M, DropdownMenuItem as k } from "../DropdownMenu/DropdownMenu.js";
5
+ import { Button as g } from "./ui15.js";
6
+ import { DropdownMenu as T, DropdownMenuTrigger as f, DropdownMenuContent as M, DropdownMenuItem as k } from "./ui32.js";
8
7
  const y = {
9
8
  system: p,
10
9
  light: u,
@@ -20,7 +19,7 @@ const y = {
20
19
  ),
21
20
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Toggle theme" })
22
21
  ] });
23
- }, I = (r) => {
22
+ }, v = (r) => {
24
23
  const {
25
24
  lightLabel: o = "Light",
26
25
  darkLabel: a = "Dark",
@@ -43,6 +42,6 @@ const y = {
43
42
  ] });
44
43
  };
45
44
  export {
46
- I as ThemeModeToggle,
47
- I as default
45
+ v as ThemeModeToggle,
46
+ v as default
48
47
  };
@@ -3,7 +3,7 @@ import * as i from "react";
3
3
  import * as e from "@radix-ui/react-toast";
4
4
  import { X as c } from "lucide-react";
5
5
  import { cn as a } from "@oneplatformdev/utils";
6
- import { toastVariants as n } from "./toastVariants.js";
6
+ import { toastVariants as n } from "./ui92.js";
7
7
  const h = e.Provider, m = i.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ s(
8
8
  e.Viewport,
9
9
  {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
- import { SidebarProvider as s, SidebarInset as n } from "../Sidebar/Sidebar.js";
2
+ import { SidebarProvider as s, SidebarInset as n } from "./ui67.js";
3
3
  const c = (d) => {
4
4
  const {
5
5
  children: l,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
- import { useToast as c } from "../Toast/useToast.js";
3
- import { ToastProvider as T, Toast as m, ToastTitle as d, ToastDescription as l, ToastClose as p, ToastViewport as f } from "../Toast/Toast.js";
2
+ import { useToast as c } from "./ui79.js";
3
+ import { ToastProvider as T, Toast as m, ToastTitle as d, ToastDescription as l, ToastClose as p, ToastViewport as f } from "./ui78.js";
4
4
  function g() {
5
5
  const { toasts: e } = c();
6
6
  return /* @__PURE__ */ r(T, { children: [
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
2
2
  import * as e from "react";
3
3
  import * as t from "@radix-ui/react-toggle-group";
4
4
  import { cn as p } from "@oneplatformdev/utils";
5
- import { toggleVariants as f } from "../Toggle/Toggle.js";
5
+ import { toggleVariants as f } from "./ui81.js";
6
6
  const c = e.createContext({
7
7
  size: "default",
8
8
  variant: "default"
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
2
- import { TooltipProvider as a, TooltipRoot as c, TooltipTrigger as d, TooltipContent as p } from "./TooltipRoot.js";
2
+ import { TooltipProvider as a, TooltipRoot as c, TooltipTrigger as d, TooltipContent as p } from "./ui83.js";
3
3
  const m = (r) => {
4
4
  const { trigger: t, children: e, message: i = "", delay: l = 100, ...n } = r;
5
5
  return /* @__PURE__ */ o(a, { children: /* @__PURE__ */ s(c, { delayDuration: l, ...n, children: [
@@ -3,11 +3,11 @@ import { X as H } from "lucide-react";
3
3
  import { forwardRef as O, useState as g, useImperativeHandle as X } from "react";
4
4
  import { useDropzone as Y } from "react-dropzone";
5
5
  import { cn as n } from "@oneplatformdev/utils";
6
- import { Card as q } from "../Card/Card.js";
7
- import { DEFAULT_FILE_TYPES as G } from "./Dropzone.types.js";
8
- import { FilePreview as J } from "./DropzoneFilePreview.js";
9
- import { DropzoneSinglePickPreview as K } from "./DropzoneSinglePickPreview.js";
10
- import { DefaultFileIcon as Q, isFile as v, extractName as R } from "./DropzoneUtils.js";
6
+ import { Card as q } from "./ui20.js";
7
+ import { DEFAULT_FILE_TYPES as G } from "./ui86.js";
8
+ import { FilePreview as J } from "./ui93.js";
9
+ import { DropzoneSinglePickPreview as K } from "./ui94.js";
10
+ import { DefaultFileIcon as Q, isFile as v, extractName as R } from "./ui95.js";
11
11
  const Z = O(
12
12
  ({
13
13
  acceptTypes: w = G,
package/ui87.js ADDED
@@ -0,0 +1,19 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Dropzone as a } from "./ui85.js";
3
+ import { FormRenderControl as l } from "./ui34.js";
4
+ import { FormControl as f } from "./ui33.js";
5
+ const h = (n) => {
6
+ const { form: e, label: m, name: t, ...p } = n;
7
+ return /* @__PURE__ */ o(
8
+ l,
9
+ {
10
+ form: e,
11
+ label: m,
12
+ name: t,
13
+ render: ({ field: r }) => /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(a, { ...p, ...r, onChangeValue: r.onChange }) })
14
+ }
15
+ );
16
+ };
17
+ export {
18
+ h as FormDropzone
19
+ };