@oneplatformdev/ui 0.0.1-beta.12 → 0.0.1-beta.121

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 (147) hide show
  1. package/Accordion/Accordion.d.ts +5 -3
  2. package/Accordion/Accordion.mjs +27 -24
  3. package/AlertDialog/AlertDialogRoot.d.ts +2 -2
  4. package/AlertDialog/AlertDialogRoot.mjs +7 -7
  5. package/Button/Button.mjs +11 -10
  6. package/Button/buttonVariants.mjs +14 -8
  7. package/Calendar/Calendar.mjs +3 -2
  8. package/Card/Card.d.ts +1 -1
  9. package/Card/Card.mjs +24 -23
  10. package/Checkbox/Checkbox.d.ts +5 -4
  11. package/Checkbox/Checkbox.mjs +48 -21
  12. package/Checkbox/Checkbox.types.d.ts +10 -0
  13. package/Checkbox/index.d.ts +1 -0
  14. package/Checkbox/index.mjs +3 -2
  15. package/Combobox/Combobox.d.ts +2 -2
  16. package/Combobox/Combobox.mjs +12 -123
  17. package/Combobox/Combobox.types.d.ts +36 -1
  18. package/Combobox/ComboboxOptionItem.d.ts +5 -0
  19. package/Combobox/ComboboxOptionItem.mjs +69 -0
  20. package/Combobox/ComboboxOptions.d.ts +4 -0
  21. package/Combobox/ComboboxOptions.mjs +12 -0
  22. package/Combobox/index.mjs +1 -1
  23. package/Combobox-CkGEIfTD.js +325 -0
  24. package/Command/Command.d.ts +1 -1
  25. package/Command/Command.mjs +15 -7
  26. package/DataTable/DataTable.d.ts +10 -3
  27. package/DataTable/DataTable.mjs +33 -33
  28. package/DataTable/DataTableColumnFilter.d.ts +4 -0
  29. package/DataTable/DataTableColumnFilter.mjs +31 -0
  30. package/DatePicker/DatePicker.mjs +2 -2
  31. package/Dialog/Dialog.d.ts +6 -3
  32. package/Dialog/Dialog.mjs +100 -64
  33. package/Dialog/DialogOverlayScope.d.ts +8 -0
  34. package/Dialog/DialogOverlayScope.mjs +7 -0
  35. package/Dialog/index.d.ts +1 -0
  36. package/Dialog/index.mjs +10 -8
  37. package/DropdownMenu/DropdownMenu.d.ts +2 -2
  38. package/DropdownMenu/DropdownMenu.mjs +30 -26
  39. package/Dropzone/Dropzone.d.ts +16 -10
  40. package/Dropzone/Dropzone.mjs +146 -113
  41. package/Dropzone/Dropzone.types.d.ts +33 -10
  42. package/Dropzone/DropzoneFilePreview.d.ts +4 -0
  43. package/Dropzone/DropzoneFilePreview.mjs +9 -0
  44. package/Dropzone/DropzoneSinglePickPreview.d.ts +10 -0
  45. package/Dropzone/DropzoneSinglePickPreview.mjs +44 -0
  46. package/Dropzone/DropzoneUtils.d.ts +5 -0
  47. package/Dropzone/DropzoneUtils.mjs +24 -0
  48. package/Dropzone/index.mjs +1 -1
  49. package/DropzoneFilePreview-Dhtv8F4u.js +67 -0
  50. package/Form/Form.d.ts +2 -2
  51. package/Form/Form.mjs +48 -45
  52. package/Form/FormRenderControl.d.ts +2 -3
  53. package/Form/FormRenderControl.mjs +10 -10
  54. package/Form/FormRenderControl.types.d.ts +5 -7
  55. package/FormCheckbox/FormCheckbox.d.ts +2 -3
  56. package/FormCheckbox/FormCheckbox.mjs +23 -23
  57. package/FormCheckbox/FormCheckbox.types.d.ts +3 -3
  58. package/FormCombobox/FormCombobox.d.ts +2 -2
  59. package/FormCombobox/FormCombobox.mjs +6 -6
  60. package/FormCombobox/FormCombobox.types.d.ts +2 -3
  61. package/FormDatePicker/FormDatePicker.d.ts +2 -2
  62. package/FormDatePicker/FormDatePicker.mjs +20 -18
  63. package/FormDatePicker/FormDatePicker.types.d.ts +2 -3
  64. package/FormDropzone/FormDropzone.d.ts +4 -0
  65. package/FormDropzone/FormDropzone.mjs +19 -0
  66. package/FormDropzone/FormDropzone.types.d.ts +6 -0
  67. package/FormDropzone/index.d.ts +2 -0
  68. package/FormDropzone/index.mjs +4 -0
  69. package/FormDropzone/package.json +7 -0
  70. package/FormInput/FormInput.d.ts +5 -3
  71. package/FormInput/FormInput.mjs +37 -16
  72. package/FormInput/FormInput.types.d.ts +2 -3
  73. package/FormRadio/FormRadio.d.ts +4 -0
  74. package/FormRadio/FormRadio.mjs +40 -0
  75. package/FormRadio/FormRadio.types.d.ts +6 -0
  76. package/FormRadio/index.d.ts +2 -0
  77. package/FormRadio/index.mjs +4 -0
  78. package/FormRadio/package.json +7 -0
  79. package/FormSelect/FormSelect.d.ts +2 -3
  80. package/FormSelect/FormSelect.mjs +19 -17
  81. package/FormSelect/FormSelect.types.d.ts +2 -3
  82. package/FormTextarea/FormTextarea.d.ts +2 -3
  83. package/FormTextarea/FormTextarea.mjs +13 -12
  84. package/FormTextarea/FormTextarea.types.d.ts +2 -3
  85. package/Input/Input.mjs +50 -38
  86. package/Input/Input.types.d.ts +6 -2
  87. package/Input/inputVariants.mjs +9 -3
  88. package/Label/Label.d.ts +2 -2
  89. package/Label/labelVariants.mjs +7 -4
  90. package/LazyLoader/LazyLoader.mjs +5 -4
  91. package/LoadedIcon/LoadedIcon.d.ts +11 -0
  92. package/LoadedIcon/LoadedIcon.mjs +27 -0
  93. package/LoadedIcon/index.d.ts +1 -0
  94. package/LoadedIcon/index.mjs +4 -0
  95. package/LoadedIcon/package.json +7 -0
  96. package/LoadingMask/LoadingMask.d.ts +4 -1
  97. package/LoadingMask/LoadingMask.mjs +18 -56
  98. package/LoadingMask/LoadingMask.types.d.ts +5 -0
  99. package/LoadingMask/RenderLoadingMask.d.ts +3 -0
  100. package/LoadingMask/RenderLoadingMask.mjs +108 -0
  101. package/LoadingMask/index.d.ts +2 -0
  102. package/LoadingMask/index.mjs +4 -2
  103. package/Popover/Popover.d.ts +3 -3
  104. package/Popover/Popover.mjs +30 -21
  105. package/Radio/Radio.d.ts +4 -0
  106. package/Radio/Radio.mjs +12 -0
  107. package/Radio/Radio.types.d.ts +11 -0
  108. package/Radio/index.d.ts +2 -0
  109. package/Radio/index.mjs +4 -0
  110. package/Radio/package.json +7 -0
  111. package/RadioGroup/RadioGroup.d.ts +9 -3
  112. package/RadioGroup/RadioGroup.mjs +37 -19
  113. package/RadioGroup/index.mjs +4 -3
  114. package/ScrollArea/ScrollArea.d.ts +2 -2
  115. package/ScrollArea/ScrollArea.mjs +26 -13
  116. package/Search/Search.d.ts +1 -2
  117. package/Search/Search.mjs +36 -21
  118. package/Search/Search.types.d.ts +1 -0
  119. package/Select/Select.mjs +94 -63
  120. package/Select/Select.types.d.ts +11 -3
  121. package/Select/SelectRoot.d.ts +2 -2
  122. package/Select/SelectRoot.mjs +29 -24
  123. package/Sheet/Sheet.d.ts +5 -2
  124. package/Sheet/Sheet.mjs +33 -33
  125. package/TablePagination/TablePagination.d.ts +16 -0
  126. package/TablePagination/TablePagination.mjs +74 -0
  127. package/TablePagination/index.d.ts +1 -0
  128. package/TablePagination/index.mjs +4 -0
  129. package/TablePagination/package.json +7 -0
  130. package/Tabs/Tabs.d.ts +3 -2
  131. package/Tabs/Tabs.mjs +20 -6
  132. package/Tabs/Tabs.types.d.ts +5 -2
  133. package/Tabs/index.mjs +8 -7
  134. package/Textarea/Textarea.d.ts +1 -1
  135. package/Textarea/Textarea.mjs +72 -15
  136. package/Textarea/Textarea.types.d.ts +16 -2
  137. package/Textarea/useAutosizeTextArea.d.ts +3 -0
  138. package/Textarea/useAutosizeTextArea.mjs +20 -0
  139. package/Toast/toastVariants.mjs +3 -3
  140. package/index.css +1 -1
  141. package/index.d.ts +3 -0
  142. package/index.mjs +304 -291
  143. package/package.json +6 -6
  144. package/tailwind.config.mjs +13 -13
  145. package/Dropzone/FilePreview.d.ts +0 -15
  146. package/Dropzone/FilePreview.mjs +0 -7
  147. package/FilePreview-C6IeuOqo.js +0 -40
