@eightshift/ui-components 8.4.1 → 8.5.0-beta.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/README.md +8 -0
- package/dist/assets/fonts-manifest.json +66 -0
- package/dist/assets/style-admin-no-fonts.css +2 -0
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor-no-fonts.css +2 -0
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style-no-fonts.css +2 -0
- package/dist/assets/style.css +1 -1
- package/dist/{button-NgEJ1eT2.js → button-Bp6Gvutm.js} +1 -1
- package/dist/components/animated-visibility/animated-visibility.js +1 -1
- package/dist/components/breakpoint-preview/breakpoint-preview.js +15 -15
- package/dist/components/button/button.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +2 -2
- package/dist/components/container-panel/container-panel.js +2 -2
- package/dist/components/contextual-help/contextual-help.js +1 -1
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/expandable/expandable.js +1 -1
- package/dist/components/index.js +8 -8
- package/dist/components/layout/vstack.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notice/notice.js +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +2 -2
- package/dist/components/placeholders/file-picker-shell.js +1 -1
- package/dist/components/placeholders/image-placeholder.js +2 -2
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/prompt-popover/prompt-popover.js +4 -2
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +1 -1
- package/dist/components/responsive/mini-responsive.js +2 -2
- package/dist/components/responsive/responsive-legacy.js +5 -5
- package/dist/components/responsive/responsive.js +3 -3
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/select/async-multi-select.js +2 -2
- package/dist/components/select/async-select.js +2 -2
- package/dist/components/select/multi-select.js +2 -2
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/smart-image/smart-image.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{gradient-editor-CO1iXPM9.js → gradient-editor-Cdr-8Rgz.js} +6 -6
- package/dist/index.js +8 -8
- package/dist/{link-input-D1BWznvA.js → link-input-wXPvMs_J.js} +6 -6
- package/dist/{modal-DPHjb2V4.js → modal-hRIfHOS5.js} +2 -2
- package/dist/{number-picker-Dqwxp_2B.js → number-picker-CBvcBF-r.js} +1 -1
- package/dist/{tabs-DvGKX3V7.js → tabs-oYIgL_0S.js} +4 -4
- package/dist/{toggle-button-g3dLI2F1.js → toggle-button-BrQCdMsy.js} +1 -1
- package/dist/{tooltip-Dd1nNj0_.js → tooltip-C80k6UfC.js} +1 -1
- package/package.json +9 -1
|
@@ -5,7 +5,7 @@ import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R
|
|
|
5
5
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-BV6v3Ytq.js";
|
|
6
6
|
import { a as $6c0095e7e99364f2$export$c17561cb55d4db30, n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-DcI8gSfH.js";
|
|
7
7
|
import { i as $535772f9d2c1f38d$export$c5251b9e124bf29 } from "./FocusScope-DLpr7Rq0.js";
|
|
8
|
-
import { n as Tooltip } from "./tooltip-
|
|
8
|
+
import { n as Tooltip } from "./tooltip-C80k6UfC.js";
|
|
9
9
|
import { t as __ } from "./build-module-BISCoQjQ.js";
|
|
10
10
|
import { t as cva } from "./dist-DpXluZqJ.js";
|
|
11
11
|
import $3ARPR$react, { createContext, forwardRef, useRef, useState } from "react";
|
|
@@ -69,7 +69,7 @@ var AnimatedVisibility = (props) => {
|
|
|
69
69
|
if (noInitial && visible) queueMicrotask(() => setCanAnimate(false));
|
|
70
70
|
}, [noInitial, visible]);
|
|
71
71
|
return jsx(Fragment$1, { children: isVisibleInner && jsx("div", {
|
|
72
|
-
className: clsx(!noEnterAnimation && visible && noInitial && visible && canAnimate && transitions[transition].inClassName, !noEnterAnimation && visible && !noInitial && transitions[transition].inClassName, !noExitAnimation && !visible && transitions[transition].outClassName, "es:motion-duration-300", decreaseBounce && "es:motion-ease-spring-snappy es:motion-ease-linear/opacity", !decreaseBounce && "es:motion-ease-spring-bouncy es:motion-ease-linear/opacity", "es:fill-mode
|
|
72
|
+
className: clsx(!noEnterAnimation && visible && noInitial && visible && canAnimate && transitions[transition].inClassName, !noEnterAnimation && visible && !noInitial && transitions[transition].inClassName, !noExitAnimation && !visible && transitions[transition].outClassName, "es:motion-duration-300", decreaseBounce && "es:motion-ease-spring-snappy es:motion-ease-linear/opacity", !decreaseBounce && "es:motion-ease-spring-bouncy es:motion-ease-linear/opacity", "es:[animation-fill-mode:forwards]", className),
|
|
73
73
|
onAnimationEnd: () => {
|
|
74
74
|
if (visible === false) setIsVisibleInner(false);
|
|
75
75
|
if (!canAnimate) setCanAnimate(true);
|
|
@@ -89,9 +89,9 @@ var BreakpointPreview = (props) => {
|
|
|
89
89
|
children: jsxs("div", {
|
|
90
90
|
className: "es:flex es:gap-0.5 es:text-secondary-300",
|
|
91
91
|
children: [
|
|
92
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
93
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
94
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" })
|
|
92
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" }),
|
|
93
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" }),
|
|
94
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" })
|
|
95
95
|
]
|
|
96
96
|
})
|
|
97
97
|
}), jsx("div", { className: "es:row-start-2 es:size-px es:justify-self-end" })] }) : null,
|
|
@@ -103,29 +103,29 @@ var BreakpointPreview = (props) => {
|
|
|
103
103
|
className: "es:row-start-1 es:flex es:min-w-28 es:items-center es:gap-1 es:font-mono es:font-medium es:text-secondary-400",
|
|
104
104
|
children: [
|
|
105
105
|
blockDotsStart ? jsxs("div", {
|
|
106
|
-
className: clsx("es:flex es:gap-0.5", active ? activeTextColor : "text-secondary-300"),
|
|
106
|
+
className: clsx("es:flex es:gap-0.5", active ? activeTextColor : "es:text-secondary-300"),
|
|
107
107
|
children: [
|
|
108
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
109
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
110
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" })
|
|
108
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" }),
|
|
109
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" }),
|
|
110
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" })
|
|
111
111
|
]
|
|
112
112
|
}) : null,
|
|
113
113
|
width ? jsx("span", { children: width }) : null,
|
|
114
|
-
jsx("div", { className: clsx("es:grow es:rounded", active ? "es:h-0.5" : "es:h-px es:bg-secondary-300", active && activeBgColor) }),
|
|
114
|
+
jsx("div", { className: clsx("es:grow es:rounded-sm", active ? "es:h-0.5" : "es:h-px es:bg-secondary-300", active && activeBgColor) }),
|
|
115
115
|
widthEnd ? jsx("span", { children: widthEnd }) : null,
|
|
116
116
|
blockDotsEnd ? jsxs("div", {
|
|
117
117
|
className: clsx("es:flex es:gap-0.5", active ? activeTextColor : "es:text-secondary-300"),
|
|
118
118
|
children: [
|
|
119
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
120
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
121
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" })
|
|
119
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" }),
|
|
120
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" }),
|
|
121
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" })
|
|
122
122
|
]
|
|
123
123
|
}) : null
|
|
124
124
|
]
|
|
125
125
|
}), jsxs("div", {
|
|
126
126
|
className: "es:row-start-2 es:flex es:w-full es:min-w-28 es:flex-col es:items-start es:gap-1",
|
|
127
127
|
children: [jsx("span", {
|
|
128
|
-
className: clsx("es:rounded es:px-1 es:py-0.5", hasActive && active && "es:text-white", hasActive && active && activeBgColor, hasActive && !active && "es:bg-secondary-200 es:text-secondary-500", !hasActive && "es:bg-secondary-600 es:text-white", alignEnd && "es:ml-auto"),
|
|
128
|
+
className: clsx("es:rounded-sm es:px-1 es:py-0.5", hasActive && active && "es:text-white", hasActive && active && activeBgColor, hasActive && !active && "es:bg-secondary-200 es:text-secondary-500", !hasActive && "es:bg-secondary-600 es:text-white", alignEnd && "es:ml-auto"),
|
|
129
129
|
children: upperFirst(breakpoint)
|
|
130
130
|
}), value ? jsx("span", {
|
|
131
131
|
className: clsx("es:-mt-0.5 es:px-1", "es:text-secondary-400", alignEnd && "es:ml-auto"),
|
|
@@ -138,9 +138,9 @@ var BreakpointPreview = (props) => {
|
|
|
138
138
|
children: jsxs("div", {
|
|
139
139
|
className: "es:flex es:gap-0.5 es:text-secondary-300",
|
|
140
140
|
children: [
|
|
141
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
142
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" }),
|
|
143
|
-
jsx("div", { className: "es:size-0.5 es:rounded es:bg-current" })
|
|
141
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" }),
|
|
142
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" }),
|
|
143
|
+
jsx("div", { className: "es:size-0.5 es:rounded-sm es:bg-current" })
|
|
144
144
|
]
|
|
145
145
|
})
|
|
146
146
|
}), jsx("div", { className: "es:row-start-2 es:size-px" })] }) : null
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ButtonGroup, t as Button } from "../../button-
|
|
1
|
+
import { n as ButtonGroup, t as Button } from "../../button-Bp6Gvutm.js";
|
|
2
2
|
export { Button, ButtonGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as GradientEditor } from "../../gradient-editor-
|
|
1
|
+
import { t as GradientEditor } from "../../gradient-editor-Cdr-8Rgz.js";
|
|
2
2
|
export { GradientEditor };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
3
3
|
import { t as Switch } from "../../switch-bqIILR_c.js";
|
|
4
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
5
|
-
import { n as ButtonGroup } from "../../button-
|
|
4
|
+
import { t as ToggleButton } from "../../toggle-button-BrQCdMsy.js";
|
|
5
|
+
import { n as ButtonGroup } from "../../button-Bp6Gvutm.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
7
|
import { t as sprintf } from "../../sprintf-xJRAt4p0.js";
|
|
8
8
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { n as $a3e16eab0ea4036c$export$feabaa331e1d464c, t as $a3e16eab0ea4036c$export$74a362b31437ec83 } from "../../Disclosure-CkaUMe7J.js";
|
|
3
3
|
import { t as Switch } from "../../switch-bqIILR_c.js";
|
|
4
|
-
import { t as Button } from "../../button-
|
|
4
|
+
import { t as Button } from "../../button-Bp6Gvutm.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";
|
|
@@ -65,7 +65,7 @@ var ContainerPanel = (props) => {
|
|
|
65
65
|
}) : null
|
|
66
66
|
})] }),
|
|
67
67
|
className: clsx(topBorder && "es:border-t es:border-t-secondary-200", !closable && use === void 0 && "es:space-y-2", justClosable && open && "es:pb-4", justUse && use && "es:pb-4", useAndClosable && use && open && "es:pb-4", !justClosable && !justUse && !useAndClosable && "es:pb-4", !closable && !onUseChange && use === void 0 && "es:px-4", className),
|
|
68
|
-
labelContainerClassName: clsx((closable || onUseChange) && "es:pl-4 es:pr-3 es:min-h-12", !(closable || onUseChange) && "es:
|
|
68
|
+
labelContainerClassName: clsx((closable || onUseChange) && "es:pl-4 es:pr-3 es:min-h-12", !(closable || onUseChange) && "es:my-3 ", (closable || onUseChange) && "es:mb-0!", "es:pb-0!"),
|
|
69
69
|
controlContainerClassName: "es:px-4",
|
|
70
70
|
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"),
|
|
71
71
|
children: [!shouldUseDisclosure ? children : null, shouldUseDisclosure ? jsx($a3e16eab0ea4036c$export$feabaa331e1d464c, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "../../Dialog-CSqjSLlO.js";
|
|
3
|
-
import { t as Button } from "../../button-
|
|
3
|
+
import { t as Button } from "../../button-Bp6Gvutm.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
6
6
|
import { clear } from "../../icons/ui-icons/clear.js";
|
|
@@ -50,7 +50,7 @@ var DraggableListItem = (props) => {
|
|
|
50
50
|
var DraggableListItemHandle = (props) => {
|
|
51
51
|
const { className, children, ...rest } = props;
|
|
52
52
|
return jsx("button", {
|
|
53
|
-
className: className ?? "es:relative es:h-6 es:w-2 es:items-center es:justify-center es:self-center es:rounded es:border es:border-secondary-300 es:bg-secondary-50 es:transition es:after:absolute es:after:inset-0 es:after:m-auto es:after:h-4 es:after:w-px es:after:bg-secondary-200 es:after:transition es:after:content-[\"\"] es:hover:border-accent-500 es:hover:bg-accent-400 es:hover:after:bg-accent-500",
|
|
53
|
+
className: className ?? "es:relative es:h-6 es:w-2 es:items-center es:justify-center es:self-center es:rounded-sm es:border es:border-secondary-300 es:bg-secondary-50 es:transition es:after:absolute es:after:inset-0 es:after:m-auto es:after:h-4 es:after:w-px es:after:bg-secondary-200 es:after:transition es:after:content-[\"\"] es:hover:border-accent-500 es:hover:bg-accent-400 es:hover:after:bg-accent-500",
|
|
54
54
|
...rest,
|
|
55
55
|
"data-movable-handle": true,
|
|
56
56
|
tabIndex: -1,
|
|
@@ -2,7 +2,7 @@ import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
|
2
2
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
3
3
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-C4bJkVti.js";
|
|
4
4
|
import { n as $a3e16eab0ea4036c$export$feabaa331e1d464c, t as $a3e16eab0ea4036c$export$74a362b31437ec83 } from "../../Disclosure-CkaUMe7J.js";
|
|
5
|
-
import { t as Button } from "../../button-
|
|
5
|
+
import { t as Button } from "../../button-Bp6Gvutm.js";
|
|
6
6
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
7
7
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
8
8
|
import { dropdownCaretAlt } from "../../icons/ui-icons/dropdown-caret-alt.js";
|
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-
|
|
2
|
+
import { t as LinkInput } from "../link-input-wXPvMs_J.js";
|
|
3
3
|
import { t as Checkbox } from "../checkbox-DfZDR444.js";
|
|
4
4
|
import { t as SolidColorPicker } from "../solid-color-picker-CDrcphjC.js";
|
|
5
5
|
import { t as ColorSwatch } from "../color-swatch-CEYPwPsn.js";
|
|
6
|
-
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "../tabs-
|
|
7
|
-
import { n as Tooltip, t as DecorativeTooltip } from "../tooltip-
|
|
8
|
-
import { t as Modal } from "../modal-
|
|
9
|
-
import { t as NumberPicker } from "../number-picker-
|
|
6
|
+
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "../tabs-oYIgL_0S.js";
|
|
7
|
+
import { n as Tooltip, t as DecorativeTooltip } from "../tooltip-C80k6UfC.js";
|
|
8
|
+
import { t as Modal } from "../modal-hRIfHOS5.js";
|
|
9
|
+
import { t as NumberPicker } from "../number-picker-CBvcBF-r.js";
|
|
10
10
|
import { t as Switch } from "../switch-bqIILR_c.js";
|
|
11
11
|
import { t as InputField } from "../input-field-msAE2llt.js";
|
|
12
|
-
import { t as ToggleButton } from "../toggle-button-
|
|
13
|
-
import { n as ButtonGroup, t as Button } from "../button-
|
|
12
|
+
import { t as ToggleButton } from "../toggle-button-BrQCdMsy.js";
|
|
13
|
+
import { n as ButtonGroup, t as Button } from "../button-Bp6Gvutm.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";
|
|
@@ -33,7 +33,7 @@ import { DraggableHandle } from "./draggable/draggable-handle.js";
|
|
|
33
33
|
import { SmartImage } from "./smart-image/smart-image.js";
|
|
34
34
|
import { FilePickerShell } from "./placeholders/file-picker-shell.js";
|
|
35
35
|
import { FilePlaceholder } from "./placeholders/file-placeholder.js";
|
|
36
|
-
import { t as GradientEditor } from "../gradient-editor-
|
|
36
|
+
import { t as GradientEditor } from "../gradient-editor-Cdr-8Rgz.js";
|
|
37
37
|
import { MatrixAlign } from "./matrix-align/matrix-align.js";
|
|
38
38
|
import { RadioButton, RadioButtonGroup } from "./radio/radio.js";
|
|
39
39
|
import { OptionSelect } from "./option-select/option-select.js";
|
|
@@ -17,7 +17,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
17
17
|
var VStack = ({ children, noWrap, className, hidden, as }) => {
|
|
18
18
|
if (hidden) return null;
|
|
19
19
|
return jsx(as ?? "div", {
|
|
20
|
-
className: clsx("es:flex es:flex-col es:gap-
|
|
20
|
+
className: clsx("es:flex es:flex-col es:gap-1.5 ", !noWrap && "es:flex-wrap", className),
|
|
21
21
|
children
|
|
22
22
|
});
|
|
23
23
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as LinkInput } from "../../link-input-
|
|
1
|
+
import { t as LinkInput } from "../../link-input-wXPvMs_J.js";
|
|
2
2
|
export { LinkInput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { E as $e28ab3efe3e87743$export$1ff3c3f08ae963c0, a as $49319ee1285aa241$export$27d2ad3c5815583e, c as $49319ee1285aa241$export$d9b273488cd8ce6f, l as $49319ee1285aa241$export$ecabc99eeffab7ca, o as $49319ee1285aa241$export$2ce376c2cc3355c8, s as $49319ee1285aa241$export$4b1545b4f2016d26 } from "../../Dialog-CSqjSLlO.js";
|
|
3
|
-
import { t as Button } from "../../button-
|
|
3
|
+
import { t as Button } from "../../button-Bp6Gvutm.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
6
6
|
import { dummySpacer } from "../../icons/ui-icons/dummy-spacer.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Modal } from "../../modal-
|
|
1
|
+
import { t as Modal } from "../../modal-hRIfHOS5.js";
|
|
2
2
|
export { Modal };
|
|
@@ -82,7 +82,7 @@ var Notice = (props) => {
|
|
|
82
82
|
children: label
|
|
83
83
|
}),
|
|
84
84
|
subtitle && jsx("span", {
|
|
85
|
-
className: clsx("es:col-span-2 es:col-start-2 es:text-balance es:text-xs es:
|
|
85
|
+
className: clsx("es:col-span-2 es:col-start-2 es:text-balance es:text-xs es:pt-0.75", "es:font-variation-[\"wdth\"_90,\"wght\"_350,\"slnt\"_-1]", currentStyle.subtitleColorClassName, label ? "es:self-start" : "es:row-span-2 es:self-center-safe"),
|
|
86
86
|
children: subtitle
|
|
87
87
|
})
|
|
88
88
|
]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as NumberPicker } from "../../number-picker-
|
|
1
|
+
import { t as NumberPicker } from "../../number-picker-CBvcBF-r.js";
|
|
2
2
|
export { NumberPicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
2
|
-
import { n as ButtonGroup } from "../../button-
|
|
1
|
+
import { t as ToggleButton } from "../../toggle-button-BrQCdMsy.js";
|
|
2
|
+
import { n as ButtonGroup } from "../../button-Bp6Gvutm.js";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
5
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
@@ -70,7 +70,7 @@ var FilePickerShell = (props) => {
|
|
|
70
70
|
!hasError ? image : null,
|
|
71
71
|
hasError ? errorBadge : null,
|
|
72
72
|
children ? jsx("div", {
|
|
73
|
-
className: clsx("es:flex es:items-center-safe es:gap-0.75", "es-button-group-h", !hasError && !isTransparent && "es:absolute es:bottom-2 es:
|
|
73
|
+
className: clsx("es:flex es:items-center-safe es:gap-0.75", "es-button-group-h", !hasError && !isTransparent && "es:absolute es:bottom-2 es:inset-x-2 es:translate-y-[125%] es:group-hover:translate-y-0 es:has-aria-expanded:translate-y-0 es:has-focus-visible:translate-y-0 es:transition-transform es:ease-spring-smooth"),
|
|
74
74
|
children: isRenderFunction(children) ? children({
|
|
75
75
|
dominantColors,
|
|
76
76
|
isDark,
|
|
@@ -40,11 +40,11 @@ var ImagePlaceholder = (props) => {
|
|
|
40
40
|
video: "es:w-full es:aspect-video"
|
|
41
41
|
}[size], className),
|
|
42
42
|
children: [!noImage && jsx("img", {
|
|
43
|
-
className: clsx("es:size-full! es:select-none es:fill-mode
|
|
43
|
+
className: clsx("es:size-full! es:select-none es:[animation-fill-mode:forwards]", imageMode === "cover" && "es:object-cover", imageMode === "contain" && "es:object-contain", imageMode === "fill" && "es:object-fill", hasUrl ? "es:motion-preset-fade-sm es:motion-scale-in-125 es:motion-blur-in-xs es:motion-delay-300/blur es:motion-ease-spring-snappy/scale" : "es:hidden"),
|
|
44
44
|
src: url,
|
|
45
45
|
alt
|
|
46
46
|
}), jsx("div", {
|
|
47
|
-
className: clsx("es:place-self-center es:justify-self-center es:transition es:fill-mode
|
|
47
|
+
className: clsx("es:place-self-center es:justify-self-center es:transition es:[animation-fill-mode:forwards] es:icon:size-7", !hasUrl ? "es:motion-preset-fade-sm es:motion-scale-in-90 es:motion-ease-spring-snappy/scale" : "es:invisible"),
|
|
48
48
|
children: image
|
|
49
49
|
})]
|
|
50
50
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { d as $542a13ca2fa5b484$export$5b6b19405a83ff9d, n as $f2ff30fde7b014be$export$3ddf2d174ce01153, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "../../Dialog-CSqjSLlO.js";
|
|
3
3
|
import { o as $4fcfe18fac72dabd$export$746d02f47f4d381 } from "../../useOverlayTriggerState-uzs8mam6.js";
|
|
4
|
-
import { t as Button } from "../../button-
|
|
4
|
+
import { t as Button } from "../../button-Bp6Gvutm.js";
|
|
5
5
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
|
-
import { t as Button } from "../../button-
|
|
2
|
+
import { t as Button } from "../../button-Bp6Gvutm.js";
|
|
3
3
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
4
|
+
import { s as isString } from "../../es-dash-DPtJSRjw.js";
|
|
4
5
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
5
6
|
import { TriggeredPopover } from "../popover/popover.js";
|
|
6
7
|
import { HStack } from "../layout/hstack.js";
|
|
@@ -27,11 +28,12 @@ var PromptPopover = (props) => {
|
|
|
27
28
|
if (hidden) return null;
|
|
28
29
|
const typeClassName = typeClassNames[type];
|
|
29
30
|
const StackComponent = verticalActions ? VStack : HStack;
|
|
31
|
+
const triggerAriaLabel = isString(tooltip) ? tooltip : void 0;
|
|
30
32
|
return jsx(TypedTriggeredPopover, {
|
|
31
33
|
className: "es:w-60! es:p-3!",
|
|
32
34
|
triggerButtonIcon,
|
|
33
35
|
triggerButtonProps: {
|
|
34
|
-
"aria-label":
|
|
36
|
+
"aria-label": triggerAriaLabel,
|
|
35
37
|
tooltip,
|
|
36
38
|
className: typeClassName,
|
|
37
39
|
...triggerButtonProps
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
|
-
import { t as Button } from "../../button-
|
|
2
|
+
import { t as Button } from "../../button-Bp6Gvutm.js";
|
|
3
3
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
4
4
|
import { copy } from "../../icons/ui-icons/copy.js";
|
|
5
5
|
import { dropdownCaretAlt } from "../../icons/ui-icons/dropdown-caret-alt.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.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-Bp6Gvutm.js";
|
|
4
4
|
import { BaseControl } from "../base-control/base-control.js";
|
|
5
5
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
6
6
|
import { add } from "../../icons/ui-icons/add.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { t as $efe09c6d1c304b50$export$5f1af8db9871e1d6 } from "../../Text-CA2_mHEB.js";
|
|
3
|
-
import { t as DecorativeTooltip } from "../../tooltip-
|
|
4
|
-
import { n as ButtonGroup, t as Button } from "../../button-
|
|
3
|
+
import { t as DecorativeTooltip } from "../../tooltip-C80k6UfC.js";
|
|
4
|
+
import { n as ButtonGroup, t as Button } from "../../button-Bp6Gvutm.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { f as upperFirst } from "../../es-dash-DPtJSRjw.js";
|
|
7
7
|
import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
3
|
-
import { t as DecorativeTooltip } from "../../tooltip-
|
|
4
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
5
|
-
import { t as Button } from "../../button-
|
|
3
|
+
import { t as DecorativeTooltip } from "../../tooltip-C80k6UfC.js";
|
|
4
|
+
import { t as ToggleButton } from "../../toggle-button-BrQCdMsy.js";
|
|
5
|
+
import { t as Button } from "../../button-Bp6Gvutm.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
7
|
import { f as upperFirst } from "../../es-dash-DPtJSRjw.js";
|
|
8
8
|
import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
|
|
@@ -118,7 +118,7 @@ var ResponsiveLegacy = (props) => {
|
|
|
118
118
|
]
|
|
119
119
|
}),
|
|
120
120
|
children: jsx("div", {
|
|
121
|
-
className: "es:flex es:size-7 es:items-center es:justify-center es:rounded es:border es:border-accent-500/10 es:bg-accent-50 es:p-0.5 es:text-accent-800 es:shadow-sm es:shadow-accent-600/25 es:icon:size-5",
|
|
121
|
+
className: "es:flex es:size-7 es:items-center es:justify-center es:rounded-sm es:border es:border-accent-500/10 es:bg-accent-50 es:p-0.5 es:text-accent-800 es:shadow-sm es:shadow-accent-600/25 es:icon:size-5",
|
|
122
122
|
children: jsx(Icon, {
|
|
123
123
|
icon: `screen${upperFirst(defaultBreakpoint)}`,
|
|
124
124
|
fallback: play
|
|
@@ -242,7 +242,7 @@ var ResponsiveLegacy = (props) => {
|
|
|
242
242
|
]
|
|
243
243
|
}),
|
|
244
244
|
children: jsx("div", {
|
|
245
|
-
className: clsx("es:flex es:size-7 es:items-center es:justify-center es:rounded es:border es:p-0.5 es:shadow-sm es:transition-colors es:icon:size-5", getBreakpointValue(breakpoint) === inheritValue ? "es:border-secondary-200 es:bg-secondary-50 es:text-secondary-700" : "es:border-secondary-100 es:bg-white es:text-secondary-500"),
|
|
245
|
+
className: clsx("es:flex es:size-7 es:items-center es:justify-center es:rounded-sm es:border es:p-0.5 es:shadow-sm es:transition-colors es:icon:size-5", getBreakpointValue(breakpoint) === inheritValue ? "es:border-secondary-200 es:bg-secondary-50 es:text-secondary-700" : "es:border-secondary-100 es:bg-white es:text-secondary-500"),
|
|
246
246
|
children: jsx(Icon, { icon: `screen${upperFirst(breakpoint)}` })
|
|
247
247
|
})
|
|
248
248
|
}),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
3
|
-
import { t as DecorativeTooltip } from "../../tooltip-
|
|
4
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
5
|
-
import { n as ButtonGroup, t as Button } from "../../button-
|
|
3
|
+
import { t as DecorativeTooltip } from "../../tooltip-C80k6UfC.js";
|
|
4
|
+
import { t as ToggleButton } from "../../toggle-button-BrQCdMsy.js";
|
|
5
|
+
import { n as ButtonGroup, t as Button } from "../../button-Bp6Gvutm.js";
|
|
6
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
7
7
|
import { f as upperFirst } from "../../es-dash-DPtJSRjw.js";
|
|
8
8
|
import { BreakpointPreview } from "../breakpoint-preview/breakpoint-preview.js";
|
|
@@ -73,7 +73,7 @@ var ResponsivePreview = (props) => {
|
|
|
73
73
|
icon: previewResponsive,
|
|
74
74
|
label: __("Breakpoint preview", "eightshift-ui-components")
|
|
75
75
|
}), jsx("span", {
|
|
76
|
-
className: "es:ml-auto es:select-none es:rounded es:bg-secondary-100 es:px-1 es:py-0.5 es:text-xs es:text-secondary-500",
|
|
76
|
+
className: "es:ml-auto es:select-none es:rounded-sm es:bg-secondary-100 es:px-1 es:py-0.5 es:text-xs es:text-secondary-500",
|
|
77
77
|
children: isDesktopFirst ? __("Desktop-first", "eightshift-ui-components") : __("Mobile-first", "eightshift-ui-components")
|
|
78
78
|
})]
|
|
79
79
|
}),
|
|
@@ -243,7 +243,7 @@ var AsyncMultiSelect = (props) => {
|
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
245
|
}), jsxs("div", {
|
|
246
|
-
className: clsx("es:absolute es:
|
|
246
|
+
className: clsx("es:absolute es:inset-y-0 es:right-3 es:my-auto es:flex es:items-center", disabled ? "es:text-secondary-300" : "es:text-secondary-500"),
|
|
247
247
|
"aria-hidden": "true",
|
|
248
248
|
children: [!customDropdownArrow ? cloneElement(dropdownCaret, { className: "es:w-4 es:stroke-[1.2] es:group-aria-expanded:-scale-y-100 es:transition-transform es:duration-200" }) : null, customDropdownArrow ? jsx("div", {
|
|
249
249
|
"aria-hidden": "true",
|
|
@@ -315,7 +315,7 @@ var AsyncMultiSelect = (props) => {
|
|
|
315
315
|
}), jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
316
316
|
slot: "clear",
|
|
317
317
|
"aria-label": __("Clear", "eightshift-ui-components"),
|
|
318
|
-
className: clsx("es:absolute es:right-3 es:
|
|
318
|
+
className: clsx("es:absolute es:right-3 es:inset-y-0 es:my-auto es:border-none es:bg-transparent", "es:flex es:size-7 es:items-center es:justify-center es:rounded-3xl es:text-sm es:text-surface-700 es:transition es:hover:bg-accent-50 es:hover:text-accent-800 es:any-focus:outline-hidden es:focus:ring-2 es:focus:ring-accent-500/50 es:disabled:text-secondary-300", "es:peer-placeholder-shown:opacity-0"),
|
|
319
319
|
children: clearAlt
|
|
320
320
|
})]
|
|
321
321
|
}),
|
|
@@ -203,7 +203,7 @@ var AsyncSelect = (props) => {
|
|
|
203
203
|
subtitleClassName: "es:line-clamp-1"
|
|
204
204
|
});
|
|
205
205
|
} }), jsxs("div", {
|
|
206
|
-
className: clsx("es:absolute es:
|
|
206
|
+
className: clsx("es:absolute es:inset-y-0 es:right-3 es:my-auto es:flex es:items-center", disabled ? "es:text-secondary-300" : "es:text-secondary-500"),
|
|
207
207
|
"aria-hidden": "true",
|
|
208
208
|
children: [!customDropdownArrow ? cloneElement(dropdownCaret, { className: "es:w-4 es:stroke-[1.2] es:group-aria-expanded:-scale-y-100 es:transition-transform es:duration-200" }) : null, customDropdownArrow ? jsx("div", {
|
|
209
209
|
"aria-hidden": "true",
|
|
@@ -231,7 +231,7 @@ var AsyncSelect = (props) => {
|
|
|
231
231
|
}), jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
232
232
|
slot: "clear",
|
|
233
233
|
"aria-label": __("Clear", "eightshift-ui-components"),
|
|
234
|
-
className: clsx("es:absolute es:right-3 es:
|
|
234
|
+
className: clsx("es:absolute es:right-3 es:inset-y-0 es:my-auto es:border-none es:bg-transparent", "es:flex es:size-7 es:items-center es:justify-center es:rounded-3xl es:text-sm es:text-surface-700 es:transition es:hover:bg-accent-50 es:hover:text-accent-800 es:any-focus:outline-hidden es:focus:ring-2 es:focus:ring-accent-500/50 es:disabled:text-secondary-300", "es:peer-placeholder-shown:opacity-0"),
|
|
235
235
|
children: clearAlt
|
|
236
236
|
})]
|
|
237
237
|
}),
|
|
@@ -192,7 +192,7 @@ var MultiSelect = (props) => {
|
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
}), jsxs("div", {
|
|
195
|
-
className: clsx("es:absolute es:
|
|
195
|
+
className: clsx("es:absolute es:inset-y-0 es:right-3 es:my-auto es:flex es:items-center", disabled ? "es:text-secondary-300" : "es:text-secondary-500"),
|
|
196
196
|
"aria-hidden": "true",
|
|
197
197
|
children: [!customDropdownArrow ? cloneElement(dropdownCaret, { className: "es:w-4 es:stroke-[1.2] es:group-aria-expanded:-scale-y-100 es:transition-transform es:duration-200" }) : null, customDropdownArrow ? jsx("div", {
|
|
198
198
|
"aria-hidden": "true",
|
|
@@ -262,7 +262,7 @@ var MultiSelect = (props) => {
|
|
|
262
262
|
}), jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
263
263
|
slot: "clear",
|
|
264
264
|
"aria-label": __("Clear", "eightshift-ui-components"),
|
|
265
|
-
className: clsx("es:absolute es:right-3 es:
|
|
265
|
+
className: clsx("es:absolute es:right-3 es:inset-y-0 es:my-auto es:border-none es:bg-transparent", "es:flex es:size-7 es:items-center es:justify-center es:rounded-3xl es:text-sm es:text-surface-700 es:transition es:hover:bg-accent-50 es:hover:text-accent-800 es:any-focus:outline-hidden es:focus:ring-2 es:focus:ring-accent-500/50 es:disabled:text-secondary-300", "es:peer-placeholder-shown:opacity-0"),
|
|
266
266
|
children: clearAlt
|
|
267
267
|
})]
|
|
268
268
|
}), jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
@@ -161,7 +161,7 @@ var Select = (props) => {
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
}), jsxs("div", {
|
|
164
|
-
className: clsx("es:absolute es:
|
|
164
|
+
className: clsx("es:absolute es:inset-y-0 es:right-3 es:my-auto es:flex es:items-center", disabled ? "es:text-secondary-300" : "es:text-secondary-500"),
|
|
165
165
|
"aria-hidden": "true",
|
|
166
166
|
children: [!customDropdownArrow ? cloneElement(dropdownCaret, { className: "es:w-4 es:stroke-[1.2] es:group-aria-expanded:-scale-y-100 es:transition-transform es:duration-200" }) : null, customDropdownArrow ? jsx("div", {
|
|
167
167
|
"aria-hidden": "true",
|
|
@@ -190,7 +190,7 @@ var Select = (props) => {
|
|
|
190
190
|
}), jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
191
191
|
slot: "clear",
|
|
192
192
|
"aria-label": __("Clear", "eightshift-ui-components"),
|
|
193
|
-
className: clsx("es:absolute es:right-3 es:
|
|
193
|
+
className: clsx("es:absolute es:right-3 es:inset-y-0 es:my-auto es:border-none es:bg-transparent", "es:flex es:size-7 es:items-center es:justify-center es:rounded-3xl es:text-sm es:text-surface-700 es:transition es:hover:bg-accent-50 es:hover:text-accent-800 es:any-focus:outline-hidden es:focus:ring-2 es:focus:ring-accent-500/50 es:disabled:text-secondary-300", "es:peer-placeholder-shown:opacity-0"),
|
|
194
194
|
children: clearAlt
|
|
195
195
|
})]
|
|
196
196
|
}), jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
@@ -114,10 +114,10 @@ var ColumnConfigSlider = (props) => {
|
|
|
114
114
|
index,
|
|
115
115
|
"aria-label": thumbLabels[index],
|
|
116
116
|
isDisabled: index === 0 && disableOffset || index === 1 && disableWidth,
|
|
117
|
-
className: clsx("es:static! es:row-span-1 es:row-start-1 es:h-full es:w-1 es:rounded-md es:transition es:duration-300", "es:origin-center", "es:hover:ring-[0.25px] es:focus-visible:ring-[0.5px] es:dragging:ring-[1px] es:ring-accent-500", "es:transform-none!", "es:dragging:
|
|
117
|
+
className: clsx("es:static! es:row-span-1 es:row-start-1 es:h-full es:w-1 es:rounded-md es:transition es:duration-300", "es:origin-center", "es:hover:ring-[0.25px] es:focus-visible:ring-[0.5px] es:dragging:ring-[1px] es:ring-accent-500", "es:transform-none!", "es:dragging:bg-accent-600 es:disabled:bg-secondary-400", "es:focus-visible:outline-2 es:outline-offset-2 es:outline-accent-500/40", "es:bg-accent-500", "es:hover:ring-accent-600", "es:dragging:bg-accent-600 es:dragging:ring-accent-600", !disabled && "es:hover:not-dragging:cursor-grab", index === 0 && disableOffset && "es:hidden", index === 1 && disableWidth && "es:hidden", index === 0 && startValue === 1 && "es:justify-self-start", index === 0 && startValue > 1 && "es:justify-self-center", index === 1 && endValue < columns && "es:justify-self-center", index === 1 && endValue === columns && "es:justify-self-end", !flat && !disabled && "es:shadow-xs es:shadow-black/5"),
|
|
118
118
|
style: { gridColumn },
|
|
119
119
|
children: jsx(AnimatePresence, { children: index === state.focusedThumb ? jsxs(motion.div, {
|
|
120
|
-
className: clsx("es:absolute es:bottom-12 es:w-fit es:min-w-5 es:h-6 es:text-nowrap es:-translate-x-1/2", "es:bg-surface-50/80 es:text-surface-700", "es:backdrop-blur-xs", "es:text-12 es:leading-none", "es:py-1 es:px-2 es:rounded-lg", "es:text-center", "es:line-clamp-1", "es:flex es:items-center es:justify-center es:gap-1", "es:shadow", showOuterAsGutter && "es:icon:size-2 es:icon:stroke-3"),
|
|
120
|
+
className: clsx("es:absolute es:bottom-12 es:w-fit es:min-w-5 es:h-6 es:text-nowrap es:-translate-x-1/2", "es:bg-surface-50/80 es:text-surface-700", "es:backdrop-blur-xs", "es:text-12 es:leading-none", "es:py-1 es:px-2 es:rounded-lg", "es:text-center", "es:line-clamp-1", "es:flex es:items-center es:justify-center es:gap-1", "es:shadow-sm", showOuterAsGutter && "es:icon:size-2 es:icon:stroke-3"),
|
|
121
121
|
initial: {
|
|
122
122
|
y: 2,
|
|
123
123
|
opacity: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
2
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "../../Label-C4bJkVti.js";
|
|
3
3
|
import { i as $806e559d0c2c64a0$export$472062a354075cee, o as $806e559d0c2c64a0$export$a590f758a961cb5b, r as $806e559d0c2c64a0$export$2c1b491743890dec, t as $806e559d0c2c64a0$export$105594979f116971 } from "../../Slider-Dryu0gH7.js";
|
|
4
|
-
import { t as NumberPicker } from "../../number-picker-
|
|
4
|
+
import { t as NumberPicker } from "../../number-picker-CBvcBF-r.js";
|
|
5
5
|
import { BaseControl } from "../base-control/base-control.js";
|
|
6
6
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
7
7
|
import { HStack } from "../layout/hstack.js";
|
|
@@ -135,13 +135,13 @@ var Slider = (props) => {
|
|
|
135
135
|
onHoverStart: () => setHoveredThumbs((previous) => [...previous, index]),
|
|
136
136
|
onHoverEnd: () => setHoveredThumbs((previous) => previous.filter((entry) => entry !== index)),
|
|
137
137
|
"aria-label": thumbLabels?.[index],
|
|
138
|
-
className: clsx(!vertical && ["es:h-10 es:w-0.75", "es:row-1"], vertical && ["es:w-10 es:h-0.75", "es:col-1"], "es:z-20", "es:static! es:rounded-md es:transition es:duration-300", "es:origin-center", "es:hover:ring-[0.25px] es:focus-visible:ring-[0.5px] es:dragging:ring-[1px] es:ring-accent-500", "es:transform-none!", "es:dragging:
|
|
138
|
+
className: clsx(!vertical && ["es:h-10 es:w-0.75", "es:row-1"], vertical && ["es:w-10 es:h-0.75", "es:col-1"], "es:z-20", "es:static! es:rounded-md es:transition es:duration-300", "es:origin-center", "es:hover:ring-[0.25px] es:focus-visible:ring-[0.5px] es:dragging:ring-[1px] es:ring-accent-500", "es:transform-none!", "es:dragging:bg-accent-600 es:disabled:bg-secondary-400", "es:focus-visible:outline-2 es:outline-offset-2 es:outline-accent-500/40", "es:bg-accent-500", "es:hover:ring-accent-600", "es:dragging:bg-accent-600 es:dragging:ring-accent-600", !disabled && "es:hover:not-dragging:cursor-grab", "es:justify-self-center", !flat && !disabled && "es:shadow-xs es:shadow-black/5"),
|
|
139
139
|
style: {
|
|
140
140
|
gridColumn: vertical ? void 0 : markerIndices[index],
|
|
141
141
|
gridRow: vertical ? markerIndices[index] : void 0
|
|
142
142
|
},
|
|
143
143
|
children: [thumbContent ? thumbContent(index) : null, jsx(AnimatePresence, { children: state.focusedThumb === index || hoveredThumbs.includes(index) ? jsx(motion.div, {
|
|
144
|
-
className: clsx("es:absolute es:text-nowrap es:w-fit es:min-w-5 es:h-6", !vertical && "es:bottom-12 es:-translate-x-1/2", vertical && "es:left-12 es:-translate-y-1/2", "es:bg-surface-50/80 es:text-surface-700", "es:backdrop-blur-xs", "es:text-12 es:leading-none", "es:py-1 es:px-2 es:rounded-lg", "es:text-center", "es:line-clamp-1", "es:flex es:items-center es:justify-center es:gap-1", "es:shadow", "es:icon:size-2 es:icon:stroke-3"),
|
|
144
|
+
className: clsx("es:absolute es:text-nowrap es:w-fit es:min-w-5 es:h-6", !vertical && "es:bottom-12 es:-translate-x-1/2", vertical && "es:left-12 es:-translate-y-1/2", "es:bg-surface-50/80 es:text-surface-700", "es:backdrop-blur-xs", "es:text-12 es:leading-none", "es:py-1 es:px-2 es:rounded-lg", "es:text-center", "es:line-clamp-1", "es:flex es:items-center es:justify-center es:gap-1", "es:shadow-sm", "es:icon:size-2 es:icon:stroke-3"),
|
|
145
145
|
initial: {
|
|
146
146
|
y: 2,
|
|
147
147
|
opacity: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "../../clsx-DQoRUQAf.js";
|
|
2
|
-
import { t as DecorativeTooltip } from "../../tooltip-
|
|
2
|
+
import { t as DecorativeTooltip } from "../../tooltip-C80k6UfC.js";
|
|
3
3
|
import { cyrb64Hash } from "../../utilities/hash.js";
|
|
4
4
|
import { t as __ } from "../../build-module-BISCoQjQ.js";
|
|
5
5
|
import { imageError } from "../../icons/ui-icons/image-error.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "../../tabs-
|
|
1
|
+
import { i as Tabs, n as TabList, r as TabPanel, t as Tab } from "../../tabs-oYIgL_0S.js";
|
|
2
2
|
export { Tab, TabList, TabPanel, Tabs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ToggleButton } from "../../toggle-button-
|
|
1
|
+
import { t as ToggleButton } from "../../toggle-button-BrQCdMsy.js";
|
|
2
2
|
export { ToggleButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-
|
|
1
|
+
import { n as Tooltip, t as DecorativeTooltip } from "../../tooltip-C80k6UfC.js";
|
|
2
2
|
export { DecorativeTooltip, Tooltip };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { t as SolidColorPicker } from "./solid-color-picker-CDrcphjC.js";
|
|
3
3
|
import { t as ColorSwatch } from "./color-swatch-CEYPwPsn.js";
|
|
4
|
-
import { t as NumberPicker } from "./number-picker-
|
|
5
|
-
import { n as ButtonGroup, t as Button } from "./button-
|
|
4
|
+
import { t as NumberPicker } from "./number-picker-CBvcBF-r.js";
|
|
5
|
+
import { n as ButtonGroup, t as Button } from "./button-Bp6Gvutm.js";
|
|
6
6
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
7
7
|
import { isColorDark } from "./utilities/general.js";
|
|
8
8
|
import { t as sprintf } from "./sprintf-xJRAt4p0.js";
|
|
@@ -1231,17 +1231,17 @@ var gradientTypes = [
|
|
|
1231
1231
|
{
|
|
1232
1232
|
label: __("Linear"),
|
|
1233
1233
|
value: "linear",
|
|
1234
|
-
icon: jsx("div", { className: "es:
|
|
1234
|
+
icon: jsx("div", { className: "es:size-4 es:rounded-full es:bg-linear-to-br es:from-current" })
|
|
1235
1235
|
},
|
|
1236
1236
|
{
|
|
1237
1237
|
label: __("Radial"),
|
|
1238
1238
|
value: "radial",
|
|
1239
|
-
icon: jsx("div", { className: "es:
|
|
1239
|
+
icon: jsx("div", { className: "es:size-4 es:rounded-full es:bg-radial es:from-current/75 es:to-current/10" })
|
|
1240
1240
|
},
|
|
1241
1241
|
{
|
|
1242
1242
|
label: __("Conic"),
|
|
1243
1243
|
value: "conic",
|
|
1244
|
-
icon: jsx("div", { className: "es:
|
|
1244
|
+
icon: jsx("div", { className: "es:size-4 es:rounded-full es:bg-conic es:from-current" })
|
|
1245
1245
|
}
|
|
1246
1246
|
];
|
|
1247
1247
|
var linearDirections = [
|
|
@@ -1372,7 +1372,7 @@ var GradientEditor = (props) => {
|
|
|
1372
1372
|
className: "es:w-full es:space-y-2.5",
|
|
1373
1373
|
children: [
|
|
1374
1374
|
jsx(TypedContainerGroup, { children: jsxs(TypedContainer, { children: [jsx("button", {
|
|
1375
|
-
className: clsx("es:shadow-sm
|
|
1375
|
+
className: clsx("es:shadow-sm es:mx-auto es:block es:h-40 es:rounded-lg es:border es:border-secondary-300 es:transition-[width] es:duration-300 es:ease-spring-snappy", "es:mb-2", squarePreview ? "es:w-40" : "es:w-full"),
|
|
1376
1376
|
style: { backgroundImage: outputGradient },
|
|
1377
1377
|
onClick: () => setSquarePreview((previousValue) => !previousValue),
|
|
1378
1378
|
"aria-label": __("Toggle preview size", "eightshift-ui-components")
|