Sha256: c71c274dbce4acc4ef3ebf0be500e2f78050ec2943a756cbb2b4367b4d1e8c4c

Contents?: true

Size: 1.18 KB

Versions: 57

Compression:

Stored size: 1.18 KB

Contents

import PropTypes from 'prop-types';

const commonSearchPropTypes = {
  userInputValue: PropTypes.string.isRequired,
  clearSearch: PropTypes.func.isRequired,
  getInputProps: PropTypes.func.isRequired,
  getItemProps: PropTypes.func.isRequired,
  isOpen: PropTypes.bool.isRequired,
  inputValue: PropTypes.string.isRequired,
  highlightedIndex: PropTypes.number.isRequired,
  selectedItem: PropTypes.string.isRequired,
  selectItem: PropTypes.func.isRequired,
  openMenu: PropTypes.func.isRequired,
  onSearch: PropTypes.func.isRequired,
  items: PropTypes.arrayOf(PropTypes.shape({
    text: PropTypes.string,
  })).isRequired,
  activeItems: PropTypes.arrayOf(PropTypes.string).isRequired,
  shouldShowItems: PropTypes.bool.isRequired,
};

export const commonInputPropTypes = {
  passedProps: PropTypes.shape({}).isRequired,
  onKeyPress: PropTypes.func.isRequired,
  onInputFocus: PropTypes.func.isRequired,
};

export const commonItemPropTypes = {
  items: PropTypes.arrayOf(PropTypes.object).isRequired,
  activeItems: PropTypes.arrayOf(PropTypes.string).isRequired,
  highlightedIndex: PropTypes.number.isRequired,
  getItemProps: PropTypes.func.isRequired,
};

export default commonSearchPropTypes;

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
katello-4.3.1 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.4.0.rc1 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.2.2 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.3.0 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.3.0.rc4 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.3.0.rc3 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.3.0.rc2.1 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.3.0.rc2 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.3.0.rc1 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.2.1 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.2.0.1 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.1.4 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.0.3 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.2.0.1.rc3 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-3.18.5 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.2.0.1.rc2 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.2.0.rc2 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.1.3 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.2.0.rc1 webpack/components/TypeAhead/helpers/commonPropTypes.js
katello-4.0.2.1 webpack/components/TypeAhead/helpers/commonPropTypes.js