@konstructio/ui 0.0.13-alpha.2 → 0.1.0-alpha.11
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/dist/{Combination-b348x__d.js → Combination-VYaRRJBZ.js} +155 -157
- package/dist/DatePicker.css +1 -0
- package/dist/Modal-CrG0m703.js +98 -0
- package/dist/assets/icons/components/Search.js +26 -0
- package/dist/assets/icons/components/Warning.js +22 -0
- package/dist/assets/icons/components/index.js +6 -0
- package/dist/chevron-down-UW8ts6wI.js +11 -0
- package/dist/{chevron-up-DgLBQCKD.js → chevron-up-RLP4nX7V.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +55 -41
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +79 -0
- package/dist/components/Badge/Badge.variants.js +68 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +44 -53
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -23
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +43 -56
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +30 -26
- package/dist/components/Button/Button.variants.js +116 -29
- package/dist/components/Checkbox/Checkbox.js +300 -185
- package/dist/components/Checkbox/Checkbox.variants.js +12 -15
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +2722 -0
- package/dist/components/Datepicker/DatePicker.variants.js +5 -0
- package/dist/components/Divider/Divider.variants.js +9 -12
- package/dist/components/Dropdown/components/List/List.js +55 -18
- package/dist/components/Dropdown/components/List/List.variants.js +5 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.js +28 -22
- package/dist/components/Dropdown/components/Wrapper.js +110 -86
- package/dist/components/Dropdown/contexts/dropdown.context.js +6 -2
- package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
- package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -11
- package/dist/components/Filter/Filter.js +20 -0
- package/dist/components/Filter/Filter.variants.js +22 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +87 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +95 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +87 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +90 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +18 -0
- package/dist/components/Filter/components/index.js +8 -0
- package/dist/components/Filter/events/index.js +12 -0
- package/dist/components/Input/Input.js +134 -163
- package/dist/components/Input/Input.variants.js +15 -13
- package/dist/components/Loading/Loading.js +14 -99
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -4
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +4 -6
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/Radio/Radio.variants.js +14 -12
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +141 -126
- package/dist/components/Tabs/Tabs.js +24 -0
- package/dist/components/Tabs/Tabs.variants.js +58 -0
- package/dist/components/Tabs/components/Content.js +19 -0
- package/dist/components/Tabs/components/List.js +20 -0
- package/dist/components/Tabs/components/Trigger.js +26 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/TimePicker.js +8 -0
- package/dist/components/TimePicker/TimePicker.variants.js +62 -0
- package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +96 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
- package/dist/components/TimePicker/components/index.js +4 -0
- package/dist/components/TimePicker/contexts/index.js +8 -0
- package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
- package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
- package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
- package/dist/components/TimePicker/utils/index.js +6 -0
- package/dist/components/Toast/Toast.js +38 -36
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +14 -16
- package/dist/components/index.js +78 -66
- package/dist/createLucideIcon-ByJ0JZvK.js +94 -0
- package/dist/index--EmNlyHx.js +31 -0
- package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
- package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
- package/dist/{index-AM3avohj.js → index-BNU3RH-3.js} +3 -3
- package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
- package/dist/index-BdMNhZnh.js +9 -0
- package/dist/index-BvCZBMfr.js +432 -0
- package/dist/index-Cq1I1cG9.js +129 -0
- package/dist/index-Cs8Lv8Wj.js +13 -0
- package/dist/index-CvfCCTEO.js +323 -0
- package/dist/{index-DvFiic6N.js → index-DLYwlPRZ.js} +96 -102
- package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
- package/dist/{index-dRxIWVBr.js → index-Dkt8F6CZ.js} +6 -5
- package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
- package/dist/index-DwYXX2sM.js +13 -0
- package/dist/{index-C5psggHV.js → index-h-Ul0anl.js} +1 -2
- package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
- package/dist/index.d.ts +128 -17
- package/dist/index.js +84 -72
- package/dist/package.json +37 -37
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +263 -0
- package/dist/ui/kubefirst-theme.css +1 -1
- package/dist/ui/theme.css +11 -0
- package/dist/ui/utilities.css +11 -2
- package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
- package/dist/utils/index.js +3 -3
- package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
- package/package.json +37 -37
- package/dist/Modal-i7eolhYH.js +0 -926
- package/dist/index-BOx5P4tS.js +0 -423
- package/dist/index-CWKdynYu.js +0 -32
- package/dist/index-bYyfdsls.js +0 -118
- package/dist/useBreadcrumb-BsIeMoR1.js +0 -1279
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Body as b } from "./components/Modal/components/Body/Body.js";
|
|
2
|
+
import { Footer as g } from "./components/Modal/components/Footer/Footer.js";
|
|
3
|
+
import { Header as v } from "./components/Modal/components/Header/Header.js";
|
|
4
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
import { Children as s, isValidElement as m, useEffect as w } from "react";
|
|
6
|
+
import { r as x } from "./index-BCGvACM9.js";
|
|
7
|
+
import { R as A } from "./index--EmNlyHx.js";
|
|
8
|
+
import { R as E } from "./Combination-VYaRRJBZ.js";
|
|
9
|
+
import { cn as p } from "./utils/index.js";
|
|
10
|
+
import { buttonCloseVariants as N, modalVariants as R } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
|
|
11
|
+
import { X as k } from "./x-BPcqkRZd.js";
|
|
12
|
+
const B = ({
|
|
13
|
+
children: e,
|
|
14
|
+
theme: o,
|
|
15
|
+
className: d,
|
|
16
|
+
buttonCloseClassName: i,
|
|
17
|
+
onClose: n
|
|
18
|
+
}) => {
|
|
19
|
+
const c = s.toArray(e).find(
|
|
20
|
+
(r) => m(r) && r.type === t.Header
|
|
21
|
+
), f = s.toArray(e).find(
|
|
22
|
+
(r) => m(r) && r.type === t.Body
|
|
23
|
+
), y = s.toArray(e).find(
|
|
24
|
+
(r) => m(r) && r.type === t.Footer
|
|
25
|
+
), u = s.toArray(e).filter(
|
|
26
|
+
(r) => !m(r) || ![t.Header, t.Body, t.Footer].includes(
|
|
27
|
+
r.type
|
|
28
|
+
)
|
|
29
|
+
);
|
|
30
|
+
return /* @__PURE__ */ a(E, { children: /* @__PURE__ */ l(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
className: "fixed inset-0 grid place-content-center",
|
|
34
|
+
"data-theme": o,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ a(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
className: "absolute inset-0 bg-black opacity-75 animate-in fade-in-0",
|
|
40
|
+
onClick: n,
|
|
41
|
+
role: "presentation"
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ l(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: p(
|
|
48
|
+
R({
|
|
49
|
+
className: d
|
|
50
|
+
})
|
|
51
|
+
),
|
|
52
|
+
role: "dialog",
|
|
53
|
+
"aria-modal": "true",
|
|
54
|
+
children: [
|
|
55
|
+
c,
|
|
56
|
+
/* @__PURE__ */ l(
|
|
57
|
+
"button",
|
|
58
|
+
{
|
|
59
|
+
className: p(
|
|
60
|
+
N({
|
|
61
|
+
className: i
|
|
62
|
+
})
|
|
63
|
+
),
|
|
64
|
+
onClick: n,
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ a(k, {}),
|
|
67
|
+
/* @__PURE__ */ a(A, { children: "Dismiss modal" })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
f ?? u,
|
|
72
|
+
y
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
) });
|
|
79
|
+
}, t = ({ isOpen: e, onClose: o, ...d }) => (w(() => {
|
|
80
|
+
const i = new AbortController(), n = (c) => {
|
|
81
|
+
c.code === "Escape" && (o == null || o());
|
|
82
|
+
};
|
|
83
|
+
return window.addEventListener("keydown", n, {
|
|
84
|
+
signal: i.signal
|
|
85
|
+
}), () => {
|
|
86
|
+
i.abort();
|
|
87
|
+
};
|
|
88
|
+
}, [o]), e ? x.createPortal(
|
|
89
|
+
/* @__PURE__ */ a(B, { ...d, onClose: o }),
|
|
90
|
+
document.body
|
|
91
|
+
) : null);
|
|
92
|
+
t.Header = v;
|
|
93
|
+
t.Body = b;
|
|
94
|
+
t.Footer = g;
|
|
95
|
+
export {
|
|
96
|
+
t as M,
|
|
97
|
+
B as W
|
|
98
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
const e = ({ className: r }) => /* @__PURE__ */ l(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
width: "20",
|
|
6
|
+
height: "20",
|
|
7
|
+
viewBox: "0 0 20 20",
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
className: r,
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ i("g", { id: "Icon", clipPath: "url(#clip0_252_122)", children: /* @__PURE__ */ i(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
id: "Vector",
|
|
15
|
+
d: "M12.9167 11.6667H12.2583L12.025 11.4417C12.8417 10.4917 13.3333 9.25833 13.3333 7.91667C13.3333 4.925 10.9083 2.5 7.91667 2.5C4.925 2.5 2.5 4.925 2.5 7.91667C2.5 10.9083 4.925 13.3333 7.91667 13.3333C9.25833 13.3333 10.4917 12.8417 11.4417 12.025L11.6667 12.2583V12.9167L15.8333 17.075L17.075 15.8333L12.9167 11.6667ZM7.91667 11.6667C5.84167 11.6667 4.16667 9.99167 4.16667 7.91667C4.16667 5.84167 5.84167 4.16667 7.91667 4.16667C9.99167 4.16667 11.6667 5.84167 11.6667 7.91667C11.6667 9.99167 9.99167 11.6667 7.91667 11.6667Z",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
}
|
|
18
|
+
) }),
|
|
19
|
+
/* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", { id: "clip0_252_122", children: /* @__PURE__ */ i("rect", { width: "20", height: "20", fill: "currentColor" }) }) })
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
export {
|
|
24
|
+
e as SearchIcon,
|
|
25
|
+
e as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
const l = ({ className: C }) => /* @__PURE__ */ r(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
width: "20",
|
|
6
|
+
height: "20",
|
|
7
|
+
viewBox: "0 0 20 20",
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
className: C,
|
|
10
|
+
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ r(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
d: "M9.16663 12.5H10.8333V14.1667H9.16663V12.5ZM9.16663 5.83335H10.8333V10.8334H9.16663V5.83335ZM9.99163 1.66669C5.39163 1.66669 1.66663 5.40002 1.66663 10C1.66663 14.6 5.39163 18.3334 9.99163 18.3334C14.6 18.3334 18.3333 14.6 18.3333 10C18.3333 5.40002 14.6 1.66669 9.99163 1.66669ZM9.99996 16.6667C6.31663 16.6667 3.33329 13.6834 3.33329 10C3.33329 6.31669 6.31663 3.33335 9.99996 3.33335C13.6833 3.33335 16.6666 6.31669 16.6666 10C16.6666 13.6834 13.6833 16.6667 9.99996 16.6667Z",
|
|
14
|
+
fill: "currentColor"
|
|
15
|
+
}
|
|
16
|
+
) })
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
l as Warning,
|
|
21
|
+
l as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { c as o } from "./createLucideIcon-ByJ0JZvK.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.513.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const n = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], e = o("chevron-down", n);
|
|
9
|
+
export {
|
|
10
|
+
e as C
|
|
11
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as l, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as b, useState as C, useMemo as V, isValidElement as v, useCallback as k, useEffect as w } from "react";
|
|
3
|
-
import { V as x } from "../../index
|
|
3
|
+
import { V as x } from "../../index--EmNlyHx.js";
|
|
4
4
|
import { cn as m } from "../../utils/index.js";
|
|
5
5
|
import { closeButtonVariants as y, alertVariants as A } from "./Alert.variants.js";
|
|
6
|
-
import { X as E } from "../../x-
|
|
6
|
+
import { X as E } from "../../x-BPcqkRZd.js";
|
|
7
7
|
const B = ({
|
|
8
8
|
theme: c,
|
|
9
9
|
type: o,
|
|
@@ -1,61 +1,75 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { useAlertDialog as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { R as A, A as D, P as v, O as j, C as k, T, D as w, a as P, b as R } from "../../index-BNU3RH-3.js";
|
|
3
|
+
import { Button as l } from "../Button/Button.js";
|
|
4
|
+
import { cn as t } from "../../utils/index.js";
|
|
5
|
+
import { useAlertDialog as z } from "./hooks/useAlertDialog.js";
|
|
6
|
+
const G = ({
|
|
7
|
+
buttonCancel: {
|
|
8
|
+
className: s,
|
|
9
|
+
text: i = "Cancel",
|
|
10
|
+
...r
|
|
11
|
+
} = {},
|
|
12
|
+
buttonConfirm: {
|
|
13
|
+
className: o,
|
|
14
|
+
text: c = "OK",
|
|
15
|
+
...m
|
|
16
|
+
} = {},
|
|
17
|
+
buttonTriggerClassName: d,
|
|
18
|
+
buttonTriggerText: p,
|
|
19
|
+
description: f,
|
|
20
|
+
showCancelButton: h = !0,
|
|
21
|
+
theme: n,
|
|
22
|
+
title: x,
|
|
23
|
+
wrapperClassName: u,
|
|
24
|
+
onConfirm: C,
|
|
25
|
+
...b
|
|
17
26
|
}) => {
|
|
18
|
-
const { isOpen:
|
|
19
|
-
onConfirm:
|
|
27
|
+
const { isOpen: N, handleCancel: g, handleConfirm: y, handleOpen: O } = z({
|
|
28
|
+
onConfirm: C
|
|
20
29
|
});
|
|
21
|
-
return /* @__PURE__ */ a(
|
|
30
|
+
return /* @__PURE__ */ a(A, { open: N, ...b, children: [
|
|
22
31
|
/* @__PURE__ */ e(
|
|
23
|
-
|
|
32
|
+
D,
|
|
24
33
|
{
|
|
25
|
-
className:
|
|
26
|
-
text:
|
|
27
|
-
"data-theme":
|
|
28
|
-
onOpen:
|
|
34
|
+
className: d,
|
|
35
|
+
text: p,
|
|
36
|
+
"data-theme": n,
|
|
37
|
+
onOpen: O
|
|
29
38
|
}
|
|
30
39
|
),
|
|
31
|
-
/* @__PURE__ */ a(
|
|
32
|
-
/* @__PURE__ */ e(
|
|
40
|
+
/* @__PURE__ */ a(v, { children: [
|
|
41
|
+
/* @__PURE__ */ e(j, { className: "bg-black opacity-70 inset-0 fixed animate-in fade-in-0" }),
|
|
33
42
|
/* @__PURE__ */ a(
|
|
34
|
-
|
|
43
|
+
k,
|
|
35
44
|
{
|
|
36
|
-
"data-theme":
|
|
37
|
-
className:
|
|
45
|
+
"data-theme": n,
|
|
46
|
+
className: t(
|
|
47
|
+
"bg-white rounded-md fixed top-1/2 left-1/2 -translate-y-2/4 -translate-x-2/4 flex flex-col gap-8 p-8 animate-in fade-in-0 zoom-in-85",
|
|
48
|
+
u
|
|
49
|
+
),
|
|
38
50
|
children: [
|
|
39
|
-
/* @__PURE__ */ e(
|
|
40
|
-
/* @__PURE__ */ e(
|
|
51
|
+
/* @__PURE__ */ e(T, { className: "text-base text-slate-700 font-semibold", children: x }),
|
|
52
|
+
/* @__PURE__ */ e(w, { className: "text-sm text-slate-800", children: f }),
|
|
41
53
|
/* @__PURE__ */ a("div", { className: "flex flex-row gap-5 justify-end", children: [
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
|
|
54
|
+
h && /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e(
|
|
55
|
+
l,
|
|
44
56
|
{
|
|
45
57
|
type: "button",
|
|
46
58
|
variant: "secondary",
|
|
47
|
-
className:
|
|
48
|
-
onClick:
|
|
49
|
-
|
|
59
|
+
className: t(s),
|
|
60
|
+
onClick: g,
|
|
61
|
+
...r,
|
|
62
|
+
children: i
|
|
50
63
|
}
|
|
51
64
|
) }),
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
|
|
65
|
+
/* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ e(
|
|
66
|
+
l,
|
|
54
67
|
{
|
|
55
68
|
type: "button",
|
|
56
|
-
variant: "
|
|
57
|
-
className:
|
|
58
|
-
onClick:
|
|
69
|
+
variant: "primary",
|
|
70
|
+
className: t(o),
|
|
71
|
+
onClick: y,
|
|
72
|
+
...m,
|
|
59
73
|
children: c
|
|
60
74
|
}
|
|
61
75
|
) })
|
|
@@ -67,5 +81,5 @@ const B = ({
|
|
|
67
81
|
] });
|
|
68
82
|
};
|
|
69
83
|
export {
|
|
70
|
-
|
|
84
|
+
G as AlertDialog
|
|
71
85
|
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as v, useState as w, useCallback as x, useEffect as y } from "react";
|
|
3
|
+
import { cn as u } from "../../utils/index.js";
|
|
4
|
+
import { buttonDismissVariants as M, badgeVariants as Z } from "./Badge.variants.js";
|
|
5
|
+
import { c as N } from "../../createLucideIcon-ByJ0JZvK.js";
|
|
6
|
+
/**
|
|
7
|
+
* @license lucide-react v0.513.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const V = [
|
|
13
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
14
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
15
|
+
], I = N("x", V), L = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M7.05002%201.45002C7.05002%201.17155%206.9394%200.904476%206.74249%200.707562C6.54557%200.510649%206.2785%200.400024%206.00002%200.400024C5.72155%200.400024%205.45448%200.510649%205.25756%200.707562C5.06065%200.904476%204.95002%201.17155%204.95002%201.45002C4.95002%201.7285%205.06065%201.99557%205.25756%202.19249C5.45448%202.3894%205.72155%202.50002%206.00002%202.50002C6.2785%202.50002%206.54557%202.3894%206.74249%202.19249C6.9394%201.99557%207.05002%201.7285%207.05002%201.45002ZM7.05002%2010.55C7.05002%2010.2715%206.9394%2010.0045%206.74249%209.80756C6.54557%209.61065%206.2785%209.50002%206.00002%209.50002C5.72155%209.50002%205.45448%209.61065%205.25756%209.80756C5.06065%2010.0045%204.95002%2010.2715%204.95002%2010.55C4.95002%2010.8285%205.06065%2011.0956%205.25756%2011.2925C5.45448%2011.4894%205.72155%2011.6%206.00002%2011.6C6.2785%2011.6%206.54557%2011.4894%206.74249%2011.2925C6.9394%2011.0956%207.05002%2010.8285%207.05002%2010.55ZM1.45002%207.05002C1.7285%207.05002%201.99557%206.9394%202.19249%206.74249C2.3894%206.54557%202.50002%206.2785%202.50002%206.00002C2.50002%205.72155%202.3894%205.45448%202.19249%205.25756C1.99557%205.06065%201.7285%204.95002%201.45002%204.95002C1.17155%204.95002%200.904476%205.06065%200.707562%205.25756C0.510649%205.45448%200.400024%205.72155%200.400024%206.00002C0.400024%206.2785%200.510649%206.54557%200.707562%206.74249C0.904476%206.9394%201.17155%207.05002%201.45002%207.05002ZM11.6%206.00002C11.6%205.72155%2011.4894%205.45448%2011.2925%205.25756C11.0956%205.06065%2010.8285%204.95002%2010.55%204.95002C10.2715%204.95002%2010.0045%205.06065%209.80756%205.25756C9.61065%205.45448%209.50002%205.72155%209.50002%206.00002C9.50002%206.2785%209.61065%206.54557%209.80756%206.74249C10.0045%206.9394%2010.2715%207.05002%2010.55%207.05002C10.8285%207.05002%2011.0956%206.9394%2011.2925%206.74249C11.4894%206.54557%2011.6%206.2785%2011.6%206.00002ZM3.52596%209.9594C3.62349%209.86187%203.70085%209.74609%203.75363%209.61867C3.80641%209.49124%203.83358%209.35467%203.83358%209.21674C3.83358%209.07882%203.80641%208.94225%203.75363%208.81482C3.70085%208.6874%203.62349%208.57161%203.52596%208.47409C3.42844%208.37656%203.31265%208.2992%203.18523%208.24642C3.0578%208.19364%202.92123%208.16647%202.78331%208.16647C2.50476%208.16647%202.23761%208.27712%202.04065%208.47409C1.84368%208.67105%201.73303%208.93819%201.73303%209.21674C1.73303%209.49529%201.84368%209.76243%202.04065%209.9594C2.23761%2010.1564%202.50476%2010.267%202.78331%2010.267C3.06186%2010.267%203.329%2010.1564%203.52596%209.9594ZM3.52596%203.52377C3.62833%203.42738%203.7103%203.31141%203.76701%203.18274C3.82371%203.05407%203.85399%202.91532%203.85605%202.77472C3.85812%202.63413%203.83192%202.49455%203.77902%202.36427C3.72611%202.23399%203.64758%202.11566%203.54808%202.01631C3.44858%201.91695%203.33014%201.8386%203.19978%201.78589C3.06942%201.73318%202.92981%201.70718%202.78921%201.70945C2.64862%201.71172%202.50992%201.74221%202.38133%201.7991C2.25274%201.85599%202.13689%201.93814%202.04065%202.04065C1.84368%202.23761%201.73303%202.50476%201.73303%202.78331C1.73303%203.06186%201.84368%203.329%202.04065%203.52596C2.23761%203.72293%202.50476%203.83358%202.78331%203.83358C3.06186%203.83358%203.329%203.72293%203.52596%203.52596V3.52377ZM8.47409%209.9594C8.57161%2010.0569%208.6874%2010.1343%208.81482%2010.1871C8.94225%2010.2399%209.07882%2010.267%209.21674%2010.267C9.35467%2010.267%209.49124%2010.2399%209.61867%2010.1871C9.74609%2010.1343%209.86187%2010.0569%209.9594%209.9594C10.0569%209.86187%2010.1343%209.74609%2010.1871%209.61867C10.2399%209.49124%2010.267%209.35467%2010.267%209.21674C10.267%209.07882%2010.2399%208.94225%2010.1871%208.81482C10.1343%208.6874%2010.0569%208.57161%209.9594%208.47409C9.86187%208.37656%209.74609%208.2992%209.61867%208.24642C9.49124%208.19364%209.35467%208.16647%209.21674%208.16647C9.07882%208.16647%208.94225%208.19364%208.81482%208.24642C8.6874%208.2992%208.57161%208.37656%208.47409%208.47409C8.37656%208.57161%208.2992%208.6874%208.24642%208.81482C8.19364%208.94225%208.16647%209.07882%208.16647%209.21674C8.16647%209.35467%208.19364%209.49124%208.24642%209.61867C8.2992%209.74609%208.37656%209.86187%208.47409%209.9594Z'%20fill='currentColor'%20/%3e%3c/svg%3e", _ = ({
|
|
16
|
+
className: p,
|
|
17
|
+
dismissible: b = !1,
|
|
18
|
+
label: s,
|
|
19
|
+
loading: o = !1,
|
|
20
|
+
size: n,
|
|
21
|
+
variant: l,
|
|
22
|
+
onClick: e,
|
|
23
|
+
onDismiss: C
|
|
24
|
+
}) => {
|
|
25
|
+
const t = v(null), [f, h] = w("visible"), g = x(
|
|
26
|
+
(a) => {
|
|
27
|
+
a.stopPropagation(), C == null || C(), h("hidden");
|
|
28
|
+
},
|
|
29
|
+
[C]
|
|
30
|
+
);
|
|
31
|
+
return y(() => {
|
|
32
|
+
var i;
|
|
33
|
+
const a = new AbortController();
|
|
34
|
+
return (i = t.current) == null || i.addEventListener(
|
|
35
|
+
"animationend",
|
|
36
|
+
() => {
|
|
37
|
+
var c, d;
|
|
38
|
+
(c = t.current) == null || c.style.setProperty("display", "none"), (d = t.current) == null || d.remove();
|
|
39
|
+
},
|
|
40
|
+
{ signal: a.signal }
|
|
41
|
+
), () => a.abort();
|
|
42
|
+
}, []), /* @__PURE__ */ m(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
ref: t,
|
|
46
|
+
className: u(
|
|
47
|
+
Z({ variant: l, size: n, className: p }),
|
|
48
|
+
e && "cursor-pointer"
|
|
49
|
+
),
|
|
50
|
+
role: e ? "button" : void 0,
|
|
51
|
+
onClick: e,
|
|
52
|
+
tabIndex: e ? 0 : void 0,
|
|
53
|
+
"aria-label": e ? `${s} badge` : void 0,
|
|
54
|
+
"aria-busy": o,
|
|
55
|
+
"aria-live": "polite",
|
|
56
|
+
"data-state": f,
|
|
57
|
+
children: [
|
|
58
|
+
o && /* @__PURE__ */ r(L, { className: "h-3 w-3 animate-spin animate-duration-time-2" }),
|
|
59
|
+
s,
|
|
60
|
+
b && /* @__PURE__ */ m(
|
|
61
|
+
"button",
|
|
62
|
+
{
|
|
63
|
+
type: "button",
|
|
64
|
+
className: u(M({ size: n, variant: l })),
|
|
65
|
+
onClick: g,
|
|
66
|
+
"aria-label": "Dismiss",
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ r(I, { className: "h-full w-full" }),
|
|
69
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Dismiss" })
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
_ as Badge
|
|
79
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const a = e(
|
|
3
|
+
[
|
|
4
|
+
"flex",
|
|
5
|
+
"items-center",
|
|
6
|
+
"justify-center",
|
|
7
|
+
"gap-2",
|
|
8
|
+
"rounded",
|
|
9
|
+
"px-2",
|
|
10
|
+
"py-1",
|
|
11
|
+
"w-max",
|
|
12
|
+
"shadow-xs",
|
|
13
|
+
"data-[state=hidden]:animate-out",
|
|
14
|
+
"data-[state=hidden]:fade-out-0",
|
|
15
|
+
"data-[state=hidden]:zoom-out-95"
|
|
16
|
+
],
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
default: ["bg-gray-100", "text-gray-800"],
|
|
21
|
+
danger: ["bg-red-100", "text-red-800"],
|
|
22
|
+
info: ["bg-blue-100", "text-blue-800"],
|
|
23
|
+
success: ["bg-green-100", "text-green-800"],
|
|
24
|
+
warning: ["bg-yellow-100", "text-yellow-800"]
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
default: "text-sm leading-[16px]"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
variant: "default",
|
|
32
|
+
size: "default"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
), n = e(
|
|
36
|
+
[
|
|
37
|
+
"rounded-full",
|
|
38
|
+
"inline-flex",
|
|
39
|
+
"items-center",
|
|
40
|
+
"justify-center",
|
|
41
|
+
"focus:outline-none",
|
|
42
|
+
"text-inherit",
|
|
43
|
+
"cursor-pointer",
|
|
44
|
+
"text-gray-700"
|
|
45
|
+
],
|
|
46
|
+
{
|
|
47
|
+
variants: {
|
|
48
|
+
variant: {
|
|
49
|
+
default: ["text-gray-700"],
|
|
50
|
+
danger: ["text-red-700"],
|
|
51
|
+
info: ["text-blue-700"],
|
|
52
|
+
success: ["text-green-700"],
|
|
53
|
+
warning: ["text-yellow-700"]
|
|
54
|
+
},
|
|
55
|
+
size: {
|
|
56
|
+
default: ["h-3.5", "w-3.5"]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
variant: "default",
|
|
61
|
+
size: "default"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
export {
|
|
66
|
+
a as badgeVariants,
|
|
67
|
+
n as buttonDismissVariants
|
|
68
|
+
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
import {
|
|
5
|
-
import { Item as
|
|
6
|
-
import { P as l } from "../../index-
|
|
1
|
+
import { jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import u, { forwardRef as b, useId as v, Fragment as y } from "react";
|
|
3
|
+
import { cn as h } from "../../utils/index.js";
|
|
4
|
+
import { breadcrumbVariants as O, breadcrumbWrapperVariants as j } from "./Breadcrumb.variants.js";
|
|
5
|
+
import { Item as w } from "./components/Item/Item.js";
|
|
6
|
+
import { P as l } from "../../index-h-Ul0anl.js";
|
|
7
7
|
function m() {
|
|
8
8
|
return m = Object.assign || function(r) {
|
|
9
|
-
for (var
|
|
10
|
-
var e = arguments[
|
|
9
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
10
|
+
var e = arguments[o];
|
|
11
11
|
for (var t in e)
|
|
12
12
|
Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
|
|
13
13
|
}
|
|
14
14
|
return r;
|
|
15
15
|
}, m.apply(this, arguments);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function x(r, o) {
|
|
18
18
|
if (r == null) return {};
|
|
19
|
-
var e =
|
|
19
|
+
var e = P(r, o), t, n;
|
|
20
20
|
if (Object.getOwnPropertySymbols) {
|
|
21
21
|
var i = Object.getOwnPropertySymbols(r);
|
|
22
|
-
for (
|
|
23
|
-
t = i[
|
|
22
|
+
for (n = 0; n < i.length; n++)
|
|
23
|
+
t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (e[t] = r[t]);
|
|
24
24
|
}
|
|
25
25
|
return e;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function P(r, o) {
|
|
28
28
|
if (r == null) return {};
|
|
29
|
-
var e = {}, t = Object.keys(r),
|
|
29
|
+
var e = {}, t = Object.keys(r), n, i;
|
|
30
30
|
for (i = 0; i < t.length; i++)
|
|
31
|
-
|
|
31
|
+
n = t[i], !(o.indexOf(n) >= 0) && (e[n] = r[n]);
|
|
32
32
|
return e;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
35
|
-
var e = r.color, t = e === void 0 ? "currentColor" : e,
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
ref:
|
|
34
|
+
var c = b(function(r, o) {
|
|
35
|
+
var e = r.color, t = e === void 0 ? "currentColor" : e, n = r.size, i = n === void 0 ? 24 : n, s = x(r, ["color", "size"]);
|
|
36
|
+
return /* @__PURE__ */ u.createElement("svg", m({
|
|
37
|
+
ref: o,
|
|
38
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
39
|
width: i,
|
|
40
40
|
height: i,
|
|
@@ -44,57 +44,48 @@ var p = b(function(r, n) {
|
|
|
44
44
|
strokeWidth: "2",
|
|
45
45
|
strokeLinecap: "round",
|
|
46
46
|
strokeLinejoin: "round"
|
|
47
|
-
}, s), /* @__PURE__ */
|
|
47
|
+
}, s), /* @__PURE__ */ u.createElement("polyline", {
|
|
48
48
|
points: "9 18 15 12 9 6"
|
|
49
49
|
}));
|
|
50
50
|
});
|
|
51
|
-
|
|
51
|
+
c.propTypes = {
|
|
52
52
|
color: l.string,
|
|
53
53
|
size: l.oneOfType([l.string, l.number])
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
c.displayName = "ChevronRight";
|
|
56
|
+
const W = ({
|
|
57
|
+
"aria-label": r = "breadcrumb",
|
|
58
|
+
className: o,
|
|
59
59
|
steps: e,
|
|
60
60
|
theme: t,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
...s
|
|
61
|
+
wrapperClassName: n,
|
|
62
|
+
...i
|
|
64
63
|
}) => {
|
|
65
|
-
const
|
|
64
|
+
const s = v();
|
|
66
65
|
return /* @__PURE__ */ a(
|
|
67
66
|
"nav",
|
|
68
67
|
{
|
|
69
|
-
"aria-label":
|
|
68
|
+
"aria-label": r,
|
|
70
69
|
"data-theme": t,
|
|
71
|
-
className:
|
|
72
|
-
|
|
73
|
-
className:
|
|
70
|
+
className: h(
|
|
71
|
+
j({
|
|
72
|
+
className: n
|
|
74
73
|
})
|
|
75
74
|
),
|
|
76
|
-
children: /* @__PURE__ */ a(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
isLast: u === e.length - 1,
|
|
88
|
-
size: n
|
|
89
|
-
}
|
|
90
|
-
),
|
|
91
|
-
u !== e.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(p, { className: c(j({ size: n })) }) })
|
|
92
|
-
] }, `${d}-${f}`))
|
|
93
|
-
}
|
|
94
|
-
)
|
|
75
|
+
children: /* @__PURE__ */ a("ol", { className: h(O({ className: o })), ...i, children: e.map(({ label: p, ...d }, f) => /* @__PURE__ */ g(y, { children: [
|
|
76
|
+
/* @__PURE__ */ a(
|
|
77
|
+
w,
|
|
78
|
+
{
|
|
79
|
+
...d,
|
|
80
|
+
label: p,
|
|
81
|
+
isLast: f === e.length - 1
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
f !== e.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(c, { className: "text-gray-400 w-5 h-5 mt-0.5" }) })
|
|
85
|
+
] }, `${s}-${p}`)) })
|
|
95
86
|
}
|
|
96
87
|
);
|
|
97
88
|
};
|
|
98
89
|
export {
|
|
99
|
-
|
|
90
|
+
W as Breadcrumb
|
|
100
91
|
};
|