@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.
- package/CHANGELOG.md +24 -0
- package/package.json +14 -8
- package/{index.js → ui.js} +87 -87
- package/{Badge/Badge.js → ui12.js} +1 -1
- package/{Button/Button.js → ui15.js} +5 -6
- package/{ButtonIcon/ButtonIcon.js → ui17.js} +4 -5
- package/{Calendar/Calendar.js → ui19.js} +1 -2
- package/{Carousel/Carousel.js → ui21.js} +6 -7
- package/{Checkbox/Checkbox.js → ui23.js} +18 -19
- package/{Combobox/Combobox.js → ui25.js} +36 -38
- package/{Command/Command.js → ui26.js} +19 -20
- package/{DataTable/DataTable.js → ui27.js} +12 -13
- package/{DatePicker/DatePicker.js → ui28.js} +15 -16
- package/{Dialog/Dialog.js → ui29.js} +1 -1
- package/{DropdownMenu/DropdownMenu.js → ui32.js} +5 -5
- package/{Form/Form.js → ui33.js} +8 -9
- package/{Form/FormRenderControl.js → ui34.js} +1 -1
- package/{FormCheckbox/FormCheckbox.js → ui35.js} +5 -5
- package/{FormCombobox/FormCombobox.js → ui36.js} +5 -5
- package/{FormDatePicker/FormDatePicker.js → ui37.js} +5 -5
- package/{FormInput/FormInput.js → ui38.js} +7 -7
- package/ui39.js +39 -0
- package/{Alert/Alert.js → ui4.js} +1 -1
- package/{FormTextarea/FormTextarea.js → ui40.js} +5 -5
- package/{Header/Header.js → ui41.js} +2 -2
- package/{Input/Input.js → ui43.js} +1 -1
- package/{Label/Label.js → ui45.js} +1 -1
- package/ui47.js +7 -0
- package/{LoadingMask/LoadingMask.js → ui49.js} +1 -1
- package/{AlertDialog/AlertDialogRoot.js → ui5.js} +32 -33
- package/{LoadingProgress/LoadingProgress.js → ui51.js} +1 -1
- package/{Menubar/Menubar.js → ui53.js} +4 -4
- package/{NavigationMenu/NavigationMenu.js → ui54.js} +1 -1
- package/{Pagination/Pagination.js → ui56.js} +1 -2
- package/{Popover/Popover.js → ui57.js} +1 -1
- package/{RadioGroup/RadioGroup.js → ui59.js} +1 -1
- package/{AlertDialog/AlertDialog.js → ui6.js} +1 -1
- package/{Search/Search.js → ui62.js} +9 -9
- package/{Select/SelectRoot.js → ui63.js} +3 -3
- package/{Select/Select.js → ui64.js} +24 -25
- package/{Sidebar/Sidebar.js → ui67.js} +15 -16
- package/{AreaChart/AreaChart.js → ui7.js} +1 -1
- package/{Tabs/Tabs.js → ui74.js} +1 -1
- package/{Textarea/Textarea.js → ui75.js} +1 -1
- package/{Theme/ThemeModeToggle.js → ui77.js} +5 -6
- package/{Toast/Toast.js → ui78.js} +1 -1
- package/{Aside/Aside.js → ui8.js} +1 -1
- package/{Toaster/Toaster.js → ui80.js} +2 -2
- package/{ToggleGroup/ToggleGroup.js → ui82.js} +1 -1
- package/{Tooltip/Tooltip.js → ui84.js} +1 -1
- package/{Dropzone/Dropzone.js → ui85.js} +5 -5
- package/ui87.js +19 -0
- package/{TablePagination/TablePagination.js → ui88.js} +14 -16
- package/{Aside/AsideSidebar.js → ui9.js} +1 -1
- package/ui91.js +63 -0
- package/{Dropzone/DropzoneFilePreview.js → ui93.js} +2 -2
- package/{Dropzone/DropzoneSinglePickPreview.js → ui94.js} +1 -1
- package/ui98.js +47 -0
- package/Accordion/index.js +0 -7
- package/Alert/index.js +0 -6
- package/AlertDialog/AlertDialog.stories.js +0 -121
- package/AlertDialog/AlertDialog.types.js +0 -1
- package/AlertDialog/index.js +0 -16
- package/AreaChart/AreaChart.types.js +0 -1
- package/AreaChart/index.js +0 -4
- package/Aside/Aside.types.js +0 -1
- package/Aside/index.js +0 -7
- package/AspectRatio/index.js +0 -5
- package/Avatar/index.js +0 -6
- package/Badge/Badge.types.js +0 -1
- package/Badge/index.js +0 -6
- package/Breadcrumb/index.js +0 -10
- package/Button/Button.stories.js +0 -20
- package/Button/Button.types.js +0 -1
- package/Button/index.js +0 -7
- package/ButtonIcon/ButtonIcon.stories.js +0 -126
- package/ButtonIcon/ButtonIcon.types.js +0 -1
- package/ButtonIcon/index.js +0 -7
- package/Calendar/index.js +0 -4
- package/Card/index.js +0 -9
- package/Carousel/index.js +0 -8
- package/Chart/index.js +0 -9
- package/Checkbox/Checkbox.types.js +0 -1
- package/Checkbox/index.js +0 -5
- package/Collapsible/index.js +0 -6
- package/Combobox/Combobox.types.js +0 -1
- package/Combobox/ComboboxOptionItem.js +0 -108
- package/Combobox/ComboboxOptions.js +0 -64
- package/Combobox/index.js +0 -4
- package/Command/index.js +0 -12
- package/DataTable/DataTable.types.js +0 -1
- package/DataTable/DataTableColumnFilter.js +0 -31
- package/DataTable/index.js +0 -4
- package/DataTable/useDataTable.js +0 -30
- package/DatePicker/DatePicker.types.js +0 -1
- package/DatePicker/index.js +0 -5
- package/Dialog/index.js +0 -17
- package/Drawer/index.js +0 -13
- package/DropdownMenu/index.js +0 -18
- package/Dropzone/index.js +0 -7
- package/Form/FormRenderControl.types.js +0 -1
- package/Form/index.js +0 -13
- package/FormCheckbox/FormCheckbox.types.js +0 -1
- package/FormCheckbox/index.js +0 -4
- package/FormCombobox/FormCombobox.types.js +0 -1
- package/FormCombobox/index.js +0 -4
- package/FormDatePicker/FormDatePicker.types.js +0 -1
- package/FormDatePicker/index.js +0 -5
- package/FormDropzone/FormDropzone.js +0 -19
- package/FormDropzone/FormDropzone.types.js +0 -1
- package/FormDropzone/index.js +0 -4
- package/FormInput/FormInput.types.js +0 -1
- package/FormInput/index.js +0 -4
- package/FormRadio/FormRadio.js +0 -40
- package/FormRadio/FormRadio.types.js +0 -1
- package/FormRadio/index.js +0 -4
- package/FormSelect/FormSelect.js +0 -40
- package/FormSelect/FormSelect.types.js +0 -1
- package/FormSelect/index.js +0 -4
- package/FormTextarea/FormTextarea.types.js +0 -1
- package/FormTextarea/index.js +0 -4
- package/Header/Header.types.js +0 -1
- package/Header/index.js +0 -5
- package/HoverCard/index.js +0 -6
- package/Input/Input.types.js +0 -1
- package/Input/index.js +0 -7
- package/InputOTP/index.js +0 -7
- package/Label/index.js +0 -6
- package/LazyLoader/LazyLoader.js +0 -8
- package/LazyLoader/index.js +0 -5
- package/LoadedIcon/index.js +0 -4
- package/LoadingMask/LoadingMask.types.js +0 -1
- package/LoadingMask/index.js +0 -6
- package/LoadingProgress/LoadingProgress.types.js +0 -1
- package/LoadingProgress/index.js +0 -6
- package/Menubar/index.js +0 -19
- package/NavigationMenu/index.js +0 -13
- package/Pagination/index.js +0 -10
- package/Popover/index.js +0 -7
- package/Progress/index.js +0 -4
- package/Radio/Radio.js +0 -12
- package/Radio/Radio.types.js +0 -1
- package/Radio/index.js +0 -4
- package/RadioGroup/index.js +0 -6
- package/Resizable/index.js +0 -6
- package/ScrollArea/index.js +0 -5
- package/Search/Search.types.js +0 -1
- package/Search/index.js +0 -5
- package/Select/Select.stories.js +0 -41
- package/Select/Select.types.js +0 -1
- package/Select/index.js +0 -15
- package/Separator/index.js +0 -4
- package/Sheet/index.js +0 -13
- package/Sidebar/index.js +0 -27
- package/Skeleton/index.js +0 -4
- package/Slider/index.js +0 -4
- package/Sonner/index.js +0 -4
- package/Switch/index.js +0 -4
- package/Table/index.js +0 -11
- package/TablePagination/index.js +0 -4
- package/Tabs/Tabs.types.js +0 -1
- package/Tabs/index.js +0 -10
- package/Textarea/Textarea.types.js +0 -1
- package/Textarea/index.js +0 -4
- package/Theme/index.js +0 -6
- package/Toast/Toast.types.js +0 -1
- package/Toast/index.js +0 -15
- package/Toast/toast.constants.js +0 -9
- package/Toaster/index.js +0 -4
- package/Toggle/index.js +0 -5
- package/ToggleGroup/index.js +0 -5
- package/Tooltip/Tooltip.types.js +0 -1
- package/Tooltip/index.js +0 -9
- /package/{AspectRatio/AspectRatio.js → ui10.js} +0 -0
- /package/{Avatar/Avatar.js → ui11.js} +0 -0
- /package/{Badge/badgeVariants.js → ui13.js} +0 -0
- /package/{Breadcrumb/Breadcrumb.js → ui14.js} +0 -0
- /package/{Button/buttonVariants.js → ui16.js} +0 -0
- /package/{ButtonIcon/buttonIconVariants.js → ui18.js} +0 -0
- /package/{Card/Card.js → ui20.js} +0 -0
- /package/{Chart/Chart.js → ui22.js} +0 -0
- /package/{Collapsible/Collapsible.js → ui24.js} +0 -0
- /package/{Accordion/Accordion.js → ui3.js} +0 -0
- /package/{Dialog/DialogOverlayScope.js → ui30.js} +0 -0
- /package/{Drawer/Drawer.js → ui31.js} +0 -0
- /package/{HoverCard/HoverCard.js → ui42.js} +0 -0
- /package/{InputOTP/InputOTP.js → ui44.js} +0 -0
- /package/{Label/labelVariants.js → ui46.js} +0 -0
- /package/{LoadedIcon/LoadedIcon.js → ui48.js} +0 -0
- /package/{LoadingMask/RenderLoadingMask.js → ui50.js} +0 -0
- /package/{LoadingProgress/loadingProgressVariants.js → ui52.js} +0 -0
- /package/{NavigationMenu/navigationMenuVariants.js → ui55.js} +0 -0
- /package/{Progress/Progress.js → ui58.js} +0 -0
- /package/{Resizable/Resizable.js → ui60.js} +0 -0
- /package/{ScrollArea/ScrollArea.js → ui61.js} +0 -0
- /package/{Separator/Separator.js → ui65.js} +0 -0
- /package/{Sheet/Sheet.js → ui66.js} +0 -0
- /package/{Skeleton/Skeleton.js → ui68.js} +0 -0
- /package/{Slider/Slider.js → ui69.js} +0 -0
- /package/{Sonner/Sonner.js → ui70.js} +0 -0
- /package/{Switch/Switch.js → ui71.js} +0 -0
- /package/{Table/Table.js → ui72.js} +0 -0
- /package/{Tabs/TabsRoot.js → ui73.js} +0 -0
- /package/{Theme/ThemeProvider.js → ui76.js} +0 -0
- /package/{Toast/useToast.js → ui79.js} +0 -0
- /package/{Toggle/Toggle.js → ui81.js} +0 -0
- /package/{Tooltip/TooltipRoot.js → ui83.js} +0 -0
- /package/{Dropzone/Dropzone.types.js → ui86.js} +0 -0
- /package/{Alert/alertVariants.js → ui89.js} +0 -0
- /package/{Input/inputVariants.js → ui90.js} +0 -0
- /package/{Toast/toastVariants.js → ui92.js} +0 -0
- /package/{Dropzone/DropzoneUtils.js → ui95.js} +0 -0
- /package/{Textarea/useAutosizeTextArea.js → ui96.js} +0 -0
- /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
|
|
3
|
+
import * as t from "@radix-ui/react-alert-dialog";
|
|
4
4
|
import { cn as s } from "@oneplatformdev/utils";
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
...
|
|
13
|
+
...e,
|
|
15
14
|
ref: o
|
|
16
15
|
}
|
|
17
16
|
));
|
|
18
|
-
m.displayName =
|
|
19
|
-
const p = i.forwardRef(({ className: a, ...
|
|
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
|
-
|
|
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
|
-
...
|
|
28
|
+
...e
|
|
30
29
|
}
|
|
31
30
|
)
|
|
32
31
|
] }));
|
|
33
|
-
p.displayName =
|
|
32
|
+
p.displayName = t.Content.displayName;
|
|
34
33
|
const g = ({
|
|
35
34
|
className: a,
|
|
36
|
-
...
|
|
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
|
-
...
|
|
43
|
+
...e
|
|
45
44
|
}
|
|
46
45
|
);
|
|
47
46
|
g.displayName = "AlertDialogHeader";
|
|
48
47
|
const N = ({
|
|
49
48
|
className: a,
|
|
50
|
-
...
|
|
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
|
-
...
|
|
57
|
+
...e
|
|
59
58
|
}
|
|
60
59
|
);
|
|
61
60
|
N.displayName = "AlertDialogFooter";
|
|
62
|
-
const y = i.forwardRef(({ className: a, ...
|
|
63
|
-
|
|
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
|
-
...
|
|
66
|
+
...e
|
|
68
67
|
}
|
|
69
68
|
));
|
|
70
|
-
y.displayName =
|
|
71
|
-
const x = i.forwardRef(({ className: a, ...
|
|
72
|
-
|
|
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
|
-
...
|
|
75
|
+
...e
|
|
77
76
|
}
|
|
78
77
|
));
|
|
79
|
-
x.displayName =
|
|
80
|
-
const u = i.forwardRef(({ className: a, variant:
|
|
81
|
-
|
|
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:
|
|
83
|
+
className: s(n({ variant: e, size: o }), a),
|
|
85
84
|
...r
|
|
86
85
|
}
|
|
87
86
|
));
|
|
88
|
-
u.displayName =
|
|
89
|
-
const A = i.forwardRef(({ className: a, variant:
|
|
90
|
-
|
|
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:
|
|
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 =
|
|
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
|
-
|
|
110
|
+
b as AlertDialogRoot,
|
|
112
111
|
y as AlertDialogTitle,
|
|
113
|
-
|
|
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 "./
|
|
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 {
|
|
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(
|
|
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(
|
|
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(
|
|
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 "./
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "./
|
|
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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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 =
|
|
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
|
-
|
|
24
|
+
I,
|
|
25
25
|
{
|
|
26
26
|
name: l,
|
|
27
27
|
placeholder: c,
|
|
28
28
|
value: p,
|
|
29
|
-
className:
|
|
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(
|
|
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,
|
|
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(
|
|
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(
|
|
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
|
|
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 {
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
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" &&
|
|
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(
|
|
20
|
+
t && /* @__PURE__ */ r(p, { children: typeof t == "function" ? t({ ...n }) : t })
|
|
22
21
|
]
|
|
23
22
|
},
|
|
24
23
|
e.value
|
|
25
24
|
);
|
|
26
|
-
},
|
|
27
|
-
const { renderOption: t, option: e, index: o, options: l, deep: u = 0, ...
|
|
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
|
-
{ ...
|
|
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
|
-
{ ...
|
|
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((
|
|
49
|
-
|
|
47
|
+
e.children?.map((a, s, h) => /* @__PURE__ */ m(
|
|
48
|
+
g,
|
|
50
49
|
{
|
|
51
50
|
...n,
|
|
52
|
-
key:
|
|
53
|
-
option:
|
|
54
|
-
options:
|
|
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
|
-
},
|
|
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:
|
|
69
|
+
disabled: i
|
|
71
70
|
} = n;
|
|
72
|
-
return /* @__PURE__ */ d(S, { value: t, onValueChange: o, disabled:
|
|
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
|
-
|
|
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((
|
|
88
|
-
|
|
86
|
+
e.map((a, s) => /* @__PURE__ */ m(
|
|
87
|
+
g,
|
|
89
88
|
{
|
|
90
89
|
...n,
|
|
91
|
-
key:
|
|
92
|
-
option:
|
|
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
|
-
|
|
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 "
|
|
6
|
+
import { useIsMobile as z } from "./ui97.js";
|
|
7
7
|
import { cn as d } from "@oneplatformdev/utils";
|
|
8
|
-
import {
|
|
9
|
-
import "
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
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(
|
|
100
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
387
|
+
/* @__PURE__ */ r(A, { asChild: !0, children: v }),
|
|
389
388
|
/* @__PURE__ */ r(
|
|
390
|
-
|
|
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 "
|
|
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 }),
|
package/{Tabs/Tabs.js → ui74.js}
RENAMED
|
@@ -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 "./
|
|
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 "./
|
|
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 "
|
|
6
|
-
import "
|
|
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
|
-
},
|
|
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
|
-
|
|
47
|
-
|
|
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 "./
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useToast as c } from "
|
|
3
|
-
import { ToastProvider as T, Toast as m, ToastTitle as d, ToastDescription as l, ToastClose as p, ToastViewport as f } from "
|
|
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 "
|
|
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 "./
|
|
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 "
|
|
7
|
-
import { DEFAULT_FILE_TYPES as G } from "./
|
|
8
|
-
import { FilePreview as J } from "./
|
|
9
|
-
import { DropzoneSinglePickPreview as K } from "./
|
|
10
|
-
import { DefaultFileIcon as Q, isFile as v, extractName as R } from "./
|
|
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
|
+
};
|