@eightshift/ui-components 1.3.1 → 1.4.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 (110) hide show
  1. package/dist/{Button-DTARR6Ff.js → Button-uYE9D_E3.js} +6 -5
  2. package/dist/{ColorSwatch-5bZ_yIMB.js → ColorSwatch-Bev-9Vbr.js} +4 -4
  3. package/dist/{Dialog-DJgS0mAg.js → Dialog-CGE2ficT.js} +17 -15
  4. package/dist/{FieldError-CviphIN5.js → FieldError-CBPJ4Xx8.js} +2 -2
  5. package/dist/{FocusScope-BjM5iOQC.js → FocusScope-CVd6C65L.js} +24 -8
  6. package/dist/{GridList-DjRnMEae.js → GridList-PBJsm70G.js} +156 -116
  7. package/dist/{Group-BQu67pVS.js → Group-WZgNv9RE.js} +3 -3
  8. package/dist/Hidden-YSmyVF_5.js +45 -0
  9. package/dist/{Input-DWRQF0ro.js → Input-CaS4qmLb.js} +10 -9
  10. package/dist/{Label-BXvY41yE.js → Label-yZgqvhXc.js} +3 -2
  11. package/dist/ListBox-MZyPpwvj.js +567 -0
  12. package/dist/{Select-49a62830.esm-BnlXlUnT.js → Select-49a62830.esm-CqLHaIei.js} +1 -1
  13. package/dist/{SelectionManager-JxXmb3-k.js → SelectionManager-CvRaua4m.js} +1580 -1484
  14. package/dist/{Separator-CX64zwq8.js → Separator-C7Few7L6.js} +80 -62
  15. package/dist/{Slider-Clme2C36.js → Slider-D8a63VhT.js} +14 -12
  16. package/dist/{Text-qjognpzK.js → Text-D8qh3_U7.js} +1 -1
  17. package/dist/{VisuallyHidden-BZPezMV5.js → VisuallyHidden-DD480kAb.js} +2 -2
  18. package/dist/_commonjsHelpers-CUmg6egw.js +6 -0
  19. package/dist/{ariaHideOutside-BZ5z6iCD.js → ariaHideOutside-BzxkODNq.js} +1 -9
  20. package/dist/assets/style.css +1 -1
  21. package/dist/assets/wp-ui-enhancements.css +1 -1
  22. package/dist/components/animated-visibility/animated-visibility.js +311 -198
  23. package/dist/components/base-control/base-control.js +1 -1
  24. package/dist/components/button/button.js +274 -9
  25. package/dist/components/checkbox/checkbox.js +171 -1
  26. package/dist/components/color-pickers/color-picker.js +1 -1
  27. package/dist/components/color-pickers/color-swatch.js +3 -3
  28. package/dist/components/color-pickers/gradient-editor.js +3 -3
  29. package/dist/components/color-pickers/solid-color-picker.js +46 -32
  30. package/dist/components/component-toggle/component-toggle.js +2 -2
  31. package/dist/components/container-panel/container-panel.js +2 -2
  32. package/dist/components/draggable-list/draggable-list-item.js +3 -3
  33. package/dist/components/draggable-list/draggable-list.js +3671 -6
  34. package/dist/components/expandable/expandable.js +7 -4
  35. package/dist/components/index.js +4 -4
  36. package/dist/components/input-field/input-field.js +7 -7
  37. package/dist/components/link-input/link-input.js +1519 -489
  38. package/dist/components/list-box/list-box.js +2 -2
  39. package/dist/components/matrix-align/matrix-align.js +3 -3
  40. package/dist/components/menu/menu.js +164 -466
  41. package/dist/components/modal/modal.js +7 -7
  42. package/dist/components/number-picker/number-picker.js +22 -17
  43. package/dist/components/option-select/option-select.js +6 -4
  44. package/dist/components/placeholders/file-placeholder.js +1 -1
  45. package/dist/components/popover/popover.js +3 -3
  46. package/dist/components/radio/radio.js +13 -13
  47. package/dist/components/repeater/repeater-context.js +5 -0
  48. package/dist/components/repeater/repeater-item.js +46 -91
  49. package/dist/components/repeater/repeater.js +5130 -175
  50. package/dist/components/responsive/responsive-legacy.js +3 -3
  51. package/dist/components/responsive/responsive.js +3 -3
  52. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  53. package/dist/components/select/async-multi-select.js +3 -3
  54. package/dist/components/select/async-single-select.js +2 -2
  55. package/dist/components/select/custom-select-default-components.js +1 -1
  56. package/dist/components/select/multi-select-components.js +1 -1
  57. package/dist/components/select/multi-select.js +5 -5
  58. package/dist/components/select/react-select-component-wrappers.js +1 -1
  59. package/dist/components/select/single-select.js +2 -2
  60. package/dist/components/select/styles.js +1 -1
  61. package/dist/components/slider/column-config-slider.js +3 -3
  62. package/dist/components/slider/slider.js +3 -3
  63. package/dist/components/slider/utils.js +1 -1
  64. package/dist/components/tabs/tabs.js +46 -71
  65. package/dist/components/toggle/switch.js +6 -6
  66. package/dist/components/toggle/toggle.js +1 -1
  67. package/dist/components/toggle-button/toggle-button.js +7 -7
  68. package/dist/components/tooltip/tooltip.js +3 -3
  69. package/dist/{context-BG_1RnbC.js → context-Bon2Gyx5.js} +1 -1
  70. package/dist/{default-i18n-BqwLkgZv.js → default-i18n-BqWys-1G.js} +1 -1
  71. package/dist/{focusSafely-DGZ4R5fj.js → focusSafely-PMGZgZ9-.js} +33 -26
  72. package/dist/getScrollParent-B3XgpXBL.js +10 -0
  73. package/dist/icons/icons.js +205 -0
  74. package/dist/icons/jsx-svg.js +2 -2
  75. package/dist/{index-CAPcSs9K.js → index-BTCzc3zb.js} +1 -1
  76. package/dist/{index-a301f526.esm-ByOfDxiG.js → index-a301f526.esm-B9tWL9yi.js} +80 -603
  77. package/dist/index.js +4 -4
  78. package/dist/{intlStrings-CkuKCPkT.js → intlStrings-KQxgp5tS.js} +14 -9
  79. package/dist/{multi-select-components-7vKCF8dG.js → multi-select-components-DTvEidE3.js} +1 -1
  80. package/dist/react-jsx-parser.min-CAGfntg1.js +13425 -0
  81. package/dist/{react-select-async.esm-5zW9Dv9E.js → react-select-async.esm-8Rba_3KV.js} +3 -3
  82. package/dist/{react-select.esm-Bi6uzjbT.js → react-select.esm-DkSeQzOP.js} +3 -3
  83. package/dist/{textSelection-BLyBtNe2.js → textSelection-DS7-670U.js} +1 -1
  84. package/dist/{tooltip-DSk8I1SO.js → tooltip-C9mg1CP5.js} +54 -18
  85. package/dist/{useButton-EJ9c8fmq.js → useButton-BPY4yXUo.js} +3 -3
  86. package/dist/{useEvent-Cxq_BzP_.js → useEvent-DDLT851Z.js} +1 -1
  87. package/dist/{useFocusRing-Dg5Y_10S.js → useFocusRing-DsxEaA2J.js} +1 -1
  88. package/dist/{useFocusable-CQZyQp4q.js → useFocusable-BFKHuYS9.js} +2 -2
  89. package/dist/{useFormReset-DJMtIgSL.js → useFormReset-BCPbwfnH.js} +1 -1
  90. package/dist/{useFormValidationState-DDC_nImg.js → useFormValidationState-DC5jbhBW.js} +2 -2
  91. package/dist/{useHasTabbableChild-M3O3VIil.js → useHasTabbableChild-Byd7ylXD.js} +2 -2
  92. package/dist/{useLabel-6NqYraET.js → useLabel-DuJhImKc.js} +2 -2
  93. package/dist/{useLabels-D2RG7TdI.js → useLabels-JaBafrnV.js} +1 -1
  94. package/dist/{useListData-BpYQj7kK.js → useListData-B5Pk32vd.js} +6 -3
  95. package/dist/{useListState-IllYYnXV.js → useListState-Csx05BmT.js} +6 -3
  96. package/dist/{useLocalizedStringFormatter-Cwm_siat.js → useLocalizedStringFormatter-CVIIVTgz.js} +1 -1
  97. package/dist/useMenuTrigger-CMgzyMKW.js +246 -0
  98. package/dist/{useNumberFieldState-CVJOJnF1.js → useNumberFieldState-BVFqhboT.js} +12 -11
  99. package/dist/{useNumberFormatter-DVZRQXk3.js → useNumberFormatter-BEeBSV-N.js} +1 -1
  100. package/dist/{usePress-CiXj8dLE.js → usePress-CY8MpqYD.js} +58 -16
  101. package/dist/useSingleSelectListState-CzZUgAt0.js +37 -0
  102. package/dist/{useToggle-CV-IX6nL.js → useToggle-CJp2Fh_L.js} +4 -4
  103. package/dist/{useToggleState-DHIdITtQ.js → useToggleState-B4--Ski0.js} +1 -1
  104. package/dist/{utils-DC-UMp1n.js → utils-B4IdLYb8.js} +48 -85
  105. package/package.json +24 -21
  106. package/dist/Checkbox-CiJIVbAP.js +0 -174
  107. package/dist/ListBox-DTKMdjQC.js +0 -4216
  108. package/dist/_commonjsHelpers-DWwsNxpa.js +0 -8
  109. package/dist/button-IxfzzzbP.js +0 -277
  110. package/dist/react-jsx-parser.min-DhrYeqLL.js +0 -4563
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
2
2
  import { BaseControl } from "./components/base-control/base-control.js";
