@eightshift/ui-components 1.1.3 → 1.2.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 (37) hide show
  1. package/dist/assets/style.css +1 -1
  2. package/dist/{button-CD8Q1eok.js → button-MFj-FKsM.js} +1 -1
  3. package/dist/components/button/button.js +2 -2
  4. package/dist/components/checkbox/checkbox.js +2 -2
  5. package/dist/components/color-pickers/gradient-editor.js +26 -14
  6. package/dist/components/color-pickers/solid-color-picker.js +7 -3
  7. package/dist/components/component-toggle/component-toggle.js +2 -2
  8. package/dist/components/container-panel/container-panel.js +5 -5
  9. package/dist/components/draggable-list/draggable-list-item.js +1 -1
  10. package/dist/components/expandable/expandable.js +2 -2
  11. package/dist/components/index.js +3 -3
  12. package/dist/components/input-field/input-field.js +1 -0
  13. package/dist/components/link-input/link-input.js +3 -4
  14. package/dist/components/matrix-align/matrix-align.js +3 -3
  15. package/dist/components/menu/menu.js +17 -7
  16. package/dist/components/number-picker/number-picker.js +1 -1
  17. package/dist/components/option-select/option-select.js +1 -1
  18. package/dist/components/options-panel/options-panel.js +1 -1
  19. package/dist/components/popover/popover.js +2 -2
  20. package/dist/components/radio/radio.js +2 -2
  21. package/dist/components/repeater/repeater-item.js +1 -1
  22. package/dist/components/repeater/repeater.js +7 -4
  23. package/dist/components/responsive/responsive-legacy.js +7 -7
  24. package/dist/components/responsive/responsive.js +2 -2
  25. package/dist/components/responsive-preview/responsive-preview.js +5 -5
  26. package/dist/components/select/async-multi-select.js +1 -1
  27. package/dist/components/select/async-single-select.js +2 -2
  28. package/dist/components/select/shared.js +4 -0
  29. package/dist/components/select/styles.js +9 -8
  30. package/dist/components/slider/slider.js +4 -5
  31. package/dist/components/tabs/tabs.js +1 -1
  32. package/dist/components/toggle-button/toggle-button.js +1 -1
  33. package/dist/components/tooltip/tooltip.js +1 -1
  34. package/dist/index.js +3 -3
  35. package/dist/{popover-Dk2o4S7K.js → popover-CdonDPqG.js} +7 -2
  36. package/dist/{tooltip-BRQ4tvZL.js → tooltip-Do_imFfg.js} +3 -3
  37. package/package.json +1 -1
@@ -6,7 +6,7 @@ import React__default, { useState, useRef, forwardRef, createContext } from "rea
6
6
  import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-4oSz1ItD.js";
7
7
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
8
8
  import { c as clsx } from "./lite-DVmmD_-j.js";
9
- import { T as Tooltip } from "./tooltip-BRQ4tvZL.js";
9
+ import { T as Tooltip } from "./tooltip-Do_imFfg.js";
10
10
  import { _ as __ } from "./default-i18n-BqwLkgZv.js";
11
11
  function $2680b1829e803644$export$fa142eb1681c520(props, ref) {
12
12
  const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, orientation = "horizontal" } = props;
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../Button-CbFrFO04.js";
3
- import { B, a } from "../../button-CD8Q1eok.js";
3
+ import { B, a } from "../../button-MFj-FKsM.js";
4
4
  import "../../lite-DVmmD_-j.js";
5
- import "../../tooltip-BRQ4tvZL.js";
5
+ import "../../tooltip-Do_imFfg.js";
6
6
  import "../../default-i18n-BqwLkgZv.js";
7
7
  import "../../utils-Dc35LwuT.js";
