@tamagui/core 1.110.2 → 1.110.3
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 +6 -5
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +6 -5
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -9205,7 +9205,7 @@ var require_Slot_native = __commonJS({
|
|
|
9205
9205
|
for (i = 0; i < sourceKeys.length; i++) key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
9206
9206
|
return target;
|
|
9207
9207
|
}
|
|
9208
|
-
var is19 = import_react3.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
|
|
9208
|
+
var is19 = import_react3.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react3.memo)(/* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
|
|
9209
9209
|
var children = props.children, slotProps = _object_without_properties(props, [
|
|
9210
9210
|
"children"
|
|
9211
9211
|
]);
|
|
@@ -9216,9 +9216,7 @@ var require_Slot_native = __commonJS({
|
|
|
9216
9216
|
}));
|
|
9217
9217
|
}
|
|
9218
9218
|
return import_react3.Children.count(children) > 1 ? import_react3.Children.only(null) : null;
|
|
9219
|
-
})
|
|
9220
|
-
Slot.displayName = "Slot";
|
|
9221
|
-
var Slottable = function(param) {
|
|
9219
|
+
})), Slottable = function(param) {
|
|
9222
9220
|
var children = param.children;
|
|
9223
9221
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
9224
9222
|
children
|
|
@@ -9779,7 +9777,10 @@ var require_createComponent_native = __commonJS({
|
|
|
9779
9777
|
var inverseShorthands = (0, import_config.getConfig)().inverseShorthands;
|
|
9780
9778
|
for (var key in context.props) {
|
|
9781
9779
|
var _propsIn_key, _ref, _ref1, propVal = (_ref1 = (_ref = (_propsIn_key = propsIn[key]) !== null && _propsIn_key !== void 0 ? _propsIn_key : propsIn[inverseShorthands[key]]) !== null && _ref !== void 0 ? _ref : defaultProps == null ? void 0 : defaultProps[key]) !== null && _ref1 !== void 0 ? _ref1 : defaultProps == null ? void 0 : defaultProps[inverseShorthands[key]];
|
|
9782
|
-
propVal === void 0
|
|
9780
|
+
if (propVal === void 0) {
|
|
9781
|
+
var val = contextValue == null ? void 0 : contextValue[key];
|
|
9782
|
+
val !== void 0 && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = val);
|
|
9783
|
+
} else overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = propVal;
|
|
9783
9784
|
}
|
|
9784
9785
|
}
|
|
9785
9786
|
var curDefaultProps = styledContextProps ? _object_spread2({}, defaultProps, styledContextProps) : defaultProps, props = propsIn;
|