@sanity/ui 3.3.5 → 3.4.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.mjs CHANGED
@@ -1,12 +1,17 @@
1
1
  import { X as getTheme_v2 } from "./_chunks/theme.mjs";
2
2
  import { $ as responsiveInputPaddingStyle, A as useMediaIndex, At as parseColor, B as _cardColorStyle, C as BoundaryElementContext, Ct as isHTMLTextAreaElement, D as Grid, Dt as hexToRgb, E as Inline, Et as createColorTheme, F as _ResizeObserver, Ft as studioTheme, G as SpanWithTextOverflow, H as Flex, I as useCustomValidity, J as textInputBaseStyle, K as responsiveRadiusStyle, L as useClickOutsideEvent, M as useGlobalKeyDown, Mt as rgbToHsl, N as useElementSize, Nt as rgba, O as usePrefersReducedMotion, Ot as hslToRgb, P as _elementSizeObserver, Pt as screen, Q as responsiveInputPaddingIconRightStyle, R as Card, S as isRecord, St as isHTMLSelectElement, T as KBD, Tt as EMPTY_RECORD, U as Text, V as Spinner, W as Box, X as textInputRepresentationStyle, Y as textInputFontSizeStyle, Z as textInputRootStyle, _ as usePortal, _t as containsOrEqualsElement, a as MenuDivider, at as useRootTheme, b as LayerProvider, bt as isHTMLElement, c as Tooltip, ct as responsiveTextFont, d as useDelayedState, dt as _fillCSSObject, et as focusRingBorderStyle, f as TextInput, ft as _getArrayProp, g as Portal, gt as _isEnterToClickElement, h as PortalProvider, ht as rem, i as MenuGroup, it as ThemeColorProvider, j as useMatchMedia, jt as rgbToHex, k as usePrefersDark, kt as multiply, l as useTooltipDelayGroup, lt as responsiveTextAlignStyle, m as Popover, mt as _responsive, n as Tab, nt as useTheme, o as Menu, ot as ThemeProvider, p as Stack, pt as _getResponsiveSpace, q as responsivePaddingStyle, r as MenuItem, rt as useTheme_v2, s as Hotkeys, st as createGlobalScopedContext, t as TabList, tt as focusRingStyle, u as TooltipDelayGroupContext, ut as responsiveFont, v as Layer, vt as isHTMLAnchorElement, w as Arrow, wt as EMPTY_ARRAY, x as useBoundaryElement, xt as isHTMLInputElement, y as useLayer, yt as isHTMLButtonElement, z as Button } from "./_chunks/tabList.mjs";
3
3
  import { c } from "react-compiler-runtime";
