@eightshift/ui-components 7.2.0 → 7.3.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/Autocomplete-pLMPWMFq.js +451 -0
- package/dist/Button-Biwg7zwt.js +223 -0
- package/dist/Dialog-C1sh8jbh.js +2474 -0
- package/dist/{Disclosure-NYWFw9RJ.js → Disclosure-B_SHgiUz.js} +50 -51
- package/dist/FocusScope-lGkM8AO8.js +734 -0
- package/dist/Form-BxIJCHYd.js +5 -0
- package/dist/Heading-B2EsUuu6.js +16 -0
- package/dist/{Hidden-8TB37dpK.js → Hidden-DYY00jLm.js} +10 -10
- package/dist/I18nProvider-Cm6dj5jY.js +93 -0
- package/dist/Label-B1TkoVOG.js +17 -0
- package/dist/ListBox-BquE0m8z.js +584 -0
- package/dist/{NumberFormatter-m5VW6MTK.js → NumberFormatter-JHF0Tadk.js} +24 -26
- package/dist/PortalProvider-BYcv24il.js +13 -0
- package/dist/RadioGroup-BxjLooWU.js +324 -0
- package/dist/SearchField-BkAU0HLm.js +322 -0
- package/dist/SelectionIndicator-Bx_EYBXD.js +13 -0
- package/dist/{Slider-DW1RuMVp.js → Slider-DSv6fyZ6.js} +321 -363
- package/dist/Text-C8pfwn0W.js +16 -0
- package/dist/{VisuallyHidden-CfsnJHZb.js → VisuallyHidden-KcXlGa5p.js} +12 -12
- package/dist/{animation-Bd2peown.js → animation-BJ-2VKdB.js} +12 -12
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-D9cbyHeZ.js → button-CawAzlko.js} +21 -73
- package/dist/{checkbox-BO5RZmO8.js → checkbox-t7VrqXv2.js} +59 -62
- package/dist/{color-swatch-D2ZBkuTt.js → color-swatch-gU09x9Ga.js} +417 -414
- package/dist/components/base-control/base-control.js +2 -2
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +2 -2
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +5 -5
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/index.js +15 -15
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +5 -5
- package/dist/components/menu/menu.js +11 -11
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/options-panel/options-panel.js +3 -3
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +6 -6
- package/dist/components/portal-provider/portal-provider.js +2 -2
- package/dist/components/radio/radio.js +9 -9
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +3 -3
- package/dist/components/responsive/mini-responsive.js +6 -6
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +5 -5
- package/dist/components/responsive-preview/responsive-preview.js +2 -2
- package/dist/components/select/async-multi-select.js +27 -26
- package/dist/components/select/async-select.js +27 -26
- package/dist/components/select/multi-select.js +33 -32
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +33 -32
- package/dist/components/select/styles.js +1 -1
- package/dist/components/slider/column-config-slider.js +8 -8
- package/dist/components/slider/slider.js +8 -8
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-CTDVJ4zd.js → draggable-Cxv-OueQ.js} +1 -1
- package/dist/filterDOMProps-BfW758QC.js +69 -0
- package/dist/{gradient-editor-xfxA_s9a.js → gradient-editor-CInqVF8v.js} +6 -11
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +15 -15
- package/dist/{input-field-_OCWbftf.js → input-field-BdFrxQ-R.js} +46 -47
- package/dist/{jsx-svg-BRJ4n3pD.js → jsx-svg-DT1SBWuP.js} +6 -12
- package/dist/keyboard-CT41mQzR.js +55 -0
- package/dist/{link-input-Bh8G7Urm.js → link-input-BDFhSSvH.js} +324 -356
- package/dist/{modal-snrElwty.js → modal-CJDaBdPh.js} +100 -92
- package/dist/{number-ZZIxJukn.js → number-MWRvGfyE.js} +10 -10
- package/dist/{number-picker-Dhtx4409.js → number-picker-BrxrB-xq.js} +43 -42
- package/dist/{shared-BiWZjrGF.js → shared-CI4kcnm8.js} +482 -502
- package/dist/{smart-image-CBNbxJ57.js → smart-image-eGdMu9s9.js} +2 -2
- package/dist/{solid-color-picker-DukArNH-.js → solid-color-picker-DXgX-OAm.js} +926 -935
- package/dist/{switch-DmsvyQPa.js → switch-DNHFoCCx.js} +28 -28
- package/dist/{tabs-DaIUEc0g.js → tabs-C2tPOEYr.js} +150 -153
- package/dist/textSelection-BhX_2zV9.js +45 -0
- package/dist/{toggle-button-BlzUGfGy.js → toggle-button-DYDp11rq.js} +35 -35
- package/dist/{tooltip-BzJzYlcc.js → tooltip-C-hT6tN9.js} +162 -162
- package/dist/{useAsyncList-BNzwKoX4.js → useAsyncList-DsOh1xIx.js} +54 -74
- package/dist/{useButton-ra1ZSZ4z.js → useButton-BMZc4fTX.js} +11 -11
- package/dist/{SelectionManager-B8lLv6Ue.js → useCollection-CBVYSuGz.js} +1689 -1777
- package/dist/{useEvent-DkZVfgsS.js → useEvent-ypAU33vv.js} +5 -5
- package/dist/useField-BXf__jxy.js +32 -0
- package/dist/{useFilter-OiMnf6sb.js → useFilter-CfKEbIwL.js} +5 -5
- package/dist/{useFocusRing-DuYL4cdO.js → useFocusRing-BgYY-7ko.js} +23 -23
- package/dist/useFormReset-BuMc_O4y.js +17 -0
- package/dist/{FieldError-BWDbP5Db.js → useFormValidation-BcME9D0E.js} +63 -66
- package/dist/useHover-lyApu3ba.js +975 -0
- package/dist/{useLabel-2EohW5l6.js → useLabel-Rv8cIIKk.js} +8 -8
- package/dist/{useLabels-B2p7RXi5.js → useLabels-xOYtkA8o.js} +5 -5
- package/dist/useListState-u6DfeXHi.js +135 -0
- package/dist/{useLocalizedStringFormatter-Dv2diN3k.js → useLocalizedStringFormatter-CR-bmorj.js} +45 -45
- package/dist/{useNumberField-2xbi3jRV.js → useNumberFieldState-xL-ecwNz.js} +665 -619
- package/dist/useNumberFormatter-CR1PAFPG.js +10 -0
- package/dist/useOverlayTriggerState-AeCx45Gv.js +551 -0
- package/dist/usePress-Dnx5rBoD.js +593 -0
- package/dist/useTextField-BW3ZwGyz.js +159 -0
- package/dist/{useToggle-ecIirvIM.js → useToggle-BF5wptMP.js} +19 -20
- package/dist/useToggleState-D5P01lch.js +22 -0
- package/dist/useToolbar-BT25-MJg.js +55 -0
- package/dist/utilities/debounce-throttle.js +1 -1
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +3 -3
- package/dist/{utils-B_uiqNa4.js → utils-JFcCNFzy.js} +121 -122
- package/package.json +18 -18
- package/dist/Button-h6xF_WrP.js +0 -225
- package/dist/Dialog-i5VLQw1o.js +0 -2488
- package/dist/FocusScope-CgwbGOBB.js +0 -746
- package/dist/Form-DTMkbrQY.js +0 -5
- package/dist/Heading-Hol-wS_B.js +0 -16
- package/dist/Input-BURqyJXW.js +0 -161
- package/dist/Label-DFXXxMKY.js +0 -17
- package/dist/ListBox-B21SgugS.js +0 -601
- package/dist/OverlayArrow-BoloUPQM.js +0 -573
- package/dist/PortalProvider-DinZZCKX.js +0 -14
- package/dist/RSPContexts-C_z0bI8W.js +0 -12
- package/dist/RadioGroup-BwlGtCja.js +0 -329
- package/dist/SearchField-DR_I4_yn.js +0 -765
- package/dist/SelectionIndicator-31L6EI9F.js +0 -13
- package/dist/Text-O6VBBDlP.js +0 -16
- package/dist/context-C-XNeJ_l.js +0 -93
- package/dist/filterDOMProps-_2_3GD-K.js +0 -69
- package/dist/textSelection-Dv6WPj0Z.js +0 -45
- package/dist/useField-D0WrzR2F.js +0 -32
- package/dist/useFormReset-DdkykzAn.js +0 -18
- package/dist/useHover-qaMm3XFO.js +0 -982
- package/dist/useListState-CD_5vfyy.js +0 -147
- package/dist/useNumberFormatter-C2Cm2mNj.js +0 -10
- package/dist/usePress-ZP1TjkFf.js +0 -678
- package/dist/useToggleState-IIDbiKPl.js +0 -23
- /package/dist/{List-DWlgW2Ex.js → List---tsVJlI.js} +0 -0
- /package/dist/{build-module-Bsx62nlm.js → build-module-K6vi4xE0.js} +0 -0
- /package/dist/{debounce-throttle-DXxSAKpq.js → debounce-throttle-LSPAPFtq.js} +0 -0
- /package/dist/{dist-2gkv7_1U.js → dist-jw8wvxoG.js} +0 -0
- /package/dist/{es-dash-HqXWZZ3_.js → es-dash-BuShf_ht.js} +0 -0
- /package/dist/{utilities-lwX686oD.js → utilities-DV0KKJNR.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import { t as $
|
|
2
|
+
import { t as $efe09c6d1c304b50$export$5f1af8db9871e1d6 } from "../../Text-C8pfwn0W.js";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region lib/components/base-control/base-control.jsx
|
|
@@ -64,7 +64,7 @@ var BaseControl = (props) => {
|
|
|
64
64
|
children
|
|
65
65
|
}),
|
|
66
66
|
!inline && (!Array.isArray(children) || children.filter(Boolean).length < 2) && children,
|
|
67
|
-
help && jsx($
|
|
67
|
+
help && jsx($efe09c6d1c304b50$export$5f1af8db9871e1d6, {
|
|
68
68
|
className: clsx("es:inline-block es:text-sm es:text-secondary-500 es:mt-1.5 es:font-variation-[\"wdth\"_66,\"wght\"_325,\"slnt\"_-4]", !noHelpInset && "es:pl-1"),
|
|
69
69
|
slot: "description",
|
|
70
70
|
children: help
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import { t as cva } from "../../dist-
|
|
2
|
+
import { t as cva } from "../../dist-jw8wvxoG.js";
|
|
3
3
|
import { cloneElement, forwardRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region lib/components/base-control/container.jsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import { f as upperFirst } from "../../es-dash-
|
|
2
|
+
import { f as upperFirst } from "../../es-dash-BuShf_ht.js";
|
|
3
3
|
import { Fragment } from "react";
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region lib/components/breakpoint-preview/breakpoint-preview.jsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ButtonGroup, t as Button } from "../../button-
|
|
1
|
+
import { n as ButtonGroup, t as Button } from "../../button-CawAzlko.js";
|
|
2
2
|
export { Button, ButtonGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Checkbox } from "../../checkbox-
|
|
1
|
+
import { t as Checkbox } from "../../checkbox-t7VrqXv2.js";
|
|
2
2
|
export { Checkbox };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import { t as ColorSwatch } from "../../color-swatch-
|
|
2
|
+
import { t as ColorSwatch } from "../../color-swatch-gU09x9Ga.js";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
|
-
import { t as __ } from "../../build-module-
|
|
5
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
6
6
|
import { colorPickerFill } from "../../icons/ui-icons/color-picker-fill.js";
|
|
7
7
|
import { colorPickerListMarker } from "../../icons/ui-icons/color-picker-list-marker.js";
|
|
8
8
|
import { colorPickerText } from "../../icons/ui-icons/color-picker-text.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ColorSwatch } from "../../color-swatch-
|
|
1
|
+
import { t as ColorSwatch } from "../../color-swatch-gU09x9Ga.js";
|
|
2
2
|
export { ColorSwatch };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as GradientEditor } from "../../gradient-editor-
|
|
1
|
+
import { t as GradientEditor } from "../../gradient-editor-CInqVF8v.js";
|
|
2
2
|
export { GradientEditor };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SolidColorPicker } from "../../solid-color-picker-
|
|
1
|
+
import { t as SolidColorPicker } from "../../solid-color-picker-DXgX-OAm.js";
|
|
2
2
|
export { SolidColorPicker };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
2
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { t as Switch } from "../../switch-DNHFoCCx.js";
|
|
4
|
+
import { t as ToggleButton } from "../../toggle-button-DYDp11rq.js";
|
|
5
|
+
import { n as ButtonGroup } from "../../button-CawAzlko.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
|
-
import { r as sprintf, t as __ } from "../../build-module-
|
|
7
|
+
import { r as sprintf, t as __ } from "../../build-module-K6vi4xE0.js";
|
|
8
8
|
import { componentGeneric } from "../../icons/ui-icons/component-generic.js";
|
|
9
9
|
import { dropdownCaretAlt } from "../../icons/ui-icons/dropdown-caret-alt.js";
|
|
10
10
|
import { Expandable } from "../expandable/expandable.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
2
|
+
import { n as $a3e16eab0ea4036c$export$feabaa331e1d464c, t as $a3e16eab0ea4036c$export$74a362b31437ec83 } from "../../Disclosure-B_SHgiUz.js";
|
|
3
|
+
import { t as Switch } from "../../switch-DNHFoCCx.js";
|
|
4
|
+
import { t as Button } from "../../button-CawAzlko.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { chevronDown } from "../../icons/ui-icons/chevron-down.js";
|
|
7
7
|
import { HStack } from "../layout/hstack.js";
|
|
@@ -51,7 +51,7 @@ var ContainerPanel = (props) => {
|
|
|
51
51
|
const shouldUseDisclosure = closable || typeof use !== "undefined";
|
|
52
52
|
let isExpanded = use;
|
|
53
53
|
if (closable) isExpanded = typeof use !== "undefined" ? use && open : open;
|
|
54
|
-
return jsx($
|
|
54
|
+
return jsx($a3e16eab0ea4036c$export$74a362b31437ec83, {
|
|
55
55
|
isExpanded: shouldUseDisclosure ? isExpanded : true,
|
|
56
56
|
className: "es:block",
|
|
57
57
|
children: jsxs(BaseControl, {
|
|
@@ -82,7 +82,7 @@ var ContainerPanel = (props) => {
|
|
|
82
82
|
labelContainerClassName: clsx((closable || onUseChange) && "es:pl-4 es:pr-3 es:min-h-12", !(closable || onUseChange) && "es:mt-3 es:mb-3", (closable || onUseChange) && "es:mb-0!", "es:pb-0!"),
|
|
83
83
|
controlContainerClassName: "es:px-4",
|
|
84
84
|
labelClassName: clsx(!noLabelInset && "es:px-1", accentLabel && "es:text-accent-800 es:any-icon:text-accent-700", accentIcon && "es:any-icon:text-accent-700", !accentLabel && "es:text-surface-700"),
|
|
85
|
-
children: [!shouldUseDisclosure && children, shouldUseDisclosure && jsx($
|
|
85
|
+
children: [!shouldUseDisclosure && children, shouldUseDisclosure && jsx($a3e16eab0ea4036c$export$feabaa331e1d464c, {
|
|
86
86
|
className: clsx("es:h-(--disclosure-panel-height) es:overflow-hidden", "es:opacity-0 es:-translate-y-2", isExpanded && "es:opacity-100 es:translate-y-0", "es:transition-plus-h"),
|
|
87
87
|
children: jsx("div", {
|
|
88
88
|
className: "es:space-y-2 es:px-4",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import "../../build-module-
|
|
2
|
+
import "../../build-module-K6vi4xE0.js";
|
|
3
3
|
import { reorderGrabberV } from "../../icons/ui-icons/reorder-grabber-v.js";
|
|
4
4
|
import { DraggableContext } from "./draggable-context.js";
|
|
5
5
|
import { useContext } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Draggable } from "../../draggable-
|
|
1
|
+
import { t as Draggable } from "../../draggable-Cxv-OueQ.js";
|
|
2
2
|
export { Draggable };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
2
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
3
|
-
import "../../build-module-
|
|
3
|
+
import "../../build-module-K6vi4xE0.js";
|
|
4
4
|
import { reorderGrabberV } from "../../icons/ui-icons/reorder-grabber-v.js";
|
|
5
5
|
import { HStack } from "../layout/hstack.js";
|
|
6
6
|
import { cloneElement } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
2
|
import { BaseControl } from "../base-control/base-control.js";
|
|
3
|
-
import { t as __ } from "../../build-module-
|
|
3
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
4
4
|
import { Container, ContainerGroup } from "../base-control/container.js";
|
|
5
|
-
import { n as arrayMove, r as arrayRemove, t as List } from "../../List
|
|
5
|
+
import { n as arrayMove, r as arrayRemove, t as List } from "../../List---tsVJlI.js";
|
|
6
6
|
import { useCallback, useMemo } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region lib/components/draggable-list/draggable-list.jsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
2
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
3
|
-
import {
|
|
4
|
-
import { n as $
|
|
5
|
-
import {
|
|
3
|
+
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-B1TkoVOG.js";
|
|
4
|
+
import { n as $a3e16eab0ea4036c$export$feabaa331e1d464c, t as $a3e16eab0ea4036c$export$74a362b31437ec83 } from "../../Disclosure-B_SHgiUz.js";
|
|
5
|
+
import { t as Button } from "../../button-CawAzlko.js";
|
|
6
6
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
7
|
-
import { t as __ } from "../../build-module-
|
|
7
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
8
8
|
import { dropdownCaretAlt } from "../../icons/ui-icons/dropdown-caret-alt.js";
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -45,7 +45,7 @@ var Expandable = (props) => {
|
|
|
45
45
|
const [isOpen, setIsOpen] = React.useState(open);
|
|
46
46
|
if (isOpen && disabled) setIsOpen(false);
|
|
47
47
|
if (hidden) return null;
|
|
48
|
-
return jsxs($
|
|
48
|
+
return jsxs($a3e16eab0ea4036c$export$74a362b31437ec83, {
|
|
49
49
|
isExpanded: isOpen,
|
|
50
50
|
className: clsx("es:text-sm", !standalone && "es:group", className),
|
|
51
51
|
...other,
|
|
@@ -58,7 +58,7 @@ var Expandable = (props) => {
|
|
|
58
58
|
label,
|
|
59
59
|
subtitle,
|
|
60
60
|
className: clsx("es:grow", labelClassName),
|
|
61
|
-
as: $
|
|
61
|
+
as: $43a3b93638fe5db9$export$b04be29aa201d4f5
|
|
62
62
|
}),
|
|
63
63
|
actions && !keepActionsOnExpand && jsx(AnimatedVisibility, {
|
|
64
64
|
visible: !isOpen,
|
|
@@ -95,7 +95,7 @@ var Expandable = (props) => {
|
|
|
95
95
|
size: "small"
|
|
96
96
|
})
|
|
97
97
|
]
|
|
98
|
-
}), jsx($
|
|
98
|
+
}), jsx($a3e16eab0ea4036c$export$feabaa331e1d464c, {
|
|
99
99
|
className: clsx("es:h-(--disclosure-panel-height)", "es:opacity-0 es:-translate-y-2", !isOpen && "es:rounded-t-xl", isOpen && "es:rounded-t-md es:opacity-100 es:*:motion-preset-fade-sm es:*:motion-delay-75 es:translate-y-1 es:mb-1", "es:origin-top", "es:bg-white es:rounded-b-xl es:inset-ring es:inset-ring-surface-200", "es:inset-shadow-sm es:inset-shadow-accent-600/5", !flat && "es:shadow-xs es:shadow-black/5", "es:transition-plus-h", contentClassName),
|
|
100
100
|
children: jsx("div", {
|
|
101
101
|
className: clsx("es:flex es:flex-col es:gap-2.5 es:px-3 es:py-3.5", contentWrapClassName),
|
package/dist/components/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AnimatedVisibility } from "./animated-visibility/animated-visibility.js";
|
|
2
|
-
import { t as LinkInput } from "../link-input-
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
2
|
+
import { t as LinkInput } from "../link-input-BDFhSSvH.js";
|
|
3
|
+
import { t as Checkbox } from "../checkbox-t7VrqXv2.js";
|
|
4
|
+
import { t as SolidColorPicker } from "../solid-color-picker-DXgX-OAm.js";
|
|
5
|
+
import { t as ColorSwatch } from "../color-swatch-gU09x9Ga.js";
|
|
6
|
+
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "../tabs-C2tPOEYr.js";
|
|
7
|
+
import { t as Modal } from "../modal-CJDaBdPh.js";
|
|
8
|
+
import { t as NumberPicker } from "../number-picker-BrxrB-xq.js";
|
|
9
|
+
import { t as Switch } from "../switch-DNHFoCCx.js";
|
|
10
|
+
import { t as InputField } from "../input-field-BdFrxQ-R.js";
|
|
11
|
+
import { t as ToggleButton } from "../toggle-button-DYDp11rq.js";
|
|
12
|
+
import { n as ButtonGroup, t as Button } from "../button-CawAzlko.js";
|
|
13
|
+
import { n as Tooltip, t as DecorativeTooltip } from "../tooltip-C-hT6tN9.js";
|
|
14
14
|
import { RichLabel } from "./rich-label/rich-label.js";
|
|
15
15
|
import { BaseControl } from "./base-control/base-control.js";
|
|
16
16
|
import { BreakpointPreview } from "./breakpoint-preview/breakpoint-preview.js";
|
|
@@ -27,12 +27,12 @@ import { Container, ContainerGroup } from "./base-control/container.js";
|
|
|
27
27
|
import { DraggableList } from "./draggable-list/draggable-list.js";
|
|
28
28
|
import { DraggableListItem, DraggableListItemHandle } from "./draggable-list/draggable-list-item.js";
|
|
29
29
|
import { DraggableContext } from "./draggable/draggable-context.js";
|
|
30
|
-
import { t as Draggable } from "../draggable-
|
|
30
|
+
import { t as Draggable } from "../draggable-Cxv-OueQ.js";
|
|
31
31
|
import { DraggableHandle } from "./draggable/draggable-handle.js";
|
|
32
|
-
import { t as SmartImage } from "../smart-image-
|
|
32
|
+
import { t as SmartImage } from "../smart-image-eGdMu9s9.js";
|
|
33
33
|
import { FilePickerShell } from "./placeholders/file-picker-shell.js";
|
|
34
34
|
import { FilePlaceholder } from "./placeholders/file-placeholder.js";
|
|
35
|
-
import { t as GradientEditor } from "../gradient-editor-
|
|
35
|
+
import { t as GradientEditor } from "../gradient-editor-CInqVF8v.js";
|
|
36
36
|
import { Slider } from "./slider/slider.js";
|
|
37
37
|
import { MatrixAlign } from "./matrix-align/matrix-align.js";
|
|
38
38
|
import { Toggle } from "./toggle/toggle.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as InputField } from "../../input-field-
|
|
1
|
+
import { t as InputField } from "../../input-field-BdFrxQ-R.js";
|
|
2
2
|
export { InputField };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as LinkInput } from "../../link-input-
|
|
1
|
+
import { t as LinkInput } from "../../link-input-BDFhSSvH.js";
|
|
2
2
|
export { LinkInput };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import { n as $
|
|
2
|
+
import { n as $fe21c36db05242bb$export$d7b12c4107be0d61, t as $fe21c36db05242bb$export$a98f0dcb43a68a25 } from "../../RadioGroup-BxjLooWU.js";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
|
-
import { f as upperFirst, t as camelCase } from "../../es-dash-
|
|
6
|
-
import { t as __ } from "../../build-module-
|
|
5
|
+
import { f as upperFirst, t as camelCase } from "../../es-dash-BuShf_ht.js";
|
|
6
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
7
7
|
import { Icon } from "../../icons/icon.js";
|
|
8
8
|
import { TriggeredPopover } from "../popover/popover.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -107,13 +107,13 @@ var MatrixAlign = (props) => {
|
|
|
107
107
|
wrapperClassName: "es:from-surface-300/30 es:to-surface-300/30 es:p-0.5",
|
|
108
108
|
children: [jsx("div", {
|
|
109
109
|
className: "es:bg-accent-50/60 es:inset-ring es:inset-ring-accent-800/3 es:rounded-t-xl es:rounded-b-md",
|
|
110
|
-
children: jsx($
|
|
110
|
+
children: jsx($fe21c36db05242bb$export$a98f0dcb43a68a25, {
|
|
111
111
|
"aria-label": tooltip,
|
|
112
112
|
value,
|
|
113
113
|
onChange,
|
|
114
114
|
orientation: "horizontal",
|
|
115
115
|
className: clsx("es:grid es:gap-1 es:w-fit es:mx-auto", size === "2x2" && "es:grid-cols-2 es:p-5", size === "3x3" && "es:grid-cols-3 es:p-3"),
|
|
116
|
-
children: sizeOptions.map(({ value: itemValue, label }) => jsx($
|
|
116
|
+
children: sizeOptions.map(({ value: itemValue, label }) => jsx($fe21c36db05242bb$export$d7b12c4107be0d61, {
|
|
117
117
|
"aria-label": label,
|
|
118
118
|
autoFocus: itemValue === value,
|
|
119
119
|
value: itemValue,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as Button } from "../../button-
|
|
2
|
+
import { S as $e28ab3efe3e87743$export$1ff3c3f08ae963c0, a as $49319ee1285aa241$export$2ce376c2cc3355c8, c as $49319ee1285aa241$export$ecabc99eeffab7ca, i as $49319ee1285aa241$export$27d2ad3c5815583e, o as $49319ee1285aa241$export$4b1545b4f2016d26, s as $49319ee1285aa241$export$d9b273488cd8ce6f } from "../../Dialog-C1sh8jbh.js";
|
|
3
|
+
import { t as Button } from "../../button-CawAzlko.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
|
-
import { t as __ } from "../../build-module-
|
|
5
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
6
6
|
import { dummySpacer } from "../../icons/ui-icons/dummy-spacer.js";
|
|
7
7
|
import { chevronRight } from "../../icons/ui-icons/chevron-right.js";
|
|
8
8
|
import { hamburgerMenu } from "../../icons/ui-icons/hamburger-menu.js";
|
|
@@ -83,7 +83,7 @@ var Menu = (props) => {
|
|
|
83
83
|
if (openOnLongPress) additionalProps.trigger = "longPress";
|
|
84
84
|
const hasSubmenuItems = Array.isArray(children) ? children.some((child) => child?.type?.displayName === "SubMenuItem") : children?.type?.displayName === "SubMenuItem";
|
|
85
85
|
let { className: popoverClassName, wrapperClassName: popoverWrapperClassName, ...otherPopoverProps } = popoverProps || {};
|
|
86
|
-
return jsxs($
|
|
86
|
+
return jsxs($49319ee1285aa241$export$27d2ad3c5815583e, {
|
|
87
87
|
...props,
|
|
88
88
|
...additionalProps,
|
|
89
89
|
children: [jsx(Button, {
|
|
@@ -101,7 +101,7 @@ var Menu = (props) => {
|
|
|
101
101
|
...otherPopoverProps,
|
|
102
102
|
className: clsx("es:p-1.5 es:any-focus:outline-hidden", !manualWidth && "es:w-56", manualWidth && "es:max-w-80", popoverClassName),
|
|
103
103
|
wrapperClassName: clsx(!hasSubmenuItems && "es:overflow-y-auto", popoverWrapperClassName),
|
|
104
|
-
children: jsx($
|
|
104
|
+
children: jsx($49319ee1285aa241$export$d9b273488cd8ce6f, {
|
|
105
105
|
className: "es:outline-hidden",
|
|
106
106
|
...props,
|
|
107
107
|
...additionalProps,
|
|
@@ -130,7 +130,7 @@ var MenuSection = (props) => {
|
|
|
130
130
|
hidden: !label,
|
|
131
131
|
children: label
|
|
132
132
|
}),
|
|
133
|
-
jsx($
|
|
133
|
+
jsx($49319ee1285aa241$export$4b1545b4f2016d26, {
|
|
134
134
|
className: "es:flex es:flex-col es:gap-1",
|
|
135
135
|
children
|
|
136
136
|
}),
|
|
@@ -145,7 +145,7 @@ var MenuSection = (props) => {
|
|
|
145
145
|
* @see {@link Menu} for usage example.
|
|
146
146
|
*/
|
|
147
147
|
var MenuSeparator = ({ className }) => {
|
|
148
|
-
return jsx($
|
|
148
|
+
return jsx($e28ab3efe3e87743$export$1ff3c3f08ae963c0, { className: clsx("es:my-1.5 es:w-fill es:h-px es:bg-surface-500/15 es:mx-1.5 es:rounded-full", className) });
|
|
149
149
|
};
|
|
150
150
|
/**
|
|
151
151
|
* A menu item.
|
|
@@ -177,7 +177,7 @@ var MenuItem = (props) => {
|
|
|
177
177
|
if (checked === true) itemIcon = menuItemCheck;
|
|
178
178
|
else if (selected === true) itemIcon = menuItemCircle;
|
|
179
179
|
else if (selected === false || checked === false) itemIcon = dummySpacer;
|
|
180
|
-
return jsxs($
|
|
180
|
+
return jsxs($49319ee1285aa241$export$2ce376c2cc3355c8, {
|
|
181
181
|
...props,
|
|
182
182
|
"aria-label": ariaLabel,
|
|
183
183
|
isDisabled: disabled,
|
|
@@ -227,7 +227,7 @@ var SubMenuItem = (props) => {
|
|
|
227
227
|
onSelectionChange: () => {},
|
|
228
228
|
items: []
|
|
229
229
|
};
|
|
230
|
-
return jsxs($
|
|
230
|
+
return jsxs($49319ee1285aa241$export$ecabc99eeffab7ca, { children: [cloneElement(trigger, { endIcon: jsx("span", {
|
|
231
231
|
className: "es:text-surface-500 es:contrast-more:text-current es:icon:size-3! es:icon:stroke-2!",
|
|
232
232
|
children: chevronRight
|
|
233
233
|
}) }), jsx(Popover, {
|
|
@@ -235,7 +235,7 @@ var SubMenuItem = (props) => {
|
|
|
235
235
|
offset: -1,
|
|
236
236
|
...popoverProps,
|
|
237
237
|
className: clsx("es:font-sans", "es:any-focus:outline-hidden", !manualWidth && "es:w-56", manualWidth && "es:max-w-80", popoverProps?.className),
|
|
238
|
-
children: jsx($
|
|
238
|
+
children: jsx($49319ee1285aa241$export$d9b273488cd8ce6f, {
|
|
239
239
|
"aria-label": props["aria-label"] ?? __("Submenu", "eightshift-ui-components"),
|
|
240
240
|
className: "es:any-focus:outline-hidden",
|
|
241
241
|
...additionalProps,
|
|
@@ -259,7 +259,7 @@ SubMenuItem.displayName = "SubMenuItem";
|
|
|
259
259
|
var MenuSectionHeader = (props) => {
|
|
260
260
|
const { children, className, hidden } = props;
|
|
261
261
|
if (hidden) return null;
|
|
262
|
-
return jsx($
|
|
262
|
+
return jsx($49319ee1285aa241$export$2ce376c2cc3355c8, {
|
|
263
263
|
...props,
|
|
264
264
|
className: clsx("es:mx-1 es:px-1 es:pt-1.5 es:pb-2 es:first:pt-2 es:flex es:min-w-44 es:items-center es:gap-1.5 es:font-variation-[\"wdth\"_76,\"wght\"_325,\"ROND\"_100]", "es:select-none es:text-13", "es:icon:shrink-0", "es:text-surface-500", className),
|
|
265
265
|
isDisabled: true,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Modal } from "../../modal-
|
|
1
|
+
import { t as Modal } from "../../modal-CJDaBdPh.js";
|
|
2
2
|
export { Modal };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as NumberPicker } from "../../number-picker-
|
|
1
|
+
import { t as NumberPicker } from "../../number-picker-BrxrB-xq.js";
|
|
2
2
|
export { NumberPicker };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
2
|
-
import { n as ButtonGroup } from "../../button-
|
|
1
|
+
import { t as ToggleButton } from "../../toggle-button-DYDp11rq.js";
|
|
2
|
+
import { n as ButtonGroup } from "../../button-CawAzlko.js";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
|
-
import { t as __ } from "../../build-module-
|
|
5
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
6
6
|
import { Icon } from "../../icons/icon.js";
|
|
7
7
|
import { Menu, MenuItem, MenuSeparator, SubMenuItem } from "../menu/menu.js";
|
|
8
8
|
import { RadioButton, RadioButtonGroup } from "../radio/radio.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import { t as $
|
|
2
|
+
import { t as $2ec61d1d4f780267$export$a8a3e93435678ff9 } from "../../Heading-B2EsUuu6.js";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
4
|
import { cloneElement } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -95,7 +95,7 @@ var OptionsPanelHeader = ({ children, sticky, title, className, actions, level =
|
|
|
95
95
|
className: clsx("es:space-y-2.5", limitWidth && "es:max-w-2xl", sticky && "es:sticky es:top-0 es:z-10 es:bg-white", className),
|
|
96
96
|
children: [jsxs("div", {
|
|
97
97
|
className: "es:flex es:flex-wrap es:items-center es:justify-between es:gap-x-8 es:gap-y-4 es:mb-10",
|
|
98
|
-
children: [jsx($
|
|
98
|
+
children: [jsx($2ec61d1d4f780267$export$a8a3e93435678ff9, {
|
|
99
99
|
className: "es:text-2xl es:text-surface-800 es:font-variation-[\"wdth\"_100,\"wght\"_450,\"ROND\"_100] es:m-0!",
|
|
100
100
|
level,
|
|
101
101
|
children: title
|
|
@@ -131,7 +131,7 @@ var OptionsPanelIntro = ({ icon, title, subtitle, className, iconClassName, leve
|
|
|
131
131
|
return jsxs("div", {
|
|
132
132
|
className: clsx("es:relative es:overflow-clip", "es:py-5 es:px-6 es:rounded-2xl es:max-w-lg", "es:bg-surface-100 es:inset-ring es:inset-ring-surface-600/5", !flat && "es:shadow-xs es:shadow-black/5", className),
|
|
133
133
|
children: [
|
|
134
|
-
jsx($
|
|
134
|
+
jsx($2ec61d1d4f780267$export$a8a3e93435678ff9, {
|
|
135
135
|
className: "es:text-3xl es:my-0! es:text-accent-900 es:font-variation-[\"wdth\"_50,\"wght\"_325,\"slnt\"_-4,\"ROND\"_100]",
|
|
136
136
|
level,
|
|
137
137
|
children: title
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
2
|
import { truncateMiddle } from "../../utilities/text-helpers.js";
|
|
3
3
|
import { file } from "../../icons/ui-icons/file.js";
|
|
4
|
-
import { t as SmartImage } from "../../smart-image-
|
|
4
|
+
import { t as SmartImage } from "../../smart-image-eGdMu9s9.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/components/placeholders/file-picker-shell.jsx
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
2
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
3
|
-
import { t as __ } from "../../build-module-
|
|
3
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
4
4
|
import { file } from "../../icons/ui-icons/file.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/components/placeholders/file-placeholder.jsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as Button } from "../../button-
|
|
4
|
-
import { t as __ } from "../../build-module-
|
|
2
|
+
import { n as $f2ff30fde7b014be$export$3ddf2d174ce01153, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88, u as $542a13ca2fa5b484$export$5b6b19405a83ff9d } from "../../Dialog-C1sh8jbh.js";
|
|
3
|
+
import { t as Button } from "../../button-CawAzlko.js";
|
|
4
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/components/popover/popover.jsx
|
|
7
7
|
/**
|
|
@@ -68,7 +68,7 @@ var Popover = (props) => {
|
|
|
68
68
|
let ariaLabel = rawAriaLabel;
|
|
69
69
|
if (ariaLabel === false) ariaLabel = void 0;
|
|
70
70
|
if (hidden) return null;
|
|
71
|
-
return jsx($
|
|
71
|
+
return jsx($542a13ca2fa5b484$export$5b6b19405a83ff9d, {
|
|
72
72
|
shouldFlip,
|
|
73
73
|
shouldCloseOnInteractOutside,
|
|
74
74
|
triggerRef,
|
|
@@ -82,7 +82,7 @@ var Popover = (props) => {
|
|
|
82
82
|
className: ({ isEntering, isExiting }) => clsx("es:font-sans", "es:rounded-2xl es:bg-linear-to-br es:from-surface-50/85 es:to-surface-50/85 es:inset-ring es:inset-ring-surface-500/15 es:shadow-xl es:outline-hidden", "es:backdrop-blur-xl es:backdrop-brightness-110 es:backdrop-saturate-125", "es:inset-shadow-xs es:inset-shadow-white/50", "es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left", "es:placement-left:origin-right es:placement-right:origin-left", "es:motion-ease-spring-bouncy", isEntering && "es:*:pointer-events-none es:motion-duration-300", "es:placement-bottom:origin-top-left es:placement-top:origin-bottom-left", isEntering && "es:motion-scale-x-in-95 es:motion-scale-y-in-90 es:motion-opacity-in-0", isEntering && "es:placement-top:motion-translate-y-in-[0.25rem] es:placement-bottom:motion-translate-y-in-[-0.25rem]", isExiting && "es:motion-scale-x-out-95 es:motion-scale-y-out-90 es:motion-opacity-out-0 es:motion-duration-200", isExiting && "es:placement-top:motion-translate-y-out-[0.25rem] es:placement-bottom:motion-translate-y-out-[-0.25rem]", wrapperClassName),
|
|
83
83
|
style,
|
|
84
84
|
...popoverProps,
|
|
85
|
-
children: jsx($
|
|
85
|
+
children: jsx($f2ff30fde7b014be$export$3ddf2d174ce01153, {
|
|
86
86
|
className: clsx("es:p-1 es:text-sm es:outline-hidden", className),
|
|
87
87
|
"aria-label": ariaLabel,
|
|
88
88
|
...other,
|
|
@@ -127,7 +127,7 @@ var Popover = (props) => {
|
|
|
127
127
|
var TriggeredPopover = (props) => {
|
|
128
128
|
const { trigger, triggerButtonIcon, triggerButtonLabel = !triggerButtonIcon && __("Open", "eightshift-ui-components"), triggerButtonProps, children, onOpenChange, openByDefault, placement, style, className, offset, crossOffset, containerPadding, hidden, ...rest } = props;
|
|
129
129
|
if (hidden) return null;
|
|
130
|
-
return jsxs($
|
|
130
|
+
return jsxs($f2ff30fde7b014be$export$2e1e1122cf0cba88, {
|
|
131
131
|
onOpenChange,
|
|
132
132
|
children: [
|
|
133
133
|
trigger,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as $
|
|
1
|
+
import { t as $72abaeab4d80592f$export$78efe591171d7d45 } from "../../PortalProvider-BYcv24il.js";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/components/portal-provider/portal-provider.jsx
|
|
@@ -17,7 +17,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
17
17
|
* </PortalProvider>
|
|
18
18
|
*/
|
|
19
19
|
var PortalProvider = ({ children, portalElement }) => {
|
|
20
|
-
return jsx($
|
|
20
|
+
return jsx($72abaeab4d80592f$export$78efe591171d7d45, {
|
|
21
21
|
getContainer: useCallback(() => portalElement, [portalElement]),
|
|
22
22
|
children
|
|
23
23
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
2
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
3
|
-
import { n as $
|
|
4
|
-
import { n as $
|
|
3
|
+
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-B1TkoVOG.js";
|
|
4
|
+
import { n as $fe21c36db05242bb$export$d7b12c4107be0d61, t as $fe21c36db05242bb$export$a98f0dcb43a68a25 } from "../../RadioGroup-BxjLooWU.js";
|
|
5
5
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
|
-
import { t as cva } from "../../dist-
|
|
7
|
+
import { t as cva } from "../../dist-jw8wvxoG.js";
|
|
8
8
|
import { cloneElement } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region lib/components/radio/radio.jsx
|
|
@@ -124,7 +124,7 @@ var radioContainerClass = cva("es:flex es:gap-2 es:items-center-safe", {
|
|
|
124
124
|
var RadioButton = (props) => {
|
|
125
125
|
const { icon, label, subtitle, disabled, className, labelClassName, design = "default", flat, alignEnd, children, inlineSubtitle, hidden, ...rest } = props;
|
|
126
126
|
if (hidden) return null;
|
|
127
|
-
return jsx($
|
|
127
|
+
return jsx($fe21c36db05242bb$export$d7b12c4107be0d61, {
|
|
128
128
|
isDisabled: disabled,
|
|
129
129
|
className: ({ isSelected }) => clsx(radioContainerClass({
|
|
130
130
|
design,
|
|
@@ -142,7 +142,7 @@ var RadioButton = (props) => {
|
|
|
142
142
|
inlineSubtitle,
|
|
143
143
|
fullWidth: true,
|
|
144
144
|
fullSizeSubtitle: true,
|
|
145
|
-
as: $
|
|
145
|
+
as: $43a3b93638fe5db9$export$b04be29aa201d4f5,
|
|
146
146
|
noColor: true
|
|
147
147
|
}),
|
|
148
148
|
jsx("div", {
|
|
@@ -166,7 +166,7 @@ var RadioButton = (props) => {
|
|
|
166
166
|
className: clsx(labelClassName, disabled && "es:text-secondary-300"),
|
|
167
167
|
inlineSubtitle,
|
|
168
168
|
fullSizeSubtitle: true,
|
|
169
|
-
as: $
|
|
169
|
+
as: $43a3b93638fe5db9$export$b04be29aa201d4f5,
|
|
170
170
|
noColor: true
|
|
171
171
|
}),
|
|
172
172
|
!(icon || label || subtitle) && children
|
|
@@ -228,8 +228,8 @@ var RadioButtonGroup = (props) => {
|
|
|
228
228
|
key: child.props.value ?? index
|
|
229
229
|
});
|
|
230
230
|
});
|
|
231
|
-
return jsx($
|
|
232
|
-
className: clsx("es:w-
|
|
231
|
+
return jsx($fe21c36db05242bb$export$a98f0dcb43a68a25, {
|
|
232
|
+
className: clsx("es:w-fill", className),
|
|
233
233
|
isDisabled: disabled,
|
|
234
234
|
isReadOnly: readOnly,
|
|
235
235
|
onChange,
|
|
@@ -242,7 +242,7 @@ var RadioButtonGroup = (props) => {
|
|
|
242
242
|
subtitle,
|
|
243
243
|
actions,
|
|
244
244
|
help,
|
|
245
|
-
labelAs: $
|
|
245
|
+
labelAs: $43a3b93638fe5db9$export$b04be29aa201d4f5,
|
|
246
246
|
className: labelClassName,
|
|
247
247
|
children: jsx("div", {
|
|
248
248
|
className: clsx(orientation === "horizontal" && "es:flex es:items-stretch es:gap-0.75", orientation === "vertical" && "es:flex es:flex-col es:gap-0.75"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
|
-
import { t as Button } from "../../button-
|
|
3
|
-
import { t as __ } from "../../build-module-
|
|
2
|
+
import { t as Button } from "../../button-CawAzlko.js";
|
|
3
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
4
4
|
import { copy } from "../../icons/ui-icons/copy.js";
|
|
5
5
|
import { dropdownCaretAlt } from "../../icons/ui-icons/dropdown-caret-alt.js";
|
|
6
6
|
import { moreH } from "../../icons/ui-icons/more-h.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-BUU5J41u.js";
|
|
2
2
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
3
|
-
import { t as Button } from "../../button-
|
|
3
|
+
import { t as Button } from "../../button-CawAzlko.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
|
-
import { t as __ } from "../../build-module-
|
|
5
|
+
import { t as __ } from "../../build-module-K6vi4xE0.js";
|
|
6
6
|
import { add } from "../../icons/ui-icons/add.js";
|
|
7
7
|
import { moreH } from "../../icons/ui-icons/more-h.js";
|
|
8
8
|
import { panelCollapse } from "../../icons/ui-icons/panel-collapse.js";
|
|
9
9
|
import { panelExpand } from "../../icons/ui-icons/panel-expand.js";
|
|
10
10
|
import { Menu, MenuItem, MenuSeparator } from "../menu/menu.js";
|
|
11
|
-
import { n as arrayMove, r as arrayRemove, t as List } from "../../List
|
|
11
|
+
import { n as arrayMove, r as arrayRemove, t as List } from "../../List---tsVJlI.js";
|
|
12
12
|
import { RepeaterContext } from "./repeater-context.js";
|
|
13
13
|
import { useCallback, useMemo, useState } from "react";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|