tamagui 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
@@ -1607,17 +1607,11 @@ var require_createStyledContext_native = __commonJS({
1607
1607
  scope,
1608
1608
  ...values
1609
1609
  }) => {
1610
- let current;
1611
- try {
1612
- current = useStyledContext(scope);
1613
- } catch {
1614
- }
1615
1610
  let next = (0, import_react2.useMemo)(() => ({
1616
1611
  // this ! is a workaround for ts error
1617
1612
  ...defaultValues,
1618
- ...current,
1619
1613
  ...values
1620
- }), [(0, import_objectIdentityKey.objectIdentityKey)(values), current]), Provider2 = OGProvider2;
1614
+ }), [(0, import_objectIdentityKey.objectIdentityKey)(values)]), Provider2 = OGProvider2;
1621
1615
  if (scope) {
1622
1616
  let ScopedContext = scopedContexts.get(scope);
1623
1617
  ScopedContext || (ScopedContext = (0, import_react2.createContext)(defaultValues), scopedContexts.set(scope, ScopedContext)), Provider2 = ScopedContext.Provider;
@@ -5098,7 +5092,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5098
5092
  subscribe: groupState.subscribe
5099
5093
  };
5100
5094
  }, [groupName]);
5101
- if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime6.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_runtime6.jsx)(import_ThemeDebug.ThemeDebug, { themeState, themeProps: props, children: content })), staticConfig.context) {
5095
+ if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime6.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_runtime6.jsx)(import_ThemeDebug.ThemeDebug, { themeState, themeProps: props, children: content })), staticConfig.context) {
5102
5096
  let contextProps = staticConfig.context.props;
5103
5097
  for (let key in contextProps)
5104
5098
  (key in style || key in viewProps) && (overriddenContextProps ||= {}, overriddenContextProps[key] = style[key] ?? viewProps[key]);
@@ -6520,7 +6514,10 @@ var require_Configuration_native = __commonJS({
6520
6514
  Configuration: () => Configuration2
6521
6515
  });
6522
6516
  module2.exports = __toCommonJS2(Configuration_exports);
6523
- var import_ComponentContext = require_ComponentContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), Configuration2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, { ...props });
6517
+ var import_react2 = require("react"), import_ComponentContext = require_ComponentContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), Configuration2 = (props) => {
6518
+ let current = (0, import_react2.useContext)(import_ComponentContext.ComponentContext);
6519
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, { ...current, ...props });
6520
+ };
6524
6521
  }
6525
6522
  });
6526
6523