tamagui 1.132.9 → 1.132.10
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 +1 -1
- package/dist/test.native.js +3 -3
- package/dist/test.native.js.map +1 -1
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -19929,13 +19929,13 @@ var require_Dialog_native = __commonJS({
|
|
|
19929
19929
|
children: content
|
|
19930
19930
|
}) : content;
|
|
19931
19931
|
}, DialogPortal = /* @__PURE__ */ React4.forwardRef(function(props, forwardRef2) {
|
|
19932
|
-
var { scope, forceMount, children, ...frameProps } = props, dialogRef = React4.useRef(null), ref = (0, import_compose_refs.composeRefs)(dialogRef, forwardRef2), context = useDialogContext(scope), isMountedOrOpen = forceMount || context.open, [isFullyHidden, setIsFullyHidden] = React4.useState(!isMountedOrOpen), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope), isVisible = !isFullyHidden;
|
|
19933
|
-
import_constants4.isWeb && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
19932
|
+
var { scope, forceMount, children, ...frameProps } = props, dialogRef = React4.useRef(null), ref = (0, import_compose_refs.composeRefs)(dialogRef, forwardRef2), context = useDialogContext(scope), isMountedOrOpen = forceMount || context.open, [isFullyHidden, setIsFullyHidden] = React4.useState(!isMountedOrOpen), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope), isVisible = isMountedOrOpen ? !0 : !isFullyHidden;
|
|
19933
|
+
isMountedOrOpen && isFullyHidden && setIsFullyHidden(!1), import_constants4.isWeb && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
19934
19934
|
var node = dialogRef.current;
|
|
19935
19935
|
node instanceof HTMLDialogElement && (isVisible ? node.show() : node.close());
|
|
19936
19936
|
}, [
|
|
19937
19937
|
isVisible
|
|
19938
|
-
])
|
|
19938
|
+
]);
|
|
19939
19939
|
var handleExitComplete = React4.useCallback(function() {
|
|
19940
19940
|
setIsFullyHidden(!0);
|
|
19941
19941
|
}, []), zIndex = (0, import_core12.getExpandedShorthand)("zIndex", props), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|