@app-studio/web 0.3.30 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/web.esm.js
CHANGED
|
@@ -3365,21 +3365,21 @@ var PasswordView = function PasswordView(_ref) {
|
|
|
3365
3365
|
_ref$isDisabled = _ref.isDisabled,
|
|
3366
3366
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
3367
3367
|
_ref$isVisible = _ref.isVisible,
|
|
3368
|
-
isVisible = _ref$isVisible === void 0 ?
|
|
3368
|
+
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
3369
3369
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
3370
3370
|
var _useState = useState(isVisible),
|
|
3371
3371
|
visible = _useState[0],
|
|
3372
3372
|
setVisible = _useState[1];
|
|
3373
3373
|
return React.createElement(TextField, Object.assign({
|
|
3374
3374
|
name: name,
|
|
3375
|
-
type:
|
|
3375
|
+
type: visible ? 'text' : 'password',
|
|
3376
3376
|
rightChild: React.createElement(View, {
|
|
3377
3377
|
onClick: function onClick() {
|
|
3378
3378
|
if (!isDisabled) {
|
|
3379
3379
|
setVisible(!visible);
|
|
3380
3380
|
}
|
|
3381
3381
|
}
|
|
3382
|
-
},
|
|
3382
|
+
}, visible ? visibleIcon : hiddenIcon),
|
|
3383
3383
|
isClearable: false
|
|
3384
3384
|
}, props));
|
|
3385
3385
|
};
|