@eightshift/ui-components 1.0.5 → 1.1.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 (121) hide show
  1. package/README.md +9 -0
  2. package/dist/{Button-eebLs4cp.js → Button-CbFrFO04.js} +5 -5
  3. package/dist/{Checkbox-BN0TEda-.js → Checkbox-Cv3pZDHg.js} +12 -16
  4. package/dist/{ColorSwatch-BrowHhTG.js → ColorSwatch-CNQmCQV8.js} +6 -7
  5. package/dist/{FieldError-ILxgMZy5.js → FieldError-J1-YPbi6.js} +2 -2
  6. package/dist/{FocusScope-B9b0VMib.js → FocusScope-Bw-IatMO.js} +79 -153
  7. package/dist/{GridList-CzpWxJsS.js → GridList-CEzzyr-l.js} +62 -90
  8. package/dist/{Group-Dkdm2-E7.js → Group-D3Qa6PrV.js} +3 -3
  9. package/dist/{Input-BJA4rmIo.js → Input-CX_rocyZ.js} +8 -8
  10. package/dist/{Label-9x5iLJ-Y.js → Label-Bg5O81Wb.js} +1 -1
  11. package/dist/{ListBox-D3Vr4vvC.js → ListBox-CCWXTj0t.js} +391 -598
  12. package/dist/{LiveAnnouncer-IsokfWQ5.js → LiveAnnouncer-D8h-3GrG.js} +12 -22
  13. package/dist/{NumberFormatter-LzoKy975.js → NumberFormatter-U_Gx0UDq.js} +26 -44
  14. package/dist/{Select-49a62830.esm-CKPmlkza.js → Select-49a62830.esm-BnlXlUnT.js} +92 -166
  15. package/dist/{SelectionManager-sedvcM-1.js → SelectionManager-XOAt-Ekx.js} +219 -401
  16. package/dist/{Separator-B6rnDabE.js → Separator-DZeg0KOr.js} +41 -72
  17. package/dist/{Slider-C5U5N7uM.js → Slider-fULMI0gI.js} +51 -82
  18. package/dist/{Text-Cyxp9ewv.js → Text-WqetJduR.js} +1 -1
  19. package/dist/{VisuallyHidden-BPJVSUyp.js → VisuallyHidden-Di1zXprL.js} +8 -11
  20. package/dist/{ariaHideOutside-ByKBPHmX.js → ariaHideOutside-Zn64-frS.js} +20 -36
  21. package/dist/assets/style.css +1 -1
  22. package/dist/assets/wp-font-enhancements.css +1 -1
  23. package/dist/assets/wp-ui-enhancements.css +1 -1
  24. package/dist/{button-idVI4jmd.js → button-CD8Q1eok.js} +17 -29
  25. package/dist/components/animated-visibility/animated-visibility.js +125 -113
  26. package/dist/components/base-control/base-control.js +3 -9
  27. package/dist/components/breakpoint-preview/breakpoint-preview.js +51 -108
  28. package/dist/components/button/button.js +6 -6
  29. package/dist/components/checkbox/checkbox.js +2 -2
  30. package/dist/components/color-pickers/color-picker.js +2 -2
  31. package/dist/components/color-pickers/color-swatch.js +5 -9
  32. package/dist/components/color-pickers/gradient-editor.js +15 -29
  33. package/dist/components/color-pickers/solid-color-picker.js +81 -128
  34. package/dist/components/component-toggle/component-toggle.js +4 -4
  35. package/dist/components/container-panel/container-panel.js +4 -11
  36. package/dist/components/draggable-list/draggable-list-item.js +4 -4
  37. package/dist/components/draggable-list/draggable-list.js +5 -5
  38. package/dist/components/expandable/expandable.js +45 -57
  39. package/dist/components/index.js +3 -3
  40. package/dist/components/input-field/input-field.js +11 -26
  41. package/dist/components/layout/hstack.js +2 -12
  42. package/dist/components/layout/vstack.js +2 -12
  43. package/dist/components/link-input/link-input.js +36 -53
  44. package/dist/components/list-box/list-box.js +4 -4
  45. package/dist/components/matrix-align/matrix-align.js +6 -10
  46. package/dist/components/menu/menu.js +101 -170
  47. package/dist/components/notice/notice.js +1 -1
  48. package/dist/components/number-picker/number-picker.js +15 -15
  49. package/dist/components/option-select/option-select.js +52 -70
  50. package/dist/components/options-panel/options-panel.js +3 -3
  51. package/dist/components/placeholders/file-placeholder.js +2 -2
  52. package/dist/components/placeholders/image-placeholder.js +1 -1
  53. package/dist/components/placeholders/media-placeholder.js +1 -1
  54. package/dist/components/popover/popover.js +4 -4
  55. package/dist/components/radio/radio.js +25 -38
  56. package/dist/components/repeater/repeater-item.js +6 -17
  57. package/dist/components/repeater/repeater.js +6 -7
  58. package/dist/components/responsive/responsive-legacy.js +27 -15
  59. package/dist/components/responsive/responsive.js +53 -52
  60. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  61. package/dist/components/rich-label/rich-label.js +2 -8
  62. package/dist/components/select/async-multi-select.js +3 -3
  63. package/dist/components/select/async-single-select.js +2 -2
  64. package/dist/components/select/custom-select-default-components.js +2 -2
  65. package/dist/components/select/multi-select-components.js +2 -2
  66. package/dist/components/select/multi-select.js +3 -3
  67. package/dist/components/select/react-select-component-wrappers.js +9 -9
  68. package/dist/components/select/single-select.js +2 -2
  69. package/dist/components/select/styles.js +3 -10
  70. package/dist/components/slider/column-config-slider.js +4 -4
  71. package/dist/components/slider/slider.js +5 -8
  72. package/dist/components/slider/utils.js +2 -6
  73. package/dist/components/spacer/spacer.js +2 -7
  74. package/dist/components/tabs/tabs.js +29 -50
  75. package/dist/components/toggle/switch.js +8 -8
  76. package/dist/components/toggle/toggle.js +1 -1
  77. package/dist/components/toggle-button/toggle-button.js +8 -22
  78. package/dist/components/tooltip/tooltip.js +4 -4
  79. package/dist/{context-BAcFg5GO.js → context-4oSz1ItD.js} +10 -16
  80. package/dist/{default-i18n-Bk1GxDHz.js → default-i18n-BqwLkgZv.js} +21 -22
  81. package/dist/{filterDOMProps-DG2RfOUr.js → filterDOMProps-EDDcM64A.js} +1 -3
  82. package/dist/{focusSafely-B0hyd-S4.js → focusSafely-BS4dllCW.js} +85 -143
  83. package/dist/icons/generic-color-swatch.js +105 -13
  84. package/dist/icons/icons.js +31010 -3447
  85. package/dist/icons/jsx-svg.js +591 -953
  86. package/dist/{index-BDk0TPWz.js → index-CAPcSs9K.js} +1504 -2087
  87. package/dist/{index-a301f526.esm-BzTuHLdr.js → index-a301f526.esm-ByOfDxiG.js} +111 -183
  88. package/dist/index.js +3 -3
  89. package/dist/{intlStrings-Ctkp0HDc.js → intlStrings-Dxaeitoh.js} +35 -60
  90. package/dist/{isScrollable-PcyglExV.js → isScrollable-Dh9D9IOd.js} +1 -2
  91. package/dist/lite-DVmmD_-j.js +7 -0
  92. package/dist/{multi-select-components-nORKdJ-2.js → multi-select-components-7vKCF8dG.js} +3 -3
  93. package/dist/{number-rWqELA8W.js → number-CHmNj-oR.js} +3 -6
  94. package/dist/{popover-o2Q28Ljn.js → popover-Dk2o4S7K.js} +70 -112
  95. package/dist/{react-select-async.esm-CLj9uZTq.js → react-select-async.esm-5zW9Dv9E.js} +7 -11
  96. package/dist/{react-select.esm-3tyTZmrx.js → react-select.esm-Bi6uzjbT.js} +3 -3
  97. package/dist/{textSelection-BRZdHY-4.js → textSelection-exP_9srp.js} +5 -9
  98. package/dist/{tooltip-T6H9uF-Z.js → tooltip-BRQ4tvZL.js} +64 -111
  99. package/dist/{useButton-D-xACzEY.js → useButton-DbjDV_33.js} +19 -22
  100. package/dist/{useEvent-XlYPKgwX.js → useEvent-zvxfEnmK.js} +2 -3
  101. package/dist/{useFocusRing-CRx_hYC4.js → useFocusRing-SPRI0-SN.js} +1 -1
  102. package/dist/{useFocusable-CHfpEdlE.js → useFocusable-CLmhO94g.js} +5 -8
  103. package/dist/{useFormReset-aHn6-wRk.js → useFormReset-BVWgcyGO.js} +2 -3
  104. package/dist/{useFormValidationState-CdYmOaXI.js → useFormValidationState-CthG9Fbc.js} +20 -38
  105. package/dist/{useHasTabbableChild-domoFB7A.js → useHasTabbableChild--gkWUICh.js} +2 -2
  106. package/dist/{useLabel-DVhXVhtH.js → useLabel-g836T8kL.js} +3 -4
  107. package/dist/{useLabels-C7E5SkOi.js → useLabels-CfOtyOe2.js} +3 -5
  108. package/dist/{useListData-BelKu4kx.js → useListData-BpYQj7kK.js} +18 -32
  109. package/dist/{useListState-BRsq7O1C.js → useListState-DnWZa__1.js} +6 -12
  110. package/dist/{useLocalizedStringFormatter-WsEL47qR.js → useLocalizedStringFormatter-BQCMno9k.js} +12 -21
  111. package/dist/{useNumberFieldState-ZH2Qyyxh.js → useNumberFieldState-BegO5X6F.js} +75 -132
  112. package/dist/{useNumberFormatter-mhdYLxWQ.js → useNumberFormatter-DhOGEsEK.js} +2 -2
  113. package/dist/{usePress-B42RawCH.js → usePress-CScNeV3V.js} +92 -175
  114. package/dist/{useToggle-CExfZM8x.js → useToggle-6LnpaJ7-.js} +6 -7
  115. package/dist/{useToggleState-DghG5ImG.js → useToggleState-Cymkpac8.js} +3 -5
  116. package/dist/utilities/array-helpers.js +1 -1
  117. package/dist/utilities/index.js +1 -1
  118. package/dist/utilities/text-helpers.js +20 -20
  119. package/dist/{utils-DIBzm1e4.js → utils-Dc35LwuT.js} +49 -90
  120. package/package.json +96 -90
  121. package/dist/lite-pbIeT7tm.js +0 -8
