├── .gitignore
├── .travis.yml
├── CHANGES.md
├── LICENSE
├── README.md
├── demo
└── src
│ ├── index.js
│ └── style.css
├── nwb.config.js
├── package.json
├── src
└── index.js
├── test
└── GridForms-test.js
└── vendor
├── gridforms.css
└── gridforms.css.map
/.gitignore:
--------------------------------------------------------------------------------
1 | /coverage
2 | /demo/dist
3 | /es6
4 | /lib
5 | /node_modules
6 | /umd
7 | npm-debug.log
8 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 | node_js:
5 | - 4.2
6 |
7 | cache:
8 | directories:
9 | - node_modules
10 |
11 | before_install:
12 | - npm install codecov.io coveralls
13 |
14 | after_success:
15 | - cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
16 | - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
17 |
18 | branches:
19 | only:
20 | - master
21 |
--------------------------------------------------------------------------------
/CHANGES.md:
--------------------------------------------------------------------------------
1 | # 1.0.2 / 2016-01-02
2 |
3 | Added ES6 modules build in `es6/`.
4 |
5 | # 1.0.0 / 2015-11-15
6 |
7 | First release.
8 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015, Jonny Buchanan
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7 | the Software, and to permit persons to whom the Software is furnished to do so,
8 | subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # react-gridforms
2 |
3 | [![Travis][build-badge]][build]
4 | [![npm package][npm-badge]][npm]
5 | [![Coveralls][coveralls-badge]][coveralls]
6 |
7 | React components for form layout with [Gridforms](https://github.com/kumailht/gridforms).
8 |
9 | ## [Live Demo](http://insin.github.io/react-gridforms/)
10 |
11 | ## Install
12 |
13 | **Note: [Webpack](http://webpack.github.io/) is _required_ in order to use this component from npm.**
14 |
15 | ```
16 | npm install react-gridforms
17 | ```
18 |
19 | Browser bundles are available, which export a global `GridForms` variable and expect to find a global ``React`` variable to work with.
20 |
21 | * [react-gridforms.js](https://npmcdn.com/react-gridforms/umd/react-gridforms.js) (development version)
22 | * [react-gridforms.min.js](https://npmcdn.com/react-gridforms/umd/react-gridforms.min.js) (compressed production version)
23 | * Use [gridforms.css](https://cdn.rawgit.com/kumailht/gridforms/master/gridforms/gridforms.css) via RawGit with the browser bundle.
24 |
25 | ## Usage
26 |
27 | ```javascript
28 | var GridForms = require('react-gridforms')
29 | // or
30 | var {GridForm, Fieldset, Row, Field} = require('react-gridforms')
31 | // or
32 | import {GridForm, Fieldset, Row, Field} from 'react-gridforms'
33 | ```
34 |
35 | Nest `