@sanity/ui 0.37.21 → 0.37.22

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.
@@ -9,5 +9,5 @@ export interface SpinnerProps {
9
9
  /**
10
10
  * @public
11
11
  */
12
- export declare const Spinner: React.ForwardRefExoticComponent<Pick<SpinnerProps & Omit<React.HTMLProps<HTMLDivElement>, "as" | "size">, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | keyof SpinnerProps> & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const Spinner: React.ForwardRefExoticComponent<Pick<SpinnerProps & Omit<React.HTMLProps<HTMLDivElement>, "as" | "size">, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | keyof SpinnerProps> & React.RefAttributes<HTMLDivElement>>;
13
13
  //# sourceMappingURL=spinner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/spinner/spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACzB;AAkBD;;GAEG;AACH,eAAO,MAAM,OAAO,22LASlB,CAAA"}
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/spinner/spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAIhD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACzB;AAID;;GAEG;AACH,eAAO,MAAM,OAAO,22LAYlB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { CSSObject, FlattenSimpleInterpolation } from 'styled-components';
2
+ import { ThemeProps } from '../../styles';
3
+ export declare function spinnerStyle(props: {
4
+ $muted?: boolean;
5
+ } & ThemeProps): FlattenSimpleInterpolation;
6
+ export declare function spinnerSizeStyle(props: {
7
+ $size: number[];
8
+ } & ThemeProps): CSSObject[];
9
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/spinner/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,SAAS,EAAE,0BAA0B,EAAY,MAAM,mBAAmB,CAAA;AACvF,OAAO,EAAkB,UAAU,EAAC,MAAM,cAAc,CAAA;AAYxD,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAC,GAAG,UAAU,GAAG,0BAA0B,CAO/F;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAC,GAAG,UAAU,GAAG,SAAS,EAAE,CAoBnF"}
package/lib/sanity-ui.js CHANGED
@@ -2639,7 +2639,7 @@ globalScope[key$7] = globalScope[key$7] || /*#__PURE__*/React.createContext(null
2639
2639
 
2640
2640
  var ThemeContext = globalScope[key$7];
2641
2641
 
2642
- var _excluded$H = ["color", "layer"];
2642
+ var _excluded$I = ["color", "layer"];
2643
2643
  /**
2644
2644
  * @public
2645
2645
  */
@@ -2658,7 +2658,7 @@ function ThemeProvider(props) {
2658
2658
 
2659
2659
  var rootColor = themeProp.color,
2660
2660
  rootLayer = themeProp.layer,
2661
- restTheme = _objectWithoutPropertiesLoose(themeProp, _excluded$H);
2661
+ restTheme = _objectWithoutPropertiesLoose(themeProp, _excluded$I);
2662
2662
 
2663
2663
  var colorScheme = rootColor[scheme] || rootColor.light;
2664
2664
  var color = colorScheme[tone] || colorScheme["default"];
@@ -3714,7 +3714,7 @@ function textBaseStyle(props) {
3714
3714
  return styled.css(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n color: var(--card-fg-color);\n\n ", "\n\n ", "\n\n & code {\n font-family: ", ";\n border-radius: 1px;\n background-color: var(--card-code-bg-color);\n color: var(--card-code-fg-color);\n }\n\n & a {\n text-decoration: none;\n border-radius: 1px;\n color: var(--card-link-color);\n outline: none;\n\n @media (hover: hover) {\n &:hover {\n text-decoration: underline;\n }\n }\n\n &:focus {\n box-shadow: 0 0 0 1px var(--card-bg-color), 0 0 0 3px var(--card-focus-ring-color);\n }\n\n &:focus:not(:focus-visible) {\n box-shadow: none;\n }\n }\n\n & strong {\n font-weight: ", ";\n }\n\n & [data-sanity-icon] {\n vertical-align: baseline;\n }\n "])), $accent && styled.css(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n color: var(--card-accent-fg-color);\n "]))), $muted && styled.css(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n color: var(--card-muted-fg-color);\n "]))), theme.sanity.fonts.code.family, weights.bold);
3715
3715
  }
3716
3716
 
3717
- var _excluded$G = ["accent", "align", "children", "muted", "size", "textOverflow", "weight"];
3717
+ var _excluded$H = ["accent", "align", "children", "muted", "size", "textOverflow", "weight"];
3718
3718
 
3719
3719
  var _templateObject$B;
3720
3720
  var Root$E = styled__default["default"].div(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle);
@@ -3734,7 +3734,7 @@ var Text = /*#__PURE__*/React.forwardRef(function Text(props, ref) {
3734
3734
  size = _props$size === void 0 ? 2 : _props$size,
3735
3735
  textOverflow = props.textOverflow,
3736
3736
  weight = props.weight,
3737
- restProps = _objectWithoutPropertiesLoose(props, _excluded$G);
3737
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$H);
3738
3738
 
3739
3739
  var children = childrenProp;
3740
3740
 
@@ -3894,7 +3894,7 @@ function avatarStrokeStyle() {
3894
3894
  };
3895
3895
  }
3896
3896
 
3897
- var _excluded$F = ["as", "color", "src", "title", "initials", "onImageLoadError", "arrowPosition", "animateArrowFrom", "status", "size"];
3897
+ var _excluded$G = ["as", "color", "src", "title", "initials", "onImageLoadError", "arrowPosition", "animateArrowFrom", "status", "size"];
3898
3898
  var Root$D = styled__default["default"].div(responsiveAvatarSizeStyle, avatarStyle.root);
3899
3899
  var Arrow = styled__default["default"].div(avatarStyle.arrow);
3900
3900
  var BgStroke = styled__default["default"].ellipse(avatarStyle.bgStroke);
@@ -3917,7 +3917,7 @@ var Avatar = /*#__PURE__*/React.forwardRef(function Avatar(props, ref) {
3917
3917
  _props$status = props.status,
3918
3918
  status = _props$status === void 0 ? 'online' : _props$status,
3919
3919
  sizeProp = props.size,
3920
- restProps = _objectWithoutPropertiesLoose(props, _excluded$F);
3920
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$G);
3921
3921
 
3922
3922
  var as = ReactIs__default["default"].isValidElementType(asProp) ? asProp : 'div';
3923
3923
  var size = useResponsiveProp(sizeProp, [0]);
@@ -4070,7 +4070,7 @@ function childrenToElementArray(children) {
4070
4070
  });
4071
4071
  }
