@eightshift/ui-components 1.2.3 → 1.3.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-CbFrFO04.js → Button-DTARR6Ff.js} +4 -4
- package/dist/{Checkbox-Cv3pZDHg.js → Checkbox-CiJIVbAP.js} +8 -8
- package/dist/{ColorSwatch-CNQmCQV8.js → ColorSwatch-5bZ_yIMB.js} +4 -4
- package/dist/{popover-CV0BkYt4.js → Dialog-DJgS0mAg.js} +23 -212
- package/dist/{FieldError-J1-YPbi6.js → FieldError-CviphIN5.js} +2 -2
- package/dist/{FocusScope-Bw-IatMO.js → FocusScope-BjM5iOQC.js} +2 -2
- package/dist/{GridList-CEzzyr-l.js → GridList-DjRnMEae.js} +17 -17
- package/dist/{Group-D3Qa6PrV.js → Group-BQu67pVS.js} +3 -3
- package/dist/{Input-CX_rocyZ.js → Input-DWRQF0ro.js} +7 -7
- package/dist/{Label-Bg5O81Wb.js → Label-BXvY41yE.js} +1 -1
- package/dist/{ListBox-CCWXTj0t.js → ListBox-DTKMdjQC.js} +14 -14
- package/dist/{RSPContexts-CrNYmadY.js → RSPContexts-DQtGvvpM.js} +4 -4
- package/dist/{SelectionManager-XOAt-Ekx.js → SelectionManager-JxXmb3-k.js} +7 -7
- package/dist/{Separator-DZeg0KOr.js → Separator-CX64zwq8.js} +3 -3
- package/dist/{Slider-fULMI0gI.js → Slider-Clme2C36.js} +11 -11
- package/dist/{Text-WqetJduR.js → Text-qjognpzK.js} +1 -1
- package/dist/{VisuallyHidden-Di1zXprL.js → VisuallyHidden-BZPezMV5.js} +2 -2
- package/dist/{ariaHideOutside-Zn64-frS.js → ariaHideOutside-BZ5z6iCD.js} +2 -2
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/{button-CGfYTkeY.js → button-IxfzzzbP.js} +5 -5
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +4 -4
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +2 -2
- package/dist/components/color-pickers/gradient-editor.js +95 -80
- package/dist/components/color-pickers/solid-color-picker.js +20 -20
- package/dist/components/component-toggle/component-toggle.js +2 -2
- package/dist/components/container-panel/container-panel.js +1 -1
- 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 +3 -3
- package/dist/components/index.js +8 -6
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/link-input/link-input.js +12 -12
- package/dist/components/list-box/list-box.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +3 -3
- package/dist/components/menu/menu.js +15 -14
- package/dist/components/modal/modal.js +318 -0
- package/dist/components/number-picker/number-picker.js +10 -10
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/popover/popover.js +198 -7
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater-item.js +3 -3
- package/dist/components/repeater/repeater.js +4 -4
- package/dist/components/responsive/responsive-legacy.js +2 -2
- package/dist/components/responsive/responsive.js +2 -2
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/tabs/tabs.js +9 -9
- package/dist/components/toggle/switch.js +6 -6
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/{context-4oSz1ItD.js → context-BG_1RnbC.js} +1 -1
- package/dist/{focusSafely-BS4dllCW.js → focusSafely-DGZ4R5fj.js} +1 -1
- package/dist/icons/jsx-svg.js +1 -4559
- package/dist/index.js +8 -6
- package/dist/{intlStrings-Dxaeitoh.js → intlStrings-CkuKCPkT.js} +1 -1
- package/dist/react-jsx-parser.min-DhrYeqLL.js +4563 -0
- package/dist/{textSelection-exP_9srp.js → textSelection-BLyBtNe2.js} +1 -1
- package/dist/{tooltip-Do_imFfg.js → tooltip-DSk8I1SO.js} +9 -9
- package/dist/{useButton-DbjDV_33.js → useButton-EJ9c8fmq.js} +3 -3
- package/dist/{useEvent-zvxfEnmK.js → useEvent-Cxq_BzP_.js} +1 -1
- package/dist/{useFocusRing-SPRI0-SN.js → useFocusRing-Dg5Y_10S.js} +1 -1
- package/dist/{useFocusable-CLmhO94g.js → useFocusable-CQZyQp4q.js} +2 -2
- package/dist/{useFormReset-BVWgcyGO.js → useFormReset-DJMtIgSL.js} +1 -1
- package/dist/{useFormValidationState-CthG9Fbc.js → useFormValidationState-DDC_nImg.js} +2 -2
- package/dist/{useHasTabbableChild--gkWUICh.js → useHasTabbableChild-M3O3VIil.js} +2 -2
- package/dist/{useLabel-g836T8kL.js → useLabel-6NqYraET.js} +2 -2
- package/dist/{useLabels-CfOtyOe2.js → useLabels-D2RG7TdI.js} +1 -1
- package/dist/{useListState-DnWZa__1.js → useListState-IllYYnXV.js} +1 -1
- package/dist/{useLocalizedStringFormatter-BQCMno9k.js → useLocalizedStringFormatter-Cwm_siat.js} +1 -1
- package/dist/{useNumberFieldState-BegO5X6F.js → useNumberFieldState-CVJOJnF1.js} +9 -9
- package/dist/{useNumberFormatter-DhOGEsEK.js → useNumberFormatter-DVZRQXk3.js} +1 -1
- package/dist/{usePress-CScNeV3V.js → usePress-CiXj8dLE.js} +3 -3
- package/dist/{useToggle-6LnpaJ7-.js → useToggle-CV-IX6nL.js} +4 -4
- package/dist/{useToggleState-Cymkpac8.js → useToggleState-DHIdITtQ.js} +1 -1
- package/dist/{utils-Dc35LwuT.js → utils-DC-UMp1n.js} +3 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.edit-post-sidebar .components-button:not(:-webkit-any(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button{border-radius:.375rem!important}.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.edit-post-sidebar .components-button:not(:-moz-any(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button{border-radius:.375rem!important}.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.edit-post-sidebar .components-button:not(:is(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button{border-radius:.375rem!important}.components-input-control__container,.components-combobox-control__suggestions-container,.components-checkbox-control__input,.components-tooltip,button.components-toggle-group-control-option-base,.editor-post-visibility__password-input{border-radius:.25rem!important}.components-button-group .components-button:first-child{border-top-left-radius:.375rem!important;border-bottom-left-radius:.375rem!important}.components-button-group .components-button:last-child{border-top-right-radius:.375rem!important;border-bottom-right-radius:.375rem!important}.components-popover__content{border-radius:.5rem!important}.block-editor-inserter__search{border-top-left-radius:.5rem!important;border-top-right-radius:.5rem!important}.components-base-control__label,.components-input-control__label,.components-custom-select-control__label{text-transform:none!important;letter-spacing:0!important;font-size:13px!important;font-weight:400!important}.edit-post-sidebar{width:20rem!important}.block-list-appender.wp-block{padding:.25rem!important;position:static!important}.components-dropdown.block-editor-inserter{width:-moz-fit-content!important;width:fit-content!important;margin-left:auto!important;margin-right:auto!important}.block-editor-block-list__block-crash-warning{--tw-shadow:var(--tw-shadow-colored)!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;--tw-shadow-color:#b91c1c1a!important;border-color:#b91c1c26!important;border-radius:.5rem!important}.block-editor-block-list__block-crash-warning .block-editor-warning__message{--tw-text-opacity:1!important;color:rgb(69 10 10/var(--tw-text-opacity))!important}.block-editor-block-contextual-toolbar,.block-editor-block-parent-selector__button{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item{border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item:after{content:var(--tw-content)!important;border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item svg{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.block-editor-list-view-tree .block-editor-block-icon{border-radius:.25rem!important}.block-editor-list-view-tree .block-editor-list-view-leaf>:first-child{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.block-editor-list-view-tree .block-editor-list-view-leaf>:last-child{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.block-editor-block-inspector .block-editor-block-card .block-editor-block-icon{border-radius:.25rem!important}.block-list-appender.wp-block>.block-editor-default-block-appender{width:-moz-fit-content;width:fit-content}.block-list-appender.wp-block>.block-editor-default-block-appender .block-editor-inserter__toggle{width:2.25rem!important;height:2.25rem!important}.block-list-appender.wp-block>.block-editor-default-block-appender .block-editor-inserter__toggle{border-radius:.375rem!important}.edit-post-header__toolbar .components-button{min-height:2.25rem}.edit-post-header__toolbar .components-button{min-width:2.25rem}.editor-styles-wrapper .wp-block:not(:-webkit-any(.editor-post-title,.block-list-appender)){max-width:100%!important}.editor-styles-wrapper .wp-block:not(:-moz-any(.editor-post-title,.block-list-appender)){max-width:100%!important}.editor-styles-wrapper .wp-block:not(:is(.editor-post-title,.block-list-appender)){max-width:100%!important}.components-tooltip{--tw-border-opacity:1;border-width:1px;border-color:rgb(31 41 55/var(--tw-border-opacity));--tw-text-opacity:1;color:rgb(
|
|
1
|
+
.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.edit-post-sidebar .components-button:not(:-webkit-any(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button{border-radius:.375rem!important}.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.edit-post-sidebar .components-button:not(:-moz-any(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button{border-radius:.375rem!important}.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.edit-post-sidebar .components-button:not(:is(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button{border-radius:.375rem!important}.components-input-control__container,.components-combobox-control__suggestions-container,.components-checkbox-control__input,.components-tooltip,button.components-toggle-group-control-option-base,.editor-post-visibility__password-input{border-radius:.25rem!important}.components-button-group .components-button:first-child{border-top-left-radius:.375rem!important;border-bottom-left-radius:.375rem!important}.components-button-group .components-button:last-child{border-top-right-radius:.375rem!important;border-bottom-right-radius:.375rem!important}.components-popover__content{border-radius:.5rem!important}.block-editor-inserter__search{border-top-left-radius:.5rem!important;border-top-right-radius:.5rem!important}.components-base-control__label,.components-input-control__label,.components-custom-select-control__label{text-transform:none!important;letter-spacing:0!important;font-size:13px!important;font-weight:400!important}.edit-post-sidebar{width:20rem!important}.block-list-appender.wp-block{padding:.25rem!important;position:static!important}.components-dropdown.block-editor-inserter{width:-moz-fit-content!important;width:fit-content!important;margin-left:auto!important;margin-right:auto!important}.block-editor-block-list__block-crash-warning{--tw-shadow:var(--tw-shadow-colored)!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;--tw-shadow-color:#b91c1c1a!important;border-color:#b91c1c26!important;border-radius:.5rem!important}.block-editor-block-list__block-crash-warning .block-editor-warning__message{--tw-text-opacity:1!important;color:rgb(69 10 10/var(--tw-text-opacity))!important}.block-editor-block-contextual-toolbar,.block-editor-block-parent-selector__button{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item{border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item:after{content:var(--tw-content)!important;border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item svg{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.block-editor-list-view-tree .block-editor-block-icon{border-radius:.25rem!important}.block-editor-list-view-tree .block-editor-list-view-leaf>:first-child{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.block-editor-list-view-tree .block-editor-list-view-leaf>:last-child{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.block-editor-block-inspector .block-editor-block-card .block-editor-block-icon{border-radius:.25rem!important}.block-list-appender.wp-block>.block-editor-default-block-appender{width:-moz-fit-content;width:fit-content}.block-list-appender.wp-block>.block-editor-default-block-appender .block-editor-inserter__toggle{width:2.25rem!important;height:2.25rem!important}.block-list-appender.wp-block>.block-editor-default-block-appender .block-editor-inserter__toggle{border-radius:.375rem!important}.edit-post-header__toolbar .components-button{min-height:2.25rem}.edit-post-header__toolbar .components-button{min-width:2.25rem}.editor-styles-wrapper .wp-block:not(:-webkit-any(.editor-post-title,.block-list-appender)){max-width:100%!important}.editor-styles-wrapper .wp-block:not(:-moz-any(.editor-post-title,.block-list-appender)){max-width:100%!important}.editor-styles-wrapper .wp-block:not(:is(.editor-post-title,.block-list-appender)){max-width:100%!important}.components-tooltip{--tw-border-opacity:1;border-width:1px;border-color:rgb(31 41 55/var(--tw-border-opacity));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);--tw-backdrop-blur:blur(24px);--tw-backdrop-brightness:brightness(1.05);--tw-backdrop-saturate:saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);background-color:#030712b3;border-radius:.375rem;padding:.25rem .375rem}.components-tooltip:has(>:first-child){--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity));--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity));background-color:#fffc}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-
|
|
3
|
-
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, l as $df56164dff5785e2$export$4338b53315abf666 } from "./utils-
|
|
4
|
-
import { b as $9bf71ea28793e738$export$c5251b9e124bf29 } from "./FocusScope-
|
|
2
|
+
import { a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-DTARR6Ff.js";
|
|
3
|
+
import { g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, l as $df56164dff5785e2$export$4338b53315abf666 } from "./utils-DC-UMp1n.js";
|
|
4
|
+
import { b as $9bf71ea28793e738$export$c5251b9e124bf29 } from "./FocusScope-BjM5iOQC.js";
|
|
5
5
|
import React__default, { useState, useRef, forwardRef, createContext } from "react";
|
|
6
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
6
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BG_1RnbC.js";
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
8
8
|
import { c as clsx } from "./lite-DVmmD_-j.js";
|
|
9
|
-
import { T as Tooltip } from "./tooltip-
|
|
9
|
+
import { T as Tooltip } from "./tooltip-DSk8I1SO.js";
|
|
10
10
|
import { _ as __ } from "./default-i18n-BqwLkgZv.js";
|
|
11
11
|
function $2680b1829e803644$export$fa142eb1681c520(props, ref) {
|
|
12
12
|
const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, orientation = "horizontal" } = props;
|
|
@@ -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-qjognpzK.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,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../Button-
|
|
3
|
-
import { B, a } from "../../button-
|
|
2
|
+
import "../../Button-DTARR6Ff.js";
|
|
3
|
+
import { B, a } from "../../button-IxfzzzbP.js";
|
|
4
4
|
import "../../lite-DVmmD_-j.js";
|
|
5
|
-
import "../../tooltip-
|
|
5
|
+
import "../../tooltip-DSk8I1SO.js";
|
|
6
6
|
import "../../default-i18n-BqwLkgZv.js";
|
|
7
|
-
import "../../utils-
|
|
7
|
+
import "../../utils-DC-UMp1n.js";
|
|
8
8
|
export {
|
|
9
9
|
B as Button,
|
|
10
10
|
a as ButtonGroup
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $bc237834342dbd75$export$48513f6b9f8ce62d } from "../../Checkbox-
|
|
2
|
+
import { $ as $bc237834342dbd75$export$48513f6b9f8ce62d } from "../../Checkbox-CiJIVbAP.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
5
5
|
import { icons } from "../../icons/icons.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
3
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../intlStrings-
|
|
2
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-5bZ_yIMB.js";
|
|
3
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../intlStrings-CkuKCPkT.js";
|
|
4
4
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
5
5
|
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
6
6
|
/**
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { _ as __, s as sprintf } from "../../default-i18n-BqwLkgZv.js";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { a as ButtonGroup } from "../../button-
|
|
5
|
-
import { ToggleButton } from "../toggle-button/toggle-button.js";
|
|
6
|
-
import { Repeater } from "../repeater/repeater.js";
|
|
7
|
-
import { RepeaterItem } from "../repeater/repeater-item.js";
|
|
3
|
+
import { useMemo, useState } from "react";
|
|
4
|
+
import { B as Button, a as ButtonGroup } from "../../button-IxfzzzbP.js";
|
|
8
5
|
import { icons } from "../../icons/icons.js";
|
|
9
6
|
import { SolidColorPicker } from "./solid-color-picker.js";
|
|
10
7
|
import { Slider } from "../slider/slider.js";
|
|
11
8
|
import { NumberPicker } from "../number-picker/number-picker.js";
|
|
12
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
9
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-5bZ_yIMB.js";
|
|
13
10
|
import { Menu, MenuItem } from "../menu/menu.js";
|
|
14
|
-
import { BaseControl } from "../base-control/base-control.js";
|
|
15
11
|
import { MatrixAlign } from "../matrix-align/matrix-align.js";
|
|
16
12
|
import { Spacer } from "../spacer/spacer.js";
|
|
17
13
|
import { Toggle } from "../toggle/toggle.js";
|
|
14
|
+
import { OptionSelect } from "../option-select/option-select.js";
|
|
15
|
+
import { DraggableList } from "../draggable-list/draggable-list.js";
|
|
16
|
+
import { DraggableListItem } from "../draggable-list/draggable-list-item.js";
|
|
17
|
+
import { TriggeredPopover } from "../popover/popover.js";
|
|
18
18
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
19
19
|
function c(e, o = ",") {
|
|
20
20
|
let t = [], n = 0, i = 0;
|
|
@@ -213,7 +213,7 @@ const linearDirections = [
|
|
|
213
213
|
* @preserve
|
|
214
214
|
*/
|
|
215
215
|
const GradientEditor = (props) => {
|
|
216
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
216
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
217
217
|
const { value, onChange, hidden } = props;
|
|
218
218
|
const gradientData = useMemo(() => {
|
|
219
219
|
if ((value == null ? void 0 : value.startsWith("radial-gradient")) || (value == null ? void 0 : value.startsWith("repeating-radial-gradient"))) {
|
|
@@ -237,31 +237,33 @@ const GradientEditor = (props) => {
|
|
|
237
237
|
onChange(getGradientResult(data, gradientType));
|
|
238
238
|
};
|
|
239
239
|
const outputGradient = useMemo(() => getGradientResult(gradientData, gradientType), [gradientData, gradientType]);
|
|
240
|
+
const [squarePreview, setSquarePreview] = useState(false);
|
|
240
241
|
if (hidden) {
|
|
241
242
|
return null;
|
|
242
243
|
}
|
|
243
244
|
return /* @__PURE__ */ jsxs("div", { className: "es-uic-w-full es-uic-space-y-2.5", children: [
|
|
244
245
|
/* @__PURE__ */ jsx(
|
|
245
|
-
"
|
|
246
|
+
"button",
|
|
246
247
|
{
|
|
247
|
-
className:
|
|
248
|
-
|
|
248
|
+
className: clsx(
|
|
249
|
+
"es-uic-shadow-sm, es-uic-mx-auto es-uic-block es-uic-h-40 es-uic-cursor-pointer es-uic-rounded-lg es-uic-border es-uic-border-gray-300 es-uic-transition-[width]",
|
|
250
|
+
squarePreview ? "es-uic-w-40" : "es-uic-w-full"
|
|
251
|
+
),
|
|
252
|
+
style: { backgroundImage: outputGradient },
|
|
253
|
+
onClick: () => setSquarePreview((prev) => !prev),
|
|
254
|
+
"aria-label": __("Toggle preview size", "eightshift-ui-components")
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
/* @__PURE__ */ jsx(
|
|
258
|
+
OptionSelect,
|
|
259
|
+
{
|
|
260
|
+
"aria-label": __("Gradient type", "eightshift-ui-components"),
|
|
261
|
+
value: gradientType,
|
|
262
|
+
onChange: (value2) => onChange(getGradientResult({ stops: gradientData.stops }, value2)),
|
|
263
|
+
options: gradientTypes,
|
|
264
|
+
wrapperProps: { className: "es-uic-mx-auto es-uic-w-fit" }
|
|
249
265
|
}
|
|
250
266
|
),
|
|
251
|
-
/* @__PURE__ */ jsx(ButtonGroup, { className: "es-uic-w-full", children: gradientTypes.map(({ label, value: value2, icon }) => {
|
|
252
|
-
return /* @__PURE__ */ jsx(
|
|
253
|
-
ToggleButton,
|
|
254
|
-
{
|
|
255
|
-
selected: gradientType === value2,
|
|
256
|
-
onChange: () => onChange(getGradientResult({ stops: gradientData.stops }, value2)),
|
|
257
|
-
icon,
|
|
258
|
-
className: "es-uic-grow",
|
|
259
|
-
children: label
|
|
260
|
-
},
|
|
261
|
-
value2
|
|
262
|
-
);
|
|
263
|
-
}) }),
|
|
264
|
-
/* @__PURE__ */ jsx(Spacer, { size: "xs" }),
|
|
265
267
|
gradientType === "linear" && /* @__PURE__ */ jsxs("div", { className: "es-uic-flex es-uic-items-center es-uic-gap-1", children: [
|
|
266
268
|
/* @__PURE__ */ jsx(
|
|
267
269
|
NumberPicker,
|
|
@@ -317,41 +319,22 @@ const GradientEditor = (props) => {
|
|
|
317
319
|
] }),
|
|
318
320
|
gradientType === "radial" && /* @__PURE__ */ jsxs("div", { className: "es-uic-space-y-2", children: [
|
|
319
321
|
/* @__PURE__ */ jsx(
|
|
320
|
-
|
|
322
|
+
OptionSelect,
|
|
321
323
|
{
|
|
322
324
|
label: __("Shape", "eightshift-ui-components"),
|
|
323
325
|
icon: icons.genericShapesAlt,
|
|
324
326
|
inline: true,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
size: "large",
|
|
337
|
-
children: __("Circle", "eightshift-ui-components")
|
|
338
|
-
}
|
|
339
|
-
),
|
|
340
|
-
/* @__PURE__ */ jsx(
|
|
341
|
-
ToggleButton,
|
|
342
|
-
{
|
|
343
|
-
selected: gradientData.shape === "ellipse",
|
|
344
|
-
onChange: () => {
|
|
345
|
-
setGradientData({
|
|
346
|
-
...gradientData,
|
|
347
|
-
shape: "ellipse"
|
|
348
|
-
});
|
|
349
|
-
},
|
|
350
|
-
size: "large",
|
|
351
|
-
children: __("Ellipse", "eightshift-ui-components")
|
|
352
|
-
}
|
|
353
|
-
)
|
|
354
|
-
] })
|
|
327
|
+
options: [
|
|
328
|
+
{ label: __("Circle", "eightshift-ui-components"), value: "circle" },
|
|
329
|
+
{ label: __("Ellipse", "eightshift-ui-components"), value: "ellipse" }
|
|
330
|
+
],
|
|
331
|
+
value: gradientData.shape,
|
|
332
|
+
onChange: (value2) => {
|
|
333
|
+
setGradientData({
|
|
334
|
+
...gradientData,
|
|
335
|
+
shape: value2
|
|
336
|
+
});
|
|
337
|
+
}
|
|
355
338
|
}
|
|
356
339
|
),
|
|
357
340
|
/* @__PURE__ */ jsx(
|
|
@@ -390,6 +373,7 @@ const GradientEditor = (props) => {
|
|
|
390
373
|
angle: `${value2}deg`
|
|
391
374
|
});
|
|
392
375
|
},
|
|
376
|
+
size: "small",
|
|
393
377
|
suffix: "°",
|
|
394
378
|
className: "es-uic-grow"
|
|
395
379
|
}
|
|
@@ -425,7 +409,7 @@ const GradientEditor = (props) => {
|
|
|
425
409
|
),
|
|
426
410
|
/* @__PURE__ */ jsx(Spacer, { border: true }),
|
|
427
411
|
/* @__PURE__ */ jsx(
|
|
428
|
-
|
|
412
|
+
DraggableList,
|
|
429
413
|
{
|
|
430
414
|
items: gradientData == null ? void 0 : gradientData.stops,
|
|
431
415
|
onChange: (items) => {
|
|
@@ -437,23 +421,29 @@ const GradientEditor = (props) => {
|
|
|
437
421
|
}))
|
|
438
422
|
});
|
|
439
423
|
},
|
|
440
|
-
itemLabelProp: "title",
|
|
441
424
|
icon: icons.gradientStop,
|
|
442
425
|
label: __("Gradient stops", "eightshift-ui-components"),
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
426
|
+
actions: /* @__PURE__ */ jsx(
|
|
427
|
+
Button,
|
|
428
|
+
{
|
|
429
|
+
icon: icons.add,
|
|
430
|
+
size: "small",
|
|
431
|
+
onPress: () => {
|
|
432
|
+
setGradientData({
|
|
433
|
+
...gradientData,
|
|
434
|
+
stops: [...gradientData.stops, { color: "#000000FF" }]
|
|
435
|
+
});
|
|
436
|
+
},
|
|
437
|
+
"aria-label": __("Add stop", "eightshift-ui-components")
|
|
438
|
+
}
|
|
439
|
+
),
|
|
447
440
|
children: (item) => {
|
|
448
|
-
var _a2, _b2;
|
|
449
441
|
const { color, updateData, itemIndex } = item;
|
|
450
|
-
const defaultOffset = itemIndex * 100 / (gradientData.stops.length - 1);
|
|
451
|
-
const offset = `${((_b2 = (_a2 = gradientData.stops[itemIndex]) == null ? void 0 : _a2.offset) == null ? void 0 : _b2.value) ?? defaultOffset}%`;
|
|
452
442
|
return /* @__PURE__ */ jsx(
|
|
453
|
-
|
|
443
|
+
DraggableListItem,
|
|
454
444
|
{
|
|
455
445
|
label: sprintf(__("Stop %s", "eightshift-ui-components"), itemIndex + 1),
|
|
456
|
-
subtitle:
|
|
446
|
+
subtitle: color,
|
|
457
447
|
icon: /* @__PURE__ */ jsx(
|
|
458
448
|
$251c695a52d94a8d$export$cae13e90592f246a,
|
|
459
449
|
{
|
|
@@ -462,21 +452,46 @@ const GradientEditor = (props) => {
|
|
|
462
452
|
}
|
|
463
453
|
),
|
|
464
454
|
textValue: sprintf(__("Stop %s", "eightshift-ui-components"), itemIndex + 1),
|
|
465
|
-
children: /* @__PURE__ */
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
455
|
+
children: /* @__PURE__ */ jsxs(ButtonGroup, { children: [
|
|
456
|
+
/* @__PURE__ */ jsx(
|
|
457
|
+
TriggeredPopover,
|
|
458
|
+
{
|
|
459
|
+
triggerButtonIcon: icons.color,
|
|
460
|
+
triggerButtonProps: { size: "small" },
|
|
461
|
+
children: /* @__PURE__ */ jsx(
|
|
462
|
+
SolidColorPicker,
|
|
463
|
+
{
|
|
464
|
+
value: color,
|
|
465
|
+
onChange: (color2) => {
|
|
466
|
+
updateData({ color: color2 });
|
|
467
|
+
},
|
|
468
|
+
allowTransparency: true,
|
|
469
|
+
outputFormat: "rgba"
|
|
470
|
+
}
|
|
471
|
+
)
|
|
472
|
+
}
|
|
473
|
+
),
|
|
474
|
+
/* @__PURE__ */ jsx(
|
|
475
|
+
Button,
|
|
476
|
+
{
|
|
477
|
+
onPress: () => {
|
|
478
|
+
setGradientData({
|
|
479
|
+
...gradientData,
|
|
480
|
+
stops: gradientData.stops.filter((_, i) => i !== itemIndex)
|
|
481
|
+
});
|
|
482
|
+
},
|
|
483
|
+
icon: icons.trash,
|
|
484
|
+
size: "small",
|
|
485
|
+
"aria-label": __("Delete stop", "eightshift-ui-components"),
|
|
486
|
+
disabled: gradientData.stops.length <= 2
|
|
487
|
+
}
|
|
488
|
+
)
|
|
489
|
+
] })
|
|
476
490
|
}
|
|
477
491
|
);
|
|
478
492
|
}
|
|
479
|
-
}
|
|
493
|
+
},
|
|
494
|
+
(_m = gradientData == null ? void 0 : gradientData.stops) == null ? void 0 : _m.length
|
|
480
495
|
),
|
|
481
496
|
/* @__PURE__ */ jsx(
|
|
482
497
|
Slider,
|
|
@@ -485,7 +500,7 @@ const GradientEditor = (props) => {
|
|
|
485
500
|
min: 0,
|
|
486
501
|
max: 100,
|
|
487
502
|
step: 1,
|
|
488
|
-
value: (
|
|
503
|
+
value: (_n = gradientData == null ? void 0 : gradientData.stops) == null ? void 0 : _n.map(({ offset }, i) => {
|
|
489
504
|
if (!offset) {
|
|
490
505
|
return i * 100 / (gradientData.stops.length - 1);
|
|
491
506
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { forwardRef, useContext, createContext, useMemo, useRef, useState, useCallback } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, j as $64fa3d84918910a7$export$2881499e37b75b9a, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-
|
|
3
|
+
import { b as $4e85f108e88277b8$export$ebe63fadcdce34ed, c as $4e85f108e88277b8$export$44644b8a16031b5b, d as $4e85f108e88277b8$export$717b2c0a523a0b53 } from "../../RSPContexts-DQtGvvpM.js";
|
|
4
|
+
import { c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, j as $64fa3d84918910a7$export$2881499e37b75b9a, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4 } from "../../utils-DC-UMp1n.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
7
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, m as $7215afc6de606d6b$export$de79e2c695e052f3, d as $9ab94262bd0047c7$export$420e68273165f4ec, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, j as $c87311424ea30a05$export$fedb369cb70207f1, u as $c87311424ea30a05$export$a11b0059900ceec8 } from "../../focusSafely-
|
|
8
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../intlStrings-
|
|
6
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-Dg5Y_10S.js";
|
|
7
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, m as $7215afc6de606d6b$export$de79e2c695e052f3, d as $9ab94262bd0047c7$export$420e68273165f4ec, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, j as $c87311424ea30a05$export$fedb369cb70207f1, u as $c87311424ea30a05$export$a11b0059900ceec8 } from "../../focusSafely-DGZ4R5fj.js";
|
|
8
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f, b as $799cddbef784668f$export$4cde5df63f53f473, a as $3493a52097159720$exports } from "../../intlStrings-CkuKCPkT.js";
|
|
9
9
|
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "../../number-CHmNj-oR.js";
|
|
10
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "../../textSelection-
|
|
11
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-
|
|
12
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-
|
|
13
|
-
import { a as $46d819fcbaf35654$export$8f71654801c2f7cd } from "../../useFocusable-
|
|
14
|
-
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-
|
|
15
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-
|
|
16
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-
|
|
17
|
-
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-
|
|
18
|
-
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-
|
|
19
|
-
import { $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
20
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
21
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-
|
|
22
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, c as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidationState-
|
|
23
|
-
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 "../../useNumberFieldState-
|
|
10
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6 } from "../../textSelection-BLyBtNe2.js";
|
|
11
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-D2RG7TdI.js";
|
|
12
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-DJMtIgSL.js";
|
|
13
|
+
import { a as $46d819fcbaf35654$export$8f71654801c2f7cd } from "../../useFocusable-CQZyQp4q.js";
|
|
14
|
+
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-Clme2C36.js";
|
|
15
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BG_1RnbC.js";
|
|
16
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-Cwm_siat.js";
|
|
17
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-BZPezMV5.js";
|
|
18
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-CviphIN5.js";
|
|
19
|
+
import { $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-DWRQF0ro.js";
|
|
20
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BXvY41yE.js";
|
|
21
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-qjognpzK.js";
|
|
22
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, c as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidationState-DDC_nImg.js";
|
|
23
|
+
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 "../../useNumberFieldState-CVJOJnF1.js";
|
|
24
24
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
25
25
|
import { BaseControl } from "../base-control/base-control.js";
|
|
26
26
|
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
27
|
-
import {
|
|
27
|
+
import { TriggeredPopover } from "../popover/popover.js";
|
|
28
28
|
import { icons } from "../../icons/icons.js";
|
|
29
29
|
import { Spacer } from "../spacer/spacer.js";
|
|
30
30
|
const $e2b71ec1d6016406$export$c80c0ea2ca5cb846 = /* @__PURE__ */ createContext(null);
|
|
@@ -3,8 +3,8 @@ import { s as sprintf, _ as __ } from "../../default-i18n-BqwLkgZv.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";
|
|
6
|
-
import {
|
|
7
|
-
import { a as ButtonGroup } from "../../button-
|
|
6
|
+
import { TriggeredPopover } from "../popover/popover.js";
|
|
7
|
+
import { a as ButtonGroup } from "../../button-IxfzzzbP.js";
|
|
8
8
|
import { ToggleButton } from "../toggle-button/toggle-button.js";
|
|
9
9
|
import { Spacer } from "../spacer/spacer.js";
|
|
10
10
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { Switch } from "../toggle/switch.js";
|
|
5
5
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
6
|
-
import { B as Button } from "../../button-
|
|
6
|
+
import { B as Button } from "../../button-IxfzzzbP.js";
|
|
7
7
|
import { icons } from "../../icons/icons.js";
|
|
8
8
|
import { HStack } from "../layout/hstack.js";
|
|
9
9
|
import { BaseControl } from "../base-control/base-control.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-
|
|
3
|
-
import { B as Button } from "../../button-
|
|
2
|
+
import { a as $72e60046c03fbe42$export$e96fc9a8407faa6b } from "../../GridList-DjRnMEae.js";
|
|
3
|
+
import { B as Button } from "../../button-IxfzzzbP.js";
|
|
4
4
|
import { icons } from "../../icons/icons.js";
|
|
5
5
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
6
6
|
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $72e60046c03fbe42$export$a7bfbda1311ca015 } from "../../GridList-
|
|
3
|
-
import { $ as $d8f176866e6dc039$export$2cfc5be7a55829f6, a as $d8f176866e6dc039$export$62ed72bc21f6b8a6 } from "../../ListBox-
|
|
2
|
+
import { $ as $72e60046c03fbe42$export$a7bfbda1311ca015 } from "../../GridList-DjRnMEae.js";
|
|
3
|
+
import { $ as $d8f176866e6dc039$export$2cfc5be7a55829f6, a as $d8f176866e6dc039$export$62ed72bc21f6b8a6 } from "../../ListBox-DTKMdjQC.js";
|
|
4
4
|
import { useId, useEffect } from "react";
|
|
5
5
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
6
6
|
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
@@ -2,12 +2,12 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
4
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
5
|
-
import { B as Button } from "../../button-
|
|
5
|
+
import { B as Button } from "../../button-IxfzzzbP.js";
|
|
6
6
|
import { icons } from "../../icons/icons.js";
|
|
7
7
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
8
8
|
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
9
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
10
|
-
import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-
|
|
9
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BXvY41yE.js";
|
|
10
|
+
import { $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "../../FocusScope-BjM5iOQC.js";
|
|
11
11
|
/**
|
|
12
12
|
* A component that allows hiding content in an expandable panel, to declutter the UI.
|
|
13
13
|
*
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnimatedVisibility } from "./animated-visibility/animated-visibility.js";
|
|
2
2
|
import { BaseControl } from "./base-control/base-control.js";
|
|
3
3
|
import { BreakpointPreview } from "./breakpoint-preview/breakpoint-preview.js";
|
|
4
|
-
import { B, a } from "../button-
|
|
4
|
+
import { B, a } from "../button-IxfzzzbP.js";
|
|
5
5
|
import { Checkbox } from "./checkbox/checkbox.js";
|
|
6
6
|
import { ComponentToggle } from "./component-toggle/component-toggle.js";
|
|
7
7
|
import { ContainerPanel } from "./container-panel/container-panel.js";
|
|
@@ -24,7 +24,7 @@ import { MediaPlaceholder } from "./placeholders/media-placeholder.js";
|
|
|
24
24
|
import { Menu, MenuItem, MenuSection, MenuSeparator, SubMenuItem } from "./menu/menu.js";
|
|
25
25
|
import { Notice } from "./notice/notice.js";
|
|
26
26
|
import { NumberPicker } from "./number-picker/number-picker.js";
|
|
27
|
-
import {
|
|
27
|
+
import { Popover, TriggeredPopover } from "./popover/popover.js";
|
|
28
28
|
import { RadioButton, RadioButtonGroup } from "./radio/radio.js";
|
|
29
29
|
import { Repeater } from "./repeater/repeater.js";
|
|
30
30
|
import { RepeaterItem } from "./repeater/repeater-item.js";
|
|
@@ -33,6 +33,7 @@ import { ResponsiveLegacy } from "./responsive/responsive-legacy.js";
|
|
|
33
33
|
import { ResponsivePreview } from "./responsive-preview/responsive-preview.js";
|
|
34
34
|
import { AsyncMultiSelect } from "./select/async-multi-select.js";
|
|
35
35
|
import { AsyncSelect } from "./select/async-single-select.js";
|
|
36
|
+
import { Modal } from "./modal/modal.js";
|
|
36
37
|
import { MultiSelect } from "./select/multi-select.js";
|
|
37
38
|
import { RSClearIndicator, RSDropdownIndicator, RSMultiValue, RSMultiValueContainer, RSMultiValueLabel, RSMultiValueRemove, RSOption, RSSingleValue } from "./select/react-select-component-wrappers.js";
|
|
38
39
|
import { OptionSelect } from "./option-select/option-select.js";
|
|
@@ -45,7 +46,7 @@ import { Tab, TabList, TabPanel, Tabs } from "./tabs/tabs.js";
|
|
|
45
46
|
import { Toggle } from "./toggle/toggle.js";
|
|
46
47
|
import { Switch } from "./toggle/switch.js";
|
|
47
48
|
import { ToggleButton } from "./toggle-button/toggle-button.js";
|
|
48
|
-
import { D, T
|
|
49
|
+
import { D, T } from "../tooltip-DSk8I1SO.js";
|
|
49
50
|
import { VStack } from "./layout/vstack.js";
|
|
50
51
|
export {
|
|
51
52
|
AnimatedVisibility,
|
|
@@ -79,13 +80,14 @@ export {
|
|
|
79
80
|
MenuItem,
|
|
80
81
|
MenuSection,
|
|
81
82
|
MenuSeparator,
|
|
83
|
+
Modal,
|
|
82
84
|
MultiSelect,
|
|
83
85
|
Notice,
|
|
84
86
|
NumberPicker,
|
|
85
87
|
OptionSelect,
|
|
86
88
|
OptionsPanel,
|
|
87
89
|
OptionsPanelSection,
|
|
88
|
-
|
|
90
|
+
Popover,
|
|
89
91
|
RSClearIndicator,
|
|
90
92
|
RSDropdownIndicator,
|
|
91
93
|
RSMultiValue,
|
|
@@ -114,7 +116,7 @@ export {
|
|
|
114
116
|
Tabs,
|
|
115
117
|
Toggle,
|
|
116
118
|
ToggleButton,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
T as Tooltip,
|
|
120
|
+
TriggeredPopover,
|
|
119
121
|
VStack
|
|
120
122
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
3
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
4
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-
|
|
2
|
+
import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-DWRQF0ro.js";
|
|
3
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BXvY41yE.js";
|
|
4
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-DC-UMp1n.js";
|
|
5
5
|
import React__default, { forwardRef, createContext, useRef, useState, useCallback } from "react";
|
|
6
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-
|
|
7
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-
|
|
8
|
-
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-
|
|
6
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-DGZ4R5fj.js";
|
|
7
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-Dg5Y_10S.js";
|
|
8
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-CviphIN5.js";
|
|
9
9
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
|
|
10
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-
|
|
10
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-qjognpzK.js";
|
|
11
11
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
12
12
|
import { BaseControl } from "../base-control/base-control.js";
|
|
13
13
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1, a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
3
|
-
import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-
|
|
4
|
-
import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
5
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
6
|
-
import { n as $ff5963eb1fccf552$export$e08e3b67e392101e, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-
|
|
7
|
-
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-
|
|
2
|
+
import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1, a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-DTARR6Ff.js";
|
|
3
|
+
import { $ as $a049562f99e7db0e$export$f9c6924e160136d1, a as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-BQu67pVS.js";
|
|
4
|
+
import { b as $2d73ec29415bd339$export$712718f7aec83d5, $ as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-DWRQF0ro.js";
|
|
5
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447, $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-BXvY41yE.js";
|
|
6
|
+
import { n as $ff5963eb1fccf552$export$e08e3b67e392101e, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, c as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-DC-UMp1n.js";
|
|
7
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-CviphIN5.js";
|
|
8
8
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
|
|
9
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-
|
|
9
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-qjognpzK.js";
|
|
10
10
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
11
11
|
import React__default, { useReducer, useRef, useEffect, forwardRef, createContext, useMemo, useState } from "react";
|
|
12
|
-
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-
|
|
13
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-
|
|
14
|
-
import { $ as $13c3c67164f4d5be$export$4c260019440d418f, B as Button } from "../../button-
|
|
12
|
+
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../../focusSafely-DGZ4R5fj.js";
|
|
13
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-Cwm_siat.js";
|
|
14
|
+
import { $ as $13c3c67164f4d5be$export$4c260019440d418f, B as Button } from "../../button-IxfzzzbP.js";
|
|
15
15
|
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|
|
16
16
|
import { icons } from "../../icons/icons.js";
|
|
17
17
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
18
18
|
import { Spacer } from "../spacer/spacer.js";
|
|
19
|
-
import { T as Tooltip } from "../../tooltip-
|
|
19
|
+
import { T as Tooltip } from "../../tooltip-DSk8I1SO.js";
|
|
20
20
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
21
21
|
import { BaseControl } from "../base-control/base-control.js";
|
|
22
22
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
23
|
-
import {
|
|
23
|
+
import { Popover } from "../popover/popover.js";
|
|
24
24
|
import { a as $0d86e9c8f07f9a7b$export$79c0c687a5963b0a } from "../../useListData-BpYQj7kK.js";
|
|
25
25
|
var $03c9a1a10de12f06$exports = {};
|
|
26
26
|
$03c9a1a10de12f06$exports = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { b as $eed445e0843c11d0$export$41f133550aa26f48, c as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-
|
|
2
|
+
import { b as $eed445e0843c11d0$export$41f133550aa26f48, c as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-DTKMdjQC.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
5
|
import { _ as __ } from "../../default-i18n-BqwLkgZv.js";
|