@eightshift/ui-components 2.0.1 → 3.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-OQ5EIPvt.js → Button-D7c-vzAt.js} +5 -5
- package/dist/{Collection-CJM_asJz.js → Collection-CDEKDgvV.js} +234 -128
- 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-BL1hyP4p.js} +42 -21
- package/dist/{Dialog-CIh-hX93.js → Dialog-s3fX5lSh.js} +199 -88
- package/dist/{FieldError-D7A6s7O5.js → FieldError-52GVSGgC.js} +2 -2
- package/dist/{FocusScope-Cs5_OoeA.js → FocusScope-DbqfVa2Z.js} +206 -43
- package/dist/{Group-D6tr3U_n.js → Group-DMRt6g_N.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-CTTTeCpo.js} +10 -10
- package/dist/{Label-Ca9uelsn.js → Label-icmbmNdI.js} +2 -2
- package/dist/{List-Br274SP1.js → List-UdOhiW-i.js} +2 -0
- package/dist/{ListBox-D9dFEh5A.js → ListBox-CfdzmefC.js} +28 -27
- package/dist/{OverlayArrow-1jx-ZyCR.js → OverlayArrow-CMh-7gEM.js} +3 -3
- package/dist/{Separator-BhZycTUp.js → Separator-BxbOoGIK.js} +4 -4
- package/dist/{Slider-BZNaJylD.js → Slider-BZO0Tvut.js} +13 -14
- package/dist/{Text-aOUPPvTO.js → Text-DVSAPY-K.js} +1 -1
- package/dist/{VisuallyHidden-ClTQo25k.js → VisuallyHidden-ooItkWYR.js} +2 -2
- package/dist/assets/style-admin.css +1320 -1348
- package/dist/assets/style-editor.css +475 -503
- package/dist/assets/style.css +475 -503
- 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 +5 -5
- package/dist/components/checkbox/checkbox.js +8 -8
- package/dist/components/color-pickers/color-swatch.js +2 -2
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +23 -25
- package/dist/components/container-panel/container-panel.js +9 -3
- package/dist/components/draggable/draggable-handle.js +4 -3
- package/dist/components/draggable/draggable.js +1166 -877
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +3 -2
- package/dist/components/expandable/expandable.js +7 -13
- package/dist/components/input-field/input-field.js +10 -9
- package/dist/components/link-input/link-input.js +9 -10
- package/dist/components/menu/menu.js +5 -5
- package/dist/components/modal/modal.js +5 -5
- package/dist/components/notice/notice.js +1 -1
- package/dist/components/number-picker/number-picker.js +14 -12
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/image-placeholder.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +16 -15
- package/dist/components/repeater/repeater-item.js +11 -4
- package/dist/components/repeater/repeater.js +33 -4
- package/dist/components/responsive/mini-responsive.js +7 -4
- package/dist/components/responsive/responsive.js +7 -4
- package/dist/components/rich-label/rich-label.js +4 -3
- package/dist/components/select/async-multi-select.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +1 -1
- package/dist/components/select/styles.js +1 -1
- package/dist/components/select/v2/async-select.js +13 -13
- package/dist/components/select/v2/shared.js +3 -3
- package/dist/components/select/v2/single-select.js +22 -21
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +4 -4
- package/dist/components/tabs/tabs.js +44 -24
- package/dist/components/toggle/switch.js +20 -17
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +17 -23
- package/dist/{context-CDOs-GuR.js → context-D2KUdwNL.js} +1 -1
- 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-CcCn9HWX.js → index-BKGQ6jGS.js} +1 -1
- package/dist/{multi-select-components-CkF3LyTF.js → multi-select-components-DJfz929p.js} +1 -1
- package/dist/{react-jsx-parser.min-CVit0rZn.js → react-jsx-parser.min-DZCiis5V.js} +48 -20
- package/dist/{textSelection-BlTDSskG.js → textSelection-CrrUNX-B.js} +8 -47
- package/dist/{useButton-CmLbE5vg.js → useButton-Dl1C1478.js} +5 -5
- package/dist/{useEvent-cLDJlznQ.js → useEvent-B0b-6KBr.js} +1 -1
- package/dist/useFocusRing-CxlVCVpL.js +107 -0
- package/dist/{useFormReset-NpLM2e3G.js → useFormReset-C5OggHsw.js} +1 -1
- package/dist/{useFormValidation-BWwmZQE2.js → useFormValidation-BgSHI8kQ.js} +2 -2
- package/dist/{focusSafely-CiqTTjWy.js → useHover-B-8Wji4B.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-BXnC0mNr.js} +28 -13
- package/dist/{useLocalizedStringFormatter-BQ4TF72x.js → useLocalizedStringFormatter-CFP1YZWQ.js} +1 -1
- package/dist/{useNumberField-Bm6_BVl9.js → useNumberField-ecr8uK6_.js} +10 -10
- package/dist/{useNumberFormatter-DlUVKkO7.js → useNumberFormatter-321rAb4J.js} +1 -1
- package/dist/{usePress-rg_OQIGW.js → usePress-C3dxzVyi.js} +69 -63
- package/dist/{useSingleSelectListState-Cu3xtEJS.js → useSingleSelectListState-Dgbuzw5o.js} +2 -2
- package/dist/{useToggle-DzlgBLAJ.js → useToggle-DyZydSPy.js} +9 -7
- package/dist/{useToggleState-DhSBQxkp.js → useToggleState-BZoo5qt_.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,9 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, b as $d3f049242431219c$export$45fda7c47f93fd48, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, $ as $d3f049242431219c$export$6d3443f2c48bfc20, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f, e as $44f671af83e7d9e0$export$746d02f47f4d381 } from "../../OverlayArrow-
|
|
3
|
-
import {
|
|
4
|
-
import { $ as $
|
|
2
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, b as $d3f049242431219c$export$45fda7c47f93fd48, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, $ as $d3f049242431219c$export$6d3443f2c48bfc20, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f, e as $44f671af83e7d9e0$export$746d02f47f4d381 } from "../../OverlayArrow-CMh-7gEM.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-B-8Wji4B.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
7
|
import { $ as $dbSRa$reactdom } from "../../index-BRp93Yfa.js";
|
|
9
8
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
@@ -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]
|
|
431
|
-
isExiting && "es:motion-opacity-out es:motion-duration-200 es:motion-safe:data-[placement=left]:motion-translate-x-out-[
|
|
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",
|