@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
var o = Object.defineProperty, n = (e, t) => o(e, "name", {
|
|
4
|
+
value: t,
|
|
5
|
+
configurable: !0
|
|
6
|
+
}), i = r.createContext(void 0);
|
|
7
|
+
function a(e) {
|
|
8
|
+
const t = r.useContext(i);
|
|
9
|
+
return e || t || "ltr";
|
|
10
|
+
}
|
|
11
|
+
n(a, "useDirection");
|
|
12
|
+
export {
|
|
13
|
+
a as t
|
|
14
|
+
};
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { a as A } from "./dist-xCbHbMLA.js";
|
|
2
|
+
import { n as X, t as H } from "./dist-CCdbu9GU.js";
|
|
3
|
+
import { r as g } from "./dist-D-yS0HN8.js";
|
|
4
|
+
import { t as k } from "./dist-D5XYRjmR.js";
|
|
5
|
+
import * as n from "react";
|
|
6
|
+
import { jsx as z } from "react/jsx-runtime";
|
|
7
|
+
var $ = Object.defineProperty, o = (c, s) => $(c, "name", {
|
|
8
|
+
value: s,
|
|
9
|
+
configurable: !0
|
|
10
|
+
}), T = "dismissableLayer.update", q = "dismissableLayer.pointerDownOutside", G = "dismissableLayer.focusOutside", N, x = n.createContext({
|
|
11
|
+
layers: /* @__PURE__ */ new Set(),
|
|
12
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
13
|
+
branches: /* @__PURE__ */ new Set(),
|
|
14
|
+
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
15
|
+
}), J = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ o(function(s, e) {
|
|
16
|
+
const { disableOutsidePointerEvents: u = !1, deferPointerDownOutside: d = !1, onEscapeKeyDown: f, onPointerDownOutside: E, onFocusOutside: w, onInteractOutside: h, onDismiss: m, ...p } = s, t = n.useContext(x), [a, P] = n.useState(null), l = a?.ownerDocument ?? globalThis?.document, [, b] = n.useState({}), L = A(e, P), D = Array.from(t.layers), [C] = [...t.layersWithOutsidePointerEventsDisabled].slice(-1), r = C ? D.indexOf(C) : -1, v = a ? D.indexOf(a) : -1, y = t.layersWithOutsidePointerEventsDisabled.size > 0, O = v >= r, W = n.useRef(!1), M = j((i) => {
|
|
17
|
+
E?.(i), h?.(i), i.defaultPrevented || m?.();
|
|
18
|
+
}, {
|
|
19
|
+
ownerDocument: l,
|
|
20
|
+
deferPointerDownOutside: d,
|
|
21
|
+
isDeferredPointerDownOutsideRef: W,
|
|
22
|
+
dismissableSurfaces: t.dismissableSurfaces,
|
|
23
|
+
shouldHandlePointerDownOutside: n.useCallback((i) => {
|
|
24
|
+
if (!(i instanceof Node)) return !1;
|
|
25
|
+
const I = [...t.branches].some((S) => S.contains(i));
|
|
26
|
+
return O && !I;
|
|
27
|
+
}, [t.branches, O])
|
|
28
|
+
}), U = K((i) => {
|
|
29
|
+
if (d && W.current) return;
|
|
30
|
+
const I = i.target;
|
|
31
|
+
[...t.branches].some((S) => S.contains(I)) || (w?.(i), h?.(i), i.defaultPrevented || m?.());
|
|
32
|
+
}, l), _ = a ? v === D.length - 1 : !1, R = k((i) => {
|
|
33
|
+
i.key === "Escape" && (f?.(i), !i.defaultPrevented && m && (i.preventDefault(), m()));
|
|
34
|
+
});
|
|
35
|
+
return n.useEffect(() => {
|
|
36
|
+
if (_)
|
|
37
|
+
return l.addEventListener("keydown", R, { capture: !0 }), () => l.removeEventListener("keydown", R, { capture: !0 });
|
|
38
|
+
}, [
|
|
39
|
+
l,
|
|
40
|
+
_,
|
|
41
|
+
R
|
|
42
|
+
]), n.useEffect(() => {
|
|
43
|
+
if (a)
|
|
44
|
+
return u && (t.layersWithOutsidePointerEventsDisabled.size === 0 && (N = l.body.style.pointerEvents, l.body.style.pointerEvents = "none"), t.layersWithOutsidePointerEventsDisabled.add(a)), t.layers.add(a), B(), () => {
|
|
45
|
+
u && (t.layersWithOutsidePointerEventsDisabled.delete(a), t.layersWithOutsidePointerEventsDisabled.size === 0 && (l.body.style.pointerEvents = N));
|
|
46
|
+
};
|
|
47
|
+
}, [
|
|
48
|
+
a,
|
|
49
|
+
l,
|
|
50
|
+
u,
|
|
51
|
+
t
|
|
52
|
+
]), n.useEffect(() => () => {
|
|
53
|
+
a && (t.layers.delete(a), t.layersWithOutsidePointerEventsDisabled.delete(a), B());
|
|
54
|
+
}, [a, t]), n.useEffect(() => {
|
|
55
|
+
const i = /* @__PURE__ */ o(() => b({}), "handleUpdate");
|
|
56
|
+
return document.addEventListener(T, i), () => document.removeEventListener(T, i);
|
|
57
|
+
}, []), /* @__PURE__ */ z(H.div, {
|
|
58
|
+
...p,
|
|
59
|
+
ref: L,
|
|
60
|
+
style: {
|
|
61
|
+
pointerEvents: y ? O ? "auto" : "none" : void 0,
|
|
62
|
+
...s.style
|
|
63
|
+
},
|
|
64
|
+
onFocusCapture: g(s.onFocusCapture, U.onFocusCapture),
|
|
65
|
+
onBlurCapture: g(s.onBlurCapture, U.onBlurCapture),
|
|
66
|
+
onPointerDownCapture: g(s.onPointerDownCapture, M.onPointerDownCapture)
|
|
67
|
+
});
|
|
68
|
+
}, "DismissableLayer")), Q = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ o(function(s, e) {
|
|
69
|
+
const u = n.useContext(x), d = n.useRef(null), f = A(e, d);
|
|
70
|
+
return n.useEffect(() => {
|
|
71
|
+
const E = d.current;
|
|
72
|
+
if (E)
|
|
73
|
+
return u.branches.add(E), () => {
|
|
74
|
+
u.branches.delete(E);
|
|
75
|
+
};
|
|
76
|
+
}, [u.branches]), /* @__PURE__ */ z(H.div, {
|
|
77
|
+
...s,
|
|
78
|
+
ref: f
|
|
79
|
+
});
|
|
80
|
+
}, "DismissableLayerBranch"));
|
|
81
|
+
function V() {
|
|
82
|
+
const c = n.useContext(x), [s, e] = n.useState(null);
|
|
83
|
+
return n.useEffect(() => {
|
|
84
|
+
if (s)
|
|
85
|
+
return c.dismissableSurfaces.add(s), () => {
|
|
86
|
+
c.dismissableSurfaces.delete(s);
|
|
87
|
+
};
|
|
88
|
+
}, [s, c.dismissableSurfaces]), e;
|
|
89
|
+
}
|
|
90
|
+
o(V, "useDismissableLayerSurface");
|
|
91
|
+
var Y = /* @__PURE__ */ o(() => !0, "IS_TRUE");
|
|
92
|
+
function j(c, s) {
|
|
93
|
+
const { ownerDocument: e = globalThis?.document, deferPointerDownOutside: u = !1, isDeferredPointerDownOutsideRef: d, dismissableSurfaces: f, shouldHandlePointerDownOutside: E = Y } = s, w = k(c), h = n.useRef(!1), m = n.useRef(!1), p = n.useRef(/* @__PURE__ */ new Map()), t = n.useRef(() => {
|
|
94
|
+
});
|
|
95
|
+
return n.useEffect(() => {
|
|
96
|
+
function a() {
|
|
97
|
+
m.current = !1, d.current = !1, p.current.clear();
|
|
98
|
+
}
|
|
99
|
+
o(a, "resetOutsideInteraction");
|
|
100
|
+
function P() {
|
|
101
|
+
return Array.from(p.current.values()).some(Boolean);
|
|
102
|
+
}
|
|
103
|
+
o(P, "isOutsideInteractionIntercepted");
|
|
104
|
+
function l(r) {
|
|
105
|
+
if (!m.current) return;
|
|
106
|
+
const v = r.target;
|
|
107
|
+
v instanceof Node && [...f].some((y) => y.contains(v)) || p.current.set(r.type, !0), r.type === "click" && window.setTimeout(() => {
|
|
108
|
+
m.current && t.current();
|
|
109
|
+
}, 0);
|
|
110
|
+
}
|
|
111
|
+
o(l, "handleInteractionCapture");
|
|
112
|
+
function b(r) {
|
|
113
|
+
m.current && p.current.set(r.type, !1);
|
|
114
|
+
}
|
|
115
|
+
o(b, "handleInteractionBubble");
|
|
116
|
+
const L = /* @__PURE__ */ o((r) => {
|
|
117
|
+
if (r.target && !h.current) {
|
|
118
|
+
let v = function() {
|
|
119
|
+
e.removeEventListener("click", t.current);
|
|
120
|
+
const O = P();
|
|
121
|
+
a(), O || F(q, w, y, { discrete: !0 });
|
|
122
|
+
};
|
|
123
|
+
if (o(v, "handleAndDispatchPointerDownOutsideEvent"), !E(r.target)) {
|
|
124
|
+
e.removeEventListener("click", t.current), a(), h.current = !1;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const y = { originalEvent: r };
|
|
128
|
+
m.current = !0, d.current = u && r.button === 0, p.current.clear(), !u || r.button !== 0 ? v() : (e.removeEventListener("click", t.current), t.current = v, e.addEventListener("click", t.current, { once: !0 }));
|
|
129
|
+
} else
|
|
130
|
+
e.removeEventListener("click", t.current), a();
|
|
131
|
+
h.current = !1;
|
|
132
|
+
}, "handlePointerDown"), D = [
|
|
133
|
+
"pointerup",
|
|
134
|
+
"mousedown",
|
|
135
|
+
"mouseup",
|
|
136
|
+
"touchstart",
|
|
137
|
+
"touchend",
|
|
138
|
+
"click"
|
|
139
|
+
];
|
|
140
|
+
for (const r of D)
|
|
141
|
+
e.addEventListener(r, l, !0), e.addEventListener(r, b);
|
|
142
|
+
const C = window.setTimeout(() => {
|
|
143
|
+
e.addEventListener("pointerdown", L);
|
|
144
|
+
}, 0);
|
|
145
|
+
return () => {
|
|
146
|
+
window.clearTimeout(C), e.removeEventListener("pointerdown", L), e.removeEventListener("click", t.current);
|
|
147
|
+
for (const r of D)
|
|
148
|
+
e.removeEventListener(r, l, !0), e.removeEventListener(r, b);
|
|
149
|
+
};
|
|
150
|
+
}, [
|
|
151
|
+
e,
|
|
152
|
+
w,
|
|
153
|
+
u,
|
|
154
|
+
d,
|
|
155
|
+
f,
|
|
156
|
+
E
|
|
157
|
+
]), { onPointerDownCapture: /* @__PURE__ */ o(() => h.current = !0, "onPointerDownCapture") };
|
|
158
|
+
}
|
|
159
|
+
o(j, "usePointerDownOutside");
|
|
160
|
+
function K(c, s = globalThis?.document) {
|
|
161
|
+
const e = k(c), u = n.useRef(!1);
|
|
162
|
+
return n.useEffect(() => {
|
|
163
|
+
const d = /* @__PURE__ */ o((f) => {
|
|
164
|
+
f.target && !u.current && F(G, e, { originalEvent: f }, { discrete: !1 });
|
|
165
|
+
}, "handleFocus");
|
|
166
|
+
return s.addEventListener("focusin", d), () => s.removeEventListener("focusin", d);
|
|
167
|
+
}, [s, e]), {
|
|
168
|
+
onFocusCapture: /* @__PURE__ */ o(() => u.current = !0, "onFocusCapture"),
|
|
169
|
+
onBlurCapture: /* @__PURE__ */ o(() => u.current = !1, "onBlurCapture")
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
o(K, "useFocusOutside");
|
|
173
|
+
function B() {
|
|
174
|
+
const c = new CustomEvent(T);
|
|
175
|
+
document.dispatchEvent(c);
|
|
176
|
+
}
|
|
177
|
+
o(B, "dispatchUpdate");
|
|
178
|
+
function F(c, s, e, { discrete: u }) {
|
|
179
|
+
const d = e.originalEvent.target, f = new CustomEvent(c, {
|
|
180
|
+
bubbles: !1,
|
|
181
|
+
cancelable: !0,
|
|
182
|
+
detail: e
|
|
183
|
+
});
|
|
184
|
+
s && d.addEventListener(c, s, { once: !0 }), u ? X(d, f) : d.dispatchEvent(f);
|
|
185
|
+
}
|
|
186
|
+
o(F, "handleAndDispatchCustomEvent");
|
|
187
|
+
var re = J, ie = Q;
|
|
188
|
+
export {
|
|
189
|
+
V as i,
|
|
190
|
+
J as n,
|
|
191
|
+
re as r,
|
|
192
|
+
ie as t
|
|
193
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as u } from "./dist-D-yS0HN8.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
var n = Object.defineProperty, f = (e, r) => n(e, "name", {
|
|
4
|
+
value: r,
|
|
5
|
+
configurable: !0
|
|
6
|
+
}), s = t[" useId ".trim().toString()] || (() => {
|
|
7
|
+
}), c = 0;
|
|
8
|
+
function d(e) {
|
|
9
|
+
const [r, a] = t.useState(s());
|
|
10
|
+
return u(() => {
|
|
11
|
+
e || a((o) => o ?? String(c++));
|
|
12
|
+
}, [e]), e || (r ? `radix-${r}` : "");
|
|
13
|
+
}
|
|
14
|
+
f(d, "useId");
|
|
15
|
+
export {
|
|
16
|
+
d as t
|
|
17
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { n as d } from "./dist-D-yS0HN8.js";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
var z = Object.defineProperty, c = (r, e) => z(r, "name", {
|
|
4
|
+
value: e,
|
|
5
|
+
configurable: !0
|
|
6
|
+
});
|
|
7
|
+
function h(r) {
|
|
8
|
+
const [e, i] = u.useState(void 0);
|
|
9
|
+
return d(() => {
|
|
10
|
+
if (r) {
|
|
11
|
+
i({
|
|
12
|
+
width: r.offsetWidth,
|
|
13
|
+
height: r.offsetHeight
|
|
14
|
+
});
|
|
15
|
+
const a = new ResizeObserver((o) => {
|
|
16
|
+
if (!Array.isArray(o) || !o.length) return;
|
|
17
|
+
const n = o[0];
|
|
18
|
+
let t, s;
|
|
19
|
+
if ("borderBoxSize" in n) {
|
|
20
|
+
const f = n.borderBoxSize, b = Array.isArray(f) ? f[0] : f;
|
|
21
|
+
t = b.inlineSize, s = b.blockSize;
|
|
22
|
+
} else
|
|
23
|
+
t = r.offsetWidth, s = r.offsetHeight;
|
|
24
|
+
i({
|
|
25
|
+
width: t,
|
|
26
|
+
height: s
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
return a.observe(r, { box: "border-box" }), () => a.unobserve(r);
|
|
30
|
+
} else i(void 0);
|
|
31
|
+
}, [r]), e;
|
|
32
|
+
}
|
|
33
|
+
c(h, "useSize");
|
|
34
|
+
export {
|
|
35
|
+
h as t
|
|
36
|
+
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { a as G, r as z } from "./dist-
|
|
2
|
-
import { t as J } from "./dist-
|
|
3
|
-
import { t as Q } from "./dist-
|
|
4
|
-
import { i as W, n as Z, r as w, t as ee } from "./dist-
|
|
5
|
-
import { t as te } from "./dist-
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
1
|
+
import { a as G, r as z } from "./dist-xCbHbMLA.js";
|
|
2
|
+
import { t as J } from "./dist-CCdbu9GU.js";
|
|
3
|
+
import { t as Q } from "./dist-DX0sBG3Q.js";
|
|
4
|
+
import { i as W, n as Z, r as w, t as ee } from "./dist-D-yS0HN8.js";
|
|
5
|
+
import { t as te } from "./dist-DYIabsrY.js";
|
|
6
|
+
import { n as oe } from "./dist-DKryKPmP.js";
|
|
7
|
+
import { t as re } from "./dist-C4j75TwZ.js";
|
|
8
|
+
import { t as j } from "./dist-BUocnzkM.js";
|
|
9
|
+
import { a as F, i as ne, n as ae, r as se, t as ie } from "./dist-DFCz63oC2.js";
|
|
9
10
|
import * as a from "react";
|
|
10
11
|
import { jsx as h, jsxs as le } from "react/jsx-runtime";
|
|
11
12
|
var ce = Object.defineProperty, d = (r, e) => ce(r, "name", {
|
|
12
13
|
value: e,
|
|
13
14
|
configurable: !0
|
|
14
|
-
}), [I,
|
|
15
|
+
}), [I, Me] = W("Tooltip", [F]), _ = F(), ue = "TooltipProvider", pe = 700, k = "tooltip.open", [de, S] = I(ue), fe = /* @__PURE__ */ d((r) => {
|
|
15
16
|
const { __scopeTooltip: e, delayDuration: t = pe, skipDelayDuration: o = 300, disableHoverableContent: s = !1, children: n } = r, i = a.useRef(!0), f = a.useRef(!1), u = a.useRef(0);
|
|
16
17
|
return a.useEffect(() => {
|
|
17
18
|
const c = u.current;
|
|
@@ -347,12 +348,12 @@ function V(r) {
|
|
|
347
348
|
return t.pop(), e.length === 1 && t.length === 1 && e[0].x === t[0].x && e[0].y === t[0].y ? e : e.concat(t);
|
|
348
349
|
}
|
|
349
350
|
d(V, "getHullPresorted");
|
|
350
|
-
var
|
|
351
|
+
var He = fe, Ne = Te, Ge = he, je = Ce, Fe = xe, Be = Pe;
|
|
351
352
|
export {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
353
|
+
Ne as a,
|
|
354
|
+
He as i,
|
|
355
|
+
Fe as n,
|
|
356
|
+
Ge as o,
|
|
357
|
+
je as r,
|
|
358
|
+
Be as t
|
|
358
359
|
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
var L = Object.defineProperty, b = (e, t) => L(e, "name", {
|
|
3
|
+
value: t,
|
|
4
|
+
configurable: !0
|
|
5
|
+
});
|
|
6
|
+
function y(e, t) {
|
|
7
|
+
if (typeof e == "function") return e(t);
|
|
8
|
+
e != null && (e.current = t);
|
|
9
|
+
}
|
|
10
|
+
b(y, "setRef");
|
|
11
|
+
function g(...e) {
|
|
12
|
+
return (t) => {
|
|
13
|
+
let r = !1;
|
|
14
|
+
const n = e.map((o) => {
|
|
15
|
+
const a = y(o, t);
|
|
16
|
+
return !r && typeof a == "function" && (r = !0), a;
|
|
17
|
+
});
|
|
18
|
+
if (r) return () => {
|
|
19
|
+
for (let o = 0; o < n.length; o++) {
|
|
20
|
+
const a = n[o];
|
|
21
|
+
typeof a == "function" ? a() : y(e[o], null);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
b(g, "composeRefs");
|
|
27
|
+
function _(...e) {
|
|
28
|
+
return i.useCallback(g(...e), e);
|
|
29
|
+
}
|
|
30
|
+
b(_, "useComposedRefs");
|
|
31
|
+
var O = Object.defineProperty, s = (e, t) => O(e, "name", {
|
|
32
|
+
value: t,
|
|
33
|
+
configurable: !0
|
|
34
|
+
});
|
|
35
|
+
// @__NO_SIDE_EFFECTS__
|
|
36
|
+
function R(e) {
|
|
37
|
+
const t = i.forwardRef((r, n) => {
|
|
38
|
+
let { children: o, ...a } = r, l = null, c = !1;
|
|
39
|
+
const d = [];
|
|
40
|
+
S(o) && typeof u == "function" && (o = u(o._payload)), i.Children.forEach(o, (m) => {
|
|
41
|
+
if (C(m)) {
|
|
42
|
+
c = !0;
|
|
43
|
+
const f = m;
|
|
44
|
+
let p = "child" in f.props ? f.props.child : f.props.children;
|
|
45
|
+
S(p) && typeof u == "function" && (p = u(p._payload)), l = V(f, p), d.push(l?.props?.children);
|
|
46
|
+
} else d.push(m);
|
|
47
|
+
}), l ? l = i.cloneElement(l, void 0, d) : !c && i.Children.count(o) === 1 && i.isValidElement(o) && (l = o);
|
|
48
|
+
const E = l ? $(l) : void 0, x = _(n, E);
|
|
49
|
+
if (!l) {
|
|
50
|
+
if (o || o === 0) throw new Error(c ? A(e) : W(e));
|
|
51
|
+
return o;
|
|
52
|
+
}
|
|
53
|
+
const h = P(a, l.props ?? {});
|
|
54
|
+
return l.type !== i.Fragment && (h.ref = n ? x : E), i.cloneElement(l, h);
|
|
55
|
+
});
|
|
56
|
+
return t.displayName = `${e}.Slot`, t;
|
|
57
|
+
}
|
|
58
|
+
s(R, "createSlot");
|
|
59
|
+
var F = /* @__PURE__ */ R("Slot"), v = /* @__PURE__ */ Symbol.for("radix.slottable");
|
|
60
|
+
// @__NO_SIDE_EFFECTS__
|
|
61
|
+
function I(e) {
|
|
62
|
+
const t = /* @__PURE__ */ s((r) => "child" in r ? r.children(r.child) : r.children, "Slottable");
|
|
63
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = v, t;
|
|
64
|
+
}
|
|
65
|
+
s(I, "createSlottable");
|
|
66
|
+
var V = /* @__PURE__ */ s((e, t) => {
|
|
67
|
+
if ("child" in e.props) {
|
|
68
|
+
const r = e.props.child;
|
|
69
|
+
return i.isValidElement(r) ? i.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
|
|
70
|
+
}
|
|
71
|
+
return i.isValidElement(t) ? t : null;
|
|
72
|
+
}, "getSlottableElementFromSlottable");
|
|
73
|
+
function P(e, t) {
|
|
74
|
+
const r = { ...t };
|
|
75
|
+
for (const n in t) {
|
|
76
|
+
const o = e[n], a = t[n];
|
|
77
|
+
/^on[A-Z]/.test(n) ? o && a ? r[n] = (...l) => {
|
|
78
|
+
const c = a(...l);
|
|
79
|
+
return o(...l), c;
|
|
80
|
+
} : o && (r[n] = o) : n === "style" ? r[n] = {
|
|
81
|
+
...o,
|
|
82
|
+
...a
|
|
83
|
+
} : n === "className" && (r[n] = [o, a].filter(Boolean).join(" "));
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
...e,
|
|
87
|
+
...r
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
s(P, "mergeProps");
|
|
91
|
+
function $(e) {
|
|
92
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
93
|
+
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
94
|
+
}
|
|
95
|
+
s($, "getElementRef");
|
|
96
|
+
function C(e) {
|
|
97
|
+
return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === v;
|
|
98
|
+
}
|
|
99
|
+
s(C, "isSlottable");
|
|
100
|
+
var T = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
101
|
+
function S(e) {
|
|
102
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === T && "_payload" in e && j(e._payload);
|
|
103
|
+
}
|
|
104
|
+
s(S, "isLazyComponent");
|
|
105
|
+
function j(e) {
|
|
106
|
+
return typeof e == "object" && e !== null && "then" in e;
|
|
107
|
+
}
|
|
108
|
+
s(j, "isPromiseLike");
|
|
109
|
+
var W = /* @__PURE__ */ s((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), A = /* @__PURE__ */ s((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), u = i[" use ".trim().toString()];
|
|
110
|
+
export {
|
|
111
|
+
_ as a,
|
|
112
|
+
g as i,
|
|
113
|
+
R as n,
|
|
114
|
+
I as r,
|
|
115
|
+
F as t
|
|
116
|
+
};
|