-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
101 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ node_modules | |
.DS_Store | ||
dist | ||
lib | ||
es | ||
coverage | ||
.idea | ||
examples/bundle.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
devtool: 'cheap-module-eval-source-map', | ||
module: { | ||
loaders: [ | ||
{ | ||
test : /\.(scss|css)$/, | ||
loader: 'style!css?sourceMap!postcss!sass?sourceMap' | ||
}, | ||
{ | ||
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
loader: "url-loader?limit=10000&mimetype=application/font-woff" | ||
}, | ||
{ | ||
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
loader: "file-loader" | ||
} | ||
] | ||
loaders: [{ | ||
test : /\.(scss|css)$/, | ||
loader: 'style!css?sourceMap!postcss!sass?sourceMap' | ||
},{ | ||
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
loader: "url-loader?limit=10000&mimetype=application/font-woff" | ||
},{ | ||
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
loader: "file-loader" | ||
}] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,46 @@ | ||
import React, { Component } from 'react'; | ||
|
||
import { SelectField, MultiSelectField, Option } from '../components'; | ||
import { Layout, Header, Navigation, Content, Icon } from 'react-mdl' | ||
|
||
import { SelectField, MultiSelectField, Option } from '../src'; | ||
|
||
import './Example.scss'; | ||
|
||
export default class Example extends Component { | ||
render() { | ||
return ( | ||
<div className="example"> | ||
<SelectField label={'Default'}> | ||
<Option value={1}>One</Option> | ||
<Option value={2}>Two</Option> | ||
<Option value={3}>Three</Option> | ||
<Option value={4}>Four</Option> | ||
<Option value={5}>Five</Option> | ||
</SelectField> | ||
<SelectField label={'Editable'} editable> | ||
<Option value={1}>One</Option> | ||
<Option value={2}>Two</Option> | ||
<Option value={3}>Three</Option> | ||
<Option value={4}>Four</Option> | ||
<Option value={5}>Five</Option> | ||
</SelectField> | ||
<MultiSelectField label={'Multiselect'}> | ||
<Option value={1}>Value One</Option> | ||
<Option value={2}>Value Two</Option> | ||
<Option value={3}>Value Three</Option> | ||
<Option value={4}>Value Four</Option> | ||
<Option value={5}>Value Five</Option> | ||
</MultiSelectField> | ||
</div> | ||
<Layout fixedHeader> | ||
<Header title={'React MDL SelectField'}> | ||
<Navigation> | ||
<a href="https://github.com/HriBB/react-mdl-selectfield"><Icon name={'link'}/> GitHub</a> | ||
</Navigation> | ||
</Header> | ||
<Content> | ||
<div className={'example'}> | ||
<SelectField label={'Default'}> | ||
<Option value={1}>One</Option> | ||
<Option value={2}>Two</Option> | ||
<Option value={3}>Three</Option> | ||
<Option value={4}>Four</Option> | ||
<Option value={5}>Five</Option> | ||
</SelectField> | ||
<SelectField label={'Editable'} editable> | ||
<Option value={1}>One</Option> | ||
<Option value={2}>Two</Option> | ||
<Option value={3}>Three</Option> | ||
<Option value={4}>Four</Option> | ||
<Option value={5}>Five</Option> | ||
</SelectField> | ||
<MultiSelectField label={'Multiselect'}> | ||
<Option value={1}>Value One</Option> | ||
<Option value={2}>Value Two</Option> | ||
<Option value={3}>Value Three</Option> | ||
<Option value={4}>Value Four</Option> | ||
<Option value={5}>Value Five</Option> | ||
</MultiSelectField> | ||
</div> | ||
</Content> | ||
</Layout> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "react-mdl-selectfield", | ||
"description": "React MDL SelectField Component Examples", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "node ./server.js", | ||
"build": "../node_modules/.bin/cross-env NODE_ENV=production ../node_modules/.bin/webpack --progress --verbose --colors" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/HriBB/react-mdl-selectfield.git" | ||
}, | ||
"author": { | ||
"name": "Bojan Hribernik", | ||
"email": "[email protected]", | ||
"url": "http://climbuddy.com/" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/HriBB/react-mdl-selectfield/issues" | ||
}, | ||
"homepage": "https://hribb.github.io/react-mdl-selectfield/", | ||
"devDependencies": { | ||
"webpack-dev-middleware": "^1.6.1", | ||
"webpack-hot-middleware": "^2.12.2" | ||
}, | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./webpack.config.prod') | ||
} else { | ||
module.exports = require('./webpack.config.dev') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters