@eightshift/ui-components 2.0.2 → 3.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-OQ5EIPvt.js → Button-BPLceDeW.js} +5 -5
- package/dist/{Collection-CJM_asJz.js → Collection-CZxddMZS.js} +241 -135
- package/dist/{Color-B0HgM8f4.js → Color-MV5kBVXr.js} +1 -1
- package/dist/{ColorSwatch-Dv3Wxdl_.js → ColorSwatch-BqQfVu4L.js} +5 -5
- package/dist/{ComboBox-BnlZjJ3T.js → ComboBox-_RfyhwZw.js} +42 -21
- package/dist/{Dialog-CIh-hX93.js → Dialog-8tYeQ9n4.js} +202 -91
- package/dist/{FieldError-D7A6s7O5.js → FieldError-52GVSGgC.js} +2 -2
- package/dist/{FocusScope-Cs5_OoeA.js → FocusScope-Cri5BFRz.js} +206 -43
- package/dist/{Group-D6tr3U_n.js → Group-_emcIVxI.js} +3 -3
- package/dist/{Heading-DiYTXoIW.js → Heading-B2153VXe.js} +1 -1
- package/dist/{Hidden-DnOd_jPX.js → Hidden-rE6uR-lr.js} +2 -6
- package/dist/{Input-Se0m3ubj.js → Input-BxpFEIXV.js} +10 -10
- package/dist/{Label-Ca9uelsn.js → Label-icmbmNdI.js} +2 -2
- package/dist/{List-Br274SP1.js → List-CZMUbkFU.js} +3 -1
- package/dist/{ListBox-D9dFEh5A.js → ListBox-Ca6hiCqz.js} +29 -28
- package/dist/{OverlayArrow-1jx-ZyCR.js → OverlayArrow-CYXQSlEU.js} +7 -7
- package/dist/{Select-aab027f3.esm-HFNIFFya.js → Select-aab027f3.esm-PDJCDE95.js} +2 -2
- package/dist/{Separator-BhZycTUp.js → Separator-4IIDRlV_.js} +4 -4
- package/dist/{Slider-BZNaJylD.js → Slider-rz2XRMGm.js} +15 -16
- package/dist/{Text-aOUPPvTO.js → Text-DVSAPY-K.js} +1 -1
- package/dist/{VisuallyHidden-ClTQo25k.js → VisuallyHidden-f9zX67a_.js} +2 -2
- package/dist/assets/style-admin.css +1289 -1338
- package/dist/assets/style-editor.css +433 -482
- package/dist/assets/style.css +433 -482
- package/dist/assets/wp-font-enhancements.css +3 -3
- package/dist/assets/wp-ui-enhancements.css +45 -45
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +6 -6
- package/dist/components/checkbox/checkbox.js +13 -10
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +4 -4
- package/dist/components/color-pickers/solid-color-picker.js +22 -24
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/container-panel/container-panel.js +9 -3
- package/dist/components/draggable/draggable-handle.js +2 -2
- package/dist/components/draggable/draggable.js +1167 -871
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +9 -9
- package/dist/components/input-field/input-field.js +10 -9
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +9 -10
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/modal/modal.js +7 -7
- package/dist/components/number-picker/number-picker.js +15 -13
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/placeholders/image-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +20 -17
- package/dist/components/repeater/repeater-item.js +10 -3
- package/dist/components/repeater/repeater.js +34 -5
- package/dist/components/responsive/mini-responsive.js +8 -5
- package/dist/components/responsive/responsive-legacy.js +2 -2
- package/dist/components/responsive/responsive.js +10 -7
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +4 -3
- package/dist/components/select/async-multi-select.js +4 -4
- package/dist/components/select/async-single-select.js +3 -3
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +3 -3
- package/dist/components/select/multi-select.js +4 -4
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +3 -3
- package/dist/components/select/v2/async-select.js +10 -10
- package/dist/components/select/v2/shared.js +2 -2
- package/dist/components/select/v2/single-select.js +24 -23
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +46 -26
- package/dist/components/toggle/switch.js +7 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +18 -24
- package/dist/{context-CDOs-GuR.js → context-D2KUdwNL.js} +1 -1
- package/dist/{default-i18n-CM1-Xvzf.js → default-i18n-CT_oS1Fy.js} +22 -3
- package/dist/icons/icons.js +229 -1629
- package/dist/icons/index.js +2 -3
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/{index-641ee5b8.esm-DbdaYaxR.js → index-641ee5b8.esm-DIuJijyT.js} +31 -31
- package/dist/{index-CcCn9HWX.js → index-BKGQ6jGS.js} +1 -1
- package/dist/{index-BRp93Yfa.js → index-CFozsmNS.js} +4 -1
- package/dist/{multi-select-components-DJfz929p.js → multi-select-components-Sp-JEFEX.js} +4 -4
- package/dist/{react-jsx-parser.min-CVit0rZn.js → react-jsx-parser.min-DZCiis5V.js} +48 -20
- package/dist/{react-select-async.esm-DcVLw9X5.js → react-select-async.esm-Bql4G5iV.js} +3 -3
- package/dist/{react-select.esm-OZ0cmTjg.js → react-select.esm-B_TudhTU.js} +3 -3
- package/dist/{textSelection-BlTDSskG.js → textSelection-0UUS8Yfg.js} +8 -47
- package/dist/{useButton-CmLbE5vg.js → useButton-Cg474OYB.js} +5 -5
- package/dist/{useEvent-cLDJlznQ.js → useEvent-B0b-6KBr.js} +1 -1
- package/dist/useFocusRing-CV5l3lf6.js +107 -0
- package/dist/{useFormReset-NpLM2e3G.js → useFormReset-C5OggHsw.js} +1 -1
- package/dist/{useFormValidation-BWwmZQE2.js → useFormValidation-DhDNSjws.js} +3 -3
- package/dist/{focusSafely-CiqTTjWy.js → useHover-DwDr6ozG.js} +305 -98
- package/dist/{useLabel-C85N3Hzw.js → useLabel-D7HkNEHT.js} +2 -2
- package/dist/{useLabels-C_2wWraB.js → useLabels-D8cxd1Z8.js} +1 -1
- package/dist/{useListState-Z7FB_NzO.js → useListState-DVr6aYd_.js} +28 -13
- package/dist/{useLocalizedStringFormatter-BQ4TF72x.js → useLocalizedStringFormatter-CFP1YZWQ.js} +1 -1
- package/dist/{useNumberField-Bm6_BVl9.js → useNumberField-TwM0Z9D1.js} +10 -10
- package/dist/{useNumberFormatter-DlUVKkO7.js → useNumberFormatter-321rAb4J.js} +1 -1
- package/dist/{usePress-rg_OQIGW.js → usePress-Cucx-xSA.js} +69 -63
- package/dist/{useSingleSelectListState-Cu3xtEJS.js → useSingleSelectListState-CMGsRHHh.js} +2 -2
- package/dist/{useToggle-DzlgBLAJ.js → useToggle-C0I3vs0g.js} +9 -7
- package/dist/{useToggleState-DhSBQxkp.js → useToggleState-CmQX3SoX.js} +1 -1
- package/dist/{utils-39D0mStj.js → utils-DkCSC521.js} +38 -35
- package/package.json +32 -32
- package/dist/useFocusRing-CGp3guTX.js +0 -41
- package/dist/useFocusable-087cO5Ct.js +0 -81
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { $ as $
|
|
2
|
+
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, a as $d3f049242431219c$export$45fda7c47f93fd48, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, b as $d3f049242431219c$export$6d3443f2c48bfc20, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f, e as $44f671af83e7d9e0$export$746d02f47f4d381 } from "../../OverlayArrow-CYXQSlEU.js";
|
|
3
|
+
import { n as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, i as $64fa3d84918910a7$export$2881499e37b75b9a, a as $64fa3d84918910a7$export$29f1550f4b0d4415, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-DkCSC521.js";
|
|
4
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $f645667febf57a63$export$4c014de7c8940b4c, w as $507fabe10e71c6fb$export$630ff653c5ada6a9, m as $507fabe10e71c6fb$export$b9b3dfddab17db27, x as $f645667febf57a63$export$13f3202a3e5ddd5 } from "../../useHover-DwDr6ozG.js";
|
|
5
5
|
import React__default, { useContext, useState, useMemo, useRef, useEffect, forwardRef, createContext } from "react";
|
|
6
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456, k as $507fabe10e71c6fb$export$630ff653c5ada6a9, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, d as $9ab94262bd0047c7$export$420e68273165f4ec } from "../../focusSafely-CiqTTjWy.js";
|
|
7
6
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
8
|
-
import { $ as $dbSRa$reactdom } from "../../index-
|
|
7
|
+
import { $ as $dbSRa$reactdom } from "../../index-CFozsmNS.js";
|
|
9
8
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
10
9
|
const $f57aed4a881a3485$var$Context = /* @__PURE__ */ React__default.createContext(null);
|
|
11
10
|
function $f57aed4a881a3485$export$178405afcd8c5eb(props) {
|
|
@@ -140,7 +139,7 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
140
139
|
onHoverStart,
|
|
141
140
|
onHoverEnd
|
|
142
141
|
});
|
|
143
|
-
let { focusableProps } = $
|
|
142
|
+
let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
|
|
144
143
|
isDisabled,
|
|
145
144
|
onFocus,
|
|
146
145
|
onBlur
|
|
@@ -150,7 +149,8 @@ function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref) {
|
|
|
150
149
|
"aria-describedby": state.isOpen ? tooltipId : void 0,
|
|
151
150
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, hoverProps, {
|
|
152
151
|
onPointerDown: onPressStart,
|
|
153
|
-
onKeyDown: onPressStart
|
|
152
|
+
onKeyDown: onPressStart,
|
|
153
|
+
tabIndex: void 0
|
|
154
154
|
})
|
|
155
155
|
},
|
|
156
156
|
tooltipProps: {
|
|
@@ -271,7 +271,7 @@ function $4e3b923658d69c60$export$8c610744efcf8a1d(props) {
|
|
|
271
271
|
}
|
|
272
272
|
]
|
|
273
273
|
]
|
|
274
|
-
}, /* @__PURE__ */ React__default.createElement($
|
|
274
|
+
}, /* @__PURE__ */ React__default.createElement($f645667febf57a63$export$13f3202a3e5ddd5, {
|
|
275
275
|
...triggerProps,
|
|
276
276
|
ref
|
|
277
277
|
}, props.children));
|
|
@@ -423,12 +423,12 @@ const Tooltip2 = (props) => {
|
|
|
423
423
|
offset,
|
|
424
424
|
crossOffset,
|
|
425
425
|
className: ({ isEntering, isExiting }) => clsx(
|
|
426
|
-
"es:group es:
|
|
426
|
+
"es:group es:pointer-events-none",
|
|
427
427
|
"es:z-20 es:select-none es:rounded-md es:border es:px-1.5 es:py-0.5 es:text-sm es:shadow es:backdrop-blur-3xl es:will-change-[transform,opacity] es:fill-mode-forwards",
|
|
428
428
|
theme === "light" && "es:border-secondary-200 es:bg-white/90 es:text-secondary-700",
|
|
429
429
|
theme === "dark" && "es:border-secondary-600 es:bg-black/80 es:text-secondary-100",
|
|
430
|
-
isEntering && "es:motion-opacity-in es:motion-duration-300 es:motion-safe:data-[placement=left]:motion-translate-x-in-
|
|
431
|
-
isExiting && "es:motion-opacity-out es:motion-duration-200 es:motion-safe:data-[placement=left]:motion-translate-x-out-[12.5%] es:motion-safe:data-[placement=right]:motion-translate-x-out-[-12.5%] es:motion-safe:data-[placement=top]:motion-translate-y-out-[12.5%] es:motion-safe:data-[placement=bottom]:motion-translate-y-out-[-12.5%] es:motion-ease-spring-
|
|
430
|
+
isEntering && "es:motion-opacity-in es:motion-duration-300 es:motion-safe:data-[placement=left]:motion-translate-x-in-[5%] es:motion-safe:data-[placement=right]:-motion-translate-x-in-[5%] es:motion-safe:data-[placement=top]:motion-translate-y-in-[5%] es:motion-safe:data-[placement=bottom]:-motion-translate-y-in-[5%] es:motion-ease-spring-smooth es:motion-ease-linear/opacity",
|
|
431
|
+
isExiting && "es:motion-opacity-out es:motion-duration-200 es:motion-safe:data-[placement=left]:motion-translate-x-out-[12.5%] es:motion-safe:data-[placement=right]:motion-translate-x-out-[-12.5%] es:motion-safe:data-[placement=top]:motion-translate-y-out-[12.5%] es:motion-safe:data-[placement=bottom]:motion-translate-y-out-[-12.5%] es:motion-ease-spring-smooth es:motion-ease-linear/opacity",
|
|
432
432
|
className
|
|
433
433
|
),
|
|
434
434
|
children: [
|
|
@@ -440,9 +440,10 @@ const Tooltip2 = (props) => {
|
|
|
440
440
|
viewBox: "0 0 8 8",
|
|
441
441
|
className: clsx(
|
|
442
442
|
"es:m-px es:stroke-none es:drop-shadow-sm",
|
|
443
|
+
"es:pointer-events-none",
|
|
443
444
|
theme === "light" && "es:fill-secondary-200",
|
|
444
445
|
theme === "dark" && "es:fill-secondary-600",
|
|
445
|
-
"group-placement
|
|
446
|
+
"es:group-data-[placement=left]:-rotate-90 es:group-data-[placement=right]:rotate-90 es:group-data-[placement=bottom]:rotate-180",
|
|
446
447
|
"es:forced-colors:fill-[Canvas] es:forced-colors:stroke-[ButtonBorder]"
|
|
447
448
|
),
|
|
448
449
|
children: /* @__PURE__ */ jsx("path", { d: "M0 0 L4 4 L8 0" })
|
|
@@ -496,29 +497,22 @@ const Tooltip2 = (props) => {
|
|
|
496
497
|
*/
|
|
497
498
|
const DecorativeTooltip = (props) => {
|
|
498
499
|
const { openDelay, closeDelay, children, text, wrapperClassName, ...rest } = props;
|
|
499
|
-
const
|
|
500
|
-
let { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
501
|
-
onHoverStart: () => setTimeout(() => setOpen(true), openDelay),
|
|
502
|
-
onHoverEnd: () => setTimeout(() => setOpen(false), closeDelay)
|
|
503
|
-
});
|
|
504
|
-
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
505
|
-
onFocusWithinChange: (isFocusWithin) => setOpen(isFocusWithin)
|
|
506
|
-
});
|
|
500
|
+
const state = $8796f90736e175cb$export$4d40659c25ecb50b(props);
|
|
507
501
|
const ref = useRef(null);
|
|
502
|
+
const { triggerProps } = $4e1b34546679e357$export$a6da6c504e4bba8b(props, state, ref);
|
|
508
503
|
return /* @__PURE__ */ jsx(
|
|
509
504
|
Tooltip2,
|
|
510
505
|
{
|
|
511
506
|
triggerRef: ref,
|
|
512
507
|
text,
|
|
513
|
-
open,
|
|
514
|
-
className: "es:pointer-events-none",
|
|
508
|
+
open: state.isOpen,
|
|
515
509
|
...rest,
|
|
516
510
|
children: /* @__PURE__ */ jsx(
|
|
517
511
|
"div",
|
|
518
512
|
{
|
|
519
513
|
ref,
|
|
520
|
-
|
|
521
|
-
|
|
514
|
+
...triggerProps,
|
|
515
|
+
className: wrapperClassName,
|
|
522
516
|
children
|
|
523
517
|
}
|
|
524
518
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useContext } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { n as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-DkCSC521.js";
|
|
3
3
|
const $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
|
|
4
4
|
"Arab",
|
|
5
5
|
"Syrc",
|
|
@@ -73,14 +73,11 @@ function requireSprintf() {
|
|
|
73
73
|
(function(exports) {
|
|
74
74
|
!function() {
|
|
75
75
|
var re = {
|
|
76
|
-
not_string: /[^s]/,
|
|
77
|
-
not_bool: /[^t]/,
|
|
78
76
|
not_type: /[^T]/,
|
|
79
77
|
not_primitive: /[^v]/,
|
|
80
78
|
number: /[diefg]/,
|
|
81
79
|
numeric_arg: /[bcdiefguxX]/,
|
|
82
80
|
json: /[j]/,
|
|
83
|
-
not_json: /[^j]/,
|
|
84
81
|
text: /^[^\x25]+/,
|
|
85
82
|
modulo: /^\x25{2}/,
|
|
86
83
|
placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,
|
|
@@ -885,6 +882,28 @@ function createHooks() {
|
|
|
885
882
|
return new _Hooks();
|
|
886
883
|
}
|
|
887
884
|
const defaultHooks = createHooks();
|
|
885
|
+
const {
|
|
886
|
+
addAction,
|
|
887
|
+
addFilter,
|
|
888
|
+
removeAction,
|
|
889
|
+
removeFilter,
|
|
890
|
+
hasAction,
|
|
891
|
+
hasFilter,
|
|
892
|
+
removeAllActions,
|
|
893
|
+
removeAllFilters,
|
|
894
|
+
doAction,
|
|
895
|
+
doActionAsync,
|
|
896
|
+
applyFilters,
|
|
897
|
+
applyFiltersAsync,
|
|
898
|
+
currentAction,
|
|
899
|
+
currentFilter,
|
|
900
|
+
doingAction,
|
|
901
|
+
doingFilter,
|
|
902
|
+
didAction,
|
|
903
|
+
didFilter,
|
|
904
|
+
actions,
|
|
905
|
+
filters
|
|
906
|
+
} = defaultHooks;
|
|
888
907
|
const i18n = createI18n(void 0, void 0, defaultHooks);
|
|
889
908
|
i18n.getLocaleData.bind(i18n);
|
|
890
909
|
i18n.setLocaleData.bind(i18n);
|