@eightshift/ui-components 1.9.1 → 2.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.
- package/README.md +0 -7
- package/dist/{Button-BEIi9mB_.js → Button-OQ5EIPvt.js} +8 -8
- package/dist/{SelectionManager-DGbP8Ntl.js → Collection-CJM_asJz.js} +345 -197
- package/dist/{Color-CZxTZUqH.js → Color-B0HgM8f4.js} +1 -1
- package/dist/{ColorSwatch-Iijp9hzP.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
- package/dist/{ComboBox-DVPU5XzU.js → ComboBox-BnlZjJ3T.js} +21 -22
- package/dist/{Dialog-17uxPRe5.js → Dialog-CIh-hX93.js} +77 -65
- package/dist/{FieldError-huHsqqMP.js → FieldError-D7A6s7O5.js} +2 -2
- package/dist/{FocusScope-7r2_SUa9.js → FocusScope-Cs5_OoeA.js} +6 -4
- package/dist/{Group-k_oyd3Te.js → Group-D6tr3U_n.js} +5 -6
- package/dist/{Heading-DRBzKYHb.js → Heading-DiYTXoIW.js} +3 -4
- package/dist/{Hidden-5cXbU70C.js → Hidden-DnOd_jPX.js} +2 -2
- package/dist/{Input-DCmTv_Qw.js → Input-Se0m3ubj.js} +13 -11
- package/dist/{Label-D8G0GMsc.js → Label-Ca9uelsn.js} +4 -5
- package/dist/{List-C7L49CxW.js → List-Br274SP1.js} +16 -8
- package/dist/{ListBox-BxZwDp9o.js → ListBox-D9dFEh5A.js} +36 -23
- package/dist/{OverlayArrow-Dca2JXYU.js → OverlayArrow-1jx-ZyCR.js} +75 -13
- package/dist/{Select-aab027f3.esm-OvJ8lZs8.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
- package/dist/{Separator-B_VdRHCf.js → Separator-BhZycTUp.js} +9 -7
- package/dist/{Slider-CgEZmlNY.js → Slider-BZNaJylD.js} +20 -24
- package/dist/{Text-Cld9rkzJ.js → Text-aOUPPvTO.js} +3 -4
- package/dist/{VisuallyHidden-D0lsNfi4.js → VisuallyHidden-ClTQo25k.js} +2 -2
- package/dist/assets/index.css +37 -0
- package/dist/assets/style-editor.css +5287 -0
- package/dist/assets/style.css +5293 -1
- package/dist/assets/wp-font-enhancements.css +8 -1
- package/dist/assets/wp-ui-enhancements.css +299 -1
- package/dist/components/animated-visibility/animated-visibility.js +17 -21
- package/dist/components/base-control/base-control.js +7 -7
- package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
- package/dist/components/button/button.js +190 -86
- package/dist/components/checkbox/checkbox.js +44 -27
- package/dist/components/color-pickers/color-picker.js +13 -9
- package/dist/components/color-pickers/color-swatch.js +4 -4
- package/dist/components/color-pickers/gradient-editor.js +25 -24
- package/dist/components/color-pickers/solid-color-picker.js +197 -229
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +17 -17
- package/dist/components/draggable/draggable-handle.js +6 -6
- package/dist/components/draggable/draggable.js +1414 -699
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +12 -12
- package/dist/components/expandable/expandable.js +66 -78
- package/dist/components/index.js +2 -3
- package/dist/components/input-field/input-field.js +35 -22
- package/dist/components/layout/hstack.js +1 -1
- package/dist/components/layout/vstack.js +1 -1
- package/dist/components/link-input/link-input.js +69 -57
- package/dist/components/matrix-align/matrix-align.js +34 -86
- package/dist/components/menu/menu.js +22 -23
- package/dist/components/modal/modal.js +24 -25
- package/dist/components/notice/notice.js +32 -32
- package/dist/components/number-picker/number-picker.js +41 -40
- package/dist/components/option-select/option-select.js +9 -4
- package/dist/components/options-panel/options-panel.js +63 -28
- package/dist/components/placeholders/file-placeholder.js +6 -17
- package/dist/components/placeholders/image-placeholder.js +17 -17
- package/dist/components/placeholders/media-placeholder.js +12 -12
- package/dist/components/popover/popover.js +6 -5
- package/dist/components/radio/radio.js +60 -43
- package/dist/components/repeater/repeater-item.js +10 -10
- package/dist/components/repeater/repeater.js +8 -8
- package/dist/components/responsive/mini-responsive.js +41 -41
- package/dist/components/responsive/responsive-legacy.js +33 -33
- package/dist/components/responsive/responsive.js +48 -48
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- package/dist/components/rich-label/rich-label.js +13 -11
- 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 +3 -3
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +21 -21
- package/dist/components/select/v2/async-select.js +37 -47
- package/dist/components/select/v2/shared.js +8 -8
- package/dist/components/select/v2/single-select.js +44 -48
- package/dist/components/slider/column-config-slider.js +25 -25
- package/dist/components/slider/slider.js +173 -182
- package/dist/components/spacer/spacer.js +21 -21
- package/dist/components/tabs/tabs.js +111 -63
- package/dist/components/toggle/switch.js +27 -21
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +160 -83
- package/dist/components/tooltip/tooltip.js +25 -28
- package/dist/{context-DtrQ3I5U.js → context-CDOs-GuR.js} +1 -1
- package/dist/{focusSafely-ChK5oW-0.js → focusSafely-CiqTTjWy.js} +18 -17
- package/dist/icons/icons.js +52 -0
- package/dist/{index-641ee5b8.esm-DRaWil7u.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
- package/dist/{index-D0mHceYg.js → index-BRp93Yfa.js} +24 -31
- package/dist/index-CcCn9HWX.js +44 -0
- package/dist/index.js +2 -3
- package/dist/{multi-select-components-2Ax71j9a.js → multi-select-components-CkF3LyTF.js} +4 -4
- package/dist/{react-select-async.esm-BZwl7Ddb.js → react-select-async.esm-DcVLw9X5.js} +3 -3
- package/dist/{react-select.esm-DI0eSkd8.js → react-select.esm-OZ0cmTjg.js} +3 -3
- package/dist/style-editor.js +1 -0
- package/dist/style.js +1 -1
- package/dist/{textSelection-CdZPiDxh.js → textSelection-BlTDSskG.js} +2 -2
- package/dist/{useButton-C5e_EJlC.js → useButton-CmLbE5vg.js} +3 -3
- package/dist/{useEvent-BW_vevRp.js → useEvent-cLDJlznQ.js} +1 -1
- package/dist/{useFocusRing-Dbj6MsFR.js → useFocusRing-CGp3guTX.js} +1 -1
- package/dist/{useFocusable-C2xrPFl6.js → useFocusable-087cO5Ct.js} +9 -6
- package/dist/{useFormReset-DDCE2RPv.js → useFormReset-NpLM2e3G.js} +1 -1
- package/dist/{useFormValidation-BxnASugK.js → useFormValidation-BWwmZQE2.js} +3 -3
- package/dist/{useLabel-C3sAYsiC.js → useLabel-C85N3Hzw.js} +2 -2
- package/dist/{useLabels-WnPbJUyQ.js → useLabels-C_2wWraB.js} +1 -1
- package/dist/{useListState-BmTFGt2_.js → useListState-Z7FB_NzO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-BurzRhbk.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
- package/dist/{useNumberField-D_Azw6A1.js → useNumberField-Bm6_BVl9.js} +10 -10
- package/dist/{useNumberFormatter-B58dTQ-c.js → useNumberFormatter-DlUVKkO7.js} +1 -1
- package/dist/{usePress-DZ9pn6Jl.js → usePress-rg_OQIGW.js} +15 -14
- package/dist/{useSingleSelectListState-Dr843geC.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
- package/dist/{useToggle-Dq9VpeCd.js → useToggle-DzlgBLAJ.js} +4 -4
- package/dist/{useToggleState-DA_b3LG_.js → useToggleState-DhSBQxkp.js} +1 -1
- package/dist/{utils-BmaSD6gC.js → utils-39D0mStj.js} +41 -93
- package/package.json +40 -38
- package/dist/GeistMonoVF.woff2 +0 -0
- package/dist/GeistVF.woff2 +0 -0
- package/dist/assets/fonts.css +0 -1
- package/dist/components/list-box/list-box.js +0 -157
- package/dist/fonts.js +0 -1
|
@@ -109,17 +109,17 @@ const ResponsiveLegacy = (props) => {
|
|
|
109
109
|
DecorativeTooltip,
|
|
110
110
|
{
|
|
111
111
|
placement: "left",
|
|
112
|
-
className: "es
|
|
112
|
+
className: "es:p-3",
|
|
113
113
|
theme: "light",
|
|
114
114
|
offset: 7.5,
|
|
115
115
|
arrow: true,
|
|
116
|
-
text: /* @__PURE__ */ jsxs("div", { className: "es
|
|
117
|
-
/* @__PURE__ */ jsx("span", { className: "es
|
|
118
|
-
/* @__PURE__ */ jsxs("span", { className: "es
|
|
116
|
+
text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-64 es:p-1", children: [
|
|
117
|
+
/* @__PURE__ */ jsx("span", { className: "es:block es:text-balance es:font-semibold es:tabular-nums", children: __("Default", "eightshift-ui-components") }),
|
|
118
|
+
/* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", children: [
|
|
119
119
|
!globalOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
|
|
120
120
|
globalOverride && sprintf(__("Applied when the browser width is %dpx or wider.", "eightshift-ui-components"), breakpointData[globalOverride] + 1)
|
|
121
121
|
] }),
|
|
122
|
-
globalOverride && /* @__PURE__ */ jsx("div", { className: "es
|
|
122
|
+
globalOverride && /* @__PURE__ */ jsx("div", { className: "es:mx-auto es:mt-2", children: /* @__PURE__ */ jsx(
|
|
123
123
|
BreakpointPreview,
|
|
124
124
|
{
|
|
125
125
|
blocks: [
|
|
@@ -140,7 +140,7 @@ const ResponsiveLegacy = (props) => {
|
|
|
140
140
|
}
|
|
141
141
|
) })
|
|
142
142
|
] }),
|
|
143
|
-
children: /* @__PURE__ */ jsx("div", { className: "es
|
|
143
|
+
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[`screen${upperFirst(defaultBreakpoint)}`] ?? icons.play })
|
|
144
144
|
}
|
|
145
145
|
);
|
|
146
146
|
};
|
|
@@ -151,7 +151,7 @@ const ResponsiveLegacy = (props) => {
|
|
|
151
151
|
label,
|
|
152
152
|
subtitle,
|
|
153
153
|
help,
|
|
154
|
-
className: "es
|
|
154
|
+
className: "es:w-full",
|
|
155
155
|
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
156
156
|
inline && /* @__PURE__ */ jsx(
|
|
157
157
|
AnimatedVisibility,
|
|
@@ -184,16 +184,16 @@ const ResponsiveLegacy = (props) => {
|
|
|
184
184
|
"div",
|
|
185
185
|
{
|
|
186
186
|
className: clsx(
|
|
187
|
-
"es
|
|
188
|
-
innerContentAlign === "start" && "es
|
|
189
|
-
innerContentAlign === "center" && "es
|
|
190
|
-
innerContentAlign === "end" && "es
|
|
191
|
-
innerContentAlign === "stretch" && "es
|
|
192
|
-
detailsVisible ? "es
|
|
187
|
+
"es:grid es:items-center es:gap-x-2 es:transition-[grid-template-columns,margin-block-end] es:duration-150",
|
|
188
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
189
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
190
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
191
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch",
|
|
192
|
+
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)]"
|
|
193
193
|
),
|
|
194
194
|
children: [
|
|
195
195
|
detailsVisible && /* @__PURE__ */ jsx(DefaultTooltip, {}),
|
|
196
|
-
/* @__PURE__ */ jsx("div", { className: clsx(detailsVisible ? "es
|
|
196
|
+
/* @__PURE__ */ jsx("div", { className: clsx(detailsVisible ? "es:col-start-2 es:col-end-2" : "es:col-span-full"), children: children({
|
|
197
197
|
breakpoint: defaultBreakpoint,
|
|
198
198
|
currentValue: value == null ? void 0 : value[attribute[defaultBreakpoint]],
|
|
199
199
|
options,
|
|
@@ -207,16 +207,16 @@ const ResponsiveLegacy = (props) => {
|
|
|
207
207
|
AnimatedVisibility,
|
|
208
208
|
{
|
|
209
209
|
className: clsx(
|
|
210
|
-
"es
|
|
211
|
-
innerContentAlign === "start" && "es
|
|
212
|
-
innerContentAlign === "center" && "es
|
|
213
|
-
innerContentAlign === "end" && "es
|
|
214
|
-
innerContentAlign === "stretch" && "es
|
|
210
|
+
"es:mb-2 es:grid es:grid-cols-[minmax(0,auto)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
|
|
211
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
212
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
213
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
214
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch"
|
|
215
215
|
),
|
|
216
216
|
visible: detailsVisible,
|
|
217
217
|
children: [
|
|
218
218
|
/* @__PURE__ */ jsx(DefaultTooltip, {}),
|
|
219
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
219
|
+
/* @__PURE__ */ jsx("div", { className: "es:col-start-2 es:col-end-2", children: children({
|
|
220
220
|
breakpoint: defaultBreakpoint,
|
|
221
221
|
currentValue: value == null ? void 0 : value[attribute[defaultBreakpoint]],
|
|
222
222
|
options,
|
|
@@ -231,7 +231,7 @@ const ResponsiveLegacy = (props) => {
|
|
|
231
231
|
AnimatedVisibility,
|
|
232
232
|
{
|
|
233
233
|
visible: detailsVisible,
|
|
234
|
-
className: "es
|
|
234
|
+
className: "es:space-y-2",
|
|
235
235
|
children: breakpoints.map((breakpoint, i) => {
|
|
236
236
|
var _a, _b, _c, _d, _e;
|
|
237
237
|
const isOverrideSet = value[attribute[breakpoint]] !== inheritValue;
|
|
@@ -241,11 +241,11 @@ const ResponsiveLegacy = (props) => {
|
|
|
241
241
|
"div",
|
|
242
242
|
{
|
|
243
243
|
className: clsx(
|
|
244
|
-
"es
|
|
245
|
-
innerContentAlign === "start" && "es
|
|
246
|
-
innerContentAlign === "center" && "es
|
|
247
|
-
innerContentAlign === "end" && "es
|
|
248
|
-
innerContentAlign === "stretch" && "es
|
|
244
|
+
"es:grid es:grid-cols-[minmax(0,auto)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
|
|
245
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
246
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
247
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
248
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch"
|
|
249
249
|
),
|
|
250
250
|
children: [
|
|
251
251
|
/* @__PURE__ */ jsx(
|
|
@@ -255,9 +255,9 @@ const ResponsiveLegacy = (props) => {
|
|
|
255
255
|
theme: "light",
|
|
256
256
|
offset: 7.5,
|
|
257
257
|
arrow: true,
|
|
258
|
-
text: /* @__PURE__ */ jsxs("div", { className: "es
|
|
259
|
-
/* @__PURE__ */ jsx("span", { className: "es
|
|
260
|
-
/* @__PURE__ */ jsxs("span", { className: "es
|
|
258
|
+
text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-96 es:p-1", children: [
|
|
259
|
+
/* @__PURE__ */ jsx("span", { className: "es:block es:font-semibold", children: upperFirst(breakpoint) }),
|
|
260
|
+
/* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", children: [
|
|
261
261
|
aboveOverride && (aboveOverride !== rawBreakpoints[0] || !belowOverride) && isOverrideSet && sprintf(__("Applied when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[breakpoint]),
|
|
262
262
|
aboveOverride && aboveOverride === rawBreakpoints[0] && belowOverride && isOverrideSet && sprintf(
|
|
263
263
|
__("Applied when the browser width is between %dpx and %dpx.", "eightshift-ui-components"),
|
|
@@ -266,8 +266,8 @@ const ResponsiveLegacy = (props) => {
|
|
|
266
266
|
),
|
|
267
267
|
(!aboveOverride || !isOverrideSet) && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint])
|
|
268
268
|
] }),
|
|
269
|
-
(aboveOverride && !isOverrideSet || !aboveOverride) && /* @__PURE__ */ jsx("span", { className: "es
|
|
270
|
-
aboveOverride && isOverrideSet && /* @__PURE__ */ jsx("div", { className: "es
|
|
269
|
+
(aboveOverride && !isOverrideSet || !aboveOverride) && /* @__PURE__ */ jsx("span", { className: "es:mt-2 es:block es:font-medium es:italic", children: __("Not set", "eightshift-ui-components") }),
|
|
270
|
+
aboveOverride && isOverrideSet && /* @__PURE__ */ jsx("div", { className: "es:mx-auto es:mt-2", children: /* @__PURE__ */ jsx(
|
|
271
271
|
BreakpointPreview,
|
|
272
272
|
{
|
|
273
273
|
blocks: [
|
|
@@ -304,8 +304,8 @@ const ResponsiveLegacy = (props) => {
|
|
|
304
304
|
"div",
|
|
305
305
|
{
|
|
306
306
|
className: clsx(
|
|
307
|
-
"es
|
|
308
|
-
value[attribute[breakpoint]] === inheritValue ? "es
|
|
307
|
+
"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",
|
|
308
|
+
value[attribute[breakpoint]] === inheritValue ? "es:border-secondary-200 es:bg-secondary-50 es:text-secondary-700" : "es:border-secondary-100 es:bg-white es:text-secondary-500"
|
|
309
309
|
),
|
|
310
310
|
children: (_e = icons) == null ? void 0 : _e[`screen${upperFirst(breakpoint)}`]
|
|
311
311
|
}
|
|
@@ -113,18 +113,18 @@ const Responsive = (props) => {
|
|
|
113
113
|
DecorativeTooltip,
|
|
114
114
|
{
|
|
115
115
|
placement: "left",
|
|
116
|
-
className: "es
|
|
116
|
+
className: "es:p-3",
|
|
117
117
|
theme: "light",
|
|
118
118
|
offset: 7.5,
|
|
119
119
|
arrow: true,
|
|
120
|
-
text: /* @__PURE__ */ jsxs("div", { className: "es
|
|
121
|
-
/* @__PURE__ */ jsx("span", { className: "es
|
|
122
|
-
/* @__PURE__ */ jsxs("span", { className: "es
|
|
120
|
+
text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-64 es:p-1", children: [
|
|
121
|
+
/* @__PURE__ */ jsx("span", { className: "es:block es:text-balance es:font-semibold es:tabular-nums", children: __("Default", "eightshift-ui-components") }),
|
|
122
|
+
/* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", children: [
|
|
123
123
|
!firstMobileFirstOverride && !lastDesktopFirstOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
|
|
124
124
|
firstMobileFirstOverride && !isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[firstMobileFirstOverride] - 1),
|
|
125
125
|
lastDesktopFirstOverride && isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[lastDesktopFirstOverride.replace("max-", "")])
|
|
126
126
|
] }),
|
|
127
|
-
/* @__PURE__ */ jsxs("div", { className: "es
|
|
127
|
+
/* @__PURE__ */ jsxs("div", { className: "es:mx-auto", children: [
|
|
128
128
|
firstMobileFirstOverride && !isDesktopFirst && /* @__PURE__ */ jsx(
|
|
129
129
|
BreakpointPreview,
|
|
130
130
|
{
|
|
@@ -167,7 +167,7 @@ const Responsive = (props) => {
|
|
|
167
167
|
)
|
|
168
168
|
] })
|
|
169
169
|
] }),
|
|
170
|
-
children: /* @__PURE__ */ jsx("div", { className: "es
|
|
170
|
+
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: ((_h = icons) == null ? void 0 : _h[overrideIcon]) ?? overrideIcon ?? icons[`screen${upperFirst(isDesktopFirst ? rawBreakpoints.at(-1) : rawBreakpoints.at(0))}`] })
|
|
171
171
|
}
|
|
172
172
|
);
|
|
173
173
|
};
|
|
@@ -182,7 +182,7 @@ const Responsive = (props) => {
|
|
|
182
182
|
inline && /* @__PURE__ */ jsx(
|
|
183
183
|
AnimatedVisibility,
|
|
184
184
|
{
|
|
185
|
-
className: "es
|
|
185
|
+
className: "es:mr-0.5",
|
|
186
186
|
visible: !detailsVisible,
|
|
187
187
|
transition: "scaleFade",
|
|
188
188
|
noInitial: true,
|
|
@@ -216,14 +216,14 @@ const Responsive = (props) => {
|
|
|
216
216
|
"aria-label": __("Responsive options", "eightshift-ui-components"),
|
|
217
217
|
tooltip: __("Responsive options", "eightshift-ui-components"),
|
|
218
218
|
popoverProps: { placement: "bottom right" },
|
|
219
|
-
triggerProps: { className: "es
|
|
219
|
+
triggerProps: { className: "es:w-5.5 es:stroke-[1.25]" },
|
|
220
220
|
triggerIcon: icons.dropdownCaretAlt,
|
|
221
221
|
children: [
|
|
222
222
|
!noModeSelect && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
223
223
|
/* @__PURE__ */ jsx(
|
|
224
224
|
MenuItem,
|
|
225
225
|
{
|
|
226
|
-
className: "
|
|
226
|
+
className: "es:pb-0! es:pt-1!",
|
|
227
227
|
disabled: true,
|
|
228
228
|
children: __("Breakpoint mode", "eightshift-ui-components")
|
|
229
229
|
}
|
|
@@ -300,16 +300,16 @@ const Responsive = (props) => {
|
|
|
300
300
|
"div",
|
|
301
301
|
{
|
|
302
302
|
className: clsx(
|
|
303
|
-
"es
|
|
304
|
-
innerContentAlign === "start" && "es
|
|
305
|
-
innerContentAlign === "center" && "es
|
|
306
|
-
innerContentAlign === "end" && "es
|
|
307
|
-
innerContentAlign === "stretch" && "es
|
|
308
|
-
detailsVisible ? "es
|
|
303
|
+
"es:grid es:items-center es:gap-x-2 es:transition-[grid-template-columns,margin-block-end] es:duration-150",
|
|
304
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
305
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
306
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
307
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch",
|
|
308
|
+
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)]"
|
|
309
309
|
),
|
|
310
310
|
children: [
|
|
311
311
|
detailsVisible && /* @__PURE__ */ jsx(DefaultTooltip, {}),
|
|
312
|
-
/* @__PURE__ */ jsx("div", { className: clsx(detailsVisible ? "es
|
|
312
|
+
/* @__PURE__ */ jsx("div", { className: clsx(detailsVisible ? "es:col-start-2 es:col-end-2" : "es:col-span-full"), children: children({
|
|
313
313
|
breakpoint: "_default",
|
|
314
314
|
currentValue: value == null ? void 0 : value["_default"],
|
|
315
315
|
handleChange: (newValue) => onChange({
|
|
@@ -327,16 +327,16 @@ const Responsive = (props) => {
|
|
|
327
327
|
AnimatedVisibility,
|
|
328
328
|
{
|
|
329
329
|
className: clsx(
|
|
330
|
-
"es
|
|
331
|
-
innerContentAlign === "start" && "es
|
|
332
|
-
innerContentAlign === "center" && "es
|
|
333
|
-
innerContentAlign === "end" && "es
|
|
334
|
-
innerContentAlign === "stretch" && "es
|
|
330
|
+
"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",
|
|
331
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
332
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
333
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
334
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch"
|
|
335
335
|
),
|
|
336
336
|
visible: detailsVisible,
|
|
337
337
|
children: [
|
|
338
338
|
/* @__PURE__ */ jsx(DefaultTooltip, {}),
|
|
339
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
339
|
+
/* @__PURE__ */ jsx("div", { className: "es:col-start-2 es:col-end-2", children: children({
|
|
340
340
|
breakpoint: "_default",
|
|
341
341
|
currentValue: value == null ? void 0 : value["_default"],
|
|
342
342
|
handleChange: (newValue) => onChange({
|
|
@@ -355,7 +355,7 @@ const Responsive = (props) => {
|
|
|
355
355
|
AnimatedVisibility,
|
|
356
356
|
{
|
|
357
357
|
visible: detailsVisible,
|
|
358
|
-
className: "es
|
|
358
|
+
className: "es:space-y-2",
|
|
359
359
|
children: breakpointsToMap.map((breakpoint, i) => {
|
|
360
360
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
361
361
|
const realBreakpointName = breakpoint.replace("max-", "");
|
|
@@ -366,11 +366,11 @@ const Responsive = (props) => {
|
|
|
366
366
|
"div",
|
|
367
367
|
{
|
|
368
368
|
className: clsx(
|
|
369
|
-
"es
|
|
370
|
-
innerContentAlign === "start" && "es
|
|
371
|
-
innerContentAlign === "center" && "es
|
|
372
|
-
innerContentAlign === "end" && "es
|
|
373
|
-
innerContentAlign === "stretch" && "es
|
|
369
|
+
"es:grid es:grid-cols-[minmax(0,auto)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
|
|
370
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
371
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
372
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
373
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch"
|
|
374
374
|
),
|
|
375
375
|
children: [
|
|
376
376
|
/* @__PURE__ */ jsx(
|
|
@@ -380,9 +380,9 @@ const Responsive = (props) => {
|
|
|
380
380
|
theme: "light",
|
|
381
381
|
offset: 7.5,
|
|
382
382
|
arrow: true,
|
|
383
|
-
text: /* @__PURE__ */ jsxs("div", { className: "es
|
|
384
|
-
/* @__PURE__ */ jsx("span", { className: "es
|
|
385
|
-
/* @__PURE__ */ jsxs("span", { className: "es
|
|
383
|
+
text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-96 es:p-1", children: [
|
|
384
|
+
/* @__PURE__ */ jsx("span", { className: "es:block es:font-semibold", children: ((_a = breakpointUiData == null ? void 0 : breakpointUiData[realBreakpointName]) == null ? void 0 : _a.label) ?? upperFirst(realBreakpointName) }),
|
|
385
|
+
/* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", children: [
|
|
386
386
|
!isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
387
387
|
!belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[realBreakpointName]),
|
|
388
388
|
belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
|
|
@@ -402,8 +402,8 @@ const Responsive = (props) => {
|
|
|
402
402
|
typeof value[breakpoint] === "undefined" && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint == null ? void 0 : breakpoint.replace("max-", "")])
|
|
403
403
|
] })
|
|
404
404
|
] }),
|
|
405
|
-
typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: "es
|
|
406
|
-
typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es
|
|
405
|
+
typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: "es:mt-2 es:block es:font-medium es:italic", children: __("Not set", "eightshift-ui-components") }),
|
|
406
|
+
typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-2", children: [
|
|
407
407
|
!isDesktopFirst && /* @__PURE__ */ jsx(
|
|
408
408
|
BreakpointPreview,
|
|
409
409
|
{
|
|
@@ -473,8 +473,8 @@ const Responsive = (props) => {
|
|
|
473
473
|
"div",
|
|
474
474
|
{
|
|
475
475
|
className: clsx(
|
|
476
|
-
"es
|
|
477
|
-
typeof value[breakpoint] !== "undefined" ? "es
|
|
476
|
+
"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",
|
|
477
|
+
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"
|
|
478
478
|
),
|
|
479
479
|
children: ((_r = icons) == null ? void 0 : _r[(_q = breakpointUiData == null ? void 0 : breakpointUiData[realBreakpointName]) == null ? void 0 : _q.icon]) ?? ((_s = breakpointUiData == null ? void 0 : breakpointUiData[realBreakpointName]) == null ? void 0 : _s.icon) ?? ((_t = icons) == null ? void 0 : _t[`screen${upperFirst(realBreakpointName)}`])
|
|
480
480
|
}
|
|
@@ -517,16 +517,16 @@ const Responsive = (props) => {
|
|
|
517
517
|
"div",
|
|
518
518
|
{
|
|
519
519
|
className: clsx(
|
|
520
|
-
"es
|
|
521
|
-
innerContentAlign === "start" && "es
|
|
522
|
-
innerContentAlign === "center" && "es
|
|
523
|
-
innerContentAlign === "end" && "es
|
|
524
|
-
innerContentAlign === "stretch" && "es
|
|
525
|
-
detailsVisible ? "
|
|
520
|
+
"es:grid es:items-center es:gap-x-2 es:transition-[grid-template-columns,margin-block-start] es:duration-150",
|
|
521
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
522
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
523
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
524
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch",
|
|
525
|
+
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)]"
|
|
526
526
|
),
|
|
527
527
|
children: [
|
|
528
528
|
detailsVisible && /* @__PURE__ */ jsx(DefaultTooltip, {}),
|
|
529
|
-
/* @__PURE__ */ jsx("div", { className: clsx(detailsVisible ? "es
|
|
529
|
+
/* @__PURE__ */ jsx("div", { className: clsx(detailsVisible ? "es:col-start-2 es:col-end-2" : "es:col-span-full"), children: children({
|
|
530
530
|
breakpoint: "_default",
|
|
531
531
|
currentValue: value == null ? void 0 : value["_default"],
|
|
532
532
|
handleChange: (newValue) => onChange({
|
|
@@ -544,16 +544,16 @@ const Responsive = (props) => {
|
|
|
544
544
|
AnimatedVisibility,
|
|
545
545
|
{
|
|
546
546
|
className: clsx(
|
|
547
|
-
"es
|
|
548
|
-
innerContentAlign === "start" && "es
|
|
549
|
-
innerContentAlign === "center" && "es
|
|
550
|
-
innerContentAlign === "end" && "es
|
|
551
|
-
innerContentAlign === "stretch" && "es
|
|
547
|
+
"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",
|
|
548
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
549
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
550
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
551
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch"
|
|
552
552
|
),
|
|
553
553
|
visible: detailsVisible,
|
|
554
554
|
children: [
|
|
555
555
|
/* @__PURE__ */ jsx(DefaultTooltip, {}),
|
|
556
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
556
|
+
/* @__PURE__ */ jsx("div", { className: "es:col-start-2 es:col-end-2", children: children({
|
|
557
557
|
breakpoint: "_default",
|
|
558
558
|
currentValue: value == null ? void 0 : value["_default"],
|
|
559
559
|
handleChange: (newValue) => onChange({
|
|
@@ -96,8 +96,8 @@ const ResponsivePreview = (props) => {
|
|
|
96
96
|
}
|
|
97
97
|
];
|
|
98
98
|
}
|
|
99
|
-
return /* @__PURE__ */ jsxs("div", { className: "es
|
|
100
|
-
/* @__PURE__ */ jsxs("div", { className: "es
|
|
99
|
+
return /* @__PURE__ */ jsxs("div", { className: "es:flex es:min-w-72 es:flex-col es:items-start es:gap-4 es:p-2 es:text-sm", children: [
|
|
100
|
+
/* @__PURE__ */ jsxs("div", { className: "es:flex es:w-full es:items-center es:gap-2.5", children: [
|
|
101
101
|
/* @__PURE__ */ jsx(
|
|
102
102
|
RichLabel,
|
|
103
103
|
{
|
|
@@ -105,9 +105,9 @@ const ResponsivePreview = (props) => {
|
|
|
105
105
|
label: __("Responsive preview", "eightshift-ui-components")
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
|
-
/* @__PURE__ */ jsx("span", { className: "es
|
|
108
|
+
/* @__PURE__ */ jsx("span", { className: "es:ml-auto es:select-none es:rounded es:bg-secondary-100 es:px-1 es:py-0.5 es:text-xs es:text-secondary-500", children: isDesktopFirst ? __("Desktop-first", "eightshift-ui-components") : __("Mobile-first", "eightshift-ui-components") })
|
|
109
109
|
] }),
|
|
110
|
-
previewItems.length === 0 && /* @__PURE__ */ jsx("span", { className: "es
|
|
110
|
+
previewItems.length === 0 && /* @__PURE__ */ jsx("span", { className: "es:text-sm es:italic es:text-secondary-500", children: __("No overrides applied", "eightshift-ui-components") }),
|
|
111
111
|
/* @__PURE__ */ jsx(
|
|
112
112
|
BreakpointPreview,
|
|
113
113
|
{
|
|
@@ -14,6 +14,8 @@ import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
|
14
14
|
* @param {boolean} [props.contentsOnly] - If `true`, only the label (/icon/subtitle) will be rendered, without any wrapping elements. Useful if you want to provide your own layout.
|
|
15
15
|
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
16
16
|
* @param {boolean} [props.noColor] - If `true`, colors on text won't be set, opacity will be used instead.
|
|
17
|
+
* @param {boolean} [props.fullSizeSubtitle] - If `true`, the subtitle is the same size as the label.
|
|
18
|
+
* @param {boolean} [props.inlineSubtitle] - If `true`, the subtitle is shown after the label instead of below it.
|
|
17
19
|
*
|
|
18
20
|
* @returns {JSX.Element} The RichLabel component.
|
|
19
21
|
*
|
|
@@ -26,33 +28,33 @@ import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
|
26
28
|
* @preserve
|
|
27
29
|
*/
|
|
28
30
|
const RichLabel = (props) => {
|
|
29
|
-
const { icon, label, subtitle, as, className, fullWidth = false, contentsOnly, hidden, noColor } = props;
|
|
31
|
+
const { icon, label, subtitle, as, className, fullWidth = false, contentsOnly, hidden, noColor, fullSizeSubtitle, inlineSubtitle } = props;
|
|
30
32
|
if (hidden) {
|
|
31
33
|
return null;
|
|
32
34
|
}
|
|
33
35
|
const ComponentToRender = as ?? "div";
|
|
34
36
|
if (contentsOnly) {
|
|
35
37
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
36
|
-
icon && /* @__PURE__ */ jsx("span", { className: clsx("[&>svg]:
|
|
37
|
-
label && /* @__PURE__ */ jsx("span", { className: clsx("es
|
|
38
|
-
subtitle && /* @__PURE__ */ jsx("span", { className: clsx("es
|
|
38
|
+
icon && /* @__PURE__ */ jsx("span", { className: clsx("es:[&>svg]:size-5.5", !noColor && "es:text-slate-500"), children: icon }),
|
|
39
|
+
label && /* @__PURE__ */ jsx("span", { className: clsx("es:text-balance", !noColor && "es:text-secondary-800"), children: label }),
|
|
40
|
+
subtitle && /* @__PURE__ */ jsx("span", { className: clsx("es:text-balance es:text-xs es:opacity-65", !noColor && "es:text-secondary-800"), children: subtitle })
|
|
39
41
|
] });
|
|
40
42
|
}
|
|
41
43
|
return /* @__PURE__ */ jsxs(
|
|
42
44
|
ComponentToRender,
|
|
43
45
|
{
|
|
44
46
|
className: clsx(
|
|
45
|
-
"es
|
|
46
|
-
!noColor && "es
|
|
47
|
-
noColor && "[&>span>svg]:
|
|
48
|
-
fullWidth && "es
|
|
47
|
+
"es:flex es:items-center es:gap-1.5 es:text-sm",
|
|
48
|
+
!noColor && "es:text-secondary-800 es:[&>span>svg]:text-slate-500",
|
|
49
|
+
noColor && "es:[&>span>svg]:opacity-80",
|
|
50
|
+
fullWidth && "es:grow",
|
|
49
51
|
className
|
|
50
52
|
),
|
|
51
53
|
children: [
|
|
52
|
-
icon && /* @__PURE__ */ jsx("span", { className: "[&>svg]:
|
|
53
|
-
(label || subtitle) && /* @__PURE__ */ jsxs("div", { className: "es
|
|
54
|
+
icon && /* @__PURE__ */ jsx("span", { className: "es:[&>svg]:size-5.5", children: icon }),
|
|
55
|
+
(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"), children: [
|
|
54
56
|
label && /* @__PURE__ */ jsx("span", { children: label }),
|
|
55
|
-
subtitle && /* @__PURE__ */ jsx("span", { className: "es
|
|
57
|
+
subtitle && /* @__PURE__ */ jsx("span", { className: clsx(!fullSizeSubtitle && "es:text-xs", "es:opacity-65"), children: subtitle })
|
|
56
58
|
] })
|
|
57
59
|
]
|
|
58
60
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
|
-
import { A as AsyncSelect$1 } from "../../react-select-async.esm-
|
|
4
|
-
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-
|
|
3
|
+
import { A as AsyncSelect$1 } from "../../react-select-async.esm-DcVLw9X5.js";
|
|
4
|
+
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-CkF3LyTF.js";
|
|
5
5
|
import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
|
|
6
6
|
import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
|
|
7
7
|
import { BaseControl } from "../base-control/base-control.js";
|
|
8
8
|
import { eightshiftSelectClasses } from "./styles.js";
|
|
9
|
-
import { c as components } from "../../index-641ee5b8.esm-
|
|
9
|
+
import { c as components } from "../../index-641ee5b8.esm-DbdaYaxR.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-DcVLw9X5.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-641ee5b8.esm-
|
|
6
|
+
import { c as components } from "../../index-641ee5b8.esm-DbdaYaxR.js";
|
|
7
7
|
/**
|
|
8
8
|
* Select menu with async loading.
|
|
9
9
|
*
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import { icons } from "../../icons/icons.js";
|
|
4
4
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
5
|
-
import { c as components } from "../../index-641ee5b8.esm-
|
|
5
|
+
import { c as components } from "../../index-641ee5b8.esm-DbdaYaxR.js";
|
|
6
6
|
/**
|
|
7
7
|
* Default dropdown indicator for CustomSelect.
|
|
8
8
|
*
|
|
@@ -12,7 +12,7 @@ import { c as components } from "../../index-641ee5b8.esm-DRaWil7u.js";
|
|
|
12
12
|
*/
|
|
13
13
|
const CustomSelectDefaultDropdownIndicator = (props) => {
|
|
14
14
|
return /* @__PURE__ */ jsx(components.DropdownIndicator, { ...props, children: React__default.cloneElement(icons.dropdownCaretAlt, {
|
|
15
|
-
className: clsx(props.selectProps.menuIsOpen && "
|
|
15
|
+
className: clsx(props.selectProps.menuIsOpen && "es:-scale-y-100 ")
|
|
16
16
|
}) });
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
@@ -30,7 +30,7 @@ const CustomSelectDefaultClearIndicator = (props) => /* @__PURE__ */ jsx(compone
|
|
|
30
30
|
*
|
|
31
31
|
* @preserve
|
|
32
32
|
*/
|
|
33
|
-
const CustomSelectDefaultMultiValueRemove = (props) => /* @__PURE__ */ jsx(components.MultiValueRemove, { ...props, children: React__default.cloneElement(icons.clear, { className: "es
|
|
33
|
+
const CustomSelectDefaultMultiValueRemove = (props) => /* @__PURE__ */ jsx(components.MultiValueRemove, { ...props, children: React__default.cloneElement(icons.clear, { className: "es:size-4" }) });
|
|
34
34
|
export {
|
|
35
35
|
CustomSelectDefaultClearIndicator,
|
|
36
36
|
CustomSelectDefaultDropdownIndicator,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
|
-
import { S as StateManagedSelect$1 } from "../../react-select.esm-
|
|
4
|
-
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-
|
|
3
|
+
import { S as StateManagedSelect$1 } from "../../react-select.esm-OZ0cmTjg.js";
|
|
4
|
+
import { D as DndContext, g as getDragEndHandler, S as SortableContext, a as getMultiValue, b as getMultiValueRemove } from "../../multi-select-components-CkF3LyTF.js";
|
|
5
5
|
import { r as restrictToParentElement } from "../../modifiers.esm-BuJQPI1X.js";
|
|
6
6
|
import { CustomSelectDefaultMultiValueRemove, CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
|
|
7
7
|
import { getValue } from "./shared.js";
|
|
8
8
|
import { BaseControl } from "../base-control/base-control.js";
|
|
9
9
|
import { eightshiftSelectClasses } from "./styles.js";
|
|
10
|
-
import { c as components } from "../../index-641ee5b8.esm-
|
|
10
|
+
import { c as components } from "../../index-641ee5b8.esm-DbdaYaxR.js";
|
|
11
11
|
/**
|
|
12
12
|
* Multi-select menu with re-orderable items.
|
|
13
13
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { S as StateManagedSelect$1 } from "../../react-select.esm-
|
|
2
|
+
import { S as StateManagedSelect$1 } from "../../react-select.esm-OZ0cmTjg.js";
|
|
3
3
|
import { CustomSelectDefaultDropdownIndicator, CustomSelectDefaultClearIndicator } from "./custom-select-default-components.js";
|
|
4
4
|
import { getValue } from "./shared.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { eightshiftSelectClasses } from "./styles.js";
|
|
7
|
-
import { c as components } from "../../index-641ee5b8.esm-
|
|
7
|
+
import { c as components } from "../../index-641ee5b8.esm-DbdaYaxR.js";
|
|
8
8
|
/**
|
|
9
9
|
* Select menu.
|
|
10
10
|
*
|