All files / src/Drawer/props propTypes.js

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71    4x                                     4x             4x             4x                                                                      
import PropTypes from 'prop-types';
 
export const Header_propTypes = {
  children: PropTypes.node,
  className: PropTypes.string,
  closeTitle: PropTypes.string,
  dataId: PropTypes.string,
  flexible: PropTypes.bool,
  getChildren: PropTypes.func,
  iconName: PropTypes.string,
  iconSize: PropTypes.string,
  iconTitle: PropTypes.string,
  isIconBold: PropTypes.bool,
  onClose: PropTypes.func,
  onIconClick: PropTypes.func,
  paddingSize: PropTypes.oneOf(['small', 'medium', 'large']),
  title: PropTypes.string,
  isBoxIcon: PropTypes.bool,
  getTitleChildren: PropTypes.func
};
 
export const Content_propTypes = {
  children: PropTypes.node,
  className: PropTypes.string,
  eleRef: PropTypes.func,
  paddingSize: PropTypes.oneOf(['small', 'medium', 'large'])
};
 
export const Footer_propTypes = {
  children: PropTypes.node,
  paddingLeftSize: PropTypes.string,
  paddingRightClass: PropTypes.string,
  size: PropTypes.string
};
 
export const Drawer_propTypes = {
  children: PropTypes.node,
  customClass: PropTypes.string,
  customDrawerClass: PropTypes.string,
  forwardRef: PropTypes.object,
  isActive: PropTypes.bool,
  needAutoZindex: PropTypes.bool,
  needFreeze: PropTypes.bool,
  onBodyClick: PropTypes.func,
  onClose: PropTypes.func,
  paddingSize: PropTypes.oneOf(['small', 'medium', 'large']),
  palette: PropTypes.oneOf(['dark', 'default', 'darkLight', 'plain']),
  responsiveId: PropTypes.string,
  size: PropTypes.oneOf([
    'small',
    'xsmall',
    'medium',
    'xmedium',
    'large',
    'xlarge',
    'xxlarge',
    'default'
  ]),
  subDrawerActive: PropTypes.bool,
  subDrawerChildren: PropTypes.func,
  subDrawerClass: PropTypes.string,
  subDrawerSize: PropTypes.oneOf(['xsmall', 'small', 'medium']),
  needFocusScope: PropTypes.bool,
  customProps: PropTypes.object,
  innerPortalName: PropTypes.string,
  a11y: PropTypes.object,
  onAnimateEnter: PropTypes.func,
  postAnimateStyles: PropTypes.object,
  onAnimateExit: PropTypes.func
};