@eightshift/ui-components 5.6.1 → 6.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/dist/{Button-CQ5ZZJ2w.js → Button-BXjXzdW_.js} +13 -13
- package/dist/{Dialog-BMgMUQuN.js → Dialog-D8bjn-nh.js} +404 -77
- package/dist/{FieldError-B8BgFmIQ.js → FieldError-DwBG6m1U.js} +2 -2
- package/dist/{FocusScope-B5vxRkHm.js → FocusScope-BMk5oZCk.js} +8 -8
- package/dist/{Heading-B5aEynOM.js → Heading-BmRX4BRL.js} +3 -3
- package/dist/{Hidden-rE6uR-lr.js → Hidden-Rfj-STx7.js} +4 -4
- package/dist/{Input-8yja_IHC.js → Input-CNNksOWg.js} +11 -11
- package/dist/{Label-DWVaNd2E.js → Label-D8a3eYb-.js} +4 -4
- package/dist/{List-BiAnh5G5.js → List-BGHOoFf0.js} +8 -8
- package/dist/{ListBox-DggfiuO_.js → ListBox-Dd37zMvs.js} +40 -41
- package/dist/{OverlayArrow-DraDOoRn.js → OverlayArrow-DokC40S3.js} +6 -6
- package/dist/{PortalProvider---wyKpMr.js → PortalProvider-CHPnqDSH.js} +2 -2
- package/dist/RadioGroup-BVFvITWO.js +371 -0
- package/dist/{SearchField-DWGdCvnn.js → SearchField-CHYnN-jt.js} +16 -16
- package/dist/{SelectionManager-B6-b5NM2.js → SelectionManager-N8X7T_4D.js} +44 -46
- package/dist/{SharedElementTransition-fML-zIv6.js → SharedElementTransition-BDT84GtD.js} +3 -3
- package/dist/{Slider-DfU6bRtH.js → Slider-CL5CM9S8.js} +23 -23
- package/dist/{Text-AxKZjtFm.js → Text-ztX6G1zR.js} +3 -3
- package/dist/{VisuallyHidden-CgnIuZJ2.js → VisuallyHidden-DTUuKFiI.js} +4 -4
- package/dist/assets/style-admin.css +12156 -2
- package/dist/assets/style-editor.css +12156 -2
- package/dist/assets/style.css +12162 -2
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +6 -0
- package/dist/assets/wp-overrides/fix-label-text-case.css +29 -0
- package/dist/assets/wp-overrides/increase-sidebar-width.css +4 -0
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +155 -0
- package/dist/assets/wp-overrides/replace-fonts.css +8 -0
- package/dist/assets/wp-overrides/restyle-tooltips.css +194 -0
- package/dist/assets/wp-overrides/round-corners.css +200 -0
- package/dist/assets/wp-overrides/unify-button-sizes.css +5 -0
- package/dist/clsx-DgYk2OaC.js +16 -0
- package/dist/{Color-WxFE7lQB.js → color-swatch-CFIuSPcO.js} +124 -6
- package/dist/components/animated-visibility/animated-visibility.js +25 -17
- package/dist/components/base-control/base-control.js +8 -5
- package/dist/components/base-control/container.js +204 -0
- package/dist/components/button/button.js +249 -155
- package/dist/components/checkbox/checkbox.js +96 -37
- package/dist/components/color-pickers/color-picker.js +16 -7
- package/dist/components/color-pickers/color-swatch.js +5 -57
- package/dist/components/color-pickers/gradient-editor.js +161 -138
- package/dist/components/color-pickers/solid-color-picker.js +308 -206
- package/dist/components/component-toggle/component-toggle.js +12 -8
- package/dist/components/container-panel/container-panel.js +54 -31
- package/dist/components/draggable/draggable-handle.js +8 -7
- package/dist/components/draggable/draggable.js +2 -2
- package/dist/components/draggable-list/draggable-list-item.js +21 -12
- package/dist/components/draggable-list/draggable-list.js +19 -21
- package/dist/components/expandable/expandable.js +56 -28
- package/dist/components/index.js +7 -21
- package/dist/components/input-field/input-field.js +112 -35
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +181 -121
- package/dist/components/matrix-align/matrix-align.js +54 -20
- package/dist/components/menu/menu.js +26 -34
- package/dist/components/modal/modal.js +31 -28
- package/dist/components/notice/notice.js +45 -28
- package/dist/components/number-picker/number-picker.js +151 -101
- package/dist/components/option-select/option-select.js +40 -4
- package/dist/components/options-panel/options-panel.js +52 -25
- package/dist/components/placeholders/file-picker-shell.js +10 -9
- package/dist/components/placeholders/file-placeholder.js +14 -6
- package/dist/components/placeholders/image-placeholder.js +14 -4
- package/dist/components/placeholders/media-placeholder.js +11 -4
- package/dist/components/popover/popover.js +14 -11
- package/dist/components/portal-provider/portal-provider.js +1 -1
- package/dist/components/radio/radio.js +118 -429
- package/dist/components/repeater/repeater-item.js +7 -10
- package/dist/components/repeater/repeater.js +9 -15
- package/dist/components/responsive/mini-responsive.js +53 -61
- package/dist/components/responsive/responsive-legacy.js +1 -1
- package/dist/components/responsive/responsive.js +27 -27
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +5 -5
- package/dist/components/select/async-multi-select.js +467 -100
- package/dist/components/select/{v2/async-select.js → async-select.js} +182 -105
- package/dist/components/select/multi-select.js +437 -83
- package/dist/components/select/shared.js +14 -42
- package/dist/components/select/single-select.js +349 -54
- package/dist/components/slider/column-config-slider.js +138 -45
- package/dist/components/slider/slider.js +265 -205
- package/dist/components/slider/utils.js +32 -1
- package/dist/components/smart-image/smart-image.js +25 -4
- package/dist/components/smart-image/worker-inline.js +1 -1
- package/dist/components/spacer/spacer.js +2 -2
- package/dist/components/tabs/tabs.js +370 -101
- package/dist/components/toggle/switch.js +174 -39
- package/dist/components/toggle/toggle.js +6 -3
- package/dist/components/toggle-button/toggle-button.js +140 -56
- package/dist/components/tooltip/tooltip.js +27 -26
- package/dist/{context-DMOmz986.js → context-BQvmiUqb.js} +3 -3
- package/dist/{default-i18n-DBm-GqWM.js → default-i18n-CnQeC5Pl.js} +10 -10
- package/dist/{general-Ck8IV7xJ.js → general-B6pOveVp.js} +11 -10
- package/dist/icons/icons.js +28 -9
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/icons/spinner.js +3 -1
- package/dist/{index-Dq3gT5pW.js → index-BHpUy2Ix.js} +1 -1
- package/dist/{index-D8-Zjpbd.js → index-oFgxU4zs.js} +3 -3
- package/dist/index.js +6 -20
- package/dist/proxy-0B6wWuDe.js +7409 -0
- package/dist/{react-jsx-parser.min-VUl-CuCv.js → react-jsx-parser.min-B_hvYYa1.js} +5 -5
- package/dist/{Select-BvggcFOX.js → shared-DwjRce5e.js} +170 -36
- package/dist/{textSelection-DbCKqaw8.js → textSelection-CwHUtNVX.js} +1 -1
- package/dist/{useButton-v9ngEj50.js → useButton-DdZrS1Kz.js} +3 -3
- package/dist/{useEvent-BifIGnVS.js → useEvent-BD7Olibq.js} +1 -1
- package/dist/{useFilter-BlkUH1Ma.js → useFilter-bhxeEDg8.js} +1 -1
- package/dist/{useFocusRing-Cgm0R4Cf.js → useFocusRing-D3b7Kh4P.js} +1 -1
- package/dist/{useFormReset-yV9VVy9R.js → useFormReset-WUv2PdFO.js} +1 -1
- package/dist/{useFormValidation-CeNsUGWK.js → useFormValidation-DQeXkyLm.js} +2 -2
- package/dist/{useHover-BRDW3y7-.js → useHover-Bycb7BsD.js} +7 -7
- package/dist/{useLabel-C8umX0gk.js → useLabel-Bnv4-T24.js} +2 -2
- package/dist/{useLabels-Cdxi6JSa.js → useLabels-B49ptFDX.js} +1 -1
- package/dist/{useListState-RdLrYsMP.js → useListState-ZKhRO8ML.js} +1 -1
- package/dist/{useLocalizedStringFormatter-eaZiN2tE.js → useLocalizedStringFormatter-NETP-8H8.js} +1 -1
- package/dist/{useNumberField-D16dDfYF.js → useNumberField-D2fUHql3.js} +10 -10
- package/dist/{useNumberFormatter-BCmkV-7c.js → useNumberFormatter-DGvuRCn7.js} +1 -1
- package/dist/{usePress-DJskZBH9.js → usePress-B8OteQMu.js} +6 -6
- package/dist/{useSingleSelectListState-n0AVMr3Y.js → useSingleSelectListState-BBTu4shO.js} +2 -2
- package/dist/{useToggle-DSBDAfdw.js → useToggle-BZhaYwZl.js} +4 -4
- package/dist/{useToggleState-CzN79ary.js → useToggleState-VkXJjsru.js} +1 -1
- package/dist/utilities/general.js +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/{utils-cvK1vxO7.js → utils-DGpXyJOJ.js} +29 -42
- package/dist/workers/image-analysis.worker.js +3 -3
- package/package.json +26 -22
- package/dist/ColorSwatch-xVS3rMYS.js +0 -66
- package/dist/Select-ef7c0426.esm-CmTkSxDx.js +0 -2474
- package/dist/Separator-B-xeqOkC.js +0 -344
- package/dist/assets/wp-font-enhancements.css +0 -2
- package/dist/assets/wp-ui-enhancements.css +0 -2
- package/dist/components/select/async-single-select.js +0 -138
- package/dist/components/select/custom-select-default-components.js +0 -38
- package/dist/components/select/multi-select-components.js +0 -8
- package/dist/components/select/react-select-component-wrappers.js +0 -90
- package/dist/components/select/styles.js +0 -49
- package/dist/components/select/v2/async-multi-select.js +0 -432
- package/dist/components/select/v2/multi-select.js +0 -403
- package/dist/components/select/v2/shared.js +0 -69
- package/dist/components/select/v2/single-select.js +0 -358
- package/dist/index-641ee5b8.esm-DVp0njHa.js +0 -3139
- package/dist/modifiers.esm-BuJQPI1X.js +0 -31
- package/dist/multi-select-components-CT_W0Cy9.js +0 -3744
- package/dist/react-select-async.esm-Zl1LPaPb.js +0 -107
- package/dist/react-select.esm-Bu36HujU.js +0 -15
- package/dist/useDragAndDrop-C08ZXv4F.js +0 -3925
- package/dist/wp/wp-font-enhancements.js +0 -1
- package/dist/wp/wp-ui-enhancements.js +0 -1
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import $dbSRa$react__default, { useState, useMemo, useRef, useCallback, forwardRef, createContext, useContext } from "react";
|
|
3
3
|
import { d as $4e85f108e88277b8$export$ebe63fadcdce34ed, e as $4e85f108e88277b8$export$44644b8a16031b5b, f as $4e85f108e88277b8$export$717b2c0a523a0b53 } from "../../RSPContexts-CJ-HBf0L.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928, b as $bdb11010cef70236$export$f680877a34711e37, g as $64fa3d84918910a7$export$4d86445c2cf5e3, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$2881499e37b75b9a, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, f as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-DGpXyJOJ.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-D2C6R0DK.js";
|
|
6
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec, a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
7
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, z as $7215afc6de606d6b$export$de79e2c695e052f3, A as $46d819fcbaf35654$export$8f71654801c2f7cd, n as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, b as $c87311424ea30a05$export$fedb369cb70207f1, s as $c87311424ea30a05$export$a11b0059900ceec8, w as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-
|
|
8
|
-
import {
|
|
6
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec, a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-D3b7Kh4P.js";
|
|
7
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, z as $7215afc6de606d6b$export$de79e2c695e052f3, A as $46d819fcbaf35654$export$8f71654801c2f7cd, n as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, b as $c87311424ea30a05$export$fedb369cb70207f1, s as $c87311424ea30a05$export$a11b0059900ceec8, w as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-Bycb7BsD.js";
|
|
8
|
+
import { a as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, c as $3493a52097159720$exports, C as ColorSwatch } from "../../color-swatch-CFIuSPcO.js";
|
|
9
9
|
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "../../number-7sOvrqo0.js";
|
|
10
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-
|
|
11
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-
|
|
12
|
-
import {
|
|
13
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-
|
|
14
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-
|
|
15
|
-
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-
|
|
16
|
-
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-
|
|
17
|
-
import { b as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $a049562f99e7db0e$export$f9c6924e160136d1, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
18
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447
|
|
19
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-
|
|
20
|
-
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-
|
|
21
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidation-
|
|
10
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-B49ptFDX.js";
|
|
11
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-WUv2PdFO.js";
|
|
12
|
+
import { d as $28f99e3e86e6ec45$export$e5fda3247f5d67f9, e as $e8a7022cf87cba2a$export$36da96379f79f245, f as $bcca50147b47f54d$export$56b2c08e277f365, g as $47b897dc8cdb026b$export$8d15029008292ae, h as $6f909507e6374d18$export$1e7083018727fa60, i as $6f909507e6374d18$export$f1fce0420cc6d8ee, j as $6f909507e6374d18$export$6189c2744041d8f8, a as $6f909507e6374d18$export$105594979f116971 } from "../../Slider-CL5CM9S8.js";
|
|
13
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BQvmiUqb.js";
|
|
14
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-NETP-8H8.js";
|
|
15
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-DTUuKFiI.js";
|
|
16
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-DwBG6m1U.js";
|
|
17
|
+
import { b as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $a049562f99e7db0e$export$f9c6924e160136d1, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-CNNksOWg.js";
|
|
18
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-D8a3eYb-.js";
|
|
19
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-ztX6G1zR.js";
|
|
20
|
+
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-D2fUHql3.js";
|
|
21
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidation-DQeXkyLm.js";
|
|
22
22
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
23
23
|
import { BaseControl } from "../base-control/base-control.js";
|
|
24
|
-
import { _ as __ } from "../../default-i18n-
|
|
24
|
+
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
25
25
|
import { TriggeredPopover } from "../popover/popover.js";
|
|
26
26
|
import { icons } from "../../icons/icons.js";
|
|
27
|
-
import { Tabs, TabList, Tab, TabPanel } from "../tabs/tabs.js";
|
|
28
27
|
const $6e14a98a7f67141d$var$DEFAULT_COLOR = $799cddbef784668f$export$6e865ea70d7724f("#ffffff");
|
|
29
28
|
function $6e14a98a7f67141d$export$6df7f0e2cabc7eef(props) {
|
|
30
29
|
let { value, defaultValue, colorSpace, xChannel, yChannel, onChange, onChangeEnd } = props;
|
|
@@ -1014,7 +1013,7 @@ const $e2b71ec1d6016406$export$a3cc47cee1c1ccc = /* @__PURE__ */ forwardRef(func
|
|
|
1014
1013
|
global: true
|
|
1015
1014
|
});
|
|
1016
1015
|
delete DOMProps.id;
|
|
1017
|
-
return /* @__PURE__ */
|
|
1016
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement("div", {
|
|
1018
1017
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(thumbProps, hoverProps, DOMProps),
|
|
1019
1018
|
...renderProps,
|
|
1020
1019
|
ref,
|
|
@@ -1023,11 +1022,11 @@ const $e2b71ec1d6016406$export$a3cc47cee1c1ccc = /* @__PURE__ */ forwardRef(func
|
|
|
1023
1022
|
"data-focused": isFocused || void 0,
|
|
1024
1023
|
"data-focus-visible": isFocusVisible || void 0,
|
|
1025
1024
|
"data-disabled": isDisabled || void 0
|
|
1026
|
-
}, /* @__PURE__ */
|
|
1025
|
+
}, /* @__PURE__ */ $dbSRa$react__default.createElement("input", {
|
|
1027
1026
|
ref: inputXRef,
|
|
1028
1027
|
...xInputProps,
|
|
1029
1028
|
...focusProps
|
|
1030
|
-
}), yInputProps && /* @__PURE__ */
|
|
1029
|
+
}), yInputProps && /* @__PURE__ */ $dbSRa$react__default.createElement("input", {
|
|
1031
1030
|
ref: inputYRef,
|
|
1032
1031
|
...yInputProps,
|
|
1033
1032
|
...focusProps
|
|
@@ -1058,12 +1057,12 @@ const $0de070065d44825d$export$b2103f68a961418e = /* @__PURE__ */ forwardRef(fun
|
|
|
1058
1057
|
global: true
|
|
1059
1058
|
});
|
|
1060
1059
|
delete DOMProps.id;
|
|
1061
|
-
return /* @__PURE__ */
|
|
1060
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement("div", {
|
|
1062
1061
|
ref,
|
|
1063
1062
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, colorAreaProps, renderProps),
|
|
1064
1063
|
slot: props.slot || void 0,
|
|
1065
1064
|
"data-disabled": props.isDisabled || void 0
|
|
1066
|
-
}, /* @__PURE__ */
|
|
1065
|
+
}, /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1067
1066
|
values: [
|
|
1068
1067
|
[
|
|
1069
1068
|
$0de070065d44825d$export$6b32221de49982e,
|
|
@@ -1087,12 +1086,12 @@ const $0de070065d44825d$export$b2103f68a961418e = /* @__PURE__ */ forwardRef(fun
|
|
|
1087
1086
|
const $3ada01a82feafb94$export$96b6d32b05a1a8ed = /* @__PURE__ */ createContext(null);
|
|
1088
1087
|
const $3ada01a82feafb94$export$b865d4358897bb17 = /* @__PURE__ */ forwardRef(function ColorField(props, ref) {
|
|
1089
1088
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$44644b8a16031b5b);
|
|
1090
|
-
if (props.channel) return /* @__PURE__ */
|
|
1089
|
+
if (props.channel) return /* @__PURE__ */ $dbSRa$react__default.createElement($3ada01a82feafb94$var$ColorChannelField, {
|
|
1091
1090
|
...props,
|
|
1092
1091
|
channel: props.channel,
|
|
1093
1092
|
forwardedRef: ref
|
|
1094
1093
|
});
|
|
1095
|
-
else return /* @__PURE__ */
|
|
1094
|
+
else return /* @__PURE__ */ $dbSRa$react__default.createElement($3ada01a82feafb94$var$HexColorField, {
|
|
1096
1095
|
...props,
|
|
1097
1096
|
forwardedRef: ref
|
|
1098
1097
|
});
|
|
@@ -1111,7 +1110,7 @@ function $3ada01a82feafb94$var$ColorChannelField(props) {
|
|
|
1111
1110
|
label,
|
|
1112
1111
|
validationBehavior: (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : "native"
|
|
1113
1112
|
}, state, inputRef);
|
|
1114
|
-
return /* @__PURE__ */
|
|
1113
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($dbSRa$react__default.Fragment, null, $3ada01a82feafb94$var$useChildren(props, state, props.forwardedRef, inputProps, inputRef, labelProps, labelRef, descriptionProps, errorMessageProps, validation), props.name && /* @__PURE__ */ $dbSRa$react__default.createElement("input", {
|
|
1115
1114
|
type: "hidden",
|
|
1116
1115
|
name: props.name,
|
|
1117
1116
|
form: props.form,
|
|
@@ -1149,7 +1148,7 @@ function $3ada01a82feafb94$var$useChildren(props, state, ref, inputProps, inputR
|
|
|
1149
1148
|
global: true
|
|
1150
1149
|
});
|
|
1151
1150
|
delete DOMProps.id;
|
|
1152
|
-
return /* @__PURE__ */
|
|
1151
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1153
1152
|
values: [
|
|
1154
1153
|
[
|
|
1155
1154
|
$3ada01a82feafb94$export$96b6d32b05a1a8ed,
|
|
@@ -1191,7 +1190,7 @@ function $3ada01a82feafb94$var$useChildren(props, state, ref, inputProps, inputR
|
|
|
1191
1190
|
validation
|
|
1192
1191
|
]
|
|
1193
1192
|
]
|
|
1194
|
-
}, /* @__PURE__ */
|
|
1193
|
+
}, /* @__PURE__ */ $dbSRa$react__default.createElement("div", {
|
|
1195
1194
|
...DOMProps,
|
|
1196
1195
|
...renderProps,
|
|
1197
1196
|
ref,
|
|
@@ -1209,8 +1208,8 @@ const $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = /* @__PURE__ */ forwardRef(fun
|
|
|
1209
1208
|
...props,
|
|
1210
1209
|
locale
|
|
1211
1210
|
});
|
|
1212
|
-
let trackRef =
|
|
1213
|
-
let inputRef =
|
|
1211
|
+
let trackRef = $dbSRa$react__default.useRef(null);
|
|
1212
|
+
let inputRef = $dbSRa$react__default.useRef(null);
|
|
1214
1213
|
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1215
1214
|
let { trackProps, thumbProps, inputProps, labelProps, outputProps } = $40af666d6c251e36$export$106b7a4e66508f66({
|
|
1216
1215
|
...props,
|
|
@@ -1231,7 +1230,7 @@ const $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = /* @__PURE__ */ forwardRef(fun
|
|
|
1231
1230
|
global: true
|
|
1232
1231
|
});
|
|
1233
1232
|
delete DOMProps.id;
|
|
1234
|
-
return /* @__PURE__ */
|
|
1233
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1235
1234
|
values: [
|
|
1236
1235
|
[
|
|
1237
1236
|
$1cca5300a3c2e7f9$export$c7fad7ea00194428,
|
|
@@ -1271,7 +1270,7 @@ const $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = /* @__PURE__ */ forwardRef(fun
|
|
|
1271
1270
|
}
|
|
1272
1271
|
]
|
|
1273
1272
|
]
|
|
1274
|
-
}, /* @__PURE__ */
|
|
1273
|
+
}, /* @__PURE__ */ $dbSRa$react__default.createElement("div", {
|
|
1275
1274
|
...DOMProps,
|
|
1276
1275
|
...renderProps,
|
|
1277
1276
|
ref,
|
|
@@ -1324,13 +1323,25 @@ const SolidColorPicker = (props) => {
|
|
|
1324
1323
|
onChange(color2?.toString(outputFormat ?? (allowTransparency ? "hexa" : "hex")));
|
|
1325
1324
|
};
|
|
1326
1325
|
const valueInputClassName = clsx(
|
|
1327
|
-
"es:
|
|
1328
|
-
"es:
|
|
1329
|
-
"es:
|
|
1326
|
+
"es:leading-none",
|
|
1327
|
+
"es:max-w-14",
|
|
1328
|
+
"es:min-h-9",
|
|
1329
|
+
"es:px-3",
|
|
1330
|
+
"es:font-mono es:text-12",
|
|
1331
|
+
"es:rounded-lg es:focus:rounded-xl es:aria-[controls]:rounded-xl",
|
|
1332
|
+
"es:transition-plus",
|
|
1330
1333
|
"es:any-focus:outline-hidden",
|
|
1331
|
-
"es:
|
|
1332
|
-
"es:focus-visible:
|
|
1333
|
-
"es:
|
|
1334
|
+
"es:inset-ring",
|
|
1335
|
+
"es:focus-visible:ring-2 es:focus-visible:ring-accent-500/30",
|
|
1336
|
+
"es:focus-visible:text-accent-950 es:focus-visible:inset-ring-accent-500",
|
|
1337
|
+
"es:focus:placeholder:text-surface-400",
|
|
1338
|
+
"es:inset-ring-secondary-100",
|
|
1339
|
+
"es:focus:text-accent-950",
|
|
1340
|
+
"es:text-secondary-900",
|
|
1341
|
+
"es:placeholder:text-secondary-500/80",
|
|
1342
|
+
"es:bg-secondary-100 es:focus:bg-surface-50",
|
|
1343
|
+
"es:inset-ring-secondary-200/15 es:hover:inset-ring-secondary-200/65 es:focus:inset-ring-surface-200",
|
|
1344
|
+
"es:selection:bg-surface-100 es:selection:text-accent-800"
|
|
1334
1345
|
);
|
|
1335
1346
|
return /* @__PURE__ */ jsxs("div", { className: "es:flex es:flex-col es:items-center es:gap-2", children: [
|
|
1336
1347
|
/* @__PURE__ */ jsx(
|
|
@@ -1397,7 +1408,7 @@ const SolidColorPicker = (props) => {
|
|
|
1397
1408
|
)
|
|
1398
1409
|
}
|
|
1399
1410
|
),
|
|
1400
|
-
/* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:justify-center", children: [
|
|
1411
|
+
/* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:justify-center es:gap-0.75", children: [
|
|
1401
1412
|
/* @__PURE__ */ jsx(
|
|
1402
1413
|
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1403
1414
|
{
|
|
@@ -1409,14 +1420,27 @@ const SolidColorPicker = (props) => {
|
|
|
1409
1420
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
1410
1421
|
{
|
|
1411
1422
|
className: clsx(
|
|
1412
|
-
"es:
|
|
1413
|
-
"es:
|
|
1414
|
-
"es:
|
|
1423
|
+
"es:leading-none",
|
|
1424
|
+
"es:w-20",
|
|
1425
|
+
"es:transition-plus",
|
|
1415
1426
|
"es:any-focus:outline-hidden",
|
|
1416
|
-
"es:
|
|
1417
|
-
"es:focus-visible:
|
|
1418
|
-
"es:
|
|
1419
|
-
|
|
1427
|
+
"es:inset-ring",
|
|
1428
|
+
"es:focus-visible:ring-2 es:focus-visible:ring-accent-500/30",
|
|
1429
|
+
"es:focus-visible:text-accent-950 es:focus-visible:inset-ring-accent-500",
|
|
1430
|
+
"es:focus:placeholder:text-surface-400",
|
|
1431
|
+
"es:h-8",
|
|
1432
|
+
"es:px-3",
|
|
1433
|
+
"es:font-mono es:text-12",
|
|
1434
|
+
"es:bg-white",
|
|
1435
|
+
"es:bg-linear-to-b es:from-secondary-100/0 es:to-secondary-100/50 es:from-25%",
|
|
1436
|
+
"es:hover:from-surface-100/0 es:hover:to-surface-100/50",
|
|
1437
|
+
"es:inset-ring-secondary-400/50 es:hover:inset-ring-surface-300 es:focus:inset-ring-surface-400",
|
|
1438
|
+
"es:inset-shadow-sm es:inset-shadow-secondary-100/50",
|
|
1439
|
+
"es:hover:placeholder:text-surface-400",
|
|
1440
|
+
"es:placeholder:text-secondary-400",
|
|
1441
|
+
"es:shadow-xs es:shadow-black/5",
|
|
1442
|
+
"es:rounded-lg es:focus:rounded-xl",
|
|
1443
|
+
"es:border-none!"
|
|
1420
1444
|
)
|
|
1421
1445
|
}
|
|
1422
1446
|
)
|
|
@@ -1430,168 +1454,246 @@ const SolidColorPicker = (props) => {
|
|
|
1430
1454
|
triggerButtonProps: {
|
|
1431
1455
|
disabled,
|
|
1432
1456
|
tooltip: __("Advanced color options", "eightshift-ui-components"),
|
|
1433
|
-
className: "es:
|
|
1457
|
+
className: "es:w-6 es:h-8 es:icon:size-4.5!"
|
|
1434
1458
|
},
|
|
1435
1459
|
hidden: noAdvancedOptions,
|
|
1436
1460
|
children: [
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1461
|
+
/* @__PURE__ */ jsxs(BaseControl, { label: "RGB", children: [
|
|
1462
|
+
/* @__PURE__ */ jsx(
|
|
1463
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1464
|
+
{
|
|
1465
|
+
value: color?.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1466
|
+
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1467
|
+
channel: "red",
|
|
1468
|
+
children: /* @__PURE__ */ jsx(
|
|
1469
|
+
BaseControl,
|
|
1470
|
+
{
|
|
1471
|
+
icon: /* @__PURE__ */ jsx(
|
|
1472
|
+
ColorSwatch,
|
|
1473
|
+
{
|
|
1474
|
+
color: "#ff0000",
|
|
1475
|
+
className: "es:size-5!",
|
|
1476
|
+
flat: true
|
|
1477
|
+
}
|
|
1478
|
+
),
|
|
1479
|
+
label: __("Red", "eightshift-ui-components"),
|
|
1480
|
+
inline: true,
|
|
1481
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1482
|
+
}
|
|
1483
|
+
)
|
|
1484
|
+
}
|
|
1485
|
+
),
|
|
1486
|
+
/* @__PURE__ */ jsx(
|
|
1487
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1488
|
+
{
|
|
1489
|
+
value: color?.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1490
|
+
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1491
|
+
channel: "green",
|
|
1492
|
+
children: /* @__PURE__ */ jsx(
|
|
1493
|
+
BaseControl,
|
|
1494
|
+
{
|
|
1495
|
+
icon: /* @__PURE__ */ jsx(
|
|
1496
|
+
ColorSwatch,
|
|
1497
|
+
{
|
|
1498
|
+
color: "#00ff00",
|
|
1499
|
+
className: "es:size-5!",
|
|
1500
|
+
flat: true
|
|
1501
|
+
}
|
|
1502
|
+
),
|
|
1503
|
+
label: __("Green", "eightshift-ui-components"),
|
|
1504
|
+
inline: true,
|
|
1505
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1506
|
+
}
|
|
1507
|
+
)
|
|
1508
|
+
}
|
|
1509
|
+
),
|
|
1510
|
+
/* @__PURE__ */ jsx(
|
|
1511
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1512
|
+
{
|
|
1513
|
+
value: color?.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1514
|
+
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1515
|
+
channel: "blue",
|
|
1516
|
+
children: /* @__PURE__ */ jsx(
|
|
1517
|
+
BaseControl,
|
|
1518
|
+
{
|
|
1519
|
+
icon: /* @__PURE__ */ jsx(
|
|
1520
|
+
ColorSwatch,
|
|
1521
|
+
{
|
|
1522
|
+
color: "#0000ff",
|
|
1523
|
+
className: "es:size-5!",
|
|
1524
|
+
flat: true
|
|
1525
|
+
}
|
|
1526
|
+
),
|
|
1527
|
+
label: __("Blue", "eightshift-ui-components"),
|
|
1528
|
+
inline: true,
|
|
1529
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1530
|
+
}
|
|
1531
|
+
)
|
|
1532
|
+
}
|
|
1533
|
+
)
|
|
1534
|
+
] }),
|
|
1535
|
+
/* @__PURE__ */ jsxs(
|
|
1536
|
+
BaseControl,
|
|
1537
|
+
{
|
|
1538
|
+
label: "HSL",
|
|
1539
|
+
className: "es:mt-3",
|
|
1540
|
+
children: [
|
|
1541
|
+
/* @__PURE__ */ jsx(
|
|
1542
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1543
|
+
{
|
|
1544
|
+
value: color?.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1545
|
+
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1546
|
+
channel: "hue",
|
|
1547
|
+
children: /* @__PURE__ */ jsx(
|
|
1548
|
+
BaseControl,
|
|
1549
|
+
{
|
|
1550
|
+
icon: /* @__PURE__ */ jsx(
|
|
1551
|
+
ColorSwatch,
|
|
1552
|
+
{
|
|
1553
|
+
gradient: "linear-gradient(to right, red, yellow, lime, cyan, blue, magenta)",
|
|
1554
|
+
className: "es:size-5!",
|
|
1555
|
+
flat: true
|
|
1556
|
+
}
|
|
1557
|
+
),
|
|
1558
|
+
label: __("Hue", "eightshift-ui-components"),
|
|
1559
|
+
inline: true,
|
|
1560
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1561
|
+
}
|
|
1562
|
+
)
|
|
1563
|
+
}
|
|
1564
|
+
),
|
|
1565
|
+
/* @__PURE__ */ jsx(
|
|
1566
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1567
|
+
{
|
|
1568
|
+
value: color?.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1569
|
+
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1570
|
+
channel: "saturation",
|
|
1571
|
+
children: /* @__PURE__ */ jsx(
|
|
1572
|
+
BaseControl,
|
|
1573
|
+
{
|
|
1574
|
+
icon: /* @__PURE__ */ jsx(
|
|
1575
|
+
ColorSwatch,
|
|
1576
|
+
{
|
|
1577
|
+
gradient: "linear-gradient(to right, var(--es-color-surface-400), var(--es-color-accent-500))",
|
|
1578
|
+
className: "es:size-5!",
|
|
1579
|
+
flat: true
|
|
1580
|
+
}
|
|
1581
|
+
),
|
|
1582
|
+
label: __("Saturation", "eightshift-ui-components"),
|
|
1583
|
+
inline: true,
|
|
1584
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1585
|
+
}
|
|
1586
|
+
)
|
|
1587
|
+
}
|
|
1588
|
+
),
|
|
1589
|
+
/* @__PURE__ */ jsx(
|
|
1590
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1591
|
+
{
|
|
1592
|
+
value: color?.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1593
|
+
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1594
|
+
channel: "lightness",
|
|
1595
|
+
children: /* @__PURE__ */ jsx(
|
|
1596
|
+
BaseControl,
|
|
1597
|
+
{
|
|
1598
|
+
icon: /* @__PURE__ */ jsx(
|
|
1599
|
+
ColorSwatch,
|
|
1600
|
+
{
|
|
1601
|
+
gradient: "linear-gradient(to right, var(--es-color-secondary-50), var(--es-color-secondary-100), var(--es-color-secondary-200), var(--es-color-secondary-300), var(--es-color-secondary-400), var(--es-color-secondary-500), var(--es-color-secondary-600), var(--es-color-secondary-700), var(--es-color-secondary-800), var(--es-color-secondary-900))",
|
|
1602
|
+
className: "es:size-5!",
|
|
1603
|
+
flat: true
|
|
1604
|
+
}
|
|
1605
|
+
),
|
|
1606
|
+
label: __("Lightness", "eightshift-ui-components"),
|
|
1607
|
+
inline: true,
|
|
1608
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1609
|
+
}
|
|
1610
|
+
)
|
|
1611
|
+
}
|
|
1612
|
+
)
|
|
1613
|
+
]
|
|
1614
|
+
}
|
|
1615
|
+
),
|
|
1616
|
+
/* @__PURE__ */ jsxs(
|
|
1617
|
+
BaseControl,
|
|
1618
|
+
{
|
|
1619
|
+
label: "HSB",
|
|
1620
|
+
className: "es:mt-3",
|
|
1621
|
+
children: [
|
|
1622
|
+
/* @__PURE__ */ jsx(
|
|
1623
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1624
|
+
{
|
|
1625
|
+
value: color?.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1626
|
+
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1627
|
+
channel: "hue",
|
|
1628
|
+
children: /* @__PURE__ */ jsx(
|
|
1629
|
+
BaseControl,
|
|
1630
|
+
{
|
|
1631
|
+
icon: /* @__PURE__ */ jsx(
|
|
1632
|
+
ColorSwatch,
|
|
1633
|
+
{
|
|
1634
|
+
gradient: "linear-gradient(to right, red, yellow, lime, cyan, blue, magenta)",
|
|
1635
|
+
className: "es:size-5!",
|
|
1636
|
+
flat: true
|
|
1637
|
+
}
|
|
1638
|
+
),
|
|
1639
|
+
label: __("Hue", "eightshift-ui-components"),
|
|
1640
|
+
inline: true,
|
|
1641
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1642
|
+
}
|
|
1643
|
+
)
|
|
1644
|
+
}
|
|
1645
|
+
),
|
|
1646
|
+
/* @__PURE__ */ jsx(
|
|
1647
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1648
|
+
{
|
|
1649
|
+
value: color?.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1650
|
+
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1651
|
+
channel: "saturation",
|
|
1652
|
+
children: /* @__PURE__ */ jsx(
|
|
1653
|
+
BaseControl,
|
|
1654
|
+
{
|
|
1655
|
+
icon: /* @__PURE__ */ jsx(
|
|
1656
|
+
ColorSwatch,
|
|
1657
|
+
{
|
|
1658
|
+
gradient: "linear-gradient(to right, var(--es-color-surface-400), var(--es-color-accent-500))",
|
|
1659
|
+
className: "es:size-5!",
|
|
1660
|
+
flat: true
|
|
1661
|
+
}
|
|
1662
|
+
),
|
|
1663
|
+
label: __("Saturation", "eightshift-ui-components"),
|
|
1664
|
+
inline: true,
|
|
1665
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1666
|
+
}
|
|
1667
|
+
)
|
|
1668
|
+
}
|
|
1669
|
+
),
|
|
1670
|
+
/* @__PURE__ */ jsx(
|
|
1671
|
+
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1672
|
+
{
|
|
1673
|
+
value: color?.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1674
|
+
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1675
|
+
channel: "brightness",
|
|
1676
|
+
children: /* @__PURE__ */ jsx(
|
|
1677
|
+
BaseControl,
|
|
1678
|
+
{
|
|
1679
|
+
icon: /* @__PURE__ */ jsx(
|
|
1680
|
+
ColorSwatch,
|
|
1681
|
+
{
|
|
1682
|
+
gradient: "linear-gradient(to right, var(--es-color-secondary-50), var(--es-color-secondary-100), var(--es-color-secondary-200), var(--es-color-secondary-300), var(--es-color-secondary-400), var(--es-color-secondary-500), var(--es-color-secondary-600), var(--es-color-secondary-700), var(--es-color-secondary-800), var(--es-color-secondary-900))",
|
|
1683
|
+
className: "es:size-5!",
|
|
1684
|
+
flat: true
|
|
1685
|
+
}
|
|
1686
|
+
),
|
|
1687
|
+
label: __("Brightness", "eightshift-ui-components"),
|
|
1688
|
+
inline: true,
|
|
1689
|
+
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1690
|
+
}
|
|
1691
|
+
)
|
|
1692
|
+
}
|
|
1693
|
+
)
|
|
1694
|
+
]
|
|
1695
|
+
}
|
|
1696
|
+
)
|
|
1595
1697
|
]
|
|
1596
1698
|
}
|
|
1597
1699
|
)
|