@eightshift/ui-components 7.2.0 → 7.3.0
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/Autocomplete-pLMPWMFq.js +451 -0
- package/dist/Button-Biwg7zwt.js +223 -0
- package/dist/Dialog-C1sh8jbh.js +2474 -0
- package/dist/{Disclosure-NYWFw9RJ.js → Disclosure-B_SHgiUz.js} +50 -51
- package/dist/FocusScope-lGkM8AO8.js +734 -0
- package/dist/Form-BxIJCHYd.js +5 -0
- package/dist/Heading-B2EsUuu6.js +16 -0
- package/dist/{Hidden-8TB37dpK.js → Hidden-DYY00jLm.js} +10 -10
- package/dist/I18nProvider-Cm6dj5jY.js +93 -0
- package/dist/Label-B1TkoVOG.js +17 -0
- package/dist/ListBox-BquE0m8z.js +584 -0
- package/dist/{NumberFormatter-m5VW6MTK.js → NumberFormatter-JHF0Tadk.js} +24 -26
- package/dist/PortalProvider-BYcv24il.js +13 -0
- package/dist/RadioGroup-BxjLooWU.js +324 -0
- package/dist/SearchField-BkAU0HLm.js +322 -0
- package/dist/SelectionIndicator-Bx_EYBXD.js +13 -0
- package/dist/{Slider-DW1RuMVp.js → Slider-DSv6fyZ6.js} +321 -363
- package/dist/Text-C8pfwn0W.js +16 -0
- package/dist/{VisuallyHidden-CfsnJHZb.js → VisuallyHidden-KcXlGa5p.js} +12 -12
- package/dist/{animation-Bd2peown.js → animation-BJ-2VKdB.js} +12 -12
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-D9cbyHeZ.js → button-CawAzlko.js} +21 -73
- package/dist/{checkbox-BO5RZmO8.js → checkbox-t7VrqXv2.js} +59 -62
- package/dist/{color-swatch-D2ZBkuTt.js → color-swatch-gU09x9Ga.js} +417 -414
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +5 -5
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/index.js +15 -15
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -5
- package/dist/components/menu/menu.js +11 -11
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +6 -6
- package/dist/components/portal-provider/portal-provider.js +2 -2
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +6 -6
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +5 -5
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/select/async-multi-select.js +27 -26
- package/dist/components/select/async-select.js +27 -26
- package/dist/components/select/multi-select.js +33 -32
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +33 -32
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +8 -8
- package/dist/components/slider/slider.js +8 -8
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-CTDVJ4zd.js → draggable-Cxv-OueQ.js} +1 -1
- package/dist/filterDOMProps-BfW758QC.js +69 -0
- package/dist/{gradient-editor-xfxA_s9a.js → gradient-editor-CInqVF8v.js} +6 -11
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +15 -15
- package/dist/{input-field-_OCWbftf.js → input-field-BdFrxQ-R.js} +46 -47
- package/dist/{jsx-svg-BRJ4n3pD.js → jsx-svg-DT1SBWuP.js} +6 -12
- package/dist/keyboard-CT41mQzR.js +55 -0
- package/dist/{link-input-Bh8G7Urm.js → link-input-BDFhSSvH.js} +324 -356
- package/dist/{modal-snrElwty.js → modal-CJDaBdPh.js} +100 -92
- package/dist/{number-ZZIxJukn.js → number-MWRvGfyE.js} +10 -10
- package/dist/{number-picker-Dhtx4409.js → number-picker-BrxrB-xq.js} +43 -42
- package/dist/{shared-BiWZjrGF.js → shared-CI4kcnm8.js} +482 -502
- package/dist/{smart-image-CBNbxJ57.js → smart-image-eGdMu9s9.js} +2 -2
- package/dist/{solid-color-picker-DukArNH-.js → solid-color-picker-DXgX-OAm.js} +926 -935
- package/dist/{switch-DmsvyQPa.js → switch-DNHFoCCx.js} +28 -28
- package/dist/{tabs-DaIUEc0g.js → tabs-C2tPOEYr.js} +150 -153
- package/dist/textSelection-BhX_2zV9.js +45 -0
- package/dist/{toggle-button-BlzUGfGy.js → toggle-button-DYDp11rq.js} +35 -35
- package/dist/{tooltip-BzJzYlcc.js → tooltip-C-hT6tN9.js} +162 -162
- package/dist/{useAsyncList-BNzwKoX4.js → useAsyncList-DsOh1xIx.js} +54 -74
- package/dist/{useButton-ra1ZSZ4z.js → useButton-BMZc4fTX.js} +11 -11
- package/dist/{SelectionManager-B8lLv6Ue.js → useCollection-CBVYSuGz.js} +1689 -1777
- package/dist/{useEvent-DkZVfgsS.js → useEvent-ypAU33vv.js} +5 -5
- package/dist/useField-BXf__jxy.js +32 -0
- package/dist/{useFilter-OiMnf6sb.js → useFilter-CfKEbIwL.js} +5 -5
- package/dist/{useFocusRing-DuYL4cdO.js → useFocusRing-BgYY-7ko.js} +23 -23
- package/dist/useFormReset-BuMc_O4y.js +17 -0
- package/dist/{FieldError-BWDbP5Db.js → useFormValidation-BcME9D0E.js} +63 -66
- package/dist/useHover-lyApu3ba.js +975 -0
- package/dist/{useLabel-2EohW5l6.js → useLabel-Rv8cIIKk.js} +8 -8
- package/dist/{useLabels-B2p7RXi5.js → useLabels-xOYtkA8o.js} +5 -5
- package/dist/useListState-u6DfeXHi.js +135 -0
- package/dist/{useLocalizedStringFormatter-Dv2diN3k.js → useLocalizedStringFormatter-CR-bmorj.js} +45 -45
- package/dist/{useNumberField-2xbi3jRV.js → useNumberFieldState-xL-ecwNz.js} +665 -619
- package/dist/useNumberFormatter-CR1PAFPG.js +10 -0
- package/dist/useOverlayTriggerState-AeCx45Gv.js +551 -0
- package/dist/usePress-Dnx5rBoD.js +593 -0
- package/dist/useTextField-BW3ZwGyz.js +159 -0
- package/dist/{useToggle-ecIirvIM.js → useToggle-BF5wptMP.js} +19 -20
- package/dist/useToggleState-D5P01lch.js +22 -0
- package/dist/useToolbar-BT25-MJg.js +55 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +3 -3
- package/dist/{utils-B_uiqNa4.js → utils-JFcCNFzy.js} +121 -122
- package/package.json +18 -18
- package/dist/Button-h6xF_WrP.js +0 -225
- package/dist/Dialog-i5VLQw1o.js +0 -2488
- package/dist/FocusScope-CgwbGOBB.js +0 -746
- package/dist/Form-DTMkbrQY.js +0 -5
- package/dist/Heading-Hol-wS_B.js +0 -16
- package/dist/Input-BURqyJXW.js +0 -161
- package/dist/Label-DFXXxMKY.js +0 -17
- package/dist/ListBox-B21SgugS.js +0 -601
- package/dist/OverlayArrow-BoloUPQM.js +0 -573
- package/dist/PortalProvider-DinZZCKX.js +0 -14
- package/dist/RSPContexts-C_z0bI8W.js +0 -12
- package/dist/RadioGroup-BwlGtCja.js +0 -329
- package/dist/SearchField-DR_I4_yn.js +0 -765
- package/dist/SelectionIndicator-31L6EI9F.js +0 -13
- package/dist/Text-O6VBBDlP.js +0 -16
- package/dist/context-C-XNeJ_l.js +0 -93
- package/dist/filterDOMProps-_2_3GD-K.js +0 -69
- package/dist/textSelection-Dv6WPj0Z.js +0 -45
- package/dist/useField-D0WrzR2F.js +0 -32
- package/dist/useFormReset-DdkykzAn.js +0 -18
- package/dist/useHover-qaMm3XFO.js +0 -982
- package/dist/useListState-CD_5vfyy.js +0 -147
- package/dist/useNumberFormatter-C2Cm2mNj.js +0 -10
- package/dist/usePress-ZP1TjkFf.js +0 -678
- package/dist/useToggleState-IIDbiKPl.js +0 -23
- /package/dist/{List-DWlgW2Ex.js → List---tsVJlI.js} +0 -0
- /package/dist/{build-module-Bsx62nlm.js → build-module-K6vi4xE0.js} +0 -0
- /package/dist/{debounce-throttle-DXxSAKpq.js → debounce-throttle-LSPAPFtq.js} +0 -0
- /package/dist/{dist-2gkv7_1U.js → dist-jw8wvxoG.js} +0 -0
- /package/dist/{es-dash-HqXWZZ3_.js → es-dash-BuShf_ht.js} +0 -0
- /package/dist/{utilities-lwX686oD.js → utilities-DV0KKJNR.js} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { W as $d447af545b77c9f1$export$b204af158042fbac, j as $2add3ce32c6007eb$export$fedb369cb70207f1, u as $081cb5757e08788e$export$24490316f764c430 } from "./useHover-lyApu3ba.js";
|
|
2
|
+
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
|
|
3
|
+
var $cbf007e418543821$var$state = "default";
|
|
4
|
+
var $cbf007e418543821$var$savedUserSelect = "";
|
|
5
|
+
var $cbf007e418543821$var$modifiedElementMap = new WeakMap();
|
|
6
|
+
function $cbf007e418543821$export$16a4697467175487(target) {
|
|
7
|
+
if ($2add3ce32c6007eb$export$fedb369cb70207f1()) {
|
|
8
|
+
if ($cbf007e418543821$var$state === "default") {
|
|
9
|
+
const documentObject = $d447af545b77c9f1$export$b204af158042fbac(target);
|
|
10
|
+
$cbf007e418543821$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;
|
|
11
|
+
documentObject.documentElement.style.webkitUserSelect = "none";
|
|
12
|
+
}
|
|
13
|
+
$cbf007e418543821$var$state = "disabled";
|
|
14
|
+
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
|
|
15
|
+
let property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect";
|
|
16
|
+
$cbf007e418543821$var$modifiedElementMap.set(target, target.style[property]);
|
|
17
|
+
target.style[property] = "none";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function $cbf007e418543821$export$b0d6fa1ab32e3295(target) {
|
|
21
|
+
if ($2add3ce32c6007eb$export$fedb369cb70207f1()) {
|
|
22
|
+
if ($cbf007e418543821$var$state !== "disabled") return;
|
|
23
|
+
$cbf007e418543821$var$state = "restoring";
|
|
24
|
+
setTimeout(() => {
|
|
25
|
+
$081cb5757e08788e$export$24490316f764c430(() => {
|
|
26
|
+
if ($cbf007e418543821$var$state === "restoring") {
|
|
27
|
+
const documentObject = $d447af545b77c9f1$export$b204af158042fbac(target);
|
|
28
|
+
if (documentObject.documentElement.style.webkitUserSelect === "none") documentObject.documentElement.style.webkitUserSelect = $cbf007e418543821$var$savedUserSelect || "";
|
|
29
|
+
$cbf007e418543821$var$savedUserSelect = "";
|
|
30
|
+
$cbf007e418543821$var$state = "default";
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}, 300);
|
|
34
|
+
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
|
|
35
|
+
if (target && $cbf007e418543821$var$modifiedElementMap.has(target)) {
|
|
36
|
+
let targetOldUserSelect = $cbf007e418543821$var$modifiedElementMap.get(target);
|
|
37
|
+
let property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect";
|
|
38
|
+
if (target.style[property] === "none") target.style[property] = targetOldUserSelect;
|
|
39
|
+
if (target.getAttribute("style") === "") target.removeAttribute("style");
|
|
40
|
+
$cbf007e418543821$var$modifiedElementMap.delete(target);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { $cbf007e418543821$export$b0d6fa1ab32e3295 as n, $cbf007e418543821$export$16a4697467175487 as t };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-BUU5J41u.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as $
|
|
4
|
-
import { t as $
|
|
5
|
-
import { t as $
|
|
6
|
-
import {
|
|
7
|
-
import { t as $
|
|
8
|
-
import { t as $
|
|
9
|
-
import {
|
|
10
|
-
import { t as cva } from "./dist-
|
|
2
|
+
import { g as $a4e76a5424781910$export$e08e3b67e392101e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-JFcCNFzy.js";
|
|
3
|
+
import { t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-lyApu3ba.js";
|
|
4
|
+
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BfW758QC.js";
|
|
5
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-BgYY-7ko.js";
|
|
6
|
+
import { t as $ac4318a9c075bb9f$export$ea18c227d4417cc3 } from "./useButton-BMZc4fTX.js";
|
|
7
|
+
import { t as $fd3c5e01e837dc20$export$8042c6c013fd5226 } from "./useToggleState-D5P01lch.js";
|
|
8
|
+
import { t as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-Bx_EYBXD.js";
|
|
9
|
+
import { n as Tooltip } from "./tooltip-C-hT6tN9.js";
|
|
10
|
+
import { t as cva } from "./dist-jw8wvxoG.js";
|
|
11
11
|
import React, { createContext, forwardRef, useContext } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
//#region node_modules
|
|
14
|
-
function $
|
|
13
|
+
//#region node_modules/react-aria/dist/private/button/useToggleButton.mjs
|
|
14
|
+
function $b54a524c670b905d$export$51e84d46ca0bc451(props, state, ref) {
|
|
15
15
|
const { isSelected } = state;
|
|
16
|
-
const { isPressed, buttonProps } = $
|
|
16
|
+
const { isPressed, buttonProps } = $ac4318a9c075bb9f$export$ea18c227d4417cc3({
|
|
17
17
|
...props,
|
|
18
|
-
onPress: $
|
|
18
|
+
onPress: $a4e76a5424781910$export$e08e3b67e392101e(state.toggle, props.onPress)
|
|
19
19
|
}, ref);
|
|
20
20
|
return {
|
|
21
21
|
isPressed,
|
|
22
22
|
isSelected,
|
|
23
23
|
isDisabled: props.isDisabled || false,
|
|
24
|
-
buttonProps: $
|
|
24
|
+
buttonProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(buttonProps, { "aria-pressed": isSelected })
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
|
-
//#region node_modules
|
|
29
|
-
function $
|
|
28
|
+
//#region node_modules/react-aria/dist/private/button/useToggleButtonGroup.mjs
|
|
29
|
+
function $162557ba4d6f08dd$export$bc53712daae3d6e6(props, state, ref) {
|
|
30
30
|
let toggleState = {
|
|
31
31
|
isSelected: state.selectedKeys.has(props.id),
|
|
32
32
|
defaultSelected: false,
|
|
@@ -37,7 +37,7 @@ function $4547d1bf40011fdf$export$bc53712daae3d6e6(props, state, ref) {
|
|
|
37
37
|
state.toggleKey(props.id);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
let { isPressed, isSelected, isDisabled, buttonProps } = $
|
|
40
|
+
let { isPressed, isSelected, isDisabled, buttonProps } = $b54a524c670b905d$export$51e84d46ca0bc451({
|
|
41
41
|
...props,
|
|
42
42
|
id: void 0,
|
|
43
43
|
isDisabled: props.isDisabled || state.isDisabled
|
|
@@ -55,33 +55,33 @@ function $4547d1bf40011fdf$export$bc53712daae3d6e6(props, state, ref) {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region node_modules/react-aria-components/dist/ToggleButtonGroup.mjs
|
|
59
|
-
var $
|
|
58
|
+
//#region node_modules/react-aria-components/dist/private/ToggleButtonGroup.mjs
|
|
59
|
+
var $bc25b811ec97a172$export$a8a71863db173133 = createContext(null);
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region node_modules/react-aria-components/dist/ToggleButton.mjs
|
|
62
|
-
var $
|
|
63
|
-
var $
|
|
64
|
-
[props, ref] = $
|
|
65
|
-
let groupState = useContext($
|
|
66
|
-
let state = $
|
|
61
|
+
//#region node_modules/react-aria-components/dist/private/ToggleButton.mjs
|
|
62
|
+
var $75afe627ae0cc0fa$export$43506d75ebd2e218 = createContext({});
|
|
63
|
+
var $75afe627ae0cc0fa$export$d2b052e7b4be1756 = forwardRef(function ToggleButton(props, ref) {
|
|
64
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $75afe627ae0cc0fa$export$43506d75ebd2e218);
|
|
65
|
+
let groupState = useContext($bc25b811ec97a172$export$a8a71863db173133);
|
|
66
|
+
let state = $fd3c5e01e837dc20$export$8042c6c013fd5226(groupState && props.id != null ? {
|
|
67
67
|
isSelected: groupState.selectedKeys.has(props.id),
|
|
68
68
|
onChange(isSelected) {
|
|
69
69
|
groupState.setSelected(props.id, isSelected);
|
|
70
70
|
}
|
|
71
71
|
} : props);
|
|
72
|
-
let { buttonProps, isPressed, isSelected, isDisabled } = groupState && props.id != null ? $
|
|
72
|
+
let { buttonProps, isPressed, isSelected, isDisabled } = groupState && props.id != null ? $162557ba4d6f08dd$export$bc53712daae3d6e6({
|
|
73
73
|
...props,
|
|
74
74
|
id: props.id
|
|
75
|
-
}, groupState, ref) : $
|
|
75
|
+
}, groupState, ref) : $b54a524c670b905d$export$51e84d46ca0bc451({
|
|
76
76
|
...props,
|
|
77
77
|
id: props.id != null ? String(props.id) : void 0
|
|
78
78
|
}, state, ref);
|
|
79
|
-
let { focusProps, isFocused, isFocusVisible } = $
|
|
80
|
-
let { hoverProps, isHovered } = $
|
|
79
|
+
let { focusProps, isFocused, isFocusVisible } = $0c4a58759813079a$export$4e328f61c538687f(props);
|
|
80
|
+
let { hoverProps, isHovered } = $e969f22b6713ca4a$export$ae780daf29e6d456({
|
|
81
81
|
...props,
|
|
82
82
|
isDisabled
|
|
83
83
|
});
|
|
84
|
-
let renderProps = $
|
|
84
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
85
85
|
...props,
|
|
86
86
|
id: void 0,
|
|
87
87
|
values: {
|
|
@@ -95,11 +95,11 @@ var $efde0372d7a700fe$export$d2b052e7b4be1756 = forwardRef(function ToggleButton
|
|
|
95
95
|
},
|
|
96
96
|
defaultClassName: "react-aria-ToggleButton"
|
|
97
97
|
});
|
|
98
|
-
let DOMProps = $
|
|
98
|
+
let DOMProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { global: true });
|
|
99
99
|
delete DOMProps.id;
|
|
100
100
|
delete DOMProps.onClick;
|
|
101
|
-
return React.createElement($
|
|
102
|
-
...$
|
|
101
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.button, {
|
|
102
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(DOMProps, renderProps, buttonProps, focusProps, hoverProps),
|
|
103
103
|
ref,
|
|
104
104
|
slot: props.slot || void 0,
|
|
105
105
|
"data-focused": isFocused || void 0,
|
|
@@ -108,7 +108,7 @@ var $efde0372d7a700fe$export$d2b052e7b4be1756 = forwardRef(function ToggleButton
|
|
|
108
108
|
"data-selected": isSelected || void 0,
|
|
109
109
|
"data-hovered": isHovered || void 0,
|
|
110
110
|
"data-focus-visible": isFocusVisible || void 0
|
|
111
|
-
}, React.createElement($
|
|
111
|
+
}, React.createElement($91fe5e721c7f36c1$export$c9549807523555e0.Provider, { value: { isSelected } }, renderProps.children));
|
|
112
112
|
});
|
|
113
113
|
//#endregion
|
|
114
114
|
//#region lib/components/toggle-button/toggle-button.jsx
|
|
@@ -396,7 +396,7 @@ var ToggleButton = (props) => {
|
|
|
396
396
|
if (hidden) return null;
|
|
397
397
|
let tooltip = rawTooltip;
|
|
398
398
|
if (rawTooltip === true && ariaLabel?.length > 0) tooltip = ariaLabel;
|
|
399
|
-
const component = jsxs($
|
|
399
|
+
const component = jsxs($75afe627ae0cc0fa$export$d2b052e7b4be1756, {
|
|
400
400
|
isSelected: selected,
|
|
401
401
|
onChange,
|
|
402
402
|
isDisabled: disabled,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-BUU5J41u.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as $
|
|
5
|
-
import {
|
|
6
|
-
import { n as $
|
|
7
|
-
import { n as $
|
|
2
|
+
import { m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-JFcCNFzy.js";
|
|
3
|
+
import { _ as $8f5a2122b0992be3$export$b9b3dfddab17db27, i as $d1116acdf220c2da$export$4c014de7c8940b4c, p as $8f5a2122b0992be3$export$630ff653c5ada6a9, r as $d1116acdf220c2da$export$13f3202a3e5ddd5, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-lyApu3ba.js";
|
|
4
|
+
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BfW758QC.js";
|
|
5
|
+
import { a as $4fcfe18fac72dabd$export$2de4954e8ae13b9f, n as $b3526bc71400be8d$export$d39e1813b3bdd0e1, o as $4fcfe18fac72dabd$export$746d02f47f4d381, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-AeCx45Gv.js";
|
|
6
|
+
import { n as $72abaeab4d80592f$export$9fc1347d4195ccb3 } from "./PortalProvider-BYcv24il.js";
|
|
7
|
+
import { n as $fcc7165e876206c6$export$6d3443f2c48bfc20, t as $fcc7165e876206c6$export$45fda7c47f93fd48 } from "./animation-BJ-2VKdB.js";
|
|
8
8
|
import React, { createContext, forwardRef, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import $
|
|
11
|
-
//#region node_modules
|
|
12
|
-
var $
|
|
13
|
-
function $
|
|
10
|
+
import $eXzCv$reactdom from "react-dom";
|
|
11
|
+
//#region node_modules/react-aria/dist/private/overlays/useModal.mjs
|
|
12
|
+
var $c07df45195231803$var$Context = React.createContext(null);
|
|
13
|
+
function $c07df45195231803$export$178405afcd8c5eb(props) {
|
|
14
14
|
let { children } = props;
|
|
15
|
-
let parent = useContext($
|
|
15
|
+
let parent = useContext($c07df45195231803$var$Context);
|
|
16
16
|
let [modalCount, setModalCount] = useState(0);
|
|
17
17
|
let context = useMemo(() => ({
|
|
18
18
|
parent,
|
|
@@ -26,52 +26,144 @@ function $f57aed4a881a3485$export$178405afcd8c5eb(props) {
|
|
|
26
26
|
if (parent) parent.removeModal();
|
|
27
27
|
}
|
|
28
28
|
}), [parent, modalCount]);
|
|
29
|
-
return React.createElement($
|
|
29
|
+
return React.createElement($c07df45195231803$var$Context.Provider, { value: context }, children);
|
|
30
30
|
}
|
|
31
|
-
function $
|
|
32
|
-
let context = useContext($
|
|
31
|
+
function $c07df45195231803$export$d9aaed4c3ece1bc0() {
|
|
32
|
+
let context = useContext($c07df45195231803$var$Context);
|
|
33
33
|
return { modalProviderProps: { "aria-hidden": context && context.modalCount > 0 ? true : void 0 } };
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Creates a root node that will be aria-hidden if there are other modals open.
|
|
37
|
-
*/ function $
|
|
38
|
-
let { modalProviderProps } = $
|
|
37
|
+
*/ function $c07df45195231803$var$OverlayContainerDOM(props) {
|
|
38
|
+
let { modalProviderProps } = $c07df45195231803$export$d9aaed4c3ece1bc0();
|
|
39
39
|
return React.createElement("div", {
|
|
40
40
|
"data-overlay-container": true,
|
|
41
41
|
...props,
|
|
42
42
|
...modalProviderProps
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function $
|
|
46
|
-
return React.createElement($
|
|
45
|
+
function $c07df45195231803$export$bf688221f59024e5(props) {
|
|
46
|
+
return React.createElement($c07df45195231803$export$178405afcd8c5eb, null, React.createElement($c07df45195231803$var$OverlayContainerDOM, props));
|
|
47
47
|
}
|
|
48
|
-
function $
|
|
49
|
-
let isSSR = $
|
|
48
|
+
function $c07df45195231803$export$b47c3594eab58386(props) {
|
|
49
|
+
let isSSR = $c7eafbbe1ea5834e$export$535bd6ca7f90a273();
|
|
50
50
|
let { portalContainer = isSSR ? null : document.body, ...rest } = props;
|
|
51
|
-
let { getContainer } = $
|
|
51
|
+
let { getContainer } = $72abaeab4d80592f$export$9fc1347d4195ccb3();
|
|
52
52
|
if (!props.portalContainer && getContainer) portalContainer = getContainer();
|
|
53
53
|
React.useEffect(() => {
|
|
54
|
-
if (portalContainer
|
|
54
|
+
if (portalContainer?.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
55
55
|
}, [portalContainer]);
|
|
56
56
|
if (!portalContainer) return null;
|
|
57
|
-
let contents = React.createElement($
|
|
58
|
-
return $
|
|
57
|
+
let contents = React.createElement($c07df45195231803$export$bf688221f59024e5, rest);
|
|
58
|
+
return $eXzCv$reactdom.createPortal(contents, portalContainer);
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region node_modules
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
//#region node_modules/react-stately/dist/private/tooltip/useTooltipTriggerState.mjs
|
|
62
|
+
var $3834487504f4fc00$var$TOOLTIP_DELAY = 1500;
|
|
63
|
+
var $3834487504f4fc00$var$TOOLTIP_COOLDOWN = 500;
|
|
64
|
+
var $3834487504f4fc00$var$tooltips = {};
|
|
65
|
+
var $3834487504f4fc00$var$tooltipId = 0;
|
|
66
|
+
var $3834487504f4fc00$var$globalWarmedUp = false;
|
|
67
|
+
var $3834487504f4fc00$var$globalWarmUpTimeout = null;
|
|
68
|
+
var $3834487504f4fc00$var$globalCooldownTimeout = null;
|
|
69
|
+
function $3834487504f4fc00$export$4d40659c25ecb50b(props = {}) {
|
|
70
|
+
let { delay = $3834487504f4fc00$var$TOOLTIP_DELAY, closeDelay = $3834487504f4fc00$var$TOOLTIP_COOLDOWN } = props;
|
|
71
|
+
let { isOpen, open, close } = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props);
|
|
72
|
+
let id = useMemo(() => `${++$3834487504f4fc00$var$tooltipId}`, []);
|
|
73
|
+
let closeTimeout = useRef(null);
|
|
74
|
+
let closeCallback = useRef(close);
|
|
75
|
+
let ensureTooltipEntry = () => {
|
|
76
|
+
$3834487504f4fc00$var$tooltips[id] = hideTooltip;
|
|
77
|
+
};
|
|
78
|
+
let closeOpenTooltips = () => {
|
|
79
|
+
for (let hideTooltipId in $3834487504f4fc00$var$tooltips) if (hideTooltipId !== id) {
|
|
80
|
+
$3834487504f4fc00$var$tooltips[hideTooltipId](true);
|
|
81
|
+
delete $3834487504f4fc00$var$tooltips[hideTooltipId];
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
let showTooltip = () => {
|
|
85
|
+
if (closeTimeout.current) clearTimeout(closeTimeout.current);
|
|
86
|
+
closeTimeout.current = null;
|
|
87
|
+
closeOpenTooltips();
|
|
88
|
+
ensureTooltipEntry();
|
|
89
|
+
$3834487504f4fc00$var$globalWarmedUp = true;
|
|
90
|
+
open();
|
|
91
|
+
if ($3834487504f4fc00$var$globalWarmUpTimeout) {
|
|
92
|
+
clearTimeout($3834487504f4fc00$var$globalWarmUpTimeout);
|
|
93
|
+
$3834487504f4fc00$var$globalWarmUpTimeout = null;
|
|
94
|
+
}
|
|
95
|
+
if ($3834487504f4fc00$var$globalCooldownTimeout) {
|
|
96
|
+
clearTimeout($3834487504f4fc00$var$globalCooldownTimeout);
|
|
97
|
+
$3834487504f4fc00$var$globalCooldownTimeout = null;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
let hideTooltip = (immediate) => {
|
|
101
|
+
if (immediate || closeDelay <= 0) {
|
|
102
|
+
if (closeTimeout.current) clearTimeout(closeTimeout.current);
|
|
103
|
+
closeTimeout.current = null;
|
|
104
|
+
closeCallback.current();
|
|
105
|
+
} else if (!closeTimeout.current) closeTimeout.current = setTimeout(() => {
|
|
106
|
+
closeTimeout.current = null;
|
|
107
|
+
closeCallback.current();
|
|
108
|
+
}, closeDelay);
|
|
109
|
+
if ($3834487504f4fc00$var$globalWarmUpTimeout) {
|
|
110
|
+
clearTimeout($3834487504f4fc00$var$globalWarmUpTimeout);
|
|
111
|
+
$3834487504f4fc00$var$globalWarmUpTimeout = null;
|
|
112
|
+
}
|
|
113
|
+
if ($3834487504f4fc00$var$globalWarmedUp) {
|
|
114
|
+
if ($3834487504f4fc00$var$globalCooldownTimeout) clearTimeout($3834487504f4fc00$var$globalCooldownTimeout);
|
|
115
|
+
$3834487504f4fc00$var$globalCooldownTimeout = setTimeout(() => {
|
|
116
|
+
delete $3834487504f4fc00$var$tooltips[id];
|
|
117
|
+
$3834487504f4fc00$var$globalCooldownTimeout = null;
|
|
118
|
+
$3834487504f4fc00$var$globalWarmedUp = false;
|
|
119
|
+
}, Math.max($3834487504f4fc00$var$TOOLTIP_COOLDOWN, closeDelay));
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
let warmupTooltip = () => {
|
|
123
|
+
closeOpenTooltips();
|
|
124
|
+
ensureTooltipEntry();
|
|
125
|
+
if (!isOpen && !$3834487504f4fc00$var$globalWarmedUp) {
|
|
126
|
+
if ($3834487504f4fc00$var$globalWarmUpTimeout) clearTimeout($3834487504f4fc00$var$globalWarmUpTimeout);
|
|
127
|
+
$3834487504f4fc00$var$globalWarmUpTimeout = setTimeout(() => {
|
|
128
|
+
$3834487504f4fc00$var$globalWarmUpTimeout = null;
|
|
129
|
+
$3834487504f4fc00$var$globalWarmedUp = true;
|
|
130
|
+
showTooltip();
|
|
131
|
+
}, delay);
|
|
132
|
+
} else if (!isOpen) showTooltip();
|
|
133
|
+
};
|
|
134
|
+
useEffect(() => {
|
|
135
|
+
closeCallback.current = close;
|
|
136
|
+
}, [close]);
|
|
137
|
+
useEffect(() => {
|
|
138
|
+
return () => {
|
|
139
|
+
if (closeTimeout.current) clearTimeout(closeTimeout.current);
|
|
140
|
+
if ($3834487504f4fc00$var$tooltips[id]) delete $3834487504f4fc00$var$tooltips[id];
|
|
141
|
+
};
|
|
142
|
+
}, [id]);
|
|
143
|
+
return {
|
|
144
|
+
isOpen,
|
|
145
|
+
open: (immediate) => {
|
|
146
|
+
if (!immediate && delay > 0 && !closeTimeout.current) warmupTooltip();
|
|
147
|
+
else showTooltip();
|
|
148
|
+
},
|
|
149
|
+
close: hideTooltip
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region node_modules/react-aria/dist/private/tooltip/useTooltip.mjs
|
|
154
|
+
function $8c383cffc84c9982$export$1c4b08e0eca38426(props, state) {
|
|
155
|
+
let domProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { labelable: true });
|
|
156
|
+
let { hoverProps } = $e969f22b6713ca4a$export$ae780daf29e6d456({
|
|
157
|
+
onHoverStart: () => state?.open(true),
|
|
158
|
+
onHoverEnd: () => state?.close()
|
|
67
159
|
});
|
|
68
|
-
return { tooltipProps: $
|
|
160
|
+
return { tooltipProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(domProps, hoverProps, { role: "tooltip" }) };
|
|
69
161
|
}
|
|
70
162
|
//#endregion
|
|
71
|
-
//#region node_modules
|
|
72
|
-
function $
|
|
163
|
+
//#region node_modules/react-aria/dist/private/tooltip/useTooltipTrigger.mjs
|
|
164
|
+
function $85908aa8a35f0fac$export$a6da6c504e4bba8b(props, state, ref) {
|
|
73
165
|
let { isDisabled, trigger, shouldCloseOnPress = true } = props;
|
|
74
|
-
let tooltipId = $
|
|
166
|
+
let tooltipId = $390e54f620492c70$export$f680877a34711e37();
|
|
75
167
|
let isHovered = useRef(false);
|
|
76
168
|
let isFocused = useRef(false);
|
|
77
169
|
let handleShow = () => {
|
|
@@ -98,7 +190,7 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
98
190
|
}, [ref, state]);
|
|
99
191
|
let onHoverStart = () => {
|
|
100
192
|
if (trigger === "focus") return;
|
|
101
|
-
if ($
|
|
193
|
+
if ($8f5a2122b0992be3$export$630ff653c5ada6a9() === "pointer") isHovered.current = true;
|
|
102
194
|
else isHovered.current = false;
|
|
103
195
|
handleShow();
|
|
104
196
|
};
|
|
@@ -115,7 +207,7 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
115
207
|
handleHide(true);
|
|
116
208
|
};
|
|
117
209
|
let onFocus = () => {
|
|
118
|
-
if ($
|
|
210
|
+
if ($8f5a2122b0992be3$export$b9b3dfddab17db27()) {
|
|
119
211
|
isFocused.current = true;
|
|
120
212
|
handleShow();
|
|
121
213
|
}
|
|
@@ -125,12 +217,12 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
125
217
|
isHovered.current = false;
|
|
126
218
|
handleHide(true);
|
|
127
219
|
};
|
|
128
|
-
let { hoverProps } = $
|
|
220
|
+
let { hoverProps } = $e969f22b6713ca4a$export$ae780daf29e6d456({
|
|
129
221
|
isDisabled,
|
|
130
222
|
onHoverStart,
|
|
131
223
|
onHoverEnd
|
|
132
224
|
});
|
|
133
|
-
let { focusableProps } = $
|
|
225
|
+
let { focusableProps } = $d1116acdf220c2da$export$4c014de7c8940b4c({
|
|
134
226
|
isDisabled,
|
|
135
227
|
onFocus,
|
|
136
228
|
onBlur
|
|
@@ -138,7 +230,7 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
138
230
|
return {
|
|
139
231
|
triggerProps: {
|
|
140
232
|
"aria-describedby": state.isOpen ? tooltipId : void 0,
|
|
141
|
-
...$
|
|
233
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(focusableProps, hoverProps, {
|
|
142
234
|
onPointerDown: onPressStart,
|
|
143
235
|
onKeyDown: onPressStart
|
|
144
236
|
}),
|
|
@@ -148,130 +240,38 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
148
240
|
};
|
|
149
241
|
}
|
|
150
242
|
//#endregion
|
|
151
|
-
//#region node_modules
|
|
152
|
-
var $
|
|
153
|
-
var $
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
var $8796f90736e175cb$var$globalWarmedUp = false;
|
|
157
|
-
var $8796f90736e175cb$var$globalWarmUpTimeout = null;
|
|
158
|
-
var $8796f90736e175cb$var$globalCooldownTimeout = null;
|
|
159
|
-
function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
|
|
160
|
-
let { delay = $8796f90736e175cb$var$TOOLTIP_DELAY, closeDelay = $8796f90736e175cb$var$TOOLTIP_COOLDOWN } = props;
|
|
161
|
-
let { isOpen, open, close } = $fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
162
|
-
let id = useMemo(() => `${++$8796f90736e175cb$var$tooltipId}`, []);
|
|
163
|
-
let closeTimeout = useRef(null);
|
|
164
|
-
let closeCallback = useRef(close);
|
|
165
|
-
let ensureTooltipEntry = () => {
|
|
166
|
-
$8796f90736e175cb$var$tooltips[id] = hideTooltip;
|
|
167
|
-
};
|
|
168
|
-
let closeOpenTooltips = () => {
|
|
169
|
-
for (let hideTooltipId in $8796f90736e175cb$var$tooltips) if (hideTooltipId !== id) {
|
|
170
|
-
$8796f90736e175cb$var$tooltips[hideTooltipId](true);
|
|
171
|
-
delete $8796f90736e175cb$var$tooltips[hideTooltipId];
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
let showTooltip = () => {
|
|
175
|
-
if (closeTimeout.current) clearTimeout(closeTimeout.current);
|
|
176
|
-
closeTimeout.current = null;
|
|
177
|
-
closeOpenTooltips();
|
|
178
|
-
ensureTooltipEntry();
|
|
179
|
-
$8796f90736e175cb$var$globalWarmedUp = true;
|
|
180
|
-
open();
|
|
181
|
-
if ($8796f90736e175cb$var$globalWarmUpTimeout) {
|
|
182
|
-
clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);
|
|
183
|
-
$8796f90736e175cb$var$globalWarmUpTimeout = null;
|
|
184
|
-
}
|
|
185
|
-
if ($8796f90736e175cb$var$globalCooldownTimeout) {
|
|
186
|
-
clearTimeout($8796f90736e175cb$var$globalCooldownTimeout);
|
|
187
|
-
$8796f90736e175cb$var$globalCooldownTimeout = null;
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
let hideTooltip = (immediate) => {
|
|
191
|
-
if (immediate || closeDelay <= 0) {
|
|
192
|
-
if (closeTimeout.current) clearTimeout(closeTimeout.current);
|
|
193
|
-
closeTimeout.current = null;
|
|
194
|
-
closeCallback.current();
|
|
195
|
-
} else if (!closeTimeout.current) closeTimeout.current = setTimeout(() => {
|
|
196
|
-
closeTimeout.current = null;
|
|
197
|
-
closeCallback.current();
|
|
198
|
-
}, closeDelay);
|
|
199
|
-
if ($8796f90736e175cb$var$globalWarmUpTimeout) {
|
|
200
|
-
clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);
|
|
201
|
-
$8796f90736e175cb$var$globalWarmUpTimeout = null;
|
|
202
|
-
}
|
|
203
|
-
if ($8796f90736e175cb$var$globalWarmedUp) {
|
|
204
|
-
if ($8796f90736e175cb$var$globalCooldownTimeout) clearTimeout($8796f90736e175cb$var$globalCooldownTimeout);
|
|
205
|
-
$8796f90736e175cb$var$globalCooldownTimeout = setTimeout(() => {
|
|
206
|
-
delete $8796f90736e175cb$var$tooltips[id];
|
|
207
|
-
$8796f90736e175cb$var$globalCooldownTimeout = null;
|
|
208
|
-
$8796f90736e175cb$var$globalWarmedUp = false;
|
|
209
|
-
}, Math.max($8796f90736e175cb$var$TOOLTIP_COOLDOWN, closeDelay));
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
let warmupTooltip = () => {
|
|
213
|
-
closeOpenTooltips();
|
|
214
|
-
ensureTooltipEntry();
|
|
215
|
-
if (!isOpen && !$8796f90736e175cb$var$globalWarmedUp) {
|
|
216
|
-
if ($8796f90736e175cb$var$globalWarmUpTimeout) clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);
|
|
217
|
-
$8796f90736e175cb$var$globalWarmUpTimeout = setTimeout(() => {
|
|
218
|
-
$8796f90736e175cb$var$globalWarmUpTimeout = null;
|
|
219
|
-
$8796f90736e175cb$var$globalWarmedUp = true;
|
|
220
|
-
showTooltip();
|
|
221
|
-
}, delay);
|
|
222
|
-
} else if (!isOpen) showTooltip();
|
|
223
|
-
};
|
|
224
|
-
useEffect(() => {
|
|
225
|
-
closeCallback.current = close;
|
|
226
|
-
}, [close]);
|
|
227
|
-
useEffect(() => {
|
|
228
|
-
return () => {
|
|
229
|
-
if (closeTimeout.current) clearTimeout(closeTimeout.current);
|
|
230
|
-
if ($8796f90736e175cb$var$tooltips[id]) delete $8796f90736e175cb$var$tooltips[id];
|
|
231
|
-
};
|
|
232
|
-
}, [id]);
|
|
233
|
-
return {
|
|
234
|
-
isOpen,
|
|
235
|
-
open: (immediate) => {
|
|
236
|
-
if (!immediate && delay > 0 && !closeTimeout.current) warmupTooltip();
|
|
237
|
-
else showTooltip();
|
|
238
|
-
},
|
|
239
|
-
close: hideTooltip
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
//#endregion
|
|
243
|
-
//#region node_modules/react-aria-components/dist/Tooltip.mjs
|
|
244
|
-
var $4e3b923658d69c60$export$7a7623236eec67fa = createContext(null);
|
|
245
|
-
var $4e3b923658d69c60$export$39ae08fa83328b12 = createContext(null);
|
|
246
|
-
function $4e3b923658d69c60$export$8c610744efcf8a1d(props) {
|
|
247
|
-
let state = $8796f90736e175cb$export$4d40659c25ecb50b(props);
|
|
243
|
+
//#region node_modules/react-aria-components/dist/private/Tooltip.mjs
|
|
244
|
+
var $05a50f7d78b03ad9$export$7a7623236eec67fa = createContext(null);
|
|
245
|
+
var $05a50f7d78b03ad9$export$39ae08fa83328b12 = createContext(null);
|
|
246
|
+
function $05a50f7d78b03ad9$export$8c610744efcf8a1d(props) {
|
|
247
|
+
let state = $3834487504f4fc00$export$4d40659c25ecb50b(props);
|
|
248
248
|
let ref = useRef(null);
|
|
249
|
-
let { triggerProps, tooltipProps } = $
|
|
250
|
-
return React.createElement($
|
|
249
|
+
let { triggerProps, tooltipProps } = $85908aa8a35f0fac$export$a6da6c504e4bba8b(props, state, ref);
|
|
250
|
+
return React.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [[$05a50f7d78b03ad9$export$7a7623236eec67fa, state], [$05a50f7d78b03ad9$export$39ae08fa83328b12, {
|
|
251
251
|
...tooltipProps,
|
|
252
252
|
triggerRef: ref
|
|
253
|
-
}]] }, React.createElement($
|
|
253
|
+
}]] }, React.createElement($d1116acdf220c2da$export$13f3202a3e5ddd5, {
|
|
254
254
|
...triggerProps,
|
|
255
255
|
ref
|
|
256
256
|
}, props.children));
|
|
257
257
|
}
|
|
258
|
-
var $
|
|
259
|
-
[props, ref] = $
|
|
260
|
-
let contextState = useContext($
|
|
261
|
-
let localState = $
|
|
258
|
+
var $05a50f7d78b03ad9$export$28c660c63b792dea = forwardRef(function Tooltip({ UNSTABLE_portalContainer, ...props }, ref) {
|
|
259
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $05a50f7d78b03ad9$export$39ae08fa83328b12);
|
|
260
|
+
let contextState = useContext($05a50f7d78b03ad9$export$7a7623236eec67fa);
|
|
261
|
+
let localState = $3834487504f4fc00$export$4d40659c25ecb50b(props);
|
|
262
262
|
let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
263
|
-
let isExiting = $
|
|
263
|
+
let isExiting = $fcc7165e876206c6$export$45fda7c47f93fd48(ref, state.isOpen) || props.isExiting || false;
|
|
264
264
|
if (!state.isOpen && !isExiting) return null;
|
|
265
|
-
return React.createElement($
|
|
265
|
+
return React.createElement($c07df45195231803$export$b47c3594eab58386, { portalContainer: UNSTABLE_portalContainer }, React.createElement($05a50f7d78b03ad9$var$TooltipInner, {
|
|
266
266
|
...props,
|
|
267
267
|
tooltipRef: ref,
|
|
268
268
|
isExiting
|
|
269
269
|
}));
|
|
270
270
|
});
|
|
271
|
-
function $
|
|
272
|
-
let state = useContext($
|
|
271
|
+
function $05a50f7d78b03ad9$var$TooltipInner(props) {
|
|
272
|
+
let state = useContext($05a50f7d78b03ad9$export$7a7623236eec67fa);
|
|
273
273
|
let arrowRef = useRef(null);
|
|
274
|
-
let { overlayProps, arrowProps, placement, triggerAnchorPoint } = $
|
|
274
|
+
let { overlayProps, arrowProps, placement, triggerAnchorPoint } = $b3526bc71400be8d$export$d39e1813b3bdd0e1({
|
|
275
275
|
placement: props.placement || "top",
|
|
276
276
|
targetRef: props.triggerRef,
|
|
277
277
|
overlayRef: props.tooltipRef,
|
|
@@ -284,8 +284,8 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
|
284
284
|
containerPadding: props.containerPadding,
|
|
285
285
|
onClose: () => state.close(true)
|
|
286
286
|
});
|
|
287
|
-
let isEntering = $
|
|
288
|
-
let renderProps = $
|
|
287
|
+
let isEntering = $fcc7165e876206c6$export$6d3443f2c48bfc20(props.tooltipRef, !!placement) || props.isEntering || false;
|
|
288
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
289
289
|
...props,
|
|
290
290
|
defaultClassName: "react-aria-Tooltip",
|
|
291
291
|
values: {
|
|
@@ -295,21 +295,21 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
|
295
295
|
state
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
-
props = $
|
|
299
|
-
let { tooltipProps } = $
|
|
300
|
-
let DOMProps = $
|
|
301
|
-
return React.createElement($
|
|
302
|
-
...$
|
|
298
|
+
props = $bbaa08b3cd72f041$export$9d1611c77c2fe928(props, overlayProps);
|
|
299
|
+
let { tooltipProps } = $8c383cffc84c9982$export$1c4b08e0eca38426(props, state);
|
|
300
|
+
let DOMProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { global: true });
|
|
301
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
302
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(DOMProps, renderProps, tooltipProps),
|
|
303
303
|
ref: props.tooltipRef,
|
|
304
304
|
style: {
|
|
305
305
|
...overlayProps.style,
|
|
306
306
|
"--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0,
|
|
307
307
|
...renderProps.style
|
|
308
308
|
},
|
|
309
|
-
"data-placement": placement
|
|
309
|
+
"data-placement": placement ?? void 0,
|
|
310
310
|
"data-entering": isEntering || void 0,
|
|
311
311
|
"data-exiting": props.isExiting || void 0
|
|
312
|
-
}, React.createElement($
|
|
312
|
+
}, React.createElement($4fcfe18fac72dabd$export$2de4954e8ae13b9f.Provider, { value: {
|
|
313
313
|
...arrowProps,
|
|
314
314
|
placement,
|
|
315
315
|
ref: arrowRef
|
|
@@ -357,14 +357,14 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
|
357
357
|
*/
|
|
358
358
|
var Tooltip = (props) => {
|
|
359
359
|
const { children, text, theme = "dark", offset = 5, crossOffset = 0, containerPadding = 12, openDelay = 1200, closeDelay = 500, shouldFlip = true, arrow, open, defaultOpen, onOpenChange, placement, className, triggerRef, disabled } = props;
|
|
360
|
-
return jsxs($
|
|
360
|
+
return jsxs($05a50f7d78b03ad9$export$8c610744efcf8a1d, {
|
|
361
361
|
delay: openDelay,
|
|
362
362
|
closeDelay,
|
|
363
363
|
isDisabled: disabled,
|
|
364
364
|
isOpen: open,
|
|
365
365
|
onOpenChange,
|
|
366
366
|
defaultOpen,
|
|
367
|
-
children: [children, jsxs($
|
|
367
|
+
children: [children, jsxs($05a50f7d78b03ad9$export$28c660c63b792dea, {
|
|
368
368
|
containerPadding,
|
|
369
369
|
placement,
|
|
370
370
|
shouldFlip,
|
|
@@ -372,7 +372,7 @@ var Tooltip = (props) => {
|
|
|
372
372
|
offset,
|
|
373
373
|
crossOffset,
|
|
374
374
|
className: ({ isEntering, isExiting }) => clsx("es:group es:pointer-events-none", "es:font-variation-[\"wdth\"_72,\"wght\"_380,\"ROND\"_100]", "es:z-40 es:select-none es:rounded-lg es:inset-ring es:px-2.5 es:py-2 es:text-13 es:leading-none es:shadow es:backdrop-blur-xl es:backdrop-brightness-105 es:backdrop-saturate-125 es:will-change-[transform,opacity] es:fill-mode-forwards", theme === "light" && "es:inset-ring-surface-800/5 es:bg-surface-50/90 es:text-secondary-700", theme === "dark" && "es:inset-ring-surface-200/15 es:bg-surface-800/80 es:text-secondary-100", isEntering && "es:motion-opacity-in es:motion-duration-300 es:placement-left:motion-translate-x-in-[5%] es:placement-right:-motion-translate-x-in-[5%] es:placement-top:motion-translate-y-in-[5%] es:placement-bottom:-motion-translate-y-in-[5%] es:motion-ease-spring-smooth es:motion-ease-linear/opacity", isExiting && "es:motion-opacity-out es:motion-duration-200 es:placement-left:motion-translate-x-out-[12.5%] es:placement-right:motion-translate-x-out-[-12.5%] es:placement-top:motion-translate-y-out-[12.5%] es:placement-bottom:motion-translate-y-out-[-12.5%] es:motion-ease-spring-smooth es:motion-ease-linear/opacity", className),
|
|
375
|
-
children: [arrow && jsx($
|
|
375
|
+
children: [arrow && jsx($4fcfe18fac72dabd$export$746d02f47f4d381, { children: jsx("svg", {
|
|
376
376
|
width: 8,
|
|
377
377
|
height: 8,
|
|
378
378
|
viewBox: "0 0 8 8",
|
|
@@ -420,9 +420,9 @@ var Tooltip = (props) => {
|
|
|
420
420
|
*/
|
|
421
421
|
var DecorativeTooltip = (props) => {
|
|
422
422
|
const { openDelay, closeDelay, children, text, wrapperClassName, ...rest } = props;
|
|
423
|
-
const state = $
|
|
423
|
+
const state = $3834487504f4fc00$export$4d40659c25ecb50b(props);
|
|
424
424
|
const ref = useRef(null);
|
|
425
|
-
const { triggerProps } = $
|
|
425
|
+
const { triggerProps } = $85908aa8a35f0fac$export$a6da6c504e4bba8b(props, state, ref);
|
|
426
426
|
return jsx(Tooltip, {
|
|
427
427
|
triggerRef: ref,
|
|
428
428
|
text,
|