@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.
package/dist/web.esm.js CHANGED
@@ -3359,8 +3359,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
3359
3359
  isVisible = _usePasswordState.isVisible,
3360
3360
  setIsVisible = _usePasswordState.setIsVisible,
3361
3361
  passwordState = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2);
3362
- return React.createElement(TextFieldView, Object.assign({
3363
- type: isVisible ? 'text' : 'password',
3362
+ return isVisible ? React.createElement(TextFieldView, Object.assign({
3364
3363
  isClearable: false,
3365
3364
  rightChild: React.createElement(View$1, {
3366
3365
  onClick: function onClick() {
@@ -3369,7 +3368,18 @@ var PasswordComponent = function PasswordComponent(_ref) {
3369
3368
  }
3370
3369
  }
3371
3370
  }, isVisible ? visibleIcon : hiddenIcon)
3372
- }, passwordState, props));
3371
+ }, passwordState, props)) : React.createElement(TextFieldView, Object.assign({
3372
+ isClearable: false,
3373
+ rightChild: React.createElement(View$1, {
3374
+ onClick: function onClick() {
3375
+ if (!props.isDisabled) {
3376
+ setIsVisible(!isVisible);
3377
+ }
3378
+ }
3379
+ }, isVisible ? visibleIcon : hiddenIcon)
3380
+ }, passwordState, props, {
3381
+ type: 'password'
3382
+ }));
3373
3383
  };
3374
3384
  /**
3375
3385
  * To allow users to securely enter sensitive information