@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
|
@@ -12,7 +12,7 @@ const a = e(
|
|
|
12
12
|
disabled: !1
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
),
|
|
15
|
+
), c = e(
|
|
16
16
|
[
|
|
17
17
|
"border",
|
|
18
18
|
"border-zinc-400",
|
|
@@ -37,11 +37,6 @@ const a = e(
|
|
|
37
37
|
],
|
|
38
38
|
{
|
|
39
39
|
variants: {
|
|
40
|
-
theme: {
|
|
41
|
-
colony: "",
|
|
42
|
-
kubefirst: "",
|
|
43
|
-
civo: ""
|
|
44
|
-
},
|
|
45
40
|
disabled: {
|
|
46
41
|
true: "",
|
|
47
42
|
false: ""
|
|
@@ -53,7 +48,6 @@ const a = e(
|
|
|
53
48
|
},
|
|
54
49
|
compoundVariants: [
|
|
55
50
|
{
|
|
56
|
-
theme: "kubefirst",
|
|
57
51
|
disabled: !1,
|
|
58
52
|
checked: [!0, !1],
|
|
59
53
|
class: [
|
|
@@ -62,7 +56,6 @@ const a = e(
|
|
|
62
56
|
]
|
|
63
57
|
},
|
|
64
58
|
{
|
|
65
|
-
theme: "kubefirst",
|
|
66
59
|
disabled: !0,
|
|
67
60
|
checked: !0,
|
|
68
61
|
class: [
|
|
@@ -73,7 +66,6 @@ const a = e(
|
|
|
73
66
|
]
|
|
74
67
|
},
|
|
75
68
|
{
|
|
76
|
-
theme: "kubefirst",
|
|
77
69
|
disabled: !0,
|
|
78
70
|
checked: !1,
|
|
79
71
|
class: [
|
|
@@ -87,13 +79,12 @@ const a = e(
|
|
|
87
79
|
}
|
|
88
80
|
],
|
|
89
81
|
defaultVariants: {
|
|
90
|
-
theme: "kubefirst",
|
|
91
82
|
disabled: !1
|
|
92
83
|
}
|
|
93
84
|
}
|
|
94
|
-
),
|
|
85
|
+
), o = e(["text-sm", "text-zinc-700"]);
|
|
95
86
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
87
|
+
o as labelRadioVariants,
|
|
88
|
+
c as radioVariants,
|
|
98
89
|
a as wrapperRadioVariants
|
|
99
90
|
};
|
|
@@ -1,41 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Card as
|
|
4
|
-
import { Radio as
|
|
5
|
-
import { radioCardVariants as
|
|
6
|
-
|
|
7
|
-
const N = ({
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m } from "../../utils/index.js";
|
|
3
|
+
import { Card as t } from "../Card/Card.js";
|
|
4
|
+
import { Radio as e } from "../Radio/Radio.js";
|
|
5
|
+
import { radioCardVariants as l } from "./RadioCard.variants.js";
|
|
6
|
+
const w = ({
|
|
8
7
|
wrapperClassName: o,
|
|
9
|
-
theme:
|
|
10
|
-
labelWrapperClassName:
|
|
11
|
-
checked:
|
|
8
|
+
theme: i,
|
|
9
|
+
labelWrapperClassName: p,
|
|
10
|
+
checked: a,
|
|
12
11
|
...s
|
|
13
|
-
}) =>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
};
|
|
12
|
+
}) => /* @__PURE__ */ r(
|
|
13
|
+
t,
|
|
14
|
+
{
|
|
15
|
+
"data-theme": i,
|
|
16
|
+
className: m(
|
|
17
|
+
l({
|
|
18
|
+
className: o
|
|
19
|
+
})
|
|
20
|
+
),
|
|
21
|
+
wrapperClassName: "w-max",
|
|
22
|
+
isActive: a,
|
|
23
|
+
children: /* @__PURE__ */ r(
|
|
24
|
+
e,
|
|
25
|
+
{
|
|
26
|
+
wrapperClassName: m("w-full h-full p-3 gap-3", p),
|
|
27
|
+
checked: a,
|
|
28
|
+
...s
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
);
|
|
39
33
|
export {
|
|
40
|
-
|
|
34
|
+
w as RadioCard
|
|
41
35
|
};
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
kubefirst: "",
|
|
9
|
-
civo: ""
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
defaultVariants: {
|
|
13
|
-
theme: "kubefirst"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
);
|
|
1
|
+
import { c as r } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const e = r([
|
|
3
|
+
"flex",
|
|
4
|
+
"items-center",
|
|
5
|
+
"p-0",
|
|
6
|
+
"border-2"
|
|
7
|
+
]);
|
|
17
8
|
export {
|
|
18
|
-
|
|
9
|
+
e as radioCardVariants
|
|
19
10
|
};
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsx as m, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as n, useCallback as x } from "react";
|
|
3
|
+
import { cn as c } from "../../utils/index.js";
|
|
4
4
|
import { RadioCard as G } from "../RadioCard/RadioCard.js";
|
|
5
5
|
import { radioCardGroupVariants as R } from "./RadioCardGroup.variants.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
defaultChecked: c,
|
|
6
|
+
const w = ({
|
|
7
|
+
className: d,
|
|
8
|
+
defaultChecked: o,
|
|
10
9
|
direction: s,
|
|
11
|
-
name:
|
|
10
|
+
name: e,
|
|
12
11
|
options: i,
|
|
13
|
-
theme:
|
|
14
|
-
wrapperClassName:
|
|
12
|
+
theme: a,
|
|
13
|
+
wrapperClassName: p,
|
|
15
14
|
onValueChange: t
|
|
16
15
|
}) => {
|
|
17
|
-
const
|
|
16
|
+
const [f, N] = n(o), S = x(
|
|
18
17
|
(r) => {
|
|
19
|
-
|
|
18
|
+
N(r), t == null || t(r);
|
|
20
19
|
},
|
|
21
20
|
[t]
|
|
22
21
|
);
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ m(
|
|
24
23
|
"div",
|
|
25
24
|
{
|
|
26
|
-
className:
|
|
27
|
-
R({ className:
|
|
25
|
+
className: c(
|
|
26
|
+
R({ className: p, direction: s })
|
|
28
27
|
),
|
|
29
|
-
|
|
28
|
+
"data-theme": a,
|
|
29
|
+
children: /* @__PURE__ */ m(l, { children: i.map(({ value: r, ...k }) => /* @__PURE__ */ m(
|
|
30
30
|
G,
|
|
31
31
|
{
|
|
32
32
|
value: r,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...N
|
|
33
|
+
name: e,
|
|
34
|
+
className: c(d),
|
|
35
|
+
checked: f === r,
|
|
36
|
+
onChange: () => S(r),
|
|
37
|
+
...k
|
|
39
38
|
},
|
|
40
39
|
r
|
|
41
40
|
)) })
|
|
@@ -43,5 +42,5 @@ const z = ({
|
|
|
43
42
|
);
|
|
44
43
|
};
|
|
45
44
|
export {
|
|
46
|
-
|
|
45
|
+
w as RadioCardGroup
|
|
47
46
|
};
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as a } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const r = a(["flex"], {
|
|
3
3
|
variants: {
|
|
4
|
-
theme: {
|
|
5
|
-
colony: "",
|
|
6
|
-
kubefirst: "",
|
|
7
|
-
civo: ""
|
|
8
|
-
},
|
|
9
4
|
direction: {
|
|
10
5
|
row: ["flex-row", "gap-8"],
|
|
11
6
|
col: ["flex-col", "gap-4"]
|
|
12
7
|
}
|
|
13
8
|
},
|
|
14
9
|
defaultVariants: {
|
|
15
|
-
theme: "kubefirst",
|
|
16
10
|
direction: "col"
|
|
17
11
|
}
|
|
18
12
|
});
|
|
19
13
|
export {
|
|
20
|
-
|
|
14
|
+
r as radioCardGroupVariants
|
|
21
15
|
};
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { S as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { cn as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { S as x } from "../../index-Bk324h27.js";
|
|
3
|
+
import { useState as G, useCallback as R } from "react";
|
|
4
|
+
import { cn as m } from "../../utils/index.js";
|
|
5
5
|
import { Radio as b } from "../Radio/Radio.js";
|
|
6
6
|
import { radioGroupVariants as j } from "./RadioGroup.variants.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
defaultChecked: c,
|
|
7
|
+
const B = ({
|
|
8
|
+
asChild: s,
|
|
9
|
+
className: c,
|
|
10
|
+
defaultChecked: e,
|
|
12
11
|
name: i,
|
|
13
|
-
options:
|
|
14
|
-
theme:
|
|
15
|
-
wrapperClassName:
|
|
16
|
-
direction:
|
|
17
|
-
onValueChange:
|
|
12
|
+
options: d,
|
|
13
|
+
theme: p,
|
|
14
|
+
wrapperClassName: a,
|
|
15
|
+
direction: f,
|
|
16
|
+
onValueChange: o
|
|
18
17
|
}) => {
|
|
19
|
-
const
|
|
20
|
-
() =>
|
|
21
|
-
),
|
|
18
|
+
const S = s ? x : "div", [n, N] = G(
|
|
19
|
+
() => e
|
|
20
|
+
), k = R(
|
|
22
21
|
(t) => {
|
|
23
|
-
|
|
22
|
+
N(t), o == null || o(t);
|
|
24
23
|
},
|
|
25
|
-
[
|
|
24
|
+
[o]
|
|
26
25
|
);
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
26
|
+
return /* @__PURE__ */ r(
|
|
27
|
+
S,
|
|
29
28
|
{
|
|
30
|
-
className:
|
|
31
|
-
j({ className:
|
|
29
|
+
className: m(
|
|
30
|
+
j({ className: a, direction: f })
|
|
32
31
|
),
|
|
33
|
-
|
|
32
|
+
"data-theme": p,
|
|
33
|
+
children: d.map(({ value: t, ...l }) => /* @__PURE__ */ r(
|
|
34
34
|
b,
|
|
35
35
|
{
|
|
36
36
|
value: t,
|
|
37
|
-
theme: d ?? S,
|
|
38
37
|
name: i,
|
|
39
|
-
className:
|
|
40
|
-
checked:
|
|
41
|
-
onChange: () =>
|
|
42
|
-
...
|
|
38
|
+
className: m(c),
|
|
39
|
+
checked: n === t,
|
|
40
|
+
onChange: () => k(t),
|
|
41
|
+
...l
|
|
43
42
|
},
|
|
44
43
|
t
|
|
45
|
-
))
|
|
44
|
+
))
|
|
46
45
|
}
|
|
47
46
|
);
|
|
48
47
|
};
|
|
49
48
|
export {
|
|
50
|
-
|
|
49
|
+
B as RadioGroup
|
|
51
50
|
};
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import { c as o } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
2
|
+
const r = o(["flex"], {
|
|
3
3
|
variants: {
|
|
4
|
-
theme: {
|
|
5
|
-
colony: "",
|
|
6
|
-
kubefirst: "",
|
|
7
|
-
civo: ""
|
|
8
|
-
},
|
|
9
4
|
direction: {
|
|
10
5
|
row: ["flex-row", "gap-8"],
|
|
11
6
|
col: ["flex-col", "gap-4"]
|
|
12
7
|
}
|
|
13
8
|
},
|
|
14
9
|
defaultVariants: {
|
|
15
|
-
theme: "kubefirst",
|
|
16
10
|
direction: "col"
|
|
17
11
|
}
|
|
18
12
|
});
|
|
19
13
|
export {
|
|
20
|
-
|
|
14
|
+
r as radioGroupVariants
|
|
21
15
|
};
|
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { R as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { rangeOutsideVariants as
|
|
6
|
-
|
|
7
|
-
const F = b(
|
|
2
|
+
import { R as g, T as R, a as V, b as c } from "../../index-BOx5P4tS.js";
|
|
3
|
+
import { forwardRef as v, useRef as b, useState as j, useImperativeHandle as k, useEffect as w, useCallback as y } from "react";
|
|
4
|
+
import { cn as a } from "../../utils/index.js";
|
|
5
|
+
import { rangeOutsideVariants as C, trackVariants as T, thumbVariants as i, rangeVariants as S } from "./Range.variants.js";
|
|
6
|
+
const q = v(
|
|
8
7
|
({
|
|
9
|
-
label:
|
|
10
|
-
defaultValue:
|
|
11
|
-
name:
|
|
12
|
-
theme:
|
|
13
|
-
size:
|
|
8
|
+
label: n,
|
|
9
|
+
defaultValue: u = [0, 100],
|
|
10
|
+
name: m,
|
|
11
|
+
theme: o,
|
|
12
|
+
size: l,
|
|
14
13
|
showValue: f,
|
|
15
14
|
...d
|
|
16
|
-
},
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
}, h) => {
|
|
16
|
+
const t = b(null), [s, p] = j(u);
|
|
17
|
+
k(h, () => t.current, [t]), w(() => {
|
|
18
|
+
t.current && (t.current.value = `[${s.toString()}]`);
|
|
20
19
|
}, [s]);
|
|
21
|
-
const
|
|
22
|
-
(
|
|
20
|
+
const x = y(
|
|
21
|
+
(N) => p(N),
|
|
23
22
|
[]
|
|
24
23
|
);
|
|
25
|
-
return /* @__PURE__ */ r("div", { className: "w-full relative flex flex-col gap-3", children: [
|
|
24
|
+
return /* @__PURE__ */ r("div", { className: "w-full relative flex flex-col gap-3", "data-theme": o, children: [
|
|
26
25
|
/* @__PURE__ */ r(
|
|
27
26
|
"div",
|
|
28
27
|
{
|
|
29
|
-
className:
|
|
28
|
+
className: a(
|
|
30
29
|
"flex items-center",
|
|
31
|
-
|
|
30
|
+
n ? "justify-between" : "justify-end"
|
|
32
31
|
),
|
|
33
32
|
children: [
|
|
34
|
-
|
|
33
|
+
n ? /* @__PURE__ */ e("label", { children: n }) : null,
|
|
35
34
|
f ? /* @__PURE__ */ r("span", { className: "text-xs", children: [
|
|
36
35
|
s[0],
|
|
37
36
|
" - ",
|
|
@@ -40,23 +39,18 @@ const F = b(
|
|
|
40
39
|
]
|
|
41
40
|
}
|
|
42
41
|
),
|
|
43
|
-
/* @__PURE__ */ e("input", { ref:
|
|
42
|
+
/* @__PURE__ */ e("input", { ref: t, name: m, className: "hidden", type: "text" }),
|
|
44
43
|
/* @__PURE__ */ r(
|
|
45
|
-
|
|
44
|
+
g,
|
|
46
45
|
{
|
|
47
46
|
value: s,
|
|
48
|
-
className:
|
|
49
|
-
onValueChange:
|
|
47
|
+
className: a(S()),
|
|
48
|
+
onValueChange: x,
|
|
50
49
|
...d,
|
|
51
50
|
children: [
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
className: t(S({ theme: n }))
|
|
56
|
-
}
|
|
57
|
-
) }),
|
|
58
|
-
/* @__PURE__ */ e(c, { className: t(i({ theme: n, size: m })) }),
|
|
59
|
-
/* @__PURE__ */ e(c, { className: t(i({ theme: n, size: m })) })
|
|
51
|
+
/* @__PURE__ */ e(R, { className: a(T({ size: l })), children: /* @__PURE__ */ e(V, { className: a(C()) }) }),
|
|
52
|
+
/* @__PURE__ */ e(c, { className: a(i({ size: l })) }),
|
|
53
|
+
/* @__PURE__ */ e(c, { className: a(i({ size: l })) })
|
|
60
54
|
]
|
|
61
55
|
}
|
|
62
56
|
)
|
|
@@ -64,5 +58,5 @@ const F = b(
|
|
|
64
58
|
}
|
|
65
59
|
);
|
|
66
60
|
export {
|
|
67
|
-
|
|
61
|
+
q as Range
|
|
68
62
|
};
|
|
@@ -1,47 +1,22 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
colony: "",
|
|
18
|
-
civo: ""
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
theme: "kubefirst"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
), a = e(["absolute", "h-full"], {
|
|
26
|
-
variants: {
|
|
27
|
-
theme: {
|
|
28
|
-
kubefirst: ["bg-kubefirst-secondary"],
|
|
29
|
-
colony: ["bg-red-500"],
|
|
30
|
-
civo: ""
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
defaultVariants: {
|
|
34
|
-
theme: "kubefirst"
|
|
35
|
-
}
|
|
36
|
-
}), s = e(
|
|
1
|
+
import { c as r } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const a = r([
|
|
3
|
+
"relative",
|
|
4
|
+
"flex",
|
|
5
|
+
"items-center",
|
|
6
|
+
"w-full",
|
|
7
|
+
"border",
|
|
8
|
+
"border-gray-200",
|
|
9
|
+
"rounded-full",
|
|
10
|
+
"shadow-sm"
|
|
11
|
+
]), s = r([
|
|
12
|
+
"absolute",
|
|
13
|
+
"h-full",
|
|
14
|
+
"bg-kubefirst-secondary",
|
|
15
|
+
"colony:bg-red-500"
|
|
16
|
+
]), t = r(
|
|
37
17
|
["relative", "flex-grow", "bg-gray-100", "rounded-full"],
|
|
38
18
|
{
|
|
39
19
|
variants: {
|
|
40
|
-
theme: {
|
|
41
|
-
kubefirst: "",
|
|
42
|
-
colony: "",
|
|
43
|
-
civo: ""
|
|
44
|
-
},
|
|
45
20
|
size: {
|
|
46
21
|
sm: ["h-1"],
|
|
47
22
|
md: ["h-2"],
|
|
@@ -49,11 +24,10 @@ const t = e(
|
|
|
49
24
|
}
|
|
50
25
|
},
|
|
51
26
|
defaultVariants: {
|
|
52
|
-
theme: "kubefirst",
|
|
53
27
|
size: "md"
|
|
54
28
|
}
|
|
55
29
|
}
|
|
56
|
-
),
|
|
30
|
+
), o = r(
|
|
57
31
|
[
|
|
58
32
|
"block",
|
|
59
33
|
"w-5",
|
|
@@ -68,11 +42,6 @@ const t = e(
|
|
|
68
42
|
],
|
|
69
43
|
{
|
|
70
44
|
variants: {
|
|
71
|
-
theme: {
|
|
72
|
-
kubefirst: "",
|
|
73
|
-
colony: "",
|
|
74
|
-
civo: ""
|
|
75
|
-
},
|
|
76
45
|
size: {
|
|
77
46
|
sm: ["w-5", "h-5"],
|
|
78
47
|
md: ["w-6", "h-6"],
|
|
@@ -80,14 +49,13 @@ const t = e(
|
|
|
80
49
|
}
|
|
81
50
|
},
|
|
82
51
|
defaultVariants: {
|
|
83
|
-
theme: "kubefirst",
|
|
84
52
|
size: "md"
|
|
85
53
|
}
|
|
86
54
|
}
|
|
87
55
|
);
|
|
88
56
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
57
|
+
s as rangeOutsideVariants,
|
|
58
|
+
a as rangeVariants,
|
|
59
|
+
o as thumbVariants,
|
|
60
|
+
t as trackVariants
|
|
93
61
|
};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Footer as m } from "./components/Footer/Footer.js";
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Wrapper as t } from "./components/Wrapper/Wrapper.js";
|
|
3
|
+
import { Footer as a } from "./components/Footer/Footer.js";
|
|
5
4
|
import { Logo as p } from "./components/Logo/Logo.js";
|
|
6
|
-
import { Navigation as
|
|
7
|
-
import { NavigationGroup as
|
|
5
|
+
import { Navigation as m } from "./components/Navigation/Navigation.js";
|
|
6
|
+
import { NavigationGroup as n } from "./components/NavigationGroup/NavigationGroup.js";
|
|
8
7
|
import { NavigationOption as g } from "./components/NavigationOption/NavigationOption.js";
|
|
9
8
|
import { NavigationSeparator as f } from "./components/NavigationSeparator/NavigationSeparator.js";
|
|
10
|
-
const o = (
|
|
11
|
-
o.Footer =
|
|
9
|
+
const o = (r) => /* @__PURE__ */ i(t, { ...r });
|
|
10
|
+
o.Footer = a;
|
|
12
11
|
o.Logo = p;
|
|
13
|
-
o.Navigation =
|
|
14
|
-
o.NavigationGroup =
|
|
12
|
+
o.Navigation = m;
|
|
13
|
+
o.NavigationGroup = n;
|
|
15
14
|
o.NavigationOption = g;
|
|
16
15
|
o.NavigationSeparator = f;
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
a as Footer,
|
|
19
18
|
p as Logo,
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
m as Navigation,
|
|
20
|
+
n as NavigationGroup,
|
|
22
21
|
g as NavigationOption,
|
|
23
22
|
f as NavigationSeparator,
|
|
24
23
|
o as Sidebar
|