3
3
  import { BreakpointPreview } from "./components/breakpoint-preview/breakpoint-preview.js";
4
- import { B, a } from "./button-IxfzzzbP.js";
4
+ import { Button, ButtonGroup } from "./components/button/button.js";
5
5
  import { Checkbox } from "./components/checkbox/checkbox.js";
6
6
  import { ComponentToggle } from "./components/component-toggle/component-toggle.js";
7
7
  import { ContainerPanel } from "./components/container-panel/container-panel.js";
@@ -46,7 +46,7 @@ import { Tab, TabList, TabPanel, Tabs } from "./components/tabs/tabs.js";
46
46
  import { Toggle } from "./components/toggle/toggle.js";
47
47
  import { Switch } from "./components/toggle/switch.js";
48
48
  import { ToggleButton } from "./components/toggle-button/toggle-button.js";
49
- import { D, T } from "./tooltip-DSk8I1SO.js";
49
+ import { D, T } from "./tooltip-C9mg1CP5.js";
50
50
  import { VStack } from "./components/layout/vstack.js";
51
51
  import { getColumnConfigOutputText } from "./components/slider/utils.js";
52
52
  export {
@@ -55,8 +55,8 @@ export {
55
55
  AsyncSelect,
56
56
  BaseControl,
57
57
  BreakpointPreview,
58
- B as Button,
59
- a as ButtonGroup,
58
+ Button,
59
+ ButtonGroup,
60
60
  Checkbox,
61
61
  ColorPicker,
62
62
  ColorSwatch,
@@ -1,5 +1,5 @@
1
1
  import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4, b as $9446cca9a3875146$export$b6268554fba451f } from "./number-CHmNj-oR.js";
2
- import { a as $5b160d28a433310d$export$c17fa47878dc55b6, b as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-Cwm_siat.js";
2
+ import { a as $5b160d28a433310d$export$c17fa47878dc55b6, b as $6db58dc88e78b024$export$2f817fcdc4b89ae0 } from "./useLocalizedStringFormatter-CVIIVTgz.js";
3
3
  import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-U_Gx0UDq.js";
4
4
  var $2d805fd52bb48883$exports = {};
5
5
  $2d805fd52bb48883$exports = {
@@ -650,7 +650,7 @@ $4a6b836d4f1bfaba$exports = {
650
650
  "brightness": `명도`,
651
651
  "brown": `갈색`,
652
652
  "brown yellow": `황갈색`,
653
- "colorName": (args) => `${args.lightness} ${args.chroma} ${args.hue}`,
653
+ "colorName": (args) => `${args.lightness}, ${args.chroma}, ${args.hue}`,
654
654
  "cyan": `청록색`,
655
655
  "cyan blue": `청록색`,
656
656
  "dark": `다크`,
@@ -673,7 +673,7 @@ $4a6b836d4f1bfaba$exports = {
673
673
  "red": `빨강`,
674
674
  "red orange": `붉은 주황색`,
675
675
  "saturation": `채도`,
676
- "transparentColorName": (args) => `${args.lightness} ${args.chroma} ${args.hue}, ${args.percentTransparent} 투명도`,
676
+ "transparentColorName": (args) => `${args.lightness}, ${args.chroma}, ${args.hue}, ${args.percentTransparent} 투명도`,
677
677
  "very dark": `매우 어두운`,
678
678
  "very light": `매우 연함`,
679
679
  "vibrant": `강렬한`,
@@ -1411,6 +1411,10 @@ function $799cddbef784668f$export$4cde5df63f53f473(v) {
1411
1411
  if (typeof v === "string") return $799cddbef784668f$export$6e865ea70d7724f(v);
1412
1412
  else return v;
1413
1413
  }
1414
+ function $799cddbef784668f$export$87f5012e10bb20b2(hue) {
1415
+ if (hue === 360) return hue;
1416
+ return (hue % 360 + 360) % 360;
1417
+ }
1414
1418
  const $799cddbef784668f$var$ORANGE_LIGHTNESS_THRESHOLD = 0.68;
1415
1419
  const $799cddbef784668f$var$YELLOW_GREEN_LIGHTNESS_THRESHOLD = 0.85;
1416
1420
  const $799cddbef784668f$var$MAX_DARK_LIGHTNESS = 0.55;
@@ -1578,8 +1582,11 @@ class $799cddbef784668f$var$RGBColor extends $799cddbef784668f$var$Color {
1578
1582
  const match = value.match(/^rgba?\((.*)\)$/);
1579
1583
  if (match === null || match === void 0 ? void 0 : match[1]) {
1580
1584
  colors = match[1].split(",").map((value2) => Number(value2.trim()));
1581
- colors = colors.map((num, i) => $9446cca9a3875146$export$7d15b64cf5a3a4c4(num, 0, i < 3 ? 255 : 1));
1585
+ colors = colors.map((num, i) => {
1586
+ return $9446cca9a3875146$export$7d15b64cf5a3a4c4(num !== null && num !== void 0 ? num : 0, 0, i < 3 ? 255 : 1);
1587
+ });
1582
1588
  }
1589
+ if (colors[0] === void 0 || colors[1] === void 0 || colors[2] === void 0) return void 0;
1583
1590
  var _colors_;
1584
1591
  return colors.length < 3 ? void 0 : new $799cddbef784668f$var$RGBColor(colors[0], colors[1], colors[2], (_colors_ = colors[3]) !== null && _colors_ !== void 0 ? _colors_ : 1);
1585
1592
  }
@@ -1674,6 +1681,7 @@ class $799cddbef784668f$var$RGBColor extends $799cddbef784668f$var$Color {
1674
1681
  hue = (blue - red) / chroma + 2;
1675
1682
  break;
1676
1683
  case blue:
1684
+ default:
1677
1685
  hue = (red - green) / chroma + 4;
1678
1686
  break;
1679
1687
  }
@@ -1753,7 +1761,7 @@ class $799cddbef784668f$var$HSBColor extends $799cddbef784668f$var$Color {
1753
1761
  if (m = value.match($799cddbef784668f$var$HSB_REGEX)) {
1754
1762
  var _m_;
1755
1763
  const [h, s, b, a] = ((_m_ = m[1]) !== null && _m_ !== void 0 ? _m_ : m[2]).split(",").map((n) => Number(n.trim().replace("%", "")));
1756
- return new $799cddbef784668f$var$HSBColor($799cddbef784668f$var$mod(h, 360), $9446cca9a3875146$export$7d15b64cf5a3a4c4(s, 0, 100), $9446cca9a3875146$export$7d15b64cf5a3a4c4(b, 0, 100), $9446cca9a3875146$export$7d15b64cf5a3a4c4(a !== null && a !== void 0 ? a : 1, 0, 1));
1764
+ return new $799cddbef784668f$var$HSBColor($799cddbef784668f$export$87f5012e10bb20b2(h), $9446cca9a3875146$export$7d15b64cf5a3a4c4(s, 0, 100), $9446cca9a3875146$export$7d15b64cf5a3a4c4(b, 0, 100), $9446cca9a3875146$export$7d15b64cf5a3a4c4(a !== null && a !== void 0 ? a : 1, 0, 1));
1757
1765
  }
1758
1766
  }
1759
1767
  toString(format = "css") {
@@ -1886,16 +1894,13 @@ $799cddbef784668f$var$HSBColor.colorChannels = [
1886
1894
  "brightness"
1887
1895
  ];
1888
1896
  const $799cddbef784668f$var$HSL_REGEX = /hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;
1889
- function $799cddbef784668f$var$mod(n, m) {
1890
- return (n % m + m) % m;
1891
- }
1892
1897
  class $799cddbef784668f$var$HSLColor extends $799cddbef784668f$var$Color {
1893
1898
  static parse(value) {
1894
1899
  let m;
1895
1900
  if (m = value.match($799cddbef784668f$var$HSL_REGEX)) {
1896
1901
  var _m_;
1897
1902
  const [h, s, l, a] = ((_m_ = m[1]) !== null && _m_ !== void 0 ? _m_ : m[2]).split(",").map((n) => Number(n.trim().replace("%", "")));
1898
- return new $799cddbef784668f$var$HSLColor($799cddbef784668f$var$mod(h, 360), $9446cca9a3875146$export$7d15b64cf5a3a4c4(s, 0, 100), $9446cca9a3875146$export$7d15b64cf5a3a4c4(l, 0, 100), $9446cca9a3875146$export$7d15b64cf5a3a4c4(a !== null && a !== void 0 ? a : 1, 0, 1));
1903
+ return new $799cddbef784668f$var$HSLColor($799cddbef784668f$export$87f5012e10bb20b2(h), $9446cca9a3875146$export$7d15b64cf5a3a4c4(s, 0, 100), $9446cca9a3875146$export$7d15b64cf5a3a4c4(l, 0, 100), $9446cca9a3875146$export$7d15b64cf5a3a4c4(a !== null && a !== void 0 ? a : 1, 0, 1));
1899
1904
  }
1900
1905
  }
1901
1906
  toString(format = "css") {
@@ -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-CAPcSs9K.js";
3
+ import { r as reactDomExports } from "./index-BTCzc3zb.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++) {