@tamagui/core 1.81.0 → 1.81.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/native.js CHANGED
@@ -1743,17 +1743,11 @@ var require_createStyledContext_native = __commonJS({
1743
1743
  scope,
1744
1744
  ...values
1745
1745
  }) => {
1746
- let current;
1747
- try {
1748
- current = useStyledContext(scope);
1749
- } catch {
1750
- }
1751
1746
  let next = (0, import_react3.useMemo)(() => ({
1752
1747
  // this ! is a workaround for ts error
1753
1748
  ...defaultValues,
1754
- ...current,
1755
1749
  ...values
1756
- }), [(0, import_objectIdentityKey.objectIdentityKey)(values), current]), Provider2 = OGProvider;
1750
+ }), [(0, import_objectIdentityKey.objectIdentityKey)(values)]), Provider2 = OGProvider;
1757
1751
  if (scope) {
1758
1752
  let ScopedContext = scopedContexts.get(scope);
1759
1753
  ScopedContext || (ScopedContext = (0, import_react3.createContext)(defaultValues), scopedContexts.set(scope, ScopedContext)), Provider2 = ScopedContext.Provider;
@@ -5262,7 +5256,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5262
5256
  subscribe: groupState.subscribe
5263
5257
  };
5264
5258
  }, [groupName]);
5265
- if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { groups: subGroupContext, children: content })), process.env.NODE_ENV === "development" && time && time`group-context`, content = disableThemeProp ? content : (0, import_Theme.useThemedChildren)(themeState, content, themeStateProps, !1), process.env.NODE_ENV === "development" && time && time`themed-children`, process.env.NODE_ENV === "development" && props.debug === "visualize" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeDebug.ThemeDebug, { themeState, themeProps: props, children: content })), staticConfig.context) {
5259
+ if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...componentContext, groups: subGroupContext, children: content })), process.env.NODE_ENV === "development" && time && time`group-context`, content = disableThemeProp ? content : (0, import_Theme.useThemedChildren)(themeState, content, themeStateProps, !1), process.env.NODE_ENV === "development" && time && time`themed-children`, process.env.NODE_ENV === "development" && props.debug === "visualize" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeDebug.ThemeDebug, { themeState, themeProps: props, children: content })), staticConfig.context) {
5266
5260
  let contextProps = staticConfig.context.props;
5267
5261
  for (let key in contextProps)
5268
5262
  (key in style || key in viewProps) && (overriddenContextProps ||= {}, overriddenContextProps[key] = style[key] ?? viewProps[key]);
@@ -6684,7 +6678,10 @@ var require_Configuration_native = __commonJS({
6684
6678
  Configuration: () => Configuration
6685
6679
  });
6686
6680
  module2.exports = __toCommonJS2(Configuration_exports);
6687
- var import_ComponentContext = require_ComponentContext_native(), import_jsx_runtime = require("react/jsx-runtime"), Configuration = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...props });
6681
+ var import_react3 = require("react"), import_ComponentContext = require_ComponentContext_native(), import_jsx_runtime = require("react/jsx-runtime"), Configuration = (props) => {
6682
+ let current = (0, import_react3.useContext)(import_ComponentContext.ComponentContext);
6683
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...current, ...props });
6684
+ };
6688
6685
  }
6689
6686
  });
6690
6687