@konstructio/ui 0.1.2-alpha.41 → 0.1.2-alpha.43
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/{Modal-CtAG97Ts.js → Modal-CjC-CIJ8.js} +2 -2
- package/dist/chevron-right-DYvXLeql.js +7 -0
- package/dist/{chevron-up-CRyLc5Ml.js → chevron-up-DEfvgPCw.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +75 -49
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +31 -30
- package/dist/components/Badge/Badge.variants.js +53 -16
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +3 -3
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +25 -14
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Card/Card.variants.js +4 -5
- package/dist/components/Checkbox/Checkbox.js +4 -4
- package/dist/components/Checkbox/Checkbox.variants.js +5 -1
- 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 +1231 -1047
- package/dist/components/Dropdown/Dropdown.variants.js +3 -2
- package/dist/components/Dropdown/components/List/List.js +1 -1
- package/dist/components/Dropdown/components/Wrapper.js +42 -28
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.variants.js +6 -5
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +73 -46
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +28 -14
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +2 -2
- package/dist/components/Modal/Modal.js +1 -1
- 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 +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +358 -315
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/components/Wrapper.js +58 -58
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -2
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +4 -4
- 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 +2 -2
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +3 -2
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/TimePicker.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +20 -13
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +23 -16
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +53 -45
- package/dist/components/Toast/Toast.js +8 -8
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +11 -9
- package/dist/components/VirtualizedTable/VirtualizedTable.js +58 -54
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +58 -26
- package/dist/components/VirtualizedTable/components/Body/Body.js +72 -46
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +80 -77
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +20 -20
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +37 -40
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +19 -18
- package/dist/components/VirtualizedTable/components/Header/Header.js +49 -31
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +36 -23
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +74 -35
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-mPY_8Y5v.js → index-AV6ZtGhy.js} +1 -1
- package/dist/{index-CigKKiZS.js → index-BG8O18ZY.js} +5 -3
- package/dist/{index-DrWQH0QF.js → index-BKjcReYh.js} +2 -2
- package/dist/{index--V_ZsiQe.js → index-BOE_3f_Z.js} +4 -4
- package/dist/{index-Dbt2vBmS.js → index-BlSRBdPy.js} +1 -1
- package/dist/{index-C3tHPg8y.js → index-BmVmDQGH.js} +2 -2
- package/dist/{index-BtQfgaSF.js → index-BvoZGpli.js} +2 -2
- package/dist/{index-2hB40Iuc.js → index-Byr10W8m.js} +6 -6
- package/dist/index-CPU02rhe.js +134 -0
- package/dist/{index-Ds6U2x4Z.js → index-CeZcoQDw.js} +11 -11
- package/dist/{index-CdwPV0FE.js → index-D9SSJ6om.js} +3 -3
- package/dist/{index-CIAmiWcw.js → index-DKfEnhKr.js} +2 -2
- package/dist/{index-CSFe9uC5.js → index-DMb4KD0b.js} +1 -1
- package/dist/{index-ohdbKsws.js → index-DtEcCIrM.js} +1 -1
- package/dist/{index-BbQkJE5L.js → index-Dy59FQl5.js} +1 -1
- package/dist/{index-DpW9ExsS.js → index-gSPwC-1I.js} +3 -3
- package/dist/{index-DH2Fnov1.js → index-vcSp8YRZ.js} +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/{libphonenumber-_7ZyKWA7.js → libphonenumber-FTwQ9nyV.js} +11 -11
- package/dist/package.json +21 -21
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +11 -10
- package/dist/{x-DPU9OdYH.js → x-Eoa9FJjA.js} +1 -1
- package/package.json +21 -21
- package/dist/chevron-left-C4LEg1fH.js +0 -7
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
- package/dist/index-C65LtGuU.js +0 -137
|
@@ -4,11 +4,11 @@ import { Header as w } from "./components/Modal/components/Header/Header.js";
|
|
|
4
4
|
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
5
5
|
import { Children as i, isValidElement as s, useEffect as A } from "react";
|
|
6
6
|
import { createPortal as N } from "react-dom";
|
|
7
|
-
import { R } from "./index-
|
|
7
|
+
import { R } from "./index-BKjcReYh.js";
|
|
8
8
|
import { R as k } from "./Combination-BtmnusWq.js";
|
|
9
9
|
import { cn as p } from "./utils/index.js";
|
|
10
10
|
import { buttonCloseVariants as x, modalVariants as B } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
|
|
11
|
-
import { X as E } from "./x-
|
|
11
|
+
import { X as E } from "./x-Eoa9FJjA.js";
|
|
12
12
|
const F = ({
|
|
13
13
|
buttonCloseClassName: m,
|
|
14
14
|
children: e,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { c as o } from "./createLucideIcon-D4r5Phnh.js";
|
|
2
|
+
const e = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], n = o("chevron-left", e);
|
|
3
|
+
const t = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], h = o("chevron-right", t);
|
|
4
|
+
export {
|
|
5
|
+
n as C,
|
|
6
|
+
h as a
|
|
7
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as l, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as f, useState as h, useMemo as b, isValidElement as C, useCallback as V, useEffect as v } from "react";
|
|
3
|
-
import { V as k } from "../../index-
|
|
3
|
+
import { V as k } from "../../index-BKjcReYh.js";
|
|
4
4
|
import { cn as a } from "../../utils/index.js";
|
|
5
5
|
import { closeButtonVariants as w, alertVariants as x } from "./Alert.variants.js";
|
|
6
|
-
import { X as y } from "../../x-
|
|
6
|
+
import { X as y } from "../../x-Eoa9FJjA.js";
|
|
7
7
|
const R = ({
|
|
8
8
|
theme: i,
|
|
9
9
|
type: o,
|
|
@@ -1,76 +1,101 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { R
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { R, A as j, P as T, O as w, C as K, T as P, D as z, a as B, b as E } from "../../index-CPU02rhe.js";
|
|
3
|
+
import { useRef as S, useState as q, useEffect as F } from "react";
|
|
4
|
+
import { Button as s } from "../Button/Button.js";
|
|
5
|
+
import { cn as n } from "../../utils/index.js";
|
|
6
|
+
import { useAlertDialog as G } from "./hooks/useAlertDialog.js";
|
|
7
|
+
const H = ({
|
|
7
8
|
buttonCancel: {
|
|
8
|
-
className:
|
|
9
|
+
className: o,
|
|
9
10
|
text: i = "Cancel",
|
|
10
|
-
...
|
|
11
|
+
...c
|
|
11
12
|
} = {},
|
|
12
13
|
buttonConfirm: {
|
|
13
|
-
className:
|
|
14
|
-
text:
|
|
15
|
-
...
|
|
14
|
+
className: d,
|
|
15
|
+
text: m = "OK",
|
|
16
|
+
...f
|
|
16
17
|
} = {},
|
|
17
|
-
buttonTriggerClassName:
|
|
18
|
-
buttonTriggerText:
|
|
19
|
-
description:
|
|
20
|
-
showCancelButton:
|
|
21
|
-
theme:
|
|
22
|
-
title:
|
|
23
|
-
wrapperClassName:
|
|
18
|
+
buttonTriggerClassName: p,
|
|
19
|
+
buttonTriggerText: u,
|
|
20
|
+
description: h,
|
|
21
|
+
showCancelButton: x = !0,
|
|
22
|
+
theme: a,
|
|
23
|
+
title: b,
|
|
24
|
+
wrapperClassName: g,
|
|
24
25
|
onConfirm: C,
|
|
25
|
-
...
|
|
26
|
+
...N
|
|
26
27
|
}) => {
|
|
27
|
-
const { isOpen:
|
|
28
|
+
const r = S(null), [y, k] = q(null), { isOpen: A, handleCancel: D, handleConfirm: O, handleOpen: v } = G({
|
|
28
29
|
onConfirm: C
|
|
29
30
|
});
|
|
30
|
-
return
|
|
31
|
+
return F(() => {
|
|
32
|
+
if (!r.current || a)
|
|
33
|
+
return;
|
|
34
|
+
const l = r.current.closest("[data-theme]");
|
|
35
|
+
l && k(l);
|
|
36
|
+
}, []), /* @__PURE__ */ t(R, { open: A, ...N, children: [
|
|
31
37
|
/* @__PURE__ */ e(
|
|
32
|
-
|
|
38
|
+
j,
|
|
33
39
|
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
ref: r,
|
|
41
|
+
className: p,
|
|
42
|
+
text: u,
|
|
43
|
+
"data-theme": a,
|
|
44
|
+
onOpen: v
|
|
38
45
|
}
|
|
39
46
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */ e(
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
47
|
+
/* @__PURE__ */ t(T, { container: y, children: [
|
|
48
|
+
/* @__PURE__ */ e(w, { className: "bg-black opacity-70 dark:opacity-85 inset-0 fixed animate-in fade-in-0" }),
|
|
49
|
+
/* @__PURE__ */ t(
|
|
50
|
+
K,
|
|
44
51
|
{
|
|
45
|
-
"data-theme":
|
|
46
|
-
className:
|
|
47
|
-
"bg-white
|
|
48
|
-
|
|
52
|
+
"data-theme": a,
|
|
53
|
+
className: n(
|
|
54
|
+
"bg-white",
|
|
55
|
+
"rounded-md",
|
|
56
|
+
"fixed",
|
|
57
|
+
"top-1/2",
|
|
58
|
+
"left-1/2",
|
|
59
|
+
"-translate-y-2/4",
|
|
60
|
+
"-translate-x-2/4",
|
|
61
|
+
"flex",
|
|
62
|
+
"flex-col",
|
|
63
|
+
"gap-8",
|
|
64
|
+
"p-8",
|
|
65
|
+
"animate-in",
|
|
66
|
+
"fade-in-0",
|
|
67
|
+
"zoom-in-85",
|
|
68
|
+
"border",
|
|
69
|
+
"border-transparent",
|
|
70
|
+
"dark:bg-metal-800",
|
|
71
|
+
"dark:border-metal-700",
|
|
72
|
+
"dark:border-slate-700",
|
|
73
|
+
g
|
|
49
74
|
),
|
|
50
75
|
children: [
|
|
51
|
-
/* @__PURE__ */ e(
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
|
|
76
|
+
/* @__PURE__ */ e(P, { className: "text-base text-slate-700 font-semibold", children: b }),
|
|
77
|
+
/* @__PURE__ */ e(z, { className: "text-sm text-slate-800", children: h }),
|
|
78
|
+
/* @__PURE__ */ t("div", { className: "flex flex-row gap-5 justify-end", children: [
|
|
79
|
+
x && /* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e(
|
|
80
|
+
s,
|
|
56
81
|
{
|
|
57
82
|
type: "button",
|
|
58
83
|
variant: "secondary",
|
|
59
|
-
className:
|
|
60
|
-
onClick:
|
|
61
|
-
...
|
|
84
|
+
className: n(o),
|
|
85
|
+
onClick: D,
|
|
86
|
+
...c,
|
|
62
87
|
children: i
|
|
63
88
|
}
|
|
64
89
|
) }),
|
|
65
|
-
/* @__PURE__ */ e(
|
|
66
|
-
|
|
90
|
+
/* @__PURE__ */ e(E, { asChild: !0, children: /* @__PURE__ */ e(
|
|
91
|
+
s,
|
|
67
92
|
{
|
|
68
93
|
type: "button",
|
|
69
94
|
variant: "primary",
|
|
70
|
-
className:
|
|
71
|
-
onClick:
|
|
72
|
-
...
|
|
73
|
-
children:
|
|
95
|
+
className: n(d),
|
|
96
|
+
onClick: O,
|
|
97
|
+
...f,
|
|
98
|
+
children: m
|
|
74
99
|
}
|
|
75
100
|
) })
|
|
76
101
|
] })
|
|
@@ -80,6 +105,7 @@ const G = ({
|
|
|
80
105
|
] })
|
|
81
106
|
] });
|
|
82
107
|
};
|
|
108
|
+
H.displayName = "KonstructAlertDialog";
|
|
83
109
|
export {
|
|
84
|
-
|
|
110
|
+
H as AlertDialog
|
|
85
111
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as e } from "../../../index-CPU02rhe.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import "../../Button/Button.js";
|
|
4
5
|
import "../../../utils/index.js";
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
e as AlertDialogTrigger
|
|
7
8
|
};
|
|
@@ -1,68 +1,69 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { S
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as y, useState as g, useCallback as N, useEffect as x } from "react";
|
|
3
|
+
import { S } from "../../loader-juvMSJ9L.js";
|
|
4
4
|
import { cn as d } from "../../utils/index.js";
|
|
5
|
-
import { buttonDismissVariants as
|
|
6
|
-
import { S as
|
|
7
|
-
import { c as
|
|
8
|
-
const
|
|
5
|
+
import { buttonDismissVariants as w, badgeVariants as V } from "./Badge.variants.js";
|
|
6
|
+
import { S as D } from "../../index-BvoZGpli.js";
|
|
7
|
+
import { c as L } from "../../createLucideIcon-D4r5Phnh.js";
|
|
8
|
+
const j = [
|
|
9
9
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
10
10
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
11
|
-
],
|
|
11
|
+
], E = L("x", j), M = ({
|
|
12
12
|
className: u,
|
|
13
13
|
dismissible: p = !1,
|
|
14
|
+
isSelectable: b = !0,
|
|
14
15
|
label: r,
|
|
15
16
|
leftIcon: o,
|
|
16
|
-
loading:
|
|
17
|
-
size:
|
|
17
|
+
loading: n = !1,
|
|
18
|
+
size: i,
|
|
18
19
|
variant: l,
|
|
19
20
|
onClick: e,
|
|
20
21
|
onDismiss: m
|
|
21
22
|
}) => {
|
|
22
|
-
const s =
|
|
23
|
-
(
|
|
24
|
-
|
|
23
|
+
const s = y(null), [f, h] = g("visible"), v = N(
|
|
24
|
+
(t) => {
|
|
25
|
+
t.stopPropagation(), m?.(), h("hidden");
|
|
25
26
|
},
|
|
26
27
|
[m]
|
|
27
28
|
);
|
|
28
|
-
return
|
|
29
|
-
const
|
|
29
|
+
return x(() => {
|
|
30
|
+
const t = new AbortController();
|
|
30
31
|
return s.current?.addEventListener(
|
|
31
32
|
"animationend",
|
|
32
33
|
() => {
|
|
33
34
|
s.current?.style.setProperty("display", "none"), s.current?.remove();
|
|
34
35
|
},
|
|
35
|
-
{ signal:
|
|
36
|
-
), () =>
|
|
36
|
+
{ signal: t.signal }
|
|
37
|
+
), () => t.abort();
|
|
37
38
|
}, []), /* @__PURE__ */ c(
|
|
38
39
|
"span",
|
|
39
40
|
{
|
|
40
41
|
ref: s,
|
|
41
|
-
className: d(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
),
|
|
42
|
+
className: d(V({ variant: l, size: i, className: u }), {
|
|
43
|
+
"select-none": !b,
|
|
44
|
+
"cursor-pointer": e
|
|
45
|
+
}),
|
|
45
46
|
role: e ? "button" : void 0,
|
|
46
47
|
onClick: e,
|
|
47
48
|
tabIndex: e ? 0 : void 0,
|
|
48
49
|
"aria-label": e ? `${r} badge` : void 0,
|
|
49
|
-
"aria-busy":
|
|
50
|
+
"aria-busy": n,
|
|
50
51
|
"aria-live": "polite",
|
|
51
|
-
"data-state":
|
|
52
|
+
"data-state": f,
|
|
52
53
|
children: [
|
|
53
|
-
|
|
54
|
-
o ? /* @__PURE__ */
|
|
54
|
+
n && /* @__PURE__ */ a(S, { className: "h-3 w-3 animate-spin animate-duration-time-2" }),
|
|
55
|
+
o ? /* @__PURE__ */ a(D, { className: "h-3 w-3", children: o }) : null,
|
|
55
56
|
r,
|
|
56
57
|
p && /* @__PURE__ */ c(
|
|
57
58
|
"button",
|
|
58
59
|
{
|
|
59
60
|
type: "button",
|
|
60
|
-
className: d(
|
|
61
|
-
onClick:
|
|
61
|
+
className: d(w({ size: i, variant: l })),
|
|
62
|
+
onClick: v,
|
|
62
63
|
"aria-label": "Dismiss",
|
|
63
64
|
children: [
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ a(E, { className: "h-full w-full" }),
|
|
66
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Dismiss" })
|
|
66
67
|
]
|
|
67
68
|
}
|
|
68
69
|
)
|
|
@@ -71,5 +72,5 @@ const L = [
|
|
|
71
72
|
);
|
|
72
73
|
};
|
|
73
74
|
export {
|
|
74
|
-
|
|
75
|
+
M as Badge
|
|
75
76
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const a =
|
|
1
|
+
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
|
+
const a = e(
|
|
3
3
|
[
|
|
4
4
|
"flex",
|
|
5
5
|
"items-center",
|
|
@@ -17,12 +17,48 @@ const a = t(
|
|
|
17
17
|
{
|
|
18
18
|
variants: {
|
|
19
19
|
variant: {
|
|
20
|
-
default: [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
default: [
|
|
21
|
+
"bg-gray-100",
|
|
22
|
+
"text-gray-800",
|
|
23
|
+
"dark:text-gray-300",
|
|
24
|
+
"dark:bg-gray-300/15"
|
|
25
|
+
],
|
|
26
|
+
danger: [
|
|
27
|
+
"bg-red-100",
|
|
28
|
+
"text-red-800",
|
|
29
|
+
"dark:text-red-400",
|
|
30
|
+
"dark:bg-red-400/10"
|
|
31
|
+
],
|
|
32
|
+
info: [
|
|
33
|
+
"bg-blue-100",
|
|
34
|
+
"text-blue-800",
|
|
35
|
+
"dark:text-sky-400",
|
|
36
|
+
"dark:bg-sky-400/10"
|
|
37
|
+
],
|
|
38
|
+
success: [
|
|
39
|
+
"bg-green-100",
|
|
40
|
+
"text-green-800",
|
|
41
|
+
"dark:text-green-400",
|
|
42
|
+
"dark:bg-green-400/10"
|
|
43
|
+
],
|
|
44
|
+
warning: [
|
|
45
|
+
"bg-yellow-100",
|
|
46
|
+
"text-yellow-800",
|
|
47
|
+
"dark:text-amber-300",
|
|
48
|
+
"dark:bg-amber-300/10"
|
|
49
|
+
],
|
|
50
|
+
violet: [
|
|
51
|
+
"bg-violet-50",
|
|
52
|
+
"text-violet-800",
|
|
53
|
+
"dark:text-purple-400",
|
|
54
|
+
"dark:bg-purple-400/8"
|
|
55
|
+
],
|
|
56
|
+
orange: [
|
|
57
|
+
"bg-orange-50",
|
|
58
|
+
"text-orange-800",
|
|
59
|
+
"dark:text-orange-400",
|
|
60
|
+
"dark:bg-orange-400/10"
|
|
61
|
+
]
|
|
26
62
|
},
|
|
27
63
|
size: {
|
|
28
64
|
default: "text-sm leading-4"
|
|
@@ -33,7 +69,7 @@ const a = t(
|
|
|
33
69
|
size: "default"
|
|
34
70
|
}
|
|
35
71
|
}
|
|
36
|
-
),
|
|
72
|
+
), r = e(
|
|
37
73
|
[
|
|
38
74
|
"rounded-full",
|
|
39
75
|
"inline-flex",
|
|
@@ -47,12 +83,13 @@ const a = t(
|
|
|
47
83
|
{
|
|
48
84
|
variants: {
|
|
49
85
|
variant: {
|
|
50
|
-
default: ["text-gray-700"],
|
|
51
|
-
danger: ["text-red-700"],
|
|
52
|
-
info: ["text-blue-700"],
|
|
53
|
-
success: ["text-green-700"],
|
|
54
|
-
warning: ["text-yellow-700"],
|
|
55
|
-
violet: ["text-violet-700"]
|
|
86
|
+
default: ["text-gray-700", "dark:text-gray-300"],
|
|
87
|
+
danger: ["text-red-700", "dark:text-red-400"],
|
|
88
|
+
info: ["text-blue-700", "dark:text-sky-400"],
|
|
89
|
+
success: ["text-green-700", "dark:text-green-400"],
|
|
90
|
+
warning: ["text-yellow-700", "dark:text-amber-300"],
|
|
91
|
+
violet: ["text-violet-700", "dark:text-purple-400"],
|
|
92
|
+
orange: ["text-orange-800", "dark:text-orange-400"]
|
|
56
93
|
},
|
|
57
94
|
size: {
|
|
58
95
|
default: ["h-3.5", "w-3.5"]
|
|
@@ -66,5 +103,5 @@ const a = t(
|
|
|
66
103
|
);
|
|
67
104
|
export {
|
|
68
105
|
a as badgeVariants,
|
|
69
|
-
|
|
106
|
+
r as buttonDismissVariants
|
|
70
107
|
};
|
|
@@ -3,7 +3,7 @@ import u, { forwardRef as b, useId as v, Fragment as y } from "react";
|
|
|
3
3
|
import { cn as h } from "../../utils/index.js";
|
|
4
4
|
import { breadcrumbVariants as O, breadcrumbWrapperVariants as j } from "./Breadcrumb.variants.js";
|
|
5
5
|
import { Item as w } from "./components/Item/Item.js";
|
|
6
|
-
import { P as l } from "../../index
|
|
6
|
+
import { P as l } from "../../index-BOE_3f_Z.js";
|
|
7
7
|
function m() {
|
|
8
8
|
return m = Object.assign || function(r) {
|
|
9
9
|
for (var o = 1; o < arguments.length; o++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
|
-
const
|
|
3
|
-
"text-
|
|
2
|
+
const t = e([
|
|
3
|
+
"text-gray-600",
|
|
4
4
|
"text-md",
|
|
5
5
|
"flex",
|
|
6
6
|
"gap-2",
|
|
@@ -8,5 +8,5 @@ const r = e([
|
|
|
8
8
|
]), a = e(["flex", "gap-1", "items-center"]);
|
|
9
9
|
export {
|
|
10
10
|
a as breadcrumbVariants,
|
|
11
|
-
|
|
11
|
+
t as breadcrumbWrapperVariants
|
|
12
12
|
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { c as e } from "../../../../index-D29mdTf5.js";
|
|
2
|
-
const
|
|
3
|
-
[
|
|
2
|
+
const s = e(
|
|
3
|
+
[
|
|
4
|
+
"text-sm",
|
|
5
|
+
"leading-5",
|
|
6
|
+
"text-gray-400",
|
|
7
|
+
"font-semibold",
|
|
8
|
+
"dark:text-gray-400"
|
|
9
|
+
],
|
|
4
10
|
{
|
|
5
11
|
variants: {
|
|
6
12
|
isActive: {
|
|
@@ -23,7 +29,8 @@ const r = e(
|
|
|
23
29
|
"group-[&:has(:focus-visible)]:rounded-xs",
|
|
24
30
|
"group-hover:rounded-xs",
|
|
25
31
|
"hover:no-underline",
|
|
26
|
-
"hover:text-gray-500"
|
|
32
|
+
"hover:text-gray-500",
|
|
33
|
+
"dark:hover:text-gray-300"
|
|
27
34
|
]
|
|
28
35
|
},
|
|
29
36
|
{
|
|
@@ -37,23 +44,27 @@ const r = e(
|
|
|
37
44
|
"group-[&:has(:focus-visible)]:rounded-xs",
|
|
38
45
|
"group-hover:rounded-xs",
|
|
39
46
|
"hover:no-underline",
|
|
40
|
-
"hover:text-gray-500"
|
|
47
|
+
"hover:text-gray-500",
|
|
48
|
+
"dark:hover:text-gray-300"
|
|
41
49
|
]
|
|
42
50
|
}
|
|
43
51
|
]
|
|
44
52
|
}
|
|
45
|
-
), o = e(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
), o = e(
|
|
54
|
+
["text-sm", "leading-5", "font-semibold"],
|
|
55
|
+
{
|
|
56
|
+
variants: {
|
|
57
|
+
isActive: {
|
|
58
|
+
true: ["text-gray-600", "dark:text-gray-300"],
|
|
59
|
+
false: ["text-gray-400", "cursor-default"]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
defaultVariants: {
|
|
63
|
+
isActive: !0
|
|
50
64
|
}
|
|
51
|
-
},
|
|
52
|
-
defaultVariants: {
|
|
53
|
-
isActive: !0
|
|
54
65
|
}
|
|
55
|
-
|
|
66
|
+
);
|
|
56
67
|
export {
|
|
57
68
|
o as breadcrumbLabelVariants,
|
|
58
|
-
|
|
69
|
+
s as breadcrumbLinkVariants
|
|
59
70
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
|
-
import { S as l } from "../../index-
|
|
3
|
+
import { S as l } from "../../index-BvoZGpli.js";
|
|
4
4
|
import { cn as x } from "../../utils/index.js";
|
|
5
5
|
import { buttonVariants as B } from "./Button.variants.js";
|
|
6
6
|
const C = c(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as r } from "../../index-D29mdTf5.js";
|
|
2
|
-
const
|
|
3
|
-
["border", "border-
|
|
2
|
+
const e = r(
|
|
3
|
+
["rounded-xl", "border", "border-gray-200", "dark:border-metal-700"],
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
6
|
isActive: {
|
|
@@ -25,8 +25,7 @@ const a = r(
|
|
|
25
25
|
true: [
|
|
26
26
|
"cursor-pointer",
|
|
27
27
|
"border-transparent",
|
|
28
|
-
"group-hover:border-
|
|
29
|
-
"civo:group-hover:border-civo-primary"
|
|
28
|
+
"group-hover:border-aurora-500"
|
|
30
29
|
],
|
|
31
30
|
false: ""
|
|
32
31
|
}
|
|
@@ -41,6 +40,6 @@ const a = r(
|
|
|
41
40
|
}
|
|
42
41
|
);
|
|
43
42
|
export {
|
|
44
|
-
|
|
43
|
+
e as cardBaseVariants,
|
|
45
44
|
o as cardVariants
|
|
46
45
|
};
|
|
@@ -2,14 +2,14 @@ import { jsx as u, jsxs as B, Fragment as U } from "react/jsx-runtime";
|
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import S, { forwardRef as z, useId as V, useCallback as X } from "react";
|
|
4
4
|
import { u as L } from "../../index-DLcqcWxM.js";
|
|
5
|
-
import { c as J, P as w, a as Q, b as j } from "../../index-
|
|
5
|
+
import { c as J, P as w, a as Q, b as j } from "../../index-DKfEnhKr.js";
|
|
6
6
|
import { u as Y } from "../../index-BZPx6jYI.js";
|
|
7
|
-
import { u as Z } from "../../index-
|
|
8
|
-
import { P as ee } from "../../index-
|
|
7
|
+
import { u as Z } from "../../index-DtEcCIrM.js";
|
|
8
|
+
import { P as ee } from "../../index-AV6ZtGhy.js";
|
|
9
9
|
import { cn as T } from "../../utils/index.js";
|
|
10
10
|
import { checkboxVariants as te, labelVariants as re } from "./Checkbox.variants.js";
|
|
11
11
|
import { useToggle as oe } from "../../hooks/useToggle.js";
|
|
12
|
-
import { P as y } from "../../index
|
|
12
|
+
import { P as y } from "../../index-BOE_3f_Z.js";
|
|
13
13
|
function R() {
|
|
14
14
|
return R = Object.assign || function(e) {
|
|
15
15
|
for (var a = 1; a < arguments.length; a++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { R as s, D as p } from "../../index-
|
|
3
|
-
import { V as l } from "../../index-
|
|
2
|
+
import { R as s, D as p } from "../../index-CeZcoQDw.js";
|
|
3
|
+
import { V as l } from "../../index-BKjcReYh.js";
|
|
4
4
|
import { cn as m } from "../../utils/index.js";
|
|
5
5
|
import { wrapperVariants as f } from "./Command.variants.js";
|
|
6
6
|
import { DialogContent as c } from "./components/DialogContent.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-D9SSJ6om.js";
|
|
4
4
|
const s = p(({ className: r, children: a, ...e }, i) => /* @__PURE__ */ m(o, { ref: i, className: r, ...e, children: /* @__PURE__ */ m("div", { className: "w-[500px]", children: a }) }));
|
|
5
5
|
s.displayName = o.displayName;
|
|
6
6
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-D9SSJ6om.js";
|
|
4
4
|
import { cn as a } from "../../../utils/index.js";
|
|
5
5
|
const t = p(({ className: r, ...m }, d) => /* @__PURE__ */ e(
|
|
6
6
|
o.Group,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as y, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { _ as m } from "../../../index-
|
|
2
|
+
import { _ as m } from "../../../index-D9SSJ6om.js";
|
|
3
3
|
import s, { forwardRef as u } from "react";
|
|
4
4
|
import { cn as f } from "../../../utils/index.js";
|
|
5
5
|
import { searchInconInputVariants as v, inputVariants as g } from "../Command.variants.js";
|
|
6
|
-
import { P as a } from "../../../index
|
|
6
|
+
import { P as a } from "../../../index-BOE_3f_Z.js";
|
|
7
7
|
function p() {
|
|
8
8
|
return p = Object.assign || function(r) {
|
|
9
9
|
for (var n = 1; n < arguments.length; n++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i, useContext as c, useCallback as l } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-D9SSJ6om.js";
|
|
4
4
|
import { cn as p } from "../../../utils/index.js";
|
|
5
5
|
import { CommandContext as u } from "../contexts/Command.context.js";
|
|
6
6
|
const f = i(({ className: n, onSelect: e, ...r }, a) => {
|