@eightshift/ui-components 1.9.1 → 2.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.
Files changed (124) hide show
  1. package/README.md +0 -7
  2. package/dist/{Button-BEIi9mB_.js → Button-OQ5EIPvt.js} +8 -8
  3. package/dist/{SelectionManager-DGbP8Ntl.js → Collection-CJM_asJz.js} +345 -197
  4. package/dist/{Color-CZxTZUqH.js → Color-B0HgM8f4.js} +1 -1
  5. package/dist/{ColorSwatch-Iijp9hzP.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
  6. package/dist/{ComboBox-DVPU5XzU.js → ComboBox-BnlZjJ3T.js} +21 -22
  7. package/dist/{Dialog-17uxPRe5.js → Dialog-CIh-hX93.js} +77 -65
  8. package/dist/{FieldError-huHsqqMP.js → FieldError-D7A6s7O5.js} +2 -2
  9. package/dist/{FocusScope-7r2_SUa9.js → FocusScope-Cs5_OoeA.js} +6 -4
  10. package/dist/{Group-k_oyd3Te.js → Group-D6tr3U_n.js} +5 -6
  11. package/dist/{Heading-DRBzKYHb.js → Heading-DiYTXoIW.js} +3 -4
  12. package/dist/{Hidden-5cXbU70C.js → Hidden-DnOd_jPX.js} +2 -2
  13. package/dist/{Input-DCmTv_Qw.js → Input-Se0m3ubj.js} +13 -11
  14. package/dist/{Label-D8G0GMsc.js → Label-Ca9uelsn.js} +4 -5
  15. package/dist/{List-C7L49CxW.js → List-Br274SP1.js} +16 -8
  16. package/dist/{ListBox-BxZwDp9o.js → ListBox-D9dFEh5A.js} +36 -23
  17. package/dist/{OverlayArrow-Dca2JXYU.js → OverlayArrow-1jx-ZyCR.js} +75 -13
  18. package/dist/{Select-aab027f3.esm-OvJ8lZs8.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
  19. package/dist/{Separator-B_VdRHCf.js → Separator-BhZycTUp.js} +9 -7
  20. package/dist/{Slider-CgEZmlNY.js → Slider-BZNaJylD.js} +20 -24
  21. package/dist/{Text-Cld9rkzJ.js → Text-aOUPPvTO.js} +3 -4
  22. package/dist/{VisuallyHidden-D0lsNfi4.js → VisuallyHidden-ClTQo25k.js} +2 -2
  23. package/dist/assets/index.css +37 -0
  24. package/dist/assets/style-admin.css +5287 -0
  25. package/dist/assets/style-editor.css +5287 -0
  26. package/dist/assets/style.css +5293 -1
  27. package/dist/assets/wp-font-enhancements.css +8 -1
  28. package/dist/assets/wp-ui-enhancements.css +299 -1
  29. package/dist/components/animated-visibility/animated-visibility.js +17 -21
  30. package/dist/components/base-control/base-control.js +7 -7
  31. package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
  32. package/dist/components/button/button.js +190 -86
  33. package/dist/components/checkbox/checkbox.js +44 -27
  34. package/dist/components/color-pickers/color-picker.js +13 -9
  35. package/dist/components/color-pickers/color-swatch.js +4 -4
  36. package/dist/components/color-pickers/gradient-editor.js +25 -24
  37. package/dist/components/color-pickers/solid-color-picker.js +197 -229
  38. package/dist/components/component-toggle/component-toggle.js +3 -3
  39. package/dist/components/container-panel/container-panel.js +17 -17
  40. package/dist/components/draggable/draggable-handle.js +6 -6
  41. package/dist/components/draggable/draggable.js +1414 -699
  42. package/dist/components/draggable-list/draggable-list-item.js +3 -3
  43. package/dist/components/draggable-list/draggable-list.js +12 -12
  44. package/dist/components/expandable/expandable.js +66 -78
  45. package/dist/components/index.js +2 -3
  46. package/dist/components/input-field/input-field.js +35 -22
  47. package/dist/components/layout/hstack.js +1 -1
  48. package/dist/components/layout/vstack.js +1 -1
  49. package/dist/components/link-input/link-input.js +69 -57
  50. package/dist/components/matrix-align/matrix-align.js +34 -86
  51. package/dist/components/menu/menu.js +22 -23
  52. package/dist/components/modal/modal.js +24 -25
  53. package/dist/components/notice/notice.js +32 -32
  54. package/dist/components/number-picker/number-picker.js +41 -40
  55. package/dist/components/option-select/option-select.js +9 -4
  56. package/dist/components/options-panel/options-panel.js +63 -28
  57. package/dist/components/placeholders/file-placeholder.js +6 -17
  58. package/dist/components/placeholders/image-placeholder.js +17 -17
  59. package/dist/components/placeholders/media-placeholder.js +12 -12
  60. package/dist/components/popover/popover.js +6 -5
  61. package/dist/components/radio/radio.js +60 -43
  62. package/dist/components/repeater/repeater-item.js +10 -10
  63. package/dist/components/repeater/repeater.js +8 -8
  64. package/dist/components/responsive/mini-responsive.js +41 -41
  65. package/dist/components/responsive/responsive-legacy.js +33 -33
  66. package/dist/components/responsive/responsive.js +48 -48
  67. package/dist/components/responsive-preview/responsive-preview.js +4 -4
  68. package/dist/components/rich-label/rich-label.js +13 -11
  69. package/dist/components/select/async-multi-select.js +3 -3
  70. package/dist/components/select/async-single-select.js +2 -2
  71. package/dist/components/select/custom-select-default-components.js +3 -3
  72. package/dist/components/select/multi-select-components.js +1 -1
  73. package/dist/components/select/multi-select.js +3 -3
  74. package/dist/components/select/react-select-component-wrappers.js +1 -1
  75. package/dist/components/select/single-select.js +2 -2
  76. package/dist/components/select/styles.js +21 -21
  77. package/dist/components/select/v2/async-select.js +37 -47
  78. package/dist/components/select/v2/shared.js +8 -8
  79. package/dist/components/select/v2/single-select.js +44 -48
  80. package/dist/components/slider/column-config-slider.js +25 -25
  81. package/dist/components/slider/slider.js +173 -182
  82. package/dist/components/spacer/spacer.js +21 -21
  83. package/dist/components/tabs/tabs.js +111 -63
  84. package/dist/components/toggle/switch.js +27 -21
  85. package/dist/components/toggle/toggle.js +1 -1
  86. package/dist/components/toggle-button/toggle-button.js +160 -83
  87. package/dist/components/tooltip/tooltip.js +25 -28
  88. package/dist/{context-DtrQ3I5U.js → context-CDOs-GuR.js} +1 -1
  89. package/dist/{focusSafely-ChK5oW-0.js → focusSafely-CiqTTjWy.js} +18 -17
  90. package/dist/icons/icons.js +52 -0
  91. package/dist/{index-641ee5b8.esm-DRaWil7u.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
  92. package/dist/{index-D0mHceYg.js → index-BRp93Yfa.js} +24 -31
  93. package/dist/index-CcCn9HWX.js +44 -0
  94. package/dist/index.js +2 -3
  95. package/dist/{multi-select-components-2Ax71j9a.js → multi-select-components-CkF3LyTF.js} +4 -4
  96. package/dist/{react-select-async.esm-BZwl7Ddb.js → react-select-async.esm-DcVLw9X5.js} +3 -3
  97. package/dist/{react-select.esm-DI0eSkd8.js → react-select.esm-OZ0cmTjg.js} +3 -3
  98. package/dist/style-admin.js +1 -0
  99. package/dist/style-editor.js +1 -0
  100. package/dist/style.js +1 -1
  101. package/dist/{textSelection-CdZPiDxh.js → textSelection-BlTDSskG.js} +2 -2
  102. package/dist/{useButton-C5e_EJlC.js → useButton-CmLbE5vg.js} +3 -3
  103. package/dist/{useEvent-BW_vevRp.js → useEvent-cLDJlznQ.js} +1 -1
  104. package/dist/{useFocusRing-Dbj6MsFR.js → useFocusRing-CGp3guTX.js} +1 -1
  105. package/dist/{useFocusable-C2xrPFl6.js → useFocusable-087cO5Ct.js} +9 -6
  106. package/dist/{useFormReset-DDCE2RPv.js → useFormReset-NpLM2e3G.js} +1 -1
  107. package/dist/{useFormValidation-BxnASugK.js → useFormValidation-BWwmZQE2.js} +3 -3
  108. package/dist/{useLabel-C3sAYsiC.js → useLabel-C85N3Hzw.js} +2 -2
  109. package/dist/{useLabels-WnPbJUyQ.js → useLabels-C_2wWraB.js} +1 -1
  110. package/dist/{useListState-BmTFGt2_.js → useListState-Z7FB_NzO.js} +1 -1
  111. package/dist/{useLocalizedStringFormatter-BurzRhbk.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
  112. package/dist/{useNumberField-D_Azw6A1.js → useNumberField-Bm6_BVl9.js} +10 -10
  113. package/dist/{useNumberFormatter-B58dTQ-c.js → useNumberFormatter-DlUVKkO7.js} +1 -1
  114. package/dist/{usePress-DZ9pn6Jl.js → usePress-rg_OQIGW.js} +15 -14
  115. package/dist/{useSingleSelectListState-Dr843geC.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
  116. package/dist/{useToggle-Dq9VpeCd.js → useToggle-DzlgBLAJ.js} +4 -4
  117. package/dist/{useToggleState-DA_b3LG_.js → useToggleState-DhSBQxkp.js} +1 -1
  118. package/dist/{utils-BmaSD6gC.js → utils-39D0mStj.js} +41 -93
  119. package/package.json +41 -38
  120. package/dist/GeistMonoVF.woff2 +0 -0
  121. package/dist/GeistVF.woff2 +0 -0
  122. package/dist/assets/fonts.css +0 -1
  123. package/dist/components/list-box/list-box.js +0 -157
  124. package/dist/fonts.js +0 -1
@@ -1,5 +1,5 @@
1
- import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, h as $6a99195332edec8b$export$80f3e147d781571c, l as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-ChK5oW-0.js";
2
- import { m as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-BmaSD6gC.js";
1
+ import { c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, h as $6a99195332edec8b$export$80f3e147d781571c, o as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-CiqTTjWy.js";
2
+ import { m as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-39D0mStj.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;
@@ -14,10 +14,14 @@ function $93925083ecbb358c$export$48d1ea6320830260(handler) {
14
14
  return e.isDefaultPrevented();
15
15
  },
16
16
  stopPropagation() {
17
- console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
17
+ if (shouldStopPropagation) console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
18
+ else shouldStopPropagation = true;
18
19
  },
19
20
  continuePropagation() {
20
21
  shouldStopPropagation = false;
22
+ },
23
+ isPropagationStopped() {
24
+ return shouldStopPropagation;
21
25
  }
22
26
  };
23
27
  handler(event);
@@ -39,7 +43,7 @@ function $e6afbd83fe6ebbd2$var$useFocusableContext(ref) {
39
43
  let { ref: _, ...otherProps } = context;
40
44
  return otherProps;
41
45
  }
42
- function $e6afbd83fe6ebbd2$var$FocusableProvider(props, ref) {
46
+ const $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 = /* @__PURE__ */ React__default.forwardRef(function FocusableProvider(props, ref) {
43
47
  let { children, ...otherProps } = props;
44
48
  let objRef = $df56164dff5785e2$export$4338b53315abf666(ref);
45
49
  let context = {
@@ -49,8 +53,7 @@ function $e6afbd83fe6ebbd2$var$FocusableProvider(props, ref) {
49
53
  return /* @__PURE__ */ React__default.createElement($e6afbd83fe6ebbd2$var$FocusableContext.Provider, {
50
54
  value: context
51
55
  }, children);
52
- }
53
- let $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5 = /* @__PURE__ */ React__default.forwardRef($e6afbd83fe6ebbd2$var$FocusableProvider);
56
+ });
54
57
  function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
55
58
  let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props);
56
59
  let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd(props);
@@ -1,4 +1,4 @@
1
- import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-BmaSD6gC.js";
1
+ import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-39D0mStj.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-ChK5oW-0.js";
3
- import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-BmaSD6gC.js";
2
+ import { l as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./focusSafely-CiqTTjWy.js";
3
+ import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./utils-39D0mStj.js";
4
4
  const $e5be200c675c3b3a$export$aca958c65c314e6c = {
5
5
  badInput: false,
6
6
  customError: false,
@@ -139,7 +139,7 @@ function $e5be200c675c3b3a$var$isEqualValidation(a, b) {
139
139
  function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
140
140
  let { validationBehavior, focus } = props;
141
141
  $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
142
- if (validationBehavior === "native" && (ref === null || ref === void 0 ? void 0 : ref.current)) {
142
+ if (validationBehavior === "native" && (ref === null || ref === void 0 ? void 0 : ref.current) && !ref.current.disabled) {
143
143
  let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
144
144
  ref.current.setCustomValidity(errorMessage);
145
145
  if (!ref.current.hasAttribute("title")) ref.current.title = "";
@@ -1,5 +1,5 @@
1
- import { f as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-BmaSD6gC.js";
2
- import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-WnPbJUyQ.js";
1
+ import { f as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-39D0mStj.js";
2
+ import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-C_2wWraB.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-BmaSD6gC.js";
1
+ import { f as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-39D0mStj.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-DGbP8Ntl.js";
1
+ import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./Collection-CJM_asJz.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-DtrQ3I5U.js";
1
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CDOs-GuR.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-ChK5oW-0.js";
1
+ import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $9ab94262bd0047c7$export$420e68273165f4ec, x as $c87311424ea30a05$export$186c6964ca17d99, i as $c87311424ea30a05$export$a11b0059900ceec8, m as $c87311424ea30a05$export$fedb369cb70207f1 } from "./focusSafely-CiqTTjWy.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-BxnASugK.js";
3
+ import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-BWwmZQE2.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, r as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-BmaSD6gC.js";
6
+ import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $bdb11010cef70236$export$f680877a34711e37, p as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-39D0mStj.js";
7
7
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
8
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DDCE2RPv.js";
9
- import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-BW_vevRp.js";
10
- import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-DCmTv_Qw.js";
11
- import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BurzRhbk.js";
12
- import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-B58dTQ-c.js";
13
- import { c as $319e236875307eab$export$d10ae4f68404609a, b as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-BEIi9mB_.js";
14
- import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-CdZPiDxh.js";
8
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-NpLM2e3G.js";
9
+ import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-cLDJlznQ.js";
10
+ import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-Se0m3ubj.js";
11
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BQ4TF72x.js";
12
+ import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-DlUVKkO7.js";
13
+ import { c as $319e236875307eab$export$d10ae4f68404609a, b as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-OQ5EIPvt.js";
14
+ import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "./textSelection-BlTDSskG.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-DtrQ3I5U.js";
1
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CDOs-GuR.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-CdZPiDxh.js";
1
+ import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $14c0b72509d70225$export$b0d6fa1ab32e3295, b as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-BlTDSskG.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, r as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-BmaSD6gC.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-ChK5oW-0.js";
3
+ import { g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, p as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-39D0mStj.js";
4
+ import { s as $c87311424ea30a05$export$b7d78993b74f766d, r as $c87311424ea30a05$export$78551043582a6a98, q as $c87311424ea30a05$export$9ac100e40613ea10, t as $c87311424ea30a05$export$7bef049ce92e4224, p as $7215afc6de606d6b$export$de79e2c695e052f3, u as $6a7db85432448f7f$export$29bf1b5f2c56cf63, g as $431fbd86ca7dc216$export$b204af158042fbac, v as $6a7db85432448f7f$export$60278871457622de, f as $431fbd86ca7dc216$export$f21a1ffae260145a, o as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-CiqTTjWy.js";
5
5
  const $ea8dcbcb9ea1b556$var$RouterContext = /* @__PURE__ */ createContext({
6
6
  isNative: true,
7
7
  open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
@@ -335,7 +335,8 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
335
335
  if (!isDisabled && !preventFocusOnPress) $7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
336
336
  if (!allowTextSelectionOnPress) $14c0b72509d70225$export$16a4697467175487(state.target);
337
337
  shouldStopPropagation = triggerPressStart(e, state.pointerType);
338
- addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointermove", onPointerMove, false);
338
+ let target = e.target;
339
+ if ("releasePointerCapture" in target) target.releasePointerCapture(e.pointerId);
339
340
  addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointerup", onPointerUp, false);
340
341
  addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointercancel", onPointerCancel, false);
341
342
  }
@@ -350,16 +351,16 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
350
351
  };
351
352
  pressProps2.onPointerUp = (e) => {
352
353
  if (!e.currentTarget.contains(e.target) || state.pointerType === "virtual") return;
353
- if (e.button === 0 && $f6c31cce2adf654f$var$isOverTarget(e, e.currentTarget)) triggerPressUp(e, state.pointerType || e.pointerType);
354
+ if (e.button === 0) triggerPressUp(e, state.pointerType || e.pointerType);
354
355
  };
355
- let onPointerMove = (e) => {
356
- if (e.pointerId !== state.activePointerId) return;
357
- if (state.target && $f6c31cce2adf654f$var$isOverTarget(e, state.target)) {
358
- if (!state.isOverTarget && state.pointerType != null) {
359
- state.isOverTarget = true;
360
- triggerPressStart($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
361
- }
362
- } else if (state.target && state.isOverTarget && state.pointerType != null) {
356
+ pressProps2.onPointerEnter = (e) => {
357
+ if (e.pointerId === state.activePointerId && state.target && !state.isOverTarget && state.pointerType != null) {
358
+ state.isOverTarget = true;
359
+ triggerPressStart($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
360
+ }
361
+ };
362
+ pressProps2.onPointerLeave = (e) => {
363
+ if (e.pointerId === state.activePointerId && state.target && state.isOverTarget && state.pointerType != null) {
363
364
  state.isOverTarget = false;
364
365
  triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
365
366
  cancelOnPointerExit(e);
@@ -367,7 +368,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
367
368
  };
368
369
  let onPointerUp = (e) => {
369
370
  if (e.pointerId === state.activePointerId && state.isPressed && e.button === 0 && state.target) {
370
- if ($f6c31cce2adf654f$var$isOverTarget(e, state.target) && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
371
+ if (state.target.contains(e.target) && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
371
372
  else if (state.isOverTarget && state.pointerType != null) triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
372
373
  state.isPressed = false;
373
374
  state.isOverTarget = false;
@@ -1,5 +1,5 @@
1
- import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-BmTFGt2_.js";
2
- import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-ChK5oW-0.js";
1
+ import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-Z7FB_NzO.js";
2
+ import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CiqTTjWy.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-BmaSD6gC.js";
1
+ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-39D0mStj.js";
2
2
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
3
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DDCE2RPv.js";
4
- import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-C2xrPFl6.js";
5
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-DZ9pn6Jl.js";
3
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-NpLM2e3G.js";
4
+ import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-087cO5Ct.js";
5
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-rg_OQIGW.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-ChK5oW-0.js";
1
+ import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CiqTTjWy.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,43 @@
1
- import React__default, { useContext, useState, useRef, useCallback, useEffect, useMemo } from "react";
2
- import { $ as $dbSRa$reactdom } from "./index-D0mHceYg.js";
1
+ import React__default, { useRef, useCallback, useState, useContext, useEffect, useMemo } from "react";
2
+ const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
3
+ };
4
+ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
5
+ const ref = useRef(null);
6
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
7
+ ref.current = fn;
8
+ }, [
9
+ fn
10
+ ]);
11
+ return useCallback((...args) => {
12
+ const f = ref.current;
13
+ return f === null || f === void 0 ? void 0 : f(...args);
14
+ }, []);
15
+ }
16
+ function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
17
+ let [value, setValue] = useState(defaultValue);
18
+ let effect = useRef(null);
19
+ let nextRef = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
20
+ if (!effect.current) return;
21
+ let newValue = effect.current.next();
22
+ if (newValue.done) {
23
+ effect.current = null;
24
+ return;
25
+ }
26
+ if (value === newValue.value) nextRef();
27
+ else setValue(newValue.value);
28
+ });
29
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
30
+ if (effect.current) nextRef();
31
+ });
32
+ let queue = $8ae05eaa5c114e9c$export$7f54fc3180508a52((fn) => {
33
+ effect.current = fn(value);
34
+ nextRef();
35
+ });
36
+ return [
37
+ value,
38
+ queue
39
+ ];
40
+ }
3
41
  const $b5e257d569688ac6$var$defaultContext = {
4
42
  prefix: String(Math.round(Math.random() * 1e10)),
5
43
  current: 0
@@ -58,45 +96,6 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
58
96
  if (typeof React__default["useSyncExternalStore"] === "function") return React__default["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
59
97
  return useContext($b5e257d569688ac6$var$IsSSRContext);
60
98
  }
61
- const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
62
- };
63
- function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
64
- const ref = useRef(null);
65
- $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
66
- ref.current = fn;
67
- }, [
68
- fn
69
- ]);
70
- return useCallback((...args) => {
71
- const f = ref.current;
72
- return f === null || f === void 0 ? void 0 : f(...args);
73
- }, []);
74
- }
75
- function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
76
- let [value, setValue] = useState(defaultValue);
77
- let effect = useRef(null);
78
- let nextRef = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
79
- if (!effect.current) return;
80
- let newValue = effect.current.next();
81
- if (newValue.done) {
82
- effect.current = null;
83
- return;
84
- }
85
- if (value === newValue.value) nextRef();
86
- else setValue(newValue.value);
87
- });
88
- $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
89
- if (effect.current) nextRef();
90
- });
91
- let queue = $8ae05eaa5c114e9c$export$7f54fc3180508a52((fn) => {
92
- effect.current = fn(value);
93
- nextRef();
94
- });
95
- return [
96
- value,
97
- queue
98
- ];
99
- }
100
99
  let $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
101
100
  let $bdb11010cef70236$var$idsUpdaterMap = /* @__PURE__ */ new Map();
102
101
  function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
@@ -341,55 +340,6 @@ function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8() {
341
340
  hasSlot
342
341
  ];
343
342
  }
344
- function $64fa3d84918910a7$export$6d3443f2c48bfc20(ref, isReady = true) {
345
- let [isEntering, setEntering] = useState(true);
346
- $64fa3d84918910a7$var$useAnimation(ref, isEntering && isReady, useCallback(() => setEntering(false), []));
347
- return isEntering && isReady;
348
- }
349
- function $64fa3d84918910a7$export$45fda7c47f93fd48(ref, isOpen) {
350
- let [isExiting, setExiting] = useState(false);
351
- let [exitState, setExitState] = useState("idle");
352
- if (!isOpen && ref.current && exitState === "idle") {
353
- isExiting = true;
354
- setExiting(true);
355
- setExitState("exiting");
356
- }
357
- if (!ref.current && exitState === "exited") setExitState("idle");
358
- $64fa3d84918910a7$var$useAnimation(ref, isExiting, useCallback(() => {
359
- setExitState("exited");
360
- setExiting(false);
361
- }, []));
362
- return isExiting;
363
- }
364
- function $64fa3d84918910a7$var$useAnimation(ref, isActive, onEnd) {
365
- let prevAnimation = useRef(null);
366
- if (isActive && ref.current)
367
- prevAnimation.current = window.getComputedStyle(ref.current).animation;
368
- $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
369
- if (isActive && ref.current) {
370
- let computedStyle = window.getComputedStyle(ref.current);
371
- if (computedStyle.animationName && computedStyle.animationName !== "none" && computedStyle.animation !== prevAnimation.current) {
372
- let onAnimationEnd = (e) => {
373
- if (e.target === ref.current) {
374
- element.removeEventListener("animationend", onAnimationEnd);
375
- $dbSRa$reactdom.flushSync(() => {
376
- onEnd();
377
- });
378
- }
379
- };
380
- let element = ref.current;
381
- element.addEventListener("animationend", onAnimationEnd);
382
- return () => {
383
- element.removeEventListener("animationend", onAnimationEnd);
384
- };
385
- } else onEnd();
386
- }
387
- }, [
388
- ref,
389
- isActive,
390
- onEnd
391
- ]);
392
- }
393
343
  function $64fa3d84918910a7$export$ef03459518577ad4(props) {
394
344
  const prefix = /^(data-.*)$/;
395
345
  let filteredProps = {};
@@ -413,7 +363,5 @@ export {
413
363
  $df56164dff5785e2$export$4338b53315abf666 as m,
414
364
  $5dc95899b306f630$export$c9058316764c140e as n,
415
365
  $64fa3d84918910a7$export$c62b8e45d58ddad9 as o,
416
- $64fa3d84918910a7$export$45fda7c47f93fd48 as p,
417
- $64fa3d84918910a7$export$6d3443f2c48bfc20 as q,
418
- $ff5963eb1fccf552$export$e08e3b67e392101e as r
366
+ $ff5963eb1fccf552$export$e08e3b67e392101e as p
419
367
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightshift/ui-components",
3
- "version": "1.9.1",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -22,11 +22,11 @@
22
22
  "./icons": "./dist/icons/index.js",
23
23
  "./utilities": "./dist/utilities/index.js",
24
24
  "./dist/assets/style.css": "./dist/assets/style.css",
25
- "./dist/assets/fonts.css": "./dist/assets/fonts.css",
25
+ "./dist/assets/style-editor.css": "./dist/assets/style-editor.css",
26
+ "./dist/assets/style-admin.css": "./dist/assets/style-admin.css",
26
27
  "./dist/assets/wp-font-enhancements.css": "./dist/assets/wp-font-enhancements.css",
27
28
  "./dist/assets/wp-ui-enhancements.css": "./dist/assets/wp-ui-enhancements.css",
28
29
  "./styles": "./dist/assets/style.css",
29
- "./fonts": "./dist/assets/fonts.css",
30
30
  "./wp-font-enhancements": "./dist/assets/wp-font-enhancements.css",
31
31
  "./wp-ui-enhancements": "./dist/assets/wp-ui-enhancements.css",
32
32
  "./wp-overrides": "./dist/assets/wp.css"
@@ -35,59 +35,62 @@
35
35
  "react": "^18.3.1",
36
36
  "react-dom": "^18.3.1"
37
37
  },
38
- "dependencies": {
39
- "@dnd-kit/abstract": "^0.0.5",
40
- "@dnd-kit/dom": "^0.0.5",
41
- "@dnd-kit/helpers": "^0.0.5",
42
- "@dnd-kit/react": "^0.0.5",
43
- "react": "^18.3.1",
44
- "react-dom": "^18.3.1",
45
- "react-jsx-parser": "^2.2.2",
46
- "react-movable": "^3.3.1",
47
- "svg-to-jsx-string": "^0.1.1"
48
- },
49
38
  "devDependencies": {
50
- "@adobe/react-spectrum": "^3.38.1",
39
+ "@adobe/react-spectrum": "^3.39.0",
40
+ "@dnd-kit/abstract": "^0.0.6",
51
41
  "@dnd-kit/core": "^6.3.1",
42
+ "@dnd-kit/dom": "^0.0.6",
43
+ "@dnd-kit/helpers": "^0.0.6",
52
44
  "@dnd-kit/modifiers": "^9.0.0",
45
+ "@dnd-kit/react": "^0.0.6",
53
46
  "@dnd-kit/sortable": "^10.0.0",
54
47
  "@dnd-kit/utilities": "^3.2.2",
55
- "@eslint/compat": "^1.2.4",
56
- "@react-stately/collections": "^3.12.0",
57
- "@stylistic/eslint-plugin-js": "^2.12.1",
58
- "@types/react": "^18.3.17",
48
+ "@eslint/compat": "^1.2.5",
49
+ "@react-stately/collections": "^3.12.1",
50
+ "@stylistic/eslint-plugin-js": "^3.0.0",
51
+ "@tailwindcss/vite": "^4.0.0",
52
+ "@types/react": "^18.3.18",
59
53
  "@types/react-dom": "^18.3.5",
60
54
  "@vitejs/plugin-react-swc": "^3.7.2",
61
- "@wordpress/i18n": "^5.14.0",
55
+ "@wordpress/i18n": "^5.16.0",
62
56
  "autoprefixer": "^10.4.20",
57
+ "class-variance-authority": "^0.7.1",
63
58
  "clsx": "^2.1.1",
64
59
  "css-gradient-parser": "^0.0.16",
65
- "eslint": "^9.17.0",
66
- "eslint-config-prettier": "^9.1.0",
67
- "eslint-plugin-jsdoc": "^50.6.1",
68
- "eslint-plugin-prettier": "^5.2.1",
69
- "glob": "^11.0.0",
70
- "globals": "^15.13.0",
60
+ "eslint": "^9.19.0",
61
+ "eslint-config-prettier": "^10.0.1",
62
+ "eslint-plugin-jsdoc": "^50.6.3",
63
+ "eslint-plugin-prettier": "^5.2.3",
64
+ "glob": "^11.0.1",
65
+ "globals": "^15.14.0",
71
66
  "just-camel-case": "^6.2.0",
72
67
  "just-debounce-it": "^3.2.0",
73
68
  "just-has": "^2.3.0",
74
69
  "just-is-empty": "^3.4.1",
75
70
  "just-kebab-case": "^4.2.0",
76
71
  "just-throttle": "^4.2.0",
77
- "lightningcss": "^1.28.2",
78
- "postcss": "^8.4.49",
72
+ "lightningcss": "^1.29.1",
73
+ "postcss": "^8.5.1",
79
74
  "prettier": "^3.4.2",
80
- "prettier-plugin-tailwindcss": "^0.6.9",
81
- "react-aria": "^3.36.0",
82
- "react-aria-components": "^1.5.0",
83
- "react-select": "^5.9.0",
84
- "react-stately": "^3.34.0",
85
- "tailwindcss": "^3.4.16",
86
- "tailwindcss-animate": "^1.0.7",
75
+ "prettier-plugin-tailwindcss": "^0.6.11",
76
+ "react": "^18.3.1",
77
+ "react-aria": "^3.37.0",
78
+ "react-aria-components": "^1.6.0",
79
+ "react-dom": "^18.3.1",
80
+ "react-jsx-parser": "^2.2.2",
81
+ "react-movable": "^3.4.0",
82
+ "react-select": "^5.10.0",
83
+ "react-stately": "^3.35.0",
84
+ "svg-to-jsx-string": "^0.1.1",
85
+ "tailwindcss": "^4.0.0",
86
+ "tailwindcss-motion": "^1.0.1",
87
87
  "tailwindcss-react-aria-components": "^1.2.0",
88
- "tailwindcss-scoped-preflight": "^3.4.10",
89
- "vite": "^6.0.3",
90
- "vite-plugin-lib-inject-css": "^2.1.1"
88
+ "vite": "^6.0.11",
89
+ "vite-plugin-lib-inject-css": "^2.2.1"
90
+ },
91
+ "dependencies": {
92
+ "@fontsource-variable/geist": "^5.0.1",
93
+ "@fontsource-variable/geist-mono": "^5.0.1"
91
94
  },
92
95
  "scripts": {
93
96
  "dev": "vite",
Binary file
Binary file
@@ -1 +0,0 @@
1
- @font-face{font-family:Geist;src:url(../GeistVF.woff2)}@font-face{font-family:Geist Mono;src:url(../GeistMonoVF.woff2)}