tamagui 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 +3 -3
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +3 -3
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -59
package/dist/native.js
CHANGED
|
@@ -9201,14 +9201,14 @@ var require_Slot_native = __commonJS({
|
|
|
9201
9201
|
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
9202
9202
|
return target;
|
|
9203
9203
|
}
|
|
9204
|
-
var Slot = /* @__PURE__ */ (0, import_react4.forwardRef)(function(props, forwardedRef) {
|
|
9204
|
+
var is19 = import_react4.version.startsWith("19."), Slot = /* @__PURE__ */ (0, import_react4.forwardRef)(function(props, forwardedRef) {
|
|
9205
9205
|
var children = props.children, slotProps = _object_without_properties5(props, [
|
|
9206
9206
|
"children"
|
|
9207
9207
|
]);
|
|
9208
9208
|
if (/* @__PURE__ */ (0, import_react4.isValidElement)(children)) {
|
|
9209
9209
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
9210
9210
|
return /* @__PURE__ */ (0, import_react4.cloneElement)(children, children.type.avoidForwardRef ? mergedProps : _object_spread_props8(_object_spread9({}, mergedProps), {
|
|
9211
|
-
ref: (0, import_compose_refs.composeRefs)(forwardedRef, children.ref)
|
|
9211
|
+
ref: (0, import_compose_refs.composeRefs)(forwardedRef, is19 ? children.props.ref : children.ref)
|
|
9212
9212
|
}));
|
|
9213
9213
|
}
|
|
9214
9214
|
return import_react4.Children.count(children) > 1 ? import_react4.Children.only(null) : null;
|
|
@@ -35246,7 +35246,7 @@ var require_Select_native = __commonJS({
|
|
|
35246
35246
|
});
|
|
35247
35247
|
var shouldRenderWebNative = import_constants4.isWeb && (native === !0 || native === "web" || Array.isArray(native) && native.includes("web")), setActiveIndexDebounced = (0, import_use_debounce.useDebounce)(function(index) {
|
|
35248
35248
|
setActiveIndex(function(prev) {
|
|
35249
|
-
return prev !== index
|
|
35249
|
+
return prev !== index && typeof index == "number" && activeIndexRef.current !== index ? (emitActiveIndex(index), index) : null;
|
|
35250
35250
|
});
|
|
35251
35251
|
}, 1, {}, []);
|
|
35252
35252
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AdaptProvider, {
|