tamagui 1.132.3 → 1.132.5-1752435204050
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 +39 -13
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +39 -13
- package/dist/test.native.js.map +2 -2
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -8366,7 +8366,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8366
8366
|
willBeAnimated,
|
|
8367
8367
|
styledContextProps
|
|
8368
8368
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
8369
|
-
if (splitStyles && groupContext
|
|
8369
|
+
if (splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
8370
|
+
props.containerType !== "normal") {
|
|
8370
8371
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
8371
8372
|
if (groupState && groupState.layout === void 0) {
|
|
8372
8373
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -8468,7 +8469,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8468
8469
|
});
|
|
8469
8470
|
animations && (animations.ref && (animatedRef = animations.ref), isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)));
|
|
8470
8471
|
}
|
|
8471
|
-
splitStyles && groupContext &&
|
|
8472
|
+
splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
8473
|
+
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8472
8474
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
8473
8475
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
8474
8476
|
layout
|
|
@@ -16581,7 +16583,7 @@ var require_Adapt_native = __commonJS({
|
|
|
16581
16583
|
portalName
|
|
16582
16584
|
]);
|
|
16583
16585
|
var [when, setWhen] = import_react3.default.useState(null), [platform2, setPlatform] = import_react3.default.useState(null), [children2, setChildren] = import_react3.default.useState(null);
|
|
16584
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastAdaptContextScope, {
|
|
16586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastAdaptContextScope.Provider, {
|
|
16585
16587
|
value: scope,
|
|
16586
16588
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProvideAdaptContext, {
|
|
16587
16589
|
Contents: FinalContents,
|
|
@@ -23635,7 +23637,23 @@ var require_useFloating_native = __commonJS({
|
|
|
23635
23637
|
module2.exports = __toCommonJS2(useFloating_exports);
|
|
23636
23638
|
var import_react3 = __toESM2(require("react")), Floating = __toESM2(require_Floating_native()), FloatingOverrideContext2 = /* @__PURE__ */ import_react3.default.createContext(null), useFloating2 = function(props) {
|
|
23637
23639
|
var _this, context = import_react3.default.useContext(FloatingOverrideContext2);
|
|
23638
|
-
return (_this = context || Floating.useFloating) === null || _this === void 0 ? void 0 : _this(
|
|
23640
|
+
return (_this = context || Floating.useFloating) === null || _this === void 0 ? void 0 : _this({
|
|
23641
|
+
...props,
|
|
23642
|
+
middleware: [
|
|
23643
|
+
// @ts-ignore
|
|
23644
|
+
...props.middleware,
|
|
23645
|
+
{
|
|
23646
|
+
name: "rounded",
|
|
23647
|
+
fn(param) {
|
|
23648
|
+
var { x, y } = param;
|
|
23649
|
+
return {
|
|
23650
|
+
x: Math.round(x),
|
|
23651
|
+
y: Math.round(y)
|
|
23652
|
+
};
|
|
23653
|
+
}
|
|
23654
|
+
}
|
|
23655
|
+
]
|
|
23656
|
+
});
|
|
23639
23657
|
};
|
|
23640
23658
|
}
|
|
23641
23659
|
});
|
|
@@ -23872,7 +23890,7 @@ var require_Popper_native = __commonJS({
|
|
|
23872
23890
|
Object.assign(setupOptions, options);
|
|
23873
23891
|
}
|
|
23874
23892
|
function Popper(props) {
|
|
23875
|
-
var
|
|
23893
|
+
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
23894
|
open: passThrough ? !1 : open || !0,
|
|
23877
23895
|
strategy,
|
|
23878
23896
|
placement,
|
|
@@ -23916,14 +23934,22 @@ var require_Popper_native = __commonJS({
|
|
|
23916
23934
|
dimensions,
|
|
23917
23935
|
keyboardOpen
|
|
23918
23936
|
]);
|
|
23919
|
-
var popperContext = {
|
|
23920
|
-
|
|
23921
|
-
|
|
23922
|
-
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
|
|
23926
|
-
|
|
23937
|
+
var popperContext = React4.useMemo(function() {
|
|
23938
|
+
var _middlewareData_checkFloating;
|
|
23939
|
+
return {
|
|
23940
|
+
size: size2,
|
|
23941
|
+
arrowRef: setArrow,
|
|
23942
|
+
arrowStyle: middlewareData.arrow,
|
|
23943
|
+
onArrowSize: setArrowSize,
|
|
23944
|
+
hasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,
|
|
23945
|
+
...floating
|
|
23946
|
+
};
|
|
23947
|
+
}, [
|
|
23948
|
+
size2,
|
|
23949
|
+
floating.x,
|
|
23950
|
+
floating.y,
|
|
23951
|
+
floating.isPositioned
|
|
23952
|
+
]);
|
|
23927
23953
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
|
|
23928
23954
|
scope,
|
|
23929
23955
|
...popperContext,
|