@eightshift/ui-components 1.8.0 → 1.9.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.
Files changed (89) hide show
  1. package/dist/{Button-Xa6Ny0p_.js → Button-BMFbEXg1.js} +5 -5
  2. package/dist/{Color-VsesNqCf.js → Color-B-cqXgPz.js} +1 -1
  3. package/dist/{ColorSwatch-xOFAZO_h.js → ColorSwatch-B6s54Jb3.js} +4 -4
  4. package/dist/{ComboBox-CP_SqnqT.js → ComboBox-VR9-vNZv.js} +19 -19
  5. package/dist/{Dialog-jcIYer1n.js → Dialog-BlYTPzgB.js} +17 -17
  6. package/dist/{FieldError-BPe3YgNH.js → FieldError-DKicm3R0.js} +2 -2
  7. package/dist/{FocusScope-uV-xoRHT.js → FocusScope-EoLYfbMp.js} +5 -5
  8. package/dist/{Group-Bvmb49y7.js → Group-D96edUPC.js} +3 -3
  9. package/dist/{Heading-Bfhyr4ZC.js → Heading-GytTjUsy.js} +1 -1
  10. package/dist/{Hidden-7ZhNuLM9.js → Hidden-D3hHnmPI.js} +2 -2
  11. package/dist/{Input-C2dTSp9z.js → Input-BXSxJ_44.js} +8 -8
  12. package/dist/{Label-DqNX_sAU.js → Label-BtoiUpt8.js} +2 -2
  13. package/dist/{List-C7L49CxW.js → List-Ct3nzFZG.js} +1 -1
  14. package/dist/{ListBox-B9r1QoSm.js → ListBox-BMpo-Cem.js} +11 -11
  15. package/dist/{OverlayArrow-ClRhYjQu.js → OverlayArrow-4epQ99-E.js} +3 -3
  16. package/dist/{Select-aab027f3.esm-B8nEum75.js → Select-aab027f3.esm-C7BxKjSc.js} +1 -1
  17. package/dist/{SelectionManager-DP537Pbu.js → SelectionManager-D-89MUJW.js} +109 -160
  18. package/dist/{Separator-Dmxzf3m_.js → Separator-DUhFmbD-.js} +3 -3
  19. package/dist/{Slider-BgHBCyI7.js → Slider-QNPrj4N9.js} +11 -11
  20. package/dist/{Text-DImhB4rT.js → Text-DNDWaukZ.js} +1 -1
  21. package/dist/{VisuallyHidden-wryJF4qQ.js → VisuallyHidden-BHNhi-ls.js} +2 -2
  22. package/dist/assets/style.css +1 -1
  23. package/dist/components/animated-visibility/animated-visibility.js +67 -7273
  24. package/dist/components/base-control/base-control.js +1 -1
  25. package/dist/components/button/button.js +4 -4
  26. package/dist/components/checkbox/checkbox.js +11 -10
  27. package/dist/components/color-pickers/color-swatch.js +2 -2
  28. package/dist/components/color-pickers/gradient-editor.js +1 -1
  29. package/dist/components/color-pickers/solid-color-picker.js +18 -18
  30. package/dist/components/container-panel/container-panel.js +6 -4
  31. package/dist/components/draggable/draggable.js +1 -1
  32. package/dist/components/draggable-list/draggable-list.js +1 -1
  33. package/dist/components/expandable/expandable.js +220 -25
  34. package/dist/components/input-field/input-field.js +7 -7
  35. package/dist/components/link-input/link-input.js +7 -7
  36. package/dist/components/list-box/list-box.js +1 -1
  37. package/dist/components/menu/menu.js +3 -3
  38. package/dist/components/modal/modal.js +4 -4
  39. package/dist/components/number-picker/number-picker.js +9 -9
  40. package/dist/components/options-panel/options-panel.js +1 -1
  41. package/dist/components/popover/popover.js +1 -1
  42. package/dist/components/radio/radio.js +13 -13
  43. package/dist/components/repeater/repeater.js +1 -1
  44. package/dist/components/responsive/mini-responsive.js +1 -1
  45. package/dist/components/select/async-multi-select.js +3 -3
  46. package/dist/components/select/async-single-select.js +2 -2
  47. package/dist/components/select/custom-select-default-components.js +1 -1
  48. package/dist/components/select/multi-select-components.js +1 -1
  49. package/dist/components/select/multi-select.js +3 -3
  50. package/dist/components/select/react-select-component-wrappers.js +1 -1
  51. package/dist/components/select/single-select.js +2 -2
  52. package/dist/components/select/v2/async-select.js +8 -8
  53. package/dist/components/select/v2/shared.js +2 -2
  54. package/dist/components/select/v2/single-select.js +17 -17
  55. package/dist/components/slider/column-config-slider.js +2 -2
  56. package/dist/components/slider/slider.js +3 -3
  57. package/dist/components/tabs/tabs.js +10 -10
  58. package/dist/components/toggle/switch.js +6 -6
  59. package/dist/components/toggle/toggle.js +1 -1
  60. package/dist/components/toggle-button/toggle-button.js +5 -5
  61. package/dist/components/tooltip/tooltip.js +5 -5
  62. package/dist/{context-BI3VdU0Z.js → context-KeRYAbEi.js} +1 -1
  63. package/dist/{focusSafely-Cl9cN7Qx.js → focusSafely-CZY36ssv.js} +1 -1
  64. package/dist/icons/icons.js +112 -0
  65. package/dist/{index-641ee5b8.esm-BclOH4xf.js → index-641ee5b8.esm-DEB-c58F.js} +62 -47
  66. package/dist/index-BYHhzLf-.js +444 -0
  67. package/dist/{multi-select-components-BGQBvx-z.js → multi-select-components-DM3GsNfb.js} +58 -2
  68. package/dist/{react-select-async.esm-B8kK0aL4.js → react-select-async.esm-Bq3N1-Wi.js} +3 -3
  69. package/dist/{react-select.esm-ucYwBxq5.js → react-select.esm-B38nY7_U.js} +3 -3
  70. package/dist/{textSelection-DDDNsS-g.js → textSelection-G2G-nukT.js} +1 -1
  71. package/dist/{useButton-CRKy9xk2.js → useButton-CFtcz1T6.js} +3 -3
  72. package/dist/{useEvent-D54lIBrO.js → useEvent-B0yfN_Zu.js} +1 -1
  73. package/dist/{useFocusRing-DKxoCzVD.js → useFocusRing-DMAlRYjX.js} +1 -1
  74. package/dist/{useFocusable-CPKTGWPn.js → useFocusable-BlkOMLma.js} +2 -2
  75. package/dist/{useFormReset-CTp--h9B.js → useFormReset-BAEM0o25.js} +1 -1
  76. package/dist/{useFormValidation-BNBrliSj.js → useFormValidation-BNzOc2t9.js} +2 -2
  77. package/dist/{useLabel-CzGdEzIq.js → useLabel-D6FSp5_M.js} +2 -2
  78. package/dist/{useLabels-eGSmZC_Z.js → useLabels-CraZ2Sej.js} +1 -1
  79. package/dist/{useListState-D7mE1Y00.js → useListState-C3dnPq2F.js} +1 -1
  80. package/dist/{useLocalizedStringFormatter-BBeUyA9l.js → useLocalizedStringFormatter-B73fhEA7.js} +1 -1
  81. package/dist/{useNumberField-BmEJmL3K.js → useNumberField-CQP9-nH5.js} +10 -10
  82. package/dist/{useNumberFormatter-CTY_UZxq.js → useNumberFormatter-Cdctl6fg.js} +1 -1
  83. package/dist/{usePress-BG9At5Lb.js → usePress-xTkcGUkt.js} +3 -3
  84. package/dist/{useSingleSelectListState-DeJEr7lC.js → useSingleSelectListState-BGXQSTy7.js} +2 -2
  85. package/dist/{useToggle-QlyoyPYv.js → useToggle-Dpw3WpSw.js} +4 -4
  86. package/dist/{useToggleState-C1mnFRiI.js → useToggleState-BSKwCUIW.js} +1 -1
  87. package/dist/{utils-BSxcP7tv.js → utils-BSLBwuuO.js} +7 -7
  88. package/package.json +22 -23
  89. package/dist/index-D0mHceYg.js +0 -28325
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import React__default, { useMemo, useLayoutEffect, useEffect, useRef, useCallback, useState, createContext, memo, useReducer, useContext } from "react";
3
- import { r as reactDomExports } from "./index-D0mHceYg.js";
3
+ import { r as reactDomExports } from "./index-BYHhzLf-.js";
4
4
  import { c as clsx } from "./lite-DVmmD_-j.js";