@@ -1,11 +1,14 @@
1
- import * as React from "react";
2
- import * as DialogPrimitive from "@radix-ui/react-dialog";
1
+ import * as React from 'react';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
3
  declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
4
  declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
5
  declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
6
  declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
7
  declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
9
+ showCloseButton?: boolean;
10
+ preventAutoFocus?: boolean;
11
+ } & React.RefAttributes<HTMLDivElement>>;
9
12
  declare const DialogHeader: {
10
13
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
14
  displayName: string;
package/Dialog/Dialog.mjs CHANGED
@@ -1,100 +1,136 @@
1
1
  import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
- import * as l from "react";
2
+ import * as i from "react";
3
+ import { useRef as y, useState as N, useLayoutEffect as D } from "react";
3
4
  import * as e from "@radix-ui/react-dialog";
4
- import { X as c } from "lucide-react";
5
- import { cn as i } from "@oneplatformdev/utils";
6
- const b = e.Root, h = e.Trigger, m = e.Portal, v = e.Close, d = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
5
+ import { XIcon as h } from "lucide-react";
6
+ import { cn as l } from "@oneplatformdev/utils";
7
+ import { DialogOverlayScope as b } from "./DialogOverlayScope.mjs";
8
+ const S = e.Root, F = e.Trigger, v = e.Portal, q = e.Close, m = i.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
7
9
  e.Overlay,
8
10
  {
9
11
  ref: s,
10
- className: i(
11
- "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
- a
12
+ className: l(
13
+ "fixed inset-0 z-40 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",
14
+ t
13
15
  ),
14
- ...t
16
+ ...a
15
17
  }
16
18
  ));
