@descope/web-components-ui 1.0.78 → 1.0.80
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.esm.js +954 -607
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/387.js +1 -0
- package/dist/umd/878.js +1 -1
- package/dist/umd/988.js +1 -0
- package/dist/umd/descope-button-index-js.js +1 -1
- package/dist/umd/descope-checkbox-index-js.js +1 -1
- package/dist/umd/descope-combo-box-index-js.js +1 -1
- package/dist/umd/descope-container-index-js.js +1 -1
- package/dist/umd/descope-date-picker-index-js.js +1 -1
- package/dist/umd/descope-divider-index-js.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +1 -1
- package/dist/umd/descope-image-index-js.js +1 -1
- package/dist/umd/descope-link-index-js.js +1 -1
- package/dist/umd/descope-loader-linear-index-js.js +1 -1
- package/dist/umd/descope-loader-radial-index-js.js +1 -1
- package/dist/umd/descope-logo-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -0
- package/dist/umd/descope-new-password-index-js.js +1 -0
- package/dist/umd/descope-number-field-index-js.js +1 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
- package/dist/umd/descope-passcode-index-js.js +1 -1
- package/dist/umd/descope-password-field-index-js.js +1 -1
- package/dist/umd/descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/descope-phone-field-index-js.js +1 -1
- package/dist/umd/descope-switch-toggle-index-js.js +1 -1
- package/dist/umd/descope-text-area-index-js.js +1 -1
- package/dist/umd/descope-text-field-index-js.js +1 -1
- package/dist/umd/descope-text-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- package/src/baseClasses/createBaseInputClass.js +1 -2
- package/src/components/descope-new-password/NewPassword.js +129 -0
- package/src/components/descope-new-password/descope-new-password-internal/NewPasswordInternal.js +189 -0
- package/src/components/descope-new-password/descope-new-password-internal/componentName.js +3 -0
- package/src/components/descope-new-password/descope-new-password-internal/index.js +4 -0
- package/src/components/descope-new-password/index.js +6 -0
- package/src/components/descope-passcode/descope-passcode-internal/PasscodeInternal.js +2 -2
- package/src/components/descope-password-field/PasswordField.js +35 -36
- package/src/components/descope-phone-field/PhoneField.js +3 -2
- package/src/components/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +1 -1
- package/src/index.js +1 -0
- package/src/mixins/createProxy.js +1 -23
- package/src/mixins/index.js +0 -1
- package/src/mixins/inputEventsDispatchingMixin.js +48 -31
- package/src/mixins/inputValidationMixin.js +6 -2
- package/src/mixins/proxyInputMixin.js +6 -36
- package/src/theme/components/index.js +3 -1
- package/src/theme/components/newPassword.js +48 -0
- package/src/theme/components/passwordField.js +55 -3
- package/dist/umd/933.js +0 -1
- package/src/mixins/focusMixin.js +0 -23
package/dist/index.esm.js
CHANGED
@@ -559,7 +559,7 @@ const createProxy = ({
|
|
559
559
|
#dispatchFocus = createDispatchEvent.bind(this, 'focus')
|
560
560
|
|
561
561
|
constructor() {
|
562
|
-
super().attachShadow({ mode: 'open' }).innerHTML = `
|
562
|
+
super().attachShadow({ mode: 'open', delegatesFocus: true }).innerHTML = `
|
563
563
|
<style id="create-proxy">${isFunction(style) ? style() : style
|
564
564
|
}</style>
|
565
565
|
<${wrappedEleName}>
|
@@ -569,8 +569,6 @@ const createProxy = ({
|
|
569
569
|
`;
|
570
570
|
}
|
571
571
|
|
572
|
-
focus = () => this.baseElement.focus()
|
573
|
-
|
574
572
|
init() {
|
575
573
|
super.init?.();
|
576
574
|
|
@@ -582,30 +580,10 @@ const createProxy = ({
|
|
582
580
|
this.#dispatchFocus();
|
583
581
|
});
|
584
582
|
|
585
|
-
this.addEventListener('focus', (e) => {
|
586
|
-
// if we got a focus event we want to focus the proxy element
|
587
|
-
if (e.isTrusted) {
|
588
|
-
this.focus();
|
589
|
-
}
|
590
|
-
});
|
591
583
|
|
592
584
|
// this is needed for components that uses props, such as combo box
|
593
585
|
forwardProps(this, this.baseElement, includeForwardProps);
|
594
586
|
|
595
|
-
// `onkeydown` is set on `baseElement` support proper tab-index navigation
|
596
|
-
// this support is needed since both proxy host and element catch `focus`/`blur` event
|
597
|
-
// which causes faulty behavior.
|
598
|
-
// we need this to happen only when the proxy component is in the light DOM,
|
599
|
-
// otherwise it will focus the nested proxy element
|
600
|
-
this.baseElement.onkeydown = (e) => {
|
601
|
-
if (e.shiftKey && e.keyCode === 9 && this.getRootNode() === document) {
|
602
|
-
this.removeAttribute('tabindex');
|
603
|
-
// We want to defer the action of setting the tab index back
|
604
|
-
// so it will happen after focusing the previous element
|
605
|
-
setTimeout(() => this.setAttribute('tabindex', '0'), 0);
|
606
|
-
}
|
607
|
-
};
|
608
|
-
|
609
587
|
syncAttrs(this.baseElement, this, {
|
610
588
|
excludeAttrs: excludeAttrsSync,
|
611
589
|
includeAttrs: includeAttrsSync
|
@@ -686,7 +664,7 @@ const inputValidationMixin = (superclass) => class InputValidationMixinClass ext
|
|
686
664
|
|
687
665
|
#setValidity() {
|
688
666
|
const validity = this.getValidity();
|
689
|
-
this.#internals.setValidity(validity, this.getErrorMessage(validity));
|
667
|
+
this.#internals.setValidity(validity, this.getErrorMessage(validity), this.validationTarget);
|
690
668
|
}
|
691
669
|
|
692
670
|
get validationMessage() {
|
@@ -709,9 +687,13 @@ const inputValidationMixin = (superclass) => class InputValidationMixinClass ext
|
|
709
687
|
return this.#internals.validity
|
710
688
|
}
|
711
689
|
|
690
|
+
get validationTarget () {
|
691
|
+
return this.inputElement
|
692
|
+
}
|
693
|
+
|
712
694
|
setCustomValidity(errorMessage) {
|
713
695
|
if (errorMessage) {
|
714
|
-
this.#internals.setValidity({ customError: true }, errorMessage);
|
696
|
+
this.#internals.setValidity({ customError: true }, errorMessage, this.validationTarget);
|
715
697
|
} else {
|
716
698
|
this.#internals.setValidity({});
|
717
699
|
this.#setValidity();
|
@@ -814,21 +796,6 @@ const proxyInputMixin = (superclass) =>
|
|
814
796
|
return this.inputElement.validity
|
815
797
|
}
|
816
798
|
|
817
|
-
reportValidityOnInternalInput() {
|
818
|
-
setTimeout(() => {
|
819
|
-
this.inputElement.focus();
|
820
|
-
this.inputElement.reportValidity();
|
821
|
-
});
|
822
|
-
}
|
823
|
-
|
824
|
-
// we want reportValidity to behave like form submission
|
825
|
-
reportValidity() {
|
826
|
-
if (!this.checkValidity()) {
|
827
|
-
this.setAttribute('invalid', 'true');
|
828
|
-
this.reportValidityOnInternalInput();
|
829
|
-
}
|
830
|
-
}
|
831
|
-
|
832
799
|
handleInternalInputErrorMessage() {
|
833
800
|
if (!this.inputElement.checkValidity()) {
|
834
801
|
this.inputElement.setCustomValidity(this.validationMessage);
|
@@ -870,31 +837,16 @@ const proxyInputMixin = (superclass) =>
|
|
870
837
|
}
|
871
838
|
});
|
872
839
|
|
873
|
-
this.addEventListener('focus', (e) => {
|
874
|
-
// when clicking on the form submit button and the input is invalid, we want it to appear as invalid
|
875
|
-
// this is a best effort, we cannot identify it for sure without listening to the form submission event
|
876
|
-
// this will also be triggered when the focus is moving from the submit button to the input by pressing TAB key
|
877
|
-
if (e.relatedTarget?.form && e.relatedTarget?.form === this.form && e.relatedTarget?.nodeName === 'BUTTON') {
|
878
|
-
if (!this.checkValidity()) {
|
879
|
-
this.setAttribute('invalid', 'true');
|
880
|
-
}
|
881
840
|
|
882
|
-
|
883
|
-
|
884
|
-
|
841
|
+
this.addEventListener('invalid', () => {
|
842
|
+
if (!this.checkValidity()) {
|
843
|
+
this.setAttribute('invalid', 'true');
|
885
844
|
}
|
845
|
+
this.#handleErrorMessage();
|
886
846
|
});
|
887
847
|
|
888
|
-
this.addEventListener('invalid', this.#handleErrorMessage);
|
889
|
-
|
890
848
|
this.handleInternalInputErrorMessage();
|
891
849
|
|
892
|
-
// this is needed in order to make sure the form input validation is working
|
893
|
-
// we do not want it to happen when the component is nested
|
894
|
-
if (!this.hasAttribute('tabindex') && this.getRootNode() === document) {
|
895
|
-
this.setAttribute('tabindex', 0);
|
896
|
-
}
|
897
|
-
|
898
850
|
// sync properties
|
899
851
|
propertyObserver(this, this.inputElement, 'value');
|
900
852
|
propertyObserver(this, this.inputElement, 'selectionStart');
|
@@ -902,30 +854,6 @@ const proxyInputMixin = (superclass) =>
|
|
902
854
|
}
|
903
855
|
};
|
904
856
|
|
905
|
-
const focusMixin = (superclass) => class FocusMixinClass extends superclass {
|
906
|
-
// we want to block all native events,
|
907
|
-
// so the input can control when to dispatch it based on its internal behavior
|
908
|
-
init() {
|
909
|
-
super.init?.();
|
910
|
-
|
911
|
-
this.addEventListener('blur', (e) => {
|
912
|
-
e.isTrusted && e.stopImmediatePropagation();
|
913
|
-
});
|
914
|
-
|
915
|
-
this.addEventListener('focus', (e) => {
|
916
|
-
e.isTrusted && e.stopImmediatePropagation();
|
917
|
-
});
|
918
|
-
|
919
|
-
this.addEventListener('focusout', (e) => {
|
920
|
-
e.isTrusted && e.stopImmediatePropagation();
|
921
|
-
});
|
922
|
-
|
923
|
-
this.addEventListener('focusin', (e) => {
|
924
|
-
e.isTrusted && e.stopImmediatePropagation();
|
925
|
-
});
|
926
|
-
}
|
927
|
-
};
|
928
|
-
|
929
857
|
// this is needed because we might generate the same css vars names
|
930
858
|
// e.g. "overlayColor" attribute in style mixin's mapping,
|
931
859
|
// will generate the same var as "color" attribute in portals's mapping
|
@@ -1032,59 +960,76 @@ const readOnlyMixin = (superclass) => class ReadOnlyMixinClass extends superclas
|
|
1032
960
|
};
|
1033
961
|
|
1034
962
|
const inputEventsDispatchingMixin = (superclass) => class InputEventsDispatchingMixinClass extends superclass {
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
963
|
+
init() {
|
964
|
+
this.#blockNativeEvents();
|
965
|
+
|
966
|
+
super.init?.();
|
967
|
+
}
|
968
|
+
|
969
|
+
// we want to block the native (trusted) events and control when these events are being dispatched
|
970
|
+
#blockNativeEvents() {
|
971
|
+
['blur', 'focus', 'focusin', 'focusout'].forEach(event => {
|
972
|
+
this.addEventListener(event, (e) => {
|
973
|
+
e.isTrusted && e.target === this && e.stopImmediatePropagation();
|
974
|
+
});
|
975
|
+
});
|
976
|
+
}
|
977
|
+
|
978
|
+
handleFocusEventsDispatching(inputs) {
|
979
|
+
let timerId;
|
980
|
+
|
981
|
+
// in order to simulate blur & focusout on root input element
|
982
|
+
// we are checking if focus on one of the inner elements happened immediately after blur
|
983
|
+
// if not, the component is no longer focused and we should dispatch blur & focusout
|
984
|
+
inputs?.forEach(input => {
|
985
|
+
input?.addEventListener('focusout', (e) => {
|
1043
986
|
e.stopImmediatePropagation();
|
1044
|
-
|
1045
|
-
|
987
|
+
timerId = setTimeout(() => {
|
988
|
+
timerId = null;
|
989
|
+
|
1046
990
|
createDispatchEvent.call(this, 'blur');
|
1047
991
|
createDispatchEvent.call(this, 'focusout', { bubbles: true });
|
1048
992
|
});
|
1049
993
|
});
|
1050
994
|
|
1051
|
-
// in order to simulate focus on the input
|
1052
|
-
// we are holding a
|
1053
|
-
// if there is a timer id, it means that
|
1054
|
-
// otherwise, it was not focused before, and we
|
1055
|
-
|
995
|
+
// in order to simulate focus & focusin on the root input element
|
996
|
+
// we are holding a timer id and clearing it on focusin
|
997
|
+
// if there is a timer id, it means that the root input is still focused
|
998
|
+
// otherwise, it was not focused before, and we should dispatch focus & focusin
|
999
|
+
const onFocus = (e) => {
|
1056
1000
|
e.stopImmediatePropagation();
|
1057
|
-
clearTimeout(
|
1058
|
-
if (!
|
1001
|
+
clearTimeout(timerId);
|
1002
|
+
if (!timerId) {
|
1059
1003
|
createDispatchEvent.call(this, 'focus');
|
1060
1004
|
createDispatchEvent.call(this, 'focusin', { bubbles: true });
|
1061
1005
|
}
|
1062
|
-
}
|
1006
|
+
};
|
1007
|
+
|
1008
|
+
// some components are not dispatching focusin but only focus
|
1009
|
+
input?.addEventListener('focusin', onFocus);
|
1010
|
+
input?.addEventListener('focus', onFocus);
|
1063
1011
|
});
|
1064
1012
|
}
|
1065
1013
|
|
1066
1014
|
// we want to block the input events from propagating in case the value of the root input wasn't change
|
1067
1015
|
// this can happen if we are sanitizing characters on the internal inputs and do not want it to affect the root input element value
|
1068
1016
|
// in this case, on each input event, we are comparing the root input value to the previous one, and only if it does not match, we are allowing the input event to propagate
|
1069
|
-
handleInputEventDispatching(
|
1017
|
+
handleInputEventDispatching() {
|
1070
1018
|
let previousRootComponentValue = this.value;
|
1071
1019
|
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
}
|
1081
|
-
});
|
1020
|
+
this.addEventListener('input', (e) => {
|
1021
|
+
// we are comparing the previous value to the new one,
|
1022
|
+
// and if they have the same value, we are blocking the input event
|
1023
|
+
if (previousRootComponentValue === this.value) {
|
1024
|
+
e.stopImmediatePropagation();
|
1025
|
+
} else {
|
1026
|
+
previousRootComponentValue = this.value;
|
1027
|
+
}
|
1082
1028
|
});
|
1083
|
-
|
1084
1029
|
}
|
1085
1030
|
};
|
1086
1031
|
|
1087
|
-
const componentName$
|
1032
|
+
const componentName$n = getComponentName('button');
|
1088
1033
|
|
1089
1034
|
const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
|
1090
1035
|
const resetStyles = `
|
@@ -1107,7 +1052,7 @@ const iconStyles = `
|
|
1107
1052
|
}
|
1108
1053
|
`;
|
1109
1054
|
|
1110
|
-
const { label: label$
|
1055
|
+
const { label: label$3, host: host$7 } = {
|
1111
1056
|
label: { selector: '::part(label)' },
|
1112
1057
|
host: { selector: () => ':host' }
|
1113
1058
|
};
|
@@ -1117,16 +1062,16 @@ const Button = compose(
|
|
1117
1062
|
mappings: {
|
1118
1063
|
backgroundColor: {},
|
1119
1064
|
borderRadius: {},
|
1120
|
-
color: label$
|
1065
|
+
color: label$3,
|
1121
1066
|
borderColor: {},
|
1122
1067
|
borderStyle: {},
|
1123
1068
|
borderWidth: {},
|
1124
1069
|
fontSize: {},
|
1125
1070
|
height: {},
|
1126
|
-
width: host$
|
1071
|
+
width: host$7,
|
1127
1072
|
cursor: {},
|
1128
|
-
padding: label$
|
1129
|
-
textDecoration: label$
|
1073
|
+
padding: label$3,
|
1074
|
+
textDecoration: label$3
|
1130
1075
|
}
|
1131
1076
|
}),
|
1132
1077
|
draggableMixin,
|
@@ -1138,7 +1083,7 @@ const Button = compose(
|
|
1138
1083
|
style: () =>
|
1139
1084
|
`${resetStyles} ${editorOverrides} ${iconStyles} ${loadingIndicatorStyles}`,
|
1140
1085
|
excludeAttrsSync: ['tabindex'],
|
1141
|
-
componentName: componentName$
|
1086
|
+
componentName: componentName$n
|
1142
1087
|
})
|
1143
1088
|
);
|
1144
1089
|
|
@@ -1175,9 +1120,9 @@ const loadingIndicatorStyles = `
|
|
1175
1120
|
}
|
1176
1121
|
`;
|
1177
1122
|
|
1178
|
-
customElements.define(componentName$
|
1123
|
+
customElements.define(componentName$n, Button);
|
1179
1124
|
|
1180
|
-
const componentName$
|
1125
|
+
const componentName$m = getComponentName('checkbox');
|
1181
1126
|
|
1182
1127
|
const Checkbox = compose(
|
1183
1128
|
createStyleMixin({
|
@@ -1203,17 +1148,17 @@ const Checkbox = compose(
|
|
1203
1148
|
}
|
1204
1149
|
`,
|
1205
1150
|
excludeAttrsSync: ['tabindex'],
|
1206
|
-
componentName: componentName$
|
1151
|
+
componentName: componentName$m
|
1207
1152
|
})
|
1208
1153
|
);
|
1209
1154
|
|
1210
|
-
customElements.define(componentName$
|
1155
|
+
customElements.define(componentName$m, Checkbox);
|
1211
1156
|
|
1212
|
-
const componentName$
|
1157
|
+
const componentName$l = getComponentName('loader-linear');
|
1213
1158
|
|
1214
|
-
class RawLoaderLinear extends createBaseClass({ componentName: componentName$
|
1159
|
+
class RawLoaderLinear extends createBaseClass({ componentName: componentName$l, baseSelector: ':host > div' }) {
|
1215
1160
|
static get componentName() {
|
1216
|
-
return componentName$
|
1161
|
+
return componentName$l;
|
1217
1162
|
}
|
1218
1163
|
constructor() {
|
1219
1164
|
super();
|
@@ -1250,13 +1195,13 @@ const selectors$4 = {
|
|
1250
1195
|
host: { selector: () => ':host' }
|
1251
1196
|
};
|
1252
1197
|
|
1253
|
-
const { root: root$1, after: after$1, host: host$
|
1198
|
+
const { root: root$1, after: after$1, host: host$6 } = selectors$4;
|
1254
1199
|
|
1255
1200
|
const LoaderLinear = compose(
|
1256
1201
|
createStyleMixin({
|
1257
1202
|
mappings: {
|
1258
1203
|
display: root$1,
|
1259
|
-
width: host$
|
1204
|
+
width: host$6,
|
1260
1205
|
height: [root$1, after$1],
|
1261
1206
|
borderRadius: [root$1, after$1],
|
1262
1207
|
surfaceColor: [{ property: 'background-color' }],
|
@@ -1271,11 +1216,11 @@ const LoaderLinear = compose(
|
|
1271
1216
|
componentNameValidationMixin
|
1272
1217
|
)(RawLoaderLinear);
|
1273
1218
|
|
1274
|
-
customElements.define(componentName$
|
1219
|
+
customElements.define(componentName$l, LoaderLinear);
|
1275
1220
|
|
1276
|
-
const componentName$
|
1221
|
+
const componentName$k = getComponentName('loader-radial');
|
1277
1222
|
|
1278
|
-
class RawLoaderRadial extends createBaseClass({ componentName: componentName$
|
1223
|
+
class RawLoaderRadial extends createBaseClass({ componentName: componentName$k, baseSelector: ':host > div' }) {
|
1279
1224
|
constructor() {
|
1280
1225
|
super();
|
1281
1226
|
|
@@ -1321,11 +1266,11 @@ const LoaderRadial = compose(
|
|
1321
1266
|
componentNameValidationMixin
|
1322
1267
|
)(RawLoaderRadial);
|
1323
1268
|
|
1324
|
-
customElements.define(componentName$
|
1269
|
+
customElements.define(componentName$k, LoaderRadial);
|
1325
1270
|
|
1326
|
-
const componentName$
|
1271
|
+
const componentName$j = getComponentName('container');
|
1327
1272
|
|
1328
|
-
class RawContainer extends createBaseClass({componentName: componentName$
|
1273
|
+
class RawContainer extends createBaseClass({componentName: componentName$j, baseSelector: ':host > slot'}) {
|
1329
1274
|
constructor() {
|
1330
1275
|
super();
|
1331
1276
|
|
@@ -1381,26 +1326,26 @@ const Container = compose(
|
|
1381
1326
|
componentNameValidationMixin
|
1382
1327
|
)(RawContainer);
|
1383
1328
|
|
1384
|
-
customElements.define(componentName$
|
1329
|
+
customElements.define(componentName$j, Container);
|
1385
1330
|
|
1386
|
-
const componentName$
|
1331
|
+
const componentName$i = getComponentName('date-picker');
|
1387
1332
|
|
1388
1333
|
const DatePicker = compose(
|
1389
1334
|
draggableMixin,
|
1390
1335
|
componentNameValidationMixin
|
1391
1336
|
)(
|
1392
1337
|
createProxy({
|
1393
|
-
componentName: componentName$
|
1338
|
+
componentName: componentName$i,
|
1394
1339
|
slots: ['prefix', 'suffix'],
|
1395
1340
|
wrappedEleName: 'vaadin-date-picker',
|
1396
1341
|
style: ``
|
1397
1342
|
})
|
1398
1343
|
);
|
1399
1344
|
|
1400
|
-
customElements.define(componentName$
|
1345
|
+
customElements.define(componentName$i, DatePicker);
|
1401
1346
|
|
1402
|
-
const componentName$
|
1403
|
-
class RawDivider extends createBaseClass({ componentName: componentName$
|
1347
|
+
const componentName$h = getComponentName('divider');
|
1348
|
+
class RawDivider extends createBaseClass({ componentName: componentName$h, baseSelector: ':host > div' }) {
|
1404
1349
|
constructor() {
|
1405
1350
|
super();
|
1406
1351
|
|
@@ -1454,7 +1399,7 @@ const selectors$3 = {
|
|
1454
1399
|
host: { selector: () => ':host' },
|
1455
1400
|
};
|
1456
1401
|
|
1457
|
-
const { root, before, after, text: text$2, host: host$
|
1402
|
+
const { root, before, after, text: text$2, host: host$5 } = selectors$3;
|
1458
1403
|
|
1459
1404
|
const Divider = compose(
|
1460
1405
|
createStyleMixin({
|
@@ -1465,8 +1410,8 @@ const Divider = compose(
|
|
1465
1410
|
alignSelf: root,
|
1466
1411
|
flexDirection: root,
|
1467
1412
|
textPadding: { ...text$2, property: 'padding' },
|
1468
|
-
width: host$
|
1469
|
-
padding: host$
|
1413
|
+
width: host$5,
|
1414
|
+
padding: host$5,
|
1470
1415
|
backgroundColor: [before, after],
|
1471
1416
|
opacity: [before, after],
|
1472
1417
|
textWidth: { ...text$2, property: 'width' },
|
@@ -1478,9 +1423,9 @@ const Divider = compose(
|
|
1478
1423
|
componentNameValidationMixin
|
1479
1424
|
)(RawDivider);
|
1480
1425
|
|
1481
|
-
const componentName$
|
1426
|
+
const componentName$g = getComponentName('text');
|
1482
1427
|
|
1483
|
-
class RawText extends createBaseClass({ componentName: componentName$
|
1428
|
+
class RawText extends createBaseClass({ componentName: componentName$g, baseSelector: ':host > slot' }) {
|
1484
1429
|
constructor() {
|
1485
1430
|
super();
|
1486
1431
|
|
@@ -1522,9 +1467,9 @@ const Text = compose(
|
|
1522
1467
|
componentNameValidationMixin
|
1523
1468
|
)(RawText);
|
1524
1469
|
|
1525
|
-
customElements.define(componentName$
|
1470
|
+
customElements.define(componentName$g, Text);
|
1526
1471
|
|
1527
|
-
customElements.define(componentName$
|
1472
|
+
customElements.define(componentName$h, Divider);
|
1528
1473
|
|
1529
1474
|
const selectors$2 = {
|
1530
1475
|
label: '::part(label)',
|
@@ -1569,9 +1514,9 @@ var textFieldMappings = {
|
|
1569
1514
|
placeholderColor: { selector: selectors$2.placeholder, property: 'color' }
|
1570
1515
|
};
|
1571
1516
|
|
1572
|
-
const componentName$
|
1517
|
+
const componentName$f = getComponentName('email-field');
|
1573
1518
|
|
1574
|
-
let overrides$
|
1519
|
+
let overrides$6 = ``;
|
1575
1520
|
|
1576
1521
|
const EmailField = compose(
|
1577
1522
|
createStyleMixin({
|
@@ -1586,13 +1531,13 @@ const EmailField = compose(
|
|
1586
1531
|
createProxy({
|
1587
1532
|
slots: ['suffix'],
|
1588
1533
|
wrappedEleName: 'vaadin-email-field',
|
1589
|
-
style: () => overrides$
|
1534
|
+
style: () => overrides$6,
|
1590
1535
|
excludeAttrsSync: ['tabindex'],
|
1591
|
-
componentName: componentName$
|
1536
|
+
componentName: componentName$f
|
1592
1537
|
})
|
1593
1538
|
);
|
1594
1539
|
|
1595
|
-
overrides$
|
1540
|
+
overrides$6 = `
|
1596
1541
|
:host {
|
1597
1542
|
display: inline-block;
|
1598
1543
|
}
|
@@ -1632,10 +1577,10 @@ overrides$5 = `
|
|
1632
1577
|
}
|
1633
1578
|
`;
|
1634
1579
|
|
1635
|
-
customElements.define(componentName$
|
1580
|
+
customElements.define(componentName$f, EmailField);
|
1636
1581
|
|
1637
|
-
const componentName$
|
1638
|
-
class RawLink extends createBaseClass({ componentName: componentName$
|
1582
|
+
const componentName$e = getComponentName('link');
|
1583
|
+
class RawLink extends createBaseClass({ componentName: componentName$e, baseSelector: ':host a' }) {
|
1639
1584
|
constructor() {
|
1640
1585
|
super();
|
1641
1586
|
document.createElement('template');
|
@@ -1678,12 +1623,12 @@ const selectors$1 = {
|
|
1678
1623
|
text: { selector: () => Text.componentName }
|
1679
1624
|
};
|
1680
1625
|
|
1681
|
-
const { anchor, text: text$1, host: host$
|
1626
|
+
const { anchor, text: text$1, host: host$4, wrapper } = selectors$1;
|
1682
1627
|
|
1683
1628
|
const Link = compose(
|
1684
1629
|
createStyleMixin({
|
1685
1630
|
mappings: {
|
1686
|
-
width: host$
|
1631
|
+
width: host$4,
|
1687
1632
|
textAlign: wrapper,
|
1688
1633
|
color: [anchor, { ...text$1, property: Text.cssVarList.color }],
|
1689
1634
|
cursor: anchor,
|
@@ -1696,14 +1641,14 @@ const Link = compose(
|
|
1696
1641
|
componentNameValidationMixin
|
1697
1642
|
)(RawLink);
|
1698
1643
|
|
1699
|
-
customElements.define(componentName$
|
1644
|
+
customElements.define(componentName$e, Link);
|
1700
1645
|
|
1701
|
-
const componentName$
|
1646
|
+
const componentName$d = getComponentName('logo');
|
1702
1647
|
|
1703
1648
|
let style;
|
1704
1649
|
const getStyle = () => style;
|
1705
1650
|
|
1706
|
-
class RawLogo extends createBaseClass({ componentName: componentName$
|
1651
|
+
class RawLogo extends createBaseClass({ componentName: componentName$d, baseSelector: ':host > div' }) {
|
1707
1652
|
constructor() {
|
1708
1653
|
super();
|
1709
1654
|
|
@@ -1741,11 +1686,11 @@ style = `
|
|
1741
1686
|
}
|
1742
1687
|
`;
|
1743
1688
|
|
1744
|
-
customElements.define(componentName$
|
1689
|
+
customElements.define(componentName$d, Logo);
|
1745
1690
|
|
1746
|
-
const componentName$
|
1691
|
+
const componentName$c = getComponentName('number-field');
|
1747
1692
|
|
1748
|
-
let overrides$
|
1693
|
+
let overrides$5 = ``;
|
1749
1694
|
|
1750
1695
|
const NumberField = compose(
|
1751
1696
|
createStyleMixin({
|
@@ -1760,13 +1705,13 @@ const NumberField = compose(
|
|
1760
1705
|
createProxy({
|
1761
1706
|
slots: ['prefix', 'suffix'],
|
1762
1707
|
wrappedEleName: 'vaadin-number-field',
|
1763
|
-
style: () => overrides$
|
1708
|
+
style: () => overrides$5,
|
1764
1709
|
excludeAttrsSync: ['tabindex'],
|
1765
|
-
componentName: componentName$
|
1710
|
+
componentName: componentName$c
|
1766
1711
|
})
|
1767
1712
|
);
|
1768
1713
|
|
1769
|
-
overrides$
|
1714
|
+
overrides$5 = `
|
1770
1715
|
:host {
|
1771
1716
|
display: inline-block;
|
1772
1717
|
}
|
@@ -1806,10 +1751,9 @@ overrides$4 = `
|
|
1806
1751
|
}
|
1807
1752
|
`;
|
1808
1753
|
|
1809
|
-
customElements.define(componentName$
|
1754
|
+
customElements.define(componentName$c, NumberField);
|
1810
1755
|
|
1811
1756
|
const createBaseInputClass = (...args) => compose(
|
1812
|
-
focusMixin,
|
1813
1757
|
inputValidationMixin,
|
1814
1758
|
changeMixin,
|
1815
1759
|
readOnlyMixin,
|
@@ -1831,7 +1775,7 @@ const getSanitizedCharacters = (str) => {
|
|
1831
1775
|
return [...pin]; // creating array of chars
|
1832
1776
|
};
|
1833
1777
|
|
1834
|
-
const componentName$
|
1778
|
+
const componentName$b = getComponentName('passcode-internal');
|
1835
1779
|
|
1836
1780
|
const observedAttributes$1 = [
|
1837
1781
|
'digits'
|
@@ -1845,15 +1789,15 @@ const forwardAttributes = [
|
|
1845
1789
|
'readonly'
|
1846
1790
|
];
|
1847
1791
|
|
1848
|
-
const BaseInputClass$
|
1792
|
+
const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$b, baseSelector: 'div' });
|
1849
1793
|
|
1850
|
-
class PasscodeInternal extends BaseInputClass$
|
1794
|
+
class PasscodeInternal extends BaseInputClass$2 {
|
1851
1795
|
static get observedAttributes() {
|
1852
|
-
return observedAttributes$1.concat(BaseInputClass$
|
1796
|
+
return observedAttributes$1.concat(BaseInputClass$2.observedAttributes || []);
|
1853
1797
|
}
|
1854
1798
|
|
1855
1799
|
static get componentName() {
|
1856
|
-
return componentName$
|
1800
|
+
return componentName$b;
|
1857
1801
|
}
|
1858
1802
|
|
1859
1803
|
#dispatchBlur = createDispatchEvent.bind(this, 'blur')
|
@@ -2002,7 +1946,7 @@ class PasscodeInternal extends BaseInputClass$1 {
|
|
2002
1946
|
});
|
2003
1947
|
|
2004
1948
|
this.handleFocusEventsDispatching(this.inputs);
|
2005
|
-
this.handleInputEventDispatching(
|
1949
|
+
this.handleInputEventDispatching();
|
2006
1950
|
}
|
2007
1951
|
|
2008
1952
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
@@ -2019,13 +1963,13 @@ class PasscodeInternal extends BaseInputClass$1 {
|
|
2019
1963
|
}
|
2020
1964
|
}
|
2021
1965
|
|
2022
|
-
const componentName$
|
1966
|
+
const componentName$a = getComponentName('text-field');
|
2023
1967
|
|
2024
|
-
let overrides$
|
1968
|
+
let overrides$4 = ``;
|
2025
1969
|
|
2026
1970
|
const observedAttrs = ['type'];
|
2027
1971
|
|
2028
|
-
const customMixin$
|
1972
|
+
const customMixin$3 = (superclass) =>
|
2029
1973
|
class TextFieldClass extends superclass {
|
2030
1974
|
static get observedAttributes() {
|
2031
1975
|
return observedAttrs.concat(superclass.observedAttributes || []);
|
@@ -2052,18 +1996,18 @@ const TextField = compose(
|
|
2052
1996
|
draggableMixin,
|
2053
1997
|
proxyInputMixin,
|
2054
1998
|
componentNameValidationMixin,
|
2055
|
-
customMixin$
|
1999
|
+
customMixin$3
|
2056
2000
|
)(
|
2057
2001
|
createProxy({
|
2058
2002
|
slots: ['prefix', 'suffix'],
|
2059
2003
|
wrappedEleName: 'vaadin-text-field',
|
2060
|
-
style: () => overrides$
|
2004
|
+
style: () => overrides$4,
|
2061
2005
|
excludeAttrsSync: ['tabindex'],
|
2062
|
-
componentName: componentName$
|
2006
|
+
componentName: componentName$a
|
2063
2007
|
})
|
2064
2008
|
);
|
2065
2009
|
|
2066
|
-
overrides$
|
2010
|
+
overrides$4 = `
|
2067
2011
|
:host {
|
2068
2012
|
display: inline-block;
|
2069
2013
|
--vaadin-field-default-width: auto;
|
@@ -2116,9 +2060,9 @@ overrides$3 = `
|
|
2116
2060
|
}
|
2117
2061
|
`;
|
2118
2062
|
|
2119
|
-
const componentName$
|
2063
|
+
const componentName$9 = getComponentName('passcode');
|
2120
2064
|
|
2121
|
-
const customMixin$
|
2065
|
+
const customMixin$2 = (superclass) =>
|
2122
2066
|
class PasscodeClass extends superclass {
|
2123
2067
|
constructor() {
|
2124
2068
|
super();
|
@@ -2133,17 +2077,17 @@ const customMixin$1 = (superclass) =>
|
|
2133
2077
|
const template = document.createElement('template');
|
2134
2078
|
|
2135
2079
|
template.innerHTML = `
|
2136
|
-
<${componentName$
|
2080
|
+
<${componentName$b}
|
2137
2081
|
bordered="true"
|
2138
2082
|
name="code"
|
2139
2083
|
tabindex="-1"
|
2140
2084
|
slot="input"
|
2141
|
-
></${componentName$
|
2085
|
+
></${componentName$b}>
|
2142
2086
|
`;
|
2143
2087
|
|
2144
2088
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
2145
2089
|
|
2146
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
2090
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$b);
|
2147
2091
|
|
2148
2092
|
forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size'] });
|
2149
2093
|
}
|
@@ -2152,7 +2096,7 @@ const customMixin$1 = (superclass) =>
|
|
2152
2096
|
const { borderStyle, borderWidth, ...restTextFieldMappings } =
|
2153
2097
|
textFieldMappings;
|
2154
2098
|
|
2155
|
-
const { digitField, label: label$
|
2099
|
+
const { digitField, label: label$2, requiredIndicator: requiredIndicator$2, internalWrapper, focusedValidDigitField } = {
|
2156
2100
|
focusedValidDigitField: { selector: () => `${TextField.componentName}[focused="true"]:not([invalid="true"])` },
|
2157
2101
|
digitField: { selector: () => TextField.componentName },
|
2158
2102
|
label: { selector: '> label' },
|
@@ -2174,7 +2118,7 @@ const Passcode = compose(
|
|
2174
2118
|
// ideally, this would be part of the text field
|
2175
2119
|
{ ...internalWrapper, property: 'padding' }
|
2176
2120
|
],
|
2177
|
-
color: [restTextFieldMappings.color, label$
|
2121
|
+
color: [restTextFieldMappings.color, label$2, requiredIndicator$2],
|
2178
2122
|
padding: { ...digitField, property: textVars$1.padding },
|
2179
2123
|
margin: { ...digitField, property: textVars$1.margin },
|
2180
2124
|
textAlign: { ...digitField, property: textVars$1.textAlign },
|
@@ -2186,7 +2130,7 @@ const Passcode = compose(
|
|
2186
2130
|
draggableMixin,
|
2187
2131
|
proxyInputMixin,
|
2188
2132
|
componentNameValidationMixin,
|
2189
|
-
customMixin$
|
2133
|
+
customMixin$2
|
2190
2134
|
)(
|
2191
2135
|
createProxy({
|
2192
2136
|
slots: [],
|
@@ -2249,30 +2193,51 @@ const Passcode = compose(
|
|
2249
2193
|
}
|
2250
2194
|
`,
|
2251
2195
|
excludeAttrsSync: ['tabindex'],
|
2252
|
-
componentName: componentName$
|
2196
|
+
componentName: componentName$9
|
2253
2197
|
})
|
2254
2198
|
);
|
2255
2199
|
|
2256
|
-
customElements.define(componentName$
|
2200
|
+
customElements.define(componentName$a, TextField);
|
2257
2201
|
|
2258
|
-
customElements.define(componentName$
|
2202
|
+
customElements.define(componentName$b, PasscodeInternal);
|
2259
2203
|
|
2260
|
-
customElements.define(componentName$
|
2204
|
+
customElements.define(componentName$9, Passcode);
|
2261
2205
|
|
2262
|
-
const componentName$
|
2206
|
+
const componentName$8 = getComponentName('password-field');
|
2263
2207
|
|
2264
|
-
let overrides$
|
2208
|
+
let overrides$3 = ``;
|
2209
|
+
|
2210
|
+
const { host: host$3, inputWrapper: inputWrapper$1, inputElement, inputElementPlaceholder, revealButton, label: label$1, requiredIndicator: requiredIndicator$1 } = {
|
2211
|
+
host: () => ':host',
|
2212
|
+
inputWrapper: { selector: '::part(input-field)' },
|
2213
|
+
inputElement: { selector: '> input' },
|
2214
|
+
inputElementPlaceholder: { selector: '> input:placeholder-shown' },
|
2215
|
+
revealButton: { selector: 'vaadin-password-field-button' },
|
2216
|
+
label: { selector: '> label' },
|
2217
|
+
requiredIndicator: { selector: '::part(required-indicator)::after' },
|
2218
|
+
};
|
2265
2219
|
|
2266
2220
|
const PasswordField = compose(
|
2267
2221
|
createStyleMixin({
|
2268
2222
|
mappings: {
|
2269
|
-
...
|
2270
|
-
|
2271
|
-
|
2272
|
-
|
2273
|
-
|
2274
|
-
}
|
2275
|
-
|
2223
|
+
wrapperBorderStyle: { ...inputWrapper$1, property: 'border-style' },
|
2224
|
+
wrapperBorderWidth: { ...inputWrapper$1, property: 'border-width' },
|
2225
|
+
wrapperBorderColor: { ...inputWrapper$1, property: 'border-color' },
|
2226
|
+
wrapperBorderRadius: { ...inputWrapper$1, property: 'border-radius' },
|
2227
|
+
labelTextColor: [
|
2228
|
+
{ ...label$1, property: 'color' },
|
2229
|
+
{ ...requiredIndicator$1, property: 'color' }
|
2230
|
+
],
|
2231
|
+
inputTextColor: [{ ...inputElement, property: 'color' }],
|
2232
|
+
placeholderTextColor: { ...inputElementPlaceholder, property: 'color' },
|
2233
|
+
fontSize: [{}, host$3],
|
2234
|
+
height: inputWrapper$1,
|
2235
|
+
padding: inputWrapper$1,
|
2236
|
+
pointerCursor: [
|
2237
|
+
{ ...revealButton, property: 'cursor' },
|
2238
|
+
{ ...label$1, property: 'cursor' },
|
2239
|
+
{ ...requiredIndicator$1, property: 'cursor' }
|
2240
|
+
],
|
2276
2241
|
}
|
2277
2242
|
}),
|
2278
2243
|
draggableMixin,
|
@@ -2282,57 +2247,36 @@ const PasswordField = compose(
|
|
2282
2247
|
createProxy({
|
2283
2248
|
slots: ['suffix'],
|
2284
2249
|
wrappedEleName: 'vaadin-password-field',
|
2285
|
-
style: () => overrides$
|
2250
|
+
style: () => overrides$3,
|
2286
2251
|
excludeAttrsSync: ['tabindex'],
|
2287
|
-
componentName: componentName$
|
2252
|
+
componentName: componentName$8
|
2288
2253
|
})
|
2289
2254
|
);
|
2290
2255
|
|
2291
|
-
overrides$
|
2256
|
+
overrides$3 = `
|
2292
2257
|
:host {
|
2293
2258
|
display: inline-block;
|
2294
2259
|
}
|
2295
2260
|
vaadin-password-field {
|
2296
|
-
|
2261
|
+
width: 100%;
|
2297
2262
|
padding: 0;
|
2298
2263
|
}
|
2299
2264
|
vaadin-password-field::part(input-field) {
|
2300
|
-
|
2301
|
-
}
|
2302
|
-
vaadin-password-field[readonly] > input:placeholder-shown {
|
2303
|
-
opacity: 1;
|
2304
|
-
}
|
2305
|
-
vaadin-password-field input:-webkit-autofill,
|
2306
|
-
vaadin-password-field input:-webkit-autofill::first-line,
|
2307
|
-
vaadin-password-field input:-webkit-autofill:hover,
|
2308
|
-
vaadin-password-field input:-webkit-autofill:active,
|
2309
|
-
vaadin-password-field input:-webkit-autofill:focus {
|
2310
|
-
-webkit-text-fill-color: var(${PasswordField.cssVarList.color});
|
2311
|
-
box-shadow: 0 0 0 var(${PasswordField.cssVarList.height}) var(${PasswordField.cssVarList.backgroundColor}) inset;
|
2312
|
-
}
|
2313
|
-
vaadin-password-field > label,
|
2314
|
-
vaadin-password-field::part(input-field) {
|
2315
|
-
cursor: pointer;
|
2316
|
-
color: var(${PasswordField.cssVarList.color});
|
2265
|
+
background: transparent;
|
2317
2266
|
}
|
2318
|
-
vaadin-password-field::part(input-field)
|
2319
|
-
|
2320
|
-
}
|
2321
|
-
vaadin-password-field
|
2322
|
-
|
2323
|
-
content: "*";
|
2324
|
-
color: var(${PasswordField.cssVarList.color});
|
2325
|
-
}
|
2326
|
-
vaadin-password-field[readonly]::part(input-field)::after {
|
2327
|
-
border: 0 solid;
|
2267
|
+
vaadin-password-field::part(input-field)::after {
|
2268
|
+
opacity: 0;
|
2269
|
+
}
|
2270
|
+
vaadin-password-field::before {
|
2271
|
+
height: initial;
|
2328
2272
|
}
|
2329
2273
|
`;
|
2330
2274
|
|
2331
|
-
customElements.define(componentName$
|
2275
|
+
customElements.define(componentName$8, PasswordField);
|
2332
2276
|
|
2333
|
-
const componentName$
|
2277
|
+
const componentName$7 = getComponentName('switch-toggle');
|
2334
2278
|
|
2335
|
-
let overrides$
|
2279
|
+
let overrides$2 = ``;
|
2336
2280
|
|
2337
2281
|
const SwitchToggle = compose(
|
2338
2282
|
createStyleMixin({
|
@@ -2348,13 +2292,13 @@ const SwitchToggle = compose(
|
|
2348
2292
|
createProxy({
|
2349
2293
|
slots: [],
|
2350
2294
|
wrappedEleName: 'vaadin-checkbox',
|
2351
|
-
style: () => overrides$
|
2295
|
+
style: () => overrides$2,
|
2352
2296
|
excludeAttrsSync: ['tabindex'],
|
2353
|
-
componentName: componentName$
|
2297
|
+
componentName: componentName$7
|
2354
2298
|
})
|
2355
2299
|
);
|
2356
2300
|
|
2357
|
-
overrides$
|
2301
|
+
overrides$2 = `
|
2358
2302
|
:host {
|
2359
2303
|
display: inline-block;
|
2360
2304
|
}
|
@@ -2408,9 +2352,9 @@ overrides$1 = `
|
|
2408
2352
|
}
|
2409
2353
|
`;
|
2410
2354
|
|
2411
|
-
customElements.define(componentName$
|
2355
|
+
customElements.define(componentName$7, SwitchToggle);
|
2412
2356
|
|
2413
|
-
const componentName$
|
2357
|
+
const componentName$6 = getComponentName('text-area');
|
2414
2358
|
|
2415
2359
|
const selectors = {
|
2416
2360
|
label: '::part(label)',
|
@@ -2419,7 +2363,7 @@ const selectors = {
|
|
2419
2363
|
host: () => ':host'
|
2420
2364
|
};
|
2421
2365
|
|
2422
|
-
let overrides = ``;
|
2366
|
+
let overrides$1 = ``;
|
2423
2367
|
|
2424
2368
|
const TextArea = compose(
|
2425
2369
|
createStyleMixin({
|
@@ -2446,13 +2390,13 @@ const TextArea = compose(
|
|
2446
2390
|
createProxy({
|
2447
2391
|
slots: [],
|
2448
2392
|
wrappedEleName: 'vaadin-text-area',
|
2449
|
-
style: () => overrides,
|
2393
|
+
style: () => overrides$1,
|
2450
2394
|
excludeAttrsSync: ['tabindex'],
|
2451
|
-
componentName: componentName$
|
2395
|
+
componentName: componentName$6
|
2452
2396
|
})
|
2453
2397
|
);
|
2454
2398
|
|
2455
|
-
overrides = `
|
2399
|
+
overrides$1 = `
|
2456
2400
|
:host {
|
2457
2401
|
display: inline-block;
|
2458
2402
|
}
|
@@ -2474,13 +2418,13 @@ overrides = `
|
|
2474
2418
|
}
|
2475
2419
|
`;
|
2476
2420
|
|
2477
|
-
customElements.define(componentName$
|
2421
|
+
customElements.define(componentName$6, TextArea);
|
2478
2422
|
|
2479
2423
|
const observedAttributes = ['src', 'alt'];
|
2480
2424
|
|
2481
|
-
const componentName$
|
2425
|
+
const componentName$5 = getComponentName('image');
|
2482
2426
|
|
2483
|
-
const BaseClass = createBaseClass({ componentName: componentName$
|
2427
|
+
const BaseClass = createBaseClass({ componentName: componentName$5, baseSelector: ':host > img' });
|
2484
2428
|
class RawImage extends BaseClass {
|
2485
2429
|
static get observedAttributes() {
|
2486
2430
|
return observedAttributes.concat(BaseClass.observedAttributes || []);
|
@@ -2520,9 +2464,9 @@ const Image = compose(
|
|
2520
2464
|
draggableMixin,
|
2521
2465
|
)(RawImage);
|
2522
2466
|
|
2523
|
-
customElements.define(componentName$
|
2467
|
+
customElements.define(componentName$5, Image);
|
2524
2468
|
|
2525
|
-
const componentName$
|
2469
|
+
const componentName$4 = getComponentName('combo-box');
|
2526
2470
|
|
2527
2471
|
|
2528
2472
|
const ComboBoxMixin = (superclass) => class ComboBoxMixinClass extends superclass {
|
@@ -2575,7 +2519,7 @@ const ComboBoxMixin = (superclass) => class ComboBoxMixinClass extends superclas
|
|
2575
2519
|
}
|
2576
2520
|
};
|
2577
2521
|
|
2578
|
-
const { host, input, placeholder, toggle } = {
|
2522
|
+
const { host: host$2, input, placeholder, toggle } = {
|
2579
2523
|
host: { selector: () => ':host' },
|
2580
2524
|
input: { selector: '::part(input-field)' },
|
2581
2525
|
placeholder: { selector: '> input:placeholder-shown' },
|
@@ -2590,7 +2534,7 @@ const { host, input, placeholder, toggle } = {
|
|
2590
2534
|
const ComboBox = compose(
|
2591
2535
|
createStyleMixin({
|
2592
2536
|
mappings: {
|
2593
|
-
width: host,
|
2537
|
+
width: host$2,
|
2594
2538
|
height: input,
|
2595
2539
|
padding: input,
|
2596
2540
|
|
@@ -2605,7 +2549,7 @@ const ComboBox = compose(
|
|
2605
2549
|
color: input,
|
2606
2550
|
|
2607
2551
|
// we apply font-size also on the host so we can set its width with em
|
2608
|
-
fontSize: [{}, host],
|
2552
|
+
fontSize: [{}, host$2],
|
2609
2553
|
|
2610
2554
|
placeholderColor: { ...placeholder, property: 'color' },
|
2611
2555
|
|
@@ -2665,12 +2609,12 @@ const ComboBox = compose(
|
|
2665
2609
|
// and reset items to an empty array, and opening the list box with no items
|
2666
2610
|
// to display.
|
2667
2611
|
excludeAttrsSync: ['tabindex', 'size'],
|
2668
|
-
componentName: componentName$
|
2612
|
+
componentName: componentName$4,
|
2669
2613
|
includeForwardProps: ['items', 'renderer']
|
2670
2614
|
})
|
2671
2615
|
);
|
2672
2616
|
|
2673
|
-
customElements.define(componentName$
|
2617
|
+
customElements.define(componentName$4, ComboBox);
|
2674
2618
|
|
2675
2619
|
var CountryCodes = [
|
2676
2620
|
{
|
@@ -3909,9 +3853,9 @@ const comboBoxItem = ({ code, dialCode, name: country }) => (`
|
|
3909
3853
|
</div>
|
3910
3854
|
`);
|
3911
3855
|
|
3912
|
-
const componentName$
|
3856
|
+
const componentName$3 = getComponentName('phone-field-internal');
|
3913
3857
|
|
3914
|
-
const commonAttrs = [
|
3858
|
+
const commonAttrs$1 = [
|
3915
3859
|
'disabled',
|
3916
3860
|
'size',
|
3917
3861
|
'bordered',
|
@@ -3924,15 +3868,15 @@ const mapAttrs = {
|
|
3924
3868
|
'phone-input-placeholder': 'placeholder',
|
3925
3869
|
};
|
3926
3870
|
|
3927
|
-
const inputRelatedAttrs = [].concat(commonAttrs, countryAttrs, phoneAttrs);
|
3871
|
+
const inputRelatedAttrs$1 = [].concat(commonAttrs$1, countryAttrs, phoneAttrs);
|
3928
3872
|
|
3929
|
-
const BaseInputClass = createBaseInputClass({ componentName: componentName$
|
3873
|
+
const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$3, baseSelector: 'div' });
|
3930
3874
|
|
3931
|
-
class PhoneFieldInternal extends BaseInputClass {
|
3875
|
+
class PhoneFieldInternal extends BaseInputClass$1 {
|
3932
3876
|
static get observedAttributes() {
|
3933
3877
|
return [].concat(
|
3934
|
-
BaseInputClass.observedAttributes || [],
|
3935
|
-
inputRelatedAttrs,
|
3878
|
+
BaseInputClass$1.observedAttributes || [],
|
3879
|
+
inputRelatedAttrs$1,
|
3936
3880
|
);
|
3937
3881
|
}
|
3938
3882
|
|
@@ -4068,7 +4012,7 @@ class PhoneFieldInternal extends BaseInputClass {
|
|
4068
4012
|
});
|
4069
4013
|
|
4070
4014
|
this.handleFocusEventsDispatching(this.inputs);
|
4071
|
-
this.handleInputEventDispatching(
|
4015
|
+
this.handleInputEventDispatching();
|
4072
4016
|
}
|
4073
4017
|
|
4074
4018
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
@@ -4078,10 +4022,10 @@ class PhoneFieldInternal extends BaseInputClass {
|
|
4078
4022
|
if (attrName === 'default-code' && newValue) {
|
4079
4023
|
this.handleDefaultCountryCode(newValue);
|
4080
4024
|
}
|
4081
|
-
else if (inputRelatedAttrs.includes(attrName)) {
|
4025
|
+
else if (inputRelatedAttrs$1.includes(attrName)) {
|
4082
4026
|
const attr = mapAttrs[attrName] || attrName;
|
4083
4027
|
|
4084
|
-
if (commonAttrs.includes(attrName)) {
|
4028
|
+
if (commonAttrs$1.includes(attrName)) {
|
4085
4029
|
this.inputs.forEach(input => input.setAttribute(attr, newValue));
|
4086
4030
|
}
|
4087
4031
|
else if (countryAttrs.includes(attrName)) {
|
@@ -4095,14 +4039,14 @@ class PhoneFieldInternal extends BaseInputClass {
|
|
4095
4039
|
}
|
4096
4040
|
}
|
4097
4041
|
|
4098
|
-
customElements.define(componentName$
|
4042
|
+
customElements.define(componentName$3, PhoneFieldInternal);
|
4099
4043
|
|
4100
4044
|
const textVars = TextField.cssVarList;
|
4101
4045
|
const comboVars = ComboBox.cssVarList;
|
4102
4046
|
|
4103
|
-
const componentName = getComponentName('phone-field');
|
4047
|
+
const componentName$2 = getComponentName('phone-field');
|
4104
4048
|
|
4105
|
-
const customMixin = (superclass) =>
|
4049
|
+
const customMixin$1 = (superclass) =>
|
4106
4050
|
class PhoneFieldClass extends superclass {
|
4107
4051
|
constructor() {
|
4108
4052
|
super();
|
@@ -4114,15 +4058,15 @@ const customMixin = (superclass) =>
|
|
4114
4058
|
const template = document.createElement('template');
|
4115
4059
|
|
4116
4060
|
template.innerHTML = `
|
4117
|
-
<${componentName$
|
4061
|
+
<${componentName$3}
|
4118
4062
|
tabindex="-1"
|
4119
4063
|
slot="input"
|
4120
|
-
></${componentName$
|
4064
|
+
></${componentName$3}>
|
4121
4065
|
`;
|
4122
4066
|
|
4123
4067
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
4124
4068
|
|
4125
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
4069
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$3);
|
4126
4070
|
|
4127
4071
|
forwardAttrs(this.shadowRoot.host, this.inputElement, {
|
4128
4072
|
includeAttrs: [
|
@@ -4140,6 +4084,7 @@ const customMixin = (superclass) =>
|
|
4140
4084
|
};
|
4141
4085
|
|
4142
4086
|
const {
|
4087
|
+
host: host$1,
|
4143
4088
|
inputWrapper,
|
4144
4089
|
countryCodeInput,
|
4145
4090
|
phoneInput,
|
@@ -4147,6 +4092,7 @@ const {
|
|
4147
4092
|
requiredIndicator,
|
4148
4093
|
separator
|
4149
4094
|
} = {
|
4095
|
+
host: { selector: () => ':host' },
|
4150
4096
|
inputWrapper: { selector: '::part(input-field)' },
|
4151
4097
|
phoneInput: { selector: () => 'descope-text-field' },
|
4152
4098
|
countryCodeInput: { selector: () => 'descope-combo-box' },
|
@@ -4158,7 +4104,7 @@ const {
|
|
4158
4104
|
const PhoneField = compose(
|
4159
4105
|
createStyleMixin({
|
4160
4106
|
mappings: {
|
4161
|
-
componentWidth: {
|
4107
|
+
componentWidth: { ...host$1, property: 'width' },
|
4162
4108
|
|
4163
4109
|
wrapperBorderStyle: [
|
4164
4110
|
{ ...inputWrapper, property: 'border-style' },
|
@@ -4199,7 +4145,7 @@ const PhoneField = compose(
|
|
4199
4145
|
}),
|
4200
4146
|
draggableMixin,
|
4201
4147
|
proxyInputMixin,
|
4202
|
-
customMixin,
|
4148
|
+
customMixin$1,
|
4203
4149
|
)(
|
4204
4150
|
createProxy({
|
4205
4151
|
slots: [],
|
@@ -4258,11 +4204,317 @@ const PhoneField = compose(
|
|
4258
4204
|
}
|
4259
4205
|
`,
|
4260
4206
|
excludeAttrsSync: ['tabindex'],
|
4207
|
+
componentName: componentName$2
|
4208
|
+
})
|
4209
|
+
);
|
4210
|
+
|
4211
|
+
customElements.define(componentName$2, PhoneField);
|
4212
|
+
|
4213
|
+
const componentName$1 = getComponentName('new-password-internal');
|
4214
|
+
|
4215
|
+
const componentName = getComponentName('new-password');
|
4216
|
+
|
4217
|
+
const customMixin = (superclass) =>
|
4218
|
+
class NewPasswordMixinClass extends superclass {
|
4219
|
+
constructor() {
|
4220
|
+
super();
|
4221
|
+
}
|
4222
|
+
|
4223
|
+
init() {
|
4224
|
+
super.init?.();
|
4225
|
+
|
4226
|
+
const template = document.createElement('template');
|
4227
|
+
|
4228
|
+
template.innerHTML = `
|
4229
|
+
<${componentName$1}
|
4230
|
+
name="new-password"
|
4231
|
+
tabindex="-1"
|
4232
|
+
slot="input"
|
4233
|
+
></${componentName$1}>
|
4234
|
+
`;
|
4235
|
+
|
4236
|
+
this.baseElement.appendChild(template.content.cloneNode(true));
|
4237
|
+
|
4238
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$1);
|
4239
|
+
|
4240
|
+
forwardAttrs(this, this.inputElement, {
|
4241
|
+
includeAttrs: [
|
4242
|
+
'password-label',
|
4243
|
+
'password-placeholder',
|
4244
|
+
'confirm-label',
|
4245
|
+
'confirm-placeholder',
|
4246
|
+
'full-width',
|
4247
|
+
'size',
|
4248
|
+
'bordered',
|
4249
|
+
'label',
|
4250
|
+
'has-confirm',
|
4251
|
+
'invalid',
|
4252
|
+
]
|
4253
|
+
});
|
4254
|
+
}
|
4255
|
+
};
|
4256
|
+
|
4257
|
+
const { host, internalInputsWrapper } = {
|
4258
|
+
host: { selector: () => ':host' },
|
4259
|
+
internalInputsWrapper: { selector: 'descope-new-password-internal .wrapper' }
|
4260
|
+
};
|
4261
|
+
const NewPassword = compose(
|
4262
|
+
createStyleMixin({
|
4263
|
+
mappings: {
|
4264
|
+
componentWidth: { ...host, property: 'width' },
|
4265
|
+
requiredContent: { ...host, property: 'content' },
|
4266
|
+
inputLabelTextColor: {
|
4267
|
+
selector: PasswordField.componentName,
|
4268
|
+
property: PasswordField.cssVarList.labelTextColor
|
4269
|
+
},
|
4270
|
+
inputTextColor: {
|
4271
|
+
selector: PasswordField.componentName,
|
4272
|
+
property: PasswordField.cssVarList.inputTextColor
|
4273
|
+
},
|
4274
|
+
inputsGap: {...internalInputsWrapper, property: 'gap'}
|
4275
|
+
}
|
4276
|
+
}),
|
4277
|
+
draggableMixin,
|
4278
|
+
proxyInputMixin,
|
4279
|
+
customMixin,
|
4280
|
+
)(
|
4281
|
+
createProxy({
|
4282
|
+
slots: [],
|
4283
|
+
wrappedEleName: 'vaadin-text-field',
|
4284
|
+
style: () => overrides,
|
4285
|
+
excludeAttrsSync: ['tabindex'],
|
4261
4286
|
componentName
|
4262
4287
|
})
|
4263
4288
|
);
|
4264
4289
|
|
4265
|
-
|
4290
|
+
const overrides = `
|
4291
|
+
:host {
|
4292
|
+
--vaadin-field-default-width: auto;
|
4293
|
+
display: inline-block;
|
4294
|
+
}
|
4295
|
+
vaadin-text-field {
|
4296
|
+
padding: 0;
|
4297
|
+
width: 100%;
|
4298
|
+
height: 100%;
|
4299
|
+
}
|
4300
|
+
vaadin-text-field::part(input-field) {
|
4301
|
+
min-height: 0;
|
4302
|
+
background: transparent;
|
4303
|
+
overflow: hidden;
|
4304
|
+
box-shadow: none;
|
4305
|
+
}
|
4306
|
+
vaadin-text-field::part(input-field)::after {
|
4307
|
+
background: transparent;
|
4308
|
+
opacity: 0;
|
4309
|
+
}
|
4310
|
+
descope-new-password-internal {
|
4311
|
+
-webkit-mask-image: none;
|
4312
|
+
padding: 0;
|
4313
|
+
min-height: 0;
|
4314
|
+
width: 100%;
|
4315
|
+
height: 100%;
|
4316
|
+
}
|
4317
|
+
descope-new-password-internal > .wrapper {
|
4318
|
+
width: 100%;
|
4319
|
+
height: 100%;
|
4320
|
+
display: flex;
|
4321
|
+
flex-direction: column;
|
4322
|
+
}
|
4323
|
+
descope-password-field {
|
4324
|
+
display: block;
|
4325
|
+
width: 100%;
|
4326
|
+
}
|
4327
|
+
descope-new-password-internal vaadin-password-field::before {
|
4328
|
+
height: initial;
|
4329
|
+
}
|
4330
|
+
`;
|
4331
|
+
|
4332
|
+
const passwordAttrPrefixRegex = /^password-/;
|
4333
|
+
const confirmAttrPrefixRegex = /^confirm-/;
|
4334
|
+
|
4335
|
+
const removeAttrPrefix = (attr, prefix) => attr.replace(prefix, '');
|
4336
|
+
|
4337
|
+
const passwordInputAttrs = ['password-label', 'password-placeholder'];
|
4338
|
+
const confirmInputAttrs = ['confirm-label', 'confirm-placeholder'];
|
4339
|
+
const commonAttrs = [
|
4340
|
+
'disabled',
|
4341
|
+
'bordered',
|
4342
|
+
'size',
|
4343
|
+
'full-width',
|
4344
|
+
'maxlength',
|
4345
|
+
'invalid',
|
4346
|
+
];
|
4347
|
+
|
4348
|
+
const inputRelatedAttrs = [].concat(commonAttrs, passwordInputAttrs, confirmInputAttrs);
|
4349
|
+
|
4350
|
+
const BaseInputClass = createBaseInputClass({ componentName: componentName$1, baseSelector: 'div' });
|
4351
|
+
|
4352
|
+
class NewPasswordInternal extends BaseInputClass {
|
4353
|
+
static get observedAttributes() {
|
4354
|
+
return ['has-confirm'].concat(
|
4355
|
+
BaseInputClass.observedAttributes || [],
|
4356
|
+
inputRelatedAttrs,
|
4357
|
+
);
|
4358
|
+
}
|
4359
|
+
|
4360
|
+
constructor() {
|
4361
|
+
super();
|
4362
|
+
|
4363
|
+
this.innerHTML = `
|
4364
|
+
<div class="wrapper"></div>
|
4365
|
+
`;
|
4366
|
+
|
4367
|
+
this.wrapperEle = this.querySelector('.wrapper');
|
4368
|
+
}
|
4369
|
+
|
4370
|
+
get value() {
|
4371
|
+
return this.passwordInput?.value || '';
|
4372
|
+
}
|
4373
|
+
|
4374
|
+
set value(val) {
|
4375
|
+
if (val === this.value) return;
|
4376
|
+
this.value = val;
|
4377
|
+
}
|
4378
|
+
|
4379
|
+
get hasConfirm() {
|
4380
|
+
return this.getAttribute('has-confirm') === 'true';
|
4381
|
+
}
|
4382
|
+
|
4383
|
+
getValidity() {
|
4384
|
+
if (this.isRequired && !this.value) {
|
4385
|
+
return { valueMissing: true };
|
4386
|
+
}
|
4387
|
+
if (this.hasConfirm && this.confirmInput && this.value !== this.confirmInput.value) {
|
4388
|
+
return { patternMismatch: true };
|
4389
|
+
}
|
4390
|
+
|
4391
|
+
const min = this.getAttribute('minlength');
|
4392
|
+
const minVal = parseInt(min, 10) || 0;
|
4393
|
+
const minValid = this.value.length >= minVal;
|
4394
|
+
if (!minValid) {
|
4395
|
+
return { tooShort: true }
|
4396
|
+
}
|
4397
|
+
|
4398
|
+
return {}
|
4399
|
+
};
|
4400
|
+
|
4401
|
+
init() {
|
4402
|
+
this.addEventListener('focus', (e) => {
|
4403
|
+
// we want to ignore focus events we are dispatching
|
4404
|
+
if (e.isTrusted) {
|
4405
|
+
this.passwordInput.focus();
|
4406
|
+
}
|
4407
|
+
});
|
4408
|
+
|
4409
|
+
super.init();
|
4410
|
+
this.renderInputs(this.hasConfirm);
|
4411
|
+
}
|
4412
|
+
|
4413
|
+
renderInputs(shouldRenderConfirm) {
|
4414
|
+
let template = `<descope-password-field data-id="password"></descope-password-field>`;
|
4415
|
+
|
4416
|
+
if (shouldRenderConfirm) {
|
4417
|
+
template += `<descope-password-field data-id="confirm"></descope-password-field>`;
|
4418
|
+
}
|
4419
|
+
|
4420
|
+
this.wrapperEle.innerHTML = template;
|
4421
|
+
|
4422
|
+
this.passwordInput = this.querySelector('[data-id="password"]');
|
4423
|
+
this.confirmInput = this.querySelector('[data-id="confirm"]');
|
4424
|
+
|
4425
|
+
this.inputs = [this.passwordInput, this.confirmInput];
|
4426
|
+
|
4427
|
+
this.initInputs();
|
4428
|
+
|
4429
|
+
// we are calling attributeChangedCallback with all the input related attributes
|
4430
|
+
// in order to set it on the newly generated input
|
4431
|
+
[...passwordInputAttrs, ...confirmInputAttrs, ...commonAttrs].forEach(attr => {
|
4432
|
+
this.attributeChangedCallback(attr, null, this.getAttribute(attr));
|
4433
|
+
});
|
4434
|
+
}
|
4435
|
+
|
4436
|
+
// the inputs are not required but we still want it to have a required
|
4437
|
+
// indicator in case the root component is required
|
4438
|
+
handleIndicatorStyle() {
|
4439
|
+
for (const input of this.inputs) {
|
4440
|
+
const styleTag = document.createElement('style');
|
4441
|
+
styleTag.innerHTML = `
|
4442
|
+
:host::part(required-indicator)::after {
|
4443
|
+
content: var(${NewPassword.cssVarList.requiredContent});
|
4444
|
+
}
|
4445
|
+
`;
|
4446
|
+
input?.shadowRoot.appendChild(styleTag);
|
4447
|
+
}
|
4448
|
+
}
|
4449
|
+
|
4450
|
+
get isInvalid() {
|
4451
|
+
return this.hasAttribute('invalid') && this.getAttribute('invalid') !== 'false'
|
4452
|
+
}
|
4453
|
+
|
4454
|
+
// for some reason, Vaadin is removing the invalid attribute on several events,
|
4455
|
+
// e.g. focus, input, etc..., so we need to make sure the inputs will stay invalid
|
4456
|
+
// if the root component is invalid
|
4457
|
+
handleInputsInvalidAttribute() {
|
4458
|
+
this.inputs.forEach(input => {
|
4459
|
+
input && observeAttributes(input, (changedAttributes) => {
|
4460
|
+
if (changedAttributes.includes('invalid')) {
|
4461
|
+
const inputInvalidValue = input.getAttribute('invalid');
|
4462
|
+
const rootInvalidValue = this.getAttribute('invalid');
|
4463
|
+
|
4464
|
+
if (this.isInvalid && rootInvalidValue !== inputInvalidValue) {
|
4465
|
+
input.setAttribute('invalid', 'true');
|
4466
|
+
}
|
4467
|
+
}
|
4468
|
+
}, {});
|
4469
|
+
});
|
4470
|
+
}
|
4471
|
+
|
4472
|
+
initInputs() {
|
4473
|
+
this.handleIndicatorStyle();
|
4474
|
+
this.handleInputsInvalidAttribute();
|
4475
|
+
this.handleFocusEventsDispatching(this.inputs);
|
4476
|
+
}
|
4477
|
+
|
4478
|
+
toggleBooleanAttribute(ele, name, value) {
|
4479
|
+
value === null ?
|
4480
|
+
ele?.removeAttribute(name) :
|
4481
|
+
ele?.setAttribute(name, value);
|
4482
|
+
}
|
4483
|
+
|
4484
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
4485
|
+
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
4486
|
+
|
4487
|
+
if (oldValue !== newValue) {
|
4488
|
+
if (attrName === 'has-confirm') {
|
4489
|
+
this.renderInputs(newValue !== null && newValue !== 'false');
|
4490
|
+
}
|
4491
|
+
else if (commonAttrs.includes(attrName)) {
|
4492
|
+
this.inputs.forEach(
|
4493
|
+
(input) => this.toggleBooleanAttribute(input, attrName, newValue)
|
4494
|
+
);
|
4495
|
+
}
|
4496
|
+
else if (passwordInputAttrs.includes(attrName)) {
|
4497
|
+
this.toggleBooleanAttribute(
|
4498
|
+
this.passwordInput,
|
4499
|
+
removeAttrPrefix(attrName, passwordAttrPrefixRegex),
|
4500
|
+
newValue
|
4501
|
+
);
|
4502
|
+
}
|
4503
|
+
else if (confirmInputAttrs.includes(attrName)) {
|
4504
|
+
this.toggleBooleanAttribute(
|
4505
|
+
this.confirmInput,
|
4506
|
+
removeAttrPrefix(attrName, confirmAttrPrefixRegex),
|
4507
|
+
newValue
|
4508
|
+
);
|
4509
|
+
|
4510
|
+
}
|
4511
|
+
}
|
4512
|
+
}
|
4513
|
+
}
|
4514
|
+
|
4515
|
+
customElements.define(componentName$1, NewPasswordInternal);
|
4516
|
+
|
4517
|
+
customElements.define(componentName, NewPassword);
|
4266
4518
|
|
4267
4519
|
const getVarName = (path) => getCssVarName(DESCOPE_PREFIX, ...path);
|
4268
4520
|
|
@@ -4535,143 +4787,143 @@ var globals = {
|
|
4535
4787
|
fonts
|
4536
4788
|
};
|
4537
4789
|
|
4538
|
-
const globalRefs$
|
4539
|
-
const vars$
|
4790
|
+
const globalRefs$c = getThemeRefs(globals);
|
4791
|
+
const vars$g = Button.cssVarList;
|
4540
4792
|
|
4541
4793
|
const mode = {
|
4542
|
-
primary: globalRefs$
|
4543
|
-
secondary: globalRefs$
|
4544
|
-
success: globalRefs$
|
4545
|
-
error: globalRefs$
|
4546
|
-
surface: globalRefs$
|
4794
|
+
primary: globalRefs$c.colors.primary,
|
4795
|
+
secondary: globalRefs$c.colors.secondary,
|
4796
|
+
success: globalRefs$c.colors.success,
|
4797
|
+
error: globalRefs$c.colors.error,
|
4798
|
+
surface: globalRefs$c.colors.surface
|
4547
4799
|
};
|
4548
4800
|
|
4549
|
-
const [helperTheme$2, helperRefs$2] = createHelperVars({ mode }, componentName$
|
4801
|
+
const [helperTheme$2, helperRefs$2] = createHelperVars({ mode }, componentName$n);
|
4550
4802
|
|
4551
4803
|
const button = {
|
4552
4804
|
...helperTheme$2,
|
4553
|
-
[vars$
|
4805
|
+
[vars$g.width]: 'fit-content',
|
4554
4806
|
size: {
|
4555
4807
|
xs: {
|
4556
|
-
[vars$
|
4557
|
-
[vars$
|
4558
|
-
[vars$
|
4808
|
+
[vars$g.height]: '10px',
|
4809
|
+
[vars$g.fontSize]: '10px',
|
4810
|
+
[vars$g.padding]: `0 ${globalRefs$c.spacing.xs}`
|
4559
4811
|
},
|
4560
4812
|
sm: {
|
4561
|
-
[vars$
|
4562
|
-
[vars$
|
4563
|
-
[vars$
|
4813
|
+
[vars$g.height]: '20px',
|
4814
|
+
[vars$g.fontSize]: '10px',
|
4815
|
+
[vars$g.padding]: `0 ${globalRefs$c.spacing.sm}`
|
4564
4816
|
},
|
4565
4817
|
md: {
|
4566
|
-
[vars$
|
4567
|
-
[vars$
|
4568
|
-
[vars$
|
4818
|
+
[vars$g.height]: '30px',
|
4819
|
+
[vars$g.fontSize]: '14px',
|
4820
|
+
[vars$g.padding]: `0 ${globalRefs$c.spacing.md}`
|
4569
4821
|
},
|
4570
4822
|
lg: {
|
4571
|
-
[vars$
|
4572
|
-
[vars$
|
4573
|
-
[vars$
|
4823
|
+
[vars$g.height]: '40px',
|
4824
|
+
[vars$g.fontSize]: '20px',
|
4825
|
+
[vars$g.padding]: `0 ${globalRefs$c.spacing.lg}`
|
4574
4826
|
},
|
4575
4827
|
xl: {
|
4576
|
-
[vars$
|
4577
|
-
[vars$
|
4578
|
-
[vars$
|
4828
|
+
[vars$g.height]: '50px',
|
4829
|
+
[vars$g.fontSize]: '25px',
|
4830
|
+
[vars$g.padding]: `0 ${globalRefs$c.spacing.xl}`
|
4579
4831
|
}
|
4580
4832
|
},
|
4581
4833
|
|
4582
|
-
[vars$
|
4583
|
-
[vars$
|
4584
|
-
[vars$
|
4585
|
-
[vars$
|
4586
|
-
[vars$
|
4834
|
+
[vars$g.borderRadius]: globalRefs$c.radius.lg,
|
4835
|
+
[vars$g.cursor]: 'pointer',
|
4836
|
+
[vars$g.borderWidth]: '2px',
|
4837
|
+
[vars$g.borderStyle]: 'solid',
|
4838
|
+
[vars$g.borderColor]: 'transparent',
|
4587
4839
|
|
4588
4840
|
_fullWidth: {
|
4589
|
-
[vars$
|
4841
|
+
[vars$g.width]: '100%'
|
4590
4842
|
},
|
4591
4843
|
_loading: {
|
4592
|
-
[vars$
|
4844
|
+
[vars$g.cursor]: 'wait'
|
4593
4845
|
},
|
4594
4846
|
|
4595
4847
|
variant: {
|
4596
4848
|
contained: {
|
4597
|
-
[vars$
|
4598
|
-
[vars$
|
4849
|
+
[vars$g.color]: helperRefs$2.contrast,
|
4850
|
+
[vars$g.backgroundColor]: helperRefs$2.main,
|
4599
4851
|
_hover: {
|
4600
|
-
[vars$
|
4852
|
+
[vars$g.backgroundColor]: helperRefs$2.dark
|
4601
4853
|
},
|
4602
4854
|
_loading: {
|
4603
|
-
[vars$
|
4855
|
+
[vars$g.backgroundColor]: helperRefs$2.main
|
4604
4856
|
}
|
4605
4857
|
},
|
4606
4858
|
outline: {
|
4607
|
-
[vars$
|
4608
|
-
[vars$
|
4859
|
+
[vars$g.color]: helperRefs$2.main,
|
4860
|
+
[vars$g.borderColor]: helperRefs$2.main,
|
4609
4861
|
_hover: {
|
4610
|
-
[vars$
|
4611
|
-
[vars$
|
4862
|
+
[vars$g.color]: helperRefs$2.dark,
|
4863
|
+
[vars$g.borderColor]: helperRefs$2.dark,
|
4612
4864
|
_error: {
|
4613
|
-
[vars$
|
4865
|
+
[vars$g.color]: helperRefs$2.error
|
4614
4866
|
}
|
4615
4867
|
}
|
4616
4868
|
},
|
4617
4869
|
link: {
|
4618
|
-
[vars$
|
4619
|
-
[vars$
|
4870
|
+
[vars$g.color]: helperRefs$2.main,
|
4871
|
+
[vars$g.lineHeight]: helperRefs$2.height,
|
4620
4872
|
_hover: {
|
4621
|
-
[vars$
|
4622
|
-
[vars$
|
4873
|
+
[vars$g.color]: helperRefs$2.main,
|
4874
|
+
[vars$g.textDecoration]: 'underline'
|
4623
4875
|
}
|
4624
4876
|
}
|
4625
4877
|
}
|
4626
4878
|
};
|
4627
4879
|
|
4628
|
-
const globalRefs$
|
4880
|
+
const globalRefs$b = getThemeRefs(globals);
|
4629
4881
|
|
4630
|
-
const vars$
|
4882
|
+
const vars$f = TextField.cssVarList;
|
4631
4883
|
|
4632
4884
|
const textField = (vars) => ({
|
4633
4885
|
size: {
|
4634
4886
|
xs: {
|
4635
4887
|
[vars.height]: '14px',
|
4636
4888
|
[vars.fontSize]: '8px',
|
4637
|
-
[vars.padding]: `0 ${globalRefs$
|
4889
|
+
[vars.padding]: `0 ${globalRefs$b.spacing.xs}`
|
4638
4890
|
},
|
4639
4891
|
sm: {
|
4640
4892
|
[vars.height]: '20px',
|
4641
4893
|
[vars.fontSize]: '10px',
|
4642
|
-
[vars.padding]: `0 ${globalRefs$
|
4894
|
+
[vars.padding]: `0 ${globalRefs$b.spacing.sm}`
|
4643
4895
|
},
|
4644
4896
|
md: {
|
4645
4897
|
[vars.height]: '30px',
|
4646
4898
|
[vars.fontSize]: '14px',
|
4647
|
-
[vars.padding]: `0 ${globalRefs$
|
4899
|
+
[vars.padding]: `0 ${globalRefs$b.spacing.md}`
|
4648
4900
|
},
|
4649
4901
|
lg: {
|
4650
4902
|
[vars.height]: '40px',
|
4651
4903
|
[vars.fontSize]: '20px',
|
4652
|
-
[vars.padding]: `0 ${globalRefs$
|
4904
|
+
[vars.padding]: `0 ${globalRefs$b.spacing.lg}`
|
4653
4905
|
},
|
4654
4906
|
xl: {
|
4655
4907
|
[vars.height]: '50px',
|
4656
4908
|
[vars.fontSize]: '25px',
|
4657
|
-
[vars.padding]: `0 ${globalRefs$
|
4909
|
+
[vars.padding]: `0 ${globalRefs$b.spacing.xl}`
|
4658
4910
|
}
|
4659
4911
|
},
|
4660
4912
|
|
4661
|
-
[vars.color]: globalRefs$
|
4662
|
-
[vars.placeholderColor]: globalRefs$
|
4913
|
+
[vars.color]: globalRefs$b.colors.surface.contrast,
|
4914
|
+
[vars.placeholderColor]: globalRefs$b.colors.surface.main,
|
4663
4915
|
|
4664
|
-
[vars.backgroundColor]: globalRefs$
|
4916
|
+
[vars.backgroundColor]: globalRefs$b.colors.surface.light,
|
4665
4917
|
|
4666
4918
|
[vars.borderWidth]: '1px',
|
4667
4919
|
[vars.borderStyle]: 'solid',
|
4668
4920
|
[vars.borderColor]: 'transparent',
|
4669
|
-
[vars.borderRadius]: globalRefs$
|
4921
|
+
[vars.borderRadius]: globalRefs$b.radius.sm,
|
4670
4922
|
|
4671
4923
|
_disabled: {
|
4672
|
-
[vars.color]: globalRefs$
|
4673
|
-
[vars.placeholderColor]: globalRefs$
|
4674
|
-
[vars.backgroundColor]: globalRefs$
|
4924
|
+
[vars.color]: globalRefs$b.colors.surface.dark,
|
4925
|
+
[vars.placeholderColor]: globalRefs$b.colors.surface.light,
|
4926
|
+
[vars.backgroundColor]: globalRefs$b.colors.surface.main
|
4675
4927
|
},
|
4676
4928
|
|
4677
4929
|
_fullWidth: {
|
@@ -4681,28 +4933,79 @@ const textField = (vars) => ({
|
|
4681
4933
|
_focused: {
|
4682
4934
|
[vars.outlineWidth]: '2px',
|
4683
4935
|
[vars.outlineStyle]: 'solid',
|
4684
|
-
[vars.outlineColor]: globalRefs$
|
4936
|
+
[vars.outlineColor]: globalRefs$b.colors.surface.main
|
4685
4937
|
},
|
4686
4938
|
|
4687
4939
|
_bordered: {
|
4688
|
-
[vars.borderColor]: globalRefs$
|
4940
|
+
[vars.borderColor]: globalRefs$b.colors.surface.main
|
4689
4941
|
},
|
4690
4942
|
|
4691
4943
|
_invalid: {
|
4692
|
-
[vars.borderColor]: globalRefs$
|
4693
|
-
[vars.color]: globalRefs$
|
4694
|
-
[vars.outlineColor]: globalRefs$
|
4695
|
-
[vars.placeholderColor]: globalRefs$
|
4944
|
+
[vars.borderColor]: globalRefs$b.colors.error.main,
|
4945
|
+
[vars.color]: globalRefs$b.colors.error.main,
|
4946
|
+
[vars.outlineColor]: globalRefs$b.colors.error.light,
|
4947
|
+
[vars.placeholderColor]: globalRefs$b.colors.error.light
|
4696
4948
|
}
|
4697
4949
|
});
|
4698
4950
|
|
4699
|
-
var textField$1 = textField(vars$
|
4951
|
+
var textField$1 = textField(vars$f);
|
4952
|
+
|
4953
|
+
const globalRefs$a = getThemeRefs(globals);
|
4700
4954
|
|
4701
|
-
const vars$
|
4955
|
+
const vars$e = PasswordField.cssVarList;
|
4702
4956
|
|
4703
4957
|
const passwordField = {
|
4704
|
-
|
4705
|
-
[vars$
|
4958
|
+
[vars$e.wrapperBorderStyle]: 'solid',
|
4959
|
+
[vars$e.wrapperBorderWidth]: '1px',
|
4960
|
+
[vars$e.wrapperBorderColor]: 'transparent',
|
4961
|
+
[vars$e.wrapperBorderRadius]: globalRefs$a.radius.sm,
|
4962
|
+
|
4963
|
+
[vars$e.labelTextColor]: globalRefs$a.colors.surface.contrast,
|
4964
|
+
[vars$e.inputTextColor]: globalRefs$a.colors.surface.contrast,
|
4965
|
+
[vars$e.placeholderTextColor]: globalRefs$a.colors.surface.main,
|
4966
|
+
|
4967
|
+
[vars$e.pointerCursor]: 'pointer',
|
4968
|
+
|
4969
|
+
[vars$e.padding]: `0`,
|
4970
|
+
|
4971
|
+
size: {
|
4972
|
+
xs: {
|
4973
|
+
[vars$e.height]: '14px',
|
4974
|
+
[vars$e.fontSize]: '8px',
|
4975
|
+
},
|
4976
|
+
sm: {
|
4977
|
+
[vars$e.height]: '20px',
|
4978
|
+
[vars$e.fontSize]: '10px',
|
4979
|
+
},
|
4980
|
+
md: {
|
4981
|
+
[vars$e.height]: '30px',
|
4982
|
+
[vars$e.fontSize]: '14px',
|
4983
|
+
},
|
4984
|
+
lg: {
|
4985
|
+
[vars$e.height]: '40px',
|
4986
|
+
[vars$e.fontSize]: '20px',
|
4987
|
+
},
|
4988
|
+
xl: {
|
4989
|
+
[vars$e.height]: '50px',
|
4990
|
+
[vars$e.fontSize]: '25px',
|
4991
|
+
}
|
4992
|
+
},
|
4993
|
+
|
4994
|
+
_bordered: {
|
4995
|
+
[vars$e.padding]: `0 0.5em`,
|
4996
|
+
[vars$e.wrapperBorderColor]: globalRefs$a.colors.surface.main
|
4997
|
+
},
|
4998
|
+
|
4999
|
+
_fullWidth: {
|
5000
|
+
[vars$e.width]: '100%'
|
5001
|
+
},
|
5002
|
+
|
5003
|
+
_invalid: {
|
5004
|
+
[vars$e.labelTextColor]: globalRefs$a.colors.error.main,
|
5005
|
+
[vars$e.inputTextColor]: globalRefs$a.colors.error.main,
|
5006
|
+
[vars$e.placeholderTextColor]: globalRefs$a.colors.error.light,
|
5007
|
+
[vars$e.wrapperBorderColor]: globalRefs$a.colors.error.main
|
5008
|
+
},
|
4706
5009
|
};
|
4707
5010
|
|
4708
5011
|
const numberField = {
|
@@ -4713,61 +5016,61 @@ const emailField = {
|
|
4713
5016
|
...textField(EmailField.cssVarList)
|
4714
5017
|
};
|
4715
5018
|
|
4716
|
-
const globalRefs$
|
4717
|
-
const vars$
|
5019
|
+
const globalRefs$9 = getThemeRefs(globals);
|
5020
|
+
const vars$d = TextArea.cssVarList;
|
4718
5021
|
|
4719
5022
|
const textArea = {
|
4720
|
-
[vars$
|
4721
|
-
[vars$
|
4722
|
-
[vars$
|
4723
|
-
[vars$
|
5023
|
+
[vars$d.width]: '100%',
|
5024
|
+
[vars$d.color]: globalRefs$9.colors.primary.main,
|
5025
|
+
[vars$d.backgroundColor]: globalRefs$9.colors.surface.light,
|
5026
|
+
[vars$d.resize]: 'vertical',
|
4724
5027
|
|
4725
|
-
[vars$
|
4726
|
-
[vars$
|
4727
|
-
[vars$
|
4728
|
-
[vars$
|
4729
|
-
[vars$
|
4730
|
-
[vars$
|
5028
|
+
[vars$d.borderRadius]: globalRefs$9.radius.sm,
|
5029
|
+
[vars$d.borderWidth]: '1px',
|
5030
|
+
[vars$d.borderStyle]: 'solid',
|
5031
|
+
[vars$d.borderColor]: 'transparent',
|
5032
|
+
[vars$d.outlineWidth]: '2px',
|
5033
|
+
[vars$d.outlineStyle]: 'solid',
|
4731
5034
|
|
4732
5035
|
|
4733
5036
|
_bordered: {
|
4734
|
-
[vars$
|
5037
|
+
[vars$d.borderColor]: globalRefs$9.colors.surface.main
|
4735
5038
|
},
|
4736
5039
|
|
4737
5040
|
_focused: {
|
4738
|
-
[vars$
|
5041
|
+
[vars$d.outlineColor]: globalRefs$9.colors.surface.main
|
4739
5042
|
},
|
4740
5043
|
|
4741
5044
|
_fullWidth: {
|
4742
|
-
[vars$
|
5045
|
+
[vars$d.width]: '100%'
|
4743
5046
|
},
|
4744
5047
|
|
4745
5048
|
_disabled: {
|
4746
|
-
[vars$
|
5049
|
+
[vars$d.cursor]: 'not-allowed'
|
4747
5050
|
},
|
4748
5051
|
|
4749
5052
|
_invalid: {
|
4750
|
-
[vars$
|
5053
|
+
[vars$d.outlineColor]: globalRefs$9.colors.error.main
|
4751
5054
|
}
|
4752
5055
|
};
|
4753
5056
|
|
4754
|
-
const vars$
|
5057
|
+
const vars$c = Checkbox.cssVarList;
|
4755
5058
|
|
4756
5059
|
const checkbox = {
|
4757
|
-
[vars$
|
4758
|
-
[vars$
|
5060
|
+
[vars$c.cursor]: 'pointer',
|
5061
|
+
[vars$c.width]: 'fit-content'
|
4759
5062
|
};
|
4760
5063
|
|
4761
|
-
const vars$
|
5064
|
+
const vars$b = SwitchToggle.cssVarList;
|
4762
5065
|
|
4763
5066
|
const swtichToggle = {
|
4764
|
-
[vars$
|
4765
|
-
[vars$
|
5067
|
+
[vars$b.width]: '70px',
|
5068
|
+
[vars$b.cursor]: [{}, { selector: '> label' }]
|
4766
5069
|
};
|
4767
5070
|
|
4768
|
-
const globalRefs$
|
5071
|
+
const globalRefs$8 = getThemeRefs(globals);
|
4769
5072
|
|
4770
|
-
const vars$
|
5073
|
+
const vars$a = Container.cssVarList;
|
4771
5074
|
|
4772
5075
|
const verticalAlignment = {
|
4773
5076
|
start: { verticalAlignment: 'start' },
|
@@ -4790,31 +5093,31 @@ const [helperTheme$1, helperRefs$1, helperVars] =
|
|
4790
5093
|
|
4791
5094
|
const container = {
|
4792
5095
|
...helperTheme$1,
|
4793
|
-
[vars$
|
5096
|
+
[vars$a.width]: '100%',
|
4794
5097
|
verticalPadding: {
|
4795
|
-
sm: { [vars$
|
4796
|
-
md: { [vars$
|
4797
|
-
lg: { [vars$
|
5098
|
+
sm: { [vars$a.verticalPadding]: '5px' },
|
5099
|
+
md: { [vars$a.verticalPadding]: '10px' },
|
5100
|
+
lg: { [vars$a.verticalPadding]: '20px' },
|
4798
5101
|
},
|
4799
5102
|
horizontalPadding: {
|
4800
|
-
sm: { [vars$
|
4801
|
-
md: { [vars$
|
4802
|
-
lg: { [vars$
|
5103
|
+
sm: { [vars$a.horizontalPadding]: '5px' },
|
5104
|
+
md: { [vars$a.horizontalPadding]: '10px' },
|
5105
|
+
lg: { [vars$a.horizontalPadding]: '20px' },
|
4803
5106
|
},
|
4804
5107
|
direction: {
|
4805
5108
|
row: {
|
4806
|
-
[vars$
|
4807
|
-
[vars$
|
4808
|
-
[vars$
|
5109
|
+
[vars$a.flexDirection]: 'row',
|
5110
|
+
[vars$a.alignItems]: helperRefs$1.verticalAlignment,
|
5111
|
+
[vars$a.justifyContent]: helperRefs$1.horizontalAlignment,
|
4809
5112
|
horizontalAlignment: {
|
4810
5113
|
spaceBetween: { [helperVars.horizontalAlignment]: 'space-between' },
|
4811
5114
|
}
|
4812
5115
|
},
|
4813
5116
|
|
4814
5117
|
column: {
|
4815
|
-
[vars$
|
4816
|
-
[vars$
|
4817
|
-
[vars$
|
5118
|
+
[vars$a.flexDirection]: 'column',
|
5119
|
+
[vars$a.alignItems]: helperRefs$1.horizontalAlignment,
|
5120
|
+
[vars$a.justifyContent]: helperRefs$1.verticalAlignment,
|
4818
5121
|
verticalAlignment: {
|
4819
5122
|
spaceBetween: { [helperVars.verticalAlignment]: 'space-between' }
|
4820
5123
|
}
|
@@ -4823,398 +5126,398 @@ const container = {
|
|
4823
5126
|
|
4824
5127
|
spaceBetween: {
|
4825
5128
|
sm: {
|
4826
|
-
[vars$
|
5129
|
+
[vars$a.gap]: '10px'
|
4827
5130
|
},
|
4828
5131
|
md: {
|
4829
|
-
[vars$
|
5132
|
+
[vars$a.gap]: '20px'
|
4830
5133
|
},
|
4831
5134
|
lg: {
|
4832
|
-
[vars$
|
5135
|
+
[vars$a.gap]: '30px'
|
4833
5136
|
}
|
4834
5137
|
},
|
4835
5138
|
|
4836
5139
|
shadow: {
|
4837
5140
|
sm: {
|
4838
|
-
[vars$
|
5141
|
+
[vars$a.boxShadow]: `${globalRefs$8.shadow.wide.sm} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.sm} ${helperRefs$1.shadowColor}`
|
4839
5142
|
},
|
4840
5143
|
md: {
|
4841
|
-
[vars$
|
5144
|
+
[vars$a.boxShadow]: `${globalRefs$8.shadow.wide.md} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.md} ${helperRefs$1.shadowColor}`
|
4842
5145
|
},
|
4843
5146
|
lg: {
|
4844
|
-
[vars$
|
5147
|
+
[vars$a.boxShadow]: `${globalRefs$8.shadow.wide.lg} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.lg} ${helperRefs$1.shadowColor}`
|
4845
5148
|
},
|
4846
5149
|
xl: {
|
4847
|
-
[vars$
|
5150
|
+
[vars$a.boxShadow]: `${globalRefs$8.shadow.wide.xl} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.xl} ${helperRefs$1.shadowColor}`
|
4848
5151
|
},
|
4849
5152
|
'2xl': {
|
4850
5153
|
[helperVars.shadowColor]: '#00000050',
|
4851
|
-
[vars$
|
5154
|
+
[vars$a.boxShadow]: `${globalRefs$8.shadow.wide['2xl']} ${helperRefs$1.shadowColor}`
|
4852
5155
|
},
|
4853
5156
|
},
|
4854
5157
|
|
4855
5158
|
borderRadius: {
|
4856
5159
|
sm: {
|
4857
|
-
[vars$
|
5160
|
+
[vars$a.borderRadius]: globalRefs$8.radius.sm
|
4858
5161
|
},
|
4859
5162
|
md: {
|
4860
|
-
[vars$
|
5163
|
+
[vars$a.borderRadius]: globalRefs$8.radius.md
|
4861
5164
|
},
|
4862
5165
|
lg: {
|
4863
|
-
[vars$
|
5166
|
+
[vars$a.borderRadius]: globalRefs$8.radius.lg
|
4864
5167
|
},
|
4865
5168
|
}
|
4866
5169
|
};
|
4867
5170
|
|
4868
|
-
const vars$
|
5171
|
+
const vars$9 = Logo.cssVarList;
|
4869
5172
|
|
4870
5173
|
const logo = {
|
4871
|
-
[vars$
|
5174
|
+
[vars$9.fallbackUrl]: 'url(https://content.app.descope.com/assets/flows/noLogoPlaceholder.svg)'
|
4872
5175
|
};
|
4873
5176
|
|
4874
|
-
const globalRefs$
|
5177
|
+
const globalRefs$7 = getThemeRefs(globals);
|
4875
5178
|
|
4876
|
-
const vars$
|
5179
|
+
const vars$8 = Text.cssVarList;
|
4877
5180
|
|
4878
5181
|
const text = {
|
4879
|
-
[vars$
|
4880
|
-
[vars$
|
4881
|
-
[vars$
|
4882
|
-
[vars$
|
5182
|
+
[vars$8.lineHeight]: '1em',
|
5183
|
+
[vars$8.display]: 'inline-block',
|
5184
|
+
[vars$8.textAlign]: 'left',
|
5185
|
+
[vars$8.color]: globalRefs$7.colors.surface.dark,
|
4883
5186
|
variant: {
|
4884
5187
|
h1: {
|
4885
|
-
[vars$
|
4886
|
-
[vars$
|
4887
|
-
[vars$
|
5188
|
+
[vars$8.fontSize]: globalRefs$7.typography.h1.size,
|
5189
|
+
[vars$8.fontWeight]: globalRefs$7.typography.h1.weight,
|
5190
|
+
[vars$8.fontFamily]: globalRefs$7.typography.h1.font
|
4888
5191
|
},
|
4889
5192
|
h2: {
|
4890
|
-
[vars$
|
4891
|
-
[vars$
|
4892
|
-
[vars$
|
5193
|
+
[vars$8.fontSize]: globalRefs$7.typography.h2.size,
|
5194
|
+
[vars$8.fontWeight]: globalRefs$7.typography.h2.weight,
|
5195
|
+
[vars$8.fontFamily]: globalRefs$7.typography.h2.font
|
4893
5196
|
},
|
4894
5197
|
h3: {
|
4895
|
-
[vars$
|
4896
|
-
[vars$
|
4897
|
-
[vars$
|
5198
|
+
[vars$8.fontSize]: globalRefs$7.typography.h3.size,
|
5199
|
+
[vars$8.fontWeight]: globalRefs$7.typography.h3.weight,
|
5200
|
+
[vars$8.fontFamily]: globalRefs$7.typography.h3.font
|
4898
5201
|
},
|
4899
5202
|
subtitle1: {
|
4900
|
-
[vars$
|
4901
|
-
[vars$
|
4902
|
-
[vars$
|
5203
|
+
[vars$8.fontSize]: globalRefs$7.typography.subtitle1.size,
|
5204
|
+
[vars$8.fontWeight]: globalRefs$7.typography.subtitle1.weight,
|
5205
|
+
[vars$8.fontFamily]: globalRefs$7.typography.subtitle1.font
|
4903
5206
|
},
|
4904
5207
|
subtitle2: {
|
4905
|
-
[vars$
|
4906
|
-
[vars$
|
4907
|
-
[vars$
|
5208
|
+
[vars$8.fontSize]: globalRefs$7.typography.subtitle2.size,
|
5209
|
+
[vars$8.fontWeight]: globalRefs$7.typography.subtitle2.weight,
|
5210
|
+
[vars$8.fontFamily]: globalRefs$7.typography.subtitle2.font
|
4908
5211
|
},
|
4909
5212
|
body1: {
|
4910
|
-
[vars$
|
4911
|
-
[vars$
|
4912
|
-
[vars$
|
5213
|
+
[vars$8.fontSize]: globalRefs$7.typography.body1.size,
|
5214
|
+
[vars$8.fontWeight]: globalRefs$7.typography.body1.weight,
|
5215
|
+
[vars$8.fontFamily]: globalRefs$7.typography.body1.font
|
4913
5216
|
},
|
4914
5217
|
body2: {
|
4915
|
-
[vars$
|
4916
|
-
[vars$
|
4917
|
-
[vars$
|
5218
|
+
[vars$8.fontSize]: globalRefs$7.typography.body2.size,
|
5219
|
+
[vars$8.fontWeight]: globalRefs$7.typography.body2.weight,
|
5220
|
+
[vars$8.fontFamily]: globalRefs$7.typography.body2.font
|
4918
5221
|
}
|
4919
5222
|
},
|
4920
5223
|
mode: {
|
4921
5224
|
primary: {
|
4922
|
-
[vars$
|
5225
|
+
[vars$8.color]: globalRefs$7.colors.primary.main
|
4923
5226
|
},
|
4924
5227
|
secondary: {
|
4925
|
-
[vars$
|
5228
|
+
[vars$8.color]: globalRefs$7.colors.secondary.main
|
4926
5229
|
},
|
4927
5230
|
error: {
|
4928
|
-
[vars$
|
5231
|
+
[vars$8.color]: globalRefs$7.colors.error.main
|
4929
5232
|
},
|
4930
5233
|
success: {
|
4931
|
-
[vars$
|
5234
|
+
[vars$8.color]: globalRefs$7.colors.success.main
|
4932
5235
|
}
|
4933
5236
|
},
|
4934
5237
|
textAlign: {
|
4935
|
-
right: { [vars$
|
4936
|
-
left: { [vars$
|
4937
|
-
center: { [vars$
|
5238
|
+
right: { [vars$8.textAlign]: 'right' },
|
5239
|
+
left: { [vars$8.textAlign]: 'left' },
|
5240
|
+
center: { [vars$8.textAlign]: 'center' }
|
4938
5241
|
},
|
4939
5242
|
_fullWidth: {
|
4940
|
-
[vars$
|
4941
|
-
[vars$
|
5243
|
+
[vars$8.width]: '100%',
|
5244
|
+
[vars$8.display]: 'block'
|
4942
5245
|
},
|
4943
5246
|
_italic: {
|
4944
|
-
[vars$
|
5247
|
+
[vars$8.fontStyle]: 'italic'
|
4945
5248
|
},
|
4946
5249
|
_uppercase: {
|
4947
|
-
[vars$
|
5250
|
+
[vars$8.textTransform]: 'uppercase'
|
4948
5251
|
},
|
4949
5252
|
_lowercase: {
|
4950
|
-
[vars$
|
5253
|
+
[vars$8.textTransform]: 'lowercase'
|
4951
5254
|
}
|
4952
5255
|
};
|
4953
5256
|
|
4954
|
-
const globalRefs$
|
4955
|
-
const vars$
|
5257
|
+
const globalRefs$6 = getThemeRefs(globals);
|
5258
|
+
const vars$7 = Link.cssVarList;
|
4956
5259
|
|
4957
5260
|
const link = {
|
4958
|
-
[vars$
|
4959
|
-
[vars$
|
4960
|
-
[vars$
|
4961
|
-
[vars$
|
4962
|
-
[vars$
|
5261
|
+
[vars$7.cursor]: 'pointer',
|
5262
|
+
[vars$7.borderBottomWidth]: '2px',
|
5263
|
+
[vars$7.borderBottomStyle]: 'solid',
|
5264
|
+
[vars$7.borderBottomColor]: 'transparent',
|
5265
|
+
[vars$7.color]: globalRefs$6.colors.primary.main,
|
4963
5266
|
|
4964
5267
|
_hover: {
|
4965
|
-
[vars$
|
5268
|
+
[vars$7.borderBottomColor]: globalRefs$6.colors.primary.main
|
4966
5269
|
},
|
4967
5270
|
|
4968
5271
|
textAlign: {
|
4969
|
-
right: { [vars$
|
4970
|
-
left: { [vars$
|
4971
|
-
center: { [vars$
|
5272
|
+
right: { [vars$7.textAlign]: 'right' },
|
5273
|
+
left: { [vars$7.textAlign]: 'left' },
|
5274
|
+
center: { [vars$7.textAlign]: 'center' }
|
4972
5275
|
},
|
4973
5276
|
|
4974
5277
|
_fullWidth: {
|
4975
|
-
[vars$
|
5278
|
+
[vars$7.width]: '100%'
|
4976
5279
|
},
|
4977
5280
|
|
4978
5281
|
mode: {
|
4979
5282
|
primary: {
|
4980
|
-
[vars$
|
5283
|
+
[vars$7.color]: globalRefs$6.colors.primary.main,
|
4981
5284
|
_hover: {
|
4982
|
-
[vars$
|
5285
|
+
[vars$7.borderBottomColor]: globalRefs$6.colors.primary.main
|
4983
5286
|
}
|
4984
5287
|
},
|
4985
5288
|
secondary: {
|
4986
|
-
[vars$
|
5289
|
+
[vars$7.color]: globalRefs$6.colors.secondary.main,
|
4987
5290
|
_hover: {
|
4988
|
-
[vars$
|
5291
|
+
[vars$7.borderBottomColor]: globalRefs$6.colors.secondary.main
|
4989
5292
|
}
|
4990
5293
|
},
|
4991
5294
|
error: {
|
4992
|
-
[vars$
|
5295
|
+
[vars$7.color]: globalRefs$6.colors.error.main,
|
4993
5296
|
_hover: {
|
4994
|
-
[vars$
|
5297
|
+
[vars$7.borderBottomColor]: globalRefs$6.colors.error.main
|
4995
5298
|
}
|
4996
5299
|
},
|
4997
5300
|
success: {
|
4998
|
-
[vars$
|
5301
|
+
[vars$7.color]: globalRefs$6.colors.success.main,
|
4999
5302
|
_hover: {
|
5000
|
-
[vars$
|
5303
|
+
[vars$7.borderBottomColor]: globalRefs$6.colors.success.main
|
5001
5304
|
}
|
5002
5305
|
}
|
5003
5306
|
}
|
5004
5307
|
};
|
5005
5308
|
|
5006
|
-
const vars$
|
5309
|
+
const vars$6 = Divider.cssVarList;
|
5007
5310
|
|
5008
5311
|
const thickness = '2px';
|
5009
5312
|
const textPaddingSize = '10px';
|
5010
|
-
const [helperTheme, helperRefs] = createHelperVars({ thickness, textPaddingSize }, componentName$
|
5313
|
+
const [helperTheme, helperRefs] = createHelperVars({ thickness, textPaddingSize }, componentName$h);
|
5011
5314
|
|
5012
5315
|
|
5013
5316
|
const divider = {
|
5014
5317
|
...helperTheme,
|
5015
|
-
[vars$
|
5016
|
-
[vars$
|
5017
|
-
[vars$
|
5018
|
-
[vars$
|
5019
|
-
[vars$
|
5020
|
-
[vars$
|
5021
|
-
[vars$
|
5022
|
-
[vars$
|
5023
|
-
[vars$
|
5024
|
-
[vars$
|
5318
|
+
[vars$6.alignItems]: 'center',
|
5319
|
+
[vars$6.dividerHeight]: helperRefs.thickness,
|
5320
|
+
[vars$6.backgroundColor]: 'currentColor',
|
5321
|
+
[vars$6.opacity]: '0.2',
|
5322
|
+
[vars$6.textPadding]: `0 ${helperRefs.textPaddingSize}`,
|
5323
|
+
[vars$6.width]: '100%',
|
5324
|
+
[vars$6.flexDirection]: 'row',
|
5325
|
+
[vars$6.alignSelf]: 'strech',
|
5326
|
+
[vars$6.textWidth]: 'fit-content',
|
5327
|
+
[vars$6.maxTextWidth]: 'calc(100% - 100px)',
|
5025
5328
|
_vertical: {
|
5026
|
-
[vars$
|
5027
|
-
[vars$
|
5028
|
-
[vars$
|
5029
|
-
[vars$
|
5030
|
-
[vars$
|
5031
|
-
[vars$
|
5032
|
-
[vars$
|
5033
|
-
[vars$
|
5329
|
+
[vars$6.padding]: `0 calc(${thickness} * 3)`,
|
5330
|
+
[vars$6.width]: 'fit-content',
|
5331
|
+
[vars$6.textPadding]: `${helperRefs.textPaddingSize} 0`,
|
5332
|
+
[vars$6.flexDirection]: 'column',
|
5333
|
+
[vars$6.minHeight]: '200px',
|
5334
|
+
[vars$6.textWidth]: 'fit-content',
|
5335
|
+
[vars$6.dividerWidth]: helperRefs.thickness,
|
5336
|
+
[vars$6.maxTextWidth]: '100%',
|
5034
5337
|
}
|
5035
5338
|
};
|
5036
5339
|
|
5037
|
-
const vars$
|
5038
|
-
const globalRefs$
|
5340
|
+
const vars$5 = Passcode.cssVarList;
|
5341
|
+
const globalRefs$5 = getThemeRefs(globals);
|
5039
5342
|
|
5040
5343
|
const passcode = {
|
5041
|
-
[vars$
|
5042
|
-
[vars$
|
5043
|
-
[vars$
|
5044
|
-
[vars$
|
5045
|
-
[vars$
|
5046
|
-
[vars$
|
5047
|
-
[vars$
|
5048
|
-
[vars$
|
5344
|
+
[vars$5.backgroundColor]: globalRefs$5.colors.surface.light,
|
5345
|
+
[vars$5.outlineWidth]: '2px',
|
5346
|
+
[vars$5.outlineColor]: globalRefs$5.colors.primary.main,
|
5347
|
+
[vars$5.padding]: '0',
|
5348
|
+
[vars$5.textAlign]: 'center',
|
5349
|
+
[vars$5.borderColor]: 'transparent',
|
5350
|
+
[vars$5.digitsGap]: '4px',
|
5351
|
+
[vars$5.focusedValidDigitFieldBorderColor]: globalRefs$5.colors.primary.main,
|
5049
5352
|
|
5050
5353
|
_hideCursor: {
|
5051
|
-
[vars$
|
5354
|
+
[vars$5.caretColor]: 'transparent',
|
5052
5355
|
},
|
5053
5356
|
|
5054
5357
|
_disabled: {
|
5055
|
-
[vars$
|
5358
|
+
[vars$5.backgroundColor]: globalRefs$5.colors.surface.main
|
5056
5359
|
},
|
5057
5360
|
|
5058
5361
|
_fullWidth: {
|
5059
|
-
[vars$
|
5362
|
+
[vars$5.width]: '100%'
|
5060
5363
|
},
|
5061
5364
|
|
5062
5365
|
_bordered: {
|
5063
|
-
[vars$
|
5366
|
+
[vars$5.borderColor]: globalRefs$5.colors.surface.main
|
5064
5367
|
},
|
5065
5368
|
|
5066
5369
|
_invalid: {
|
5067
|
-
[vars$
|
5068
|
-
[vars$
|
5069
|
-
[vars$
|
5370
|
+
[vars$5.borderColor]: globalRefs$5.colors.error.main,
|
5371
|
+
[vars$5.color]: globalRefs$5.colors.error.main,
|
5372
|
+
[vars$5.outlineColor]: globalRefs$5.colors.error.light,
|
5070
5373
|
},
|
5071
5374
|
};
|
5072
5375
|
|
5073
|
-
const globalRefs$
|
5376
|
+
const globalRefs$4 = getThemeRefs(globals);
|
5074
5377
|
|
5075
|
-
const vars$
|
5378
|
+
const vars$4 = LoaderLinear.cssVarList;
|
5076
5379
|
|
5077
5380
|
const loaderLinear = {
|
5078
|
-
[vars$
|
5079
|
-
[vars$
|
5080
|
-
[vars$
|
5081
|
-
[vars$
|
5082
|
-
[vars$
|
5083
|
-
[vars$
|
5084
|
-
[vars$
|
5085
|
-
[vars$
|
5086
|
-
[vars$
|
5381
|
+
[vars$4.display]: 'inline-block',
|
5382
|
+
[vars$4.barColor]: globalRefs$4.colors.surface.contrast,
|
5383
|
+
[vars$4.barWidth]: '20%',
|
5384
|
+
[vars$4.surfaceColor]: globalRefs$4.colors.surface.main,
|
5385
|
+
[vars$4.borderRadius]: '4px',
|
5386
|
+
[vars$4.animationDuration]: '2s',
|
5387
|
+
[vars$4.animationTimingFunction]: 'linear',
|
5388
|
+
[vars$4.animationIterationCount]: 'infinite',
|
5389
|
+
[vars$4.width]: '100%',
|
5087
5390
|
size: {
|
5088
5391
|
xs: {
|
5089
|
-
[vars$
|
5392
|
+
[vars$4.height]: '6px'
|
5090
5393
|
},
|
5091
5394
|
sm: {
|
5092
|
-
[vars$
|
5395
|
+
[vars$4.height]: '8px'
|
5093
5396
|
},
|
5094
5397
|
md: {
|
5095
|
-
[vars$
|
5398
|
+
[vars$4.height]: '10px'
|
5096
5399
|
},
|
5097
5400
|
lg: {
|
5098
|
-
[vars$
|
5401
|
+
[vars$4.height]: '12px'
|
5099
5402
|
},
|
5100
5403
|
xl: {
|
5101
|
-
[vars$
|
5404
|
+
[vars$4.height]: '14px'
|
5102
5405
|
}
|
5103
5406
|
},
|
5104
5407
|
mode: {
|
5105
5408
|
primary: {
|
5106
|
-
[vars$
|
5409
|
+
[vars$4.barColor]: globalRefs$4.colors.primary.main
|
5107
5410
|
},
|
5108
5411
|
secondary: {
|
5109
|
-
[vars$
|
5412
|
+
[vars$4.barColor]: globalRefs$4.colors.secondary.main
|
5110
5413
|
}
|
5111
5414
|
},
|
5112
5415
|
_hidden: {
|
5113
|
-
[vars$
|
5416
|
+
[vars$4.display]: 'none'
|
5114
5417
|
}
|
5115
5418
|
};
|
5116
5419
|
|
5117
|
-
const globalRefs$
|
5420
|
+
const globalRefs$3 = getThemeRefs(globals);
|
5118
5421
|
|
5119
|
-
const vars$
|
5422
|
+
const vars$3 = LoaderRadial.cssVarList;
|
5120
5423
|
|
5121
5424
|
const loaderRadial = {
|
5122
|
-
[vars$
|
5123
|
-
[vars$
|
5124
|
-
[vars$
|
5125
|
-
[vars$
|
5126
|
-
[vars$
|
5127
|
-
[vars$
|
5128
|
-
[vars$
|
5129
|
-
[vars$
|
5130
|
-
[vars$
|
5131
|
-
[vars$
|
5132
|
-
[vars$
|
5133
|
-
[vars$
|
5425
|
+
[vars$3.display]: 'inline-block',
|
5426
|
+
[vars$3.color]: globalRefs$3.colors.surface.contrast,
|
5427
|
+
[vars$3.animationDuration]: '2s',
|
5428
|
+
[vars$3.animationTimingFunction]: 'linear',
|
5429
|
+
[vars$3.animationIterationCount]: 'infinite',
|
5430
|
+
[vars$3.spinnerStyle]: 'solid',
|
5431
|
+
[vars$3.spinnerWidth]: '4px',
|
5432
|
+
[vars$3.spinnerRadius]: '50%',
|
5433
|
+
[vars$3.spinnerTopColor]: 'currentColor',
|
5434
|
+
[vars$3.spinnerBottomColor]: 'transparent',
|
5435
|
+
[vars$3.spinnerRightColor]: 'currentColor',
|
5436
|
+
[vars$3.spinnerLeftColor]: 'transparent',
|
5134
5437
|
size: {
|
5135
5438
|
xs: {
|
5136
|
-
[vars$
|
5137
|
-
[vars$
|
5138
|
-
[vars$
|
5439
|
+
[vars$3.width]: '20px',
|
5440
|
+
[vars$3.height]: '20px',
|
5441
|
+
[vars$3.spinnerWidth]: '2px'
|
5139
5442
|
},
|
5140
5443
|
sm: {
|
5141
|
-
[vars$
|
5142
|
-
[vars$
|
5143
|
-
[vars$
|
5444
|
+
[vars$3.width]: '30px',
|
5445
|
+
[vars$3.height]: '30px',
|
5446
|
+
[vars$3.spinnerWidth]: '3px'
|
5144
5447
|
},
|
5145
5448
|
md: {
|
5146
|
-
[vars$
|
5147
|
-
[vars$
|
5148
|
-
[vars$
|
5449
|
+
[vars$3.width]: '40px',
|
5450
|
+
[vars$3.height]: '40px',
|
5451
|
+
[vars$3.spinnerWidth]: '4px'
|
5149
5452
|
},
|
5150
5453
|
lg: {
|
5151
|
-
[vars$
|
5152
|
-
[vars$
|
5153
|
-
[vars$
|
5454
|
+
[vars$3.width]: '60px',
|
5455
|
+
[vars$3.height]: '60px',
|
5456
|
+
[vars$3.spinnerWidth]: '5px'
|
5154
5457
|
},
|
5155
5458
|
xl: {
|
5156
|
-
[vars$
|
5157
|
-
[vars$
|
5158
|
-
[vars$
|
5459
|
+
[vars$3.width]: '80px',
|
5460
|
+
[vars$3.height]: '80px',
|
5461
|
+
[vars$3.spinnerWidth]: '6px'
|
5159
5462
|
}
|
5160
5463
|
},
|
5161
5464
|
mode: {
|
5162
5465
|
primary: {
|
5163
|
-
[vars$
|
5466
|
+
[vars$3.color]: globalRefs$3.colors.primary.main
|
5164
5467
|
},
|
5165
5468
|
secondary: {
|
5166
|
-
[vars$
|
5469
|
+
[vars$3.color]: globalRefs$3.colors.secondary.main
|
5167
5470
|
}
|
5168
5471
|
},
|
5169
5472
|
_hidden: {
|
5170
|
-
[vars$
|
5473
|
+
[vars$3.display]: 'none'
|
5171
5474
|
}
|
5172
5475
|
};
|
5173
5476
|
|
5174
|
-
const globalRefs$
|
5477
|
+
const globalRefs$2 = getThemeRefs(globals);
|
5175
5478
|
|
5176
|
-
const vars$
|
5479
|
+
const vars$2 = ComboBox.cssVarList;
|
5177
5480
|
|
5178
5481
|
const comboBox = {
|
5179
|
-
[vars$
|
5180
|
-
[vars$
|
5181
|
-
[vars$
|
5182
|
-
[vars$
|
5183
|
-
[vars$
|
5184
|
-
[vars$
|
5185
|
-
[vars$
|
5186
|
-
[vars$
|
5482
|
+
[vars$2.borderColor]: globalRefs$2.colors.surface.main,
|
5483
|
+
[vars$2.borderWidth]: '1px',
|
5484
|
+
[vars$2.borderStyle]: 'solid',
|
5485
|
+
[vars$2.cursor]: 'pointer',
|
5486
|
+
[vars$2.padding]: '0',
|
5487
|
+
[vars$2.placeholderColor]: globalRefs$2.colors.surface.main,
|
5488
|
+
[vars$2.toggleColor]: globalRefs$2.colors.surface.contrast,
|
5489
|
+
[vars$2.toggleCursor]: 'pointer',
|
5187
5490
|
size: {
|
5188
5491
|
xs: {
|
5189
|
-
[vars$
|
5190
|
-
[vars$
|
5191
|
-
[vars$
|
5492
|
+
[vars$2.height]: '14px',
|
5493
|
+
[vars$2.fontSize]: '8px',
|
5494
|
+
[vars$2.padding]: `0 ${globalRefs$2.spacing.xs}`
|
5192
5495
|
},
|
5193
5496
|
sm: {
|
5194
|
-
[vars$
|
5195
|
-
[vars$
|
5196
|
-
[vars$
|
5497
|
+
[vars$2.height]: '20px',
|
5498
|
+
[vars$2.fontSize]: '10px',
|
5499
|
+
[vars$2.padding]: `0 ${globalRefs$2.spacing.sm}`
|
5197
5500
|
},
|
5198
5501
|
md: {
|
5199
|
-
[vars$
|
5200
|
-
[vars$
|
5201
|
-
[vars$
|
5502
|
+
[vars$2.height]: '30px',
|
5503
|
+
[vars$2.fontSize]: '14px',
|
5504
|
+
[vars$2.padding]: `0 ${globalRefs$2.spacing.md}`
|
5202
5505
|
},
|
5203
5506
|
lg: {
|
5204
|
-
[vars$
|
5205
|
-
[vars$
|
5206
|
-
[vars$
|
5507
|
+
[vars$2.height]: '40px',
|
5508
|
+
[vars$2.fontSize]: '20px',
|
5509
|
+
[vars$2.padding]: `0 ${globalRefs$2.spacing.lg}`
|
5207
5510
|
},
|
5208
5511
|
xl: {
|
5209
|
-
[vars$
|
5210
|
-
[vars$
|
5211
|
-
[vars$
|
5512
|
+
[vars$2.height]: '50px',
|
5513
|
+
[vars$2.fontSize]: '25px',
|
5514
|
+
[vars$2.padding]: `0 ${globalRefs$2.spacing.xl}`
|
5212
5515
|
}
|
5213
5516
|
},
|
5214
5517
|
_invalid: {
|
5215
|
-
[vars$
|
5216
|
-
[vars$
|
5217
|
-
[vars$
|
5518
|
+
[vars$2.borderColor]: globalRefs$2.colors.error.main,
|
5519
|
+
[vars$2.placeholderColor]: globalRefs$2.colors.error.light,
|
5520
|
+
[vars$2.toggleColor]: globalRefs$2.colors.error.main,
|
5218
5521
|
},
|
5219
5522
|
// [vars.overlayCursor]: 'pointer',
|
5220
5523
|
// [vars.overlayBackground]: globalRefs.colors.surface.light,
|
@@ -5225,68 +5528,68 @@ Image.cssVarList;
|
|
5225
5528
|
|
5226
5529
|
const image = {};
|
5227
5530
|
|
5228
|
-
const globalRefs = getThemeRefs(globals);
|
5229
|
-
const vars = PhoneField.cssVarList;
|
5531
|
+
const globalRefs$1 = getThemeRefs(globals);
|
5532
|
+
const vars$1 = PhoneField.cssVarList;
|
5230
5533
|
|
5231
5534
|
const phoneField = {
|
5232
|
-
[vars.wrapperBorderStyle]: 'solid',
|
5233
|
-
[vars.wrapperBorderWidth]: '1px',
|
5234
|
-
[vars.wrapperBorderColor]: 'transparent',
|
5235
|
-
[vars.wrapperBorderRadius]: globalRefs.radius.sm,
|
5236
|
-
[vars.placeholderColor]: globalRefs.colors.surface.main,
|
5535
|
+
[vars$1.wrapperBorderStyle]: 'solid',
|
5536
|
+
[vars$1.wrapperBorderWidth]: '1px',
|
5537
|
+
[vars$1.wrapperBorderColor]: 'transparent',
|
5538
|
+
[vars$1.wrapperBorderRadius]: globalRefs$1.radius.sm,
|
5539
|
+
[vars$1.placeholderColor]: globalRefs$1.colors.surface.main,
|
5237
5540
|
|
5238
|
-
[vars.padding]: '0',
|
5541
|
+
[vars$1.padding]: '0',
|
5239
5542
|
|
5240
|
-
[vars.phoneInputWidth]: '15em',
|
5241
|
-
[vars.countryCodeInputWidth]: '7em',
|
5543
|
+
[vars$1.phoneInputWidth]: '15em',
|
5544
|
+
[vars$1.countryCodeInputWidth]: '7em',
|
5242
5545
|
|
5243
5546
|
size: {
|
5244
5547
|
xs: {
|
5245
|
-
[vars.inputHeight]: '14px',
|
5246
|
-
[vars.fontSize]: '8px',
|
5247
|
-
[vars.padding]: `0 ${globalRefs.spacing.xs}`,
|
5248
|
-
[vars.countryCodeDropdownWidth]: '200px',
|
5548
|
+
[vars$1.inputHeight]: '14px',
|
5549
|
+
[vars$1.fontSize]: '8px',
|
5550
|
+
[vars$1.padding]: `0 ${globalRefs$1.spacing.xs}`,
|
5551
|
+
[vars$1.countryCodeDropdownWidth]: '200px',
|
5249
5552
|
},
|
5250
5553
|
sm: {
|
5251
|
-
[vars.inputHeight]: '20px',
|
5252
|
-
[vars.fontSize]: '10px',
|
5253
|
-
[vars.padding]: `0 ${globalRefs.spacing.sm}`,
|
5254
|
-
[vars.countryCodeDropdownWidth]: '240px',
|
5554
|
+
[vars$1.inputHeight]: '20px',
|
5555
|
+
[vars$1.fontSize]: '10px',
|
5556
|
+
[vars$1.padding]: `0 ${globalRefs$1.spacing.sm}`,
|
5557
|
+
[vars$1.countryCodeDropdownWidth]: '240px',
|
5255
5558
|
},
|
5256
5559
|
md: {
|
5257
|
-
[vars.inputHeight]: '30px',
|
5258
|
-
[vars.fontSize]: '14px',
|
5259
|
-
[vars.padding]: `0 ${globalRefs.spacing.md}`,
|
5260
|
-
[vars.countryCodeDropdownWidth]: '250px',
|
5560
|
+
[vars$1.inputHeight]: '30px',
|
5561
|
+
[vars$1.fontSize]: '14px',
|
5562
|
+
[vars$1.padding]: `0 ${globalRefs$1.spacing.md}`,
|
5563
|
+
[vars$1.countryCodeDropdownWidth]: '250px',
|
5261
5564
|
},
|
5262
5565
|
lg: {
|
5263
|
-
[vars.inputHeight]: '40px',
|
5264
|
-
[vars.fontSize]: '46px',
|
5265
|
-
[vars.padding]: `0 ${globalRefs.spacing.lg}`,
|
5266
|
-
[vars.countryCodeDropdownWidth]: '250px',
|
5566
|
+
[vars$1.inputHeight]: '40px',
|
5567
|
+
[vars$1.fontSize]: '46px',
|
5568
|
+
[vars$1.padding]: `0 ${globalRefs$1.spacing.lg}`,
|
5569
|
+
[vars$1.countryCodeDropdownWidth]: '250px',
|
5267
5570
|
},
|
5268
5571
|
xl: {
|
5269
|
-
[vars.inputHeight]: '50px',
|
5270
|
-
[vars.fontSize]: '25px',
|
5271
|
-
[vars.padding]: `0 ${globalRefs.spacing.xl}`,
|
5272
|
-
[vars.countryCodeDropdownWidth]: '400px',
|
5572
|
+
[vars$1.inputHeight]: '50px',
|
5573
|
+
[vars$1.fontSize]: '25px',
|
5574
|
+
[vars$1.padding]: `0 ${globalRefs$1.spacing.xl}`,
|
5575
|
+
[vars$1.countryCodeDropdownWidth]: '400px',
|
5273
5576
|
}
|
5274
5577
|
},
|
5275
5578
|
|
5276
5579
|
_fullWidth: {
|
5277
|
-
[vars.componentWidth]: '100%',
|
5278
|
-
[vars.phoneInputWidth]: '100%',
|
5279
|
-
[vars.countryCodeDropdownWidth]: '100%',
|
5580
|
+
[vars$1.componentWidth]: '100%',
|
5581
|
+
[vars$1.phoneInputWidth]: '100%',
|
5582
|
+
[vars$1.countryCodeDropdownWidth]: '100%',
|
5280
5583
|
},
|
5281
5584
|
|
5282
5585
|
_bordered: {
|
5283
|
-
[vars.wrapperBorderColor]: globalRefs.colors.surface.main
|
5586
|
+
[vars$1.wrapperBorderColor]: globalRefs$1.colors.surface.main
|
5284
5587
|
},
|
5285
5588
|
|
5286
5589
|
_invalid: {
|
5287
|
-
[vars.color]: globalRefs.colors.error.main,
|
5288
|
-
[vars.placeholderColor]: globalRefs.colors.error.light,
|
5289
|
-
[vars.wrapperBorderColor]: globalRefs.colors.error.main
|
5590
|
+
[vars$1.color]: globalRefs$1.colors.error.main,
|
5591
|
+
[vars$1.placeholderColor]: globalRefs$1.colors.error.light,
|
5592
|
+
[vars$1.wrapperBorderColor]: globalRefs$1.colors.error.main
|
5290
5593
|
},
|
5291
5594
|
|
5292
5595
|
// '@overlay': {
|
@@ -5294,6 +5597,49 @@ const phoneField = {
|
|
5294
5597
|
// }
|
5295
5598
|
};
|
5296
5599
|
|
5600
|
+
const globalRefs = getThemeRefs(globals);
|
5601
|
+
|
5602
|
+
const vars = NewPassword.cssVarList;
|
5603
|
+
|
5604
|
+
const newPassword = {
|
5605
|
+
_required: {
|
5606
|
+
[vars.requiredContent]: "'*'",
|
5607
|
+
},
|
5608
|
+
|
5609
|
+
[vars.inputLabelTextColor]: globalRefs.colors.surface.contrast,
|
5610
|
+
[vars.inputTextColor]: globalRefs.colors.surface.contrast,
|
5611
|
+
[vars.placeholderTextColor]: globalRefs.colors.surface.main,
|
5612
|
+
[vars.inputsGap]: '1em',
|
5613
|
+
|
5614
|
+
size: {
|
5615
|
+
xs: {
|
5616
|
+
[vars.fieldsMargin]: '0',
|
5617
|
+
},
|
5618
|
+
sm: {
|
5619
|
+
[vars.fieldsMargin]: '0',
|
5620
|
+
},
|
5621
|
+
md: {
|
5622
|
+
[vars.fieldsMargin]: '0.5em',
|
5623
|
+
},
|
5624
|
+
lg: {
|
5625
|
+
[vars.fieldsMargin]: '1em',
|
5626
|
+
},
|
5627
|
+
xl: {
|
5628
|
+
[vars.fieldsMargin]: '2em',
|
5629
|
+
},
|
5630
|
+
},
|
5631
|
+
|
5632
|
+
_fullWidth: {
|
5633
|
+
[vars.componentWidth]: '100%'
|
5634
|
+
},
|
5635
|
+
|
5636
|
+
_invalid: {
|
5637
|
+
[vars.inputLabelTextColor]: globalRefs.colors.error.main,
|
5638
|
+
[vars.inputTextColor]: globalRefs.colors.error.main,
|
5639
|
+
[vars.placeholderTextColor]: globalRefs.colors.error.light,
|
5640
|
+
}
|
5641
|
+
};
|
5642
|
+
|
5297
5643
|
var components = {
|
5298
5644
|
button,
|
5299
5645
|
textField: textField$1,
|
@@ -5313,7 +5659,8 @@ var components = {
|
|
5313
5659
|
loaderLinear,
|
5314
5660
|
comboBox,
|
5315
5661
|
image,
|
5316
|
-
phoneField
|
5662
|
+
phoneField,
|
5663
|
+
newPassword,
|
5317
5664
|
};
|
5318
5665
|
|
5319
5666
|
var index = { globals, components };
|