@eightshift/ui-components 7.2.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Autocomplete-pLMPWMFq.js +451 -0
- package/dist/Button-Biwg7zwt.js +223 -0
- package/dist/Dialog-C1sh8jbh.js +2474 -0
- package/dist/{Disclosure-NYWFw9RJ.js → Disclosure-B_SHgiUz.js} +50 -51
- package/dist/FocusScope-lGkM8AO8.js +734 -0
- package/dist/Form-BxIJCHYd.js +5 -0
- package/dist/Heading-B2EsUuu6.js +16 -0
- package/dist/{Hidden-8TB37dpK.js → Hidden-DYY00jLm.js} +10 -10
- package/dist/I18nProvider-Cm6dj5jY.js +93 -0
- package/dist/Label-B1TkoVOG.js +17 -0
- package/dist/ListBox-BquE0m8z.js +584 -0
- package/dist/{NumberFormatter-m5VW6MTK.js → NumberFormatter-JHF0Tadk.js} +24 -26
- package/dist/PortalProvider-BYcv24il.js +13 -0
- package/dist/RadioGroup-BxjLooWU.js +324 -0
- package/dist/SearchField-BkAU0HLm.js +322 -0
- package/dist/SelectionIndicator-Bx_EYBXD.js +13 -0
- package/dist/{Slider-DW1RuMVp.js → Slider-DSv6fyZ6.js} +321 -363
- package/dist/Text-C8pfwn0W.js +16 -0
- package/dist/{VisuallyHidden-CfsnJHZb.js → VisuallyHidden-KcXlGa5p.js} +12 -12
- package/dist/{animation-Bd2peown.js → animation-BJ-2VKdB.js} +12 -12
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-D9cbyHeZ.js → button-CawAzlko.js} +21 -73
- package/dist/{checkbox-BO5RZmO8.js → checkbox-t7VrqXv2.js} +59 -62
- package/dist/{color-swatch-D2ZBkuTt.js → color-swatch-gU09x9Ga.js} +417 -414
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +5 -5
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/index.js +15 -15
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -5
- package/dist/components/menu/menu.js +11 -11
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +6 -6
- package/dist/components/portal-provider/portal-provider.js +2 -2
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +6 -6
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +5 -5
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/select/async-multi-select.js +27 -26
- package/dist/components/select/async-select.js +27 -26
- package/dist/components/select/multi-select.js +33 -32
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +33 -32
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +8 -8
- package/dist/components/slider/slider.js +8 -8
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-CTDVJ4zd.js → draggable-Cxv-OueQ.js} +1 -1
- package/dist/filterDOMProps-BfW758QC.js +69 -0
- package/dist/{gradient-editor-xfxA_s9a.js → gradient-editor-CInqVF8v.js} +6 -11
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +15 -15
- package/dist/{input-field-_OCWbftf.js → input-field-BdFrxQ-R.js} +46 -47
- package/dist/{jsx-svg-BRJ4n3pD.js → jsx-svg-DT1SBWuP.js} +6 -12
- package/dist/keyboard-CT41mQzR.js +55 -0
- package/dist/{link-input-Bh8G7Urm.js → link-input-BDFhSSvH.js} +324 -356
- package/dist/{modal-snrElwty.js → modal-CJDaBdPh.js} +100 -92
- package/dist/{number-ZZIxJukn.js → number-MWRvGfyE.js} +10 -10
- package/dist/{number-picker-Dhtx4409.js → number-picker-BrxrB-xq.js} +43 -42
- package/dist/{shared-BiWZjrGF.js → shared-CI4kcnm8.js} +482 -502
- package/dist/{smart-image-CBNbxJ57.js → smart-image-eGdMu9s9.js} +2 -2
- package/dist/{solid-color-picker-DukArNH-.js → solid-color-picker-DXgX-OAm.js} +926 -935
- package/dist/{switch-DmsvyQPa.js → switch-DNHFoCCx.js} +28 -28
- package/dist/{tabs-DaIUEc0g.js → tabs-C2tPOEYr.js} +150 -153
- package/dist/textSelection-BhX_2zV9.js +45 -0
- package/dist/{toggle-button-BlzUGfGy.js → toggle-button-DYDp11rq.js} +35 -35
- package/dist/{tooltip-BzJzYlcc.js → tooltip-C-hT6tN9.js} +162 -162
- package/dist/{useAsyncList-BNzwKoX4.js → useAsyncList-DsOh1xIx.js} +54 -74
- package/dist/{useButton-ra1ZSZ4z.js → useButton-BMZc4fTX.js} +11 -11
- package/dist/{SelectionManager-B8lLv6Ue.js → useCollection-CBVYSuGz.js} +1689 -1777
- package/dist/{useEvent-DkZVfgsS.js → useEvent-ypAU33vv.js} +5 -5
- package/dist/useField-BXf__jxy.js +32 -0
- package/dist/{useFilter-OiMnf6sb.js → useFilter-CfKEbIwL.js} +5 -5
- package/dist/{useFocusRing-DuYL4cdO.js → useFocusRing-BgYY-7ko.js} +23 -23
- package/dist/useFormReset-BuMc_O4y.js +17 -0
- package/dist/{FieldError-BWDbP5Db.js → useFormValidation-BcME9D0E.js} +63 -66
- package/dist/useHover-lyApu3ba.js +975 -0
- package/dist/{useLabel-2EohW5l6.js → useLabel-Rv8cIIKk.js} +8 -8
- package/dist/{useLabels-B2p7RXi5.js → useLabels-xOYtkA8o.js} +5 -5
- package/dist/useListState-u6DfeXHi.js +135 -0
- package/dist/{useLocalizedStringFormatter-Dv2diN3k.js → useLocalizedStringFormatter-CR-bmorj.js} +45 -45
- package/dist/{useNumberField-2xbi3jRV.js → useNumberFieldState-xL-ecwNz.js} +665 -619
- package/dist/useNumberFormatter-CR1PAFPG.js +10 -0
- package/dist/useOverlayTriggerState-AeCx45Gv.js +551 -0
- package/dist/usePress-Dnx5rBoD.js +593 -0
- package/dist/useTextField-BW3ZwGyz.js +159 -0
- package/dist/{useToggle-ecIirvIM.js → useToggle-BF5wptMP.js} +19 -20
- package/dist/useToggleState-D5P01lch.js +22 -0
- package/dist/useToolbar-BT25-MJg.js +55 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +3 -3
- package/dist/{utils-B_uiqNa4.js → utils-JFcCNFzy.js} +121 -122
- package/package.json +18 -18
- package/dist/Button-h6xF_WrP.js +0 -225
- package/dist/Dialog-i5VLQw1o.js +0 -2488
- package/dist/FocusScope-CgwbGOBB.js +0 -746
- package/dist/Form-DTMkbrQY.js +0 -5
- package/dist/Heading-Hol-wS_B.js +0 -16
- package/dist/Input-BURqyJXW.js +0 -161
- package/dist/Label-DFXXxMKY.js +0 -17
- package/dist/ListBox-B21SgugS.js +0 -601
- package/dist/OverlayArrow-BoloUPQM.js +0 -573
- package/dist/PortalProvider-DinZZCKX.js +0 -14
- package/dist/RSPContexts-C_z0bI8W.js +0 -12
- package/dist/RadioGroup-BwlGtCja.js +0 -329
- package/dist/SearchField-DR_I4_yn.js +0 -765
- package/dist/SelectionIndicator-31L6EI9F.js +0 -13
- package/dist/Text-O6VBBDlP.js +0 -16
- package/dist/context-C-XNeJ_l.js +0 -93
- package/dist/filterDOMProps-_2_3GD-K.js +0 -69
- package/dist/textSelection-Dv6WPj0Z.js +0 -45
- package/dist/useField-D0WrzR2F.js +0 -32
- package/dist/useFormReset-DdkykzAn.js +0 -18
- package/dist/useHover-qaMm3XFO.js +0 -982
- package/dist/useListState-CD_5vfyy.js +0 -147
- package/dist/useNumberFormatter-C2Cm2mNj.js +0 -10
- package/dist/usePress-ZP1TjkFf.js +0 -678
- package/dist/useToggleState-IIDbiKPl.js +0 -23
- /package/dist/{List-DWlgW2Ex.js → List---tsVJlI.js} +0 -0
- /package/dist/{build-module-Bsx62nlm.js → build-module-K6vi4xE0.js} +0 -0
- /package/dist/{debounce-throttle-DXxSAKpq.js → debounce-throttle-LSPAPFtq.js} +0 -0
- /package/dist/{dist-2gkv7_1U.js → dist-jw8wvxoG.js} +0 -0
- /package/dist/{es-dash-HqXWZZ3_.js → es-dash-BuShf_ht.js} +0 -0
- /package/dist/{utilities-lwX686oD.js → utilities-DV0KKJNR.js} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-JFcCNFzy.js";
|
|
2
|
+
import React, { createContext, forwardRef } from "react";
|
|
3
|
+
//#region node_modules/react-aria-components/dist/private/Text.mjs
|
|
4
|
+
var $efe09c6d1c304b50$export$9afb8bc826b033ea = createContext({});
|
|
5
|
+
var $efe09c6d1c304b50$export$5f1af8db9871e1d6 = forwardRef(function Text(props, ref) {
|
|
6
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $efe09c6d1c304b50$export$9afb8bc826b033ea);
|
|
7
|
+
let { elementType = "span", ...domProps } = props;
|
|
8
|
+
let ElementType = $7230ffa83bc0c2cf$export$df3a06d6289f983e[elementType];
|
|
9
|
+
return React.createElement(ElementType, {
|
|
10
|
+
className: "react-aria-Text",
|
|
11
|
+
...domProps,
|
|
12
|
+
ref
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { $efe09c6d1c304b50$export$9afb8bc826b033ea as n, $efe09c6d1c304b50$export$5f1af8db9871e1d6 as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as $
|
|
2
|
-
import { n as $
|
|
1
|
+
import { u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-JFcCNFzy.js";
|
|
2
|
+
import { n as $2c9edc598a03d523$export$420e68273165f4ec } from "./useFocusRing-BgYY-7ko.js";
|
|
3
3
|
import React, { useMemo, useState } from "react";
|
|
4
|
-
//#region node_modules
|
|
5
|
-
var $
|
|
4
|
+
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
|
|
5
|
+
var $ea3928288112382f$var$styles = {
|
|
6
6
|
border: 0,
|
|
7
7
|
clip: "rect(0 0 0 0)",
|
|
8
8
|
clipPath: "inset(50%)",
|
|
@@ -14,30 +14,30 @@ var $5c3e21d68f1c4674$var$styles = {
|
|
|
14
14
|
width: "1px",
|
|
15
15
|
whiteSpace: "nowrap"
|
|
16
16
|
};
|
|
17
|
-
function $
|
|
17
|
+
function $ea3928288112382f$export$a966af930f325cab(props = {}) {
|
|
18
18
|
let { style, isFocusable } = props;
|
|
19
19
|
let [isFocused, setFocused] = useState(false);
|
|
20
|
-
let { focusWithinProps } = $
|
|
20
|
+
let { focusWithinProps } = $2c9edc598a03d523$export$420e68273165f4ec({
|
|
21
21
|
isDisabled: !isFocusable,
|
|
22
22
|
onFocusWithinChange: (val) => setFocused(val)
|
|
23
23
|
});
|
|
24
24
|
let combinedStyles = useMemo(() => {
|
|
25
25
|
if (isFocused) return style;
|
|
26
26
|
else if (style) return {
|
|
27
|
-
...$
|
|
27
|
+
...$ea3928288112382f$var$styles,
|
|
28
28
|
...style
|
|
29
29
|
};
|
|
30
|
-
else return $
|
|
30
|
+
else return $ea3928288112382f$var$styles;
|
|
31
31
|
}, [isFocused]);
|
|
32
32
|
return { visuallyHiddenProps: {
|
|
33
33
|
...focusWithinProps,
|
|
34
34
|
style: combinedStyles
|
|
35
35
|
} };
|
|
36
36
|
}
|
|
37
|
-
function $
|
|
37
|
+
function $ea3928288112382f$export$439d29a4e110a164(props) {
|
|
38
38
|
let { children, elementType: Element = "div", isFocusable, style, ...otherProps } = props;
|
|
39
|
-
let { visuallyHiddenProps } = $
|
|
40
|
-
return React.createElement(Element, $
|
|
39
|
+
let { visuallyHiddenProps } = $ea3928288112382f$export$a966af930f325cab(props);
|
|
40
|
+
return React.createElement(Element, $bbaa08b3cd72f041$export$9d1611c77c2fe928(otherProps, visuallyHiddenProps), children);
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
|
-
export { $
|
|
43
|
+
export { $ea3928288112382f$export$a966af930f325cab as n, $ea3928288112382f$export$439d29a4e110a164 as t };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c } from "./utils-JFcCNFzy.js";
|
|
2
2
|
import { useCallback, useState } from "react";
|
|
3
3
|
import { flushSync } from "react-dom";
|
|
4
|
-
//#region node_modules
|
|
5
|
-
function $
|
|
4
|
+
//#region node_modules/react-aria/dist/private/utils/animation.mjs
|
|
5
|
+
function $fcc7165e876206c6$export$6d3443f2c48bfc20(ref, isReady = true) {
|
|
6
6
|
let [isEntering, setEntering] = useState(true);
|
|
7
7
|
let isAnimationReady = isEntering && isReady;
|
|
8
|
-
$
|
|
8
|
+
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
9
9
|
if (isAnimationReady && ref.current && "getAnimations" in ref.current) {
|
|
10
10
|
for (let animation of ref.current.getAnimations()) if (animation instanceof CSSTransition) animation.cancel();
|
|
11
11
|
}
|
|
12
12
|
}, [ref, isAnimationReady]);
|
|
13
|
-
$
|
|
13
|
+
$fcc7165e876206c6$var$useAnimation(ref, isAnimationReady, useCallback(() => setEntering(false), []));
|
|
14
14
|
return isAnimationReady;
|
|
15
15
|
}
|
|
16
|
-
function $
|
|
16
|
+
function $fcc7165e876206c6$export$45fda7c47f93fd48(ref, isOpen) {
|
|
17
17
|
let [exitState, setExitState] = useState(isOpen ? "open" : "closed");
|
|
18
18
|
switch (exitState) {
|
|
19
19
|
case "open":
|
|
@@ -25,13 +25,13 @@ function $d3f049242431219c$export$45fda7c47f93fd48(ref, isOpen) {
|
|
|
25
25
|
break;
|
|
26
26
|
}
|
|
27
27
|
let isExiting = exitState === "exiting";
|
|
28
|
-
$
|
|
28
|
+
$fcc7165e876206c6$var$useAnimation(ref, isExiting, useCallback(() => {
|
|
29
29
|
setExitState((state) => state === "exiting" ? "closed" : state);
|
|
30
30
|
}, []));
|
|
31
31
|
return isExiting;
|
|
32
32
|
}
|
|
33
|
-
function $
|
|
34
|
-
$
|
|
33
|
+
function $fcc7165e876206c6$var$useAnimation(ref, isActive, onEnd) {
|
|
34
|
+
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
35
35
|
if (isActive && ref.current) {
|
|
36
36
|
if (!("getAnimations" in ref.current)) {
|
|
37
37
|
onEnd();
|
|
@@ -43,11 +43,11 @@ function $d3f049242431219c$var$useAnimation(ref, isActive, onEnd) {
|
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
let canceled = false;
|
|
46
|
-
Promise.
|
|
46
|
+
Promise.allSettled(animations.map((a) => a.finished)).then(() => {
|
|
47
47
|
if (!canceled) flushSync(() => {
|
|
48
48
|
onEnd();
|
|
49
49
|
});
|
|
50
|
-
})
|
|
50
|
+
});
|
|
51
51
|
return () => {
|
|
52
52
|
canceled = true;
|
|
53
53
|
};
|
|
@@ -59,4 +59,4 @@ function $d3f049242431219c$var$useAnimation(ref, isActive, onEnd) {
|
|
|
59
59
|
]);
|
|
60
60
|
}
|
|
61
61
|
//#endregion
|
|
62
|
-
export { $
|
|
62
|
+
export { $fcc7165e876206c6$export$6d3443f2c48bfc20 as n, $fcc7165e876206c6$export$45fda7c47f93fd48 as t };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|