tamagui 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 +52 -52
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)
|
|
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]);
|