@reach/portal
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -1,11 +0,37 @@ | ||
declare module "@reach/portal" { | ||
import * as React from "react"; | ||
/** | ||
* Creates and appends a DOM node to the end of `document.body` and renders a | ||
* React tree into it. Useful for rendering a natural React element hierarchy | ||
* with a different DOM hierarchy to prevent parent styles from clipping or | ||
* hiding content (for popovers, dropdowns, and modals). | ||
* | ||
* @see Docs https://reacttraining.com/reach-ui/portal | ||
* @see Source https://github.com/reach/reach-ui/tree/master/packages/portal | ||
* @see React https://reactjs.org/docs/portals.html | ||
*/ | ||
export type PortalProps = { | ||
children: React.ReactNode; | ||
type?: string; | ||
}; | ||
import * as React from "react"; | ||
declare const Portal: React.FunctionComponent<PortalProps>; | ||
export default Portal; | ||
} | ||
/** | ||
* @see Docs https://reacttraining.com/reach-ui/portal#portal-props | ||
*/ | ||
export type PortalProps = { | ||
/** | ||
* Regular React children. | ||
* | ||
* @see Docs https://reacttraining.com/reach-ui/portal#portal-children | ||
*/ | ||
children: React.ReactNode; | ||
/** | ||
* The DOM element type to render. | ||
* | ||
* @see Docs https://reacttraining.com/reach-ui/portal#portal-type | ||
*/ | ||
type?: string; | ||
}; | ||
/** | ||
* @see Docs https://reacttraining.com/reach-ui/portal#portal | ||
*/ | ||
declare const Portal: React.FunctionComponent<PortalProps>; | ||
export default Portal; |
{ | ||
"name": "@reach/portal", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Declarative portals for React", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@reach/component-component": "^0.4.0" | ||
"@reach/component-component": "^0.5.0" | ||
}, | ||
@@ -28,3 +28,3 @@ "peerDependencies": { | ||
], | ||
"gitHead": "0f3d2c7e530cd80e1d1bd338182ac89a3ba23999" | ||
"gitHead": "7e33672d882cd6df77ac8cdb76b6b4a21dbf28c2" | ||
} |
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
7048
152
+ Added@reach/component-component@0.5.0(transitive)
- Removed@reach/component-component@0.4.0(transitive)