@eightshift/ui-components 5.6.0 → 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-BhEIfWLY.js → Button-BXjXzdW_.js} +13 -13
- package/dist/{Dialog-B8p4Ymh7.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-Bll1lQEW.js → List-BGHOoFf0.js} +8 -8
- package/dist/{ListBox-CEpKw7yC.js → ListBox-Dd37zMvs.js} +40 -41
- package/dist/{OverlayArrow-DDfa8khI.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-D6mPli0i.js → SearchField-CHYnN-jt.js} +16 -16
- package/dist/{SelectionManager-D77bfEbg.js → SelectionManager-N8X7T_4D.js} +44 -46
- package/dist/{SharedElementTransition-BjRNHsjx.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/breakpoint-preview/breakpoint-preview.js +0 -1
- 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 -21
- 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 -10
- 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 -62
- package/dist/components/responsive/responsive-legacy.js +1 -2
- package/dist/components/responsive/responsive.js +27 -28
- package/dist/components/responsive-preview/responsive-preview.js +1 -2
- 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 -106
- 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 +27 -6
- 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-6STKQIrk.js → general-B6pOveVp.js} +13 -12
- 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-DjyEH0Gg.js → index-oFgxU4zs.js} +6 -4
- 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-CHzjZxXy.js → shared-DwjRce5e.js} +170 -36
- package/dist/{textSelection-DbCKqaw8.js → textSelection-CwHUtNVX.js} +1 -1
- package/dist/{useButton-B2EaQJT_.js → useButton-DdZrS1Kz.js} +3 -3
- package/dist/{useEvent-BifIGnVS.js → useEvent-BD7Olibq.js} +1 -1
- package/dist/{useFilter-BPcJ-Jzv.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-DZycqxCn.js → useListState-ZKhRO8ML.js} +1 -1
- package/dist/{useLocalizedStringFormatter-eaZiN2tE.js → useLocalizedStringFormatter-NETP-8H8.js} +1 -1
- package/dist/{useNumberField-CEA9Q4w_.js → useNumberField-D2fUHql3.js} +10 -10
- package/dist/{useNumberFormatter-BCmkV-7c.js → useNumberFormatter-DGvuRCn7.js} +1 -1
- package/dist/{usePress-BCEPS3hl.js → usePress-B8OteQMu.js} +6 -6
- package/dist/{useSingleSelectListState-BFZEfeqI.js → useSingleSelectListState-BBTu4shO.js} +2 -2
- package/dist/{useToggle-DNoP2bvV.js → useToggle-BZhaYwZl.js} +4 -4
- package/dist/{useToggleState-CzN79ary.js → useToggleState-VkXJjsru.js} +1 -1
- package/dist/utilities/general.js +2 -2
- package/dist/utilities/hash.js +30 -0
- package/dist/utilities/index.js +4 -6
- package/dist/{utils-cvK1vxO7.js → utils-DGpXyJOJ.js} +29 -42
- package/dist/workers/image-analysis.worker.js +3 -3
- package/package.json +26 -23
- package/dist/ColorSwatch-xVS3rMYS.js +0 -66
- package/dist/Select-ef7c0426.esm-BJmjGGzK.js +0 -2474
- package/dist/Separator-DcqCdD4k.js +0 -344
- package/dist/_commonjsHelpers-BhWcALO8.js +0 -38
- 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 -433
- package/dist/components/select/v2/multi-select.js +0 -404
- package/dist/components/select/v2/shared.js +0 -69
- package/dist/components/select/v2/single-select.js +0 -358
- package/dist/index-641ee5b8.esm-DiwvO-RP.js +0 -3139
- package/dist/modifiers.esm-BuJQPI1X.js +0 -31
- package/dist/multi-select-components-B3KuDyYd.js +0 -3744
- package/dist/react-select-async.esm-_4pk-41v.js +0 -107
- package/dist/react-select.esm-BeuAkAyY.js +0 -15
- package/dist/sha256-C56UDWfQ.js +0 -533
- package/dist/useDragAndDrop-DUXKDS0N.js +0 -3925
- package/dist/wp/wp-font-enhancements.js +0 -1
- package/dist/wp/wp-ui-enhancements.js +0 -1
package/dist/utilities/index.js
CHANGED
|
@@ -2,11 +2,9 @@ import { arrayMoveMultiple, fixIds } from "./array-helpers.js";
|
|
|
2
2
|
import { camelCase, has, isEmpty, isEqual, isObject, isPlainObject, isString, kebabCase, lowerFirst, pascalCase, snakeCase, upperFirst } from "./es-dash.js";
|
|
3
3
|
import { truncate, truncateEnd, truncateMiddle, unescapeHTML } from "./text-helpers.js";
|
|
4
4
|
import { debounce, throttle } from "./debounce-throttle.js";
|
|
5
|
-
import { a, b, d, c, g, i } from "../general-
|
|
5
|
+
import { a, b, d, c, g, i } from "../general-B6pOveVp.js";
|
|
6
6
|
import { c as c2 } from "../lite-DVmmD_-j.js";
|
|
7
|
-
import {
|
|
8
|
-
const sha224 = sha256Exports.sha224;
|
|
9
|
-
const sha256 = sha256Exports.sha256;
|
|
7
|
+
import { cyrb64Hash, simpleHash } from "./hash.js";
|
|
10
8
|
export {
|
|
11
9
|
a as analyzeImage,
|
|
12
10
|
b as analyzeImageAsync,
|
|
@@ -15,6 +13,7 @@ export {
|
|
|
15
13
|
camelCase,
|
|
16
14
|
c as checkTransparency,
|
|
17
15
|
c2 as clsx,
|
|
16
|
+
cyrb64Hash,
|
|
18
17
|
debounce,
|
|
19
18
|
fixIds,
|
|
20
19
|
g as getFileExtension,
|
|
@@ -28,8 +27,7 @@ export {
|
|
|
28
27
|
kebabCase,
|
|
29
28
|
lowerFirst,
|
|
30
29
|
pascalCase,
|
|
31
|
-
|
|
32
|
-
sha256,
|
|
30
|
+
simpleHash,
|
|
33
31
|
snakeCase,
|
|
34
32
|
throttle,
|
|
35
33
|
truncate,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import $dbSRa$react__default, { useRef, useCallback, useState, useContext, useEffect, useMemo } from "react";
|
|
2
|
+
import { c as clsx } from "./clsx-DgYk2OaC.js";
|
|
3
|
+
const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? $dbSRa$react__default.useLayoutEffect : () => {
|
|
3
4
|
};
|
|
4
5
|
var $8ae05eaa5c114e9c$var$_React_useInsertionEffect;
|
|
5
|
-
const $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect =
|
|
6
|
+
const $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = $dbSRa$react__default["useInsertionEffect"]) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
|
|
6
7
|
function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
|
|
7
8
|
const ref = useRef(null);
|
|
8
9
|
$8ae05eaa5c114e9c$var$useEarlyEffect(() => {
|
|
@@ -44,8 +45,8 @@ const $b5e257d569688ac6$var$defaultContext = {
|
|
|
44
45
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
45
46
|
current: 0
|
|
46
47
|
};
|
|
47
|
-
const $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */
|
|
48
|
-
const $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */
|
|
48
|
+
const $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ $dbSRa$react__default.createContext($b5e257d569688ac6$var$defaultContext);
|
|
49
|
+
const $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ $dbSRa$react__default.createContext(false);
|
|
49
50
|
let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
50
51
|
let $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
|
|
51
52
|
function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
@@ -53,7 +54,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
|
53
54
|
let ref = useRef(null);
|
|
54
55
|
if (ref.current === null && !isDisabled) {
|
|
55
56
|
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
|
-
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
|
|
57
|
+
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = $dbSRa$react__default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
|
57
58
|
if (currentOwner) {
|
|
58
59
|
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
|
59
60
|
if (prevComponentValue == null)
|
|
@@ -78,12 +79,12 @@ function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
|
78
79
|
return defaultId || `${prefix}-${counter}`;
|
|
79
80
|
}
|
|
80
81
|
function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
|
|
81
|
-
let id =
|
|
82
|
+
let id = $dbSRa$react__default.useId();
|
|
82
83
|
let [didSSR] = useState($b5e257d569688ac6$export$535bd6ca7f90a273());
|
|
83
84
|
let prefix = didSSR || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
84
85
|
return defaultId || `${prefix}-${id}`;
|
|
85
86
|
}
|
|
86
|
-
const $b5e257d569688ac6$export$619500959fc48b26 = typeof
|
|
87
|
+
const $b5e257d569688ac6$export$619500959fc48b26 = typeof $dbSRa$react__default["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
87
88
|
function $b5e257d569688ac6$var$getSnapshot() {
|
|
88
89
|
return false;
|
|
89
90
|
}
|
|
@@ -95,7 +96,7 @@ function $b5e257d569688ac6$var$subscribe(onStoreChange) {
|
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
98
|
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
98
|
-
if (typeof
|
|
99
|
+
if (typeof $dbSRa$react__default["useSyncExternalStore"] === "function") return $dbSRa$react__default["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
|
99
100
|
return useContext($b5e257d569688ac6$var$IsSSRContext);
|
|
100
101
|
}
|
|
101
102
|
let $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
@@ -118,10 +119,10 @@ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
|
118
119
|
]);
|
|
119
120
|
}
|
|
120
121
|
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
121
|
-
let
|
|
122
|
+
let r = res;
|
|
122
123
|
return () => {
|
|
123
124
|
if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.unregister(cleanupRef);
|
|
124
|
-
$bdb11010cef70236$export$d41a04c74483c6ef.delete(
|
|
125
|
+
$bdb11010cef70236$export$d41a04c74483c6ef.delete(r);
|
|
125
126
|
};
|
|
126
127
|
}, [
|
|
127
128
|
res
|
|
@@ -173,19 +174,6 @@ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
|
|
|
173
174
|
for (let callback of callbacks) if (typeof callback === "function") callback(...args);
|
|
174
175
|
};
|
|
175
176
|
}
|
|
176
|
-
function r(e) {
|
|
177
|
-
var t, f, n = "";
|
|
178
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
179
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
180
|
-
var o = e.length;
|
|
181
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
182
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
183
|
-
return n;
|
|
184
|
-
}
|
|
185
|
-
function clsx() {
|
|
186
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
187
|
-
return n;
|
|
188
|
-
}
|
|
189
177
|
function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
190
178
|
let result = {
|
|
191
179
|
...args[0]
|
|
@@ -266,7 +254,7 @@ function $df56164dff5785e2$export$4338b53315abf666(ref) {
|
|
|
266
254
|
const $64fa3d84918910a7$export$c62b8e45d58ddad9 = Symbol("default");
|
|
267
255
|
function $64fa3d84918910a7$export$2881499e37b75b9a({ values, children }) {
|
|
268
256
|
for (let [Context, value] of values)
|
|
269
|
-
children = /* @__PURE__ */
|
|
257
|
+
children = /* @__PURE__ */ $dbSRa$react__default.createElement(Context.Provider, {
|
|
270
258
|
value
|
|
271
259
|
}, children);
|
|
272
260
|
return children;
|
|
@@ -385,21 +373,20 @@ function $64fa3d84918910a7$export$ef03459518577ad4(props) {
|
|
|
385
373
|
return filteredProps;
|
|
386
374
|
}
|
|
387
375
|
export {
|
|
388
|
-
$64fa3d84918910a7$export$
|
|
389
|
-
$
|
|
390
|
-
$
|
|
391
|
-
|
|
392
|
-
$
|
|
393
|
-
$
|
|
394
|
-
$64fa3d84918910a7$export$
|
|
395
|
-
$64fa3d84918910a7$export$
|
|
396
|
-
$64fa3d84918910a7$export$
|
|
397
|
-
$
|
|
398
|
-
$
|
|
399
|
-
$
|
|
400
|
-
$
|
|
401
|
-
$
|
|
402
|
-
$
|
|
403
|
-
$
|
|
404
|
-
$ff5963eb1fccf552$export$e08e3b67e392101e as p
|
|
376
|
+
$64fa3d84918910a7$export$29f1550f4b0d4415 as $,
|
|
377
|
+
$3ef42575df84b30b$export$9d1611c77c2fe928 as a,
|
|
378
|
+
$bdb11010cef70236$export$f680877a34711e37 as b,
|
|
379
|
+
$8ae05eaa5c114e9c$export$7f54fc3180508a52 as c,
|
|
380
|
+
$64fa3d84918910a7$export$fabf2dc03a41866e as d,
|
|
381
|
+
$64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as e,
|
|
382
|
+
$64fa3d84918910a7$export$ef03459518577ad4 as f,
|
|
383
|
+
$64fa3d84918910a7$export$4d86445c2cf5e3 as g,
|
|
384
|
+
$64fa3d84918910a7$export$2881499e37b75b9a as h,
|
|
385
|
+
$bdb11010cef70236$export$b4cc09c592e8fdb8 as i,
|
|
386
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as j,
|
|
387
|
+
$df56164dff5785e2$export$4338b53315abf666 as k,
|
|
388
|
+
$5dc95899b306f630$export$c9058316764c140e as l,
|
|
389
|
+
$b5e257d569688ac6$export$535bd6ca7f90a273 as m,
|
|
390
|
+
$64fa3d84918910a7$export$c62b8e45d58ddad9 as n,
|
|
391
|
+
$ff5963eb1fccf552$export$e08e3b67e392101e as o
|
|
405
392
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as floatBufferFromCanvas, d as analyzeImageData, F as FLOAT_RGBA } from "../general-
|
|
1
|
+
import { f as floatBufferFromCanvas, d as analyzeImageData, F as FLOAT_RGBA } from "../general-B6pOveVp.js";
|
|
2
2
|
self.onmessage = async (event) => {
|
|
3
3
|
const { imageBitmap, settings } = event.data;
|
|
4
4
|
try {
|
|
@@ -14,8 +14,8 @@ async function analyzeImageInWorker(imageBitmap, rawSettings) {
|
|
|
14
14
|
lightnessThreshold: 0.5,
|
|
15
15
|
yFrom: 0,
|
|
16
16
|
yTo: 1,
|
|
17
|
-
maxSize:
|
|
18
|
-
alphaThreshold:
|
|
17
|
+
maxSize: 600,
|
|
18
|
+
alphaThreshold: 50
|
|
19
19
|
};
|
|
20
20
|
const settings = { ...defaults, ...rawSettings };
|
|
21
21
|
const { yFrom, yTo, maxSize } = settings;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -24,11 +24,15 @@
|
|
|
24
24
|
"./dist/assets/style.css": "./dist/assets/style.css",
|
|
25
25
|
"./dist/assets/style-editor.css": "./dist/assets/style-editor.css",
|
|
26
26
|
"./dist/assets/style-admin.css": "./dist/assets/style-admin.css",
|
|
27
|
-
"./dist/assets/wp-
|
|
28
|
-
"./dist/assets/wp-
|
|
27
|
+
"./dist/assets/wp-overrides/fix-label-text-case.css": "./dist/assets/wp-overrides/fix-label-text-case.css",
|
|
28
|
+
"./dist/assets/wp-overrides/increase-sidebar-width.css": "./dist/assets/wp-overrides/increase-sidebar-width.css",
|
|
29
|
+
"./dist/assets/wp-overrides/make-block-messages-nicer.css": "./dist/assets/wp-overrides/make-block-messages-nicer.css",
|
|
30
|
+
"./dist/assets/wp-overrides/restyle-tooltips.css": "./dist/assets/wp-overrides/restyle-tooltips.css",
|
|
31
|
+
"./dist/assets/wp-overrides/round-corners.css": "./dist/assets/wp-overrides/round-corners.css",
|
|
32
|
+
"./dist/assets/wp-overrides/unify-button-sizes.css": "./dist/assets/wp-overrides/unify-button-sizes.css",
|
|
33
|
+
"./dist/assets/wp-overrides/replace-fonts.css": "./dist/assets/wp-overrides/replace-fonts.css",
|
|
34
|
+
"./dist/assets/wp-overrides/allow-full-width-blocks.css": "./dist/assets/wp-overrides/allow-full-width-blocks.css",
|
|
29
35
|
"./styles": "./dist/assets/style.css",
|
|
30
|
-
"./wp-font-enhancements": "./dist/assets/wp-font-enhancements.css",
|
|
31
|
-
"./wp-ui-enhancements": "./dist/assets/wp-ui-enhancements.css",
|
|
32
36
|
"./wp-overrides": "./dist/assets/wp.css"
|
|
33
37
|
},
|
|
34
38
|
"scripts": {
|
|
@@ -45,6 +49,7 @@
|
|
|
45
49
|
},
|
|
46
50
|
"devDependencies": {
|
|
47
51
|
"@adobe/react-spectrum": "^3.45.0",
|
|
52
|
+
"@atom-universe/use-web-worker": "^2.2.1",
|
|
48
53
|
"@dnd-kit/abstract": "^0.1.21",
|
|
49
54
|
"@dnd-kit/core": "^6.3.1",
|
|
50
55
|
"@dnd-kit/dom": "^0.1.21",
|
|
@@ -53,24 +58,28 @@
|
|
|
53
58
|
"@dnd-kit/react": "^0.1.21",
|
|
54
59
|
"@dnd-kit/sortable": "^10.0.0",
|
|
55
60
|
"@dnd-kit/utilities": "^3.2.2",
|
|
56
|
-
"@eslint/compat": "^1.4.
|
|
61
|
+
"@eslint/compat": "^1.4.1",
|
|
57
62
|
"@react-stately/collections": "^3.12.8",
|
|
58
63
|
"@stylistic/eslint-plugin-js": "^4.4.1",
|
|
59
|
-
"@tailwindcss/vite": "^4.1.
|
|
64
|
+
"@tailwindcss/vite": "^4.1.17",
|
|
65
|
+
"@thi.ng/color": "^5.8.2",
|
|
66
|
+
"@thi.ng/pixel": "^7.5.15",
|
|
67
|
+
"@thi.ng/pixel-analysis": "^2.0.16",
|
|
68
|
+
"@thi.ng/pixel-dominant-colors": "^2.0.20",
|
|
60
69
|
"@types/react": "^18.3.26",
|
|
61
70
|
"@types/react-dom": "^18.3.7",
|
|
62
|
-
"@vitejs/plugin-react-swc": "^4.
|
|
63
|
-
"@wordpress/i18n": "^6.
|
|
64
|
-
"autoprefixer": "^10.4.
|
|
71
|
+
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
72
|
+
"@wordpress/i18n": "^6.8.0",
|
|
73
|
+
"autoprefixer": "^10.4.22",
|
|
65
74
|
"class-variance-authority": "^0.7.1",
|
|
66
75
|
"clsx": "^2.1.1",
|
|
67
76
|
"css-gradient-parser": "^0.0.18",
|
|
68
|
-
"eslint": "^9.
|
|
77
|
+
"eslint": "^9.39.1",
|
|
69
78
|
"eslint-config-prettier": "^10.1.8",
|
|
70
|
-
"eslint-plugin-jsdoc": "^61.1
|
|
79
|
+
"eslint-plugin-jsdoc": "^61.2.1",
|
|
71
80
|
"eslint-plugin-prettier": "^5.5.4",
|
|
72
81
|
"glob": "^11.0.3",
|
|
73
|
-
"globals": "^16.
|
|
82
|
+
"globals": "^16.5.0",
|
|
74
83
|
"just-camel-case": "^6.2.0",
|
|
75
84
|
"just-debounce-it": "^3.2.0",
|
|
76
85
|
"just-has": "^2.3.0",
|
|
@@ -87,23 +96,17 @@
|
|
|
87
96
|
"react-dom": "^18.3.1",
|
|
88
97
|
"react-jsx-parser": "^2.4.1",
|
|
89
98
|
"react-movable": "^3.4.1",
|
|
90
|
-
"react-select": "^5.10.2",
|
|
91
99
|
"react-stately": "^3.42.0",
|
|
92
100
|
"svg-to-jsx-string": "^0.1.1",
|
|
93
|
-
"tailwindcss": "^4.1.
|
|
101
|
+
"tailwindcss": "^4.1.17",
|
|
94
102
|
"tailwindcss-motion": "^1.1.1",
|
|
95
103
|
"tailwindcss-react-aria-components": "^2.0.1",
|
|
96
|
-
"vite": "^7.
|
|
104
|
+
"vite": "^7.2.2",
|
|
97
105
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
98
106
|
},
|
|
99
107
|
"dependencies": {
|
|
100
|
-
"@atom-universe/use-web-worker": "^2.2.1",
|
|
101
|
-
"@fontsource-variable/geist": "^5.2.8",
|
|
102
108
|
"@fontsource-variable/geist-mono": "^5.2.7",
|
|
103
|
-
"@
|
|
104
|
-
"
|
|
105
|
-
"@thi.ng/pixel-analysis": "^2.0.9",
|
|
106
|
-
"@thi.ng/pixel-dominant-colors": "^2.0.14",
|
|
107
|
-
"js-sha256": "^0.11.1"
|
|
109
|
+
"@fontsource-variable/roboto-flex": "^5.2.8",
|
|
110
|
+
"motion": "^12.23.24"
|
|
108
111
|
}
|
|
109
112
|
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { d as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$4d86445c2cf5e3, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
|
|
2
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
3
|
-
import React__default, { useMemo, forwardRef, createContext } from "react";
|
|
4
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-WxFE7lQB.js";
|
|
5
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DMOmz986.js";
|
|
6
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-eaZiN2tE.js";
|
|
7
|
-
function $parcel$interopDefault(a) {
|
|
8
|
-
return a && a.__esModule ? a.default : a;
|
|
9
|
-
}
|
|
10
|
-
function $2993fcad7650b98d$export$9060ae606178d849(props) {
|
|
11
|
-
let { color: value, colorName } = props;
|
|
12
|
-
let nonNullValue = value || "#fff0";
|
|
13
|
-
let color = useMemo(() => typeof nonNullValue === "string" ? $799cddbef784668f$export$6e865ea70d7724f(nonNullValue) : nonNullValue, [
|
|
14
|
-
nonNullValue
|
|
15
|
-
]);
|
|
16
|
-
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
17
|
-
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
18
|
-
labelable: true
|
|
19
|
-
});
|
|
20
|
-
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($3493a52097159720$exports), "@react-aria/color");
|
|
21
|
-
let id = $bdb11010cef70236$export$f680877a34711e37(props.id);
|
|
22
|
-
if (!colorName) colorName = color.getChannelValue("alpha") === 0 ? stringFormatter.format("transparent") : color.getColorName(locale);
|
|
23
|
-
return {
|
|
24
|
-
colorSwatchProps: {
|
|
25
|
-
...DOMProps,
|
|
26
|
-
role: "img",
|
|
27
|
-
"aria-roledescription": stringFormatter.format("colorSwatch"),
|
|
28
|
-
"aria-label": [
|
|
29
|
-
colorName,
|
|
30
|
-
props["aria-label"] || ""
|
|
31
|
-
].filter(Boolean).join(", "),
|
|
32
|
-
"aria-labelledby": props["aria-labelledby"] ? `${id} ${props["aria-labelledby"]}` : void 0,
|
|
33
|
-
id,
|
|
34
|
-
style: {
|
|
35
|
-
backgroundColor: color.toString("css"),
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
forcedColorAdjust: "none"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
color: color || null
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
const $251c695a52d94a8d$export$83cc445538396800 = /* @__PURE__ */ createContext(null);
|
|
44
|
-
const $251c695a52d94a8d$export$cae13e90592f246a = /* @__PURE__ */ forwardRef(function ColorSwatch(props, ref) {
|
|
45
|
-
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $251c695a52d94a8d$export$83cc445538396800);
|
|
46
|
-
let { colorSwatchProps, color } = $2993fcad7650b98d$export$9060ae606178d849(props);
|
|
47
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
48
|
-
...props,
|
|
49
|
-
defaultClassName: "react-aria-ColorSwatch",
|
|
50
|
-
defaultStyle: colorSwatchProps.style,
|
|
51
|
-
values: {
|
|
52
|
-
color
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
56
|
-
global: true
|
|
57
|
-
});
|
|
58
|
-
return /* @__PURE__ */ React__default.createElement("div", {
|
|
59
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, colorSwatchProps, renderProps),
|
|
60
|
-
slot: props.slot || void 0,
|
|
61
|
-
ref
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
export {
|
|
65
|
-
$251c695a52d94a8d$export$cae13e90592f246a as $
|
|
66
|
-
};
|