@zohodesk/components
Version:
In this Package, we Provide Some Basic Components to Build Web App
30 lines • 1.1 kB
JavaScript
import PropTypes from 'prop-types';
export const ContextTypes = {
direction: PropTypes.string
};
export const PopupPropTypes = {
popupGroup: PropTypes.string,
isArrow: PropTypes.bool,
isPopupOpen: PropTypes.bool,
closeOnScroll: PropTypes.bool,
isOutsideScrollBlocked: PropTypes.bool,
needResizeHandling: PropTypes.bool,
isAbsolutePositioningNeeded: PropTypes.bool,
scrollDebounceTime: PropTypes.number,
customOrder: PropTypes.arrayOf(PropTypes.string),
checkBeforeClose: PropTypes.func
};
export const PopupWrappersPropTypes = {
openPopupOnly: PropTypes.func,
closePopupOnly: PropTypes.func,
togglePopup: PropTypes.func,
removeClose: PropTypes.func,
isPopupReady: PropTypes.bool,
position: PropTypes.oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
getTargetRef: PropTypes.func,
getContainerRef: PropTypes.func,
...PopupPropTypes,
isRestrictScroll: PropTypes.bool,
positionsOffset: PropTypes.object,
targetOffset: PropTypes.object
};