@sanity/ui 3.0.11 → 3.0.12-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks-cjs/_visual-editing.js +1124 -628
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +1127 -631
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +3 -7
- package/dist/_visual-editing.d.ts +3 -7
- package/dist/index.d.mts +11 -12
- package/dist/index.d.ts +11 -12
- package/dist/index.js +252 -295
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +254 -297
- package/dist/index.mjs.map +1 -1
- package/package.json +26 -40
- package/src/core/components/autocomplete/autocomplete.tsx +2 -2
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +70 -40
- package/src/core/components/dialog/dialog.tsx +10 -14
- package/src/core/components/hotkeys/hotkeys.tsx +2 -2
- package/src/core/components/menu/menuGroup.tsx +2 -2
- package/src/core/components/menu/menuItem.tsx +4 -4
- package/src/core/components/skeleton/skeleton.tsx +2 -2
- package/src/core/components/skeleton/textSkeleton.tsx +5 -5
- package/src/core/components/tree/tree.tsx +176 -182
- package/src/core/components/tree/treeGroup.tsx +2 -4
- package/src/core/components/tree/treeItem.tsx +5 -5
- package/src/core/hooks/index.ts +1 -1
- package/src/core/hooks/useArrayProp.ts +5 -17
- package/src/core/primitives/avatar/avatar.tsx +14 -16
- package/src/core/primitives/avatar/avatarCounter.tsx +14 -16
- package/src/core/primitives/avatar/avatarStack.tsx +2 -2
- package/src/core/primitives/badge/badge.tsx +3 -3
- package/src/core/primitives/box/box.tsx +26 -26
- package/src/core/primitives/button/button.tsx +11 -11
- package/src/core/primitives/card/card.tsx +8 -8
- package/src/core/primitives/code/code.tsx +2 -2
- package/src/core/primitives/container/container.tsx +2 -2
- package/src/core/primitives/flex/flex.tsx +6 -6
- package/src/core/primitives/grid/grid.tsx +9 -9
- package/src/core/primitives/heading/heading.tsx +3 -3
- package/src/core/primitives/inline/inline.tsx +2 -2
- package/src/core/primitives/kbd/kbd.tsx +2 -2
- package/src/core/primitives/label/label.tsx +3 -3
- package/src/core/primitives/popover/floating-ui/size.ts +32 -16
- package/src/core/primitives/popover/popover.tsx +355 -328
- package/src/core/primitives/popover/popoverCard.tsx +123 -125
- package/src/core/primitives/select/select.tsx +6 -5
- package/src/core/primitives/stack/stack.tsx +2 -2
- package/src/core/primitives/text/text.tsx +3 -3
- package/src/core/primitives/textArea/textArea.tsx +6 -5
- package/src/core/primitives/textInput/textInput.tsx +6 -5
- package/src/core/primitives/tooltip/tooltip.tsx +73 -44
- package/src/core/primitives/tooltip/tooltipCard.tsx +83 -85
- package/src/core/utils/layer/layerProvider.tsx +3 -2
- package/src/core/utils/virtualList/virtualList.tsx +48 -23
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { buildTheme, createColorTheme as createColorTheme$1, hexToRgb as hexToRgb$1, hslToRgb as hslToRgb$1, multiply as multiply$1, parseColor as parseColor$1, rgbToHex as rgbToHex$1, rgbToHsl as rgbToHsl$1, rgba as rgba$1, screen as screen$1, getTheme_v2, getScopedTheme } from "@sanity/ui/theme";
|
|
2
|
-
import { jsx,
|
|
2
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { c } from "react-compiler-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { createContext, useContext, forwardRef, useId, useState, useEffect, Children, isValidElement, cloneElement, useDebugValue, useSyncExternalStore, useRef, useImperativeHandle, lazy, Suspense, useLayoutEffect } from "react";
|
|
5
5
|
import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1, css, styled, keyframes } from "styled-components";
|
|
6
6
|
import ReactIs, { isValidElementType } from "react-is";
|
|
7
7
|
import { SpinnerIcon, CheckmarkIcon, RemoveIcon, ChevronDownIcon, CloseIcon, ChevronRightIcon } from "@sanity/icons";
|
|
8
|
-
import { detectOverflow, autoPlacement, flip, offset, shift, arrow, hide,
|
|
8
|
+
import { detectOverflow, useFloating, autoPlacement, flip, offset, shift, arrow, hide, autoUpdate } from "@floating-ui/react-dom";
|
|
9
9
|
import { motion, AnimatePresence } from "framer-motion";
|
|
10
10
|
import { ResizeObserver } from "@juggle/resize-observer";
|
|
11
11
|
import { createPortal } from "react-dom";
|
|
@@ -195,125 +195,6 @@ function responsiveTextAlignStyle(props) {
|
|
|
195
195
|
function responsiveTextFont(props) {
|
|
196
196
|
return responsiveFont("text", props);
|
|
197
197
|
}
|
|
198
|
-
function useArrayProp(val, defaultVal) {
|
|
199
|
-
const $ = c(3);
|
|
200
|
-
let t0;
|
|
201
|
-
$[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
|
|
202
|
-
const [t1, setCache] = useState(t0), [cachedVal, cachedHash] = t1, hash = JSON.stringify(val ?? defaultVal);
|
|
203
|
-
return hash !== cachedHash && setCache([_getArrayProp(val, defaultVal), hash]), cachedVal;
|
|
204
|
-
}
|
|
205
|
-
function useClickOutsideEvent(listener, t0, boundaryElement) {
|
|
206
|
-
const $ = c(9), elementsArg = t0 === void 0 ? _temp$a : t0;
|
|
207
|
-
let t1;
|
|
208
|
-
$[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
|
|
209
|
-
if (!listener)
|
|
210
|
-
return;
|
|
211
|
-
const target = evt.target;
|
|
212
|
-
if (!(target instanceof Node))
|
|
213
|
-
return;
|
|
214
|
-
const resolvedBoundaryElement = boundaryElement?.();
|
|
215
|
-
if (resolvedBoundaryElement && !resolvedBoundaryElement.contains(target))
|
|
216
|
-
return;
|
|
217
|
-
const elements = elementsArg().flat();
|
|
218
|
-
for (const el of elements)
|
|
219
|
-
if (el && (target === el || el.contains(target)))
|
|
220
|
-
return;
|
|
221
|
-
listener(evt);
|
|
222
|
-
}, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
|
|
223
|
-
const onEvent = useEffectEvent(t1), hasListener = !!listener;
|
|
224
|
-
let t2;
|
|
225
|
-
$[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
|
|
226
|
-
if (!hasListener)
|
|
227
|
-
return;
|
|
228
|
-
const handleEvent = (evt_0) => onEvent(evt_0);
|
|
229
|
-
return document.addEventListener("mousedown", handleEvent), () => {
|
|
230
|
-
document.removeEventListener("mousedown", handleEvent);
|
|
231
|
-
};
|
|
232
|
-
}, $[4] = hasListener, $[5] = onEvent, $[6] = t2) : t2 = $[6];
|
|
233
|
-
let t3;
|
|
234
|
-
$[7] !== hasListener ? (t3 = [hasListener], $[7] = hasListener, $[8] = t3) : t3 = $[8], useEffect(t2, t3), useDebugValue(listener ? "MouseDown On" : "MouseDown Off");
|
|
235
|
-
}
|
|
236
|
-
function _temp$a() {
|
|
237
|
-
return EMPTY_ARRAY;
|
|
238
|
-
}
|
|
239
|
-
function useCustomValidity(ref, customValidity) {
|
|
240
|
-
const $ = c(4);
|
|
241
|
-
let t0, t1;
|
|
242
|
-
$[0] !== customValidity || $[1] !== ref ? (t0 = () => {
|
|
243
|
-
ref.current?.setCustomValidity(customValidity || "");
|
|
244
|
-
}, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), useEffect(t0, t1);
|
|
245
|
-
}
|
|
246
|
-
const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
|
|
247
|
-
function _createElementRectValueListener() {
|
|
248
|
-
return {
|
|
249
|
-
subscribe(element, subscriber) {
|
|
250
|
-
const resizeObserver = new _ResizeObserver(([entry]) => {
|
|
251
|
-
subscriber({
|
|
252
|
-
_contentRect: entry.contentRect,
|
|
253
|
-
border: {
|
|
254
|
-
width: entry.borderBoxSize[0].inlineSize,
|
|
255
|
-
height: entry.borderBoxSize[0].blockSize
|
|
256
|
-
},
|
|
257
|
-
content: {
|
|
258
|
-
width: entry.contentRect.width,
|
|
259
|
-
height: entry.contentRect.height
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
});
|
|
263
|
-
return resizeObserver.observe(element), () => {
|
|
264
|
-
resizeObserver.unobserve(element), resizeObserver.disconnect();
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
function _createElementSizeObserver() {
|
|
270
|
-
const disposeCache = /* @__PURE__ */ new WeakMap(), subscribersCache = /* @__PURE__ */ new WeakMap();
|
|
271
|
-
return {
|
|
272
|
-
subscribe(element, subscriber) {
|
|
273
|
-
const subscribers = subscribersCache.get(element) || [];
|
|
274
|
-
let dispose = disposeCache.get(element);
|
|
275
|
-
return subscribersCache.has(element) || (subscribersCache.set(element, subscribers), dispose = _createElementRectValueListener().subscribe(element, (elementRect) => {
|
|
276
|
-
for (const sub of subscribers)
|
|
277
|
-
sub(elementRect);
|
|
278
|
-
})), subscribers.push(subscriber), () => {
|
|
279
|
-
const idx = subscribers.indexOf(subscriber);
|
|
280
|
-
idx > -1 && subscribers.splice(idx, 1), subscribers.length === 0 && dispose && dispose();
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
function useElementSize(element) {
|
|
286
|
-
const $ = c(3), [size2, setSize] = useState(null);
|
|
287
|
-
let t0, t1;
|
|
288
|
-
return $[0] !== element ? (t0 = () => {
|
|
289
|
-
if (element)
|
|
290
|
-
return _elementSizeObserver.subscribe(element, setSize);
|
|
291
|
-
}, t1 = [element], $[0] = element, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1), size2;
|
|
292
|
-
}
|
|
293
|
-
function useGlobalKeyDown(onKeyDown) {
|
|
294
|
-
const $ = c(5);
|
|
295
|
-
let t0;
|
|
296
|
-
$[0] !== onKeyDown ? (t0 = (event) => onKeyDown(event), $[0] = onKeyDown, $[1] = t0) : t0 = $[1];
|
|
297
|
-
const handleKeyDown = useEffectEvent(t0);
|
|
298
|
-
let t1;
|
|
299
|
-
$[2] !== handleKeyDown ? (t1 = () => {
|
|
300
|
-
const handler = (event_0) => handleKeyDown(event_0);
|
|
301
|
-
return window.addEventListener("keydown", handler), () => window.removeEventListener("keydown", handler);
|
|
302
|
-
}, $[2] = handleKeyDown, $[3] = t1) : t1 = $[3];
|
|
303
|
-
let t2;
|
|
304
|
-
$[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[4] = t2) : t2 = $[4], useEffect(t1, t2);
|
|
305
|
-
}
|
|
306
|
-
function useMatchMedia(mediaQueryString, getServerSnapshot2) {
|
|
307
|
-
const $ = c(4);
|
|
308
|
-
useDebugValue(mediaQueryString);
|
|
309
|
-
let t0;
|
|
310
|
-
$[0] !== mediaQueryString ? (t0 = (onStoreChange) => {
|
|
311
|
-
const media = window.matchMedia(mediaQueryString);
|
|
312
|
-
return media.addEventListener("change", onStoreChange), () => media.removeEventListener("change", onStoreChange);
|
|
313
|
-
}, $[0] = mediaQueryString, $[1] = t0) : t0 = $[1];
|
|
314
|
-
let t1;
|
|
315
|
-
return $[2] !== mediaQueryString ? (t1 = () => window.matchMedia(mediaQueryString).matches, $[2] = mediaQueryString, $[3] = t1) : t1 = $[3], useSyncExternalStore(t0, t1, getServerSnapshot2);
|
|
316
|
-
}
|
|
317
198
|
function getGlobalScope() {
|
|
318
199
|
if (typeof globalThis < "u") return globalThis;
|
|
319
200
|
if (typeof window < "u") return window;
|
|
@@ -394,75 +275,6 @@ function useTheme_v2() {
|
|
|
394
275
|
let t1;
|
|
395
276
|
return $[0] !== t0 ? (t1 = getTheme_v2(t0), $[0] = t0, $[1] = t1) : t1 = $[1], t1;
|
|
396
277
|
}
|
|
397
|
-
function _getMediaQuery(media, index) {
|
|
398
|
-
return index === 0 ? `screen and (max-width: ${media[index] - 1}px)` : index === media.length ? `screen and (min-width: ${media[index - 1]}px)` : `screen and (min-width: ${media[index - 1]}px) and (max-width: ${media[index] - 1}px)`;
|
|
399
|
-
}
|
|
400
|
-
function _createMediaStore(media) {
|
|
401
|
-
const mediaLen = media.length;
|
|
402
|
-
let sizes;
|
|
403
|
-
const getSizes = () => {
|
|
404
|
-
if (!sizes) {
|
|
405
|
-
sizes = [];
|
|
406
|
-
for (let index = mediaLen; index > -1; index -= 1) {
|
|
407
|
-
const mediaQuery = _getMediaQuery(media, index);
|
|
408
|
-
sizes.push({
|
|
409
|
-
index,
|
|
410
|
-
mq: window.matchMedia(mediaQuery)
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
return sizes;
|
|
415
|
-
};
|
|
416
|
-
return {
|
|
417
|
-
getSnapshot: () => {
|
|
418
|
-
for (const {
|
|
419
|
-
index,
|
|
420
|
-
mq
|
|
421
|
-
} of getSizes())
|
|
422
|
-
if (mq.matches) return index;
|
|
423
|
-
return 0;
|
|
424
|
-
},
|
|
425
|
-
subscribe: (onStoreChange) => {
|
|
426
|
-
const disposeFns = [];
|
|
427
|
-
for (const {
|
|
428
|
-
mq
|
|
429
|
-
} of getSizes()) {
|
|
430
|
-
const handleChange = () => {
|
|
431
|
-
mq.matches && onStoreChange();
|
|
432
|
-
};
|
|
433
|
-
mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
|
|
434
|
-
}
|
|
435
|
-
return () => {
|
|
436
|
-
for (const disposeFn of disposeFns)
|
|
437
|
-
disposeFn();
|
|
438
|
-
};
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
function getServerSnapshot() {
|
|
443
|
-
return 0;
|
|
444
|
-
}
|
|
445
|
-
function useMediaIndex() {
|
|
446
|
-
const $ = c(2), {
|
|
447
|
-
media
|
|
448
|
-
} = useTheme_v2();
|
|
449
|
-
let t0;
|
|
450
|
-
$[0] !== media ? (t0 = _createMediaStore(media), $[0] = media, $[1] = t0) : t0 = $[1];
|
|
451
|
-
const store = t0;
|
|
452
|
-
return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
|
|
453
|
-
}
|
|
454
|
-
function usePrefersDark(t0) {
|
|
455
|
-
return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$9 : t0);
|
|
456
|
-
}
|
|
457
|
-
function _temp$9() {
|
|
458
|
-
return !1;
|
|
459
|
-
}
|
|
460
|
-
function usePrefersReducedMotion(t0) {
|
|
461
|
-
return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$8 : t0);
|
|
462
|
-
}
|
|
463
|
-
function _temp$8() {
|
|
464
|
-
return !1;
|
|
465
|
-
}
|
|
466
278
|
function responsiveBorderStyle() {
|
|
467
279
|
return [border, borderTop, borderRight, borderBottom, borderLeft];
|
|
468
280
|
}
|
|
@@ -1176,7 +988,7 @@ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1176
988
|
displayName: "StyledLabel",
|
|
1177
989
|
componentId: "sc-1luap7z-0"
|
|
1178
990
|
})(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), Label = forwardRef(function(props, ref) {
|
|
1179
|
-
const $ = c(
|
|
991
|
+
const $ = c(26);
|
|
1180
992
|
let accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
|
|
1181
993
|
$[0] !== props ? ({
|
|
1182
994
|
accent,
|
|
@@ -1197,9 +1009,12 @@ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1197
1009
|
let t22;
|
|
1198
1010
|
$[11] !== children ? (t22 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t22) : t22 = $[12], children = t22;
|
|
1199
1011
|
}
|
|
1200
|
-
|
|
1012
|
+
let t2;
|
|
1013
|
+
$[13] !== align ? (t2 = _getArrayProp(align), $[13] = align, $[14] = t2) : t2 = $[14];
|
|
1014
|
+
let t3;
|
|
1015
|
+
$[15] !== size2 ? (t3 = _getArrayProp(size2), $[15] = size2, $[16] = t3) : t3 = $[16];
|
|
1201
1016
|
let t4;
|
|
1202
|
-
return $[
|
|
1017
|
+
return $[17] !== accent || $[18] !== children || $[19] !== muted || $[20] !== ref || $[21] !== restProps || $[22] !== t2 || $[23] !== t3 || $[24] !== weight ? (t4 = /* @__PURE__ */ jsx(StyledLabel, { "data-ui": "Label", ...restProps, $accent: accent, $align: t2, $muted: muted, $size: t3, $weight: weight, ref, children }), $[17] = accent, $[18] = children, $[19] = muted, $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3, $[24] = weight, $[25] = t4) : t4 = $[25], t4;
|
|
1203
1018
|
});
|
|
1204
1019
|
Label.displayName = "ForwardRef(Label)";
|
|
1205
1020
|
const avatarStyle = {
|
|
@@ -1369,7 +1184,7 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1369
1184
|
displayName: "AvatarImage",
|
|
1370
1185
|
componentId: "sc-1rj7kl0-6"
|
|
1371
1186
|
})(avatarStyle.image), Avatar = forwardRef(function(props, ref) {
|
|
1372
|
-
const $ = c(
|
|
1187
|
+
const $ = c(46);
|
|
1373
1188
|
let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
|
|
1374
1189
|
$[0] !== props ? ({
|
|
1375
1190
|
__unstable_hideInnerStroke,
|
|
@@ -1387,7 +1202,7 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1387
1202
|
} = props, $[0] = props, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = asProp, $[5] = initials, $[6] = onImageLoadError, $[7] = restProps, $[8] = src, $[9] = t0, $[10] = t1, $[11] = t2, $[12] = title) : (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], asProp = $[4], initials = $[5], onImageLoadError = $[6], restProps = $[7], src = $[8], t0 = $[9], t1 = $[10], t2 = $[11], title = $[12]);
|
|
1388
1203
|
const color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, {
|
|
1389
1204
|
avatar
|
|
1390
|
-
} = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size2 =
|
|
1205
|
+
} = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size2 = _getArrayProp(sizeProp), _sizeRem = (avatar.sizes[size2[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = useId(), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = useState(!1), imageId = `avatar-image-${elementId}`;
|
|
1391
1206
|
let t3, t4;
|
|
1392
1207
|
$[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t3 = () => {
|
|
1393
1208
|
if (arrowPosition === arrowPositionProp)
|
|
@@ -1403,30 +1218,26 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1403
1218
|
$[20] !== onImageLoadError ? (t7 = () => {
|
|
1404
1219
|
setImageFailed(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
|
|
1405
1220
|
}, $[20] = onImageLoadError, $[21] = t7) : t7 = $[21];
|
|
1406
|
-
const handleImageError = t7;
|
|
1407
|
-
let t8;
|
|
1408
|
-
$[22] !== size2 ? (t8 = size2.map(_temp$7), $[22] = size2, $[23] = t8) : t8 = $[23];
|
|
1409
|
-
const initialsSize = t8, t9 = typeof as == "string" ? as : void 0;
|
|
1221
|
+
const handleImageError = t7, T0 = StyledAvatar, t8 = typeof as == "string" ? as : void 0, t9 = "Avatar";
|
|
1410
1222
|
let t10;
|
|
1411
|
-
$[
|
|
1223
|
+
$[22] !== color ? (t10 = /* @__PURE__ */ jsx(Arrow$1, { children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[22] = color, $[23] = t10) : t10 = $[23];
|
|
1412
1224
|
let t11;
|
|
1413
|
-
$[
|
|
1225
|
+
$[24] !== __unstable_hideInnerStroke || $[25] !== _radius || $[26] !== _sizeRem || $[27] !== handleImageError || $[28] !== imageFailed || $[29] !== imageId || $[30] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ jsxs(AvatarImage, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
|
|
1414
1226
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("pattern", { id: imageId, patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx("image", { href: src, width: "1", height: "1", onError: handleImageError }) }) }),
|
|
1415
1227
|
/* @__PURE__ */ jsx("circle", { cx: _radius, cy: _radius, r: _radius, fill: `url(#${imageId})` }),
|
|
1416
1228
|
!__unstable_hideInnerStroke && /* @__PURE__ */ jsx(BgStroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" }),
|
|
1417
1229
|
/* @__PURE__ */ jsx(Stroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" })
|
|
1418
|
-
] }), $[
|
|
1419
|
-
|
|
1420
|
-
$[34] !== imageFailed || $[35] !== initials || $[36] !== initialsSize || $[37] !== src ? (t12 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Initials, { children: /* @__PURE__ */ jsx(InitialsLabel, { forwardedAs: "span", size: initialsSize, weight: "medium", children: initials }) }) }), $[34] = imageFailed, $[35] = initials, $[36] = initialsSize, $[37] = src, $[38] = t12) : t12 = $[38];
|
|
1230
|
+
] }), $[24] = __unstable_hideInnerStroke, $[25] = _radius, $[26] = _sizeRem, $[27] = handleImageError, $[28] = imageFailed, $[29] = imageId, $[30] = src, $[31] = t11) : t11 = $[31];
|
|
1231
|
+
const t12 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Initials, { children: /* @__PURE__ */ jsx(InitialsLabel, { forwardedAs: "span", size: size2.map(_temp$a), weight: "medium", children: initials }) }) });
|
|
1421
1232
|
let t13;
|
|
1422
|
-
return $[
|
|
1233
|
+
return $[32] !== T0 || $[33] !== arrowPosition || $[34] !== as || $[35] !== color || $[36] !== ref || $[37] !== restProps || $[38] !== size2 || $[39] !== status || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 || $[43] !== t8 || $[44] !== title ? (t13 = /* @__PURE__ */ jsxs(T0, { as, "data-as": t8, "data-ui": t9, ...restProps, $color: color, $size: size2, "aria-label": title, "data-arrow-position": arrowPosition, "data-status": status, ref, title, children: [
|
|
1423
1234
|
t10,
|
|
1424
1235
|
t11,
|
|
1425
1236
|
t12
|
|
1426
|
-
] }), $[
|
|
1237
|
+
] }), $[32] = T0, $[33] = arrowPosition, $[34] = as, $[35] = color, $[36] = ref, $[37] = restProps, $[38] = size2, $[39] = status, $[40] = t10, $[41] = t11, $[42] = t12, $[43] = t8, $[44] = title, $[45] = t13) : t13 = $[45], t13;
|
|
1427
1238
|
});
|
|
1428
1239
|
Avatar.displayName = "ForwardRef(Avatar)";
|
|
1429
|
-
function _temp$
|
|
1240
|
+
function _temp$a(s) {
|
|
1430
1241
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
1431
1242
|
}
|
|
1432
1243
|
function _responsiveAvatarCounterSizeStyle(props) {
|
|
@@ -1469,20 +1280,23 @@ const StyledAvatarCounter = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1469
1280
|
displayName: "StyledAvatarCounter",
|
|
1470
1281
|
componentId: "sc-1ydx86y-0"
|
|
1471
1282
|
})(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = forwardRef(function(props, ref) {
|
|
1472
|
-
const $ = c(
|
|
1283
|
+
const $ = c(20), {
|
|
1473
1284
|
count,
|
|
1474
1285
|
size: t0
|
|
1475
|
-
} = props,
|
|
1476
|
-
let t1;
|
|
1477
|
-
$[0] !==
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1286
|
+
} = props, sizeProp = t0 === void 0 ? 1 : t0;
|
|
1287
|
+
let T0, T1, t1, t2, t3, t4, t5;
|
|
1288
|
+
if ($[0] !== ref || $[1] !== sizeProp) {
|
|
1289
|
+
const size2 = _getArrayProp(sizeProp);
|
|
1290
|
+
T1 = StyledAvatarCounter, t3 = size2, t4 = "AvatarCounter", t5 = ref, T0 = Label, t1 = "span", t2 = size2.map(_temp$9), $[0] = ref, $[1] = sizeProp, $[2] = T0, $[3] = T1, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5;
|
|
1291
|
+
} else
|
|
1292
|
+
T0 = $[2], T1 = $[3], t1 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8];
|
|
1293
|
+
let t6;
|
|
1294
|
+
$[9] !== T0 || $[10] !== count || $[11] !== t1 || $[12] !== t2 ? (t6 = /* @__PURE__ */ jsx(T0, { as: t1, size: t2, weight: "medium", children: count }), $[9] = T0, $[10] = count, $[11] = t1, $[12] = t2, $[13] = t6) : t6 = $[13];
|
|
1295
|
+
let t7;
|
|
1296
|
+
return $[14] !== T1 || $[15] !== t3 || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsx(T1, { $size: t3, "data-ui": t4, ref: t5, children: t6 }), $[14] = T1, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19], t7;
|
|
1483
1297
|
});
|
|
1484
1298
|
AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
|
|
1485
|
-
function _temp$
|
|
1299
|
+
function _temp$9(s) {
|
|
1486
1300
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
1487
1301
|
}
|
|
1488
1302
|
const BASE_STYLES = css`
|
|
@@ -1517,7 +1331,7 @@ const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1517
1331
|
displayName: "StyledAvatarStack",
|
|
1518
1332
|
componentId: "sc-cysmbb-0"
|
|
1519
1333
|
})(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = forwardRef(function(props, ref) {
|
|
1520
|
-
const $ = c(
|
|
1334
|
+
const $ = c(38);
|
|
1521
1335
|
let childrenProp, restProps, t0, t1;
|
|
1522
1336
|
$[0] !== props ? ({
|
|
1523
1337
|
children: childrenProp,
|
|
@@ -1525,29 +1339,33 @@ const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1525
1339
|
size: t1,
|
|
1526
1340
|
...restProps
|
|
1527
1341
|
} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1) : (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]);
|
|
1528
|
-
const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1
|
|
1529
|
-
let t3;
|
|
1530
|
-
$[5] !==
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
size: size2
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
t4,
|
|
1542
|
-
|
|
1543
|
-
|
|
1342
|
+
const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1;
|
|
1343
|
+
let T0, t2, t3, t4, t5, t6, t7, t8;
|
|
1344
|
+
if ($[5] !== childrenProp || $[6] !== maxLengthProp || $[7] !== ref || $[8] !== restProps || $[9] !== sizeProp) {
|
|
1345
|
+
const children = Children.toArray(childrenProp).filter(isValidElement), maxLength = Math.max(maxLengthProp, 0);
|
|
1346
|
+
let t92;
|
|
1347
|
+
$[18] !== sizeProp ? (t92 = _getArrayProp(sizeProp), $[18] = sizeProp, $[19] = t92) : t92 = $[19];
|
|
1348
|
+
const size2 = t92, len = children.length, visibleCount = maxLength - 1, extraCount = len - visibleCount, visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children;
|
|
1349
|
+
T0 = StyledAvatarStack, t2 = "AvatarStack", t3 = restProps, t4 = ref, t5 = size2, $[20] !== len || $[21] !== size2 ? (t6 = len === 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }) }), $[20] = len, $[21] = size2, $[22] = t6) : t6 = $[22], $[23] !== extraCount || $[24] !== len || $[25] !== size2 ? (t7 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 }) }), $[23] = extraCount, $[24] = len, $[25] = size2, $[26] = t7) : t7 = $[26];
|
|
1350
|
+
let t10;
|
|
1351
|
+
$[27] !== size2 ? (t10 = (child, childIndex) => /* @__PURE__ */ jsx("div", { children: cloneElement(child, {
|
|
1352
|
+
size: size2
|
|
1353
|
+
}) }, String(childIndex)), $[27] = size2, $[28] = t10) : t10 = $[28], t8 = visibleChildren.map(t10), $[5] = childrenProp, $[6] = maxLengthProp, $[7] = ref, $[8] = restProps, $[9] = sizeProp, $[10] = T0, $[11] = t2, $[12] = t3, $[13] = t4, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8;
|
|
1354
|
+
} else
|
|
1355
|
+
T0 = $[10], t2 = $[11], t3 = $[12], t4 = $[13], t5 = $[14], t6 = $[15], t7 = $[16], t8 = $[17];
|
|
1356
|
+
let t9;
|
|
1357
|
+
return $[29] !== T0 || $[30] !== t2 || $[31] !== t3 || $[32] !== t4 || $[33] !== t5 || $[34] !== t6 || $[35] !== t7 || $[36] !== t8 ? (t9 = /* @__PURE__ */ jsxs(T0, { "data-ui": t2, ...t3, ref: t4, $size: t5, children: [
|
|
1358
|
+
t6,
|
|
1359
|
+
t7,
|
|
1360
|
+
t8
|
|
1361
|
+
] }), $[29] = T0, $[30] = t2, $[31] = t3, $[32] = t4, $[33] = t5, $[34] = t6, $[35] = t7, $[36] = t8, $[37] = t9) : t9 = $[37], t9;
|
|
1544
1362
|
});
|
|
1545
1363
|
AvatarStack.displayName = "ForwardRef(AvatarStack)";
|
|
1546
1364
|
const StyledBox = /* @__PURE__ */ styled.div.withConfig({
|
|
1547
1365
|
displayName: "StyledBox",
|
|
1548
1366
|
componentId: "sc-1hhky9f-0"
|
|
1549
1367
|
})(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = forwardRef(function(props, ref) {
|
|
1550
|
-
const $ = c(
|
|
1368
|
+
const $ = c(109);
|
|
1551
1369
|
let column, columnEnd, columnStart, flex, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, row, rowEnd, rowStart, sizing, t0, t1, t2, t3;
|
|
1552
1370
|
$[0] !== props ? ({
|
|
1553
1371
|
as: t0,
|
|
@@ -1578,9 +1396,59 @@ const StyledBox = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1578
1396
|
sizing,
|
|
1579
1397
|
...restProps
|
|
1580
1398
|
} = props, $[0] = props, $[1] = column, $[2] = columnEnd, $[3] = columnStart, $[4] = flex, $[5] = height, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = overflow, $[13] = paddingBottom, $[14] = paddingLeft, $[15] = paddingRight, $[16] = paddingTop, $[17] = paddingX, $[18] = paddingY, $[19] = restProps, $[20] = row, $[21] = rowEnd, $[22] = rowStart, $[23] = sizing, $[24] = t0, $[25] = t1, $[26] = t2, $[27] = t3) : (column = $[1], columnEnd = $[2], columnStart = $[3], flex = $[4], height = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], overflow = $[12], paddingBottom = $[13], paddingLeft = $[14], paddingRight = $[15], paddingTop = $[16], paddingX = $[17], paddingY = $[18], restProps = $[19], row = $[20], rowEnd = $[21], rowStart = $[22], sizing = $[23], t0 = $[24], t1 = $[25], t2 = $[26], t3 = $[27]);
|
|
1581
|
-
const asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, t4 = typeof asProp == "string" ? asProp : void 0
|
|
1399
|
+
const asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, t4 = typeof asProp == "string" ? asProp : void 0;
|
|
1400
|
+
let t5;
|
|
1401
|
+
$[28] !== column ? (t5 = _getArrayProp(column), $[28] = column, $[29] = t5) : t5 = $[29];
|
|
1402
|
+
let t6;
|
|
1403
|
+
$[30] !== columnStart ? (t6 = _getArrayProp(columnStart), $[30] = columnStart, $[31] = t6) : t6 = $[31];
|
|
1404
|
+
let t7;
|
|
1405
|
+
$[32] !== columnEnd ? (t7 = _getArrayProp(columnEnd), $[32] = columnEnd, $[33] = t7) : t7 = $[33];
|
|
1406
|
+
let t8;
|
|
1407
|
+
$[34] !== display ? (t8 = _getArrayProp(display), $[34] = display, $[35] = t8) : t8 = $[35];
|
|
1408
|
+
let t9;
|
|
1409
|
+
$[36] !== flex ? (t9 = _getArrayProp(flex), $[36] = flex, $[37] = t9) : t9 = $[37];
|
|
1410
|
+
let t10;
|
|
1411
|
+
$[38] !== height ? (t10 = _getArrayProp(height), $[38] = height, $[39] = t10) : t10 = $[39];
|
|
1412
|
+
let t11;
|
|
1413
|
+
$[40] !== margin ? (t11 = _getArrayProp(margin), $[40] = margin, $[41] = t11) : t11 = $[41];
|
|
1414
|
+
let t12;
|
|
1415
|
+
$[42] !== marginX ? (t12 = _getArrayProp(marginX), $[42] = marginX, $[43] = t12) : t12 = $[43];
|
|
1416
|
+
let t13;
|
|
1417
|
+
$[44] !== marginY ? (t13 = _getArrayProp(marginY), $[44] = marginY, $[45] = t13) : t13 = $[45];
|
|
1418
|
+
let t14;
|
|
1419
|
+
$[46] !== marginTop ? (t14 = _getArrayProp(marginTop), $[46] = marginTop, $[47] = t14) : t14 = $[47];
|
|
1420
|
+
let t15;
|
|
1421
|
+
$[48] !== marginRight ? (t15 = _getArrayProp(marginRight), $[48] = marginRight, $[49] = t15) : t15 = $[49];
|
|
1422
|
+
let t16;
|
|
1423
|
+
$[50] !== marginBottom ? (t16 = _getArrayProp(marginBottom), $[50] = marginBottom, $[51] = t16) : t16 = $[51];
|
|
1424
|
+
let t17;
|
|
1425
|
+
$[52] !== marginLeft ? (t17 = _getArrayProp(marginLeft), $[52] = marginLeft, $[53] = t17) : t17 = $[53];
|
|
1426
|
+
let t18;
|
|
1427
|
+
$[54] !== overflow ? (t18 = _getArrayProp(overflow), $[54] = overflow, $[55] = t18) : t18 = $[55];
|
|
1428
|
+
let t19;
|
|
1429
|
+
$[56] !== padding ? (t19 = _getArrayProp(padding), $[56] = padding, $[57] = t19) : t19 = $[57];
|
|
1430
|
+
let t20;
|
|
1431
|
+
$[58] !== paddingX ? (t20 = _getArrayProp(paddingX), $[58] = paddingX, $[59] = t20) : t20 = $[59];
|
|
1432
|
+
let t21;
|
|
1433
|
+
$[60] !== paddingY ? (t21 = _getArrayProp(paddingY), $[60] = paddingY, $[61] = t21) : t21 = $[61];
|
|
1434
|
+
let t22;
|
|
1435
|
+
$[62] !== paddingTop ? (t22 = _getArrayProp(paddingTop), $[62] = paddingTop, $[63] = t22) : t22 = $[63];
|
|
1436
|
+
let t23;
|
|
1437
|
+
$[64] !== paddingRight ? (t23 = _getArrayProp(paddingRight), $[64] = paddingRight, $[65] = t23) : t23 = $[65];
|
|
1438
|
+
let t24;
|
|
1439
|
+
$[66] !== paddingBottom ? (t24 = _getArrayProp(paddingBottom), $[66] = paddingBottom, $[67] = t24) : t24 = $[67];
|
|
1440
|
+
let t25;
|
|
1441
|
+
$[68] !== paddingLeft ? (t25 = _getArrayProp(paddingLeft), $[68] = paddingLeft, $[69] = t25) : t25 = $[69];
|
|
1442
|
+
let t26;
|
|
1443
|
+
$[70] !== row ? (t26 = _getArrayProp(row), $[70] = row, $[71] = t26) : t26 = $[71];
|
|
1444
|
+
let t27;
|
|
1445
|
+
$[72] !== rowStart ? (t27 = _getArrayProp(rowStart), $[72] = rowStart, $[73] = t27) : t27 = $[73];
|
|
1446
|
+
let t28;
|
|
1447
|
+
$[74] !== rowEnd ? (t28 = _getArrayProp(rowEnd), $[74] = rowEnd, $[75] = t28) : t28 = $[75];
|
|
1448
|
+
let t29;
|
|
1449
|
+
$[76] !== sizing ? (t29 = _getArrayProp(sizing), $[76] = sizing, $[77] = t29) : t29 = $[77];
|
|
1582
1450
|
let t30;
|
|
1583
|
-
return $[
|
|
1451
|
+
return $[78] !== asProp || $[79] !== props.children || $[80] !== ref || $[81] !== restProps || $[82] !== t10 || $[83] !== t11 || $[84] !== t12 || $[85] !== t13 || $[86] !== t14 || $[87] !== t15 || $[88] !== t16 || $[89] !== t17 || $[90] !== t18 || $[91] !== t19 || $[92] !== t20 || $[93] !== t21 || $[94] !== t22 || $[95] !== t23 || $[96] !== t24 || $[97] !== t25 || $[98] !== t26 || $[99] !== t27 || $[100] !== t28 || $[101] !== t29 || $[102] !== t4 || $[103] !== t5 || $[104] !== t6 || $[105] !== t7 || $[106] !== t8 || $[107] !== t9 ? (t30 = /* @__PURE__ */ jsx(StyledBox, { "data-as": t4, "data-ui": "Box", ...restProps, $column: t5, $columnStart: t6, $columnEnd: t7, $display: t8, $flex: t9, $height: t10, $margin: t11, $marginX: t12, $marginY: t13, $marginTop: t14, $marginRight: t15, $marginBottom: t16, $marginLeft: t17, $overflow: t18, $padding: t19, $paddingX: t20, $paddingY: t21, $paddingTop: t22, $paddingRight: t23, $paddingBottom: t24, $paddingLeft: t25, $row: t26, $rowStart: t27, $rowEnd: t28, $sizing: t29, as: asProp, ref, children: props.children }), $[78] = asProp, $[79] = props.children, $[80] = ref, $[81] = restProps, $[82] = t10, $[83] = t11, $[84] = t12, $[85] = t13, $[86] = t14, $[87] = t15, $[88] = t16, $[89] = t17, $[90] = t18, $[91] = t19, $[92] = t20, $[93] = t21, $[94] = t22, $[95] = t23, $[96] = t24, $[97] = t25, $[98] = t26, $[99] = t27, $[100] = t28, $[101] = t29, $[102] = t4, $[103] = t5, $[104] = t6, $[105] = t7, $[106] = t8, $[107] = t9, $[108] = t30) : t30 = $[108], t30;
|
|
1584
1452
|
});
|
|
1585
1453
|
Box.displayName = "ForwardRef(Box)";
|
|
1586
1454
|
function textBaseStyle(props) {
|
|
@@ -1655,7 +1523,7 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1655
1523
|
displayName: "StyledText",
|
|
1656
1524
|
componentId: "sc-11ov82j-0"
|
|
1657
1525
|
})(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), Text = forwardRef(function(props, ref) {
|
|
1658
|
-
const $ = c(
|
|
1526
|
+
const $ = c(26);
|
|
1659
1527
|
let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
1660
1528
|
$[0] !== props ? ({
|
|
1661
1529
|
accent: t0,
|
|
@@ -1673,11 +1541,14 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1673
1541
|
let t32;
|
|
1674
1542
|
$[9] !== children ? (t32 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t32) : t32 = $[10], children = t32;
|
|
1675
1543
|
}
|
|
1676
|
-
|
|
1544
|
+
let t3;
|
|
1545
|
+
$[11] !== align ? (t3 = _getArrayProp(align), $[11] = align, $[12] = t3) : t3 = $[12];
|
|
1546
|
+
let t4;
|
|
1547
|
+
$[13] !== size2 ? (t4 = _getArrayProp(size2), $[13] = size2, $[14] = t4) : t4 = $[14];
|
|
1677
1548
|
let t5;
|
|
1678
|
-
$[
|
|
1549
|
+
$[15] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5) : t5 = $[16];
|
|
1679
1550
|
let t6;
|
|
1680
|
-
return $[
|
|
1551
|
+
return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledText, { "data-ui": "Text", ...restProps, $accent: accent, $align: t3, $muted: muted, ref, $size: t4, $weight: weight, children: t5 }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
|
|
1681
1552
|
});
|
|
1682
1553
|
Text.displayName = "ForwardRef(Text)";
|
|
1683
1554
|
function badgeStyle(props) {
|
|
@@ -1699,7 +1570,7 @@ const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
1699
1570
|
displayName: "StyledBadge",
|
|
1700
1571
|
componentId: "sc-5u140l-0"
|
|
1701
1572
|
})(responsiveRadiusStyle, badgeStyle), Badge = forwardRef(function(props, ref) {
|
|
1702
|
-
const $ = c(
|
|
1573
|
+
const $ = c(21);
|
|
1703
1574
|
let children, restProps, t0, t1, t2, t3;
|
|
1704
1575
|
if ($[0] !== props) {
|
|
1705
1576
|
const {
|
|
@@ -1714,18 +1585,22 @@ const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
1714
1585
|
children = t42, t0 = t52, t1 = t62, t2 = t72, t3 = t8, restProps = t9, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2, $[6] = t3;
|
|
1715
1586
|
} else
|
|
1716
1587
|
children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
|
|
1717
|
-
const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? "full" : t2, tone = t3 === void 0 ? "default" : t3
|
|
1588
|
+
const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? "full" : t2, tone = t3 === void 0 ? "default" : t3;
|
|
1589
|
+
let t4;
|
|
1590
|
+
$[7] !== radius ? (t4 = _getArrayProp(radius), $[7] = radius, $[8] = t4) : t4 = $[8];
|
|
1591
|
+
let t5;
|
|
1592
|
+
$[9] !== padding ? (t5 = _getArrayProp(padding), $[9] = padding, $[10] = t5) : t5 = $[10];
|
|
1718
1593
|
let t6;
|
|
1719
|
-
$[
|
|
1594
|
+
$[11] !== children || $[12] !== fontSize2 ? (t6 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children }), $[11] = children, $[12] = fontSize2, $[13] = t6) : t6 = $[13];
|
|
1720
1595
|
let t7;
|
|
1721
|
-
return $[
|
|
1596
|
+
return $[14] !== ref || $[15] !== restProps || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 || $[19] !== tone ? (t7 = /* @__PURE__ */ jsx(StyledBadge, { "data-ui": "Badge", ...restProps, $tone: tone, $radius: t4, padding: t5, ref, children: t6 }), $[14] = ref, $[15] = restProps, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = tone, $[20] = t7) : t7 = $[20], t7;
|
|
1722
1597
|
});
|
|
1723
1598
|
Badge.displayName = "ForwardRef(Badge)";
|
|
1724
1599
|
const StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
|
|
1725
1600
|
displayName: "StyledFlex",
|
|
1726
1601
|
componentId: "sc-oxesg3-0"
|
|
1727
1602
|
})(flexItemStyle, responsiveFlexStyle), Flex = forwardRef(function(props, ref) {
|
|
1728
|
-
const $ = c(
|
|
1603
|
+
const $ = c(27);
|
|
1729
1604
|
let align, as, gap, justify, restProps, t0, wrap;
|
|
1730
1605
|
$[0] !== props ? ({
|
|
1731
1606
|
align,
|
|
@@ -1736,9 +1611,19 @@ const StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
1736
1611
|
wrap,
|
|
1737
1612
|
...restProps
|
|
1738
1613
|
} = props, $[0] = props, $[1] = align, $[2] = as, $[3] = gap, $[4] = justify, $[5] = restProps, $[6] = t0, $[7] = wrap) : (align = $[1], as = $[2], gap = $[3], justify = $[4], restProps = $[5], t0 = $[6], wrap = $[7]);
|
|
1739
|
-
const direction = t0 === void 0 ? "row" : t0
|
|
1614
|
+
const direction = t0 === void 0 ? "row" : t0;
|
|
1615
|
+
let t1;
|
|
1616
|
+
$[8] !== align ? (t1 = _getArrayProp(align), $[8] = align, $[9] = t1) : t1 = $[9];
|
|
1617
|
+
let t2;
|
|
1618
|
+
$[10] !== direction ? (t2 = _getArrayProp(direction), $[10] = direction, $[11] = t2) : t2 = $[11];
|
|
1619
|
+
let t3;
|
|
1620
|
+
$[12] !== gap ? (t3 = _getArrayProp(gap), $[12] = gap, $[13] = t3) : t3 = $[13];
|
|
1621
|
+
let t4;
|
|
1622
|
+
$[14] !== justify ? (t4 = _getArrayProp(justify), $[14] = justify, $[15] = t4) : t4 = $[15];
|
|
1623
|
+
let t5;
|
|
1624
|
+
$[16] !== wrap ? (t5 = _getArrayProp(wrap), $[16] = wrap, $[17] = t5) : t5 = $[17];
|
|
1740
1625
|
let t6;
|
|
1741
|
-
return $[
|
|
1626
|
+
return $[18] !== as || $[19] !== ref || $[20] !== restProps || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledFlex, { "data-ui": "Flex", ...restProps, $align: t1, $direction: t2, $gap: t3, $justify: t4, $wrap: t5, forwardedAs: as, ref }), $[18] = as, $[19] = ref, $[20] = restProps, $[21] = t1, $[22] = t2, $[23] = t3, $[24] = t4, $[25] = t5, $[26] = t6) : t6 = $[26], t6;
|
|
1742
1627
|
});
|
|
1743
1628
|
Flex.displayName = "ForwardRef(Flex)";
|
|
1744
1629
|
const rotate = keyframes`
|
|
@@ -1935,7 +1820,7 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
|
|
|
1935
1820
|
displayName: "LoadingBox",
|
|
1936
1821
|
componentId: "sc-aaekt4-1"
|
|
1937
1822
|
})`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`, Button = forwardRef(function(props, ref) {
|
|
1938
|
-
const $ = c(
|
|
1823
|
+
const $ = c(86);
|
|
1939
1824
|
let IconComponent, IconRightComponent, children, disabled, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
|
|
1940
1825
|
$[0] !== props ? ({
|
|
1941
1826
|
children,
|
|
@@ -1967,9 +1852,39 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
|
|
|
1967
1852
|
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = loading, $[6] = paddingBottomProp, $[7] = paddingLeftProp, $[8] = paddingRightProp, $[9] = paddingTopProp, $[10] = paddingXProp, $[11] = paddingYProp, $[12] = restProps, $[13] = selected, $[14] = t0, $[15] = t1, $[16] = t2, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = t6, $[21] = t7, $[22] = t8, $[23] = text, $[24] = textAlign, $[25] = textWeight, $[26] = width) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], loading = $[5], paddingBottomProp = $[6], paddingLeftProp = $[7], paddingRightProp = $[8], paddingTopProp = $[9], paddingXProp = $[10], paddingYProp = $[11], restProps = $[12], selected = $[13], t0 = $[14], t1 = $[15], t2 = $[16], t3 = $[17], t4 = $[18], t5 = $[19], t6 = $[20], t7 = $[21], t8 = $[22], text = $[23], textAlign = $[24], textWeight = $[25], width = $[26]);
|
|
1968
1853
|
const fontSize2 = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, tone = t6 === void 0 ? "default" : t6, type = t7 === void 0 ? "button" : t7, muted = t8 === void 0 ? !1 : t8, {
|
|
1969
1854
|
button
|
|
1970
|
-
} = useTheme_v2()
|
|
1855
|
+
} = useTheme_v2();
|
|
1971
1856
|
let t9;
|
|
1972
|
-
$[27] !==
|
|
1857
|
+
$[27] !== justifyProp ? (t9 = _getArrayProp(justifyProp), $[27] = justifyProp, $[28] = t9) : t9 = $[28];
|
|
1858
|
+
const justify = t9;
|
|
1859
|
+
let t10;
|
|
1860
|
+
$[29] !== paddingProp ? (t10 = _getArrayProp(paddingProp), $[29] = paddingProp, $[30] = t10) : t10 = $[30];
|
|
1861
|
+
const padding = t10;
|
|
1862
|
+
let t11;
|
|
1863
|
+
$[31] !== paddingXProp ? (t11 = _getArrayProp(paddingXProp), $[31] = paddingXProp, $[32] = t11) : t11 = $[32];
|
|
1864
|
+
const paddingX = t11;
|
|
1865
|
+
let t12;
|
|
1866
|
+
$[33] !== paddingYProp ? (t12 = _getArrayProp(paddingYProp), $[33] = paddingYProp, $[34] = t12) : t12 = $[34];
|
|
1867
|
+
const paddingY = t12;
|
|
1868
|
+
let t13;
|
|
1869
|
+
$[35] !== paddingTopProp ? (t13 = _getArrayProp(paddingTopProp), $[35] = paddingTopProp, $[36] = t13) : t13 = $[36];
|
|
1870
|
+
const paddingTop = t13;
|
|
1871
|
+
let t14;
|
|
1872
|
+
$[37] !== paddingBottomProp ? (t14 = _getArrayProp(paddingBottomProp), $[37] = paddingBottomProp, $[38] = t14) : t14 = $[38];
|
|
1873
|
+
const paddingBottom = t14;
|
|
1874
|
+
let t15;
|
|
1875
|
+
$[39] !== paddingLeftProp ? (t15 = _getArrayProp(paddingLeftProp), $[39] = paddingLeftProp, $[40] = t15) : t15 = $[40];
|
|
1876
|
+
const paddingLeft = t15;
|
|
1877
|
+
let t16;
|
|
1878
|
+
$[41] !== paddingRightProp ? (t16 = _getArrayProp(paddingRightProp), $[41] = paddingRightProp, $[42] = t16) : t16 = $[42];
|
|
1879
|
+
const paddingRight = t16;
|
|
1880
|
+
let t17;
|
|
1881
|
+
$[43] !== radiusProp ? (t17 = _getArrayProp(radiusProp), $[43] = radiusProp, $[44] = t17) : t17 = $[44];
|
|
1882
|
+
const radius = t17;
|
|
1883
|
+
let t18;
|
|
1884
|
+
$[45] !== spaceProp ? (t18 = _getArrayProp(spaceProp), $[45] = spaceProp, $[46] = t18) : t18 = $[46];
|
|
1885
|
+
const space = t18;
|
|
1886
|
+
let t19;
|
|
1887
|
+
$[47] !== padding || $[48] !== paddingBottom || $[49] !== paddingLeft || $[50] !== paddingRight || $[51] !== paddingTop || $[52] !== paddingX || $[53] !== paddingY ? (t19 = {
|
|
1973
1888
|
padding,
|
|
1974
1889
|
paddingX,
|
|
1975
1890
|
paddingY,
|
|
@@ -1977,12 +1892,12 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
|
|
|
1977
1892
|
paddingBottom,
|
|
1978
1893
|
paddingLeft,
|
|
1979
1894
|
paddingRight
|
|
1980
|
-
}, $[
|
|
1981
|
-
const boxProps =
|
|
1982
|
-
let
|
|
1983
|
-
$[
|
|
1984
|
-
let
|
|
1985
|
-
$[
|
|
1895
|
+
}, $[47] = padding, $[48] = paddingBottom, $[49] = paddingLeft, $[50] = paddingRight, $[51] = paddingTop, $[52] = paddingX, $[53] = paddingY, $[54] = t19) : t19 = $[54];
|
|
1896
|
+
const boxProps = t19, t20 = !!(loading || disabled), t21 = selected ? "" : void 0, t22 = !!(loading || disabled);
|
|
1897
|
+
let t23;
|
|
1898
|
+
$[55] !== loading ? (t23 = !!loading && /* @__PURE__ */ jsx(LoadingBox, { children: /* @__PURE__ */ jsx(Spinner, {}) }), $[55] = loading, $[56] = t23) : t23 = $[56];
|
|
1899
|
+
let t24;
|
|
1900
|
+
$[57] !== IconComponent || $[58] !== IconRightComponent || $[59] !== boxProps || $[60] !== button || $[61] !== fontSize2 || $[62] !== justify || $[63] !== muted || $[64] !== space || $[65] !== text || $[66] !== textAlign || $[67] !== textWeight ? (t24 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxs(Flex, { as: "span", justify, gap: space, children: [
|
|
1986
1901
|
IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
|
|
1987
1902
|
isValidElement(IconComponent) && IconComponent,
|
|
1988
1903
|
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
@@ -1992,15 +1907,15 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
|
|
|
1992
1907
|
isValidElement(IconRightComponent) && IconRightComponent,
|
|
1993
1908
|
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
1994
1909
|
] })
|
|
1995
|
-
] }) }), $[
|
|
1996
|
-
let
|
|
1997
|
-
$[
|
|
1998
|
-
let
|
|
1999
|
-
return $[
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
] }), $[
|
|
1910
|
+
] }) }), $[57] = IconComponent, $[58] = IconRightComponent, $[59] = boxProps, $[60] = button, $[61] = fontSize2, $[62] = justify, $[63] = muted, $[64] = space, $[65] = text, $[66] = textAlign, $[67] = textWeight, $[68] = t24) : t24 = $[68];
|
|
1911
|
+
let t25;
|
|
1912
|
+
$[69] !== boxProps || $[70] !== children ? (t25 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children }), $[69] = boxProps, $[70] = children, $[71] = t25) : t25 = $[71];
|
|
1913
|
+
let t26;
|
|
1914
|
+
return $[72] !== mode || $[73] !== radius || $[74] !== ref || $[75] !== restProps || $[76] !== t20 || $[77] !== t21 || $[78] !== t22 || $[79] !== t23 || $[80] !== t24 || $[81] !== t25 || $[82] !== tone || $[83] !== type || $[84] !== width ? (t26 = /* @__PURE__ */ jsxs(StyledButton, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t20, "data-selected": t21, disabled: t22, ref, type, $width: width, children: [
|
|
1915
|
+
t23,
|
|
1916
|
+
t24,
|
|
1917
|
+
t25
|
|
1918
|
+
] }), $[72] = mode, $[73] = radius, $[74] = ref, $[75] = restProps, $[76] = t20, $[77] = t21, $[78] = t22, $[79] = t23, $[80] = t24, $[81] = t25, $[82] = tone, $[83] = type, $[84] = width, $[85] = t26) : t26 = $[85], t26;
|
|
2004
1919
|
});
|
|
2005
1920
|
Button.displayName = "ForwardRef(Button)";
|
|
2006
1921
|
function cardStyle(props) {
|
|
@@ -2155,7 +2070,7 @@ const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2155
2070
|
displayName: "StyledCard",
|
|
2156
2071
|
componentId: "sc-osnro2-0"
|
|
2157
2072
|
})(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = forwardRef(function(props, ref) {
|
|
2158
|
-
const $ = c(
|
|
2073
|
+
const $ = c(56);
|
|
2159
2074
|
let asProp, border2, borderBottom2, borderLeft2, borderRight2, borderTop2, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
|
|
2160
2075
|
$[0] !== props ? ({
|
|
2161
2076
|
__unstable_checkered: t0,
|
|
@@ -2175,13 +2090,209 @@ const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2175
2090
|
tone: t3,
|
|
2176
2091
|
...restProps
|
|
2177
2092
|
} = props, $[0] = props, $[1] = asProp, $[2] = border2, $[3] = borderBottom2, $[4] = borderLeft2, $[5] = borderRight2, $[6] = borderTop2, $[7] = muted, $[8] = pressed, $[9] = restProps, $[10] = scheme, $[11] = selected, $[12] = shadow, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3) : (asProp = $[1], border2 = $[2], borderBottom2 = $[3], borderLeft2 = $[4], borderRight2 = $[5], borderTop2 = $[6], muted = $[7], pressed = $[8], restProps = $[9], scheme = $[10], selected = $[11], shadow = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16]);
|
|
2178
|
-
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme
|
|
2093
|
+
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme;
|
|
2094
|
+
let t6;
|
|
2095
|
+
$[17] !== border2 ? (t6 = _getArrayProp(border2), $[17] = border2, $[18] = t6) : t6 = $[18];
|
|
2096
|
+
let t7;
|
|
2097
|
+
$[19] !== borderTop2 ? (t7 = _getArrayProp(borderTop2), $[19] = borderTop2, $[20] = t7) : t7 = $[20];
|
|
2098
|
+
let t8;
|
|
2099
|
+
$[21] !== borderRight2 ? (t8 = _getArrayProp(borderRight2), $[21] = borderRight2, $[22] = t8) : t8 = $[22];
|
|
2100
|
+
let t9;
|
|
2101
|
+
$[23] !== borderBottom2 ? (t9 = _getArrayProp(borderBottom2), $[23] = borderBottom2, $[24] = t9) : t9 = $[24];
|
|
2102
|
+
let t10;
|
|
2103
|
+
$[25] !== borderLeft2 ? (t10 = _getArrayProp(borderLeft2), $[25] = borderLeft2, $[26] = t10) : t10 = $[26];
|
|
2104
|
+
let t11;
|
|
2105
|
+
$[27] !== radius ? (t11 = _getArrayProp(radius), $[27] = radius, $[28] = t11) : t11 = $[28];
|
|
2106
|
+
let t12;
|
|
2107
|
+
$[29] !== shadow ? (t12 = _getArrayProp(shadow), $[29] = shadow, $[30] = t12) : t12 = $[30];
|
|
2108
|
+
const t13 = checkered ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0;
|
|
2179
2109
|
let t16;
|
|
2180
|
-
$[
|
|
2110
|
+
$[31] !== as || $[32] !== checkered || $[33] !== focusRing || $[34] !== muted || $[35] !== ref || $[36] !== restProps || $[37] !== rootTheme.scheme || $[38] !== selected || $[39] !== t10 || $[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14 || $[44] !== t15 || $[45] !== t4 || $[46] !== t6 || $[47] !== t7 || $[48] !== t8 || $[49] !== t9 || $[50] !== tone ? (t16 = /* @__PURE__ */ jsx(StyledCard, { "data-as": t4, "data-scheme": t5, "data-ui": "Card", "data-tone": tone, ...restProps, $border: t6, $borderTop: t7, $borderRight: t8, $borderBottom: t9, $borderLeft: t10, $checkered: checkered, $focusRing: focusRing, $muted: muted, $radius: t11, $shadow: t12, $tone: tone, "data-checkered": t13, "data-pressed": t14, "data-selected": t15, forwardedAs: as, ref, selected }), $[31] = as, $[32] = checkered, $[33] = focusRing, $[34] = muted, $[35] = ref, $[36] = restProps, $[37] = rootTheme.scheme, $[38] = selected, $[39] = t10, $[40] = t11, $[41] = t12, $[42] = t13, $[43] = t14, $[44] = t15, $[45] = t4, $[46] = t6, $[47] = t7, $[48] = t8, $[49] = t9, $[50] = tone, $[51] = t16) : t16 = $[51];
|
|
2181
2111
|
let t17;
|
|
2182
|
-
return $[
|
|
2112
|
+
return $[52] !== scheme || $[53] !== t16 || $[54] !== tone ? (t17 = /* @__PURE__ */ jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[52] = scheme, $[53] = t16, $[54] = tone, $[55] = t17) : t17 = $[55], t17;
|
|
2183
2113
|
});
|
|
2184
2114
|
Card.displayName = "ForwardRef(Card)";
|
|
2115
|
+
function useClickOutsideEvent(listener, t0, boundaryElement) {
|
|
2116
|
+
const $ = c(9), elementsArg = t0 === void 0 ? _temp$8 : t0;
|
|
2117
|
+
let t1;
|
|
2118
|
+
$[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
|
|
2119
|
+
if (!listener)
|
|
2120
|
+
return;
|
|
2121
|
+
const target = evt.target;
|
|
2122
|
+
if (!(target instanceof Node))
|
|
2123
|
+
return;
|
|
2124
|
+
const resolvedBoundaryElement = boundaryElement?.();
|
|
2125
|
+
if (resolvedBoundaryElement && !resolvedBoundaryElement.contains(target))
|
|
2126
|
+
return;
|
|
2127
|
+
const elements = elementsArg().flat();
|
|
2128
|
+
for (const el of elements)
|
|
2129
|
+
if (el && (target === el || el.contains(target)))
|
|
2130
|
+
return;
|
|
2131
|
+
listener(evt);
|
|
2132
|
+
}, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
|
|
2133
|
+
const onEvent = useEffectEvent(t1), hasListener = !!listener;
|
|
2134
|
+
let t2;
|
|
2135
|
+
$[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
|
|
2136
|
+
if (!hasListener)
|
|
2137
|
+
return;
|
|
2138
|
+
const handleEvent = (evt_0) => onEvent(evt_0);
|
|
2139
|
+
return document.addEventListener("mousedown", handleEvent), () => {
|
|
2140
|
+
document.removeEventListener("mousedown", handleEvent);
|
|
2141
|
+
};
|
|
2142
|
+
}, $[4] = hasListener, $[5] = onEvent, $[6] = t2) : t2 = $[6];
|
|
2143
|
+
let t3;
|
|
2144
|
+
$[7] !== hasListener ? (t3 = [hasListener], $[7] = hasListener, $[8] = t3) : t3 = $[8], useEffect(t2, t3), useDebugValue(listener ? "MouseDown On" : "MouseDown Off");
|
|
2145
|
+
}
|
|
2146
|
+
function _temp$8() {
|
|
2147
|
+
return EMPTY_ARRAY;
|
|
2148
|
+
}
|
|
2149
|
+
function useCustomValidity(ref, customValidity) {
|
|
2150
|
+
const $ = c(4);
|
|
2151
|
+
let t0, t1;
|
|
2152
|
+
$[0] !== customValidity || $[1] !== ref ? (t0 = () => {
|
|
2153
|
+
ref.current?.setCustomValidity(customValidity || "");
|
|
2154
|
+
}, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), useEffect(t0, t1);
|
|
2155
|
+
}
|
|
2156
|
+
const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
|
|
2157
|
+
function _createElementRectValueListener() {
|
|
2158
|
+
return {
|
|
2159
|
+
subscribe(element, subscriber) {
|
|
2160
|
+
const resizeObserver = new _ResizeObserver(([entry]) => {
|
|
2161
|
+
subscriber({
|
|
2162
|
+
_contentRect: entry.contentRect,
|
|
2163
|
+
border: {
|
|
2164
|
+
width: entry.borderBoxSize[0].inlineSize,
|
|
2165
|
+
height: entry.borderBoxSize[0].blockSize
|
|
2166
|
+
},
|
|
2167
|
+
content: {
|
|
2168
|
+
width: entry.contentRect.width,
|
|
2169
|
+
height: entry.contentRect.height
|
|
2170
|
+
}
|
|
2171
|
+
});
|
|
2172
|
+
});
|
|
2173
|
+
return resizeObserver.observe(element), () => {
|
|
2174
|
+
resizeObserver.unobserve(element), resizeObserver.disconnect();
|
|
2175
|
+
};
|
|
2176
|
+
}
|
|
2177
|
+
};
|
|
2178
|
+
}
|
|
2179
|
+
function _createElementSizeObserver() {
|
|
2180
|
+
const disposeCache = /* @__PURE__ */ new WeakMap(), subscribersCache = /* @__PURE__ */ new WeakMap();
|
|
2181
|
+
return {
|
|
2182
|
+
subscribe(element, subscriber) {
|
|
2183
|
+
const subscribers = subscribersCache.get(element) || [];
|
|
2184
|
+
let dispose = disposeCache.get(element);
|
|
2185
|
+
return subscribersCache.has(element) || (subscribersCache.set(element, subscribers), dispose = _createElementRectValueListener().subscribe(element, (elementRect) => {
|
|
2186
|
+
for (const sub of subscribers)
|
|
2187
|
+
sub(elementRect);
|
|
2188
|
+
})), subscribers.push(subscriber), () => {
|
|
2189
|
+
const idx = subscribers.indexOf(subscriber);
|
|
2190
|
+
idx > -1 && subscribers.splice(idx, 1), subscribers.length === 0 && dispose && dispose();
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
function useElementSize(element) {
|
|
2196
|
+
const $ = c(3), [size2, setSize] = useState(null);
|
|
2197
|
+
let t0, t1;
|
|
2198
|
+
return $[0] !== element ? (t0 = () => {
|
|
2199
|
+
if (element)
|
|
2200
|
+
return _elementSizeObserver.subscribe(element, setSize);
|
|
2201
|
+
}, t1 = [element], $[0] = element, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1), size2;
|
|
2202
|
+
}
|
|
2203
|
+
function useGlobalKeyDown(onKeyDown) {
|
|
2204
|
+
const $ = c(5);
|
|
2205
|
+
let t0;
|
|
2206
|
+
$[0] !== onKeyDown ? (t0 = (event) => onKeyDown(event), $[0] = onKeyDown, $[1] = t0) : t0 = $[1];
|
|
2207
|
+
const handleKeyDown = useEffectEvent(t0);
|
|
2208
|
+
let t1;
|
|
2209
|
+
$[2] !== handleKeyDown ? (t1 = () => {
|
|
2210
|
+
const handler = (event_0) => handleKeyDown(event_0);
|
|
2211
|
+
return window.addEventListener("keydown", handler), () => window.removeEventListener("keydown", handler);
|
|
2212
|
+
}, $[2] = handleKeyDown, $[3] = t1) : t1 = $[3];
|
|
2213
|
+
let t2;
|
|
2214
|
+
$[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[4] = t2) : t2 = $[4], useEffect(t1, t2);
|
|
2215
|
+
}
|
|
2216
|
+
function useMatchMedia(mediaQueryString, getServerSnapshot2) {
|
|
2217
|
+
const $ = c(4);
|
|
2218
|
+
useDebugValue(mediaQueryString);
|
|
2219
|
+
let t0;
|
|
2220
|
+
$[0] !== mediaQueryString ? (t0 = (onStoreChange) => {
|
|
2221
|
+
const media = window.matchMedia(mediaQueryString);
|
|
2222
|
+
return media.addEventListener("change", onStoreChange), () => media.removeEventListener("change", onStoreChange);
|
|
2223
|
+
}, $[0] = mediaQueryString, $[1] = t0) : t0 = $[1];
|
|
2224
|
+
let t1;
|
|
2225
|
+
return $[2] !== mediaQueryString ? (t1 = () => window.matchMedia(mediaQueryString).matches, $[2] = mediaQueryString, $[3] = t1) : t1 = $[3], useSyncExternalStore(t0, t1, getServerSnapshot2);
|
|
2226
|
+
}
|
|
2227
|
+
function _getMediaQuery(media, index) {
|
|
2228
|
+
return index === 0 ? `screen and (max-width: ${media[index] - 1}px)` : index === media.length ? `screen and (min-width: ${media[index - 1]}px)` : `screen and (min-width: ${media[index - 1]}px) and (max-width: ${media[index] - 1}px)`;
|
|
2229
|
+
}
|
|
2230
|
+
function _createMediaStore(media) {
|
|
2231
|
+
const mediaLen = media.length;
|
|
2232
|
+
let sizes;
|
|
2233
|
+
const getSizes = () => {
|
|
2234
|
+
if (!sizes) {
|
|
2235
|
+
sizes = [];
|
|
2236
|
+
for (let index = mediaLen; index > -1; index -= 1) {
|
|
2237
|
+
const mediaQuery = _getMediaQuery(media, index);
|
|
2238
|
+
sizes.push({
|
|
2239
|
+
index,
|
|
2240
|
+
mq: window.matchMedia(mediaQuery)
|
|
2241
|
+
});
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
return sizes;
|
|
2245
|
+
};
|
|
2246
|
+
return {
|
|
2247
|
+
getSnapshot: () => {
|
|
2248
|
+
for (const {
|
|
2249
|
+
index,
|
|
2250
|
+
mq
|
|
2251
|
+
} of getSizes())
|
|
2252
|
+
if (mq.matches) return index;
|
|
2253
|
+
return 0;
|
|
2254
|
+
},
|
|
2255
|
+
subscribe: (onStoreChange) => {
|
|
2256
|
+
const disposeFns = [];
|
|
2257
|
+
for (const {
|
|
2258
|
+
mq
|
|
2259
|
+
} of getSizes()) {
|
|
2260
|
+
const handleChange = () => {
|
|
2261
|
+
mq.matches && onStoreChange();
|
|
2262
|
+
};
|
|
2263
|
+
mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
|
|
2264
|
+
}
|
|
2265
|
+
return () => {
|
|
2266
|
+
for (const disposeFn of disposeFns)
|
|
2267
|
+
disposeFn();
|
|
2268
|
+
};
|
|
2269
|
+
}
|
|
2270
|
+
};
|
|
2271
|
+
}
|
|
2272
|
+
function getServerSnapshot() {
|
|
2273
|
+
return 0;
|
|
2274
|
+
}
|
|
2275
|
+
function useMediaIndex() {
|
|
2276
|
+
const $ = c(2), {
|
|
2277
|
+
media
|
|
2278
|
+
} = useTheme_v2();
|
|
2279
|
+
let t0;
|
|
2280
|
+
$[0] !== media ? (t0 = _createMediaStore(media), $[0] = media, $[1] = t0) : t0 = $[1];
|
|
2281
|
+
const store = t0;
|
|
2282
|
+
return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
|
|
2283
|
+
}
|
|
2284
|
+
function usePrefersDark(t0) {
|
|
2285
|
+
return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$7 : t0);
|
|
2286
|
+
}
|
|
2287
|
+
function _temp$7() {
|
|
2288
|
+
return !1;
|
|
2289
|
+
}
|
|
2290
|
+
function usePrefersReducedMotion(t0) {
|
|
2291
|
+
return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$6 : t0);
|
|
2292
|
+
}
|
|
2293
|
+
function _temp$6() {
|
|
2294
|
+
return !1;
|
|
2295
|
+
}
|
|
2185
2296
|
function checkboxBaseStyles() {
|
|
2186
2297
|
return css`
|
|
2187
2298
|
position: relative;
|
|
@@ -2513,7 +2624,7 @@ const LazyRefractor = lazy(() => import("./refractor.mjs")), StyledCode = /* @__
|
|
|
2513
2624
|
displayName: "StyledCode",
|
|
2514
2625
|
componentId: "sc-4dymyn-0"
|
|
2515
2626
|
})(codeBaseStyle, responsiveCodeFontStyle), Code = forwardRef(function(props, ref) {
|
|
2516
|
-
const $ = c(
|
|
2627
|
+
const $ = c(22);
|
|
2517
2628
|
let children, language, restProps, t0, weight;
|
|
2518
2629
|
$[0] !== props ? ({
|
|
2519
2630
|
children,
|
|
@@ -2522,15 +2633,17 @@ const LazyRefractor = lazy(() => import("./refractor.mjs")), StyledCode = /* @__
|
|
|
2522
2633
|
weight,
|
|
2523
2634
|
...restProps
|
|
2524
2635
|
} = props, $[0] = props, $[1] = children, $[2] = language, $[3] = restProps, $[4] = t0, $[5] = weight) : (children = $[1], language = $[2], restProps = $[3], t0 = $[4], weight = $[5]);
|
|
2525
|
-
const
|
|
2636
|
+
const size2 = t0 === void 0 ? 2 : t0;
|
|
2637
|
+
let t1;
|
|
2638
|
+
$[6] !== size2 ? (t1 = _getArrayProp(size2), $[6] = size2, $[7] = t1) : t1 = $[7];
|
|
2526
2639
|
let t2;
|
|
2527
|
-
$[
|
|
2640
|
+
$[8] !== children ? (t2 = /* @__PURE__ */ jsx("code", { children }), $[8] = children, $[9] = t2) : t2 = $[9];
|
|
2528
2641
|
let t3;
|
|
2529
|
-
$[
|
|
2642
|
+
$[10] !== children || $[11] !== language ? (t3 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[10] = children, $[11] = language, $[12] = t3) : t3 = $[12];
|
|
2530
2643
|
let t4;
|
|
2531
|
-
$[
|
|
2644
|
+
$[13] !== t2 || $[14] !== t3 ? (t4 = /* @__PURE__ */ jsx(Suspense, { fallback: t2, children: t3 }), $[13] = t2, $[14] = t3, $[15] = t4) : t4 = $[15];
|
|
2532
2645
|
let t5;
|
|
2533
|
-
return $[
|
|
2646
|
+
return $[16] !== ref || $[17] !== restProps || $[18] !== t1 || $[19] !== t4 || $[20] !== weight ? (t5 = /* @__PURE__ */ jsx(StyledCode, { "data-ui": "Code", ...restProps, $size: t1, $weight: weight, ref, children: t4 }), $[16] = ref, $[17] = restProps, $[18] = t1, $[19] = t4, $[20] = weight, $[21] = t5) : t5 = $[21], t5;
|
|
2534
2647
|
});
|
|
2535
2648
|
Code.displayName = "ForwardRef(Code)";
|
|
2536
2649
|
const BASE_STYLE$1 = {
|
|
@@ -2553,23 +2666,25 @@ const StyledContainer = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2553
2666
|
displayName: "StyledContainer",
|
|
2554
2667
|
componentId: "sc-wyroop-0"
|
|
2555
2668
|
})(containerBaseStyle, responsiveContainerWidthStyle), Container = forwardRef(function(props, ref) {
|
|
2556
|
-
const $ = c(
|
|
2669
|
+
const $ = c(11);
|
|
2557
2670
|
let as, restProps, t0;
|
|
2558
2671
|
$[0] !== props ? ({
|
|
2559
2672
|
as,
|
|
2560
2673
|
width: t0,
|
|
2561
2674
|
...restProps
|
|
2562
2675
|
} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0) : (as = $[1], restProps = $[2], t0 = $[3]);
|
|
2563
|
-
const
|
|
2676
|
+
const width = t0 === void 0 ? 2 : t0;
|
|
2677
|
+
let t1;
|
|
2678
|
+
$[4] !== width ? (t1 = _getArrayProp(width), $[4] = width, $[5] = t1) : t1 = $[5];
|
|
2564
2679
|
let t2;
|
|
2565
|
-
return $[
|
|
2680
|
+
return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledContainer, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
|
|
2566
2681
|
});
|
|
2567
2682
|
Container.displayName = "ForwardRef(Container)";
|
|
2568
2683
|
const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
|
|
2569
2684
|
displayName: "StyledGrid",
|
|
2570
2685
|
componentId: "sc-v8t8oz-0"
|
|
2571
2686
|
})(responsiveGridStyle), Grid = forwardRef(function(props, ref) {
|
|
2572
|
-
const $ = c(
|
|
2687
|
+
const $ = c(42);
|
|
2573
2688
|
let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, restProps, rows;
|
|
2574
2689
|
$[0] !== props ? ({
|
|
2575
2690
|
as,
|
|
@@ -2584,9 +2699,25 @@ const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2584
2699
|
children,
|
|
2585
2700
|
...restProps
|
|
2586
2701
|
} = props, $[0] = props, $[1] = as, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = children, $[6] = columns, $[7] = gap, $[8] = gapX, $[9] = gapY, $[10] = restProps, $[11] = rows) : (as = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], children = $[5], columns = $[6], gap = $[7], gapX = $[8], gapY = $[9], restProps = $[10], rows = $[11]);
|
|
2587
|
-
const t0 = typeof as == "string" ? as : void 0
|
|
2702
|
+
const t0 = typeof as == "string" ? as : void 0;
|
|
2703
|
+
let t1;
|
|
2704
|
+
$[12] !== autoRows ? (t1 = _getArrayProp(autoRows), $[12] = autoRows, $[13] = t1) : t1 = $[13];
|
|
2705
|
+
let t2;
|
|
2706
|
+
$[14] !== autoCols ? (t2 = _getArrayProp(autoCols), $[14] = autoCols, $[15] = t2) : t2 = $[15];
|
|
2707
|
+
let t3;
|
|
2708
|
+
$[16] !== autoFlow ? (t3 = _getArrayProp(autoFlow), $[16] = autoFlow, $[17] = t3) : t3 = $[17];
|
|
2709
|
+
let t4;
|
|
2710
|
+
$[18] !== columns ? (t4 = _getArrayProp(columns), $[18] = columns, $[19] = t4) : t4 = $[19];
|
|
2711
|
+
let t5;
|
|
2712
|
+
$[20] !== gap ? (t5 = _getArrayProp(gap), $[20] = gap, $[21] = t5) : t5 = $[21];
|
|
2713
|
+
let t6;
|
|
2714
|
+
$[22] !== gapX ? (t6 = _getArrayProp(gapX), $[22] = gapX, $[23] = t6) : t6 = $[23];
|
|
2715
|
+
let t7;
|
|
2716
|
+
$[24] !== gapY ? (t7 = _getArrayProp(gapY), $[24] = gapY, $[25] = t7) : t7 = $[25];
|
|
2717
|
+
let t8;
|
|
2718
|
+
$[26] !== rows ? (t8 = _getArrayProp(rows), $[26] = rows, $[27] = t8) : t8 = $[27];
|
|
2588
2719
|
let t9;
|
|
2589
|
-
return $[
|
|
2720
|
+
return $[28] !== as || $[29] !== children || $[30] !== ref || $[31] !== restProps || $[32] !== t0 || $[33] !== t1 || $[34] !== t2 || $[35] !== t3 || $[36] !== t4 || $[37] !== t5 || $[38] !== t6 || $[39] !== t7 || $[40] !== t8 ? (t9 = /* @__PURE__ */ jsx(StyledGrid, { "data-as": t0, "data-ui": "Grid", ...restProps, $autoRows: t1, $autoCols: t2, $autoFlow: t3, $columns: t4, $gap: t5, $gapX: t6, $gapY: t7, $rows: t8, forwardedAs: as, ref, children }), $[28] = as, $[29] = children, $[30] = ref, $[31] = restProps, $[32] = t0, $[33] = t1, $[34] = t2, $[35] = t3, $[36] = t4, $[37] = t5, $[38] = t6, $[39] = t7, $[40] = t8, $[41] = t9) : t9 = $[41], t9;
|
|
2590
2721
|
});
|
|
2591
2722
|
Grid.displayName = "ForwardRef(Grid)";
|
|
2592
2723
|
function headingBaseStyle(props) {
|
|
@@ -2652,7 +2783,7 @@ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
|
|
|
2652
2783
|
displayName: "StyledHeading",
|
|
2653
2784
|
componentId: "sc-137lwim-0"
|
|
2654
2785
|
})(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), Heading = forwardRef(function(props, ref) {
|
|
2655
|
-
const $ = c(
|
|
2786
|
+
const $ = c(26);
|
|
2656
2787
|
let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
2657
2788
|
$[0] !== props ? ({
|
|
2658
2789
|
accent: t0,
|
|
@@ -2670,11 +2801,14 @@ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
|
|
|
2670
2801
|
let t32;
|
|
2671
2802
|
$[9] !== children ? (t32 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t32) : t32 = $[10], children = t32;
|
|
2672
2803
|
}
|
|
2673
|
-
|
|
2804
|
+
let t3;
|
|
2805
|
+
$[11] !== align ? (t3 = _getArrayProp(align), $[11] = align, $[12] = t3) : t3 = $[12];
|
|
2806
|
+
let t4;
|
|
2807
|
+
$[13] !== size2 ? (t4 = _getArrayProp(size2), $[13] = size2, $[14] = t4) : t4 = $[14];
|
|
2674
2808
|
let t5;
|
|
2675
|
-
$[
|
|
2809
|
+
$[15] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5) : t5 = $[16];
|
|
2676
2810
|
let t6;
|
|
2677
|
-
return $[
|
|
2811
|
+
return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledHeading, { "data-ui": "Heading", ...restProps, $accent: accent, $align: t3, $muted: muted, $size: t4, $weight: weight, ref, children: t5 }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
|
|
2678
2812
|
});
|
|
2679
2813
|
Heading.displayName = "ForwardRef(Heading)";
|
|
2680
2814
|
function inlineBaseStyle() {
|
|
@@ -2708,7 +2842,7 @@ const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2708
2842
|
displayName: "StyledInline",
|
|
2709
2843
|
componentId: "sc-1pkiy6j-0"
|
|
2710
2844
|
})(inlineBaseStyle, inlineSpaceStyle), Inline = forwardRef(function(props, ref) {
|
|
2711
|
-
const $ = c(
|
|
2845
|
+
const $ = c(15);
|
|
2712
2846
|
let as, childrenProp, restProps, space;
|
|
2713
2847
|
$[0] !== props ? ({
|
|
2714
2848
|
as,
|
|
@@ -2718,9 +2852,12 @@ const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
2718
2852
|
} = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = restProps, $[4] = space) : (as = $[1], childrenProp = $[2], restProps = $[3], space = $[4]);
|
|
2719
2853
|
let t0;
|
|
2720
2854
|
$[5] !== childrenProp ? (t0 = Children.map(childrenProp, _temp$5), $[5] = childrenProp, $[6] = t0) : t0 = $[6];
|
|
2721
|
-
const children = t0
|
|
2855
|
+
const children = t0;
|
|
2856
|
+
let t1;
|
|
2857
|
+
$[7] !== space ? (t1 = _getArrayProp(space), $[7] = space, $[8] = t1) : t1 = $[8];
|
|
2858
|
+
const t2 = ref;
|
|
2722
2859
|
let t3;
|
|
2723
|
-
return $[
|
|
2860
|
+
return $[9] !== as || $[10] !== children || $[11] !== restProps || $[12] !== t1 || $[13] !== t2 ? (t3 = /* @__PURE__ */ jsx(StyledInline, { "data-ui": "Inline", ...restProps, $space: t1, forwardedAs: as, ref: t2, children }), $[9] = as, $[10] = children, $[11] = restProps, $[12] = t1, $[13] = t2, $[14] = t3) : t3 = $[14], t3;
|
|
2724
2861
|
});
|
|
2725
2862
|
Inline.displayName = "ForwardRef(Inline)";
|
|
2726
2863
|
function _temp$5(child) {
|
|
@@ -2747,7 +2884,7 @@ const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
|
|
|
2747
2884
|
displayName: "StyledKBD",
|
|
2748
2885
|
componentId: "sc-1w7yd8w-0"
|
|
2749
2886
|
})(responsiveRadiusStyle, kbdStyle), KBD = forwardRef(function(props, ref) {
|
|
2750
|
-
const $ = c(
|
|
2887
|
+
const $ = c(19);
|
|
2751
2888
|
let children, restProps, t0, t1, t2;
|
|
2752
2889
|
$[0] !== props ? ({
|
|
2753
2890
|
children,
|
|
@@ -2756,13 +2893,15 @@ const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
|
|
|
2756
2893
|
radius: t2,
|
|
2757
2894
|
...restProps
|
|
2758
2895
|
} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2) : (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]);
|
|
2759
|
-
const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1,
|
|
2896
|
+
const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? 2 : t2;
|
|
2897
|
+
let t3;
|
|
2898
|
+
$[6] !== radius ? (t3 = _getArrayProp(radius), $[6] = radius, $[7] = t3) : t3 = $[7];
|
|
2760
2899
|
let t4;
|
|
2761
|
-
$[
|
|
2900
|
+
$[8] !== children || $[9] !== fontSize2 ? (t4 = /* @__PURE__ */ jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[8] = children, $[9] = fontSize2, $[10] = t4) : t4 = $[10];
|
|
2762
2901
|
let t5;
|
|
2763
|
-
$[
|
|
2902
|
+
$[11] !== padding || $[12] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { as: "span", padding, children: t4 }), $[11] = padding, $[12] = t4, $[13] = t5) : t5 = $[13];
|
|
2764
2903
|
let t6;
|
|
2765
|
-
return $[
|
|
2904
|
+
return $[14] !== ref || $[15] !== restProps || $[16] !== t3 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledKBD, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[14] = ref, $[15] = restProps, $[16] = t3, $[17] = t5, $[18] = t6) : t6 = $[18], t6;
|
|
2766
2905
|
});
|
|
2767
2906
|
KBD.displayName = "ForwardRef(KBD)";
|
|
2768
2907
|
const origin = {
|
|
@@ -3025,18 +3164,21 @@ function getLayerContext(contextValue) {
|
|
|
3025
3164
|
}
|
|
3026
3165
|
const LayerContext = createGlobalScopedContext("@sanity/ui/context/layer", null);
|
|
3027
3166
|
function LayerProvider(props) {
|
|
3028
|
-
const $ = c(
|
|
3167
|
+
const $ = c(21), {
|
|
3029
3168
|
children,
|
|
3030
3169
|
zOffset: t0
|
|
3031
3170
|
} = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = useContext(LayerContext);
|
|
3032
3171
|
let t1;
|
|
3033
3172
|
$[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
|
|
3034
|
-
const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1
|
|
3173
|
+
const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1;
|
|
3035
3174
|
let t2;
|
|
3036
|
-
$[2]
|
|
3037
|
-
const
|
|
3175
|
+
$[2] !== zOffsetProp ? (t2 = _getArrayProp(zOffsetProp), $[2] = zOffsetProp, $[3] = t2) : t2 = $[3];
|
|
3176
|
+
const zOffset = t2, maxMediaIndex = zOffset.length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + zOffset[mediaIndex] : zOffset[mediaIndex];
|
|
3038
3177
|
let t3;
|
|
3039
|
-
$[
|
|
3178
|
+
$[4] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {}, $[4] = t3) : t3 = $[4];
|
|
3179
|
+
const [, setChildLayers] = useState(t3), [size2, setSize] = useState(0), isTopLayer = size2 === 0;
|
|
3180
|
+
let t4;
|
|
3181
|
+
$[5] !== parentRegisterChild || $[6] !== setChildLayers ? (t4 = (childLevel) => {
|
|
3040
3182
|
const parentDispose = parentRegisterChild?.(childLevel);
|
|
3041
3183
|
return childLevel !== void 0 ? setChildLayers((state) => {
|
|
3042
3184
|
const prevLen = state[childLevel] ?? 0, nextState = {
|
|
@@ -3052,22 +3194,22 @@ function LayerProvider(props) {
|
|
|
3052
3194
|
return nextState_0[childLevel] === 1 ? (delete nextState_0[childLevel], setSize(Object.keys(nextState_0).length)) : nextState_0[childLevel] = nextState_0[childLevel] - 1, nextState_0;
|
|
3053
3195
|
}) : setSize(_temp2$2), parentDispose?.();
|
|
3054
3196
|
};
|
|
3055
|
-
}, $[
|
|
3056
|
-
const registerChild =
|
|
3057
|
-
let
|
|
3058
|
-
$[
|
|
3059
|
-
let
|
|
3060
|
-
$[
|
|
3197
|
+
}, $[5] = parentRegisterChild, $[6] = setChildLayers, $[7] = t4) : t4 = $[7];
|
|
3198
|
+
const registerChild = t4;
|
|
3199
|
+
let t5, t6;
|
|
3200
|
+
$[8] !== level || $[9] !== parentRegisterChild ? (t5 = () => parentRegisterChild?.(level), t6 = [level, parentRegisterChild], $[8] = level, $[9] = parentRegisterChild, $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]), useEffect(t5, t6);
|
|
3201
|
+
let t7;
|
|
3202
|
+
$[12] !== isTopLayer || $[13] !== level || $[14] !== registerChild || $[15] !== size2 || $[16] !== zIndex ? (t7 = {
|
|
3061
3203
|
version: 0,
|
|
3062
3204
|
isTopLayer,
|
|
3063
3205
|
level,
|
|
3064
3206
|
registerChild,
|
|
3065
3207
|
size: size2,
|
|
3066
3208
|
zIndex
|
|
3067
|
-
}, $[
|
|
3068
|
-
const value =
|
|
3069
|
-
let
|
|
3070
|
-
return $[
|
|
3209
|
+
}, $[12] = isTopLayer, $[13] = level, $[14] = registerChild, $[15] = size2, $[16] = zIndex, $[17] = t7) : t7 = $[17];
|
|
3210
|
+
const value = t7;
|
|
3211
|
+
let t8;
|
|
3212
|
+
return $[18] !== children || $[19] !== value ? (t8 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[18] = children, $[19] = value, $[20] = t8) : t8 = $[20], t8;
|
|
3071
3213
|
}
|
|
3072
3214
|
function _temp2$2(v_0) {
|
|
3073
3215
|
return v_0 - 1;
|
|
@@ -3217,26 +3359,42 @@ const StyledVirtualList = styled.div.withConfig({
|
|
|
3217
3359
|
displayName: "ItemWrapper",
|
|
3218
3360
|
componentId: "sc-dlqsj4-1"
|
|
3219
3361
|
})`position:absolute;left:0;right:0;`, VirtualList = forwardRef(function(props, forwardedRef) {
|
|
3220
|
-
const
|
|
3221
|
-
|
|
3222
|
-
|
|
3362
|
+
const $ = c(44);
|
|
3363
|
+
let getItemKey, onChange, renderItem, restProps, t0, t1, t2;
|
|
3364
|
+
$[0] !== props ? ({
|
|
3365
|
+
as: t0,
|
|
3366
|
+
gap: t1,
|
|
3223
3367
|
getItemKey,
|
|
3224
|
-
items
|
|
3368
|
+
items: t2,
|
|
3225
3369
|
onChange,
|
|
3226
3370
|
renderItem,
|
|
3227
3371
|
...restProps
|
|
3228
|
-
} = props,
|
|
3372
|
+
} = props, $[0] = props, $[1] = getItemKey, $[2] = onChange, $[3] = renderItem, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = t2) : (getItemKey = $[1], onChange = $[2], renderItem = $[3], restProps = $[4], t0 = $[5], t1 = $[6], t2 = $[7]);
|
|
3373
|
+
const as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1;
|
|
3374
|
+
let t3;
|
|
3375
|
+
$[8] !== t2 ? (t3 = t2 === void 0 ? [] : t2, $[8] = t2, $[9] = t3) : t3 = $[9];
|
|
3376
|
+
const items = t3, {
|
|
3229
3377
|
space
|
|
3230
3378
|
} = useTheme_v2(), ref = useRef(null), wrapperRef = useRef(null), [scrollTop, setScrollTop] = useState(0), [scrollHeight, setScrollHeight] = useState(0), [itemHeight, setItemHeight] = useState(-1);
|
|
3231
|
-
|
|
3232
|
-
|
|
3379
|
+
let t4;
|
|
3380
|
+
$[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], useImperativeHandle(forwardedRef, t4);
|
|
3381
|
+
let t5;
|
|
3382
|
+
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
|
|
3383
|
+
if (!wrapperRef.current)
|
|
3384
|
+
return;
|
|
3233
3385
|
const firstElement = wrapperRef.current.firstChild;
|
|
3234
3386
|
firstElement instanceof HTMLElement && setItemHeight(firstElement.offsetHeight);
|
|
3235
|
-
}, [
|
|
3236
|
-
|
|
3387
|
+
}, $[11] = t5) : t5 = $[11];
|
|
3388
|
+
let t6;
|
|
3389
|
+
$[12] !== renderItem ? (t6 = [renderItem], $[12] = renderItem, $[13] = t6) : t6 = $[13], useEffect(t5, t6);
|
|
3390
|
+
let t7, t8;
|
|
3391
|
+
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
|
|
3392
|
+
if (!ref.current)
|
|
3393
|
+
return;
|
|
3237
3394
|
const scrollEl = findScrollable(ref.current.parentNode);
|
|
3238
3395
|
if (scrollEl) {
|
|
3239
|
-
if (!(scrollEl instanceof HTMLElement))
|
|
3396
|
+
if (!(scrollEl instanceof HTMLElement))
|
|
3397
|
+
return;
|
|
3240
3398
|
const handleScroll = () => {
|
|
3241
3399
|
setScrollTop(scrollEl.scrollTop);
|
|
3242
3400
|
};
|
|
@@ -3260,9 +3418,10 @@ const StyledVirtualList = styled.div.withConfig({
|
|
|
3260
3418
|
}), window.addEventListener("resize", handleResize), setScrollHeight(window.innerHeight), handleScroll_0(), () => {
|
|
3261
3419
|
window.removeEventListener("scroll", handleScroll_0), window.removeEventListener("resize", handleResize);
|
|
3262
3420
|
};
|
|
3263
|
-
}, []);
|
|
3421
|
+
}, t8 = [], $[14] = t7, $[15] = t8) : (t7 = $[14], t8 = $[15]), useEffect(t7, t8);
|
|
3264
3422
|
const len = items.length, height = itemHeight ? len * (itemHeight + space[gap]) - space[gap] : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0;
|
|
3265
|
-
|
|
3423
|
+
let t10, t9;
|
|
3424
|
+
$[16] !== fromIndex || $[17] !== gap || $[18] !== itemHeight || $[19] !== onChange || $[20] !== scrollHeight || $[21] !== scrollTop || $[22] !== space || $[23] !== toIndex ? (t9 = () => {
|
|
3266
3425
|
onChange && onChange({
|
|
3267
3426
|
fromIndex,
|
|
3268
3427
|
gap: space[gap],
|
|
@@ -3271,18 +3430,61 @@ const StyledVirtualList = styled.div.withConfig({
|
|
|
3271
3430
|
scrollTop,
|
|
3272
3431
|
toIndex
|
|
3273
3432
|
});
|
|
3274
|
-
}, [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex]);
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3433
|
+
}, t10 = [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex], $[16] = fromIndex, $[17] = gap, $[18] = itemHeight, $[19] = onChange, $[20] = scrollHeight, $[21] = scrollTop, $[22] = space, $[23] = toIndex, $[24] = t10, $[25] = t9) : (t10 = $[24], t9 = $[25]), useEffect(t9, t10);
|
|
3434
|
+
let t11;
|
|
3435
|
+
$[26] !== fromIndex || $[27] !== gap || $[28] !== getItemKey || $[29] !== itemHeight || $[30] !== items || $[31] !== renderItem || $[32] !== space || $[33] !== toIndex ? (t11 = {
|
|
3436
|
+
fromIndex,
|
|
3437
|
+
gap,
|
|
3438
|
+
itemHeight,
|
|
3439
|
+
space,
|
|
3440
|
+
toIndex,
|
|
3441
|
+
getItemKey,
|
|
3442
|
+
items,
|
|
3443
|
+
renderItem
|
|
3444
|
+
}, $[26] = fromIndex, $[27] = gap, $[28] = getItemKey, $[29] = itemHeight, $[30] = items, $[31] = renderItem, $[32] = space, $[33] = toIndex, $[34] = t11) : t11 = $[34];
|
|
3445
|
+
const children = useChildren(t11);
|
|
3446
|
+
let t12;
|
|
3447
|
+
$[35] !== height ? (t12 = {
|
|
3281
3448
|
height
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3449
|
+
}, $[35] = height, $[36] = t12) : t12 = $[36];
|
|
3450
|
+
let t13;
|
|
3451
|
+
$[37] !== children || $[38] !== t12 ? (t13 = /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: t12, children }), $[37] = children, $[38] = t12, $[39] = t13) : t13 = $[39];
|
|
3452
|
+
let t14;
|
|
3453
|
+
return $[40] !== as || $[41] !== restProps || $[42] !== t13 ? (t14 = /* @__PURE__ */ jsx(StyledVirtualList, { as, "data-ui": "VirtualList", ...restProps, ref, children: t13 }), $[40] = as, $[41] = restProps, $[42] = t13, $[43] = t14) : t14 = $[43], t14;
|
|
3284
3454
|
});
|
|
3285
3455
|
VirtualList.displayName = "ForwardRef(VirtualList)";
|
|
3456
|
+
function useChildren(t0) {
|
|
3457
|
+
const $ = c(21), {
|
|
3458
|
+
fromIndex,
|
|
3459
|
+
gap,
|
|
3460
|
+
getItemKey,
|
|
3461
|
+
itemHeight,
|
|
3462
|
+
items,
|
|
3463
|
+
renderItem,
|
|
3464
|
+
space,
|
|
3465
|
+
toIndex
|
|
3466
|
+
} = t0;
|
|
3467
|
+
if (!renderItem || items.length === 0)
|
|
3468
|
+
return null;
|
|
3469
|
+
if (itemHeight === -1) {
|
|
3470
|
+
let t12;
|
|
3471
|
+
$[0] !== items[0] || $[1] !== renderItem ? (t12 = renderItem(items[0]), $[0] = items[0], $[1] = renderItem, $[2] = t12) : t12 = $[2];
|
|
3472
|
+
let t2;
|
|
3473
|
+
return $[3] !== t12 ? (t2 = [/* @__PURE__ */ jsx(ItemWrapper, { children: t12 }, 0)], $[3] = t12, $[4] = t2) : t2 = $[4], t2;
|
|
3474
|
+
}
|
|
3475
|
+
let t1;
|
|
3476
|
+
if ($[5] !== fromIndex || $[6] !== gap || $[7] !== getItemKey || $[8] !== itemHeight || $[9] !== items || $[10] !== renderItem || $[11] !== space || $[12] !== toIndex) {
|
|
3477
|
+
let t2;
|
|
3478
|
+
$[14] !== fromIndex || $[15] !== gap || $[16] !== getItemKey || $[17] !== itemHeight || $[18] !== renderItem || $[19] !== space ? (t2 = (item, _itemIndex) => {
|
|
3479
|
+
const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
|
|
3480
|
+
return /* @__PURE__ */ jsx(ItemWrapper, { style: {
|
|
3481
|
+
top: itemIndex * (itemHeight + space[gap])
|
|
3482
|
+
}, children: node }, key2);
|
|
3483
|
+
}, $[14] = fromIndex, $[15] = gap, $[16] = getItemKey, $[17] = itemHeight, $[18] = renderItem, $[19] = space, $[20] = t2) : t2 = $[20], t1 = items.slice(fromIndex, toIndex).map(t2), $[5] = fromIndex, $[6] = gap, $[7] = getItemKey, $[8] = itemHeight, $[9] = items, $[10] = renderItem, $[11] = space, $[12] = toIndex, $[13] = t1;
|
|
3484
|
+
} else
|
|
3485
|
+
t1 = $[13];
|
|
3486
|
+
return t1;
|
|
3487
|
+
}
|
|
3286
3488
|
function findScrollable(parentNode) {
|
|
3287
3489
|
let _scrollEl = parentNode;
|
|
3288
3490
|
for (; _scrollEl && !_isScrollable(_scrollEl); )
|
|
@@ -3309,9 +3511,14 @@ const DEFAULT_POPOVER_DISTANCE = 4, DEFAULT_POPOVER_PADDING = 4, DEFAULT_POPOVER
|
|
|
3309
3511
|
};
|
|
3310
3512
|
function size(options) {
|
|
3311
3513
|
const {
|
|
3312
|
-
|
|
3514
|
+
constrainSize,
|
|
3313
3515
|
margins,
|
|
3314
|
-
|
|
3516
|
+
matchReferenceWidth,
|
|
3517
|
+
maxWidthRef,
|
|
3518
|
+
padding = 0,
|
|
3519
|
+
referenceWidthRef,
|
|
3520
|
+
setReferenceWidth,
|
|
3521
|
+
widthRef
|
|
3315
3522
|
} = options;
|
|
3316
3523
|
return {
|
|
3317
3524
|
name: "@sanity/ui/size",
|
|
@@ -3333,12 +3540,9 @@ function size(options) {
|
|
|
3333
3540
|
});
|
|
3334
3541
|
let maxWidth = 1 / 0, maxHeight = 1 / 0;
|
|
3335
3542
|
const floatingW = floating.width, floatingH = floating.height;
|
|
3336
|
-
placement.includes("top") && (maxWidth = floatingW - (overflow.left + overflow.right), maxHeight = floatingH - overflow.top), placement.includes("right") && (maxWidth = floatingW - overflow.right, maxHeight = floatingH - (overflow.top + overflow.bottom)), placement.includes("bottom") && (maxWidth = floatingW - (overflow.left + overflow.right), maxHeight = floatingH - overflow.bottom), placement.includes("left") && (maxWidth = floatingW - overflow.left, maxHeight = floatingH - (overflow.top + overflow.bottom))
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
elements,
|
|
3340
|
-
referenceWidth: reference.width - margins[1] - margins[3]
|
|
3341
|
-
});
|
|
3543
|
+
placement.includes("top") && (maxWidth = floatingW - (overflow.left + overflow.right), maxHeight = floatingH - overflow.top), placement.includes("right") && (maxWidth = floatingW - overflow.right, maxHeight = floatingH - (overflow.top + overflow.bottom)), placement.includes("bottom") && (maxWidth = floatingW - (overflow.left + overflow.right), maxHeight = floatingH - overflow.bottom), placement.includes("left") && (maxWidth = floatingW - overflow.left, maxHeight = floatingH - (overflow.top + overflow.bottom));
|
|
3544
|
+
const availableWidth = maxWidth - margins[1] - margins[3], availableHeight = maxHeight - margins[0] - margins[2], referenceWidth = reference.width - margins[1] - margins[3];
|
|
3545
|
+
referenceWidthRef.current = referenceWidth, setReferenceWidth(referenceWidth), matchReferenceWidth ? elements.floating.style.width = `${referenceWidth}px` : widthRef.current !== void 0 && (elements.floating.style.width = `${widthRef.current}px`), constrainSize && (elements.floating.style.maxWidth = `${Math.min(availableWidth, maxWidthRef.current ?? 1 / 0)}px`, elements.floating.style.maxHeight = `${availableHeight}px`);
|
|
3342
3546
|
const nextDimensions = await platform.getDimensions(elements.floating), targetH = nextDimensions.height, targetW = nextDimensions.width;
|
|
3343
3547
|
return floatingW !== targetW || floatingH !== targetH ? {
|
|
3344
3548
|
reset: {
|
|
@@ -3370,7 +3574,7 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
3370
3574
|
})`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`, MotionFlex = styled(motion.create(Flex)).withConfig({
|
|
3371
3575
|
displayName: "MotionFlex",
|
|
3372
3576
|
componentId: "sc-ihg31s-1"
|
|
3373
|
-
})`will-change:opacity;`, PopoverCard =
|
|
3577
|
+
})`will-change:opacity;`, PopoverCard = forwardRef(function(props, ref) {
|
|
3374
3578
|
const $ = c(66);
|
|
3375
3579
|
let animate, arrow2, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
|
|
3376
3580
|
$[0] !== props ? ({
|
|
@@ -3438,8 +3642,8 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
|
|
|
3438
3642
|
t10,
|
|
3439
3643
|
t11
|
|
3440
3644
|
] }), $[52] = placement, $[53] = radius, $[54] = ref, $[55] = rootStyle2, $[56] = scheme, $[57] = shadow, $[58] = t10, $[59] = t11, $[60] = t5, $[61] = t6, $[62] = t7, $[63] = t8, $[64] = tone, $[65] = t12) : t12 = $[65], t12;
|
|
3441
|
-
})
|
|
3442
|
-
PopoverCard.displayName = "
|
|
3645
|
+
});
|
|
3646
|
+
PopoverCard.displayName = "ForwardRef(PopoverCard)";
|
|
3443
3647
|
const ViewportOverlay = () => {
|
|
3444
3648
|
const $ = c(2), {
|
|
3445
3649
|
zIndex
|
|
@@ -3452,104 +3656,125 @@ const ViewportOverlay = () => {
|
|
|
3452
3656
|
width: "100vw",
|
|
3453
3657
|
zIndex
|
|
3454
3658
|
} }), $[0] = zIndex, $[1] = t0) : t0 = $[1], t0;
|
|
3455
|
-
}, Popover =
|
|
3456
|
-
const {
|
|
3659
|
+
}, Popover = forwardRef(function(props, forwardedRef) {
|
|
3660
|
+
const $ = c(126), {
|
|
3457
3661
|
container,
|
|
3458
3662
|
layer
|
|
3459
|
-
} = useTheme_v2(), boundaryElementContext = useBoundaryElement()
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3663
|
+
} = useTheme_v2(), boundaryElementContext = useBoundaryElement();
|
|
3664
|
+
let _boundaryElement, _fallbackPlacements, _floatingBoundary, _referenceBoundary, _zOffsetProp, childProp, content, disabled, matchReferenceWidth, modal, open, paddingProp, portal, referenceElement, restProps, scheme, t0, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9, updateRef;
|
|
3665
|
+
if ($[0] !== props) {
|
|
3666
|
+
const {
|
|
3667
|
+
__unstable_margins: t122,
|
|
3668
|
+
animate: t132,
|
|
3669
|
+
arrow: t142,
|
|
3670
|
+
boundaryElement: t152,
|
|
3671
|
+
children: t162,
|
|
3672
|
+
constrainSize: t172,
|
|
3673
|
+
content: t182,
|
|
3674
|
+
disabled: t192,
|
|
3675
|
+
fallbackPlacements: t202,
|
|
3676
|
+
matchReferenceWidth: t212,
|
|
3677
|
+
floatingBoundary: t222,
|
|
3678
|
+
modal: t232,
|
|
3679
|
+
onActivate,
|
|
3680
|
+
open: t242,
|
|
3681
|
+
overflow: t252,
|
|
3682
|
+
padding: t262,
|
|
3683
|
+
placement: t272,
|
|
3684
|
+
placementStrategy: t282,
|
|
3685
|
+
portal: t292,
|
|
3686
|
+
preventOverflow: t302,
|
|
3687
|
+
radius: t312,
|
|
3688
|
+
referenceBoundary: t322,
|
|
3689
|
+
referenceElement: t332,
|
|
3690
|
+
scheme: t342,
|
|
3691
|
+
shadow: t352,
|
|
3692
|
+
tone: t362,
|
|
3693
|
+
width: t372,
|
|
3694
|
+
zOffset: t382,
|
|
3695
|
+
updateRef: t392,
|
|
3696
|
+
...t402
|
|
3697
|
+
} = props;
|
|
3698
|
+
t0 = t122, t1 = t132, t2 = t142, _boundaryElement = t152, childProp = t162, t3 = t172, content = t182, disabled = t192, _fallbackPlacements = t202, matchReferenceWidth = t212, _floatingBoundary = t222, modal = t232, open = t242, t4 = t252, paddingProp = t262, t5 = t272, t6 = t282, portal = t292, t7 = t302, t8 = t312, _referenceBoundary = t322, referenceElement = t332, scheme = t342, t9 = t352, t10 = t362, t11 = t372, _zOffsetProp = t382, updateRef = t392, restProps = t402, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacements, $[3] = _floatingBoundary, $[4] = _referenceBoundary, $[5] = _zOffsetProp, $[6] = childProp, $[7] = content, $[8] = disabled, $[9] = matchReferenceWidth, $[10] = modal, $[11] = open, $[12] = paddingProp, $[13] = portal, $[14] = referenceElement, $[15] = restProps, $[16] = scheme, $[17] = t0, $[18] = t1, $[19] = t10, $[20] = t11, $[21] = t2, $[22] = t3, $[23] = t4, $[24] = t5, $[25] = t6, $[26] = t7, $[27] = t8, $[28] = t9, $[29] = updateRef;
|
|
3699
|
+
} else
|
|
3700
|
+
_boundaryElement = $[1], _fallbackPlacements = $[2], _floatingBoundary = $[3], _referenceBoundary = $[4], _zOffsetProp = $[5], childProp = $[6], content = $[7], disabled = $[8], matchReferenceWidth = $[9], modal = $[10], open = $[11], paddingProp = $[12], portal = $[13], referenceElement = $[14], restProps = $[15], scheme = $[16], t0 = $[17], t1 = $[18], t10 = $[19], t11 = $[20], t2 = $[21], t3 = $[22], t4 = $[23], t5 = $[24], t6 = $[25], t7 = $[26], t8 = $[27], t9 = $[28], updateRef = $[29];
|
|
3701
|
+
const margins = t0 === void 0 ? DEFAULT_POPOVER_MARGINS : t0, _animate = t1 === void 0 ? !1 : t1, arrowProp = t2 === void 0 ? !1 : t2, constrainSize = t3 === void 0 ? !1 : t3, overflow = t4 === void 0 ? "hidden" : t4, placementProp = t5 === void 0 ? "bottom" : t5, placementStrategy = t6 === void 0 ? "flip" : t6, preventOverflow = t7 === void 0 ? !0 : t7, radiusProp = t8 === void 0 ? 3 : t8, shadowProp = t9 === void 0 ? 3 : t9, tone = t10 === void 0 ? "inherit" : t10, widthProp = t11 === void 0 ? "auto" : t11, boundaryElement = _boundaryElement ?? boundaryElementContext?.element, fallbackPlacements = _fallbackPlacements ?? DEFAULT_FALLBACK_PLACEMENTS$1[props.placement ?? "bottom"], floatingBoundary = _floatingBoundary ?? props.boundaryElement ?? boundaryElementContext.element, referenceBoundary = _referenceBoundary ?? props.boundaryElement ?? boundaryElementContext.element, zOffsetProp = _zOffsetProp ?? layer.popover.zOffset, animate = usePrefersReducedMotion() ? !1 : _animate, boundarySize = useElementSize(boundaryElement)?.border;
|
|
3702
|
+
let t12;
|
|
3703
|
+
$[30] !== paddingProp ? (t12 = _getArrayProp(paddingProp), $[30] = paddingProp, $[31] = t12) : t12 = $[31];
|
|
3704
|
+
const padding = t12;
|
|
3705
|
+
let t13;
|
|
3706
|
+
$[32] !== radiusProp ? (t13 = _getArrayProp(radiusProp), $[32] = radiusProp, $[33] = t13) : t13 = $[33];
|
|
3707
|
+
const radius = t13;
|
|
3708
|
+
let t14;
|
|
3709
|
+
$[34] !== shadowProp ? (t14 = _getArrayProp(shadowProp), $[34] = shadowProp, $[35] = t14) : t14 = $[35];
|
|
3710
|
+
const shadow = t14, widthArrayProp = _getArrayProp(widthProp);
|
|
3711
|
+
let t15;
|
|
3712
|
+
$[36] !== zOffsetProp ? (t15 = _getArrayProp(zOffsetProp), $[36] = zOffsetProp, $[37] = t15) : t15 = $[37];
|
|
3713
|
+
const zOffset = t15, ref = useRef(null), arrowRef = useRef(null);
|
|
3714
|
+
let t16;
|
|
3715
|
+
$[38] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => ref.current, $[38] = t16) : t16 = $[38], useImperativeHandle(forwardedRef, t16);
|
|
3493
3716
|
const mediaIndex = useMediaIndex(), boundaryWidth = constrainSize || preventOverflow ? boundarySize?.width : void 0, width = calcCurrentWidth({
|
|
3494
3717
|
container,
|
|
3495
3718
|
mediaIndex,
|
|
3496
3719
|
width: widthArrayProp
|
|
3497
3720
|
}), widthRef = useRef(width);
|
|
3498
|
-
|
|
3721
|
+
let t17, t18;
|
|
3722
|
+
$[39] !== width ? (t17 = () => {
|
|
3499
3723
|
widthRef.current = width;
|
|
3500
|
-
}, [width]);
|
|
3501
|
-
|
|
3724
|
+
}, t18 = [width], $[39] = width, $[40] = t17, $[41] = t18) : (t17 = $[40], t18 = $[41]), useEffect(t17, t18);
|
|
3725
|
+
let t19;
|
|
3726
|
+
$[42] !== boundaryWidth || $[43] !== width ? (t19 = calcMaxWidth({
|
|
3502
3727
|
boundaryWidth,
|
|
3503
3728
|
currentWidth: width
|
|
3504
|
-
}),
|
|
3505
|
-
|
|
3729
|
+
}), $[42] = boundaryWidth, $[43] = width, $[44] = t19) : t19 = $[44];
|
|
3730
|
+
const maxWidth = t19, maxWidthRef = useRef(maxWidth);
|
|
3731
|
+
let t20, t21;
|
|
3732
|
+
$[45] !== maxWidth ? (t20 = () => {
|
|
3506
3733
|
maxWidthRef.current = maxWidth;
|
|
3507
|
-
}, [maxWidth]);
|
|
3734
|
+
}, t21 = [maxWidth], $[45] = maxWidth, $[46] = t20, $[47] = t21) : (t20 = $[46], t21 = $[47]), useEffect(t20, t21);
|
|
3508
3735
|
const referenceWidthRef = useRef(void 0);
|
|
3509
|
-
|
|
3736
|
+
let t22, t23;
|
|
3737
|
+
$[48] !== matchReferenceWidth || $[49] !== maxWidth || $[50] !== open || $[51] !== width ? (t22 = () => {
|
|
3510
3738
|
const floatingElement = ref.current;
|
|
3511
|
-
if (!open || !floatingElement)
|
|
3739
|
+
if (!open || !floatingElement)
|
|
3740
|
+
return;
|
|
3512
3741
|
const referenceWidth = referenceWidthRef.current;
|
|
3513
3742
|
matchReferenceWidth ? referenceWidth !== void 0 && (floatingElement.style.width = `${referenceWidth}px`) : width !== void 0 && (floatingElement.style.width = `${width}px`), typeof maxWidth == "number" && (floatingElement.style.maxWidth = `${maxWidth}px`);
|
|
3514
|
-
}, [width, matchReferenceWidth, maxWidth, open]);
|
|
3515
|
-
const
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
padding: DEFAULT_POPOVER_PADDING,
|
|
3550
|
-
strategy: "referenceHidden"
|
|
3551
|
-
})), ret;
|
|
3552
|
-
}, [animate, arrowProp, constrainSize, fallbackPlacements, placementProp, placementStrategy, floatingBoundary, margins, matchReferenceWidth, preventOverflow, referenceBoundary]), {
|
|
3743
|
+
}, t23 = [width, matchReferenceWidth, maxWidth, open], $[48] = matchReferenceWidth, $[49] = maxWidth, $[50] = open, $[51] = width, $[52] = t22, $[53] = t23) : (t22 = $[52], t23 = $[53]), useEffect(t22, t23);
|
|
3744
|
+
const [referenceWidth_0, setReferenceWidth] = useState(void 0);
|
|
3745
|
+
let t24;
|
|
3746
|
+
$[54] !== animate || $[55] !== arrowProp || $[56] !== constrainSize || $[57] !== fallbackPlacements || $[58] !== floatingBoundary || $[59] !== margins || $[60] !== matchReferenceWidth || $[61] !== placementProp || $[62] !== placementStrategy || $[63] !== preventOverflow || $[64] !== referenceBoundary ? (t24 = {
|
|
3747
|
+
animate,
|
|
3748
|
+
arrowProp,
|
|
3749
|
+
arrowRef,
|
|
3750
|
+
constrainSize,
|
|
3751
|
+
fallbackPlacements,
|
|
3752
|
+
floatingBoundary,
|
|
3753
|
+
margins,
|
|
3754
|
+
matchReferenceWidth,
|
|
3755
|
+
maxWidthRef,
|
|
3756
|
+
placementProp,
|
|
3757
|
+
placementStrategy,
|
|
3758
|
+
preventOverflow,
|
|
3759
|
+
referenceBoundary,
|
|
3760
|
+
referenceWidthRef,
|
|
3761
|
+
rootBoundary: "viewport",
|
|
3762
|
+
setReferenceWidth,
|
|
3763
|
+
widthRef
|
|
3764
|
+
}, $[54] = animate, $[55] = arrowProp, $[56] = constrainSize, $[57] = fallbackPlacements, $[58] = floatingBoundary, $[59] = margins, $[60] = matchReferenceWidth, $[61] = placementProp, $[62] = placementStrategy, $[63] = preventOverflow, $[64] = referenceBoundary, $[65] = t24) : t24 = $[65];
|
|
3765
|
+
const middleware = useMiddleware$1(t24);
|
|
3766
|
+
let t25;
|
|
3767
|
+
$[66] !== referenceElement ? (t25 = referenceElement ? {
|
|
3768
|
+
reference: referenceElement
|
|
3769
|
+
} : void 0, $[66] = referenceElement, $[67] = t25) : t25 = $[67];
|
|
3770
|
+
let t26;
|
|
3771
|
+
$[68] !== middleware || $[69] !== placementProp || $[70] !== t25 ? (t26 = {
|
|
3772
|
+
middleware,
|
|
3773
|
+
placement: placementProp,
|
|
3774
|
+
whileElementsMounted: autoUpdate,
|
|
3775
|
+
elements: t25
|
|
3776
|
+
}, $[68] = middleware, $[69] = placementProp, $[70] = t25, $[71] = t26) : t26 = $[71];
|
|
3777
|
+
const {
|
|
3553
3778
|
x,
|
|
3554
3779
|
y,
|
|
3555
3780
|
middlewareData,
|
|
@@ -3557,38 +3782,149 @@ const ViewportOverlay = () => {
|
|
|
3557
3782
|
refs,
|
|
3558
3783
|
strategy,
|
|
3559
3784
|
update
|
|
3560
|
-
} = useFloating(
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
whileElementsMounted: autoUpdate,
|
|
3564
|
-
elements: referenceElement ? {
|
|
3565
|
-
reference: referenceElement
|
|
3566
|
-
} : void 0
|
|
3567
|
-
}), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, setArrow = useCallback((arrowEl) => {
|
|
3785
|
+
} = useFloating(t26), referenceHidden = middlewareData.hide?.referenceHidden, arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY;
|
|
3786
|
+
let t27;
|
|
3787
|
+
$[72] === Symbol.for("react.memo_cache_sentinel") ? (t27 = (arrowEl) => {
|
|
3568
3788
|
arrowRef.current = arrowEl;
|
|
3569
|
-
}, []
|
|
3789
|
+
}, $[72] = t27) : t27 = $[72];
|
|
3790
|
+
const setArrow = t27;
|
|
3791
|
+
let t28;
|
|
3792
|
+
$[73] !== refs ? (t28 = (node) => {
|
|
3570
3793
|
ref.current = node, refs.setFloating(node);
|
|
3571
|
-
}, [refs
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3794
|
+
}, $[73] = refs, $[74] = t28) : t28 = $[74];
|
|
3795
|
+
const setFloating = t28;
|
|
3796
|
+
let t29;
|
|
3797
|
+
$[75] !== childProp ? (t29 = childProp ? getElementRef(childProp) : null, $[75] = childProp, $[76] = t29) : t29 = $[76];
|
|
3798
|
+
let t30;
|
|
3799
|
+
$[77] !== refs.reference.current ? (t30 = () => refs.reference.current, $[77] = refs.reference.current, $[78] = t30) : t30 = $[78], useImperativeHandle(t29, t30);
|
|
3800
|
+
let t31;
|
|
3801
|
+
bb0: {
|
|
3802
|
+
if (referenceElement) {
|
|
3803
|
+
t31 = childProp;
|
|
3804
|
+
break bb0;
|
|
3805
|
+
}
|
|
3806
|
+
if (!childProp) {
|
|
3807
|
+
t31 = null;
|
|
3808
|
+
break bb0;
|
|
3809
|
+
}
|
|
3810
|
+
let t322;
|
|
3811
|
+
$[79] !== childProp || $[80] !== refs.setReference ? (t322 = cloneElement(childProp, {
|
|
3812
|
+
ref: refs.setReference
|
|
3813
|
+
}), $[79] = childProp, $[80] = refs.setReference, $[81] = t322) : t322 = $[81], t31 = t322;
|
|
3814
|
+
}
|
|
3815
|
+
const child = t31;
|
|
3816
|
+
let t32, t33;
|
|
3817
|
+
if ($[82] !== update ? (t32 = () => update, t33 = [update], $[82] = update, $[83] = t32, $[84] = t33) : (t32 = $[83], t33 = $[84]), useImperativeHandle(updateRef, t32, t33), disabled) {
|
|
3818
|
+
let t342;
|
|
3819
|
+
return $[85] !== childProp ? (t342 = childProp || /* @__PURE__ */ jsx(Fragment, {}), $[85] = childProp, $[86] = t342) : t342 = $[86], t342;
|
|
3820
|
+
}
|
|
3821
|
+
let t34;
|
|
3822
|
+
$[87] !== modal ? (t34 = modal && /* @__PURE__ */ jsx(ViewportOverlay, {}), $[87] = modal, $[88] = t34) : t34 = $[88];
|
|
3823
|
+
const t35 = matchReferenceWidth ? referenceWidth_0 : width;
|
|
3824
|
+
let t36;
|
|
3825
|
+
$[89] !== animate || $[90] !== arrowProp || $[91] !== arrowX || $[92] !== arrowY || $[93] !== content || $[94] !== margins || $[95] !== originX || $[96] !== originY || $[97] !== overflow || $[98] !== padding || $[99] !== placement || $[100] !== radius || $[101] !== referenceHidden || $[102] !== restProps || $[103] !== scheme || $[104] !== setFloating || $[105] !== shadow || $[106] !== strategy || $[107] !== t35 || $[108] !== tone || $[109] !== x || $[110] !== y ? (t36 = /* @__PURE__ */ jsx(PopoverCard, { ...restProps, __unstable_margins: margins, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, hidden: referenceHidden, overflow, padding, placement, radius, ref: setFloating, scheme, shadow, originX, originY, strategy, tone, width: t35, x, y, children: content }), $[89] = animate, $[90] = arrowProp, $[91] = arrowX, $[92] = arrowY, $[93] = content, $[94] = margins, $[95] = originX, $[96] = originY, $[97] = overflow, $[98] = padding, $[99] = placement, $[100] = radius, $[101] = referenceHidden, $[102] = restProps, $[103] = scheme, $[104] = setFloating, $[105] = shadow, $[106] = strategy, $[107] = t35, $[108] = tone, $[109] = x, $[110] = y, $[111] = t36) : t36 = $[111];
|
|
3826
|
+
let t37;
|
|
3827
|
+
$[112] !== t34 || $[113] !== t36 || $[114] !== zOffset ? (t37 = /* @__PURE__ */ jsxs(LayerProvider, { zOffset, children: [
|
|
3828
|
+
t34,
|
|
3829
|
+
t36
|
|
3830
|
+
] }), $[112] = t34, $[113] = t36, $[114] = zOffset, $[115] = t37) : t37 = $[115];
|
|
3831
|
+
const popover = t37;
|
|
3832
|
+
let t38;
|
|
3833
|
+
$[116] !== open || $[117] !== popover || $[118] !== portal ? (t38 = open && (portal ? /* @__PURE__ */ jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: popover }) : popover), $[116] = open, $[117] = popover, $[118] = portal, $[119] = t38) : t38 = $[119];
|
|
3834
|
+
const children = t38;
|
|
3835
|
+
let t39;
|
|
3836
|
+
$[120] !== animate || $[121] !== children ? (t39 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[120] = animate, $[121] = children, $[122] = t39) : t39 = $[122];
|
|
3837
|
+
let t40;
|
|
3838
|
+
return $[123] !== child || $[124] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3839
|
+
t39,
|
|
3588
3840
|
child
|
|
3589
|
-
] });
|
|
3590
|
-
})
|
|
3591
|
-
Popover.displayName = "
|
|
3841
|
+
] }), $[123] = child, $[124] = t39, $[125] = t40) : t40 = $[125], t40;
|
|
3842
|
+
});
|
|
3843
|
+
Popover.displayName = "ForwardRef(Popover)";
|
|
3844
|
+
function useMiddleware$1(t0) {
|
|
3845
|
+
const $ = c(42), {
|
|
3846
|
+
animate,
|
|
3847
|
+
arrowProp,
|
|
3848
|
+
arrowRef,
|
|
3849
|
+
constrainSize,
|
|
3850
|
+
fallbackPlacements,
|
|
3851
|
+
floatingBoundary,
|
|
3852
|
+
margins,
|
|
3853
|
+
matchReferenceWidth,
|
|
3854
|
+
maxWidthRef,
|
|
3855
|
+
placementProp,
|
|
3856
|
+
placementStrategy,
|
|
3857
|
+
preventOverflow,
|
|
3858
|
+
referenceBoundary,
|
|
3859
|
+
referenceWidthRef,
|
|
3860
|
+
rootBoundary,
|
|
3861
|
+
setReferenceWidth,
|
|
3862
|
+
widthRef
|
|
3863
|
+
} = t0;
|
|
3864
|
+
let ret;
|
|
3865
|
+
if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== constrainSize || $[4] !== fallbackPlacements || $[5] !== floatingBoundary || $[6] !== margins || $[7] !== matchReferenceWidth || $[8] !== maxWidthRef || $[9] !== placementProp || $[10] !== placementStrategy || $[11] !== preventOverflow || $[12] !== referenceBoundary || $[13] !== referenceWidthRef || $[14] !== rootBoundary || $[15] !== setReferenceWidth || $[16] !== widthRef) {
|
|
3866
|
+
if (ret = [], constrainSize || preventOverflow)
|
|
3867
|
+
if (placementStrategy === "autoPlacement") {
|
|
3868
|
+
let t12;
|
|
3869
|
+
$[18] !== fallbackPlacements || $[19] !== placementProp ? (t12 = autoPlacement({
|
|
3870
|
+
allowedPlacements: [placementProp].concat(fallbackPlacements)
|
|
3871
|
+
}), $[18] = fallbackPlacements, $[19] = placementProp, $[20] = t12) : t12 = $[20], ret.push(t12);
|
|
3872
|
+
} else {
|
|
3873
|
+
const t12 = floatingBoundary || void 0;
|
|
3874
|
+
let t22;
|
|
3875
|
+
$[21] !== fallbackPlacements || $[22] !== rootBoundary || $[23] !== t12 ? (t22 = flip({
|
|
3876
|
+
boundary: t12,
|
|
3877
|
+
fallbackPlacements,
|
|
3878
|
+
padding: DEFAULT_POPOVER_PADDING,
|
|
3879
|
+
rootBoundary
|
|
3880
|
+
}), $[21] = fallbackPlacements, $[22] = rootBoundary, $[23] = t12, $[24] = t22) : t22 = $[24], ret.push(t22);
|
|
3881
|
+
}
|
|
3882
|
+
let t1;
|
|
3883
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel") ? (t1 = offset({
|
|
3884
|
+
mainAxis: DEFAULT_POPOVER_DISTANCE
|
|
3885
|
+
}), $[25] = t1) : t1 = $[25], ret.push(t1), constrainSize || matchReferenceWidth) {
|
|
3886
|
+
const t22 = floatingBoundary || void 0;
|
|
3887
|
+
let t32;
|
|
3888
|
+
$[26] !== constrainSize || $[27] !== margins || $[28] !== matchReferenceWidth || $[29] !== maxWidthRef || $[30] !== referenceWidthRef || $[31] !== setReferenceWidth || $[32] !== t22 || $[33] !== widthRef ? (t32 = size({
|
|
3889
|
+
boundaryElement: t22,
|
|
3890
|
+
constrainSize,
|
|
3891
|
+
margins,
|
|
3892
|
+
matchReferenceWidth,
|
|
3893
|
+
maxWidthRef,
|
|
3894
|
+
padding: DEFAULT_POPOVER_PADDING,
|
|
3895
|
+
referenceWidthRef,
|
|
3896
|
+
setReferenceWidth,
|
|
3897
|
+
widthRef
|
|
3898
|
+
}), $[26] = constrainSize, $[27] = margins, $[28] = matchReferenceWidth, $[29] = maxWidthRef, $[30] = referenceWidthRef, $[31] = setReferenceWidth, $[32] = t22, $[33] = widthRef, $[34] = t32) : t32 = $[34], ret.push(t32);
|
|
3899
|
+
}
|
|
3900
|
+
if (preventOverflow) {
|
|
3901
|
+
const t22 = floatingBoundary || void 0;
|
|
3902
|
+
let t32;
|
|
3903
|
+
$[35] !== rootBoundary || $[36] !== t22 ? (t32 = shift({
|
|
3904
|
+
boundary: t22,
|
|
3905
|
+
rootBoundary,
|
|
3906
|
+
padding: DEFAULT_POPOVER_PADDING
|
|
3907
|
+
}), $[35] = rootBoundary, $[36] = t22, $[37] = t32) : t32 = $[37], ret.push(t32);
|
|
3908
|
+
}
|
|
3909
|
+
if (arrowProp) {
|
|
3910
|
+
let t22;
|
|
3911
|
+
$[38] !== arrowRef ? (t22 = arrow({
|
|
3912
|
+
element: arrowRef,
|
|
3913
|
+
padding: DEFAULT_POPOVER_PADDING
|
|
3914
|
+
}), $[38] = arrowRef, $[39] = t22) : t22 = $[39], ret.push(t22);
|
|
3915
|
+
}
|
|
3916
|
+
animate && ret.push(origin);
|
|
3917
|
+
const t2 = referenceBoundary || void 0;
|
|
3918
|
+
let t3;
|
|
3919
|
+
$[40] !== t2 ? (t3 = hide({
|
|
3920
|
+
boundary: t2,
|
|
3921
|
+
padding: DEFAULT_POPOVER_PADDING,
|
|
3922
|
+
strategy: "referenceHidden"
|
|
3923
|
+
}), $[40] = t2, $[41] = t3) : t3 = $[41], ret.push(t3), $[0] = animate, $[1] = arrowProp, $[2] = arrowRef, $[3] = constrainSize, $[4] = fallbackPlacements, $[5] = floatingBoundary, $[6] = margins, $[7] = matchReferenceWidth, $[8] = maxWidthRef, $[9] = placementProp, $[10] = placementStrategy, $[11] = preventOverflow, $[12] = referenceBoundary, $[13] = referenceWidthRef, $[14] = rootBoundary, $[15] = setReferenceWidth, $[16] = widthRef, $[17] = ret;
|
|
3924
|
+
} else
|
|
3925
|
+
ret = $[17];
|
|
3926
|
+
return ret;
|
|
3927
|
+
}
|
|
3592
3928
|
function radioBaseStyle() {
|
|
3593
3929
|
return css`
|
|
3594
3930
|
position: relative;
|
|
@@ -3887,7 +4223,7 @@ const selectStyle = {
|
|
|
3887
4223
|
displayName: "IconBox",
|
|
3888
4224
|
componentId: "sc-5mxno7-2"
|
|
3889
4225
|
})(selectStyle.iconBox), Select = forwardRef(function(props, forwardedRef) {
|
|
3890
|
-
const $ = c(
|
|
4226
|
+
const $ = c(37);
|
|
3891
4227
|
let children, customValidity, disabled, readOnly, restProps, t0, t1, t2, t3;
|
|
3892
4228
|
$[0] !== props ? ({
|
|
3893
4229
|
children,
|
|
@@ -3903,20 +4239,29 @@ const selectStyle = {
|
|
|
3903
4239
|
const fontSize2 = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, space = t3 === void 0 ? 3 : t3, ref = useRef(null);
|
|
3904
4240
|
let t4;
|
|
3905
4241
|
$[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
|
|
3906
|
-
const t5 = !disabled && readOnly ? "" : void 0
|
|
4242
|
+
const t5 = !disabled && readOnly ? "" : void 0;
|
|
4243
|
+
let t6;
|
|
4244
|
+
$[11] !== fontSize2 ? (t6 = _getArrayProp(fontSize2), $[11] = fontSize2, $[12] = t6) : t6 = $[12];
|
|
4245
|
+
let t7;
|
|
4246
|
+
$[13] !== padding ? (t7 = _getArrayProp(padding), $[13] = padding, $[14] = t7) : t7 = $[14];
|
|
4247
|
+
let t8;
|
|
4248
|
+
$[15] !== radius ? (t8 = _getArrayProp(radius), $[15] = radius, $[16] = t8) : t8 = $[16];
|
|
4249
|
+
let t9;
|
|
4250
|
+
$[17] !== space ? (t9 = _getArrayProp(space), $[17] = space, $[18] = t9) : t9 = $[18];
|
|
4251
|
+
const t10 = disabled || readOnly;
|
|
3907
4252
|
let t11;
|
|
3908
|
-
$[
|
|
4253
|
+
$[19] !== children || $[20] !== restProps || $[21] !== t10 || $[22] !== t5 || $[23] !== t6 || $[24] !== t7 || $[25] !== t8 || $[26] !== t9 ? (t11 = /* @__PURE__ */ jsx(Input$3, { "data-read-only": t5, "data-ui": "Select", ...restProps, $fontSize: t6, $padding: t7, $radius: t8, $space: t9, disabled: t10, ref, children }), $[19] = children, $[20] = restProps, $[21] = t10, $[22] = t5, $[23] = t6, $[24] = t7, $[25] = t8, $[26] = t9, $[27] = t11) : t11 = $[27];
|
|
3909
4254
|
let t12;
|
|
3910
|
-
$[
|
|
4255
|
+
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[28] = t12) : t12 = $[28];
|
|
3911
4256
|
let t13;
|
|
3912
|
-
$[
|
|
4257
|
+
$[29] !== fontSize2 ? (t13 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t12 }), $[29] = fontSize2, $[30] = t13) : t13 = $[30];
|
|
3913
4258
|
let t14;
|
|
3914
|
-
$[
|
|
4259
|
+
$[31] !== padding || $[32] !== t13 ? (t14 = /* @__PURE__ */ jsx(IconBox, { padding, children: t13 }), $[31] = padding, $[32] = t13, $[33] = t14) : t14 = $[33];
|
|
3915
4260
|
let t15;
|
|
3916
|
-
return $[
|
|
4261
|
+
return $[34] !== t11 || $[35] !== t14 ? (t15 = /* @__PURE__ */ jsxs(StyledSelect, { "data-ui": "Select", children: [
|
|
3917
4262
|
t11,
|
|
3918
4263
|
t14
|
|
3919
|
-
] }), $[
|
|
4264
|
+
] }), $[34] = t11, $[35] = t14, $[36] = t15) : t15 = $[36], t15;
|
|
3920
4265
|
});
|
|
3921
4266
|
Select.displayName = "ForwardRef(Select)";
|
|
3922
4267
|
const BASE_STYLE = {
|
|
@@ -3945,16 +4290,18 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
|
|
|
3945
4290
|
displayName: "StyledStack",
|
|
3946
4291
|
componentId: "sc-8dpfq2-0"
|
|
3947
4292
|
})(stackBaseStyle, responsiveStackSpaceStyle), Stack = forwardRef(function(props, ref) {
|
|
3948
|
-
const $ = c(
|
|
4293
|
+
const $ = c(12);
|
|
3949
4294
|
let as, restProps, space;
|
|
3950
4295
|
$[0] !== props ? ({
|
|
3951
4296
|
as,
|
|
3952
4297
|
space,
|
|
3953
4298
|
...restProps
|
|
3954
4299
|
} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = space) : (as = $[1], restProps = $[2], space = $[3]);
|
|
3955
|
-
const t0 = typeof as == "string" ? as : void 0
|
|
4300
|
+
const t0 = typeof as == "string" ? as : void 0;
|
|
4301
|
+
let t1;
|
|
4302
|
+
$[4] !== space ? (t1 = _getArrayProp(space), $[4] = space, $[5] = t1) : t1 = $[5];
|
|
3956
4303
|
let t2;
|
|
3957
|
-
return $[
|
|
4304
|
+
return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t0 || $[10] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledStack, { "data-as": t0, "data-ui": "Stack", ...restProps, $space: t1, forwardedAs: as, ref }), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t0, $[10] = t1, $[11] = t2) : t2 = $[11], t2;
|
|
3958
4305
|
});
|
|
3959
4306
|
Stack.displayName = "ForwardRef(Stack)";
|
|
3960
4307
|
function switchBaseStyles() {
|
|
@@ -4174,7 +4521,7 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
|
|
|
4174
4521
|
displayName: "Presentation",
|
|
4175
4522
|
componentId: "sc-1d6h1o8-3"
|
|
4176
4523
|
})(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function(props, forwardedRef) {
|
|
4177
|
-
const $ = c(
|
|
4524
|
+
const $ = c(35);
|
|
4178
4525
|
let __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
|
|
4179
4526
|
$[0] !== props ? ({
|
|
4180
4527
|
border: t0,
|
|
@@ -4190,17 +4537,26 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
|
|
|
4190
4537
|
const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize2 = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = useRef(null), rootTheme = useRootTheme();
|
|
4191
4538
|
let t5;
|
|
4192
4539
|
$[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
|
|
4193
|
-
const t6 = rootTheme.scheme, t7 = rootTheme.tone
|
|
4540
|
+
const t6 = rootTheme.scheme, t7 = rootTheme.tone;
|
|
4541
|
+
let t8;
|
|
4542
|
+
$[11] !== fontSize2 ? (t8 = _getArrayProp(fontSize2), $[11] = fontSize2, $[12] = t8) : t8 = $[12];
|
|
4543
|
+
let t9;
|
|
4544
|
+
$[13] !== padding ? (t9 = _getArrayProp(padding), $[13] = padding, $[14] = t9) : t9 = $[14];
|
|
4545
|
+
const t10 = rootTheme.scheme;
|
|
4546
|
+
let t11;
|
|
4547
|
+
$[15] === Symbol.for("react.memo_cache_sentinel") ? (t11 = _getArrayProp(0), $[15] = t11) : t11 = $[15];
|
|
4194
4548
|
let t12;
|
|
4195
|
-
$[
|
|
4196
|
-
|
|
4549
|
+
$[16] !== disabled || $[17] !== restProps || $[18] !== rootTheme.scheme || $[19] !== rootTheme.tone || $[20] !== t8 || $[21] !== t9 || $[22] !== weight ? (t12 = /* @__PURE__ */ jsx(Input$1, { "data-as": "textarea", "data-scheme": t6, "data-tone": t7, ...restProps, $fontSize: t8, $padding: t9, $scheme: t10, $space: t11, $tone: rootTheme.tone, $weight: weight, disabled, ref }), $[16] = disabled, $[17] = restProps, $[18] = rootTheme.scheme, $[19] = rootTheme.tone, $[20] = t8, $[21] = t9, $[22] = weight, $[23] = t12) : t12 = $[23];
|
|
4550
|
+
let t13;
|
|
4551
|
+
$[24] !== radius ? (t13 = _getArrayProp(radius), $[24] = radius, $[25] = t13) : t13 = $[25];
|
|
4552
|
+
const t14 = border2 ? "" : void 0;
|
|
4197
4553
|
let t15;
|
|
4198
|
-
$[
|
|
4554
|
+
$[26] !== __unstable_disableFocusRing || $[27] !== rootTheme.scheme || $[28] !== rootTheme.tone || $[29] !== t13 || $[30] !== t14 ? (t15 = /* @__PURE__ */ jsx(Presentation$1, { $radius: t13, $unstableDisableFocusRing: __unstable_disableFocusRing, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone }), $[26] = __unstable_disableFocusRing, $[27] = rootTheme.scheme, $[28] = rootTheme.tone, $[29] = t13, $[30] = t14, $[31] = t15) : t15 = $[31];
|
|
4199
4555
|
let t16;
|
|
4200
|
-
return $[
|
|
4556
|
+
return $[32] !== t12 || $[33] !== t15 ? (t16 = /* @__PURE__ */ jsx(StyledTextArea, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxs(InputRoot$1, { children: [
|
|
4201
4557
|
t12,
|
|
4202
4558
|
t15
|
|
4203
|
-
] }) }), $[
|
|
4559
|
+
] }) }), $[32] = t12, $[33] = t15, $[34] = t16) : t16 = $[34], t16;
|
|
4204
4560
|
});
|
|
4205
4561
|
TextArea.displayName = "ForwardRef(TextArea)";
|
|
4206
4562
|
const CLEAR_BUTTON_BOX_STYLE = {
|
|
@@ -4246,7 +4602,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4246
4602
|
display: "block"
|
|
4247
4603
|
}
|
|
4248
4604
|
}), TextInput = forwardRef(function(props, forwardedRef) {
|
|
4249
|
-
const $ = c(
|
|
4605
|
+
const $ = c(92);
|
|
4250
4606
|
let IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
|
|
4251
4607
|
$[0] !== props ? ({
|
|
4252
4608
|
__unstable_disableFocusRing,
|
|
@@ -4268,60 +4624,72 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4268
4624
|
weight,
|
|
4269
4625
|
...restProps
|
|
4270
4626
|
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] = onClear, $[7] = prefix, $[8] = readOnly, $[9] = restProps, $[10] = suffix, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5, $[17] = t6, $[18] = weight) : (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], onClear = $[6], prefix = $[7], readOnly = $[8], restProps = $[9], suffix = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16], t6 = $[17], weight = $[18]);
|
|
4271
|
-
const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), rootTheme = useRootTheme()
|
|
4627
|
+
const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), rootTheme = useRootTheme();
|
|
4272
4628
|
let t7;
|
|
4273
|
-
$[19]
|
|
4274
|
-
const
|
|
4629
|
+
$[19] !== fontSizeProp ? (t7 = _getArrayProp(fontSizeProp), $[19] = fontSizeProp, $[20] = t7) : t7 = $[20];
|
|
4630
|
+
const fontSize2 = t7;
|
|
4275
4631
|
let t8;
|
|
4276
|
-
$[
|
|
4277
|
-
|
|
4278
|
-
}, $[20] = onClear, $[21] = t8) : t8 = $[21];
|
|
4279
|
-
const handleClearClick = t8;
|
|
4632
|
+
$[21] !== paddingProp ? (t8 = _getArrayProp(paddingProp), $[21] = paddingProp, $[22] = t8) : t8 = $[22];
|
|
4633
|
+
const padding = t8;
|
|
4280
4634
|
let t9;
|
|
4281
|
-
$[
|
|
4282
|
-
const
|
|
4635
|
+
$[23] !== radiusProp ? (t9 = _getArrayProp(radiusProp), $[23] = radiusProp, $[24] = t9) : t9 = $[24];
|
|
4636
|
+
const radius = t9;
|
|
4637
|
+
let t10;
|
|
4638
|
+
$[25] !== spaceProp ? (t10 = _getArrayProp(spaceProp), $[25] = spaceProp, $[26] = t10) : t10 = $[26];
|
|
4639
|
+
const space = t10, $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix;
|
|
4283
4640
|
let t11;
|
|
4284
|
-
$[
|
|
4285
|
-
|
|
4286
|
-
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
4287
|
-
] }) }), $[25] = IconComponent, $[26] = fontSize2, $[27] = padding, $[28] = t11) : t11 = $[28];
|
|
4641
|
+
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t11 = () => ref.current, $[27] = t11) : t11 = $[27], useImperativeHandle(forwardedRef, t11), useCustomValidity(ref, customValidity);
|
|
4642
|
+
const handleClearMouseDown = _temp$2;
|
|
4288
4643
|
let t12;
|
|
4289
|
-
$[
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4644
|
+
$[28] !== onClear ? (t12 = (event_0) => {
|
|
4645
|
+
event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
|
|
4646
|
+
}, $[28] = onClear, $[29] = t12) : t12 = $[29];
|
|
4647
|
+
const handleClearClick = t12;
|
|
4293
4648
|
let t13;
|
|
4294
|
-
$[
|
|
4295
|
-
|
|
4296
|
-
t12
|
|
4297
|
-
] }), $[34] = $hasPrefix, $[35] = $hasSuffix, $[36] = __unstable_disableFocusRing, $[37] = radius, $[38] = rootTheme.scheme, $[39] = rootTheme.tone, $[40] = t10, $[41] = t11, $[42] = t12, $[43] = t13) : t13 = $[43];
|
|
4298
|
-
const presentationNode = t13;
|
|
4299
|
-
let t14;
|
|
4300
|
-
$[44] !== padding ? (t14 = padding.map(_temp2), $[44] = padding, $[45] = t14) : t14 = $[45];
|
|
4301
|
-
const clearButtonBoxPadding = t14;
|
|
4649
|
+
$[30] !== prefix || $[31] !== radius ? (t13 = prefix && /* @__PURE__ */ jsx(Prefix, { borderTop: !0, borderLeft: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[30] = prefix, $[31] = radius, $[32] = t13) : t13 = $[32];
|
|
4650
|
+
const prefixNode = t13, t14 = border2 ? "" : void 0;
|
|
4302
4651
|
let t15;
|
|
4303
|
-
$[
|
|
4304
|
-
|
|
4652
|
+
$[33] !== IconComponent || $[34] !== fontSize2 || $[35] !== padding ? (t15 = IconComponent && /* @__PURE__ */ jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
|
|
4653
|
+
isValidElement(IconComponent) && IconComponent,
|
|
4654
|
+
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
4655
|
+
] }) }), $[33] = IconComponent, $[34] = fontSize2, $[35] = padding, $[36] = t15) : t15 = $[36];
|
|
4305
4656
|
let t16;
|
|
4306
|
-
$[
|
|
4307
|
-
|
|
4657
|
+
$[37] !== $hasClearButton || $[38] !== IconRightComponent || $[39] !== fontSize2 || $[40] !== padding ? (t16 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsx(RightBox, { padding, children: /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
|
|
4658
|
+
isValidElement(IconRightComponent) && IconRightComponent,
|
|
4659
|
+
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
4660
|
+
] }) }), $[37] = $hasClearButton, $[38] = IconRightComponent, $[39] = fontSize2, $[40] = padding, $[41] = t16) : t16 = $[41];
|
|
4308
4661
|
let t17;
|
|
4309
|
-
$[
|
|
4310
|
-
|
|
4662
|
+
$[42] !== $hasPrefix || $[43] !== $hasSuffix || $[44] !== __unstable_disableFocusRing || $[45] !== radius || $[46] !== rootTheme.scheme || $[47] !== rootTheme.tone || $[48] !== t14 || $[49] !== t15 || $[50] !== t16 ? (t17 = /* @__PURE__ */ jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
|
|
4663
|
+
t15,
|
|
4664
|
+
t16
|
|
4665
|
+
] }), $[42] = $hasPrefix, $[43] = $hasSuffix, $[44] = __unstable_disableFocusRing, $[45] = radius, $[46] = rootTheme.scheme, $[47] = rootTheme.tone, $[48] = t14, $[49] = t15, $[50] = t16, $[51] = t17) : t17 = $[51];
|
|
4666
|
+
const presentationNode = t17;
|
|
4667
|
+
let t18;
|
|
4668
|
+
$[52] !== padding ? (t18 = padding.map(_temp2), $[52] = padding, $[53] = t18) : t18 = $[53];
|
|
4669
|
+
const clearButtonBoxPadding = t18;
|
|
4311
4670
|
let t19;
|
|
4312
|
-
$[
|
|
4671
|
+
$[54] !== padding ? (t19 = padding.map(_temp3), $[54] = padding, $[55] = t19) : t19 = $[55];
|
|
4672
|
+
const clearButtonPadding = t19, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
|
|
4313
4673
|
let t20;
|
|
4314
|
-
$[
|
|
4315
|
-
|
|
4674
|
+
$[56] !== clearButton || $[57] !== clearButtonBoxPadding || $[58] !== clearButtonPadding || $[59] !== clearButtonProps || $[60] !== customValidity || $[61] !== disabled || $[62] !== fontSize2 || $[63] !== handleClearClick || $[64] !== radius || $[65] !== readOnly ? (t20 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[56] = clearButton, $[57] = clearButtonBoxPadding, $[58] = clearButtonPadding, $[59] = clearButtonProps, $[60] = customValidity, $[61] = disabled, $[62] = fontSize2, $[63] = handleClearClick, $[64] = radius, $[65] = readOnly, $[66] = t20) : t20 = $[66];
|
|
4675
|
+
const clearButtonNode = t20;
|
|
4676
|
+
let t21;
|
|
4677
|
+
$[67] !== radius || $[68] !== suffix ? (t21 = suffix && /* @__PURE__ */ jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[67] = radius, $[68] = suffix, $[69] = t21) : t21 = $[69];
|
|
4678
|
+
const suffixNode = t21, t22 = $hasIconRight || $hasClearButton;
|
|
4679
|
+
let t23;
|
|
4680
|
+
$[70] !== $hasIcon || $[71] !== disabled || $[72] !== fontSize2 || $[73] !== padding || $[74] !== readOnly || $[75] !== restProps || $[76] !== rootTheme.scheme || $[77] !== rootTheme.tone || $[78] !== space || $[79] !== t22 || $[80] !== type || $[81] !== weight ? (t23 = /* @__PURE__ */ jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t22, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[70] = $hasIcon, $[71] = disabled, $[72] = fontSize2, $[73] = padding, $[74] = readOnly, $[75] = restProps, $[76] = rootTheme.scheme, $[77] = rootTheme.tone, $[78] = space, $[79] = t22, $[80] = type, $[81] = weight, $[82] = t23) : t23 = $[82];
|
|
4681
|
+
let t24;
|
|
4682
|
+
$[83] !== clearButtonNode || $[84] !== presentationNode || $[85] !== t23 ? (t24 = /* @__PURE__ */ jsxs(InputRoot, { children: [
|
|
4683
|
+
t23,
|
|
4316
4684
|
presentationNode,
|
|
4317
4685
|
clearButtonNode
|
|
4318
|
-
] }), $[
|
|
4319
|
-
let
|
|
4320
|
-
return $[
|
|
4686
|
+
] }), $[83] = clearButtonNode, $[84] = presentationNode, $[85] = t23, $[86] = t24) : t24 = $[86];
|
|
4687
|
+
let t25;
|
|
4688
|
+
return $[87] !== prefixNode || $[88] !== rootTheme.tone || $[89] !== suffixNode || $[90] !== t24 ? (t25 = /* @__PURE__ */ jsxs(StyledTextInput, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
|
|
4321
4689
|
prefixNode,
|
|
4322
|
-
|
|
4690
|
+
t24,
|
|
4323
4691
|
suffixNode
|
|
4324
|
-
] }), $[
|
|
4692
|
+
] }), $[87] = prefixNode, $[88] = rootTheme.tone, $[89] = suffixNode, $[90] = t24, $[91] = t25) : t25 = $[91], t25;
|
|
4325
4693
|
});
|
|
4326
4694
|
TextInput.displayName = "ForwardRef(TextInput)";
|
|
4327
4695
|
function _temp$2(event) {
|
|
@@ -4364,7 +4732,7 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
4364
4732
|
}, MotionCard = styled(motion.create(Card)).withConfig({
|
|
4365
4733
|
displayName: "MotionCard",
|
|
4366
4734
|
componentId: "sc-1xn138w-0"
|
|
4367
|
-
})`will-change:transform;`, TooltipCard =
|
|
4735
|
+
})`will-change:transform;`, TooltipCard = forwardRef(function(props, ref) {
|
|
4368
4736
|
const $ = c(48);
|
|
4369
4737
|
let animate, arrow2, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
|
|
4370
4738
|
$[0] !== props ? ({
|
|
@@ -4414,8 +4782,8 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
4414
4782
|
children,
|
|
4415
4783
|
t9
|
|
4416
4784
|
] }), $[34] = children, $[35] = padding, $[36] = placement, $[37] = radius, $[38] = ref, $[39] = rootStyle2, $[40] = scheme, $[41] = shadow, $[42] = t5, $[43] = t6, $[44] = t7, $[45] = t8, $[46] = t9, $[47] = t10) : t10 = $[47], t10;
|
|
4417
|
-
})
|
|
4418
|
-
TooltipCard.displayName = "
|
|
4785
|
+
});
|
|
4786
|
+
TooltipCard.displayName = "ForwardRef(TooltipCard)";
|
|
4419
4787
|
const TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
|
|
4420
4788
|
function TooltipDelayGroupProvider(props) {
|
|
4421
4789
|
const $ = c(9), {
|
|
@@ -4442,61 +4810,71 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
4442
4810
|
displayName: "StyledTooltip",
|
|
4443
4811
|
componentId: "sc-13f2zvh-0"
|
|
4444
4812
|
})`pointer-events:none;`, Tooltip = forwardRef(function(props, forwardedRef) {
|
|
4445
|
-
const boundaryElementContext = useBoundaryElement(), {
|
|
4813
|
+
const $ = c(137), boundaryElementContext = useBoundaryElement(), {
|
|
4446
4814
|
layer
|
|
4447
|
-
} = useTheme_v2()
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4815
|
+
} = useTheme_v2();
|
|
4816
|
+
let _boundaryElement, _fallbackPlacementsProp, _zOffset, childProp, content, delay, disabled, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5;
|
|
4817
|
+
$[0] !== props ? ({
|
|
4818
|
+
animate: t0,
|
|
4819
|
+
arrow: t1,
|
|
4820
|
+
boundaryElement: _boundaryElement,
|
|
4451
4821
|
children: childProp,
|
|
4452
4822
|
content,
|
|
4453
4823
|
disabled,
|
|
4454
|
-
fallbackPlacements:
|
|
4455
|
-
padding
|
|
4456
|
-
placement:
|
|
4824
|
+
fallbackPlacements: _fallbackPlacementsProp,
|
|
4825
|
+
padding: t2,
|
|
4826
|
+
placement: t3,
|
|
4457
4827
|
portal: portalProp,
|
|
4458
|
-
radius
|
|
4828
|
+
radius: t4,
|
|
4459
4829
|
scheme,
|
|
4460
|
-
shadow
|
|
4461
|
-
zOffset
|
|
4830
|
+
shadow: t5,
|
|
4831
|
+
zOffset: _zOffset,
|
|
4462
4832
|
delay,
|
|
4463
4833
|
...restProps
|
|
4464
|
-
} = props,
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4834
|
+
} = props, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacementsProp, $[3] = _zOffset, $[4] = childProp, $[5] = content, $[6] = delay, $[7] = disabled, $[8] = portalProp, $[9] = restProps, $[10] = scheme, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5) : (_boundaryElement = $[1], _fallbackPlacementsProp = $[2], _zOffset = $[3], childProp = $[4], content = $[5], delay = $[6], disabled = $[7], portalProp = $[8], restProps = $[9], scheme = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16]);
|
|
4835
|
+
const _animate = t0 === void 0 ? !1 : t0, arrowProp = t1 === void 0 ? !1 : t1, padding = t2 === void 0 ? 2 : t2, placementProp = t3 === void 0 ? "bottom" : t3, radius = t4 === void 0 ? 2 : t4, shadow = t5 === void 0 ? 2 : t5, boundaryElement = _boundaryElement ?? boundaryElementContext?.element, fallbackPlacementsProp = _fallbackPlacementsProp ?? DEFAULT_FALLBACK_PLACEMENTS[props.placement ?? "bottom"], zOffset = _zOffset ?? layer.tooltip.zOffset, animate = usePrefersReducedMotion() ? !1 : _animate;
|
|
4836
|
+
let t6;
|
|
4837
|
+
$[17] !== fallbackPlacementsProp ? (t6 = _getArrayProp(fallbackPlacementsProp), $[17] = fallbackPlacementsProp, $[18] = t6) : t6 = $[18];
|
|
4838
|
+
const fallbackPlacements = t6, ref = useRef(null), [referenceElement, setReferenceElement] = useState(null), arrowRef = useRef(null), [tooltipMaxWidth, setTooltipMaxWidth] = useState(0);
|
|
4839
|
+
let t7;
|
|
4840
|
+
$[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], useImperativeHandle(forwardedRef, t7);
|
|
4841
|
+
const portal = usePortal(), portalElement = typeof portalProp == "string" ? portal.elements?.[portalProp] || null : portal.element;
|
|
4842
|
+
let t8;
|
|
4843
|
+
$[20] !== animate || $[21] !== arrowProp || $[22] !== boundaryElement || $[23] !== fallbackPlacements ? (t8 = {
|
|
4844
|
+
animate,
|
|
4845
|
+
arrowProp,
|
|
4846
|
+
arrowRef,
|
|
4847
|
+
boundaryElement,
|
|
4848
|
+
fallbackPlacements,
|
|
4849
|
+
rootBoundary: "viewport"
|
|
4850
|
+
}, $[20] = animate, $[21] = arrowProp, $[22] = boundaryElement, $[23] = fallbackPlacements, $[24] = t8) : t8 = $[24];
|
|
4851
|
+
const middleware = useMiddleware(t8);
|
|
4852
|
+
let t9;
|
|
4853
|
+
$[25] !== referenceElement ? (t9 = {
|
|
4854
|
+
reference: referenceElement
|
|
4855
|
+
}, $[25] = referenceElement, $[26] = t9) : t9 = $[26];
|
|
4856
|
+
let t10;
|
|
4857
|
+
$[27] !== middleware || $[28] !== placementProp || $[29] !== t9 ? (t10 = {
|
|
4858
|
+
middleware,
|
|
4859
|
+
placement: placementProp,
|
|
4860
|
+
whileElementsMounted: autoUpdate,
|
|
4861
|
+
elements: t9
|
|
4862
|
+
}, $[27] = middleware, $[28] = placementProp, $[29] = t9, $[30] = t10) : t10 = $[30];
|
|
4863
|
+
const {
|
|
4484
4864
|
floatingStyles,
|
|
4485
4865
|
placement,
|
|
4486
4866
|
middlewareData,
|
|
4487
4867
|
refs,
|
|
4488
4868
|
update
|
|
4489
|
-
} = useFloating(
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
elements: {
|
|
4494
|
-
reference: referenceElement
|
|
4495
|
-
}
|
|
4496
|
-
}), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = useId(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup(), {
|
|
4869
|
+
} = useFloating(t10), arrowX = middlewareData.arrow?.x, arrowY = middlewareData.arrow?.y, originX = middlewareData["@sanity/ui/origin"]?.originX, originY = middlewareData["@sanity/ui/origin"]?.originY, tooltipId = useId(), [isOpen, setIsOpen] = useDelayedState(!1), delayGroupContext = useTooltipDelayGroup();
|
|
4870
|
+
let t11;
|
|
4871
|
+
$[31] !== delayGroupContext ? (t11 = delayGroupContext || {}, $[31] = delayGroupContext, $[32] = t11) : t11 = $[32];
|
|
4872
|
+
const {
|
|
4497
4873
|
setIsGroupActive,
|
|
4498
4874
|
setOpenTooltipId
|
|
4499
|
-
} =
|
|
4875
|
+
} = t11, showTooltip = isOpen || delayGroupContext?.openTooltipId === tooltipId, isInsideGroup = delayGroupContext !== null, openDelayProp = typeof delay == "number" ? delay : delay?.open || 0, closeDelayProp = typeof delay == "number" ? delay : delay?.close || 0, openDelay = isInsideGroup ? delayGroupContext.openDelay : openDelayProp, closeDelay = isInsideGroup ? delayGroupContext.closeDelay : closeDelayProp;
|
|
4876
|
+
let t12;
|
|
4877
|
+
$[33] !== closeDelay || $[34] !== isInsideGroup || $[35] !== openDelay || $[36] !== setIsGroupActive || $[37] !== setIsOpen || $[38] !== setOpenTooltipId || $[39] !== tooltipId ? (t12 = (open, immediate) => {
|
|
4500
4878
|
if (isInsideGroup)
|
|
4501
4879
|
if (open) {
|
|
4502
4880
|
const groupedOpenDelay = immediate ? 0 : openDelay;
|
|
@@ -4507,65 +4885,173 @@ const StyledTooltip = styled(Layer).withConfig({
|
|
|
4507
4885
|
}
|
|
4508
4886
|
else
|
|
4509
4887
|
setIsOpen(open, immediate ? 0 : open ? openDelay : closeDelay);
|
|
4510
|
-
}, [isInsideGroup, openDelay, setIsGroupActive,
|
|
4888
|
+
}, $[33] = closeDelay, $[34] = isInsideGroup, $[35] = openDelay, $[36] = setIsGroupActive, $[37] = setIsOpen, $[38] = setOpenTooltipId, $[39] = tooltipId, $[40] = t12) : t12 = $[40];
|
|
4889
|
+
const handleIsOpenChange = t12;
|
|
4890
|
+
let t13;
|
|
4891
|
+
$[41] !== childProp?.props || $[42] !== handleIsOpenChange ? (t13 = (e) => {
|
|
4511
4892
|
handleIsOpenChange(!1), childProp?.props?.onBlur?.(e);
|
|
4512
|
-
}, [childProp?.props, handleIsOpenChange
|
|
4893
|
+
}, $[41] = childProp?.props, $[42] = handleIsOpenChange, $[43] = t13) : t13 = $[43];
|
|
4894
|
+
const handleBlur = t13;
|
|
4895
|
+
let t14;
|
|
4896
|
+
$[44] !== childProp?.props || $[45] !== handleIsOpenChange ? (t14 = (e_0) => {
|
|
4513
4897
|
handleIsOpenChange(!1, !0), childProp?.props.onClick?.(e_0);
|
|
4514
|
-
}, [childProp?.props, handleIsOpenChange
|
|
4898
|
+
}, $[44] = childProp?.props, $[45] = handleIsOpenChange, $[46] = t14) : t14 = $[46];
|
|
4899
|
+
const handleClick = t14;
|
|
4900
|
+
let t15;
|
|
4901
|
+
$[47] !== childProp?.props || $[48] !== handleIsOpenChange ? (t15 = (e_1) => {
|
|
4515
4902
|
handleIsOpenChange(!1, !0), childProp?.props.onContextMenu?.(e_1);
|
|
4516
|
-
}, [childProp?.props, handleIsOpenChange
|
|
4903
|
+
}, $[47] = childProp?.props, $[48] = handleIsOpenChange, $[49] = t15) : t15 = $[49];
|
|
4904
|
+
const handleContextMenu = t15;
|
|
4905
|
+
let t16;
|
|
4906
|
+
$[50] !== childProp?.props || $[51] !== handleIsOpenChange ? (t16 = (e_2) => {
|
|
4517
4907
|
handleIsOpenChange(!0), childProp?.props?.onFocus?.(e_2);
|
|
4518
|
-
}, [childProp?.props, handleIsOpenChange
|
|
4908
|
+
}, $[50] = childProp?.props, $[51] = handleIsOpenChange, $[52] = t16) : t16 = $[52];
|
|
4909
|
+
const handleFocus = t16;
|
|
4910
|
+
let t17;
|
|
4911
|
+
$[53] !== childProp?.props || $[54] !== handleIsOpenChange ? (t17 = (e_3) => {
|
|
4519
4912
|
handleIsOpenChange(!0), childProp?.props?.onMouseEnter?.(e_3);
|
|
4520
|
-
}, [childProp?.props, handleIsOpenChange
|
|
4913
|
+
}, $[53] = childProp?.props, $[54] = handleIsOpenChange, $[55] = t17) : t17 = $[55];
|
|
4914
|
+
const handleMouseEnter = t17;
|
|
4915
|
+
let t18;
|
|
4916
|
+
$[56] !== childProp?.props || $[57] !== handleIsOpenChange ? (t18 = (e_4) => {
|
|
4521
4917
|
handleIsOpenChange(!1), childProp?.props?.onMouseLeave?.(e_4);
|
|
4522
|
-
}, [childProp?.props, handleIsOpenChange]);
|
|
4523
|
-
|
|
4918
|
+
}, $[56] = childProp?.props, $[57] = handleIsOpenChange, $[58] = t18) : t18 = $[58];
|
|
4919
|
+
const handleMouseLeave = t18;
|
|
4920
|
+
let t19;
|
|
4921
|
+
$[59] !== handleIsOpenChange || $[60] !== isInsideGroup || $[61] !== referenceElement || $[62] !== showTooltip ? (t19 = {
|
|
4524
4922
|
handleIsOpenChange,
|
|
4525
4923
|
referenceElement,
|
|
4526
4924
|
showTooltip,
|
|
4527
4925
|
isInsideGroup
|
|
4528
|
-
}),
|
|
4926
|
+
}, $[59] = handleIsOpenChange, $[60] = isInsideGroup, $[61] = referenceElement, $[62] = showTooltip, $[63] = t19) : t19 = $[63], useCloseOnMouseLeave(t19);
|
|
4927
|
+
let t20, t21;
|
|
4928
|
+
$[64] !== disabled || $[65] !== handleIsOpenChange || $[66] !== showTooltip ? (t20 = () => {
|
|
4529
4929
|
disabled && showTooltip && handleIsOpenChange(!1);
|
|
4530
|
-
}, [disabled, handleIsOpenChange, showTooltip]), useEffect(
|
|
4930
|
+
}, t21 = [disabled, handleIsOpenChange, showTooltip], $[64] = disabled, $[65] = handleIsOpenChange, $[66] = showTooltip, $[67] = t20, $[68] = t21) : (t20 = $[67], t21 = $[68]), useEffect(t20, t21);
|
|
4931
|
+
let t22, t23;
|
|
4932
|
+
$[69] !== content || $[70] !== handleIsOpenChange || $[71] !== showTooltip ? (t22 = () => {
|
|
4531
4933
|
!content && showTooltip && handleIsOpenChange(!1);
|
|
4532
|
-
}, [content, handleIsOpenChange, showTooltip]), useEffect(
|
|
4533
|
-
|
|
4534
|
-
|
|
4934
|
+
}, t23 = [content, handleIsOpenChange, showTooltip], $[69] = content, $[70] = handleIsOpenChange, $[71] = showTooltip, $[72] = t22, $[73] = t23) : (t22 = $[72], t23 = $[73]), useEffect(t22, t23);
|
|
4935
|
+
let t24, t25;
|
|
4936
|
+
$[74] !== handleIsOpenChange || $[75] !== showTooltip ? (t24 = () => {
|
|
4937
|
+
if (!showTooltip)
|
|
4938
|
+
return;
|
|
4939
|
+
const handleWindowKeyDown = function(event) {
|
|
4535
4940
|
event.key === "Escape" && handleIsOpenChange(!1, !0);
|
|
4536
|
-
}
|
|
4941
|
+
};
|
|
4537
4942
|
return window.addEventListener("keydown", handleWindowKeyDown), () => {
|
|
4538
4943
|
window.removeEventListener("keydown", handleWindowKeyDown);
|
|
4539
4944
|
};
|
|
4540
|
-
}, [handleIsOpenChange, showTooltip]),
|
|
4945
|
+
}, t25 = [handleIsOpenChange, showTooltip], $[74] = handleIsOpenChange, $[75] = showTooltip, $[76] = t24, $[77] = t25) : (t24 = $[76], t25 = $[77]), useEffect(t24, t25);
|
|
4946
|
+
let t26;
|
|
4947
|
+
$[78] !== boundaryElement || $[79] !== portalElement?.offsetWidth ? (t26 = () => {
|
|
4541
4948
|
const availableWidths = [...boundaryElement ? [boundaryElement.offsetWidth] : [], portalElement?.offsetWidth || document.body.offsetWidth];
|
|
4542
4949
|
setTooltipMaxWidth(Math.min(...availableWidths) - DEFAULT_TOOLTIP_PADDING * 2);
|
|
4543
|
-
}, [boundaryElement, portalElement]);
|
|
4544
|
-
|
|
4950
|
+
}, $[78] = boundaryElement, $[79] = portalElement?.offsetWidth, $[80] = t26) : t26 = $[80];
|
|
4951
|
+
let t27;
|
|
4952
|
+
$[81] !== boundaryElement || $[82] !== portalElement ? (t27 = [boundaryElement, portalElement], $[81] = boundaryElement, $[82] = portalElement, $[83] = t27) : t27 = $[83], useLayoutEffect(t26, t27);
|
|
4953
|
+
let t28;
|
|
4954
|
+
$[84] !== update ? (t28 = (arrowEl) => {
|
|
4545
4955
|
arrowRef.current = arrowEl, update();
|
|
4546
|
-
}, [update
|
|
4956
|
+
}, $[84] = update, $[85] = t28) : t28 = $[85];
|
|
4957
|
+
const setArrow = t28;
|
|
4958
|
+
let t29;
|
|
4959
|
+
$[86] !== refs ? (t29 = (node) => {
|
|
4547
4960
|
ref.current = node, refs.setFloating(node);
|
|
4548
|
-
}, [refs
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4961
|
+
}, $[86] = refs, $[87] = t29) : t29 = $[87];
|
|
4962
|
+
const setFloating = t29;
|
|
4963
|
+
let t30;
|
|
4964
|
+
bb0: {
|
|
4965
|
+
if (!childProp) {
|
|
4966
|
+
t30 = null;
|
|
4967
|
+
break bb0;
|
|
4968
|
+
}
|
|
4969
|
+
let t312;
|
|
4970
|
+
$[88] !== childProp || $[89] !== handleBlur || $[90] !== handleClick || $[91] !== handleContextMenu || $[92] !== handleFocus || $[93] !== handleMouseEnter || $[94] !== handleMouseLeave ? (t312 = cloneElement(childProp, {
|
|
4971
|
+
onBlur: handleBlur,
|
|
4972
|
+
onFocus: handleFocus,
|
|
4973
|
+
onMouseEnter: handleMouseEnter,
|
|
4974
|
+
onMouseLeave: handleMouseLeave,
|
|
4975
|
+
onClick: handleClick,
|
|
4976
|
+
onContextMenu: handleContextMenu,
|
|
4977
|
+
ref: setReferenceElement
|
|
4978
|
+
}), $[88] = childProp, $[89] = handleBlur, $[90] = handleClick, $[91] = handleContextMenu, $[92] = handleFocus, $[93] = handleMouseEnter, $[94] = handleMouseLeave, $[95] = t312) : t312 = $[95], t30 = t312;
|
|
4979
|
+
}
|
|
4980
|
+
const child = t30;
|
|
4981
|
+
let t31;
|
|
4982
|
+
$[96] !== childProp ? (t31 = childProp ? getElementRef(childProp) : null, $[96] = childProp, $[97] = t31) : t31 = $[97];
|
|
4983
|
+
let t32, t33;
|
|
4984
|
+
if ($[98] !== referenceElement ? (t32 = () => referenceElement, t33 = [referenceElement], $[98] = referenceElement, $[99] = t32, $[100] = t33) : (t32 = $[99], t33 = $[100]), useImperativeHandle(t31, t32, t33), !child) {
|
|
4985
|
+
let t342;
|
|
4986
|
+
return $[101] === Symbol.for("react.memo_cache_sentinel") ? (t342 = /* @__PURE__ */ jsx(Fragment, {}), $[101] = t342) : t342 = $[101], t342;
|
|
4987
|
+
}
|
|
4988
|
+
if (disabled)
|
|
4989
|
+
return child;
|
|
4990
|
+
const t34 = tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0;
|
|
4991
|
+
let t35;
|
|
4992
|
+
$[102] !== floatingStyles || $[103] !== t34 ? (t35 = {
|
|
4560
4993
|
...floatingStyles,
|
|
4561
|
-
maxWidth:
|
|
4562
|
-
},
|
|
4563
|
-
|
|
4564
|
-
|
|
4994
|
+
maxWidth: t34
|
|
4995
|
+
}, $[102] = floatingStyles, $[103] = t34, $[104] = t35) : t35 = $[104];
|
|
4996
|
+
let t36;
|
|
4997
|
+
$[105] !== animate || $[106] !== arrowProp || $[107] !== arrowX || $[108] !== arrowY || $[109] !== content || $[110] !== originX || $[111] !== originY || $[112] !== padding || $[113] !== placement || $[114] !== radius || $[115] !== restProps || $[116] !== scheme || $[117] !== setArrow || $[118] !== setFloating || $[119] !== shadow ? (t36 = /* @__PURE__ */ jsx(TooltipCard, { ...restProps, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, originX, originY, padding, placement, radius, ref: setFloating, scheme, shadow, children: content }), $[105] = animate, $[106] = arrowProp, $[107] = arrowX, $[108] = arrowY, $[109] = content, $[110] = originX, $[111] = originY, $[112] = padding, $[113] = placement, $[114] = radius, $[115] = restProps, $[116] = scheme, $[117] = setArrow, $[118] = setFloating, $[119] = shadow, $[120] = t36) : t36 = $[120];
|
|
4998
|
+
let t37;
|
|
4999
|
+
$[121] !== restProps || $[122] !== setFloating || $[123] !== t35 || $[124] !== t36 || $[125] !== zOffset ? (t37 = /* @__PURE__ */ jsx(StyledTooltip, { "data-ui": "Tooltip", ...restProps, ref: setFloating, style: t35, zOffset, children: t36 }), $[121] = restProps, $[122] = setFloating, $[123] = t35, $[124] = t36, $[125] = zOffset, $[126] = t37) : t37 = $[126];
|
|
5000
|
+
const tooltip = t37;
|
|
5001
|
+
let t38;
|
|
5002
|
+
$[127] !== portalProp || $[128] !== showTooltip || $[129] !== tooltip ? (t38 = showTooltip && (portalProp ? /* @__PURE__ */ jsx(Portal, { __unstable_name: typeof portalProp == "string" ? portalProp : void 0, children: tooltip }) : tooltip), $[127] = portalProp, $[128] = showTooltip, $[129] = tooltip, $[130] = t38) : t38 = $[130];
|
|
5003
|
+
const children = t38;
|
|
5004
|
+
let t39;
|
|
5005
|
+
$[131] !== animate || $[132] !== children ? (t39 = animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children, $[131] = animate, $[132] = children, $[133] = t39) : t39 = $[133];
|
|
5006
|
+
let t40;
|
|
5007
|
+
return $[134] !== child || $[135] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5008
|
+
t39,
|
|
4565
5009
|
child
|
|
4566
|
-
] });
|
|
5010
|
+
] }), $[134] = child, $[135] = t39, $[136] = t40) : t40 = $[136], t40;
|
|
4567
5011
|
});
|
|
4568
5012
|
Tooltip.displayName = "ForwardRef(Tooltip)";
|
|
5013
|
+
function useMiddleware(t0) {
|
|
5014
|
+
const $ = c(17), {
|
|
5015
|
+
animate,
|
|
5016
|
+
arrowProp,
|
|
5017
|
+
arrowRef,
|
|
5018
|
+
boundaryElement,
|
|
5019
|
+
fallbackPlacements,
|
|
5020
|
+
rootBoundary
|
|
5021
|
+
} = t0;
|
|
5022
|
+
let ret;
|
|
5023
|
+
if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== boundaryElement || $[4] !== fallbackPlacements || $[5] !== rootBoundary) {
|
|
5024
|
+
ret = [];
|
|
5025
|
+
const t1 = boundaryElement || void 0;
|
|
5026
|
+
let t2;
|
|
5027
|
+
$[7] !== fallbackPlacements || $[8] !== rootBoundary || $[9] !== t1 ? (t2 = flip({
|
|
5028
|
+
boundary: t1,
|
|
5029
|
+
fallbackPlacements,
|
|
5030
|
+
padding: DEFAULT_TOOLTIP_PADDING,
|
|
5031
|
+
rootBoundary
|
|
5032
|
+
}), $[7] = fallbackPlacements, $[8] = rootBoundary, $[9] = t1, $[10] = t2) : t2 = $[10], ret.push(t2);
|
|
5033
|
+
let t3;
|
|
5034
|
+
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t3 = offset({
|
|
5035
|
+
mainAxis: DEFAULT_TOOLTIP_DISTANCE
|
|
5036
|
+
}), $[11] = t3) : t3 = $[11], ret.push(t3);
|
|
5037
|
+
const t4 = boundaryElement || void 0;
|
|
5038
|
+
let t5;
|
|
5039
|
+
if ($[12] !== rootBoundary || $[13] !== t4 ? (t5 = shift({
|
|
5040
|
+
boundary: t4,
|
|
5041
|
+
rootBoundary,
|
|
5042
|
+
padding: DEFAULT_TOOLTIP_PADDING
|
|
5043
|
+
}), $[12] = rootBoundary, $[13] = t4, $[14] = t5) : t5 = $[14], ret.push(t5), arrowProp) {
|
|
5044
|
+
let t6;
|
|
5045
|
+
$[15] !== arrowRef ? (t6 = arrow({
|
|
5046
|
+
element: arrowRef,
|
|
5047
|
+
padding: DEFAULT_TOOLTIP_PADDING
|
|
5048
|
+
}), $[15] = arrowRef, $[16] = t6) : t6 = $[16], ret.push(t6);
|
|
5049
|
+
}
|
|
5050
|
+
animate && ret.push(origin), $[0] = animate, $[1] = arrowProp, $[2] = arrowRef, $[3] = boundaryElement, $[4] = fallbackPlacements, $[5] = rootBoundary, $[6] = ret;
|
|
5051
|
+
} else
|
|
5052
|
+
ret = $[6];
|
|
5053
|
+
return ret;
|
|
5054
|
+
}
|
|
4569
5055
|
function useCloseOnMouseLeave(t0) {
|
|
4570
5056
|
const $ = c(10), {
|
|
4571
5057
|
handleIsOpenChange,
|
|
@@ -4597,7 +5083,7 @@ const StyledHotkeys = styled.kbd.withConfig({
|
|
|
4597
5083
|
displayName: "Key",
|
|
4598
5084
|
componentId: "sc-b37mge-1"
|
|
4599
5085
|
})`&:not([hidden]){display:block;}`, Hotkeys = forwardRef(function(props, ref) {
|
|
4600
|
-
const $ = c(
|
|
5086
|
+
const $ = c(26);
|
|
4601
5087
|
let fontSize2, keys, padding, radius, restProps, t0;
|
|
4602
5088
|
$[0] !== props ? ({
|
|
4603
5089
|
fontSize: fontSize2,
|
|
@@ -4607,21 +5093,24 @@ const StyledHotkeys = styled.kbd.withConfig({
|
|
|
4607
5093
|
space: t0,
|
|
4608
5094
|
...restProps
|
|
4609
5095
|
} = props, $[0] = props, $[1] = fontSize2, $[2] = keys, $[3] = padding, $[4] = radius, $[5] = restProps, $[6] = t0) : (fontSize2 = $[1], keys = $[2], padding = $[3], radius = $[4], restProps = $[5], t0 = $[6]);
|
|
4610
|
-
const
|
|
4611
|
-
if (!keys || keys.length === 0) {
|
|
4612
|
-
let t12;
|
|
4613
|
-
return $[7] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(Fragment, {}), $[7] = t12) : t12 = $[7], t12;
|
|
4614
|
-
}
|
|
5096
|
+
const spaceProp = t0 === void 0 ? 0.5 : t0;
|
|
4615
5097
|
let t1;
|
|
4616
|
-
|
|
5098
|
+
$[7] !== spaceProp ? (t1 = _getArrayProp(spaceProp), $[7] = spaceProp, $[8] = t1) : t1 = $[8];
|
|
5099
|
+
const space = t1;
|
|
5100
|
+
if (!keys || keys.length === 0) {
|
|
4617
5101
|
let t22;
|
|
4618
|
-
|
|
4619
|
-
}
|
|
4620
|
-
t1 = $[12];
|
|
5102
|
+
return $[9] === Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsx(Fragment, {}), $[9] = t22) : t22 = $[9], t22;
|
|
5103
|
+
}
|
|
4621
5104
|
let t2;
|
|
4622
|
-
$[
|
|
5105
|
+
if ($[10] !== fontSize2 || $[11] !== keys || $[12] !== padding || $[13] !== radius) {
|
|
5106
|
+
let t32;
|
|
5107
|
+
$[15] !== fontSize2 || $[16] !== padding || $[17] !== radius ? (t32 = (key2, i) => /* @__PURE__ */ jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[15] = fontSize2, $[16] = padding, $[17] = radius, $[18] = t32) : t32 = $[18], t2 = keys.map(t32), $[10] = fontSize2, $[11] = keys, $[12] = padding, $[13] = radius, $[14] = t2;
|
|
5108
|
+
} else
|
|
5109
|
+
t2 = $[14];
|
|
4623
5110
|
let t3;
|
|
4624
|
-
|
|
5111
|
+
$[19] !== space || $[20] !== t2 ? (t3 = /* @__PURE__ */ jsx(Inline, { as: "span", space, children: t2 }), $[19] = space, $[20] = t2, $[21] = t3) : t3 = $[21];
|
|
5112
|
+
let t4;
|
|
5113
|
+
return $[22] !== ref || $[23] !== restProps || $[24] !== t3 ? (t4 = /* @__PURE__ */ jsx(StyledHotkeys, { "data-ui": "Hotkeys", ...restProps, ref, children: t3 }), $[22] = ref, $[23] = restProps, $[24] = t3, $[25] = t4) : t4 = $[25], t4;
|
|
4625
5114
|
});
|
|
4626
5115
|
Hotkeys.displayName = "ForwardRef(Hotkeys)";
|
|
4627
5116
|
const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
|
|
@@ -4992,7 +5481,7 @@ function useMenu() {
|
|
|
4992
5481
|
return value;
|
|
4993
5482
|
}
|
|
4994
5483
|
function MenuGroup(props) {
|
|
4995
|
-
const $ = c(
|
|
5484
|
+
const $ = c(81);
|
|
4996
5485
|
let IconComponent, children, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
|
|
4997
5486
|
$[0] !== props ? ({
|
|
4998
5487
|
as: t0,
|
|
@@ -5073,32 +5562,35 @@ function MenuGroup(props) {
|
|
|
5073
5562
|
return;
|
|
5074
5563
|
}
|
|
5075
5564
|
}, $[45] = t20) : t20 = $[45];
|
|
5076
|
-
const handleKeyDown = t20, t21 = as === "button" ? withinMenu : void 0, t22 = as !== "button" ? withinMenu : void 0, t23 = !withinMenu && active ? "" : void 0
|
|
5565
|
+
const handleKeyDown = t20, t21 = as === "button" ? withinMenu : void 0, t22 = as !== "button" ? withinMenu : void 0, t23 = !withinMenu && active ? "" : void 0;
|
|
5566
|
+
let t24;
|
|
5567
|
+
$[46] !== radius ? (t24 = _getArrayProp(radius), $[46] = radius, $[47] = t24) : t24 = $[47];
|
|
5568
|
+
const t25 = as === "button" ? "button" : void 0;
|
|
5077
5569
|
let t26;
|
|
5078
|
-
$[
|
|
5570
|
+
$[48] !== IconComponent || $[49] !== fontSize2 ? (t26 = IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
|
|
5079
5571
|
isValidElement(IconComponent) && IconComponent,
|
|
5080
5572
|
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
5081
|
-
] }), $[
|
|
5573
|
+
] }), $[48] = IconComponent, $[49] = fontSize2, $[50] = t26) : t26 = $[50];
|
|
5082
5574
|
let t27;
|
|
5083
|
-
$[
|
|
5575
|
+
$[51] !== fontSize2 || $[52] !== text ? (t27 = /* @__PURE__ */ jsx(Box, { flex: 1, children: /* @__PURE__ */ jsx(Text, { size: fontSize2, textOverflow: "ellipsis", weight: "medium", children: text }) }), $[51] = fontSize2, $[52] = text, $[53] = t27) : t27 = $[53];
|
|
5084
5576
|
let t28;
|
|
5085
|
-
$[
|
|
5577
|
+
$[54] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsx(ChevronRightIcon, {}), $[54] = t28) : t28 = $[54];
|
|
5086
5578
|
let t29;
|
|
5087
|
-
$[
|
|
5579
|
+
$[55] !== fontSize2 ? (t29 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t28 }), $[55] = fontSize2, $[56] = t29) : t29 = $[56];
|
|
5088
5580
|
let t30;
|
|
5089
|
-
$[
|
|
5581
|
+
$[57] !== padding || $[58] !== space || $[59] !== t26 || $[60] !== t27 || $[61] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, { gap: space, padding, children: [
|
|
5090
5582
|
t26,
|
|
5091
5583
|
t27,
|
|
5092
5584
|
t29
|
|
5093
|
-
] }), $[
|
|
5585
|
+
] }), $[57] = padding, $[58] = space, $[59] = t26, $[60] = t27, $[61] = t29, $[62] = t30) : t30 = $[62];
|
|
5094
5586
|
let t31;
|
|
5095
|
-
$[
|
|
5587
|
+
$[63] !== as || $[64] !== handleClick || $[65] !== handleMouseEnter || $[66] !== restProps || $[67] !== scheme || $[68] !== t21 || $[69] !== t22 || $[70] !== t23 || $[71] !== t24 || $[72] !== t25 || $[73] !== t30 || $[74] !== tone ? (t31 = /* @__PURE__ */ jsx(Selectable, { "data-as": as, "data-ui": "MenuGroup", forwardedAs: as, ...restProps, "aria-pressed": t21, "data-pressed": t22, "data-selected": t23, $radius: t24, $tone: tone, $scheme: scheme, onClick: handleClick, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, ref: setRootElement, tabIndex: -1, type: t25, children: t30 }), $[63] = as, $[64] = handleClick, $[65] = handleMouseEnter, $[66] = restProps, $[67] = scheme, $[68] = t21, $[69] = t22, $[70] = t23, $[71] = t24, $[72] = t25, $[73] = t30, $[74] = tone, $[75] = t31) : t31 = $[75];
|
|
5096
5588
|
let t32;
|
|
5097
|
-
return $[
|
|
5589
|
+
return $[76] !== childMenu || $[77] !== open || $[78] !== popover || $[79] !== t31 ? (t32 = /* @__PURE__ */ jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t31 }), $[76] = childMenu, $[77] = open, $[78] = popover, $[79] = t31, $[80] = t32) : t32 = $[80], t32;
|
|
5098
5590
|
}
|
|
5099
5591
|
MenuGroup.displayName = "MenuGroup";
|
|
5100
5592
|
const MenuItem = forwardRef(function(props, forwardedRef) {
|
|
5101
|
-
const $ = c(
|
|
5593
|
+
const $ = c(75);
|
|
5102
5594
|
let IconComponent, IconRightComponent, children, disabled, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
|
|
5103
5595
|
$[0] !== props ? ({
|
|
5104
5596
|
as: t0,
|
|
@@ -5152,17 +5644,22 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
|
|
|
5152
5644
|
paddingBottom,
|
|
5153
5645
|
paddingLeft
|
|
5154
5646
|
}, $[33] = padding, $[34] = paddingBottom, $[35] = paddingLeft, $[36] = paddingRight, $[37] = paddingTop, $[38] = paddingX, $[39] = paddingY, $[40] = t10) : t10 = $[40];
|
|
5155
|
-
const paddingProps = t10
|
|
5647
|
+
const paddingProps = t10;
|
|
5648
|
+
let t11;
|
|
5649
|
+
$[41] !== fontSize2 ? (t11 = _getArrayProp(fontSize2).map(_temp), $[41] = fontSize2, $[42] = t11) : t11 = $[42];
|
|
5650
|
+
const hotkeysFontSize = t11;
|
|
5156
5651
|
let t12;
|
|
5157
|
-
$[
|
|
5158
|
-
const hotkeysFontSize = t12;
|
|
5159
|
-
let t13;
|
|
5160
|
-
$[43] === Symbol.for("react.memo_cache_sentinel") ? (t13 = (el) => {
|
|
5652
|
+
$[43] === Symbol.for("react.memo_cache_sentinel") ? (t12 = (el) => {
|
|
5161
5653
|
ref.current = el, setRootElement(el);
|
|
5162
|
-
}, $[43] =
|
|
5163
|
-
const setRef =
|
|
5164
|
-
let
|
|
5165
|
-
$[44] !==
|
|
5654
|
+
}, $[43] = t12) : t12 = $[43];
|
|
5655
|
+
const setRef = t12, t13 = as !== "button" && pressed ? "" : void 0, t14 = active ? "" : void 0, t15 = disabled ? "" : void 0;
|
|
5656
|
+
let t16;
|
|
5657
|
+
$[44] !== radius ? (t16 = _getArrayProp(radius), $[44] = radius, $[45] = t16) : t16 = $[45];
|
|
5658
|
+
let t17;
|
|
5659
|
+
$[46] === Symbol.for("react.memo_cache_sentinel") ? (t17 = _getArrayProp(0), $[46] = t17) : t17 = $[46];
|
|
5660
|
+
const t18 = disabled ? "default" : tone, t19 = as === "button" ? "button" : void 0;
|
|
5661
|
+
let t20;
|
|
5662
|
+
$[47] !== IconComponent || $[48] !== IconRightComponent || $[49] !== fontSize2 || $[50] !== hotkeys || $[51] !== hotkeysFontSize || $[52] !== paddingProps || $[53] !== space || $[54] !== text ? (t20 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
|
|
5166
5663
|
IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
|
|
5167
5664
|
isValidElement(IconComponent) && IconComponent,
|
|
5168
5665
|
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
@@ -5176,14 +5673,14 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
|
|
|
5176
5673
|
isValidElement(IconRightComponent) && IconRightComponent,
|
|
5177
5674
|
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
5178
5675
|
] })
|
|
5179
|
-
] }), $[
|
|
5676
|
+
] }), $[47] = IconComponent, $[48] = IconRightComponent, $[49] = fontSize2, $[50] = hotkeys, $[51] = hotkeysFontSize, $[52] = paddingProps, $[53] = space, $[54] = text, $[55] = t20) : t20 = $[55];
|
|
5677
|
+
let t21;
|
|
5678
|
+
$[56] !== children || $[57] !== paddingProps ? (t21 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[56] = children, $[57] = paddingProps, $[58] = t21) : t21 = $[58];
|
|
5180
5679
|
let t22;
|
|
5181
|
-
$[
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
t22
|
|
5186
|
-
] }), $[56] = as, $[57] = disabled, $[58] = handleClick, $[59] = onItemMouseEnter, $[60] = onItemMouseLeave, $[61] = restProps, $[62] = scheme, $[63] = t14, $[64] = t15, $[65] = t16, $[66] = t17, $[67] = t18, $[68] = t19, $[69] = t20, $[70] = t21, $[71] = t22, $[72] = t23) : t23 = $[72], t23;
|
|
5680
|
+
return $[59] !== as || $[60] !== disabled || $[61] !== handleClick || $[62] !== onItemMouseEnter || $[63] !== onItemMouseLeave || $[64] !== restProps || $[65] !== scheme || $[66] !== t13 || $[67] !== t14 || $[68] !== t15 || $[69] !== t16 || $[70] !== t18 || $[71] !== t19 || $[72] !== t20 || $[73] !== t21 ? (t22 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", role: "menuitem", ...restProps, "data-pressed": t13, "data-selected": t14, "data-disabled": t15, forwardedAs: as, $radius: t16, $padding: t17, $tone: t18, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, tabIndex: -1, type: t19, children: [
|
|
5681
|
+
t20,
|
|
5682
|
+
t21
|
|
5683
|
+
] }), $[59] = as, $[60] = disabled, $[61] = handleClick, $[62] = onItemMouseEnter, $[63] = onItemMouseLeave, $[64] = restProps, $[65] = scheme, $[66] = t13, $[67] = t14, $[68] = t15, $[69] = t16, $[70] = t18, $[71] = t19, $[72] = t20, $[73] = t21, $[74] = t22) : t22 = $[74], t22;
|
|
5187
5684
|
});
|
|
5188
5685
|
MenuItem.displayName = "ForwardRef(MenuItem)";
|
|
5189
5686
|
function _temp(s) {
|
|
@@ -5347,7 +5844,6 @@ export {
|
|
|
5347
5844
|
rgba,
|
|
5348
5845
|
screen,
|
|
5349
5846
|
studioTheme,
|
|
5350
|
-
useArrayProp,
|
|
5351
5847
|
useBoundaryElement,
|
|
5352
5848
|
useClickOutsideEvent,
|
|
5353
5849
|
useCustomValidity,
|