@sanity/ui 3.4.1 → 3.4.3

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.
@@ -273,7 +273,6 @@ function ThemeProvider$1(props) {
273
273
  children: t2
274
274
  }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14], t3;
275
275
  }
276
- ThemeProvider$1.displayName = "ThemeProvider";
277
276
  /**
278
277
  * @public
279
278
  */
@@ -294,7 +293,6 @@ function ThemeColorProvider(props) {
294
293
  children
295
294
  }), $[0] = children, $[1] = root.theme, $[2] = t0, $[3] = tone, $[4] = t1) : t1 = $[4], t1;
296
295
  }
297
- ThemeColorProvider.displayName = "ThemeColorProvider";
298
296
  /**
299
297
  * @public
300
298
  */
@@ -636,8 +634,8 @@ const SpanWithTextOverflow = styled.span.withConfig({
636
634
  componentId: "sc-xkyu3h-0"
637
635
  })`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`, StyledBox = /* @__PURE__ */ styled.div.withConfig({
638
636
  displayName: "StyledBox",
639
- componentId: "sc-7yq461-0"
640
- })(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), BoxComponent = forwardRef(function(props, ref) {
637
+ componentId: "sc-yj6ffl-0"
638
+ })(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = forwardRef(function Box(props, ref) {
641
639
  let $ = c(115), deprecated_column, deprecated_columnEnd, deprecated_columnStart, deprecated_row, deprecated_rowEnd, deprecated_rowStart, flex, gridColumn, gridColumnEnd, gridColumnStart, gridRow, gridRowEnd, gridRowStart, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, sizing, t0, t1, t2, t3;
642
640
  $[0] === props ? (deprecated_column = $[1], deprecated_columnEnd = $[2], deprecated_columnStart = $[3], deprecated_row = $[4], deprecated_rowEnd = $[5], deprecated_rowStart = $[6], flex = $[7], gridColumn = $[8], gridColumnEnd = $[9], gridColumnStart = $[10], gridRow = $[11], gridRowEnd = $[12], gridRowStart = $[13], height = $[14], marginBottom = $[15], marginLeft = $[16], marginRight = $[17], marginTop = $[18], marginX = $[19], marginY = $[20], overflow = $[21], paddingBottom = $[22], paddingLeft = $[23], paddingRight = $[24], paddingTop = $[25], paddingX = $[26], paddingY = $[27], restProps = $[28], sizing = $[29], t0 = $[30], t1 = $[31], t2 = $[32], t3 = $[33]) : ({as: t0, gridColumn, column: deprecated_column, gridColumnStart, columnStart: deprecated_columnStart, gridColumnEnd, columnEnd: deprecated_columnEnd, display: t1, flex, height, margin: t2, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, padding: t3, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, gridRow, row: deprecated_row, gridRowStart, rowStart: deprecated_rowStart, gridRowEnd, rowEnd: deprecated_rowEnd, sizing, ...restProps} = props, $[0] = props, $[1] = deprecated_column, $[2] = deprecated_columnEnd, $[3] = deprecated_columnStart, $[4] = deprecated_row, $[5] = deprecated_rowEnd, $[6] = deprecated_rowStart, $[7] = flex, $[8] = gridColumn, $[9] = gridColumnEnd, $[10] = gridColumnStart, $[11] = gridRow, $[12] = gridRowEnd, $[13] = gridRowStart, $[14] = height, $[15] = marginBottom, $[16] = marginLeft, $[17] = marginRight, $[18] = marginTop, $[19] = marginX, $[20] = marginY, $[21] = overflow, $[22] = paddingBottom, $[23] = paddingLeft, $[24] = paddingRight, $[25] = paddingTop, $[26] = paddingX, $[27] = paddingY, $[28] = restProps, $[29] = sizing, $[30] = t0, $[31] = t1, $[32] = t2, $[33] = t3);
643
641
  let asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, column = gridColumn === void 0 ? deprecated_column : gridColumn, columnStart = gridColumnStart === void 0 ? deprecated_columnStart : gridColumnStart, columnEnd = gridColumnEnd === void 0 ? deprecated_columnEnd : gridColumnEnd, row = gridRow === void 0 ? deprecated_row : gridRow, rowStart = gridRowStart === void 0 ? deprecated_rowStart : gridRowStart, rowEnd = gridRowEnd === void 0 ? deprecated_rowEnd : gridRowEnd, t4 = typeof asProp == "string" ? asProp : void 0, t5;
@@ -725,22 +723,14 @@ const SpanWithTextOverflow = styled.span.withConfig({
725
723
  children: props.children
726
724
  }), $[84] = asProp, $[85] = props.children, $[86] = ref, $[87] = restProps, $[88] = t10, $[89] = t11, $[90] = t12, $[91] = t13, $[92] = t14, $[93] = t15, $[94] = t16, $[95] = t17, $[96] = t18, $[97] = t19, $[98] = t20, $[99] = t21, $[100] = t22, $[101] = t23, $[102] = t24, $[103] = t25, $[104] = t26, $[105] = t27, $[106] = t28, $[107] = t29, $[108] = t4, $[109] = t5, $[110] = t6, $[111] = t7, $[112] = t8, $[113] = t9, $[114] = t30) : t30 = $[114], t30;
727
725
  });
728
- BoxComponent.displayName = "ForwardRef(Box)";
729
- /**
730
- * The `Box` component is a basic layout wrapper component which provides utility properties
731
- * for flex, margins and padding.
732
- *
733
- * @public
734
- */
735
- const Box = BoxComponent;
736
726
  function textBaseStyle(props) {
737
727
  let { $accent, $muted } = props, { font } = getTheme_v2(props.theme);
738
728
  return css`color:var(--card-fg-color);${$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;background-color:var(--card-code-bg-color);color:var(--card-code-fg-color);}& 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.text.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;color:var(--card-icon-color);& path{vector-effect:non-scaling-stroke !important;}}`;
739
729
  }
740
730
  const StyledText = /* @__PURE__ */ styled.div.withConfig({
741
731
  displayName: "StyledText",
742
- componentId: "sc-aca14k-0"
743
- })(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), TextComponent = forwardRef(function(props, ref) {
732
+ componentId: "sc-d4ufel-0"
733
+ })(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), Text = forwardRef(function Text(props, ref) {
744
734
  let $ = c(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
745
735
  $[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);
746
736
  let accent = t0 !== void 0 && t0, muted = t1 !== void 0 && t1, size = t2 === void 0 ? 2 : t2, children = childrenProp;
@@ -766,17 +756,10 @@ const StyledText = /* @__PURE__ */ styled.div.withConfig({
766
756
  $weight: weight,
767
757
  children: t5
768
758
  }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
769
- });
770
- TextComponent.displayName = "ForwardRef(Text)";
771
- /**
772
- * The `Text` component is an agile, themed typographic element.
773
- *
774
- * @public
775
- */
776
- const Text = TextComponent, StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
759
+ }), StyledFlex = /* @__PURE__ */ styled(Box).withConfig({
777
760
  displayName: "StyledFlex",
778
- componentId: "sc-r9nqck-0"
779
- })(flexItemStyle, responsiveFlexStyle), FlexComponent = forwardRef(function(props, ref) {
761
+ componentId: "sc-ux9uze-0"
762
+ })(flexItemStyle, responsiveFlexStyle), Flex = forwardRef(function Flex(props, ref) {
780
763
  let $ = c(27), align, as, gap, justify, restProps, t0, wrap;
781
764
  $[0] === props ? (align = $[1], as = $[2], gap = $[3], justify = $[4], restProps = $[5], t0 = $[6], wrap = $[7]) : ({align, as, direction: t0, gap, justify, wrap, ...restProps} = props, $[0] = props, $[1] = align, $[2] = as, $[3] = gap, $[4] = justify, $[5] = restProps, $[6] = t0, $[7] = wrap);
782
765
  let direction = t0 === void 0 ? "row" : t0, t1;
@@ -801,17 +784,10 @@ const Text = TextComponent, StyledFlex = /* @__PURE__ */ styled(Box).withConfig(
801
784
  forwardedAs: as,
802
785
  ref
803
786
  }), $[18] = as, $[19] = ref, $[20] = restProps, $[21] = t1, $[22] = t2, $[23] = t3, $[24] = t4, $[25] = t5, $[26] = t6) : t6 = $[26], t6;
