@trend/textfield
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "@trend/textfield", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "TREND Component for inputting, editing, and selecting text.", | ||
@@ -16,2 +16,6 @@ "repository": { | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6" | ||
}, | ||
"publishConfig": { | ||
@@ -28,3 +32,6 @@ "access": "public" | ||
"prop-types": "^15.6.2" | ||
}, | ||
"scripts": { | ||
"build": "node ../../scripts/build-js" | ||
} | ||
} |
import React from 'react'; | ||
import { | ||
boolean, | ||
} from '@storybook/addon-knobs/react'; | ||
@@ -17,3 +14,2 @@ import Data from '../../tc-icon/src/Data'; | ||
onChange = evt => { | ||
console.log('onChange: ', evt.target.value); | ||
this.setState({ value: evt.target.value }); | ||
@@ -23,4 +19,3 @@ } | ||
render() { | ||
const rtl = boolean('rtl', false); | ||
const disabled = boolean('Disable Textfields', false); | ||
const { rtl, disabled } = this.props; | ||
@@ -27,0 +22,0 @@ return <div |
@@ -6,3 +6,6 @@ import React from 'react'; | ||
import { withReadme, doc } from 'storybook-readme'; | ||
import { withKnobs } from '@storybook/addon-knobs' | ||
import { withKnobs } from '@storybook/addon-knobs'; | ||
import { | ||
boolean, | ||
} from '@storybook/addon-knobs/react'; | ||
@@ -16,2 +19,7 @@ import readme from '../README.md'; | ||
.add('scss', doc(scssReadme)) | ||
.add(Component.displayName, withReadme(readme, () => <Component />)); | ||
.add(Component.displayName, withReadme(readme, () => { | ||
const rtl = boolean('rtl', false); | ||
const disabled = boolean('Disable Textfields', false); | ||
return <Component disabled={disabled} rtl={rtl} />;} | ||
)); |
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
64052
705
9