@konstructio/ui 0.0.12-alpha.9 → 0.0.13-alpha.1
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-B-E9uaA6.js → Modal-i7eolhYH.js} +311 -307
- package/dist/components/Alert/Alert.js +24 -29
- package/dist/components/Alert/Alert.variants.js +9 -15
- package/dist/components/AlertDialog/AlertDialog.js +59 -46
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +76 -72
- package/dist/components/Autocomplete/Autocomplete.variants.js +11 -20
- package/dist/components/Autocomplete/components/List/List.js +28 -30
- package/dist/components/Autocomplete/components/List/List.variants.js +34 -40
- package/dist/components/Breadcrumb/Breadcrumb.js +47 -56
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +6 -26
- package/dist/components/Breadcrumb/components/Item/Item.js +29 -41
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +2 -20
- package/dist/components/Button/Button.js +33 -37
- package/dist/components/Button/Button.variants.js +138 -195
- package/dist/components/Card/Card.js +32 -37
- package/dist/components/Card/Card.variants.js +18 -53
- package/dist/components/Checkbox/Checkbox.js +65 -68
- package/dist/components/Checkbox/Checkbox.variants.js +11 -35
- package/dist/components/Command/Command.js +33 -25
- package/dist/components/Command/Command.variants.js +47 -94
- 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 +1 -1
- 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 +1 -1
- package/dist/components/Command/components/DialogOverlay.js +8 -8
- package/dist/components/Divider/Divider.js +3 -2
- package/dist/components/Divider/Divider.variants.js +12 -9
- package/dist/components/Dropdown/Dropdown.js +6 -6
- package/dist/components/Dropdown/Dropdown.variants.js +31 -38
- package/dist/components/Dropdown/components/List/List.js +17 -15
- package/dist/components/Dropdown/components/List/List.variants.js +22 -32
- package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -19
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +18 -30
- package/dist/components/Dropdown/components/Wrapper.js +127 -90
- package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.js +9 -9
- package/dist/components/Input/Input.js +37 -37
- package/dist/components/Input/Input.variants.js +8 -13
- package/dist/components/Loading/Loading.js +60 -58
- package/dist/components/Loading/Loading.variants.js +9 -15
- 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 +2 -2
- package/dist/components/Modal/components/Header/Header.js +3 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -4
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +32 -46
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +93 -111
- package/dist/components/NumberInput/NumberInput.variants.js +30 -51
- package/dist/components/ProgressBar/ProgressBar.js +25 -29
- package/dist/components/ProgressBar/ProgressBar.variants.js +10 -31
- package/dist/components/Radio/Radio.js +45 -46
- package/dist/components/Radio/Radio.variants.js +4 -13
- package/dist/components/RadioCard/RadioCard.js +31 -37
- package/dist/components/RadioCard/RadioCard.variants.js +8 -17
- package/dist/components/RadioCardGroup/RadioCardGroup.js +22 -23
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +3 -9
- package/dist/components/RadioGroup/RadioGroup.js +30 -31
- package/dist/components/RadioGroup/RadioGroup.variants.js +2 -8
- package/dist/components/Range/Range.js +28 -34
- package/dist/components/Range/Range.variants.js +21 -53
- package/dist/components/Sidebar/Sidebar.js +12 -13
- package/dist/components/Sidebar/Sidebar.variants.js +30 -56
- package/dist/components/Sidebar/components/Footer/Footer.js +5 -17
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +9 -16
- package/dist/components/Sidebar/components/Logo/Logo.js +5 -15
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +20 -36
- package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -28
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +3 -17
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +21 -34
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +2 -13
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +21 -27
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +7 -17
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +7 -19
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +6 -16
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +8 -21
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +11 -20
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +41 -44
- package/dist/components/Slider/Slider.js +26 -27
- package/dist/components/Slider/Slider.variants.js +22 -34
- package/dist/components/Switch/Switch.js +103 -106
- package/dist/components/Switch/Switch.variants.js +28 -53
- package/dist/components/Table/Table.js +27 -0
- package/dist/components/Table/Table.variants.js +40 -0
- package/dist/components/Table/components/Body.js +18 -0
- package/dist/components/Table/components/Filter.js +9 -0
- package/dist/components/Table/components/Head.js +18 -0
- package/dist/components/Table/components/Row.js +28 -0
- package/dist/components/Table/components/index.js +10 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.js +23 -55
- package/dist/components/TagSelect/components/Item/Item.js +12 -14
- package/dist/components/TagSelect/components/Item/Item.variants.js +11 -10
- package/dist/components/TagSelect/components/List/List.js +9 -10
- package/dist/components/TagSelect/components/List/List.variants.js +21 -35
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +46 -48
- package/dist/components/TextArea/TextArea.js +20 -23
- package/dist/components/TextArea/TextArea.variants.js +19 -31
- package/dist/components/Toast/Toast.js +110 -116
- package/dist/components/Toast/Toast.variants.js +42 -70
- package/dist/components/Tooltip/Tooltip.js +21 -27
- package/dist/components/Tooltip/Tooltip.variants.js +61 -62
- package/dist/components/Typography/Typography.js +23 -19
- package/dist/components/Typography/Typography.variants.js +1 -7
- package/dist/components/index.js +22 -20
- package/dist/contexts/theme.provider.js +37 -39
- package/dist/domain/theme.js +0 -0
- package/dist/index-AM3avohj.js +133 -0
- package/dist/{index-BzaHYXkt.js → index-BOx5P4tS.js} +5 -5
- package/dist/index-Bk324h27.js +82 -0
- package/dist/{index-4ecjw_Aj.js → index-Bry5AFQ2.js} +1 -1
- package/dist/{index-CbTU3cnP.js → index-CWKdynYu.js} +1 -1
- package/dist/index-D9BbbgUq.js +47 -0
- package/dist/{index-DyKo5ZJT.js → index-DvFiic6N.js} +45 -45
- package/dist/{index-Dj1pom3_.js → index-G_6jG4Qc.js} +2 -2
- package/dist/{index-D_76wh4w.js → index-YaQrdkGE.js} +3 -3
- package/dist/{index-Cva-e5M4.js → index-bYyfdsls.js} +9 -9
- package/dist/index-dRxIWVBr.js +313 -0
- package/dist/{index-D7QNmo_D.js → index-g-TFwd6Y.js} +41 -41
- package/dist/index.d.ts +115 -98
- package/dist/index.js +30 -30
- package/dist/package.json +37 -36
- package/dist/styles.css +1 -1
- package/dist/ui/kubefirst-theme.css +296 -0
- package/dist/ui/theme.css +6 -0
- package/dist/ui/utilities.css +165 -0
- package/dist/utils/index.js +675 -424
- package/package.json +37 -36
- package/dist/components/AlertDialog/AlertDialog.variants.js +0 -15
- package/dist/index-B_6_jmOO.js +0 -68
- package/dist/index-BbsJ0VIJ.js +0 -47
- package/dist/index-CzSBQN5S.js +0 -432
- package/dist/index-DUA6Y_AE.js +0 -126
- package/dist/plugins/index.js +0 -4
- package/dist/plugins/konstruct.js +0 -118
- package/dist/plugins/utils/animation.styles.js +0 -162
- package/dist/plugins/utils/colors.js +0 -331
- package/dist/plugins/utils/index.js +0 -7
|
@@ -1,34 +1,28 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { S as i } from "../../index-Bk324h27.js";
|
|
3
|
+
import { forwardRef as v, useRef as N, useImperativeHandle as w, useMemo as h, isValidElement as x } from "react";
|
|
4
4
|
import { cn as o } from "../../utils/index.js";
|
|
5
|
-
import { arrowVariants as
|
|
6
|
-
import { useTooltip as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
[t]
|
|
5
|
+
import { arrowVariants as R, tooltipVariants as V } from "./Tooltip.variants.js";
|
|
6
|
+
import { useTooltip as b } from "./hooks/useTooltip.js";
|
|
7
|
+
const I = v(
|
|
8
|
+
({ children: r, content: l, className: m, theme: n, position: a, wrapperClassName: c }, p) => {
|
|
9
|
+
const f = N(null), { isVisible: d, componentRef: s } = b();
|
|
10
|
+
w(p, () => s.current, [s]);
|
|
11
|
+
const u = h(
|
|
12
|
+
() => x(r) ? r : /* @__PURE__ */ e("p", { className: "p-2", children: r }),
|
|
13
|
+
[r]
|
|
15
14
|
);
|
|
16
|
-
return /* @__PURE__ */ e("div", { className: o("w-full",
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
/* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ e("div", { className: o("w-full", c), "data-theme": n, children: /* @__PURE__ */ t("div", { className: "relative w-max", children: [
|
|
16
|
+
/* @__PURE__ */ e(i, { ref: s, className: o("cursor-pointer ", m), children: u }),
|
|
17
|
+
/* @__PURE__ */ t(
|
|
19
18
|
"div",
|
|
20
19
|
{
|
|
21
|
-
ref:
|
|
22
|
-
className: o(
|
|
23
|
-
"data-visible":
|
|
20
|
+
ref: f,
|
|
21
|
+
className: o(V({ position: a })),
|
|
22
|
+
"data-visible": d,
|
|
24
23
|
children: [
|
|
25
|
-
/* @__PURE__ */ e(
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
className: o(V({ theme: m, position: s }))
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
/* @__PURE__ */ e(a, { children: l })
|
|
24
|
+
/* @__PURE__ */ e("span", { className: o(R({ position: a })) }),
|
|
25
|
+
/* @__PURE__ */ e(i, { children: l })
|
|
32
26
|
]
|
|
33
27
|
}
|
|
34
28
|
)
|
|
@@ -36,5 +30,5 @@ const q = N(
|
|
|
36
30
|
}
|
|
37
31
|
);
|
|
38
32
|
export {
|
|
39
|
-
|
|
33
|
+
I as Tooltip
|
|
40
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as r } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
2
|
+
const o = r(
|
|
3
3
|
[
|
|
4
4
|
"absolute",
|
|
5
5
|
"w-max",
|
|
@@ -11,15 +11,12 @@ const e = r(
|
|
|
11
11
|
"opacity-0",
|
|
12
12
|
"duration-250",
|
|
13
13
|
"[&[data-visible='true']]:opacity-100",
|
|
14
|
-
"delay-100"
|
|
14
|
+
"delay-100",
|
|
15
|
+
"bg-kubefirst-primary",
|
|
16
|
+
"colony:bg-red-700"
|
|
15
17
|
],
|
|
16
18
|
{
|
|
17
19
|
variants: {
|
|
18
|
-
theme: {
|
|
19
|
-
kubefirst: "bg-kubefirst-primary",
|
|
20
|
-
colony: "bg-red-700",
|
|
21
|
-
civo: ""
|
|
22
|
-
},
|
|
23
20
|
position: {
|
|
24
21
|
top: ["-top-[120%]", "left-[50%]", "-translate-x-1/2"],
|
|
25
22
|
bottom: ["-bottom-[120%]", "right-[50%]", "translate-x-1/2"],
|
|
@@ -28,66 +25,68 @@ const e = r(
|
|
|
28
25
|
}
|
|
29
26
|
},
|
|
30
27
|
defaultVariants: {
|
|
31
|
-
theme: "kubefirst",
|
|
32
28
|
position: "right"
|
|
33
29
|
}
|
|
34
30
|
}
|
|
35
|
-
),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
), a = r(
|
|
32
|
+
[
|
|
33
|
+
"absolute",
|
|
34
|
+
"w-0",
|
|
35
|
+
"h-0",
|
|
36
|
+
"border-kubefirst-primary",
|
|
37
|
+
"colony:border-red-700"
|
|
38
|
+
],
|
|
39
|
+
{
|
|
40
|
+
variants: {
|
|
41
|
+
position: {
|
|
42
|
+
top: [
|
|
43
|
+
"top-full",
|
|
44
|
+
"right-1/2",
|
|
45
|
+
"translate-x-2/4",
|
|
46
|
+
"border-l-4",
|
|
47
|
+
"border-l-transparent",
|
|
48
|
+
"border-r-4",
|
|
49
|
+
"border-r-transparent",
|
|
50
|
+
"border-t-4"
|
|
51
|
+
],
|
|
52
|
+
bottom: [
|
|
53
|
+
"bottom-full",
|
|
54
|
+
"right-1/2",
|
|
55
|
+
"translate-x-2/4",
|
|
56
|
+
"border-l-4",
|
|
57
|
+
"border-l-transparent",
|
|
58
|
+
"border-r-4",
|
|
59
|
+
"border-r-transparent",
|
|
60
|
+
"border-b-4"
|
|
61
|
+
],
|
|
62
|
+
right: [
|
|
63
|
+
"right-full",
|
|
64
|
+
"top-1/2",
|
|
65
|
+
"-translate-y-2/4",
|
|
66
|
+
"border-t-4",
|
|
67
|
+
"border-t-transparent",
|
|
68
|
+
"border-b-4",
|
|
69
|
+
"border-b-transparent",
|
|
70
|
+
"border-r-4"
|
|
71
|
+
],
|
|
72
|
+
left: [
|
|
73
|
+
"left-full",
|
|
74
|
+
"top-1/2",
|
|
75
|
+
"-translate-y-2/4",
|
|
76
|
+
"border-t-4",
|
|
77
|
+
"border-t-transparent",
|
|
78
|
+
"border-b-4",
|
|
79
|
+
"border-b-transparent",
|
|
80
|
+
"border-l-4"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
41
83
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"top-full",
|
|
45
|
-
"right-1/2",
|
|
46
|
-
"translate-x-2/4",
|
|
47
|
-
"border-l-4",
|
|
48
|
-
"border-l-transparent",
|
|
49
|
-
"border-r-4",
|
|
50
|
-
"border-r-transparent",
|
|
51
|
-
"border-t-4"
|
|
52
|
-
],
|
|
53
|
-
bottom: [
|
|
54
|
-
"bottom-full",
|
|
55
|
-
"right-1/2",
|
|
56
|
-
"translate-x-2/4",
|
|
57
|
-
"border-l-4",
|
|
58
|
-
"border-l-transparent",
|
|
59
|
-
"border-r-4",
|
|
60
|
-
"border-r-transparent",
|
|
61
|
-
"border-b-4"
|
|
62
|
-
],
|
|
63
|
-
right: [
|
|
64
|
-
"right-full",
|
|
65
|
-
"top-1/2",
|
|
66
|
-
"-translate-y-2/4",
|
|
67
|
-
"border-t-4",
|
|
68
|
-
"border-t-transparent",
|
|
69
|
-
"border-b-4",
|
|
70
|
-
"border-b-transparent",
|
|
71
|
-
"border-r-4"
|
|
72
|
-
],
|
|
73
|
-
left: [
|
|
74
|
-
"left-full",
|
|
75
|
-
"top-1/2",
|
|
76
|
-
"-translate-y-2/4",
|
|
77
|
-
"border-t-4",
|
|
78
|
-
"border-t-transparent",
|
|
79
|
-
"border-b-4",
|
|
80
|
-
"border-b-transparent",
|
|
81
|
-
"border-l-4"
|
|
82
|
-
]
|
|
84
|
+
defaultVariants: {
|
|
85
|
+
position: "right"
|
|
83
86
|
}
|
|
84
|
-
},
|
|
85
|
-
defaultVariants: {
|
|
86
|
-
theme: "kubefirst",
|
|
87
|
-
position: "right"
|
|
88
87
|
}
|
|
89
|
-
|
|
88
|
+
);
|
|
90
89
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
a as arrowVariants,
|
|
91
|
+
o as tooltipVariants
|
|
93
92
|
};
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { useId as d } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { cn as h } from "../../utils/index.js";
|
|
4
|
+
import { typographyVariants as l } from "./Typography.variants.js";
|
|
5
|
+
import { S as g } from "../../index-Bk324h27.js";
|
|
6
|
+
const i = ({
|
|
7
|
+
className: p,
|
|
7
8
|
theme: m,
|
|
8
|
-
children:
|
|
9
|
+
children: s,
|
|
9
10
|
variant: o,
|
|
10
|
-
component:
|
|
11
|
+
component: r,
|
|
12
|
+
asChild: e = !1,
|
|
11
13
|
...t
|
|
12
14
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
15
|
+
const y = d(), c = e ? g : r ?? (o != null && o.includes("h") ? o : "p");
|
|
16
|
+
return /* @__PURE__ */ f(
|
|
17
|
+
c,
|
|
16
18
|
{
|
|
17
|
-
id:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
id: y,
|
|
20
|
+
"data-theme": m,
|
|
21
|
+
className: h(
|
|
22
|
+
l({
|
|
23
|
+
className: p,
|
|
24
|
+
variant: o
|
|
25
|
+
})
|
|
26
|
+
),
|
|
23
27
|
...t,
|
|
24
|
-
children:
|
|
28
|
+
children: s
|
|
25
29
|
}
|
|
26
30
|
);
|
|
27
31
|
};
|
|
28
|
-
|
|
32
|
+
i.displayName = "Typography";
|
|
29
33
|
export {
|
|
30
|
-
|
|
34
|
+
i as Typography
|
|
31
35
|
};
|
|
@@ -46,16 +46,10 @@ const e = t([], {
|
|
|
46
46
|
body2: ["text-[14px]", "leading-[20px]", "tracking-[0.25px]"],
|
|
47
47
|
body3: ["text-[12px]", "leading-[16px]", "tracking-[0.4px]"],
|
|
48
48
|
tooltip: ["text-[14px]", "leading-[22px]"]
|
|
49
|
-
},
|
|
50
|
-
theme: {
|
|
51
|
-
kubefirst: "",
|
|
52
|
-
colony: "",
|
|
53
|
-
civo: ""
|
|
54
49
|
}
|
|
55
50
|
},
|
|
56
51
|
defaultVariants: {
|
|
57
|
-
variant: "body1"
|
|
58
|
-
theme: "kubefirst"
|
|
52
|
+
variant: "body1"
|
|
59
53
|
}
|
|
60
54
|
});
|
|
61
55
|
export {
|
package/dist/components/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import { Autocomplete as x } from "./Autocomplete/Autocomplete.js";
|
|
|
4
4
|
import { Breadcrumb as a } from "./Breadcrumb/Breadcrumb.js";
|
|
5
5
|
import { Button as d } from "./Button/Button.js";
|
|
6
6
|
import { Card as n } from "./Card/Card.js";
|
|
7
|
-
import { Checkbox as
|
|
8
|
-
import { Dropdown as
|
|
9
|
-
import { Input as
|
|
10
|
-
import { M as
|
|
7
|
+
import { Checkbox as u } from "./Checkbox/Checkbox.js";
|
|
8
|
+
import { Dropdown as b } from "./Dropdown/Dropdown.js";
|
|
9
|
+
import { Input as v } from "./Input/Input.js";
|
|
10
|
+
import { M as R } from "../Modal-i7eolhYH.js";
|
|
11
11
|
import { NumberInput as s } from "./NumberInput/NumberInput.js";
|
|
12
12
|
import { ProgressBar as C } from "./ProgressBar/ProgressBar.js";
|
|
13
13
|
import { Radio as B } from "./Radio/Radio.js";
|
|
@@ -26,12 +26,13 @@ import { Tooltip as Y } from "./Tooltip/Tooltip.js";
|
|
|
26
26
|
import { Loading as _ } from "./Loading/Loading.js";
|
|
27
27
|
import { Typography as oo } from "./Typography/Typography.js";
|
|
28
28
|
import { Divider as to } from "./Divider/Divider.js";
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
29
|
+
import { Table as po } from "./Table/Table.js";
|
|
30
|
+
import { Footer as xo } from "./Sidebar/components/Footer/Footer.js";
|
|
31
|
+
import { Logo as ao } from "./Sidebar/components/Logo/Logo.js";
|
|
32
|
+
import { Navigation as go } from "./Sidebar/components/Navigation/Navigation.js";
|
|
33
|
+
import { NavigationGroup as lo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
34
|
+
import { NavigationOption as To } from "./Sidebar/components/NavigationOption/NavigationOption.js";
|
|
35
|
+
import { NavigationSeparator as co } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
35
36
|
export {
|
|
36
37
|
t as Alert,
|
|
37
38
|
p as AlertDialog,
|
|
@@ -39,18 +40,18 @@ export {
|
|
|
39
40
|
a as Breadcrumb,
|
|
40
41
|
d as Button,
|
|
41
42
|
n as Card,
|
|
42
|
-
|
|
43
|
+
u as Checkbox,
|
|
43
44
|
to as Divider,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
b as Dropdown,
|
|
46
|
+
xo as Footer,
|
|
47
|
+
v as Input,
|
|
47
48
|
_ as Loading,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
ao as Logo,
|
|
50
|
+
R as Modal,
|
|
51
|
+
go as Navigation,
|
|
52
|
+
lo as NavigationGroup,
|
|
53
|
+
To as NavigationOption,
|
|
54
|
+
co as NavigationSeparator,
|
|
54
55
|
s as NumberInput,
|
|
55
56
|
C as ProgressBar,
|
|
56
57
|
B as Radio,
|
|
@@ -61,6 +62,7 @@ export {
|
|
|
61
62
|
O as Sidebar,
|
|
62
63
|
j as Slider,
|
|
63
64
|
z as Switch,
|
|
65
|
+
po as Table,
|
|
64
66
|
H as Tag,
|
|
65
67
|
K as TagSelect,
|
|
66
68
|
U as TextArea,
|
|
@@ -1,89 +1,87 @@
|
|
|
1
1
|
import { jsx as v } from "react/jsx-runtime";
|
|
2
|
-
import { useState as h } from "react";
|
|
3
|
-
import { isClient as
|
|
2
|
+
import { useState as h, useEffect as g } from "react";
|
|
3
|
+
import { isClient as l } from "../utils/index.js";
|
|
4
4
|
import { ThemeContext as C } from "./theme.context.js";
|
|
5
5
|
/*! js-cookie v3.0.5 | MIT */
|
|
6
|
-
function
|
|
6
|
+
function p(n) {
|
|
7
7
|
for (var o = 1; o < arguments.length; o++) {
|
|
8
8
|
var t = arguments[o];
|
|
9
9
|
for (var f in t)
|
|
10
|
-
|
|
10
|
+
n[f] = t[f];
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return n;
|
|
13
13
|
}
|
|
14
|
-
var
|
|
15
|
-
read: function(
|
|
16
|
-
return
|
|
14
|
+
var a = {
|
|
15
|
+
read: function(n) {
|
|
16
|
+
return n[0] === '"' && (n = n.slice(1, -1)), n.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
17
17
|
},
|
|
18
|
-
write: function(
|
|
19
|
-
return encodeURIComponent(
|
|
18
|
+
write: function(n) {
|
|
19
|
+
return encodeURIComponent(n).replace(
|
|
20
20
|
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
21
21
|
decodeURIComponent
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function s(
|
|
26
|
-
function t(
|
|
25
|
+
function s(n, o) {
|
|
26
|
+
function t(e, u, r) {
|
|
27
27
|
if (!(typeof document > "u")) {
|
|
28
|
-
|
|
28
|
+
r = p({}, o, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), e = encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
29
29
|
var i = "";
|
|
30
|
-
for (var c in
|
|
31
|
-
|
|
32
|
-
return document.cookie =
|
|
30
|
+
for (var c in r)
|
|
31
|
+
r[c] && (i += "; " + c, r[c] !== !0 && (i += "=" + r[c].split(";")[0]));
|
|
32
|
+
return document.cookie = e + "=" + n.write(u, e) + i;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
function f(
|
|
36
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
37
|
-
for (var
|
|
38
|
-
var c =
|
|
35
|
+
function f(e) {
|
|
36
|
+
if (!(typeof document > "u" || arguments.length && !e)) {
|
|
37
|
+
for (var u = document.cookie ? document.cookie.split("; ") : [], r = {}, i = 0; i < u.length; i++) {
|
|
38
|
+
var c = u[i].split("="), m = c.slice(1).join("=");
|
|
39
39
|
try {
|
|
40
40
|
var d = decodeURIComponent(c[0]);
|
|
41
|
-
if (
|
|
41
|
+
if (r[d] = n.read(m, d), e === d)
|
|
42
42
|
break;
|
|
43
43
|
} catch {
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
return
|
|
46
|
+
return e ? r[e] : r;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
return Object.create(
|
|
50
50
|
{
|
|
51
51
|
set: t,
|
|
52
52
|
get: f,
|
|
53
|
-
remove: function(
|
|
53
|
+
remove: function(e, u) {
|
|
54
54
|
t(
|
|
55
|
-
|
|
55
|
+
e,
|
|
56
56
|
"",
|
|
57
|
-
|
|
57
|
+
p({}, u, {
|
|
58
58
|
expires: -1
|
|
59
59
|
})
|
|
60
60
|
);
|
|
61
61
|
},
|
|
62
|
-
withAttributes: function(
|
|
63
|
-
return s(this.converter,
|
|
62
|
+
withAttributes: function(e) {
|
|
63
|
+
return s(this.converter, p({}, this.attributes, e));
|
|
64
64
|
},
|
|
65
|
-
withConverter: function(
|
|
66
|
-
return s(
|
|
65
|
+
withConverter: function(e) {
|
|
66
|
+
return s(p({}, this.converter, e), this.attributes);
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
attributes: { value: Object.freeze(o) },
|
|
71
|
-
converter: { value: Object.freeze(
|
|
71
|
+
converter: { value: Object.freeze(n) }
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var x = s(a, { path: "/" });
|
|
76
76
|
const R = ({
|
|
77
|
-
children:
|
|
77
|
+
children: n,
|
|
78
78
|
theme: o
|
|
79
79
|
}) => {
|
|
80
|
-
const [t, f] = h(() =>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
});
|
|
86
|
-
return /* @__PURE__ */ v(C.Provider, { value: { theme: t, setTheme: f }, children: r });
|
|
80
|
+
const [t, f] = h(() => o || (l ? x.get("konstruct-theme") : "kubefirst"));
|
|
81
|
+
return g(() => {
|
|
82
|
+
var e;
|
|
83
|
+
(e = document.querySelector("body")) == null || e.setAttribute("data-theme", t);
|
|
84
|
+
}, [t]), /* @__PURE__ */ v(C.Provider, { value: { theme: t, setTheme: f }, children: n });
|
|
87
85
|
};
|
|
88
86
|
export {
|
|
89
87
|
R as ThemeProvider
|
|
File without changes
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { jsx as i, jsxs as w } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { c as M, b as x } from "./index-bYyfdsls.js";
|
|
4
|
+
import { u as A, b as I } from "./index-Bk324h27.js";
|
|
5
|
+
import { c as v, R as $, P as L, O as F, W as G, C as W, T as j, d as B, b as D, e as Y } from "./index-DvFiic6N.js";
|
|
6
|
+
import { Button as k } from "./components/Button/Button.js";
|
|
7
|
+
import { cn as q } from "./utils/index.js";
|
|
8
|
+
var f = "AlertDialog", [H, se] = M(f, [
|
|
9
|
+
v
|
|
10
|
+
]), s = v(), m = (e) => {
|
|
11
|
+
const { __scopeAlertDialog: o, ...r } = e, a = s(o);
|
|
12
|
+
return /* @__PURE__ */ i($, { ...a, ...r, modal: !0 });
|
|
13
|
+
};
|
|
14
|
+
m.displayName = f;
|
|
15
|
+
var V = "AlertDialogTrigger", y = l.forwardRef(
|
|
16
|
+
(e, o) => {
|
|
17
|
+
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
18
|
+
return /* @__PURE__ */ i(Y, { ...t, ...a, ref: o });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
y.displayName = V;
|
|
22
|
+
var z = "AlertDialogPortal", _ = (e) => {
|
|
23
|
+
const { __scopeAlertDialog: o, ...r } = e, a = s(o);
|
|
24
|
+
return /* @__PURE__ */ i(L, { ...a, ...r });
|
|
25
|
+
};
|
|
26
|
+
_.displayName = z;
|
|
27
|
+
var J = "AlertDialogOverlay", N = l.forwardRef(
|
|
28
|
+
(e, o) => {
|
|
29
|
+
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
30
|
+
return /* @__PURE__ */ i(F, { ...t, ...a, ref: o });
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
N.displayName = J;
|
|
34
|
+
var n = "AlertDialogContent", [K, Q] = H(n), U = I("AlertDialogContent"), h = l.forwardRef(
|
|
35
|
+
(e, o) => {
|
|
36
|
+
const { __scopeAlertDialog: r, children: a, ...t } = e, d = s(r), p = l.useRef(null), O = A(o, p), g = l.useRef(null);
|
|
37
|
+
return /* @__PURE__ */ i(
|
|
38
|
+
G,
|
|
39
|
+
{
|
|
40
|
+
contentName: n,
|
|
41
|
+
titleName: C,
|
|
42
|
+
docsSlug: "alert-dialog",
|
|
43
|
+
children: /* @__PURE__ */ i(K, { scope: r, cancelRef: g, children: /* @__PURE__ */ w(
|
|
44
|
+
W,
|
|
45
|
+
{
|
|
46
|
+
role: "alertdialog",
|
|
47
|
+
...d,
|
|
48
|
+
...t,
|
|
49
|
+
ref: O,
|
|
50
|
+
onOpenAutoFocus: x(t.onOpenAutoFocus, (c) => {
|
|
51
|
+
var u;
|
|
52
|
+
c.preventDefault(), (u = g.current) == null || u.focus({ preventScroll: !0 });
|
|
53
|
+
}),
|
|
54
|
+
onPointerDownOutside: (c) => c.preventDefault(),
|
|
55
|
+
onInteractOutside: (c) => c.preventDefault(),
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ i(U, { children: a }),
|
|
58
|
+
/* @__PURE__ */ i(Z, { contentRef: p })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
) })
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
h.displayName = n;
|
|
67
|
+
var C = "AlertDialogTitle", R = l.forwardRef(
|
|
68
|
+
(e, o) => {
|
|
69
|
+
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
70
|
+
return /* @__PURE__ */ i(j, { ...t, ...a, ref: o });
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
R.displayName = C;
|
|
74
|
+
var E = "AlertDialogDescription", P = l.forwardRef((e, o) => {
|
|
75
|
+
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
76
|
+
return /* @__PURE__ */ i(B, { ...t, ...a, ref: o });
|
|
77
|
+
});
|
|
78
|
+
P.displayName = E;
|
|
79
|
+
var X = "AlertDialogAction", S = l.forwardRef(
|
|
80
|
+
(e, o) => {
|
|
81
|
+
const { __scopeAlertDialog: r, ...a } = e, t = s(r);
|
|
82
|
+
return /* @__PURE__ */ i(D, { ...t, ...a, ref: o });
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
S.displayName = X;
|
|
86
|
+
var T = "AlertDialogCancel", b = l.forwardRef(
|
|
87
|
+
(e, o) => {
|
|
88
|
+
const { __scopeAlertDialog: r, ...a } = e, { cancelRef: t } = Q(T, r), d = s(r), p = A(o, t);
|
|
89
|
+
return /* @__PURE__ */ i(D, { ...d, ...a, ref: p });
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
b.displayName = T;
|
|
93
|
+
var Z = ({ contentRef: e }) => {
|
|
94
|
+
const o = `\`${n}\` requires a description for the component to be accessible for screen reader users.
|
|
95
|
+
|
|
96
|
+
You can add a description to the \`${n}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
97
|
+
|
|
98
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${n}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
99
|
+
|
|
100
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
101
|
+
return l.useEffect(() => {
|
|
102
|
+
var a;
|
|
103
|
+
document.getElementById(
|
|
104
|
+
(a = e.current) == null ? void 0 : a.getAttribute("aria-describedby")
|
|
105
|
+
) || console.warn(o);
|
|
106
|
+
}, [o, e]), null;
|
|
107
|
+
}, ne = m, ee = y, ce = _, pe = N, de = h, ge = S, ue = b, Ae = R, ve = P;
|
|
108
|
+
const De = ({
|
|
109
|
+
"data-theme": e,
|
|
110
|
+
className: o,
|
|
111
|
+
text: r,
|
|
112
|
+
onOpen: a
|
|
113
|
+
}) => /* @__PURE__ */ i(ee, { asChild: !0, children: /* @__PURE__ */ i(
|
|
114
|
+
k,
|
|
115
|
+
{
|
|
116
|
+
type: "button",
|
|
117
|
+
"data-theme": e,
|
|
118
|
+
className: q(o),
|
|
119
|
+
onClick: a,
|
|
120
|
+
children: r
|
|
121
|
+
}
|
|
122
|
+
) });
|
|
123
|
+
export {
|
|
124
|
+
De as A,
|
|
125
|
+
de as C,
|
|
126
|
+
ve as D,
|
|
127
|
+
pe as O,
|
|
128
|
+
ce as P,
|
|
129
|
+
ne as R,
|
|
130
|
+
Ae as T,
|
|
131
|
+
ue as a,
|
|
132
|
+
ge as b
|
|
133
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as d from "react";
|
|
2
|
-
import { a as ae, c as ce, b as _ } from "./index-
|
|
3
|
-
import { u as K } from "./index-
|
|
4
|
-
import { a as le, u as de } from "./index-
|
|
5
|
-
import { P as T } from "./index-
|
|
6
|
-
import { c as ue } from "./index-
|
|
2
|
+
import { a as ae, c as ce, b as _ } from "./index-bYyfdsls.js";
|
|
3
|
+
import { u as K } from "./index-Bk324h27.js";
|
|
4
|
+
import { a as le, u as de } from "./index-Bry5AFQ2.js";
|
|
5
|
+
import { P as T } from "./index-g-TFwd6Y.js";
|
|
6
|
+
import { c as ue } from "./index-D9BbbgUq.js";
|
|
7
7
|
import { jsx as g, jsxs as fe } from "react/jsx-runtime";
|
|
8
8
|
function $(e, [t, n]) {
|
|
9
9
|
return Math.min(n, Math.max(t, e));
|