@eightshift/ui-components 1.9.0 → 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-BMFbEXg1.js → Button-OQ5EIPvt.js} +8 -8
- package/dist/{SelectionManager-D-89MUJW.js → Collection-CJM_asJz.js} +345 -197
- package/dist/{Color-B-cqXgPz.js → Color-B0HgM8f4.js} +1 -1
- package/dist/{ColorSwatch-B6s54Jb3.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
- package/dist/{ComboBox-VR9-vNZv.js → ComboBox-BnlZjJ3T.js} +21 -22
- package/dist/{Dialog-BlYTPzgB.js → Dialog-CIh-hX93.js} +77 -65
- package/dist/{FieldError-DKicm3R0.js → FieldError-D7A6s7O5.js} +2 -2
- package/dist/{FocusScope-EoLYfbMp.js → FocusScope-Cs5_OoeA.js} +6 -4
- package/dist/{Group-D96edUPC.js → Group-D6tr3U_n.js} +5 -6
- package/dist/{Heading-GytTjUsy.js → Heading-DiYTXoIW.js} +3 -4
- package/dist/{Hidden-D3hHnmPI.js → Hidden-DnOd_jPX.js} +2 -2
- package/dist/{Input-BXSxJ_44.js → Input-Se0m3ubj.js} +13 -11
- package/dist/{Label-BtoiUpt8.js → Label-Ca9uelsn.js} +4 -5
- package/dist/{List-Ct3nzFZG.js → List-Br274SP1.js} +16 -8
- package/dist/{ListBox-BMpo-Cem.js → ListBox-D9dFEh5A.js} +36 -23
- package/dist/{OverlayArrow-4epQ99-E.js → OverlayArrow-1jx-ZyCR.js} +75 -13
- package/dist/{Select-aab027f3.esm-C7BxKjSc.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
- package/dist/{Separator-DUhFmbD-.js → Separator-BhZycTUp.js} +9 -7
- package/dist/{Slider-QNPrj4N9.js → Slider-BZNaJylD.js} +20 -24
- package/dist/{Text-DNDWaukZ.js → Text-aOUPPvTO.js} +3 -4
- package/dist/{VisuallyHidden-BHNhi-ls.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-KeRYAbEi.js → context-CDOs-GuR.js} +1 -1
- package/dist/{focusSafely-CZY36ssv.js → focusSafely-CiqTTjWy.js} +18 -17
- package/dist/icons/icons.js +52 -0
- package/dist/{index-641ee5b8.esm-DEB-c58F.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
- package/dist/index-BRp93Yfa.js +28318 -0
- package/dist/index-CcCn9HWX.js +44 -0
- package/dist/index.js +2 -3
- package/dist/{multi-select-components-DM3GsNfb.js → multi-select-components-CkF3LyTF.js} +4 -4
- package/dist/{react-select-async.esm-Bq3N1-Wi.js → react-select-async.esm-DcVLw9X5.js} +3 -3
- package/dist/{react-select.esm-B38nY7_U.js → react-select.esm-OZ0cmTjg.js} +3 -3
- package/dist/style-editor.js +1 -0
- package/dist/style.js +1 -1
- package/dist/{textSelection-G2G-nukT.js → textSelection-BlTDSskG.js} +2 -2
- package/dist/{useButton-CFtcz1T6.js → useButton-CmLbE5vg.js} +3 -3
- package/dist/{useEvent-B0yfN_Zu.js → useEvent-cLDJlznQ.js} +1 -1
- package/dist/{useFocusRing-DMAlRYjX.js → useFocusRing-CGp3guTX.js} +1 -1
- package/dist/{useFocusable-BlkOMLma.js → useFocusable-087cO5Ct.js} +9 -6
- package/dist/{useFormReset-BAEM0o25.js → useFormReset-NpLM2e3G.js} +1 -1
- package/dist/{useFormValidation-BNzOc2t9.js → useFormValidation-BWwmZQE2.js} +3 -3
- package/dist/{useLabel-D6FSp5_M.js → useLabel-C85N3Hzw.js} +2 -2
- package/dist/{useLabels-CraZ2Sej.js → useLabels-C_2wWraB.js} +1 -1
- package/dist/{useListState-C3dnPq2F.js → useListState-Z7FB_NzO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-B73fhEA7.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
- package/dist/{useNumberField-CQP9-nH5.js → useNumberField-Bm6_BVl9.js} +10 -10
- package/dist/{useNumberFormatter-Cdctl6fg.js → useNumberFormatter-DlUVKkO7.js} +1 -1
- package/dist/{usePress-xTkcGUkt.js → usePress-rg_OQIGW.js} +15 -14
- package/dist/{useSingleSelectListState-BGXQSTy7.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
- package/dist/{useToggle-Dpw3WpSw.js → useToggle-DzlgBLAJ.js} +4 -4
- package/dist/{useToggleState-BSKwCUIW.js → useToggleState-DhSBQxkp.js} +1 -1
- package/dist/{utils-BSLBwuuO.js → utils-39D0mStj.js} +41 -93
- package/package.json +43 -41
- 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
- package/dist/index-BYHhzLf-.js +0 -444
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d,
|
|
2
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d, f as $de32f1b87079253c$export$3ddf2d174ce01153, g as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "../../Dialog-CIh-hX93.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
5
5
|
import { Button } from "../button/button.js";
|
|
@@ -102,16 +102,17 @@ const Popover = (props) => {
|
|
|
102
102
|
crossOffset,
|
|
103
103
|
containerPadding,
|
|
104
104
|
className: ({ isEntering, isExiting }) => clsx(
|
|
105
|
-
"es
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
"es:rounded-lg es:border es:border-secondary-300 es:bg-white es:shadow-lg es:outline-hidden",
|
|
106
|
+
"es:motion-safe:motion-ease-spring-smooth",
|
|
107
|
+
isEntering && "es:motion-safe:motion-preset-slide-down-sm es:motion-safe:motion-duration-300 es:motion-reduce:motion-preset-fade-md",
|
|
108
|
+
isExiting && "es:not-motion-reduce:motion-translate-y-out-[-2.5%] es:motion-opacity-out-0 es:motion-duration-200",
|
|
108
109
|
wrapperClassName
|
|
109
110
|
),
|
|
110
111
|
style,
|
|
111
112
|
children: /* @__PURE__ */ jsx(
|
|
112
113
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
113
114
|
{
|
|
114
|
-
className: clsx("es
|
|
115
|
+
className: clsx("es:p-1 es:text-sm es:outline-hidden", className),
|
|
115
116
|
"aria-label": ariaLabel,
|
|
116
117
|
...other,
|
|
117
118
|
children
|
|
@@ -1,20 +1,20 @@
|
|
|
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, f as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, m as $df56164dff5785e2$export$4338b53315abf666, n 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-Ca9uelsn.js";
|
|
3
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, m as $df56164dff5785e2$export$4338b53315abf666, n as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-39D0mStj.js";
|
|
4
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-D7A6s7O5.js";
|
|
5
5
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
|
|
6
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-
|
|
6
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-aOUPPvTO.js";
|
|
7
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 "../../useFormValidation-
|
|
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-
|
|
9
|
+
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "../../useFormValidation-BWwmZQE2.js";
|
|
10
|
+
import { d as $9ab94262bd0047c7$export$420e68273165f4ec, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-CiqTTjWy.js";
|
|
11
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../../FocusScope-Cs5_OoeA.js";
|
|
12
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-CDOs-GuR.js";
|
|
13
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-NpLM2e3G.js";
|
|
14
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "../../useFocusable-087cO5Ct.js";
|
|
15
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-rg_OQIGW.js";
|
|
16
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CGp3guTX.js";
|
|
17
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-ClTQo25k.js";
|
|
18
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";
|
|
@@ -215,7 +215,7 @@ function $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {
|
|
|
215
215
|
const $b6c3ddc6086f204d$export$a79eda4ff50e30b6 = /* @__PURE__ */ createContext(null);
|
|
216
216
|
const $b6c3ddc6086f204d$export$b118023277d4a5c3 = /* @__PURE__ */ createContext(null);
|
|
217
217
|
const $b6c3ddc6086f204d$export$29d84393af70866c = /* @__PURE__ */ createContext(null);
|
|
218
|
-
|
|
218
|
+
const $b6c3ddc6086f204d$export$a98f0dcb43a68a25 = /* @__PURE__ */ forwardRef(function RadioGroup(props, ref) {
|
|
219
219
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);
|
|
220
220
|
let { validationBehavior: formValidationBehavior } = $64fa3d84918910a7$export$fabf2dc03a41866e($d3e0e05bdfcf66bd$export$c24727297075ec6a) || {};
|
|
221
221
|
var _props_validationBehavior, _ref;
|
|
@@ -281,8 +281,8 @@ function $b6c3ddc6086f204d$var$RadioGroup(props, ref) {
|
|
|
281
281
|
]
|
|
282
282
|
]
|
|
283
283
|
}, renderProps.children));
|
|
284
|
-
}
|
|
285
|
-
|
|
284
|
+
});
|
|
285
|
+
const $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /* @__PURE__ */ forwardRef(function Radio(props, ref) {
|
|
286
286
|
let { inputRef: userProvidedInputRef = null, ...otherProps } = props;
|
|
287
287
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(otherProps, ref, $b6c3ddc6086f204d$export$b118023277d4a5c3);
|
|
288
288
|
let state = React__default.useContext($b6c3ddc6086f204d$export$29d84393af70866c);
|
|
@@ -333,9 +333,7 @@ function $b6c3ddc6086f204d$var$Radio(props, ref) {
|
|
|
333
333
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(inputProps, focusProps),
|
|
334
334
|
ref: inputRef
|
|
335
335
|
})), renderProps.children);
|
|
336
|
-
}
|
|
337
|
-
const $b6c3ddc6086f204d$export$a98f0dcb43a68a25 = /* @__PURE__ */ forwardRef($b6c3ddc6086f204d$var$RadioGroup);
|
|
338
|
-
const $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /* @__PURE__ */ forwardRef($b6c3ddc6086f204d$var$Radio);
|
|
336
|
+
});
|
|
339
337
|
/**
|
|
340
338
|
* A simple radio button.
|
|
341
339
|
*
|
|
@@ -349,6 +347,7 @@ const $b6c3ddc6086f204d$export$d7b12c4107be0d61 = /* @__PURE__ */ forwardRef($b6
|
|
|
349
347
|
* @param {string} [props.labelClassName] - Additional classes to add to the label container.
|
|
350
348
|
* @param {boolean} [props.alignEnd] - Whether the label should be aligned to the end.
|
|
351
349
|
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
350
|
+
* @param {boolean} [props.inlineSubtitle] - If `true`, the subtitle is shown after the label instead of below it.
|
|
352
351
|
*
|
|
353
352
|
* @returns {JSX.Element} The RadioButton component.
|
|
354
353
|
*
|
|
@@ -367,6 +366,7 @@ const RadioButton = (props) => {
|
|
|
367
366
|
design = "default",
|
|
368
367
|
alignEnd,
|
|
369
368
|
children,
|
|
369
|
+
inlineSubtitle,
|
|
370
370
|
hidden,
|
|
371
371
|
...rest
|
|
372
372
|
} = props;
|
|
@@ -375,51 +375,66 @@ const RadioButton = (props) => {
|
|
|
375
375
|
}
|
|
376
376
|
const styleClassName = {
|
|
377
377
|
segmented: clsx(
|
|
378
|
-
"es-
|
|
379
|
-
"first:
|
|
380
|
-
"focus-visible:
|
|
378
|
+
"es:cursor-pointer es:py-1 es:px-1.5 es:border es:border-secondary-300 es:hover:bg-secondary-100/75 es:transition es:min-h-10",
|
|
379
|
+
"es:first:rounded-t-xl es:last:rounded-b-xl",
|
|
380
|
+
"es:focus-visible:ring-2 es:focus-visible:border-accent-500 es:focus-visible:ring-accent-500/50 es:focus-visible:z-10",
|
|
381
|
+
"es:shadow-xs es:inset-ring es:inset-shadow-xs",
|
|
382
|
+
"es:inset-ring-secondary-100 es:inset-shadow-secondary-100/50"
|
|
381
383
|
),
|
|
382
384
|
segmentedHorizontal: clsx(
|
|
383
|
-
"es-
|
|
384
|
-
"first:
|
|
385
|
-
"focus-visible:
|
|
385
|
+
"es:cursor-pointer es:py-1 es:px-1.5 es:border es:border-secondary-300 es:hover:bg-secondary-100/75 es:transition es:grow es:min-h-10",
|
|
386
|
+
"es:first:rounded-l-xl es:last:rounded-r-xl",
|
|
387
|
+
"es:focus-visible:ring-2 es:focus-visible:border-accent-500 es:focus-visible:ring-accent-500/50 es:focus-visible:z-10",
|
|
388
|
+
"es:shadow-xs es:inset-ring es:inset-shadow-xs",
|
|
389
|
+
"es:inset-ring-secondary-100 es:inset-shadow-secondary-100/50"
|
|
386
390
|
)
|
|
387
391
|
};
|
|
388
392
|
return /* @__PURE__ */ jsx(
|
|
389
393
|
$b6c3ddc6086f204d$export$d7b12c4107be0d61,
|
|
390
394
|
{
|
|
391
395
|
isDisabled: disabled,
|
|
392
|
-
className: clsx("es
|
|
396
|
+
className: clsx("es:group es:flex es:items-center es:gap-1.5 es:text-sm", styleClassName[design], className),
|
|
393
397
|
...rest,
|
|
394
|
-
children: ({ isSelected
|
|
398
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
395
399
|
alignEnd && (label || subtitle || icon) && /* @__PURE__ */ jsx(
|
|
396
400
|
RichLabel,
|
|
397
401
|
{
|
|
398
402
|
icon,
|
|
399
403
|
label,
|
|
400
404
|
subtitle,
|
|
401
|
-
className: labelClassName,
|
|
402
|
-
|
|
405
|
+
className: clsx("es:ml-1", labelClassName),
|
|
406
|
+
inlineSubtitle,
|
|
407
|
+
fullWidth: true,
|
|
408
|
+
fullSizeSubtitle: true
|
|
403
409
|
}
|
|
404
410
|
),
|
|
405
411
|
/* @__PURE__ */ jsx(
|
|
406
412
|
"div",
|
|
407
413
|
{
|
|
408
414
|
className: clsx(
|
|
409
|
-
"es
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
415
|
+
"es:size-5 es:flex es:items-center es:justify-center",
|
|
416
|
+
"es:transition es:cursor-pointer",
|
|
417
|
+
"es:bg-radial es:border es:rounded-full",
|
|
418
|
+
"es:shadow-xs es:inset-ring es:inset-shadow-xs",
|
|
419
|
+
"es:any-focus:outline-hidden",
|
|
420
|
+
!isSelected && "es:border-secondary-300 es:inset-ring-secondary-100 es:inset-shadow-secondary-100/50",
|
|
421
|
+
!isSelected && "es:from-secondary-50 es:to-white es:text-secondary-600 es:hover:text-accent-950",
|
|
422
|
+
!isSelected && "es:hover:inset-shadow-secondary-100 es:hover:to-secondary-100 es:hover:inset-ring-secondary-100",
|
|
423
|
+
isSelected && "es:text-white es:from-accent-500 es:to-accent-600",
|
|
424
|
+
isSelected && "es:shadow-accent-600/30 es:border-accent-700 es:inset-ring es:inset-ring-accent-600 es:inset-shadow-accent-400/75",
|
|
425
|
+
isSelected && "es:group-focus-visible:inset-ring-accent-600 es:group-focus-visible:inset-shadow-xs es:group-focus-visible:inset-shadow-accent-400",
|
|
426
|
+
!(design == null ? void 0 : design.startsWith("segmented")) && "es:group-focus-visible:ring-2 es:group-focus-visible:ring-accent-500/50",
|
|
427
|
+
!(design == null ? void 0 : design.startsWith("segmented")) && !isSelected && "es:group-focus-visible:border-accent-500",
|
|
428
|
+
!(design == null ? void 0 : design.startsWith("segmented")) && !alignEnd && subtitle && "es:mb-auto"
|
|
414
429
|
),
|
|
415
430
|
children: /* @__PURE__ */ jsx(
|
|
416
431
|
AnimatedVisibility,
|
|
417
432
|
{
|
|
418
433
|
transition: "scaleFade",
|
|
419
434
|
visible: isSelected,
|
|
420
|
-
className: clsx("
|
|
435
|
+
className: clsx("es:icon:size-3 es:icon:stroke-2", disabled && "es:opacity-55"),
|
|
421
436
|
noInitial: true,
|
|
422
|
-
children: /* @__PURE__ */ jsx("div", { className: "es
|
|
437
|
+
children: /* @__PURE__ */ jsx("div", { className: "es:size-2 es:rounded-full es:bg-white es:shadow-sm" })
|
|
423
438
|
}
|
|
424
439
|
)
|
|
425
440
|
}
|
|
@@ -427,10 +442,12 @@ const RadioButton = (props) => {
|
|
|
427
442
|
!alignEnd && /* @__PURE__ */ jsx(
|
|
428
443
|
RichLabel,
|
|
429
444
|
{
|
|
430
|
-
icon,
|
|
445
|
+
icon: alignEnd && icon,
|
|
431
446
|
label,
|
|
432
447
|
subtitle,
|
|
433
|
-
className: clsx(labelClassName, "[&_>_span_>_svg]
|
|
448
|
+
className: clsx(labelClassName, subtitle && "es:mt-0.5", "es:[&_>_span_>_svg]:size-5 es:ml-0.5 es:*:space-y-0.5", disabled && "es:opacity-55"),
|
|
449
|
+
inlineSubtitle,
|
|
450
|
+
fullSizeSubtitle: true
|
|
434
451
|
}
|
|
435
452
|
),
|
|
436
453
|
!(icon || label || subtitle) && children
|
|
@@ -519,7 +536,7 @@ const RadioButtonGroup = (props) => {
|
|
|
519
536
|
return /* @__PURE__ */ jsx(
|
|
520
537
|
$b6c3ddc6086f204d$export$a98f0dcb43a68a25,
|
|
521
538
|
{
|
|
522
|
-
className: clsx("es
|
|
539
|
+
className: clsx("es:w-full", className),
|
|
523
540
|
isDisabled: disabled,
|
|
524
541
|
isReadOnly: readOnly,
|
|
525
542
|
onChange,
|
|
@@ -540,10 +557,10 @@ const RadioButtonGroup = (props) => {
|
|
|
540
557
|
"div",
|
|
541
558
|
{
|
|
542
559
|
className: clsx(
|
|
543
|
-
design === "default" && orientation === "horizontal" && "es
|
|
544
|
-
design === "default" && orientation === "vertical" && "es
|
|
545
|
-
design === "segmented" && orientation === "vertical" && "es
|
|
546
|
-
design === "segmented" && orientation === "horizontal" && "es
|
|
560
|
+
design === "default" && orientation === "horizontal" && "es:flex es:flex-wrap es:gap-2.5",
|
|
561
|
+
design === "default" && orientation === "vertical" && "es:flex es:flex-col es:gap-2.5",
|
|
562
|
+
design === "segmented" && orientation === "vertical" && "es:flex es:flex-col es:-space-y-px",
|
|
563
|
+
design === "segmented" && orientation === "horizontal" && "es:nowrap es:flex es:-space-x-px"
|
|
547
564
|
),
|
|
548
565
|
children: mappedChildren
|
|
549
566
|
}
|
|
@@ -38,25 +38,25 @@ const RepeaterItem = (props) => {
|
|
|
38
38
|
label: isOutOfBounds ? __("Release to delete", "eightshift-ui-components") : label,
|
|
39
39
|
subtitle: isOutOfBounds ? null : subtitle,
|
|
40
40
|
className: clsx(
|
|
41
|
-
"es
|
|
42
|
-
isDragged && "es
|
|
43
|
-
isOutOfBounds && "es
|
|
41
|
+
"es:transition",
|
|
42
|
+
isDragged && "es:border es:border-secondary-100 es:bg-white/50 es:shadow-md es:backdrop-blur-lg",
|
|
43
|
+
isOutOfBounds && "es:border es:border-red-200! es:bg-red-50 es:shadow-red-500/20 es:[&_button]:invisible es:[&_svg_path]:stroke-red-500"
|
|
44
44
|
),
|
|
45
|
-
labelClassName: clsx(className, isDragged ? "es
|
|
45
|
+
labelClassName: clsx(className, isDragged ? "es:cursor-grabbing" : "es:cursor-grab"),
|
|
46
46
|
headerClassName: clsx(
|
|
47
|
-
"es
|
|
48
|
-
isSelected && "es
|
|
49
|
-
"group-focus:
|
|
47
|
+
"es:transition es:rounded-md",
|
|
48
|
+
isSelected && "es:bg-accent-50 es:border-accent-100",
|
|
49
|
+
"es:group-focus:outline-hidden es:group-focus-visible:ring es:group-focus-visible:ring-accent-500/50"
|
|
50
50
|
),
|
|
51
51
|
customOpenButton: ({ open, toggleOpen, tooltip, disabled }) => {
|
|
52
|
-
return /* @__PURE__ */ jsxs("div", { className: "es
|
|
52
|
+
return /* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:gap-px", children: [
|
|
53
53
|
/* @__PURE__ */ jsxs(
|
|
54
54
|
Menu,
|
|
55
55
|
{
|
|
56
56
|
hidden: noMenuButton,
|
|
57
57
|
triggerIcon: icons.moreH,
|
|
58
58
|
triggerProps: {
|
|
59
|
-
className: "
|
|
59
|
+
className: "es:icon:size-5 es:icon:shrink-0",
|
|
60
60
|
size: "small",
|
|
61
61
|
type: "ghost"
|
|
62
62
|
},
|
|
@@ -93,7 +93,7 @@ const RepeaterItem = (props) => {
|
|
|
93
93
|
onPress: toggleOpen,
|
|
94
94
|
tooltip,
|
|
95
95
|
disabled,
|
|
96
|
-
className: clsx("
|
|
96
|
+
className: clsx("es:icon:size-5 es:icon:transition-transform", open && "es:icon:-scale-y-100"),
|
|
97
97
|
size: "small"
|
|
98
98
|
}
|
|
99
99
|
)
|
|
@@ -7,7 +7,7 @@ import { BaseControl } from "../base-control/base-control.js";
|
|
|
7
7
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
8
8
|
import { RepeaterContext } from "./repeater-context.js";
|
|
9
9
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
10
|
-
import { L as List, a as arrayRemove, b as arrayMove } from "../../List-
|
|
10
|
+
import { L as List, a as arrayRemove, b as arrayMove } from "../../List-Br274SP1.js";
|
|
11
11
|
const fixIds = (items, itemIdBase) => {
|
|
12
12
|
return items == null ? void 0 : items.map((item, i) => ({
|
|
13
13
|
...item,
|
|
@@ -120,12 +120,12 @@ const Repeater = (props) => {
|
|
|
120
120
|
},
|
|
121
121
|
size: "small",
|
|
122
122
|
icon: icons.add,
|
|
123
|
-
className: clsx("
|
|
123
|
+
className: clsx("es:icon:size-4", !hideEmptyState && items.length < 1 && "es:invisible"),
|
|
124
124
|
tooltip: __("Add item", "eightshift-ui-components"),
|
|
125
125
|
disabled: addDisabled || !canAdd
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
addButton && /* @__PURE__ */ jsx("div", { className: clsx(!hideEmptyState && items.length < 1 && "es
|
|
128
|
+
addButton && /* @__PURE__ */ jsx("div", { className: clsx(!hideEmptyState && items.length < 1 && "es:invisible"), children: addButton({
|
|
129
129
|
addItem: (additional = {}) => {
|
|
130
130
|
const newItem = { id: `${itemIdBase}${items.length + 1}`, ...addDefaultItem, ...additional };
|
|
131
131
|
onChange([...items, newItem]);
|
|
@@ -136,7 +136,7 @@ const Repeater = (props) => {
|
|
|
136
136
|
disabled: addDisabled
|
|
137
137
|
}) })
|
|
138
138
|
] }),
|
|
139
|
-
className: "es
|
|
139
|
+
className: "es:w-full",
|
|
140
140
|
children: [
|
|
141
141
|
/* @__PURE__ */ jsx(
|
|
142
142
|
List,
|
|
@@ -148,7 +148,7 @@ const Repeater = (props) => {
|
|
|
148
148
|
return /* @__PURE__ */ jsx(
|
|
149
149
|
"ul",
|
|
150
150
|
{
|
|
151
|
-
className: clsx("es
|
|
151
|
+
className: clsx("es:w-full es:list-none", className),
|
|
152
152
|
...rest,
|
|
153
153
|
children: children2
|
|
154
154
|
},
|
|
@@ -160,7 +160,7 @@ const Repeater = (props) => {
|
|
|
160
160
|
return /* @__PURE__ */ jsx(
|
|
161
161
|
"li",
|
|
162
162
|
{
|
|
163
|
-
className: "es
|
|
163
|
+
className: "es:group es:w-full es:list-none es:focus:outline-hidden",
|
|
164
164
|
...rest,
|
|
165
165
|
children: /* @__PURE__ */ jsx(
|
|
166
166
|
RepeaterContext.Provider,
|
|
@@ -212,7 +212,7 @@ const Repeater = (props) => {
|
|
|
212
212
|
),
|
|
213
213
|
/* @__PURE__ */ jsxs(AnimatedVisibility, { visible: items.length < 1, children: [
|
|
214
214
|
emptyState,
|
|
215
|
-
!hideEmptyState && /* @__PURE__ */ jsxs("div", { className: "es
|
|
215
|
+
!hideEmptyState && /* @__PURE__ */ jsxs("div", { className: "es:flex es:flex-col es:items-center es:gap-2 es:rounded-md es:border es:border-dashed es:border-secondary-300 es:p-4 es:text-center es:text-sm es:text-secondary-400", children: [
|
|
216
216
|
!addButton && /* @__PURE__ */ jsx(
|
|
217
217
|
Button,
|
|
218
218
|
{
|
|
@@ -225,7 +225,7 @@ const Repeater = (props) => {
|
|
|
225
225
|
},
|
|
226
226
|
size: "small",
|
|
227
227
|
icon: icons.add,
|
|
228
|
-
className: "
|
|
228
|
+
className: "es:icon:size-4",
|
|
229
229
|
disabled: addDisabled,
|
|
230
230
|
children: __("Add item", "eightshift-ui-components")
|
|
231
231
|
}
|
|
@@ -12,7 +12,7 @@ import { Spacer } from "../spacer/spacer.js";
|
|
|
12
12
|
import { BaseControl } from "../base-control/base-control.js";
|
|
13
13
|
import { TriggeredPopover } from "../popover/popover.js";
|
|
14
14
|
import { OptionSelect } from "../option-select/option-select.js";
|
|
15
|
-
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-
|
|
15
|
+
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-aOUPPvTO.js";
|
|
16
16
|
/**
|
|
17
17
|
* A compact, inline version of `Responsive`. Allows the user to set different values for different breakpoints.
|
|
18
18
|
*
|
|
@@ -110,18 +110,18 @@ const MiniResponsive = (props) => {
|
|
|
110
110
|
DecorativeTooltip,
|
|
111
111
|
{
|
|
112
112
|
placement: "left",
|
|
113
|
-
className: "es
|
|
113
|
+
className: "es:p-3",
|
|
114
114
|
theme: "light",
|
|
115
115
|
offset: 7.5,
|
|
116
116
|
arrow: true,
|
|
117
|
-
text: /* @__PURE__ */ jsxs("div", { className: "es
|
|
118
|
-
/* @__PURE__ */ jsx("span", { className: "es
|
|
119
|
-
/* @__PURE__ */ jsxs("span", { className: "es
|
|
117
|
+
text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-64 es:p-1", children: [
|
|
118
|
+
/* @__PURE__ */ jsx("span", { className: "es:block es:text-balance es:font-semibold es:tabular-nums", children: __("Default", "eightshift-ui-components") }),
|
|
119
|
+
/* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", children: [
|
|
120
120
|
!firstMobileFirstOverride && !lastDesktopFirstOverride && __("Always applied, regardless of browser width.", "eightshift-ui-components"),
|
|
121
121
|
firstMobileFirstOverride && !isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or less.", "eightshift-ui-components"), breakpointData[firstMobileFirstOverride] - 1),
|
|
122
122
|
lastDesktopFirstOverride && isDesktopFirst && sprintf(__("Applies when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[lastDesktopFirstOverride.replace("max-", "")])
|
|
123
123
|
] }),
|
|
124
|
-
/* @__PURE__ */ jsxs("div", { className: "es
|
|
124
|
+
/* @__PURE__ */ jsxs("div", { className: "es:mx-auto", children: [
|
|
125
125
|
firstMobileFirstOverride && !isDesktopFirst && /* @__PURE__ */ jsx(
|
|
126
126
|
BreakpointPreview,
|
|
127
127
|
{
|
|
@@ -164,7 +164,7 @@ const MiniResponsive = (props) => {
|
|
|
164
164
|
)
|
|
165
165
|
] })
|
|
166
166
|
] }),
|
|
167
|
-
children: /* @__PURE__ */ jsx("div", { className: "es
|
|
167
|
+
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))}`] })
|
|
168
168
|
}
|
|
169
169
|
);
|
|
170
170
|
};
|
|
@@ -191,15 +191,15 @@ const MiniResponsive = (props) => {
|
|
|
191
191
|
/* @__PURE__ */ jsxs(
|
|
192
192
|
TriggeredPopover,
|
|
193
193
|
{
|
|
194
|
-
triggerButtonIcon: cloneElement(isDesktopFirst ? icons.responsiveOverridesAlt : icons.responsiveOverridesAlt2, { className: "
|
|
194
|
+
triggerButtonIcon: cloneElement(isDesktopFirst ? icons.responsiveOverridesAlt : icons.responsiveOverridesAlt2, { className: "es:size-5!" }),
|
|
195
195
|
triggerButtonProps: {
|
|
196
196
|
tooltip: __("Responsive overrides", "eightshift-ui-components"),
|
|
197
|
-
className: "es
|
|
197
|
+
className: "es:w-7"
|
|
198
198
|
},
|
|
199
|
-
className: "es
|
|
199
|
+
className: "es:min-w-80 es:divide-y es:divide-secondary-200 es:p-0!",
|
|
200
200
|
children: [
|
|
201
|
-
/* @__PURE__ */ jsxs("div", { className: "es
|
|
202
|
-
/* @__PURE__ */ jsx($514c0188e459b4c0$export$5f1af8db9871e1d6, { className: "es
|
|
201
|
+
/* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:justify-between es:p-2", children: [
|
|
202
|
+
/* @__PURE__ */ jsx($514c0188e459b4c0$export$5f1af8db9871e1d6, { className: "es:block es:text-xs es:text-secondary-500", children: __("Responsive overrides", "eightshift-ui-components") }),
|
|
203
203
|
/* @__PURE__ */ jsx(
|
|
204
204
|
OptionSelect,
|
|
205
205
|
{
|
|
@@ -222,20 +222,20 @@ const MiniResponsive = (props) => {
|
|
|
222
222
|
}
|
|
223
223
|
)
|
|
224
224
|
] }),
|
|
225
|
-
/* @__PURE__ */ jsxs("div", { className: "es
|
|
225
|
+
/* @__PURE__ */ jsxs("div", { className: "es:space-y-2 es:px-2 es:py-2.5", children: [
|
|
226
226
|
!isDesktopFirst && /* @__PURE__ */ jsxs(
|
|
227
227
|
"div",
|
|
228
228
|
{
|
|
229
229
|
className: clsx(
|
|
230
|
-
"es
|
|
231
|
-
innerContentAlign === "start" && "es
|
|
232
|
-
innerContentAlign === "center" && "es
|
|
233
|
-
innerContentAlign === "end" && "es
|
|
234
|
-
innerContentAlign === "stretch" && "es
|
|
230
|
+
"es:grid es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
|
|
231
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
232
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
233
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
234
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch"
|
|
235
235
|
),
|
|
236
236
|
children: [
|
|
237
237
|
/* @__PURE__ */ jsx(DefaultTooltip, {}),
|
|
238
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
238
|
+
/* @__PURE__ */ jsx("div", { className: "es:col-start-2 es:col-end-2", children: children({
|
|
239
239
|
breakpoint: "_default",
|
|
240
240
|
currentValue: value == null ? void 0 : value["_default"],
|
|
241
241
|
handleChange: (newValue) => onChange({
|
|
@@ -260,11 +260,11 @@ const MiniResponsive = (props) => {
|
|
|
260
260
|
"div",
|
|
261
261
|
{
|
|
262
262
|
className: clsx(
|
|
263
|
-
"es
|
|
264
|
-
innerContentAlign === "start" && "es
|
|
265
|
-
innerContentAlign === "center" && "es
|
|
266
|
-
innerContentAlign === "end" && "es
|
|
267
|
-
innerContentAlign === "stretch" && "es
|
|
263
|
+
"es:grid es:grid-cols-[minmax(0,auto)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
|
|
264
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
265
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
266
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
267
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch"
|
|
268
268
|
),
|
|
269
269
|
children: [
|
|
270
270
|
/* @__PURE__ */ jsx(
|
|
@@ -274,9 +274,9 @@ const MiniResponsive = (props) => {
|
|
|
274
274
|
theme: "light",
|
|
275
275
|
offset: 7.5,
|
|
276
276
|
arrow: true,
|
|
277
|
-
text: /* @__PURE__ */ jsxs("div", { className: "es
|
|
278
|
-
/* @__PURE__ */ jsx("span", { className: "es
|
|
279
|
-
/* @__PURE__ */ jsxs("span", { className: "es
|
|
277
|
+
text: /* @__PURE__ */ jsxs("div", { className: "es:max-w-96 es:p-1", children: [
|
|
278
|
+
/* @__PURE__ */ jsx("span", { className: "es:block es:font-semibold", children: ((_a = breakpointUiData == null ? void 0 : breakpointUiData[realBreakpointName]) == null ? void 0 : _a.label) ?? upperFirst(realBreakpointName) }),
|
|
279
|
+
/* @__PURE__ */ jsxs("span", { className: "es:block es:text-balance es:tabular-nums", children: [
|
|
280
280
|
!isDesktopFirst && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
281
281
|
!belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(__("Applied when the browser width is %dpx or more.", "eightshift-ui-components"), breakpointData[realBreakpointName]),
|
|
282
282
|
belowOverride && typeof value[breakpoint] !== "undefined" && sprintf(
|
|
@@ -296,8 +296,8 @@ const MiniResponsive = (props) => {
|
|
|
296
296
|
typeof value[breakpoint] === "undefined" && sprintf(__("Up to %dpx", "eightshift-ui-components"), breakpointData[breakpoint == null ? void 0 : breakpoint.replace("max-", "")])
|
|
297
297
|
] })
|
|
298
298
|
] }),
|
|
299
|
-
typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: "es
|
|
300
|
-
typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es
|
|
299
|
+
typeof value[breakpoint] === "undefined" && /* @__PURE__ */ jsx("span", { className: "es:mt-2 es:block es:font-medium es:italic", children: __("Not set", "eightshift-ui-components") }),
|
|
300
|
+
typeof value[breakpoint] !== "undefined" && /* @__PURE__ */ jsxs("div", { className: "es:mx-auto es:mt-2", children: [
|
|
301
301
|
!isDesktopFirst && /* @__PURE__ */ jsx(
|
|
302
302
|
BreakpointPreview,
|
|
303
303
|
{
|
|
@@ -367,8 +367,8 @@ const MiniResponsive = (props) => {
|
|
|
367
367
|
"div",
|
|
368
368
|
{
|
|
369
369
|
className: clsx(
|
|
370
|
-
"es
|
|
371
|
-
typeof value[breakpoint] !== "undefined" ? "es
|
|
370
|
+
"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",
|
|
371
|
+
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"
|
|
372
372
|
),
|
|
373
373
|
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)}`])
|
|
374
374
|
}
|
|
@@ -409,15 +409,15 @@ const MiniResponsive = (props) => {
|
|
|
409
409
|
"div",
|
|
410
410
|
{
|
|
411
411
|
className: clsx(
|
|
412
|
-
"es
|
|
413
|
-
innerContentAlign === "start" && "es
|
|
414
|
-
innerContentAlign === "center" && "es
|
|
415
|
-
innerContentAlign === "end" && "es
|
|
416
|
-
innerContentAlign === "stretch" && "es
|
|
412
|
+
"es:grid es:grid-cols-[minmax(0,1.75rem)_minmax(0,1fr)_minmax(0,2.25rem)] es:items-center es:gap-x-2",
|
|
413
|
+
innerContentAlign === "start" && "es:justify-items-start",
|
|
414
|
+
innerContentAlign === "center" && "es:justify-items-center",
|
|
415
|
+
innerContentAlign === "end" && "es:justify-items-end",
|
|
416
|
+
innerContentAlign === "stretch" && "es:justify-items-stretch"
|
|
417
417
|
),
|
|
418
418
|
children: [
|
|
419
419
|
/* @__PURE__ */ jsx(DefaultTooltip, {}),
|
|
420
|
-
/* @__PURE__ */ jsx("div", { className: "es
|
|
420
|
+
/* @__PURE__ */ jsx("div", { className: "es:col-start-2 es:col-end-2", children: children({
|
|
421
421
|
breakpoint: "_default",
|
|
422
422
|
currentValue: value == null ? void 0 : value["_default"],
|
|
423
423
|
handleChange: (newValue) => onChange({
|
|
@@ -433,7 +433,7 @@ const MiniResponsive = (props) => {
|
|
|
433
433
|
"_default-desktop-first"
|
|
434
434
|
)
|
|
435
435
|
] }),
|
|
436
|
-
/* @__PURE__ */ jsxs("div", { className: "es
|
|
436
|
+
/* @__PURE__ */ jsxs("div", { className: "es:grid es:grid-cols-[1fr_auto_1fr] es:gap-x-1 es:px-1", children: [
|
|
437
437
|
/* @__PURE__ */ jsx(
|
|
438
438
|
TriggeredPopover,
|
|
439
439
|
{
|
|
@@ -441,7 +441,7 @@ const MiniResponsive = (props) => {
|
|
|
441
441
|
triggerButtonProps: {
|
|
442
442
|
disabled: !Object.keys(value).some((key) => !(key == null ? void 0 : key.startsWith("_")) && typeof (value == null ? void 0 : value[key]) !== "undefined"),
|
|
443
443
|
type: "ghost",
|
|
444
|
-
className: "es
|
|
444
|
+
className: "es:my-1"
|
|
445
445
|
},
|
|
446
446
|
children: /* @__PURE__ */ jsx(
|
|
447
447
|
ResponsivePreview,
|
|
@@ -460,7 +460,7 @@ const MiniResponsive = (props) => {
|
|
|
460
460
|
/* @__PURE__ */ jsx(
|
|
461
461
|
Spacer,
|
|
462
462
|
{
|
|
463
|
-
className: "
|
|
463
|
+
className: "es:*:bg-secondary-200!",
|
|
464
464
|
vertical: true,
|
|
465
465
|
border: true
|
|
466
466
|
}
|
|
@@ -478,7 +478,7 @@ const MiniResponsive = (props) => {
|
|
|
478
478
|
onChange(newValue);
|
|
479
479
|
},
|
|
480
480
|
type: "ghost",
|
|
481
|
-
className: "es
|
|
481
|
+
className: "es:my-1 es:justify-center",
|
|
482
482
|
children: __("Clear all overrides", "eightshift-ui-components")
|
|
483
483
|
}
|
|
484
484
|
)
|