@konstructio/ui 0.1.2-alpha.5 → 0.1.2-alpha.51
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-VYaRRJBZ.js → Combination-BtmnusWq.js} +141 -138
- package/dist/DatePicker.css +1 -1
- package/dist/Modal-CjC-CIJ8.js +99 -0
- package/dist/assets/icons/index.js +7 -0
- package/dist/chevron-down-DgT-uSF9.js +5 -0
- package/dist/chevron-right-DYvXLeql.js +7 -0
- package/dist/chevron-up-DEfvgPCw.js +54 -0
- package/dist/chevron-up-DrQr2Fwd.js +5 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +81 -53
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +41 -44
- package/dist/components/Badge/Badge.variants.js +52 -13
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +3 -3
- package/dist/components/Breadcrumb/components/Item/Item.js +22 -22
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +25 -14
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.variants.js +108 -98
- package/dist/components/Card/Card.variants.js +7 -12
- package/dist/components/Checkbox/Checkbox.js +108 -105
- package/dist/components/Checkbox/Checkbox.variants.js +34 -7
- 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/Counter/Counter.js +210 -0
- package/dist/components/Counter/Counter.variants.js +70 -0
- package/dist/components/Datepicker/DatePicker.js +1587 -1353
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/Filter.variants.js +8 -7
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -45
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +2 -2
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
- package/dist/components/Filter/components/ResetButton/ResetButton.js +15 -12
- package/dist/components/Filter/events/index.js +3 -3
- package/dist/components/ImageUpload/ImageUpload.js +221 -0
- package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
- package/dist/components/Input/Input.js +185 -118
- package/dist/components/Input/Input.variants.js +24 -19
- package/dist/components/Loading/Loading.js +1 -7
- 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/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +34 -0
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +30 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +30 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +38 -0
- package/dist/components/MultiSelectDropdown/components/List/List.js +30 -0
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +25 -0
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +119 -0
- package/dist/components/MultiSelectDropdown/components/index.js +8 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +13 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +138 -0
- package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +32 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +46 -0
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +36 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +690 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +60 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +651 -0
- package/dist/components/PhoneNumberInput/components/index.js +6 -0
- package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6144 -0
- package/dist/components/PhoneNumberInput/utils/index.js +11 -0
- package/dist/components/PieChart/PieChart.js +463 -482
- package/dist/components/Radio/Radio.js +47 -44
- package/dist/components/Radio/Radio.variants.js +12 -8
- package/dist/components/RadioCard/RadioCard.variants.js +1 -6
- package/dist/components/RadioGroup/RadioGroup.js +10 -10
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +48 -0
- package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +17 -11
- package/dist/components/Select/components/List/List.js +172 -0
- package/dist/components/{Dropdown → Select}/components/List/List.variants.js +11 -8
- package/dist/components/Select/components/ListItem/ListItem.js +117 -0
- package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +5 -4
- package/dist/components/Select/components/Wrapper.js +226 -0
- package/dist/components/Select/constants/index.js +4 -0
- package/dist/components/Select/constants/pagination.js +4 -0
- package/dist/components/Select/contexts/index.js +6 -0
- package/dist/components/Select/contexts/select.context.js +36 -0
- package/dist/components/Select/contexts/select.hook.js +11 -0
- package/dist/components/Select/contexts/select.provider.js +58 -0
- package/dist/components/Select/hooks/useNavigationList.js +50 -0
- package/dist/components/Select/hooks/useSelect.js +103 -0
- package/dist/components/Sidebar/Sidebar.variants.js +2 -2
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +156 -129
- package/dist/components/Switch/Switch.variants.js +19 -10
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +4 -3
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +1 -0
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +49 -98
- package/dist/components/TimePicker/TimePicker.js +1 -1
- package/dist/components/TimePicker/TimePicker.variants.js +26 -14
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +57 -35
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +53 -45
- package/dist/components/Toast/Toast.js +283 -256
- package/dist/components/Toast/Toast.variants.js +37 -24
- package/dist/components/Tooltip/Tooltip.js +15 -14
- package/dist/components/Tooltip/Tooltip.variants.js +5 -4
- package/dist/components/Typography/Typography.js +23 -25
- package/dist/components/Typography/Typography.variants.js +55 -52
- package/dist/components/VirtualizedTable/VirtualizedTable.js +97 -71
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +95 -33
- package/dist/components/VirtualizedTable/components/Body/Body.js +73 -21
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +94 -91
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +20 -20
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +61 -44
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +33 -21
- package/dist/components/VirtualizedTable/components/Header/Header.js +61 -41
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +43 -22
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +106 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1858
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
- package/dist/components/VirtualizedTable/components/index.js +8 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +68 -761
- package/dist/components/index.js +94 -86
- package/dist/contexts/theme.provider.js +0 -1
- package/dist/{createLucideIcon-D2CN7Ma9.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
- package/dist/{index-C1g_chDT.js → index-AV6ZtGhy.js} +2 -2
- package/dist/index-BG8O18ZY.js +93 -0
- package/dist/index-BKjcReYh.js +55 -0
- package/dist/{index-N2OStZoU.js → index-BOE_3f_Z.js} +4 -25
- package/dist/{index-Cd2vhaop.js → index-BlSRBdPy.js} +5 -6
- package/dist/index-BmVmDQGH.js +662 -0
- package/dist/index-BvoZGpli.js +60 -0
- package/dist/index-Byr10W8m.js +1873 -0
- package/dist/{index-Dx2grAuN.js → index-CSWGJT-v.js} +0 -20
- package/dist/index-CeZcoQDw.js +479 -0
- package/dist/index-D6KzX_ef.js +135 -0
- package/dist/{index-B7t8D14s.js → index-D9SSJ6om.js} +4 -4
- package/dist/index-DKfEnhKr.js +200 -0
- package/dist/index-DLcqcWxM.js +29 -0
- package/dist/{index-ti1b9kqV.js → index-DMb4KD0b.js} +4 -4
- package/dist/{index-BAEWsOG1.js → index-DtEcCIrM.js} +1 -1
- package/dist/{index-bwWKd82e.js → index-Dy59FQl5.js} +1 -1
- package/dist/{index-C84F4YyO.js → index-gSPwC-1I.js} +10 -11
- package/dist/{index-Bnb0ezr3.js → index-vcSp8YRZ.js} +11 -12
- package/dist/index.d.ts +2142 -99
- package/dist/index.js +116 -106
- package/dist/libphonenumber-FTwQ9nyV.js +11549 -0
- package/dist/loader-juvMSJ9L.js +5 -0
- package/dist/package.json +43 -33
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +194 -168
- package/dist/ui/theme.css +27 -0
- package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
- package/dist/utils/index.js +534 -501
- package/dist/x-BXShoIAM.js +8 -0
- package/dist/{x-4F_5p77m.js → x-Eoa9FJjA.js} +1 -1
- package/package.json +43 -33
- package/dist/Modal-D-NOEWMX.js +0 -98
- package/dist/chevron-down-MZvQoT2F.js +0 -11
- package/dist/chevron-right-VYBOBhRt.js +0 -19
- package/dist/components/Dropdown/Dropdown.js +0 -42
- package/dist/components/Dropdown/components/List/List.js +0 -79
- package/dist/components/Dropdown/components/ListItem/ListItem.js +0 -67
- package/dist/components/Dropdown/components/Wrapper.js +0 -205
- package/dist/components/Dropdown/contexts/dropdown.context.js +0 -19
- package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
- package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -30
- package/dist/components/Dropdown/contexts/index.js +0 -6
- package/dist/components/Dropdown/hooks/useDropdown.js +0 -58
- package/dist/components/Dropdown/hooks/useNavigationList.js +0 -62
- package/dist/components/NumberInput/NumberInput.js +0 -179
- package/dist/components/NumberInput/NumberInput.variants.js +0 -50
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
- package/dist/index-BITvcJAz.js +0 -423
- package/dist/index-BfXxHr_2.js +0 -125
- package/dist/index-Cvx4lqTq.js +0 -47
- package/dist/index-DBbEcSUG.js +0 -31
- package/dist/index-DQH6odE9.js +0 -82
- package/dist/index-DzIBBMjs.js +0 -436
- package/dist/index-os7vysFS.js +0 -131
- /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
- /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
|
@@ -1,53 +1,52 @@
|
|
|
1
1
|
import { jsx as u, jsxs as B, Fragment as U } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as m 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-
|
|
4
|
+
import { u as L } from "../../index-DLcqcWxM.js";
|
|
5
|
+
import { c as J, P as R, a as Q, b as j } from "../../index-DKfEnhKr.js";
|
|
6
6
|
import { u as Y } from "../../index-BZPx6jYI.js";
|
|
7
|
-
import { u as Z } from "../../index-
|
|
8
|
-
import { P as ee } from "../../index-
|
|
9
|
-
import { P as w } from "../../index-BITvcJAz.js";
|
|
7
|
+
import { u as Z } from "../../index-DtEcCIrM.js";
|
|
8
|
+
import { P as ee } from "../../index-AV6ZtGhy.js";
|
|
10
9
|
import { cn as T } from "../../utils/index.js";
|
|
11
10
|
import { checkboxVariants as te, labelVariants as re } from "./Checkbox.variants.js";
|
|
12
11
|
import { useToggle as oe } from "../../hooks/useToggle.js";
|
|
13
|
-
import { P as y } from "../../index-
|
|
14
|
-
function
|
|
15
|
-
return
|
|
16
|
-
for (var
|
|
17
|
-
var
|
|
18
|
-
for (var
|
|
19
|
-
Object.prototype.hasOwnProperty.call(
|
|
12
|
+
import { P as y } from "../../index-BOE_3f_Z.js";
|
|
13
|
+
function E() {
|
|
14
|
+
return E = Object.assign || function(e) {
|
|
15
|
+
for (var c = 1; c < arguments.length; c++) {
|
|
16
|
+
var n = arguments[c];
|
|
17
|
+
for (var r in n)
|
|
18
|
+
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
20
19
|
}
|
|
21
20
|
return e;
|
|
22
|
-
},
|
|
21
|
+
}, E.apply(this, arguments);
|
|
23
22
|
}
|
|
24
|
-
function ne(e,
|
|
23
|
+
function ne(e, c) {
|
|
25
24
|
if (e == null) return {};
|
|
26
|
-
var
|
|
25
|
+
var n = ce(e, c), r, o;
|
|
27
26
|
if (Object.getOwnPropertySymbols) {
|
|
28
27
|
var t = Object.getOwnPropertySymbols(e);
|
|
29
|
-
for (
|
|
30
|
-
|
|
28
|
+
for (o = 0; o < t.length; o++)
|
|
29
|
+
r = t[o], !(c.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
31
30
|
}
|
|
32
|
-
return
|
|
31
|
+
return n;
|
|
33
32
|
}
|
|
34
|
-
function
|
|
33
|
+
function ce(e, c) {
|
|
35
34
|
if (e == null) return {};
|
|
36
|
-
var
|
|
37
|
-
for (t = 0; t <
|
|
38
|
-
|
|
39
|
-
return
|
|
35
|
+
var n = {}, r = Object.keys(e), o, t;
|
|
36
|
+
for (t = 0; t < r.length; t++)
|
|
37
|
+
o = r[t], !(c.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
38
|
+
return n;
|
|
40
39
|
}
|
|
41
|
-
var I = z(function(e,
|
|
42
|
-
var
|
|
43
|
-
return /* @__PURE__ */ S.createElement("svg",
|
|
44
|
-
ref:
|
|
40
|
+
var I = z(function(e, c) {
|
|
41
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, o = e.size, t = o === void 0 ? 24 : o, l = ne(e, ["color", "size"]);
|
|
42
|
+
return /* @__PURE__ */ S.createElement("svg", E({
|
|
43
|
+
ref: c,
|
|
45
44
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46
45
|
width: t,
|
|
47
46
|
height: t,
|
|
48
47
|
viewBox: "0 0 24 24",
|
|
49
48
|
fill: "none",
|
|
50
|
-
stroke:
|
|
49
|
+
stroke: r,
|
|
51
50
|
strokeWidth: "2",
|
|
52
51
|
strokeLinecap: "round",
|
|
53
52
|
strokeLinejoin: "round"
|
|
@@ -60,13 +59,13 @@ I.propTypes = {
|
|
|
60
59
|
size: y.oneOfType([y.string, y.number])
|
|
61
60
|
};
|
|
62
61
|
I.displayName = "Check";
|
|
63
|
-
var P = "Checkbox", [
|
|
62
|
+
var P = "Checkbox", [ae, ye] = J(P), [se, N] = ae(P);
|
|
64
63
|
function ie(e) {
|
|
65
64
|
const {
|
|
66
|
-
__scopeCheckbox:
|
|
67
|
-
checked:
|
|
68
|
-
children:
|
|
69
|
-
defaultChecked:
|
|
65
|
+
__scopeCheckbox: c,
|
|
66
|
+
checked: n,
|
|
67
|
+
children: r,
|
|
68
|
+
defaultChecked: o,
|
|
70
69
|
disabled: t,
|
|
71
70
|
form: l,
|
|
72
71
|
name: f,
|
|
@@ -76,40 +75,40 @@ function ie(e) {
|
|
|
76
75
|
// @ts-expect-error
|
|
77
76
|
internal_do_not_use_render: i
|
|
78
77
|
} = e, [p, x] = Q({
|
|
79
|
-
prop:
|
|
80
|
-
defaultProp:
|
|
78
|
+
prop: n,
|
|
79
|
+
defaultProp: o ?? !1,
|
|
81
80
|
onChange: d,
|
|
82
81
|
caller: P
|
|
83
|
-
}), [
|
|
82
|
+
}), [h, C] = m.useState(null), [g, a] = m.useState(null), s = m.useRef(!1), _ = h ? !!l || !!h.closest("form") : (
|
|
84
83
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
85
84
|
!0
|
|
86
|
-
),
|
|
85
|
+
), w = {
|
|
87
86
|
checked: p,
|
|
88
87
|
disabled: t,
|
|
89
88
|
setChecked: x,
|
|
90
|
-
control:
|
|
89
|
+
control: h,
|
|
91
90
|
setControl: C,
|
|
92
91
|
name: f,
|
|
93
92
|
form: l,
|
|
94
93
|
value: k,
|
|
95
94
|
hasConsumerStoppedPropagationRef: s,
|
|
96
95
|
required: b,
|
|
97
|
-
defaultChecked: v(
|
|
96
|
+
defaultChecked: v(o) ? !1 : o,
|
|
98
97
|
isFormControl: _,
|
|
99
98
|
bubbleInput: g,
|
|
100
|
-
setBubbleInput:
|
|
99
|
+
setBubbleInput: a
|
|
101
100
|
};
|
|
102
101
|
return /* @__PURE__ */ u(
|
|
103
102
|
se,
|
|
104
103
|
{
|
|
105
|
-
scope:
|
|
106
|
-
...
|
|
107
|
-
children: le(i) ? i(
|
|
104
|
+
scope: c,
|
|
105
|
+
...w,
|
|
106
|
+
children: le(i) ? i(w) : r
|
|
108
107
|
}
|
|
109
108
|
);
|
|
110
109
|
}
|
|
111
|
-
var M = "CheckboxTrigger", q =
|
|
112
|
-
({ __scopeCheckbox: e, onKeyDown:
|
|
110
|
+
var M = "CheckboxTrigger", q = m.forwardRef(
|
|
111
|
+
({ __scopeCheckbox: e, onKeyDown: c, onClick: n, ...r }, o) => {
|
|
113
112
|
const {
|
|
114
113
|
control: t,
|
|
115
114
|
value: l,
|
|
@@ -120,16 +119,16 @@ var M = "CheckboxTrigger", q = h.forwardRef(
|
|
|
120
119
|
setChecked: i,
|
|
121
120
|
hasConsumerStoppedPropagationRef: p,
|
|
122
121
|
isFormControl: x,
|
|
123
|
-
bubbleInput:
|
|
124
|
-
} = N(M, e), C = L(
|
|
125
|
-
return
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
122
|
+
bubbleInput: h
|
|
123
|
+
} = N(M, e), C = L(o, k), g = m.useRef(d);
|
|
124
|
+
return m.useEffect(() => {
|
|
125
|
+
const a = t?.form;
|
|
126
|
+
if (a) {
|
|
128
127
|
const s = () => i(g.current);
|
|
129
|
-
return
|
|
128
|
+
return a.addEventListener("reset", s), () => a.removeEventListener("reset", s);
|
|
130
129
|
}
|
|
131
130
|
}, [t, i]), /* @__PURE__ */ u(
|
|
132
|
-
|
|
131
|
+
R.button,
|
|
133
132
|
{
|
|
134
133
|
type: "button",
|
|
135
134
|
role: "checkbox",
|
|
@@ -139,25 +138,25 @@ var M = "CheckboxTrigger", q = h.forwardRef(
|
|
|
139
138
|
"data-disabled": f ? "" : void 0,
|
|
140
139
|
disabled: f,
|
|
141
140
|
value: l,
|
|
142
|
-
...
|
|
141
|
+
...r,
|
|
143
142
|
ref: C,
|
|
144
|
-
onKeyDown: j(
|
|
145
|
-
|
|
143
|
+
onKeyDown: j(c, (a) => {
|
|
144
|
+
a.key === "Enter" && a.preventDefault();
|
|
146
145
|
}),
|
|
147
|
-
onClick: j(
|
|
148
|
-
i((s) => v(s) ? !0 : !s),
|
|
146
|
+
onClick: j(n, (a) => {
|
|
147
|
+
i((s) => v(s) ? !0 : !s), h && x && (p.current = a.isPropagationStopped(), p.current || a.stopPropagation());
|
|
149
148
|
})
|
|
150
149
|
}
|
|
151
150
|
);
|
|
152
151
|
}
|
|
153
152
|
);
|
|
154
153
|
q.displayName = M;
|
|
155
|
-
var A =
|
|
156
|
-
(e,
|
|
154
|
+
var A = m.forwardRef(
|
|
155
|
+
(e, c) => {
|
|
157
156
|
const {
|
|
158
|
-
__scopeCheckbox:
|
|
159
|
-
name:
|
|
160
|
-
checked:
|
|
157
|
+
__scopeCheckbox: n,
|
|
158
|
+
name: r,
|
|
159
|
+
checked: o,
|
|
161
160
|
defaultChecked: t,
|
|
162
161
|
required: l,
|
|
163
162
|
disabled: f,
|
|
@@ -169,13 +168,13 @@ var A = h.forwardRef(
|
|
|
169
168
|
return /* @__PURE__ */ u(
|
|
170
169
|
ie,
|
|
171
170
|
{
|
|
172
|
-
__scopeCheckbox:
|
|
173
|
-
checked:
|
|
171
|
+
__scopeCheckbox: n,
|
|
172
|
+
checked: o,
|
|
174
173
|
defaultChecked: t,
|
|
175
174
|
disabled: f,
|
|
176
175
|
required: l,
|
|
177
176
|
onCheckedChange: b,
|
|
178
|
-
name:
|
|
177
|
+
name: r,
|
|
179
178
|
form: k,
|
|
180
179
|
value: d,
|
|
181
180
|
internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ B(U, { children: [
|
|
@@ -183,14 +182,14 @@ var A = h.forwardRef(
|
|
|
183
182
|
q,
|
|
184
183
|
{
|
|
185
184
|
...i,
|
|
186
|
-
ref:
|
|
187
|
-
__scopeCheckbox:
|
|
185
|
+
ref: c,
|
|
186
|
+
__scopeCheckbox: n
|
|
188
187
|
}
|
|
189
188
|
),
|
|
190
189
|
p && /* @__PURE__ */ u(
|
|
191
190
|
K,
|
|
192
191
|
{
|
|
193
|
-
__scopeCheckbox:
|
|
192
|
+
__scopeCheckbox: n
|
|
194
193
|
}
|
|
195
194
|
)
|
|
196
195
|
] })
|
|
@@ -199,20 +198,20 @@ var A = h.forwardRef(
|
|
|
199
198
|
}
|
|
200
199
|
);
|
|
201
200
|
A.displayName = P;
|
|
202
|
-
var F = "CheckboxIndicator", D =
|
|
203
|
-
(e,
|
|
204
|
-
const { __scopeCheckbox:
|
|
201
|
+
var F = "CheckboxIndicator", D = m.forwardRef(
|
|
202
|
+
(e, c) => {
|
|
203
|
+
const { __scopeCheckbox: n, forceMount: r, ...o } = e, t = N(F, n);
|
|
205
204
|
return /* @__PURE__ */ u(
|
|
206
205
|
ee,
|
|
207
206
|
{
|
|
208
|
-
present:
|
|
207
|
+
present: r || v(t.checked) || t.checked === !0,
|
|
209
208
|
children: /* @__PURE__ */ u(
|
|
210
|
-
|
|
209
|
+
R.span,
|
|
211
210
|
{
|
|
212
211
|
"data-state": W(t.checked),
|
|
213
212
|
"data-disabled": t.disabled ? "" : void 0,
|
|
214
|
-
...
|
|
215
|
-
ref:
|
|
213
|
+
...o,
|
|
214
|
+
ref: c,
|
|
216
215
|
style: { pointerEvents: "none", ...e.style }
|
|
217
216
|
}
|
|
218
217
|
)
|
|
@@ -221,11 +220,11 @@ var F = "CheckboxIndicator", D = h.forwardRef(
|
|
|
221
220
|
}
|
|
222
221
|
);
|
|
223
222
|
D.displayName = F;
|
|
224
|
-
var H = "CheckboxBubbleInput", K =
|
|
225
|
-
({ __scopeCheckbox: e, ...
|
|
223
|
+
var H = "CheckboxBubbleInput", K = m.forwardRef(
|
|
224
|
+
({ __scopeCheckbox: e, ...c }, n) => {
|
|
226
225
|
const {
|
|
227
|
-
control:
|
|
228
|
-
hasConsumerStoppedPropagationRef:
|
|
226
|
+
control: r,
|
|
227
|
+
hasConsumerStoppedPropagationRef: o,
|
|
229
228
|
checked: t,
|
|
230
229
|
defaultChecked: l,
|
|
231
230
|
required: f,
|
|
@@ -235,36 +234,36 @@ var H = "CheckboxBubbleInput", K = h.forwardRef(
|
|
|
235
234
|
form: i,
|
|
236
235
|
bubbleInput: p,
|
|
237
236
|
setBubbleInput: x
|
|
238
|
-
} = N(H, e),
|
|
239
|
-
|
|
237
|
+
} = N(H, e), h = L(n, x), C = Y(t), g = Z(r);
|
|
238
|
+
m.useEffect(() => {
|
|
240
239
|
const s = p;
|
|
241
240
|
if (!s) return;
|
|
242
241
|
const _ = window.HTMLInputElement.prototype, O = Object.getOwnPropertyDescriptor(
|
|
243
242
|
_,
|
|
244
243
|
"checked"
|
|
245
|
-
).set, $ = !
|
|
244
|
+
).set, $ = !o.current;
|
|
246
245
|
if (C !== t && O) {
|
|
247
246
|
const G = new Event("click", { bubbles: $ });
|
|
248
247
|
s.indeterminate = v(t), O.call(s, v(t) ? !1 : t), s.dispatchEvent(G);
|
|
249
248
|
}
|
|
250
|
-
}, [p, C, t,
|
|
251
|
-
const
|
|
249
|
+
}, [p, C, t, o]);
|
|
250
|
+
const a = m.useRef(v(t) ? !1 : t);
|
|
252
251
|
return /* @__PURE__ */ u(
|
|
253
|
-
|
|
252
|
+
R.input,
|
|
254
253
|
{
|
|
255
254
|
type: "checkbox",
|
|
256
255
|
"aria-hidden": !0,
|
|
257
|
-
defaultChecked: l ??
|
|
256
|
+
defaultChecked: l ?? a.current,
|
|
258
257
|
required: f,
|
|
259
258
|
disabled: d,
|
|
260
259
|
name: b,
|
|
261
260
|
value: k,
|
|
262
261
|
form: i,
|
|
263
|
-
...
|
|
262
|
+
...c,
|
|
264
263
|
tabIndex: -1,
|
|
265
|
-
ref:
|
|
264
|
+
ref: h,
|
|
266
265
|
style: {
|
|
267
|
-
...
|
|
266
|
+
...c.style,
|
|
268
267
|
...g,
|
|
269
268
|
position: "absolute",
|
|
270
269
|
pointerEvents: "none",
|
|
@@ -292,10 +291,10 @@ function W(e) {
|
|
|
292
291
|
const de = z(
|
|
293
292
|
({
|
|
294
293
|
ariaLabelledBy: e,
|
|
295
|
-
className:
|
|
296
|
-
defaultChecked:
|
|
297
|
-
disabled:
|
|
298
|
-
id:
|
|
294
|
+
className: c,
|
|
295
|
+
defaultChecked: n,
|
|
296
|
+
disabled: r,
|
|
297
|
+
id: o,
|
|
299
298
|
label: t,
|
|
300
299
|
labelClassName: l,
|
|
301
300
|
name: f,
|
|
@@ -305,44 +304,48 @@ const de = z(
|
|
|
305
304
|
onChange: i,
|
|
306
305
|
...p
|
|
307
306
|
}, x) => {
|
|
308
|
-
const [
|
|
307
|
+
const [h, C] = oe(n ?? !1), g = V(), a = X(
|
|
309
308
|
(s) => {
|
|
310
309
|
C(s), i?.(s);
|
|
311
310
|
},
|
|
312
311
|
[i, C]
|
|
313
312
|
);
|
|
314
|
-
return /* @__PURE__ */ B("div", { className: "flex items-center gap-
|
|
313
|
+
return /* @__PURE__ */ B("div", { className: "flex items-center gap-4", "data-theme": d, children: [
|
|
315
314
|
/* @__PURE__ */ u(
|
|
316
315
|
A,
|
|
317
316
|
{
|
|
318
|
-
id:
|
|
319
|
-
checked:
|
|
317
|
+
id: o ?? g,
|
|
318
|
+
checked: h,
|
|
320
319
|
ref: x,
|
|
321
320
|
name: f,
|
|
322
|
-
disabled:
|
|
321
|
+
disabled: r,
|
|
323
322
|
"aria-labelledby": e,
|
|
324
323
|
title: b,
|
|
325
324
|
className: T(
|
|
326
325
|
te({
|
|
327
|
-
className:
|
|
326
|
+
className: c,
|
|
328
327
|
variant: k,
|
|
329
|
-
checked:
|
|
328
|
+
checked: h
|
|
330
329
|
})
|
|
331
330
|
),
|
|
332
|
-
onCheckedChange:
|
|
331
|
+
onCheckedChange: a,
|
|
333
332
|
...p,
|
|
334
|
-
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" }) })
|
|
335
334
|
}
|
|
336
335
|
),
|
|
337
336
|
t ? /* @__PURE__ */ u(
|
|
338
337
|
"label",
|
|
339
338
|
{
|
|
340
|
-
htmlFor: f ??
|
|
339
|
+
htmlFor: f ?? o,
|
|
341
340
|
className: T(
|
|
342
341
|
re({
|
|
343
342
|
className: l
|
|
344
|
-
})
|
|
343
|
+
}),
|
|
344
|
+
{
|
|
345
|
+
"cursor-not-allowed": r
|
|
346
|
+
}
|
|
345
347
|
),
|
|
348
|
+
onClick: () => !r && a(!h),
|
|
346
349
|
children: t
|
|
347
350
|
}
|
|
348
351
|
) : null
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
const
|
|
1
|
+
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
|
+
const t = e(
|
|
3
3
|
[
|
|
4
4
|
"cursor-pointer",
|
|
5
5
|
"border",
|
|
@@ -12,8 +12,7 @@ const e = r(
|
|
|
12
12
|
"transition-all",
|
|
13
13
|
"text-slate-800",
|
|
14
14
|
"border-zinc-400",
|
|
15
|
-
"
|
|
16
|
-
"kubefirst:text-white"
|
|
15
|
+
"disabled:cursor-not-allowed"
|
|
17
16
|
],
|
|
18
17
|
{
|
|
19
18
|
variants: {
|
|
@@ -29,9 +28,31 @@ const e = r(
|
|
|
29
28
|
{
|
|
30
29
|
checked: !0,
|
|
31
30
|
class: [
|
|
31
|
+
"kubefirst:border-kubefirst-primary",
|
|
32
32
|
"kubefirst:bg-kubefirst-primary",
|
|
33
33
|
"bg-aurora-500",
|
|
34
|
-
"border-aurora-500"
|
|
34
|
+
"border-aurora-500",
|
|
35
|
+
"disabled:bg-zinc-300",
|
|
36
|
+
"disabled:border-transparent",
|
|
37
|
+
"*:text-metal-900",
|
|
38
|
+
"kubefirst:*:text-white",
|
|
39
|
+
"disabled:*:text-white",
|
|
40
|
+
"dark:disabled:*:text-metal-900",
|
|
41
|
+
"dark:disabled:bg-aurora-500/45"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
checked: !1,
|
|
46
|
+
class: [
|
|
47
|
+
"kubefirst:border-kubefirst-primary",
|
|
48
|
+
"kubefirst:text-white",
|
|
49
|
+
"border-zinc-400",
|
|
50
|
+
"disabled:bg-zinc-50",
|
|
51
|
+
"disabled:border-zinc-300",
|
|
52
|
+
"dark:disabled:bg-metal-800",
|
|
53
|
+
"dark:disabled:border-metal-600",
|
|
54
|
+
"dark:border-metal-600",
|
|
55
|
+
"dark:bg-metal-800"
|
|
35
56
|
]
|
|
36
57
|
}
|
|
37
58
|
],
|
|
@@ -39,8 +60,14 @@ const e = r(
|
|
|
39
60
|
variant: "default"
|
|
40
61
|
}
|
|
41
62
|
}
|
|
42
|
-
), a =
|
|
63
|
+
), a = e([
|
|
64
|
+
"select-none",
|
|
65
|
+
"cursor-pointer",
|
|
66
|
+
"text-sm",
|
|
67
|
+
"text-slate-800",
|
|
68
|
+
"dark:text-slate-50"
|
|
69
|
+
]);
|
|
43
70
|
export {
|
|
44
|
-
|
|
71
|
+
t as checkboxVariants,
|
|
45
72
|
a as labelVariants
|
|
46
73
|
};
|
|
@@ -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-CeZcoQDw.js";
|
|
3
|
+
import { V as l } from "../../index-BKjcReYh.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-D9SSJ6om.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-D9SSJ6om.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-D9SSJ6om.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-BOE_3f_Z.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 c, useCallback as l } from "react";
|
|
3
|
-
import { _ as o } from "../../../index-
|
|
3
|
+
import { _ as o } from "../../../index-D9SSJ6om.js";
|
|
4
4
|
import { cn as p } from "../../../utils/index.js";
|
|
5
5
|
import { CommandContext as u } from "../contexts/Command.context.js";
|
|
6
6
|
const f = i(({ className: n, onSelect: e, ...r }, a) => {
|
|
@@ -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-D9SSJ6om.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-D9SSJ6om.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,9 +1,9 @@
|
|
|
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-CeZcoQDw.js";
|
|
4
4
|
import { cn as m } from "../../../utils/index.js";
|
|
5
5
|
import { DialogOverlay as p } from "./DialogOverlay.js";
|
|
6
|
-
import { X as c } from "../../../x-
|
|
6
|
+
import { X as c } from "../../../x-Eoa9FJjA.js";
|
|
7
7
|
const f = i(({ className: e, children: s, ...n }, d) => /* @__PURE__ */ t(r, { children: [
|
|
8
8
|
/* @__PURE__ */ a(p, {}),
|
|
9
9
|
/* @__PURE__ */ t(
|
|
@@ -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-CeZcoQDw.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,
|