@konstructio/ui 0.1.2-alpha.103 → 0.1.2-alpha.105
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/README.md +15 -21
- package/dist/{AdditionalOptions-Cj29eeMF.js → AdditionalOptions-D0BAS2HG.js} +1 -1
- package/dist/{AlertDialogTrigger-CgcsW_ta.js → AlertDialogTrigger-BGo_acd5.js} +3 -3
- package/dist/{Checkbox-DzAx7n67.js → Checkbox-B_ngk9Dj.js} +56 -56
- package/dist/{Combination-cjXRJS03.js → Combination-CnMM05mt.js} +51 -45
- package/dist/{CommandInput-BnvRMfLI.js → CommandInput-BLq69pOT.js} +1 -1
- package/dist/Counter-BV680M5r.js +195 -0
- package/dist/DropdownButton-DfNojmCW.js +493 -0
- package/dist/{FlagSelectorList-BoYG-_It.js → FlagSelectorList-CkTR3j6O.js} +222 -218
- package/dist/{HamburgerTrigger-1vOTrm8-.js → HamburgerTrigger-DRylBL2d.js} +1 -1
- package/dist/{ImageUpload-DZTm4SBB.js → ImageUpload-DiwymQcU.js} +1 -1
- package/dist/{Input-CW0VwW2T.js → Input-Cf44DzfE.js} +18 -18
- package/dist/{Loading-fD0Xiyeq.js → Loading-DUh9PMJN.js} +3 -1
- package/dist/Modal-Dyn088X7.js +81 -0
- package/dist/Sidebar.css +1 -1
- package/dist/{Spinner-Lw9mZYhg.js → Spinner-CUwE2bLm.js} +1 -1
- package/dist/{Switch-WBRr8uOJ.js → Switch-aPhL5rNG.js} +4 -4
- package/dist/{Toast-ByH-l4XK.js → Toast-3NEz7LLa.js} +149 -148
- package/dist/Wrapper-CVJSuYWx.js +114 -0
- package/dist/{Wrapper-XeeD3av7.js → Wrapper-DP6Sxngx.js} +185 -180
- package/dist/Wrapper-R8fik3ah.js +182 -0
- package/dist/components/Alert/Alert.js +21 -21
- 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/AlertDialog/hooks/useAlertDialog.js +14 -10
- package/dist/components/Autocomplete/components/List/List.js +22 -26
- package/dist/components/Autocomplete/components/List/List.variants.js +7 -19
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +39 -38
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -1
- package/dist/components/Badge/Badge.js +37 -36
- package/dist/components/Button/Button.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 +6 -6
- 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 +2 -2
- 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/Command/contexts/Command.provider.js +16 -12
- 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/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +57 -58
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +42 -43
- 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 +42 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +61 -79
- 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/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +89 -122
- package/dist/components/Datepicker/DatePicker.js +13 -13
- package/dist/components/Drawer/Drawer.js +54 -49
- package/dist/components/Drawer/hooks/useDrawer.js +39 -44
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +23 -22
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +42 -56
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +30 -43
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +36 -49
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +1 -1
- package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -18
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +31 -45
- package/dist/components/Filter/contexts/filter.provider.js +15 -10
- package/dist/components/Filter/events/index.js +26 -5
- package/dist/components/Filter/hooks/index.js +4 -0
- package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +26 -19
- 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 +14 -13
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +6 -4
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +16 -16
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PieChart/PieChart.js +33 -32
- package/dist/components/ProgressBar/ProgressBar.js +26 -20
- package/dist/components/Radio/Radio.js +28 -30
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +24 -24
- package/dist/components/Range/Range.js +15 -13
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +2 -2
- package/dist/components/Select/components/ListItem/ListItem.js +30 -30
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useSelect.js +28 -39
- package/dist/components/Sidebar/Sidebar.js +21 -18
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +20 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +14 -10
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +14 -4
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +41 -37
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +4 -5
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +75 -68
- package/dist/components/Sidebar/components/index.js +17 -15
- package/dist/components/Sidebar/contexts/SidebarContext.js +8 -5
- package/dist/components/Slider/Slider.js +17 -15
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.variants.js +6 -6
- package/dist/components/Stepper/hooks/useStepItemLogic.js +12 -17
- 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/Tabs.variants.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/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +17 -17
- 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 +12 -11
- package/dist/components/TimePicker/components/HoursList/HoursList.js +34 -38
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +25 -29
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +33 -33
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +91 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +29 -30
- package/dist/components/TimePicker/contexts/time-picker.provider.js +10 -10
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -29
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +0 -2
- package/dist/components/VirtualizedTable/components/Body/Body.js +5 -5
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +55 -53
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/events/filters/filters.js +7 -0
- package/dist/components/VirtualizedTable/events/index.js +10 -25
- package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
- package/dist/components/VirtualizedTable/events/row/row.js +22 -0
- package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
- package/dist/components/VirtualizedTable/utils/index.js +4 -2
- package/dist/components/index.js +95 -89
- package/dist/{components-BIHlj4yH.js → components-Cf345jTv.js} +45 -41
- package/dist/constants-CxJJRVK3.js +31 -0
- package/dist/{dist-DISvWx7U.js → dist-BUocnzkM.js} +1 -1
- package/dist/{dist-Dse3gSmZ.js → dist-BZNE2Tnx.js} +4 -4
- package/dist/{dist-2bGlmy8N2.js → dist-BaPW7qXd2.js} +27 -26
- package/dist/dist-BdobXn93.js +192 -0
- package/dist/dist-BlPTJNIm.js +118 -0
- package/dist/{dist-BiJrNvNo.js → dist-C3YVLapk.js} +29 -28
- package/dist/dist-C4j75TwZ.js +20 -0
- package/dist/dist-CCdbu9GU.js +46 -0
- package/dist/dist-CzKqHuqJ2.js +427 -0
- package/dist/dist-D-yS0HN8.js +228 -0
- package/dist/dist-D5XYRjmR.js +15 -0
- package/dist/dist-DDck_2lb.js +451 -0
- package/dist/{dist-C2aTw0m62.js → dist-DFCz63oC2.js} +5 -5
- package/dist/dist-DGOjiAnB2.js +14 -0
- package/dist/dist-DKryKPmP.js +193 -0
- package/dist/{dist-CTvBzxW8.js → dist-DX0sBG3Q.js} +1 -1
- package/dist/dist-DYIabsrY.js +17 -0
- package/dist/dist-pWlMx4Fi2.js +36 -0
- package/dist/{dist-CVDFmWf2.js → dist-tGUUcv8n.js} +17 -16
- package/dist/dist-xCbHbMLA.js +116 -0
- package/dist/{es2015-BWf6xQHm.js → es2015-CoHq2g4y.js} +95 -86
- package/dist/es2015-DigR3dar.js +795 -0
- package/dist/events.types-BG1Uh8i6.js +6 -0
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useClickOutside.js +14 -0
- package/dist/index.js +146 -138
- package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +0 -1
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +5 -6
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +2 -0
- package/dist/lib/components/Filter/Filter.types.d.ts +2 -0
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +1 -0
- package/dist/lib/components/Filter/events/index.d.ts +10 -2
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
- package/dist/lib/components/PieChart/PieChart.types.d.ts +4 -4
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +2 -0
- package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -3
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +6 -5
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/components/index.d.ts +2 -0
- package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +12 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
- package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -14
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +2 -2
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useClickOutside.d.ts +2 -0
- package/dist/package.json +24 -24
- package/dist/styles.css +1 -1
- package/dist/{table.provider-2sAkE7z_.js → table.provider-B0BafHuU.js} +395 -381
- package/dist/ui/civo-theme.css +4 -0
- package/dist/ui/kubefirst-theme.css +4 -0
- package/package.json +24 -24
- package/dist/Counter-CY0xGnVM.js +0 -208
- package/dist/DropdownButton-DnlwdPmb.js +0 -92
- package/dist/Modal-Bfzggwlr.js +0 -76
- package/dist/Wrapper-ClJ_Mham.js +0 -110
- package/dist/Wrapper-DNEn4fef.js +0 -161
- package/dist/constants-DXrF9vV4.js +0 -31
- package/dist/dist-B-Aoze_D.js +0 -10
- package/dist/dist-BuFiu480.js +0 -13
- package/dist/dist-C2s4VX-42.js +0 -31
- package/dist/dist-CT6d9xe7.js +0 -441
- package/dist/dist-CVy-ulDZ.js +0 -42
- package/dist/dist-D4FePjTS.js +0 -194
- package/dist/dist-Db6UeFo4.js +0 -291
- package/dist/dist-DqKFpce5.js +0 -98
- package/dist/dist-j7FOUrFU.js +0 -206
- package/dist/dist-l-aDnQZC.js +0 -62
- package/dist/dist-ppXKUlVt.js +0 -10
- /package/dist/{x-a_LpoXzG.js → x-a_LpoXzG2.js} +0 -0
package/dist/dist-CVy-ulDZ.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { n as f } from "./dist-DqKFpce5.js";
|
|
2
|
-
import * as p from "react";
|
|
3
|
-
import * as c from "react-dom";
|
|
4
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
-
var v = [
|
|
6
|
-
"a",
|
|
7
|
-
"button",
|
|
8
|
-
"div",
|
|
9
|
-
"form",
|
|
10
|
-
"h2",
|
|
11
|
-
"h3",
|
|
12
|
-
"img",
|
|
13
|
-
"input",
|
|
14
|
-
"label",
|
|
15
|
-
"li",
|
|
16
|
-
"nav",
|
|
17
|
-
"ol",
|
|
18
|
-
"p",
|
|
19
|
-
"select",
|
|
20
|
-
"span",
|
|
21
|
-
"svg",
|
|
22
|
-
"ul"
|
|
23
|
-
].reduce((t, i) => {
|
|
24
|
-
const o = f(`Primitive.${i}`), r = p.forwardRef((e, s) => {
|
|
25
|
-
const { asChild: a, ...m } = e, n = a ? o : i;
|
|
26
|
-
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, {
|
|
27
|
-
...m,
|
|
28
|
-
ref: s
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
return r.displayName = `Primitive.${i}`, {
|
|
32
|
-
...t,
|
|
33
|
-
[i]: r
|
|
34
|
-
};
|
|
35
|
-
}, {});
|
|
36
|
-
function h(t, i) {
|
|
37
|
-
t && c.flushSync(() => t.dispatchEvent(i));
|
|
38
|
-
}
|
|
39
|
-
export {
|
|
40
|
-
h as n,
|
|
41
|
-
v as t
|
|
42
|
-
};
|
package/dist/dist-D4FePjTS.js
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import * as r from "react";
|
|
2
|
-
import { jsx as A } from "react/jsx-runtime";
|
|
3
|
-
function Y(e, o = []) {
|
|
4
|
-
let t = [];
|
|
5
|
-
function i(c, s) {
|
|
6
|
-
const l = r.createContext(s);
|
|
7
|
-
l.displayName = c + "Context";
|
|
8
|
-
const u = t.length;
|
|
9
|
-
t = [...t, s];
|
|
10
|
-
const a = (d) => {
|
|
11
|
-
const { scope: w, children: m, ...v } = d, E = w?.[e]?.[u] || l, C = r.useMemo(() => v, Object.values(v));
|
|
12
|
-
return /* @__PURE__ */ A(E.Provider, {
|
|
13
|
-
value: C,
|
|
14
|
-
children: m
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
a.displayName = c + "Provider";
|
|
18
|
-
function f(d, w, m = {}) {
|
|
19
|
-
const { optional: v = !1 } = m, E = w?.[e]?.[u] || l, C = r.useContext(E);
|
|
20
|
-
if (C) return C;
|
|
21
|
-
if (s !== void 0) return s;
|
|
22
|
-
if (!v)
|
|
23
|
-
throw new Error(`\`${d}\` must be used within \`${c}\``);
|
|
24
|
-
}
|
|
25
|
-
return [a, f];
|
|
26
|
-
}
|
|
27
|
-
const n = () => {
|
|
28
|
-
const c = t.map((s) => r.createContext(s));
|
|
29
|
-
return function(l) {
|
|
30
|
-
const u = l?.[e] || c;
|
|
31
|
-
return r.useMemo(() => ({ [`__scope${e}`]: {
|
|
32
|
-
...l,
|
|
33
|
-
[e]: u
|
|
34
|
-
} }), [l, u]);
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
return n.scopeName = e, [i, I(n, ...o)];
|
|
38
|
-
}
|
|
39
|
-
function I(...e) {
|
|
40
|
-
const o = e[0];
|
|
41
|
-
if (e.length === 1) return o;
|
|
42
|
-
const t = () => {
|
|
43
|
-
const i = e.map((n) => ({
|
|
44
|
-
useScope: n(),
|
|
45
|
-
scopeName: n.scopeName
|
|
46
|
-
}));
|
|
47
|
-
return function(c) {
|
|
48
|
-
const s = i.reduce((l, { useScope: u, scopeName: a }) => {
|
|
49
|
-
const f = u(c)[`__scope${a}`];
|
|
50
|
-
return {
|
|
51
|
-
...l,
|
|
52
|
-
...f
|
|
53
|
-
};
|
|
54
|
-
}, {});
|
|
55
|
-
return r.useMemo(() => ({ [`__scope${o.scopeName}`]: s }), [s]);
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
return t.scopeName = o.scopeName, t;
|
|
59
|
-
}
|
|
60
|
-
var j = Object.defineProperty, p = (e, o) => j(e, "name", {
|
|
61
|
-
value: o,
|
|
62
|
-
configurable: !0
|
|
63
|
-
}), x = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
64
|
-
function F(e, o, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
65
|
-
return /* @__PURE__ */ p(function(n) {
|
|
66
|
-
if (e?.(n), t === !1 || !n || !n.defaultPrevented) return o?.(n);
|
|
67
|
-
}, "handleEvent");
|
|
68
|
-
}
|
|
69
|
-
p(F, "composeEventHandlers");
|
|
70
|
-
function N(e) {
|
|
71
|
-
if (!x) throw new Error("Cannot access window outside of the DOM");
|
|
72
|
-
return e?.ownerDocument?.defaultView ?? window;
|
|
73
|
-
}
|
|
74
|
-
p(N, "getOwnerWindow");
|
|
75
|
-
function S(e) {
|
|
76
|
-
if (!x) throw new Error("Cannot access document outside of the DOM");
|
|
77
|
-
return e?.ownerDocument ?? document;
|
|
78
|
-
}
|
|
79
|
-
p(S, "getOwnerDocument");
|
|
80
|
-
function y(e, o = !1) {
|
|
81
|
-
const { activeElement: t } = S(e);
|
|
82
|
-
if (!t?.nodeName) return null;
|
|
83
|
-
if (O(t) && t.contentDocument) return y(t.contentDocument.body, o);
|
|
84
|
-
if (o) {
|
|
85
|
-
const i = t.getAttribute("aria-activedescendant");
|
|
86
|
-
if (i) {
|
|
87
|
-
const n = S(t).getElementById(i);
|
|
88
|
-
if (n) return n;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return t;
|
|
92
|
-
}
|
|
93
|
-
p(y, "getActiveElement");
|
|
94
|
-
function O(e) {
|
|
95
|
-
return e.tagName === "IFRAME";
|
|
96
|
-
}
|
|
97
|
-
p(O, "isFrame");
|
|
98
|
-
var P = globalThis?.document ? r.useLayoutEffect : () => {
|
|
99
|
-
}, $ = r[" useEffectEvent ".trim().toString()], b = r[" useInsertionEffect ".trim().toString()];
|
|
100
|
-
function T(e) {
|
|
101
|
-
if (typeof $ == "function") return $(e);
|
|
102
|
-
const o = r.useRef(() => {
|
|
103
|
-
throw new Error("Cannot call an event handler while rendering.");
|
|
104
|
-
});
|
|
105
|
-
return typeof b == "function" ? b(() => {
|
|
106
|
-
o.current = e;
|
|
107
|
-
}) : P(() => {
|
|
108
|
-
o.current = e;
|
|
109
|
-
}), r.useMemo(() => ((...t) => o.current?.(...t)), []);
|
|
110
|
-
}
|
|
111
|
-
var U = Object.defineProperty, h = (e, o) => U(e, "name", {
|
|
112
|
-
value: o,
|
|
113
|
-
configurable: !0
|
|
114
|
-
}), H = r[" useInsertionEffect ".trim().toString()] || P;
|
|
115
|
-
function B({ prop: e, defaultProp: o, onChange: t = /* @__PURE__ */ h(() => {
|
|
116
|
-
}, "onChange"), caller: i }) {
|
|
117
|
-
const [n, c, s] = D({
|
|
118
|
-
defaultProp: o,
|
|
119
|
-
onChange: t
|
|
120
|
-
}), l = e !== void 0;
|
|
121
|
-
return [l ? e : n, r.useCallback((a) => {
|
|
122
|
-
if (l) {
|
|
123
|
-
const f = M(a) ? a(e) : a;
|
|
124
|
-
f !== e && s.current?.(f);
|
|
125
|
-
} else c(a);
|
|
126
|
-
}, [
|
|
127
|
-
l,
|
|
128
|
-
e,
|
|
129
|
-
c,
|
|
130
|
-
s
|
|
131
|
-
])];
|
|
132
|
-
}
|
|
133
|
-
h(B, "useControllableState");
|
|
134
|
-
function D({ defaultProp: e, onChange: o }) {
|
|
135
|
-
const [t, i] = r.useState(e), n = r.useRef(t), c = r.useRef(o);
|
|
136
|
-
return H(() => {
|
|
137
|
-
c.current = o;
|
|
138
|
-
}, [o]), r.useEffect(() => {
|
|
139
|
-
n.current !== t && (c.current?.(t), n.current = t);
|
|
140
|
-
}, [t, n]), [
|
|
141
|
-
t,
|
|
142
|
-
i,
|
|
143
|
-
c
|
|
144
|
-
];
|
|
145
|
-
}
|
|
146
|
-
h(D, "useUncontrolledState");
|
|
147
|
-
function M(e) {
|
|
148
|
-
return typeof e == "function";
|
|
149
|
-
}
|
|
150
|
-
h(M, "isFunction");
|
|
151
|
-
var _ = /* @__PURE__ */ Symbol("RADIX:SYNC_STATE");
|
|
152
|
-
function L(e, o, t, i) {
|
|
153
|
-
const { prop: n, defaultProp: c, onChange: s, caller: l } = o, u = n !== void 0, a = T(s), f = [{
|
|
154
|
-
...t,
|
|
155
|
-
state: c
|
|
156
|
-
}];
|
|
157
|
-
i && f.push(i);
|
|
158
|
-
const [d, w] = r.useReducer((C, g) => {
|
|
159
|
-
if (g.type === _) return {
|
|
160
|
-
...C,
|
|
161
|
-
state: g.state
|
|
162
|
-
};
|
|
163
|
-
const R = e(C, g);
|
|
164
|
-
return u && !Object.is(R.state, C.state) && a(R.state), R;
|
|
165
|
-
}, ...f), m = d.state, v = r.useRef(m);
|
|
166
|
-
r.useEffect(() => {
|
|
167
|
-
v.current !== m && (v.current = m, u || a(m));
|
|
168
|
-
}, [
|
|
169
|
-
m,
|
|
170
|
-
v,
|
|
171
|
-
u
|
|
172
|
-
]);
|
|
173
|
-
const E = r.useMemo(() => n !== void 0 ? {
|
|
174
|
-
...d,
|
|
175
|
-
state: n
|
|
176
|
-
} : d, [d, n]);
|
|
177
|
-
return r.useEffect(() => {
|
|
178
|
-
u && !Object.is(n, d.state) && w({
|
|
179
|
-
type: _,
|
|
180
|
-
state: n
|
|
181
|
-
});
|
|
182
|
-
}, [
|
|
183
|
-
n,
|
|
184
|
-
d.state,
|
|
185
|
-
u
|
|
186
|
-
]), [E, w];
|
|
187
|
-
}
|
|
188
|
-
h(L, "useControllableStateReducer");
|
|
189
|
-
export {
|
|
190
|
-
Y as i,
|
|
191
|
-
P as n,
|
|
192
|
-
F as r,
|
|
193
|
-
B as t
|
|
194
|
-
};
|
package/dist/dist-Db6UeFo4.js
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { a as oe } from "./dist-DqKFpce5.js";
|
|
2
|
-
import { t as h } from "./dist-CVy-ulDZ.js";
|
|
3
|
-
import { i as B, n as re, r as I, t as $ } from "./dist-D4FePjTS.js";
|
|
4
|
-
import { t as j } from "./dist-BuFiu480.js";
|
|
5
|
-
import { t as ne } from "./dist-ppXKUlVt.js";
|
|
6
|
-
import { t as ae } from "./dist-DISvWx7U.js";
|
|
7
|
-
import { t as Y } from "./dist-B-Aoze_D.js";
|
|
8
|
-
import { t as se } from "./dist-l-aDnQZC.js";
|
|
9
|
-
import * as a from "react";
|
|
10
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
11
|
-
var D = !1;
|
|
12
|
-
function ie() {
|
|
13
|
-
const [t, e] = a.useState(D);
|
|
14
|
-
return a.useEffect(() => {
|
|
15
|
-
D || (D = !0, e(!0));
|
|
16
|
-
}, []), t;
|
|
17
|
-
}
|
|
18
|
-
var z = a[" useSyncExternalStore ".trim().toString()];
|
|
19
|
-
function ce() {
|
|
20
|
-
return () => {
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function ue() {
|
|
24
|
-
return z(ce, () => !0, () => !1);
|
|
25
|
-
}
|
|
26
|
-
var le = typeof z == "function" ? ue : ie, fe = Object.defineProperty, _ = (t, e) => fe(t, "name", {
|
|
27
|
-
value: e,
|
|
28
|
-
configurable: !0
|
|
29
|
-
}), M = "rovingFocusGroup.onEntryFocus", de = {
|
|
30
|
-
bubbles: !1,
|
|
31
|
-
cancelable: !0
|
|
32
|
-
}, P = "RovingFocusGroup", [L, q, ve] = se(P), [be, J] = B(P, [ve]), [pe, ge] = be(P), me = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ _(function(e, i) {
|
|
33
|
-
return /* @__PURE__ */ f(L.Provider, {
|
|
34
|
-
scope: e.__scopeRovingFocusGroup,
|
|
35
|
-
children: /* @__PURE__ */ f(L.Slot, {
|
|
36
|
-
scope: e.__scopeRovingFocusGroup,
|
|
37
|
-
children: /* @__PURE__ */ f(Te, {
|
|
38
|
-
...e,
|
|
39
|
-
ref: i
|
|
40
|
-
})
|
|
41
|
-
})
|
|
42
|
-
});
|
|
43
|
-
}, "RovingFocusGroup")), Te = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ _(function(e, i) {
|
|
44
|
-
const { __scopeRovingFocusGroup: o, orientation: r, loop: u = !1, dir: d, currentTabStopId: s, defaultCurrentTabStopId: b, onCurrentTabStopIdChange: T, onEntryFocus: p, preventScrollOnEntryFocus: n = !1, ...c } = e, g = a.useRef(null), E = oe(i, g), y = Y(d), [A, C] = $({
|
|
45
|
-
prop: s,
|
|
46
|
-
defaultProp: b ?? null,
|
|
47
|
-
onChange: T,
|
|
48
|
-
caller: P
|
|
49
|
-
}), [l, F] = a.useState(!1), m = ne(p), R = q(o), G = a.useRef(!1), [ee, V] = a.useState(0);
|
|
50
|
-
return a.useEffect(() => {
|
|
51
|
-
const v = g.current;
|
|
52
|
-
if (v)
|
|
53
|
-
return v.addEventListener(M, m), () => v.removeEventListener(M, m);
|
|
54
|
-
}, [m]), /* @__PURE__ */ f(pe, {
|
|
55
|
-
scope: o,
|
|
56
|
-
orientation: r,
|
|
57
|
-
dir: y,
|
|
58
|
-
loop: u,
|
|
59
|
-
currentTabStopId: A,
|
|
60
|
-
onItemFocus: a.useCallback((v) => C(v), [C]),
|
|
61
|
-
onItemShiftTab: a.useCallback(() => F(!0), []),
|
|
62
|
-
onFocusableItemAdd: a.useCallback(() => V((v) => v + 1), []),
|
|
63
|
-
onFocusableItemRemove: a.useCallback(() => V((v) => v - 1), []),
|
|
64
|
-
children: /* @__PURE__ */ f(h.div, {
|
|
65
|
-
tabIndex: l || ee === 0 ? -1 : 0,
|
|
66
|
-
"data-orientation": r,
|
|
67
|
-
...c,
|
|
68
|
-
ref: E,
|
|
69
|
-
style: {
|
|
70
|
-
outline: "none",
|
|
71
|
-
...e.style
|
|
72
|
-
},
|
|
73
|
-
onMouseDown: I(e.onMouseDown, () => {
|
|
74
|
-
G.current = !0;
|
|
75
|
-
}),
|
|
76
|
-
onFocus: I(e.onFocus, (v) => {
|
|
77
|
-
const te = !G.current;
|
|
78
|
-
if (v.target === v.currentTarget && te && !l) {
|
|
79
|
-
const U = new CustomEvent(M, de);
|
|
80
|
-
if (v.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
81
|
-
const x = R().filter((S) => S.focusable);
|
|
82
|
-
N([
|
|
83
|
-
x.find((S) => S.active),
|
|
84
|
-
x.find((S) => S.id === A),
|
|
85
|
-
...x
|
|
86
|
-
].filter(Boolean).map((S) => S.ref.current), n);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
G.current = !1;
|
|
90
|
-
}),
|
|
91
|
-
onBlur: I(e.onBlur, () => F(!1))
|
|
92
|
-
})
|
|
93
|
-
});
|
|
94
|
-
}, "RovingFocusGroupImpl")), Ie = "RovingFocusGroupItem", Fe = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ _(function(e, i) {
|
|
95
|
-
const { __scopeRovingFocusGroup: o, focusable: r = !0, active: u = !1, tabStopId: d, children: s, ...b } = e, T = j(), p = d || T, n = ge(Ie, o), c = n.currentTabStopId === p, g = q(o), { onFocusableItemAdd: E, onFocusableItemRemove: y, currentTabStopId: A } = n, C = le();
|
|
96
|
-
return re(() => {
|
|
97
|
-
if (!(!C || !r))
|
|
98
|
-
return E(), () => y();
|
|
99
|
-
}, [
|
|
100
|
-
C,
|
|
101
|
-
r,
|
|
102
|
-
E,
|
|
103
|
-
y
|
|
104
|
-
]), a.useEffect(() => {
|
|
105
|
-
if (!(C || !r))
|
|
106
|
-
return E(), () => y();
|
|
107
|
-
}, [
|
|
108
|
-
C,
|
|
109
|
-
r,
|
|
110
|
-
E,
|
|
111
|
-
y
|
|
112
|
-
]), /* @__PURE__ */ f(L.ItemSlot, {
|
|
113
|
-
scope: o,
|
|
114
|
-
id: p,
|
|
115
|
-
focusable: r,
|
|
116
|
-
active: u,
|
|
117
|
-
children: /* @__PURE__ */ f(h.span, {
|
|
118
|
-
tabIndex: c ? 0 : -1,
|
|
119
|
-
"data-orientation": n.orientation,
|
|
120
|
-
...b,
|
|
121
|
-
ref: i,
|
|
122
|
-
onMouseDown: I(e.onMouseDown, (l) => {
|
|
123
|
-
r ? n.onItemFocus(p) : l.preventDefault();
|
|
124
|
-
}),
|
|
125
|
-
onFocus: I(e.onFocus, () => n.onItemFocus(p)),
|
|
126
|
-
onKeyDown: I(e.onKeyDown, (l) => {
|
|
127
|
-
if (l.key === "Tab" && l.shiftKey) {
|
|
128
|
-
n.onItemShiftTab();
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
if (l.target !== l.currentTarget) return;
|
|
132
|
-
const F = W(l, n.orientation, n.dir);
|
|
133
|
-
if (F !== void 0) {
|
|
134
|
-
if (l.metaKey || l.ctrlKey || l.altKey || l.shiftKey) return;
|
|
135
|
-
l.preventDefault();
|
|
136
|
-
let m = g().filter((R) => R.focusable).map((R) => R.ref.current);
|
|
137
|
-
if (F === "last") m.reverse();
|
|
138
|
-
else if (F === "prev" || F === "next") {
|
|
139
|
-
F === "prev" && m.reverse();
|
|
140
|
-
const R = m.indexOf(l.currentTarget);
|
|
141
|
-
m = n.loop ? X(m, R + 1) : m.slice(R + 1);
|
|
142
|
-
}
|
|
143
|
-
setTimeout(() => N(m));
|
|
144
|
-
}
|
|
145
|
-
}),
|
|
146
|
-
children: typeof s == "function" ? s({
|
|
147
|
-
isCurrentTabStop: c,
|
|
148
|
-
hasTabStop: A != null
|
|
149
|
-
}) : s
|
|
150
|
-
})
|
|
151
|
-
});
|
|
152
|
-
}, "RovingFocusGroupItem")), Re = {
|
|
153
|
-
ArrowLeft: "prev",
|
|
154
|
-
ArrowUp: "prev",
|
|
155
|
-
ArrowRight: "next",
|
|
156
|
-
ArrowDown: "next",
|
|
157
|
-
PageUp: "first",
|
|
158
|
-
Home: "first",
|
|
159
|
-
PageDown: "last",
|
|
160
|
-
End: "last"
|
|
161
|
-
};
|
|
162
|
-
function Q(t, e) {
|
|
163
|
-
return e !== "rtl" ? t : t === "ArrowLeft" ? "ArrowRight" : t === "ArrowRight" ? "ArrowLeft" : t;
|
|
164
|
-
}
|
|
165
|
-
_(Q, "getDirectionAwareKey");
|
|
166
|
-
function W(t, e, i) {
|
|
167
|
-
const o = Q(t.key, i);
|
|
168
|
-
if (!(e === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(e === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
169
|
-
return Re[o];
|
|
170
|
-
}
|
|
171
|
-
_(W, "getFocusIntent");
|
|
172
|
-
function N(t, e = !1) {
|
|
173
|
-
const i = document.activeElement;
|
|
174
|
-
for (const o of t)
|
|
175
|
-
if (o === i || (o.focus({ preventScroll: e }), document.activeElement !== i)) return;
|
|
176
|
-
}
|
|
177
|
-
_(N, "focusFirst");
|
|
178
|
-
function X(t, e) {
|
|
179
|
-
return t.map((i, o) => t[(e + o) % t.length]);
|
|
180
|
-
}
|
|
181
|
-
_(X, "wrapArray");
|
|
182
|
-
var Ce = me, Se = Fe, _e = Object.defineProperty, w = (t, e) => _e(t, "name", {
|
|
183
|
-
value: e,
|
|
184
|
-
configurable: !0
|
|
185
|
-
}), O = "Tabs", [Ee, Be] = B(O, [J]), Z = J(), [ye, K] = Ee(O), he = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ w(function(e, i) {
|
|
186
|
-
const { __scopeTabs: o, value: r, onValueChange: u, defaultValue: d, orientation: s = "horizontal", dir: b, activationMode: T = "automatic", ...p } = e, n = Y(b), [c, g] = $({
|
|
187
|
-
prop: r,
|
|
188
|
-
onChange: u,
|
|
189
|
-
defaultProp: d ?? "",
|
|
190
|
-
caller: O
|
|
191
|
-
});
|
|
192
|
-
return /* @__PURE__ */ f(ye, {
|
|
193
|
-
scope: o,
|
|
194
|
-
baseId: j(),
|
|
195
|
-
value: c,
|
|
196
|
-
onValueChange: g,
|
|
197
|
-
orientation: s,
|
|
198
|
-
dir: n,
|
|
199
|
-
activationMode: T,
|
|
200
|
-
children: /* @__PURE__ */ f(h.div, {
|
|
201
|
-
dir: n,
|
|
202
|
-
"data-orientation": s,
|
|
203
|
-
...p,
|
|
204
|
-
ref: i
|
|
205
|
-
})
|
|
206
|
-
});
|
|
207
|
-
}, "Tabs")), we = "TabsList", Ae = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ w(function(e, i) {
|
|
208
|
-
const { __scopeTabs: o, loop: r = !0, ...u } = e, d = K(we, o), s = Z(o);
|
|
209
|
-
return /* @__PURE__ */ f(Ce, {
|
|
210
|
-
asChild: !0,
|
|
211
|
-
...s,
|
|
212
|
-
orientation: d.orientation,
|
|
213
|
-
dir: d.dir,
|
|
214
|
-
loop: r,
|
|
215
|
-
children: /* @__PURE__ */ f(h.div, {
|
|
216
|
-
role: "tablist",
|
|
217
|
-
"aria-orientation": d.orientation,
|
|
218
|
-
...u,
|
|
219
|
-
ref: i
|
|
220
|
-
})
|
|
221
|
-
});
|
|
222
|
-
}, "TabsList")), Pe = "TabsTrigger", Ge = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ w(function(e, i) {
|
|
223
|
-
const { __scopeTabs: o, value: r, disabled: u = !1, ...d } = e, s = K(Pe, o), b = Z(o), T = k(s.baseId, r), p = H(s.baseId, r), n = r === s.value;
|
|
224
|
-
return /* @__PURE__ */ f(Se, {
|
|
225
|
-
asChild: !0,
|
|
226
|
-
...b,
|
|
227
|
-
focusable: !u,
|
|
228
|
-
active: n,
|
|
229
|
-
children: /* @__PURE__ */ f(h.button, {
|
|
230
|
-
type: "button",
|
|
231
|
-
role: "tab",
|
|
232
|
-
"aria-selected": n,
|
|
233
|
-
"aria-controls": p,
|
|
234
|
-
"data-state": n ? "active" : "inactive",
|
|
235
|
-
"data-disabled": u ? "" : void 0,
|
|
236
|
-
disabled: u,
|
|
237
|
-
id: T,
|
|
238
|
-
...d,
|
|
239
|
-
ref: i,
|
|
240
|
-
onMouseDown: I(e.onMouseDown, (c) => {
|
|
241
|
-
!u && c.button === 0 && c.ctrlKey === !1 ? s.onValueChange(r) : c.preventDefault();
|
|
242
|
-
}),
|
|
243
|
-
onKeyDown: I(e.onKeyDown, (c) => {
|
|
244
|
-
u || c.target !== c.currentTarget || [" ", "Enter"].includes(c.key) && s.onValueChange(r);
|
|
245
|
-
}),
|
|
246
|
-
onFocus: I(e.onFocus, () => {
|
|
247
|
-
const c = s.activationMode !== "manual";
|
|
248
|
-
!n && !u && c && s.onValueChange(r);
|
|
249
|
-
})
|
|
250
|
-
})
|
|
251
|
-
});
|
|
252
|
-
}, "TabsTrigger")), xe = "TabsContent", De = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ w(function(e, i) {
|
|
253
|
-
const { __scopeTabs: o, value: r, forceMount: u, children: d, ...s } = e, b = K(xe, o), T = k(b.baseId, r), p = H(b.baseId, r), n = r === b.value, c = a.useRef(n);
|
|
254
|
-
return a.useEffect(() => {
|
|
255
|
-
const g = requestAnimationFrame(() => c.current = !1);
|
|
256
|
-
return () => cancelAnimationFrame(g);
|
|
257
|
-
}, []), /* @__PURE__ */ f(ae, {
|
|
258
|
-
present: u || n,
|
|
259
|
-
children: ({ present: g }) => /* @__PURE__ */ f(h.div, {
|
|
260
|
-
"data-state": n ? "active" : "inactive",
|
|
261
|
-
"data-orientation": b.orientation,
|
|
262
|
-
role: "tabpanel",
|
|
263
|
-
"aria-labelledby": T,
|
|
264
|
-
hidden: !g,
|
|
265
|
-
id: p,
|
|
266
|
-
tabIndex: 0,
|
|
267
|
-
...s,
|
|
268
|
-
ref: i,
|
|
269
|
-
style: {
|
|
270
|
-
...e.style,
|
|
271
|
-
animationDuration: c.current ? "0s" : void 0
|
|
272
|
-
},
|
|
273
|
-
children: g && d
|
|
274
|
-
})
|
|
275
|
-
});
|
|
276
|
-
}, "TabsContent"));
|
|
277
|
-
function k(t, e) {
|
|
278
|
-
return `${t}-trigger-${e}`;
|
|
279
|
-
}
|
|
280
|
-
w(k, "makeTriggerId");
|
|
281
|
-
function H(t, e) {
|
|
282
|
-
return `${t}-content-${e}`;
|
|
283
|
-
}
|
|
284
|
-
w(H, "makeContentId");
|
|
285
|
-
var $e = he, je = Ae, Ye = Ge, ze = De;
|
|
286
|
-
export {
|
|
287
|
-
Ye as i,
|
|
288
|
-
je as n,
|
|
289
|
-
$e as r,
|
|
290
|
-
ze as t
|
|
291
|
-
};
|
package/dist/dist-DqKFpce5.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import * as l from "react";
|
|
2
|
-
function E(t, e) {
|
|
3
|
-
if (typeof t == "function") return t(e);
|
|
4
|
-
t != null && (t.current = e);
|
|
5
|
-
}
|
|
6
|
-
function b(...t) {
|
|
7
|
-
return (e) => {
|
|
8
|
-
let n = !1;
|
|
9
|
-
const o = t.map((r) => {
|
|
10
|
-
const s = E(r, e);
|
|
11
|
-
return !n && typeof s == "function" && (n = !0), s;
|
|
12
|
-
});
|
|
13
|
-
if (n) return () => {
|
|
14
|
-
for (let r = 0; r < o.length; r++) {
|
|
15
|
-
const s = o[r];
|
|
16
|
-
typeof s == "function" ? s() : E(t[r], null);
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function R(...t) {
|
|
22
|
-
return l.useCallback(b(...t), t);
|
|
23
|
-
}
|
|
24
|
-
// @__NO_SIDE_EFFECTS__
|
|
25
|
-
function _(t) {
|
|
26
|
-
const e = l.forwardRef((n, o) => {
|
|
27
|
-
let { children: r, ...s } = n, i = null, a = !1;
|
|
28
|
-
const u = [];
|
|
29
|
-
m(r) && typeof p == "function" && (r = p(r._payload)), l.Children.forEach(r, (d) => {
|
|
30
|
-
if (x(d)) {
|
|
31
|
-
a = !0;
|
|
32
|
-
const c = d;
|
|
33
|
-
let f = "child" in c.props ? c.props.child : c.props.children;
|
|
34
|
-
m(f) && typeof p == "function" && (f = p(f._payload)), i = v(c, f), u.push(i?.props?.children);
|
|
35
|
-
} else u.push(d);
|
|
36
|
-
}), i ? i = l.cloneElement(i, void 0, u) : !a && l.Children.count(r) === 1 && l.isValidElement(r) && (i = r);
|
|
37
|
-
const y = i ? C(i) : void 0, g = R(o, y);
|
|
38
|
-
if (!i) {
|
|
39
|
-
if (r || r === 0) throw new Error(a ? j(t) : V(t));
|
|
40
|
-
return r;
|
|
41
|
-
}
|
|
42
|
-
const h = $(s, i.props ?? {});
|
|
43
|
-
return i.type !== l.Fragment && (h.ref = o ? g : y), l.cloneElement(i, h);
|
|
44
|
-
});
|
|
45
|
-
return e.displayName = `${t}.Slot`, e;
|
|
46
|
-
}
|
|
47
|
-
var L = /* @__PURE__ */ _("Slot"), S = /* @__PURE__ */ Symbol.for("radix.slottable");
|
|
48
|
-
// @__NO_SIDE_EFFECTS__
|
|
49
|
-
function O(t) {
|
|
50
|
-
const e = (n) => "child" in n ? n.children(n.child) : n.children;
|
|
51
|
-
return e.displayName = `${t}.Slottable`, e.__radixId = S, e;
|
|
52
|
-
}
|
|
53
|
-
var v = (t, e) => {
|
|
54
|
-
if ("child" in t.props) {
|
|
55
|
-
const n = t.props.child;
|
|
56
|
-
return l.isValidElement(n) ? l.cloneElement(n, void 0, t.props.children(n.props.children)) : null;
|
|
57
|
-
}
|
|
58
|
-
return l.isValidElement(e) ? e : null;
|
|
59
|
-
};
|
|
60
|
-
function $(t, e) {
|
|
61
|
-
const n = { ...e };
|
|
62
|
-
for (const o in e) {
|
|
63
|
-
const r = t[o], s = e[o];
|
|
64
|
-
/^on[A-Z]/.test(o) ? r && s ? n[o] = (...i) => {
|
|
65
|
-
const a = s(...i);
|
|
66
|
-
return r(...i), a;
|
|
67
|
-
} : r && (n[o] = r) : o === "style" ? n[o] = {
|
|
68
|
-
...r,
|
|
69
|
-
...s
|
|
70
|
-
} : o === "className" && (n[o] = [r, s].filter(Boolean).join(" "));
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
...t,
|
|
74
|
-
...n
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
function C(t) {
|
|
78
|
-
let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, n = e && "isReactWarning" in e && e.isReactWarning;
|
|
79
|
-
return n ? t.ref : (e = Object.getOwnPropertyDescriptor(t, "ref")?.get, n = e && "isReactWarning" in e && e.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
|
|
80
|
-
}
|
|
81
|
-
function x(t) {
|
|
82
|
-
return l.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === S;
|
|
83
|
-
}
|
|
84
|
-
var P = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
85
|
-
function m(t) {
|
|
86
|
-
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === P && "_payload" in t && I(t._payload);
|
|
87
|
-
}
|
|
88
|
-
function I(t) {
|
|
89
|
-
return typeof t == "object" && t !== null && "then" in t;
|
|
90
|
-
}
|
|
91
|
-
var V = (t) => `${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, j = (t) => `${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, p = l[" use ".trim().toString()];
|
|
92
|
-
export {
|
|
93
|
-
R as a,
|
|
94
|
-
b as i,
|
|
95
|
-
_ as n,
|
|
96
|
-
O as r,
|
|
97
|
-
L as t
|
|
98
|
-
};
|