8
8
  export {
@@ -79,13 +79,13 @@ const Checkbox = (props) => {
79
79
  {
80
80
  className: clsx(
81
81
  "es-uic-flex es-uic-size-5 es-uic-items-center es-uic-justify-center es-uic-rounded-md es-uic-border es-uic-text-gray-600 es-uic-shadow-sm es-uic-transition",
82
- isSelected ? "es-uic-border-teal-600 es-uic-bg-teal-600 es-uic-text-white" : "es-uic-border-gray-300"
82
+ isSelected || indeterminate ? "es-uic-border-teal-600 es-uic-bg-teal-600 es-uic-text-white" : "es-uic-border-gray-300"
83
83
  ),
84
84
  children: [
85
85
  /* @__PURE__ */ jsx(
86
86
  AnimatedVisibility,
87
87
  {
88
- transition: "scaleRotateFade",
88
+ transition: "scaleFade",
89
89
  visible: isIndeterminate,
90
90
  children: /* @__PURE__ */ jsx("div", { className: "es-uic-h-[1.5px] es-uic-w-3 es-uic-rounded es-uic-bg-white" })
91
91
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { _ as __, s as sprintf } from "../../default-i18n-BqwLkgZv.js";
3
3
  import { useMemo } from "react";
4
- import { a as ButtonGroup } from "../../button-CD8Q1eok.js";
4
+ import { a as ButtonGroup } from "../../button-MFj-FKsM.js";
5
5
  import { ToggleButton } from "../toggle-button/toggle-button.js";
6
6
  import { Repeater } from "../repeater/repeater.js";
7
7
  import { RepeaterItem } from "../repeater/repeater-item.js";
@@ -146,42 +146,50 @@ const linearDirections = [
146
146
  {
147
147
  label: __("Right"),
148
148
  value: "right",
149
- iconClass: "es-uic-bg-gradient-to-r"
149
+ iconClass: "es-uic-bg-gradient-to-r",
150
+ valueDegrees: 90
150
151
  },
151
152
  {
152
153
  label: __("Left"),
153
154
  value: "left",
154
- iconClass: "es-uic-bg-gradient-to-l"
155
+ iconClass: "es-uic-bg-gradient-to-l",
156
+ valueDegrees: 180
155
157
  },
156
158
  {
157
159
  label: __("Top"),
158
160
  value: "top",
159
- iconClass: "es-uic-bg-gradient-to-t"
161
+ iconClass: "es-uic-bg-gradient-to-t",
162
+ valueDegrees: 270
160
163
  },
161
164
  {
162
165
  label: __("Bottom"),
163
166
  value: "bottom",
164
- iconClass: "es-uic-bg-gradient-to-b"
167
+ iconClass: "es-uic-bg-gradient-to-b",
168
+ valueDegrees: 90
165
169
  },
166
170
  {
167
171
  label: __("Top-right"),
168
172
  value: "top right",
169
- iconClass: "es-uic-bg-gradient-to-tr"
173
+ iconClass: "es-uic-bg-gradient-to-tr",
174
+ valueDegrees: 45
170
175
  },
171
176
  {
172
177
  label: __("Top-left"),
173
178
  value: "top left",
174
- iconClass: "es-uic-bg-gradient-to-tl"
179
+ iconClass: "es-uic-bg-gradient-to-tl",
180
+ valueDegrees: 315
175
181
  },
176
182
  {
177
183
  label: __("Bottom-right"),
178
184
  value: "bottom right",
179
- iconClass: "es-uic-bg-gradient-to-br"
185
+ iconClass: "es-uic-bg-gradient-to-br",
186
+ valueDegrees: 135
180
187
  },
181
188
  {
182
189
  label: __("Bottom-left"),
183
190
  value: "bottom left",
184
- iconClass: "es-uic-bg-gradient-to-bl"
191
+ iconClass: "es-uic-bg-gradient-to-bl",
192
+ valueDegrees: 225
185
193
  }
186
194
  ];
187
195
  /**
@@ -205,7 +213,7 @@ const linearDirections = [
205
213
  * @preserve
206
214
  */
207
215
  const GradientEditor = (props) => {
208
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
216
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
209
217
  const { value, onChange, hidden } = props;
210
218
  const gradientData = useMemo(() => {
211
219
  if ((value == null ? void 0 : value.startsWith("radial-gradient")) || (value == null ? void 0 : value.startsWith("repeating-radial-gradient"))) {
@@ -273,7 +281,11 @@ const GradientEditor = (props) => {
273
281
  },
274
282
  suffix: "°",
275
283
  size: "small",
276
- className: "es-uic-grow"
284
+ className: "es-uic-grow",
285
+ placeholder: ((_d = linearDirections.find(({ value: value2 }) => {
286
+ var _a2;
287
+ return value2 === ((_a2 = gradientData == null ? void 0 : gradientData.orientation) == null ? void 0 : _a2.value);
288
+ })) == null ? void 0 : _d.valueDegrees) ?? ""
277
289
  }
278
290
  ),
279
291
  /* @__PURE__ */ jsx(
@@ -347,7 +359,7 @@ const GradientEditor = (props) => {
347
359
  {
348
360
  icon: icons.centerPoint,
349
361
  label: __("Center point", "eightshift-ui-components"),
350
- value: `${((_e = (_d = gradientData == null ? void 0 : gradientData.position) == null ? void 0 : _d.y) == null ? void 0 : _e.value) ?? "center"} ${((_g = (_f = gradientData == null ? void 0 : gradientData.position) == null ? void 0 : _f.x) == null ? void 0 : _g.value) ?? "center"}`,
362
+ value: `${((_f = (_e = gradientData == null ? void 0 : gradientData.position) == null ? void 0 : _e.y) == null ? void 0 : _f.value) ?? "center"} ${((_h = (_g = gradientData == null ? void 0 : gradientData.position) == null ? void 0 : _g.x) == null ? void 0 : _h.value) ?? "center"}`,
351
363
  onChange: (position) => {
352
364
  const [x2, y2] = position.split(" ");
353
365
  setGradientData({
@@ -387,7 +399,7 @@ const GradientEditor = (props) => {
387
399
  {
388
400
  icon: icons.centerPoint,
389
401
  label: __("Center point", "eightshift-ui-components"),
390
- value: `${((_i = (_h = gradientData == null ? void 0 : gradientData.position) == null ? void 0 : _h.y) == null ? void 0 : _i.value) ?? "center"} ${((_k = (_j = gradientData == null ? void 0 : gradientData.position) == null ? void 0 : _j.x) == null ? void 0 : _k.value) ?? "center"}`,
402
+ value: `${((_j = (_i = gradientData == null ? void 0 : gradientData.position) == null ? void 0 : _i.y) == null ? void 0 : _j.value) ?? "center"} ${((_l = (_k = gradientData == null ? void 0 : gradientData.position) == null ? void 0 : _k.x) == null ? void 0 : _l.value) ?? "center"}`,
391
403
  onChange: (value2) => {
392
404
  setGradientData({
393
405
  ...gradientData,
@@ -473,7 +485,7 @@ const GradientEditor = (props) => {
473
485
  min: 0,
474
486
  max: 100,
475
487
  step: 1,
476
- value: (_l = gradientData == null ? void 0 : gradientData.stops) == null ? void 0 : _l.map(({ offset }, i) => {
488
+ value: (_m = gradientData == null ? void 0 : gradientData.stops) == null ? void 0 : _m.map(({ offset }, i) => {
477
489
  if (!offset) {
478
490
  return i * 100 / (gradientData.stops.length - 1);
479
491
  }
@@ -24,7 +24,7 @@ import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, b as $d2e8511e6f209edf$
24
24
  import { c as clsx } from "../../lite-DVmmD_-j.js";
25
25
  import { BaseControl } from "../base-control/base-control.js";
26
26
  import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
27
- import { T as TriggeredPopover } from "../../popover-Dk2o4S7K.js";
27
+ import { T as TriggeredPopover } from "../../popover-CdonDPqG.js";
28
28
  import { icons } from "../../icons/icons.js";
29
29
  import { Spacer } from "../spacer/spacer.js";
30
30
  const $e2b71ec1d6016406$export$c80c0ea2ca5cb846 = /* @__PURE__ */ createContext(null);
@@ -1246,9 +1246,12 @@ const $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = /* @__PURE__ */ forwardRef($1c
1246
1246
  * @param {boolean} [props.disabled] - Whether the color picker is disabled.
1247
1247
  * @param {Function} [props.onChangeEnd] - The change end handler.
1248
1248
  * @param {boolean} [props.allowTransparency=false] - Whether the color picker allows transparency.
1249
- * @param {import('react-aria-components').ColorFormat} [props.outputFormat] - The output format. Default is 'hex' (or 'hexa' if `allowTransparency` is true).
1249
+ * @param {OutputColorFormat} [props.outputFormat] - The output format. Default is 'hex' (or 'hexa' if `allowTransparency` is true).
1250
+ * @param {boolean} [props.noAdvancedOptions] - If `true`, the advanced options are hidden.
1250
1251
  * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
1251
1252
  *
1253
+ * @typedef {'hex' | 'hexa' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsb' | 'hsba'} OutputColorFormat
1254
+ *
1252
1255
  * @returns {JSX.Element} The ButtonGroup component.
1253
1256
  *
1254
1257
  * @example
@@ -1257,7 +1260,7 @@ const $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = /* @__PURE__ */ forwardRef($1c
1257
1260
  * @preserve
1258
1261
  */
1259
1262
  const SolidColorPicker = (props) => {
1260
- const { value: rawValue, onChange, disabled, onChangeEnd, allowTransparency = false, outputFormat, hidden } = props;
1263
+ const { value: rawValue, onChange, disabled, onChangeEnd, allowTransparency = false, outputFormat, hidden, noAdvancedOptions } = props;
1261
1264
  const value = rawValue == null ? void 0 : rawValue.replace("transparent", "rgba(0, 0, 0, 0)");
1262
1265
  const defaultColor = $799cddbef784668f$export$6e865ea70d7724f("#00000000").toFormat(allowTransparency ? "hsla" : "hsl");
1263
1266
  const modifiedValue = value && (value == null ? void 0 : value.length) > 1 ? $799cddbef784668f$export$6e865ea70d7724f(value) : defaultColor;
@@ -1405,6 +1408,7 @@ const SolidColorPicker = (props) => {
1405
1408
  disabled,
1406
1409
  tooltip: __("Advanced color options", "eightshift-ui-components")
1407
1410
  },
1411
+ hidden: noAdvancedOptions,
1408
1412
  children: [
1409
1413
  /* @__PURE__ */ jsx($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: "es-uic-text-sm", children: __("Advanced color options", "eightshift-ui-components") }),
1410
1414
  /* @__PURE__ */ jsx(
@@ -3,8 +3,8 @@ import { s as sprintf, _ as __ } from "../../default-i18n-BqwLkgZv.js";
3
3
  import { Expandable } from "../expandable/expandable.js";
4
4
  import { icons } from "../../icons/icons.js";
5
5
  import { Switch } from "../toggle/switch.js";
6
- import { T as TriggeredPopover } from "../../popover-Dk2o4S7K.js";
7
- import { a as ButtonGroup } from "../../button-CD8Q1eok.js";
6
+ import { T as TriggeredPopover } from "../../popover-CdonDPqG.js";
7
+ import { a as ButtonGroup } from "../../button-MFj-FKsM.js";
8
8
  import { ToggleButton } from "../toggle-button/toggle-button.js";
9
9
  import { Spacer } from "../spacer/spacer.js";
10
10
  import { c as clsx } from "../../lite-DVmmD_-j.js";
@@ -3,7 +3,7 @@ import { useState } from "react";
3
3
  import { c as clsx } from "../../lite-DVmmD_-j.js";
4
4
  import { Switch } from "../toggle/switch.js";
5
5
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
6
- import { B as Button } from "../../button-CD8Q1eok.js";
6
+ import { B as Button } from "../../button-MFj-FKsM.js";
7
7
  import { icons } from "../../icons/icons.js";
8
8
  import { HStack } from "../layout/hstack.js";
9
9
  import { BaseControl } from "../base-control/base-control.js";
@@ -36,7 +36,7 @@ import { BaseControl } from "../base-control/base-control.js";
36
36
  const ContainerPanel = (props) => {
37
37
  const { children, className, title, icon, subtitle, use, onUseChange, closable, startOpen = false, actions } = props;
38
38
  const [open, setOpen] = useState(startOpen);
39
- if (!title) {
39
+ if (!title && typeof use === "undefined") {
40
40
  return /* @__PURE__ */ jsx("div", { className: "es-uic-space-y-2 es-uic-border-t es-uic-border-t-gray-200 es-uic-p-4", children });
41
41
  }
42
42
  const justUse = !closable && typeof onUseChange !== "undefined";
@@ -90,14 +90,14 @@ const ContainerPanel = (props) => {
90
90
  justUse && use && "es-uic-pb-4",
91
91
  useAndClosable && use && open && "es-uic-pb-4",
92
92
  !justClosable && !justUse && !useAndClosable && "es-uic-pb-4",
93
- !closable && !onUseChange && "es-uic-px-4",
93
+ !closable && !onUseChange && typeof use === "undefined" && "es-uic-px-4",
94
94
  className
95
95
  ),
96
96
  labelContainerClassName: clsx((closable || onUseChange) && "es-uic-pl-4 es-uic-pr-3 es-uic-min-h-12", !(closable || onUseChange) && "es-uic-mt-3", "!es-uic-pb-0"),
97
97
  controlContainerClassName: "es-uic-px-4",
98
98
  labelClassName: "!es-uic-text-gray-500",
99
99
  children: [
100
- !closable && !onUseChange && children,
100
+ !closable && !onUseChange && typeof use === "undefined" && children,
101
101
  closable && typeof use === "undefined" && /* @__PURE__ */ jsx(
102
102
  AnimatedVisibility,
103
103
  {
@@ -106,7 +106,7 @@ const ContainerPanel = (props) => {
106
106
  children
107
107
  }
108
108
  ),
109
- typeof use !== "undefined" && /* @__PURE__ */ jsx(
109
+ typeof use !== "undefined" && !closable && /* @__PURE__ */ jsx(
110
110
  AnimatedVisibility,
111
111
  {
112
112
  visible: closable ? use && open : use,
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-CEzzyr-l.js";
3
- import { B as Button } from "../../button-CD8Q1eok.js";
3
+ import { B as Button } from "../../button-MFj-FKsM.js";
4
4
  import { icons } from "../../icons/icons.js";
5
5
  import { c as clsx } from "../../lite-DVmmD_-j.js";
6
6
  import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import React__default from "react";
3
3
  import { RichLabel } from "../rich-label/rich-label.js";
4
4
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
5
- import { B as Button } from "../../button-CD8Q1eok.js";
5
+ import { B as Button } from "../../button-MFj-FKsM.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { c as clsx } from "../../lite-DVmmD_-j.js";
8
8
  import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
@@ -113,7 +113,7 @@ const Expandable = (props) => {
113
113
  AnimatedVisibility,
114
114
  {
115
115
  visible: isOpen,
116
- className: clsx("es-uic-space-y-2.5 es-uic-border-t es-uic-p-2", contentClassName),
116
+ className: clsx("es-uic-space-y-2.5 es-uic-border-t es-uic-border-t-gray-200 es-uic-p-2", contentClassName),
117
117
  transition: "slideFade",
118
118
  noInitial: true,
119
119
  children
@@ -1,7 +1,7 @@
1
1
  import { AnimatedVisibility } from "./animated-visibility/animated-visibility.js";
2
2
  import { BaseControl } from "./base-control/base-control.js";
3
3
  import { BreakpointPreview } from "./breakpoint-preview/breakpoint-preview.js";
4
- import { B, a } from "../button-CD8Q1eok.js";
4
+ import { B, a } from "../button-MFj-FKsM.js";
5
5
  import { Checkbox } from "./checkbox/checkbox.js";
6
6
  import { ComponentToggle } from "./component-toggle/component-toggle.js";
7
7
  import { ContainerPanel } from "./container-panel/container-panel.js";
@@ -24,7 +24,7 @@ import { MediaPlaceholder } from "./placeholders/media-placeholder.js";
24
24
  import { Menu, MenuItem, MenuSection, MenuSeparator, SubMenuItem } from "./menu/menu.js";
25
25
  import { Notice } from "./notice/notice.js";
26
26
  import { NumberPicker } from "./number-picker/number-picker.js";
27
- import { P, T } from "../popover-Dk2o4S7K.js";
27
+ import { P, T } from "../popover-CdonDPqG.js";
28
28
  import { RadioButton, RadioButtonGroup } from "./radio/radio.js";
29
29
  import { Repeater } from "./repeater/repeater.js";
30
30
  import { RepeaterItem } from "./repeater/repeater-item.js";
@@ -45,7 +45,7 @@ import { Tab, TabList, TabPanel, Tabs } from "./tabs/tabs.js";
45
45
  import { Toggle } from "./toggle/toggle.js";
46
46
  import { Switch } from "./toggle/switch.js";
47
47
  import { ToggleButton } from "./toggle-button/toggle-button.js";
48
- import { D, T as T2 } from "../tooltip-BRQ4tvZL.js";
48
+ import { D, T as T2 } from "../tooltip-Do_imFfg.js";
49
49
  import { VStack } from "./layout/vstack.js";
50
50
  export {
51
51
  AnimatedVisibility,
@@ -185,6 +185,7 @@ const InputField = (props) => {
185
185
  $3985021b0ad6602f$export$f5b8910cec6cf069,
186
186
  {
187
187
  ...other,
188
+ type,
188
189
  className: clsx(
189
190
  "es-uic-min-h-10 es-uic-w-full es-uic-rounded-md es-uic-border es-uic-border-gray-300 es-uic-p-2 es-uic-text-sm es-uic-shadow-sm es-uic-transition selection:es-uic-bg-teal-500/20 selection:es-uic-text-teal-950",
190
191
  "focus:es-uic-outline-none focus-visible:es-uic-outline-none focus-visible:es-uic-ring focus-visible:es-uic-ring-teal-500 focus-visible:es-uic-ring-opacity-50",
@@ -11,16 +11,16 @@ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMP
11
11
  import React__default, { useReducer, useRef, useEffect, forwardRef, createContext, useMemo, useState } from "react";
12
12
  import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-BS4dllCW.js";
13
13
  import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-BQCMno9k.js";
14
- import { $ as $13c3c67164f4d5be$export$4c260019440d418f, B as Button } from "../../button-CD8Q1eok.js";
14
+ import { $ as $13c3c67164f4d5be$export$4c260019440d418f, B as Button } from "../../button-MFj-FKsM.js";
15
15
  import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
16
16
  import { icons } from "../../icons/icons.js";
17
17
  import { c as clsx } from "../../lite-DVmmD_-j.js";
18
18
  import { Spacer } from "../spacer/spacer.js";
19
- import { T as Tooltip } from "../../tooltip-BRQ4tvZL.js";
19
+ import { T as Tooltip } from "../../tooltip-Do_imFfg.js";
20
20
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
21
21
  import { BaseControl } from "../base-control/base-control.js";
22
22
  import { RichLabel } from "../rich-label/rich-label.js";
23
- import { P as Popover } from "../../popover-Dk2o4S7K.js";
23
+ import { P as Popover } from "../../popover-CdonDPqG.js";
24
24
  import { a as $0d86e9c8f07f9a7b$export$79c0c687a5963b0a } from "../../useListData-BpYQj7kK.js";
25
25
  var $03c9a1a10de12f06$exports = {};
26
26
  $03c9a1a10de12f06$exports = {
@@ -649,7 +649,6 @@ function c(e, u, c2) {
649
649
  * @param {JSX.Element} [props.icon=icons.globe] - Icon to display in the label.
650
650
  * @param {JSX.Element} [props.removeIcon=icons.clearAlt] - Icon to display in the input's clear button.
651
651
  * @param {boolean} [props.disabled=false] - If `true`, the input is disabled.
652
- * @param {Function} [props.suggestionTypeIconOverride] - Function
653
652
  * @param {Function} [props.fetchSuggestions] - A function that fetches suggestions based on the input value.
654
653
  * @param {string} [props.className] - Classes to pass to the input field.
655
654
  * @param {number} [props.inputDebounceDelay=500] - The delay in milliseconds before the input value is considered final.
@@ -1,12 +1,12 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState, useRef } from "react";
3
3
  import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
4
- import { P as Popover } from "../../popover-Dk2o4S7K.js";
5
- import { B as Button } from "../../button-CD8Q1eok.js";
4
+ import { P as Popover } from "../../popover-CdonDPqG.js";
5
+ import { B as Button } from "../../button-MFj-FKsM.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { upperFirst, camelCase } from "../../utilities/es-dash.js";
8
8
  import { c as clsx } from "../../lite-DVmmD_-j.js";
9
- import { T as Tooltip } from "../../tooltip-BRQ4tvZL.js";
9
+ import { T as Tooltip } from "../../tooltip-Do_imFfg.js";
10
10
  import { BaseControl } from "../base-control/base-control.js";
11
11
  /**
12
12
  * A component that can provide a 3x3 or a 2x2 grid of positions to pick from.
@@ -3,10 +3,10 @@ import { $ as $982254629710d113$export$b95089534ab7c1fd, b as $453cc9f0df89c0a5$
3
3
  import { p as $8a26561d2877236e$export$c24ed0104d07eab9, f as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, j as $7135fc7d473fd974$export$e7c29ae2353b16ea, n as $7135fc7d473fd974$export$6cd28814d92fa9c9, o as $7135fc7d473fd974$export$727c8fc270210f13, q as $7135fc7d473fd974$export$6e2c8f0811a474ce } from "../../SelectionManager-XOAt-Ekx.js";
4
4
  import { e as $bdb11010cef70236$export$f680877a34711e37, d as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, j as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, m as $5dc95899b306f630$export$c9058316764c140e, l as $df56164dff5785e2$export$4338b53315abf666, c as $64fa3d84918910a7$export$4d86445c2cf5e3, $ as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../../utils-Dc35LwuT.js";
5
5
  import React__default, { useRef, useState, useEffect, useCallback, useMemo, createContext, forwardRef, useContext, cloneElement } from "react";
6
- import { $ as $628037886ba31236$export$f9d5c8beee7d008d, a as $de32f1b87079253c$export$d2f961adcb0afbe, b as $07b14b47974efb58$export$9b9a0cd73afb7ca4, c as $f1ab8c75478c6f73$export$3351871ee4b288b8, d as $e0b6e0b68ec7f50f$export$872b660ac5a1ff98, P as Popover } from "../../popover-Dk2o4S7K.js";
6
+ import { $ as $628037886ba31236$export$f9d5c8beee7d008d, a as $de32f1b87079253c$export$d2f961adcb0afbe, b as $07b14b47974efb58$export$9b9a0cd73afb7ca4, c as $f1ab8c75478c6f73$export$3351871ee4b288b8, d as $e0b6e0b68ec7f50f$export$872b660ac5a1ff98, P as Popover } from "../../popover-CdonDPqG.js";
7
7
  import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJduR.js";
8
8
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
9
- import { $ as $9daab02d461809db$export$683480f191c0e3ea, a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../tooltip-BRQ4tvZL.js";
9
+ import { $ as $9daab02d461809db$export$683480f191c0e3ea, a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../tooltip-Do_imFfg.js";
10
10
  import { $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, w as $507fabe10e71c6fb$export$98e20ec92f614cfe, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-BS4dllCW.js";
11
11
  import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-BQCMno9k.js";
12
12
  import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "../../usePress-CScNeV3V.js";
@@ -15,7 +15,7 @@ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-4o
15
15
  import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-Bw-IatMO.js";
16
16
  import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-SPRI0-SN.js";
17
17
  import { icons } from "../../icons/icons.js";
18
- import { B as Button } from "../../button-CD8Q1eok.js";
18
+ import { B as Button } from "../../button-MFj-FKsM.js";
19
19
  import { c as clsx } from "../../lite-DVmmD_-j.js";
20
20
  import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
21
21
  var $c0398ad35c3639b7$exports = {};
@@ -1417,10 +1417,20 @@ const Menu = (props) => {
1417
1417
  */
1418
1418
  const MenuSection = (props) => {
1419
1419
  const { children, label } = props;
1420
- return /* @__PURE__ */ jsxs($7135fc7d473fd974$export$6e2c8f0811a474ce, { className: clsx("es-uic-space-y-1 es-uic-border-b es-uic-pb-1 last:es-uic-border-b-0", label && "es-uic-pt-2 first:es-uic-pt-1.5", !label && "last:es-uic-pb-1"), children: [
1421
- label && /* @__PURE__ */ jsx($72a5793c14baf454$export$8b251419efc915eb, { className: "es-uic-ml-1.5 es-uic-text-xs es-uic-font-medium es-uic-text-gray-400", children: label }),
1422
- children
1423
- ] });
1420
+ return /* @__PURE__ */ jsxs(
1421
+ $7135fc7d473fd974$export$6e2c8f0811a474ce,
1422
+ {
1423
+ className: clsx(
1424
+ "es-uic-space-y-1 es-uic-border-b es-uic-border-b-gray-200 es-uic-pb-1 last:es-uic-border-b-0",
1425
+ label && "es-uic-pt-2 first:es-uic-pt-1.5",
1426
+ !label && "last:es-uic-pb-1"
1427
+ ),
1428
+ children: [
1429
+ label && /* @__PURE__ */ jsx($72a5793c14baf454$export$8b251419efc915eb, { className: "es-uic-ml-1.5 es-uic-text-xs es-uic-font-medium es-uic-text-gray-400", children: label }),
1430
+ children
1431
+ ]
1432
+ }
1433
+ );
1424
1434
  };
1425
1435
  /**
1426
1436
  * A menu separator.
@@ -11,7 +11,7 @@ import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJ
11
11
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
12
12
  import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-4oSz1ItD.js";
13
13
  import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberFieldState-BegO5X6F.js";
14
- import { B as Button } from "../../button-CD8Q1eok.js";
14
+ import { B as Button } from "../../button-MFj-FKsM.js";
15
15
  import { icons } from "../../icons/icons.js";
16
16
  import { c as clsx } from "../../lite-DVmmD_-j.js";
17
17
  import { BaseControl } from "../base-control/base-control.js";
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Fragment } from "react";
3
3
  import { icons } from "../../icons/icons.js";
4
4
  import { BaseControl } from "../base-control/base-control.js";
5
- import { a as ButtonGroup } from "../../button-CD8Q1eok.js";
5
+ import { a as ButtonGroup } from "../../button-MFj-FKsM.js";
6
6
  import { Menu, MenuSeparator, MenuItem } from "../menu/menu.js";
7
7
  import { RadioButtonGroup, RadioButton } from "../radio/radio.js";
8
8
  import { RichLabel } from "../rich-label/rich-label.js";
@@ -36,7 +36,7 @@ const OptionsPanel = (props) => {
36
36
  }
37
37
  ),
38
38
  /* @__PURE__ */ jsx("div", { className: "es-uic-divide-y es-uic-divide-gray-200 es-uic-rounded-lg es-uic-border es-uic-border-gray-200 es-uic-bg-white es-uic-shadow", children }),
39
- help && /* @__PURE__ */ jsx("span", { className: "text-sm es-uic-mt-1.5 es-uic-block es-uic-text-gray-400", children: help })
39
+ help && /* @__PURE__ */ jsx("span", { className: "es-uic-mt-1.5 es-uic-block es-uic-text-sm es-uic-text-gray-400", children: help })
40
40
  ] });
41
41
  };
42
42
  const OptionsPanelSection = ({ children, className }) => {
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import { P, T } from "../../popover-Dk2o4S7K.js";
2
+ import { P, T } from "../../popover-CdonDPqG.js";
3
3
  import "../../lite-DVmmD_-j.js";
4
4
  import "../../default-i18n-BqwLkgZv.js";
5
- import "../../button-CD8Q1eok.js";
5
+ import "../../button-MFj-FKsM.js";
6
6
  export {
7
7
  P as Popover,
8
8
  T as TriggeredPopover
@@ -375,12 +375,12 @@ const RadioButton = (props) => {
375
375
  }
376
376
  const styleClassName = {
377
377
  segmented: clsx(
378
- "es-uic-py-1 es-uic-px-1.5 es-uic-border hover:es-uic-bg-gray-50 es-uic-transition es-uic-min-h-10",
378
+ "es-uic-py-1 es-uic-px-1.5 es-uic-border es-uic-border-gray-300 hover:es-uic-bg-gray-50 es-uic-transition es-uic-min-h-10",
379
379
  "first:es-uic-rounded-t-lg last:es-uic-rounded-b-lg",
380
380
  "focus-visible:es-uic-ring focus-visible:es-uic-ring-teal-500 focus-visible:es-uic-ring-opacity-50 focus-visible:es-uic-z-10"
381
381
  ),
382
382
  segmentedHorizontal: clsx(
383
- "es-uic-py-1 es-uic-px-1.5 es-uic-border hover:es-uic-bg-gray-50 es-uic-transition es-uic-grow es-uic-min-h-10",
383
+ "es-uic-py-1 es-uic-px-1.5 es-uic-border es-uic-border-gray-300 hover:es-uic-bg-gray-50 es-uic-transition es-uic-grow es-uic-min-h-10",
384
384
  "first:es-uic-rounded-l-lg last:es-uic-rounded-r-lg",
385
385
  "focus-visible:es-uic-ring focus-visible:es-uic-ring-teal-500 focus-visible:es-uic-ring-opacity-50 focus-visible:es-uic-z-10"
386
386
  )
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { $ as $bc237834342dbd75$export$48513f6b9f8ce62d } from "../../Checkbox-Cv3pZDHg.js";
3
3
  import { b as $72e60046c03fbe42$export$54fe942636b6416d, a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-CEzzyr-l.js";
4
- import { B as Button } from "../../button-CD8Q1eok.js";
4
+ import { B as Button } from "../../button-MFj-FKsM.js";
5
5
  import { icons } from "../../icons/icons.js";
6
6
  import { c as clsx } from "../../lite-DVmmD_-j.js";
7
7
  import { Expandable } from "../expandable/expandable.js";
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { b as $72e60046c03fbe42$export$54fe942636b6416d, $ as $72e60046c03fbe42$export$a7bfbda1311ca015 } from "../../GridList-CEzzyr-l.js";
3
3
  import { $ as $d8f176866e6dc039$export$2cfc5be7a55829f6, a as $d8f176866e6dc039$export$62ed72bc21f6b8a6 } from "../../ListBox-CCWXTj0t.js";
4
4
  import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
5
- import { B as Button, a as ButtonGroup } from "../../button-CD8Q1eok.js";
5
+ import { B as Button, a as ButtonGroup } from "../../button-MFj-FKsM.js";
6
6
  import { icons } from "../../icons/icons.js";
7
7
  import { useId, useState } from "react";
8
8
  import { BaseControl } from "../base-control/base-control.js";
@@ -108,7 +108,7 @@ const Repeater = (props) => {
108
108
  selectedKeys: rawList.selectionManager.selectedKeys,
109
109
  setSelectedKeys: (ids) => rawList.selectionManager.setSelectedKeys(ids),
110
110
  getKey: ({ id }) => items.find((item) => item.id === id),
111
- getItem: (id) => items.find((item) => item.id === id),
111
+ getItem: (id) => items == null ? void 0 : items.find((item) => item.id === id),
112
112
  update: (id, newValue) => {
113
113
  const index = [...items].findIndex((item) => item.id === id);
114
114
  items[index] = { ...items[index], ...newValue };
@@ -135,7 +135,10 @@ const Repeater = (props) => {
135
135
  };
136
136
  let { dragAndDropHooks } = $d8f176866e6dc039$export$2cfc5be7a55829f6({
137
137
  isDisabled: selectable || !canReorder,
138
- getItems: (ids) => [...ids].map((id) => ({ "text/plain": list.getItem(id).id })),
138
+ getItems: (ids) => [...ids].map((id) => {
139
+ var _a;
140
+ return { "text/plain": (_a = list == null ? void 0 : list.getItem(id)) == null ? void 0 : _a.id };
141
+ }),
139
142
  onReorder(e) {
140
143
  if (e.target.dropPosition === "before") {
141
144
  list.move(e.target.key, e.keys);
@@ -178,7 +181,7 @@ const Repeater = (props) => {
178
181
  {
179
182
  onPress: () => {
180
183
  var _a;
181
- const removedItems = [...((_a = list == null ? void 0 : list.selectedKeys.keys()) == null ? void 0 : _a.map((id) => list.getItem(id))) ?? []];
184
+ const removedItems = [...((_a = list == null ? void 0 : list.selectedKeys.keys()) == null ? void 0 : _a.map((id) => list == null ? void 0 : list.getItem(id))) ?? []];
182
185
  list.removeSelectedItems();
183
186
  setSelectable(false);
184
187
  setCanDelete(false);
@@ -1,12 +1,12 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { D as DecorativeTooltip } from "../../tooltip-BRQ4tvZL.js";
3
+ import { D as DecorativeTooltip } from "../../tooltip-Do_imFfg.js";
4
4
  import { c as clsx } from "../../lite-DVmmD_-j.js";
5
5
  import { _ as __, s as sprintf } from "../../default-i18n-BqwLkgZv.js";
6
6
  import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
7
7
  import { upperFirst } from "../../utilities/es-dash.js";
8
8
  import { icons } from "../../icons/icons.js";
9
- import { B as Button } from "../../button-CD8Q1eok.js";
9
+ import { B as Button } from "../../button-MFj-FKsM.js";
10
10
  import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
11
11
  import { ToggleButton } from "../toggle-button/toggle-button.js";
12
12
  import { BaseControl } from "../base-control/base-control.js";
@@ -91,7 +91,7 @@ const ResponsiveLegacy = (props) => {
91
91
  children,
92
92
  inline,
93
93
  breakpointData,
94
- breakpoints: rawBreakpoints = Object.keys(breakpointData).toReversed(),
94
+ breakpoints: rawBreakpoints = Object.entries(breakpointData).toSorted((a, b) => a[1] - b[1]).map(([breakpoint]) => breakpoint).toReversed(),
95
95
  hidden,
96
96
  innerContentAlign = "start"
97
97
  } = props;
@@ -132,7 +132,7 @@ const ResponsiveLegacy = (props) => {
132
132
  {
133
133
  breakpoint: __("Default", "eightshift-ui-components"),
134
134
  value: ((_b = options == null ? void 0 : options.find((opt) => opt.value === (value == null ? void 0 : value[attribute[defaultBreakpoint]]))) == null ? void 0 : _b.label) ?? upperFirst(value == null ? void 0 : value[defaultBreakpoint]),
135
- width: breakpointData[breakpoints.at(-1)],
135
+ width: breakpointData[globalOverride] + 1,
136
136
  dotsEnd: true,
137
137
  active: true
138
138
  }
@@ -258,10 +258,10 @@ const ResponsiveLegacy = (props) => {
258
258
  text: /* @__PURE__ */ jsxs("div", { className: "es-uic-max-w-96 es-uic-p-1", children: [
259
259
  /* @__PURE__ */ jsx("span", { className: "es-uic-block es-uic-font-semibold", children: upperFirst(breakpoint) }),
260
260
  /* @__PURE__ */ jsxs("span", { className: "es-uic-block es-uic-text-balance es-uic-tabular-nums", children: [
261
- aboveOverride && aboveOverride === breakpoint && isOverrideSet && sprintf(__("Applied when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[breakpoint]),
262
- aboveOverride && aboveOverride !== breakpoint && isOverrideSet && sprintf(
261
+ aboveOverride && (aboveOverride !== rawBreakpoints[0] || !belowOverride) && isOverrideSet && sprintf(__("Applied when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[breakpoint]),
262
+ aboveOverride && aboveOverride === rawBreakpoints[0] && belowOverride && isOverrideSet && sprintf(
263
263
  __("Applied when the browser width is between %dpx and %dpx.", "eightshift-ui-components"),
264
- breakpointData[aboveOverride] + 1,
264
+ breakpointData[belowOverride] + 1,
265
265
  breakpointData[breakpoint]
266
266
  ),
267
267
  (!aboveOverride || !isOverrideSet) && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint])
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { D as DecorativeTooltip } from "../../tooltip-BRQ4tvZL.js";
3
+ import { D as DecorativeTooltip } from "../../tooltip-Do_imFfg.js";
4
4
  import { c as clsx } from "../../lite-DVmmD_-j.js";
5
5
  import { _ as __, s as sprintf } from "../../default-i18n-BqwLkgZv.js";
6
6
  import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
@@ -8,7 +8,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-CD8Q1eok.js";
11
+ import { a as ButtonGroup, B as Button } from "../../button-MFj-FKsM.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";