import React from 'react'; import PropTypes from 'prop-types'; /** * @ngdoc react * @name Select * @description Component to select a list from dropdown */ export const Select: React.StatelessComponent = ( {field, value, onChange, options, readOnly, clearable, autoFocus, onFocus, refNode}, ) => ( ); Select.propTypes = { field: PropTypes.string, value: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, ]), onChange: PropTypes.func.isRequired, options: PropTypes.arrayOf(PropTypes.shape({ key: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, ]), label: PropTypes.string, })), readOnly: PropTypes.bool, clearable: PropTypes.bool, autoFocus: PropTypes.bool, refNode: PropTypes.func, onFocus: PropTypes.func, }; Select.defaultProps = { readOnly: false, clearable: false, autoFocus: false, };