804
- });
805
- FlexComponent.displayName = "ForwardRef(Flex)";
806
- /**
807
- * The `Flex` component is a wrapper component for flexible elements (`Box`, `Card` and `Flex`).
808
- *
809
- * @public
810
- */
811
- const Flex = FlexComponent, rotate = keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, StyledSpinner = styled(Text).withConfig({
787
+ }), rotate = keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, StyledSpinner = styled(Text).withConfig({
812
788
  displayName: "StyledSpinner",
813
- componentId: "sc-6ky9bg-0"
814
- })`& > span > svg{animation:${rotate} 500ms linear infinite;}`, Spinner = forwardRef(function(props, ref) {
789
+ componentId: "sc-10l2iw-0"
790
+ })`& > span > svg{animation:${rotate} 500ms linear infinite;}`, Spinner = forwardRef(function Spinner(props, ref) {
815
791
  let $ = c(4), t0;
816
792
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(SpinnerIcon, {}), $[0] = t0) : t0 = $[0];
817
793
  let t1;
@@ -822,7 +798,6 @@ const Flex = FlexComponent, rotate = keyframes`from{transform:rotate(0deg);}to{t
822
798
  children: t0
823
799
  }), $[1] = props, $[2] = ref, $[3] = t1) : t1 = $[3], t1;
824
800
  });
825
- Spinner.displayName = "ForwardRef(Spinner)";
826
801
  /**
827
802
  * @internal
828
803
  */
@@ -953,11 +928,11 @@ function buttonColorStyles(props) {
953
928
  }
954
929
  const StyledButton = /* @__PURE__ */ styled.button.withConfig({
955
930
  displayName: "StyledButton",
956
- componentId: "sc-u1hrlw-0"
931
+ componentId: "sc-rwh0gh-0"
957
932
  })(responsiveRadiusStyle, buttonBaseStyles, buttonColorStyles), LoadingBox = styled.div.withConfig({
958
933
  displayName: "LoadingBox",
959
- componentId: "sc-u1hrlw-1"
960
- })`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`, ButtonComponent = forwardRef(function(props, ref) {
934
+ componentId: "sc-rwh0gh-1"
935
+ })`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`, Button = forwardRef(function Button(props, ref) {
961
936
  let $ = c(87), IconComponent, IconRightComponent, children, disabled, gap, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
962
937
  $[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], gap = $[5], loading = $[6], paddingBottomProp = $[7], paddingLeftProp = $[8], paddingRightProp = $[9], paddingTopProp = $[10], paddingXProp = $[11], paddingYProp = $[12], restProps = $[13], selected = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21], t7 = $[22], t8 = $[23], text = $[24], textAlign = $[25], textWeight = $[26], width = $[27]) : ({children, disabled, fontSize: t0, icon: IconComponent, iconRight: IconRightComponent, justify: t1, loading, mode: t2, padding: t3, paddingX: paddingXProp, paddingY: paddingYProp, paddingTop: paddingTopProp, paddingBottom: paddingBottomProp, paddingLeft: paddingLeftProp, paddingRight: paddingRightProp, radius: t4, selected, gap, space: t5, text, textAlign, textWeight, tone: t6, type: t7, muted: t8, width, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = gap, $[6] = loading, $[7] = paddingBottomProp, $[8] = paddingLeftProp, $[9] = paddingRightProp, $[10] = paddingTopProp, $[11] = paddingXProp, $[12] = paddingYProp, $[13] = restProps, $[14] = selected, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6, $[22] = t7, $[23] = t8, $[24] = text, $[25] = textAlign, $[26] = textWeight, $[27] = width);
963
938
  let fontSize = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, tone = t6 === void 0 ? "default" : t6, type = t7 === void 0 ? "button" : t7, muted = t8 !== void 0 && t8, { button } = useTheme_v2(), t9;
@@ -1046,11 +1021,6 @@ const StyledButton = /* @__PURE__ */ styled.button.withConfig({
1046
1021
  ]
1047
1022
  }), $[73] = mode, $[74] = radius, $[75] = ref, $[76] = restProps, $[77] = t21, $[78] = t22, $[79] = t23, $[80] = t24, $[81] = t25, $[82] = t26, $[83] = tone, $[84] = type, $[85] = width, $[86] = t27) : t27 = $[86], t27;
1048
1023
  });
1049
- ButtonComponent.displayName = "ForwardRef(Button)";
1050
- /**
1051
- * @public
1052
- */
1053
- const Button = ButtonComponent;
1054
1024
  function cardStyle(props) {
1055
1025
  return [cardBaseStyle(props), cardColorStyle(props)];
1056
1026
  }
@@ -1075,8 +1045,8 @@ function cardColorStyle(props) {
1075
1045
  }
1076
1046
  const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
1077
1047
  displayName: "StyledCard",
1078
- componentId: "sc-5721dn-0"
1079
- })(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), CardComponent = forwardRef(function(props, ref) {
1048
+ componentId: "sc-p2pbep-0"
1049
+ })(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = forwardRef(function Card(props, ref) {
1080
1050
  let $ = c(56), asProp, border, borderBottom, borderLeft, borderRight, borderTop, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
1081
1051
  $[0] === props ? (asProp = $[1], border = $[2], borderBottom = $[3], borderLeft = $[4], borderRight = $[5], borderTop = $[6], muted = $[7], pressed = $[8], restProps = $[9], scheme = $[10], selected = $[11], shadow = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16]) : ({__unstable_checkered: t0, __unstable_focusRing: t1, as: asProp, border, borderTop, borderRight, borderBottom, borderLeft, muted, pressed, radius: t2, scheme, selected, shadow, tone: t3, ...restProps} = props, $[0] = props, $[1] = asProp, $[2] = border, $[3] = borderBottom, $[4] = borderLeft, $[5] = borderRight, $[6] = borderTop, $[7] = muted, $[8] = pressed, $[9] = restProps, $[10] = scheme, $[11] = selected, $[12] = shadow, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3);
1082
1052
  let checkered = t0 !== void 0 && t0, focusRing = t1 !== void 0 && t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, t6;
@@ -1125,14 +1095,6 @@ const StyledCard = /* @__PURE__ */ styled(Box).withConfig({
1125
1095
  children: t16
1126
1096
  }), $[52] = scheme, $[53] = t16, $[54] = tone, $[55] = t17) : t17 = $[55], t17;
1127
1097
  });
1128
- CardComponent.displayName = "ForwardRef(Card)";
1129
- /**
1130
- * The `Card` component acts much like a `Box`, but with a background and foreground color.
1131
- * Components within a `Card` inherit its colors.
1132
- *
1133
- * @public
1134
- */
1135
- const Card = CardComponent;
1136
1098
  /**
1137
1099
  * @public
1138
1100
  */
@@ -1256,24 +1218,24 @@ function _createMediaStore(media) {
1256
1218
  }
1257
1219
  }
1258
1220
  return sizes;
1259
- };
1260
- return {
1261
- getSnapshot: () => {
1262
- for (let { index, mq } of getSizes()) if (mq.matches) return index;
1263
- return 0;
1264
- },
1265
- subscribe: (onStoreChange) => {
1266
- let disposeFns = [];
1267
- for (let { mq } of getSizes()) {
1268
- let handleChange = () => {
1269
- mq.matches && onStoreChange();
1270
- };
1271
- mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
1272
- }
1273
- return () => {
1274
- for (let disposeFn of disposeFns) disposeFn();
1221
+ }, getSnapshot = () => {
1222
+ for (let { index, mq } of getSizes()) if (mq.matches) return index;
1223
+ return 0;
1224
+ }, subscribe = (onStoreChange) => {
1225
+ let disposeFns = [];
1226
+ for (let { mq } of getSizes()) {
1227
+ let handleChange = () => {
1228
+ mq.matches && onStoreChange();
1275
1229
  };
1230
+ mq.addEventListener("change", handleChange), disposeFns.push(() => mq.removeEventListener("change", handleChange));
1276
1231
  }
1232
+ return () => {
1233
+ for (let disposeFn of disposeFns) disposeFn();
1234
+ };
1235
+ };
1236
+ return {
1237
+ getSnapshot,
1238
+ subscribe
1277
1239
  };
1278
1240
  }
1279
1241
  /**
@@ -1324,8 +1286,8 @@ function usePrefersReducedMotion(getServerSnapshot = () => !1) {
1324
1286
  }
1325
1287
  const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
1326
1288
  displayName: "StyledGrid",
1327
- componentId: "sc-p9qx07-0"
1328
- })(responsiveGridStyle), GridComponent = forwardRef(function(props, ref) {
1289
+ componentId: "sc-1yxm55-0"
1290
+ })(responsiveGridStyle), Grid = forwardRef(function Grid(props, ref) {
1329
1291
  let $ = c(44), as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, gridTemplateColumns, gridTemplateRows, restProps, rows;
1330
1292
  $[0] === props ? (as = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], children = $[5], columns = $[6], gap = $[7], gapX = $[8], gapY = $[9], gridTemplateColumns = $[10], gridTemplateRows = $[11], restProps = $[12], rows = $[13]) : ({as, autoRows, autoCols, autoFlow, columns, gridTemplateColumns, gap, gapX, gapY, rows, gridTemplateRows, children, ...restProps} = props, $[0] = props, $[1] = as, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = children, $[6] = columns, $[7] = gap, $[8] = gapX, $[9] = gapY, $[10] = gridTemplateColumns, $[11] = gridTemplateRows, $[12] = restProps, $[13] = rows);
1331
1293
  let t0 = typeof as == "string" ? as : void 0, t1;
@@ -1362,13 +1324,6 @@ const StyledGrid = /* @__PURE__ */ styled(Box).withConfig({
1362
1324
  children
1363
1325
  }), $[30] = as, $[31] = children, $[32] = ref, $[33] = restProps, $[34] = t0, $[35] = t1, $[36] = t10, $[37] = t2, $[38] = t3, $[39] = t5, $[40] = t6, $[41] = t7, $[42] = t8, $[43] = t11) : t11 = $[43], t11;
1364
1326
  });
1365
- GridComponent.displayName = "ForwardRef(Grid)";
1366
- /**
1367
- * The `Grid` component is for building 2-dimensional layers (based on CSS grid).
1368
- *
1369
- * @public
1370
- */
1371
- const Grid = GridComponent;
1372
1327
  function inlineBaseStyle() {
1373
1328
  return {
1374
1329
  lineHeight: "0",
@@ -1391,8 +1346,8 @@ function inlineSpaceStyle(props) {
1391
1346
  }
1392
1347
  const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
1393
1348
  displayName: "StyledInline",
1394
- componentId: "sc-aabqmb-0"
1395
- })(inlineBaseStyle, inlineSpaceStyle), InlineComponent = forwardRef(function(props, ref) {
1349
+ componentId: "sc-8j2qbm-0"
1350
+ })(inlineBaseStyle, inlineSpaceStyle), Inline = forwardRef(function Inline(props, ref) {
1396
1351
  let $ = c(16), as, childrenProp, deprecated_space, gap, restProps;
1397
1352
  $[0] === props ? (as = $[1], childrenProp = $[2], deprecated_space = $[3], gap = $[4], restProps = $[5]) : ({as, children: childrenProp, gap, space: deprecated_space, ...restProps} = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = deprecated_space, $[4] = gap, $[5] = restProps);
1398
1353
  let spacing = gap === void 0 ? deprecated_space : gap, t0;
@@ -1409,13 +1364,6 @@ const StyledInline = /* @__PURE__ */ styled(Box).withConfig({
1409
1364
  children
1410
1365
  }), $[10] = as, $[11] = children, $[12] = restProps, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
1411
1366
  });
1412
- InlineComponent.displayName = "ForwardRef(Inline)";
1413
- /**
1414
- * The `Inline` component is a layout utility for aligning and spacing items horizontally.
1415
- *
1416
- * @public
1417
- */
1418
- const Inline = InlineComponent;
1419
1367
  function _temp$4(child) {
1420
1368
  return child && /* @__PURE__ */ jsx("div", { children: child });
1421
1369
  }
@@ -1424,8 +1372,8 @@ function kbdStyle() {
1424
1372
  }
1425
1373
  const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
1426
1374
  displayName: "StyledKBD",
1427
- componentId: "sc-ielwjm-0"
1428
- })(responsiveRadiusStyle, kbdStyle), KBDComponent = forwardRef(function(props, ref) {
1375
+ componentId: "sc-pgjv2l-0"
1376
+ })(responsiveRadiusStyle, kbdStyle), KBD = forwardRef(function KBD(props, ref) {
1429
1377
  let $ = c(19), children, restProps, t0, t1, t2;
1430
1378
  $[0] === props ? (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]) : ({children, fontSize: t0, padding: t1, radius: t2, ...restProps} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2);
1431
1379
  let fontSize = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? 2 : t2, t3;
@@ -1451,14 +1399,7 @@ const StyledKBD = /* @__PURE__ */ styled.kbd.withConfig({
1451
1399
  ref,
1452
1400
  children: t5
1453
1401
  }), $[14] = ref, $[15] = restProps, $[16] = t3, $[17] = t5, $[18] = t6) : t6 = $[18], t6;
1454
- });
1455
- KBDComponent.displayName = "ForwardRef(KBD)";
1456
- /**
1457
- * Used to define some text as keyboard input.
1458
- *
1459
- * @public
1460
- */
1461
- const KBD = KBDComponent, origin = {
1402
+ }), origin = {
1462
1403
  name: "@sanity/ui/origin",
1463
1404
  fn({ middlewareData, placement, rects }) {
1464
1405
  let [side] = placement.split("-"), floatingWidth = rects.floating.width, floatingHeight = rects.floating.height, shiftX = middlewareData.shift?.x || 0, shiftY = middlewareData.shift?.y || 0;
@@ -1516,14 +1457,14 @@ function compileCommands(cmds) {
1516
1457
  }
1517
1458
  const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
1518
1459
  displayName: "StyledArrow",
1519
- componentId: "sc-d20m08-0"
1460
+ componentId: "sc-1ev21f-0"
1520
1461
  })(({ $w: w }) => css`position:absolute;width:${w}px;height:${w}px;:empty + &{display:none;}& > svg{display:block;line-height:0;transform-origin:${w / 2}px ${w / 2}px;}[data-placement^='top'] > &{bottom:-${w}px;& > svg{transform:rotate(0);}}[data-placement^='right'] > &{left:-${w}px;& > svg{transform:rotate(90deg);}}[data-placement^='left'] > &{right:-${w}px;& > svg{transform:rotate(-90deg);}}[data-placement^='bottom'] > &{top:-${w}px;& > svg{transform:rotate(180deg);}}`), StrokePath = styled.path.withConfig({
1521
1462
  displayName: "StrokePath",
1522
- componentId: "sc-d20m08-1"
1463
+ componentId: "sc-1ev21f-1"
1523
1464
  })`stroke:var(--card-shadow-outline-color);`, ShapePath = styled.path.withConfig({
1524
1465
  displayName: "ShapePath",
1525
- componentId: "sc-d20m08-2"
1526
- })`fill:var(--card-bg-color);`, Arrow = forwardRef(function(props, ref) {
1466
+ componentId: "sc-1ev21f-2"
1467
+ })`fill:var(--card-bg-color);`, Arrow = forwardRef(function Arrow(props, ref) {
1527
1468
  let $ = c(29), h, restProps, t0, w;
1528
1469
  $[0] === props ? (h = $[1], restProps = $[2], t0 = $[3], w = $[4]) : ({width: w, height: h, radius: t0, ...restProps} = props, $[0] = props, $[1] = h, $[2] = restProps, $[3] = t0, $[4] = w);
1529
1470
  let radius = t0 === void 0 ? 0 : t0, { card } = useTheme_v2(), strokeWidth = card.shadow.outline, center = w / 2, t1;
@@ -1589,9 +1530,7 @@ const StyledArrow = /* @__PURE__ */ styled.div.withConfig({
1589
1530
  ref,
1590
1531
  children: t7
1591
1532
  }), $[24] = ref, $[25] = restProps, $[26] = t7, $[27] = w, $[28] = t8) : t8 = $[28], t8;
1592
- });
1593
- Arrow.displayName = "ForwardRef(Arrow)";
1594
- const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);
1533
+ }), BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);
1595
1534
  function isRecord(value) {
1596
1535
  return !!(value && typeof value == "object" && !Array.isArray(value));
1597
1536
  }
@@ -1663,7 +1602,6 @@ function _temp2$2(v_0) {
1663
1602
  function _temp$3(v) {
1664
1603
  return v + 1;
1665
1604
  }
1666
- LayerProvider.displayName = "LayerProvider";
1667
1605
  /**
1668
1606
  * @public
1669
1607
  */
@@ -1678,8 +1616,8 @@ function useLayer() {
1678
1616
  }
1679
1617
  const StyledLayer = /* @__PURE__ */ styled.div.withConfig({
1680
1618
  displayName: "StyledLayer",
1681
- componentId: "sc-h90030-0"
1682
- })({ position: "relative" }), LayerChildren = forwardRef(function(props, forwardedRef) {
1619
+ componentId: "sc-100e5i-0"
1620
+ })({ position: "relative" }), LayerChildren = forwardRef(function LayerChildren(props, forwardedRef) {
1683
1621
  let $ = c(22), children, onActivate, onFocus, restProps, t0;
1684
1622
  $[0] === props ? (children = $[1], onActivate = $[2], onFocus = $[3], restProps = $[4], t0 = $[5]) : ({children, onActivate, onFocus, style: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = onActivate, $[3] = onFocus, $[4] = restProps, $[5] = t0);
1685
1623
  let style = t0 === void 0 ? EMPTY_RECORD : t0, { zIndex, isTopLayer } = useLayer(), lastFocusedRef = useRef(null), ref = useRef(null), isTopLayerRef = useRef(isTopLayer), t1;
@@ -1708,7 +1646,7 @@ const StyledLayer = /* @__PURE__ */ styled.div.withConfig({
1708
1646
  style: t5,
1709
1647
  children
1710
1648
  }), $[17] = children, $[18] = handleFocus, $[19] = restProps, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
1711
- }), Layer = forwardRef(function(props, ref) {
1649
+ }), Layer = forwardRef(function Layer(props, ref) {
1712
1650
  let $ = c(11), children, restProps, t0;
1713
1651
  $[0] === props ? (children = $[1], restProps = $[2], t0 = $[3]) : ({children, zOffset: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0);
1714
1652
  let zOffset = t0 === void 0 ? 1 : t0, t1;
@@ -1722,9 +1660,7 @@ const StyledLayer = /* @__PURE__ */ styled.div.withConfig({
1722
1660
  zOffset,
1723
1661
  children: t1
1724
1662
  }), $[8] = t1, $[9] = zOffset, $[10] = t2) : t2 = $[10], t2;
1725
- });
1726
- Layer.displayName = "ForwardRef(Layer)";
1727
- const key = "@sanity/ui/context/portal", elementKey = Symbol.for(`${key}/element`);
1663
+ }), key = "@sanity/ui/context/portal", elementKey = Symbol.for(`${key}/element`);
1728
1664
  globalScope[elementKey] = null;
1729
1665
  const PortalContext = createGlobalScopedContext(key, {
1730
1666
  version: 0,
@@ -1749,7 +1685,6 @@ function Portal(props) {
1749
1685
  let { children, __unstable_name: name } = props, portal = usePortal(), portalElement = (name ? portal.elements && portal.elements[name] : portal.element) || portal.elements?.default;
1750
1686
  return portalElement ? createPortal(children, portalElement) : null;
1751
1687
  }
1752
- Portal.displayName = "Portal";
1753
1688
  /**
1754
1689
  * @public
1755
1690
  */
@@ -1773,7 +1708,6 @@ function _temp2$1() {
1773
1708
  function _temp$2() {
1774
1709
  return document.body;
1775
1710
  }
1776
- PortalProvider.displayName = "PortalProvider";
1777
1711
  const emptySubscribe = () => () => {};
1778
1712
  function getElementRef(element) {
1779
1713
  let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
@@ -1876,11 +1810,11 @@ function calcMaxWidth(params) {
1876
1810
  }
1877
1811
  const MotionCard$1 = styled(motion.create(Card)).withConfig({
1878
1812
  displayName: "MotionCard",
1879
- componentId: "sc-5mkek4-0"
1813
+ componentId: "sc-n3w53t-0"
1880
1814
  })`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`, MotionFlex = styled(motion.create(Flex)).withConfig({
1881
1815
  displayName: "MotionFlex",
1882
- componentId: "sc-5mkek4-1"
1883
- })`will-change:opacity;`, PopoverCard = forwardRef(function(props, ref) {
1816
+ componentId: "sc-n3w53t-1"
1817
+ })`will-change:opacity;`, PopoverCard = forwardRef(function PopoverCard(props, ref) {
1884
1818
  let $ = c(66), animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
1885
1819
  $[0] === props ? (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], originX = $[8], originY = $[9], overflow = $[10], padding = $[11], placement = $[12], radius = $[13], restProps = $[14], scheme = $[15], shadow = $[16], strategy = $[17], style = $[18], tone = $[19], width = $[20], xProp = $[21], yProp = $[22]) : ({__unstable_margins: marginsProp, animate, arrow, arrowRef, arrowX, arrowY, children, padding, placement, originX, originY, overflow, radius, scheme, shadow, strategy, style, tone, width, x: xProp, y: yProp, ...restProps} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = originX, $[9] = originY, $[10] = overflow, $[11] = padding, $[12] = placement, $[13] = radius, $[14] = restProps, $[15] = scheme, $[16] = shadow, $[17] = strategy, $[18] = style, $[19] = tone, $[20] = width, $[21] = xProp, $[22] = yProp);
1886
1820
  let { zIndex } = useLayer(), margins = marginsProp || DEFAULT_POPOVER_MARGINS, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0], t0 = animate ? "transform" : void 0, t1;
@@ -1952,9 +1886,7 @@ const MotionCard$1 = styled(motion.create(Card)).withConfig({
1952
1886
  exit: t8,
1953
1887
  children: [t10, t11]
1954
1888
  }), $[52] = placement, $[53] = radius, $[54] = ref, $[55] = rootStyle, $[56] = scheme, $[57] = shadow, $[58] = t10, $[59] = t11, $[60] = t5, $[61] = t6, $[62] = t7, $[63] = t8, $[64] = tone, $[65] = t12) : t12 = $[65], t12;
1955
- });
1956
- PopoverCard.displayName = "ForwardRef(PopoverCard)";
1957
- const ViewportOverlay = () => {
1889
+ }), ViewportOverlay = () => {
1958
1890
  let $ = c(2), { zIndex } = useLayer(), t0;
1959
1891
  return $[0] === zIndex ? t0 = $[1] : (t0 = /* @__PURE__ */ jsx("div", { style: {
1960
1892
  height: "100vh",
@@ -1963,7 +1895,7 @@ const ViewportOverlay = () => {
1963
1895
  width: "100vw",
1964
1896
  zIndex
1965
1897
  } }), $[0] = zIndex, $[1] = t0), t0;
1966
- }, Popover = forwardRef(function(props, forwardedRef) {
1898
+ }, Popover = forwardRef(function Popover(props, forwardedRef) {
1967
1899
  let $ = c(126), { container, layer } = useTheme_v2(), boundaryElementContext = useBoundaryElement(), _boundaryElement, _fallbackPlacements, _floatingBoundary, _referenceBoundary, _zOffsetProp, childProp, content, disabled, matchReferenceWidth, modal, open, paddingProp, portal, referenceElement, restProps, scheme, t0, t1, t10, t11, t2, t3, t4, t5, t6, t7, t8, t9, updateRef;
1968
1900
  if ($[0] !== props) {
1969
1901
  let { __unstable_margins: t12, animate: t13, arrow: t14, boundaryElement: t15, children: t16, constrainSize: t17, content: t18, disabled: t19, fallbackPlacements: t20, matchReferenceWidth: t21, floatingBoundary: t22, modal: t23, onActivate, open: t24, overflow: t25, padding: t26, placement: t27, placementStrategy: t28, portal: t29, preventOverflow: t30, radius: t31, referenceBoundary: t32, referenceElement: t33, scheme: t34, shadow: t35, tone: t36, width: t37, zOffset: t38, updateRef: t39, ...t40 } = props;
@@ -2110,7 +2042,6 @@ const ViewportOverlay = () => {
2110
2042
  let t40;
2111
2043
  return $[123] !== child || $[124] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t39, child] }), $[123] = child, $[124] = t39, $[125] = t40) : t40 = $[125], t40;
2112
2044
  });
2113
- Popover.displayName = "ForwardRef(Popover)";
2114
2045
  function useMiddleware$1(t0) {
2115
2046
  let $ = c(42), { animate, arrowProp, arrowRef, constrainSize, fallbackPlacements, floatingBoundary, margins, matchReferenceWidth, maxWidthRef, placementProp, placementStrategy, preventOverflow, referenceBoundary, referenceWidthRef, rootBoundary, setReferenceWidth, widthRef } = t0, ret;
2116
2047
  if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== constrainSize || $[4] !== fallbackPlacements || $[5] !== floatingBoundary || $[6] !== margins || $[7] !== matchReferenceWidth || $[8] !== maxWidthRef || $[9] !== placementProp || $[10] !== placementStrategy || $[11] !== preventOverflow || $[12] !== referenceBoundary || $[13] !== referenceWidthRef || $[14] !== rootBoundary || $[15] !== setReferenceWidth || $[16] !== widthRef) {
@@ -2181,8 +2112,8 @@ function responsiveStackSpaceStyle(props) {
2181
2112
  }
2182
2113
  const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
2183
2114
  displayName: "StyledStack",
2184
- componentId: "sc-tusrcx-0"
2185
- })(stackBaseStyle, responsiveStackSpaceStyle), StackComponent = forwardRef(function(props, ref) {
2115
+ componentId: "sc-0k6050-0"
2116
+ })(stackBaseStyle, responsiveStackSpaceStyle), Stack = forwardRef(function Stack(props, ref) {
2186
2117
  let $ = c(13), as, deprecated_space, gap, restProps;
2187
2118
  $[0] === props ? (as = $[1], deprecated_space = $[2], gap = $[3], restProps = $[4]) : ({as, gap, space: deprecated_space, ...restProps} = props, $[0] = props, $[1] = as, $[2] = deprecated_space, $[3] = gap, $[4] = restProps);
2188
2119
  let spacing = gap === void 0 ? deprecated_space : gap, t0 = typeof as == "string" ? as : void 0, t1;
@@ -2196,44 +2127,37 @@ const StyledStack = /* @__PURE__ */ styled(Box).withConfig({
2196
2127
  forwardedAs: as,
2197
2128
  ref
2198
2129
  }), $[7] = as, $[8] = ref, $[9] = restProps, $[10] = t0, $[11] = t1, $[12] = t2) : t2 = $[12], t2;
2199
- });
2200
- StackComponent.displayName = "ForwardRef(Stack)";
2201
- /**
2202
- * The `Stack` component is used to place elements on top of each other.
2203
- *
2204
- * @public
2205
- */
2206
- const Stack = StackComponent, CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledTextInput = /* @__PURE__ */ styled(Card).attrs({ forwardedAs: "span" }).withConfig({
2130
+ }), CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledTextInput = /* @__PURE__ */ styled(Card).attrs({ forwardedAs: "span" }).withConfig({
2207
2131
  displayName: "StyledTextInput",
2208
- componentId: "sc-ab08rw-0"
2132
+ componentId: "sc-iuvxo7-0"
2209
2133
  })(textInputRootStyle), InputRoot = styled.span.withConfig({
2210
2134
  displayName: "InputRoot",
2211
- componentId: "sc-ab08rw-1"
2135
+ componentId: "sc-iuvxo7-1"
2212
2136
  })`flex:1;min-width:0;display:block;position:relative;`, Prefix = styled(Card).attrs({ forwardedAs: "span" }).withConfig({
2213
2137
  displayName: "Prefix",
2214
- componentId: "sc-ab08rw-2"
2138
+ componentId: "sc-iuvxo7-2"
2215
2139
  })`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`, Suffix = styled(Card).attrs({ forwardedAs: "span" }).withConfig({
2216
2140
  displayName: "Suffix",
2217
- componentId: "sc-ab08rw-3"
2141
+ componentId: "sc-iuvxo7-3"
2218
2142
  })`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`, Input = /* @__PURE__ */ styled.input.withConfig({
2219
2143
  displayName: "Input",
2220
- componentId: "sc-ab08rw-4"
2144
+ componentId: "sc-iuvxo7-4"
2221
2145
  })(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled.span.withConfig({
2222
2146
  displayName: "Presentation",
2223
- componentId: "sc-ab08rw-5"
2147
+ componentId: "sc-iuvxo7-5"
2224
2148
  })(responsiveRadiusStyle, textInputRepresentationStyle), LeftBox = styled(Box).withConfig({
2225
2149
  displayName: "LeftBox",
2226
- componentId: "sc-ab08rw-6"
2150
+ componentId: "sc-iuvxo7-6"
2227
2151
  })`position:absolute;top:0;left:0;`, RightBox = styled(Box).withConfig({
2228
2152
  displayName: "RightBox",
2229
- componentId: "sc-ab08rw-7"
2153
+ componentId: "sc-iuvxo7-7"
2230
2154
  })`position:absolute;top:0;right:0;`, RightCard = styled(Card).withConfig({
2231
2155
  displayName: "RightCard",
2232
- componentId: "sc-ab08rw-8"
2156
+ componentId: "sc-iuvxo7-8"
2233
2157
  })`background-color:transparent;position:absolute;top:0;right:0;`, TextInputClearButton = /* @__PURE__ */ styled(Button).withConfig({
2234
2158
  displayName: "TextInputClearButton",
2235
- componentId: "sc-ab08rw-9"
2236
- })({ "&:not([hidden])": { display: "block" } }), TextInput = forwardRef(function(props, forwardedRef) {
2159
+ componentId: "sc-iuvxo7-9"
2160
+ })({ "&:not([hidden])": { display: "block" } }), TextInput = forwardRef(function TextInput(props, forwardedRef) {
2237
2161
  let $ = c(93), IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, gap, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
2238
2162
  $[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], gap = $[6], onClear = $[7], prefix = $[8], readOnly = $[9], restProps = $[10], suffix = $[11], t0 = $[12], t1 = $[13], t2 = $[14], t3 = $[15], t4 = $[16], t5 = $[17], t6 = $[18], weight = $[19]) : ({__unstable_disableFocusRing, border: t0, clearButton, disabled: t1, fontSize: t2, gap, icon: IconComponent, iconRight: IconRightComponent, onClear, padding: t3, prefix, radius: t4, readOnly, space: t5, suffix, customValidity, type: t6, weight, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] = gap, $[7] = onClear, $[8] = prefix, $[9] = readOnly, $[10] = restProps, $[11] = suffix, $[12] = t0, $[13] = t1, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = weight);
2239
2163
  let border = t0 === void 0 || t0, disabled = t1 !== void 0 && t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), rootTheme = useRootTheme(), t7;
@@ -2358,7 +2282,6 @@ const Stack = StackComponent, CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledText
2358
2282
  ]
2359
2283
  }), $[88] = prefixNode, $[89] = rootTheme.tone, $[90] = suffixNode, $[91] = t25, $[92] = t26) : t26 = $[92], t26;
2360
2284
  });
2361
- TextInput.displayName = "ForwardRef(TextInput)";
2362
2285
  function _temp$1(event) {
2363
2286
  event.preventDefault(), event.stopPropagation();
2364
2287
  }
@@ -2470,8 +2393,8 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
2470
2393
  ]
2471
2394
  }, MotionCard = styled(motion.create(Card)).withConfig({
2472
2395
  displayName: "MotionCard",
2473
- componentId: "sc-ae1zod-0"
2474
- })`will-change:transform;`, TooltipCard = forwardRef(function(props, ref) {
2396
+ componentId: "sc-d1w0oq-0"
2397
+ })`will-change:transform;`, TooltipCard = forwardRef(function TooltipCard(props, ref) {
2475
2398
  let $ = c(48), animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
2476
2399
  $[0] === props ? (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], restProps = $[12], scheme = $[13], shadow = $[14], style = $[15]) : ({animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, scheme, shadow, style, ...restProps} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = restProps, $[13] = scheme, $[14] = shadow, $[15] = style);
2477
2400
  let t0 = animate ? "transform" : void 0, t1;
@@ -2520,12 +2443,7 @@ const DEFAULT_FALLBACK_PLACEMENTS = {
2520
2443
  exit: t8,
2521
2444
  children: [children, t9]
2522
2445
  }), $[34] = children, $[35] = padding, $[36] = placement, $[37] = radius, $[38] = ref, $[39] = rootStyle, $[40] = scheme, $[41] = shadow, $[42] = t5, $[43] = t6, $[44] = t7, $[45] = t8, $[46] = t9, $[47] = t10) : t10 = $[47], t10;
2523
- });
2524
- TooltipCard.displayName = "ForwardRef(TooltipCard)";
2525
- /**
2526
- * @beta
2527
- */
2528
- const TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
2446
+ }), TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
2529
2447
  /**
2530
2448
  * @beta
2531
2449
  */
@@ -2534,8 +2452,8 @@ function useTooltipDelayGroup() {
2534
2452
  }
2535
2453
  const StyledTooltip = styled(Layer).withConfig({
2536
2454
  displayName: "StyledTooltip",
2537
- componentId: "sc-hx8o7p-0"
2538
- })`pointer-events:none;`, Tooltip = forwardRef(function(props, forwardedRef) {
2455
+ componentId: "sc-dkqcjk-0"
2456
+ })`pointer-events:none;`, Tooltip = forwardRef(function Tooltip(props, forwardedRef) {
2539
2457
  let $ = c(137), boundaryElementContext = useBoundaryElement(), { layer } = useTheme_v2(), _boundaryElement, _fallbackPlacementsProp, _zOffset, childProp, content, delay, disabled, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5;
2540
2458
  $[0] === props ? (_boundaryElement = $[1], _fallbackPlacementsProp = $[2], _zOffset = $[3], childProp = $[4], content = $[5], delay = $[6], disabled = $[7], portalProp = $[8], restProps = $[9], scheme = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16]) : ({animate: t0, arrow: t1, boundaryElement: _boundaryElement, children: childProp, content, disabled, fallbackPlacements: _fallbackPlacementsProp, padding: t2, placement: t3, portal: portalProp, radius: t4, scheme, shadow: t5, zOffset: _zOffset, delay, ...restProps} = props, $[0] = props, $[1] = _boundaryElement, $[2] = _fallbackPlacementsProp, $[3] = _zOffset, $[4] = childProp, $[5] = content, $[6] = delay, $[7] = disabled, $[8] = portalProp, $[9] = restProps, $[10] = scheme, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5);
2541
2459
  let _animate = t0 !== void 0 && t0, arrowProp = t1 !== void 0 && t1, padding = t2 === void 0 ? 2 : t2, placementProp = t3 === void 0 ? "bottom" : t3, radius = t4 === void 0 ? 2 : t4, shadow = t5 === void 0 ? 2 : t5, boundaryElement = _boundaryElement ?? boundaryElementContext?.element, fallbackPlacementsProp = _fallbackPlacementsProp ?? DEFAULT_FALLBACK_PLACEMENTS[props.placement ?? "bottom"], zOffset = _zOffset ?? layer.tooltip.zOffset, animate = !usePrefersReducedMotion() && _animate, t6;
@@ -2620,7 +2538,7 @@ const StyledTooltip = styled(Layer).withConfig({
2620
2538
  let t24, t25;
2621
2539
  $[74] !== handleIsOpenChange || $[75] !== showTooltip ? (t24 = () => {
2622
2540
  if (!showTooltip) return;
2623
- let handleWindowKeyDown = function(event) {
2541
+ let handleWindowKeyDown = function handleWindowKeyDown(event) {
2624
2542
  event.key === "Escape" && handleIsOpenChange(!1, !0);
2625
2543
  };
2626
2544
  return window.addEventListener("keydown", handleWindowKeyDown), () => {
@@ -2709,7 +2627,6 @@ const StyledTooltip = styled(Layer).withConfig({
2709
2627
  let t40;
2710
2628
  return $[134] !== child || $[135] !== t39 ? (t40 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t39, child] }), $[134] = child, $[135] = t39, $[136] = t40) : t40 = $[136], t40;
2711
2629
  });
2712
- Tooltip.displayName = "ForwardRef(Tooltip)";
2713
2630
  function useMiddleware(t0) {
2714
2631
  let $ = c(17), { animate, arrowProp, arrowRef, boundaryElement, fallbackPlacements, rootBoundary } = t0, ret;
2715
2632
  if ($[0] !== animate || $[1] !== arrowProp || $[2] !== arrowRef || $[3] !== boundaryElement || $[4] !== fallbackPlacements || $[5] !== rootBoundary) {
@@ -2761,11 +2678,11 @@ function useCloseOnMouseLeave(t0) {
2761
2678
  }
2762
2679
  const StyledHotkeys = styled.kbd.withConfig({
2763
2680
  displayName: "StyledHotkeys",
2764
- componentId: "sc-j9kh17-0"
2681
+ componentId: "sc-07x5rd-0"
2765
2682
  })`font:inherit;padding:1px;&:not([hidden]){display:block;}`, Key = styled(KBD).withConfig({
2766
2683
  displayName: "Key",
2767
- componentId: "sc-j9kh17-1"
2768
- })`&:not([hidden]){display:block;}`, Hotkeys = forwardRef(function(props, ref) {
2684
+ componentId: "sc-07x5rd-1"
2685
+ })`&:not([hidden]){display:block;}`, Hotkeys = forwardRef(function Hotkeys(props, ref) {
2769
2686
  let $ = c(27), fontSize, gap, keys, padding, radius, restProps, t0;
2770
2687
  $[0] === props ? (fontSize = $[1], gap = $[2], keys = $[3], padding = $[4], radius = $[5], restProps = $[6], t0 = $[7]) : ({fontSize, gap, keys, padding, radius, space: t0, ...restProps} = props, $[0] = props, $[1] = fontSize, $[2] = gap, $[3] = keys, $[4] = padding, $[5] = radius, $[6] = restProps, $[7] = t0);
2771
2688
  let t1 = gap === void 0 ? t0 === void 0 ? .5 : t0 : gap, t2;
@@ -2798,9 +2715,7 @@ const StyledHotkeys = styled.kbd.withConfig({
2798
2715
  ref,
2799
2716
  children: t4
2800
2717
  }), $[23] = ref, $[24] = restProps, $[25] = t4, $[26] = t5) : t5 = $[26], t5;
2801
- });
2802
- Hotkeys.displayName = "ForwardRef(Hotkeys)";
2803
- const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
2718
+ }), MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
2804
2719
  /**
2805
2720
  * @internal
2806
2721
  */
@@ -2832,14 +2747,15 @@ function _sortElements(rootElement, elements) {
2832
2747
  if (!rootElement) return;
2833
2748
  let map = /* @__PURE__ */ new WeakMap();
2834
2749
  for (let el of elements) map.set(el, _getDOMPath(rootElement, el));
2835
- elements.sort((a, b) => {
2750
+ let _sort = (a, b) => {
2836
2751
  let _a = map.get(a) || EMPTY_PATH, _b = map.get(b) || EMPTY_PATH, len = Math.max(_a.length, _b.length);
2837
2752
  for (let i = 0; i < len; i += 1) {
2838
2753
  let aIndex = _a[i] || -1, bIndex = _b[i] || -1;
2839
2754
  if (aIndex !== bIndex) return aIndex - bIndex;
2840
2755
  }
2841
2756
  return 0;
2842
- });
2757
+ };
2758
+ elements.sort(_sort);
2843
2759
  }
2844
2760
  /**
2845
2761
  * This controller is responsible for controlling UI menu state.
@@ -2950,8 +2866,8 @@ function useMenuController(props) {
2950
2866
  }
2951
2867
  const StyledMenu = styled(Box).withConfig({
2952
2868
  displayName: "StyledMenu",
2953
- componentId: "sc-hkwd9h-0"
2954
- })`outline:none;overflow:auto;`, Menu = forwardRef(function(props, forwardedRef) {
2869
+ componentId: "sc-88w4l4-0"
2870
+ })`outline:none;overflow:auto;`, Menu = forwardRef(function Menu(props, forwardedRef) {
2955
2871
  let $ = c(50), _shouldFocus, children, gap, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
2956
2872
  if ($[0] !== props) {
2957
2873
  let { children: t2, focusFirst, focusLast, onClickOutside: t3, onEscape: t4, onItemClick: t5, onItemSelect: t6, onKeyDown: t7, originElement: t8, padding: t9, registerElement: t10, shouldFocus: t11, gap: t12, space: t13, ...t14 } = props;
@@ -3013,17 +2929,10 @@ const StyledMenu = styled(Box).withConfig({
3013
2929
  value,
3014
2930
  children: t11
3015
2931
  }), $[47] = t11, $[48] = value, $[49] = t12) : t12 = $[49], t12;
3016
- });
3017
- Menu.displayName = "ForwardRef(Menu)";
3018
- const StyledMenuDivider = styled.hr.withConfig({
3019
- displayName: "StyledMenuDivider",
3020
- componentId: "sc-bemnwm-0"
2932
+ }), MenuDivider = styled.hr.withConfig({
2933
+ displayName: "MenuDivider",
2934
+ componentId: "sc-l4kws7-0"
3021
2935
  })`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`;
3022
- StyledMenuDivider.displayName = "MenuDivider";
3023
- /**
3024
- * @public
3025
- */
3026
- const MenuDivider = StyledMenuDivider;
3027
2936
  function selectableBaseStyle() {
3028
2937
  return css`background-color:inherit;color:inherit;&[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{text-decoration:none;}`;
3029
2938
  }
@@ -3036,16 +2945,18 @@ function selectableColorStyle(props) {
3036
2945
  */
3037
2946
  const Selectable = /* @__PURE__ */ styled(Box).withConfig({
3038
2947
  displayName: "Selectable",
3039
- componentId: "sc-q5xa1z-0"
2948
+ componentId: "sc-sk8nre-0"
3040
2949
  })(responsiveRadiusStyle, selectableBaseStyle, selectableColorStyle);
3041
- Selectable.displayName = "Selectable";
3042
2950
  function useMenu() {
3043
2951
  let value = useContext(MenuContext);
3044
2952
  if (!value) throw Error("useMenu(): missing context value");
3045
2953
  if (!isRecord(value) || value.version !== 2) throw Error("useMenu(): the context value is not compatible");
3046
2954
  return value;
3047
2955
  }
3048
- function MenuGroupComponent(props) {
2956
+ /**
2957
+ * @public
2958
+ */
2959
+ const MenuGroup = function MenuGroup(props) {
3049
2960
  let $ = c(82), IconComponent, children, gap, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
3050
2961
  $[0] === props ? (IconComponent = $[1], children = $[2], gap = $[3], menuProps = $[4], onClick = $[5], popover = $[6], restProps = $[7], t0 = $[8], t1 = $[9], t2 = $[10], t3 = $[11], t4 = $[12], t5 = $[13], text = $[14]) : ({as: t0, children, fontSize: t1, icon: IconComponent, menu: menuProps, onClick, padding: t2, popover, radius: t3, gap, space: t4, text, tone: t5, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = gap, $[4] = menuProps, $[5] = onClick, $[6] = popover, $[7] = restProps, $[8] = t0, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = t5, $[14] = text);
3051
2962
  let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, menu = useMenu(), { scheme } = useRootTheme(), { activeElement, mount, onClickOutside, onEscape, onItemClick, onItemMouseEnter: _onItemMouseEnter, registerElement } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, [rootElement, setRootElement] = useState(null), [open, setOpen] = useState(!1), [shouldFocus, setShouldFocus] = useState(null), active = !!activeElement && activeElement === rootElement, [withinMenu, setWithinMenu] = useState(!1), t6;
@@ -3166,12 +3077,7 @@ function MenuGroupComponent(props) {
3166
3077
  open,
3167
3078
  children: t31
3168
3079
  }), $[77] = childMenu, $[78] = open, $[79] = popover, $[80] = t31, $[81] = t32) : t32 = $[81], t32;
3169
- }
3170
- MenuGroupComponent.displayName = "MenuGroup";
3171
- /**
3172
- * @public
3173
- */
3174
- const MenuGroup = MenuGroupComponent, MenuItemComponent = forwardRef(function(props, forwardedRef) {
3080
+ }, MenuItem = forwardRef(function MenuItem(props, forwardedRef) {
3175
3081
  let $ = c(76), IconComponent, IconRightComponent, children, disabled, gap, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
3176
3082
  $[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], gap = $[5], hotkeys = $[6], onClick = $[7], paddingBottom = $[8], paddingLeft = $[9], paddingRight = $[10], paddingTop = $[11], paddingX = $[12], paddingY = $[13], pressed = $[14], restProps = $[15], selectedProp = $[16], t0 = $[17], t1 = $[18], t2 = $[19], t3 = $[20], t4 = $[21], t5 = $[22], text = $[23]) : ({as: t0, children, disabled, fontSize: t1, hotkeys, icon: IconComponent, iconRight: IconRightComponent, onClick, padding: t2, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, pressed, radius: t3, selected: selectedProp, gap, space: t4, text, tone: t5, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = gap, $[6] = hotkeys, $[7] = onClick, $[8] = paddingBottom, $[9] = paddingLeft, $[10] = paddingRight, $[11] = paddingTop, $[12] = paddingX, $[13] = paddingY, $[14] = pressed, $[15] = restProps, $[16] = selectedProp, $[17] = t0, $[18] = t1, $[19] = t2, $[20] = t3, $[21] = t4, $[22] = t5, $[23] = text);
3177
3083
  let as = t0 === void 0 ? "button" : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, { scheme } = useRootTheme(), menu = useMenu(), { activeElement, mount, onItemClick, onItemMouseEnter: _onItemMouseEnter, onItemMouseLeave: _onItemMouseLeave } = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, onItemMouseLeave = _onItemMouseLeave ?? menu.onItemMouseLeave, [rootElement, setRootElement] = useState(null), active = !!activeElement && activeElement === rootElement, ref = useRef(null), t6;
@@ -3269,18 +3175,13 @@ const MenuGroup = MenuGroupComponent, MenuItemComponent = forwardRef(function(pr
3269
3175
  children: [t20, t21]
3270
3176
  }), $[60] = as, $[61] = disabled, $[62] = handleClick, $[63] = onItemMouseEnter, $[64] = onItemMouseLeave, $[65] = restProps, $[66] = scheme, $[67] = t13, $[68] = t14, $[69] = t15, $[70] = t16, $[71] = t18, $[72] = t19, $[73] = t20, $[74] = t21, $[75] = t22) : t22 = $[75], t22;
3271
3177
  });
3272
- MenuItemComponent.displayName = "ForwardRef(MenuItem)";
3273
- /**
3274
- * @public
3275
- */
3276
- const MenuItem = MenuItemComponent;
3277
3178
  function _temp(s) {
3278
3179
  return s - 1;
3279
3180
  }
3280
3181
  const CustomButton = styled(Button).withConfig({
3281
3182
  displayName: "CustomButton",
3282
- componentId: "sc-epil5s-0"
3283
- })`max-width:100%;`, Tab = forwardRef(function(props, forwardedRef) {
3183
+ componentId: "sc-rhibqq-0"
3184
+ })`max-width:100%;`, Tab = forwardRef(function Tab(props, forwardedRef) {
3284
3185
  let $ = c(30), focused, icon, id, label, onClick, onFocus, restProps, selected, t0, t1;
3285
3186
  $[0] === props ? (focused = $[1], icon = $[2], id = $[3], label = $[4], onClick = $[5], onFocus = $[6], restProps = $[7], selected = $[8], t0 = $[9], t1 = $[10]) : ({icon, id, focused, fontSize: t0, label, onClick, onFocus, padding: t1, selected, ...restProps} = props, $[0] = props, $[1] = focused, $[2] = icon, $[3] = id, $[4] = label, $[5] = onClick, $[6] = onFocus, $[7] = restProps, $[8] = selected, $[9] = t0, $[10] = t1);
3286
3187
  let fontSize = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 2 : t1, ref = useRef(null), focusedRef = useRef(!1), t2;
@@ -3317,12 +3218,10 @@ const CustomButton = styled(Button).withConfig({
3317
3218
  text: label,
3318
3219
  type: "button"
3319
3220
  }), $[18] = fontSize, $[19] = handleFocus, $[20] = icon, $[21] = id, $[22] = label, $[23] = onClick, $[24] = padding, $[25] = restProps, $[26] = selected, $[27] = t7, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
3320
- });
3321
- Tab.displayName = "ForwardRef(Tab)";
3322
- const CustomInline = styled(Inline).withConfig({
3221
+ }), CustomInline = styled(Inline).withConfig({
3323
3222
  displayName: "CustomInline",
3324
- componentId: "sc-k5whbp-0"
3325
- })`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`, TabList = forwardRef(function(props, ref) {
3223
+ componentId: "sc-40huc5-0"
3224
+ })`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`, TabList = forwardRef(function TabList(props, ref) {
3326
3225
  let $ = c(15), childrenProp, restProps;
3327
3226
  $[0] === props ? (childrenProp = $[1], restProps = $[2]) : ({children: childrenProp, ...restProps} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps);
3328
3227
  let [focusedIndex, setFocusedIndex] = useState(-1), t0;
@@ -3348,7 +3247,6 @@ const CustomInline = styled(Inline).withConfig({
3348
3247
  children: tabs
3349
3248
  }), $[10] = handleKeyDown, $[11] = ref, $[12] = restProps, $[13] = tabs, $[14] = t2) : t2 = $[14], t2;
3350
3249
  });
3351
- TabList.displayName = "ForwardRef(TabList)";
3352
3250
  export { responsiveInputPaddingStyle as $, useMediaIndex as A, parseColor as At, _cardColorStyle as B, BoundaryElementContext as C, isHTMLTextAreaElement as Ct, Grid as D, hexToRgb as Dt, Inline as E, createColorTheme as Et, _ResizeObserver as F, studioTheme as Ft, SpanWithTextOverflow as G, Flex as H, useCustomValidity as I, textInputBaseStyle as J, responsiveRadiusStyle as K, useClickOutsideEvent as L, useGlobalKeyDown as M, rgbToHsl as Mt, useElementSize as N, rgba as Nt, usePrefersReducedMotion as O, hslToRgb as Ot, _elementSizeObserver as P, screen as Pt, responsiveInputPaddingIconRightStyle as Q, Card as R, isRecord as S, isHTMLSelectElement as St, KBD as T, EMPTY_RECORD as Tt, Text as U, Spinner as V, Box as W, textInputRepresentationStyle as X, textInputFontSizeStyle as Y, textInputRootStyle as Z, usePortal as _, containsOrEqualsElement as _t, MenuDivider as a, useRootTheme as at, LayerProvider as b, isHTMLElement as bt, Tooltip as c, responsiveTextFont as ct, useDelayedState as d, _fillCSSObject as dt, focusRingBorderStyle as et, TextInput as f, _getArrayProp as ft, Portal as g, _isEnterToClickElement as gt, PortalProvider as h, rem as ht, MenuGroup as i, ThemeColorProvider as it, useMatchMedia as j, rgbToHex as jt, usePrefersDark as k, multiply as kt, useTooltipDelayGroup as l, responsiveTextAlignStyle as lt, Popover as m, _responsive as mt, Tab as n, useTheme$1 as nt, Menu as o, ThemeProvider$1 as ot, Stack as p, _getResponsiveSpace as pt, responsivePaddingStyle as q, MenuItem as r, useTheme_v2 as rt, Hotkeys as s, createGlobalScopedContext as st, TabList as t, focusRingStyle as tt, TooltipDelayGroupContext as u, responsiveFont as ut, Layer as v, isHTMLAnchorElement as vt, Arrow as w, EMPTY_ARRAY as wt, useBoundaryElement as x, isHTMLInputElement as xt, useLayer as y, isHTMLButtonElement as yt, Button as z };
3353
3251
 
3354
3252
  //# sourceMappingURL=tabList.mjs.map