tamagui 1.100.4 → 1.100.6
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 -9
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +6 -9
- package/dist/test.native.js.map +2 -2
- package/package.json +60 -60
package/dist/native.js
CHANGED
|
@@ -2724,7 +2724,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2724
2724
|
var getIdentifierFromTamaguiSelector = function(selector) {
|
|
2725
2725
|
var dotIndex = selector.indexOf(":");
|
|
2726
2726
|
return dotIndex > -1 ? selector.slice(7, dotIndex) : selector.slice(7);
|
|
2727
|
-
}, sheet = import_constants4.isClient ? document.head.appendChild(document.createElement("style")).sheet : null;
|
|
2727
|
+
}, sheet = import_constants4.isClient && document.head ? document.head.appendChild(document.createElement("style")).sheet : null;
|
|
2728
2728
|
function updateRules(identifier, rules) {
|
|
2729
2729
|
if (!process.env.TAMAGUI_REACT_19) return identifier in allRules ? !1 : (allRules[identifier] = rules.join(" "), identifier.startsWith("_transform-") ? addTransform(identifier, rules[0]) : !0);
|
|
2730
2730
|
}
|
|
@@ -3374,7 +3374,7 @@ var require_useMedia_native = __commonJS({
|
|
|
3374
3374
|
return next !== prev ? (componentState2.prev = next, next) : prev;
|
|
3375
3375
|
});
|
|
3376
3376
|
};
|
|
3377
|
-
return
|
|
3377
|
+
return update(), listeners.add(update), function() {
|
|
3378
3378
|
listeners.delete(update);
|
|
3379
3379
|
};
|
|
3380
3380
|
}, [
|
|
@@ -26422,15 +26422,12 @@ var require_Group_native = __commonJS({
|
|
|
26422
26422
|
Item: GroupItem
|
|
26423
26423
|
});
|
|
26424
26424
|
}
|
|
26425
|
-
var GroupItem = /* @__PURE__ */ import_react4.
|
|
26425
|
+
var GroupItem = /* @__PURE__ */ (0, import_react4.forwardRef)(function(props, _ref) {
|
|
26426
26426
|
var _children_props, __scopeGroup = props.__scopeGroup, children = props.children, forcePlacement = props.forcePlacement, groupItemProps = useGroupItem({
|
|
26427
26427
|
disabled: /* @__PURE__ */ (0, import_react4.isValidElement)(children) ? children.props.disabled : void 0
|
|
26428
26428
|
}, forcePlacement, __scopeGroup);
|
|
26429
|
-
return /* @__PURE__ */ (0, import_react4.isValidElement)(children) ? (0, import_core12.isTamaguiElement)(children) ? /* @__PURE__ */ import_react4.default.cloneElement(children,
|
|
26430
|
-
|
|
26431
|
-
})) : /* @__PURE__ */ import_react4.default.cloneElement(children, {
|
|
26432
|
-
style: _object_spread9({}, (_children_props = children.props) === null || _children_props === void 0 ? void 0 : _children_props.style, groupItemProps),
|
|
26433
|
-
ref
|
|
26429
|
+
return /* @__PURE__ */ (0, import_react4.isValidElement)(children) ? (0, import_core12.isTamaguiElement)(children) ? /* @__PURE__ */ import_react4.default.cloneElement(children, groupItemProps) : /* @__PURE__ */ import_react4.default.cloneElement(children, {
|
|
26430
|
+
style: _object_spread9({}, (_children_props = children.props) === null || _children_props === void 0 ? void 0 : _children_props.style, groupItemProps)
|
|
26434
26431
|
}) : children;
|
|
26435
26432
|
}), useGroupItem = function(childrenProps, forcePlacement, __scopeGroup) {
|
|
26436
26433
|
var treeIndex = (0, import_reforest.useIndex)(), context = useGroupContext("GroupItem", __scopeGroup);
|
|
@@ -29738,7 +29735,7 @@ var require_Popper_native = __commonJS({
|
|
|
29738
29735
|
].filter(Boolean)
|
|
29739
29736
|
}), refs = floating.refs, middlewareData = floating.middlewareData, open = floating.open;
|
|
29740
29737
|
if (import_constants4.isWeb) (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
29741
|
-
if (open && refs.reference.current && refs.floating.current) return (0, import_floating.autoUpdate)(refs.reference.current, refs.floating.current, floating.update);
|
|
29738
|
+
if (open && refs.reference.current && refs.floating.current) return floating.update(), (0, import_floating.autoUpdate)(refs.reference.current, refs.floating.current, floating.update);
|
|
29742
29739
|
}, [
|
|
29743
29740
|
open,
|
|
29744
29741
|
floating.update,
|