Skip to content

Commit

Permalink
Remove explicit files declaration from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Nov 11, 2015
2 parents 1e1dcce + ea18705 commit e16ed94
Show file tree
Hide file tree
Showing 26 changed files with 529 additions and 398 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
@@ -1,6 +1,5 @@
## Changelog

=======
* 0.3.2 Remove explicit files declaration from package.json (the npm docs lie!)
* 0.3.1 Add ./lib/ to package.json.
* 0.3.0 Split into separate files to allow individual import of MUI components
Expand Down
19 changes: 18 additions & 1 deletion README.md
Expand Up @@ -11,7 +11,24 @@ Note: For React 0.13.x compatibility, specify formsy-react 0.14.1 in your app.

## Usage

Note for `FormsyText` you must use `value` instead of `defaultValue` to set a default value.
Note: for `FormsyText` you must use `value` instead of `defaultValue` to set a default value.

As of 0.3.0 the library is split into separate modules, so you can import only those needed for a particular form.
This will save overhead particularly if you are not using the Date and / or Time components.

```js
var FormsyCheckbox = require('formsy-material-ui/lib/FormsyCheckbox');
var FormsyDate = require('formsy-material-ui/lib/FormsyDate');
var FormsyRadio = require('formsy-material-ui/lib/FormsyRadio');
var FormsyRadioGroup = require('formsy-material-ui/lib/FormsyRadioGroup');
var FormsySelect = require('formsy-material-ui/lib/FormsySelect');
var FormsyText = require('formsy-material-ui/lib/FormsyText');
var FormsyTime = require('formsy-material-ui/lib/FormsyTime');
var FormsyToggle = require('formsy-material-ui/lib/FormsyToggle');
```

If you prefer you can import the whole library, and associated MUI components, by requiring `formsy-material-ui`
this will have the same footprint, regardless of which components you chose to assign in the following line(s):

### ES6:

Expand Down
193 changes: 0 additions & 193 deletions formsy-material-ui.jsx

This file was deleted.

0 comments on commit e16ed94

Please sign in to comment.