@eightshift/ui-components 6.2.0 → 6.3.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 (73) hide show
  1. package/dist/{Button-CFnNdpNZ.js → Button-DtRmB6b8.js} +7 -6
  2. package/dist/{Dialog-DDfABlp4.js → Dialog-DTIxSDhz.js} +91 -37
  3. package/dist/{FocusScope-BJhC1-1e.js → FocusScope-CjFQ7cbd.js} +16 -16
  4. package/dist/{Hidden-Rfj-STx7.js → Hidden-DOH36apC.js} +23 -6
  5. package/dist/{Input-B4X6-x6r.js → Input-BG9DaxYN.js} +6 -6
  6. package/dist/{Label-BDlf9vIY.js → Label-_aSf9-8u.js} +1 -1
  7. package/dist/{ListBox-ByPsaVVK.js → ListBox-DXFyyj_r.js} +8 -7
  8. package/dist/{OverlayArrow-Dy0qw7WL.js → OverlayArrow-Fuxj-1QM.js} +27 -9
  9. package/dist/{RadioGroup-CjCAbUr4.js → RadioGroup-DCeiLxLK.js} +9 -9
  10. package/dist/{SearchField-BME59dt-.js → SearchField-B_yKFXRk.js} +11 -11
  11. package/dist/{SelectionManager-iru59gc4.js → SelectionManager-B02LcxLr.js} +111 -65
  12. package/dist/{Slider-BIbaMdUE.js → Slider-bR3fAmim.js} +7 -7
  13. package/dist/{VisuallyHidden-CqnizvzQ.js → VisuallyHidden-DZnWrkn8.js} +1 -1
  14. package/dist/assets/style-admin.css +628 -327
  15. package/dist/assets/style-editor.css +628 -327
  16. package/dist/assets/style.css +628 -327
  17. package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
  18. package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
  19. package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
  20. package/dist/assets/wp-overrides/make-block-messages-nicer.css +7 -7
  21. package/dist/assets/wp-overrides/replace-fonts.css +5 -5
  22. package/dist/assets/wp-overrides/restyle-tooltips.css +3 -3
  23. package/dist/assets/wp-overrides/round-corners.css +1 -1
  24. package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
  25. package/dist/components/base-control/base-control.js +1 -1
  26. package/dist/components/base-control/container.js +1 -1
  27. package/dist/components/button/button.js +12 -9
  28. package/dist/components/checkbox/checkbox.js +10 -10
  29. package/dist/components/color-pickers/solid-color-picker.js +9 -9
  30. package/dist/components/expandable/expandable.js +5 -5
  31. package/dist/components/input-field/input-field.js +6 -9
  32. package/dist/components/link-input/link-input.js +191 -68
  33. package/dist/components/matrix-align/matrix-align.js +1 -1
  34. package/dist/components/menu/menu.js +5 -5
  35. package/dist/components/modal/modal.js +11 -8
  36. package/dist/components/notice/notice.js +3 -3
  37. package/dist/components/number-picker/number-picker.js +7 -7
  38. package/dist/components/options-panel/options-panel.js +6 -6
  39. package/dist/components/popover/popover.js +8 -7
  40. package/dist/components/radio/radio.js +2 -2
  41. package/dist/components/responsive/mini-responsive.js +81 -70
  42. package/dist/components/responsive/responsive.js +24 -40
  43. package/dist/components/responsive-preview/responsive-preview.js +1 -1
  44. package/dist/components/rich-label/rich-label.js +6 -4
  45. package/dist/components/select/async-multi-select.js +16 -12
  46. package/dist/components/select/async-select.js +16 -13
  47. package/dist/components/select/multi-select.js +17 -13
  48. package/dist/components/select/shared.js +3 -3
  49. package/dist/components/select/single-select.js +14 -12
  50. package/dist/components/slider/column-config-slider.js +3 -3
  51. package/dist/components/slider/slider.js +3 -3
  52. package/dist/components/tabs/tabs.js +39 -8
  53. package/dist/components/toggle/switch.js +5 -5
  54. package/dist/components/toggle/toggle.js +1 -1
  55. package/dist/components/toggle-button/toggle-button.js +6 -6
  56. package/dist/components/tooltip/tooltip.js +11 -9
  57. package/dist/{proxy-DFlYXk07.js → proxy-CNEXmkdK.js} +205 -137
  58. package/dist/{shared-HdRrpnhs.js → shared-CNH8QfV9.js} +15 -14
  59. package/dist/{textSelection-CeoEP4rL.js → textSelection-DA3VcKpG.js} +1 -1
  60. package/dist/{useButton-5YL_nmpZ.js → useButton-DyMX0EVr.js} +2 -2
  61. package/dist/{useEvent-Zze2g7CX.js → useEvent-Bfy68GHZ.js} +1 -1
  62. package/dist/{useFilter-NhAlifsK.js → useFilter-Bg5C34XC.js} +1 -1
  63. package/dist/{useFocusRing-rUOwLdTK.js → useFocusRing-B2glEZ25.js} +9 -7
  64. package/dist/{useFormReset-BxtOoO5Q.js → useFormReset-BoxsKyJ9.js} +1 -1
  65. package/dist/{useFormValidation-DTmPrTD8.js → useFormValidation-BrbMhS2N.js} +4 -3
  66. package/dist/{useHover-CmyvqeWX.js → useHover-DkmPQdGE.js} +76 -58
  67. package/dist/{useListState-HOvCQJFf.js → useListState-BjnzKozj.js} +3 -3
  68. package/dist/{useNumberField-CTkI-U9a.js → useNumberField-CsygZKz9.js} +45 -15
  69. package/dist/{usePress-CNefMs8d.js → usePress-Ck5xMtDr.js} +21 -21
  70. package/dist/{useToggle-CFFOmZWi.js → useToggle-Ddc7N8pR.js} +4 -4
  71. package/dist/{useToggleState-BWrKKisg.js → useToggleState-H_lORSWO.js} +1 -1
  72. package/package.json +22 -21
  73. package/dist/useSingleSelectListState-BtrMHGeE.js +0 -38
