@sanity/ui 3.4.2 → 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.
package/dist/index.mjs CHANGED
@@ -109,8 +109,8 @@ function labelBaseStyle(props) {
109
109
  }
110
110
  const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
111
111
  displayName: "StyledLabel",
112
- componentId: "sc-cvgwlt-0"
113
- })(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), LabelComponent = forwardRef(function(props, ref) {
112
+ componentId: "sc-rdxcu9-0"
113
+ })(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), Label = forwardRef(function Label(props, ref) {
114
114
  let $ = c(26), accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
115
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);
116
116
  let muted = t0 !== void 0 && t0, size = t1 === void 0 ? 2 : t1, children = childrenProp;
@@ -137,14 +137,7 @@ const StyledLabel = /* @__PURE__ */ styled.div.withConfig({
137
137
  ref,
138
138
  children
139
139
  }), $[17] = accent, $[18] = children, $[19] = muted, $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3, $[24] = weight, $[25] = t4) : t4 = $[25], t4;
140
- });
141
- LabelComponent.displayName = "ForwardRef(Label)";
142
- /**
143
- * Typographic labels.
144
- *
145
- * @public
146
- */
147
- const Label = LabelComponent, avatarStyle = {
140
+ }), avatarStyle = {
148
141
  root: avatarRootStyle,
149
142
  arrow: avatarArrowStyle,
150
143
  bgStroke: avatarBgStrokeStyle,
@@ -263,26 +256,26 @@ function avatarStrokeStyle() {
263
256
  }
264
257
  const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
265
258
  displayName: "StyledAvatar",
266
- componentId: "sc-jxq2u8-0"
259
+ componentId: "sc-skil6v-0"
267
260
  })(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1 = /* @__PURE__ */ styled.div.withConfig({
268
261
  displayName: "Arrow",
269
- componentId: "sc-jxq2u8-1"
262
+ componentId: "sc-skil6v-1"
270
263
  })(avatarStyle.arrow), BgStroke = /* @__PURE__ */ styled.ellipse.withConfig({
271
264
  displayName: "BgStroke",
272
- componentId: "sc-jxq2u8-2"
265
+ componentId: "sc-skil6v-2"
273
266
  })(avatarStyle.bgStroke), Stroke = /* @__PURE__ */ styled.ellipse.withConfig({
274
267
  displayName: "Stroke",
275
- componentId: "sc-jxq2u8-3"
268
+ componentId: "sc-skil6v-3"
276
269
  })(avatarStyle.stroke), Initials = /* @__PURE__ */ styled.div.withConfig({
277
270
  displayName: "Initials",
278
- componentId: "sc-jxq2u8-4"
271
+ componentId: "sc-skil6v-4"
279
272
  })(avatarStyle.initials), InitialsLabel = /* @__PURE__ */ styled(Label).withConfig({
280
273
  displayName: "InitialsLabel",
281
- componentId: "sc-jxq2u8-5"
274
+ componentId: "sc-skil6v-5"
282
275
  })({ color: "inherit" }), AvatarImage = /* @__PURE__ */ styled.svg.withConfig({
283
276
  displayName: "AvatarImage",
284
- componentId: "sc-jxq2u8-6"
285
- })(avatarStyle.image), AvatarComponent = forwardRef(function(props, ref) {
277
+ componentId: "sc-skil6v-6"
278
+ })(avatarStyle.image), Avatar = forwardRef(function Avatar(props, ref) {
286
279
  let $ = c(46), __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
287
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);
288
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;
@@ -374,13 +367,6 @@ const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
374
367
  ]
375
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;
376
369
  });
377
- AvatarComponent.displayName = "ForwardRef(Avatar)";
378
- /**
379
- * Avatars are used to represent people and other agents (e.g. bots).
380
- *
381
- * @public
382
- */
383
- const Avatar = AvatarComponent;
384
370
  function _temp$4(s) {
385
371
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
386
372
  }
@@ -401,8 +387,8 @@ function _avatarCounterBaseStyle(props) {
401
387
  }
402
388
  const StyledAvatarCounter = /* @__PURE__ */ styled.div.withConfig({
403
389
  displayName: "StyledAvatarCounter",
404
- componentId: "sc-s1txqz-0"
405
- })(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = forwardRef(function(props, ref) {
390
+ componentId: "sc-6uv8jj-0"
391
+ })(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = forwardRef(function AvatarCounter(props, ref) {
406
392
  let $ = c(20), { count, size: t0 } = props, sizeProp = t0 === void 0 ? 1 : t0, T0, T1, t1, t2, t3, t4, t5;
407
393
  if ($[0] !== ref || $[1] !== sizeProp) {
408
394
  let size = _getArrayProp(sizeProp);
@@ -423,7 +409,6 @@ const StyledAvatarCounter = /* @__PURE__ */ styled.div.withConfig({
423
409
  children: t6
424
410
  }), $[14] = T1, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19], t7;
425
411
  });
426
- AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
427
412
  function _temp$3(s) {
428
413
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
429
414
  }
@@ -440,8 +425,8 @@ function responsiveAvatarStackSizeStyle(props) {
440
425
  }
441
426
  const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
442
427
  displayName: "StyledAvatarStack",
443
- componentId: "sc-ks59o1-0"
444
- })(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = forwardRef(function(props, ref) {
428
+ componentId: "sc-ttibh-0"
429
+ })(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = forwardRef(function AvatarStack(props, ref) {
445
430
  let $ = c(38), childrenProp, restProps, t0, t1;
446
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);
447
432
  let maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, T0, t2, t3, t4, t5, t6, t7, t8;
@@ -472,7 +457,6 @@ const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
472
457
  ]
473
458
  }), $[29] = T0, $[30] = t2, $[31] = t3, $[32] = t4, $[33] = t5, $[34] = t6, $[35] = t7, $[36] = t8, $[37] = t9) : t9 = $[37], t9;
