bemto-input
Advanced tools
Comparing version 0.1.0 to 0.2.0
## Changelog | ||
### v0.2.0 (2018-04-05) | ||
- Added stylelint (don't seem to work for some reason O_o?). | ||
- Fixed events. | ||
- Updated deps. | ||
### v0.1.0 (2018-03-05) | ||
- Initial basic version |
@@ -53,11 +53,11 @@ const bemto = require('bemto-components'); | ||
onChange: (props, state, component) => e => { | ||
props.onChange && props.onChange(); | ||
props.onChange && props.onChange(e); | ||
component.setState({ value: e.target.value }); | ||
}, | ||
onFocus: (props, state, component) => () => { | ||
props.onFocus && props.onFocus(); | ||
onFocus: (props, state, component) => e => { | ||
props.onFocus && props.onFocus(e); | ||
component.setState({ isFocused: true }); | ||
}, | ||
onBlur: (props, state, component) => () => { | ||
props.onBlur && props.onBlur(); | ||
onBlur: (props, state, component) => e => { | ||
props.onBlur && props.onBlur(e); | ||
component.setState({ isFocused: false }); | ||
@@ -64,0 +64,0 @@ } |
{ | ||
"name": "bemto-input", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Complex input foundation based on bemto-components & styled-components", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"lint:css": "stylelint 'lib/**/*.js'", | ||
"test": "jest" | ||
@@ -27,3 +28,3 @@ }, | ||
"dependencies": { | ||
"bemto-components": "^2.0.0" | ||
"bemto-components": "^2.3.1" | ||
}, | ||
@@ -38,4 +39,8 @@ "peerDependencies": { | ||
"jest-styled-components": "^5.0.0", | ||
"react-test-renderer": "16.1.1" | ||
"react-test-renderer": "16.1.1", | ||
"stylelint": "^9.2.0", | ||
"stylelint-config-standard": "^18.2.0", | ||
"stylelint-config-styled-components": "^0.1.1", | ||
"stylelint-processor-styled-components": "^1.3.1" | ||
} | ||
} |
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
27806
13
9
Updatedbemto-components@^2.3.1