Skip to content

feat: base -> from unmerged pull 266 -> patch -> merge #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 40 commits into from
Aug 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1575549
Update dependencies
gfpacheco Jul 13, 2017
e4d7d11
Use material-ui next
gfpacheco Jul 13, 2017
09e1749
Update peer dependencies
gfpacheco Jul 13, 2017
2dee27e
Fix TextField error properties
gfpacheco Jul 14, 2017
c96037f
Update dependencies
gfpacheco Aug 9, 2017
28f4cea
MuiThemeProvider isn't required anymore
gfpacheco Aug 9, 2017
019b4aa
Improve module's exporting
gfpacheco Aug 9, 2017
46405f8
Update material-ui to v1.0.0-beta.10
gfpacheco Sep 18, 2017
353cc14
Add initial support for Select component
gfpacheco Sep 18, 2017
f228d5e
Export Select component from index file
gfpacheco Sep 19, 2017
0e025eb
Fix select component onChange call
gfpacheco Sep 19, 2017
6bf4820
Merge branch 'v1-beta' of git://github.com/gfpacheco/redux-form-mater…
mihirsoni Sep 21, 2017
be4f632
Merge branch 'gfpacheco-v1-beta' into 5.0
mihirsoni Sep 21, 2017
18e097e
Fixing Radio Group Initial Value
mihirsoni Oct 14, 2017
0744ad1
Updating Readme for MUI Components
mihirsoni Oct 14, 2017
1b0195c
Updated example as per MUI 1.0
mihirsoni Oct 14, 2017
8603df9
Fixed Test case
mihirsoni Oct 14, 2017
c15562c
v5.0.0-beta.1
mihirsoni Oct 14, 2017
fac40c9
Removed Slider which is currently not supported by Mui V1.0
mihirsoni Oct 14, 2017
c81d387
Updated Readme
mihirsoni Oct 14, 2017
9c9107d
Updated Readme
mihirsoni Oct 14, 2017
cbb2ac5
Fixed Radio Group Test case
mihirsoni Oct 14, 2017
69af0b0
Examples from npm instead of local dir
mihirsoni Oct 14, 2017
6e1862c
updated doc for examples
mihirsoni Oct 14, 2017
599841c
Remove refs for stateless component from MUI Fixes #188
mihirsoni Oct 29, 2017
b938aef
Publishing version 5.0.0-beta.2
mihirsoni Nov 11, 2017
03b2e79
Update README.md
srghma2 Dec 7, 2017
e68034a
Merge pull request #205 from BjornMelgaard/patch-1
mihirsoni Dec 11, 2017
d4ba4de
Corrected import closes #209
mihirsoni Dec 16, 2017
2d18a74
Update mapError.js
daniel-parreira-prodigy Dec 25, 2017
b18ab72
Adding test case for multiple Items in Select
mihirsoni Jan 7, 2018
8ef2a10
Merge pull request #211 from daniel-parreira-prodigy/patch-1
mihirsoni Jan 12, 2018
0ac0096
Bump dependencies to comply with react 16
NoMemoryError Feb 23, 2018
dfdc94c
Fix typo
Hocdoc Apr 6, 2018
7c2c205
Fix source example in README.md
Hocdoc Apr 6, 2018
9622520
Added material-ui as a peer dependency
gitrite Mar 9, 2018
5500583
Support @material-ui/core v1.0.0-rc.1
andreapier May 17, 2018
6649700
Publish RC version to npm next tag
mihirsoni May 25, 2018
9328e93
Fixed typo in documentation
Jun 7, 2018
15c0e0f
Fix isStateLess()
Philipp91 Jul 19, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 32 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@