474
459
  });
475
- AvatarStack.displayName = "ForwardRef(AvatarStack)";
476
460
  function badgeStyle(props) {
477
461
  let { $tone } = props;
478
462
  return {
@@ -488,8 +472,8 @@ function badgeStyle(props) {
488
472
  }
489
473
  const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
490
474
  displayName: "StyledBadge",
491
- componentId: "sc-p8fi74-0"
492
- })(responsiveRadiusStyle, badgeStyle), BadgeComponent = forwardRef(function(props, ref) {
475
+ componentId: "sc-nx309b-0"
476
+ })(responsiveRadiusStyle, badgeStyle), Badge = forwardRef(function Badge(props, ref) {
493
477
  let $ = c(21), children, restProps, t0, t1, t2, t3;
494
478
  if ($[0] !== props) {
495
479
  let { children: t4, fontSize: t5, mode: _deprecated_mode, padding: t6, radius: t7, tone: t8, ...t9 } = props;
@@ -515,13 +499,6 @@ const StyledBadge = /* @__PURE__ */ styled(Box).withConfig({
515
499
  children: t6
516
500
  }), $[14] = ref, $[15] = restProps, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = tone, $[20] = t7) : t7 = $[20], t7;
517
501
  });
518
- BadgeComponent.displayName = "ForwardRef(Badge)";
519
- /**
520
- * Badges are used to tag resources.
521
- *
522
- * @public
523
- */
524
- const Badge = BadgeComponent;
525
502
  /**
526
503
  * @deprecated instead of `useArrayProp(width)` use `Array.isArray(width) ? width : [width]` instead
527
504
  * @beta
@@ -642,11 +619,11 @@ function inputElementStyles(props) {
642
619
  }
643
620
  const StyledCheckbox = /* @__PURE__ */ styled.div.withConfig({
644
621
  displayName: "StyledCheckbox",
645
- componentId: "sc-eqpl40-0"
622
+ componentId: "sc-964wbx-0"
646
623
  })(checkboxBaseStyles), Input$4 = /* @__PURE__ */ styled.input.withConfig({
647
624
  displayName: "Input",
648
- componentId: "sc-eqpl40-1"
649
- })(inputElementStyles), Checkbox = forwardRef(function(props, forwardedRef) {
625
+ componentId: "sc-964wbx-1"
626
+ })(inputElementStyles), Checkbox = forwardRef(function Checkbox(props, forwardedRef) {
650
627
  let $ = c(25), checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
651
628
  $[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);
652
629
  let ref = useRef(null), t0;
@@ -676,7 +653,6 @@ const StyledCheckbox = /* @__PURE__ */ styled.div.withConfig({
676
653
  children: [t6, t7]
677
654
  }), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8) : t8 = $[24], t8;
678
655
  });
679
- Checkbox.displayName = "ForwardRef(Checkbox)";
680
656
  function codeSyntaxHighlightingStyle({ theme }) {
681
657
  let { color: { syntax: color } } = getTheme_v2(theme);
682
658
  return {
@@ -723,8 +699,8 @@ function codeBaseStyle() {
723
699
  }
724
700
  const LazyRefractor = lazy(() => import("./_chunks/refractor.mjs")), StyledCode = /* @__PURE__ */ styled.pre.withConfig({
725
701
  displayName: "StyledCode",
726
- componentId: "sc-botxhl-0"
727
- })(codeBaseStyle, responsiveCodeFontStyle), CodeComponent = forwardRef(function(props, ref) {
702
+ componentId: "sc-yq3svj-0"
703
+ })(codeBaseStyle, responsiveCodeFontStyle), Code = forwardRef(function Code(props, ref) {
728
704
  let $ = c(22), children, language, restProps, t0, weight;
729
705
  $[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);
730
706
  let size = t0 === void 0 ? 2 : t0, t1;
@@ -750,12 +726,7 @@ const LazyRefractor = lazy(() => import("./_chunks/refractor.mjs")), StyledCode
750
726
  ref,
751
727
  children: t5
752
728
  }), $[16] = ref, $[17] = restProps, $[18] = t1, $[19] = t2, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
753
- });
754
- CodeComponent.displayName = "ForwardRef(Code)";
755
- /**
756
- * @public
757
- */
758
- const Code = CodeComponent, BASE_STYLE = {
729
+ }), BASE_STYLE = {
759
730
  width: "100%",
760
731
  margin: "0 auto"
761
732
  };
@@ -768,8 +739,8 @@ function responsiveContainerWidthStyle(props) {
768
739
  }
