@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/cjs/index.cjs.js
CHANGED
@@ -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',
|
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'],
|