@sanity/ui 2.10.17 → 2.10.18
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/index.esm.js +370 -310
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +370 -310
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +370 -310
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/core/components/autocomplete/autocomplete.styles.tsx +1 -1
- package/src/core/components/autocomplete/autocomplete.tsx +3 -3
- package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +1 -1
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +3 -3
- package/src/core/components/dialog/dialog.tsx +3 -3
- package/src/core/components/hotkeys/hotkeys.tsx +3 -3
- package/src/core/components/menu/menu.tsx +3 -3
- package/src/core/components/skeleton/skeleton.tsx +4 -5
- package/src/core/components/skeleton/textSkeleton.tsx +5 -5
- package/src/core/components/toast/toast.tsx +3 -3
- package/src/core/components/toast/toastProvider.tsx +3 -3
- package/src/core/components/tree/treeItem.tsx +5 -5
- package/src/core/primitives/avatar/avatar.tsx +6 -6
- package/src/core/primitives/avatar/avatarCounter.tsx +3 -3
- package/src/core/primitives/avatar/avatarStack.tsx +6 -3
- package/src/core/primitives/badge/badge.tsx +3 -3
- package/src/core/primitives/box/box.tsx +3 -3
- package/src/core/primitives/button/button.tsx +3 -3
- package/src/core/primitives/card/card.tsx +2 -2
- package/src/core/primitives/checkbox/checkbox.tsx +3 -3
- package/src/core/primitives/code/code.tsx +3 -3
- package/src/core/primitives/container/container.tsx +2 -2
- package/src/core/primitives/flex/flex.tsx +2 -2
- package/src/core/primitives/grid/grid.tsx +3 -3
- package/src/core/primitives/heading/heading.tsx +4 -11
- package/src/core/primitives/inline/inline.tsx +3 -3
- package/src/core/primitives/kbd/kbd.tsx +3 -3
- package/src/core/primitives/label/label.tsx +4 -11
- package/src/core/primitives/radio/radio.tsx +3 -3
- package/src/core/primitives/select/select.tsx +3 -3
- package/src/core/primitives/spinner/spinner.tsx +3 -3
- package/src/core/primitives/stack/stack.tsx +5 -2
- package/src/core/primitives/switch/switch.tsx +3 -3
- package/src/core/primitives/text/text.tsx +4 -11
- package/src/core/primitives/textArea/textArea.tsx +3 -3
- package/src/core/primitives/textInput/textInput.tsx +3 -3
- package/src/core/primitives/tooltip/tooltip.tsx +3 -3
- package/src/core/utils/arrow/arrow.tsx +3 -3
- package/src/core/utils/layer/layer.tsx +9 -3
- package/src/core/utils/spanWithTextOverflow.tsx +10 -0
- package/src/core/utils/srOnly/srOnly.tsx +3 -3
- package/src/core/utils/virtualList/virtualList.tsx +3 -3
package/dist/index.js
CHANGED
|
@@ -1420,6 +1420,10 @@ function responsiveShadowStyle(props) {
|
|
|
1420
1420
|
} = theme.getTheme_v2(props.theme);
|
|
1421
1421
|
return _responsive(media, props.$shadow, (index) => shadowStyle(shadow[index], card.shadow.outline));
|
|
1422
1422
|
}
|
|
1423
|
+
const SpanWithTextOverflow = styledComponents.styled.span.withConfig({
|
|
1424
|
+
displayName: "SpanWithTextOverflow",
|
|
1425
|
+
componentId: "sc-ol2i3b-0"
|
|
1426
|
+
})`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`;
|
|
1423
1427
|
function labelBaseStyle(props) {
|
|
1424
1428
|
const {
|
|
1425
1429
|
$accent,
|
|
@@ -1459,13 +1463,10 @@ function labelBaseStyle(props) {
|
|
|
1459
1463
|
}
|
|
1460
1464
|
`;
|
|
1461
1465
|
}
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
overflow: hidden;
|
|
1467
|
-
overflow: clip;
|
|
1468
|
-
`, Label = react.forwardRef(function(props, ref) {
|
|
1466
|
+
const StyledLabel = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1467
|
+
displayName: "StyledLabel",
|
|
1468
|
+
componentId: "sc-1luap7z-0"
|
|
1469
|
+
})(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), Label = react.forwardRef(function(props, ref) {
|
|
1469
1470
|
const $ = reactCompilerRuntime.c(22);
|
|
1470
1471
|
let accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
|
|
1471
1472
|
$[0] !== props ? ({
|
|
@@ -1482,14 +1483,14 @@ const Root$C = styledComponents.styled.div(responsiveLabelFont, responsiveTextAl
|
|
|
1482
1483
|
let children = childrenProp;
|
|
1483
1484
|
if (textOverflow === "ellipsis") {
|
|
1484
1485
|
let t22;
|
|
1485
|
-
$[9] !== children ? (t22 = /* @__PURE__ */ jsxRuntime.jsx(SpanWithTextOverflow
|
|
1486
|
+
$[9] !== children ? (t22 = /* @__PURE__ */ jsxRuntime.jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t22) : t22 = $[10], children = t22;
|
|
1486
1487
|
} else {
|
|
1487
1488
|
let t22;
|
|
1488
1489
|
$[11] !== children ? (t22 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[11] = children, $[12] = t22) : t22 = $[12], children = t22;
|
|
1489
1490
|
}
|
|
1490
1491
|
const t2 = useArrayProp(align), t3 = useArrayProp(size2);
|
|
1491
1492
|
let t4;
|
|
1492
|
-
return $[13] !== accent || $[14] !== children || $[15] !== muted || $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== weight ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1493
|
+
return $[13] !== accent || $[14] !== children || $[15] !== muted || $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== weight ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(StyledLabel, { "data-ui": "Label", ...restProps, $accent: accent, $align: t2, $muted: muted, $size: t3, $weight: weight, ref, children }), $[13] = accent, $[14] = children, $[15] = muted, $[16] = ref, $[17] = restProps, $[18] = t2, $[19] = t3, $[20] = weight, $[21] = t4) : t4 = $[21], t4;
|
|
1493
1494
|
});
|
|
1494
1495
|
Label.displayName = "ForwardRef(Label)";
|
|
1495
1496
|
const avatarStyle = {
|
|
@@ -1635,9 +1636,30 @@ function avatarStrokeStyle() {
|
|
|
1635
1636
|
}
|
|
1636
1637
|
};
|
|
1637
1638
|
}
|
|
1638
|
-
const
|
|
1639
|
+
const StyledAvatar = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1640
|
+
displayName: "StyledAvatar",
|
|
1641
|
+
componentId: "sc-1rj7kl0-0"
|
|
1642
|
+
})(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1 = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1643
|
+
displayName: "Arrow",
|
|
1644
|
+
componentId: "sc-1rj7kl0-1"
|
|
1645
|
+
})(avatarStyle.arrow), BgStroke = /* @__PURE__ */ styledComponents.styled.ellipse.withConfig({
|
|
1646
|
+
displayName: "BgStroke",
|
|
1647
|
+
componentId: "sc-1rj7kl0-2"
|
|
1648
|
+
})(avatarStyle.bgStroke), Stroke = /* @__PURE__ */ styledComponents.styled.ellipse.withConfig({
|
|
1649
|
+
displayName: "Stroke",
|
|
1650
|
+
componentId: "sc-1rj7kl0-3"
|
|
1651
|
+
})(avatarStyle.stroke), Initials = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1652
|
+
displayName: "Initials",
|
|
1653
|
+
componentId: "sc-1rj7kl0-4"
|
|
1654
|
+
})(avatarStyle.initials), InitialsLabel = /* @__PURE__ */ styledComponents.styled(Label).withConfig({
|
|
1655
|
+
displayName: "InitialsLabel",
|
|
1656
|
+
componentId: "sc-1rj7kl0-5"
|
|
1657
|
+
})({
|
|
1639
1658
|
color: "inherit"
|
|
1640
|
-
}),
|
|
1659
|
+
}), AvatarImage = /* @__PURE__ */ styledComponents.styled.svg.withConfig({
|
|
1660
|
+
displayName: "AvatarImage",
|
|
1661
|
+
componentId: "sc-1rj7kl0-6"
|
|
1662
|
+
})(avatarStyle.image), Avatar = react.forwardRef(function(props, ref) {
|
|
1641
1663
|
const $ = reactCompilerRuntime.c(52);
|
|
1642
1664
|
let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
|
|
1643
1665
|
$[0] !== props ? ({
|
|
@@ -1679,7 +1701,7 @@ const Root$B = styledComponents.styled.div(responsiveAvatarSizeStyle, avatarStyl
|
|
|
1679
1701
|
let t11;
|
|
1680
1702
|
$[24] !== color ? (t11 = /* @__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] = t11) : t11 = $[25];
|
|
1681
1703
|
let t12;
|
|
1682
|
-
$[26] !== __unstable_hideInnerStroke || $[27] !== _radius || $[28] !== _sizeRem || $[29] !== handleImageError || $[30] !== imageFailed || $[31] !== imageId || $[32] !== src ? (t12 = !imageFailed && src && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1704
|
+
$[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: [
|
|
1683
1705
|
/* @__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 }) }) }),
|
|
1684
1706
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: _radius, cy: _radius, r: _radius, fill: `url(#${imageId})` }),
|
|
1685
1707
|
!__unstable_hideInnerStroke && /* @__PURE__ */ jsxRuntime.jsx(BgStroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" }),
|
|
@@ -1688,7 +1710,7 @@ const Root$B = styledComponents.styled.div(responsiveAvatarSizeStyle, avatarStyl
|
|
|
1688
1710
|
let t13;
|
|
1689
1711
|
$[34] !== imageFailed || $[35] !== initials || $[36] !== initialsSize || $[37] !== src ? (t13 = (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] = t13) : t13 = $[38];
|
|
1690
1712
|
let t14;
|
|
1691
|
-
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(
|
|
1713
|
+
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: [
|
|
1692
1714
|
t11,
|
|
1693
1715
|
t12,
|
|
1694
1716
|
t13
|
|
@@ -1734,7 +1756,10 @@ function _avatarCounterBaseStyle(props) {
|
|
|
1734
1756
|
}
|
|
1735
1757
|
`;
|
|
1736
1758
|
}
|
|
1737
|
-
const
|
|
1759
|
+
const StyledAvatarCounter = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1760
|
+
displayName: "StyledAvatarCounter",
|
|
1761
|
+
componentId: "sc-1ydx86y-0"
|
|
1762
|
+
})(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = react.forwardRef(function(props, ref) {
|
|
1738
1763
|
const $ = reactCompilerRuntime.c(9), {
|
|
1739
1764
|
count,
|
|
1740
1765
|
size: t0
|
|
@@ -1745,7 +1770,7 @@ const Root$A = styledComponents.styled.div(_responsiveAvatarCounterSizeStyle, _a
|
|
|
1745
1770
|
let t3;
|
|
1746
1771
|
$[2] !== count || $[3] !== fontSize2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Label, { as: "span", size: fontSize2, weight: "medium", children: count }), $[2] = count, $[3] = fontSize2, $[4] = t3) : t3 = $[4];
|
|
1747
1772
|
let t4;
|
|
1748
|
-
return $[5] !== ref || $[6] !== size2 || $[7] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1773
|
+
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;
|
|
1749
1774
|
});
|
|
1750
1775
|
AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
|
|
1751
1776
|
function _temp$7(s) {
|
|
@@ -1779,7 +1804,10 @@ function responsiveAvatarStackSizeStyle(props) {
|
|
|
1779
1804
|
} : EMPTY_RECORD;
|
|
1780
1805
|
});
|
|
1781
1806
|
}
|
|
1782
|
-
const
|
|
1807
|
+
const StyledAvatarStack = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1808
|
+
displayName: "StyledAvatarStack",
|
|
1809
|
+
componentId: "sc-cysmbb-0"
|
|
1810
|
+
})(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = react.forwardRef(function(props, ref) {
|
|
1783
1811
|
const $ = reactCompilerRuntime.c(15);
|
|
1784
1812
|
let childrenProp, restProps, t0, t1;
|
|
1785
1813
|
$[0] !== props ? ({
|
|
@@ -1788,7 +1816,7 @@ const Root$z = styledComponents.styled.div(responsiveAvatarStackSizeStyle, avata
|
|
|
1788
1816
|
size: t1,
|
|
1789
1817
|
...restProps
|
|
1790
1818
|
} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1) : (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]);
|
|
1791
|
-
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 =
|
|
1819
|
+
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", t3 = len === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: len, size: size2 }) }), t4 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: extraCount, size: size2 }) });
|
|
1792
1820
|
let t5;
|
|
1793
1821
|
$[5] !== size2 ? (t5 = (child, childIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { children: react.cloneElement(child, {
|
|
1794
1822
|
size: size2
|
|
@@ -1802,7 +1830,10 @@ const Root$z = styledComponents.styled.div(responsiveAvatarStackSizeStyle, avata
|
|
|
1802
1830
|
] }), $[7] = T0, $[8] = ref, $[9] = restProps, $[10] = size2, $[11] = t3, $[12] = t4, $[13] = t6, $[14] = t7) : t7 = $[14], t7;
|
|
1803
1831
|
});
|
|
1804
1832
|
AvatarStack.displayName = "ForwardRef(AvatarStack)";
|
|
1805
|
-
const
|
|
1833
|
+
const StyledBox = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1834
|
+
displayName: "StyledBox",
|
|
1835
|
+
componentId: "sc-1hhky9f-0"
|
|
1836
|
+
})(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = react.forwardRef(function(props, ref) {
|
|
1806
1837
|
const $ = reactCompilerRuntime.c(59);
|
|
1807
1838
|
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;
|
|
1808
1839
|
$[0] !== props ? ({
|
|
@@ -1836,7 +1867,7 @@ const Root$y = styledComponents.styled.div(boxStyle, flexItemStyle, responsiveBo
|
|
|
1836
1867
|
} = 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]);
|
|
1837
1868
|
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, t5 = useArrayProp(column), t6 = useArrayProp(columnStart), t7 = useArrayProp(columnEnd), t8 = useArrayProp(display), t9 = useArrayProp(flex), t10 = useArrayProp(height), t11 = useArrayProp(margin), t12 = useArrayProp(marginX), t13 = useArrayProp(marginY), t14 = useArrayProp(marginTop), t15 = useArrayProp(marginRight), t16 = useArrayProp(marginBottom), t17 = useArrayProp(marginLeft), t18 = useArrayProp(overflow), t19 = useArrayProp(padding), t20 = useArrayProp(paddingX), t21 = useArrayProp(paddingY), t22 = useArrayProp(paddingTop), t23 = useArrayProp(paddingRight), t24 = useArrayProp(paddingBottom), t25 = useArrayProp(paddingLeft), t26 = useArrayProp(row), t27 = useArrayProp(rowStart), t28 = useArrayProp(rowEnd), t29 = useArrayProp(sizing);
|
|
1838
1869
|
let t30;
|
|
1839
|
-
return $[28] !== asProp || $[29] !== props.children || $[30] !== ref || $[31] !== restProps || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t15 || $[38] !== t16 || $[39] !== t17 || $[40] !== t18 || $[41] !== t19 || $[42] !== t20 || $[43] !== t21 || $[44] !== t22 || $[45] !== t23 || $[46] !== t24 || $[47] !== t25 || $[48] !== t26 || $[49] !== t27 || $[50] !== t28 || $[51] !== t29 || $[52] !== t4 || $[53] !== t5 || $[54] !== t6 || $[55] !== t7 || $[56] !== t8 || $[57] !== t9 ? (t30 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1870
|
+
return $[28] !== asProp || $[29] !== props.children || $[30] !== ref || $[31] !== restProps || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t15 || $[38] !== t16 || $[39] !== t17 || $[40] !== t18 || $[41] !== t19 || $[42] !== t20 || $[43] !== t21 || $[44] !== t22 || $[45] !== t23 || $[46] !== t24 || $[47] !== t25 || $[48] !== t26 || $[49] !== t27 || $[50] !== t28 || $[51] !== t29 || $[52] !== t4 || $[53] !== t5 || $[54] !== t6 || $[55] !== t7 || $[56] !== t8 || $[57] !== t9 ? (t30 = /* @__PURE__ */ jsxRuntime.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 }), $[28] = asProp, $[29] = props.children, $[30] = ref, $[31] = restProps, $[32] = t10, $[33] = t11, $[34] = t12, $[35] = t13, $[36] = t14, $[37] = t15, $[38] = t16, $[39] = t17, $[40] = t18, $[41] = t19, $[42] = t20, $[43] = t21, $[44] = t22, $[45] = t23, $[46] = t24, $[47] = t25, $[48] = t26, $[49] = t27, $[50] = t28, $[51] = t29, $[52] = t4, $[53] = t5, $[54] = t6, $[55] = t7, $[56] = t8, $[57] = t9, $[58] = t30) : t30 = $[58], t30;
|
|
1840
1871
|
});
|
|
1841
1872
|
Box.displayName = "ForwardRef(Box)";
|
|
1842
1873
|
function textBaseStyle(props) {
|
|
@@ -1907,13 +1938,10 @@ function textBaseStyle(props) {
|
|
|
1907
1938
|
}
|
|
1908
1939
|
`;
|
|
1909
1940
|
}
|
|
1910
|
-
const
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
overflow: hidden;
|
|
1915
|
-
overflow: clip;
|
|
1916
|
-
`, Text = react.forwardRef(function(props, ref) {
|
|
1941
|
+
const StyledText = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1942
|
+
displayName: "StyledText",
|
|
1943
|
+
componentId: "sc-11ov82j-0"
|
|
1944
|
+
})(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), Text = react.forwardRef(function(props, ref) {
|
|
1917
1945
|
const $ = reactCompilerRuntime.c(22);
|
|
1918
1946
|
let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
1919
1947
|
$[0] !== props ? ({
|
|
@@ -1930,13 +1958,13 @@ const Root$x = styledComponents.styled.div(responsiveTextFont, responsiveTextAli
|
|
|
1930
1958
|
let children = childrenProp;
|
|
1931
1959
|
if (textOverflow === "ellipsis") {
|
|
1932
1960
|
let t32;
|
|
1933
|
-
$[9] !== children ? (t32 = /* @__PURE__ */ jsxRuntime.jsx(SpanWithTextOverflow
|
|
1961
|
+
$[9] !== children ? (t32 = /* @__PURE__ */ jsxRuntime.jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t32) : t32 = $[10], children = t32;
|
|
1934
1962
|
}
|
|
1935
1963
|
const t3 = useArrayProp(align), t4 = useArrayProp(size2);
|
|
1936
1964
|
let t5;
|
|
1937
1965
|
$[11] !== children ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
|
|
1938
1966
|
let t6;
|
|
1939
|
-
return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1967
|
+
return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledText, { "data-ui": "Text", ...restProps, $accent: accent, $align: t3, $muted: muted, ref, $size: t4, $weight: weight, children: t5 }), $[13] = accent, $[14] = muted, $[15] = ref, $[16] = restProps, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = weight, $[21] = t6) : t6 = $[21], t6;
|
|
1940
1968
|
});
|
|
1941
1969
|
Text.displayName = "ForwardRef(Text)";
|
|
1942
1970
|
function badgeStyle(props) {
|
|
@@ -1954,7 +1982,10 @@ function badgeStyle(props) {
|
|
|
1954
1982
|
}
|
|
1955
1983
|
};
|
|
1956
1984
|
}
|
|
1957
|
-
const
|
|
1985
|
+
const StyledBadge = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
1986
|
+
displayName: "StyledBadge",
|
|
1987
|
+
componentId: "sc-5u140l-0"
|
|
1988
|
+
})(responsiveRadiusStyle, badgeStyle), Badge = react.forwardRef(function(props, ref) {
|
|
1958
1989
|
const $ = reactCompilerRuntime.c(17);
|
|
1959
1990
|
let children, restProps, t0, t1, t2, t3;
|
|
1960
1991
|
if ($[0] !== props) {
|
|
@@ -1974,10 +2005,13 @@ const Root$w = styledComponents.styled(Box)(responsiveRadiusStyle, badgeStyle),
|
|
|
1974
2005
|
let t6;
|
|
1975
2006
|
$[7] !== children || $[8] !== fontSize2 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children }), $[7] = children, $[8] = fontSize2, $[9] = t6) : t6 = $[9];
|
|
1976
2007
|
let t7;
|
|
1977
|
-
return $[10] !== ref || $[11] !== restProps || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== tone ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2008
|
+
return $[10] !== ref || $[11] !== restProps || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== tone ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(StyledBadge, { "data-ui": "Badge", ...restProps, $tone: tone, $radius: t4, padding: t5, ref, children: t6 }), $[10] = ref, $[11] = restProps, $[12] = t4, $[13] = t5, $[14] = t6, $[15] = tone, $[16] = t7) : t7 = $[16], t7;
|
|
1978
2009
|
});
|
|
1979
2010
|
Badge.displayName = "ForwardRef(Badge)";
|
|
1980
|
-
const
|
|
2011
|
+
const StyledFlex = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2012
|
+
displayName: "StyledFlex",
|
|
2013
|
+
componentId: "sc-oxesg3-0"
|
|
2014
|
+
})(flexItemStyle, responsiveFlexStyle), Flex = react.forwardRef(function(props, ref) {
|
|
1981
2015
|
const $ = reactCompilerRuntime.c(17);
|
|
1982
2016
|
let align, as, gap, justify, restProps, t0, wrap;
|
|
1983
2017
|
$[0] !== props ? ({
|
|
@@ -1991,7 +2025,7 @@ const Root$v = styledComponents.styled(Box)(flexItemStyle, responsiveFlexStyle),
|
|
|
1991
2025
|
} = 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]);
|
|
1992
2026
|
const direction = t0 === void 0 ? "row" : t0, t1 = useArrayProp(align), t2 = useArrayProp(direction), t3 = useArrayProp(gap), t4 = useArrayProp(justify), t5 = useArrayProp(wrap);
|
|
1993
2027
|
let t6;
|
|
1994
|
-
return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2028
|
+
return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledFlex, { "data-ui": "Flex", ...restProps, $align: t1, $direction: t2, $gap: t3, $justify: t4, $wrap: t5, forwardedAs: as, ref }), $[8] = as, $[9] = ref, $[10] = restProps, $[11] = t1, $[12] = t2, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
|
|
1995
2029
|
});
|
|
1996
2030
|
Flex.displayName = "ForwardRef(Flex)";
|
|
1997
2031
|
const rotate$1 = styledComponents.keyframes`
|
|
@@ -2002,16 +2036,15 @@ const rotate$1 = styledComponents.keyframes`
|
|
|
2002
2036
|
to {
|
|
2003
2037
|
transform: rotate(360deg);
|
|
2004
2038
|
}
|
|
2005
|
-
`,
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
`, Spinner = react.forwardRef(function(props, ref) {
|
|
2039
|
+
`, StyledSpinner = styledComponents.styled(Text).withConfig({
|
|
2040
|
+
displayName: "StyledSpinner",
|
|
2041
|
+
componentId: "sc-124hnd0-0"
|
|
2042
|
+
})`& > span > svg{animation:${rotate$1} 500ms linear infinite;}`, Spinner = react.forwardRef(function(props, ref) {
|
|
2010
2043
|
const $ = reactCompilerRuntime.c(4);
|
|
2011
2044
|
let t0;
|
|
2012
2045
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsxRuntime.jsx(icons.SpinnerIcon, {}), $[0] = t0) : t0 = $[0];
|
|
2013
2046
|
let t1;
|
|
2014
|
-
return $[1] !== props || $[2] !== ref ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2047
|
+
return $[1] !== props || $[2] !== ref ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(StyledSpinner, { "data-ui": "Spinner", ...props, ref, children: t0 }), $[1] = props, $[2] = ref, $[3] = t1) : t1 = $[3], t1;
|
|
2015
2048
|
});
|
|
2016
2049
|
Spinner.displayName = "ForwardRef(Spinner)";
|
|
2017
2050
|
function _cardColorStyle(base, color, checkered = !1) {
|
|
@@ -2182,20 +2215,13 @@ function buttonColorStyles(props) {
|
|
|
2182
2215
|
}
|
|
2183
2216
|
}, style?.button?.root].filter(Boolean);
|
|
2184
2217
|
}
|
|
2185
|
-
const
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
align-items: center;
|
|
2193
|
-
justify-content: center;
|
|
2194
|
-
background-color: var(--card-bg-color);
|
|
2195
|
-
border-radius: inherit;
|
|
2196
|
-
z-index: 1;
|
|
2197
|
-
box-shadow: inherit;
|
|
2198
|
-
`, Button = react.forwardRef(function(props, ref) {
|
|
2218
|
+
const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
2219
|
+
displayName: "StyledButton",
|
|
2220
|
+
componentId: "sc-aaekt4-0"
|
|
2221
|
+
})(responsiveRadiusStyle, buttonBaseStyles, buttonColorStyles), LoadingBox = styledComponents.styled.div.withConfig({
|
|
2222
|
+
displayName: "LoadingBox",
|
|
2223
|
+
componentId: "sc-aaekt4-1"
|
|
2224
|
+
})`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 = react.forwardRef(function(props, ref) {
|
|
2199
2225
|
const $ = reactCompilerRuntime.c(64);
|
|
2200
2226
|
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, width;
|
|
2201
2227
|
$[0] !== props ? ({
|
|
@@ -2256,7 +2282,7 @@ const Root$t = styledComponents.styled.button(responsiveRadiusStyle, buttonBaseS
|
|
|
2256
2282
|
let t16;
|
|
2257
2283
|
$[47] !== boxProps || $[48] !== children ? (t16 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children }), $[47] = boxProps, $[48] = children, $[49] = t16) : t16 = $[49];
|
|
2258
2284
|
let t17;
|
|
2259
|
-
return $[50] !== mode || $[51] !== radius || $[52] !== ref || $[53] !== restProps || $[54] !== t11 || $[55] !== t12 || $[56] !== t13 || $[57] !== t14 || $[58] !== t15 || $[59] !== t16 || $[60] !== tone || $[61] !== type || $[62] !== width ? (t17 = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2285
|
+
return $[50] !== mode || $[51] !== radius || $[52] !== ref || $[53] !== restProps || $[54] !== t11 || $[55] !== t12 || $[56] !== t13 || $[57] !== t14 || $[58] !== t15 || $[59] !== t16 || $[60] !== tone || $[61] !== type || $[62] !== 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: [
|
|
2260
2286
|
t14,
|
|
2261
2287
|
t15,
|
|
2262
2288
|
t16
|
|
@@ -2411,7 +2437,10 @@ function cardColorStyle(props) {
|
|
|
2411
2437
|
${style?.card?.root}
|
|
2412
2438
|
`;
|
|
2413
2439
|
}
|
|
2414
|
-
const
|
|
2440
|
+
const StyledCard = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2441
|
+
displayName: "StyledCard",
|
|
2442
|
+
componentId: "sc-osnro2-0"
|
|
2443
|
+
})(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = react.forwardRef(function(props, ref) {
|
|
2415
2444
|
const $ = reactCompilerRuntime.c(42);
|
|
2416
2445
|
let asProp, border2, borderBottom2, borderLeft2, borderRight2, borderTop2, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
|
|
2417
2446
|
$[0] !== props ? ({
|
|
@@ -2434,7 +2463,7 @@ const Root$s = styledComponents.styled(Box)(responsiveBorderStyle, responsiveRad
|
|
|
2434
2463
|
} = 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]);
|
|
2435
2464
|
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 = ReactIs.isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, t6 = useArrayProp(border2), t7 = useArrayProp(borderTop2), t8 = useArrayProp(borderRight2), t9 = useArrayProp(borderBottom2), t10 = useArrayProp(borderLeft2), t11 = useArrayProp(radius), t12 = useArrayProp(shadow), t13 = checkered ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0;
|
|
2436
2465
|
let t16;
|
|
2437
|
-
$[17] !== as || $[18] !== checkered || $[19] !== focusRing || $[20] !== muted || $[21] !== ref || $[22] !== restProps || $[23] !== rootTheme.scheme || $[24] !== selected || $[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t13 || $[29] !== t14 || $[30] !== t15 || $[31] !== t4 || $[32] !== t6 || $[33] !== t7 || $[34] !== t8 || $[35] !== t9 || $[36] !== tone ? (t16 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2466
|
+
$[17] !== as || $[18] !== checkered || $[19] !== focusRing || $[20] !== muted || $[21] !== ref || $[22] !== restProps || $[23] !== rootTheme.scheme || $[24] !== selected || $[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t13 || $[29] !== t14 || $[30] !== t15 || $[31] !== t4 || $[32] !== t6 || $[33] !== t7 || $[34] !== t8 || $[35] !== t9 || $[36] !== tone ? (t16 = /* @__PURE__ */ jsxRuntime.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 }), $[17] = as, $[18] = checkered, $[19] = focusRing, $[20] = muted, $[21] = ref, $[22] = restProps, $[23] = rootTheme.scheme, $[24] = selected, $[25] = t10, $[26] = t11, $[27] = t12, $[28] = t13, $[29] = t14, $[30] = t15, $[31] = t4, $[32] = t6, $[33] = t7, $[34] = t8, $[35] = t9, $[36] = tone, $[37] = t16) : t16 = $[37];
|
|
2438
2467
|
let t17;
|
|
2439
2468
|
return $[38] !== scheme || $[39] !== t16 || $[40] !== tone ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[38] = scheme, $[39] = t16, $[40] = tone, $[41] = t17) : t17 = $[41], t17;
|
|
2440
2469
|
});
|
|
@@ -2577,7 +2606,13 @@ function inputElementStyles(props) {
|
|
|
2577
2606
|
}
|
|
2578
2607
|
`;
|
|
2579
2608
|
}
|
|
2580
|
-
const
|
|
2609
|
+
const StyledCheckbox = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
2610
|
+
displayName: "StyledCheckbox",
|
|
2611
|
+
componentId: "sc-1l5mt2l-0"
|
|
2612
|
+
})(checkboxBaseStyles), Input$5 = /* @__PURE__ */ styledComponents.styled.input.withConfig({
|
|
2613
|
+
displayName: "Input",
|
|
2614
|
+
componentId: "sc-1l5mt2l-1"
|
|
2615
|
+
})(inputElementStyles), Checkbox = react.forwardRef(function(props, forwardedRef) {
|
|
2581
2616
|
const $ = reactCompilerRuntime.c(25);
|
|
2582
2617
|
let checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
|
|
2583
2618
|
$[0] !== props ? ({
|
|
@@ -2606,7 +2641,7 @@ const Root$r = styledComponents.styled.div(checkboxBaseStyles), Input$5 = styled
|
|
|
2606
2641
|
/* @__PURE__ */ jsxRuntime.jsx(icons.RemoveIcon, {})
|
|
2607
2642
|
] }), $[20] = t7) : t7 = $[20];
|
|
2608
2643
|
let t8;
|
|
2609
|
-
return $[21] !== className || $[22] !== style || $[23] !== t6 ? (t8 = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2644
|
+
return $[21] !== className || $[22] !== style || $[23] !== t6 ? (t8 = /* @__PURE__ */ jsxRuntime.jsxs(StyledCheckbox, { className, "data-ui": "Checkbox", style, children: [
|
|
2610
2645
|
t6,
|
|
2611
2646
|
t7
|
|
2612
2647
|
] }), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8) : t8 = $[24], t8;
|
|
@@ -2760,7 +2795,10 @@ function codeBaseStyle() {
|
|
|
2760
2795
|
}
|
|
2761
2796
|
`;
|
|
2762
2797
|
}
|
|
2763
|
-
const
|
|
2798
|
+
const StyledCode = /* @__PURE__ */ styledComponents.styled.pre.withConfig({
|
|
2799
|
+
displayName: "StyledCode",
|
|
2800
|
+
componentId: "sc-4dymyn-0"
|
|
2801
|
+
})(codeBaseStyle, responsiveCodeFontStyle), Code = react.forwardRef(function(props, ref) {
|
|
2764
2802
|
const $ = reactCompilerRuntime.c(23);
|
|
2765
2803
|
let children, languageProp, restProps, t0, weight;
|
|
2766
2804
|
$[0] !== props ? ({
|
|
@@ -2779,7 +2817,7 @@ const Root$q = styledComponents.styled.pre(codeBaseStyle, responsiveCodeFontStyl
|
|
|
2779
2817
|
let t4;
|
|
2780
2818
|
$[12] !== children || $[13] !== language || $[14] !== registered ? (t4 = language && registered && /* @__PURE__ */ jsxRuntime.jsx(Refractor__default.default, { inline: !0, language, value: String(children) }), $[12] = children, $[13] = language, $[14] = registered, $[15] = t4) : t4 = $[15];
|
|
2781
2819
|
let t5;
|
|
2782
|
-
return $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== weight ? (t5 = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2820
|
+
return $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== weight ? (t5 = /* @__PURE__ */ jsxRuntime.jsxs(StyledCode, { "data-ui": "Code", ...restProps, $size: t2, $weight: weight, ref, children: [
|
|
2783
2821
|
t3,
|
|
2784
2822
|
t4
|
|
2785
2823
|
] }), $[16] = ref, $[17] = restProps, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = weight, $[22] = t5) : t5 = $[22], t5;
|
|
@@ -2801,7 +2839,10 @@ function responsiveContainerWidthStyle(props) {
|
|
|
2801
2839
|
maxWidth: val === "auto" ? "none" : rem(container[val])
|
|
2802
2840
|
}));
|
|
2803
2841
|
}
|
|
2804
|
-
const
|
|
2842
|
+
const StyledContainer = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2843
|
+
displayName: "StyledContainer",
|
|
2844
|
+
componentId: "sc-wyroop-0"
|
|
2845
|
+
})(containerBaseStyle, responsiveContainerWidthStyle), Container = react.forwardRef(function(props, ref) {
|
|
2805
2846
|
const $ = reactCompilerRuntime.c(9);
|
|
2806
2847
|
let as, restProps, t0;
|
|
2807
2848
|
$[0] !== props ? ({
|
|
@@ -2811,10 +2852,13 @@ const Root$p = styledComponents.styled(Box)(containerBaseStyle, responsiveContai
|
|
|
2811
2852
|
} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0) : (as = $[1], restProps = $[2], t0 = $[3]);
|
|
2812
2853
|
const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
2813
2854
|
let t2;
|
|
2814
|
-
return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2855
|
+
return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledContainer, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t1, $[8] = t2) : t2 = $[8], t2;
|
|
2815
2856
|
});
|
|
2816
2857
|
Container.displayName = "ForwardRef(Container)";
|
|
2817
|
-
const
|
|
2858
|
+
const StyledGrid = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2859
|
+
displayName: "StyledGrid",
|
|
2860
|
+
componentId: "sc-v8t8oz-0"
|
|
2861
|
+
})(responsiveGridStyle), Grid = react.forwardRef(function(props, ref) {
|
|
2818
2862
|
const $ = reactCompilerRuntime.c(26);
|
|
2819
2863
|
let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, restProps, rows;
|
|
2820
2864
|
$[0] !== props ? ({
|
|
@@ -2832,7 +2876,7 @@ const Root$o = styledComponents.styled(Box)(responsiveGridStyle), Grid = react.f
|
|
|
2832
2876
|
} = 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]);
|
|
2833
2877
|
const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(autoRows), t2 = useArrayProp(autoCols), t3 = useArrayProp(autoFlow), t4 = useArrayProp(columns), t5 = useArrayProp(gap), t6 = useArrayProp(gapX), t7 = useArrayProp(gapY), t8 = useArrayProp(rows);
|
|
2834
2878
|
let t9;
|
|
2835
|
-
return $[12] !== as || $[13] !== children || $[14] !== ref || $[15] !== restProps || $[16] !== t0 || $[17] !== t1 || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2879
|
+
return $[12] !== as || $[13] !== children || $[14] !== ref || $[15] !== restProps || $[16] !== t0 || $[17] !== t1 || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.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 }), $[12] = as, $[13] = children, $[14] = ref, $[15] = restProps, $[16] = t0, $[17] = t1, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = t6, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
|
|
2836
2880
|
});
|
|
2837
2881
|
Grid.displayName = "ForwardRef(Grid)";
|
|
2838
2882
|
function headingBaseStyle(props) {
|
|
@@ -2894,13 +2938,10 @@ function headingBaseStyle(props) {
|
|
|
2894
2938
|
}
|
|
2895
2939
|
`;
|
|
2896
2940
|
}
|
|
2897
|
-
const
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
overflow: hidden;
|
|
2902
|
-
overflow: clip;
|
|
2903
|
-
`, Heading = react.forwardRef(function(props, ref) {
|
|
2941
|
+
const StyledHeading = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
2942
|
+
displayName: "StyledHeading",
|
|
2943
|
+
componentId: "sc-137lwim-0"
|
|
2944
|
+
})(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), Heading = react.forwardRef(function(props, ref) {
|
|
2904
2945
|
const $ = reactCompilerRuntime.c(22);
|
|
2905
2946
|
let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
2906
2947
|
$[0] !== props ? ({
|
|
@@ -2923,7 +2964,7 @@ const Root$n = styledComponents.styled.div(headingBaseStyle, responsiveTextAlign
|
|
|
2923
2964
|
let t5;
|
|
2924
2965
|
$[11] !== children ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
|
|
2925
2966
|
let t6;
|
|
2926
|
-
return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2967
|
+
return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledHeading, { "data-ui": "Heading", ...restProps, $accent: accent, $align: t3, $muted: muted, $size: t4, $weight: weight, ref, children: t5 }), $[13] = accent, $[14] = muted, $[15] = ref, $[16] = restProps, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = weight, $[21] = t6) : t6 = $[21], t6;
|
|
2927
2968
|
});
|
|
2928
2969
|
Heading.displayName = "ForwardRef(Heading)";
|
|
2929
2970
|
function inlineBaseStyle() {
|
|
@@ -2953,7 +2994,10 @@ function inlineSpaceStyle(props) {
|
|
|
2953
2994
|
};
|
|
2954
2995
|
});
|
|
2955
2996
|
}
|
|
2956
|
-
const
|
|
2997
|
+
const StyledInline = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2998
|
+
displayName: "StyledInline",
|
|
2999
|
+
componentId: "sc-1pkiy6j-0"
|
|
3000
|
+
})(inlineBaseStyle, inlineSpaceStyle), Inline = react.forwardRef(function(props, ref) {
|
|
2957
3001
|
const $ = reactCompilerRuntime.c(12);
|
|
2958
3002
|
let as, childrenProp, restProps, space;
|
|
2959
3003
|
$[0] !== props ? ({
|
|
@@ -2966,7 +3010,7 @@ const Root$m = styledComponents.styled(Box)(inlineBaseStyle, inlineSpaceStyle),
|
|
|
2966
3010
|
$[5] !== childrenProp ? (t1 = react.Children.map(childrenProp, _temp$6), $[5] = childrenProp, $[6] = t1) : t1 = $[6], t0 = t1;
|
|
2967
3011
|
const children = t0, t2 = useArrayProp(space);
|
|
2968
3012
|
let t3;
|
|
2969
|
-
return $[7] !== as || $[8] !== children || $[9] !== restProps || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3013
|
+
return $[7] !== as || $[8] !== children || $[9] !== restProps || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(StyledInline, { "data-ui": "Inline", ...restProps, $space: t2, forwardedAs: as, ref, children }), $[7] = as, $[8] = children, $[9] = restProps, $[10] = t2, $[11] = t3) : t3 = $[11], t3;
|
|
2970
3014
|
});
|
|
2971
3015
|
Inline.displayName = "ForwardRef(Inline)";
|
|
2972
3016
|
function _temp$6(child) {
|
|
@@ -2989,7 +3033,10 @@ function kbdStyle() {
|
|
|
2989
3033
|
}
|
|
2990
3034
|
`;
|
|
2991
3035
|
}
|
|
2992
|
-
const
|
|
3036
|
+
const StyledKBD = /* @__PURE__ */ styledComponents.styled.kbd.withConfig({
|
|
3037
|
+
displayName: "StyledKBD",
|
|
3038
|
+
componentId: "sc-1w7yd8w-0"
|
|
3039
|
+
})(responsiveRadiusStyle, kbdStyle), KBD = react.forwardRef(function(props, ref) {
|
|
2993
3040
|
const $ = reactCompilerRuntime.c(17);
|
|
2994
3041
|
let children, restProps, t0, t1, t2;
|
|
2995
3042
|
$[0] !== props ? ({
|
|
@@ -3005,7 +3052,7 @@ const Root$l = styledComponents.styled.kbd(responsiveRadiusStyle, kbdStyle), KBD
|
|
|
3005
3052
|
let t5;
|
|
3006
3053
|
$[9] !== padding || $[10] !== t4 ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", padding, children: t4 }), $[9] = padding, $[10] = t4, $[11] = t5) : t5 = $[11];
|
|
3007
3054
|
let t6;
|
|
3008
|
-
return $[12] !== ref || $[13] !== restProps || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3055
|
+
return $[12] !== ref || $[13] !== restProps || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledKBD, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[12] = ref, $[13] = restProps, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
|
|
3009
3056
|
});
|
|
3010
3057
|
KBD.displayName = "ForwardRef(KBD)";
|
|
3011
3058
|
const origin = {
|
|
@@ -3075,7 +3122,10 @@ function getRoundedCommands(points) {
|
|
|
3075
3122
|
function compileCommands(cmds) {
|
|
3076
3123
|
return cmds.map((n, idx) => n.type === "point" ? `${idx === 0 ? "M" : "L"} ${n.x} ${n.y}` : n.type === "curve" ? `C ${n.startControl.x} ${n.startControl.y} ${n.endControl.x} ${n.endControl.y} ${n.curveEnd.x} ${n.curveEnd.y}` : "").join(" ");
|
|
3077
3124
|
}
|
|
3078
|
-
const
|
|
3125
|
+
const StyledArrow = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
3126
|
+
displayName: "StyledArrow",
|
|
3127
|
+
componentId: "sc-12vzy6c-0"
|
|
3128
|
+
})(({
|
|
3079
3129
|
$w: w
|
|
3080
3130
|
}) => styledComponents.css`
|
|
3081
3131
|
position: absolute;
|
|
@@ -3123,11 +3173,13 @@ const Root$k = styledComponents.styled.div(({
|
|
|
3123
3173
|
transform: rotate(180deg);
|
|
3124
3174
|
}
|
|
3125
3175
|
}
|
|
3126
|
-
`), StrokePath = styledComponents.styled.path
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3176
|
+
`), StrokePath = styledComponents.styled.path.withConfig({
|
|
3177
|
+
displayName: "StrokePath",
|
|
3178
|
+
componentId: "sc-12vzy6c-1"
|
|
3179
|
+
})`stroke:var(--card-shadow-outline-color);`, ShapePath = styledComponents.styled.path.withConfig({
|
|
3180
|
+
displayName: "ShapePath",
|
|
3181
|
+
componentId: "sc-12vzy6c-2"
|
|
3182
|
+
})`fill:var(--card-bg-color);`, Arrow = react.forwardRef(function(props, ref) {
|
|
3131
3183
|
const $ = reactCompilerRuntime.c(24);
|
|
3132
3184
|
let h, restProps, t0, w;
|
|
3133
3185
|
$[0] !== props ? ({
|
|
@@ -3171,7 +3223,7 @@ const Root$k = styledComponents.styled.div(({
|
|
|
3171
3223
|
t5
|
|
3172
3224
|
] }), $[13] = t1, $[14] = t2, $[15] = t4, $[16] = t5, $[17] = w, $[18] = t6) : t6 = $[18];
|
|
3173
3225
|
let t7;
|
|
3174
|
-
return $[19] !== ref || $[20] !== restProps || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3226
|
+
return $[19] !== ref || $[20] !== restProps || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(StyledArrow, { ...restProps, $w: w, ref, children: t6 }), $[19] = ref, $[20] = restProps, $[21] = t6, $[22] = w, $[23] = t7) : t7 = $[23], t7;
|
|
3175
3227
|
});
|
|
3176
3228
|
Arrow.displayName = "ForwardRef(Arrow)";
|
|
3177
3229
|
const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);
|
|
@@ -3432,7 +3484,10 @@ function _temp$5(v) {
|
|
|
3432
3484
|
return v + 1;
|
|
3433
3485
|
}
|
|
3434
3486
|
LayerProvider.displayName = "LayerProvider";
|
|
3435
|
-
const
|
|
3487
|
+
const StyledLayer = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
3488
|
+
displayName: "StyledLayer",
|
|
3489
|
+
componentId: "sc-16kojrv-0"
|
|
3490
|
+
})({
|
|
3436
3491
|
position: "relative"
|
|
3437
3492
|
}), LayerChildren = react.forwardRef(function(props, forwardedRef) {
|
|
3438
3493
|
const $ = reactCompilerRuntime.c(22);
|
|
@@ -3469,7 +3524,7 @@ const Root$j = styledComponents.styled.div({
|
|
|
3469
3524
|
zIndex
|
|
3470
3525
|
}, $[14] = style, $[15] = zIndex, $[16] = t5) : t5 = $[16];
|
|
3471
3526
|
let t6;
|
|
3472
|
-
return $[17] !== children || $[18] !== handleFocus || $[19] !== restProps || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3527
|
+
return $[17] !== children || $[18] !== handleFocus || $[19] !== restProps || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledLayer, { ...restProps, "data-ui": "Layer", onFocus: handleFocus, ref, style: t5, children }), $[17] = children, $[18] = handleFocus, $[19] = restProps, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
|
|
3473
3528
|
}), Layer = react.forwardRef(function(props, ref) {
|
|
3474
3529
|
const $ = reactCompilerRuntime.c(11);
|
|
3475
3530
|
let children, restProps, t0;
|
|
@@ -3552,29 +3607,25 @@ function _isEqual(objA, objB) {
|
|
|
3552
3607
|
const keysA = Object.keys(objA), keysB = Object.keys(objB);
|
|
3553
3608
|
return keysA.length !== keysB.length ? !1 : keysA.every((key2) => objA[key2] === objB[key2]);
|
|
3554
3609
|
}
|
|
3555
|
-
const
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
position: absolute;
|
|
3560
|
-
overflow: hidden;
|
|
3561
|
-
overflow: clip;
|
|
3562
|
-
`, SrOnly = react.forwardRef(function(props, ref) {
|
|
3610
|
+
const StyledSrOnly = styledComponents.styled.div.withConfig({
|
|
3611
|
+
displayName: "StyledSrOnly",
|
|
3612
|
+
componentId: "sc-mubr0c-0"
|
|
3613
|
+
})`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`, SrOnly = react.forwardRef(function(props, ref) {
|
|
3563
3614
|
const $ = reactCompilerRuntime.c(4), {
|
|
3564
3615
|
as,
|
|
3565
3616
|
children
|
|
3566
3617
|
} = props;
|
|
3567
3618
|
let t0;
|
|
3568
|
-
return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3619
|
+
return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ jsxRuntime.jsx(StyledSrOnly, { "aria-hidden": !0, as, "data-ui": "SrOnly", ref, children }), $[0] = as, $[1] = children, $[2] = ref, $[3] = t0) : t0 = $[3], t0;
|
|
3569
3620
|
});
|
|
3570
3621
|
SrOnly.displayName = "ForwardRef(SrOnly)";
|
|
3571
|
-
const
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3622
|
+
const StyledVirtualList = styledComponents.styled.div.withConfig({
|
|
3623
|
+
displayName: "StyledVirtualList",
|
|
3624
|
+
componentId: "sc-dlqsj4-0"
|
|
3625
|
+
})`position:relative;`, ItemWrapper = styledComponents.styled.div.withConfig({
|
|
3626
|
+
displayName: "ItemWrapper",
|
|
3627
|
+
componentId: "sc-dlqsj4-1"
|
|
3628
|
+
})`position:absolute;left:0;right:0;`, VirtualList = react.forwardRef(function(props, forwardedRef) {
|
|
3578
3629
|
const $ = reactCompilerRuntime.c(56);
|
|
3579
3630
|
let getItemKey, onChange, renderItem, restProps, t0, t1, t2;
|
|
3580
3631
|
$[0] !== props ? ({
|
|
@@ -3686,7 +3737,7 @@ const Root$h = styledComponents.styled.div`
|
|
|
3686
3737
|
let t14;
|
|
3687
3738
|
$[49] !== children || $[50] !== wrapperStyle ? (t14 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[49] = children, $[50] = wrapperStyle, $[51] = t14) : t14 = $[51];
|
|
3688
3739
|
let t15;
|
|
3689
|
-
return $[52] !== as || $[53] !== restProps || $[54] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3740
|
+
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;
|
|
3690
3741
|
});
|
|
3691
3742
|
VirtualList.displayName = "ForwardRef(VirtualList)";
|
|
3692
3743
|
const DEFAULT_POPOVER_DISTANCE = 4, DEFAULT_POPOVER_PADDING = 4, DEFAULT_POPOVER_ARROW_WIDTH = 19, DEFAULT_POPOVER_ARROW_HEIGHT = 8, DEFAULT_POPOVER_ARROW_RADIUS = 2, DEFAULT_POPOVER_MARGINS = [0, 0, 0, 0], DEFAULT_FALLBACK_PLACEMENTS$1 = {
|
|
@@ -3760,18 +3811,10 @@ function calcMaxWidth(params) {
|
|
|
3760
3811
|
if (!(currentWidth === void 0 && boundaryWidth === void 0))
|
|
3761
3812
|
return Math.min(currentWidth ?? 1 / 0, (boundaryWidth || 1 / 0) - DEFAULT_POPOVER_PADDING * 2);
|
|
3762
3813
|
}
|
|
3763
|
-
const MotionCard$1 = styledComponents.styled(framerMotion.motion.create(Card))
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
flex-direction: column;
|
|
3768
|
-
width: max-content;
|
|
3769
|
-
min-width: min-content;
|
|
3770
|
-
& > * {
|
|
3771
|
-
opacity: var(${POPOVER_MOTION_CONTENT_OPACITY_PROPERTY}, 1);
|
|
3772
|
-
will-change: opacity;
|
|
3773
|
-
}
|
|
3774
|
-
`, PopoverCard = react.memo(react.forwardRef(function(props, ref) {
|
|
3814
|
+
const MotionCard$1 = styledComponents.styled(framerMotion.motion.create(Card)).withConfig({
|
|
3815
|
+
displayName: "MotionCard",
|
|
3816
|
+
componentId: "sc-ihg31s-0"
|
|
3817
|
+
})`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;& > *{opacity:var(${POPOVER_MOTION_CONTENT_OPACITY_PROPERTY},1);will-change:opacity;}`, PopoverCard = react.memo(react.forwardRef(function(props, ref) {
|
|
3775
3818
|
const $ = reactCompilerRuntime.c(60);
|
|
3776
3819
|
let animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
|
|
3777
3820
|
$[0] !== props ? ({
|
|
@@ -4094,7 +4137,13 @@ function inputElementStyle(props) {
|
|
|
4094
4137
|
}
|
|
4095
4138
|
`;
|
|
4096
4139
|
}
|
|
4097
|
-
const
|
|
4140
|
+
const StyledRadio = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
4141
|
+
displayName: "StyledRadio",
|
|
4142
|
+
componentId: "sc-ccrwkf-0"
|
|
4143
|
+
})(radioBaseStyle), Input$4 = /* @__PURE__ */ styledComponents.styled.input.withConfig({
|
|
4144
|
+
displayName: "Input",
|
|
4145
|
+
componentId: "sc-ccrwkf-1"
|
|
4146
|
+
})(inputElementStyle), Radio = react.forwardRef(function(props, forwardedRef) {
|
|
4098
4147
|
const $ = reactCompilerRuntime.c(19);
|
|
4099
4148
|
let className, customValidity, disabled, readOnly, restProps, style;
|
|
4100
4149
|
$[0] !== props ? ({
|
|
@@ -4114,7 +4163,7 @@ const Root$g = styledComponents.styled.div(radioBaseStyle), Input$4 = styledComp
|
|
|
4114
4163
|
let t5;
|
|
4115
4164
|
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", {}), $[14] = t5) : t5 = $[14];
|
|
4116
4165
|
let t6;
|
|
4117
|
-
return $[15] !== className || $[16] !== style || $[17] !== t4 ? (t6 = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4166
|
+
return $[15] !== className || $[16] !== style || $[17] !== t4 ? (t6 = /* @__PURE__ */ jsxRuntime.jsxs(StyledRadio, { className, "data-ui": "Radio", style, children: [
|
|
4118
4167
|
t4,
|
|
4119
4168
|
t5
|
|
4120
4169
|
] }), $[15] = className, $[16] = style, $[17] = t4, $[18] = t6) : t6 = $[18], t6;
|
|
@@ -4262,7 +4311,16 @@ const selectStyle = {
|
|
|
4262
4311
|
root: rootStyle,
|
|
4263
4312
|
input: inputStyle,
|
|
4264
4313
|
iconBox: iconBoxStyle
|
|
4265
|
-
},
|
|
4314
|
+
}, StyledSelect = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
4315
|
+
displayName: "StyledSelect",
|
|
4316
|
+
componentId: "sc-5mxno7-0"
|
|
4317
|
+
})(selectStyle.root), Input$3 = /* @__PURE__ */ styledComponents.styled.select.withConfig({
|
|
4318
|
+
displayName: "Input",
|
|
4319
|
+
componentId: "sc-5mxno7-1"
|
|
4320
|
+
})(selectStyle.input), IconBox = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
4321
|
+
displayName: "IconBox",
|
|
4322
|
+
componentId: "sc-5mxno7-2"
|
|
4323
|
+
})(selectStyle.iconBox), Select = react.forwardRef(function(props, forwardedRef) {
|
|
4266
4324
|
const $ = reactCompilerRuntime.c(29);
|
|
4267
4325
|
let children, customValidity, disabled, readOnly, restProps, t0, t1, t2, t3;
|
|
4268
4326
|
$[0] !== props ? ({
|
|
@@ -4289,7 +4347,7 @@ const selectStyle = {
|
|
|
4289
4347
|
let t14;
|
|
4290
4348
|
$[23] !== padding || $[24] !== t13 ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(IconBox, { padding, children: t13 }), $[23] = padding, $[24] = t13, $[25] = t14) : t14 = $[25];
|
|
4291
4349
|
let t15;
|
|
4292
|
-
return $[26] !== t11 || $[27] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4350
|
+
return $[26] !== t11 || $[27] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(StyledSelect, { "data-ui": "Select", children: [
|
|
4293
4351
|
t11,
|
|
4294
4352
|
t14
|
|
4295
4353
|
] }), $[26] = t11, $[27] = t14, $[28] = t15) : t15 = $[28], t15;
|
|
@@ -4317,7 +4375,10 @@ function responsiveStackSpaceStyle(props) {
|
|
|
4317
4375
|
gridGap: rem(space[spaceIndex])
|
|
4318
4376
|
}));
|
|
4319
4377
|
}
|
|
4320
|
-
const
|
|
4378
|
+
const StyledStack = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
4379
|
+
displayName: "StyledStack",
|
|
4380
|
+
componentId: "sc-8dpfq2-0"
|
|
4381
|
+
})(stackBaseStyle, responsiveStackSpaceStyle), Stack = react.forwardRef(function(props, ref) {
|
|
4321
4382
|
const $ = reactCompilerRuntime.c(10);
|
|
4322
4383
|
let as, restProps, space;
|
|
4323
4384
|
$[0] !== props ? ({
|
|
@@ -4327,7 +4388,7 @@ const Root$e = styledComponents.styled(Box)(stackBaseStyle, responsiveStackSpace
|
|
|
4327
4388
|
} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = space) : (as = $[1], restProps = $[2], space = $[3]);
|
|
4328
4389
|
const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(space);
|
|
4329
4390
|
let t2;
|
|
4330
|
-
return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t0 || $[8] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
4391
|
+
return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t0 || $[8] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledStack, { "data-as": t0, "data-ui": "Stack", ...restProps, $space: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2) : t2 = $[9], t2;
|
|
4331
4392
|
});
|
|
4332
4393
|
Stack.displayName = "ForwardRef(Stack)";
|
|
4333
4394
|
function switchBaseStyles() {
|
|
@@ -4483,7 +4544,22 @@ function switchThumbStyles(props) {
|
|
|
4483
4544
|
`}
|
|
4484
4545
|
`;
|
|
4485
4546
|
}
|
|
4486
|
-
const
|
|
4547
|
+
const StyledSwitch = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
4548
|
+
displayName: "StyledSwitch",
|
|
4549
|
+
componentId: "sc-dw1foe-0"
|
|
4550
|
+
})(switchBaseStyles), Input$2 = /* @__PURE__ */ styledComponents.styled.input.withConfig({
|
|
4551
|
+
displayName: "Input",
|
|
4552
|
+
componentId: "sc-dw1foe-1"
|
|
4553
|
+
})(switchInputStyles), Representation = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
4554
|
+
displayName: "Representation",
|
|
4555
|
+
componentId: "sc-dw1foe-2"
|
|
4556
|
+
})(switchRepresentationStyles), Track = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
4557
|
+
displayName: "Track",
|
|
4558
|
+
componentId: "sc-dw1foe-3"
|
|
4559
|
+
})(switchTrackStyles), Thumb = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
4560
|
+
displayName: "Thumb",
|
|
4561
|
+
componentId: "sc-dw1foe-4"
|
|
4562
|
+
})(switchThumbStyles), Switch = react.forwardRef(function(props, forwardedRef) {
|
|
4487
4563
|
const $ = reactCompilerRuntime.c(26);
|
|
4488
4564
|
let checked, className, disabled, indeterminate, readOnly, restProps, style;
|
|
4489
4565
|
$[0] !== props ? ({
|
|
@@ -4513,18 +4589,25 @@ const Root$d = styledComponents.styled.span(switchBaseStyles), Input$2 = styledC
|
|
|
4513
4589
|
/* @__PURE__ */ jsxRuntime.jsx(Thumb, { $checked: checked, $indeterminate: indeterminate })
|
|
4514
4590
|
] }), $[18] = checked, $[19] = indeterminate, $[20] = t8) : t8 = $[20];
|
|
4515
4591
|
let t9;
|
|
4516
|
-
return $[21] !== className || $[22] !== style || $[23] !== t6 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4592
|
+
return $[21] !== className || $[22] !== style || $[23] !== t6 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsxs(StyledSwitch, { className, "data-ui": "Switch", style, children: [
|
|
4517
4593
|
t6,
|
|
4518
4594
|
t8
|
|
4519
4595
|
] }), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
|
|
4520
4596
|
});
|
|
4521
4597
|
Switch.displayName = "ForwardRef(Switch)";
|
|
4522
|
-
const
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4598
|
+
const StyledTextArea = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
4599
|
+
displayName: "StyledTextArea",
|
|
4600
|
+
componentId: "sc-1d6h1o8-0"
|
|
4601
|
+
})(textInputRootStyle), InputRoot$1 = styledComponents.styled.span.withConfig({
|
|
4602
|
+
displayName: "InputRoot",
|
|
4603
|
+
componentId: "sc-1d6h1o8-1"
|
|
4604
|
+
})`flex:1;min-width:0;display:block;position:relative;`, Input$1 = /* @__PURE__ */ styledComponents.styled.textarea.withConfig({
|
|
4605
|
+
displayName: "Input",
|
|
4606
|
+
componentId: "sc-1d6h1o8-2"
|
|
4607
|
+
})(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation$1 = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
4608
|
+
displayName: "Presentation",
|
|
4609
|
+
componentId: "sc-1d6h1o8-3"
|
|
4610
|
+
})(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = react.forwardRef(function(props, forwardedRef) {
|
|
4528
4611
|
const $ = reactCompilerRuntime.c(29);
|
|
4529
4612
|
let __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
|
|
4530
4613
|
$[0] !== props ? ({
|
|
@@ -4548,7 +4631,7 @@ const Root$c = styledComponents.styled.span(textInputRootStyle), InputRoot$1 = s
|
|
|
4548
4631
|
let t15;
|
|
4549
4632
|
$[20] !== __unstable_disableFocusRing || $[21] !== rootTheme.scheme || $[22] !== rootTheme.tone || $[23] !== t13 || $[24] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.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 }), $[20] = __unstable_disableFocusRing, $[21] = rootTheme.scheme, $[22] = rootTheme.tone, $[23] = t13, $[24] = t14, $[25] = t15) : t15 = $[25];
|
|
4550
4633
|
let t16;
|
|
4551
|
-
return $[26] !== t12 || $[27] !== t15 ? (t16 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
4634
|
+
return $[26] !== t12 || $[27] !== t15 ? (t16 = /* @__PURE__ */ jsxRuntime.jsx(StyledTextArea, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxRuntime.jsxs(InputRoot$1, { children: [
|
|
4552
4635
|
t12,
|
|
4553
4636
|
t15
|
|
4554
4637
|
] }) }), $[26] = t12, $[27] = t15, $[28] = t16) : t16 = $[28], t16;
|
|
@@ -4556,47 +4639,43 @@ const Root$c = styledComponents.styled.span(textInputRootStyle), InputRoot$1 = s
|
|
|
4556
4639
|
TextArea.displayName = "ForwardRef(TextArea)";
|
|
4557
4640
|
const CLEAR_BUTTON_BOX_STYLE = {
|
|
4558
4641
|
zIndex: 2
|
|
4559
|
-
},
|
|
4642
|
+
}, StyledTextInput = /* @__PURE__ */ styledComponents.styled(Card).attrs({
|
|
4560
4643
|
forwardedAs: "span"
|
|
4561
|
-
})(
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4644
|
+
}).withConfig({
|
|
4645
|
+
displayName: "StyledTextInput",
|
|
4646
|
+
componentId: "sc-h62wco-0"
|
|
4647
|
+
})(textInputRootStyle), InputRoot = styledComponents.styled.span.withConfig({
|
|
4648
|
+
displayName: "InputRoot",
|
|
4649
|
+
componentId: "sc-h62wco-1"
|
|
4650
|
+
})`flex:1;min-width:0;display:block;position:relative;`, Prefix = styledComponents.styled(Card).attrs({
|
|
4567
4651
|
forwardedAs: "span"
|
|
4568
|
-
})
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
& > span {
|
|
4573
|
-
display: block;
|
|
4574
|
-
margin: -1px;
|
|
4575
|
-
}
|
|
4576
|
-
`, Suffix = styledComponents.styled(Card).attrs({
|
|
4652
|
+
}).withConfig({
|
|
4653
|
+
displayName: "Prefix",
|
|
4654
|
+
componentId: "sc-h62wco-2"
|
|
4655
|
+
})`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`, Suffix = styledComponents.styled(Card).attrs({
|
|
4577
4656
|
forwardedAs: "span"
|
|
4578
|
-
})
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4657
|
+
}).withConfig({
|
|
4658
|
+
displayName: "Suffix",
|
|
4659
|
+
componentId: "sc-h62wco-3"
|
|
4660
|
+
})`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`, Input = /* @__PURE__ */ styledComponents.styled.input.withConfig({
|
|
4661
|
+
displayName: "Input",
|
|
4662
|
+
componentId: "sc-h62wco-4"
|
|
4663
|
+
})(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
4664
|
+
displayName: "Presentation",
|
|
4665
|
+
componentId: "sc-h62wco-5"
|
|
4666
|
+
})(responsiveRadiusStyle, textInputRepresentationStyle), LeftBox = styledComponents.styled(Box).withConfig({
|
|
4667
|
+
displayName: "LeftBox",
|
|
4668
|
+
componentId: "sc-h62wco-6"
|
|
4669
|
+
})`position:absolute;top:0;left:0;`, RightBox = styledComponents.styled(Box).withConfig({
|
|
4670
|
+
displayName: "RightBox",
|
|
4671
|
+
componentId: "sc-h62wco-7"
|
|
4672
|
+
})`position:absolute;top:0;right:0;`, RightCard = styledComponents.styled(Card).withConfig({
|
|
4673
|
+
displayName: "RightCard",
|
|
4674
|
+
componentId: "sc-h62wco-8"
|
|
4675
|
+
})`background-color:transparent;position:absolute;top:0;right:0;`, TextInputClearButton = /* @__PURE__ */ styledComponents.styled(Button).withConfig({
|
|
4676
|
+
displayName: "TextInputClearButton",
|
|
4677
|
+
componentId: "sc-h62wco-9"
|
|
4678
|
+
})({
|
|
4600
4679
|
"&:not([hidden])": {
|
|
4601
4680
|
display: "block"
|
|
4602
4681
|
}
|
|
@@ -4677,7 +4756,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4677
4756
|
clearButtonNode
|
|
4678
4757
|
] }), $[75] = clearButtonNode, $[76] = presentationNode, $[77] = t26, $[78] = t27) : t27 = $[78];
|
|
4679
4758
|
let t28;
|
|
4680
|
-
return $[79] !== prefixNode || $[80] !== rootTheme.tone || $[81] !== suffixNode || $[82] !== t27 ? (t28 = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4759
|
+
return $[79] !== prefixNode || $[80] !== rootTheme.tone || $[81] !== suffixNode || $[82] !== t27 ? (t28 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTextInput, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
|
|
4681
4760
|
prefixNode,
|
|
4682
4761
|
t27,
|
|
4683
4762
|
suffixNode
|
|
@@ -4721,12 +4800,10 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
4721
4800
|
right: ["right-end", "right-start", "left", "top", "bottom"],
|
|
4722
4801
|
"right-start": ["right", "right-end", "left-start", "top-start", "bottom-start"],
|
|
4723
4802
|
"right-end": ["right", "right-start", "left-end", "top-end", "bottom-end"]
|
|
4724
|
-
}, MotionCard = styledComponents.styled(framerMotion.motion.create(Card))
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
}
|
|
4729
|
-
`, TooltipCard = react.memo(react.forwardRef(function(props, ref) {
|
|
4803
|
+
}, MotionCard = styledComponents.styled(framerMotion.motion.create(Card)).withConfig({
|
|
4804
|
+
displayName: "MotionCard",
|
|
4805
|
+
componentId: "sc-1xn138w-0"
|
|
4806
|
+
})`& > *{opacity:var(${POPOVER_MOTION_CONTENT_OPACITY_PROPERTY},1);will-change:opacity;}`, TooltipCard = react.memo(react.forwardRef(function(props, ref) {
|
|
4730
4807
|
const $ = reactCompilerRuntime.c(42);
|
|
4731
4808
|
let animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
|
|
4732
4809
|
$[0] !== props ? ({
|
|
@@ -4802,9 +4879,10 @@ function TooltipDelayGroupProvider(props) {
|
|
|
4802
4879
|
return $[7] !== children || $[8] !== value ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(TooltipDelayGroupContext.Provider, { value, children }), $[7] = children, $[8] = value, $[9] = t3) : t3 = $[9], t3;
|
|
4803
4880
|
}
|
|
4804
4881
|
TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
|
|
4805
|
-
const
|
|
4806
|
-
|
|
4807
|
-
|
|
4882
|
+
const StyledTooltip = styledComponents.styled(Layer).withConfig({
|
|
4883
|
+
displayName: "StyledTooltip",
|
|
4884
|
+
componentId: "sc-13f2zvh-0"
|
|
4885
|
+
})`pointer-events:none;`, Tooltip = react.forwardRef(function(props, forwardedRef) {
|
|
4808
4886
|
const boundaryElementContext = useBoundaryElement(), {
|
|
4809
4887
|
layer
|
|
4810
4888
|
} = useTheme_v2(), {
|
|
@@ -4920,7 +4998,7 @@ const Root$a = styledComponents.styled(Layer)`
|
|
|
4920
4998
|
return setReferenceElement(childRef.current), () => setReferenceElement(null);
|
|
4921
4999
|
}, [child]), !child) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
4922
5000
|
if (disabled) return child;
|
|
4923
|
-
const tooltip = /* @__PURE__ */ jsxRuntime.jsx(
|
|
5001
|
+
const tooltip = /* @__PURE__ */ jsxRuntime.jsx(StyledTooltip, { "data-ui": "Tooltip", ...restProps, ref: setFloating, style: {
|
|
4924
5002
|
...floatingStyles,
|
|
4925
5003
|
maxWidth: tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0
|
|
4926
5004
|
}, zOffset, children: /* @__PURE__ */ jsxRuntime.jsx(TooltipCard, { ...restProps, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, originX, originY, padding, placement, radius, ref: setFloating, scheme, shadow, children: content }) }), children = showTooltip && (portalProp ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portalProp == "string" ? portalProp : void 0, children: tooltip }) : tooltip);
|
|
@@ -4951,15 +5029,13 @@ function useCloseOnMouseLeave(t0) {
|
|
|
4951
5029
|
return window.addEventListener("mousemove", handleMouseMove), () => window.removeEventListener("mousemove", handleMouseMove);
|
|
4952
5030
|
}, t3 = [onMouseMove, showTooltip], $[3] = onMouseMove, $[4] = showTooltip, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), react.useEffect(t2, t3);
|
|
4953
5031
|
}
|
|
4954
|
-
const
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
}
|
|
4962
|
-
`, rotate = styledComponents.keyframes`
|
|
5032
|
+
const StyledAutocomplete = styledComponents.styled.div.withConfig({
|
|
5033
|
+
displayName: "StyledAutocomplete",
|
|
5034
|
+
componentId: "sc-1igauft-0"
|
|
5035
|
+
})`line-height:0;`, ListBox = styledComponents.styled(Box).withConfig({
|
|
5036
|
+
displayName: "ListBox",
|
|
5037
|
+
componentId: "sc-1igauft-1"
|
|
5038
|
+
})`& > ul{list-style:none;padding:0;margin:0;}`, rotate = styledComponents.keyframes`
|
|
4963
5039
|
from {
|
|
4964
5040
|
transform: rotate(0deg);
|
|
4965
5041
|
}
|
|
@@ -4967,9 +5043,10 @@ const Root$9 = styledComponents.styled.div`
|
|
|
4967
5043
|
to {
|
|
4968
5044
|
transform: rotate(360deg);
|
|
4969
5045
|
}
|
|
4970
|
-
`, AnimatedSpinnerIcon = styledComponents.styled(icons.SpinnerIcon)
|
|
4971
|
-
|
|
4972
|
-
|
|
5046
|
+
`, AnimatedSpinnerIcon = styledComponents.styled(icons.SpinnerIcon).withConfig({
|
|
5047
|
+
displayName: "AnimatedSpinnerIcon",
|
|
5048
|
+
componentId: "sc-1igauft-2"
|
|
5049
|
+
})`animation:${rotate} 500ms linear infinite;`;
|
|
4973
5050
|
function AutocompleteOption(props) {
|
|
4974
5051
|
const $ = reactCompilerRuntime.c(11), {
|
|
4975
5052
|
children,
|
|
@@ -5221,24 +5298,19 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
|
|
|
5221
5298
|
onMouseEnter: handlePopoverMouseEnter,
|
|
5222
5299
|
onMouseLeave: handlePopoverMouseLeave
|
|
5223
5300
|
}, resultsPopoverElementRef) : filteredOptionsLen === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(Popover, { arrow: !1, constrainSize: !0, content, fallbackPlacements: AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS, matchReferenceWidth: !0, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, open: expanded, overflow: "auto", placement: AUTOCOMPLETE_POPOVER_PLACEMENT, portal: !0, radius, ref: resultsPopoverElementRef, referenceElement: inputElementRef.current, ...popover }), [content, expanded, filteredOptionsLen, handlePopoverMouseEnter, handlePopoverMouseLeave, popover, radius, renderPopover]);
|
|
5224
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5301
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(StyledAutocomplete, { "data-ui": "Autocomplete", onBlur: handleRootBlur, onFocus: handleRootFocus, onKeyDown: handleRootKeyDown, ref: rootElementRef, children: [
|
|
5225
5302
|
input,
|
|
5226
5303
|
results
|
|
5227
5304
|
] });
|
|
5228
5305
|
});
|
|
5229
5306
|
InnerAutocomplete.displayName = "ForwardRef(Autocomplete)";
|
|
5230
|
-
const Autocomplete = InnerAutocomplete,
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
line-height: 0;
|
|
5238
|
-
`, ExpandButton = styledComponents.styled(Button)`
|
|
5239
|
-
appearance: none;
|
|
5240
|
-
margin: -4px;
|
|
5241
|
-
`, Breadcrumbs = react.forwardRef(function(props, ref) {
|
|
5307
|
+
const Autocomplete = InnerAutocomplete, StyledBreadcrumbs = styledComponents.styled.ol.withConfig({
|
|
5308
|
+
displayName: "StyledBreadcrumbs",
|
|
5309
|
+
componentId: "sc-1es8h8q-0"
|
|
5310
|
+
})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`, ExpandButton = styledComponents.styled(Button).withConfig({
|
|
5311
|
+
displayName: "ExpandButton",
|
|
5312
|
+
componentId: "sc-1es8h8q-1"
|
|
5313
|
+
})`appearance:none;margin:-4px;`, Breadcrumbs = react.forwardRef(function(props, ref) {
|
|
5242
5314
|
const {
|
|
5243
5315
|
children,
|
|
5244
5316
|
maxLength,
|
|
@@ -5255,7 +5327,7 @@ const Autocomplete = InnerAutocomplete, Root$8 = styledComponents.styled.ol`
|
|
|
5255
5327
|
}
|
|
5256
5328
|
return rawItems;
|
|
5257
5329
|
}, [collapse, expand, maxLength, open, rawItems, space]);
|
|
5258
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5330
|
+
return /* @__PURE__ */ jsxRuntime.jsx(StyledBreadcrumbs, { "data-ui": "Breadcrumbs", ...restProps, ref, children: items.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
|
|
5259
5331
|
itemIndex > 0 && /* @__PURE__ */ jsxRuntime.jsx(Box, { "aria-hidden": !0, as: "li", paddingX: space, children: separator || /* @__PURE__ */ jsxRuntime.jsx(Text, { muted: !0, children: "/" }) }),
|
|
5260
5332
|
/* @__PURE__ */ jsxRuntime.jsx(Box, { as: "li", children: item })
|
|
5261
5333
|
] }, itemIndex)) });
|
|
@@ -5328,40 +5400,28 @@ function useDialog() {
|
|
|
5328
5400
|
function isTargetWithinScope(boundaryElement, portalElement, target) {
|
|
5329
5401
|
return !boundaryElement || !portalElement ? !0 : containsOrEqualsElement(boundaryElement, target) || containsOrEqualsElement(portalElement, target);
|
|
5330
5402
|
}
|
|
5331
|
-
const
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
`, DialogHeader = styledComponents.styled(Box)`
|
|
5354
|
-
position: relative;
|
|
5355
|
-
z-index: 2;
|
|
5356
|
-
`, DialogContent = styledComponents.styled(Box)`
|
|
5357
|
-
position: relative;
|
|
5358
|
-
z-index: 1;
|
|
5359
|
-
overflow: auto;
|
|
5360
|
-
outline: none;
|
|
5361
|
-
`, DialogFooter = styledComponents.styled(Box)`
|
|
5362
|
-
position: relative;
|
|
5363
|
-
z-index: 3;
|
|
5364
|
-
`, DialogCard = react.forwardRef(function(props, forwardedRef) {
|
|
5403
|
+
const StyledDialog = /* @__PURE__ */ styledComponents.styled(Layer).withConfig({
|
|
5404
|
+
displayName: "StyledDialog",
|
|
5405
|
+
componentId: "sc-4n4xb3-0"
|
|
5406
|
+
})(responsivePaddingStyle, dialogStyle, responsiveDialogPositionStyle, animationDialogStyle), DialogContainer = styledComponents.styled(Container).withConfig({
|
|
5407
|
+
displayName: "DialogContainer",
|
|
5408
|
+
componentId: "sc-4n4xb3-1"
|
|
5409
|
+
})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`, DialogCardRoot = styledComponents.styled(Card).withConfig({
|
|
5410
|
+
displayName: "DialogCardRoot",
|
|
5411
|
+
componentId: "sc-4n4xb3-2"
|
|
5412
|
+
})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`, DialogLayout = styledComponents.styled(Flex).withConfig({
|
|
5413
|
+
displayName: "DialogLayout",
|
|
5414
|
+
componentId: "sc-4n4xb3-3"
|
|
5415
|
+
})`flex:1;min-height:0;width:100%;`, DialogHeader = styledComponents.styled(Box).withConfig({
|
|
5416
|
+
displayName: "DialogHeader",
|
|
5417
|
+
componentId: "sc-4n4xb3-4"
|
|
5418
|
+
})`position:relative;z-index:2;`, DialogContent = styledComponents.styled(Box).withConfig({
|
|
5419
|
+
displayName: "DialogContent",
|
|
5420
|
+
componentId: "sc-4n4xb3-5"
|
|
5421
|
+
})`position:relative;z-index:1;overflow:auto;outline:none;`, DialogFooter = styledComponents.styled(Box).withConfig({
|
|
5422
|
+
displayName: "DialogFooter",
|
|
5423
|
+
componentId: "sc-4n4xb3-6"
|
|
5424
|
+
})`position:relative;z-index:3;`, DialogCard = react.forwardRef(function(props, forwardedRef) {
|
|
5365
5425
|
const $ = reactCompilerRuntime.c(38), {
|
|
5366
5426
|
__unstable_autoFocus: autoFocus,
|
|
5367
5427
|
__unstable_hideCloseButton: hideCloseButton,
|
|
@@ -5490,7 +5550,7 @@ const Dialog = react.forwardRef(function(props, ref) {
|
|
|
5490
5550
|
let t11;
|
|
5491
5551
|
$[43] === Symbol.for("react.memo_cache_sentinel") ? (t11 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: postDivRef, tabIndex: 0 }), $[43] = t11) : t11 = $[43];
|
|
5492
5552
|
let t12;
|
|
5493
|
-
$[44] !== animate || $[45] !== handleFocus || $[46] !== handleRootClick || $[47] !== id || $[48] !== labelId || $[49] !== onActivate || $[50] !== padding || $[51] !== position || $[52] !== ref || $[53] !== restProps || $[54] !== t10 || $[55] !== zOffset ? (t12 = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5553
|
+
$[44] !== animate || $[45] !== handleFocus || $[46] !== handleRootClick || $[47] !== id || $[48] !== labelId || $[49] !== onActivate || $[50] !== padding || $[51] !== position || $[52] !== ref || $[53] !== restProps || $[54] !== t10 || $[55] !== zOffset ? (t12 = /* @__PURE__ */ jsxRuntime.jsxs(StyledDialog, { ...restProps, $animate: animate, $padding: padding, $position: position, "aria-labelledby": labelId, "aria-modal": !0, "data-ui": "Dialog", id, onActivate, onClick: handleRootClick, onFocus: handleFocus, ref, role: "dialog", zOffset, children: [
|
|
5494
5554
|
t9,
|
|
5495
5555
|
t10,
|
|
5496
5556
|
t11
|
|
@@ -5516,18 +5576,13 @@ function DialogProvider(props) {
|
|
|
5516
5576
|
return $[3] !== children || $[4] !== contextValue ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t2) : t2 = $[5], t2;
|
|
5517
5577
|
}
|
|
5518
5578
|
DialogProvider.displayName = "DialogProvider";
|
|
5519
|
-
const
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
`, Key = styledComponents.styled(KBD)`
|
|
5527
|
-
&:not([hidden]) {
|
|
5528
|
-
display: block;
|
|
5529
|
-
}
|
|
5530
|
-
`, Hotkeys = react.forwardRef(function(props, ref) {
|
|
5579
|
+
const StyledHotkeys = styledComponents.styled.kbd.withConfig({
|
|
5580
|
+
displayName: "StyledHotkeys",
|
|
5581
|
+
componentId: "sc-b37mge-0"
|
|
5582
|
+
})`font:inherit;padding:1px;&:not([hidden]){display:block;}`, Key = styledComponents.styled(KBD).withConfig({
|
|
5583
|
+
displayName: "Key",
|
|
5584
|
+
componentId: "sc-b37mge-1"
|
|
5585
|
+
})`&:not([hidden]){display:block;}`, Hotkeys = react.forwardRef(function(props, ref) {
|
|
5531
5586
|
const $ = reactCompilerRuntime.c(24);
|
|
5532
5587
|
let fontSize2, keys, padding, radius, restProps, t0;
|
|
5533
5588
|
$[0] !== props ? ({
|
|
@@ -5552,7 +5607,7 @@ const Root$6 = styledComponents.styled.kbd`
|
|
|
5552
5607
|
let t2;
|
|
5553
5608
|
$[17] !== space || $[18] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Inline, { as: "span", space, children: t1 }), $[17] = space, $[18] = t1, $[19] = t2) : t2 = $[19];
|
|
5554
5609
|
let t3;
|
|
5555
|
-
return $[20] !== ref || $[21] !== restProps || $[22] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
5610
|
+
return $[20] !== ref || $[21] !== restProps || $[22] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(StyledHotkeys, { "data-ui": "Hotkeys", ...restProps, ref, children: t2 }), $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3) : t3 = $[23], t3;
|
|
5556
5611
|
});
|
|
5557
5612
|
Hotkeys.displayName = "ForwardRef(Hotkeys)";
|
|
5558
5613
|
const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
|
|
@@ -5693,10 +5748,10 @@ function useMenuController(props) {
|
|
|
5693
5748
|
mount
|
|
5694
5749
|
};
|
|
5695
5750
|
}
|
|
5696
|
-
const
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5751
|
+
const StyledMenu = styledComponents.styled(Box).withConfig({
|
|
5752
|
+
displayName: "StyledMenu",
|
|
5753
|
+
componentId: "sc-xt0tnv-0"
|
|
5754
|
+
})`outline:none;overflow:auto;`, Menu = react.forwardRef(function(props, forwardedRef) {
|
|
5700
5755
|
const $ = reactCompilerRuntime.c(50);
|
|
5701
5756
|
let _shouldFocus, children, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
|
|
5702
5757
|
if ($[0] !== props) {
|
|
@@ -5774,7 +5829,7 @@ const Root$5 = styledComponents.styled(Box)`
|
|
|
5774
5829
|
let t11;
|
|
5775
5830
|
$[38] !== children || $[39] !== space ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { space, children }), $[38] = children, $[39] = space, $[40] = t11) : t11 = $[40];
|
|
5776
5831
|
let t12;
|
|
5777
|
-
$[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t11 ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
5832
|
+
$[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t11 ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(StyledMenu, { "data-ui": "Menu", ...restProps, onKeyDown: handleKeyDown, padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t11 }), $[41] = handleKeyDown, $[42] = handleRefChange, $[43] = padding, $[44] = restProps, $[45] = t11, $[46] = t12) : t12 = $[46];
|
|
5778
5833
|
let t13;
|
|
5779
5834
|
return $[47] !== t12 || $[48] !== value ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(MenuContext.Provider, { value, children: t12 }), $[47] = t12, $[48] = value, $[49] = t13) : t13 = $[49], t13;
|
|
5780
5835
|
});
|
|
@@ -5917,12 +5972,10 @@ MenuButton.displayName = "ForwardRef(MenuButton)";
|
|
|
5917
5972
|
function _temp$2(v) {
|
|
5918
5973
|
return !v;
|
|
5919
5974
|
}
|
|
5920
|
-
const MenuDivider = styledComponents.styled.hr
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
margin: 0;
|
|
5925
|
-
`;
|
|
5975
|
+
const MenuDivider = styledComponents.styled.hr.withConfig({
|
|
5976
|
+
displayName: "MenuDivider",
|
|
5977
|
+
componentId: "sc-uhoxwu-0"
|
|
5978
|
+
})`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`;
|
|
5926
5979
|
MenuDivider.displayName = "MenuDivider";
|
|
5927
5980
|
function selectableBaseStyle() {
|
|
5928
5981
|
return styledComponents.css`
|
|
@@ -6024,7 +6077,10 @@ function selectableColorStyle(props) {
|
|
|
6024
6077
|
${style?.card?.root}
|
|
6025
6078
|
`;
|
|
6026
6079
|
}
|
|
6027
|
-
const Selectable = styledComponents.styled(Box)(
|
|
6080
|
+
const Selectable = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
6081
|
+
displayName: "Selectable",
|
|
6082
|
+
componentId: "sc-1w01ang-0"
|
|
6083
|
+
})(responsiveRadiusStyle, selectableBaseStyle, selectableColorStyle);
|
|
6028
6084
|
Selectable.displayName = "Selectable";
|
|
6029
6085
|
function useMenu() {
|
|
6030
6086
|
const value = react.useContext(MenuContext);
|
|
@@ -6271,7 +6327,10 @@ const keyframe = styledComponents.keyframes`
|
|
|
6271
6327
|
@media screen and (prefers-reduced-motion: reduce) {
|
|
6272
6328
|
background-color: var(--card-skeleton-color-from);
|
|
6273
6329
|
}
|
|
6274
|
-
`,
|
|
6330
|
+
`, StyledSkeleton$1 = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
6331
|
+
displayName: "StyledSkeleton",
|
|
6332
|
+
componentId: "sc-ebtpni-0"
|
|
6333
|
+
})(responsiveRadiusStyle, skeletonStyle), Skeleton = react.forwardRef(function(props, ref) {
|
|
6275
6334
|
const $ = reactCompilerRuntime.c(14);
|
|
6276
6335
|
let delay, radius, restProps, t0;
|
|
6277
6336
|
$[0] !== props ? ({
|
|
@@ -6294,10 +6353,13 @@ const keyframe = styledComponents.keyframes`
|
|
|
6294
6353
|
}, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2) : (t1 = $[6], t2 = $[7]), react.useEffect(t1, t2);
|
|
6295
6354
|
const t3 = useArrayProp(radius);
|
|
6296
6355
|
let t4;
|
|
6297
|
-
return $[8] !== animated || $[9] !== ref || $[10] !== restProps || $[11] !== t3 || $[12] !== visible ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6356
|
+
return $[8] !== animated || $[9] !== ref || $[10] !== restProps || $[11] !== t3 || $[12] !== visible ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton$1, { ...restProps, $animated: animated, $radius: t3, $visible: visible, ref }), $[8] = animated, $[9] = ref, $[10] = restProps, $[11] = t3, $[12] = visible, $[13] = t4) : t4 = $[13], t4;
|
|
6298
6357
|
});
|
|
6299
6358
|
Skeleton.displayName = "ForwardRef(Skeleton)";
|
|
6300
|
-
const
|
|
6359
|
+
const StyledSkeleton = /* @__PURE__ */ styledComponents.styled(Skeleton).withConfig({
|
|
6360
|
+
displayName: "StyledSkeleton",
|
|
6361
|
+
componentId: "sc-2p7a1v-0"
|
|
6362
|
+
})((props) => {
|
|
6301
6363
|
const {
|
|
6302
6364
|
$size,
|
|
6303
6365
|
$style
|
|
@@ -6320,7 +6382,7 @@ const Root$3 = styledComponents.styled(Skeleton)((props) => {
|
|
|
6320
6382
|
} = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
|
|
6321
6383
|
const $size = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
6322
6384
|
let t1;
|
|
6323
|
-
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6385
|
+
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "text" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
|
|
6324
6386
|
});
|
|
6325
6387
|
TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
|
|
6326
6388
|
const LabelSkeleton = react.forwardRef(function(props, ref) {
|
|
@@ -6332,7 +6394,7 @@ const LabelSkeleton = react.forwardRef(function(props, ref) {
|
|
|
6332
6394
|
} = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
|
|
6333
6395
|
const $size = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
6334
6396
|
let t1;
|
|
6335
|
-
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6397
|
+
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "label" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
|
|
6336
6398
|
});
|
|
6337
6399
|
LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
|
|
6338
6400
|
const HeadingSkeleton = react.forwardRef(function(props, ref) {
|
|
@@ -6344,7 +6406,7 @@ const HeadingSkeleton = react.forwardRef(function(props, ref) {
|
|
|
6344
6406
|
} = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
|
|
6345
6407
|
const $size = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
6346
6408
|
let t1;
|
|
6347
|
-
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6409
|
+
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "heading" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
|
|
6348
6410
|
});
|
|
6349
6411
|
HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
|
|
6350
6412
|
const CodeSkeleton = react.forwardRef(function(props, ref) {
|
|
@@ -6356,12 +6418,13 @@ const CodeSkeleton = react.forwardRef(function(props, ref) {
|
|
|
6356
6418
|
} = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
|
|
6357
6419
|
const $size = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
6358
6420
|
let t1;
|
|
6359
|
-
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6421
|
+
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(StyledSkeleton, { ...restProps, $size, ref, $style: "code" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
|
|
6360
6422
|
});
|
|
6361
6423
|
CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
|
|
6362
|
-
const CustomButton = styledComponents.styled(Button)
|
|
6363
|
-
|
|
6364
|
-
|
|
6424
|
+
const CustomButton = styledComponents.styled(Button).withConfig({
|
|
6425
|
+
displayName: "CustomButton",
|
|
6426
|
+
componentId: "sc-1kns779-0"
|
|
6427
|
+
})`max-width:100%;`, Tab = react.forwardRef(function(props, forwardedRef) {
|
|
6365
6428
|
const $ = reactCompilerRuntime.c(30);
|
|
6366
6429
|
let focused, icon, id, label, onClick, onFocus, restProps, selected, t0, t1;
|
|
6367
6430
|
$[0] !== props ? ({
|
|
@@ -6398,14 +6461,10 @@ const CustomButton = styledComponents.styled(Button)`
|
|
|
6398
6461
|
return $[18] !== fontSize2 || $[19] !== handleFocus || $[20] !== icon || $[21] !== id || $[22] !== label || $[23] !== onClick || $[24] !== padding || $[25] !== restProps || $[26] !== selected || $[27] !== t7 || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(CustomButton, { "data-ui": "Tab", ...restProps, "aria-selected": t7, fontSize: fontSize2, icon, id, mode: "bleed", onClick, onBlur: handleBlur, onFocus: handleFocus, padding, ref, role: "tab", selected, tabIndex: t8, text: label, type: "button" }), $[18] = fontSize2, $[19] = handleFocus, $[20] = icon, $[21] = id, $[22] = label, $[23] = onClick, $[24] = padding, $[25] = restProps, $[26] = selected, $[27] = t7, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
|
|
6399
6462
|
});
|
|
6400
6463
|
Tab.displayName = "ForwardRef(Tab)";
|
|
6401
|
-
const CustomInline = styledComponents.styled(Inline)
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
max-width: 100%;
|
|
6406
|
-
box-sizing: border-box;
|
|
6407
|
-
}
|
|
6408
|
-
`, TabList = react.forwardRef(function(props, ref) {
|
|
6464
|
+
const CustomInline = styledComponents.styled(Inline).withConfig({
|
|
6465
|
+
displayName: "CustomInline",
|
|
6466
|
+
componentId: "sc-5cm04m-0"
|
|
6467
|
+
})`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`, TabList = react.forwardRef(function(props, ref) {
|
|
6409
6468
|
const $ = reactCompilerRuntime.c(15);
|
|
6410
6469
|
let childrenProp, restProps;
|
|
6411
6470
|
$[0] !== props ? ({
|
|
@@ -6446,9 +6505,10 @@ const TabPanel = react.forwardRef(function(props, ref) {
|
|
|
6446
6505
|
return $[3] !== flex || $[4] !== props.children || $[5] !== ref || $[6] !== restProps || $[7] !== t0 ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "TabPanel", ...restProps, flex, ref, role: "tabpanel", tabIndex: t0, children: props.children }), $[3] = flex, $[4] = props.children, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1) : t1 = $[8], t1;
|
|
6447
6506
|
});
|
|
6448
6507
|
TabPanel.displayName = "ForwardRef(TabPanel)";
|
|
6449
|
-
const TextBox = styledComponents.styled(Flex)
|
|
6450
|
-
|
|
6451
|
-
|
|
6508
|
+
const TextBox = styledComponents.styled(Flex).withConfig({
|
|
6509
|
+
displayName: "TextBox",
|
|
6510
|
+
componentId: "sc-1rr7rxo-0"
|
|
6511
|
+
})`overflow-x:auto;`, loadingAnimation = styledComponents.keyframes`
|
|
6452
6512
|
0% {
|
|
6453
6513
|
width: 0;
|
|
6454
6514
|
}
|
|
@@ -6505,7 +6565,10 @@ const STATUS_CARD_TONE = {
|
|
|
6505
6565
|
warning: "alert",
|
|
6506
6566
|
success: "alert",
|
|
6507
6567
|
info: "alert"
|
|
6508
|
-
},
|
|
6568
|
+
}, StyledToast = /* @__PURE__ */ styledComponents.styled(Card).withConfig({
|
|
6569
|
+
displayName: "StyledToast",
|
|
6570
|
+
componentId: "sc-1icz8ea-0"
|
|
6571
|
+
})(rootStyles);
|
|
6509
6572
|
function Toast(props) {
|
|
6510
6573
|
const $ = reactCompilerRuntime.c(30);
|
|
6511
6574
|
let closable, description, duration, onClose, restProps, status, t0, title;
|
|
@@ -6539,7 +6602,7 @@ function Toast(props) {
|
|
|
6539
6602
|
t4
|
|
6540
6603
|
] }), $[20] = t3, $[21] = t4, $[22] = t5) : t5 = $[22];
|
|
6541
6604
|
let t6;
|
|
6542
|
-
return $[23] !== cardTone || $[24] !== duration || $[25] !== radius || $[26] !== restProps || $[27] !== role || $[28] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6605
|
+
return $[23] !== cardTone || $[24] !== duration || $[25] !== radius || $[26] !== restProps || $[27] !== role || $[28] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledToast, { "data-ui": "Toast", role, ...restProps, marginTop: 3, radius, shadow: 2, tone: cardTone, $duration: duration, children: t5 }), $[23] = cardTone, $[24] = duration, $[25] = radius, $[26] = restProps, $[27] = role, $[28] = t5, $[29] = t6) : t6 = $[29], t6;
|
|
6543
6606
|
}
|
|
6544
6607
|
Toast.displayName = "Toast";
|
|
6545
6608
|
function useMounted() {
|
|
@@ -6557,21 +6620,13 @@ let toastId = 0;
|
|
|
6557
6620
|
function generateToastId() {
|
|
6558
6621
|
return String(toastId++);
|
|
6559
6622
|
}
|
|
6560
|
-
const
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
`, ToastContainer = styledComponents.styled.div`
|
|
6568
|
-
box-sizing: border-box;
|
|
6569
|
-
position: absolute;
|
|
6570
|
-
right: 0;
|
|
6571
|
-
bottom: 0;
|
|
6572
|
-
max-width: 420px;
|
|
6573
|
-
width: 100%;
|
|
6574
|
-
`;
|
|
6623
|
+
const StyledToastProvider = styledComponents.styled(Layer).withConfig({
|
|
6624
|
+
displayName: "StyledToastProvider",
|
|
6625
|
+
componentId: "sc-17mn6j-0"
|
|
6626
|
+
})`position:fixed;top:0;left:0;right:0;bottom:0;pointer-events:none;`, ToastContainer = styledComponents.styled.div.withConfig({
|
|
6627
|
+
displayName: "ToastContainer",
|
|
6628
|
+
componentId: "sc-17mn6j-1"
|
|
6629
|
+
})`box-sizing:border-box;position:absolute;right:0;bottom:0;max-width:420px;width:100%;`;
|
|
6575
6630
|
function ToastProvider(props) {
|
|
6576
6631
|
const $ = reactCompilerRuntime.c(24), {
|
|
6577
6632
|
children,
|
|
@@ -6655,7 +6710,7 @@ function ToastProvider(props) {
|
|
|
6655
6710
|
toastsRef.current = {};
|
|
6656
6711
|
}, t14 = [], $[10] = t13, $[11] = t14) : (t13 = $[10], t14 = $[11]), react.useEffect(t13, t14);
|
|
6657
6712
|
let t15;
|
|
6658
|
-
$[12] !== mounted || $[13] !== padding || $[14] !== paddingX || $[15] !== paddingY || $[16] !== prefersReducedMotion || $[17] !== state || $[18] !== variants || $[19] !== zOffset ? (t15 = mounted && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6713
|
+
$[12] !== mounted || $[13] !== padding || $[14] !== paddingX || $[15] !== paddingY || $[16] !== prefersReducedMotion || $[17] !== state || $[18] !== variants || $[19] !== zOffset ? (t15 = mounted && /* @__PURE__ */ jsxRuntime.jsx(StyledToastProvider, { "data-ui": "ToastProvider", zOffset, children: /* @__PURE__ */ jsxRuntime.jsx(ToastContainer, { children: /* @__PURE__ */ jsxRuntime.jsx(Box, { padding, paddingX, paddingY, children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { initial: !1, children: state.map((t162) => {
|
|
6659
6714
|
const {
|
|
6660
6715
|
dismiss: dismiss_0,
|
|
6661
6716
|
id: id_0,
|
|
@@ -7003,13 +7058,18 @@ const TreeGroup = react.memo(function(props) {
|
|
|
7003
7058
|
const expanded = t0 === void 0 ? !1 : t0, tree = useTree(), t1 = !expanded;
|
|
7004
7059
|
let t2;
|
|
7005
7060
|
return $[4] !== children || $[5] !== restProps || $[6] !== t1 || $[7] !== tree.space ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { as: "ul", "data-ui": "TreeGroup", ...restProps, hidden: t1, marginTop: tree.space, role: "group", space: tree.space, children }), $[4] = children, $[5] = restProps, $[6] = t1, $[7] = tree.space, $[8] = t2) : t2 = $[8], t2;
|
|
7006
|
-
}),
|
|
7061
|
+
}), StyledTreeItem = react.memo(styledComponents.styled.li.withConfig({
|
|
7062
|
+
displayName: "StyledTreeItem",
|
|
7063
|
+
componentId: "sc-iiskig-0"
|
|
7064
|
+
})(treeItemRootStyle, treeItemRootColorStyle)), TreeItemBox = /* @__PURE__ */ styledComponents.styled(Box).attrs({
|
|
7007
7065
|
forwardedAs: "a"
|
|
7008
|
-
})
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7066
|
+
}).withConfig({
|
|
7067
|
+
displayName: "TreeItemBox",
|
|
7068
|
+
componentId: "sc-iiskig-1"
|
|
7069
|
+
})(treeItemBoxStyle), ToggleArrowText = styledComponents.styled(Text).withConfig({
|
|
7070
|
+
displayName: "ToggleArrowText",
|
|
7071
|
+
componentId: "sc-iiskig-2"
|
|
7072
|
+
})`& > svg{transition:transform 100ms;}`, TreeItem = react.memo(function(props) {
|
|
7013
7073
|
const {
|
|
7014
7074
|
children,
|
|
7015
7075
|
expanded: expandedProp = !1,
|
|
@@ -7058,10 +7118,10 @@ const TreeGroup = react.memo(function(props) {
|
|
|
7058
7118
|
] }),
|
|
7059
7119
|
/* @__PURE__ */ jsxRuntime.jsx(Box, { flex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(Text, { muted, size: fontSize2, textOverflow: "ellipsis", weight, children: text }) })
|
|
7060
7120
|
] });
|
|
7061
|
-
return href ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7121
|
+
return href ? /* @__PURE__ */ jsxRuntime.jsxs(StyledTreeItem, { "data-selected": selected ? "" : void 0, "data-tree-id": id, "data-tree-key": itemKey, "data-ui": "TreeItem", ...restProps, onClick: handleClick, ref: rootRef, role: "none", children: [
|
|
7062
7122
|
/* @__PURE__ */ jsxRuntime.jsx(TreeItemBox, { $level: tree.level, "aria-expanded": expanded, as: linkAs, "data-ui": "TreeItem__box", href, ref: treeitemRef, role: "treeitem", tabIndex, children: content }),
|
|
7063
7123
|
/* @__PURE__ */ jsxRuntime.jsx(TreeContext.Provider, { value: contextValue, children: children && /* @__PURE__ */ jsxRuntime.jsx(TreeGroup, { hidden: !expanded, children }) })
|
|
7064
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7124
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(StyledTreeItem, { "data-selected": selected ? "" : void 0, "data-ui": "TreeItem", "data-tree-id": id, "data-tree-key": itemKey, ...restProps, "aria-expanded": expanded, onClick: handleClick, onKeyDown: handleKeyDown, ref: rootRef, role: "treeitem", tabIndex, children: [
|
|
7065
7125
|
/* @__PURE__ */ jsxRuntime.jsx(TreeItemBox, { $level: tree.level, as: "div", "data-ui": "TreeItem__box", children: content }),
|
|
7066
7126
|
/* @__PURE__ */ jsxRuntime.jsx(TreeContext.Provider, { value: contextValue, children: children && /* @__PURE__ */ jsxRuntime.jsx(TreeGroup, { expanded, children }) })
|
|
7067
7127
|
] });
|