@sanity/ui 2.16.13 → 2.16.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_chunks-cjs/_visual-editing.js +220 -285
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +221 -286
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/index.js +101 -78
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +101 -78
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -16
- package/src/core/components/autocomplete/autocomplete.tsx +4 -0
- package/src/core/components/menu/menuGroup.tsx +2 -0
- package/src/core/components/menu/useMenuController.ts +4 -0
- package/src/core/components/skeleton/skeleton.tsx +1 -0
- package/src/core/components/tree/tree.tsx +1 -0
- package/src/core/components/tree/treeItem.tsx +2 -0
- package/src/core/hooks/useClickOutside.test.tsx +1 -1
- package/src/core/hooks/useClickOutside.ts +1 -0
- package/src/core/primitives/avatar/avatar.tsx +2 -0
- package/src/core/primitives/card/card.tsx +1 -0
- package/src/core/primitives/popover/types.ts +2 -1
- package/src/core/styles/font/responsiveFont.ts +2 -0
- package/src/core/theme/__workshop__/canvas.tsx +1 -0
- package/src/core/utils/portal/portalProvider.tsx +3 -0
- package/src/core/utils/virtualList/virtualList.tsx +2 -0
|
@@ -231,13 +231,11 @@ function _temp$9() {
|
|
|
231
231
|
return EMPTY_ARRAY;
|
|
232
232
|
}
|
|
233
233
|
function useCustomValidity(ref, customValidity) {
|
|
234
|
-
const $ = reactCompilerRuntime.c(
|
|
235
|
-
let t0;
|
|
236
|
-
$[0] !== customValidity || $[1] !== ref
|
|
234
|
+
const $ = reactCompilerRuntime.c(4);
|
|
235
|
+
let t0, t1;
|
|
236
|
+
$[0] !== customValidity || $[1] !== ref ? (t0 = () => {
|
|
237
237
|
ref.current?.setCustomValidity(customValidity || "");
|
|
238
|
-
}, $[0] = customValidity, $[1] = ref
|
|
239
|
-
let t1;
|
|
240
|
-
$[3] !== customValidity || $[4] !== ref ? (t1 = [customValidity, ref], $[3] = customValidity, $[4] = ref, $[5] = t1) : t1 = $[5], react.useEffect(t0, t1);
|
|
238
|
+
}, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), react.useEffect(t0, t1);
|
|
241
239
|
}
|
|
242
240
|
const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : resizeObserver.ResizeObserver, _elementSizeObserver = _createElementSizeObserver();
|
|
243
241
|
function _createElementRectValueListener() {
|
|
@@ -438,8 +436,8 @@ function useMediaIndex() {
|
|
|
438
436
|
const $ = reactCompilerRuntime.c(2), {
|
|
439
437
|
media
|
|
440
438
|
} = useTheme_v2();
|
|
441
|
-
let t0
|
|
442
|
-
$[0] !== media ? (
|
|
439
|
+
let t0;
|
|
440
|
+
$[0] !== media ? (t0 = _createMediaStore(media), $[0] = media, $[1] = t0) : t0 = $[1];
|
|
443
441
|
const store = t0;
|
|
444
442
|
return react.useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
|
|
445
443
|
}
|
|
@@ -1396,26 +1394,26 @@ const StyledAvatar = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
1396
1394
|
setImageFailed(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
|
|
1397
1395
|
}, $[20] = onImageLoadError, $[21] = t7) : t7 = $[21];
|
|
1398
1396
|
const handleImageError = t7;
|
|
1399
|
-
let t8
|
|
1400
|
-
$[22] !== size2 ? (
|
|
1401
|
-
const initialsSize = t8,
|
|
1397
|
+
let t8;
|
|
1398
|
+
$[22] !== size2 ? (t8 = size2.map(_temp$6), $[22] = size2, $[23] = t8) : t8 = $[23];
|
|
1399
|
+
const initialsSize = t8, t9 = typeof as == "string" ? as : void 0;
|
|
1400
|
+
let t10;
|
|
1401
|
+
$[24] !== color ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsxRuntime.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 }) }) }), $[24] = color, $[25] = t10) : t10 = $[25];
|
|
1402
1402
|
let t11;
|
|
1403
|
-
$[
|
|
1404
|
-
let t12;
|
|
1405
|
-
$[26] !== __unstable_hideInnerStroke || $[27] !== _radius || $[28] !== _sizeRem || $[29] !== handleImageError || $[30] !== imageFailed || $[31] !== imageId || $[32] !== src ? (t12 = !imageFailed && src && /* @__PURE__ */ jsxRuntime.jsxs(AvatarImage, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
|
|
1403
|
+
$[26] !== __unstable_hideInnerStroke || $[27] !== _radius || $[28] !== _sizeRem || $[29] !== handleImageError || $[30] !== imageFailed || $[31] !== imageId || $[32] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ jsxRuntime.jsxs(AvatarImage, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
|
|
1406
1404
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("pattern", { id: imageId, patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsxRuntime.jsx("image", { href: src, width: "1", height: "1", onError: handleImageError }) }) }),
|
|
1407
1405
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: _radius, cy: _radius, r: _radius, fill: `url(#${imageId})` }),
|
|
1408
1406
|
!__unstable_hideInnerStroke && /* @__PURE__ */ jsxRuntime.jsx(BgStroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" }),
|
|
1409
1407
|
/* @__PURE__ */ jsxRuntime.jsx(Stroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" })
|
|
1410
|
-
] }), $[26] = __unstable_hideInnerStroke, $[27] = _radius, $[28] = _sizeRem, $[29] = handleImageError, $[30] = imageFailed, $[31] = imageId, $[32] = src, $[33] =
|
|
1408
|
+
] }), $[26] = __unstable_hideInnerStroke, $[27] = _radius, $[28] = _sizeRem, $[29] = handleImageError, $[30] = imageFailed, $[31] = imageId, $[32] = src, $[33] = t11) : t11 = $[33];
|
|
1409
|
+
let t12;
|
|
1410
|
+
$[34] !== imageFailed || $[35] !== initials || $[36] !== initialsSize || $[37] !== src ? (t12 = (imageFailed || !src) && initials && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(Initials, { children: /* @__PURE__ */ jsxRuntime.jsx(InitialsLabel, { forwardedAs: "span", size: initialsSize, weight: "medium", children: initials }) }) }), $[34] = imageFailed, $[35] = initials, $[36] = initialsSize, $[37] = src, $[38] = t12) : t12 = $[38];
|
|
1411
1411
|
let t13;
|
|
1412
|
-
$[
|
|
1413
|
-
|
|
1414
|
-
return $[39] !== arrowPosition || $[40] !== as || $[41] !== color || $[42] !== ref || $[43] !== restProps || $[44] !== size2 || $[45] !== status || $[46] !== t10 || $[47] !== t11 || $[48] !== t12 || $[49] !== t13 || $[50] !== title ? (t14 = /* @__PURE__ */ jsxRuntime.jsxs(StyledAvatar, { as, "data-as": t10, "data-ui": "Avatar", ...restProps, $color: color, $size: size2, "aria-label": title, "data-arrow-position": arrowPosition, "data-status": status, ref, title, children: [
|
|
1412
|
+
return $[39] !== arrowPosition || $[40] !== as || $[41] !== color || $[42] !== ref || $[43] !== restProps || $[44] !== size2 || $[45] !== status || $[46] !== t10 || $[47] !== t11 || $[48] !== t12 || $[49] !== t9 || $[50] !== title ? (t13 = /* @__PURE__ */ jsxRuntime.jsxs(StyledAvatar, { as, "data-as": t9, "data-ui": "Avatar", ...restProps, $color: color, $size: size2, "aria-label": title, "data-arrow-position": arrowPosition, "data-status": status, ref, title, children: [
|
|
1413
|
+
t10,
|
|
1415
1414
|
t11,
|
|
1416
|
-
t12
|
|
1417
|
-
|
|
1418
|
-
] }), $[39] = arrowPosition, $[40] = as, $[41] = color, $[42] = ref, $[43] = restProps, $[44] = size2, $[45] = status, $[46] = t10, $[47] = t11, $[48] = t12, $[49] = t13, $[50] = title, $[51] = t14) : t14 = $[51], t14;
|
|
1415
|
+
t12
|
|
1416
|
+
] }), $[39] = arrowPosition, $[40] = as, $[41] = color, $[42] = ref, $[43] = restProps, $[44] = size2, $[45] = status, $[46] = t10, $[47] = t11, $[48] = t12, $[49] = t9, $[50] = title, $[51] = t13) : t13 = $[51], t13;
|
|
1419
1417
|
});
|
|
1420
1418
|
Avatar.displayName = "ForwardRef(Avatar)";
|
|
1421
1419
|
function _temp$6(s) {
|
|
@@ -1465,13 +1463,13 @@ const StyledAvatarCounter = /* @__PURE__ */ styledComponents.styled.div.withConf
|
|
|
1465
1463
|
count,
|
|
1466
1464
|
size: t0
|
|
1467
1465
|
} = props, size2 = useArrayProp(t0 === void 0 ? 1 : t0);
|
|
1468
|
-
let t1
|
|
1469
|
-
$[0] !== size2 ? (
|
|
1466
|
+
let t1;
|
|
1467
|
+
$[0] !== size2 ? (t1 = size2.map(_temp$5), $[0] = size2, $[1] = t1) : t1 = $[1];
|
|
1470
1468
|
const fontSize2 = t1;
|
|
1469
|
+
let t2;
|
|
1470
|
+
$[2] !== count || $[3] !== fontSize2 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Label, { as: "span", size: fontSize2, weight: "medium", children: count }), $[2] = count, $[3] = fontSize2, $[4] = t2) : t2 = $[4];
|
|
1471
1471
|
let t3;
|
|
1472
|
-
$[
|
|
1473
|
-
let t4;
|
|
1474
|
-
return $[5] !== ref || $[6] !== size2 || $[7] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(StyledAvatarCounter, { $size: size2, "data-ui": "AvatarCounter", ref, children: t3 }), $[5] = ref, $[6] = size2, $[7] = t3, $[8] = t4) : t4 = $[8], t4;
|
|
1472
|
+
return $[5] !== ref || $[6] !== size2 || $[7] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(StyledAvatarCounter, { $size: size2, "data-ui": "AvatarCounter", ref, children: t2 }), $[5] = ref, $[6] = size2, $[7] = t2, $[8] = t3) : t3 = $[8], t3;
|
|
1475
1473
|
});
|
|
1476
1474
|
AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
|
|
1477
1475
|
function _temp$5(s) {
|
|
@@ -1509,7 +1507,7 @@ const StyledAvatarStack = /* @__PURE__ */ styledComponents.styled.div.withConfig
|
|
|
1509
1507
|
displayName: "StyledAvatarStack",
|
|
1510
1508
|
componentId: "sc-cysmbb-0"
|
|
1511
1509
|
})(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = react.forwardRef(function(props, ref) {
|
|
1512
|
-
const $ = reactCompilerRuntime.c(
|
|
1510
|
+
const $ = reactCompilerRuntime.c(22);
|
|
1513
1511
|
let childrenProp, restProps, t0, t1;
|
|
1514
1512
|
$[0] !== props ? ({
|
|
1515
1513
|
children: childrenProp,
|
|
@@ -1517,18 +1515,22 @@ const StyledAvatarStack = /* @__PURE__ */ styledComponents.styled.div.withConfig
|
|
|
1517
1515
|
size: t1,
|
|
1518
1516
|
...restProps
|
|
1519
1517
|
} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1) : (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]);
|
|
1520
|
-
const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, children = react.Children.toArray(childrenProp).filter(react.isValidElement), maxLength = Math.max(maxLengthProp, 0), size2 = useArrayProp(sizeProp), len = children.length, visibleCount = maxLength - 1, extraCount = len - visibleCount, visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children, T0 = StyledAvatarStack, t2 = "AvatarStack"
|
|
1518
|
+
const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, children = react.Children.toArray(childrenProp).filter(react.isValidElement), maxLength = Math.max(maxLengthProp, 0), size2 = useArrayProp(sizeProp), len = children.length, visibleCount = maxLength - 1, extraCount = len - visibleCount, visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children, T0 = StyledAvatarStack, t2 = "AvatarStack";
|
|
1519
|
+
let t3;
|
|
1520
|
+
$[5] !== len || $[6] !== size2 ? (t3 = len === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: len, size: size2 }) }), $[5] = len, $[6] = size2, $[7] = t3) : t3 = $[7];
|
|
1521
|
+
let t4;
|
|
1522
|
+
$[8] !== extraCount || $[9] !== len || $[10] !== size2 ? (t4 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: extraCount, size: size2 }) }), $[8] = extraCount, $[9] = len, $[10] = size2, $[11] = t4) : t4 = $[11];
|
|
1521
1523
|
let t5;
|
|
1522
|
-
$[
|
|
1524
|
+
$[12] !== size2 ? (t5 = (child, childIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { children: react.cloneElement(child, {
|
|
1523
1525
|
size: size2
|
|
1524
|
-
}) }, String(childIndex)), $[
|
|
1526
|
+
}) }, String(childIndex)), $[12] = size2, $[13] = t5) : t5 = $[13];
|
|
1525
1527
|
const t6 = visibleChildren.map(t5);
|
|
1526
1528
|
let t7;
|
|
1527
|
-
return $[
|
|
1529
|
+
return $[14] !== T0 || $[15] !== ref || $[16] !== restProps || $[17] !== size2 || $[18] !== t3 || $[19] !== t4 || $[20] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsxs(T0, { "data-ui": t2, ...restProps, ref, $size: size2, children: [
|
|
1528
1530
|
t3,
|
|
1529
1531
|
t4,
|
|
1530
1532
|
t6
|
|
1531
|
-
] }), $[
|
|
1533
|
+
] }), $[14] = T0, $[15] = ref, $[16] = restProps, $[17] = size2, $[18] = t3, $[19] = t4, $[20] = t6, $[21] = t7) : t7 = $[21], t7;
|
|
1532
1534
|
});
|
|
1533
1535
|
AvatarStack.displayName = "ForwardRef(AvatarStack)";
|
|
1534
1536
|
const StyledBox = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
@@ -1956,8 +1958,8 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
|
1956
1958
|
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, {
|
|
1957
1959
|
button
|
|
1958
1960
|
} = useTheme_v2(), justify = useArrayProp(justifyProp), padding = useArrayProp(paddingProp), paddingX = useArrayProp(paddingXProp), paddingY = useArrayProp(paddingYProp), paddingTop = useArrayProp(paddingTopProp), paddingBottom = useArrayProp(paddingBottomProp), paddingLeft = useArrayProp(paddingLeftProp), paddingRight = useArrayProp(paddingRightProp), radius = useArrayProp(radiusProp), space = useArrayProp(spaceProp);
|
|
1959
|
-
let t9
|
|
1960
|
-
$[27] !== padding || $[28] !== paddingBottom || $[29] !== paddingLeft || $[30] !== paddingRight || $[31] !== paddingTop || $[32] !== paddingX || $[33] !== paddingY ? (
|
|
1961
|
+
let t9;
|
|
1962
|
+
$[27] !== padding || $[28] !== paddingBottom || $[29] !== paddingLeft || $[30] !== paddingRight || $[31] !== paddingTop || $[32] !== paddingX || $[33] !== paddingY ? (t9 = {
|
|
1961
1963
|
padding,
|
|
1962
1964
|
paddingX,
|
|
1963
1965
|
paddingY,
|
|
@@ -1965,12 +1967,12 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
|
1965
1967
|
paddingBottom,
|
|
1966
1968
|
paddingLeft,
|
|
1967
1969
|
paddingRight
|
|
1968
|
-
}, $[27] = padding, $[28] = paddingBottom, $[29] = paddingLeft, $[30] = paddingRight, $[31] = paddingTop, $[32] = paddingX, $[33] = paddingY, $[34] =
|
|
1969
|
-
const boxProps = t9,
|
|
1970
|
+
}, $[27] = padding, $[28] = paddingBottom, $[29] = paddingLeft, $[30] = paddingRight, $[31] = paddingTop, $[32] = paddingX, $[33] = paddingY, $[34] = t9) : t9 = $[34];
|
|
1971
|
+
const boxProps = t9, t10 = !!(loading || disabled), t11 = selected ? "" : void 0, t12 = !!(loading || disabled);
|
|
1972
|
+
let t13;
|
|
1973
|
+
$[35] !== loading ? (t13 = !!loading && /* @__PURE__ */ jsxRuntime.jsx(LoadingBox, { children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}) }), $[35] = loading, $[36] = t13) : t13 = $[36];
|
|
1970
1974
|
let t14;
|
|
1971
|
-
$[
|
|
1972
|
-
let t15;
|
|
1973
|
-
$[37] !== IconComponent || $[38] !== IconRightComponent || $[39] !== boxProps || $[40] !== button || $[41] !== fontSize2 || $[42] !== justify || $[43] !== muted || $[44] !== space || $[45] !== text || $[46] !== textAlign || $[47] !== textWeight ? (t15 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", justify, gap: space, children: [
|
|
1975
|
+
$[37] !== IconComponent || $[38] !== IconRightComponent || $[39] !== boxProps || $[40] !== button || $[41] !== fontSize2 || $[42] !== justify || $[43] !== muted || $[44] !== space || $[45] !== text || $[46] !== textAlign || $[47] !== textWeight ? (t14 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", justify, gap: space, children: [
|
|
1974
1976
|
IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
1975
1977
|
react.isValidElement(IconComponent) && IconComponent,
|
|
1976
1978
|
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
@@ -1980,15 +1982,15 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
|
1980
1982
|
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
1981
1983
|
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
1982
1984
|
] })
|
|
1983
|
-
] }) }), $[37] = IconComponent, $[38] = IconRightComponent, $[39] = boxProps, $[40] = button, $[41] = fontSize2, $[42] = justify, $[43] = muted, $[44] = space, $[45] = text, $[46] = textAlign, $[47] = textWeight, $[48] =
|
|
1985
|
+
] }) }), $[37] = IconComponent, $[38] = IconRightComponent, $[39] = boxProps, $[40] = button, $[41] = fontSize2, $[42] = justify, $[43] = muted, $[44] = space, $[45] = text, $[46] = textAlign, $[47] = textWeight, $[48] = t14) : t14 = $[48];
|
|
1986
|
+
let t15;
|
|
1987
|
+
$[49] !== boxProps || $[50] !== children ? (t15 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children }), $[49] = boxProps, $[50] = children, $[51] = t15) : t15 = $[51];
|
|
1984
1988
|
let t16;
|
|
1985
|
-
$[
|
|
1986
|
-
|
|
1987
|
-
return $[52] !== mode || $[53] !== radius || $[54] !== ref || $[55] !== restProps || $[56] !== t11 || $[57] !== t12 || $[58] !== t13 || $[59] !== t14 || $[60] !== t15 || $[61] !== t16 || $[62] !== tone || $[63] !== type || $[64] !== width ? (t17 = /* @__PURE__ */ jsxRuntime.jsxs(StyledButton, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t11, "data-selected": t12, disabled: t13, ref, type, $width: width, children: [
|
|
1989
|
+
return $[52] !== mode || $[53] !== radius || $[54] !== ref || $[55] !== restProps || $[56] !== t10 || $[57] !== t11 || $[58] !== t12 || $[59] !== t13 || $[60] !== t14 || $[61] !== t15 || $[62] !== tone || $[63] !== type || $[64] !== width ? (t16 = /* @__PURE__ */ jsxRuntime.jsxs(StyledButton, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t10, "data-selected": t11, disabled: t12, ref, type, $width: width, children: [
|
|
1990
|
+
t13,
|
|
1988
1991
|
t14,
|
|
1989
|
-
t15
|
|
1990
|
-
|
|
1991
|
-
] }), $[52] = mode, $[53] = radius, $[54] = ref, $[55] = restProps, $[56] = t11, $[57] = t12, $[58] = t13, $[59] = t14, $[60] = t15, $[61] = t16, $[62] = tone, $[63] = type, $[64] = width, $[65] = t17) : t17 = $[65], t17;
|
|
1992
|
+
t15
|
|
1993
|
+
] }), $[52] = mode, $[53] = radius, $[54] = ref, $[55] = restProps, $[56] = t10, $[57] = t11, $[58] = t12, $[59] = t13, $[60] = t14, $[61] = t15, $[62] = tone, $[63] = type, $[64] = width, $[65] = t16) : t16 = $[65], t16;
|
|
1992
1994
|
});
|
|
1993
1995
|
Button.displayName = "ForwardRef(Button)";
|
|
1994
1996
|
function cardStyle(props) {
|
|
@@ -2706,11 +2708,11 @@ const StyledInline = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
|
2706
2708
|
space,
|
|
2707
2709
|
...restProps
|
|
2708
2710
|
} = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = restProps, $[4] = space) : (as = $[1], childrenProp = $[2], restProps = $[3], space = $[4]);
|
|
2709
|
-
let t0
|
|
2710
|
-
$[5] !== childrenProp ? (
|
|
2711
|
-
const children = t0,
|
|
2712
|
-
let
|
|
2713
|
-
return $[7] !== as || $[8] !== children || $[9] !== restProps || $[10] !==
|
|
2711
|
+
let t0;
|
|
2712
|
+
$[5] !== childrenProp ? (t0 = react.Children.map(childrenProp, _temp$4), $[5] = childrenProp, $[6] = t0) : t0 = $[6];
|
|
2713
|
+
const children = t0, t1 = useArrayProp(space), t2 = ref;
|
|
2714
|
+
let t3;
|
|
2715
|
+
return $[7] !== as || $[8] !== children || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(StyledInline, { "data-ui": "Inline", ...restProps, $space: t1, forwardedAs: as, ref: t2, children }), $[7] = as, $[8] = children, $[9] = restProps, $[10] = t1, $[11] = t2, $[12] = t3) : t3 = $[12], t3;
|
|
2714
2716
|
});
|
|
2715
2717
|
Inline.displayName = "ForwardRef(Inline)";
|
|
2716
2718
|
function _temp$4(child) {
|
|
@@ -2932,14 +2934,14 @@ function BoundaryElementProvider(props) {
|
|
|
2932
2934
|
children,
|
|
2933
2935
|
element
|
|
2934
2936
|
} = props;
|
|
2935
|
-
let t0
|
|
2936
|
-
$[0] !== element ? (
|
|
2937
|
+
let t0;
|
|
2938
|
+
$[0] !== element ? (t0 = {
|
|
2937
2939
|
version: 0,
|
|
2938
2940
|
element
|
|
2939
|
-
}, $[0] = element, $[1] =
|
|
2941
|
+
}, $[0] = element, $[1] = t0) : t0 = $[1];
|
|
2940
2942
|
const value = t0;
|
|
2941
|
-
let
|
|
2942
|
-
return $[2] !== children || $[3] !== value ? (
|
|
2943
|
+
let t1;
|
|
2944
|
+
return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
|
|
2943
2945
|
}
|
|
2944
2946
|
BoundaryElementProvider.displayName = "BoundaryElementProvider";
|
|
2945
2947
|
function isRecord(value) {
|
|
@@ -2983,30 +2985,25 @@ const ElementQuery = react.forwardRef(function(props, forwardedRef) {
|
|
|
2983
2985
|
media: _media,
|
|
2984
2986
|
...restProps
|
|
2985
2987
|
} = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps) : (_media = $[1], children = $[2], restProps = $[3]);
|
|
2986
|
-
const media = _media ?? theme2.media, [element, setElement] = react.useState(null),
|
|
2988
|
+
const media = _media ?? theme2.media, [element, setElement] = react.useState(null), width = useElementSize(element)?.border.width ?? window.innerWidth;
|
|
2987
2989
|
let t0;
|
|
2988
|
-
t0 = elementSize?.border.width ?? window.innerWidth;
|
|
2989
|
-
const width = t0;
|
|
2990
|
-
let t1, t2;
|
|
2991
2990
|
if ($[4] !== media || $[5] !== width) {
|
|
2992
2991
|
const eq = findMaxBreakpoints(media, width);
|
|
2993
|
-
|
|
2992
|
+
t0 = eq.length ? eq.join(" ") : void 0, $[4] = media, $[5] = width, $[6] = t0;
|
|
2994
2993
|
} else
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
let t3, t4;
|
|
2994
|
+
t0 = $[6];
|
|
2995
|
+
const max = t0;
|
|
2996
|
+
let t1;
|
|
2999
2997
|
if ($[7] !== media || $[8] !== width) {
|
|
3000
2998
|
const eq_0 = findMinBreakpoints(media, width);
|
|
3001
|
-
|
|
2999
|
+
t1 = eq_0.length ? eq_0.join(" ") : void 0, $[7] = media, $[8] = width, $[9] = t1;
|
|
3002
3000
|
} else
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
return $[13] !== children || $[14] !== max || $[15] !== min || $[16] !== restProps ? (t7 = /* @__PURE__ */ jsxRuntime.jsx("div", { "data-ui": "ElementQuery", ...restProps, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[13] = children, $[14] = max, $[15] = min, $[16] = restProps, $[17] = t7) : t7 = $[17], t7;
|
|
3001
|
+
t1 = $[9];
|
|
3002
|
+
const min = t1;
|
|
3003
|
+
let t2, t3;
|
|
3004
|
+
$[10] !== element ? (t2 = () => element, t3 = [element], $[10] = element, $[11] = t2, $[12] = t3) : (t2 = $[11], t3 = $[12]), react.useImperativeHandle(forwardedRef, t2, t3);
|
|
3005
|
+
let t4;
|
|
3006
|
+
return $[13] !== children || $[14] !== max || $[15] !== min || $[16] !== restProps ? (t4 = /* @__PURE__ */ jsxRuntime.jsx("div", { "data-ui": "ElementQuery", ...restProps, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[13] = children, $[14] = max, $[15] = min, $[16] = restProps, $[17] = t4) : t4 = $[17], t4;
|
|
3010
3007
|
});
|
|
3011
3008
|
ElementQuery.displayName = "ForwardRef(ElementQuery)";
|
|
3012
3009
|
function getLayerContext(contextValue) {
|
|
@@ -3051,18 +3048,18 @@ function LayerProvider(props) {
|
|
|
3051
3048
|
const registerChild = t3;
|
|
3052
3049
|
let t4, t5;
|
|
3053
3050
|
$[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), react.useEffect(t4, t5);
|
|
3054
|
-
let t6
|
|
3055
|
-
$[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (
|
|
3051
|
+
let t6;
|
|
3052
|
+
$[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t6 = {
|
|
3056
3053
|
version: 0,
|
|
3057
3054
|
isTopLayer,
|
|
3058
3055
|
level,
|
|
3059
3056
|
registerChild,
|
|
3060
3057
|
size: size2,
|
|
3061
3058
|
zIndex
|
|
3062
|
-
}, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] =
|
|
3059
|
+
}, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t6) : t6 = $[15];
|
|
3063
3060
|
const value = t6;
|
|
3064
|
-
let
|
|
3065
|
-
return $[16] !== children || $[17] !== value ? (
|
|
3061
|
+
let t7;
|
|
3062
|
+
return $[16] !== children || $[17] !== value ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t7) : t7 = $[18], t7;
|
|
3066
3063
|
}
|
|
3067
3064
|
function _temp2$2(v_0) {
|
|
3068
3065
|
return v_0 - 1;
|
|
@@ -3173,19 +3170,17 @@ function PortalProvider(props) {
|
|
|
3173
3170
|
children,
|
|
3174
3171
|
element,
|
|
3175
3172
|
__unstable_elements: elementsProp
|
|
3176
|
-
} = props, elements = useUnique(elementsProp), fallbackElement = react.useSyncExternalStore(emptySubscribe, _temp$2, _temp2$1);
|
|
3177
|
-
let
|
|
3178
|
-
|
|
3179
|
-
let t3;
|
|
3180
|
-
$[0] !== elements || $[1] !== t1 || $[2] !== t2 ? (t3 = {
|
|
3173
|
+
} = props, elements = useUnique(elementsProp), fallbackElement = react.useSyncExternalStore(emptySubscribe, _temp$2, _temp2$1), t0 = boundaryElement || null, t1 = element || fallbackElement;
|
|
3174
|
+
let t2;
|
|
3175
|
+
$[0] !== elements || $[1] !== t0 || $[2] !== t1 ? (t2 = {
|
|
3181
3176
|
version: 0,
|
|
3182
|
-
boundaryElement:
|
|
3183
|
-
element:
|
|
3177
|
+
boundaryElement: t0,
|
|
3178
|
+
element: t1,
|
|
3184
3179
|
elements
|
|
3185
|
-
}, $[0] = elements, $[1] =
|
|
3186
|
-
const value =
|
|
3187
|
-
let
|
|
3188
|
-
return $[4] !== children || $[5] !== value ? (
|
|
3180
|
+
}, $[0] = elements, $[1] = t0, $[2] = t1, $[3] = t2) : t2 = $[3];
|
|
3181
|
+
const value = t2;
|
|
3182
|
+
let t3;
|
|
3183
|
+
return $[4] !== children || $[5] !== value ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(PortalContext.Provider, { value, children }), $[4] = children, $[5] = value, $[6] = t3) : t3 = $[6], t3;
|
|
3189
3184
|
}
|
|
3190
3185
|
function _temp2$1() {
|
|
3191
3186
|
return null;
|
|
@@ -3225,42 +3220,26 @@ const StyledVirtualList = styledComponents.styled.div.withConfig({
|
|
|
3225
3220
|
displayName: "ItemWrapper",
|
|
3226
3221
|
componentId: "sc-dlqsj4-1"
|
|
3227
3222
|
})`position:absolute;left:0;right:0;`, VirtualList = react.forwardRef(function(props, forwardedRef) {
|
|
3228
|
-
const
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
as: t0,
|
|
3232
|
-
gap: t1,
|
|
3223
|
+
const {
|
|
3224
|
+
as = "div",
|
|
3225
|
+
gap = 0,
|
|
3233
3226
|
getItemKey,
|
|
3234
|
-
items
|
|
3227
|
+
items = [],
|
|
3235
3228
|
onChange,
|
|
3236
3229
|
renderItem,
|
|
3237
3230
|
...restProps
|
|
3238
|
-
} = props,
|
|
3239
|
-
const as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1;
|
|
3240
|
-
let t3;
|
|
3241
|
-
$[8] !== t2 ? (t3 = t2 === void 0 ? [] : t2, $[8] = t2, $[9] = t3) : t3 = $[9];
|
|
3242
|
-
const items = t3, {
|
|
3231
|
+
} = props, {
|
|
3243
3232
|
space
|
|
3244
3233
|
} = useTheme_v2(), ref = react.useRef(null), wrapperRef = react.useRef(null), [scrollTop, setScrollTop] = react.useState(0), [scrollHeight, setScrollHeight] = react.useState(0), [itemHeight, setItemHeight] = react.useState(-1);
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
let t5;
|
|
3248
|
-
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
|
|
3249
|
-
if (!wrapperRef.current)
|
|
3250
|
-
return;
|
|
3234
|
+
react.useImperativeHandle(forwardedRef, () => ref.current), react.useEffect(() => {
|
|
3235
|
+
if (!wrapperRef.current) return;
|
|
3251
3236
|
const firstElement = wrapperRef.current.firstChild;
|
|
3252
3237
|
firstElement instanceof HTMLElement && setItemHeight(firstElement.offsetHeight);
|
|
3253
|
-
},
|
|
3254
|
-
|
|
3255
|
-
$[12] !== renderItem ? (t6 = [renderItem], $[12] = renderItem, $[13] = t6) : t6 = $[13], react.useEffect(t5, t6);
|
|
3256
|
-
let t7, t8;
|
|
3257
|
-
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
|
|
3258
|
-
if (!ref.current)
|
|
3259
|
-
return;
|
|
3238
|
+
}, [renderItem]), react.useEffect(() => {
|
|
3239
|
+
if (!ref.current) return;
|
|
3260
3240
|
const scrollEl = findScrollable(ref.current.parentNode);
|
|
3261
3241
|
if (scrollEl) {
|
|
3262
|
-
if (!(scrollEl instanceof HTMLElement))
|
|
3263
|
-
return;
|
|
3242
|
+
if (!(scrollEl instanceof HTMLElement)) return;
|
|
3264
3243
|
const handleScroll = () => {
|
|
3265
3244
|
setScrollTop(scrollEl.scrollTop);
|
|
3266
3245
|
};
|
|
@@ -3284,10 +3263,9 @@ const StyledVirtualList = styledComponents.styled.div.withConfig({
|
|
|
3284
3263
|
}), window.addEventListener("resize", handleResize), setScrollHeight(window.innerHeight), handleScroll_0(), () => {
|
|
3285
3264
|
window.removeEventListener("scroll", handleScroll_0), window.removeEventListener("resize", handleResize);
|
|
3286
3265
|
};
|
|
3287
|
-
},
|
|
3266
|
+
}, []);
|
|
3288
3267
|
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;
|
|
3289
|
-
|
|
3290
|
-
$[16] !== fromIndex || $[17] !== gap || $[18] !== itemHeight || $[19] !== onChange || $[20] !== scrollHeight || $[21] !== scrollTop || $[22] !== space || $[23] !== toIndex ? (t9 = () => {
|
|
3268
|
+
react.useEffect(() => {
|
|
3291
3269
|
onChange && onChange({
|
|
3292
3270
|
fromIndex,
|
|
3293
3271
|
gap: space[gap],
|
|
@@ -3296,43 +3274,16 @@ const StyledVirtualList = styledComponents.styled.div.withConfig({
|
|
|
3296
3274
|
scrollTop,
|
|
3297
3275
|
toIndex
|
|
3298
3276
|
});
|
|
3299
|
-
},
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
if (itemHeight === -1) {
|
|
3307
|
-
let t123;
|
|
3308
|
-
$[26] !== items[0] || $[27] !== renderItem ? (t123 = renderItem(items[0]), $[26] = items[0], $[27] = renderItem, $[28] = t123) : t123 = $[28];
|
|
3309
|
-
let t132;
|
|
3310
|
-
$[29] !== t123 ? (t132 = [/* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { children: t123 }, 0)], $[29] = t123, $[30] = t132) : t132 = $[30], t11 = t132;
|
|
3311
|
-
break bb0;
|
|
3312
|
-
}
|
|
3313
|
-
let t122;
|
|
3314
|
-
if ($[31] !== fromIndex || $[32] !== gap || $[33] !== getItemKey || $[34] !== itemHeight || $[35] !== items || $[36] !== renderItem || $[37] !== space || $[38] !== toIndex) {
|
|
3315
|
-
let t132;
|
|
3316
|
-
$[40] !== fromIndex || $[41] !== gap || $[42] !== getItemKey || $[43] !== itemHeight || $[44] !== renderItem || $[45] !== space ? (t132 = (item, _itemIndex) => {
|
|
3317
|
-
const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
|
|
3318
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { style: {
|
|
3319
|
-
top: itemIndex * (itemHeight + space[gap])
|
|
3320
|
-
}, children: node }, key2);
|
|
3321
|
-
}, $[40] = fromIndex, $[41] = gap, $[42] = getItemKey, $[43] = itemHeight, $[44] = renderItem, $[45] = space, $[46] = t132) : t132 = $[46], t122 = items.slice(fromIndex, toIndex).map(t132), $[31] = fromIndex, $[32] = gap, $[33] = getItemKey, $[34] = itemHeight, $[35] = items, $[36] = renderItem, $[37] = space, $[38] = toIndex, $[39] = t122;
|
|
3322
|
-
} else
|
|
3323
|
-
t122 = $[39];
|
|
3324
|
-
t11 = t122;
|
|
3325
|
-
}
|
|
3326
|
-
const children = t11;
|
|
3327
|
-
let t12, t13;
|
|
3328
|
-
$[47] !== height ? (t13 = {
|
|
3277
|
+
}, [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex]);
|
|
3278
|
+
const children = react.useMemo(() => !renderItem || items.length === 0 ? null : itemHeight === -1 ? [/* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { children: renderItem(items[0]) }, 0)] : items.slice(fromIndex, toIndex).map((item, _itemIndex) => {
|
|
3279
|
+
const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
|
|
3280
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { style: {
|
|
3281
|
+
top: itemIndex * (itemHeight + space[gap])
|
|
3282
|
+
}, children: node }, key2);
|
|
3283
|
+
}), [fromIndex, gap, getItemKey, itemHeight, items, renderItem, space, toIndex]), wrapperStyle = react.useMemo(() => ({
|
|
3329
3284
|
height
|
|
3330
|
-
},
|
|
3331
|
-
|
|
3332
|
-
let t14;
|
|
3333
|
-
$[49] !== children || $[50] !== wrapperStyle ? (t14 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[49] = children, $[50] = wrapperStyle, $[51] = t14) : t14 = $[51];
|
|
3334
|
-
let t15;
|
|
3335
|
-
return $[52] !== as || $[53] !== restProps || $[54] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(StyledVirtualList, { as, "data-ui": "VirtualList", ...restProps, ref, children: t14 }), $[52] = as, $[53] = restProps, $[54] = t14, $[55] = t15) : t15 = $[55], t15;
|
|
3285
|
+
}), [height]);
|
|
3286
|
+
return /* @__PURE__ */ jsxRuntime.jsx(StyledVirtualList, { as, "data-ui": "VirtualList", ...restProps, ref, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapperRef, style: wrapperStyle, children }) });
|
|
3336
3287
|
});
|
|
3337
3288
|
VirtualList.displayName = "ForwardRef(VirtualList)";
|
|
3338
3289
|
function findScrollable(parentNode) {
|
|
@@ -3451,14 +3402,9 @@ const MotionCard$1 = styledComponents.styled(framerMotion.motion.create(Card)).w
|
|
|
3451
3402
|
} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = originX, $[9] = originY, $[10] = overflow, $[11] = padding, $[12] = placement, $[13] = radius, $[14] = restProps, $[15] = scheme, $[16] = shadow, $[17] = strategy, $[18] = style, $[19] = tone, $[20] = width, $[21] = xProp, $[22] = yProp) : (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], originX = $[8], originY = $[9], overflow = $[10], padding = $[11], placement = $[12], radius = $[13], restProps = $[14], scheme = $[15], shadow = $[16], strategy = $[17], style = $[18], tone = $[19], width = $[20], xProp = $[21], yProp = $[22]);
|
|
3452
3403
|
const {
|
|
3453
3404
|
zIndex
|
|
3454
|
-
} = useLayer();
|
|
3455
|
-
let t0;
|
|
3456
|
-
t0 = marginsProp || DEFAULT_POPOVER_MARGINS;
|
|
3457
|
-
const margins = t0, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0];
|
|
3405
|
+
} = useLayer(), margins = marginsProp || DEFAULT_POPOVER_MARGINS, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0], t0 = animate ? "transform" : void 0;
|
|
3458
3406
|
let t1;
|
|
3459
|
-
|
|
3460
|
-
let t3;
|
|
3461
|
-
$[23] !== originX || $[24] !== originY || $[25] !== strategy || $[26] !== style || $[27] !== t2 || $[28] !== width || $[29] !== x || $[30] !== y || $[31] !== zIndex ? (t3 = {
|
|
3407
|
+
$[23] !== originX || $[24] !== originY || $[25] !== strategy || $[26] !== style || $[27] !== t0 || $[28] !== width || $[29] !== x || $[30] !== y || $[31] !== zIndex ? (t1 = {
|
|
3462
3408
|
left: x,
|
|
3463
3409
|
originX,
|
|
3464
3410
|
originY,
|
|
@@ -3466,37 +3412,35 @@ const MotionCard$1 = styledComponents.styled(framerMotion.motion.create(Card)).w
|
|
|
3466
3412
|
top: y,
|
|
3467
3413
|
width,
|
|
3468
3414
|
zIndex,
|
|
3469
|
-
willChange:
|
|
3415
|
+
willChange: t0,
|
|
3470
3416
|
...style
|
|
3471
|
-
}, $[23] = originX, $[24] = originY, $[25] = strategy, $[26] = style, $[27] =
|
|
3472
|
-
const rootStyle2 = t1;
|
|
3417
|
+
}, $[23] = originX, $[24] = originY, $[25] = strategy, $[26] = style, $[27] = t0, $[28] = width, $[29] = x, $[30] = y, $[31] = zIndex, $[32] = t1) : t1 = $[32];
|
|
3418
|
+
const rootStyle2 = t1, t2 = arrowX !== null ? arrowX : void 0, t3 = arrowY !== null ? arrowY : void 0;
|
|
3473
3419
|
let t4;
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
left: t5,
|
|
3478
|
-
top: t6,
|
|
3420
|
+
$[33] !== t2 || $[34] !== t3 ? (t4 = {
|
|
3421
|
+
left: t2,
|
|
3422
|
+
top: t3,
|
|
3479
3423
|
right: void 0,
|
|
3480
3424
|
bottom: void 0
|
|
3481
|
-
}, $[33] =
|
|
3482
|
-
const arrowStyle = t4,
|
|
3425
|
+
}, $[33] = t2, $[34] = t3, $[35] = t4) : t4 = $[35];
|
|
3426
|
+
const arrowStyle = t4, t5 = restProps;
|
|
3427
|
+
let t6;
|
|
3428
|
+
$[36] !== animate ? (t6 = animate ? ["hidden", "initial"] : void 0, $[36] = animate, $[37] = t6) : t6 = $[37];
|
|
3429
|
+
let t7;
|
|
3430
|
+
$[38] !== animate ? (t7 = animate ? ["visible", "scaleIn"] : void 0, $[38] = animate, $[39] = t7) : t7 = $[39];
|
|
3431
|
+
let t8;
|
|
3432
|
+
$[40] !== animate ? (t8 = animate ? ["hidden", "scaleOut"] : void 0, $[40] = animate, $[41] = t8) : t8 = $[41];
|
|
3483
3433
|
let t9;
|
|
3484
|
-
$[
|
|
3434
|
+
$[42] !== children || $[43] !== padding ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { direction: "column", flex: 1, padding, children }), $[42] = children, $[43] = padding, $[44] = t9) : t9 = $[44];
|
|
3485
3435
|
let t10;
|
|
3486
|
-
$[
|
|
3436
|
+
$[45] !== overflow || $[46] !== t9 ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(MotionFlex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, overflow, variants: POPOVER_MOTION_PROPS.children, transition: POPOVER_MOTION_PROPS.transition, children: t9 }), $[45] = overflow, $[46] = t9, $[47] = t10) : t10 = $[47];
|
|
3487
3437
|
let t11;
|
|
3488
|
-
$[
|
|
3438
|
+
$[48] !== arrow || $[49] !== arrowRef || $[50] !== arrowStyle ? (t11 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[48] = arrow, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t11) : t11 = $[51];
|
|
3489
3439
|
let t12;
|
|
3490
|
-
$[
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
$[48] !== arrow || $[49] !== arrowRef || $[50] !== arrowStyle ? (t14 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[48] = arrow, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t14) : t14 = $[51];
|
|
3495
|
-
let t15;
|
|
3496
|
-
return $[52] !== placement || $[53] !== radius || $[54] !== ref || $[55] !== rootStyle2 || $[56] !== scheme || $[57] !== shadow || $[58] !== t10 || $[59] !== t11 || $[60] !== t13 || $[61] !== t14 || $[62] !== t8 || $[63] !== t9 || $[64] !== tone ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard$1, { "data-ui": "Popover", ...t8, "data-placement": placement, radius, ref, scheme, shadow, sizing: "border", style: rootStyle2, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t9, animate: t10, exit: t11, children: [
|
|
3497
|
-
t13,
|
|
3498
|
-
t14
|
|
3499
|
-
] }), $[52] = placement, $[53] = radius, $[54] = ref, $[55] = rootStyle2, $[56] = scheme, $[57] = shadow, $[58] = t10, $[59] = t11, $[60] = t13, $[61] = t14, $[62] = t8, $[63] = t9, $[64] = tone, $[65] = t15) : t15 = $[65], t15;
|
|
3440
|
+
return $[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 ? (t12 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard$1, { "data-ui": "Popover", ...t5, "data-placement": placement, radius, ref, scheme, shadow, sizing: "border", style: rootStyle2, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t6, animate: t7, exit: t8, children: [
|
|
3441
|
+
t10,
|
|
3442
|
+
t11
|
|
3443
|
+
] }), $[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;
|
|
3500
3444
|
}));
|
|
3501
3445
|
PopoverCard.displayName = "Memo(ForwardRef(PopoverCard))";
|
|
3502
3446
|
const ViewportOverlay = () => {
|
|
@@ -4336,56 +4280,51 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4336
4280
|
event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
|
|
4337
4281
|
}, $[20] = onClear, $[21] = t8) : t8 = $[21];
|
|
4338
4282
|
const handleClearClick = t8;
|
|
4339
|
-
let t9
|
|
4340
|
-
$[22] !== prefix || $[23] !== radius ? (
|
|
4341
|
-
const prefixNode = t9;
|
|
4283
|
+
let t9;
|
|
4284
|
+
$[22] !== prefix || $[23] !== radius ? (t9 = prefix && /* @__PURE__ */ jsxRuntime.jsx(Prefix, { borderTop: !0, borderLeft: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: prefix }) }), $[22] = prefix, $[23] = radius, $[24] = t9) : t9 = $[24];
|
|
4285
|
+
const prefixNode = t9, t10 = border2 ? "" : void 0;
|
|
4342
4286
|
let t11;
|
|
4343
|
-
|
|
4344
|
-
let t13;
|
|
4345
|
-
$[25] !== IconComponent || $[26] !== fontSize2 || $[27] !== padding ? (t13 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
4287
|
+
$[25] !== IconComponent || $[26] !== fontSize2 || $[27] !== padding ? (t11 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
4346
4288
|
react.isValidElement(IconComponent) && IconComponent,
|
|
4347
4289
|
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
4348
|
-
] }) }), $[25] = IconComponent, $[26] = fontSize2, $[27] = padding, $[28] =
|
|
4349
|
-
let
|
|
4350
|
-
$[29] !== $hasClearButton || $[30] !== IconRightComponent || $[31] !== fontSize2 || $[32] !== padding ? (
|
|
4290
|
+
] }) }), $[25] = IconComponent, $[26] = fontSize2, $[27] = padding, $[28] = t11) : t11 = $[28];
|
|
4291
|
+
let t12;
|
|
4292
|
+
$[29] !== $hasClearButton || $[30] !== IconRightComponent || $[31] !== fontSize2 || $[32] !== padding ? (t12 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsxRuntime.jsx(RightBox, { padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
4351
4293
|
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
4352
4294
|
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
4353
|
-
] }) }), $[29] = $hasClearButton, $[30] = IconRightComponent, $[31] = fontSize2, $[32] = padding, $[33] =
|
|
4295
|
+
] }) }), $[29] = $hasClearButton, $[30] = IconRightComponent, $[31] = fontSize2, $[32] = padding, $[33] = t12) : t12 = $[33];
|
|
4296
|
+
let t13;
|
|
4297
|
+
$[34] !== $hasPrefix || $[35] !== $hasSuffix || $[36] !== __unstable_disableFocusRing || $[37] !== radius || $[38] !== rootTheme.scheme || $[39] !== rootTheme.tone || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t10, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
|
|
4298
|
+
t11,
|
|
4299
|
+
t12
|
|
4300
|
+
] }), $[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];
|
|
4301
|
+
const presentationNode = t13;
|
|
4302
|
+
let t14;
|
|
4303
|
+
$[44] !== padding ? (t14 = padding.map(_temp2), $[44] = padding, $[45] = t14) : t14 = $[45];
|
|
4304
|
+
const clearButtonBoxPadding = t14;
|
|
4354
4305
|
let t15;
|
|
4355
|
-
$[
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
] }), $[
|
|
4359
|
-
const
|
|
4360
|
-
let
|
|
4361
|
-
$[
|
|
4362
|
-
const
|
|
4363
|
-
let
|
|
4364
|
-
$[
|
|
4365
|
-
const clearButtonPadding = t18;
|
|
4306
|
+
$[46] !== padding ? (t15 = padding.map(_temp3), $[46] = padding, $[47] = t15) : t15 = $[47];
|
|
4307
|
+
const clearButtonPadding = t15, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
|
|
4308
|
+
let t16;
|
|
4309
|
+
$[48] !== clearButton || $[49] !== clearButtonBoxPadding || $[50] !== clearButtonPadding || $[51] !== clearButtonProps || $[52] !== customValidity || $[53] !== disabled || $[54] !== fontSize2 || $[55] !== handleClearClick || $[56] !== radius || $[57] !== readOnly ? (t16 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsxRuntime.jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: icons.CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[48] = clearButton, $[49] = clearButtonBoxPadding, $[50] = clearButtonPadding, $[51] = clearButtonProps, $[52] = customValidity, $[53] = disabled, $[54] = fontSize2, $[55] = handleClearClick, $[56] = radius, $[57] = readOnly, $[58] = t16) : t16 = $[58];
|
|
4310
|
+
const clearButtonNode = t16;
|
|
4311
|
+
let t17;
|
|
4312
|
+
$[59] !== radius || $[60] !== suffix ? (t17 = suffix && /* @__PURE__ */ jsxRuntime.jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: suffix }) }), $[59] = radius, $[60] = suffix, $[61] = t17) : t17 = $[61];
|
|
4313
|
+
const suffixNode = t17, t18 = $hasIconRight || $hasClearButton;
|
|
4314
|
+
let t19;
|
|
4315
|
+
$[62] !== $hasIcon || $[63] !== disabled || $[64] !== fontSize2 || $[65] !== padding || $[66] !== readOnly || $[67] !== restProps || $[68] !== rootTheme.scheme || $[69] !== rootTheme.tone || $[70] !== space || $[71] !== t18 || $[72] !== type || $[73] !== weight ? (t19 = /* @__PURE__ */ jsxRuntime.jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t18, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[62] = $hasIcon, $[63] = disabled, $[64] = fontSize2, $[65] = padding, $[66] = readOnly, $[67] = restProps, $[68] = rootTheme.scheme, $[69] = rootTheme.tone, $[70] = space, $[71] = t18, $[72] = type, $[73] = weight, $[74] = t19) : t19 = $[74];
|
|
4366
4316
|
let t20;
|
|
4367
|
-
t20 =
|
|
4368
|
-
|
|
4369
|
-
let t21, t22;
|
|
4370
|
-
$[48] !== clearButton || $[49] !== clearButtonBoxPadding || $[50] !== clearButtonPadding || $[51] !== clearButtonProps || $[52] !== customValidity || $[53] !== disabled || $[54] !== fontSize2 || $[55] !== handleClearClick || $[56] !== radius || $[57] !== readOnly ? (t22 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsxRuntime.jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: icons.CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[48] = clearButton, $[49] = clearButtonBoxPadding, $[50] = clearButtonPadding, $[51] = clearButtonProps, $[52] = customValidity, $[53] = disabled, $[54] = fontSize2, $[55] = handleClearClick, $[56] = radius, $[57] = readOnly, $[58] = t22) : t22 = $[58], t21 = t22;
|
|
4371
|
-
const clearButtonNode = t21;
|
|
4372
|
-
let t23, t24;
|
|
4373
|
-
$[59] !== radius || $[60] !== suffix ? (t24 = suffix && /* @__PURE__ */ jsxRuntime.jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: suffix }) }), $[59] = radius, $[60] = suffix, $[61] = t24) : t24 = $[61], t23 = t24;
|
|
4374
|
-
const suffixNode = t23, t25 = $hasIconRight || $hasClearButton;
|
|
4375
|
-
let t26;
|
|
4376
|
-
$[62] !== $hasIcon || $[63] !== disabled || $[64] !== fontSize2 || $[65] !== padding || $[66] !== readOnly || $[67] !== restProps || $[68] !== rootTheme.scheme || $[69] !== rootTheme.tone || $[70] !== space || $[71] !== t25 || $[72] !== type || $[73] !== weight ? (t26 = /* @__PURE__ */ jsxRuntime.jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t25, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[62] = $hasIcon, $[63] = disabled, $[64] = fontSize2, $[65] = padding, $[66] = readOnly, $[67] = restProps, $[68] = rootTheme.scheme, $[69] = rootTheme.tone, $[70] = space, $[71] = t25, $[72] = type, $[73] = weight, $[74] = t26) : t26 = $[74];
|
|
4377
|
-
let t27;
|
|
4378
|
-
$[75] !== clearButtonNode || $[76] !== presentationNode || $[77] !== t26 ? (t27 = /* @__PURE__ */ jsxRuntime.jsxs(InputRoot, { children: [
|
|
4379
|
-
t26,
|
|
4317
|
+
$[75] !== clearButtonNode || $[76] !== presentationNode || $[77] !== t19 ? (t20 = /* @__PURE__ */ jsxRuntime.jsxs(InputRoot, { children: [
|
|
4318
|
+
t19,
|
|
4380
4319
|
presentationNode,
|
|
4381
4320
|
clearButtonNode
|
|
4382
|
-
] }), $[75] = clearButtonNode, $[76] = presentationNode, $[77] =
|
|
4383
|
-
let
|
|
4384
|
-
return $[79] !== prefixNode || $[80] !== rootTheme.tone || $[81] !== suffixNode || $[82] !==
|
|
4321
|
+
] }), $[75] = clearButtonNode, $[76] = presentationNode, $[77] = t19, $[78] = t20) : t20 = $[78];
|
|
4322
|
+
let t21;
|
|
4323
|
+
return $[79] !== prefixNode || $[80] !== rootTheme.tone || $[81] !== suffixNode || $[82] !== t20 ? (t21 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTextInput, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
|
|
4385
4324
|
prefixNode,
|
|
4386
|
-
|
|
4325
|
+
t20,
|
|
4387
4326
|
suffixNode
|
|
4388
|
-
] }), $[79] = prefixNode, $[80] = rootTheme.tone, $[81] = suffixNode, $[82] =
|
|
4327
|
+
] }), $[79] = prefixNode, $[80] = rootTheme.tone, $[81] = suffixNode, $[82] = t20, $[83] = t21) : t21 = $[83], t21;
|
|
4389
4328
|
});
|
|
4390
4329
|
TextInput.displayName = "ForwardRef(TextInput)";
|
|
4391
4330
|
function _temp$1(event) {
|
|
@@ -4448,39 +4387,36 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
4448
4387
|
style,
|
|
4449
4388
|
...restProps
|
|
4450
4389
|
} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = restProps, $[13] = scheme, $[14] = shadow, $[15] = style) : (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], restProps = $[12], scheme = $[13], shadow = $[14], style = $[15]);
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
$[16] !== originX || $[17] !== originY || $[18] !== style || $[19] !== t1 ? (t2 = {
|
|
4390
|
+
const t0 = animate ? "transform" : void 0;
|
|
4391
|
+
let t1;
|
|
4392
|
+
$[16] !== originX || $[17] !== originY || $[18] !== style || $[19] !== t0 ? (t1 = {
|
|
4455
4393
|
originX,
|
|
4456
4394
|
originY,
|
|
4457
|
-
willChange:
|
|
4395
|
+
willChange: t0,
|
|
4458
4396
|
...style
|
|
4459
|
-
}, $[16] = originX, $[17] = originY, $[18] = style, $[19] =
|
|
4460
|
-
const rootStyle2 =
|
|
4461
|
-
let
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
left: t4,
|
|
4466
|
-
top: t5,
|
|
4397
|
+
}, $[16] = originX, $[17] = originY, $[18] = style, $[19] = t0, $[20] = t1) : t1 = $[20];
|
|
4398
|
+
const rootStyle2 = t1, t2 = arrowX !== null ? arrowX : void 0, t3 = arrowY !== null ? arrowY : void 0;
|
|
4399
|
+
let t4;
|
|
4400
|
+
$[21] !== t2 || $[22] !== t3 ? (t4 = {
|
|
4401
|
+
left: t2,
|
|
4402
|
+
top: t3,
|
|
4467
4403
|
right: void 0,
|
|
4468
4404
|
bottom: void 0
|
|
4469
|
-
}, $[21] =
|
|
4470
|
-
const arrowStyle =
|
|
4405
|
+
}, $[21] = t2, $[22] = t3, $[23] = t4) : t4 = $[23];
|
|
4406
|
+
const arrowStyle = t4, t5 = restProps;
|
|
4407
|
+
let t6;
|
|
4408
|
+
$[24] !== animate ? (t6 = animate ? ["hidden", "initial"] : void 0, $[24] = animate, $[25] = t6) : t6 = $[25];
|
|
4409
|
+
let t7;
|
|
4410
|
+
$[26] !== animate ? (t7 = animate ? ["visible", "scaleIn"] : void 0, $[26] = animate, $[27] = t7) : t7 = $[27];
|
|
4471
4411
|
let t8;
|
|
4472
|
-
$[
|
|
4412
|
+
$[28] !== animate ? (t8 = animate ? ["hidden", "scaleOut"] : void 0, $[28] = animate, $[29] = t8) : t8 = $[29];
|
|
4473
4413
|
let t9;
|
|
4474
|
-
$[
|
|
4414
|
+
$[30] !== arrow || $[31] !== arrowRef || $[32] !== arrowStyle ? (t9 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[30] = arrow, $[31] = arrowRef, $[32] = arrowStyle, $[33] = t9) : t9 = $[33];
|
|
4475
4415
|
let t10;
|
|
4476
|
-
$[
|
|
4477
|
-
let t11;
|
|
4478
|
-
$[30] !== arrow || $[31] !== arrowRef || $[32] !== arrowStyle ? (t11 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[30] = arrow, $[31] = arrowRef, $[32] = arrowStyle, $[33] = t11) : t11 = $[33];
|
|
4479
|
-
let t12;
|
|
4480
|
-
return $[34] !== children || $[35] !== padding || $[36] !== placement || $[37] !== radius || $[38] !== ref || $[39] !== rootStyle2 || $[40] !== scheme || $[41] !== shadow || $[42] !== t10 || $[43] !== t11 || $[44] !== t7 || $[45] !== t8 || $[46] !== t9 ? (t12 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard, { "data-ui": "Tooltip__card", ...t7, "data-placement": placement, padding, radius, ref, scheme, shadow, style: rootStyle2, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t8, animate: t9, exit: t10, children: [
|
|
4416
|
+
return $[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 ? (t10 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard, { "data-ui": "Tooltip__card", ...t5, "data-placement": placement, padding, radius, ref, scheme, shadow, style: rootStyle2, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t6, animate: t7, exit: t8, children: [
|
|
4481
4417
|
children,
|
|
4482
|
-
|
|
4483
|
-
] }), $[34] = children, $[35] = padding, $[36] = placement, $[37] = radius, $[38] = ref, $[39] = rootStyle2, $[40] = scheme, $[41] = shadow, $[42] =
|
|
4418
|
+
t9
|
|
4419
|
+
] }), $[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;
|
|
4484
4420
|
}));
|
|
4485
4421
|
TooltipCard.displayName = "Memo(ForwardRef(TooltipCard))";
|
|
4486
4422
|
const TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
|
|
@@ -4488,20 +4424,18 @@ function TooltipDelayGroupProvider(props) {
|
|
|
4488
4424
|
const $ = reactCompilerRuntime.c(9), {
|
|
4489
4425
|
children,
|
|
4490
4426
|
delay
|
|
4491
|
-
} = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0;
|
|
4492
|
-
let
|
|
4493
|
-
|
|
4494
|
-
let t2;
|
|
4495
|
-
$[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t1 ? (t2 = {
|
|
4427
|
+
} = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0, t0 = isGroupActive ? 1 : openDelay;
|
|
4428
|
+
let t1;
|
|
4429
|
+
$[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t0 ? (t1 = {
|
|
4496
4430
|
setIsGroupActive,
|
|
4497
4431
|
openTooltipId,
|
|
4498
4432
|
setOpenTooltipId,
|
|
4499
|
-
openDelay:
|
|
4433
|
+
openDelay: t0,
|
|
4500
4434
|
closeDelay
|
|
4501
|
-
}, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] =
|
|
4502
|
-
const value =
|
|
4503
|
-
let
|
|
4504
|
-
return $[6] !== children || $[7] !== value ? (
|
|
4435
|
+
}, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t0, $[5] = t1) : t1 = $[5];
|
|
4436
|
+
const value = t1;
|
|
4437
|
+
let t2;
|
|
4438
|
+
return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
|
|
4505
4439
|
}
|
|
4506
4440
|
TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
|
|
4507
4441
|
function useTooltipDelayGroup() {
|
|
@@ -4823,6 +4757,7 @@ function useMenuController(props) {
|
|
|
4823
4757
|
});
|
|
4824
4758
|
return () => cancelAnimationFrame(rafId);
|
|
4825
4759
|
}, [activeIndex, mounted, setActiveIndex, shouldFocus]), {
|
|
4760
|
+
// eslint-disable-next-line react-hooks/refs
|
|
4826
4761
|
activeElement,
|
|
4827
4762
|
activeIndex,
|
|
4828
4763
|
handleItemMouseEnter,
|
|
@@ -4852,9 +4787,9 @@ const StyledMenu = styledComponents.styled(Box).withConfig({
|
|
|
4852
4787
|
registerElement: t102,
|
|
4853
4788
|
shouldFocus: t112,
|
|
4854
4789
|
space: t122,
|
|
4855
|
-
...
|
|
4790
|
+
...t13
|
|
4856
4791
|
} = props;
|
|
4857
|
-
children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112, t1 = t122, restProps =
|
|
4792
|
+
children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112, t1 = t122, restProps = t13, $[0] = props, $[1] = _shouldFocus, $[2] = children, $[3] = onClickOutside, $[4] = onEscape, $[5] = onItemClick, $[6] = onItemSelect, $[7] = onKeyDown, $[8] = originElement, $[9] = registerElement, $[10] = restProps, $[11] = t0, $[12] = t1;
|
|
4858
4793
|
} else
|
|
4859
4794
|
_shouldFocus = $[1], children = $[2], onClickOutside = $[3], onEscape = $[4], onItemClick = $[5], onItemSelect = $[6], onKeyDown = $[7], originElement = $[8], registerElement = $[9], restProps = $[10], t0 = $[11], t1 = $[12];
|
|
4860
4795
|
const padding = t0 === void 0 ? 1 : t0, space = t1 === void 0 ? 1 : t1, shouldFocus = _shouldFocus ?? (props.focusFirst && "first" || props.focusLast && "last" || null), ref = react.useRef(null);
|
|
@@ -4893,8 +4828,8 @@ const StyledMenu = styledComponents.styled(Box).withConfig({
|
|
|
4893
4828
|
$[25] !== isTopLayer || $[26] !== onEscape ? (t8 = (event) => {
|
|
4894
4829
|
isTopLayer && event.key === "Escape" && (event.stopPropagation(), onEscape && onEscape());
|
|
4895
4830
|
}, $[25] = isTopLayer, $[26] = onEscape, $[27] = t8) : t8 = $[27], useGlobalKeyDown(t8);
|
|
4896
|
-
let t9
|
|
4897
|
-
$[28] !== activeElement || $[29] !== activeIndex || $[30] !== handleItemMouseEnter || $[31] !== handleItemMouseLeave || $[32] !== mount || $[33] !== onClickOutside || $[34] !== onEscape || $[35] !== onItemClick || $[36] !== registerElement ? (
|
|
4831
|
+
let t9;
|
|
4832
|
+
$[28] !== activeElement || $[29] !== activeIndex || $[30] !== handleItemMouseEnter || $[31] !== handleItemMouseLeave || $[32] !== mount || $[33] !== onClickOutside || $[34] !== onEscape || $[35] !== onItemClick || $[36] !== registerElement ? (t9 = {
|
|
4898
4833
|
version: 0,
|
|
4899
4834
|
activeElement,
|
|
4900
4835
|
activeIndex,
|
|
@@ -4907,14 +4842,14 @@ const StyledMenu = styledComponents.styled(Box).withConfig({
|
|
|
4907
4842
|
registerElement,
|
|
4908
4843
|
onMouseEnter: handleItemMouseEnter,
|
|
4909
4844
|
onMouseLeave: handleItemMouseLeave
|
|
4910
|
-
}, $[28] = activeElement, $[29] = activeIndex, $[30] = handleItemMouseEnter, $[31] = handleItemMouseLeave, $[32] = mount, $[33] = onClickOutside, $[34] = onEscape, $[35] = onItemClick, $[36] = registerElement, $[37] =
|
|
4845
|
+
}, $[28] = activeElement, $[29] = activeIndex, $[30] = handleItemMouseEnter, $[31] = handleItemMouseLeave, $[32] = mount, $[33] = onClickOutside, $[34] = onEscape, $[35] = onItemClick, $[36] = registerElement, $[37] = t9) : t9 = $[37];
|
|
4911
4846
|
const value = t9;
|
|
4847
|
+
let t10;
|
|
4848
|
+
$[38] !== children || $[39] !== space ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { space, children }), $[38] = children, $[39] = space, $[40] = t10) : t10 = $[40];
|
|
4912
4849
|
let t11;
|
|
4913
|
-
$[
|
|
4850
|
+
$[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t10 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(StyledMenu, { "data-ui": "Menu", ...restProps, onKeyDown: handleKeyDown, padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t10 }), $[41] = handleKeyDown, $[42] = handleRefChange, $[43] = padding, $[44] = restProps, $[45] = t10, $[46] = t11) : t11 = $[46];
|
|
4914
4851
|
let t12;
|
|
4915
|
-
|
|
4916
|
-
let t13;
|
|
4917
|
-
return $[47] !== t12 || $[48] !== value ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(MenuContext.Provider, { value, children: t12 }), $[47] = t12, $[48] = value, $[49] = t13) : t13 = $[49], t13;
|
|
4852
|
+
return $[47] !== t11 || $[48] !== value ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(MenuContext.Provider, { value, children: t11 }), $[47] = t11, $[48] = value, $[49] = t12) : t12 = $[49], t12;
|
|
4918
4853
|
});
|
|
4919
4854
|
Menu.displayName = "ForwardRef(Menu)";
|
|
4920
4855
|
const MenuDivider = styledComponents.styled.hr.withConfig({
|
|
@@ -5186,8 +5121,8 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
|
|
|
5186
5121
|
disabled || (onClick && onClick(event), onItemClick && onItemClick());
|
|
5187
5122
|
}, $[29] = disabled, $[30] = onClick, $[31] = onItemClick, $[32] = t9) : t9 = $[32];
|
|
5188
5123
|
const handleClick = t9;
|
|
5189
|
-
let t10
|
|
5190
|
-
$[33] !== padding || $[34] !== paddingBottom || $[35] !== paddingLeft || $[36] !== paddingRight || $[37] !== paddingTop || $[38] !== paddingX || $[39] !== paddingY ? (
|
|
5124
|
+
let t10;
|
|
5125
|
+
$[33] !== padding || $[34] !== paddingBottom || $[35] !== paddingLeft || $[36] !== paddingRight || $[37] !== paddingTop || $[38] !== paddingX || $[39] !== paddingY ? (t10 = {
|
|
5191
5126
|
padding,
|
|
5192
5127
|
paddingX,
|
|
5193
5128
|
paddingY,
|
|
@@ -5195,18 +5130,18 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
|
|
|
5195
5130
|
paddingRight,
|
|
5196
5131
|
paddingBottom,
|
|
5197
5132
|
paddingLeft
|
|
5198
|
-
}, $[33] = padding, $[34] = paddingBottom, $[35] = paddingLeft, $[36] = paddingRight, $[37] = paddingTop, $[38] = paddingX, $[39] = paddingY, $[40] =
|
|
5199
|
-
const paddingProps = t10,
|
|
5133
|
+
}, $[33] = padding, $[34] = paddingBottom, $[35] = paddingLeft, $[36] = paddingRight, $[37] = paddingTop, $[38] = paddingX, $[39] = paddingY, $[40] = t10) : t10 = $[40];
|
|
5134
|
+
const paddingProps = t10, t11 = useArrayProp(fontSize2);
|
|
5135
|
+
let t12;
|
|
5136
|
+
$[41] !== t11 ? (t12 = t11.map(_temp), $[41] = t11, $[42] = t12) : t12 = $[42];
|
|
5137
|
+
const hotkeysFontSize = t12;
|
|
5200
5138
|
let t13;
|
|
5201
|
-
$[
|
|
5202
|
-
const hotkeysFontSize = t13;
|
|
5203
|
-
let t14;
|
|
5204
|
-
$[43] === Symbol.for("react.memo_cache_sentinel") ? (t14 = (el) => {
|
|
5139
|
+
$[43] === Symbol.for("react.memo_cache_sentinel") ? (t13 = (el) => {
|
|
5205
5140
|
ref.current = el, setRootElement(el);
|
|
5206
|
-
}, $[43] =
|
|
5207
|
-
const setRef =
|
|
5208
|
-
let
|
|
5209
|
-
$[44] !== IconComponent || $[45] !== IconRightComponent || $[46] !== fontSize2 || $[47] !== hotkeys || $[48] !== hotkeysFontSize || $[49] !== paddingProps || $[50] !== space || $[51] !== text ? (
|
|
5141
|
+
}, $[43] = t13) : t13 = $[43];
|
|
5142
|
+
const setRef = t13, t14 = as !== "button" && pressed ? "" : void 0, t15 = active ? "" : void 0, t16 = disabled ? "" : void 0, t17 = useArrayProp(radius), t18 = useArrayProp(0), t19 = disabled ? "default" : tone, t20 = as === "button" ? "button" : void 0;
|
|
5143
|
+
let t21;
|
|
5144
|
+
$[44] !== IconComponent || $[45] !== IconRightComponent || $[46] !== fontSize2 || $[47] !== hotkeys || $[48] !== hotkeysFontSize || $[49] !== paddingProps || $[50] !== space || $[51] !== text ? (t21 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
|
|
5210
5145
|
IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
5211
5146
|
react.isValidElement(IconComponent) && IconComponent,
|
|
5212
5147
|
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
@@ -5220,14 +5155,14 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
|
|
|
5220
5155
|
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
5221
5156
|
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
5222
5157
|
] })
|
|
5223
|
-
] }), $[44] = IconComponent, $[45] = IconRightComponent, $[46] = fontSize2, $[47] = hotkeys, $[48] = hotkeysFontSize, $[49] = paddingProps, $[50] = space, $[51] = text, $[52] =
|
|
5158
|
+
] }), $[44] = IconComponent, $[45] = IconRightComponent, $[46] = fontSize2, $[47] = hotkeys, $[48] = hotkeysFontSize, $[49] = paddingProps, $[50] = space, $[51] = text, $[52] = t21) : t21 = $[52];
|
|
5159
|
+
let t22;
|
|
5160
|
+
$[53] !== children || $[54] !== paddingProps ? (t22 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...paddingProps, children }), $[53] = children, $[54] = paddingProps, $[55] = t22) : t22 = $[55];
|
|
5224
5161
|
let t23;
|
|
5225
|
-
$[
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
t23
|
|
5230
|
-
] }), $[56] = as, $[57] = disabled, $[58] = handleClick, $[59] = onItemMouseEnter, $[60] = onItemMouseLeave, $[61] = restProps, $[62] = scheme, $[63] = t15, $[64] = t16, $[65] = t17, $[66] = t18, $[67] = t19, $[68] = t20, $[69] = t21, $[70] = t22, $[71] = t23, $[72] = t24) : t24 = $[72], t24;
|
|
5162
|
+
return $[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 ? (t23 = /* @__PURE__ */ jsxRuntime.jsxs(Selectable, { "data-ui": "MenuItem", role: "menuitem", ...restProps, "data-pressed": t14, "data-selected": t15, "data-disabled": t16, forwardedAs: as, $radius: t17, $padding: t18, $tone: t19, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, tabIndex: -1, type: t20, children: [
|
|
5163
|
+
t21,
|
|
5164
|
+
t22
|
|
5165
|
+
] }), $[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;
|
|
5231
5166
|
});
|
|
5232
5167
|
MenuItem.displayName = "ForwardRef(MenuItem)";
|
|
5233
5168
|
function _temp(s) {
|