@konstructio/ui 0.1.2-alpha.105 → 0.1.2-alpha.106
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/{AlertDialogTrigger-BGo_acd5.js → AlertDialogTrigger-BOrb536P.js} +39 -39
- package/dist/{Breadcrumb-Cp3abB2w.js → Breadcrumb-DVBxqgW_.js} +2 -2
- package/dist/Checkbox-B20uoUKD.js +249 -0
- package/dist/{CommandInput-BLq69pOT.js → CommandInput-BWt6-vUK.js} +3 -3
- package/dist/{Counter-BV680M5r.js → Counter-DiQb-he2.js} +2 -2
- package/dist/{DayPicker-kweJz134.js → DayPicker-C22j0Y-u.js} +539 -518
- package/dist/{DropdownButton-DfNojmCW.js → DropdownButton-hCVYZ1LA.js} +5 -5
- package/dist/{FlagSelectorList-CkTR3j6O.js → FlagSelectorList-CnJjnsp6.js} +11 -8
- package/dist/{HamburgerTrigger-DRylBL2d.js → HamburgerTrigger-BT2yUUJ-.js} +2 -2
- package/dist/{ImageUpload-DiwymQcU.js → ImageUpload-DgCBCa5X.js} +1 -1
- package/dist/{Input-Cf44DzfE.js → Input-wp-rsCmX.js} +2 -2
- package/dist/{Modal-Dyn088X7.js → Modal-CkAf9UY7.js} +3 -3
- package/dist/{Switch-aPhL5rNG.js → Switch-CyJXptgc.js} +80 -77
- package/dist/{Toast-3NEz7LLa.js → Toast-DLJDExxw.js} +7 -6
- package/dist/{Wrapper-DP6Sxngx.js → Wrapper-B8Ja3k4j.js} +63 -63
- package/dist/{Wrapper-CVJSuYWx.js → Wrapper-CvDRHgN4.js} +3 -3
- package/dist/components/Alert/Alert.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/Autocomplete/hooks/useAutocomplete.js +27 -25
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -3
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.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 +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/Command/components/index.js +1 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +30 -28
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +23 -21
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1 -1
- package/dist/components/Drawer/Drawer.js +27 -25
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +51 -36
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +40 -38
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +42 -40
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +11 -11
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +2 -2
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +3 -3
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +30 -27
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +36 -33
- package/dist/components/Select/components/List/List.js +31 -31
- package/dist/components/Select/hooks/useNavigationList.js +2 -3
- package/dist/components/Select/hooks/useSelect.js +8 -8
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.variants.js +15 -7
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- 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/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +11 -11
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +16 -16
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +19 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +1 -1
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +3 -3
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +2 -2
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +10 -10
- package/dist/{components-Cf345jTv.js → components-MnxnhLqM.js} +1 -1
- package/dist/{constants-CxJJRVK3.js → constants-CSsr7_YV.js} +1 -1
- package/dist/{debounce-C5Ycjilj.js → debounce-BdyZeJQk.js} +2 -2
- package/dist/{dist-BaPW7qXd2.js → dist-B6ExqXM_2.js} +1 -1
- package/dist/{dist-BZNE2Tnx.js → dist-BbX4Nrk2.js} +1 -1
- package/dist/{dist-BdobXn93.js → dist-C87gsBDM.js} +1 -1
- package/dist/{dist-DDck_2lb.js → dist-CqNOgbfR.js} +117 -116
- package/dist/{dist-C3YVLapk.js → dist-DO3apbIh.js} +24 -24
- package/dist/{dist-CzKqHuqJ2.js → dist-DwxO2RoR2.js} +38 -38
- package/dist/{dist-DFCz63oC2.js → dist-Z0F27ATp2.js} +157 -158
- package/dist/{dist-AihTpWdF.js → dist-iUAHw-3y.js} +272 -272
- package/dist/{dist-tGUUcv8n.js → dist-oJzmvhAb.js} +114 -115
- package/dist/{dist-BlPTJNIm.js → dist-ut_BEHii.js} +1 -1
- package/dist/es2015-B_07N-UL.js +796 -0
- package/dist/index.js +10 -10
- package/dist/{isObject-BeFFiVJK.js → isObject-pLoSfdr0.js} +1 -1
- package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +2 -1
- package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
- package/dist/{libphonenumber-hGupNnJu.js → libphonenumber-BMq3Thej.js} +356 -347
- package/dist/package.json +21 -21
- package/dist/{phone-number.provider-BxQCTxp8.js → phone-number.provider-Dkq_p1Gi.js} +2 -2
- package/dist/{prop-types-CfEYxTbR.js → prop-types-BCUW56rg.js} +1 -1
- package/dist/{react-CvUtBTMg.js → react-B6Nc0Fib.js} +835 -827
- package/dist/{rolldown-runtime-Ck3dxwZt.js → rolldown-runtime-Dw9YIBcH.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table.provider-B0BafHuU.js → table.provider-DfZ74xMZ.js} +95 -95
- package/dist/{useBreadcrumb-DYfZL_2p.js → useBreadcrumb-Ds_9BeFz.js} +7 -6
- package/dist/{utils-B-BTGYA5.js → utils-DVYdP0CJ.js} +2 -3
- package/dist/{x-BI9jmc7e.js → x-Ierxf0uI.js} +2 -2
- package/package.json +21 -21
- package/dist/Checkbox-B_ngk9Dj.js +0 -249
- package/dist/es2015-DigR3dar.js +0 -795
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { a as A } from "./dist-xCbHbMLA.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import { i as
|
|
4
|
-
import { a as
|
|
5
|
-
import { Button as
|
|
2
|
+
import { t as m } from "./utils-Cx-WzRZF.js";
|
|
3
|
+
import { i as _, r as C } from "./dist-D-yS0HN8.js";
|
|
4
|
+
import { a as P, c as R, i as S, l as u, n as v, o as T, r as O, s as w, t as y } from "./dist-DO3apbIh.js";
|
|
5
|
+
import { Button as h } from "./components/Button/Button.js";
|
|
6
6
|
import * as n from "react";
|
|
7
|
-
import { forwardRef as
|
|
7
|
+
import { forwardRef as x } from "react";
|
|
8
8
|
import { jsx as i } from "react/jsx-runtime";
|
|
9
|
-
var
|
|
9
|
+
var b = Object.defineProperty, c = (l, o) => b(l, "name", {
|
|
10
10
|
value: o,
|
|
11
11
|
configurable: !0
|
|
12
|
-
}), [
|
|
12
|
+
}), [E, Y] = _("AlertDialog", [u]), s = u(), N = /* @__PURE__ */ c((l) => {
|
|
13
13
|
const { __scopeAlertDialog: o, ...r } = l, e = s(o);
|
|
14
|
-
return /* @__PURE__ */ i(
|
|
14
|
+
return /* @__PURE__ */ i(y, {
|
|
15
15
|
...e,
|
|
16
16
|
...r,
|
|
17
17
|
modal: !0
|
|
18
18
|
});
|
|
19
|
-
}, "AlertDialog"),
|
|
19
|
+
}, "AlertDialog"), j = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
20
20
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
21
|
-
return /* @__PURE__ */ i(
|
|
21
|
+
return /* @__PURE__ */ i(R, {
|
|
22
22
|
...t,
|
|
23
23
|
...a,
|
|
24
24
|
ref: r
|
|
25
25
|
});
|
|
26
|
-
}, "AlertDialogTrigger")),
|
|
26
|
+
}, "AlertDialogTrigger")), F = /* @__PURE__ */ c((l) => {
|
|
27
27
|
const { __scopeAlertDialog: o, ...r } = l, e = s(o);
|
|
28
|
-
return /* @__PURE__ */ i(
|
|
28
|
+
return /* @__PURE__ */ i(T, {
|
|
29
29
|
...e,
|
|
30
30
|
...r
|
|
31
31
|
});
|
|
32
|
-
}, "AlertDialogPortal"),
|
|
32
|
+
}, "AlertDialogPortal"), $ = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
33
33
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
34
|
-
return /* @__PURE__ */ i(
|
|
34
|
+
return /* @__PURE__ */ i(P, {
|
|
35
35
|
...t,
|
|
36
36
|
...a,
|
|
37
37
|
ref: r
|
|
38
38
|
});
|
|
39
|
-
}, "AlertDialogOverlay")), [
|
|
40
|
-
const { __scopeAlertDialog: e, children: a, ...t } = o, g = s(e), p =
|
|
41
|
-
return /* @__PURE__ */ i(
|
|
39
|
+
}, "AlertDialogOverlay")), [k, B] = E("AlertDialogContent"), H = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
40
|
+
const { __scopeAlertDialog: e, children: a, ...t } = o, g = s(e), p = n.useRef(null), d = A(r, p), f = n.useRef(null);
|
|
41
|
+
return /* @__PURE__ */ i(k, {
|
|
42
42
|
scope: e,
|
|
43
43
|
cancelRef: f,
|
|
44
|
-
children: /* @__PURE__ */ i(
|
|
44
|
+
children: /* @__PURE__ */ i(O, {
|
|
45
45
|
role: "alertdialog",
|
|
46
46
|
...g,
|
|
47
47
|
...t,
|
|
48
|
-
ref:
|
|
49
|
-
onOpenAutoFocus:
|
|
48
|
+
ref: d,
|
|
49
|
+
onOpenAutoFocus: C(t.onOpenAutoFocus, (D) => {
|
|
50
50
|
D.preventDefault(), f.current?.focus({ preventScroll: !0 });
|
|
51
51
|
}),
|
|
52
52
|
onPointerDownOutside: (D) => D.preventDefault(),
|
|
@@ -54,42 +54,42 @@ var x = Object.defineProperty, c = (l, o) => x(l, "name", {
|
|
|
54
54
|
children: a
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
|
-
}, "AlertDialogContent")),
|
|
57
|
+
}, "AlertDialogContent")), I = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
58
58
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
59
|
-
return /* @__PURE__ */ i(
|
|
59
|
+
return /* @__PURE__ */ i(w, {
|
|
60
60
|
...t,
|
|
61
61
|
...a,
|
|
62
62
|
ref: r
|
|
63
63
|
});
|
|
64
|
-
}, "AlertDialogTitle")),
|
|
64
|
+
}, "AlertDialogTitle")), L = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
65
65
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
66
|
-
return /* @__PURE__ */ i(
|
|
66
|
+
return /* @__PURE__ */ i(S, {
|
|
67
67
|
...t,
|
|
68
68
|
...a,
|
|
69
69
|
ref: r
|
|
70
70
|
});
|
|
71
|
-
}, "AlertDialogDescription")),
|
|
71
|
+
}, "AlertDialogDescription")), M = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
72
72
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
73
73
|
return /* @__PURE__ */ i(v, {
|
|
74
74
|
...t,
|
|
75
75
|
...a,
|
|
76
76
|
ref: r
|
|
77
77
|
});
|
|
78
|
-
}, "AlertDialogAction")),
|
|
79
|
-
const { __scopeAlertDialog: e, ...a } = o, { cancelRef: t } =
|
|
78
|
+
}, "AlertDialogAction")), q = "AlertDialogCancel", z = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
79
|
+
const { __scopeAlertDialog: e, ...a } = o, { cancelRef: t } = B(q, e), g = s(e), p = A(r, t);
|
|
80
80
|
return /* @__PURE__ */ i(v, {
|
|
81
81
|
...g,
|
|
82
82
|
...a,
|
|
83
83
|
ref: p
|
|
84
84
|
});
|
|
85
|
-
}, "AlertDialogCancel")),
|
|
85
|
+
}, "AlertDialogCancel")), Z = N, G = j, oo = F, eo = $, ro = H, to = M, ao = z, lo = I, io = L, no = x(({ "data-theme": l, className: o, text: r, variant: e, onOpen: a, onClick: t }, g) => /* @__PURE__ */ i(G, {
|
|
86
86
|
asChild: !0,
|
|
87
|
-
children: /* @__PURE__ */ i(
|
|
87
|
+
children: /* @__PURE__ */ i(h, {
|
|
88
88
|
ref: g,
|
|
89
89
|
type: "button",
|
|
90
90
|
variant: e,
|
|
91
91
|
"data-theme": l,
|
|
92
|
-
className:
|
|
92
|
+
className: m(o),
|
|
93
93
|
onClick: () => {
|
|
94
94
|
a(), t?.();
|
|
95
95
|
},
|
|
@@ -97,13 +97,13 @@ var x = Object.defineProperty, c = (l, o) => x(l, "name", {
|
|
|
97
97
|
})
|
|
98
98
|
}));
|
|
99
99
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
io as a,
|
|
101
|
+
Z as c,
|
|
102
|
+
ro as i,
|
|
103
|
+
lo as l,
|
|
104
|
+
to as n,
|
|
105
|
+
eo as o,
|
|
106
|
+
ao as r,
|
|
107
|
+
oo as s,
|
|
108
|
+
no as t
|
|
109
109
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as b } from "./rolldown-runtime-
|
|
2
|
-
import { t as y } from "./prop-types-
|
|
1
|
+
import { o as b } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { t as y } from "./prop-types-BCUW56rg.js";
|
|
3
3
|
import { t as u } from "./utils-Cx-WzRZF.js";
|
|
4
4
|
import { breadcrumbVariants as O, breadcrumbWrapperVariants as j } from "./components/Breadcrumb/Breadcrumb.variants.js";
|
|
5
5
|
import { BackButton as w } from "./components/Breadcrumb/components/BackButton/BackButton.js";
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { o as X } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { t as J } from "./prop-types-BCUW56rg.js";
|
|
3
|
+
import { a as U } from "./dist-xCbHbMLA.js";
|
|
4
|
+
import { t as N } from "./dist-CCdbu9GU.js";
|
|
5
|
+
import { t as O } from "./utils-Cx-WzRZF.js";
|
|
6
|
+
import { i as Q, r as S, t as Y } from "./dist-D-yS0HN8.js";
|
|
7
|
+
import { t as Z } from "./dist-BUocnzkM.js";
|
|
8
|
+
import { useToggle as ee } from "./hooks/useToggle.js";
|
|
9
|
+
import { t as te } from "./dist-pWlMx4Fi2.js";
|
|
10
|
+
import { checkboxVariants as re, labelVariants as oe } from "./components/Checkbox/Checkbox.variants.js";
|
|
11
|
+
import * as u from "react";
|
|
12
|
+
import q, { forwardRef as A, useId as ne } from "react";
|
|
13
|
+
import { Fragment as ce, jsx as p, jsxs as $ } from "react/jsx-runtime";
|
|
14
|
+
var w = /* @__PURE__ */ X(J());
|
|
15
|
+
function j() {
|
|
16
|
+
return j = Object.assign || function(e) {
|
|
17
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
18
|
+
var n = arguments[o];
|
|
19
|
+
for (var t in n) Object.prototype.hasOwnProperty.call(n, t) && (e[t] = n[t]);
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}, j.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
function ae(e, o) {
|
|
25
|
+
if (e == null) return {};
|
|
26
|
+
var n = se(e, o), t, r;
|
|
27
|
+
if (Object.getOwnPropertySymbols) {
|
|
28
|
+
var c = Object.getOwnPropertySymbols(e);
|
|
29
|
+
for (r = 0; r < c.length; r++)
|
|
30
|
+
t = c[r], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (n[t] = e[t]);
|
|
31
|
+
}
|
|
32
|
+
return n;
|
|
33
|
+
}
|
|
34
|
+
function se(e, o) {
|
|
35
|
+
if (e == null) return {};
|
|
36
|
+
var n = {}, t = Object.keys(e), r, c;
|
|
37
|
+
for (c = 0; c < t.length; c++)
|
|
38
|
+
r = t[c], !(o.indexOf(r) >= 0) && (n[r] = e[r]);
|
|
39
|
+
return n;
|
|
40
|
+
}
|
|
41
|
+
var B = A(function(e, o) {
|
|
42
|
+
var n = e.color, t = n === void 0 ? "currentColor" : n, r = e.size, c = r === void 0 ? 24 : r, a = ae(e, ["color", "size"]);
|
|
43
|
+
return /* @__PURE__ */ q.createElement("svg", j({
|
|
44
|
+
ref: o,
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
width: c,
|
|
47
|
+
height: c,
|
|
48
|
+
viewBox: "0 0 24 24",
|
|
49
|
+
fill: "none",
|
|
50
|
+
stroke: t,
|
|
51
|
+
strokeWidth: "2",
|
|
52
|
+
strokeLinecap: "round",
|
|
53
|
+
strokeLinejoin: "round"
|
|
54
|
+
}, a), /* @__PURE__ */ q.createElement("polyline", { points: "20 6 9 17 4 12" }));
|
|
55
|
+
});
|
|
56
|
+
B.propTypes = {
|
|
57
|
+
color: w.default.string,
|
|
58
|
+
size: w.default.oneOfType([w.default.string, w.default.number])
|
|
59
|
+
};
|
|
60
|
+
B.displayName = "Check";
|
|
61
|
+
var ie = Object.defineProperty, g = (e, o) => ie(e, "name", {
|
|
62
|
+
value: o,
|
|
63
|
+
configurable: !0
|
|
64
|
+
}), T = "Checkbox", [ue, je] = Q(T), [le, z] = ue(T);
|
|
65
|
+
function D(e) {
|
|
66
|
+
const { __scopeCheckbox: o, checked: n, children: t, defaultChecked: r, disabled: c, form: a, name: d, onCheckedChange: i, required: l, value: k = "on", internal_do_not_use_render: b } = e, [h, m] = Y({
|
|
67
|
+
prop: n,
|
|
68
|
+
defaultProp: r ?? !1,
|
|
69
|
+
onChange: i,
|
|
70
|
+
caller: T
|
|
71
|
+
}), [C, x] = u.useState(null), [y, R] = u.useState(null), I = u.useRef(!1), [s, f] = u.useReducer((_) => _ + 1, 0), P = C ? !!a || !!C.closest("form") : !0, E = {
|
|
72
|
+
checked: h,
|
|
73
|
+
disabled: c,
|
|
74
|
+
setChecked: m,
|
|
75
|
+
control: C,
|
|
76
|
+
setControl: x,
|
|
77
|
+
name: d,
|
|
78
|
+
form: a,
|
|
79
|
+
value: k,
|
|
80
|
+
hasConsumerStoppedPropagationRef: I,
|
|
81
|
+
userInteractionCount: s,
|
|
82
|
+
onUserInteraction: f,
|
|
83
|
+
required: l,
|
|
84
|
+
defaultChecked: v(r) ? !1 : r,
|
|
85
|
+
isFormControl: P,
|
|
86
|
+
bubbleInput: y,
|
|
87
|
+
setBubbleInput: R
|
|
88
|
+
};
|
|
89
|
+
return /* @__PURE__ */ p(le, {
|
|
90
|
+
scope: o,
|
|
91
|
+
...E,
|
|
92
|
+
children: H(b) ? b(E) : t
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
g(D, "CheckboxProvider");
|
|
96
|
+
var de = "CheckboxTrigger", fe = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ g(function({ __scopeCheckbox: o, onKeyDown: n, onClick: t, ...r }, c) {
|
|
97
|
+
const { control: a, value: d, disabled: i, checked: l, required: k, setControl: b, setChecked: h, hasConsumerStoppedPropagationRef: m, onUserInteraction: C, isFormControl: x, bubbleInput: y } = z(de, o), R = U(c, b), I = u.useRef(l);
|
|
98
|
+
return u.useEffect(() => {
|
|
99
|
+
const s = a?.form;
|
|
100
|
+
if (s) {
|
|
101
|
+
const f = /* @__PURE__ */ g(() => h(I.current), "reset");
|
|
102
|
+
return s.addEventListener("reset", f), () => s.removeEventListener("reset", f);
|
|
103
|
+
}
|
|
104
|
+
}, [a, h]), /* @__PURE__ */ p(N.button, {
|
|
105
|
+
type: "button",
|
|
106
|
+
role: "checkbox",
|
|
107
|
+
"aria-checked": v(l) ? "mixed" : l,
|
|
108
|
+
"aria-required": k,
|
|
109
|
+
"data-state": F(l),
|
|
110
|
+
"data-disabled": i ? "" : void 0,
|
|
111
|
+
disabled: i,
|
|
112
|
+
value: d,
|
|
113
|
+
...r,
|
|
114
|
+
ref: R,
|
|
115
|
+
onKeyDown: S(n, (s) => {
|
|
116
|
+
s.key === "Enter" && s.preventDefault();
|
|
117
|
+
}),
|
|
118
|
+
onClick: S(t, (s) => {
|
|
119
|
+
C(), h((f) => v(f) ? !0 : !f), y && x && (m.current = s.isPropagationStopped(), m.current || s.stopPropagation());
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
}, "CheckboxTrigger")), pe = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ g(function(o, n) {
|
|
123
|
+
const { __scopeCheckbox: t, name: r, checked: c, defaultChecked: a, required: d, disabled: i, value: l, onCheckedChange: k, form: b, ...h } = o;
|
|
124
|
+
return /* @__PURE__ */ p(D, {
|
|
125
|
+
__scopeCheckbox: t,
|
|
126
|
+
checked: c,
|
|
127
|
+
defaultChecked: a,
|
|
128
|
+
disabled: i,
|
|
129
|
+
required: d,
|
|
130
|
+
onCheckedChange: k,
|
|
131
|
+
name: r,
|
|
132
|
+
form: b,
|
|
133
|
+
value: l,
|
|
134
|
+
internal_do_not_use_render: ({ isFormControl: m }) => /* @__PURE__ */ $(ce, { children: [/* @__PURE__ */ p(fe, {
|
|
135
|
+
...h,
|
|
136
|
+
ref: n,
|
|
137
|
+
__scopeCheckbox: t
|
|
138
|
+
}), m && /* @__PURE__ */ p(ke, { __scopeCheckbox: t })] })
|
|
139
|
+
});
|
|
140
|
+
}, "Checkbox")), he = "CheckboxIndicator", be = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ g(function(o, n) {
|
|
141
|
+
const { __scopeCheckbox: t, forceMount: r, ...c } = o, a = z(he, t);
|
|
142
|
+
return /* @__PURE__ */ p(Z, {
|
|
143
|
+
present: r || v(a.checked) || a.checked === !0,
|
|
144
|
+
children: /* @__PURE__ */ p(N.span, {
|
|
145
|
+
"data-state": F(a.checked),
|
|
146
|
+
"data-disabled": a.disabled ? "" : void 0,
|
|
147
|
+
...c,
|
|
148
|
+
ref: n,
|
|
149
|
+
style: {
|
|
150
|
+
pointerEvents: "none",
|
|
151
|
+
...o.style
|
|
152
|
+
}
|
|
153
|
+
})
|
|
154
|
+
});
|
|
155
|
+
}, "CheckboxIndicator")), me = "CheckboxBubbleInput", ke = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ g(function({ __scopeCheckbox: o, onClick: n, ...t }, r) {
|
|
156
|
+
const { control: c, hasConsumerStoppedPropagationRef: a, userInteractionCount: d, checked: i, defaultChecked: l, required: k, disabled: b, name: h, value: m, form: C, bubbleInput: x, setBubbleInput: y } = z(me, o), R = U(r, y), I = te(c), s = u.useRef(!1), f = u.useRef(i), P = u.useRef(d);
|
|
157
|
+
u.useEffect(() => {
|
|
158
|
+
const _ = x;
|
|
159
|
+
if (!_) return;
|
|
160
|
+
const K = window.HTMLInputElement.prototype, L = Object.getOwnPropertyDescriptor(K, "checked").set, M = d !== P.current;
|
|
161
|
+
P.current = d;
|
|
162
|
+
const W = f.current !== i;
|
|
163
|
+
f.current = i;
|
|
164
|
+
const G = !(M && a.current);
|
|
165
|
+
if (W && L) {
|
|
166
|
+
s.current = !M;
|
|
167
|
+
const V = new Event("click", { bubbles: G });
|
|
168
|
+
_.indeterminate = v(i), L.call(_, v(i) ? !1 : i), _.dispatchEvent(V), s.current = !1;
|
|
169
|
+
}
|
|
170
|
+
}, [
|
|
171
|
+
x,
|
|
172
|
+
i,
|
|
173
|
+
a,
|
|
174
|
+
d
|
|
175
|
+
]);
|
|
176
|
+
const E = u.useRef(v(i) ? !1 : i);
|
|
177
|
+
return /* @__PURE__ */ p(N.input, {
|
|
178
|
+
type: "checkbox",
|
|
179
|
+
"aria-hidden": !0,
|
|
180
|
+
defaultChecked: l ?? E.current,
|
|
181
|
+
required: k,
|
|
182
|
+
disabled: b,
|
|
183
|
+
name: h,
|
|
184
|
+
value: m,
|
|
185
|
+
form: C,
|
|
186
|
+
...t,
|
|
187
|
+
tabIndex: -1,
|
|
188
|
+
ref: R,
|
|
189
|
+
onClick: S(n, (_) => {
|
|
190
|
+
s.current && _.stopPropagation();
|
|
191
|
+
}),
|
|
192
|
+
style: {
|
|
193
|
+
...t.style,
|
|
194
|
+
...I,
|
|
195
|
+
position: "absolute",
|
|
196
|
+
pointerEvents: "none",
|
|
197
|
+
opacity: 0,
|
|
198
|
+
margin: 0,
|
|
199
|
+
transform: "translateX(-100%)"
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
}, "CheckboxBubbleInput"));
|
|
203
|
+
function H(e) {
|
|
204
|
+
return typeof e == "function";
|
|
205
|
+
}
|
|
206
|
+
g(H, "isFunction");
|
|
207
|
+
function v(e) {
|
|
208
|
+
return e === "indeterminate";
|
|
209
|
+
}
|
|
210
|
+
g(v, "isIndeterminate");
|
|
211
|
+
function F(e) {
|
|
212
|
+
return v(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
213
|
+
}
|
|
214
|
+
g(F, "getState");
|
|
215
|
+
var Ce = A(({ ariaLabelledBy: e, checked: o, className: n, defaultChecked: t, disabled: r, id: c, label: a, labelClassName: d, labelWrapperClassName: i, name: l, theme: k, title: b, variant: h, onChange: m, ...C }, x) => {
|
|
216
|
+
const [y, R] = ee(t ?? !1), I = o !== void 0, s = I ? o : y, f = ne(), P = (E) => {
|
|
217
|
+
I || R(E), m?.(E);
|
|
218
|
+
};
|
|
219
|
+
return /* @__PURE__ */ $("div", {
|
|
220
|
+
className: O("flex items-center gap-4", i),
|
|
221
|
+
"data-theme": k,
|
|
222
|
+
children: [/* @__PURE__ */ p(pe, {
|
|
223
|
+
id: c ?? f,
|
|
224
|
+
checked: s,
|
|
225
|
+
ref: x,
|
|
226
|
+
name: l,
|
|
227
|
+
disabled: r,
|
|
228
|
+
"aria-labelledby": e,
|
|
229
|
+
title: b,
|
|
230
|
+
className: O(re({
|
|
231
|
+
className: n,
|
|
232
|
+
variant: h,
|
|
233
|
+
checked: s
|
|
234
|
+
})),
|
|
235
|
+
onCheckedChange: P,
|
|
236
|
+
...C,
|
|
237
|
+
children: /* @__PURE__ */ p(be, { children: /* @__PURE__ */ p(B, { className: "w-4 h-4 stroke-2" }) })
|
|
238
|
+
}), a ? /* @__PURE__ */ p("label", {
|
|
239
|
+
htmlFor: l ?? c,
|
|
240
|
+
className: O(oe({ className: d }), { "cursor-not-allowed": r }),
|
|
241
|
+
onClick: () => !r && P(!s),
|
|
242
|
+
children: a
|
|
243
|
+
}) : null]
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
Ce.displayName = "KonstructCheckbox";
|
|
247
|
+
export {
|
|
248
|
+
Ce as t
|
|
249
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as v } from "./rolldown-runtime-
|
|
2
|
-
import { t as y } from "./prop-types-
|
|
1
|
+
import { o as v } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { t as y } from "./prop-types-BCUW56rg.js";
|
|
3
3
|
import { t as c } from "./utils-Cx-WzRZF.js";
|
|
4
4
|
import { inputVariants as g, searchInconInputVariants as h } from "./components/Command/Command.variants.js";
|
|
5
|
-
import { t as m } from "./dist-
|
|
5
|
+
import { t as m } from "./dist-BbX4Nrk2.js";
|
|
6
6
|
import p, { forwardRef as u } from "react";
|
|
7
7
|
import { jsx as f, jsxs as b } from "react/jsx-runtime";
|
|
8
8
|
var a = /* @__PURE__ */ v(y());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as D } from "./rolldown-runtime-
|
|
2
|
-
import { t as R } from "./prop-types-
|
|
1
|
+
import { o as D } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { t as R } from "./prop-types-BCUW56rg.js";
|
|
3
3
|
import { t as P } from "./dist-DX0sBG3Q.js";
|
|
4
4
|
import { t as f } from "./utils-Cx-WzRZF.js";
|
|
5
5
|
import { Typography as F } from "./components/Typography/Typography.js";
|