@eightshift/ui-components 1.9.1 → 2.0.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/README.md +0 -7
- package/dist/{Button-BEIi9mB_.js → Button-OQ5EIPvt.js} +8 -8
- package/dist/{SelectionManager-DGbP8Ntl.js → Collection-CJM_asJz.js} +345 -197
- package/dist/{Color-CZxTZUqH.js → Color-B0HgM8f4.js} +1 -1
- package/dist/{ColorSwatch-Iijp9hzP.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
- package/dist/{ComboBox-DVPU5XzU.js → ComboBox-BnlZjJ3T.js} +21 -22
- package/dist/{Dialog-17uxPRe5.js → Dialog-CIh-hX93.js} +77 -65
- package/dist/{FieldError-huHsqqMP.js → FieldError-D7A6s7O5.js} +2 -2
- package/dist/{FocusScope-7r2_SUa9.js → FocusScope-Cs5_OoeA.js} +6 -4
- package/dist/{Group-k_oyd3Te.js → Group-D6tr3U_n.js} +5 -6
- package/dist/{Heading-DRBzKYHb.js → Heading-DiYTXoIW.js} +3 -4
- package/dist/{Hidden-5cXbU70C.js → Hidden-DnOd_jPX.js} +2 -2
- package/dist/{Input-DCmTv_Qw.js → Input-Se0m3ubj.js} +13 -11
- package/dist/{Label-D8G0GMsc.js → Label-Ca9uelsn.js} +4 -5
- package/dist/{List-C7L49CxW.js → List-Br274SP1.js} +16 -8
- package/dist/{ListBox-BxZwDp9o.js → ListBox-D9dFEh5A.js} +36 -23
- package/dist/{OverlayArrow-Dca2JXYU.js → OverlayArrow-1jx-ZyCR.js} +75 -13
- package/dist/{Select-aab027f3.esm-OvJ8lZs8.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
- package/dist/{Separator-B_VdRHCf.js → Separator-BhZycTUp.js} +9 -7
- package/dist/{Slider-CgEZmlNY.js → Slider-BZNaJylD.js} +20 -24
- package/dist/{Text-Cld9rkzJ.js → Text-aOUPPvTO.js} +3 -4
- package/dist/{VisuallyHidden-D0lsNfi4.js → VisuallyHidden-ClTQo25k.js} +2 -2
- package/dist/assets/index.css +37 -0
- package/dist/assets/style-editor.css +5287 -0
- package/dist/assets/style.css +5293 -1
- package/dist/assets/wp-font-enhancements.css +8 -1
- package/dist/assets/wp-ui-enhancements.css +299 -1
- package/dist/components/animated-visibility/animated-visibility.js +17 -21
- package/dist/components/base-control/base-control.js +7 -7
- package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
- package/dist/components/button/button.js +190 -86
- package/dist/components/checkbox/checkbox.js +44 -27
- package/dist/components/color-pickers/color-picker.js +13 -9
- package/dist/components/color-pickers/color-swatch.js +4 -4
- package/dist/components/color-pickers/gradient-editor.js +25 -24
- package/dist/components/color-pickers/solid-color-picker.js +197 -229
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +17 -17
- package/dist/components/draggable/draggable-handle.js +6 -6
- package/dist/components/draggable/draggable.js +1414 -699
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +12 -12
- package/dist/components/expandable/expandable.js +66 -78
- package/dist/components/index.js +2 -3
- package/dist/components/input-field/input-field.js +35 -22
- package/dist/components/layout/hstack.js +1 -1
- package/dist/components/layout/vstack.js +1 -1
- package/dist/components/link-input/link-input.js +69 -57
- package/dist/components/matrix-align/matrix-align.js +34 -86
- package/dist/components/menu/menu.js +22 -23
- package/dist/components/modal/modal.js +24 -25
- package/dist/components/notice/notice.js +32 -32
- package/dist/components/number-picker/number-picker.js +41 -40
- package/dist/components/option-select/option-select.js +9 -4
- package/dist/components/options-panel/options-panel.js +63 -28
- package/dist/components/placeholders/file-placeholder.js +6 -17
- package/dist/components/placeholders/image-placeholder.js +17 -17
- package/dist/components/placeholders/media-placeholder.js +12 -12
- package/dist/components/popover/popover.js +6 -5
- package/dist/components/radio/radio.js +60 -43
- package/dist/components/repeater/repeater-item.js +10 -10
- package/dist/components/repeater/repeater.js +8 -8
- package/dist/components/responsive/mini-responsive.js +41 -41
- package/dist/components/responsive/responsive-legacy.js +33 -33
- package/dist/components/responsive/responsive.js +48 -48
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- package/dist/components/rich-label/rich-label.js +13 -11
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +3 -3
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +21 -21
- package/dist/components/select/v2/async-select.js +37 -47
- package/dist/components/select/v2/shared.js +8 -8
- package/dist/components/select/v2/single-select.js +44 -48
- package/dist/components/slider/column-config-slider.js +25 -25
- package/dist/components/slider/slider.js +173 -182
- package/dist/components/spacer/spacer.js +21 -21
- package/dist/components/tabs/tabs.js +111 -63
- package/dist/components/toggle/switch.js +27 -21
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +160 -83
- package/dist/components/tooltip/tooltip.js +25 -28
- package/dist/{context-DtrQ3I5U.js → context-CDOs-GuR.js} +1 -1
- package/dist/{focusSafely-ChK5oW-0.js → focusSafely-CiqTTjWy.js} +18 -17
- package/dist/icons/icons.js +52 -0
- package/dist/{index-641ee5b8.esm-DRaWil7u.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
- package/dist/{index-D0mHceYg.js → index-BRp93Yfa.js} +24 -31
- package/dist/index-CcCn9HWX.js +44 -0
- package/dist/index.js +2 -3
- package/dist/{multi-select-components-2Ax71j9a.js → multi-select-components-CkF3LyTF.js} +4 -4
- package/dist/{react-select-async.esm-BZwl7Ddb.js → react-select-async.esm-DcVLw9X5.js} +3 -3
- package/dist/{react-select.esm-DI0eSkd8.js → react-select.esm-OZ0cmTjg.js} +3 -3
- package/dist/style-editor.js +1 -0
- package/dist/style.js +1 -1
- package/dist/{textSelection-CdZPiDxh.js → textSelection-BlTDSskG.js} +2 -2
- package/dist/{useButton-C5e_EJlC.js → useButton-CmLbE5vg.js} +3 -3
- package/dist/{useEvent-BW_vevRp.js → useEvent-cLDJlznQ.js} +1 -1
- package/dist/{useFocusRing-Dbj6MsFR.js → useFocusRing-CGp3guTX.js} +1 -1
- package/dist/{useFocusable-C2xrPFl6.js → useFocusable-087cO5Ct.js} +9 -6
- package/dist/{useFormReset-DDCE2RPv.js → useFormReset-NpLM2e3G.js} +1 -1
- package/dist/{useFormValidation-BxnASugK.js → useFormValidation-BWwmZQE2.js} +3 -3
- package/dist/{useLabel-C3sAYsiC.js → useLabel-C85N3Hzw.js} +2 -2
- package/dist/{useLabels-WnPbJUyQ.js → useLabels-C_2wWraB.js} +1 -1
- package/dist/{useListState-BmTFGt2_.js → useListState-Z7FB_NzO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-BurzRhbk.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
- package/dist/{useNumberField-D_Azw6A1.js → useNumberField-Bm6_BVl9.js} +10 -10
- package/dist/{useNumberFormatter-B58dTQ-c.js → useNumberFormatter-DlUVKkO7.js} +1 -1
- package/dist/{usePress-DZ9pn6Jl.js → usePress-rg_OQIGW.js} +15 -14
- package/dist/{useSingleSelectListState-Dr843geC.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
- package/dist/{useToggle-Dq9VpeCd.js → useToggle-DzlgBLAJ.js} +4 -4
- package/dist/{useToggleState-DA_b3LG_.js → useToggleState-DhSBQxkp.js} +1 -1
- package/dist/{utils-BmaSD6gC.js → utils-39D0mStj.js} +41 -93
- package/package.json +40 -38
- package/dist/GeistMonoVF.woff2 +0 -0
- package/dist/GeistVF.woff2 +0 -0
- package/dist/assets/fonts.css +0 -1
- package/dist/components/list-box/list-box.js +0 -157
- package/dist/fonts.js +0 -1
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { r as reactDomExports } from "./index-
|
|
5
|
+
import { r as reactDomExports } from "./index-BRp93Yfa.js";
|
|
6
6
|
function arrayMove(array, from, to) {
|
|
7
7
|
array = array.slice();
|
|
8
8
|
array.splice(to < 0 ? array.length + to : to, 0, array.splice(from, 1)[0]);
|
|
@@ -287,9 +287,9 @@ class List extends React.Component {
|
|
|
287
287
|
scrollingSpeed: Math.min(Math.round((AUTOSCROLL_ACTIVE_OFFSET - (viewportHeight - clientY)) / AUTOSCROLL_SPEED_RATIO), Math.round((delta - AUTOSCROLL_DELTA_THRESHOLD) / AUTOSCROLL_SPEED_RATIO)),
|
|
288
288
|
scrollWindow: true
|
|
289
289
|
});
|
|
290
|
-
} else if (top < 0 && clientY < AUTOSCROLL_ACTIVE_OFFSET && delta < -
|
|
290
|
+
} else if (top < 0 && clientY < AUTOSCROLL_ACTIVE_OFFSET && delta < -10) {
|
|
291
291
|
this.setState({
|
|
292
|
-
scrollingSpeed: Math.max(Math.round((AUTOSCROLL_ACTIVE_OFFSET - clientY) / -
|
|
292
|
+
scrollingSpeed: Math.max(Math.round((AUTOSCROLL_ACTIVE_OFFSET - clientY) / -10), Math.round((delta + AUTOSCROLL_DELTA_THRESHOLD) / AUTOSCROLL_SPEED_RATIO)),
|
|
293
293
|
scrollWindow: true
|
|
294
294
|
});
|
|
295
295
|
} else {
|
|
@@ -298,8 +298,8 @@ class List extends React.Component {
|
|
|
298
298
|
}
|
|
299
299
|
if (height + 20 < this.listRef.current.scrollHeight) {
|
|
300
300
|
let scrollingSpeed = 0;
|
|
301
|
-
if (clientY - top < AUTOSCROLL_ACTIVE_OFFSET && delta < -
|
|
302
|
-
scrollingSpeed = Math.max(Math.round((AUTOSCROLL_ACTIVE_OFFSET - (clientY - top)) / -
|
|
301
|
+
if (clientY - top < AUTOSCROLL_ACTIVE_OFFSET && delta < -10) {
|
|
302
|
+
scrollingSpeed = Math.max(Math.round((AUTOSCROLL_ACTIVE_OFFSET - (clientY - top)) / -10), Math.round((delta + AUTOSCROLL_DELTA_THRESHOLD) / AUTOSCROLL_SPEED_RATIO));
|
|
303
303
|
} else if (bottom - clientY < AUTOSCROLL_ACTIVE_OFFSET && delta > AUTOSCROLL_DELTA_THRESHOLD) {
|
|
304
304
|
scrollingSpeed = Math.min(Math.round((AUTOSCROLL_ACTIVE_OFFSET - (bottom - clientY)) / AUTOSCROLL_SPEED_RATIO), Math.round((delta - AUTOSCROLL_DELTA_THRESHOLD) / AUTOSCROLL_SPEED_RATIO));
|
|
305
305
|
}
|
|
@@ -368,13 +368,21 @@ class List extends React.Component {
|
|
|
368
368
|
});
|
|
369
369
|
__publicField(this, "finishDrop", () => {
|
|
370
370
|
const removeItem = this.props.removableByMove && this.isDraggedItemOutOfBounds();
|
|
371
|
-
|
|
371
|
+
const oldIndex = this.state.itemDragged;
|
|
372
|
+
const hasChanged = this.afterIndex > -2 && oldIndex !== this.afterIndex;
|
|
373
|
+
const newIndex = hasChanged ? removeItem ? -1 : Math.max(this.afterIndex, 0) : oldIndex;
|
|
374
|
+
if (removeItem || hasChanged) {
|
|
372
375
|
this.props.onChange({
|
|
373
|
-
oldIndex
|
|
374
|
-
newIndex
|
|
376
|
+
oldIndex,
|
|
377
|
+
newIndex,
|
|
375
378
|
targetRect: this.ghostRef.current.getBoundingClientRect()
|
|
376
379
|
});
|
|
377
380
|
}
|
|
381
|
+
this.props.afterDrag && this.props.afterDrag({
|
|
382
|
+
elements: this.getChildren(),
|
|
383
|
+
oldIndex,
|
|
384
|
+
newIndex
|
|
385
|
+
});
|
|
378
386
|
this.getChildren().forEach((item) => {
|
|
379
387
|
setItemTransition(item, 0);
|
|
380
388
|
transformItem(item, null);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8,
|
|
3
|
-
import React__default, { createContext, useCallback, useMemo, forwardRef, useContext,
|
|
4
|
-
import { b as $982254629710d113$export$b95089534ab7c1fd, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2, d as $325a3faab7a68acd$export$a16aca283550c30d,
|
|
5
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
1
|
+
import { c as $880e95eb8b93ba9a$export$ecf600387e221c37, d as $e1995378a142960e$export$bf788dd355e3a401, e as $e1995378a142960e$export$fb8073518f34e6ec, f as $7135fc7d473fd974$export$4feb769f8ddf26c5, g as $7135fc7d473fd974$export$d40e14dec8b060a8, h as $e1995378a142960e$export$18af5c7a9e9b3664 } from "./Collection-CJM_asJz.js";
|
|
2
|
+
import { f as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, p as $ff5963eb1fccf552$export$e08e3b67e392101e, a as $64fa3d84918910a7$export$29f1550f4b0d4415, m as $df56164dff5785e2$export$4338b53315abf666, n as $5dc95899b306f630$export$c9058316764c140e, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-39D0mStj.js";
|
|
3
|
+
import React__default, { createContext, useCallback, useMemo, forwardRef, useContext, useRef, useEffect } from "react";
|
|
4
|
+
import { b as $982254629710d113$export$b95089534ab7c1fd, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2, d as $d2f53cda644affe3$export$65d2a03b8800d6e3, e as $325a3faab7a68acd$export$a16aca283550c30d, f as $2a25aae57d74318e$export$a05409b8bb224a5a, g as $431f98aba6844401$export$6615d83f6de245ce, h as $72a5793c14baf454$export$e0e4026c12a8bdbb } from "./Separator-BhZycTUp.js";
|
|
5
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-aOUPPvTO.js";
|
|
6
6
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { $ as $
|
|
10
|
-
import { $ as $
|
|
11
|
-
import {
|
|
12
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
13
|
-
import { b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-
|
|
7
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-Z7FB_NzO.js";
|
|
8
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CDOs-GuR.js";
|
|
9
|
+
import { d as $9ab94262bd0047c7$export$420e68273165f4ec, q as $c87311424ea30a05$export$9ac100e40613ea10, r as $c87311424ea30a05$export$78551043582a6a98, $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./focusSafely-CiqTTjWy.js";
|
|
10
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-C85N3Hzw.js";
|
|
11
|
+
import { a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-rg_OQIGW.js";
|
|
12
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-CGp3guTX.js";
|
|
13
|
+
import { b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-Cs5_OoeA.js";
|
|
14
14
|
const $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
|
|
15
15
|
function $b1f0cad8af73213b$var$normalizeKey(key) {
|
|
16
16
|
if (typeof key === "string") return key.replace(/\s*/g, "");
|
|
@@ -107,6 +107,7 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
|
|
|
107
107
|
var _data_onAction;
|
|
108
108
|
return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);
|
|
109
109
|
} : void 0;
|
|
110
|
+
let id = $b1f0cad8af73213b$export$9145995848b05025(state, key);
|
|
110
111
|
let { itemProps, isPressed, isFocused, hasAction, allowsSelection } = $880e95eb8b93ba9a$export$ecf600387e221c37({
|
|
111
112
|
selectionManager: state.selectionManager,
|
|
112
113
|
key,
|
|
@@ -117,7 +118,8 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
|
|
|
117
118
|
shouldUseVirtualFocus,
|
|
118
119
|
isDisabled,
|
|
119
120
|
onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? $ff5963eb1fccf552$export$e08e3b67e392101e(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : void 0,
|
|
120
|
-
linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior
|
|
121
|
+
linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior,
|
|
122
|
+
id
|
|
121
123
|
});
|
|
122
124
|
let { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
123
125
|
isDisabled: isDisabled || !shouldFocusOnHover,
|
|
@@ -135,7 +137,7 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
|
|
|
135
137
|
optionProps: {
|
|
136
138
|
...optionProps,
|
|
137
139
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, itemProps, hoverProps, linkProps),
|
|
138
|
-
id
|
|
140
|
+
id
|
|
139
141
|
},
|
|
140
142
|
labelProps: {
|
|
141
143
|
id: labelId
|
|
@@ -175,11 +177,10 @@ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
|
175
177
|
}
|
|
176
178
|
const $612b8eb6cb90e02d$export$d188a835a7bc5783 = /* @__PURE__ */ createContext({});
|
|
177
179
|
const $612b8eb6cb90e02d$export$f55761759794cf55 = /* @__PURE__ */ createContext(null);
|
|
178
|
-
|
|
180
|
+
const $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = /* @__PURE__ */ forwardRef(function DropIndicator(props, ref) {
|
|
179
181
|
let { render } = useContext($612b8eb6cb90e02d$export$f55761759794cf55);
|
|
180
182
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, render(props, ref));
|
|
181
|
-
}
|
|
182
|
-
const $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = /* @__PURE__ */ forwardRef($612b8eb6cb90e02d$var$DropIndicator);
|
|
183
|
+
});
|
|
183
184
|
function $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState) {
|
|
184
185
|
var _dragAndDropHooks_isVirtualDragging;
|
|
185
186
|
let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.renderDropIndicator;
|
|
@@ -217,7 +218,7 @@ function $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropH
|
|
|
217
218
|
}
|
|
218
219
|
const $eed445e0843c11d0$export$7ff8f37d2d81a48d = /* @__PURE__ */ createContext(null);
|
|
219
220
|
const $eed445e0843c11d0$export$7c5906fe4f1f2af2 = /* @__PURE__ */ createContext(null);
|
|
220
|
-
|
|
221
|
+
const $eed445e0843c11d0$export$41f133550aa26f48 = /* @__PURE__ */ forwardRef(function ListBox(props, ref) {
|
|
221
222
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $eed445e0843c11d0$export$7ff8f37d2d81a48d);
|
|
222
223
|
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
223
224
|
if (state) return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
@@ -232,7 +233,7 @@ function $eed445e0843c11d0$var$ListBox(props, ref) {
|
|
|
232
233
|
listBoxRef: ref,
|
|
233
234
|
collection
|
|
234
235
|
}));
|
|
235
|
-
}
|
|
236
|
+
});
|
|
236
237
|
function $eed445e0843c11d0$var$StandaloneListBox({ props, listBoxRef, collection }) {
|
|
237
238
|
props = {
|
|
238
239
|
...props,
|
|
@@ -241,17 +242,29 @@ function $eed445e0843c11d0$var$StandaloneListBox({ props, listBoxRef, collection
|
|
|
241
242
|
items: null
|
|
242
243
|
};
|
|
243
244
|
let { layoutDelegate } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
245
|
+
let { filterFn, collectionProps, collectionRef } = useContext($d2f53cda644affe3$export$65d2a03b8800d6e3) || {};
|
|
246
|
+
listBoxRef = $df56164dff5785e2$export$4338b53315abf666(useMemo(() => $5dc95899b306f630$export$c9058316764c140e(listBoxRef, collectionRef !== void 0 ? collectionRef : null), [
|
|
247
|
+
collectionRef,
|
|
248
|
+
listBoxRef
|
|
249
|
+
]));
|
|
250
|
+
let filteredCollection = useMemo(() => filterFn ? collection.filter(filterFn) : collection, [
|
|
251
|
+
collection,
|
|
252
|
+
filterFn
|
|
253
|
+
]);
|
|
244
254
|
let state = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
245
255
|
...props,
|
|
256
|
+
collection: filteredCollection,
|
|
246
257
|
layoutDelegate
|
|
247
258
|
});
|
|
248
259
|
return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
249
260
|
state,
|
|
250
|
-
props
|
|
261
|
+
props: {
|
|
262
|
+
...props,
|
|
263
|
+
...collectionProps
|
|
264
|
+
},
|
|
251
265
|
listBoxRef
|
|
252
266
|
});
|
|
253
267
|
}
|
|
254
|
-
const $eed445e0843c11d0$export$41f133550aa26f48 = /* @__PURE__ */ forwardRef($eed445e0843c11d0$var$ListBox);
|
|
255
268
|
function $eed445e0843c11d0$var$ListBoxInner({ state, props, listBoxRef }) {
|
|
256
269
|
let { dragAndDropHooks, layout = "stack", orientation = "vertical" } = props;
|
|
257
270
|
let { collection, selectionManager } = state;
|
|
@@ -407,7 +420,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state, props, listBoxRef }) {
|
|
|
407
420
|
$7135fc7d473fd974$export$d40e14dec8b060a8,
|
|
408
421
|
{
|
|
409
422
|
name: "ListBoxSection",
|
|
410
|
-
render: $eed445e0843c11d0$var$
|
|
423
|
+
render: $eed445e0843c11d0$var$ListBoxSectionInner
|
|
411
424
|
}
|
|
412
425
|
]
|
|
413
426
|
]
|
|
@@ -418,7 +431,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state, props, listBoxRef }) {
|
|
|
418
431
|
renderDropIndicator: $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
419
432
|
})), emptyState, dragPreview));
|
|
420
433
|
}
|
|
421
|
-
function $eed445e0843c11d0$var$
|
|
434
|
+
function $eed445e0843c11d0$var$ListBoxSectionInner(props, ref, section, className = "react-aria-ListBoxSection") {
|
|
422
435
|
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
423
436
|
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
424
437
|
let { CollectionBranch } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-39D0mStj.js";
|
|
2
|
+
import { r as reactDomExports } from "./index-BRp93Yfa.js";
|
|
3
|
+
import React__default, { useEffect, useState, useCallback, useRef, forwardRef, createContext } from "react";
|
|
4
|
+
import { r as $c87311424ea30a05$export$78551043582a6a98, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CiqTTjWy.js";
|
|
2
5
|
import { a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-GajL10e1.js";
|
|
3
|
-
import
|
|
4
|
-
import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-BmaSD6gC.js";
|
|
5
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DtrQ3I5U.js";
|
|
6
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CDOs-GuR.js";
|
|
6
7
|
function $9daab02d461809db$var$hasResizeObserver() {
|
|
7
8
|
return typeof window.ResizeObserver !== "undefined";
|
|
8
9
|
}
|
|
@@ -34,6 +35,66 @@ function $9daab02d461809db$export$683480f191c0e3ea(options) {
|
|
|
34
35
|
box
|
|
35
36
|
]);
|
|
36
37
|
}
|
|
38
|
+
function $d3f049242431219c$export$6d3443f2c48bfc20(ref, isReady = true) {
|
|
39
|
+
let [isEntering, setEntering] = useState(true);
|
|
40
|
+
let isAnimationReady = isEntering && isReady;
|
|
41
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
42
|
+
if (isAnimationReady && ref.current && "getAnimations" in ref.current) {
|
|
43
|
+
for (let animation of ref.current.getAnimations()) if (animation instanceof CSSTransition) animation.cancel();
|
|
44
|
+
}
|
|
45
|
+
}, [
|
|
46
|
+
ref,
|
|
47
|
+
isAnimationReady
|
|
48
|
+
]);
|
|
49
|
+
$d3f049242431219c$var$useAnimation(ref, isAnimationReady, useCallback(() => setEntering(false), []));
|
|
50
|
+
return isAnimationReady;
|
|
51
|
+
}
|
|
52
|
+
function $d3f049242431219c$export$45fda7c47f93fd48(ref, isOpen) {
|
|
53
|
+
let [exitState, setExitState] = useState(isOpen ? "open" : "closed");
|
|
54
|
+
switch (exitState) {
|
|
55
|
+
case "open":
|
|
56
|
+
if (!isOpen) setExitState("exiting");
|
|
57
|
+
break;
|
|
58
|
+
case "closed":
|
|
59
|
+
case "exiting":
|
|
60
|
+
if (isOpen) setExitState("open");
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
let isExiting = exitState === "exiting";
|
|
64
|
+
$d3f049242431219c$var$useAnimation(ref, isExiting, useCallback(() => {
|
|
65
|
+
setExitState((state) => state === "exiting" ? "closed" : state);
|
|
66
|
+
}, []));
|
|
67
|
+
return isExiting;
|
|
68
|
+
}
|
|
69
|
+
function $d3f049242431219c$var$useAnimation(ref, isActive, onEnd) {
|
|
70
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
71
|
+
if (isActive && ref.current) {
|
|
72
|
+
if (!("getAnimations" in ref.current)) {
|
|
73
|
+
onEnd();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
let animations = ref.current.getAnimations();
|
|
77
|
+
if (animations.length === 0) {
|
|
78
|
+
onEnd();
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
let canceled = false;
|
|
82
|
+
Promise.all(animations.map((a) => a.finished)).then(() => {
|
|
83
|
+
if (!canceled) reactDomExports.flushSync(() => {
|
|
84
|
+
onEnd();
|
|
85
|
+
});
|
|
86
|
+
}).catch(() => {
|
|
87
|
+
});
|
|
88
|
+
return () => {
|
|
89
|
+
canceled = true;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}, [
|
|
93
|
+
ref,
|
|
94
|
+
isActive,
|
|
95
|
+
onEnd
|
|
96
|
+
]);
|
|
97
|
+
}
|
|
37
98
|
const $edcf132a9284368a$var$AXIS = {
|
|
38
99
|
top: "top",
|
|
39
100
|
bottom: "top",
|
|
@@ -529,7 +590,7 @@ function $fc909762b330b746$export$61c6a8c84e605fb6(props) {
|
|
|
529
590
|
const $44f671af83e7d9e0$export$2de4954e8ae13b9f = /* @__PURE__ */ createContext({
|
|
530
591
|
placement: "bottom"
|
|
531
592
|
});
|
|
532
|
-
|
|
593
|
+
const $44f671af83e7d9e0$export$746d02f47f4d381 = /* @__PURE__ */ forwardRef(function OverlayArrow(props, ref) {
|
|
533
594
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $44f671af83e7d9e0$export$2de4954e8ae13b9f);
|
|
534
595
|
let placement = props.placement;
|
|
535
596
|
let style = {
|
|
@@ -555,13 +616,14 @@ function $44f671af83e7d9e0$var$OverlayArrow(props, ref) {
|
|
|
555
616
|
ref,
|
|
556
617
|
"data-placement": placement
|
|
557
618
|
});
|
|
558
|
-
}
|
|
559
|
-
const $44f671af83e7d9e0$export$746d02f47f4d381 = /* @__PURE__ */ forwardRef($44f671af83e7d9e0$var$OverlayArrow);
|
|
619
|
+
});
|
|
560
620
|
export {
|
|
561
|
-
$
|
|
562
|
-
$
|
|
563
|
-
$
|
|
564
|
-
$
|
|
565
|
-
$
|
|
566
|
-
$
|
|
621
|
+
$d3f049242431219c$export$6d3443f2c48bfc20 as $,
|
|
622
|
+
$fc909762b330b746$export$61c6a8c84e605fb6 as a,
|
|
623
|
+
$d3f049242431219c$export$45fda7c47f93fd48 as b,
|
|
624
|
+
$2a41e45df1593e64$export$d39e1813b3bdd0e1 as c,
|
|
625
|
+
$44f671af83e7d9e0$export$2de4954e8ae13b9f as d,
|
|
626
|
+
$44f671af83e7d9e0$export$746d02f47f4d381 as e,
|
|
627
|
+
$9daab02d461809db$export$683480f191c0e3ea as f,
|
|
628
|
+
$dd149f63282afbbf$export$f6211563215e3b37 as g
|
|
567
629
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _objectWithoutProperties, b as _slicedToArray, d as _objectSpread2, t as toPropertyKey, f as _typeof, g as _arrayLikeToArray, i as _unsupportedIterableToArray, j as isTouchCapable, k as isMobileDevice, m as multiValueAsValue, s as singleValueAsValue, v as valueTernary, l as classNames, n as defaultComponents, o as isDocumentElement, p as cleanValue, q as
|
|
1
|
+
import { a as _objectWithoutProperties, b as _slicedToArray, d as _objectSpread2, t as toPropertyKey, f as _typeof, g as _arrayLikeToArray, i as _unsupportedIterableToArray, j as isTouchCapable, k as isMobileDevice, m as multiValueAsValue, s as singleValueAsValue, v as valueTernary, l as classNames, n as defaultComponents, o as isDocumentElement, p as cleanValue, q as clearIndicatorCSS, r as containerCSS, u as css$1, w as dropdownIndicatorCSS, x as groupCSS, y as groupHeadingCSS, z as indicatorsContainerCSS, A as indicatorSeparatorCSS, B as inputCSS, C as loadingIndicatorCSS, D as loadingMessageCSS, E as menuCSS, F as menuListCSS, G as menuPortalCSS, H as multiValueCSS, I as multiValueLabelCSS, J as multiValueRemoveCSS, K as noOptionsMessageCSS, L as optionCSS, M as placeholderCSS, N as css, O as valueContainerCSS, P as notNullish, Q as scrollIntoView, _ as _extends, R as noop, S as MenuPlacer, T as removeProps, U as jsx, V as css$2, W as supportsPassiveEvents } from "./index-641ee5b8.esm-DbdaYaxR.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { useState, useCallback, Component, Fragment, useMemo, useRef, useEffect } from "react";
|
|
4
4
|
var _excluded$1 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
@@ -55,7 +55,7 @@ function _defineProperties(e, r) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
function _createClass(e, r, t) {
|
|
58
|
-
return
|
|
58
|
+
return _defineProperties(e.prototype, r), _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
59
59
|
writable: false
|
|
60
60
|
}), e;
|
|
61
61
|
}
|
|
@@ -644,7 +644,7 @@ function DummyInput(_ref3) {
|
|
|
644
644
|
return jsx("input", _extends({
|
|
645
645
|
ref: innerRef
|
|
646
646
|
}, filteredProps, {
|
|
647
|
-
css: /* @__PURE__ */ css({
|
|
647
|
+
css: /* @__PURE__ */ css$2({
|
|
648
648
|
label: "dummyInput",
|
|
649
649
|
// get rid of any default styles
|
|
650
650
|
background: 0,
|
|
@@ -968,7 +968,7 @@ var defaultStyles = {
|
|
|
968
968
|
noOptionsMessage: noOptionsMessageCSS,
|
|
969
969
|
option: optionCSS,
|
|
970
970
|
placeholder: placeholderCSS,
|
|
971
|
-
singleValue: css
|
|
971
|
+
singleValue: css,
|
|
972
972
|
valueContainer: valueContainerCSS
|
|
973
973
|
};
|
|
974
974
|
var colors = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { l as $cc38e7bd3fc7b213$export$2bb74740c4e19def, i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, m as $c5a24bc478652b5f$export$1005530eda016c13, h as $e1995378a142960e$export$18af5c7a9e9b3664 } from "./Collection-CJM_asJz.js";
|
|
2
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CDOs-GuR.js";
|
|
3
3
|
import React__default, { useMemo, createContext } from "react";
|
|
4
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
4
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-39D0mStj.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
6
6
|
let $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map();
|
|
7
7
|
function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
@@ -280,6 +280,7 @@ function $f4b273590fab9f93$export$52210f68a14655d0(props) {
|
|
|
280
280
|
separatorProps: domProps
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
+
const $d2f53cda644affe3$export$65d2a03b8800d6e3 = /* @__PURE__ */ createContext(null);
|
|
283
284
|
const $72a5793c14baf454$export$e0e4026c12a8bdbb = /* @__PURE__ */ createContext({});
|
|
284
285
|
const $72a5793c14baf454$export$8b251419efc915eb = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("header", function Header(props, ref) {
|
|
285
286
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb);
|
|
@@ -313,8 +314,9 @@ export {
|
|
|
313
314
|
$431f98aba6844401$export$1ff3c3f08ae963c0 as a,
|
|
314
315
|
$982254629710d113$export$b95089534ab7c1fd as b,
|
|
315
316
|
$453cc9f0df89c0a5$export$77d5aafae4e095b2 as c,
|
|
316
|
-
$
|
|
317
|
-
$
|
|
318
|
-
$
|
|
319
|
-
$
|
|
317
|
+
$d2f53cda644affe3$export$65d2a03b8800d6e3 as d,
|
|
318
|
+
$325a3faab7a68acd$export$a16aca283550c30d as e,
|
|
319
|
+
$2a25aae57d74318e$export$a05409b8bb224a5a as f,
|
|
320
|
+
$431f98aba6844401$export$6615d83f6de245ce as g,
|
|
321
|
+
$72a5793c14baf454$export$e0e4026c12a8bdbb as h
|
|
320
322
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "./utils-
|
|
2
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
1
|
+
import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "./utils-39D0mStj.js";
|
|
2
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-Ca9uelsn.js";
|
|
3
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
4
4
|
import React__default, { useRef, useMemo, useCallback, useState, useEffect, createContext, forwardRef, useContext } from "react";
|
|
5
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
6
|
-
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715,
|
|
5
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-DlUVKkO7.js";
|
|
6
|
+
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, l as $507fabe10e71c6fb$export$8397ddfc504fdb9a, p as $7215afc6de606d6b$export$de79e2c695e052f3, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-CiqTTjWy.js";
|
|
7
7
|
import { $ as $9446cca9a3875146$export$cb6e0bb50bc19463, a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-GajL10e1.js";
|
|
8
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
9
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-
|
|
10
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
11
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
12
|
-
import { b as $46d819fcbaf35654$export$8f71654801c2f7cd, $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
13
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
14
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
8
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-BlTDSskG.js";
|
|
9
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-C85N3Hzw.js";
|
|
10
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CDOs-GuR.js";
|
|
11
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-NpLM2e3G.js";
|
|
12
|
+
import { b as $46d819fcbaf35654$export$8f71654801c2f7cd, $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-087cO5Ct.js";
|
|
13
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-CGp3guTX.js";
|
|
14
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-ClTQo25k.js";
|
|
15
15
|
function $e8a7022cf87cba2a$export$36da96379f79f245(props) {
|
|
16
16
|
let { onMoveStart, onMove, onMoveEnd } = props;
|
|
17
17
|
let state = useRef({
|
|
@@ -299,7 +299,7 @@ function $28f99e3e86e6ec45$export$e5fda3247f5d67f9(props) {
|
|
|
299
299
|
const wasDragging = isDraggingsRef.current[index];
|
|
300
300
|
isDraggingsRef.current = $28f99e3e86e6ec45$var$replaceIndex(isDraggingsRef.current, index, dragging);
|
|
301
301
|
setDraggings(isDraggingsRef.current);
|
|
302
|
-
if (
|
|
302
|
+
if (wasDragging && !isDraggingsRef.current.some(Boolean)) onChangeEnd(valuesRef.current);
|
|
303
303
|
}
|
|
304
304
|
function getFormattedValue(value2) {
|
|
305
305
|
return formatter.format(value2);
|
|
@@ -669,7 +669,7 @@ const $6f909507e6374d18$export$e99164f0030f3bff = /* @__PURE__ */ createContext(
|
|
|
669
669
|
const $6f909507e6374d18$export$1e7083018727fa60 = /* @__PURE__ */ createContext(null);
|
|
670
670
|
const $6f909507e6374d18$export$f1fce0420cc6d8ee = /* @__PURE__ */ createContext(null);
|
|
671
671
|
const $6f909507e6374d18$export$6189c2744041d8f8 = /* @__PURE__ */ createContext(null);
|
|
672
|
-
|
|
672
|
+
const $6f909507e6374d18$export$472062a354075cee = /* @__PURE__ */ forwardRef(function Slider(props, ref) {
|
|
673
673
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $6f909507e6374d18$export$e99164f0030f3bff);
|
|
674
674
|
let trackRef = useRef(null);
|
|
675
675
|
let numberFormatter = $a916eb452884faea$export$b7a616150fdb9f44(props.formatOptions);
|
|
@@ -727,9 +727,8 @@ function $6f909507e6374d18$var$Slider(props, ref) {
|
|
|
727
727
|
"data-orientation": state.orientation,
|
|
728
728
|
"data-disabled": state.isDisabled || void 0
|
|
729
729
|
}));
|
|
730
|
-
}
|
|
731
|
-
const $6f909507e6374d18$export$
|
|
732
|
-
function $6f909507e6374d18$var$SliderOutput(props, ref) {
|
|
730
|
+
});
|
|
731
|
+
const $6f909507e6374d18$export$a590f758a961cb5b = /* @__PURE__ */ forwardRef(function SliderOutput(props, ref) {
|
|
733
732
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $6f909507e6374d18$export$6189c2744041d8f8);
|
|
734
733
|
let { children, style, className, ...otherProps } = props;
|
|
735
734
|
let state = useContext($6f909507e6374d18$export$1e7083018727fa60);
|
|
@@ -752,9 +751,8 @@ function $6f909507e6374d18$var$SliderOutput(props, ref) {
|
|
|
752
751
|
"data-orientation": state.orientation || void 0,
|
|
753
752
|
"data-disabled": state.isDisabled || void 0
|
|
754
753
|
});
|
|
755
|
-
}
|
|
756
|
-
const $6f909507e6374d18$export$
|
|
757
|
-
function $6f909507e6374d18$var$SliderTrack(props, ref) {
|
|
754
|
+
});
|
|
755
|
+
const $6f909507e6374d18$export$105594979f116971 = /* @__PURE__ */ forwardRef(function SliderTrack(props, ref) {
|
|
758
756
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $6f909507e6374d18$export$f1fce0420cc6d8ee);
|
|
759
757
|
let state = useContext($6f909507e6374d18$export$1e7083018727fa60);
|
|
760
758
|
let { onHoverStart, onHoverEnd, onHoverChange, ...otherProps } = props;
|
|
@@ -781,9 +779,8 @@ function $6f909507e6374d18$var$SliderTrack(props, ref) {
|
|
|
781
779
|
"data-orientation": state.orientation || void 0,
|
|
782
780
|
"data-disabled": state.isDisabled || void 0
|
|
783
781
|
});
|
|
784
|
-
}
|
|
785
|
-
const $6f909507e6374d18$export$
|
|
786
|
-
function $6f909507e6374d18$var$SliderThumb(props, ref) {
|
|
782
|
+
});
|
|
783
|
+
const $6f909507e6374d18$export$2c1b491743890dec = /* @__PURE__ */ forwardRef(function SliderThumb(props, ref) {
|
|
787
784
|
let { inputRef: userInputRef = null } = props;
|
|
788
785
|
let state = useContext($6f909507e6374d18$export$1e7083018727fa60);
|
|
789
786
|
let { ref: trackRef } = $64fa3d84918910a7$export$fabf2dc03a41866e($6f909507e6374d18$export$f1fce0420cc6d8ee);
|
|
@@ -841,8 +838,7 @@ function $6f909507e6374d18$var$SliderThumb(props, ref) {
|
|
|
841
838
|
]
|
|
842
839
|
]
|
|
843
840
|
}, renderProps.children));
|
|
844
|
-
}
|
|
845
|
-
const $6f909507e6374d18$export$2c1b491743890dec = /* @__PURE__ */ forwardRef($6f909507e6374d18$var$SliderThumb);
|
|
841
|
+
});
|
|
846
842
|
export {
|
|
847
843
|
$6f909507e6374d18$export$472062a354075cee as $,
|
|
848
844
|
$6f909507e6374d18$export$105594979f116971 as a,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-39D0mStj.js";
|
|
2
2
|
import React__default, { forwardRef, createContext } from "react";
|
|
3
3
|
const $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ createContext({});
|
|
4
|
-
|
|
4
|
+
const $514c0188e459b4c0$export$5f1af8db9871e1d6 = /* @__PURE__ */ forwardRef(function Text(props, ref) {
|
|
5
5
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $514c0188e459b4c0$export$9afb8bc826b033ea);
|
|
6
6
|
let { elementType: ElementType = "span", ...domProps } = props;
|
|
7
7
|
return /* @__PURE__ */ React__default.createElement(ElementType, {
|
|
@@ -9,8 +9,7 @@ function $514c0188e459b4c0$var$Text(props, ref) {
|
|
|
9
9
|
...domProps,
|
|
10
10
|
ref
|
|
11
11
|
});
|
|
12
|
-
}
|
|
13
|
-
const $514c0188e459b4c0$export$5f1af8db9871e1d6 = /* @__PURE__ */ forwardRef($514c0188e459b4c0$var$Text);
|
|
12
|
+
});
|
|
14
13
|
export {
|
|
15
14
|
$514c0188e459b4c0$export$5f1af8db9871e1d6 as $,
|
|
16
15
|
$514c0188e459b4c0$export$9afb8bc826b033ea as a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-39D0mStj.js";
|
|
2
2
|
import React__default, { useState, useMemo } from "react";
|
|
3
|
-
import { d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-
|
|
3
|
+
import { d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-CiqTTjWy.js";
|
|
4
4
|
const $5c3e21d68f1c4674$var$styles = {
|
|
5
5
|
border: 0,
|
|
6
6
|
clip: "rect(0 0 0 0)",
|