@eightshift/ui-components 5.6.0 → 6.0.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 (150) hide show
  1. package/dist/{Button-BhEIfWLY.js → Button-BXjXzdW_.js} +13 -13
  2. package/dist/{Dialog-B8p4Ymh7.js → Dialog-D8bjn-nh.js} +404 -77
  3. package/dist/{FieldError-B8BgFmIQ.js → FieldError-DwBG6m1U.js} +2 -2
  4. package/dist/{FocusScope-B5vxRkHm.js → FocusScope-BMk5oZCk.js} +8 -8
  5. package/dist/{Heading-B5aEynOM.js → Heading-BmRX4BRL.js} +3 -3
  6. package/dist/{Hidden-rE6uR-lr.js → Hidden-Rfj-STx7.js} +4 -4
  7. package/dist/{Input-8yja_IHC.js → Input-CNNksOWg.js} +11 -11
  8. package/dist/{Label-DWVaNd2E.js → Label-D8a3eYb-.js} +4 -4
  9. package/dist/{List-Bll1lQEW.js → List-BGHOoFf0.js} +8 -8
  10. package/dist/{ListBox-CEpKw7yC.js → ListBox-Dd37zMvs.js} +40 -41
  11. package/dist/{OverlayArrow-DDfa8khI.js → OverlayArrow-DokC40S3.js} +6 -6
  12. package/dist/{PortalProvider---wyKpMr.js → PortalProvider-CHPnqDSH.js} +2 -2
  13. package/dist/RadioGroup-BVFvITWO.js +371 -0
  14. package/dist/{SearchField-D6mPli0i.js → SearchField-CHYnN-jt.js} +16 -16
  15. package/dist/{SelectionManager-D77bfEbg.js → SelectionManager-N8X7T_4D.js} +44 -46
  16. package/dist/{SharedElementTransition-BjRNHsjx.js → SharedElementTransition-BDT84GtD.js} +3 -3
  17. package/dist/{Slider-DfU6bRtH.js → Slider-CL5CM9S8.js} +23 -23
  18. package/dist/{Text-AxKZjtFm.js → Text-ztX6G1zR.js} +3 -3
  19. package/dist/{VisuallyHidden-CgnIuZJ2.js → VisuallyHidden-DTUuKFiI.js} +4 -4
  20. package/dist/assets/style-admin.css +12156 -2
  21. package/dist/assets/style-editor.css +12156 -2
  22. package/dist/assets/style.css +12162 -2
  23. package/dist/assets/wp-overrides/allow-full-width-blocks.css +6 -0
  24. package/dist/assets/wp-overrides/fix-label-text-case.css +29 -0
  25. package/dist/assets/wp-overrides/increase-sidebar-width.css +4 -0
  26. package/dist/assets/wp-overrides/make-block-messages-nicer.css +155 -0
  27. package/dist/assets/wp-overrides/replace-fonts.css +8 -0
  28. package/dist/assets/wp-overrides/restyle-tooltips.css +194 -0
  29. package/dist/assets/wp-overrides/round-corners.css +200 -0
  30. package/dist/assets/wp-overrides/unify-button-sizes.css +5 -0
  31. package/dist/clsx-DgYk2OaC.js +16 -0
  32. package/dist/{Color-WxFE7lQB.js → color-swatch-CFIuSPcO.js} +124 -6
  33. package/dist/components/animated-visibility/animated-visibility.js +25 -17
  34. package/dist/components/base-control/base-control.js +8 -5
  35. package/dist/components/base-control/container.js +204 -0
  36. package/dist/components/breakpoint-preview/breakpoint-preview.js +0 -1
  37. package/dist/components/button/button.js +249 -155
  38. package/dist/components/checkbox/checkbox.js +96 -37
  39. package/dist/components/color-pickers/color-picker.js +16 -7
  40. package/dist/components/color-pickers/color-swatch.js +5 -57
  41. package/dist/components/color-pickers/gradient-editor.js +161 -138
  42. package/dist/components/color-pickers/solid-color-picker.js +308 -206
  43. package/dist/components/component-toggle/component-toggle.js +12 -8
  44. package/dist/components/container-panel/container-panel.js +54 -31
  45. package/dist/components/draggable/draggable-handle.js +8 -7
  46. package/dist/components/draggable/draggable.js +2 -2
  47. package/dist/components/draggable-list/draggable-list-item.js +21 -12
  48. package/dist/components/draggable-list/draggable-list.js +19 -21
  49. package/dist/components/expandable/expandable.js +56 -28
  50. package/dist/components/index.js +7 -21
  51. package/dist/components/input-field/input-field.js +112 -35
  52. package/dist/components/item-collection/item-collection.js +1 -1
  53. package/dist/components/link-input/link-input.js +181 -121
  54. package/dist/components/matrix-align/matrix-align.js +54 -21
  55. package/dist/components/menu/menu.js +26 -34
  56. package/dist/components/modal/modal.js +31 -28
  57. package/dist/components/notice/notice.js +45 -28
  58. package/dist/components/number-picker/number-picker.js +151 -101
  59. package/dist/components/option-select/option-select.js +40 -4
  60. package/dist/components/options-panel/options-panel.js +52 -25
  61. package/dist/components/placeholders/file-picker-shell.js +10 -10
  62. package/dist/components/placeholders/file-placeholder.js +14 -6
  63. package/dist/components/placeholders/image-placeholder.js +14 -4
  64. package/dist/components/placeholders/media-placeholder.js +11 -4
  65. package/dist/components/popover/popover.js +14 -11
  66. package/dist/components/portal-provider/portal-provider.js +1 -1
  67. package/dist/components/radio/radio.js +118 -429
  68. package/dist/components/repeater/repeater-item.js +7 -10
  69. package/dist/components/repeater/repeater.js +9 -15
  70. package/dist/components/responsive/mini-responsive.js +53 -62
  71. package/dist/components/responsive/responsive-legacy.js +1 -2
  72. package/dist/components/responsive/responsive.js +27 -28
  73. package/dist/components/responsive-preview/responsive-preview.js +1 -2
  74. package/dist/components/rich-label/rich-label.js +5 -5
  75. package/dist/components/select/async-multi-select.js +467 -100
  76. package/dist/components/select/{v2/async-select.js → async-select.js} +182 -106
  77. package/dist/components/select/multi-select.js +437 -83
  78. package/dist/components/select/shared.js +14 -42
  79. package/dist/components/select/single-select.js +349 -54
  80. package/dist/components/slider/column-config-slider.js +138 -45
  81. package/dist/components/slider/slider.js +265 -205
  82. package/dist/components/slider/utils.js +32 -1
  83. package/dist/components/smart-image/smart-image.js +27 -6
  84. package/dist/components/smart-image/worker-inline.js +1 -1
  85. package/dist/components/spacer/spacer.js +2 -2
  86. package/dist/components/tabs/tabs.js +370 -101
  87. package/dist/components/toggle/switch.js +174 -39
  88. package/dist/components/toggle/toggle.js +6 -3
  89. package/dist/components/toggle-button/toggle-button.js +140 -56
  90. package/dist/components/tooltip/tooltip.js +27 -26
  91. package/dist/{context-DMOmz986.js → context-BQvmiUqb.js} +3 -3
  92. package/dist/{default-i18n-DBm-GqWM.js → default-i18n-CnQeC5Pl.js} +10 -10
  93. package/dist/{general-6STKQIrk.js → general-B6pOveVp.js} +13 -12
  94. package/dist/icons/icons.js +28 -9
  95. package/dist/icons/jsx-svg.js +1 -1
  96. package/dist/icons/spinner.js +3 -1
  97. package/dist/{index-Dq3gT5pW.js → index-BHpUy2Ix.js} +1 -1
  98. package/dist/{index-DjyEH0Gg.js → index-oFgxU4zs.js} +6 -4
  99. package/dist/index.js +6 -20
  100. package/dist/proxy-0B6wWuDe.js +7409 -0
  101. package/dist/{react-jsx-parser.min-VUl-CuCv.js → react-jsx-parser.min-B_hvYYa1.js} +5 -5
  102. package/dist/{Select-CHzjZxXy.js → shared-DwjRce5e.js} +170 -36
  103. package/dist/{textSelection-DbCKqaw8.js → textSelection-CwHUtNVX.js} +1 -1
  104. package/dist/{useButton-B2EaQJT_.js → useButton-DdZrS1Kz.js} +3 -3
  105. package/dist/{useEvent-BifIGnVS.js → useEvent-BD7Olibq.js} +1 -1
  106. package/dist/{useFilter-BPcJ-Jzv.js → useFilter-bhxeEDg8.js} +1 -1
  107. package/dist/{useFocusRing-Cgm0R4Cf.js → useFocusRing-D3b7Kh4P.js} +1 -1
  108. package/dist/{useFormReset-yV9VVy9R.js → useFormReset-WUv2PdFO.js} +1 -1
  109. package/dist/{useFormValidation-CeNsUGWK.js → useFormValidation-DQeXkyLm.js} +2 -2
  110. package/dist/{useHover-BRDW3y7-.js → useHover-Bycb7BsD.js} +7 -7
  111. package/dist/{useLabel-C8umX0gk.js → useLabel-Bnv4-T24.js} +2 -2
  112. package/dist/{useLabels-Cdxi6JSa.js → useLabels-B49ptFDX.js} +1 -1
  113. package/dist/{useListState-DZycqxCn.js → useListState-ZKhRO8ML.js} +1 -1
  114. package/dist/{useLocalizedStringFormatter-eaZiN2tE.js → useLocalizedStringFormatter-NETP-8H8.js} +1 -1
  115. package/dist/{useNumberField-CEA9Q4w_.js → useNumberField-D2fUHql3.js} +10 -10
  116. package/dist/{useNumberFormatter-BCmkV-7c.js → useNumberFormatter-DGvuRCn7.js} +1 -1
  117. package/dist/{usePress-BCEPS3hl.js → usePress-B8OteQMu.js} +6 -6
  118. package/dist/{useSingleSelectListState-BFZEfeqI.js → useSingleSelectListState-BBTu4shO.js} +2 -2
  119. package/dist/{useToggle-DNoP2bvV.js → useToggle-BZhaYwZl.js} +4 -4
  120. package/dist/{useToggleState-CzN79ary.js → useToggleState-VkXJjsru.js} +1 -1
  121. package/dist/utilities/general.js +2 -2
  122. package/dist/utilities/hash.js +30 -0
  123. package/dist/utilities/index.js +4 -6
  124. package/dist/{utils-cvK1vxO7.js → utils-DGpXyJOJ.js} +29 -42
  125. package/dist/workers/image-analysis.worker.js +3 -3
  126. package/package.json +26 -23
  127. package/dist/ColorSwatch-xVS3rMYS.js +0 -66
  128. package/dist/Select-ef7c0426.esm-BJmjGGzK.js +0 -2474
  129. package/dist/Separator-DcqCdD4k.js +0 -344
  130. package/dist/_commonjsHelpers-BhWcALO8.js +0 -38
  131. package/dist/assets/wp-font-enhancements.css +0 -2
  132. package/dist/assets/wp-ui-enhancements.css +0 -2
  133. package/dist/components/select/async-single-select.js +0 -138
  134. package/dist/components/select/custom-select-default-components.js +0 -38
  135. package/dist/components/select/multi-select-components.js +0 -8
  136. package/dist/components/select/react-select-component-wrappers.js +0 -90
  137. package/dist/components/select/styles.js +0 -49
  138. package/dist/components/select/v2/async-multi-select.js +0 -433
  139. package/dist/components/select/v2/multi-select.js +0 -404
  140. package/dist/components/select/v2/shared.js +0 -69
  141. package/dist/components/select/v2/single-select.js +0 -358
  142. package/dist/index-641ee5b8.esm-DiwvO-RP.js +0 -3139
  143. package/dist/modifiers.esm-BuJQPI1X.js +0 -31
  144. package/dist/multi-select-components-B3KuDyYd.js +0 -3744
  145. package/dist/react-select-async.esm-_4pk-41v.js +0 -107
  146. package/dist/react-select.esm-BeuAkAyY.js +0 -15
  147. package/dist/sha256-C56UDWfQ.js +0 -533
  148. package/dist/useDragAndDrop-DUXKDS0N.js +0 -3925
  149. package/dist/wp/wp-font-enhancements.js +0 -1
  150. package/dist/wp/wp-ui-enhancements.js +0 -1