4
- import { CheckmarkIcon, ChevronDownIcon, CloseIcon, RemoveIcon, SpinnerIcon, ToggleArrowRightIcon } from "@sanity/icons";
4
+ import { ChevronDownIcon } from "@sanity/icons/ChevronDown";
5
5
  import { Children, Component, Fragment, Suspense, cloneElement, forwardRef, isValidElement, lazy, startTransition, useContext, useEffect, useId, useImperativeHandle, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
6
6
  import ReactIs from "react-is";
7
7
  import { css, keyframes, styled } from "styled-components";
8
8
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
+ import { SpinnerIcon } from "@sanity/icons/Spinner";
10
+ import { CheckmarkIcon } from "@sanity/icons/Checkmark";
11
+ import { RemoveIcon } from "@sanity/icons/Remove";
9
12
  import { AnimatePresence, motion } from "motion/react";
13
+ import { CloseIcon } from "@sanity/icons/Close";
14
+ import { ToggleArrowRightIcon } from "@sanity/icons/ToggleArrowRight";
10
15
  /**
11
16
  * @internal
12
17
  */
@@ -108,7 +113,7 @@ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
108
113
  })(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), LabelComponent = forwardRef(function(props, ref) {
109
114
  let $ = c(26), accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
110
115
  $[0] === props ? (accent = $[1], align = $[2], childrenProp = $[3], restProps = $[4], t0 = $[5], t1 = $[6], textOverflow = $[7], weight = $[8]) : ({accent, align, children: childrenProp, muted: t0, size: t1, textOverflow, weight, ...restProps} = props, $[0] = props, $[1] = accent, $[2] = align, $[3] = childrenProp, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = textOverflow, $[8] = weight);
111
- let muted = t0 === void 0 ? !1 : t0, size = t1 === void 0 ? 2 : t1, children = childrenProp;
116
+ let muted = t0 !== void 0 && t0, size = t1 === void 0 ? 2 : t1, children = childrenProp;
112
117
  if (textOverflow === "ellipsis") {
113
118
  let t2;
114
119
  $[9] === children ? t2 = $[10] : (t2 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t2), children = t2;
@@ -637,10 +642,10 @@ function inputElementStyles(props) {
637
642
  }
638
643
  const StyledCheckbox = /* @__PURE__ */ styled.div.withConfig({
639
644
  displayName: "StyledCheckbox",
640
- componentId: "sc-mje2ol-0"
645
+ componentId: "sc-eqpl40-0"
641
646
  })(checkboxBaseStyles), Input$4 = /* @__PURE__ */ styled.input.withConfig({
642
647
  displayName: "Input",
643
- componentId: "sc-mje2ol-1"
648
+ componentId: "sc-eqpl40-1"
644
649
  })(inputElementStyles), Checkbox = forwardRef(function(props, forwardedRef) {
645
650
  let $ = c(25), checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
646
651
  $[0] === props ? (checked = $[1], className = $[2], customValidity = $[3], disabled = $[4], indeterminate = $[5], readOnly = $[6], restProps = $[7], style = $[8]) : ({checked, className, disabled, indeterminate, customValidity, readOnly, style, ...restProps} = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = customValidity, $[4] = disabled, $[5] = indeterminate, $[6] = readOnly, $[7] = restProps, $[8] = style);
@@ -795,7 +800,7 @@ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
795
800
  })(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), HeadingComponent = forwardRef(function(props, ref) {
796
801
  let $ = c(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
797
802
  $[0] === props ? (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]) : ({accent: t0, align, children: childrenProp, muted: t1, size: t2, textOverflow, weight, ...restProps} = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight);
798
- let accent = t0 === void 0 ? !1 : t0, muted = t1 === void 0 ? !1 : t1, size = t2 === void 0 ? 2 : t2, children = childrenProp;
803
+ let accent = t0 !== void 0 && t0, muted = t1 !== void 0 && t1, size = t2 === void 0 ? 2 : t2, children = childrenProp;
799
804
  if (textOverflow === "ellipsis") {
800
805
  let t3;
801
806
  $[9] === children ? t3 = $[10] : (t3 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t3), children = t3;
@@ -1159,13 +1164,13 @@ const selectStyle = {
1159
1164
  iconBox: iconBoxStyle
1160
1165
  }, StyledSelect = /* @__PURE__ */ styled.div.withConfig({
1161
1166
  displayName: "StyledSelect",
1162
- componentId: "sc-a3ltm7-0"
1167
+ componentId: "sc-gi1uze-0"
1163
1168
  })(selectStyle.root), Input$2 = /* @__PURE__ */ styled.select.withConfig({
1164
1169
  displayName: "Input",
1165
- componentId: "sc-a3ltm7-1"
1170
+ componentId: "sc-gi1uze-1"
1166
1171
  })(selectStyle.input), IconBox = /* @__PURE__ */ styled(Box).withConfig({
1167
1172
  displayName: "IconBox",
1168
- componentId: "sc-a3ltm7-2"
1173
+ componentId: "sc-gi1uze-2"
1169
1174
  })(selectStyle.iconBox), Select = forwardRef(function(props, forwardedRef) {
1170
1175
  let $ = c(38), children, customValidity, disabled, gap, readOnly, restProps, t0, t1, t2, t3;
1171
1176
  $[0] === props ? (children = $[1], customValidity = $[2], disabled = $[3], gap = $[4], readOnly = $[5], restProps = $[6], t0 = $[7], t1 = $[8], t2 = $[9], t3 = $[10]) : ({children, customValidity, disabled, fontSize: t0, gap, padding: t1, radius: t2, readOnly, space: t3, ...restProps} = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = gap, $[5] = readOnly, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2, $[10] = t3);
@@ -1297,7 +1302,7 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
1297
1302
  })(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function(props, forwardedRef) {
1298
1303
  let $ = c(35), __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
1299
1304
  $[0] === props ? (__unstable_disableFocusRing = $[1], customValidity = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], weight = $[9]) : ({border: t0, customValidity, disabled: t1, fontSize: t2, padding: t3, radius: t4, weight, __unstable_disableFocusRing, ...restProps} = props, $[0] = props, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = weight);
1300
- let border = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = useRef(null), rootTheme = useRootTheme(), t5;
1305
+ let border = t0 === void 0 || t0, disabled = t1 !== void 0 && t1, fontSize = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = useRef(null), rootTheme = useRootTheme(), t5;
1301
1306
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
1302
1307
  let t6 = rootTheme.scheme, t7 = rootTheme.tone, t8;
1303
1308
  $[11] === fontSize ? t8 = $[12] : (t8 = _getArrayProp(fontSize), $[11] = fontSize, $[12] = t8);
@@ -1365,13 +1370,13 @@ TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
1365
1370
  */
1366
1371
  const StyledAutocomplete = styled.div.withConfig({
1367
1372
  displayName: "StyledAutocomplete",
1368
- componentId: "sc-890276-0"
1373
+ componentId: "sc-hv7uk8-0"
1369
1374
  })`line-height:0;`, ListBox = styled(Box).withConfig({
1370
1375
  displayName: "ListBox",
1371
- componentId: "sc-890276-1"
1376
+ componentId: "sc-hv7uk8-1"
1372
1377
  })`& > ul{list-style:none;padding:0;margin:0;}`, rotate = keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, AnimatedSpinnerIcon = styled(SpinnerIcon).withConfig({
1373
1378
  displayName: "AnimatedSpinnerIcon",
1374
- componentId: "sc-890276-2"
1379
+ componentId: "sc-hv7uk8-2"
1375
1380
  })`animation:${rotate} 500ms linear infinite;`;
1376
1381
  function AutocompleteOption(props) {
1377
1382
  let $ = c(11), { children, id, onSelect, selected, value } = props, t0;
@@ -1455,7 +1460,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1455
1460
  ], AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS = ["bottom-start", "top-start"], DEFAULT_RENDER_VALUE = (value, option) => option ? option.value : value, DEFAULT_FILTER_OPTION = (query, option) => option.value.toLowerCase().indexOf(query.toLowerCase()) > -1, InnerAutocomplete = forwardRef(function(props, forwardedRef) {
1456
1461
  let $ = c(181), customValidity, disabled, filterOptionProp, icon, id, loading, onBlur, onChange, onFocus, onQueryChange, onSelect, openButton, openOnFocus, optionsProp, prefix, readOnly, relatedElements, renderOptionProp, renderPopover, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, valueProp;
1457
1462
  $[0] === props ? (customValidity = $[1], disabled = $[2], filterOptionProp = $[3], icon = $[4], id = $[5], loading = $[6], onBlur = $[7], onChange = $[8], onFocus = $[9], onQueryChange = $[10], onSelect = $[11], openButton = $[12], openOnFocus = $[13], optionsProp = $[14], prefix = $[15], readOnly = $[16], relatedElements = $[17], renderOptionProp = $[18], renderPopover = $[19], restProps = $[20], suffix = $[21], t0 = $[22], t1 = $[23], t2 = $[24], t3 = $[25], t4 = $[26], t5 = $[27], t6 = $[28], valueProp = $[29]) : ({border: t0, customValidity, disabled, filterOption: filterOptionProp, fontSize: t1, icon, id, listBox: t2, loading, onBlur, onChange, onFocus, onQueryChange, onSelect, openButton, openOnFocus, options: optionsProp, padding: t3, popover: t4, prefix, radius: t5, readOnly, relatedElements, renderOption: renderOptionProp, renderPopover, renderValue: t6, suffix, value: valueProp, ...restProps} = props, $[0] = props, $[1] = customValidity, $[2] = disabled, $[3] = filterOptionProp, $[4] = icon, $[5] = id, $[6] = loading, $[7] = onBlur, $[8] = onChange, $[9] = onFocus, $[10] = onQueryChange, $[11] = onSelect, $[12] = openButton, $[13] = openOnFocus, $[14] = optionsProp, $[15] = prefix, $[16] = readOnly, $[17] = relatedElements, $[18] = renderOptionProp, $[19] = renderPopover, $[20] = restProps, $[21] = suffix, $[22] = t0, $[23] = t1, $[24] = t2, $[25] = t3, $[26] = t4, $[27] = t5, $[28] = t6, $[29] = valueProp);
1458
- let border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ? 2 : t1, listBox = t2 === void 0 ? EMPTY_RECORD : t2, paddingProp = t3 === void 0 ? 3 : t3, popover = t4 === void 0 ? EMPTY_RECORD : t4, radius = t5 === void 0 ? 2 : t5, renderValue = t6 === void 0 ? DEFAULT_RENDER_VALUE : t6, t7 = valueProp || null, t8 = valueProp || null, t9;
1463
+ let border = t0 === void 0 || t0, fontSize = t1 === void 0 ? 2 : t1, listBox = t2 === void 0 ? EMPTY_RECORD : t2, paddingProp = t3 === void 0 ? 3 : t3, popover = t4 === void 0 ? EMPTY_RECORD : t4, radius = t5 === void 0 ? 2 : t5, renderValue = t6 === void 0 ? DEFAULT_RENDER_VALUE : t6, t7 = valueProp || null, t8 = valueProp || null, t9;
1459
1464
  $[30] !== t7 || $[31] !== t8 ? (t9 = {
1460
1465
  activeValue: t7,
1461
1466
  focused: !1,
@@ -1491,7 +1496,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1491
1496
  let currentOption = t16, t17;
1492
1497
  if ($[46] !== filterOption || $[47] !== options || $[48] !== query) {
1493
1498
  let t18;
1494
- $[50] !== filterOption || $[51] !== query ? (t18 = (option) => query ? filterOption(query, option) : !0, $[50] = filterOption, $[51] = query, $[52] = t18) : t18 = $[52], t17 = options.filter(t18), $[46] = filterOption, $[47] = options, $[48] = query, $[49] = t17;
1499
+ $[50] !== filterOption || $[51] !== query ? (t18 = (option) => !query || filterOption(query, option), $[50] = filterOption, $[51] = query, $[52] = t18) : t18 = $[52], t17 = options.filter(t18), $[46] = filterOption, $[47] = options, $[48] = query, $[49] = t17;
1495
1500
  } else t17 = $[49];
1496
1501
  let filteredOptions = t17, filteredOptionsLen = filteredOptions.length, activeItemId = activeValue ? `${id}-option-${activeValue}` : void 0, expanded = query !== null && loading || focused && query !== null, t18;
1497
1502
  $[53] !== onBlur || $[54] !== onQueryChange || $[55] !== relatedElements ? (t18 = (event) => {
@@ -1951,29 +1956,29 @@ function useDialog() {
1951
1956
  return useContext(DialogContext);
1952
1957
  }
1953
1958
  function isTargetWithinScope(boundaryElement, portalElement, target) {
1954
- return !boundaryElement || !portalElement ? !0 : containsOrEqualsElement(boundaryElement, target) || containsOrEqualsElement(portalElement, target);
1959
+ return !boundaryElement || !portalElement || containsOrEqualsElement(boundaryElement, target) || containsOrEqualsElement(portalElement, target);
1955
1960
  }
1956
1961
  const StyledDialog = /* @__PURE__ */ styled(Layer).withConfig({
1957
1962
  displayName: "StyledDialog",
1958
- componentId: "sc-7l6kmb-0"
1963
+ componentId: "sc-r9i1m3-0"
1959
1964
  })(responsivePaddingStyle, dialogStyle, responsiveDialogPositionStyle, animationDialogStyle), DialogContainer = styled(Container).withConfig({
1960
1965
  displayName: "DialogContainer",
1961
- componentId: "sc-7l6kmb-1"
1966
+ componentId: "sc-r9i1m3-1"
1962
1967
  })`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`, DialogCardRoot = styled(Card).withConfig({
1963
1968
  displayName: "DialogCardRoot",
1964
- componentId: "sc-7l6kmb-2"
1969
+ componentId: "sc-r9i1m3-2"
1965
1970
  })`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`, DialogLayout = styled(Flex).withConfig({
1966
1971
  displayName: "DialogLayout",
1967
- componentId: "sc-7l6kmb-3"
1972
+ componentId: "sc-r9i1m3-3"
1968
1973
  })`flex:1;min-height:0;width:100%;`, DialogHeader = styled(Box).withConfig({
1969
1974
  displayName: "DialogHeader",
1970
- componentId: "sc-7l6kmb-4"
1975
+ componentId: "sc-r9i1m3-4"
1971
1976
  })`position:relative;z-index:2;`, DialogContent = styled(Box).withConfig({
1972
1977
  displayName: "DialogContent",
1973
- componentId: "sc-7l6kmb-5"
1978
+ componentId: "sc-r9i1m3-5"
1974
1979
  })`position:relative;z-index:1;overflow:auto;outline:none;`, DialogFooter = styled(Box).withConfig({
1975
1980
  displayName: "DialogFooter",
1976
- componentId: "sc-7l6kmb-6"
1981
+ componentId: "sc-r9i1m3-6"
1977
1982
  })`position:relative;z-index:3;`, DialogCard = forwardRef(function(props, forwardedRef) {
1978
1983
  let $ = c(44), { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, children, contentRef: forwardedContentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: radiusProp, scheme, shadow: shadowProp, width: widthProp } = props, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element, t0;
1979
1984
  $[0] === radiusProp ? t0 = $[1] : (t0 = _getArrayProp(radiusProp), $[0] = radiusProp, $[1] = t0);
@@ -2069,7 +2074,7 @@ DialogCard.displayName = "ForwardRef(DialogCard)";
2069
2074
  const Dialog = forwardRef(function(props, ref) {
2070
2075
  let $ = c(70), dialog = useDialog(), { layer } = useTheme_v2(), _positionProp, _zOffsetProp, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5, t6;
2071
2076
  $[0] === props ? (_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]) : ({__unstable_autoFocus: t0, __unstable_hideCloseButton: t1, cardRadius: t2, cardShadow: t3, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, padding: t4, portal: portalProp, position: _positionProp, scheme, width: t5, zOffset: _zOffsetProp, animate: t6, ...restProps} = 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);
2072
- let 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, t7;
2077
+ let autoFocus = t0 === void 0 || t0, hideCloseButton = t1 !== void 0 && 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 && t6, positionProp = _positionProp ?? (dialog.position || "fixed"), zOffsetProp = _zOffsetProp ?? (dialog.zOffset || layer.dialog.zOffset), animate = !usePrefersReducedMotion() && _animate, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element, t7;
2073
2078
  $[22] === cardRadiusProp ? t7 = $[23] : (t7 = _getArrayProp(cardRadiusProp), $[22] = cardRadiusProp, $[23] = t7);
2074
2079
  let cardRadius = t7, t8;
2075
2080
  $[24] === paddingProp ? t8 = $[25] : (t8 = _getArrayProp(paddingProp), $[24] = paddingProp, $[25] = t8);
@@ -2189,7 +2194,7 @@ DialogProvider.displayName = "DialogProvider";
2189
2194
  * @public
2190
2195
  */
2191
2196
  const MenuButton = forwardRef(function(props, forwardedRef) {
2192
- let $ = c(62), { __unstable_disableRestoreFocusOnClose: t0, boundaryElement: deprecated_boundaryElement, button: buttonProp, id, menu: menuProp, onClose, onOpen, placement: deprecated_placement, popoverScheme: deprecated_popoverScheme, portal: t1, popover, popoverRadius: deprecated_popoverRadius, preventOverflow: deprecated_preventOverflow } = props, disableRestoreFocusOnClose = t0 === void 0 ? !1 : t0, deprecated_portal = t1 === void 0 ? !0 : t1, [open, setOpen] = useState(!1), [shouldFocus, setShouldFocus] = useState(null), [buttonElement, setButtonElement] = useState(null), t2;
2197
+ let $ = c(62), { __unstable_disableRestoreFocusOnClose: t0, boundaryElement: deprecated_boundaryElement, button: buttonProp, id, menu: menuProp, onClose, onOpen, placement: deprecated_placement, popoverScheme: deprecated_popoverScheme, portal: t1, popover, popoverRadius: deprecated_popoverRadius, preventOverflow: deprecated_preventOverflow } = props, disableRestoreFocusOnClose = t0 !== void 0 && t0, deprecated_portal = t1 === void 0 || t1, [open, setOpen] = useState(!1), [shouldFocus, setShouldFocus] = useState(null), [buttonElement, setButtonElement] = useState(null), t2;
2193
2198
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[0] = t2) : t2 = $[0];
2194
2199
  let [menuElements, setChildMenuElements] = useState(t2), openRef = useRef(open), t3, t4;
2195
2200
  $[1] !== onOpen || $[2] !== open ? (t3 = () => {
@@ -2307,7 +2312,7 @@ const animation = css`background-image:linear-gradient( to right,var(--card-skel
2307
2312
  })(responsiveRadiusStyle, skeletonStyle), Skeleton = forwardRef(function(props, ref) {
2308
2313
  let $ = c(16), delay, radius, restProps, t0;
2309
2314
  $[0] === props ? (delay = $[1], radius = $[2], restProps = $[3], t0 = $[4]) : ({animated: t0, delay, radius, ...restProps} = props, $[0] = props, $[1] = delay, $[2] = radius, $[3] = restProps, $[4] = t0);
2310
- let animated = t0 === void 0 ? !1 : t0, [visible, setVisible] = useState(!delay), t1, t2;
2315
+ let animated = t0 !== void 0 && t0, [visible, setVisible] = useState(!delay), t1, t2;
2311
2316
  $[5] === delay ? (t1 = $[6], t2 = $[7]) : (t1 = () => {
2312
2317
  if (!delay) return;
2313
2318
  let timeout = setTimeout(() => {
@@ -2319,7 +2324,7 @@ const animation = css`background-image:linear-gradient( to right,var(--card-skel
2319
2324
  }, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2), useEffect(t1, t2);
2320
2325
  let t3;
2321
2326
  $[8] === radius ? t3 = $[9] : (t3 = _getArrayProp(radius), $[8] = radius, $[9] = t3);
2322
- let t4 = delay ? visible : !0, t5;
2327
+ let t4 = !delay || visible, t5;
2323
2328
  return $[10] !== animated || $[11] !== ref || $[12] !== restProps || $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(StyledSkeleton$1, {
2324
2329
  ...restProps,
2325
2330
  $animated: animated,
@@ -2909,7 +2914,7 @@ function useTree() {
2909
2914
  function TreeGroup(props) {
2910
2915
  let $ = c(9), children, restProps, t0;
2911
2916
  $[0] === props ? (children = $[1], restProps = $[2], t0 = $[3]) : ({children, expanded: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0);
2912
- let expanded = t0 === void 0 ? !1 : t0, tree = useTree(), t1 = !expanded, t2;
2917
+ let expanded = t0 !== void 0 && t0, tree = useTree(), t1 = !expanded, t2;
2913
2918
  return $[4] !== children || $[5] !== restProps || $[6] !== t1 || $[7] !== tree.gap ? (t2 = /* @__PURE__ */ jsx(Stack, {
2914
2919
  as: "ul",
2915
2920
  "data-ui": "TreeGroup",
@@ -2923,13 +2928,13 @@ function TreeGroup(props) {
2923
2928
  }
2924
2929
  const StyledTreeItem = /* @__PURE__ */ styled.li.withConfig({
2925
2930
  displayName: "StyledTreeItem",
2926
- componentId: "sc-v9loy0-0"
2931
+ componentId: "sc-arsnlr-0"
2927
2932
  })(treeItemRootStyle, treeItemRootColorStyle), TreeItemBox = /* @__PURE__ */ styled(Box).attrs({ forwardedAs: "a" }).withConfig({
2928
2933
  displayName: "TreeItemBox",
2929
- componentId: "sc-v9loy0-1"
2934
+ componentId: "sc-arsnlr-1"
2930
2935
  })(treeItemBoxStyle), ToggleArrowText = styled(Text).withConfig({
2931
2936
  displayName: "ToggleArrowText",
2932
- componentId: "sc-v9loy0-2"
2937
+ componentId: "sc-arsnlr-2"
2933
2938
  })`& > svg{transition:transform 100ms;}`;
2934
2939
  /**
2935
2940
  * This API might change. DO NOT USE IN PRODUCTION.
@@ -2938,7 +2943,7 @@ const StyledTreeItem = /* @__PURE__ */ styled.li.withConfig({
2938
2943
  function TreeItem(props) {
2939
2944
  let $ = c(114), IconComponent, children, gap, href, idProp, linkAs, muted, onClick, restProps, t0, t1, t2, t3, t4, text, weight;
2940
2945
  $[0] === props ? (IconComponent = $[1], children = $[2], gap = $[3], href = $[4], idProp = $[5], linkAs = $[6], muted = $[7], onClick = $[8], restProps = $[9], t0 = $[10], t1 = $[11], t2 = $[12], t3 = $[13], t4 = $[14], text = $[15], weight = $[16]) : ({children, expanded: t0, fontSize: t1, href, icon: IconComponent, id: idProp, linkAs, muted, onClick, padding: t2, selected: t3, gap, space: t4, text, weight, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = gap, $[4] = href, $[5] = idProp, $[6] = linkAs, $[7] = muted, $[8] = onClick, $[9] = restProps, $[10] = t0, $[11] = t1, $[12] = t2, $[13] = t3, $[14] = t4, $[15] = text, $[16] = weight);
2941
- let expandedProp = t0 === void 0 ? !1 : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, selected = t3 === void 0 ? !1 : t3, spacing = gap === void 0 ? t4 === void 0 ? 2 : t4 : gap, [rootElement, _setRootElement] = useState(null), t5;
2946
+ let expandedProp = t0 !== void 0 && t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, selected = t3 !== void 0 && t3, spacing = gap === void 0 ? t4 === void 0 ? 2 : t4 : gap, [rootElement, _setRootElement] = useState(null), t5;
2942
2947
  $[17] === Symbol.for("react.memo_cache_sentinel") ? (t5 = (node) => {
2943
2948
  startTransition(() => _setRootElement(node));
2944
2949
  }, $[17] = t5) : t5 = $[17];