@eightshift/ui-components 1.0.6 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/{Button-eebLs4cp.js → Button-CbFrFO04.js} +5 -5
- package/dist/{Checkbox-BN0TEda-.js → Checkbox-Cv3pZDHg.js} +12 -16
- package/dist/{ColorSwatch-BrowHhTG.js → ColorSwatch-CNQmCQV8.js} +6 -7
- package/dist/{FieldError-ILxgMZy5.js → FieldError-J1-YPbi6.js} +2 -2
- package/dist/{FocusScope-B9b0VMib.js → FocusScope-Bw-IatMO.js} +79 -153
- package/dist/{GridList-CzpWxJsS.js → GridList-CEzzyr-l.js} +62 -90
- package/dist/{Group-Dkdm2-E7.js → Group-D3Qa6PrV.js} +3 -3
- package/dist/{Input-BJA4rmIo.js → Input-CX_rocyZ.js} +8 -8
- package/dist/{Label-9x5iLJ-Y.js → Label-Bg5O81Wb.js} +1 -1
- package/dist/{ListBox-D3Vr4vvC.js → ListBox-CCWXTj0t.js} +391 -598
- package/dist/{LiveAnnouncer-IsokfWQ5.js → LiveAnnouncer-D8h-3GrG.js} +12 -22
- package/dist/{NumberFormatter-LzoKy975.js → NumberFormatter-U_Gx0UDq.js} +26 -44
- package/dist/{Select-49a62830.esm-CKPmlkza.js → Select-49a62830.esm-BnlXlUnT.js} +92 -166
- package/dist/{SelectionManager-sedvcM-1.js → SelectionManager-XOAt-Ekx.js} +219 -401
- package/dist/{Separator-B6rnDabE.js → Separator-DZeg0KOr.js} +41 -72
- package/dist/{Slider-C5U5N7uM.js → Slider-fULMI0gI.js} +51 -82
- package/dist/{Text-Cyxp9ewv.js → Text-WqetJduR.js} +1 -1
- package/dist/{VisuallyHidden-BPJVSUyp.js → VisuallyHidden-Di1zXprL.js} +8 -11
- package/dist/{ariaHideOutside-ByKBPHmX.js → ariaHideOutside-Zn64-frS.js} +20 -36
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/{button-idVI4jmd.js → button-CD8Q1eok.js} +17 -29
- package/dist/components/animated-visibility/animated-visibility.js +125 -113
- package/dist/components/base-control/base-control.js +3 -9
- package/dist/components/breakpoint-preview/breakpoint-preview.js +51 -108
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +5 -9
- package/dist/components/color-pickers/gradient-editor.js +15 -29
- package/dist/components/color-pickers/solid-color-picker.js +81 -128
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +4 -11
- package/dist/components/draggable-list/draggable-list-item.js +4 -4
- package/dist/components/draggable-list/draggable-list.js +5 -5
- package/dist/components/expandable/expandable.js +45 -57
- package/dist/components/index.js +3 -3
- package/dist/components/input-field/input-field.js +11 -26
- package/dist/components/layout/hstack.js +2 -12
- package/dist/components/layout/vstack.js +2 -12
- package/dist/components/link-input/link-input.js +36 -53
- package/dist/components/list-box/list-box.js +4 -4
- package/dist/components/matrix-align/matrix-align.js +6 -10
- package/dist/components/menu/menu.js +101 -170
- package/dist/components/notice/notice.js +1 -1
- package/dist/components/number-picker/number-picker.js +15 -15
- package/dist/components/option-select/option-select.js +48 -64
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-placeholder.js +2 -2
- package/dist/components/placeholders/image-placeholder.js +1 -1
- package/dist/components/placeholders/media-placeholder.js +1 -1
- package/dist/components/popover/popover.js +4 -4
- package/dist/components/radio/radio.js +25 -38
- package/dist/components/repeater/repeater-item.js +6 -17
- package/dist/components/repeater/repeater.js +6 -7
- package/dist/components/responsive/responsive-legacy.js +6 -12
- package/dist/components/responsive/responsive.js +21 -48
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +2 -8
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +2 -2
- package/dist/components/select/multi-select-components.js +2 -2
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +9 -9
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +3 -10
- package/dist/components/slider/column-config-slider.js +4 -4
- package/dist/components/slider/slider.js +5 -8
- package/dist/components/slider/utils.js +2 -6
- package/dist/components/spacer/spacer.js +2 -7
- package/dist/components/tabs/tabs.js +29 -50
- package/dist/components/toggle/switch.js +8 -8
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +8 -22
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/{context-BAcFg5GO.js → context-4oSz1ItD.js} +10 -16
- package/dist/{default-i18n-Bk1GxDHz.js → default-i18n-BqwLkgZv.js} +21 -22
- package/dist/{filterDOMProps-DG2RfOUr.js → filterDOMProps-EDDcM64A.js} +1 -3
- package/dist/{focusSafely-B0hyd-S4.js → focusSafely-BS4dllCW.js} +85 -143
- package/dist/icons/generic-color-swatch.js +105 -13
- package/dist/icons/icons.js +31010 -3447
- package/dist/icons/jsx-svg.js +591 -953
- package/dist/{index-BDk0TPWz.js → index-CAPcSs9K.js} +1504 -2087
- package/dist/{index-a301f526.esm-BzTuHLdr.js → index-a301f526.esm-ByOfDxiG.js} +111 -183
- package/dist/index.js +3 -3
- package/dist/{intlStrings-Ctkp0HDc.js → intlStrings-Dxaeitoh.js} +35 -60
- package/dist/{isScrollable-PcyglExV.js → isScrollable-Dh9D9IOd.js} +1 -2
- package/dist/lite-DVmmD_-j.js +7 -0
- package/dist/{multi-select-components-nORKdJ-2.js → multi-select-components-7vKCF8dG.js} +3 -3
- package/dist/{number-rWqELA8W.js → number-CHmNj-oR.js} +3 -6
- package/dist/{popover-o2Q28Ljn.js → popover-Dk2o4S7K.js} +70 -112
- package/dist/{react-select-async.esm-CLj9uZTq.js → react-select-async.esm-5zW9Dv9E.js} +7 -11
- package/dist/{react-select.esm-3tyTZmrx.js → react-select.esm-Bi6uzjbT.js} +3 -3
- package/dist/{textSelection-BRZdHY-4.js → textSelection-exP_9srp.js} +5 -9
- package/dist/{tooltip-T6H9uF-Z.js → tooltip-BRQ4tvZL.js} +64 -111
- package/dist/{useButton-D-xACzEY.js → useButton-DbjDV_33.js} +19 -22
- package/dist/{useEvent-XlYPKgwX.js → useEvent-zvxfEnmK.js} +2 -3
- package/dist/{useFocusRing-CRx_hYC4.js → useFocusRing-SPRI0-SN.js} +1 -1
- package/dist/{useFocusable-CHfpEdlE.js → useFocusable-CLmhO94g.js} +5 -8
- package/dist/{useFormReset-aHn6-wRk.js → useFormReset-BVWgcyGO.js} +2 -3
- package/dist/{useFormValidationState-CdYmOaXI.js → useFormValidationState-CthG9Fbc.js} +20 -38
- package/dist/{useHasTabbableChild-domoFB7A.js → useHasTabbableChild--gkWUICh.js} +2 -2
- package/dist/{useLabel-DVhXVhtH.js → useLabel-g836T8kL.js} +3 -4
- package/dist/{useLabels-C7E5SkOi.js → useLabels-CfOtyOe2.js} +3 -5
- package/dist/{useListData-BelKu4kx.js → useListData-BpYQj7kK.js} +18 -32
- package/dist/{useListState-BRsq7O1C.js → useListState-DnWZa__1.js} +6 -12
- package/dist/{useLocalizedStringFormatter-WsEL47qR.js → useLocalizedStringFormatter-BQCMno9k.js} +12 -21
- package/dist/{useNumberFieldState-ZH2Qyyxh.js → useNumberFieldState-BegO5X6F.js} +75 -132
- package/dist/{useNumberFormatter-mhdYLxWQ.js → useNumberFormatter-DhOGEsEK.js} +2 -2
- package/dist/{usePress-B42RawCH.js → usePress-CScNeV3V.js} +92 -175
- package/dist/{useToggle-CExfZM8x.js → useToggle-6LnpaJ7-.js} +6 -7
- package/dist/{useToggleState-DghG5ImG.js → useToggleState-Cymkpac8.js} +3 -5
- package/dist/utilities/array-helpers.js +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/text-helpers.js +20 -20
- package/dist/{utils-DIBzm1e4.js → utils-Dc35LwuT.js} +49 -90
- package/package.json +96 -90
- package/dist/lite-pbIeT7tm.js +0 -8
|
@@ -2,12 +2,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Fragment } from "react";
|
|
3
3
|
import { icons } from "../../icons/icons.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
|
-
import { a as ButtonGroup } from "../../button-
|
|
5
|
+
import { a as ButtonGroup } from "../../button-CD8Q1eok.js";
|
|
6
6
|
import { Menu, MenuSeparator, MenuItem } from "../menu/menu.js";
|
|
7
7
|
import { RadioButtonGroup, RadioButton } from "../radio/radio.js";
|
|
8
8
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
9
9
|
import { ToggleButton } from "../toggle-button/toggle-button.js";
|
|
10
|
-
import { _ as __ } from "../../default-i18n-
|
|
10
|
+
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
11
11
|
/**
|
|
12
12
|
* A component that allows the user to select an option from a list of options.
|
|
13
13
|
*
|
|
@@ -105,42 +105,33 @@ const OptionSelect = (props) => {
|
|
|
105
105
|
vertical,
|
|
106
106
|
"aria-label": typeof label !== "undefined" ? null : props == null ? void 0 : props["aria-label"],
|
|
107
107
|
...wrapperProps,
|
|
108
|
-
children: options.map(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
subtitle: optionSubtitle
|
|
136
|
-
}
|
|
137
|
-
)
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
optionValue
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
)
|
|
108
|
+
children: options.map(({ label: optionLabel, value: optionValue, icon: optionIcon, tooltip: optionTooltip, ariaLabel: optionAriaLabel, subtitle: optionSubtitle }) => {
|
|
109
|
+
var _a2;
|
|
110
|
+
return /* @__PURE__ */ jsxs(
|
|
111
|
+
ToggleButton,
|
|
112
|
+
{
|
|
113
|
+
selected: optionValue === value,
|
|
114
|
+
onChange: () => onChange(optionValue),
|
|
115
|
+
disabled,
|
|
116
|
+
className: itemClassName,
|
|
117
|
+
icon: !noItemIcon && (typeof optionIcon === "string" ? (_a2 = icons) == null ? void 0 : _a2[optionIcon] : optionIcon),
|
|
118
|
+
tooltip: optionTooltip ?? optionAriaLabel ?? (noItemLabel && optionLabel),
|
|
119
|
+
"aria-label": optionAriaLabel ?? optionLabel ?? optionTooltip,
|
|
120
|
+
...itemProps,
|
|
121
|
+
children: [
|
|
122
|
+
!noItemLabel && !optionSubtitle && optionLabel,
|
|
123
|
+
!noItemLabel && optionSubtitle && /* @__PURE__ */ jsx(
|
|
124
|
+
RichLabel,
|
|
125
|
+
{
|
|
126
|
+
label: optionLabel,
|
|
127
|
+
subtitle: optionSubtitle
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
optionValue
|
|
133
|
+
);
|
|
134
|
+
})
|
|
144
135
|
}
|
|
145
136
|
),
|
|
146
137
|
(type === "radios" || type === "radiosSegmented") && /* @__PURE__ */ jsx(
|
|
@@ -152,38 +143,31 @@ const OptionSelect = (props) => {
|
|
|
152
143
|
"aria-label": typeof label !== "undefined" ? null : props == null ? void 0 : props["aria-label"],
|
|
153
144
|
value,
|
|
154
145
|
...wrapperProps,
|
|
155
|
-
children: options.map(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"aria-label": optionAriaLabel ?? optionLabel,
|
|
173
|
-
label: !noItemLabel && optionLabel,
|
|
174
|
-
...itemProps
|
|
175
|
-
},
|
|
176
|
-
optionValue
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
)
|
|
146
|
+
children: options.map(({ label: optionLabel, value: optionValue, icon: optionIcon, ariaLabel: optionAriaLabel, subtitle: optionSubtitle }) => {
|
|
147
|
+
var _a2;
|
|
148
|
+
return /* @__PURE__ */ jsx(
|
|
149
|
+
RadioButton,
|
|
150
|
+
{
|
|
151
|
+
value: optionValue,
|
|
152
|
+
disabled,
|
|
153
|
+
className: itemClassName,
|
|
154
|
+
subtitle: !noItemLabel && optionSubtitle,
|
|
155
|
+
icon: !noItemIcon && (typeof optionIcon === "string" ? (_a2 = icons) == null ? void 0 : _a2[optionIcon] : optionIcon),
|
|
156
|
+
"aria-label": optionAriaLabel ?? optionLabel,
|
|
157
|
+
label: !noItemLabel && optionLabel,
|
|
158
|
+
...itemProps
|
|
159
|
+
},
|
|
160
|
+
optionValue
|
|
161
|
+
);
|
|
162
|
+
})
|
|
180
163
|
}
|
|
181
164
|
),
|
|
182
165
|
type === "menu" && /* @__PURE__ */ jsxs(
|
|
183
166
|
Menu,
|
|
184
167
|
{
|
|
185
168
|
triggerLabel: !noTriggerLabel && (currentItem ? currentItem == null ? void 0 : currentItem.label : notSetLabel),
|
|
186
|
-
triggerIcon: !noTriggerIcon &&
|
|
169
|
+
triggerIcon: !noTriggerIcon && // eslint-disable-next-line no-nested-ternary
|
|
170
|
+
(currentItem ? typeof (currentItem == null ? void 0 : currentItem.icon) === "string" ? (_a = icons) == null ? void 0 : _a[currentItem == null ? void 0 : currentItem.icon] : currentItem == null ? void 0 : currentItem.icon : (noTriggerLabel || noTriggerIcon) && notSetLabel),
|
|
187
171
|
tooltip: noTriggerLabel ? /* @__PURE__ */ jsx(
|
|
188
172
|
RichLabel,
|
|
189
173
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as clsx } from "../../lite-
|
|
2
|
+
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
4
|
/**
|
|
5
5
|
* Component that provides a container panel for options, with an optional title.
|
|
@@ -35,7 +35,7 @@ const OptionsPanel = (props) => {
|
|
|
35
35
|
className: "es-uic-mb-1 es-uic-text-[0.875rem] es-uic-tracking-[-0.01em] !es-uic-text-gray-500"
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
|
-
/* @__PURE__ */ jsx("div", { className: "es-uic-
|
|
38
|
+
/* @__PURE__ */ jsx("div", { className: "es-uic-divide-y es-uic-divide-gray-200 es-uic-rounded-lg es-uic-border es-uic-border-gray-200 es-uic-bg-white es-uic-shadow", children }),
|
|
39
39
|
help && /* @__PURE__ */ jsx("span", { className: "text-sm es-uic-mt-1.5 es-uic-block es-uic-text-gray-400", children: help })
|
|
40
40
|
] });
|
|
41
41
|
};
|
|
@@ -44,7 +44,7 @@ const OptionsPanelSection = ({ children, className }) => {
|
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
46
|
className: clsx(
|
|
47
|
-
"es-uic-space-y-2.5
|
|
47
|
+
"last:rounded-b-lg es-uic-space-y-2.5 es-uic-px-3 es-uic-py-4 first:es-uic-rounded-t-lg first:es-uic-pt-3.5 last:es-uic-pb-3.5 only:es-uic-rounded-lg",
|
|
48
48
|
className
|
|
49
49
|
),
|
|
50
50
|
children
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { _ as __ } from "../../default-i18n-
|
|
2
|
+
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
3
3
|
import { icons } from "../../icons/icons.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
|
-
import { c as clsx } from "../../lite-
|
|
5
|
+
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
6
6
|
/**
|
|
7
7
|
* A simple file placeholder.
|
|
8
8
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { P, T } from "../../popover-
|
|
3
|
-
import "../../lite-
|
|
4
|
-
import "../../default-i18n-
|
|
5
|
-
import "../../button-
|
|
2
|
+
import { P, T } from "../../popover-Dk2o4S7K.js";
|
|
3
|
+
import "../../lite-DVmmD_-j.js";
|
|
4
|
+
import "../../default-i18n-BqwLkgZv.js";
|
|
5
|
+
import "../../button-CD8Q1eok.js";
|
|
6
6
|
export {
|
|
7
7
|
P as Popover,
|
|
8
8
|
T as TriggeredPopover
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
3
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-
|
|
4
|
-
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-
|
|
2
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Bg5O81Wb.js";
|
|
3
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-Dc35LwuT.js";
|
|
4
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-J1-YPbi6.js";
|
|
5
5
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
|
|
6
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-
|
|
7
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-
|
|
6
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-WqetJduR.js";
|
|
7
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
8
8
|
import React__default, { useMemo, useState, forwardRef, createContext, cloneElement } from "react";
|
|
9
|
-
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-
|
|
10
|
-
import { d as $9ab94262bd0047c7$export$420e68273165f4ec, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-
|
|
11
|
-
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-
|
|
12
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-
|
|
13
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-
|
|
14
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "../../useFocusable-
|
|
15
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-
|
|
16
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
17
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-
|
|
18
|
-
import { c as clsx } from "../../lite-
|
|
9
|
+
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidationState-CthG9Fbc.js";
|
|
10
|
+
import { d as $9ab94262bd0047c7$export$420e68273165f4ec, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-BS4dllCW.js";
|
|
11
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-Bw-IatMO.js";
|
|
12
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-4oSz1ItD.js";
|
|
13
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-BVWgcyGO.js";
|
|
14
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "../../useFocusable-CLmhO94g.js";
|
|
15
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-CScNeV3V.js";
|
|
16
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-SPRI0-SN.js";
|
|
17
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-Di1zXprL.js";
|
|
18
|
+
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
19
19
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
20
20
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
21
21
|
import { BaseControl } from "../base-control/base-control.js";
|
|
@@ -25,8 +25,7 @@ function $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {
|
|
|
25
25
|
const isDisabled = props.isDisabled || state.isDisabled;
|
|
26
26
|
let hasChildren = children != null;
|
|
27
27
|
let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;
|
|
28
|
-
if (!hasChildren && !hasAriaLabel)
|
|
29
|
-
console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
28
|
+
if (!hasChildren && !hasAriaLabel) console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
30
29
|
let checked = state.selectedValue === value;
|
|
31
30
|
let onChange = (e) => {
|
|
32
31
|
e.stopPropagation();
|
|
@@ -50,12 +49,9 @@ function $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {
|
|
|
50
49
|
});
|
|
51
50
|
let tabIndex = -1;
|
|
52
51
|
if (state.selectedValue != null) {
|
|
53
|
-
if (state.selectedValue === value)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
tabIndex = 0;
|
|
57
|
-
if (isDisabled)
|
|
58
|
-
tabIndex = void 0;
|
|
52
|
+
if (state.selectedValue === value) tabIndex = 0;
|
|
53
|
+
} else if (state.lastFocusedValue === value || state.lastFocusedValue == null) tabIndex = 0;
|
|
54
|
+
if (isDisabled) tabIndex = void 0;
|
|
59
55
|
let { name, descriptionId, errorMessageId, validationBehavior } = $884aeceb3d67f00f$export$37b65e5b5444d35c.get(state);
|
|
60
56
|
$99facab73266f662$export$5add1d006293d136(ref, state.selectedValue, state.setSelectedValue);
|
|
61
57
|
$e93e671b31057976$export$b8473d3665f3a75a({
|
|
@@ -105,8 +101,7 @@ function $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {
|
|
|
105
101
|
onBlurWithin(e) {
|
|
106
102
|
var _props_onBlur;
|
|
107
103
|
(_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);
|
|
108
|
-
if (!state.selectedValue)
|
|
109
|
-
state.setLastFocusedValue(null);
|
|
104
|
+
if (!state.selectedValue) state.setLastFocusedValue(null);
|
|
110
105
|
},
|
|
111
106
|
onFocusWithin: props.onFocus,
|
|
112
107
|
onFocusWithinChange: props.onFocusChange
|
|
@@ -115,16 +110,12 @@ function $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {
|
|
|
115
110
|
let nextDir;
|
|
116
111
|
switch (e.key) {
|
|
117
112
|
case "ArrowRight":
|
|
118
|
-
if (direction === "rtl" && orientation !== "vertical")
|
|
119
|
-
|
|
120
|
-
else
|
|
121
|
-
nextDir = "next";
|
|
113
|
+
if (direction === "rtl" && orientation !== "vertical") nextDir = "prev";
|
|
114
|
+
else nextDir = "next";
|
|
122
115
|
break;
|
|
123
116
|
case "ArrowLeft":
|
|
124
|
-
if (direction === "rtl" && orientation !== "vertical")
|
|
125
|
-
|
|
126
|
-
else
|
|
127
|
-
nextDir = "prev";
|
|
117
|
+
if (direction === "rtl" && orientation !== "vertical") nextDir = "next";
|
|
118
|
+
else nextDir = "prev";
|
|
128
119
|
break;
|
|
129
120
|
case "ArrowDown":
|
|
130
121
|
nextDir = "next";
|
|
@@ -398,11 +389,7 @@ const RadioButton = (props) => {
|
|
|
398
389
|
$b6c3ddc6086f204d$export$d7b12c4107be0d61,
|
|
399
390
|
{
|
|
400
391
|
isDisabled: disabled,
|
|
401
|
-
className: clsx(
|
|
402
|
-
"es-uic-flex es-uic-items-center es-uic-gap-1.5 es-uic-text-sm",
|
|
403
|
-
styleClassName[design],
|
|
404
|
-
className
|
|
405
|
-
),
|
|
392
|
+
className: clsx("es-uic-flex es-uic-items-center es-uic-gap-1.5 es-uic-text-sm", styleClassName[design], className),
|
|
406
393
|
...rest,
|
|
407
394
|
children: ({ isSelected, isFocusVisible }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
408
395
|
alignEnd && (label || subtitle || icon) && /* @__PURE__ */ jsx(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $bc237834342dbd75$export$48513f6b9f8ce62d } from "../../Checkbox-
|
|
3
|
-
import { b as $72e60046c03fbe42$export$54fe942636b6416d, a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-
|
|
4
|
-
import { B as Button } from "../../button-
|
|
2
|
+
import { $ as $bc237834342dbd75$export$48513f6b9f8ce62d } from "../../Checkbox-Cv3pZDHg.js";
|
|
3
|
+
import { b as $72e60046c03fbe42$export$54fe942636b6416d, a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-CEzzyr-l.js";
|
|
4
|
+
import { B as Button } from "../../button-CD8Q1eok.js";
|
|
5
5
|
import { icons } from "../../icons/icons.js";
|
|
6
|
-
import { c as clsx } from "../../lite-
|
|
6
|
+
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
7
7
|
import { Expandable } from "../expandable/expandable.js";
|
|
8
|
-
import { _ as __ } from "../../default-i18n-
|
|
8
|
+
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
9
9
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
10
10
|
import { useRef } from "react";
|
|
11
11
|
import { useCellEditMode } from "../../hooks/use-cell-edit-mode.js";
|
|
@@ -29,18 +29,7 @@ import { useCellEditMode } from "../../hooks/use-cell-edit-mode.js";
|
|
|
29
29
|
* @preserve
|
|
30
30
|
*/
|
|
31
31
|
const RepeaterItem = (props) => {
|
|
32
|
-
const {
|
|
33
|
-
children,
|
|
34
|
-
icon,
|
|
35
|
-
label,
|
|
36
|
-
subtitle,
|
|
37
|
-
"aria-label": ariaLabel,
|
|
38
|
-
className,
|
|
39
|
-
actions,
|
|
40
|
-
textValue,
|
|
41
|
-
expandDisabled,
|
|
42
|
-
...rest
|
|
43
|
-
} = props;
|
|
32
|
+
const { children, icon, label, subtitle, "aria-label": ariaLabel, className, actions, textValue, expandDisabled, ...rest } = props;
|
|
44
33
|
let a11yLabel = textValue;
|
|
45
34
|
if ((label == null ? void 0 : label.length) > 0) {
|
|
46
35
|
a11yLabel = label;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { b as $72e60046c03fbe42$export$54fe942636b6416d, $ as $72e60046c03fbe42$export$a7bfbda1311ca015 } from "../../GridList-
|
|
3
|
-
import { $ as $d8f176866e6dc039$export$2cfc5be7a55829f6, a as $d8f176866e6dc039$export$62ed72bc21f6b8a6 } from "../../ListBox-
|
|
4
|
-
import { _ as __ } from "../../default-i18n-
|
|
5
|
-
import { B as Button, a as ButtonGroup } from "../../button-
|
|
2
|
+
import { b as $72e60046c03fbe42$export$54fe942636b6416d, $ as $72e60046c03fbe42$export$a7bfbda1311ca015 } from "../../GridList-CEzzyr-l.js";
|
|
3
|
+
import { $ as $d8f176866e6dc039$export$2cfc5be7a55829f6, a as $d8f176866e6dc039$export$62ed72bc21f6b8a6 } from "../../ListBox-CCWXTj0t.js";
|
|
4
|
+
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
5
|
+
import { B as Button, a as ButtonGroup } from "../../button-CD8Q1eok.js";
|
|
6
6
|
import { icons } from "../../icons/icons.js";
|
|
7
7
|
import { useId, useState } from "react";
|
|
8
8
|
import { BaseControl } from "../base-control/base-control.js";
|
|
9
9
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
10
10
|
import { ToggleButton } from "../toggle-button/toggle-button.js";
|
|
11
11
|
import { arrayMoveMultiple } from "../../utilities/array-helpers.js";
|
|
12
|
-
import { c as clsx } from "../../lite-
|
|
13
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "../../useListState-
|
|
12
|
+
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
13
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "../../useListState-DnWZa__1.js";
|
|
14
14
|
/**
|
|
15
15
|
* A component that allows re-ordering a list of items with additional sub-options.
|
|
16
16
|
*
|
|
@@ -137,7 +137,6 @@ const Repeater = (props) => {
|
|
|
137
137
|
isDisabled: selectable || !canReorder,
|
|
138
138
|
getItems: (ids) => [...ids].map((id) => ({ "text/plain": list.getItem(id).id })),
|
|
139
139
|
onReorder(e) {
|
|
140
|
-
console.log(e);
|
|
141
140
|
if (e.target.dropPosition === "before") {
|
|
142
141
|
list.move(e.target.key, e.keys);
|
|
143
142
|
} else if (e.target.dropPosition === "after") {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { D as DecorativeTooltip } from "../../tooltip-
|
|
4
|
-
import { c as clsx } from "../../lite-
|
|
5
|
-
import { _ as __, s as sprintf } from "../../default-i18n-
|
|
3
|
+
import { D as DecorativeTooltip } from "../../tooltip-BRQ4tvZL.js";
|
|
4
|
+
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
5
|
+
import { _ as __, s as sprintf } from "../../default-i18n-BqwLkgZv.js";
|
|
6
6
|
import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
|
|
7
7
|
import { upperFirst } from "../../utilities/es-dash.js";
|
|
8
8
|
import { icons } from "../../icons/icons.js";
|
|
9
|
-
import { B as Button } from "../../button-
|
|
9
|
+
import { B as Button } from "../../button-CD8Q1eok.js";
|
|
10
10
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
11
11
|
import { ToggleButton } from "../toggle-button/toggle-button.js";
|
|
12
12
|
import { BaseControl } from "../base-control/base-control.js";
|
|
@@ -117,10 +117,7 @@ const ResponsiveLegacy = (props) => {
|
|
|
117
117
|
/* @__PURE__ */ jsx("span", { className: "es-uic-block es-uic-text-balance es-uic-font-semibold es-uic-tabular-nums", children: __("Default", "eightshift-ui-components") }),
|
|
118
118
|
/* @__PURE__ */ jsxs("span", { className: "es-uic-block es-uic-text-balance es-uic-tabular-nums", children: [
|
|
119
119
|
!globalOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
|
|
120
|
-
globalOverride && sprintf(
|
|
121
|
-
__("Applied when the browser width is %dpx or wider.", "eightshift-ui-components"),
|
|
122
|
-
breakpointData[globalOverride] + 1
|
|
123
|
-
)
|
|
120
|
+
globalOverride && sprintf(__("Applied when the browser width is %dpx or wider.", "eightshift-ui-components"), breakpointData[globalOverride] + 1)
|
|
124
121
|
] }),
|
|
125
122
|
globalOverride && /* @__PURE__ */ jsx("div", { className: "es-uic-mx-auto es-uic-mt-2", children: /* @__PURE__ */ jsx(
|
|
126
123
|
BreakpointPreview,
|
|
@@ -261,10 +258,7 @@ const ResponsiveLegacy = (props) => {
|
|
|
261
258
|
text: /* @__PURE__ */ jsxs("div", { className: "es-uic-max-w-96 es-uic-p-1", children: [
|
|
262
259
|
/* @__PURE__ */ jsx("span", { className: "es-uic-block es-uic-font-semibold", children: upperFirst(breakpoint) }),
|
|
263
260
|
/* @__PURE__ */ jsxs("span", { className: "es-uic-block es-uic-text-balance es-uic-tabular-nums", children: [
|
|
264
|
-
aboveOverride && aboveOverride === breakpoint && isOverrideSet && sprintf(
|
|
265
|
-
__("Applied when the browser width is %dpx or less.", "eightshift-ui-components"),
|
|
266
|
-
breakpointData[breakpoint]
|
|
267
|
-
),
|
|
261
|
+
aboveOverride && aboveOverride === breakpoint && isOverrideSet && sprintf(__("Applied when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[breakpoint]),
|
|
268
262
|
aboveOverride && aboveOverride !== breakpoint && isOverrideSet && sprintf(
|
|
269
263
|
__("Applied when the browser width is between %dpx and %dpx.", "eightshift-ui-components"),
|
|
270
264
|
breakpointData[aboveOverride] + 1,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { D as DecorativeTooltip } from "../../tooltip-
|
|
4
|
-
import { c as clsx } from "../../lite-
|
|
5
|
-
import { _ as __, s as sprintf } from "../../default-i18n-
|
|
3
|
+
import { D as DecorativeTooltip } from "../../tooltip-BRQ4tvZL.js";
|
|
4
|
+
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
5
|
+
import { _ as __, s as sprintf } from "../../default-i18n-BqwLkgZv.js";
|
|
6
6
|
import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
|
|
7
7
|
import { upperFirst } from "../../utilities/es-dash.js";
|
|
8
8
|
import { icons } from "../../icons/icons.js";
|
|
9
9
|
import { Menu, MenuItem, MenuSeparator, SubMenuItem } from "../menu/menu.js";
|
|
10
10
|
import { ResponsivePreview } from "../responsive-preview/responsive-preview.js";
|
|
11
|
-
import { a as ButtonGroup, B as Button } from "../../button-
|
|
11
|
+
import { a as ButtonGroup, B as Button } from "../../button-CD8Q1eok.js";
|
|
12
12
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
13
13
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
14
14
|
import { ToggleButton } from "../toggle-button/toggle-button.js";
|
|
@@ -117,14 +117,8 @@ const Responsive = (props) => {
|
|
|
117
117
|
/* @__PURE__ */ jsx("span", { className: "es-uic-block es-uic-text-balance es-uic-font-semibold es-uic-tabular-nums", children: __("Default", "eightshift-ui-components") }),
|
|
118
118
|
/* @__PURE__ */ jsxs("span", { className: "es-uic-block es-uic-text-balance es-uic-tabular-nums", children: [
|
|
119
119
|
!firstMobileFirstOverride && !lastDesktopFirstOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
|
|
120
|
-
firstMobileFirstOverride && !isDesktopFirst && sprintf(
|
|
121
|
-
|
|
122
|
-
breakpointData[firstMobileFirstOverride] - 1
|
|
123
|
-
),
|
|
124
|
-
lastDesktopFirstOverride && isDesktopFirst && sprintf(
|
|
125
|
-
__("Applies when the browser width is %dpx or more.", "eightshift-ui-components"),
|
|
126
|
-
breakpointData[lastDesktopFirstOverride.replace("max-", "")]
|
|
127
|
-
)
|
|
120
|
+
firstMobileFirstOverride && !isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or narrower.", "eightshift-ui-components"), breakpointData[firstMobileFirstOverride] - 1),
|
|
121
|
+
lastDesktopFirstOverride && isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[lastDesktopFirstOverride.replace("max-", "")])
|
|
128
122
|
] }),
|
|
129
123
|
/* @__PURE__ */ jsxs("div", { className: "es-uic-mx-auto", children: [
|
|
130
124
|
firstMobileFirstOverride && !isDesktopFirst && /* @__PURE__ */ jsx(
|
|
@@ -265,24 +259,18 @@ const Responsive = (props) => {
|
|
|
265
259
|
),
|
|
266
260
|
/* @__PURE__ */ jsx(MenuSeparator, {})
|
|
267
261
|
] }),
|
|
268
|
-
Object.keys(value).some((key) => !(key == null ? void 0 : key.startsWith("_")) && typeof (value == null ? void 0 : value[key]) !== "undefined") && /* @__PURE__ */ jsx(
|
|
269
|
-
|
|
262
|
+
Object.keys(value).some((key) => !(key == null ? void 0 : key.startsWith("_")) && typeof (value == null ? void 0 : value[key]) !== "undefined") && /* @__PURE__ */ jsx(SubMenuItem, { trigger: /* @__PURE__ */ jsx(MenuItem, { icon: icons.previewResponsive, children: __("Responsive preview", "eightshift-ui-components") }), children: /* @__PURE__ */ jsx(MenuItem, { disabled: true, children: /* @__PURE__ */ jsx(
|
|
263
|
+
ResponsivePreview,
|
|
270
264
|
{
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
desktopFirstBreakpoints,
|
|
279
|
-
options,
|
|
280
|
-
breakpointData,
|
|
281
|
-
breakpointUiData
|
|
282
|
-
}
|
|
283
|
-
) })
|
|
265
|
+
value,
|
|
266
|
+
isDesktopFirst,
|
|
267
|
+
breakpoints,
|
|
268
|
+
desktopFirstBreakpoints,
|
|
269
|
+
options,
|
|
270
|
+
breakpointData,
|
|
271
|
+
breakpointUiData
|
|
284
272
|
}
|
|
285
|
-
),
|
|
273
|
+
) }) }),
|
|
286
274
|
Object.keys(value).some((key) => !(key == null ? void 0 : key.startsWith("_")) && typeof (value == null ? void 0 : value[key]) !== "undefined") && /* @__PURE__ */ jsx(MenuSeparator, {}),
|
|
287
275
|
/* @__PURE__ */ jsx(
|
|
288
276
|
MenuItem,
|
|
@@ -392,37 +380,22 @@ const Responsive = (props) => {
|
|
|
392
380
|
/* @__PURE__ */ jsx("span", { className: "es-uic-block es-uic-font-semibold", children: ((_a = breakpointUiData == null ? void 0 : breakpointUiData[realBreakpointName]) == null ? void 0 : _a.label) ?? upperFirst(realBreakpointName) }),
|
|
393
381
|
/* @__PURE__ */ jsxs("span", { className: "es-uic-block es-uic-text-balance es-uic-tabular-nums", children: [
|
|
394
382
|
!isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
395
|
-
!belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
|
|
396
|
-
__("Applied when the browser width is %dpx or more.", "eightshift-ui-components"),
|
|
397
|
-
breakpointData[realBreakpointName]
|
|
398
|
-
),
|
|
383
|
+
!belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[realBreakpointName]),
|
|
399
384
|
belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
|
|
400
|
-
__(
|
|
401
|
-
"Applied when the browser width is between %dpx and %dpx.",
|
|
402
|
-
"eightshift-ui-components"
|
|
403
|
-
),
|
|
385
|
+
__("Applied when the browser width is between %dpx and %dpx.", "eightshift-ui-components"),
|
|
404
386
|
breakpointData[realBreakpointName],
|
|
405
387
|
breakpointData[belowOverride] - 1
|
|
406
388
|
),
|
|
407
389
|
typeof value[breakpoint] === "undefined" && sprintf(__("From %dpx", "eightshift-ui-components"), breakpointData[realBreakpointName])
|
|
408
390
|
] }),
|
|
409
391
|
isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
410
|
-
!belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
|
|
411
|
-
__("Applied when the browser width is %dpx or less.", "eightshift-ui-components"),
|
|
412
|
-
breakpointData[realBreakpointName] - 1
|
|
413
|
-
),
|
|
392
|
+
!belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[realBreakpointName] - 1),
|
|
414
393
|
belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
|
|
415
|
-
__(
|
|
416
|
-
"Applied when the browser width is between %dpx and %dpx.",
|
|
417
|
-
"eightshift-ui-components"
|
|
418
|
-
),
|
|
394
|
+
__("Applied when the browser width is between %dpx and %dpx.", "eightshift-ui-components"),
|
|
419
395
|
breakpointData[belowOverride == null ? void 0 : belowOverride.replace("max-", "")],
|
|
420
396
|
breakpointData[realBreakpointName] - 1
|
|
421
397
|
),
|
|
422
|
-
typeof value[breakpoint] === "undefined" && sprintf(
|
|
423
|
-
__("Up to %dpx", "eightshift-ui-components"),
|
|
424
|
-
breakpointData[breakpoint == null ? void 0 : breakpoint.replace("max-", "")]
|
|
425
|
-
)
|
|
398
|
+
typeof value[breakpoint] === "undefined" && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint == null ? void 0 : breakpoint.replace("max-", "")])
|
|
426
399
|
] })
|
|
427
400
|
] }),
|
|
428
401
|
typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: "es-uic-mt-2 es-uic-block es-uic-font-medium es-uic-italic", children: __("Not set", "eightshift-ui-components") }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { _ as __ } from "../../default-i18n-
|
|
2
|
+
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
3
3
|
import { upperFirst } from "../../utilities/es-dash.js";
|
|
4
4
|
import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
|
|
5
5
|
import { icons } from "../../icons/icons.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as clsx } from "../../lite-
|
|
2
|
+
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
3
3
|
/**
|
|
4
4
|
* Component that displays a label, with an optional icon and subtitle.
|
|
5
5
|
*
|
|
@@ -35,13 +35,7 @@ const RichLabel = (props) => {
|
|
|
35
35
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
36
36
|
icon && /* @__PURE__ */ jsx("span", { className: clsx("[&>svg]:es-uic-size-5.5", !noColor && "es-uic-text-slate-500"), children: icon }),
|
|
37
37
|
label && /* @__PURE__ */ jsx("span", { className: clsx("es-uic-text-balance", !noColor && "es-uic-text-gray-800"), children: label }),
|
|
38
|
-
subtitle && /* @__PURE__ */ jsx(
|
|
39
|
-
"span",
|
|
40
|
-
{
|
|
41
|
-
className: clsx("es-uic-text-balance es-uic-text-xs es-uic-opacity-65", !noColor && "es-uic-text-gray-800"),
|
|
42
|
-
children: subtitle
|
|
43
|
-
}
|
|
44
|
-
)
|
|
38
|
+
subtitle && /* @__PURE__ */ jsx("span", { className: clsx("es-uic-text-balance es-uic-text-xs es-uic-opacity-65", !noColor && "es-uic-text-gray-800"), children: subtitle })
|
|
45
39
|
] });
|
|
46
40
|
}
|
|
47
41
|
return /* @__PURE__ */ jsxs(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { A as AsyncSelect$1 } from "../../react-select-async.esm-
|
|
3
|
-
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-
|
|
2
|
+
import { A as AsyncSelect$1 } from "../../react-select-async.esm-5zW9Dv9E.js";
|
|
3
|
+
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-7vKCF8dG.js";
|
|
4
4
|
import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
|
|
5
5
|
import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
7
|
import { eightshiftSelectClasses } from "./styles.js";
|
|
8
8
|
import { fixIds } from "./shared.js";
|
|
9
|
-
import { c as components } from "../../index-a301f526.esm-
|
|
9
|
+
import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
|
|
10
10
|
/**
|
|
11
11
|
* Multi-select menu with async loading and re-ordering.
|
|
12
12
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { A as AsyncSelect$1 } from "../../react-select-async.esm-
|
|
2
|
+
import { A as AsyncSelect$1 } from "../../react-select-async.esm-5zW9Dv9E.js";
|
|
3
3
|
import { CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
5
|
import { eightshiftSelectClasses } from "./styles.js";
|
|
6
|
-
import { c as components } from "../../index-a301f526.esm-
|
|
6
|
+
import { c as components } from "../../index-a301f526.esm-ByOfDxiG.js";
|
|
7
7
|
/**
|
|
8
8
|
* Select menu with async loading.
|
|
9
9
|
*
|