4072
4072
 
4073
- var _excluded$E = ["children", "maxLength", "size", "tone"];
4073
+ var _excluded$F = ["children", "maxLength", "size", "tone"];
4074
4074
 
4075
4075
  var _templateObject$z;
4076
4076
  var BASE_STYLES = styled.css(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n\n & > div {\n vertical-align: top;\n\n &:not([hidden]) {\n display: inline-block;\n }\n }\n"])));
@@ -4106,7 +4106,7 @@ var AvatarStack = /*#__PURE__*/React.forwardRef(function AvatarStack(props, ref)
4106
4106
  maxLengthProp = _props$maxLength === void 0 ? 4 : _props$maxLength,
4107
4107
  _props$size = props.size,
4108
4108
  size = _props$size === void 0 ? 0 : _props$size,
4109
- restProps = _objectWithoutPropertiesLoose(props, _excluded$E);
4109
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$F);
4110
4110
 
4111
4111
  var maxLength = Math.max(maxLengthProp, 0);
4112
4112
  var children = childrenToElementArray(childrenProp).filter(function (child) {
@@ -4135,7 +4135,7 @@ var AvatarStack = /*#__PURE__*/React.forwardRef(function AvatarStack(props, ref)
4135
4135
  }));
4136
4136
  });
4137
4137
 
