@tamagui/core 1.81.0 → 1.81.1
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 +2 -8
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +2 -8
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -1696,17 +1696,11 @@ var require_createStyledContext_native = __commonJS({
|
|
|
1696
1696
|
scope,
|
|
1697
1697
|
...values
|
|
1698
1698
|
}) => {
|
|
1699
|
-
let current;
|
|
1700
|
-
try {
|
|
1701
|
-
current = useStyledContext(scope);
|
|
1702
|
-
} catch {
|
|
1703
|
-
}
|
|
1704
1699
|
let next = (0, import_react3.useMemo)(() => ({
|
|
1705
1700
|
// this ! is a workaround for ts error
|
|
1706
1701
|
...defaultValues,
|
|
1707
|
-
...current,
|
|
1708
1702
|
...values
|
|
1709
|
-
}), [(0, import_objectIdentityKey.objectIdentityKey)(values)
|
|
1703
|
+
}), [(0, import_objectIdentityKey.objectIdentityKey)(values)]), Provider2 = OGProvider;
|
|
1710
1704
|
if (scope) {
|
|
1711
1705
|
let ScopedContext = scopedContexts.get(scope);
|
|
1712
1706
|
ScopedContext || (ScopedContext = (0, import_react3.createContext)(defaultValues), scopedContexts.set(scope, ScopedContext)), Provider2 = ScopedContext.Provider;
|
|
@@ -4947,7 +4941,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4947
4941
|
subscribe: groupState.subscribe
|
|
4948
4942
|
};
|
|
4949
4943
|
}, [groupName]);
|
|
4950
|
-
if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { groups: subGroupContext, children: content })), content = disableThemeProp ? content : (0, import_Theme.useThemedChildren)(themeState, content, themeStateProps, !1), staticConfig.context) {
|
|
4944
|
+
if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...componentContext, groups: subGroupContext, children: content })), content = disableThemeProp ? content : (0, import_Theme.useThemedChildren)(themeState, content, themeStateProps, !1), staticConfig.context) {
|
|
4951
4945
|
let contextProps = staticConfig.context.props;
|
|
4952
4946
|
for (let key in contextProps)
|
|
4953
4947
|
(key in style || key in viewProps) && (overriddenContextProps ||= {}, overriddenContextProps[key] = style[key] ?? viewProps[key]);
|