@eightshift/ui-components 7.2.1 → 7.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-pLMPWMFq.js +451 -0
- package/dist/Button-Biwg7zwt.js +223 -0
- package/dist/Dialog-C1sh8jbh.js +2474 -0
- package/dist/{Disclosure-NYWFw9RJ.js → Disclosure-B_SHgiUz.js} +50 -51
- package/dist/FocusScope-lGkM8AO8.js +734 -0
- package/dist/Form-BxIJCHYd.js +5 -0
- package/dist/Heading-B2EsUuu6.js +16 -0
- package/dist/{Hidden-8TB37dpK.js → Hidden-DYY00jLm.js} +10 -10
- package/dist/I18nProvider-Cm6dj5jY.js +93 -0
- package/dist/Label-B1TkoVOG.js +17 -0
- package/dist/ListBox-BquE0m8z.js +584 -0
- package/dist/{NumberFormatter-m5VW6MTK.js → NumberFormatter-JHF0Tadk.js} +24 -26
- package/dist/PortalProvider-BYcv24il.js +13 -0
- package/dist/RadioGroup-BxjLooWU.js +324 -0
- package/dist/SearchField-BkAU0HLm.js +322 -0
- package/dist/SelectionIndicator-Bx_EYBXD.js +13 -0
- package/dist/{Slider-DW1RuMVp.js → Slider-DSv6fyZ6.js} +321 -363
- package/dist/Text-C8pfwn0W.js +16 -0
- package/dist/{VisuallyHidden-CfsnJHZb.js → VisuallyHidden-KcXlGa5p.js} +12 -12
- package/dist/{animation-Bd2peown.js → animation-BJ-2VKdB.js} +12 -12
- 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/{button-D9cbyHeZ.js → button-CawAzlko.js} +21 -73
- package/dist/{checkbox-BO5RZmO8.js → checkbox-t7VrqXv2.js} +59 -62
- package/dist/{color-swatch-D2ZBkuTt.js → color-swatch-gU09x9Ga.js} +417 -414
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +5 -5
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/index.js +15 -15
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -5
- package/dist/components/menu/menu.js +11 -11
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +6 -6
- package/dist/components/portal-provider/portal-provider.js +2 -2
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +6 -6
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +5 -5
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/select/async-multi-select.js +27 -26
- package/dist/components/select/async-select.js +27 -26
- package/dist/components/select/multi-select.js +33 -32
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +33 -32
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +8 -8
- package/dist/components/slider/slider.js +8 -8
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-CTDVJ4zd.js → draggable-Cxv-OueQ.js} +1 -1
- package/dist/filterDOMProps-BfW758QC.js +69 -0
- package/dist/{gradient-editor-CD5Sho6A.js → gradient-editor-CInqVF8v.js} +6 -6
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +15 -15
- package/dist/{input-field-_OCWbftf.js → input-field-BdFrxQ-R.js} +46 -47
- package/dist/keyboard-CT41mQzR.js +55 -0
- package/dist/{link-input-BnjtzMbF.js → link-input-BDFhSSvH.js} +324 -356
- package/dist/{modal-snrElwty.js → modal-CJDaBdPh.js} +100 -92
- package/dist/{number-ZZIxJukn.js → number-MWRvGfyE.js} +10 -10
- package/dist/{number-picker-Dhtx4409.js → number-picker-BrxrB-xq.js} +43 -42
- package/dist/{shared-BpAYSi3F.js → shared-CI4kcnm8.js} +482 -502
- package/dist/{smart-image-CBNbxJ57.js → smart-image-eGdMu9s9.js} +2 -2
- package/dist/{solid-color-picker-DukArNH-.js → solid-color-picker-DXgX-OAm.js} +926 -935
- package/dist/{switch-DmsvyQPa.js → switch-DNHFoCCx.js} +28 -28
- package/dist/{tabs-Cy6gB0RL.js → tabs-C2tPOEYr.js} +145 -149
- package/dist/textSelection-BhX_2zV9.js +45 -0
- package/dist/{toggle-button-BlzUGfGy.js → toggle-button-DYDp11rq.js} +35 -35
- package/dist/{tooltip-BzJzYlcc.js → tooltip-C-hT6tN9.js} +162 -162
- package/dist/{useAsyncList-BNzwKoX4.js → useAsyncList-DsOh1xIx.js} +54 -74
- package/dist/{useButton-ra1ZSZ4z.js → useButton-BMZc4fTX.js} +11 -11
- package/dist/{SelectionManager-B8lLv6Ue.js → useCollection-CBVYSuGz.js} +1689 -1777
- package/dist/{useEvent-DkZVfgsS.js → useEvent-ypAU33vv.js} +5 -5
- package/dist/useField-BXf__jxy.js +32 -0
- package/dist/{useFilter-OiMnf6sb.js → useFilter-CfKEbIwL.js} +5 -5
- package/dist/{useFocusRing-DuYL4cdO.js → useFocusRing-BgYY-7ko.js} +23 -23
- package/dist/useFormReset-BuMc_O4y.js +17 -0
- package/dist/{FieldError-BWDbP5Db.js → useFormValidation-BcME9D0E.js} +63 -66
- package/dist/useHover-lyApu3ba.js +975 -0
- package/dist/{useLabel-2EohW5l6.js → useLabel-Rv8cIIKk.js} +8 -8
- package/dist/{useLabels-B2p7RXi5.js → useLabels-xOYtkA8o.js} +5 -5
- package/dist/useListState-u6DfeXHi.js +135 -0
- package/dist/{useLocalizedStringFormatter-Dv2diN3k.js → useLocalizedStringFormatter-CR-bmorj.js} +45 -45
- package/dist/{useNumberField-2xbi3jRV.js → useNumberFieldState-xL-ecwNz.js} +665 -619
- package/dist/useNumberFormatter-CR1PAFPG.js +10 -0
- package/dist/useOverlayTriggerState-AeCx45Gv.js +551 -0
- package/dist/usePress-Dnx5rBoD.js +593 -0
- package/dist/useTextField-BW3ZwGyz.js +159 -0
- package/dist/{useToggle-ecIirvIM.js → useToggle-BF5wptMP.js} +19 -20
- package/dist/useToggleState-D5P01lch.js +22 -0
- package/dist/useToolbar-BT25-MJg.js +55 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +3 -3
- package/dist/{utils-B_uiqNa4.js → utils-JFcCNFzy.js} +121 -122
- package/package.json +13 -13
- package/dist/Button-h6xF_WrP.js +0 -225
- package/dist/Dialog-i5VLQw1o.js +0 -2488
- package/dist/FocusScope-CgwbGOBB.js +0 -746
- package/dist/Form-DTMkbrQY.js +0 -5
- package/dist/Heading-Hol-wS_B.js +0 -16
- package/dist/Input-BURqyJXW.js +0 -161
- package/dist/Label-DFXXxMKY.js +0 -17
- package/dist/ListBox-BHUJxpwh.js +0 -600
- package/dist/OverlayArrow-BoloUPQM.js +0 -573
- package/dist/PortalProvider-DinZZCKX.js +0 -14
- package/dist/RSPContexts-C_z0bI8W.js +0 -12
- package/dist/RadioGroup-BwlGtCja.js +0 -329
- package/dist/SearchField-Cm1i5mLj.js +0 -764
- package/dist/SelectionIndicator-31L6EI9F.js +0 -13
- package/dist/Text-O6VBBDlP.js +0 -16
- package/dist/context-C-XNeJ_l.js +0 -93
- package/dist/filterDOMProps-_2_3GD-K.js +0 -69
- package/dist/textSelection-Dv6WPj0Z.js +0 -45
- package/dist/useField-D0WrzR2F.js +0 -32
- package/dist/useFormReset-DdkykzAn.js +0 -18
- package/dist/useHover-qaMm3XFO.js +0 -982
- package/dist/useListState-CD_5vfyy.js +0 -147
- package/dist/useNumberFormatter-C2Cm2mNj.js +0 -10
- package/dist/usePress-ZP1TjkFf.js +0 -678
- package/dist/useToggleState-IIDbiKPl.js +0 -23
- /package/dist/{List-DWlgW2Ex.js → List---tsVJlI.js} +0 -0
- /package/dist/{build-module-Bsx62nlm.js → build-module-K6vi4xE0.js} +0 -0
- /package/dist/{debounce-throttle-DXxSAKpq.js → debounce-throttle-LSPAPFtq.js} +0 -0
- /package/dist/{dist-2gkv7_1U.js → dist-jw8wvxoG.js} +0 -0
- /package/dist/{es-dash-HqXWZZ3_.js → es-dash-BuShf_ht.js} +0 -0
- /package/dist/{jsx-svg-DgKbriN1.js → jsx-svg-DT1SBWuP.js} +0 -0
- /package/dist/{utilities-lwX686oD.js → utilities-DV0KKJNR.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { c as $
|
|
2
|
-
import { H as $
|
|
3
|
-
import { t as $
|
|
4
|
-
import { t as $
|
|
5
|
-
import {
|
|
6
|
-
import { t as $
|
|
7
|
-
import { t as $
|
|
8
|
-
import {
|
|
9
|
-
import { t as $
|
|
10
|
-
import { t as $
|
|
11
|
-
import { t as $
|
|
12
|
-
import { t as $
|
|
1
|
+
import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-JFcCNFzy.js";
|
|
2
|
+
import { G as $d447af545b77c9f1$export$f21a1ffae260145a, H as $23f2114a1b82827e$export$e58f029f0fbfdb29, R as $1969ac565cfec8d0$export$de79e2c695e052f3, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, i as $d1116acdf220c2da$export$4c014de7c8940b4c, m as $8f5a2122b0992be3$export$8397ddfc504fdb9a, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-lyApu3ba.js";
|
|
3
|
+
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-Cm6dj5jY.js";
|
|
4
|
+
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BfW758QC.js";
|
|
5
|
+
import { n as $cbf007e418543821$export$b0d6fa1ab32e3295, t as $cbf007e418543821$export$16a4697467175487 } from "./textSelection-BhX_2zV9.js";
|
|
6
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-BgYY-7ko.js";
|
|
7
|
+
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-B1TkoVOG.js";
|
|
8
|
+
import { t as $0beb20c9744a2065$export$8467354a121f1b9f } from "./useLabel-Rv8cIIKk.js";
|
|
9
|
+
import { t as $bd90acf18e792be6$export$b7a616150fdb9f44 } from "./useNumberFormatter-CR1PAFPG.js";
|
|
10
|
+
import { r as $240e9101ba2842f5$export$cb6e0bb50bc19463, t as $240e9101ba2842f5$export$7d15b64cf5a3a4c4 } from "./number-MWRvGfyE.js";
|
|
11
|
+
import { t as $ea3928288112382f$export$439d29a4e110a164 } from "./VisuallyHidden-KcXlGa5p.js";
|
|
12
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-BuMc_O4y.js";
|
|
13
13
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
14
|
-
//#region node_modules
|
|
15
|
-
function $
|
|
14
|
+
//#region node_modules/react-aria/dist/private/interactions/useMove.mjs
|
|
15
|
+
function $1dfdc54e7eb53ba0$export$36da96379f79f245(props) {
|
|
16
16
|
let { onMoveStart, onMove, onMoveEnd } = props;
|
|
17
17
|
let state = useRef({
|
|
18
18
|
didMove: false,
|
|
19
19
|
lastPosition: null,
|
|
20
20
|
id: null
|
|
21
21
|
});
|
|
22
|
-
let { addGlobalListener, removeGlobalListener } = $
|
|
23
|
-
let
|
|
22
|
+
let { addGlobalListener, removeGlobalListener } = $48a7d519b337145d$export$4eaf04e54aa8eed6();
|
|
23
|
+
let moveEvent = $fe16bffc7a557bf0$export$7f54fc3180508a52(useCallback((originalEvent, pointerType, deltaX, deltaY) => {
|
|
24
24
|
if (deltaX === 0 && deltaY === 0) return;
|
|
25
25
|
if (!state.current.didMove) {
|
|
26
26
|
state.current.didMove = true;
|
|
27
|
-
onMoveStart
|
|
27
|
+
onMoveStart?.({
|
|
28
28
|
type: "movestart",
|
|
29
29
|
pointerType,
|
|
30
30
|
shiftKey: originalEvent.shiftKey,
|
|
@@ -33,7 +33,7 @@ function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
|
33
33
|
altKey: originalEvent.altKey
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
onMove
|
|
36
|
+
onMove?.({
|
|
37
37
|
type: "move",
|
|
38
38
|
pointerType,
|
|
39
39
|
deltaX,
|
|
@@ -47,11 +47,10 @@ function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
|
47
47
|
onMoveStart,
|
|
48
48
|
onMove,
|
|
49
49
|
state
|
|
50
|
-
]);
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
if (state.current.didMove) onMoveEnd === null || onMoveEnd === void 0 || onMoveEnd({
|
|
50
|
+
]));
|
|
51
|
+
let endEvent = $fe16bffc7a557bf0$export$7f54fc3180508a52(useCallback((originalEvent, pointerType) => {
|
|
52
|
+
$cbf007e418543821$export$b0d6fa1ab32e3295();
|
|
53
|
+
if (state.current.didMove) onMoveEnd?.({
|
|
55
54
|
type: "moveend",
|
|
56
55
|
pointerType,
|
|
57
56
|
shiftKey: originalEvent.shiftKey,
|
|
@@ -59,75 +58,50 @@ function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
|
59
58
|
ctrlKey: originalEvent.ctrlKey,
|
|
60
59
|
altKey: originalEvent.altKey
|
|
61
60
|
});
|
|
62
|
-
}, [onMoveEnd, state]);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
moveEvent(e,
|
|
61
|
+
}, [onMoveEnd, state]));
|
|
62
|
+
return { moveProps: useMemo(() => {
|
|
63
|
+
let moveProps = {};
|
|
64
|
+
let start = () => {
|
|
65
|
+
$cbf007e418543821$export$16a4697467175487();
|
|
66
|
+
state.current.didMove = false;
|
|
67
|
+
};
|
|
68
|
+
if (typeof PointerEvent === "undefined" && process.env.NODE_ENV === "test") {
|
|
69
|
+
let onMouseMove = (e) => {
|
|
70
|
+
if (e.button === 0) {
|
|
71
|
+
moveEvent(e, "mouse", e.pageX - (state.current.lastPosition?.pageX ?? 0), e.pageY - (state.current.lastPosition?.pageY ?? 0));
|
|
73
72
|
state.current.lastPosition = {
|
|
74
73
|
pageX: e.pageX,
|
|
75
74
|
pageY: e.pageY
|
|
76
75
|
};
|
|
77
76
|
}
|
|
78
77
|
};
|
|
79
|
-
let
|
|
80
|
-
if (e.
|
|
81
|
-
endEvent(e,
|
|
82
|
-
|
|
83
|
-
removeGlobalListener(
|
|
84
|
-
removeGlobalListener(
|
|
85
|
-
removeGlobalListener(window, "pointercancel", onPointerUp, false);
|
|
86
|
-
setPointerDown(null);
|
|
78
|
+
let onMouseUp = (e) => {
|
|
79
|
+
if (e.button === 0) {
|
|
80
|
+
endEvent(e, "mouse");
|
|
81
|
+
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a($23f2114a1b82827e$export$e58f029f0fbfdb29(e));
|
|
82
|
+
removeGlobalListener(ownerWindow, "mousemove", onMouseMove, false);
|
|
83
|
+
removeGlobalListener(ownerWindow, "mouseup", onMouseUp, false);
|
|
87
84
|
}
|
|
88
85
|
};
|
|
89
|
-
|
|
90
|
-
addGlobalListener(window, "pointerup", onPointerUp, false);
|
|
91
|
-
addGlobalListener(window, "pointercancel", onPointerUp, false);
|
|
92
|
-
return () => {
|
|
93
|
-
removeGlobalListener(window, "pointermove", onPointerMove, false);
|
|
94
|
-
removeGlobalListener(window, "pointerup", onPointerUp, false);
|
|
95
|
-
removeGlobalListener(window, "pointercancel", onPointerUp, false);
|
|
96
|
-
};
|
|
97
|
-
} else if (pointerDown === "mouse" && process.env.NODE_ENV === "test") {
|
|
98
|
-
let onMouseMove = (e) => {
|
|
86
|
+
moveProps.onMouseDown = (e) => {
|
|
99
87
|
if (e.button === 0) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
88
|
+
start();
|
|
89
|
+
e.stopPropagation();
|
|
90
|
+
e.preventDefault();
|
|
103
91
|
state.current.lastPosition = {
|
|
104
92
|
pageX: e.pageX,
|
|
105
93
|
pageY: e.pageY
|
|
106
94
|
};
|
|
95
|
+
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a($23f2114a1b82827e$export$e58f029f0fbfdb29(e));
|
|
96
|
+
addGlobalListener(ownerWindow, "mousemove", onMouseMove, false);
|
|
97
|
+
addGlobalListener(ownerWindow, "mouseup", onMouseUp, false);
|
|
107
98
|
}
|
|
108
99
|
};
|
|
109
|
-
let onMouseUp = (e) => {
|
|
110
|
-
if (e.button === 0) {
|
|
111
|
-
endEvent(e, "mouse");
|
|
112
|
-
removeGlobalListener(window, "mousemove", onMouseMove, false);
|
|
113
|
-
removeGlobalListener(window, "mouseup", onMouseUp, false);
|
|
114
|
-
setPointerDown(null);
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
addGlobalListener(window, "mousemove", onMouseMove, false);
|
|
118
|
-
addGlobalListener(window, "mouseup", onMouseUp, false);
|
|
119
|
-
return () => {
|
|
120
|
-
removeGlobalListener(window, "mousemove", onMouseMove, false);
|
|
121
|
-
removeGlobalListener(window, "mouseup", onMouseUp, false);
|
|
122
|
-
};
|
|
123
|
-
} else if (pointerDown === "touch" && process.env.NODE_ENV === "test") {
|
|
124
100
|
let onTouchMove = (e) => {
|
|
125
101
|
let touch = [...e.changedTouches].findIndex(({ identifier }) => identifier === state.current.id);
|
|
126
102
|
if (touch >= 0) {
|
|
127
|
-
var _state_current_lastPosition, _state_current_lastPosition1;
|
|
128
103
|
let { pageX, pageY } = e.changedTouches[touch];
|
|
129
|
-
|
|
130
|
-
moveEvent(e, "touch", pageX - ((_state_current_lastPosition_pageX = (_state_current_lastPosition = state.current.lastPosition) === null || _state_current_lastPosition === void 0 ? void 0 : _state_current_lastPosition.pageX) !== null && _state_current_lastPosition_pageX !== void 0 ? _state_current_lastPosition_pageX : 0), pageY - ((_state_current_lastPosition_pageY = (_state_current_lastPosition1 = state.current.lastPosition) === null || _state_current_lastPosition1 === void 0 ? void 0 : _state_current_lastPosition1.pageY) !== null && _state_current_lastPosition_pageY !== void 0 ? _state_current_lastPosition_pageY : 0));
|
|
104
|
+
moveEvent(e, "touch", pageX - (state.current.lastPosition?.pageX ?? 0), pageY - (state.current.lastPosition?.pageY ?? 0));
|
|
131
105
|
state.current.lastPosition = {
|
|
132
106
|
pageX,
|
|
133
107
|
pageY
|
|
@@ -138,43 +112,10 @@ function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
|
138
112
|
if ([...e.changedTouches].findIndex(({ identifier }) => identifier === state.current.id) >= 0) {
|
|
139
113
|
endEvent(e, "touch");
|
|
140
114
|
state.current.id = null;
|
|
141
|
-
|
|
142
|
-
removeGlobalListener(
|
|
143
|
-
removeGlobalListener(
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
addGlobalListener(window, "touchmove", onTouchMove, false);
|
|
148
|
-
addGlobalListener(window, "touchend", onTouchEnd, false);
|
|
149
|
-
addGlobalListener(window, "touchcancel", onTouchEnd, false);
|
|
150
|
-
return () => {
|
|
151
|
-
removeGlobalListener(window, "touchmove", onTouchMove, false);
|
|
152
|
-
removeGlobalListener(window, "touchend", onTouchEnd, false);
|
|
153
|
-
removeGlobalListener(window, "touchcancel", onTouchEnd, false);
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
}, [
|
|
157
|
-
pointerDown,
|
|
158
|
-
addGlobalListener,
|
|
159
|
-
removeGlobalListener
|
|
160
|
-
]);
|
|
161
|
-
return { moveProps: useMemo(() => {
|
|
162
|
-
let moveProps = {};
|
|
163
|
-
let start = () => {
|
|
164
|
-
$14c0b72509d70225$export$16a4697467175487();
|
|
165
|
-
state.current.didMove = false;
|
|
166
|
-
};
|
|
167
|
-
if (typeof PointerEvent === "undefined" && process.env.NODE_ENV === "test") {
|
|
168
|
-
moveProps.onMouseDown = (e) => {
|
|
169
|
-
if (e.button === 0) {
|
|
170
|
-
start();
|
|
171
|
-
e.stopPropagation();
|
|
172
|
-
e.preventDefault();
|
|
173
|
-
state.current.lastPosition = {
|
|
174
|
-
pageX: e.pageX,
|
|
175
|
-
pageY: e.pageY
|
|
176
|
-
};
|
|
177
|
-
setPointerDown("mouse");
|
|
115
|
+
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a($23f2114a1b82827e$export$e58f029f0fbfdb29(e));
|
|
116
|
+
removeGlobalListener(ownerWindow, "touchmove", onTouchMove);
|
|
117
|
+
removeGlobalListener(ownerWindow, "touchend", onTouchEnd);
|
|
118
|
+
removeGlobalListener(ownerWindow, "touchcancel", onTouchEnd);
|
|
178
119
|
}
|
|
179
120
|
};
|
|
180
121
|
moveProps.onTouchStart = (e) => {
|
|
@@ -188,25 +129,52 @@ function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
|
188
129
|
pageY
|
|
189
130
|
};
|
|
190
131
|
state.current.id = identifier;
|
|
191
|
-
|
|
132
|
+
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a($23f2114a1b82827e$export$e58f029f0fbfdb29(e));
|
|
133
|
+
addGlobalListener(ownerWindow, "touchmove", onTouchMove, false);
|
|
134
|
+
addGlobalListener(ownerWindow, "touchend", onTouchEnd, false);
|
|
135
|
+
addGlobalListener(ownerWindow, "touchcancel", onTouchEnd, false);
|
|
192
136
|
};
|
|
193
|
-
} else
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
137
|
+
} else {
|
|
138
|
+
let onPointerMove = (e) => {
|
|
139
|
+
if (e.pointerId === state.current.id) {
|
|
140
|
+
moveEvent(e, e.pointerType || "mouse", e.pageX - (state.current.lastPosition?.pageX ?? 0), e.pageY - (state.current.lastPosition?.pageY ?? 0));
|
|
141
|
+
state.current.lastPosition = {
|
|
142
|
+
pageX: e.pageX,
|
|
143
|
+
pageY: e.pageY
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
let onPointerUp = (e) => {
|
|
148
|
+
if (e.pointerId === state.current.id) {
|
|
149
|
+
endEvent(e, e.pointerType || "mouse");
|
|
150
|
+
state.current.id = null;
|
|
151
|
+
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a($23f2114a1b82827e$export$e58f029f0fbfdb29(e));
|
|
152
|
+
removeGlobalListener(ownerWindow, "pointermove", onPointerMove, false);
|
|
153
|
+
removeGlobalListener(ownerWindow, "pointerup", onPointerUp, false);
|
|
154
|
+
removeGlobalListener(ownerWindow, "pointercancel", onPointerUp, false);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
moveProps.onPointerDown = (e) => {
|
|
158
|
+
if (e.button === 0 && state.current.id == null) {
|
|
159
|
+
start();
|
|
160
|
+
e.stopPropagation();
|
|
161
|
+
e.preventDefault();
|
|
162
|
+
state.current.lastPosition = {
|
|
163
|
+
pageX: e.pageX,
|
|
164
|
+
pageY: e.pageY
|
|
165
|
+
};
|
|
166
|
+
state.current.id = e.pointerId;
|
|
167
|
+
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a($23f2114a1b82827e$export$e58f029f0fbfdb29(e));
|
|
168
|
+
addGlobalListener(ownerWindow, "pointermove", onPointerMove, false);
|
|
169
|
+
addGlobalListener(ownerWindow, "pointerup", onPointerUp, false);
|
|
170
|
+
addGlobalListener(ownerWindow, "pointercancel", onPointerUp, false);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
206
174
|
let triggerKeyboardMove = (e, deltaX, deltaY) => {
|
|
207
175
|
start();
|
|
208
|
-
|
|
209
|
-
|
|
176
|
+
moveEvent(e, "keyboard", deltaX, deltaY);
|
|
177
|
+
endEvent(e, "keyboard");
|
|
210
178
|
};
|
|
211
179
|
moveProps.onKeyDown = (e) => {
|
|
212
180
|
switch (e.key) {
|
|
@@ -238,180 +206,35 @@ function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
|
238
206
|
};
|
|
239
207
|
return moveProps;
|
|
240
208
|
}, [
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
209
|
+
addGlobalListener,
|
|
210
|
+
removeGlobalListener,
|
|
211
|
+
state
|
|
244
212
|
]) };
|
|
245
213
|
}
|
|
246
214
|
//#endregion
|
|
247
|
-
//#region node_modules
|
|
248
|
-
var $
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
function $28f99e3e86e6ec45$export$e5fda3247f5d67f9(props) {
|
|
252
|
-
const { isDisabled = false, minValue = $28f99e3e86e6ec45$var$DEFAULT_MIN_VALUE, maxValue = $28f99e3e86e6ec45$var$DEFAULT_MAX_VALUE, numberFormatter: formatter, step = $28f99e3e86e6ec45$var$DEFAULT_STEP_VALUE, orientation = "horizontal" } = props;
|
|
253
|
-
let pageSize = useMemo(() => {
|
|
254
|
-
let calcPageSize = (maxValue - minValue) / 10;
|
|
255
|
-
calcPageSize = $9446cca9a3875146$export$cb6e0bb50bc19463(calcPageSize, 0, calcPageSize + step, step);
|
|
256
|
-
return Math.max(calcPageSize, step);
|
|
257
|
-
}, [
|
|
258
|
-
step,
|
|
259
|
-
maxValue,
|
|
260
|
-
minValue
|
|
261
|
-
]);
|
|
262
|
-
let restrictValues = useCallback((values) => values === null || values === void 0 ? void 0 : values.map((val, idx) => {
|
|
263
|
-
return $9446cca9a3875146$export$cb6e0bb50bc19463(val, idx === 0 ? minValue : values[idx - 1], idx === values.length - 1 ? maxValue : values[idx + 1], step);
|
|
264
|
-
}), [
|
|
265
|
-
minValue,
|
|
266
|
-
maxValue,
|
|
267
|
-
step
|
|
268
|
-
]);
|
|
269
|
-
let value = useMemo(() => restrictValues($28f99e3e86e6ec45$var$convertValue(props.value)), [props.value, restrictValues]);
|
|
270
|
-
let defaultValue = useMemo(() => {
|
|
271
|
-
var _convertValue;
|
|
272
|
-
return restrictValues((_convertValue = $28f99e3e86e6ec45$var$convertValue(props.defaultValue)) !== null && _convertValue !== void 0 ? _convertValue : [minValue]);
|
|
273
|
-
}, [
|
|
274
|
-
props.defaultValue,
|
|
275
|
-
minValue,
|
|
276
|
-
restrictValues
|
|
277
|
-
]);
|
|
278
|
-
let onChange = $28f99e3e86e6ec45$var$createOnChange(props.value, props.defaultValue, props.onChange);
|
|
279
|
-
let onChangeEnd = $28f99e3e86e6ec45$var$createOnChange(props.value, props.defaultValue, props.onChangeEnd);
|
|
280
|
-
const [values, setValuesState] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange);
|
|
281
|
-
let [initialValues] = useState(values);
|
|
282
|
-
const [isDraggings, setDraggingsState] = useState(new Array(values.length).fill(false));
|
|
283
|
-
const isEditablesRef = useRef(new Array(values.length).fill(true));
|
|
284
|
-
const [focusedIndex, setFocusedIndex] = useState(void 0);
|
|
285
|
-
const valuesRef = useRef(values);
|
|
286
|
-
const isDraggingsRef = useRef(isDraggings);
|
|
287
|
-
let setValues = (values) => {
|
|
288
|
-
valuesRef.current = values;
|
|
289
|
-
setValuesState(values);
|
|
290
|
-
};
|
|
291
|
-
let setDraggings = (draggings) => {
|
|
292
|
-
isDraggingsRef.current = draggings;
|
|
293
|
-
setDraggingsState(draggings);
|
|
294
|
-
};
|
|
295
|
-
function getValuePercent(value) {
|
|
296
|
-
return (value - minValue) / (maxValue - minValue);
|
|
297
|
-
}
|
|
298
|
-
function getThumbMinValue(index) {
|
|
299
|
-
return index === 0 ? minValue : values[index - 1];
|
|
300
|
-
}
|
|
301
|
-
function getThumbMaxValue(index) {
|
|
302
|
-
return index === values.length - 1 ? maxValue : values[index + 1];
|
|
303
|
-
}
|
|
304
|
-
function isThumbEditable(index) {
|
|
305
|
-
return isEditablesRef.current[index];
|
|
306
|
-
}
|
|
307
|
-
function setThumbEditable(index, editable) {
|
|
308
|
-
isEditablesRef.current[index] = editable;
|
|
309
|
-
}
|
|
310
|
-
function updateValue(index, value) {
|
|
311
|
-
if (isDisabled || !isThumbEditable(index)) return;
|
|
312
|
-
const thisMin = getThumbMinValue(index);
|
|
313
|
-
const thisMax = getThumbMaxValue(index);
|
|
314
|
-
value = $9446cca9a3875146$export$cb6e0bb50bc19463(value, thisMin, thisMax, step);
|
|
315
|
-
setValues($28f99e3e86e6ec45$var$replaceIndex(valuesRef.current, index, value));
|
|
316
|
-
}
|
|
317
|
-
function updateDragging(index, dragging) {
|
|
318
|
-
if (isDisabled || !isThumbEditable(index)) return;
|
|
319
|
-
if (dragging) valuesRef.current = values;
|
|
320
|
-
const wasDragging = isDraggingsRef.current[index];
|
|
321
|
-
isDraggingsRef.current = $28f99e3e86e6ec45$var$replaceIndex(isDraggingsRef.current, index, dragging);
|
|
322
|
-
setDraggings(isDraggingsRef.current);
|
|
323
|
-
if (onChangeEnd && wasDragging && !isDraggingsRef.current.some(Boolean)) onChangeEnd(valuesRef.current);
|
|
324
|
-
}
|
|
325
|
-
function getFormattedValue(value) {
|
|
326
|
-
return formatter.format(value);
|
|
327
|
-
}
|
|
328
|
-
function setThumbPercent(index, percent) {
|
|
329
|
-
updateValue(index, getPercentValue(percent));
|
|
330
|
-
}
|
|
331
|
-
function getRoundedValue(value) {
|
|
332
|
-
return Math.round((value - minValue) / step) * step + minValue;
|
|
333
|
-
}
|
|
334
|
-
function getPercentValue(percent) {
|
|
335
|
-
return $9446cca9a3875146$export$7d15b64cf5a3a4c4(getRoundedValue(percent * (maxValue - minValue) + minValue), minValue, maxValue);
|
|
336
|
-
}
|
|
337
|
-
function incrementThumb(index, stepSize = 1) {
|
|
338
|
-
let s = Math.max(stepSize, step);
|
|
339
|
-
updateValue(index, $9446cca9a3875146$export$cb6e0bb50bc19463(values[index] + s, minValue, maxValue, step));
|
|
340
|
-
}
|
|
341
|
-
function decrementThumb(index, stepSize = 1) {
|
|
342
|
-
let s = Math.max(stepSize, step);
|
|
343
|
-
updateValue(index, $9446cca9a3875146$export$cb6e0bb50bc19463(values[index] - s, minValue, maxValue, step));
|
|
344
|
-
}
|
|
345
|
-
return {
|
|
346
|
-
values,
|
|
347
|
-
defaultValues: props.defaultValue !== void 0 ? defaultValue : initialValues,
|
|
348
|
-
getThumbValue: (index) => values[index],
|
|
349
|
-
setThumbValue: updateValue,
|
|
350
|
-
setThumbPercent,
|
|
351
|
-
isThumbDragging: (index) => isDraggings[index],
|
|
352
|
-
setThumbDragging: updateDragging,
|
|
353
|
-
focusedThumb: focusedIndex,
|
|
354
|
-
setFocusedThumb: setFocusedIndex,
|
|
355
|
-
getThumbPercent: (index) => getValuePercent(values[index]),
|
|
356
|
-
getValuePercent,
|
|
357
|
-
getThumbValueLabel: (index) => getFormattedValue(values[index]),
|
|
358
|
-
getFormattedValue,
|
|
359
|
-
getThumbMinValue,
|
|
360
|
-
getThumbMaxValue,
|
|
361
|
-
getPercentValue,
|
|
362
|
-
isThumbEditable,
|
|
363
|
-
setThumbEditable,
|
|
364
|
-
incrementThumb,
|
|
365
|
-
decrementThumb,
|
|
366
|
-
step,
|
|
367
|
-
pageSize,
|
|
368
|
-
orientation,
|
|
369
|
-
isDisabled
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
function $28f99e3e86e6ec45$var$replaceIndex(array, index, value) {
|
|
373
|
-
if (array[index] === value) return array;
|
|
374
|
-
return [
|
|
375
|
-
...array.slice(0, index),
|
|
376
|
-
value,
|
|
377
|
-
...array.slice(index + 1)
|
|
378
|
-
];
|
|
379
|
-
}
|
|
380
|
-
function $28f99e3e86e6ec45$var$convertValue(value) {
|
|
381
|
-
if (value == null) return void 0;
|
|
382
|
-
return Array.isArray(value) ? value : [value];
|
|
383
|
-
}
|
|
384
|
-
function $28f99e3e86e6ec45$var$createOnChange(value, defaultValue, onChange) {
|
|
385
|
-
return (newValue) => {
|
|
386
|
-
if (typeof value === "number" || typeof defaultValue === "number") onChange === null || onChange === void 0 || onChange(newValue[0]);
|
|
387
|
-
else onChange === null || onChange === void 0 || onChange(newValue);
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
//#endregion
|
|
391
|
-
//#region node_modules/@react-aria/slider/dist/utils.mjs
|
|
392
|
-
var $aa519ee6cf463259$export$d6c8d9636a3dc49c = new WeakMap();
|
|
393
|
-
function $aa519ee6cf463259$export$68e648cbec363a18(state, index) {
|
|
394
|
-
let data = $aa519ee6cf463259$export$d6c8d9636a3dc49c.get(state);
|
|
215
|
+
//#region node_modules/react-aria/dist/private/slider/utils.mjs
|
|
216
|
+
var $b2a66ce670b3f60f$export$d6c8d9636a3dc49c = new WeakMap();
|
|
217
|
+
function $b2a66ce670b3f60f$export$68e648cbec363a18(state, index) {
|
|
218
|
+
let data = $b2a66ce670b3f60f$export$d6c8d9636a3dc49c.get(state);
|
|
395
219
|
if (!data) throw new Error("Unknown slider state");
|
|
396
220
|
return `${data.id}-${index}`;
|
|
397
221
|
}
|
|
398
222
|
//#endregion
|
|
399
|
-
//#region node_modules
|
|
400
|
-
function $
|
|
401
|
-
let { labelProps, fieldProps } = $
|
|
223
|
+
//#region node_modules/react-aria/dist/private/slider/useSlider.mjs
|
|
224
|
+
function $4b964a467b2bc7ea$export$56b2c08e277f365(props, state, trackRef) {
|
|
225
|
+
let { labelProps, fieldProps } = $0beb20c9744a2065$export$8467354a121f1b9f(props);
|
|
402
226
|
let isVertical = props.orientation === "vertical";
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
id: (_labelProps_id = labelProps.id) !== null && _labelProps_id !== void 0 ? _labelProps_id : fieldProps.id,
|
|
227
|
+
$b2a66ce670b3f60f$export$d6c8d9636a3dc49c.set(state, {
|
|
228
|
+
id: labelProps.id ?? fieldProps.id,
|
|
406
229
|
"aria-describedby": props["aria-describedby"],
|
|
407
230
|
"aria-details": props["aria-details"]
|
|
408
231
|
});
|
|
409
|
-
let { direction } = $
|
|
410
|
-
let { addGlobalListener, removeGlobalListener } = $
|
|
232
|
+
let { direction } = $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7();
|
|
233
|
+
let { addGlobalListener, removeGlobalListener } = $48a7d519b337145d$export$4eaf04e54aa8eed6();
|
|
411
234
|
const realTimeTrackDraggingIndex = useRef(null);
|
|
412
235
|
const reverseX = direction === "rtl";
|
|
413
236
|
const currentPosition = useRef(null);
|
|
414
|
-
const { moveProps } = $
|
|
237
|
+
const { moveProps } = $1dfdc54e7eb53ba0$export$36da96379f79f245({
|
|
415
238
|
onMoveStart() {
|
|
416
239
|
currentPosition.current = null;
|
|
417
240
|
},
|
|
@@ -424,7 +247,7 @@ function $bcca50147b47f54d$export$56b2c08e277f365(props, state, trackRef) {
|
|
|
424
247
|
if (isVertical || reverseX) delta = -delta;
|
|
425
248
|
currentPosition.current += delta;
|
|
426
249
|
if (realTimeTrackDraggingIndex.current != null && trackRef.current) {
|
|
427
|
-
const percent = $
|
|
250
|
+
const percent = $240e9101ba2842f5$export$7d15b64cf5a3a4c4(currentPosition.current / size, 0, 1);
|
|
428
251
|
state.setThumbPercent(realTimeTrackDraggingIndex.current, percent);
|
|
429
252
|
}
|
|
430
253
|
},
|
|
@@ -467,9 +290,7 @@ function $bcca50147b47f54d$export$56b2c08e277f365(props, state, trackRef) {
|
|
|
467
290
|
}
|
|
468
291
|
};
|
|
469
292
|
let onUpTrack = (e) => {
|
|
470
|
-
|
|
471
|
-
var _e_pointerId;
|
|
472
|
-
if (((_e_pointerId = e.pointerId) !== null && _e_pointerId !== void 0 ? _e_pointerId : (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0].identifier) === currentPointer.current) {
|
|
293
|
+
if ((e.pointerId ?? e.changedTouches?.[0].identifier) === currentPointer.current) {
|
|
473
294
|
if (realTimeTrackDraggingIndex.current != null) {
|
|
474
295
|
state.setThumbDragging(realTimeTrackDraggingIndex.current, false);
|
|
475
296
|
realTimeTrackDraggingIndex.current = null;
|
|
@@ -482,9 +303,8 @@ function $bcca50147b47f54d$export$56b2c08e277f365(props, state, trackRef) {
|
|
|
482
303
|
if ("htmlFor" in labelProps && labelProps.htmlFor) {
|
|
483
304
|
delete labelProps.htmlFor;
|
|
484
305
|
labelProps.onClick = () => {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
$507fabe10e71c6fb$export$8397ddfc504fdb9a("keyboard");
|
|
306
|
+
document.getElementById($b2a66ce670b3f60f$export$68e648cbec363a18(state, 0))?.focus();
|
|
307
|
+
$8f5a2122b0992be3$export$8397ddfc504fdb9a("keyboard");
|
|
488
308
|
};
|
|
489
309
|
}
|
|
490
310
|
return {
|
|
@@ -493,7 +313,7 @@ function $bcca50147b47f54d$export$56b2c08e277f365(props, state, trackRef) {
|
|
|
493
313
|
role: "group",
|
|
494
314
|
...fieldProps
|
|
495
315
|
},
|
|
496
|
-
trackProps: $
|
|
316
|
+
trackProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928({
|
|
497
317
|
onMouseDown(e) {
|
|
498
318
|
if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
499
319
|
onDownTrack(e, void 0, e.clientX, e.clientY);
|
|
@@ -511,29 +331,28 @@ function $bcca50147b47f54d$export$56b2c08e277f365(props, state, trackRef) {
|
|
|
511
331
|
}
|
|
512
332
|
}, moveProps),
|
|
513
333
|
outputProps: {
|
|
514
|
-
htmlFor: state.values.map((_, index) => $
|
|
334
|
+
htmlFor: state.values.map((_, index) => $b2a66ce670b3f60f$export$68e648cbec363a18(state, index)).join(" "),
|
|
515
335
|
"aria-live": "off"
|
|
516
336
|
}
|
|
517
337
|
};
|
|
518
338
|
}
|
|
519
339
|
//#endregion
|
|
520
|
-
//#region node_modules
|
|
521
|
-
function $
|
|
340
|
+
//#region node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
|
|
341
|
+
function $4a5dd96ecb58ab11$export$8d15029008292ae(opts, state) {
|
|
522
342
|
let { index = 0, isRequired, validationState, isInvalid, trackRef, inputRef, orientation = state.orientation, name, form } = opts;
|
|
523
343
|
let isDisabled = opts.isDisabled || state.isDisabled;
|
|
524
344
|
let isVertical = orientation === "vertical";
|
|
525
|
-
let { direction } = $
|
|
526
|
-
let { addGlobalListener, removeGlobalListener } = $
|
|
527
|
-
let data = $
|
|
528
|
-
|
|
529
|
-
const { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f({
|
|
345
|
+
let { direction } = $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7();
|
|
346
|
+
let { addGlobalListener, removeGlobalListener } = $48a7d519b337145d$export$4eaf04e54aa8eed6();
|
|
347
|
+
let data = $b2a66ce670b3f60f$export$d6c8d9636a3dc49c.get(state);
|
|
348
|
+
const { labelProps, fieldProps } = $0beb20c9744a2065$export$8467354a121f1b9f({
|
|
530
349
|
...opts,
|
|
531
|
-
id: $
|
|
532
|
-
"aria-labelledby": `${data.id} ${
|
|
350
|
+
id: $b2a66ce670b3f60f$export$68e648cbec363a18(state, index),
|
|
351
|
+
"aria-labelledby": `${data.id} ${opts["aria-labelledby"] ?? ""}`.trim()
|
|
533
352
|
});
|
|
534
353
|
const value = state.values[index];
|
|
535
354
|
const focusInput = useCallback(() => {
|
|
536
|
-
if (inputRef.current) $
|
|
355
|
+
if (inputRef.current) $1969ac565cfec8d0$export$de79e2c695e052f3(inputRef.current);
|
|
537
356
|
}, [inputRef]);
|
|
538
357
|
const isFocused = state.focusedThumb === index;
|
|
539
358
|
useEffect(() => {
|
|
@@ -541,7 +360,7 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
541
360
|
}, [isFocused, focusInput]);
|
|
542
361
|
let reverseX = direction === "rtl";
|
|
543
362
|
let currentPosition = useRef(null);
|
|
544
|
-
let { keyboardProps } = $
|
|
363
|
+
let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({ onKeyDown(e) {
|
|
545
364
|
let { getThumbMaxValue, getThumbMinValue, decrementThumb, incrementThumb, setThumbValue, setThumbDragging, pageSize } = state;
|
|
546
365
|
if (!/^(PageUp|PageDown|Home|End)$/.test(e.key)) {
|
|
547
366
|
e.continuePropagation();
|
|
@@ -565,7 +384,7 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
565
384
|
}
|
|
566
385
|
setThumbDragging(index, false);
|
|
567
386
|
} });
|
|
568
|
-
let { moveProps } = $
|
|
387
|
+
let { moveProps } = $1dfdc54e7eb53ba0$export$36da96379f79f245({
|
|
569
388
|
onMoveStart() {
|
|
570
389
|
currentPosition.current = null;
|
|
571
390
|
state.setThumbDragging(index, true);
|
|
@@ -582,7 +401,7 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
582
401
|
let delta = isVertical ? deltaY : deltaX;
|
|
583
402
|
if (isVertical || reverseX) delta = -delta;
|
|
584
403
|
currentPosition.current += delta;
|
|
585
|
-
setThumbPercent(index, $
|
|
404
|
+
setThumbPercent(index, $240e9101ba2842f5$export$7d15b64cf5a3a4c4(currentPosition.current / size, 0, 1));
|
|
586
405
|
}
|
|
587
406
|
},
|
|
588
407
|
onMoveEnd() {
|
|
@@ -590,7 +409,7 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
590
409
|
}
|
|
591
410
|
});
|
|
592
411
|
state.setThumbEditable(index, !isDisabled);
|
|
593
|
-
const { focusableProps } = $
|
|
412
|
+
const { focusableProps } = $d1116acdf220c2da$export$4c014de7c8940b4c($bbaa08b3cd72f041$export$9d1611c77c2fe928(opts, {
|
|
594
413
|
onFocus: () => state.setFocusedThumb(index),
|
|
595
414
|
onBlur: () => state.setFocusedThumb(void 0)
|
|
596
415
|
}), inputRef);
|
|
@@ -604,9 +423,7 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
604
423
|
addGlobalListener(window, "pointerup", onUp, false);
|
|
605
424
|
};
|
|
606
425
|
let onUp = (e) => {
|
|
607
|
-
|
|
608
|
-
var _e_pointerId;
|
|
609
|
-
if (((_e_pointerId = e.pointerId) !== null && _e_pointerId !== void 0 ? _e_pointerId : (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0].identifier) === currentPointer.current) {
|
|
426
|
+
if ((e.pointerId ?? e.changedTouches?.[0].identifier) === currentPointer.current) {
|
|
610
427
|
focusInput();
|
|
611
428
|
state.setThumbDragging(index, false);
|
|
612
429
|
removeGlobalListener(window, "mouseup", onUp, false);
|
|
@@ -616,7 +433,7 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
616
433
|
};
|
|
617
434
|
let thumbPosition = state.getThumbPercent(index);
|
|
618
435
|
if (isVertical || direction === "rtl") thumbPosition = 1 - thumbPosition;
|
|
619
|
-
let interactions = !isDisabled ? $
|
|
436
|
+
let interactions = !isDisabled ? $bbaa08b3cd72f041$export$9d1611c77c2fe928(keyboardProps, moveProps, {
|
|
620
437
|
onMouseDown: (e) => {
|
|
621
438
|
if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
622
439
|
onDown();
|
|
@@ -629,11 +446,11 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
629
446
|
onDown(e.changedTouches[0].identifier);
|
|
630
447
|
}
|
|
631
448
|
}) : {};
|
|
632
|
-
$
|
|
449
|
+
$3274bf1495747a7b$export$5add1d006293d136(inputRef, state.defaultValues[index], (v) => {
|
|
633
450
|
state.setThumbValue(index, v);
|
|
634
451
|
});
|
|
635
452
|
return {
|
|
636
|
-
inputProps: $
|
|
453
|
+
inputProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(focusableProps, fieldProps, {
|
|
637
454
|
type: "range",
|
|
638
455
|
tabIndex: !isDisabled ? 0 : void 0,
|
|
639
456
|
min: state.getThumbMinValue(index),
|
|
@@ -651,7 +468,7 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
651
468
|
"aria-describedby": [data["aria-describedby"], opts["aria-describedby"]].filter(Boolean).join(" "),
|
|
652
469
|
"aria-details": [data["aria-details"], opts["aria-details"]].filter(Boolean).join(" "),
|
|
653
470
|
onChange: (e) => {
|
|
654
|
-
state.setThumbValue(index, parseFloat($
|
|
471
|
+
state.setThumbValue(index, parseFloat($23f2114a1b82827e$export$e58f029f0fbfdb29(e).value));
|
|
655
472
|
}
|
|
656
473
|
}),
|
|
657
474
|
thumbProps: {
|
|
@@ -670,25 +487,166 @@ function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
|
|
|
670
487
|
};
|
|
671
488
|
}
|
|
672
489
|
//#endregion
|
|
673
|
-
//#region node_modules/react-
|
|
674
|
-
var $
|
|
675
|
-
var $
|
|
676
|
-
var $
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
490
|
+
//#region node_modules/react-stately/dist/private/slider/useSliderState.mjs
|
|
491
|
+
var $d806310b82f07e9d$var$DEFAULT_MIN_VALUE = 0;
|
|
492
|
+
var $d806310b82f07e9d$var$DEFAULT_MAX_VALUE = 100;
|
|
493
|
+
var $d806310b82f07e9d$var$DEFAULT_STEP_VALUE = 1;
|
|
494
|
+
function $d806310b82f07e9d$export$e5fda3247f5d67f9(props) {
|
|
495
|
+
const { isDisabled = false, minValue = $d806310b82f07e9d$var$DEFAULT_MIN_VALUE, maxValue = $d806310b82f07e9d$var$DEFAULT_MAX_VALUE, numberFormatter: formatter, step = $d806310b82f07e9d$var$DEFAULT_STEP_VALUE, orientation = "horizontal" } = props;
|
|
496
|
+
let pageSize = useMemo(() => {
|
|
497
|
+
let calcPageSize = (maxValue - minValue) / 10;
|
|
498
|
+
calcPageSize = $240e9101ba2842f5$export$cb6e0bb50bc19463(calcPageSize, 0, calcPageSize + step, step);
|
|
499
|
+
return Math.max(calcPageSize, step);
|
|
500
|
+
}, [
|
|
501
|
+
step,
|
|
502
|
+
maxValue,
|
|
503
|
+
minValue
|
|
504
|
+
]);
|
|
505
|
+
let restrictValues = useCallback((values) => values?.map((val, idx) => {
|
|
506
|
+
return $240e9101ba2842f5$export$cb6e0bb50bc19463(val, idx === 0 ? minValue : values[idx - 1], idx === values.length - 1 ? maxValue : values[idx + 1], step);
|
|
507
|
+
}), [
|
|
508
|
+
minValue,
|
|
509
|
+
maxValue,
|
|
510
|
+
step
|
|
511
|
+
]);
|
|
512
|
+
let value = useMemo(() => restrictValues($d806310b82f07e9d$var$convertValue(props.value)), [props.value, restrictValues]);
|
|
513
|
+
let defaultValue = useMemo(() => restrictValues($d806310b82f07e9d$var$convertValue(props.defaultValue) ?? [minValue]), [
|
|
514
|
+
props.defaultValue,
|
|
515
|
+
minValue,
|
|
516
|
+
restrictValues
|
|
517
|
+
]);
|
|
518
|
+
let onChange = $d806310b82f07e9d$var$createOnChange(props.value, props.defaultValue, props.onChange);
|
|
519
|
+
let onChangeEnd = $d806310b82f07e9d$var$createOnChange(props.value, props.defaultValue, props.onChangeEnd);
|
|
520
|
+
const [values, setValuesState] = $3e6197669829fe11$export$40bfa8c7b0832715(value, defaultValue, onChange);
|
|
521
|
+
let [initialValues] = useState(values);
|
|
522
|
+
const [isDraggings, setDraggingsState] = useState(new Array(values.length).fill(false));
|
|
523
|
+
const isEditablesRef = useRef(new Array(values.length).fill(true));
|
|
524
|
+
const [focusedIndex, setFocusedIndex] = useState(void 0);
|
|
525
|
+
const valuesRef = useRef(values);
|
|
526
|
+
const isDraggingsRef = useRef(isDraggings);
|
|
527
|
+
let setValues = (values) => {
|
|
528
|
+
valuesRef.current = values;
|
|
529
|
+
setValuesState(values);
|
|
530
|
+
};
|
|
531
|
+
let setDraggings = (draggings) => {
|
|
532
|
+
isDraggingsRef.current = draggings;
|
|
533
|
+
setDraggingsState(draggings);
|
|
534
|
+
};
|
|
535
|
+
function getValuePercent(value) {
|
|
536
|
+
return (value - minValue) / (maxValue - minValue);
|
|
537
|
+
}
|
|
538
|
+
function getThumbMinValue(index) {
|
|
539
|
+
return index === 0 ? minValue : values[index - 1];
|
|
540
|
+
}
|
|
541
|
+
function getThumbMaxValue(index) {
|
|
542
|
+
return index === values.length - 1 ? maxValue : values[index + 1];
|
|
543
|
+
}
|
|
544
|
+
function isThumbEditable(index) {
|
|
545
|
+
return isEditablesRef.current[index];
|
|
546
|
+
}
|
|
547
|
+
function setThumbEditable(index, editable) {
|
|
548
|
+
isEditablesRef.current[index] = editable;
|
|
549
|
+
}
|
|
550
|
+
function updateValue(index, value) {
|
|
551
|
+
if (isDisabled || !isThumbEditable(index)) return;
|
|
552
|
+
const thisMin = getThumbMinValue(index);
|
|
553
|
+
const thisMax = getThumbMaxValue(index);
|
|
554
|
+
value = $240e9101ba2842f5$export$cb6e0bb50bc19463(value, thisMin, thisMax, step);
|
|
555
|
+
setValues($d806310b82f07e9d$var$replaceIndex(valuesRef.current, index, value));
|
|
556
|
+
}
|
|
557
|
+
function updateDragging(index, dragging) {
|
|
558
|
+
if (isDisabled || !isThumbEditable(index)) return;
|
|
559
|
+
if (dragging) valuesRef.current = values;
|
|
560
|
+
const wasDragging = isDraggingsRef.current[index];
|
|
561
|
+
isDraggingsRef.current = $d806310b82f07e9d$var$replaceIndex(isDraggingsRef.current, index, dragging);
|
|
562
|
+
setDraggings(isDraggingsRef.current);
|
|
563
|
+
if (onChangeEnd && wasDragging && !isDraggingsRef.current.some(Boolean)) onChangeEnd(valuesRef.current);
|
|
564
|
+
}
|
|
565
|
+
function getFormattedValue(value) {
|
|
566
|
+
return formatter.format(value);
|
|
567
|
+
}
|
|
568
|
+
function setThumbPercent(index, percent) {
|
|
569
|
+
updateValue(index, getPercentValue(percent));
|
|
570
|
+
}
|
|
571
|
+
function getRoundedValue(value) {
|
|
572
|
+
return Math.round((value - minValue) / step) * step + minValue;
|
|
573
|
+
}
|
|
574
|
+
function getPercentValue(percent) {
|
|
575
|
+
return $240e9101ba2842f5$export$7d15b64cf5a3a4c4(getRoundedValue(percent * (maxValue - minValue) + minValue), minValue, maxValue);
|
|
576
|
+
}
|
|
577
|
+
function incrementThumb(index, stepSize = 1) {
|
|
578
|
+
let s = Math.max(stepSize, step);
|
|
579
|
+
updateValue(index, $240e9101ba2842f5$export$cb6e0bb50bc19463(values[index] + s, minValue, maxValue, step));
|
|
580
|
+
}
|
|
581
|
+
function decrementThumb(index, stepSize = 1) {
|
|
582
|
+
let s = Math.max(stepSize, step);
|
|
583
|
+
updateValue(index, $240e9101ba2842f5$export$cb6e0bb50bc19463(values[index] - s, minValue, maxValue, step));
|
|
584
|
+
}
|
|
585
|
+
return {
|
|
586
|
+
values,
|
|
587
|
+
defaultValues: props.defaultValue !== void 0 ? defaultValue : initialValues,
|
|
588
|
+
getThumbValue: (index) => values[index],
|
|
589
|
+
setThumbValue: updateValue,
|
|
590
|
+
setThumbPercent,
|
|
591
|
+
isThumbDragging: (index) => isDraggings[index],
|
|
592
|
+
setThumbDragging: updateDragging,
|
|
593
|
+
focusedThumb: focusedIndex,
|
|
594
|
+
setFocusedThumb: setFocusedIndex,
|
|
595
|
+
getThumbPercent: (index) => getValuePercent(values[index]),
|
|
596
|
+
getValuePercent,
|
|
597
|
+
getThumbValueLabel: (index) => getFormattedValue(values[index]),
|
|
598
|
+
getFormattedValue,
|
|
599
|
+
getThumbMinValue,
|
|
600
|
+
getThumbMaxValue,
|
|
601
|
+
getPercentValue,
|
|
602
|
+
isThumbEditable,
|
|
603
|
+
setThumbEditable,
|
|
604
|
+
incrementThumb,
|
|
605
|
+
decrementThumb,
|
|
606
|
+
step,
|
|
607
|
+
pageSize,
|
|
608
|
+
orientation,
|
|
609
|
+
isDisabled
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
function $d806310b82f07e9d$var$replaceIndex(array, index, value) {
|
|
613
|
+
if (array[index] === value) return array;
|
|
614
|
+
return [
|
|
615
|
+
...array.slice(0, index),
|
|
616
|
+
value,
|
|
617
|
+
...array.slice(index + 1)
|
|
618
|
+
];
|
|
619
|
+
}
|
|
620
|
+
function $d806310b82f07e9d$var$convertValue(value) {
|
|
621
|
+
if (value == null) return void 0;
|
|
622
|
+
return Array.isArray(value) ? value : [value];
|
|
623
|
+
}
|
|
624
|
+
function $d806310b82f07e9d$var$createOnChange(value, defaultValue, onChange) {
|
|
625
|
+
return (newValue) => {
|
|
626
|
+
if (typeof value === "number" || typeof defaultValue === "number") onChange?.(newValue[0]);
|
|
627
|
+
else onChange?.(newValue);
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
//#endregion
|
|
631
|
+
//#region node_modules/react-aria-components/dist/private/Slider.mjs
|
|
632
|
+
var $806e559d0c2c64a0$export$e99164f0030f3bff = createContext(null);
|
|
633
|
+
var $806e559d0c2c64a0$export$1e7083018727fa60 = createContext(null);
|
|
634
|
+
var $806e559d0c2c64a0$export$f1fce0420cc6d8ee = createContext(null);
|
|
635
|
+
var $806e559d0c2c64a0$export$6189c2744041d8f8 = createContext(null);
|
|
636
|
+
var $806e559d0c2c64a0$export$472062a354075cee = forwardRef(function Slider(props, ref) {
|
|
637
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $806e559d0c2c64a0$export$e99164f0030f3bff);
|
|
680
638
|
let trackRef = useRef(null);
|
|
681
|
-
let numberFormatter = $
|
|
682
|
-
let state = $
|
|
639
|
+
let numberFormatter = $bd90acf18e792be6$export$b7a616150fdb9f44(props.formatOptions);
|
|
640
|
+
let state = $d806310b82f07e9d$export$e5fda3247f5d67f9({
|
|
683
641
|
...props,
|
|
684
642
|
numberFormatter
|
|
685
643
|
});
|
|
686
|
-
let [labelRef, label] = $
|
|
687
|
-
let { groupProps, trackProps, labelProps, outputProps } = $
|
|
644
|
+
let [labelRef, label] = $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
645
|
+
let { groupProps, trackProps, labelProps, outputProps } = $4b964a467b2bc7ea$export$56b2c08e277f365({
|
|
688
646
|
...props,
|
|
689
647
|
label
|
|
690
648
|
}, state, trackRef);
|
|
691
|
-
let renderProps = $
|
|
649
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
692
650
|
...props,
|
|
693
651
|
values: {
|
|
694
652
|
orientation: state.orientation,
|
|
@@ -697,32 +655,32 @@ var $6f909507e6374d18$export$472062a354075cee = forwardRef(function Slider(props
|
|
|
697
655
|
},
|
|
698
656
|
defaultClassName: "react-aria-Slider"
|
|
699
657
|
});
|
|
700
|
-
let DOMProps = $
|
|
658
|
+
let DOMProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { global: true });
|
|
701
659
|
delete DOMProps.id;
|
|
702
|
-
return React.createElement($
|
|
703
|
-
[$
|
|
704
|
-
[$
|
|
660
|
+
return React.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
661
|
+
[$806e559d0c2c64a0$export$1e7083018727fa60, state],
|
|
662
|
+
[$806e559d0c2c64a0$export$f1fce0420cc6d8ee, {
|
|
705
663
|
...trackProps,
|
|
706
664
|
ref: trackRef
|
|
707
665
|
}],
|
|
708
|
-
[$
|
|
709
|
-
[$
|
|
666
|
+
[$806e559d0c2c64a0$export$6189c2744041d8f8, outputProps],
|
|
667
|
+
[$43a3b93638fe5db9$export$75b6ee27786ba447, {
|
|
710
668
|
...labelProps,
|
|
711
669
|
ref: labelRef
|
|
712
670
|
}]
|
|
713
|
-
] }, React.createElement($
|
|
714
|
-
...$
|
|
671
|
+
] }, React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
672
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(DOMProps, renderProps, groupProps),
|
|
715
673
|
ref,
|
|
716
674
|
slot: props.slot || void 0,
|
|
717
675
|
"data-orientation": state.orientation,
|
|
718
676
|
"data-disabled": state.isDisabled || void 0
|
|
719
677
|
}));
|
|
720
678
|
});
|
|
721
|
-
var $
|
|
722
|
-
[props, ref] = $
|
|
679
|
+
var $806e559d0c2c64a0$export$a590f758a961cb5b = forwardRef(function SliderOutput(props, ref) {
|
|
680
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $806e559d0c2c64a0$export$6189c2744041d8f8);
|
|
723
681
|
let { children, style, className, render, ...otherProps } = props;
|
|
724
|
-
let state = useContext($
|
|
725
|
-
let renderProps = $
|
|
682
|
+
let state = useContext($806e559d0c2c64a0$export$1e7083018727fa60);
|
|
683
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
726
684
|
className,
|
|
727
685
|
style,
|
|
728
686
|
children,
|
|
@@ -735,7 +693,7 @@ var $6f909507e6374d18$export$a590f758a961cb5b = forwardRef(function SliderOutput
|
|
|
735
693
|
state
|
|
736
694
|
}
|
|
737
695
|
});
|
|
738
|
-
return React.createElement($
|
|
696
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.output, {
|
|
739
697
|
...otherProps,
|
|
740
698
|
...renderProps,
|
|
741
699
|
ref,
|
|
@@ -743,16 +701,16 @@ var $6f909507e6374d18$export$a590f758a961cb5b = forwardRef(function SliderOutput
|
|
|
743
701
|
"data-disabled": state.isDisabled || void 0
|
|
744
702
|
});
|
|
745
703
|
});
|
|
746
|
-
var $
|
|
747
|
-
[props, ref] = $
|
|
748
|
-
let state = useContext($
|
|
704
|
+
var $806e559d0c2c64a0$export$105594979f116971 = forwardRef(function SliderTrack(props, ref) {
|
|
705
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $806e559d0c2c64a0$export$f1fce0420cc6d8ee);
|
|
706
|
+
let state = useContext($806e559d0c2c64a0$export$1e7083018727fa60);
|
|
749
707
|
let { onHoverStart, onHoverEnd, onHoverChange, ...otherProps } = props;
|
|
750
|
-
let { hoverProps, isHovered } = $
|
|
708
|
+
let { hoverProps, isHovered } = $e969f22b6713ca4a$export$ae780daf29e6d456({
|
|
751
709
|
onHoverStart,
|
|
752
710
|
onHoverEnd,
|
|
753
711
|
onHoverChange
|
|
754
712
|
});
|
|
755
|
-
let renderProps = $
|
|
713
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
756
714
|
...props,
|
|
757
715
|
defaultClassName: "react-aria-SliderTrack",
|
|
758
716
|
values: {
|
|
@@ -762,8 +720,8 @@ var $6f909507e6374d18$export$105594979f116971 = forwardRef(function SliderTrack(
|
|
|
762
720
|
state
|
|
763
721
|
}
|
|
764
722
|
});
|
|
765
|
-
return React.createElement($
|
|
766
|
-
...$
|
|
723
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
724
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(otherProps, hoverProps),
|
|
767
725
|
...renderProps,
|
|
768
726
|
ref,
|
|
769
727
|
"data-hovered": isHovered || void 0,
|
|
@@ -771,24 +729,24 @@ var $6f909507e6374d18$export$105594979f116971 = forwardRef(function SliderTrack(
|
|
|
771
729
|
"data-disabled": state.isDisabled || void 0
|
|
772
730
|
});
|
|
773
731
|
});
|
|
774
|
-
var $
|
|
732
|
+
var $806e559d0c2c64a0$export$2c1b491743890dec = forwardRef(function SliderThumb(props, ref) {
|
|
775
733
|
let { inputRef: userInputRef = null } = props;
|
|
776
|
-
let state = useContext($
|
|
777
|
-
let { ref: trackRef } = $
|
|
734
|
+
let state = useContext($806e559d0c2c64a0$export$1e7083018727fa60);
|
|
735
|
+
let { ref: trackRef } = $7230ffa83bc0c2cf$export$fabf2dc03a41866e($806e559d0c2c64a0$export$f1fce0420cc6d8ee);
|
|
778
736
|
let { index = 0 } = props;
|
|
779
737
|
let defaultInputRef = useRef(null);
|
|
780
738
|
let inputRef = userInputRef || defaultInputRef;
|
|
781
|
-
let [labelRef, label] = $
|
|
782
|
-
let { thumbProps, inputProps, labelProps, isDragging, isFocused, isDisabled } = $
|
|
739
|
+
let [labelRef, label] = $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
740
|
+
let { thumbProps, inputProps, labelProps, isDragging, isFocused, isDisabled } = $4a5dd96ecb58ab11$export$8d15029008292ae({
|
|
783
741
|
...props,
|
|
784
742
|
index,
|
|
785
743
|
trackRef,
|
|
786
744
|
inputRef,
|
|
787
745
|
label
|
|
788
746
|
}, state);
|
|
789
|
-
let { focusProps, isFocusVisible } = $
|
|
790
|
-
let { hoverProps, isHovered } = $
|
|
791
|
-
let renderProps = $
|
|
747
|
+
let { focusProps, isFocusVisible } = $0c4a58759813079a$export$4e328f61c538687f();
|
|
748
|
+
let { hoverProps, isHovered } = $e969f22b6713ca4a$export$ae780daf29e6d456(props);
|
|
749
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
792
750
|
...props,
|
|
793
751
|
defaultClassName: "react-aria-SliderThumb",
|
|
794
752
|
values: {
|
|
@@ -800,10 +758,10 @@ var $6f909507e6374d18$export$2c1b491743890dec = forwardRef(function SliderThumb(
|
|
|
800
758
|
isDisabled
|
|
801
759
|
}
|
|
802
760
|
});
|
|
803
|
-
let DOMProps = $
|
|
761
|
+
let DOMProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { global: true });
|
|
804
762
|
delete DOMProps.id;
|
|
805
|
-
return React.createElement($
|
|
806
|
-
...$
|
|
763
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
764
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(DOMProps, thumbProps, hoverProps),
|
|
807
765
|
...renderProps,
|
|
808
766
|
ref,
|
|
809
767
|
style: {
|
|
@@ -815,13 +773,13 @@ var $6f909507e6374d18$export$2c1b491743890dec = forwardRef(function SliderThumb(
|
|
|
815
773
|
"data-focused": isFocused || void 0,
|
|
816
774
|
"data-focus-visible": isFocusVisible || void 0,
|
|
817
775
|
"data-disabled": isDisabled || void 0
|
|
818
|
-
}, React.createElement($
|
|
776
|
+
}, React.createElement($ea3928288112382f$export$439d29a4e110a164, null, React.createElement("input", {
|
|
819
777
|
ref: inputRef,
|
|
820
|
-
...$
|
|
821
|
-
})), React.createElement($
|
|
778
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(inputProps, focusProps)
|
|
779
|
+
})), React.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [[$43a3b93638fe5db9$export$75b6ee27786ba447, {
|
|
822
780
|
...labelProps,
|
|
823
781
|
ref: labelRef
|
|
824
782
|
}]] }, renderProps.children));
|
|
825
783
|
});
|
|
826
784
|
//#endregion
|
|
827
|
-
export { $
|
|
785
|
+
export { $806e559d0c2c64a0$export$6189c2744041d8f8 as a, $d806310b82f07e9d$export$e5fda3247f5d67f9 as c, $1dfdc54e7eb53ba0$export$36da96379f79f245 as d, $806e559d0c2c64a0$export$472062a354075cee as i, $4a5dd96ecb58ab11$export$8d15029008292ae as l, $806e559d0c2c64a0$export$1e7083018727fa60 as n, $806e559d0c2c64a0$export$a590f758a961cb5b as o, $806e559d0c2c64a0$export$2c1b491743890dec as r, $806e559d0c2c64a0$export$f1fce0420cc6d8ee as s, $806e559d0c2c64a0$export$105594979f116971 as t, $4b964a467b2bc7ea$export$56b2c08e277f365 as u };
|