@sanity/ui 3.4.2 → 3.4.4

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.
Files changed (43) hide show
  1. package/dist/_chunks/refractor.cjs +18 -0
  2. package/dist/_chunks/refractor.cjs.map +1 -0
  3. package/dist/_chunks/refractor.js +9 -7
  4. package/dist/_chunks/refractor.js.map +1 -1
  5. package/dist/_chunks/{tabList.mjs → tabList.cjs} +988 -599
  6. package/dist/_chunks/tabList.cjs.map +1 -0
  7. package/dist/_chunks/tabList.js +537 -1047
  8. package/dist/_chunks/tabList.js.map +1 -1
  9. package/dist/_chunks/{theme.mjs → theme.cjs} +266 -11
  10. package/dist/_chunks/theme.cjs.map +1 -0
  11. package/dist/_chunks/{theme.d.mts → theme.d.cts} +11 -11
  12. package/dist/_chunks/{theme.d.mts.map → theme.d.cts.map} +1 -1
  13. package/dist/_chunks/theme.d.ts +10 -10
  14. package/dist/_chunks/theme.js +10 -265
  15. package/dist/_chunks/theme.js.map +1 -1
  16. package/dist/_chunks/{useTheme.d.mts → useTheme.d.cts} +26 -41
  17. package/dist/_chunks/useTheme.d.cts.map +1 -0
  18. package/dist/_chunks/useTheme.d.ts +24 -39
  19. package/dist/_chunks/useTheme.d.ts.map +1 -1
  20. package/dist/_visual-editing.cjs +3 -0
  21. package/dist/{_visual-editing.d.mts → _visual-editing.d.cts} +1 -1
  22. package/dist/_visual-editing.js +2 -3
  23. package/dist/{index.mjs → index.cjs} +570 -664
  24. package/dist/index.cjs.map +1 -0
  25. package/dist/{index.d.mts → index.d.cts} +12 -33
  26. package/dist/index.d.cts.map +1 -0
  27. package/dist/index.d.ts +9 -30
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +578 -653
  30. package/dist/index.js.map +1 -1
  31. package/dist/theme.cjs +3 -0
  32. package/dist/{theme.d.mts → theme.d.cts} +1 -1
  33. package/dist/theme.js +2 -3
  34. package/package.json +22 -22
  35. package/dist/_chunks/refractor.mjs +0 -21
  36. package/dist/_chunks/refractor.mjs.map +0 -1
  37. package/dist/_chunks/tabList.mjs.map +0 -1
  38. package/dist/_chunks/theme.mjs.map +0 -1
  39. package/dist/_chunks/useTheme.d.mts.map +0 -1
  40. package/dist/_visual-editing.mjs +0 -2
  41. package/dist/index.d.mts.map +0 -1
  42. package/dist/index.mjs.map +0 -1
  43. package/dist/theme.mjs +0 -2
package/dist/index.js CHANGED
@@ -1,8 +1,17 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_tabList = require("./_chunks/tabList.js"), require_theme = require("./_chunks/theme.js");
3
- let react_compiler_runtime = require("react-compiler-runtime"), _sanity_icons_ChevronDown = require("@sanity/icons/ChevronDown"), react = require("react"), react_is = require("react-is");
4
- react_is = require_tabList.It(react_is);
5
- let styled_components = require("styled-components"), react_jsx_runtime = require("react/jsx-runtime"), _sanity_icons_Spinner = require("@sanity/icons/Spinner"), _sanity_icons_Checkmark = require("@sanity/icons/Checkmark"), _sanity_icons_Remove = require("@sanity/icons/Remove"), motion_react = require("motion/react"), _sanity_icons_Close = require("@sanity/icons/Close"), _sanity_icons_ToggleArrowRight = require("@sanity/icons/ToggleArrowRight");
1
+ import { X as getTheme_v2 } from "./_chunks/theme.js";
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.js";
3
+ import { c } from "react-compiler-runtime";
4
+ import { ChevronDownIcon } from "@sanity/icons/ChevronDown";
5
+ import { Children, Component, Fragment, Suspense, cloneElement, forwardRef, isValidElement, lazy, startTransition, useContext, useEffect, useId, useImperativeHandle, useReducer, useRef, useState, useSyncExternalStore } from "react";
6
+ import ReactIs from "react-is";
7
+ import { css, keyframes, styled } from "styled-components";
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";
12
+ import { AnimatePresence, motion } from "motion/react";
13
+ import { CloseIcon } from "@sanity/icons/Close";
14
+ import { ToggleArrowRightIcon } from "@sanity/icons/ToggleArrowRight";
6
15
  /**
7
16
  * @internal
8
17
  */
@@ -33,7 +42,7 @@ function _hasFocus(element) {
33
42
  * @internal
34
43
  */
35
44
  function isFocusable(element) {
36
- return element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null ? !0 : require_tabList.vt(element) ? !!element.href && element.rel !== "ignore" : require_tabList.xt(element) ? element.type !== "hidden" && element.type !== "file" && !element.disabled : require_tabList.yt(element) || require_tabList.St(element) || require_tabList.Ct(element) ? !element.disabled : !1;
45
+ return element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null ? !0 : isHTMLAnchorElement(element) ? !!element.href && element.rel !== "ignore" : isHTMLInputElement(element) ? element.type !== "hidden" && element.type !== "file" && !element.disabled : isHTMLButtonElement(element) || isHTMLSelectElement(element) || isHTMLTextAreaElement(element) ? !element.disabled : !1;
37
46
  }
38
47
  /**
39
48
  * @internal
@@ -51,7 +60,7 @@ function attemptFocus(element) {
51
60
  function focusFirstDescendant(element) {
52
61
  for (let i = 0; i < element.childNodes.length; i++) {
53
62
  let child = element.childNodes[i];
54
- if (require_tabList.bt(child) && (attemptFocus(child) || focusFirstDescendant(child))) return !0;
63
+ if (isHTMLElement(child) && (attemptFocus(child) || focusFirstDescendant(child))) return !0;
55
64
  }
56
65
  return !1;
57
66
  }
@@ -61,7 +70,7 @@ function focusFirstDescendant(element) {
61
70
  function focusLastDescendant(element) {
62
71
  for (let i = element.childNodes.length - 1; i >= 0; i--) {
63
72
  let child = element.childNodes[i];
64
- if (require_tabList.bt(child) && (attemptFocus(child) || focusLastDescendant(child))) return !0;
73
+ if (isHTMLElement(child) && (attemptFocus(child) || focusLastDescendant(child))) return !0;
65
74
  }
66
75
  return !1;
67
76
  }
@@ -78,46 +87,46 @@ function _isScrollable(el) {
78
87
  * @internal
79
88
  */
80
89
  function responsiveCodeFontStyle(props) {
81
- return require_tabList.ut("code", props);
90
+ return responsiveFont("code", props);
82
91
  }
83
92
  /**
84
93
  * Get responsive CSS for the `heading` font style.
85
94
  * @internal
86
95
  */
87
96
  function responsiveHeadingFont(props) {
88
- return require_tabList.ut("heading", props);
97
+ return responsiveFont("heading", props);
89
98
  }
90
99
  /**
91
100
  * Get responsive CSS for the `label` font style.
92
101
  * @internal
93
102
  */
94
103
  function responsiveLabelFont(props) {
95
- return require_tabList.ut("label", props);
104
+ return responsiveFont("label", props);
96
105
  }
97
106
  function labelBaseStyle(props) {
98
- let { $accent, $muted } = props, { font } = require_theme.X(props.theme);
99
- return styled_components.css`text-transform:uppercase;${$accent && styled_components.css`color:var(--card-accent-fg-color);`} ${$muted && styled_components.css`color:var(--card-muted-fg-color);`} & code{font-family:${font.code.family};border-radius:1px;}& a{text-decoration:none;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
107
+ let { $accent, $muted } = props, { font } = getTheme_v2(props.theme);
108
+ return css`text-transform:uppercase;${$accent && css`color:var(--card-accent-fg-color);`} ${$muted && css`color:var(--card-muted-fg-color);`} & code{font-family:${font.code.family};border-radius:1px;}& a{text-decoration:none;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
100
109
  }
101
- const StyledLabel = /* @__PURE__ */ styled_components.styled.div.withConfig({
110
+ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
102
111
  displayName: "StyledLabel",
103
- componentId: "sc-cvgwlt-0"
104
- })(responsiveLabelFont, require_tabList.lt, labelBaseStyle), LabelComponent = (0, react.forwardRef)(function(props, ref) {
105
- let $ = (0, react_compiler_runtime.c)(26), accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
112
+ componentId: "sc-rdxcu9-0"
113
+ })(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), Label = forwardRef(function Label(props, ref) {
114
+ let $ = c(26), accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
106
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);
107
116
  let muted = t0 !== void 0 && t0, size = t1 === void 0 ? 2 : t1, children = childrenProp;
108
117
  if (textOverflow === "ellipsis") {
109
118
  let t2;
110
- $[9] === children ? t2 = $[10] : (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.G, { children }), $[9] = children, $[10] = t2), children = t2;
119
+ $[9] === children ? t2 = $[10] : (t2 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t2), children = t2;
111
120
  } else {
112
121
  let t2;
113
- $[11] === children ? t2 = $[12] : (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children }), $[11] = children, $[12] = t2), children = t2;
122
+ $[11] === children ? t2 = $[12] : (t2 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t2), children = t2;
114
123
  }
115
124
  let t2;
116
- $[13] === align ? t2 = $[14] : (t2 = require_tabList.ft(align), $[13] = align, $[14] = t2);
125
+ $[13] === align ? t2 = $[14] : (t2 = _getArrayProp(align), $[13] = align, $[14] = t2);
117
126
  let t3;
118
- $[15] === size ? t3 = $[16] : (t3 = require_tabList.ft(size), $[15] = size, $[16] = t3);
127
+ $[15] === size ? t3 = $[16] : (t3 = _getArrayProp(size), $[15] = size, $[16] = t3);
119
128
  let t4;
120
- return $[17] !== accent || $[18] !== children || $[19] !== muted || $[20] !== ref || $[21] !== restProps || $[22] !== t2 || $[23] !== t3 || $[24] !== weight ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLabel, {
129
+ return $[17] !== accent || $[18] !== children || $[19] !== muted || $[20] !== ref || $[21] !== restProps || $[22] !== t2 || $[23] !== t3 || $[24] !== weight ? (t4 = /* @__PURE__ */ jsx(StyledLabel, {
121
130
  "data-ui": "Label",
122
131
  ...restProps,
123
132
  $accent: accent,
@@ -128,14 +137,7 @@ const StyledLabel = /* @__PURE__ */ styled_components.styled.div.withConfig({
128
137
  ref,
129
138
  children
130
139
  }), $[17] = accent, $[18] = children, $[19] = muted, $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3, $[24] = weight, $[25] = t4) : t4 = $[25], t4;
131
- });
132
- LabelComponent.displayName = "ForwardRef(Label)";
133
- /**
134
- * Typographic labels.
135
- *
136
- * @public
137
- */
138
- const Label = LabelComponent, avatarStyle = {
140
+ }), avatarStyle = {
139
141
  root: avatarRootStyle,
140
142
  arrow: avatarArrowStyle,
141
143
  bgStroke: avatarBgStrokeStyle,
@@ -179,7 +181,7 @@ function avatarArrowStyle() {
179
181
  };
180
182
  }
181
183
  function avatarRootStyle(props) {
182
- let { $color } = props, { avatar } = require_theme.X(props.theme);
184
+ let { $color } = props, { avatar } = getTheme_v2(props.theme);
183
185
  return {
184
186
  "--avatar-bg-color": `var(--card-avatar-${$color}-bg-color)`,
185
187
  "--avatar-fg-color": `var(--card-avatar-${$color}-fg-color)`,
@@ -199,23 +201,23 @@ function avatarRootStyle(props) {
199
201
  font: "inherit",
200
202
  color: "inherit",
201
203
  outline: "none",
202
- "&:focus": { boxShadow: require_tabList.tt({ focusRing: avatar.focusRing }) },
204
+ "&:focus": { boxShadow: focusRingStyle({ focusRing: avatar.focusRing }) },
203
205
  "&:focus:not(:focus-visible)": { boxShadow: "none" }
204
206
  }
205
207
  };
206
208
  }
