Repository: vazco/uniforms (ts)

Issue:
Textfield type="password" not working for antd style
The `'uniforms-antd/TextField` does not properly pass the `type` prop. See below.

For demonstration, I imported both antd and unstyled versions. The antd does not mask the input field as expected.  

```jsx
import AutoForm from 'uniforms-antd/AutoForm';
import TextField from 'uniforms-antd/TextField';
import TextField2 from 'uniforms-unstyled/TextField';

<AutoForm schema={loginFormSchema} onSubmit={submitLogin}>
 <TextField name="email" />
 <TextField name="password" type="password" />
 <TextField2 name="password" type="password" />
 <SubmitField>Submit</SubmitField>
</AutoForm>
```
![2017-09-11 10 40 16](https://user-images.githubusercontent.com/136654/30280410-aa704754-96dd-11e7-8bd2-f68494630c6b.gif)


Pull request description:
Fix TextField type prop for antd  (closes #345)
Should fix #345 

@radekmie Let me know if this PR is okay.

I didn't see a need to touch `filterDOMProps` especially since its being used by all other style versions. It seems it was just a missed prop.

Patch:
diff --git a/packages/uniforms-antd/src/TextField.js b/packages/uniforms-antd/src/TextField.js
index 814f3ca2..78b836fd 100644
--- a/packages/uniforms-antd/src/TextField.js
+++ b/packages/uniforms-antd/src/TextField.js
@@ -14,6 +14,7 @@ const Text = props =>
             onChange={event => props.onChange(event.target.value)}
             placeholder={props.placeholder}
             ref={props.inputRef}
+            type={props.type}
             value={props.value}
             {...filterDOMProps(props)}
         />


Test patch:
diff --git a/packages/uniforms-antd/__tests__/TextField.js b/packages/uniforms-antd/__tests__/TextField.js
index d769d3e8..ee6924c5 100644
--- a/packages/uniforms-antd/__tests__/TextField.js
+++ b/packages/uniforms-antd/__tests__/TextField.js
@@ -134,3 +134,10 @@ test('<TextField> - renders a wrapper with unknown props', () => {
     expect(wrapper.find(Input).prop('data-y')).toBe('y');
     expect(wrapper.find(Input).prop('data-z')).toBe('z');
 });
+
+test('<TextField> - renders a input with correct type prop', () => {
+    const element = <TextField name="x" type="password" />;
+    const wrapper = mount(element, createContext({x: {type: String}}));
+
+    expect(wrapper.find(Input).prop('type')).toBe('password');
+});