769
740
  const StyledContainer = /* @__PURE__ */ styled(Box).withConfig({
770
741
  displayName: "StyledContainer",
771
- componentId: "sc-un6r8j-0"
772
- })(containerBaseStyle, responsiveContainerWidthStyle), ContainerComponent = forwardRef(function(props, ref) {
742
+ componentId: "sc-kuh7wj-0"
743
+ })(containerBaseStyle, responsiveContainerWidthStyle), Container = forwardRef(function Container(props, ref) {
773
744
  let $ = c(11), as, restProps, t0;
774
745
  $[0] === props ? (as = $[1], restProps = $[2], t0 = $[3]) : ({as, width: t0, ...restProps} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0);
775
746
  let width = t0 === void 0 ? 2 : t0, t1;
@@ -783,21 +754,14 @@ const StyledContainer = /* @__PURE__ */ styled(Box).withConfig({
783
754
  ref
784
755
  }), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
785
756
  });
786
- ContainerComponent.displayName = "ForwardRef(Container)";
787
- /**
788
- * The `Container` component wraps content layout in a defined set of widths.
789
- *
790
- * @public
791
- */
792
- const Container = ContainerComponent;
793
757
  function headingBaseStyle(props) {
794
758
  let { $accent, $muted } = props, { font } = getTheme_v2(props.theme);
795
759
  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;}`;
796
760
  }
797
761
  const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
798
762
  displayName: "StyledHeading",
799
- componentId: "sc-7dzjaf-0"
800
- })(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), HeadingComponent = forwardRef(function(props, ref) {
763
+ componentId: "sc-48fn8j-0"
764
+ })(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), Heading = forwardRef(function Heading(props, ref) {
801
765
  let $ = c(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
802
766
  $[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);
803
767
  let accent = t0 !== void 0 && t0, muted = t1 !== void 0 && t1, size = t2 === void 0 ? 2 : t2, children = childrenProp;
@@ -824,13 +788,6 @@ const StyledHeading = /* @__PURE__ */ styled.div.withConfig({
824
788
  children: t5
825
789
  }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
826
790
  });
827
- HeadingComponent.displayName = "ForwardRef(Heading)";
828
- /**
829
- * Typographic headings.
830
- *
831
- * @public
832
- */
833
- const Heading = HeadingComponent;
834
791
  /**
835
792
  * @public
836
793
  */
@@ -846,7 +803,6 @@ function BoundaryElementProvider(props) {
846
803
  children
847
804
  }), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
848
805
  }
849
- BoundaryElementProvider.displayName = "BoundaryElementProvider";
850
806
  /**
851
807
  * @internal
852
808
  * @deprecated this component will be removed in the next major release
@@ -854,7 +810,6 @@ BoundaryElementProvider.displayName = "BoundaryElementProvider";
854
810
  function ConditionalWrapper({ children, condition, wrapper }) {
855
811
  return condition ? wrapper(children) : children;
856
812
  }
857
- ConditionalWrapper.displayName = "ConditionalWrapper";
858
813
  function findMaxBreakpoints(media, width) {
859
814
  let ret = [];
860
815
  for (let i = 0; i < media.length; i += 1) media[i] > width && ret.push(i);
@@ -869,7 +824,7 @@ function findMinBreakpoints(media, width) {
869
824
  * DO NOT USE IN PRODUCTION.
870
825
  * @beta
871
826
  */
872
- const ElementQuery = forwardRef(function(props, forwardedRef) {
827
+ const ElementQuery = forwardRef(function ElementQuery(props, forwardedRef) {
873
828
  let $ = c(18), theme = useTheme_v2(), _media, children, restProps;
874
829
  $[0] === props ? (_media = $[1], children = $[2], restProps = $[3]) : ({children, media: _media, ...restProps} = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps);
875
830
  let media = _media ?? theme.media, [element, setElement] = useState(null), width = useElementSize(element)?.border.width ?? window.innerWidth, t0;
@@ -894,7 +849,6 @@ const ElementQuery = forwardRef(function(props, forwardedRef) {
894
849
  children
895
850
  }), $[13] = children, $[14] = max, $[15] = min, $[16] = restProps, $[17] = t4) : t4 = $[17], t4;
896
851
  });
897
- ElementQuery.displayName = "ForwardRef(ElementQuery)";
898
852
  /**
899
853
  * DO NOT USE IN PRODUCTION
900
854
  * @beta
@@ -917,8 +871,8 @@ var ErrorBoundary = class extends Component {
917
871
  };
918
872
  const StyledSrOnly = styled.div.withConfig({
919
873
  displayName: "StyledSrOnly",
920
- componentId: "sc-wsuz6k-0"
921
- })`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`, SrOnly = forwardRef(function(props, ref) {
874
+ componentId: "sc-ow9exq-0"
875
+ })`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`, SrOnly = forwardRef(function SrOnly(props, ref) {
922
876
  let $ = c(4), { as, children } = props, t0;
923
877
  return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ jsx(StyledSrOnly, {
924
878
  "aria-hidden": !0,
@@ -927,15 +881,13 @@ const StyledSrOnly = styled.div.withConfig({
927
881
  ref,
928
882
  children
929
883
  }), $[0] = as, $[1] = children, $[2] = ref, $[3] = t0) : t0 = $[3], t0;
930
- });
931
- SrOnly.displayName = "ForwardRef(SrOnly)";
932
- const StyledVirtualList = styled.div.withConfig({
884
+ }), StyledVirtualList = styled.div.withConfig({
933
885
  displayName: "StyledVirtualList",
934
- componentId: "sc-2o92jb-0"
886
+ componentId: "sc-ok1q5x-0"
935
887
  })`position:relative;`, ItemWrapper = styled.div.withConfig({
936
888
  displayName: "ItemWrapper",
937
- componentId: "sc-2o92jb-1"
938
- })`position:absolute;left:0;right:0;`, VirtualList = forwardRef(function(props, forwardedRef) {
889
+ componentId: "sc-ok1q5x-1"
890
+ })`position:absolute;left:0;right:0;`, VirtualList = forwardRef(function VirtualList(props, forwardedRef) {
939
891
  let $ = c(44), getItemKey, onChange, renderItem, restProps, t0, t1, t2;
940
892
  $[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);
941
893
  let as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1, t3;
@@ -1024,7 +976,6 @@ const StyledVirtualList = styled.div.withConfig({
1024
976
  children: t13
1025
977
  }), $[40] = as, $[41] = restProps, $[42] = t13, $[43] = t14) : t14 = $[43], t14;
1026
978
  });
1027
- VirtualList.displayName = "ForwardRef(VirtualList)";
1028
979
  function useChildren(t0) {
1029
980
  let $ = c(21), { fromIndex, gap, getItemKey, itemHeight, items, renderItem, space, toIndex } = t0;
1030
981
  if (!renderItem || items.length === 0) return null;
@@ -1076,11 +1027,11 @@ function inputElementStyle(props) {
1076
1027
  }
1077
1028
  const StyledRadio = /* @__PURE__ */ styled.div.withConfig({
1078
1029
  displayName: "StyledRadio",
1079
- componentId: "sc-6sng01-0"
1030
+ componentId: "sc-zbat2j-0"
1080
1031
  })(radioBaseStyle), Input$3 = /* @__PURE__ */ styled.input.withConfig({
1081
1032
  displayName: "Input",
1082
- componentId: "sc-6sng01-1"
1083
- })(inputElementStyle), Radio = forwardRef(function(props, forwardedRef) {
1033
+ componentId: "sc-zbat2j-1"
1034
+ })(inputElementStyle), Radio = forwardRef(function Radio(props, forwardedRef) {
1084
1035
  let $ = c(19), className, customValidity, disabled, readOnly, restProps, style;
1085
1036
  $[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);
1086
1037
  let ref = useRef(null), t0;
@@ -1105,7 +1056,6 @@ const StyledRadio = /* @__PURE__ */ styled.div.withConfig({
1105
1056
  children: [t4, t5]
1106
1057
  }), $[15] = className, $[16] = style, $[17] = t4, $[18] = t6) : t6 = $[18], t6;
1107
1058
  });
1108
- Radio.displayName = "ForwardRef(Radio)";
1109
1059
  function rootStyle() {
1110
1060
  return css`position:relative;width:-moz-available;width:-webkit-fill-available;width:stretch;&:not([hidden]){display:inline-block;}`;
1111
1061
  }
@@ -1164,14 +1114,14 @@ const selectStyle = {
1164
1114
  iconBox: iconBoxStyle
1165
1115
  }, StyledSelect = /* @__PURE__ */ styled.div.withConfig({
1166
1116
  displayName: "StyledSelect",
1167
- componentId: "sc-gi1uze-0"
1117
+ componentId: "sc-ecog6m-0"
1168
1118
  })(selectStyle.root), Input$2 = /* @__PURE__ */ styled.select.withConfig({
1169
1119
  displayName: "Input",
1170
- componentId: "sc-gi1uze-1"
1120
+ componentId: "sc-ecog6m-1"
1171
1121
  })(selectStyle.input), IconBox = /* @__PURE__ */ styled(Box).withConfig({
1172
1122
  displayName: "IconBox",
1173
- componentId: "sc-gi1uze-2"
1174
- })(selectStyle.iconBox), Select = forwardRef(function(props, forwardedRef) {
1123
+ componentId: "sc-ecog6m-2"
1124
+ })(selectStyle.iconBox), Select = forwardRef(function Select(props, forwardedRef) {
1175
1125
  let $ = c(38), children, customValidity, disabled, gap, readOnly, restProps, t0, t1, t2, t3;
1176
1126
  $[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);
1177
1127
  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;
@@ -1215,7 +1165,6 @@ const selectStyle = {
1215
1165
  children: [t11, t14]
1216
1166
  }), $[35] = t11, $[36] = t14, $[37] = t15) : t15 = $[37], t15;
1217
1167
  });
1218
- Select.displayName = "ForwardRef(Select)";
1219
1168
  function switchBaseStyles() {
1220
1169
  return css`position:relative;&:not([hidden]){display:inline-block;}`;
1221
1170
  }
@@ -1236,20 +1185,20 @@ function switchThumbStyles(props) {
1236
1185
  }
1237
1186
  const StyledSwitch = /* @__PURE__ */ styled.span.withConfig({
1238
1187
  displayName: "StyledSwitch",
1239
- componentId: "sc-2t29u1-0"
1188
+ componentId: "sc-aod7y9-0"
1240
1189
  })(switchBaseStyles), Input$1 = /* @__PURE__ */ styled.input.withConfig({
1241
1190
  displayName: "Input",
1242
- componentId: "sc-2t29u1-1"
1191
+ componentId: "sc-aod7y9-1"
1243
1192
  })(switchInputStyles), Representation = /* @__PURE__ */ styled.span.withConfig({
1244
1193
  displayName: "Representation",
1245
- componentId: "sc-2t29u1-2"
1194
+ componentId: "sc-aod7y9-2"
1246
1195
  })(switchRepresentationStyles), Track = /* @__PURE__ */ styled.span.withConfig({
1247
1196
  displayName: "Track",
1248
- componentId: "sc-2t29u1-3"
1197
+ componentId: "sc-aod7y9-3"
1249
1198
  })(switchTrackStyles), Thumb = /* @__PURE__ */ styled.span.withConfig({
1250
1199
  displayName: "Thumb",
1251
- componentId: "sc-2t29u1-4"
1252
- })(switchThumbStyles), Switch = forwardRef(function(props, forwardedRef) {
1200
+ componentId: "sc-aod7y9-4"
1201
+ })(switchThumbStyles), Switch = forwardRef(function Switch(props, forwardedRef) {
1253
1202
  let $ = c(26), checked, className, disabled, indeterminate, readOnly, restProps, style;
1254
1203
  $[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);
1255
1204
  let ref = useRef(null), t0;
@@ -1285,21 +1234,19 @@ const StyledSwitch = /* @__PURE__ */ styled.span.withConfig({
1285
1234
  style,
1286
1235
  children: [t6, t8]
1287
1236
  }), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
1288
- });
1289
- Switch.displayName = "ForwardRef(Switch)";
1290
- const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
1237
+ }), StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
1291
1238
  displayName: "StyledTextArea",
1292
- componentId: "sc-5c9kno-0"
1239
+ componentId: "sc-vgfdnn-0"
1293
1240
  })(textInputRootStyle), InputRoot = styled.span.withConfig({
1294
1241
  displayName: "InputRoot",
1295
- componentId: "sc-5c9kno-1"
1242
+ componentId: "sc-vgfdnn-1"
1296
1243
  })`flex:1;min-width:0;display:block;position:relative;`, Input = /* @__PURE__ */ styled.textarea.withConfig({
1297
1244
  displayName: "Input",
1298
- componentId: "sc-5c9kno-2"
1245
+ componentId: "sc-vgfdnn-2"
1299
1246
  })(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled.div.withConfig({
1300
1247
  displayName: "Presentation",
1301
- componentId: "sc-5c9kno-3"
1302
- })(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function(props, forwardedRef) {
1248
+ componentId: "sc-vgfdnn-3"
1249
+ })(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function TextArea(props, forwardedRef) {
1303
1250
  let $ = c(35), __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
1304
1251
  $[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);
1305
1252
  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;
@@ -1343,7 +1290,6 @@ const StyledTextArea = /* @__PURE__ */ styled.span.withConfig({
1343
1290
  children: /* @__PURE__ */ jsxs(InputRoot, { children: [t12, t15] })
1344
1291
  }), $[32] = t12, $[33] = t15, $[34] = t16) : t16 = $[34], t16;
1345
1292
  });
1346
- TextArea.displayName = "ForwardRef(TextArea)";
1347
1293
  /**
1348
1294
  * @public
1349
1295
  * Provides context for a group of tooltip elements that should share a delay
@@ -1364,7 +1310,6 @@ function TooltipDelayGroupProvider(props) {
1364
1310
  children
1365
1311
  }), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
1366
1312
  }
1367
- TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
1368
1313
  /**
1369
1314
  * @internal
1370
1315
  */
@@ -1457,7 +1402,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
1457
1402
  "Meta",
1458
1403
  "Tab",
1459
1404
  "CapsLock"
1460
- ], AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS = ["bottom-start", "top-start"], DEFAULT_RENDER_VALUE = (value, option) => option ? option.value : value, DEFAULT_FILTER_OPTION = (query, option) => option.value.toLowerCase().indexOf(query.toLowerCase()) > -1, InnerAutocomplete = forwardRef(function(props, forwardedRef) {
1405
+ ], 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) {
1461
1406
  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;
1462
1407
  $[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);
1463
1408
  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;
@@ -1810,7 +1755,6 @@ function RenderPopover({ renderPopover, content, hidden, inputElement, onMouseEn
1810
1755
  onMouseLeave
1811
1756
  }, resultsPopoverElementRef);
1812
1757
  }
1813
- InnerAutocomplete.displayName = "ForwardRef(Autocomplete)";
1814
1758
  /**
1815
1759
  * The Autocomplete component is typically used for search components.
1816
1760
  * It consists of a text input for writing a query, and properties for rendering suggestions.
@@ -1830,7 +1774,7 @@ const StyledBreadcrumbs = styled.ol.withConfig({
1830
1774
  })`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`, ExpandButton = styled(Button).withConfig({
1831
1775
  displayName: "ExpandButton",
1832
1776
  componentId: "sc-b0flr4-1"
1833
- })`appearance:none;margin:-4px;`, Breadcrumbs = forwardRef(function(props, ref) {
1777
+ })`appearance:none;margin:-4px;`, Breadcrumbs = forwardRef(function Breadcrumbs(props, ref) {
1834
1778
  let $ = c(30), children, gap, maxLength, restProps, separator, t0;
1835
1779
  $[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);
1836
1780
  let t1 = gap === void 0 ? t0 === void 0 ? 2 : t0 : gap, t2;
@@ -1878,7 +1822,6 @@ const StyledBreadcrumbs = styled.ol.withConfig({
1878
1822
  children: t8
1879
1823
  }), $[26] = ref, $[27] = restProps, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
1880
1824
  });
1881
- Breadcrumbs.displayName = "ForwardRef(Breadcrumbs)";
1882
1825
  function useItems(t0) {
1883
1826
  let $ = c(28), { collapse, expand, expandElementRef, maxLength, open, popoverElementRef, rawItems, space } = t0, len = rawItems.length;
1884
1827
  if (maxLength && len > maxLength) {
@@ -1960,26 +1903,26 @@ function isTargetWithinScope(boundaryElement, portalElement, target) {
1960
1903
  }
1961
1904
  const StyledDialog = /* @__PURE__ */ styled(Layer).withConfig({
1962
1905
  displayName: "StyledDialog",
1963
- componentId: "sc-r9i1m3-0"
1906
+ componentId: "sc-2s0up-0"
1964
1907
  })(responsivePaddingStyle, dialogStyle, responsiveDialogPositionStyle, animationDialogStyle), DialogContainer = styled(Container).withConfig({
1965
1908
  displayName: "DialogContainer",
1966
- componentId: "sc-r9i1m3-1"
1909
+ componentId: "sc-2s0up-1"
1967
1910
  })`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`, DialogCardRoot = styled(Card).withConfig({
1968
1911
  displayName: "DialogCardRoot",
1969
- componentId: "sc-r9i1m3-2"
1912
+ componentId: "sc-2s0up-2"
1970
1913
  })`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`, DialogLayout = styled(Flex).withConfig({
1971
1914
  displayName: "DialogLayout",
1972
- componentId: "sc-r9i1m3-3"
1915
+ componentId: "sc-2s0up-3"
1973
1916
  })`flex:1;min-height:0;width:100%;`, DialogHeader = styled(Box).withConfig({
1974
1917
  displayName: "DialogHeader",
1975
- componentId: "sc-r9i1m3-4"
1918
+ componentId: "sc-2s0up-4"
1976
1919
  })`position:relative;z-index:2;`, DialogContent = styled(Box).withConfig({
1977
1920
  displayName: "DialogContent",
1978
- componentId: "sc-r9i1m3-5"
1921
+ componentId: "sc-2s0up-5"
1979
1922
  })`position:relative;z-index:1;overflow:auto;outline:none;`, DialogFooter = styled(Box).withConfig({
1980
1923
  displayName: "DialogFooter",
1981
- componentId: "sc-r9i1m3-6"
1982
- })`position:relative;z-index:3;`, DialogCard = forwardRef(function(props, forwardedRef) {
1924
+ componentId: "sc-2s0up-6"
1925
+ })`position:relative;z-index:3;`, DialogCard = forwardRef(function DialogCard(props, forwardedRef) {
1983
1926
  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;
1984
1927
  $[0] === radiusProp ? t0 = $[1] : (t0 = _getArrayProp(radiusProp), $[0] = radiusProp, $[1] = t0);
1985
1928
  let radius = t0, t1;
@@ -2064,14 +2007,7 @@ const StyledDialog = /* @__PURE__ */ styled(Layer).withConfig({
2064
2007
  width,
2065
2008
  children: t14
2066
2009
  }), $[41] = t14, $[42] = width, $[43] = t15) : t15 = $[43], t15;
2067
- });
2068
- DialogCard.displayName = "ForwardRef(DialogCard)";
2069
- /**
2070
- * The Dialog component.
2071
- *
2072
- * @public
2073
- */
2074
- const Dialog = forwardRef(function(props, ref) {
2010
+ }), Dialog = forwardRef(function Dialog(props, ref) {
2075
2011
  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;
2076
2012
  $[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);
2077
2013
  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;
@@ -2169,7 +2105,6 @@ const Dialog = forwardRef(function(props, ref) {
2169
2105
  children: t17
2170
2106
  }), $[67] = portalProp, $[68] = t17, $[69] = t18) : t18 = $[69], t18;
2171
2107
  });
2172
- Dialog.displayName = "ForwardRef(Dialog)";
2173
2108
  /**
2174
2109
  * This API might change. DO NOT USE IN PRODUCTION.
2175
2110
  * @beta
@@ -2187,13 +2122,12 @@ function DialogProvider(props) {
2187
2122
  children
2188
2123
  }), $[3] = children, $[4] = contextValue, $[5] = t1) : t1 = $[5], t1;
2189
2124
  }
2190
- DialogProvider.displayName = "DialogProvider";
2191
2125
  /**
2192
2126
  * The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
2193
2127
  *
2194
2128
  * @public
2195
2129
  */
2196
- const MenuButton = forwardRef(function(props, forwardedRef) {
2130
+ const MenuButton = forwardRef(function MenuButton(props, forwardedRef) {
2197
2131
  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;
2198
2132
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[0] = t2) : t2 = $[0];
2199
2133
  let [menuElements, setChildMenuElements] = useState(t2), openRef = useRef(open), t3, t4;
@@ -2302,14 +2236,13 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
2302
2236
  children: t23
2303
2237
  }), $[57] = menu, $[58] = open, $[59] = popoverProps, $[60] = t23, $[61] = t24) : t24 = $[61], t24;
2304
2238
  });
2305
- MenuButton.displayName = "ForwardRef(MenuButton)";
2306
2239
  function _temp$1(v) {
2307
2240
  return !v;
2308
2241
  }
2309
2242
  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({
2310
2243
  displayName: "StyledSkeleton",
2311
- componentId: "sc-zuj2vq-0"
2312
- })(responsiveRadiusStyle, skeletonStyle), Skeleton = forwardRef(function(props, ref) {
2244
+ componentId: "sc-xewr8x-0"
2245
+ })(responsiveRadiusStyle, skeletonStyle), Skeleton = forwardRef(function Skeleton(props, ref) {
2313
2246
  let $ = c(16), delay, radius, restProps, t0;
2314
2247
  $[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);
2315
2248
  let animated = t0 !== void 0 && t0, [visible, setVisible] = useState(!delay), t1, t2;
@@ -2332,18 +2265,16 @@ const animation = css`background-image:linear-gradient( to right,var(--card-skel
2332
2265
  $visible: t4,
2333
2266
  ref
2334
2267
  }), $[10] = animated, $[11] = ref, $[12] = restProps, $[13] = t3, $[14] = t4, $[15] = t5) : t5 = $[15], t5;
