@konstructio/ui 0.0.13-alpha.2 → 0.1.0-alpha.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/DatePicker.css +1 -0
- package/dist/{Modal-i7eolhYH.js → Modal-B2ujmsSW.js} +2 -2
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +55 -41
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +79 -0
- package/dist/components/Badge/Badge.variants.js +68 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +43 -52
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -23
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +43 -56
- package/dist/components/Button/Button.js +30 -26
- package/dist/components/Button/Button.variants.js +115 -28
- package/dist/components/Checkbox/Checkbox.js +297 -187
- package/dist/components/Checkbox/Checkbox.variants.js +12 -15
- 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 +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 +1 -1
- package/dist/components/Datepicker/DatePicker.js +2711 -0
- package/dist/components/Datepicker/DatePicker.variants.js +5 -0
- package/dist/components/Divider/Divider.variants.js +9 -12
- package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
- package/dist/components/Input/Input.js +106 -137
- package/dist/components/Input/Input.variants.js +15 -13
- package/dist/components/Loading/Loading.js +14 -99
- 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 +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/Radio/Radio.variants.js +14 -12
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +141 -126
- package/dist/components/Tabs/Tabs.js +24 -0
- package/dist/components/Tabs/Tabs.variants.js +58 -0
- package/dist/components/Tabs/components/Content.js +19 -0
- package/dist/components/Tabs/components/List.js +20 -0
- package/dist/components/Tabs/components/Trigger.js +26 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TimePicker/TimePicker.js +8 -0
- package/dist/components/TimePicker/TimePicker.variants.js +62 -0
- package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +102 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
- package/dist/components/TimePicker/components/index.js +4 -0
- package/dist/components/TimePicker/contexts/index.js +8 -0
- package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
- package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
- package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
- package/dist/components/TimePicker/utils/index.js +6 -0
- package/dist/components/Toast/Toast.js +37 -35
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/index.js +72 -66
- package/dist/createLucideIcon-BA2PlKw1.js +94 -0
- package/dist/index-55GVbfLI.js +432 -0
- package/dist/{index-D9BbbgUq.js → index-B-qIIQlg.js} +2 -2
- package/dist/index-BRcC_VTj.js +31 -0
- package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
- package/dist/index-BdMNhZnh.js +9 -0
- package/dist/index-C2xwUZXm.js +323 -0
- package/dist/{index-YaQrdkGE.js → index-CQ6ORxI_.js} +31 -30
- package/dist/index-Cq1I1cG9.js +129 -0
- package/dist/index-Cs8Lv8Wj.js +13 -0
- package/dist/{index-dRxIWVBr.js → index-DmCJ8fIR.js} +6 -5
- package/dist/index-DwYXX2sM.js +13 -0
- package/dist/{index-g-TFwd6Y.js → index-ObZsP5Eh.js} +2 -1
- package/dist/{index-DvFiic6N.js → index-Ud3-A7-K.js} +95 -101
- package/dist/{index-G_6jG4Qc.js → index-Y44iCJcQ.js} +18 -18
- package/dist/index-tIydFizp.js +83 -0
- package/dist/{index-AM3avohj.js → index-xPmNHv1y.js} +3 -3
- package/dist/index.d.ts +72 -13
- package/dist/index.js +78 -72
- package/dist/package.json +25 -22
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +263 -0
- package/dist/ui/kubefirst-theme.css +1 -1
- package/dist/ui/theme.css +11 -0
- package/dist/ui/utilities.css +11 -2
- package/dist/utils/index.js +3 -3
- package/package.json +25 -22
- package/dist/index-BOx5P4tS.js +0 -423
- package/dist/index-Bk324h27.js +0 -82
- package/dist/index-CWKdynYu.js +0 -32
- package/dist/index-bYyfdsls.js +0 -118
|
@@ -1,238 +1,348 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { P as
|
|
8
|
-
import { P as
|
|
9
|
-
import { cn as
|
|
10
|
-
import { checkboxVariants as
|
|
11
|
-
import { useToggle as
|
|
12
|
-
import { P } from "../../index-C5psggHV.js";
|
|
13
|
-
function
|
|
14
|
-
return
|
|
15
|
-
for (var
|
|
16
|
-
var
|
|
17
|
-
for (var
|
|
18
|
-
Object.prototype.hasOwnProperty.call(
|
|
1
|
+
import { jsx as u, jsxs as B, Fragment as U } from "react/jsx-runtime";
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import S, { forwardRef as z, useId as V, useCallback as X } from "react";
|
|
4
|
+
import { u as L } from "../../index-tIydFizp.js";
|
|
5
|
+
import { c as J, a as Q, b as j } from "../../index-Cq1I1cG9.js";
|
|
6
|
+
import { u as Y, a as Z } from "../../index-Bc1LNrRD.js";
|
|
7
|
+
import { P as ee } from "../../index-Y44iCJcQ.js";
|
|
8
|
+
import { P as w } from "../../index-ObZsP5Eh.js";
|
|
9
|
+
import { cn as T } from "../../utils/index.js";
|
|
10
|
+
import { checkboxVariants as te, labelVariants as re } from "./Checkbox.variants.js";
|
|
11
|
+
import { useToggle as oe } from "../../hooks/useToggle.js";
|
|
12
|
+
import { P as y } from "../../index-C5psggHV.js";
|
|
13
|
+
function R() {
|
|
14
|
+
return R = Object.assign || function(e) {
|
|
15
|
+
for (var c = 1; c < arguments.length; c++) {
|
|
16
|
+
var o = arguments[c];
|
|
17
|
+
for (var n in o)
|
|
18
|
+
Object.prototype.hasOwnProperty.call(o, n) && (e[n] = o[n]);
|
|
19
19
|
}
|
|
20
20
|
return e;
|
|
21
|
-
},
|
|
21
|
+
}, R.apply(this, arguments);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function ne(e, c) {
|
|
24
24
|
if (e == null) return {};
|
|
25
|
-
var
|
|
25
|
+
var o = ce(e, c), n, r;
|
|
26
26
|
if (Object.getOwnPropertySymbols) {
|
|
27
|
-
var
|
|
28
|
-
for (
|
|
29
|
-
|
|
27
|
+
var t = Object.getOwnPropertySymbols(e);
|
|
28
|
+
for (r = 0; r < t.length; r++)
|
|
29
|
+
n = t[r], !(c.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return o;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ce(e, c) {
|
|
34
34
|
if (e == null) return {};
|
|
35
|
-
var
|
|
36
|
-
for (
|
|
37
|
-
|
|
38
|
-
return
|
|
35
|
+
var o = {}, n = Object.keys(e), r, t;
|
|
36
|
+
for (t = 0; t < n.length; t++)
|
|
37
|
+
r = n[t], !(c.indexOf(r) >= 0) && (o[r] = e[r]);
|
|
38
|
+
return o;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
ref:
|
|
40
|
+
var I = z(function(e, c) {
|
|
41
|
+
var o = e.color, n = o === void 0 ? "currentColor" : o, r = e.size, t = r === void 0 ? 24 : r, i = ne(e, ["color", "size"]);
|
|
42
|
+
return /* @__PURE__ */ S.createElement("svg", R({
|
|
43
|
+
ref: c,
|
|
44
44
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
-
width:
|
|
46
|
-
height:
|
|
45
|
+
width: t,
|
|
46
|
+
height: t,
|
|
47
47
|
viewBox: "0 0 24 24",
|
|
48
48
|
fill: "none",
|
|
49
|
-
stroke:
|
|
49
|
+
stroke: n,
|
|
50
50
|
strokeWidth: "2",
|
|
51
51
|
strokeLinecap: "round",
|
|
52
52
|
strokeLinejoin: "round"
|
|
53
|
-
},
|
|
53
|
+
}, i), /* @__PURE__ */ S.createElement("polyline", {
|
|
54
54
|
points: "20 6 9 17 4 12"
|
|
55
55
|
}));
|
|
56
56
|
});
|
|
57
|
-
|
|
58
|
-
color:
|
|
59
|
-
size:
|
|
57
|
+
I.propTypes = {
|
|
58
|
+
color: y.string,
|
|
59
|
+
size: y.oneOfType([y.string, y.number])
|
|
60
60
|
};
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
|
|
61
|
+
I.displayName = "Check";
|
|
62
|
+
var P = "Checkbox", [ae, ge] = J(P), [se, N] = ae(P);
|
|
63
|
+
function ie(e) {
|
|
64
|
+
const {
|
|
65
|
+
__scopeCheckbox: c,
|
|
66
|
+
checked: o,
|
|
67
|
+
children: n,
|
|
68
|
+
defaultChecked: r,
|
|
69
|
+
disabled: t,
|
|
70
|
+
form: i,
|
|
71
|
+
name: f,
|
|
72
|
+
onCheckedChange: l,
|
|
73
|
+
required: b,
|
|
74
|
+
value: k = "on",
|
|
75
|
+
// @ts-expect-error
|
|
76
|
+
internal_do_not_use_render: a
|
|
77
|
+
} = e, [p, C] = Q({
|
|
78
|
+
prop: o,
|
|
79
|
+
defaultProp: r ?? !1,
|
|
80
|
+
onChange: l,
|
|
81
|
+
caller: P
|
|
82
|
+
}), [m, v] = h.useState(null), [g, s] = h.useState(null), d = h.useRef(!1), _ = m ? !!i || !!m.closest("form") : (
|
|
83
|
+
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
84
|
+
!0
|
|
85
|
+
), E = {
|
|
86
|
+
checked: p,
|
|
87
|
+
disabled: t,
|
|
88
|
+
setChecked: C,
|
|
89
|
+
control: m,
|
|
90
|
+
setControl: v,
|
|
91
|
+
name: f,
|
|
92
|
+
form: i,
|
|
93
|
+
value: k,
|
|
94
|
+
hasConsumerStoppedPropagationRef: d,
|
|
95
|
+
required: b,
|
|
96
|
+
defaultChecked: x(r) ? !1 : r,
|
|
97
|
+
isFormControl: _,
|
|
98
|
+
bubbleInput: g,
|
|
99
|
+
setBubbleInput: s
|
|
100
|
+
};
|
|
101
|
+
return /* @__PURE__ */ u(
|
|
102
|
+
se,
|
|
103
|
+
{
|
|
104
|
+
scope: c,
|
|
105
|
+
...E,
|
|
106
|
+
children: le(a) ? a(E) : n
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
var M = "CheckboxTrigger", q = h.forwardRef(
|
|
111
|
+
({ __scopeCheckbox: e, onKeyDown: c, onClick: o, ...n }, r) => {
|
|
64
112
|
const {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
required:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
} =
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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);
|
|
113
|
+
control: t,
|
|
114
|
+
value: i,
|
|
115
|
+
disabled: f,
|
|
116
|
+
checked: l,
|
|
117
|
+
required: b,
|
|
118
|
+
setControl: k,
|
|
119
|
+
setChecked: a,
|
|
120
|
+
hasConsumerStoppedPropagationRef: p,
|
|
121
|
+
isFormControl: C,
|
|
122
|
+
bubbleInput: m
|
|
123
|
+
} = N(M, e), v = L(r, k), g = h.useRef(l);
|
|
124
|
+
return h.useEffect(() => {
|
|
125
|
+
const s = t == null ? void 0 : t.form;
|
|
126
|
+
if (s) {
|
|
127
|
+
const d = () => a(g.current);
|
|
128
|
+
return s.addEventListener("reset", d), () => s.removeEventListener("reset", d);
|
|
85
129
|
}
|
|
86
|
-
}, [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
),
|
|
108
|
-
g && /* @__PURE__ */ f(
|
|
109
|
-
te,
|
|
110
|
-
{
|
|
111
|
-
control: i,
|
|
112
|
-
bubbles: !y.current,
|
|
113
|
-
name: o,
|
|
114
|
-
value: b,
|
|
115
|
-
checked: v,
|
|
116
|
-
required: l,
|
|
117
|
-
disabled: c,
|
|
118
|
-
form: d,
|
|
119
|
-
style: { transform: "translateX(-100%)" },
|
|
120
|
-
defaultChecked: m(r) ? !1 : r
|
|
121
|
-
}
|
|
122
|
-
)
|
|
123
|
-
] });
|
|
130
|
+
}, [t, a]), /* @__PURE__ */ u(
|
|
131
|
+
w.button,
|
|
132
|
+
{
|
|
133
|
+
type: "button",
|
|
134
|
+
role: "checkbox",
|
|
135
|
+
"aria-checked": x(l) ? "mixed" : l,
|
|
136
|
+
"aria-required": b,
|
|
137
|
+
"data-state": $(l),
|
|
138
|
+
"data-disabled": f ? "" : void 0,
|
|
139
|
+
disabled: f,
|
|
140
|
+
value: i,
|
|
141
|
+
...n,
|
|
142
|
+
ref: v,
|
|
143
|
+
onKeyDown: j(c, (s) => {
|
|
144
|
+
s.key === "Enter" && s.preventDefault();
|
|
145
|
+
}),
|
|
146
|
+
onClick: j(o, (s) => {
|
|
147
|
+
a((d) => x(d) ? !0 : !d), m && C && (p.current = s.isPropagationStopped(), p.current || s.stopPropagation());
|
|
148
|
+
})
|
|
149
|
+
}
|
|
150
|
+
);
|
|
124
151
|
}
|
|
125
152
|
);
|
|
126
|
-
|
|
127
|
-
var
|
|
128
|
-
(e,
|
|
129
|
-
const {
|
|
130
|
-
|
|
131
|
-
|
|
153
|
+
q.displayName = M;
|
|
154
|
+
var A = h.forwardRef(
|
|
155
|
+
(e, c) => {
|
|
156
|
+
const {
|
|
157
|
+
__scopeCheckbox: o,
|
|
158
|
+
name: n,
|
|
159
|
+
checked: r,
|
|
160
|
+
defaultChecked: t,
|
|
161
|
+
required: i,
|
|
162
|
+
disabled: f,
|
|
163
|
+
value: l,
|
|
164
|
+
onCheckedChange: b,
|
|
165
|
+
form: k,
|
|
166
|
+
...a
|
|
167
|
+
} = e;
|
|
168
|
+
return /* @__PURE__ */ u(
|
|
169
|
+
ie,
|
|
132
170
|
{
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
171
|
+
__scopeCheckbox: o,
|
|
172
|
+
checked: r,
|
|
173
|
+
defaultChecked: t,
|
|
174
|
+
disabled: f,
|
|
175
|
+
required: i,
|
|
176
|
+
onCheckedChange: b,
|
|
177
|
+
name: n,
|
|
178
|
+
form: k,
|
|
179
|
+
value: l,
|
|
180
|
+
internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ B(U, { children: [
|
|
181
|
+
/* @__PURE__ */ u(
|
|
182
|
+
q,
|
|
183
|
+
{
|
|
184
|
+
...a,
|
|
185
|
+
ref: c,
|
|
186
|
+
__scopeCheckbox: o
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
p && /* @__PURE__ */ u(
|
|
190
|
+
W,
|
|
191
|
+
{
|
|
192
|
+
__scopeCheckbox: o
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
] })
|
|
138
196
|
}
|
|
139
|
-
)
|
|
197
|
+
);
|
|
140
198
|
}
|
|
141
199
|
);
|
|
142
|
-
|
|
143
|
-
var
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
tabIndex: -1,
|
|
161
|
-
ref: l,
|
|
162
|
-
style: {
|
|
163
|
-
...e.style,
|
|
164
|
-
...b,
|
|
165
|
-
position: "absolute",
|
|
166
|
-
pointerEvents: "none",
|
|
167
|
-
opacity: 0,
|
|
168
|
-
margin: 0
|
|
200
|
+
A.displayName = P;
|
|
201
|
+
var F = "CheckboxIndicator", D = h.forwardRef(
|
|
202
|
+
(e, c) => {
|
|
203
|
+
const { __scopeCheckbox: o, forceMount: n, ...r } = e, t = N(F, o);
|
|
204
|
+
return /* @__PURE__ */ u(
|
|
205
|
+
ee,
|
|
206
|
+
{
|
|
207
|
+
present: n || x(t.checked) || t.checked === !0,
|
|
208
|
+
children: /* @__PURE__ */ u(
|
|
209
|
+
w.span,
|
|
210
|
+
{
|
|
211
|
+
"data-state": $(t.checked),
|
|
212
|
+
"data-disabled": t.disabled ? "" : void 0,
|
|
213
|
+
...r,
|
|
214
|
+
ref: c,
|
|
215
|
+
style: { pointerEvents: "none", ...e.style }
|
|
216
|
+
}
|
|
217
|
+
)
|
|
169
218
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
D.displayName = F;
|
|
223
|
+
var H = "CheckboxBubbleInput", W = h.forwardRef(
|
|
224
|
+
({ __scopeCheckbox: e, ...c }, o) => {
|
|
225
|
+
const {
|
|
226
|
+
control: n,
|
|
227
|
+
hasConsumerStoppedPropagationRef: r,
|
|
228
|
+
checked: t,
|
|
229
|
+
defaultChecked: i,
|
|
230
|
+
required: f,
|
|
231
|
+
disabled: l,
|
|
232
|
+
name: b,
|
|
233
|
+
value: k,
|
|
234
|
+
form: a,
|
|
235
|
+
bubbleInput: p,
|
|
236
|
+
setBubbleInput: C
|
|
237
|
+
} = N(H, e), m = L(o, C), v = Y(t), g = Z(n);
|
|
238
|
+
h.useEffect(() => {
|
|
239
|
+
const d = p;
|
|
240
|
+
if (!d) return;
|
|
241
|
+
const _ = window.HTMLInputElement.prototype, O = Object.getOwnPropertyDescriptor(
|
|
242
|
+
_,
|
|
243
|
+
"checked"
|
|
244
|
+
).set, G = !r.current;
|
|
245
|
+
if (v !== t && O) {
|
|
246
|
+
const K = new Event("click", { bubbles: G });
|
|
247
|
+
d.indeterminate = x(t), O.call(d, x(t) ? !1 : t), d.dispatchEvent(K);
|
|
248
|
+
}
|
|
249
|
+
}, [p, v, t, r]);
|
|
250
|
+
const s = h.useRef(x(t) ? !1 : t);
|
|
251
|
+
return /* @__PURE__ */ u(
|
|
252
|
+
w.input,
|
|
253
|
+
{
|
|
254
|
+
type: "checkbox",
|
|
255
|
+
"aria-hidden": !0,
|
|
256
|
+
defaultChecked: i ?? s.current,
|
|
257
|
+
required: f,
|
|
258
|
+
disabled: l,
|
|
259
|
+
name: b,
|
|
260
|
+
value: k,
|
|
261
|
+
form: a,
|
|
262
|
+
...c,
|
|
263
|
+
tabIndex: -1,
|
|
264
|
+
ref: m,
|
|
265
|
+
style: {
|
|
266
|
+
...c.style,
|
|
267
|
+
...g,
|
|
268
|
+
position: "absolute",
|
|
269
|
+
pointerEvents: "none",
|
|
270
|
+
opacity: 0,
|
|
271
|
+
margin: 0,
|
|
272
|
+
// We transform because the input is absolutely positioned but we have
|
|
273
|
+
// rendered it **after** the button. This pulls it back to sit on top
|
|
274
|
+
// of the button.
|
|
275
|
+
transform: "translateX(-100%)"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
W.displayName = H;
|
|
282
|
+
function le(e) {
|
|
283
|
+
return typeof e == "function";
|
|
284
|
+
}
|
|
285
|
+
function x(e) {
|
|
174
286
|
return e === "indeterminate";
|
|
175
287
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
288
|
+
function $(e) {
|
|
289
|
+
return x(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
178
290
|
}
|
|
179
|
-
|
|
180
|
-
const be = _(
|
|
291
|
+
const ye = z(
|
|
181
292
|
({
|
|
182
293
|
ariaLabelledBy: e,
|
|
183
|
-
className:
|
|
184
|
-
defaultChecked:
|
|
185
|
-
disabled:
|
|
186
|
-
id:
|
|
187
|
-
label:
|
|
188
|
-
labelClassName:
|
|
189
|
-
name:
|
|
190
|
-
theme:
|
|
191
|
-
title:
|
|
192
|
-
variant:
|
|
193
|
-
onChange:
|
|
194
|
-
},
|
|
195
|
-
const [
|
|
196
|
-
|
|
197
|
-
}, [
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
|
|
294
|
+
className: c,
|
|
295
|
+
defaultChecked: o,
|
|
296
|
+
disabled: n,
|
|
297
|
+
id: r,
|
|
298
|
+
label: t,
|
|
299
|
+
labelClassName: i,
|
|
300
|
+
name: f,
|
|
301
|
+
theme: l,
|
|
302
|
+
title: b,
|
|
303
|
+
variant: k,
|
|
304
|
+
onChange: a
|
|
305
|
+
}, p) => {
|
|
306
|
+
const [C, m] = oe(o), v = V(), g = X(() => {
|
|
307
|
+
m(), a == null || a();
|
|
308
|
+
}, [a, m]);
|
|
309
|
+
return /* @__PURE__ */ B("div", { className: "flex items-center gap-2", "data-theme": l, children: [
|
|
310
|
+
/* @__PURE__ */ u(
|
|
311
|
+
A,
|
|
201
312
|
{
|
|
202
|
-
id:
|
|
203
|
-
checked:
|
|
204
|
-
ref:
|
|
205
|
-
name:
|
|
206
|
-
disabled:
|
|
313
|
+
id: r ?? v,
|
|
314
|
+
checked: C,
|
|
315
|
+
ref: p,
|
|
316
|
+
name: f,
|
|
317
|
+
disabled: n,
|
|
207
318
|
"aria-labelledby": e,
|
|
208
|
-
title:
|
|
209
|
-
className:
|
|
210
|
-
|
|
211
|
-
className:
|
|
212
|
-
variant:
|
|
213
|
-
checked:
|
|
319
|
+
title: b,
|
|
320
|
+
className: T(
|
|
321
|
+
te({
|
|
322
|
+
className: c,
|
|
323
|
+
variant: k,
|
|
324
|
+
checked: C
|
|
214
325
|
})
|
|
215
326
|
),
|
|
216
327
|
onCheckedChange: g,
|
|
217
|
-
children: /* @__PURE__ */
|
|
328
|
+
children: /* @__PURE__ */ u(D, { children: /* @__PURE__ */ u(I, { className: "w-4 h-4 stroke-2" }) })
|
|
218
329
|
}
|
|
219
330
|
),
|
|
220
|
-
|
|
331
|
+
t ? /* @__PURE__ */ u(
|
|
221
332
|
"label",
|
|
222
333
|
{
|
|
223
|
-
htmlFor:
|
|
224
|
-
className:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
className: l
|
|
334
|
+
htmlFor: f ?? r,
|
|
335
|
+
className: T(
|
|
336
|
+
re({
|
|
337
|
+
className: i
|
|
228
338
|
})
|
|
229
339
|
),
|
|
230
|
-
children:
|
|
340
|
+
children: t
|
|
231
341
|
}
|
|
232
342
|
) : null
|
|
233
343
|
] });
|
|
234
344
|
}
|
|
235
345
|
);
|
|
236
346
|
export {
|
|
237
|
-
|
|
347
|
+
ye as Checkbox
|
|
238
348
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as r } from "../../index-BNmRGtA6.js";
|
|
2
|
-
const
|
|
2
|
+
const t = r(
|
|
3
3
|
[
|
|
4
4
|
"cursor-pointer",
|
|
5
5
|
"border",
|
|
@@ -9,9 +9,11 @@ const e = r(
|
|
|
9
9
|
"flex",
|
|
10
10
|
"justify-center",
|
|
11
11
|
"items-center",
|
|
12
|
+
"transition-all",
|
|
12
13
|
"text-white",
|
|
13
14
|
"border-kubefirst-primary",
|
|
14
|
-
"colony:border-red-700"
|
|
15
|
+
"colony:border-red-700",
|
|
16
|
+
"civo:border-civo-primary"
|
|
15
17
|
],
|
|
16
18
|
{
|
|
17
19
|
variants: {
|
|
@@ -26,24 +28,19 @@ const e = r(
|
|
|
26
28
|
compoundVariants: [
|
|
27
29
|
{
|
|
28
30
|
checked: !0,
|
|
29
|
-
class: [
|
|
31
|
+
class: [
|
|
32
|
+
"bg-kubefirst-primary",
|
|
33
|
+
"colony:bg-red-700",
|
|
34
|
+
"civo:bg-civo-primary"
|
|
35
|
+
]
|
|
30
36
|
}
|
|
31
37
|
],
|
|
32
38
|
defaultVariants: {
|
|
33
39
|
variant: "default"
|
|
34
40
|
}
|
|
35
41
|
}
|
|
36
|
-
),
|
|
37
|
-
variants: {
|
|
38
|
-
variant: {
|
|
39
|
-
default: ""
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
defaultVariants: {
|
|
43
|
-
variant: "default"
|
|
44
|
-
}
|
|
45
|
-
});
|
|
42
|
+
), a = r(["cursor-pointer", "text-slate-800"]);
|
|
46
43
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
t as checkboxVariants,
|
|
45
|
+
a as labelVariants
|
|
49
46
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { R as s, D as p } from "../../index-
|
|
3
|
-
import { V as l } from "../../index-
|
|
2
|
+
import { R as s, D as p } from "../../index-Ud3-A7-K.js";
|
|
3
|
+
import { V as l } from "../../index-BRcC_VTj.js";
|
|
4
4
|
import { cn as m } from "../../utils/index.js";
|
|
5
5
|
import { wrapperVariants as f } from "./Command.variants.js";
|
|
6
6
|
import { DialogContent as c } from "./components/DialogContent.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-DmCJ8fIR.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 { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-DmCJ8fIR.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 { _ as m } from "../../../index-
|
|
2
|
+
import { _ as m } from "../../../index-DmCJ8fIR.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 { _ as r } from "../../../index-
|
|
3
|
+
import { _ as r } from "../../../index-DmCJ8fIR.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 { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-DmCJ8fIR.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 { _ as r } from "../../../index-
|
|
3
|
+
import { _ as r } from "../../../index-DmCJ8fIR.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,
|