material-ui-popup-state
Advanced tools
Comparing version 1.0.0 to 1.0.1
import * as React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
var bpfrpt_proptype_Variant = PropTypes.oneOf(['popover', 'popper']); | ||
var bpfrpt_proptype_Variant = PropTypes.oneOf(['popover', 'popper']); | ||
var bpfrpt_proptype_InjectedProps = { | ||
open: PropTypes.func.isRequired, | ||
close: PropTypes.func.isRequired, | ||
toggle: PropTypes.func.isRequired, | ||
setOpen: PropTypes.func.isRequired, | ||
isOpen: PropTypes.bool.isRequired, | ||
anchorEl: function () { | ||
return (typeof HTMLElement === 'function' ? PropTypes.instanceOf(HTMLElement) : PropTypes.any).apply(this, arguments); | ||
}, | ||
popupId: PropTypes.string, | ||
variant: PropTypes.oneOf(['popover', 'popper']).isRequired | ||
}; | ||
var bpfrpt_proptype_InjectedProps = { | ||
open: PropTypes.func.isRequired, | ||
close: PropTypes.func.isRequired, | ||
toggle: PropTypes.func.isRequired, | ||
setOpen: PropTypes.func.isRequired, | ||
isOpen: PropTypes.bool.isRequired, | ||
anchorEl: function () { | ||
return (typeof HTMLElement === 'function' ? PropTypes.instanceOf(HTMLElement) : PropTypes.any).apply(this, arguments); | ||
}, | ||
popupId: PropTypes.string, | ||
variant: PropTypes.oneOf(['popover', 'popper']).isRequired | ||
}; | ||
/** | ||
@@ -112,14 +84,2 @@ * Creates props for a component that opens the popup when clicked. | ||
var bpfrpt_proptype_Props = { | ||
popupId: PropTypes.string, | ||
children: PropTypes.func.isRequired, | ||
variant: PropTypes.oneOf(['popover', 'popper']).isRequired | ||
}; | ||
var bpfrpt_proptype_Props = { | ||
popupId: PropTypes.string, | ||
children: PropTypes.func.isRequired, | ||
variant: PropTypes.oneOf(['popover', 'popper']).isRequired | ||
}; | ||
let eventOrAnchorElWarned = false; | ||
@@ -165,7 +125,2 @@ | ||
PopupState.propTypes = { | ||
popupId: PropTypes.string, | ||
children: PropTypes.func.isRequired, | ||
variant: PropTypes.oneOf(['popover', 'popper']).isRequired | ||
}; | ||
PopupState.propTypes = { | ||
/** | ||
@@ -205,9 +160,2 @@ * The render function. | ||
variant: PropTypes.oneOf(['popover', 'popper']).isRequired | ||
}; | ||
import PropTypes from 'prop-types'; | ||
export { bpfrpt_proptype_Variant }; | ||
export { bpfrpt_proptype_Variant }; | ||
export { bpfrpt_proptype_InjectedProps }; | ||
export { bpfrpt_proptype_InjectedProps }; | ||
export { bpfrpt_proptype_Props }; | ||
export { bpfrpt_proptype_Props }; | ||
}; |
{ | ||
"name": "material-ui-popup-state", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "easiest way to create menus, popovers, and poppers with material-ui", | ||
@@ -76,3 +76,2 @@ "main": "index.js", | ||
"babel-eslint": "^7.1.1", | ||
"babel-plugin-flow-react-proptypes": "^17.0.0", | ||
"babel-plugin-istanbul": "^4.0.0", | ||
@@ -79,0 +78,0 @@ "babel-plugin-syntax-dynamic-import": "^6.18.0", |
Sorry, the diff of this file is not supported yet
46
283148
344