@sanity/ui 2.0.0-beta.15 → 2.0.0-beta.17
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 +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +6 -0
- package/dist/theme.esm.js +5 -3
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +5 -3
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/core/components/dialog/dialog.tsx +1 -1
- package/src/core/components/dialog/styles.ts +2 -2
- package/src/theme/getScopedTheme.ts +1 -0
- package/src/theme/system/theme.ts +9 -1
- package/src/theme/versioning/getTheme_v2.ts +2 -1
package/dist/theme.js
CHANGED
|
@@ -1687,12 +1687,13 @@ function inputStateThemeColor_v0_v2(state) {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
const cache$3 = /* @__PURE__ */new WeakMap();
|
|
1689
1689
|
function getTheme_v2(theme) {
|
|
1690
|
-
var _a;
|
|
1691
|
-
if (theme.sanity.v2) return theme.sanity.v2;
|
|
1690
|
+
var _a, _b;
|
|
1691
|
+
if ((_a = theme.sanity.v2) == null ? void 0 : _a._resolved) return theme.sanity.v2;
|
|
1692
1692
|
const cached_v2 = cache$3.get(theme);
|
|
1693
1693
|
if (cached_v2) return cached_v2;
|
|
1694
1694
|
const v2 = {
|
|
1695
1695
|
_version: 2,
|
|
1696
|
+
_resolved: true,
|
|
1696
1697
|
avatar: {
|
|
1697
1698
|
...defaultThemeConfig.avatar,
|
|
1698
1699
|
...theme.sanity.avatar
|
|
@@ -1721,7 +1722,7 @@ function getTheme_v2(theme) {
|
|
|
1721
1722
|
...theme.sanity.input.switch
|
|
1722
1723
|
}
|
|
1723
1724
|
},
|
|
1724
|
-
layer: (
|
|
1725
|
+
layer: (_b = theme.sanity.layer) != null ? _b : defaultThemeConfig.layer,
|
|
1725
1726
|
media: theme.sanity.media,
|
|
1726
1727
|
radius: theme.sanity.radius,
|
|
1727
1728
|
shadow: theme.sanity.shadows,
|
|
@@ -4379,6 +4380,7 @@ function getScopedTheme(themeProp, scheme, tone) {
|
|
|
4379
4380
|
layer: layer_v0,
|
|
4380
4381
|
v2: {
|
|
4381
4382
|
...v2,
|
|
4383
|
+
_resolved: true,
|
|
4382
4384
|
color: color_v2,
|
|
4383
4385
|
layer: layer_v2
|
|
4384
4386
|
}
|