@eightshift/ui-components 5.1.4 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-DH22t_SM.js → Button-RTwMSBs-.js} +20 -26
- package/dist/{Collection-BRJOMbOa.js → Collection-D_KhdLDC.js} +40 -23
- package/dist/{Color-CNqKeT8D.js → Color-WxFE7lQB.js} +2 -2
- package/dist/{ColorSwatch-Dt3lRApA.js → ColorSwatch-xVS3rMYS.js} +9 -7
- package/dist/{Dialog-D6EdDPeu.js → Dialog-Xf6AsnV-.js} +86 -62
- package/dist/{FieldError-DHrSdE_Q.js → FieldError-B8BgFmIQ.js} +2 -2
- package/dist/{FocusScope-BEPI2m7u.js → FocusScope-BnwM-e8R.js} +24 -22
- package/dist/{Form-Bnyyv3Im.js → Form-BeMxJA29.js} +13 -3
- package/dist/{Input-DfSBLhDx.js → Group-C4cXobNT.js} +56 -11
- package/dist/{Heading-ba38ScjJ.js → Heading-bh1HU5HH.js} +1 -1
- package/dist/{Label-JS_ob-kh.js → Label-DWVaNd2E.js} +1 -1
- package/dist/{List-BLeHBkfx.js → List-CwJTORxj.js} +1 -1
- package/dist/{ListBox-BY3gwI8c.js → ListBox-BeC97FZ4.js} +62 -38
- package/dist/{OverlayArrow-BUfV-5P3.js → OverlayArrow-EZ0v_ljk.js} +6 -6
- package/dist/{Select-BebwUgKB.js → Select-DEQf8ZWI.js} +96 -58
- package/dist/{Select-aab027f3.esm-BKIJGje-.js → Select-ef7c0426.esm-D6WOCaYm.js} +11 -6
- package/dist/{Separator-CTQWg_HO.js → Separator-Fl7qSeN-.js} +37 -20
- package/dist/{Slider-uOPcIpqS.js → Slider-BQFSEhvk.js} +28 -21
- package/dist/{Text-BuJgePCv.js → Text-AxKZjtFm.js} +1 -1
- package/dist/{TextField-o2U-uBWv.js → TextField-x_eEa_qR.js} +20 -10
- package/dist/{VisuallyHidden-BYi0pekx.js → VisuallyHidden-D9s7FTtC.js} +2 -2
- package/dist/assets/style-admin.css +227 -3
- package/dist/assets/style-editor.css +227 -3
- package/dist/assets/style.css +227 -3
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +11 -10
- package/dist/components/checkbox/checkbox.js +17 -12
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +3 -2
- package/dist/components/color-pickers/solid-color-picker.js +85 -49
- package/dist/components/component-toggle/component-toggle.js +2 -1
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +191 -170
- 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 +18 -18
- package/dist/components/index.js +5 -1
- package/dist/components/input-field/input-field.js +3 -3
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +45 -34
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/modal/modal.js +39 -13
- package/dist/components/number-picker/number-picker.js +15 -13
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +45 -22
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +2 -2
- package/dist/components/responsive/mini-responsive.js +3 -2
- package/dist/components/responsive/responsive-legacy.js +2 -1
- package/dist/components/responsive/responsive.js +2 -1
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- 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 +1 -1
- 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/shared.js +19 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/v2/async-multi-select.js +421 -0
- package/dist/components/select/v2/async-select.js +10 -10
- package/dist/components/select/v2/multi-select.js +403 -0
- package/dist/components/select/v2/shared.js +44 -8
- package/dist/components/select/v2/single-select.js +10 -10
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +2 -1
- package/dist/components/tabs/tabs.js +33 -23
- package/dist/components/toggle/switch.js +11 -8
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +14 -8
- package/dist/components/tooltip/tooltip.js +9 -7
- package/dist/{context-BbYZoHvX.js → context-DMOmz986.js} +1 -1
- package/dist/{default-i18n-OFa3zAyB.js → default-i18n-DY6EfUSA.js} +21 -284
- package/dist/filterDOMProps-D2C6R0DK.js +71 -0
- package/dist/icons/icons.js +1 -1
- package/dist/{index-641ee5b8.esm-BPU8rMZr.js → index-641ee5b8.esm-Bu-mgopl.js} +1 -1
- package/dist/{index-CFozsmNS.js → index-CBHA_HDD.js} +3 -1
- package/dist/{index-BljRBEr_.js → index-Dq3gT5pW.js} +1 -1
- package/dist/index.js +4 -0
- package/dist/{multi-select-components-BcKzA24f.js → multi-select-components-rCCyCaKO.js} +1 -1
- package/dist/{number-CHmNj-oR.js → number-7sOvrqo0.js} +7 -2
- package/dist/{react-select-async.esm-D937XTWW.js → react-select-async.esm-XYrsKYb2.js} +3 -3
- package/dist/{react-select.esm-Ciai3aKf.js → react-select.esm-CCSPY6XR.js} +3 -3
- package/dist/sprintf-DmNrJSYG.js +51 -0
- package/dist/{textSelection-8DpK8fJl.js → textSelection-D5tWX1rJ.js} +1 -1
- package/dist/{useAsyncList-fLtZMvJO.js → useAsyncList-ZqaIH2gh.js} +1 -1
- package/dist/{useButton-lRcWnvOB.js → useButton-BtJSiQi3.js} +13 -5
- package/dist/useDragAndDrop-CddFteYC.js +3917 -0
- package/dist/{useEvent-ICdlokG-.js → useEvent-BifIGnVS.js} +1 -1
- package/dist/{useFilter-BR5z1A4Q.js → useFilter-Cl2ggwwq.js} +1 -1
- package/dist/{useFocusRing-Bv0UJQl8.js → useFocusRing-D5BfOWag.js} +3 -3
- package/dist/{useFormReset-D2YaWRIA.js → useFormReset-yV9VVy9R.js} +3 -4
- package/dist/{useHover-C2SkI1Fn.js → useHover-44IApaa2.js} +67 -34
- package/dist/{useLabel-BPCd5c7-.js → useLabel-C8umX0gk.js} +2 -2
- package/dist/{useLabels-B7-lUnAF.js → useLabels-Cdxi6JSa.js} +1 -1
- package/dist/{useListState-BrZ2XvDS.js → useListState-BSkHuB7-.js} +1 -1
- package/dist/{useLocalizedStringFormatter-C9GO0IDB.js → useLocalizedStringFormatter-eaZiN2tE.js} +1 -1
- package/dist/{useNumberField-y0dLc_6m.js → useNumberField-JhWPy1JY.js} +23 -16
- package/dist/{useNumberFormatter-CZ9QUnRt.js → useNumberFormatter-BCmkV-7c.js} +1 -1
- package/dist/{usePress-DWBuejBp.js → usePress-BnrkvZ7e.js} +20 -5
- package/dist/{useSingleSelectListState-Bh46cRXs.js → useSingleSelectListState-CzJFsSHr.js} +2 -2
- package/dist/{useToggle-yGuUBU7q.js → useToggle-OaIBlwRu.js} +21 -8
- package/dist/{useToggleState-ibcBUHnB.js → useToggleState-BF8hvidm.js} +5 -1
- package/dist/{utils-CZt7LCbO.js → utils-cvK1vxO7.js} +9 -7
- package/package.json +18 -18
- package/dist/Group-LBogWgyp.js +0 -48
- package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
- package/dist/filterDOMProps-EDDcM64A.js +0 -28
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-cvK1vxO7.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
4
4
|
let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as $325a3faab7a68acd$export$a16aca283550c30d } from "./Separator-
|
|
1
|
+
import { d as $325a3faab7a68acd$export$a16aca283550c30d } from "./Separator-Fl7qSeN-.js";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
4
4
|
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, g as $8a9cb279dc87e130$export$715c682d09d639cc, c as $431fbd86ca7dc216$export$b204af158042fbac, h as $d4ee10de306f2510$export$cd4e5573fbe2b576, i as $d4ee10de306f2510$export$e58f029f0fbfdb29, j as $d4ee10de306f2510$export$4282f70798064fe0, k as $8a9cb279dc87e130$export$c2b7abe5d61ec696, l as $8a9cb279dc87e130$export$525bc4921d56d4a, m as $507fabe10e71c6fb$export$b9b3dfddab17db27, n as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useHover-44IApaa2.js";
|
|
2
2
|
import { useRef, useCallback, useState } from "react";
|
|
3
3
|
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
4
4
|
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
@@ -102,6 +102,6 @@ function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
export {
|
|
105
|
-
$
|
|
106
|
-
$
|
|
105
|
+
$9ab94262bd0047c7$export$420e68273165f4ec as $,
|
|
106
|
+
$f7dceffc5ad7768b$export$4e328f61c538687f as a
|
|
107
107
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { e as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-cvK1vxO7.js";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
3
|
function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
|
|
4
|
-
let resetValue = useRef(initialValue);
|
|
5
4
|
let handleReset = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
6
|
-
if (onReset) onReset(
|
|
5
|
+
if (onReset) onReset(initialValue);
|
|
7
6
|
});
|
|
8
7
|
useEffect(() => {
|
|
9
8
|
var _ref_current;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useRef, useCallback, useEffect, useState, useContext, useMemo } from "react";
|
|
2
|
-
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c,
|
|
2
|
+
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, e as $8ae05eaa5c114e9c$export$7f54fc3180508a52, n as $b5e257d569688ac6$export$535bd6ca7f90a273, l as $df56164dff5785e2$export$4338b53315abf666, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
|
|
3
3
|
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
4
4
|
var _el_ownerDocument;
|
|
5
5
|
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
@@ -101,7 +101,8 @@ function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
|
|
|
101
101
|
function $c87311424ea30a05$var$testUserAgent(re) {
|
|
102
102
|
var _window_navigator_userAgentData;
|
|
103
103
|
if (typeof window === "undefined" || window.navigator == null) return false;
|
|
104
|
-
|
|
104
|
+
let brands = (_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands;
|
|
105
|
+
return Array.isArray(brands) && brands.some((brand) => re.test(brand.brand)) || re.test(window.navigator.userAgent);
|
|
105
106
|
}
|
|
106
107
|
function $c87311424ea30a05$var$testPlatform(re) {
|
|
107
108
|
var _window_navigator_userAgentData;
|
|
@@ -251,6 +252,27 @@ function $6a7db85432448f7f$export$60278871457622de(event) {
|
|
|
251
252
|
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
|
252
253
|
return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
253
254
|
}
|
|
255
|
+
const $7d2416ea0959daaa$var$supportsCheckVisibility = typeof Element !== "undefined" && "checkVisibility" in Element.prototype;
|
|
256
|
+
function $7d2416ea0959daaa$var$isStyleVisible(element) {
|
|
257
|
+
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
258
|
+
if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;
|
|
259
|
+
let { display, visibility } = element.style;
|
|
260
|
+
let isVisible = display !== "none" && visibility !== "hidden" && visibility !== "collapse";
|
|
261
|
+
if (isVisible) {
|
|
262
|
+
const { getComputedStyle } = element.ownerDocument.defaultView;
|
|
263
|
+
let { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);
|
|
264
|
+
isVisible = computedDisplay !== "none" && computedVisibility !== "hidden" && computedVisibility !== "collapse";
|
|
265
|
+
}
|
|
266
|
+
return isVisible;
|
|
267
|
+
}
|
|
268
|
+
function $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) {
|
|
269
|
+
return !element.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
|
|
270
|
+
!element.hasAttribute("data-react-aria-prevent-focus") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : true);
|
|
271
|
+
}
|
|
272
|
+
function $7d2416ea0959daaa$export$e989c0fffaa6b27a(element, childElement) {
|
|
273
|
+
if ($7d2416ea0959daaa$var$supportsCheckVisibility) return element.checkVisibility();
|
|
274
|
+
return element.nodeName !== "#comment" && $7d2416ea0959daaa$var$isStyleVisible(element) && $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) && (!element.parentElement || $7d2416ea0959daaa$export$e989c0fffaa6b27a(element.parentElement, element));
|
|
275
|
+
}
|
|
254
276
|
const $b4b717babfbb907b$var$focusableElements = [
|
|
255
277
|
"input:not([disabled]):not([type=hidden])",
|
|
256
278
|
"select:not([disabled])",
|
|
@@ -264,16 +286,25 @@ const $b4b717babfbb907b$var$focusableElements = [
|
|
|
264
286
|
"embed",
|
|
265
287
|
"audio[controls]",
|
|
266
288
|
"video[controls]",
|
|
267
|
-
'[contenteditable]:not([contenteditable^="false"])'
|
|
289
|
+
'[contenteditable]:not([contenteditable^="false"])',
|
|
290
|
+
"permission"
|
|
268
291
|
];
|
|
269
292
|
const $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
270
293
|
$b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
271
294
|
const $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
|
272
295
|
function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
|
|
273
|
-
return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR);
|
|
296
|
+
return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR) && $7d2416ea0959daaa$export$e989c0fffaa6b27a(element) && !$b4b717babfbb907b$var$isInert(element);
|
|
274
297
|
}
|
|
275
298
|
function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
|
|
276
|
-
return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR);
|
|
299
|
+
return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR) && $7d2416ea0959daaa$export$e989c0fffaa6b27a(element) && !$b4b717babfbb907b$var$isInert(element);
|
|
300
|
+
}
|
|
301
|
+
function $b4b717babfbb907b$var$isInert(element) {
|
|
302
|
+
let node = element;
|
|
303
|
+
while (node != null) {
|
|
304
|
+
if (node instanceof node.ownerDocument.defaultView.HTMLElement && node.inert) return true;
|
|
305
|
+
node = node.parentElement;
|
|
306
|
+
}
|
|
307
|
+
return false;
|
|
277
308
|
}
|
|
278
309
|
function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
|
|
279
310
|
let [stateValue, setStateValue] = useState(value || defaultValue);
|
|
@@ -749,8 +780,10 @@ function $6179b936705e76d3$var$handleGlobalPointerEvent(e) {
|
|
|
749
780
|
}
|
|
750
781
|
function $6179b936705e76d3$var$setupGlobalTouchEvents() {
|
|
751
782
|
if (typeof document === "undefined") return;
|
|
752
|
-
if (
|
|
753
|
-
|
|
783
|
+
if ($6179b936705e76d3$var$hoverCount === 0) {
|
|
784
|
+
if (typeof PointerEvent !== "undefined") document.addEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
|
|
785
|
+
else if (process.env.NODE_ENV === "test") document.addEventListener("touchend", $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
|
|
786
|
+
}
|
|
754
787
|
$6179b936705e76d3$var$hoverCount++;
|
|
755
788
|
return () => {
|
|
756
789
|
$6179b936705e76d3$var$hoverCount--;
|
|
@@ -852,7 +885,7 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
852
885
|
};
|
|
853
886
|
}
|
|
854
887
|
export {
|
|
855
|
-
$
|
|
888
|
+
$f645667febf57a63$export$4c014de7c8940b4c as $,
|
|
856
889
|
$46d819fcbaf35654$export$8f71654801c2f7cd as A,
|
|
857
890
|
$c87311424ea30a05$export$9ac100e40613ea10 as B,
|
|
858
891
|
$c87311424ea30a05$export$78551043582a6a98 as C,
|
|
@@ -864,32 +897,32 @@ export {
|
|
|
864
897
|
$e7801be82b4b2a53$export$4debdb1a3f0fa79e as I,
|
|
865
898
|
$f645667febf57a63$export$f9762fab77588ecb as J,
|
|
866
899
|
$c87311424ea30a05$export$e1865c3bedcd822b as K,
|
|
867
|
-
$
|
|
868
|
-
$
|
|
869
|
-
$
|
|
870
|
-
$
|
|
871
|
-
$
|
|
872
|
-
$
|
|
873
|
-
$
|
|
874
|
-
$
|
|
875
|
-
$
|
|
876
|
-
$
|
|
877
|
-
$d4ee10de306f2510$export$
|
|
878
|
-
$d4ee10de306f2510$export$
|
|
879
|
-
$
|
|
880
|
-
$8a9cb279dc87e130$export$
|
|
881
|
-
$
|
|
882
|
-
$507fabe10e71c6fb$export$
|
|
883
|
-
$
|
|
884
|
-
$
|
|
885
|
-
$
|
|
886
|
-
$
|
|
887
|
-
$
|
|
888
|
-
$
|
|
889
|
-
$
|
|
890
|
-
$
|
|
891
|
-
$
|
|
892
|
-
$507fabe10e71c6fb$export$
|
|
900
|
+
$507fabe10e71c6fb$export$98e20ec92f614cfe as L,
|
|
901
|
+
$c87311424ea30a05$export$186c6964ca17d99 as M,
|
|
902
|
+
$458b0a5536c1a7cf$export$40bfa8c7b0832715 as a,
|
|
903
|
+
$c87311424ea30a05$export$fedb369cb70207f1 as b,
|
|
904
|
+
$431fbd86ca7dc216$export$b204af158042fbac as c,
|
|
905
|
+
$bbed8b41f857bcc0$export$24490316f764c430 as d,
|
|
906
|
+
$6179b936705e76d3$export$ae780daf29e6d456 as e,
|
|
907
|
+
$03deb23ff14920c4$export$4eaf04e54aa8eed6 as f,
|
|
908
|
+
$8a9cb279dc87e130$export$715c682d09d639cc as g,
|
|
909
|
+
$d4ee10de306f2510$export$cd4e5573fbe2b576 as h,
|
|
910
|
+
$d4ee10de306f2510$export$e58f029f0fbfdb29 as i,
|
|
911
|
+
$d4ee10de306f2510$export$4282f70798064fe0 as j,
|
|
912
|
+
$8a9cb279dc87e130$export$c2b7abe5d61ec696 as k,
|
|
913
|
+
$8a9cb279dc87e130$export$525bc4921d56d4a as l,
|
|
914
|
+
$507fabe10e71c6fb$export$b9b3dfddab17db27 as m,
|
|
915
|
+
$507fabe10e71c6fb$export$ec71b4b83ac08ec3 as n,
|
|
916
|
+
$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as o,
|
|
917
|
+
$f4e2df6bd15f8569$export$98658e8c59125e6a as p,
|
|
918
|
+
$b4b717babfbb907b$export$bebd5a1431fec25d as q,
|
|
919
|
+
$b4b717babfbb907b$export$4c063cf1350e6fed as r,
|
|
920
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c as s,
|
|
921
|
+
$c87311424ea30a05$export$a11b0059900ceec8 as t,
|
|
922
|
+
$c87311424ea30a05$export$6446a186d09e379e as u,
|
|
923
|
+
$507fabe10e71c6fb$export$630ff653c5ada6a9 as v,
|
|
924
|
+
$431fbd86ca7dc216$export$f21a1ffae260145a as w,
|
|
925
|
+
$507fabe10e71c6fb$export$8397ddfc504fdb9a as x,
|
|
893
926
|
$f645667febf57a63$export$13f3202a3e5ddd5 as y,
|
|
894
927
|
$7215afc6de606d6b$export$de79e2c695e052f3 as z
|
|
895
928
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
1
|
+
import { d as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-cvK1vxO7.js";
|
|
2
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-Cdxi6JSa.js";
|
|
3
3
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
4
4
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
5
5
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-cvK1vxO7.js";
|
|
2
2
|
function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
|
|
3
3
|
let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
|
|
4
4
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { version, useMemo, useCallback, useRef, useEffect } from "react";
|
|
2
|
-
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./Collection-
|
|
2
|
+
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./Collection-D_KhdLDC.js";
|
|
3
3
|
function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
|
|
4
4
|
const pieces = version.split(".");
|
|
5
5
|
const major = parseInt(pieces[0], 10);
|
package/dist/{useLocalizedStringFormatter-C9GO0IDB.js → useLocalizedStringFormatter-eaZiN2tE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DMOmz986.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
const $5b160d28a433310d$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
|
|
4
4
|
const $5b160d28a433310d$var$stringsSymbol = Symbol.for("react-aria.i18n.strings");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-
|
|
3
|
-
import { a as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, c as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./Form-
|
|
1
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, M as $c87311424ea30a05$export$186c6964ca17d99, t as $c87311424ea30a05$export$a11b0059900ceec8, b as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useHover-44IApaa2.js";
|
|
2
|
+
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-7sOvrqo0.js";
|
|
3
|
+
import { a as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, c as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./Form-BeMxJA29.js";
|
|
4
4
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
5
5
|
import { useCallback, useState, useMemo, useEffect, useRef } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-
|
|
8
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
9
|
-
import {
|
|
10
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
11
|
-
import {
|
|
12
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
13
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
14
|
-
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-
|
|
6
|
+
import { e as $8ae05eaa5c114e9c$export$7f54fc3180508a52, b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, p as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-cvK1vxO7.js";
|
|
7
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
8
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-yV9VVy9R.js";
|
|
9
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-D5BfOWag.js";
|
|
10
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-BifIGnVS.js";
|
|
11
|
+
import { d as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Group-C4cXobNT.js";
|
|
12
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-eaZiN2tE.js";
|
|
13
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-BCmkV-7c.js";
|
|
14
|
+
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-RTwMSBs-.js";
|
|
15
15
|
function $7d0a636d7a4dcefd$export$2123ff2b87c81ca(props, ref) {
|
|
16
16
|
let { onScroll, isDisabled } = props;
|
|
17
17
|
let onScrollHandler = useCallback((e) => {
|
|
@@ -33,7 +33,8 @@ const $6c7bd7858deea686$var$NUMBERING_SYSTEMS = [
|
|
|
33
33
|
"arab",
|
|
34
34
|
"hanidec",
|
|
35
35
|
"deva",
|
|
36
|
-
"beng"
|
|
36
|
+
"beng",
|
|
37
|
+
"fullwide"
|
|
37
38
|
];
|
|
38
39
|
class $6c7bd7858deea686$export$cd11ab140839f11d {
|
|
39
40
|
/**
|
|
@@ -258,6 +259,7 @@ function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(props) {
|
|
|
258
259
|
else defaultValue = $9446cca9a3875146$export$7d15b64cf5a3a4c4(defaultValue, minValue, maxValue);
|
|
259
260
|
}
|
|
260
261
|
let [numberValue, setNumberValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, isNaN(defaultValue) ? NaN : defaultValue, onChange);
|
|
262
|
+
let [initialValue] = useState(numberValue);
|
|
261
263
|
let [inputValue, setInputValue] = useState(() => isNaN(numberValue) ? "" : new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, formatOptions).format(numberValue));
|
|
262
264
|
let numberParser = useMemo(() => new $6c7bd7858deea686$export$cd11ab140839f11d(locale, formatOptions), [
|
|
263
265
|
locale,
|
|
@@ -316,6 +318,7 @@ function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(props) {
|
|
|
316
318
|
clampedValue = numberParser.parse(format(clampedValue));
|
|
317
319
|
setNumberValue(clampedValue);
|
|
318
320
|
setInputValue(format(value === void 0 ? clampedValue : numberValue));
|
|
321
|
+
validation.commitValidation();
|
|
319
322
|
};
|
|
320
323
|
let safeNextStep = (operation, minMax = 0) => {
|
|
321
324
|
let prev = parsedValue;
|
|
@@ -381,6 +384,7 @@ function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(props) {
|
|
|
381
384
|
minValue,
|
|
382
385
|
maxValue,
|
|
383
386
|
numberValue: parsedValue,
|
|
387
|
+
defaultNumberValue: isNaN(defaultValue) ? initialValue : defaultValue,
|
|
384
388
|
setNumberValue,
|
|
385
389
|
setInputValue,
|
|
386
390
|
inputValue,
|
|
@@ -665,7 +669,7 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
|
665
669
|
return () => clearAsync();
|
|
666
670
|
}, []);
|
|
667
671
|
let onKeyDown = (e) => {
|
|
668
|
-
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || isReadOnly) return;
|
|
672
|
+
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || isReadOnly || e.nativeEvent.isComposing) return;
|
|
669
673
|
switch (e.key) {
|
|
670
674
|
case "PageUp":
|
|
671
675
|
if (onIncrementPage) {
|
|
@@ -1097,6 +1101,7 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
1097
1101
|
};
|
|
1098
1102
|
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
|
|
1099
1103
|
let onKeyDownEnter = useCallback((e) => {
|
|
1104
|
+
if (e.nativeEvent.isComposing) return;
|
|
1100
1105
|
if (e.key === "Enter") {
|
|
1101
1106
|
commit();
|
|
1102
1107
|
commitValidation();
|
|
@@ -1109,7 +1114,9 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
1109
1114
|
let { labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps } = $d841c8010a73d545$export$4f384c9210e583c3({
|
|
1110
1115
|
...otherProps,
|
|
1111
1116
|
...domProps,
|
|
1117
|
+
// These props are added to a hidden input rather than the formatted textfield.
|
|
1112
1118
|
name: void 0,
|
|
1119
|
+
form: void 0,
|
|
1113
1120
|
label,
|
|
1114
1121
|
autoFocus,
|
|
1115
1122
|
isDisabled,
|
|
@@ -1118,7 +1125,7 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
1118
1125
|
validate: void 0,
|
|
1119
1126
|
[$e5be200c675c3b3a$export$a763b9476acd3eb]: state,
|
|
1120
1127
|
value: inputValue,
|
|
1121
|
-
defaultValue:
|
|
1128
|
+
defaultValue: "!",
|
|
1122
1129
|
autoComplete: "off",
|
|
1123
1130
|
"aria-label": props["aria-label"] || void 0,
|
|
1124
1131
|
"aria-labelledby": props["aria-labelledby"] || void 0,
|
|
@@ -1137,7 +1144,7 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
1137
1144
|
description,
|
|
1138
1145
|
errorMessage
|
|
1139
1146
|
}, state, inputRef);
|
|
1140
|
-
$99facab73266f662$export$5add1d006293d136(inputRef, state.
|
|
1147
|
+
$99facab73266f662$export$5add1d006293d136(inputRef, state.defaultNumberValue, state.setNumberValue);
|
|
1141
1148
|
let inputProps = $3ef42575df84b30b$export$9d1611c77c2fe928(spinButtonProps, focusProps, textFieldProps, {
|
|
1142
1149
|
// override the spinbutton role, we can't focus a spin button with VO
|
|
1143
1150
|
role: null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DMOmz986.js";
|
|
2
2
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as $c87311424ea30a05$export$b7d78993b74f766d, C as $c87311424ea30a05$export$78551043582a6a98, B as $c87311424ea30a05$export$9ac100e40613ea10, E as $c87311424ea30a05$export$7bef049ce92e4224, z as $7215afc6de606d6b$export$de79e2c695e052f3,
|
|
2
|
-
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
1
|
+
import { D as $c87311424ea30a05$export$b7d78993b74f766d, C as $c87311424ea30a05$export$78551043582a6a98, B as $c87311424ea30a05$export$9ac100e40613ea10, E as $c87311424ea30a05$export$7bef049ce92e4224, z as $7215afc6de606d6b$export$de79e2c695e052f3, f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, k as $8a9cb279dc87e130$export$c2b7abe5d61ec696, l as $8a9cb279dc87e130$export$525bc4921d56d4a, j as $d4ee10de306f2510$export$4282f70798064fe0, i as $d4ee10de306f2510$export$e58f029f0fbfdb29, F as $6a7db85432448f7f$export$29bf1b5f2c56cf63, c as $431fbd86ca7dc216$export$b204af158042fbac, G as $8a9cb279dc87e130$export$cabe61c495ee3649, H as $6a7db85432448f7f$export$60278871457622de, w as $431fbd86ca7dc216$export$f21a1ffae260145a, I as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useHover-44IApaa2.js";
|
|
2
|
+
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-D5tWX1rJ.js";
|
|
3
3
|
import React__default, { useContext, createContext, useState, useRef, useMemo, useEffect } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { r as reactDomExports } from "./index-
|
|
4
|
+
import { e as $8ae05eaa5c114e9c$export$7f54fc3180508a52, b as $3ef42575df84b30b$export$9d1611c77c2fe928, p as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-cvK1vxO7.js";
|
|
5
|
+
import { r as reactDomExports } from "./index-CBHA_HDD.js";
|
|
6
6
|
const $ea8dcbcb9ea1b556$var$RouterContext = /* @__PURE__ */ createContext({
|
|
7
7
|
isNative: true,
|
|
8
8
|
open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
|
|
@@ -11,6 +11,13 @@ const $ea8dcbcb9ea1b556$var$RouterContext = /* @__PURE__ */ createContext({
|
|
|
11
11
|
function $ea8dcbcb9ea1b556$export$9a302a45f65d0572() {
|
|
12
12
|
return useContext($ea8dcbcb9ea1b556$var$RouterContext);
|
|
13
13
|
}
|
|
14
|
+
function $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) {
|
|
15
|
+
let target = link.getAttribute("target");
|
|
16
|
+
return (!target || target === "_self") && link.origin === location.origin && !link.hasAttribute("download") && !modifiers.metaKey && // open in new tab (mac)
|
|
17
|
+
!modifiers.ctrlKey && // open in new tab (windows)
|
|
18
|
+
!modifiers.altKey && // download
|
|
19
|
+
!modifiers.shiftKey;
|
|
20
|
+
}
|
|
14
21
|
function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
|
|
15
22
|
var _window_event_type, _window_event;
|
|
16
23
|
let { metaKey, ctrlKey, altKey, shiftKey } = modifiers;
|
|
@@ -69,6 +76,13 @@ function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {
|
|
|
69
76
|
referrerPolicy: props === null || props === void 0 ? void 0 : props.referrerPolicy
|
|
70
77
|
};
|
|
71
78
|
}
|
|
79
|
+
function $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, href, routerOptions) {
|
|
80
|
+
if (!router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
|
|
81
|
+
!e.isDefaultPrevented() && $ea8dcbcb9ea1b556$export$efa8c9099e530235(e.currentTarget, e) && href) {
|
|
82
|
+
e.preventDefault();
|
|
83
|
+
router.open(e.currentTarget, e, href, routerOptions);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
72
86
|
const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = React__default.createContext({
|
|
73
87
|
register: () => {
|
|
74
88
|
}
|
|
@@ -686,5 +700,6 @@ export {
|
|
|
686
700
|
$ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as a,
|
|
687
701
|
$ea8dcbcb9ea1b556$export$9a302a45f65d0572 as b,
|
|
688
702
|
$ea8dcbcb9ea1b556$export$95185d699e05d4d7 as c,
|
|
689
|
-
$ae1eeba8b9eafd08$export$5165eccb35aaadb5 as d
|
|
703
|
+
$ae1eeba8b9eafd08$export$5165eccb35aaadb5 as d,
|
|
704
|
+
$ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f as e
|
|
690
705
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
2
|
-
import {
|
|
1
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-BSkHuB7-.js";
|
|
2
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-44IApaa2.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
5
5
|
var _props_defaultSelectedKey;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-
|
|
3
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
5
|
-
import {
|
|
1
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
|
|
2
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
3
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-yV9VVy9R.js";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-BnrkvZ7e.js";
|
|
5
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-44IApaa2.js";
|
|
6
6
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
7
|
-
let { isDisabled = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid } = props;
|
|
7
|
+
let { isDisabled = false, isReadOnly = false, value, name, form, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid, onPressStart, onPressEnd, onPressChange, onPress, onPressUp, onClick } = props;
|
|
8
8
|
let onChange = (e) => {
|
|
9
9
|
e.stopPropagation();
|
|
10
10
|
state.setSelected(e.target.checked);
|
|
@@ -13,11 +13,23 @@ function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
|
13
13
|
let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;
|
|
14
14
|
if (!hasChildren && !hasAriaLabel && process.env.NODE_ENV !== "production") console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
15
15
|
let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
16
|
+
onPressStart,
|
|
17
|
+
onPressEnd,
|
|
18
|
+
onPressChange,
|
|
19
|
+
onPress,
|
|
20
|
+
onPressUp,
|
|
21
|
+
onClick,
|
|
16
22
|
isDisabled
|
|
17
23
|
});
|
|
18
24
|
let { pressProps: labelProps, isPressed: isLabelPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
19
|
-
|
|
25
|
+
onPressStart,
|
|
26
|
+
onPressEnd,
|
|
27
|
+
onPressChange,
|
|
28
|
+
onPressUp,
|
|
29
|
+
onClick,
|
|
30
|
+
onPress(e) {
|
|
20
31
|
var _ref_current;
|
|
32
|
+
onPress === null || onPress === void 0 ? void 0 : onPress(e);
|
|
21
33
|
state.toggle();
|
|
22
34
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();
|
|
23
35
|
},
|
|
@@ -28,7 +40,7 @@ function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
|
28
40
|
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
29
41
|
labelable: true
|
|
30
42
|
});
|
|
31
|
-
$99facab73266f662$export$5add1d006293d136(ref, state.
|
|
43
|
+
$99facab73266f662$export$5add1d006293d136(ref, state.defaultSelected, state.setSelected);
|
|
32
44
|
return {
|
|
33
45
|
labelProps: $3ef42575df84b30b$export$9d1611c77c2fe928(labelProps, {
|
|
34
46
|
onClick: (e) => e.preventDefault()
|
|
@@ -44,6 +56,7 @@ function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
|
44
56
|
value
|
|
45
57
|
},
|
|
46
58
|
name,
|
|
59
|
+
form,
|
|
47
60
|
type: "checkbox",
|
|
48
61
|
...interactions
|
|
49
62
|
}),
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-44IApaa2.js";
|
|
2
|
+
import { useState } from "react";
|
|
2
3
|
function $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {
|
|
3
4
|
let { isReadOnly } = props;
|
|
4
5
|
let [isSelected, setSelected] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isSelected, props.defaultSelected || false, props.onChange);
|
|
6
|
+
let [initialValue] = useState(isSelected);
|
|
5
7
|
function updateSelected(value) {
|
|
6
8
|
if (!isReadOnly) setSelected(value);
|
|
7
9
|
}
|
|
8
10
|
function toggleState() {
|
|
9
11
|
if (!isReadOnly) setSelected(!isSelected);
|
|
10
12
|
}
|
|
13
|
+
var _props_defaultSelected;
|
|
11
14
|
return {
|
|
12
15
|
isSelected,
|
|
16
|
+
defaultSelected: (_props_defaultSelected = props.defaultSelected) !== null && _props_defaultSelected !== void 0 ? _props_defaultSelected : initialValue,
|
|
13
17
|
setSelected: updateSelected,
|
|
14
18
|
toggle: toggleState
|
|
15
19
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React__default, { useRef, useCallback, useState, useContext, useEffect, useMemo } from "react";
|
|
2
2
|
const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
|
|
3
3
|
};
|
|
4
|
+
var $8ae05eaa5c114e9c$var$_React_useInsertionEffect;
|
|
5
|
+
const $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = React__default["useInsertionEffect"]) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
|
|
4
6
|
function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
|
|
5
7
|
const ref = useRef(null);
|
|
6
|
-
$
|
|
8
|
+
$8ae05eaa5c114e9c$var$useEarlyEffect(() => {
|
|
7
9
|
ref.current = fn;
|
|
8
10
|
}, [
|
|
9
11
|
fn
|
|
@@ -385,13 +387,13 @@ function $64fa3d84918910a7$export$ef03459518577ad4(props) {
|
|
|
385
387
|
export {
|
|
386
388
|
$64fa3d84918910a7$export$fabf2dc03a41866e as $,
|
|
387
389
|
$64fa3d84918910a7$export$29f1550f4b0d4415 as a,
|
|
388
|
-
$
|
|
390
|
+
$3ef42575df84b30b$export$9d1611c77c2fe928 as b,
|
|
389
391
|
clsx as c,
|
|
390
|
-
$
|
|
391
|
-
$
|
|
392
|
-
$
|
|
393
|
-
$64fa3d84918910a7$export$
|
|
394
|
-
$64fa3d84918910a7$export$
|
|
392
|
+
$bdb11010cef70236$export$f680877a34711e37 as d,
|
|
393
|
+
$8ae05eaa5c114e9c$export$7f54fc3180508a52 as e,
|
|
394
|
+
$64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as f,
|
|
395
|
+
$64fa3d84918910a7$export$ef03459518577ad4 as g,
|
|
396
|
+
$64fa3d84918910a7$export$4d86445c2cf5e3 as h,
|
|
395
397
|
$64fa3d84918910a7$export$2881499e37b75b9a as i,
|
|
396
398
|
$bdb11010cef70236$export$b4cc09c592e8fdb8 as j,
|
|
397
399
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as k,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
"react-dom": "^18.3.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@adobe/react-spectrum": "^3.
|
|
47
|
-
"@dnd-kit/abstract": "^0.1.
|
|
46
|
+
"@adobe/react-spectrum": "^3.43.0",
|
|
47
|
+
"@dnd-kit/abstract": "^0.1.20",
|
|
48
48
|
"@dnd-kit/core": "^6.3.1",
|
|
49
|
-
"@dnd-kit/dom": "^0.1.
|
|
50
|
-
"@dnd-kit/helpers": "^0.1.
|
|
49
|
+
"@dnd-kit/dom": "^0.1.20",
|
|
50
|
+
"@dnd-kit/helpers": "^0.1.20",
|
|
51
51
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
52
|
-
"@dnd-kit/react": "^0.1.
|
|
52
|
+
"@dnd-kit/react": "^0.1.20",
|
|
53
53
|
"@dnd-kit/sortable": "^10.0.0",
|
|
54
54
|
"@dnd-kit/utilities": "^3.2.2",
|
|
55
55
|
"@eslint/compat": "^1.3.1",
|
|
56
|
-
"@react-stately/collections": "^3.12.
|
|
56
|
+
"@react-stately/collections": "^3.12.6",
|
|
57
57
|
"@stylistic/eslint-plugin-js": "^4.4.1",
|
|
58
58
|
"@tailwindcss/vite": "^4.1.11",
|
|
59
59
|
"@types/react": "^18.3.23",
|
|
60
60
|
"@types/react-dom": "^18.3.7",
|
|
61
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
62
|
-
"@wordpress/i18n": "^
|
|
61
|
+
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
62
|
+
"@wordpress/i18n": "^6.0.0",
|
|
63
63
|
"autoprefixer": "^10.4.21",
|
|
64
64
|
"class-variance-authority": "^0.7.1",
|
|
65
65
|
"clsx": "^2.1.1",
|
|
66
66
|
"css-gradient-parser": "^0.0.16",
|
|
67
|
-
"eslint": "^9.
|
|
68
|
-
"eslint-config-prettier": "^10.1.
|
|
69
|
-
"eslint-plugin-jsdoc": "^51.
|
|
70
|
-
"eslint-plugin-prettier": "^5.5.
|
|
67
|
+
"eslint": "^9.31.0",
|
|
68
|
+
"eslint-config-prettier": "^10.1.8",
|
|
69
|
+
"eslint-plugin-jsdoc": "^51.4.1",
|
|
70
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
71
71
|
"glob": "^11.0.3",
|
|
72
72
|
"globals": "^16.3.0",
|
|
73
73
|
"just-camel-case": "^6.2.0",
|
|
@@ -81,18 +81,18 @@
|
|
|
81
81
|
"prettier": "^3.6.2",
|
|
82
82
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
83
83
|
"react": "^18.3.1",
|
|
84
|
-
"react-aria": "^3.
|
|
85
|
-
"react-aria-components": "^1.
|
|
84
|
+
"react-aria": "^3.42.0",
|
|
85
|
+
"react-aria-components": "^1.11.0",
|
|
86
86
|
"react-dom": "^18.3.1",
|
|
87
87
|
"react-jsx-parser": "^2.4.0",
|
|
88
88
|
"react-movable": "^3.4.1",
|
|
89
|
-
"react-select": "^5.10.
|
|
90
|
-
"react-stately": "^3.
|
|
89
|
+
"react-select": "^5.10.2",
|
|
90
|
+
"react-stately": "^3.40.0",
|
|
91
91
|
"svg-to-jsx-string": "^0.1.1",
|
|
92
92
|
"tailwindcss": "^4.1.11",
|
|
93
93
|
"tailwindcss-motion": "^1.1.1",
|
|
94
94
|
"tailwindcss-react-aria-components": "^2.0.0",
|
|
95
|
-
"vite": "^7.0.
|
|
95
|
+
"vite": "^7.0.5",
|
|
96
96
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|