@eightshift/ui-components 1.9.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/dist/{Button-BMFbEXg1.js → Button-OQ5EIPvt.js} +8 -8
- package/dist/{SelectionManager-D-89MUJW.js → Collection-CJM_asJz.js} +345 -197
- package/dist/{Color-B-cqXgPz.js → Color-B0HgM8f4.js} +1 -1
- package/dist/{ColorSwatch-B6s54Jb3.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
- package/dist/{ComboBox-VR9-vNZv.js → ComboBox-BnlZjJ3T.js} +21 -22
- package/dist/{Dialog-BlYTPzgB.js → Dialog-CIh-hX93.js} +77 -65
- package/dist/{FieldError-DKicm3R0.js → FieldError-D7A6s7O5.js} +2 -2
- package/dist/{FocusScope-EoLYfbMp.js → FocusScope-Cs5_OoeA.js} +6 -4
- package/dist/{Group-D96edUPC.js → Group-D6tr3U_n.js} +5 -6
- package/dist/{Heading-GytTjUsy.js → Heading-DiYTXoIW.js} +3 -4
- package/dist/{Hidden-D3hHnmPI.js → Hidden-DnOd_jPX.js} +2 -2
- package/dist/{Input-BXSxJ_44.js → Input-Se0m3ubj.js} +13 -11
- package/dist/{Label-BtoiUpt8.js → Label-Ca9uelsn.js} +4 -5
- package/dist/{List-Ct3nzFZG.js → List-Br274SP1.js} +16 -8
- package/dist/{ListBox-BMpo-Cem.js → ListBox-D9dFEh5A.js} +36 -23
- package/dist/{OverlayArrow-4epQ99-E.js → OverlayArrow-1jx-ZyCR.js} +75 -13
- package/dist/{Select-aab027f3.esm-C7BxKjSc.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
- package/dist/{Separator-DUhFmbD-.js → Separator-BhZycTUp.js} +9 -7
- package/dist/{Slider-QNPrj4N9.js → Slider-BZNaJylD.js} +20 -24
- package/dist/{Text-DNDWaukZ.js → Text-aOUPPvTO.js} +3 -4
- package/dist/{VisuallyHidden-BHNhi-ls.js → VisuallyHidden-ClTQo25k.js} +2 -2
- package/dist/assets/index.css +37 -0
- package/dist/assets/style-editor.css +5287 -0
- package/dist/assets/style.css +5293 -1
- package/dist/assets/wp-font-enhancements.css +8 -1
- package/dist/assets/wp-ui-enhancements.css +299 -1
- package/dist/components/animated-visibility/animated-visibility.js +17 -21
- package/dist/components/base-control/base-control.js +7 -7
- package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
- package/dist/components/button/button.js +190 -86
- package/dist/components/checkbox/checkbox.js +44 -27
- package/dist/components/color-pickers/color-picker.js +13 -9
- package/dist/components/color-pickers/color-swatch.js +4 -4
- package/dist/components/color-pickers/gradient-editor.js +25 -24
- package/dist/components/color-pickers/solid-color-picker.js +197 -229
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +17 -17
- package/dist/components/draggable/draggable-handle.js +6 -6
- package/dist/components/draggable/draggable.js +1414 -699
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +12 -12
- package/dist/components/expandable/expandable.js +66 -78
- package/dist/components/index.js +2 -3
- package/dist/components/input-field/input-field.js +35 -22
- package/dist/components/layout/hstack.js +1 -1
- package/dist/components/layout/vstack.js +1 -1
- package/dist/components/link-input/link-input.js +69 -57
- package/dist/components/matrix-align/matrix-align.js +34 -86
- package/dist/components/menu/menu.js +22 -23
- package/dist/components/modal/modal.js +24 -25
- package/dist/components/notice/notice.js +32 -32
- package/dist/components/number-picker/number-picker.js +41 -40
- package/dist/components/option-select/option-select.js +9 -4
- package/dist/components/options-panel/options-panel.js +63 -28
- package/dist/components/placeholders/file-placeholder.js +6 -17
- package/dist/components/placeholders/image-placeholder.js +17 -17
- package/dist/components/placeholders/media-placeholder.js +12 -12
- package/dist/components/popover/popover.js +6 -5
- package/dist/components/radio/radio.js +60 -43
- package/dist/components/repeater/repeater-item.js +10 -10
- package/dist/components/repeater/repeater.js +8 -8
- package/dist/components/responsive/mini-responsive.js +41 -41
- package/dist/components/responsive/responsive-legacy.js +33 -33
- package/dist/components/responsive/responsive.js +48 -48
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- package/dist/components/rich-label/rich-label.js +13 -11
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +3 -3
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +21 -21
- package/dist/components/select/v2/async-select.js +37 -47
- package/dist/components/select/v2/shared.js +8 -8
- package/dist/components/select/v2/single-select.js +44 -48
- package/dist/components/slider/column-config-slider.js +25 -25
- package/dist/components/slider/slider.js +173 -182
- package/dist/components/spacer/spacer.js +21 -21
- package/dist/components/tabs/tabs.js +111 -63
- package/dist/components/toggle/switch.js +27 -21
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +160 -83
- package/dist/components/tooltip/tooltip.js +25 -28
- package/dist/{context-KeRYAbEi.js → context-CDOs-GuR.js} +1 -1
- package/dist/{focusSafely-CZY36ssv.js → focusSafely-CiqTTjWy.js} +18 -17
- package/dist/icons/icons.js +52 -0
- package/dist/{index-641ee5b8.esm-DEB-c58F.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
- package/dist/index-BRp93Yfa.js +28318 -0
- package/dist/index-CcCn9HWX.js +44 -0
- package/dist/index.js +2 -3
- package/dist/{multi-select-components-DM3GsNfb.js → multi-select-components-CkF3LyTF.js} +4 -4
- package/dist/{react-select-async.esm-Bq3N1-Wi.js → react-select-async.esm-DcVLw9X5.js} +3 -3
- package/dist/{react-select.esm-B38nY7_U.js → react-select.esm-OZ0cmTjg.js} +3 -3
- package/dist/style-editor.js +1 -0
- package/dist/style.js +1 -1
- package/dist/{textSelection-G2G-nukT.js → textSelection-BlTDSskG.js} +2 -2
- package/dist/{useButton-CFtcz1T6.js → useButton-CmLbE5vg.js} +3 -3
- package/dist/{useEvent-B0yfN_Zu.js → useEvent-cLDJlznQ.js} +1 -1
- package/dist/{useFocusRing-DMAlRYjX.js → useFocusRing-CGp3guTX.js} +1 -1
- package/dist/{useFocusable-BlkOMLma.js → useFocusable-087cO5Ct.js} +9 -6
- package/dist/{useFormReset-BAEM0o25.js → useFormReset-NpLM2e3G.js} +1 -1
- package/dist/{useFormValidation-BNzOc2t9.js → useFormValidation-BWwmZQE2.js} +3 -3
- package/dist/{useLabel-D6FSp5_M.js → useLabel-C85N3Hzw.js} +2 -2
- package/dist/{useLabels-CraZ2Sej.js → useLabels-C_2wWraB.js} +1 -1
- package/dist/{useListState-C3dnPq2F.js → useListState-Z7FB_NzO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-B73fhEA7.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
- package/dist/{useNumberField-CQP9-nH5.js → useNumberField-Bm6_BVl9.js} +10 -10
- package/dist/{useNumberFormatter-Cdctl6fg.js → useNumberFormatter-DlUVKkO7.js} +1 -1
- package/dist/{usePress-xTkcGUkt.js → usePress-rg_OQIGW.js} +15 -14
- package/dist/{useSingleSelectListState-BGXQSTy7.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
- package/dist/{useToggle-Dpw3WpSw.js → useToggle-DzlgBLAJ.js} +4 -4
- package/dist/{useToggleState-BSKwCUIW.js → useToggleState-DhSBQxkp.js} +1 -1
- package/dist/{utils-BSLBwuuO.js → utils-39D0mStj.js} +41 -93
- package/package.json +43 -41
- package/dist/GeistMonoVF.woff2 +0 -0
- package/dist/GeistVF.woff2 +0 -0
- package/dist/assets/fonts.css +0 -1
- package/dist/components/list-box/list-box.js +0 -157
- package/dist/fonts.js +0 -1
- package/dist/index-BYHhzLf-.js +0 -444
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-
|
|
3
|
-
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66, a as $d01f2c01039c0eec$export$72b9695b8216309a } from "../../ComboBox-
|
|
4
|
-
import { $ as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-
|
|
5
|
-
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-
|
|
6
|
-
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-
|
|
7
|
-
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-
|
|
8
|
-
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-
|
|
2
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-OQ5EIPvt.js";
|
|
3
|
+
import { $ as $f86e6c1ec7da6ebb$export$bc3384a35de93d66, a as $d01f2c01039c0eec$export$72b9695b8216309a } from "../../ComboBox-BnlZjJ3T.js";
|
|
4
|
+
import { $ as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../../Group-D6tr3U_n.js";
|
|
5
|
+
import { $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-Se0m3ubj.js";
|
|
6
|
+
import { $ as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../../Label-Ca9uelsn.js";
|
|
7
|
+
import { $ as $eed445e0843c11d0$export$41f133550aa26f48, a as $eed445e0843c11d0$export$a11e76429ed99b4 } from "../../ListBox-D9dFEh5A.js";
|
|
8
|
+
import { $ as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../../Dialog-CIh-hX93.js";
|
|
9
9
|
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
10
10
|
import { icons } from "../../icons/icons.js";
|
|
11
11
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
@@ -83,6 +83,7 @@ const LinkInput = (props) => {
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
const [shouldShowSuggestions, setShouldShowSuggestions] = useState(false);
|
|
86
|
+
useState(false);
|
|
86
87
|
useEffect(() => {
|
|
87
88
|
suggestionList.setFilterText(url);
|
|
88
89
|
if (!canShowSuggestions) {
|
|
@@ -126,17 +127,23 @@ const LinkInput = (props) => {
|
|
|
126
127
|
children: /* @__PURE__ */ jsxs(
|
|
127
128
|
$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,
|
|
128
129
|
{
|
|
129
|
-
className: "es
|
|
130
|
+
className: "es:relative",
|
|
130
131
|
ref: triggerRef,
|
|
131
132
|
children: [
|
|
132
133
|
/* @__PURE__ */ jsx(
|
|
133
134
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
134
135
|
{
|
|
135
|
-
placeholder,
|
|
136
|
+
placeholder: !disabled && placeholder,
|
|
136
137
|
className: clsx(
|
|
137
|
-
"es
|
|
138
|
-
"
|
|
139
|
-
|
|
138
|
+
"es:min-h-10 es:w-full es:rounded-t-lg es:border es:border-secondary-300 es:py-2 es:pl-2 es:pr-1 es:text-sm es:shadow-xs es:transition es:selection:bg-accent-500/20 es:selection:text-accent-950",
|
|
139
|
+
"es:any-focus:outline-hidden",
|
|
140
|
+
"es:focus-visible:ring-2 es:focus-visible:ring-accent-500/50",
|
|
141
|
+
"es:focus-visible:border-accent-500",
|
|
142
|
+
"es:inset-ring es:inset-ring-secondary-100",
|
|
143
|
+
"es:disabled:shadow-none! es:disabled:border-secondary-200 es:disabled:bg-secondary-50 es:disabled:text-secondary-500 es:disabled:cursor-default es:readonly:bg-secondary-50",
|
|
144
|
+
!suggestionList.isLoading && "es:aria-[expanded=false]:rounded-b-lg",
|
|
145
|
+
suggestionList.isLoading && "es:rounded-b-lg",
|
|
146
|
+
(url == null ? void 0 : url.length) > 0 && "es:pr-10",
|
|
140
147
|
className
|
|
141
148
|
)
|
|
142
149
|
}
|
|
@@ -144,10 +151,10 @@ const LinkInput = (props) => {
|
|
|
144
151
|
/* @__PURE__ */ jsx(
|
|
145
152
|
AnimatedVisibility,
|
|
146
153
|
{
|
|
147
|
-
visible: (url == null ? void 0 : url.length) > 0,
|
|
148
|
-
className: "es
|
|
154
|
+
visible: !disabled && (url == null ? void 0 : url.length) > 0,
|
|
155
|
+
className: "es:absolute es:inset-y-1 es:right-1",
|
|
149
156
|
transition: "fade",
|
|
150
|
-
children: /* @__PURE__ */
|
|
157
|
+
children: /* @__PURE__ */ jsxs(
|
|
151
158
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
152
159
|
{
|
|
153
160
|
slot: null,
|
|
@@ -155,18 +162,21 @@ const LinkInput = (props) => {
|
|
|
155
162
|
suggestionList.setFilterText("");
|
|
156
163
|
onChange({ url: void 0, isAnchor: false });
|
|
157
164
|
},
|
|
158
|
-
className: "focus:
|
|
159
|
-
children:
|
|
160
|
-
"
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
className: "es:focus:outline-hidden",
|
|
166
|
+
children: [
|
|
167
|
+
!(shouldShowSuggestions && suggestionList.isLoading) && /* @__PURE__ */ jsx(Tooltip, { text: __("Clear", "eightshift-ui-components"), children: /* @__PURE__ */ jsx(
|
|
168
|
+
"div",
|
|
169
|
+
{
|
|
170
|
+
className: clsx(
|
|
171
|
+
"es:flex es:size-8 es:items-center es:justify-center es:rounded es:bg-white/85 es:text-secondary-600 es:backdrop-blur es:transition es:cursor-pointer",
|
|
172
|
+
"es:hover:bg-red-600/5 es:hover:text-red-600",
|
|
173
|
+
"es:icon:size-6"
|
|
174
|
+
),
|
|
175
|
+
children: removeIcon
|
|
176
|
+
}
|
|
177
|
+
) }),
|
|
178
|
+
shouldShowSuggestions && suggestionList.isLoading && /* @__PURE__ */ jsx("div", { className: "es:p-1.5", children: cloneElement(icons.loader, { className: "es:text-accent-600! es:stroke-2 es:motion-preset-spin es:motion-duration-1500" }) })
|
|
179
|
+
]
|
|
170
180
|
}
|
|
171
181
|
)
|
|
172
182
|
}
|
|
@@ -176,39 +186,32 @@ const LinkInput = (props) => {
|
|
|
176
186
|
)
|
|
177
187
|
}
|
|
178
188
|
),
|
|
179
|
-
canShowSuggestions && shouldShowSuggestions && /* @__PURE__ */ jsxs(
|
|
189
|
+
canShowSuggestions && shouldShowSuggestions && !suggestionList.isLoading && /* @__PURE__ */ jsxs(
|
|
180
190
|
$07b14b47974efb58$export$5b6b19405a83ff9d,
|
|
181
191
|
{
|
|
182
192
|
"aria-label": __("URL suggestions", "eightshift-ui-components"),
|
|
183
193
|
className: ({ isEntering, isExiting }) => clsx(
|
|
184
|
-
"es-
|
|
185
|
-
isEntering && "es-
|
|
186
|
-
isExiting && "es-
|
|
187
|
-
!shouldShowSuggestions && suggestionList.items.length < 1 && "es
|
|
194
|
+
"es:rounded-b-lg es:border es:border-secondary-300 es:bg-white es:shadow-lg es:outline-hidden",
|
|
195
|
+
isEntering && "es:not-motion-reduce:motion-preset-slide-down-sm es:motion-reduce:motion-preset-fade es:motion-duration-300",
|
|
196
|
+
isExiting && "es:not-motion-reduce:motion-translate-y-out-[-2.5%] es:motion-opacity-out-0 es:motion-duration-200",
|
|
197
|
+
!shouldShowSuggestions && suggestionList.items.length < 1 && "es:invisible"
|
|
188
198
|
),
|
|
199
|
+
offset: -2,
|
|
189
200
|
style: {
|
|
190
201
|
width: `${(_a = triggerRef.current) == null ? void 0 : _a.offsetWidth}px`
|
|
191
202
|
},
|
|
192
203
|
children: [
|
|
193
|
-
shouldShowSuggestions && suggestionList.isLoading && /* @__PURE__ */ jsx(
|
|
194
|
-
RichLabel,
|
|
195
|
-
{
|
|
196
|
-
icon: cloneElement(icons.emptyCircle, { className: "es-uic-animate-spin" }),
|
|
197
|
-
label: __("Loading suggestions", "eightshift-ui-components"),
|
|
198
|
-
className: "es-uic-min-h-12 es-uic-p-2"
|
|
199
|
-
}
|
|
200
|
-
),
|
|
201
204
|
shouldShowSuggestions && !suggestionList.isLoading && suggestionList.items.length === 0 && /* @__PURE__ */ jsx(
|
|
202
205
|
RichLabel,
|
|
203
206
|
{
|
|
204
207
|
icon: icons.searchEmpty,
|
|
205
208
|
label: __("No results", "eightshift-ui-components"),
|
|
206
209
|
subtitle: __("Try a different search term.", "eightshift-ui-components"),
|
|
207
|
-
className: "es
|
|
210
|
+
className: "es:min-h-12 es:p-2"
|
|
208
211
|
}
|
|
209
212
|
),
|
|
210
213
|
!suggestionList.isLoading && suggestionList.items.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
211
|
-
/* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, { className: "es
|
|
214
|
+
/* @__PURE__ */ jsx($eed445e0843c11d0$export$41f133550aa26f48, { className: "es:space-y-1 es:p-1", children: (item) => {
|
|
212
215
|
const {
|
|
213
216
|
label: title,
|
|
214
217
|
value: url2,
|
|
@@ -238,10 +241,10 @@ const LinkInput = (props) => {
|
|
|
238
241
|
{
|
|
239
242
|
id: item.value,
|
|
240
243
|
className: clsx(
|
|
241
|
-
"es
|
|
242
|
-
"hover:
|
|
243
|
-
"focus-visible:
|
|
244
|
-
"selected:es
|
|
244
|
+
"es:rounded es:p-1 es:text-sm es:transition",
|
|
245
|
+
"es:hover:border-secondary-300 es:hover:bg-secondary-100",
|
|
246
|
+
"es:focus-visible:border-secondary-300 es:focus-visible:bg-secondary-100",
|
|
247
|
+
"selected:es:bg-accent-600/10 selected:es:text-accent-900 selected:focus-visible:es:bg-accent-600/15"
|
|
245
248
|
),
|
|
246
249
|
textValue: url2,
|
|
247
250
|
children: /* @__PURE__ */ jsx(
|
|
@@ -256,18 +259,27 @@ const LinkInput = (props) => {
|
|
|
256
259
|
}
|
|
257
260
|
);
|
|
258
261
|
} }),
|
|
259
|
-
/* @__PURE__ */ jsx(
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
/* @__PURE__ */ jsx(
|
|
263
|
+
Spacer,
|
|
264
|
+
{
|
|
265
|
+
border: true,
|
|
266
|
+
className: "es:opacity-40"
|
|
267
|
+
}
|
|
268
|
+
),
|
|
269
|
+
/* @__PURE__ */ jsxs("div", { className: "es:flex es:flex-wrap es:items-center es:justify-end es:gap-x-3 es:gap-y-1.5 es:p-2 es:text-sm es:text-secondary-500", children: [
|
|
270
|
+
/* @__PURE__ */ jsxs("div", { className: "es:flex es:gap-1", children: [
|
|
271
|
+
/* @__PURE__ */ jsx("kbd", { className: "es:flex es:size-4 es:items-center es:justify-center es:rounded es:bg-radial es:from-secondary-100 es:to-secondary-200 es:font-mono es:text-xs es:text-secondary-600", children: "↓" }),
|
|
272
|
+
/* @__PURE__ */ jsx("kbd", { className: "es:flex es:size-4 es:items-center es:justify-center es:rounded es:bg-radial es:from-secondary-100 es:to-secondary-200 es:font-mono es:text-xs es:text-secondary-600", children: "↑" }),
|
|
273
|
+
__("Navigate", "eightshift-ui-components")
|
|
274
|
+
] }),
|
|
275
|
+
/* @__PURE__ */ jsxs("div", { className: "es:flex es:gap-1", children: [
|
|
276
|
+
/* @__PURE__ */ jsx("kbd", { className: "es:flex es:size-4 es:items-center es:justify-center es:rounded es:bg-radial es:from-secondary-100 es:to-secondary-200 es:font-mono es:text-xs es:text-secondary-600", children: "↵" }),
|
|
277
|
+
__("Select", "eightshift-ui-components")
|
|
264
278
|
] }),
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
" ",
|
|
270
|
-
__("Hide suggestions", "eightshift-ui-components")
|
|
279
|
+
/* @__PURE__ */ jsxs("div", { className: "es:flex es:gap-1", children: [
|
|
280
|
+
/* @__PURE__ */ jsx("kbd", { className: "es:flex es:h-4 es:items-center es:justify-center es:rounded es:bg-radial es:from-secondary-100 es:to-secondary-200 es:font-mono es:text-xs es:tracking-tighter es:px-0.5 es:text-secondary-600", children: "Esc" }),
|
|
281
|
+
__("Hide", "eightshift-ui-components")
|
|
282
|
+
] })
|
|
271
283
|
] })
|
|
272
284
|
] })
|
|
273
285
|
]
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState, useRef } from "react";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
4
|
-
import { Popover } from "../popover/popover.js";
|
|
5
|
-
import { Button } from "../button/button.js";
|
|
6
3
|
import { icons } from "../../icons/icons.js";
|
|
7
|
-
import { upperFirst, camelCase } from "../../utilities/es-dash.js";
|
|
8
|
-
import {
|
|
9
|
-
import { Tooltip } from "../tooltip/tooltip.js";
|
|
4
|
+
import { upperFirst, camelCase, pascalCase } from "../../utilities/es-dash.js";
|
|
5
|
+
import { Menu, MenuItem } from "../menu/menu.js";
|
|
10
6
|
import { BaseControl } from "../base-control/base-control.js";
|
|
11
7
|
/**
|
|
12
8
|
* A component that can provide a 3x3 or a 2x2 grid of positions to pick from.
|
|
@@ -48,14 +44,8 @@ const MatrixAlign = (props) => {
|
|
|
48
44
|
icon,
|
|
49
45
|
subtitle,
|
|
50
46
|
"aria-label": ariaLabel,
|
|
51
|
-
popoverPosition,
|
|
52
47
|
hidden
|
|
53
48
|
} = props;
|
|
54
|
-
const [currentValue, setCurrentValue] = useState(value);
|
|
55
|
-
const [tooltipText, setTooltipText] = useState(null);
|
|
56
|
-
const [popoverOpen, setPopoverOpen] = useState(false);
|
|
57
|
-
const ref = useRef(null);
|
|
58
|
-
const innerRef = useRef(null);
|
|
59
49
|
if (hidden) {
|
|
60
50
|
return null;
|
|
61
51
|
}
|
|
@@ -106,80 +96,38 @@ const MatrixAlign = (props) => {
|
|
|
106
96
|
availableOn: ["3x3", "2x2"]
|
|
107
97
|
}
|
|
108
98
|
];
|
|
109
|
-
const sizeOptions = allSizeOptions.filter(({ availableOn }) => availableOn.includes(size))
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
forwardedRef: ref,
|
|
129
|
-
tooltip,
|
|
130
|
-
children: !(icon || subtitle) && label
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
/* @__PURE__ */ jsx(
|
|
136
|
-
Popover,
|
|
137
|
-
{
|
|
138
|
-
"aria-label": ariaLabel ?? __("Select position", "eightshift-ui-components"),
|
|
139
|
-
position: popoverPosition,
|
|
140
|
-
triggerRef: ref,
|
|
141
|
-
onOpenChange: setPopoverOpen,
|
|
142
|
-
isOpen: popoverOpen,
|
|
143
|
-
ariaLabel: label ?? tooltip,
|
|
144
|
-
children: /* @__PURE__ */ jsx(
|
|
145
|
-
Tooltip,
|
|
146
|
-
{
|
|
147
|
-
text: tooltipText,
|
|
148
|
-
placement: "bottom",
|
|
149
|
-
delayDuration: 200,
|
|
150
|
-
open: popoverOpen && tooltipText !== null,
|
|
151
|
-
offset: 10,
|
|
152
|
-
triggerRef: innerRef,
|
|
153
|
-
className: tooltipText === null ? "es-uic-opacity-0" : "",
|
|
154
|
-
children: /* @__PURE__ */ jsx(
|
|
155
|
-
"div",
|
|
99
|
+
const sizeOptions = allSizeOptions.filter(({ availableOn }) => availableOn.includes(size));
|
|
100
|
+
return /* @__PURE__ */ jsx(
|
|
101
|
+
BaseControl,
|
|
102
|
+
{
|
|
103
|
+
icon,
|
|
104
|
+
label,
|
|
105
|
+
subtitle,
|
|
106
|
+
inline: true,
|
|
107
|
+
children: /* @__PURE__ */ jsx(
|
|
108
|
+
Menu,
|
|
109
|
+
{
|
|
110
|
+
triggerIcon: icons[`position${size}${upperFirst(camelCase(value))}`],
|
|
111
|
+
triggerProps: { "aria-label": ariaLabel },
|
|
112
|
+
tooltip,
|
|
113
|
+
keepOpen: true,
|
|
114
|
+
children: sizeOptions.map(({ value: itemValue, label: label2 }) => {
|
|
115
|
+
var _a;
|
|
116
|
+
return /* @__PURE__ */ jsx(
|
|
117
|
+
MenuItem,
|
|
156
118
|
{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
setTooltipText(null);
|
|
170
|
-
setPopoverOpen(false);
|
|
171
|
-
onChange(value2);
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
value2
|
|
175
|
-
))
|
|
176
|
-
}
|
|
177
|
-
)
|
|
178
|
-
}
|
|
179
|
-
)
|
|
180
|
-
}
|
|
181
|
-
)
|
|
182
|
-
] });
|
|
119
|
+
endIcon: (_a = icons) == null ? void 0 : _a[`position${size}${pascalCase(itemValue)}`],
|
|
120
|
+
selected: value === itemValue,
|
|
121
|
+
onClick: () => onChange(itemValue),
|
|
122
|
+
children: label2
|
|
123
|
+
},
|
|
124
|
+
itemValue
|
|
125
|
+
);
|
|
126
|
+
})
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
}
|
|
130
|
+
);
|
|
183
131
|
};
|
|
184
132
|
export {
|
|
185
133
|
MatrixAlign
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $72a5793c14baf454$export$8b251419efc915eb, a as $431f98aba6844401$export$1ff3c3f08ae963c0 } from "../../Separator-
|
|
3
|
-
import { $ as $
|
|
4
|
-
import { a as $3674c52c6b3c5bce$export$27d2ad3c5815583e, b as $3674c52c6b3c5bce$export$d9b273488cd8ce6f, c as $3674c52c6b3c5bce$export$2ce376c2cc3355c8, d as $3674c52c6b3c5bce$export$ecabc99eeffab7ca } from "../../Dialog-BlYTPzgB.js";
|
|
2
|
+
import { $ as $72a5793c14baf454$export$8b251419efc915eb, a as $431f98aba6844401$export$1ff3c3f08ae963c0 } from "../../Separator-BhZycTUp.js";
|
|
3
|
+
import { a as $3674c52c6b3c5bce$export$27d2ad3c5815583e, b as $3674c52c6b3c5bce$export$d9b273488cd8ce6f, c as $3674c52c6b3c5bce$export$4b1545b4f2016d26, d as $3674c52c6b3c5bce$export$2ce376c2cc3355c8, e as $3674c52c6b3c5bce$export$ecabc99eeffab7ca } from "../../Dialog-CIh-hX93.js";
|
|
5
4
|
import { icons } from "../../icons/icons.js";
|
|
6
5
|
import { Button } from "../button/button.js";
|
|
7
6
|
import { Popover } from "../popover/popover.js";
|
|
@@ -113,14 +112,14 @@ const Menu = (props) => {
|
|
|
113
112
|
/* @__PURE__ */ jsx(
|
|
114
113
|
Popover,
|
|
115
114
|
{
|
|
116
|
-
className: "
|
|
115
|
+
className: "es:p-0! es:focus:outline-hidden",
|
|
117
116
|
"aria-label": ariaLabel,
|
|
118
|
-
wrapperClassName: clsx(!hasSubmenuItems && "es
|
|
117
|
+
wrapperClassName: clsx(!hasSubmenuItems && "es:overflow-y-auto"),
|
|
119
118
|
...popoverProps,
|
|
120
119
|
children: /* @__PURE__ */ jsx(
|
|
121
120
|
$3674c52c6b3c5bce$export$d9b273488cd8ce6f,
|
|
122
121
|
{
|
|
123
|
-
className: "es
|
|
122
|
+
className: "es:outline-hidden",
|
|
124
123
|
...props,
|
|
125
124
|
...additionalProps,
|
|
126
125
|
children
|
|
@@ -150,15 +149,15 @@ const Menu = (props) => {
|
|
|
150
149
|
const MenuSection = (props) => {
|
|
151
150
|
const { children, label } = props;
|
|
152
151
|
return /* @__PURE__ */ jsxs(
|
|
153
|
-
$
|
|
152
|
+
$3674c52c6b3c5bce$export$4b1545b4f2016d26,
|
|
154
153
|
{
|
|
155
154
|
className: clsx(
|
|
156
|
-
"es
|
|
157
|
-
label && "es
|
|
158
|
-
!label && "
|
|
155
|
+
"es:space-y-1 es:border-b es:border-b-secondary-200 es:last:border-b-0",
|
|
156
|
+
label && "es:pt-2 es:first:pt-1.5 es:last:pb-0",
|
|
157
|
+
!label && "es:has-[>_:only-child]:pb-0"
|
|
159
158
|
),
|
|
160
159
|
children: [
|
|
161
|
-
label && /* @__PURE__ */ jsx($72a5793c14baf454$export$8b251419efc915eb, { className: "es
|
|
160
|
+
label && /* @__PURE__ */ jsx($72a5793c14baf454$export$8b251419efc915eb, { className: "es:ml-1.5 es:text-xs es:font-medium es:text-secondary-400", children: label }),
|
|
162
161
|
children
|
|
163
162
|
]
|
|
164
163
|
}
|
|
@@ -174,7 +173,7 @@ const MenuSection = (props) => {
|
|
|
174
173
|
* @preserve
|
|
175
174
|
*/
|
|
176
175
|
const MenuSeparator = () => {
|
|
177
|
-
return /* @__PURE__ */ jsx($431f98aba6844401$export$1ff3c3f08ae963c0, { className: "es
|
|
176
|
+
return /* @__PURE__ */ jsx($431f98aba6844401$export$1ff3c3f08ae963c0, { className: "es:mb-1 es:border-b es:border-secondary-200/50" });
|
|
178
177
|
};
|
|
179
178
|
/**
|
|
180
179
|
* A menu item.
|
|
@@ -216,12 +215,12 @@ const MenuItem = (props) => {
|
|
|
216
215
|
"aria-label": ariaLabel,
|
|
217
216
|
isDisabled: disabled,
|
|
218
217
|
className: clsx(
|
|
219
|
-
"es
|
|
220
|
-
"first:
|
|
221
|
-
"es
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
disabled ? "es
|
|
218
|
+
"es:mx-1 es:mb-1 es:flex es:min-w-44 es:min-h-8 es:items-center es:gap-1.5",
|
|
219
|
+
"es:first:mt-1 es:icon:size-5 es:icon:text-secondary-500",
|
|
220
|
+
"es:select-none es:rounded-md es:p-1.5 es:text-sm es:transition",
|
|
221
|
+
"es:any-focus:outline-hidden",
|
|
222
|
+
!disabled && "es:hover:bg-secondary-100 es:focus-visible:inset-ring es:focus-visible:inset-ring-secondary-100/30 es:focus-visible:bg-secondary-100 es:contrast-more:focus-visible:bg-accent-500/15",
|
|
223
|
+
disabled ? "es:text-secondary-400" : "es:text-secondary-800",
|
|
225
224
|
className
|
|
226
225
|
),
|
|
227
226
|
onAction: onClick,
|
|
@@ -231,8 +230,8 @@ const MenuItem = (props) => {
|
|
|
231
230
|
(selected === false || checked === false) && icons.dummySpacer,
|
|
232
231
|
icon,
|
|
233
232
|
children,
|
|
234
|
-
shortcut && /* @__PURE__ */ jsx("div", { className: "es
|
|
235
|
-
endIcon && /* @__PURE__ */ jsx("div", { className: clsx(!shortcut && "es
|
|
233
|
+
shortcut && /* @__PURE__ */ jsx("div", { className: "es:ml-auto es:pl-2 es:text-[0.6875rem] es:tracking-tight es:text-secondary-400", children: shortcut }),
|
|
234
|
+
endIcon && /* @__PURE__ */ jsx("div", { className: clsx(!shortcut && "es:ml-auto es:pl-2"), children: endIcon })
|
|
236
235
|
]
|
|
237
236
|
}
|
|
238
237
|
);
|
|
@@ -255,20 +254,20 @@ const SubMenuItem = (props) => {
|
|
|
255
254
|
const { children, trigger, popoverProps } = props;
|
|
256
255
|
return /* @__PURE__ */ jsxs($3674c52c6b3c5bce$export$ecabc99eeffab7ca, { children: [
|
|
257
256
|
cloneElement(trigger, {
|
|
258
|
-
endIcon: /* @__PURE__ */ jsx("span", { className: "es
|
|
257
|
+
endIcon: /* @__PURE__ */ jsx("span", { className: "es:text-secondary-400", children: icons.caretRightFill })
|
|
259
258
|
}),
|
|
260
259
|
/* @__PURE__ */ jsx(
|
|
261
260
|
Popover,
|
|
262
261
|
{
|
|
263
262
|
"aria-label": props["aria-label"] ?? __("Submenu", "eightshift-ui-components"),
|
|
264
|
-
className: "
|
|
263
|
+
className: "es:p-0! es:focus:outline-hidden",
|
|
265
264
|
offset: -1,
|
|
266
265
|
...popoverProps,
|
|
267
266
|
children: /* @__PURE__ */ jsx(
|
|
268
267
|
$3674c52c6b3c5bce$export$d9b273488cd8ce6f,
|
|
269
268
|
{
|
|
270
269
|
"aria-label": props["aria-label"] ?? __("Submenu", "eightshift-ui-components"),
|
|
271
|
-
className: "focus:
|
|
270
|
+
className: "es:focus:outline-hidden",
|
|
272
271
|
children
|
|
273
272
|
}
|
|
274
273
|
)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "../../Heading-
|
|
4
|
-
import { e as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928,
|
|
2
|
+
import { h as $a11501f3d1d39e6c$export$ea8f71083e90600f, i as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, j as $337b884510726a0d$export$14c98a7594375490, k as $5e3802645cc19319$export$1c3ebcada18427bf, l as $de32f1b87079253c$export$d2f961adcb0afbe, m as $86ea4cb521eb2e37$export$2317d149ed6f78c4, n as $337b884510726a0d$export$c6fdb837b070b4ff, g as $de32f1b87079253c$export$2e1e1122cf0cba88, f as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../../Dialog-CIh-hX93.js";
|
|
3
|
+
import { $ as $5cb03073d3f54797$export$a8a3e93435678ff9 } from "../../Heading-DiYTXoIW.js";
|
|
4
|
+
import { e as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $3ef42575df84b30b$export$9d1611c77c2fe928, n as $5dc95899b306f630$export$c9058316764c140e, m as $df56164dff5785e2$export$4338b53315abf666, b as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$29f1550f4b0d4415, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "../../utils-39D0mStj.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
|
-
import React__default, { useState, useEffect, forwardRef, useContext,
|
|
7
|
-
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../../OverlayArrow-
|
|
6
|
+
import React__default, { useState, useEffect, forwardRef, useContext, useMemo, createContext, useRef } from "react";
|
|
7
|
+
import { $ as $d3f049242431219c$export$6d3443f2c48bfc20, a as $fc909762b330b746$export$61c6a8c84e605fb6, b as $d3f049242431219c$export$45fda7c47f93fd48 } from "../../OverlayArrow-1jx-ZyCR.js";
|
|
8
8
|
import { Button } from "../button/button.js";
|
|
9
9
|
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
10
10
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
@@ -66,7 +66,7 @@ function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {
|
|
|
66
66
|
}
|
|
67
67
|
const $f3f84453ead64de5$export$ab57792b9b6974a6 = /* @__PURE__ */ createContext(null);
|
|
68
68
|
const $f3f84453ead64de5$var$InternalModalContext = /* @__PURE__ */ createContext(null);
|
|
69
|
-
|
|
69
|
+
const $f3f84453ead64de5$export$2b77a92f1a5ad772 = /* @__PURE__ */ forwardRef(function Modal(props, ref) {
|
|
70
70
|
let ctx = useContext($f3f84453ead64de5$var$InternalModalContext);
|
|
71
71
|
if (ctx) return /* @__PURE__ */ React__default.createElement($f3f84453ead64de5$var$ModalContent, {
|
|
72
72
|
...props,
|
|
@@ -87,8 +87,7 @@ function $f3f84453ead64de5$var$Modal(props, ref) {
|
|
|
87
87
|
...otherProps,
|
|
88
88
|
modalRef: ref
|
|
89
89
|
}, children));
|
|
90
|
-
}
|
|
91
|
-
const $f3f84453ead64de5$export$2b77a92f1a5ad772 = /* @__PURE__ */ forwardRef($f3f84453ead64de5$var$Modal);
|
|
90
|
+
});
|
|
92
91
|
function $f3f84453ead64de5$var$ModalOverlayWithForwardRef(props, ref) {
|
|
93
92
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $f3f84453ead64de5$export$ab57792b9b6974a6);
|
|
94
93
|
let contextState = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
|
|
@@ -96,8 +95,8 @@ function $f3f84453ead64de5$var$ModalOverlayWithForwardRef(props, ref) {
|
|
|
96
95
|
let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
97
96
|
let objectRef = $df56164dff5785e2$export$4338b53315abf666(ref);
|
|
98
97
|
let modalRef = useRef(null);
|
|
99
|
-
let isOverlayExiting = $
|
|
100
|
-
let isModalExiting = $
|
|
98
|
+
let isOverlayExiting = $d3f049242431219c$export$45fda7c47f93fd48(objectRef, state.isOpen);
|
|
99
|
+
let isModalExiting = $d3f049242431219c$export$45fda7c47f93fd48(modalRef, state.isOpen);
|
|
101
100
|
let isExiting = isOverlayExiting || isModalExiting || props.isExiting || false;
|
|
102
101
|
let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
103
102
|
if (!state.isOpen && !isExiting || isSSR) return null;
|
|
@@ -114,7 +113,7 @@ function $f3f84453ead64de5$var$ModalOverlayInner({ UNSTABLE_portalContainer, ...
|
|
|
114
113
|
let modalRef = props.modalRef;
|
|
115
114
|
let { state } = props;
|
|
116
115
|
let { modalProps, underlayProps } = $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, modalRef);
|
|
117
|
-
let entering = $
|
|
116
|
+
let entering = $d3f049242431219c$export$6d3443f2c48bfc20(props.overlayRef) || props.isEntering || false;
|
|
118
117
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
119
118
|
...props,
|
|
120
119
|
defaultClassName: "react-aria-ModalOverlay",
|
|
@@ -165,7 +164,7 @@ function $f3f84453ead64de5$var$ModalContent(props) {
|
|
|
165
164
|
modalRef
|
|
166
165
|
]);
|
|
167
166
|
let ref = $df56164dff5785e2$export$4338b53315abf666(mergedRefs);
|
|
168
|
-
let entering = $
|
|
167
|
+
let entering = $d3f049242431219c$export$6d3443f2c48bfc20(ref);
|
|
169
168
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
170
169
|
...props,
|
|
171
170
|
defaultClassName: "react-aria-Modal",
|
|
@@ -213,7 +212,7 @@ function $f3f84453ead64de5$var$ModalContent(props) {
|
|
|
213
212
|
*
|
|
214
213
|
* @preserve
|
|
215
214
|
*/
|
|
216
|
-
const
|
|
215
|
+
const Modal2 = (props) => {
|
|
217
216
|
const {
|
|
218
217
|
children,
|
|
219
218
|
shouldCloseOnInteractOutside,
|
|
@@ -249,32 +248,32 @@ const Modal = (props) => {
|
|
|
249
248
|
isOpen: open,
|
|
250
249
|
shouldCloseOnInteractOutside,
|
|
251
250
|
isKeyboardDismissDisabled: noKeyboardDismiss,
|
|
252
|
-
className: clsx(
|
|
253
|
-
"es
|
|
254
|
-
"
|
|
255
|
-
"
|
|
251
|
+
className: ({ isEntering, isExiting }) => clsx(
|
|
252
|
+
"es:fixed es:inset-0 es:z-9999 es:flex es:min-h-full es:items-center es:justify-center es:overflow-y-auto es:bg-black/25 es:p-4 es:text-center es:backdrop-blur",
|
|
253
|
+
isEntering && "es:motion-opacity-in es:motion-duration-150",
|
|
254
|
+
isExiting && "es:motion-opacity-out es:motion-duration-150",
|
|
256
255
|
overlayClassName
|
|
257
256
|
),
|
|
258
257
|
children: /* @__PURE__ */ jsx(
|
|
259
258
|
$f3f84453ead64de5$export$2b77a92f1a5ad772,
|
|
260
259
|
{
|
|
261
|
-
className: clsx(
|
|
262
|
-
"es
|
|
263
|
-
"
|
|
264
|
-
"
|
|
260
|
+
className: ({ isEntering, isExiting }) => clsx(
|
|
261
|
+
"es:w-full es:max-w-lg es:overflow-hidden es:rounded-xl es:border es:border-secondary-100 es:bg-white es:p-5 es:text-left es:align-middle es:shadow-xl es:inset-ring es:inset-ring-secondary-100",
|
|
262
|
+
isEntering && "es:motion-safe:motion-scale-in-95 es:motion-fade-in es:motion-duration-300 es:motion-ease-spring-smooth/scale",
|
|
263
|
+
isExiting && "es:motion-safe:motion-scale-out-95 es:motion-fade-out es:motion-duration-250 es:motion-ease-spring-smooth/scale",
|
|
265
264
|
className
|
|
266
265
|
),
|
|
267
266
|
children: /* @__PURE__ */ jsx(
|
|
268
267
|
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
269
268
|
{
|
|
270
|
-
className: "es
|
|
269
|
+
className: "es:relative es:text-sm es:outline-hidden",
|
|
271
270
|
"aria-label": ariaLabel,
|
|
272
271
|
children: ({ close }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
273
272
|
/* @__PURE__ */ jsxs(HStack, { children: [
|
|
274
273
|
title && /* @__PURE__ */ jsx(
|
|
275
274
|
$5cb03073d3f54797$export$a8a3e93435678ff9,
|
|
276
275
|
{
|
|
277
|
-
className: "es
|
|
276
|
+
className: "es:text-balance es:text-base",
|
|
278
277
|
slot: "title",
|
|
279
278
|
children: title
|
|
280
279
|
}
|
|
@@ -282,7 +281,7 @@ const Modal = (props) => {
|
|
|
282
281
|
!noCloseButton && /* @__PURE__ */ jsx(
|
|
283
282
|
Button,
|
|
284
283
|
{
|
|
285
|
-
className: "es
|
|
284
|
+
className: "es:ml-auto",
|
|
286
285
|
onPress: close,
|
|
287
286
|
type: "ghost",
|
|
288
287
|
size: "small",
|
|
@@ -302,5 +301,5 @@ const Modal = (props) => {
|
|
|
302
301
|
] });
|
|
303
302
|
};
|
|
304
303
|
export {
|
|
305
|
-
Modal
|
|
304
|
+
Modal2 as Modal
|
|
306
305
|
};
|