2335
- });
2336
- Skeleton.displayName = "ForwardRef(Skeleton)";
2337
- const StyledSkeleton = /* @__PURE__ */ styled(Skeleton).withConfig({
2268
+ }), StyledSkeleton = /* @__PURE__ */ styled(Skeleton).withConfig({
2338
2269
  displayName: "StyledSkeleton",
2339
- componentId: "sc-9op362-0"
2270
+ componentId: "sc-d8ims-0"
2340
2271
  })((props) => {
2341
2272
  let { $size, $style } = props, { font, media } = getTheme_v2(props.theme), fontStyle = font[$style];
2342
2273
  return _responsive(media, $size, (sizeIndex) => {
2343
2274
  let fontSize = fontStyle.sizes[sizeIndex];
2344
2275
  return { height: fontSize.lineHeight - fontSize.ascenderHeight - fontSize.descenderHeight };
2345
2276
  });
2346
- }), TextSkeleton = forwardRef(function(props, ref) {
2277
+ }), TextSkeleton = forwardRef(function TextSkeleton(props, ref) {
2347
2278
  let $ = c(9), restProps, t0;
2348
2279
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2349
2280
  let size = t0 === void 0 ? 2 : t0, t1;
@@ -2355,13 +2286,7 @@ const StyledSkeleton = /* @__PURE__ */ styled(Skeleton).withConfig({
2355
2286
  ref,
2356
2287
  $style: "text"
2357
2288
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2358
- });
2359
- TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
2360
- /**
2361
- * This API might change. DO NOT USE IN PRODUCTION.
2362
- * @beta
2363
- */
2364
- const LabelSkeleton = forwardRef(function(props, ref) {
2289
+ }), LabelSkeleton = forwardRef(function LabelSkeleton(props, ref) {
2365
2290
  let $ = c(9), restProps, t0;
2366
2291
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2367
2292
  let size = t0 === void 0 ? 2 : t0, t1;
@@ -2373,13 +2298,7 @@ const LabelSkeleton = forwardRef(function(props, ref) {
2373
2298
  ref,
2374
2299
  $style: "label"
2375
2300
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2376
- });
2377
- LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
2378
- /**
2379
- * This API might change. DO NOT USE IN PRODUCTION.
2380
- * @beta
2381
- */
2382
- const HeadingSkeleton = forwardRef(function(props, ref) {
2301
+ }), HeadingSkeleton = forwardRef(function HeadingSkeleton(props, ref) {
2383
2302
  let $ = c(9), restProps, t0;
2384
2303
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2385
2304
  let size = t0 === void 0 ? 2 : t0, t1;
@@ -2391,13 +2310,7 @@ const HeadingSkeleton = forwardRef(function(props, ref) {
2391
2310
  ref,
2392
2311
  $style: "heading"
2393
2312
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2394
- });
2395
- HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
2396
- /**
2397
- * This API might change. DO NOT USE IN PRODUCTION.
2398
- * @beta
2399
- */
2400
- const CodeSkeleton = forwardRef(function(props, ref) {
2313
+ }), CodeSkeleton = forwardRef(function CodeSkeleton(props, ref) {
2401
2314
  let $ = c(9), restProps, t0;
2402
2315
  $[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
2403
2316
  let size = t0 === void 0 ? 2 : t0, t1;
@@ -2409,12 +2322,7 @@ const CodeSkeleton = forwardRef(function(props, ref) {
2409
2322
  ref,
2410
2323
  $style: "code"
2411
2324
  }), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
2412
- });
2413
- CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
2414
- /**
2415
- * @public
2416
- */
2417
- const TabPanel = forwardRef(function(props, ref) {
2325
+ }), TabPanel = forwardRef(function TabPanel(props, ref) {
2418
2326
  let $ = c(9), flex, restProps;
2419
2327
  $[0] === props ? (flex = $[1], restProps = $[2]) : ({flex, ...restProps} = props, $[0] = props, $[1] = flex, $[2] = restProps);
2420
2328
  let t0 = props.tabIndex === void 0 ? 0 : props.tabIndex, t1;
@@ -2427,9 +2335,7 @@ const TabPanel = forwardRef(function(props, ref) {
2427
2335
  tabIndex: t0,
2428
2336
  children: props.children
2429
2337
  }), $[3] = flex, $[4] = props.children, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1) : t1 = $[8], t1;
2430
- });
2431
- TabPanel.displayName = "ForwardRef(TabPanel)";
2432
- const STATUS_CARD_TONE = {
2338
+ }), STATUS_CARD_TONE = {
2433
2339
  error: "critical",
2434
2340
  warning: "caution",
2435
2341
  success: "positive",
@@ -2567,7 +2473,6 @@ function Toast(props) {
2567
2473
  children: [t10, t11]
2568
2474
  }), $[40] = cardTone, $[41] = radius, $[42] = restProps, $[43] = role, $[44] = t10, $[45] = t11, $[46] = t5, $[47] = transition, $[48] = visualDuration, $[49] = t12) : t12 = $[49], t12;
2569
2475
  }
2570
- Toast.displayName = "Toast";
2571
2476
  const container = {
2572
2477
  initial: {
2573
2478
  y: 32,
@@ -2623,10 +2528,9 @@ function ToastLayer(props) {
2623
2528
  children
2624
2529
  }), $[2] = children, $[3] = gap, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = t2, $[8] = t3) : t3 = $[8], t3;
2625
2530
  }
2626
- ToastLayer.displayName = "ToastLayer";
2627
2531
  const StyledLayer = styled(Grid).withConfig({
2628
2532
  displayName: "StyledLayer",
2629
- componentId: "sc-8z432x-0"
2533
+ componentId: "sc-chanfh-0"
2630
2534
  })`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`;
2631
2535
  let toastId = 0;
2632
2536
  /** @internal */
@@ -2640,9 +2544,8 @@ function ToastProvider(props) {
2640
2544
  let $ = c(13), { children, padding, paddingX, paddingY, gap, zOffset: t0 } = props, zOffset = t0 === void 0 ? 1 : t0, t1;
2641
2545
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
2642
2546
  let [state, setState] = useState(t1), mounted = useMounted(), t2;
2643
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
2644
- version: 0,
2645
- push: (params) => {
2547
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
2548
+ let push = (params) => {
2646
2549
  let id = params.id || generateToastId(), duration = params.duration || 5e3;
2647
2550
  return startTransition(() => {
2648
2551
  setState((prevState) => {
@@ -2659,8 +2562,12 @@ function ToastProvider(props) {
2659
2562
  }];
2660
2563
  });
2661
2564
  }), id;
2662
- }
2663
- }, $[1] = t2) : t2 = $[1];
2565
+ };
2566
+ t2 = {
2567
+ version: 0,
2568
+ push
2569
+ }, $[1] = t2;
2570
+ } else t2 = $[1];
2664
2571
  let value = t2, t3;