4138
- var _excluded$D = ["as", "column", "columnStart", "columnEnd", "display", "flex", "height", "margin", "marginX", "marginY", "marginTop", "marginRight", "marginBottom", "marginLeft", "overflow", "padding", "paddingX", "paddingY", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "row", "rowStart", "rowEnd", "sizing"];
4138
+ var _excluded$E = ["as", "column", "columnStart", "columnEnd", "display", "flex", "height", "margin", "marginX", "marginY", "marginTop", "marginRight", "marginBottom", "marginLeft", "overflow", "padding", "paddingX", "paddingY", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "row", "rowStart", "rowEnd", "sizing"];
4139
4139
  var Root$A = styled__default["default"].div(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle);
4140
4140
  /**
4141
4141
  * @public
@@ -4172,7 +4172,7 @@ var Box = /*#__PURE__*/React.forwardRef(function Box(props, ref) {
4172
4172
  rowStart = props.rowStart,
4173
4173
  rowEnd = props.rowEnd,
4174
4174
  sizing = props.sizing,
4175
- restProps = _objectWithoutPropertiesLoose(props, _excluded$D);
4175
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$E);
4176
4176
 
4177
4177
  return /*#__PURE__*/React__default["default"].createElement(Root$A, _extends({
4178
4178
  "data-as": typeof asProp === 'string' ? asProp : undefined,
@@ -4217,7 +4217,7 @@ function labelBaseStyle(props) {
4217
4217
  return styled.css(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n text-transform: uppercase;\n\n ", "\n\n ", "\n\n & code {\n font-family: ", ";\n border-radius: 1px;\n }\n\n & a {\n text-decoration: none;\n border-radius: 1px;\n }\n\n & [data-sanity-icon] {\n vertical-align: baseline;\n }\n "])), $accent && styled.css(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n color: var(--card-accent-fg-color);\n "]))), $muted && styled.css(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n color: var(--card-muted-fg-color);\n "]))), fonts.code.family);
4218
4218
  }
4219
4219
 
4220
- var _excluded$C = ["accent", "align", "children", "muted", "size", "textOverflow", "weight"];
4220
+ var _excluded$D = ["accent", "align", "children", "muted", "size", "textOverflow", "weight"];
4221
4221
 
4222
4222
  var _templateObject$x;
4223
4223
  var Root$z = styled__default["default"].div(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle);
@@ -4236,7 +4236,7 @@ var Label = /*#__PURE__*/React.forwardRef(function Label(props, ref) {
4236
4236
  size = _props$size === void 0 ? 2 : _props$size,
4237
4237
  textOverflow = props.textOverflow,
4238
4238
  weight = props.weight,
4239
- restProps = _objectWithoutPropertiesLoose(props, _excluded$C);
4239
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$D);
4240
4240
 
4241
4241
  var children = childrenProp;
4242
4242
 
@@ -4275,7 +4275,7 @@ function badgeStyle(props) {
4275
4275
  };
4276
4276
  }
4277
4277
 
4278
- var _excluded$B = ["children", "fontSize", "mode", "padding", "radius", "tone"];
4278
+ var _excluded$C = ["children", "fontSize", "mode", "padding", "radius", "tone"];
4279
4279
  var Root$y = styled__default["default"](Box)(responsiveRadiusStyle, badgeStyle);
4280
4280
  /**
4281
4281
  * @public
@@ -4292,7 +4292,7 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
4292
4292
  radius = _props$radius === void 0 ? 2 : _props$radius,
4293
4293
  _props$tone = props.tone,
4294
4294
  tone = _props$tone === void 0 ? 'default' : _props$tone,
4295
- restProps = _objectWithoutPropertiesLoose(props, _excluded$B);
4295
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$C);
4296
4296
 
4297
4297
  return /*#__PURE__*/React__default["default"].createElement(Root$y, _extends({
4298
4298
  "data-ui": "Badge"
@@ -4307,7 +4307,7 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
4307
4307
  }, children));
4308
4308
  });
4309
4309
 
4310
- var _excluded$A = ["align", "as", "direction", "gap", "justify", "wrap"];
4310
+ var _excluded$B = ["align", "as", "direction", "gap", "justify", "wrap"];
4311
4311
  var Root$x = styled__default["default"](Box)(flexItemStyle, responsiveFlexStyle);
