@sanity/ui 2.0.0-alpha.35 → 2.0.0-alpha.36

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/theme.js CHANGED
@@ -1685,8 +1685,11 @@ function getTheme_v2(theme) {
1685
1685
  const v2 = {
1686
1686
  _version: 2,
1687
1687
  avatar: theme.sanity.avatar,
1688
- button: theme.sanity.button,
1689
- card: theme.sanity.card,
1688
+ button: {
1689
+ ...defaultThemeConfig.button,
1690
+ ...theme.sanity.button
1691
+ },
1692
+ card: defaultThemeConfig.card,
1690
1693
  color: themeColor_v0_v2(theme.sanity.color),
1691
1694
  container: theme.sanity.container,
1692
1695
  font: theme.sanity.fonts,
@@ -1715,7 +1718,6 @@ function v0_v2(v0) {
1715
1718
  const {
1716
1719
  avatar,
1717
1720
  button,
1718
- card,
1719
1721
  color,
1720
1722
  container,
1721
1723
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -1732,8 +1734,11 @@ function v0_v2(v0) {
1732
1734
  const v2 = {
1733
1735
  _version: 2,
1734
1736
  avatar,
1735
- button,
1736
- card,
1737
+ button: {
1738
+ ...defaultThemeConfig.button,
1739
+ ...button
1740
+ },
1741
+ card: defaultThemeConfig.card,
1737
1742
  color: {
1738
1743
  light: {
1739
1744
  transparent: themeColor_v0_v2(color.light.transparent),
@@ -1772,7 +1777,6 @@ function v2_v0(v2) {
1772
1777
  const {
1773
1778
  avatar,
1774
1779
  button,
1775
- card,
1776
1780
  color,
1777
1781
  container,
1778
1782
  font: fonts,
@@ -1787,7 +1791,6 @@ function v2_v0(v2) {
1787
1791
  _version: 0,
1788
1792
  avatar,
1789
1793
  button,
1790
- card,
1791
1794
  container,
1792
1795
  color: {
1793
1796
  light: {