@konstructio/ui 0.1.1-alpha.6 → 0.1.2-alpha.10
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-V67Uz78z.js → Modal-B8jrP02v.js} +20 -20
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{chevron-down-CVce9Mvh.js → chevron-down-MZvQoT2F.js} +2 -2
- package/dist/chevron-right-VYBOBhRt.js +19 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +46 -54
- package/dist/components/Autocomplete/Autocomplete.variants.js +29 -48
- package/dist/components/Autocomplete/components/List/List.js +37 -47
- package/dist/components/Autocomplete/components/List/List.variants.js +34 -69
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
- package/dist/components/Button/Button.variants.js +110 -134
- package/dist/components/Checkbox/Checkbox.js +5 -4
- package/dist/components/Checkbox/Checkbox.variants.js +9 -8
- 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 +949 -898
- package/dist/components/Dropdown/Dropdown.js +36 -24
- package/dist/components/Dropdown/Dropdown.variants.js +32 -14
- package/dist/components/Dropdown/components/List/List.js +59 -44
- package/dist/components/Dropdown/components/List/List.variants.js +9 -7
- package/dist/components/Dropdown/components/ListItem/ListItem.js +48 -24
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +9 -7
- package/dist/components/Dropdown/components/Wrapper.js +141 -106
- package/dist/components/Dropdown/contexts/dropdown.context.js +9 -8
- package/dist/components/Dropdown/contexts/dropdown.provider.js +20 -19
- package/dist/components/Dropdown/hooks/useDropdown.js +26 -27
- package/dist/components/Dropdown/hooks/useNavigationList.js +32 -28
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Filter/components/ResetButton/ResetButton.js +16 -11
- package/dist/components/Input/Input.js +48 -48
- package/dist/components/Input/Input.variants.js +10 -10
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Loading/Loading.variants.js +4 -4
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PieChart/PieChart.js +217 -215
- package/dist/components/Radio/Radio.variants.js +4 -4
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +94 -89
- package/dist/components/Switch/Switch.variants.js +16 -12
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +45 -24
- 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 +9 -8
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +98 -49
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Toast/Toast.js +57 -55
- package/dist/components/VirtualizedTable/VirtualizedTable.js +117 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
- package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
- package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
- package/dist/components/VirtualizedTable/assets/index.js +6 -0
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +46 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +25 -0
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +86 -0
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
- package/dist/components/VirtualizedTable/components/Header/Header.js +82 -0
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +45 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1871 -0
- package/dist/components/VirtualizedTable/components/index.js +14 -0
- package/dist/components/VirtualizedTable/constants/index.js +5 -0
- package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
- package/dist/components/VirtualizedTable/contexts/index.js +8 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +31 -0
- package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +82 -0
- package/dist/components/index.js +44 -40
- package/dist/{createLucideIcon-BpsAkT97.js → createLucideIcon-D2CN7Ma9.js} +4 -4
- package/dist/debounce-BFejQm9P.js +200 -0
- package/dist/{index-D3xzCzcO.js → index-0XtjXVpJ.js} +2 -2
- package/dist/index-BAEWsOG1.js +27 -0
- package/dist/index-BVRIAMfe.js +36 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/{index-Oq5GlCHP.js → index-Bn4c-gww.js} +1 -1
- package/dist/index-CffpTFMi.js +137 -0
- package/dist/{index-BAraV3ai.js → index-DQJhMz8c.js} +1 -1
- package/dist/index-DdXGVVBv.js +15 -0
- package/dist/index-Dx2grAuN.js +1742 -0
- package/dist/{index-h-Ul0anl.js → index-N2OStZoU.js} +1 -1
- package/dist/{index-BXuxPoz7.js → index-amYX3uxF.js} +18 -17
- package/dist/{index-DB2XhXHn.js → index-l3NwplN0.js} +11 -10
- package/dist/{index-iXyXtdgP.js → index-sp5ZfG6g.js} +1 -1
- package/dist/index.d.ts +112 -10
- package/dist/index.js +41 -37
- package/dist/package.json +31 -23
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +204 -189
- package/dist/ui/kubefirst-theme.css +3 -1
- package/dist/ui/theme.css +2 -2
- package/dist/{x-BPcqkRZd.js → x-4F_5p77m.js} +1 -1
- package/package.json +31 -23
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/chevron-up-RLP4nX7V.js +0 -54
- package/dist/index-C9T9HQaa.js +0 -423
- package/dist/index-CZnD2QxM.js +0 -32
- package/dist/index-CrBonFvu.js +0 -144
|
@@ -51,10 +51,10 @@ const a = e(
|
|
|
51
51
|
disabled: !1,
|
|
52
52
|
checked: [!0, !1],
|
|
53
53
|
class: [
|
|
54
|
-
"peer-checked:border-kubefirst-primary",
|
|
55
|
-
"peer-checked:before:bg-kubefirst-primary",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
54
|
+
"kubefirst:peer-checked:border-kubefirst-primary",
|
|
55
|
+
"kubefirst:peer-checked:before:bg-kubefirst-primary",
|
|
56
|
+
"peer-checked:border-aurora-500",
|
|
57
|
+
"peer-checked:before:bg-aurora-500"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as g, T as R, a as V, b as c } from "../../index-
|
|
2
|
+
import { R as g, T as R, a as V, b as c } from "../../index-l3NwplN0.js";
|
|
3
3
|
import { forwardRef as v, useRef as b, useState as j, useImperativeHandle as k, useEffect as w, useCallback as y } from "react";
|
|
4
4
|
import { cn as a } from "../../utils/index.js";
|
|
5
5
|
import { rangeOutsideVariants as C, trackVariants as T, thumbVariants as i, rangeVariants as S } from "./Range.variants.js";
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { Footer as
|
|
2
|
-
import { Logo as
|
|
3
|
-
import { Navigation as
|
|
1
|
+
import { Footer as b } from "../Footer/Footer.js";
|
|
2
|
+
import { Logo as C } from "../Logo/Logo.js";
|
|
3
|
+
import { Navigation as D } from "../Navigation/Navigation.js";
|
|
4
4
|
import "../NavigationGroup/NavigationGroup.js";
|
|
5
5
|
import "../NavigationOption/NavigationOption.js";
|
|
6
6
|
import "../NavigationSeparator/NavigationSeparator.js";
|
|
7
7
|
import "../NavigationTitle/NavigationTitle.js";
|
|
8
|
-
import { jsxs as
|
|
8
|
+
import { jsxs as V, jsx as j } from "react/jsx-runtime";
|
|
9
9
|
import { useRef as d, useCallback as f, useMemo as s, Children as a, isValidElement as l } from "react";
|
|
10
10
|
import { cn as y } from "../../../../utils/index.js";
|
|
11
|
-
import { dragVariants as
|
|
12
|
-
const
|
|
11
|
+
import { dragVariants as x, wrapperSiderbarVariants as z } from "../../Sidebar.variants.js";
|
|
12
|
+
const S = ({
|
|
13
13
|
canResize: g = !0,
|
|
14
14
|
children: v,
|
|
15
|
+
dividerClassName: L,
|
|
15
16
|
maxWith: i = 300,
|
|
16
17
|
minWith: m = 240,
|
|
17
|
-
theme:
|
|
18
|
-
wrapperClassName:
|
|
18
|
+
theme: M,
|
|
19
|
+
wrapperClassName: N
|
|
19
20
|
}) => {
|
|
20
|
-
const r = d(null),
|
|
21
|
+
const r = d(null), c = d(null), u = d(!1), n = f(
|
|
21
22
|
(e) => {
|
|
22
|
-
if (!
|
|
23
|
+
if (!u.current) {
|
|
23
24
|
r.current && (r.current.style.opacity = "0");
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
26
27
|
let o = e.clientX;
|
|
27
|
-
o < m && (o = m), o > i && (o = i),
|
|
28
|
+
o < m && (o = m), o > i && (o = i), c.current && r.current && (c.current.style.width = `${o}px`, r.current.classList.add("opacity-100"));
|
|
28
29
|
},
|
|
29
30
|
[i, m]
|
|
30
31
|
), p = f(() => {
|
|
31
|
-
|
|
32
|
+
u.current = !1, r.current && r.current.classList.remove("opacity-100"), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", p);
|
|
32
33
|
}, [n]), w = f(
|
|
33
34
|
(e) => {
|
|
34
|
-
e.preventDefault(), e.stopPropagation(),
|
|
35
|
+
e.preventDefault(), e.stopPropagation(), u.current = !0, document.addEventListener("mousemove", n), document.addEventListener("mouseup", p);
|
|
35
36
|
},
|
|
36
37
|
[n, p]
|
|
37
38
|
), t = s(
|
|
@@ -39,39 +40,39 @@ const z = ({
|
|
|
39
40
|
[v]
|
|
40
41
|
), E = s(
|
|
41
42
|
() => a.toArray(t).find(
|
|
42
|
-
(e) => l(e) && e.type ===
|
|
43
|
+
(e) => l(e) && e.type === C
|
|
43
44
|
),
|
|
44
45
|
[t]
|
|
45
|
-
),
|
|
46
|
+
), R = s(
|
|
46
47
|
() => a.toArray(t).find(
|
|
47
|
-
(e) => l(e) && e.type ===
|
|
48
|
+
(e) => l(e) && e.type === D
|
|
48
49
|
),
|
|
49
50
|
[t]
|
|
50
|
-
),
|
|
51
|
+
), A = s(
|
|
51
52
|
() => a.toArray(t).find(
|
|
52
|
-
(e) => l(e) && e.type ===
|
|
53
|
+
(e) => l(e) && e.type === b
|
|
53
54
|
),
|
|
54
55
|
[t]
|
|
55
56
|
);
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ V(
|
|
57
58
|
"aside",
|
|
58
59
|
{
|
|
59
|
-
ref:
|
|
60
|
+
ref: c,
|
|
60
61
|
className: y(
|
|
61
|
-
|
|
62
|
-
className:
|
|
62
|
+
z({
|
|
63
|
+
className: N
|
|
63
64
|
})
|
|
64
65
|
),
|
|
65
|
-
"data-theme":
|
|
66
|
+
"data-theme": M,
|
|
66
67
|
children: [
|
|
67
68
|
E,
|
|
68
|
-
N,
|
|
69
69
|
R,
|
|
70
|
-
|
|
70
|
+
A,
|
|
71
|
+
g && /* @__PURE__ */ j(
|
|
71
72
|
"div",
|
|
72
73
|
{
|
|
73
74
|
ref: r,
|
|
74
|
-
className: y(
|
|
75
|
+
className: y(x({ className: L })),
|
|
75
76
|
onMouseDown: w
|
|
76
77
|
}
|
|
77
78
|
)
|
|
@@ -79,7 +80,7 @@ const z = ({
|
|
|
79
80
|
}
|
|
80
81
|
);
|
|
81
82
|
};
|
|
82
|
-
|
|
83
|
+
S.displayName = "Sidebar.Wrapper";
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
+
S as Wrapper
|
|
85
86
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { R as x, T as N, b as v } from "../../index-
|
|
2
|
+
import { R as x, T as N, b as v } from "../../index-l3NwplN0.js";
|
|
3
3
|
import { forwardRef as V, useRef as b, useState as R, useImperativeHandle as g, useEffect as j, useCallback as k } from "react";
|
|
4
4
|
import { cn as r } from "../../utils/index.js";
|
|
5
5
|
import { trackVariants as w, thumbVariants as y, sliderVariants as C } from "./Slider.variants.js";
|
|
@@ -1,112 +1,113 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as C, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as h from "react";
|
|
3
3
|
import { forwardRef as H, useRef as M, useId as $, useImperativeHandle as j, useEffect as z } from "react";
|
|
4
4
|
import { a as A, c as U, b as q } from "../../index-BfXxHr_2.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as F
|
|
7
|
-
import {
|
|
5
|
+
import { u as N } from "../../index-DQH6odE9.js";
|
|
6
|
+
import { u as F } from "../../index-BZPx6jYI.js";
|
|
7
|
+
import { u as L } from "../../index-BAEWsOG1.js";
|
|
8
|
+
import { P } from "../../index-BVRIAMfe.js";
|
|
8
9
|
import { cn as R } from "../../utils/index.js";
|
|
9
10
|
import { thumbVariants as O, switchVariants as V } from "./Switch.variants.js";
|
|
10
|
-
var b = "Switch", [D,
|
|
11
|
-
(
|
|
11
|
+
var b = "Switch", [D, ce] = U(b), [W, X] = D(b), y = h.forwardRef(
|
|
12
|
+
(e, l) => {
|
|
12
13
|
const {
|
|
13
|
-
__scopeSwitch:
|
|
14
|
+
__scopeSwitch: t,
|
|
14
15
|
name: s,
|
|
15
16
|
checked: o,
|
|
16
17
|
defaultChecked: d,
|
|
17
18
|
required: u,
|
|
18
|
-
disabled:
|
|
19
|
-
value:
|
|
19
|
+
disabled: r,
|
|
20
|
+
value: c = "on",
|
|
20
21
|
onCheckedChange: m,
|
|
21
|
-
form:
|
|
22
|
-
...
|
|
23
|
-
} =
|
|
22
|
+
form: n,
|
|
23
|
+
...a
|
|
24
|
+
} = e, [p, f] = h.useState(null), w = N(l, (v) => f(v)), x = h.useRef(!1), k = p ? n || !!p.closest("form") : !0, [S, B] = A({
|
|
24
25
|
prop: o,
|
|
25
26
|
defaultProp: d ?? !1,
|
|
26
27
|
onChange: m,
|
|
27
28
|
caller: b
|
|
28
29
|
});
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
30
|
+
return /* @__PURE__ */ C(W, { scope: t, checked: S, disabled: r, children: [
|
|
31
|
+
/* @__PURE__ */ i(
|
|
32
|
+
P.button,
|
|
32
33
|
{
|
|
33
34
|
type: "button",
|
|
34
35
|
role: "switch",
|
|
35
|
-
"aria-checked":
|
|
36
|
+
"aria-checked": S,
|
|
36
37
|
"aria-required": u,
|
|
37
|
-
"data-state": I(
|
|
38
|
-
"data-disabled":
|
|
39
|
-
disabled:
|
|
40
|
-
value:
|
|
41
|
-
...
|
|
42
|
-
ref:
|
|
43
|
-
onClick: q(
|
|
44
|
-
B((T) => !T), k && (
|
|
38
|
+
"data-state": I(S),
|
|
39
|
+
"data-disabled": r ? "" : void 0,
|
|
40
|
+
disabled: r,
|
|
41
|
+
value: c,
|
|
42
|
+
...a,
|
|
43
|
+
ref: w,
|
|
44
|
+
onClick: q(e.onClick, (v) => {
|
|
45
|
+
B((T) => !T), k && (x.current = v.isPropagationStopped(), x.current || v.stopPropagation());
|
|
45
46
|
})
|
|
46
47
|
}
|
|
47
48
|
),
|
|
48
|
-
k && /* @__PURE__ */
|
|
49
|
+
k && /* @__PURE__ */ i(
|
|
49
50
|
_,
|
|
50
51
|
{
|
|
51
|
-
control:
|
|
52
|
-
bubbles: !
|
|
52
|
+
control: p,
|
|
53
|
+
bubbles: !x.current,
|
|
53
54
|
name: s,
|
|
54
|
-
value:
|
|
55
|
-
checked:
|
|
55
|
+
value: c,
|
|
56
|
+
checked: S,
|
|
56
57
|
required: u,
|
|
57
|
-
disabled:
|
|
58
|
-
form:
|
|
58
|
+
disabled: r,
|
|
59
|
+
form: n,
|
|
59
60
|
style: { transform: "translateX(-100%)" }
|
|
60
61
|
}
|
|
61
62
|
)
|
|
62
63
|
] });
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
|
-
|
|
66
|
-
var g = "SwitchThumb", E =
|
|
67
|
-
(
|
|
68
|
-
const { __scopeSwitch:
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
|
|
66
|
+
y.displayName = b;
|
|
67
|
+
var g = "SwitchThumb", E = h.forwardRef(
|
|
68
|
+
(e, l) => {
|
|
69
|
+
const { __scopeSwitch: t, ...s } = e, o = X(g, t);
|
|
70
|
+
return /* @__PURE__ */ i(
|
|
71
|
+
P.span,
|
|
71
72
|
{
|
|
72
73
|
"data-state": I(o.checked),
|
|
73
74
|
"data-disabled": o.disabled ? "" : void 0,
|
|
74
75
|
...s,
|
|
75
|
-
ref:
|
|
76
|
+
ref: l
|
|
76
77
|
}
|
|
77
78
|
);
|
|
78
79
|
}
|
|
79
80
|
);
|
|
80
81
|
E.displayName = g;
|
|
81
|
-
var G = "SwitchBubbleInput", _ =
|
|
82
|
+
var G = "SwitchBubbleInput", _ = h.forwardRef(
|
|
82
83
|
({
|
|
83
|
-
__scopeSwitch:
|
|
84
|
-
control:
|
|
85
|
-
checked:
|
|
84
|
+
__scopeSwitch: e,
|
|
85
|
+
control: l,
|
|
86
|
+
checked: t,
|
|
86
87
|
bubbles: s = !0,
|
|
87
88
|
...o
|
|
88
89
|
}, d) => {
|
|
89
|
-
const u =
|
|
90
|
-
return
|
|
91
|
-
const
|
|
92
|
-
if (!
|
|
93
|
-
const
|
|
94
|
-
|
|
90
|
+
const u = h.useRef(null), r = N(u, d), c = F(t), m = L(l);
|
|
91
|
+
return h.useEffect(() => {
|
|
92
|
+
const n = u.current;
|
|
93
|
+
if (!n) return;
|
|
94
|
+
const a = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(
|
|
95
|
+
a,
|
|
95
96
|
"checked"
|
|
96
97
|
).set;
|
|
97
|
-
if (
|
|
98
|
-
const
|
|
99
|
-
|
|
98
|
+
if (c !== t && f) {
|
|
99
|
+
const w = new Event("click", { bubbles: s });
|
|
100
|
+
f.call(n, t), n.dispatchEvent(w);
|
|
100
101
|
}
|
|
101
|
-
}, [
|
|
102
|
+
}, [c, t, s]), /* @__PURE__ */ i(
|
|
102
103
|
"input",
|
|
103
104
|
{
|
|
104
105
|
type: "checkbox",
|
|
105
106
|
"aria-hidden": !0,
|
|
106
|
-
defaultChecked:
|
|
107
|
+
defaultChecked: t,
|
|
107
108
|
...o,
|
|
108
109
|
tabIndex: -1,
|
|
109
|
-
ref:
|
|
110
|
+
ref: r,
|
|
110
111
|
style: {
|
|
111
112
|
...o.style,
|
|
112
113
|
...m,
|
|
@@ -120,53 +121,45 @@ var G = "SwitchBubbleInput", _ = p.forwardRef(
|
|
|
120
121
|
}
|
|
121
122
|
);
|
|
122
123
|
_.displayName = G;
|
|
123
|
-
function I(
|
|
124
|
-
return
|
|
124
|
+
function I(e) {
|
|
125
|
+
return e ? "checked" : "unchecked";
|
|
125
126
|
}
|
|
126
|
-
var J =
|
|
127
|
-
const
|
|
127
|
+
var J = y, K = E;
|
|
128
|
+
const ne = H(
|
|
128
129
|
({
|
|
129
|
-
name:
|
|
130
|
-
alignment:
|
|
131
|
-
theme:
|
|
130
|
+
name: e,
|
|
131
|
+
alignment: l = "horizontal",
|
|
132
|
+
theme: t,
|
|
132
133
|
thumbClassName: s,
|
|
133
134
|
className: o,
|
|
134
135
|
label: d,
|
|
135
136
|
defaultChecked: u,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
value: r,
|
|
138
|
+
helperText: c,
|
|
139
|
+
onChange: m
|
|
140
|
+
}, n) => {
|
|
141
|
+
const a = M(null), p = $(), f = e ? `${p}-${e}` : p;
|
|
142
|
+
return j(n, () => a.current, [a]), z(() => {
|
|
143
|
+
a.current && (a.current.value = `${r}`);
|
|
144
|
+
}, [r]), /* @__PURE__ */ C(
|
|
143
145
|
"div",
|
|
144
146
|
{
|
|
145
147
|
className: R(
|
|
146
148
|
"w-full flex gap-3",
|
|
147
|
-
|
|
149
|
+
l === "vertical" ? "flex-col" : "flex-row"
|
|
148
150
|
),
|
|
149
|
-
"data-theme":
|
|
151
|
+
"data-theme": t,
|
|
150
152
|
children: [
|
|
151
|
-
|
|
152
|
-
"label",
|
|
153
|
-
{
|
|
154
|
-
className: "text-base",
|
|
155
|
-
htmlFor: l,
|
|
156
|
-
style: { paddingRight: 15 },
|
|
157
|
-
children: d
|
|
158
|
-
}
|
|
159
|
-
) : null,
|
|
160
|
-
/* @__PURE__ */ n(
|
|
153
|
+
/* @__PURE__ */ i(
|
|
161
154
|
J,
|
|
162
155
|
{
|
|
163
|
-
id:
|
|
156
|
+
id: f,
|
|
164
157
|
defaultChecked: u,
|
|
165
|
-
checked:
|
|
166
|
-
onCheckedChange: (
|
|
158
|
+
checked: r,
|
|
159
|
+
onCheckedChange: (w) => m?.(w),
|
|
167
160
|
className: R(V({ className: o })),
|
|
168
161
|
"aria-label": d,
|
|
169
|
-
children: /* @__PURE__ */
|
|
162
|
+
children: /* @__PURE__ */ i(
|
|
170
163
|
K,
|
|
171
164
|
{
|
|
172
165
|
className: O({
|
|
@@ -176,11 +169,23 @@ const ce = H(
|
|
|
176
169
|
)
|
|
177
170
|
}
|
|
178
171
|
),
|
|
179
|
-
/* @__PURE__ */
|
|
172
|
+
d ? /* @__PURE__ */ C(
|
|
173
|
+
"label",
|
|
174
|
+
{
|
|
175
|
+
className: "flex flex-col text-slate-800 dark:text-white text-sm",
|
|
176
|
+
htmlFor: f,
|
|
177
|
+
style: { paddingRight: 15 },
|
|
178
|
+
children: [
|
|
179
|
+
d,
|
|
180
|
+
c ? /* @__PURE__ */ i("span", { className: "text-slate-600 dark:text-slate-400 text-xs", children: c }) : null
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
) : null,
|
|
184
|
+
/* @__PURE__ */ i(
|
|
180
185
|
"input",
|
|
181
186
|
{
|
|
182
|
-
ref:
|
|
183
|
-
name:
|
|
187
|
+
ref: a,
|
|
188
|
+
name: e,
|
|
184
189
|
type: "text",
|
|
185
190
|
className: "hidden",
|
|
186
191
|
"aria-hidden": "true"
|
|
@@ -192,5 +197,5 @@ const ce = H(
|
|
|
192
197
|
}
|
|
193
198
|
);
|
|
194
199
|
export {
|
|
195
|
-
|
|
200
|
+
ne as Switch
|
|
196
201
|
};
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
3
|
-
"w-[
|
|
4
|
-
"h-[
|
|
1
|
+
import { c as a } from "../../index-D29mdTf5.js";
|
|
2
|
+
const r = a([
|
|
3
|
+
"w-[40px]",
|
|
4
|
+
"h-[20px]",
|
|
5
5
|
"flex",
|
|
6
6
|
"items-center",
|
|
7
7
|
"rounded-full",
|
|
8
8
|
"shadow",
|
|
9
9
|
"focus:shadow-md",
|
|
10
|
-
"data-[state=unchecked]:bg-
|
|
10
|
+
"data-[state=unchecked]:bg-gray-300",
|
|
11
|
+
"dark:data-[state=unchecked]:bg-gray-600",
|
|
11
12
|
"transition-all",
|
|
12
13
|
"delay-10",
|
|
13
14
|
"duration-250",
|
|
14
15
|
"cursor-pointer",
|
|
15
|
-
"bg-
|
|
16
|
-
|
|
16
|
+
"bg-aurora-500",
|
|
17
|
+
"kubefirst:bg-kubefirst-primary"
|
|
18
|
+
]), e = a([
|
|
17
19
|
"block",
|
|
18
|
-
"w-[
|
|
19
|
-
"h-[
|
|
20
|
+
"w-[16px]",
|
|
21
|
+
"h-[16px]",
|
|
20
22
|
"bg-white",
|
|
23
|
+
"dark:bg-gray-400",
|
|
24
|
+
"dark:data-[state=checked]:bg-white",
|
|
21
25
|
"rounded-full",
|
|
22
26
|
"shadow-md",
|
|
23
27
|
"transition-all",
|
|
24
28
|
"translate-x-1",
|
|
25
|
-
"data-[state=checked]:translate-x-5
|
|
29
|
+
"data-[state=checked]:translate-x-5",
|
|
26
30
|
"delay-10",
|
|
27
31
|
"duration-300"
|
|
28
32
|
]);
|
|
29
33
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
r as switchVariants,
|
|
35
|
+
e as thumbVariants
|
|
32
36
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { R as e } from "../../index-
|
|
2
|
+
import { R as e } from "../../index-DQJhMz8c.js";
|
|
3
3
|
import { cn as n } from "../../utils/index.js";
|
|
4
4
|
import { rootVariants as p } from "./Tabs.variants.js";
|
|
5
5
|
import { Content as f } from "./components/Content.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const r =
|
|
1
|
+
import { c as t } from "../../index-D29mdTf5.js";
|
|
2
|
+
const r = t([""], {
|
|
3
3
|
variants: {
|
|
4
4
|
variant: {
|
|
5
5
|
horizontal: "",
|
|
@@ -9,7 +9,7 @@ const r = a([""], {
|
|
|
9
9
|
defaultVariants: {
|
|
10
10
|
variant: "horizontal"
|
|
11
11
|
}
|
|
12
|
-
}),
|
|
12
|
+
}), e = t([""], {
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
15
15
|
default: ""
|
|
@@ -18,7 +18,7 @@ const r = a([""], {
|
|
|
18
18
|
defaultVariants: {
|
|
19
19
|
variant: "default"
|
|
20
20
|
}
|
|
21
|
-
}),
|
|
21
|
+
}), i = t(["flex"], {
|
|
22
22
|
variants: {
|
|
23
23
|
variant: {
|
|
24
24
|
default: "flex gap-6",
|
|
@@ -29,28 +29,49 @@ const r = a([""], {
|
|
|
29
29
|
defaultVariants: {
|
|
30
30
|
variant: "default"
|
|
31
31
|
}
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
}), n = t(
|
|
33
|
+
[
|
|
34
|
+
"cursor-pointer",
|
|
35
|
+
"h-[27px]",
|
|
36
|
+
"w-fit",
|
|
37
|
+
"block",
|
|
38
|
+
"relative",
|
|
39
|
+
"after:absolute",
|
|
40
|
+
"after:bottom-0",
|
|
41
|
+
"after:left-0",
|
|
42
|
+
"after:right-0",
|
|
43
|
+
"after:h-[2px]",
|
|
44
|
+
"after:bg-aurora-500",
|
|
45
|
+
"after:origin-bottom",
|
|
46
|
+
'after:content-[""]',
|
|
47
|
+
"after:scale-y-0",
|
|
48
|
+
"after:transition-transform",
|
|
49
|
+
"after:duration-500",
|
|
50
|
+
"after:transform-gpu",
|
|
51
|
+
"after:will-change-transform",
|
|
52
|
+
"kubefirst:after:bg-kubefirst-primary"
|
|
53
|
+
],
|
|
54
|
+
{
|
|
55
|
+
variants: {
|
|
56
|
+
variant: {
|
|
57
|
+
default: "",
|
|
58
|
+
active: [
|
|
59
|
+
"text-zinc-700",
|
|
60
|
+
"font-semibold",
|
|
61
|
+
"after:scale-y-100",
|
|
62
|
+
"hover:after:scale-y-140"
|
|
63
|
+
],
|
|
64
|
+
inactive: "text-slate-500 font-[600]"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
variant: "default"
|
|
45
69
|
}
|
|
46
|
-
},
|
|
47
|
-
defaultVariants: {
|
|
48
|
-
variant: "default"
|
|
49
70
|
}
|
|
50
|
-
|
|
71
|
+
);
|
|
51
72
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
73
|
+
e as contentVariants,
|
|
74
|
+
i as listVariants,
|
|
54
75
|
r as rootVariants,
|
|
55
|
-
|
|
76
|
+
n as triggerVariants
|
|
56
77
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { C as a } from "../../../index-
|
|
2
|
+
import { C as a } from "../../../index-DQJhMz8c.js";
|
|
3
3
|
import { cn as m } from "../../../utils/index.js";
|
|
4
4
|
import { contentVariants as s } from "../Tabs.variants.js";
|
|
5
5
|
const e = ({ children: t, className: o, ...n }) => /* @__PURE__ */ r(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { L as n } from "../../../index-
|
|
2
|
+
import { L as n } from "../../../index-DQJhMz8c.js";
|
|
3
3
|
import { cn as a } from "../../../utils/index.js";
|
|
4
4
|
import { listVariants as s } from "../Tabs.variants.js";
|
|
5
5
|
const c = ({
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { T as e } from "../../../index-
|
|
2
|
+
import { T as e } from "../../../index-DQJhMz8c.js";
|
|
3
3
|
import { Typography as m } from "../../Typography/Typography.js";
|
|
4
|
-
import { cn as
|
|
5
|
-
import { triggerVariants as
|
|
6
|
-
const
|
|
4
|
+
import { cn as n } from "../../../utils/index.js";
|
|
5
|
+
import { triggerVariants as p } from "../Tabs.variants.js";
|
|
6
|
+
const s = ({ tab: i, label: a, isActive: o, className: t }) => /* @__PURE__ */ r(e, { value: i, children: /* @__PURE__ */ r(
|
|
7
7
|
m,
|
|
8
8
|
{
|
|
9
9
|
variant: "body2",
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
component: "span",
|
|
11
|
+
className: n(
|
|
12
|
+
p({
|
|
12
13
|
variant: o ? "active" : "inactive",
|
|
13
14
|
className: t
|
|
14
15
|
})
|
|
@@ -16,7 +17,7 @@ const p = ({ tab: i, label: a, isActive: o, className: t }) => /* @__PURE__ */ r
|
|
|
16
17
|
children: a
|
|
17
18
|
}
|
|
18
19
|
) });
|
|
19
|
-
|
|
20
|
+
s.displayName = "KonstructTabsTrigger";
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
s as Trigger
|
|
22
23
|
};
|