@tamagui/core 1.98.0 → 1.98.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 -2
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +2 -2
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -9
package/dist/native.js
CHANGED
|
@@ -9101,14 +9101,14 @@ var require_Slot_native = __commonJS({
|
|
|
9101
9101
|
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
9102
9102
|
return target;
|
|
9103
9103
|
}
|
|
9104
|
-
var Slot = /* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
|
|
9104
|
+
var is19 = import_react3.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react3.forwardRef)(function(props, forwardedRef) {
|
|
9105
9105
|
var children = props.children, slotProps = _object_without_properties(props, [
|
|
9106
9106
|
"children"
|
|
9107
9107
|
]);
|
|
9108
9108
|
if (/* @__PURE__ */ (0, import_react3.isValidElement)(children)) {
|
|
9109
9109
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
9110
9110
|
return /* @__PURE__ */ (0, import_react3.cloneElement)(children, children.type.avoidForwardRef ? mergedProps : _object_spread_props(_object_spread2({}, mergedProps), {
|
|
9111
|
-
ref: (0, import_compose_refs.composeRefs)(forwardedRef, children.ref)
|
|
9111
|
+
ref: (0, import_compose_refs.composeRefs)(forwardedRef, is19 ? children.props.ref : children.ref)
|
|
9112
9112
|
}));
|
|
9113
9113
|
}
|
|
9114
9114
|
return import_react3.Children.count(children) > 1 ? import_react3.Children.only(null) : null;
|