@sanity/ui 0.37.16 → 0.37.19

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.
@@ -1975,18 +1975,20 @@ var color = createColorTheme({
1975
1975
  name = _ref.name;
1976
1976
 
1977
1977
  if (name === 'default') {
1978
- var _skeletonFrom = dark ? hues.gray[900].hex : hues.gray[100].hex;
1978
+ var _tints = hues.gray;
1979
+
1980
+ var _skeletonFrom = dark ? _tints[900].hex : _tints[100].hex;
1979
1981
 
1980
1982
  return {
1981
1983
  fg: dark ? white$1.hex : black$1.hex,
1982
1984
  bg: dark ? black$1.hex : white$1.hex,
1983
- border: hues.gray[dark ? 800 : 200].hex,
1985
+ border: _tints[dark ? 800 : 200].hex,
1984
1986
  focusRing: hues.blue[dark ? 500 : 500].hex,
1985
1987
  shadow: {
1986
- outline: rgba(hues.gray[500].hex, 0.4),
1987
- umbra: rgba(dark ? black$1.hex : hues.gray[500].hex, 0.2),
1988
- penumbra: rgba(dark ? black$1.hex : hues.gray[500].hex, 0.14),
1989
- ambient: rgba(dark ? black$1.hex : hues.gray[500].hex, 0.12)
1988
+ outline: rgba(_tints[500].hex, 0.4),
1989
+ umbra: dark ? rgba(_tints[950].hex, 0.4) : rgba(_tints[500].hex, 0.2),
1990
+ penumbra: dark ? rgba(_tints[950].hex, 0.28) : rgba(_tints[500].hex, 0.14),
1991
+ ambient: dark ? rgba(_tints[950].hex, 0.24) : rgba(_tints[500].hex, 0.12)
1990
1992
  },
1991
1993
  skeleton: {
1992
1994
  from: _skeletonFrom,
@@ -1996,18 +1998,18 @@ var color = createColorTheme({
1996
1998
  }
1997
1999
 
1998
2000
  if (name === 'transparent') {
1999
- var _tints = tones["default"];
2000
- var _skeletonFrom2 = _tints[dark ? 800 : 200].hex;
2001
+ var _tints2 = tones["default"];
2002
+ var _skeletonFrom2 = _tints2[dark ? 800 : 200].hex;
2001
2003
  return {
2002
- fg: _tints[dark ? 100 : 900].hex,
2003
- bg: _tints[dark ? 950 : 50].hex,
2004
- border: _tints[dark ? 800 : 300].hex,
2004
+ fg: _tints2[dark ? 100 : 900].hex,
2005
+ bg: _tints2[dark ? 950 : 50].hex,
2006
+ border: _tints2[dark ? 800 : 300].hex,
2005
2007
  focusRing: hues.blue[500].hex,
2006
2008
  shadow: {
2007
- outline: rgba(_tints[500].hex, dark ? 0.2 : 0.4),
2008
- umbra: rgba(dark ? black$1.hex : _tints[500].hex, 0.2),
2009
- penumbra: rgba(dark ? black$1.hex : _tints[500].hex, 0.14),
2010
- ambient: rgba(dark ? black$1.hex : _tints[500].hex, 0.12)
2009
+ outline: rgba(_tints2[500].hex, 0.4),
2010
+ umbra: dark ? rgba(_tints2[900].hex, 0.4) : rgba(_tints2[500].hex, 0.2),
2011
+ penumbra: dark ? rgba(_tints2[900].hex, 0.28) : rgba(_tints2[500].hex, 0.14),
2012
+ ambient: dark ? rgba(_tints2[900].hex, 0.24) : rgba(_tints2[500].hex, 0.12)
2011
2013
  },
2012
2014
  skeleton: {
2013
2015
  from: _skeletonFrom2,
@@ -2024,10 +2026,10 @@ var color = createColorTheme({
2024
2026
  border: tints[dark ? 800 : 200].hex,
2025
2027
  focusRing: tints[500].hex,
2026
2028
  shadow: {
2027
- outline: rgba(tints[500].hex, dark ? 0.2 : 0.4),
2028
- umbra: rgba(dark ? black$1.hex : tints[500].hex, 0.2),
2029
- penumbra: rgba(dark ? black$1.hex : tints[500].hex, 0.14),
2030
- ambient: rgba(dark ? black$1.hex : tints[500].hex, 0.12)
2029
+ outline: rgba(tints[500].hex, 0.4),
2030
+ umbra: dark ? rgba(tints[900].hex, 0.4) : rgba(tints[500].hex, 0.2),
2031
+ penumbra: dark ? rgba(tints[900].hex, 0.28) : rgba(tints[500].hex, 0.14),
2032
+ ambient: dark ? rgba(tints[900].hex, 0.24) : rgba(tints[500].hex, 0.12)
2031
2033
  },
2032
2034
  skeleton: {
2033
2035
  from: skeletonFrom,
@@ -6578,6 +6580,7 @@ var TextArea = /*#__PURE__*/forwardRef(function TextArea(props, forwardedRef) {
6578
6580
  "data-ui": "TextArea"
6579
6581
  }, /*#__PURE__*/React.createElement(InputRoot$1, null, /*#__PURE__*/React.createElement(Input$1, _extends({
6580
6582
  "data-as": "textarea",
6583
+ "data-scheme": rootTheme.scheme,
6581
6584
  "data-tone": rootTheme.tone
6582
6585
  }, restProps, {
6583
6586
  "$fontSize": useArrayProp(fontSize),
@@ -6593,6 +6596,7 @@ var TextArea = /*#__PURE__*/forwardRef(function TextArea(props, forwardedRef) {
6593
6596
  "$radius": useArrayProp(radius),
6594
6597
  "$scheme": rootTheme.scheme,
6595
6598
  "$tone": rootTheme.tone,
6599
+ "data-scheme": rootTheme.scheme,
6596
6600
  "data-tone": rootTheme.tone
6597
6601
  })));
6598
6602
  });
@@ -7732,7 +7736,7 @@ function dialogStyle(_ref) {
7732
7736
  alignItems: 'center',
7733
7737
  justifyContent: 'center',
7734
7738
  outline: 'none',
7735
- background: color.shadow.penumbra
7739
+ background: color.shadow.umbra
7736
7740
  };
7737
7741
  }
7738
7742
  function responsiveDialogPositionStyle(props) {