@hipay/hipay-material-ui 2.2.0-beta-core4 → 2.3.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/HiForm/HiPasswordField.js +4 -3
- package/es/HiForm/HiPasswordField.js +4 -3
- package/es/index.js +0 -1
- package/index.es.js +1 -2
- package/index.js +1 -9
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
@@ -88,13 +88,14 @@ function (_React$Component) {
|
|
88
88
|
otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "HiInputProps"]);
|
89
89
|
var endAdornment = this.state.showText ? 'visibility_off' : 'visibility';
|
90
90
|
var type = this.state.showText ? 'text' : 'password';
|
91
|
-
var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, classes.inputPassword, !this.state.showText));
|
91
|
+
var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, classes.inputPassword, !this.state.showText && otherProps.value !== ""));
|
92
92
|
return _react.default.createElement(_HiTextField.default, (0, _extends2.default)({}, otherProps, {
|
93
93
|
type: type,
|
94
94
|
onRightIconClick: this.handlePasswordToggle,
|
95
|
-
HiInputProps: (0, _extends2.default)({
|
95
|
+
HiInputProps: (0, _extends2.default)({
|
96
|
+
placeholder: ''
|
97
|
+
}, HiInputProps, {
|
96
98
|
endAdornment: endAdornment,
|
97
|
-
placeholder: '',
|
98
99
|
inputClassName: inputClassName,
|
99
100
|
autocomplete: 'on'
|
100
101
|
})
|
@@ -45,14 +45,15 @@ class HiPasswordField extends React.Component {
|
|
45
45
|
const endAdornment = this.state.showText ? 'visibility_off' : 'visibility';
|
46
46
|
const type = this.state.showText ? 'text' : 'password';
|
47
47
|
const inputClassName = classNames({
|
48
|
-
[classes.inputPassword]: !this.state.showText
|
48
|
+
[classes.inputPassword]: !this.state.showText && otherProps.value !== ""
|
49
49
|
});
|
50
50
|
return React.createElement(HiTextField, _extends({}, otherProps, {
|
51
51
|
type: type,
|
52
52
|
onRightIconClick: this.handlePasswordToggle,
|
53
|
-
HiInputProps: _objectSpread({
|
53
|
+
HiInputProps: _objectSpread({
|
54
|
+
placeholder: ''
|
55
|
+
}, HiInputProps, {
|
54
56
|
endAdornment,
|
55
|
-
placeholder: '',
|
56
57
|
inputClassName,
|
57
58
|
autocomplete: 'on'
|
58
59
|
})
|
package/es/index.js
CHANGED
@@ -13,7 +13,6 @@ export { default as HiMap } from './HiMap/HiMap';
|
|
13
13
|
export { default as HiMapExpand } from './HiMap/HiMapExpand';
|
14
14
|
export { default as HiTextField } from './HiForm/HiTextField';
|
15
15
|
export { default as HiPasswordField } from './HiForm/HiPasswordField';
|
16
|
-
export { default as HiPdfReader } from './HiPdfReader/HiPdfReader';
|
17
16
|
export { default as HiSlider } from './HiForm/HiSlider';
|
18
17
|
export { default as HiSwitch } from './HiSwitch';
|
19
18
|
export { default as HiSwitchState } from './HiSwitch/HiSwitchState';
|
package/index.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/** @license HiPay-Material-UI v2.
|
1
|
+
/** @license HiPay-Material-UI v2.3.0-rc.1
|
2
2
|
*
|
3
3
|
* This source code is licensed under the MIT license found in the
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
@@ -18,7 +18,6 @@ export { default as HiMap } from './HiMap/HiMap';
|
|
18
18
|
export { default as HiMapExpand } from './HiMap/HiMapExpand';
|
19
19
|
export { default as HiTextField } from './HiForm/HiTextField';
|
20
20
|
export { default as HiPasswordField } from './HiForm/HiPasswordField';
|
21
|
-
export { default as HiPdfReader } from './HiPdfReader/HiPdfReader';
|
22
21
|
export { default as HiSlider } from './HiForm/HiSlider';
|
23
22
|
export { default as HiSwitch } from './HiSwitch';
|
24
23
|
export { default as HiSwitchState } from './HiSwitch/HiSwitchState';
|
package/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/** @license HiPay-Material-UI v2.
|
1
|
+
/** @license HiPay-Material-UI v2.3.0-rc.1
|
2
2
|
*
|
3
3
|
* This source code is licensed under the MIT license found in the
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
@@ -136,12 +136,6 @@ Object.defineProperty(exports, "HiPasswordField", {
|
|
136
136
|
return _HiPasswordField.default;
|
137
137
|
}
|
138
138
|
});
|
139
|
-
Object.defineProperty(exports, "HiPdfReader", {
|
140
|
-
enumerable: true,
|
141
|
-
get: function get() {
|
142
|
-
return _HiPdfReader.default;
|
143
|
-
}
|
144
|
-
});
|
145
139
|
Object.defineProperty(exports, "HiSlider", {
|
146
140
|
enumerable: true,
|
147
141
|
get: function get() {
|
@@ -239,8 +233,6 @@ var _HiTextField = _interopRequireDefault(require("./HiForm/HiTextField"));
|
|
239
233
|
|
240
234
|
var _HiPasswordField = _interopRequireDefault(require("./HiForm/HiPasswordField"));
|
241
235
|
|
242
|
-
var _HiPdfReader = _interopRequireDefault(require("./HiPdfReader/HiPdfReader"));
|
243
|
-
|
244
236
|
var _HiSlider = _interopRequireDefault(require("./HiForm/HiSlider"));
|
245
237
|
|
246
238
|
var _HiSwitch = _interopRequireDefault(require("./HiSwitch"));
|
package/package.json
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hipay/hipay-material-ui",
|
3
|
+
"private": false,
|
3
4
|
"author": "HiPay PSYCHE Team",
|
4
|
-
"version": "2.
|
5
|
+
"version": "2.3.0-rc.1",
|
5
6
|
"description": "React components that implement Google's Material Design.",
|
6
7
|
"keywords": [
|
7
8
|
"react",
|
@@ -73,4 +74,4 @@
|
|
73
74
|
},
|
74
75
|
"main": "./index.js",
|
75
76
|
"module": "./index.es.js"
|
76
|
-
}
|
77
|
+
}
|