@eightshift/ui-components 1.6.1 → 1.7.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-VbCAu4hd.js +185 -0
- package/dist/{intlStrings-BxJIrC6b.js → Color-BpLubxWI.js} +2394 -2394
- package/dist/{ColorSwatch-BNX2quma.js → ColorSwatch-CinC14s3.js} +4 -4
- package/dist/{Dialog-BdtBguys.js → Dialog-BN5EE7UH.js} +9 -9
- package/dist/{FieldError-ClB3-XvF.js → FieldError-BttM1Nxd.js} +2 -2
- package/dist/{FocusScope-B5L3qI3N.js → FocusScope-CtCX0OGo.js} +2 -2
- package/dist/{Group-ubPTwji_.js → Group-XzWUooix.js} +3 -3
- package/dist/{Heading-DGnF6JDc.js → Heading-DZelepHV.js} +1 -1
- package/dist/{Hidden-CupIZhlF.js → Hidden-CcFqOzrp.js} +1 -1
- package/dist/{Input-BoNEjaXM.js → Input-CV1qVS6t.js} +8 -8
- package/dist/{Label-BqW0M3HN.js → Label-BwqMVkuV.js} +2 -2
- package/dist/{ListBox-civ86c_v.js → ListBox-DuZPdnkk.js} +16 -12
- package/dist/{SelectionManager-Ctbzoj1E.js → SelectionManager-x27KqnAT.js} +67 -34
- package/dist/{Separator-CDhAddZc.js → Separator-BM58t3PP.js} +24 -26
- package/dist/{Slider-Dkj8Slw3.js → Slider-D9Cs6yKr.js} +162 -162
- package/dist/{Text-CdwRBXol.js → Text-BVIXT8qq.js} +1 -1
- package/dist/{VisuallyHidden-DsMLX-RC.js → VisuallyHidden-WhC7vZaL.js} +2 -2
- package/dist/assets/style.css +1 -1
- package/dist/components/animated-visibility/animated-visibility.js +92 -129
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +64 -64
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/draggable/draggable-handle.js +2 -2
- package/dist/components/draggable/draggable.js +7 -4
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +6 -3
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/index.js +3 -1
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/item-collection/item-collection.js +6 -1
- package/dist/components/link-input/link-input.js +40 -36
- package/dist/components/list-box/list-box.js +2 -2
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.js +15 -15
- package/dist/components/modal/modal.js +6 -6
- package/dist/components/number-picker/number-picker.js +10 -10
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/placeholders/media-placeholder.js +6 -5
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +6 -3
- package/dist/components/responsive/mini-responsive.js +495 -0
- package/dist/components/responsive/responsive-legacy.js +2 -2
- package/dist/components/responsive/responsive.js +7 -3
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/select/async-multi-select.js +1 -0
- package/dist/components/select/async-single-select.js +1 -0
- package/dist/components/select/multi-select.js +1 -0
- package/dist/components/select/single-select.js +1 -0
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/spacer/spacer.js +3 -4
- package/dist/components/tabs/tabs.js +22 -17
- package/dist/components/toggle/switch.js +6 -6
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/{context-kCEA3M_y.js → context-Cs-ZD1nu.js} +1 -1
- package/dist/{default-i18n-BqWys-1G.js → default-i18n-DRnM8y4w.js} +45 -21
- package/dist/{focusSafely-xMzk3syC.js → focusSafely-CgFLw4FA.js} +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +3 -1
- package/dist/{number-CHmNj-oR.js → number-GajL10e1.js} +2 -2
- package/dist/{react-jsx-parser.min-sPC96O_U.js → react-jsx-parser.min-B5HVwW_W.js} +103 -53
- package/dist/{textSelection-D5Bit8i8.js → textSelection-CvK0YHTZ.js} +1 -1
- package/dist/{tooltip-srrt1p-b.js → tooltip-eKaARDoV.js} +5 -5
- package/dist/{useButton-6H5k2W5N.js → useButton-Cy9eEev7.js} +3 -3
- package/dist/{useEvent-BY-3vfxa.js → useEvent-LZebwyrb.js} +1 -1
- package/dist/{useFocusRing-rz8eyzby.js → useFocusRing-BMOTWmOx.js} +1 -1
- package/dist/{useFocusable-Bu2Ovohk.js → useFocusable-ByyKSVQv.js} +2 -2
- package/dist/{useFormReset-fUHUaaR6.js → useFormReset-B8m1uz1J.js} +1 -1
- package/dist/{useFormValidationState-DAan_XbC.js → useFormValidationState-BjMhz_VI.js} +2 -2
- package/dist/{useLabel-Bk7iP__W.js → useLabel-B6uO0wVK.js} +2 -2
- package/dist/{useLabels-DmsOywGg.js → useLabels-5dFkeiXx.js} +1 -1
- package/dist/{useListState-GXSJsAgz.js → useListState-eKxv7HPC.js} +28 -16
- package/dist/{useLocalizedStringFormatter-m03yY3xi.js → useLocalizedStringFormatter-BaKmjFNp.js} +1 -1
- package/dist/{useMenuTrigger-CT2-BFLo.js → useMenuTrigger-4fwEmto8.js} +4 -4
- package/dist/{useNumberFieldState-CpmU88xz.js → useNumberField-DMMUTZ-h.js} +169 -169
- package/dist/{useNumberFormatter-B-20GQ2u.js → useNumberFormatter-Cyx5Dxkf.js} +1 -1
- package/dist/{usePress-Cs8K7gKw.js → usePress-D8nPoIQm.js} +22 -10
- package/dist/{useSingleSelectListState-C1ddMCq3.js → useSingleSelectListState-CABciySJ.js} +3 -2
- package/dist/{useToggle-Cn2nQUNS.js → useToggle-BmltE9Zr.js} +4 -4
- package/dist/{useToggleState-Dj0JhD9W.js → useToggleState-DZXLEnA_.js} +1 -1
- package/dist/{utils-Du2x3YVu.js → utils-BCJajCwh.js} +15 -7
- package/package.json +24 -24
- package/dist/Button-CYX0D6At.js +0 -55
- package/dist/LiveAnnouncer-D8h-3GrG.js +0 -63
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-
|
|
1
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-CvK0YHTZ.js";
|
|
2
2
|
import React__default, { useContext, createContext, useState, useRef, useMemo, useEffect } from "react";
|
|
3
|
-
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, c as $3ef42575df84b30b$export$9d1611c77c2fe928, n as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-
|
|
4
|
-
import { p as $c87311424ea30a05$export$b7d78993b74f766d, n as $c87311424ea30a05$export$9ac100e40613ea10, o as $c87311424ea30a05$export$78551043582a6a98, q as $c87311424ea30a05$export$7bef049ce92e4224, m as $7215afc6de606d6b$export$de79e2c695e052f3, r as $6a7db85432448f7f$export$29bf1b5f2c56cf63, g as $431fbd86ca7dc216$export$b204af158042fbac, s as $6a7db85432448f7f$export$60278871457622de, f as $431fbd86ca7dc216$export$f21a1ffae260145a, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-
|
|
3
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, c as $3ef42575df84b30b$export$9d1611c77c2fe928, n as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-BCJajCwh.js";
|
|
4
|
+
import { p as $c87311424ea30a05$export$b7d78993b74f766d, n as $c87311424ea30a05$export$9ac100e40613ea10, o as $c87311424ea30a05$export$78551043582a6a98, q as $c87311424ea30a05$export$7bef049ce92e4224, m as $7215afc6de606d6b$export$de79e2c695e052f3, r as $6a7db85432448f7f$export$29bf1b5f2c56cf63, g as $431fbd86ca7dc216$export$b204af158042fbac, s as $6a7db85432448f7f$export$60278871457622de, f as $431fbd86ca7dc216$export$f21a1ffae260145a, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-CgFLw4FA.js";
|
|
5
5
|
const $ea8dcbcb9ea1b556$var$RouterContext = /* @__PURE__ */ createContext({
|
|
6
6
|
isNative: true,
|
|
7
7
|
open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
|
|
@@ -57,8 +57,10 @@ function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {
|
|
|
57
57
|
}
|
|
58
58
|
function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {
|
|
59
59
|
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
60
|
+
var _props_href;
|
|
61
|
+
const href = router.useHref((_props_href = props === null || props === void 0 ? void 0 : props.href) !== null && _props_href !== void 0 ? _props_href : "");
|
|
60
62
|
return {
|
|
61
|
-
href: (props === null || props === void 0 ? void 0 : props.href) ?
|
|
63
|
+
href: (props === null || props === void 0 ? void 0 : props.href) ? href : void 0,
|
|
62
64
|
target: props === null || props === void 0 ? void 0 : props.target,
|
|
63
65
|
rel: props === null || props === void 0 ? void 0 : props.rel,
|
|
64
66
|
download: props === null || props === void 0 ? void 0 : props.download,
|
|
@@ -322,7 +324,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
322
324
|
state.pointerType = "virtual";
|
|
323
325
|
return;
|
|
324
326
|
}
|
|
325
|
-
if ($f6c31cce2adf654f$var$
|
|
327
|
+
if ($f6c31cce2adf654f$var$shouldPreventDefaultDown(e.currentTarget)) e.preventDefault();
|
|
326
328
|
state.pointerType = e.pointerType;
|
|
327
329
|
let shouldStopPropagation = true;
|
|
328
330
|
if (!state.isPressed) {
|
|
@@ -342,7 +344,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
342
344
|
pressProps2.onMouseDown = (e) => {
|
|
343
345
|
if (!e.currentTarget.contains(e.target)) return;
|
|
344
346
|
if (e.button === 0) {
|
|
345
|
-
if ($f6c31cce2adf654f$var$
|
|
347
|
+
if ($f6c31cce2adf654f$var$shouldPreventDefaultDown(e.currentTarget)) e.preventDefault();
|
|
346
348
|
e.stopPropagation();
|
|
347
349
|
}
|
|
348
350
|
};
|
|
@@ -373,8 +375,14 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
373
375
|
state.pointerType = null;
|
|
374
376
|
removeAllGlobalListeners();
|
|
375
377
|
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$b0d6fa1ab32e3295(state.target);
|
|
378
|
+
if ("ontouchend" in state.target && e.pointerType !== "mouse") addGlobalListener(state.target, "touchend", onTouchEnd, {
|
|
379
|
+
once: true
|
|
380
|
+
});
|
|
376
381
|
}
|
|
377
382
|
};
|
|
383
|
+
let onTouchEnd = (e) => {
|
|
384
|
+
if ($f6c31cce2adf654f$var$shouldPreventDefaultUp(e.target)) e.preventDefault();
|
|
385
|
+
};
|
|
378
386
|
let onPointerCancel = (e) => {
|
|
379
387
|
cancel(e);
|
|
380
388
|
};
|
|
@@ -385,7 +393,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
385
393
|
} else {
|
|
386
394
|
pressProps2.onMouseDown = (e) => {
|
|
387
395
|
if (e.button !== 0 || !e.currentTarget.contains(e.target)) return;
|
|
388
|
-
if ($f6c31cce2adf654f$var$
|
|
396
|
+
if ($f6c31cce2adf654f$var$shouldPreventDefaultDown(e.currentTarget)) e.preventDefault();
|
|
389
397
|
if (state.ignoreEmulatedMouseEvents) {
|
|
390
398
|
e.stopPropagation();
|
|
391
399
|
return;
|
|
@@ -613,15 +621,19 @@ function $f6c31cce2adf654f$var$isOverTarget(point, target) {
|
|
|
613
621
|
let pointRect = $f6c31cce2adf654f$var$getPointClientRect(point);
|
|
614
622
|
return $f6c31cce2adf654f$var$areRectanglesOverlapping(rect, pointRect);
|
|
615
623
|
}
|
|
616
|
-
function $f6c31cce2adf654f$var$
|
|
624
|
+
function $f6c31cce2adf654f$var$shouldPreventDefaultDown(target) {
|
|
617
625
|
return !(target instanceof HTMLElement) || !target.hasAttribute("draggable");
|
|
618
626
|
}
|
|
619
|
-
function $f6c31cce2adf654f$var$
|
|
620
|
-
if (target instanceof HTMLInputElement) return
|
|
627
|
+
function $f6c31cce2adf654f$var$shouldPreventDefaultUp(target) {
|
|
628
|
+
if (target instanceof HTMLInputElement) return false;
|
|
621
629
|
if (target instanceof HTMLButtonElement) return target.type !== "submit" && target.type !== "reset";
|
|
622
630
|
if ($f6c31cce2adf654f$var$isHTMLAnchorLink(target)) return false;
|
|
623
631
|
return true;
|
|
624
632
|
}
|
|
633
|
+
function $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(target, key) {
|
|
634
|
+
if (target instanceof HTMLInputElement) return !$f6c31cce2adf654f$var$isValidInputKey(target, key);
|
|
635
|
+
return $f6c31cce2adf654f$var$shouldPreventDefaultUp(target);
|
|
636
|
+
}
|
|
625
637
|
const $f6c31cce2adf654f$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
626
638
|
"checkbox",
|
|
627
639
|
"radio",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
2
|
-
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-
|
|
1
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-eKxv7HPC.js";
|
|
2
|
+
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CgFLw4FA.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
5
5
|
var _props_defaultSelectedKey;
|
|
@@ -16,6 +16,7 @@ function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
|
16
16
|
allowDuplicateSelectionEvents: true,
|
|
17
17
|
selectedKeys,
|
|
18
18
|
onSelectionChange: (keys) => {
|
|
19
|
+
if (keys === "all") return;
|
|
19
20
|
var _keys_values_next_value;
|
|
20
21
|
let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
|
|
21
22
|
if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BCJajCwh.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
3
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
5
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
3
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-B8m1uz1J.js";
|
|
4
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-ByyKSVQv.js";
|
|
5
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-D8nPoIQm.js";
|
|
6
6
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
7
7
|
let { isDisabled = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid } = props;
|
|
8
8
|
let onChange = (e) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-
|
|
1
|
+
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CgFLw4FA.js";
|
|
2
2
|
function $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {
|
|
3
3
|
let { isReadOnly } = props;
|
|
4
4
|
let [isSelected, setSelected] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isSelected, props.defaultSelected || false, props.onChange);
|
|
@@ -106,7 +106,15 @@ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
|
106
106
|
let updateValue = useCallback((val) => {
|
|
107
107
|
nextId.current = val;
|
|
108
108
|
}, []);
|
|
109
|
-
if ($bdb11010cef70236$var$canUseDOM)
|
|
109
|
+
if ($bdb11010cef70236$var$canUseDOM) {
|
|
110
|
+
if ($bdb11010cef70236$var$idsUpdaterMap.has(res) && !$bdb11010cef70236$var$idsUpdaterMap.get(res).includes(updateValue)) $bdb11010cef70236$var$idsUpdaterMap.set(res, [
|
|
111
|
+
...$bdb11010cef70236$var$idsUpdaterMap.get(res),
|
|
112
|
+
updateValue
|
|
113
|
+
]);
|
|
114
|
+
else $bdb11010cef70236$var$idsUpdaterMap.set(res, [
|
|
115
|
+
updateValue
|
|
116
|
+
]);
|
|
117
|
+
}
|
|
110
118
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
111
119
|
let r2 = res;
|
|
112
120
|
return () => {
|
|
@@ -126,14 +134,14 @@ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
|
126
134
|
}
|
|
127
135
|
function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
|
|
128
136
|
if (idA === idB) return idA;
|
|
129
|
-
let
|
|
130
|
-
if (
|
|
131
|
-
|
|
137
|
+
let setIdsA = $bdb11010cef70236$var$idsUpdaterMap.get(idA);
|
|
138
|
+
if (setIdsA) {
|
|
139
|
+
setIdsA.forEach((fn) => fn(idB));
|
|
132
140
|
return idB;
|
|
133
141
|
}
|
|
134
|
-
let
|
|
135
|
-
if (
|
|
136
|
-
|
|
142
|
+
let setIdsB = $bdb11010cef70236$var$idsUpdaterMap.get(idB);
|
|
143
|
+
if (setIdsB) {
|
|
144
|
+
setIdsB.forEach((fn) => fn(idA));
|
|
137
145
|
return idA;
|
|
138
146
|
}
|
|
139
147
|
return idB;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -42,52 +42,52 @@
|
|
|
42
42
|
"@dnd-kit/react": "^0.0.5",
|
|
43
43
|
"react": "^18.3.1",
|
|
44
44
|
"react-dom": "^18.3.1",
|
|
45
|
-
"react-jsx-parser": "^2.
|
|
45
|
+
"react-jsx-parser": "^2.2.2",
|
|
46
46
|
"react-movable": "^3.3.1",
|
|
47
47
|
"svg-to-jsx-string": "^0.1.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@adobe/react-spectrum": "^3.
|
|
50
|
+
"@adobe/react-spectrum": "^3.37.1",
|
|
51
51
|
"@dnd-kit/core": "^6.1.0",
|
|
52
52
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
53
53
|
"@dnd-kit/sortable": "^8.0.0",
|
|
54
54
|
"@dnd-kit/utilities": "^3.2.2",
|
|
55
|
-
"@eslint/compat": "^1.
|
|
56
|
-
"@react-stately/collections": "^3.
|
|
57
|
-
"@stylistic/eslint-plugin-js": "^2.
|
|
58
|
-
"@types/react": "^18.3.
|
|
59
|
-
"@types/react-dom": "^18.3.
|
|
60
|
-
"@vitejs/plugin-react-swc": "^3.7.
|
|
61
|
-
"@wordpress/i18n": "^5.
|
|
55
|
+
"@eslint/compat": "^1.2.3",
|
|
56
|
+
"@react-stately/collections": "^3.11.0",
|
|
57
|
+
"@stylistic/eslint-plugin-js": "^2.10.1",
|
|
58
|
+
"@types/react": "^18.3.12",
|
|
59
|
+
"@types/react-dom": "^18.3.1",
|
|
60
|
+
"@vitejs/plugin-react-swc": "^3.7.1",
|
|
61
|
+
"@wordpress/i18n": "^5.11.0",
|
|
62
62
|
"autoprefixer": "^10.4.20",
|
|
63
63
|
"clsx": "^2.1.1",
|
|
64
64
|
"css-gradient-parser": "^0.0.16",
|
|
65
|
-
"eslint": "^9.
|
|
65
|
+
"eslint": "^9.14.0",
|
|
66
66
|
"eslint-config-prettier": "^9.1.0",
|
|
67
|
-
"eslint-plugin-jsdoc": "^50.
|
|
67
|
+
"eslint-plugin-jsdoc": "^50.5.0",
|
|
68
68
|
"eslint-plugin-prettier": "^5.2.1",
|
|
69
|
-
"framer-motion": "^11.
|
|
69
|
+
"framer-motion": "^11.11.17",
|
|
70
70
|
"glob": "^11.0.0",
|
|
71
|
-
"globals": "^15.
|
|
71
|
+
"globals": "^15.12.0",
|
|
72
72
|
"just-camel-case": "^6.2.0",
|
|
73
73
|
"just-debounce-it": "^3.2.0",
|
|
74
74
|
"just-has": "^2.3.0",
|
|
75
75
|
"just-is-empty": "^3.4.1",
|
|
76
76
|
"just-kebab-case": "^4.2.0",
|
|
77
77
|
"just-throttle": "^4.2.0",
|
|
78
|
-
"lightningcss": "^1.
|
|
79
|
-
"postcss": "^8.4.
|
|
78
|
+
"lightningcss": "^1.28.1",
|
|
79
|
+
"postcss": "^8.4.49",
|
|
80
80
|
"prettier": "^3.3.3",
|
|
81
81
|
"prettier-plugin-tailwindcss": "^0.6.8",
|
|
82
|
-
"react-aria": "^3.
|
|
83
|
-
"react-aria-components": "^1.
|
|
84
|
-
"react-select": "^5.8.
|
|
85
|
-
"react-stately": "^3.
|
|
86
|
-
"tailwindcss": "^3.4.
|
|
82
|
+
"react-aria": "^3.35.1",
|
|
83
|
+
"react-aria-components": "^1.4.1",
|
|
84
|
+
"react-select": "^5.8.3",
|
|
85
|
+
"react-stately": "^3.33.0",
|
|
86
|
+
"tailwindcss": "^3.4.15",
|
|
87
87
|
"tailwindcss-animate": "^1.0.7",
|
|
88
|
-
"tailwindcss-react-aria-components": "^1.1.
|
|
89
|
-
"tailwindcss-scoped-preflight": "^3.4.
|
|
90
|
-
"vite": "^5.4.
|
|
88
|
+
"tailwindcss-react-aria-components": "^1.1.6",
|
|
89
|
+
"tailwindcss-scoped-preflight": "^3.4.9",
|
|
90
|
+
"vite": "^5.4.11",
|
|
91
91
|
"vite-plugin-lib-inject-css": "^2.1.1"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
package/dist/Button-CYX0D6At.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-Du2x3YVu.js";
|
|
2
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-CupIZhlF.js";
|
|
3
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
4
|
-
import React__default, { createContext } from "react";
|
|
5
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-6H5k2W5N.js";
|
|
6
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-rz8eyzby.js";
|
|
7
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-xMzk3syC.js";
|
|
8
|
-
const $d2b4bc8c273e7be6$var$additionalButtonHTMLAttributes = /* @__PURE__ */ new Set([
|
|
9
|
-
"form",
|
|
10
|
-
"formAction",
|
|
11
|
-
"formEncType",
|
|
12
|
-
"formMethod",
|
|
13
|
-
"formNoValidate",
|
|
14
|
-
"formTarget",
|
|
15
|
-
"name",
|
|
16
|
-
"value"
|
|
17
|
-
]);
|
|
18
|
-
const $d2b4bc8c273e7be6$export$24d547caef80ccd1 = /* @__PURE__ */ createContext({});
|
|
19
|
-
function $d2b4bc8c273e7be6$var$Button(props, ref) {
|
|
20
|
-
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d2b4bc8c273e7be6$export$24d547caef80ccd1);
|
|
21
|
-
let ctx = props;
|
|
22
|
-
let { buttonProps, isPressed } = $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref);
|
|
23
|
-
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
24
|
-
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
25
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
26
|
-
...props,
|
|
27
|
-
values: {
|
|
28
|
-
isHovered,
|
|
29
|
-
isPressed,
|
|
30
|
-
isFocused,
|
|
31
|
-
isFocusVisible,
|
|
32
|
-
isDisabled: props.isDisabled || false
|
|
33
|
-
},
|
|
34
|
-
defaultClassName: "react-aria-Button"
|
|
35
|
-
});
|
|
36
|
-
return /* @__PURE__ */ React__default.createElement("button", {
|
|
37
|
-
...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
38
|
-
propNames: $d2b4bc8c273e7be6$var$additionalButtonHTMLAttributes
|
|
39
|
-
}),
|
|
40
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(buttonProps, focusProps, hoverProps),
|
|
41
|
-
...renderProps,
|
|
42
|
-
ref,
|
|
43
|
-
slot: props.slot || void 0,
|
|
44
|
-
"data-disabled": props.isDisabled || void 0,
|
|
45
|
-
"data-pressed": ctx.isPressed || isPressed || void 0,
|
|
46
|
-
"data-hovered": isHovered || void 0,
|
|
47
|
-
"data-focused": isFocused || void 0,
|
|
48
|
-
"data-focus-visible": isFocusVisible || void 0
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
const $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb($d2b4bc8c273e7be6$var$Button);
|
|
52
|
-
export {
|
|
53
|
-
$d2b4bc8c273e7be6$export$24d547caef80ccd1 as $,
|
|
54
|
-
$d2b4bc8c273e7be6$export$353f5b6fc5456de1 as a
|
|
55
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
|
|
2
|
-
let $319e236875307eab$var$liveAnnouncer = null;
|
|
3
|
-
function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {
|
|
4
|
-
if (!$319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer = new $319e236875307eab$var$LiveAnnouncer();
|
|
5
|
-
$319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);
|
|
6
|
-
}
|
|
7
|
-
function $319e236875307eab$export$d10ae4f68404609a(assertiveness) {
|
|
8
|
-
if ($319e236875307eab$var$liveAnnouncer) $319e236875307eab$var$liveAnnouncer.clear(assertiveness);
|
|
9
|
-
}
|
|
10
|
-
class $319e236875307eab$var$LiveAnnouncer {
|
|
11
|
-
createLog(ariaLive) {
|
|
12
|
-
let node = document.createElement("div");
|
|
13
|
-
node.setAttribute("role", "log");
|
|
14
|
-
node.setAttribute("aria-live", ariaLive);
|
|
15
|
-
node.setAttribute("aria-relevant", "additions");
|
|
16
|
-
return node;
|
|
17
|
-
}
|
|
18
|
-
destroy() {
|
|
19
|
-
if (!this.node) return;
|
|
20
|
-
document.body.removeChild(this.node);
|
|
21
|
-
this.node = null;
|
|
22
|
-
}
|
|
23
|
-
announce(message, assertiveness = "assertive", timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {
|
|
24
|
-
if (!this.node) return;
|
|
25
|
-
let node = document.createElement("div");
|
|
26
|
-
node.textContent = message;
|
|
27
|
-
if (assertiveness === "assertive") this.assertiveLog.appendChild(node);
|
|
28
|
-
else this.politeLog.appendChild(node);
|
|
29
|
-
if (message !== "") setTimeout(() => {
|
|
30
|
-
node.remove();
|
|
31
|
-
}, timeout);
|
|
32
|
-
}
|
|
33
|
-
clear(assertiveness) {
|
|
34
|
-
if (!this.node) return;
|
|
35
|
-
if (!assertiveness || assertiveness === "assertive") this.assertiveLog.innerHTML = "";
|
|
36
|
-
if (!assertiveness || assertiveness === "polite") this.politeLog.innerHTML = "";
|
|
37
|
-
}
|
|
38
|
-
constructor() {
|
|
39
|
-
this.node = document.createElement("div");
|
|
40
|
-
this.node.dataset.liveAnnouncer = "true";
|
|
41
|
-
Object.assign(this.node.style, {
|
|
42
|
-
border: 0,
|
|
43
|
-
clip: "rect(0 0 0 0)",
|
|
44
|
-
clipPath: "inset(50%)",
|
|
45
|
-
height: "1px",
|
|
46
|
-
margin: "-1px",
|
|
47
|
-
overflow: "hidden",
|
|
48
|
-
padding: 0,
|
|
49
|
-
position: "absolute",
|
|
50
|
-
width: "1px",
|
|
51
|
-
whiteSpace: "nowrap"
|
|
52
|
-
});
|
|
53
|
-
this.assertiveLog = this.createLog("assertive");
|
|
54
|
-
this.node.appendChild(this.assertiveLog);
|
|
55
|
-
this.politeLog = this.createLog("polite");
|
|
56
|
-
this.node.appendChild(this.politeLog);
|
|
57
|
-
document.body.prepend(this.node);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
$319e236875307eab$export$a9b970dcc4ae71a9 as $,
|
|
62
|
-
$319e236875307eab$export$d10ae4f68404609a as a
|
|
63
|
-
};
|