17
- d.displayName = e.Overlay.displayName;
18
- const f = l.forwardRef(({ className: a, children: t, ...s }, r) => /* @__PURE__ */ n(m, { children: [
19
- /* @__PURE__ */ o(d, {}),
20
- /* @__PURE__ */ n(
21
- e.Content,
22
- {
23
- ref: r,
24
- className: i(
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",
26
- a
27
- ),
28
- ...s,
29
- children: [
30
- t,
31
- /* @__PURE__ */ n(e.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
32
- /* @__PURE__ */ o(c, { className: "h-4 w-4" }),
33
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
34
- ] })
35
- ]
36
- }
37
- )
38
- ] }));
39
- f.displayName = e.Content.displayName;
40
- const p = ({
41
- className: a,
42
- ...t
19
+ m.displayName = e.Overlay.displayName;
20
+ const w = i.forwardRef(
21
+ ({
22
+ className: t,
23
+ children: a,
24
+ showCloseButton: s = !0,
25
+ onOpenAutoFocus: r,
26
+ preventAutoFocus: f,
27
+ ...p
28
+ }, g) => {
29
+ const d = y(null), [u, x] = N(null);
30
+ return D(() => x(d.current), []), /* @__PURE__ */ n(v, { children: [
31
+ /* @__PURE__ */ o(m, {}),
32
+ /* @__PURE__ */ o("div", { ref: d, className: "fixed inset-0 z-60" }),
33
+ /* @__PURE__ */ o(b, { value: u, children: /* @__PURE__ */ n(
34
+ e.Content,
35
+ {
36
+ ref: g,
37
+ className: l(
38
+ "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",
39
+ "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",
40
+ "max-w-[90%] max-h-[90%] overflow-hidden",
41
+ "bg-[#FCFCFC] border border-[#E8E9EB] rounded-[16px]",
42
+ t
43
+ ),
44
+ onOpenAutoFocus: (c) => (f && c.preventDefault(), r == null ? void 0 : r(c)),
45
+ ...p,
46
+ children: [
47
+ a,
48
+ s && /* @__PURE__ */ n(
49
+ e.Close,
50
+ {
51
+ "aria-label": "Close",
52
+ className: l(
53
+ "absolute right-4 top-4 rounded-sm ring-offset-background w-10 aspect-square",
54
+ "flex items-center justify-center",
55
+ "data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
56
+ "opacity-70 hover:opacity-100",
57
+ // 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
58
+ "focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-2",
59
+ "hover:bg-accent",
60
+ "disabled:pointer-events-none",
61
+ "transition-opacity"
62
+ ),
63
+ children: [
64
+ /* @__PURE__ */ o(h, { className: "h-4 w-4" }),
65
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
66
+ ]
67
+ }
68
+ )
69
+ ]
70
+ }
71
+ ) })
72
+ ] });
73
+ }
74
+ );
75
+ w.displayName = e.Content.displayName;
76
+ const C = ({
77
+ className: t,
78
+ ...a
43
79
  }) => /* @__PURE__ */ o(
44
80
  "div",
45
81
  {
46
- className: i(
82
+ className: l(
47
83
  "flex flex-col space-y-1.5 text-center sm:text-left",
48
- a
84
+ t
49
85
  ),
50
- ...t
86
+ ...a
51
87
  }
52
88
  );
53
- p.displayName = "DialogHeader";
54
- const g = ({
55
- className: a,
56
- ...t
89
+ C.displayName = "DialogHeader";
90
+ const R = ({
91
+ className: t,
92
+ ...a
57
93
  }) => /* @__PURE__ */ o(
58
94
  "div",
59
95
  {
60
- className: i(
96
+ className: l(
61
97
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
62
- a
98
+ t
63
99
  ),
64
- ...t
100
+ ...a
65
101
  }
66
102
  );
67
- g.displayName = "DialogFooter";
68
- const u = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
103
+ R.displayName = "DialogFooter";
104
+ const E = i.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
69
105
  e.Title,
70
106
  {
71
107
  ref: s,
72
- className: i(
108
+ className: l(
73
109
  "text-lg font-semibold leading-none tracking-tight",
74
- a
110
+ t
75
111
  ),
76
- ...t
112
+ ...a
77
113
  }
78
114
  ));
79
- u.displayName = e.Title.displayName;
80
- const y = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
115
+ E.displayName = e.Title.displayName;
116
+ const z = i.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o(
81
117
  e.Description,
82
118
  {
83
119
  ref: s,
84
- className: i("text-sm text-muted-foreground", a),
85
- ...t
120
+ className: l("text-sm text-muted-foreground", t),
121
+ ...a
86
122
  }
87
123
  ));
88
- y.displayName = e.Description.displayName;
124
+ z.displayName = e.Description.displayName;
89
125
  export {
90
- b as Dialog,
91
- v as DialogClose,
92
- f as DialogContent,
93
- y as DialogDescription,
94
- g as DialogFooter,
95
- p as DialogHeader,
96
- d as DialogOverlay,
97
- m as DialogPortal,
98
- u as DialogTitle,
99
- h as DialogTrigger
126
+ S as Dialog,
127
+ q as DialogClose,
128
+ w as DialogContent,
129
+ z as DialogDescription,
130
+ R as DialogFooter,
131
+ C as DialogHeader,
132
+ m as DialogOverlay,
133
+ v as DialogPortal,
134
+ E as DialogTitle,
135
+ F as DialogTrigger
100
136
  };
@@ -0,0 +1,8 @@
1
+ import { PropsWithChildren } from 'react';
2
+
3
+ interface IDialogOverlayScopeProps extends PropsWithChildren {
4
+ value: HTMLElement | null;
5
+ }
6
+ export declare const DialogOverlayScope: ({ value, children }: IDialogOverlayScopeProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const useDialogOverlayContainer: () => HTMLElement | null;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { createContext as n, useContext as a } from "react";
3
+ const o = n(null), s = ({ value: e, children: r }) => /* @__PURE__ */ t(o.Provider, { value: e, children: r }), c = () => a(o);
4
+ export {
5
+ s as DialogOverlayScope,
6
+ c as useDialogOverlayContainer
7
+ };
package/Dialog/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './Dialog';
2
+ export { useDialogOverlayContainer } from './DialogOverlayScope';
package/Dialog/index.mjs CHANGED
@@ -1,13 +1,15 @@
1
- import { Dialog as l, DialogClose as a, DialogContent as g, DialogDescription as D, DialogFooter as e, DialogHeader as r, DialogOverlay as t, DialogPortal as n, DialogTitle as p, DialogTrigger as s } from "./Dialog.mjs";
1
+ import { Dialog as i, DialogClose as l, DialogContent as e, DialogDescription as g, DialogFooter as r, DialogHeader as D, DialogOverlay as t, DialogPortal as n, DialogTitle as p, DialogTrigger as s } from "./Dialog.mjs";
2
+ import { useDialogOverlayContainer as f } from "./DialogOverlayScope.mjs";
2
3
  export {
3
- l as Dialog,
4
- a as DialogClose,
5
- g as DialogContent,
6
- D as DialogDescription,
7
- e as DialogFooter,
8
- r as DialogHeader,
4
+ i as Dialog,
5
+ l as DialogClose,
6
+ e as DialogContent,
7
+ g as DialogDescription,
8
+ r as DialogFooter,
9
+ D as DialogHeader,
9
10
  t as DialogOverlay,
10
11
  n as DialogPortal,
11
12
  p as DialogTitle,
12
- s as DialogTrigger
13
+ s as DialogTrigger,
14
+ f as useDialogOverlayContainer
13
15
  };
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1
+ import * as React from 'react';
2
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
3
  declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
4
4
  declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
5
  declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,9 +1,9 @@
1
1
  import { jsxs as l, jsx as n } 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 c, Check as m, Circle as p } from "lucide-react";
4
+ import { ChevronRight as c, Check as p, Circle as m } from "lucide-react";
5
5
  import { cn as r } from "@oneplatformdev/utils";
6
- const R = e.Root, I = e.Trigger, S = e.Group, C = e.Portal, z = e.Sub, k = e.RadioGroup, u = d.forwardRef(({ className: t, inset: o, children: a, ...s }, i) => /* @__PURE__ */ l(
6
+ const R = e.Root, C = e.Trigger, I = e.Group, S = e.Portal, _ = e.Sub, z = e.RadioGroup, u = d.forwardRef(({ className: t, inset: o, children: a, ...s }, i) => /* @__PURE__ */ l(
7
7
  e.SubTrigger,
8
8
  {
9
9
  ref: i,
@@ -32,33 +32,37 @@ const f = d.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ n(
32
32
  }
33
33
  ));
34
34
  f.displayName = e.SubContent.displayName;
35
- const b = d.forwardRef(({ className: t, sideOffset: o = 4, ...a }, s) => /* @__PURE__ */ n(e.Portal, { children: /* @__PURE__ */ n(
35
+ const g = d.forwardRef(({ className: t, sideOffset: o = 4, ...a }, s) => /* @__PURE__ */ n(e.Portal, { children: /* @__PURE__ */ n(
36
36
  e.Content,
37
37
  {
38
38
  ref: s,
39
39
  sideOffset: o,
40
40
  className: r(
41
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
41
+ "z-50 min-w-[8rem] overflow-hidden p-0.5 gap-0 text-popover-foreground",
42
+ "rounded-lg border border-[#DCDDE1] bg-popover",
43
+ "shadow-[0px_10px_20px_rgba(3,_4,_7,_0.0625)]",
42
44
  "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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
43
45
  t
44
46
  ),
45
47
  ...a
46
48
  }
47
49
  ) }));
48
- b.displayName = e.Content.displayName;
49
- const g = d.forwardRef(({ className: t, inset: o, ...a }, s) => /* @__PURE__ */ n(
50
+ g.displayName = e.Content.displayName;
51
+ const b = d.forwardRef(({ className: t, inset: o, ...a }, s) => /* @__PURE__ */ n(
50
52
  e.Item,
51
53
  {
52
54
  ref: s,
53
55
  className: r(
54
- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
56
+ "relative flex cursor-default select-none items-center gap-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
57
+ "rounded-md",
58
+ "px-1.5 py-2",
55
59
  o && "pl-8",
56
60
  t
57
61
  ),
58
62
  ...a
59
63
  }
60
64
  ));
61
- g.displayName = e.Item.displayName;
65
+ b.displayName = e.Item.displayName;
62
66
  const w = d.forwardRef(({ className: t, children: o, checked: a, ...s }, i) => /* @__PURE__ */ l(
63
67
  e.CheckboxItem,
64
68
  {
@@ -70,13 +74,13 @@ const w = d.forwardRef(({ className: t, children: o, checked: a, ...s }, i) => /
70
74
  checked: a,
71
75
  ...s,
72
76
  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(m, { className: "h-4 w-4" }) }) }),
77
+ /* @__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-4 w-4" }) }) }),
74
78
  o
75
79
  ]
76
80
  }
77
81
  ));
78
82
  w.displayName = e.CheckboxItem.displayName;
79
- const h = d.forwardRef(({ className: t, children: o, ...a }, s) => /* @__PURE__ */ l(
83
+ const x = d.forwardRef(({ className: t, children: o, ...a }, s) => /* @__PURE__ */ l(
80
84
  e.RadioItem,
81
85
  {
82
86
  ref: s,
@@ -86,13 +90,13 @@ const h = d.forwardRef(({ className: t, children: o, ...a }, s) => /* @__PURE__
86
90
  ),
87
91
  ...a,
88
92
  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" }) }) }),
93
+ /* @__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-2 w-2 fill-current" }) }) }),
90
94
  o
91
95
  ]
92
96
  }
93
97
  ));
94
- h.displayName = e.RadioItem.displayName;
95
- const N = d.forwardRef(({ className: t, inset: o, ...a }, s) => /* @__PURE__ */ n(
98
+ x.displayName = e.RadioItem.displayName;
99
+ const h = d.forwardRef(({ className: t, inset: o, ...a }, s) => /* @__PURE__ */ n(
96
100
  e.Label,
97
101
  {
98
102
  ref: s,
@@ -104,8 +108,8 @@ const N = d.forwardRef(({ className: t, inset: o, ...a }, s) => /* @__PURE__ */
104
108
  ...a
105
109
  }
106
110
  ));
107
- N.displayName = e.Label.displayName;
108
- const x = d.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ n(
111
+ h.displayName = e.Label.displayName;
112
+ const N = d.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ n(
109
113
  e.Separator,
110
114
  {
111
115
  ref: a,
@@ -113,7 +117,7 @@ const x = d.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ n(
113
117
  ...o
114
118
  }
115
119
  ));
116
- x.displayName = e.Separator.displayName;
120
+ N.displayName = e.Separator.displayName;
117
121
  const y = ({
118
122
  className: t,
119
123
  ...o
@@ -128,17 +132,17 @@ y.displayName = "DropdownMenuShortcut";
128
132
  export {
129
133
  R as DropdownMenu,
130
134
  w as DropdownMenuCheckboxItem,
131
- b as DropdownMenuContent,
132
- S as DropdownMenuGroup,
133
- g as DropdownMenuItem,
134
- N as DropdownMenuLabel,
135
- C as DropdownMenuPortal,
136
- k as DropdownMenuRadioGroup,
137
- h as DropdownMenuRadioItem,
138
- x as DropdownMenuSeparator,
135
+ g as DropdownMenuContent,
136
+ I as DropdownMenuGroup,
137
+ b as DropdownMenuItem,
138
+ h as DropdownMenuLabel,
139
+ S as DropdownMenuPortal,
140
+ z as DropdownMenuRadioGroup,
141
+ x as DropdownMenuRadioItem,
142
+ N as DropdownMenuSeparator,
139
143
  y as DropdownMenuShortcut,
140
- z as DropdownMenuSub,
144
+ _ as DropdownMenuSub,
141
145
  f as DropdownMenuSubContent,
142
146
  u as DropdownMenuSubTrigger,
143
- I as DropdownMenuTrigger
147
+ C as DropdownMenuTrigger
144
148
  };
@@ -1,16 +1,22 @@
1
- import { DropzoneProps } from './Dropzone.types';
1
+ import { DropzoneControl, DropzoneProps } from './Dropzone.types';
2
2
 
3
3
  /**
4
4
  * Dropzone component - A drag-and-drop file upload area with image previews, error handling, and localization.
5
+ *
5
6
  * @component
6
- * @param {DropzoneProps} props - The Dropzone component props.
7
- * @param {string[]} [props.acceptTypes=DEFAULT_FILE_TYPES] - Allowed file types. Defaults to `DEFAULT_FILE_TYPES`.
8
- * @param {number} props.maxSizeMB - Maximum file size in megabytes.
9
- * @param {number} [props.maxFiles=1] - Maximum number of files allowed. Defaults to 1.
10
- * @param {DropzoneTranslations} props.translations - Object containing localized text.
11
- * @param {(files: File[]) => void} props.onFilesSelected - Callback triggered when valid files are selected.
12
- * @param {(errors: FileRejection[]) => void} [props.onErrors] - Callback triggered when files are rejected due to errors.
13
- * @param {boolean} [props.hideErrors=false] - If `true`, hides error messages but keeps the red border.
7
+ * @param {DropzoneProps} props - The props for the Dropzone component.
8
+ * @param {string[]} [props.acceptTypes=DEFAULT_FILE_TYPES] - Allowed file MIME types.
9
+ * @param {number} props.maxSizeMB - Maximum allowed file size in megabytes.
10
+ * @param {number} [props.maxFiles=1] - Maximum number of files that can be uploaded.
11
+ * @param {DropzoneTranslations} props.translations - Translations for text labels.
12
+ * @param {(errors: FileRejection[]) => void} [props.onErrors] - Callback triggered when file errors occur.
13
+ * @param {boolean} [props.hideErrors=false] - Whether to hide error messages.
14
+ * @param {boolean} [props.disabled=false] - Whether the dropzone is disabled.
15
+ * @param {DropzoneStyles} [props.classNames] - Custom classNames for different dropzone states.
16
+ * @param {DropzoneValueItem[]} [props.value=[]] - Current selected files or URLs.
17
+ * @param {(items: DropzoneValueItem[]) => void} [props.onChangeValue] - Callback triggered when file selection changes.
18
+ * @param {string} [props.className] - Additional class names for styling.
19
+ * @param {React.Ref<HTMLDivElement>} ref - Ref for the root dropzone container.
14
20
  * @returns {JSX.Element} The rendered Dropzone component.
15
21
  */
16
- export declare const Dropzone: React.FC<DropzoneProps>;
22
+ export declare const Dropzone: import('react').ForwardRefExoticComponent<DropzoneProps & import('react').RefAttributes<DropzoneControl>>;