@yamada-ui/portal
Advanced tools
Comparing version 0.0.0-dev-20230920110346 to 0.0.0-dev-20231007192434
@@ -35,4 +35,7 @@ "use client" | ||
appendToParentPortal = true, | ||
isDisabled, | ||
children | ||
}) => { | ||
if (isDisabled) | ||
return children; | ||
return containerRef ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContainerPortal, { containerRef, ...{ children } }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -39,0 +42,0 @@ DefaultPortal, |
@@ -21,5 +21,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
appendToParentPortal?: boolean; | ||
/** | ||
* If `true`, the forwarding will be disabled. | ||
*/ | ||
isDisabled?: boolean; | ||
}; | ||
declare const Portal: { | ||
({ containerRef, appendToParentPortal, children, }: PortalProps): react_jsx_runtime.JSX.Element; | ||
({ containerRef, appendToParentPortal, isDisabled, children, }: PortalProps): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined; | ||
className: string; | ||
@@ -26,0 +30,0 @@ selector: string; |
@@ -113,4 +113,7 @@ "use client" | ||
appendToParentPortal = true, | ||
isDisabled, | ||
children | ||
}) => { | ||
if (isDisabled) | ||
return children; | ||
return containerRef ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ContainerPortal, { containerRef, ...{ children } }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)( | ||
@@ -117,0 +120,0 @@ DefaultPortal, |
{ | ||
"name": "@yamada-ui/portal", | ||
"version": "0.0.0-dev-20230920110346", | ||
"version": "0.0.0-dev-20231007192434", | ||
"description": "Yamada UI portal component", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@yamada-ui/utils": "0.0.0-dev-20230920110346" | ||
"@yamada-ui/utils": "0.2.1" | ||
}, | ||
@@ -41,0 +41,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26740
657
+ Added@yamada-ui/utils@0.2.1(transitive)
- Removed@yamada-ui/utils@0.0.0-dev-20230920110346(transitive)
Updated@yamada-ui/utils@0.2.1