@oneplatformdev/ui 0.0.1-beta.11 → 0.0.1-beta.110
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.
- package/Accordion/Accordion.d.ts +5 -3
- package/Accordion/Accordion.mjs +27 -24
- package/AlertDialog/AlertDialogRoot.d.ts +2 -2
- package/AlertDialog/AlertDialogRoot.mjs +7 -7
- package/Button/Button.mjs +11 -10
- package/Button/buttonVariants.mjs +14 -8
- package/Calendar/Calendar.mjs +3 -2
- package/Card/Card.d.ts +1 -1
- package/Card/Card.mjs +24 -23
- package/Checkbox/Checkbox.d.ts +5 -4
- package/Checkbox/Checkbox.mjs +48 -21
- package/Checkbox/Checkbox.types.d.ts +10 -0
- package/Checkbox/index.d.ts +1 -0
- package/Checkbox/index.mjs +3 -2
- package/Combobox/Combobox.d.ts +2 -2
- package/Combobox/Combobox.mjs +12 -123
- package/Combobox/Combobox.types.d.ts +36 -1
- package/Combobox/ComboboxOptionItem.d.ts +5 -0
- package/Combobox/ComboboxOptionItem.mjs +68 -0
- package/Combobox/ComboboxOptions.d.ts +4 -0
- package/Combobox/ComboboxOptions.mjs +12 -0
- package/Combobox/index.mjs +1 -1
- package/Combobox-BzFTeSHQ.js +324 -0
- package/Command/Command.d.ts +1 -1
- package/Command/Command.mjs +36 -29
- package/DataTable/DataTable.d.ts +10 -3
- package/DataTable/DataTable.mjs +33 -33
- package/DataTable/DataTableColumnFilter.d.ts +4 -0
- package/DataTable/DataTableColumnFilter.mjs +31 -0
- package/DatePicker/DatePicker.mjs +2 -2
- package/Dialog/Dialog.d.ts +5 -3
- package/Dialog/Dialog.mjs +44 -27
- package/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/DropdownMenu/DropdownMenu.mjs +30 -26
- package/Dropzone/Dropzone.d.ts +16 -10
- package/Dropzone/Dropzone.mjs +146 -2915
- package/Dropzone/Dropzone.types.d.ts +33 -10
- package/Dropzone/DropzoneFilePreview.d.ts +4 -0
- package/Dropzone/DropzoneFilePreview.mjs +9 -0
- package/Dropzone/DropzoneSinglePickPreview.d.ts +10 -0
- package/Dropzone/DropzoneSinglePickPreview.mjs +44 -0
- package/Dropzone/DropzoneUtils.d.ts +5 -0
- package/Dropzone/DropzoneUtils.mjs +24 -0
- package/Dropzone/index.mjs +1 -1
- package/DropzoneFilePreview-Dhtv8F4u.js +67 -0
- package/Form/Form.d.ts +2 -2
- package/Form/Form.mjs +48 -45
- package/Form/FormRenderControl.d.ts +2 -3
- package/Form/FormRenderControl.mjs +10 -10
- package/Form/FormRenderControl.types.d.ts +5 -7
- package/FormCheckbox/FormCheckbox.d.ts +2 -3
- package/FormCheckbox/FormCheckbox.mjs +23 -23
- package/FormCheckbox/FormCheckbox.types.d.ts +3 -3
- package/FormCombobox/FormCombobox.d.ts +2 -2
- package/FormCombobox/FormCombobox.mjs +6 -6
- package/FormCombobox/FormCombobox.types.d.ts +2 -3
- package/FormDatePicker/FormDatePicker.d.ts +2 -2
- package/FormDatePicker/FormDatePicker.mjs +20 -18
- package/FormDatePicker/FormDatePicker.types.d.ts +2 -3
- package/FormDropzone/FormDropzone.d.ts +4 -0
- package/FormDropzone/FormDropzone.mjs +19 -0
- package/FormDropzone/FormDropzone.types.d.ts +6 -0
- package/FormDropzone/index.d.ts +2 -0
- package/FormDropzone/index.mjs +4 -0
- package/FormDropzone/package.json +7 -0
- package/FormInput/FormInput.d.ts +5 -3
- package/FormInput/FormInput.mjs +37 -16
- package/FormInput/FormInput.types.d.ts +2 -3
- package/FormRadio/FormRadio.d.ts +4 -0
- package/FormRadio/FormRadio.mjs +40 -0
- package/FormRadio/FormRadio.types.d.ts +6 -0
- package/FormRadio/index.d.ts +2 -0
- package/FormRadio/index.mjs +4 -0
- package/FormRadio/package.json +7 -0
- package/FormSelect/FormSelect.d.ts +2 -3
- package/FormSelect/FormSelect.mjs +19 -17
- package/FormSelect/FormSelect.types.d.ts +2 -3
- package/FormTextarea/FormTextarea.d.ts +2 -3
- package/FormTextarea/FormTextarea.mjs +13 -12
- package/FormTextarea/FormTextarea.types.d.ts +2 -3
- package/Input/Input.mjs +50 -38
- package/Input/Input.types.d.ts +6 -2
- package/Input/inputVariants.mjs +9 -3
- package/Label/Label.d.ts +2 -2
- package/Label/labelVariants.mjs +7 -4
- package/LazyLoader/LazyLoader.mjs +5 -4
- package/LoadedIcon/LoadedIcon.d.ts +11 -0
- package/LoadedIcon/LoadedIcon.mjs +27 -0
- package/LoadedIcon/index.d.ts +1 -0
- package/LoadedIcon/index.mjs +4 -0
- package/LoadedIcon/package.json +7 -0
- package/LoadingMask/LoadingMask.d.ts +4 -1
- package/LoadingMask/LoadingMask.mjs +18 -56
- package/LoadingMask/LoadingMask.types.d.ts +5 -0
- package/LoadingMask/RenderLoadingMask.d.ts +3 -0
- package/LoadingMask/RenderLoadingMask.mjs +108 -0
- package/LoadingMask/index.d.ts +2 -0
- package/LoadingMask/index.mjs +4 -2
- package/Popover/Popover.d.ts +2 -2
- package/Popover/Popover.mjs +13 -9
- package/Radio/Radio.d.ts +4 -0
- package/Radio/Radio.mjs +12 -0
- package/Radio/Radio.types.d.ts +11 -0
- package/Radio/index.d.ts +2 -0
- package/Radio/index.mjs +4 -0
- package/Radio/package.json +7 -0
- package/RadioGroup/RadioGroup.d.ts +9 -3
- package/RadioGroup/RadioGroup.mjs +37 -19
- package/RadioGroup/index.mjs +4 -3
- package/ScrollArea/ScrollArea.d.ts +2 -2
- package/ScrollArea/ScrollArea.mjs +26 -13
- package/Search/Search.d.ts +1 -2
- package/Search/Search.mjs +31 -19
- package/Search/Search.types.d.ts +1 -0
- package/Select/Select.mjs +94 -63
- package/Select/Select.types.d.ts +11 -3
- package/Select/SelectRoot.d.ts +2 -2
- package/Select/SelectRoot.mjs +29 -24
- package/Sheet/Sheet.d.ts +5 -2
- package/Sheet/Sheet.mjs +33 -33
- package/TablePagination/TablePagination.d.ts +16 -0
- package/TablePagination/TablePagination.mjs +74 -0
- package/TablePagination/index.d.ts +1 -0
- package/TablePagination/index.mjs +4 -0
- package/TablePagination/package.json +7 -0
- package/Tabs/Tabs.d.ts +3 -2
- package/Tabs/Tabs.mjs +20 -6
- package/Tabs/Tabs.types.d.ts +5 -2
- package/Tabs/index.mjs +8 -7
- package/Textarea/Textarea.d.ts +1 -1
- package/Textarea/Textarea.mjs +72 -15
- package/Textarea/Textarea.types.d.ts +16 -2
- package/Textarea/useAutosizeTextArea.d.ts +3 -0
- package/Textarea/useAutosizeTextArea.mjs +20 -0
- package/Toast/toastVariants.mjs +3 -3
- package/index.css +1 -1
- package/index.d.ts +3 -0
- package/index.mjs +297 -286
- package/package.json +6 -6
- package/tailwind.config.mjs +13 -13
- package/Dropzone/FilePreview.d.ts +0 -15
- package/Dropzone/FilePreview.mjs +0 -7
- package/FilePreview-C6IeuOqo.js +0 -40
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as n, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown as m } from "lucide-react";
|
|
3
|
+
import { useMemo as s } from "react";
|
|
4
|
+
import { Button as d } from "../Button/Button.mjs";
|
|
5
|
+
import "../Button/buttonVariants.mjs";
|
|
6
|
+
import { DropdownMenuCheckboxItem as c, DropdownMenu as u, DropdownMenuTrigger as h, DropdownMenuContent as p } from "../DropdownMenu/DropdownMenu.mjs";
|
|
7
|
+
const x = (i) => {
|
|
8
|
+
const {
|
|
9
|
+
table: r,
|
|
10
|
+
columnsLabel: l = "Columns"
|
|
11
|
+
} = i, o = s(() => r.getAllColumns().filter((e) => e.getCanHide()).map((e) => /* @__PURE__ */ n(
|
|
12
|
+
c,
|
|
13
|
+
{
|
|
14
|
+
className: "capitalize",
|
|
15
|
+
checked: e.getIsVisible(),
|
|
16
|
+
onCheckedChange: (a) => e.toggleVisibility(!!a),
|
|
17
|
+
children: e.id
|
|
18
|
+
},
|
|
19
|
+
e.id
|
|
20
|
+
)), [r]);
|
|
21
|
+
return o.length ? /* @__PURE__ */ t(u, { children: [
|
|
22
|
+
/* @__PURE__ */ n(h, { asChild: !0, children: /* @__PURE__ */ t(d, { variant: "outline", className: "ml-auto", children: [
|
|
23
|
+
l,
|
|
24
|
+
/* @__PURE__ */ n(m, { className: "ml-2 h-4 w-4" })
|
|
25
|
+
] }) }),
|
|
26
|
+
/* @__PURE__ */ n(p, { align: "end", children: o })
|
|
27
|
+
] }) : null;
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
x as DataTableColumnFilter
|
|
31
|
+
};
|
|
@@ -669,7 +669,7 @@ const J = (t, e, n) => {
|
|
|
669
669
|
disabled: i,
|
|
670
670
|
variant: "outline",
|
|
671
671
|
className: C(
|
|
672
|
-
"w-full justify-start text-left font-normal border-
|
|
672
|
+
"w-full justify-start text-left font-normal border h-10",
|
|
673
673
|
!n && "text-muted-foreground"
|
|
674
674
|
),
|
|
675
675
|
children: [
|
|
@@ -678,7 +678,7 @@ const J = (t, e, n) => {
|
|
|
678
678
|
]
|
|
679
679
|
}
|
|
680
680
|
) }),
|
|
681
|
-
/* @__PURE__ */ d(L, { align: "start", className: "
|
|
681
|
+
/* @__PURE__ */ d(L, { align: "start", className: "w-auto p-0", children: /* @__PURE__ */ d(
|
|
682
682
|
O,
|
|
683
683
|
{
|
|
684
684
|
mode: "single",
|
package/Dialog/Dialog.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as DialogPrimitive from
|
|
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"> &
|
|
8
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
9
11
|
declare const DialogHeader: {
|
|
10
12
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
displayName: string;
|
package/Dialog/Dialog.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-dialog";
|
|
4
|
-
import { X as
|
|
4
|
+
import { X as m } from "lucide-react";
|
|
5
5
|
import { cn as i } from "@oneplatformdev/utils";
|
|
6
|
-
const
|
|
6
|
+
const h = e.Root, w = e.Trigger, f = e.Portal, v = e.Close, r = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
|
7
7
|
e.Overlay,
|
|
8
8
|
{
|
|
9
9
|
ref: s,
|
|
@@ -14,30 +14,47 @@ const b = e.Root, h = e.Trigger, m = e.Portal, v = e.Close, d = l.forwardRef(({
|
|
|
14
14
|
...t
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
/* @__PURE__ */ o(
|
|
17
|
+
r.displayName = e.Overlay.displayName;
|
|
18
|
+
const p = l.forwardRef(({ className: a, children: t, showCloseButton: s = !0, ...d }, c) => /* @__PURE__ */ n(f, { children: [
|
|
19
|
+
/* @__PURE__ */ o(r, {}),
|
|
20
20
|
/* @__PURE__ */ n(
|
|
21
21
|
e.Content,
|
|
22
22
|
{
|
|
23
|
-
ref:
|
|
23
|
+
ref: c,
|
|
24
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
|
|
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",
|
|
26
|
+
"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
|
+
"max-w-[90%] max-h-[90%] overflow-hidden",
|
|
28
|
+
"bg-[#FCFCFC] border border-[#E8E9EB] rounded-[16px]",
|
|
26
29
|
a
|
|
27
30
|
),
|
|
28
|
-
...
|
|
31
|
+
...d,
|
|
29
32
|
children: [
|
|
30
33
|
t,
|
|
31
|
-
/* @__PURE__ */ n(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
s && /* @__PURE__ */ n(
|
|
35
|
+
e.Close,
|
|
36
|
+
{
|
|
37
|
+
className: i(
|
|
38
|
+
"absolute right-4 top-4 rounded-sm ring-offset-background w-10 aspect-square",
|
|
39
|
+
"flex items-center justify-center",
|
|
40
|
+
"data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
41
|
+
"opacity-70 hover:opacity-100",
|
|
42
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
43
|
+
"disabled:pointer-events-none",
|
|
44
|
+
"transition-opacity"
|
|
45
|
+
),
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ o(m, { className: "h-4 w-4" }),
|
|
48
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
)
|
|
35
52
|
]
|
|
36
53
|
}
|
|
37
54
|
)
|
|
38
55
|
] }));
|
|
39
|
-
|
|
40
|
-
const
|
|
56
|
+
p.displayName = e.Content.displayName;
|
|
57
|
+
const g = ({
|
|
41
58
|
className: a,
|
|
42
59
|
...t
|
|
43
60
|
}) => /* @__PURE__ */ o(
|
|
@@ -50,8 +67,8 @@ const p = ({
|
|
|
50
67
|
...t
|
|
51
68
|
}
|
|
52
69
|
);
|
|
53
|
-
|
|
54
|
-
const
|
|
70
|
+
g.displayName = "DialogHeader";
|
|
71
|
+
const u = ({
|
|
55
72
|
className: a,
|
|
56
73
|
...t
|
|
57
74
|
}) => /* @__PURE__ */ o(
|
|
@@ -64,8 +81,8 @@ const g = ({
|
|
|
64
81
|
...t
|
|
65
82
|
}
|
|
66
83
|
);
|
|
67
|
-
|
|
68
|
-
const
|
|
84
|
+
u.displayName = "DialogFooter";
|
|
85
|
+
const x = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
|
69
86
|
e.Title,
|
|
70
87
|
{
|
|
71
88
|
ref: s,
|
|
@@ -76,7 +93,7 @@ const u = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
|
|
76
93
|
...t
|
|
77
94
|
}
|
|
78
95
|
));
|
|
79
|
-
|
|
96
|
+
x.displayName = e.Title.displayName;
|
|
80
97
|
const y = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
|
81
98
|
e.Description,
|
|
82
99
|
{
|
|
@@ -87,14 +104,14 @@ const y = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
|
|
87
104
|
));
|
|
88
105
|
y.displayName = e.Description.displayName;
|
|
89
106
|
export {
|
|
90
|
-
|
|
107
|
+
h as Dialog,
|
|
91
108
|
v as DialogClose,
|
|
92
|
-
|
|
109
|
+
p as DialogContent,
|
|
93
110
|
y as DialogDescription,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
111
|
+
u as DialogFooter,
|
|
112
|
+
g as DialogHeader,
|
|
113
|
+
r as DialogOverlay,
|
|
114
|
+
f as DialogPortal,
|
|
115
|
+
x as DialogTitle,
|
|
116
|
+
w as DialogTrigger
|
|
100
117
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as DropdownMenuPrimitive from
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
-
|
|
49
|
-
const
|
|
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
|
|
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
|
-
|
|
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(
|
|
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
|
|
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(
|
|
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
|
-
|
|
95
|
-
const
|
|
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
|
-
|
|
108
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
144
|
+
_ as DropdownMenuSub,
|
|
141
145
|
f as DropdownMenuSubContent,
|
|
142
146
|
u as DropdownMenuSubTrigger,
|
|
143
|
-
|
|
147
|
+
C as DropdownMenuTrigger
|
|
144
148
|
};
|
package/Dropzone/Dropzone.d.ts
CHANGED
|
@@ -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
|
|
7
|
-
* @param {string[]} [props.acceptTypes=DEFAULT_FILE_TYPES] - Allowed file types.
|
|
8
|
-
* @param {number} props.maxSizeMB - Maximum file size in megabytes.
|
|
9
|
-
* @param {number} [props.maxFiles=1] - Maximum number of files
|
|
10
|
-
* @param {DropzoneTranslations} props.translations -
|
|
11
|
-
* @param {(
|
|
12
|
-
* @param {
|
|
13
|
-
* @param {boolean} [props.
|
|
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:
|
|
22
|
+
export declare const Dropzone: import('react').ForwardRefExoticComponent<DropzoneProps & import('react').RefAttributes<DropzoneControl>>;
|