@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,32 +1,32 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useMemo, useRef, useState, useCallback, forwardRef, useContext, createContext } from "react";
|
|
3
3
|
import { b as $4e85f108e88277b8$export$ebe63fadcdce34ed, c as $4e85f108e88277b8$export$44644b8a16031b5b, d as $4e85f108e88277b8$export$717b2c0a523a0b53 } from "../../RSPContexts-2lR5GG9p.js";
|
|
4
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $bdb11010cef70236$export$f680877a34711e37, b as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$29f1550f4b0d4415, j as $64fa3d84918910a7$export$2881499e37b75b9a, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-
|
|
4
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $bdb11010cef70236$export$f680877a34711e37, b as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$29f1550f4b0d4415, j as $64fa3d84918910a7$export$2881499e37b75b9a, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-39D0mStj.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
7
|
-
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715,
|
|
8
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../Color-
|
|
6
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-CGp3guTX.js";
|
|
7
|
+
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, p as $7215afc6de606d6b$export$de79e2c695e052f3, d as $9ab94262bd0047c7$export$420e68273165f4ec, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, m as $c87311424ea30a05$export$fedb369cb70207f1, i as $c87311424ea30a05$export$a11b0059900ceec8, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-CiqTTjWy.js";
|
|
8
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../Color-B0HgM8f4.js";
|
|
9
9
|
import { $ as $9446cca9a3875146$export$cb6e0bb50bc19463, a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "../../number-GajL10e1.js";
|
|
10
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "../../textSelection-
|
|
11
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-
|
|
12
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-
|
|
13
|
-
import { b as $46d819fcbaf35654$export$8f71654801c2f7cd } from "../../useFocusable-
|
|
14
|
-
import { e as $28f99e3e86e6ec45$export$e5fda3247f5d67f9, f as $e8a7022cf87cba2a$export$36da96379f79f245, g as $bcca50147b47f54d$export$56b2c08e277f365, h as $47b897dc8cdb026b$export$8d15029008292ae, d as $6f909507e6374d18$export$1e7083018727fa60, i as $6f909507e6374d18$export$f1fce0420cc6d8ee, j as $6f909507e6374d18$export$6189c2744041d8f8, a as $6f909507e6374d18$export$105594979f116971 } from "../../Slider-
|
|
15
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-
|
|
16
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-
|
|
17
|
-
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-
|
|
18
|
-
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-
|
|
19
|
-
import { a as $3985021b0ad6602f$export$37fb8590cf2c088c, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
20
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
21
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-
|
|
22
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidation-
|
|
23
|
-
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, b as $d2e8511e6f209edf$export$e908e06f4b8e3402, c as $7d0a636d7a4dcefd$export$2123ff2b87c81ca, d as $d841c8010a73d545$export$4f384c9210e583c3, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-
|
|
10
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "../../textSelection-BlTDSskG.js";
|
|
11
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-C_2wWraB.js";
|
|
12
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-NpLM2e3G.js";
|
|
13
|
+
import { b as $46d819fcbaf35654$export$8f71654801c2f7cd } from "../../useFocusable-087cO5Ct.js";
|
|
14
|
+
import { e as $28f99e3e86e6ec45$export$e5fda3247f5d67f9, f as $e8a7022cf87cba2a$export$36da96379f79f245, g as $bcca50147b47f54d$export$56b2c08e277f365, h as $47b897dc8cdb026b$export$8d15029008292ae, d as $6f909507e6374d18$export$1e7083018727fa60, i as $6f909507e6374d18$export$f1fce0420cc6d8ee, j as $6f909507e6374d18$export$6189c2744041d8f8, a as $6f909507e6374d18$export$105594979f116971 } from "../../Slider-BZNaJylD.js";
|
|
15
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-CDOs-GuR.js";
|
|
16
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-BQ4TF72x.js";
|
|
17
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-ClTQo25k.js";
|
|
18
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-D7A6s7O5.js";
|
|
19
|
+
import { a as $3985021b0ad6602f$export$37fb8590cf2c088c, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-Se0m3ubj.js";
|
|
20
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Ca9uelsn.js";
|
|
21
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-aOUPPvTO.js";
|
|
22
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidation-BWwmZQE2.js";
|
|
23
|
+
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, b as $d2e8511e6f209edf$export$e908e06f4b8e3402, c as $7d0a636d7a4dcefd$export$2123ff2b87c81ca, d as $d841c8010a73d545$export$4f384c9210e583c3, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-Bm6_BVl9.js";
|
|
24
24
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
25
25
|
import { BaseControl } from "../base-control/base-control.js";
|
|
26
26
|
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
27
27
|
import { TriggeredPopover } from "../popover/popover.js";
|
|
28
28
|
import { icons } from "../../icons/icons.js";
|
|
29
|
-
import {
|
|
29
|
+
import { Tabs, TabList, Tab, TabPanel } from "../tabs/tabs.js";
|
|
30
30
|
const $6e14a98a7f67141d$var$DEFAULT_COLOR = $799cddbef784668f$export$6e865ea70d7724f("#ffffff");
|
|
31
31
|
function $6e14a98a7f67141d$export$6df7f0e2cabc7eef(props) {
|
|
32
32
|
let { value, defaultValue, colorSpace, xChannel, yChannel, onChange, onChangeEnd } = props;
|
|
@@ -971,7 +971,7 @@ function $5e632d1ff0188f00$export$e55dd820142d3131(props, state, inputRef) {
|
|
|
971
971
|
}, state, inputRef);
|
|
972
972
|
}
|
|
973
973
|
const $e2b71ec1d6016406$export$c80c0ea2ca5cb846 = /* @__PURE__ */ createContext(null);
|
|
974
|
-
|
|
974
|
+
const $e2b71ec1d6016406$export$a3cc47cee1c1ccc = /* @__PURE__ */ forwardRef(function ColorThumb(props, ref) {
|
|
975
975
|
let { state, thumbProps, inputXRef, inputYRef, xInputProps, yInputProps, isDisabled = false } = useContext($e2b71ec1d6016406$export$c80c0ea2ca5cb846);
|
|
976
976
|
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
977
977
|
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
@@ -1011,10 +1011,9 @@ function $e2b71ec1d6016406$var$ColorThumb(props, ref) {
|
|
|
1011
1011
|
...yInputProps,
|
|
1012
1012
|
...focusProps
|
|
1013
1013
|
}), renderProps.children);
|
|
1014
|
-
}
|
|
1015
|
-
const $e2b71ec1d6016406$export$a3cc47cee1c1ccc = /* @__PURE__ */ forwardRef($e2b71ec1d6016406$var$ColorThumb);
|
|
1014
|
+
});
|
|
1016
1015
|
const $0de070065d44825d$export$6b32221de49982e = /* @__PURE__ */ createContext(null);
|
|
1017
|
-
|
|
1016
|
+
const $0de070065d44825d$export$b2103f68a961418e = /* @__PURE__ */ forwardRef(function ColorArea(props, ref) {
|
|
1018
1017
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$ebe63fadcdce34ed);
|
|
1019
1018
|
let inputXRef = useRef(null);
|
|
1020
1019
|
let inputYRef = useRef(null);
|
|
@@ -1063,10 +1062,9 @@ function $0de070065d44825d$var$ColorArea(props, ref) {
|
|
|
1063
1062
|
]
|
|
1064
1063
|
]
|
|
1065
1064
|
}, renderProps.children));
|
|
1066
|
-
}
|
|
1067
|
-
const $0de070065d44825d$export$b2103f68a961418e = /* @__PURE__ */ forwardRef($0de070065d44825d$var$ColorArea);
|
|
1065
|
+
});
|
|
1068
1066
|
const $3ada01a82feafb94$export$96b6d32b05a1a8ed = /* @__PURE__ */ createContext(null);
|
|
1069
|
-
|
|
1067
|
+
const $3ada01a82feafb94$export$b865d4358897bb17 = /* @__PURE__ */ forwardRef(function ColorField(props, ref) {
|
|
1070
1068
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$44644b8a16031b5b);
|
|
1071
1069
|
if (props.channel) return /* @__PURE__ */ React__default.createElement($3ada01a82feafb94$var$ColorChannelField, {
|
|
1072
1070
|
...props,
|
|
@@ -1077,8 +1075,7 @@ function $3ada01a82feafb94$var$ColorField(props, ref) {
|
|
|
1077
1075
|
...props,
|
|
1078
1076
|
forwardedRef: ref
|
|
1079
1077
|
});
|
|
1080
|
-
}
|
|
1081
|
-
const $3ada01a82feafb94$export$b865d4358897bb17 = /* @__PURE__ */ forwardRef($3ada01a82feafb94$var$ColorField);
|
|
1078
|
+
});
|
|
1082
1079
|
function $3ada01a82feafb94$var$ColorChannelField(props) {
|
|
1083
1080
|
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
1084
1081
|
let state = $31a863bb88e75dd6$export$b9fc0d69c9190c4a({
|
|
@@ -1173,7 +1170,7 @@ function $3ada01a82feafb94$var$useChildren(props, state, ref, inputProps, inputR
|
|
|
1173
1170
|
}));
|
|
1174
1171
|
}
|
|
1175
1172
|
const $1cca5300a3c2e7f9$export$c7fad7ea00194428 = /* @__PURE__ */ createContext(null);
|
|
1176
|
-
|
|
1173
|
+
const $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = /* @__PURE__ */ forwardRef(function ColorSlider(props, ref) {
|
|
1177
1174
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$717b2c0a523a0b53);
|
|
1178
1175
|
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
1179
1176
|
let state = $25a25ac0d1624665$export$57bc203e1c9c6d44({
|
|
@@ -1248,8 +1245,7 @@ function $1cca5300a3c2e7f9$var$ColorSlider(props, ref) {
|
|
|
1248
1245
|
"data-orientation": state.orientation,
|
|
1249
1246
|
"data-disabled": state.isDisabled || void 0
|
|
1250
1247
|
}));
|
|
1251
|
-
}
|
|
1252
|
-
const $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = /* @__PURE__ */ forwardRef($1cca5300a3c2e7f9$var$ColorSlider);
|
|
1248
|
+
});
|
|
1253
1249
|
/**
|
|
1254
1250
|
* A solid color picker.
|
|
1255
1251
|
*
|
|
@@ -1294,10 +1290,15 @@ const SolidColorPicker = (props) => {
|
|
|
1294
1290
|
onChange(color2 == null ? void 0 : color2.toString(outputFormat ?? (allowTransparency ? "hexa" : "hex")));
|
|
1295
1291
|
};
|
|
1296
1292
|
const valueInputClassName = clsx(
|
|
1297
|
-
"es
|
|
1298
|
-
"
|
|
1293
|
+
"es:h-8 es:w-12",
|
|
1294
|
+
"es:tabular-nums es:font-mono",
|
|
1295
|
+
"es:border es:rounded-lg es:border-secondary-300 es:p-2 es:text-sm es:shadow-xs es:transition es:selection:bg-accent-500/20 es:selection:text-accent-950",
|
|
1296
|
+
"es:any-focus:outline-hidden",
|
|
1297
|
+
"es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50 es:focus-visible:z-10",
|
|
1298
|
+
"es:focus-visible:border-accent-500",
|
|
1299
|
+
"es:inset-ring es:inset-ring-secondary-100"
|
|
1299
1300
|
);
|
|
1300
|
-
return /* @__PURE__ */ jsxs("div", { className: "es
|
|
1301
|
+
return /* @__PURE__ */ jsxs("div", { className: "es:flex es:flex-col es:items-center es:gap-2", children: [
|
|
1301
1302
|
/* @__PURE__ */ jsx(
|
|
1302
1303
|
$0de070065d44825d$export$b2103f68a961418e,
|
|
1303
1304
|
{
|
|
@@ -1305,24 +1306,14 @@ const SolidColorPicker = (props) => {
|
|
|
1305
1306
|
xChannel: "saturation",
|
|
1306
1307
|
yChannel: "lightness",
|
|
1307
1308
|
className: clsx(
|
|
1308
|
-
"es
|
|
1309
|
-
'[&:has(>_[data-focus-visible="true"])]:
|
|
1310
|
-
"disabled
|
|
1309
|
+
"es:size-48 es:rounded-md es:border es:border-secondary-300 es:shadow-sm es:transition",
|
|
1310
|
+
'es:[&:has(>_[data-focus-visible="true"])]:ring es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
|
|
1311
|
+
"es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
|
|
1311
1312
|
),
|
|
1312
1313
|
onChange: handleChange,
|
|
1313
1314
|
onChangeEnd: handleChangeEnd,
|
|
1314
1315
|
isDisabled: disabled,
|
|
1315
|
-
children: /* @__PURE__ */ jsx(
|
|
1316
|
-
$e2b71ec1d6016406$export$a3cc47cee1c1ccc,
|
|
1317
|
-
{
|
|
1318
|
-
className: clsx(
|
|
1319
|
-
"es-uic-size-5 es-uic-rounded-full es-uic-border es-uic-border-white es-uic-shadow-[0_0_0_1px_black] es-uic-transition",
|
|
1320
|
-
"dragging:!-es-uic-translate-x-1/2 dragging:!-es-uic-translate-y-1/2 dragging:!es-uic-scale-110",
|
|
1321
|
-
"focus-visible:!-es-uic-translate-x-1/2 focus-visible:!-es-uic-translate-y-1/2 focus-visible:!es-uic-scale-125",
|
|
1322
|
-
"disabled:es-uic-invisible"
|
|
1323
|
-
)
|
|
1324
|
-
}
|
|
1325
|
-
)
|
|
1316
|
+
children: /* @__PURE__ */ jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, { className: "es:size-5 es:rounded-full es:transition es:dragging:scale-110! es:border es:border-white es:shadow-[0_0_0_1px_black] es:disabled:invisible" })
|
|
1326
1317
|
}
|
|
1327
1318
|
),
|
|
1328
1319
|
/* @__PURE__ */ jsx(
|
|
@@ -1336,22 +1327,11 @@ const SolidColorPicker = (props) => {
|
|
|
1336
1327
|
$6f909507e6374d18$export$105594979f116971,
|
|
1337
1328
|
{
|
|
1338
1329
|
className: clsx(
|
|
1339
|
-
"es
|
|
1340
|
-
'[&:has(>_[data-focus-visible="true"])]:
|
|
1341
|
-
"disabled
|
|
1330
|
+
"es:h-7 es:w-48 es:rounded-md es:border es:border-secondary-300 es:shadow-sm",
|
|
1331
|
+
'es:[&:has(>_[data-focus-visible="true"])]:ring es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
|
|
1332
|
+
"es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
|
|
1342
1333
|
),
|
|
1343
|
-
children: /* @__PURE__ */ jsx(
|
|
1344
|
-
$e2b71ec1d6016406$export$a3cc47cee1c1ccc,
|
|
1345
|
-
{
|
|
1346
|
-
className: clsx(
|
|
1347
|
-
"es-uic-top-3.25",
|
|
1348
|
-
"es-uic-size-5 es-uic-rounded-full es-uic-border es-uic-border-white es-uic-shadow-[0_0_0_1px_black] es-uic-transition",
|
|
1349
|
-
"dragging:!-es-uic-translate-x-1/2 dragging:!-es-uic-translate-y-1/2 dragging:!es-uic-scale-110",
|
|
1350
|
-
"focus-visible:!-es-uic-translate-x-1/2 focus-visible:!-es-uic-translate-y-1/2 focus-visible:!es-uic-scale-125",
|
|
1351
|
-
"disabled:es-uic-invisible"
|
|
1352
|
-
)
|
|
1353
|
-
}
|
|
1354
|
-
)
|
|
1334
|
+
children: /* @__PURE__ */ jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, { className: "es:top-3.25 es:size-5 es:rounded-full es:border es:border-white es:shadow-[0_0_0_1px_black] es:transition es:dragging:scale-110! es:disabled:invisible" })
|
|
1355
1335
|
}
|
|
1356
1336
|
)
|
|
1357
1337
|
}
|
|
@@ -1367,9 +1347,9 @@ const SolidColorPicker = (props) => {
|
|
|
1367
1347
|
$6f909507e6374d18$export$105594979f116971,
|
|
1368
1348
|
{
|
|
1369
1349
|
className: clsx(
|
|
1370
|
-
"es
|
|
1371
|
-
'[&:has(>_[data-focus-visible="true"])]:
|
|
1372
|
-
"disabled
|
|
1350
|
+
"es:h-7 es:w-48 es:rounded-md es:border es:border-secondary-300 es:shadow-sm",
|
|
1351
|
+
'es:[&:has(>_[data-focus-visible="true"])]:ring es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
|
|
1352
|
+
"es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
|
|
1373
1353
|
),
|
|
1374
1354
|
style: () => {
|
|
1375
1355
|
const startColor = color.clone().withChannelValue("alpha", 0).toString("hsla");
|
|
@@ -1378,23 +1358,12 @@ const SolidColorPicker = (props) => {
|
|
|
1378
1358
|
background: `linear-gradient(to right, ${startColor}, ${endColor}), repeating-conic-gradient(rgb(204, 204, 204) 0%, rgb(204, 204, 204) 25%, white 0%, white 50%) 50% center / 14px 14px`
|
|
1379
1359
|
};
|
|
1380
1360
|
},
|
|
1381
|
-
children: /* @__PURE__ */ jsx(
|
|
1382
|
-
$e2b71ec1d6016406$export$a3cc47cee1c1ccc,
|
|
1383
|
-
{
|
|
1384
|
-
className: clsx(
|
|
1385
|
-
"es-uic-top-3.25",
|
|
1386
|
-
"es-uic-size-5 es-uic-rounded-full es-uic-border es-uic-border-white es-uic-shadow-[0_0_0_1px_black] es-uic-transition",
|
|
1387
|
-
"dragging:!-es-uic-translate-x-1/2 dragging:!-es-uic-translate-y-1/2 dragging:!es-uic-scale-110",
|
|
1388
|
-
"focus-visible:!-es-uic-translate-x-1/2 focus-visible:!-es-uic-translate-y-1/2 focus-visible:!es-uic-scale-125",
|
|
1389
|
-
"disabled:es-uic-invisible"
|
|
1390
|
-
)
|
|
1391
|
-
}
|
|
1392
|
-
)
|
|
1361
|
+
children: /* @__PURE__ */ jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, { className: "es:top-3.25 es:size-5 es:rounded-full es:border es:border-white es:shadow-[0_0_0_1px_black] es:transition es:disabled:invisible" })
|
|
1393
1362
|
}
|
|
1394
1363
|
)
|
|
1395
1364
|
}
|
|
1396
1365
|
),
|
|
1397
|
-
/* @__PURE__ */ jsxs("div", { className: "es
|
|
1366
|
+
/* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:justify-center", children: [
|
|
1398
1367
|
/* @__PURE__ */ jsx(
|
|
1399
1368
|
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1400
1369
|
{
|
|
@@ -1406,8 +1375,14 @@ const SolidColorPicker = (props) => {
|
|
|
1406
1375
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
1407
1376
|
{
|
|
1408
1377
|
className: clsx(
|
|
1409
|
-
"es
|
|
1410
|
-
"
|
|
1378
|
+
"es:h-9 es:w-20",
|
|
1379
|
+
"es:tabular-nums es:font-mono",
|
|
1380
|
+
"es:border es:border-secondary-300 es:p-2 es:text-sm es:shadow-xs es:transition es:selection:bg-accent-500/20 es:selection:text-accent-950",
|
|
1381
|
+
"es:any-focus:outline-hidden",
|
|
1382
|
+
"es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50 es:focus-visible:z-10",
|
|
1383
|
+
"es:focus-visible:border-accent-500",
|
|
1384
|
+
"es:inset-ring es:inset-ring-secondary-100",
|
|
1385
|
+
noAdvancedOptions ? "es:rounded-lg" : "es:rounded-l-lg"
|
|
1411
1386
|
)
|
|
1412
1387
|
}
|
|
1413
1388
|
)
|
|
@@ -1416,180 +1391,173 @@ const SolidColorPicker = (props) => {
|
|
|
1416
1391
|
/* @__PURE__ */ jsxs(
|
|
1417
1392
|
TriggeredPopover,
|
|
1418
1393
|
{
|
|
1419
|
-
triggerButtonIcon: icons.
|
|
1420
|
-
className: "es
|
|
1394
|
+
triggerButtonIcon: icons.dropdownCaretAlt,
|
|
1395
|
+
className: "es:w-52 es:p-3",
|
|
1421
1396
|
triggerButtonProps: {
|
|
1422
1397
|
disabled,
|
|
1423
|
-
tooltip: __("Advanced color options", "eightshift-ui-components")
|
|
1398
|
+
tooltip: __("Advanced color options", "eightshift-ui-components"),
|
|
1399
|
+
className: "es:rounded-l-none es:rounded-r-l es:-ml-px es:w-6 es:icon:size-4.5!"
|
|
1424
1400
|
},
|
|
1425
1401
|
hidden: noAdvancedOptions,
|
|
1426
1402
|
children: [
|
|
1427
|
-
/* @__PURE__ */ jsx($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: "es-
|
|
1428
|
-
/* @__PURE__ */
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
{
|
|
1438
|
-
value: color == null ? void 0 : color.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1439
|
-
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1440
|
-
channel: "red",
|
|
1441
|
-
children: /* @__PURE__ */ jsx(
|
|
1442
|
-
BaseControl,
|
|
1403
|
+
/* @__PURE__ */ jsx($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: "es:text-sm es:tracking-tight es:mb-2 es:inline-block", children: __("Advanced color options", "eightshift-ui-components") }),
|
|
1404
|
+
/* @__PURE__ */ jsxs(Tabs, { type: "pillInverse", children: [
|
|
1405
|
+
/* @__PURE__ */ jsxs(TabList, { children: [
|
|
1406
|
+
/* @__PURE__ */ jsx(Tab, { children: "RGB" }),
|
|
1407
|
+
/* @__PURE__ */ jsx(Tab, { children: "HSL" }),
|
|
1408
|
+
/* @__PURE__ */ jsx(Tab, { children: "HSB" })
|
|
1409
|
+
] }),
|
|
1410
|
+
/* @__PURE__ */ jsxs(TabPanel, { children: [
|
|
1411
|
+
/* @__PURE__ */ jsx(
|
|
1412
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1443
1413
|
{
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1414
|
+
value: color == null ? void 0 : color.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1415
|
+
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1416
|
+
channel: "red",
|
|
1417
|
+
children: /* @__PURE__ */ jsx(
|
|
1418
|
+
BaseControl,
|
|
1419
|
+
{
|
|
1420
|
+
label: __("Red", "eightshift-ui-components"),
|
|
1421
|
+
inline: true,
|
|
1422
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1423
|
+
}
|
|
1424
|
+
)
|
|
1447
1425
|
}
|
|
1448
|
-
)
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
/* @__PURE__ */ jsx(
|
|
1452
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1453
|
-
{
|
|
1454
|
-
value: color == null ? void 0 : color.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1455
|
-
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1456
|
-
channel: "green",
|
|
1457
|
-
children: /* @__PURE__ */ jsx(
|
|
1458
|
-
BaseControl,
|
|
1426
|
+
),
|
|
1427
|
+
/* @__PURE__ */ jsx(
|
|
1428
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1459
1429
|
{
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1430
|
+
value: color == null ? void 0 : color.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1431
|
+
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1432
|
+
channel: "green",
|
|
1433
|
+
children: /* @__PURE__ */ jsx(
|
|
1434
|
+
BaseControl,
|
|
1435
|
+
{
|
|
1436
|
+
label: __("Green", "eightshift-ui-components"),
|
|
1437
|
+
inline: true,
|
|
1438
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1439
|
+
}
|
|
1440
|
+
)
|
|
1463
1441
|
}
|
|
1464
|
-
)
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
/* @__PURE__ */ jsx(
|
|
1468
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1469
|
-
{
|
|
1470
|
-
value: color == null ? void 0 : color.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1471
|
-
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1472
|
-
channel: "blue",
|
|
1473
|
-
children: /* @__PURE__ */ jsx(
|
|
1474
|
-
BaseControl,
|
|
1442
|
+
),
|
|
1443
|
+
/* @__PURE__ */ jsx(
|
|
1444
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1475
1445
|
{
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1446
|
+
value: color == null ? void 0 : color.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1447
|
+
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1448
|
+
channel: "blue",
|
|
1449
|
+
children: /* @__PURE__ */ jsx(
|
|
1450
|
+
BaseControl,
|
|
1451
|
+
{
|
|
1452
|
+
label: __("Blue", "eightshift-ui-components"),
|
|
1453
|
+
inline: true,
|
|
1454
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1455
|
+
}
|
|
1456
|
+
)
|
|
1479
1457
|
}
|
|
1480
1458
|
)
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
{
|
|
1486
|
-
border: true,
|
|
1487
|
-
text: "HSL"
|
|
1488
|
-
}
|
|
1489
|
-
),
|
|
1490
|
-
/* @__PURE__ */ jsx(
|
|
1491
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1492
|
-
{
|
|
1493
|
-
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1494
|
-
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1495
|
-
channel: "hue",
|
|
1496
|
-
children: /* @__PURE__ */ jsx(
|
|
1497
|
-
BaseControl,
|
|
1459
|
+
] }),
|
|
1460
|
+
/* @__PURE__ */ jsxs(TabPanel, { children: [
|
|
1461
|
+
/* @__PURE__ */ jsx(
|
|
1462
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1498
1463
|
{
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1464
|
+
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1465
|
+
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1466
|
+
channel: "hue",
|
|
1467
|
+
children: /* @__PURE__ */ jsx(
|
|
1468
|
+
BaseControl,
|
|
1469
|
+
{
|
|
1470
|
+
label: __("Hue", "eightshift-ui-components"),
|
|
1471
|
+
inline: true,
|
|
1472
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1473
|
+
}
|
|
1474
|
+
)
|
|
1502
1475
|
}
|
|
1503
|
-
)
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
/* @__PURE__ */ jsx(
|
|
1507
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1508
|
-
{
|
|
1509
|
-
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1510
|
-
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1511
|
-
channel: "saturation",
|
|
1512
|
-
children: /* @__PURE__ */ jsx(
|
|
1513
|
-
BaseControl,
|
|
1476
|
+
),
|
|
1477
|
+
/* @__PURE__ */ jsx(
|
|
1478
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1514
1479
|
{
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1480
|
+
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1481
|
+
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1482
|
+
channel: "saturation",
|
|
1483
|
+
children: /* @__PURE__ */ jsx(
|
|
1484
|
+
BaseControl,
|
|
1485
|
+
{
|
|
1486
|
+
label: __("Saturation", "eightshift-ui-components"),
|
|
1487
|
+
inline: true,
|
|
1488
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1489
|
+
}
|
|
1490
|
+
)
|
|
1518
1491
|
}
|
|
1519
|
-
)
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
/* @__PURE__ */ jsx(
|
|
1523
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1524
|
-
{
|
|
1525
|
-
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1526
|
-
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1527
|
-
channel: "lightness",
|
|
1528
|
-
children: /* @__PURE__ */ jsx(
|
|
1529
|
-
BaseControl,
|
|
1492
|
+
),
|
|
1493
|
+
/* @__PURE__ */ jsx(
|
|
1494
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1530
1495
|
{
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1496
|
+
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1497
|
+
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1498
|
+
channel: "lightness",
|
|
1499
|
+
children: /* @__PURE__ */ jsx(
|
|
1500
|
+
BaseControl,
|
|
1501
|
+
{
|
|
1502
|
+
label: __("Lightness", "eightshift-ui-components"),
|
|
1503
|
+
inline: true,
|
|
1504
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1505
|
+
}
|
|
1506
|
+
)
|
|
1534
1507
|
}
|
|
1535
1508
|
)
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
{
|
|
1541
|
-
border: true,
|
|
1542
|
-
text: "HSB"
|
|
1543
|
-
}
|
|
1544
|
-
),
|
|
1545
|
-
/* @__PURE__ */ jsx(
|
|
1546
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1547
|
-
{
|
|
1548
|
-
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1549
|
-
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1550
|
-
channel: "hue",
|
|
1551
|
-
children: /* @__PURE__ */ jsx(
|
|
1552
|
-
BaseControl,
|
|
1509
|
+
] }),
|
|
1510
|
+
/* @__PURE__ */ jsxs(TabPanel, { children: [
|
|
1511
|
+
/* @__PURE__ */ jsx(
|
|
1512
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1553
1513
|
{
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1514
|
+
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1515
|
+
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1516
|
+
channel: "hue",
|
|
1517
|
+
children: /* @__PURE__ */ jsx(
|
|
1518
|
+
BaseControl,
|
|
1519
|
+
{
|
|
1520
|
+
label: __("Hue", "eightshift-ui-components"),
|
|
1521
|
+
inline: true,
|
|
1522
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1523
|
+
}
|
|
1524
|
+
)
|
|
1557
1525
|
}
|
|
1558
|
-
)
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
/* @__PURE__ */ jsx(
|
|
1562
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1563
|
-
{
|
|
1564
|
-
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1565
|
-
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1566
|
-
channel: "saturation",
|
|
1567
|
-
children: /* @__PURE__ */ jsx(
|
|
1568
|
-
BaseControl,
|
|
1526
|
+
),
|
|
1527
|
+
/* @__PURE__ */ jsx(
|
|
1528
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1569
1529
|
{
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1530
|
+
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1531
|
+
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1532
|
+
channel: "saturation",
|
|
1533
|
+
children: /* @__PURE__ */ jsx(
|
|
1534
|
+
BaseControl,
|
|
1535
|
+
{
|
|
1536
|
+
label: __("Saturation", "eightshift-ui-components"),
|
|
1537
|
+
inline: true,
|
|
1538
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1539
|
+
}
|
|
1540
|
+
)
|
|
1573
1541
|
}
|
|
1574
|
-
)
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
/* @__PURE__ */ jsx(
|
|
1578
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1579
|
-
{
|
|
1580
|
-
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1581
|
-
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1582
|
-
channel: "brightness",
|
|
1583
|
-
children: /* @__PURE__ */ jsx(
|
|
1584
|
-
BaseControl,
|
|
1542
|
+
),
|
|
1543
|
+
/* @__PURE__ */ jsx(
|
|
1544
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1585
1545
|
{
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1546
|
+
value: color == null ? void 0 : color.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1547
|
+
onChange: (color2) => handleChange(color2 == null ? void 0 : color2.toFormat("hsl")),
|
|
1548
|
+
channel: "brightness",
|
|
1549
|
+
children: /* @__PURE__ */ jsx(
|
|
1550
|
+
BaseControl,
|
|
1551
|
+
{
|
|
1552
|
+
label: __("Brightness", "eightshift-ui-components"),
|
|
1553
|
+
inline: true,
|
|
1554
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1555
|
+
}
|
|
1556
|
+
)
|
|
1589
1557
|
}
|
|
1590
1558
|
)
|
|
1591
|
-
}
|
|
1592
|
-
)
|
|
1559
|
+
] })
|
|
1560
|
+
] })
|
|
1593
1561
|
]
|
|
1594
1562
|
}
|
|
1595
1563
|
)
|
|
@@ -60,7 +60,7 @@ const ComponentToggle = (props) => {
|
|
|
60
60
|
controlOnly,
|
|
61
61
|
expandButtonDisabled,
|
|
62
62
|
hideUseToggleOnExpand,
|
|
63
|
-
contentClassName = "es
|
|
63
|
+
contentClassName = "es:space-y-2.5",
|
|
64
64
|
design = "default",
|
|
65
65
|
hidden
|
|
66
66
|
} = props;
|
|
@@ -89,12 +89,12 @@ const ComponentToggle = (props) => {
|
|
|
89
89
|
TriggeredPopover,
|
|
90
90
|
{
|
|
91
91
|
triggerButtonProps: {
|
|
92
|
-
className: "es
|
|
92
|
+
className: "es:w-5.5 es:stroke-[1.25]",
|
|
93
93
|
tooltip: optionsLabel,
|
|
94
94
|
disabled: !useComponent
|
|
95
95
|
},
|
|
96
96
|
triggerButtonIcon: icons.dropdownCaretAlt,
|
|
97
|
-
className: clsx("es
|
|
97
|
+
className: clsx("es:w-[18.5rem] es:p-2", contentClassName),
|
|
98
98
|
children: [
|
|
99
99
|
/* @__PURE__ */ jsx(Spacer, { text: optionsLabel }),
|
|
100
100
|
children
|