henrybuilt-react-library
Advanced tools
Comparing version 1.0.38 to 1.0.39
{ | ||
"name": "henrybuilt-react-library", | ||
"version": "1.0.38", | ||
"version": "1.0.39", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "maxhudson", |
import {_, React, Component} from 'components'; | ||
import './popup.scss'; | ||
export default function Popup({children, type='pane', onClose}) { | ||
export default function Popup({children, position, type='pane', onClose}) { | ||
var src = 'https://henrybuilt-cdn.s3-us-west-2.amazonaws.com/images/icons/x.png'; | ||
return ( | ||
<div className={`popup type-${type} popup-wrapper`} onClick={event => event.target.className.indexOf('popup-wrapper') !== -1 && onClose(event)}> | ||
<div className={`popup type-${type} popup-wrapper position-${position}`} onClick={event => event.target.className.indexOf('popup-wrapper') !== -1 && onClose(event)}> | ||
<div className='popup-window'> | ||
@@ -10,0 +10,0 @@ <img src={src} className='popup-close-button' onClick={onClose} alt='close popup'/> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
12563931
144174