@sanity/ui 2.3.6-canary.3 → 2.3.6-canary.4
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.compiled.mjs +2 -2
- package/dist/index.compiled.mjs.map +1 -1
- 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/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/core/theme/themeProvider.tsx +2 -2
package/dist/index.compiled.mjs
CHANGED
|
@@ -164,10 +164,10 @@ function createGlobalScopedContext(key2, defaultValue) {
|
|
|
164
164
|
}
|
|
165
165
|
const key$8 = Symbol.for("@sanity/ui/context/theme"), ThemeContext = createGlobalScopedContext(key$8, null);
|
|
166
166
|
function ThemeProvider(props) {
|
|
167
|
-
var _a;
|
|
167
|
+
var _a, _b, _c2;
|
|
168
168
|
const $ = c(15), {
|
|
169
169
|
children
|
|
170
|
-
} = props, parentTheme = useContext(ThemeContext), scheme = (_a = props.scheme) != null ? _a : (parentTheme == null ? void 0 : parentTheme.scheme) || "light", rootTheme = (parentTheme == null ? void 0 : parentTheme.theme) || null, tone = (parentTheme == null ? void 0 : parentTheme.tone) || "default";
|
|
170
|
+
} = props, parentTheme = useContext(ThemeContext), scheme = (_a = props.scheme) != null ? _a : (parentTheme == null ? void 0 : parentTheme.scheme) || "light", rootTheme = (_b = props.theme) != null ? _b : (parentTheme == null ? void 0 : parentTheme.theme) || null, tone = (_c2 = props.tone) != null ? _c2 : (parentTheme == null ? void 0 : parentTheme.tone) || "default";
|
|
171
171
|
let t0;
|
|
172
172
|
bb0: {
|
|
173
173
|
if (!rootTheme) {
|