@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,22 +1,20 @@
|
|
|
1
1
|
import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Button as o } from "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import { Select as P } from "../Select/Select.js";
|
|
6
|
-
const y = ({
|
|
2
|
+
import { Button as o } from "./ui15.js";
|
|
3
|
+
import { Select as P } from "./ui64.js";
|
|
4
|
+
const j = ({
|
|
7
5
|
offset: l,
|
|
8
6
|
limit: a,
|
|
9
7
|
totalRows: s,
|
|
10
|
-
setLimit:
|
|
8
|
+
setLimit: d,
|
|
11
9
|
setOffset: t,
|
|
12
|
-
tRowsPerPage:
|
|
13
|
-
tPrevious:
|
|
14
|
-
tPage:
|
|
15
|
-
tNext:
|
|
10
|
+
tRowsPerPage: p = "Rows per page",
|
|
11
|
+
tPrevious: u = "Previous",
|
|
12
|
+
tPage: x = "Page",
|
|
13
|
+
tNext: m = "Next",
|
|
16
14
|
tOf: v = "Of"
|
|
17
15
|
}) => {
|
|
18
16
|
const i = Math.ceil(l / a) + 1, r = Math.ceil(s / a), h = i === r, b = (e) => {
|
|
19
|
-
t(0),
|
|
17
|
+
t(0), d(parseInt(e));
|
|
20
18
|
}, g = () => {
|
|
21
19
|
let e = l - a;
|
|
22
20
|
e < 0 && (e = 0), t(e);
|
|
@@ -26,7 +24,7 @@ const y = ({
|
|
|
26
24
|
};
|
|
27
25
|
return /* @__PURE__ */ c("div", { className: "flex items-center justify-end space-x-2 py-4", children: [
|
|
28
26
|
/* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
|
|
29
|
-
/* @__PURE__ */ n("span", { className: "text-sm text-nowrap", children:
|
|
27
|
+
/* @__PURE__ */ n("span", { className: "text-sm text-nowrap", children: p }),
|
|
30
28
|
/* @__PURE__ */ n(
|
|
31
29
|
P,
|
|
32
30
|
{
|
|
@@ -52,10 +50,10 @@ const y = ({
|
|
|
52
50
|
size: "sm",
|
|
53
51
|
disabled: !l,
|
|
54
52
|
onClick: g,
|
|
55
|
-
children:
|
|
53
|
+
children: u
|
|
56
54
|
}
|
|
57
55
|
),
|
|
58
|
-
/* @__PURE__ */ n("span", { className: "text-sm", children: `${
|
|
56
|
+
/* @__PURE__ */ n("span", { className: "text-sm", children: `${x} ${i} ${v} ${r}` }),
|
|
59
57
|
/* @__PURE__ */ n(
|
|
60
58
|
o,
|
|
61
59
|
{
|
|
@@ -63,12 +61,12 @@ const y = ({
|
|
|
63
61
|
size: "sm",
|
|
64
62
|
disabled: h,
|
|
65
63
|
onClick: N,
|
|
66
|
-
children:
|
|
64
|
+
children: m
|
|
67
65
|
}
|
|
68
66
|
)
|
|
69
67
|
] })
|
|
70
68
|
] });
|
|
71
69
|
};
|
|
72
70
|
export {
|
|
73
|
-
|
|
71
|
+
j as TablePagination
|
|
74
72
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as c, jsx as i, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import { Sidebar as S, SidebarHeader as s, SidebarContent as p, SidebarFooter as m, SidebarRail as E } from "
|
|
3
|
+
import { Sidebar as S, SidebarHeader as s, SidebarContent as p, SidebarFooter as m, SidebarRail as E } from "./ui67.js";
|
|
4
4
|
function d(l, e) {
|
|
5
5
|
return a.isValidElement(l) && l.type === e;
|
|
6
6
|
}
|
package/ui91.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p, useState as u } from "react";
|
|
3
|
+
import { ComboboxOptionItem as c } from "./ui98.js";
|
|
4
|
+
import { ChevronDownIcon as h } from "lucide-react";
|
|
5
|
+
import { cn as i } from "@oneplatformdev/utils";
|
|
6
|
+
import { Collapsible as b, CollapsibleTrigger as g, CollapsibleContent as C } from "./ui24.js";
|
|
7
|
+
import { Button as x } from "./ui15.js";
|
|
8
|
+
const d = p((e, r) => {
|
|
9
|
+
const { option: s, deep: a = 0 } = e, [t, l] = u(!0);
|
|
10
|
+
return s?.items?.length ? /* @__PURE__ */ m(
|
|
11
|
+
b,
|
|
12
|
+
{
|
|
13
|
+
ref: r,
|
|
14
|
+
open: t,
|
|
15
|
+
onOpenChange: l,
|
|
16
|
+
"data-opened": t,
|
|
17
|
+
className: i("group/collapsible"),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ o(c, { ...e, children: /* @__PURE__ */ o(g, { asChild: !0, children: /* @__PURE__ */ m(
|
|
20
|
+
x,
|
|
21
|
+
{
|
|
22
|
+
onClick: (n) => {
|
|
23
|
+
n?.preventDefault(), n?.stopPropagation(), l((f) => !f);
|
|
24
|
+
},
|
|
25
|
+
type: "button",
|
|
26
|
+
variant: "ghost",
|
|
27
|
+
size: "sm",
|
|
28
|
+
className: i("aspect-square size-6", "transition-transform"),
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ o(
|
|
31
|
+
h,
|
|
32
|
+
{
|
|
33
|
+
className: i(
|
|
34
|
+
"size-5!",
|
|
35
|
+
"transition-transform",
|
|
36
|
+
t && "rotate-180"
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Toggle" })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
) }) }),
|
|
44
|
+
/* @__PURE__ */ o(C, { children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-0", children: s?.items.map((n) => /* @__PURE__ */ o(
|
|
45
|
+
d,
|
|
46
|
+
{
|
|
47
|
+
...e,
|
|
48
|
+
deep: a + 1,
|
|
49
|
+
option: n
|
|
50
|
+
},
|
|
51
|
+
n.value
|
|
52
|
+
)) }) })
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
) : /* @__PURE__ */ o(c, { ...e, ref: r });
|
|
56
|
+
}), D = p((e, r) => {
|
|
57
|
+
const { options: s = [], ...a } = e;
|
|
58
|
+
return /* @__PURE__ */ o("div", { ref: r, className: "flex flex-col gap-0", children: s.map((t) => /* @__PURE__ */ o(d, { ...a, option: t }, t.value)) });
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
D as ComboboxOptions,
|
|
62
|
+
d as ComboboxOptionsNode
|
|
63
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useEffect as f } from "react";
|
|
3
3
|
import { File as m } from "lucide-react";
|
|
4
|
-
import { DEFAULT_IMAGES_TYPES as p } from "./
|
|
5
|
-
import { isFile as a } from "./
|
|
4
|
+
import { DEFAULT_IMAGES_TYPES as p } from "./ui86.js";
|
|
5
|
+
import { isFile as a } from "./ui95.js";
|
|
6
6
|
import { cn as t } from "@oneplatformdev/utils";
|
|
7
7
|
const N = ({ item: e, styles: s }) => {
|
|
8
8
|
const [c, r] = u(null), i = a(e) && p.includes(e.type);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as c } from "react";
|
|
3
|
-
import { isFile as u } from "./
|
|
3
|
+
import { isFile as u } from "./ui95.js";
|
|
4
4
|
import { X as f, FileIcon as d } from "lucide-react";
|
|
5
5
|
const m = (e) => {
|
|
6
6
|
if (!e) return "";
|
package/ui98.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { Check as f } from "lucide-react";
|
|
5
|
+
import { cn as a } from "@oneplatformdev/utils";
|
|
6
|
+
import { CommandItem as d } from "./ui26.js";
|
|
7
|
+
const u = 8, O = c((i, r) => {
|
|
8
|
+
const { children: m, setOpen: n, option: e, onChangeOption: o, value: l = "", deep: p = 0 } = i;
|
|
9
|
+
return /* @__PURE__ */ s(
|
|
10
|
+
d,
|
|
11
|
+
{
|
|
12
|
+
ref: r,
|
|
13
|
+
value: e.value,
|
|
14
|
+
onSelect: () => {
|
|
15
|
+
l === e.value ? o?.({ value: "", label: "" }) : o?.(e), n(!1);
|
|
16
|
+
},
|
|
17
|
+
style: {
|
|
18
|
+
paddingLeft: (p + 1) * u
|
|
19
|
+
},
|
|
20
|
+
children: [
|
|
21
|
+
m,
|
|
22
|
+
/* @__PURE__ */ t(
|
|
23
|
+
"span",
|
|
24
|
+
{
|
|
25
|
+
className: a(
|
|
26
|
+
"overflow-hidden whitespace-wrap text-ellipsis line-clamp-2"
|
|
27
|
+
),
|
|
28
|
+
children: e.label
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ t(
|
|
32
|
+
f,
|
|
33
|
+
{
|
|
34
|
+
className: a(
|
|
35
|
+
"ml-auto",
|
|
36
|
+
l === e.value ? "opacity-100" : "opacity-0"
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
e.value
|
|
43
|
+
);
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
O as ComboboxOptionItem
|
|
47
|
+
};
|
package/Accordion/index.js
DELETED
package/Alert/index.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { AlertDialog as n } from "./AlertDialog.js";
|
|
3
|
-
import { Button as l } from "../Button/Button.js";
|
|
4
|
-
import "../Button/buttonVariants.js";
|
|
5
|
-
const c = (e) => /* @__PURE__ */ t(n, { ...e }), r = ["confirm", "alert", "destructive"], b = {
|
|
6
|
-
title: "AlertDialog",
|
|
7
|
-
component: n,
|
|
8
|
-
render: c,
|
|
9
|
-
argTypes: {
|
|
10
|
-
open: {
|
|
11
|
-
control: {
|
|
12
|
-
type: "boolean"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
variant: {
|
|
16
|
-
name: "variant",
|
|
17
|
-
description: "ButtonIcon variant",
|
|
18
|
-
options: r,
|
|
19
|
-
control: {
|
|
20
|
-
type: "inline-radio"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
cancelLabel: {
|
|
24
|
-
control: {
|
|
25
|
-
type: "text"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
actionLabel: {
|
|
29
|
-
control: {
|
|
30
|
-
type: "text"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
title: {
|
|
34
|
-
control: {
|
|
35
|
-
type: "text"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
description: {
|
|
39
|
-
control: {
|
|
40
|
-
type: "text"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
args: {
|
|
45
|
-
variant: "alert",
|
|
46
|
-
cancelLabel: "Cancel",
|
|
47
|
-
actionLabel: "Action"
|
|
48
|
-
}
|
|
49
|
-
}, s = (e) => /* @__PURE__ */ t(
|
|
50
|
-
n,
|
|
51
|
-
{
|
|
52
|
-
...e
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
s.args = {
|
|
56
|
-
trigger: "Trigger text or ReactNode",
|
|
57
|
-
variant: "confirm",
|
|
58
|
-
title: "Dialog title...",
|
|
59
|
-
description: "Description text...",
|
|
60
|
-
cancelLabel: "Cancel label",
|
|
61
|
-
actionLabel: "Action label"
|
|
62
|
-
};
|
|
63
|
-
const i = (e) => /* @__PURE__ */ t("div", { className: "flex gap-3", children: r.map((o) => /* @__PURE__ */ t(
|
|
64
|
-
n,
|
|
65
|
-
{
|
|
66
|
-
trigger: o,
|
|
67
|
-
...e,
|
|
68
|
-
variant: o
|
|
69
|
-
},
|
|
70
|
-
o
|
|
71
|
-
)) });
|
|
72
|
-
i.parameters = {
|
|
73
|
-
controls: {
|
|
74
|
-
include: ["title", "description", "cancelLabel", "actionLabel"]
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
i.args = {
|
|
78
|
-
title: "Dialog title",
|
|
79
|
-
description: "Description text..."
|
|
80
|
-
};
|
|
81
|
-
const a = (e) => /* @__PURE__ */ t(
|
|
82
|
-
n,
|
|
83
|
-
{
|
|
84
|
-
onOpenChange: (o) => console.log(o),
|
|
85
|
-
trigger: /* @__PURE__ */ t(l, { variant: "outline", children: "Control Trigger" }),
|
|
86
|
-
header: /* @__PURE__ */ t("div", { children: "Custom Header" }),
|
|
87
|
-
footer: [
|
|
88
|
-
/* @__PURE__ */ t(l, { variant: "outline", onClick: console.log, children: "On cancel" }, "cancel"),
|
|
89
|
-
/* @__PURE__ */ t(l, { variant: "outline", onClick: console.log, children: "On Action" }, "action")
|
|
90
|
-
],
|
|
91
|
-
...e
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
a.parameters = {
|
|
95
|
-
controls: {
|
|
96
|
-
include: ["open"]
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
a.args = {
|
|
100
|
-
open: !1
|
|
101
|
-
};
|
|
102
|
-
const p = (e) => /* @__PURE__ */ t(
|
|
103
|
-
n,
|
|
104
|
-
{
|
|
105
|
-
trigger: /* @__PURE__ */ t(l, { variant: "outline", children: "Full Content Trigger" }),
|
|
106
|
-
...e,
|
|
107
|
-
children: "Full Content..."
|
|
108
|
-
}
|
|
109
|
-
);
|
|
110
|
-
p.parameters = {
|
|
111
|
-
controls: {
|
|
112
|
-
include: []
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
export {
|
|
116
|
-
p as FullContent,
|
|
117
|
-
a as FullControl,
|
|
118
|
-
s as Playground,
|
|
119
|
-
i as Variants,
|
|
120
|
-
b as default
|
|
121
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/AlertDialog/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AlertDialogAction as e, AlertDialogCancel as r, AlertDialogContent as t, AlertDialogDescription as i, AlertDialogFooter as a, AlertDialogHeader as g, AlertDialogOverlay as A, AlertDialogPortal as D, AlertDialogRoot as n, AlertDialogTitle as c, AlertDialogTrigger as p } from "./AlertDialogRoot.js";
|
|
2
|
-
import { AlertDialog as m } from "./AlertDialog.js";
|
|
3
|
-
export {
|
|
4
|
-
m as AlertDialog,
|
|
5
|
-
e as AlertDialogAction,
|
|
6
|
-
r as AlertDialogCancel,
|
|
7
|
-
t as AlertDialogContent,
|
|
8
|
-
i as AlertDialogDescription,
|
|
9
|
-
a as AlertDialogFooter,
|
|
10
|
-
g as AlertDialogHeader,
|
|
11
|
-
A as AlertDialogOverlay,
|
|
12
|
-
D as AlertDialogPortal,
|
|
13
|
-
n as AlertDialogRoot,
|
|
14
|
-
c as AlertDialogTitle,
|
|
15
|
-
p as AlertDialogTrigger
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/AreaChart/index.js
DELETED
package/Aside/Aside.types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/Aside/index.js
DELETED
package/AspectRatio/index.js
DELETED
package/Avatar/index.js
DELETED
package/Badge/Badge.types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/Badge/index.js
DELETED
package/Breadcrumb/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Breadcrumb as a, BreadcrumbEllipsis as m, BreadcrumbItem as b, BreadcrumbLink as c, BreadcrumbList as d, BreadcrumbPage as u, BreadcrumbSeparator as B } from "./Breadcrumb.js";
|
|
2
|
-
export {
|
|
3
|
-
a as Breadcrumb,
|
|
4
|
-
m as BreadcrumbEllipsis,
|
|
5
|
-
b as BreadcrumbItem,
|
|
6
|
-
c as BreadcrumbLink,
|
|
7
|
-
d as BreadcrumbList,
|
|
8
|
-
u as BreadcrumbPage,
|
|
9
|
-
B as BreadcrumbSeparator
|
|
10
|
-
};
|
package/Button/Button.stories.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { Button as t } from "./Button.js";
|
|
3
|
-
const o = (e) => /* @__PURE__ */ a(t, { ...e }), n = {
|
|
4
|
-
title: "Button",
|
|
5
|
-
component: t,
|
|
6
|
-
render: o,
|
|
7
|
-
args: {
|
|
8
|
-
variant: "default",
|
|
9
|
-
size: "default",
|
|
10
|
-
disabled: !1
|
|
11
|
-
}
|
|
12
|
-
}, s = {
|
|
13
|
-
args: {
|
|
14
|
-
children: "Default"
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
s as Default,
|
|
19
|
-
n as default
|
|
20
|
-
};
|
package/Button/Button.types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/Button/index.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { ButtonIcon as m } from "./ButtonIcon.js";
|
|
3
|
-
import { PencilLineIcon as x } from "lucide-react";
|
|
4
|
-
const s = ["contained", "outlined", "ghost", "link"], c = [
|
|
5
|
-
"primary",
|
|
6
|
-
"secondary",
|
|
7
|
-
"error",
|
|
8
|
-
"success",
|
|
9
|
-
"disabled"
|
|
10
|
-
], f = ["sm", "md", "lg"], l = (a) => /* @__PURE__ */ o(m, { ...a, children: /* @__PURE__ */ o(x, {}) }), z = {
|
|
11
|
-
title: "ButtonIcon",
|
|
12
|
-
component: m,
|
|
13
|
-
render: l,
|
|
14
|
-
argTypes: {
|
|
15
|
-
variant: {
|
|
16
|
-
name: "variant",
|
|
17
|
-
description: "ButtonIcon variant",
|
|
18
|
-
defaultValue: "contained",
|
|
19
|
-
options: s,
|
|
20
|
-
control: {
|
|
21
|
-
type: "inline-radio"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
color: {
|
|
25
|
-
options: c,
|
|
26
|
-
control: {
|
|
27
|
-
type: "inline-radio"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
options: f,
|
|
32
|
-
control: {
|
|
33
|
-
type: "inline-radio"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
tooltip: {
|
|
37
|
-
control: {
|
|
38
|
-
type: "text"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
disabled: {
|
|
42
|
-
control: {
|
|
43
|
-
type: "boolean"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
rounded: {
|
|
47
|
-
control: {
|
|
48
|
-
type: "boolean"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
args: {
|
|
53
|
-
variant: "contained",
|
|
54
|
-
color: "primary",
|
|
55
|
-
size: "md",
|
|
56
|
-
disabled: !1,
|
|
57
|
-
rounded: !1,
|
|
58
|
-
tooltip: "ButtonIcon tooltip"
|
|
59
|
-
}
|
|
60
|
-
}, u = ({ rounded: a, ...n }) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-10", children: [
|
|
61
|
-
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(l, { rounded: a, ...n }) }),
|
|
62
|
-
/* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: s.map((e) => /* @__PURE__ */ o("div", { className: "flex gap-2", children: c.map((t) => {
|
|
63
|
-
const i = `${e}-${t}`;
|
|
64
|
-
return /* @__PURE__ */ o("div", { className: "flex gap-2", children: f.map((r) => {
|
|
65
|
-
const p = `${i}-${r}`;
|
|
66
|
-
return /* @__PURE__ */ o(
|
|
67
|
-
l,
|
|
68
|
-
{
|
|
69
|
-
color: t,
|
|
70
|
-
size: r,
|
|
71
|
-
variant: e,
|
|
72
|
-
rounded: a,
|
|
73
|
-
tooltip: p
|
|
74
|
-
},
|
|
75
|
-
p
|
|
76
|
-
);
|
|
77
|
-
}) }, i);
|
|
78
|
-
}) }, e)) })
|
|
79
|
-
] });
|
|
80
|
-
u.args = {
|
|
81
|
-
onClick: { action: (a) => a }
|
|
82
|
-
};
|
|
83
|
-
const g = ({ variant: a, ...n }) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-10", children: [
|
|
84
|
-
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(l, { variant: a, ...n }) }),
|
|
85
|
-
/* @__PURE__ */ o("div", { className: "flex gap-2", children: s.map((e) => /* @__PURE__ */ o(l, { variant: e, tooltip: e }, e)) })
|
|
86
|
-
] });
|
|
87
|
-
g.parameters = {
|
|
88
|
-
controls: {
|
|
89
|
-
include: ["disabled", "color", "size", "variant"]
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
const h = ({ color: a, ...n }) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-2", children: [
|
|
93
|
-
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(l, { color: a, ...n }) }),
|
|
94
|
-
/* @__PURE__ */ o("div", { className: "flex gap-2", children: c.map((e) => /* @__PURE__ */ o(l, { color: e, tooltip: e, ...n }, e)) })
|
|
95
|
-
] });
|
|
96
|
-
h.parameters = {
|
|
97
|
-
controls: {
|
|
98
|
-
include: ["disabled", "color", "size", "variant"]
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
const v = ({ variant: a, color: n, ...e }) => /* @__PURE__ */ o("div", { className: "flex flex-col gap-10", children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: s.map((t) => /* @__PURE__ */ o("div", { className: "flex gap-2", children: c.map((i) => {
|
|
102
|
-
const r = `${t}-${i}`;
|
|
103
|
-
return /* @__PURE__ */ o(
|
|
104
|
-
l,
|
|
105
|
-
{
|
|
106
|
-
variant: t,
|
|
107
|
-
color: i,
|
|
108
|
-
disabled: !0,
|
|
109
|
-
tooltip: r,
|
|
110
|
-
...e
|
|
111
|
-
},
|
|
112
|
-
r
|
|
113
|
-
);
|
|
114
|
-
}) }, t)) }) });
|
|
115
|
-
v.parameters = {
|
|
116
|
-
controls: {
|
|
117
|
-
include: []
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
export {
|
|
121
|
-
h as Colors,
|
|
122
|
-
v as Disabled,
|
|
123
|
-
u as Playground,
|
|
124
|
-
g as Variants,
|
|
125
|
-
z as default
|
|
126
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/ButtonIcon/index.js
DELETED
package/Calendar/index.js
DELETED
package/Card/index.js
DELETED
package/Carousel/index.js
DELETED
package/Chart/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChartContainer as o, ChartLegend as r, ChartLegendContent as C, ChartStyle as n, ChartTooltip as a, ChartTooltipContent as h } from "./Chart.js";
|
|
2
|
-
export {
|
|
3
|
-
o as ChartContainer,
|
|
4
|
-
r as ChartLegend,
|
|
5
|
-
C as ChartLegendContent,
|
|
6
|
-
n as ChartStyle,
|
|
7
|
-
a as ChartTooltip,
|
|
8
|
-
h as ChartTooltipContent
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/Checkbox/index.js
DELETED
package/Collapsible/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|