@eightshift/ui-components 6.0.12 → 6.1.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-JRIu2BnS.js → Button-BTCA69Lt.js} +9 -9
- package/dist/{Dialog-Dd1yqNus.js → Dialog-BbNWvB5_.js} +76 -57
- package/dist/{FieldError-DmVwL6Dj.js → FieldError-BPG0hKfB.js} +2 -2
- package/dist/{FocusScope-Dri1oBcH.js → FocusScope-BxT4xfe9.js} +6 -7
- package/dist/{Heading-eA6LXIKB.js → Heading-CY-_gt-U.js} +2 -2
- package/dist/{Input-Cuw9UbNb.js → Input-Wrnm2nxy.js} +8 -8
- package/dist/{Label-DPWyf-gp.js → Label-BDlf9vIY.js} +3 -2
- package/dist/{ListBox-DT1sFY3e.js → ListBox-yHUyUAAH.js} +28 -26
- package/dist/{OverlayArrow-DVJTTfZM.js → OverlayArrow-NzRV9wsn.js} +7 -7
- package/dist/{RadioGroup-Cp5cdBI_.js → RadioGroup-BFDueqHz.js} +14 -14
- package/dist/{SearchField-CLhr5PGZ.js → SearchField-CmRhtrQf.js} +12 -12
- package/dist/{SelectionManager-DbBiF5M8.js → SelectionManager-VgpR-1Ri.js} +33 -29
- package/dist/{Slider-CZV3HhHY.js → Slider-Bl5G0ZHE.js} +16 -15
- package/dist/{Text-Dae33gHp.js → Text-CjFEHSfr.js} +3 -2
- package/dist/{VisuallyHidden-eaCBtXhE.js → VisuallyHidden-DXVaR_RC.js} +2 -2
- package/dist/{animation-DY7CNkr6.js → animation-B2sADg3I.js} +1 -1
- package/dist/assets/style-admin.css +1438 -1448
- package/dist/assets/style-editor.css +1438 -1448
- package/dist/assets/style.css +1438 -1448
- package/dist/assets/wp-overrides/fix-label-text-case.css +7 -7
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +36 -36
- package/dist/assets/wp-overrides/restyle-tooltips.css +56 -56
- package/dist/assets/wp-overrides/round-corners.css +43 -43
- package/dist/{color-swatch-CZj0jHZd.js → color-swatch-DtaLObbd.js} +4 -4
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +9 -9
- package/dist/components/checkbox/checkbox.js +10 -10
- 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 +26 -22
- package/dist/components/draggable/draggable.js +4 -5
- package/dist/components/expandable/expandable.js +8 -8
- package/dist/components/index.js +4 -2
- package/dist/components/input-field/input-field.js +10 -10
- package/dist/components/link-input/link-input.js +24 -23
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/modal/modal.js +19 -20
- package/dist/components/number-picker/number-picker.js +10 -10
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-picker-shell.js +48 -42
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/responsive/mini-responsive.js +1 -1
- package/dist/components/select/async-multi-select.js +7 -7
- package/dist/components/select/async-select.js +7 -7
- package/dist/components/select/multi-select.js +8 -8
- package/dist/components/select/shared.js +3 -3
- package/dist/components/select/single-select.js +8 -8
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/smart-image/image-analysis-worker-next.js +144 -0
- package/dist/components/smart-image/smart-image-next.js +294 -0
- package/dist/components/tabs/tabs.js +15 -14
- package/dist/components/toggle/switch.js +7 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +10 -7
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/{context-DYYO3Ns3.js → context-iUFQCK8m.js} +1 -1
- package/dist/icons/icons.js +2 -2
- package/dist/index.js +3 -1
- package/dist/{proxy-CcjltLEW.js → proxy-CgLBbUpw.js} +4189 -3959
- package/dist/{shared-Bg9lx3pE.js → shared-DSTKnPjF.js} +27 -24
- package/dist/{textSelection-Cq_Br7RW.js → textSelection-D_BSbtab.js} +1 -1
- package/dist/{useButton-CeuyDay5.js → useButton-DofKjCES.js} +3 -3
- package/dist/{useEvent-DoWvho2u.js → useEvent-ADVZr4I3.js} +1 -1
- package/dist/{useFilter-DYtfYPua.js → useFilter-Cqw0-KoB.js} +1 -1
- package/dist/{useFocusRing-WEswknAY.js → useFocusRing-Ct2N5S1b.js} +10 -5
- package/dist/{useFormReset-BDF1K4E4.js → useFormReset-KT27O1en.js} +1 -1
- package/dist/{useFormValidation-Dqzjv4jX.js → useFormValidation-DwbcW-pN.js} +2 -2
- package/dist/{useHover-CG39Ci3A.js → useHover-VPZwb-1l.js} +15 -14
- package/dist/{useLabel--3fT2XKM.js → useLabel-DzXzKZZZ.js} +2 -2
- package/dist/{useLabels-vzdDMGCX.js → useLabels-D8O3gOdV.js} +1 -1
- package/dist/{useListState-Bya9g7W8.js → useListState-jHobZH6F.js} +1 -1
- package/dist/{useLocalizedStringFormatter-M3L6Ge2c.js → useLocalizedStringFormatter-CEDs0LsA.js} +1 -1
- package/dist/{useNumberField-D6lsi3Vu.js → useNumberField-CrLevIP3.js} +50 -40
- package/dist/{useNumberFormatter-BWOyCamK.js → useNumberFormatter-CG_IQXp9.js} +1 -1
- package/dist/{usePress-B9w0X4Ur.js → usePress-BPCda-AF.js} +13 -7
- package/dist/{useSingleSelectListState-D9SqGLJ0.js → useSingleSelectListState-sLg_MnX8.js} +2 -2
- package/dist/{useToggle-Deq2xxQV.js → useToggle-D0-c9HPm.js} +4 -4
- package/dist/{useToggleState-j3o1PvdS.js → useToggleState-BhJn-Dz7.js} +1 -1
- package/dist/{utils-HC9_3Crc.js → utils-Cr3pLd9c.js} +77 -38
- package/package.json +24 -24
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
2
|
import { _ as __ } from "./default-i18n-CnQeC5Pl.js";
|
|
3
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-
|
|
4
|
-
import { c as $eed445e0843c11d0$export$7ff8f37d2d81a48d, d as $eed445e0843c11d0$export$7c5906fe4f1f2af2, e as $eed445e0843c11d0$export$a11e76429ed99b4 } from "./ListBox-
|
|
5
|
-
import {
|
|
6
|
-
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-
|
|
3
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-BTCA69Lt.js";
|
|
4
|
+
import { c as $eed445e0843c11d0$export$7ff8f37d2d81a48d, d as $eed445e0843c11d0$export$7c5906fe4f1f2af2, e as $eed445e0843c11d0$export$a11e76429ed99b4 } from "./ListBox-yHUyUAAH.js";
|
|
5
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, o as $ff5963eb1fccf552$export$e08e3b67e392101e, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, e as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$df3a06d6289f983e, f as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, g as $64fa3d84918910a7$export$ef03459518577ad4, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "./utils-Cr3pLd9c.js";
|
|
6
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-BPG0hKfB.js";
|
|
7
7
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-Cq3fu75_.js";
|
|
8
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
9
|
-
import { i as $325a3faab7a68acd$export$a16aca283550c30d, t as $2a25aae57d74318e$export$a05409b8bb224a5a, w as $168583247155ddda$export$dc9c12ed27dd1b49, n as $de32f1b87079253c$export$d2f961adcb0afbe, x as $07b14b47974efb58$export$9b9a0cd73afb7ca4 } from "./Dialog-
|
|
10
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
11
|
-
import { s as $fb3050f43d946246$export$e32c88dfddc6e1d8, g as $e1995378a142960e$export$bf788dd355e3a401 } from "./SelectionManager-
|
|
8
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-BDlf9vIY.js";
|
|
9
|
+
import { i as $325a3faab7a68acd$export$a16aca283550c30d, t as $2a25aae57d74318e$export$a05409b8bb224a5a, w as $168583247155ddda$export$dc9c12ed27dd1b49, n as $de32f1b87079253c$export$d2f961adcb0afbe, x as $07b14b47974efb58$export$9b9a0cd73afb7ca4 } from "./Dialog-BbNWvB5_.js";
|
|
10
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-CjFEHSfr.js";
|
|
11
|
+
import { s as $fb3050f43d946246$export$e32c88dfddc6e1d8, g as $e1995378a142960e$export$bf788dd355e3a401 } from "./SelectionManager-VgpR-1Ri.js";
|
|
12
12
|
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-Rfj-STx7.js";
|
|
13
13
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
14
|
-
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, d as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-
|
|
14
|
+
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, d as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-NzRV9wsn.js";
|
|
15
15
|
import $dbSRa$react__default, { useMemo, useRef, useCallback, useState, forwardRef, createContext, useContext, Fragment } from "react";
|
|
16
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
17
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
18
|
-
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-
|
|
19
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
20
|
-
import { w as $507fabe10e71c6fb$export$8397ddfc504fdb9a, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
21
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
22
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
23
|
-
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "./VisuallyHidden-
|
|
16
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-iUFQCK8m.js";
|
|
17
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CEDs0LsA.js";
|
|
18
|
+
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-DwbcW-pN.js";
|
|
19
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-jHobZH6F.js";
|
|
20
|
+
import { g as $d4ee10de306f2510$export$4282f70798064fe0, w as $507fabe10e71c6fb$export$8397ddfc504fdb9a, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-VPZwb-1l.js";
|
|
21
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Ct2N5S1b.js";
|
|
22
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-KT27O1en.js";
|
|
23
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "./VisuallyHidden-DXVaR_RC.js";
|
|
24
24
|
import { icons } from "./icons/icons.js";
|
|
25
25
|
import "./react-jsx-parser.min-B_hvYYa1.js";
|
|
26
26
|
import { c as clsx } from "./clsx-DgYk2OaC.js";
|
|
@@ -143,7 +143,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
|
|
|
143
143
|
disallowEmptySelection: true,
|
|
144
144
|
linkBehavior: "selection",
|
|
145
145
|
onBlur: (e) => {
|
|
146
|
-
if (e.currentTarget
|
|
146
|
+
if ($d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.relatedTarget)) return;
|
|
147
147
|
if (props.onBlur) props.onBlur(e);
|
|
148
148
|
if (props.onFocusChange) props.onFocusChange(false);
|
|
149
149
|
state.setFocused(false);
|
|
@@ -232,6 +232,9 @@ function $bdd25dc72710631f$export$cbd84cdb2e668835(props) {
|
|
|
232
232
|
...props,
|
|
233
233
|
selectRef: state.collection.size <= 300 ? selectRef : inputRef
|
|
234
234
|
}, state, triggerRef);
|
|
235
|
+
let values = Array.isArray(state.value) ? state.value : [
|
|
236
|
+
state.value
|
|
237
|
+
];
|
|
235
238
|
if (state.collection.size <= 300) return /* @__PURE__ */ $dbSRa$react__default.createElement("div", {
|
|
236
239
|
...containerProps,
|
|
237
240
|
"data-testid": "hidden-select-container"
|
|
@@ -246,13 +249,13 @@ function $bdd25dc72710631f$export$cbd84cdb2e668835(props) {
|
|
|
246
249
|
key: item.key,
|
|
247
250
|
value: item.key
|
|
248
251
|
}, item.textValue);
|
|
249
|
-
}))
|
|
252
|
+
}), state.collection.size === 0 && name && values.map((value, i) => /* @__PURE__ */ $dbSRa$react__default.createElement("option", {
|
|
253
|
+
key: i,
|
|
254
|
+
value: value !== null && value !== void 0 ? value : ""
|
|
255
|
+
})))));
|
|
250
256
|
else if (name) {
|
|
251
257
|
let data = $58aed456727eb0f3$export$703601b7e90536f8.get(state) || {};
|
|
252
258
|
let { validationBehavior } = data;
|
|
253
|
-
let values = Array.isArray(state.value) ? state.value : [
|
|
254
|
-
state.value
|
|
255
|
-
];
|
|
256
259
|
if (values.length === 0) values = [
|
|
257
260
|
null
|
|
258
261
|
];
|
|
@@ -837,7 +840,7 @@ function $82d7e5349645de74$var$SelectInner({ props, selectRef: ref, collection }
|
|
|
837
840
|
validation
|
|
838
841
|
]
|
|
839
842
|
]
|
|
840
|
-
}, /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
843
|
+
}, /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
841
844
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, focusProps),
|
|
842
845
|
ref,
|
|
843
846
|
slot: props.slot || void 0,
|
|
@@ -928,7 +931,7 @@ const $82d7e5349645de74$export$e288731fd71264f0 = /* @__PURE__ */ $f39a9eba43920
|
|
|
928
931
|
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
929
932
|
global: true
|
|
930
933
|
});
|
|
931
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
934
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.span, {
|
|
932
935
|
ref,
|
|
933
936
|
...DOMProps,
|
|
934
937
|
...renderProps,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as $c87311424ea30a05$export$fedb369cb70207f1, d as $431fbd86ca7dc216$export$b204af158042fbac, e as $bbed8b41f857bcc0$export$24490316f764c430 } from "./useHover-
|
|
1
|
+
import { c as $c87311424ea30a05$export$fedb369cb70207f1, d as $431fbd86ca7dc216$export$b204af158042fbac, e as $bbed8b41f857bcc0$export$24490316f764c430 } from "./useHover-VPZwb-1l.js";
|
|
2
2
|
let $14c0b72509d70225$var$state = "default";
|
|
3
3
|
let $14c0b72509d70225$var$savedUserSelect = "";
|
|
4
4
|
let $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-Cr3pLd9c.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
3
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
4
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-
|
|
3
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-BPCda-AF.js";
|
|
4
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-VPZwb-1l.js";
|
|
5
5
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
6
6
|
let { elementType = "button", isDisabled, onPress, onPressStart, onPressEnd, onPressUp, onPressChange, preventFocusOnPress, allowFocusWhenDisabled, onClick, href, target, rel, type = "button" } = props;
|
|
7
7
|
let additionalProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useHover-
|
|
1
|
+
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useHover-VPZwb-1l.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
4
4
|
let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as $325a3faab7a68acd$export$a16aca283550c30d } from "./Dialog-
|
|
1
|
+
import { i as $325a3faab7a68acd$export$a16aca283550c30d } from "./Dialog-BbNWvB5_.js";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
4
4
|
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, g as $
|
|
1
|
+
import { f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, g as $d4ee10de306f2510$export$4282f70798064fe0, h as $8a9cb279dc87e130$export$715c682d09d639cc, d as $431fbd86ca7dc216$export$b204af158042fbac, i as $d4ee10de306f2510$export$cd4e5573fbe2b576, j as $d4ee10de306f2510$export$e58f029f0fbfdb29, k as $8a9cb279dc87e130$export$c2b7abe5d61ec696, l as $8a9cb279dc87e130$export$525bc4921d56d4a, m as $507fabe10e71c6fb$export$b9b3dfddab17db27, n as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useHover-VPZwb-1l.js";
|
|
2
2
|
import { useRef, useCallback, useState } from "react";
|
|
3
3
|
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
4
4
|
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
@@ -7,8 +7,8 @@ function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
|
7
7
|
});
|
|
8
8
|
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
9
9
|
let onBlur = useCallback((e) => {
|
|
10
|
-
if (
|
|
11
|
-
if (state.current.isFocusWithin &&
|
|
10
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) return;
|
|
11
|
+
if (state.current.isFocusWithin && !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.relatedTarget)) {
|
|
12
12
|
state.current.isFocusWithin = false;
|
|
13
13
|
removeAllGlobalListeners();
|
|
14
14
|
if (onBlurWithin) onBlurWithin(e);
|
|
@@ -22,7 +22,7 @@ function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
|
22
22
|
]);
|
|
23
23
|
let onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
24
24
|
let onFocus = useCallback((e) => {
|
|
25
|
-
if (
|
|
25
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) return;
|
|
26
26
|
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target);
|
|
27
27
|
const activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
28
28
|
if (!state.current.isFocusWithin && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
|
|
@@ -76,6 +76,7 @@ function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
|
76
76
|
let updateState = useCallback(() => setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);
|
|
77
77
|
let onFocusChange = useCallback((isFocused2) => {
|
|
78
78
|
state.current.isFocused = isFocused2;
|
|
79
|
+
state.current.isFocusVisible = $507fabe10e71c6fb$export$b9b3dfddab17db27();
|
|
79
80
|
setFocused(isFocused2);
|
|
80
81
|
updateState();
|
|
81
82
|
}, [
|
|
@@ -84,7 +85,11 @@ function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
|
84
85
|
$507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible) => {
|
|
85
86
|
state.current.isFocusVisible = isFocusVisible;
|
|
86
87
|
updateState();
|
|
87
|
-
}, [
|
|
88
|
+
}, [
|
|
89
|
+
isTextInput,
|
|
90
|
+
isFocused
|
|
91
|
+
], {
|
|
92
|
+
enabled: isFocused,
|
|
88
93
|
isTextInput
|
|
89
94
|
});
|
|
90
95
|
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useHover-
|
|
1
|
+
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./useHover-VPZwb-1l.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
|
|
4
4
|
let handleReset = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo, useContext, createContext, useState, useRef, useEffect } from "react";
|
|
2
|
-
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, w as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useHover-
|
|
3
|
-
import {
|
|
2
|
+
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, w as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useHover-VPZwb-1l.js";
|
|
3
|
+
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-Cr3pLd9c.js";
|
|
4
4
|
const $e5be200c675c3b3a$export$aca958c65c314e6c = {
|
|
5
5
|
badInput: false,
|
|
6
6
|
customError: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, m as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $df56164dff5785e2$export$4338b53315abf666, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-Cr3pLd9c.js";
|
|
2
2
|
import $dbSRa$react__default, { useContext, createContext, useRef, useCallback, useEffect, useState, useReducer, useMemo } from "react";
|
|
3
3
|
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
4
4
|
var _el_ownerDocument;
|
|
@@ -565,7 +565,7 @@ function $8a9cb279dc87e130$export$cabe61c495ee3649(target) {
|
|
|
565
565
|
}
|
|
566
566
|
let $507fabe10e71c6fb$var$currentModality = null;
|
|
567
567
|
let $507fabe10e71c6fb$var$currentPointerType = "keyboard";
|
|
568
|
-
|
|
568
|
+
const $507fabe10e71c6fb$export$901e90a13c50a14e = /* @__PURE__ */ new Set();
|
|
569
569
|
let $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
|
|
570
570
|
let $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
571
571
|
let $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
@@ -574,7 +574,7 @@ const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
|
|
|
574
574
|
Escape: true
|
|
575
575
|
};
|
|
576
576
|
function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
|
|
577
|
-
for (let handler of $507fabe10e71c6fb$
|
|
577
|
+
for (let handler of $507fabe10e71c6fb$export$901e90a13c50a14e) handler(modality, e);
|
|
578
578
|
}
|
|
579
579
|
function $507fabe10e71c6fb$var$isValidKey(e) {
|
|
580
580
|
return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
@@ -705,9 +705,9 @@ function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
|
|
|
705
705
|
let handler = () => {
|
|
706
706
|
setModality($507fabe10e71c6fb$var$currentModality);
|
|
707
707
|
};
|
|
708
|
-
$507fabe10e71c6fb$
|
|
708
|
+
$507fabe10e71c6fb$export$901e90a13c50a14e.add(handler);
|
|
709
709
|
return () => {
|
|
710
|
-
$507fabe10e71c6fb$
|
|
710
|
+
$507fabe10e71c6fb$export$901e90a13c50a14e.delete(handler);
|
|
711
711
|
};
|
|
712
712
|
}, []);
|
|
713
713
|
return $b5e257d569688ac6$export$535bd6ca7f90a273() ? null : modality;
|
|
@@ -735,13 +735,14 @@ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
|
735
735
|
function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
736
736
|
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
737
737
|
useEffect(() => {
|
|
738
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) return;
|
|
738
739
|
let handler = (modality, e) => {
|
|
739
740
|
if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;
|
|
740
741
|
fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
|
|
741
742
|
};
|
|
742
|
-
$507fabe10e71c6fb$
|
|
743
|
+
$507fabe10e71c6fb$export$901e90a13c50a14e.add(handler);
|
|
743
744
|
return () => {
|
|
744
|
-
$507fabe10e71c6fb$
|
|
745
|
+
$507fabe10e71c6fb$export$901e90a13c50a14e.delete(handler);
|
|
745
746
|
};
|
|
746
747
|
}, deps);
|
|
747
748
|
}
|
|
@@ -902,7 +903,7 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
902
903
|
let { hoverProps, triggerHoverEnd } = useMemo(() => {
|
|
903
904
|
let triggerHoverStart = (event, pointerType) => {
|
|
904
905
|
state.pointerType = pointerType;
|
|
905
|
-
if (isDisabled || pointerType === "touch" || state.isHovered ||
|
|
906
|
+
if (isDisabled || pointerType === "touch" || state.isHovered || !$d4ee10de306f2510$export$4282f70798064fe0(event.currentTarget, event.target)) return;
|
|
906
907
|
state.isHovered = true;
|
|
907
908
|
let target = event.currentTarget;
|
|
908
909
|
state.target = target;
|
|
@@ -941,7 +942,7 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
941
942
|
triggerHoverStart(e, e.pointerType);
|
|
942
943
|
};
|
|
943
944
|
hoverProps2.onPointerLeave = (e) => {
|
|
944
|
-
if (!isDisabled && e.currentTarget
|
|
945
|
+
if (!isDisabled && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) triggerHoverEnd2(e, e.pointerType);
|
|
945
946
|
};
|
|
946
947
|
} else if (process.env.NODE_ENV === "test") {
|
|
947
948
|
hoverProps2.onTouchStart = () => {
|
|
@@ -952,7 +953,7 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
952
953
|
state.ignoreEmulatedMouseEvents = false;
|
|
953
954
|
};
|
|
954
955
|
hoverProps2.onMouseLeave = (e) => {
|
|
955
|
-
if (!isDisabled && e.currentTarget
|
|
956
|
+
if (!isDisabled && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) triggerHoverEnd2(e, "mouse");
|
|
956
957
|
};
|
|
957
958
|
}
|
|
958
959
|
return {
|
|
@@ -1005,10 +1006,10 @@ export {
|
|
|
1005
1006
|
$431fbd86ca7dc216$export$b204af158042fbac as d,
|
|
1006
1007
|
$bbed8b41f857bcc0$export$24490316f764c430 as e,
|
|
1007
1008
|
$03deb23ff14920c4$export$4eaf04e54aa8eed6 as f,
|
|
1008
|
-
$
|
|
1009
|
-
$
|
|
1010
|
-
$d4ee10de306f2510$export$
|
|
1011
|
-
$d4ee10de306f2510$export$
|
|
1009
|
+
$d4ee10de306f2510$export$4282f70798064fe0 as g,
|
|
1010
|
+
$8a9cb279dc87e130$export$715c682d09d639cc as h,
|
|
1011
|
+
$d4ee10de306f2510$export$cd4e5573fbe2b576 as i,
|
|
1012
|
+
$d4ee10de306f2510$export$e58f029f0fbfdb29 as j,
|
|
1012
1013
|
$8a9cb279dc87e130$export$c2b7abe5d61ec696 as k,
|
|
1013
1014
|
$8a9cb279dc87e130$export$525bc4921d56d4a as l,
|
|
1014
1015
|
$507fabe10e71c6fb$export$b9b3dfddab17db27 as m,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
1
|
+
import { d as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-Cr3pLd9c.js";
|
|
2
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-D8O3gOdV.js";
|
|
3
3
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
4
4
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
5
5
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-Cr3pLd9c.js";
|
|
2
2
|
function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
|
|
3
3
|
let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
|
|
4
4
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { version, useMemo, useCallback, useRef, useEffect } from "react";
|
|
2
|
-
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-
|
|
2
|
+
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-VgpR-1Ri.js";
|
|
3
3
|
function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
|
|
4
4
|
const pieces = version.split(".");
|
|
5
5
|
const major = parseInt(pieces[0], 10);
|
package/dist/{useLocalizedStringFormatter-M3L6Ge2c.js → useLocalizedStringFormatter-CEDs0LsA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-iUFQCK8m.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
const $5b160d28a433310d$var$localeSymbol = /* @__PURE__ */ Symbol.for("react-aria.i18n.locale");
|
|
4
4
|
const $5b160d28a433310d$var$stringsSymbol = /* @__PURE__ */ Symbol.for("react-aria.i18n.strings");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, O as $c87311424ea30a05$export$186c6964ca17d99, t as $c87311424ea30a05$export$a11b0059900ceec8, c as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useHover-
|
|
1
|
+
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, O as $c87311424ea30a05$export$186c6964ca17d99, t as $c87311424ea30a05$export$a11b0059900ceec8, c as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useHover-VPZwb-1l.js";
|
|
2
2
|
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-7sOvrqo0.js";
|
|
3
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-
|
|
3
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-DwbcW-pN.js";
|
|
4
4
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
5
5
|
import { useCallback, useEffect, useRef, useState, useMemo } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, o as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-Cr3pLd9c.js";
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
8
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
9
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-
|
|
10
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
11
|
-
import { d as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-
|
|
12
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
13
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
14
|
-
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-
|
|
8
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-KT27O1en.js";
|
|
9
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-Ct2N5S1b.js";
|
|
10
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-ADVZr4I3.js";
|
|
11
|
+
import { d as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-Wrnm2nxy.js";
|
|
12
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CEDs0LsA.js";
|
|
13
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-CG_IQXp9.js";
|
|
14
|
+
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-BTCA69Lt.js";
|
|
15
15
|
const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$");
|
|
16
16
|
const $6c7bd7858deea686$var$NUMBERING_SYSTEMS = [
|
|
17
17
|
"latn",
|
|
@@ -660,6 +660,8 @@ $a99895ee3dc79e61$exports = {
|
|
|
660
660
|
function $parcel$interopDefault$1(a) {
|
|
661
661
|
return a && a.__esModule ? a.default : a;
|
|
662
662
|
}
|
|
663
|
+
const $d2e8511e6f209edf$var$noop = () => {
|
|
664
|
+
};
|
|
663
665
|
function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
664
666
|
const _async = useRef(void 0);
|
|
665
667
|
let { value, textValue, minValue, maxValue, isDisabled, isReadOnly, isRequired, onIncrement, onIncrementPage, onDecrement, onDecrementPage, onDecrementToMin, onIncrementToMax } = props;
|
|
@@ -741,21 +743,29 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
|
741
743
|
}, [
|
|
742
744
|
clearAsync
|
|
743
745
|
]);
|
|
744
|
-
const
|
|
746
|
+
const onIncrementEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onIncrement !== null && onIncrement !== void 0 ? onIncrement : $d2e8511e6f209edf$var$noop);
|
|
747
|
+
const onDecrementEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onDecrement !== null && onDecrement !== void 0 ? onDecrement : $d2e8511e6f209edf$var$noop);
|
|
748
|
+
const stepUpEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
749
|
+
if (maxValue === void 0 || isNaN(maxValue) || value === void 0 || isNaN(value) || value < maxValue) {
|
|
750
|
+
onIncrementEvent();
|
|
751
|
+
onIncrementPressStartEvent(60);
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
const onIncrementPressStartEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
|
|
745
755
|
clearAsyncEvent();
|
|
746
756
|
isSpinning.current = true;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
757
|
+
_async.current = window.setTimeout(stepUpEvent, initialStepDelay);
|
|
758
|
+
});
|
|
759
|
+
const stepDownEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
760
|
+
if (minValue === void 0 || isNaN(minValue) || value === void 0 || isNaN(value) || value > minValue) {
|
|
761
|
+
onDecrementEvent();
|
|
762
|
+
onDecrementPressStartEvent(60);
|
|
763
|
+
}
|
|
751
764
|
});
|
|
752
|
-
const
|
|
765
|
+
const onDecrementPressStartEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
|
|
753
766
|
clearAsyncEvent();
|
|
754
767
|
isSpinning.current = true;
|
|
755
|
-
|
|
756
|
-
_async.current = window.setTimeout(() => {
|
|
757
|
-
if (minValue === void 0 || isNaN(minValue) || value === void 0 || isNaN(value) || value > minValue) onDecrementPressStart(60);
|
|
758
|
-
}, initialStepDelay);
|
|
768
|
+
_async.current = window.setTimeout(stepDownEvent, initialStepDelay);
|
|
759
769
|
});
|
|
760
770
|
let cancelContextMenu = (e) => {
|
|
761
771
|
e.preventDefault();
|
|
@@ -764,15 +774,15 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
|
764
774
|
let isUp = useRef(false);
|
|
765
775
|
let [isIncrementPressed, setIsIncrementPressed] = useState(null);
|
|
766
776
|
useEffect(() => {
|
|
767
|
-
if (isIncrementPressed === "touch")
|
|
768
|
-
else if (isIncrementPressed)
|
|
777
|
+
if (isIncrementPressed === "touch") onIncrementPressStartEvent(600);
|
|
778
|
+
else if (isIncrementPressed) onIncrementPressStartEvent(400);
|
|
769
779
|
}, [
|
|
770
780
|
isIncrementPressed
|
|
771
781
|
]);
|
|
772
782
|
let [isDecrementPressed, setIsDecrementPressed] = useState(null);
|
|
773
783
|
useEffect(() => {
|
|
774
|
-
if (isDecrementPressed === "touch")
|
|
775
|
-
else if (isDecrementPressed)
|
|
784
|
+
if (isDecrementPressed === "touch") onDecrementPressStartEvent(600);
|
|
785
|
+
else if (isDecrementPressed) onDecrementPressStartEvent(400);
|
|
776
786
|
}, [
|
|
777
787
|
isDecrementPressed
|
|
778
788
|
]);
|
|
@@ -792,30 +802,30 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
|
792
802
|
},
|
|
793
803
|
incrementButtonProps: {
|
|
794
804
|
onPressStart: (e) => {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
805
|
+
clearAsync();
|
|
806
|
+
if (e.pointerType !== "touch") {
|
|
807
|
+
onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
|
|
808
|
+
setIsIncrementPressed("mouse");
|
|
809
|
+
} else {
|
|
798
810
|
addGlobalListener(window, "pointercancel", onPointerCancel, {
|
|
799
811
|
capture: true
|
|
800
812
|
});
|
|
801
813
|
isUp.current = false;
|
|
802
|
-
|
|
803
|
-
setIsIncrementPressed("touch");
|
|
804
|
-
}, 600);
|
|
814
|
+
setIsIncrementPressed("touch");
|
|
805
815
|
}
|
|
806
816
|
addGlobalListener(window, "contextmenu", cancelContextMenu);
|
|
807
817
|
},
|
|
808
818
|
onPressUp: (e) => {
|
|
809
|
-
if (e.pointerType === "touch") isUp.current = true;
|
|
810
819
|
clearAsync();
|
|
820
|
+
if (e.pointerType === "touch") isUp.current = true;
|
|
811
821
|
removeAllGlobalListeners();
|
|
812
822
|
setIsIncrementPressed(null);
|
|
813
823
|
},
|
|
814
824
|
onPressEnd: (e) => {
|
|
825
|
+
clearAsync();
|
|
815
826
|
if (e.pointerType === "touch") {
|
|
816
827
|
if (!isSpinning.current && isUp.current) onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
|
|
817
828
|
}
|
|
818
|
-
clearAsync();
|
|
819
829
|
isUp.current = false;
|
|
820
830
|
setIsIncrementPressed(null);
|
|
821
831
|
},
|
|
@@ -824,29 +834,29 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
|
824
834
|
},
|
|
825
835
|
decrementButtonProps: {
|
|
826
836
|
onPressStart: (e) => {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
837
|
+
clearAsync();
|
|
838
|
+
if (e.pointerType !== "touch") {
|
|
839
|
+
onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
|
|
840
|
+
setIsDecrementPressed("mouse");
|
|
841
|
+
} else {
|
|
830
842
|
addGlobalListener(window, "pointercancel", onPointerCancel, {
|
|
831
843
|
capture: true
|
|
832
844
|
});
|
|
833
845
|
isUp.current = false;
|
|
834
|
-
|
|
835
|
-
setIsDecrementPressed("touch");
|
|
836
|
-
}, 600);
|
|
846
|
+
setIsDecrementPressed("touch");
|
|
837
847
|
}
|
|
838
848
|
},
|
|
839
849
|
onPressUp: (e) => {
|
|
840
|
-
if (e.pointerType === "touch") isUp.current = true;
|
|
841
850
|
clearAsync();
|
|
851
|
+
if (e.pointerType === "touch") isUp.current = true;
|
|
842
852
|
removeAllGlobalListeners();
|
|
843
853
|
setIsDecrementPressed(null);
|
|
844
854
|
},
|
|
845
855
|
onPressEnd: (e) => {
|
|
856
|
+
clearAsync();
|
|
846
857
|
if (e.pointerType === "touch") {
|
|
847
858
|
if (!isSpinning.current && isUp.current) onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
|
|
848
859
|
}
|
|
849
|
-
clearAsync();
|
|
850
860
|
isUp.current = false;
|
|
851
861
|
setIsDecrementPressed(null);
|
|
852
862
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-iUFQCK8m.js";
|
|
2
2
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, k as $8a9cb279dc87e130$export$c2b7abe5d61ec696, l as $8a9cb279dc87e130$export$525bc4921d56d4a, d as $431fbd86ca7dc216$export$b204af158042fbac, y as $431fbd86ca7dc216$export$f21a1ffae260145a,
|
|
2
|
-
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
1
|
+
import { f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, k as $8a9cb279dc87e130$export$c2b7abe5d61ec696, l as $8a9cb279dc87e130$export$525bc4921d56d4a, d as $431fbd86ca7dc216$export$b204af158042fbac, y as $431fbd86ca7dc216$export$f21a1ffae260145a, g as $d4ee10de306f2510$export$4282f70798064fe0, j as $d4ee10de306f2510$export$e58f029f0fbfdb29, F as $6a7db85432448f7f$export$29bf1b5f2c56cf63, G as $8a9cb279dc87e130$export$cabe61c495ee3649, H as $6a7db85432448f7f$export$60278871457622de, I as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, J as $ea8dcbcb9ea1b556$export$95185d699e05d4d7, A as $7215afc6de606d6b$export$de79e2c695e052f3, D as $c87311424ea30a05$export$9ac100e40613ea10 } from "./useHover-VPZwb-1l.js";
|
|
2
|
+
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-D_BSbtab.js";
|
|
3
3
|
import $dbSRa$react__default, { useState, useRef, useCallback, useMemo, useEffect, useContext } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, o as $ff5963eb1fccf552$export$e08e3b67e392101e, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-Cr3pLd9c.js";
|
|
5
5
|
import { r as reactDomExports } from "./index-sSixe2j_.js";
|
|
6
6
|
function _check_private_redeclaration(obj, privateCollection) {
|
|
7
7
|
if (privateCollection.has(obj)) {
|
|
@@ -46,7 +46,7 @@ function _class_private_field_set(receiver, privateMap, value) {
|
|
|
46
46
|
function $f6c31cce2adf654f$var$usePressResponderContext(props) {
|
|
47
47
|
let context = useContext($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
|
|
48
48
|
if (context) {
|
|
49
|
-
let { register, ...contextProps } = context;
|
|
49
|
+
let { register, ref, ...contextProps } = context;
|
|
50
50
|
props = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props);
|
|
51
51
|
register();
|
|
52
52
|
}
|
|
@@ -94,6 +94,7 @@ class $f6c31cce2adf654f$var$PressEvent {
|
|
|
94
94
|
this.altKey = originalEvent.altKey;
|
|
95
95
|
this.x = x;
|
|
96
96
|
this.y = y;
|
|
97
|
+
this.key = originalEvent.key;
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
const $f6c31cce2adf654f$var$LINK_CLICKED = /* @__PURE__ */ Symbol("linkClicked");
|
|
@@ -305,7 +306,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
305
306
|
state.ignoreEmulatedMouseEvents = false;
|
|
306
307
|
return;
|
|
307
308
|
}
|
|
308
|
-
if (state.target && state.target
|
|
309
|
+
if (state.target && $d4ee10de306f2510$export$4282f70798064fe0(state.target, e.target) && state.pointerType != null) ;
|
|
309
310
|
else cancelEvent(e);
|
|
310
311
|
state.isOverTarget = false;
|
|
311
312
|
};
|
|
@@ -395,7 +396,11 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
395
396
|
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$16a4697467175487(state.target);
|
|
396
397
|
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
397
398
|
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent);
|
|
398
|
-
if ("releasePointerCapture" in target)
|
|
399
|
+
if ("releasePointerCapture" in target) {
|
|
400
|
+
if ("hasPointerCapture" in target) {
|
|
401
|
+
if (target.hasPointerCapture(e.pointerId)) target.releasePointerCapture(e.pointerId);
|
|
402
|
+
} else target.releasePointerCapture(e.pointerId);
|
|
403
|
+
}
|
|
399
404
|
}
|
|
400
405
|
if (shouldStopPropagation) e.stopPropagation();
|
|
401
406
|
};
|
|
@@ -638,7 +643,8 @@ function $f6c31cce2adf654f$var$createEvent(target, e) {
|
|
|
638
643
|
metaKey: e.metaKey,
|
|
639
644
|
altKey: e.altKey,
|
|
640
645
|
clientX,
|
|
641
|
-
clientY
|
|
646
|
+
clientY,
|
|
647
|
+
key: e.key
|
|
642
648
|
};
|
|
643
649
|
}
|
|
644
650
|
function $f6c31cce2adf654f$var$getPointClientRect(point) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
2
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
1
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-jHobZH6F.js";
|
|
2
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-VPZwb-1l.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
5
5
|
var _props_defaultSelectedKey;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-Cr3pLd9c.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
3
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
5
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-
|
|
3
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-KT27O1en.js";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-BPCda-AF.js";
|
|
5
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-VPZwb-1l.js";
|
|
6
6
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
7
7
|
let { isDisabled = false, isReadOnly = false, value, name, form, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid, onPressStart, onPressEnd, onPressChange, onPress, onPressUp, onClick } = props;
|
|
8
8
|
let onChange = (e) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
1
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-VPZwb-1l.js";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
function $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {
|
|
4
4
|
let { isReadOnly } = props;
|