@descope/web-components-ui 1.0.330 → 1.0.331

Sign up to get free protection for your applications and to get access to all the features.
@@ -3361,7 +3361,7 @@ const [theme$1, refs, vars$H] = createHelperVars(
3361
3361
  inputVerticalAlignment: 'flex-end',
3362
3362
  inputTransformY: 'translateY(1.55em)',
3363
3363
  inputTransition: 'all 75ms ease-in-out',
3364
- marginInlineStart: '0', // `calc(0.25em + ${globalRefs.border.sm})`,
3364
+ marginInlineStart: '0',
3365
3365
  valueInputHeight: '1.5702em',
3366
3366
  valueInputMarginBottom: '0.5em',
3367
3367
 
@@ -3635,6 +3635,14 @@ const customMixin$9 = (superclass) =>
3635
3635
  }
3636
3636
  });
3637
3637
 
3638
+ externalInput.addEventListener('input', (e) => {
3639
+ if (!e.target.value) {
3640
+ this.removeAttribute('has-value');
3641
+ } else {
3642
+ this.setAttribute('has-value', 'true');
3643
+ }
3644
+ });
3645
+
3638
3646
  this.addEventListener('focus', (e) => {
3639
3647
  e.preventDefault();
3640
3648
  this.focus();
@@ -3866,10 +3874,6 @@ const PasswordClass = compose(
3866
3874
  }
3867
3875
 
3868
3876
  ${inputFloatingLabelStyle()}
3869
-
3870
- :host ::slotted(input) {
3871
- display: none !important;
3872
- }
3873
3877
 
3874
3878
  ::part(reveal-button) {
3875
3879
  align-self: center;
@@ -4063,6 +4067,14 @@ const customMixin$8 = (superclass) =>
4063
4067
 
4064
4068
  syncAttrs(origInput, externalInput, { includeAttrs: ['disabled', 'readonly', 'pattern'] });
4065
4069
 
4070
+ externalInput.addEventListener('input', (e) => {
4071
+ if (!e.target.value) {
4072
+ this.removeAttribute('has-value');
4073
+ } else {
4074
+ this.setAttribute('has-value', 'true');
4075
+ }
4076
+ });
4077
+
4066
4078
  // append external input to component's DOM
4067
4079
  this.appendChild(externalInput);
4068
4080
  }
@@ -4119,9 +4131,6 @@ const EmailFieldClass = compose(
4119
4131
  }
4120
4132
  vaadin-email-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {
4121
4133
  opacity: 0;
4122
- }
4123
- :host ::slotted(input) {
4124
- display: none !important;
4125
4134
  }
4126
4135
  `,
4127
4136
  excludeAttrsSync: ['tabindex'],