@eightshift/ui-components 8.4.0 → 8.4.1
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-Dqkum3dO.js → Autocomplete-DWofaS1k.js} +3 -3
- package/dist/{Button-DHgs_rCq.js → Button-DcI8gSfH.js} +5 -5
- package/dist/{Dialog-CldDJ_4u.js → Dialog-CSqjSLlO.js} +119 -47
- package/dist/{Disclosure-BHNgL5Is.js → Disclosure-CkaUMe7J.js} +5 -5
- package/dist/{FocusScope-CUuL5wjz.js → FocusScope-DLpr7Rq0.js} +1 -1
- package/dist/{ListBox-CZXso3mJ.js → ListBox-D8_U8eBS.js} +8 -8
- package/dist/{NumberFormatter-Bwdv413k.js → NumberFormatter-BbOYa3Kg.js} +0 -34
- package/dist/{RadioGroup-BTByPMrl.js → RadioGroup-BZkgf6tl.js} +8 -8
- package/dist/{SearchField-DkX1vqMN.js → SearchField-N1nXzeWK.js} +5 -5
- package/dist/{Slider-Dw-JjfLx.js → Slider-Dryu0gH7.js} +7 -7
- package/dist/{VisuallyHidden-ZZwHZDro.js → VisuallyHidden-2DfCzdKo.js} +1 -1
- package/dist/animation-COu1iBGW.js +65 -0
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/{button-ldR_tlvk.js → button-NgEJ1eT2.js} +5 -5
- package/dist/{checkbox-DDyLJRY8.js → checkbox-DfZDR444.js} +7 -7
- package/dist/{color-swatch-DmhdOhe4.js → color-swatch-CEYPwPsn.js} +6 -5
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +3 -3
- package/dist/components/contextual-help/contextual-help.js +2 -2
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/expandable/expandable.js +2 -2
- package/dist/components/index.js +14 -14
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +2 -2
- package/dist/components/popover/popover.js +3 -3
- package/dist/components/prompt-popover/prompt-popover.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +1 -1
- package/dist/components/responsive/mini-responsive.js +2 -2
- package/dist/components/responsive/responsive-legacy.js +3 -3
- package/dist/components/responsive/responsive.js +3 -3
- package/dist/components/select/async-multi-select.js +8 -8
- package/dist/components/select/async-select.js +8 -8
- package/dist/components/select/multi-select.js +9 -9
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +9 -9
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/smart-image/smart-image.js +2 -2
- package/dist/components/tabs/tabs.js +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.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-oS68xcYX.js → draggable-CE4MJU75.js} +248 -85
- package/dist/{filterDOMProps-CgeMQsGa.js → filterDOMProps-BV6v3Ytq.js} +2 -1
- package/dist/getMetaValue-Cpc6U0mQ.js +18 -0
- package/dist/{gradient-editor-DP8ioFX1.js → gradient-editor-CO1iXPM9.js} +4 -4
- package/dist/icons/icon.d.ts +2 -2
- package/dist/icons/icon.js +6 -10
- package/dist/index.js +14 -14
- package/dist/{input-field-C-XvZeCZ.js → input-field-msAE2llt.js} +5 -5
- package/dist/keyboard-DwWaJveG.js +205 -0
- package/dist/{link-input-DdwuqoMg.js → link-input-D1BWznvA.js} +27 -17
- package/dist/{modal-DZco5MDu.js → modal-DPHjb2V4.js} +81 -33
- package/dist/{number-picker-XqKW0BNi.js → number-picker-Dqwxp_2B.js} +5 -5
- package/dist/{react-O71mlJXS.js → react-c-t8odpE.js} +6723 -5493
- package/dist/{shared-YXMIX2ka.js → shared-s7XUBOVx.js} +12 -12
- package/dist/{solid-color-picker-D5LEdmDM.js → solid-color-picker-CDrcphjC.js} +10 -10
- package/dist/{switch-Bo6nmed_.js → switch-bqIILR_c.js} +6 -6
- package/dist/{tabs-DE-qb7Kt.js → tabs-DvGKX3V7.js} +7 -7
- package/dist/{textSelection-C17LWYmO.js → textSelection-BYhA9uWK.js} +1 -1
- package/dist/{toggle-button-Cb4yCEua.js → toggle-button-g3dLI2F1.js} +6 -6
- package/dist/{tooltip-CT-vzIdz.js → tooltip-Dd1nNj0_.js} +4 -4
- package/dist/{useButton-V65TBDGM.js → useButton-BO_4n6_e.js} +3 -3
- package/dist/{useCollection-DqUS7tjk.js → useCollection-BVUc8URe.js} +17 -7
- package/dist/{useEvent-C9zwSNzZ.js → useEvent-5yhOs2HC.js} +1 -1
- package/dist/{useFilter-C75IzdIZ.js → useFilter-Yp-QyW1S.js} +1 -1
- package/dist/{useFocusRing-JidySWlU.js → useFocusRing-DxPoGWMJ.js} +1 -1
- package/dist/{useFormReset-Sp8-miDa.js → useFormReset-DFy_BhX1.js} +1 -1
- package/dist/{useFormValidation-CpmQEh8J.js → useFormValidation-CZPIMeNw.js} +1 -1
- package/dist/{useHover-CaY3sRjL.js → useHover-DgudzTcf.js} +54 -90
- package/dist/{useListState-CzB3v6M9.js → useListState-DTn91yqB.js} +1 -1
- package/dist/{useNumberFieldState-DC3XY3DQ.js → useNumberFieldState-D-Bsp98Z.js} +10 -10
- package/dist/{useNumberFormatter-DbAt_fC_.js → useNumberFormatter-DNUGdm93.js} +1 -1
- package/dist/{useOverlayTriggerState-BKmSTK_5.js → useOverlayTriggerState-uzs8mam6.js} +2 -2
- package/dist/{usePress-CUCWcP-m.js → usePress-BpGYwCwy.js} +3 -18
- package/dist/{useTextField-C3QIkMON.js → useTextField-C9dxy3po.js} +5 -5
- package/dist/{useToggle-bbGRUbo4.js → useToggle-CudcGIyz.js} +5 -5
- package/dist/{useToggleState-D_rLMrVW.js → useToggleState-CYfSFy4b.js} +1 -1
- package/package.json +21 -21
- package/dist/animation-COc9P6ap.js +0 -60
- package/dist/keyboard-Cdqi5ZQQ.js +0 -55
|
@@ -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-DgudzTcf.js";
|
|
3
3
|
import { t as $d7f64c32b702fe2c$export$86427a43e3e48ebb } from "./Hidden-C4Saxkx9.js";
|
|
4
|
-
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-
|
|
5
|
-
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-
|
|
4
|
+
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BV6v3Ytq.js";
|
|
5
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-DxPoGWMJ.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-CZPIMeNw.js";
|
|
8
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-DFy_BhX1.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-
|
|
3
|
-
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-
|
|
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-
|
|
2
|
+
import { U as $23f2114a1b82827e$export$e58f029f0fbfdb29, i as $d1116acdf220c2da$export$4c014de7c8940b4c } from "./useHover-DgudzTcf.js";
|
|
3
|
+
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BV6v3Ytq.js";
|
|
4
|
+
import { t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-BpGYwCwy.js";
|
|
5
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb, t as $860f7da480e22816$export$b8473d3665f3a75a } from "./useFormValidation-CZPIMeNw.js";
|
|
6
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-DFy_BhX1.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-DgudzTcf.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 = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -74,25 +74,25 @@
|
|
|
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.7",
|
|
78
78
|
"@atom-universe/use-web-worker": "^2.2.1",
|
|
79
|
-
"@dnd-kit/abstract": "^0.5.
|
|
80
|
-
"@dnd-kit/dom": "^0.5.
|
|
81
|
-
"@dnd-kit/helpers": "^0.5.
|
|
82
|
-
"@dnd-kit/react": "^0.5.
|
|
83
|
-
"@oxlint/plugins": "1.
|
|
79
|
+
"@dnd-kit/abstract": "^0.5.1",
|
|
80
|
+
"@dnd-kit/dom": "^0.5.1",
|
|
81
|
+
"@dnd-kit/helpers": "^0.5.1",
|
|
82
|
+
"@dnd-kit/react": "^0.5.1",
|
|
83
|
+
"@oxlint/plugins": "1.89.0",
|
|
84
84
|
"@react-stately/collections": "^3.13.1",
|
|
85
85
|
"@tailwindcss/vite": "^4.3.3",
|
|
86
86
|
"@thi.ng/color": "^5.8.33",
|
|
87
87
|
"@types/react": "^18.3.31",
|
|
88
88
|
"@types/react-dom": "^18.3.7",
|
|
89
|
-
"@vitejs/plugin-react": "^6.1.
|
|
90
|
-
"@wordpress/i18n": "^
|
|
91
|
-
"autoprefixer": "^10.
|
|
89
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
90
|
+
"@wordpress/i18n": "^7.0.0",
|
|
91
|
+
"autoprefixer": "^10.6.1",
|
|
92
92
|
"class-variance-authority": "^0.7.1",
|
|
93
93
|
"clsx": "^2.1.1",
|
|
94
94
|
"css-gradient-parser": "^0.0.18",
|
|
95
|
-
"eslint-plugin-better-tailwindcss": "4.
|
|
95
|
+
"eslint-plugin-better-tailwindcss": "4.10.0",
|
|
96
96
|
"glob": "^13.0.6",
|
|
97
97
|
"just-camel-case": "^6.2.0",
|
|
98
98
|
"just-debounce-it": "^3.2.0",
|
|
@@ -101,30 +101,30 @@
|
|
|
101
101
|
"just-kebab-case": "^4.2.0",
|
|
102
102
|
"just-throttle": "^4.2.0",
|
|
103
103
|
"lightningcss": "^1.33.0",
|
|
104
|
-
"oxfmt": "0.
|
|
105
|
-
"oxlint": "1.
|
|
106
|
-
"oxlint-tsgolint": "7.0.
|
|
107
|
-
"postcss": "^8.5.
|
|
104
|
+
"oxfmt": "0.74.0",
|
|
105
|
+
"oxlint": "1.89.0",
|
|
106
|
+
"oxlint-tsgolint": "7.0.2004",
|
|
107
|
+
"postcss": "^8.5.31",
|
|
108
108
|
"react": "^18.3.1",
|
|
109
|
-
"react-aria": "^3.
|
|
110
|
-
"react-aria-components": "^1.
|
|
109
|
+
"react-aria": "^3.53.1",
|
|
110
|
+
"react-aria-components": "^1.22.1",
|
|
111
111
|
"react-dom": "^18.3.1",
|
|
112
112
|
"react-jsx-parser": "^2.4.1",
|
|
113
113
|
"react-movable": "^3.4.1",
|
|
114
|
-
"react-stately": "^3.
|
|
114
|
+
"react-stately": "^3.51.0",
|
|
115
115
|
"svg-to-jsx-string": "^0.1.1",
|
|
116
116
|
"tailwindcss": "^4.3.3",
|
|
117
117
|
"tailwindcss-motion": "^1.1.1",
|
|
118
118
|
"tailwindcss-react-aria-components": "^2.2.0",
|
|
119
119
|
"typescript": "^7.0.2",
|
|
120
|
-
"vite": "^8.
|
|
120
|
+
"vite": "^8.3.5",
|
|
121
121
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
122
122
|
},
|
|
123
123
|
"dependencies": {
|
|
124
|
-
"@fontsource-variable/google-sans-flex": "^5.3.
|
|
124
|
+
"@fontsource-variable/google-sans-flex": "^5.3.2",
|
|
125
125
|
"@fontsource/geist": "^5.3.0",
|
|
126
126
|
"@fontsource/geist-mono": "^5.3.0",
|
|
127
127
|
"html-entities": "^2.6.0",
|
|
128
|
-
"motion": "^
|
|
128
|
+
"motion": "^14.5.0"
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { useCallback, useState } from "react";
|
|
3
|
-
import { flushSync } from "react-dom";
|
|
4
|
-
//#region node_modules/react-aria/dist/private/utils/animation.mjs
|
|
5
|
-
function $fcc7165e876206c6$export$6d3443f2c48bfc20(ref, isReady = true) {
|
|
6
|
-
let [isEntering, setEntering] = useState(true);
|
|
7
|
-
let isAnimationReady = isEntering && isReady;
|
|
8
|
-
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
9
|
-
if (isAnimationReady && ref.current && "getAnimations" in ref.current) {
|
|
10
|
-
for (let animation of ref.current.getAnimations()) if (animation instanceof CSSTransition) animation.cancel();
|
|
11
|
-
}
|
|
12
|
-
}, [ref, isAnimationReady]);
|
|
13
|
-
$fcc7165e876206c6$var$useAnimation(ref, isAnimationReady, useCallback(() => setEntering(false), []));
|
|
14
|
-
return isAnimationReady;
|
|
15
|
-
}
|
|
16
|
-
function $fcc7165e876206c6$export$45fda7c47f93fd48(ref, isOpen) {
|
|
17
|
-
let [exitState, setExitState] = useState(isOpen ? "open" : "closed");
|
|
18
|
-
switch (exitState) {
|
|
19
|
-
case "open":
|
|
20
|
-
if (!isOpen) setExitState("exiting");
|
|
21
|
-
break;
|
|
22
|
-
case "closed":
|
|
23
|
-
case "exiting": if (isOpen) setExitState("open");
|
|
24
|
-
}
|
|
25
|
-
let isExiting = exitState === "exiting";
|
|
26
|
-
$fcc7165e876206c6$var$useAnimation(ref, isExiting, useCallback(() => {
|
|
27
|
-
setExitState((state) => state === "exiting" ? "closed" : state);
|
|
28
|
-
}, []));
|
|
29
|
-
return isExiting;
|
|
30
|
-
}
|
|
31
|
-
function $fcc7165e876206c6$var$useAnimation(ref, isActive, onEnd) {
|
|
32
|
-
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
33
|
-
if (isActive && ref.current) {
|
|
34
|
-
if (!("getAnimations" in ref.current)) {
|
|
35
|
-
onEnd();
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
let animations = ref.current.getAnimations();
|
|
39
|
-
if (animations.length === 0) {
|
|
40
|
-
onEnd();
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
let canceled = false;
|
|
44
|
-
Promise.allSettled(animations.map((a) => a.finished)).then(() => {
|
|
45
|
-
if (!canceled) flushSync(() => {
|
|
46
|
-
onEnd();
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
return () => {
|
|
50
|
-
canceled = true;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}, [
|
|
54
|
-
ref,
|
|
55
|
-
isActive,
|
|
56
|
-
onEnd
|
|
57
|
-
]);
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
|
-
export { $fcc7165e876206c6$export$6d3443f2c48bfc20 as n, $fcc7165e876206c6$export$45fda7c47f93fd48 as t };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { O as $2add3ce32c6007eb$export$9ac100e40613ea10, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, q as $d447af545b77c9f1$export$b204af158042fbac } from "./useHover-CaY3sRjL.js";
|
|
2
|
-
//#region node_modules/react-aria/dist/private/utils/constants.mjs
|
|
3
|
-
var $8b2399d051d06d4c$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
4
|
-
var $8b2399d051d06d4c$export$831c820ad60f9d12 = "react-aria-focus";
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
|
|
7
|
-
function $b72f3f7b3b5f42c6$export$76e4e37e5339496d(to) {
|
|
8
|
-
let from = $b72f3f7b3b5f42c6$export$759df0d867455a91($d447af545b77c9f1$export$b204af158042fbac(to));
|
|
9
|
-
if (from !== to) {
|
|
10
|
-
if (from) $b72f3f7b3b5f42c6$export$6c5dc7e81d2cc29a(from, to);
|
|
11
|
-
if (to) $b72f3f7b3b5f42c6$export$2b35b76d2e30e129(to, from);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
function $b72f3f7b3b5f42c6$export$6c5dc7e81d2cc29a(from, to) {
|
|
15
|
-
from.dispatchEvent(new FocusEvent("blur", { relatedTarget: to }));
|
|
16
|
-
from.dispatchEvent(new FocusEvent("focusout", {
|
|
17
|
-
bubbles: true,
|
|
18
|
-
relatedTarget: to
|
|
19
|
-
}));
|
|
20
|
-
}
|
|
21
|
-
function $b72f3f7b3b5f42c6$export$2b35b76d2e30e129(to, from) {
|
|
22
|
-
to.dispatchEvent(new FocusEvent("focus", { relatedTarget: from }));
|
|
23
|
-
to.dispatchEvent(new FocusEvent("focusin", {
|
|
24
|
-
bubbles: true,
|
|
25
|
-
relatedTarget: from
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
function $b72f3f7b3b5f42c6$export$759df0d867455a91(document) {
|
|
29
|
-
let activeElement = $23f2114a1b82827e$export$cd4e5573fbe2b576(document);
|
|
30
|
-
let activeDescendant = activeElement?.getAttribute("aria-activedescendant");
|
|
31
|
-
if (activeDescendant) return document.getElementById(activeDescendant) || activeElement;
|
|
32
|
-
return activeElement;
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
|
|
36
|
-
function $bb39c0fc1c19b34c$export$16792effe837dba3(e) {
|
|
37
|
-
if ($2add3ce32c6007eb$export$9ac100e40613ea10()) return e.metaKey;
|
|
38
|
-
return e.ctrlKey;
|
|
39
|
-
}
|
|
40
|
-
var $bb39c0fc1c19b34c$var$nonTextInputTypes = new Set([
|
|
41
|
-
"checkbox",
|
|
42
|
-
"radio",
|
|
43
|
-
"range",
|
|
44
|
-
"color",
|
|
45
|
-
"file",
|
|
46
|
-
"image",
|
|
47
|
-
"button",
|
|
48
|
-
"submit",
|
|
49
|
-
"reset"
|
|
50
|
-
]);
|
|
51
|
-
function $bb39c0fc1c19b34c$export$c57958e35f31ed73(target) {
|
|
52
|
-
return target instanceof HTMLInputElement && !$bb39c0fc1c19b34c$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
export { $b72f3f7b3b5f42c6$export$759df0d867455a91 as a, $8b2399d051d06d4c$export$831c820ad60f9d12 as c, $b72f3f7b3b5f42c6$export$6c5dc7e81d2cc29a as i, $bb39c0fc1c19b34c$export$c57958e35f31ed73 as n, $b72f3f7b3b5f42c6$export$76e4e37e5339496d as o, $b72f3f7b3b5f42c6$export$2b35b76d2e30e129 as r, $8b2399d051d06d4c$export$447a38995de2c711 as s, $bb39c0fc1c19b34c$export$16792effe837dba3 as t };
|