@@ -20,19 +20,24 @@ import ChipInput from 'material-ui-chip-input';
|
||||
import { blue300 } from 'material-ui/styles/colors';
|
||||
import { uniq } from 'lodash';
|
||||
|
||||
import { nodeOrStringProptype } from '~/util/proptypes';
|
||||
|
||||
import styles from './inputChip.css';
|
||||
|
||||
export default class InputChip extends Component {
|
||||
static propTypes = {
|
||||
tokens: PropTypes.array.isRequired,
|
||||
addOnBlur: PropTypes.bool,
|
||||
clearOnBlur: PropTypes.bool,
|
||||
className: PropTypes.string,
|
||||
hint: PropTypes.string,
|
||||
label: PropTypes.string,
|
||||
hint: nodeOrStringProptype(),
|
||||
label: nodeOrStringProptype(),
|
||||
onTokensChange: PropTypes.func,
|
||||
onInputChange: PropTypes.func,
|
||||
onBlur: PropTypes.func,
|
||||
addOnBlur: PropTypes.bool,
|
||||
clearOnBlur: PropTypes.bool
|
||||
tokens: PropTypes.oneOfType([
|
||||
PropTypes.array,
|
||||
PropTypes.object
|
||||
]).isRequired
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
|
||||
@@ -21,6 +21,7 @@ import ContractIcon from 'material-ui/svg-icons/action/code';
|
||||
import DoneIcon from 'material-ui/svg-icons/action/done-all';
|
||||
import PrevIcon from 'material-ui/svg-icons/navigation/arrow-back';
|
||||
import NextIcon from 'material-ui/svg-icons/navigation/arrow-forward';
|
||||
import SaveIcon from 'material-ui/svg-icons/content/save';
|
||||
import SnoozeIcon from 'material-ui/svg-icons/av/snooze';
|
||||
|
||||
export {
|
||||
@@ -31,5 +32,6 @@ export {
|
||||
DoneIcon,
|
||||
PrevIcon,
|
||||
NextIcon,
|
||||
SaveIcon,
|
||||
SnoozeIcon
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user