@sanity/ui 2.0.0-alpha.22 → 2.0.0-alpha.23

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.esm.js CHANGED
@@ -3823,13 +3823,13 @@ const studioTheme = {
3823
3823
  avatar: {
3824
3824
  sizes: [{
3825
3825
  distance: -3,
3826
- size: 23
3826
+ size: 19
3827
3827
  }, {
3828
3828
  distance: -6,
3829
- size: 33
3829
+ size: 31
3830
3830
  }, {
3831
3831
  distance: -9,
3832
- size: 53
3832
+ size: 51
3833
3833
  }],
3834
3834
  focusRing: {
3835
3835
  offset: 0,
@@ -4869,7 +4869,8 @@ const avatarStyle = {
4869
4869
  arrow: avatarArrowStyle,
4870
4870
  bgStroke: avatarBgStrokeStyle,
4871
4871
  stroke: avatarStrokeStyle,
4872
- initials: avatarInitialsStyle
4872
+ initials: avatarInitialsStyle,
4873
+ image: avatarImageStyle
4873
4874
  };
4874
4875
  function avatarArrowStyle() {
4875
4876
  return {
@@ -4976,6 +4977,11 @@ function responsiveAvatarSizeStyle(props) {
4976
4977
  };
4977
4978
  });
4978
4979
  }
4980
+ function avatarImageStyle() {
4981
+ return {
4982
+ position: "relative"
4983
+ };
4984
+ }
4979
4985
  function avatarInitialsStyle(props) {
4980
4986
  const {
4981
4987
  theme
@@ -5017,6 +5023,7 @@ const Arrow = styled.div(avatarStyle.arrow);
5017
5023
  const BgStroke = styled.ellipse(avatarStyle.bgStroke);
5018
5024
  const Stroke = styled.ellipse(avatarStyle.stroke);
5019
5025
  const Initials = styled.div(avatarStyle.initials);
5026
+ const Image = styled.svg(avatarStyle.image);
5020
5027
  const Avatar = forwardRef(function Avatar2(props, ref) {
5021
5028
  const {
5022
5029
  __unstable_hideInnerStroke,
@@ -5081,7 +5088,7 @@ const Avatar = forwardRef(function Avatar2(props, ref) {
5081
5088
  fill: color
5082
5089
  })
5083
5090
  })
5084
- }), !imageFailed && src && /* @__PURE__ */jsxs("svg", {
5091
+ }), !imageFailed && src && /* @__PURE__ */jsxs(Image, {
5085
5092
  viewBox: "0 0 ".concat(_sizeRem, " ").concat(_sizeRem),
5086
5093
  fill: "none",
5087
5094
  children: [/* @__PURE__ */jsx("defs", {