@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,16 +1,15 @@
|
|
|
1
1
|
import { jsxs as S, jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import j, { forwardRef as _, useId as A, useCallback as H } from "react";
|
|
4
|
-
import { u as K } from "../../index-
|
|
5
|
-
import { a as W, c as $, b as I } from "../../index-
|
|
6
|
-
import { u as q, a as F } from "../../index-
|
|
7
|
-
import { P as V } from "../../index-
|
|
8
|
-
import { P as
|
|
4
|
+
import { u as K } from "../../index-Bk324h27.js";
|
|
5
|
+
import { a as W, c as $, b as I } from "../../index-bYyfdsls.js";
|
|
6
|
+
import { u as q, a as F } from "../../index-Bry5AFQ2.js";
|
|
7
|
+
import { P as V } from "../../index-G_6jG4Qc.js";
|
|
8
|
+
import { P as z } from "../../index-g-TFwd6Y.js";
|
|
9
9
|
import { cn as N } from "../../utils/index.js";
|
|
10
10
|
import { checkboxVariants as X, labelVariants as G } from "./Checkbox.variants.js";
|
|
11
11
|
import { useToggle as J } from "../../hooks/useToggle.js";
|
|
12
12
|
import { P } from "../../index-C5psggHV.js";
|
|
13
|
-
import { useTheme as Q } from "../../contexts/theme.hook.js";
|
|
14
13
|
function E() {
|
|
15
14
|
return E = Object.assign || function(e) {
|
|
16
15
|
for (var s = 1; s < arguments.length; s++) {
|
|
@@ -21,9 +20,9 @@ function E() {
|
|
|
21
20
|
return e;
|
|
22
21
|
}, E.apply(this, arguments);
|
|
23
22
|
}
|
|
24
|
-
function
|
|
23
|
+
function Q(e, s) {
|
|
25
24
|
if (e == null) return {};
|
|
26
|
-
var t =
|
|
25
|
+
var t = U(e, s), o, n;
|
|
27
26
|
if (Object.getOwnPropertySymbols) {
|
|
28
27
|
var r = Object.getOwnPropertySymbols(e);
|
|
29
28
|
for (n = 0; n < r.length; n++)
|
|
@@ -31,7 +30,7 @@ function U(e, s) {
|
|
|
31
30
|
}
|
|
32
31
|
return t;
|
|
33
32
|
}
|
|
34
|
-
function
|
|
33
|
+
function U(e, s) {
|
|
35
34
|
if (e == null) return {};
|
|
36
35
|
var t = {}, o = Object.keys(e), n, r;
|
|
37
36
|
for (r = 0; r < o.length; r++)
|
|
@@ -39,7 +38,7 @@ function Y(e, s) {
|
|
|
39
38
|
return t;
|
|
40
39
|
}
|
|
41
40
|
var O = _(function(e, s) {
|
|
42
|
-
var t = e.color, o = t === void 0 ? "currentColor" : t, n = e.size, r = n === void 0 ? 24 : n, l =
|
|
41
|
+
var t = e.color, o = t === void 0 ? "currentColor" : t, n = e.size, r = n === void 0 ? 24 : n, l = Q(e, ["color", "size"]);
|
|
43
42
|
return /* @__PURE__ */ j.createElement("svg", E({
|
|
44
43
|
ref: s,
|
|
45
44
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -60,7 +59,7 @@ O.propTypes = {
|
|
|
60
59
|
size: P.oneOfType([P.string, P.number])
|
|
61
60
|
};
|
|
62
61
|
O.displayName = "Check";
|
|
63
|
-
var R = "Checkbox", [
|
|
62
|
+
var R = "Checkbox", [Y, he] = $(R), [Z, ee] = Y(R), L = u.forwardRef(
|
|
64
63
|
(e, s) => {
|
|
65
64
|
const {
|
|
66
65
|
__scopeCheckbox: t,
|
|
@@ -68,68 +67,68 @@ var R = "Checkbox", [Z, ke] = $(R), [ee, te] = Z(R), z = u.forwardRef(
|
|
|
68
67
|
checked: n,
|
|
69
68
|
defaultChecked: r,
|
|
70
69
|
required: l,
|
|
71
|
-
disabled:
|
|
70
|
+
disabled: c,
|
|
72
71
|
value: b = "on",
|
|
73
72
|
onCheckedChange: C,
|
|
74
73
|
form: d,
|
|
75
74
|
...p
|
|
76
|
-
} = e, [i,
|
|
75
|
+
} = e, [i, h] = u.useState(null), k = K(s, (a) => h(a)), y = u.useRef(!1), g = i ? d || !!i.closest("form") : !0, [v = !1, w] = W({
|
|
77
76
|
prop: n,
|
|
78
77
|
defaultProp: r,
|
|
79
78
|
onChange: C
|
|
80
|
-
}), M = u.useRef(
|
|
79
|
+
}), M = u.useRef(v);
|
|
81
80
|
return u.useEffect(() => {
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
const
|
|
85
|
-
return
|
|
81
|
+
const a = i == null ? void 0 : i.form;
|
|
82
|
+
if (a) {
|
|
83
|
+
const x = () => w(M.current);
|
|
84
|
+
return a.addEventListener("reset", x), () => a.removeEventListener("reset", x);
|
|
86
85
|
}
|
|
87
|
-
}, [i, w]), /* @__PURE__ */ S(
|
|
86
|
+
}, [i, w]), /* @__PURE__ */ S(Z, { scope: t, state: v, disabled: c, children: [
|
|
88
87
|
/* @__PURE__ */ f(
|
|
89
|
-
|
|
88
|
+
z.button,
|
|
90
89
|
{
|
|
91
90
|
type: "button",
|
|
92
91
|
role: "checkbox",
|
|
93
|
-
"aria-checked":
|
|
92
|
+
"aria-checked": m(v) ? "mixed" : v,
|
|
94
93
|
"aria-required": l,
|
|
95
|
-
"data-state": B(
|
|
96
|
-
"data-disabled":
|
|
97
|
-
disabled:
|
|
94
|
+
"data-state": B(v),
|
|
95
|
+
"data-disabled": c ? "" : void 0,
|
|
96
|
+
disabled: c,
|
|
98
97
|
value: b,
|
|
99
98
|
...p,
|
|
100
|
-
ref:
|
|
101
|
-
onKeyDown: I(e.onKeyDown, (
|
|
102
|
-
|
|
99
|
+
ref: k,
|
|
100
|
+
onKeyDown: I(e.onKeyDown, (a) => {
|
|
101
|
+
a.key === "Enter" && a.preventDefault();
|
|
103
102
|
}),
|
|
104
|
-
onClick: I(e.onClick, (
|
|
105
|
-
w((
|
|
103
|
+
onClick: I(e.onClick, (a) => {
|
|
104
|
+
w((x) => m(x) ? !0 : !x), g && (y.current = a.isPropagationStopped(), y.current || a.stopPropagation());
|
|
106
105
|
})
|
|
107
106
|
}
|
|
108
107
|
),
|
|
109
108
|
g && /* @__PURE__ */ f(
|
|
110
|
-
|
|
109
|
+
te,
|
|
111
110
|
{
|
|
112
111
|
control: i,
|
|
113
|
-
bubbles: !
|
|
112
|
+
bubbles: !y.current,
|
|
114
113
|
name: o,
|
|
115
114
|
value: b,
|
|
116
|
-
checked:
|
|
115
|
+
checked: v,
|
|
117
116
|
required: l,
|
|
118
|
-
disabled:
|
|
117
|
+
disabled: c,
|
|
119
118
|
form: d,
|
|
120
119
|
style: { transform: "translateX(-100%)" },
|
|
121
|
-
defaultChecked:
|
|
120
|
+
defaultChecked: m(r) ? !1 : r
|
|
122
121
|
}
|
|
123
122
|
)
|
|
124
123
|
] });
|
|
125
124
|
}
|
|
126
125
|
);
|
|
127
|
-
|
|
128
|
-
var
|
|
126
|
+
L.displayName = R;
|
|
127
|
+
var T = "CheckboxIndicator", D = u.forwardRef(
|
|
129
128
|
(e, s) => {
|
|
130
|
-
const { __scopeCheckbox: t, forceMount: o, ...n } = e, r =
|
|
131
|
-
return /* @__PURE__ */ f(V, { present: o ||
|
|
132
|
-
|
|
129
|
+
const { __scopeCheckbox: t, forceMount: o, ...n } = e, r = ee(T, t);
|
|
130
|
+
return /* @__PURE__ */ f(V, { present: o || m(r.state) || r.state === !0, children: /* @__PURE__ */ f(
|
|
131
|
+
z.span,
|
|
133
132
|
{
|
|
134
133
|
"data-state": B(r.state),
|
|
135
134
|
"data-disabled": r.disabled ? "" : void 0,
|
|
@@ -140,17 +139,17 @@ var L = "CheckboxIndicator", D = u.forwardRef(
|
|
|
140
139
|
) });
|
|
141
140
|
}
|
|
142
141
|
);
|
|
143
|
-
D.displayName =
|
|
144
|
-
var
|
|
145
|
-
const { control: s, checked: t, bubbles: o = !0, defaultChecked: n, ...r } = e, l = u.useRef(null),
|
|
142
|
+
D.displayName = T;
|
|
143
|
+
var te = (e) => {
|
|
144
|
+
const { control: s, checked: t, bubbles: o = !0, defaultChecked: n, ...r } = e, l = u.useRef(null), c = q(t), b = F(s);
|
|
146
145
|
u.useEffect(() => {
|
|
147
|
-
const d = l.current, p = window.HTMLInputElement.prototype,
|
|
148
|
-
if (
|
|
149
|
-
const
|
|
150
|
-
d.indeterminate =
|
|
146
|
+
const d = l.current, p = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(p, "checked").set;
|
|
147
|
+
if (c !== t && h) {
|
|
148
|
+
const k = new Event("click", { bubbles: o });
|
|
149
|
+
d.indeterminate = m(t), h.call(d, m(t) ? !1 : t), d.dispatchEvent(k);
|
|
151
150
|
}
|
|
152
|
-
}, [
|
|
153
|
-
const C = u.useRef(
|
|
151
|
+
}, [c, t, o]);
|
|
152
|
+
const C = u.useRef(m(t) ? !1 : t);
|
|
154
153
|
return /* @__PURE__ */ f(
|
|
155
154
|
"input",
|
|
156
155
|
{
|
|
@@ -171,14 +170,14 @@ var re = (e) => {
|
|
|
171
170
|
}
|
|
172
171
|
);
|
|
173
172
|
};
|
|
174
|
-
function
|
|
173
|
+
function m(e) {
|
|
175
174
|
return e === "indeterminate";
|
|
176
175
|
}
|
|
177
176
|
function B(e) {
|
|
178
|
-
return
|
|
177
|
+
return m(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
179
178
|
}
|
|
180
|
-
var
|
|
181
|
-
const
|
|
179
|
+
var re = L, oe = D;
|
|
180
|
+
const be = _(
|
|
182
181
|
({
|
|
183
182
|
ariaLabelledBy: e,
|
|
184
183
|
className: s,
|
|
@@ -187,46 +186,44 @@ const ve = _(
|
|
|
187
186
|
id: n,
|
|
188
187
|
label: r,
|
|
189
188
|
labelClassName: l,
|
|
190
|
-
name:
|
|
189
|
+
name: c,
|
|
191
190
|
theme: b,
|
|
192
191
|
title: C,
|
|
193
192
|
variant: d,
|
|
194
193
|
onChange: p
|
|
195
194
|
}, i) => {
|
|
196
|
-
const [
|
|
197
|
-
|
|
198
|
-
}, [p,
|
|
199
|
-
return /* @__PURE__ */ S("div", { className: "flex items-center gap-2", children: [
|
|
195
|
+
const [h, k] = J(t), y = A(), g = H(() => {
|
|
196
|
+
k(), p == null || p();
|
|
197
|
+
}, [p, k]);
|
|
198
|
+
return /* @__PURE__ */ S("div", { className: "flex items-center gap-2", "data-theme": b, children: [
|
|
200
199
|
/* @__PURE__ */ f(
|
|
201
|
-
|
|
200
|
+
re,
|
|
202
201
|
{
|
|
203
|
-
id: n ??
|
|
204
|
-
checked:
|
|
202
|
+
id: n ?? y,
|
|
203
|
+
checked: h,
|
|
205
204
|
ref: i,
|
|
206
|
-
name:
|
|
205
|
+
name: c,
|
|
207
206
|
disabled: o,
|
|
208
207
|
"aria-labelledby": e,
|
|
209
208
|
title: C,
|
|
210
209
|
className: N(
|
|
211
210
|
X({
|
|
212
211
|
className: s,
|
|
213
|
-
theme: b ?? g,
|
|
214
212
|
variant: d,
|
|
215
|
-
checked:
|
|
213
|
+
checked: h
|
|
216
214
|
})
|
|
217
215
|
),
|
|
218
|
-
onCheckedChange:
|
|
219
|
-
children: /* @__PURE__ */ f(
|
|
216
|
+
onCheckedChange: g,
|
|
217
|
+
children: /* @__PURE__ */ f(oe, { children: /* @__PURE__ */ f(O, { className: "w-4 h-4 stroke-2" }) })
|
|
220
218
|
}
|
|
221
219
|
),
|
|
222
220
|
r ? /* @__PURE__ */ f(
|
|
223
221
|
"label",
|
|
224
222
|
{
|
|
225
|
-
htmlFor:
|
|
223
|
+
htmlFor: c ?? n,
|
|
226
224
|
className: N(
|
|
227
225
|
G({
|
|
228
226
|
variant: d,
|
|
229
|
-
theme: b,
|
|
230
227
|
className: l
|
|
231
228
|
})
|
|
232
229
|
),
|
|
@@ -237,5 +234,5 @@ const ve = _(
|
|
|
237
234
|
}
|
|
238
235
|
);
|
|
239
236
|
export {
|
|
240
|
-
|
|
237
|
+
be as Checkbox
|
|
241
238
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as r } from "../../index-BNmRGtA6.js";
|
|
2
|
+
const e = r(
|
|
3
3
|
[
|
|
4
4
|
"cursor-pointer",
|
|
5
5
|
"border",
|
|
@@ -9,18 +9,15 @@ const r = e(
|
|
|
9
9
|
"flex",
|
|
10
10
|
"justify-center",
|
|
11
11
|
"items-center",
|
|
12
|
-
"text-white"
|
|
12
|
+
"text-white",
|
|
13
|
+
"border-kubefirst-primary",
|
|
14
|
+
"colony:border-red-700"
|
|
13
15
|
],
|
|
14
16
|
{
|
|
15
17
|
variants: {
|
|
16
18
|
variant: {
|
|
17
19
|
default: ""
|
|
18
20
|
},
|
|
19
|
-
theme: {
|
|
20
|
-
colony: "",
|
|
21
|
-
kubefirst: "",
|
|
22
|
-
civo: ""
|
|
23
|
-
},
|
|
24
21
|
checked: {
|
|
25
22
|
true: "",
|
|
26
23
|
false: ""
|
|
@@ -28,46 +25,25 @@ const r = e(
|
|
|
28
25
|
},
|
|
29
26
|
compoundVariants: [
|
|
30
27
|
{
|
|
31
|
-
theme: "kubefirst",
|
|
32
|
-
class: ["border-kubefirst-primary"]
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
theme: "kubefirst",
|
|
36
28
|
checked: !0,
|
|
37
|
-
class: ["bg-kubefirst-primary"]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
theme: "colony",
|
|
41
|
-
class: ["border-red-700"]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
theme: "colony",
|
|
45
|
-
checked: !0,
|
|
46
|
-
class: ["bg-red-700"]
|
|
29
|
+
class: ["bg-kubefirst-primary", "colony:bg-red-700"]
|
|
47
30
|
}
|
|
48
31
|
],
|
|
49
32
|
defaultVariants: {
|
|
50
|
-
variant: "default"
|
|
51
|
-
theme: "kubefirst"
|
|
33
|
+
variant: "default"
|
|
52
34
|
}
|
|
53
35
|
}
|
|
54
|
-
),
|
|
36
|
+
), t = r(["cursor-pointer"], {
|
|
55
37
|
variants: {
|
|
56
38
|
variant: {
|
|
57
39
|
default: ""
|
|
58
|
-
},
|
|
59
|
-
theme: {
|
|
60
|
-
colony: "",
|
|
61
|
-
kubefirst: "",
|
|
62
|
-
civo: ""
|
|
63
40
|
}
|
|
64
41
|
},
|
|
65
42
|
defaultVariants: {
|
|
66
|
-
variant: "default"
|
|
67
|
-
theme: "kubefirst"
|
|
43
|
+
variant: "default"
|
|
68
44
|
}
|
|
69
45
|
});
|
|
70
46
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
47
|
+
e as checkboxVariants,
|
|
48
|
+
t as labelVariants
|
|
73
49
|
};
|
|
@@ -1,32 +1,40 @@
|
|
|
1
1
|
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { R as
|
|
3
|
-
import { V as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { wrapperVariants as
|
|
6
|
-
import { DialogContent as
|
|
7
|
-
import { Command as
|
|
8
|
-
import { CommandGroup as
|
|
9
|
-
import { CommandItem as
|
|
10
|
-
import { CommandSeparator as
|
|
11
|
-
const
|
|
12
|
-
children:
|
|
2
|
+
import { R as s, D as p } from "../../index-DvFiic6N.js";
|
|
3
|
+
import { V as l } from "../../index-CWKdynYu.js";
|
|
4
|
+
import { cn as m } from "../../utils/index.js";
|
|
5
|
+
import { wrapperVariants as f } from "./Command.variants.js";
|
|
6
|
+
import { DialogContent as c } from "./components/DialogContent.js";
|
|
7
|
+
import { Command as h } from "./components/Command.js";
|
|
8
|
+
import { CommandGroup as b } from "./components/CommandGroup.js";
|
|
9
|
+
import { CommandItem as y } from "./components/CommandItem.js";
|
|
10
|
+
import { CommandSeparator as H } from "./components/CommandSeparator.js";
|
|
11
|
+
const j = ({
|
|
12
|
+
children: r,
|
|
13
13
|
title: a,
|
|
14
14
|
titleClassName: e,
|
|
15
15
|
wrapperClassName: n,
|
|
16
|
+
theme: t,
|
|
16
17
|
...d
|
|
17
|
-
}) => /* @__PURE__ */ o(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
children:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
}) => /* @__PURE__ */ o(s, { ...d, children: /* @__PURE__ */ i(
|
|
19
|
+
c,
|
|
20
|
+
{
|
|
21
|
+
className: "overflow-hidden p-0 border-0 !rounded-none",
|
|
22
|
+
"data-theme": t,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ o(p, { className: m("hidden", e), children: /* @__PURE__ */ o(l, { children: a }) }),
|
|
25
|
+
/* @__PURE__ */ o(
|
|
26
|
+
h,
|
|
27
|
+
{
|
|
28
|
+
className: m(f({ className: n })),
|
|
29
|
+
children: r
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
27
35
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
j as Command,
|
|
37
|
+
b as CommandGroup,
|
|
38
|
+
y as CommandItem,
|
|
39
|
+
H as CommandSeparator
|
|
32
40
|
};
|
|
@@ -1,97 +1,50 @@
|
|
|
1
1
|
import { c as e } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const r = e([
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
defaultVariants: {
|
|
47
|
-
theme: "kubefirst"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
), n = e(
|
|
51
|
-
[
|
|
52
|
-
"bg-transparent",
|
|
53
|
-
"disabled:cursor-not-allowed",
|
|
54
|
-
"disabled:opacity-50",
|
|
55
|
-
"flex",
|
|
56
|
-
"h-10",
|
|
57
|
-
"outline-none",
|
|
58
|
-
"placeholder:text-muted-foreground",
|
|
59
|
-
"py-3",
|
|
60
|
-
"rounded-md",
|
|
61
|
-
"text-sm",
|
|
62
|
-
"w-full",
|
|
63
|
-
"text-white/80"
|
|
64
|
-
],
|
|
65
|
-
{
|
|
66
|
-
variants: {
|
|
67
|
-
theme: {
|
|
68
|
-
colony: "",
|
|
69
|
-
kubefirst: "",
|
|
70
|
-
civo: ""
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
defaultVariants: {
|
|
74
|
-
theme: "kubefirst"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
), i = e(
|
|
78
|
-
["mr-2", "h-4", "w-4", "shrink-0", "opacity-80", "text-white"],
|
|
79
|
-
{
|
|
80
|
-
variants: {
|
|
81
|
-
theme: {
|
|
82
|
-
colony: "",
|
|
83
|
-
kubefirst: "",
|
|
84
|
-
civo: ""
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
defaultVariants: {
|
|
88
|
-
theme: "kubefirst"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
);
|
|
2
|
+
const r = e([
|
|
3
|
+
"[&_[cmdk-group-heading]]:font-medium",
|
|
4
|
+
"[&_[cmdk-group-heading]]:px-2",
|
|
5
|
+
"[&_[cmdk-group-heading]]:text-muted-foreground",
|
|
6
|
+
"[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0",
|
|
7
|
+
"[&_[cmdk-group]]:px-2",
|
|
8
|
+
"[&_[cmdk-input-wrapper]_svg]:h-5",
|
|
9
|
+
"[&_[cmdk-input-wrapper]_svg]:w-5",
|
|
10
|
+
"[&_[cmdk-input]]:h-12",
|
|
11
|
+
"[&_[cmdk-item]]:px-2",
|
|
12
|
+
"[&_[cmdk-item]]:py-3",
|
|
13
|
+
"[&_[cmdk-item]_svg]:h-5",
|
|
14
|
+
"[&_[cmdk-item]_svg]:w-5",
|
|
15
|
+
"bg-popover",
|
|
16
|
+
"flex",
|
|
17
|
+
"items-center",
|
|
18
|
+
"justify-center",
|
|
19
|
+
"overflow-hidden",
|
|
20
|
+
"text-popover-foreground",
|
|
21
|
+
"border",
|
|
22
|
+
"rounded-md",
|
|
23
|
+
"border-neutral-900/35",
|
|
24
|
+
"bg-neutral-900/30"
|
|
25
|
+
]), d = e([
|
|
26
|
+
"bg-transparent",
|
|
27
|
+
"disabled:cursor-not-allowed",
|
|
28
|
+
"disabled:opacity-50",
|
|
29
|
+
"flex",
|
|
30
|
+
"h-10",
|
|
31
|
+
"outline-none",
|
|
32
|
+
"placeholder:text-muted-foreground",
|
|
33
|
+
"py-3",
|
|
34
|
+
"rounded-md",
|
|
35
|
+
"text-sm",
|
|
36
|
+
"w-full",
|
|
37
|
+
"text-white/80"
|
|
38
|
+
]), o = e([
|
|
39
|
+
"mr-2",
|
|
40
|
+
"h-4",
|
|
41
|
+
"w-4",
|
|
42
|
+
"shrink-0",
|
|
43
|
+
"opacity-80",
|
|
44
|
+
"text-white"
|
|
45
|
+
]);
|
|
92
46
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
o as wrapperVariants
|
|
47
|
+
d as inputVariants,
|
|
48
|
+
o as searchInconInputVariants,
|
|
49
|
+
r as wrapperVariants
|
|
97
50
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as o } from "../../../index-dRxIWVBr.js";
|
|
4
4
|
const s = p(({ className: r, children: a, ...e }, i) => /* @__PURE__ */ m(o, { ref: i, className: r, ...e, children: /* @__PURE__ */ m("div", { className: "w-[500px]", children: a }) }));
|
|
5
5
|
s.displayName = o.displayName;
|
|
6
6
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as o } from "../../../index-dRxIWVBr.js";
|
|
4
4
|
import { cn as a } from "../../../utils/index.js";
|
|
5
5
|
const t = p(({ className: r, ...m }, d) => /* @__PURE__ */ e(
|
|
6
6
|
o.Group,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as y, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as m } from "../../../index-dRxIWVBr.js";
|
|
3
3
|
import s, { forwardRef as u } from "react";
|
|
4
4
|
import { cn as f } from "../../../utils/index.js";
|
|
5
5
|
import { searchInconInputVariants as v, inputVariants as g } from "../Command.variants.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i, useContext as p, useCallback as c } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as r } from "../../../index-dRxIWVBr.js";
|
|
4
4
|
import { cn as l } from "../../../utils/index.js";
|
|
5
5
|
import { CommandContext as u } from "../contexts/Command.context.js";
|
|
6
6
|
const f = i(({ className: a, onSelect: e, ...s }, o) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as o } from "../../../index-dRxIWVBr.js";
|
|
4
4
|
import { cn as t } from "../../../utils/index.js";
|
|
5
5
|
const e = s(({ className: m, ...r }, a) => /* @__PURE__ */ i(
|
|
6
6
|
o.List,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as r } from "../../../index-dRxIWVBr.js";
|
|
4
4
|
import { cn as t } from "../../../utils/index.js";
|
|
5
5
|
const s = p(({ className: o, ...a }, m) => /* @__PURE__ */ e(
|
|
6
6
|
r.Separator,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i } from "react";
|
|
3
|
-
import { a as r, C as o, b as l } from "../../../index-
|
|
3
|
+
import { a as r, C as o, b as l } from "../../../index-DvFiic6N.js";
|
|
4
4
|
import { cn as m } from "../../../utils/index.js";
|
|
5
5
|
import { DialogOverlay as p } from "./DialogOverlay.js";
|
|
6
6
|
import { X as c } from "../../../x-DU-Zw-L_.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { O as a } from "../../../index-
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { O as a } from "../../../index-DvFiic6N.js";
|
|
4
|
+
import { cn as i } from "../../../utils/index.js";
|
|
5
|
+
const m = d(({ className: t, ...e }, o) => /* @__PURE__ */ s(
|
|
6
6
|
a,
|
|
7
7
|
{
|
|
8
8
|
ref: o,
|
|
9
|
-
className:
|
|
10
|
-
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
9
|
+
className: i(
|
|
10
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 delay-200",
|
|
11
11
|
t
|
|
12
12
|
),
|
|
13
13
|
...e
|
|
14
14
|
}
|
|
15
15
|
));
|
|
16
|
-
|
|
16
|
+
m.displayName = a.displayName;
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
m as DialogOverlay
|
|
19
19
|
};
|