@eightshift/ui-components 6.0.13 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-JRIu2BnS.js → Button-CFnNdpNZ.js} +9 -9
- package/dist/{Dialog-Dd1yqNus.js → Dialog-D0jMcN-a.js} +79 -60
- package/dist/{FieldError-DmVwL6Dj.js → FieldError-BPG0hKfB.js} +2 -2
- package/dist/{FocusScope-Dri1oBcH.js → FocusScope-BJhC1-1e.js} +6 -7
- package/dist/{Heading-eA6LXIKB.js → Heading-CY-_gt-U.js} +2 -2
- package/dist/{Input-Cuw9UbNb.js → Input-B4X6-x6r.js} +8 -8
- package/dist/{Label-DPWyf-gp.js → Label-BDlf9vIY.js} +3 -2
- package/dist/{List-CWheI3JH.js → List-CQFXnN4w.js} +1 -1
- package/dist/{ListBox-DT1sFY3e.js → ListBox-BaN0n5h3.js} +30 -28
- package/dist/{OverlayArrow-DVJTTfZM.js → OverlayArrow-Dy0qw7WL.js} +7 -7
- package/dist/{PortalProvider-CHPnqDSH.js → PortalProvider-BQ1X8vGX.js} +1 -1
- package/dist/{RadioGroup-Cp5cdBI_.js → RadioGroup-CjCAbUr4.js} +15 -15
- package/dist/{SearchField-CLhr5PGZ.js → SearchField-CafsA525.js} +12 -12
- package/dist/{SelectionManager-DbBiF5M8.js → SelectionManager-oojq6MOy.js} +38 -34
- package/dist/{SharedElementTransition-B_vnQ1uR.js → SharedElementTransition-CtoWSaF0.js} +1 -1
- package/dist/{Slider-CZV3HhHY.js → Slider-BIbaMdUE.js} +17 -16
- package/dist/{Text-Dae33gHp.js → Text-CjFEHSfr.js} +3 -2
- package/dist/{VisuallyHidden-eaCBtXhE.js → VisuallyHidden-CqnizvzQ.js} +2 -2
- package/dist/{animation-DY7CNkr6.js → animation-Dfl8uEb3.js} +2 -2
- package/dist/assets/style-admin.css +38 -54
- package/dist/assets/style-editor.css +38 -54
- package/dist/assets/style.css +38 -54
- package/dist/{color-swatch-CZj0jHZd.js → color-swatch-bUFkK7ox.js} +6 -6
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +9 -9
- package/dist/components/checkbox/checkbox.js +10 -10
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +27 -23
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +841 -633
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +10 -10
- package/dist/components/index.js +4 -2
- package/dist/components/input-field/input-field.js +10 -10
- package/dist/components/link-input/link-input.js +24 -23
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/modal/modal.js +21 -22
- package/dist/components/number-picker/number-picker.js +11 -11
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-picker-shell.js +49 -44
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/portal-provider/portal-provider.js +1 -1
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/repeater/repeater.js +1 -1
- package/dist/components/responsive/mini-responsive.js +1 -1
- package/dist/components/select/async-multi-select.js +53 -32
- package/dist/components/select/async-select.js +8 -8
- package/dist/components/select/multi-select.js +9 -9
- package/dist/components/select/shared.js +4 -4
- package/dist/components/select/single-select.js +9 -9
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/smart-image/image-analysis-worker-next.js +144 -0
- package/dist/components/smart-image/smart-image-next.js +294 -0
- package/dist/components/smart-image/smart-image.js +2 -2
- package/dist/components/smart-image/worker-inline.js +1 -1
- package/dist/components/tabs/tabs.js +17 -16
- package/dist/components/toggle/switch.js +7 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +10 -7
- package/dist/components/tooltip/tooltip.js +8 -8
- package/dist/{context-DYYO3Ns3.js → context-iUFQCK8m.js} +1 -1
- package/dist/{general-C8Q0dvEx.js → general-BfKmjm56.js} +3 -4
- package/dist/icons/icons.js +2 -2
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/{index-sSixe2j_.js → index-BL5gdWX4.js} +52 -52
- package/dist/index.js +3 -1
- package/dist/{proxy-B_RaYTfe.js → proxy-DFlYXk07.js} +320 -82
- package/dist/{react-jsx-parser.min-B_hvYYa1.js → react-jsx-parser.min-DAh4myol.js} +35 -35
- package/dist/{shared-Bg9lx3pE.js → shared-CMLCUova.js} +29 -26
- package/dist/{textSelection-Cq_Br7RW.js → textSelection-CeoEP4rL.js} +1 -1
- package/dist/{useButton-CeuyDay5.js → useButton-5YL_nmpZ.js} +3 -3
- package/dist/{useEvent-DoWvho2u.js → useEvent-Zze2g7CX.js} +1 -1
- package/dist/{useFilter-DYtfYPua.js → useFilter-8S94U4xM.js} +1 -1
- package/dist/{useFocusRing-WEswknAY.js → useFocusRing-rUOwLdTK.js} +10 -5
- package/dist/{useFormReset-BDF1K4E4.js → useFormReset-BxtOoO5Q.js} +1 -1
- package/dist/{useFormValidation-Dqzjv4jX.js → useFormValidation-DTmPrTD8.js} +3 -3
- package/dist/{useHover-CG39Ci3A.js → useHover-CmyvqeWX.js} +18 -17
- package/dist/{useLabel--3fT2XKM.js → useLabel-DzXzKZZZ.js} +2 -2
- package/dist/{useLabels-vzdDMGCX.js → useLabels-D8O3gOdV.js} +1 -1
- package/dist/{useListState-Bya9g7W8.js → useListState-B22CApJO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-M3L6Ge2c.js → useLocalizedStringFormatter-CEDs0LsA.js} +1 -1
- package/dist/{useNumberField-D6lsi3Vu.js → useNumberField-CTkI-U9a.js} +50 -40
- package/dist/{useNumberFormatter-BWOyCamK.js → useNumberFormatter-CG_IQXp9.js} +1 -1
- package/dist/{usePress-B9w0X4Ur.js → usePress-CNefMs8d.js} +14 -8
- package/dist/{useSingleSelectListState-D9SqGLJ0.js → useSingleSelectListState-CDZGQDLC.js} +2 -2
- package/dist/{useToggle-Deq2xxQV.js → useToggle-CFFOmZWi.js} +4 -4
- package/dist/{useToggleState-j3o1PvdS.js → useToggleState-BWrKKisg.js} +1 -1
- package/dist/utilities/general.js +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/{utils-HC9_3Crc.js → utils-Cr3pLd9c.js} +77 -38
- package/dist/workers/image-analysis.worker.js +1 -1
- package/package.json +17 -17
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, O as $c87311424ea30a05$export$186c6964ca17d99,
|
|
1
|
+
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, O as $c87311424ea30a05$export$186c6964ca17d99, s as $c87311424ea30a05$export$a11b0059900ceec8, c as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useHover-CmyvqeWX.js";
|
|
2
2
|
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-7sOvrqo0.js";
|
|
3
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-
|
|
3
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-DTmPrTD8.js";
|
|
4
4
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
5
5
|
import { useCallback, useEffect, useRef, useState, useMemo } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, o as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-Cr3pLd9c.js";
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
8
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
9
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-
|
|
10
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
11
|
-
import { d as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-
|
|
12
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
13
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
14
|
-
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-
|
|
8
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BxtOoO5Q.js";
|
|
9
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-rUOwLdTK.js";
|
|
10
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-Zze2g7CX.js";
|
|
11
|
+
import { d as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-B4X6-x6r.js";
|
|
12
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CEDs0LsA.js";
|
|
13
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-CG_IQXp9.js";
|
|
14
|
+
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-CFnNdpNZ.js";
|
|
15
15
|
const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$");
|
|
16
16
|
const $6c7bd7858deea686$var$NUMBERING_SYSTEMS = [
|
|
17
17
|
"latn",
|
|
@@ -660,6 +660,8 @@ $a99895ee3dc79e61$exports = {
|
|
|
660
660
|
function $parcel$interopDefault$1(a) {
|
|
661
661
|
return a && a.__esModule ? a.default : a;
|
|
662
662
|
}
|
|
663
|
+
const $d2e8511e6f209edf$var$noop = () => {
|
|
664
|
+
};
|
|
663
665
|
function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
664
666
|
const _async = useRef(void 0);
|
|
665
667
|
let { value, textValue, minValue, maxValue, isDisabled, isReadOnly, isRequired, onIncrement, onIncrementPage, onDecrement, onDecrementPage, onDecrementToMin, onIncrementToMax } = props;
|
|
@@ -741,21 +743,29 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
|
741
743
|
}, [
|
|
742
744
|
clearAsync
|
|
743
745
|
]);
|
|
744
|
-
const
|
|
746
|
+
const onIncrementEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onIncrement !== null && onIncrement !== void 0 ? onIncrement : $d2e8511e6f209edf$var$noop);
|
|
747
|
+
const onDecrementEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onDecrement !== null && onDecrement !== void 0 ? onDecrement : $d2e8511e6f209edf$var$noop);
|
|
748
|
+
const stepUpEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
749
|
+
if (maxValue === void 0 || isNaN(maxValue) || value === void 0 || isNaN(value) || value < maxValue) {
|
|
750
|
+
onIncrementEvent();
|
|
751
|
+
onIncrementPressStartEvent(60);
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
const onIncrementPressStartEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
|
|
745
755
|
clearAsyncEvent();
|
|
746
756
|
isSpinning.current = true;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
757
|
+
_async.current = window.setTimeout(stepUpEvent, initialStepDelay);
|
|
758
|
+
});
|
|
759
|
+
const stepDownEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
760
|
+
if (minValue === void 0 || isNaN(minValue) || value === void 0 || isNaN(value) || value > minValue) {
|
|
761
|
+
onDecrementEvent();
|
|
762
|
+
onDecrementPressStartEvent(60);
|
|
763
|
+
}
|
|
751
764
|
});
|
|
752
|
-
const
|
|
765
|
+
const onDecrementPressStartEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
|
|
753
766
|
clearAsyncEvent();
|
|
754
767
|
isSpinning.current = true;
|
|
755
|
-
|
|
756
|
-
_async.current = window.setTimeout(() => {
|
|
757
|
-
if (minValue === void 0 || isNaN(minValue) || value === void 0 || isNaN(value) || value > minValue) onDecrementPressStart(60);
|
|
758
|
-
}, initialStepDelay);
|
|
768
|
+
_async.current = window.setTimeout(stepDownEvent, initialStepDelay);
|
|
759
769
|
});
|
|
760
770
|
let cancelContextMenu = (e) => {
|
|
761
771
|
e.preventDefault();
|
|
@@ -764,15 +774,15 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
|
764
774
|
let isUp = useRef(false);
|
|
765
775
|
let [isIncrementPressed, setIsIncrementPressed] = useState(null);
|
|
766
776
|
useEffect(() => {
|
|
767
|
-
if (isIncrementPressed === "touch")
|
|
768
|
-
else if (isIncrementPressed)
|
|
777
|
+
if (isIncrementPressed === "touch") onIncrementPressStartEvent(600);
|
|
778
|
+
else if (isIncrementPressed) onIncrementPressStartEvent(400);
|
|
769
779
|
}, [
|
|
770
780
|
isIncrementPressed
|
|
771
781
|
]);
|
|
772
782
|
let [isDecrementPressed, setIsDecrementPressed] = useState(null);
|
|
773
783
|
useEffect(() => {
|
|
774
|
-
if (isDecrementPressed === "touch")
|
|
775
|
-
else if (isDecrementPressed)
|
|
784
|
+
if (isDecrementPressed === "touch") onDecrementPressStartEvent(600);
|
|
785
|
+
else if (isDecrementPressed) onDecrementPressStartEvent(400);
|
|
776
786
|
}, [
|
|
777
787
|
isDecrementPressed
|
|
778
788
|
]);
|
|
@@ -792,30 +802,30 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
|
792
802
|
},
|
|
793
803
|
incrementButtonProps: {
|
|
794
804
|
onPressStart: (e) => {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
805
|
+
clearAsync();
|
|
806
|
+
if (e.pointerType !== "touch") {
|
|
807
|
+
onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
|
|
808
|
+
setIsIncrementPressed("mouse");
|
|
809
|
+
} else {
|
|
798
810
|
addGlobalListener(window, "pointercancel", onPointerCancel, {
|
|
799
811
|
capture: true
|
|
800
812
|
});
|
|
801
813
|
isUp.current = false;
|
|
802
|
-
|
|
803
|
-
setIsIncrementPressed("touch");
|
|
804
|
-
}, 600);
|
|
814
|
+
setIsIncrementPressed("touch");
|
|
805
815
|
}
|
|
806
816
|
addGlobalListener(window, "contextmenu", cancelContextMenu);
|
|
807
817
|
},
|
|
808
818
|
onPressUp: (e) => {
|
|
809
|
-
if (e.pointerType === "touch") isUp.current = true;
|
|
810
819
|
clearAsync();
|
|
820
|
+
if (e.pointerType === "touch") isUp.current = true;
|
|
811
821
|
removeAllGlobalListeners();
|
|
812
822
|
setIsIncrementPressed(null);
|
|
813
823
|
},
|
|
814
824
|
onPressEnd: (e) => {
|
|
825
|
+
clearAsync();
|
|
815
826
|
if (e.pointerType === "touch") {
|
|
816
827
|
if (!isSpinning.current && isUp.current) onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
|
|
817
828
|
}
|
|
818
|
-
clearAsync();
|
|
819
829
|
isUp.current = false;
|
|
820
830
|
setIsIncrementPressed(null);
|
|
821
831
|
},
|
|
@@ -824,29 +834,29 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
|
|
|
824
834
|
},
|
|
825
835
|
decrementButtonProps: {
|
|
826
836
|
onPressStart: (e) => {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
837
|
+
clearAsync();
|
|
838
|
+
if (e.pointerType !== "touch") {
|
|
839
|
+
onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
|
|
840
|
+
setIsDecrementPressed("mouse");
|
|
841
|
+
} else {
|
|
830
842
|
addGlobalListener(window, "pointercancel", onPointerCancel, {
|
|
831
843
|
capture: true
|
|
832
844
|
});
|
|
833
845
|
isUp.current = false;
|
|
834
|
-
|
|
835
|
-
setIsDecrementPressed("touch");
|
|
836
|
-
}, 600);
|
|
846
|
+
setIsDecrementPressed("touch");
|
|
837
847
|
}
|
|
838
848
|
},
|
|
839
849
|
onPressUp: (e) => {
|
|
840
|
-
if (e.pointerType === "touch") isUp.current = true;
|
|
841
850
|
clearAsync();
|
|
851
|
+
if (e.pointerType === "touch") isUp.current = true;
|
|
842
852
|
removeAllGlobalListeners();
|
|
843
853
|
setIsDecrementPressed(null);
|
|
844
854
|
},
|
|
845
855
|
onPressEnd: (e) => {
|
|
856
|
+
clearAsync();
|
|
846
857
|
if (e.pointerType === "touch") {
|
|
847
858
|
if (!isSpinning.current && isUp.current) onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
|
|
848
859
|
}
|
|
849
|
-
clearAsync();
|
|
850
860
|
isUp.current = false;
|
|
851
861
|
setIsDecrementPressed(null);
|
|
852
862
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-iUFQCK8m.js";
|
|
2
2
|
import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, k as $8a9cb279dc87e130$export$c2b7abe5d61ec696, l as $8a9cb279dc87e130$export$525bc4921d56d4a, d as $431fbd86ca7dc216$export$b204af158042fbac, y as $431fbd86ca7dc216$export$f21a1ffae260145a,
|
|
2
|
-
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
1
|
+
import { f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, k as $8a9cb279dc87e130$export$c2b7abe5d61ec696, l as $8a9cb279dc87e130$export$525bc4921d56d4a, d as $431fbd86ca7dc216$export$b204af158042fbac, y as $431fbd86ca7dc216$export$f21a1ffae260145a, g as $d4ee10de306f2510$export$4282f70798064fe0, j as $d4ee10de306f2510$export$e58f029f0fbfdb29, F as $6a7db85432448f7f$export$29bf1b5f2c56cf63, G as $8a9cb279dc87e130$export$cabe61c495ee3649, H as $6a7db85432448f7f$export$60278871457622de, I as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, J as $ea8dcbcb9ea1b556$export$95185d699e05d4d7, A as $7215afc6de606d6b$export$de79e2c695e052f3, D as $c87311424ea30a05$export$9ac100e40613ea10 } from "./useHover-CmyvqeWX.js";
|
|
2
|
+
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-CeoEP4rL.js";
|
|
3
3
|
import $dbSRa$react__default, { useState, useRef, useCallback, useMemo, useEffect, useContext } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { r as reactDomExports } from "./index-
|
|
4
|
+
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, o as $ff5963eb1fccf552$export$e08e3b67e392101e, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-Cr3pLd9c.js";
|
|
5
|
+
import { r as reactDomExports } from "./index-BL5gdWX4.js";
|
|
6
6
|
function _check_private_redeclaration(obj, privateCollection) {
|
|
7
7
|
if (privateCollection.has(obj)) {
|
|
8
8
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
@@ -46,7 +46,7 @@ function _class_private_field_set(receiver, privateMap, value) {
|
|
|
46
46
|
function $f6c31cce2adf654f$var$usePressResponderContext(props) {
|
|
47
47
|
let context = useContext($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
|
|
48
48
|
if (context) {
|
|
49
|
-
let { register, ...contextProps } = context;
|
|
49
|
+
let { register, ref, ...contextProps } = context;
|
|
50
50
|
props = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props);
|
|
51
51
|
register();
|
|
52
52
|
}
|
|
@@ -94,6 +94,7 @@ class $f6c31cce2adf654f$var$PressEvent {
|
|
|
94
94
|
this.altKey = originalEvent.altKey;
|
|
95
95
|
this.x = x;
|
|
96
96
|
this.y = y;
|
|
97
|
+
this.key = originalEvent.key;
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
const $f6c31cce2adf654f$var$LINK_CLICKED = /* @__PURE__ */ Symbol("linkClicked");
|
|
@@ -305,7 +306,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
305
306
|
state.ignoreEmulatedMouseEvents = false;
|
|
306
307
|
return;
|
|
307
308
|
}
|
|
308
|
-
if (state.target && state.target
|
|
309
|
+
if (state.target && $d4ee10de306f2510$export$4282f70798064fe0(state.target, e.target) && state.pointerType != null) ;
|
|
309
310
|
else cancelEvent(e);
|
|
310
311
|
state.isOverTarget = false;
|
|
311
312
|
};
|
|
@@ -395,7 +396,11 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
395
396
|
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$16a4697467175487(state.target);
|
|
396
397
|
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
397
398
|
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent);
|
|
398
|
-
if ("releasePointerCapture" in target)
|
|
399
|
+
if ("releasePointerCapture" in target) {
|
|
400
|
+
if ("hasPointerCapture" in target) {
|
|
401
|
+
if (target.hasPointerCapture(e.pointerId)) target.releasePointerCapture(e.pointerId);
|
|
402
|
+
} else target.releasePointerCapture(e.pointerId);
|
|
403
|
+
}
|
|
399
404
|
}
|
|
400
405
|
if (shouldStopPropagation) e.stopPropagation();
|
|
401
406
|
};
|
|
@@ -638,7 +643,8 @@ function $f6c31cce2adf654f$var$createEvent(target, e) {
|
|
|
638
643
|
metaKey: e.metaKey,
|
|
639
644
|
altKey: e.altKey,
|
|
640
645
|
clientX,
|
|
641
|
-
clientY
|
|
646
|
+
clientY,
|
|
647
|
+
key: e.key
|
|
642
648
|
};
|
|
643
649
|
}
|
|
644
650
|
function $f6c31cce2adf654f$var$getPointClientRect(point) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
2
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
1
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-B22CApJO.js";
|
|
2
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-CmyvqeWX.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
5
5
|
var _props_defaultSelectedKey;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-Cr3pLd9c.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
3
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
5
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-
|
|
3
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BxtOoO5Q.js";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CNefMs8d.js";
|
|
5
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-CmyvqeWX.js";
|
|
6
6
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
7
7
|
let { isDisabled = false, isReadOnly = false, value, name, form, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid, onPressStart, onPressEnd, onPressChange, onPress, onPressUp, onClick } = props;
|
|
8
8
|
let onChange = (e) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
1
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-CmyvqeWX.js";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
function $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {
|
|
4
4
|
let { isReadOnly } = props;
|
package/dist/utilities/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { arrayMoveMultiple, fixIds } from "./array-helpers.js";
|
|
|
2
2
|
import { camelCase, has, isEmpty, isEqual, isObject, isPlainObject, isString, kebabCase, lowerFirst, pascalCase, snakeCase, upperFirst } from "./es-dash.js";
|
|
3
3
|
import { truncate, truncateEnd, truncateMiddle, unescapeHTML } from "./text-helpers.js";
|
|
4
4
|
import { debounce, throttle } from "./debounce-throttle.js";
|
|
5
|
-
import { b, c, a, d, g, i } from "../general-
|
|
5
|
+
import { b, c, a, d, g, i } from "../general-BfKmjm56.js";
|
|
6
6
|
import { c as c2 } from "../clsx-DgYk2OaC.js";
|
|
7
7
|
import { cyrb64Hash, randomId, simpleHash } from "./hash.js";
|
|
8
8
|
function clsx() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import $dbSRa$react__default, { useState, useRef, useCallback, useContext, useEffect, useMemo } from "react";
|
|
1
|
+
import $dbSRa$react__default, { useState, useRef, useCallback, useContext, useEffect, useMemo, forwardRef } from "react";
|
|
2
2
|
import { c as clsx } from "./clsx-DgYk2OaC.js";
|
|
3
3
|
const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? $dbSRa$react__default.useLayoutEffect : () => {
|
|
4
4
|
};
|
|
@@ -164,26 +164,6 @@ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
|
|
|
164
164
|
for (let callback of callbacks) if (typeof callback === "function") callback(...args);
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
168
|
-
let result = {
|
|
169
|
-
...args[0]
|
|
170
|
-
};
|
|
171
|
-
for (let i = 1; i < args.length; i++) {
|
|
172
|
-
let props = args[i];
|
|
173
|
-
for (let key in props) {
|
|
174
|
-
let a = result[key];
|
|
175
|
-
let b = props[key];
|
|
176
|
-
if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
|
|
177
|
-
key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */
|
|
178
|
-
65 && key.charCodeAt(2) <= /* 'Z' */
|
|
179
|
-
90) result[key] = $ff5963eb1fccf552$export$e08e3b67e392101e(a, b);
|
|
180
|
-
else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") result[key] = clsx(a, b);
|
|
181
|
-
else if (key === "id" && a && b) result.id = $bdb11010cef70236$export$cd8c9cb68f842629(a, b);
|
|
182
|
-
else result[key] = b !== void 0 ? b : a;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return result;
|
|
186
|
-
}
|
|
187
167
|
function $5dc95899b306f630$export$c9058316764c140e(...refs) {
|
|
188
168
|
if (refs.length === 1 && refs[0]) return refs[0];
|
|
189
169
|
return (value) => {
|
|
@@ -205,6 +185,27 @@ function $5dc95899b306f630$var$setRef(ref, value) {
|
|
|
205
185
|
if (typeof ref === "function") return ref(value);
|
|
206
186
|
else if (ref != null) ref.current = value;
|
|
207
187
|
}
|
|
188
|
+
function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
189
|
+
let result = {
|
|
190
|
+
...args[0]
|
|
191
|
+
};
|
|
192
|
+
for (let i = 1; i < args.length; i++) {
|
|
193
|
+
let props = args[i];
|
|
194
|
+
for (let key in props) {
|
|
195
|
+
let a = result[key];
|
|
196
|
+
let b = props[key];
|
|
197
|
+
if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
|
|
198
|
+
key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */
|
|
199
|
+
65 && key.charCodeAt(2) <= /* 'Z' */
|
|
200
|
+
90) result[key] = $ff5963eb1fccf552$export$e08e3b67e392101e(a, b);
|
|
201
|
+
else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") result[key] = clsx(a, b);
|
|
202
|
+
else if (key === "id" && a && b) result.id = $bdb11010cef70236$export$cd8c9cb68f842629(a, b);
|
|
203
|
+
else if (key === "ref" && a && b) result.ref = $5dc95899b306f630$export$c9058316764c140e(a, b);
|
|
204
|
+
else result[key] = b !== void 0 ? b : a;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return result;
|
|
208
|
+
}
|
|
208
209
|
function $df56164dff5785e2$export$4338b53315abf666(ref) {
|
|
209
210
|
const objRef = useRef(null);
|
|
210
211
|
const cleanupRef = useRef(void 0);
|
|
@@ -250,7 +251,7 @@ function $64fa3d84918910a7$export$2881499e37b75b9a({ values, children }) {
|
|
|
250
251
|
return children;
|
|
251
252
|
}
|
|
252
253
|
function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
|
|
253
|
-
let { className, style, children, defaultClassName, defaultChildren, defaultStyle, values } = props;
|
|
254
|
+
let { className, style, children, defaultClassName, defaultChildren, defaultStyle, values, render } = props;
|
|
254
255
|
return useMemo(() => {
|
|
255
256
|
let computedClassName;
|
|
256
257
|
let computedStyle;
|
|
@@ -278,7 +279,8 @@ function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
|
|
|
278
279
|
...computedStyle
|
|
279
280
|
} : void 0,
|
|
280
281
|
children: computedChildren !== null && computedChildren !== void 0 ? computedChildren : defaultChildren,
|
|
281
|
-
"data-rac": ""
|
|
282
|
+
"data-rac": "",
|
|
283
|
+
render: render ? (props2) => render(props2, values) : void 0
|
|
282
284
|
};
|
|
283
285
|
}, [
|
|
284
286
|
className,
|
|
@@ -287,7 +289,8 @@ function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
|
|
|
287
289
|
defaultClassName,
|
|
288
290
|
defaultChildren,
|
|
289
291
|
defaultStyle,
|
|
290
|
-
values
|
|
292
|
+
values,
|
|
293
|
+
render
|
|
291
294
|
]);
|
|
292
295
|
}
|
|
293
296
|
function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) {
|
|
@@ -362,20 +365,56 @@ function $64fa3d84918910a7$export$ef03459518577ad4(props) {
|
|
|
362
365
|
for (const prop in props) if (!prefix.test(prop)) filteredProps[prop] = props[prop];
|
|
363
366
|
return filteredProps;
|
|
364
367
|
}
|
|
368
|
+
function $64fa3d84918910a7$var$DOMElement(ElementType, props, forwardedRef) {
|
|
369
|
+
let { render, ...otherProps } = props;
|
|
370
|
+
let elementRef = useRef(null);
|
|
371
|
+
let ref = useMemo(() => $5dc95899b306f630$export$c9058316764c140e(forwardedRef, elementRef), [
|
|
372
|
+
forwardedRef,
|
|
373
|
+
elementRef
|
|
374
|
+
]);
|
|
375
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
376
|
+
if (process.env.NODE_ENV !== "production" && render) {
|
|
377
|
+
if (!elementRef.current) console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?");
|
|
378
|
+
else if (elementRef.current.localName !== ElementType) console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${ElementType}>, got <${elementRef.current.localName}>. This may break the component behavior and accessibility.`);
|
|
379
|
+
}
|
|
380
|
+
}, [
|
|
381
|
+
ElementType,
|
|
382
|
+
render
|
|
383
|
+
]);
|
|
384
|
+
let domProps = {
|
|
385
|
+
...otherProps,
|
|
386
|
+
ref
|
|
387
|
+
};
|
|
388
|
+
if (render) return render(domProps, void 0);
|
|
389
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement(ElementType, domProps);
|
|
390
|
+
}
|
|
391
|
+
const $64fa3d84918910a7$var$domComponentCache = {};
|
|
392
|
+
const $64fa3d84918910a7$export$df3a06d6289f983e = new Proxy({}, {
|
|
393
|
+
get(target, elementType) {
|
|
394
|
+
if (typeof elementType !== "string") return void 0;
|
|
395
|
+
let res = $64fa3d84918910a7$var$domComponentCache[elementType];
|
|
396
|
+
if (!res) {
|
|
397
|
+
res = /* @__PURE__ */ forwardRef($64fa3d84918910a7$var$DOMElement.bind(null, elementType));
|
|
398
|
+
$64fa3d84918910a7$var$domComponentCache[elementType] = res;
|
|
399
|
+
}
|
|
400
|
+
return res;
|
|
401
|
+
}
|
|
402
|
+
});
|
|
365
403
|
export {
|
|
366
404
|
$64fa3d84918910a7$export$29f1550f4b0d4415 as $,
|
|
367
|
-
$
|
|
368
|
-
$
|
|
369
|
-
$
|
|
370
|
-
$
|
|
371
|
-
$64fa3d84918910a7$export$
|
|
372
|
-
$64fa3d84918910a7$export$
|
|
373
|
-
$64fa3d84918910a7$export$
|
|
374
|
-
$64fa3d84918910a7$export$
|
|
375
|
-
$
|
|
376
|
-
$
|
|
377
|
-
$
|
|
378
|
-
$
|
|
379
|
-
$
|
|
380
|
-
$
|
|
405
|
+
$64fa3d84918910a7$export$df3a06d6289f983e as a,
|
|
406
|
+
$3ef42575df84b30b$export$9d1611c77c2fe928 as b,
|
|
407
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as c,
|
|
408
|
+
$bdb11010cef70236$export$f680877a34711e37 as d,
|
|
409
|
+
$64fa3d84918910a7$export$fabf2dc03a41866e as e,
|
|
410
|
+
$64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as f,
|
|
411
|
+
$64fa3d84918910a7$export$ef03459518577ad4 as g,
|
|
412
|
+
$64fa3d84918910a7$export$4d86445c2cf5e3 as h,
|
|
413
|
+
$64fa3d84918910a7$export$2881499e37b75b9a as i,
|
|
414
|
+
$bdb11010cef70236$export$b4cc09c592e8fdb8 as j,
|
|
415
|
+
$df56164dff5785e2$export$4338b53315abf666 as k,
|
|
416
|
+
$5dc95899b306f630$export$c9058316764c140e as l,
|
|
417
|
+
$b5e257d569688ac6$export$535bd6ca7f90a273 as m,
|
|
418
|
+
$64fa3d84918910a7$export$c62b8e45d58ddad9 as n,
|
|
419
|
+
$ff5963eb1fccf552$export$e08e3b67e392101e as o
|
|
381
420
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as floatBufferFromCanvas, a as analyzeImageData, F as FLOAT_RGBA } from "../general-
|
|
1
|
+
import { f as floatBufferFromCanvas, a as analyzeImageData, F as FLOAT_RGBA } from "../general-BfKmjm56.js";
|
|
2
2
|
self.onmessage = async (event) => {
|
|
3
3
|
const { imageBitmap, settings } = event.data;
|
|
4
4
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -48,25 +48,25 @@
|
|
|
48
48
|
"react-dom": "^18.3.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@adobe/react-spectrum": "^3.46.
|
|
51
|
+
"@adobe/react-spectrum": "^3.46.1",
|
|
52
52
|
"@atom-universe/use-web-worker": "^2.2.1",
|
|
53
|
-
"@dnd-kit/abstract": "^0.2.
|
|
54
|
-
"@dnd-kit/dom": "^0.2.
|
|
55
|
-
"@dnd-kit/helpers": "^0.2.
|
|
56
|
-
"@dnd-kit/react": "^0.2.
|
|
57
|
-
"@eslint/compat": "^2.0.
|
|
58
|
-
"@react-stately/collections": "^3.12.
|
|
53
|
+
"@dnd-kit/abstract": "^0.2.4",
|
|
54
|
+
"@dnd-kit/dom": "^0.2.4",
|
|
55
|
+
"@dnd-kit/helpers": "^0.2.4",
|
|
56
|
+
"@dnd-kit/react": "^0.2.4",
|
|
57
|
+
"@eslint/compat": "^2.0.2",
|
|
58
|
+
"@react-stately/collections": "^3.12.9",
|
|
59
59
|
"@stylistic/eslint-plugin-js": "^4.4.1",
|
|
60
60
|
"@tailwindcss/vite": "^4.1.18",
|
|
61
61
|
"@thi.ng/color": "^5.8.9",
|
|
62
62
|
"@thi.ng/pixel": "^7.5.22",
|
|
63
63
|
"@thi.ng/pixel-analysis": "^2.0.24",
|
|
64
64
|
"@thi.ng/pixel-dominant-colors": "^2.0.28",
|
|
65
|
-
"@types/react": "^18.3.
|
|
65
|
+
"@types/react": "^18.3.28",
|
|
66
66
|
"@types/react-dom": "^18.3.7",
|
|
67
|
-
"@vitejs/plugin-react-swc": "^4.2.
|
|
68
|
-
"@wordpress/i18n": "^6.
|
|
69
|
-
"autoprefixer": "^10.4.
|
|
67
|
+
"@vitejs/plugin-react-swc": "^4.2.3",
|
|
68
|
+
"@wordpress/i18n": "^6.12.0",
|
|
69
|
+
"autoprefixer": "^10.4.24",
|
|
70
70
|
"class-variance-authority": "^0.7.1",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
72
|
"css-gradient-parser": "^0.0.18",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"eslint-config-prettier": "^10.1.8",
|
|
75
75
|
"eslint-plugin-jsdoc": "^61.7.1",
|
|
76
76
|
"eslint-plugin-prettier": "^5.5.5",
|
|
77
|
-
"glob": "^13.0.
|
|
77
|
+
"glob": "^13.0.1",
|
|
78
78
|
"globals": "^16.5.0",
|
|
79
79
|
"just-camel-case": "^6.2.0",
|
|
80
80
|
"just-debounce-it": "^3.2.0",
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
"prettier": "^3.8.1",
|
|
88
88
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
89
89
|
"react": "^18.3.1",
|
|
90
|
-
"react-aria": "^3.
|
|
91
|
-
"react-aria-components": "^1.
|
|
90
|
+
"react-aria": "^3.46.0",
|
|
91
|
+
"react-aria-components": "^1.15.0",
|
|
92
92
|
"react-dom": "^18.3.1",
|
|
93
93
|
"react-jsx-parser": "^2.4.1",
|
|
94
94
|
"react-movable": "^3.4.1",
|
|
95
|
-
"react-stately": "^3.
|
|
95
|
+
"react-stately": "^3.44.0",
|
|
96
96
|
"svg-to-jsx-string": "^0.1.1",
|
|
97
97
|
"tailwindcss": "^4.1.18",
|
|
98
98
|
"tailwindcss-motion": "^1.1.1",
|
|
@@ -103,6 +103,6 @@
|
|
|
103
103
|
"dependencies": {
|
|
104
104
|
"@fontsource-variable/geist-mono": "^5.2.7",
|
|
105
105
|
"@fontsource-variable/roboto-flex": "^5.2.8",
|
|
106
|
-
"motion": "^12.
|
|
106
|
+
"motion": "^12.31.2"
|
|
107
107
|
}
|
|
108
108
|
}
|