@yamada-ui/portal
Advanced tools
Comparing version 1.0.25-next-20241127012228 to 1.0.25
@@ -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-next-20241127012228", | ||
"version": "1.0.25", | ||
"description": "Yamada UI portal component", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@yamada-ui/utils": "1.6.0-next-20241127012228" | ||
"@yamada-ui/utils": "1.6.0" | ||
}, | ||
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
54804
643
0
+ Added@yamada-ui/utils@1.6.0(transitive)
- Removed@yamada-ui/utils@1.6.0-next-20241127012228(transitive)
Updated@yamada-ui/utils@1.6.0