@descope/web-components-ui 1.0.330 → 1.0.331
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/cjs/index.cjs.js +17 -8
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +17 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +2 -2
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-password-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-email-field/EmailFieldClass.js +8 -3
- package/src/components/descope-password/PasswordClass.js +8 -4
- package/src/theme/components/inputWrapper.js +1 -1
package/dist/index.esm.js
CHANGED
@@ -2708,6 +2708,14 @@ const customMixin$a = (superclass) =>
|
|
2708
2708
|
|
2709
2709
|
syncAttrs(origInput, externalInput, { includeAttrs: ['disabled', 'readonly', 'pattern'] });
|
2710
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
|
+
|
2711
2719
|
// append external input to component's DOM
|
2712
2720
|
this.appendChild(externalInput);
|
2713
2721
|
}
|
@@ -2764,9 +2772,6 @@ const EmailFieldClass = compose(
|
|
2764
2772
|
}
|
2765
2773
|
vaadin-email-field[label-type="floating"]:not([focused])[disabled] > input:placeholder-shown {
|
2766
2774
|
opacity: 0;
|
2767
|
-
}
|
2768
|
-
:host ::slotted(input) {
|
2769
|
-
display: none !important;
|
2770
2775
|
}
|
2771
2776
|
`,
|
2772
2777
|
excludeAttrsSync: ['tabindex'],
|
@@ -3597,6 +3602,14 @@ const customMixin$7 = (superclass) =>
|
|
3597
3602
|
}
|
3598
3603
|
});
|
3599
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
|
+
|
3600
3613
|
this.addEventListener('focus', (e) => {
|
3601
3614
|
e.preventDefault();
|
3602
3615
|
this.focus();
|
@@ -3828,10 +3841,6 @@ const PasswordClass = compose(
|
|
3828
3841
|
}
|
3829
3842
|
|
3830
3843
|
${inputFloatingLabelStyle()}
|
3831
|
-
|
3832
|
-
:host ::slotted(input) {
|
3833
|
-
display: none !important;
|
3834
|
-
}
|
3835
3844
|
|
3836
3845
|
::part(reveal-button) {
|
3837
3846
|
align-self: center;
|
@@ -12282,7 +12291,7 @@ const [theme$1, refs, vars$H] = createHelperVars(
|
|
12282
12291
|
inputVerticalAlignment: 'flex-end',
|
12283
12292
|
inputTransformY: 'translateY(1.55em)',
|
12284
12293
|
inputTransition: 'all 75ms ease-in-out',
|
12285
|
-
marginInlineStart: '0',
|
12294
|
+
marginInlineStart: '0',
|
12286
12295
|
valueInputHeight: '1.5702em',
|
12287
12296
|
valueInputMarginBottom: '0.5em',
|
12288
12297
|
|