@konstructio/ui 0.1.2-alpha.104 → 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/Wrapper-R8fik3ah.js +182 -0
- 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/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +1 -1
- package/dist/components/Select/hooks/useNavigationList.js +2 -3
- package/dist/components/Select/hooks/useSelect.js +29 -41
- 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/Select/hooks/useSelect.d.ts +1 -3
- 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/Wrapper-BhqUVI1G.js +0 -171
- package/dist/es2015-DigR3dar.js +0 -795
|
@@ -11,8 +11,8 @@ function J(r) {
|
|
|
11
11
|
const e = r + "CollectionProvider", [t, o] = $(e), [n, i] = t(e, {
|
|
12
12
|
collectionRef: { current: null },
|
|
13
13
|
itemMap: /* @__PURE__ */ new Map()
|
|
14
|
-
}), c = /* @__PURE__ */ f((
|
|
15
|
-
const { scope: h, children: I } =
|
|
14
|
+
}), c = /* @__PURE__ */ f((m) => {
|
|
15
|
+
const { scope: h, children: I } = m, s = u.useRef(null), l = u.useRef(/* @__PURE__ */ new Map()).current;
|
|
16
16
|
return /* @__PURE__ */ M(n, {
|
|
17
17
|
scope: h,
|
|
18
18
|
itemMap: l,
|
|
@@ -21,35 +21,35 @@ function J(r) {
|
|
|
21
21
|
});
|
|
22
22
|
}, "CollectionProvider");
|
|
23
23
|
c.displayName = e;
|
|
24
|
-
const a = r + "CollectionSlot", S = z(a), E = u.forwardRef((
|
|
25
|
-
const { scope: I, children: s } =
|
|
24
|
+
const a = r + "CollectionSlot", S = z(a), E = u.forwardRef((m, h) => {
|
|
25
|
+
const { scope: I, children: s } = m, l = i(a, I), p = D(h, l.collectionRef);
|
|
26
26
|
return /* @__PURE__ */ M(S, {
|
|
27
|
-
ref:
|
|
27
|
+
ref: p,
|
|
28
28
|
children: s
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
E.displayName = a;
|
|
32
|
-
const y = r + "CollectionItemSlot", v = "data-radix-collection-item", A = z(y), d = u.forwardRef((
|
|
33
|
-
const { scope: I, children: s, ...l } =
|
|
34
|
-
return u.useEffect(() => (R.itemMap.set(
|
|
35
|
-
ref:
|
|
32
|
+
const y = r + "CollectionItemSlot", v = "data-radix-collection-item", A = z(y), d = u.forwardRef((m, h) => {
|
|
33
|
+
const { scope: I, children: s, ...l } = m, p = u.useRef(null), N = D(h, p), R = i(y, I);
|
|
34
|
+
return u.useEffect(() => (R.itemMap.set(p, {
|
|
35
|
+
ref: p,
|
|
36
36
|
...l
|
|
37
37
|
}), () => {
|
|
38
|
-
R.itemMap.delete(
|
|
38
|
+
R.itemMap.delete(p);
|
|
39
39
|
})), /* @__PURE__ */ M(A, {
|
|
40
40
|
[v]: "",
|
|
41
|
-
ref:
|
|
41
|
+
ref: N,
|
|
42
42
|
children: s
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
d.displayName = y;
|
|
46
|
-
function x(
|
|
47
|
-
const h = i(r + "CollectionConsumer",
|
|
46
|
+
function x(m) {
|
|
47
|
+
const h = i(r + "CollectionConsumer", m);
|
|
48
48
|
return u.useCallback(() => {
|
|
49
49
|
const I = h.collectionRef.current;
|
|
50
50
|
if (!I) return [];
|
|
51
51
|
const s = Array.from(I.querySelectorAll(`[${v}]`));
|
|
52
|
-
return Array.from(h.itemMap.values()).sort((l,
|
|
52
|
+
return Array.from(h.itemMap.values()).sort((l, p) => s.indexOf(l.ref.current) - s.indexOf(p.ref.current));
|
|
53
53
|
}, [h.collectionRef, h.itemMap]);
|
|
54
54
|
}
|
|
55
55
|
return f(x, "useCollection"), [
|
|
@@ -63,7 +63,7 @@ function J(r) {
|
|
|
63
63
|
];
|
|
64
64
|
}
|
|
65
65
|
f(J, "createCollection");
|
|
66
|
-
var K = /* @__PURE__ */ new WeakMap(), b = class
|
|
66
|
+
var K = /* @__PURE__ */ new WeakMap(), b = class w extends Map {
|
|
67
67
|
static {
|
|
68
68
|
f(this, "OrderedDict");
|
|
69
69
|
}
|
|
@@ -89,13 +89,13 @@ var K = /* @__PURE__ */ new WeakMap(), b = class P extends Map {
|
|
|
89
89
|
y[d] === t && (x = y[d + 1]), n && this.delete(t), v = this.get(x), this.set(t, o);
|
|
90
90
|
} else {
|
|
91
91
|
!A && y[d - 1] === t && (A = !0);
|
|
92
|
-
const x = y[A ? d : d - 1],
|
|
93
|
-
v = this.get(x), this.delete(x), this.set(x,
|
|
92
|
+
const x = y[A ? d : d - 1], m = v;
|
|
93
|
+
v = this.get(x), this.delete(x), this.set(x, m);
|
|
94
94
|
}
|
|
95
95
|
return this;
|
|
96
96
|
}
|
|
97
97
|
with(e, t, o) {
|
|
98
|
-
const n = new
|
|
98
|
+
const n = new w(this);
|
|
99
99
|
return n.insert(e, t, o), n;
|
|
100
100
|
}
|
|
101
101
|
before(e) {
|
|
@@ -191,7 +191,7 @@ var K = /* @__PURE__ */ new WeakMap(), b = class P extends Map {
|
|
|
191
191
|
n,
|
|
192
192
|
this
|
|
193
193
|
]) && o.push(i), n++;
|
|
194
|
-
return new
|
|
194
|
+
return new w(o);
|
|
195
195
|
}
|
|
196
196
|
map(e, t) {
|
|
197
197
|
const o = [];
|
|
@@ -202,7 +202,7 @@ var K = /* @__PURE__ */ new WeakMap(), b = class P extends Map {
|
|
|
202
202
|
n,
|
|
203
203
|
this
|
|
204
204
|
])]), n++;
|
|
205
|
-
return new
|
|
205
|
+
return new w(o);
|
|
206
206
|
}
|
|
207
207
|
reduce(...e) {
|
|
208
208
|
const [t, o] = e;
|
|
@@ -232,10 +232,10 @@ var K = /* @__PURE__ */ new WeakMap(), b = class P extends Map {
|
|
|
232
232
|
}
|
|
233
233
|
toSorted(e) {
|
|
234
234
|
const t = [...this.entries()].sort(e);
|
|
235
|
-
return new
|
|
235
|
+
return new w(t);
|
|
236
236
|
}
|
|
237
237
|
toReversed() {
|
|
238
|
-
const e = new
|
|
238
|
+
const e = new w();
|
|
239
239
|
for (let t = this.size - 1; t >= 0; t--) {
|
|
240
240
|
const o = this.keyAt(t), n = this.get(o);
|
|
241
241
|
e.set(o, n);
|
|
@@ -244,10 +244,10 @@ var K = /* @__PURE__ */ new WeakMap(), b = class P extends Map {
|
|
|
244
244
|
}
|
|
245
245
|
toSpliced(...e) {
|
|
246
246
|
const t = [...this.entries()];
|
|
247
|
-
return t.splice(...e), new
|
|
247
|
+
return t.splice(...e), new w(t);
|
|
248
248
|
}
|
|
249
249
|
slice(e, t) {
|
|
250
|
-
const o = new
|
|
250
|
+
const o = new w();
|
|
251
251
|
let n = this.size - 1;
|
|
252
252
|
if (e === void 0) return o;
|
|
253
253
|
e < 0 && (e = e + this.size), t !== void 0 && t > 0 && (n = t - 1);
|
|
@@ -320,38 +320,38 @@ function Q(r) {
|
|
|
320
320
|
}, "CollectionInit");
|
|
321
321
|
a.displayName = e + "Init";
|
|
322
322
|
const S = /* @__PURE__ */ f((s) => {
|
|
323
|
-
const { scope: l, children:
|
|
323
|
+
const { scope: l, children: p, state: N } = s, R = u.useRef(null), [P, C] = u.useState(null), k = D(R, C), [L, T] = N;
|
|
324
324
|
return u.useEffect(() => {
|
|
325
|
-
if (!
|
|
325
|
+
if (!P) return;
|
|
326
326
|
const g = W(() => {
|
|
327
327
|
});
|
|
328
|
-
return g.observe(
|
|
328
|
+
return g.observe(P, {
|
|
329
329
|
childList: !0,
|
|
330
330
|
subtree: !0
|
|
331
331
|
}), () => {
|
|
332
332
|
g.disconnect();
|
|
333
333
|
};
|
|
334
|
-
}, [
|
|
334
|
+
}, [P]), /* @__PURE__ */ M(n, {
|
|
335
335
|
scope: l,
|
|
336
336
|
itemMap: L,
|
|
337
337
|
setItemMap: T,
|
|
338
338
|
collectionRef: k,
|
|
339
339
|
collectionRefObject: R,
|
|
340
|
-
collectionElement:
|
|
341
|
-
children:
|
|
340
|
+
collectionElement: P,
|
|
341
|
+
children: p
|
|
342
342
|
});
|
|
343
343
|
}, "CollectionProviderImpl");
|
|
344
344
|
S.displayName = e + "Impl";
|
|
345
345
|
const E = r + "CollectionSlot", y = z(E), v = u.forwardRef((s, l) => {
|
|
346
|
-
const { scope:
|
|
346
|
+
const { scope: p, children: N } = s, R = i(E, p), P = D(l, R.collectionRef);
|
|
347
347
|
return /* @__PURE__ */ M(y, {
|
|
348
|
-
ref:
|
|
349
|
-
children:
|
|
348
|
+
ref: P,
|
|
349
|
+
children: N
|
|
350
350
|
});
|
|
351
351
|
});
|
|
352
352
|
v.displayName = E;
|
|
353
|
-
const A = r + "CollectionItemSlot", d = "data-radix-collection-item", x = z(A),
|
|
354
|
-
const { scope:
|
|
353
|
+
const A = r + "CollectionItemSlot", d = "data-radix-collection-item", x = z(A), m = u.forwardRef((s, l) => {
|
|
354
|
+
const { scope: p, children: N, ...R } = s, P = u.useRef(null), [C, k] = u.useState(null), L = D(l, P, k), { setItemMap: T } = i(A, p), g = u.useRef(R);
|
|
355
355
|
G(g.current, R) || (g.current = R);
|
|
356
356
|
const B = g.current;
|
|
357
357
|
return u.useEffect(() => {
|
|
@@ -372,10 +372,10 @@ function Q(r) {
|
|
|
372
372
|
]), /* @__PURE__ */ M(x, {
|
|
373
373
|
[d]: "",
|
|
374
374
|
ref: L,
|
|
375
|
-
children:
|
|
375
|
+
children: N
|
|
376
376
|
});
|
|
377
377
|
});
|
|
378
|
-
|
|
378
|
+
m.displayName = A;
|
|
379
379
|
function h() {
|
|
380
380
|
return u.useState(new b());
|
|
381
381
|
}
|
|
@@ -387,7 +387,7 @@ function Q(r) {
|
|
|
387
387
|
return f(I, "useCollection"), [{
|
|
388
388
|
Provider: c,
|
|
389
389
|
Slot: v,
|
|
390
|
-
ItemSlot:
|
|
390
|
+
ItemSlot: m
|
|
391
391
|
}, {
|
|
392
392
|
createCollectionScope: o,
|
|
393
393
|
useCollection: I,
|