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