2665
2572
  $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ jsx(LayerProvider, {
2666
2573
  zOffset,
@@ -2694,7 +2601,6 @@ function _temp(t0) {
2694
2601
  updatedAt
2695
2602
  }, id_0);
2696
2603
  }
2697
- ToastProvider.displayName = "ToastProvider";
2698
2604
  /**
2699
2605
  * @public
2700
2606
  */
@@ -2746,7 +2652,7 @@ function _focusItemElement(el) {
2746
2652
  /**
2747
2653
  * @internal
2748
2654
  */
2749
- const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null), Tree = forwardRef(function(props, forwardedRef) {
2655
+ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null), Tree = forwardRef(function Tree(props, forwardedRef) {
2750
2656
  let $ = c(38), children, gap, onFocus, restProps, t0;
2751
2657
  $[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);
2752
2658
  let spacing = gap === void 0 ? t0 === void 0 ? 1 : t0 : gap, ref = useRef(null), [focusedElement, setFocusedElement] = useState(null), focusedElementRef = useRef(focusedElement), t1;
@@ -2891,7 +2797,6 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
2891
2797
  children: t17
2892
2798
  }), $[35] = contextValue, $[36] = t17, $[37] = t18) : t18 = $[37], t18;
2893
2799
  });
2894
- Tree.displayName = "ForwardRef(Tree)";
2895
2800
  function treeItemRootStyle() {
2896
2801
  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;}}`;
2897
2802
  }
@@ -2928,13 +2833,13 @@ function TreeGroup(props) {
2928
2833
  }
2929
2834
  const StyledTreeItem = /* @__PURE__ */ styled.li.withConfig({
2930
2835
  displayName: "StyledTreeItem",
2931
- componentId: "sc-arsnlr-0"
2836
+ componentId: "sc-lxy9gh-0"
2932
2837
  })(treeItemRootStyle, treeItemRootColorStyle), TreeItemBox = /* @__PURE__ */ styled(Box).attrs({ forwardedAs: "a" }).withConfig({
2933
2838
  displayName: "TreeItemBox",
2934
- componentId: "sc-arsnlr-1"
2839
+ componentId: "sc-lxy9gh-1"
2935
2840
  })(treeItemBoxStyle), ToggleArrowText = styled(Text).withConfig({
2936
2841
  displayName: "ToggleArrowText",
2937
- componentId: "sc-arsnlr-2"
2842
+ componentId: "sc-lxy9gh-2"
2938
2843
  })`& > svg{transition:transform 100ms;}`;
2939
2844
  /**
2940
2845
  * This API might change. DO NOT USE IN PRODUCTION.
@@ -3091,7 +2996,6 @@ function TreeItem(props) {
3091
2996
  children: [t23, t25]
3092
2997
  }), $[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;
3093
2998
  }
3094
- TreeItem.displayName = "TreeItem";
3095
2999
  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 };
3096
3000
 
3097
3001
  //# sourceMappingURL=index.mjs.map