@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
package/dist/dist-CktbIsHq.js
DELETED
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import { a as ne } from "./dist-DqKFpce5.js";
|
|
2
|
-
import { t as C } from "./dist-CVy-ulDZ.js";
|
|
3
|
-
import { a as G, i as I, t as K } from "./dist-CfYOvauX.js";
|
|
4
|
-
import { t as O } from "./dist-CeuUxVmT.js";
|
|
5
|
-
import { t as ae } from "./dist-ppXKUlVt.js";
|
|
6
|
-
import { t as se } from "./dist-eAwtFCCA.js";
|
|
7
|
-
import { t as L } from "./dist-B-Aoze_D.js";
|
|
8
|
-
import { t as ie } from "./dist-C8NWUTUh.js";
|
|
9
|
-
import * as s from "react";
|
|
10
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
11
|
-
var P = "rovingFocusGroup.onEntryFocus", ce = {
|
|
12
|
-
bubbles: !1,
|
|
13
|
-
cancelable: !0
|
|
14
|
-
}, h = "RovingFocusGroup", [N, k, ue] = ie(h), [le, V] = G(h, [ue]), [de, fe] = le(h), U = s.forwardRef((e, o) => /* @__PURE__ */ l(N.Provider, {
|
|
15
|
-
scope: e.__scopeRovingFocusGroup,
|
|
16
|
-
children: /* @__PURE__ */ l(N.Slot, {
|
|
17
|
-
scope: e.__scopeRovingFocusGroup,
|
|
18
|
-
children: /* @__PURE__ */ l(ve, {
|
|
19
|
-
...e,
|
|
20
|
-
ref: o
|
|
21
|
-
})
|
|
22
|
-
})
|
|
23
|
-
}));
|
|
24
|
-
U.displayName = h;
|
|
25
|
-
var ve = s.forwardRef((e, o) => {
|
|
26
|
-
const { __scopeRovingFocusGroup: n, orientation: t, loop: u = !1, dir: d, currentTabStopId: a, defaultCurrentTabStopId: v, onCurrentTabStopIdChange: T, onEntryFocus: p, preventScrollOnEntryFocus: r = !1, ...i } = e, m = s.useRef(null), E = ne(o, m), w = L(d), [S, c] = K({
|
|
27
|
-
prop: a,
|
|
28
|
-
defaultProp: v ?? null,
|
|
29
|
-
onChange: T,
|
|
30
|
-
caller: h
|
|
31
|
-
}), [F, b] = s.useState(!1), g = ae(p), te = k(n), A = s.useRef(!1), [oe, x] = s.useState(0);
|
|
32
|
-
return s.useEffect(() => {
|
|
33
|
-
const f = m.current;
|
|
34
|
-
if (f)
|
|
35
|
-
return f.addEventListener(P, g), () => f.removeEventListener(P, g);
|
|
36
|
-
}, [g]), /* @__PURE__ */ l(de, {
|
|
37
|
-
scope: n,
|
|
38
|
-
orientation: t,
|
|
39
|
-
dir: w,
|
|
40
|
-
loop: u,
|
|
41
|
-
currentTabStopId: S,
|
|
42
|
-
onItemFocus: s.useCallback((f) => c(f), [c]),
|
|
43
|
-
onItemShiftTab: s.useCallback(() => b(!0), []),
|
|
44
|
-
onFocusableItemAdd: s.useCallback(() => x((f) => f + 1), []),
|
|
45
|
-
onFocusableItemRemove: s.useCallback(() => x((f) => f - 1), []),
|
|
46
|
-
children: /* @__PURE__ */ l(C.div, {
|
|
47
|
-
tabIndex: F || oe === 0 ? -1 : 0,
|
|
48
|
-
"data-orientation": t,
|
|
49
|
-
...i,
|
|
50
|
-
ref: E,
|
|
51
|
-
style: {
|
|
52
|
-
outline: "none",
|
|
53
|
-
...e.style
|
|
54
|
-
},
|
|
55
|
-
onMouseDown: I(e.onMouseDown, () => {
|
|
56
|
-
A.current = !0;
|
|
57
|
-
}),
|
|
58
|
-
onFocus: I(e.onFocus, (f) => {
|
|
59
|
-
const re = !A.current;
|
|
60
|
-
if (f.target === f.currentTarget && re && !F) {
|
|
61
|
-
const M = new CustomEvent(P, ce);
|
|
62
|
-
if (f.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
63
|
-
const y = te().filter((R) => R.focusable);
|
|
64
|
-
Y([
|
|
65
|
-
y.find((R) => R.active),
|
|
66
|
-
y.find((R) => R.id === S),
|
|
67
|
-
...y
|
|
68
|
-
].filter(Boolean).map((R) => R.ref.current), r);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
A.current = !1;
|
|
72
|
-
}),
|
|
73
|
-
onBlur: I(e.onBlur, () => b(!1))
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
}), B = "RovingFocusGroupItem", $ = s.forwardRef((e, o) => {
|
|
77
|
-
const { __scopeRovingFocusGroup: n, focusable: t = !0, active: u = !1, tabStopId: d, children: a, ...v } = e, T = O(), p = d || T, r = fe(B, n), i = r.currentTabStopId === p, m = k(n), { onFocusableItemAdd: E, onFocusableItemRemove: w, currentTabStopId: S } = r;
|
|
78
|
-
return s.useEffect(() => {
|
|
79
|
-
if (t)
|
|
80
|
-
return E(), () => w();
|
|
81
|
-
}, [
|
|
82
|
-
t,
|
|
83
|
-
E,
|
|
84
|
-
w
|
|
85
|
-
]), /* @__PURE__ */ l(N.ItemSlot, {
|
|
86
|
-
scope: n,
|
|
87
|
-
id: p,
|
|
88
|
-
focusable: t,
|
|
89
|
-
active: u,
|
|
90
|
-
children: /* @__PURE__ */ l(C.span, {
|
|
91
|
-
tabIndex: i ? 0 : -1,
|
|
92
|
-
"data-orientation": r.orientation,
|
|
93
|
-
...v,
|
|
94
|
-
ref: o,
|
|
95
|
-
onMouseDown: I(e.onMouseDown, (c) => {
|
|
96
|
-
t ? r.onItemFocus(p) : c.preventDefault();
|
|
97
|
-
}),
|
|
98
|
-
onFocus: I(e.onFocus, () => r.onItemFocus(p)),
|
|
99
|
-
onKeyDown: I(e.onKeyDown, (c) => {
|
|
100
|
-
if (c.key === "Tab" && c.shiftKey) {
|
|
101
|
-
r.onItemShiftTab();
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
if (c.target !== c.currentTarget) return;
|
|
105
|
-
const F = be(c, r.orientation, r.dir);
|
|
106
|
-
if (F !== void 0) {
|
|
107
|
-
if (c.metaKey || c.ctrlKey || c.altKey || c.shiftKey) return;
|
|
108
|
-
c.preventDefault();
|
|
109
|
-
let b = m().filter((g) => g.focusable).map((g) => g.ref.current);
|
|
110
|
-
if (F === "last") b.reverse();
|
|
111
|
-
else if (F === "prev" || F === "next") {
|
|
112
|
-
F === "prev" && b.reverse();
|
|
113
|
-
const g = b.indexOf(c.currentTarget);
|
|
114
|
-
b = r.loop ? ge(b, g + 1) : b.slice(g + 1);
|
|
115
|
-
}
|
|
116
|
-
setTimeout(() => Y(b));
|
|
117
|
-
}
|
|
118
|
-
}),
|
|
119
|
-
children: typeof a == "function" ? a({
|
|
120
|
-
isCurrentTabStop: i,
|
|
121
|
-
hasTabStop: S != null
|
|
122
|
-
}) : a
|
|
123
|
-
})
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
$.displayName = B;
|
|
127
|
-
var pe = {
|
|
128
|
-
ArrowLeft: "prev",
|
|
129
|
-
ArrowUp: "prev",
|
|
130
|
-
ArrowRight: "next",
|
|
131
|
-
ArrowDown: "next",
|
|
132
|
-
PageUp: "first",
|
|
133
|
-
Home: "first",
|
|
134
|
-
PageDown: "last",
|
|
135
|
-
End: "last"
|
|
136
|
-
};
|
|
137
|
-
function me(e, o) {
|
|
138
|
-
return o !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
139
|
-
}
|
|
140
|
-
function be(e, o, n) {
|
|
141
|
-
const t = me(e.key, n);
|
|
142
|
-
if (!(o === "vertical" && ["ArrowLeft", "ArrowRight"].includes(t)) && !(o === "horizontal" && ["ArrowUp", "ArrowDown"].includes(t)))
|
|
143
|
-
return pe[t];
|
|
144
|
-
}
|
|
145
|
-
function Y(e, o = !1) {
|
|
146
|
-
const n = document.activeElement;
|
|
147
|
-
for (const t of e)
|
|
148
|
-
if (t === n || (t.focus({ preventScroll: o }), document.activeElement !== n)) return;
|
|
149
|
-
}
|
|
150
|
-
function ge(e, o) {
|
|
151
|
-
return e.map((n, t) => e[(o + t) % e.length]);
|
|
152
|
-
}
|
|
153
|
-
var Te = U, Ie = $, _ = "Tabs", [Fe, Ne] = G(_, [V]), z = V(), [Re, D] = Fe(_), H = s.forwardRef((e, o) => {
|
|
154
|
-
const { __scopeTabs: n, value: t, onValueChange: u, defaultValue: d, orientation: a = "horizontal", dir: v, activationMode: T = "automatic", ...p } = e, r = L(v), [i, m] = K({
|
|
155
|
-
prop: t,
|
|
156
|
-
onChange: u,
|
|
157
|
-
defaultProp: d ?? "",
|
|
158
|
-
caller: _
|
|
159
|
-
});
|
|
160
|
-
return /* @__PURE__ */ l(Re, {
|
|
161
|
-
scope: n,
|
|
162
|
-
baseId: O(),
|
|
163
|
-
value: i,
|
|
164
|
-
onValueChange: m,
|
|
165
|
-
orientation: a,
|
|
166
|
-
dir: r,
|
|
167
|
-
activationMode: T,
|
|
168
|
-
children: /* @__PURE__ */ l(C.div, {
|
|
169
|
-
dir: r,
|
|
170
|
-
"data-orientation": a,
|
|
171
|
-
...p,
|
|
172
|
-
ref: o
|
|
173
|
-
})
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
H.displayName = _;
|
|
177
|
-
var j = "TabsList", q = s.forwardRef((e, o) => {
|
|
178
|
-
const { __scopeTabs: n, loop: t = !0, ...u } = e, d = D(j, n), a = z(n);
|
|
179
|
-
return /* @__PURE__ */ l(Te, {
|
|
180
|
-
asChild: !0,
|
|
181
|
-
...a,
|
|
182
|
-
orientation: d.orientation,
|
|
183
|
-
dir: d.dir,
|
|
184
|
-
loop: t,
|
|
185
|
-
children: /* @__PURE__ */ l(C.div, {
|
|
186
|
-
role: "tablist",
|
|
187
|
-
"aria-orientation": d.orientation,
|
|
188
|
-
...u,
|
|
189
|
-
ref: o
|
|
190
|
-
})
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
q.displayName = j;
|
|
194
|
-
var J = "TabsTrigger", Q = s.forwardRef((e, o) => {
|
|
195
|
-
const { __scopeTabs: n, value: t, disabled: u = !1, ...d } = e, a = D(J, n), v = z(n), T = Z(a.baseId, t), p = ee(a.baseId, t), r = t === a.value;
|
|
196
|
-
return /* @__PURE__ */ l(Ie, {
|
|
197
|
-
asChild: !0,
|
|
198
|
-
...v,
|
|
199
|
-
focusable: !u,
|
|
200
|
-
active: r,
|
|
201
|
-
children: /* @__PURE__ */ l(C.button, {
|
|
202
|
-
type: "button",
|
|
203
|
-
role: "tab",
|
|
204
|
-
"aria-selected": r,
|
|
205
|
-
"aria-controls": p,
|
|
206
|
-
"data-state": r ? "active" : "inactive",
|
|
207
|
-
"data-disabled": u ? "" : void 0,
|
|
208
|
-
disabled: u,
|
|
209
|
-
id: T,
|
|
210
|
-
...d,
|
|
211
|
-
ref: o,
|
|
212
|
-
onMouseDown: I(e.onMouseDown, (i) => {
|
|
213
|
-
!u && i.button === 0 && i.ctrlKey === !1 ? a.onValueChange(t) : i.preventDefault();
|
|
214
|
-
}),
|
|
215
|
-
onKeyDown: I(e.onKeyDown, (i) => {
|
|
216
|
-
[" ", "Enter"].includes(i.key) && a.onValueChange(t);
|
|
217
|
-
}),
|
|
218
|
-
onFocus: I(e.onFocus, () => {
|
|
219
|
-
const i = a.activationMode !== "manual";
|
|
220
|
-
!r && !u && i && a.onValueChange(t);
|
|
221
|
-
})
|
|
222
|
-
})
|
|
223
|
-
});
|
|
224
|
-
});
|
|
225
|
-
Q.displayName = J;
|
|
226
|
-
var W = "TabsContent", X = s.forwardRef((e, o) => {
|
|
227
|
-
const { __scopeTabs: n, value: t, forceMount: u, children: d, ...a } = e, v = D(W, n), T = Z(v.baseId, t), p = ee(v.baseId, t), r = t === v.value, i = s.useRef(r);
|
|
228
|
-
return s.useEffect(() => {
|
|
229
|
-
const m = requestAnimationFrame(() => i.current = !1);
|
|
230
|
-
return () => cancelAnimationFrame(m);
|
|
231
|
-
}, []), /* @__PURE__ */ l(se, {
|
|
232
|
-
present: u || r,
|
|
233
|
-
children: ({ present: m }) => /* @__PURE__ */ l(C.div, {
|
|
234
|
-
"data-state": r ? "active" : "inactive",
|
|
235
|
-
"data-orientation": v.orientation,
|
|
236
|
-
role: "tabpanel",
|
|
237
|
-
"aria-labelledby": T,
|
|
238
|
-
hidden: !m,
|
|
239
|
-
id: p,
|
|
240
|
-
tabIndex: 0,
|
|
241
|
-
...a,
|
|
242
|
-
ref: o,
|
|
243
|
-
style: {
|
|
244
|
-
...e.style,
|
|
245
|
-
animationDuration: i.current ? "0s" : void 0
|
|
246
|
-
},
|
|
247
|
-
children: m && d
|
|
248
|
-
})
|
|
249
|
-
});
|
|
250
|
-
});
|
|
251
|
-
X.displayName = W;
|
|
252
|
-
function Z(e, o) {
|
|
253
|
-
return `${e}-trigger-${o}`;
|
|
254
|
-
}
|
|
255
|
-
function ee(e, o) {
|
|
256
|
-
return `${e}-content-${o}`;
|
|
257
|
-
}
|
|
258
|
-
var De = H, xe = q, Me = Q, Ge = X;
|
|
259
|
-
export {
|
|
260
|
-
Me as i,
|
|
261
|
-
xe as n,
|
|
262
|
-
De as r,
|
|
263
|
-
Ge as t
|
|
264
|
-
};
|
package/dist/dist-DGqWMRtc.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { a as F } from "./dist-DqKFpce5.js";
|
|
2
|
-
import { n as j, t as S } from "./dist-CVy-ulDZ.js";
|
|
3
|
-
import { i as C, n as X, r as Y } from "./dist-CfYOvauX.js";
|
|
4
|
-
import { t as _ } from "./dist-ppXKUlVt.js";
|
|
5
|
-
import * as t from "react";
|
|
6
|
-
import * as $ from "react-dom";
|
|
7
|
-
import { jsx as I } from "react/jsx-runtime";
|
|
8
|
-
var q = "DismissableLayer", g = "dismissableLayer.update", G = "dismissableLayer.pointerDownOutside", J = "dismissableLayer.focusOutside", A, N = t.createContext({
|
|
9
|
-
layers: /* @__PURE__ */ new Set(),
|
|
10
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
11
|
-
branches: /* @__PURE__ */ new Set(),
|
|
12
|
-
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
13
|
-
}), M = t.forwardRef((s, r) => {
|
|
14
|
-
const { disableOutsidePointerEvents: e = !1, deferPointerDownOutside: i = !1, onEscapeKeyDown: u, onPointerDownOutside: c, onFocusOutside: v, onInteractOutside: p, onDismiss: l, ...E } = s, n = t.useContext(N), [d, w] = t.useState(null), f = d?.ownerDocument ?? globalThis?.document, [, D] = t.useState({}), h = F(r, w), b = Array.from(n.layers), [L] = [...n.layersWithOutsidePointerEventsDisabled].slice(-1), o = b.indexOf(L), m = d ? b.indexOf(d) : -1, y = n.layersWithOutsidePointerEventsDisabled.size > 0, O = m >= o, T = t.useRef(!1), H = V((a) => {
|
|
15
|
-
const P = a.target;
|
|
16
|
-
if (!(P instanceof Node)) return;
|
|
17
|
-
const R = [...n.branches].some((K) => K.contains(P));
|
|
18
|
-
!O || R || (c?.(a), p?.(a), a.defaultPrevented || l?.());
|
|
19
|
-
}, {
|
|
20
|
-
ownerDocument: f,
|
|
21
|
-
deferPointerDownOutside: i,
|
|
22
|
-
isDeferredPointerDownOutsideRef: T,
|
|
23
|
-
dismissableSurfaces: n.dismissableSurfaces
|
|
24
|
-
}), x = Z((a) => {
|
|
25
|
-
if (i && T.current) return;
|
|
26
|
-
const P = a.target;
|
|
27
|
-
[...n.branches].some((R) => R.contains(P)) || (v?.(a), p?.(a), a.defaultPrevented || l?.());
|
|
28
|
-
}, f), B = d ? m === b.length - 1 : !1, k = X((a) => {
|
|
29
|
-
a.key === "Escape" && (u?.(a), !a.defaultPrevented && l && (a.preventDefault(), l()));
|
|
30
|
-
});
|
|
31
|
-
return t.useEffect(() => {
|
|
32
|
-
if (B)
|
|
33
|
-
return f.addEventListener("keydown", k, { capture: !0 }), () => f.removeEventListener("keydown", k, { capture: !0 });
|
|
34
|
-
}, [f, B]), t.useEffect(() => {
|
|
35
|
-
if (d)
|
|
36
|
-
return e && (n.layersWithOutsidePointerEventsDisabled.size === 0 && (A = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), n.layersWithOutsidePointerEventsDisabled.add(d)), n.layers.add(d), W(), () => {
|
|
37
|
-
e && (n.layersWithOutsidePointerEventsDisabled.delete(d), n.layersWithOutsidePointerEventsDisabled.size === 0 && (f.body.style.pointerEvents = A));
|
|
38
|
-
};
|
|
39
|
-
}, [
|
|
40
|
-
d,
|
|
41
|
-
f,
|
|
42
|
-
e,
|
|
43
|
-
n
|
|
44
|
-
]), t.useEffect(() => () => {
|
|
45
|
-
d && (n.layers.delete(d), n.layersWithOutsidePointerEventsDisabled.delete(d), W());
|
|
46
|
-
}, [d, n]), t.useEffect(() => {
|
|
47
|
-
const a = () => D({});
|
|
48
|
-
return document.addEventListener(g, a), () => document.removeEventListener(g, a);
|
|
49
|
-
}, []), /* @__PURE__ */ I(S.div, {
|
|
50
|
-
...E,
|
|
51
|
-
ref: h,
|
|
52
|
-
style: {
|
|
53
|
-
pointerEvents: y ? O ? "auto" : "none" : void 0,
|
|
54
|
-
...s.style
|
|
55
|
-
},
|
|
56
|
-
onFocusCapture: C(s.onFocusCapture, x.onFocusCapture),
|
|
57
|
-
onBlurCapture: C(s.onBlurCapture, x.onBlurCapture),
|
|
58
|
-
onPointerDownCapture: C(s.onPointerDownCapture, H.onPointerDownCapture)
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
M.displayName = q;
|
|
62
|
-
var Q = "DismissableLayerBranch", U = t.forwardRef((s, r) => {
|
|
63
|
-
const e = t.useContext(N), i = t.useRef(null), u = F(r, i);
|
|
64
|
-
return t.useEffect(() => {
|
|
65
|
-
const c = i.current;
|
|
66
|
-
if (c)
|
|
67
|
-
return e.branches.add(c), () => {
|
|
68
|
-
e.branches.delete(c);
|
|
69
|
-
};
|
|
70
|
-
}, [e.branches]), /* @__PURE__ */ I(S.div, {
|
|
71
|
-
...s,
|
|
72
|
-
ref: u
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
U.displayName = Q;
|
|
76
|
-
function ae() {
|
|
77
|
-
const s = t.useContext(N), [r, e] = t.useState(null);
|
|
78
|
-
return t.useEffect(() => {
|
|
79
|
-
if (r)
|
|
80
|
-
return s.dismissableSurfaces.add(r), () => {
|
|
81
|
-
s.dismissableSurfaces.delete(r);
|
|
82
|
-
};
|
|
83
|
-
}, [r, s.dismissableSurfaces]), e;
|
|
84
|
-
}
|
|
85
|
-
function V(s, r) {
|
|
86
|
-
const { ownerDocument: e = globalThis?.document, deferPointerDownOutside: i = !1, isDeferredPointerDownOutsideRef: u, dismissableSurfaces: c } = r, v = _(s), p = t.useRef(!1), l = t.useRef(!1), E = t.useRef(/* @__PURE__ */ new Map()), n = t.useRef(() => {
|
|
87
|
-
});
|
|
88
|
-
return t.useEffect(() => {
|
|
89
|
-
function d() {
|
|
90
|
-
l.current = !1, u.current = !1, E.current.clear();
|
|
91
|
-
}
|
|
92
|
-
function w() {
|
|
93
|
-
return Array.from(E.current.values()).some(Boolean);
|
|
94
|
-
}
|
|
95
|
-
function f(o) {
|
|
96
|
-
if (!l.current) return;
|
|
97
|
-
const m = o.target;
|
|
98
|
-
m instanceof Node && [...c].some((y) => y.contains(m)) || E.current.set(o.type, !0), o.type === "click" && window.setTimeout(() => {
|
|
99
|
-
l.current && n.current();
|
|
100
|
-
}, 0);
|
|
101
|
-
}
|
|
102
|
-
function D(o) {
|
|
103
|
-
l.current && E.current.set(o.type, !1);
|
|
104
|
-
}
|
|
105
|
-
const h = (o) => {
|
|
106
|
-
if (o.target && !p.current) {
|
|
107
|
-
let m = function() {
|
|
108
|
-
e.removeEventListener("click", n.current);
|
|
109
|
-
const O = w();
|
|
110
|
-
d(), O || z(G, v, y, { discrete: !0 });
|
|
111
|
-
};
|
|
112
|
-
const y = { originalEvent: o };
|
|
113
|
-
l.current = !0, u.current = i && o.button === 0, E.current.clear(), !i || o.button !== 0 ? m() : (e.removeEventListener("click", n.current), n.current = m, e.addEventListener("click", n.current, { once: !0 }));
|
|
114
|
-
} else
|
|
115
|
-
e.removeEventListener("click", n.current), d();
|
|
116
|
-
p.current = !1;
|
|
117
|
-
}, b = [
|
|
118
|
-
"pointerup",
|
|
119
|
-
"mousedown",
|
|
120
|
-
"mouseup",
|
|
121
|
-
"touchstart",
|
|
122
|
-
"touchend",
|
|
123
|
-
"click"
|
|
124
|
-
];
|
|
125
|
-
for (const o of b)
|
|
126
|
-
e.addEventListener(o, f, !0), e.addEventListener(o, D);
|
|
127
|
-
const L = window.setTimeout(() => {
|
|
128
|
-
e.addEventListener("pointerdown", h);
|
|
129
|
-
}, 0);
|
|
130
|
-
return () => {
|
|
131
|
-
window.clearTimeout(L), e.removeEventListener("pointerdown", h), e.removeEventListener("click", n.current);
|
|
132
|
-
for (const o of b)
|
|
133
|
-
e.removeEventListener(o, f, !0), e.removeEventListener(o, D);
|
|
134
|
-
};
|
|
135
|
-
}, [
|
|
136
|
-
e,
|
|
137
|
-
v,
|
|
138
|
-
i,
|
|
139
|
-
u,
|
|
140
|
-
c
|
|
141
|
-
]), { onPointerDownCapture: () => p.current = !0 };
|
|
142
|
-
}
|
|
143
|
-
function Z(s, r = globalThis?.document) {
|
|
144
|
-
const e = _(s), i = t.useRef(!1);
|
|
145
|
-
return t.useEffect(() => {
|
|
146
|
-
const u = (c) => {
|
|
147
|
-
c.target && !i.current && z(J, e, { originalEvent: c }, { discrete: !1 });
|
|
148
|
-
};
|
|
149
|
-
return r.addEventListener("focusin", u), () => r.removeEventListener("focusin", u);
|
|
150
|
-
}, [r, e]), {
|
|
151
|
-
onFocusCapture: () => i.current = !0,
|
|
152
|
-
onBlurCapture: () => i.current = !1
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
function W() {
|
|
156
|
-
const s = new CustomEvent(g);
|
|
157
|
-
document.dispatchEvent(s);
|
|
158
|
-
}
|
|
159
|
-
function z(s, r, e, { discrete: i }) {
|
|
160
|
-
const u = e.originalEvent.target, c = new CustomEvent(s, {
|
|
161
|
-
bubbles: !1,
|
|
162
|
-
cancelable: !0,
|
|
163
|
-
detail: e
|
|
164
|
-
});
|
|
165
|
-
r && u.addEventListener(s, r, { once: !0 }), i ? j(u, c) : u.dispatchEvent(c);
|
|
166
|
-
}
|
|
167
|
-
var ue = M, ce = U, ee = "Portal", te = t.forwardRef((s, r) => {
|
|
168
|
-
const { container: e, ...i } = s, [u, c] = t.useState(!1);
|
|
169
|
-
Y(() => c(!0), []);
|
|
170
|
-
const v = e || u && globalThis?.document?.body;
|
|
171
|
-
return v ? $.createPortal(/* @__PURE__ */ I(S.div, {
|
|
172
|
-
...i,
|
|
173
|
-
ref: r
|
|
174
|
-
}), v) : null;
|
|
175
|
-
});
|
|
176
|
-
te.displayName = ee;
|
|
177
|
-
export {
|
|
178
|
-
ae as a,
|
|
179
|
-
ue as i,
|
|
180
|
-
ce as n,
|
|
181
|
-
M as r,
|
|
182
|
-
te as t
|
|
183
|
-
};
|
package/dist/dist-DdFwUrO22.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as u from "react";
|
|
2
|
-
function t(r) {
|
|
3
|
-
const e = u.useRef({
|
|
4
|
-
value: r,
|
|
5
|
-
previous: r
|
|
6
|
-
});
|
|
7
|
-
return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
t
|
|
11
|
-
};
|