@eightshift/ui-components 8.1.0 → 8.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-BUU44AuW.js → Autocomplete-Dqkum3dO.js} +29 -25
- package/dist/{Button-_E2Z5G2l.js → Button-DHgs_rCq.js} +15 -9
- package/dist/{Dialog-3XLIaepk.js → Dialog-CldDJ_4u.js} +390 -189
- package/dist/{Disclosure-Dh0z_DEQ.js → Disclosure-BHNgL5Is.js} +33 -29
- package/dist/{FocusScope-BKGWN6UK.js → FocusScope-CUuL5wjz.js} +13 -8
- package/dist/{Heading-BWTs9ckA.js → Heading-BQje2nS2.js} +1 -1
- package/dist/{I18nProvider-BskRMK8G.js → I18nProvider-R_4IDnf9.js} +1 -1
- package/dist/{Label-UpU4cKPh.js → Label-C4bJkVti.js} +1 -1
- package/dist/{ListBox-DepY-52g.js → ListBox-CZXso3mJ.js} +14 -38
- package/dist/{NumberFormatter-WKBRKiEA.js → NumberFormatter-Bwdv413k.js} +4 -2
- package/dist/{RadioGroup-Br9Mn9QJ.js → RadioGroup-BTByPMrl.js} +35 -35
- package/dist/{SearchField-q2Fj0L9K.js → SearchField-DkX1vqMN.js} +29 -26
- package/dist/{Slider-B8icnyOo.js → Slider-Dw-JjfLx.js} +55 -44
- package/dist/{Text-D4y19vs8.js → Text-CA2_mHEB.js} +4 -3
- package/dist/{VisuallyHidden-B_LZ_kn7.js → VisuallyHidden-ZZwHZDro.js} +2 -2
- package/dist/{animation-DpSgtWyu.js → animation-COc9P6ap.js} +2 -4
- package/dist/assets/{image-analysis-worker-BuHru-CI.js → image-analysis-worker-CBOB71mx.js} +1 -1
- 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/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/{build-module-DG6ZK7Ty.js → build-module-BISCoQjQ.js} +4 -4
- package/dist/{button-XSk_8UW7.js → button-ldR_tlvk.js} +64 -13
- package/dist/{checkbox-BYaS9tQ5.js → checkbox-DDyLJRY8.js} +8 -8
- package/dist/{color-swatch-6ZEIXej3.js → color-swatch-DmhdOhe4.js} +15 -16
- package/dist/components/animated-visibility/animated-visibility.js +5 -3
- package/dist/components/base-control/base-control.d.ts +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/base-control/container.d.ts +4 -30
- package/dist/components/base-control/container.js +5 -32
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.d.ts +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 +8 -8
- 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.d.ts +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +11 -11
- package/dist/components/contextual-help/contextual-help.js +3 -3
- package/dist/components/draggable/draggable.d.ts +3 -3
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list.d.ts +3 -3
- package/dist/components/draggable-list/draggable-list.js +9 -9
- package/dist/components/expandable/expandable.js +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +18 -17
- package/dist/components/input-field/input-field.d.ts +1 -1
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.d.ts +3 -28
- package/dist/components/item-collection/item-collection.js +7 -7
- package/dist/components/link-input/link-input.d.ts +0 -2
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -4
- package/dist/components/menu/menu.d.ts +8 -29
- package/dist/components/menu/menu.js +11 -8
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notice/notice.js +8 -8
- package/dist/components/number-picker/number-picker.d.ts +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.d.ts +1 -1
- package/dist/components/option-select/option-select.js +22 -16
- package/dist/components/options-panel/options-panel.js +4 -4
- package/dist/components/placeholders/file-picker-shell.js +4 -3
- package/dist/components/placeholders/file-placeholder.js +3 -2
- package/dist/components/popover/popover.js +5 -5
- package/dist/components/portal-provider/portal-provider.js +2 -1
- package/dist/components/prompt-popover/prompt-popover.d.ts +56 -0
- package/dist/components/prompt-popover/prompt-popover.js +81 -0
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/repeater/repeater-context.d.ts +0 -1
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.d.ts +5 -38
- package/dist/components/repeater/repeater.js +8 -11
- package/dist/components/responsive/mini-responsive.d.ts +0 -1
- package/dist/components/responsive/mini-responsive.js +31 -31
- package/dist/components/responsive/responsive-legacy.d.ts +0 -1
- package/dist/components/responsive/responsive-legacy.js +13 -11
- package/dist/components/responsive/responsive.d.ts +0 -1
- package/dist/components/responsive/responsive.js +29 -29
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- package/dist/components/rich-label/rich-label.d.ts +1 -1
- package/dist/components/rich-label/rich-label.js +2 -2
- package/dist/components/select/async-multi-select.d.ts +12 -13
- package/dist/components/select/async-multi-select.js +40 -21
- package/dist/components/select/async-select.d.ts +12 -13
- package/dist/components/select/async-select.js +39 -21
- package/dist/components/select/multi-select.d.ts +2 -8
- package/dist/components/select/multi-select.js +20 -20
- package/dist/components/select/shared.d.ts +7 -11
- package/dist/components/select/shared.js +2 -2
- package/dist/components/select/single-select.d.ts +2 -8
- package/dist/components/select/single-select.js +17 -17
- package/dist/components/select/styles.d.ts +2 -2
- package/dist/components/slider/column-config-slider.js +8 -6
- package/dist/components/slider/slider.js +16 -12
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.d.ts +1 -2
- package/dist/components/smart-image/smart-image.js +53 -51
- package/dist/components/tabs/tabs.d.ts +16 -64
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.d.ts +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +2 -2
- package/dist/components/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-9MfdTVWP.js → draggable-oS68xcYX.js} +130 -125
- package/dist/{es-dash-DunirOmV.js → es-dash-DPtJSRjw.js} +23 -52
- package/dist/{gradient-editor-yqSw0uPA.js → gradient-editor-DP8ioFX1.js} +39 -30
- package/dist/icons/block-icon.js +1 -1
- package/dist/icons/icon.d.ts +3 -3
- package/dist/icons/icon.js +21 -9
- package/dist/icons/icons.d.ts +210 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.d.ts +5 -4
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +18 -17
- package/dist/{input-field-nN6BO0oz.js → input-field-C-XvZeCZ.js} +8 -8
- package/dist/{jsx-svg-BjGQUBLh.js → jsx-svg-DRwJdRpA.js} +171 -129
- package/dist/{keyboard-g5Amam-c.js → keyboard-Cdqi5ZQQ.js} +1 -1
- package/dist/{link-input-BhlPElU8.js → link-input-DdwuqoMg.js} +147 -89
- package/dist/{modal-B5axB0Fc.js → modal-DZco5MDu.js} +15 -14
- package/dist/{number-picker-nnOf0XnN.js → number-picker-XqKW0BNi.js} +9 -9
- package/dist/{react-y40Dt3ab.js → react-O71mlJXS.js} +250 -266
- package/dist/{shared-Ba_bt4s9.js → shared-YXMIX2ka.js} +60 -44
- package/dist/{solid-color-picker-CsosgTVa.js → solid-color-picker-D5LEdmDM.js} +78 -58
- package/dist/{switch-BJ4_OyUm.js → switch-Bo6nmed_.js} +8 -8
- package/dist/{tabs-wAe0AAyu.js → tabs-DE-qb7Kt.js} +35 -30
- package/dist/{text-helpers-2j9DuxP1.js → text-helpers-QrwKKaOh.js} +3 -2
- package/dist/{textSelection-B_Nv6Jz3.js → textSelection-C17LWYmO.js} +3 -3
- package/dist/{toggle-button-BLJdEp8V.js → toggle-button-Cb4yCEua.js} +39 -8
- package/dist/{tooltip-BW9nj5-V.js → tooltip-CT-vzIdz.js} +68 -62
- package/dist/{useAsyncList-B3-uyJgA.js → useAsyncList-CjKVLGN0.js} +8 -4
- package/dist/{useButton-CPMVLXoX.js → useButton-V65TBDGM.js} +3 -3
- package/dist/{useCollection-PzY6FI39.js → useCollection-DqUS7tjk.js} +281 -184
- package/dist/useEvent-C9zwSNzZ.js +18 -0
- package/dist/{useField-DrfR8j9h.js → useField-B_ibsWst.js} +2 -2
- package/dist/{useFilter-CiCjo6Na.js → useFilter-C75IzdIZ.js} +1 -1
- package/dist/{useFocusRing-CrYHpV7C.js → useFocusRing-JidySWlU.js} +1 -1
- package/dist/{useFormReset-U6c35PHq.js → useFormReset-Sp8-miDa.js} +1 -1
- package/dist/{useFormValidation-B2q2MGWN.js → useFormValidation-CpmQEh8J.js} +2 -2
- package/dist/{useHover-CNsbAR0V.js → useHover-CaY3sRjL.js} +250 -46
- package/dist/{useLabel-DuxAjaic.js → useLabel-gfFDE4bn.js} +2 -2
- package/dist/{useLabels-NUsp5IW3.js → useLabels-Dcg-cEyM.js} +1 -1
- package/dist/{useListState-FLxa7R_U.js → useListState-CzB3v6M9.js} +6 -11
- package/dist/{useLocalizedStringFormatter-Ccm8EL_u.js → useLocalizedStringFormatter-CTCqjYu4.js} +6 -1
- package/dist/{useNumberFieldState-DWvm7CXu.js → useNumberFieldState-DC3XY3DQ.js} +79 -62
- package/dist/{useNumberFormatter-B0_D7a_o.js → useNumberFormatter-DbAt_fC_.js} +2 -2
- package/dist/{useOverlayTriggerState-zZ7homyI.js → useOverlayTriggerState-BKmSTK_5.js} +16 -11
- package/dist/{usePress-DRoujMNm.js → usePress-CUCWcP-m.js} +50 -28
- package/dist/{useSlot-pRz-v9kC.js → useSlot-CnQHcvd4.js} +1 -1
- package/dist/{useTextField-e8jIFT3s.js → useTextField-C3QIkMON.js} +6 -6
- package/dist/{useToggle-CR_ZKvr_.js → useToggle-bbGRUbo4.js} +6 -6
- package/dist/{useToggleState-ButQxGrJ.js → useToggleState-D_rLMrVW.js} +1 -1
- package/dist/utilities/array-helpers.d.ts +2 -2
- package/dist/utilities/array-helpers.js +4 -3
- package/dist/utilities/debounce-throttle.d.ts +9 -2
- package/dist/utilities/es-dash.d.ts +11 -8
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +2 -2
- package/dist/utilities/text-helpers.js +1 -1
- package/dist/utilities/web-workers.d.ts +7 -7
- package/dist/utilities/web-workers.js +5 -5
- package/dist/{utils-Czi6q2Ub.js → utils-ClM91CuL.js} +30 -19
- package/package.json +23 -27
- package/dist/useEvent-CzuFZ2HT.js +0 -22
package/dist/utilities/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx$1 } from "../clsx-DQoRUQAf.js";
|
|
2
2
|
import { arrayMoveMultiple, fixIds } from "./array-helpers.js";
|
|
3
|
-
import { a as isObject, c as kebabCase, d as snakeCase, f as upperFirst, i as isEqual, l as lowerFirst, n as has, o as isPlainObject, r as isEmpty, s as isString, t as camelCase, u as pascalCase } from "../es-dash-
|
|
4
|
-
import { i as unescapeHTML, n as truncateEnd, r as truncateMiddle, t as truncate } from "../text-helpers-
|
|
3
|
+
import { a as isObject, c as kebabCase, d as snakeCase, f as upperFirst, i as isEqual, l as lowerFirst, n as has, o as isPlainObject, r as isEmpty, s as isString, t as camelCase, u as pascalCase } from "../es-dash-DPtJSRjw.js";
|
|
4
|
+
import { i as unescapeHTML, n as truncateEnd, r as truncateMiddle, t as truncate } from "../text-helpers-QrwKKaOh.js";
|
|
5
5
|
import { n as throttle, t as debounce } from "../debounce-throttle-DklGQQrz.js";
|
|
6
6
|
import { getFileExtension, isColorDark } from "./general.js";
|
|
7
7
|
import { t as clsx } from "../utilities-COki58KB.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as unescapeHTML, n as truncateEnd, r as truncateMiddle, t as truncate } from "../text-helpers-
|
|
1
|
+
import { i as unescapeHTML, n as truncateEnd, r as truncateMiddle, t as truncate } from "../text-helpers-QrwKKaOh.js";
|
|
2
2
|
export { truncate, truncateEnd, truncateMiddle, unescapeHTML };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { MutableRefObject } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type AnalysisSettingValue = string | number | boolean | null | undefined;
|
|
3
|
+
type AnalysisSettings = Readonly<Record<string, AnalysisSettingValue>>;
|
|
4
|
+
interface ImageAnalysisWorkerHelpers<TResult extends object> {
|
|
5
|
+
getOrCreateWorker: () => Worker | null;
|
|
6
|
+
analyzeWithWorkerCb: (imageBitmap: ImageBitmap, settings: AnalysisSettings) => Promise<TResult>;
|
|
4
7
|
}
|
|
5
8
|
export declare const isImageAnalysisWorkerSupported: () => boolean;
|
|
6
9
|
/**
|
|
@@ -11,10 +14,7 @@ export declare const isImageAnalysisWorkerSupported: () => boolean;
|
|
|
11
14
|
* @param {string} workerInline - Inlined worker code string.
|
|
12
15
|
* @returns {object} Worker helpers for creating and analyzing with the image analysis worker.
|
|
13
16
|
*/
|
|
14
|
-
export declare function useImageAnalysisWorker(workerRef: MutableRefObject<Worker | null>, workerInline: string):
|
|
15
|
-
getOrCreateWorker: () => Worker | null;
|
|
16
|
-
analyzeWithWorkerCb: (imageBitmap: ImageBitmap, settings: AnalysisSettings) => Promise<unknown>;
|
|
17
|
-
};
|
|
17
|
+
export declare function useImageAnalysisWorker<TResult extends object>(workerRef: MutableRefObject<Worker | null>, workerInline: string): ImageAnalysisWorkerHelpers<TResult>;
|
|
18
18
|
/**
|
|
19
19
|
* Create a new image analysis worker using the inlined worker code.
|
|
20
20
|
*
|
|
@@ -30,5 +30,5 @@ export declare function createImageAnalysisWorker(workerInline: string): Worker
|
|
|
30
30
|
* @param {AnalysisSettings} settings - Analysis settings.
|
|
31
31
|
* @returns {Promise<unknown>} Resolves with the analysis result.
|
|
32
32
|
*/
|
|
33
|
-
export declare function analyzeWithWorker(worker: Worker, imageBitmap: ImageBitmap, settings: AnalysisSettings): Promise<
|
|
33
|
+
export declare function analyzeWithWorker<TResult extends object>(worker: Worker, imageBitmap: ImageBitmap, settings: AnalysisSettings): Promise<TResult>;
|
|
34
34
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region lib/utilities/web-workers.ts
|
|
2
2
|
var workerUnavailableError = "Image analysis workers are only available in a browser environment.";
|
|
3
|
-
var isImageAnalysisWorkerSupported = () =>
|
|
3
|
+
var isImageAnalysisWorkerSupported = () => "window" in globalThis && "document" in globalThis && "Worker" in globalThis && "Blob" in globalThis && "URL" in globalThis && globalThis.URL.createObjectURL instanceof Function;
|
|
4
4
|
/**
|
|
5
5
|
* Returns a memoized function that gets or creates a singleton image analysis worker (with inline fallback).
|
|
6
6
|
* Also returns a callback for analyzing with the worker.
|
|
@@ -39,7 +39,7 @@ function useImageAnalysisWorker(workerRef, workerInline) {
|
|
|
39
39
|
* @returns {Worker} The created worker instance.
|
|
40
40
|
*/
|
|
41
41
|
function createImageAnalysisWorker(workerInline) {
|
|
42
|
-
if (!workerInline ||
|
|
42
|
+
if (!workerInline || workerInline.length < 100) throw new Error("Worker could not be created: inline worker code not available. Make sure the worker is properly bundled.");
|
|
43
43
|
if (!isImageAnalysisWorkerSupported()) return null;
|
|
44
44
|
const blob = new Blob([workerInline], { type: "application/javascript" });
|
|
45
45
|
return new Worker(URL.createObjectURL(blob), { type: "module" });
|
|
@@ -55,9 +55,9 @@ function createImageAnalysisWorker(workerInline) {
|
|
|
55
55
|
function analyzeWithWorker(worker, imageBitmap, settings) {
|
|
56
56
|
return new Promise((resolve, reject) => {
|
|
57
57
|
const handleMessage = (event) => {
|
|
58
|
-
const
|
|
59
|
-
if (success) resolve(data);
|
|
60
|
-
else reject(new Error(error));
|
|
58
|
+
const message = event.data;
|
|
59
|
+
if (message.success) resolve(message.data);
|
|
60
|
+
else reject(new Error(message.error));
|
|
61
61
|
worker.removeEventListener("message", handleMessage);
|
|
62
62
|
worker.removeEventListener("error", handleError);
|
|
63
63
|
};
|
|
@@ -101,12 +101,18 @@ var $390e54f620492c70$var$registry;
|
|
|
101
101
|
if (typeof FinalizationRegistry !== "undefined") $390e54f620492c70$var$registry = new FinalizationRegistry((heldValue) => {
|
|
102
102
|
$390e54f620492c70$export$d41a04c74483c6ef.delete(heldValue);
|
|
103
103
|
});
|
|
104
|
+
var $390e54f620492c70$var$registeredIds = new WeakMap();
|
|
104
105
|
function $390e54f620492c70$export$f680877a34711e37(defaultId) {
|
|
105
106
|
let [value, setValue] = useState(defaultId);
|
|
106
107
|
let nextId = useRef(null);
|
|
107
108
|
let res = $c7eafbbe1ea5834e$export$619500959fc48b26(value);
|
|
108
109
|
let cleanupRef = useRef(null);
|
|
109
|
-
|
|
110
|
+
let registeredId = $390e54f620492c70$var$registeredIds.get(cleanupRef);
|
|
111
|
+
if ($390e54f620492c70$var$registry && registeredId !== res) {
|
|
112
|
+
if (registeredId != null) $390e54f620492c70$var$registry.unregister(cleanupRef);
|
|
113
|
+
$390e54f620492c70$var$registry.register(cleanupRef, res, cleanupRef);
|
|
114
|
+
$390e54f620492c70$var$registeredIds.set(cleanupRef, res);
|
|
115
|
+
}
|
|
110
116
|
if ($390e54f620492c70$var$canUseDOM) {
|
|
111
117
|
const cacheIdRef = $390e54f620492c70$export$d41a04c74483c6ef.get(res);
|
|
112
118
|
if (cacheIdRef && !cacheIdRef.includes(nextId)) cacheIdRef.push(nextId);
|
|
@@ -115,7 +121,10 @@ function $390e54f620492c70$export$f680877a34711e37(defaultId) {
|
|
|
115
121
|
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
116
122
|
let r = res;
|
|
117
123
|
return () => {
|
|
118
|
-
if ($390e54f620492c70$var$registry)
|
|
124
|
+
if ($390e54f620492c70$var$registry) {
|
|
125
|
+
$390e54f620492c70$var$registry.unregister(cleanupRef);
|
|
126
|
+
$390e54f620492c70$var$registeredIds.delete(cleanupRef);
|
|
127
|
+
}
|
|
119
128
|
$390e54f620492c70$export$d41a04c74483c6ef.delete(r);
|
|
120
129
|
};
|
|
121
130
|
}, [res]);
|
|
@@ -301,25 +310,27 @@ function $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, context) {
|
|
|
301
310
|
let { ref: contextRef, ...contextProps } = $7230ffa83bc0c2cf$export$fabf2dc03a41866e(context, props.slot) || {};
|
|
302
311
|
let mergedRef = $03e8ab2d84d7657a$export$4338b53315abf666(useMemo(() => $4064df0d6f9620e1$export$c9058316764c140e(ref, contextRef), [ref, contextRef]));
|
|
303
312
|
let mergedProps = $bbaa08b3cd72f041$export$9d1611c77c2fe928(contextProps, props);
|
|
304
|
-
if ("style" in contextProps && contextProps.style && "style" in props && props.style)
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
313
|
+
if ("style" in contextProps && contextProps.style && "style" in props && props.style) {
|
|
314
|
+
if (typeof contextProps.style === "function" || typeof props.style === "function") mergedProps.style = (renderProps) => {
|
|
315
|
+
let contextStyle = typeof contextProps.style === "function" ? contextProps.style(renderProps) : contextProps.style;
|
|
316
|
+
let defaultStyle = {
|
|
317
|
+
...renderProps.defaultStyle,
|
|
318
|
+
...contextStyle
|
|
319
|
+
};
|
|
320
|
+
let style = typeof props.style === "function" ? props.style({
|
|
321
|
+
...renderProps,
|
|
322
|
+
defaultStyle
|
|
323
|
+
}) : props.style;
|
|
324
|
+
return {
|
|
325
|
+
...defaultStyle,
|
|
326
|
+
...style
|
|
327
|
+
};
|
|
309
328
|
};
|
|
310
|
-
|
|
311
|
-
...
|
|
312
|
-
|
|
313
|
-
}) : props.style;
|
|
314
|
-
return {
|
|
315
|
-
...defaultStyle,
|
|
316
|
-
...style
|
|
329
|
+
else mergedProps.style = {
|
|
330
|
+
...contextProps.style,
|
|
331
|
+
...props.style
|
|
317
332
|
};
|
|
318
|
-
}
|
|
319
|
-
else mergedProps.style = {
|
|
320
|
-
...contextProps.style,
|
|
321
|
-
...props.style
|
|
322
|
-
};
|
|
333
|
+
}
|
|
323
334
|
return [mergedProps, mergedRef];
|
|
324
335
|
}
|
|
325
336
|
function $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8(initialState = true) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -62,7 +62,10 @@
|
|
|
62
62
|
"start": "node ./scripts/generate-icon-loaders.mjs && vite",
|
|
63
63
|
"build": "node ./scripts/generate-icon-loaders.mjs && vite build && tsc -p tsconfig.build.json",
|
|
64
64
|
"typecheck": "tsc --noEmit",
|
|
65
|
-
"lint": "
|
|
65
|
+
"lint": "oxlint",
|
|
66
|
+
"lint:fix": "oxlint --fix",
|
|
67
|
+
"fmt": "oxfmt 'lib/**/*.{ts,tsx}' 'src/**/*.{ts,tsx}' '*.ts' 'scripts/**/*.mjs' package.json",
|
|
68
|
+
"fmt:check": "oxfmt --check 'lib/**/*.{ts,tsx}' 'src/**/*.{ts,tsx}' '*.ts' 'scripts/**/*.mjs' package.json",
|
|
66
69
|
"preview": "vite preview"
|
|
67
70
|
},
|
|
68
71
|
"peerDependencies": {
|
|
@@ -71,63 +74,56 @@
|
|
|
71
74
|
"use-sync-external-store": "^1.6.0"
|
|
72
75
|
},
|
|
73
76
|
"devDependencies": {
|
|
74
|
-
"@adobe/react-spectrum": "^3.47.
|
|
77
|
+
"@adobe/react-spectrum": "^3.47.5",
|
|
75
78
|
"@atom-universe/use-web-worker": "^2.2.1",
|
|
76
79
|
"@dnd-kit/abstract": "^0.5.0",
|
|
77
80
|
"@dnd-kit/dom": "^0.5.0",
|
|
78
81
|
"@dnd-kit/helpers": "^0.5.0",
|
|
79
82
|
"@dnd-kit/react": "^0.5.0",
|
|
80
|
-
"@
|
|
83
|
+
"@oxlint/plugins": "1.82.0",
|
|
81
84
|
"@react-stately/collections": "^3.13.1",
|
|
82
|
-
"@stylistic/eslint-plugin": "^5.10.0",
|
|
83
85
|
"@tailwindcss/vite": "^4.3.3",
|
|
84
|
-
"@thi.ng/color": "^5.8.
|
|
86
|
+
"@thi.ng/color": "^5.8.33",
|
|
85
87
|
"@types/react": "^18.3.31",
|
|
86
88
|
"@types/react-dom": "^18.3.7",
|
|
87
|
-
"@vitejs/plugin-react": "^6.
|
|
88
|
-
"@wordpress/i18n": "^6.
|
|
89
|
-
"autoprefixer": "^10.5.
|
|
89
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
90
|
+
"@wordpress/i18n": "^6.27.0",
|
|
91
|
+
"autoprefixer": "^10.5.5",
|
|
90
92
|
"class-variance-authority": "^0.7.1",
|
|
91
93
|
"clsx": "^2.1.1",
|
|
92
94
|
"css-gradient-parser": "^0.0.18",
|
|
93
|
-
"eslint": "^10.7.0",
|
|
94
|
-
"eslint-config-prettier": "^10.1.8",
|
|
95
|
-
"eslint-plugin-prettier": "^5.5.6",
|
|
96
95
|
"glob": "^13.0.6",
|
|
97
|
-
"globals": "^17.7.0",
|
|
98
96
|
"just-camel-case": "^6.2.0",
|
|
99
97
|
"just-debounce-it": "^3.2.0",
|
|
100
98
|
"just-has": "^2.3.0",
|
|
101
99
|
"just-is-empty": "^3.4.1",
|
|
102
100
|
"just-kebab-case": "^4.2.0",
|
|
103
101
|
"just-throttle": "^4.2.0",
|
|
104
|
-
"lightningcss": "^1.
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
102
|
+
"lightningcss": "^1.33.0",
|
|
103
|
+
"oxfmt": "0.67.0",
|
|
104
|
+
"oxlint": "1.82.0",
|
|
105
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
106
|
+
"postcss": "^8.5.28",
|
|
108
107
|
"react": "^18.3.1",
|
|
109
|
-
"react-aria": "^3.
|
|
110
|
-
"react-aria-components": "^1.
|
|
108
|
+
"react-aria": "^3.52.1",
|
|
109
|
+
"react-aria-components": "^1.21.1",
|
|
111
110
|
"react-dom": "^18.3.1",
|
|
112
111
|
"react-jsx-parser": "^2.4.1",
|
|
113
112
|
"react-movable": "^3.4.1",
|
|
114
|
-
"react-stately": "^3.
|
|
113
|
+
"react-stately": "^3.50.0",
|
|
115
114
|
"svg-to-jsx-string": "^0.1.1",
|
|
116
115
|
"tailwindcss": "^4.3.3",
|
|
117
116
|
"tailwindcss-motion": "^1.1.1",
|
|
118
117
|
"tailwindcss-react-aria-components": "^2.2.0",
|
|
119
|
-
"typescript": "^
|
|
120
|
-
"
|
|
121
|
-
"vite": "^8.1.5",
|
|
118
|
+
"typescript": "^7.0.2",
|
|
119
|
+
"vite": "^8.2.2",
|
|
122
120
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
123
121
|
},
|
|
124
122
|
"dependencies": {
|
|
125
|
-
"@fontsource-variable/google-sans-flex": "^5.3.
|
|
123
|
+
"@fontsource-variable/google-sans-flex": "^5.3.1",
|
|
126
124
|
"@fontsource/geist": "^5.3.0",
|
|
127
125
|
"@fontsource/geist-mono": "^5.3.0",
|
|
128
|
-
"eslint-plugin-react": "^7.37.5",
|
|
129
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
130
126
|
"html-entities": "^2.6.0",
|
|
131
|
-
"motion": "^
|
|
127
|
+
"motion": "^13.2.0"
|
|
132
128
|
}
|
|
133
129
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { f as $fe16bffc7a557bf0$export$7f54fc3180508a52 } from "./useHover-CNsbAR0V.js";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
|
|
4
|
-
function $600b3cf69ae46262$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
5
|
-
let handleEvent = $fe16bffc7a557bf0$export$7f54fc3180508a52(handler);
|
|
6
|
-
let isDisabled = handler == null;
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
if (isDisabled || !ref.current) return;
|
|
9
|
-
let element = ref.current;
|
|
10
|
-
element.addEventListener(event, handleEvent, options);
|
|
11
|
-
return () => {
|
|
12
|
-
element.removeEventListener(event, handleEvent, options);
|
|
13
|
-
};
|
|
14
|
-
}, [
|
|
15
|
-
ref,
|
|
16
|
-
event,
|
|
17
|
-
options,
|
|
18
|
-
isDisabled
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { $600b3cf69ae46262$export$90fc3a17d93f704c as t };
|