@sanity/ui 2.8.22 → 2.8.24-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +266 -256
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +266 -256
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +266 -256
- package/dist/index.mjs.map +1 -1
- package/package.json +31 -39
- package/src/core/hooks/useArrayProp.ts +5 -2
- package/src/core/hooks/useElementRect/__workshop__/example.tsx +2 -2
- package/src/core/theme/__workshop__/debug/story.tsx +8 -11
- package/src/core/utils/portal/portalProvider.tsx +8 -6
package/dist/index.esm.js
CHANGED
|
@@ -154,11 +154,20 @@ function responsiveTextFont(props) {
|
|
|
154
154
|
return responsiveFont("text", props);
|
|
155
155
|
}
|
|
156
156
|
function useArrayProp(val, defaultVal) {
|
|
157
|
-
const $ = c(
|
|
157
|
+
const $ = c(9);
|
|
158
158
|
let t0;
|
|
159
|
-
$[0] !==
|
|
160
|
-
const [t1, setCache] = useState(t0), [cachedVal, cachedHash] = t1
|
|
161
|
-
|
|
159
|
+
$[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
|
|
160
|
+
const [t1, setCache] = useState(t0), [cachedVal, cachedHash] = t1;
|
|
161
|
+
let result = cachedVal, t2;
|
|
162
|
+
$[3] !== defaultVal || $[4] !== val ? (t2 = JSON.stringify(val ?? defaultVal), $[3] = defaultVal, $[4] = val, $[5] = t2) : t2 = $[5];
|
|
163
|
+
const hash = t2;
|
|
164
|
+
if (hash !== cachedHash) {
|
|
165
|
+
let t3;
|
|
166
|
+
$[6] !== defaultVal || $[7] !== val ? (t3 = _getArrayProp(val, defaultVal), $[6] = defaultVal, $[7] = val, $[8] = t3) : t3 = $[8];
|
|
167
|
+
const current = t3;
|
|
168
|
+
setCache([current, hash]), result = current;
|
|
169
|
+
}
|
|
170
|
+
return result;
|
|
162
171
|
}
|
|
163
172
|
function _getElements(element, elementsArg) {
|
|
164
173
|
const ret = [element];
|
|
@@ -190,7 +199,7 @@ function useClickOutside(listener, t0, boundaryElement) {
|
|
|
190
199
|
}
|
|
191
200
|
}, t3 = [element, elementsArg], $[3] = element, $[4] = elementsArg, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), useEffect(t2, t3);
|
|
192
201
|
let t4, t5;
|
|
193
|
-
return $[7] !==
|
|
202
|
+
return $[7] !== boundaryElement || $[8] !== elements || $[9] !== listener ? (t4 = () => {
|
|
194
203
|
if (!listener)
|
|
195
204
|
return;
|
|
196
205
|
const handleWindowMouseDown = (evt) => {
|
|
@@ -205,12 +214,12 @@ function useClickOutside(listener, t0, boundaryElement) {
|
|
|
205
214
|
return window.addEventListener("mousedown", handleWindowMouseDown), () => {
|
|
206
215
|
window.removeEventListener("mousedown", handleWindowMouseDown);
|
|
207
216
|
};
|
|
208
|
-
}, t5 = [boundaryElement, listener, elements], $[7] =
|
|
217
|
+
}, t5 = [boundaryElement, listener, elements], $[7] = boundaryElement, $[8] = elements, $[9] = listener, $[10] = t4, $[11] = t5) : (t4 = $[10], t5 = $[11]), useEffect(t4, t5), setElement;
|
|
209
218
|
}
|
|
210
219
|
function useClickOutsideEvent(listener, t0, boundaryElement) {
|
|
211
220
|
const $ = c(8), elementsArg = t0 === void 0 ? _temp$6 : t0;
|
|
212
221
|
let t1;
|
|
213
|
-
$[0] !==
|
|
222
|
+
$[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
|
|
214
223
|
if (!listener)
|
|
215
224
|
return;
|
|
216
225
|
const target = evt.target;
|
|
@@ -224,7 +233,7 @@ function useClickOutsideEvent(listener, t0, boundaryElement) {
|
|
|
224
233
|
if (el && (target === el || el.contains(target)))
|
|
225
234
|
return;
|
|
226
235
|
listener(evt);
|
|
227
|
-
}, $[0] =
|
|
236
|
+
}, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
|
|
228
237
|
const onEvent = useEffectEvent(t1), hasListener = !!listener;
|
|
229
238
|
let t2, t3;
|
|
230
239
|
$[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
|
|
@@ -242,9 +251,9 @@ function _temp$6() {
|
|
|
242
251
|
function useCustomValidity(ref, customValidity) {
|
|
243
252
|
const $ = c(6);
|
|
244
253
|
let t0;
|
|
245
|
-
$[0] !==
|
|
254
|
+
$[0] !== customValidity || $[1] !== ref.current ? (t0 = () => {
|
|
246
255
|
ref.current?.setCustomValidity(customValidity || "");
|
|
247
|
-
}, $[0] =
|
|
256
|
+
}, $[0] = customValidity, $[1] = ref.current, $[2] = t0) : t0 = $[2];
|
|
248
257
|
let t1;
|
|
249
258
|
$[3] !== customValidity || $[4] !== ref ? (t1 = [customValidity, ref], $[3] = customValidity, $[4] = ref, $[5] = t1) : t1 = $[5], useEffect(t0, t1);
|
|
250
259
|
}
|
|
@@ -656,9 +665,9 @@ function ThemeProvider(props) {
|
|
|
656
665
|
return $[8] === Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsx("pre", { children: 'ThemeProvider: no "theme" property provided' }), $[8] = t22) : t22 = $[8], t22;
|
|
657
666
|
}
|
|
658
667
|
let t2;
|
|
659
|
-
$[9] !==
|
|
668
|
+
$[9] !== children || $[10] !== theme ? (t2 = /* @__PURE__ */ jsx(ThemeProvider$1, { theme, children }), $[9] = children, $[10] = theme, $[11] = t2) : t2 = $[11];
|
|
660
669
|
let t3;
|
|
661
|
-
return $[12] !==
|
|
670
|
+
return $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14], t3;
|
|
662
671
|
}
|
|
663
672
|
ThemeProvider.displayName = "ThemeProvider";
|
|
664
673
|
function useRootTheme() {
|
|
@@ -674,7 +683,7 @@ function ThemeColorProvider(props) {
|
|
|
674
683
|
tone
|
|
675
684
|
} = props, root = useRootTheme(), t0 = scheme || root.scheme;
|
|
676
685
|
let t1;
|
|
677
|
-
return $[0] !==
|
|
686
|
+
return $[0] !== children || $[1] !== root.theme || $[2] !== t0 || $[3] !== tone ? (t1 = /* @__PURE__ */ jsx(ThemeProvider, { scheme: t0, theme: root.theme, tone, children }), $[0] = children, $[1] = root.theme, $[2] = t0, $[3] = tone, $[4] = t1) : t1 = $[4], t1;
|
|
678
687
|
}
|
|
679
688
|
ThemeColorProvider.displayName = "ThemeColorProvider";
|
|
680
689
|
function useTheme() {
|
|
@@ -1467,7 +1476,7 @@ const Root$C = styled.div(responsiveLabelFont, responsiveTextAlignStyle, labelBa
|
|
|
1467
1476
|
overflow: clip;
|
|
1468
1477
|
`, Label = forwardRef(function(props, ref) {
|
|
1469
1478
|
const $ = c(22);
|
|
1470
|
-
let
|
|
1479
|
+
let accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
|
|
1471
1480
|
$[0] !== props ? ({
|
|
1472
1481
|
accent,
|
|
1473
1482
|
align,
|
|
@@ -1477,7 +1486,7 @@ const Root$C = styled.div(responsiveLabelFont, responsiveTextAlignStyle, labelBa
|
|
|
1477
1486
|
textOverflow,
|
|
1478
1487
|
weight,
|
|
1479
1488
|
...restProps
|
|
1480
|
-
} = props, $[0] = props, $[1] =
|
|
1489
|
+
} = props, $[0] = props, $[1] = accent, $[2] = align, $[3] = childrenProp, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = textOverflow, $[8] = weight) : (accent = $[1], align = $[2], childrenProp = $[3], restProps = $[4], t0 = $[5], t1 = $[6], textOverflow = $[7], weight = $[8]);
|
|
1481
1490
|
const muted = t0 === void 0 ? !1 : t0, size2 = t1 === void 0 ? 2 : t1;
|
|
1482
1491
|
let children = childrenProp;
|
|
1483
1492
|
if (textOverflow === "ellipsis") {
|
|
@@ -1489,7 +1498,7 @@ const Root$C = styled.div(responsiveLabelFont, responsiveTextAlignStyle, labelBa
|
|
|
1489
1498
|
}
|
|
1490
1499
|
const t2 = useArrayProp(align), t3 = useArrayProp(size2);
|
|
1491
1500
|
let t4;
|
|
1492
|
-
return $[13] !==
|
|
1501
|
+
return $[13] !== accent || $[14] !== children || $[15] !== muted || $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== weight ? (t4 = /* @__PURE__ */ jsx(Root$C, { "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
1502
|
});
|
|
1494
1503
|
Label.displayName = "ForwardRef(Label)";
|
|
1495
1504
|
const avatarStyle = {
|
|
@@ -1639,7 +1648,7 @@ const Root$B = styled.div(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1
|
|
|
1639
1648
|
color: "inherit"
|
|
1640
1649
|
}), Image = styled.svg(avatarStyle.image), Avatar = forwardRef(function(props, ref) {
|
|
1641
1650
|
const $ = c(53);
|
|
1642
|
-
let
|
|
1651
|
+
let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
|
|
1643
1652
|
$[0] !== props ? ({
|
|
1644
1653
|
__unstable_hideInnerStroke,
|
|
1645
1654
|
as: asProp,
|
|
@@ -1653,7 +1662,7 @@ const Root$B = styled.div(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1
|
|
|
1653
1662
|
status: t1,
|
|
1654
1663
|
size: t2,
|
|
1655
1664
|
...restProps
|
|
1656
|
-
} = props, $[0] = props, $[1] =
|
|
1665
|
+
} = props, $[0] = props, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = asProp, $[5] = initials, $[6] = onImageLoadError, $[7] = restProps, $[8] = src, $[9] = t0, $[10] = t1, $[11] = t2, $[12] = title) : (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], asProp = $[4], initials = $[5], onImageLoadError = $[6], restProps = $[7], src = $[8], t0 = $[9], t1 = $[10], t2 = $[11], title = $[12]);
|
|
1657
1666
|
const color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, {
|
|
1658
1667
|
avatar
|
|
1659
1668
|
} = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size2 = useArrayProp(sizeProp), _sizeRem = (avatar.sizes[size2[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = useId(), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = useState(!1), imageId = `avatar-image-${elementId}`;
|
|
@@ -1684,20 +1693,20 @@ const Root$B = styled.div(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1
|
|
|
1684
1693
|
let t11;
|
|
1685
1694
|
$[25] !== color ? (t11 = /* @__PURE__ */ jsx(Arrow$1, { children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[25] = color, $[26] = t11) : t11 = $[26];
|
|
1686
1695
|
let t12;
|
|
1687
|
-
$[27] !==
|
|
1696
|
+
$[27] !== __unstable_hideInnerStroke || $[28] !== _radius || $[29] !== _sizeRem || $[30] !== handleImageError || $[31] !== imageFailed || $[32] !== imageId || $[33] !== src ? (t12 = !imageFailed && src && /* @__PURE__ */ jsxs(Image, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
|
|
1688
1697
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("pattern", { id: imageId, patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx("image", { href: src, width: "1", height: "1", onError: handleImageError }) }) }),
|
|
1689
1698
|
/* @__PURE__ */ jsx("circle", { cx: _radius, cy: _radius, r: _radius, fill: `url(#${imageId})` }),
|
|
1690
1699
|
!__unstable_hideInnerStroke && /* @__PURE__ */ jsx(BgStroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" }),
|
|
1691
1700
|
/* @__PURE__ */ jsx(Stroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" })
|
|
1692
|
-
] }), $[27] =
|
|
1701
|
+
] }), $[27] = __unstable_hideInnerStroke, $[28] = _radius, $[29] = _sizeRem, $[30] = handleImageError, $[31] = imageFailed, $[32] = imageId, $[33] = src, $[34] = t12) : t12 = $[34];
|
|
1693
1702
|
let t13;
|
|
1694
|
-
$[35] !== imageFailed || $[36] !==
|
|
1703
|
+
$[35] !== imageFailed || $[36] !== initials || $[37] !== initialsSize || $[38] !== src ? (t13 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Initials, { children: /* @__PURE__ */ jsx(InitialsLabel, { forwardedAs: "span", size: initialsSize, weight: "medium", children: initials }) }) }), $[35] = imageFailed, $[36] = initials, $[37] = initialsSize, $[38] = src, $[39] = t13) : t13 = $[39];
|
|
1695
1704
|
let t14;
|
|
1696
|
-
return $[40] !==
|
|
1705
|
+
return $[40] !== arrowPosition || $[41] !== as || $[42] !== color || $[43] !== ref || $[44] !== restProps || $[45] !== size2 || $[46] !== status || $[47] !== t10 || $[48] !== t11 || $[49] !== t12 || $[50] !== t13 || $[51] !== title ? (t14 = /* @__PURE__ */ jsxs(Root$B, { 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: [
|
|
1697
1706
|
t11,
|
|
1698
1707
|
t12,
|
|
1699
1708
|
t13
|
|
1700
|
-
] }), $[40] =
|
|
1709
|
+
] }), $[40] = arrowPosition, $[41] = as, $[42] = color, $[43] = ref, $[44] = restProps, $[45] = size2, $[46] = status, $[47] = t10, $[48] = t11, $[49] = t12, $[50] = t13, $[51] = title, $[52] = t14) : t14 = $[52], t14;
|
|
1701
1710
|
});
|
|
1702
1711
|
Avatar.displayName = "ForwardRef(Avatar)";
|
|
1703
1712
|
function _responsiveAvatarCounterSizeStyle(props) {
|
|
@@ -1750,9 +1759,9 @@ const Root$A = styled.div(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseS
|
|
|
1750
1759
|
t1 = t2;
|
|
1751
1760
|
const fontSize2 = t1;
|
|
1752
1761
|
let t3;
|
|
1753
|
-
$[3] !==
|
|
1762
|
+
$[3] !== count || $[4] !== fontSize2 ? (t3 = /* @__PURE__ */ jsx(Label, { as: "span", size: fontSize2, weight: "medium", children: count }), $[3] = count, $[4] = fontSize2, $[5] = t3) : t3 = $[5];
|
|
1754
1763
|
let t4;
|
|
1755
|
-
return $[6] !==
|
|
1764
|
+
return $[6] !== ref || $[7] !== size2 || $[8] !== t3 ? (t4 = /* @__PURE__ */ jsx(Root$A, { $size: size2, "data-ui": "AvatarCounter", ref, children: t3 }), $[6] = ref, $[7] = size2, $[8] = t3, $[9] = t4) : t4 = $[9], t4;
|
|
1756
1765
|
});
|
|
1757
1766
|
AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
|
|
1758
1767
|
const BASE_STYLES = css`
|
|
@@ -1785,13 +1794,13 @@ function responsiveAvatarStackSizeStyle(props) {
|
|
|
1785
1794
|
}
|
|
1786
1795
|
const Root$z = styled.div(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = forwardRef(function(props, ref) {
|
|
1787
1796
|
const $ = c(15);
|
|
1788
|
-
let
|
|
1797
|
+
let childrenProp, restProps, t0, t1;
|
|
1789
1798
|
$[0] !== props ? ({
|
|
1790
1799
|
children: childrenProp,
|
|
1791
1800
|
maxLength: t0,
|
|
1792
1801
|
size: t1,
|
|
1793
1802
|
...restProps
|
|
1794
|
-
} = props, $[0] = props, $[1] =
|
|
1803
|
+
} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1) : (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]);
|
|
1795
1804
|
const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, children = Children.toArray(childrenProp).filter(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 = Root$z, t2 = "AvatarStack", t3 = len === 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }) }), t4 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 }) });
|
|
1796
1805
|
let t5;
|
|
1797
1806
|
$[5] !== size2 ? (t5 = (child, childIndex) => /* @__PURE__ */ jsx("div", { children: cloneElement(child, {
|
|
@@ -1799,16 +1808,16 @@ const Root$z = styled.div(responsiveAvatarStackSizeStyle, avatarStackStyle), Ava
|
|
|
1799
1808
|
}) }, String(childIndex)), $[5] = size2, $[6] = t5) : t5 = $[6];
|
|
1800
1809
|
const t6 = visibleChildren.map(t5);
|
|
1801
1810
|
let t7;
|
|
1802
|
-
return $[7] !== T0 || $[8] !==
|
|
1811
|
+
return $[7] !== T0 || $[8] !== ref || $[9] !== restProps || $[10] !== size2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t6 ? (t7 = /* @__PURE__ */ jsxs(T0, { "data-ui": t2, ...restProps, ref, $size: size2, children: [
|
|
1803
1812
|
t3,
|
|
1804
1813
|
t4,
|
|
1805
1814
|
t6
|
|
1806
|
-
] }), $[7] = T0, $[8] =
|
|
1815
|
+
] }), $[7] = T0, $[8] = ref, $[9] = restProps, $[10] = size2, $[11] = t3, $[12] = t4, $[13] = t6, $[14] = t7) : t7 = $[14], t7;
|
|
1807
1816
|
});
|
|
1808
1817
|
AvatarStack.displayName = "ForwardRef(AvatarStack)";
|
|
1809
1818
|
const Root$y = styled.div(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = forwardRef(function(props, ref) {
|
|
1810
1819
|
const $ = c(59);
|
|
1811
|
-
let
|
|
1820
|
+
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;
|
|
1812
1821
|
$[0] !== props ? ({
|
|
1813
1822
|
as: t0,
|
|
1814
1823
|
column,
|
|
@@ -1837,10 +1846,10 @@ const Root$y = styled.div(boxStyle, flexItemStyle, responsiveBoxStyle, responsiv
|
|
|
1837
1846
|
rowEnd,
|
|
1838
1847
|
sizing,
|
|
1839
1848
|
...restProps
|
|
1840
|
-
} = props, $[0] = props, $[1] =
|
|
1849
|
+
} = 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]);
|
|
1841
1850
|
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);
|
|
1842
1851
|
let t30;
|
|
1843
|
-
return $[28] !==
|
|
1852
|
+
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__ */ jsx(Root$y, { "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;
|
|
1844
1853
|
});
|
|
1845
1854
|
Box.displayName = "ForwardRef(Box)";
|
|
1846
1855
|
function textBaseStyle(props) {
|
|
@@ -1919,7 +1928,7 @@ const Root$x = styled.div(responsiveTextFont, responsiveTextAlignStyle, textBase
|
|
|
1919
1928
|
overflow: clip;
|
|
1920
1929
|
`, Text = forwardRef(function(props, ref) {
|
|
1921
1930
|
const $ = c(22);
|
|
1922
|
-
let
|
|
1931
|
+
let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
1923
1932
|
$[0] !== props ? ({
|
|
1924
1933
|
accent: t0,
|
|
1925
1934
|
align,
|
|
@@ -1929,7 +1938,7 @@ const Root$x = styled.div(responsiveTextFont, responsiveTextAlignStyle, textBase
|
|
|
1929
1938
|
textOverflow,
|
|
1930
1939
|
weight,
|
|
1931
1940
|
...restProps
|
|
1932
|
-
} = props, $[0] = props, $[1] =
|
|
1941
|
+
} = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight) : (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]);
|
|
1933
1942
|
const accent = t0 === void 0 ? !1 : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 2 : t2;
|
|
1934
1943
|
let children = childrenProp;
|
|
1935
1944
|
if (textOverflow === "ellipsis") {
|
|
@@ -1940,7 +1949,7 @@ const Root$x = styled.div(responsiveTextFont, responsiveTextAlignStyle, textBase
|
|
|
1940
1949
|
let t5;
|
|
1941
1950
|
$[11] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
|
|
1942
1951
|
let t6;
|
|
1943
|
-
return $[13] !==
|
|
1952
|
+
return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsx(Root$x, { "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;
|
|
1944
1953
|
});
|
|
1945
1954
|
Text.displayName = "ForwardRef(Text)";
|
|
1946
1955
|
function badgeStyle(props) {
|
|
@@ -1960,7 +1969,7 @@ function badgeStyle(props) {
|
|
|
1960
1969
|
}
|
|
1961
1970
|
const Root$w = styled(Box)(responsiveRadiusStyle, badgeStyle), Badge = forwardRef(function(props, ref) {
|
|
1962
1971
|
const $ = c(17);
|
|
1963
|
-
let t0, t1, t2, t3
|
|
1972
|
+
let children, restProps, t0, t1, t2, t3;
|
|
1964
1973
|
if ($[0] !== props) {
|
|
1965
1974
|
const {
|
|
1966
1975
|
children: t42,
|
|
@@ -1971,19 +1980,19 @@ const Root$w = styled(Box)(responsiveRadiusStyle, badgeStyle), Badge = forwardRe
|
|
|
1971
1980
|
tone: t8,
|
|
1972
1981
|
...t9
|
|
1973
1982
|
} = props;
|
|
1974
|
-
children = t42, t0 = t52, t1 = t62, t2 = t72, t3 = t8, restProps = t9, $[0] = props, $[1] =
|
|
1983
|
+
children = t42, t0 = t52, t1 = t62, t2 = t72, t3 = t8, restProps = t9, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2, $[6] = t3;
|
|
1975
1984
|
} else
|
|
1976
|
-
|
|
1985
|
+
children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
|
|
1977
1986
|
const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? "full" : t2, tone = t3 === void 0 ? "default" : t3, t4 = useArrayProp(radius), t5 = useArrayProp(padding);
|
|
1978
1987
|
let t6;
|
|
1979
|
-
$[7] !==
|
|
1988
|
+
$[7] !== children || $[8] !== fontSize2 ? (t6 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children }), $[7] = children, $[8] = fontSize2, $[9] = t6) : t6 = $[9];
|
|
1980
1989
|
let t7;
|
|
1981
|
-
return $[10] !==
|
|
1990
|
+
return $[10] !== ref || $[11] !== restProps || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== tone ? (t7 = /* @__PURE__ */ jsx(Root$w, { "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;
|
|
1982
1991
|
});
|
|
1983
1992
|
Badge.displayName = "ForwardRef(Badge)";
|
|
1984
1993
|
const Root$v = styled(Box)(flexItemStyle, responsiveFlexStyle), Flex = forwardRef(function(props, ref) {
|
|
1985
1994
|
const $ = c(17);
|
|
1986
|
-
let
|
|
1995
|
+
let align, as, gap, justify, restProps, t0, wrap;
|
|
1987
1996
|
$[0] !== props ? ({
|
|
1988
1997
|
align,
|
|
1989
1998
|
as,
|
|
@@ -1992,10 +2001,10 @@ const Root$v = styled(Box)(flexItemStyle, responsiveFlexStyle), Flex = forwardRe
|
|
|
1992
2001
|
justify,
|
|
1993
2002
|
wrap,
|
|
1994
2003
|
...restProps
|
|
1995
|
-
} = props, $[0] = props, $[1] =
|
|
2004
|
+
} = 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]);
|
|
1996
2005
|
const direction = t0 === void 0 ? "row" : t0, t1 = useArrayProp(align), t2 = useArrayProp(direction), t3 = useArrayProp(gap), t4 = useArrayProp(justify), t5 = useArrayProp(wrap);
|
|
1997
2006
|
let t6;
|
|
1998
|
-
return $[8] !==
|
|
2007
|
+
return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$v, { "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;
|
|
1999
2008
|
});
|
|
2000
2009
|
Flex.displayName = "ForwardRef(Flex)";
|
|
2001
2010
|
const rotate$1 = keyframes`
|
|
@@ -2193,7 +2202,7 @@ const Root$t = styled.button(responsiveRadiusStyle, buttonBaseStyles, buttonColo
|
|
|
2193
2202
|
box-shadow: inherit;
|
|
2194
2203
|
`, Button = forwardRef(function(props, ref) {
|
|
2195
2204
|
const $ = c(64);
|
|
2196
|
-
let
|
|
2205
|
+
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;
|
|
2197
2206
|
$[0] !== props ? ({
|
|
2198
2207
|
children,
|
|
2199
2208
|
disabled,
|
|
@@ -2220,12 +2229,12 @@ const Root$t = styled.button(responsiveRadiusStyle, buttonBaseStyles, buttonColo
|
|
|
2220
2229
|
muted: t8,
|
|
2221
2230
|
width,
|
|
2222
2231
|
...restProps
|
|
2223
|
-
} = props, $[0] = props, $[1] =
|
|
2232
|
+
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = loading, $[6] = paddingBottomProp, $[7] = paddingLeftProp, $[8] = paddingRightProp, $[9] = paddingTopProp, $[10] = paddingXProp, $[11] = paddingYProp, $[12] = restProps, $[13] = selected, $[14] = t0, $[15] = t1, $[16] = t2, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = t6, $[21] = t7, $[22] = t8, $[23] = text, $[24] = textAlign, $[25] = width) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], loading = $[5], paddingBottomProp = $[6], paddingLeftProp = $[7], paddingRightProp = $[8], paddingTopProp = $[9], paddingXProp = $[10], paddingYProp = $[11], restProps = $[12], selected = $[13], t0 = $[14], t1 = $[15], t2 = $[16], t3 = $[17], t4 = $[18], t5 = $[19], t6 = $[20], t7 = $[21], t8 = $[22], text = $[23], textAlign = $[24], width = $[25]);
|
|
2224
2233
|
const fontSize2 = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, tone = t6 === void 0 ? "default" : t6, type = t7 === void 0 ? "button" : t7, muted = t8 === void 0 ? !1 : t8, {
|
|
2225
2234
|
button
|
|
2226
2235
|
} = useTheme_v2(), justify = useArrayProp(justifyProp), padding = useArrayProp(paddingProp), paddingX = useArrayProp(paddingXProp), paddingY = useArrayProp(paddingYProp), paddingTop = useArrayProp(paddingTopProp), paddingBottom = useArrayProp(paddingBottomProp), paddingLeft = useArrayProp(paddingLeftProp), paddingRight = useArrayProp(paddingRightProp), radius = useArrayProp(radiusProp), space = useArrayProp(spaceProp);
|
|
2227
2236
|
let t9, t10;
|
|
2228
|
-
$[26] !== padding || $[27] !==
|
|
2237
|
+
$[26] !== padding || $[27] !== paddingBottom || $[28] !== paddingLeft || $[29] !== paddingRight || $[30] !== paddingTop || $[31] !== paddingX || $[32] !== paddingY ? (t10 = {
|
|
2229
2238
|
padding,
|
|
2230
2239
|
paddingX,
|
|
2231
2240
|
paddingY,
|
|
@@ -2233,12 +2242,12 @@ const Root$t = styled.button(responsiveRadiusStyle, buttonBaseStyles, buttonColo
|
|
|
2233
2242
|
paddingBottom,
|
|
2234
2243
|
paddingLeft,
|
|
2235
2244
|
paddingRight
|
|
2236
|
-
}, $[26] = padding, $[27] =
|
|
2245
|
+
}, $[26] = padding, $[27] = paddingBottom, $[28] = paddingLeft, $[29] = paddingRight, $[30] = paddingTop, $[31] = paddingX, $[32] = paddingY, $[33] = t10) : t10 = $[33], t9 = t10;
|
|
2237
2246
|
const boxProps = t9, t11 = !!(loading || disabled), t12 = selected ? "" : void 0, t13 = !!(loading || disabled);
|
|
2238
2247
|
let t14;
|
|
2239
2248
|
$[34] !== loading ? (t14 = !!loading && /* @__PURE__ */ jsx(LoadingBox, { children: /* @__PURE__ */ jsx(Spinner, {}) }), $[34] = loading, $[35] = t14) : t14 = $[35];
|
|
2240
2249
|
let t15;
|
|
2241
|
-
$[36] !== IconComponent || $[37] !==
|
|
2250
|
+
$[36] !== IconComponent || $[37] !== IconRightComponent || $[38] !== boxProps || $[39] !== button || $[40] !== fontSize2 || $[41] !== justify || $[42] !== muted || $[43] !== space || $[44] !== text || $[45] !== textAlign ? (t15 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxs(Flex, { as: "span", justify, gap: space, children: [
|
|
2242
2251
|
IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
|
|
2243
2252
|
isValidElement(IconComponent) && IconComponent,
|
|
2244
2253
|
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
@@ -2248,15 +2257,15 @@ const Root$t = styled.button(responsiveRadiusStyle, buttonBaseStyles, buttonColo
|
|
|
2248
2257
|
isValidElement(IconRightComponent) && IconRightComponent,
|
|
2249
2258
|
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
2250
2259
|
] })
|
|
2251
|
-
] }) }), $[36] = IconComponent, $[37] =
|
|
2260
|
+
] }) }), $[36] = IconComponent, $[37] = IconRightComponent, $[38] = boxProps, $[39] = button, $[40] = fontSize2, $[41] = justify, $[42] = muted, $[43] = space, $[44] = text, $[45] = textAlign, $[46] = t15) : t15 = $[46];
|
|
2252
2261
|
let t16;
|
|
2253
|
-
$[47] !==
|
|
2262
|
+
$[47] !== boxProps || $[48] !== children ? (t16 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children }), $[47] = boxProps, $[48] = children, $[49] = t16) : t16 = $[49];
|
|
2254
2263
|
let t17;
|
|
2255
|
-
return $[50] !==
|
|
2264
|
+
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__ */ jsxs(Root$t, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t11, "data-selected": t12, disabled: t13, ref, type, $width: width, children: [
|
|
2256
2265
|
t14,
|
|
2257
2266
|
t15,
|
|
2258
2267
|
t16
|
|
2259
|
-
] }), $[50] =
|
|
2268
|
+
] }), $[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, $[63] = t17) : t17 = $[63], t17;
|
|
2260
2269
|
});
|
|
2261
2270
|
Button.displayName = "ForwardRef(Button)";
|
|
2262
2271
|
function cardStyle(props) {
|
|
@@ -2409,7 +2418,7 @@ function cardColorStyle(props) {
|
|
|
2409
2418
|
}
|
|
2410
2419
|
const Root$s = styled(Box)(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = forwardRef(function(props, ref) {
|
|
2411
2420
|
const $ = c(42);
|
|
2412
|
-
let
|
|
2421
|
+
let asProp, border2, borderBottom2, borderLeft2, borderRight2, borderTop2, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
|
|
2413
2422
|
$[0] !== props ? ({
|
|
2414
2423
|
__unstable_checkered: t0,
|
|
2415
2424
|
__unstable_focusRing: t1,
|
|
@@ -2427,12 +2436,12 @@ const Root$s = styled(Box)(responsiveBorderStyle, responsiveRadiusStyle, respons
|
|
|
2427
2436
|
shadow,
|
|
2428
2437
|
tone: t3,
|
|
2429
2438
|
...restProps
|
|
2430
|
-
} = props, $[0] = props, $[1] =
|
|
2439
|
+
} = 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]);
|
|
2431
2440
|
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, 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;
|
|
2432
2441
|
let t16;
|
|
2433
|
-
$[17] !==
|
|
2442
|
+
$[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__ */ jsx(Root$s, { "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];
|
|
2434
2443
|
let t17;
|
|
2435
|
-
return $[38] !== scheme || $[39] !==
|
|
2444
|
+
return $[38] !== scheme || $[39] !== t16 || $[40] !== tone ? (t17 = /* @__PURE__ */ jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[38] = scheme, $[39] = t16, $[40] = tone, $[41] = t17) : t17 = $[41], t17;
|
|
2436
2445
|
});
|
|
2437
2446
|
Card.displayName = "ForwardRef(Card)";
|
|
2438
2447
|
function checkboxBaseStyles() {
|
|
@@ -2575,7 +2584,7 @@ function inputElementStyles(props) {
|
|
|
2575
2584
|
}
|
|
2576
2585
|
const Root$r = styled.div(checkboxBaseStyles), Input$5 = styled.input(inputElementStyles), Checkbox = forwardRef(function(props, forwardedRef) {
|
|
2577
2586
|
const $ = c(25);
|
|
2578
|
-
let
|
|
2587
|
+
let checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
|
|
2579
2588
|
$[0] !== props ? ({
|
|
2580
2589
|
checked,
|
|
2581
2590
|
className,
|
|
@@ -2585,7 +2594,7 @@ const Root$r = styled.div(checkboxBaseStyles), Input$5 = styled.input(inputEleme
|
|
|
2585
2594
|
readOnly,
|
|
2586
2595
|
style,
|
|
2587
2596
|
...restProps
|
|
2588
|
-
} = props, $[0] = props, $[1] =
|
|
2597
|
+
} = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = customValidity, $[4] = disabled, $[5] = indeterminate, $[6] = readOnly, $[7] = restProps, $[8] = style) : (checked = $[1], className = $[2], customValidity = $[3], disabled = $[4], indeterminate = $[5], readOnly = $[6], restProps = $[7], style = $[8]);
|
|
2589
2598
|
const ref = useRef(null);
|
|
2590
2599
|
let t0;
|
|
2591
2600
|
$[9] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[9] = t0) : t0 = $[9], useImperativeHandle(forwardedRef, t0);
|
|
@@ -2595,7 +2604,7 @@ const Root$r = styled.div(checkboxBaseStyles), Input$5 = styled.input(inputEleme
|
|
|
2595
2604
|
}, t2 = [indeterminate], $[10] = indeterminate, $[11] = t1, $[12] = t2) : (t1 = $[11], t2 = $[12]), useEffect(t1, t2), useCustomValidity(ref, customValidity);
|
|
2596
2605
|
const t3 = !disabled && readOnly ? "" : void 0, t4 = customValidity ? "" : void 0, t5 = disabled || readOnly;
|
|
2597
2606
|
let t6;
|
|
2598
|
-
$[13] !==
|
|
2607
|
+
$[13] !== checked || $[14] !== readOnly || $[15] !== restProps || $[16] !== t3 || $[17] !== t4 || $[18] !== t5 ? (t6 = /* @__PURE__ */ jsx(Input$5, { "data-read-only": t3, "data-error": t4, ...restProps, checked, disabled: t5, type: "checkbox", readOnly, ref }), $[13] = checked, $[14] = readOnly, $[15] = restProps, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6) : t6 = $[19];
|
|
2599
2608
|
let t7;
|
|
2600
2609
|
$[20] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsxs("span", { children: [
|
|
2601
2610
|
/* @__PURE__ */ jsx(CheckmarkIcon, {}),
|
|
@@ -2758,27 +2767,27 @@ function codeBaseStyle() {
|
|
|
2758
2767
|
}
|
|
2759
2768
|
const Root$q = styled.pre(codeBaseStyle, responsiveCodeFontStyle), Code = forwardRef(function(props, ref) {
|
|
2760
2769
|
const $ = c(23);
|
|
2761
|
-
let
|
|
2770
|
+
let children, languageProp, restProps, t0, weight;
|
|
2762
2771
|
$[0] !== props ? ({
|
|
2763
2772
|
children,
|
|
2764
2773
|
language: languageProp,
|
|
2765
2774
|
size: t0,
|
|
2766
2775
|
weight,
|
|
2767
2776
|
...restProps
|
|
2768
|
-
} = props, $[0] = props, $[1] =
|
|
2777
|
+
} = props, $[0] = props, $[1] = children, $[2] = languageProp, $[3] = restProps, $[4] = t0, $[5] = weight) : (children = $[1], languageProp = $[2], restProps = $[3], t0 = $[4], weight = $[5]);
|
|
2769
2778
|
const size2 = t0 === void 0 ? 2 : t0, language = typeof languageProp == "string" ? languageProp : void 0;
|
|
2770
2779
|
let t1;
|
|
2771
2780
|
$[6] !== language ? (t1 = language ? Refractor.hasLanguage(language) : !1, $[6] = language, $[7] = t1) : t1 = $[7];
|
|
2772
2781
|
const registered = t1, t2 = useArrayProp(size2);
|
|
2773
2782
|
let t3;
|
|
2774
|
-
$[8] !==
|
|
2783
|
+
$[8] !== children || $[9] !== language || $[10] !== registered ? (t3 = !(language && registered) && /* @__PURE__ */ jsx("code", { children }), $[8] = children, $[9] = language, $[10] = registered, $[11] = t3) : t3 = $[11];
|
|
2775
2784
|
let t4;
|
|
2776
|
-
$[12] !==
|
|
2785
|
+
$[12] !== children || $[13] !== language || $[14] !== registered ? (t4 = language && registered && /* @__PURE__ */ jsx(Refractor, { inline: !0, language, value: String(children) }), $[12] = children, $[13] = language, $[14] = registered, $[15] = t4) : t4 = $[15];
|
|
2777
2786
|
let t5;
|
|
2778
|
-
return $[16] !==
|
|
2787
|
+
return $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== weight ? (t5 = /* @__PURE__ */ jsxs(Root$q, { "data-ui": "Code", ...restProps, $size: t2, $weight: weight, ref, children: [
|
|
2779
2788
|
t3,
|
|
2780
2789
|
t4
|
|
2781
|
-
] }), $[16] =
|
|
2790
|
+
] }), $[16] = ref, $[17] = restProps, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = weight, $[22] = t5) : t5 = $[22], t5;
|
|
2782
2791
|
});
|
|
2783
2792
|
Code.displayName = "ForwardRef(Code)";
|
|
2784
2793
|
const BASE_STYLE$1 = {
|
|
@@ -2799,20 +2808,20 @@ function responsiveContainerWidthStyle(props) {
|
|
|
2799
2808
|
}
|
|
2800
2809
|
const Root$p = styled(Box)(containerBaseStyle, responsiveContainerWidthStyle), Container = forwardRef(function(props, ref) {
|
|
2801
2810
|
const $ = c(9);
|
|
2802
|
-
let
|
|
2811
|
+
let as, restProps, t0;
|
|
2803
2812
|
$[0] !== props ? ({
|
|
2804
2813
|
as,
|
|
2805
2814
|
width: t0,
|
|
2806
2815
|
...restProps
|
|
2807
|
-
} = props, $[0] = props, $[1] =
|
|
2816
|
+
} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0) : (as = $[1], restProps = $[2], t0 = $[3]);
|
|
2808
2817
|
const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
2809
2818
|
let t2;
|
|
2810
|
-
return $[4] !==
|
|
2819
|
+
return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t1 ? (t2 = /* @__PURE__ */ jsx(Root$p, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t1, $[8] = t2) : t2 = $[8], t2;
|
|
2811
2820
|
});
|
|
2812
2821
|
Container.displayName = "ForwardRef(Container)";
|
|
2813
2822
|
const Root$o = styled(Box)(responsiveGridStyle), Grid = forwardRef(function(props, ref) {
|
|
2814
2823
|
const $ = c(26);
|
|
2815
|
-
let as,
|
|
2824
|
+
let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, restProps, rows;
|
|
2816
2825
|
$[0] !== props ? ({
|
|
2817
2826
|
as,
|
|
2818
2827
|
autoRows,
|
|
@@ -2825,10 +2834,10 @@ const Root$o = styled(Box)(responsiveGridStyle), Grid = forwardRef(function(prop
|
|
|
2825
2834
|
rows,
|
|
2826
2835
|
children,
|
|
2827
2836
|
...restProps
|
|
2828
|
-
} = props, $[0] = props, $[1] = as, $[2] =
|
|
2837
|
+
} = 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]);
|
|
2829
2838
|
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);
|
|
2830
2839
|
let t9;
|
|
2831
|
-
return $[12] !==
|
|
2840
|
+
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__ */ jsx(Root$o, { "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;
|
|
2832
2841
|
});
|
|
2833
2842
|
Grid.displayName = "ForwardRef(Grid)";
|
|
2834
2843
|
function headingBaseStyle(props) {
|
|
@@ -2898,7 +2907,7 @@ const Root$n = styled.div(headingBaseStyle, responsiveTextAlignStyle, responsive
|
|
|
2898
2907
|
overflow: clip;
|
|
2899
2908
|
`, Heading = forwardRef(function(props, ref) {
|
|
2900
2909
|
const $ = c(22);
|
|
2901
|
-
let
|
|
2910
|
+
let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
2902
2911
|
$[0] !== props ? ({
|
|
2903
2912
|
accent: t0,
|
|
2904
2913
|
align,
|
|
@@ -2908,7 +2917,7 @@ const Root$n = styled.div(headingBaseStyle, responsiveTextAlignStyle, responsive
|
|
|
2908
2917
|
textOverflow,
|
|
2909
2918
|
weight,
|
|
2910
2919
|
...restProps
|
|
2911
|
-
} = props, $[0] = props, $[1] =
|
|
2920
|
+
} = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight) : (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]);
|
|
2912
2921
|
const accent = t0 === void 0 ? !1 : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 2 : t2;
|
|
2913
2922
|
let children = childrenProp;
|
|
2914
2923
|
if (textOverflow === "ellipsis") {
|
|
@@ -2919,7 +2928,7 @@ const Root$n = styled.div(headingBaseStyle, responsiveTextAlignStyle, responsive
|
|
|
2919
2928
|
let t5;
|
|
2920
2929
|
$[11] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
|
|
2921
2930
|
let t6;
|
|
2922
|
-
return $[13] !==
|
|
2931
|
+
return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsx(Root$n, { "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;
|
|
2923
2932
|
});
|
|
2924
2933
|
Heading.displayName = "ForwardRef(Heading)";
|
|
2925
2934
|
function inlineBaseStyle() {
|
|
@@ -2951,13 +2960,13 @@ function inlineSpaceStyle(props) {
|
|
|
2951
2960
|
}
|
|
2952
2961
|
const Root$m = styled(Box)(inlineBaseStyle, inlineSpaceStyle), Inline = forwardRef(function(props, ref) {
|
|
2953
2962
|
const $ = c(13);
|
|
2954
|
-
let
|
|
2963
|
+
let as, childrenProp, restProps, space;
|
|
2955
2964
|
$[0] !== props ? ({
|
|
2956
2965
|
as,
|
|
2957
2966
|
children: childrenProp,
|
|
2958
2967
|
space,
|
|
2959
2968
|
...restProps
|
|
2960
|
-
} = props, $[0] = props, $[1] =
|
|
2969
|
+
} = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = restProps, $[4] = space) : (as = $[1], childrenProp = $[2], restProps = $[3], space = $[4]);
|
|
2961
2970
|
let t0, t1;
|
|
2962
2971
|
if ($[5] !== childrenProp) {
|
|
2963
2972
|
let t22;
|
|
@@ -2967,7 +2976,7 @@ const Root$m = styled(Box)(inlineBaseStyle, inlineSpaceStyle), Inline = forwardR
|
|
|
2967
2976
|
t0 = t1;
|
|
2968
2977
|
const children = t0, t2 = useArrayProp(space);
|
|
2969
2978
|
let t3;
|
|
2970
|
-
return $[8] !==
|
|
2979
|
+
return $[8] !== as || $[9] !== children || $[10] !== restProps || $[11] !== t2 ? (t3 = /* @__PURE__ */ jsx(Root$m, { "data-ui": "Inline", ...restProps, $space: t2, forwardedAs: as, ref, children }), $[8] = as, $[9] = children, $[10] = restProps, $[11] = t2, $[12] = t3) : t3 = $[12], t3;
|
|
2971
2980
|
});
|
|
2972
2981
|
Inline.displayName = "ForwardRef(Inline)";
|
|
2973
2982
|
function kbdStyle() {
|
|
@@ -2989,21 +2998,21 @@ function kbdStyle() {
|
|
|
2989
2998
|
}
|
|
2990
2999
|
const Root$l = styled.kbd(responsiveRadiusStyle, kbdStyle), KBD = forwardRef(function(props, ref) {
|
|
2991
3000
|
const $ = c(17);
|
|
2992
|
-
let
|
|
3001
|
+
let children, restProps, t0, t1, t2;
|
|
2993
3002
|
$[0] !== props ? ({
|
|
2994
3003
|
children,
|
|
2995
3004
|
fontSize: t0,
|
|
2996
3005
|
padding: t1,
|
|
2997
3006
|
radius: t2,
|
|
2998
3007
|
...restProps
|
|
2999
|
-
} = props, $[0] = props, $[1] =
|
|
3008
|
+
} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2) : (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]);
|
|
3000
3009
|
const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, t3 = useArrayProp(t2 === void 0 ? 2 : t2);
|
|
3001
3010
|
let t4;
|
|
3002
|
-
$[6] !==
|
|
3011
|
+
$[6] !== children || $[7] !== fontSize2 ? (t4 = /* @__PURE__ */ jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[6] = children, $[7] = fontSize2, $[8] = t4) : t4 = $[8];
|
|
3003
3012
|
let t5;
|
|
3004
3013
|
$[9] !== padding || $[10] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { as: "span", padding, children: t4 }), $[9] = padding, $[10] = t4, $[11] = t5) : t5 = $[11];
|
|
3005
3014
|
let t6;
|
|
3006
|
-
return $[12] !==
|
|
3015
|
+
return $[12] !== ref || $[13] !== restProps || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$l, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[12] = ref, $[13] = restProps, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
|
|
3007
3016
|
});
|
|
3008
3017
|
KBD.displayName = "ForwardRef(KBD)";
|
|
3009
3018
|
const origin = {
|
|
@@ -3127,13 +3136,13 @@ const Root$k = styled.div(({
|
|
|
3127
3136
|
fill: var(--card-bg-color);
|
|
3128
3137
|
`, Arrow = forwardRef(function(props, ref) {
|
|
3129
3138
|
const $ = c(24);
|
|
3130
|
-
let
|
|
3139
|
+
let h, restProps, t0, w;
|
|
3131
3140
|
$[0] !== props ? ({
|
|
3132
3141
|
width: w,
|
|
3133
3142
|
height: h,
|
|
3134
3143
|
radius: t0,
|
|
3135
3144
|
...restProps
|
|
3136
|
-
} = props, $[0] = props, $[1] =
|
|
3145
|
+
} = props, $[0] = props, $[1] = h, $[2] = restProps, $[3] = t0, $[4] = w) : (h = $[1], restProps = $[2], t0 = $[3], w = $[4]);
|
|
3137
3146
|
const radius = t0 === void 0 ? 0 : t0, {
|
|
3138
3147
|
card
|
|
3139
3148
|
} = useTheme_v2(), strokeWidth = card.shadow.outline, center = w / 2, points = [{
|
|
@@ -3163,13 +3172,13 @@ const Root$k = styled.div(({
|
|
|
3163
3172
|
let t5;
|
|
3164
3173
|
$[11] !== fillPath ? (t5 = /* @__PURE__ */ jsx(ShapePath, { d: fillPath }), $[11] = fillPath, $[12] = t5) : t5 = $[12];
|
|
3165
3174
|
let t6;
|
|
3166
|
-
$[13] !==
|
|
3175
|
+
$[13] !== t1 || $[14] !== t2 || $[15] !== t4 || $[16] !== t5 || $[17] !== w ? (t6 = /* @__PURE__ */ jsxs("svg", { width: w, height: w, viewBox: t1, children: [
|
|
3167
3176
|
t2,
|
|
3168
3177
|
t4,
|
|
3169
3178
|
t5
|
|
3170
|
-
] }), $[13] =
|
|
3179
|
+
] }), $[13] = t1, $[14] = t2, $[15] = t4, $[16] = t5, $[17] = w, $[18] = t6) : t6 = $[18];
|
|
3171
3180
|
let t7;
|
|
3172
|
-
return $[19] !==
|
|
3181
|
+
return $[19] !== ref || $[20] !== restProps || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ jsx(Root$k, { ...restProps, $w: w, ref, children: t6 }), $[19] = ref, $[20] = restProps, $[21] = t6, $[22] = w, $[23] = t7) : t7 = $[23], t7;
|
|
3173
3182
|
});
|
|
3174
3183
|
Arrow.displayName = "ForwardRef(Arrow)";
|
|
3175
3184
|
const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);
|
|
@@ -3185,7 +3194,7 @@ function BoundaryElementProvider(props) {
|
|
|
3185
3194
|
}, $[0] = element, $[1] = t1) : t1 = $[1], t0 = t1;
|
|
3186
3195
|
const value = t0;
|
|
3187
3196
|
let t2;
|
|
3188
|
-
return $[2] !==
|
|
3197
|
+
return $[2] !== children || $[3] !== value ? (t2 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t2) : t2 = $[4], t2;
|
|
3189
3198
|
}
|
|
3190
3199
|
BoundaryElementProvider.displayName = "BoundaryElementProvider";
|
|
3191
3200
|
function isRecord(value) {
|
|
@@ -3223,12 +3232,12 @@ function findMinBreakpoints(media, width) {
|
|
|
3223
3232
|
}
|
|
3224
3233
|
const ElementQuery = forwardRef(function(props, forwardedRef) {
|
|
3225
3234
|
const $ = c(18), theme = useTheme_v2();
|
|
3226
|
-
let _media,
|
|
3235
|
+
let _media, children, restProps;
|
|
3227
3236
|
$[0] !== props ? ({
|
|
3228
3237
|
children,
|
|
3229
3238
|
media: _media,
|
|
3230
3239
|
...restProps
|
|
3231
|
-
} = props, $[0] = props, $[1] = _media, $[2] =
|
|
3240
|
+
} = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps) : (_media = $[1], children = $[2], restProps = $[3]);
|
|
3232
3241
|
const media = _media ?? theme.media, [element, setElement] = useState(null), elementSize = useElementSize(element);
|
|
3233
3242
|
let t0;
|
|
3234
3243
|
t0 = elementSize?.border.width ?? window.innerWidth;
|
|
@@ -3252,7 +3261,7 @@ const ElementQuery = forwardRef(function(props, forwardedRef) {
|
|
|
3252
3261
|
let t5, t6;
|
|
3253
3262
|
$[10] !== element ? (t5 = () => element, t6 = [element], $[10] = element, $[11] = t5, $[12] = t6) : (t5 = $[11], t6 = $[12]), useImperativeHandle(forwardedRef, t5, t6);
|
|
3254
3263
|
let t7;
|
|
3255
|
-
return $[13] !==
|
|
3264
|
+
return $[13] !== children || $[14] !== max || $[15] !== min || $[16] !== restProps ? (t7 = /* @__PURE__ */ jsx("div", { "data-ui": "ElementQuery", ...restProps, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[13] = children, $[14] = max, $[15] = min, $[16] = restProps, $[17] = t7) : t7 = $[17], t7;
|
|
3256
3265
|
});
|
|
3257
3266
|
ElementQuery.displayName = "ForwardRef(ElementQuery)";
|
|
3258
3267
|
class ErrorBoundary extends Component {
|
|
@@ -3409,7 +3418,7 @@ function LayerProvider(props) {
|
|
|
3409
3418
|
}, $[3] = parentRegisterChild, $[4] = setChildLayers, $[5] = t3) : t3 = $[5];
|
|
3410
3419
|
const registerChild = t3;
|
|
3411
3420
|
let t4, t5;
|
|
3412
|
-
$[6] !==
|
|
3421
|
+
$[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
|
|
3413
3422
|
let t6, t7;
|
|
3414
3423
|
$[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t7 = {
|
|
3415
3424
|
version: 0,
|
|
@@ -3421,21 +3430,21 @@ function LayerProvider(props) {
|
|
|
3421
3430
|
}, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t7) : t7 = $[15], t6 = t7;
|
|
3422
3431
|
const value = t6;
|
|
3423
3432
|
let t8;
|
|
3424
|
-
return $[16] !==
|
|
3433
|
+
return $[16] !== children || $[17] !== value ? (t8 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t8) : t8 = $[18], t8;
|
|
3425
3434
|
}
|
|
3426
3435
|
LayerProvider.displayName = "LayerProvider";
|
|
3427
3436
|
const Root$j = styled.div({
|
|
3428
3437
|
position: "relative"
|
|
3429
3438
|
}), LayerChildren = forwardRef(function(props, forwardedRef) {
|
|
3430
3439
|
const $ = c(22);
|
|
3431
|
-
let
|
|
3440
|
+
let children, onActivate, onFocus, restProps, t0;
|
|
3432
3441
|
$[0] !== props ? ({
|
|
3433
3442
|
children,
|
|
3434
3443
|
onActivate,
|
|
3435
3444
|
onFocus,
|
|
3436
3445
|
style: t0,
|
|
3437
3446
|
...restProps
|
|
3438
|
-
} = props, $[0] = props, $[1] =
|
|
3447
|
+
} = props, $[0] = props, $[1] = children, $[2] = onActivate, $[3] = onFocus, $[4] = restProps, $[5] = t0) : (children = $[1], onActivate = $[2], onFocus = $[3], restProps = $[4], t0 = $[5]);
|
|
3439
3448
|
const style = t0 === void 0 ? EMPTY_RECORD : t0, {
|
|
3440
3449
|
zIndex,
|
|
3441
3450
|
isTopLayer
|
|
@@ -3449,11 +3458,11 @@ const Root$j = styled.div({
|
|
|
3449
3458
|
}), isTopLayerRef.current = isTopLayer;
|
|
3450
3459
|
}, t3 = [isTopLayer, onActivate], $[7] = isTopLayer, $[8] = onActivate, $[9] = t2, $[10] = t3) : (t2 = $[9], t3 = $[10]), useEffect(t2, t3);
|
|
3451
3460
|
let t4;
|
|
3452
|
-
$[11] !==
|
|
3461
|
+
$[11] !== isTopLayer || $[12] !== onFocus ? (t4 = (event) => {
|
|
3453
3462
|
onFocus?.(event);
|
|
3454
3463
|
const rootElement = ref.current, target = document.activeElement;
|
|
3455
3464
|
!isTopLayer || !rootElement || !target || isHTMLElement(target) && containsOrEqualsElement(rootElement, target) && (lastFocusedRef.current = target);
|
|
3456
|
-
}, $[11] =
|
|
3465
|
+
}, $[11] = isTopLayer, $[12] = onFocus, $[13] = t4) : t4 = $[13];
|
|
3457
3466
|
const handleFocus = t4;
|
|
3458
3467
|
let t5;
|
|
3459
3468
|
$[14] !== style || $[15] !== zIndex ? (t5 = {
|
|
@@ -3461,20 +3470,20 @@ const Root$j = styled.div({
|
|
|
3461
3470
|
zIndex
|
|
3462
3471
|
}, $[14] = style, $[15] = zIndex, $[16] = t5) : t5 = $[16];
|
|
3463
3472
|
let t6;
|
|
3464
|
-
return $[17] !==
|
|
3473
|
+
return $[17] !== children || $[18] !== handleFocus || $[19] !== restProps || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$j, { ...restProps, "data-ui": "Layer", onFocus: handleFocus, ref, style: t5, children }), $[17] = children, $[18] = handleFocus, $[19] = restProps, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
|
|
3465
3474
|
}), Layer = forwardRef(function(props, ref) {
|
|
3466
3475
|
const $ = c(11);
|
|
3467
|
-
let
|
|
3476
|
+
let children, restProps, t0;
|
|
3468
3477
|
$[0] !== props ? ({
|
|
3469
3478
|
children,
|
|
3470
3479
|
zOffset: t0,
|
|
3471
3480
|
...restProps
|
|
3472
|
-
} = props, $[0] = props, $[1] =
|
|
3481
|
+
} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0) : (children = $[1], restProps = $[2], t0 = $[3]);
|
|
3473
3482
|
const zOffset = t0 === void 0 ? 1 : t0;
|
|
3474
3483
|
let t1;
|
|
3475
|
-
$[4] !==
|
|
3484
|
+
$[4] !== children || $[5] !== ref || $[6] !== restProps ? (t1 = /* @__PURE__ */ jsx(LayerChildren, { ...restProps, ref, children }), $[4] = children, $[5] = ref, $[6] = restProps, $[7] = t1) : t1 = $[7];
|
|
3476
3485
|
let t2;
|
|
3477
|
-
return $[8] !==
|
|
3486
|
+
return $[8] !== t1 || $[9] !== zOffset ? (t2 = /* @__PURE__ */ jsx(LayerProvider, { zOffset, children: t1 }), $[8] = t1, $[9] = zOffset, $[10] = t2) : t2 = $[10], t2;
|
|
3478
3487
|
});
|
|
3479
3488
|
Layer.displayName = "ForwardRef(Layer)";
|
|
3480
3489
|
const key = "@sanity/ui/context/portal", elementKey = Symbol.for(`${key}/element`);
|
|
@@ -3515,15 +3524,15 @@ function PortalProvider(props) {
|
|
|
3515
3524
|
let t0;
|
|
3516
3525
|
const t1 = boundaryElement || null, t2 = element || fallbackElement;
|
|
3517
3526
|
let t3;
|
|
3518
|
-
$[0] !==
|
|
3527
|
+
$[0] !== elements || $[1] !== t1 || $[2] !== t2 ? (t3 = {
|
|
3519
3528
|
version: 0,
|
|
3520
3529
|
boundaryElement: t1,
|
|
3521
3530
|
element: t2,
|
|
3522
3531
|
elements
|
|
3523
|
-
}, $[0] =
|
|
3532
|
+
}, $[0] = elements, $[1] = t1, $[2] = t2, $[3] = t3) : t3 = $[3], t0 = t3;
|
|
3524
3533
|
const value = t0;
|
|
3525
3534
|
let t4;
|
|
3526
|
-
return $[4] !==
|
|
3535
|
+
return $[4] !== children || $[5] !== value ? (t4 = /* @__PURE__ */ jsx(PortalContext.Provider, { value, children }), $[4] = children, $[5] = value, $[6] = t4) : t4 = $[6], t4;
|
|
3527
3536
|
}
|
|
3528
3537
|
function _temp2$1() {
|
|
3529
3538
|
return null;
|
|
@@ -3535,10 +3544,11 @@ PortalProvider.displayName = "PortalProvider";
|
|
|
3535
3544
|
const emptySubscribe = () => () => {
|
|
3536
3545
|
};
|
|
3537
3546
|
function useUnique(value) {
|
|
3538
|
-
const
|
|
3539
|
-
|
|
3547
|
+
const [cachedValue, setCachedValue] = useState(value);
|
|
3548
|
+
let result = cachedValue;
|
|
3549
|
+
return isEqual(cachedValue, value) || (setCachedValue(value), result = value), result;
|
|
3540
3550
|
}
|
|
3541
|
-
function
|
|
3551
|
+
function isEqual(objA, objB) {
|
|
3542
3552
|
if (!objA || !objB)
|
|
3543
3553
|
return objA === objB;
|
|
3544
3554
|
const keysA = Object.keys(objA), keysB = Object.keys(objB);
|
|
@@ -3557,7 +3567,7 @@ const Root$i = styled.div`
|
|
|
3557
3567
|
children
|
|
3558
3568
|
} = props;
|
|
3559
3569
|
let t0;
|
|
3560
|
-
return $[0] !== as || $[1] !==
|
|
3570
|
+
return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ jsx(Root$i, { "aria-hidden": !0, as, "data-ui": "SrOnly", ref, children }), $[0] = as, $[1] = children, $[2] = ref, $[3] = t0) : t0 = $[3], t0;
|
|
3561
3571
|
});
|
|
3562
3572
|
SrOnly.displayName = "ForwardRef(SrOnly)";
|
|
3563
3573
|
const Root$h = styled.div`
|
|
@@ -3568,7 +3578,7 @@ const Root$h = styled.div`
|
|
|
3568
3578
|
right: 0;
|
|
3569
3579
|
`, VirtualList = forwardRef(function(props, forwardedRef) {
|
|
3570
3580
|
const $ = c(56);
|
|
3571
|
-
let
|
|
3581
|
+
let getItemKey, onChange, renderItem, restProps, t0, t1, t2;
|
|
3572
3582
|
$[0] !== props ? ({
|
|
3573
3583
|
as: t0,
|
|
3574
3584
|
gap: t1,
|
|
@@ -3577,7 +3587,7 @@ const Root$h = styled.div`
|
|
|
3577
3587
|
onChange,
|
|
3578
3588
|
renderItem,
|
|
3579
3589
|
...restProps
|
|
3580
|
-
} = props, $[0] = props, $[1] =
|
|
3590
|
+
} = props, $[0] = props, $[1] = getItemKey, $[2] = onChange, $[3] = renderItem, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = t2) : (getItemKey = $[1], onChange = $[2], renderItem = $[3], restProps = $[4], t0 = $[5], t1 = $[6], t2 = $[7]);
|
|
3581
3591
|
const as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1;
|
|
3582
3592
|
let t3;
|
|
3583
3593
|
$[8] !== t2 ? (t3 = t2 === void 0 ? [] : t2, $[8] = t2, $[9] = t3) : t3 = $[9];
|
|
@@ -3631,8 +3641,8 @@ const Root$h = styled.div`
|
|
|
3631
3641
|
};
|
|
3632
3642
|
}, t8 = [], $[14] = t7, $[15] = t8) : (t7 = $[14], t8 = $[15]), useEffect(t7, t8);
|
|
3633
3643
|
const len = items.length, height = itemHeight ? len * (itemHeight + space[gap]) - space[gap] : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0;
|
|
3634
|
-
let
|
|
3635
|
-
$[16] !==
|
|
3644
|
+
let t10, t9;
|
|
3645
|
+
$[16] !== fromIndex || $[17] !== gap || $[18] !== itemHeight || $[19] !== onChange || $[20] !== scrollHeight || $[21] !== scrollTop || $[22] !== space || $[23] !== toIndex ? (t9 = () => {
|
|
3636
3646
|
onChange && onChange({
|
|
3637
3647
|
fromIndex,
|
|
3638
3648
|
gap: space[gap],
|
|
@@ -3641,7 +3651,7 @@ const Root$h = styled.div`
|
|
|
3641
3651
|
scrollTop,
|
|
3642
3652
|
toIndex
|
|
3643
3653
|
});
|
|
3644
|
-
}, t10 = [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex], $[16] =
|
|
3654
|
+
}, t10 = [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex], $[16] = fromIndex, $[17] = gap, $[18] = itemHeight, $[19] = onChange, $[20] = scrollHeight, $[21] = scrollTop, $[22] = space, $[23] = toIndex, $[24] = t10, $[25] = t9) : (t10 = $[24], t9 = $[25]), useEffect(t9, t10);
|
|
3645
3655
|
let t11;
|
|
3646
3656
|
bb0: {
|
|
3647
3657
|
if (!renderItem || items.length === 0) {
|
|
@@ -3657,14 +3667,14 @@ const Root$h = styled.div`
|
|
|
3657
3667
|
break bb0;
|
|
3658
3668
|
}
|
|
3659
3669
|
let t122;
|
|
3660
|
-
if ($[31] !==
|
|
3670
|
+
if ($[31] !== fromIndex || $[32] !== gap || $[33] !== getItemKey || $[34] !== itemHeight || $[35] !== items || $[36] !== renderItem || $[37] !== space || $[38] !== toIndex) {
|
|
3661
3671
|
let t132;
|
|
3662
|
-
$[40] !== fromIndex || $[41] !==
|
|
3672
|
+
$[40] !== fromIndex || $[41] !== gap || $[42] !== getItemKey || $[43] !== itemHeight || $[44] !== renderItem || $[45] !== space ? (t132 = (item, _itemIndex) => {
|
|
3663
3673
|
const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
|
|
3664
3674
|
return /* @__PURE__ */ jsx(ItemWrapper, { style: {
|
|
3665
3675
|
top: itemIndex * (itemHeight + space[gap])
|
|
3666
3676
|
}, children: node }, key2);
|
|
3667
|
-
}, $[40] = fromIndex, $[41] =
|
|
3677
|
+
}, $[40] = fromIndex, $[41] = gap, $[42] = getItemKey, $[43] = itemHeight, $[44] = renderItem, $[45] = space, $[46] = t132) : t132 = $[46], t122 = items.slice(fromIndex, toIndex).map(t132), $[31] = fromIndex, $[32] = gap, $[33] = getItemKey, $[34] = itemHeight, $[35] = items, $[36] = renderItem, $[37] = space, $[38] = toIndex, $[39] = t122;
|
|
3668
3678
|
} else
|
|
3669
3679
|
t122 = $[39];
|
|
3670
3680
|
t11 = t122;
|
|
@@ -3676,7 +3686,7 @@ const Root$h = styled.div`
|
|
|
3676
3686
|
}, $[47] = height, $[48] = t13) : t13 = $[48], t12 = t13;
|
|
3677
3687
|
const wrapperStyle = t12;
|
|
3678
3688
|
let t14;
|
|
3679
|
-
$[49] !==
|
|
3689
|
+
$[49] !== children || $[50] !== wrapperStyle ? (t14 = /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[49] = children, $[50] = wrapperStyle, $[51] = t14) : t14 = $[51];
|
|
3680
3690
|
let t15;
|
|
3681
3691
|
return $[52] !== as || $[53] !== restProps || $[54] !== t14 ? (t15 = /* @__PURE__ */ jsx(Root$h, { as, "data-ui": "VirtualList", ...restProps, ref, children: t14 }), $[52] = as, $[53] = restProps, $[54] = t14, $[55] = t15) : t15 = $[55], t15;
|
|
3682
3692
|
});
|
|
@@ -3765,7 +3775,7 @@ const MotionCard$1 = styled(motion(Card))`
|
|
|
3765
3775
|
}
|
|
3766
3776
|
`, PopoverCard = memo(forwardRef(function(props, ref) {
|
|
3767
3777
|
const $ = c(60);
|
|
3768
|
-
let
|
|
3778
|
+
let animate, arrow2, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
|
|
3769
3779
|
$[0] !== props ? ({
|
|
3770
3780
|
__unstable_margins: marginsProp,
|
|
3771
3781
|
animate,
|
|
@@ -3789,7 +3799,7 @@ const MotionCard$1 = styled(motion(Card))`
|
|
|
3789
3799
|
x: xProp,
|
|
3790
3800
|
y: yProp,
|
|
3791
3801
|
...restProps
|
|
3792
|
-
} = props, $[0] = props, $[1] =
|
|
3802
|
+
} = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = originX, $[9] = originY, $[10] = overflow, $[11] = padding, $[12] = placement, $[13] = radius, $[14] = restProps, $[15] = scheme, $[16] = shadow, $[17] = strategy, $[18] = style, $[19] = tone, $[20] = width, $[21] = xProp, $[22] = yProp) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], originX = $[8], originY = $[9], overflow = $[10], padding = $[11], placement = $[12], radius = $[13], restProps = $[14], scheme = $[15], shadow = $[16], strategy = $[17], style = $[18], tone = $[19], width = $[20], xProp = $[21], yProp = $[22]);
|
|
3793
3803
|
const {
|
|
3794
3804
|
zIndex
|
|
3795
3805
|
} = useLayer();
|
|
@@ -3799,7 +3809,7 @@ const MotionCard$1 = styled(motion(Card))`
|
|
|
3799
3809
|
let t1;
|
|
3800
3810
|
const t2 = animate ? "transform" : void 0;
|
|
3801
3811
|
let t3;
|
|
3802
|
-
$[23] !==
|
|
3812
|
+
$[23] !== originX || $[24] !== originY || $[25] !== strategy || $[26] !== style || $[27] !== t2 || $[28] !== width || $[29] !== x || $[30] !== y || $[31] !== zIndex ? (t3 = {
|
|
3803
3813
|
left: x,
|
|
3804
3814
|
originX,
|
|
3805
3815
|
originY,
|
|
@@ -3809,7 +3819,7 @@ const MotionCard$1 = styled(motion(Card))`
|
|
|
3809
3819
|
zIndex,
|
|
3810
3820
|
willChange: t2,
|
|
3811
3821
|
...style
|
|
3812
|
-
}, $[23] =
|
|
3822
|
+
}, $[23] = originX, $[24] = originY, $[25] = strategy, $[26] = style, $[27] = t2, $[28] = width, $[29] = x, $[30] = y, $[31] = zIndex, $[32] = t3) : t3 = $[32], t1 = t3;
|
|
3813
3823
|
const rootStyle2 = t1;
|
|
3814
3824
|
let t4;
|
|
3815
3825
|
const t5 = arrowX !== null ? arrowX : void 0, t6 = arrowY !== null ? arrowY : void 0;
|
|
@@ -3824,16 +3834,16 @@ const MotionCard$1 = styled(motion(Card))`
|
|
|
3824
3834
|
let t9;
|
|
3825
3835
|
$[36] !== animate ? (t9 = animate ? POPOVER_MOTION_PROPS : {}, $[36] = animate, $[37] = t9) : t9 = $[37];
|
|
3826
3836
|
let t10;
|
|
3827
|
-
$[38] !==
|
|
3837
|
+
$[38] !== children || $[39] !== padding ? (t10 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[38] = children, $[39] = padding, $[40] = t10) : t10 = $[40];
|
|
3828
3838
|
let t11;
|
|
3829
3839
|
$[41] !== overflow || $[42] !== t10 ? (t11 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, overflow, children: t10 }), $[41] = overflow, $[42] = t10, $[43] = t11) : t11 = $[43];
|
|
3830
3840
|
let t12;
|
|
3831
3841
|
$[44] !== arrow2 || $[45] !== arrowRef || $[46] !== arrowStyle ? (t12 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[44] = arrow2, $[45] = arrowRef, $[46] = arrowStyle, $[47] = t12) : t12 = $[47];
|
|
3832
3842
|
let t13;
|
|
3833
|
-
return $[48] !==
|
|
3843
|
+
return $[48] !== placement || $[49] !== radius || $[50] !== ref || $[51] !== rootStyle2 || $[52] !== scheme || $[53] !== shadow || $[54] !== t11 || $[55] !== t12 || $[56] !== t8 || $[57] !== t9 || $[58] !== tone ? (t13 = /* @__PURE__ */ jsxs(MotionCard$1, { "data-ui": "Popover", ...t8, "data-placement": placement, radius, ref, scheme, shadow, sizing: "border", style: rootStyle2, tone, ...t9, children: [
|
|
3834
3844
|
t11,
|
|
3835
3845
|
t12
|
|
3836
|
-
] }), $[48] =
|
|
3846
|
+
] }), $[48] = placement, $[49] = radius, $[50] = ref, $[51] = rootStyle2, $[52] = scheme, $[53] = shadow, $[54] = t11, $[55] = t12, $[56] = t8, $[57] = t9, $[58] = tone, $[59] = t13) : t13 = $[59], t13;
|
|
3837
3847
|
}));
|
|
3838
3848
|
PopoverCard.displayName = "Memo(ForwardRef(PopoverCard))";
|
|
3839
3849
|
const Popover = memo(forwardRef(function(props, forwardedRef) {
|
|
@@ -4087,7 +4097,7 @@ function inputElementStyle(props) {
|
|
|
4087
4097
|
}
|
|
4088
4098
|
const Root$g = styled.div(radioBaseStyle), Input$4 = styled.input(inputElementStyle), Radio = forwardRef(function(props, forwardedRef) {
|
|
4089
4099
|
const $ = c(19);
|
|
4090
|
-
let customValidity, disabled, readOnly, restProps,
|
|
4100
|
+
let className, customValidity, disabled, readOnly, restProps, style;
|
|
4091
4101
|
$[0] !== props ? ({
|
|
4092
4102
|
className,
|
|
4093
4103
|
disabled,
|
|
@@ -4095,13 +4105,13 @@ const Root$g = styled.div(radioBaseStyle), Input$4 = styled.input(inputElementSt
|
|
|
4095
4105
|
customValidity,
|
|
4096
4106
|
readOnly,
|
|
4097
4107
|
...restProps
|
|
4098
|
-
} = props, $[0] = props, $[1] =
|
|
4108
|
+
} = props, $[0] = props, $[1] = className, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = style) : (className = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], style = $[6]);
|
|
4099
4109
|
const ref = useRef(null);
|
|
4100
4110
|
let t0;
|
|
4101
4111
|
$[7] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[7] = t0) : t0 = $[7], useImperativeHandle(forwardedRef, t0), useCustomValidity(ref, customValidity);
|
|
4102
4112
|
const t1 = !disabled && readOnly ? "" : void 0, t2 = customValidity ? "" : void 0, t3 = disabled || readOnly;
|
|
4103
4113
|
let t4;
|
|
4104
|
-
$[8] !==
|
|
4114
|
+
$[8] !== readOnly || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsx(Input$4, { "data-read-only": t1, "data-error": t2, ...restProps, disabled: t3, readOnly, ref, type: "radio" }), $[8] = readOnly, $[9] = restProps, $[10] = t1, $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13];
|
|
4105
4115
|
let t5;
|
|
4106
4116
|
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsx("span", {}), $[14] = t5) : t5 = $[14];
|
|
4107
4117
|
let t6;
|
|
@@ -4255,7 +4265,7 @@ const selectStyle = {
|
|
|
4255
4265
|
iconBox: iconBoxStyle
|
|
4256
4266
|
}, Root$f = styled.div(selectStyle.root), Input$3 = styled.select(selectStyle.input), IconBox = styled(Box)(selectStyle.iconBox), Select = forwardRef(function(props, forwardedRef) {
|
|
4257
4267
|
const $ = c(29);
|
|
4258
|
-
let
|
|
4268
|
+
let children, customValidity, disabled, readOnly, restProps, t0, t1, t2, t3;
|
|
4259
4269
|
$[0] !== props ? ({
|
|
4260
4270
|
children,
|
|
4261
4271
|
customValidity,
|
|
@@ -4266,13 +4276,13 @@ const selectStyle = {
|
|
|
4266
4276
|
readOnly,
|
|
4267
4277
|
space: t3,
|
|
4268
4278
|
...restProps
|
|
4269
|
-
} = props, $[0] = props, $[1] =
|
|
4279
|
+
} = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3) : (children = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9]);
|
|
4270
4280
|
const fontSize2 = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, space = t3 === void 0 ? 3 : t3, ref = useRef(null);
|
|
4271
4281
|
let t4;
|
|
4272
4282
|
$[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
|
|
4273
4283
|
const t5 = !disabled && readOnly ? "" : void 0, t6 = useArrayProp(fontSize2), t7 = useArrayProp(padding), t8 = useArrayProp(radius), t9 = useArrayProp(space), t10 = disabled || readOnly;
|
|
4274
4284
|
let t11;
|
|
4275
|
-
$[11] !==
|
|
4285
|
+
$[11] !== children || $[12] !== restProps || $[13] !== t10 || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 || $[17] !== t8 || $[18] !== t9 ? (t11 = /* @__PURE__ */ jsx(Input$3, { "data-read-only": t5, "data-ui": "Select", ...restProps, $fontSize: t6, $padding: t7, $radius: t8, $space: t9, disabled: t10, ref, children }), $[11] = children, $[12] = restProps, $[13] = t10, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8, $[18] = t9, $[19] = t11) : t11 = $[19];
|
|
4276
4286
|
let t12;
|
|
4277
4287
|
$[20] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[20] = t12) : t12 = $[20];
|
|
4278
4288
|
let t13;
|
|
@@ -4310,15 +4320,15 @@ function responsiveStackSpaceStyle(props) {
|
|
|
4310
4320
|
}
|
|
4311
4321
|
const Root$e = styled(Box)(stackBaseStyle, responsiveStackSpaceStyle), Stack = forwardRef(function(props, ref) {
|
|
4312
4322
|
const $ = c(10);
|
|
4313
|
-
let as,
|
|
4323
|
+
let as, restProps, space;
|
|
4314
4324
|
$[0] !== props ? ({
|
|
4315
4325
|
as,
|
|
4316
4326
|
space,
|
|
4317
4327
|
...restProps
|
|
4318
|
-
} = props, $[0] = props, $[1] = as, $[2] =
|
|
4328
|
+
} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = space) : (as = $[1], restProps = $[2], space = $[3]);
|
|
4319
4329
|
const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(space);
|
|
4320
4330
|
let t2;
|
|
4321
|
-
return $[4] !==
|
|
4331
|
+
return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t0 || $[8] !== t1 ? (t2 = /* @__PURE__ */ jsx(Root$e, { "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;
|
|
4322
4332
|
});
|
|
4323
4333
|
Stack.displayName = "ForwardRef(Stack)";
|
|
4324
4334
|
function switchBaseStyles() {
|
|
@@ -4476,7 +4486,7 @@ function switchThumbStyles(props) {
|
|
|
4476
4486
|
}
|
|
4477
4487
|
const Root$d = styled.span(switchBaseStyles), Input$2 = styled.input(switchInputStyles), Representation = styled.span(switchRepresentationStyles), Track = styled.span(switchTrackStyles), Thumb = styled.span(switchThumbStyles), Switch = forwardRef(function(props, forwardedRef) {
|
|
4478
4488
|
const $ = c(26);
|
|
4479
|
-
let
|
|
4489
|
+
let checked, className, disabled, indeterminate, readOnly, restProps, style;
|
|
4480
4490
|
$[0] !== props ? ({
|
|
4481
4491
|
checked,
|
|
4482
4492
|
className,
|
|
@@ -4485,7 +4495,7 @@ const Root$d = styled.span(switchBaseStyles), Input$2 = styled.input(switchInput
|
|
|
4485
4495
|
readOnly,
|
|
4486
4496
|
style,
|
|
4487
4497
|
...restProps
|
|
4488
|
-
} = props, $[0] = props, $[1] =
|
|
4498
|
+
} = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = disabled, $[4] = indeterminate, $[5] = readOnly, $[6] = restProps, $[7] = style) : (checked = $[1], className = $[2], disabled = $[3], indeterminate = $[4], readOnly = $[5], restProps = $[6], style = $[7]);
|
|
4489
4499
|
const ref = useRef(null);
|
|
4490
4500
|
let t0;
|
|
4491
4501
|
$[8] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[8] = t0) : t0 = $[8], useImperativeHandle(forwardedRef, t0);
|
|
@@ -4495,7 +4505,7 @@ const Root$d = styled.span(switchBaseStyles), Input$2 = styled.input(switchInput
|
|
|
4495
4505
|
}, t2 = [indeterminate], $[9] = indeterminate, $[10] = t1, $[11] = t2) : (t1 = $[10], t2 = $[11]), useEffect(t1, t2);
|
|
4496
4506
|
const t3 = !disabled && readOnly ? "" : void 0, t4 = indeterminate !== !0 && checked, t5 = disabled || readOnly;
|
|
4497
4507
|
let t6;
|
|
4498
|
-
$[12] !==
|
|
4508
|
+
$[12] !== restProps || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Input$2, { "data-read-only": t3, ...restProps, checked: t4, disabled: t5, type: "checkbox", ref }), $[12] = restProps, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16];
|
|
4499
4509
|
let t7;
|
|
4500
4510
|
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsx(Track, {}), $[17] = t7) : t7 = $[17];
|
|
4501
4511
|
let t8;
|
|
@@ -4517,7 +4527,7 @@ const Root$c = styled.span(textInputRootStyle), InputRoot$1 = styled.span`
|
|
|
4517
4527
|
position: relative;
|
|
4518
4528
|
`, Input$1 = styled.textarea(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation$1 = styled.div(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function(props, forwardedRef) {
|
|
4519
4529
|
const $ = c(29);
|
|
4520
|
-
let t0, t1, t2, t3, t4,
|
|
4530
|
+
let __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
|
|
4521
4531
|
$[0] !== props ? ({
|
|
4522
4532
|
border: t0,
|
|
4523
4533
|
customValidity,
|
|
@@ -4528,16 +4538,16 @@ const Root$c = styled.span(textInputRootStyle), InputRoot$1 = styled.span`
|
|
|
4528
4538
|
weight,
|
|
4529
4539
|
__unstable_disableFocusRing,
|
|
4530
4540
|
...restProps
|
|
4531
|
-
} = props, $[0] = props, $[1] =
|
|
4541
|
+
} = props, $[0] = props, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = weight) : (__unstable_disableFocusRing = $[1], customValidity = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], weight = $[9]);
|
|
4532
4542
|
const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize2 = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = useRef(null), rootTheme = useRootTheme();
|
|
4533
4543
|
let t5;
|
|
4534
4544
|
$[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
|
|
4535
4545
|
const t6 = rootTheme.scheme, t7 = rootTheme.tone, t8 = useArrayProp(fontSize2), t9 = useArrayProp(padding), t10 = rootTheme.scheme, t11 = useArrayProp(0);
|
|
4536
4546
|
let t12;
|
|
4537
|
-
$[11] !==
|
|
4547
|
+
$[11] !== disabled || $[12] !== restProps || $[13] !== rootTheme.scheme || $[14] !== rootTheme.tone || $[15] !== t11 || $[16] !== t8 || $[17] !== t9 || $[18] !== weight ? (t12 = /* @__PURE__ */ jsx(Input$1, { "data-as": "textarea", "data-scheme": t6, "data-tone": t7, ...restProps, $fontSize: t8, $padding: t9, $scheme: t10, $space: t11, $tone: rootTheme.tone, $weight: weight, disabled, ref }), $[11] = disabled, $[12] = restProps, $[13] = rootTheme.scheme, $[14] = rootTheme.tone, $[15] = t11, $[16] = t8, $[17] = t9, $[18] = weight, $[19] = t12) : t12 = $[19];
|
|
4538
4548
|
const t13 = useArrayProp(radius), t14 = border2 ? "" : void 0;
|
|
4539
4549
|
let t15;
|
|
4540
|
-
$[20] !==
|
|
4550
|
+
$[20] !== __unstable_disableFocusRing || $[21] !== rootTheme.scheme || $[22] !== rootTheme.tone || $[23] !== t13 || $[24] !== t14 ? (t15 = /* @__PURE__ */ jsx(Presentation$1, { $radius: t13, $unstableDisableFocusRing: __unstable_disableFocusRing, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone }), $[20] = __unstable_disableFocusRing, $[21] = rootTheme.scheme, $[22] = rootTheme.tone, $[23] = t13, $[24] = t14, $[25] = t15) : t15 = $[25];
|
|
4541
4551
|
let t16;
|
|
4542
4552
|
return $[26] !== t12 || $[27] !== t15 ? (t16 = /* @__PURE__ */ jsx(Root$c, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxs(InputRoot$1, { children: [
|
|
4543
4553
|
t12,
|
|
@@ -4593,7 +4603,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4593
4603
|
}
|
|
4594
4604
|
}), TextInput = forwardRef(function(props, forwardedRef) {
|
|
4595
4605
|
const $ = c(86);
|
|
4596
|
-
let
|
|
4606
|
+
let IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
|
|
4597
4607
|
$[0] !== props ? ({
|
|
4598
4608
|
__unstable_disableFocusRing,
|
|
4599
4609
|
border: t0,
|
|
@@ -4613,7 +4623,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4613
4623
|
type: t6,
|
|
4614
4624
|
weight,
|
|
4615
4625
|
...restProps
|
|
4616
|
-
} = props, $[0] = props, $[1] =
|
|
4626
|
+
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] = onClear, $[7] = prefix, $[8] = readOnly, $[9] = restProps, $[10] = suffix, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5, $[17] = t6, $[18] = weight) : (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], onClear = $[6], prefix = $[7], readOnly = $[8], restProps = $[9], suffix = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16], t6 = $[17], weight = $[18]);
|
|
4617
4627
|
const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), rootTheme = useRootTheme(), fontSize2 = useArrayProp(fontSizeProp), padding = useArrayProp(paddingProp), radius = useArrayProp(radiusProp), space = useArrayProp(spaceProp), $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix;
|
|
4618
4628
|
let t7;
|
|
4619
4629
|
$[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
|
|
@@ -4639,10 +4649,10 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4639
4649
|
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
4640
4650
|
] }) }), $[29] = $hasClearButton, $[30] = IconRightComponent, $[31] = fontSize2, $[32] = padding, $[33] = t14) : t14 = $[33];
|
|
4641
4651
|
let t15;
|
|
4642
|
-
$[34] !== $hasPrefix || $[35] !==
|
|
4652
|
+
$[34] !== $hasPrefix || $[35] !== $hasSuffix || $[36] !== __unstable_disableFocusRing || $[37] !== radius || $[38] !== rootTheme.scheme || $[39] !== rootTheme.tone || $[40] !== t12 || $[41] !== t13 || $[42] !== t14 ? (t15 = /* @__PURE__ */ jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t12, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
|
|
4643
4653
|
t13,
|
|
4644
4654
|
t14
|
|
4645
|
-
] }), $[34] = $hasPrefix, $[35] =
|
|
4655
|
+
] }), $[34] = $hasPrefix, $[35] = $hasSuffix, $[36] = __unstable_disableFocusRing, $[37] = radius, $[38] = rootTheme.scheme, $[39] = rootTheme.tone, $[40] = t12, $[41] = t13, $[42] = t14, $[43] = t15) : t15 = $[43], t11 = t15;
|
|
4646
4656
|
const presentationNode = t11;
|
|
4647
4657
|
let t16, t17;
|
|
4648
4658
|
if ($[44] !== padding) {
|
|
@@ -4664,25 +4674,25 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4664
4674
|
t20 = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
|
|
4665
4675
|
const clearButtonProps = t20;
|
|
4666
4676
|
let t21, t22;
|
|
4667
|
-
$[50] !==
|
|
4677
|
+
$[50] !== clearButton || $[51] !== clearButtonBoxPadding || $[52] !== clearButtonPadding || $[53] !== clearButtonProps || $[54] !== customValidity || $[55] !== disabled || $[56] !== fontSize2 || $[57] !== handleClearClick || $[58] !== radius || $[59] !== readOnly ? (t22 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[50] = clearButton, $[51] = clearButtonBoxPadding, $[52] = clearButtonPadding, $[53] = clearButtonProps, $[54] = customValidity, $[55] = disabled, $[56] = fontSize2, $[57] = handleClearClick, $[58] = radius, $[59] = readOnly, $[60] = t22) : t22 = $[60], t21 = t22;
|
|
4668
4678
|
const clearButtonNode = t21;
|
|
4669
4679
|
let t23, t24;
|
|
4670
|
-
$[61] !==
|
|
4680
|
+
$[61] !== radius || $[62] !== suffix ? (t24 = suffix && /* @__PURE__ */ jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[61] = radius, $[62] = suffix, $[63] = t24) : t24 = $[63], t23 = t24;
|
|
4671
4681
|
const suffixNode = t23, t25 = $hasIconRight || $hasClearButton;
|
|
4672
4682
|
let t26;
|
|
4673
|
-
$[64] !==
|
|
4683
|
+
$[64] !== $hasIcon || $[65] !== disabled || $[66] !== fontSize2 || $[67] !== padding || $[68] !== readOnly || $[69] !== restProps || $[70] !== rootTheme.scheme || $[71] !== rootTheme.tone || $[72] !== space || $[73] !== t25 || $[74] !== type || $[75] !== weight ? (t26 = /* @__PURE__ */ jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t25, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[64] = $hasIcon, $[65] = disabled, $[66] = fontSize2, $[67] = padding, $[68] = readOnly, $[69] = restProps, $[70] = rootTheme.scheme, $[71] = rootTheme.tone, $[72] = space, $[73] = t25, $[74] = type, $[75] = weight, $[76] = t26) : t26 = $[76];
|
|
4674
4684
|
let t27;
|
|
4675
|
-
$[77] !==
|
|
4685
|
+
$[77] !== clearButtonNode || $[78] !== presentationNode || $[79] !== t26 ? (t27 = /* @__PURE__ */ jsxs(InputRoot, { children: [
|
|
4676
4686
|
t26,
|
|
4677
4687
|
presentationNode,
|
|
4678
4688
|
clearButtonNode
|
|
4679
|
-
] }), $[77] =
|
|
4689
|
+
] }), $[77] = clearButtonNode, $[78] = presentationNode, $[79] = t26, $[80] = t27) : t27 = $[80];
|
|
4680
4690
|
let t28;
|
|
4681
|
-
return $[81] !==
|
|
4691
|
+
return $[81] !== prefixNode || $[82] !== rootTheme.tone || $[83] !== suffixNode || $[84] !== t27 ? (t28 = /* @__PURE__ */ jsxs(Root$b, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
|
|
4682
4692
|
prefixNode,
|
|
4683
4693
|
t27,
|
|
4684
4694
|
suffixNode
|
|
4685
|
-
] }), $[81] =
|
|
4695
|
+
] }), $[81] = prefixNode, $[82] = rootTheme.tone, $[83] = suffixNode, $[84] = t27, $[85] = t28) : t28 = $[85], t28;
|
|
4686
4696
|
});
|
|
4687
4697
|
TextInput.displayName = "ForwardRef(TextInput)";
|
|
4688
4698
|
function _temp$2(event) {
|
|
@@ -4723,7 +4733,7 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
4723
4733
|
}
|
|
4724
4734
|
`, TooltipCard = memo(forwardRef(function(props, ref) {
|
|
4725
4735
|
const $ = c(42);
|
|
4726
|
-
let animate,
|
|
4736
|
+
let animate, arrow2, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
|
|
4727
4737
|
$[0] !== props ? ({
|
|
4728
4738
|
animate,
|
|
4729
4739
|
arrow: arrow2,
|
|
@@ -4740,16 +4750,16 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
4740
4750
|
shadow,
|
|
4741
4751
|
style,
|
|
4742
4752
|
...restProps
|
|
4743
|
-
} = props, $[0] = props, $[1] = animate, $[2] =
|
|
4753
|
+
} = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = restProps, $[13] = scheme, $[14] = shadow, $[15] = style) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], restProps = $[12], scheme = $[13], shadow = $[14], style = $[15]);
|
|
4744
4754
|
let t0;
|
|
4745
4755
|
const t1 = animate ? "transform" : void 0;
|
|
4746
4756
|
let t2;
|
|
4747
|
-
$[16] !== originX || $[17] !== originY || $[18] !==
|
|
4757
|
+
$[16] !== originX || $[17] !== originY || $[18] !== style || $[19] !== t1 ? (t2 = {
|
|
4748
4758
|
originX,
|
|
4749
4759
|
originY,
|
|
4750
4760
|
willChange: t1,
|
|
4751
4761
|
...style
|
|
4752
|
-
}, $[16] = originX, $[17] = originY, $[18] =
|
|
4762
|
+
}, $[16] = originX, $[17] = originY, $[18] = style, $[19] = t1, $[20] = t2) : t2 = $[20], t0 = t2;
|
|
4753
4763
|
const rootStyle2 = t0;
|
|
4754
4764
|
let t3;
|
|
4755
4765
|
const t4 = arrowX !== null ? arrowX : void 0, t5 = arrowY !== null ? arrowY : void 0;
|
|
@@ -4766,10 +4776,10 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
4766
4776
|
let t9;
|
|
4767
4777
|
$[26] !== arrow2 || $[27] !== arrowRef || $[28] !== arrowStyle ? (t9 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[26] = arrow2, $[27] = arrowRef, $[28] = arrowStyle, $[29] = t9) : t9 = $[29];
|
|
4768
4778
|
let t10;
|
|
4769
|
-
return $[30] !==
|
|
4779
|
+
return $[30] !== children || $[31] !== padding || $[32] !== placement || $[33] !== radius || $[34] !== ref || $[35] !== rootStyle2 || $[36] !== scheme || $[37] !== shadow || $[38] !== t7 || $[39] !== t8 || $[40] !== t9 ? (t10 = /* @__PURE__ */ jsxs(MotionCard, { "data-ui": "Tooltip__card", ...t7, "data-placement": placement, padding, radius, ref, scheme, shadow, style: rootStyle2, ...t8, children: [
|
|
4770
4780
|
children,
|
|
4771
4781
|
t9
|
|
4772
|
-
] }), $[30] =
|
|
4782
|
+
] }), $[30] = children, $[31] = padding, $[32] = placement, $[33] = radius, $[34] = ref, $[35] = rootStyle2, $[36] = scheme, $[37] = shadow, $[38] = t7, $[39] = t8, $[40] = t9, $[41] = t10) : t10 = $[41], t10;
|
|
4773
4783
|
}));
|
|
4774
4784
|
TooltipCard.displayName = "Memo(ForwardRef(TooltipCard))";
|
|
4775
4785
|
const TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
|
|
@@ -4784,17 +4794,17 @@ function TooltipDelayGroupProvider(props) {
|
|
|
4784
4794
|
let t0;
|
|
4785
4795
|
const t1 = isGroupActive ? 1 : openDelay;
|
|
4786
4796
|
let t2;
|
|
4787
|
-
$[0] !==
|
|
4797
|
+
$[0] !== closeDelay || $[1] !== isGroupActive || $[2] !== openTooltipId || $[3] !== setIsGroupActive || $[4] !== setOpenTooltipId || $[5] !== t1 ? (t2 = {
|
|
4788
4798
|
isGroupActive,
|
|
4789
4799
|
setIsGroupActive,
|
|
4790
4800
|
openTooltipId,
|
|
4791
4801
|
setOpenTooltipId,
|
|
4792
4802
|
openDelay: t1,
|
|
4793
4803
|
closeDelay
|
|
4794
|
-
}, $[0] =
|
|
4804
|
+
}, $[0] = closeDelay, $[1] = isGroupActive, $[2] = openTooltipId, $[3] = setIsGroupActive, $[4] = setOpenTooltipId, $[5] = t1, $[6] = t2) : t2 = $[6], t0 = t2;
|
|
4795
4805
|
const value = t0;
|
|
4796
4806
|
let t3;
|
|
4797
|
-
return $[7] !==
|
|
4807
|
+
return $[7] !== children || $[8] !== value ? (t3 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[7] = children, $[8] = value, $[9] = t3) : t3 = $[9], t3;
|
|
4798
4808
|
}
|
|
4799
4809
|
TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
|
|
4800
4810
|
const Root$a = styled(Layer)`
|
|
@@ -4929,19 +4939,19 @@ function useCloseOnMouseLeave(t0) {
|
|
|
4929
4939
|
showTooltip
|
|
4930
4940
|
} = t0;
|
|
4931
4941
|
let t1;
|
|
4932
|
-
$[0] !==
|
|
4942
|
+
$[0] !== handleIsOpenChange || $[1] !== referenceElement ? (t1 = (target, teardown) => {
|
|
4933
4943
|
referenceElement && (referenceElement === target || target instanceof Node && referenceElement.contains(target) || (handleIsOpenChange(!1), teardown()));
|
|
4934
|
-
}, $[0] =
|
|
4944
|
+
}, $[0] = handleIsOpenChange, $[1] = referenceElement, $[2] = t1) : t1 = $[2];
|
|
4935
4945
|
const onMouseMove = useEffectEvent(t1);
|
|
4936
4946
|
let t2, t3;
|
|
4937
|
-
$[3] !==
|
|
4947
|
+
$[3] !== onMouseMove || $[4] !== showTooltip ? (t2 = () => {
|
|
4938
4948
|
if (!showTooltip)
|
|
4939
4949
|
return;
|
|
4940
4950
|
const handleMouseMove = (event) => {
|
|
4941
4951
|
onMouseMove(event.target, () => window.removeEventListener("mousemove", handleMouseMove));
|
|
4942
4952
|
};
|
|
4943
4953
|
return window.addEventListener("mousemove", handleMouseMove), () => window.removeEventListener("mousemove", handleMouseMove);
|
|
4944
|
-
}, t3 = [onMouseMove, showTooltip], $[3] =
|
|
4954
|
+
}, t3 = [onMouseMove, showTooltip], $[3] = onMouseMove, $[4] = showTooltip, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), useEffect(t2, t3);
|
|
4945
4955
|
}
|
|
4946
4956
|
const Root$9 = styled.div`
|
|
4947
4957
|
line-height: 0;
|
|
@@ -4983,7 +4993,7 @@ function AutocompleteOption(props) {
|
|
|
4983
4993
|
}, $[3] = handleClick, $[4] = t1) : t1 = $[4];
|
|
4984
4994
|
const handleKeyDown = t1;
|
|
4985
4995
|
let t2;
|
|
4986
|
-
return $[5] !==
|
|
4996
|
+
return $[5] !== children || $[6] !== handleClick || $[7] !== handleKeyDown || $[8] !== id || $[9] !== selected ? (t2 = /* @__PURE__ */ jsx("li", { "aria-selected": selected, "data-ui": "AutocompleteOption", id, role: "option", onClick: handleClick, onKeyDown: handleKeyDown, children }), $[5] = children, $[6] = handleClick, $[7] = handleKeyDown, $[8] = id, $[9] = selected, $[10] = t2) : t2 = $[10], t2;
|
|
4987
4997
|
}
|
|
4988
4998
|
function autocompleteReducer(state, msg2) {
|
|
4989
4999
|
return msg2.type === "input/change" ? {
|
|
@@ -5381,24 +5391,24 @@ const Root$7 = styled(Layer)(responsivePaddingStyle, dialogStyle, responsiveDial
|
|
|
5381
5391
|
autoFocus && ref.current && focusFirstDescendant(ref.current);
|
|
5382
5392
|
}, t3 = [autoFocus, ref], $[2] = autoFocus, $[3] = t2, $[4] = t3) : (t2 = $[3], t3 = $[4]), useEffect(t2, t3);
|
|
5383
5393
|
let t4;
|
|
5384
|
-
$[5] !==
|
|
5394
|
+
$[5] !== boundaryElement || $[6] !== isTopLayer || $[7] !== onClose || $[8] !== portalElement ? (t4 = (event) => {
|
|
5385
5395
|
if (!isTopLayer || !onClose)
|
|
5386
5396
|
return;
|
|
5387
5397
|
const target = document.activeElement;
|
|
5388
5398
|
target && !isTargetWithinScope(boundaryElement, portalElement, target) || event.key === "Escape" && (event.preventDefault(), event.stopPropagation(), onClose());
|
|
5389
|
-
}, $[5] =
|
|
5399
|
+
}, $[5] = boundaryElement, $[6] = isTopLayer, $[7] = onClose, $[8] = portalElement, $[9] = t4) : t4 = $[9], useGlobalKeyDown(t4);
|
|
5390
5400
|
let t5;
|
|
5391
|
-
$[10] !==
|
|
5401
|
+
$[10] !== boundaryElement || $[11] !== isTopLayer || $[12] !== onClickOutside || $[13] !== portalElement ? (t5 = isTopLayer && onClickOutside && ((event_0) => {
|
|
5392
5402
|
const target_0 = event_0.target;
|
|
5393
5403
|
target_0 && !isTargetWithinScope(boundaryElement, portalElement, target_0) || onClickOutside();
|
|
5394
|
-
}), $[10] =
|
|
5404
|
+
}), $[10] = boundaryElement, $[11] = isTopLayer, $[12] = onClickOutside, $[13] = portalElement, $[14] = t5) : t5 = $[14];
|
|
5395
5405
|
let t6;
|
|
5396
5406
|
$[15] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => [ref.current], $[15] = t6) : t6 = $[15], useClickOutsideEvent(t5, t6);
|
|
5397
5407
|
let t7;
|
|
5398
|
-
$[16] !==
|
|
5408
|
+
$[16] !== header || $[17] !== labelId || $[18] !== onClose || $[19] !== showCloseButton || $[20] !== showHeader ? (t7 = showHeader && /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(Flex, { align: "flex-start", padding: 3, children: [
|
|
5399
5409
|
/* @__PURE__ */ jsx(Box, { flex: 1, padding: 2, children: header && /* @__PURE__ */ jsx(Text, { id: labelId, size: 1, weight: "semibold", children: header }) }),
|
|
5400
5410
|
showCloseButton && /* @__PURE__ */ jsx(Box, { flex: "none", children: /* @__PURE__ */ jsx(Button, { "aria-label": "Close dialog", disabled: !onClose, icon: CloseIcon, mode: "bleed", onClick: onClose, padding: 2 }) })
|
|
5401
|
-
] }) }), $[16] =
|
|
5411
|
+
] }) }), $[16] = header, $[17] = labelId, $[18] = onClose, $[19] = showCloseButton, $[20] = showHeader, $[21] = t7) : t7 = $[21];
|
|
5402
5412
|
let t8;
|
|
5403
5413
|
$[22] !== children ? (t8 = /* @__PURE__ */ jsx(DialogContent, { flex: 1, ref: contentRef, tabIndex: -1, children }), $[22] = children, $[23] = t8) : t8 = $[23];
|
|
5404
5414
|
let t9;
|
|
@@ -5412,14 +5422,14 @@ const Root$7 = styled(Layer)(responsivePaddingStyle, dialogStyle, responsiveDial
|
|
|
5412
5422
|
let t11;
|
|
5413
5423
|
$[30] !== radius || $[31] !== scheme || $[32] !== shadow || $[33] !== t10 ? (t11 = /* @__PURE__ */ jsx(DialogCardRoot, { radius, ref, scheme, shadow, children: t10 }), $[30] = radius, $[31] = scheme, $[32] = shadow, $[33] = t10, $[34] = t11) : t11 = $[34];
|
|
5414
5424
|
let t12;
|
|
5415
|
-
return $[35] !==
|
|
5425
|
+
return $[35] !== t11 || $[36] !== width ? (t12 = /* @__PURE__ */ jsx(DialogContainer, { "data-ui": "DialogCard", width, children: t11 }), $[35] = t11, $[36] = width, $[37] = t12) : t12 = $[37], t12;
|
|
5416
5426
|
});
|
|
5417
5427
|
DialogCard.displayName = "ForwardRef(DialogCard)";
|
|
5418
5428
|
const Dialog = forwardRef(function(props, ref) {
|
|
5419
5429
|
const $ = c(60), dialog = useDialog(), {
|
|
5420
5430
|
layer
|
|
5421
5431
|
} = useTheme_v2();
|
|
5422
|
-
let
|
|
5432
|
+
let _positionProp, _zOffsetProp, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5, t6;
|
|
5423
5433
|
$[0] !== props ? ({
|
|
5424
5434
|
__unstable_autoFocus: t0,
|
|
5425
5435
|
__unstable_hideCloseButton: t1,
|
|
@@ -5442,7 +5452,7 @@ const Dialog = forwardRef(function(props, ref) {
|
|
|
5442
5452
|
zOffset: _zOffsetProp,
|
|
5443
5453
|
animate: t6,
|
|
5444
5454
|
...restProps
|
|
5445
|
-
} = props, $[0] = props, $[1] =
|
|
5455
|
+
} = props, $[0] = props, $[1] = _positionProp, $[2] = _zOffsetProp, $[3] = children, $[4] = contentRef, $[5] = footer, $[6] = header, $[7] = id, $[8] = onActivate, $[9] = onClickOutside, $[10] = onClose, $[11] = onFocus, $[12] = portalProp, $[13] = restProps, $[14] = scheme, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6) : (_positionProp = $[1], _zOffsetProp = $[2], children = $[3], contentRef = $[4], footer = $[5], header = $[6], id = $[7], onActivate = $[8], onClickOutside = $[9], onClose = $[10], onFocus = $[11], portalProp = $[12], restProps = $[13], scheme = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21]);
|
|
5446
5456
|
const autoFocus = t0 === void 0 ? !0 : t0, hideCloseButton = t1 === void 0 ? !1 : t1, cardRadiusProp = t2 === void 0 ? 4 : t2, cardShadow = t3 === void 0 ? 3 : t3, paddingProp = t4 === void 0 ? 3 : t4, widthProp = t5 === void 0 ? 0 : t5, _animate = t6 === void 0 ? !1 : t6, positionProp = _positionProp ?? (dialog.position || "fixed"), zOffsetProp = _zOffsetProp ?? (dialog.zOffset || layer.dialog.zOffset), animate = usePrefersReducedMotion() ? !1 : _animate, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element, cardRadius = useArrayProp(cardRadiusProp), padding = useArrayProp(paddingProp), position = useArrayProp(positionProp), width = useArrayProp(widthProp), zOffset = useArrayProp(zOffsetProp), preDivRef = useRef(null), postDivRef = useRef(null), cardRef = useRef(null), focusedElementRef = useRef(null);
|
|
5447
5457
|
let t7;
|
|
5448
5458
|
$[22] !== onFocus ? (t7 = (event) => {
|
|
@@ -5478,15 +5488,15 @@ const Dialog = forwardRef(function(props, ref) {
|
|
|
5478
5488
|
let t9;
|
|
5479
5489
|
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx("div", { ref: preDivRef, tabIndex: 0 }), $[27] = t9) : t9 = $[27];
|
|
5480
5490
|
let t10;
|
|
5481
|
-
$[28] !== autoFocus || $[29] !==
|
|
5491
|
+
$[28] !== autoFocus || $[29] !== cardRadius || $[30] !== cardShadow || $[31] !== children || $[32] !== contentRef || $[33] !== footer || $[34] !== header || $[35] !== hideCloseButton || $[36] !== id || $[37] !== onClickOutside || $[38] !== onClose || $[39] !== portalProp || $[40] !== scheme || $[41] !== width ? (t10 = /* @__PURE__ */ jsx(DialogCard, { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, contentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: cardRadius, ref: cardRef, scheme, shadow: cardShadow, width, children }), $[28] = autoFocus, $[29] = cardRadius, $[30] = cardShadow, $[31] = children, $[32] = contentRef, $[33] = footer, $[34] = header, $[35] = hideCloseButton, $[36] = id, $[37] = onClickOutside, $[38] = onClose, $[39] = portalProp, $[40] = scheme, $[41] = width, $[42] = t10) : t10 = $[42];
|
|
5482
5492
|
let t11;
|
|
5483
5493
|
$[43] === Symbol.for("react.memo_cache_sentinel") ? (t11 = /* @__PURE__ */ jsx("div", { ref: postDivRef, tabIndex: 0 }), $[43] = t11) : t11 = $[43];
|
|
5484
5494
|
let t12;
|
|
5485
|
-
$[44] !==
|
|
5495
|
+
$[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__ */ jsxs(Root$7, { ...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: [
|
|
5486
5496
|
t9,
|
|
5487
5497
|
t10,
|
|
5488
5498
|
t11
|
|
5489
|
-
] }), $[44] =
|
|
5499
|
+
] }), $[44] = animate, $[45] = handleFocus, $[46] = handleRootClick, $[47] = id, $[48] = labelId, $[49] = onActivate, $[50] = padding, $[51] = position, $[52] = ref, $[53] = restProps, $[54] = t10, $[55] = zOffset, $[56] = t12) : t12 = $[56];
|
|
5490
5500
|
let t13;
|
|
5491
5501
|
return $[57] !== portalProp || $[58] !== t12 ? (t13 = /* @__PURE__ */ jsx(Portal, { __unstable_name: portalProp, children: t12 }), $[57] = portalProp, $[58] = t12, $[59] = t13) : t13 = $[59], t13;
|
|
5492
5502
|
});
|
|
@@ -5505,7 +5515,7 @@ function DialogProvider(props) {
|
|
|
5505
5515
|
}, $[0] = position, $[1] = zOffset, $[2] = t1) : t1 = $[2], t0 = t1;
|
|
5506
5516
|
const contextValue = t0;
|
|
5507
5517
|
let t2;
|
|
5508
|
-
return $[3] !==
|
|
5518
|
+
return $[3] !== children || $[4] !== contextValue ? (t2 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t2) : t2 = $[5], t2;
|
|
5509
5519
|
}
|
|
5510
5520
|
DialogProvider.displayName = "DialogProvider";
|
|
5511
5521
|
const Root$6 = styled.kbd`
|
|
@@ -5521,7 +5531,7 @@ const Root$6 = styled.kbd`
|
|
|
5521
5531
|
}
|
|
5522
5532
|
`, Hotkeys = forwardRef(function(props, ref) {
|
|
5523
5533
|
const $ = c(24);
|
|
5524
|
-
let
|
|
5534
|
+
let fontSize2, keys, padding, radius, restProps, t0;
|
|
5525
5535
|
$[0] !== props ? ({
|
|
5526
5536
|
fontSize: fontSize2,
|
|
5527
5537
|
keys,
|
|
@@ -5529,22 +5539,22 @@ const Root$6 = styled.kbd`
|
|
|
5529
5539
|
radius,
|
|
5530
5540
|
space: t0,
|
|
5531
5541
|
...restProps
|
|
5532
|
-
} = props, $[0] = props, $[1] =
|
|
5542
|
+
} = props, $[0] = props, $[1] = fontSize2, $[2] = keys, $[3] = padding, $[4] = radius, $[5] = restProps, $[6] = t0) : (fontSize2 = $[1], keys = $[2], padding = $[3], radius = $[4], restProps = $[5], t0 = $[6]);
|
|
5533
5543
|
const space = useArrayProp(t0 === void 0 ? 0.5 : t0);
|
|
5534
5544
|
if (!keys || keys.length === 0) {
|
|
5535
5545
|
let t12;
|
|
5536
5546
|
return $[7] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(Fragment, {}), $[7] = t12) : t12 = $[7], t12;
|
|
5537
5547
|
}
|
|
5538
5548
|
let t1;
|
|
5539
|
-
if ($[8] !== fontSize2 || $[9] !==
|
|
5549
|
+
if ($[8] !== fontSize2 || $[9] !== keys || $[10] !== padding || $[11] !== radius) {
|
|
5540
5550
|
let t22;
|
|
5541
|
-
$[13] !== fontSize2 || $[14] !== padding || $[15] !== radius ? (t22 = (key2, i) => /* @__PURE__ */ jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[13] = fontSize2, $[14] = padding, $[15] = radius, $[16] = t22) : t22 = $[16], t1 = keys.map(t22), $[8] = fontSize2, $[9] =
|
|
5551
|
+
$[13] !== fontSize2 || $[14] !== padding || $[15] !== radius ? (t22 = (key2, i) => /* @__PURE__ */ jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[13] = fontSize2, $[14] = padding, $[15] = radius, $[16] = t22) : t22 = $[16], t1 = keys.map(t22), $[8] = fontSize2, $[9] = keys, $[10] = padding, $[11] = radius, $[12] = t1;
|
|
5542
5552
|
} else
|
|
5543
5553
|
t1 = $[12];
|
|
5544
5554
|
let t2;
|
|
5545
5555
|
$[17] !== space || $[18] !== t1 ? (t2 = /* @__PURE__ */ jsx(Inline, { as: "span", space, children: t1 }), $[17] = space, $[18] = t1, $[19] = t2) : t2 = $[19];
|
|
5546
5556
|
let t3;
|
|
5547
|
-
return $[20] !==
|
|
5557
|
+
return $[20] !== ref || $[21] !== restProps || $[22] !== t2 ? (t3 = /* @__PURE__ */ jsx(Root$6, { "data-ui": "Hotkeys", ...restProps, ref, children: t2 }), $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3) : t3 = $[23], t3;
|
|
5548
5558
|
});
|
|
5549
5559
|
Hotkeys.displayName = "ForwardRef(Hotkeys)";
|
|
5550
5560
|
const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
|
|
@@ -5690,7 +5700,7 @@ const Root$5 = styled(Box)`
|
|
|
5690
5700
|
overflow: auto;
|
|
5691
5701
|
`, Menu = forwardRef(function(props, forwardedRef) {
|
|
5692
5702
|
const $ = c(50);
|
|
5693
|
-
let
|
|
5703
|
+
let _shouldFocus, children, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
|
|
5694
5704
|
if ($[0] !== props) {
|
|
5695
5705
|
const {
|
|
5696
5706
|
children: t22,
|
|
@@ -5708,9 +5718,9 @@ const Root$5 = styled(Box)`
|
|
|
5708
5718
|
space: t122,
|
|
5709
5719
|
...t132
|
|
5710
5720
|
} = props;
|
|
5711
|
-
children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112, t1 = t122, restProps = t132, $[0] = props, $[1] =
|
|
5721
|
+
children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112, t1 = t122, restProps = t132, $[0] = props, $[1] = _shouldFocus, $[2] = children, $[3] = onClickOutside, $[4] = onEscape, $[5] = onItemClick, $[6] = onItemSelect, $[7] = onKeyDown, $[8] = originElement, $[9] = registerElement, $[10] = restProps, $[11] = t0, $[12] = t1;
|
|
5712
5722
|
} else
|
|
5713
|
-
|
|
5723
|
+
_shouldFocus = $[1], children = $[2], onClickOutside = $[3], onEscape = $[4], onItemClick = $[5], onItemSelect = $[6], onKeyDown = $[7], originElement = $[8], registerElement = $[9], restProps = $[10], t0 = $[11], t1 = $[12];
|
|
5714
5724
|
const padding = t0 === void 0 ? 1 : t0, space = t1 === void 0 ? 1 : t1, shouldFocus = _shouldFocus ?? (props.focusFirst && "first" || props.focusLast && "last" || null), ref = useRef(null);
|
|
5715
5725
|
let t2;
|
|
5716
5726
|
$[13] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[13] = t2) : t2 = $[13], useImperativeHandle(forwardedRef, t2);
|
|
@@ -5738,9 +5748,9 @@ const Root$5 = styled(Box)`
|
|
|
5738
5748
|
}, $[18] = registerElement, $[19] = t4) : t4 = $[19];
|
|
5739
5749
|
const handleRefChange = t4;
|
|
5740
5750
|
let t5, t6;
|
|
5741
|
-
$[20] !==
|
|
5751
|
+
$[20] !== activeIndex || $[21] !== onItemSelect ? (t5 = () => {
|
|
5742
5752
|
onItemSelect && onItemSelect(activeIndex);
|
|
5743
|
-
}, t6 = [activeIndex, onItemSelect], $[20] =
|
|
5753
|
+
}, t6 = [activeIndex, onItemSelect], $[20] = activeIndex, $[21] = onItemSelect, $[22] = t5, $[23] = t6) : (t5 = $[22], t6 = $[23]), useEffect(t5, t6);
|
|
5744
5754
|
let t7;
|
|
5745
5755
|
$[24] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => [ref.current], $[24] = t7) : t7 = $[24], useClickOutsideEvent(isTopLayer && onClickOutside, t7);
|
|
5746
5756
|
let t8;
|
|
@@ -5748,7 +5758,7 @@ const Root$5 = styled(Box)`
|
|
|
5748
5758
|
isTopLayer && event.key === "Escape" && (event.stopPropagation(), onEscape && onEscape());
|
|
5749
5759
|
}, $[25] = isTopLayer, $[26] = onEscape, $[27] = t8) : t8 = $[27], useGlobalKeyDown(t8);
|
|
5750
5760
|
let t9, t10;
|
|
5751
|
-
$[28] !== activeElement || $[29] !== activeIndex || $[30] !==
|
|
5761
|
+
$[28] !== activeElement || $[29] !== activeIndex || $[30] !== handleItemMouseEnter || $[31] !== handleItemMouseLeave || $[32] !== mount || $[33] !== onClickOutside || $[34] !== onEscape || $[35] !== onItemClick || $[36] !== registerElement ? (t10 = {
|
|
5752
5762
|
version: 0,
|
|
5753
5763
|
activeElement,
|
|
5754
5764
|
activeIndex,
|
|
@@ -5761,14 +5771,14 @@ const Root$5 = styled(Box)`
|
|
|
5761
5771
|
registerElement,
|
|
5762
5772
|
onMouseEnter: handleItemMouseEnter,
|
|
5763
5773
|
onMouseLeave: handleItemMouseLeave
|
|
5764
|
-
}, $[28] = activeElement, $[29] = activeIndex, $[30] =
|
|
5774
|
+
}, $[28] = activeElement, $[29] = activeIndex, $[30] = handleItemMouseEnter, $[31] = handleItemMouseLeave, $[32] = mount, $[33] = onClickOutside, $[34] = onEscape, $[35] = onItemClick, $[36] = registerElement, $[37] = t10) : t10 = $[37], t9 = t10;
|
|
5765
5775
|
const value = t9;
|
|
5766
5776
|
let t11;
|
|
5767
|
-
$[38] !==
|
|
5777
|
+
$[38] !== children || $[39] !== space ? (t11 = /* @__PURE__ */ jsx(Stack, { space, children }), $[38] = children, $[39] = space, $[40] = t11) : t11 = $[40];
|
|
5768
5778
|
let t12;
|
|
5769
|
-
$[41] !==
|
|
5779
|
+
$[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t11 ? (t12 = /* @__PURE__ */ jsx(Root$5, { "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];
|
|
5770
5780
|
let t13;
|
|
5771
|
-
return $[47] !==
|
|
5781
|
+
return $[47] !== t12 || $[48] !== value ? (t13 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t12 }), $[47] = t12, $[48] = value, $[49] = t13) : t13 = $[49], t13;
|
|
5772
5782
|
});
|
|
5773
5783
|
Menu.displayName = "ForwardRef(Menu)";
|
|
5774
5784
|
const MenuButton = forwardRef(function(props, forwardedRef) {
|
|
@@ -5836,9 +5846,9 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
|
|
|
5836
5846
|
}, $[16] = buttonElement, $[17] = menuElements, $[18] = t12) : t12 = $[18];
|
|
5837
5847
|
const handleMenuClickOutside = t12;
|
|
5838
5848
|
let t13;
|
|
5839
|
-
$[19] !==
|
|
5849
|
+
$[19] !== buttonElement || $[20] !== disableRestoreFocusOnClose ? (t13 = () => {
|
|
5840
5850
|
setOpen(!1), !disableRestoreFocusOnClose && buttonElement && buttonElement.focus();
|
|
5841
|
-
}, $[19] =
|
|
5851
|
+
}, $[19] = buttonElement, $[20] = disableRestoreFocusOnClose, $[21] = t13) : t13 = $[21];
|
|
5842
5852
|
const handleMenuEscape = t13;
|
|
5843
5853
|
let t14;
|
|
5844
5854
|
$[22] !== menuElements ? (t14 = (event_2) => {
|
|
@@ -5852,15 +5862,15 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
|
|
|
5852
5862
|
}, $[22] = menuElements, $[23] = t14) : t14 = $[23];
|
|
5853
5863
|
const handleBlur = t14;
|
|
5854
5864
|
let t15;
|
|
5855
|
-
$[24] !==
|
|
5865
|
+
$[24] !== buttonElement || $[25] !== disableRestoreFocusOnClose ? (t15 = () => {
|
|
5856
5866
|
setOpen(!1), !disableRestoreFocusOnClose && buttonElement && buttonElement.focus();
|
|
5857
|
-
}, $[24] =
|
|
5867
|
+
}, $[24] = buttonElement, $[25] = disableRestoreFocusOnClose, $[26] = t15) : t15 = $[26];
|
|
5858
5868
|
const handleItemClick = t15;
|
|
5859
5869
|
let t16;
|
|
5860
5870
|
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t16 = (el_1) => (setChildMenuElements((els) => els.concat([el_1])), () => setChildMenuElements((els_0) => els_0.filter((_el) => _el !== el_1))), $[27] = t16) : t16 = $[27];
|
|
5861
5871
|
const registerElement = t16;
|
|
5862
5872
|
let t17;
|
|
5863
|
-
$[28] !==
|
|
5873
|
+
$[28] !== buttonElement || $[29] !== handleBlur || $[30] !== handleItemClick || $[31] !== handleMenuClickOutside || $[32] !== handleMenuEscape || $[33] !== id || $[34] !== menuProp || $[35] !== shouldFocus ? (t17 = menuProp && cloneElement(menuProp, {
|
|
5864
5874
|
"aria-labelledby": id,
|
|
5865
5875
|
onBlurCapture: handleBlur,
|
|
5866
5876
|
onClickOutside: handleMenuClickOutside,
|
|
@@ -5869,10 +5879,10 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
|
|
|
5869
5879
|
originElement: buttonElement,
|
|
5870
5880
|
registerElement,
|
|
5871
5881
|
shouldFocus
|
|
5872
|
-
}), $[28] =
|
|
5882
|
+
}), $[28] = buttonElement, $[29] = handleBlur, $[30] = handleItemClick, $[31] = handleMenuClickOutside, $[32] = handleMenuEscape, $[33] = id, $[34] = menuProp, $[35] = shouldFocus, $[36] = t17) : t17 = $[36];
|
|
5873
5883
|
const menu = t17;
|
|
5874
5884
|
let t18, t19;
|
|
5875
|
-
$[37] !== buttonProp || $[38] !==
|
|
5885
|
+
$[37] !== buttonProp || $[38] !== handleMouseDown || $[39] !== id || $[40] !== open ? (t19 = buttonProp && cloneElement(buttonProp, {
|
|
5876
5886
|
"data-ui": "MenuButton",
|
|
5877
5887
|
id,
|
|
5878
5888
|
onClick: handleButtonClick,
|
|
@@ -5882,14 +5892,14 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
|
|
|
5882
5892
|
"aria-expanded": open,
|
|
5883
5893
|
ref: setButtonElement,
|
|
5884
5894
|
selected: buttonProp.props.selected ?? open
|
|
5885
|
-
}), $[37] = buttonProp, $[38] =
|
|
5895
|
+
}), $[37] = buttonProp, $[38] = handleMouseDown, $[39] = id, $[40] = open, $[41] = t19) : t19 = $[41], t18 = t19;
|
|
5886
5896
|
const button = t18;
|
|
5887
5897
|
let t20, t21;
|
|
5888
5898
|
$[42] !== buttonElement ? (t20 = () => buttonElement, t21 = [buttonElement], $[42] = buttonElement, $[43] = t20, $[44] = t21) : (t20 = $[43], t21 = $[44]), useImperativeHandle(forwardedRef, t20, t21);
|
|
5889
5899
|
let t22, t23;
|
|
5890
5900
|
$[45] !== popover ? (t23 = popover || {}, $[45] = popover, $[46] = t23) : t23 = $[46];
|
|
5891
5901
|
let t24;
|
|
5892
|
-
$[47] !== deprecated_boundaryElement || $[48] !== deprecated_placement || $[49] !==
|
|
5902
|
+
$[47] !== deprecated_boundaryElement || $[48] !== deprecated_placement || $[49] !== deprecated_popoverRadius || $[50] !== deprecated_popoverScheme || $[51] !== deprecated_portal || $[52] !== deprecated_preventOverflow || $[53] !== t23 ? (t24 = {
|
|
5893
5903
|
boundaryElement: deprecated_boundaryElement,
|
|
5894
5904
|
overflow: "auto",
|
|
5895
5905
|
placement: deprecated_placement,
|
|
@@ -5898,12 +5908,12 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
|
|
|
5898
5908
|
radius: deprecated_popoverRadius,
|
|
5899
5909
|
scheme: deprecated_popoverScheme,
|
|
5900
5910
|
...t23
|
|
5901
|
-
}, $[47] = deprecated_boundaryElement, $[48] = deprecated_placement, $[49] =
|
|
5911
|
+
}, $[47] = deprecated_boundaryElement, $[48] = deprecated_placement, $[49] = deprecated_popoverRadius, $[50] = deprecated_popoverScheme, $[51] = deprecated_portal, $[52] = deprecated_preventOverflow, $[53] = t23, $[54] = t24) : t24 = $[54], t22 = t24;
|
|
5902
5912
|
const popoverProps = t22;
|
|
5903
5913
|
let t25;
|
|
5904
5914
|
$[55] !== button ? (t25 = button || /* @__PURE__ */ jsx(Fragment, {}), $[55] = button, $[56] = t25) : t25 = $[56];
|
|
5905
5915
|
let t26;
|
|
5906
|
-
return $[57] !==
|
|
5916
|
+
return $[57] !== menu || $[58] !== open || $[59] !== popoverProps || $[60] !== t25 ? (t26 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu, open, children: t25 }), $[57] = menu, $[58] = open, $[59] = popoverProps, $[60] = t25, $[61] = t26) : t26 = $[61], t26;
|
|
5907
5917
|
});
|
|
5908
5918
|
MenuButton.displayName = "ForwardRef(MenuButton)";
|
|
5909
5919
|
const MenuDivider = styled.hr`
|
|
@@ -6025,7 +6035,7 @@ function useMenu() {
|
|
|
6025
6035
|
}
|
|
6026
6036
|
function MenuGroup(props) {
|
|
6027
6037
|
const $ = c(77);
|
|
6028
|
-
let
|
|
6038
|
+
let IconComponent, children, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
|
|
6029
6039
|
$[0] !== props ? ({
|
|
6030
6040
|
as: t0,
|
|
6031
6041
|
children,
|
|
@@ -6039,7 +6049,7 @@ function MenuGroup(props) {
|
|
|
6039
6049
|
text,
|
|
6040
6050
|
tone: t5,
|
|
6041
6051
|
...restProps
|
|
6042
|
-
} = props, $[0] = props, $[1] =
|
|
6052
|
+
} = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = onClick, $[4] = popover, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5, $[12] = text) : (IconComponent = $[1], children = $[2], onClick = $[3], popover = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11], text = $[12]);
|
|
6043
6053
|
const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, menu = useMenu(), {
|
|
6044
6054
|
scheme
|
|
6045
6055
|
} = useRootTheme(), {
|
|
@@ -6094,7 +6104,7 @@ function MenuGroup(props) {
|
|
|
6094
6104
|
return () => cancelAnimationFrame(rafId);
|
|
6095
6105
|
}, t18 = [shouldFocus], $[32] = shouldFocus, $[33] = t17, $[34] = t18) : (t17 = $[33], t18 = $[34]), useEffect(t17, t18);
|
|
6096
6106
|
let t19;
|
|
6097
|
-
$[35] !==
|
|
6107
|
+
$[35] !== children || $[36] !== handleChildItemClick || $[37] !== handleMenuKeyDown || $[38] !== onClickOutside || $[39] !== onEscape || $[40] !== registerElement || $[41] !== shouldFocus ? (t19 = /* @__PURE__ */ jsx(Menu, { onClickOutside, onEscape, onItemClick: handleChildItemClick, onKeyDown: handleMenuKeyDown, onMouseEnter: handleMenuMouseEnter, registerElement, shouldFocus, children }), $[35] = children, $[36] = handleChildItemClick, $[37] = handleMenuKeyDown, $[38] = onClickOutside, $[39] = onEscape, $[40] = registerElement, $[41] = shouldFocus, $[42] = t19) : t19 = $[42];
|
|
6098
6108
|
const childMenu = t19;
|
|
6099
6109
|
let t20;
|
|
6100
6110
|
$[43] === Symbol.for("react.memo_cache_sentinel") ? (t20 = (event_2) => {
|
|
@@ -6117,20 +6127,20 @@ function MenuGroup(props) {
|
|
|
6117
6127
|
let t29;
|
|
6118
6128
|
$[51] !== fontSize2 ? (t29 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t28 }), $[51] = fontSize2, $[52] = t29) : t29 = $[52];
|
|
6119
6129
|
let t30;
|
|
6120
|
-
$[53] !==
|
|
6130
|
+
$[53] !== padding || $[54] !== space || $[55] !== t26 || $[56] !== t27 || $[57] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, { gap: space, padding, children: [
|
|
6121
6131
|
t26,
|
|
6122
6132
|
t27,
|
|
6123
6133
|
t29
|
|
6124
|
-
] }), $[53] =
|
|
6134
|
+
] }), $[53] = padding, $[54] = space, $[55] = t26, $[56] = t27, $[57] = t29, $[58] = t30) : t30 = $[58];
|
|
6125
6135
|
let t31;
|
|
6126
|
-
$[59] !== as || $[60] !==
|
|
6136
|
+
$[59] !== as || $[60] !== handleClick || $[61] !== handleMouseEnter || $[62] !== restProps || $[63] !== scheme || $[64] !== t21 || $[65] !== t22 || $[66] !== t23 || $[67] !== t24 || $[68] !== t25 || $[69] !== t30 || $[70] !== tone ? (t31 = /* @__PURE__ */ jsx(Selectable, { "data-as": as, "data-ui": "MenuGroup", forwardedAs: as, ...restProps, "aria-pressed": t21, "data-pressed": t22, "data-selected": t23, $radius: t24, $tone: tone, $scheme: scheme, onClick: handleClick, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, ref: setRootElement, tabIndex: -1, type: t25, children: t30 }), $[59] = as, $[60] = handleClick, $[61] = handleMouseEnter, $[62] = restProps, $[63] = scheme, $[64] = t21, $[65] = t22, $[66] = t23, $[67] = t24, $[68] = t25, $[69] = t30, $[70] = tone, $[71] = t31) : t31 = $[71];
|
|
6127
6137
|
let t32;
|
|
6128
|
-
return $[72] !==
|
|
6138
|
+
return $[72] !== childMenu || $[73] !== open || $[74] !== popover || $[75] !== t31 ? (t32 = /* @__PURE__ */ jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t31 }), $[72] = childMenu, $[73] = open, $[74] = popover, $[75] = t31, $[76] = t32) : t32 = $[76], t32;
|
|
6129
6139
|
}
|
|
6130
6140
|
MenuGroup.displayName = "MenuGroup";
|
|
6131
6141
|
const MenuItem = forwardRef(function(props, forwardedRef) {
|
|
6132
6142
|
const $ = c(74);
|
|
6133
|
-
let
|
|
6143
|
+
let IconComponent, IconRightComponent, children, disabled, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
|
|
6134
6144
|
$[0] !== props ? ({
|
|
6135
6145
|
as: t0,
|
|
6136
6146
|
children,
|
|
@@ -6154,7 +6164,7 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
|
|
|
6154
6164
|
text,
|
|
6155
6165
|
tone: t5,
|
|
6156
6166
|
...restProps
|
|
6157
|
-
} = props, $[0] = props, $[1] =
|
|
6167
|
+
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = hotkeys, $[6] = onClick, $[7] = paddingBottom, $[8] = paddingLeft, $[9] = paddingRight, $[10] = paddingTop, $[11] = paddingX, $[12] = paddingY, $[13] = pressed, $[14] = restProps, $[15] = selectedProp, $[16] = t0, $[17] = t1, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = text) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], hotkeys = $[5], onClick = $[6], paddingBottom = $[7], paddingLeft = $[8], paddingRight = $[9], paddingTop = $[10], paddingX = $[11], paddingY = $[12], pressed = $[13], restProps = $[14], selectedProp = $[15], t0 = $[16], t1 = $[17], t2 = $[18], t3 = $[19], t4 = $[20], t5 = $[21], text = $[22]);
|
|
6158
6168
|
const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, {
|
|
6159
6169
|
scheme
|
|
6160
6170
|
} = useRootTheme(), menu = useMenu(), {
|
|
@@ -6174,7 +6184,7 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
|
|
|
6174
6184
|
}, $[29] = disabled, $[30] = onClick, $[31] = onItemClick, $[32] = t9) : t9 = $[32];
|
|
6175
6185
|
const handleClick = t9;
|
|
6176
6186
|
let t10, t11;
|
|
6177
|
-
$[33] !== padding || $[34] !==
|
|
6187
|
+
$[33] !== padding || $[34] !== paddingBottom || $[35] !== paddingLeft || $[36] !== paddingRight || $[37] !== paddingTop || $[38] !== paddingX || $[39] !== paddingY ? (t11 = {
|
|
6178
6188
|
padding,
|
|
6179
6189
|
paddingX,
|
|
6180
6190
|
paddingY,
|
|
@@ -6182,7 +6192,7 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
|
|
|
6182
6192
|
paddingRight,
|
|
6183
6193
|
paddingBottom,
|
|
6184
6194
|
paddingLeft
|
|
6185
|
-
}, $[33] = padding, $[34] =
|
|
6195
|
+
}, $[33] = padding, $[34] = paddingBottom, $[35] = paddingLeft, $[36] = paddingRight, $[37] = paddingTop, $[38] = paddingX, $[39] = paddingY, $[40] = t11) : t11 = $[40], t10 = t11;
|
|
6186
6196
|
const paddingProps = t10, t12 = useArrayProp(fontSize2);
|
|
6187
6197
|
let t13;
|
|
6188
6198
|
$[41] !== t12 ? (t13 = t12.map(_temp$1), $[41] = t12, $[42] = t13) : t13 = $[42];
|
|
@@ -6193,7 +6203,7 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
|
|
|
6193
6203
|
}, $[43] = t14) : t14 = $[43];
|
|
6194
6204
|
const setRef = t14, t15 = as === "button" && pressed, t16 = as !== "button" && pressed ? "" : void 0, t17 = active ? "" : void 0, t18 = disabled ? "" : void 0, t19 = useArrayProp(radius), t20 = useArrayProp(0), t21 = disabled ? "default" : tone, t22 = as === "button" ? "button" : void 0;
|
|
6195
6205
|
let t23;
|
|
6196
|
-
$[44] !== IconComponent || $[45] !==
|
|
6206
|
+
$[44] !== IconComponent || $[45] !== IconRightComponent || $[46] !== fontSize2 || $[47] !== hotkeys || $[48] !== hotkeysFontSize || $[49] !== paddingProps || $[50] !== space || $[51] !== text ? (t23 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
|
|
6197
6207
|
IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
|
|
6198
6208
|
isValidElement(IconComponent) && IconComponent,
|
|
6199
6209
|
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
@@ -6207,14 +6217,14 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
|
|
|
6207
6217
|
isValidElement(IconRightComponent) && IconRightComponent,
|
|
6208
6218
|
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
6209
6219
|
] })
|
|
6210
|
-
] }), $[44] = IconComponent, $[45] =
|
|
6220
|
+
] }), $[44] = IconComponent, $[45] = IconRightComponent, $[46] = fontSize2, $[47] = hotkeys, $[48] = hotkeysFontSize, $[49] = paddingProps, $[50] = space, $[51] = text, $[52] = t23) : t23 = $[52];
|
|
6211
6221
|
let t24;
|
|
6212
6222
|
$[53] !== children || $[54] !== paddingProps ? (t24 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[53] = children, $[54] = paddingProps, $[55] = t24) : t24 = $[55];
|
|
6213
6223
|
let t25;
|
|
6214
|
-
return $[56] !==
|
|
6224
|
+
return $[56] !== as || $[57] !== disabled || $[58] !== handleClick || $[59] !== onItemMouseEnter || $[60] !== onItemMouseLeave || $[61] !== restProps || $[62] !== scheme || $[63] !== t15 || $[64] !== t16 || $[65] !== t17 || $[66] !== t18 || $[67] !== t19 || $[68] !== t20 || $[69] !== t21 || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 ? (t25 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", ...restProps, "aria-pressed": t15, "data-pressed": t16, "data-selected": t17, "data-disabled": t18, forwardedAs: as, $radius: t19, $padding: t20, $tone: t21, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role: "menuitem", tabIndex: -1, type: t22, children: [
|
|
6215
6225
|
t23,
|
|
6216
6226
|
t24
|
|
6217
|
-
] }), $[56] =
|
|
6227
|
+
] }), $[56] = as, $[57] = disabled, $[58] = handleClick, $[59] = onItemMouseEnter, $[60] = onItemMouseLeave, $[61] = restProps, $[62] = scheme, $[63] = t15, $[64] = t16, $[65] = t17, $[66] = t18, $[67] = t19, $[68] = t20, $[69] = t21, $[70] = t22, $[71] = t23, $[72] = t24, $[73] = t25) : t25 = $[73], t25;
|
|
6218
6228
|
});
|
|
6219
6229
|
MenuItem.displayName = "ForwardRef(MenuItem)";
|
|
6220
6230
|
function _temp$1(s) {
|
|
@@ -6262,13 +6272,13 @@ const keyframe = keyframes`
|
|
|
6262
6272
|
}
|
|
6263
6273
|
`, Root$4 = styled(Box)(responsiveRadiusStyle, skeletonStyle), Skeleton = forwardRef(function(props, ref) {
|
|
6264
6274
|
const $ = c(14);
|
|
6265
|
-
let
|
|
6275
|
+
let delay, radius, restProps, t0;
|
|
6266
6276
|
$[0] !== props ? ({
|
|
6267
6277
|
animated: t0,
|
|
6268
6278
|
delay,
|
|
6269
6279
|
radius,
|
|
6270
6280
|
...restProps
|
|
6271
|
-
} = props, $[0] = props, $[1] =
|
|
6281
|
+
} = props, $[0] = props, $[1] = delay, $[2] = radius, $[3] = restProps, $[4] = t0) : (delay = $[1], radius = $[2], restProps = $[3], t0 = $[4]);
|
|
6272
6282
|
const animated = t0 === void 0 ? !1 : t0, [visible, setVisible] = useState(!delay);
|
|
6273
6283
|
let t1, t2;
|
|
6274
6284
|
$[5] !== delay ? (t1 = () => {
|
|
@@ -6283,7 +6293,7 @@ const keyframe = keyframes`
|
|
|
6283
6293
|
}, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2) : (t1 = $[6], t2 = $[7]), useEffect(t1, t2);
|
|
6284
6294
|
const t3 = useArrayProp(radius);
|
|
6285
6295
|
let t4;
|
|
6286
|
-
return $[8] !==
|
|
6296
|
+
return $[8] !== animated || $[9] !== ref || $[10] !== restProps || $[11] !== t3 || $[12] !== visible ? (t4 = /* @__PURE__ */ jsx(Root$4, { ...restProps, $animated: animated, $radius: t3, $visible: visible, ref }), $[8] = animated, $[9] = ref, $[10] = restProps, $[11] = t3, $[12] = visible, $[13] = t4) : t4 = $[13], t4;
|
|
6287
6297
|
});
|
|
6288
6298
|
Skeleton.displayName = "ForwardRef(Skeleton)";
|
|
6289
6299
|
const Root$3 = styled(Skeleton)((props) => {
|
|
@@ -6302,57 +6312,57 @@ const Root$3 = styled(Skeleton)((props) => {
|
|
|
6302
6312
|
});
|
|
6303
6313
|
}), TextSkeleton = forwardRef(function(props, ref) {
|
|
6304
6314
|
const $ = c(7);
|
|
6305
|
-
let
|
|
6315
|
+
let restProps, t0;
|
|
6306
6316
|
$[0] !== props ? ({
|
|
6307
6317
|
size: t0,
|
|
6308
6318
|
...restProps
|
|
6309
|
-
} = props, $[0] = props, $[1] =
|
|
6319
|
+
} = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
|
|
6310
6320
|
const $size = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
6311
6321
|
let t1;
|
|
6312
|
-
return $[3] !==
|
|
6322
|
+
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "text" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
|
|
6313
6323
|
});
|
|
6314
6324
|
TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
|
|
6315
6325
|
const LabelSkeleton = forwardRef(function(props, ref) {
|
|
6316
6326
|
const $ = c(7);
|
|
6317
|
-
let
|
|
6327
|
+
let restProps, t0;
|
|
6318
6328
|
$[0] !== props ? ({
|
|
6319
6329
|
size: t0,
|
|
6320
6330
|
...restProps
|
|
6321
|
-
} = props, $[0] = props, $[1] =
|
|
6331
|
+
} = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
|
|
6322
6332
|
const $size = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
6323
6333
|
let t1;
|
|
6324
|
-
return $[3] !==
|
|
6334
|
+
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "label" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
|
|
6325
6335
|
});
|
|
6326
6336
|
LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
|
|
6327
6337
|
const HeadingSkeleton = forwardRef(function(props, ref) {
|
|
6328
6338
|
const $ = c(7);
|
|
6329
|
-
let
|
|
6339
|
+
let restProps, t0;
|
|
6330
6340
|
$[0] !== props ? ({
|
|
6331
6341
|
size: t0,
|
|
6332
6342
|
...restProps
|
|
6333
|
-
} = props, $[0] = props, $[1] =
|
|
6343
|
+
} = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
|
|
6334
6344
|
const $size = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
6335
6345
|
let t1;
|
|
6336
|
-
return $[3] !==
|
|
6346
|
+
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "heading" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
|
|
6337
6347
|
});
|
|
6338
6348
|
HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
|
|
6339
6349
|
const CodeSkeleton = forwardRef(function(props, ref) {
|
|
6340
6350
|
const $ = c(7);
|
|
6341
|
-
let
|
|
6351
|
+
let restProps, t0;
|
|
6342
6352
|
$[0] !== props ? ({
|
|
6343
6353
|
size: t0,
|
|
6344
6354
|
...restProps
|
|
6345
|
-
} = props, $[0] = props, $[1] =
|
|
6355
|
+
} = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
|
|
6346
6356
|
const $size = useArrayProp(t0 === void 0 ? 2 : t0);
|
|
6347
6357
|
let t1;
|
|
6348
|
-
return $[3] !==
|
|
6358
|
+
return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "code" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
|
|
6349
6359
|
});
|
|
6350
6360
|
CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
|
|
6351
6361
|
const CustomButton = styled(Button)`
|
|
6352
6362
|
max-width: 100%;
|
|
6353
6363
|
`, Tab = forwardRef(function(props, forwardedRef) {
|
|
6354
6364
|
const $ = c(30);
|
|
6355
|
-
let
|
|
6365
|
+
let focused, icon, id, label, onClick, onFocus, restProps, selected, t0, t1;
|
|
6356
6366
|
$[0] !== props ? ({
|
|
6357
6367
|
icon,
|
|
6358
6368
|
id,
|
|
@@ -6364,7 +6374,7 @@ const CustomButton = styled(Button)`
|
|
|
6364
6374
|
padding: t1,
|
|
6365
6375
|
selected,
|
|
6366
6376
|
...restProps
|
|
6367
|
-
} = props, $[0] = props, $[1] =
|
|
6377
|
+
} = props, $[0] = props, $[1] = focused, $[2] = icon, $[3] = id, $[4] = label, $[5] = onClick, $[6] = onFocus, $[7] = restProps, $[8] = selected, $[9] = t0, $[10] = t1) : (focused = $[1], icon = $[2], id = $[3], label = $[4], onClick = $[5], onFocus = $[6], restProps = $[7], selected = $[8], t0 = $[9], t1 = $[10]);
|
|
6368
6378
|
const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 2 : t1, ref = useRef(null), focusedRef = useRef(!1);
|
|
6369
6379
|
let t2;
|
|
6370
6380
|
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[11] = t2) : t2 = $[11], useImperativeHandle(forwardedRef, t2);
|
|
@@ -6384,7 +6394,7 @@ const CustomButton = styled(Button)`
|
|
|
6384
6394
|
}, t6 = [focused], $[15] = focused, $[16] = t5, $[17] = t6) : (t5 = $[16], t6 = $[17]), useEffect(t5, t6);
|
|
6385
6395
|
const t7 = selected ? "true" : "false", t8 = selected ? 0 : -1;
|
|
6386
6396
|
let t9;
|
|
6387
|
-
return $[18] !==
|
|
6397
|
+
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__ */ 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;
|
|
6388
6398
|
});
|
|
6389
6399
|
Tab.displayName = "ForwardRef(Tab)";
|
|
6390
6400
|
const CustomInline = styled(Inline)`
|
|
@@ -6420,19 +6430,19 @@ const CustomInline = styled(Inline)`
|
|
|
6420
6430
|
}, $[8] = numTabs, $[9] = t1) : t1 = $[9];
|
|
6421
6431
|
const handleKeyDown = t1;
|
|
6422
6432
|
let t2;
|
|
6423
|
-
return $[10] !==
|
|
6433
|
+
return $[10] !== handleKeyDown || $[11] !== ref || $[12] !== restProps || $[13] !== tabs ? (t2 = /* @__PURE__ */ jsx(CustomInline, { "data-ui": "TabList", ...restProps, onKeyDown: handleKeyDown, ref, role: "tablist", children: tabs }), $[10] = handleKeyDown, $[11] = ref, $[12] = restProps, $[13] = tabs, $[14] = t2) : t2 = $[14], t2;
|
|
6424
6434
|
});
|
|
6425
6435
|
TabList.displayName = "ForwardRef(TabList)";
|
|
6426
6436
|
const TabPanel = forwardRef(function(props, ref) {
|
|
6427
6437
|
const $ = c(9);
|
|
6428
|
-
let
|
|
6438
|
+
let flex, restProps;
|
|
6429
6439
|
$[0] !== props ? ({
|
|
6430
6440
|
flex,
|
|
6431
6441
|
...restProps
|
|
6432
|
-
} = props, $[0] = props, $[1] =
|
|
6442
|
+
} = props, $[0] = props, $[1] = flex, $[2] = restProps) : (flex = $[1], restProps = $[2]);
|
|
6433
6443
|
const t0 = props.tabIndex === void 0 ? 0 : props.tabIndex;
|
|
6434
6444
|
let t1;
|
|
6435
|
-
return $[3] !==
|
|
6445
|
+
return $[3] !== flex || $[4] !== props.children || $[5] !== ref || $[6] !== restProps || $[7] !== t0 ? (t1 = /* @__PURE__ */ 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;
|
|
6436
6446
|
});
|
|
6437
6447
|
TabPanel.displayName = "ForwardRef(TabPanel)";
|
|
6438
6448
|
const TextBox = styled(Flex)`
|
|
@@ -6497,7 +6507,7 @@ const STATUS_CARD_TONE = {
|
|
|
6497
6507
|
}, Root$2 = styled(Card)(rootStyles);
|
|
6498
6508
|
function Toast(props) {
|
|
6499
6509
|
const $ = c(30);
|
|
6500
|
-
let
|
|
6510
|
+
let closable, description, duration, onClose, restProps, status, t0, title;
|
|
6501
6511
|
$[0] !== props ? ({
|
|
6502
6512
|
closable,
|
|
6503
6513
|
description,
|
|
@@ -6507,7 +6517,7 @@ function Toast(props) {
|
|
|
6507
6517
|
title,
|
|
6508
6518
|
status,
|
|
6509
6519
|
...restProps
|
|
6510
|
-
} = props, $[0] = props, $[1] =
|
|
6520
|
+
} = props, $[0] = props, $[1] = closable, $[2] = description, $[3] = duration, $[4] = onClose, $[5] = restProps, $[6] = status, $[7] = t0, $[8] = title) : (closable = $[1], description = $[2], duration = $[3], onClose = $[4], restProps = $[5], status = $[6], t0 = $[7], title = $[8]);
|
|
6511
6521
|
const radius = t0 === void 0 ? 3 : t0, cardTone = status ? STATUS_CARD_TONE[status] : "default", buttonTone = status ? BUTTON_TONE[status] : "default", role = status ? ROLES[status] : "status";
|
|
6512
6522
|
let t1;
|
|
6513
6523
|
$[9] !== title ? (t1 = title && /* @__PURE__ */ jsx(Text, { size: 1, weight: "medium", children: title }), $[9] = title, $[10] = t1) : t1 = $[10];
|
|
@@ -6519,16 +6529,16 @@ function Toast(props) {
|
|
|
6519
6529
|
t2
|
|
6520
6530
|
] }) }), $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15];
|
|
6521
6531
|
let t4;
|
|
6522
|
-
$[16] !==
|
|
6532
|
+
$[16] !== buttonTone || $[17] !== closable || $[18] !== onClose ? (t4 = closable && /* @__PURE__ */ jsx(Box, { padding: 1, children: /* @__PURE__ */ jsx(Button, { as: "button", icon: CloseIcon, mode: "bleed", padding: 2, tone: buttonTone, onClick: onClose, style: {
|
|
6523
6533
|
verticalAlign: "top"
|
|
6524
|
-
} }) }), $[16] =
|
|
6534
|
+
} }) }), $[16] = buttonTone, $[17] = closable, $[18] = onClose, $[19] = t4) : t4 = $[19];
|
|
6525
6535
|
let t5;
|
|
6526
6536
|
$[20] !== t3 || $[21] !== t4 ? (t5 = /* @__PURE__ */ jsxs(Flex, { align: "flex-start", children: [
|
|
6527
6537
|
t3,
|
|
6528
6538
|
t4
|
|
6529
6539
|
] }), $[20] = t3, $[21] = t4, $[22] = t5) : t5 = $[22];
|
|
6530
6540
|
let t6;
|
|
6531
|
-
return $[23] !==
|
|
6541
|
+
return $[23] !== cardTone || $[24] !== duration || $[25] !== radius || $[26] !== restProps || $[27] !== role || $[28] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$2, { "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;
|
|
6532
6542
|
}
|
|
6533
6543
|
Toast.displayName = "Toast";
|
|
6534
6544
|
function useMounted() {
|
|
@@ -6645,7 +6655,7 @@ function ToastProvider(props) {
|
|
|
6645
6655
|
toastsRef.current = {};
|
|
6646
6656
|
}, t13 = [], $[10] = t12, $[11] = t13) : (t12 = $[10], t13 = $[11]), useEffect(t12, t13);
|
|
6647
6657
|
let t14;
|
|
6648
|
-
$[12] !== mounted || $[13] !==
|
|
6658
|
+
$[12] !== mounted || $[13] !== padding || $[14] !== paddingX || $[15] !== paddingY || $[16] !== prefersReducedMotion || $[17] !== state || $[18] !== variants || $[19] !== zOffset ? (t14 = mounted && /* @__PURE__ */ jsx(Root$1, { "data-ui": "ToastProvider", zOffset, children: /* @__PURE__ */ jsx(ToastContainer, { children: /* @__PURE__ */ jsx(Box, { padding, paddingX, paddingY, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, children: state.map((t152) => {
|
|
6649
6659
|
const {
|
|
6650
6660
|
dismiss: dismiss_0,
|
|
6651
6661
|
id: id_0,
|
|
@@ -6658,7 +6668,7 @@ function ToastProvider(props) {
|
|
|
6658
6668
|
damping: 30,
|
|
6659
6669
|
stiffness: 400
|
|
6660
6670
|
}, children: /* @__PURE__ */ jsx(Toast, { closable: params_0.closable, description: params_0.description, onClose: dismiss_0, status: params_0.status, title: params_0.title, duration: params_0.duration }) }, id_0);
|
|
6661
|
-
}) }) }) }) }), $[12] = mounted, $[13] =
|
|
6671
|
+
}) }) }) }) }), $[12] = mounted, $[13] = padding, $[14] = paddingX, $[15] = paddingY, $[16] = prefersReducedMotion, $[17] = state, $[18] = variants, $[19] = zOffset, $[20] = t14) : t14 = $[20];
|
|
6662
6672
|
let t15;
|
|
6663
6673
|
return $[21] !== children || $[22] !== t14 ? (t15 = /* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
|
|
6664
6674
|
children,
|
|
@@ -6730,13 +6740,13 @@ function _focusItemElement(el) {
|
|
|
6730
6740
|
}
|
|
6731
6741
|
const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null), Tree = memo(forwardRef(function(props, forwardedRef) {
|
|
6732
6742
|
const $ = c(37);
|
|
6733
|
-
let
|
|
6743
|
+
let children, onFocus, restProps, t0;
|
|
6734
6744
|
$[0] !== props ? ({
|
|
6735
6745
|
children,
|
|
6736
6746
|
space: t0,
|
|
6737
6747
|
onFocus,
|
|
6738
6748
|
...restProps
|
|
6739
|
-
} = props, $[0] = props, $[1] =
|
|
6749
|
+
} = props, $[0] = props, $[1] = children, $[2] = onFocus, $[3] = restProps, $[4] = t0) : (children = $[1], onFocus = $[2], restProps = $[3], t0 = $[4]);
|
|
6740
6750
|
const space = t0 === void 0 ? 1 : t0, ref = useRef(null), [focusedElement, setFocusedElement] = useState(null), focusedElementRef = useRef(focusedElement);
|
|
6741
6751
|
let t1, t2;
|
|
6742
6752
|
$[5] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[5] = t2) : t2 = $[5], t1 = t2;
|
|
@@ -6790,7 +6800,7 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
|
|
|
6790
6800
|
let t12;
|
|
6791
6801
|
const t13 = focusedElement || itemElements[0] || null;
|
|
6792
6802
|
let t14;
|
|
6793
|
-
$[17] !==
|
|
6803
|
+
$[17] !== space || $[18] !== state || $[19] !== t13 ? (t14 = {
|
|
6794
6804
|
version: 0,
|
|
6795
6805
|
focusedElement: t13,
|
|
6796
6806
|
level: 0,
|
|
@@ -6800,7 +6810,7 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
|
|
|
6800
6810
|
setFocusedElement,
|
|
6801
6811
|
space,
|
|
6802
6812
|
state
|
|
6803
|
-
}, $[17] =
|
|
6813
|
+
}, $[17] = space, $[18] = state, $[19] = t13, $[20] = t14) : t14 = $[20], t12 = t14;
|
|
6804
6814
|
const contextValue = t12;
|
|
6805
6815
|
let t15;
|
|
6806
6816
|
$[21] !== itemElements ? (t15 = (event) => {
|
|
@@ -6879,7 +6889,7 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
|
|
|
6879
6889
|
let t18;
|
|
6880
6890
|
$[26] !== children ? (t18 = [children], $[26] = children, $[27] = t18) : t18 = $[27], useEffect(t17, t18);
|
|
6881
6891
|
let t19;
|
|
6882
|
-
$[28] !==
|
|
6892
|
+
$[28] !== children || $[29] !== handleFocus || $[30] !== handleKeyDown || $[31] !== restProps || $[32] !== space ? (t19 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...restProps, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", space, children }), $[28] = children, $[29] = handleFocus, $[30] = handleKeyDown, $[31] = restProps, $[32] = space, $[33] = t19) : t19 = $[33];
|
|
6883
6893
|
let t20;
|
|
6884
6894
|
return $[34] !== contextValue || $[35] !== t19 ? (t20 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t19 }), $[34] = contextValue, $[35] = t19, $[36] = t20) : t20 = $[36], t20;
|
|
6885
6895
|
}));
|
|
@@ -6984,15 +6994,15 @@ function useTree() {
|
|
|
6984
6994
|
}
|
|
6985
6995
|
const TreeGroup = memo(function(props) {
|
|
6986
6996
|
const $ = c(9);
|
|
6987
|
-
let
|
|
6997
|
+
let children, restProps, t0;
|
|
6988
6998
|
$[0] !== props ? ({
|
|
6989
6999
|
children,
|
|
6990
7000
|
expanded: t0,
|
|
6991
7001
|
...restProps
|
|
6992
|
-
} = props, $[0] = props, $[1] =
|
|
7002
|
+
} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0) : (children = $[1], restProps = $[2], t0 = $[3]);
|
|
6993
7003
|
const expanded = t0 === void 0 ? !1 : t0, tree = useTree(), t1 = !expanded;
|
|
6994
7004
|
let t2;
|
|
6995
|
-
return $[4] !==
|
|
7005
|
+
return $[4] !== children || $[5] !== restProps || $[6] !== t1 || $[7] !== tree.space ? (t2 = /* @__PURE__ */ 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;
|
|
6996
7006
|
}), Root = memo(styled.li(treeItemRootStyle, treeItemRootColorStyle)), TreeItemBox = styled(Box).attrs({
|
|
6997
7007
|
forwardedAs: "a"
|
|
6998
7008
|
})(treeItemBoxStyle), ToggleArrowText = styled(Text)`
|