From 3de4f953e85dc66934b8147556b7553c902de3b8 Mon Sep 17 00:00:00 2001 From: MaimilianPichler Date: Tue, 14 Nov 2017 11:52:42 +0100 Subject: [PATCH 1/3] Add index file --- src/index.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/index.js diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..50b0493 --- /dev/null +++ b/src/index.js @@ -0,0 +1 @@ +export default from './SuperSelectField' From 68ef86d52a0ff3dba82878e3f1d4ebe92c18a9fa Mon Sep 17 00:00:00 2001 From: MaimilianPichler Date: Tue, 14 Nov 2017 12:05:14 +0100 Subject: [PATCH 2/3] Update nwb config and update demo --- demo/src/CodeExample1.js | 2 +- demo/src/CodeExample2.js | 2 +- demo/src/CodeExample3.js | 2 +- demo/src/CodeExample4.js | 2 +- demo/src/CodeExample5.js | 2 +- nwb.config.js | 7 +++++++ 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/demo/src/CodeExample1.js b/demo/src/CodeExample1.js index 796b06b..64a2f83 100644 --- a/demo/src/CodeExample1.js +++ b/demo/src/CodeExample1.js @@ -1,5 +1,5 @@ import React, { Component } from 'react' -import SuperSelectField from '../../src/SuperSelectField' +import SuperSelectField from 'material-ui-superselectfield' const containerStyle = { padding: 40, diff --git a/demo/src/CodeExample2.js b/demo/src/CodeExample2.js index cddd490..09409c9 100644 --- a/demo/src/CodeExample2.js +++ b/demo/src/CodeExample2.js @@ -1,6 +1,6 @@ import React, { Component } from 'react' import FlatButton from 'material-ui/FlatButton/FlatButton' -import SuperSelectField from '../../src/SuperSelectField' +import SuperSelectField from 'material-ui-superselectfield' const containerStyle = { padding: 40, diff --git a/demo/src/CodeExample3.js b/demo/src/CodeExample3.js index 137c449..c0d182d 100644 --- a/demo/src/CodeExample3.js +++ b/demo/src/CodeExample3.js @@ -1,5 +1,5 @@ import React, { Component } from 'react' -import SuperSelectField from '../../src/SuperSelectField' +import SuperSelectField from 'material-ui-superselectfield' import FlatButton from 'material-ui/FlatButton/FlatButton' import Chip from 'material-ui/Chip/Chip' import countries from './assets/countries' diff --git a/demo/src/CodeExample4.js b/demo/src/CodeExample4.js index a6acff6..5286655 100644 --- a/demo/src/CodeExample4.js +++ b/demo/src/CodeExample4.js @@ -1,5 +1,5 @@ import React, { Component } from 'react' -import SuperSelectField from '../../src/SuperSelectField' +import SuperSelectField from 'material-ui-superselectfield' import Chip from 'material-ui/Chip/Chip' import continents from './assets/continents' import countries from './assets/countries' diff --git a/demo/src/CodeExample5.js b/demo/src/CodeExample5.js index 59aee10..d637b30 100644 --- a/demo/src/CodeExample5.js +++ b/demo/src/CodeExample5.js @@ -1,6 +1,6 @@ import React, { Component } from 'react' import CircularProgress from 'material-ui/CircularProgress/CircularProgress' -import SuperSelectField from '../../src/SuperSelectField' +import SuperSelectField from 'material-ui-superselectfield' import data from './assets/states' class CodeExample extends Component { diff --git a/nwb.config.js b/nwb.config.js index 146d011..8b99619 100644 --- a/nwb.config.js +++ b/nwb.config.js @@ -1,7 +1,14 @@ +const path = require('path') + module.exports = { type: 'react-component', npm: { esModules: true, umd: false + }, + webpack: { + aliases: { + 'material-ui-superselectfield': path.resolve('src') + } } } From 42efa3869b1f6904a8c6c6d41ce2cb749e1de91f Mon Sep 17 00:00:00 2001 From: MaimilianPichler Date: Tue, 14 Nov 2017 13:02:56 +0100 Subject: [PATCH 3/3] Increment version --- package.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 1b70c78..ddcdac2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "material-ui-superselectfield", - "version": "1.7.0", + "version": "1.7.1", "description": "original Material-UI's SelectField component enhanced with autocompletion, multiselection, custom renderers, and infinite loading.", "keywords": [ "react", @@ -42,7 +42,9 @@ "start": "nwb serve-react-demo", "test": "nwb test-react", "test:coverage": "nwb test-react --coverage", - "test:watch": "nwb test-react --server" + "test:watch": "nwb test-react --server", + "storybook": "start-storybook -p 6006", + "build-storybook": "build-storybook" }, "dependencies": { "react-infinite": "^0.12.1" @@ -53,6 +55,9 @@ "material-ui": ">= 0.17 < 1" }, "devDependencies": { + "@storybook/addon-actions": "^3.2.15", + "@storybook/addon-links": "^3.2.15", + "@storybook/react": "^3.2.15", "enzyme": "^3.1.1", "enzyme-adapter-react-16": "^1.0.4", "eslint": "^4.10.0", @@ -63,6 +68,7 @@ "react": "^16.1.0", "react-dom": "^16.1.0", "react-router": "^4.2.0", - "react-router-dom": "^4.2.2" + "react-router-dom": "^4.2.2", + "storybook-addon-material-ui": "^0.8.2" } -} +} \ No newline at end of file