5
5
  function useCombinedRefs() {
6
6
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -1034,11 +1034,12 @@ var KeyboardCode;
1034
1034
  KeyboardCode2["Up"] = "ArrowUp";
1035
1035
  KeyboardCode2["Esc"] = "Escape";
1036
1036
  KeyboardCode2["Enter"] = "Enter";
1037
+ KeyboardCode2["Tab"] = "Tab";
1037
1038
  })(KeyboardCode || (KeyboardCode = {}));
1038
1039
  const defaultKeyboardCodes = {
1039
1040
  start: [KeyboardCode.Space, KeyboardCode.Enter],
1040
1041
  cancel: [KeyboardCode.Esc],
1041
- end: [KeyboardCode.Space, KeyboardCode.Enter]
1042
+ end: [KeyboardCode.Space, KeyboardCode.Enter, KeyboardCode.Tab]
1042
1043
  };
1043
1044
  const defaultKeyboardCoordinateGetter = (event, _ref) => {
1044
1045
  let {
@@ -1351,9 +1352,11 @@ class AbstractPointerSensor {
1351
1352
  }
1352
1353
  if (isDelayConstraint(activationConstraint)) {
1353
1354
  this.timeoutId = setTimeout(this.handleStart, activationConstraint.delay);
1355
+ this.handlePending(activationConstraint);
1354
1356
  return;
1355
1357
  }
1356
1358
  if (isDistanceConstraint(activationConstraint)) {
1359
+ this.handlePending(activationConstraint);
1357
1360
  return;
1358
1361
  }
1359
1362
  }
@@ -1368,6 +1371,13 @@ class AbstractPointerSensor {
1368
1371
  this.timeoutId = null;
1369
1372
  }
1370
1373
  }
