material-ui-chip-input
Advanced tools
Comparing version 0.16.1 to 0.17.0
@@ -7,5 +7,2 @@ import { configure } from '@kadira/storybook'; | ||
const injectTapEventPlugin = require("react-tap-event-plugin"); | ||
injectTapEventPlugin(); | ||
configure(loadStories, module); |
@@ -161,3 +161,3 @@ 'use strict'; | ||
backgroundColor: isFocused ? _colors.blue300 : null, | ||
onTouchTap: handleClick, | ||
onClick: handleClick, | ||
onRequestDelete: handleRequestDelete | ||
@@ -598,3 +598,3 @@ }, | ||
style: prepareStyles(_extends(styles.root, style, overrideRootStyles)), | ||
onTouchTap: function onTouchTap() { | ||
onClick: function onClick() { | ||
return _this4.focus(); | ||
@@ -601,0 +601,0 @@ } |
{ | ||
"name": "material-ui-chip-input", | ||
"version": "0.16.1", | ||
"version": "0.17.0", | ||
"description": "A chip input field using Material-UI.", | ||
@@ -41,13 +41,11 @@ "main": "lib/ChipInput.js", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"material-ui": "^0.18.0", | ||
"material-ui": "^0.19.0", | ||
"react": "^15.4.0", | ||
"react-dom": "^15.4.0", | ||
"react-tap-event-plugin": "^2.0.0", | ||
"standard": "^10.0.2" | ||
}, | ||
"peerDependencies": { | ||
"material-ui": ">= 0.15.0 < 1.0.0", | ||
"material-ui": ">= 0.19.0 < 1.0.0", | ||
"react": "^15.3.2", | ||
"react-dom": "^15.3.2", | ||
"react-tap-event-plugin": "^1.0.0 || ^2.0.0" | ||
"react-dom": "^15.3.2" | ||
}, | ||
@@ -54,0 +52,0 @@ "dependencies": { |
@@ -53,5 +53,5 @@ # material-ui-chip-input | ||
| onChange | `function` | | Callback function that is called when the chips change (in uncontrolled mode). | | ||
| onClick | `function` | | Callback function that is called when text input is clicked. | | ||
| onRequestAdd | `function` | | Callback function that is called when a new chip was added (in controlled mode). | | ||
| onRequestDelete | `function` | | Callback function that is called when a new chip was removed (in controlled mode). | | ||
| onTouchTap | `function` | | Callback function that is called when text input is clicked. | | ||
| onUpdateInput | `function` | | Callback function that is called when the input changes (useful for auto complete). | | ||
@@ -58,0 +58,0 @@ | openOnFocus | `bool` | `false` | Opens the auto complete list on focus if set to true. | |
@@ -105,3 +105,3 @@ /** | ||
backgroundColor={isFocused ? blue300 : null} | ||
onTouchTap={handleClick} | ||
onClick={handleClick} | ||
onRequestDelete={handleRequestDelete} | ||
@@ -502,3 +502,3 @@ > | ||
style={prepareStyles(Object.assign(styles.root, style, overrideRootStyles))} | ||
onTouchTap={() => this.focus()} | ||
onClick={() => this.focus()} | ||
> | ||
@@ -505,0 +505,0 @@ <div> |
@@ -114,3 +114,3 @@ import React from 'react' | ||
backgroundColor={isFocused ? green800 : green300} | ||
onTouchTap={handleClick} | ||
onClick={handleClick} | ||
onRequestDelete={handleRequestDelete} | ||
@@ -157,3 +157,3 @@ > | ||
onRequestAdd={action('onRequestAdd')} | ||
onTouchTap={action('onTouchTap')} | ||
onClick={action('onClick')} | ||
/> | ||
@@ -168,3 +168,3 @@ )) | ||
onRequestAdd={action('onRequestAdd')} | ||
onTouchTap={action('onTouchTap')} | ||
onClick={action('onClick')} | ||
/> | ||
@@ -181,3 +181,3 @@ )) | ||
onRequestAdd={action('onRequestAdd')} | ||
onTouchTap={action('onTouchTap')} | ||
onClick={action('onClick')} | ||
/> | ||
@@ -194,3 +194,3 @@ )) | ||
onRequestAdd={action('onRequestAdd')} | ||
onTouchTap={action('onTouchTap')} | ||
onClick={action('onClick')} | ||
/> | ||
@@ -219,3 +219,3 @@ )) | ||
onRequestAdd={action('onRequestAdd')} | ||
onTouchTap={action('onTouchTap')} | ||
onClick={action('onClick')} | ||
/> | ||
@@ -222,0 +222,0 @@ )) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
13
416136
1493