@konstructio/ui 0.1.2-alpha.101 → 0.1.2-alpha.103
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-CgcsW_ta.js +109 -0
- package/dist/{Breadcrumb-Bmv0vzgt.js → Breadcrumb-Cp3abB2w.js} +1 -1
- package/dist/Checkbox-DzAx7n67.js +249 -0
- package/dist/{CommandInput-CYYsk_31.js → CommandInput-BnvRMfLI.js} +2 -2
- package/dist/{Counter-DWKyr569.js → Counter-CY0xGnVM.js} +2 -2
- package/dist/{DayPicker-CwO8Zff5.js → DayPicker-kweJz134.js} +750 -746
- package/dist/{DropdownButton-Beel5_gN.js → DropdownButton-DnlwdPmb.js} +1 -1
- package/dist/FlagSelectorList-BoYG-_It.js +852 -0
- package/dist/{HamburgerTrigger-7a4POUaM.js → HamburgerTrigger-1vOTrm8-.js} +2 -2
- package/dist/{Input-DG3snJf_.js → Input-CW0VwW2T.js} +4 -4
- package/dist/{Modal-Bcu6LLAp.js → Modal-Bfzggwlr.js} +2 -2
- package/dist/{Spinner-BegZ5yd7.js → Spinner-Lw9mZYhg.js} +1 -1
- package/dist/Switch-WBRr8uOJ.js +196 -0
- package/dist/Toast-ByH-l4XK.js +459 -0
- package/dist/{Wrapper-DwxJAkNQ.js → Wrapper-ClJ_Mham.js} +2 -2
- package/dist/{Wrapper-DtT29fc5.js → Wrapper-XeeD3av7.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- 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/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +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 +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 +2 -3
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +4 -3
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +23 -24
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +60 -65
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +35 -43
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +40 -45
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +33 -34
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +45 -51
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +56 -61
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -34
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +70 -75
- package/dist/components/Filter/contexts/filter.provider.js +8 -5
- package/dist/components/Filter/utils/index.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/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 +2 -2
- 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/PieChart/PieChart.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/components/List/List.js +1 -1
- 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/Spinner/Spinner.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- 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/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +87 -87
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +19 -19
- package/dist/components/VirtualizedTable/components/Body/Body.js +50 -49
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +67 -21
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +53 -63
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +10 -10
- package/dist/components/VirtualizedTable/components/Header/Header.js +47 -34
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +19 -15
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +10 -10
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +8 -8
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +10 -10
- package/dist/{components-CYt24H4n.js → components-BIHlj4yH.js} +1 -1
- package/dist/{debounce-KoeGNmnW.js → debounce-C5Ycjilj.js} +14 -14
- package/dist/dist-2bGlmy8N2.js +165 -0
- package/dist/dist-BiJrNvNo.js +193 -0
- package/dist/dist-BuFiu480.js +13 -0
- package/dist/dist-C2aTw0m62.js +1320 -0
- package/dist/{dist-DvoMuWKO2.js → dist-C2s4VX-42.js} +4 -4
- package/dist/dist-CT6d9xe7.js +441 -0
- package/dist/dist-CTvBzxW8.js +31 -0
- package/dist/dist-CVDFmWf2.js +358 -0
- package/dist/dist-D4FePjTS.js +194 -0
- package/dist/dist-DISvWx7U.js +99 -0
- package/dist/dist-Db6UeFo4.js +291 -0
- package/dist/{dist-DGO9opgu.js → dist-Dse3gSmZ.js} +49 -49
- package/dist/dist-j7FOUrFU.js +206 -0
- package/dist/{dist-C8NWUTUh.js → dist-l-aDnQZC.js} +1 -1
- package/dist/es2015-BWf6xQHm.js +222 -0
- package/dist/index.js +10 -10
- package/dist/{isObject-1ZmdWuhC.js → isObject-BeFFiVJK.js} +8 -8
- package/dist/lib/components/Alert/Alert.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +2 -2
- package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/Button/Button.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
- package/dist/lib/components/Card/Card.types.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/lib/components/Command/Command.types.d.ts +1 -1
- package/dist/lib/components/Counter/Counter.types.d.ts +1 -1
- package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +1 -1
- package/dist/lib/components/Drawer/Drawer.types.d.ts +1 -1
- package/dist/lib/components/Filter/Filter.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +2 -3
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
- package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +1 -2
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +1 -0
- package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +1 -1
- package/dist/lib/components/Input/Input.types.d.ts +1 -1
- package/dist/lib/components/LineChart/LineChart.types.d.ts +1 -1
- package/dist/lib/components/Loading/Loading.types.d.ts +1 -1
- package/dist/lib/components/Modal/Modal.types.d.ts +1 -1
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +1 -1
- package/dist/lib/components/Radio/Radio.types.d.ts +1 -1
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +1 -1
- package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +1 -1
- package/dist/lib/components/Range/Range.types.d.ts +1 -1
- package/dist/lib/components/Select/Select.types.d.ts +1 -1
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -2
- package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
- package/dist/lib/components/Slider/Slider.types.d.ts +1 -1
- package/dist/lib/components/Spinner/Spinner.types.d.ts +2 -2
- package/dist/lib/components/Stepper/Stepper.types.d.ts +1 -1
- package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +1 -1
- package/dist/lib/components/Switch/Switch.types.d.ts +1 -1
- package/dist/lib/components/Table/Table.types.d.ts +1 -1
- package/dist/lib/components/Tabs/Tabs.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +2 -2
- package/dist/lib/components/TagSelect/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TextArea/TextArea.types.d.ts +1 -1
- package/dist/lib/components/Toast/Toast.types.d.ts +1 -1
- package/dist/lib/components/Typography/Typography.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +27 -3
- package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +1 -0
- package/dist/lib/contexts/theme.context.d.ts +1 -1
- package/dist/lib/contexts/theme.hook.d.ts +1 -1
- package/dist/package.json +34 -33
- package/dist/{phone-number.provider-CJJOFYk-.js → phone-number.provider-BxQCTxp8.js} +457 -457
- package/dist/{prop-types-CaJpPVsa.js → prop-types-CfEYxTbR.js} +52 -52
- package/dist/styles.css +1 -1
- package/dist/{table.provider-9uUt5a-s.js → table.provider-2sAkE7z_.js} +395 -368
- package/dist/{utils-B6A9pnrH.js → utils-B-BTGYA5.js} +193 -193
- package/dist/{x-CESTrenk.js → x-BI9jmc7e.js} +1 -1
- package/package.json +34 -33
- package/dist/AlertDialogTrigger-HhbFOOUE.js +0 -124
- package/dist/Checkbox-B1rTwzR3.js +0 -240
- package/dist/FlagSelectorList-BARhzfj2.js +0 -848
- package/dist/Switch-1RGhhTtg.js +0 -178
- package/dist/Toast-CS-igZor.js +0 -467
- package/dist/dist-7edduNXi.js +0 -398
- package/dist/dist-BkYHh2kH.js +0 -408
- package/dist/dist-C6Cif8-U.js +0 -28
- package/dist/dist-CeuUxVmT.js +0 -13
- package/dist/dist-CfYOvauX.js +0 -125
- package/dist/dist-CktbIsHq.js +0 -264
- package/dist/dist-DGqWMRtc.js +0 -183
- package/dist/dist-DdFwUrO22.js +0 -11
- package/dist/dist-DnGj9MTf.js +0 -1692
- package/dist/dist-eAwtFCCA.js +0 -87
- /package/dist/{dist-AihTpWdF2.js → dist-AihTpWdF.js} +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { a as A } from "./dist-DqKFpce5.js";
|
|
2
|
+
import { t as d } from "./utils-Cx-WzRZF.js";
|
|
3
|
+
import { i as m, r as _ } from "./dist-D4FePjTS.js";
|
|
4
|
+
import { a as C, c as P, i as R, l as u, n as v, o as S, r as T, s as O, t as w } from "./dist-BiJrNvNo.js";
|
|
5
|
+
import { Button as y } from "./components/Button/Button.js";
|
|
6
|
+
import * as n from "react";
|
|
7
|
+
import { forwardRef as h } from "react";
|
|
8
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
9
|
+
var x = Object.defineProperty, c = (l, o) => x(l, "name", {
|
|
10
|
+
value: o,
|
|
11
|
+
configurable: !0
|
|
12
|
+
}), [b, X] = m("AlertDialog", [u]), s = u(), E = /* @__PURE__ */ c((l) => {
|
|
13
|
+
const { __scopeAlertDialog: o, ...r } = l, e = s(o);
|
|
14
|
+
return /* @__PURE__ */ i(w, {
|
|
15
|
+
...e,
|
|
16
|
+
...r,
|
|
17
|
+
modal: !0
|
|
18
|
+
});
|
|
19
|
+
}, "AlertDialog"), N = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
20
|
+
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
21
|
+
return /* @__PURE__ */ i(P, {
|
|
22
|
+
...t,
|
|
23
|
+
...a,
|
|
24
|
+
ref: r
|
|
25
|
+
});
|
|
26
|
+
}, "AlertDialogTrigger")), j = /* @__PURE__ */ c((l) => {
|
|
27
|
+
const { __scopeAlertDialog: o, ...r } = l, e = s(o);
|
|
28
|
+
return /* @__PURE__ */ i(S, {
|
|
29
|
+
...e,
|
|
30
|
+
...r
|
|
31
|
+
});
|
|
32
|
+
}, "AlertDialogPortal"), F = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
33
|
+
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
34
|
+
return /* @__PURE__ */ i(C, {
|
|
35
|
+
...t,
|
|
36
|
+
...a,
|
|
37
|
+
ref: r
|
|
38
|
+
});
|
|
39
|
+
}, "AlertDialogOverlay")), [$, k] = b("AlertDialogContent"), B = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
40
|
+
const { __scopeAlertDialog: e, children: a, ...t } = o, g = s(e), p = A(r, n.useRef(null)), f = n.useRef(null);
|
|
41
|
+
return /* @__PURE__ */ i($, {
|
|
42
|
+
scope: e,
|
|
43
|
+
cancelRef: f,
|
|
44
|
+
children: /* @__PURE__ */ i(T, {
|
|
45
|
+
role: "alertdialog",
|
|
46
|
+
...g,
|
|
47
|
+
...t,
|
|
48
|
+
ref: p,
|
|
49
|
+
onOpenAutoFocus: _(t.onOpenAutoFocus, (D) => {
|
|
50
|
+
D.preventDefault(), f.current?.focus({ preventScroll: !0 });
|
|
51
|
+
}),
|
|
52
|
+
onPointerDownOutside: (D) => D.preventDefault(),
|
|
53
|
+
onInteractOutside: (D) => D.preventDefault(),
|
|
54
|
+
children: a
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}, "AlertDialogContent")), H = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
58
|
+
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
59
|
+
return /* @__PURE__ */ i(O, {
|
|
60
|
+
...t,
|
|
61
|
+
...a,
|
|
62
|
+
ref: r
|
|
63
|
+
});
|
|
64
|
+
}, "AlertDialogTitle")), I = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
65
|
+
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
66
|
+
return /* @__PURE__ */ i(R, {
|
|
67
|
+
...t,
|
|
68
|
+
...a,
|
|
69
|
+
ref: r
|
|
70
|
+
});
|
|
71
|
+
}, "AlertDialogDescription")), L = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
72
|
+
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
73
|
+
return /* @__PURE__ */ i(v, {
|
|
74
|
+
...t,
|
|
75
|
+
...a,
|
|
76
|
+
ref: r
|
|
77
|
+
});
|
|
78
|
+
}, "AlertDialogAction")), M = "AlertDialogCancel", q = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
79
|
+
const { __scopeAlertDialog: e, ...a } = o, { cancelRef: t } = k(M, e), g = s(e), p = A(r, t);
|
|
80
|
+
return /* @__PURE__ */ i(v, {
|
|
81
|
+
...g,
|
|
82
|
+
...a,
|
|
83
|
+
ref: p
|
|
84
|
+
});
|
|
85
|
+
}, "AlertDialogCancel")), Y = E, z = N, Z = j, oo = F, eo = B, ro = L, to = q, ao = H, lo = I, io = h(({ "data-theme": l, className: o, text: r, variant: e, onOpen: a, onClick: t }, g) => /* @__PURE__ */ i(z, {
|
|
86
|
+
asChild: !0,
|
|
87
|
+
children: /* @__PURE__ */ i(y, {
|
|
88
|
+
ref: g,
|
|
89
|
+
type: "button",
|
|
90
|
+
variant: e,
|
|
91
|
+
"data-theme": l,
|
|
92
|
+
className: d(o),
|
|
93
|
+
onClick: () => {
|
|
94
|
+
a(), t?.();
|
|
95
|
+
},
|
|
96
|
+
children: r
|
|
97
|
+
})
|
|
98
|
+
}));
|
|
99
|
+
export {
|
|
100
|
+
lo as a,
|
|
101
|
+
Y as c,
|
|
102
|
+
eo as i,
|
|
103
|
+
ao as l,
|
|
104
|
+
ro as n,
|
|
105
|
+
oo as o,
|
|
106
|
+
to as r,
|
|
107
|
+
Z as s,
|
|
108
|
+
io as t
|
|
109
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as b } from "./rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
-
import { t as y } from "./prop-types-
|
|
2
|
+
import { t as y } from "./prop-types-CfEYxTbR.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-Ck3dxwZt.js";
|
|
2
|
+
import { t as J } from "./prop-types-CfEYxTbR.js";
|
|
3
|
+
import { a as U } from "./dist-DqKFpce5.js";
|
|
4
|
+
import { t as N } from "./dist-CVy-ulDZ.js";
|
|
5
|
+
import { t as O } from "./utils-Cx-WzRZF.js";
|
|
6
|
+
import { i as Q, r as S, t as Y } from "./dist-D4FePjTS.js";
|
|
7
|
+
import { t as Z } from "./dist-DISvWx7U.js";
|
|
8
|
+
import { t as ee } from "./dist-C2s4VX-42.js";
|
|
9
|
+
import { useToggle as te } from "./hooks/useToggle.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, useCallback as ne, useId as ce } from "react";
|
|
13
|
+
import { Fragment as ae, 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 se(e, o) {
|
|
25
|
+
if (e == null) return {};
|
|
26
|
+
var n = ie(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 ie(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 = se(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 ue = Object.defineProperty, x = (e, o) => ue(e, "name", {
|
|
62
|
+
value: o,
|
|
63
|
+
configurable: !0
|
|
64
|
+
}), T = "Checkbox", [le, Ne] = Q(T), [de, z] = le(T);
|
|
65
|
+
function D(e) {
|
|
66
|
+
const { __scopeCheckbox: o, checked: n, children: t, defaultChecked: r, disabled: c, form: a, name: l, onCheckedChange: s, required: d, value: C = "on", internal_do_not_use_render: h } = e, [f, b] = Y({
|
|
67
|
+
prop: n,
|
|
68
|
+
defaultProp: r ?? !1,
|
|
69
|
+
onChange: s,
|
|
70
|
+
caller: T
|
|
71
|
+
}), [v, m] = u.useState(null), [_, R] = u.useState(null), I = u.useRef(!1), [i, k] = u.useReducer((y) => y + 1, 0), P = v ? !!a || !!v.closest("form") : !0, E = {
|
|
72
|
+
checked: f,
|
|
73
|
+
disabled: c,
|
|
74
|
+
setChecked: b,
|
|
75
|
+
control: v,
|
|
76
|
+
setControl: m,
|
|
77
|
+
name: l,
|
|
78
|
+
form: a,
|
|
79
|
+
value: C,
|
|
80
|
+
hasConsumerStoppedPropagationRef: I,
|
|
81
|
+
userInteractionCount: i,
|
|
82
|
+
onUserInteraction: k,
|
|
83
|
+
required: d,
|
|
84
|
+
defaultChecked: g(r) ? !1 : r,
|
|
85
|
+
isFormControl: P,
|
|
86
|
+
bubbleInput: _,
|
|
87
|
+
setBubbleInput: R
|
|
88
|
+
};
|
|
89
|
+
return /* @__PURE__ */ p(de, {
|
|
90
|
+
scope: o,
|
|
91
|
+
...E,
|
|
92
|
+
children: H(h) ? h(E) : t
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
x(D, "CheckboxProvider");
|
|
96
|
+
var fe = "CheckboxTrigger", pe = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function({ __scopeCheckbox: o, onKeyDown: n, onClick: t, ...r }, c) {
|
|
97
|
+
const { control: a, value: l, disabled: s, checked: d, required: C, setControl: h, setChecked: f, hasConsumerStoppedPropagationRef: b, onUserInteraction: v, isFormControl: m, bubbleInput: _ } = z(fe, o), R = U(c, h), I = u.useRef(d);
|
|
98
|
+
return u.useEffect(() => {
|
|
99
|
+
const i = a?.form;
|
|
100
|
+
if (i) {
|
|
101
|
+
const k = /* @__PURE__ */ x(() => f(I.current), "reset");
|
|
102
|
+
return i.addEventListener("reset", k), () => i.removeEventListener("reset", k);
|
|
103
|
+
}
|
|
104
|
+
}, [a, f]), /* @__PURE__ */ p(N.button, {
|
|
105
|
+
type: "button",
|
|
106
|
+
role: "checkbox",
|
|
107
|
+
"aria-checked": g(d) ? "mixed" : d,
|
|
108
|
+
"aria-required": C,
|
|
109
|
+
"data-state": F(d),
|
|
110
|
+
"data-disabled": s ? "" : void 0,
|
|
111
|
+
disabled: s,
|
|
112
|
+
value: l,
|
|
113
|
+
...r,
|
|
114
|
+
ref: R,
|
|
115
|
+
onKeyDown: S(n, (i) => {
|
|
116
|
+
i.key === "Enter" && i.preventDefault();
|
|
117
|
+
}),
|
|
118
|
+
onClick: S(t, (i) => {
|
|
119
|
+
v(), f((k) => g(k) ? !0 : !k), _ && m && (b.current = i.isPropagationStopped(), b.current || i.stopPropagation());
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
}, "CheckboxTrigger")), he = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(o, n) {
|
|
123
|
+
const { __scopeCheckbox: t, name: r, checked: c, defaultChecked: a, required: l, disabled: s, value: d, onCheckedChange: C, form: h, ...f } = o;
|
|
124
|
+
return /* @__PURE__ */ p(D, {
|
|
125
|
+
__scopeCheckbox: t,
|
|
126
|
+
checked: c,
|
|
127
|
+
defaultChecked: a,
|
|
128
|
+
disabled: s,
|
|
129
|
+
required: l,
|
|
130
|
+
onCheckedChange: C,
|
|
131
|
+
name: r,
|
|
132
|
+
form: h,
|
|
133
|
+
value: d,
|
|
134
|
+
internal_do_not_use_render: ({ isFormControl: b }) => /* @__PURE__ */ $(ae, { children: [/* @__PURE__ */ p(pe, {
|
|
135
|
+
...f,
|
|
136
|
+
ref: n,
|
|
137
|
+
__scopeCheckbox: t
|
|
138
|
+
}), b && /* @__PURE__ */ p(Ce, { __scopeCheckbox: t })] })
|
|
139
|
+
});
|
|
140
|
+
}, "Checkbox")), be = "CheckboxIndicator", me = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(o, n) {
|
|
141
|
+
const { __scopeCheckbox: t, forceMount: r, ...c } = o, a = z(be, t);
|
|
142
|
+
return /* @__PURE__ */ p(Z, {
|
|
143
|
+
present: r || g(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")), ke = "CheckboxBubbleInput", Ce = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function({ __scopeCheckbox: o, onClick: n, ...t }, r) {
|
|
156
|
+
const { control: c, hasConsumerStoppedPropagationRef: a, userInteractionCount: l, checked: s, defaultChecked: d, required: C, disabled: h, name: f, value: b, form: v, bubbleInput: m, setBubbleInput: _ } = z(ke, o), R = U(r, _), I = ee(c), i = u.useRef(!1), k = u.useRef(s), P = u.useRef(l);
|
|
157
|
+
u.useEffect(() => {
|
|
158
|
+
const y = m;
|
|
159
|
+
if (!y) return;
|
|
160
|
+
const K = window.HTMLInputElement.prototype, L = Object.getOwnPropertyDescriptor(K, "checked").set, M = l !== P.current;
|
|
161
|
+
P.current = l;
|
|
162
|
+
const W = k.current !== s;
|
|
163
|
+
k.current = s;
|
|
164
|
+
const G = !(M && a.current);
|
|
165
|
+
if (W && L) {
|
|
166
|
+
i.current = !M;
|
|
167
|
+
const V = new Event("click", { bubbles: G });
|
|
168
|
+
y.indeterminate = g(s), L.call(y, g(s) ? !1 : s), y.dispatchEvent(V), i.current = !1;
|
|
169
|
+
}
|
|
170
|
+
}, [
|
|
171
|
+
m,
|
|
172
|
+
s,
|
|
173
|
+
a,
|
|
174
|
+
l
|
|
175
|
+
]);
|
|
176
|
+
const E = u.useRef(g(s) ? !1 : s);
|
|
177
|
+
return /* @__PURE__ */ p(N.input, {
|
|
178
|
+
type: "checkbox",
|
|
179
|
+
"aria-hidden": !0,
|
|
180
|
+
defaultChecked: d ?? E.current,
|
|
181
|
+
required: C,
|
|
182
|
+
disabled: h,
|
|
183
|
+
name: f,
|
|
184
|
+
value: b,
|
|
185
|
+
form: v,
|
|
186
|
+
...t,
|
|
187
|
+
tabIndex: -1,
|
|
188
|
+
ref: R,
|
|
189
|
+
onClick: S(n, (y) => {
|
|
190
|
+
i.current && y.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
|
+
x(H, "isFunction");
|
|
207
|
+
function g(e) {
|
|
208
|
+
return e === "indeterminate";
|
|
209
|
+
}
|
|
210
|
+
x(g, "isIndeterminate");
|
|
211
|
+
function F(e) {
|
|
212
|
+
return g(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
213
|
+
}
|
|
214
|
+
x(F, "getState");
|
|
215
|
+
var ve = A(({ ariaLabelledBy: e, className: o, defaultChecked: n, disabled: t, id: r, label: c, labelClassName: a, labelWrapperClassName: l, name: s, theme: d, title: C, variant: h, onChange: f, ...b }, v) => {
|
|
216
|
+
const [m, _] = te(n ?? !1), R = ce(), I = ne((i) => {
|
|
217
|
+
_(i), f?.(i);
|
|
218
|
+
}, [f, _]);
|
|
219
|
+
return /* @__PURE__ */ $("div", {
|
|
220
|
+
className: O("flex items-center gap-4", l),
|
|
221
|
+
"data-theme": d,
|
|
222
|
+
children: [/* @__PURE__ */ p(he, {
|
|
223
|
+
id: r ?? R,
|
|
224
|
+
checked: m,
|
|
225
|
+
ref: v,
|
|
226
|
+
name: s,
|
|
227
|
+
disabled: t,
|
|
228
|
+
"aria-labelledby": e,
|
|
229
|
+
title: C,
|
|
230
|
+
className: O(re({
|
|
231
|
+
className: o,
|
|
232
|
+
variant: h,
|
|
233
|
+
checked: m
|
|
234
|
+
})),
|
|
235
|
+
onCheckedChange: I,
|
|
236
|
+
...b,
|
|
237
|
+
children: /* @__PURE__ */ p(me, { children: /* @__PURE__ */ p(B, { className: "w-4 h-4 stroke-2" }) })
|
|
238
|
+
}), c ? /* @__PURE__ */ p("label", {
|
|
239
|
+
htmlFor: s ?? r,
|
|
240
|
+
className: O(oe({ className: a }), { "cursor-not-allowed": t }),
|
|
241
|
+
onClick: () => !t && I(!m),
|
|
242
|
+
children: c
|
|
243
|
+
}) : null]
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
ve.displayName = "KonstructCheckbox";
|
|
247
|
+
export {
|
|
248
|
+
ve as t
|
|
249
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as v } from "./rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
-
import { t as y } from "./prop-types-
|
|
2
|
+
import { t as y } from "./prop-types-CfEYxTbR.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-Dse3gSmZ.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,6 +1,6 @@
|
|
|
1
1
|
import { o as F } from "./rolldown-runtime-Ck3dxwZt.js";
|
|
2
|
-
import { t as q } from "./prop-types-
|
|
3
|
-
import { t as _ } from "./dist-
|
|
2
|
+
import { t as q } from "./prop-types-CfEYxTbR.js";
|
|
3
|
+
import { t as _ } from "./dist-CTvBzxW8.js";
|
|
4
4
|
import { t as m } from "./utils-Cx-WzRZF.js";
|
|
5
5
|
import { Typography as C } from "./components/Typography/Typography.js";
|
|
6
6
|
import { buttonVariants as z, counterVariants as A, labelVariants as G } from "./components/Counter/Counter.variants.js";
|