@descope/web-components-ui 1.0.329 → 1.0.331

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -1496,7 +1496,10 @@ const ButtonClass = compose(
1496
1496
  borderWidth: {},
1497
1497
 
1498
1498
  verticalPadding: [{ property: 'padding-top' }, { property: 'padding-bottom' }],
1499
- horizontalPadding: [{ property: 'padding-right' }, { property: 'padding-left' }],
1499
+ horizontalPadding: [
1500
+ { property: 'padding-right', fallback: '0.875em' },
1501
+ { property: 'padding-left', fallback: '0.875em' },
1502
+ ],
1500
1503
 
1501
1504
  labelTextColor: { property: 'color' },
1502
1505
  iconColor: {
@@ -2705,6 +2708,14 @@ const customMixin$a = (superclass) =>
2705
2708
 
2706
2709
  syncAttrs(origInput, externalInput, { includeAttrs: ['disabled', 'readonly', 'pattern'] });
2707
2710
 
2711
+ externalInput.addEventListener('input', (e) => {
2712
+ if (!e.target.value) {
2713
+ this.removeAttribute('has-value');
2714
+ } else {
2715
+ this.setAttribute('has-value', 'true');
2716
+ }
2717
+ });
2718
+
2708
2719
  // append external input to component's DOM
2709
2720
  this.appendChild(externalInput);
2710
2721
  }
@@ -2761,9 +2772,6 @@ const EmailFieldClass = compose(
2761
2772
  }
2762
2773
  vaadin-email-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {
2763
2774
  opacity: 0;
2764
- }
2765
- :host ::slotted(input) {
2766
- display: none !important;
2767
2775
  }
2768
2776
  `,
2769
2777
  excludeAttrsSync: ['tabindex'],
@@ -3594,6 +3602,14 @@ const customMixin$7 = (superclass) =>
3594
3602
  }
3595
3603
  });
3596
3604
 
3605
+ externalInput.addEventListener('input', (e) => {
3606
+ if (!e.target.value) {
3607
+ this.removeAttribute('has-value');
3608
+ } else {
3609
+ this.setAttribute('has-value', 'true');
3610
+ }
3611
+ });
3612
+
3597
3613
  this.addEventListener('focus', (e) => {
3598
3614
  e.preventDefault();
3599
3615
  this.focus();
@@ -3825,10 +3841,6 @@ const PasswordClass = compose(
3825
3841
  }
3826
3842
 
3827
3843
  ${inputFloatingLabelStyle()}
3828
-
3829
- :host ::slotted(input) {
3830
- display: none !important;
3831
- }
3832
3844
 
3833
3845
  ::part(reveal-button) {
3834
3846
  align-self: center;
@@ -12279,7 +12291,7 @@ const [theme$1, refs, vars$H] = createHelperVars(
12279
12291
  inputVerticalAlignment: 'flex-end',
12280
12292
  inputTransformY: 'translateY(1.55em)',
12281
12293
  inputTransition: 'all 75ms ease-in-out',
12282
- marginInlineStart: '0', // `calc(0.25em + ${globalRefs.border.sm})`,
12294
+ marginInlineStart: '0',
12283
12295
  valueInputHeight: '1.5702em',
12284
12296
  valueInputMarginBottom: '0.5em',
12285
12297