tamagui 1.132.3 → 1.132.4
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 +36 -11
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +36 -11
- package/dist/test.native.js.map +2 -2
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -8293,7 +8293,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8293
8293
|
}
|
|
8294
8294
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
8295
8295
|
var _stateRef_current_group;
|
|
8296
|
-
if (!groupName || props.passThrough
|
|
8296
|
+
if (!groupName || props.passThrough || // avoids onLayout
|
|
8297
|
+
props.containerType === "normal") return groupContextParent;
|
|
8297
8298
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
8298
8299
|
var listeners = /* @__PURE__ */ new Set();
|
|
8299
8300
|
return stateRef.current.group = {
|
|
@@ -23635,7 +23636,23 @@ var require_useFloating_native = __commonJS({
|
|
|
23635
23636
|
module2.exports = __toCommonJS2(useFloating_exports);
|
|
23636
23637
|
var import_react3 = __toESM2(require("react")), Floating = __toESM2(require_Floating_native()), FloatingOverrideContext2 = /* @__PURE__ */ import_react3.default.createContext(null), useFloating2 = function(props) {
|
|
23637
23638
|
var _this, context = import_react3.default.useContext(FloatingOverrideContext2);
|
|
23638
|
-
return (_this = context || Floating.useFloating) === null || _this === void 0 ? void 0 : _this(
|
|
23639
|
+
return (_this = context || Floating.useFloating) === null || _this === void 0 ? void 0 : _this({
|
|
23640
|
+
...props,
|
|
23641
|
+
middleware: [
|
|
23642
|
+
// @ts-ignore
|
|
23643
|
+
...props.middleware,
|
|
23644
|
+
{
|
|
23645
|
+
name: "rounded",
|
|
23646
|
+
fn(param) {
|
|
23647
|
+
var { x, y } = param;
|
|
23648
|
+
return {
|
|
23649
|
+
x: Math.round(x),
|
|
23650
|
+
y: Math.round(y)
|
|
23651
|
+
};
|
|
23652
|
+
}
|
|
23653
|
+
}
|
|
23654
|
+
]
|
|
23655
|
+
});
|
|
23639
23656
|
};
|
|
23640
23657
|
}
|
|
23641
23658
|
});
|
|
@@ -23872,7 +23889,7 @@ var require_Popper_native = __commonJS({
|
|
|
23872
23889
|
Object.assign(setupOptions, options);
|
|
23873
23890
|
}
|
|
23874
23891
|
function Popper(props) {
|
|
23875
|
-
var
|
|
23892
|
+
var { children, size: size2, strategy = "absolute", placement = "bottom", stayInFrame, allowFlip, offset: offset2, disableRTL, resize, passThrough, open, scope } = props, [arrowEl, setArrow] = React4.useState(null), [arrowSize, setArrowSize] = React4.useState(0), offsetOptions = offset2 ?? arrowSize, floatingStyle = React4.useRef({}), floating = (0, import_floating.useFloating)({
|
|
23876
23893
|
open: passThrough ? !1 : open || !0,
|
|
23877
23894
|
strategy,
|
|
23878
23895
|
placement,
|
|
@@ -23916,14 +23933,22 @@ var require_Popper_native = __commonJS({
|
|
|
23916
23933
|
dimensions,
|
|
23917
23934
|
keyboardOpen
|
|
23918
23935
|
]);
|
|
23919
|
-
var popperContext = {
|
|
23920
|
-
|
|
23921
|
-
|
|
23922
|
-
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
|
|
23926
|
-
|
|
23936
|
+
var popperContext = React4.useMemo(function() {
|
|
23937
|
+
var _middlewareData_checkFloating;
|
|
23938
|
+
return {
|
|
23939
|
+
size: size2,
|
|
23940
|
+
arrowRef: setArrow,
|
|
23941
|
+
arrowStyle: middlewareData.arrow,
|
|
23942
|
+
onArrowSize: setArrowSize,
|
|
23943
|
+
hasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,
|
|
23944
|
+
...floating
|
|
23945
|
+
};
|
|
23946
|
+
}, [
|
|
23947
|
+
size2,
|
|
23948
|
+
floating.x,
|
|
23949
|
+
floating.y,
|
|
23950
|
+
floating.isPositioned
|
|
23951
|
+
]);
|
|
23927
23952
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
|
|
23928
23953
|
scope,
|
|
23929
23954
|
...popperContext,
|