@eightshift/ui-components 4.0.0 → 5.0.1
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-CvzGKGCo.js → Button-wERNNG0T.js} +4 -4
- package/dist/{Collection-ddre1L5v.js → Collection-CKsHTyhc.js} +129 -98
- package/dist/{Color-MV5kBVXr.js → Color-BhgbJF5x.js} +1 -1
- package/dist/{ColorSwatch-BqQfVu4L.js → ColorSwatch-Bcn6oRSg.js} +4 -4
- package/dist/{ComboBox-jQ-dk95U.js → ComboBox-D1LPUwWP.js} +19 -19
- package/dist/{Dialog-DX1aiYyE.js → Dialog-D190gMbE.js} +28 -30
- package/dist/{FieldError-52GVSGgC.js → FieldError-DeUh5Wkw.js} +2 -2
- package/dist/{FocusScope-Cri5BFRz.js → FocusScope-C-plSxbS.js} +2 -2
- package/dist/{Group-_emcIVxI.js → Group-C5iZpSAM.js} +3 -3
- package/dist/{Heading-B2153VXe.js → Heading-D-Pboe4p.js} +1 -1
- package/dist/{Input-BxpFEIXV.js → Input--mF4XVE1.js} +6 -6
- package/dist/{Label-icmbmNdI.js → Label-Fp6AwSRn.js} +1 -1
- package/dist/{List-BYNHbol3.js → List-CZMUbkFU.js} +1 -1
- package/dist/{ListBox-mJ4nQaL7.js → ListBox-4oW9kh3R.js} +13 -12
- package/dist/{OverlayArrow-BB0CWwdq.js → OverlayArrow-BpB9uB_I.js} +19 -11
- package/dist/{Select-aab027f3.esm--EmXjiL3.js → Select-aab027f3.esm-BKIJGje-.js} +1 -1
- package/dist/{Separator-D9moUgP8.js → Separator-B88tj5YD.js} +6 -5
- package/dist/{Slider-rz2XRMGm.js → Slider-CyJzC1bp.js} +11 -11
- package/dist/{Text-DVSAPY-K.js → Text-DRpwWot2.js} +1 -1
- package/dist/{VisuallyHidden-f9zX67a_.js → VisuallyHidden-DsKYcRQ_.js} +2 -2
- package/dist/assets/index.css +21 -1
- package/dist/assets/style-admin.css +891 -282
- package/dist/assets/style-editor.css +891 -282
- package/dist/assets/style.css +891 -282
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +91 -13
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox.js +9 -9
- package/dist/components/color-pickers/color-swatch.js +8 -7
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +16 -16
- package/dist/components/component-toggle/component-toggle.js +5 -2
- package/dist/components/draggable/draggable.js +2049 -1277
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/link-input/link-input.js +16 -18
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +5 -5
- package/dist/components/number-picker/number-picker.js +9 -9
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater.js +1 -1
- package/dist/components/responsive/mini-responsive.js +3 -3
- package/dist/components/responsive/responsive-legacy.js +3 -3
- package/dist/components/responsive/responsive.js +6 -3
- 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 +1 -1
- 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/v2/async-select.js +8 -8
- package/dist/components/select/v2/shared.js +2 -2
- package/dist/components/select/v2/single-select.js +19 -18
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +6 -4
- package/dist/components/slider/utils.js +11 -1
- package/dist/components/tabs/tabs.js +16 -14
- package/dist/components/toggle/switch.js +8 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +27 -8
- package/dist/components/tooltip/tooltip.js +6 -4
- package/dist/{context-D2KUdwNL.js → context-BYWrbm1z.js} +1 -1
- package/dist/{index-641ee5b8.esm-BPz6U6sJ.js → index-641ee5b8.esm-BPU8rMZr.js} +5 -5
- package/dist/index-CFozsmNS.js +28321 -0
- package/dist/{index-BKGQ6jGS.js → index-wl5606BX.js} +1 -1
- package/dist/{multi-select-components-BlZZoNXC.js → multi-select-components-Sp-JEFEX.js} +1 -1
- package/dist/{react-select-async.esm-CwUoej5h.js → react-select-async.esm-D937XTWW.js} +3 -3
- package/dist/{react-select.esm-DcwYxadV.js → react-select.esm-Ciai3aKf.js} +3 -3
- package/dist/{textSelection-0UUS8Yfg.js → textSelection-CCcyjiRP.js} +1 -1
- package/dist/{useButton-BpOKDWEN.js → useButton-BOHxkGQF.js} +6 -27
- package/dist/{useEvent-B0b-6KBr.js → useEvent-D5o_CqDH.js} +1 -1
- package/dist/{useFocusRing-CV5l3lf6.js → useFocusRing-nMG2uzxS.js} +5 -5
- package/dist/{useFormReset-C5OggHsw.js → useFormReset-DlmRL87g.js} +1 -1
- package/dist/{useFormValidation-DhDNSjws.js → useFormValidation-D0_aaK-e.js} +2 -2
- package/dist/{useHover-DwDr6ozG.js → useHover-VO5tcIli.js} +58 -68
- package/dist/{useLabel-D7HkNEHT.js → useLabel-BKH4fVA4.js} +3 -3
- package/dist/{useLabels-D8cxd1Z8.js → useLabels-ntF3rFY0.js} +1 -1
- package/dist/{useListState-UGlN5-7P.js → useListState-Cq2Nvr-v.js} +1 -1
- package/dist/{useLocalizedStringFormatter-CFP1YZWQ.js → useLocalizedStringFormatter-CGzwx1a0.js} +1 -1
- package/dist/{useNumberField-CEAj7Mrj.js → useNumberField-C9dmERhP.js} +14 -11
- package/dist/{useNumberFormatter-321rAb4J.js → useNumberFormatter-MrRLgvhj.js} +1 -1
- package/dist/{usePress-DNW8qpY6.js → usePress-DjNo5790.js} +36 -23
- package/dist/{useSingleSelectListState-DC0wWTUM.js → useSingleSelectListState--r3AAhRj.js} +2 -2
- package/dist/{useToggle-BrpmSOB-.js → useToggle-CQaXLe-O.js} +5 -5
- package/dist/{useToggleState-CmQX3SoX.js → useToggleState-C3DLdez5.js} +1 -1
- package/dist/utilities/es-dash.js +6 -0
- package/dist/{utils-DkCSC521.js → utils-B94NDG0v.js} +1 -1
- package/package.json +101 -101
- package/dist/index-BYHhzLf-.js +0 -444
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.1.5 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.edit-post-header, .components-popover, .edit-post-sidebar, .wp-block-post-title, .components-select-control__input, .components-base-control__field, .components-base-control__label, .components-combobox-control__suggestions-container, .components-input-control__label, .components-input-control__input, .components-checkbox-control__label, .components-menu-group__label, .components-menu-item__button, .components-notice .components-notice__content, .components-tooltip, .components-modal__header, .preferences-modal__section-title, .preferences-modal__section-description, .block-editor-inserter__tabs, .editor-list-view-sidebar, .edit-post-layout__footer, .components-snackbar, .components-text-control__input {
|
|
3
3
|
font-family: var(--es-font-sans, "Geist Variable", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
4
4
|
}
|
|
@@ -1,4 +1,41 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.1.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties {
|
|
3
|
+
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
|
+
*, :before, :after, ::backdrop {
|
|
5
|
+
--tw-font-weight: initial;
|
|
6
|
+
--tw-tracking: initial;
|
|
7
|
+
--tw-shadow: 0 0 #0000;
|
|
8
|
+
--tw-shadow-color: initial;
|
|
9
|
+
--tw-shadow-alpha: 100%;
|
|
10
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
11
|
+
--tw-inset-shadow-color: initial;
|
|
12
|
+
--tw-inset-shadow-alpha: 100%;
|
|
13
|
+
--tw-ring-color: initial;
|
|
14
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
15
|
+
--tw-inset-ring-color: initial;
|
|
16
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
17
|
+
--tw-ring-inset: initial;
|
|
18
|
+
--tw-ring-offset-width: 0px;
|
|
19
|
+
--tw-ring-offset-color: #fff;
|
|
20
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
21
|
+
--tw-content: "";
|
|
22
|
+
--tw-scale-x: 1;
|
|
23
|
+
--tw-scale-y: 1;
|
|
24
|
+
--tw-scale-z: 1;
|
|
25
|
+
--tw-border-style: solid;
|
|
26
|
+
--tw-backdrop-blur: initial;
|
|
27
|
+
--tw-backdrop-brightness: initial;
|
|
28
|
+
--tw-backdrop-contrast: initial;
|
|
29
|
+
--tw-backdrop-grayscale: initial;
|
|
30
|
+
--tw-backdrop-hue-rotate: initial;
|
|
31
|
+
--tw-backdrop-invert: initial;
|
|
32
|
+
--tw-backdrop-opacity: initial;
|
|
33
|
+
--tw-backdrop-saturate: initial;
|
|
34
|
+
--tw-backdrop-sepia: initial;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
2
39
|
.edit-post-header__toolbar .components-button, .edit-post-header__settings .components-button, .editor-document-tools__left .components-button, .editor-header__center .components-button, .editor-header__settings .components-button, .edit-post-sidebar .components-button:not(.components-panel__body-toggle, .editor-post-last-revision__title), .components-snackbar, .components-toggle-group-control, .editor-post-publish-panel .components-button, .edit-post-text-editor__toolbar .components-button, .edit-post-text-editor__body .components-textarea-control__input, .media-modal-content, .media-modal-content .components-button, .components-guide__container .components-button, .components-notice__content .components-button, .editor-post-featured-image__toggle.components-button {
|
|
3
40
|
border-radius: var(--es-radius-md, .375rem) !important;
|
|
4
41
|
}
|
|
@@ -46,27 +83,41 @@
|
|
|
46
83
|
|
|
47
84
|
.block-editor-block-list__block-crash-warning {
|
|
48
85
|
border-radius: var(--es-radius-lg, .5rem) !important;
|
|
49
|
-
border-color:
|
|
86
|
+
border-color: var(--es-color-red-700, oklch(50.5% .213 27.518)) !important;
|
|
50
87
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a) !important;
|
|
51
88
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
52
|
-
--tw-shadow-color:
|
|
89
|
+
--tw-shadow-color: var(--es-color-red-700, oklch(50.5% .213 27.518)) !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
93
|
+
.block-editor-block-list__block-crash-warning {
|
|
94
|
+
border-color: color-mix(in oklab, var(--es-color-red-700, oklch(50.5% .213 27.518)) 15%, transparent) !important;
|
|
95
|
+
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--es-color-red-700, oklch(50.5% .213 27.518)) 10%, transparent) var(--tw-shadow-alpha), transparent) !important;
|
|
96
|
+
}
|
|
53
97
|
}
|
|
54
98
|
|
|
55
99
|
.block-editor-block-list__block-crash-warning .block-editor-warning__message {
|
|
56
|
-
color: var(--es-color-red-950, oklch(.
|
|
100
|
+
color: var(--es-color-red-950, oklch(25.8% .092 26.042)) !important;
|
|
57
101
|
}
|
|
58
102
|
|
|
59
103
|
.wp-block-missing div.block-editor-warning {
|
|
60
104
|
border-radius: var(--es-radius-lg, .5rem) !important;
|
|
61
|
-
border-color: var(--es-color-zinc-300, oklch(.
|
|
62
|
-
background-color:
|
|
105
|
+
border-color: var(--es-color-zinc-300, oklch(87.1% .006 286.286)) !important;
|
|
106
|
+
background-color: var(--es-color-zinc-50, oklch(98.5% 0 0)) !important;
|
|
63
107
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a) !important;
|
|
64
108
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
65
|
-
--tw-shadow-color:
|
|
109
|
+
--tw-shadow-color: var(--es-color-zinc-700, oklch(37% .013 285.805)) !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
113
|
+
.wp-block-missing div.block-editor-warning {
|
|
114
|
+
background-color: color-mix(in oklab, var(--es-color-zinc-50, oklch(98.5% 0 0)) 75%, transparent) !important;
|
|
115
|
+
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--es-color-zinc-700, oklch(37% .013 285.805)) 20%, transparent) var(--tw-shadow-alpha), transparent) !important;
|
|
116
|
+
}
|
|
66
117
|
}
|
|
67
118
|
|
|
68
119
|
.wp-block-missing div.block-editor-warning .block-editor-warning__message {
|
|
69
|
-
color: var(--es-color-zinc-950, oklch(.
|
|
120
|
+
color: var(--es-color-zinc-950, oklch(14.1% .005 285.823)) !important;
|
|
70
121
|
}
|
|
71
122
|
|
|
72
123
|
.block-editor-block-contextual-toolbar, .block-editor-block-parent-selector__button {
|
|
@@ -125,8 +176,8 @@
|
|
|
125
176
|
.components-tooltip {
|
|
126
177
|
border-style: var(--tw-border-style);
|
|
127
178
|
border-width: 1px;
|
|
128
|
-
border-color: var(--es-color-gray-800, oklch(.
|
|
129
|
-
background-color:
|
|
179
|
+
border-color: var(--es-color-gray-800, oklch(27.8% .033 256.848));
|
|
180
|
+
background-color: var(--es-color-gray-950, oklch(13% .028 261.692));
|
|
130
181
|
padding-inline: calc(var(--es-spacing, .25rem) * 1);
|
|
131
182
|
padding-block: calc(var(--es-spacing, .25rem) * .5);
|
|
132
183
|
color: var(--es-color-white, #fff);
|
|
@@ -140,10 +191,25 @@
|
|
|
140
191
|
border-radius: var(--es-radius-md, .375rem) !important;
|
|
141
192
|
}
|
|
142
193
|
|
|
194
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
195
|
+
.components-tooltip {
|
|
196
|
+
background-color: color-mix(in oklab, var(--es-color-gray-950, oklch(13% .028 261.692)) 70%, transparent);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
143
200
|
.components-tooltip:has( > :first-child) {
|
|
144
|
-
border-color: var(--es-color-gray-200, oklch(.
|
|
145
|
-
background-color:
|
|
146
|
-
|
|
201
|
+
border-color: var(--es-color-gray-200, oklch(92.8% .006 264.531));
|
|
202
|
+
background-color: var(--es-color-white, #fff);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
206
|
+
.components-tooltip:has( > :first-child) {
|
|
207
|
+
background-color: color-mix(in oklab, var(--es-color-white, #fff) 80%, transparent);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.components-tooltip:has( > :first-child) {
|
|
212
|
+
color: var(--es-color-gray-700, oklch(37.3% .034 259.733));
|
|
147
213
|
}
|
|
148
214
|
|
|
149
215
|
@property --tw-font-weight {
|
|
@@ -167,6 +233,12 @@
|
|
|
167
233
|
inherits: false
|
|
168
234
|
}
|
|
169
235
|
|
|
236
|
+
@property --tw-shadow-alpha {
|
|
237
|
+
syntax: "<percentage>";
|
|
238
|
+
inherits: false;
|
|
239
|
+
initial-value: 100%;
|
|
240
|
+
}
|
|
241
|
+
|
|
170
242
|
@property --tw-inset-shadow {
|
|
171
243
|
syntax: "*";
|
|
172
244
|
inherits: false;
|
|
@@ -178,6 +250,12 @@
|
|
|
178
250
|
inherits: false
|
|
179
251
|
}
|
|
180
252
|
|
|
253
|
+
@property --tw-inset-shadow-alpha {
|
|
254
|
+
syntax: "<percentage>";
|
|
255
|
+
inherits: false;
|
|
256
|
+
initial-value: 100%;
|
|
257
|
+
}
|
|
258
|
+
|
|
181
259
|
@property --tw-ring-color {
|
|
182
260
|
syntax: "*";
|
|
183
261
|
inherits: false
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-
|
|
2
|
+
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-DRpwWot2.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
3
|
-
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, l as $df56164dff5785e2$export$4338b53315abf666 } from "../../utils-
|
|
4
|
-
import { $ as $9bf71ea28793e738$export$c5251b9e124bf29 } from "../../FocusScope-
|
|
2
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-wERNNG0T.js";
|
|
3
|
+
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, l as $df56164dff5785e2$export$4338b53315abf666 } from "../../utils-B94NDG0v.js";
|
|
4
|
+
import { $ as $9bf71ea28793e738$export$c5251b9e124bf29 } from "../../FocusScope-C-plSxbS.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
6
|
import React__default, { useState, useRef, forwardRef, createContext } from "react";
|
|
7
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-
|
|
7
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BYWrbm1z.js";
|
|
8
8
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
9
|
-
import { c as cva } from "../../index-
|
|
9
|
+
import { c as cva } from "../../index-wl5606BX.js";
|
|
10
10
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
11
11
|
import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
12
12
|
function $2680b1829e803644$export$fa142eb1681c520(props, ref) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { a as $4e85f108e88277b8$export$b085522c77523c51 } from "../../RSPContexts-2lR5GG9p.js";
|
|
3
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-
|
|
3
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, l as $df56164dff5785e2$export$4338b53315abf666, m as $5dc95899b306f630$export$c9058316764c140e, h as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-B94NDG0v.js";
|
|
4
4
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
6
|
import React__default, { useEffect, useRef, forwardRef, useContext, createContext } from "react";
|
|
7
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a, b as $e5be200c675c3b3a$export$a763b9476acd3eb, c as $e5be200c675c3b3a$export$dad6ae84456c676a } from "../../useFormValidation-
|
|
8
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-
|
|
9
|
-
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-
|
|
10
|
-
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-
|
|
11
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
12
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-
|
|
13
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-
|
|
14
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
7
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a, b as $e5be200c675c3b3a$export$a763b9476acd3eb, c as $e5be200c675c3b3a$export$dad6ae84456c676a } from "../../useFormValidation-D0_aaK-e.js";
|
|
8
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-DjNo5790.js";
|
|
9
|
+
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-CQaXLe-O.js";
|
|
10
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-C3DLdez5.js";
|
|
11
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-nMG2uzxS.js";
|
|
12
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-VO5tcIli.js";
|
|
13
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-DsKYcRQ_.js";
|
|
14
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Fp6AwSRn.js";
|
|
15
15
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
16
16
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
17
17
|
import { icons } from "../../icons/icons.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
2
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-Bcn6oRSg.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
5
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-
|
|
5
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-BhgbJF5x.js";
|
|
6
6
|
/**
|
|
7
7
|
* A simple color/gradient swatch.
|
|
8
8
|
*
|
|
@@ -12,6 +12,7 @@ import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-MV5kB
|
|
|
12
12
|
* @param {string} [props.gradient] - The gradient to display.
|
|
13
13
|
* @param {string} [props.className] - Additional clsx to apply.
|
|
14
14
|
* @param {string} [props.colorName] - The name of the color. Should be auto-generated for colors.
|
|
15
|
+
* @param {boolean} [props.customGradient=false] - Set to `true` if using a custom gradient.
|
|
15
16
|
*
|
|
16
17
|
* @returns {JSX.Element} The ColorSwatch component.
|
|
17
18
|
*
|
|
@@ -24,10 +25,10 @@ import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-MV5kB
|
|
|
24
25
|
* @preserve
|
|
25
26
|
*/
|
|
26
27
|
const ColorSwatch = (props) => {
|
|
27
|
-
const { color: rawColor, gradient, className, colorName } = props;
|
|
28
|
+
const { color: rawColor, gradient, className, colorName, customGradient = false } = props;
|
|
28
29
|
const checkerPattern = "repeating-conic-gradient(#CCC 0% 25%, white 0% 50%) 50% / 0.75rem 0.75rem";
|
|
29
30
|
let color;
|
|
30
|
-
if (rawColor && !gradient) {
|
|
31
|
+
if (rawColor && !gradient && !customGradient) {
|
|
31
32
|
try {
|
|
32
33
|
if (rawColor === "transparent") {
|
|
33
34
|
color = "rgba(0, 0, 0, 0)";
|
|
@@ -46,10 +47,10 @@ const ColorSwatch = (props) => {
|
|
|
46
47
|
style: {
|
|
47
48
|
background: (color || gradient) && backgroundGradient
|
|
48
49
|
},
|
|
49
|
-
className: () => clsx("es:size-6 es:rounded es:border es:border-secondary-300 es:shadow-xs", !color && !gradient && "es:bg-white", className),
|
|
50
|
-
colorName: !color && !gradient ? __("No color", "eightshift-ui-components") : colorName,
|
|
50
|
+
className: () => clsx("es:size-6 es:rounded es:border es:border-secondary-300 es:shadow-xs", !color && !gradient && !customGradient && "es:bg-white", className),
|
|
51
|
+
colorName: !color && !gradient && !customGradient ? __("No color", "eightshift-ui-components") : colorName,
|
|
51
52
|
color,
|
|
52
|
-
children: !color && !gradient && /* @__PURE__ */ jsx("div", { className: "es:m-auto es:h-full es:w-px es:rotate-45 es:rounded es:bg-red-500" })
|
|
53
|
+
children: !color && !gradient && !customGradient && /* @__PURE__ */ jsx("div", { className: "es:m-auto es:h-full es:w-px es:rotate-45 es:rounded es:bg-red-500" })
|
|
53
54
|
}
|
|
54
55
|
);
|
|
55
56
|
};
|
|
@@ -6,7 +6,7 @@ import { icons } from "../../icons/icons.js";
|
|
|
6
6
|
import { SolidColorPicker } from "./solid-color-picker.js";
|
|
7
7
|
import { Slider } from "../slider/slider.js";
|
|
8
8
|
import { NumberPicker } from "../number-picker/number-picker.js";
|
|
9
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
9
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-Bcn6oRSg.js";
|
|
10
10
|
import { Menu, MenuItem } from "../menu/menu.js";
|
|
11
11
|
import { MatrixAlign } from "../matrix-align/matrix-align.js";
|
|
12
12
|
import { Spacer } from "../spacer/spacer.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useMemo, useRef, useState, useCallback, forwardRef, createContext, useContext } 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, e as $bdb11010cef70236$export$f680877a34711e37, b as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$29f1550f4b0d4415, i as $64fa3d84918910a7$export$2881499e37b75b9a, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-
|
|
4
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, b as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$29f1550f4b0d4415, i as $64fa3d84918910a7$export$2881499e37b75b9a, g as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-B94NDG0v.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
|
-
import { a as $9ab94262bd0047c7$export$420e68273165f4ec, $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
7
|
-
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6,
|
|
8
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../Color-
|
|
6
|
+
import { a as $9ab94262bd0047c7$export$420e68273165f4ec, $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-nMG2uzxS.js";
|
|
7
|
+
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, z as $7215afc6de606d6b$export$de79e2c695e052f3, A as $46d819fcbaf35654$export$8f71654801c2f7cd, p as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, c as $c87311424ea30a05$export$fedb369cb70207f1, v as $c87311424ea30a05$export$a11b0059900ceec8, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-VO5tcIli.js";
|
|
8
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../Color-BhgbJF5x.js";
|
|
9
9
|
import { $ as $9446cca9a3875146$export$cb6e0bb50bc19463, a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "../../number-GajL10e1.js";
|
|
10
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-
|
|
11
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-
|
|
12
|
-
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-
|
|
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 { a as $3985021b0ad6602f$export$37fb8590cf2c088c, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input
|
|
18
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
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-ntF3rFY0.js";
|
|
11
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-DlmRL87g.js";
|
|
12
|
+
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-CyJzC1bp.js";
|
|
13
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BYWrbm1z.js";
|
|
14
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-CGzwx1a0.js";
|
|
15
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-DsKYcRQ_.js";
|
|
16
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-DeUh5Wkw.js";
|
|
17
|
+
import { a as $3985021b0ad6602f$export$37fb8590cf2c088c, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input--mF4XVE1.js";
|
|
18
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Fp6AwSRn.js";
|
|
19
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-DRpwWot2.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-C9dmERhP.js";
|
|
21
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidation-D0_aaK-e.js";
|
|
22
22
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
23
23
|
import { BaseControl } from "../base-control/base-control.js";
|
|
24
24
|
import { _ as __ } from "../../default-i18n-CT_oS1Fy.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as __, s as sprintf } from "../../default-i18n-CT_oS1Fy.js";
|
|
3
3
|
import { Expandable } from "../expandable/expandable.js";
|
|
4
4
|
import { icons } from "../../icons/icons.js";
|
|
5
5
|
import { Switch } from "../toggle/switch.js";
|
|
@@ -29,6 +29,7 @@ import { AnimatedVisibility } from "../animated-visibility/animated-visibility.j
|
|
|
29
29
|
* @param {boolean} [props.hideUseToggleOnExpand] - If `true`, and the component is display in a variant where it can be expanded, the use toggle will hide when the component is expanded.
|
|
30
30
|
* @param {string} [props.contentClassName] - Classes to pass to the content container.
|
|
31
31
|
* @param {ComponentToggleDesign} [props.design='default'] - Design of the component.
|
|
32
|
+
* @param {string} [props.switchAriaLabel] - ARIA label of the toggle switch.
|
|
32
33
|
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
33
34
|
*
|
|
34
35
|
* @returns {JSX.Element} The ComponentToggle component.
|
|
@@ -60,6 +61,7 @@ const ComponentToggle = (props) => {
|
|
|
60
61
|
controlOnly,
|
|
61
62
|
expandButtonDisabled,
|
|
62
63
|
hideUseToggleOnExpand,
|
|
64
|
+
switchAriaLabel = __("Use component", "eightshift-ui-components"),
|
|
63
65
|
contentClassName = "es:space-y-2.5",
|
|
64
66
|
design = "default",
|
|
65
67
|
hidden
|
|
@@ -114,7 +116,8 @@ const ComponentToggle = (props) => {
|
|
|
114
116
|
Switch,
|
|
115
117
|
{
|
|
116
118
|
checked: useComponent,
|
|
117
|
-
onChange
|
|
119
|
+
onChange,
|
|
120
|
+
"aria-label": switchAriaLabel
|
|
118
121
|
}
|
|
119
122
|
),
|
|
120
123
|
disabled: !useComponent || expandButtonDisabled,
|