@konstructio/ui 0.1.0-alpha.9 → 0.1.1-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/DatePicker.css +1 -1
- package/dist/{Modal-CrG0m703.js → Modal-0oht63vU.js} +32 -32
- 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 → chevron-down-CVce9Mvh.js} +2 -2
- package/dist/components/Alert/Alert.js +23 -25
- package/dist/components/Alert/Alert.variants.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +7 -7
- package/dist/components/Autocomplete/Autocomplete.variants.js +3 -4
- package/dist/components/Autocomplete/components/List/List.variants.js +3 -7
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +38 -43
- package/dist/components/Autocomplete/hooks/useNavigationList.js +29 -37
- package/dist/components/Badge/Badge.js +40 -42
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -21
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +15 -15
- package/dist/components/Button/Button.variants.js +10 -77
- package/dist/components/Card/Card.variants.js +3 -5
- package/dist/components/Checkbox/Checkbox.js +48 -47
- package/dist/components/Checkbox/Checkbox.variants.js +3 -4
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/Command.variants.js +1 -1
- 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 +13 -13
- 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 +1496 -1577
- package/dist/components/Datepicker/DatePicker.variants.js +1 -1
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +28 -6
- package/dist/components/Dropdown/Dropdown.variants.js +43 -26
- package/dist/components/Dropdown/components/List/List.variants.js +1 -1
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +5 -5
- package/dist/components/Dropdown/components/Wrapper.js +96 -86
- package/dist/components/Dropdown/contexts/dropdown.provider.js +12 -12
- package/dist/components/Dropdown/hooks/useDropdown.js +26 -30
- package/dist/components/Dropdown/hooks/useNavigationList.js +25 -31
- package/dist/components/DropdownButton/DropdownButton.js +135 -0
- package/dist/components/Filter/Filter.variants.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +47 -49
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +41 -42
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +30 -30
- package/dist/components/Filter/components/ResetButton/ResetButton.js +22 -16
- package/dist/components/Input/Input.js +116 -109
- package/dist/components/Input/Input.variants.js +18 -5
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Loading/Loading.variants.js +1 -2
- 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/Wrapper/Wrapper.variants.js +7 -9
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/hooks/useModal.js +16 -17
- package/dist/components/NumberInput/NumberInput.js +91 -91
- package/dist/components/NumberInput/NumberInput.variants.js +1 -1
- package/dist/components/PieChart/PieChart.js +5138 -0
- package/dist/components/ProgressBar/ProgressBar.js +58 -26
- package/dist/components/ProgressBar/ProgressBar.variants.js +1 -1
- package/dist/components/Radio/Radio.js +64 -48
- package/dist/components/Radio/Radio.variants.js +3 -3
- package/dist/components/RadioCard/RadioCard.js +26 -23
- package/dist/components/RadioCard/RadioCard.variants.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +28 -28
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +37 -37
- package/dist/components/RadioGroup/RadioGroup.variants.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Range/Range.variants.js +2 -3
- package/dist/components/Sidebar/Sidebar.js +4 -3
- package/dist/components/Sidebar/Sidebar.variants.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +5 -4
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +6 -5
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +5 -4
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +14 -13
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +13 -12
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +5 -6
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -8
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +15 -14
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.variants.js +2 -8
- package/dist/components/Switch/Switch.js +54 -54
- package/dist/components/Switch/Switch.variants.js +2 -3
- package/dist/components/Table/Table.variants.js +1 -1
- package/dist/components/Tabs/Tabs.js +20 -16
- package/dist/components/Tabs/Tabs.variants.js +3 -5
- package/dist/components/Tabs/components/Content.js +10 -13
- package/dist/components/Tabs/components/List.js +9 -8
- package/dist/components/Tabs/components/Trigger.js +12 -16
- package/dist/components/Tabs/components/index.js +8 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.variants.js +1 -1
- package/dist/components/TagSelect/components/List/List.variants.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +14 -16
- package/dist/components/TextArea/TextArea.variants.js +4 -5
- package/dist/components/TimePicker/TimePicker.variants.js +6 -7
- package/dist/components/TimePicker/components/HoursList/HoursList.js +21 -26
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +19 -20
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +24 -25
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +33 -34
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +1 -1
- package/dist/components/Toast/Toast.js +223 -232
- package/dist/components/Toast/Toast.variants.js +8 -11
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.variants.js +7 -14
- package/dist/components/Tooltip/hooks/useTooltip.js +8 -9
- package/dist/components/Typography/Typography.js +26 -31
- package/dist/components/Typography/Typography.variants.js +1 -1
- package/dist/components/index.js +78 -66
- package/dist/contexts/theme.provider.js +28 -29
- package/dist/{createLucideIcon-ByJ0JZvK.js → createLucideIcon-BpsAkT97.js} +4 -4
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/{index-CvfCCTEO.js → index-BAraV3ai.js} +7 -7
- package/dist/index-BXuxPoz7.js +435 -0
- package/dist/index-BfXxHr_2.js +125 -0
- package/dist/index-C1g_chDT.js +70 -0
- package/dist/{index-BCGvACM9.js → index-C9T9HQaa.js} +1 -1
- package/dist/{index-Bc1LNrRD.js → index-CZnD2QxM.js} +1 -1
- package/dist/index-CrBonFvu.js +144 -0
- package/dist/{index-rUBNhTeF.js → index-Cvx4lqTq.js} +2 -2
- package/dist/{index-BNmRGtA6.js → index-D29mdTf5.js} +3 -3
- package/dist/{index-Dkt8F6CZ.js → index-D3xzCzcO.js} +12 -12
- package/dist/index-DB2XhXHn.js +431 -0
- package/dist/{index-B5MIi2tR.js → index-DQH6odE9.js} +2 -3
- package/dist/index-Oq5GlCHP.js +131 -0
- package/dist/{index-Cs8Lv8Wj.js → index-bwWKd82e.js} +1 -1
- package/dist/{index--EmNlyHx.js → index-iXyXtdgP.js} +1 -1
- package/dist/index.d.ts +157 -9
- package/dist/index.js +88 -76
- package/dist/package.json +41 -37
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +261 -241
- package/dist/ui/kubefirst-theme.css +4 -4
- package/dist/ui/theme.css +0 -2
- package/dist/{useBreadcrumb-DMERrNkJ.js → useBreadcrumb-B8DnuqkR.js} +254 -261
- package/dist/utils/index.js +25 -26
- package/package.json +41 -37
- package/dist/index-BNU3RH-3.js +0 -133
- package/dist/index-BvCZBMfr.js +0 -432
- package/dist/index-Cq1I1cG9.js +0 -129
- package/dist/index-DLYwlPRZ.js +0 -440
- package/dist/index-DNRcvRTB.js +0 -145
- package/dist/index-Dm-ooN_M.js +0 -71
- package/dist/index-DwYXX2sM.js +0 -13
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as u, jsxs as B, Fragment as U } from "react/jsx-runtime";
|
|
2
2
|
import * as h from "react";
|
|
3
3
|
import S, { forwardRef as z, useId as V, useCallback as X } from "react";
|
|
4
|
-
import { u as L } from "../../index-
|
|
5
|
-
import { c as J, a as Q, b as j } from "../../index-
|
|
6
|
-
import { u as Y, a as Z } from "../../index-
|
|
7
|
-
import { P as ee } from "../../index-
|
|
8
|
-
import { P as w } from "../../index-
|
|
4
|
+
import { u as L } from "../../index-DQH6odE9.js";
|
|
5
|
+
import { c as J, a as Q, b as j } from "../../index-BfXxHr_2.js";
|
|
6
|
+
import { u as Y, a as Z } from "../../index-CZnD2QxM.js";
|
|
7
|
+
import { P as ee } from "../../index-C1g_chDT.js";
|
|
8
|
+
import { P as w } from "../../index-C9T9HQaa.js";
|
|
9
9
|
import { cn as T } from "../../utils/index.js";
|
|
10
10
|
import { checkboxVariants as te, labelVariants as re } from "./Checkbox.variants.js";
|
|
11
11
|
import { useToggle as oe } from "../../hooks/useToggle.js";
|
|
@@ -59,7 +59,7 @@ I.propTypes = {
|
|
|
59
59
|
size: y.oneOfType([y.string, y.number])
|
|
60
60
|
};
|
|
61
61
|
I.displayName = "Check";
|
|
62
|
-
var P = "Checkbox", [ce,
|
|
62
|
+
var P = "Checkbox", [ce, ye] = J(P), [se, N] = ce(P);
|
|
63
63
|
function ie(e) {
|
|
64
64
|
const {
|
|
65
65
|
__scopeCheckbox: a,
|
|
@@ -73,13 +73,13 @@ function ie(e) {
|
|
|
73
73
|
required: b,
|
|
74
74
|
value: k = "on",
|
|
75
75
|
// @ts-expect-error
|
|
76
|
-
internal_do_not_use_render:
|
|
76
|
+
internal_do_not_use_render: i
|
|
77
77
|
} = e, [p, x] = Q({
|
|
78
78
|
prop: o,
|
|
79
79
|
defaultProp: r ?? !1,
|
|
80
80
|
onChange: d,
|
|
81
81
|
caller: P
|
|
82
|
-
}), [m, C] = h.useState(null), [g,
|
|
82
|
+
}), [m, C] = h.useState(null), [g, c] = h.useState(null), s = h.useRef(!1), _ = m ? !!l || !!m.closest("form") : (
|
|
83
83
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
84
84
|
!0
|
|
85
85
|
), E = {
|
|
@@ -91,19 +91,19 @@ function ie(e) {
|
|
|
91
91
|
name: f,
|
|
92
92
|
form: l,
|
|
93
93
|
value: k,
|
|
94
|
-
hasConsumerStoppedPropagationRef:
|
|
94
|
+
hasConsumerStoppedPropagationRef: s,
|
|
95
95
|
required: b,
|
|
96
96
|
defaultChecked: v(r) ? !1 : r,
|
|
97
97
|
isFormControl: _,
|
|
98
98
|
bubbleInput: g,
|
|
99
|
-
setBubbleInput:
|
|
99
|
+
setBubbleInput: c
|
|
100
100
|
};
|
|
101
101
|
return /* @__PURE__ */ u(
|
|
102
102
|
se,
|
|
103
103
|
{
|
|
104
104
|
scope: a,
|
|
105
105
|
...E,
|
|
106
|
-
children: le(
|
|
106
|
+
children: le(i) ? i(E) : n
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
}
|
|
@@ -116,35 +116,35 @@ var M = "CheckboxTrigger", q = h.forwardRef(
|
|
|
116
116
|
checked: d,
|
|
117
117
|
required: b,
|
|
118
118
|
setControl: k,
|
|
119
|
-
setChecked:
|
|
119
|
+
setChecked: i,
|
|
120
120
|
hasConsumerStoppedPropagationRef: p,
|
|
121
121
|
isFormControl: x,
|
|
122
122
|
bubbleInput: m
|
|
123
123
|
} = N(M, e), C = L(r, k), g = h.useRef(d);
|
|
124
124
|
return h.useEffect(() => {
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
-
const
|
|
128
|
-
return
|
|
125
|
+
const c = t?.form;
|
|
126
|
+
if (c) {
|
|
127
|
+
const s = () => i(g.current);
|
|
128
|
+
return c.addEventListener("reset", s), () => c.removeEventListener("reset", s);
|
|
129
129
|
}
|
|
130
|
-
}, [t,
|
|
130
|
+
}, [t, i]), /* @__PURE__ */ u(
|
|
131
131
|
w.button,
|
|
132
132
|
{
|
|
133
133
|
type: "button",
|
|
134
134
|
role: "checkbox",
|
|
135
135
|
"aria-checked": v(d) ? "mixed" : d,
|
|
136
136
|
"aria-required": b,
|
|
137
|
-
"data-state":
|
|
137
|
+
"data-state": W(d),
|
|
138
138
|
"data-disabled": f ? "" : void 0,
|
|
139
139
|
disabled: f,
|
|
140
140
|
value: l,
|
|
141
141
|
...n,
|
|
142
142
|
ref: C,
|
|
143
|
-
onKeyDown: j(a, (
|
|
144
|
-
|
|
143
|
+
onKeyDown: j(a, (c) => {
|
|
144
|
+
c.key === "Enter" && c.preventDefault();
|
|
145
145
|
}),
|
|
146
|
-
onClick: j(o, (
|
|
147
|
-
|
|
146
|
+
onClick: j(o, (c) => {
|
|
147
|
+
i((s) => v(s) ? !0 : !s), m && x && (p.current = c.isPropagationStopped(), p.current || c.stopPropagation());
|
|
148
148
|
})
|
|
149
149
|
}
|
|
150
150
|
);
|
|
@@ -163,7 +163,7 @@ var A = h.forwardRef(
|
|
|
163
163
|
value: d,
|
|
164
164
|
onCheckedChange: b,
|
|
165
165
|
form: k,
|
|
166
|
-
...
|
|
166
|
+
...i
|
|
167
167
|
} = e;
|
|
168
168
|
return /* @__PURE__ */ u(
|
|
169
169
|
ie,
|
|
@@ -181,13 +181,13 @@ var A = h.forwardRef(
|
|
|
181
181
|
/* @__PURE__ */ u(
|
|
182
182
|
q,
|
|
183
183
|
{
|
|
184
|
-
...
|
|
184
|
+
...i,
|
|
185
185
|
ref: a,
|
|
186
186
|
__scopeCheckbox: o
|
|
187
187
|
}
|
|
188
188
|
),
|
|
189
189
|
p && /* @__PURE__ */ u(
|
|
190
|
-
|
|
190
|
+
K,
|
|
191
191
|
{
|
|
192
192
|
__scopeCheckbox: o
|
|
193
193
|
}
|
|
@@ -208,7 +208,7 @@ var F = "CheckboxIndicator", D = h.forwardRef(
|
|
|
208
208
|
children: /* @__PURE__ */ u(
|
|
209
209
|
w.span,
|
|
210
210
|
{
|
|
211
|
-
"data-state":
|
|
211
|
+
"data-state": W(t.checked),
|
|
212
212
|
"data-disabled": t.disabled ? "" : void 0,
|
|
213
213
|
...r,
|
|
214
214
|
ref: a,
|
|
@@ -220,7 +220,7 @@ var F = "CheckboxIndicator", D = h.forwardRef(
|
|
|
220
220
|
}
|
|
221
221
|
);
|
|
222
222
|
D.displayName = F;
|
|
223
|
-
var H = "CheckboxBubbleInput",
|
|
223
|
+
var H = "CheckboxBubbleInput", K = h.forwardRef(
|
|
224
224
|
({ __scopeCheckbox: e, ...a }, o) => {
|
|
225
225
|
const {
|
|
226
226
|
control: n,
|
|
@@ -231,34 +231,34 @@ var H = "CheckboxBubbleInput", W = h.forwardRef(
|
|
|
231
231
|
disabled: d,
|
|
232
232
|
name: b,
|
|
233
233
|
value: k,
|
|
234
|
-
form:
|
|
234
|
+
form: i,
|
|
235
235
|
bubbleInput: p,
|
|
236
236
|
setBubbleInput: x
|
|
237
237
|
} = N(H, e), m = L(o, x), C = Y(t), g = Z(n);
|
|
238
238
|
h.useEffect(() => {
|
|
239
|
-
const
|
|
240
|
-
if (!
|
|
239
|
+
const s = p;
|
|
240
|
+
if (!s) return;
|
|
241
241
|
const _ = window.HTMLInputElement.prototype, O = Object.getOwnPropertyDescriptor(
|
|
242
242
|
_,
|
|
243
243
|
"checked"
|
|
244
|
-
).set,
|
|
244
|
+
).set, $ = !r.current;
|
|
245
245
|
if (C !== t && O) {
|
|
246
|
-
const
|
|
247
|
-
|
|
246
|
+
const G = new Event("click", { bubbles: $ });
|
|
247
|
+
s.indeterminate = v(t), O.call(s, v(t) ? !1 : t), s.dispatchEvent(G);
|
|
248
248
|
}
|
|
249
249
|
}, [p, C, t, r]);
|
|
250
|
-
const
|
|
250
|
+
const c = h.useRef(v(t) ? !1 : t);
|
|
251
251
|
return /* @__PURE__ */ u(
|
|
252
252
|
w.input,
|
|
253
253
|
{
|
|
254
254
|
type: "checkbox",
|
|
255
255
|
"aria-hidden": !0,
|
|
256
|
-
defaultChecked: l ??
|
|
256
|
+
defaultChecked: l ?? c.current,
|
|
257
257
|
required: f,
|
|
258
258
|
disabled: d,
|
|
259
259
|
name: b,
|
|
260
260
|
value: k,
|
|
261
|
-
form:
|
|
261
|
+
form: i,
|
|
262
262
|
...a,
|
|
263
263
|
tabIndex: -1,
|
|
264
264
|
ref: m,
|
|
@@ -278,17 +278,17 @@ var H = "CheckboxBubbleInput", W = h.forwardRef(
|
|
|
278
278
|
);
|
|
279
279
|
}
|
|
280
280
|
);
|
|
281
|
-
|
|
281
|
+
K.displayName = H;
|
|
282
282
|
function le(e) {
|
|
283
283
|
return typeof e == "function";
|
|
284
284
|
}
|
|
285
285
|
function v(e) {
|
|
286
286
|
return e === "indeterminate";
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function W(e) {
|
|
289
289
|
return v(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
290
290
|
}
|
|
291
|
-
const
|
|
291
|
+
const de = z(
|
|
292
292
|
({
|
|
293
293
|
ariaLabelledBy: e,
|
|
294
294
|
className: a,
|
|
@@ -301,14 +301,14 @@ const ye = z(
|
|
|
301
301
|
theme: d,
|
|
302
302
|
title: b,
|
|
303
303
|
variant: k,
|
|
304
|
-
onChange:
|
|
304
|
+
onChange: i,
|
|
305
305
|
...p
|
|
306
306
|
}, x) => {
|
|
307
|
-
const [m, C] = oe(o ?? !1), g = V(),
|
|
308
|
-
(
|
|
309
|
-
C(
|
|
307
|
+
const [m, C] = oe(o ?? !1), g = V(), c = X(
|
|
308
|
+
(s) => {
|
|
309
|
+
C(s), i?.(s);
|
|
310
310
|
},
|
|
311
|
-
[
|
|
311
|
+
[i, C]
|
|
312
312
|
);
|
|
313
313
|
return /* @__PURE__ */ B("div", { className: "flex items-center gap-2", "data-theme": d, children: [
|
|
314
314
|
/* @__PURE__ */ u(
|
|
@@ -328,9 +328,9 @@ const ye = z(
|
|
|
328
328
|
checked: m
|
|
329
329
|
})
|
|
330
330
|
),
|
|
331
|
-
onCheckedChange:
|
|
331
|
+
onCheckedChange: c,
|
|
332
332
|
...p,
|
|
333
|
-
children: /* @__PURE__ */ u(D, { children: /* @__PURE__ */ u(I, { className: "w-4 h-4 stroke-2" }) })
|
|
333
|
+
children: /* @__PURE__ */ u(D, { children: /* @__PURE__ */ u(I, { className: "w-4 h-4 stroke-2 civo:text-slate-700" }) })
|
|
334
334
|
}
|
|
335
335
|
),
|
|
336
336
|
t ? /* @__PURE__ */ u(
|
|
@@ -348,6 +348,7 @@ const ye = z(
|
|
|
348
348
|
] });
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
|
+
de.displayName = "KonstructCheckbox";
|
|
351
352
|
export {
|
|
352
|
-
|
|
353
|
+
de as Checkbox
|
|
353
354
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as r } from "../../index-
|
|
1
|
+
import { c as r } from "../../index-D29mdTf5.js";
|
|
2
2
|
const t = r(
|
|
3
3
|
[
|
|
4
4
|
"cursor-pointer",
|
|
@@ -12,7 +12,6 @@ const t = r(
|
|
|
12
12
|
"transition-all",
|
|
13
13
|
"text-white",
|
|
14
14
|
"border-kubefirst-primary",
|
|
15
|
-
"colony:border-red-700",
|
|
16
15
|
"civo:border-zinc-400"
|
|
17
16
|
],
|
|
18
17
|
{
|
|
@@ -30,8 +29,8 @@ const t = r(
|
|
|
30
29
|
checked: !0,
|
|
31
30
|
class: [
|
|
32
31
|
"bg-kubefirst-primary",
|
|
33
|
-
"
|
|
34
|
-
|
|
32
|
+
"civo:bg-aurora-500",
|
|
33
|
+
"civo:border-aurora-500"
|
|
35
34
|
]
|
|
36
35
|
}
|
|
37
36
|
],
|
|
@@ -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-BXuxPoz7.js";
|
|
3
|
+
import { V as l } from "../../index-iXyXtdgP.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-D3xzCzcO.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-D3xzCzcO.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-D3xzCzcO.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,29 +1,29 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as i, useContext as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { cn as
|
|
2
|
+
import { forwardRef as i, useContext as c, useCallback as l } from "react";
|
|
3
|
+
import { _ as o } from "../../../index-D3xzCzcO.js";
|
|
4
|
+
import { cn as p } from "../../../utils/index.js";
|
|
5
5
|
import { CommandContext as u } from "../contexts/Command.context.js";
|
|
6
|
-
const f = i(({ className:
|
|
7
|
-
const { setOpen: t } =
|
|
6
|
+
const f = i(({ className: n, onSelect: e, ...r }, a) => {
|
|
7
|
+
const { setOpen: t } = c(u), s = l(
|
|
8
8
|
(m) => {
|
|
9
|
-
e
|
|
9
|
+
e?.(m), t(!1);
|
|
10
10
|
},
|
|
11
11
|
[t, e]
|
|
12
12
|
);
|
|
13
13
|
return /* @__PURE__ */ d(
|
|
14
|
-
|
|
14
|
+
o.Item,
|
|
15
15
|
{
|
|
16
|
-
ref:
|
|
17
|
-
className:
|
|
16
|
+
ref: a,
|
|
17
|
+
className: p(
|
|
18
18
|
"relative flex cursor-pointer gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
19
|
-
|
|
19
|
+
n
|
|
20
20
|
),
|
|
21
|
-
onSelect:
|
|
22
|
-
...
|
|
21
|
+
onSelect: s,
|
|
22
|
+
...r
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
});
|
|
26
|
-
f.displayName =
|
|
26
|
+
f.displayName = o.Item.displayName;
|
|
27
27
|
export {
|
|
28
28
|
f as CommandItem
|
|
29
29
|
};
|
|
@@ -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-D3xzCzcO.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-D3xzCzcO.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-BXuxPoz7.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-BPcqkRZd.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
|
-
import { O as a } from "../../../index-
|
|
3
|
+
import { O as a } from "../../../index-BXuxPoz7.js";
|
|
4
4
|
import { cn as i } from "../../../utils/index.js";
|
|
5
5
|
const m = d(({ className: t, ...e }, o) => /* @__PURE__ */ s(
|
|
6
6
|
a,
|