1374
+ handlePending(constraint, offset) {
1375
+ const {
1376
+ active,
1377
+ onPending
1378
+ } = this.props;
1379
+ onPending(active, constraint, this.initialCoordinates, offset);
1380
+ }
1371
1381
  handleStart() {
1372
1382
  const {
1373
1383
  initialCoordinates
@@ -1417,6 +1427,7 @@ class AbstractPointerSensor {
1417
1427
  return this.handleCancel();
1418
1428
  }
1419
1429
  }
1430
+ this.handlePending(activationConstraint, delta);
1420
1431
  return;
1421
1432
  }
1422
1433
  if (event.cancelable) {
@@ -1426,16 +1437,24 @@ class AbstractPointerSensor {
1426
1437
  }
1427
1438
  handleEnd() {
1428
1439
  const {
1440
+ onAbort,
1429
1441
  onEnd
1430
1442
  } = this.props;
1431
1443
  this.detach();
1444
+ if (!this.activated) {
1445
+ onAbort(this.props.active);
1446
+ }
1432
1447
  onEnd();
1433
1448
  }
1434
1449
  handleCancel() {
1435
1450
  const {
1451
+ onAbort,
1436
1452
  onCancel
1437
1453
  } = this.props;
1438
1454
  this.detach();
1455
+ if (!this.activated) {
1456
+ onAbort(this.props.active);
1457
+ }
1439
1458
  onCancel();
1440
1459
  }
1441
1460
  handleKeydown(event) {
@@ -2708,6 +2727,43 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
2708
2727
  // Sensors need to be instantiated with refs for arguments that change over time
2709
2728
  // otherwise they are frozen in time with the stale arguments
2710
2729
  context: sensorContext,
2730
+ onAbort(id2) {
2731
+ const draggableNode = draggableNodes.get(id2);
2732
+ if (!draggableNode) {
2733
+ return;
2734
+ }
2735
+ const {
2736
+ onDragAbort
2737
+ } = latestProps.current;
2738
+ const event2 = {
2739
+ id: id2
2740
+ };
2741
+ onDragAbort == null ? void 0 : onDragAbort(event2);
2742
+ dispatchMonitorEvent({
2743
+ type: "onDragAbort",
2744
+ event: event2
2745
+ });
2746
+ },
2747
+ onPending(id2, constraint, initialCoordinates, offset) {
2748
+ const draggableNode = draggableNodes.get(id2);
2749
+ if (!draggableNode) {
2750
+ return;
2751
+ }
2752
+ const {
2753
+ onDragPending
2754
+ } = latestProps.current;
2755
+ const event2 = {
2756
+ id: id2,
2757
+ constraint,
2758
+ initialCoordinates,
2759
+ offset
2760
+ };
2761
+ onDragPending == null ? void 0 : onDragPending(event2);
2762
+ dispatchMonitorEvent({
2763
+ type: "onDragPending",
2764
+ event: event2
2765
+ });
2766
+ },
2711
2767
  onStart(initialCoordinates) {
2712
2768
  const id2 = activeRef.current;
2713
2769
  if (id2 == null) {
@@ -1,8 +1,8 @@
1
- import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-641ee5b8.esm-BclOH4xf.js";
1
+ import { a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, _ as _extends } from "./index-641ee5b8.esm-DEB-c58F.js";
2
2
  import * as React from "react";
3
3
  import { useRef, useState, useEffect, useCallback, forwardRef } from "react";
4
- import { u as useStateManager, S as Select } from "./Select-aab027f3.esm-B8nEum75.js";
5
- import "./index-D0mHceYg.js";
4
+ import { u as useStateManager, S as Select } from "./Select-aab027f3.esm-C7BxKjSc.js";
5
+ import "./index-BYHhzLf-.js";
6
6
  var _excluded = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
7
7
  function useAsync(_ref) {
8
8
  var _ref$defaultOptions = _ref.defaultOptions, propsDefaultOptions = _ref$defaultOptions === void 0 ? false : _ref$defaultOptions, _ref$cacheOptions = _ref.cacheOptions, cacheOptions = _ref$cacheOptions === void 0 ? false : _ref$cacheOptions, propsLoadOptions = _ref.loadOptions;
@@ -1,8 +1,8 @@
1
- import { u as useStateManager, S as Select } from "./Select-aab027f3.esm-B8nEum75.js";
2
- import { _ as _extends } from "./index-641ee5b8.esm-BclOH4xf.js";
1
+ import { u as useStateManager, S as Select } from "./Select-aab027f3.esm-C7BxKjSc.js";
2
+ import { _ as _extends } from "./index-641ee5b8.esm-DEB-c58F.js";
3
3
  import * as React from "react";
4
4
  import { forwardRef } from "react";
5
- import "./index-D0mHceYg.js";
5
+ import "./index-BYHhzLf-.js";
6
6
  var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
7
7
  var baseSelectProps = useStateManager(props);
8
8
  return /* @__PURE__ */ React.createElement(Select, _extends({
@@ -1,5 +1,5 @@
1
1
  import { useRef, useCallback, useEffect } from "react";
2
- import { j as $c87311424ea30a05$export$fedb369cb70207f1, g as $431fbd86ca7dc216$export$b204af158042fbac, k as $bbed8b41f857bcc0$export$24490316f764c430 } from "./focusSafely-Cl9cN7Qx.js";
2
+ import { j as $c87311424ea30a05$export$fedb369cb70207f1, g as $431fbd86ca7dc216$export$b204af158042fbac, k as $bbed8b41f857bcc0$export$24490316f764c430 } from "./focusSafely-CZY36ssv.js";
3
3
  function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
4
4
  let globalListeners = useRef(/* @__PURE__ */ new Map());
5
5
  let addGlobalListener = useCallback((eventTarget, type, listener, options) => {
@@ -1,7 +1,7 @@
1
- import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BSxcP7tv.js";
1
+ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BSLBwuuO.js";
2
2
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
3
- import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-CPKTGWPn.js";
4
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-BG9At5Lb.js";
3
+ import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-BlkOMLma.js";
4
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-xTkcGUkt.js";
5
5
  function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
6
6
  let {
7
7
  elementType = "button",
@@ -1,4 +1,4 @@
1
- import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-BSxcP7tv.js";
1
+ import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-BSLBwuuO.js";
2
2
  import { useEffect } from "react";
3
3
  function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
4
4
  let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
@@ -1,4 +1,4 @@
1
- import { a as $507fabe10e71c6fb$export$b9b3dfddab17db27, b as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-Cl9cN7Qx.js";
1
+ import { a as $507fabe10e71c6fb$export$b9b3dfddab17db27, b as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "./focusSafely-CZY36ssv.js";
2
2
  import { useRef, useState, useCallback } from "react";
3
3
  function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
4
4
  let { autoFocus = false, isTextInput, within } = props;
@@ -1,5 +1,5 @@
1
- import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, h as $6a99195332edec8b$export$80f3e147d781571c, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-Cl9cN7Qx.js";
2
- import { m as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BSxcP7tv.js";
1
+ import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, h as $6a99195332edec8b$export$80f3e147d781571c, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-CZY36ssv.js";
2
+ import { m as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BSLBwuuO.js";
3
3
  import React__default, { useRef, useEffect, useContext } from "react";
4
4
  function $93925083ecbb358c$export$48d1ea6320830260(handler) {
5
5
  if (!handler) return void 0;
@@ -1,4 +1,4 @@
1
- import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-BSxcP7tv.js";
1
+ import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-BSLBwuuO.js";
2
2
  import { useRef, useEffect } from "react";
3
3
  function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
4
4
  let resetValue = useRef(initialValue);
@@ -1,6 +1,6 @@
1
1
  import { createContext, useMemo, useContext, useState, useRef, useEffect } from "react";
2
- import { i as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./focusSafely-Cl9cN7Qx.js";
3
- import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-BSxcP7tv.js";
2
+ import { i as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./focusSafely-CZY36ssv.js";
3
+ import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-BSLBwuuO.js";
4
4
  const $e5be200c675c3b3a$export$aca958c65c314e6c = {
5
5
  badInput: false,
6
6
  customError: false,
@@ -1,5 +1,5 @@
1
- import { f as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-BSxcP7tv.js";
2
- import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-eGSmZC_Z.js";
1
+ import { f as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-BSLBwuuO.js";
2
+ import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-CraZ2Sej.js";
3
3
  function $d191a55c9702f145$export$8467354a121f1b9f(props) {
4
4
  let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
5
5
  id = $bdb11010cef70236$export$f680877a34711e37(id);
@@ -1,4 +1,4 @@
1
- import { f as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-BSxcP7tv.js";
1
+ import { f as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-BSLBwuuO.js";
2
2
  function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
3
3
  let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
4
4
  id = $bdb11010cef70236$export$f680877a34711e37(id);
@@ -1,4 +1,4 @@
1
- import { a as $7af3f5b51489e0b5$export$253fe78d46329472, b as $7613b1592d41b092$export$6cd28814d92fa9c9, c as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-DP537Pbu.js";
1
+ import { a as $7af3f5b51489e0b5$export$253fe78d46329472, b as $7613b1592d41b092$export$6cd28814d92fa9c9, c as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-D-89MUJW.js";
2
2
  import { useMemo, useCallback, useRef, useEffect } from "react";
3
3
  class $a02d57049d202695$export$d085fb9e920b5ca7 {
4
4
  *[Symbol.iterator]() {
@@ -1,4 +1,4 @@
1
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BI3VdU0Z.js";
1
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-KeRYAbEi.js";
2
2
  import { useMemo } from "react";
3
3
  const $5b160d28a433310d$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
4
4
  const $5b160d28a433310d$var$stringsSymbol = Symbol.for("react-aria.i18n.strings");
@@ -1,17 +1,17 @@
1
- import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec, w as $c87311424ea30a05$export$186c6964ca17d99, u as $c87311424ea30a05$export$a11b0059900ceec8, j as $c87311424ea30a05$export$fedb369cb70207f1 } from "./focusSafely-Cl9cN7Qx.js";
1
+ import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec, w as $c87311424ea30a05$export$186c6964ca17d99, u as $c87311424ea30a05$export$a11b0059900ceec8, j as $c87311424ea30a05$export$fedb369cb70207f1 } from "./focusSafely-CZY36ssv.js";
2
2
  import { $ as $9446cca9a3875146$export$cb6e0bb50bc19463, a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-GajL10e1.js";
3
- import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-BNBrliSj.js";
3
+ import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-BNzOc2t9.js";
4
4
  import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
5
5
  import { useCallback, useState, useMemo, useEffect, useRef } from "react";
6
- import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $bdb11010cef70236$export$f680877a34711e37, q as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-BSxcP7tv.js";
6
+ import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $bdb11010cef70236$export$f680877a34711e37, r as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-BSLBwuuO.js";
7
7
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
8
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-CTp--h9B.js";
9
- import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-D54lIBrO.js";
10
- import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-C2dTSp9z.js";
11
- import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BBeUyA9l.js";
12
- import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-CTY_UZxq.js";
13
- import { c as $319e236875307eab$export$d10ae4f68404609a, b as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-Xa6Ny0p_.js";
14
- import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-DDDNsS-g.js";
8
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BAEM0o25.js";
9
+ import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-B0yfN_Zu.js";
10
+ import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-BXSxJ_44.js";
11
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-B73fhEA7.js";
12
+ import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-Cdctl6fg.js";
13
+ import { c as $319e236875307eab$export$d10ae4f68404609a, b as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-BMFbEXg1.js";
14
+ import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-G2G-nukT.js";
15
15
  function $7d0a636d7a4dcefd$export$2123ff2b87c81ca(props, ref) {
16
16
  let { onScroll, isDisabled } = props;
17
17
  let onScrollHandler = useCallback((e) => {
@@ -1,4 +1,4 @@
1
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BI3VdU0Z.js";
1
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-KeRYAbEi.js";
2
2
  import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
3
3
  import { useMemo } from "react";
4
4
  function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
@@ -1,7 +1,7 @@
1
- import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-DDDNsS-g.js";
1
+ import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-G2G-nukT.js";
2
2
  import React__default, { useContext, createContext, useState, useRef, useMemo, useEffect } from "react";
3
- import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, q as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-BSxcP7tv.js";
4
- import { q as $c87311424ea30a05$export$b7d78993b74f766d, o as $c87311424ea30a05$export$9ac100e40613ea10, p as $c87311424ea30a05$export$78551043582a6a98, r as $c87311424ea30a05$export$7bef049ce92e4224, n as $7215afc6de606d6b$export$de79e2c695e052f3, s as $6a7db85432448f7f$export$29bf1b5f2c56cf63, g as $431fbd86ca7dc216$export$b204af158042fbac, t as $6a7db85432448f7f$export$60278871457622de, f as $431fbd86ca7dc216$export$f21a1ffae260145a, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-Cl9cN7Qx.js";
3
+ import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, r as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-BSLBwuuO.js";
4
+ import { q as $c87311424ea30a05$export$b7d78993b74f766d, o as $c87311424ea30a05$export$9ac100e40613ea10, p as $c87311424ea30a05$export$78551043582a6a98, r as $c87311424ea30a05$export$7bef049ce92e4224, n as $7215afc6de606d6b$export$de79e2c695e052f3, s as $6a7db85432448f7f$export$29bf1b5f2c56cf63, g as $431fbd86ca7dc216$export$b204af158042fbac, t as $6a7db85432448f7f$export$60278871457622de, f as $431fbd86ca7dc216$export$f21a1ffae260145a, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-CZY36ssv.js";
5
5
  const $ea8dcbcb9ea1b556$var$RouterContext = /* @__PURE__ */ createContext({
6
6
  isNative: true,
7
7
  open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
@@ -1,5 +1,5 @@
1
- import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-D7mE1Y00.js";
2
- import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-Cl9cN7Qx.js";
1
+ import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-C3dnPq2F.js";
2
+ import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CZY36ssv.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-BSxcP7tv.js";
1
+ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BSLBwuuO.js";
2
2
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
3
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-CTp--h9B.js";
4
- import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-CPKTGWPn.js";
5
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-BG9At5Lb.js";
3
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BAEM0o25.js";
4
+ import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-BlkOMLma.js";
5
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-xTkcGUkt.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-Cl9cN7Qx.js";
1
+ import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CZY36ssv.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);
@@ -1,5 +1,5 @@
1
1
  import React__default, { useContext, useState, useRef, useCallback, useEffect, useMemo } from "react";
2
- import { $ as $dbSRa$reactdom } from "./index-D0mHceYg.js";
2
+ import { $ as $dbSRa$reactdom } from "./index-BYHhzLf-.js";
3
3
  const $b5e257d569688ac6$var$defaultContext = {
4
4
  prefix: String(Math.round(Math.random() * 1e10)),
5
5
  current: 0
@@ -408,12 +408,12 @@ export {
408
408
  $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as h,
409
409
  $64fa3d84918910a7$export$ef03459518577ad4 as i,
410
410
  $64fa3d84918910a7$export$2881499e37b75b9a as j,
411
- $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as k,
412
- $bdb11010cef70236$export$b4cc09c592e8fdb8 as l,
411
+ $bdb11010cef70236$export$b4cc09c592e8fdb8 as k,
412
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as l,
413
413
  $df56164dff5785e2$export$4338b53315abf666 as m,
414
414
  $5dc95899b306f630$export$c9058316764c140e as n,
415
- $64fa3d84918910a7$export$45fda7c47f93fd48 as o,
416
- $64fa3d84918910a7$export$6d3443f2c48bfc20 as p,
417
- $ff5963eb1fccf552$export$e08e3b67e392101e as q,
418
- $64fa3d84918910a7$export$c62b8e45d58ddad9 as r
415
+ $64fa3d84918910a7$export$c62b8e45d58ddad9 as o,
416
+ $64fa3d84918910a7$export$45fda7c47f93fd48 as p,
417
+ $64fa3d84918910a7$export$6d3443f2c48bfc20 as q,
418
+ $ff5963eb1fccf552$export$e08e3b67e392101e as r
419
419
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightshift/ui-components",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -32,43 +32,42 @@
32
32
  "./wp-overrides": "./dist/assets/wp.css"
33
33
  },
34
34
  "peerDependencies": {
35
- "react": "^18.3.1",
36
- "react-dom": "^18.3.1"
35
+ "react": "^19.0.0",
36
+ "react-dom": "^19.0.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "@dnd-kit/abstract": "^0.0.5",
40
40
  "@dnd-kit/dom": "^0.0.5",
41
41
  "@dnd-kit/helpers": "^0.0.5",
42
42
  "@dnd-kit/react": "^0.0.5",
43
- "react": "^18.3.1",
44
- "react-dom": "^18.3.1",
43
+ "react": "^19.0.0",
44
+ "react-dom": "^19.0.0",
45
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.38.0",
51
- "@dnd-kit/core": "^6.2.0",
52
- "@dnd-kit/modifiers": "^8.0.0",
53
- "@dnd-kit/sortable": "^9.0.0",
50
+ "@adobe/react-spectrum": "^3.38.1",
51
+ "@dnd-kit/core": "^6.3.1",
52
+ "@dnd-kit/modifiers": "^9.0.0",
53
+ "@dnd-kit/sortable": "^10.0.0",
54
54
  "@dnd-kit/utilities": "^3.2.2",
55
- "@eslint/compat": "^1.2.3",
55
+ "@eslint/compat": "^1.2.4",
56
56
  "@react-stately/collections": "^3.12.0",
57
- "@stylistic/eslint-plugin-js": "^2.11.0",
58
- "@types/react": "^18.3.12",
59
- "@types/react-dom": "^18.3.1",
57
+ "@stylistic/eslint-plugin-js": "^2.12.1",
58
+ "@types/react": "^19.0.1",
59
+ "@types/react-dom": "^19.0.2",
60
60
  "@vitejs/plugin-react-swc": "^3.7.2",
61
- "@wordpress/i18n": "^5.13.0",
61
+ "@wordpress/i18n": "^5.14.0",
62
62
  "autoprefixer": "^10.4.20",
63
63
  "clsx": "^2.1.1",
64
64
  "css-gradient-parser": "^0.0.16",
65
- "eslint": "^9.15.0",
65
+ "eslint": "^9.17.0",
66
66
  "eslint-config-prettier": "^9.1.0",
67
- "eslint-plugin-jsdoc": "^50.6.0",
67
+ "eslint-plugin-jsdoc": "^50.6.1",
68
68
  "eslint-plugin-prettier": "^5.2.1",
69
- "framer-motion": "^11.12.0",
70
69
  "glob": "^11.0.0",
71
- "globals": "^15.12.0",
70
+ "globals": "^15.13.0",
72
71
  "just-camel-case": "^6.2.0",
73
72
  "just-debounce-it": "^3.2.0",
74
73
  "just-has": "^2.3.0",
@@ -77,17 +76,17 @@
77
76
  "just-throttle": "^4.2.0",
78
77
  "lightningcss": "^1.28.2",
79
78
  "postcss": "^8.4.49",
80
- "prettier": "^3.4.1",
79
+ "prettier": "^3.4.2",
81
80
  "prettier-plugin-tailwindcss": "^0.6.9",
82
81
  "react-aria": "^3.36.0",
83
82
  "react-aria-components": "^1.5.0",
84
- "react-select": "^5.8.3",
83
+ "react-select": "^5.9.0",
85
84
  "react-stately": "^3.34.0",
86
- "tailwindcss": "^3.4.15",
85
+ "tailwindcss": "^3.4.16",
87
86
  "tailwindcss-animate": "^1.0.7",
88
87
  "tailwindcss-react-aria-components": "^1.2.0",
89
- "tailwindcss-scoped-preflight": "^3.4.9",
90
- "vite": "^6.0.1",
88
+ "tailwindcss-scoped-preflight": "^3.4.10",
89
+ "vite": "^6.0.3",
91
90
  "vite-plugin-lib-inject-css": "^2.1.1"
92
91
  },
93
92
  "scripts": {