@app-studio/web 0.3.37 → 0.3.38
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.
|
@@ -3366,8 +3366,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
|
|
|
3366
3366
|
isVisible = _usePasswordState.isVisible,
|
|
3367
3367
|
setIsVisible = _usePasswordState.setIsVisible,
|
|
3368
3368
|
passwordState = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2);
|
|
3369
|
-
return React__default.createElement(TextFieldView, Object.assign({
|
|
3370
|
-
type: isVisible ? 'text' : 'password',
|
|
3369
|
+
return isVisible ? React__default.createElement(TextFieldView, Object.assign({
|
|
3371
3370
|
isClearable: false,
|
|
3372
3371
|
rightChild: React__default.createElement(appStudio.View, {
|
|
3373
3372
|
onClick: function onClick() {
|
|
@@ -3376,7 +3375,18 @@ var PasswordComponent = function PasswordComponent(_ref) {
|
|
|
3376
3375
|
}
|
|
3377
3376
|
}
|
|
3378
3377
|
}, isVisible ? visibleIcon : hiddenIcon)
|
|
3379
|
-
}, passwordState, props))
|
|
3378
|
+
}, passwordState, props)) : React__default.createElement(TextFieldView, Object.assign({
|
|
3379
|
+
isClearable: false,
|
|
3380
|
+
rightChild: React__default.createElement(appStudio.View, {
|
|
3381
|
+
onClick: function onClick() {
|
|
3382
|
+
if (!props.isDisabled) {
|
|
3383
|
+
setIsVisible(!isVisible);
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
|
+
}, isVisible ? visibleIcon : hiddenIcon)
|
|
3387
|
+
}, passwordState, props, {
|
|
3388
|
+
type: 'password'
|
|
3389
|
+
}));
|
|
3380
3390
|
};
|
|
3381
3391
|
/**
|
|
3382
3392
|
* To allow users to securely enter sensitive information
|