@@ -2,13 +2,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Fragment } from "react";
3
3
  import { icons } from "../../icons/icons.js";
4
4
  import { BaseControl } from "../base-control/base-control.js";
5
- import { a as ButtonGroup } from "../../button-idVI4jmd.js";
5
+ import { a as ButtonGroup } from "../../button-CD8Q1eok.js";
6
6
  import { Menu, MenuSeparator, MenuItem } from "../menu/menu.js";
7
7
  import { RadioButtonGroup, RadioButton } from "../radio/radio.js";
8
8
  import { RichLabel } from "../rich-label/rich-label.js";
9
9
  import { ToggleButton } from "../toggle-button/toggle-button.js";
10
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
11
- import { c as clsx } from "../../lite-pbIeT7tm.js";
10
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
12
11
  /**
13
12
  * A component that allows the user to select an option from a list of options.
14
13
  *
@@ -56,7 +55,7 @@ import { c as clsx } from "../../lite-pbIeT7tm.js";
56
55
  * @preserve
57
56
  */
58
57
  const OptionSelect = (props) => {
59
- var _a, _b;
58
+ var _a;
60
59
  const {
61
60
  icon,
62
61
  label,
@@ -106,42 +105,33 @@ const OptionSelect = (props) => {
106
105
  vertical,
107
106
  "aria-label": typeof label !== "undefined" ? null : props == null ? void 0 : props["aria-label"],
108
107
  ...wrapperProps,
109
- children: options.map(
110
- ({
111
- label: optionLabel,
112
- value: optionValue,
113
- icon: optionIcon,
114
- tooltip: optionTooltip,
115
- ariaLabel: optionAriaLabel,
116
- subtitle: optionSubtitle
117
- }) => {
118
- var _a2;
119
- return /* @__PURE__ */ jsxs(
120
- ToggleButton,
121
- {
122
- selected: optionValue === value,
123
- onChange: () => onChange(optionValue),
124
- disabled,
125
- className: itemClassName,
126
- icon: !noItemIcon && (typeof optionIcon === "string" ? (_a2 = icons) == null ? void 0 : _a2[optionIcon] : optionIcon),
127
- tooltip: optionTooltip ?? optionAriaLabel ?? (noItemLabel && optionLabel),
128
- "aria-label": optionAriaLabel ?? optionLabel ?? optionTooltip,
129
- ...itemProps,
130
- children: [
131
- !noItemLabel && !optionSubtitle && optionLabel,
132
- !noItemLabel && optionSubtitle && /* @__PURE__ */ jsx(
133
- RichLabel,
134
- {
135
- label: optionLabel,
136
- subtitle: optionSubtitle
137
- }
138
- )
139
- ]
140
- },
141
- optionValue
142
- );
143
- }
144
- )
108
+ children: options.map(({ label: optionLabel, value: optionValue, icon: optionIcon, tooltip: optionTooltip, ariaLabel: optionAriaLabel, subtitle: optionSubtitle }) => {
109
+ var _a2;
110
+ return /* @__PURE__ */ jsxs(
111
+ ToggleButton,
112
+ {
113
+ selected: optionValue === value,
114
+ onChange: () => onChange(optionValue),
115
+ disabled,
116
+ className: itemClassName,
117
+ icon: !noItemIcon && (typeof optionIcon === "string" ? (_a2 = icons) == null ? void 0 : _a2[optionIcon] : optionIcon),
118
+ tooltip: optionTooltip ?? optionAriaLabel ?? (noItemLabel && optionLabel),
119
+ "aria-label": optionAriaLabel ?? optionLabel ?? optionTooltip,
120
+ ...itemProps,
121
+ children: [
122
+ !noItemLabel && !optionSubtitle && optionLabel,
123
+ !noItemLabel && optionSubtitle && /* @__PURE__ */ jsx(
124
+ RichLabel,
125
+ {
126
+ label: optionLabel,
127
+ subtitle: optionSubtitle
128
+ }
129
+ )
130
+ ]
131
+ },
132
+ optionValue
133
+ );
134
+ })
145
135
  }
146
136
  ),
147
137
  (type === "radios" || type === "radiosSegmented") && /* @__PURE__ */ jsx(
@@ -153,38 +143,31 @@ const OptionSelect = (props) => {
153
143
  "aria-label": typeof label !== "undefined" ? null : props == null ? void 0 : props["aria-label"],
154
144
  value,
155
145
  ...wrapperProps,
156
- children: options.map(
157
- ({
158
- label: optionLabel,
159
- value: optionValue,
160
- icon: optionIcon,
161
- ariaLabel: optionAriaLabel,
162
- subtitle: optionSubtitle
163
- }) => {
164
- var _a2;
165
- return /* @__PURE__ */ jsx(
166
- RadioButton,
167
- {
168
- value: optionValue,
169
- disabled,
170
- className: itemClassName,
171
- subtitle: !noItemLabel && optionSubtitle,
172
- icon: !noItemIcon && (typeof optionIcon === "string" ? (_a2 = icons) == null ? void 0 : _a2[optionIcon] : optionIcon),
173
- "aria-label": optionAriaLabel ?? optionLabel,
174
- label: !noItemLabel && optionLabel,
175
- ...itemProps
176
- },
177
- optionValue
178
- );
179
- }
180
- )
146
+ children: options.map(({ label: optionLabel, value: optionValue, icon: optionIcon, ariaLabel: optionAriaLabel, subtitle: optionSubtitle }) => {
147
+ var _a2;
148
+ return /* @__PURE__ */ jsx(
149
+ RadioButton,
150
+ {
151
+ value: optionValue,
152
+ disabled,
153
+ className: itemClassName,
154
+ subtitle: !noItemLabel && optionSubtitle,
155
+ icon: !noItemIcon && (typeof optionIcon === "string" ? (_a2 = icons) == null ? void 0 : _a2[optionIcon] : optionIcon),
156
+ "aria-label": optionAriaLabel ?? optionLabel,
157
+ label: !noItemLabel && optionLabel,
158
+ ...itemProps
159
+ },
160
+ optionValue
161
+ );
162
+ })
181
163
  }
182
164
  ),
183
165
  type === "menu" && /* @__PURE__ */ jsxs(
184
166
  Menu,
185
167
  {
186
168
  triggerLabel: !noTriggerLabel && (currentItem ? currentItem == null ? void 0 : currentItem.label : notSetLabel),
187
- triggerIcon: !noTriggerIcon && (currentItem ? typeof (currentItem == null ? void 0 : currentItem.icon) === "string" ? (_a = icons) == null ? void 0 : _a[currentItem == null ? void 0 : currentItem.icon] : currentItem == null ? void 0 : currentItem.icon : (noTriggerLabel || noTriggerIcon) && notSetLabel),
169
+ triggerIcon: !noTriggerIcon && // eslint-disable-next-line no-nested-ternary
170
+ (currentItem ? typeof (currentItem == null ? void 0 : currentItem.icon) === "string" ? (_a = icons) == null ? void 0 : _a[currentItem == null ? void 0 : currentItem.icon] : currentItem == null ? void 0 : currentItem.icon : (noTriggerLabel || noTriggerIcon) && notSetLabel),
188
171
  tooltip: noTriggerLabel ? /* @__PURE__ */ jsx(
189
172
  RichLabel,
190
173
  {
@@ -195,8 +178,7 @@ const OptionSelect = (props) => {
195
178
  ) : tooltip,
196
179
  triggerProps: {
197
180
  ...wrapperProps == null ? void 0 : wrapperProps.triggerProps,
198
- "aria-label": typeof label !== "undefined" ? null : props == null ? void 0 : props["aria-label"],
199
- className: clsx((_b = wrapperProps == null ? void 0 : wrapperProps.triggerProps) == null ? void 0 : _b.className, "es-uic-mr-auto")
181
+ "aria-label": typeof label !== "undefined" ? null : props == null ? void 0 : props["aria-label"]
200
182
  },
201
183
  keepOpen: true,
202
184
  ...wrapperProps,
@@ -213,7 +195,7 @@ const OptionSelect = (props) => {
213
195
  sectionTitle: optionSectionTitle,
214
196
  shortcut: optionShortcut
215
197
  }) => {
216
- var _a2, _b2;
198
+ var _a2, _b;
217
199
  return /* @__PURE__ */ jsxs(Fragment, { children: [
218
200
  (optionHasSeparator === true || optionHasSeparator === "above") && /* @__PURE__ */ jsx(MenuSeparator, {}),
219
201
  optionSectionTitle && /* @__PURE__ */ jsx(MenuItem, { disabled: true, children: optionSectionTitle }),
@@ -224,7 +206,7 @@ const OptionSelect = (props) => {
224
206
  disabled,
225
207
  className: itemClassName,
226
208
  icon: !noItemIcon && (typeof optionIcon === "string" ? (_a2 = icons) == null ? void 0 : _a2[optionIcon] : optionIcon),
227
- endIcon: !noItemIcon && (typeof optionEndIcon === "string" ? (_b2 = icons) == null ? void 0 : _b2[optionEndIcon] : optionEndIcon),
209
+ endIcon: !noItemIcon && (typeof optionEndIcon === "string" ? (_b = icons) == null ? void 0 : _b[optionEndIcon] : optionEndIcon),
228
210
  "aria-label": optionAriaLabel ?? optionLabel,
229
211
  onClick: () => onChange(optionValue),
230
212
  shortcut: optionShortcut,
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { c as clsx } from "../../lite-pbIeT7tm.js";
2
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
3
3
  import { RichLabel } from "../rich-label/rich-label.js";
4
4
  /**
5
5
  * Component that provides a container panel for options, with an optional title.
@@ -35,7 +35,7 @@ const OptionsPanel = (props) => {
35
35
  className: "es-uic-mb-1 es-uic-text-[0.875rem] es-uic-tracking-[-0.01em] !es-uic-text-gray-500"
36
36
  }
37
37
  ),
38
- /* @__PURE__ */ jsx("div", { className: "es-uic-bg-white es-uic-divide-y es-uic-rounded-lg es-uic-divide-gray-200 es-uic-shadow es-uic-border es-uic-border-gray-200", children }),
38
+ /* @__PURE__ */ jsx("div", { className: "es-uic-divide-y es-uic-divide-gray-200 es-uic-rounded-lg es-uic-border es-uic-border-gray-200 es-uic-bg-white es-uic-shadow", children }),
39
39
  help && /* @__PURE__ */ jsx("span", { className: "text-sm es-uic-mt-1.5 es-uic-block es-uic-text-gray-400", children: help })
40
40
  ] });
41
41
  };
@@ -44,7 +44,7 @@ const OptionsPanelSection = ({ children, className }) => {
44
44
  "div",
45
45
  {
46
46
  className: clsx(
47
- "es-uic-space-y-2.5 first:es-uic-rounded-t-lg last:rounded-b-lg only:es-uic-rounded-lg es-uic-px-3 es-uic-py-4 first:es-uic-pt-3.5 last:es-uic-pb-3.5",
47
+ "last:rounded-b-lg es-uic-space-y-2.5 es-uic-px-3 es-uic-py-4 first:es-uic-rounded-t-lg first:es-uic-pt-3.5 last:es-uic-pb-3.5 only:es-uic-rounded-lg",
48
48
  className
49
49
  ),
50
50
  children
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
2
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
3
3
  import { icons } from "../../icons/icons.js";
4
4
  import { RichLabel } from "../rich-label/rich-label.js";
5
- import { c as clsx } from "../../lite-pbIeT7tm.js";
5
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
6
6
  /**
7
7
  * A simple file placeholder.
8
8
  *
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { c as clsx } from "../../lite-pbIeT7tm.js";
2
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
3
3
  import { icons } from "../../icons/icons.js";
4
4
  /**
5
5
  * A simple image placeholder, with an empty state.
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { c as clsx } from "../../lite-pbIeT7tm.js";
2
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
3
3
  import { icons } from "../../icons/icons.js";
4
4
  /**
5
5
  * A simple media placeholder, with an empty state.
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import { P, T } from "../../popover-o2Q28Ljn.js";
3
- import "../../lite-pbIeT7tm.js";
4
- import "../../default-i18n-Bk1GxDHz.js";
5
- import "../../button-idVI4jmd.js";
2
+ import { P, T } from "../../popover-Dk2o4S7K.js";
3
+ import "../../lite-DVmmD_-j.js";
4
+ import "../../default-i18n-BqwLkgZv.js";
5
+ import "../../button-CD8Q1eok.js";
6
6
  export {
7
7
  P as Popover,
8
8
  T as TriggeredPopover
@@ -1,21 +1,21 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-9x5iLJ-Y.js";
3
- import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-DIBzm1e4.js";
4
- import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-ILxgMZy5.js";
2
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Bg5O81Wb.js";
3
+ import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-Dc35LwuT.js";
4
+ import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-J1-YPbi6.js";
5
5
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
6
- import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-Cyxp9ewv.js";
7
- import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-DG2RfOUr.js";
6
+ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJduR.js";
7
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
8
8
  import React__default, { useMemo, useState, forwardRef, createContext, cloneElement } from "react";
9
- import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-CdYmOaXI.js";
10
- import { d as $9ab94262bd0047c7$export$420e68273165f4ec, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-B0hyd-S4.js";
11
- import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-B9b0VMib.js";
12
- import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BAcFg5GO.js";
13
- import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-aHn6-wRk.js";
14
- import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "../../useFocusable-CHfpEdlE.js";
15
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-B42RawCH.js";
16
- import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CRx_hYC4.js";
17
- import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-BPJVSUyp.js";
18
- import { c as clsx } from "../../lite-pbIeT7tm.js";
9
+ import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-CthG9Fbc.js";
10
+ import { d as $9ab94262bd0047c7$export$420e68273165f4ec, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-BS4dllCW.js";
11
+ import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-Bw-IatMO.js";
12
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-4oSz1ItD.js";
13
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-BVWgcyGO.js";
14
+ import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "../../useFocusable-CLmhO94g.js";
15
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-CScNeV3V.js";
16
+ import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-SPRI0-SN.js";
17
+ import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-Di1zXprL.js";
18
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
19
19
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
20
20
  import { RichLabel } from "../rich-label/rich-label.js";
21
21
  import { BaseControl } from "../base-control/base-control.js";
@@ -25,8 +25,7 @@ function $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {
25
25
  const isDisabled = props.isDisabled || state.isDisabled;
26
26
  let hasChildren = children != null;
27
27
  let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;
28
- if (!hasChildren && !hasAriaLabel)
29
- console.warn("If you do not provide children, you must specify an aria-label for accessibility");
28
+ if (!hasChildren && !hasAriaLabel) console.warn("If you do not provide children, you must specify an aria-label for accessibility");
30
29
  let checked = state.selectedValue === value;
31
30
  let onChange = (e) => {
32
31
  e.stopPropagation();
@@ -50,12 +49,9 @@ function $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {
50
49
  });
51
50
  let tabIndex = -1;
52
51
  if (state.selectedValue != null) {
53
- if (state.selectedValue === value)
54
- tabIndex = 0;
55
- } else if (state.lastFocusedValue === value || state.lastFocusedValue == null)
56
- tabIndex = 0;
57
- if (isDisabled)
58
- tabIndex = void 0;
52
+ if (state.selectedValue === value) tabIndex = 0;
53
+ } else if (state.lastFocusedValue === value || state.lastFocusedValue == null) tabIndex = 0;
54
+ if (isDisabled) tabIndex = void 0;
59
55
  let { name, descriptionId, errorMessageId, validationBehavior } = $884aeceb3d67f00f$export$37b65e5b5444d35c.get(state);
60
56
  $99facab73266f662$export$5add1d006293d136(ref, state.selectedValue, state.setSelectedValue);
61
57
  $e93e671b31057976$export$b8473d3665f3a75a({
@@ -105,8 +101,7 @@ function $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {
105
101
  onBlurWithin(e) {
106
102
  var _props_onBlur;
107
103
  (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);
108
- if (!state.selectedValue)
109
- state.setLastFocusedValue(null);
104
+ if (!state.selectedValue) state.setLastFocusedValue(null);
110
105
  },
111
106
  onFocusWithin: props.onFocus,
112
107
  onFocusWithinChange: props.onFocusChange
@@ -115,16 +110,12 @@ function $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {
115
110
  let nextDir;
116
111
  switch (e.key) {
117
112
  case "ArrowRight":
118
- if (direction === "rtl" && orientation !== "vertical")
119
- nextDir = "prev";
120
- else
121
- nextDir = "next";
113
+ if (direction === "rtl" && orientation !== "vertical") nextDir = "prev";
114
+ else nextDir = "next";
122
115
  break;
123
116
  case "ArrowLeft":
124
- if (direction === "rtl" && orientation !== "vertical")
125
- nextDir = "next";
126
- else
127
- nextDir = "prev";
117
+ if (direction === "rtl" && orientation !== "vertical") nextDir = "next";
118
+ else nextDir = "prev";
128
119
  break;
129
120
  case "ArrowDown":
130
121
  nextDir = "next";
@@ -398,11 +389,7 @@ const RadioButton = (props) => {
398
389
  $b6c3ddc6086f204d$export$d7b12c4107be0d61,
399
390
  {
400
391
  isDisabled: disabled,
401
- className: clsx(
402
- "es-uic-flex es-uic-items-center es-uic-gap-1.5 es-uic-text-sm",
403
- styleClassName[design],
404
- className
405
- ),
392
+ className: clsx("es-uic-flex es-uic-items-center es-uic-gap-1.5 es-uic-text-sm", styleClassName[design], className),
406
393
  ...rest,
407
394
  children: ({ isSelected, isFocusVisible }) => /* @__PURE__ */ jsxs(Fragment, { children: [
408
395
  alignEnd && (label || subtitle || icon) && /* @__PURE__ */ jsx(
@@ -1,11 +1,11 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { $ as $bc237834342dbd75$export$48513f6b9f8ce62d } from "../../Checkbox-BN0TEda-.js";
3
- import { b as $72e60046c03fbe42$export$54fe942636b6416d, a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-CzpWxJsS.js";
4
- import { B as Button } from "../../button-idVI4jmd.js";
2
+ import { $ as $bc237834342dbd75$export$48513f6b9f8ce62d } from "../../Checkbox-Cv3pZDHg.js";
3
+ import { b as $72e60046c03fbe42$export$54fe942636b6416d, a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-CEzzyr-l.js";
4
+ import { B as Button } from "../../button-CD8Q1eok.js";
5
5
  import { icons } from "../../icons/icons.js";
6
- import { c as clsx } from "../../lite-pbIeT7tm.js";
6
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
7
7
  import { Expandable } from "../expandable/expandable.js";
8
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
8
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
9
9
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
10
10
  import { useRef } from "react";
11
11
  import { useCellEditMode } from "../../hooks/use-cell-edit-mode.js";
@@ -29,18 +29,7 @@ import { useCellEditMode } from "../../hooks/use-cell-edit-mode.js";
29
29
  * @preserve
30
30
  */
31
31
  const RepeaterItem = (props) => {
32
- const {
33
- children,
34
- icon,
35
- label,
36
- subtitle,
37
- "aria-label": ariaLabel,
38
- className,
39
- actions,
40
- textValue,
41
- expandDisabled,
42
- ...rest
43
- } = props;
32
+ const { children, icon, label, subtitle, "aria-label": ariaLabel, className, actions, textValue, expandDisabled, ...rest } = props;
44
33
  let a11yLabel = textValue;
45
34
  if ((label == null ? void 0 : label.length) > 0) {
46
35
  a11yLabel = label;
@@ -1,16 +1,16 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { b as $72e60046c03fbe42$export$54fe942636b6416d, $ as $72e60046c03fbe42$export$a7bfbda1311ca015 } from "../../GridList-CzpWxJsS.js";
3
- import { $ as $d8f176866e6dc039$export$2cfc5be7a55829f6, a as $d8f176866e6dc039$export$62ed72bc21f6b8a6 } from "../../ListBox-D3Vr4vvC.js";
4
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
5
- import { B as Button, a as ButtonGroup } from "../../button-idVI4jmd.js";
2
+ import { b as $72e60046c03fbe42$export$54fe942636b6416d, $ as $72e60046c03fbe42$export$a7bfbda1311ca015 } from "../../GridList-CEzzyr-l.js";
3
+ import { $ as $d8f176866e6dc039$export$2cfc5be7a55829f6, a as $d8f176866e6dc039$export$62ed72bc21f6b8a6 } from "../../ListBox-CCWXTj0t.js";
4
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
5
+ import { B as Button, a as ButtonGroup } from "../../button-CD8Q1eok.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { useId, useState } from "react";
8
8
  import { BaseControl } from "../base-control/base-control.js";
9
9
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
10
10
  import { ToggleButton } from "../toggle-button/toggle-button.js";
11
11
  import { arrayMoveMultiple } from "../../utilities/array-helpers.js";
12
- import { c as clsx } from "../../lite-pbIeT7tm.js";
13
- import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "../../useListState-BRsq7O1C.js";
12
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
13
+ import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "../../useListState-DnWZa__1.js";
14
14
  /**
15
15
  * A component that allows re-ordering a list of items with additional sub-options.
16
16
  *
@@ -137,7 +137,6 @@ const Repeater = (props) => {
137
137
  isDisabled: selectable || !canReorder,
138
138
  getItems: (ids) => [...ids].map((id) => ({ "text/plain": list.getItem(id).id })),
139
139
  onReorder(e) {
140
- console.log(e);
141
140
  if (e.target.dropPosition === "before") {
142
141
  list.move(e.target.key, e.keys);
143
142
  } else if (e.target.dropPosition === "after") {
@@ -1,12 +1,12 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { D as DecorativeTooltip } from "../../tooltip-T6H9uF-Z.js";
4
- import { c as clsx } from "../../lite-pbIeT7tm.js";
5
- import { _ as __, s as sprintf } from "../../default-i18n-Bk1GxDHz.js";
3
+ import { D as DecorativeTooltip } from "../../tooltip-BRQ4tvZL.js";
4
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
5
+ import { _ as __, s as sprintf } from "../../default-i18n-BqwLkgZv.js";
6
6
  import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
7
7
  import { upperFirst } from "../../utilities/es-dash.js";
8
8
  import { icons } from "../../icons/icons.js";
9
- import { B as Button } from "../../button-idVI4jmd.js";
9
+ import { B as Button } from "../../button-CD8Q1eok.js";
10
10
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
11
11
  import { ToggleButton } from "../toggle-button/toggle-button.js";
12
12
  import { BaseControl } from "../base-control/base-control.js";
@@ -44,6 +44,7 @@ import { BaseControl } from "../base-control/base-control.js";
44
44
  * @param {Object<string, number>} [props.breakpointData] - Breakpoints to use. `{ [breakpoint: string]: number }`.
45
45
  * @param {string[]} [props.breakpoints] - Breakpoints to use. `{ [breakpoint: string]: number }`.
46
46
  * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
47
+ * @param {'start' | 'center' | 'end' | 'stretch'} [props.innerContentAlign='start'] - Determines inner content alignment
47
48
  *
48
49
  * @returns {JSX.Element} The ResponsiveLegacy component.
49
50
  *
@@ -91,7 +92,8 @@ const ResponsiveLegacy = (props) => {
91
92
  inline,
92
93
  breakpointData,
93
94
  breakpoints: rawBreakpoints = Object.keys(breakpointData).toReversed(),
94
- hidden
95
+ hidden,
96
+ innerContentAlign = "start"
95
97
  } = props;
96
98
  const inheritValue = allowUndefined ? void 0 : rawInheritValue;
97
99
  const [detailsVisible, setDetailsVisible] = useState(false);
@@ -115,10 +117,7 @@ const ResponsiveLegacy = (props) => {
115
117
  /* @__PURE__ */ jsx("span", { className: "es-uic-block es-uic-text-balance es-uic-font-semibold es-uic-tabular-nums", children: __("Default", "eightshift-ui-components") }),
116
118
  /* @__PURE__ */ jsxs("span", { className: "es-uic-block es-uic-text-balance es-uic-tabular-nums", children: [
117
119
  !globalOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
118
- globalOverride && sprintf(
119
- __("Applied when the browser width is %dpx or wider.", "eightshift-ui-components"),
120
- breakpointData[globalOverride] + 1
121
- )
120
+ globalOverride && sprintf(__("Applied when the browser width is %dpx or wider.", "eightshift-ui-components"), breakpointData[globalOverride] + 1)
122
121
  ] }),
123
122
  globalOverride && /* @__PURE__ */ jsx("div", { className: "es-uic-mx-auto es-uic-mt-2", children: /* @__PURE__ */ jsx(
124
123
  BreakpointPreview,
@@ -186,6 +185,10 @@ const ResponsiveLegacy = (props) => {
186
185
  {
187
186
  className: clsx(
188
187
  "es-uic-grid es-uic-items-center es-uic-gap-x-2 es-uic-transition-[grid-template-columns,_margin-block-end] es-uic-duration-150",
188
+ innerContentAlign === "start" && "es-uic-justify-items-start",
189
+ innerContentAlign === "center" && "es-uic-justify-items-center",
190
+ innerContentAlign === "end" && "es-uic-justify-items-end",
191
+ innerContentAlign === "stretch" && "es-uic-justify-items-stretch",
189
192
  detailsVisible ? "es-uic-mb-2 es-uic-grid-cols-[minmax(0,_1.75rem),_minmax(0,_1fr),_minmax(0,_2.25rem)]" : "es-uic-grid-cols-[minmax(0,_0rem),_minmax(0,_1fr),_minmax(0,_2.25rem)]"
190
193
  ),
191
194
  children: [
@@ -203,7 +206,13 @@ const ResponsiveLegacy = (props) => {
203
206
  inline && /* @__PURE__ */ jsxs(
204
207
  AnimatedVisibility,
205
208
  {
206
- className: "es-uic-mb-2 es-uic-grid es-uic-grid-cols-[minmax(0,_auto),_minmax(0,_1fr),_minmax(0,_2.25rem)] es-uic-items-center es-uic-gap-x-2",
209
+ className: clsx(
210
+ "es-uic-mb-2 es-uic-grid es-uic-grid-cols-[minmax(0,_auto),_minmax(0,_1fr),_minmax(0,_2.25rem)] es-uic-items-center es-uic-gap-x-2",
211
+ innerContentAlign === "start" && "es-uic-justify-items-start",
212
+ innerContentAlign === "center" && "es-uic-justify-items-center",
213
+ innerContentAlign === "end" && "es-uic-justify-items-end",
214
+ innerContentAlign === "stretch" && "es-uic-justify-items-stretch"
215
+ ),
207
216
  visible: detailsVisible,
208
217
  children: [
209
218
  /* @__PURE__ */ jsx(DefaultTooltip, {}),
@@ -231,7 +240,13 @@ const ResponsiveLegacy = (props) => {
231
240
  return /* @__PURE__ */ jsxs(
232
241
  "div",
233
242
  {
234
- className: "es-uic-grid es-uic-grid-cols-[minmax(0,_auto),_minmax(0,_1fr),_minmax(0,_2.25rem)] es-uic-items-center es-uic-gap-x-2",
243
+ className: clsx(
244
+ "es-uic-grid es-uic-grid-cols-[minmax(0,_auto),_minmax(0,_1fr),_minmax(0,_2.25rem)] es-uic-items-center es-uic-gap-x-2",
245
+ innerContentAlign === "start" && "es-uic-justify-items-start",
246
+ innerContentAlign === "center" && "es-uic-justify-items-center",
247
+ innerContentAlign === "end" && "es-uic-justify-items-end",
248
+ innerContentAlign === "stretch" && "es-uic-justify-items-stretch"
249
+ ),
235
250
  children: [
236
251
  /* @__PURE__ */ jsx(
237
252
  DecorativeTooltip,
@@ -243,10 +258,7 @@ const ResponsiveLegacy = (props) => {
243
258
  text: /* @__PURE__ */ jsxs("div", { className: "es-uic-max-w-96 es-uic-p-1", children: [
244
259
  /* @__PURE__ */ jsx("span", { className: "es-uic-block es-uic-font-semibold", children: upperFirst(breakpoint) }),
245
260
  /* @__PURE__ */ jsxs("span", { className: "es-uic-block es-uic-text-balance es-uic-tabular-nums", children: [
246
- aboveOverride && aboveOverride === breakpoint && isOverrideSet && sprintf(
247
- __("Applied when the browser width is %dpx or less.", "eightshift-ui-components"),
248
- breakpointData[breakpoint]
249
- ),
261
+ aboveOverride && aboveOverride === breakpoint && isOverrideSet && sprintf(__("Applied when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[breakpoint]),
250
262
  aboveOverride && aboveOverride !== breakpoint && isOverrideSet && sprintf(
251
263
  __("Applied when the browser width is between %dpx and %dpx.", "eightshift-ui-components"),
252
264
  breakpointData[aboveOverride] + 1,