@konstructio/ui 0.0.13-alpha.2 → 0.1.0-alpha.11
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/{Combination-b348x__d.js → Combination-VYaRRJBZ.js} +155 -157
- package/dist/DatePicker.css +1 -0
- package/dist/Modal-CrG0m703.js +98 -0
- package/dist/assets/icons/components/Search.js +26 -0
- package/dist/assets/icons/components/Warning.js +22 -0
- package/dist/assets/icons/components/index.js +6 -0
- package/dist/chevron-down-UW8ts6wI.js +11 -0
- package/dist/{chevron-up-DgLBQCKD.js → chevron-up-RLP4nX7V.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- 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 +44 -53
- 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/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +30 -26
- package/dist/components/Button/Button.variants.js +116 -29
- package/dist/components/Checkbox/Checkbox.js +300 -185
- 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 +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +2722 -0
- package/dist/components/Datepicker/DatePicker.variants.js +5 -0
- package/dist/components/Divider/Divider.variants.js +9 -12
- package/dist/components/Dropdown/components/List/List.js +55 -18
- package/dist/components/Dropdown/components/List/List.variants.js +5 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.js +28 -22
- package/dist/components/Dropdown/components/Wrapper.js +110 -86
- package/dist/components/Dropdown/contexts/dropdown.context.js +6 -2
- package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
- package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -11
- package/dist/components/Filter/Filter.js +20 -0
- package/dist/components/Filter/Filter.variants.js +22 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +87 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +95 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +87 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +90 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +18 -0
- package/dist/components/Filter/components/index.js +8 -0
- package/dist/components/Filter/events/index.js +12 -0
- package/dist/components/Input/Input.js +134 -163
- 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 +4 -4
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +4 -6
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- 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/TagSelect/components/Wrapper/Wrapper.js +2 -2
- 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 +96 -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 +38 -36
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +14 -16
- package/dist/components/index.js +78 -66
- package/dist/createLucideIcon-ByJ0JZvK.js +94 -0
- package/dist/index--EmNlyHx.js +31 -0
- package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
- package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
- package/dist/{index-AM3avohj.js → index-BNU3RH-3.js} +3 -3
- package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
- package/dist/index-BdMNhZnh.js +9 -0
- package/dist/index-BvCZBMfr.js +432 -0
- package/dist/index-Cq1I1cG9.js +129 -0
- package/dist/index-Cs8Lv8Wj.js +13 -0
- package/dist/index-CvfCCTEO.js +323 -0
- package/dist/{index-DvFiic6N.js → index-DLYwlPRZ.js} +96 -102
- package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
- package/dist/{index-dRxIWVBr.js → index-Dkt8F6CZ.js} +6 -5
- package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
- package/dist/index-DwYXX2sM.js +13 -0
- package/dist/{index-C5psggHV.js → index-h-Ul0anl.js} +1 -2
- package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
- package/dist/index.d.ts +128 -17
- package/dist/index.js +84 -72
- package/dist/package.json +37 -37
- 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/useBreadcrumb-DMERrNkJ.js +1280 -0
- package/dist/utils/index.js +3 -3
- package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
- package/package.json +37 -37
- package/dist/Modal-i7eolhYH.js +0 -926
- package/dist/index-BOx5P4tS.js +0 -423
- package/dist/index-CWKdynYu.js +0 -32
- package/dist/index-bYyfdsls.js +0 -118
- package/dist/useBreadcrumb-BsIeMoR1.js +0 -1279
|
@@ -1,238 +1,353 @@
|
|
|
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-
|
|
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-B5MIi2tR.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-Dm-ooN_M.js";
|
|
8
|
+
import { P as w } from "../../index-BCGvACM9.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-h-Ul0anl.js";
|
|
13
|
+
function R() {
|
|
14
|
+
return R = Object.assign || function(e) {
|
|
15
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
16
|
+
var o = arguments[a];
|
|
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, a) {
|
|
24
24
|
if (e == null) return {};
|
|
25
|
-
var
|
|
25
|
+
var o = ae(e, a), 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], !(a.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 ae(e, a) {
|
|
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], !(a.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, a) {
|
|
41
|
+
var o = e.color, n = o === void 0 ? "currentColor" : o, r = e.size, t = r === void 0 ? 24 : r, l = ne(e, ["color", "size"]);
|
|
42
|
+
return /* @__PURE__ */ S.createElement("svg", R({
|
|
43
|
+
ref: a,
|
|
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
|
-
}, l), /* @__PURE__ */
|
|
53
|
+
}, l), /* @__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", [ce, ge] = J(P), [se, N] = ce(P);
|
|
63
|
+
function ie(e) {
|
|
64
|
+
const {
|
|
65
|
+
__scopeCheckbox: a,
|
|
66
|
+
checked: o,
|
|
67
|
+
children: n,
|
|
68
|
+
defaultChecked: r,
|
|
69
|
+
disabled: t,
|
|
70
|
+
form: l,
|
|
71
|
+
name: f,
|
|
72
|
+
onCheckedChange: d,
|
|
73
|
+
required: b,
|
|
74
|
+
value: k = "on",
|
|
75
|
+
// @ts-expect-error
|
|
76
|
+
internal_do_not_use_render: c
|
|
77
|
+
} = e, [p, x] = Q({
|
|
78
|
+
prop: o,
|
|
79
|
+
defaultProp: r ?? !1,
|
|
80
|
+
onChange: d,
|
|
81
|
+
caller: P
|
|
82
|
+
}), [m, C] = h.useState(null), [g, s] = h.useState(null), i = h.useRef(!1), _ = m ? !!l || !!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: x,
|
|
89
|
+
control: m,
|
|
90
|
+
setControl: C,
|
|
91
|
+
name: f,
|
|
92
|
+
form: l,
|
|
93
|
+
value: k,
|
|
94
|
+
hasConsumerStoppedPropagationRef: i,
|
|
95
|
+
required: b,
|
|
96
|
+
defaultChecked: v(r) ? !1 : r,
|
|
97
|
+
isFormControl: _,
|
|
98
|
+
bubbleInput: g,
|
|
99
|
+
setBubbleInput: s
|
|
100
|
+
};
|
|
101
|
+
return /* @__PURE__ */ u(
|
|
102
|
+
se,
|
|
103
|
+
{
|
|
104
|
+
scope: a,
|
|
105
|
+
...E,
|
|
106
|
+
children: le(c) ? c(E) : n
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
var M = "CheckboxTrigger", q = h.forwardRef(
|
|
111
|
+
({ __scopeCheckbox: e, onKeyDown: a, onClick: o, ...n }, r) => {
|
|
64
112
|
const {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
113
|
+
control: t,
|
|
114
|
+
value: l,
|
|
115
|
+
disabled: f,
|
|
116
|
+
checked: d,
|
|
117
|
+
required: b,
|
|
118
|
+
setControl: k,
|
|
119
|
+
setChecked: c,
|
|
120
|
+
hasConsumerStoppedPropagationRef: p,
|
|
121
|
+
isFormControl: x,
|
|
122
|
+
bubbleInput: m
|
|
123
|
+
} = N(M, e), C = L(r, k), g = h.useRef(d);
|
|
124
|
+
return h.useEffect(() => {
|
|
125
|
+
const s = t == null ? void 0 : t.form;
|
|
126
|
+
if (s) {
|
|
127
|
+
const i = () => c(g.current);
|
|
128
|
+
return s.addEventListener("reset", i), () => s.removeEventListener("reset", i);
|
|
129
|
+
}
|
|
130
|
+
}, [t, c]), /* @__PURE__ */ u(
|
|
131
|
+
w.button,
|
|
132
|
+
{
|
|
133
|
+
type: "button",
|
|
134
|
+
role: "checkbox",
|
|
135
|
+
"aria-checked": v(d) ? "mixed" : d,
|
|
136
|
+
"aria-required": b,
|
|
137
|
+
"data-state": $(d),
|
|
138
|
+
"data-disabled": f ? "" : void 0,
|
|
139
|
+
disabled: f,
|
|
140
|
+
value: l,
|
|
141
|
+
...n,
|
|
142
|
+
ref: C,
|
|
143
|
+
onKeyDown: j(a, (s) => {
|
|
144
|
+
s.key === "Enter" && s.preventDefault();
|
|
145
|
+
}),
|
|
146
|
+
onClick: j(o, (s) => {
|
|
147
|
+
c((i) => v(i) ? !0 : !i), m && x && (p.current = s.isPropagationStopped(), p.current || s.stopPropagation());
|
|
148
|
+
})
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
q.displayName = M;
|
|
154
|
+
var A = h.forwardRef(
|
|
155
|
+
(e, a) => {
|
|
156
|
+
const {
|
|
157
|
+
__scopeCheckbox: o,
|
|
158
|
+
name: n,
|
|
159
|
+
checked: r,
|
|
160
|
+
defaultChecked: t,
|
|
69
161
|
required: l,
|
|
70
|
-
disabled:
|
|
71
|
-
value:
|
|
72
|
-
onCheckedChange:
|
|
73
|
-
form:
|
|
74
|
-
...
|
|
75
|
-
} = e
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
162
|
+
disabled: f,
|
|
163
|
+
value: d,
|
|
164
|
+
onCheckedChange: b,
|
|
165
|
+
form: k,
|
|
166
|
+
...c
|
|
167
|
+
} = e;
|
|
168
|
+
return /* @__PURE__ */ u(
|
|
169
|
+
ie,
|
|
170
|
+
{
|
|
171
|
+
__scopeCheckbox: o,
|
|
172
|
+
checked: r,
|
|
173
|
+
defaultChecked: t,
|
|
174
|
+
disabled: f,
|
|
175
|
+
required: l,
|
|
176
|
+
onCheckedChange: b,
|
|
177
|
+
name: n,
|
|
178
|
+
form: k,
|
|
179
|
+
value: d,
|
|
180
|
+
internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ B(U, { children: [
|
|
181
|
+
/* @__PURE__ */ u(
|
|
182
|
+
q,
|
|
183
|
+
{
|
|
184
|
+
...c,
|
|
185
|
+
ref: a,
|
|
186
|
+
__scopeCheckbox: o
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
p && /* @__PURE__ */ u(
|
|
190
|
+
W,
|
|
191
|
+
{
|
|
192
|
+
__scopeCheckbox: o
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
] })
|
|
85
196
|
}
|
|
86
|
-
|
|
87
|
-
/* @__PURE__ */ f(
|
|
88
|
-
z.button,
|
|
89
|
-
{
|
|
90
|
-
type: "button",
|
|
91
|
-
role: "checkbox",
|
|
92
|
-
"aria-checked": m(v) ? "mixed" : v,
|
|
93
|
-
"aria-required": l,
|
|
94
|
-
"data-state": B(v),
|
|
95
|
-
"data-disabled": c ? "" : void 0,
|
|
96
|
-
disabled: c,
|
|
97
|
-
value: b,
|
|
98
|
-
...p,
|
|
99
|
-
ref: k,
|
|
100
|
-
onKeyDown: I(e.onKeyDown, (a) => {
|
|
101
|
-
a.key === "Enter" && a.preventDefault();
|
|
102
|
-
}),
|
|
103
|
-
onClick: I(e.onClick, (a) => {
|
|
104
|
-
w((x) => m(x) ? !0 : !x), g && (y.current = a.isPropagationStopped(), y.current || a.stopPropagation());
|
|
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
|
-
] });
|
|
197
|
+
);
|
|
124
198
|
}
|
|
125
199
|
);
|
|
126
|
-
|
|
127
|
-
var
|
|
128
|
-
(e,
|
|
129
|
-
const { __scopeCheckbox:
|
|
130
|
-
return /* @__PURE__ */
|
|
131
|
-
|
|
200
|
+
A.displayName = P;
|
|
201
|
+
var F = "CheckboxIndicator", D = h.forwardRef(
|
|
202
|
+
(e, a) => {
|
|
203
|
+
const { __scopeCheckbox: o, forceMount: n, ...r } = e, t = N(F, o);
|
|
204
|
+
return /* @__PURE__ */ u(
|
|
205
|
+
ee,
|
|
132
206
|
{
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
207
|
+
present: n || v(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: a,
|
|
215
|
+
style: { pointerEvents: "none", ...e.style }
|
|
216
|
+
}
|
|
217
|
+
)
|
|
138
218
|
}
|
|
139
|
-
)
|
|
219
|
+
);
|
|
140
220
|
}
|
|
141
221
|
);
|
|
142
|
-
D.displayName =
|
|
143
|
-
var
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
margin: 0
|
|
222
|
+
D.displayName = F;
|
|
223
|
+
var H = "CheckboxBubbleInput", W = h.forwardRef(
|
|
224
|
+
({ __scopeCheckbox: e, ...a }, o) => {
|
|
225
|
+
const {
|
|
226
|
+
control: n,
|
|
227
|
+
hasConsumerStoppedPropagationRef: r,
|
|
228
|
+
checked: t,
|
|
229
|
+
defaultChecked: l,
|
|
230
|
+
required: f,
|
|
231
|
+
disabled: d,
|
|
232
|
+
name: b,
|
|
233
|
+
value: k,
|
|
234
|
+
form: c,
|
|
235
|
+
bubbleInput: p,
|
|
236
|
+
setBubbleInput: x
|
|
237
|
+
} = N(H, e), m = L(o, x), C = Y(t), g = Z(n);
|
|
238
|
+
h.useEffect(() => {
|
|
239
|
+
const i = p;
|
|
240
|
+
if (!i) return;
|
|
241
|
+
const _ = window.HTMLInputElement.prototype, O = Object.getOwnPropertyDescriptor(
|
|
242
|
+
_,
|
|
243
|
+
"checked"
|
|
244
|
+
).set, G = !r.current;
|
|
245
|
+
if (C !== t && O) {
|
|
246
|
+
const K = new Event("click", { bubbles: G });
|
|
247
|
+
i.indeterminate = v(t), O.call(i, v(t) ? !1 : t), i.dispatchEvent(K);
|
|
169
248
|
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
249
|
+
}, [p, C, t, r]);
|
|
250
|
+
const s = h.useRef(v(t) ? !1 : t);
|
|
251
|
+
return /* @__PURE__ */ u(
|
|
252
|
+
w.input,
|
|
253
|
+
{
|
|
254
|
+
type: "checkbox",
|
|
255
|
+
"aria-hidden": !0,
|
|
256
|
+
defaultChecked: l ?? s.current,
|
|
257
|
+
required: f,
|
|
258
|
+
disabled: d,
|
|
259
|
+
name: b,
|
|
260
|
+
value: k,
|
|
261
|
+
form: c,
|
|
262
|
+
...a,
|
|
263
|
+
tabIndex: -1,
|
|
264
|
+
ref: m,
|
|
265
|
+
style: {
|
|
266
|
+
...a.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 v(e) {
|
|
174
286
|
return e === "indeterminate";
|
|
175
287
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
288
|
+
function $(e) {
|
|
289
|
+
return v(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:
|
|
294
|
+
className: a,
|
|
295
|
+
defaultChecked: o,
|
|
296
|
+
disabled: n,
|
|
297
|
+
id: r,
|
|
298
|
+
label: t,
|
|
188
299
|
labelClassName: l,
|
|
189
|
-
name:
|
|
190
|
-
theme:
|
|
191
|
-
title:
|
|
192
|
-
variant:
|
|
193
|
-
onChange:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
300
|
+
name: f,
|
|
301
|
+
theme: d,
|
|
302
|
+
title: b,
|
|
303
|
+
variant: k,
|
|
304
|
+
onChange: c,
|
|
305
|
+
...p
|
|
306
|
+
}, x) => {
|
|
307
|
+
const [m, C] = oe(o ?? !1), g = V(), s = X(
|
|
308
|
+
(i) => {
|
|
309
|
+
C(i), c == null || c(i);
|
|
310
|
+
},
|
|
311
|
+
[c, C]
|
|
312
|
+
);
|
|
313
|
+
return /* @__PURE__ */ B("div", { className: "flex items-center gap-2", "data-theme": d, children: [
|
|
314
|
+
/* @__PURE__ */ u(
|
|
315
|
+
A,
|
|
201
316
|
{
|
|
202
|
-
id:
|
|
203
|
-
checked:
|
|
204
|
-
ref:
|
|
205
|
-
name:
|
|
206
|
-
disabled:
|
|
317
|
+
id: r ?? g,
|
|
318
|
+
checked: m,
|
|
319
|
+
ref: x,
|
|
320
|
+
name: f,
|
|
321
|
+
disabled: n,
|
|
207
322
|
"aria-labelledby": e,
|
|
208
|
-
title:
|
|
209
|
-
className:
|
|
210
|
-
|
|
211
|
-
className:
|
|
212
|
-
variant:
|
|
213
|
-
checked:
|
|
323
|
+
title: b,
|
|
324
|
+
className: T(
|
|
325
|
+
te({
|
|
326
|
+
className: a,
|
|
327
|
+
variant: k,
|
|
328
|
+
checked: m
|
|
214
329
|
})
|
|
215
330
|
),
|
|
216
|
-
onCheckedChange:
|
|
217
|
-
|
|
331
|
+
onCheckedChange: s,
|
|
332
|
+
...p,
|
|
333
|
+
children: /* @__PURE__ */ u(D, { children: /* @__PURE__ */ u(I, { className: "w-4 h-4 stroke-2" }) })
|
|
218
334
|
}
|
|
219
335
|
),
|
|
220
|
-
|
|
336
|
+
t ? /* @__PURE__ */ u(
|
|
221
337
|
"label",
|
|
222
338
|
{
|
|
223
|
-
htmlFor:
|
|
224
|
-
className:
|
|
225
|
-
|
|
226
|
-
variant: d,
|
|
339
|
+
htmlFor: f ?? r,
|
|
340
|
+
className: T(
|
|
341
|
+
re({
|
|
227
342
|
className: l
|
|
228
343
|
})
|
|
229
344
|
),
|
|
230
|
-
children:
|
|
345
|
+
children: t
|
|
231
346
|
}
|
|
232
347
|
) : null
|
|
233
348
|
] });
|
|
234
349
|
}
|
|
235
350
|
);
|
|
236
351
|
export {
|
|
237
|
-
|
|
352
|
+
ye as Checkbox
|
|
238
353
|
};
|
|
@@ -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-zinc-400"
|
|
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", "civo:border-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-DLYwlPRZ.js";
|
|
3
|
+
import { V as l } from "../../index--EmNlyHx.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-Dkt8F6CZ.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-Dkt8F6CZ.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,9 +1,9 @@
|
|
|
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-Dkt8F6CZ.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";
|
|
6
|
-
import { P as a } from "../../../index-
|
|
6
|
+
import { P as a } from "../../../index-h-Ul0anl.js";
|
|
7
7
|
function p() {
|
|
8
8
|
return p = Object.assign || function(r) {
|
|
9
9
|
for (var n = 1; n < arguments.length; n++) {
|
|
@@ -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-Dkt8F6CZ.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-Dkt8F6CZ.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-Dkt8F6CZ.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,
|