@eightshift/ui-components 2.0.2 → 3.0.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-OQ5EIPvt.js → Button-BPLceDeW.js} +5 -5
- package/dist/{Collection-CJM_asJz.js → Collection-CZxddMZS.js} +241 -135
- package/dist/{Color-B0HgM8f4.js → Color-MV5kBVXr.js} +1 -1
- package/dist/{ColorSwatch-Dv3Wxdl_.js → ColorSwatch-BqQfVu4L.js} +5 -5
- package/dist/{ComboBox-BnlZjJ3T.js → ComboBox-_RfyhwZw.js} +42 -21
- package/dist/{Dialog-CIh-hX93.js → Dialog-8tYeQ9n4.js} +202 -91
- package/dist/{FieldError-D7A6s7O5.js → FieldError-52GVSGgC.js} +2 -2
- package/dist/{FocusScope-Cs5_OoeA.js → FocusScope-Cri5BFRz.js} +206 -43
- package/dist/{Group-D6tr3U_n.js → Group-_emcIVxI.js} +3 -3
- package/dist/{Heading-DiYTXoIW.js → Heading-B2153VXe.js} +1 -1
- package/dist/{Hidden-DnOd_jPX.js → Hidden-rE6uR-lr.js} +2 -6
- package/dist/{Input-Se0m3ubj.js → Input-BxpFEIXV.js} +10 -10
- package/dist/{Label-Ca9uelsn.js → Label-icmbmNdI.js} +2 -2
- package/dist/{List-Br274SP1.js → List-CZMUbkFU.js} +3 -1
- package/dist/{ListBox-D9dFEh5A.js → ListBox-Ca6hiCqz.js} +29 -28
- package/dist/{OverlayArrow-1jx-ZyCR.js → OverlayArrow-CYXQSlEU.js} +7 -7
- package/dist/{Select-aab027f3.esm-HFNIFFya.js → Select-aab027f3.esm-PDJCDE95.js} +2 -2
- package/dist/{Separator-BhZycTUp.js → Separator-4IIDRlV_.js} +4 -4
- package/dist/{Slider-BZNaJylD.js → Slider-rz2XRMGm.js} +15 -16
- package/dist/{Text-aOUPPvTO.js → Text-DVSAPY-K.js} +1 -1
- package/dist/{VisuallyHidden-ClTQo25k.js → VisuallyHidden-f9zX67a_.js} +2 -2
- package/dist/assets/style-admin.css +1289 -1338
- package/dist/assets/style-editor.css +433 -482
- package/dist/assets/style.css +433 -482
- package/dist/assets/wp-font-enhancements.css +3 -3
- package/dist/assets/wp-ui-enhancements.css +45 -45
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox.js +13 -10
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +4 -4
- package/dist/components/color-pickers/solid-color-picker.js +22 -24
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/container-panel/container-panel.js +9 -3
- package/dist/components/draggable/draggable-handle.js +2 -2
- package/dist/components/draggable/draggable.js +1167 -871
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +9 -9
- package/dist/components/input-field/input-field.js +10 -9
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +9 -10
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/modal/modal.js +7 -7
- package/dist/components/number-picker/number-picker.js +15 -13
- 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/image-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +20 -17
- package/dist/components/repeater/repeater-item.js +10 -3
- package/dist/components/repeater/repeater.js +34 -5
- package/dist/components/responsive/mini-responsive.js +8 -5
- package/dist/components/responsive/responsive-legacy.js +2 -2
- package/dist/components/responsive/responsive.js +10 -7
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +4 -3
- package/dist/components/select/async-multi-select.js +4 -4
- package/dist/components/select/async-single-select.js +3 -3
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +3 -3
- package/dist/components/select/multi-select.js +4 -4
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +3 -3
- package/dist/components/select/v2/async-select.js +10 -10
- package/dist/components/select/v2/shared.js +2 -2
- package/dist/components/select/v2/single-select.js +24 -23
- 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/tabs/tabs.js +46 -26
- package/dist/components/toggle/switch.js +7 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +18 -24
- package/dist/{context-CDOs-GuR.js → context-D2KUdwNL.js} +1 -1
- package/dist/{default-i18n-CM1-Xvzf.js → default-i18n-CT_oS1Fy.js} +22 -3
- package/dist/icons/icons.js +229 -1629
- package/dist/icons/index.js +2 -3
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/{index-641ee5b8.esm-DbdaYaxR.js → index-641ee5b8.esm-DIuJijyT.js} +31 -31
- package/dist/{index-CcCn9HWX.js → index-BKGQ6jGS.js} +1 -1
- package/dist/{index-BRp93Yfa.js → index-CFozsmNS.js} +4 -1
- package/dist/{multi-select-components-DJfz929p.js → multi-select-components-Sp-JEFEX.js} +4 -4
- package/dist/{react-jsx-parser.min-CVit0rZn.js → react-jsx-parser.min-DZCiis5V.js} +48 -20
- package/dist/{react-select-async.esm-DcVLw9X5.js → react-select-async.esm-Bql4G5iV.js} +3 -3
- package/dist/{react-select.esm-OZ0cmTjg.js → react-select.esm-B_TudhTU.js} +3 -3
- package/dist/{textSelection-BlTDSskG.js → textSelection-0UUS8Yfg.js} +8 -47
- package/dist/{useButton-CmLbE5vg.js → useButton-Cg474OYB.js} +5 -5
- package/dist/{useEvent-cLDJlznQ.js → useEvent-B0b-6KBr.js} +1 -1
- package/dist/useFocusRing-CV5l3lf6.js +107 -0
- package/dist/{useFormReset-NpLM2e3G.js → useFormReset-C5OggHsw.js} +1 -1
- package/dist/{useFormValidation-BWwmZQE2.js → useFormValidation-DhDNSjws.js} +3 -3
- package/dist/{focusSafely-CiqTTjWy.js → useHover-DwDr6ozG.js} +305 -98
- package/dist/{useLabel-C85N3Hzw.js → useLabel-D7HkNEHT.js} +2 -2
- package/dist/{useLabels-C_2wWraB.js → useLabels-D8cxd1Z8.js} +1 -1
- package/dist/{useListState-Z7FB_NzO.js → useListState-DVr6aYd_.js} +28 -13
- package/dist/{useLocalizedStringFormatter-BQ4TF72x.js → useLocalizedStringFormatter-CFP1YZWQ.js} +1 -1
- package/dist/{useNumberField-Bm6_BVl9.js → useNumberField-TwM0Z9D1.js} +10 -10
- package/dist/{useNumberFormatter-DlUVKkO7.js → useNumberFormatter-321rAb4J.js} +1 -1
- package/dist/{usePress-rg_OQIGW.js → usePress-Cucx-xSA.js} +69 -63
- package/dist/{useSingleSelectListState-Cu3xtEJS.js → useSingleSelectListState-CMGsRHHh.js} +2 -2
- package/dist/{useToggle-DzlgBLAJ.js → useToggle-C0I3vs0g.js} +9 -7
- package/dist/{useToggleState-DhSBQxkp.js → useToggleState-CmQX3SoX.js} +1 -1
- package/dist/{utils-39D0mStj.js → utils-DkCSC521.js} +38 -35
- package/package.json +32 -32
- package/dist/useFocusRing-CGp3guTX.js +0 -41
- package/dist/useFocusable-087cO5Ct.js +0 -81
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { $ as $
|
|
1
|
+
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-0UUS8Yfg.js";
|
|
2
2
|
import React__default, { useContext, createContext, useState, useRef, useMemo, useEffect } from "react";
|
|
3
|
-
import { g as $
|
|
4
|
-
import {
|
|
3
|
+
import { C as $c87311424ea30a05$export$b7d78993b74f766d, B as $c87311424ea30a05$export$78551043582a6a98, A as $c87311424ea30a05$export$9ac100e40613ea10, D as $c87311424ea30a05$export$7bef049ce92e4224, y as $7215afc6de606d6b$export$de79e2c695e052f3, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, k as $d4ee10de306f2510$export$4282f70798064fe0, j as $d4ee10de306f2510$export$e58f029f0fbfdb29, E as $6a7db85432448f7f$export$29bf1b5f2c56cf63, d as $431fbd86ca7dc216$export$b204af158042fbac, F as $8a9cb279dc87e130$export$cabe61c495ee3649, G as $6a7db85432448f7f$export$60278871457622de, f as $431fbd86ca7dc216$export$f21a1ffae260145a, H as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useHover-DwDr6ozG.js";
|
|
4
|
+
import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, p as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-DkCSC521.js";
|
|
5
|
+
import { r as reactDomExports } from "./index-CFozsmNS.js";
|
|
5
6
|
const $ea8dcbcb9ea1b556$var$RouterContext = /* @__PURE__ */ createContext({
|
|
6
7
|
isNative: true,
|
|
7
8
|
open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
|
|
@@ -182,13 +183,13 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
182
183
|
let ref = useRef({
|
|
183
184
|
isPressed: false,
|
|
184
185
|
ignoreEmulatedMouseEvents: false,
|
|
185
|
-
ignoreClickAfterPress: false,
|
|
186
186
|
didFirePressStart: false,
|
|
187
187
|
isTriggeringEvent: false,
|
|
188
188
|
activePointerId: null,
|
|
189
189
|
target: null,
|
|
190
190
|
isOverTarget: false,
|
|
191
|
-
pointerType: null
|
|
191
|
+
pointerType: null,
|
|
192
|
+
disposables: []
|
|
192
193
|
});
|
|
193
194
|
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
194
195
|
let triggerPressStart = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => {
|
|
@@ -210,7 +211,6 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
210
211
|
let triggerPressEnd = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType, wasPressed = true) => {
|
|
211
212
|
let state = ref.current;
|
|
212
213
|
if (!state.didFirePressStart) return false;
|
|
213
|
-
state.ignoreClickAfterPress = true;
|
|
214
214
|
state.didFirePressStart = false;
|
|
215
215
|
state.isTriggeringEvent = true;
|
|
216
216
|
let shouldStopPropagation = true;
|
|
@@ -244,13 +244,15 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
244
244
|
let cancel = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
245
245
|
let state = ref.current;
|
|
246
246
|
if (state.isPressed && state.target) {
|
|
247
|
-
if (state.
|
|
247
|
+
if (state.didFirePressStart && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
248
248
|
state.isPressed = false;
|
|
249
249
|
state.isOverTarget = false;
|
|
250
250
|
state.activePointerId = null;
|
|
251
251
|
state.pointerType = null;
|
|
252
252
|
removeAllGlobalListeners();
|
|
253
253
|
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$b0d6fa1ab32e3295(state.target);
|
|
254
|
+
for (let dispose of state.disposables) dispose();
|
|
255
|
+
state.disposables = [];
|
|
254
256
|
}
|
|
255
257
|
});
|
|
256
258
|
let cancelOnPointerExit = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
@@ -260,17 +262,18 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
260
262
|
let state = ref.current;
|
|
261
263
|
let pressProps2 = {
|
|
262
264
|
onKeyDown(e) {
|
|
263
|
-
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && e.currentTarget
|
|
265
|
+
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) {
|
|
264
266
|
var _state_metaKeyEvents;
|
|
265
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.
|
|
267
|
+
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent), e.key)) e.preventDefault();
|
|
266
268
|
let shouldStopPropagation = true;
|
|
267
269
|
if (!state.isPressed && !e.repeat) {
|
|
268
270
|
state.target = e.currentTarget;
|
|
269
271
|
state.isPressed = true;
|
|
272
|
+
state.pointerType = "keyboard";
|
|
270
273
|
shouldStopPropagation = triggerPressStart(e, "keyboard");
|
|
271
274
|
let originalTarget = e.currentTarget;
|
|
272
275
|
let pressUp = (e2) => {
|
|
273
|
-
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e2, originalTarget) && !e2.repeat && originalTarget
|
|
276
|
+
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e2, originalTarget) && !e2.repeat && $d4ee10de306f2510$export$4282f70798064fe0(originalTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e2)) && state.target) triggerPressUp($f6c31cce2adf654f$var$createEvent(state.target, e2), "keyboard");
|
|
274
277
|
};
|
|
275
278
|
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "keyup", $ff5963eb1fccf552$export$e08e3b67e392101e(pressUp, onKeyUp), true);
|
|
276
279
|
}
|
|
@@ -279,19 +282,22 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
279
282
|
} else if (e.key === "Meta") state.metaKeyEvents = /* @__PURE__ */ new Map();
|
|
280
283
|
},
|
|
281
284
|
onClick(e) {
|
|
282
|
-
if (e &&
|
|
285
|
+
if (e && !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
283
286
|
if (e && e.button === 0 && !state.isTriggeringEvent && !$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) {
|
|
284
287
|
let shouldStopPropagation = true;
|
|
285
288
|
if (isDisabled) e.preventDefault();
|
|
286
|
-
if (!state.
|
|
287
|
-
if (!isDisabled && !preventFocusOnPress) $7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
289
|
+
if (!state.ignoreEmulatedMouseEvents && !state.isPressed && (state.pointerType === "virtual" || $6a7db85432448f7f$export$60278871457622de(e.nativeEvent))) {
|
|
288
290
|
let stopPressStart = triggerPressStart(e, "virtual");
|
|
289
291
|
let stopPressUp = triggerPressUp(e, "virtual");
|
|
290
292
|
let stopPressEnd = triggerPressEnd(e, "virtual");
|
|
291
293
|
shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd;
|
|
294
|
+
} else if (state.isPressed && state.pointerType !== "keyboard") {
|
|
295
|
+
let pointerType = state.pointerType || e.nativeEvent.pointerType || "virtual";
|
|
296
|
+
shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType, true);
|
|
297
|
+
state.isOverTarget = false;
|
|
298
|
+
cancel(e);
|
|
292
299
|
}
|
|
293
300
|
state.ignoreEmulatedMouseEvents = false;
|
|
294
|
-
state.ignoreClickAfterPress = false;
|
|
295
301
|
if (shouldStopPropagation) e.stopPropagation();
|
|
296
302
|
}
|
|
297
303
|
}
|
|
@@ -300,11 +306,11 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
300
306
|
var _state_metaKeyEvents;
|
|
301
307
|
if (state.isPressed && state.target && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state.target)) {
|
|
302
308
|
var _state_metaKeyEvents1;
|
|
303
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e
|
|
304
|
-
let target = e
|
|
305
|
-
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), "keyboard", state.target
|
|
309
|
+
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e), e.key)) e.preventDefault();
|
|
310
|
+
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
311
|
+
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), "keyboard", $d4ee10de306f2510$export$4282f70798064fe0(state.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)));
|
|
306
312
|
removeAllGlobalListeners();
|
|
307
|
-
if (e.key !== "Enter" && $f6c31cce2adf654f$var$isHTMLAnchorLink(state.target) && state.target
|
|
313
|
+
if (e.key !== "Enter" && $f6c31cce2adf654f$var$isHTMLAnchorLink(state.target) && $d4ee10de306f2510$export$4282f70798064fe0(state.target, target) && !e[$f6c31cce2adf654f$var$LINK_CLICKED]) {
|
|
308
314
|
e[$f6c31cce2adf654f$var$LINK_CLICKED] = true;
|
|
309
315
|
$ea8dcbcb9ea1b556$export$95185d699e05d4d7(state.target, e, false);
|
|
310
316
|
}
|
|
@@ -319,12 +325,11 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
319
325
|
};
|
|
320
326
|
if (typeof PointerEvent !== "undefined") {
|
|
321
327
|
pressProps2.onPointerDown = (e) => {
|
|
322
|
-
if (e.button !== 0 ||
|
|
328
|
+
if (e.button !== 0 || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
323
329
|
if ($6a7db85432448f7f$export$29bf1b5f2c56cf63(e.nativeEvent)) {
|
|
324
330
|
state.pointerType = "virtual";
|
|
325
331
|
return;
|
|
326
332
|
}
|
|
327
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultDown(e.currentTarget)) e.preventDefault();
|
|
328
333
|
state.pointerType = e.pointerType;
|
|
329
334
|
let shouldStopPropagation = true;
|
|
330
335
|
if (!state.isPressed) {
|
|
@@ -332,10 +337,9 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
332
337
|
state.isOverTarget = true;
|
|
333
338
|
state.activePointerId = e.pointerId;
|
|
334
339
|
state.target = e.currentTarget;
|
|
335
|
-
if (!isDisabled && !preventFocusOnPress) $7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
336
340
|
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$16a4697467175487(state.target);
|
|
337
341
|
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
338
|
-
let target = e.
|
|
342
|
+
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent);
|
|
339
343
|
if ("releasePointerCapture" in target) target.releasePointerCapture(e.pointerId);
|
|
340
344
|
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointerup", onPointerUp, false);
|
|
341
345
|
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointercancel", onPointerCancel, false);
|
|
@@ -343,14 +347,17 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
343
347
|
if (shouldStopPropagation) e.stopPropagation();
|
|
344
348
|
};
|
|
345
349
|
pressProps2.onMouseDown = (e) => {
|
|
346
|
-
if (
|
|
350
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
347
351
|
if (e.button === 0) {
|
|
348
|
-
if (
|
|
352
|
+
if (preventFocusOnPress) {
|
|
353
|
+
let dispose = $8a9cb279dc87e130$export$cabe61c495ee3649(e.target);
|
|
354
|
+
if (dispose) state.disposables.push(dispose);
|
|
355
|
+
}
|
|
349
356
|
e.stopPropagation();
|
|
350
357
|
}
|
|
351
358
|
};
|
|
352
359
|
pressProps2.onPointerUp = (e) => {
|
|
353
|
-
if (
|
|
360
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) || state.pointerType === "virtual") return;
|
|
354
361
|
if (e.button === 0) triggerPressUp(e, state.pointerType || e.pointerType);
|
|
355
362
|
};
|
|
356
363
|
pressProps2.onPointerEnter = (e) => {
|
|
@@ -368,33 +375,33 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
368
375
|
};
|
|
369
376
|
let onPointerUp = (e) => {
|
|
370
377
|
if (e.pointerId === state.activePointerId && state.isPressed && e.button === 0 && state.target) {
|
|
371
|
-
if (state.target
|
|
372
|
-
|
|
373
|
-
|
|
378
|
+
if ($d4ee10de306f2510$export$4282f70798064fe0(state.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) && state.pointerType != null) {
|
|
379
|
+
let clicked = false;
|
|
380
|
+
let timeout = setTimeout(() => {
|
|
381
|
+
if (state.isPressed && state.target instanceof HTMLElement) {
|
|
382
|
+
if (clicked) cancel(e);
|
|
383
|
+
else {
|
|
384
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(state.target);
|
|
385
|
+
state.target.click();
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}, 80);
|
|
389
|
+
addGlobalListener(e.currentTarget, "click", () => clicked = true, true);
|
|
390
|
+
state.disposables.push(() => clearTimeout(timeout));
|
|
391
|
+
} else cancel(e);
|
|
374
392
|
state.isOverTarget = false;
|
|
375
|
-
state.activePointerId = null;
|
|
376
|
-
state.pointerType = null;
|
|
377
|
-
removeAllGlobalListeners();
|
|
378
|
-
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$b0d6fa1ab32e3295(state.target);
|
|
379
|
-
if ("ontouchend" in state.target && e.pointerType !== "mouse") addGlobalListener(state.target, "touchend", onTouchEnd, {
|
|
380
|
-
once: true
|
|
381
|
-
});
|
|
382
393
|
}
|
|
383
394
|
};
|
|
384
|
-
let onTouchEnd = (e) => {
|
|
385
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultUp(e.currentTarget)) e.preventDefault();
|
|
386
|
-
};
|
|
387
395
|
let onPointerCancel = (e) => {
|
|
388
396
|
cancel(e);
|
|
389
397
|
};
|
|
390
398
|
pressProps2.onDragStart = (e) => {
|
|
391
|
-
if (
|
|
399
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
392
400
|
cancel(e);
|
|
393
401
|
};
|
|
394
402
|
} else {
|
|
395
403
|
pressProps2.onMouseDown = (e) => {
|
|
396
|
-
if (e.button !== 0 ||
|
|
397
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultDown(e.currentTarget)) e.preventDefault();
|
|
404
|
+
if (e.button !== 0 || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
398
405
|
if (state.ignoreEmulatedMouseEvents) {
|
|
399
406
|
e.stopPropagation();
|
|
400
407
|
return;
|
|
@@ -403,13 +410,16 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
403
410
|
state.isOverTarget = true;
|
|
404
411
|
state.target = e.currentTarget;
|
|
405
412
|
state.pointerType = $6a7db85432448f7f$export$60278871457622de(e.nativeEvent) ? "virtual" : "mouse";
|
|
406
|
-
|
|
407
|
-
let shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
413
|
+
let shouldStopPropagation = reactDomExports.flushSync(() => triggerPressStart(e, state.pointerType));
|
|
408
414
|
if (shouldStopPropagation) e.stopPropagation();
|
|
415
|
+
if (preventFocusOnPress) {
|
|
416
|
+
let dispose = $8a9cb279dc87e130$export$cabe61c495ee3649(e.target);
|
|
417
|
+
if (dispose) state.disposables.push(dispose);
|
|
418
|
+
}
|
|
409
419
|
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "mouseup", onMouseUp, false);
|
|
410
420
|
};
|
|
411
421
|
pressProps2.onMouseEnter = (e) => {
|
|
412
|
-
if (
|
|
422
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
413
423
|
let shouldStopPropagation = true;
|
|
414
424
|
if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {
|
|
415
425
|
state.isOverTarget = true;
|
|
@@ -418,7 +428,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
418
428
|
if (shouldStopPropagation) e.stopPropagation();
|
|
419
429
|
};
|
|
420
430
|
pressProps2.onMouseLeave = (e) => {
|
|
421
|
-
if (
|
|
431
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
422
432
|
let shouldStopPropagation = true;
|
|
423
433
|
if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {
|
|
424
434
|
state.isOverTarget = false;
|
|
@@ -428,23 +438,21 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
428
438
|
if (shouldStopPropagation) e.stopPropagation();
|
|
429
439
|
};
|
|
430
440
|
pressProps2.onMouseUp = (e) => {
|
|
431
|
-
if (
|
|
441
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
432
442
|
if (!state.ignoreEmulatedMouseEvents && e.button === 0) triggerPressUp(e, state.pointerType || "mouse");
|
|
433
443
|
};
|
|
434
444
|
let onMouseUp = (e) => {
|
|
435
445
|
if (e.button !== 0) return;
|
|
436
|
-
state.isPressed = false;
|
|
437
|
-
removeAllGlobalListeners();
|
|
438
446
|
if (state.ignoreEmulatedMouseEvents) {
|
|
439
447
|
state.ignoreEmulatedMouseEvents = false;
|
|
440
448
|
return;
|
|
441
449
|
}
|
|
442
|
-
if (state.target &&
|
|
443
|
-
else
|
|
450
|
+
if (state.target && state.target.contains(e.target) && state.pointerType != null) ;
|
|
451
|
+
else cancel(e);
|
|
444
452
|
state.isOverTarget = false;
|
|
445
453
|
};
|
|
446
454
|
pressProps2.onTouchStart = (e) => {
|
|
447
|
-
if (
|
|
455
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
448
456
|
let touch = $f6c31cce2adf654f$var$getTouchFromEvent(e.nativeEvent);
|
|
449
457
|
if (!touch) return;
|
|
450
458
|
state.activePointerId = touch.identifier;
|
|
@@ -453,14 +461,13 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
453
461
|
state.isPressed = true;
|
|
454
462
|
state.target = e.currentTarget;
|
|
455
463
|
state.pointerType = "touch";
|
|
456
|
-
if (!isDisabled && !preventFocusOnPress) $7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
457
464
|
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$16a4697467175487(state.target);
|
|
458
465
|
let shouldStopPropagation = triggerPressStart($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);
|
|
459
466
|
if (shouldStopPropagation) e.stopPropagation();
|
|
460
467
|
addGlobalListener($431fbd86ca7dc216$export$f21a1ffae260145a(e.currentTarget), "scroll", onScroll, true);
|
|
461
468
|
};
|
|
462
469
|
pressProps2.onTouchMove = (e) => {
|
|
463
|
-
if (
|
|
470
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
464
471
|
if (!state.isPressed) {
|
|
465
472
|
e.stopPropagation();
|
|
466
473
|
return;
|
|
@@ -480,7 +487,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
480
487
|
if (shouldStopPropagation) e.stopPropagation();
|
|
481
488
|
};
|
|
482
489
|
pressProps2.onTouchEnd = (e) => {
|
|
483
|
-
if (
|
|
490
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
484
491
|
if (!state.isPressed) {
|
|
485
492
|
e.stopPropagation();
|
|
486
493
|
return;
|
|
@@ -500,12 +507,12 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
500
507
|
removeAllGlobalListeners();
|
|
501
508
|
};
|
|
502
509
|
pressProps2.onTouchCancel = (e) => {
|
|
503
|
-
if (
|
|
510
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
504
511
|
e.stopPropagation();
|
|
505
512
|
if (state.isPressed) cancel($f6c31cce2adf654f$var$createTouchEvent(state.target, e));
|
|
506
513
|
};
|
|
507
514
|
let onScroll = (e) => {
|
|
508
|
-
if (state.isPressed && e
|
|
515
|
+
if (state.isPressed && $d4ee10de306f2510$export$4282f70798064fe0($d4ee10de306f2510$export$e58f029f0fbfdb29(e), state.target)) cancel({
|
|
509
516
|
currentTarget: state.target,
|
|
510
517
|
shiftKey: false,
|
|
511
518
|
ctrlKey: false,
|
|
@@ -514,7 +521,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
514
521
|
});
|
|
515
522
|
};
|
|
516
523
|
pressProps2.onDragStart = (e) => {
|
|
517
|
-
if (
|
|
524
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
518
525
|
cancel(e);
|
|
519
526
|
};
|
|
520
527
|
}
|
|
@@ -532,10 +539,12 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
532
539
|
triggerPressUp
|
|
533
540
|
]);
|
|
534
541
|
useEffect(() => {
|
|
542
|
+
let state = ref.current;
|
|
535
543
|
return () => {
|
|
536
|
-
var
|
|
537
|
-
if (!allowTextSelectionOnPress)
|
|
538
|
-
|
|
544
|
+
var _state_target;
|
|
545
|
+
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$b0d6fa1ab32e3295((_state_target = state.target) !== null && _state_target !== void 0 ? _state_target : void 0);
|
|
546
|
+
for (let dispose of state.disposables) dispose();
|
|
547
|
+
state.disposables = [];
|
|
539
548
|
};
|
|
540
549
|
}, [
|
|
541
550
|
allowTextSelectionOnPress
|
|
@@ -622,9 +631,6 @@ function $f6c31cce2adf654f$var$isOverTarget(point, target) {
|
|
|
622
631
|
let pointRect = $f6c31cce2adf654f$var$getPointClientRect(point);
|
|
623
632
|
return $f6c31cce2adf654f$var$areRectanglesOverlapping(rect, pointRect);
|
|
624
633
|
}
|
|
625
|
-
function $f6c31cce2adf654f$var$shouldPreventDefaultDown(target) {
|
|
626
|
-
return !(target instanceof HTMLElement) || !target.hasAttribute("draggable");
|
|
627
|
-
}
|
|
628
634
|
function $f6c31cce2adf654f$var$shouldPreventDefaultUp(target) {
|
|
629
635
|
if (target instanceof HTMLInputElement) return false;
|
|
630
636
|
if (target instanceof HTMLButtonElement) return target.type !== "submit" && target.type !== "reset";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
2
|
-
import {
|
|
1
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-DVr6aYd_.js";
|
|
2
|
+
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-DwDr6ozG.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 { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-DkCSC521.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
3
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
-
import { $ as $
|
|
5
|
-
import {
|
|
3
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-C5OggHsw.js";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-Cucx-xSA.js";
|
|
5
|
+
import { a as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-DwDr6ozG.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) => {
|
|
@@ -16,12 +16,14 @@ function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
|
16
16
|
isDisabled
|
|
17
17
|
});
|
|
18
18
|
let { pressProps: labelProps, isPressed: isLabelPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
19
|
-
isDisabled: isDisabled || isReadOnly,
|
|
20
19
|
onPress() {
|
|
20
|
+
var _ref_current;
|
|
21
21
|
state.toggle();
|
|
22
|
-
|
|
22
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();
|
|
23
|
+
},
|
|
24
|
+
isDisabled: isDisabled || isReadOnly
|
|
23
25
|
});
|
|
24
|
-
let { focusableProps } = $
|
|
26
|
+
let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref);
|
|
25
27
|
let interactions = $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, focusableProps);
|
|
26
28
|
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
27
29
|
labelable: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-DwDr6ozG.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);
|
|
@@ -97,50 +97,52 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
97
97
|
return useContext($b5e257d569688ac6$var$IsSSRContext);
|
|
98
98
|
}
|
|
99
99
|
let $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
100
|
-
let $bdb11010cef70236$
|
|
100
|
+
let $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map();
|
|
101
|
+
let $bdb11010cef70236$var$registry;
|
|
102
|
+
if (typeof FinalizationRegistry !== "undefined") $bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue) => {
|
|
103
|
+
$bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
|
|
104
|
+
});
|
|
101
105
|
function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
102
106
|
let [value, setValue] = useState(defaultId);
|
|
103
107
|
let nextId = useRef(null);
|
|
104
108
|
let res = $b5e257d569688ac6$export$619500959fc48b26(value);
|
|
105
|
-
let
|
|
106
|
-
|
|
107
|
-
}, []);
|
|
109
|
+
let cleanupRef = useRef(null);
|
|
110
|
+
if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.register(cleanupRef, res);
|
|
108
111
|
if ($bdb11010cef70236$var$canUseDOM) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
else $bdb11010cef70236$var$idsUpdaterMap.set(res, [
|
|
114
|
-
updateValue
|
|
112
|
+
const cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res);
|
|
113
|
+
if (cacheIdRef && !cacheIdRef.includes(nextId)) cacheIdRef.push(nextId);
|
|
114
|
+
else $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [
|
|
115
|
+
nextId
|
|
115
116
|
]);
|
|
116
117
|
}
|
|
117
118
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
118
119
|
let r2 = res;
|
|
119
120
|
return () => {
|
|
120
|
-
$bdb11010cef70236$var$
|
|
121
|
+
if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.unregister(cleanupRef);
|
|
122
|
+
$bdb11010cef70236$export$d41a04c74483c6ef.delete(r2);
|
|
121
123
|
};
|
|
122
124
|
}, [
|
|
123
125
|
res
|
|
124
126
|
]);
|
|
125
127
|
useEffect(() => {
|
|
126
128
|
let newId = nextId.current;
|
|
127
|
-
if (newId)
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
129
|
+
if (newId) setValue(newId);
|
|
130
|
+
return () => {
|
|
131
|
+
if (newId) nextId.current = null;
|
|
132
|
+
};
|
|
131
133
|
});
|
|
132
134
|
return res;
|
|
133
135
|
}
|
|
134
136
|
function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
|
|
135
137
|
if (idA === idB) return idA;
|
|
136
|
-
let setIdsA = $bdb11010cef70236$
|
|
138
|
+
let setIdsA = $bdb11010cef70236$export$d41a04c74483c6ef.get(idA);
|
|
137
139
|
if (setIdsA) {
|
|
138
|
-
setIdsA.forEach((
|
|
140
|
+
setIdsA.forEach((ref) => ref.current = idB);
|
|
139
141
|
return idB;
|
|
140
142
|
}
|
|
141
|
-
let setIdsB = $bdb11010cef70236$
|
|
143
|
+
let setIdsB = $bdb11010cef70236$export$d41a04c74483c6ef.get(idB);
|
|
142
144
|
if (setIdsB) {
|
|
143
|
-
setIdsB.forEach((
|
|
145
|
+
setIdsB.forEach((ref) => ref.current = idA);
|
|
144
146
|
return idA;
|
|
145
147
|
}
|
|
146
148
|
return idB;
|
|
@@ -280,11 +282,12 @@ function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) {
|
|
|
280
282
|
if (slot === null)
|
|
281
283
|
return null;
|
|
282
284
|
if (ctx && typeof ctx === "object" && "slots" in ctx && ctx.slots) {
|
|
283
|
-
let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p) => `"${p}"`));
|
|
284
|
-
if (!slot && !ctx.slots[$64fa3d84918910a7$export$c62b8e45d58ddad9]) throw new Error(`A slot prop is required. Valid slot names are ${availableSlots}.`);
|
|
285
285
|
let slotKey = slot || $64fa3d84918910a7$export$c62b8e45d58ddad9;
|
|
286
|
-
if (!ctx.slots[slotKey])
|
|
287
|
-
|
|
286
|
+
if (!ctx.slots[slotKey]) {
|
|
287
|
+
let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p) => `"${p}"`));
|
|
288
|
+
let errorMessage = slot ? `Invalid slot "${slot}".` : "A slot prop is required.";
|
|
289
|
+
throw new Error(`${errorMessage} Valid slot names are ${availableSlots}.`);
|
|
290
|
+
}
|
|
288
291
|
return ctx.slots[slotKey];
|
|
289
292
|
}
|
|
290
293
|
return ctx;
|
|
@@ -325,8 +328,8 @@ function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context) {
|
|
|
325
328
|
mergedRef
|
|
326
329
|
];
|
|
327
330
|
}
|
|
328
|
-
function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8() {
|
|
329
|
-
let [hasSlot, setHasSlot] = useState(
|
|
331
|
+
function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(initialState = true) {
|
|
332
|
+
let [hasSlot, setHasSlot] = useState(initialState);
|
|
330
333
|
let hasRun = useRef(false);
|
|
331
334
|
let ref = useCallback((el) => {
|
|
332
335
|
hasRun.current = true;
|
|
@@ -352,16 +355,16 @@ export {
|
|
|
352
355
|
$64fa3d84918910a7$export$4d86445c2cf5e3 as b,
|
|
353
356
|
clsx as c,
|
|
354
357
|
$3ef42575df84b30b$export$9d1611c77c2fe928 as d,
|
|
355
|
-
$
|
|
356
|
-
$
|
|
357
|
-
$
|
|
358
|
-
$64fa3d84918910a7$export$
|
|
359
|
-
$64fa3d84918910a7$export$
|
|
360
|
-
$
|
|
361
|
-
$
|
|
362
|
-
$
|
|
363
|
-
$
|
|
364
|
-
$
|
|
358
|
+
$bdb11010cef70236$export$f680877a34711e37 as e,
|
|
359
|
+
$8ae05eaa5c114e9c$export$7f54fc3180508a52 as f,
|
|
360
|
+
$64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as g,
|
|
361
|
+
$64fa3d84918910a7$export$ef03459518577ad4 as h,
|
|
362
|
+
$64fa3d84918910a7$export$2881499e37b75b9a as i,
|
|
363
|
+
$bdb11010cef70236$export$b4cc09c592e8fdb8 as j,
|
|
364
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as k,
|
|
365
|
+
$df56164dff5785e2$export$4338b53315abf666 as l,
|
|
366
|
+
$5dc95899b306f630$export$c9058316764c140e as m,
|
|
367
|
+
$b5e257d569688ac6$export$535bd6ca7f90a273 as n,
|
|
365
368
|
$64fa3d84918910a7$export$c62b8e45d58ddad9 as o,
|
|
366
369
|
$ff5963eb1fccf552$export$e08e3b67e392101e as p
|
|
367
370
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -36,61 +36,61 @@
|
|
|
36
36
|
"react-dom": "^18.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@adobe/react-spectrum": "^3.
|
|
40
|
-
"@dnd-kit/abstract": "^0.0.
|
|
39
|
+
"@adobe/react-spectrum": "^3.40.1",
|
|
40
|
+
"@dnd-kit/abstract": "^0.0.9",
|
|
41
41
|
"@dnd-kit/core": "^6.3.1",
|
|
42
|
-
"@dnd-kit/dom": "^0.0.
|
|
43
|
-
"@dnd-kit/helpers": "^0.0.
|
|
42
|
+
"@dnd-kit/dom": "^0.0.9",
|
|
43
|
+
"@dnd-kit/helpers": "^0.0.9",
|
|
44
44
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
45
|
-
"@dnd-kit/react": "^0.0.
|
|
45
|
+
"@dnd-kit/react": "^0.0.9",
|
|
46
46
|
"@dnd-kit/sortable": "^10.0.0",
|
|
47
47
|
"@dnd-kit/utilities": "^3.2.2",
|
|
48
|
-
"@eslint/compat": "^1.2.
|
|
49
|
-
"@react-stately/collections": "^3.12.
|
|
50
|
-
"@stylistic/eslint-plugin-js": "^3.
|
|
51
|
-
"@tailwindcss/vite": "^4.0.
|
|
48
|
+
"@eslint/compat": "^1.2.7",
|
|
49
|
+
"@react-stately/collections": "^3.12.2",
|
|
50
|
+
"@stylistic/eslint-plugin-js": "^3.1.0",
|
|
51
|
+
"@tailwindcss/vite": "^4.0.14",
|
|
52
52
|
"@types/react": "^18.3.18",
|
|
53
53
|
"@types/react-dom": "^18.3.5",
|
|
54
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
55
|
-
"@wordpress/i18n": "^5.
|
|
56
|
-
"autoprefixer": "^10.4.
|
|
54
|
+
"@vitejs/plugin-react-swc": "^3.8.0",
|
|
55
|
+
"@wordpress/i18n": "^5.20.0",
|
|
56
|
+
"autoprefixer": "^10.4.21",
|
|
57
57
|
"class-variance-authority": "^0.7.1",
|
|
58
58
|
"clsx": "^2.1.1",
|
|
59
59
|
"css-gradient-parser": "^0.0.16",
|
|
60
|
-
"eslint": "^9.
|
|
61
|
-
"eslint-config-prettier": "^10.
|
|
62
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
60
|
+
"eslint": "^9.22.0",
|
|
61
|
+
"eslint-config-prettier": "^10.1.1",
|
|
62
|
+
"eslint-plugin-jsdoc": "^50.6.8",
|
|
63
63
|
"eslint-plugin-prettier": "^5.2.3",
|
|
64
64
|
"glob": "^11.0.1",
|
|
65
|
-
"globals": "^
|
|
65
|
+
"globals": "^16.0.0",
|
|
66
66
|
"just-camel-case": "^6.2.0",
|
|
67
67
|
"just-debounce-it": "^3.2.0",
|
|
68
68
|
"just-has": "^2.3.0",
|
|
69
69
|
"just-is-empty": "^3.4.1",
|
|
70
70
|
"just-kebab-case": "^4.2.0",
|
|
71
71
|
"just-throttle": "^4.2.0",
|
|
72
|
-
"lightningcss": "^1.29.
|
|
73
|
-
"postcss": "^8.5.
|
|
74
|
-
"prettier": "^3.
|
|
72
|
+
"lightningcss": "^1.29.3",
|
|
73
|
+
"postcss": "^8.5.3",
|
|
74
|
+
"prettier": "^3.5.3",
|
|
75
75
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
76
76
|
"react": "^18.3.1",
|
|
77
|
-
"react-aria": "^3.
|
|
78
|
-
"react-aria-components": "^1.
|
|
77
|
+
"react-aria": "^3.38.1",
|
|
78
|
+
"react-aria-components": "^1.7.1",
|
|
79
79
|
"react-dom": "^18.3.1",
|
|
80
|
-
"react-jsx-parser": "^2.
|
|
81
|
-
"react-movable": "^3.4.
|
|
82
|
-
"react-select": "^5.10.
|
|
83
|
-
"react-stately": "^3.
|
|
80
|
+
"react-jsx-parser": "^2.4.0",
|
|
81
|
+
"react-movable": "^3.4.1",
|
|
82
|
+
"react-select": "^5.10.1",
|
|
83
|
+
"react-stately": "^3.36.1",
|
|
84
84
|
"svg-to-jsx-string": "^0.1.1",
|
|
85
|
-
"tailwindcss": "^4.0.
|
|
86
|
-
"tailwindcss-motion": "^1.0
|
|
87
|
-
"tailwindcss-react-aria-components": "^
|
|
88
|
-
"vite": "^6.
|
|
85
|
+
"tailwindcss": "^4.0.14",
|
|
86
|
+
"tailwindcss-motion": "^1.1.0",
|
|
87
|
+
"tailwindcss-react-aria-components": "^2.0.0",
|
|
88
|
+
"vite": "^6.2.2",
|
|
89
89
|
"vite-plugin-lib-inject-css": "^2.2.1"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@fontsource-variable/geist": "^5.
|
|
93
|
-
"@fontsource-variable/geist-mono": "^5.
|
|
92
|
+
"@fontsource-variable/geist": "^5.2.5",
|
|
93
|
+
"@fontsource-variable/geist-mono": "^5.2.5"
|
|
94
94
|
},
|
|
95
95
|
"scripts": {
|
|
96
96
|
"dev": "vite",
|