@eightshift/ui-components 6.2.0 → 6.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/{Button-CFnNdpNZ.js → Button-DtRmB6b8.js} +7 -6
- package/dist/{Dialog-DDfABlp4.js → Dialog-DTIxSDhz.js} +91 -37
- package/dist/{FocusScope-BJhC1-1e.js → FocusScope-CjFQ7cbd.js} +16 -16
- package/dist/{Hidden-Rfj-STx7.js → Hidden-DOH36apC.js} +23 -6
- package/dist/{Input-B4X6-x6r.js → Input-BG9DaxYN.js} +6 -6
- package/dist/{Label-BDlf9vIY.js → Label-_aSf9-8u.js} +1 -1
- package/dist/{ListBox-ByPsaVVK.js → ListBox-DXFyyj_r.js} +8 -7
- package/dist/{OverlayArrow-Dy0qw7WL.js → OverlayArrow-Fuxj-1QM.js} +27 -9
- package/dist/{RadioGroup-CjCAbUr4.js → RadioGroup-DCeiLxLK.js} +9 -9
- package/dist/{SearchField-BME59dt-.js → SearchField-B_yKFXRk.js} +11 -11
- package/dist/{SelectionManager-iru59gc4.js → SelectionManager-B02LcxLr.js} +111 -65
- package/dist/{Slider-BIbaMdUE.js → Slider-bR3fAmim.js} +7 -7
- package/dist/{VisuallyHidden-CqnizvzQ.js → VisuallyHidden-DZnWrkn8.js} +1 -1
- package/dist/assets/style-admin.css +628 -327
- package/dist/assets/style-editor.css +628 -327
- package/dist/assets/style.css +628 -327
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
- package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
- package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +7 -7
- package/dist/assets/wp-overrides/replace-fonts.css +5 -5
- package/dist/assets/wp-overrides/restyle-tooltips.css +3 -3
- package/dist/assets/wp-overrides/round-corners.css +1 -1
- package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/button/button.js +12 -9
- package/dist/components/checkbox/checkbox.js +10 -10
- package/dist/components/color-pickers/solid-color-picker.js +9 -9
- package/dist/components/expandable/expandable.js +5 -5
- package/dist/components/input-field/input-field.js +6 -9
- package/dist/components/link-input/link-input.js +191 -68
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +5 -5
- package/dist/components/modal/modal.js +11 -8
- package/dist/components/notice/notice.js +3 -3
- package/dist/components/number-picker/number-picker.js +7 -7
- package/dist/components/options-panel/options-panel.js +6 -6
- package/dist/components/popover/popover.js +8 -7
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/responsive/mini-responsive.js +81 -70
- package/dist/components/responsive/responsive.js +24 -40
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +6 -4
- package/dist/components/select/async-multi-select.js +16 -12
- package/dist/components/select/async-select.js +16 -13
- package/dist/components/select/multi-select.js +17 -13
- package/dist/components/select/shared.js +3 -3
- package/dist/components/select/single-select.js +14 -12
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/tabs/tabs.js +39 -8
- package/dist/components/toggle/switch.js +5 -5
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +11 -9
- package/dist/{proxy-DFlYXk07.js → proxy-CNEXmkdK.js} +205 -137
- package/dist/{shared-HdRrpnhs.js → shared-CNH8QfV9.js} +15 -14
- package/dist/{textSelection-CeoEP4rL.js → textSelection-DA3VcKpG.js} +1 -1
- package/dist/{useButton-5YL_nmpZ.js → useButton-DyMX0EVr.js} +2 -2
- package/dist/{useEvent-Zze2g7CX.js → useEvent-Bfy68GHZ.js} +1 -1
- package/dist/{useFilter-NhAlifsK.js → useFilter-Bg5C34XC.js} +1 -1
- package/dist/{useFocusRing-rUOwLdTK.js → useFocusRing-B2glEZ25.js} +9 -7
- package/dist/{useFormReset-BxtOoO5Q.js → useFormReset-BoxsKyJ9.js} +1 -1
- package/dist/{useFormValidation-DTmPrTD8.js → useFormValidation-BrbMhS2N.js} +4 -3
- package/dist/{useHover-CmyvqeWX.js → useHover-DkmPQdGE.js} +76 -58
- package/dist/{useListState-HOvCQJFf.js → useListState-BjnzKozj.js} +3 -3
- package/dist/{useNumberField-CTkI-U9a.js → useNumberField-CsygZKz9.js} +45 -15
- package/dist/{usePress-CNefMs8d.js → usePress-Ck5xMtDr.js} +21 -21
- package/dist/{useToggle-CFFOmZWi.js → useToggle-Ddc7N8pR.js} +4 -4
- package/dist/{useToggleState-BWrKKisg.js → useToggleState-H_lORSWO.js} +1 -1
- package/package.json +22 -21
- package/dist/useSingleSelectListState-BtrMHGeE.js +0 -38
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
3
3
|
import { BaseControl } from "../base-control/base-control.js";
|
|
4
|
-
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-
|
|
5
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
6
|
-
import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, i as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-
|
|
7
|
-
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
8
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
9
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$dca12b0bb56e4fc } from "../../ListBox-
|
|
10
|
-
import { g as getGroupedOptions, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-
|
|
11
|
-
import { $ as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionManager-
|
|
4
|
+
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-B_yKFXRk.js";
|
|
5
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-DtRmB6b8.js";
|
|
6
|
+
import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, i as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-DTIxSDhz.js";
|
|
7
|
+
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BG9DaxYN.js";
|
|
8
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-_aSf9-8u.js";
|
|
9
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$dca12b0bb56e4fc } from "../../ListBox-DXFyyj_r.js";
|
|
10
|
+
import { g as getGroupedOptions, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-CNH8QfV9.js";
|
|
11
|
+
import { $ as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionManager-B02LcxLr.js";
|
|
12
12
|
import { useRef, useMemo, cloneElement } from "react";
|
|
13
13
|
import { icons } from "../../icons/icons.js";
|
|
14
14
|
import "../../react-jsx-parser.min-DAh4myol.js";
|
|
@@ -83,7 +83,7 @@ const AsyncSelect = (props) => {
|
|
|
83
83
|
subtitle,
|
|
84
84
|
actions,
|
|
85
85
|
inline,
|
|
86
|
-
value,
|
|
86
|
+
value: rawValue,
|
|
87
87
|
onChange,
|
|
88
88
|
disabled = false,
|
|
89
89
|
clearable = false,
|
|
@@ -112,8 +112,9 @@ const AsyncSelect = (props) => {
|
|
|
112
112
|
noMinWidth = false,
|
|
113
113
|
...rest
|
|
114
114
|
} = props;
|
|
115
|
+
const value = rawValue && !Array.isArray(rawValue) && typeof rawValue === "object" ? rawValue : null;
|
|
115
116
|
const list = $f86e6c1ec7da6ebb$export$bc3384a35de93d66({
|
|
116
|
-
initialSelectedKeys: value?.value ? [value
|
|
117
|
+
initialSelectedKeys: value?.value ? [value.value] : [],
|
|
117
118
|
getKey: (item) => item?.value,
|
|
118
119
|
async load({ signal, filterText }) {
|
|
119
120
|
let json = [];
|
|
@@ -154,7 +155,7 @@ const AsyncSelect = (props) => {
|
|
|
154
155
|
};
|
|
155
156
|
}
|
|
156
157
|
});
|
|
157
|
-
const ref = useRef();
|
|
158
|
+
const ref = useRef(null);
|
|
158
159
|
const groupedItems = useMemo(
|
|
159
160
|
() => getGroupedOptions(list?.items, groupKey ?? (getGroup ? "_group" : null), groupValueMapping),
|
|
160
161
|
[list?.items, groupKey, groupValueMapping, getGroup]
|
|
@@ -365,7 +366,8 @@ const AsyncSelect = (props) => {
|
|
|
365
366
|
$07b14b47974efb58$export$5b6b19405a83ff9d,
|
|
366
367
|
{
|
|
367
368
|
className: ({ isEntering, isExiting }) => clsx(
|
|
368
|
-
"es:
|
|
369
|
+
"es:font-sans",
|
|
370
|
+
"es:w-(--select-width) es:min-w-72",
|
|
369
371
|
"es:outline-hidden",
|
|
370
372
|
"es:rounded-t-3xl",
|
|
371
373
|
"es:overflow-clip es:grid es:grid-cols-1",
|
|
@@ -388,8 +390,9 @@ const AsyncSelect = (props) => {
|
|
|
388
390
|
isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]"
|
|
389
391
|
),
|
|
390
392
|
placement: "bottom left",
|
|
391
|
-
maxHeight:
|
|
393
|
+
maxHeight: 260,
|
|
392
394
|
triggerRef: ref,
|
|
395
|
+
style: { "--select-width": ref.current ? `${ref.current.offsetWidth}px` : "var(--trigger-width)" },
|
|
393
396
|
children: /* @__PURE__ */ jsxs(
|
|
394
397
|
$d2f53cda644affe3$export$2f2b9559550c7bbc,
|
|
395
398
|
{
|
|
@@ -2,14 +2,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
|
|
3
3
|
import { _ as __, a as _n } from "../../default-i18n-CnQeC5Pl.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
|
-
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-
|
|
6
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
7
|
-
import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, i as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-
|
|
8
|
-
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
9
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
10
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$dca12b0bb56e4fc } from "../../ListBox-
|
|
11
|
-
import { g as getGroupedOptions, b as getValue, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-
|
|
12
|
-
import { $ as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionManager-
|
|
5
|
+
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-B_yKFXRk.js";
|
|
6
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-DtRmB6b8.js";
|
|
7
|
+
import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, i as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-DTIxSDhz.js";
|
|
8
|
+
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BG9DaxYN.js";
|
|
9
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-_aSf9-8u.js";
|
|
10
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$dca12b0bb56e4fc } from "../../ListBox-DXFyyj_r.js";
|
|
11
|
+
import { g as getGroupedOptions, b as getValue, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-CNH8QfV9.js";
|
|
12
|
+
import { $ as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionManager-B02LcxLr.js";
|
|
13
13
|
import { useRef, useState, useMemo, cloneElement, isValidElement } from "react";
|
|
14
14
|
import { icons } from "../../icons/icons.js";
|
|
15
15
|
import "../../react-jsx-parser.min-DAh4myol.js";
|
|
@@ -20,7 +20,7 @@ import { TriggeredPopover } from "../popover/popover.js";
|
|
|
20
20
|
import { DraggableList } from "../draggable-list/draggable-list.js";
|
|
21
21
|
import { DraggableListItem } from "../draggable-list/draggable-list-item.js";
|
|
22
22
|
import { randomId } from "../../utilities/hash.js";
|
|
23
|
-
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-
|
|
23
|
+
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-Bg5C34XC.js";
|
|
24
24
|
/**
|
|
25
25
|
* Multi-select menu.
|
|
26
26
|
*
|
|
@@ -103,7 +103,7 @@ const MultiSelect = (props) => {
|
|
|
103
103
|
hidden,
|
|
104
104
|
...rest
|
|
105
105
|
} = props;
|
|
106
|
-
const ref = useRef();
|
|
106
|
+
const ref = useRef(null);
|
|
107
107
|
const [searchTerm, setSearchTerm] = useState("");
|
|
108
108
|
const { contains } = $bb77f239b46e8c72$export$3274cf84b703fff({ sensitivity: "base" });
|
|
109
109
|
const filteredOptions = useMemo(() => {
|
|
@@ -347,10 +347,12 @@ const MultiSelect = (props) => {
|
|
|
347
347
|
slot: null
|
|
348
348
|
},
|
|
349
349
|
className: "es:grid es:grid-cols-1 es:grid-rows-[auto_minmax(0,1fr)] es:p-0!",
|
|
350
|
-
wrapperClassName: "es:w-72 es:px-1.5 es:h-fit es:from-surface-300/35 es:to-surface-300/35 es:overflow-clip es:rounded-20!",
|
|
350
|
+
wrapperClassName: "es:w-(--select-width) es:min-w-72 es:px-1.5 es:h-fit es:from-surface-300/35 es:to-surface-300/35 es:overflow-clip es:rounded-20!",
|
|
351
351
|
hidden: noReorder || disabled || currentValue?.length < 2,
|
|
352
|
+
style: { "--select-width": ref.current ? `${ref.current.offsetWidth}px` : "var(--trigger-width)" },
|
|
353
|
+
triggerRef: ref,
|
|
352
354
|
children: [
|
|
353
|
-
/* @__PURE__ */ jsx("span", { className: 'es:text-
|
|
355
|
+
/* @__PURE__ */ jsx("span", { className: 'es:text-sm es:ml-3 es:mt-2 es:mb-1 es:font-variation-["wdth"_100,"wght"_325,"ROND"_100] es:text-surface-600', children: __("Item order", "eightshift-ui-components") }),
|
|
354
356
|
/* @__PURE__ */ jsx(
|
|
355
357
|
DraggableList,
|
|
356
358
|
{
|
|
@@ -388,7 +390,8 @@ const MultiSelect = (props) => {
|
|
|
388
390
|
$07b14b47974efb58$export$5b6b19405a83ff9d,
|
|
389
391
|
{
|
|
390
392
|
className: ({ isEntering, isExiting }) => clsx(
|
|
391
|
-
"es:
|
|
393
|
+
"es:font-sans",
|
|
394
|
+
"es:w-(--select-width) es:min-w-72",
|
|
392
395
|
"es:outline-hidden",
|
|
393
396
|
searchable ? "es:rounded-b-xl es:rounded-t-3xl" : "es:rounded-2xl",
|
|
394
397
|
"es:overflow-clip es:grid es:grid-cols-1",
|
|
@@ -413,6 +416,7 @@ const MultiSelect = (props) => {
|
|
|
413
416
|
placement: "bottom left",
|
|
414
417
|
maxHeight: 260,
|
|
415
418
|
triggerRef: ref,
|
|
419
|
+
style: { "--select-width": ref.current ? `${ref.current.offsetWidth}px` : "var(--trigger-width)" },
|
|
416
420
|
children: [
|
|
417
421
|
searchable && /* @__PURE__ */ jsxs(
|
|
418
422
|
$d2f53cda644affe3$export$2f2b9559550c7bbc,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../default-i18n-CnQeC5Pl.js";
|
|
3
|
-
import "../../Button-
|
|
4
|
-
import "../../ListBox-
|
|
5
|
-
import { O, S, g, b, m } from "../../shared-
|
|
3
|
+
import "../../Button-DtRmB6b8.js";
|
|
4
|
+
import "../../ListBox-DXFyyj_r.js";
|
|
5
|
+
import { O, S, g, b, m } from "../../shared-CNH8QfV9.js";
|
|
6
6
|
import "../../icons/icons.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../../react-jsx-parser.min-DAh4myol.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
3
3
|
import { BaseControl } from "../base-control/base-control.js";
|
|
4
|
-
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-
|
|
5
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
6
|
-
import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, i as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-
|
|
7
|
-
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
8
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
9
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$dca12b0bb56e4fc } from "../../ListBox-
|
|
10
|
-
import { g as getGroupedOptions, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-
|
|
11
|
-
import { $ as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionManager-
|
|
4
|
+
import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-B_yKFXRk.js";
|
|
5
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-DtRmB6b8.js";
|
|
6
|
+
import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, i as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-DTIxSDhz.js";
|
|
7
|
+
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BG9DaxYN.js";
|
|
8
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-_aSf9-8u.js";
|
|
9
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$dca12b0bb56e4fc } from "../../ListBox-DXFyyj_r.js";
|
|
10
|
+
import { g as getGroupedOptions, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-CNH8QfV9.js";
|
|
11
|
+
import { $ as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionManager-B02LcxLr.js";
|
|
12
12
|
import { useRef, useState, useMemo, cloneElement } from "react";
|
|
13
13
|
import { icons } from "../../icons/icons.js";
|
|
14
14
|
import "../../react-jsx-parser.min-DAh4myol.js";
|
|
@@ -16,7 +16,7 @@ import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
|
16
16
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
17
17
|
import { c as cva } from "../../index-BHpUy2Ix.js";
|
|
18
18
|
import { randomId } from "../../utilities/hash.js";
|
|
19
|
-
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-
|
|
19
|
+
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-Bg5C34XC.js";
|
|
20
20
|
/**
|
|
21
21
|
* Select menu.
|
|
22
22
|
*
|
|
@@ -97,7 +97,7 @@ const Select = (props) => {
|
|
|
97
97
|
hidden,
|
|
98
98
|
...rest
|
|
99
99
|
} = props;
|
|
100
|
-
const ref = useRef();
|
|
100
|
+
const ref = useRef(null);
|
|
101
101
|
const [searchTerm, setSearchTerm] = useState("");
|
|
102
102
|
const { contains } = $bb77f239b46e8c72$export$3274cf84b703fff({ sensitivity: "base" });
|
|
103
103
|
const filteredOptions = useMemo(() => {
|
|
@@ -311,7 +311,8 @@ const Select = (props) => {
|
|
|
311
311
|
$07b14b47974efb58$export$5b6b19405a83ff9d,
|
|
312
312
|
{
|
|
313
313
|
className: ({ isEntering, isExiting }) => clsx(
|
|
314
|
-
"es:
|
|
314
|
+
"es:font-sans",
|
|
315
|
+
"es:w-(--select-width) es:min-w-72",
|
|
315
316
|
"es:outline-hidden",
|
|
316
317
|
searchable ? "es:rounded-b-xl es:rounded-t-3xl" : "es:rounded-2xl",
|
|
317
318
|
"es:overflow-clip es:grid es:grid-cols-1",
|
|
@@ -334,8 +335,9 @@ const Select = (props) => {
|
|
|
334
335
|
isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]"
|
|
335
336
|
),
|
|
336
337
|
placement: "bottom left",
|
|
337
|
-
maxHeight:
|
|
338
|
+
maxHeight: 260,
|
|
338
339
|
triggerRef: ref,
|
|
340
|
+
style: { "--select-width": ref.current ? `${ref.current.offsetWidth}px` : "var(--trigger-width)" },
|
|
339
341
|
children: [
|
|
340
342
|
searchable && /* @__PURE__ */ jsxs(
|
|
341
343
|
$d2f53cda644affe3$export$2f2b9559550c7bbc,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
|
|
3
3
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
4
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
5
|
-
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-
|
|
4
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-_aSf9-8u.js";
|
|
5
|
+
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-bR3fAmim.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
7
|
import { icons } from "../../icons/icons.js";
|
|
8
8
|
import { getColumnConfigOutputText } from "./utils.js";
|
|
9
9
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
10
|
-
import { A as AnimatePresence, m as motion } from "../../proxy-
|
|
10
|
+
import { A as AnimatePresence, m as motion } from "../../proxy-CNEXmkdK.js";
|
|
11
11
|
/**
|
|
12
12
|
* A two-thumb slider for selecting a range of columns.
|
|
13
13
|
*
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
4
|
-
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-
|
|
3
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-_aSf9-8u.js";
|
|
4
|
+
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-bR3fAmim.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
7
7
|
import { NumberPicker } from "../number-picker/number-picker.js";
|
|
8
8
|
import { generateMarkers, generateGridTemplate } from "./utils.js";
|
|
9
9
|
import { HStack } from "../layout/hstack.js";
|
|
10
|
-
import { A as AnimatePresence, m as motion } from "../../proxy-
|
|
10
|
+
import { A as AnimatePresence, m as motion } from "../../proxy-CNEXmkdK.js";
|
|
11
11
|
/**
|
|
12
12
|
* A single/multi-thumb slider component.
|
|
13
13
|
*
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, k as $df56164dff5785e2$export$4338b53315abf666, h as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$df3a06d6289f983e, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, e as $64fa3d84918910a7$export$fabf2dc03a41866e, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-Cr3pLd9c.js";
|
|
3
|
-
import { f as $880e95eb8b93ba9a$export$ecf600387e221c37, o as $ae20dd8cbca75726$export$d6daf82dcd84e87c, j as $e1995378a142960e$export$18af5c7a9e9b3664, $ as $e1995378a142960e$export$fb8073518f34e6ec, g as $e1995378a142960e$export$bf788dd355e3a401, p as $23b9f4fcf0fe224b$export$d68d59712b04d9d1, l as $7135fc7d473fd974$export$4feb769f8ddf26c5, q as $7135fc7d473fd974$export$90e00781bc59d8f9, r as $7135fc7d473fd974$export$a164736487e3f0ae } from "../../SelectionManager-
|
|
3
|
+
import { f as $880e95eb8b93ba9a$export$ecf600387e221c37, o as $ae20dd8cbca75726$export$d6daf82dcd84e87c, j as $e1995378a142960e$export$18af5c7a9e9b3664, $ as $e1995378a142960e$export$fb8073518f34e6ec, g as $e1995378a142960e$export$bf788dd355e3a401, p as $23b9f4fcf0fe224b$export$d68d59712b04d9d1, l as $7135fc7d473fd974$export$4feb769f8ddf26c5, q as $7135fc7d473fd974$export$90e00781bc59d8f9, r as $7135fc7d473fd974$export$a164736487e3f0ae } from "../../SelectionManager-B02LcxLr.js";
|
|
4
4
|
import { $ as $1d5b8b8664671ef2$export$c9549807523555e0 } from "../../SelectionIndicator-D7WMzeAW.js";
|
|
5
5
|
import { $ as $c8a5a149f625efcf$export$758399f318e6385a } from "../../SharedElementTransition-CtoWSaF0.js";
|
|
6
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "../../Hidden-
|
|
6
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "../../Hidden-DOH36apC.js";
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-eGTqWSTd.js";
|
|
8
|
-
import { b as $cdc5a6778b766db2$export$a9d04c5684123369 } from "../../useListState-
|
|
8
|
+
import { a as $e72dd72e1c76a225$export$2f645645f7bca764, b as $cdc5a6778b766db2$export$a9d04c5684123369 } from "../../useListState-BjnzKozj.js";
|
|
9
9
|
import { $ as $d3f049242431219c$export$45fda7c47f93fd48, a as $d3f049242431219c$export$6d3443f2c48bfc20 } from "../../animation-Dfl8uEb3.js";
|
|
10
10
|
import $dbSRa$react__default, { useState, useMemo, useRef, useEffect, useContext, forwardRef, createContext, isValidElement, useId, cloneElement } from "react";
|
|
11
|
-
import {
|
|
11
|
+
import { F as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, $ as $f645667febf57a63$export$4c014de7c8940b4c, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-DkmPQdGE.js";
|
|
12
12
|
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-D8O3gOdV.js";
|
|
13
|
-
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-
|
|
13
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-CjFQ7cbd.js";
|
|
14
14
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-iUFQCK8m.js";
|
|
15
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
16
|
-
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../useSingleSelectListState-BtrMHGeE.js";
|
|
15
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-B2glEZ25.js";
|
|
17
16
|
import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
|
|
18
17
|
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
19
18
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
@@ -206,6 +205,38 @@ function $58d314389b21fa3f$export$773e389e644c5874(props, state, ref) {
|
|
|
206
205
|
}
|
|
207
206
|
};
|
|
208
207
|
}
|
|
208
|
+
function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
209
|
+
var _props_defaultSelectedKey;
|
|
210
|
+
let [selectedKey, setSelectedKey] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange);
|
|
211
|
+
let selectedKeys = useMemo(() => selectedKey != null ? [
|
|
212
|
+
selectedKey
|
|
213
|
+
] : [], [
|
|
214
|
+
selectedKey
|
|
215
|
+
]);
|
|
216
|
+
let { collection, disabledKeys, selectionManager } = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
217
|
+
...props,
|
|
218
|
+
selectionMode: "single",
|
|
219
|
+
disallowEmptySelection: true,
|
|
220
|
+
allowDuplicateSelectionEvents: true,
|
|
221
|
+
selectedKeys,
|
|
222
|
+
onSelectionChange: (keys) => {
|
|
223
|
+
if (keys === "all") return;
|
|
224
|
+
var _keys_values_next_value;
|
|
225
|
+
let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
|
|
226
|
+
if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);
|
|
227
|
+
setSelectedKey(key);
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
let selectedItem = selectedKey != null ? collection.getItem(selectedKey) : null;
|
|
231
|
+
return {
|
|
232
|
+
collection,
|
|
233
|
+
disabledKeys,
|
|
234
|
+
selectionManager,
|
|
235
|
+
selectedKey,
|
|
236
|
+
setSelectedKey,
|
|
237
|
+
selectedItem
|
|
238
|
+
};
|
|
239
|
+
}
|
|
209
240
|
function $76f919a04c5a7d14$export$4ba071daf4e486(props) {
|
|
210
241
|
var _props_defaultSelectedKey, _ref;
|
|
211
242
|
let state = $a0d645289fe9b86b$export$e7f05e985daf4b5f({
|
|
@@ -721,7 +752,7 @@ const Tab = (props) => {
|
|
|
721
752
|
"es:any-focus:outline-hidden",
|
|
722
753
|
"es:contrast-more:inset-ring es:contrast-more:inset-ring-accent-500/0 es:contrast-more:focus-visible:inset-ring-accent-500",
|
|
723
754
|
"es:disabled:text-secondary-400",
|
|
724
|
-
'es:font-variation-["wdth"
|
|
755
|
+
'es:font-variation-["wdth"_102,"wght"_325,"ROND"_0,"slnt"_0,"GRAD"_0] es:hover:font-variation-["wdth"_102,"wght"_325,"ROND"_100,"slnt"_0,"GRAD"_0] es:selected:font-variation-["wdth"_102,"wght"_325,"ROND"_50,"slnt"_0,"GRAD"_50]',
|
|
725
756
|
invisible && "es:hidden",
|
|
726
757
|
className
|
|
727
758
|
],
|
|
@@ -2,11 +2,11 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, k as $df56164dff5785e2$export$4338b53315abf666, l as $5dc95899b306f630$export$c9058316764c140e, g as $64fa3d84918910a7$export$ef03459518577ad4, h as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$df3a06d6289f983e, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../../utils-Cr3pLd9c.js";
|
|
3
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-eGTqWSTd.js";
|
|
4
4
|
import $dbSRa$react__default, { forwardRef, createContext } from "react";
|
|
5
|
-
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-
|
|
6
|
-
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-
|
|
7
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
8
|
-
import {
|
|
9
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-
|
|
5
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-H_lORSWO.js";
|
|
6
|
+
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-Ddc7N8pR.js";
|
|
7
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-B2glEZ25.js";
|
|
8
|
+
import { y as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-DkmPQdGE.js";
|
|
9
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-DZnWrkn8.js";
|
|
10
10
|
import { c as cva } from "../../index-BHpUy2Ix.js";
|
|
11
11
|
function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
12
12
|
let { labelProps, inputProps, isSelected, isPressed, isDisabled, isReadOnly } = $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
2
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-_aSf9-8u.js";
|
|
3
3
|
import { Switch } from "./switch.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
@@ -3,10 +3,10 @@ import { o as $ff5963eb1fccf552$export$e08e3b67e392101e, b as $3ef42575df84b30b$
|
|
|
3
3
|
import { $ as $1d5b8b8664671ef2$export$c9549807523555e0 } from "../../SelectionIndicator-D7WMzeAW.js";
|
|
4
4
|
import $dbSRa$react__default, { createContext, forwardRef, useContext } from "react";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-eGTqWSTd.js";
|
|
6
|
-
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-
|
|
7
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-
|
|
8
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
9
|
-
import {
|
|
6
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-H_lORSWO.js";
|
|
7
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-DyMX0EVr.js";
|
|
8
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-B2glEZ25.js";
|
|
9
|
+
import { y as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-DkmPQdGE.js";
|
|
10
10
|
import { c as cva } from "../../index-BHpUy2Ix.js";
|
|
11
11
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
12
12
|
function $55f54f7887471b58$export$51e84d46ca0bc451(props, state, ref) {
|
|
@@ -180,7 +180,7 @@ const ToggleButton2 = (props) => {
|
|
|
180
180
|
}
|
|
181
181
|
const componentClasses = cva(
|
|
182
182
|
[
|
|
183
|
-
'es:font-variation-["wdth"
|
|
183
|
+
'es:font-variation-["wdth"_85,"wght"_325,"ROND"_100,"GRAD"_0,"slnt"_0] es:not-aria-pressed:hover:font-variation-["wdth"_85,"wght"_325,"ROND"_100,"GRAD"_75,"slnt"_0] es:aria-pressed:font-variation-["wdth"_85,"wght"_325,"ROND"_100,"GRAD"_75,"slnt"_-2]',
|
|
184
184
|
"es:flex es:items-center",
|
|
185
185
|
"es:transition-plus es:duration-300 es:ease-spring-snappy es:text-13",
|
|
186
186
|
"es:any-focus:outline-hidden",
|
|
@@ -260,7 +260,7 @@ const ToggleButton2 = (props) => {
|
|
|
260
260
|
disabled: false,
|
|
261
261
|
selected: true,
|
|
262
262
|
class: [
|
|
263
|
-
'es:font-variation-["wdth"_80,"
|
|
263
|
+
'es:font-variation-["wdth"_80,"wdth"_64,"wght"_375,"GRAD"_150]',
|
|
264
264
|
"es:any-icon:drop-shadow-xs es:any-icon:drop-shadow-accent-800/25",
|
|
265
265
|
"es:text-white es:text-shadow-xs es:text-shadow-accent-900/30",
|
|
266
266
|
"es:bg-linear-to-b es:from-accent-800/10 es:to-accent-800/30 es:bg-accent-500 es:from-30%",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, a as $2a41e45df1593e64$export$d39e1813b3bdd0e1, b as $44f671af83e7d9e0$export$2de4954e8ae13b9f, c as $44f671af83e7d9e0$export$746d02f47f4d381 } from "../../OverlayArrow-
|
|
2
|
+
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, a as $2a41e45df1593e64$export$d39e1813b3bdd0e1, b as $44f671af83e7d9e0$export$2de4954e8ae13b9f, c as $44f671af83e7d9e0$export$746d02f47f4d381 } from "../../OverlayArrow-Fuxj-1QM.js";
|
|
3
3
|
import { m as $b5e257d569688ac6$export$535bd6ca7f90a273, b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, i as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$df3a06d6289f983e } from "../../utils-Cr3pLd9c.js";
|
|
4
4
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-eGTqWSTd.js";
|
|
5
5
|
import { $ as $d3f049242431219c$export$45fda7c47f93fd48, a as $d3f049242431219c$export$6d3443f2c48bfc20 } from "../../animation-Dfl8uEb3.js";
|
|
6
|
-
import {
|
|
6
|
+
import { y as $6179b936705e76d3$export$ae780daf29e6d456, $ as $f645667febf57a63$export$4c014de7c8940b4c, v as $507fabe10e71c6fb$export$630ff653c5ada6a9, m as $507fabe10e71c6fb$export$b9b3dfddab17db27, z as $f645667febf57a63$export$13f3202a3e5ddd5 } from "../../useHover-DkmPQdGE.js";
|
|
7
7
|
import $dbSRa$react__default, { useContext, useState, useMemo, useRef, useEffect, forwardRef, createContext } from "react";
|
|
8
8
|
import { a as $96b38030c423d352$export$9fc1347d4195ccb3 } from "../../PortalProvider-BQ1X8vGX.js";
|
|
9
9
|
import { $ as $dbSRa$reactdom } from "../../index-BL5gdWX4.js";
|
|
@@ -226,12 +226,14 @@ function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
|
|
|
226
226
|
let warmupTooltip = () => {
|
|
227
227
|
closeOpenTooltips();
|
|
228
228
|
ensureTooltipEntry();
|
|
229
|
-
if (!isOpen && !$8796f90736e175cb$var$
|
|
230
|
-
$8796f90736e175cb$var$globalWarmUpTimeout
|
|
231
|
-
$8796f90736e175cb$var$
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
229
|
+
if (!isOpen && !$8796f90736e175cb$var$globalWarmedUp) {
|
|
230
|
+
if ($8796f90736e175cb$var$globalWarmUpTimeout) clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout);
|
|
231
|
+
$8796f90736e175cb$var$globalWarmUpTimeout = setTimeout(() => {
|
|
232
|
+
$8796f90736e175cb$var$globalWarmUpTimeout = null;
|
|
233
|
+
$8796f90736e175cb$var$globalWarmedUp = true;
|
|
234
|
+
showTooltip();
|
|
235
|
+
}, delay);
|
|
236
|
+
} else if (!isOpen) showTooltip();
|
|
235
237
|
};
|
|
236
238
|
useEffect(() => {
|
|
237
239
|
closeCallback.current = close;
|
|
@@ -431,7 +433,7 @@ const Tooltip2 = (props) => {
|
|
|
431
433
|
crossOffset,
|
|
432
434
|
className: ({ isEntering, isExiting }) => clsx(
|
|
433
435
|
"es:group es:pointer-events-none",
|
|
434
|
-
'es:font-variation-["wdth"_72,"
|
|
436
|
+
'es:font-variation-["wdth"_72,"wght"_380,"ROND"_100]',
|
|
435
437
|
"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",
|
|
436
438
|
theme === "light" && "es:inset-ring-surface-800/5 es:bg-surface-50/90 es:text-secondary-700",
|
|
437
439
|
theme === "dark" && "es:inset-ring-surface-200/15 es:bg-surface-800/80 es:text-secondary-100",
|