Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trend/textfield

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trend/textfield - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

9

package.json
{
"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"
}
}

7

stories/component.story.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} />;}
));
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc