@eightshift/ui-components 8.2.0 → 8.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-CO9aIsTe.js → Autocomplete-Dqkum3dO.js} +3 -3
- package/dist/{Button-DO3oQfCq.js → Button-DHgs_rCq.js} +3 -3
- package/dist/{Dialog-Bdqjmtt2.js → Dialog-CldDJ_4u.js} +109 -41
- package/dist/{Disclosure-BTSsPhG9.js → Disclosure-BHNgL5Is.js} +4 -4
- package/dist/{FocusScope-Cj6cUR6X.js → FocusScope-CUuL5wjz.js} +6 -3
- package/dist/{ListBox-CBvtIFuB.js → ListBox-CZXso3mJ.js} +9 -37
- package/dist/{RadioGroup-Dxzko0ma.js → RadioGroup-BTByPMrl.js} +8 -8
- package/dist/{SearchField-zY9JqR1c.js → SearchField-DkX1vqMN.js} +5 -5
- package/dist/{Slider-BXc72kE0.js → Slider-Dw-JjfLx.js} +5 -5
- package/dist/{Text-i-ZK4MiL.js → Text-CA2_mHEB.js} +3 -2
- package/dist/{VisuallyHidden-CsM0VnV1.js → VisuallyHidden-ZZwHZDro.js} +1 -1
- 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/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/{build-module-DG6ZK7Ty.js → build-module-BISCoQjQ.js} +4 -4
- package/dist/{button-C7mc6eS1.js → button-ldR_tlvk.js} +53 -5
- package/dist/{checkbox-DlG5DILl.js → checkbox-DDyLJRY8.js} +6 -6
- package/dist/{color-swatch-D6xMLGU-.js → color-swatch-DmhdOhe4.js} +1 -1
- package/dist/components/base-control/base-control.d.ts +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.d.ts +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.d.ts +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +3 -3
- package/dist/components/contextual-help/contextual-help.js +3 -3
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +17 -16
- package/dist/components/input-field/input-field.d.ts +1 -1
- 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 +2 -2
- package/dist/components/menu/menu.d.ts +8 -29
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.d.ts +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/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +5 -5
- package/dist/components/prompt-popover/prompt-popover.d.ts +56 -0
- package/dist/components/prompt-popover/prompt-popover.js +81 -0
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +2 -2
- package/dist/components/responsive/mini-responsive.js +4 -4
- package/dist/components/responsive/responsive-legacy.js +4 -4
- package/dist/components/responsive/responsive.js +4 -4
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.d.ts +1 -1
- package/dist/components/rich-label/rich-label.js +2 -2
- package/dist/components/select/async-multi-select.js +9 -9
- package/dist/components/select/async-select.js +9 -9
- package/dist/components/select/multi-select.js +10 -10
- package/dist/components/select/shared.d.ts +2 -2
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +10 -10
- package/dist/components/select/styles.d.ts +2 -2
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +4 -4
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.d.ts +1 -1
- package/dist/components/smart-image/smart-image.js +2 -2
- package/dist/components/tabs/tabs.d.ts +16 -64
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.d.ts +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-BUfOpGSZ.js → draggable-oS68xcYX.js} +1 -1
- package/dist/{gradient-editor-_q3XF10i.js → gradient-editor-DP8ioFX1.js} +5 -5
- package/dist/index.js +17 -16
- package/dist/{input-field-QzBpjm-m.js → input-field-C-XvZeCZ.js} +5 -5
- package/dist/{keyboard-BxnnQA2Z.js → keyboard-Cdqi5ZQQ.js} +1 -1
- package/dist/{link-input-CElQp3lP.js → link-input-DdwuqoMg.js} +18 -18
- package/dist/{modal-BeacK9N_.js → modal-DZco5MDu.js} +7 -7
- package/dist/{number-picker-CK_OHBXw.js → number-picker-XqKW0BNi.js} +5 -5
- package/dist/{react-C6Y6cCOx.js → react-O71mlJXS.js} +56 -51
- package/dist/{shared-DBCipn_m.js → shared-YXMIX2ka.js} +13 -13
- package/dist/{solid-color-picker-2-X3ridX.js → solid-color-picker-D5LEdmDM.js} +30 -15
- package/dist/{switch-B87lQ1V0.js → switch-Bo6nmed_.js} +7 -7
- package/dist/{tabs-DgkJUkIX.js → tabs-DE-qb7Kt.js} +7 -7
- package/dist/{textSelection-5Qk8tLtm.js → textSelection-C17LWYmO.js} +1 -1
- package/dist/{toggle-button-B2-f2rU6.js → toggle-button-Cb4yCEua.js} +36 -6
- package/dist/{tooltip-AzOLps8g.js → tooltip-CT-vzIdz.js} +2 -2
- package/dist/{useButton-BIrfoiY8.js → useButton-V65TBDGM.js} +2 -2
- package/dist/{useCollection-LQlZnc1u.js → useCollection-DqUS7tjk.js} +19 -9
- package/dist/useEvent-C9zwSNzZ.js +18 -0
- package/dist/{useFilter-BFaOw4yi.js → useFilter-C75IzdIZ.js} +1 -1
- package/dist/{useFocusRing-ZXFsftJJ.js → useFocusRing-JidySWlU.js} +1 -1
- package/dist/{useFormReset-DDJhIIfG.js → useFormReset-Sp8-miDa.js} +1 -1
- package/dist/{useFormValidation-BfnJKcdX.js → useFormValidation-CpmQEh8J.js} +1 -1
- package/dist/{useHover-CbyH227W.js → useHover-CaY3sRjL.js} +44 -17
- package/dist/{useListState-I22DfnmE.js → useListState-CzB3v6M9.js} +3 -10
- package/dist/{useNumberFieldState-C1gD0RuW.js → useNumberFieldState-DC3XY3DQ.js} +7 -7
- package/dist/{useOverlayTriggerState-Cpc_IbQf.js → useOverlayTriggerState-BKmSTK_5.js} +5 -3
- package/dist/{usePress-BF7otjax.js → usePress-CUCWcP-m.js} +22 -11
- package/dist/{useTextField-CnTuCBMs.js → useTextField-C3QIkMON.js} +4 -4
- package/dist/{useToggle-Cgv5UXaB.js → useToggle-bbGRUbo4.js} +4 -4
- package/dist/{useToggleState-Cy1E36QZ.js → useToggleState-D_rLMrVW.js} +1 -1
- package/dist/utilities/array-helpers.d.ts +1 -1
- package/package.json +12 -12
- package/dist/useEvent-Bih8lvtM.js +0 -22
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
import { g as $a4e76a5424781910$export$e08e3b67e392101e, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { C as $b5c62b033c25b96d$export$29bf1b5f2c56cf63, F as $a92dc41f639950be$export$cabe61c495ee3649,
|
|
3
|
-
import { n as $cbf007e418543821$export$b0d6fa1ab32e3295, t as $cbf007e418543821$export$16a4697467175487 } from "./textSelection-
|
|
2
|
+
import { C as $b5c62b033c25b96d$export$29bf1b5f2c56cf63, F as $a92dc41f639950be$export$cabe61c495ee3649, J as $d447af545b77c9f1$export$f21a1ffae260145a, M as $a92dc41f639950be$export$525bc4921d56d4a, O as $2add3ce32c6007eb$export$9ac100e40613ea10, P as $a92dc41f639950be$export$c2b7abe5d61ec696, R as $1969ac565cfec8d0$export$de79e2c695e052f3, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, o as $b7115c395c64f7b5$export$4debdb1a3f0fa79e, q as $d447af545b77c9f1$export$b204af158042fbac, w as $b5c62b033c25b96d$export$60278871457622de, x as $caaf0dd3060ed57c$export$95185d699e05d4d7, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CaY3sRjL.js";
|
|
3
|
+
import { n as $cbf007e418543821$export$b0d6fa1ab32e3295, t as $cbf007e418543821$export$16a4697467175487 } from "./textSelection-C17LWYmO.js";
|
|
4
4
|
import $3ARPR$react, { useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { flushSync } from "react-dom";
|
|
6
|
-
//#region node_modules/react-aria/dist/private/utils/
|
|
7
|
-
function $
|
|
8
|
-
|
|
6
|
+
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
|
|
7
|
+
function $7096878c21af5e66$export$a929f3f93e2cc67e(key, doc) {
|
|
8
|
+
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(doc);
|
|
9
|
+
let ownerDocument = $d447af545b77c9f1$export$b204af158042fbac(doc);
|
|
10
|
+
if (ownerDocument == null || ownerWindow == null) return;
|
|
11
|
+
let content = void 0;
|
|
12
|
+
let selector = `meta[name="${CSS.escape(key)}"], meta[property="${CSS.escape(key)}"]`;
|
|
13
|
+
let meta = ownerDocument.querySelector(selector);
|
|
14
|
+
if (meta && meta instanceof ownerWindow.HTMLMetaElement) {
|
|
15
|
+
if (key === "csp-nonce" && meta.nonce) content ??= meta.nonce || void 0;
|
|
16
|
+
if (meta.content) content ??= meta.content || void 0;
|
|
17
|
+
}
|
|
18
|
+
if (key === "csp-nonce") content ??= ownerWindow.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0;
|
|
19
|
+
return content;
|
|
9
20
|
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
|
|
10
23
|
var $2b2d34ff061957fb$var$nonceCache = new WeakMap();
|
|
11
24
|
function $2b2d34ff061957fb$export$2b85b721e524d74b(doc) {
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
let nonce = meta && meta instanceof $d447af545b77c9f1$export$f21a1ffae260145a(meta).HTMLMetaElement && (meta.nonce || meta.content) || $2b2d34ff061957fb$var$getWebpackNonce(d) || void 0;
|
|
17
|
-
if (nonce !== void 0) $2b2d34ff061957fb$var$nonceCache.set(d, nonce);
|
|
25
|
+
let ownerDocument = $d447af545b77c9f1$export$b204af158042fbac(doc);
|
|
26
|
+
let nonce = $2b2d34ff061957fb$var$nonceCache.get(ownerDocument);
|
|
27
|
+
nonce ??= $7096878c21af5e66$export$a929f3f93e2cc67e("csp-nonce", ownerDocument);
|
|
28
|
+
if (nonce !== void 0) $2b2d34ff061957fb$var$nonceCache.set(ownerDocument, nonce);
|
|
18
29
|
return nonce;
|
|
19
30
|
}
|
|
20
31
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { U as $23f2114a1b82827e$export$e58f029f0fbfdb29, d as $3e6197669829fe11$export$40bfa8c7b0832715, i as $d1116acdf220c2da$export$4c014de7c8940b4c, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-
|
|
2
|
+
import { U as $23f2114a1b82827e$export$e58f029f0fbfdb29, d as $3e6197669829fe11$export$40bfa8c7b0832715, i as $d1116acdf220c2da$export$4c014de7c8940b4c, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-CaY3sRjL.js";
|
|
3
3
|
import { t as $d7f64c32b702fe2c$export$86427a43e3e48ebb } from "./Hidden-C4Saxkx9.js";
|
|
4
4
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
5
|
-
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-
|
|
5
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-JidySWlU.js";
|
|
6
6
|
import { t as $191c9b6d48a0a4e2$export$294aa081a6c6f55d } from "./useField-B_ibsWst.js";
|
|
7
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, t as $860f7da480e22816$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
8
|
-
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-
|
|
7
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, t as $860f7da480e22816$export$b8473d3665f3a75a } from "./useFormValidation-CpmQEh8J.js";
|
|
8
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-Sp8-miDa.js";
|
|
9
9
|
import $3ARPR$react, { createContext, forwardRef, useState } from "react";
|
|
10
10
|
//#region node_modules/react-aria-components/dist/private/Group.mjs
|
|
11
11
|
var $3a442827418ebe87$export$f9c6924e160136d1 = createContext({});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { U as $23f2114a1b82827e$export$e58f029f0fbfdb29, i as $d1116acdf220c2da$export$4c014de7c8940b4c } from "./useHover-
|
|
2
|
+
import { U as $23f2114a1b82827e$export$e58f029f0fbfdb29, i as $d1116acdf220c2da$export$4c014de7c8940b4c } from "./useHover-CaY3sRjL.js";
|
|
3
3
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
4
|
-
import { t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-
|
|
5
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb, t as $860f7da480e22816$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
6
|
-
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
+
import { t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-CUCWcP-m.js";
|
|
5
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb, t as $860f7da480e22816$export$b8473d3665f3a75a } from "./useFormValidation-CpmQEh8J.js";
|
|
6
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-Sp8-miDa.js";
|
|
7
7
|
import { t as $4c14b02d5228be26$export$ed2feabec4a533f4 } from "./useSlot-CnQHcvd4.js";
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useHover-
|
|
1
|
+
import { d as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useHover-CaY3sRjL.js";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
|
|
4
4
|
function $fd3c5e01e837dc20$export$8042c6c013fd5226(props = {}) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @returns {T[]} The array with the items moved.
|
|
12
12
|
*/
|
|
13
|
-
export declare const arrayMoveMultiple: <T>(array: T[], fromIndices: number[], to: number, direction?:
|
|
13
|
+
export declare const arrayMoveMultiple: <T>(array: T[], fromIndices: number[], to: number, direction?: 'before' | 'after') => T[];
|
|
14
14
|
/**
|
|
15
15
|
* Fix the IDs of the items in the array to ensure they are unique and sequential.
|
|
16
16
|
* If the IDs are missing or duplicate, new IDs are generated for the items.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"use-sync-external-store": "^1.6.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@adobe/react-spectrum": "^3.47.
|
|
77
|
+
"@adobe/react-spectrum": "^3.47.5",
|
|
78
78
|
"@atom-universe/use-web-worker": "^2.2.1",
|
|
79
79
|
"@dnd-kit/abstract": "^0.5.0",
|
|
80
80
|
"@dnd-kit/dom": "^0.5.0",
|
|
81
81
|
"@dnd-kit/helpers": "^0.5.0",
|
|
82
82
|
"@dnd-kit/react": "^0.5.0",
|
|
83
|
-
"@oxlint/plugins": "1.
|
|
83
|
+
"@oxlint/plugins": "1.82.0",
|
|
84
84
|
"@react-stately/collections": "^3.13.1",
|
|
85
85
|
"@tailwindcss/vite": "^4.3.3",
|
|
86
86
|
"@thi.ng/color": "^5.8.33",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@types/react-dom": "^18.3.7",
|
|
89
89
|
"@vitejs/plugin-react": "^6.1.1",
|
|
90
90
|
"@wordpress/i18n": "^6.27.0",
|
|
91
|
-
"autoprefixer": "^10.5.
|
|
91
|
+
"autoprefixer": "^10.5.5",
|
|
92
92
|
"class-variance-authority": "^0.7.1",
|
|
93
93
|
"clsx": "^2.1.1",
|
|
94
94
|
"css-gradient-parser": "^0.0.18",
|
|
@@ -100,22 +100,22 @@
|
|
|
100
100
|
"just-kebab-case": "^4.2.0",
|
|
101
101
|
"just-throttle": "^4.2.0",
|
|
102
102
|
"lightningcss": "^1.33.0",
|
|
103
|
-
"oxfmt": "0.
|
|
104
|
-
"oxlint": "1.
|
|
103
|
+
"oxfmt": "0.67.0",
|
|
104
|
+
"oxlint": "1.82.0",
|
|
105
105
|
"oxlint-tsgolint": "7.0.2001",
|
|
106
|
-
"postcss": "^8.5.
|
|
106
|
+
"postcss": "^8.5.28",
|
|
107
107
|
"react": "^18.3.1",
|
|
108
|
-
"react-aria": "^3.
|
|
109
|
-
"react-aria-components": "^1.
|
|
108
|
+
"react-aria": "^3.52.1",
|
|
109
|
+
"react-aria-components": "^1.21.1",
|
|
110
110
|
"react-dom": "^18.3.1",
|
|
111
111
|
"react-jsx-parser": "^2.4.1",
|
|
112
112
|
"react-movable": "^3.4.1",
|
|
113
|
-
"react-stately": "^3.
|
|
113
|
+
"react-stately": "^3.50.0",
|
|
114
114
|
"svg-to-jsx-string": "^0.1.1",
|
|
115
115
|
"tailwindcss": "^4.3.3",
|
|
116
116
|
"tailwindcss-motion": "^1.1.1",
|
|
117
117
|
"tailwindcss-react-aria-components": "^2.2.0",
|
|
118
|
-
"typescript": "^
|
|
118
|
+
"typescript": "^7.0.2",
|
|
119
119
|
"vite": "^8.2.2",
|
|
120
120
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
121
121
|
},
|
|
@@ -124,6 +124,6 @@
|
|
|
124
124
|
"@fontsource/geist": "^5.3.0",
|
|
125
125
|
"@fontsource/geist-mono": "^5.3.0",
|
|
126
126
|
"html-entities": "^2.6.0",
|
|
127
|
-
"motion": "^13.
|
|
127
|
+
"motion": "^13.2.0"
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { f as $fe16bffc7a557bf0$export$7f54fc3180508a52 } from "./useHover-CbyH227W.js";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
|
|
4
|
-
function $600b3cf69ae46262$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
5
|
-
let handleEvent = $fe16bffc7a557bf0$export$7f54fc3180508a52(handler);
|
|
6
|
-
let isDisabled = handler == null;
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
if (isDisabled || !ref.current) return;
|
|
9
|
-
let element = ref.current;
|
|
10
|
-
element.addEventListener(event, handleEvent, options);
|
|
11
|
-
return () => {
|
|
12
|
-
element.removeEventListener(event, handleEvent, options);
|
|
13
|
-
};
|
|
14
|
-
}, [
|
|
15
|
-
ref,
|
|
16
|
-
event,
|
|
17
|
-
options,
|
|
18
|
-
isDisabled
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { $600b3cf69ae46262$export$90fc3a17d93f704c as t };
|