4312
4312
  /**
4313
4313
  * @public
@@ -4321,7 +4321,7 @@ var Flex = /*#__PURE__*/React.forwardRef(function Flex(props, ref) {
4321
4321
  gap = props.gap,
4322
4322
  justify = props.justify,
4323
4323
  wrap = props.wrap,
4324
- restProps = _objectWithoutPropertiesLoose(props, _excluded$A);
4324
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$B);
4325
4325
 
4326
4326
  return /*#__PURE__*/React__default["default"].createElement(Root$x, _extends({
4327
4327
  "data-ui": "Flex"
@@ -4337,16 +4337,56 @@ var Flex = /*#__PURE__*/React.forwardRef(function Flex(props, ref) {
4337
4337
  });
4338
4338
 
4339
4339
  var _templateObject$w, _templateObject2$k;
4340
- var rotate$1 = styled.keyframes(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n"])));
4341
- var Root$w = styled__default["default"](Text)(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n & > span > svg {\n animation: ", " 500ms linear infinite;\n }\n"])), rotate$1);
4340
+ var rotate$1 = styled.keyframes(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\nfrom {\n transform: rotate(0deg);\n}\n\nto {\n transform: rotate(360deg);\n}\n"])));
4341
+ function spinnerStyle(props) {
4342
+ var $muted = props.$muted;
4343
+ return styled.css(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n animation: ", " 500ms linear infinite;\n color: ", ";\n "])), rotate$1, $muted ? 'var(--card-muted-fg-color)' : 'var(--card-fg-color)');
4344
+ }
4345
+ function spinnerSizeStyle(props) {
4346
+ var $size = props.$size;
4347
+ var _props$theme$sanity = props.theme.sanity,
4348
+ fonts = _props$theme$sanity.fonts,
4349
+ media = _props$theme$sanity.media;
4350
+ return responsive(media, $size, function (size) {
4351
+ var _fonts$text$sizes$siz = fonts.text.sizes[size],
4352
+ ascenderHeight = _fonts$text$sizes$siz.ascenderHeight,
4353
+ descenderHeight = _fonts$text$sizes$siz.descenderHeight,
4354
+ lineHeight = _fonts$text$sizes$siz.lineHeight,
4355
+ iconSize = _fonts$text$sizes$siz.iconSize;
4356
+ var capHeight = lineHeight - ascenderHeight - descenderHeight;
4357
+ return {
4358
+ width: rem(capHeight),
4359
+ height: rem(capHeight),
4360
+ '& > svg': {
4361
+ display: 'block',
4362
+ width: rem(iconSize),
4363
+ height: rem(iconSize),
4364
+ margin: (capHeight - iconSize) / 2
4365
+ }
4366
+ };
4367
+ });
4368
+ }
4369
+
4370
+ var _excluded$A = ["muted", "size"];
4371
+ var Root$w = styled__default["default"].div(spinnerStyle, spinnerSizeStyle);
4342
4372
  /**
4343
4373
  * @public
4344
4374
  */
4345
4375
 
4346
4376
  var Spinner = /*#__PURE__*/React.forwardRef(function Spinner(props, ref) {
4377
+ var muted = props.muted,
4378
+ _props$size = props.size,
4379
+ size = _props$size === void 0 ? 2 : _props$size,
4380
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$A);
4381
+
4382
+ var $size = React.useMemo(function () {
4383
+ return Array.isArray(size) ? size : [size];
4384
+ }, [size]);
4347
4385
  return /*#__PURE__*/React__default["default"].createElement(Root$w, _extends({
4348
4386
  "data-ui": "Spinner"
4349
- }, props, {
4387
+ }, restProps, {
4388
+ "$muted": muted,
4389
+ "$size": $size,
4350
4390
  ref: ref
4351
4391
  }), /*#__PURE__*/React__default["default"].createElement(icons.SpinnerIcon, null));
4352
4392
  });