@@ -1,16 +1,16 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import $dbSRa$react__default, { forwardRef, useRef, createContext } from "react";
3
3
  import "../../default-i18n-CnQeC5Pl.js";
4
- import { a as $a049562f99e7db0e$export$f9c6924e160136d1, b as $3985021b0ad6602f$export$37fb8590cf2c088c, c as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-B4X6-x6r.js";
5
- import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BDlf9vIY.js";
6
- import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-CFnNdpNZ.js";
4
+ import { a as $a049562f99e7db0e$export$f9c6924e160136d1, b as $3985021b0ad6602f$export$37fb8590cf2c088c, c as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BG9DaxYN.js";
5
+ import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-_aSf9-8u.js";
6
+ import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "../../Button-DtRmB6b8.js";
7
7
  import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, e as $64fa3d84918910a7$export$fabf2dc03a41866e, f as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, g as $64fa3d84918910a7$export$ef03459518577ad4, h as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$df3a06d6289f983e } from "../../utils-Cr3pLd9c.js";
8
8
  import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-BPG0hKfB.js";
9
9
  import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
10
10
  import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-CjFEHSfr.js";
11
11
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-eGTqWSTd.js";
12
12
  import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-iUFQCK8m.js";
13
- import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-CTkI-U9a.js";
13
+ import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-CsygZKz9.js";
14
14
  import { ButtonGroup, Button } from "../button/button.js";
15
15
  import { icons } from "../../icons/icons.js";
16
16
  import { c as clsx } from "../../clsx-DgYk2OaC.js";
@@ -270,14 +270,14 @@ const NumberPicker = ({
270
270
  "span",
271
271
  {
272
272
  slot: "prefix",
273
- className: 'es:mr-1 es:select-none es:leading-none es:text-current/60 es:font-variation-["wdth"_100,"wght"_400,"slnt"_-1] es:group-focus-within:text-surface-500',
273
+ className: 'es:mr-1 es:-translate-y-px es:select-none es:leading-none es:text-current/65 es:font-variation-["wdth"_76,"wght"_325,"slnt"_-2,"ROND"_100] es:group-focus-within:text-surface-500',
274
274
  children: prefix
275
275
  }
276
276
  ),
277
277
  /* @__PURE__ */ jsx(
278
278
  $3985021b0ad6602f$export$f5b8910cec6cf069,
279
279
  {
280
- className: 'es:font-variation-["wdth"_84,"YTLC"_520,"wght"_325,"slnt"_0,"YTFI"_788] es:placeholder-shown:font-variation-["wdth"_100,"YTLC"_500,"wght"_250,"slnt"_-8] es:any-focus:outline-hidden! es:p-px! es:border-none! es:shadow-none! es:bg-transparent es:text-13!',
280
+ className: 'es:font-variation-["wdth"_80,"wght"_325,"slnt"_0,"ROND"_100] es:placeholder-shown:font-variation-["wdth"_60,"wght"_300,"slnt"_-10,"ROND"_0] es:any-focus:outline-hidden! es:p-px! es:border-none! es:shadow-none! es:bg-transparent es:text-13!',
281
281
  placeholder,
282
282
  style: {
283
283
  width: fixedWidth ? `calc(${fixedWidth}ch + 2px)` : `calc(${min < 0 ? "1ch + " : "0.75ch + "}${Math.max((max ?? 1e3)?.toString()?.length, (placeholder ?? "")?.length)} * 1ch)`
@@ -327,7 +327,7 @@ const NumberPicker = ({
327
327
  "span",
328
328
  {
329
329
  slot: "suffix",
330
- className: 'es:ml-1 es:select-none es:leading-none es:text-current/60 es:font-variation-["wdth"_100,"wght"_400,"slnt"_-1] es:group-focus-within:text-surface-500',
330
+ className: 'es:ml-1 es:-translate-y-px es:select-none es:leading-none es:text-current/60 es:font-variation-["wdth"_76,"wght"_325,"slnt"_-2,"ROND"_100] es:group-focus-within:text-surface-500',
331
331
  children: suffix
332
332
  }
333
333
  )
@@ -39,9 +39,9 @@ const OptionsPanel = (props) => {
39
39
  icon,
40
40
  label: title,
41
41
  subtitle,
42
- className: clsx("es:shrink-0 es:text-secondary-700 es:px-1 es:pt-5 es:pb-1"),
43
- labelClassName: "es:text-lg es:leading-tight",
44
- subtitleClassName: "es:text-base es:leading-tight",
42
+ className: clsx("es:shrink-0 es:text-surface-700 es:px-1 es:pt-5 es:pb-1"),
43
+ labelClassName: "es:text-base es:leading-tight",
44
+ subtitleClassName: "es:text-13 es:leading-tight",
45
45
  noColor: true
46
46
  }
47
47
  ),
@@ -116,7 +116,7 @@ const OptionsPanelHeader = ({ children, sticky, title, className, actions, level
116
116
  /* @__PURE__ */ jsx(
117
117
  $5cb03073d3f54797$export$a8a3e93435678ff9,
118
118
  {
119
- className: 'es:text-3xl es:text-surface-800 es:font-variation-["wdth"_180,"YTLC"_540,"wght"_300] es:m-0!',
119
+ className: 'es:text-2xl es:text-surface-800 es:font-variation-["wdth"_100,"wght"_450,"ROND"_100] es:m-0!',
120
120
  level,
121
121
  children: title
122
122
  }
@@ -166,12 +166,12 @@ const OptionsPanelIntro = ({ icon, title, subtitle, className, iconClassName, le
166
166
  /* @__PURE__ */ jsx(
167
167
  $5cb03073d3f54797$export$a8a3e93435678ff9,
168
168
  {
169
- className: 'es:text-2xl es:my-0! es:text-accent-900 es:font-variation-["wdth"_180,"YTLC"_540,"wght"_350]',
169
+ className: 'es:text-3xl es:my-0! es:text-accent-900 es:font-variation-["wdth"_50,"wght"_325,"slnt"_-4,"ROND"_100]',
170
170
  level,
171
171
  children: title
172
172
  }
173
173
  ),
174
- subtitle && /* @__PURE__ */ jsx("p", { className: 'es:text-13 es:my-0! es:text-surface-500 es:mt-0.75 es:font-variation-["wdth"_90,"YTLC"_560,"wght"_325]', children: subtitle }),
174
+ subtitle && /* @__PURE__ */ jsx("p", { className: 'es:text-13 es:my-0! es:text-surface-500 es:mt-0.75 es:font-variation-["wdth"_95,"wght"_275]', children: subtitle }),
175
175
  icon && cloneElement(icon, { className: clsx("es:absolute es:-top-2 es:right-2.5 es:rotate-12 es:text-surface-500/10 es:size-18", iconClassName) })
176
176
  ]
177
177
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, g as $de32f1b87079253c$export$3ddf2d174ce01153, h as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-DDfABlp4.js";
2
+ import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, g as $de32f1b87079253c$export$3ddf2d174ce01153, h as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-DTIxSDhz.js";
3
3
  import { c as clsx } from "../../clsx-DgYk2OaC.js";
4
4
  import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
5
5
  import { Button } from "../button/button.js";
@@ -108,18 +108,19 @@ const Popover = (props) => {
108
108
  crossOffset,
109
109
  containerPadding,
110
110
  className: ({ isEntering, isExiting }) => clsx(
111
+ "es:font-sans",
111
112
  "es:rounded-2xl es:bg-linear-to-br es:from-surface-50/85 es:to-surface-50/85 es:inset-ring es:inset-ring-surface-500/15 es:shadow-xl es:outline-hidden",
112
113
  "es:backdrop-blur-xl es:backdrop-brightness-110 es:backdrop-saturate-125",
113
114
  "es:inset-shadow-xs es:inset-shadow-white/50",
114
115
  "es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left",
115
116
  "es:placement-left:origin-right es:placement-right:origin-left",
116
- "es:motion-duration-250 es:motion-ease-spring-bouncy",
117
- isEntering && "es:*:pointer-events-none",
117
+ "es:motion-ease-spring-bouncy",
118
+ isEntering && "es:*:pointer-events-none es:motion-duration-300",
118
119
  "es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left",
119
- isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-85 es:motion-opacity-in-0",
120
- isEntering && "es:placement-top:motion-translate-y-in-[0.5rem] es:placement-bottom:motion-translate-y-in-[-0.5rem]",
121
- isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-85 es:motion-opacity-out-0",
122
- isExiting && "es:placement-top:motion-translate-y-out-[0.5rem] es:placement-bottom:motion-translate-y-out-[-0.5rem]",
120
+ isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-90 es:motion-opacity-in-0",
121
+ isEntering && "es:placement-top:motion-translate-y-in-[0.25rem] es:placement-bottom:motion-translate-y-in-[-0.25rem]",
122
+ isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-90 es:motion-opacity-out-0 es:motion-duration-200",
123
+ isExiting && "es:placement-top:motion-translate-y-out-[0.25rem] es:placement-bottom:motion-translate-y-out-[-0.25rem]",
123
124
  wrapperClassName
124
125
  ),
125
126
  style,
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BDlf9vIY.js";
3
- import { a as $b6c3ddc6086f204d$export$d7b12c4107be0d61, $ as $b6c3ddc6086f204d$export$a98f0dcb43a68a25 } from "../../RadioGroup-CjCAbUr4.js";
2
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-_aSf9-8u.js";
3
+ import { a as $b6c3ddc6086f204d$export$d7b12c4107be0d61, $ as $b6c3ddc6086f204d$export$a98f0dcb43a68a25 } from "../../RadioGroup-DCeiLxLK.js";
4
4
  import { c as clsx } from "../../clsx-DgYk2OaC.js";
5
5
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
6
6
  import { RichLabel } from "../rich-label/rich-label.js";
@@ -13,6 +13,8 @@ import { BaseControl } from "../base-control/base-control.js";
13
13
  import { TriggeredPopover } from "../popover/popover.js";
14
14
  import { OptionSelect } from "../option-select/option-select.js";
15
15
  import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-CjFEHSfr.js";
16
+ import { ContainerGroup, Container } from "../base-control/container.js";
17
+ import { HStack } from "../layout/hstack.js";
16
18
  /**
17
19
  * A compact, inline version of `Responsive`. Allows the user to set different values for different breakpoints.
18
20
  *
@@ -112,13 +114,13 @@ const MiniResponsive = (props) => {
112
114
  DecorativeTooltip,
113
115
  {
114
116
  placement: "left",
115
- className: "es:p-3",
117
+ className: "es:p-4! es:rounded-2xl! es:max-w-96!",
116
118
  theme: "light",
117
119
  offset: 7.5,
118
120
  arrow: true,
119
- text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-64 es:p-1", children: [
120
- /* @__PURE__ */ jsx("span", { className: 'es:block es:font-variation-["wdth"_180,"wght"_500] es:text-base es:leading-none es:text-surface-600', children: __("Default", "eightshift-ui-components") }),
121
- /* @__PURE__ */ jsxs("span", { className: 'es:block es:text-balance es:tabular-nums es:font-variation-["wdth"_60,"wght"_300] es:text-surface-500 es:mt-1', children: [
121
+ text: /* @__PURE__ */ jsxs(Fragment, { children: [
122
+ /* @__PURE__ */ jsx("span", { className: 'es:block es:font-variation-["wdth"_95,"wght"_475,"ROND"_100] es:text-14 es:leading-none es:text-surface-600', children: __("Default", "eightshift-ui-components") }),
123
+ /* @__PURE__ */ jsxs("span", { className: 'es:block es:text-balance es:tabular-nums es:font-variation-["wdth"_64,"wght"_275,"ROND"_50,"slnt"_-2] es:text-surface-500 es:mt-1', children: [
122
124
  !firstMobileFirstOverride && !lastDesktopFirstOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
123
125
  firstMobileFirstOverride && !isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[firstMobileFirstOverride] - 1),
124
126
  lastDesktopFirstOverride && isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[lastDesktopFirstOverride.replace("max-", "")])
@@ -201,7 +203,7 @@ const MiniResponsive = (props) => {
201
203
  className: "es:min-w-80 es:p-0!",
202
204
  wrapperClassName: "es:rounded-3xl",
203
205
  children: [
204
- /* @__PURE__ */ jsx("div", { className: "es:flex es:items-center es:justify-between es:pt-3 es:px-3.5", children: /* @__PURE__ */ jsx($514c0188e459b4c0$export$5f1af8db9871e1d6, { className: 'es:block es:text-lg es:text-surface-600 es:font-variation-["wdth"_180,"wght"_325]', children: __("Responsive overrides", "eightshift-ui-components") }) }),
206
+ /* @__PURE__ */ jsx($514c0188e459b4c0$export$5f1af8db9871e1d6, { className: 'es:px-4 es:pt-3 es:pb-0.5 es:text-center es:block es:text-base es:text-surface-600 es:font-variation-["wdth"_105,"wght"_425,"ROND"_100]', children: __("Responsive overrides", "eightshift-ui-components") }),
205
207
  /* @__PURE__ */ jsxs("div", { className: "es:px-2 es:mt-1 es:space-y-0.5", children: [
206
208
  !isDesktopFirst && /* @__PURE__ */ jsxs(
207
209
  "div",
@@ -253,11 +255,12 @@ const MiniResponsive = (props) => {
253
255
  {
254
256
  placement: "left",
255
257
  theme: "light",
258
+ className: "es:p-4! es:rounded-2xl! es:max-w-96!",
256
259
  offset: 7.5,
257
260
  arrow: true,
258
- text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-96 es:p-1", children: [
259
- /* @__PURE__ */ jsx("span", { className: 'es:block es:font-variation-["wdth"_180,"wght"_500] es:text-base es:leading-none es:text-surface-600', children: breakpointUiData?.[realBreakpointName]?.label ?? upperFirst(realBreakpointName) }),
260
- /* @__PURE__ */ jsxs("span", { className: 'es:block es:text-balance es:tabular-nums es:font-variation-["wdth"_60,"wght"_300] es:text-surface-500 es:mt-1', children: [
261
+ text: /* @__PURE__ */ jsxs(Fragment, { children: [
262
+ /* @__PURE__ */ jsx("span", { className: 'es:block es:font-variation-["wdth"_95,"wght"_475,"ROND"_100] es:text-14 es:leading-none es:text-surface-600', children: breakpointUiData?.[realBreakpointName]?.label ?? upperFirst(realBreakpointName) }),
263
+ /* @__PURE__ */ jsxs("span", { className: 'es:block es:text-balance es:tabular-nums es:font-variation-["wdth"_64,"wght"_275,"ROND"_50,"slnt"_-2] es:text-surface-500 es:mt-1', children: [
261
264
  !isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
262
265
  !belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[realBreakpointName]),
263
266
  belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
@@ -277,7 +280,7 @@ const MiniResponsive = (props) => {
277
280
  typeof value[breakpoint] === "undefined" && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint?.replace("max-", "")])
278
281
  ] })
279
282
  ] }),
280
- typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: 'es:mt-2 es:block es:font-variation-["wdth"_100,"YTLC"_520,"wght"_350,"slnt"_-10]', children: __("Not set", "eightshift-ui-components") }),
283
+ typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: 'es:mt-2 es:text-sm es:leading-none es:block es:font-variation-["wdth"_75,"wght"_300,"slnt"_-5]', children: __("Not set", "eightshift-ui-components") }),
281
284
  typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-5", children: [
282
285
  !isDesktopFirst && /* @__PURE__ */ jsx(
283
286
  BreakpointPreview,
@@ -412,69 +415,77 @@ const MiniResponsive = (props) => {
412
415
  "_default-desktop-first"
413
416
  )
414
417
  ] }),
415
- /* @__PURE__ */ jsxs(ButtonGroup, { className: clsx("es:mx-2 es:mt-3", "es:w-fill es:grid es:grid-cols-2", noModeSelect ? "es:mb-2" : "es:mb-0.5"), children: [
416
- /* @__PURE__ */ jsx("div", { className: clsx("es:bg-white/50 es:inset-ring es:p-1.5 es:inset-ring-surface-200/60 es:rounded-tl-2xl es:rounded-sm", noModeSelect && "es:rounded-bl-2xl"), children: /* @__PURE__ */ jsx(
417
- TriggeredPopover,
418
- {
419
- triggerButtonLabel: __("Responsive preview", "eightshift-ui-components"),
420
- triggerButtonProps: {
421
- disabled: !Object.keys(value).some((key) => !key?.startsWith("_") && typeof value?.[key] !== "undefined"),
422
- type: "ghost",
423
- className: "es:w-fill"
424
- },
425
- children: /* @__PURE__ */ jsx(
426
- ResponsivePreview,
418
+ /* @__PURE__ */ jsxs(
419
+ ContainerGroup,
420
+ {
421
+ wrapClassName: "es:m-2 es:mt-4",
422
+ label: __("Breakpoints", "eightshift-ui-components"),
423
+ children: [
424
+ /* @__PURE__ */ jsx(Container, { lessSpaceEnd: true, children: /* @__PURE__ */ jsx(
425
+ BaseControl,
427
426
  {
428
- value,
429
- isDesktopFirst,
430
- breakpoints,
431
- desktopFirstBreakpoints,
432
- options,
433
- breakpointData,
434
- breakpointUiData
427
+ label: __("Actions", "eightshift-ui-components"),
428
+ inline: true,
429
+ children: /* @__PURE__ */ jsxs(HStack, { children: [
430
+ /* @__PURE__ */ jsx(
431
+ TriggeredPopover,
432
+ {
433
+ triggerButtonLabel: __("Preview", "eightshift-ui-components"),
434
+ triggerButtonProps: {
435
+ disabled: !Object.keys(value).some((key) => !key?.startsWith("_") && typeof value?.[key] !== "undefined")
436
+ },
437
+ children: /* @__PURE__ */ jsx(
438
+ ResponsivePreview,
439
+ {
440
+ value,
441
+ isDesktopFirst,
442
+ breakpoints,
443
+ desktopFirstBreakpoints,
444
+ options,
445
+ breakpointData,
446
+ breakpointUiData
447
+ }
448
+ )
449
+ }
450
+ ),
451
+ /* @__PURE__ */ jsx(
452
+ Button,
453
+ {
454
+ icon: icons.clearAlt,
455
+ disabled: !Object.keys(value).some((key) => !key?.startsWith("_") && typeof value?.[key] !== "undefined"),
456
+ onPress: () => {
457
+ const newValue = { ...value };
458
+ [...breakpoints, ...desktopFirstBreakpoints].forEach((breakpoint) => {
459
+ delete newValue[breakpoint];
460
+ });
461
+ onChange(newValue);
462
+ },
463
+ children: __("Clear overrides", "eightshift-ui-components")
464
+ }
465
+ )
466
+ ] })
435
467
  }
436
- )
437
- }
438
- ) }),
439
- /* @__PURE__ */ jsx("div", { className: clsx("es:bg-white/50 es:inset-ring es:p-1.5 es:inset-ring-surface-200/60 es:rounded-sm es:rounded-tr-2xl", noModeSelect && "es:rounded-br-2xl"), children: /* @__PURE__ */ jsx(
440
- Button,
441
- {
442
- icon: icons.clearAlt,
443
- disabled: !Object.keys(value).some((key) => !key?.startsWith("_") && typeof value?.[key] !== "undefined"),
444
- onPress: () => {
445
- const newValue = { ...value };
446
- [...breakpoints, ...desktopFirstBreakpoints].forEach((breakpoint) => {
447
- delete newValue[breakpoint];
448
- });
449
- onChange(newValue);
450
- },
451
- type: "ghost",
452
- className: "es:w-fill",
453
- children: __("Clear overrides", "eightshift-ui-components")
454
- }
455
- ) })
456
- ] }),
457
- /* @__PURE__ */ jsx(
458
- OptionSelect,
459
- {
460
- hidden: noModeSelect,
461
- icon: icons.responsiveOverridesAlt3Fill,
462
- label: __("Breakpoint mode", "eightshift-ui-components"),
463
- value: isDesktopFirst,
464
- onChange: (newMode) => {
465
- onChange({
466
- _default: value["_default"],
467
- _desktopFirst: newMode
468
- });
469
- },
470
- options: [
471
- { label: __("Mobile-first", "eightshift-ui-components"), subtitle: __("Default", "eightshift-ui-components"), value: false },
472
- { label: __("Desktop-first", "eightshift-ui-components"), value: true }
473
- ],
474
- wrapperProps: { triggerProps: { type: "simple", className: "es:grow" } },
475
- type: "menu",
476
- inline: true,
477
- className: "es:pl-3 es:mx-2 es:mb-2 es:bg-white/50 es:inset-ring es:p-1.5 es:inset-ring-surface-200/60 es:rounded-t-sm es:rounded-b-2xl"
468
+ ) }),
469
+ /* @__PURE__ */ jsx(Container, { lessSpaceEnd: true, children: /* @__PURE__ */ jsx(
470
+ OptionSelect,
471
+ {
472
+ hidden: noModeSelect,
473
+ label: __("Mode", "eightshift-ui-components"),
474
+ value: isDesktopFirst,
475
+ onChange: (newMode) => {
476
+ onChange({
477
+ _default: value["_default"],
478
+ _desktopFirst: newMode
479
+ });
480
+ },
481
+ options: [
482
+ { icon: icons.responsiveOverridesAltFill, label: __("Mobile-first", "eightshift-ui-components"), value: false },
483
+ { icon: icons.responsiveOverridesAlt2Fill, label: __("Desktop-first", "eightshift-ui-components"), value: true }
484
+ ],
485
+ inline: true
486
+ }
487
+ ) })
488
+ ]
478
489
  }
479
490
  )
480
491
  ]
@@ -7,13 +7,13 @@ import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
7
7
  import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
8
8
  import { upperFirst } from "../../utilities/es-dash.js";
9
9
  import { icons } from "../../icons/icons.js";
10
- import { Menu, MenuSectionHeader, MenuItem, MenuSeparator, SubMenuItem } from "../menu/menu.js";
10
+ import { Menu, MenuSectionHeader, MenuSeparator, SubMenuItem, MenuItem } from "../menu/menu.js";
11
11
  import { ResponsivePreview } from "../responsive-preview/responsive-preview.js";
12
12
  import { Button, ButtonGroup } from "../button/button.js";
13
- import { RichLabel } from "../rich-label/rich-label.js";
14
13
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
15
14
  import { ToggleButton } from "../toggle-button/toggle-button.js";
16
15
  import { BaseControl } from "../base-control/base-control.js";
16
+ import { OptionSelect } from "../option-select/option-select.js";
17
17
  /**
18
18
  * A component that allows the user to set different values for different breakpoints.
19
19
  *
@@ -118,18 +118,18 @@ const Responsive = (props) => {
118
118
  DecorativeTooltip,
119
119
  {
120
120
  placement: "left",
121
- className: "es:p-4! es:rounded-2xl!",
121
+ className: "es:p-4! es:rounded-2xl! es:max-w-96!",
122
122
  theme: "light",
123
123
  offset: 7.5,
124
124
  arrow: true,
125
- text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-64 es:p-1", children: [
126
- /* @__PURE__ */ jsx("span", { className: 'es:block es:font-variation-["wdth"_180,"wght"_500] es:text-base es:leading-none es:text-surface-600', children: __("Default", "eightshift-ui-components") }),
127
- /* @__PURE__ */ jsxs("span", { className: 'es:block es:text-balance es:tabular-nums es:font-variation-["wdth"_60,"wght"_300] es:text-surface-500 es:mt-1', children: [
125
+ text: /* @__PURE__ */ jsxs(Fragment, { children: [
126
+ /* @__PURE__ */ jsx("span", { className: 'es:block es:font-variation-["wdth"_95,"wght"_475,"ROND"_100] es:text-14 es:leading-none es:text-surface-600', children: __("Default", "eightshift-ui-components") }),
127
+ /* @__PURE__ */ jsxs("span", { className: 'es:block es:text-balance es:tabular-nums es:font-variation-["wdth"_64,"wght"_275,"ROND"_50,"slnt"_-2] es:text-surface-500 es:mt-1', children: [
128
128
  !firstMobileFirstOverride && !lastDesktopFirstOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
129
129
  firstMobileFirstOverride && !isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[firstMobileFirstOverride] - 1),
130
130
  lastDesktopFirstOverride && isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[lastDesktopFirstOverride.replace("max-", "")])
131
131
  ] }),
132
- /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-5", children: [
132
+ (firstMobileFirstOverride && !isDesktopFirst || lastDesktopFirstOverride && isDesktopFirst) && /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-5", children: [
133
133
  firstMobileFirstOverride && !isDesktopFirst && /* @__PURE__ */ jsx(
134
134
  BreakpointPreview,
135
135
  {
@@ -226,38 +226,22 @@ const Responsive = (props) => {
226
226
  triggerIcon: icons.dropdownCaretAlt,
227
227
  children: [
228
228
  !noModeSelect && /* @__PURE__ */ jsxs(Fragment, { children: [
229
- /* @__PURE__ */ jsx(MenuSectionHeader, { children: __("Breakpoint mode", "eightshift-ui-components") }),
229
+ /* @__PURE__ */ jsx(MenuSectionHeader, { children: __("Mode", "eightshift-ui-components") }),
230
230
  /* @__PURE__ */ jsx(
231
- MenuItem,
231
+ OptionSelect,
232
232
  {
233
- selected: !isDesktopFirst,
234
- onClick: () => {
233
+ value: isDesktopFirst,
234
+ onChange: (newMode) => {
235
235
  onChange({
236
236
  _default: value["_default"],
237
- _desktopFirst: false
237
+ _desktopFirst: newMode
238
238
  });
239
239
  },
240
- children: /* @__PURE__ */ jsx(
241
- RichLabel,
242
- {
243
- label: __("Mobile-first", "eightshift-ui-components"),
244
- subtitle: __("Default", "eightshift-ui-components"),
245
- noColor: true
246
- }
247
- )
248
- }
249
- ),
250
- /* @__PURE__ */ jsx(
251
- MenuItem,
252
- {
253
- selected: isDesktopFirst,
254
- onClick: () => {
255
- onChange({
256
- _default: value["_default"],
257
- _desktopFirst: true
258
- });
259
- },
260
- children: __("Desktop-first", "eightshift-ui-components")
240
+ options: [
241
+ { endIcon: icons.responsiveOverridesAltFill, label: __("Mobile-first", "eightshift-ui-components"), value: false },
242
+ { endIcon: icons.responsiveOverridesAlt2Fill, label: __("Desktop-first", "eightshift-ui-components"), value: true }
243
+ ],
244
+ type: "standaloneMenuItems"
261
245
  }
262
246
  ),
263
247
  /* @__PURE__ */ jsx(MenuSeparator, {})
@@ -267,7 +251,7 @@ const Responsive = (props) => {
267
251
  {
268
252
  manualWidth: true,
269
253
  popoverProps: { className: "es:max-w-full!" },
270
- trigger: /* @__PURE__ */ jsx(MenuItem, { icon: icons.previewResponsive, children: __("Responsive preview", "eightshift-ui-components") }),
254
+ trigger: /* @__PURE__ */ jsx(MenuItem, { icon: icons.previewResponsive, children: __("Breakpoint preview", "eightshift-ui-components") }),
271
255
  children: /* @__PURE__ */ jsx(MenuItem, { disabled: true, children: /* @__PURE__ */ jsx(
272
256
  ResponsivePreview,
273
257
  {
@@ -295,7 +279,7 @@ const Responsive = (props) => {
295
279
  onChange(newValue);
296
280
  },
297
281
  danger: true,
298
- children: __("Clear all overrides", "eightshift-ui-components")
282
+ children: __("Clear overrides", "eightshift-ui-components")
299
283
  }
300
284
  )
301
285
  ]
@@ -390,12 +374,12 @@ const Responsive = (props) => {
390
374
  {
391
375
  placement: "left",
392
376
  theme: "light",
393
- className: "es:p-4! es:rounded-2xl!",
377
+ className: "es:p-4! es:rounded-2xl! es:max-w-96!",
394
378
  offset: 7.5,
395
379
  arrow: true,
396
- text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-96 es:p-1", children: [
397
- /* @__PURE__ */ jsx("span", { className: 'es:block es:font-variation-["wdth"_180,"wght"_500] es:text-base es:leading-none es:text-surface-600', children: breakpointUiData?.[realBreakpointName]?.label ?? upperFirst(realBreakpointName) }),
398
- /* @__PURE__ */ jsxs("span", { className: 'es:block es:text-balance es:tabular-nums es:font-variation-["wdth"_60,"wght"_300] es:text-surface-500 es:mt-1', children: [
380
+ text: /* @__PURE__ */ jsxs(Fragment, { children: [
381
+ /* @__PURE__ */ jsx("span", { className: 'es:block es:font-variation-["wdth"_95,"wght"_475,"ROND"_100] es:text-14 es:leading-none es:text-surface-600', children: breakpointUiData?.[realBreakpointName]?.label ?? upperFirst(realBreakpointName) }),
382
+ /* @__PURE__ */ jsxs("span", { className: 'es:block es:text-balance es:tabular-nums es:font-variation-["wdth"_64,"wght"_275,"ROND"_50,"slnt"_-2] es:text-surface-500 es:mt-1', children: [
399
383
  !isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
400
384
  !belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[realBreakpointName]),
401
385
  belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
@@ -415,7 +399,7 @@ const Responsive = (props) => {
415
399
  typeof value[breakpoint] === "undefined" && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint?.replace("max-", "")])
416
400
  ] })
417
401
  ] }),
418
- typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: 'es:mt-2 es:block es:font-variation-["wdth"_100,"YTLC"_520,"wght"_350,"slnt"_-10]', children: __("Not set", "eightshift-ui-components") }),
402
+ typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: 'es:mt-2 es:text-sm es:leading-none es:block es:font-variation-["wdth"_75,"wght"_300,"slnt"_-5]', children: __("Not set", "eightshift-ui-components") }),
419
403
  typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-5", children: [
420
404
  !isDesktopFirst && /* @__PURE__ */ jsx(
421
405
  BreakpointPreview,
@@ -99,7 +99,7 @@ const ResponsivePreview = (props) => {
99
99
  RichLabel,
100
100
  {
101
101
  icon: icons.previewResponsive,
102
- label: __("Responsive preview", "eightshift-ui-components")
102
+ label: __("Breakpoint preview", "eightshift-ui-components")
103
103
  }
104
104
  ),
105
105
  /* @__PURE__ */ jsx("span", { className: "es:ml-auto es:select-none es:rounded es:bg-secondary-100 es:px-1 es:py-0.5 es:text-xs es:text-secondary-500", children: isDesktopFirst ? __("Desktop-first", "eightshift-ui-components") : __("Mobile-first", "eightshift-ui-components") })
@@ -53,19 +53,21 @@ const RichLabel = (props) => {
53
53
  return null;
54
54
  }
55
55
  const ComponentToRender = as ?? "div";
56
+ const labelBaseClassName = 'es:font-variation-["wdth"_100,"wght"_330,"ROND"_15]';
57
+ const subtitleBaseClassName = 'es:font-variation-["wdth"_90,"wght"_365,"ROND"_85,"slnt"_-1]';
56
58
  if (contentsOnly) {
57
59
  return /* @__PURE__ */ jsxs(Fragment, { children: [
58
60
  icon && /* @__PURE__ */ jsx("span", { className: clsx("es:icon:size-5 es:not-contrast-more:opacity-85", iconClassName), children: icon }),
59
- label && /* @__PURE__ */ jsx("span", { className: clsx("es:text-balance", labelClassName), children: label }),
60
- subtitle && /* @__PURE__ */ jsx("span", { className: clsx("es:text-balance es:text-xs es:not-contrast-more:opacity-65", subtitleClassName), children: subtitle }),
61
+ label && /* @__PURE__ */ jsx("span", { className: clsx("es:text-balance", labelBaseClassName, labelClassName), children: label }),
62
+ subtitle && /* @__PURE__ */ jsx("span", { className: clsx("es:text-balance es:text-xs es:not-contrast-more:opacity-65", subtitleBaseClassName, subtitleClassName), children: subtitle }),
61
63
  endIcon && /* @__PURE__ */ jsx("span", { className: clsx("es:icon:size-5 es:not-contrast-more:opacity-85 es:ml-auto", iconClassName), children: endIcon })
62
64
  ] });
63
65
  }
64
66
  return /* @__PURE__ */ jsxs(ComponentToRender, { className: clsx("es:flex es:items-center es:gap-1.75 es:text-sm", fullWidth && "es:grow", className), children: [
65
67
  icon && /* @__PURE__ */ jsx("span", { className: clsx("es:icon:size-5 es:shrink-0", "es:not-contrast-more:opacity-85", iconClassName), children: icon }),
66
68
  (label || subtitle) && /* @__PURE__ */ jsxs("div", { className: clsx("es:flex es:items-start es:text-balance es:text-start", inlineSubtitle ? "es:gap-1.5" : "es:flex-col", labelSubtitleWrapClassName), children: [
67
- label && /* @__PURE__ */ jsx("span", { className: clsx('es:font-variation-["wdth"_120,"wght"_400]', labelClassName), children: label }),
68
- subtitle && /* @__PURE__ */ jsx("span", { className: clsx(!fullSizeSubtitle && "es:text-12", "es:not-contrast-more:opacity-65", subtitleClassName), children: subtitle })
69
+ label && /* @__PURE__ */ jsx("span", { className: clsx(labelBaseClassName, labelClassName), children: label }),
70
+ subtitle && /* @__PURE__ */ jsx("span", { className: clsx(!fullSizeSubtitle && "es:text-12", subtitleBaseClassName, "es:not-contrast-more:opacity-65", subtitleClassName), children: subtitle })
69
71
  ] }),
70
72
  endIcon && /* @__PURE__ */ jsx("span", { className: clsx("es:icon:size-5 es:shrink-0", "es:not-contrast-more:opacity-85 es:ml-auto", iconClassName), children: endIcon })
71
73
  ] });
@@ -2,14 +2,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
3
3
  import { _ as __, a as _n } from "../../default-i18n-CnQeC5Pl.js";
4
4
  import { BaseControl } from "../base-control/base-control.js";
5
- import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-BME59dt-.js";
6
- import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-CFnNdpNZ.js";
7
- import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, i as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-DDfABlp4.js";
8
- import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-B4X6-x6r.js";
9
- import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BDlf9vIY.js";
10
- import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$dca12b0bb56e4fc } from "../../ListBox-ByPsaVVK.js";
11
- import { g as getGroupedOptions, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-HdRrpnhs.js";
12
- import { $ as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionManager-iru59gc4.js";
5
+ import { $ as $d2f53cda644affe3$export$2f2b9559550c7bbc, a as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-B_yKFXRk.js";
6
+ import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-DtRmB6b8.js";
7
+ import { f as $07b14b47974efb58$export$5b6b19405a83ff9d, i as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-DTIxSDhz.js";
8
+ import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BG9DaxYN.js";
9
+ import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-_aSf9-8u.js";
10
+ import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$dca12b0bb56e4fc } from "../../ListBox-DXFyyj_r.js";
11
+ import { g as getGroupedOptions, $ as $82d7e5349645de74$export$ef9b1a59e592288f, a as $82d7e5349645de74$export$e288731fd71264f0, S as SelectClearButton, O as OptionItemBase } from "../../shared-CNH8QfV9.js";
12
+ import { $ as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionManager-B02LcxLr.js";
13
13
  import { useMemo, useRef, cloneElement } from "react";
14
14
  import { icons } from "../../icons/icons.js";
15
15
  import "../../react-jsx-parser.min-DAh4myol.js";
@@ -231,7 +231,7 @@ const AsyncMultiSelect = (props) => {
231
231
  }).filter(Boolean);
232
232
  onChange(selectedValues);
233
233
  };
234
- const ref = useRef();
234
+ const ref = useRef(null);
235
235
  const currentValueKeys = value?.map((item) => item?.value ?? item);
236
236
  const buttonClass = cva("es:any-focus:outline-hidden es:text-start es:size-full es:inline-block es:group es:overflow-x-clip", {
237
237
  variants: {
@@ -413,10 +413,12 @@ const AsyncMultiSelect = (props) => {
413
413
  slot: null
414
414
  },
415
415
  className: "es:grid es:grid-cols-1 es:grid-rows-[auto_minmax(0,1fr)] es:p-0!",
416
- wrapperClassName: "es:w-72 es:px-1.5 es:h-fit es:from-surface-300/35 es:to-surface-300/35 es:overflow-clip es:rounded-20!",
416
+ wrapperClassName: "es:w-(--select-width) es:min-w-72 es:px-1.5 es:h-fit es:from-surface-300/35 es:to-surface-300/35 es:overflow-clip es:rounded-20!",
417
417
  hidden: noReorder || disabled || (value ?? [])?.length < 2,
418
+ style: { "--select-width": ref.current ? `${ref.current.offsetWidth}px` : "var(--trigger-width)" },
419
+ triggerRef: ref,
418
420
  children: [
419
- /* @__PURE__ */ jsx("span", { className: 'es:text-base es:mx-auto es:my-1 es:font-variation-["wdth"_140,"wght"_320] es:text-surface-600', children: __("Item order", "eightshift-ui-components") }),
421
+ /* @__PURE__ */ jsx("span", { className: 'es:text-sm es:ml-3 es:mt-2 es:mb-1 es:font-variation-["wdth"_100,"wght"_325,"ROND"_100] es:text-surface-600', children: __("Item order", "eightshift-ui-components") }),
420
422
  /* @__PURE__ */ jsx(
421
423
  DraggableList,
422
424
  {
@@ -464,7 +466,8 @@ const AsyncMultiSelect = (props) => {
464
466
  $07b14b47974efb58$export$5b6b19405a83ff9d,
465
467
  {
466
468
  className: ({ isEntering, isExiting }) => clsx(
467
- "es:w-(--trigger-width) es:min-w-72",
469
+ "es:font-sans",
470
+ "es:w-(--select-width) es:min-w-72",
468
471
  "es:outline-hidden",
469
472
  "es:rounded-b-xl es:rounded-t-3xl",
470
473
  "es:overflow-clip es:grid es:grid-cols-1",
@@ -488,6 +491,7 @@ const AsyncMultiSelect = (props) => {
488
491
  placement: "bottom left",
489
492
  maxHeight: 260,
490
493
  triggerRef: ref,
494
+ style: { "--select-width": ref.current ? `${ref.current.offsetWidth}px` : "var(--trigger-width)" },
491
495
  children: /* @__PURE__ */ jsxs(
492
496
  $d2f53cda644affe3$export$2f2b9559550c7bbc,
493
497
  {