207
209
  function responsiveAvatarSizeStyle(props) {
208
- let { avatar, media } = require_theme.X(props.theme);
209
- return require_tabList.mt(media, props.$size, (size) => {
210
+ let { avatar, media } = getTheme_v2(props.theme);
211
+ return _responsive(media, props.$size, (size) => {
210
212
  let avatarSize = avatar.sizes[size] || avatar.sizes[0];
211
213
  return {
212
- width: require_tabList.ht(avatarSize.size),
213
- height: require_tabList.ht(avatarSize.size),
214
- borderRadius: require_tabList.ht(avatarSize.size / 2),
214
+ width: rem(avatarSize.size),
215
+ height: rem(avatarSize.size),
216
+ borderRadius: rem(avatarSize.size / 2),
215
217
  "&>svg": {
216
- width: require_tabList.ht(avatarSize.size),
217
- height: require_tabList.ht(avatarSize.size),
218
- borderRadius: require_tabList.ht(avatarSize.size / 2)
218
+ width: rem(avatarSize.size),
219
+ height: rem(avatarSize.size),
220
+ borderRadius: rem(avatarSize.size / 2)
219
221
  }
220
222
  };
221
223
  });
@@ -252,86 +254,86 @@ function avatarStrokeStyle() {
252
254
  }
253
255
  };
254
256
  }
255
- const StyledAvatar = /* @__PURE__ */ styled_components.styled.div.withConfig({
257
+ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
256
258
  displayName: "StyledAvatar",
257
- componentId: "sc-jxq2u8-0"
258
- })(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1 = /* @__PURE__ */ styled_components.styled.div.withConfig({
259
+ componentId: "sc-skil6v-0"
260
+ })(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1 = /* @__PURE__ */ styled.div.withConfig({
259
261
  displayName: "Arrow",
260
- componentId: "sc-jxq2u8-1"
261
- })(avatarStyle.arrow), BgStroke = /* @__PURE__ */ styled_components.styled.ellipse.withConfig({
262
+ componentId: "sc-skil6v-1"
263
+ })(avatarStyle.arrow), BgStroke = /* @__PURE__ */ styled.ellipse.withConfig({
262
264
  displayName: "BgStroke",
263
- componentId: "sc-jxq2u8-2"
264
- })(avatarStyle.bgStroke), Stroke = /* @__PURE__ */ styled_components.styled.ellipse.withConfig({
265
+ componentId: "sc-skil6v-2"
266
+ })(avatarStyle.bgStroke), Stroke = /* @__PURE__ */ styled.ellipse.withConfig({
265
267
  displayName: "Stroke",
266
- componentId: "sc-jxq2u8-3"
267
- })(avatarStyle.stroke), Initials = /* @__PURE__ */ styled_components.styled.div.withConfig({
268
+ componentId: "sc-skil6v-3"
269
+ })(avatarStyle.stroke), Initials = /* @__PURE__ */ styled.div.withConfig({
268
270
  displayName: "Initials",
269
- componentId: "sc-jxq2u8-4"
270
- })(avatarStyle.initials), InitialsLabel = /* @__PURE__ */ (0, styled_components.styled)(Label).withConfig({
271
+ componentId: "sc-skil6v-4"
272
+ })(avatarStyle.initials), InitialsLabel = /* @__PURE__ */ styled(Label).withConfig({
271
273
  displayName: "InitialsLabel",
272
- componentId: "sc-jxq2u8-5"
273
- })({ color: "inherit" }), AvatarImage = /* @__PURE__ */ styled_components.styled.svg.withConfig({
274
+ componentId: "sc-skil6v-5"
275
+ })({ color: "inherit" }), AvatarImage = /* @__PURE__ */ styled.svg.withConfig({
274
276
  displayName: "AvatarImage",
275
- componentId: "sc-jxq2u8-6"
276
- })(avatarStyle.image), AvatarComponent = (0, react.forwardRef)(function(props, ref) {
277
- let $ = (0, react_compiler_runtime.c)(46), __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
277
+ componentId: "sc-skil6v-6"
278
+ })(avatarStyle.image), Avatar = forwardRef(function Avatar(props, ref) {
279
+ let $ = c(46), __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
278
280
  $[0] === props ? (__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]) : ({__unstable_hideInnerStroke, as: asProp, color: t0, src, title, initials, onImageLoadError, arrowPosition: arrowPositionProp, animateArrowFrom, status: t1, size: t2, ...restProps} = 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);
279
- let color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, { avatar } = require_tabList.rt(), as = react_is.default.isValidElementType(asProp) ? asProp : "div", size = require_tabList.ft(sizeProp), _sizeRem = (avatar.sizes[size[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = (0, react.useId)(), [arrowPosition, setArrowPosition] = (0, react.useState)(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = (0, react.useState)(!1), imageId = `avatar-image-${elementId}`, t3, t4;
281
+ let color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, { avatar } = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size = _getArrayProp(sizeProp), _sizeRem = (avatar.sizes[size[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = useId(), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = useState(!1), imageId = `avatar-image-${elementId}`, t3, t4;
280
282
  $[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t3 = () => {
281
283
  if (arrowPosition === arrowPositionProp) return;
282
284
  let raf = requestAnimationFrame(() => setArrowPosition(arrowPositionProp));
283
285
  return () => cancelAnimationFrame(raf);
284
- }, t4 = [arrowPosition, arrowPositionProp], $[13] = arrowPosition, $[14] = arrowPositionProp, $[15] = t3, $[16] = t4) : (t3 = $[15], t4 = $[16]), (0, react.useEffect)(t3, t4);
286
+ }, t4 = [arrowPosition, arrowPositionProp], $[13] = arrowPosition, $[14] = arrowPositionProp, $[15] = t3, $[16] = t4) : (t3 = $[15], t4 = $[16]), useEffect(t3, t4);
285
287
  let t5, t6;
286
288
  $[17] === src ? (t5 = $[18], t6 = $[19]) : (t5 = () => {
287
289
  src && setImageFailed(!1);
288
- }, t6 = [src], $[17] = src, $[18] = t5, $[19] = t6), (0, react.useEffect)(t5, t6);
290
+ }, t6 = [src], $[17] = src, $[18] = t5, $[19] = t6), useEffect(t5, t6);
289
291
  let t7;
290
292
  $[20] === onImageLoadError ? t7 = $[21] : (t7 = () => {
291
293
  setImageFailed(!0), onImageLoadError && onImageLoadError(/* @__PURE__ */ Error("Avatar: the image failed to load"));
292
294
  }, $[20] = onImageLoadError, $[21] = t7);
293
295
  let handleImageError = t7, T0 = StyledAvatar, t8 = typeof as == "string" ? as : void 0, t10;
294
- $[22] === color ? t10 = $[23] : (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Arrow$1, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
296
+ $[22] === color ? t10 = $[23] : (t10 = /* @__PURE__ */ jsx(Arrow$1, { children: /* @__PURE__ */ jsx("svg", {
295
297
  width: "11",
296
298
  height: "7",
297
299
  viewBox: "0 0 11 7",
298
300
  fill: "none",
299
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
301
+ children: /* @__PURE__ */ jsx("path", {
300
302
  d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z",
301
303
  fill: color
302
304
  })
303
305
  }) }), $[22] = color, $[23] = t10);
304
306
  let t11;
305
- $[24] !== __unstable_hideInnerStroke || $[25] !== _radius || $[26] !== _sizeRem || $[27] !== handleImageError || $[28] !== imageFailed || $[29] !== imageId || $[30] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(AvatarImage, {
307
+ $[24] !== __unstable_hideInnerStroke || $[25] !== _radius || $[26] !== _sizeRem || $[27] !== handleImageError || $[28] !== imageFailed || $[29] !== imageId || $[30] !== src ? (t11 = !imageFailed && src && /* @__PURE__ */ jsxs(AvatarImage, {
306
308
  viewBox: `0 0 ${_sizeRem} ${_sizeRem}`,
307
309
  fill: "none",
308
310
  children: [
309
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pattern", {
311
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("pattern", {
310
312
  id: imageId,
311
313
  patternContentUnits: "objectBoundingBox",
312
314
  width: "1",
313
315
  height: "1",
314
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("image", {
316
+ children: /* @__PURE__ */ jsx("image", {
315
317
  href: src,
316
318
  width: "1",
317
319
  height: "1",
318
320
  onError: handleImageError
319
321
  })
320
322
  }) }),
321
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
323
+ /* @__PURE__ */ jsx("circle", {
322
324
  cx: _radius,
323
325
  cy: _radius,
324
326
  r: _radius,
325
327
  fill: `url(#${imageId})`
326
328
  }),
327
- !__unstable_hideInnerStroke && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BgStroke, {
329
+ !__unstable_hideInnerStroke && /* @__PURE__ */ jsx(BgStroke, {
328
330
  cx: _radius,
329
331
  cy: _radius,
330
332
  rx: _radius,
331
333
  ry: _radius,
332
334
  vectorEffect: "non-scaling-stroke"
333
335
  }),
334
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Stroke, {
336
+ /* @__PURE__ */ jsx(Stroke, {
335
337
  cx: _radius,
336
338
  cy: _radius,
337
339
  rx: _radius,
@@ -340,13 +342,13 @@ const StyledAvatar = /* @__PURE__ */ styled_components.styled.div.withConfig({
340
342
  })
341
343
  ]
342
344
  }), $[24] = __unstable_hideInnerStroke, $[25] = _radius, $[26] = _sizeRem, $[27] = handleImageError, $[28] = imageFailed, $[29] = imageId, $[30] = src, $[31] = t11) : t11 = $[31];
343
- let t12 = (imageFailed || !src) && initials && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Initials, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InitialsLabel, {
345
+ let t12 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Initials, { children: /* @__PURE__ */ jsx(InitialsLabel, {
344
346
  forwardedAs: "span",
345
- size: size.map(_temp$4),
347
+ size: size.map(_temp$5),
346
348
  weight: "medium",
347
349
  children: initials
348
350
  }) }) }), t13;
349
- return $[32] !== T0 || $[33] !== arrowPosition || $[34] !== as || $[35] !== color || $[36] !== ref || $[37] !== restProps || $[38] !== size || $[39] !== status || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 || $[43] !== t8 || $[44] !== title ? (t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(T0, {
351
+ return $[32] !== T0 || $[33] !== arrowPosition || $[34] !== as || $[35] !== color || $[36] !== ref || $[37] !== restProps || $[38] !== size || $[39] !== status || $[40] !== t10 || $[41] !== t11 || $[42] !== t12 || $[43] !== t8 || $[44] !== title ? (t13 = /* @__PURE__ */ jsxs(T0, {
350
352
  as,
351
353
  "data-as": t8,
352
354
  "data-ui": "Avatar",
@@ -365,93 +367,85 @@ const StyledAvatar = /* @__PURE__ */ styled_components.styled.div.withConfig({
365
367
  ]
366
368
  }), $[32] = T0, $[33] = arrowPosition, $[34] = as, $[35] = color, $[36] = ref, $[37] = restProps, $[38] = size, $[39] = status, $[40] = t10, $[41] = t11, $[42] = t12, $[43] = t8, $[44] = title, $[45] = t13) : t13 = $[45], t13;
367
369
  });
368
- AvatarComponent.displayName = "ForwardRef(Avatar)";
369
- /**
370
- * Avatars are used to represent people and other agents (e.g. bots).
371
- *
372
- * @public
373
- */
374
- const Avatar = AvatarComponent;
375
- function _temp$4(s) {
370
+ function _temp$5(s) {
376
371
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
377
372
  }
378
373
  function _responsiveAvatarCounterSizeStyle(props) {
379
- let { avatar, media } = require_theme.X(props.theme);
380
- return require_tabList.mt(media, props.$size, (size) => {
374
+ let { avatar, media } = getTheme_v2(props.theme);
375
+ return _responsive(media, props.$size, (size) => {
381
376
  let avatarSize = avatar.sizes[size];
382
377
  return avatarSize ? {
383
- borderRadius: require_tabList.ht(avatarSize.size / 2),
384
- minWidth: require_tabList.ht(avatarSize.size),
385
- height: require_tabList.ht(avatarSize.size)
386
- } : require_tabList.Tt;
378
+ borderRadius: rem(avatarSize.size / 2),
379
+ minWidth: rem(avatarSize.size),
380
+ height: rem(avatarSize.size)
381
+ } : EMPTY_RECORD;
387
382
  });
388
383
  }
389
384
  function _avatarCounterBaseStyle(props) {
390
- let { space } = require_theme.X(props.theme);
391
- return styled_components.css`align-items:center;justify-content:center;box-sizing:border-box;user-select:none;color:inherit;color:var(--card-fg-color);background:var(--card-bg-color);box-shadow:0 0 0 1px var(--card-bg-color),inset 0 0 0 1px var(--card-hairline-hard-color);padding:0 ${require_tabList.ht(space[2])};&:not([hidden]){display:flex;}`;
385
+ let { space } = getTheme_v2(props.theme);
386
+ return css`align-items:center;justify-content:center;box-sizing:border-box;user-select:none;color:inherit;color:var(--card-fg-color);background:var(--card-bg-color);box-shadow:0 0 0 1px var(--card-bg-color),inset 0 0 0 1px var(--card-hairline-hard-color);padding:0 ${rem(space[2])};&:not([hidden]){display:flex;}`;
392
387
  }
393
- const StyledAvatarCounter = /* @__PURE__ */ styled_components.styled.div.withConfig({
388
+ const StyledAvatarCounter = /* @__PURE__ */ styled.div.withConfig({
394
389
  displayName: "StyledAvatarCounter",
395
- componentId: "sc-s1txqz-0"
396
- })(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = (0, react.forwardRef)(function(props, ref) {
397
- let $ = (0, react_compiler_runtime.c)(20), { count, size: t0 } = props, sizeProp = t0 === void 0 ? 1 : t0, T0, T1, t1, t2, t3, t4, t5;
390
+ componentId: "sc-6uv8jj-0"
391
+ })(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = forwardRef(function AvatarCounter(props, ref) {
392
+ let $ = c(20), { count, size: t0 } = props, sizeProp = t0 === void 0 ? 1 : t0, T0, T1, t1, t2, t3, t4, t5;
398
393
  if ($[0] !== ref || $[1] !== sizeProp) {
399
- let size = require_tabList.ft(sizeProp);
400
- T1 = StyledAvatarCounter, t3 = size, t4 = "AvatarCounter", t5 = ref, T0 = Label, t1 = "span", t2 = size.map(_temp$3), $[0] = ref, $[1] = sizeProp, $[2] = T0, $[3] = T1, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5;
394
+ let size = _getArrayProp(sizeProp);
395
+ T1 = StyledAvatarCounter, t3 = size, t4 = "AvatarCounter", t5 = ref, T0 = Label, t1 = "span", t2 = size.map(_temp$4), $[0] = ref, $[1] = sizeProp, $[2] = T0, $[3] = T1, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5;
401
396
  } else T0 = $[2], T1 = $[3], t1 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8];
402
397
  let t6;
403
- $[9] !== T0 || $[10] !== count || $[11] !== t1 || $[12] !== t2 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T0, {
398
+ $[9] !== T0 || $[10] !== count || $[11] !== t1 || $[12] !== t2 ? (t6 = /* @__PURE__ */ jsx(T0, {
404
399
  as: t1,
405
400
  size: t2,
406
401
  weight: "medium",
407
402
  children: count
408
403
  }), $[9] = T0, $[10] = count, $[11] = t1, $[12] = t2, $[13] = t6) : t6 = $[13];
409
404
  let t7;
410
- return $[14] !== T1 || $[15] !== t3 || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T1, {
405
+ return $[14] !== T1 || $[15] !== t3 || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsx(T1, {
411
406
  $size: t3,
412
407
  "data-ui": t4,
413
408
  ref: t5,
414
409
  children: t6
415
410
  }), $[14] = T1, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19], t7;
416
411
  });
417
- AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
418
- function _temp$3(s) {
412
+ function _temp$4(s) {
419
413
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
420
414
  }
421
- const BASE_STYLES = styled_components.css`white-space:nowrap;& > div{vertical-align:top;&:not([hidden]){display:inline-block;}}`;
415
+ const BASE_STYLES = css`white-space:nowrap;& > div{vertical-align:top;&:not([hidden]){display:inline-block;}}`;
422
416
  function avatarStackStyle() {
423
417
  return BASE_STYLES;
424
418
  }
425
419
  function responsiveAvatarStackSizeStyle(props) {
426
- let { avatar, media } = require_theme.X(props.theme);
427
- return require_tabList.mt(media, props.$size, (size) => {
420
+ let { avatar, media } = getTheme_v2(props.theme);
421
+ return _responsive(media, props.$size, (size) => {
428
422
  let avatarSize = avatar.sizes[size];
429
- return avatarSize ? { "& > div + div": { marginLeft: require_tabList.ht(avatarSize.distance) } } : require_tabList.Tt;
423
+ return avatarSize ? { "& > div + div": { marginLeft: rem(avatarSize.distance) } } : EMPTY_RECORD;
430
424
  });
431
425
  }
432
- const StyledAvatarStack = /* @__PURE__ */ styled_components.styled.div.withConfig({
426
+ const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
433
427
  displayName: "StyledAvatarStack",
434
- componentId: "sc-ks59o1-0"
435
- })(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = (0, react.forwardRef)(function(props, ref) {
436
- let $ = (0, react_compiler_runtime.c)(38), childrenProp, restProps, t0, t1;
428
+ componentId: "sc-ttibh-0"
429
+ })(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = forwardRef(function AvatarStack(props, ref) {
430
+ let $ = c(38), childrenProp, restProps, t0, t1;
437
431
  $[0] === props ? (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]) : ({children: childrenProp, maxLength: t0, size: t1, ...restProps} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1);
438
432
  let maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, T0, t2, t3, t4, t5, t6, t7, t8;
439
433
  if ($[5] !== childrenProp || $[6] !== maxLengthProp || $[7] !== ref || $[8] !== restProps || $[9] !== sizeProp) {
440
- let children = react.Children.toArray(childrenProp).filter(react.isValidElement), maxLength = Math.max(maxLengthProp, 0), t9;
441
- $[18] === sizeProp ? t9 = $[19] : (t9 = require_tabList.ft(sizeProp), $[18] = sizeProp, $[19] = t9);
434
+ let children = Children.toArray(childrenProp).filter(isValidElement), maxLength = Math.max(maxLengthProp, 0), t9;
435
+ $[18] === sizeProp ? t9 = $[19] : (t9 = _getArrayProp(sizeProp), $[18] = sizeProp, $[19] = t9);
442
436
  let size = t9, len = children.length, extraCount = len - (maxLength - 1), visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children;
443
- T0 = StyledAvatarStack, t2 = "AvatarStack", t3 = restProps, t4 = ref, t5 = size, $[20] !== len || $[21] !== size ? (t6 = len === 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AvatarCounter, {
437
+ T0 = StyledAvatarStack, t2 = "AvatarStack", t3 = restProps, t4 = ref, t5 = size, $[20] !== len || $[21] !== size ? (t6 = len === 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, {
444
438
  count: len,
445
439
  size
446
- }) }), $[20] = len, $[21] = size, $[22] = t6) : t6 = $[22], $[23] !== extraCount || $[24] !== len || $[25] !== size ? (t7 = len !== 0 && extraCount > 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AvatarCounter, {
440
+ }) }), $[20] = len, $[21] = size, $[22] = t6) : t6 = $[22], $[23] !== extraCount || $[24] !== len || $[25] !== size ? (t7 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, {
447
441
  count: extraCount,
448
442
  size
449
443
  }) }), $[23] = extraCount, $[24] = len, $[25] = size, $[26] = t7) : t7 = $[26];
450
444
  let t10;
451
- $[27] === size ? t10 = $[28] : (t10 = (child, childIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: (0, react.cloneElement)(child, { size }) }, String(childIndex)), $[27] = size, $[28] = t10), t8 = visibleChildren.map(t10), $[5] = childrenProp, $[6] = maxLengthProp, $[7] = ref, $[8] = restProps, $[9] = sizeProp, $[10] = T0, $[11] = t2, $[12] = t3, $[13] = t4, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8;
445
+ $[27] === size ? t10 = $[28] : (t10 = (child, childIndex) => /* @__PURE__ */ jsx("div", { children: cloneElement(child, { size }) }, String(childIndex)), $[27] = size, $[28] = t10), t8 = visibleChildren.map(t10), $[5] = childrenProp, $[6] = maxLengthProp, $[7] = ref, $[8] = restProps, $[9] = sizeProp, $[10] = T0, $[11] = t2, $[12] = t3, $[13] = t4, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8;
452
446
  } else T0 = $[10], t2 = $[11], t3 = $[12], t4 = $[13], t5 = $[14], t6 = $[15], t7 = $[16], t8 = $[17];
453
447
  let t9;
454
- return $[29] !== T0 || $[30] !== t2 || $[31] !== t3 || $[32] !== t4 || $[33] !== t5 || $[34] !== t6 || $[35] !== t7 || $[36] !== t8 ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(T0, {
448
+ return $[29] !== T0 || $[30] !== t2 || $[31] !== t3 || $[32] !== t4 || $[33] !== t5 || $[34] !== t6 || $[35] !== t7 || $[36] !== t8 ? (t9 = /* @__PURE__ */ jsxs(T0, {
455
449
  "data-ui": t2,
456
450
  ...t3,
457
451
  ref: t4,
@@ -463,7 +457,6 @@ const StyledAvatarStack = /* @__PURE__ */ styled_components.styled.div.withConfi
463
457
  ]
464
458
  }), $[29] = T0, $[30] = t2, $[31] = t3, $[32] = t4, $[33] = t5, $[34] = t6, $[35] = t7, $[36] = t8, $[37] = t9) : t9 = $[37], t9;
465
459
  });
466
- AvatarStack.displayName = "ForwardRef(AvatarStack)";
467
460
  function badgeStyle(props) {
468
461
  let { $tone } = props;
469
462
  return {
@@ -477,26 +470,26 @@ function badgeStyle(props) {
477
470
  }
478
471
  };
479
472
  }
480
- const StyledBadge = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
473
+ const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
481
474
  displayName: "StyledBadge",
482
- componentId: "sc-p8fi74-0"
483
- })(require_tabList.K, badgeStyle), BadgeComponent = (0, react.forwardRef)(function(props, ref) {
484
- let $ = (0, react_compiler_runtime.c)(21), children, restProps, t0, t1, t2, t3;
475
+ componentId: "sc-nx309b-0"
476
+ })(responsiveRadiusStyle, badgeStyle), Badge = forwardRef(function Badge(props, ref) {
477
+ let $ = c(21), children, restProps, t0, t1, t2, t3;
485
478
  if ($[0] !== props) {
486
479
  let { children: t4, fontSize: t5, mode: _deprecated_mode, padding: t6, radius: t7, tone: t8, ...t9 } = props;
487
480
  children = t4, t0 = t5, t1 = t6, t2 = t7, t3 = t8, restProps = t9, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2, $[6] = t3;
488
481
  } else children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
489
482
  let fontSize = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? "full" : t2, tone = t3 === void 0 ? "default" : t3, t4;
490
- $[7] === radius ? t4 = $[8] : (t4 = require_tabList.ft(radius), $[7] = radius, $[8] = t4);
483
+ $[7] === radius ? t4 = $[8] : (t4 = _getArrayProp(radius), $[7] = radius, $[8] = t4);
491
484
  let t5;
492
- $[9] === padding ? t5 = $[10] : (t5 = require_tabList.ft(padding), $[9] = padding, $[10] = t5);
485
+ $[9] === padding ? t5 = $[10] : (t5 = _getArrayProp(padding), $[9] = padding, $[10] = t5);
493
486
  let t6;
494
- $[11] !== children || $[12] !== fontSize ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
487
+ $[11] !== children || $[12] !== fontSize ? (t6 = /* @__PURE__ */ jsx(Text, {
495
488
  size: fontSize,
496
489
  children
497
490
  }), $[11] = children, $[12] = fontSize, $[13] = t6) : t6 = $[13];
498
491
  let t7;
499
- return $[14] !== ref || $[15] !== restProps || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 || $[19] !== tone ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledBadge, {
492
+ return $[14] !== ref || $[15] !== restProps || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 || $[19] !== tone ? (t7 = /* @__PURE__ */ jsx(StyledBadge, {
500
493
  "data-ui": "Badge",
501
494
  ...restProps,
502
495
  $tone: tone,
@@ -506,19 +499,13 @@ const StyledBadge = /* @__PURE__ */ (0, styled_components.styled)(require_tabLis
506
499
  children: t6
507
500
  }), $[14] = ref, $[15] = restProps, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = tone, $[20] = t7) : t7 = $[20], t7;
508
501
  });
509
- BadgeComponent.displayName = "ForwardRef(Badge)";
510
- /**
511
- * Badges are used to tag resources.
512
- *
513
- * @public
514
- */
515
- const Badge = BadgeComponent;
516
502
  /**
517
503
  * @deprecated instead of `useArrayProp(width)` use `Array.isArray(width) ? width : [width]` instead
518
504
  * @beta
519
505
  */
520
506
  function useArrayProp(val, defaultVal) {
521
- return (0, react.useMemo)(() => require_tabList.ft(val, defaultVal), [val, defaultVal]);
507
+ let $ = c(3), t0;
508
+ return $[0] !== defaultVal || $[1] !== val ? (t0 = _getArrayProp(val, defaultVal), $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2], t0;
522
509
  }
523
510
  function _getElements(element, elementsArg) {
524
511
  let ret = [element];
@@ -540,9 +527,11 @@ function _getElements(element, elementsArg) {
540
527
  * return <button ref={buttonRef} />
541
528
  * ```
542
529
  */
543
- function useClickOutside(listener, elementsArg = require_tabList.wt, boundaryElement) {
544
- let [element, setElement] = (0, react.useState)(null), [elements, setElements] = (0, react.useState)(() => _getElements(element, elementsArg)), elementsRef = (0, react.useRef)(elements);
545
- return (0, react.useEffect)(() => {
530
+ function useClickOutside(listener, t0, boundaryElement) {
531
+ let $ = c(12), elementsArg = t0 === void 0 ? EMPTY_ARRAY : t0, [element, setElement] = useState(null), t1;
532
+ $[0] !== element || $[1] !== elementsArg ? (t1 = () => _getElements(element, elementsArg), $[0] = element, $[1] = elementsArg, $[2] = t1) : t1 = $[2];
533
+ let [elements, setElements] = useState(t1), elementsRef = useRef(elements), t2, t3;
534
+ $[3] !== element || $[4] !== elementsArg ? (t2 = () => {
546
535
  let prevElements = elementsRef.current, nextElements = _getElements(element, elementsArg);
547
536
  if (prevElements.length !== nextElements.length) {
548
537
  setElements(nextElements), elementsRef.current = nextElements;
@@ -552,27 +541,29 @@ function useClickOutside(listener, elementsArg = require_tabList.wt, boundaryEle
552
541
  setElements(nextElements), elementsRef.current = nextElements;
553
542
  return;
554
543
  }
555
- for (let el of nextElements) if (!prevElements.includes(el)) {
544
+ for (let el_0 of nextElements) if (!prevElements.includes(el_0)) {
556
545
  setElements(nextElements), elementsRef.current = nextElements;
557
546
  return;
558
547
  }
559
- }, [element, elementsArg]), (0, react.useEffect)(() => {
548
+ }, t3 = [element, elementsArg], $[3] = element, $[4] = elementsArg, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), useEffect(t2, t3);
549
+ let t4, t5;
550
+ return $[7] !== boundaryElement || $[8] !== elements || $[9] !== listener ? (t4 = () => {
560
551
  if (!listener) return;
561
552
  let handleWindowMouseDown = (evt) => {
562
553
  let target = evt.target;
563
554
  if (target instanceof Node && !(boundaryElement && !boundaryElement.contains(target))) {
564
- for (let el of elements) if (target === el || el.contains(target)) return;
555
+ for (let el_1 of elements) if (target === el_1 || el_1.contains(target)) return;
565
556
  listener(evt);
566
557
  }
567
558
  };
568
559
  return window.addEventListener("mousedown", handleWindowMouseDown), () => {
569
560
  window.removeEventListener("mousedown", handleWindowMouseDown);
570
561
  };
571
- }, [
562
+ }, t5 = [
572
563
  boundaryElement,
573
564
  listener,
574
565
  elements
575
- ]), setElement;
566
+ ], $[7] = boundaryElement, $[8] = elements, $[9] = listener, $[10] = t4, $[11] = t5) : (t4 = $[10], t5 = $[11]), useEffect(t4, t5), setElement;
576
567
  }
577
568
  /**
578
569
  * Subscribe to the rect of a DOM element.
@@ -581,7 +572,7 @@ function useClickOutside(listener, elementsArg = require_tabList.wt, boundaryEle
581
572
  * @deprecated Use `useElementSize` instead
582
573
  */
583
574
  function useElementRect(element) {
584
- return require_tabList.N(element)?._contentRect || null;
575
+ return useElementSize(element)?._contentRect || null;
585
576
  }
586
577
  /**
587
578
  * @beta
@@ -594,27 +585,27 @@ function useElementRect(element) {
594
585
  * ```
595
586
  */
596
587
  function useForwardedRef(ref) {
597
- let innerRef = (0, react.useRef)(null);
598
- return (0, react.useImperativeHandle)(ref, () => innerRef.current), innerRef;
588
+ let $ = c(1), innerRef = useRef(null), t0;
589
+ return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => innerRef.current, $[0] = t0) : t0 = $[0], useImperativeHandle(ref, t0), innerRef;
599
590
  }
600
591
  function checkboxBaseStyles() {
601
- return styled_components.css`position:relative;display:inline-block;`;
592
+ return css`position:relative;display:inline-block;`;
602
593
  }
603
594
  function inputElementStyles(props) {
604
- let { color, input, radius } = require_theme.X(props.theme), { focusRing } = input.checkbox;
605
- return styled_components.css`position:absolute;top:0;left:0;width:100%;height:100%;outline:none;opacity:0;z-index:1;padding:0;margin:0;& + span{position:relative;display:block;height:${require_tabList.ht(input.checkbox.size)};width:${require_tabList.ht(input.checkbox.size)};box-sizing:border-box;box-shadow:${require_tabList.et({
595
+ let { color, input, radius } = getTheme_v2(props.theme), { focusRing } = input.checkbox;
596
+ return css`position:absolute;top:0;left:0;width:100%;height:100%;outline:none;opacity:0;z-index:1;padding:0;margin:0;& + span{position:relative;display:block;height:${rem(input.checkbox.size)};width:${rem(input.checkbox.size)};box-sizing:border-box;box-shadow:${focusRingBorderStyle({
606
597
  color: color.input.default.enabled.border,
607
598
  width: input.border.width
608
- })};border-radius:${require_tabList.ht(radius[2])};line-height:1;background-color:${color.input.default.enabled.bg};& > svg{display:block;position:absolute;opacity:0;height:100%;width:100%;& > path{vector-effect:non-scaling-stroke;stroke-width:1.5px !important;}}}&:checked + span{background:${color.input.default.enabled.fg};box-shadow:${require_tabList.et({
599
+ })};border-radius:${rem(radius[2])};line-height:1;background-color:${color.input.default.enabled.bg};& > svg{display:block;position:absolute;opacity:0;height:100%;width:100%;& > path{vector-effect:non-scaling-stroke;stroke-width:1.5px !important;}}}&:checked + span{background:${color.input.default.enabled.fg};box-shadow:${focusRingBorderStyle({
609
600
  color: color.input.default.enabled.fg,
610
601
  width: input.border.width
611
- })};color:${color.input.default.enabled.bg};}&:not(:disabled):focus:focus-visible + span{box-shadow:${require_tabList.tt({ focusRing })};}&:not(:disabled):focus:focus-visible&:checked + span{box-shadow:${require_tabList.tt({ focusRing: {
602
+ })};color:${color.input.default.enabled.bg};}&:not(:disabled):focus:focus-visible + span{box-shadow:${focusRingStyle({ focusRing })};}&:not(:disabled):focus:focus-visible&:checked + span{box-shadow:${focusRingStyle({ focusRing: {
612
603
  width: 1,
613
604
  offset: 1
614
- } })};}&[data-error] + span{background-color:${color.input.invalid.enabled.border};box-shadow:${require_tabList.et({
605
+ } })};}&[data-error] + span{background-color:${color.input.invalid.enabled.border};box-shadow:${focusRingBorderStyle({
615
606
  width: input.border.width,
616
607
  color: color.input.invalid.enabled.muted.bg
617
- })};color:${color.input.default.disabled.fg};}&[data-error]&:checked + span{background-color:${color.input.invalid.enabled.muted.bg};color:${color.input.default.enabled.bg};}&[data-error]&:checked&:not(:disabled):focus:focus-visible + span{box-shadow:${require_tabList.tt({
608
+ })};color:${color.input.default.disabled.fg};}&[data-error]&:checked + span{background-color:${color.input.invalid.enabled.muted.bg};color:${color.input.default.enabled.bg};}&[data-error]&:checked&:not(:disabled):focus:focus-visible + span{box-shadow:${focusRingStyle({
618
609
  border: {
619
610
  width: input.border.width,
620
611
  color: color.input.invalid.readOnly.muted.bg
@@ -623,31 +614,31 @@ function inputElementStyles(props) {
623
614
  width: 1,
624
615
  offset: 1
625
616
  }
626
- })};}&:disabled + span{background-color:${color.input.default.disabled.bg};box-shadow:${require_tabList.et({
617
+ })};}&:disabled + span{background-color:${color.input.default.disabled.bg};box-shadow:${focusRingBorderStyle({
627
618
  width: input.border.width,
628
619
  color: color.input.default.disabled.border
629
- })};color:${color.input.default.disabled.fg};}&:disabled&:checked + span{background-color:${color.input.default.disabled.muted.bg};}&[data-read-only] + span{background-color:${color.input.default.readOnly.bg};box-shadow:${require_tabList.et({
620
+ })};color:${color.input.default.disabled.fg};}&:disabled&:checked + span{background-color:${color.input.default.disabled.muted.bg};}&[data-read-only] + span{background-color:${color.input.default.readOnly.bg};box-shadow:${focusRingBorderStyle({
630
621
  width: input.border.width,
631
622
  color: color.input.default.readOnly.border
632
623
  })};color:${color.input.default.readOnly.fg};}&[data-read-only]&:checked + span{background-color:${color.input.default.readOnly.muted.bg};}&:checked + span > svg:first-child{opacity:1;}&:indeterminate + span > svg:last-child{opacity:1;}`;
633
624
  }
634
- const StyledCheckbox = /* @__PURE__ */ styled_components.styled.div.withConfig({
625
+ const StyledCheckbox = /* @__PURE__ */ styled.div.withConfig({
635
626
  displayName: "StyledCheckbox",
636
- componentId: "sc-eqpl40-0"
637
- })(checkboxBaseStyles), Input$4 = /* @__PURE__ */ styled_components.styled.input.withConfig({
627
+ componentId: "sc-964wbx-0"
628
+ })(checkboxBaseStyles), Input$4 = /* @__PURE__ */ styled.input.withConfig({
638
629
  displayName: "Input",
639
- componentId: "sc-eqpl40-1"
640
- })(inputElementStyles), Checkbox = (0, react.forwardRef)(function(props, forwardedRef) {
641
- let $ = (0, react_compiler_runtime.c)(25), checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
630
+ componentId: "sc-964wbx-1"
631
+ })(inputElementStyles), Checkbox = forwardRef(function Checkbox(props, forwardedRef) {
632
+ let $ = c(25), checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
642
633
  $[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);
643
- let ref = (0, react.useRef)(null), t0;
644
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[9] = t0) : t0 = $[9], (0, react.useImperativeHandle)(forwardedRef, t0);
634
+ let ref = useRef(null), t0;
635
+ $[9] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[9] = t0) : t0 = $[9], useImperativeHandle(forwardedRef, t0);
645
636
  let t1, t2;
646
637
  $[10] === indeterminate ? (t1 = $[11], t2 = $[12]) : (t1 = () => {
647
638
  ref.current && (ref.current.indeterminate = indeterminate || !1);
648
- }, t2 = [indeterminate], $[10] = indeterminate, $[11] = t1, $[12] = t2), (0, react.useEffect)(t1, t2), require_tabList.I(ref, customValidity);
639
+ }, t2 = [indeterminate], $[10] = indeterminate, $[11] = t1, $[12] = t2), useEffect(t1, t2), useCustomValidity(ref, customValidity);
649
640
  let t3 = !disabled && readOnly ? "" : void 0, t4 = customValidity ? "" : void 0, t5 = disabled || readOnly, t6;
650
- $[13] !== checked || $[14] !== readOnly || $[15] !== restProps || $[16] !== t3 || $[17] !== t4 || $[18] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input$4, {
641
+ $[13] !== checked || $[14] !== readOnly || $[15] !== restProps || $[16] !== t3 || $[17] !== t4 || $[18] !== t5 ? (t6 = /* @__PURE__ */ jsx(Input$4, {
651
642
  "data-read-only": t3,
652
643
  "data-error": t4,
653
644
  ...restProps,
@@ -658,18 +649,17 @@ const StyledCheckbox = /* @__PURE__ */ styled_components.styled.div.withConfig({
658
649
  ref
659
650
  }), $[13] = checked, $[14] = readOnly, $[15] = restProps, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6) : t6 = $[19];
660
651
  let t7;
661
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_Checkmark.CheckmarkIcon, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_Remove.RemoveIcon, {})] }), $[20] = t7) : t7 = $[20];
652
+ $[20] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx(CheckmarkIcon, {}), /* @__PURE__ */ jsx(RemoveIcon, {})] }), $[20] = t7) : t7 = $[20];
662
653
  let t8;
663
- return $[21] !== className || $[22] !== style || $[23] !== t6 ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledCheckbox, {
654
+ return $[21] !== className || $[22] !== style || $[23] !== t6 ? (t8 = /* @__PURE__ */ jsxs(StyledCheckbox, {
664
655
  className,
665
656
  "data-ui": "Checkbox",
666
657
  style,
667
658
  children: [t6, t7]
668
659
  }), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8) : t8 = $[24], t8;
669
660
  });
670
- Checkbox.displayName = "ForwardRef(Checkbox)";
671
661
  function codeSyntaxHighlightingStyle({ theme }) {
672
- let { color: { syntax: color } } = require_theme.X(theme);
662
+ let { color: { syntax: color } } = getTheme_v2(theme);
673
663
  return {
674
664
  "&.atrule": { color: color.atrule },
675
665
  "&.attr-name": { color: color.attrName },
@@ -710,30 +700,30 @@ function codeSyntaxHighlightingStyle({ theme }) {
710
700
  };
711
701
  }
712
702
  function codeBaseStyle() {
713
- return styled_components.css`color:var(--card-code-fg-color);& code{font-family:inherit;&.refractor .token{${codeSyntaxHighlightingStyle}}}& a{color:inherit;text-decoration:underline;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
703
+ return css`color:var(--card-code-fg-color);& code{font-family:inherit;&.refractor .token{${codeSyntaxHighlightingStyle}}}& a{color:inherit;text-decoration:underline;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
714
704
  }
715
- const LazyRefractor = (0, react.lazy)(() => Promise.resolve().then(() => require("./_chunks/refractor.js"))), StyledCode = /* @__PURE__ */ styled_components.styled.pre.withConfig({
705
+ const LazyRefractor = lazy(() => import("./_chunks/refractor.js")), StyledCode = /* @__PURE__ */ styled.pre.withConfig({
716
706
  displayName: "StyledCode",
717
- componentId: "sc-botxhl-0"
718
- })(codeBaseStyle, responsiveCodeFontStyle), CodeComponent = (0, react.forwardRef)(function(props, ref) {
719
- let $ = (0, react_compiler_runtime.c)(22), children, language, restProps, t0, weight;
707
+ componentId: "sc-yq3svj-0"
708
+ })(codeBaseStyle, responsiveCodeFontStyle), Code = forwardRef(function Code(props, ref) {
709
+ let $ = c(22), children, language, restProps, t0, weight;
720
710
  $[0] === props ? (children = $[1], language = $[2], restProps = $[3], t0 = $[4], weight = $[5]) : ({children, language, size: t0, weight, ...restProps} = props, $[0] = props, $[1] = children, $[2] = language, $[3] = restProps, $[4] = t0, $[5] = weight);
721
711
  let size = t0 === void 0 ? 2 : t0, t1;
722
- $[6] === size ? t1 = $[7] : (t1 = require_tabList.ft(size), $[6] = size, $[7] = t1);
712
+ $[6] === size ? t1 = $[7] : (t1 = _getArrayProp(size), $[6] = size, $[7] = t1);
723
713
  let t2 = weight, t3;
724
- $[8] === children ? t3 = $[9] : (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", { children }), $[8] = children, $[9] = t3);
714
+ $[8] === children ? t3 = $[9] : (t3 = /* @__PURE__ */ jsx("code", { children }), $[8] = children, $[9] = t3);
725
715
  let t4;
726
- $[10] !== children || $[11] !== language ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LazyRefractor, {
716
+ $[10] !== children || $[11] !== language ? (t4 = /* @__PURE__ */ jsx(LazyRefractor, {
727
717
  language,
728
718
  value: children
729
719
  }), $[10] = children, $[11] = language, $[12] = t4) : t4 = $[12];
730
720
  let t5;
731
- $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
721
+ $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(Suspense, {
732
722
  fallback: t3,
733
723
  children: t4
734
724
  }), $[13] = t3, $[14] = t4, $[15] = t5) : t5 = $[15];
735
725
  let t6;
736
- return $[16] !== ref || $[17] !== restProps || $[18] !== t1 || $[19] !== t2 || $[20] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledCode, {
726
+ return $[16] !== ref || $[17] !== restProps || $[18] !== t1 || $[19] !== t2 || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(StyledCode, {
737
727
  "data-ui": "Code",
738
728
  ...restProps,
739
729
  $size: t1,
@@ -741,12 +731,7 @@ const LazyRefractor = (0, react.lazy)(() => Promise.resolve().then(() => require
741
731
  ref,
742
732
  children: t5
743
733
  }), $[16] = ref, $[17] = restProps, $[18] = t1, $[19] = t2, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
744
- });
745
- CodeComponent.displayName = "ForwardRef(Code)";
746
- /**
747
- * @public
748
- */
749
- const Code = CodeComponent, BASE_STYLE = {
734
+ }), BASE_STYLE = {
750
735
  width: "100%",
751
736
  margin: "0 auto"
752
737
  };
@@ -754,19 +739,19 @@ function containerBaseStyle() {
754
739
  return BASE_STYLE;
755
740
  }
756
741
  function responsiveContainerWidthStyle(props) {
757
- let { container, media } = require_theme.X(props.theme);
758
- return require_tabList.mt(media, props.$width, (val) => ({ maxWidth: val === "auto" ? "none" : require_tabList.ht(container[val]) }));
742
+ let { container, media } = getTheme_v2(props.theme);
743
+ return _responsive(media, props.$width, (val) => ({ maxWidth: val === "auto" ? "none" : rem(container[val]) }));
759
744
  }
760
- const StyledContainer = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
745
+ const StyledContainer = /* @__PURE__ */ styled(Box).withConfig({
761
746
  displayName: "StyledContainer",
762
- componentId: "sc-un6r8j-0"
763
- })(containerBaseStyle, responsiveContainerWidthStyle), ContainerComponent = (0, react.forwardRef)(function(props, ref) {
764
- let $ = (0, react_compiler_runtime.c)(11), as, restProps, t0;
747
+ componentId: "sc-kuh7wj-0"
748
+ })(containerBaseStyle, responsiveContainerWidthStyle), Container = forwardRef(function Container(props, ref) {
749
+ let $ = c(11), as, restProps, t0;
765
750
  $[0] === props ? (as = $[1], restProps = $[2], t0 = $[3]) : ({as, width: t0, ...restProps} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0);
766
751
  let width = t0 === void 0 ? 2 : t0, t1;
767
- $[4] === width ? t1 = $[5] : (t1 = require_tabList.ft(width), $[4] = width, $[5] = t1);
752
+ $[4] === width ? t1 = $[5] : (t1 = _getArrayProp(width), $[4] = width, $[5] = t1);
768
753
  let t2;
769
- return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t1 ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledContainer, {
754
+ return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t1 ? (t2 = /* @__PURE__ */ jsx(StyledContainer, {
770
755
  "data-ui": "Container",
771
756
  ...restProps,
772
757
  $width: t1,
@@ -774,36 +759,29 @@ const StyledContainer = /* @__PURE__ */ (0, styled_components.styled)(require_ta
774
759
  ref
775
760
  }), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
776
761
  });
777
- ContainerComponent.displayName = "ForwardRef(Container)";
778
- /**
779
- * The `Container` component wraps content layout in a defined set of widths.
780
- *
781
- * @public
782
- */
783
- const Container = ContainerComponent;
784
762
  function headingBaseStyle(props) {
785
- let { $accent, $muted } = props, { font } = require_theme.X(props.theme);
786
- return styled_components.css`${$accent && styled_components.css`color:var(--card-accent-fg-color);`} ${$muted && styled_components.css`color:var(--card-muted-fg-color);`} & code{font-family:${font.code.family};border-radius:1px;}& a{text-decoration:none;border-radius:1px;color:var(--card-link-color);outline:none;@media (hover:hover){&:hover{text-decoration:underline;}}&:focus{box-shadow:0 0 0 1px var(--card-bg-color),0 0 0 3px var(--card-focus-ring-color);}&:focus:not(:focus-visible){box-shadow:none;}}& strong{font-weight:${font.heading.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
763
+ let { $accent, $muted } = props, { font } = getTheme_v2(props.theme);
764
+ return css`${$accent && css`color:var(--card-accent-fg-color);`} ${$muted && css`color:var(--card-muted-fg-color);`} & code{font-family:${font.code.family};border-radius:1px;}& a{text-decoration:none;border-radius:1px;color:var(--card-link-color);outline:none;@media (hover:hover){&:hover{text-decoration:underline;}}&:focus{box-shadow:0 0 0 1px var(--card-bg-color),0 0 0 3px var(--card-focus-ring-color);}&:focus:not(:focus-visible){box-shadow:none;}}& strong{font-weight:${font.heading.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
787
765
  }
788
- const StyledHeading = /* @__PURE__ */ styled_components.styled.div.withConfig({
766
+ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
789
767
  displayName: "StyledHeading",
790
- componentId: "sc-7dzjaf-0"
791
- })(headingBaseStyle, require_tabList.lt, responsiveHeadingFont), HeadingComponent = (0, react.forwardRef)(function(props, ref) {
792
- let $ = (0, react_compiler_runtime.c)(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
768
+ componentId: "sc-48fn8j-0"
769
+ })(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), Heading = forwardRef(function Heading(props, ref) {
770
+ let $ = c(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
793
771
  $[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);
794
772
  let accent = t0 !== void 0 && t0, muted = t1 !== void 0 && t1, size = t2 === void 0 ? 2 : t2, children = childrenProp;
795
773
  if (textOverflow === "ellipsis") {
796
774
  let t3;
797
- $[9] === children ? t3 = $[10] : (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.G, { children }), $[9] = children, $[10] = t3), children = t3;
775
+ $[9] === children ? t3 = $[10] : (t3 = /* @__PURE__ */ jsx(SpanWithTextOverflow, { children }), $[9] = children, $[10] = t3), children = t3;
798
776
  }
799
777
  let t3;
800
- $[11] === align ? t3 = $[12] : (t3 = require_tabList.ft(align), $[11] = align, $[12] = t3);
778
+ $[11] === align ? t3 = $[12] : (t3 = _getArrayProp(align), $[11] = align, $[12] = t3);
801
779
  let t4;
802
- $[13] === size ? t4 = $[14] : (t4 = require_tabList.ft(size), $[13] = size, $[14] = t4);
780
+ $[13] === size ? t4 = $[14] : (t4 = _getArrayProp(size), $[13] = size, $[14] = t4);
803
781
  let t5;
804
- $[15] === children ? t5 = $[16] : (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children }), $[15] = children, $[16] = t5);
782
+ $[15] === children ? t5 = $[16] : (t5 = /* @__PURE__ */ jsx("span", { children }), $[15] = children, $[16] = t5);
805
783
  let t6;
806
- return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledHeading, {
784
+ return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsx(StyledHeading, {
807
785
  "data-ui": "Heading",
808
786
  ...restProps,
809
787
  $accent: accent,
@@ -815,29 +793,21 @@ const StyledHeading = /* @__PURE__ */ styled_components.styled.div.withConfig({
815
793
  children: t5
816
794
  }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
817
795
  });
818
- HeadingComponent.displayName = "ForwardRef(Heading)";
819
- /**
820
- * Typographic headings.
821
- *
822
- * @public
823
- */
824
- const Heading = HeadingComponent;
825
796
  /**
826
797
  * @public
827
798
  */
828
799
  function BoundaryElementProvider(props) {
829
- let $ = (0, react_compiler_runtime.c)(5), { children, element } = props, t0;
800
+ let $ = c(5), { children, element } = props, t0;
830
801
  $[0] === element ? t0 = $[1] : (t0 = {
831
802
  version: 0,
832
803
  element
833
804
  }, $[0] = element, $[1] = t0);
834
805
  let value = t0, t1;
835
- return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.C.Provider, {
806
+ return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, {
836
807
  value,
837
808
  children
838
809
  }), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
839
810
  }
840
- BoundaryElementProvider.displayName = "BoundaryElementProvider";
841
811
  /**
842
812
  * @internal
843
813
  * @deprecated this component will be removed in the next major release
@@ -845,7 +815,6 @@ BoundaryElementProvider.displayName = "BoundaryElementProvider";
845
815
  function ConditionalWrapper({ children, condition, wrapper }) {
846
816
  return condition ? wrapper(children) : children;
847
817
  }
848
- ConditionalWrapper.displayName = "ConditionalWrapper";
849
818
  function findMaxBreakpoints(media, width) {
850
819
  let ret = [];
851
820
  for (let i = 0; i < media.length; i += 1) media[i] > width && ret.push(i);
@@ -860,10 +829,10 @@ function findMinBreakpoints(media, width) {
860
829
  * DO NOT USE IN PRODUCTION.
861
830
  * @beta
862
831
  */
863
- const ElementQuery = (0, react.forwardRef)(function(props, forwardedRef) {
864
- let $ = (0, react_compiler_runtime.c)(18), theme = require_tabList.rt(), _media, children, restProps;
832
+ const ElementQuery = forwardRef(function ElementQuery(props, forwardedRef) {
833
+ let $ = c(18), theme = useTheme_v2(), _media, children, restProps;
865
834
  $[0] === props ? (_media = $[1], children = $[2], restProps = $[3]) : ({children, media: _media, ...restProps} = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps);
866
- let media = _media ?? theme.media, [element, setElement] = (0, react.useState)(null), width = require_tabList.N(element)?.border.width ?? window.innerWidth, t0;
835
+ let media = _media ?? theme.media, [element, setElement] = useState(null), width = useElementSize(element)?.border.width ?? window.innerWidth, t0;
867
836
  if ($[4] !== media || $[5] !== width) {
868
837
  let eq = findMaxBreakpoints(media, width);
869
838
  t0 = eq.length ? eq.join(" ") : void 0, $[4] = media, $[5] = width, $[6] = t0;
@@ -874,9 +843,9 @@ const ElementQuery = (0, react.forwardRef)(function(props, forwardedRef) {
874
843
  t1 = eq_0.length ? eq_0.join(" ") : void 0, $[7] = media, $[8] = width, $[9] = t1;
875
844
  } else t1 = $[9];
876
845
  let min = t1, t2, t3;
877
- $[10] === element ? (t2 = $[11], t3 = $[12]) : (t2 = () => element, t3 = [element], $[10] = element, $[11] = t2, $[12] = t3), (0, react.useImperativeHandle)(forwardedRef, t2, t3);
846
+ $[10] === element ? (t2 = $[11], t3 = $[12]) : (t2 = () => element, t3 = [element], $[10] = element, $[11] = t2, $[12] = t3), useImperativeHandle(forwardedRef, t2, t3);
878
847
  let t4;
879
- return $[13] !== children || $[14] !== max || $[15] !== min || $[16] !== restProps ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
848
+ return $[13] !== children || $[14] !== max || $[15] !== min || $[16] !== restProps ? (t4 = /* @__PURE__ */ jsx("div", {
880
849
  "data-ui": "ElementQuery",
881
850
  ...restProps,
882
851
  "data-eq-max": max,
@@ -885,12 +854,11 @@ const ElementQuery = (0, react.forwardRef)(function(props, forwardedRef) {
885
854
  children
886
855
  }), $[13] = children, $[14] = max, $[15] = min, $[16] = restProps, $[17] = t4) : t4 = $[17], t4;
887
856
  });
888
- ElementQuery.displayName = "ForwardRef(ElementQuery)";
889
857
  /**
890
858
  * DO NOT USE IN PRODUCTION
891
859
  * @beta
892
860
  */
893
- var ErrorBoundary = class extends react.Component {
861
+ var ErrorBoundary = class extends Component {
894
862
  state = { error: null };
895
863
  static getDerivedStateFromError(error) {
896
864
  return { error };
@@ -903,36 +871,34 @@ var ErrorBoundary = class extends react.Component {
903
871
  }
904
872
  render() {
905
873
  let { error } = this.state;
906
- return error ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Code, { children: typeof error?.message == "string" ? error.message : "Error" }) : this.props.children;
874
+ return error ? /* @__PURE__ */ jsx(Code, { children: typeof error?.message == "string" ? error.message : "Error" }) : this.props.children;
907
875
  }
908
876
  };
909
- const StyledSrOnly = styled_components.styled.div.withConfig({
877
+ const StyledSrOnly = styled.div.withConfig({
910
878
  displayName: "StyledSrOnly",
911
- componentId: "sc-wsuz6k-0"
912
- })`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`, SrOnly = (0, react.forwardRef)(function(props, ref) {
913
- let $ = (0, react_compiler_runtime.c)(4), { as, children } = props, t0;
914
- return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSrOnly, {
879
+ componentId: "sc-ow9exq-0"
880
+ })`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`, SrOnly = forwardRef(function SrOnly(props, ref) {
881
+ let $ = c(4), { as, children } = props, t0;
882
+ return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ jsx(StyledSrOnly, {
915
883
  "aria-hidden": !0,
916
884
  as,
917
885
  "data-ui": "SrOnly",
918
886
  ref,
919
887
  children
920
888
  }), $[0] = as, $[1] = children, $[2] = ref, $[3] = t0) : t0 = $[3], t0;
921
- });
922
- SrOnly.displayName = "ForwardRef(SrOnly)";
923
- const StyledVirtualList = styled_components.styled.div.withConfig({
889
+ }), StyledVirtualList = styled.div.withConfig({
924
890
  displayName: "StyledVirtualList",
925
- componentId: "sc-2o92jb-0"
926
- })`position:relative;`, ItemWrapper = styled_components.styled.div.withConfig({
891
+ componentId: "sc-ok1q5x-0"
892
+ })`position:relative;`, ItemWrapper = styled.div.withConfig({
927
893
  displayName: "ItemWrapper",
928
- componentId: "sc-2o92jb-1"
929
- })`position:absolute;left:0;right:0;`, VirtualList = (0, react.forwardRef)(function(props, forwardedRef) {
930
- let $ = (0, react_compiler_runtime.c)(44), getItemKey, onChange, renderItem, restProps, t0, t1, t2;
894
+ componentId: "sc-ok1q5x-1"
895
+ })`position:absolute;left:0;right:0;`, VirtualList = forwardRef(function VirtualList(props, forwardedRef) {
896
+ let $ = c(44), getItemKey, onChange, renderItem, restProps, t0, t1, t2;
931
897
  $[0] === props ? (getItemKey = $[1], onChange = $[2], renderItem = $[3], restProps = $[4], t0 = $[5], t1 = $[6], t2 = $[7]) : ({as: t0, gap: t1, getItemKey, items: t2, onChange, renderItem, ...restProps} = props, $[0] = props, $[1] = getItemKey, $[2] = onChange, $[3] = renderItem, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = t2);
932
898
  let as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1, t3;
933
899
  $[8] === t2 ? t3 = $[9] : (t3 = t2 === void 0 ? [] : t2, $[8] = t2, $[9] = t3);
934
- let items = t3, { space } = require_tabList.rt(), ref = (0, react.useRef)(null), wrapperRef = (0, react.useRef)(null), [scrollTop, setScrollTop] = (0, react.useState)(0), [scrollHeight, setScrollHeight] = (0, react.useState)(0), [itemHeight, setItemHeight] = (0, react.useState)(-1), t4;
935
- $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], (0, react.useImperativeHandle)(forwardedRef, t4);
900
+ let items = t3, { space } = useTheme_v2(), ref = useRef(null), wrapperRef = useRef(null), [scrollTop, setScrollTop] = useState(0), [scrollHeight, setScrollHeight] = useState(0), [itemHeight, setItemHeight] = useState(-1), t4;
901
+ $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], useImperativeHandle(forwardedRef, t4);
936
902
  let t5;
937
903
  $[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
938
904
  if (!wrapperRef.current) return;
@@ -940,7 +906,7 @@ const StyledVirtualList = styled_components.styled.div.withConfig({
940
906
  firstElement instanceof HTMLElement && setItemHeight(firstElement.offsetHeight);
941
907
  }, $[11] = t5) : t5 = $[11];
942
908
  let t6;
943
- $[12] === renderItem ? t6 = $[13] : (t6 = [renderItem], $[12] = renderItem, $[13] = t6), (0, react.useEffect)(t5, t6);
909
+ $[12] === renderItem ? t6 = $[13] : (t6 = [renderItem], $[12] = renderItem, $[13] = t6), useEffect(t5, t6);
944
910
  let t7, t8;
945
911
  $[14] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
946
912
  if (!ref.current) return;
@@ -951,7 +917,7 @@ const StyledVirtualList = styled_components.styled.div.withConfig({
951
917
  setScrollTop(scrollEl.scrollTop);
952
918
  };
953
919
  scrollEl.addEventListener("scroll", handleScroll, { passive: !0 });
954
- let ro = new require_tabList.F((entries) => {
920
+ let ro = new _ResizeObserver((entries) => {
955
921
  setScrollHeight(entries[0].contentRect.height);
956
922
  });
957
923
  return ro.observe(scrollEl), handleScroll(), () => {
@@ -966,7 +932,7 @@ const StyledVirtualList = styled_components.styled.div.withConfig({
966
932
  return window.addEventListener("scroll", handleScroll_0, { passive: !0 }), window.addEventListener("resize", handleResize), setScrollHeight(window.innerHeight), handleScroll_0(), () => {
967
933
  window.removeEventListener("scroll", handleScroll_0), window.removeEventListener("resize", handleResize);
968
934
  };
969
- }, t8 = [], $[14] = t7, $[15] = t8) : (t7 = $[14], t8 = $[15]), (0, react.useEffect)(t7, t8);
935
+ }, t8 = [], $[14] = t7, $[15] = t8) : (t7 = $[14], t8 = $[15]), useEffect(t7, t8);
970
936
  let 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, t10, t9;
971
937
  $[16] !== fromIndex || $[17] !== gap || $[18] !== itemHeight || $[19] !== onChange || $[20] !== scrollHeight || $[21] !== scrollTop || $[22] !== space || $[23] !== toIndex ? (t9 = () => {
972
938
  onChange && onChange({
@@ -986,7 +952,7 @@ const StyledVirtualList = styled_components.styled.div.withConfig({
986
952
  scrollTop,
987
953
  space,
988
954
  toIndex
989
- ], $[16] = fromIndex, $[17] = gap, $[18] = itemHeight, $[19] = onChange, $[20] = scrollHeight, $[21] = scrollTop, $[22] = space, $[23] = toIndex, $[24] = t10, $[25] = t9) : (t10 = $[24], t9 = $[25]), (0, react.useEffect)(t9, t10);
955
+ ], $[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);
990
956
  let t11;
991
957
  $[26] !== fromIndex || $[27] !== gap || $[28] !== getItemKey || $[29] !== itemHeight || $[30] !== items || $[31] !== renderItem || $[32] !== space || $[33] !== toIndex ? (t11 = {
992
958
  fromIndex,
@@ -1001,13 +967,13 @@ const StyledVirtualList = styled_components.styled.div.withConfig({
1001
967
  let children = useChildren(t11), t12;
1002
968
  $[35] === height ? t12 = $[36] : (t12 = { height }, $[35] = height, $[36] = t12);
1003
969
  let t13;
1004
- $[37] !== children || $[38] !== t12 ? (t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
970
+ $[37] !== children || $[38] !== t12 ? (t13 = /* @__PURE__ */ jsx("div", {
1005
971
  ref: wrapperRef,
1006
972
  style: t12,
1007
973
  children
1008
974
  }), $[37] = children, $[38] = t12, $[39] = t13) : t13 = $[39];
1009
975
  let t14;
1010
- return $[40] !== as || $[41] !== restProps || $[42] !== t13 ? (t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledVirtualList, {
976
+ return $[40] !== as || $[41] !== restProps || $[42] !== t13 ? (t14 = /* @__PURE__ */ jsx(StyledVirtualList, {
1011
977
  as,
1012
978
  "data-ui": "VirtualList",
1013
979
  ...restProps,
@@ -1015,22 +981,21 @@ const StyledVirtualList = styled_components.styled.div.withConfig({
1015
981
  children: t13
1016
982
  }), $[40] = as, $[41] = restProps, $[42] = t13, $[43] = t14) : t14 = $[43], t14;
1017
983
  });
1018
- VirtualList.displayName = "ForwardRef(VirtualList)";
1019
984
  function useChildren(t0) {
1020
- let $ = (0, react_compiler_runtime.c)(21), { fromIndex, gap, getItemKey, itemHeight, items, renderItem, space, toIndex } = t0;
985
+ let $ = c(21), { fromIndex, gap, getItemKey, itemHeight, items, renderItem, space, toIndex } = t0;
1021
986
  if (!renderItem || items.length === 0) return null;
1022
987
  if (itemHeight === -1) {
1023
988
  let t1;
1024
989
  $[0] !== items[0] || $[1] !== renderItem ? (t1 = renderItem(items[0]), $[0] = items[0], $[1] = renderItem, $[2] = t1) : t1 = $[2];
1025
990
  let t2;
1026
- return $[3] === t1 ? t2 = $[4] : (t2 = [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItemWrapper, { children: t1 }, 0)], $[3] = t1, $[4] = t2), t2;
991
+ return $[3] === t1 ? t2 = $[4] : (t2 = [/* @__PURE__ */ jsx(ItemWrapper, { children: t1 }, 0)], $[3] = t1, $[4] = t2), t2;
1027
992
  }
1028
993
  let t1;
1029
994
  if ($[5] !== fromIndex || $[6] !== gap || $[7] !== getItemKey || $[8] !== itemHeight || $[9] !== items || $[10] !== renderItem || $[11] !== space || $[12] !== toIndex) {
1030
995
  let t2;
1031
996
  $[14] !== fromIndex || $[15] !== gap || $[16] !== getItemKey || $[17] !== itemHeight || $[18] !== renderItem || $[19] !== space ? (t2 = (item, _itemIndex) => {
1032
997
  let itemIndex = fromIndex + _itemIndex, node = renderItem(item), key = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
1033
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItemWrapper, {
998
+ return /* @__PURE__ */ jsx(ItemWrapper, {
1034
999
  style: { top: itemIndex * (itemHeight + space[gap]) },
1035
1000
  children: node
1036
1001
  }, key);
@@ -1044,40 +1009,40 @@ function findScrollable(parentNode) {
1044
1009
  return _scrollEl;
1045
1010
  }
1046
1011
  function radioBaseStyle() {
1047
- return styled_components.css`position:relative;&:not([hidden]){display:inline-block;}&[data-read-only]{outline:1px solid red;}`;
1012
+ return css`position:relative;&:not([hidden]){display:inline-block;}&[data-read-only]{outline:1px solid red;}`;
1048
1013
  }
1049
1014
  function inputElementStyle(props) {
1050
- let { color, input } = require_theme.X(props.theme), dist = (input.radio.size - input.radio.markSize) / 2;
1051
- return styled_components.css`appearance:none;position:absolute;top:0;left:0;opacity:0;height:100%;width:100%;outline:none;z-index:1;padding:0;margin:0;border-radius:${require_tabList.ht(input.radio.size / 2)};border:none;& + span{display:block;position:relative;height:${require_tabList.ht(input.radio.size)};width:${require_tabList.ht(input.radio.size)};border-radius:${require_tabList.ht(input.radio.size / 2)};background:${color.input.default.enabled.bg};box-shadow:${require_tabList.et({
1015
+ let { color, input } = getTheme_v2(props.theme), dist = (input.radio.size - input.radio.markSize) / 2;
1016
+ return css`appearance:none;position:absolute;top:0;left:0;opacity:0;height:100%;width:100%;outline:none;z-index:1;padding:0;margin:0;border-radius:${rem(input.radio.size / 2)};border:none;& + span{display:block;position:relative;height:${rem(input.radio.size)};width:${rem(input.radio.size)};border-radius:${rem(input.radio.size / 2)};background:${color.input.default.enabled.bg};box-shadow:${focusRingBorderStyle({
1052
1017
  color: color.input.default.enabled.border,
1053
1018
  width: input.border.width
1054
- })};&::after{content:'';position:absolute;top:${require_tabList.ht(dist)};left:${require_tabList.ht(dist)};height:${require_tabList.ht(input.radio.markSize)};width:${require_tabList.ht(input.radio.markSize)};border-radius:${require_tabList.ht(input.radio.markSize / 2)};background:${color.input.default.enabled.fg};opacity:0;}}&:not(:disabled):focus + span{box-shadow:${require_tabList.tt({
1019
+ })};&::after{content:'';position:absolute;top:${rem(dist)};left:${rem(dist)};height:${rem(input.radio.markSize)};width:${rem(input.radio.markSize)};border-radius:${rem(input.radio.markSize / 2)};background:${color.input.default.enabled.fg};opacity:0;}}&:not(:disabled):focus + span{box-shadow:${focusRingStyle({
1055
1020
  border: {
1056
1021
  width: input.border.width,
1057
1022
  color: color.input.default.enabled.border
1058
1023
  },
1059
1024
  focusRing: input.radio.focusRing
1060
- })};}&:not(:disabled):focus:not(:focus-visible) + span{box-shadow:${require_tabList.et({
1025
+ })};}&:not(:disabled):focus:not(:focus-visible) + span{box-shadow:${focusRingBorderStyle({
1061
1026
  color: color.input.default.enabled.border,
1062
1027
  width: input.border.width
1063
- })};}&:checked + span::after{opacity:1;}&[data-error] + span{background-color:${color.input.invalid.enabled.border};box-shadow:${require_tabList.et({
1028
+ })};}&:checked + span::after{opacity:1;}&[data-error] + span{background-color:${color.input.invalid.enabled.border};box-shadow:${focusRingBorderStyle({
1064
1029
  width: input.border.width,
1065
1030
  color: color.input.invalid.enabled.muted.bg
1066
1031
  })};&::after{background:${color.input.invalid.enabled.muted.bg};}}&[data-read-only] + span{box-shadow:0 0 0 1px ${color.input.default.readOnly.border};background:${color.input.default.readOnly.bg};&::after{background:${color.input.default.readOnly.border};}}&:not([data-read-only]):disabled + span{box-shadow:0 0 0 1px ${color.input.default.disabled.border};background:${color.input.default.disabled.bg};&::after{background:${color.input.default.disabled.border};}}`;
1067
1032
  }
1068
- const StyledRadio = /* @__PURE__ */ styled_components.styled.div.withConfig({
1033
+ const StyledRadio = /* @__PURE__ */ styled.div.withConfig({
1069
1034
  displayName: "StyledRadio",
1070
- componentId: "sc-6sng01-0"
1071
- })(radioBaseStyle), Input$3 = /* @__PURE__ */ styled_components.styled.input.withConfig({
1035
+ componentId: "sc-zbat2j-0"
1036
+ })(radioBaseStyle), Input$3 = /* @__PURE__ */ styled.input.withConfig({
1072
1037
  displayName: "Input",
1073
- componentId: "sc-6sng01-1"
1074
- })(inputElementStyle), Radio = (0, react.forwardRef)(function(props, forwardedRef) {
1075
- let $ = (0, react_compiler_runtime.c)(19), className, customValidity, disabled, readOnly, restProps, style;
1038
+ componentId: "sc-zbat2j-1"
1039
+ })(inputElementStyle), Radio = forwardRef(function Radio(props, forwardedRef) {
1040
+ let $ = c(19), className, customValidity, disabled, readOnly, restProps, style;
1076
1041
  $[0] === props ? (className = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], style = $[6]) : ({className, disabled, style, customValidity, readOnly, ...restProps} = props, $[0] = props, $[1] = className, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = style);
1077
- let ref = (0, react.useRef)(null), t0;
1078
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[7] = t0) : t0 = $[7], (0, react.useImperativeHandle)(forwardedRef, t0), require_tabList.I(ref, customValidity);
1042
+ let ref = useRef(null), t0;
1043
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[7] = t0) : t0 = $[7], useImperativeHandle(forwardedRef, t0), useCustomValidity(ref, customValidity);
1079
1044
  let t1 = !disabled && readOnly ? "" : void 0, t2 = customValidity ? "" : void 0, t3 = disabled || readOnly, t4;
1080
- $[8] !== readOnly || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input$3, {
1045
+ $[8] !== readOnly || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsx(Input$3, {
1081
1046
  "data-read-only": t1,
1082
1047
  "data-error": t2,
1083
1048
  ...restProps,
@@ -1087,96 +1052,95 @@ const StyledRadio = /* @__PURE__ */ styled_components.styled.div.withConfig({
1087
1052
  type: "radio"
1088
1053
  }), $[8] = readOnly, $[9] = restProps, $[10] = t1, $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13];
1089
1054
  let t5;
1090
- $[14] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {}), $[14] = t5) : t5 = $[14];
1055
+ $[14] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsx("span", {}), $[14] = t5) : t5 = $[14];
1091
1056
  let t6;
1092
- return $[15] !== className || $[16] !== style || $[17] !== t4 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledRadio, {
1057
+ return $[15] !== className || $[16] !== style || $[17] !== t4 ? (t6 = /* @__PURE__ */ jsxs(StyledRadio, {
1093
1058
  className,
1094
1059
  "data-ui": "Radio",
1095
1060
  style,
1096
1061
  children: [t4, t5]
1097
1062
  }), $[15] = className, $[16] = style, $[17] = t4, $[18] = t6) : t6 = $[18], t6;
1098
1063
  });
1099
- Radio.displayName = "ForwardRef(Radio)";
1100
1064
  function rootStyle() {
1101
- return styled_components.css`position:relative;width:-moz-available;width:-webkit-fill-available;width:stretch;&:not([hidden]){display:inline-block;}`;
1065
+ return css`position:relative;width:-moz-available;width:-webkit-fill-available;width:stretch;&:not([hidden]){display:inline-block;}`;
1102
1066
  }
1103
1067
  function inputBaseStyle(props) {
1104
- let { font } = require_theme.X(props.theme);
1105
- return styled_components.css`-webkit-font-smoothing:antialiased;appearance:none;border:0;font-family:${font.text.family};color:inherit;width:100%;outline:none;margin:0;&:disabled{opacity:1;}`;
1068
+ let { font } = getTheme_v2(props.theme);
1069
+ return css`-webkit-font-smoothing:antialiased;appearance:none;border:0;font-family:${font.text.family};color:inherit;width:100%;outline:none;margin:0;&:disabled{opacity:1;}`;
1106
1070
  }
1107
1071
  function inputColorStyle(props) {
1108
- let { color, input } = require_theme.X(props.theme);
1109
- return styled_components.css`background-color:${color.input.default.enabled.bg};color:${color.input.default.enabled.fg};box-shadow:${require_tabList.et({
1072
+ let { color, input } = getTheme_v2(props.theme);
1073
+ return css`background-color:${color.input.default.enabled.bg};color:${color.input.default.enabled.fg};box-shadow:${focusRingBorderStyle({
1110
1074
  color: color.input.default.enabled.border,
1111
1075
  width: input.border.width
1112
- })};@media (hover:hover){&:not(:disabled):hover{background-color:${color.input.default.hovered.bg};color:${color.input.default.hovered.fg};box-shadow:${require_tabList.et({
1076
+ })};@media (hover:hover){&:not(:disabled):hover{background-color:${color.input.default.hovered.bg};color:${color.input.default.hovered.fg};box-shadow:${focusRingBorderStyle({
1113
1077
  color: color.input.default.hovered.border,
1114
1078
  width: input.border.width
1115
- })};}}&:not(:disabled):focus{box-shadow:${require_tabList.tt({
1079
+ })};}}&:not(:disabled):focus{box-shadow:${focusRingStyle({
1116
1080
  border: {
1117
1081
  width: input.border.width,
1118
1082
  color: color.input.default.enabled.border
1119
1083
  },
1120
1084
  focusRing: input.select.focusRing
1121
- })};}&[data-read-only]{background-color:${color.input.default.readOnly.bg};color:${color.input.default.readOnly.fg};box-shadow:${require_tabList.et({
1085
+ })};}&[data-read-only]{background-color:${color.input.default.readOnly.bg};color:${color.input.default.readOnly.fg};box-shadow:${focusRingBorderStyle({
1122
1086
  color: color.input.default.readOnly.border,
1123
1087
  width: input.border.width
1124
- })};}&:not([data-read-only]):disabled{background-color:${color.input.default.disabled.bg};color:${color.input.default.disabled.fg};box-shadow:${require_tabList.et({
1088
+ })};}&:not([data-read-only]):disabled{background-color:${color.input.default.disabled.bg};color:${color.input.default.disabled.fg};box-shadow:${focusRingBorderStyle({
1125
1089
  color: color.input.default.disabled.border,
1126
1090
  width: input.border.width
1127
1091
  })};}`;
1128
1092
  }
1129
1093
  function textSize(size) {
1130
1094
  return {
1131
- fontSize: require_tabList.ht(size.fontSize),
1132
- lineHeight: `${require_tabList.ht(size.lineHeight)}`
1095
+ fontSize: rem(size.fontSize),
1096
+ lineHeight: `${rem(size.lineHeight)}`
1133
1097
  };
1134
1098
  }
1135
1099
  function inputTextSizeStyle(props) {
1136
- let { $fontSize } = props, { font, media } = require_theme.X(props.theme);
1137
- return require_tabList.mt(media, $fontSize, (sizeIndex) => textSize(font.text.sizes[sizeIndex] || font.text.sizes[2]));
1100
+ let { $fontSize } = props, { font, media } = getTheme_v2(props.theme);
1101
+ return _responsive(media, $fontSize, (sizeIndex) => textSize(font.text.sizes[sizeIndex] || font.text.sizes[2]));
1138
1102
  }
1139
1103
  function inputStyle() {
1140
1104
  return [
1141
- require_tabList.K,
1105
+ responsiveRadiusStyle,
1142
1106
  inputBaseStyle,
1143
1107
  inputColorStyle,
1144
1108
  inputTextSizeStyle,
1145
- require_tabList.Q
1109
+ responsiveInputPaddingIconRightStyle
1146
1110
  ];
1147
1111
  }
1148
1112
  function iconBoxStyle(props) {
1149
- let { color } = require_theme.X(props.theme);
1150
- return styled_components.css`pointer-events:none;position:absolute;top:0;right:0;--card-fg-color:${color.input.default.enabled.fg};@media (hover:hover){select:not(disabled):not(:read-only):hover + &&{--card-fg-color:${color.input.default.hovered.fg};}}select:disabled + &&{--card-fg-color:${color.input.default.disabled.fg};}select[data-read-only] + &&{--card-fg-color:${color.input.default.readOnly.fg};}`;
1113
+ let { color } = getTheme_v2(props.theme);
1114
+ return css`pointer-events:none;position:absolute;top:0;right:0;--card-fg-color:${color.input.default.enabled.fg};@media (hover:hover){select:not(disabled):not(:read-only):hover + &&{--card-fg-color:${color.input.default.hovered.fg};}}select:disabled + &&{--card-fg-color:${color.input.default.disabled.fg};}select[data-read-only] + &&{--card-fg-color:${color.input.default.readOnly.fg};}`;
1151
1115
  }
1152
1116
  const selectStyle = {
1153
1117
  root: rootStyle,
1154
1118
  input: inputStyle,
1155
1119
  iconBox: iconBoxStyle
1156
- }, StyledSelect = /* @__PURE__ */ styled_components.styled.div.withConfig({
1120
+ }, StyledSelect = /* @__PURE__ */ styled.div.withConfig({
1157
1121
  displayName: "StyledSelect",
1158
- componentId: "sc-gi1uze-0"
1159
- })(selectStyle.root), Input$2 = /* @__PURE__ */ styled_components.styled.select.withConfig({
1122
+ componentId: "sc-ecog6m-0"
1123
+ })(selectStyle.root), Input$2 = /* @__PURE__ */ styled.select.withConfig({
1160
1124
  displayName: "Input",
1161
- componentId: "sc-gi1uze-1"
1162
- })(selectStyle.input), IconBox = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
1125
+ componentId: "sc-ecog6m-1"
1126
+ })(selectStyle.input), IconBox = /* @__PURE__ */ styled(Box).withConfig({
1163
1127
  displayName: "IconBox",
1164
- componentId: "sc-gi1uze-2"
1165
- })(selectStyle.iconBox), Select = (0, react.forwardRef)(function(props, forwardedRef) {
1166
- let $ = (0, react_compiler_runtime.c)(38), children, customValidity, disabled, gap, readOnly, restProps, t0, t1, t2, t3;
1128
+ componentId: "sc-ecog6m-2"
1129
+ })(selectStyle.iconBox), Select = forwardRef(function Select(props, forwardedRef) {
1130
+ let $ = c(38), children, customValidity, disabled, gap, readOnly, restProps, t0, t1, t2, t3;
1167
1131
  $[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);
1168
- let fontSize = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, spacing = gap === void 0 ? t3 === void 0 ? 3 : t3 : gap, ref = (0, react.useRef)(null), t4;
1169
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[11] = t4) : t4 = $[11], (0, react.useImperativeHandle)(forwardedRef, t4), require_tabList.I(ref, customValidity);
1132
+ let fontSize = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, spacing = gap === void 0 ? t3 === void 0 ? 3 : t3 : gap, ref = useRef(null), t4;
1133
+ $[11] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[11] = t4) : t4 = $[11], useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
1170
1134
  let t5 = !disabled && readOnly ? "" : void 0, t6;
1171
- $[12] === fontSize ? t6 = $[13] : (t6 = require_tabList.ft(fontSize), $[12] = fontSize, $[13] = t6);
1135
+ $[12] === fontSize ? t6 = $[13] : (t6 = _getArrayProp(fontSize), $[12] = fontSize, $[13] = t6);
1172
1136
  let t7;
1173
- $[14] === padding ? t7 = $[15] : (t7 = require_tabList.ft(padding), $[14] = padding, $[15] = t7);
1137
+ $[14] === padding ? t7 = $[15] : (t7 = _getArrayProp(padding), $[14] = padding, $[15] = t7);
1174
1138
  let t8;
1175
- $[16] === radius ? t8 = $[17] : (t8 = require_tabList.ft(radius), $[16] = radius, $[17] = t8);
1139
+ $[16] === radius ? t8 = $[17] : (t8 = _getArrayProp(radius), $[16] = radius, $[17] = t8);
1176
1140
  let t9;
1177
- $[18] === spacing ? t9 = $[19] : (t9 = require_tabList.ft(spacing), $[18] = spacing, $[19] = t9);
1141
+ $[18] === spacing ? t9 = $[19] : (t9 = _getArrayProp(spacing), $[18] = spacing, $[19] = t9);
1178
1142
  let t10 = disabled || readOnly, t11;
1179
- $[20] !== children || $[21] !== restProps || $[22] !== t10 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8 || $[27] !== t9 ? (t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input$2, {
1143
+ $[20] !== children || $[21] !== restProps || $[22] !== t10 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8 || $[27] !== t9 ? (t11 = /* @__PURE__ */ jsx(Input$2, {
1180
1144
  "data-read-only": t5,
1181
1145
  "data-ui": "Select",
1182
1146
  ...restProps,
@@ -1189,68 +1153,67 @@ const selectStyle = {
1189
1153
  children
1190
1154
  }), $[20] = children, $[21] = restProps, $[22] = t10, $[23] = t5, $[24] = t6, $[25] = t7, $[26] = t8, $[27] = t9, $[28] = t11) : t11 = $[28];
1191
1155
  let t12;
1192
- $[29] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_ChevronDown.ChevronDownIcon, {}), $[29] = t12) : t12 = $[29];
1156
+ $[29] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[29] = t12) : t12 = $[29];
1193
1157
  let t13;
1194
- $[30] === fontSize ? t13 = $[31] : (t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
1158
+ $[30] === fontSize ? t13 = $[31] : (t13 = /* @__PURE__ */ jsx(Text, {
1195
1159
  size: fontSize,
1196
1160
  children: t12
1197
1161
  }), $[30] = fontSize, $[31] = t13);
1198
1162
  let t14;
1199
- $[32] !== padding || $[33] !== t13 ? (t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBox, {
1163
+ $[32] !== padding || $[33] !== t13 ? (t14 = /* @__PURE__ */ jsx(IconBox, {
1200
1164
  padding,
1201
1165
  children: t13
1202
1166
  }), $[32] = padding, $[33] = t13, $[34] = t14) : t14 = $[34];
1203
1167
  let t15;
1204
- return $[35] !== t11 || $[36] !== t14 ? (t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledSelect, {
1168
+ return $[35] !== t11 || $[36] !== t14 ? (t15 = /* @__PURE__ */ jsxs(StyledSelect, {
1205
1169
  "data-ui": "Select",
1206
1170
  children: [t11, t14]
1207
1171
  }), $[35] = t11, $[36] = t14, $[37] = t15) : t15 = $[37], t15;
1208
1172
  });
1209
- Select.displayName = "ForwardRef(Select)";
1210
1173
  function switchBaseStyles() {
1211
- return styled_components.css`position:relative;&:not([hidden]){display:inline-block;}`;
1174
+ return css`position:relative;&:not([hidden]){display:inline-block;}`;
1212
1175
  }
1213
1176
  function switchInputStyles() {
1214
- return styled_components.css`position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;height:100%;width:100%;outline:none;padding:0;margin:0;z-index:1;`;
1177
+ return css`position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;height:100%;width:100%;outline:none;padding:0;margin:0;z-index:1;`;
1215
1178
  }
1216
1179
  function switchRepresentationStyles(props) {
1217
- let { color, input } = require_theme.X(props.theme);
1218
- return styled_components.css`--switch-bg-color:${color.input.default.enabled.border};--switch-fg-color:${color.input.default.enabled.bg};--switch-box-shadow:none;&:not([hidden]){display:block;}position:relative;width:${require_tabList.ht(input.switch.width)};height:${require_tabList.ht(input.switch.height)};border-radius:${require_tabList.ht(input.switch.height / 2)};pointer-events:none;&:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;box-shadow:var(--switch-box-shadow);border-radius:inherit;}input:focus + &&{--switch-box-shadow:${require_tabList.tt({ focusRing: input.switch.focusRing })};}input:focus:not(:focus-visible) + &&{--switch-box-shadow:none;}input:checked + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}@media (hover:hover){input:not(:disabled):hover + &&{--switch-bg-color:${color.input.default.hovered.border};--switch-fg-color:${color.input.default.hovered.bg};}input:not(:disabled):checked:hover + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}}input:not([data-read-only]):disabled + &&{--switch-bg-color:${color.input.default.disabled.border};--switch-fg-color:${color.input.default.disabled.bg};}input[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.border};--switch-fg-color:${color.input.default.readOnly.bg};}input:checked[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.fg};--switch-fg-color:${color.input.default.readOnly.bg};}`;
1180
+ let { color, input } = getTheme_v2(props.theme);
1181
+ return css`--switch-bg-color:${color.input.default.enabled.border};--switch-fg-color:${color.input.default.enabled.bg};--switch-box-shadow:none;&:not([hidden]){display:block;}position:relative;width:${rem(input.switch.width)};height:${rem(input.switch.height)};border-radius:${rem(input.switch.height / 2)};pointer-events:none;&:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;box-shadow:var(--switch-box-shadow);border-radius:inherit;}input:focus + &&{--switch-box-shadow:${focusRingStyle({ focusRing: input.switch.focusRing })};}input:focus:not(:focus-visible) + &&{--switch-box-shadow:none;}input:checked + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}@media (hover:hover){input:not(:disabled):hover + &&{--switch-bg-color:${color.input.default.hovered.border};--switch-fg-color:${color.input.default.hovered.bg};}input:not(:disabled):checked:hover + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}}input:not([data-read-only]):disabled + &&{--switch-bg-color:${color.input.default.disabled.border};--switch-fg-color:${color.input.default.disabled.bg};}input[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.border};--switch-fg-color:${color.input.default.readOnly.bg};}input:checked[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.fg};--switch-fg-color:${color.input.default.readOnly.bg};}`;
1219
1182
  }
1220
1183
  function switchTrackStyles(props) {
1221
- let { input } = require_theme.X(props.theme);
1222
- return styled_components.css`&:not([hidden]){display:block;}background-color:var(--switch-bg-color);position:absolute;left:0;top:0;width:${require_tabList.ht(input.switch.width)};height:${require_tabList.ht(input.switch.height)};border-radius:${require_tabList.ht(input.switch.height / 2)};`;
1184
+ let { input } = getTheme_v2(props.theme);
1185
+ return css`&:not([hidden]){display:block;}background-color:var(--switch-bg-color);position:absolute;left:0;top:0;width:${rem(input.switch.width)};height:${rem(input.switch.height)};border-radius:${rem(input.switch.height / 2)};`;
1223
1186
  }
1224
1187
  function switchThumbStyles(props) {
1225
- let { $indeterminate } = props, { input } = require_theme.X(props.theme), trackWidth = input.switch.width, trackHeight = input.switch.height, trackPadding = input.switch.padding, size = trackHeight - input.switch.padding * 2, checkedOffset = trackWidth - trackPadding * 2 - size, indeterminateOffset = trackWidth / 2 - size / 2 - trackPadding, checked = $indeterminate !== !0 && props.$checked === !0;
1226
- return styled_components.css`&:not([hidden]){display:block;}position:absolute;left:${require_tabList.ht(trackPadding)};top:${require_tabList.ht(trackPadding)};height:${require_tabList.ht(size)};width:${require_tabList.ht(size)};border-radius:${require_tabList.ht(size / 2)};transition-property:transform;transition-duration:${input.switch.transitionDurationMs}ms;transition-timing-function:${input.switch.transitionTimingFunction};background:var(--switch-fg-color);transform:translate3d(0,0,0);box-shadow:0px 1px 0px 0px rgba(0,0,0,0.05);${checked && styled_components.css`transform:translate3d(${checkedOffset}px,0,0);`} ${$indeterminate && styled_components.css`transform:translate3d(${indeterminateOffset}px,0,0);`}`;
1188
+ let { $indeterminate } = props, { input } = getTheme_v2(props.theme), trackWidth = input.switch.width, trackHeight = input.switch.height, trackPadding = input.switch.padding, size = trackHeight - input.switch.padding * 2, checkedOffset = trackWidth - trackPadding * 2 - size, indeterminateOffset = trackWidth / 2 - size / 2 - trackPadding, checked = $indeterminate !== !0 && props.$checked === !0;
1189
+ return css`&:not([hidden]){display:block;}position:absolute;left:${rem(trackPadding)};top:${rem(trackPadding)};height:${rem(size)};width:${rem(size)};border-radius:${rem(size / 2)};transition-property:transform;transition-duration:${input.switch.transitionDurationMs}ms;transition-timing-function:${input.switch.transitionTimingFunction};background:var(--switch-fg-color);transform:translate3d(0,0,0);box-shadow:0px 1px 0px 0px rgba(0,0,0,0.05);${checked && css`transform:translate3d(${checkedOffset}px,0,0);`} ${$indeterminate && css`transform:translate3d(${indeterminateOffset}px,0,0);`}`;
1227
1190
  }
1228
- const StyledSwitch = /* @__PURE__ */ styled_components.styled.span.withConfig({
1191
+ const StyledSwitch = /* @__PURE__ */ styled.span.withConfig({
1229
1192
  displayName: "StyledSwitch",
1230
- componentId: "sc-2t29u1-0"
1231
- })(switchBaseStyles), Input$1 = /* @__PURE__ */ styled_components.styled.input.withConfig({
1193
+ componentId: "sc-aod7y9-0"
1194
+ })(switchBaseStyles), Input$1 = /* @__PURE__ */ styled.input.withConfig({
1232
1195
  displayName: "Input",
1233
- componentId: "sc-2t29u1-1"
1234
- })(switchInputStyles), Representation = /* @__PURE__ */ styled_components.styled.span.withConfig({
1196
+ componentId: "sc-aod7y9-1"
1197
+ })(switchInputStyles), Representation = /* @__PURE__ */ styled.span.withConfig({
1235
1198
  displayName: "Representation",
1236
- componentId: "sc-2t29u1-2"
1237
- })(switchRepresentationStyles), Track = /* @__PURE__ */ styled_components.styled.span.withConfig({
1199
+ componentId: "sc-aod7y9-2"
1200
+ })(switchRepresentationStyles), Track = /* @__PURE__ */ styled.span.withConfig({
1238
1201
  displayName: "Track",
1239
- componentId: "sc-2t29u1-3"
1240
- })(switchTrackStyles), Thumb = /* @__PURE__ */ styled_components.styled.span.withConfig({
1202
+ componentId: "sc-aod7y9-3"
1203
+ })(switchTrackStyles), Thumb = /* @__PURE__ */ styled.span.withConfig({
1241
1204
  displayName: "Thumb",
1242
- componentId: "sc-2t29u1-4"
1243
- })(switchThumbStyles), Switch = (0, react.forwardRef)(function(props, forwardedRef) {
1244
- let $ = (0, react_compiler_runtime.c)(26), checked, className, disabled, indeterminate, readOnly, restProps, style;
1205
+ componentId: "sc-aod7y9-4"
1206
+ })(switchThumbStyles), Switch = forwardRef(function Switch(props, forwardedRef) {
1207
+ let $ = c(26), checked, className, disabled, indeterminate, readOnly, restProps, style;
1245
1208
  $[0] === props ? (checked = $[1], className = $[2], disabled = $[3], indeterminate = $[4], readOnly = $[5], restProps = $[6], style = $[7]) : ({checked, className, disabled, indeterminate, readOnly, style, ...restProps} = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = disabled, $[4] = indeterminate, $[5] = readOnly, $[6] = restProps, $[7] = style);
1246
- let ref = (0, react.useRef)(null), t0;
1247
- $[8] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[8] = t0) : t0 = $[8], (0, react.useImperativeHandle)(forwardedRef, t0);
1209
+ let ref = useRef(null), t0;
1210
+ $[8] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[8] = t0) : t0 = $[8], useImperativeHandle(forwardedRef, t0);
1248
1211
  let t1, t2;
1249
1212
  $[9] === indeterminate ? (t1 = $[10], t2 = $[11]) : (t1 = () => {
1250
1213
  ref.current && (ref.current.indeterminate = indeterminate || !1);
1251
- }, t2 = [indeterminate], $[9] = indeterminate, $[10] = t1, $[11] = t2), (0, react.useEffect)(t1, t2);
1214
+ }, t2 = [indeterminate], $[9] = indeterminate, $[10] = t1, $[11] = t2), useEffect(t1, t2);
1252
1215
  let t3 = !disabled && readOnly ? "" : void 0, t4 = indeterminate !== !0 && checked, t5 = disabled || readOnly, t6;
1253
- $[12] !== restProps || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input$1, {
1216
+ $[12] !== restProps || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Input$1, {
1254
1217
  "data-read-only": t3,
1255
1218
  ...restProps,
1256
1219
  checked: t4,
@@ -1259,50 +1222,48 @@ const StyledSwitch = /* @__PURE__ */ styled_components.styled.span.withConfig({
1259
1222
  ref
1260
1223
  }), $[12] = restProps, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16];
1261
1224
  let t7;
1262
- $[17] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Track, {}), $[17] = t7) : t7 = $[17];
1225
+ $[17] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsx(Track, {}), $[17] = t7) : t7 = $[17];
1263
1226
  let t8;
1264
- $[18] !== checked || $[19] !== indeterminate ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Representation, {
1227
+ $[18] !== checked || $[19] !== indeterminate ? (t8 = /* @__PURE__ */ jsxs(Representation, {
1265
1228
  "aria-hidden": !0,
1266
1229
  "data-name": "representation",
1267
- children: [t7, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Thumb, {
1230
+ children: [t7, /* @__PURE__ */ jsx(Thumb, {
1268
1231
  $checked: checked,
1269
1232
  $indeterminate: indeterminate
1270
1233
  })]
1271
1234
  }), $[18] = checked, $[19] = indeterminate, $[20] = t8) : t8 = $[20];
1272
1235
  let t9;
1273
- return $[21] !== className || $[22] !== style || $[23] !== t6 || $[24] !== t8 ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledSwitch, {
1236
+ return $[21] !== className || $[22] !== style || $[23] !== t6 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxs(StyledSwitch, {
1274
1237
  className,
1275
1238
  "data-ui": "Switch",
1276
1239
  style,
1277
1240
  children: [t6, t8]
1278
1241
  }), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
1279
- });
1280
- Switch.displayName = "ForwardRef(Switch)";
1281
- const StyledTextArea = /* @__PURE__ */ styled_components.styled.span.withConfig({
1242
+ }), StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
1282
1243
  displayName: "StyledTextArea",
1283
- componentId: "sc-5c9kno-0"
1284
- })(require_tabList.Z), InputRoot = styled_components.styled.span.withConfig({
1244
+ componentId: "sc-vgfdnn-0"
1245
+ })(textInputRootStyle), InputRoot = styled.span.withConfig({
1285
1246
  displayName: "InputRoot",
1286
- componentId: "sc-5c9kno-1"
1287
- })`flex:1;min-width:0;display:block;position:relative;`, Input = /* @__PURE__ */ styled_components.styled.textarea.withConfig({
1247
+ componentId: "sc-vgfdnn-1"
1248
+ })`flex:1;min-width:0;display:block;position:relative;`, Input = /* @__PURE__ */ styled.textarea.withConfig({
1288
1249
  displayName: "Input",
1289
- componentId: "sc-5c9kno-2"
1290
- })(require_tabList.$, require_tabList.J, require_tabList.Y), Presentation = /* @__PURE__ */ styled_components.styled.div.withConfig({
1250
+ componentId: "sc-vgfdnn-2"
1251
+ })(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled.div.withConfig({
1291
1252
  displayName: "Presentation",
1292
- componentId: "sc-5c9kno-3"
1293
- })(require_tabList.K, require_tabList.X), TextArea = (0, react.forwardRef)(function(props, forwardedRef) {
1294
- let $ = (0, react_compiler_runtime.c)(35), __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
1253
+ componentId: "sc-vgfdnn-3"
1254
+ })(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function TextArea(props, forwardedRef) {
1255
+ let $ = c(35), __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
1295
1256
  $[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);
1296
- 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 = (0, react.useRef)(null), rootTheme = require_tabList.at(), t5;
1297
- $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], (0, react.useImperativeHandle)(forwardedRef, t5), require_tabList.I(ref, customValidity);
1257
+ 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;
1258
+ $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
1298
1259
  let t6 = rootTheme.scheme, t7 = rootTheme.tone, t8;
1299
- $[11] === fontSize ? t8 = $[12] : (t8 = require_tabList.ft(fontSize), $[11] = fontSize, $[12] = t8);
1260
+ $[11] === fontSize ? t8 = $[12] : (t8 = _getArrayProp(fontSize), $[11] = fontSize, $[12] = t8);
1300
1261
  let t9;
1301
- $[13] === padding ? t9 = $[14] : (t9 = require_tabList.ft(padding), $[13] = padding, $[14] = t9);
1262
+ $[13] === padding ? t9 = $[14] : (t9 = _getArrayProp(padding), $[13] = padding, $[14] = t9);
1302
1263
  let t10 = rootTheme.scheme, t11;
1303
- $[15] === Symbol.for("react.memo_cache_sentinel") ? (t11 = require_tabList.ft(0), $[15] = t11) : t11 = $[15];
1264
+ $[15] === Symbol.for("react.memo_cache_sentinel") ? (t11 = _getArrayProp(0), $[15] = t11) : t11 = $[15];
1304
1265
  let t12;
1305
- $[16] !== disabled || $[17] !== restProps || $[18] !== rootTheme.scheme || $[19] !== rootTheme.tone || $[20] !== t8 || $[21] !== t9 || $[22] !== weight ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input, {
1266
+ $[16] !== disabled || $[17] !== restProps || $[18] !== rootTheme.scheme || $[19] !== rootTheme.tone || $[20] !== t8 || $[21] !== t9 || $[22] !== weight ? (t12 = /* @__PURE__ */ jsx(Input, {
1306
1267
  "data-as": "textarea",
1307
1268
  "data-scheme": t6,
1308
1269
  "data-tone": t7,
@@ -1317,9 +1278,9 @@ const StyledTextArea = /* @__PURE__ */ styled_components.styled.span.withConfig(
1317
1278
  ref
1318
1279
  }), $[16] = disabled, $[17] = restProps, $[18] = rootTheme.scheme, $[19] = rootTheme.tone, $[20] = t8, $[21] = t9, $[22] = weight, $[23] = t12) : t12 = $[23];
1319
1280
  let t13;
1320
- $[24] === radius ? t13 = $[25] : (t13 = require_tabList.ft(radius), $[24] = radius, $[25] = t13);
1281
+ $[24] === radius ? t13 = $[25] : (t13 = _getArrayProp(radius), $[24] = radius, $[25] = t13);
1321
1282
  let t14 = border ? "" : void 0, t15;
1322
- $[26] !== __unstable_disableFocusRing || $[27] !== rootTheme.scheme || $[28] !== rootTheme.tone || $[29] !== t13 || $[30] !== t14 ? (t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Presentation, {
1283
+ $[26] !== __unstable_disableFocusRing || $[27] !== rootTheme.scheme || $[28] !== rootTheme.tone || $[29] !== t13 || $[30] !== t14 ? (t15 = /* @__PURE__ */ jsx(Presentation, {
1323
1284
  $radius: t13,
1324
1285
  $unstableDisableFocusRing: __unstable_disableFocusRing,
1325
1286
  $scheme: rootTheme.scheme,
@@ -1329,19 +1290,18 @@ const StyledTextArea = /* @__PURE__ */ styled_components.styled.span.withConfig(
1329
1290
  "data-tone": rootTheme.tone
1330
1291
  }), $[26] = __unstable_disableFocusRing, $[27] = rootTheme.scheme, $[28] = rootTheme.tone, $[29] = t13, $[30] = t14, $[31] = t15) : t15 = $[31];
1331
1292
  let t16;
1332
- return $[32] !== t12 || $[33] !== t15 ? (t16 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTextArea, {
1293
+ return $[32] !== t12 || $[33] !== t15 ? (t16 = /* @__PURE__ */ jsx(StyledTextArea, {
1333
1294
  "data-ui": "TextArea",
1334
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(InputRoot, { children: [t12, t15] })
1295
+ children: /* @__PURE__ */ jsxs(InputRoot, { children: [t12, t15] })
1335
1296
  }), $[32] = t12, $[33] = t15, $[34] = t16) : t16 = $[34], t16;
1336
1297
  });
1337
- TextArea.displayName = "ForwardRef(TextArea)";
1338
1298
  /**
1339
1299
  * @public
1340
1300
  * Provides context for a group of tooltip elements that should share a delay
1341
1301
  * which temporarily becomes 1 ms after the first floating element of the group opens.
1342
1302
  */
1343
1303
  function TooltipDelayGroupProvider(props) {
1344
- let $ = (0, react_compiler_runtime.c)(9), { children, delay } = props, [isGroupActive, setIsGroupActive] = require_tabList.d(!1), [openTooltipId, setOpenTooltipId] = require_tabList.d(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0, t0 = isGroupActive ? 1 : openDelay, t1;
1304
+ let $ = c(9), { children, delay } = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0, t0 = isGroupActive ? 1 : openDelay, t1;
1345
1305
  $[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t0 ? (t1 = {
1346
1306
  setIsGroupActive,
1347
1307
  openTooltipId,
@@ -1350,27 +1310,26 @@ function TooltipDelayGroupProvider(props) {
1350
1310
  closeDelay
1351
1311
  }, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t0, $[5] = t1) : t1 = $[5];
1352
1312
  let value = t1, t2;
1353
- return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.u.Provider, {
1313
+ return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, {
1354
1314
  value,
1355
1315
  children
1356
1316
  }), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
1357
1317
  }
1358
- TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
1359
1318
  /**
1360
1319
  * @internal
1361
1320
  */
1362
- const StyledAutocomplete = styled_components.styled.div.withConfig({
1321
+ const StyledAutocomplete = styled.div.withConfig({
1363
1322
  displayName: "StyledAutocomplete",
1364
1323
  componentId: "sc-hv7uk8-0"
1365
- })`line-height:0;`, ListBox = (0, styled_components.styled)(require_tabList.W).withConfig({
1324
+ })`line-height:0;`, ListBox = styled(Box).withConfig({
1366
1325
  displayName: "ListBox",
1367
1326
  componentId: "sc-hv7uk8-1"
1368
- })`& > ul{list-style:none;padding:0;margin:0;}`, rotate = styled_components.keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, AnimatedSpinnerIcon = (0, styled_components.styled)(_sanity_icons_Spinner.SpinnerIcon).withConfig({
1327
+ })`& > ul{list-style:none;padding:0;margin:0;}`, rotate = keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, AnimatedSpinnerIcon = styled(SpinnerIcon).withConfig({
1369
1328
  displayName: "AnimatedSpinnerIcon",
1370
1329
  componentId: "sc-hv7uk8-2"
1371
1330
  })`animation:${rotate} 500ms linear infinite;`;
1372
1331
  function AutocompleteOption(props) {
1373
- let $ = (0, react_compiler_runtime.c)(11), { children, id, onSelect, selected, value } = props, t0;
1332
+ let $ = c(11), { children, id, onSelect, selected, value } = props, t0;
1374
1333
  $[0] !== onSelect || $[1] !== value ? (t0 = () => {
1375
1334
  setTimeout(() => {
1376
1335
  onSelect(value);
@@ -1378,10 +1337,10 @@ function AutocompleteOption(props) {
1378
1337
  }, $[0] = onSelect, $[1] = value, $[2] = t0) : t0 = $[2];
1379
1338
  let handleClick = t0, t1;
1380
1339
  $[3] === handleClick ? t1 = $[4] : (t1 = (event) => {
1381
- event.key === "Enter" && !require_tabList.gt(event.currentTarget) && handleClick();
1340
+ event.key === "Enter" && !_isEnterToClickElement(event.currentTarget) && handleClick();
1382
1341
  }, $[3] = handleClick, $[4] = t1);
1383
1342
  let handleKeyDown = t1, t2;
1384
- return $[5] !== children || $[6] !== handleClick || $[7] !== handleKeyDown || $[8] !== id || $[9] !== selected ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
1343
+ return $[5] !== children || $[6] !== handleClick || $[7] !== handleKeyDown || $[8] !== id || $[9] !== selected ? (t2 = /* @__PURE__ */ jsx("li", {
1385
1344
  "aria-selected": selected,
1386
1345
  "data-ui": "AutocompleteOption",
1387
1346
  id,
@@ -1448,10 +1407,10 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1448
1407
  "Meta",
1449
1408
  "Tab",
1450
1409
  "CapsLock"
1451
- ], 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 = (0, react.forwardRef)(function(props, forwardedRef) {
1452
- let $ = (0, react_compiler_runtime.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;
1410
+ ], 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 Autocomplete(props, forwardedRef) {
1411
+ 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;
1453
1412
  $[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);
1454
- let border = t0 === void 0 || t0, fontSize = t1 === void 0 ? 2 : t1, listBox = t2 === void 0 ? require_tabList.Tt : t2, paddingProp = t3 === void 0 ? 3 : t3, popover = t4 === void 0 ? require_tabList.Tt : t4, radius = t5 === void 0 ? 2 : t5, renderValue = t6 === void 0 ? DEFAULT_RENDER_VALUE : t6, t7 = valueProp || null, t8 = valueProp || null, t9;
1413
+ 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;
1455
1414
  $[30] !== t7 || $[31] !== t8 ? (t9 = {
1456
1415
  activeValue: t7,
1457
1416
  focused: !1,
@@ -1459,30 +1418,30 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1459
1418
  query: null,
1460
1419
  value: t8
1461
1420
  }, $[30] = t7, $[31] = t8, $[32] = t9) : t9 = $[32];
1462
- let [state, dispatch] = (0, react.useReducer)(autocompleteReducer, t9), { activeValue, focused, listFocused, query, value } = state, t10;
1421
+ let [state, dispatch] = useReducer(autocompleteReducer, t9), { activeValue, focused, listFocused, query, value } = state, t10;
1463
1422
  $[33] !== fontSize || $[34] !== paddingProp ? (t10 = (t11) => {
1464
1423
  let { value: value_0 } = t11;
1465
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.R, {
1424
+ return /* @__PURE__ */ jsx(Card, {
1466
1425
  "data-as": "button",
1467
1426
  padding: paddingProp,
1468
1427
  radius: 2,
1469
1428
  tone: "inherit",
1470
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
1429
+ children: /* @__PURE__ */ jsx(Text, {
1471
1430
  size: fontSize,
1472
1431
  textOverflow: "ellipsis",
1473
1432
  children: value_0
1474
1433
  })
1475
1434
  });
1476
1435
  }, $[33] = fontSize, $[34] = paddingProp, $[35] = t10) : t10 = $[35];
1477
- let renderOption = typeof renderOptionProp == "function" ? renderOptionProp : t10, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = (0, react.useRef)(null), resultsPopoverElementRef = (0, react.useRef)(null), inputElementRef = (0, react.useRef)(null), listBoxElementRef = (0, react.useRef)(null), [inputElement, _setInputElement] = (0, react.useState)(null), t11;
1436
+ let renderOption = typeof renderOptionProp == "function" ? renderOptionProp : t10, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = useRef(null), resultsPopoverElementRef = useRef(null), inputElementRef = useRef(null), listBoxElementRef = useRef(null), [inputElement, _setInputElement] = useState(null), t11;
1478
1437
  $[36] === Symbol.for("react.memo_cache_sentinel") ? (t11 = (node) => {
1479
- (0, react.startTransition)(() => _setInputElement(node));
1438
+ startTransition(() => _setInputElement(node));
1480
1439
  }, $[36] = t11) : t11 = $[36];
1481
- let setInputElement = t11, listFocusedRef = (0, react.useRef)(!1), valueRef = (0, react.useRef)(value), valuePropRef = (0, react.useRef)(valueProp), popoverMouseWithinRef = (0, react.useRef)(!1), t12, t13;
1482
- $[37] === inputElement ? (t12 = $[38], t13 = $[39]) : (t12 = () => inputElement, t13 = [inputElement], $[37] = inputElement, $[38] = t12, $[39] = t13), (0, react.useImperativeHandle)(inputElementRef, t12, t13);
1440
+ let setInputElement = t11, listFocusedRef = useRef(!1), valueRef = useRef(value), valuePropRef = useRef(valueProp), popoverMouseWithinRef = useRef(!1), t12, t13;
1441
+ $[37] === inputElement ? (t12 = $[38], t13 = $[39]) : (t12 = () => inputElement, t13 = [inputElement], $[37] = inputElement, $[38] = t12, $[39] = t13), useImperativeHandle(inputElementRef, t12, t13);
1483
1442
  let t14, t15;
1484
- $[40] === inputElement ? (t14 = $[41], t15 = $[42]) : (t14 = () => inputElement, t15 = [inputElement], $[40] = inputElement, $[41] = t14, $[42] = t15), (0, react.useImperativeHandle)(forwardedRef, t14, t15);
1485
- let listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : require_tabList.wt, padding = require_tabList.ft(paddingProp), t16;
1443
+ $[40] === inputElement ? (t14 = $[41], t15 = $[42]) : (t14 = () => inputElement, t15 = [inputElement], $[40] = inputElement, $[41] = t14, $[42] = t15), useImperativeHandle(forwardedRef, t14, t15);
1444
+ let listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : EMPTY_ARRAY, padding = _getArrayProp(paddingProp), t16;
1486
1445
  $[43] !== options || $[44] !== value ? (t16 = value === null ? void 0 : options.find((o) => o.value === value), $[43] = options, $[44] = value, $[45] = t16) : t16 = $[45];
1487
1446
  let currentOption = t16, t17;
1488
1447
  if ($[46] !== filterOption || $[47] !== options || $[48] !== query) {
@@ -1598,14 +1557,14 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1598
1557
  type: "value/change",
1599
1558
  value: valueProp || null
1600
1559
  }));
1601
- }, t30 = [valueProp], $[84] = valueProp, $[85] = t29, $[86] = t30), (0, react.useEffect)(t29, t30);
1560
+ }, t30 = [valueProp], $[84] = valueProp, $[85] = t29, $[86] = t30), useEffect(t29, t30);
1602
1561
  let t31, t32;
1603
1562
  $[87] === focused ? (t31 = $[88], t32 = $[89]) : (t31 = () => {
1604
1563
  !focused && valueRef.current && dispatch({
1605
1564
  type: "root/setActiveValue",
1606
1565
  value: valueRef.current
1607
1566
  });
1608
- }, t32 = [focused], $[87] = focused, $[88] = t31, $[89] = t32), (0, react.useEffect)(t31, t32);
1567
+ }, t32 = [focused], $[87] = focused, $[88] = t31, $[89] = t32), useEffect(t31, t32);
1609
1568
  let t33, t34;
1610
1569
  $[90] !== activeValue || $[91] !== filteredOptions ? (t33 = () => {
1611
1570
  let listElement = listBoxElementRef.current;
@@ -1618,7 +1577,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1618
1577
  focusFirstDescendant(activeItemElement);
1619
1578
  }
1620
1579
  }
1621
- }, t34 = [activeValue, filteredOptions], $[90] = activeValue, $[91] = filteredOptions, $[92] = t33, $[93] = t34) : (t33 = $[92], t34 = $[93]), (0, react.useEffect)(t33, t34);
1580
+ }, t34 = [activeValue, filteredOptions], $[90] = activeValue, $[91] = filteredOptions, $[92] = t33, $[93] = t34) : (t33 = $[92], t34 = $[93]), useEffect(t33, t34);
1622
1581
  let t35;
1623
1582
  bb0: {
1624
1583
  if (!loading && !disabled && value) {
@@ -1631,19 +1590,19 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1631
1590
  }
1632
1591
  t35 = void 0;
1633
1592
  }
1634
- let clearButton = t35, openButtonBoxPadding = padding.map(_temp$2), openButtonPadding = padding.map(_temp2), openButtonProps = typeof openButton == "object" ? openButton : require_tabList.Tt, t36;
1593
+ let clearButton = t35, openButtonBoxPadding = padding.map(_temp$3), openButtonPadding = padding.map(_temp2$1), openButtonProps = typeof openButton == "object" ? openButton : EMPTY_RECORD, t36;
1635
1594
  $[95] !== dispatchOpen || $[96] !== openButtonProps ? (t36 = (event_4) => {
1636
1595
  dispatchOpen(), openButtonProps.onClick && openButtonProps.onClick(event_4), _raf(() => inputElementRef.current?.focus());
1637
1596
  }, $[95] = dispatchOpen, $[96] = openButtonProps, $[97] = t36) : t36 = $[97];
1638
1597
  let handleOpenClick = t36, t37;
1639
- $[98] !== disabled || $[99] !== expanded || $[100] !== fontSize || $[101] !== handleOpenClick || $[102] !== openButton || $[103] !== openButtonBoxPadding || $[104] !== openButtonPadding || $[105] !== openButtonProps || $[106] !== readOnly ? (t37 = !disabled && !readOnly && openButton ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
1598
+ $[98] !== disabled || $[99] !== expanded || $[100] !== fontSize || $[101] !== handleOpenClick || $[102] !== openButton || $[103] !== openButtonBoxPadding || $[104] !== openButtonPadding || $[105] !== openButtonProps || $[106] !== readOnly ? (t37 = !disabled && !readOnly && openButton ? /* @__PURE__ */ jsx(Box, {
1640
1599
  "aria-hidden": expanded,
1641
1600
  padding: openButtonBoxPadding,
1642
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.z, {
1601
+ children: /* @__PURE__ */ jsx(Button, {
1643
1602
  "aria-label": "Open",
1644
1603
  disabled: expanded,
1645
1604
  fontSize,
1646
- icon: _sanity_icons_ChevronDown.ChevronDownIcon,
1605
+ icon: ChevronDownIcon,
1647
1606
  mode: "bleed",
1648
1607
  padding: openButtonPadding,
1649
1608
  ...openButtonProps,
@@ -1678,12 +1637,12 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1678
1637
  let t42;
1679
1638
  $[123] !== activeValue || $[124] !== currentOption || $[125] !== handleOptionSelect || $[126] !== id || $[127] !== listFocused || $[128] !== loading || $[129] !== renderOption ? (t42 = (option_0) => {
1680
1639
  let active = activeValue === null ? currentOption === option_0 : option_0.value === activeValue;
1681
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AutocompleteOption, {
1640
+ return /* @__PURE__ */ jsx(AutocompleteOption, {
1682
1641
  id: `${id}-option-${option_0.value}`,
1683
1642
  onSelect: handleOptionSelect,
1684
1643
  selected: active,
1685
1644
  value: option_0.value,
1686
- children: (0, react.cloneElement)(renderOption(option_0), {
1645
+ children: cloneElement(renderOption(option_0), {
1687
1646
  disabled: loading,
1688
1647
  selected: active,
1689
1648
  tabIndex: listFocused && active ? 0 : -1
@@ -1692,7 +1651,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1692
1651
  }, $[123] = activeValue, $[124] = currentOption, $[125] = handleOptionSelect, $[126] = id, $[127] = listFocused, $[128] = loading, $[129] = renderOption, $[130] = t42) : t42 = $[130], t41 = filteredOptions.map(t42), $[114] = activeValue, $[115] = currentOption, $[116] = filteredOptions, $[117] = handleOptionSelect, $[118] = id, $[119] = listFocused, $[120] = loading, $[121] = renderOption, $[122] = t41;
1693
1652
  } else t41 = $[122];
1694
1653
  let t42;
1695
- $[131] !== listBoxId || $[132] !== t41 ? (t42 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.p, {
1654
+ $[131] !== listBoxId || $[132] !== t41 ? (t42 = /* @__PURE__ */ jsx(Stack, {
1696
1655
  as: "ul",
1697
1656
  "aria-multiselectable": !1,
1698
1657
  "data-ui": "AutoComplete__resultsList",
@@ -1703,7 +1662,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1703
1662
  children: t41
1704
1663
  }), $[131] = listBoxId, $[132] = t41, $[133] = t42) : t42 = $[133];
1705
1664
  let t43;
1706
- $[134] !== handleListBoxKeyDown || $[135] !== listBox || $[136] !== t42 ? (t43 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListBox, {
1665
+ $[134] !== handleListBoxKeyDown || $[135] !== listBox || $[136] !== t42 ? (t43 = /* @__PURE__ */ jsx(ListBox, {
1707
1666
  "data-ui": "AutoComplete__results",
1708
1667
  onKeyDown: handleListBoxKeyDown,
1709
1668
  padding: 1,
@@ -1716,7 +1675,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1716
1675
  bb3: {
1717
1676
  if (renderPopover) {
1718
1677
  let t42 = !expanded, t43;
1719
- $[138] !== content || $[139] !== handlePopoverMouseEnter || $[140] !== handlePopoverMouseLeave || $[141] !== inputElement || $[142] !== renderPopover || $[143] !== t42 ? (t43 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RenderPopover, {
1678
+ $[138] !== content || $[139] !== handlePopoverMouseEnter || $[140] !== handlePopoverMouseLeave || $[141] !== inputElement || $[142] !== renderPopover || $[143] !== t42 ? (t43 = /* @__PURE__ */ jsx(RenderPopover, {
1720
1679
  content,
1721
1680
  hidden: t42,
1722
1681
  inputElement,
@@ -1732,7 +1691,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1732
1691
  break bb3;
1733
1692
  }
1734
1693
  let t42;
1735
- $[145] !== content || $[146] !== expanded || $[147] !== handlePopoverMouseEnter || $[148] !== handlePopoverMouseLeave || $[149] !== inputElement || $[150] !== popover || $[151] !== radius ? (t42 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.m, {
1694
+ $[145] !== content || $[146] !== expanded || $[147] !== handlePopoverMouseEnter || $[148] !== handlePopoverMouseLeave || $[149] !== inputElement || $[150] !== popover || $[151] !== radius ? (t42 = /* @__PURE__ */ jsx(Popover, {
1736
1695
  arrow: !1,
1737
1696
  constrainSize: !0,
1738
1697
  content,
@@ -1751,7 +1710,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1751
1710
  }), $[145] = content, $[146] = expanded, $[147] = handlePopoverMouseEnter, $[148] = handlePopoverMouseLeave, $[149] = inputElement, $[150] = popover, $[151] = radius, $[152] = t42) : t42 = $[152], t41 = t42;
1752
1711
  }
1753
1712
  let results = t41, t42 = loading && AnimatedSpinnerIcon, t43 = suffix || openButtonNode, t44;
1754
- $[153] !== activeItemId || $[154] !== border || $[155] !== clearButton || $[156] !== customValidity || $[157] !== disabled || $[158] !== expanded || $[159] !== fontSize || $[160] !== handleClearButtonClick || $[161] !== handleInputChange || $[162] !== handleInputFocus || $[163] !== icon || $[164] !== id || $[165] !== inputValue || $[166] !== listBoxId || $[167] !== padding || $[168] !== prefix || $[169] !== radius || $[170] !== readOnly || $[171] !== restProps || $[172] !== t42 || $[173] !== t43 ? (t44 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.f, {
1713
+ $[153] !== activeItemId || $[154] !== border || $[155] !== clearButton || $[156] !== customValidity || $[157] !== disabled || $[158] !== expanded || $[159] !== fontSize || $[160] !== handleClearButtonClick || $[161] !== handleInputChange || $[162] !== handleInputFocus || $[163] !== icon || $[164] !== id || $[165] !== inputValue || $[166] !== listBoxId || $[167] !== padding || $[168] !== prefix || $[169] !== radius || $[170] !== readOnly || $[171] !== restProps || $[172] !== t42 || $[173] !== t43 ? (t44 = /* @__PURE__ */ jsx(TextInput, {
1755
1714
  ...restProps,
1756
1715
  "aria-activedescendant": activeItemId,
1757
1716
  "aria-autocomplete": "list",
@@ -1783,7 +1742,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1783
1742
  value: inputValue
1784
1743
  }), $[153] = activeItemId, $[154] = border, $[155] = clearButton, $[156] = customValidity, $[157] = disabled, $[158] = expanded, $[159] = fontSize, $[160] = handleClearButtonClick, $[161] = handleInputChange, $[162] = handleInputFocus, $[163] = icon, $[164] = id, $[165] = inputValue, $[166] = listBoxId, $[167] = padding, $[168] = prefix, $[169] = radius, $[170] = readOnly, $[171] = restProps, $[172] = t42, $[173] = t43, $[174] = t44) : t44 = $[174];
1785
1744
  let t45;
1786
- return $[175] !== handleRootBlur || $[176] !== handleRootFocus || $[177] !== handleRootKeyDown || $[178] !== results || $[179] !== t44 ? (t45 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledAutocomplete, {
1745
+ return $[175] !== handleRootBlur || $[176] !== handleRootFocus || $[177] !== handleRootKeyDown || $[178] !== results || $[179] !== t44 ? (t45 = /* @__PURE__ */ jsxs(StyledAutocomplete, {
1787
1746
  "data-ui": "Autocomplete",
1788
1747
  onBlur: handleRootBlur,
1789
1748
  onFocus: handleRootFocus,
@@ -1801,7 +1760,6 @@ function RenderPopover({ renderPopover, content, hidden, inputElement, onMouseEn
1801
1760
  onMouseLeave
1802
1761
  }, resultsPopoverElementRef);
1803
1762
  }
1804
- InnerAutocomplete.displayName = "ForwardRef(Autocomplete)";
1805
1763
  /**
1806
1764
  * The Autocomplete component is typically used for search components.
1807
1765
  * It consists of a text input for writing a query, and properties for rendering suggestions.
@@ -1809,31 +1767,31 @@ InnerAutocomplete.displayName = "ForwardRef(Autocomplete)";
1809
1767
  * @public
1810
1768
  */
1811
1769
  const Autocomplete = InnerAutocomplete;
1812
- function _temp$2(v_0) {
1770
+ function _temp$3(v_0) {
1813
1771
  return v_0 === 0 ? 0 : v_0 === 1 || v_0 === 2 ? 1 : v_0 - 2;
1814
1772
  }
1815
- function _temp2(v_1) {
1773
+ function _temp2$1(v_1) {
1816
1774
  return Math.max(v_1 - 1, 0);
1817
1775
  }
1818
- const StyledBreadcrumbs = styled_components.styled.ol.withConfig({
1776
+ const StyledBreadcrumbs = styled.ol.withConfig({
1819
1777
  displayName: "StyledBreadcrumbs",
1820
- componentId: "sc-b0flr4-0"
1821
- })`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`, ExpandButton = (0, styled_components.styled)(require_tabList.z).withConfig({
1778
+ componentId: "sc-1nquj0-0"
1779
+ })`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`, ExpandButton = styled(Button).withConfig({
1822
1780
  displayName: "ExpandButton",
1823
- componentId: "sc-b0flr4-1"
1824
- })`appearance:none;margin:-4px;`, Breadcrumbs = (0, react.forwardRef)(function(props, ref) {
1825
- let $ = (0, react_compiler_runtime.c)(30), children, gap, maxLength, restProps, separator, t0;
1781
+ componentId: "sc-1nquj0-1"
1782
+ })`appearance:none;margin:-4px;`, Breadcrumbs = forwardRef(function Breadcrumbs(props, ref) {
1783
+ let $ = c(30), children, gap, maxLength, restProps, separator, t0;
1826
1784
  $[0] === props ? (children = $[1], gap = $[2], maxLength = $[3], restProps = $[4], separator = $[5], t0 = $[6]) : ({children, gap, maxLength, separator, space: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = gap, $[3] = maxLength, $[4] = restProps, $[5] = separator, $[6] = t0);
1827
1785
  let t1 = gap === void 0 ? t0 === void 0 ? 2 : t0 : gap, t2;
1828
- $[7] === t1 ? t2 = $[8] : (t2 = require_tabList.ft(t1), $[7] = t1, $[8] = t2);
1829
- let space = t2, [open, setOpen] = (0, react.useState)(!1), expandElementRef = (0, react.useRef)(null), popoverElementRef = (0, react.useRef)(null), t3;
1786
+ $[7] === t1 ? t2 = $[8] : (t2 = _getArrayProp(t1), $[7] = t1, $[8] = t2);
1787
+ let space = t2, [open, setOpen] = useState(!1), expandElementRef = useRef(null), popoverElementRef = useRef(null), t3;
1830
1788
  $[9] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => setOpen(!1), $[9] = t3) : t3 = $[9];
1831
1789
  let collapse = t3, t4;
1832
1790
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setOpen(!0), $[10] = t4) : t4 = $[10];
1833
1791
  let expand = t4, t5;
1834
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => [expandElementRef.current, popoverElementRef.current], $[11] = t5) : t5 = $[11], require_tabList.L(collapse, t5);
1792
+ $[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => [expandElementRef.current, popoverElementRef.current], $[11] = t5) : t5 = $[11], useClickOutsideEvent(collapse, t5);
1835
1793
  let t6;
1836
- $[12] === children ? t6 = $[13] : (t6 = react.Children.toArray(children).filter(react.isValidElement), $[12] = children, $[13] = t6);
1794
+ $[12] === children ? t6 = $[13] : (t6 = Children.toArray(children).filter(isValidElement), $[12] = children, $[13] = t6);
1837
1795
  let rawItems = t6, t7;
1838
1796
  $[14] !== maxLength || $[15] !== open || $[16] !== rawItems || $[17] !== space ? (t7 = {
1839
1797
  collapse,
@@ -1848,37 +1806,36 @@ const StyledBreadcrumbs = styled_components.styled.ol.withConfig({
1848
1806
  let items = useItems(t7), t8;
1849
1807
  if ($[19] !== items || $[20] !== separator || $[21] !== space) {
1850
1808
  let t9;
1851
- $[23] !== separator || $[24] !== space ? (t9 = (item, itemIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.Fragment, { children: [itemIndex > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
1809
+ $[23] !== separator || $[24] !== space ? (t9 = (item, itemIndex) => /* @__PURE__ */ jsxs(Fragment, { children: [itemIndex > 0 && /* @__PURE__ */ jsx(Box, {
1852
1810
  "aria-hidden": !0,
1853
1811
  as: "li",
1854
1812
  paddingX: space,
1855
- children: separator || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
1813
+ children: separator || /* @__PURE__ */ jsx(Text, {
1856
1814
  muted: !0,
1857
1815
  children: "/"
1858
1816
  })
1859
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
1817
+ }), /* @__PURE__ */ jsx(Box, {
1860
1818
  as: "li",
1861
1819
  children: item
1862
1820
  })] }, itemIndex), $[23] = separator, $[24] = space, $[25] = t9) : t9 = $[25], t8 = items.map(t9), $[19] = items, $[20] = separator, $[21] = space, $[22] = t8;
1863
1821
  } else t8 = $[22];
1864
1822
  let t9;
1865
- return $[26] !== ref || $[27] !== restProps || $[28] !== t8 ? (t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledBreadcrumbs, {
1823
+ return $[26] !== ref || $[27] !== restProps || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsx(StyledBreadcrumbs, {
1866
1824
  "data-ui": "Breadcrumbs",
1867
1825
  ...restProps,
1868
1826
  ref,
1869
1827
  children: t8
1870
1828
  }), $[26] = ref, $[27] = restProps, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
1871
1829
  });
1872
- Breadcrumbs.displayName = "ForwardRef(Breadcrumbs)";
1873
1830
  function useItems(t0) {
1874
- let $ = (0, react_compiler_runtime.c)(28), { collapse, expand, expandElementRef, maxLength, open, popoverElementRef, rawItems, space } = t0, len = rawItems.length;
1831
+ let $ = c(28), { collapse, expand, expandElementRef, maxLength, open, popoverElementRef, rawItems, space } = t0, len = rawItems.length;
1875
1832
  if (maxLength && len > maxLength) {
1876
1833
  let beforeLength = Math.ceil(maxLength / 2), afterLength = Math.floor(maxLength / 2), t1;
1877
1834
  if ($[0] !== afterLength || $[1] !== beforeLength || $[2] !== collapse || $[3] !== expand || $[4] !== expandElementRef || $[5] !== len || $[6] !== open || $[7] !== popoverElementRef || $[8] !== rawItems || $[9] !== space) {
1878
1835
  let t2 = rawItems.slice(0, beforeLength - 1), t3;
1879
1836
  $[11] !== afterLength || $[12] !== beforeLength || $[13] !== len || $[14] !== rawItems ? (t3 = rawItems.slice(beforeLength - 1, len - afterLength), $[11] = afterLength, $[12] = beforeLength, $[13] = len, $[14] = rawItems, $[15] = t3) : t3 = $[15];
1880
1837
  let t4;
1881
- $[16] !== space || $[17] !== t3 ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.p, {
1838
+ $[16] !== space || $[17] !== t3 ? (t4 = /* @__PURE__ */ jsx(Stack, {
1882
1839
  as: "ol",
1883
1840
  overflow: "auto",
1884
1841
  padding: space,
@@ -1886,7 +1843,7 @@ function useItems(t0) {
1886
1843
  children: t3
1887
1844
  }), $[16] = space, $[17] = t3, $[18] = t4) : t4 = $[18];
1888
1845
  let t5 = open ? collapse : expand, t6;
1889
- $[19] !== expandElementRef || $[20] !== open || $[21] !== t5 ? (t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExpandButton, {
1846
+ $[19] !== expandElementRef || $[20] !== open || $[21] !== t5 ? (t6 = /* @__PURE__ */ jsx(ExpandButton, {
1890
1847
  fontSize: 1,
1891
1848
  mode: "bleed",
1892
1849
  onClick: t5,
@@ -1896,7 +1853,7 @@ function useItems(t0) {
1896
1853
  text: "…"
1897
1854
  }), $[19] = expandElementRef, $[20] = open, $[21] = t5, $[22] = t6) : t6 = $[22];
1898
1855
  let t7;
1899
- $[23] !== open || $[24] !== popoverElementRef || $[25] !== t4 || $[26] !== t6 ? (t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.m, {
1856
+ $[23] !== open || $[24] !== popoverElementRef || $[25] !== t4 || $[26] !== t6 ? (t7 = /* @__PURE__ */ jsx(Popover, {
1900
1857
  constrainSize: !0,
1901
1858
  content: t4,
1902
1859
  open,
@@ -1915,7 +1872,7 @@ function useItems(t0) {
1915
1872
  return rawItems;
1916
1873
  }
1917
1874
  function dialogStyle({ theme }) {
1918
- let { color } = require_theme.X(theme);
1875
+ let { color } = getTheme_v2(theme);
1919
1876
  return {
1920
1877
  "&:not([hidden])": { display: "flex" },
1921
1878
  top: 0,
@@ -1929,94 +1886,94 @@ function dialogStyle({ theme }) {
1929
1886
  };
1930
1887
  }
1931
1888
  function responsiveDialogPositionStyle(props) {
1932
- let { media } = require_theme.X(props.theme);
1933
- return require_tabList.mt(media, props.$position, (position) => ({ "&&": { position } }));
1889
+ let { media } = getTheme_v2(props.theme);
1890
+ return _responsive(media, props.$position, (position) => ({ "&&": { position } }));
1934
1891
  }
1935
1892
  function animationDialogStyle(props) {
1936
- return props.$animate ? styled_components.css`@keyframes zoomIn{from{opacity:0;transform:scale(0.95);}to{opacity:1;transform:scale(1);}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}animation:fadeIn 200ms ease-out;& > [data-ui='DialogCard']{animation:zoomIn 200ms ease-out;}` : styled_components.css``;
1893
+ return props.$animate ? css`@keyframes zoomIn{from{opacity:0;transform:scale(0.95);}to{opacity:1;transform:scale(1);}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}animation:fadeIn 200ms ease-out;& > [data-ui='DialogCard']{animation:zoomIn 200ms ease-out;}` : css``;
1937
1894
  }
1938
1895
  /**
1939
1896
  * @internal
1940
1897
  */
1941
- const DialogContext = require_tabList.st("@sanity/ui/context/dialog", { version: 0 });
1898
+ const DialogContext = createGlobalScopedContext("@sanity/ui/context/dialog", { version: 0 });
1942
1899
  /**
1943
1900
  * This API might change. DO NOT USE IN PRODUCTION.
1944
1901
  * @beta
1945
1902
  */
1946
1903
  function useDialog() {
1947
- return (0, react.useContext)(DialogContext);
1904
+ return useContext(DialogContext);
1948
1905
  }
1949
1906
  function isTargetWithinScope(boundaryElement, portalElement, target) {
1950
- return !boundaryElement || !portalElement || require_tabList._t(boundaryElement, target) || require_tabList._t(portalElement, target);
1907
+ return !boundaryElement || !portalElement || containsOrEqualsElement(boundaryElement, target) || containsOrEqualsElement(portalElement, target);
1951
1908
  }
1952
- const StyledDialog = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.v).withConfig({
1909
+ const StyledDialog = /* @__PURE__ */ styled(Layer).withConfig({
1953
1910
  displayName: "StyledDialog",
1954
- componentId: "sc-r9i1m3-0"
1955
- })(require_tabList.q, dialogStyle, responsiveDialogPositionStyle, animationDialogStyle), DialogContainer = (0, styled_components.styled)(Container).withConfig({
1911
+ componentId: "sc-2s0up-0"
1912
+ })(responsivePaddingStyle, dialogStyle, responsiveDialogPositionStyle, animationDialogStyle), DialogContainer = styled(Container).withConfig({
1956
1913
  displayName: "DialogContainer",
1957
- componentId: "sc-r9i1m3-1"
1958
- })`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`, DialogCardRoot = (0, styled_components.styled)(require_tabList.R).withConfig({
1914
+ componentId: "sc-2s0up-1"
1915
+ })`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`, DialogCardRoot = styled(Card).withConfig({
1959
1916
  displayName: "DialogCardRoot",
1960
- componentId: "sc-r9i1m3-2"
1961
- })`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`, DialogLayout = (0, styled_components.styled)(require_tabList.H).withConfig({
1917
+ componentId: "sc-2s0up-2"
1918
+ })`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`, DialogLayout = styled(Flex).withConfig({
1962
1919
  displayName: "DialogLayout",
1963
- componentId: "sc-r9i1m3-3"
1964
- })`flex:1;min-height:0;width:100%;`, DialogHeader = (0, styled_components.styled)(require_tabList.W).withConfig({
1920
+ componentId: "sc-2s0up-3"
1921
+ })`flex:1;min-height:0;width:100%;`, DialogHeader = styled(Box).withConfig({
1965
1922
  displayName: "DialogHeader",
1966
- componentId: "sc-r9i1m3-4"
1967
- })`position:relative;z-index:2;`, DialogContent = (0, styled_components.styled)(require_tabList.W).withConfig({
1923
+ componentId: "sc-2s0up-4"
1924
+ })`position:relative;z-index:2;`, DialogContent = styled(Box).withConfig({
1968
1925
  displayName: "DialogContent",
1969
- componentId: "sc-r9i1m3-5"
1970
- })`position:relative;z-index:1;overflow:auto;outline:none;`, DialogFooter = (0, styled_components.styled)(require_tabList.W).withConfig({
1926
+ componentId: "sc-2s0up-5"
1927
+ })`position:relative;z-index:1;overflow:auto;outline:none;`, DialogFooter = styled(Box).withConfig({
1971
1928
  displayName: "DialogFooter",
1972
- componentId: "sc-r9i1m3-6"
1973
- })`position:relative;z-index:3;`, DialogCard = (0, react.forwardRef)(function(props, forwardedRef) {
1974
- let $ = (0, react_compiler_runtime.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 = require_tabList._(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = require_tabList.x().element, t0;
1975
- $[0] === radiusProp ? t0 = $[1] : (t0 = require_tabList.ft(radiusProp), $[0] = radiusProp, $[1] = t0);
1929
+ componentId: "sc-2s0up-6"
1930
+ })`position:relative;z-index:3;`, DialogCard = forwardRef(function DialogCard(props, forwardedRef) {
1931
+ 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;
1932
+ $[0] === radiusProp ? t0 = $[1] : (t0 = _getArrayProp(radiusProp), $[0] = radiusProp, $[1] = t0);
1976
1933
  let radius = t0, t1;
1977
- $[2] === shadowProp ? t1 = $[3] : (t1 = require_tabList.ft(shadowProp), $[2] = shadowProp, $[3] = t1);
1934
+ $[2] === shadowProp ? t1 = $[3] : (t1 = _getArrayProp(shadowProp), $[2] = shadowProp, $[3] = t1);
1978
1935
  let shadow = t1, t2;
1979
- $[4] === widthProp ? t2 = $[5] : (t2 = require_tabList.ft(widthProp), $[4] = widthProp, $[5] = t2);
1980
- let width = t2, ref = (0, react.useRef)(null), contentRef = (0, react.useRef)(null), { isTopLayer } = require_tabList.y(), labelId = `${id}_label`, showCloseButton = !!onClose && hideCloseButton === !1, showHeader = !!header || showCloseButton, t3;
1981
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => ref.current, $[6] = t3) : t3 = $[6], (0, react.useImperativeHandle)(forwardedRef, t3);
1936
+ $[4] === widthProp ? t2 = $[5] : (t2 = _getArrayProp(widthProp), $[4] = widthProp, $[5] = t2);
1937
+ let width = t2, ref = useRef(null), contentRef = useRef(null), { isTopLayer } = useLayer(), labelId = `${id}_label`, showCloseButton = !!onClose && hideCloseButton === !1, showHeader = !!header || showCloseButton, t3;
1938
+ $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => ref.current, $[6] = t3) : t3 = $[6], useImperativeHandle(forwardedRef, t3);
1982
1939
  let t4;
1983
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => contentRef.current, $[7] = t4) : t4 = $[7], (0, react.useImperativeHandle)(forwardedContentRef, t4);
1940
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => contentRef.current, $[7] = t4) : t4 = $[7], useImperativeHandle(forwardedContentRef, t4);
1984
1941
  let t5, t6;
1985
1942
  $[8] === autoFocus ? (t5 = $[9], t6 = $[10]) : (t5 = () => {
1986
1943
  autoFocus && ref.current && focusFirstDescendant(ref.current);
1987
- }, t6 = [autoFocus, ref], $[8] = autoFocus, $[9] = t5, $[10] = t6), (0, react.useEffect)(t5, t6);
1944
+ }, t6 = [autoFocus, ref], $[8] = autoFocus, $[9] = t5, $[10] = t6), useEffect(t5, t6);
1988
1945
  let t7;
1989
1946
  $[11] !== boundaryElement || $[12] !== isTopLayer || $[13] !== onClose || $[14] !== portalElement ? (t7 = (event) => {
1990
1947
  if (!isTopLayer || !onClose) return;
1991
1948
  let target = document.activeElement;
1992
1949
  target && !isTargetWithinScope(boundaryElement, portalElement, target) || event.key === "Escape" && (event.preventDefault(), event.stopPropagation(), onClose());
1993
- }, $[11] = boundaryElement, $[12] = isTopLayer, $[13] = onClose, $[14] = portalElement, $[15] = t7) : t7 = $[15], require_tabList.M(t7);
1950
+ }, $[11] = boundaryElement, $[12] = isTopLayer, $[13] = onClose, $[14] = portalElement, $[15] = t7) : t7 = $[15], useGlobalKeyDown(t7);
1994
1951
  let t8;
1995
1952
  $[16] !== boundaryElement || $[17] !== isTopLayer || $[18] !== onClickOutside || $[19] !== portalElement ? (t8 = isTopLayer && onClickOutside && ((event_0) => {
1996
1953
  let target_0 = event_0.target;
1997
1954
  target_0 && !isTargetWithinScope(boundaryElement, portalElement, target_0) || onClickOutside();
1998
1955
  }), $[16] = boundaryElement, $[17] = isTopLayer, $[18] = onClickOutside, $[19] = portalElement, $[20] = t8) : t8 = $[20];
1999
1956
  let t9;
2000
- $[21] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => [ref.current], $[21] = t9) : t9 = $[21], require_tabList.L(t8, t9);
1957
+ $[21] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => [ref.current], $[21] = t9) : t9 = $[21], useClickOutsideEvent(t8, t9);
2001
1958
  let t10;
2002
- $[22] !== header || $[23] !== labelId || $[24] !== onClose || $[25] !== showCloseButton || $[26] !== showHeader ? (t10 = showHeader && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogHeader, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_tabList.H, {
1959
+ $[22] !== header || $[23] !== labelId || $[24] !== onClose || $[25] !== showCloseButton || $[26] !== showHeader ? (t10 = showHeader && /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(Flex, {
2003
1960
  align: "flex-start",
2004
1961
  padding: 3,
2005
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
1962
+ children: [/* @__PURE__ */ jsx(Box, {
2006
1963
  flex: 1,
2007
1964
  padding: 2,
2008
- children: header && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
1965
+ children: header && /* @__PURE__ */ jsx(Text, {
2009
1966
  id: labelId,
2010
1967
  size: 1,
2011
1968
  weight: "semibold",
2012
1969
  children: header
2013
1970
  })
2014
- }), showCloseButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
1971
+ }), showCloseButton && /* @__PURE__ */ jsx(Box, {
2015
1972
  flex: "none",
2016
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.z, {
1973
+ children: /* @__PURE__ */ jsx(Button, {
2017
1974
  "aria-label": "Close dialog",
2018
1975
  disabled: !onClose,
2019
- icon: _sanity_icons_Close.CloseIcon,
1976
+ icon: CloseIcon,
2020
1977
  mode: "bleed",
2021
1978
  onClick: onClose,
2022
1979
  padding: 2
@@ -2024,16 +1981,16 @@ const StyledDialog = /* @__PURE__ */ (0, styled_components.styled)(require_tabLi
2024
1981
  })]
2025
1982
  }) }), $[22] = header, $[23] = labelId, $[24] = onClose, $[25] = showCloseButton, $[26] = showHeader, $[27] = t10) : t10 = $[27];
2026
1983
  let t11;
2027
- $[28] === children ? t11 = $[29] : (t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContent, {
1984
+ $[28] === children ? t11 = $[29] : (t11 = /* @__PURE__ */ jsx(DialogContent, {
2028
1985
  flex: 1,
2029
1986
  ref: contentRef,
2030
1987
  tabIndex: -1,
2031
1988
  children
2032
1989
  }), $[28] = children, $[29] = t11);
2033
1990
  let t12;
2034
- $[30] === footer ? t12 = $[31] : (t12 = footer && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogFooter, { children: footer }), $[30] = footer, $[31] = t12);
1991
+ $[30] === footer ? t12 = $[31] : (t12 = footer && /* @__PURE__ */ jsx(DialogFooter, { children: footer }), $[30] = footer, $[31] = t12);
2035
1992
  let t13;
2036
- $[32] !== t10 || $[33] !== t11 || $[34] !== t12 ? (t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DialogLayout, {
1993
+ $[32] !== t10 || $[33] !== t11 || $[34] !== t12 ? (t13 = /* @__PURE__ */ jsxs(DialogLayout, {
2037
1994
  direction: "column",
2038
1995
  children: [
2039
1996
  t10,
@@ -2042,7 +1999,7 @@ const StyledDialog = /* @__PURE__ */ (0, styled_components.styled)(require_tabLi
2042
1999
  ]
2043
2000
  }), $[32] = t10, $[33] = t11, $[34] = t12, $[35] = t13) : t13 = $[35];
2044
2001
  let t14;
2045
- $[36] !== radius || $[37] !== scheme || $[38] !== shadow || $[39] !== t13 ? (t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogCardRoot, {
2002
+ $[36] !== radius || $[37] !== scheme || $[38] !== shadow || $[39] !== t13 ? (t14 = /* @__PURE__ */ jsx(DialogCardRoot, {
2046
2003
  radius,
2047
2004
  ref,
2048
2005
  scheme,
@@ -2050,32 +2007,25 @@ const StyledDialog = /* @__PURE__ */ (0, styled_components.styled)(require_tabLi
2050
2007
  children: t13
2051
2008
  }), $[36] = radius, $[37] = scheme, $[38] = shadow, $[39] = t13, $[40] = t14) : t14 = $[40];
2052
2009
  let t15;
2053
- return $[41] !== t14 || $[42] !== width ? (t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContainer, {
2010
+ return $[41] !== t14 || $[42] !== width ? (t15 = /* @__PURE__ */ jsx(DialogContainer, {
2054
2011
  "data-ui": "DialogCard",
2055
2012
  width,
2056
2013
  children: t14
2057
2014
  }), $[41] = t14, $[42] = width, $[43] = t15) : t15 = $[43], t15;
2058
- });
2059
- DialogCard.displayName = "ForwardRef(DialogCard)";
2060
- /**
2061
- * The Dialog component.
2062
- *
2063
- * @public
2064
- */
2065
- const Dialog = (0, react.forwardRef)(function(props, ref) {
2066
- let $ = (0, react_compiler_runtime.c)(70), dialog = useDialog(), { layer } = require_tabList.rt(), _positionProp, _zOffsetProp, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5, t6;
2015
+ }), Dialog = forwardRef(function Dialog(props, ref) {
2016
+ 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;
2067
2017
  $[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);
2068
- 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 = !require_tabList.O() && _animate, portal = require_tabList._(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = require_tabList.x().element, t7;
2069
- $[22] === cardRadiusProp ? t7 = $[23] : (t7 = require_tabList.ft(cardRadiusProp), $[22] = cardRadiusProp, $[23] = t7);
2018
+ 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;
2019
+ $[22] === cardRadiusProp ? t7 = $[23] : (t7 = _getArrayProp(cardRadiusProp), $[22] = cardRadiusProp, $[23] = t7);
2070
2020
  let cardRadius = t7, t8;
2071
- $[24] === paddingProp ? t8 = $[25] : (t8 = require_tabList.ft(paddingProp), $[24] = paddingProp, $[25] = t8);
2021
+ $[24] === paddingProp ? t8 = $[25] : (t8 = _getArrayProp(paddingProp), $[24] = paddingProp, $[25] = t8);
2072
2022
  let padding = t8, t9;
2073
- $[26] === positionProp ? t9 = $[27] : (t9 = require_tabList.ft(positionProp), $[26] = positionProp, $[27] = t9);
2023
+ $[26] === positionProp ? t9 = $[27] : (t9 = _getArrayProp(positionProp), $[26] = positionProp, $[27] = t9);
2074
2024
  let position = t9, t10;
2075
- $[28] === widthProp ? t10 = $[29] : (t10 = require_tabList.ft(widthProp), $[28] = widthProp, $[29] = t10);
2025
+ $[28] === widthProp ? t10 = $[29] : (t10 = _getArrayProp(widthProp), $[28] = widthProp, $[29] = t10);
2076
2026
  let width = t10, t11;
2077
- $[30] === zOffsetProp ? t11 = $[31] : (t11 = require_tabList.ft(zOffsetProp), $[30] = zOffsetProp, $[31] = t11);
2078
- let zOffset = t11, preDivRef = (0, react.useRef)(null), postDivRef = (0, react.useRef)(null), cardRef = (0, react.useRef)(null), focusedElementRef = (0, react.useRef)(null), t12;
2027
+ $[30] === zOffsetProp ? t11 = $[31] : (t11 = _getArrayProp(zOffsetProp), $[30] = zOffsetProp, $[31] = t11);
2028
+ let zOffset = t11, preDivRef = useRef(null), postDivRef = useRef(null), cardRef = useRef(null), focusedElementRef = useRef(null), t12;
2079
2029
  $[32] === onFocus ? t12 = $[33] : (t12 = (event) => {
2080
2030
  onFocus?.(event);
2081
2031
  let target = event.target, cardElement = cardRef.current;
@@ -2087,9 +2037,9 @@ const Dialog = (0, react.forwardRef)(function(props, ref) {
2087
2037
  focusFirstDescendant(cardElement);
2088
2038
  return;
2089
2039
  }
2090
- require_tabList.bt(event.target) && (focusedElementRef.current = event.target);
2040
+ isHTMLElement(event.target) && (focusedElementRef.current = event.target);
2091
2041
  }, $[32] = onFocus, $[33] = t12);
2092
- let handleFocus = t12, labelId = `${id}_label`, rootClickTimeoutRef = (0, react.useRef)(void 0), t13;
2042
+ let handleFocus = t12, labelId = `${id}_label`, rootClickTimeoutRef = useRef(void 0), t13;
2093
2043
  $[34] !== boundaryElement || $[35] !== portalElement ? (t13 = () => {
2094
2044
  rootClickTimeoutRef.current && clearTimeout(rootClickTimeoutRef.current), rootClickTimeoutRef.current = setTimeout(() => {
2095
2045
  let activeElement = document.activeElement;
@@ -2105,12 +2055,12 @@ const Dialog = (0, react.forwardRef)(function(props, ref) {
2105
2055
  }, 0);
2106
2056
  }, $[34] = boundaryElement, $[35] = portalElement, $[36] = t13) : t13 = $[36];
2107
2057
  let handleRootClick = t13, t14;
2108
- $[37] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2058
+ $[37] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ jsx("div", {
2109
2059
  ref: preDivRef,
2110
2060
  tabIndex: 0
2111
2061
  }), $[37] = t14) : t14 = $[37];
2112
2062
  let t15;
2113
- $[38] !== autoFocus || $[39] !== cardRadius || $[40] !== cardShadow || $[41] !== children || $[42] !== contentRef || $[43] !== footer || $[44] !== header || $[45] !== hideCloseButton || $[46] !== id || $[47] !== onClickOutside || $[48] !== onClose || $[49] !== portalProp || $[50] !== scheme || $[51] !== width ? (t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogCard, {
2063
+ $[38] !== autoFocus || $[39] !== cardRadius || $[40] !== cardShadow || $[41] !== children || $[42] !== contentRef || $[43] !== footer || $[44] !== header || $[45] !== hideCloseButton || $[46] !== id || $[47] !== onClickOutside || $[48] !== onClose || $[49] !== portalProp || $[50] !== scheme || $[51] !== width ? (t15 = /* @__PURE__ */ jsx(DialogCard, {
2114
2064
  __unstable_autoFocus: autoFocus,
2115
2065
  __unstable_hideCloseButton: hideCloseButton,
2116
2066
  contentRef,
@@ -2128,12 +2078,12 @@ const Dialog = (0, react.forwardRef)(function(props, ref) {
2128
2078
  children
2129
2079
  }), $[38] = autoFocus, $[39] = cardRadius, $[40] = cardShadow, $[41] = children, $[42] = contentRef, $[43] = footer, $[44] = header, $[45] = hideCloseButton, $[46] = id, $[47] = onClickOutside, $[48] = onClose, $[49] = portalProp, $[50] = scheme, $[51] = width, $[52] = t15) : t15 = $[52];
2130
2080
  let t16;
2131
- $[53] === Symbol.for("react.memo_cache_sentinel") ? (t16 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2081
+ $[53] === Symbol.for("react.memo_cache_sentinel") ? (t16 = /* @__PURE__ */ jsx("div", {
2132
2082
  ref: postDivRef,
2133
2083
  tabIndex: 0
2134
2084
  }), $[53] = t16) : t16 = $[53];
2135
2085
  let t17;
2136
- $[54] !== animate || $[55] !== handleFocus || $[56] !== handleRootClick || $[57] !== id || $[58] !== labelId || $[59] !== onActivate || $[60] !== padding || $[61] !== position || $[62] !== ref || $[63] !== restProps || $[64] !== t15 || $[65] !== zOffset ? (t17 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledDialog, {
2086
+ $[54] !== animate || $[55] !== handleFocus || $[56] !== handleRootClick || $[57] !== id || $[58] !== labelId || $[59] !== onActivate || $[60] !== padding || $[61] !== position || $[62] !== ref || $[63] !== restProps || $[64] !== t15 || $[65] !== zOffset ? (t17 = /* @__PURE__ */ jsxs(StyledDialog, {
2137
2087
  ...restProps,
2138
2088
  $animate: animate,
2139
2089
  $padding: padding,
@@ -2155,53 +2105,51 @@ const Dialog = (0, react.forwardRef)(function(props, ref) {
2155
2105
  ]
2156
2106
  }), $[54] = animate, $[55] = handleFocus, $[56] = handleRootClick, $[57] = id, $[58] = labelId, $[59] = onActivate, $[60] = padding, $[61] = position, $[62] = ref, $[63] = restProps, $[64] = t15, $[65] = zOffset, $[66] = t17) : t17 = $[66];
2157
2107
  let t18;
2158
- return $[67] !== portalProp || $[68] !== t17 ? (t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.g, {
2108
+ return $[67] !== portalProp || $[68] !== t17 ? (t18 = /* @__PURE__ */ jsx(Portal, {
2159
2109
  __unstable_name: portalProp,
2160
2110
  children: t17
2161
2111
  }), $[67] = portalProp, $[68] = t17, $[69] = t18) : t18 = $[69], t18;
2162
2112
  });
2163
- Dialog.displayName = "ForwardRef(Dialog)";
2164
2113
  /**
2165
2114
  * This API might change. DO NOT USE IN PRODUCTION.
2166
2115
  * @beta
2167
2116
  */
2168
2117
  function DialogProvider(props) {
2169
- let $ = (0, react_compiler_runtime.c)(6), { children, position, zOffset } = props, t0;
2118
+ let $ = c(6), { children, position, zOffset } = props, t0;
2170
2119
  $[0] !== position || $[1] !== zOffset ? (t0 = {
2171
2120
  version: 0,
2172
2121
  position,
2173
2122
  zOffset
2174
2123
  }, $[0] = position, $[1] = zOffset, $[2] = t0) : t0 = $[2];
2175
2124
  let contextValue = t0, t1;
2176
- return $[3] !== children || $[4] !== contextValue ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DialogContext.Provider, {
2125
+ return $[3] !== children || $[4] !== contextValue ? (t1 = /* @__PURE__ */ jsx(DialogContext.Provider, {
2177
2126
  value: contextValue,
2178
2127
  children
2179
2128
  }), $[3] = children, $[4] = contextValue, $[5] = t1) : t1 = $[5], t1;
2180
2129
  }
2181
- DialogProvider.displayName = "DialogProvider";
2182
2130
  /**
2183
2131
  * The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
2184
2132
  *
2185
2133
  * @public
2186
2134
  */
2187
- const MenuButton = (0, react.forwardRef)(function(props, forwardedRef) {
2188
- let $ = (0, react_compiler_runtime.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] = (0, react.useState)(!1), [shouldFocus, setShouldFocus] = (0, react.useState)(null), [buttonElement, setButtonElement] = (0, react.useState)(null), t2;
2135
+ const MenuButton = forwardRef(function MenuButton(props, forwardedRef) {
2136
+ 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;
2189
2137
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[0] = t2) : t2 = $[0];
2190
- let [menuElements, setChildMenuElements] = (0, react.useState)(t2), openRef = (0, react.useRef)(open), t3, t4;
2138
+ let [menuElements, setChildMenuElements] = useState(t2), openRef = useRef(open), t3, t4;
2191
2139
  $[1] !== onOpen || $[2] !== open ? (t3 = () => {
2192
2140
  onOpen && open && !openRef.current && onOpen();
2193
- }, t4 = [onOpen, open], $[1] = onOpen, $[2] = open, $[3] = t3, $[4] = t4) : (t3 = $[3], t4 = $[4]), (0, react.useEffect)(t3, t4);
2141
+ }, t4 = [onOpen, open], $[1] = onOpen, $[2] = open, $[3] = t3, $[4] = t4) : (t3 = $[3], t4 = $[4]), useEffect(t3, t4);
2194
2142
  let t5, t6;
2195
2143
  $[5] !== onClose || $[6] !== open ? (t5 = () => {
2196
2144
  onClose && !open && openRef.current && onClose();
2197
- }, t6 = [onClose, open], $[5] = onClose, $[6] = open, $[7] = t5, $[8] = t6) : (t5 = $[7], t6 = $[8]), (0, react.useEffect)(t5, t6);
2145
+ }, t6 = [onClose, open], $[5] = onClose, $[6] = open, $[7] = t5, $[8] = t6) : (t5 = $[7], t6 = $[8]), useEffect(t5, t6);
2198
2146
  let t7, t8;
2199
2147
  $[9] === open ? (t7 = $[10], t8 = $[11]) : (t7 = () => {
2200
2148
  openRef.current = open;
2201
- }, t8 = [open], $[9] = open, $[10] = t7, $[11] = t8), (0, react.useEffect)(t7, t8);
2149
+ }, t8 = [open], $[9] = open, $[10] = t7, $[11] = t8), useEffect(t7, t8);
2202
2150
  let t9;
2203
2151
  $[12] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => {
2204
- setOpen(_temp$1), setShouldFocus(null);
2152
+ setOpen(_temp$2), setShouldFocus(null);
2205
2153
  }, $[12] = t9) : t9 = $[12];
2206
2154
  let handleButtonClick = t9, t10;
2207
2155
  $[13] === open ? t10 = $[14] : (t10 = (event) => {
@@ -2245,7 +2193,7 @@ const MenuButton = (0, react.forwardRef)(function(props, forwardedRef) {
2245
2193
  let handleItemClick = t15, t16;
2246
2194
  $[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];
2247
2195
  let registerElement = t16, t17;
2248
- $[28] !== buttonElement || $[29] !== handleBlur || $[30] !== handleItemClick || $[31] !== handleMenuClickOutside || $[32] !== handleMenuEscape || $[33] !== id || $[34] !== menuProp || $[35] !== shouldFocus ? (t17 = menuProp && (0, react.cloneElement)(menuProp, {
2196
+ $[28] !== buttonElement || $[29] !== handleBlur || $[30] !== handleItemClick || $[31] !== handleMenuClickOutside || $[32] !== handleMenuEscape || $[33] !== id || $[34] !== menuProp || $[35] !== shouldFocus ? (t17 = menuProp && cloneElement(menuProp, {
2249
2197
  "aria-labelledby": id,
2250
2198
  onBlurCapture: handleBlur,
2251
2199
  onClickOutside: handleMenuClickOutside,
@@ -2256,7 +2204,7 @@ const MenuButton = (0, react.forwardRef)(function(props, forwardedRef) {
2256
2204
  shouldFocus
2257
2205
  }), $[28] = buttonElement, $[29] = handleBlur, $[30] = handleItemClick, $[31] = handleMenuClickOutside, $[32] = handleMenuEscape, $[33] = id, $[34] = menuProp, $[35] = shouldFocus, $[36] = t17) : t17 = $[36];
2258
2206
  let menu = t17, t18;
2259
- $[37] !== buttonProp || $[38] !== handleMouseDown || $[39] !== id || $[40] !== open ? (t18 = buttonProp && (0, react.cloneElement)(buttonProp, {
2207
+ $[37] !== buttonProp || $[38] !== handleMouseDown || $[39] !== id || $[40] !== open ? (t18 = buttonProp && cloneElement(buttonProp, {
2260
2208
  "data-ui": "MenuButton",
2261
2209
  id,
2262
2210
  onClick: handleButtonClick,
@@ -2268,7 +2216,7 @@ const MenuButton = (0, react.forwardRef)(function(props, forwardedRef) {
2268
2216
  selected: buttonProp.props.selected ?? open
2269
2217
  }), $[37] = buttonProp, $[38] = handleMouseDown, $[39] = id, $[40] = open, $[41] = t18) : t18 = $[41];
2270
2218
  let button = t18, t19, t20;
2271
- $[42] === buttonElement ? (t19 = $[43], t20 = $[44]) : (t19 = () => buttonElement, t20 = [buttonElement], $[42] = buttonElement, $[43] = t19, $[44] = t20), (0, react.useImperativeHandle)(forwardedRef, t19, t20);
2219
+ $[42] === buttonElement ? (t19 = $[43], t20 = $[44]) : (t19 = () => buttonElement, t20 = [buttonElement], $[42] = buttonElement, $[43] = t19, $[44] = t20), useImperativeHandle(forwardedRef, t19, t20);
2272
2220
  let t21;
2273
2221
  $[45] === popover ? t21 = $[46] : (t21 = popover || {}, $[45] = popover, $[46] = t21);
2274
2222
  let t22;
@@ -2283,9 +2231,9 @@ const MenuButton = (0, react.forwardRef)(function(props, forwardedRef) {
2283
2231
  ...t21
2284
2232
  }, $[47] = deprecated_boundaryElement, $[48] = deprecated_placement, $[49] = deprecated_popoverRadius, $[50] = deprecated_popoverScheme, $[51] = deprecated_portal, $[52] = deprecated_preventOverflow, $[53] = t21, $[54] = t22) : t22 = $[54];
2285
2233
  let popoverProps = t22, t23;
2286
- $[55] === button ? t23 = $[56] : (t23 = button || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}), $[55] = button, $[56] = t23);
2234
+ $[55] === button ? t23 = $[56] : (t23 = button || /* @__PURE__ */ jsx(Fragment$1, {}), $[55] = button, $[56] = t23);
2287
2235
  let t24;
2288
- return $[57] !== menu || $[58] !== open || $[59] !== popoverProps || $[60] !== t23 ? (t24 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.m, {
2236
+ return $[57] !== menu || $[58] !== open || $[59] !== popoverProps || $[60] !== t23 ? (t24 = /* @__PURE__ */ jsx(Popover, {
2289
2237
  "data-ui": "MenuButton__popover",
2290
2238
  ...popoverProps,
2291
2239
  content: menu,
@@ -2293,17 +2241,16 @@ const MenuButton = (0, react.forwardRef)(function(props, forwardedRef) {
2293
2241
  children: t23
2294
2242
  }), $[57] = menu, $[58] = open, $[59] = popoverProps, $[60] = t23, $[61] = t24) : t24 = $[61], t24;
2295
2243
  });
2296
- MenuButton.displayName = "ForwardRef(MenuButton)";
2297
- function _temp$1(v) {
2244
+ function _temp$2(v) {
2298
2245
  return !v;
2299
2246
  }
2300
- const animation = styled_components.css`background-image:linear-gradient( to right,var(--card-skeleton-color-from),var(--card-skeleton-color-to),var(--card-skeleton-color-from),var(--card-skeleton-color-from),var(--card-skeleton-color-from) );background-position:100%;background-size:200% 100%;background-attachment:fixed;animation-name:${styled_components.keyframes`0%{background-position:100%;}100%{background-position:-100%;}`};animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-duration:2000ms;`, skeletonStyle = styled_components.css`opacity:${({ $visible }) => +!!$visible};transition:opacity 200ms ease-in;@media screen and (prefers-reduced-motion:no-preference){${({ $animated }) => $animated ? animation : styled_components.css`background-color:var(--card-skeleton-color-from);`}}@media screen and (prefers-reduced-motion:reduce){background-color:var(--card-skeleton-color-from);}`, StyledSkeleton$1 = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
2247
+ const animation = css`background-image:linear-gradient( to right,var(--card-skeleton-color-from),var(--card-skeleton-color-to),var(--card-skeleton-color-from),var(--card-skeleton-color-from),var(--card-skeleton-color-from) );background-position:100%;background-size:200% 100%;background-attachment:fixed;animation-name:${keyframes`0%{background-position:100%;}100%{background-position:-100%;}`};animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-duration:2000ms;`, skeletonStyle = css`opacity:${({ $visible }) => +!!$visible};transition:opacity 200ms ease-in;@media screen and (prefers-reduced-motion:no-preference){${({ $animated }) => $animated ? animation : css`background-color:var(--card-skeleton-color-from);`}}@media screen and (prefers-reduced-motion:reduce){background-color:var(--card-skeleton-color-from);}`, StyledSkeleton$1 = /* @__PURE__ */ styled(Box).withConfig({
2301
2248
  displayName: "StyledSkeleton",
2302
- componentId: "sc-zuj2vq-0"
2303
- })(require_tabList.K, skeletonStyle), Skeleton = (0, react.forwardRef)(function(props, ref) {
2304
- let $ = (0, react_compiler_runtime.c)(16), delay, radius, restProps, t0;
2249
+ componentId: "sc-xewr8x-0"
2250
+ })(responsiveRadiusStyle, skeletonStyle), Skeleton = forwardRef(function Skeleton(props, ref) {
2251
+ let $ = c(16), delay, radius, restProps, t0;
2305
2252
  $[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);
2306
- let animated = t0 !== void 0 && t0, [visible, setVisible] = (0, react.useState)(!delay), t1, t2;
2253
+ let animated = t0 !== void 0 && t0, [visible, setVisible] = useState(!delay), t1, t2;
2307
2254
  $[5] === delay ? (t1 = $[6], t2 = $[7]) : (t1 = () => {
2308
2255
  if (!delay) return;
2309
2256
  let timeout = setTimeout(() => {
@@ -2312,104 +2259,79 @@ const animation = styled_components.css`background-image:linear-gradient( to rig
2312
2259
  return () => {
2313
2260
  clearTimeout(timeout);
2314
2261
  };
2315
- }, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2), (0, react.useEffect)(t1, t2);
2262
+ }, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2), useEffect(t1, t2);
2316
2263
  let t3;
2317
- $[8] === radius ? t3 = $[9] : (t3 = require_tabList.ft(radius), $[8] = radius, $[9] = t3);
2264
+ $[8] === radius ? t3 = $[9] : (t3 = _getArrayProp(radius), $[8] = radius, $[9] = t3);
2318
2265
  let t4 = !delay || visible, t5;
2319
- return $[10] !== animated || $[11] !== ref || $[12] !== restProps || $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton$1, {
2266
+ return $[10] !== animated || $[11] !== ref || $[12] !== restProps || $[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(StyledSkeleton$1, {
2320
2267
  ...restProps,
2321
2268
  $animated: animated,
2322
2269
  $radius: t3,
2323
2270
  $visible: t4,
2324
2271
  ref
2325
2272
  }), $[10] = animated, $[11] = ref, $[12] = restProps, $[13] = t3, $[14] = t4, $[15] = t5) : t5 = $[15], t5;
2326
- });
2327
- Skeleton.displayName = "ForwardRef(Skeleton)";
2328
- const StyledSkeleton = /* @__PURE__ */ (0, styled_components.styled)(Skeleton).withConfig({
2273
+ }), StyledSkeleton = /* @__PURE__ */ styled(Skeleton).withConfig({
2329
2274
  displayName: "StyledSkeleton",
2330
- componentId: "sc-9op362-0"
2275
+ componentId: "sc-d8ims-0"
2331
2276
  })((props) => {
2332
- let { $size, $style } = props, { font, media } = require_theme.X(props.theme), fontStyle = font[$style];
2333
- return require_tabList.mt(media, $size, (sizeIndex) => {
2277
+ let { $size, $style } = props, { font, media } = getTheme_v2(props.theme), fontStyle = font[$style];
2278
+ return _responsive(media, $size, (sizeIndex) => {
2334
2279
  let fontSize = fontStyle.sizes[sizeIndex];
2335
2280
  return { height: fontSize.lineHeight - fontSize.ascenderHeight - fontSize.descenderHeight };
2336
2281
  });
2337
- }), TextSkeleton = (0, react.forwardRef)(function(props, ref) {
2338
- let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
2282
+ }), TextSkeleton = forwardRef(function TextSkeleton(props, ref) {
2283
+ let $ = c(9), restProps, t0;
2339
2284
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2340
2285
  let size = t0 === void 0 ? 2 : t0, t1;
2341
- $[3] === size ? t1 = $[4] : (t1 = require_tabList.ft(size), $[3] = size, $[4] = t1);
2286
+ $[3] === size ? t1 = $[4] : (t1 = _getArrayProp(size), $[3] = size, $[4] = t1);
2342
2287
  let $size = t1, t2;
2343
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton, {
2288
+ return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsx(StyledSkeleton, {
2344
2289
  ...restProps,
2345
2290
  $size,
2346
2291
  ref,
2347
2292
  $style: "text"
2348
2293
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2349
- });
2350
- TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
2351
- /**
2352
- * This API might change. DO NOT USE IN PRODUCTION.
2353
- * @beta
2354
- */
2355
- const LabelSkeleton = (0, react.forwardRef)(function(props, ref) {
2356
- let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
2294
+ }), LabelSkeleton = forwardRef(function LabelSkeleton(props, ref) {
2295
+ let $ = c(9), restProps, t0;
2357
2296
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2358
2297
  let size = t0 === void 0 ? 2 : t0, t1;
2359
- $[3] === size ? t1 = $[4] : (t1 = require_tabList.ft(size), $[3] = size, $[4] = t1);
2298
+ $[3] === size ? t1 = $[4] : (t1 = _getArrayProp(size), $[3] = size, $[4] = t1);
2360
2299
  let $size = t1, t2;
2361
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton, {
2300
+ return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsx(StyledSkeleton, {
2362
2301
  ...restProps,
2363
2302
  $size,
2364
2303
  ref,
2365
2304
  $style: "label"
2366
2305
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2367
- });
2368
- LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
2369
- /**
2370
- * This API might change. DO NOT USE IN PRODUCTION.
2371
- * @beta
2372
- */
2373
- const HeadingSkeleton = (0, react.forwardRef)(function(props, ref) {
2374
- let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
2306
+ }), HeadingSkeleton = forwardRef(function HeadingSkeleton(props, ref) {
2307
+ let $ = c(9), restProps, t0;
2375
2308
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2376
2309
  let size = t0 === void 0 ? 2 : t0, t1;
2377
- $[3] === size ? t1 = $[4] : (t1 = require_tabList.ft(size), $[3] = size, $[4] = t1);
2310
+ $[3] === size ? t1 = $[4] : (t1 = _getArrayProp(size), $[3] = size, $[4] = t1);
2378
2311
  let $size = t1, t2;
2379
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton, {
2312
+ return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsx(StyledSkeleton, {
2380
2313
  ...restProps,
2381
2314
  $size,
2382
2315
  ref,
2383
2316
  $style: "heading"
2384
2317
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2385
- });
2386
- HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
2387
- /**
2388
- * This API might change. DO NOT USE IN PRODUCTION.
2389
- * @beta
2390
- */
2391
- const CodeSkeleton = (0, react.forwardRef)(function(props, ref) {
2392
- let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
2318
+ }), CodeSkeleton = forwardRef(function CodeSkeleton(props, ref) {
2319
+ let $ = c(9), restProps, t0;
2393
2320
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2394
2321
  let size = t0 === void 0 ? 2 : t0, t1;
2395
- $[3] === size ? t1 = $[4] : (t1 = require_tabList.ft(size), $[3] = size, $[4] = t1);
2322
+ $[3] === size ? t1 = $[4] : (t1 = _getArrayProp(size), $[3] = size, $[4] = t1);
2396
2323
  let $size = t1, t2;
2397
- return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSkeleton, {
2324
+ return $[5] !== $size || $[6] !== ref || $[7] !== restProps ? (t2 = /* @__PURE__ */ jsx(StyledSkeleton, {
2398
2325
  ...restProps,
2399
2326
  $size,
2400
2327
  ref,
2401
2328
  $style: "code"
2402
2329
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2403
- });
2404
- CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
2405
- /**
2406
- * @public
2407
- */
2408
- const TabPanel = (0, react.forwardRef)(function(props, ref) {
2409
- let $ = (0, react_compiler_runtime.c)(9), flex, restProps;
2330
+ }), TabPanel = forwardRef(function TabPanel(props, ref) {
2331
+ let $ = c(9), flex, restProps;
2410
2332
  $[0] === props ? (flex = $[1], restProps = $[2]) : ({flex, ...restProps} = props, $[0] = props, $[1] = flex, $[2] = restProps);
2411
2333
  let t0 = props.tabIndex === void 0 ? 0 : props.tabIndex, t1;
2412
- return $[3] !== flex || $[4] !== props.children || $[5] !== ref || $[6] !== restProps || $[7] !== t0 ? (t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
2334
+ return $[3] !== flex || $[4] !== props.children || $[5] !== ref || $[6] !== restProps || $[7] !== t0 ? (t1 = /* @__PURE__ */ jsx(Box, {
2413
2335
  "data-ui": "TabPanel",
2414
2336
  ...restProps,
2415
2337
  flex,
@@ -2418,9 +2340,7 @@ const TabPanel = (0, react.forwardRef)(function(props, ref) {
2418
2340
  tabIndex: t0,
2419
2341
  children: props.children
2420
2342
  }), $[3] = flex, $[4] = props.children, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1) : t1 = $[8], t1;
2421
- });
2422
- TabPanel.displayName = "ForwardRef(TabPanel)";
2423
- const STATUS_CARD_TONE = {
2343
+ }), STATUS_CARD_TONE = {
2424
2344
  error: "critical",
2425
2345
  warning: "caution",
2426
2346
  success: "positive",
@@ -2430,23 +2350,23 @@ const STATUS_CARD_TONE = {
2430
2350
  warning: "caution",
2431
2351
  success: "positive",
2432
2352
  info: "neutral"
2433
- }, TextBox = (0, styled_components.styled)(require_tabList.H).withConfig({
2353
+ }, TextBox = styled(Flex).withConfig({
2434
2354
  displayName: "TextBox",
2435
- componentId: "sc-wezd9c-0"
2436
- })`overflow-x:auto;`, StyledToast = (0, styled_components.styled)(require_tabList.R).withConfig({
2355
+ componentId: "sc-wxn2nh-0"
2356
+ })`overflow-x:auto;`, StyledToast = styled(Card).withConfig({
2437
2357
  displayName: "StyledToast",
2438
- componentId: "sc-wezd9c-1"
2439
- })`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`, LoadingBar = styled_components.styled.div.withConfig({
2358
+ componentId: "sc-wxn2nh-1"
2359
+ })`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`, LoadingBar = styled.div.withConfig({
2440
2360
  displayName: "LoadingBar",
2441
- componentId: "sc-wezd9c-2"
2442
- })`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`, LoadingBarMask = (0, styled_components.styled)(require_tabList.R).withConfig({
2361
+ componentId: "sc-wxn2nh-2"
2362
+ })`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`, LoadingBarMask = styled(Card).withConfig({
2443
2363
  displayName: "LoadingBarMask",
2444
- componentId: "sc-wezd9c-3"
2445
- })`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`, LoadingBarProgress = (0, styled_components.styled)(require_tabList.R).withConfig({
2364
+ componentId: "sc-wxn2nh-3"
2365
+ })`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`, LoadingBarProgress = styled(Card).withConfig({
2446
2366
  displayName: "LoadingBarProgress",
2447
- componentId: "sc-wezd9c-4"
2367
+ componentId: "sc-wxn2nh-4"
2448
2368
  })`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${(props) => {
2449
- let { color } = require_theme.X(props.theme);
2369
+ let { color } = getTheme_v2(props.theme);
2450
2370
  return color.button.default[props.tone].enabled.bg;
2451
2371
  }};`, ROLES = {
2452
2372
  error: "alert",
@@ -2462,9 +2382,9 @@ const STATUS_CARD_TONE = {
2462
2382
  * @public
2463
2383
  */
2464
2384
  function Toast(props) {
2465
- let $ = (0, react_compiler_runtime.c)(50), closable, description, duration, onClose, restProps, status, t0, title, updatedAt;
2385
+ let $ = c(50), closable, description, duration, onClose, restProps, status, t0, title, updatedAt;
2466
2386
  $[0] === props ? (closable = $[1], description = $[2], duration = $[3], onClose = $[4], restProps = $[5], status = $[6], t0 = $[7], title = $[8], updatedAt = $[9]) : ({closable, description, duration, onClose, radius: t0, title, status, updatedAt, ...restProps} = props, $[0] = props, $[1] = closable, $[2] = description, $[3] = duration, $[4] = onClose, $[5] = restProps, $[6] = status, $[7] = t0, $[8] = title, $[9] = updatedAt);
2467
- let radius = t0 === void 0 ? 3 : t0, cardTone = status ? STATUS_CARD_TONE[status] : "default", buttonTone = status ? BUTTON_TONE[status] : "default", role = status ? ROLES[status] : "status", visualDuration = require_tabList.O() ? 0 : .26, t1;
2387
+ let radius = t0 === void 0 ? 3 : t0, cardTone = status ? STATUS_CARD_TONE[status] : "default", buttonTone = status ? BUTTON_TONE[status] : "default", role = status ? ROLES[status] : "status", visualDuration = usePrefersReducedMotion() ? 0 : .26, t1;
2468
2388
  $[10] === visualDuration ? t1 = $[11] : (t1 = visualDuration ? {
2469
2389
  type: "spring",
2470
2390
  visualDuration,
@@ -2477,13 +2397,13 @@ function Toast(props) {
2477
2397
  let animate = t3, t4;
2478
2398
  $[14] === Symbol.for("react.memo_cache_sentinel") ? (t4 = ["hidden", "slideOut"], $[14] = t4) : t4 = $[14];
2479
2399
  let exit = t4, t5 = hasDuration ? "" : void 0, t6;
2480
- $[15] === title ? t6 = $[16] : (t6 = title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
2400
+ $[15] === title ? t6 = $[16] : (t6 = title && /* @__PURE__ */ jsx(Text, {
2481
2401
  size: 1,
2482
2402
  weight: "medium",
2483
2403
  children: title
2484
2404
  }), $[15] = title, $[16] = t6);
2485
2405
  let t7;
2486
- $[17] !== description || $[18] !== transition ? (t7 = description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MotionText, {
2406
+ $[17] !== description || $[18] !== transition ? (t7 = description && /* @__PURE__ */ jsx(MotionText, {
2487
2407
  muted: !0,
2488
2408
  size: 1,
2489
2409
  variants: content,
@@ -2491,20 +2411,20 @@ function Toast(props) {
2491
2411
  children: description
2492
2412
  }), $[17] = description, $[18] = transition, $[19] = t7) : t7 = $[19];
2493
2413
  let t8;
2494
- $[20] !== t6 || $[21] !== t7 ? (t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextBox, {
2414
+ $[20] !== t6 || $[21] !== t7 ? (t8 = /* @__PURE__ */ jsx(TextBox, {
2495
2415
  flex: 1,
2496
2416
  padding: 3,
2497
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_tabList.p, {
2417
+ children: /* @__PURE__ */ jsxs(Stack, {
2498
2418
  space: 3,
2499
2419
  children: [t6, t7]
2500
2420
  })
2501
2421
  }), $[20] = t6, $[21] = t7, $[22] = t8) : t8 = $[22];
2502
2422
  let t9;
2503
- $[23] !== buttonTone || $[24] !== closable || $[25] !== onClose ? (t9 = closable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
2423
+ $[23] !== buttonTone || $[24] !== closable || $[25] !== onClose ? (t9 = closable && /* @__PURE__ */ jsx(Box, {
2504
2424
  padding: 1,
2505
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.z, {
2425
+ children: /* @__PURE__ */ jsx(Button, {
2506
2426
  as: "button",
2507
- icon: _sanity_icons_Close.CloseIcon,
2427
+ icon: CloseIcon,
2508
2428
  mode: "bleed",
2509
2429
  padding: 2,
2510
2430
  tone: buttonTone,
@@ -2513,20 +2433,20 @@ function Toast(props) {
2513
2433
  })
2514
2434
  }), $[23] = buttonTone, $[24] = closable, $[25] = onClose, $[26] = t9) : t9 = $[26];
2515
2435
  let t10;
2516
- $[27] !== t8 || $[28] !== t9 || $[29] !== transition ? (t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionFlex, {
2436
+ $[27] !== t8 || $[28] !== t9 || $[29] !== transition ? (t10 = /* @__PURE__ */ jsxs(MotionFlex, {
2517
2437
  align: "flex-start",
2518
2438
  variants: content,
2519
2439
  transition,
2520
2440
  children: [t8, t9]
2521
2441
  }), $[27] = t8, $[28] = t9, $[29] = transition, $[30] = t10) : t10 = $[30];
2522
2442
  let t11;
2523
- $[31] !== cardTone || $[32] !== duration || $[33] !== hasDuration || $[34] !== onClose || $[35] !== radius || $[36] !== transition || $[37] !== updatedAt || $[38] !== visualDuration ? (t11 = hasDuration && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionLoadingBar, {
2443
+ $[31] !== cardTone || $[32] !== duration || $[33] !== hasDuration || $[34] !== onClose || $[35] !== radius || $[36] !== transition || $[37] !== updatedAt || $[38] !== visualDuration ? (t11 = hasDuration && /* @__PURE__ */ jsxs(MotionLoadingBar, {
2524
2444
  variants: content,
2525
2445
  transition,
2526
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadingBarMask, {
2446
+ children: [/* @__PURE__ */ jsx(LoadingBarMask, {
2527
2447
  tone: cardTone,
2528
2448
  radius
2529
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MotionLoadingBarProgress, {
2449
+ }), /* @__PURE__ */ jsx(MotionLoadingBarProgress, {
2530
2450
  tone: cardTone,
2531
2451
  initial: { scaleX: 0 },
2532
2452
  animate: { scaleX: 1 },
@@ -2539,7 +2459,7 @@ function Toast(props) {
2539
2459
  }, `progress-${updatedAt}`)]
2540
2460
  }), $[31] = cardTone, $[32] = duration, $[33] = hasDuration, $[34] = onClose, $[35] = radius, $[36] = transition, $[37] = updatedAt, $[38] = visualDuration, $[39] = t11) : t11 = $[39];
2541
2461
  let t12;
2542
- return $[40] !== cardTone || $[41] !== radius || $[42] !== restProps || $[43] !== role || $[44] !== t10 || $[45] !== t11 || $[46] !== t5 || $[47] !== transition || $[48] !== visualDuration ? (t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MotionToast, {
2462
+ return $[40] !== cardTone || $[41] !== radius || $[42] !== restProps || $[43] !== role || $[44] !== t10 || $[45] !== t11 || $[46] !== t5 || $[47] !== transition || $[48] !== visualDuration ? (t12 = /* @__PURE__ */ jsxs(MotionToast, {
2543
2463
  "data-ui": "Toast",
2544
2464
  role,
2545
2465
  ...restProps,
@@ -2558,7 +2478,6 @@ function Toast(props) {
2558
2478
  children: [t10, t11]
2559
2479
  }), $[40] = cardTone, $[41] = radius, $[42] = restProps, $[43] = role, $[44] = t10, $[45] = t11, $[46] = t5, $[47] = transition, $[48] = visualDuration, $[49] = t12) : t12 = $[49], t12;
2560
2480
  }
2561
- Toast.displayName = "Toast";
2562
2481
  const container = {
2563
2482
  initial: {
2564
2483
  y: 32,
@@ -2586,23 +2505,29 @@ const container = {
2586
2505
  initial: { willChange: "transform" },
2587
2506
  hidden: { opacity: 0 },
2588
2507
  visible: { opacity: 1 }
2589
- }, MotionToast = motion_react.motion.create(StyledToast), MotionFlex = motion_react.motion.create(require_tabList.H), MotionText = motion_react.motion.create(require_tabList.U), MotionLoadingBar = motion_react.motion.create(LoadingBar), MotionLoadingBarProgress = motion_react.motion.create(LoadingBarProgress);
2508
+ }, MotionToast = motion.create(StyledToast), MotionFlex = motion.create(Flex), MotionText = motion.create(Text), MotionLoadingBar = motion.create(LoadingBar), MotionLoadingBarProgress = motion.create(LoadingBarProgress);
2590
2509
  /**
2591
2510
  * Some components should only render after mounting to the DOM, and not be rendered at all during SSR renderToString or equivalent.
2592
2511
  * @public
2593
2512
  */
2594
2513
  function useMounted() {
2595
- return (0, react.useSyncExternalStore)(subscribe, () => !0, () => !1);
2514
+ return useSyncExternalStore(subscribe, _temp$1, _temp2);
2515
+ }
2516
+ function _temp2() {
2517
+ return !1;
2518
+ }
2519
+ function _temp$1() {
2520
+ return !0;
2596
2521
  }
2597
- const subscribe = () => () => {}, ToastContext = require_tabList.st("@sanity/ui/context/toast", null);
2522
+ const subscribe = () => () => {}, ToastContext = createGlobalScopedContext("@sanity/ui/context/toast", null);
2598
2523
  /**
2599
2524
  * @internal
2600
2525
  */
2601
2526
  function ToastLayer(props) {
2602
- let $ = (0, react_compiler_runtime.c)(9), { children, padding: t0, paddingX, paddingY, gap: t1 } = props, padding = t0 === void 0 ? 4 : t0, gap = t1 === void 0 ? 3 : t1, { zIndex } = require_tabList.y(), t2;
2527
+ let $ = c(9), { children, padding: t0, paddingX, paddingY, gap: t1 } = props, padding = t0 === void 0 ? 4 : t0, gap = t1 === void 0 ? 3 : t1, { zIndex } = useLayer(), t2;
2603
2528
  $[0] === zIndex ? t2 = $[1] : (t2 = { zIndex }, $[0] = zIndex, $[1] = t2);
2604
2529
  let t3;
2605
- return $[2] !== children || $[3] !== gap || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== t2 ? (t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLayer, {
2530
+ return $[2] !== children || $[3] !== gap || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== t2 ? (t3 = /* @__PURE__ */ jsx(StyledLayer, {
2606
2531
  forwardedAs: "ul",
2607
2532
  "data-ui": "ToastProvider",
2608
2533
  padding,
@@ -2614,10 +2539,9 @@ function ToastLayer(props) {
2614
2539
  children
2615
2540
  }), $[2] = children, $[3] = gap, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = t2, $[8] = t3) : t3 = $[8], t3;
2616
2541
  }
2617
- ToastLayer.displayName = "ToastLayer";
2618
- const StyledLayer = (0, styled_components.styled)(require_tabList.D).withConfig({
2542
+ const StyledLayer = styled(Grid).withConfig({
2619
2543
  displayName: "StyledLayer",
2620
- componentId: "sc-8z432x-0"
2544
+ componentId: "sc-chanfh-0"
2621
2545
  })`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`;
2622
2546
  let toastId = 0;
2623
2547
  /** @internal */
@@ -2628,17 +2552,16 @@ function generateToastId() {
2628
2552
  * @public
2629
2553
  */
2630
2554
  function ToastProvider(props) {
2631
- let $ = (0, react_compiler_runtime.c)(13), { children, padding, paddingX, paddingY, gap, zOffset: t0 } = props, zOffset = t0 === void 0 ? 1 : t0, t1;
2555
+ let $ = c(13), { children, padding, paddingX, paddingY, gap, zOffset: t0 } = props, zOffset = t0 === void 0 ? 1 : t0, t1;
2632
2556
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
2633
- let [state, setState] = (0, react.useState)(t1), mounted = useMounted(), t2;
2634
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
2635
- version: 0,
2636
- push: (params) => {
2557
+ let [state, setState] = useState(t1), mounted = useMounted(), t2;
2558
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
2559
+ let push = (params) => {
2637
2560
  let id = params.id || generateToastId(), duration = params.duration || 5e3;
2638
- return (0, react.startTransition)(() => {
2561
+ return startTransition(() => {
2639
2562
  setState((prevState) => {
2640
2563
  if (duration === .01) return prevState.filter((toast) => toast.id !== id);
2641
- let dismiss = () => (0, react.startTransition)(() => setState((currentState) => currentState.filter((toast_0) => toast_0.id !== id)));
2564
+ let dismiss = () => startTransition(() => setState((currentState) => currentState.filter((toast_0) => toast_0.id !== id)));
2642
2565
  return [...prevState.filter((toast_1) => toast_1.id !== id), {
2643
2566
  dismiss,
2644
2567
  id,
@@ -2650,17 +2573,21 @@ function ToastProvider(props) {
2650
2573
  }];
2651
2574
  });
2652
2575
  }), id;
2653
- }
2654
- }, $[1] = t2) : t2 = $[1];
2576
+ };
2577
+ t2 = {
2578
+ version: 0,
2579
+ push
2580
+ }, $[1] = t2;
2581
+ } else t2 = $[1];
2655
2582
  let value = t2, t3;
2656
- $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.b, {
2583
+ $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ jsx(LayerProvider, {
2657
2584
  zOffset,
2658
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToastLayer, {
2585
+ children: /* @__PURE__ */ jsx(ToastLayer, {
2659
2586
  padding,
2660
2587
  paddingX,
2661
2588
  paddingY,
2662
2589
  gap,
2663
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.AnimatePresence, {
2590
+ children: /* @__PURE__ */ jsx(AnimatePresence, {
2664
2591
  initial: !1,
2665
2592
  mode: "popLayout",
2666
2593
  children: state.map(_temp)
@@ -2668,14 +2595,14 @@ function ToastProvider(props) {
2668
2595
  })
2669
2596
  }), $[2] = gap, $[3] = mounted, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = state, $[8] = zOffset, $[9] = t3) : t3 = $[9];
2670
2597
  let t4;
2671
- return $[10] !== children || $[11] !== t3 ? (t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ToastContext.Provider, {
2598
+ return $[10] !== children || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxs(ToastContext.Provider, {
2672
2599
  value,
2673
2600
  children: [children, t3]
2674
2601
  }), $[10] = children, $[11] = t3, $[12] = t4) : t4 = $[12], t4;
2675
2602
  }
2676
2603
  function _temp(t0) {
2677
2604
  let { dismiss: dismiss_0, id: id_0, params: params_0, updatedAt } = t0;
2678
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Toast, {
2605
+ return /* @__PURE__ */ jsx(Toast, {
2679
2606
  closable: params_0.closable,
2680
2607
  description: params_0.description,
2681
2608
  onClose: dismiss_0,
@@ -2685,14 +2612,13 @@ function _temp(t0) {
2685
2612
  updatedAt
2686
2613
  }, id_0);
2687
2614
  }
2688
- ToastProvider.displayName = "ToastProvider";
2689
2615
  /**
2690
2616
  * @public
2691
2617
  */
2692
2618
  function useToast() {
2693
- let value = (0, react.useContext)(ToastContext);
2619
+ let value = useContext(ToastContext);
2694
2620
  if (!value) throw Error("useToast(): missing context value");
2695
- if (!require_tabList.S(value) || value.version !== 0) throw Error("useToast(): the context value is not compatible");
2621
+ if (!isRecord(value) || value.version !== 0) throw Error("useToast(): the context value is not compatible");
2696
2622
  return value;
2697
2623
  }
2698
2624
  function _findPrevItemElement(state, itemElements, focusedElement) {
@@ -2737,25 +2663,25 @@ function _focusItemElement(el) {
2737
2663
  /**
2738
2664
  * @internal
2739
2665
  */
2740
- const TreeContext = require_tabList.st("@sanity/ui/context/tree", null), Tree = (0, react.forwardRef)(function(props, forwardedRef) {
2741
- let $ = (0, react_compiler_runtime.c)(38), children, gap, onFocus, restProps, t0;
2666
+ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null), Tree = forwardRef(function Tree(props, forwardedRef) {
2667
+ let $ = c(38), children, gap, onFocus, restProps, t0;
2742
2668
  $[0] === props ? (children = $[1], gap = $[2], onFocus = $[3], restProps = $[4], t0 = $[5]) : ({children, gap, space: t0, onFocus, ...restProps} = props, $[0] = props, $[1] = children, $[2] = gap, $[3] = onFocus, $[4] = restProps, $[5] = t0);
2743
- let spacing = gap === void 0 ? t0 === void 0 ? 1 : t0 : gap, ref = (0, react.useRef)(null), [focusedElement, setFocusedElement] = (0, react.useState)(null), focusedElementRef = (0, react.useRef)(focusedElement), t1;
2669
+ let spacing = gap === void 0 ? t0 === void 0 ? 1 : t0 : gap, ref = useRef(null), [focusedElement, setFocusedElement] = useState(null), focusedElementRef = useRef(focusedElement), t1;
2744
2670
  $[6] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[6] = t1) : t1 = $[6];
2745
2671
  let path = t1, t2;
2746
2672
  $[7] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[7] = t2) : t2 = $[7];
2747
- let [itemElements, setItemElements] = (0, react.useState)(t2), t3;
2673
+ let [itemElements, setItemElements] = useState(t2), t3;
2748
2674
  $[8] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {}, $[8] = t3) : t3 = $[8];
2749
- let [state, setState] = (0, react.useState)(t3), stateRef = (0, react.useRef)(state), t4;
2750
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[9] = t4) : t4 = $[9], (0, react.useImperativeHandle)(forwardedRef, t4);
2675
+ let [state, setState] = useState(t3), stateRef = useRef(state), t4;
2676
+ $[9] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[9] = t4) : t4 = $[9], useImperativeHandle(forwardedRef, t4);
2751
2677
  let t5, t6;
2752
2678
  $[10] === focusedElement ? (t5 = $[11], t6 = $[12]) : (t5 = () => {
2753
2679
  focusedElementRef.current = focusedElement;
2754
- }, t6 = [focusedElement], $[10] = focusedElement, $[11] = t5, $[12] = t6), (0, react.useEffect)(t5, t6);
2680
+ }, t6 = [focusedElement], $[10] = focusedElement, $[11] = t5, $[12] = t6), useEffect(t5, t6);
2755
2681
  let t7, t8;
2756
2682
  $[13] === state ? (t7 = $[14], t8 = $[15]) : (t7 = () => {
2757
2683
  stateRef.current = state;
2758
- }, t8 = [state], $[13] = state, $[14] = t7, $[15] = t8), (0, react.useEffect)(t7, t8);
2684
+ }, t8 = [state], $[13] = state, $[14] = t7, $[15] = t8), useEffect(t7, t8);
2759
2685
  let t9;
2760
2686
  $[16] === Symbol.for("react.memo_cache_sentinel") ? (t9 = (element, path_0, expanded, selected) => (setState((s) => ({
2761
2687
  ...s,
@@ -2863,9 +2789,9 @@ const TreeContext = require_tabList.st("@sanity/ui/context/tree", null), Tree =
2863
2789
  setItemElements(_itemElements);
2864
2790
  }, $[26] = t15) : t15 = $[26];
2865
2791
  let t16;
2866
- $[27] === children ? t16 = $[28] : (t16 = [children], $[27] = children, $[28] = t16), (0, react.useEffect)(t15, t16);
2792
+ $[27] === children ? t16 = $[28] : (t16 = [children], $[27] = children, $[28] = t16), useEffect(t15, t16);
2867
2793
  let t17;
2868
- $[29] !== children || $[30] !== handleFocus || $[31] !== handleKeyDown || $[32] !== restProps || $[33] !== spacing ? (t17 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.p, {
2794
+ $[29] !== children || $[30] !== handleFocus || $[31] !== handleKeyDown || $[32] !== restProps || $[33] !== spacing ? (t17 = /* @__PURE__ */ jsx(Stack, {
2869
2795
  as: "ul",
2870
2796
  "data-ui": "Tree",
2871
2797
  ...restProps,
@@ -2877,36 +2803,35 @@ const TreeContext = require_tabList.st("@sanity/ui/context/tree", null), Tree =
2877
2803
  children
2878
2804
  }), $[29] = children, $[30] = handleFocus, $[31] = handleKeyDown, $[32] = restProps, $[33] = spacing, $[34] = t17) : t17 = $[34];
2879
2805
  let t18;
2880
- return $[35] !== contextValue || $[36] !== t17 ? (t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeContext.Provider, {
2806
+ return $[35] !== contextValue || $[36] !== t17 ? (t18 = /* @__PURE__ */ jsx(TreeContext.Provider, {
2881
2807
  value: contextValue,
2882
2808
  children: t17
2883
2809
  }), $[35] = contextValue, $[36] = t17, $[37] = t18) : t18 = $[37], t18;
2884
2810
  });
2885
- Tree.displayName = "ForwardRef(Tree)";
2886
2811
  function treeItemRootStyle() {
2887
- return styled_components.css`&[role='none'] > [role='treeitem']{outline:none;cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);&:focus{position:relative;}}&[role='treeitem']{outline:none;& > div{cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);}&:focus > div{position:relative;}}`;
2812
+ return css`&[role='none'] > [role='treeitem']{outline:none;cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);&:focus{position:relative;}}&[role='treeitem']{outline:none;& > div{cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);}&:focus > div{position:relative;}}`;
2888
2813
  }
2889
2814
  function treeItemRootColorStyle(props) {
2890
- let { color } = require_theme.X(props.theme), tone = color.selectable.default;
2891
- return styled_components.css`&[role='none']{& > [role='treeitem']{${require_tabList.B(color, tone.enabled)}}&[data-selected] > [role='treeitem']{${require_tabList.B(color, tone.pressed)}}@media (hover:hover){&:not([data-selected]) > [role='treeitem']:not(:focus):hover{${require_tabList.B(color, tone.hovered)}}& > [role='treeitem']:focus{${require_tabList.B(color, tone.selected)}}}}&[role='treeitem']{& > [data-ui='TreeItem__box']{${require_tabList.B(color, tone.enabled)}}&[data-selected] > [data-ui='TreeItem__box']{${require_tabList.B(color, tone.pressed)}}@media (hover:hover){&:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover{${require_tabList.B(color, tone.hovered)}}&:focus > [data-ui='TreeItem__box']{${require_tabList.B(color, tone.selected)}}}}`;
2815
+ let { color } = getTheme_v2(props.theme), tone = color.selectable.default;
2816
+ return css`&[role='none']{& > [role='treeitem']{${_cardColorStyle(color, tone.enabled)}}&[data-selected] > [role='treeitem']{${_cardColorStyle(color, tone.pressed)}}@media (hover:hover){&:not([data-selected]) > [role='treeitem']:not(:focus):hover{${_cardColorStyle(color, tone.hovered)}}& > [role='treeitem']:focus{${_cardColorStyle(color, tone.selected)}}}}&[role='treeitem']{& > [data-ui='TreeItem__box']{${_cardColorStyle(color, tone.enabled)}}&[data-selected] > [data-ui='TreeItem__box']{${_cardColorStyle(color, tone.pressed)}}@media (hover:hover){&:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover{${_cardColorStyle(color, tone.hovered)}}&:focus > [data-ui='TreeItem__box']{${_cardColorStyle(color, tone.selected)}}}}`;
2892
2817
  }
2893
2818
  function treeItemBoxStyle(props) {
2894
- let { $level } = props, { space } = require_theme.X(props.theme);
2895
- return styled_components.css`padding-left:${require_tabList.ht(space[2] * $level)};&[data-as='a']{text-decoration:none;}`;
2819
+ let { $level } = props, { space } = getTheme_v2(props.theme);
2820
+ return css`padding-left:${rem(space[2] * $level)};&[data-as='a']{text-decoration:none;}`;
2896
2821
  }
2897
2822
  /**
2898
2823
  * @beta
2899
2824
  */
2900
2825
  function useTree() {
2901
- let tree = (0, react.useContext)(TreeContext);
2826
+ let tree = useContext(TreeContext);
2902
2827
  if (!tree) throw Error("Tree: missing context value");
2903
2828
  return tree;
2904
2829
  }
2905
2830
  function TreeGroup(props) {
2906
- let $ = (0, react_compiler_runtime.c)(9), children, restProps, t0;
2831
+ let $ = c(9), children, restProps, t0;
2907
2832
  $[0] === props ? (children = $[1], restProps = $[2], t0 = $[3]) : ({children, expanded: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0);
2908
2833
  let expanded = t0 !== void 0 && t0, tree = useTree(), t1 = !expanded, t2;
2909
- return $[4] !== children || $[5] !== restProps || $[6] !== t1 || $[7] !== tree.gap ? (t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.p, {
2834
+ return $[4] !== children || $[5] !== restProps || $[6] !== t1 || $[7] !== tree.gap ? (t2 = /* @__PURE__ */ jsx(Stack, {
2910
2835
  as: "ul",
2911
2836
  "data-ui": "TreeGroup",
2912
2837
  ...restProps,
@@ -2917,28 +2842,28 @@ function TreeGroup(props) {
2917
2842
  children
2918
2843
  }), $[4] = children, $[5] = restProps, $[6] = t1, $[7] = tree.gap, $[8] = t2) : t2 = $[8], t2;
2919
2844
  }
2920
- const StyledTreeItem = /* @__PURE__ */ styled_components.styled.li.withConfig({
2845
+ const StyledTreeItem = /* @__PURE__ */ styled.li.withConfig({
2921
2846
  displayName: "StyledTreeItem",
2922
- componentId: "sc-arsnlr-0"
2923
- })(treeItemRootStyle, treeItemRootColorStyle), TreeItemBox = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).attrs({ forwardedAs: "a" }).withConfig({
2847
+ componentId: "sc-lxy9gh-0"
2848
+ })(treeItemRootStyle, treeItemRootColorStyle), TreeItemBox = /* @__PURE__ */ styled(Box).attrs({ forwardedAs: "a" }).withConfig({
2924
2849
  displayName: "TreeItemBox",
2925
- componentId: "sc-arsnlr-1"
2926
- })(treeItemBoxStyle), ToggleArrowText = (0, styled_components.styled)(require_tabList.U).withConfig({
2850
+ componentId: "sc-lxy9gh-1"
2851
+ })(treeItemBoxStyle), ToggleArrowText = styled(Text).withConfig({
2927
2852
  displayName: "ToggleArrowText",
2928
- componentId: "sc-arsnlr-2"
2853
+ componentId: "sc-lxy9gh-2"
2929
2854
  })`& > svg{transition:transform 100ms;}`;
2930
2855
  /**
2931
2856
  * This API might change. DO NOT USE IN PRODUCTION.
2932
2857
  * @beta
2933
2858
  */
2934
2859
  function TreeItem(props) {
2935
- let $ = (0, react_compiler_runtime.c)(114), IconComponent, children, gap, href, idProp, linkAs, muted, onClick, restProps, t0, t1, t2, t3, t4, text, weight;
2860
+ let $ = c(114), IconComponent, children, gap, href, idProp, linkAs, muted, onClick, restProps, t0, t1, t2, t3, t4, text, weight;
2936
2861
  $[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);
2937
- 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] = (0, react.useState)(null), t5;
2862
+ 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;
2938
2863
  $[17] === Symbol.for("react.memo_cache_sentinel") ? (t5 = (node) => {
2939
- (0, react.startTransition)(() => _setRootElement(node));
2864
+ startTransition(() => _setRootElement(node));
2940
2865
  }, $[17] = t5) : t5 = $[17];
2941
- let setRootElement = t5, treeitemRef = (0, react.useRef)(null), tree = useTree(), { path, registerItem, setExpanded, setFocusedElement } = tree, _id = (0, react.useId)(), id = idProp || _id, t6, t7;
2866
+ let setRootElement = t5, treeitemRef = useRef(null), tree = useTree(), { path, registerItem, setExpanded, setFocusedElement } = tree, _id = useId(), id = idProp || _id, t6, t7;
2942
2867
  if ($[18] !== id || $[19] !== path) {
2943
2868
  let itemPath = path.concat([id || ""]);
2944
2869
  t6 = itemPath, t7 = itemPath.join("/"), $[18] = id, $[19] = path, $[20] = t6, $[21] = t7;
@@ -2970,36 +2895,36 @@ function TreeItem(props) {
2970
2895
  registerItem,
2971
2896
  rootElement,
2972
2897
  selected
2973
- ], $[39] = expanded, $[40] = itemKey, $[41] = registerItem, $[42] = rootElement, $[43] = selected, $[44] = t13, $[45] = t14) : (t13 = $[44], t14 = $[45]), (0, react.useEffect)(t13, t14);
2898
+ ], $[39] = expanded, $[40] = itemKey, $[41] = registerItem, $[42] = rootElement, $[43] = selected, $[44] = t13, $[45] = t14) : (t13 = $[44], t14 = $[45]), useEffect(t13, t14);
2974
2899
  let t15 = IconComponent || children ? "visible" : "hidden", t16;
2975
2900
  $[46] === t15 ? t16 = $[47] : (t16 = {
2976
2901
  visibility: t15,
2977
2902
  pointerEvents: "none"
2978
2903
  }, $[46] = t15, $[47] = t16);
2979
2904
  let t17;
2980
- $[48] !== IconComponent || $[49] !== fontSize || $[50] !== muted || $[51] !== weight ? (t17 = IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
2905
+ $[48] !== IconComponent || $[49] !== fontSize || $[50] !== muted || $[51] !== weight ? (t17 = IconComponent && /* @__PURE__ */ jsx(Text, {
2981
2906
  muted,
2982
2907
  size: fontSize,
2983
2908
  weight,
2984
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconComponent, {})
2909
+ children: /* @__PURE__ */ jsx(IconComponent, {})
2985
2910
  }), $[48] = IconComponent, $[49] = fontSize, $[50] = muted, $[51] = weight, $[52] = t17) : t17 = $[52];
2986
2911
  let t18;
2987
- $[53] !== IconComponent || $[54] !== expanded || $[55] !== fontSize || $[56] !== muted || $[57] !== weight ? (t18 = !IconComponent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToggleArrowText, {
2912
+ $[53] !== IconComponent || $[54] !== expanded || $[55] !== fontSize || $[56] !== muted || $[57] !== weight ? (t18 = !IconComponent && /* @__PURE__ */ jsx(ToggleArrowText, {
2988
2913
  muted,
2989
2914
  size: fontSize,
2990
2915
  weight,
2991
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_sanity_icons_ToggleArrowRight.ToggleArrowRightIcon, { style: { transform: expanded ? "rotate(90deg)" : void 0 } })
2916
+ children: /* @__PURE__ */ jsx(ToggleArrowRightIcon, { style: { transform: expanded ? "rotate(90deg)" : void 0 } })
2992
2917
  }), $[53] = IconComponent, $[54] = expanded, $[55] = fontSize, $[56] = muted, $[57] = weight, $[58] = t18) : t18 = $[58];
2993
2918
  let t19;
2994
- $[59] !== spacing || $[60] !== t16 || $[61] !== t17 || $[62] !== t18 ? (t19 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_tabList.W, {
2919
+ $[59] !== spacing || $[60] !== t16 || $[61] !== t17 || $[62] !== t18 ? (t19 = /* @__PURE__ */ jsxs(Box, {
2995
2920
  marginRight: spacing,
2996
2921
  style: t16,
2997
2922
  children: [t17, t18]
2998
2923
  }), $[59] = spacing, $[60] = t16, $[61] = t17, $[62] = t18, $[63] = t19) : t19 = $[63];
2999
2924
  let t20;
3000
- $[64] !== fontSize || $[65] !== muted || $[66] !== text || $[67] !== weight ? (t20 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.W, {
2925
+ $[64] !== fontSize || $[65] !== muted || $[66] !== text || $[67] !== weight ? (t20 = /* @__PURE__ */ jsx(Box, {
3001
2926
  flex: 1,
3002
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.U, {
2927
+ children: /* @__PURE__ */ jsx(Text, {
3003
2928
  muted,
3004
2929
  size: fontSize,
3005
2930
  textOverflow: "ellipsis",
@@ -3008,14 +2933,14 @@ function TreeItem(props) {
3008
2933
  })
3009
2934
  }), $[64] = fontSize, $[65] = muted, $[66] = text, $[67] = weight, $[68] = t20) : t20 = $[68];
3010
2935
  let t21;
3011
- $[69] !== padding || $[70] !== t19 || $[71] !== t20 ? (t21 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_tabList.H, {
2936
+ $[69] !== padding || $[70] !== t19 || $[71] !== t20 ? (t21 = /* @__PURE__ */ jsxs(Flex, {
3012
2937
  padding,
3013
2938
  children: [t19, t20]
3014
2939
  }), $[69] = padding, $[70] = t19, $[71] = t20, $[72] = t21) : t21 = $[72];
3015
2940
  let content = t21;
3016
2941
  if (href) {
3017
2942
  let t22 = selected ? "" : void 0, t23;
3018
- $[73] !== content || $[74] !== expanded || $[75] !== href || $[76] !== linkAs || $[77] !== tabIndex || $[78] !== tree.level ? (t23 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeItemBox, {
2943
+ $[73] !== content || $[74] !== expanded || $[75] !== href || $[76] !== linkAs || $[77] !== tabIndex || $[78] !== tree.level ? (t23 = /* @__PURE__ */ jsx(TreeItemBox, {
3019
2944
  $level: tree.level,
3020
2945
  "aria-expanded": expanded,
3021
2946
  as: linkAs,
@@ -3027,17 +2952,17 @@ function TreeItem(props) {
3027
2952
  children: content
3028
2953
  }), $[73] = content, $[74] = expanded, $[75] = href, $[76] = linkAs, $[77] = tabIndex, $[78] = tree.level, $[79] = t23) : t23 = $[79];
3029
2954
  let t24;
3030
- $[80] !== children || $[81] !== expanded ? (t24 = children && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeGroup, {
2955
+ $[80] !== children || $[81] !== expanded ? (t24 = children && /* @__PURE__ */ jsx(TreeGroup, {
3031
2956
  hidden: !expanded,
3032
2957
  children
3033
2958
  }), $[80] = children, $[81] = expanded, $[82] = t24) : t24 = $[82];
3034
2959
  let t25;
3035
- $[83] !== contextValue || $[84] !== t24 ? (t25 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeContext.Provider, {
2960
+ $[83] !== contextValue || $[84] !== t24 ? (t25 = /* @__PURE__ */ jsx(TreeContext.Provider, {
3036
2961
  value: contextValue,
3037
2962
  children: t24
3038
2963
  }), $[83] = contextValue, $[84] = t24, $[85] = t25) : t25 = $[85];
3039
2964
  let t26;
3040
- return $[86] !== handleClick || $[87] !== id || $[88] !== itemKey || $[89] !== restProps || $[90] !== t22 || $[91] !== t23 || $[92] !== t25 ? (t26 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledTreeItem, {
2965
+ return $[86] !== handleClick || $[87] !== id || $[88] !== itemKey || $[89] !== restProps || $[90] !== t22 || $[91] !== t23 || $[92] !== t25 ? (t26 = /* @__PURE__ */ jsxs(StyledTreeItem, {
3041
2966
  "data-selected": t22,
3042
2967
  "data-tree-id": id,
3043
2968
  "data-tree-key": itemKey,
@@ -3050,24 +2975,24 @@ function TreeItem(props) {
3050
2975
  }), $[86] = handleClick, $[87] = id, $[88] = itemKey, $[89] = restProps, $[90] = t22, $[91] = t23, $[92] = t25, $[93] = t26) : t26 = $[93], t26;
3051
2976
  }
3052
2977
  let t22 = selected ? "" : void 0, t23;
3053
- $[94] !== content || $[95] !== tree.level ? (t23 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeItemBox, {
2978
+ $[94] !== content || $[95] !== tree.level ? (t23 = /* @__PURE__ */ jsx(TreeItemBox, {
3054
2979
  $level: tree.level,
3055
2980
  as: "div",
3056
2981
  "data-ui": "TreeItem__box",
3057
2982
  children: content
3058
2983
  }), $[94] = content, $[95] = tree.level, $[96] = t23) : t23 = $[96];
3059
2984
  let t24;
3060
- $[97] !== children || $[98] !== expanded ? (t24 = children && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeGroup, {
2985
+ $[97] !== children || $[98] !== expanded ? (t24 = children && /* @__PURE__ */ jsx(TreeGroup, {
3061
2986
  expanded,
3062
2987
  children
3063
2988
  }), $[97] = children, $[98] = expanded, $[99] = t24) : t24 = $[99];
3064
2989
  let t25;
3065
- $[100] !== contextValue || $[101] !== t24 ? (t25 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TreeContext.Provider, {
2990
+ $[100] !== contextValue || $[101] !== t24 ? (t25 = /* @__PURE__ */ jsx(TreeContext.Provider, {
3066
2991
  value: contextValue,
3067
2992
  children: t24
3068
2993
  }), $[100] = contextValue, $[101] = t24, $[102] = t25) : t25 = $[102];
3069
2994
  let t26;
3070
- return $[103] !== expanded || $[104] !== handleClick || $[105] !== handleKeyDown || $[106] !== id || $[107] !== itemKey || $[108] !== restProps || $[109] !== t22 || $[110] !== t23 || $[111] !== t25 || $[112] !== tabIndex ? (t26 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledTreeItem, {
2995
+ return $[103] !== expanded || $[104] !== handleClick || $[105] !== handleKeyDown || $[106] !== id || $[107] !== itemKey || $[108] !== restProps || $[109] !== t22 || $[110] !== t23 || $[111] !== t25 || $[112] !== tabIndex ? (t26 = /* @__PURE__ */ jsxs(StyledTreeItem, {
3071
2996
  "data-selected": t22,
3072
2997
  "data-ui": "TreeItem",
3073
2998
  "data-tree-id": id,
@@ -3082,6 +3007,6 @@ function TreeItem(props) {
3082
3007
  children: [t23, t25]
3083
3008
  }), $[103] = expanded, $[104] = handleClick, $[105] = handleKeyDown, $[106] = id, $[107] = itemKey, $[108] = restProps, $[109] = t22, $[110] = t23, $[111] = t25, $[112] = tabIndex, $[113] = t26) : t26 = $[113], t26;
3084
3009
  }
3085
- TreeItem.displayName = "TreeItem", exports.Arrow = require_tabList.w, exports.Autocomplete = Autocomplete, exports.Avatar = Avatar, exports.AvatarCounter = AvatarCounter, exports.AvatarStack = AvatarStack, exports.Badge = Badge, exports.BoundaryElementProvider = BoundaryElementProvider, exports.Box = require_tabList.W, exports.Breadcrumbs = Breadcrumbs, exports.Button = require_tabList.z, exports.Card = require_tabList.R, exports.Checkbox = Checkbox, exports.Code = Code, exports.CodeSkeleton = CodeSkeleton, exports.ConditionalWrapper = ConditionalWrapper, exports.Container = Container, exports.Dialog = Dialog, exports.DialogContext = DialogContext, exports.DialogProvider = DialogProvider, exports.ElementQuery = ElementQuery, exports.ErrorBoundary = ErrorBoundary, exports.Flex = require_tabList.H, exports.Grid = require_tabList.D, exports.Heading = Heading, exports.HeadingSkeleton = HeadingSkeleton, exports.Hotkeys = require_tabList.s, exports.Inline = require_tabList.E, exports.KBD = require_tabList.T, exports.Label = Label, exports.LabelSkeleton = LabelSkeleton, exports.Layer = require_tabList.v, exports.LayerProvider = require_tabList.b, exports.Menu = require_tabList.o, exports.MenuButton = MenuButton, exports.MenuDivider = require_tabList.a, exports.MenuGroup = require_tabList.i, exports.MenuItem = require_tabList.r, exports.Popover = require_tabList.m, exports.Portal = require_tabList.g, exports.PortalProvider = require_tabList.h, exports.Radio = Radio, exports.Select = Select, exports.Skeleton = Skeleton, exports.Spinner = require_tabList.V, exports.SrOnly = SrOnly, exports.Stack = require_tabList.p, exports.Switch = Switch, exports.Tab = require_tabList.n, exports.TabList = require_tabList.t, exports.TabPanel = TabPanel, exports.Text = require_tabList.U, exports.TextArea = TextArea, exports.TextInput = require_tabList.f, exports.TextSkeleton = TextSkeleton, exports.ThemeColorProvider = require_tabList.it, exports.ThemeProvider = require_tabList.ot, exports.Toast = Toast, exports.ToastProvider = ToastProvider, exports.Tooltip = require_tabList.c, exports.TooltipDelayGroupContext = require_tabList.u, exports.TooltipDelayGroupProvider = TooltipDelayGroupProvider, exports.Tree = Tree, exports.TreeItem = TreeItem, exports.VirtualList = VirtualList, exports._ResizeObserver = require_tabList.F, exports._elementSizeObserver = require_tabList.P, exports._fillCSSObject = require_tabList.dt, exports._getArrayProp = require_tabList.ft, exports._getResponsiveSpace = require_tabList.pt, exports._hasFocus = _hasFocus, exports._isEnterToClickElement = require_tabList.gt, exports._isScrollable = _isScrollable, exports._raf = _raf, exports._raf2 = _raf2, exports._responsive = require_tabList.mt, exports.attemptFocus = attemptFocus, exports.containsOrEqualsElement = require_tabList._t, exports.createColorTheme = require_tabList.Et, exports.focusFirstDescendant = focusFirstDescendant, exports.focusLastDescendant = focusLastDescendant, exports.hexToRgb = require_tabList.Dt, exports.hslToRgb = require_tabList.Ot, exports.isFocusable = isFocusable, exports.isHTMLAnchorElement = require_tabList.vt, exports.isHTMLButtonElement = require_tabList.yt, exports.isHTMLElement = require_tabList.bt, exports.isHTMLInputElement = require_tabList.xt, exports.isHTMLSelectElement = require_tabList.St, exports.isHTMLTextAreaElement = require_tabList.Ct, exports.multiply = require_tabList.kt, exports.parseColor = require_tabList.At, exports.rem = require_tabList.ht, exports.responsiveCodeFontStyle = responsiveCodeFontStyle, exports.responsiveHeadingFont = responsiveHeadingFont, exports.responsiveLabelFont = responsiveLabelFont, exports.responsiveTextAlignStyle = require_tabList.lt, exports.responsiveTextFont = require_tabList.ct, exports.rgbToHex = require_tabList.jt, exports.rgbToHsl = require_tabList.Mt, exports.rgba = require_tabList.Nt, exports.screen = require_tabList.Pt, exports.studioTheme = require_tabList.Ft, exports.useArrayProp = useArrayProp, exports.useBoundaryElement = require_tabList.x, exports.useClickOutside = useClickOutside, exports.useClickOutsideEvent = require_tabList.L, exports.useCustomValidity = require_tabList.I, exports.useDialog = useDialog, exports.useElementRect = useElementRect, exports.useElementSize = require_tabList.N, exports.useForwardedRef = useForwardedRef, exports.useGlobalKeyDown = require_tabList.M, exports.useLayer = require_tabList.y, exports.useMatchMedia = require_tabList.j, exports.useMediaIndex = require_tabList.A, exports.usePortal = require_tabList._, exports.usePrefersDark = require_tabList.k, exports.usePrefersReducedMotion = require_tabList.O, exports.useRootTheme = require_tabList.at, exports.useTheme = require_tabList.nt, exports.useTheme_v2 = require_tabList.rt, exports.useToast = useToast, exports.useTooltipDelayGroup = require_tabList.l, exports.useTree = useTree;
3010
+ export { Arrow, Autocomplete, Avatar, AvatarCounter, AvatarStack, Badge, BoundaryElementProvider, Box, Breadcrumbs, Button, Card, Checkbox, Code, CodeSkeleton, ConditionalWrapper, Container, Dialog, DialogContext, DialogProvider, ElementQuery, ErrorBoundary, Flex, Grid, Heading, HeadingSkeleton, Hotkeys, Inline, KBD, Label, LabelSkeleton, Layer, LayerProvider, Menu, MenuButton, MenuDivider, MenuGroup, MenuItem, Popover, Portal, PortalProvider, Radio, Select, Skeleton, Spinner, SrOnly, Stack, Switch, Tab, TabList, TabPanel, Text, TextArea, TextInput, TextSkeleton, ThemeColorProvider, ThemeProvider, Toast, ToastProvider, Tooltip, TooltipDelayGroupContext, TooltipDelayGroupProvider, Tree, TreeItem, VirtualList, _ResizeObserver, _elementSizeObserver, _fillCSSObject, _getArrayProp, _getResponsiveSpace, _hasFocus, _isEnterToClickElement, _isScrollable, _raf, _raf2, _responsive, attemptFocus, containsOrEqualsElement, createColorTheme, focusFirstDescendant, focusLastDescendant, hexToRgb, hslToRgb, isFocusable, isHTMLAnchorElement, isHTMLButtonElement, isHTMLElement, isHTMLInputElement, isHTMLSelectElement, isHTMLTextAreaElement, multiply, parseColor, rem, responsiveCodeFontStyle, responsiveHeadingFont, responsiveLabelFont, responsiveTextAlignStyle, responsiveTextFont, rgbToHex, rgbToHsl, rgba, screen, studioTheme, useArrayProp, useBoundaryElement, useClickOutside, useClickOutsideEvent, useCustomValidity, useDialog, useElementRect, useElementSize, useForwardedRef, useGlobalKeyDown, useLayer, useMatchMedia, useMediaIndex, usePortal, usePrefersDark, usePrefersReducedMotion, useRootTheme, useTheme, useTheme_v2, useToast, useTooltipDelayGroup, useTree };
3086
3011
 
3087
3012
  //# sourceMappingURL=index.js.map