@tamagui/core 1.132.5 → 1.132.7
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 +15 -13
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +15 -13
- package/dist/test.native.js.map +1 -1
- package/package.json +10 -10
package/dist/native.js
CHANGED
|
@@ -7111,9 +7111,9 @@ var require_ClientOnly_native = __commonJS({
|
|
|
7111
7111
|
});
|
|
7112
7112
|
module2.exports = __toCommonJS2(ClientOnly_exports);
|
|
7113
7113
|
var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
|
|
7114
|
-
var { children } = param;
|
|
7114
|
+
var { children, value = !0 } = param;
|
|
7115
7115
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ClientOnlyContext2.Provider, {
|
|
7116
|
-
value
|
|
7116
|
+
value,
|
|
7117
7117
|
children
|
|
7118
7118
|
});
|
|
7119
7119
|
};
|
|
@@ -7642,8 +7642,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7642
7642
|
}
|
|
7643
7643
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
7644
7644
|
var _stateRef_current_group;
|
|
7645
|
-
if (!groupName || props.passThrough
|
|
7646
|
-
props.containerType === "normal") return groupContextParent;
|
|
7645
|
+
if (!groupName || props.passThrough) return groupContextParent;
|
|
7647
7646
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
7648
7647
|
var listeners = /* @__PURE__ */ new Set();
|
|
7649
7648
|
return stateRef.current.group = {
|
|
@@ -7746,7 +7745,8 @@ var require_createComponent_native = __commonJS({
|
|
|
7746
7745
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
7747
7746
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
7748
7747
|
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
7749
|
-
if (splitStyles && groupContext
|
|
7748
|
+
if (splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
7749
|
+
props.containerType !== "normal") {
|
|
7750
7750
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
7751
7751
|
if (groupState && groupState.layout === void 0) {
|
|
7752
7752
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -7856,7 +7856,8 @@ var require_createComponent_native = __commonJS({
|
|
|
7856
7856
|
}
|
|
7857
7857
|
process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
|
|
7858
7858
|
|
|
7859
|
-
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, splitStyles && groupContext &&
|
|
7859
|
+
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
7860
|
+
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7860
7861
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
7861
7862
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
7862
7863
|
layout
|
|
@@ -10458,7 +10459,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10458
10459
|
}
|
|
10459
10460
|
});
|
|
10460
10461
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
10461
|
-
var import_jsx_runtime2 = require("react/jsx-runtime"), import_constants = require_index_native2(), import_use_did_finish_ssr = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(),
|
|
10462
|
+
var import_jsx_runtime2 = require("react/jsx-runtime"), import_constants = require_index_native2(), import_use_did_finish_ssr = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_insertStyleRule = require_insertStyleRule_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native();
|
|
10462
10463
|
function TamaguiProvider2(param) {
|
|
10463
10464
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
10464
10465
|
import_constants.IS_REACT_19 || import_constants.isClient && (0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
@@ -10568,13 +10569,14 @@ var require_Configuration_native = __commonJS({
|
|
|
10568
10569
|
});
|
|
10569
10570
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
10570
10571
|
var import_jsx_runtime2 = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native7(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration = function(props) {
|
|
10571
|
-
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext)
|
|
10572
|
-
|
|
10573
|
-
|
|
10572
|
+
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
|
|
10573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10574
|
+
value: typeof props.disableSSR == "boolean" && props.disableSSR !== current.disableSSR ? props.disableSSR : current.disableSSR,
|
|
10575
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10576
|
+
...current,
|
|
10577
|
+
...props
|
|
10578
|
+
})
|
|
10574
10579
|
});
|
|
10575
|
-
return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10576
|
-
children
|
|
10577
|
-
}) : children;
|
|
10578
10580
|
};
|
|
10579
10581
|
Configuration.displayName = "Configuration";
|
|
10580
10582
|
}
|