Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

material-ui-password-field

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-ui-password-field - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

lib/ChipInput.js

6

lib/PasswordField.js

@@ -152,2 +152,3 @@ 'use strict';

var _props = this.props,
disableButton = _props.disableButton,
hintText = _props.hintText,

@@ -160,3 +161,3 @@ errorText = _props.errorText,

fullWidth = _props.fullWidth,
other = _objectWithoutProperties(_props, ['hintText', 'errorText', 'errorStyle', 'textFieldStyle', 'style', 'type', 'fullWidth']);
other = _objectWithoutProperties(_props, ['disableButton', 'hintText', 'errorText', 'errorStyle', 'textFieldStyle', 'style', 'type', 'fullWidth']);

@@ -205,3 +206,3 @@ var visible = this.state.visible;

style: styles.visibilityButton,
disabled: other.disabled
disabled: disableButton || other.disabled
},

@@ -224,2 +225,3 @@ visible ? _react2.default.createElement(_visibility2.default, null) : _react2.default.createElement(_visibilityOff2.default, null)

PasswordField.propTypes = _extends({}, _TextField2.default.propTypes, {
disableButton: _react.PropTypes.bool,
visible: _react.PropTypes.bool,

@@ -226,0 +228,0 @@ textFieldStyle: _react.PropTypes.object

{
"name": "material-ui-password-field",
"version": "1.0.4",
"version": "1.1.0",
"description": "A password field using Material-UI.",

@@ -37,11 +37,12 @@ "main": "lib/PasswordField.js",

"babel-preset-stage-0": "^6.5.0",
"material-ui": "^0.15.4",
"react": "^15.3.2",
"react-tap-event-plugin": "^1.0.0"
"material-ui": "^0.16.7",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"react-tap-event-plugin": "^2.0.0"
},
"peerDependencies": {
"material-ui": "~0.15.4",
"react": "~15.3.1",
"react-tap-event-plugin": "^1.0.0"
"material-ui": "~0.16.7",
"react": "~15.4.2",
"react-tap-event-plugin": "^2.0.0"
}
}

@@ -29,2 +29,3 @@ # material-ui-password-field

| --- | --- | --- | --- |
| disableButton | `bool` | `false` | Set this to `true` to disable the visibility button. |
| visible | `bool` | `false` | Set this to `true` to make the password initially visible. |

@@ -45,2 +46,2 @@ | style | `object` | | Override the inline-styles of the root element. |

[mui-text-field]: http://www.material-ui.com/#/components/text-field
[gh-pages]: https://teamwertarbyte.github.io/material-ui-password-field/
[gh-pages]: https://teamwertarbyte.github.io/material-ui-password-field/

@@ -105,2 +105,3 @@ import React, { PropTypes } from 'react'

const {
disableButton,
hintText,

@@ -144,3 +145,3 @@ errorText,

style={styles.visibilityButton}
disabled={other.disabled}
disabled={disableButton || other.disabled}
>

@@ -157,2 +158,3 @@ {visible ? <Visibility /> : <VisibilityOff />}

...TextField.propTypes,
disableButton: PropTypes.bool,
visible: PropTypes.bool,

@@ -159,0 +161,0 @@ textFieldStyle: PropTypes.object

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc