@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
@@ -1,14 +1,14 @@
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
9
  import { Menu, MenuItem, MenuSeparator, SubMenuItem } from "../menu/menu.js";
10
10
  import { ResponsivePreview } from "../responsive-preview/responsive-preview.js";
11
- import { a as ButtonGroup, B as Button } from "../../button-idVI4jmd.js";
11
+ import { a as ButtonGroup, B as Button } from "../../button-CD8Q1eok.js";
12
12
  import { RichLabel } from "../rich-label/rich-label.js";
13
13
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
14
14
  import { ToggleButton } from "../toggle-button/toggle-button.js";
@@ -41,6 +41,7 @@ import { BaseControl } from "../base-control/base-control.js";
41
41
  * @param {boolean} [props.noModeSelect] - If `true`, the mode selection (desktop-first/mobile-first) is hidden.
42
42
  * @param {boolean} [props.inline] - If `true`, the default breakpoint is shown inline with the label. In the expanded state, all breakpoints are shown below the label.
43
43
  * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
44
+ * @param {'start' | 'center' | 'end' | 'stretch'} [props.innerContentAlign='start'] - Determines inner content alignment
44
45
  *
45
46
  * @returns {JSX.Element} The Responsive component.
46
47
  *
@@ -86,7 +87,8 @@ const Responsive = (props) => {
86
87
  noModeSelect,
87
88
  inline,
88
89
  children,
89
- hidden
90
+ hidden,
91
+ innerContentAlign = "start"
90
92
  } = props;
91
93
  const breakpoints = rawBreakpoints.slice(1);
92
94
  const desktopFirstBreakpoints = (rawDesktopFirstBreakpoints ?? rawBreakpoints.slice(0, -1)).map(
@@ -115,14 +117,8 @@ const Responsive = (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
  !firstMobileFirstOverride && !lastDesktopFirstOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
118
- firstMobileFirstOverride && !isDesktopFirst && sprintf(
119
- __("Applies when the browser width is %dpx or narrower.", "eightshift-ui-components"),
120
- breakpointData[firstMobileFirstOverride] - 1
121
- ),
122
- lastDesktopFirstOverride && isDesktopFirst && sprintf(
123
- __("Applies when the browser width is %dpx or more.", "eightshift-ui-components"),
124
- breakpointData[lastDesktopFirstOverride.replace("max-", "")]
125
- )
120
+ firstMobileFirstOverride && !isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or narrower.", "eightshift-ui-components"), breakpointData[firstMobileFirstOverride] - 1),
121
+ lastDesktopFirstOverride && isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[lastDesktopFirstOverride.replace("max-", "")])
126
122
  ] }),
127
123
  /* @__PURE__ */ jsxs("div", { className: "es-uic-mx-auto", children: [
128
124
  firstMobileFirstOverride && !isDesktopFirst && /* @__PURE__ */ jsx(
@@ -263,24 +259,18 @@ const Responsive = (props) => {
263
259
  ),
264
260
  /* @__PURE__ */ jsx(MenuSeparator, {})
265
261
  ] }),
266
- Object.keys(value).some((key) => !(key == null ? void 0 : key.startsWith("_")) && typeof (value == null ? void 0 : value[key]) !== "undefined") && /* @__PURE__ */ jsx(
267
- SubMenuItem,
262
+ Object.keys(value).some((key) => !(key == null ? void 0 : key.startsWith("_")) && typeof (value == null ? void 0 : value[key]) !== "undefined") && /* @__PURE__ */ jsx(SubMenuItem, { trigger: /* @__PURE__ */ jsx(MenuItem, { icon: icons.previewResponsive, children: __("Responsive preview", "eightshift-ui-components") }), children: /* @__PURE__ */ jsx(MenuItem, { disabled: true, children: /* @__PURE__ */ jsx(
263
+ ResponsivePreview,
268
264
  {
269
- trigger: /* @__PURE__ */ jsx(MenuItem, { icon: icons.previewResponsive, children: __("Responsive preview", "eightshift-ui-components") }),
270
- children: /* @__PURE__ */ jsx(MenuItem, { disabled: true, children: /* @__PURE__ */ jsx(
271
- ResponsivePreview,
272
- {
273
- value,
274
- isDesktopFirst,
275
- breakpoints,
276
- desktopFirstBreakpoints,
277
- options,
278
- breakpointData,
279
- breakpointUiData
280
- }
281
- ) })
265
+ value,
266
+ isDesktopFirst,
267
+ breakpoints,
268
+ desktopFirstBreakpoints,
269
+ options,
270
+ breakpointData,
271
+ breakpointUiData
282
272
  }
283
- ),
273
+ ) }) }),
284
274
  Object.keys(value).some((key) => !(key == null ? void 0 : key.startsWith("_")) && typeof (value == null ? void 0 : value[key]) !== "undefined") && /* @__PURE__ */ jsx(MenuSeparator, {}),
285
275
  /* @__PURE__ */ jsx(
286
276
  MenuItem,
@@ -307,6 +297,10 @@ const Responsive = (props) => {
307
297
  {
308
298
  className: clsx(
309
299
  "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",
300
+ innerContentAlign === "start" && "es-uic-justify-items-start",
301
+ innerContentAlign === "center" && "es-uic-justify-items-center",
302
+ innerContentAlign === "end" && "es-uic-justify-items-end",
303
+ innerContentAlign === "stretch" && "es-uic-justify-items-stretch",
310
304
  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)]"
311
305
  ),
312
306
  children: [
@@ -328,7 +322,13 @@ const Responsive = (props) => {
328
322
  !isDesktopFirst && inline && /* @__PURE__ */ jsxs(
329
323
  AnimatedVisibility,
330
324
  {
331
- className: "es-uic-mb-2 es-uic-grid es-uic-grid-cols-[minmax(0,_1.75rem),_minmax(0,_1fr),_minmax(0,_2.25rem)] es-uic-items-center es-uic-gap-x-2",
325
+ className: clsx(
326
+ "es-uic-mb-2 es-uic-grid es-uic-grid-cols-[minmax(0,_1.75rem),_minmax(0,_1fr),_minmax(0,_2.25rem)] es-uic-items-center es-uic-gap-x-2",
327
+ innerContentAlign === "start" && "es-uic-justify-items-start",
328
+ innerContentAlign === "center" && "es-uic-justify-items-center",
329
+ innerContentAlign === "end" && "es-uic-justify-items-end",
330
+ innerContentAlign === "stretch" && "es-uic-justify-items-stretch"
331
+ ),
332
332
  visible: detailsVisible,
333
333
  children: [
334
334
  /* @__PURE__ */ jsx(DefaultTooltip, {}),
@@ -361,7 +361,13 @@ const Responsive = (props) => {
361
361
  return /* @__PURE__ */ jsxs(
362
362
  "div",
363
363
  {
364
- 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",
364
+ className: clsx(
365
+ "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",
366
+ innerContentAlign === "start" && "es-uic-justify-items-start",
367
+ innerContentAlign === "center" && "es-uic-justify-items-center",
368
+ innerContentAlign === "end" && "es-uic-justify-items-end",
369
+ innerContentAlign === "stretch" && "es-uic-justify-items-stretch"
370
+ ),
365
371
  children: [
366
372
  /* @__PURE__ */ jsx(
367
373
  DecorativeTooltip,
@@ -374,37 +380,22 @@ const Responsive = (props) => {
374
380
  /* @__PURE__ */ jsx("span", { className: "es-uic-block es-uic-font-semibold", children: ((_a = breakpointUiData == null ? void 0 : breakpointUiData[realBreakpointName]) == null ? void 0 : _a.label) ?? upperFirst(realBreakpointName) }),
375
381
  /* @__PURE__ */ jsxs("span", { className: "es-uic-block es-uic-text-balance es-uic-tabular-nums", children: [
376
382
  !isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
377
- !belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
378
- __("Applied when the browser width is %dpx or more.", "eightshift-ui-components"),
379
- breakpointData[realBreakpointName]
380
- ),
383
+ !belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[realBreakpointName]),
381
384
  belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
382
- __(
383
- "Applied when the browser width is between %dpx and %dpx.",
384
- "eightshift-ui-components"
385
- ),
385
+ __("Applied when the browser width is between %dpx and %dpx.", "eightshift-ui-components"),
386
386
  breakpointData[realBreakpointName],
387
387
  breakpointData[belowOverride] - 1
388
388
  ),
389
389
  typeof value[breakpoint] === "undefined" && sprintf(__("From %dpx", "eightshift-ui-components"), breakpointData[realBreakpointName])
390
390
  ] }),
391
391
  isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
392
- !belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
393
- __("Applied when the browser width is %dpx or less.", "eightshift-ui-components"),
394
- breakpointData[realBreakpointName] - 1
395
- ),
392
+ !belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[realBreakpointName] - 1),
396
393
  belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
397
- __(
398
- "Applied when the browser width is between %dpx and %dpx.",
399
- "eightshift-ui-components"
400
- ),
394
+ __("Applied when the browser width is between %dpx and %dpx.", "eightshift-ui-components"),
401
395
  breakpointData[belowOverride == null ? void 0 : belowOverride.replace("max-", "")],
402
396
  breakpointData[realBreakpointName] - 1
403
397
  ),
404
- typeof value[breakpoint] === "undefined" && sprintf(
405
- __("Up to %dpx", "eightshift-ui-components"),
406
- breakpointData[breakpoint == null ? void 0 : breakpoint.replace("max-", "")]
407
- )
398
+ typeof value[breakpoint] === "undefined" && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint == null ? void 0 : breakpoint.replace("max-", "")])
408
399
  ] })
409
400
  ] }),
410
401
  typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: "es-uic-mt-2 es-uic-block es-uic-font-medium es-uic-italic", children: __("Not set", "eightshift-ui-components") }),
@@ -523,6 +514,10 @@ const Responsive = (props) => {
523
514
  {
524
515
  className: clsx(
525
516
  "es-uic-grid es-uic-items-center es-uic-gap-x-2 es-uic-transition-[grid-template-columns,_margin-block-start] es-uic-duration-150",
517
+ innerContentAlign === "start" && "es-uic-justify-items-start",
518
+ innerContentAlign === "center" && "es-uic-justify-items-center",
519
+ innerContentAlign === "end" && "es-uic-justify-items-end",
520
+ innerContentAlign === "stretch" && "es-uic-justify-items-stretch",
526
521
  detailsVisible ? "!es-uic-mt-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)]"
527
522
  ),
528
523
  children: [
@@ -544,7 +539,13 @@ const Responsive = (props) => {
544
539
  isDesktopFirst && inline && /* @__PURE__ */ jsxs(
545
540
  AnimatedVisibility,
546
541
  {
547
- className: "es-uic-grid es-uic-grid-cols-[minmax(0,_1.75rem),_minmax(0,_1fr),_minmax(0,_2.25rem)] es-uic-items-center es-uic-gap-x-2 es-uic-pt-1",
542
+ className: clsx(
543
+ "es-uic-grid es-uic-grid-cols-[minmax(0,_1.75rem),_minmax(0,_1fr),_minmax(0,_2.25rem)] es-uic-items-center es-uic-gap-x-2 es-uic-pt-1",
544
+ innerContentAlign === "start" && "es-uic-justify-items-start",
545
+ innerContentAlign === "center" && "es-uic-justify-items-center",
546
+ innerContentAlign === "end" && "es-uic-justify-items-end",
547
+ innerContentAlign === "stretch" && "es-uic-justify-items-stretch"
548
+ ),
548
549
  visible: detailsVisible,
549
550
  children: [
550
551
  /* @__PURE__ */ jsx(DefaultTooltip, {}),
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
2
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
3
3
  import { upperFirst } from "../../utilities/es-dash.js";
4
4
  import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
5
5
  import { icons } from "../../icons/icons.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, 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
  /**
4
4
  * Component that displays a label, with an optional icon and subtitle.
5
5
  *
@@ -35,13 +35,7 @@ const RichLabel = (props) => {
35
35
  return /* @__PURE__ */ jsxs(Fragment, { children: [
36
36
  icon && /* @__PURE__ */ jsx("span", { className: clsx("[&>svg]:es-uic-size-5.5", !noColor && "es-uic-text-slate-500"), children: icon }),
37
37
  label && /* @__PURE__ */ jsx("span", { className: clsx("es-uic-text-balance", !noColor && "es-uic-text-gray-800"), children: label }),
38
- subtitle && /* @__PURE__ */ jsx(
39
- "span",
40
- {
41
- className: clsx("es-uic-text-balance es-uic-text-xs es-uic-opacity-65", !noColor && "es-uic-text-gray-800"),
42
- children: subtitle
43
- }
44
- )
38
+ subtitle && /* @__PURE__ */ jsx("span", { className: clsx("es-uic-text-balance es-uic-text-xs es-uic-opacity-65", !noColor && "es-uic-text-gray-800"), children: subtitle })
45
39
  ] });
46
40
  }
47
41
  return /* @__PURE__ */ jsxs(
@@ -1,12 +1,12 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { A as AsyncSelect$1 } from "../../react-select-async.esm-CLj9uZTq.js";
3
- import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-nORKdJ-2.js";
2
+ import { A as AsyncSelect$1 } from "../../react-select-async.esm-5zW9Dv9E.js";
3
+ import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-7vKCF8dG.js";
4
4
  import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
5
5
  import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
6
6
  import { BaseControl } from "../base-control/base-control.js";
7
7
  import { eightshiftSelectClasses } from "./styles.js";
8
8
  import { fixIds } from "./shared.js";
9
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
9
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
10
10
  /**
11
11
  * Multi-select menu with async loading and re-ordering.
12
12
  *
@@ -1,9 +1,9 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { A as AsyncSelect$1 } from "../../react-select-async.esm-CLj9uZTq.js";
2
+ import { A as AsyncSelect$1 } from "../../react-select-async.esm-5zW9Dv9E.js";
3
3
  import { CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
4
4
  import { BaseControl } from "../base-control/base-control.js";
5
5
  import { eightshiftSelectClasses } from "./styles.js";
6
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
6
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
7
7
  /**
8
8
  * Select menu with async loading.
9
9
  *
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import React__default from "react";
3
3
  import { icons } from "../../icons/icons.js";
4
- import { c as clsx } from "../../lite-pbIeT7tm.js";
5
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
4
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
5
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
6
6
  /**
7
7
  * Default dropdown indicator for CustomSelect.
8
8
  *
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { g, a, b } from "../../multi-select-components-nORKdJ-2.js";
3
- import "../../lite-pbIeT7tm.js";
2
+ import { g, a, b } from "../../multi-select-components-7vKCF8dG.js";
3
+ import "../../lite-DVmmD_-j.js";
4
4
  export {
5
5
  g as getDragEndHandler,
6
6
  a as getMultiValue,
@@ -1,12 +1,12 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { S as StateManagedSelect$1 } from "../../react-select.esm-3tyTZmrx.js";
3
- import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-nORKdJ-2.js";
2
+ import { S as StateManagedSelect$1 } from "../../react-select.esm-Bi6uzjbT.js";
3
+ import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-7vKCF8dG.js";
4
4
  import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
5
5
  import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
6
6
  import { fixIds, getValue, customOnChange } from "./shared.js";
7
7
  import { BaseControl } from "../base-control/base-control.js";
8
8
  import { eightshiftSelectClasses } from "./styles.js";
9
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
9
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
10
10
  /**
11
11
  * Multi-select menu with re-orderable items.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
2
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
3
3
  /**
4
4
  * Custom dropdown indicator for CustomSelect.
5
5
  *
@@ -8,7 +8,7 @@ import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
8
8
  * @param {import('react-select').DropdownIndicatorProps} props - components.DropdownIndicator props.
9
9
  *
10
10
  * @preserve
11
- */
11
+ */
12
12
  const RSDropdownIndicator = (props) => /* @__PURE__ */ jsx(components.DropdownIndicator, { ...props });
13
13
  /**
14
14
  * Custom value display for CustomSelect.
@@ -18,7 +18,7 @@ const RSDropdownIndicator = (props) => /* @__PURE__ */ jsx(components.DropdownIn
18
18
  * @param {import('react-select').SingleValueProps} props - components.SingleValue props.
19
19
  *
20
20
  * @preserve
21
- */
21
+ */
22
22
  const RSSingleValue = (props) => /* @__PURE__ */ jsx(components.SingleValue, { ...props });
23
23
  /**
24
24
  * Custom value display for multi item select.
@@ -28,7 +28,7 @@ const RSSingleValue = (props) => /* @__PURE__ */ jsx(components.SingleValue, { .
28
28
  * @param {import('react-select').MultiValueProps} props - components.SingleValue props.
29
29
  *
30
30
  * @preserve
31
- */
31
+ */
32
32
  const RSMultiValue = (props) => /* @__PURE__ */ jsx(components.MultiValue, { ...props });
33
33
  /**
34
34
  * Custom option for CustomSelect.
@@ -38,7 +38,7 @@ const RSMultiValue = (props) => /* @__PURE__ */ jsx(components.MultiValue, { ...
38
38
  * @param {import('react-select').OptionProps} props - components.Option props.
39
39
  *
40
40
  * @preserve
41
- */
41
+ */
42
42
  const RSOption = (props) => /* @__PURE__ */ jsx(components.Option, { ...props });
43
43
  /**
44
44
  * Custom multiple value remove button for CustomSelect.
@@ -48,7 +48,7 @@ const RSOption = (props) => /* @__PURE__ */ jsx(components.Option, { ...props })
48
48
  * @param {import('react-select').MultiValueRemoveProps} props - components.MultiValueRemove props.
49
49
  *
50
50
  * @preserve
51
- */
51
+ */
52
52
  const RSMultiValueRemove = (props) => /* @__PURE__ */ jsx(components.MultiValueRemove, { ...props });
53
53
  /**
54
54
  * Custom multiple value display container for CustomSelect.
@@ -58,7 +58,7 @@ const RSMultiValueRemove = (props) => /* @__PURE__ */ jsx(components.MultiValueR
58
58
  * @param {import('react-select').MultiValueGenericProps} props - components.MultiValueContainer props.
59
59
  *
60
60
  * @preserve
61
- */
61
+ */
62
62
  const RSMultiValueContainer = (props) => /* @__PURE__ */ jsx(components.MultiValueContainer, { ...props });
63
63
  /**
64
64
  * Custom multiple value display for CustomSelect.
@@ -68,7 +68,7 @@ const RSMultiValueContainer = (props) => /* @__PURE__ */ jsx(components.MultiVal
68
68
  * @param {import('react-select').MultiValueGenericProps} props - components.MultiValueLabel props.
69
69
  *
70
70
  * @preserve
71
- */
71
+ */
72
72
  const RSMultiValueLabel = (props) => /* @__PURE__ */ jsx(components.MultiValueLabel, { ...props });
73
73
  /**
74
74
  * Default clear indicator for CustomSelect.
@@ -76,7 +76,7 @@ const RSMultiValueLabel = (props) => /* @__PURE__ */ jsx(components.MultiValueLa
76
76
  * @param {import('react-select').ClearIndicatorProps} props - components.ClearIndicator props.
77
77
  *
78
78
  * @preserve
79
- */
79
+ */
80
80
  const RSClearIndicator = (props) => /* @__PURE__ */ jsx(components.ClearIndicator, { ...props });
81
81
  export {
82
82
  RSClearIndicator,
@@ -1,10 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { S as StateManagedSelect$1 } from "../../react-select.esm-3tyTZmrx.js";
2
+ import { S as StateManagedSelect$1 } from "../../react-select.esm-Bi6uzjbT.js";
3
3
  import { CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
4
4
  import { getValue, customOnChange } from "./shared.js";
5
5
  import { BaseControl } from "../base-control/base-control.js";
6
6
  import { eightshiftSelectClasses } from "./styles.js";
7
- import { c as components } from "../../index-a301f526.esm-BzTuHLdr.js";
7
+ import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
8
8
  /**
9
9
  * Select menu.
10
10
  *
@@ -1,4 +1,4 @@
1
- import { c as clsx } from "../../lite-pbIeT7tm.js";
1
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
2
2
  const controlStyles = {
3
3
  base: "es-uic-border es-uic-rounded-md es-uic-bg-white es-uic-text-sm es-uic-transition es-uic-group es-uic-shadow-sm !es-uic-min-h-10",
4
4
  focus: "es-uic-ring es-uic-ring-teal-500 es-uic-ring-opacity-50",
@@ -28,10 +28,7 @@ const groupHeadingStyles = "es-uic-ml-3 es-uic-mt-2 es-uic-text-gray-500 es-uic-
28
28
  const groupStyles = "es-uic-border-b last:es-uic-border-b-0";
29
29
  const eightshiftSelectClasses = {
30
30
  clearIndicator: () => clearIndicatorStyles,
31
- control: ({ isFocused }) => clsx(
32
- isFocused ? controlStyles.focus : controlStyles.nonFocus,
33
- controlStyles.base
34
- ),
31
+ control: ({ isFocused }) => clsx(isFocused ? controlStyles.focus : controlStyles.nonFocus, controlStyles.base),
35
32
  dropdownIndicator: () => dropdownIndicatorStyles,
36
33
  group: () => groupStyles,
37
34
  groupHeading: () => groupHeadingStyles,
@@ -41,11 +38,7 @@ const eightshiftSelectClasses = {
41
38
  multiValueLabel: () => multiValueLabelStyles,
42
39
  multiValueRemove: () => multiValueRemoveStyles,
43
40
  noOptionsMessage: () => noOptionsMessageStyles,
44
- option: ({ isFocused, isSelected }) => clsx(
45
- isFocused && optionStyles.focus,
46
- isSelected && optionStyles.selected,
47
- optionStyles.base
48
- ),
41
+ option: ({ isFocused, isSelected }) => clsx(isFocused && optionStyles.focus, isSelected && optionStyles.selected, optionStyles.base),
49
42
  placeholder: () => placeholderStyles,
50
43
  singleValue: () => singleValueStyles,
51
44
  valueContainer: () => valueContainerStyles
@@ -1,11 +1,11 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { _ as __ } from "../../default-i18n-Bk1GxDHz.js";
3
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-9x5iLJ-Y.js";
4
- import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-C5U5N7uM.js";
2
+ import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
3
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Bg5O81Wb.js";
4
+ import { $ as $6f909507e6374d18$export$472062a354075cee, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, c as $6f909507e6374d18$export$a590f758a961cb5b } from "../../Slider-fULMI0gI.js";
5
5
  import { BaseControl } from "../base-control/base-control.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { getColumnConfigOutputText } from "./utils.js";
8
- import { c as clsx } from "../../lite-pbIeT7tm.js";
8
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
9
9
  /**
10
10
  * A two-thumb slider for selecting a range of columns.
11
11
  *
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-DIBzm1e4.js";
3
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-9x5iLJ-Y.js";
4
- import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-C5U5N7uM.js";
2
+ import { $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-Dc35LwuT.js";
3
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5, a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-Bg5O81Wb.js";
4
+ import { $ as $6f909507e6374d18$export$472062a354075cee, c as $6f909507e6374d18$export$a590f758a961cb5b, a as $6f909507e6374d18$export$105594979f116971, b as $6f909507e6374d18$export$2c1b491743890dec, d as $6f909507e6374d18$export$1e7083018727fa60 } from "../../Slider-fULMI0gI.js";
5
5
  import { BaseControl } from "../base-control/base-control.js";
6
- import { c as clsx } from "../../lite-pbIeT7tm.js";
6
+ import { c as clsx } from "../../lite-DVmmD_-j.js";
7
7
  import { NumberPicker } from "../number-picker/number-picker.js";
8
8
  import { useState, useContext } from "react";
9
9
  import { generateMarkers } from "./utils.js";
@@ -128,10 +128,7 @@ const Slider = (props) => {
128
128
  ] }),
129
129
  labelAs: $01b77f81d0f07f68$export$b04be29aa201d4f5,
130
130
  className: labelClassName,
131
- controlContainerClassName: clsx(
132
- "es-uic-flex es-uic-items-center es-uic-gap-2.5 !es-uic-space-y-0",
133
- vertical && "es-uic-flex-col"
134
- ),
131
+ controlContainerClassName: clsx("es-uic-flex es-uic-items-center es-uic-gap-2.5 !es-uic-space-y-0", vertical && "es-uic-flex-col"),
135
132
  children: [
136
133
  before && /* @__PURE__ */ jsx("div", { className: "es-uic-flex es-uic-shrink-0 es-uic-items-center es-uic-gap-1", children: before }),
137
134
  /* @__PURE__ */ jsx(
@@ -1,4 +1,4 @@
1
- import { _ as __, s as sprintf, a as _n } from "../../default-i18n-Bk1GxDHz.js";
1
+ import { _ as __, s as sprintf, a as _n } from "../../default-i18n-BqwLkgZv.js";
2
2
  /**
3
3
  * Generates an array of markers based on the provided minimum and maximum values and step.
4
4
  * If the step is less than 10, only markers divisible by 5 and 10 are included.
@@ -76,11 +76,7 @@ const getColumnConfigOutputText = (columns, offset, width, showOuterAsGutter = f
76
76
  if (width === 1) {
77
77
  return sprintf(__("Col %d", "eightshift-ui-components"), offset);
78
78
  }
79
- return sprintf(
80
- _n("%s col from %s", "%s cols from %s", width, "eightshift-ui-components"),
81
- width,
82
- showOuterAsGutter ? offset - 1 : offset
83
- );
79
+ return sprintf(_n("%s col from %s", "%s cols from %s", width, "eightshift-ui-components"), width, showOuterAsGutter ? offset - 1 : offset);
84
80
  };
85
81
  export {
86
82
  generateMarkers,
@@ -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
  * A simple spacer/divider component, with optional text or icon.
@@ -87,12 +87,7 @@ const Spacer = (props) => {
87
87
  if (border) {
88
88
  return /* @__PURE__ */ jsxs("div", { children: [
89
89
  size !== "px" && /* @__PURE__ */ jsx("div", { className: spaceClass }),
90
- /* @__PURE__ */ jsx(
91
- "div",
92
- {
93
- className: clsx("es-uic-bg-gray-300", vertical ? "es-uic-h-full es-uic-w-px" : "es-uic-h-px es-uic-w-full")
94
- }
95
- ),
90
+ /* @__PURE__ */ jsx("div", { className: clsx("es-uic-bg-gray-300", vertical ? "es-uic-h-full es-uic-w-px" : "es-uic-h-px es-uic-w-full") }),
96
91
  size !== "px" && /* @__PURE__ */ jsx("div", { className: spaceClass })
97
92
  ] });
98
93
  }