tamagui 1.132.8 → 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 -4
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +3 -4
- 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, {
|
|
@@ -19399,7 +19399,6 @@ var require_Dialog_native = __commonJS({
|
|
|
19399
19399
|
});
|
|
19400
19400
|
}), CONTENT_NAME = "DialogContent", DialogContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
19401
19401
|
name: CONTENT_NAME,
|
|
19402
|
-
tag: "dialog",
|
|
19403
19402
|
variants: {
|
|
19404
19403
|
size: {
|
|
19405
19404
|
"...size": function(val, extras) {
|