@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.
@@ -1 +1 @@
1
- {"version":3,"file":"textArea.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/textArea/textArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAevC,OAAO,EAAC,kBAAkB,EAAe,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAC,qBAAqB,EAAC,MAAM,UAAU,CAAA;AAE9C;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,qBAAqB;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC3B,MAAM,CAAC,EAAE,kBAAkB,CAAA;CAC5B;AAsBD;;GAEG;AACH,eAAO,MAAM,QAAQ,i4LA+CnB,CAAA"}
1
+ {"version":3,"file":"textArea.d.ts","sourceRoot":"","sources":["../../../../../src/primitives/textArea/textArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAevC,OAAO,EAAC,kBAAkB,EAAe,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAC,qBAAqB,EAAC,MAAM,UAAU,CAAA;AAE9C;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,qBAAqB;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC3B,MAAM,CAAC,EAAE,kBAAkB,CAAA;CAC5B;AAsBD;;GAEG;AACH,eAAO,MAAM,QAAQ,i4LAiDnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../../src/theme/studioTheme/color.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,KAAK,0CA4mBhB,CAAA"}
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../../src/theme/studioTheme/color.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,KAAK,0CA6mBhB,CAAA"}
package/lib/sanity-ui.js CHANGED
@@ -1984,18 +1984,20 @@ var color = createColorTheme({
1984
1984
  name = _ref.name;
1985
1985
 
1986
1986
  if (name === 'default') {
1987
- var _skeletonFrom = dark ? color$1.hues.gray[900].hex : color$1.hues.gray[100].hex;
1987
+ var _tints = color$1.hues.gray;
1988
+
1989
+ var _skeletonFrom = dark ? _tints[900].hex : _tints[100].hex;
1988
1990
 
1989
1991
  return {
1990
1992
  fg: dark ? color$1.white.hex : color$1.black.hex,
1991
1993
  bg: dark ? color$1.black.hex : color$1.white.hex,
1992
- border: color$1.hues.gray[dark ? 800 : 200].hex,
1994
+ border: _tints[dark ? 800 : 200].hex,
1993
1995
  focusRing: color$1.hues.blue[dark ? 500 : 500].hex,
1994
1996
  shadow: {
1995
- outline: rgba(color$1.hues.gray[500].hex, 0.4),
1996
- umbra: rgba(dark ? color$1.black.hex : color$1.hues.gray[500].hex, 0.2),
1997
- penumbra: rgba(dark ? color$1.black.hex : color$1.hues.gray[500].hex, 0.14),
1998
- ambient: rgba(dark ? color$1.black.hex : color$1.hues.gray[500].hex, 0.12)
1997
+ outline: rgba(_tints[500].hex, 0.4),
1998
+ umbra: dark ? rgba(_tints[950].hex, 0.4) : rgba(_tints[500].hex, 0.2),
1999
+ penumbra: dark ? rgba(_tints[950].hex, 0.28) : rgba(_tints[500].hex, 0.14),
2000
+ ambient: dark ? rgba(_tints[950].hex, 0.24) : rgba(_tints[500].hex, 0.12)
1999
2001
  },
2000
2002
  skeleton: {
2001
2003
  from: _skeletonFrom,
@@ -2005,18 +2007,18 @@ var color = createColorTheme({
2005
2007
  }
2006
2008
 
2007
2009
  if (name === 'transparent') {
2008
- var _tints = tones["default"];
2009
- var _skeletonFrom2 = _tints[dark ? 800 : 200].hex;
2010
+ var _tints2 = tones["default"];
2011
+ var _skeletonFrom2 = _tints2[dark ? 800 : 200].hex;
2010
2012
  return {
2011
- fg: _tints[dark ? 100 : 900].hex,
2012
- bg: _tints[dark ? 950 : 50].hex,
2013
- border: _tints[dark ? 800 : 300].hex,
2013
+ fg: _tints2[dark ? 100 : 900].hex,
2014
+ bg: _tints2[dark ? 950 : 50].hex,
2015
+ border: _tints2[dark ? 800 : 300].hex,
2014
2016
  focusRing: color$1.hues.blue[500].hex,
2015
2017
  shadow: {
2016
- outline: rgba(_tints[500].hex, dark ? 0.2 : 0.4),
2017
- umbra: rgba(dark ? color$1.black.hex : _tints[500].hex, 0.2),
2018
- penumbra: rgba(dark ? color$1.black.hex : _tints[500].hex, 0.14),
2019
- ambient: rgba(dark ? color$1.black.hex : _tints[500].hex, 0.12)
2018
+ outline: rgba(_tints2[500].hex, 0.4),
2019
+ umbra: dark ? rgba(_tints2[900].hex, 0.4) : rgba(_tints2[500].hex, 0.2),
2020
+ penumbra: dark ? rgba(_tints2[900].hex, 0.28) : rgba(_tints2[500].hex, 0.14),
2021
+ ambient: dark ? rgba(_tints2[900].hex, 0.24) : rgba(_tints2[500].hex, 0.12)
2020
2022
  },
2021
2023
  skeleton: {
2022
2024
  from: _skeletonFrom2,
@@ -2033,10 +2035,10 @@ var color = createColorTheme({
2033
2035
  border: tints[dark ? 800 : 200].hex,
2034
2036
  focusRing: tints[500].hex,
2035
2037
  shadow: {
2036
- outline: rgba(tints[500].hex, dark ? 0.2 : 0.4),
2037
- umbra: rgba(dark ? color$1.black.hex : tints[500].hex, 0.2),
2038
- penumbra: rgba(dark ? color$1.black.hex : tints[500].hex, 0.14),
2039
- ambient: rgba(dark ? color$1.black.hex : tints[500].hex, 0.12)
2038
+ outline: rgba(tints[500].hex, 0.4),
2039
+ umbra: dark ? rgba(tints[900].hex, 0.4) : rgba(tints[500].hex, 0.2),
2040
+ penumbra: dark ? rgba(tints[900].hex, 0.28) : rgba(tints[500].hex, 0.14),
2041
+ ambient: dark ? rgba(tints[900].hex, 0.24) : rgba(tints[500].hex, 0.12)
2040
2042
  },
2041
2043
  skeleton: {
2042
2044
  from: skeletonFrom,
@@ -6587,6 +6589,7 @@ var TextArea = /*#__PURE__*/React.forwardRef(function TextArea(props, forwardedR
6587
6589
  "data-ui": "TextArea"
6588
6590
  }, /*#__PURE__*/React__default["default"].createElement(InputRoot$1, null, /*#__PURE__*/React__default["default"].createElement(Input$1, _extends({
6589
6591
  "data-as": "textarea",
6592
+ "data-scheme": rootTheme.scheme,
6590
6593
  "data-tone": rootTheme.tone
6591
6594
  }, restProps, {
6592
6595
  "$fontSize": useArrayProp(fontSize),
@@ -6602,6 +6605,7 @@ var TextArea = /*#__PURE__*/React.forwardRef(function TextArea(props, forwardedR
6602
6605
  "$radius": useArrayProp(radius),
6603
6606
  "$scheme": rootTheme.scheme,
6604
6607
  "$tone": rootTheme.tone,
6608
+ "data-scheme": rootTheme.scheme,
6605
6609
  "data-tone": rootTheme.tone
6606
6610
  })));
6607
6611
  });
@@ -7741,7 +7745,7 @@ function dialogStyle(_ref) {
7741
7745
  alignItems: 'center',
7742
7746
  justifyContent: 'center',
7743
7747
  outline: 'none',
7744
- background: color.shadow.penumbra
7748
+ background: color.shadow.umbra
7745
7749
  };
7746
7750
  }
7747
7751
  function responsiveDialogPositionStyle(props) {