All files / src/dropdown/ToggleDropDown/props propTypes.js

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

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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99    5x                                                                                                                                                                                                
import PropTypes from 'prop-types';
 
export const propTypes = {
  activeStyle: PropTypes.string,
  arrowIconPosition: PropTypes.oneOf(['default', 'overlay']),
  bottom: PropTypes.number,
  boxPosition: PropTypes.oneOf([
    'bottomRight',
    'bottomLeft',
    'bottomCenter',
    'topRight',
    'topLeft',
    'topCenter',
    'rightTop',
    'rightBottom',
    'rightCenter',
    'leftTop',
    'leftBottom',
    'leftCenter'
  ]),
  boxSize: PropTypes.oneOf(['xsmall', 'small', 'medium', 'mlarge', 'large']),
  children: PropTypes.node,
  className: PropTypes.string,
  dataId: PropTypes.string,
  dataSelectorId: PropTypes.string,
  dataTitle: PropTypes.string,
  getContainerRef: PropTypes.func,
  getNextOptions: PropTypes.func,
  getTargetRef: PropTypes.func,
  groupNameKey: PropTypes.string,
  groupOptionsKey: PropTypes.string,
  hoverStyle: PropTypes.string,
  hoverType: PropTypes.oneOf(['default', 'border', 'bg']),
  iconName: PropTypes.string,
  iconSize: PropTypes.string,
  idName: PropTypes.string,
  isArrow: PropTypes.bool,
  isDataLoaded: PropTypes.bool,
  isDisabled: PropTypes.bool,
  isEditable: PropTypes.bool,
  isGroupDropDown: PropTypes.bool,
  isNeedEffect: PropTypes.bool,
  isNextOptions: PropTypes.bool,
  isPadding: PropTypes.bool,
  isPopupActive: PropTypes.bool,
  isPopupOpen: PropTypes.bool,
  isPopupReady: PropTypes.bool,
  isReadOnly: PropTypes.bool,
  isSearch: PropTypes.bool,
  isToggleStateNeeded: PropTypes.bool,
  keyName: PropTypes.string,
  left: PropTypes.number,
  needExternalPopupState: PropTypes.bool,
  needResponsive: PropTypes.bool,
  needSearchFetching: PropTypes.bool,
  needTick: PropTypes.bool,
  onClick: PropTypes.func,
  onSearch: PropTypes.func,
  options: PropTypes.array.isRequired,
  palette: PropTypes.oneOf(['dark']),
  placeHolderText: PropTypes.string,
  position: PropTypes.string,
  removeClose: PropTypes.func,
  right: PropTypes.number,
  searchBoxSize: PropTypes.oneOf(['small', 'medium', 'xmedium']),
  searchEmptyHint: PropTypes.string,
  searchErrorText: PropTypes.string,
  selectedId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
  showIconOnHover: PropTypes.bool,
  showOnHover: PropTypes.bool,
  title: PropTypes.string,
  togglePopup: PropTypes.func,
  value: PropTypes.node,
  onDropDownOpen: PropTypes.func,
  onDropDownClose: PropTypes.func,
  getFooter: PropTypes.func,
  customProps: PropTypes.shape({
    ToggleDropDownProps: PropTypes.object,
    DropBoxProps: PropTypes.object,
    TextBoxIconProps: PropTypes.object,
    ListItemWithIconProps: PropTypes.object,
    ListItemProps: PropTypes.object
  }),
  preventPopupClose: PropTypes.bool,
  needMultiLineText: PropTypes.bool,
  customClass: PropTypes.shape({
    customDropBox: PropTypes.string,
    customListBox: PropTypes.string
  }),
  onSelectLabel: PropTypes.func,
  isAbsolutePositioningNeeded: PropTypes.bool,
  isRestrictScroll: PropTypes.bool,
  positionsOffset: PropTypes.object,
  targetOffset: PropTypes.object,
  from: PropTypes.string,
  top: PropTypes.number,
  searchFields: PropTypes.array
};