[`redux-form-material-ui`](https://github.com/erikras/redux-form-material-ui) is a set of
wrappers to facilitate the use of
[`material-ui`](https://github.com/callemall/material-ui) components with
[`material-uibeta`](https://github.com/callemall/material-ui) components with
[`redux-form`](https://github.com/erikras/redux-form).

Latest version is supported by only for material-ui beta.

---

## [Live Demo](http://erikras.github.io/redux-form-material-ui/) :eyes:
Expand All @@ -21,20 +23,26 @@ wrappers to facilitate the use of
Using [npm](https://www.npmjs.org/):

```bash
$ npm install --save redux-form-material-ui
$ npm install --save redux-form-material-ui@next
```

Using [yarn](https://yarnpkg.com):

```bash
$ yarn add redux-form-material-ui@next
```

## Available Components

* [AutoComplete](http://www.material-ui.com/#/components/auto-complete)
* [Checkbox](http://www.material-ui.com/#/components/checkbox)
* [TimePicker](http://www.material-ui.com/#/components/time-picker)
* [DatePicker](http://www.material-ui.com/#/components/date-picker)
* ~[TimePicker](http://www.material-ui.com/#/components/time-picker)~ [Material-4787](https://github.com/callemall/material-ui/issues/4787)
* ~[DatePicker](http://www.material-ui.com/#/components/date-picker)~ [Material-4787](https://github.com/callemall/material-ui/issues/4787)
* [RadioButtonGroup](http://www.material-ui.com/#/components/radio-button)
* [SelectField](http://www.material-ui.com/#/components/select-field)
* [Slider](http://www.material-ui.com/#/components/slider)
* [Select](http://www.material-ui.com/#/components/Select)
* ~[Slider](http://www.material-ui.com/#/components/slider)~ [Material-4793](https://github.com/callemall/material-ui/issues/4793)
* [TextField](http://www.material-ui.com/#/components/text-field)
* [Toggle](http://www.material-ui.com/#/components/toggle)
* [Switch](https://material.io/guidelines/components/lists-controls.html#lists-controls-types-of-list-controls)

## Usage

Expand All @@ -43,39 +51,37 @@ and then pass the component class directly to the `component` prop of `Field`.

```js
import { reduxForm, Field } from 'redux-form'
import MenuItem from 'material-ui/MenuItem'
import { RadioButton } from 'material-ui/RadioButton'
import MenuItem from '@material-ui/core/MenuItem'
import Radio from '@material-ui/core/RadioButton'
import {
Checkbox,
RadioButtonGroup,
SelectField,
RadioGroup,
Select,
TextField,
Toggle,
DatePicker
Switch,
FormControlLabel,
} from 'redux-form-material-ui'

class MyForm extends Component {
render() {
return (
<form>
<Field name="username" component={TextField} hintText="Street"/>
<Field name="username" component={TextField} placeholder="Street"/>

<Field name="plan" component={SelectField} hintText="Select a plan">
<MenuItem value="monthly" primaryText="Monthly"/>
<MenuItem value="yearly" primaryText="Yearly"/>
<MenuItem value="lifetime" primaryText="Lifetime"/>
<Field name="plan" component={Select} placeholder="Select a plan">
<MenuItem value="monthly">Monthly</MenuItem>
<MenuItem value="yearly">Yearly</MenuItem>
<MenuItem value="lifetime">Lifetime</MenuItem>
</Field>

<Field name="agreeToTerms" component={Checkbox} label="Agree to terms?"/>

<Field name="eventDate" component={DatePicker} format={null} hintText="What day is the event?"/>
<FormControlLabel control={<Field name="agreeToTerms" component={Checkbox} /> } label="Agree to terms?" />

<Field name="receiveEmails" component={Toggle} label="Please spam me!"/>
<FormControlLabel control={<Field name="receiveEmails" component={Switch} /> } label="Please spam me!" />

<Field name="bestFramework" component={RadioButtonGroup}>
<RadioButton value="react" label="React"/>
<RadioButton value="angular" label="Angular"/>
<RadioButton value="ember" label="Ember"/>
<Field name="bestFramework" component={RadioGroup}>
<Radio value="react" label="React"/>
<Radio value="angular" label="Angular"/>
<Radio value="ember" label="Ember"/>
</Field>
</form>
)
Expand Down
6 changes: 5 additions & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<style type="text/css">
/*This CSS has been tweaked from root site
to match with material-ui*/
form > div > div > div {
form > div > div > * {
padding: 0;
border: none;
}
Expand All @@ -33,6 +33,10 @@
max-width: 850px;
margin: 0 auto;
}
.list-margin {
margin-left: -180px;
height: 30px;
}
</style>
<meta itemprop="name" content="Redux Form Material UI Adapter"/>
<meta property="og:type" content="website"/>
Expand Down
9 changes: 4 additions & 5 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
"prepublish": "npm run lint && npm run build"
},
"dependencies": {
"@material-ui/core": "^1.0.0",
"babel-polyfill": "^6.26.0",
"html-loader": "^0.5.1",
"json-loader": "^0.5.7",
"markdown-loader": "^2.0.1",
"material-ui": "^0.19.0",
"raw-loader": "^0.5.1",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-redux": "^5.0.6",
"react-tap-event-plugin": "^2.0.1",
"redux": "^3.7.2",
"redux-form": "^7.0.3",
"redux-form-material-ui": "^4.2.0",
"redux-form-material-ui": "file:..",
"redux-form-website-template": "0.0.50"
},
"devDependencies": {
Expand Down
12 changes: 4 additions & 8 deletions example/src/Example.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Redux Form Material UI Wrappers

This is a simple demonstration of how to connect all the standard
This is a simple demonstration of how to connect all the standard (MUI V1.0)
[`material-ui`](https://github.com/callemall/material-ui) form elements to
[`redux-form`](https://github.com/erikras/redux-form) using the
[`redux-form-material-ui`](https://github.com/erikras/redux-form-material-ui) wrapper library.
Expand All @@ -10,15 +10,11 @@ You simply provide the string name of the Material UI component you want to rend

Available components:

* [AutoComplete](http://www.material-ui.com/#/components/auto-complete)
* [Checkbox](http://www.material-ui.com/#/components/checkbox)
* [DatePicker](http://www.material-ui.com/#/components/date-picker)
* [TimePicker](http://www.material-ui.com/#/components/time-picker)
* [RadioButtonGroup](http://www.material-ui.com/#/components/radio-button)
* [SelectField](http://www.material-ui.com/#/components/select-field)
* [Slider](http://www.material-ui.com/#/components/slider)
* [RadioGroup](http://www.material-ui.com/#/components/radio-button)
* [Select](http://www.material-ui.com/#/components/Select)
* [TextField](http://www.material-ui.com/#/components/text-field)
* [Toggle](http://www.material-ui.com/#/components/toggle)
* [Switch](https://material.io/guidelines/components/lists-controls.html#lists-controls-types-of-list-controls)

The code for this example is
[available here](https://github.com/erikras/redux-form-material-ui/tree/master/example).
Loading