@eightshift/ui-components 2.0.2 → 3.0.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-OQ5EIPvt.js → Button-D7c-vzAt.js} +5 -5
- package/dist/{Collection-CJM_asJz.js → Collection-CDEKDgvV.js} +234 -128
- package/dist/{Color-B0HgM8f4.js → Color-MV5kBVXr.js} +1 -1
- package/dist/{ColorSwatch-Dv3Wxdl_.js → ColorSwatch-BqQfVu4L.js} +5 -5
- package/dist/{ComboBox-BnlZjJ3T.js → ComboBox-BL1hyP4p.js} +42 -21
- package/dist/{Dialog-CIh-hX93.js → Dialog-s3fX5lSh.js} +199 -88
- package/dist/{FieldError-D7A6s7O5.js → FieldError-52GVSGgC.js} +2 -2
- package/dist/{FocusScope-Cs5_OoeA.js → FocusScope-DbqfVa2Z.js} +206 -43
- package/dist/{Group-D6tr3U_n.js → Group-DMRt6g_N.js} +3 -3
- package/dist/{Heading-DiYTXoIW.js → Heading-B2153VXe.js} +1 -1
- package/dist/{Hidden-DnOd_jPX.js → Hidden-rE6uR-lr.js} +2 -6
- package/dist/{Input-Se0m3ubj.js → Input-CTTTeCpo.js} +10 -10
- package/dist/{Label-Ca9uelsn.js → Label-icmbmNdI.js} +2 -2
- package/dist/{List-Br274SP1.js → List-UdOhiW-i.js} +2 -0
- package/dist/{ListBox-D9dFEh5A.js → ListBox-CfdzmefC.js} +28 -27
- package/dist/{OverlayArrow-1jx-ZyCR.js → OverlayArrow-CMh-7gEM.js} +3 -3
- package/dist/{Separator-BhZycTUp.js → Separator-BxbOoGIK.js} +4 -4
- package/dist/{Slider-BZNaJylD.js → Slider-BZO0Tvut.js} +13 -14
- package/dist/{Text-aOUPPvTO.js → Text-DVSAPY-K.js} +1 -1
- package/dist/{VisuallyHidden-ClTQo25k.js → VisuallyHidden-ooItkWYR.js} +2 -2
- package/dist/assets/style-admin.css +1290 -1335
- package/dist/assets/style-editor.css +433 -478
- package/dist/assets/style.css +433 -478
- package/dist/assets/wp-font-enhancements.css +3 -3
- package/dist/assets/wp-ui-enhancements.css +45 -45
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox.js +8 -8
- package/dist/components/color-pickers/color-swatch.js +2 -2
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +20 -22
- package/dist/components/container-panel/container-panel.js +9 -3
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1162 -865
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/input-field/input-field.js +10 -9
- package/dist/components/link-input/link-input.js +8 -9
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +5 -5
- package/dist/components/number-picker/number-picker.js +13 -11
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/image-placeholder.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +16 -15
- package/dist/components/repeater/repeater-item.js +9 -2
- package/dist/components/repeater/repeater.js +32 -3
- package/dist/components/responsive/mini-responsive.js +7 -4
- package/dist/components/responsive/responsive.js +7 -4
- package/dist/components/rich-label/rich-label.js +4 -3
- package/dist/components/select/v2/async-select.js +9 -9
- package/dist/components/select/v2/shared.js +2 -2
- package/dist/components/select/v2/single-select.js +22 -21
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/tabs/tabs.js +43 -23
- package/dist/components/toggle/switch.js +7 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +17 -23
- package/dist/{context-CDOs-GuR.js → context-D2KUdwNL.js} +1 -1
- package/dist/icons/icons.js +229 -1629
- package/dist/icons/index.js +2 -3
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/{index-CcCn9HWX.js → index-BKGQ6jGS.js} +1 -1
- package/dist/{react-jsx-parser.min-CVit0rZn.js → react-jsx-parser.min-DZCiis5V.js} +48 -20
- package/dist/{textSelection-BlTDSskG.js → textSelection-CrrUNX-B.js} +8 -47
- package/dist/{useButton-CmLbE5vg.js → useButton-Dl1C1478.js} +5 -5
- package/dist/{useEvent-cLDJlznQ.js → useEvent-B0b-6KBr.js} +1 -1
- package/dist/useFocusRing-CxlVCVpL.js +107 -0
- package/dist/{useFormReset-NpLM2e3G.js → useFormReset-C5OggHsw.js} +1 -1
- package/dist/{useFormValidation-BWwmZQE2.js → useFormValidation-BgSHI8kQ.js} +2 -2
- package/dist/{focusSafely-CiqTTjWy.js → useHover-B-8Wji4B.js} +305 -98
- package/dist/{useLabel-C85N3Hzw.js → useLabel-D7HkNEHT.js} +2 -2
- package/dist/{useLabels-C_2wWraB.js → useLabels-D8cxd1Z8.js} +1 -1
- package/dist/{useListState-Z7FB_NzO.js → useListState-BXnC0mNr.js} +28 -13
- package/dist/{useLocalizedStringFormatter-BQ4TF72x.js → useLocalizedStringFormatter-CFP1YZWQ.js} +1 -1
- package/dist/{useNumberField-Bm6_BVl9.js → useNumberField-ecr8uK6_.js} +10 -10
- package/dist/{useNumberFormatter-DlUVKkO7.js → useNumberFormatter-321rAb4J.js} +1 -1
- package/dist/{usePress-rg_OQIGW.js → usePress-C3dxzVyi.js} +69 -63
- package/dist/{useSingleSelectListState-Cu3xtEJS.js → useSingleSelectListState-Dgbuzw5o.js} +2 -2
- package/dist/{useToggle-DzlgBLAJ.js → useToggle-DyZydSPy.js} +9 -7
- package/dist/{useToggleState-DhSBQxkp.js → useToggleState-BZoo5qt_.js} +1 -1
- package/dist/{utils-39D0mStj.js → utils-DkCSC521.js} +38 -35
- package/package.json +32 -32
- package/dist/useFocusRing-CGp3guTX.js +0 -41
- package/dist/useFocusable-087cO5Ct.js +0 -81
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { _ as __ } from "../../../default-i18n-CM1-Xvzf.js";
|
|
3
3
|
import { BaseControl } from "../../base-control/base-control.js";
|
|
4
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../../Button-
|
|
5
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../../Label-
|
|
6
|
-
import { b as $eed445e0843c11d0$export$7ff8f37d2d81a48d, c as $eed445e0843c11d0$export$7c5906fe4f1f2af2, $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../../ListBox-
|
|
7
|
-
import { o as $168583247155ddda$export$dc9c12ed27dd1b49, l as $de32f1b87079253c$export$d2f961adcb0afbe, p as $07b14b47974efb58$export$9b9a0cd73afb7ca4, $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../../Dialog-
|
|
8
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928,
|
|
9
|
-
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../../FieldError-
|
|
4
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../../Button-D7c-vzAt.js";
|
|
5
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../../Label-icmbmNdI.js";
|
|
6
|
+
import { b as $eed445e0843c11d0$export$7ff8f37d2d81a48d, c as $eed445e0843c11d0$export$7c5906fe4f1f2af2, $ as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../../ListBox-CfdzmefC.js";
|
|
7
|
+
import { o as $168583247155ddda$export$dc9c12ed27dd1b49, l as $de32f1b87079253c$export$d2f961adcb0afbe, p as $07b14b47974efb58$export$9b9a0cd73afb7ca4, $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../../Dialog-s3fX5lSh.js";
|
|
8
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, p as $ff5963eb1fccf552$export$e08e3b67e392101e, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, c as clsx } from "../../../utils-DkCSC521.js";
|
|
9
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../../FieldError-52GVSGgC.js";
|
|
10
10
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../../Form-Cq3fu75_.js";
|
|
11
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../../Text-
|
|
12
|
-
import {
|
|
11
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../../Text-DVSAPY-K.js";
|
|
12
|
+
import { o as $fb3050f43d946246$export$e32c88dfddc6e1d8, d as $e1995378a142960e$export$bf788dd355e3a401 } from "../../../Collection-CDEKDgvV.js";
|
|
13
13
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../../filterDOMProps-EDDcM64A.js";
|
|
14
|
-
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, f as $9daab02d461809db$export$683480f191c0e3ea } from "../../../OverlayArrow-
|
|
14
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, f as $9daab02d461809db$export$683480f191c0e3ea } from "../../../OverlayArrow-CMh-7gEM.js";
|
|
15
15
|
import React__default, { useMemo, useRef, useState, createContext, forwardRef, useCallback, useContext, cloneElement } from "react";
|
|
16
|
-
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../../useFormValidation-
|
|
17
|
-
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../../useSingleSelectListState-
|
|
18
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../../useFocusRing-
|
|
19
|
-
import { e as $325a3faab7a68acd$export$a16aca283550c30d, f as $2a25aae57d74318e$export$a05409b8bb224a5a } from "../../../Separator-
|
|
20
|
-
import {
|
|
21
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../../useFormReset-
|
|
22
|
-
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../../VisuallyHidden-
|
|
23
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../../useLocalizedStringFormatter-
|
|
16
|
+
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../../useFormValidation-BgSHI8kQ.js";
|
|
17
|
+
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../../useSingleSelectListState-Dgbuzw5o.js";
|
|
18
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../../useFocusRing-CxlVCVpL.js";
|
|
19
|
+
import { e as $325a3faab7a68acd$export$a16aca283550c30d, f as $2a25aae57d74318e$export$a05409b8bb224a5a } from "../../../Separator-BxbOoGIK.js";
|
|
20
|
+
import { p as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "../../../useHover-B-8Wji4B.js";
|
|
21
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../../useFormReset-C5OggHsw.js";
|
|
22
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../../VisuallyHidden-ooItkWYR.js";
|
|
23
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../../useLocalizedStringFormatter-CFP1YZWQ.js";
|
|
24
24
|
import { icons } from "../../../icons/icons.js";
|
|
25
|
-
import "../../../react-jsx-parser.min-
|
|
25
|
+
import "../../../react-jsx-parser.min-DZCiis5V.js";
|
|
26
26
|
import { OptionItemBase } from "./shared.js";
|
|
27
27
|
import { RichLabel } from "../../rich-label/rich-label.js";
|
|
28
28
|
const $58aed456727eb0f3$export$703601b7e90536f8 = /* @__PURE__ */ new WeakMap();
|
|
@@ -183,7 +183,7 @@ function $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {
|
|
|
183
183
|
disabled: isDisabled,
|
|
184
184
|
required: validationBehavior === "native" && isRequired,
|
|
185
185
|
name,
|
|
186
|
-
value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey :
|
|
186
|
+
value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : void 0,
|
|
187
187
|
onChange: (e) => state.setSelectedKey(e.target.value)
|
|
188
188
|
}
|
|
189
189
|
};
|
|
@@ -576,7 +576,7 @@ function $82d7e5349645de74$var$SelectInner({ props, selectRef: ref, collection }
|
|
|
576
576
|
within: true
|
|
577
577
|
});
|
|
578
578
|
let buttonRef = useRef(null);
|
|
579
|
-
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
579
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
580
580
|
let { labelProps, triggerProps, valueProps, menuProps, descriptionProps, errorMessageProps, ...validation } = $58aed456727eb0f3$export$e64b2f635402ca43({
|
|
581
581
|
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
582
582
|
label,
|
|
@@ -658,7 +658,8 @@ function $82d7e5349645de74$var$SelectInner({ props, selectRef: ref, collection }
|
|
|
658
658
|
placement: "bottom start",
|
|
659
659
|
style: {
|
|
660
660
|
"--trigger-width": buttonWidth
|
|
661
|
-
}
|
|
661
|
+
},
|
|
662
|
+
"aria-labelledby": menuProps["aria-labelledby"]
|
|
662
663
|
}
|
|
663
664
|
],
|
|
664
665
|
[
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
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-icmbmNdI.js";
|
|
4
|
+
import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-BZO0Tvut.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { icons } from "../../icons/icons.js";
|
|
7
7
|
import { getColumnConfigOutputText } from "./utils.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-
|
|
3
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-
|
|
4
|
-
import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-
|
|
2
|
+
import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-DkCSC521.js";
|
|
3
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-icmbmNdI.js";
|
|
4
|
+
import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-BZO0Tvut.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
7
7
|
import { NumberPicker } from "../number-picker/number-picker.js";
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37,
|
|
3
|
-
import {
|
|
4
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "../../Hidden-
|
|
2
|
+
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, k as $ae20dd8cbca75726$export$d6daf82dcd84e87c, d as $e1995378a142960e$export$bf788dd355e3a401, e as $e1995378a142960e$export$fb8073518f34e6ec, f as $7135fc7d473fd974$export$4feb769f8ddf26c5, m as $7135fc7d473fd974$export$90e00781bc59d8f9, h as $e1995378a142960e$export$18af5c7a9e9b3664, n as $7135fc7d473fd974$export$a164736487e3f0ae } from "../../Collection-CDEKDgvV.js";
|
|
3
|
+
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, l as $df56164dff5785e2$export$4338b53315abf666 } from "../../utils-DkCSC521.js";
|
|
4
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "../../Hidden-rE6uR-lr.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
|
-
import React__default, { useState, useMemo, useRef, useEffect, forwardRef, useContext, createContext, useId, cloneElement, isValidElement } from "react";
|
|
7
|
-
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../useSingleSelectListState-
|
|
8
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
9
|
-
import { $ as $
|
|
10
|
-
import { $ as $
|
|
11
|
-
import {
|
|
12
|
-
import { a as $
|
|
13
|
-
import {
|
|
6
|
+
import React__default, { version, useState, useMemo, useRef, useEffect, forwardRef, useContext, createContext, useId, cloneElement, isValidElement } from "react";
|
|
7
|
+
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../../useSingleSelectListState-Dgbuzw5o.js";
|
|
8
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CxlVCVpL.js";
|
|
9
|
+
import { a as $f645667febf57a63$export$4c014de7c8940b4c, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-B-8Wji4B.js";
|
|
10
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-D8cxd1Z8.js";
|
|
11
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-D2KUdwNL.js";
|
|
12
|
+
import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-C3dxzVyi.js";
|
|
13
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-DbqfVa2Z.js";
|
|
14
14
|
import { _ as __, s as sprintf } from "../../default-i18n-CM1-Xvzf.js";
|
|
15
15
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
16
|
-
import { c as cva } from "../../index-
|
|
16
|
+
import { c as cva } from "../../index-BKGQ6jGS.js";
|
|
17
17
|
import { Notice } from "../notice/notice.js";
|
|
18
18
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
19
|
+
function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
|
|
20
|
+
const pieces = version.split(".");
|
|
21
|
+
const major = parseInt(pieces[0], 10);
|
|
22
|
+
if (major >= 19) return value;
|
|
23
|
+
return value ? "true" : void 0;
|
|
24
|
+
}
|
|
19
25
|
function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
|
|
20
26
|
let isDisabled = options === null || options === void 0 ? void 0 : options.isDisabled;
|
|
21
27
|
let [hasTabbableChild, setHasTabbableChild] = useState(false);
|
|
@@ -77,8 +83,11 @@ function $0175d55c2a017ebc$export$fdf4756d5b8ef90a(props, state, ref) {
|
|
|
77
83
|
});
|
|
78
84
|
delete domProps.id;
|
|
79
85
|
let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item === null || item === void 0 ? void 0 : item.props);
|
|
86
|
+
let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
|
|
87
|
+
isDisabled
|
|
88
|
+
}, ref);
|
|
80
89
|
return {
|
|
81
|
-
tabProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, linkProps, itemProps, {
|
|
90
|
+
tabProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, focusableProps, linkProps, itemProps, {
|
|
82
91
|
id: tabId,
|
|
83
92
|
"aria-selected": isSelected,
|
|
84
93
|
"aria-disabled": isDisabled || void 0,
|
|
@@ -206,7 +215,7 @@ function $76f919a04c5a7d14$export$4ba071daf4e486(props) {
|
|
|
206
215
|
let lastSelectedKey = useRef(currentSelectedKey);
|
|
207
216
|
useEffect(() => {
|
|
208
217
|
let selectedKey = currentSelectedKey;
|
|
209
|
-
if (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey)) {
|
|
218
|
+
if (props.selectedKey == null && (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey))) {
|
|
210
219
|
selectedKey = $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, state.disabledKeys);
|
|
211
220
|
if (selectedKey != null)
|
|
212
221
|
selectionManager.setSelectedKeys([
|
|
@@ -354,6 +363,7 @@ const $5e8ad37a45e1c704$export$3e41faf802a29e71 = /* @__PURE__ */ $e1995378a1429
|
|
|
354
363
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
355
364
|
...props,
|
|
356
365
|
id: void 0,
|
|
366
|
+
children: item.rendered,
|
|
357
367
|
defaultClassName: "react-aria-Tab",
|
|
358
368
|
values: {
|
|
359
369
|
isSelected,
|
|
@@ -374,7 +384,7 @@ const $5e8ad37a45e1c704$export$3e41faf802a29e71 = /* @__PURE__ */ $e1995378a1429
|
|
|
374
384
|
"data-focus-visible": isFocusVisible || void 0,
|
|
375
385
|
"data-pressed": isPressed || void 0,
|
|
376
386
|
"data-hovered": isHovered || void 0
|
|
377
|
-
});
|
|
387
|
+
}, renderProps.children);
|
|
378
388
|
});
|
|
379
389
|
const $5e8ad37a45e1c704$export$3d96ec278d3efce4 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function TabPanel(props, forwardedRef) {
|
|
380
390
|
const state = useContext($5e8ad37a45e1c704$export$364712098d2aa57c);
|
|
@@ -402,7 +412,7 @@ const $5e8ad37a45e1c704$export$3d96ec278d3efce4 = /* @__PURE__ */ $f39a9eba43920
|
|
|
402
412
|
"data-focused": isFocused || void 0,
|
|
403
413
|
"data-focus-visible": isFocusVisible || void 0,
|
|
404
414
|
// @ts-ignore
|
|
405
|
-
inert: !isSelected
|
|
415
|
+
inert: $cdc5a6778b766db2$export$a9d04c5684123369(!isSelected),
|
|
406
416
|
"data-inert": !isSelected ? "true" : void 0
|
|
407
417
|
}, /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
408
418
|
values: [
|
|
@@ -431,7 +441,7 @@ const $5e8ad37a45e1c704$export$3d96ec278d3efce4 = /* @__PURE__ */ $f39a9eba43920
|
|
|
431
441
|
*
|
|
432
442
|
* @returns {JSX.Element} The Tabs component.
|
|
433
443
|
*
|
|
434
|
-
* @typedef {'underline' | 'pill' | 'pillInverse'} TabsType
|
|
444
|
+
* @typedef {'underline' | 'pill' | 'pillInverse' | 'pillCompact' | 'pillCompactInverse'} TabsType
|
|
435
445
|
*
|
|
436
446
|
* @example
|
|
437
447
|
* <Tabs>
|
|
@@ -564,6 +574,7 @@ TabList2.displayName = "TabList";
|
|
|
564
574
|
* @param {string} [props.className] - Classes to pass to the tab.
|
|
565
575
|
* @param {JSX.Element} [props.icon] - Icon to show on the tab.
|
|
566
576
|
* @param {string|JSX.Element} [props.badge] - Badge to render besides the label.
|
|
577
|
+
* @param {boolean} [props.invisible] - If `true`, the tab is disabled and not rendered, but is not unmounted from the DOM.
|
|
567
578
|
* @param {string} [props.label] - Tab label. **Note**: overrides inner items!
|
|
568
579
|
* @param {string} [props.subtitle] - Tab subtitle. **Note**: overrides inner items!
|
|
569
580
|
*
|
|
@@ -574,12 +585,15 @@ TabList2.displayName = "TabList";
|
|
|
574
585
|
* @preserve
|
|
575
586
|
*/
|
|
576
587
|
const Tab = (props) => {
|
|
577
|
-
const { children, disabled, isParentVertical, className, icon, label, subtitle, type, badge, ...other } = props;
|
|
588
|
+
const { children, disabled, isParentVertical, className, icon, label, subtitle, type, badge, invisible, ...other } = props;
|
|
578
589
|
const componentClasses = cva(
|
|
579
590
|
[
|
|
580
|
-
"es:group es:flex es:items-center es:gap-1.5 es:relative es:shrink-0
|
|
591
|
+
"es:group es:flex es:items-center es:gap-1.5 es:relative es:shrink-0",
|
|
581
592
|
"es:select-none es:text-sm es:transition es:not-disabled:cursor-pointer",
|
|
582
593
|
"es:any-focus:outline-hidden es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50",
|
|
594
|
+
!(type === "pillCompact" || type === "pillCompactInverse") && "es:min-h-9.5",
|
|
595
|
+
isParentVertical && (type === "pillCompact" || type === "pillCompactInverse") && "es:min-h-8",
|
|
596
|
+
invisible && "es:hidden",
|
|
583
597
|
className
|
|
584
598
|
],
|
|
585
599
|
{
|
|
@@ -587,7 +601,9 @@ const Tab = (props) => {
|
|
|
587
601
|
type: {
|
|
588
602
|
underline: "es:disabled:text-secondary-400 es:selected:text-accent-950",
|
|
589
603
|
pill: "es:font-[450] es:border es:border-transparent es:px-3 es:py-2 es:rounded-lg es:not-disabled:not-selected:hover:text-secondary-900 es:not-disabled:not-selected:hover:bg-secondary-100 es:text-secondary-500 es:selected:text-accent-900 es:selected:bg-accent-400/15 es:has-icon:pl-2.5 es:focus-visible:border-accent-500 es:disabled:text-secondary-400/75",
|
|
590
|
-
pillInverse: "es:font-[450] es:border es:border-transparent es:px-3 es:py-2 es:rounded-lg es:not-disabled:not-selected:hover:text-secondary-900 es:not-disabled:not-selected:hover:bg-secondary-100 es:text-secondary-500 es:selected:text-white es:selected:bg-accent-600 es:has-icon:pl-2.5 es:focus-visible:border-accent-500 es:disabled:text-secondary-400/75"
|
|
604
|
+
pillInverse: "es:font-[450] es:border es:border-transparent es:px-3 es:py-2 es:rounded-lg es:not-disabled:not-selected:hover:text-secondary-900 es:not-disabled:not-selected:hover:bg-secondary-100 es:text-secondary-500 es:selected:text-white es:selected:bg-accent-600 es:has-icon:pl-2.5 es:focus-visible:border-accent-500 es:disabled:text-secondary-400/75",
|
|
605
|
+
pillCompact: "es:icon:size-4 es:font-[450] es:border es:border-transparent es:px-1.5 es:py-1 es:rounded-lg es:not-disabled:not-selected:hover:text-secondary-900 es:not-disabled:not-selected:hover:bg-secondary-100 es:text-secondary-500 es:selected:text-accent-900 es:selected:bg-accent-400/15 es:has-icon:pl-1 es:focus-visible:border-accent-500 es:disabled:text-secondary-400/75",
|
|
606
|
+
pillCompactInverse: "es:icon:size-4 es:font-[450] es:border es:border-transparent es:px-1.5 es:py-1 es:rounded-lg es:not-disabled:not-selected:hover:text-secondary-900 es:not-disabled:not-selected:hover:bg-secondary-100 es:text-secondary-500 es:selected:text-white es:selected:bg-accent-600 es:has-icon:pl-1 es:focus-visible:border-accent-500 es:disabled:text-secondary-400/75"
|
|
591
607
|
}
|
|
592
608
|
},
|
|
593
609
|
compoundVariants: [
|
|
@@ -618,7 +634,7 @@ const Tab = (props) => {
|
|
|
618
634
|
$5e8ad37a45e1c704$export$3e41faf802a29e71,
|
|
619
635
|
{
|
|
620
636
|
...other,
|
|
621
|
-
isDisabled: disabled,
|
|
637
|
+
isDisabled: disabled || invisible,
|
|
622
638
|
className: componentClasses({ vertical: Boolean(isParentVertical), type }),
|
|
623
639
|
children: [
|
|
624
640
|
(icon || subtitle) && /* @__PURE__ */ jsx(
|
|
@@ -627,7 +643,8 @@ const Tab = (props) => {
|
|
|
627
643
|
icon,
|
|
628
644
|
label: label ?? children,
|
|
629
645
|
subtitle,
|
|
630
|
-
noColor: true
|
|
646
|
+
noColor: true,
|
|
647
|
+
iconClassName: clsx((type === "pillCompact" || type === "pillCompactInverse") && "es:icon:size-4!")
|
|
631
648
|
}
|
|
632
649
|
),
|
|
633
650
|
!(icon || subtitle) && (label ?? children),
|
|
@@ -638,7 +655,10 @@ const Tab = (props) => {
|
|
|
638
655
|
"es:transition-colors es:px-1.5 es:py-1 es:leading-none es:rounded-md es:text-xs es:font-medium",
|
|
639
656
|
type === "underline" && "es:inset-ring es:inset-ring-secondary-200/20 es:bg-secondary-100 es:group-selected:bg-accent-500/10 es:group-selected:text-accent-900 es:group-selected:inset-ring-accent-500/10",
|
|
640
657
|
type === "pill" && "es:bg-secondary-100 es:group-selected:bg-accent-600 es:group-selected:text-white",
|
|
641
|
-
type === "pillInverse" && "es:bg-secondary-100 es:group-selected:bg-accent-50 es:group-selected:text-accent-900"
|
|
658
|
+
type === "pillInverse" && "es:bg-secondary-100 es:group-selected:bg-accent-50 es:group-selected:text-accent-900",
|
|
659
|
+
type === "pillCompact" && "es:bg-secondary-100 es:group-selected:bg-accent-600 es:group-selected:text-white",
|
|
660
|
+
type === "pillCompactInverse" && "es:bg-secondary-100 es:group-selected:bg-accent-50 es:group-selected:text-accent-900",
|
|
661
|
+
(type === "pillCompact" || type === "pillCompactInverse") && "es:[&_svg]:size-4!"
|
|
642
662
|
),
|
|
643
663
|
children: badge
|
|
644
664
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415,
|
|
2
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../../utils-DkCSC521.js";
|
|
3
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
4
4
|
import React__default, { forwardRef, createContext } from "react";
|
|
5
|
-
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-
|
|
6
|
-
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-
|
|
7
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
8
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../
|
|
9
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-
|
|
5
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-BZoo5qt_.js";
|
|
6
|
+
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-DyZydSPy.js";
|
|
7
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CxlVCVpL.js";
|
|
8
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-B-8Wji4B.js";
|
|
9
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-ooItkWYR.js";
|
|
10
10
|
import { c as clsx } from "../../lite-DVmmD_-j.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);
|
|
@@ -114,7 +114,7 @@ const Switch2 = (props) => {
|
|
|
114
114
|
className: "es:group es:flex es:items-center es:justify-between es:gap-2 es:any-focus:outline-hidden",
|
|
115
115
|
children: [
|
|
116
116
|
children,
|
|
117
|
-
/* @__PURE__ */ jsx("div", { className: clsx("es:flex es:shrink-0 es:items-center es:justify-center", className), children: /* @__PURE__ */ jsx(
|
|
117
|
+
/* @__PURE__ */ jsx("div", { className: clsx("es:flex es:shrink-0 es:items-center es:justify-center es:min-h-6.5", className), children: /* @__PURE__ */ jsx(
|
|
118
118
|
"div",
|
|
119
119
|
{
|
|
120
120
|
className: clsx(
|
|
@@ -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-icmbmNdI.js";
|
|
3
3
|
import { Switch } from "./switch.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { p as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-
|
|
2
|
+
import { p as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-DkCSC521.js";
|
|
3
3
|
import React__default, { createContext, forwardRef, useContext } from "react";
|
|
4
|
-
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-
|
|
5
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-
|
|
6
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
7
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../
|
|
8
|
-
import { c as cva } from "../../index-
|
|
4
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-BZoo5qt_.js";
|
|
5
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "../../useButton-Dl1C1478.js";
|
|
6
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CxlVCVpL.js";
|
|
7
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-B-8Wji4B.js";
|
|
8
|
+
import { c as cva } from "../../index-BKGQ6jGS.js";
|
|
9
9
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
10
10
|
function $55f54f7887471b58$export$51e84d46ca0bc451(props, state, ref) {
|
|
11
11
|
const { isSelected } = state;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, b as $d3f049242431219c$export$45fda7c47f93fd48, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, $ as $d3f049242431219c$export$6d3443f2c48bfc20, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f, e as $44f671af83e7d9e0$export$746d02f47f4d381 } from "../../OverlayArrow-
|
|
3
|
-
import {
|
|
4
|
-
import { $ as $
|
|
2
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, b as $d3f049242431219c$export$45fda7c47f93fd48, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, $ as $d3f049242431219c$export$6d3443f2c48bfc20, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f, e as $44f671af83e7d9e0$export$746d02f47f4d381 } from "../../OverlayArrow-CMh-7gEM.js";
|
|
3
|
+
import { n as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, i as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-DkCSC521.js";
|
|
4
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $f645667febf57a63$export$4c014de7c8940b4c, w as $507fabe10e71c6fb$export$630ff653c5ada6a9, m as $507fabe10e71c6fb$export$b9b3dfddab17db27, x as $f645667febf57a63$export$13f3202a3e5ddd5 } from "../../useHover-B-8Wji4B.js";
|
|
5
5
|
import React__default, { useContext, useState, useMemo, useRef, useEffect, forwardRef, createContext } from "react";
|
|
6
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456, k as $507fabe10e71c6fb$export$630ff653c5ada6a9, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "../../focusSafely-CiqTTjWy.js";
|
|
7
6
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
8
7
|
import { $ as $dbSRa$reactdom } from "../../index-BRp93Yfa.js";
|
|
9
8
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
@@ -140,7 +139,7 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
140
139
|
onHoverStart,
|
|
141
140
|
onHoverEnd
|
|
142
141
|
});
|
|
143
|
-
let { focusableProps } = $
|
|
142
|
+
let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
|
|
144
143
|
isDisabled,
|
|
145
144
|
onFocus,
|
|
146
145
|
onBlur
|
|
@@ -150,7 +149,8 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
150
149
|
"aria-describedby": state.isOpen ? tooltipId : void 0,
|
|
151
150
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, hoverProps, {
|
|
152
151
|
onPointerDown: onPressStart,
|
|
153
|
-
onKeyDown: onPressStart
|
|
152
|
+
onKeyDown: onPressStart,
|
|
153
|
+
tabIndex: void 0
|
|
154
154
|
})
|
|
155
155
|
},
|
|
156
156
|
tooltipProps: {
|
|
@@ -271,7 +271,7 @@ function $4e3b923658d69c60$export$8c610744efcf8a1d(props) {
|
|
|
271
271
|
}
|
|
272
272
|
]
|
|
273
273
|
]
|
|
274
|
-
}, /* @__PURE__ */ React__default.createElement($
|
|
274
|
+
}, /* @__PURE__ */ React__default.createElement($f645667febf57a63$export$13f3202a3e5ddd5, {
|
|
275
275
|
...triggerProps,
|
|
276
276
|
ref
|
|
277
277
|
}, props.children));
|
|
@@ -423,12 +423,12 @@ const Tooltip2 = (props) => {
|
|
|
423
423
|
offset,
|
|
424
424
|
crossOffset,
|
|
425
425
|
className: ({ isEntering, isExiting }) => clsx(
|
|
426
|
-
"es:group es:
|
|
426
|
+
"es:group es:pointer-events-none",
|
|
427
427
|
"es:z-20 es:select-none es:rounded-md es:border es:px-1.5 es:py-0.5 es:text-sm es:shadow es:backdrop-blur-3xl es:will-change-[transform,opacity] es:fill-mode-forwards",
|
|
428
428
|
theme === "light" && "es:border-secondary-200 es:bg-white/90 es:text-secondary-700",
|
|
429
429
|
theme === "dark" && "es:border-secondary-600 es:bg-black/80 es:text-secondary-100",
|
|
430
|
-
isEntering && "es:motion-opacity-in es:motion-duration-300 es:motion-safe:data-[placement=left]:motion-translate-x-in-
|
|
431
|
-
isExiting && "es:motion-opacity-out es:motion-duration-200 es:motion-safe:data-[placement=left]:motion-translate-x-out-[12.5%] es:motion-safe:data-[placement=right]:motion-translate-x-out-[-12.5%] es:motion-safe:data-[placement=top]:motion-translate-y-out-[12.5%] es:motion-safe:data-[placement=bottom]:motion-translate-y-out-[-12.5%] es:motion-ease-spring-
|
|
430
|
+
isEntering && "es:motion-opacity-in es:motion-duration-300 es:motion-safe:data-[placement=left]:motion-translate-x-in-[5%] es:motion-safe:data-[placement=right]:-motion-translate-x-in-[5%] es:motion-safe:data-[placement=top]:motion-translate-y-in-[5%] es:motion-safe:data-[placement=bottom]:-motion-translate-y-in-[5%] es:motion-ease-spring-smooth es:motion-ease-linear/opacity",
|
|
431
|
+
isExiting && "es:motion-opacity-out es:motion-duration-200 es:motion-safe:data-[placement=left]:motion-translate-x-out-[12.5%] es:motion-safe:data-[placement=right]:motion-translate-x-out-[-12.5%] es:motion-safe:data-[placement=top]:motion-translate-y-out-[12.5%] es:motion-safe:data-[placement=bottom]:motion-translate-y-out-[-12.5%] es:motion-ease-spring-smooth es:motion-ease-linear/opacity",
|
|
432
432
|
className
|
|
433
433
|
),
|
|
434
434
|
children: [
|
|
@@ -440,9 +440,10 @@ const Tooltip2 = (props) => {
|
|
|
440
440
|
viewBox: "0 0 8 8",
|
|
441
441
|
className: clsx(
|
|
442
442
|
"es:m-px es:stroke-none es:drop-shadow-sm",
|
|
443
|
+
"es:pointer-events-none",
|
|
443
444
|
theme === "light" && "es:fill-secondary-200",
|
|
444
445
|
theme === "dark" && "es:fill-secondary-600",
|
|
445
|
-
"group-placement
|
|
446
|
+
"es:group-data-[placement=left]:-rotate-90 es:group-data-[placement=right]:rotate-90 es:group-data-[placement=bottom]:rotate-180",
|
|
446
447
|
"es:forced-colors:fill-[Canvas] es:forced-colors:stroke-[ButtonBorder]"
|
|
447
448
|
),
|
|
448
449
|
children: /* @__PURE__ */ jsx("path", { d: "M0 0 L4 4 L8 0" })
|
|
@@ -496,29 +497,22 @@ const Tooltip2 = (props) => {
|
|
|
496
497
|
*/
|
|
497
498
|
const DecorativeTooltip = (props) => {
|
|
498
499
|
const { openDelay, closeDelay, children, text, wrapperClassName, ...rest } = props;
|
|
499
|
-
const
|
|
500
|
-
let { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
501
|
-
onHoverStart: () => setTimeout(() => setOpen(true), openDelay),
|
|
502
|
-
onHoverEnd: () => setTimeout(() => setOpen(false), closeDelay)
|
|
503
|
-
});
|
|
504
|
-
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
505
|
-
onFocusWithinChange: (isFocusWithin) => setOpen(isFocusWithin)
|
|
506
|
-
});
|
|
500
|
+
const state = $8796f90736e175cb$export$4d40659c25ecb50b(props);
|
|
507
501
|
const ref = useRef(null);
|
|
502
|
+
const { triggerProps } = $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref);
|
|
508
503
|
return /* @__PURE__ */ jsx(
|
|
509
504
|
Tooltip2,
|
|
510
505
|
{
|
|
511
506
|
triggerRef: ref,
|
|
512
507
|
text,
|
|
513
|
-
open,
|
|
514
|
-
className: "es:pointer-events-none",
|
|
508
|
+
open: state.isOpen,
|
|
515
509
|
...rest,
|
|
516
510
|
children: /* @__PURE__ */ jsx(
|
|
517
511
|
"div",
|
|
518
512
|
{
|
|
519
513
|
ref,
|
|
520
|
-
|
|
521
|
-
|
|
514
|
+
...triggerProps,
|
|
515
|
+
className: wrapperClassName,
|
|
522
516
|
children
|
|
523
517
|
}
|
|
524
518
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useContext } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { n as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-DkCSC521.js";
|
|
3
3
|
const $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
|
|
4
4
|
"Arab",
|
|
5
5
|
"Syrc",
|