tamagui 1.132.9 → 1.132.10-1752884366504
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/test.native.js
CHANGED
|
@@ -19330,13 +19330,13 @@ var require_Dialog_native = __commonJS({
|
|
|
19330
19330
|
children: content
|
|
19331
19331
|
}) : content;
|
|
19332
19332
|
}, DialogPortal = /* @__PURE__ */ React4.forwardRef(function(props, forwardRef2) {
|
|
19333
|
-
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;
|
|
19334
|
-
import_constants4.isWeb && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
19333
|
+
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;
|
|
19334
|
+
isMountedOrOpen && isFullyHidden && setIsFullyHidden(!1), import_constants4.isWeb && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
19335
19335
|
var node = dialogRef.current;
|
|
19336
19336
|
node instanceof HTMLDialogElement && (isVisible ? node.show() : node.close());
|
|
19337
19337
|
}, [
|
|
19338
19338
|
isVisible
|
|
19339
|
-
])
|
|
19339
|
+
]);
|
|
19340
19340
|
var handleExitComplete = React4.useCallback(function() {
|
|
19341
19341
|
setIsFullyHidden(!0);
|
|
19342
19342
|
}, []), zIndex = (0, import_core12.getExpandedShorthand)("zIndex", props), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|