@sanity/ui 2.3.6-canary.1 → 2.3.6-canary.2

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 CHANGED
@@ -134,12 +134,7 @@ function createGlobalScopedContext(key2, defaultValue) {
134
134
  const key$8 = Symbol.for("@sanity/ui/context/theme"), ThemeContext = createGlobalScopedContext(key$8, null);
135
135
  function ThemeProvider(props) {
136
136
  var _a;
137
- const parentTheme = useContext(ThemeContext), {
138
- children,
139
- // scheme = parentTheme?.scheme || 'light',
140
- theme: rootTheme = (parentTheme == null ? void 0 : parentTheme.theme) || null,
141
- tone = (parentTheme == null ? void 0 : parentTheme.tone) || "default"
142
- } = props, scheme = (_a = props.scheme) != null ? _a : (parentTheme == null ? void 0 : parentTheme.scheme) || "light", themeContext = useMemo(() => rootTheme ? {
137
+ const { children } = 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", themeContext = useMemo(() => rootTheme ? {
143
138
  version: 0,
144
139
  theme: rootTheme,
145
140
  scheme,