@yamada-ui/portal
Advanced tools
Comparing version 1.0.25-dev-20241128032343 to 1.0.25-dev-20241128034423
@@ -109,5 +109,7 @@ "use client" | ||
containerRef, | ||
disabled, | ||
isDisabled | ||
}) => { | ||
if (isDisabled) return children; | ||
disabled != null ? disabled : disabled = isDisabled; | ||
if (disabled) return children; | ||
return containerRef ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)( | ||
@@ -114,0 +116,0 @@ ContainerPortal, |
@@ -24,2 +24,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
*/ | ||
disabled?: boolean; | ||
/** | ||
* If `true`, the forwarding will be disabled. | ||
* | ||
* @deprecated Use `disabled` instead. | ||
*/ | ||
isDisabled?: boolean; | ||
@@ -33,3 +39,3 @@ } | ||
declare const Portal: { | ||
({ appendToParentPortal, children, containerRef, isDisabled, }: PortalProps): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined; | ||
({ appendToParentPortal, children, containerRef, disabled, isDisabled, }: PortalProps): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined; | ||
displayName: string; | ||
@@ -36,0 +42,0 @@ __ui__: string; |
@@ -107,5 +107,7 @@ "use client" | ||
containerRef, | ||
disabled, | ||
isDisabled | ||
}) => { | ||
if (isDisabled) return children; | ||
disabled != null ? disabled : disabled = isDisabled; | ||
if (disabled) return children; | ||
return containerRef ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)( | ||
@@ -112,0 +114,0 @@ ContainerPortal, |
{ | ||
"name": "@yamada-ui/portal", | ||
"version": "1.0.25-dev-20241128032343", | ||
"version": "1.0.25-dev-20241128034423", | ||
"description": "Yamada UI portal component", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@yamada-ui/utils": "1.6.0-dev-20241128032343" | ||
"@yamada-ui/utils": "1.6.0-dev-20241128034423" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54842
643
+ Added@yamada-ui/utils@1.6.0-dev-20241128034423(transitive)
- Removed@yamada-ui/utils@1.6.0-dev-20241128032343(transitive)