@eightshift/ui-components 7.0.0 → 7.2.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/assets/fonts/geist-latin-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-700-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
- package/dist/assets/style-admin.css +3 -12528
- package/dist/assets/style-editor.css +3 -12492
- package/dist/assets/style.css +3 -12498
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +2 -6
- package/dist/assets/wp-overrides/fix-label-text-case.css +2 -29
- package/dist/assets/wp-overrides/increase-sidebar-width.css +2 -4
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +2 -155
- package/dist/assets/wp-overrides/replace-fonts.css +2 -8
- package/dist/assets/wp-overrides/restyle-tooltips.css +2 -194
- package/dist/assets/wp-overrides/round-corners.css +2 -200
- package/dist/assets/wp-overrides/unify-button-sizes.css +2 -5
- package/dist/{button-COTeluL8.js → button-D9cbyHeZ.js} +2 -2
- package/dist/{checkbox-D0AWkLhp.js → checkbox-BO5RZmO8.js} +1 -1
- package/dist/{color-swatch-CBYsO_Zs.js → color-swatch-D2ZBkuTt.js} +1 -1
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/button/button.js +1 -2
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -2
- package/dist/components/color-pickers/gradient-editor.js +1 -3
- package/dist/components/color-pickers/solid-color-picker.js +1 -2
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +2 -3
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -2
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +2 -2
- package/dist/components/index.js +14 -16
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -2
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +1 -2
- package/dist/components/number-picker/number-picker.js +1 -2
- package/dist/components/option-select/option-select.js +4 -4
- package/dist/components/placeholders/file-picker-shell.js +1 -2
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +2 -2
- package/dist/components/responsive/responsive-legacy.js +3 -3
- package/dist/components/responsive/responsive.js +3 -3
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/select/async-multi-select.js +9 -12
- package/dist/components/select/async-select.js +8 -10
- package/dist/components/select/multi-select.js +6 -8
- package/dist/components/select/shared.js +1 -2
- package/dist/components/select/single-select.js +6 -8
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +2 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -2
- package/dist/components/tabs/tabs.js +1 -2
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/{draggable-CYQyD9gG.js → draggable-CTDVJ4zd.js} +1 -1
- package/dist/gradient-editor-xfxA_s9a.js +1583 -0
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +14 -16
- package/dist/{input-field-UCZL5bqv.js → input-field-_OCWbftf.js} +1 -1
- package/dist/{link-input-D7iDRpOM.js → link-input-Bh8G7Urm.js} +2 -2
- package/dist/{modal-DbVLYMkH.js → modal-snrElwty.js} +2 -2
- package/dist/{number-picker-CkA1iJNZ.js → number-picker-Dhtx4409.js} +3 -2
- package/dist/{proxy-BG7-_Ou3.js → proxy-DjkEpeDL.js} +43 -21
- package/dist/{shared-DFDimxvX.js → shared-BiWZjrGF.js} +3 -3
- package/dist/{smart-image-CbSsEASF.js → smart-image-CBNbxJ57.js} +1 -1
- package/dist/{solid-color-picker-DbT-aoVx.js → solid-color-picker-DukArNH-.js} +2 -2
- package/dist/{switch-L8dFSQWQ.js → switch-DmsvyQPa.js} +1 -1
- package/dist/{tabs-BrdyBER5.js → tabs-DaIUEc0g.js} +2 -2
- package/dist/{toggle-button-DJ8jNQ-9.js → toggle-button-BlzUGfGy.js} +1 -1
- package/dist/utilities/general.js +25 -2
- package/dist/utilities/index.js +3 -3
- package/package.json +10 -13
- package/dist/general-D-7dwhuF.js +0 -4277
- package/dist/gradient-editor-DbH8NU2p.js +0 -604
- package/dist/workers/image-analysis.worker.js +0 -60
- /package/dist/{List-CMK5qsNF.js → List-DWlgW2Ex.js} +0 -0
- /package/dist/{build-module-sxK3nxOK.js → build-module-Bsx62nlm.js} +0 -0
- /package/dist/{dist-DIK9pFxO.js → dist-2gkv7_1U.js} +0 -0
- /package/dist/{jsx-svg-OBADs_Qs.js → jsx-svg-BRJ4n3pD.js} +0 -0
- /package/dist/{utilities-CPFDXC3B.js → utilities-lwX686oD.js} +0 -0
|
@@ -3,7 +3,7 @@ import { u as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionM
|
|
|
3
3
|
import { l as $07b14b47974efb58$export$5b6b19405a83ff9d, p as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-i5VLQw1o.js";
|
|
4
4
|
import { a as $eed445e0843c11d0$export$dca12b0bb56e4fc, t as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-B21SgugS.js";
|
|
5
5
|
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-h6xF_WrP.js";
|
|
6
|
-
import { i as getValue, n as SelectClearButton, o as $82d7e5349645de74$export$e288731fd71264f0, r as getGroupedOptions, s as $82d7e5349645de74$export$ef9b1a59e592288f, t as OptionItemBase } from "../../shared-
|
|
6
|
+
import { i as getValue, n as SelectClearButton, o as $82d7e5349645de74$export$e288731fd71264f0, r as getGroupedOptions, s as $82d7e5349645de74$export$ef9b1a59e592288f, t as OptionItemBase } from "../../shared-BiWZjrGF.js";
|
|
7
7
|
import { t as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-OiMnf6sb.js";
|
|
8
8
|
import { n as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BURqyJXW.js";
|
|
9
9
|
import { n as $d2f53cda644affe3$export$2f2b9559550c7bbc, t as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-DR_I4_yn.js";
|
|
@@ -11,7 +11,7 @@ import { n as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DFXX
|
|
|
11
11
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
12
12
|
import { BaseControl } from "../base-control/base-control.js";
|
|
13
13
|
import { randomId } from "../../utilities/hash.js";
|
|
14
|
-
import { n as _n, r as sprintf, t as __ } from "../../build-module-
|
|
14
|
+
import { n as _n, r as sprintf, t as __ } from "../../build-module-Bsx62nlm.js";
|
|
15
15
|
import { Icon } from "../../icons/icon.js";
|
|
16
16
|
import { clearAlt } from "../../icons/ui-icons/clear-alt.js";
|
|
17
17
|
import { dropdownCaret } from "../../icons/ui-icons/dropdown-caret.js";
|
|
@@ -98,14 +98,13 @@ var MultiSelect = (props) => {
|
|
|
98
98
|
groupValueMapping
|
|
99
99
|
]);
|
|
100
100
|
const renderItem = (item) => {
|
|
101
|
-
|
|
102
|
-
icon = jsx(Icon, { icon });
|
|
101
|
+
const icon = item?.icon ?? null;
|
|
103
102
|
return jsxs(OptionItemBase, {
|
|
104
103
|
id: item?.value ?? randomId(8),
|
|
105
104
|
className: item?.className,
|
|
106
105
|
selectIndicator: true,
|
|
107
106
|
children: [customMenuOption && customMenuOption(item), !customMenuOption && jsx(RichLabel, {
|
|
108
|
-
icon,
|
|
107
|
+
icon: icon && jsx(Icon, { icon }),
|
|
109
108
|
label: item?.label,
|
|
110
109
|
subtitle: item?.subtitle,
|
|
111
110
|
noColor: true
|
|
@@ -176,8 +175,7 @@ var MultiSelect = (props) => {
|
|
|
176
175
|
className: "es:select-none es:pointer-events-none es:pr-6 es:text-sm es:text-surface-500",
|
|
177
176
|
children: placeholder
|
|
178
177
|
});
|
|
179
|
-
|
|
180
|
-
icon = jsx(Icon, { icon });
|
|
178
|
+
const icon = selectedItem?.icon ?? null;
|
|
181
179
|
if (selectedItems.length > 1) return jsx(RichLabel, {
|
|
182
180
|
icon: multiple,
|
|
183
181
|
label: sprintf(_n("%s item", "%s items", selectedItems.length, "eightshift-ui-components"), selectedItems.length),
|
|
@@ -186,7 +184,7 @@ var MultiSelect = (props) => {
|
|
|
186
184
|
});
|
|
187
185
|
if (!isPlaceholder && currentValue && customValueDisplay) return customValueDisplay(selectedItem);
|
|
188
186
|
return jsx(RichLabel, {
|
|
189
|
-
icon,
|
|
187
|
+
icon: icon && jsx(Icon, { icon }),
|
|
190
188
|
label: selectedItem?.label,
|
|
191
189
|
subtitle: selectedItem?.subtitle,
|
|
192
190
|
className: clsx("es:pr-6 es:grow es:w-full", disabled && "es:grayscale es:pointer-events-none"),
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { a as moveArrayItem, i as getValue, n as SelectClearButton, r as getGroupedOptions, t as OptionItemBase } from "../../shared-
|
|
2
|
-
import "../../build-module-sxK3nxOK.js";
|
|
1
|
+
import { a as moveArrayItem, i as getValue, n as SelectClearButton, r as getGroupedOptions, t as OptionItemBase } from "../../shared-BiWZjrGF.js";
|
|
3
2
|
export { OptionItemBase, SelectClearButton, getGroupedOptions, getValue, moveArrayItem };
|
|
@@ -3,7 +3,7 @@ import { u as $e1995378a142960e$export$fb8073518f34e6ec } from "../../SelectionM
|
|
|
3
3
|
import { l as $07b14b47974efb58$export$5b6b19405a83ff9d, p as $72a5793c14baf454$export$8b251419efc915eb } from "../../Dialog-i5VLQw1o.js";
|
|
4
4
|
import { a as $eed445e0843c11d0$export$dca12b0bb56e4fc, t as $eed445e0843c11d0$export$41f133550aa26f48 } from "../../ListBox-B21SgugS.js";
|
|
5
5
|
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-h6xF_WrP.js";
|
|
6
|
-
import { n as SelectClearButton, o as $82d7e5349645de74$export$e288731fd71264f0, r as getGroupedOptions, s as $82d7e5349645de74$export$ef9b1a59e592288f, t as OptionItemBase } from "../../shared-
|
|
6
|
+
import { n as SelectClearButton, o as $82d7e5349645de74$export$e288731fd71264f0, r as getGroupedOptions, s as $82d7e5349645de74$export$ef9b1a59e592288f, t as OptionItemBase } from "../../shared-BiWZjrGF.js";
|
|
7
7
|
import { t as $bb77f239b46e8c72$export$3274cf84b703fff } from "../../useFilter-OiMnf6sb.js";
|
|
8
8
|
import { n as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BURqyJXW.js";
|
|
9
9
|
import { n as $d2f53cda644affe3$export$2f2b9559550c7bbc, t as $440f4836bcb56932$export$b94867ecbd698f21 } from "../../SearchField-DR_I4_yn.js";
|
|
@@ -11,7 +11,7 @@ import { n as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DFXX
|
|
|
11
11
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
12
12
|
import { BaseControl } from "../base-control/base-control.js";
|
|
13
13
|
import { randomId } from "../../utilities/hash.js";
|
|
14
|
-
import { t as __ } from "../../build-module-
|
|
14
|
+
import { t as __ } from "../../build-module-Bsx62nlm.js";
|
|
15
15
|
import { Icon } from "../../icons/icon.js";
|
|
16
16
|
import { clearAlt } from "../../icons/ui-icons/clear-alt.js";
|
|
17
17
|
import { dropdownCaret } from "../../icons/ui-icons/dropdown-caret.js";
|
|
@@ -93,14 +93,13 @@ var Select = (props) => {
|
|
|
93
93
|
]);
|
|
94
94
|
const currentValue = simpleValue ? value ?? null : value?.value ?? null;
|
|
95
95
|
const renderItem = (item) => {
|
|
96
|
-
|
|
97
|
-
icon = jsx(Icon, { icon });
|
|
96
|
+
const icon = item?.icon ?? null;
|
|
98
97
|
return jsxs(OptionItemBase, {
|
|
99
98
|
id: item?.value ?? randomId(8),
|
|
100
99
|
className: item?.className,
|
|
101
100
|
selectIndicator: true,
|
|
102
101
|
children: [customMenuOption && customMenuOption(item), !customMenuOption && jsx(RichLabel, {
|
|
103
|
-
icon,
|
|
102
|
+
icon: icon && jsx(Icon, { icon }),
|
|
104
103
|
label: item?.label,
|
|
105
104
|
subtitle: item?.subtitle,
|
|
106
105
|
noColor: true
|
|
@@ -163,10 +162,9 @@ var Select = (props) => {
|
|
|
163
162
|
className: "es:select-none es:pointer-events-none es:pr-6 es:text-sm es:text-surface-500",
|
|
164
163
|
children: placeholder
|
|
165
164
|
});
|
|
166
|
-
|
|
167
|
-
icon = jsx(Icon, { icon });
|
|
165
|
+
const icon = selectedItem?.icon ?? null;
|
|
168
166
|
return jsx(RichLabel, {
|
|
169
|
-
icon,
|
|
167
|
+
icon: icon && jsx(Icon, { icon }),
|
|
170
168
|
label: selectedItem?.label,
|
|
171
169
|
subtitle: selectedItem?.subtitle,
|
|
172
170
|
className: clsx("es:pr-6 es:grow es:w-full", disabled && "es:grayscale es:pointer-events-none"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as cva } from "../../dist-
|
|
1
|
+
import { t as cva } from "../../dist-2gkv7_1U.js";
|
|
2
2
|
//#region lib/components/select/styles.js
|
|
3
3
|
var selectButtonClass = cva("es:any-focus:outline-hidden es:text-start es:size-full es:inline-block es:group es:overflow-x-clip", {
|
|
4
4
|
variants: { size: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AnimatePresence, t as motion } from "../../proxy-
|
|
1
|
+
import { n as AnimatePresence, t as motion } from "../../proxy-DjkEpeDL.js";
|
|
2
2
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
3
3
|
import { i as $6f909507e6374d18$export$472062a354075cee, o as $6f909507e6374d18$export$a590f758a961cb5b, r as $6f909507e6374d18$export$2c1b491743890dec, t as $6f909507e6374d18$export$105594979f116971 } from "../../Slider-DW1RuMVp.js";
|
|
4
4
|
import { n as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DFXXxMKY.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
|
-
import { r as sprintf, t as __ } from "../../build-module-
|
|
6
|
+
import { r as sprintf, t as __ } from "../../build-module-Bsx62nlm.js";
|
|
7
7
|
import { chevronLeft } from "../../icons/ui-icons/chevron-left.js";
|
|
8
8
|
import { chevronRight } from "../../icons/ui-icons/chevron-right.js";
|
|
9
9
|
import { getColumnConfigOutputText } from "./utils.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as AnimatePresence, t as motion } from "../../proxy-
|
|
1
|
+
import { n as AnimatePresence, t as motion } from "../../proxy-DjkEpeDL.js";
|
|
2
2
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
3
3
|
import { i as $6f909507e6374d18$export$472062a354075cee, o as $6f909507e6374d18$export$a590f758a961cb5b, r as $6f909507e6374d18$export$2c1b491743890dec, t as $6f909507e6374d18$export$105594979f116971 } from "../../Slider-DW1RuMVp.js";
|
|
4
4
|
import { n as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DFXXxMKY.js";
|
|
5
|
-
import { t as NumberPicker } from "../../number-picker-
|
|
5
|
+
import { t as NumberPicker } from "../../number-picker-Dhtx4409.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
|
-
import "../../build-module-sxK3nxOK.js";
|
|
8
7
|
import { HStack } from "../layout/hstack.js";
|
|
9
8
|
import { generateGridTemplate, generateMarkers } from "./utils.js";
|
|
10
9
|
import { useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as _n, r as sprintf, t as __ } from "../../build-module-
|
|
1
|
+
import { n as _n, r as sprintf, t as __ } from "../../build-module-Bsx62nlm.js";
|
|
2
2
|
//#region lib/components/slider/utils.js
|
|
3
3
|
/**
|
|
4
4
|
* Generates an array of markers based on the provided minimum and maximum values and step.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Switch } from "../../switch-
|
|
1
|
+
import { t as Switch } from "../../switch-DmsvyQPa.js";
|
|
2
2
|
export { Switch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import { t as Switch } from "../../switch-
|
|
2
|
+
import { t as Switch } from "../../switch-DmsvyQPa.js";
|
|
3
3
|
import { n as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-DFXXxMKY.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
1
|
+
import { t as ToggleButton } from "../../toggle-button-BlzUGfGy.js";
|
|
2
2
|
export { ToggleButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __ } from "./build-module-
|
|
1
|
+
import { t as __ } from "./build-module-Bsx62nlm.js";
|
|
2
2
|
import { DraggableContext } from "./components/draggable/draggable-context.js";
|
|
3
3
|
import { createContext, createElement, forwardRef, memo, startTransition, useCallback, useContext, useEffect, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|