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/native.js
CHANGED
|
@@ -8745,7 +8745,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8745
8745
|
}
|
|
8746
8746
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
8747
8747
|
var _stateRef_current_group;
|
|
8748
|
-
if (!groupName || props.passThrough
|
|
8748
|
+
if (!groupName || props.passThrough || // avoids onLayout
|
|
8749
|
+
props.containerType === "normal") return groupContextParent;
|
|
8749
8750
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
8750
8751
|
var listeners = /* @__PURE__ */ new Set();
|
|
8751
8752
|
return stateRef.current.group = {
|
|
@@ -24321,7 +24322,23 @@ var require_useFloating_native = __commonJS({
|
|
|
24321
24322
|
module2.exports = __toCommonJS2(useFloating_exports);
|
|
24322
24323
|
var import_react3 = __toESM2(require("react")), Floating = __toESM2(require_Floating_native()), FloatingOverrideContext2 = /* @__PURE__ */ import_react3.default.createContext(null), useFloating2 = function(props) {
|
|
24323
24324
|
var _this, context = import_react3.default.useContext(FloatingOverrideContext2);
|
|
24324
|
-
return (_this = context || Floating.useFloating) === null || _this === void 0 ? void 0 : _this(
|
|
24325
|
+
return (_this = context || Floating.useFloating) === null || _this === void 0 ? void 0 : _this({
|
|
24326
|
+
...props,
|
|
24327
|
+
middleware: [
|
|
24328
|
+
// @ts-ignore
|
|
24329
|
+
...props.middleware,
|
|
24330
|
+
{
|
|
24331
|
+
name: "rounded",
|
|
24332
|
+
fn(param) {
|
|
24333
|
+
var { x, y } = param;
|
|
24334
|
+
return {
|
|
24335
|
+
x: Math.round(x),
|
|
24336
|
+
y: Math.round(y)
|
|
24337
|
+
};
|
|
24338
|
+
}
|
|
24339
|
+
}
|
|
24340
|
+
]
|
|
24341
|
+
});
|
|
24325
24342
|
};
|
|
24326
24343
|
}
|
|
24327
24344
|
});
|
|
@@ -24558,7 +24575,7 @@ var require_Popper_native = __commonJS({
|
|
|
24558
24575
|
Object.assign(setupOptions, options);
|
|
24559
24576
|
}
|
|
24560
24577
|
function Popper(props) {
|
|
24561
|
-
var
|
|
24578
|
+
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)({
|
|
24562
24579
|
open: passThrough ? !1 : open || !0,
|
|
24563
24580
|
strategy,
|
|
24564
24581
|
placement,
|
|
@@ -24602,14 +24619,22 @@ var require_Popper_native = __commonJS({
|
|
|
24602
24619
|
dimensions,
|
|
24603
24620
|
keyboardOpen
|
|
24604
24621
|
]);
|
|
24605
|
-
var popperContext = {
|
|
24606
|
-
|
|
24607
|
-
|
|
24608
|
-
|
|
24609
|
-
|
|
24610
|
-
|
|
24611
|
-
|
|
24612
|
-
|
|
24622
|
+
var popperContext = React4.useMemo(function() {
|
|
24623
|
+
var _middlewareData_checkFloating;
|
|
24624
|
+
return {
|
|
24625
|
+
size: size2,
|
|
24626
|
+
arrowRef: setArrow,
|
|
24627
|
+
arrowStyle: middlewareData.arrow,
|
|
24628
|
+
onArrowSize: setArrowSize,
|
|
24629
|
+
hasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,
|
|
24630
|
+
...floating
|
|
24631
|
+
};
|
|
24632
|
+
}, [
|
|
24633
|
+
size2,
|
|
24634
|
+
floating.x,
|
|
24635
|
+
floating.y,
|
|
24636
|
+
floating.isPositioned
|
|
24637
|
+
]);
|
|
24613
24638
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
|
|
24614
24639
|
scope,
|
|
24615
24640
|
...popperContext,
|