@eightshift/ui-components 8.1.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-BUU44AuW.js → Autocomplete-Dqkum3dO.js} +29 -25
- package/dist/{Button-_E2Z5G2l.js → Button-DHgs_rCq.js} +15 -9
- package/dist/{Dialog-3XLIaepk.js → Dialog-CldDJ_4u.js} +390 -189
- package/dist/{Disclosure-Dh0z_DEQ.js → Disclosure-BHNgL5Is.js} +33 -29
- package/dist/{FocusScope-BKGWN6UK.js → FocusScope-CUuL5wjz.js} +13 -8
- package/dist/{Heading-BWTs9ckA.js → Heading-BQje2nS2.js} +1 -1
- package/dist/{I18nProvider-BskRMK8G.js → I18nProvider-R_4IDnf9.js} +1 -1
- package/dist/{Label-UpU4cKPh.js → Label-C4bJkVti.js} +1 -1
- package/dist/{ListBox-DepY-52g.js → ListBox-CZXso3mJ.js} +14 -38
- package/dist/{NumberFormatter-WKBRKiEA.js → NumberFormatter-Bwdv413k.js} +4 -2
- package/dist/{RadioGroup-Br9Mn9QJ.js → RadioGroup-BTByPMrl.js} +35 -35
- package/dist/{SearchField-q2Fj0L9K.js → SearchField-DkX1vqMN.js} +29 -26
- package/dist/{Slider-B8icnyOo.js → Slider-Dw-JjfLx.js} +55 -44
- package/dist/{Text-D4y19vs8.js → Text-CA2_mHEB.js} +4 -3
- package/dist/{VisuallyHidden-B_LZ_kn7.js → VisuallyHidden-ZZwHZDro.js} +2 -2
- package/dist/{animation-DpSgtWyu.js → animation-COc9P6ap.js} +2 -4
- package/dist/assets/{image-analysis-worker-BuHru-CI.js → image-analysis-worker-CBOB71mx.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-XSk_8UW7.js → button-ldR_tlvk.js} +64 -13
- package/dist/{checkbox-BYaS9tQ5.js → checkbox-DDyLJRY8.js} +8 -8
- package/dist/{color-swatch-6ZEIXej3.js → color-swatch-DmhdOhe4.js} +15 -16
- package/dist/components/animated-visibility/animated-visibility.js +5 -3
- package/dist/components/base-control/base-control.d.ts +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/base-control/container.d.ts +4 -30
- package/dist/components/base-control/container.js +5 -32
- package/dist/components/breakpoint-preview/breakpoint-preview.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 +8 -8
- 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 +11 -11
- package/dist/components/contextual-help/contextual-help.js +3 -3
- package/dist/components/draggable/draggable.d.ts +3 -3
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list.d.ts +3 -3
- package/dist/components/draggable-list/draggable-list.js +9 -9
- package/dist/components/expandable/expandable.js +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +18 -17
- 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.d.ts +3 -28
- package/dist/components/item-collection/item-collection.js +7 -7
- package/dist/components/link-input/link-input.d.ts +0 -2
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -4
- package/dist/components/menu/menu.d.ts +8 -29
- package/dist/components/menu/menu.js +11 -8
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notice/notice.js +8 -8
- 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.d.ts +1 -1
- package/dist/components/option-select/option-select.js +22 -16
- package/dist/components/options-panel/options-panel.js +4 -4
- package/dist/components/placeholders/file-picker-shell.js +4 -3
- package/dist/components/placeholders/file-placeholder.js +3 -2
- package/dist/components/popover/popover.js +5 -5
- package/dist/components/portal-provider/portal-provider.js +2 -1
- 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 +2 -2
- package/dist/components/repeater/repeater-context.d.ts +0 -1
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.d.ts +5 -38
- package/dist/components/repeater/repeater.js +8 -11
- package/dist/components/responsive/mini-responsive.d.ts +0 -1
- package/dist/components/responsive/mini-responsive.js +31 -31
- package/dist/components/responsive/responsive-legacy.d.ts +0 -1
- package/dist/components/responsive/responsive-legacy.js +13 -11
- package/dist/components/responsive/responsive.d.ts +0 -1
- package/dist/components/responsive/responsive.js +29 -29
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- 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.d.ts +12 -13
- package/dist/components/select/async-multi-select.js +40 -21
- package/dist/components/select/async-select.d.ts +12 -13
- package/dist/components/select/async-select.js +39 -21
- package/dist/components/select/multi-select.d.ts +2 -8
- package/dist/components/select/multi-select.js +20 -20
- package/dist/components/select/shared.d.ts +7 -11
- package/dist/components/select/shared.js +2 -2
- package/dist/components/select/single-select.d.ts +2 -8
- package/dist/components/select/single-select.js +17 -17
- package/dist/components/select/styles.d.ts +2 -2
- package/dist/components/slider/column-config-slider.js +8 -6
- package/dist/components/slider/slider.js +16 -12
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.d.ts +1 -2
- package/dist/components/smart-image/smart-image.js +53 -51
- 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 +2 -2
- 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-9MfdTVWP.js → draggable-oS68xcYX.js} +130 -125
- package/dist/{es-dash-DunirOmV.js → es-dash-DPtJSRjw.js} +23 -52
- package/dist/{gradient-editor-yqSw0uPA.js → gradient-editor-DP8ioFX1.js} +39 -30
- package/dist/icons/block-icon.js +1 -1
- package/dist/icons/icon.d.ts +3 -3
- package/dist/icons/icon.js +21 -9
- package/dist/icons/icons.d.ts +210 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.d.ts +5 -4
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +18 -17
- package/dist/{input-field-nN6BO0oz.js → input-field-C-XvZeCZ.js} +8 -8
- package/dist/{jsx-svg-BjGQUBLh.js → jsx-svg-DRwJdRpA.js} +171 -129
- package/dist/{keyboard-g5Amam-c.js → keyboard-Cdqi5ZQQ.js} +1 -1
- package/dist/{link-input-BhlPElU8.js → link-input-DdwuqoMg.js} +147 -89
- package/dist/{modal-B5axB0Fc.js → modal-DZco5MDu.js} +15 -14
- package/dist/{number-picker-nnOf0XnN.js → number-picker-XqKW0BNi.js} +9 -9
- package/dist/{react-y40Dt3ab.js → react-O71mlJXS.js} +250 -266
- package/dist/{shared-Ba_bt4s9.js → shared-YXMIX2ka.js} +60 -44
- package/dist/{solid-color-picker-CsosgTVa.js → solid-color-picker-D5LEdmDM.js} +78 -58
- package/dist/{switch-BJ4_OyUm.js → switch-Bo6nmed_.js} +8 -8
- package/dist/{tabs-wAe0AAyu.js → tabs-DE-qb7Kt.js} +35 -30
- package/dist/{text-helpers-2j9DuxP1.js → text-helpers-QrwKKaOh.js} +3 -2
- package/dist/{textSelection-B_Nv6Jz3.js → textSelection-C17LWYmO.js} +3 -3
- package/dist/{toggle-button-BLJdEp8V.js → toggle-button-Cb4yCEua.js} +39 -8
- package/dist/{tooltip-BW9nj5-V.js → tooltip-CT-vzIdz.js} +68 -62
- package/dist/{useAsyncList-B3-uyJgA.js → useAsyncList-CjKVLGN0.js} +8 -4
- package/dist/{useButton-CPMVLXoX.js → useButton-V65TBDGM.js} +3 -3
- package/dist/{useCollection-PzY6FI39.js → useCollection-DqUS7tjk.js} +281 -184
- package/dist/useEvent-C9zwSNzZ.js +18 -0
- package/dist/{useField-DrfR8j9h.js → useField-B_ibsWst.js} +2 -2
- package/dist/{useFilter-CiCjo6Na.js → useFilter-C75IzdIZ.js} +1 -1
- package/dist/{useFocusRing-CrYHpV7C.js → useFocusRing-JidySWlU.js} +1 -1
- package/dist/{useFormReset-U6c35PHq.js → useFormReset-Sp8-miDa.js} +1 -1
- package/dist/{useFormValidation-B2q2MGWN.js → useFormValidation-CpmQEh8J.js} +2 -2
- package/dist/{useHover-CNsbAR0V.js → useHover-CaY3sRjL.js} +250 -46
- package/dist/{useLabel-DuxAjaic.js → useLabel-gfFDE4bn.js} +2 -2
- package/dist/{useLabels-NUsp5IW3.js → useLabels-Dcg-cEyM.js} +1 -1
- package/dist/{useListState-FLxa7R_U.js → useListState-CzB3v6M9.js} +6 -11
- package/dist/{useLocalizedStringFormatter-Ccm8EL_u.js → useLocalizedStringFormatter-CTCqjYu4.js} +6 -1
- package/dist/{useNumberFieldState-DWvm7CXu.js → useNumberFieldState-DC3XY3DQ.js} +79 -62
- package/dist/{useNumberFormatter-B0_D7a_o.js → useNumberFormatter-DbAt_fC_.js} +2 -2
- package/dist/{useOverlayTriggerState-zZ7homyI.js → useOverlayTriggerState-BKmSTK_5.js} +16 -11
- package/dist/{usePress-DRoujMNm.js → usePress-CUCWcP-m.js} +50 -28
- package/dist/{useSlot-pRz-v9kC.js → useSlot-CnQHcvd4.js} +1 -1
- package/dist/{useTextField-e8jIFT3s.js → useTextField-C3QIkMON.js} +6 -6
- package/dist/{useToggle-CR_ZKvr_.js → useToggle-bbGRUbo4.js} +6 -6
- package/dist/{useToggleState-ButQxGrJ.js → useToggleState-D_rLMrVW.js} +1 -1
- package/dist/utilities/array-helpers.d.ts +2 -2
- package/dist/utilities/array-helpers.js +4 -3
- package/dist/utilities/debounce-throttle.d.ts +9 -2
- package/dist/utilities/es-dash.d.ts +11 -8
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +2 -2
- package/dist/utilities/text-helpers.js +1 -1
- package/dist/utilities/web-workers.d.ts +7 -7
- package/dist/utilities/web-workers.js +5 -5
- package/dist/{utils-Czi6q2Ub.js → utils-ClM91CuL.js} +30 -19
- package/package.json +23 -27
- package/dist/useEvent-CzuFZ2HT.js +0 -22
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-
|
|
4
|
-
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
1
|
+
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c, p as $390e54f620492c70$export$f680877a34711e37, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
|
+
import { T as $2add3ce32c6007eb$export$186c6964ca17d99, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, c as $1e74c67db218ce67$export$f8168d8dd8fd66e6, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, j as $2add3ce32c6007eb$export$fedb369cb70207f1, k as $2add3ce32c6007eb$export$a11b0059900ceec8, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd } from "./useHover-CaY3sRjL.js";
|
|
3
|
+
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-C9zwSNzZ.js";
|
|
4
|
+
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CTCqjYu4.js";
|
|
5
5
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
6
|
-
import { n as $2c9edc598a03d523$export$420e68273165f4ec } from "./useFocusRing-
|
|
7
|
-
import { t as $1dfb119a85e764e5$export$cc77c4ff7e8673c5 } from "./NumberFormatter-
|
|
8
|
-
import { t as $bd90acf18e792be6$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
6
|
+
import { n as $2c9edc598a03d523$export$420e68273165f4ec } from "./useFocusRing-JidySWlU.js";
|
|
7
|
+
import { t as $1dfb119a85e764e5$export$cc77c4ff7e8673c5 } from "./NumberFormatter-Bwdv413k.js";
|
|
8
|
+
import { t as $bd90acf18e792be6$export$b7a616150fdb9f44 } from "./useNumberFormatter-DbAt_fC_.js";
|
|
9
9
|
import { r as $240e9101ba2842f5$export$cb6e0bb50bc19463, t as $240e9101ba2842f5$export$7d15b64cf5a3a4c4 } from "./number-BeC0ySe4.js";
|
|
10
|
-
import { i as $a46cf152bb926da5$export$d10ae4f68404609a, r as $a46cf152bb926da5$export$a9b970dcc4ae71a9 } from "./Button-
|
|
11
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-
|
|
12
|
-
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-
|
|
13
|
-
import { t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-
|
|
10
|
+
import { i as $a46cf152bb926da5$export$d10ae4f68404609a, r as $a46cf152bb926da5$export$a9b970dcc4ae71a9 } from "./Button-DHgs_rCq.js";
|
|
11
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-CpmQEh8J.js";
|
|
12
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-Sp8-miDa.js";
|
|
13
|
+
import { t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-C3QIkMON.js";
|
|
14
14
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
15
15
|
import { flushSync } from "react-dom";
|
|
16
16
|
//#region node_modules/@internationalized/number/dist/private/NumberParser.mjs
|
|
@@ -258,9 +258,7 @@ function $62888b2ec35be488$export$4f384c9210e583c3(props, state, inputRef) {
|
|
|
258
258
|
case "deleteHardLineBackward":
|
|
259
259
|
nextValue = input.value.slice(input.selectionStart);
|
|
260
260
|
break;
|
|
261
|
-
default:
|
|
262
|
-
if (e.data != null) nextValue = input.value.slice(0, input.selectionStart) + e.data + input.value.slice(input.selectionEnd);
|
|
263
|
-
break;
|
|
261
|
+
default: if (e.data != null) nextValue = input.value.slice(0, input.selectionStart) + e.data + input.value.slice(input.selectionEnd);
|
|
264
262
|
}
|
|
265
263
|
if (nextValue == null || !state.validate(nextValue)) e.preventDefault();
|
|
266
264
|
});
|
|
@@ -515,47 +513,62 @@ function $757ec6630f26125c$export$e908e06f4b8e3402(props) {
|
|
|
515
513
|
useEffect(() => {
|
|
516
514
|
return () => clearAsyncEvent();
|
|
517
515
|
}, []);
|
|
518
|
-
let
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
case "ArrowUp":
|
|
527
|
-
case "Up":
|
|
516
|
+
let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({
|
|
517
|
+
isDisabled: isDisabled || isReadOnly,
|
|
518
|
+
shortcuts: {
|
|
519
|
+
PageUp: () => {
|
|
520
|
+
if (onIncrementPage) {
|
|
521
|
+
onIncrementPage();
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
528
524
|
if (onIncrement) {
|
|
529
|
-
|
|
530
|
-
|
|
525
|
+
onIncrement();
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
return false;
|
|
529
|
+
},
|
|
530
|
+
ArrowUp: () => {
|
|
531
|
+
if (onIncrement) {
|
|
532
|
+
onIncrement();
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
return false;
|
|
536
|
+
},
|
|
537
|
+
PageDown: () => {
|
|
538
|
+
if (onDecrementPage) {
|
|
539
|
+
onDecrementPage();
|
|
540
|
+
return;
|
|
531
541
|
}
|
|
532
|
-
break;
|
|
533
|
-
case "PageDown": if (onDecrementPage) {
|
|
534
|
-
e.preventDefault();
|
|
535
|
-
onDecrementPage?.();
|
|
536
|
-
break;
|
|
537
|
-
}
|
|
538
|
-
case "ArrowDown":
|
|
539
|
-
case "Down":
|
|
540
542
|
if (onDecrement) {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
+
onDecrement();
|
|
544
|
+
return;
|
|
543
545
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
+
return false;
|
|
547
|
+
},
|
|
548
|
+
ArrowDown: () => {
|
|
549
|
+
if (onDecrement) {
|
|
550
|
+
onDecrement();
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
return false;
|
|
554
|
+
},
|
|
555
|
+
Home: () => {
|
|
546
556
|
if (onDecrementToMin) {
|
|
547
|
-
|
|
548
|
-
|
|
557
|
+
onDecrementToMin();
|
|
558
|
+
return;
|
|
549
559
|
}
|
|
550
|
-
|
|
551
|
-
|
|
560
|
+
return false;
|
|
561
|
+
},
|
|
562
|
+
End: () => {
|
|
552
563
|
if (onIncrementToMax) {
|
|
553
|
-
|
|
554
|
-
|
|
564
|
+
onIncrementToMax();
|
|
565
|
+
return;
|
|
555
566
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
567
|
+
return false;
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
allowRepeats: true
|
|
571
|
+
});
|
|
559
572
|
let isFocused = useRef(false);
|
|
560
573
|
let onFocus = () => {
|
|
561
574
|
isFocused.current = true;
|
|
@@ -624,7 +637,7 @@ function $757ec6630f26125c$export$e908e06f4b8e3402(props) {
|
|
|
624
637
|
"aria-disabled": isDisabled || void 0,
|
|
625
638
|
"aria-readonly": isReadOnly || void 0,
|
|
626
639
|
"aria-required": isRequired || void 0,
|
|
627
|
-
|
|
640
|
+
...keyboardProps,
|
|
628
641
|
onFocus,
|
|
629
642
|
onBlur
|
|
630
643
|
},
|
|
@@ -1026,6 +1039,7 @@ function $cd2fa56213693c5e$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
1026
1039
|
...formatOptions,
|
|
1027
1040
|
currencySign: void 0
|
|
1028
1041
|
});
|
|
1042
|
+
let textValue = useMemo(() => isNaN(numberValue) ? "" : textValueFormatter.format(numberValue), [textValueFormatter, numberValue]);
|
|
1029
1043
|
let { spinButtonProps, incrementButtonProps: incButtonProps, decrementButtonProps: decButtonProps } = $757ec6630f26125c$export$e908e06f4b8e3402({
|
|
1030
1044
|
isDisabled,
|
|
1031
1045
|
isReadOnly,
|
|
@@ -1037,19 +1051,20 @@ function $cd2fa56213693c5e$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
1037
1051
|
onDecrement: decrement,
|
|
1038
1052
|
onDecrementToMin: decrementToMin,
|
|
1039
1053
|
value: numberValue,
|
|
1040
|
-
textValue
|
|
1054
|
+
textValue
|
|
1041
1055
|
});
|
|
1042
1056
|
let [focusWithin, setFocusWithin] = useState(false);
|
|
1043
1057
|
let { focusWithinProps } = $2c9edc598a03d523$export$420e68273165f4ec({
|
|
1044
1058
|
isDisabled,
|
|
1045
1059
|
onFocusWithinChange: setFocusWithin
|
|
1046
1060
|
});
|
|
1061
|
+
let onWheel = useCallback((e) => {
|
|
1062
|
+
if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) return;
|
|
1063
|
+
if (e.deltaY > 0) increment();
|
|
1064
|
+
else if (e.deltaY < 0) decrement();
|
|
1065
|
+
}, [decrement, increment]);
|
|
1047
1066
|
$14554ba6a2007b17$export$2123ff2b87c81ca({
|
|
1048
|
-
onScroll:
|
|
1049
|
-
if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) return;
|
|
1050
|
-
if (e.deltaY > 0) increment();
|
|
1051
|
-
else if (e.deltaY < 0) decrement();
|
|
1052
|
-
}, [decrement, increment]),
|
|
1067
|
+
onScroll: onWheel,
|
|
1053
1068
|
isDisabled: isWheelDisabled || isDisabled || isReadOnly || !focusWithin
|
|
1054
1069
|
}, inputRef);
|
|
1055
1070
|
let hasDecimals = (intlOptions.maximumFractionDigits ?? 0) > 0;
|
|
@@ -1074,17 +1089,20 @@ function $cd2fa56213693c5e$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
1074
1089
|
}
|
|
1075
1090
|
};
|
|
1076
1091
|
let domProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props);
|
|
1077
|
-
let
|
|
1078
|
-
|
|
1079
|
-
|
|
1092
|
+
let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({
|
|
1093
|
+
isDisabled: isDisabled || isReadOnly,
|
|
1094
|
+
shortcuts: { Enter: () => {
|
|
1080
1095
|
flushSync(() => {
|
|
1081
1096
|
commit();
|
|
1082
1097
|
});
|
|
1083
1098
|
commitValidation();
|
|
1084
|
-
|
|
1085
|
-
|
|
1099
|
+
return { shouldPreventDefault: false };
|
|
1100
|
+
} },
|
|
1101
|
+
onKeyDown,
|
|
1102
|
+
onKeyUp
|
|
1103
|
+
});
|
|
1086
1104
|
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
1087
|
-
let { labelProps, inputProps:
|
|
1105
|
+
let { labelProps, inputProps: textFieldPropsFromHook, descriptionProps, errorMessageProps } = $62888b2ec35be488$export$4f384c9210e583c3({
|
|
1088
1106
|
...otherProps,
|
|
1089
1107
|
...domProps,
|
|
1090
1108
|
name: void 0,
|
|
@@ -1108,12 +1126,11 @@ function $cd2fa56213693c5e$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
1108
1126
|
onBlur,
|
|
1109
1127
|
onFocus,
|
|
1110
1128
|
onFocusChange,
|
|
1111
|
-
onKeyDown: useMemo(() => $a4e76a5424781910$export$e08e3b67e392101e(onKeyDownEnter, onKeyDown), [onKeyDownEnter, onKeyDown]),
|
|
1112
|
-
onKeyUp,
|
|
1113
1129
|
onPaste,
|
|
1114
1130
|
description,
|
|
1115
1131
|
errorMessage
|
|
1116
1132
|
}, state, inputRef);
|
|
1133
|
+
let textFieldProps = $bbaa08b3cd72f041$export$9d1611c77c2fe928(keyboardProps, textFieldPropsFromHook);
|
|
1117
1134
|
$3274bf1495747a7b$export$5add1d006293d136(inputRef, state.defaultNumberValue, state.setNumberValue);
|
|
1118
1135
|
$cd2fa56213693c5e$var$useNativeValidation(state, props.validationBehavior, props.commitBehavior, inputRef, state.minValue, state.maxValue, props.step, state.numberValue);
|
|
1119
1136
|
let inputProps = $bbaa08b3cd72f041$export$9d1611c77c2fe928(spinButtonProps, focusProps, textFieldProps, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-
|
|
2
|
-
import { t as $1dfb119a85e764e5$export$cc77c4ff7e8673c5 } from "./NumberFormatter-
|
|
1
|
+
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
2
|
+
import { t as $1dfb119a85e764e5$export$cc77c4ff7e8673c5 } from "./NumberFormatter-Bwdv413k.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
//#region node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
|
|
5
5
|
function $bd90acf18e792be6$export$b7a616150fdb9f44(options = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3 } from "./utils-
|
|
2
|
-
import { B as $23f2114a1b82827e$export$b4f377a2b6254582, D as $2add3ce32c6007eb$export$78551043582a6a98, H as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-
|
|
3
|
-
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-
|
|
1
|
+
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3 } from "./utils-ClM91CuL.js";
|
|
2
|
+
import { B as $23f2114a1b82827e$export$b4f377a2b6254582, D as $2add3ce32c6007eb$export$78551043582a6a98, H as $23f2114a1b82827e$export$da7af4355d792141, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, Y as $d447af545b77c9f1$export$f531f92e2a15358f, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CaY3sRjL.js";
|
|
3
|
+
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
4
4
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
5
5
|
import { t as $240e9101ba2842f5$export$7d15b64cf5a3a4c4 } from "./number-BeC0ySe4.js";
|
|
6
6
|
import $3ARPR$react, { createContext, forwardRef, useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -73,8 +73,8 @@ function $954926fb6168ae2a$var$getContainerDimensions(containerNode, visualViewp
|
|
|
73
73
|
scroll.top = documentElement.scrollTop || containerNode.scrollTop;
|
|
74
74
|
scroll.left = documentElement.scrollLeft || containerNode.scrollLeft;
|
|
75
75
|
if (visualViewport) {
|
|
76
|
-
top = visualViewport.
|
|
77
|
-
left = visualViewport.
|
|
76
|
+
top = Math.max(0, visualViewport.pageTop - (scroll.top ?? 0));
|
|
77
|
+
left = Math.max(0, visualViewport.pageLeft - (scroll.left ?? 0));
|
|
78
78
|
}
|
|
79
79
|
} else {
|
|
80
80
|
({width: width, height: height, top: top, left: left} = $954926fb6168ae2a$var$getOffset(containerNode, false));
|
|
@@ -212,7 +212,10 @@ function $954926fb6168ae2a$export$6839422d1f33cee9(placementInput, childOffset,
|
|
|
212
212
|
const arrowMinPosition = arrowSize / 2 + arrowBoundaryOffset;
|
|
213
213
|
const overlayMargin = $954926fb6168ae2a$var$AXIS[crossAxis] === "left" ? (margins.left ?? 0) + (margins.right ?? 0) : (margins.top ?? 0) + (margins.bottom ?? 0);
|
|
214
214
|
const arrowMaxPosition = overlaySize[crossSize] - overlayMargin - arrowSize / 2 - arrowBoundaryOffset;
|
|
215
|
-
|
|
215
|
+
const arrowOverlappingChildMinEdge = childOffset[crossAxis] + arrowSize / 2 - (position[crossAxis] + margins[$954926fb6168ae2a$var$AXIS[crossAxis]]);
|
|
216
|
+
const arrowOverlappingChildMaxEdge = childOffset[crossAxis] + childOffset[crossSize] - arrowSize / 2 - (position[crossAxis] + margins[$954926fb6168ae2a$var$AXIS[crossAxis]]);
|
|
217
|
+
const arrowPositionOverlappingChild = $240e9101ba2842f5$export$7d15b64cf5a3a4c4(preferredArrowPosition, arrowOverlappingChildMinEdge, arrowOverlappingChildMaxEdge);
|
|
218
|
+
arrowPosition[crossAxis] = $240e9101ba2842f5$export$7d15b64cf5a3a4c4(arrowPositionOverlappingChild, arrowMinPosition, arrowMaxPosition);
|
|
216
219
|
({placement: placement, crossPlacement: crossPlacement} = placementInfo);
|
|
217
220
|
if (arrowSize) origin = arrowPosition[crossAxis];
|
|
218
221
|
else if (crossPlacement === "right") origin += childOffset[crossSize];
|
|
@@ -337,10 +340,7 @@ function $22e2f5f6490788e8$export$18fc8428861184da(opts) {
|
|
|
337
340
|
let onCloseHandler = onClose || $22e2f5f6490788e8$export$f6211563215e3b37.get(triggerRef.current);
|
|
338
341
|
if (onCloseHandler) onCloseHandler();
|
|
339
342
|
};
|
|
340
|
-
|
|
341
|
-
return () => {
|
|
342
|
-
window.removeEventListener("scroll", onScroll, true);
|
|
343
|
-
};
|
|
343
|
+
return $d447af545b77c9f1$export$f531f92e2a15358f($23f2114a1b82827e$export$da7af4355d792141(triggerRef.current), "scroll", onScroll, true);
|
|
344
344
|
}, [
|
|
345
345
|
isOpen,
|
|
346
346
|
onClose,
|
|
@@ -483,9 +483,11 @@ function $b3526bc71400be8d$export$d39e1813b3bdd0e1(props) {
|
|
|
483
483
|
};
|
|
484
484
|
$b3526bc71400be8d$var$visualViewport?.addEventListener("resize", onResize);
|
|
485
485
|
$b3526bc71400be8d$var$visualViewport?.addEventListener("scroll", onScroll);
|
|
486
|
+
let cleanup = $d447af545b77c9f1$export$f531f92e2a15358f($23f2114a1b82827e$export$da7af4355d792141(window), "scroll", onScroll);
|
|
486
487
|
return () => {
|
|
487
488
|
$b3526bc71400be8d$var$visualViewport?.removeEventListener("resize", onResize);
|
|
488
489
|
$b3526bc71400be8d$var$visualViewport?.removeEventListener("scroll", onScroll);
|
|
490
|
+
cleanup();
|
|
489
491
|
};
|
|
490
492
|
}, [updatePosition]);
|
|
491
493
|
let close = useCallback(() => {
|
|
@@ -534,6 +536,7 @@ function $b3526bc71400be8d$var$translateRTL(position, direction) {
|
|
|
534
536
|
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
|
|
535
537
|
function $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props) {
|
|
536
538
|
let [isOpen, setOpen] = $3e6197669829fe11$export$40bfa8c7b0832715(props.isOpen, props.defaultOpen || false, props.onOpenChange);
|
|
539
|
+
let [point, setPoint] = useState(null);
|
|
537
540
|
return {
|
|
538
541
|
isOpen,
|
|
539
542
|
setOpen,
|
|
@@ -545,7 +548,9 @@ function $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props) {
|
|
|
545
548
|
}, [setOpen]),
|
|
546
549
|
toggle: useCallback(() => {
|
|
547
550
|
setOpen(!isOpen);
|
|
548
|
-
}, [setOpen, isOpen])
|
|
551
|
+
}, [setOpen, isOpen]),
|
|
552
|
+
point,
|
|
553
|
+
setPoint
|
|
549
554
|
};
|
|
550
555
|
}
|
|
551
556
|
//#endregion
|
|
@@ -1,20 +1,31 @@
|
|
|
1
|
-
import { g as $a4e76a5424781910$export$e08e3b67e392101e, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-
|
|
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-
|
|
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, 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
|
|
@@ -44,12 +55,14 @@ var $d27d541f9569d26d$var$PressEvent = class {
|
|
|
44
55
|
clientX = originalEvent.clientX;
|
|
45
56
|
clientY = originalEvent.clientY;
|
|
46
57
|
}
|
|
47
|
-
if (rect)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
if (rect) {
|
|
59
|
+
if (clientX != null && clientY != null) {
|
|
60
|
+
x = clientX - rect.left;
|
|
61
|
+
y = clientY - rect.top;
|
|
62
|
+
} else {
|
|
63
|
+
x = rect.width / 2;
|
|
64
|
+
y = rect.height / 2;
|
|
65
|
+
}
|
|
53
66
|
}
|
|
54
67
|
this.type = type;
|
|
55
68
|
this.pointerType = pointerType;
|
|
@@ -134,7 +147,7 @@ function $d27d541f9569d26d$export$45712eceda6fad21(props) {
|
|
|
134
147
|
onPress
|
|
135
148
|
]);
|
|
136
149
|
let triggerPressEndEvent = $fe16bffc7a557bf0$export$7f54fc3180508a52(triggerPressEnd);
|
|
137
|
-
let
|
|
150
|
+
let triggerPressUp = useCallback((originalEvent, pointerType) => {
|
|
138
151
|
let state = ref.current;
|
|
139
152
|
if (isDisabled) return false;
|
|
140
153
|
if (onPressUp) {
|
|
@@ -145,7 +158,8 @@ function $d27d541f9569d26d$export$45712eceda6fad21(props) {
|
|
|
145
158
|
return event.shouldStopPropagation;
|
|
146
159
|
}
|
|
147
160
|
return true;
|
|
148
|
-
}, [isDisabled, onPressUp])
|
|
161
|
+
}, [isDisabled, onPressUp]);
|
|
162
|
+
let triggerPressUpEvent = $fe16bffc7a557bf0$export$7f54fc3180508a52(triggerPressUp);
|
|
149
163
|
let cancel = useCallback((e) => {
|
|
150
164
|
let state = ref.current;
|
|
151
165
|
if (state.isPressed && state.target) {
|
|
@@ -273,9 +287,11 @@ function $d27d541f9569d26d$export$45712eceda6fad21(props) {
|
|
|
273
287
|
if (!allowTextSelectionOnPress) $cbf007e418543821$export$16a4697467175487(state.target);
|
|
274
288
|
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
275
289
|
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
276
|
-
if ("releasePointerCapture" in target)
|
|
277
|
-
if (
|
|
278
|
-
|
|
290
|
+
if ("releasePointerCapture" in target) {
|
|
291
|
+
if ("hasPointerCapture" in target) {
|
|
292
|
+
if (target.hasPointerCapture(e.pointerId)) target.releasePointerCapture(e.pointerId);
|
|
293
|
+
} else target.releasePointerCapture(e.pointerId);
|
|
294
|
+
}
|
|
279
295
|
addGlobalListener($d447af545b77c9f1$export$b204af158042fbac(e.currentTarget), "pointerup", onPointerUp, false);
|
|
280
296
|
addGlobalListener($d447af545b77c9f1$export$b204af158042fbac(e.currentTarget), "pointercancel", onPointerCancel, false);
|
|
281
297
|
}
|
|
@@ -313,10 +329,12 @@ function $d27d541f9569d26d$export$45712eceda6fad21(props) {
|
|
|
313
329
|
if ($23f2114a1b82827e$export$4282f70798064fe0(state.target, $23f2114a1b82827e$export$e58f029f0fbfdb29(e)) && state.pointerType != null) {
|
|
314
330
|
let clicked = false;
|
|
315
331
|
let timeout = setTimeout(() => {
|
|
316
|
-
if (state.isPressed && state.target instanceof HTMLElement)
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
332
|
+
if (state.isPressed && state.target instanceof HTMLElement) {
|
|
333
|
+
if (clicked) cancelEvent(e);
|
|
334
|
+
else {
|
|
335
|
+
$1969ac565cfec8d0$export$de79e2c695e052f3(state.target);
|
|
336
|
+
state.target.click();
|
|
337
|
+
}
|
|
320
338
|
}
|
|
321
339
|
}, 80);
|
|
322
340
|
addGlobalListener(e.currentTarget, "click", () => clicked = true, true);
|
|
@@ -581,7 +599,11 @@ function $d27d541f9569d26d$var$shouldPreventDefaultUp(target) {
|
|
|
581
599
|
return true;
|
|
582
600
|
}
|
|
583
601
|
function $d27d541f9569d26d$var$shouldPreventDefaultKeyboard(target, key) {
|
|
584
|
-
if (
|
|
602
|
+
if ($2add3ce32c6007eb$export$9ac100e40613ea10() && key === "Enter") return false;
|
|
603
|
+
if (target instanceof HTMLInputElement) {
|
|
604
|
+
if (key === "Enter" && (target.type === "checkbox" || target.type === "radio")) return false;
|
|
605
|
+
return !$d27d541f9569d26d$var$isValidInputKey(target, key);
|
|
606
|
+
}
|
|
585
607
|
return $d27d541f9569d26d$var$shouldPreventDefaultUp(target);
|
|
586
608
|
}
|
|
587
609
|
var $d27d541f9569d26d$var$nonTextInputTypes = new Set([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c, p as $390e54f620492c70$export$f680877a34711e37 } from "./utils-
|
|
1
|
+
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c, p as $390e54f620492c70$export$f680877a34711e37 } from "./utils-ClM91CuL.js";
|
|
2
2
|
import { useCallback, useRef, useState } from "react";
|
|
3
3
|
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
|
|
4
4
|
function $4c14b02d5228be26$export$9d4c57ee4c6ffdd8(initialState = true) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-
|
|
2
|
-
import {
|
|
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-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-
|
|
6
|
-
import { t as $191c9b6d48a0a4e2$export$294aa081a6c6f55d } from "./useField-
|
|
7
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, t as $860f7da480e22816$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
8
|
-
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-
|
|
5
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-JidySWlU.js";
|
|
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-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,10 +1,10 @@
|
|
|
1
|
-
import { u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-
|
|
2
|
-
import {
|
|
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-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-
|
|
7
|
-
import { t as $4c14b02d5228be26$export$ed2feabec4a533f4 } from "./useSlot-
|
|
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
|
+
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
|
|
10
10
|
function $876b6f32ca5a04c3$export$cbe85ee05b554577(props, state, ref) {
|
|
@@ -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.
|
|
@@ -20,4 +20,4 @@ export declare const arrayMoveMultiple: <T>(array: T[], fromIndices: number[], t
|
|
|
20
20
|
* @param {(items: T[]) => void} onChange - The callback to update the items.
|
|
21
21
|
* @param {string} [idKey='id'] - The key to use for the IDs.
|
|
22
22
|
*/
|
|
23
|
-
export declare const fixIds: <T extends
|
|
23
|
+
export declare const fixIds: <T extends object>(items: T[], onChange: (items: T[]) => void, idKey?: string) => void;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
var arrayMoveMultiple = (array, fromIndices, to, direction = "before") => {
|
|
15
15
|
const newArray = array.slice();
|
|
16
16
|
fromIndices.sort((a, b) => b - a);
|
|
17
|
-
const itemsToMove = fromIndices.
|
|
17
|
+
const itemsToMove = fromIndices.flatMap((index) => newArray.splice(index, 1));
|
|
18
18
|
let insertAt = to;
|
|
19
19
|
if (direction === "after") {
|
|
20
20
|
insertAt += 1;
|
|
@@ -33,9 +33,10 @@ var arrayMoveMultiple = (array, fromIndices, to, direction = "before") => {
|
|
|
33
33
|
* @param {string} [idKey='id'] - The key to use for the IDs.
|
|
34
34
|
*/
|
|
35
35
|
var fixIds = (items, onChange, idKey = "id") => {
|
|
36
|
-
const
|
|
36
|
+
const itemIdKey = idKey;
|
|
37
|
+
const allIds = items?.map((item) => item[itemIdKey]) ?? [];
|
|
37
38
|
const hasDuplicates = (input) => new Set(input)?.size !== input?.length;
|
|
38
|
-
const hasMissingIds = items?.some((item) =>
|
|
39
|
+
const hasMissingIds = items?.some((item) => item[itemIdKey] === void 0 || item[itemIdKey] === null || item[itemIdKey] === "");
|
|
39
40
|
if (hasDuplicates(allIds) && items?.length > 0 || hasMissingIds) onChange([...items].map((item, index) => ({
|
|
40
41
|
...item,
|
|
41
42
|
[idKey]: index + 1
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
type CallbackValue = string | number | boolean | bigint | symbol | null | undefined | object;
|
|
2
|
+
interface DebounceControls {
|
|
3
|
+
cancel: () => void;
|
|
4
|
+
flush: () => void;
|
|
5
|
+
}
|
|
6
|
+
type DebouncedCallback<T extends (...args: never[]) => CallbackValue> = ((...args: Parameters<T>) => void) & DebounceControls;
|
|
1
7
|
/**
|
|
2
8
|
* Debounces the provided function.
|
|
3
9
|
* For more information, check [this blog post](https://davidwalsh.name/javascript-debounce-function).
|
|
@@ -15,7 +21,7 @@
|
|
|
15
21
|
* // callback function.
|
|
16
22
|
* }, 250);
|
|
17
23
|
*/
|
|
18
|
-
export declare const debounce: <T extends (...args:
|
|
24
|
+
export declare const debounce: <T extends (...args: never[]) => CallbackValue>(func: T, wait?: number) => DebouncedCallback<T>;
|
|
19
25
|
/**
|
|
20
26
|
* Separated implementation of throttle functionality due to additional parameter in implementation.
|
|
21
27
|
*
|
|
@@ -28,4 +34,5 @@ export declare const debounce: <T extends (...args: unknown[]) => unknown>(func:
|
|
|
28
34
|
*
|
|
29
35
|
* @returns {T} Throttled callback.
|
|
30
36
|
*/
|
|
31
|
-
export declare const throttle: <T extends (...args:
|
|
37
|
+
export declare const throttle: <T extends (...args: never[]) => CallbackValue>(func: T, wait?: number, after?: boolean) => T;
|
|
38
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import justIsEmpty from 'just-is-empty';
|
|
2
|
+
type FirstCharacterInput = string | number | boolean | bigint | symbol | null | undefined;
|
|
1
3
|
/**
|
|
2
4
|
* Returns a camelCase-formatted string.
|
|
3
5
|
*
|
|
@@ -76,7 +78,7 @@ export declare const kebabCase: (input: string | null | undefined) => string;
|
|
|
76
78
|
* isEmpty([1, 2, 3]) // => false
|
|
77
79
|
* ```
|
|
78
80
|
*/
|
|
79
|
-
export declare const isEmpty: (input:
|
|
81
|
+
export declare const isEmpty: <T extends Parameters<typeof justIsEmpty>[0]>(input: T) => boolean;
|
|
80
82
|
/**
|
|
81
83
|
* Returns the string with its first character converted to uppercase.
|
|
82
84
|
*
|
|
@@ -87,7 +89,7 @@ export declare const isEmpty: (input: unknown) => boolean;
|
|
|
87
89
|
* @example
|
|
88
90
|
* upperFirst('new super Test-title') // => 'New super Test-title'
|
|
89
91
|
*/
|
|
90
|
-
export declare const upperFirst: (input:
|
|
92
|
+
export declare const upperFirst: (input: FirstCharacterInput) => string;
|
|
91
93
|
/**
|
|
92
94
|
* Returns the string with its first character converted to lowercase.
|
|
93
95
|
*
|
|
@@ -98,7 +100,7 @@ export declare const upperFirst: (input: unknown) => string;
|
|
|
98
100
|
* @example
|
|
99
101
|
* lowerFirst('New super Test-title') // => 'new super Test-title'
|
|
100
102
|
*/
|
|
101
|
-
export declare const lowerFirst: (input:
|
|
103
|
+
export declare const lowerFirst: (input: FirstCharacterInput) => string;
|
|
102
104
|
/**
|
|
103
105
|
* Checks if `key` is a direct property of `object`.
|
|
104
106
|
* Key may be a path of a value separated by `.`.
|
|
@@ -116,7 +118,7 @@ export declare const lowerFirst: (input: unknown) => string;
|
|
|
116
118
|
* has({ a: { b: 3 } }, 'a.c') // => false
|
|
117
119
|
* ```
|
|
118
120
|
*/
|
|
119
|
-
export declare const has: (obj:
|
|
121
|
+
export declare const has: <T extends object>(obj: T, key: string) => boolean;
|
|
120
122
|
/**
|
|
121
123
|
* Checks if value is a plain object, that is, an object created by the Object constructor or one with a `[[Prototype]]` of `null`.
|
|
122
124
|
*
|
|
@@ -131,7 +133,7 @@ export declare const has: (obj: object, key: string) => boolean;
|
|
|
131
133
|
* isPlainObject(new Boolean()) // => false
|
|
132
134
|
* ```
|
|
133
135
|
*/
|
|
134
|
-
export declare const isPlainObject: (value:
|
|
136
|
+
export declare const isPlainObject: <T>(value: T) => value is T & object;
|
|
135
137
|
/**
|
|
136
138
|
* Checks if value is the language type of `Object`.
|
|
137
139
|
* (e.g. arrays, functions, objects, regexes, new Number(0), and new String('')).
|
|
@@ -148,7 +150,7 @@ export declare const isPlainObject: (value: unknown) => value is Record<string,
|
|
|
148
150
|
* isObject(null) // => false
|
|
149
151
|
* ```
|
|
150
152
|
*/
|
|
151
|
-
export declare const isObject: (input:
|
|
153
|
+
export declare const isObject: <T>(input: T) => input is T & object;
|
|
152
154
|
/**
|
|
153
155
|
* Performs a deep comparison between two values to determine if they are equivalent.
|
|
154
156
|
*
|
|
@@ -166,7 +168,7 @@ export declare const isObject: (input: unknown) => input is object;
|
|
|
166
168
|
* isEqual({ a: 1 }, 'b') // => false
|
|
167
169
|
* ```
|
|
168
170
|
*/
|
|
169
|
-
export declare const isEqual: (first:
|
|
171
|
+
export declare const isEqual: <TFirst, TSecond>(first: TFirst, second: TSecond) => boolean;
|
|
170
172
|
/**
|
|
171
173
|
* Checks if value is the language type of `String`.
|
|
172
174
|
*
|
|
@@ -181,4 +183,5 @@ export declare const isEqual: (first: unknown, second: unknown) => boolean;
|
|
|
181
183
|
* isString(new String('Lorem')) // => false
|
|
182
184
|
* ```
|
|
183
185
|
*/
|
|
184
|
-
export declare const isString: (value:
|
|
186
|
+
export declare const isString: <T>(value: T) => value is T & string;
|
|
187
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isObject, c as kebabCase, d as snakeCase, f as upperFirst, i as isEqual, l as lowerFirst, n as has, o as isPlainObject, r as isEmpty, s as isString, t as camelCase, u as pascalCase } from "../es-dash-
|
|
1
|
+
import { a as isObject, c as kebabCase, d as snakeCase, f as upperFirst, i as isEqual, l as lowerFirst, n as has, o as isPlainObject, r as isEmpty, s as isString, t as camelCase, u as pascalCase } from "../es-dash-DPtJSRjw.js";
|
|
2
2
|
export { camelCase, has, isEmpty, isEqual, isObject, isPlainObject, isString, kebabCase, lowerFirst, pascalCase, snakeCase, upperFirst };
|