@@ -1,20 +1,14 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useId, useState } from "react";
3
- import { _ as __ } from "../../default-i18n-DBm-GqWM.js";
3
+ import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
4
4
  import { Button } from "../button/button.js";
5
5
  import { icons } from "../../icons/icons.js";
6
6
  import { BaseControl } from "../base-control/base-control.js";
7
7
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
8
8
  import { RepeaterContext } from "./repeater-context.js";
9
9
  import { c as clsx } from "../../lite-DVmmD_-j.js";
10
- import { L as List, a as arrayRemove, b as arrayMove } from "../../List-Bll1lQEW.js";
10
+ import { L as List, a as arrayRemove, b as arrayMove } from "../../List-BGHOoFf0.js";
11
11
  import { Menu, MenuItem, MenuSeparator } from "../menu/menu.js";
12
- const fixIds = (items, itemIdBase) => {
13
- return items?.map((item, i) => ({
14
- ...item,
15
- id: item?.id ?? `${itemIdBase}-${i}`
16
- }));
17
- };
18
12
  /**
19
13
  * A component that allows re-ordering a list of items with additional sub-options.
20
14
  *
@@ -77,7 +71,7 @@ const Repeater = (props) => {
77
71
  const {
78
72
  children,
79
73
  onChange,
80
- items: rawItems,
74
+ items,
81
75
  icon,
82
76
  label,
83
77
  subtitle,
@@ -104,7 +98,6 @@ const Repeater = (props) => {
104
98
  if (typeof rawItems === "undefined" || rawItems === null || !Array.isArray(rawItems)) {
105
99
  console.warn(__("Repeater: 'items' are not an array or are undefined!", "eightshift-ui-components"));
106
100
  }
107
- const items = fixIds(rawItems ?? [], itemIdBase);
108
101
  const canDelete = items.length > (minItems ?? 0);
109
102
  const canAdd = items.length < (maxItems ?? Number.MAX_SAFE_INTEGER) && !addDisabled;
110
103
  if (hidden) {
@@ -154,7 +147,8 @@ const Repeater = (props) => {
154
147
  icon: icons.add,
155
148
  className: clsx("es:icon:size-4", !hideEmptyState && items.length < 1 && "es:invisible"),
156
149
  tooltip: __("Add item", "eightshift-ui-components"),
157
- disabled: addDisabled || !canAdd
150
+ disabled: addDisabled || !canAdd,
151
+ type: "simple"
158
152
  }
159
153
  ),
160
154
  addButton && /* @__PURE__ */ jsx("div", { className: clsx(!hideEmptyState && items.length < 1 && "es:invisible"), children: addButton({
@@ -173,14 +167,14 @@ const Repeater = (props) => {
173
167
  /* @__PURE__ */ jsx(
174
168
  List,
175
169
  {
176
- values: items.map((item) => ({ ...item, disabled: openItems[item.id] })),
170
+ values: items.map((item) => ({ ...item, disabled: openItems?.[item?.id] })),
177
171
  onChange: ({ oldIndex, newIndex }) => onChange(newIndex === -1 ? arrayRemove(items, oldIndex) : arrayMove(items, oldIndex, newIndex)),
178
172
  renderList: ({ children: children2, props: props2 }) => {
179
173
  const { key, ...rest } = props2;
180
174
  return /* @__PURE__ */ jsx(
181
175
  "ul",
182
176
  {
183
- className: clsx("es:w-full es:list-none", className),
177
+ className: clsx("es:w-full es:list-none es:m-0! es:flex es:flex-col es:gap-1", className),
184
178
  ...rest,
185
179
  children: children2
186
180
  },
@@ -192,7 +186,7 @@ const Repeater = (props) => {
192
186
  return /* @__PURE__ */ jsx(
193
187
  "li",
194
188
  {
195
- className: "es:group es:w-full es:list-none es:any-focus:outline-hidden",
189
+ className: "es:group es:w-full es:list-none es:any-focus:outline-hidden es:m-0!",
196
190
  ...rest,
197
191
  children: /* @__PURE__ */ jsx(
198
192
  RepeaterContext.Provider,
@@ -241,7 +235,7 @@ const Repeater = (props) => {
241
235
  }
242
236
  )
243
237
  },
244
- item?.id ?? key
238
+ key
245
239
  );
246
240
  },
247
241
  removableByMove: !noDragToRemove
@@ -3,18 +3,16 @@ import { cloneElement } from "react";
3
3
  import { DecorativeTooltip } from "../tooltip/tooltip.js";
4
4
  import { c as clsx } from "../../lite-DVmmD_-j.js";
5
5
  import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
6
- import { _ as __ } from "../../default-i18n-DBm-GqWM.js";
6
+ 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
- import "../../sha256-C56UDWfQ.js";
10
9
  import { icons } from "../../icons/icons.js";
11
10
  import { ResponsivePreview } from "../responsive-preview/responsive-preview.js";
12
11
  import { ButtonGroup, Button } from "../button/button.js";
13
- import { Spacer } from "../spacer/spacer.js";
14
12
  import { BaseControl } from "../base-control/base-control.js";
15
13
  import { TriggeredPopover } from "../popover/popover.js";
16
14
  import { OptionSelect } from "../option-select/option-select.js";
17
- import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-AxKZjtFm.js";
15
+ import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-ztX6G1zR.js";
18
16
  /**
19
17
  * A compact, inline version of `Responsive`. Allows the user to set different values for different breakpoints.
20
18
  *
@@ -119,13 +117,13 @@ const MiniResponsive = (props) => {
119
117
  offset: 7.5,
120
118
  arrow: true,
121
119
  text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-64 es:p-1", children: [
122
- /* @__PURE__ */ jsx("span", { className: "es:block es:text-balance es:font-semibold es:tabular-nums", children: __("Default", "eightshift-ui-components") }),
123
- /* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", 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: [
124
122
  !firstMobileFirstOverride && !lastDesktopFirstOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
125
123
  firstMobileFirstOverride && !isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[firstMobileFirstOverride] - 1),
126
124
  lastDesktopFirstOverride && isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[lastDesktopFirstOverride.replace("max-", "")])
127
125
  ] }),
128
- /* @__PURE__ */ jsxs("div", { className: "es:mx-auto", children: [
126
+ /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-5", children: [
129
127
  firstMobileFirstOverride && !isDesktopFirst && /* @__PURE__ */ jsx(
130
128
  BreakpointPreview,
131
129
  {
@@ -168,7 +166,7 @@ const MiniResponsive = (props) => {
168
166
  )
169
167
  ] })
170
168
  ] }),
171
- children: /* @__PURE__ */ jsx("div", { className: "es:flex es:size-7 es:items-center es:justify-center es:rounded es:border es:border-accent-500/10 es:bg-accent-50 es:p-0.5 es:text-accent-800 es:shadow-sm es:shadow-accent-600/25 es:icon:size-5", children: icons?.[overrideIcon] ?? overrideIcon ?? icons[`screen${upperFirst(isDesktopFirst ? rawBreakpoints.at(-1) : rawBreakpoints.at(0))}`] })
169
+ children: /* @__PURE__ */ jsx("div", { className: "es:icon:size-6 es:mx-0.5 es:text-accent-700", children: icons?.[overrideIcon] ?? overrideIcon ?? icons[`screen${upperFirst(isDesktopFirst ? rawBreakpoints.at(-1) : rawBreakpoints.at(0))}`] })
172
170
  }
173
171
  );
174
172
  };
@@ -195,43 +193,22 @@ const MiniResponsive = (props) => {
195
193
  /* @__PURE__ */ jsxs(
196
194
  TriggeredPopover,
197
195
  {
198
- triggerButtonIcon: cloneElement(isDesktopFirst ? icons.responsiveOverridesAlt : icons.responsiveOverridesAlt2, { className: "es:size-5!" }),
196
+ triggerButtonIcon: cloneElement(icons.dropdownCaretAlt, { className: "es:size-5!" }),
199
197
  triggerButtonProps: {
200
198
  tooltip: __("Responsive overrides", "eightshift-ui-components"),
201
- className: "es:w-7"
199
+ className: "es:w-6"
202
200
  },
203
- className: "es:min-w-80 es:divide-y es:divide-secondary-200 es:p-0!",
201
+ className: "es:min-w-80 es:p-0!",
202
+ wrapperClassName: "es:rounded-3xl",
204
203
  children: [
205
- /* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:justify-between es:p-2", children: [
206
- /* @__PURE__ */ jsx($514c0188e459b4c0$export$5f1af8db9871e1d6, { className: "es:block es:text-xs es:text-secondary-500", children: __("Responsive overrides", "eightshift-ui-components") }),
207
- /* @__PURE__ */ jsx(
208
- OptionSelect,
209
- {
210
- hidden: noModeSelect,
211
- "aria-label": __("Breakpoint mode", "eightshift-ui-components"),
212
- value: isDesktopFirst,
213
- onChange: (newMode) => {
214
- onChange({
215
- _default: value["_default"],
216
- _desktopFirst: newMode
217
- });
218
- },
219
- options: [
220
- { label: __("Mobile-first", "eightshift-ui-components"), subtitle: __("Default", "eightshift-ui-components"), value: false },
221
- { label: __("Desktop-first", "eightshift-ui-components"), value: true }
222
- ],
223
- wrapperProps: { triggerProps: { size: "small" } },
224
- type: "menu",
225
- tooltip: true
226
- }
227
- )
228
- ] }),
229
- /* @__PURE__ */ jsxs("div", { className: "es:space-y-2 es:px-2 es:py-2.5", 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") }) }),
205
+ /* @__PURE__ */ jsxs("div", { className: "es:px-2 es:mt-1 es:space-y-0.5", children: [
230
206
  !isDesktopFirst && /* @__PURE__ */ jsxs(
231
207
  "div",
232
208
  {
233
209
  className: clsx(
234
210
  "es:grid es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
211
+ "es:bg-white/50 es:p-1.5 es:rounded-sm es:first:rounded-t-2xl es:last:rounded-b-2xl es:inset-ring es:inset-ring-accent-600/25",
235
212
  innerContentAlign === "start" && "es:justify-items-start",
236
213
  innerContentAlign === "center" && "es:justify-items-center",
237
214
  innerContentAlign === "end" && "es:justify-items-end",
@@ -263,7 +240,8 @@ const MiniResponsive = (props) => {
263
240
  "div",
264
241
  {
265
242
  className: clsx(
266
- "es:grid es:grid-cols-[minmax(0,auto)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
243
+ "es:grid es:grid-cols-[minmax(0,auto)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-1.5",
244
+ "es:bg-white/50 es:p-1.5 es:rounded-sm es:first:rounded-t-2xl es:last:rounded-b-2xl es:inset-ring es:inset-ring-surface-200/60",
267
245
  innerContentAlign === "start" && "es:justify-items-start",
268
246
  innerContentAlign === "center" && "es:justify-items-center",
269
247
  innerContentAlign === "end" && "es:justify-items-end",
@@ -278,8 +256,8 @@ const MiniResponsive = (props) => {
278
256
  offset: 7.5,
279
257
  arrow: true,
280
258
  text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-96 es:p-1", children: [
281
- /* @__PURE__ */ jsx("span", { className: "es:block es:font-semibold", children: breakpointUiData?.[realBreakpointName]?.label ?? upperFirst(realBreakpointName) }),
282
- /* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", 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: [
283
261
  !isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
284
262
  !belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[realBreakpointName]),
285
263
  belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
@@ -299,8 +277,8 @@ const MiniResponsive = (props) => {
299
277
  typeof value[breakpoint] === "undefined" && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint?.replace("max-", "")])
300
278
  ] })
301
279
  ] }),
302
- typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: "es:mt-2 es:block es:font-medium es:italic", children: __("Not set", "eightshift-ui-components") }),
303
- typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-2", children: [
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") }),
281
+ typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-5", children: [
304
282
  !isDesktopFirst && /* @__PURE__ */ jsx(
305
283
  BreakpointPreview,
306
284
  {
@@ -369,10 +347,7 @@ const MiniResponsive = (props) => {
369
347
  children: /* @__PURE__ */ jsx(
370
348
  "div",
371
349
  {
372
- className: clsx(
373
- "es:flex es:size-7 es:items-center es:justify-center es:rounded es:border es:p-0.5 es:shadow-sm es:transition-colors es:icon:size-5",
374
- typeof value[breakpoint] !== "undefined" ? "es:border-secondary-200 es:bg-secondary-50 es:text-secondary-700" : "es:border-secondary-100 es:bg-white es:text-secondary-500"
375
- ),
350
+ className: clsx("es:transition-colors es:icon:size-6 es:mx-0.5", typeof value[breakpoint] !== "undefined" ? "es:text-surface-600" : "es:text-surface-300"),
376
351
  children: icons?.[breakpointUiData?.[realBreakpointName]?.icon] ?? breakpointUiData?.[realBreakpointName]?.icon ?? icons?.[`screen${upperFirst(realBreakpointName)}`]
377
352
  }
378
353
  )
@@ -413,6 +388,7 @@ const MiniResponsive = (props) => {
413
388
  {
414
389
  className: clsx(
415
390
  "es:grid es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
391
+ "es:bg-white/50 es:p-1.5 es:rounded-sm es:first:rounded-t-2xl es:last:rounded-b-2xl es:inset-ring es:inset-ring-accent-600/25",
416
392
  innerContentAlign === "start" && "es:justify-items-start",
417
393
  innerContentAlign === "center" && "es:justify-items-center",
418
394
  innerContentAlign === "end" && "es:justify-items-end",
@@ -436,15 +412,15 @@ const MiniResponsive = (props) => {
436
412
  "_default-desktop-first"
437
413
  )
438
414
  ] }),
439
- /* @__PURE__ */ jsxs("div", { className: "es:grid es:grid-cols-[1fr_auto_1fr] es:gap-x-1 es:px-1", children: [
440
- /* @__PURE__ */ jsx(
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(
441
417
  TriggeredPopover,
442
418
  {
443
419
  triggerButtonLabel: __("Responsive preview", "eightshift-ui-components"),
444
420
  triggerButtonProps: {
445
421
  disabled: !Object.keys(value).some((key) => !key?.startsWith("_") && typeof value?.[key] !== "undefined"),
446
422
  type: "ghost",
447
- className: "es:my-1"
423
+ className: "es:w-fill"
448
424
  },
449
425
  children: /* @__PURE__ */ jsx(
450
426
  ResponsivePreview,
@@ -459,16 +435,8 @@ const MiniResponsive = (props) => {
459
435
  }
460
436
  )
461
437
  }
462
- ),
463
- /* @__PURE__ */ jsx(
464
- Spacer,
465
- {
466
- className: "es:*:bg-secondary-200!",
467
- vertical: true,
468
- border: true
469
- }
470
- ),
471
- /* @__PURE__ */ jsx(
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(
472
440
  Button,
473
441
  {
474
442
  icon: icons.clearAlt,
@@ -481,11 +449,34 @@ const MiniResponsive = (props) => {
481
449
  onChange(newValue);
482
450
  },
483
451
  type: "ghost",
484
- className: "es:my-1 es:justify-center",
485
- children: __("Clear all overrides", "eightshift-ui-components")
452
+ className: "es:w-fill",
453
+ children: __("Clear overrides", "eightshift-ui-components")
486
454
  }
487
- )
488
- ] })
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"
478
+ }
479
+ )
489
480
  ]
490
481
  }
491
482
  )
@@ -3,10 +3,9 @@ import { useState } from "react";
3
3
  import { DecorativeTooltip } from "../tooltip/tooltip.js";
4
4
  import { c as clsx } from "../../lite-DVmmD_-j.js";
5
5
  import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
6
- import { _ as __ } from "../../default-i18n-DBm-GqWM.js";
6
+ 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
- import "../../sha256-C56UDWfQ.js";
10
9
  import { icons } from "../../icons/icons.js";
11
10
  import { Button } from "../button/button.js";
12
11
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
@@ -3,10 +3,9 @@ import { useState } from "react";
3
3
  import { DecorativeTooltip } from "../tooltip/tooltip.js";
4
4
  import { c as clsx } from "../../lite-DVmmD_-j.js";
5
5
  import { s as sprintf } from "../../sprintf-DmNrJSYG.js";
6
- import { _ as __ } from "../../default-i18n-DBm-GqWM.js";
6
+ 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
- import "../../sha256-C56UDWfQ.js";
10
9
  import { icons } from "../../icons/icons.js";
11
10
  import { Menu, MenuSectionHeader, MenuItem, MenuSeparator, SubMenuItem } from "../menu/menu.js";
12
11
  import { ResponsivePreview } from "../responsive-preview/responsive-preview.js";
@@ -119,18 +118,18 @@ const Responsive = (props) => {
119
118
  DecorativeTooltip,
120
119
  {
121
120
  placement: "left",
122
- className: "es:p-3",
121
+ className: "es:p-4! es:rounded-2xl!",
123
122
  theme: "light",
124
123
  offset: 7.5,
125
124
  arrow: true,
126
125
  text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-64 es:p-1", children: [
127
- /* @__PURE__ */ jsx("span", { className: "es:block es:text-balance es:font-semibold es:tabular-nums", children: __("Default", "eightshift-ui-components") }),
128
- /* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", 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: [
129
128
  !firstMobileFirstOverride && !lastDesktopFirstOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
130
129
  firstMobileFirstOverride && !isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[firstMobileFirstOverride] - 1),
131
130
  lastDesktopFirstOverride && isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[lastDesktopFirstOverride.replace("max-", "")])
132
131
  ] }),
133
- /* @__PURE__ */ jsxs("div", { className: "es:mx-auto", children: [
132
+ /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-5", children: [
134
133
  firstMobileFirstOverride && !isDesktopFirst && /* @__PURE__ */ jsx(
135
134
  BreakpointPreview,
136
135
  {
@@ -173,7 +172,7 @@ const Responsive = (props) => {
173
172
  )
174
173
  ] })
175
174
  ] }),
176
- children: /* @__PURE__ */ jsx("div", { className: "es:flex es:size-7 es:items-center es:justify-center es:rounded es:border es:border-accent-500/10 es:bg-accent-50 es:p-0.5 es:text-accent-800 es:shadow-sm es:shadow-accent-600/25 es:icon:size-5", children: icons?.[overrideIcon] ?? overrideIcon ?? icons[`screen${upperFirst(isDesktopFirst ? rawBreakpoints.at(-1) : rawBreakpoints.at(0))}`] })
175
+ children: /* @__PURE__ */ jsx("div", { className: "es:icon:size-6 es:mx-0.5 es:text-accent-700", children: icons?.[overrideIcon] ?? overrideIcon ?? icons[`screen${upperFirst(isDesktopFirst ? rawBreakpoints.at(-1) : rawBreakpoints.at(0))}`] })
177
176
  }
178
177
  );
179
178
  };
@@ -211,7 +210,7 @@ const Responsive = (props) => {
211
210
  /* @__PURE__ */ jsx(
212
211
  ToggleButton,
213
212
  {
214
- icon: isDesktopFirst ? icons.responsiveOverridesAlt : icons.responsiveOverridesAlt2,
213
+ icon: icons.responsiveOverridesAlt3Fill,
215
214
  onChange: () => setDetailsVisible(!detailsVisible),
216
215
  selected: detailsVisible,
217
216
  tooltip: detailsVisible ? __("Hide responsive overrides", "eightshift-ui-components") : __("Show responsive overrides", "eightshift-ui-components")
@@ -223,7 +222,7 @@ const Responsive = (props) => {
223
222
  "aria-label": __("Responsive options", "eightshift-ui-components"),
224
223
  tooltip: __("Responsive options", "eightshift-ui-components"),
225
224
  popoverProps: { placement: "bottom right" },
226
- triggerProps: { className: "es:w-5.5 es:stroke-[1.25]" },
225
+ triggerProps: { className: "es:w-6 es:stroke-[1.25]" },
227
226
  triggerIcon: icons.dropdownCaretAlt,
228
227
  children: [
229
228
  !noModeSelect && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -295,6 +294,7 @@ const Responsive = (props) => {
295
294
  });
296
295
  onChange(newValue);
297
296
  },
297
+ danger: true,
298
298
  children: __("Clear all overrides", "eightshift-ui-components")
299
299
  }
300
300
  )
@@ -308,12 +308,13 @@ const Responsive = (props) => {
308
308
  "div",
309
309
  {
310
310
  className: clsx(
311
- "es:grid es:items-center es:gap-x-2 es:transition-[grid-template-columns,margin-block-end] es:duration-150",
311
+ "es:grid es:items-center es:gap-x-2 es:transition-[grid-template-columns,margin-block-end] es:duration-200",
312
+ detailsVisible && "es:bg-white/50 es:p-1.5 es:rounded-sm es:first:rounded-t-2xl es:last:rounded-b-2xl es:inset-ring es:inset-ring-accent-600/25",
312
313
  innerContentAlign === "start" && "es:justify-items-start",
313
314
  innerContentAlign === "center" && "es:justify-items-center",
314
315
  innerContentAlign === "end" && "es:justify-items-end",
315
316
  innerContentAlign === "stretch" && "es:justify-items-stretch",
316
- detailsVisible ? "es:mb-2 es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)]" : "es:grid-cols-[minmax(0,0rem)_minmax(0,1fr)_minmax(0,2.25rem)]"
317
+ detailsVisible ? "es:mb-0.5 es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)]" : "es:grid-cols-[minmax(0,0rem)_minmax(0,1fr)_minmax(0,2.25rem)]"
317
318
  ),
318
319
  children: [
319
320
  detailsVisible && /* @__PURE__ */ jsx(DefaultTooltip, {}),
@@ -335,7 +336,8 @@ const Responsive = (props) => {
335
336
  AnimatedVisibility,
336
337
  {
337
338
  className: clsx(
338
- "es:mb-2 es:grid es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
339
+ "es:mb-0.5 es:grid es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
340
+ "es:bg-white/50 es:p-1.5 es:rounded-sm es:first:rounded-t-2xl es:last:rounded-b-2xl es:inset-ring es:inset-ring-accent-600/25",
339
341
  innerContentAlign === "start" && "es:justify-items-start",
340
342
  innerContentAlign === "center" && "es:justify-items-center",
341
343
  innerContentAlign === "end" && "es:justify-items-end",
@@ -363,7 +365,7 @@ const Responsive = (props) => {
363
365
  AnimatedVisibility,
364
366
  {
365
367
  visible: detailsVisible,
366
- className: "es:space-y-2",
368
+ className: "es:space-y-0.5",
367
369
  children: breakpointsToMap.map((breakpoint, i) => {
368
370
  const realBreakpointName = breakpoint.replace("max-", "");
369
371
  const filterBreakpoints = isDesktopFirst ? [...breakpointsToMap, "_default"] : ["_default", ...breakpointsToMap];
@@ -374,6 +376,9 @@ const Responsive = (props) => {
374
376
  {
375
377
  className: clsx(
376
378
  "es:grid es:grid-cols-[minmax(0,auto)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
379
+ "es:bg-white/50 es:p-1.5 es:rounded-sm es:inset-ring es:inset-ring-surface-200/60",
380
+ !isDesktopFirst && "es:last:rounded-b-2xl",
381
+ isDesktopFirst && "es:first:rounded-t-2xl",
377
382
  innerContentAlign === "start" && "es:justify-items-start",
378
383
  innerContentAlign === "center" && "es:justify-items-center",
379
384
  innerContentAlign === "end" && "es:justify-items-end",
@@ -385,11 +390,12 @@ const Responsive = (props) => {
385
390
  {
386
391
  placement: "left",
387
392
  theme: "light",
393
+ className: "es:p-4! es:rounded-2xl!",
388
394
  offset: 7.5,
389
395
  arrow: true,
390
396
  text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-96 es:p-1", children: [
391
- /* @__PURE__ */ jsx("span", { className: "es:block es:font-semibold", children: breakpointUiData?.[realBreakpointName]?.label ?? upperFirst(realBreakpointName) }),
392
- /* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", 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: [
393
399
  !isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
394
400
  !belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[realBreakpointName]),
395
401
  belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
@@ -409,8 +415,8 @@ const Responsive = (props) => {
409
415
  typeof value[breakpoint] === "undefined" && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint?.replace("max-", "")])
410
416
  ] })
411
417
  ] }),
412
- typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: "es:mt-2 es:block es:font-medium es:italic", children: __("Not set", "eightshift-ui-components") }),
413
- typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-2", children: [
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") }),
419
+ typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-5", children: [
414
420
  !isDesktopFirst && /* @__PURE__ */ jsx(
415
421
  BreakpointPreview,
416
422
  {
@@ -476,16 +482,7 @@ const Responsive = (props) => {
476
482
  )
477
483
  ] })
478
484
  ] }),
479
- children: /* @__PURE__ */ jsx(
480
- "div",
481
- {
482
- className: clsx(
483
- "es:flex es:size-7 es:items-center es:justify-center es:rounded es:border es:p-0.5 es:shadow-sm es:transition-colors es:icon:size-5",
484
- typeof value[breakpoint] !== "undefined" ? "es:border-secondary-200 es:bg-secondary-50 es:text-secondary-700" : "es:border-secondary-100 es:bg-white es:text-secondary-500"
485
- ),
486
- children: icons?.[breakpointUiData?.[realBreakpointName]?.icon] ?? breakpointUiData?.[realBreakpointName]?.icon ?? icons?.[`screen${upperFirst(realBreakpointName)}`]
487
- }
488
- )
485
+ children: /* @__PURE__ */ jsx("div", { className: clsx("es:transition-colors es:icon:size-6 es:mx-0.5", typeof value[breakpoint] !== "undefined" ? "es:text-surface-600" : "es:text-surface-300"), children: icons?.[breakpointUiData?.[realBreakpointName]?.icon] ?? breakpointUiData?.[realBreakpointName]?.icon ?? icons?.[`screen${upperFirst(realBreakpointName)}`] })
489
486
  }
490
487
  ),
491
488
  children({
@@ -525,11 +522,12 @@ const Responsive = (props) => {
525
522
  {
526
523
  className: clsx(
527
524
  "es:grid es:items-center es:gap-x-2 es:transition-[grid-template-columns,margin-block-start] es:duration-150",
525
+ detailsVisible && "es:bg-white/50 es:p-1.5 es:rounded-sm es:first:rounded-t-2xl es:last:rounded-b-2xl es:inset-ring es:inset-ring-accent-600/25 es:transition-plus",
528
526
  innerContentAlign === "start" && "es:justify-items-start",
529
527
  innerContentAlign === "center" && "es:justify-items-center",
530
528
  innerContentAlign === "end" && "es:justify-items-end",
531
529
  innerContentAlign === "stretch" && "es:justify-items-stretch",
532
- detailsVisible ? "es:mt-2! es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)]" : "es:grid-cols-[minmax(0,0rem)_minmax(0,1fr)_minmax(0,2.25rem)]"
530
+ detailsVisible ? "es:mt-0.5 es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)]" : "es:grid-cols-[minmax(0,0rem)_minmax(0,1fr)_minmax(0,2.25rem)]"
533
531
  ),
534
532
  children: [
535
533
  detailsVisible && /* @__PURE__ */ jsx(DefaultTooltip, {}),
@@ -552,6 +550,7 @@ const Responsive = (props) => {
552
550
  {
553
551
  className: clsx(
554
552
  "es:grid es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2 es:pt-1",
553
+ "es:bg-white/50 es:p-1.5 es:rounded-sm es:first:rounded-t-2xl es:last:rounded-b-2xl es:inset-ring es:inset-ring-accent-600/25",
555
554
  innerContentAlign === "start" && "es:justify-items-start",
556
555
  innerContentAlign === "center" && "es:justify-items-center",
557
556
  innerContentAlign === "end" && "es:justify-items-end",
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { _ as __ } from "../../default-i18n-DBm-GqWM.js";
2
+ import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
3
3
  import { upperFirst } from "../../utilities/es-dash.js";
4
- import "../../sha256-C56UDWfQ.js";
5
4
  import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
6
5
  import { icons } from "../../icons/icons.js";
7
6
  import { RichLabel } from "../rich-label/rich-label.js";
@@ -55,20 +55,20 @@ const RichLabel = (props) => {
55
55
  const ComponentToRender = as ?? "div";
56
56
  if (contentsOnly) {
57
57
  return /* @__PURE__ */ jsxs(Fragment, { children: [
58
- icon && /* @__PURE__ */ jsx("span", { className: clsx("es:icon:size-5", !noColor && "es:text-slate-500", iconClassName), children: icon }),
58
+ icon && /* @__PURE__ */ jsx("span", { className: clsx("es:icon:size-5", !noColor && "es:text-secondary-500", iconClassName), children: icon }),
59
59
  label && /* @__PURE__ */ jsx("span", { className: clsx("es:text-balance", !noColor && "es:text-secondary-800", labelClassName), children: label }),
60
- subtitle && /* @__PURE__ */ jsx("span", { className: clsx("es:text-balance es:text-xs es:not-contrast-more:opacity-65", !noColor && "es:text-secondary-800", subtitleClassName), children: subtitle })
60
+ subtitle && /* @__PURE__ */ jsx("span", { className: clsx("es:text-balance es:text-xs es:not-contrast-more:opacity-65", !noColor && "es:text-secondary-700", subtitleClassName), children: subtitle })
61
61
  ] });
62
62
  }
63
63
  return /* @__PURE__ */ jsxs(
64
64
  ComponentToRender,
65
65
  {
66
- className: clsx("es:flex es:items-center es:gap-2 es:text-sm", !noColor && "es:text-secondary-800 es:[&>span>svg]:text-slate-500", fullWidth && "es:grow", className),
66
+ className: clsx("es:flex es:items-center es:gap-1.75 es:text-sm", !noColor && "es:text-secondary-700 es:any-icon:text-secondary-500", fullWidth && "es:grow", className),
67
67
  children: [
68
68
  icon && /* @__PURE__ */ jsx("span", { className: clsx("es:icon:size-5 es:shrink-0", noColor && "es:not-contrast-more:opacity-80", iconClassName), children: icon }),
69
69
  (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: [
70
- label && /* @__PURE__ */ jsx("span", { className: labelClassName, children: label }),
71
- subtitle && /* @__PURE__ */ jsx("span", { className: clsx(!fullSizeSubtitle && "es:text-xs", "es:not-contrast-more:opacity-65", subtitleClassName), children: subtitle })
70
+ label && /* @__PURE__ */ jsx("span", { className: clsx('es:font-variation-["wdth"_120,"wght"_400]', labelClassName), children: label }),
71
+ subtitle && /* @__PURE__ */ jsx("span", { className: clsx(!fullSizeSubtitle && "es:text-12", "es:not-contrast-more:opacity-65", subtitleClassName), children: subtitle })
72
72
  ] })
73
73
  ]
74
74
  }