@eightshift/ui-components 7.2.1 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Autocomplete-pLMPWMFq.js +451 -0
- package/dist/Button-Biwg7zwt.js +223 -0
- package/dist/Dialog-C1sh8jbh.js +2474 -0
- package/dist/{Disclosure-NYWFw9RJ.js → Disclosure-B_SHgiUz.js} +50 -51
- package/dist/FocusScope-lGkM8AO8.js +734 -0
- package/dist/Form-BxIJCHYd.js +5 -0
- package/dist/Heading-B2EsUuu6.js +16 -0
- package/dist/{Hidden-8TB37dpK.js → Hidden-DYY00jLm.js} +10 -10
- package/dist/I18nProvider-Cm6dj5jY.js +93 -0
- package/dist/Label-B1TkoVOG.js +17 -0
- package/dist/ListBox-BquE0m8z.js +584 -0
- package/dist/{NumberFormatter-m5VW6MTK.js → NumberFormatter-JHF0Tadk.js} +24 -26
- package/dist/PortalProvider-BYcv24il.js +13 -0
- package/dist/RadioGroup-BxjLooWU.js +324 -0
- package/dist/SearchField-BkAU0HLm.js +322 -0
- package/dist/SelectionIndicator-Bx_EYBXD.js +13 -0
- package/dist/{Slider-DW1RuMVp.js → Slider-DSv6fyZ6.js} +321 -363
- package/dist/Text-C8pfwn0W.js +16 -0
- package/dist/{VisuallyHidden-CfsnJHZb.js → VisuallyHidden-KcXlGa5p.js} +12 -12
- package/dist/{animation-Bd2peown.js → animation-BJ-2VKdB.js} +12 -12
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-D9cbyHeZ.js → button-CawAzlko.js} +21 -73
- package/dist/{checkbox-BO5RZmO8.js → checkbox-t7VrqXv2.js} +59 -62
- package/dist/{color-swatch-D2ZBkuTt.js → color-swatch-gU09x9Ga.js} +417 -414
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +5 -5
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/index.js +15 -15
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -5
- package/dist/components/menu/menu.js +11 -11
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +6 -6
- package/dist/components/portal-provider/portal-provider.js +2 -2
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +6 -6
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +5 -5
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/select/async-multi-select.js +27 -26
- package/dist/components/select/async-select.js +27 -26
- package/dist/components/select/multi-select.js +33 -32
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +33 -32
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +8 -8
- package/dist/components/slider/slider.js +8 -8
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-CTDVJ4zd.js → draggable-Cxv-OueQ.js} +1 -1
- package/dist/filterDOMProps-BfW758QC.js +69 -0
- package/dist/{gradient-editor-CD5Sho6A.js → gradient-editor-CInqVF8v.js} +6 -6
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +15 -15
- package/dist/{input-field-_OCWbftf.js → input-field-BdFrxQ-R.js} +46 -47
- package/dist/keyboard-CT41mQzR.js +55 -0
- package/dist/{link-input-BnjtzMbF.js → link-input-BDFhSSvH.js} +324 -356
- package/dist/{modal-snrElwty.js → modal-CJDaBdPh.js} +100 -92
- package/dist/{number-ZZIxJukn.js → number-MWRvGfyE.js} +10 -10
- package/dist/{number-picker-Dhtx4409.js → number-picker-BrxrB-xq.js} +43 -42
- package/dist/{shared-BpAYSi3F.js → shared-CI4kcnm8.js} +482 -502
- package/dist/{smart-image-CBNbxJ57.js → smart-image-eGdMu9s9.js} +2 -2
- package/dist/{solid-color-picker-DukArNH-.js → solid-color-picker-DXgX-OAm.js} +926 -935
- package/dist/{switch-DmsvyQPa.js → switch-DNHFoCCx.js} +28 -28
- package/dist/{tabs-Cy6gB0RL.js → tabs-C2tPOEYr.js} +145 -149
- package/dist/textSelection-BhX_2zV9.js +45 -0
- package/dist/{toggle-button-BlzUGfGy.js → toggle-button-DYDp11rq.js} +35 -35
- package/dist/{tooltip-BzJzYlcc.js → tooltip-C-hT6tN9.js} +162 -162
- package/dist/{useAsyncList-BNzwKoX4.js → useAsyncList-DsOh1xIx.js} +54 -74
- package/dist/{useButton-ra1ZSZ4z.js → useButton-BMZc4fTX.js} +11 -11
- package/dist/{SelectionManager-B8lLv6Ue.js → useCollection-CBVYSuGz.js} +1689 -1777
- package/dist/{useEvent-DkZVfgsS.js → useEvent-ypAU33vv.js} +5 -5
- package/dist/useField-BXf__jxy.js +32 -0
- package/dist/{useFilter-OiMnf6sb.js → useFilter-CfKEbIwL.js} +5 -5
- package/dist/{useFocusRing-DuYL4cdO.js → useFocusRing-BgYY-7ko.js} +23 -23
- package/dist/useFormReset-BuMc_O4y.js +17 -0
- package/dist/{FieldError-BWDbP5Db.js → useFormValidation-BcME9D0E.js} +63 -66
- package/dist/useHover-lyApu3ba.js +975 -0
- package/dist/{useLabel-2EohW5l6.js → useLabel-Rv8cIIKk.js} +8 -8
- package/dist/{useLabels-B2p7RXi5.js → useLabels-xOYtkA8o.js} +5 -5
- package/dist/useListState-u6DfeXHi.js +135 -0
- package/dist/{useLocalizedStringFormatter-Dv2diN3k.js → useLocalizedStringFormatter-CR-bmorj.js} +45 -45
- package/dist/{useNumberField-2xbi3jRV.js → useNumberFieldState-xL-ecwNz.js} +665 -619
- package/dist/useNumberFormatter-CR1PAFPG.js +10 -0
- package/dist/useOverlayTriggerState-AeCx45Gv.js +551 -0
- package/dist/usePress-Dnx5rBoD.js +593 -0
- package/dist/useTextField-BW3ZwGyz.js +159 -0
- package/dist/{useToggle-ecIirvIM.js → useToggle-BF5wptMP.js} +19 -20
- package/dist/useToggleState-D5P01lch.js +22 -0
- package/dist/useToolbar-BT25-MJg.js +55 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +3 -3
- package/dist/{utils-B_uiqNa4.js → utils-JFcCNFzy.js} +121 -122
- package/package.json +13 -13
- package/dist/Button-h6xF_WrP.js +0 -225
- package/dist/Dialog-i5VLQw1o.js +0 -2488
- package/dist/FocusScope-CgwbGOBB.js +0 -746
- package/dist/Form-DTMkbrQY.js +0 -5
- package/dist/Heading-Hol-wS_B.js +0 -16
- package/dist/Input-BURqyJXW.js +0 -161
- package/dist/Label-DFXXxMKY.js +0 -17
- package/dist/ListBox-BHUJxpwh.js +0 -600
- package/dist/OverlayArrow-BoloUPQM.js +0 -573
- package/dist/PortalProvider-DinZZCKX.js +0 -14
- package/dist/RSPContexts-C_z0bI8W.js +0 -12
- package/dist/RadioGroup-BwlGtCja.js +0 -329
- package/dist/SearchField-Cm1i5mLj.js +0 -764
- package/dist/SelectionIndicator-31L6EI9F.js +0 -13
- package/dist/Text-O6VBBDlP.js +0 -16
- package/dist/context-C-XNeJ_l.js +0 -93
- package/dist/filterDOMProps-_2_3GD-K.js +0 -69
- package/dist/textSelection-Dv6WPj0Z.js +0 -45
- package/dist/useField-D0WrzR2F.js +0 -32
- package/dist/useFormReset-DdkykzAn.js +0 -18
- package/dist/useHover-qaMm3XFO.js +0 -982
- package/dist/useListState-CD_5vfyy.js +0 -147
- package/dist/useNumberFormatter-C2Cm2mNj.js +0 -10
- package/dist/usePress-ZP1TjkFf.js +0 -678
- package/dist/useToggleState-IIDbiKPl.js +0 -23
- /package/dist/{List-DWlgW2Ex.js → List---tsVJlI.js} +0 -0
- /package/dist/{build-module-Bsx62nlm.js → build-module-K6vi4xE0.js} +0 -0
- /package/dist/{debounce-throttle-DXxSAKpq.js → debounce-throttle-LSPAPFtq.js} +0 -0
- /package/dist/{dist-2gkv7_1U.js → dist-jw8wvxoG.js} +0 -0
- /package/dist/{es-dash-HqXWZZ3_.js → es-dash-BuShf_ht.js} +0 -0
- /package/dist/{jsx-svg-DgKbriN1.js → jsx-svg-DT1SBWuP.js} +0 -0
- /package/dist/{utilities-lwX686oD.js → utilities-DV0KKJNR.js} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as $
|
|
2
|
-
import {
|
|
3
|
-
import { t as $
|
|
4
|
-
import { t as $
|
|
5
|
-
import { t as $
|
|
6
|
-
import { t as $
|
|
1
|
+
import { a as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, d as $4064df0d6f9620e1$export$c9058316764c140e, h as $c4867b2f328c2698$export$e5c5a5f917a5871c, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-JFcCNFzy.js";
|
|
2
|
+
import { d as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useHover-lyApu3ba.js";
|
|
3
|
+
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-ypAU33vv.js";
|
|
4
|
+
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BfW758QC.js";
|
|
5
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-BgYY-7ko.js";
|
|
6
|
+
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-Biwg7zwt.js";
|
|
7
7
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useRef } from "react";
|
|
8
8
|
import { flushSync } from "react-dom";
|
|
9
|
-
//#region node_modules
|
|
10
|
-
function $
|
|
9
|
+
//#region node_modules/react-aria/dist/private/disclosure/useDisclosure.mjs
|
|
10
|
+
function $89a3495b7d82e671$export$6e3e27031a30522f(props, state, ref) {
|
|
11
11
|
let { isDisabled } = props;
|
|
12
|
-
let triggerId = $
|
|
13
|
-
let panelId = $
|
|
14
|
-
let isSSR = $
|
|
12
|
+
let triggerId = $390e54f620492c70$export$f680877a34711e37();
|
|
13
|
+
let panelId = $390e54f620492c70$export$f680877a34711e37();
|
|
14
|
+
let isSSR = $c7eafbbe1ea5834e$export$535bd6ca7f90a273();
|
|
15
15
|
let raf = useRef(null);
|
|
16
|
-
$
|
|
16
|
+
$600b3cf69ae46262$export$90fc3a17d93f704c(ref, "beforematch", useCallback(() => {
|
|
17
17
|
raf.current = requestAnimationFrame(() => {
|
|
18
18
|
if (ref.current) ref.current.setAttribute("hidden", "until-found");
|
|
19
19
|
});
|
|
@@ -22,7 +22,7 @@ function $5e910fae8e128ead$export$6e3e27031a30522f(props, state, ref) {
|
|
|
22
22
|
});
|
|
23
23
|
}, [ref, state]));
|
|
24
24
|
let isExpandedRef = useRef(null);
|
|
25
|
-
$
|
|
25
|
+
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
26
26
|
if (raf.current) cancelAnimationFrame(raf.current);
|
|
27
27
|
if (ref.current && !isSSR) {
|
|
28
28
|
let panel = ref.current;
|
|
@@ -87,9 +87,9 @@ function $5e910fae8e128ead$export$6e3e27031a30522f(props, state, ref) {
|
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
//#endregion
|
|
90
|
-
//#region node_modules
|
|
91
|
-
function $
|
|
92
|
-
let [isExpanded, setExpanded] = $
|
|
90
|
+
//#region node_modules/react-stately/dist/private/disclosure/useDisclosureState.mjs
|
|
91
|
+
function $086b1fd51041276f$export$3fcbf6e4407997e0(props) {
|
|
92
|
+
let [isExpanded, setExpanded] = $3e6197669829fe11$export$40bfa8c7b0832715(props.isExpanded, props.defaultExpanded || false, props.onExpandedChange);
|
|
93
93
|
return {
|
|
94
94
|
isExpanded,
|
|
95
95
|
setExpanded,
|
|
@@ -105,36 +105,35 @@ function $bf996d45f4a36925$export$3fcbf6e4407997e0(props) {
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
//#endregion
|
|
108
|
-
//#region node_modules/react-aria-components/dist/Disclosure.mjs
|
|
109
|
-
var $
|
|
110
|
-
var $
|
|
111
|
-
var $
|
|
112
|
-
var $
|
|
113
|
-
var $
|
|
114
|
-
[props, ref] = $
|
|
115
|
-
let groupState = useContext($
|
|
108
|
+
//#region node_modules/react-aria-components/dist/private/Disclosure.mjs
|
|
109
|
+
var $a3e16eab0ea4036c$export$1d40e3e0cc4d5de = createContext(null);
|
|
110
|
+
var $a3e16eab0ea4036c$export$d665dd135a51b28a = createContext(null);
|
|
111
|
+
var $a3e16eab0ea4036c$export$dab3ea4a6ef094da = createContext(null);
|
|
112
|
+
var $a3e16eab0ea4036c$var$InternalDisclosureContext = createContext(null);
|
|
113
|
+
var $a3e16eab0ea4036c$export$74a362b31437ec83 = forwardRef(function Disclosure(props, ref) {
|
|
114
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $a3e16eab0ea4036c$export$d665dd135a51b28a);
|
|
115
|
+
let groupState = useContext($a3e16eab0ea4036c$export$1d40e3e0cc4d5de);
|
|
116
116
|
let { id, ...otherProps } = props;
|
|
117
|
-
let defaultId = $
|
|
118
|
-
id
|
|
117
|
+
let defaultId = $390e54f620492c70$export$f680877a34711e37();
|
|
118
|
+
id ||= defaultId;
|
|
119
119
|
let isExpanded = groupState ? groupState.expandedKeys.has(id) : props.isExpanded;
|
|
120
|
-
let state = $
|
|
120
|
+
let state = $086b1fd51041276f$export$3fcbf6e4407997e0({
|
|
121
121
|
...props,
|
|
122
122
|
isExpanded,
|
|
123
123
|
onExpandedChange(isExpanded) {
|
|
124
|
-
var _props_onExpandedChange;
|
|
125
124
|
if (groupState) groupState.toggleKey(id);
|
|
126
|
-
|
|
125
|
+
props.onExpandedChange?.(isExpanded);
|
|
127
126
|
}
|
|
128
127
|
});
|
|
129
128
|
let panelRef = React.useRef(null);
|
|
130
|
-
let isDisabled = props.isDisabled ||
|
|
131
|
-
let { buttonProps, panelProps } = $
|
|
129
|
+
let isDisabled = props.isDisabled || groupState?.isDisabled || false;
|
|
130
|
+
let { buttonProps, panelProps } = $89a3495b7d82e671$export$6e3e27031a30522f({
|
|
132
131
|
...props,
|
|
133
132
|
isExpanded,
|
|
134
133
|
isDisabled
|
|
135
134
|
}, state, panelRef);
|
|
136
|
-
let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = $
|
|
137
|
-
let renderProps = $
|
|
135
|
+
let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = $0c4a58759813079a$export$4e328f61c538687f({ within: true });
|
|
136
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
138
137
|
...props,
|
|
139
138
|
id: void 0,
|
|
140
139
|
defaultClassName: "react-aria-Disclosure",
|
|
@@ -145,44 +144,44 @@ var $28f4fd908f0de97f$export$74a362b31437ec83 = forwardRef(function Disclosure(p
|
|
|
145
144
|
state
|
|
146
145
|
}
|
|
147
146
|
});
|
|
148
|
-
let domProps = $
|
|
149
|
-
return React.createElement($
|
|
150
|
-
[$
|
|
151
|
-
[$
|
|
147
|
+
let domProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(otherProps, { global: true });
|
|
148
|
+
return React.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
149
|
+
[$7705c033048f6da7$export$24d547caef80ccd1, { slots: {
|
|
150
|
+
[$7230ffa83bc0c2cf$export$c62b8e45d58ddad9]: {},
|
|
152
151
|
trigger: buttonProps
|
|
153
152
|
} }],
|
|
154
|
-
[$
|
|
153
|
+
[$a3e16eab0ea4036c$var$InternalDisclosureContext, {
|
|
155
154
|
panelProps,
|
|
156
155
|
panelRef
|
|
157
156
|
}],
|
|
158
|
-
[$
|
|
159
|
-
] }, React.createElement($
|
|
160
|
-
...$
|
|
157
|
+
[$a3e16eab0ea4036c$export$dab3ea4a6ef094da, state]
|
|
158
|
+
] }, React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
159
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(domProps, renderProps, focusWithinProps),
|
|
161
160
|
ref,
|
|
162
161
|
"data-expanded": state.isExpanded || void 0,
|
|
163
162
|
"data-disabled": isDisabled || void 0,
|
|
164
163
|
"data-focus-visible-within": isFocusVisibleWithin || void 0
|
|
165
164
|
}, renderProps.children));
|
|
166
165
|
});
|
|
167
|
-
var $
|
|
166
|
+
var $a3e16eab0ea4036c$export$feabaa331e1d464c = forwardRef(function DisclosurePanel(props, ref) {
|
|
168
167
|
let { role = "group" } = props;
|
|
169
|
-
let { panelProps, panelRef } = useContext($
|
|
170
|
-
let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = $
|
|
171
|
-
let renderProps = $
|
|
168
|
+
let { panelProps, panelRef } = useContext($a3e16eab0ea4036c$var$InternalDisclosureContext);
|
|
169
|
+
let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = $0c4a58759813079a$export$4e328f61c538687f({ within: true });
|
|
170
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
172
171
|
...props,
|
|
173
172
|
defaultClassName: "react-aria-DisclosurePanel",
|
|
174
173
|
values: { isFocusVisibleWithin }
|
|
175
174
|
});
|
|
176
|
-
let DOMProps = $
|
|
175
|
+
let DOMProps = $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, {
|
|
177
176
|
global: true,
|
|
178
177
|
labelable: true
|
|
179
178
|
});
|
|
180
|
-
return React.createElement($
|
|
181
|
-
...$
|
|
182
|
-
ref: $
|
|
179
|
+
return React.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
180
|
+
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(DOMProps, renderProps, panelProps, focusWithinProps),
|
|
181
|
+
ref: $4064df0d6f9620e1$export$c9058316764c140e(ref, panelRef),
|
|
183
182
|
role,
|
|
184
183
|
"data-focus-visible-within": isFocusVisibleWithin || void 0
|
|
185
|
-
}, React.createElement($
|
|
184
|
+
}, React.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [[$7705c033048f6da7$export$24d547caef80ccd1, null]] }, props.children));
|
|
186
185
|
});
|
|
187
186
|
//#endregion
|
|
188
|
-
export { $
|
|
187
|
+
export { $a3e16eab0ea4036c$export$feabaa331e1d464c as n, $a3e16eab0ea4036c$export$74a362b31437ec83 as t };
|