@konstructio/ui 0.0.2 → 0.0.3
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/{AlertDialogTrigger-BIbxXexQ.js → AlertDialogTrigger-lenvKoGF.js} +4 -4
- package/dist/Modal-Bg9UG35z.js +909 -0
- package/dist/{chevron-up-Cmu1oXfj.js → chevron-up-CvquEaNg.js} +1 -1
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +1 -1
- package/dist/components/AlertDialog/AlertDialog.variants.js +4 -5
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +2 -2
- package/dist/components/Autocomplete/Autocomplete.variants.js +8 -8
- package/dist/components/Autocomplete/components/List.types.d.ts +3 -3
- package/dist/components/Autocomplete/components/List.variants.d.ts +4 -4
- package/dist/components/Autocomplete/components/List.variants.js +13 -13
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +4 -4
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +4 -4
- package/dist/components/Breadcrumb/Breadcrumb.js +57 -412
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +3 -3
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +12 -12
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +23 -21
- package/dist/components/Button/Button.variants.d.ts +2 -1
- package/dist/components/Button/Button.variants.js +122 -23
- package/dist/components/Checkbox/Checkbox.js +4 -4
- package/dist/components/Checkbox/Checkbox.variants.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.variants.js +7 -16
- package/dist/components/Dropdown/Dropdown.js +5 -5
- package/dist/components/Dropdown/Dropdown.types.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.variants.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.variants.js +5 -9
- package/dist/components/Dropdown/components/List/List.d.ts +2 -2
- package/dist/components/Dropdown/components/List/List.types.d.ts +3 -3
- package/dist/components/Dropdown/components/List/List.variants.d.ts +1 -1
- package/dist/components/Dropdown/components/List/List.variants.js +3 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +1 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +3 -3
- package/dist/components/Dropdown/components/Wrapper.d.ts +2 -2
- package/dist/components/Dropdown/components/Wrapper.js +1 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +4 -1
- package/dist/components/Dropdown/contexts/dropdown.provider.js +19 -8
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +4 -4
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +4 -4
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.d.ts +1 -1
- package/dist/components/Input/Input.variants.js +3 -3
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +10 -10
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/hooks/useModal.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.js +96 -87
- package/dist/components/NumberInput/NumberInput.variants.d.ts +3 -3
- package/dist/components/NumberInput/NumberInput.variants.js +14 -21
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.variants.js +7 -12
- package/dist/components/Radio/Radio.variants.d.ts +1 -1
- package/dist/components/Radio/Radio.variants.js +4 -7
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Range/Range.variants.d.ts +4 -4
- package/dist/components/Range/Range.variants.js +18 -18
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.variants.d.ts +3 -3
- package/dist/components/Slider/Slider.variants.js +12 -12
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Switch/Switch.variants.d.ts +2 -2
- package/dist/components/Switch/Switch.variants.js +6 -6
- package/dist/components/Tag/Tag.variants.js +1 -1
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.d.ts +3 -3
- package/dist/components/TagSelect/TagSelect.variants.js +11 -14
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +1 -1
- package/dist/components/TextArea/TextArea.variants.d.ts +1 -1
- package/dist/components/TextArea/TextArea.variants.js +5 -5
- package/dist/components/Toast/Toast.js +104 -101
- package/dist/components/Toast/Toast.variants.d.ts +3 -3
- package/dist/components/Toast/Toast.variants.js +12 -12
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.variants.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.variants.js +9 -9
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/contexts/theme.context.d.ts +1 -1
- package/dist/contexts/theme.hook.js +3 -6
- package/dist/contexts/theme.provider.d.ts +2 -3
- package/dist/contexts/theme.provider.js +4 -1
- package/dist/index-BBjak_0p.js +47 -0
- package/dist/index-BNmRGtA6.js +34 -0
- package/dist/{index-DFbnnPzA.js → index-Ci9Yg4G1.js} +5 -5
- package/dist/{index-B_GWswUP.js → index-D4Q2rMby.js} +1 -1
- package/dist/{index-DQMInta3.js → index-D68N8v8R.js} +214 -209
- package/dist/index-DoOsnuB6.js +72 -0
- package/dist/{index-2K8qjK4R.js → index-O3j1K921.js} +36 -37
- package/dist/index-OOfdXoxx.js +423 -0
- package/dist/index-ffjBR8Av.js +32 -0
- package/dist/index.js +1 -1
- package/dist/package.json +38 -38
- package/dist/plugins/konstruct.js +61 -50
- package/dist/plugins/utils/colors.d.ts +127 -10
- package/dist/plugins/utils/colors.js +210 -510
- package/dist/styles.css +1 -1
- package/dist/useBreadcrumb-tyxjV-a1.js +1398 -0
- package/dist/utils/index.js +150 -162
- package/dist/x-CRBgmX1Q.js +62 -0
- package/package.json +38 -38
- package/dist/Modal-CO0_SnXD.js +0 -909
- package/dist/index-2hJuj4UN.js +0 -19069
- package/dist/index-4qm4jAkj.js +0 -92
- package/dist/index-BJ7FQg17.js +0 -35
- package/dist/index-BqM_XclQ.js +0 -94
- package/dist/index-BwYCDOHZ.js +0 -44
- package/dist/index-CCavb-1K.js +0 -57
- package/dist/useBreadcrumb-BSMnc4Fu.js +0 -341
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as e } from "../../../../index-BNmRGtA6.js";
|
|
2
|
+
const r = e(
|
|
3
3
|
[
|
|
4
4
|
"bg-metal-1000",
|
|
5
5
|
"bg-white",
|
|
@@ -19,22 +19,22 @@ const o = t(
|
|
|
19
19
|
variants: {
|
|
20
20
|
theme: {
|
|
21
21
|
colony: ["shadow-red-400"],
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
kubefirst: ["shadow-kubefirst-primary"],
|
|
23
|
+
civo: ""
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
defaultVariants: {
|
|
27
27
|
theme: "kubefirst"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
),
|
|
30
|
+
), o = e(
|
|
31
31
|
["absolute", "right-1.5", "top-1.5", "text-inherit"],
|
|
32
32
|
{
|
|
33
33
|
variants: {
|
|
34
34
|
theme: {
|
|
35
|
-
kubefirst: ["text-kubefirst-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
kubefirst: ["text-kubefirst-primary"],
|
|
36
|
+
colony: ["text-red-400"],
|
|
37
|
+
civo: ""
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
defaultVariants: {
|
|
@@ -43,6 +43,6 @@ const o = t(
|
|
|
43
43
|
}
|
|
44
44
|
);
|
|
45
45
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
o as buttonCloseVariants,
|
|
47
|
+
r as modalVariants
|
|
48
48
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Body as e } from "./Body/Body.js";
|
|
2
2
|
import { Footer as t } from "./Footer/Footer.js";
|
|
3
3
|
import { Header as m } from "./Header/Header.js";
|
|
4
|
-
import { W as a } from "../../../Modal-
|
|
4
|
+
import { W as a } from "../../../Modal-Bg9UG35z.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Body,
|
|
7
7
|
t as Footer,
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import p, { forwardRef as
|
|
1
|
+
import { jsxs as y, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import p, { forwardRef as v, useId as _, useState as E, useCallback as w } from "react";
|
|
3
|
+
import { R as x } from "../../index-ffjBR8Av.js";
|
|
3
4
|
import "../../contexts/theme.context.js";
|
|
4
|
-
import { useTheme as
|
|
5
|
+
import { useTheme as T } from "../../contexts/theme.hook.js";
|
|
5
6
|
import "../../js.cookie-OLEfuq_g.js";
|
|
6
|
-
import { labelVariants as
|
|
7
|
-
import { P as a } from "../../index-
|
|
8
|
-
function
|
|
9
|
-
return
|
|
10
|
-
for (var
|
|
11
|
-
var n = arguments[
|
|
12
|
-
for (var
|
|
13
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
7
|
+
import { labelVariants as $, buttonVariants as j, numberInputVariants as L } from "./NumberInput.variants.js";
|
|
8
|
+
import { P as a } from "../../index-D68N8v8R.js";
|
|
9
|
+
function h() {
|
|
10
|
+
return h = Object.assign || function(e) {
|
|
11
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
12
|
+
var n = arguments[o];
|
|
13
|
+
for (var t in n)
|
|
14
|
+
Object.prototype.hasOwnProperty.call(n, t) && (e[t] = n[t]);
|
|
14
15
|
}
|
|
15
|
-
return
|
|
16
|
-
},
|
|
16
|
+
return e;
|
|
17
|
+
}, h.apply(this, arguments);
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
var n =
|
|
19
|
+
function W(e, o) {
|
|
20
|
+
if (e == null) return {};
|
|
21
|
+
var n = V(e, o), t, r;
|
|
21
22
|
if (Object.getOwnPropertySymbols) {
|
|
22
|
-
var
|
|
23
|
-
for (r = 0; r <
|
|
24
|
-
|
|
23
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
24
|
+
for (r = 0; r < i.length; r++)
|
|
25
|
+
t = i[r], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (n[t] = e[t]);
|
|
25
26
|
}
|
|
26
27
|
return n;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
-
if (
|
|
30
|
-
var n = {},
|
|
31
|
-
for (
|
|
32
|
-
r =
|
|
29
|
+
function V(e, o) {
|
|
30
|
+
if (e == null) return {};
|
|
31
|
+
var n = {}, t = Object.keys(e), r, i;
|
|
32
|
+
for (i = 0; i < t.length; i++)
|
|
33
|
+
r = t[i], !(o.indexOf(r) >= 0) && (n[r] = e[r]);
|
|
33
34
|
return n;
|
|
34
35
|
}
|
|
35
|
-
var
|
|
36
|
-
var n =
|
|
37
|
-
return /* @__PURE__ */ p.createElement("svg",
|
|
38
|
-
ref:
|
|
36
|
+
var d = v(function(e, o) {
|
|
37
|
+
var n = e.color, t = n === void 0 ? "currentColor" : n, r = e.size, i = r === void 0 ? 24 : r, f = W(e, ["color", "size"]);
|
|
38
|
+
return /* @__PURE__ */ p.createElement("svg", h({
|
|
39
|
+
ref: o,
|
|
39
40
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
-
width:
|
|
41
|
-
height:
|
|
41
|
+
width: i,
|
|
42
|
+
height: i,
|
|
42
43
|
viewBox: "0 0 24 24",
|
|
43
44
|
fill: "none",
|
|
44
|
-
stroke:
|
|
45
|
+
stroke: t,
|
|
45
46
|
strokeWidth: "2",
|
|
46
47
|
strokeLinecap: "round",
|
|
47
48
|
strokeLinejoin: "round"
|
|
@@ -52,48 +53,48 @@ var h = b(function(t, i) {
|
|
|
52
53
|
y2: "12"
|
|
53
54
|
}));
|
|
54
55
|
});
|
|
55
|
-
|
|
56
|
+
d.propTypes = {
|
|
56
57
|
color: a.string,
|
|
57
58
|
size: a.oneOfType([a.string, a.number])
|
|
58
59
|
};
|
|
59
|
-
|
|
60
|
-
function
|
|
61
|
-
return
|
|
62
|
-
for (var
|
|
63
|
-
var n = arguments[
|
|
64
|
-
for (var
|
|
65
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
60
|
+
d.displayName = "Minus";
|
|
61
|
+
function b() {
|
|
62
|
+
return b = Object.assign || function(e) {
|
|
63
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
64
|
+
var n = arguments[o];
|
|
65
|
+
for (var t in n)
|
|
66
|
+
Object.prototype.hasOwnProperty.call(n, t) && (e[t] = n[t]);
|
|
66
67
|
}
|
|
67
|
-
return
|
|
68
|
-
},
|
|
68
|
+
return e;
|
|
69
|
+
}, b.apply(this, arguments);
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
72
|
-
var n =
|
|
71
|
+
function M(e, o) {
|
|
72
|
+
if (e == null) return {};
|
|
73
|
+
var n = R(e, o), t, r;
|
|
73
74
|
if (Object.getOwnPropertySymbols) {
|
|
74
|
-
var
|
|
75
|
-
for (r = 0; r <
|
|
76
|
-
|
|
75
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
76
|
+
for (r = 0; r < i.length; r++)
|
|
77
|
+
t = i[r], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (n[t] = e[t]);
|
|
77
78
|
}
|
|
78
79
|
return n;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
if (
|
|
82
|
-
var n = {},
|
|
83
|
-
for (
|
|
84
|
-
r =
|
|
81
|
+
function R(e, o) {
|
|
82
|
+
if (e == null) return {};
|
|
83
|
+
var n = {}, t = Object.keys(e), r, i;
|
|
84
|
+
for (i = 0; i < t.length; i++)
|
|
85
|
+
r = t[i], !(o.indexOf(r) >= 0) && (n[r] = e[r]);
|
|
85
86
|
return n;
|
|
86
87
|
}
|
|
87
|
-
var
|
|
88
|
-
var n =
|
|
89
|
-
return /* @__PURE__ */ p.createElement("svg",
|
|
90
|
-
ref:
|
|
88
|
+
var O = v(function(e, o) {
|
|
89
|
+
var n = e.color, t = n === void 0 ? "currentColor" : n, r = e.size, i = r === void 0 ? 24 : r, f = M(e, ["color", "size"]);
|
|
90
|
+
return /* @__PURE__ */ p.createElement("svg", b({
|
|
91
|
+
ref: o,
|
|
91
92
|
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
-
width:
|
|
93
|
-
height:
|
|
93
|
+
width: i,
|
|
94
|
+
height: i,
|
|
94
95
|
viewBox: "0 0 24 24",
|
|
95
96
|
fill: "none",
|
|
96
|
-
stroke:
|
|
97
|
+
stroke: t,
|
|
97
98
|
strokeWidth: "2",
|
|
98
99
|
strokeLinecap: "round",
|
|
99
100
|
strokeLinejoin: "round"
|
|
@@ -109,67 +110,75 @@ var d = b(function(t, i) {
|
|
|
109
110
|
y2: "12"
|
|
110
111
|
}));
|
|
111
112
|
});
|
|
112
|
-
|
|
113
|
+
O.propTypes = {
|
|
113
114
|
color: a.string,
|
|
114
115
|
size: a.oneOfType([a.string, a.number])
|
|
115
116
|
};
|
|
116
|
-
|
|
117
|
-
const
|
|
117
|
+
O.displayName = "Plus";
|
|
118
|
+
const J = v(
|
|
118
119
|
({
|
|
119
|
-
className:
|
|
120
|
-
init:
|
|
120
|
+
className: e,
|
|
121
|
+
init: o,
|
|
121
122
|
label: n,
|
|
122
|
-
max:
|
|
123
|
+
max: t = -1 / 0,
|
|
123
124
|
min: r = 1 / 0,
|
|
124
|
-
name:
|
|
125
|
+
name: i,
|
|
125
126
|
theme: f,
|
|
126
127
|
onChange: s
|
|
127
|
-
},
|
|
128
|
-
const { theme:
|
|
128
|
+
}, P) => {
|
|
129
|
+
const { theme: k } = T(), m = f ?? k, I = _(), [c, g] = E(() => o || 0), N = w(() => {
|
|
129
130
|
let l = 0;
|
|
130
|
-
r === 1 / 0 ? l =
|
|
131
|
-
}, [
|
|
131
|
+
r === 1 / 0 ? l = c - 1 : l = Math.max(r, c - 1), g(l), s == null || s(l);
|
|
132
|
+
}, [c, r, s]), z = w(() => {
|
|
132
133
|
let l = 0;
|
|
133
|
-
|
|
134
|
-
}, [
|
|
135
|
-
return /* @__PURE__ */
|
|
136
|
-
n ? /* @__PURE__ */
|
|
134
|
+
t === -1 / 0 ? l = c + 1 : l = Math.min(t, c + 1), g(l), s == null || s(l);
|
|
135
|
+
}, [c, t, s]);
|
|
136
|
+
return /* @__PURE__ */ y("div", { className: "flex flex-col gap-1", children: [
|
|
137
|
+
n ? /* @__PURE__ */ u(
|
|
137
138
|
"label",
|
|
138
139
|
{
|
|
139
|
-
htmlFor:
|
|
140
|
-
className:
|
|
140
|
+
htmlFor: i ?? I,
|
|
141
|
+
className: $({
|
|
141
142
|
theme: m
|
|
142
143
|
}),
|
|
143
144
|
children: n
|
|
144
145
|
}
|
|
145
146
|
) : null,
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ y("div", { className: "flex items-center", children: [
|
|
148
|
+
/* @__PURE__ */ y(
|
|
148
149
|
"button",
|
|
149
150
|
{
|
|
150
151
|
type: "button",
|
|
151
152
|
onClick: N,
|
|
152
153
|
className: j({ theme: m, button: "rigth" }),
|
|
153
|
-
children:
|
|
154
|
+
children: [
|
|
155
|
+
/* @__PURE__ */ u(d, { className: "w-4 h-4" }),
|
|
156
|
+
/* @__PURE__ */ u(x, { children: "Decrement" })
|
|
157
|
+
]
|
|
154
158
|
}
|
|
155
159
|
),
|
|
156
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ u(
|
|
157
161
|
"input",
|
|
158
162
|
{
|
|
159
|
-
ref:
|
|
163
|
+
ref: P,
|
|
160
164
|
type: "number",
|
|
161
|
-
value:
|
|
162
|
-
|
|
163
|
-
|
|
165
|
+
value: c,
|
|
166
|
+
name: i,
|
|
167
|
+
className: L({ className: e, theme: m }),
|
|
168
|
+
readOnly: !0,
|
|
169
|
+
role: "textbox"
|
|
164
170
|
}
|
|
165
171
|
),
|
|
166
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ y(
|
|
167
173
|
"button",
|
|
168
174
|
{
|
|
169
175
|
type: "button",
|
|
170
176
|
onClick: z,
|
|
171
177
|
className: j({ theme: m, button: "left" }),
|
|
172
|
-
children:
|
|
178
|
+
children: [
|
|
179
|
+
/* @__PURE__ */ u(O, { className: "w-4 h-4" }),
|
|
180
|
+
/* @__PURE__ */ u(x, { children: "Increment" })
|
|
181
|
+
]
|
|
173
182
|
}
|
|
174
183
|
)
|
|
175
184
|
] })
|
|
@@ -177,5 +186,5 @@ const G = b(
|
|
|
177
186
|
}
|
|
178
187
|
);
|
|
179
188
|
export {
|
|
180
|
-
|
|
189
|
+
J as NumberInput
|
|
181
190
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const numberInputVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "
|
|
2
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
4
|
export declare const buttonVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
6
|
button?: "left" | "rigth" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export declare const labelVariants: (props?: ({
|
|
9
9
|
variant?: "default" | null | undefined;
|
|
10
|
-
theme?: "kubefirst" | "
|
|
10
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e } from "../../index-
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const t = e(
|
|
3
3
|
[
|
|
4
4
|
"[&::-webkit-inner-spin-button]:appearance-none",
|
|
@@ -16,35 +16,28 @@ const t = e(
|
|
|
16
16
|
variants: {
|
|
17
17
|
theme: {
|
|
18
18
|
colony: ["border-red-700", "text-red-700"],
|
|
19
|
-
kubefirst: [
|
|
20
|
-
|
|
21
|
-
"text-kubefirst-purple-light"
|
|
22
|
-
],
|
|
23
|
-
konstruct: ["border-orange-500", "text-orange-500"]
|
|
19
|
+
kubefirst: ["border-kubefirst-primary", "text-kubefirst-primary"],
|
|
20
|
+
civo: ""
|
|
24
21
|
}
|
|
25
22
|
},
|
|
26
23
|
defaultVariants: {
|
|
27
24
|
theme: "kubefirst"
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
|
-
),
|
|
27
|
+
), a = e(
|
|
31
28
|
["p-2", "items-center", "justify-center", "border"],
|
|
32
29
|
{
|
|
33
30
|
variants: {
|
|
34
31
|
theme: {
|
|
35
32
|
colony: ["border-red-700", "text-red-700", "hover:bg-red-50"],
|
|
36
33
|
kubefirst: [
|
|
37
|
-
"border-kubefirst-
|
|
38
|
-
"text-kubefirst-
|
|
39
|
-
"hover:text-kubefirst-
|
|
40
|
-
"hover:border-kubefirst-
|
|
34
|
+
"border-kubefirst-primary",
|
|
35
|
+
"text-kubefirst-primary",
|
|
36
|
+
"hover:text-kubefirst-secondary",
|
|
37
|
+
"hover:border-kubefirst-secondary",
|
|
41
38
|
"hover:bg-purple-100"
|
|
42
39
|
],
|
|
43
|
-
|
|
44
|
-
"border-orange-500",
|
|
45
|
-
"text-orange-500",
|
|
46
|
-
"hover:bg-orange-50"
|
|
47
|
-
]
|
|
40
|
+
civo: ""
|
|
48
41
|
},
|
|
49
42
|
button: {
|
|
50
43
|
left: ["rounded-e-sm"],
|
|
@@ -55,15 +48,15 @@ const t = e(
|
|
|
55
48
|
theme: "kubefirst"
|
|
56
49
|
}
|
|
57
50
|
}
|
|
58
|
-
),
|
|
51
|
+
), n = e(["pl-1", "text-base", "cursor-pointer"], {
|
|
59
52
|
variants: {
|
|
60
53
|
variant: {
|
|
61
54
|
default: ""
|
|
62
55
|
},
|
|
63
56
|
theme: {
|
|
64
57
|
kubefirst: "",
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
colony: "",
|
|
59
|
+
civo: ""
|
|
67
60
|
}
|
|
68
61
|
},
|
|
69
62
|
defaultVariants: {
|
|
@@ -72,7 +65,7 @@ const t = e(
|
|
|
72
65
|
}
|
|
73
66
|
});
|
|
74
67
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
a as buttonVariants,
|
|
69
|
+
n as labelVariants,
|
|
77
70
|
t as numberInputVariants
|
|
78
71
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const progressBarVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "
|
|
2
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
4
|
export declare const progressBarProgress: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
6
|
status?: "progress" | "error" | "success" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as s } from "../../index-
|
|
2
|
-
const
|
|
1
|
+
import { c as s } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const t = s(
|
|
3
3
|
["h-2", "rounded-full", "overflow-hidden", "mt-4", "bg-zinc-200"],
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
6
|
theme: {
|
|
7
|
-
konstruct: "",
|
|
8
7
|
kubefirst: "",
|
|
9
|
-
colony: ""
|
|
8
|
+
colony: "",
|
|
9
|
+
civo: ""
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
defaultVariants: {
|
|
@@ -18,9 +18,9 @@ const e = s(
|
|
|
18
18
|
{
|
|
19
19
|
variants: {
|
|
20
20
|
theme: {
|
|
21
|
-
konstruct: "",
|
|
22
21
|
kubefirst: "",
|
|
23
|
-
colony: ""
|
|
22
|
+
colony: "",
|
|
23
|
+
civo: ""
|
|
24
24
|
},
|
|
25
25
|
status: {
|
|
26
26
|
success: "",
|
|
@@ -39,11 +39,6 @@ const e = s(
|
|
|
39
39
|
theme: "kubefirst",
|
|
40
40
|
class: ["bg-[#81E2B4]"]
|
|
41
41
|
},
|
|
42
|
-
{
|
|
43
|
-
status: "progress",
|
|
44
|
-
theme: "konstruct",
|
|
45
|
-
class: ["bg-kubefirst-gradient"]
|
|
46
|
-
},
|
|
47
42
|
{
|
|
48
43
|
status: "progress",
|
|
49
44
|
theme: "colony",
|
|
@@ -58,5 +53,5 @@ const e = s(
|
|
|
58
53
|
);
|
|
59
54
|
export {
|
|
60
55
|
r as progressBarProgress,
|
|
61
|
-
|
|
56
|
+
t as progressBarVariants
|
|
62
57
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e } from "../../index-
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
2
|
const o = e(
|
|
3
3
|
[
|
|
4
4
|
"border-2",
|
|
@@ -30,13 +30,10 @@ const o = e(
|
|
|
30
30
|
"peer-checked:before:bg-red-700"
|
|
31
31
|
],
|
|
32
32
|
kubefirst: [
|
|
33
|
-
"peer-checked:border-kubefirst-
|
|
34
|
-
"peer-checked:before:bg-kubefirst-
|
|
33
|
+
"peer-checked:border-kubefirst-primary",
|
|
34
|
+
"peer-checked:before:bg-kubefirst-primary"
|
|
35
35
|
],
|
|
36
|
-
|
|
37
|
-
"peer-checked:border-orange-600",
|
|
38
|
-
"peer-checked:before:bg-orange-600"
|
|
39
|
-
]
|
|
36
|
+
civo: ""
|
|
40
37
|
}
|
|
41
38
|
},
|
|
42
39
|
defaultVariants: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m, Fragment as n } from "react/jsx-runtime";
|
|
2
2
|
import { useState as k, useCallback as l } from "react";
|
|
3
|
-
import { S as R } from "../../index-
|
|
3
|
+
import { S as R } from "../../index-DoOsnuB6.js";
|
|
4
4
|
import "../../contexts/theme.context.js";
|
|
5
5
|
import { useTheme as T } from "../../contexts/theme.hook.js";
|
|
6
6
|
import "../../js.cookie-OLEfuq_g.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as R, useRef as V, useState as v, useImperativeHandle as T, useEffect as b, useCallback as j } from "react";
|
|
3
|
-
import { R as k, T as w, a as y, b as l } from "../../index-
|
|
3
|
+
import { R as k, T as w, a as y, b as l } from "../../index-Ci9Yg4G1.js";
|
|
4
4
|
import { cn as C } from "../../utils/index.js";
|
|
5
5
|
import "../../contexts/theme.context.js";
|
|
6
6
|
import { useTheme as S } from "../../contexts/theme.hook.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const rangeVariants: (props?: ({
|
|
2
|
-
theme?: "kubefirst" | "
|
|
2
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
4
|
export declare const rangeOutsideVariants: (props?: ({
|
|
5
|
-
theme?: "kubefirst" | "
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export declare const trackVariants: (props?: ({
|
|
8
|
-
theme?: "kubefirst" | "
|
|
8
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
9
9
|
size?: "sm" | "lg" | "md" | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
11
|
export declare const thumbVariants: (props?: ({
|
|
12
|
-
theme?: "kubefirst" | "
|
|
12
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
13
13
|
size?: "sm" | "lg" | "md" | null | undefined;
|
|
14
14
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "../../index-
|
|
2
|
-
const
|
|
1
|
+
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const t = e(
|
|
3
3
|
[
|
|
4
4
|
"relative",
|
|
5
5
|
"flex",
|
|
@@ -14,33 +14,33 @@ const r = e(
|
|
|
14
14
|
variants: {
|
|
15
15
|
theme: {
|
|
16
16
|
kubefirst: "",
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
colony: "",
|
|
18
|
+
civo: ""
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
defaultVariants: {
|
|
22
22
|
theme: "kubefirst"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
),
|
|
25
|
+
), a = e(["absolute", "h-full"], {
|
|
26
26
|
variants: {
|
|
27
27
|
theme: {
|
|
28
|
-
kubefirst: ["bg-kubefirst-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
kubefirst: ["bg-kubefirst-secondary"],
|
|
29
|
+
colony: ["bg-red-500"],
|
|
30
|
+
civo: ""
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
defaultVariants: {
|
|
34
34
|
theme: "kubefirst"
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), s = e(
|
|
37
37
|
["relative", "flex-grow", "bg-gray-100", "rounded-full"],
|
|
38
38
|
{
|
|
39
39
|
variants: {
|
|
40
40
|
theme: {
|
|
41
41
|
kubefirst: "",
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
colony: "",
|
|
43
|
+
civo: ""
|
|
44
44
|
},
|
|
45
45
|
size: {
|
|
46
46
|
sm: ["h-1"],
|
|
@@ -53,7 +53,7 @@ const r = e(
|
|
|
53
53
|
size: "md"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
),
|
|
56
|
+
), i = e(
|
|
57
57
|
[
|
|
58
58
|
"block",
|
|
59
59
|
"w-5",
|
|
@@ -70,8 +70,8 @@ const r = e(
|
|
|
70
70
|
variants: {
|
|
71
71
|
theme: {
|
|
72
72
|
kubefirst: "",
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
colony: "",
|
|
74
|
+
civo: ""
|
|
75
75
|
},
|
|
76
76
|
size: {
|
|
77
77
|
sm: ["w-5", "h-5"],
|
|
@@ -86,8 +86,8 @@ const r = e(
|
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
a as rangeOutsideVariants,
|
|
90
|
+
t as rangeVariants,
|
|
91
|
+
i as thumbVariants,
|
|
92
|
+
s as trackVariants
|
|
93
93
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N, useRef as v, useState as T, useImperativeHandle as V, useEffect as b, useCallback as R } from "react";
|
|
3
|
-
import { R as g, T as j, b as k } from "../../index-
|
|
3
|
+
import { R as g, T as j, b as k } from "../../index-Ci9Yg4G1.js";
|
|
4
4
|
import "../../contexts/theme.context.js";
|
|
5
5
|
import { useTheme as w } from "../../contexts/theme.hook.js";
|
|
6
6
|
import "../../js.cookie-OLEfuq_g.js";
|