@descope/web-components-ui 1.0.113 → 1.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +5558 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +21 -20
- package/dist/index.esm.js +1586 -1456
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/201.js +1 -0
- package/dist/umd/241.js +1 -1
- package/dist/umd/447.js +1 -1
- package/dist/umd/65.js +1 -1
- package/dist/umd/803.js +1 -1
- package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
- package/dist/umd/descope-button-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-divider-index-js.js +1 -1
- package/dist/umd/descope-email-field-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-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-number-field-index-js.js +1 -1
- package/dist/umd/descope-passcode-index-js.js +1 -1
- package/dist/umd/descope-phone-field-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 +2 -2
- package/src/components/boolean-fields/commonStyles.js +13 -5
- package/src/components/boolean-fields/descope-checkbox/CheckboxClass.js +40 -37
- package/src/components/boolean-fields/descope-switch-toggle/SwitchToggleClass.js +43 -37
- package/src/components/descope-button/ButtonClass.js +22 -6
- package/src/components/descope-combo-box/ComboBoxClass.js +49 -36
- package/src/components/descope-container/ContainerClass.js +4 -4
- package/src/components/descope-divider/DividerClass.js +74 -55
- package/src/components/descope-email-field/EmailFieldClass.js +11 -47
- package/src/components/descope-link/LinkClass.js +8 -5
- package/src/components/descope-loader-linear/LoaderLinearClass.js +16 -12
- package/src/components/descope-loader-radial/LoaderRadialClass.js +12 -11
- package/src/components/descope-new-password/NewPasswordClass.js +65 -51
- package/src/components/descope-new-password/descope-new-password-internal/NewPasswordInternal.js +1 -1
- package/src/components/descope-number-field/NumberFieldClass.js +11 -43
- package/src/components/descope-passcode/PasscodeClass.js +36 -29
- package/src/components/descope-password-field/PasswordFieldClass.js +52 -41
- package/src/components/descope-phone-field/PhoneFieldClass.js +61 -41
- package/src/components/descope-text/TextClass.js +8 -8
- package/src/components/descope-text-area/TextAreaClass.js +50 -48
- package/src/components/descope-text-field/TextFieldClass.js +11 -53
- package/src/components/descope-text-field/textFieldMappings.js +66 -38
- package/src/dev/index.js +1 -1
- package/src/helpers/themeHelpers/index.js +6 -1
- package/src/helpers/themeHelpers/resetHelpers.js +76 -0
- package/src/index.cjs.js +23 -2
- package/src/index.d.ts +50 -0
- package/src/index.js +1 -1
- package/src/mixins/createStyleMixin/index.js +38 -27
- package/src/mixins/inputValidationMixin.js +4 -1
- package/src/mixins/proxyInputMixin.js +11 -3
- package/src/theme/components/button.js +45 -29
- package/src/theme/components/checkbox.js +18 -46
- package/src/theme/components/comboBox.js +24 -35
- package/src/theme/components/container.js +49 -61
- package/src/theme/components/divider.js +35 -23
- package/src/theme/components/emailField.js +21 -2
- package/src/theme/components/image.js +1 -0
- package/src/theme/components/index.js +27 -19
- package/src/theme/components/inputWrapper.js +72 -0
- package/src/theme/components/link.js +16 -22
- package/src/theme/components/loader/index.js +4 -2
- package/src/theme/components/loader/loaderLinear.js +19 -23
- package/src/theme/components/loader/loaderRadial.js +32 -46
- package/src/theme/components/logo.js +1 -0
- package/src/theme/components/newPassword.js +11 -25
- package/src/theme/components/numberField.js +21 -2
- package/src/theme/components/passcode.js +17 -27
- package/src/theme/components/passwordField.js +19 -64
- package/src/theme/components/phoneField.js +19 -58
- package/src/theme/components/switchToggle.js +21 -34
- package/src/theme/components/text.js +14 -8
- package/src/theme/components/textArea.js +20 -36
- package/src/theme/components/textField.js +21 -67
- package/src/theme/globals.js +6 -2
- package/src/theme/index.js +4 -3
package/dist/index.esm.js
CHANGED
|
@@ -267,14 +267,15 @@ const createClassSelectorSpecifier = (className, numOfRepeats) => Array(numOfRep
|
|
|
267
267
|
|
|
268
268
|
const STYLE_OVERRIDE_ATTR_PREFIX = 'st';
|
|
269
269
|
|
|
270
|
-
|
|
271
270
|
const createStyleMixin =
|
|
272
|
-
({ mappings = {} }) => (superclass) =>
|
|
273
|
-
|
|
271
|
+
({ mappings = {}, componentNameOverride = '' }) => (superclass) => {
|
|
272
|
+
const componentName = componentNameOverride || superclass.componentName;
|
|
273
|
+
|
|
274
|
+
return class CustomStyleMixinClass extends superclass {
|
|
274
275
|
static get cssVarList() {
|
|
275
276
|
return {
|
|
276
277
|
...superclass.cssVarList,
|
|
277
|
-
...createCssVarsList(
|
|
278
|
+
...createCssVarsList(componentName, {
|
|
278
279
|
...mappings,
|
|
279
280
|
})
|
|
280
281
|
};
|
|
@@ -313,30 +314,32 @@ const createStyleMixin =
|
|
|
313
314
|
this.#createOverridesStyle();
|
|
314
315
|
}
|
|
315
316
|
|
|
316
|
-
get componentTheme() {
|
|
317
|
-
return componentsThemeManager.currentTheme?.[
|
|
317
|
+
get #componentTheme() {
|
|
318
|
+
return componentsThemeManager.currentTheme?.[componentName] || ''
|
|
318
319
|
}
|
|
319
320
|
|
|
320
321
|
#onComponentThemeChange() {
|
|
321
|
-
this.#themeStyleEle.innerHTML = this
|
|
322
|
+
this.#themeStyleEle.innerHTML = this.#componentTheme[this.#themeSection];
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
#createComponentTheme() {
|
|
325
326
|
this.#themeStyleEle = document.createElement('style');
|
|
326
|
-
this.#themeStyleEle.id =
|
|
327
|
+
this.#themeStyleEle.id = `style-mixin-theme__${componentName}`;
|
|
327
328
|
this.#rootElement.prepend(this.#themeStyleEle);
|
|
328
329
|
this.#disconnectThemeManager = componentsThemeManager.onCurrentThemeChange(this.#onComponentThemeChange.bind(this));
|
|
329
330
|
this.#onComponentThemeChange();
|
|
330
331
|
}
|
|
331
332
|
|
|
332
333
|
#createOverridesStyle() {
|
|
333
|
-
this.#
|
|
334
|
-
|
|
334
|
+
if (this.#styleAttributes.length) {
|
|
335
|
+
this.#overrideStyleEle = document.createElement('style');
|
|
336
|
+
this.#overrideStyleEle.id = `style-mixin-overrides__${componentName}`;
|
|
335
337
|
|
|
336
|
-
|
|
338
|
+
const classSpecifier = createClassSelectorSpecifier(componentName, CSS_SELECTOR_SPECIFIER_MULTIPLY);
|
|
337
339
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
+
this.#overrideStyleEle.innerText = `:host(${classSpecifier}) {}`;
|
|
341
|
+
this.#rootElement.append(this.#overrideStyleEle);
|
|
342
|
+
}
|
|
340
343
|
}
|
|
341
344
|
|
|
342
345
|
#setAttrOverride(attrName, value) {
|
|
@@ -344,37 +347,44 @@ const createStyleMixin =
|
|
|
344
347
|
if (!style) return;
|
|
345
348
|
|
|
346
349
|
const varName = getCssVarName(
|
|
347
|
-
|
|
350
|
+
componentName,
|
|
348
351
|
attrName.replace(new RegExp(`^${STYLE_OVERRIDE_ATTR_PREFIX}-`), '')
|
|
349
352
|
);
|
|
350
353
|
|
|
351
354
|
if (value) style?.setProperty(varName, value);
|
|
352
|
-
else {
|
|
355
|
+
else {
|
|
353
356
|
style?.removeProperty(varName);
|
|
354
357
|
this.removeAttribute(attrName);
|
|
355
358
|
}
|
|
356
359
|
}
|
|
357
360
|
|
|
358
361
|
#updateOverridesStyle(attrs = []) {
|
|
362
|
+
let shouldUpdate = false;
|
|
363
|
+
|
|
359
364
|
for (const attr of attrs) {
|
|
360
365
|
if (this.#styleAttributes.includes(attr)) {
|
|
361
366
|
this.#setAttrOverride(attr, this.getAttribute(attr));
|
|
367
|
+
shouldUpdate = true;
|
|
362
368
|
}
|
|
363
369
|
}
|
|
364
370
|
|
|
365
|
-
|
|
366
|
-
|
|
371
|
+
if (shouldUpdate) {
|
|
372
|
+
// we are rewriting the style back to the style tag
|
|
373
|
+
this.#overrideStyleEle.innerHTML = this.#overrideStyleEle?.sheet?.cssRules[0].cssText;
|
|
374
|
+
}
|
|
367
375
|
}
|
|
368
376
|
|
|
369
377
|
#createMappingStyle() {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
+
if (Object.keys(mappings).length) {
|
|
379
|
+
const themeStyle = document.createElement('style');
|
|
380
|
+
themeStyle.id = `style-mixin-mappings__${componentName}`;
|
|
381
|
+
themeStyle.innerHTML = createStyle(
|
|
382
|
+
kebabCaseJoin(componentName, this.#componentNameSuffix),
|
|
383
|
+
this.#baseSelector,
|
|
384
|
+
mappings
|
|
385
|
+
);
|
|
386
|
+
this.#rootElement.prepend(themeStyle);
|
|
387
|
+
}
|
|
378
388
|
}
|
|
379
389
|
|
|
380
390
|
#addClassName(className) {
|
|
@@ -384,7 +394,7 @@ const createStyleMixin =
|
|
|
384
394
|
init() {
|
|
385
395
|
super.init?.();
|
|
386
396
|
if (this.shadowRoot.isConnected) {
|
|
387
|
-
this.#addClassName(
|
|
397
|
+
this.#addClassName(componentName);
|
|
388
398
|
|
|
389
399
|
// this is instead attributeChangedCallback because we cannot use static methods in this case
|
|
390
400
|
observeAttributes(this, this.#updateOverridesStyle.bind(this), {});
|
|
@@ -396,7 +406,8 @@ const createStyleMixin =
|
|
|
396
406
|
|
|
397
407
|
this.#disconnectThemeManager?.();
|
|
398
408
|
}
|
|
399
|
-
}
|
|
409
|
+
}
|
|
410
|
+
};
|
|
400
411
|
|
|
401
412
|
const draggableMixin = (superclass) =>
|
|
402
413
|
class DraggableMixinClass extends superclass {
|
|
@@ -713,13 +724,16 @@ const inputValidationMixin = (superclass) => class InputValidationMixinClass ext
|
|
|
713
724
|
stepMismatch,
|
|
714
725
|
tooShort,
|
|
715
726
|
tooLong,
|
|
727
|
+
rangeOverflow,
|
|
728
|
+
rangeUnderflow,
|
|
729
|
+
badInput,
|
|
716
730
|
customError
|
|
717
731
|
} = flags;
|
|
718
732
|
switch (true) {
|
|
719
733
|
case valueMissing:
|
|
720
734
|
return this.getAttribute(errorAttributes.valueMissing) ||
|
|
721
735
|
this.defaultErrorMsgValueMissing
|
|
722
|
-
case patternMismatch || typeMismatch || stepMismatch:
|
|
736
|
+
case patternMismatch || typeMismatch || stepMismatch || rangeOverflow || rangeUnderflow || badInput:
|
|
723
737
|
return this.getAttribute(errorAttributes.patternMismatch) ||
|
|
724
738
|
this.defaultErrorMsgPatternMismatch
|
|
725
739
|
case tooShort:
|
|
@@ -939,10 +953,14 @@ const proxyInputMixin = (superclass) =>
|
|
|
939
953
|
propertyObserver(this, this.inputElement, 'selectionStart');
|
|
940
954
|
this.setSelectionRange = this.inputElement.setSelectionRange?.bind(this.inputElement);
|
|
941
955
|
|
|
942
|
-
forwardAttrs(this, this.inputElement, {includeAttrs: ['inputmode']});
|
|
956
|
+
forwardAttrs(this, this.inputElement, { includeAttrs: ['inputmode'] });
|
|
943
957
|
}
|
|
944
958
|
};
|
|
945
959
|
|
|
960
|
+
const composedProxyInputMixin = compose(
|
|
961
|
+
proxyInputMixin,
|
|
962
|
+
createStyleMixin({ componentNameOverride: getComponentName('input-wrapper') }));
|
|
963
|
+
|
|
946
964
|
// this is needed because we might generate the same css vars names
|
|
947
965
|
// e.g. "overlayColor" attribute in style mixin's mapping,
|
|
948
966
|
// will generate the same var as "color" attribute in portals's mapping
|
|
@@ -1099,17 +1117,19 @@ const inputEventsDispatchingMixin = (superclass) => class InputEventsDispatching
|
|
|
1099
1117
|
}
|
|
1100
1118
|
};
|
|
1101
1119
|
|
|
1102
|
-
const componentName$
|
|
1120
|
+
const componentName$o = getComponentName('button');
|
|
1103
1121
|
|
|
1104
1122
|
const resetStyles = `
|
|
1105
1123
|
:host {
|
|
1106
1124
|
display: inline-block;
|
|
1125
|
+
box-sizing: border-box;
|
|
1107
1126
|
}
|
|
1108
1127
|
vaadin-button {
|
|
1109
1128
|
margin: 0;
|
|
1110
1129
|
min-width: 0;
|
|
1111
1130
|
width: 100%;
|
|
1112
1131
|
height: auto;
|
|
1132
|
+
box-shadow: none;
|
|
1113
1133
|
}
|
|
1114
1134
|
vaadin-button::part(label) {
|
|
1115
1135
|
padding: 0;
|
|
@@ -1131,7 +1151,7 @@ const iconStyles = `
|
|
|
1131
1151
|
|
|
1132
1152
|
const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
|
|
1133
1153
|
|
|
1134
|
-
const { host: host$
|
|
1154
|
+
const { host: host$c, label: label$9 } = {
|
|
1135
1155
|
host: { selector: () => ':host' },
|
|
1136
1156
|
label: { selector: '::part(label)' },
|
|
1137
1157
|
};
|
|
@@ -1139,17 +1159,23 @@ const { host: host$a, label: label$7 } = {
|
|
|
1139
1159
|
const ButtonClass = compose(
|
|
1140
1160
|
createStyleMixin({
|
|
1141
1161
|
mappings: {
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1162
|
+
hostWidth: { ...host$c, property: 'width' },
|
|
1163
|
+
fontSize: { property: 'font-size' },
|
|
1164
|
+
fontFamily: { property: 'font-family' },
|
|
1165
|
+
|
|
1145
1166
|
cursor: {},
|
|
1146
1167
|
backgroundColor: {},
|
|
1168
|
+
|
|
1169
|
+
outlineOffset: {},
|
|
1170
|
+
outlineColor: {},
|
|
1171
|
+
outlineStyle: {},
|
|
1172
|
+
outlineWidth: {},
|
|
1173
|
+
|
|
1147
1174
|
borderRadius: {},
|
|
1148
1175
|
borderColor: {},
|
|
1149
1176
|
borderStyle: {},
|
|
1150
1177
|
borderWidth: {},
|
|
1151
|
-
|
|
1152
|
-
gap: label$7,
|
|
1178
|
+
|
|
1153
1179
|
verticalPadding: [
|
|
1154
1180
|
{ property: 'padding-top' },
|
|
1155
1181
|
{ property: 'padding-bottom' },
|
|
@@ -1157,7 +1183,12 @@ const ButtonClass = compose(
|
|
|
1157
1183
|
horizontalPadding: [
|
|
1158
1184
|
{ property: 'padding-left' },
|
|
1159
1185
|
{ property: 'padding-right' },
|
|
1160
|
-
]
|
|
1186
|
+
],
|
|
1187
|
+
|
|
1188
|
+
labelTextColor: { property: 'color' },
|
|
1189
|
+
labelTextDecoration: { ...label$9, property: 'text-decoration' },
|
|
1190
|
+
labelSpacing: { ...label$9, property: 'gap' },
|
|
1191
|
+
|
|
1161
1192
|
}
|
|
1162
1193
|
}),
|
|
1163
1194
|
draggableMixin,
|
|
@@ -1171,9 +1202,12 @@ const ButtonClass = compose(
|
|
|
1171
1202
|
${iconStyles}
|
|
1172
1203
|
${loadingIndicatorStyles}
|
|
1173
1204
|
${editorOverrides}
|
|
1205
|
+
:host {
|
|
1206
|
+
padding: calc(var(${ButtonClass.cssVarList.outlineWidth}) + var(${ButtonClass.cssVarList.outlineOffset}))
|
|
1207
|
+
}
|
|
1174
1208
|
`,
|
|
1175
1209
|
excludeAttrsSync: ['tabindex'],
|
|
1176
|
-
componentName: componentName$
|
|
1210
|
+
componentName: componentName$o
|
|
1177
1211
|
})
|
|
1178
1212
|
);
|
|
1179
1213
|
|
|
@@ -1206,7 +1240,7 @@ const loadingIndicatorStyles = `
|
|
|
1206
1240
|
}
|
|
1207
1241
|
`;
|
|
1208
1242
|
|
|
1209
|
-
customElements.define(componentName$
|
|
1243
|
+
customElements.define(componentName$o, ButtonClass);
|
|
1210
1244
|
|
|
1211
1245
|
const createBaseInputClass = (...args) => compose(
|
|
1212
1246
|
inputValidationMixin,
|
|
@@ -1215,7 +1249,7 @@ const createBaseInputClass = (...args) => compose(
|
|
|
1215
1249
|
inputEventsDispatchingMixin
|
|
1216
1250
|
)(createBaseClass(...args));
|
|
1217
1251
|
|
|
1218
|
-
const componentName$
|
|
1252
|
+
const componentName$n = getComponentName('boolean-field-internal');
|
|
1219
1253
|
|
|
1220
1254
|
const forwardAttributes$1 = [
|
|
1221
1255
|
'disabled',
|
|
@@ -1224,7 +1258,7 @@ const forwardAttributes$1 = [
|
|
|
1224
1258
|
'readonly'
|
|
1225
1259
|
];
|
|
1226
1260
|
|
|
1227
|
-
const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$
|
|
1261
|
+
const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$n, baseSelector: 'div' });
|
|
1228
1262
|
|
|
1229
1263
|
class BooleanInputInternal extends BaseInputClass$3 {
|
|
1230
1264
|
constructor() {
|
|
@@ -1288,14 +1322,14 @@ const booleanFieldMixin = (superclass) =>
|
|
|
1288
1322
|
|
|
1289
1323
|
const template = document.createElement('template');
|
|
1290
1324
|
template.innerHTML = `
|
|
1291
|
-
<${componentName$
|
|
1325
|
+
<${componentName$n}
|
|
1292
1326
|
tabindex="-1"
|
|
1293
1327
|
slot="input"
|
|
1294
|
-
></${componentName$
|
|
1328
|
+
></${componentName$n}>
|
|
1295
1329
|
`;
|
|
1296
1330
|
|
|
1297
1331
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
1298
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
|
1332
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$n);
|
|
1299
1333
|
this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
|
|
1300
1334
|
|
|
1301
1335
|
forwardAttrs(this, this.inputElement, {
|
|
@@ -1313,11 +1347,90 @@ const booleanFieldMixin = (superclass) =>
|
|
|
1313
1347
|
}
|
|
1314
1348
|
};
|
|
1315
1349
|
|
|
1350
|
+
const resetInputOverrides = (name, cssVarList) => `
|
|
1351
|
+
${resetInputContainer(name)}
|
|
1352
|
+
${resetInputCursor(name)}
|
|
1353
|
+
${resetInputPlaceholder(name)}
|
|
1354
|
+
${resetInputField(name)}
|
|
1355
|
+
${resetInputAutoFill(name, cssVarList)}
|
|
1356
|
+
|
|
1357
|
+
${name}::before {
|
|
1358
|
+
height: unset;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
${name} > input {
|
|
1362
|
+
-webkit-mask-image: none;
|
|
1363
|
+
min-height: 0;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
${name}::part(input-field)::after {
|
|
1367
|
+
opacity: 0 !important;
|
|
1368
|
+
}
|
|
1369
|
+
`;
|
|
1370
|
+
|
|
1371
|
+
const resetInputContainer = (name) => `
|
|
1372
|
+
${name} {
|
|
1373
|
+
margin: 0;
|
|
1374
|
+
padding: 0;
|
|
1375
|
+
width: 100%;
|
|
1376
|
+
height: 100%;
|
|
1377
|
+
box-sizing: border-box;
|
|
1378
|
+
}
|
|
1379
|
+
`;
|
|
1380
|
+
|
|
1381
|
+
const resetInputField = (name) => `
|
|
1382
|
+
${name}::part(input-field) {
|
|
1383
|
+
overflow: hidden;
|
|
1384
|
+
padding: 0;
|
|
1385
|
+
box-shadow: none;
|
|
1386
|
+
}
|
|
1387
|
+
`;
|
|
1388
|
+
|
|
1389
|
+
const resetInputCursor = (name) => `
|
|
1390
|
+
${name} > label,
|
|
1391
|
+
${name}::part(label),
|
|
1392
|
+
${name}::part(required-indicator) {
|
|
1393
|
+
cursor: pointer;
|
|
1394
|
+
}
|
|
1395
|
+
`;
|
|
1396
|
+
|
|
1397
|
+
const resetInputPlaceholder = (name, ele = 'input') => `
|
|
1398
|
+
${name}[disabled] > ${ele}:placeholder-shown,
|
|
1399
|
+
${name}[readonly] > ${ele}:placeholder-shown {
|
|
1400
|
+
opacity: 1;
|
|
1401
|
+
}
|
|
1402
|
+
`;
|
|
1403
|
+
|
|
1404
|
+
const resetInputAutoFill = (name, cssVarList) => `
|
|
1405
|
+
${name} input:-webkit-autofill,
|
|
1406
|
+
${name} input:-webkit-autofill::first-line,
|
|
1407
|
+
${name} input:-webkit-autofill:hover,
|
|
1408
|
+
${name} input:-webkit-autofill:active,
|
|
1409
|
+
${name} input:-webkit-autofill:focus {
|
|
1410
|
+
-webkit-text-fill-color: var(${cssVarList.inputValueTextColor});
|
|
1411
|
+
box-shadow: 0 0 0 var(${cssVarList.inputHeight}) var(${cssVarList.inputBackgroundColor}) inset;
|
|
1412
|
+
}
|
|
1413
|
+
`;
|
|
1414
|
+
|
|
1415
|
+
const resetInputFieldDefaultWidth = () => `
|
|
1416
|
+
:host {
|
|
1417
|
+
--vaadin-field-default-width: auto;
|
|
1418
|
+
}
|
|
1419
|
+
`;
|
|
1420
|
+
|
|
1421
|
+
const resetInputReadonlyStyle = (name) => `
|
|
1422
|
+
${name}::part(input-field)::after {
|
|
1423
|
+
opacity: 0;
|
|
1424
|
+
}
|
|
1425
|
+
`;
|
|
1426
|
+
|
|
1316
1427
|
var commonStyles = `
|
|
1317
1428
|
:host {
|
|
1318
|
-
--vaadin-field-default-width: auto;
|
|
1319
1429
|
display: inline-flex;
|
|
1320
1430
|
}
|
|
1431
|
+
|
|
1432
|
+
${resetInputFieldDefaultWidth()}
|
|
1433
|
+
|
|
1321
1434
|
.wrapper {
|
|
1322
1435
|
display: flex;
|
|
1323
1436
|
}
|
|
@@ -1347,9 +1460,6 @@ vaadin-text-field::part(input-field)::after {
|
|
|
1347
1460
|
vaadin-text-field[focus-ring]::part(input-field) {
|
|
1348
1461
|
box-shadow: none;
|
|
1349
1462
|
}
|
|
1350
|
-
vaadin-text-field[required]::part(required-indicator)::after {
|
|
1351
|
-
content: "*";
|
|
1352
|
-
}
|
|
1353
1463
|
|
|
1354
1464
|
vaadin-checkbox [slot="label"] {
|
|
1355
1465
|
align-self: flex-start;
|
|
@@ -1371,138 +1481,155 @@ descope-boolean-field-internal {
|
|
|
1371
1481
|
min-height: 0;
|
|
1372
1482
|
padding: 0;
|
|
1373
1483
|
}
|
|
1484
|
+
|
|
1485
|
+
[slot="label"],
|
|
1486
|
+
vaadin-checkbox,
|
|
1487
|
+
vaadin-checkbox::part(checkbox) {
|
|
1488
|
+
height: 100%;
|
|
1489
|
+
cursor: pointer;
|
|
1490
|
+
}
|
|
1374
1491
|
`;
|
|
1375
1492
|
|
|
1376
|
-
const componentName$
|
|
1493
|
+
const componentName$m = getComponentName('checkbox');
|
|
1377
1494
|
|
|
1378
1495
|
const {
|
|
1379
|
-
host: host$
|
|
1496
|
+
host: host$b,
|
|
1380
1497
|
component: component$1,
|
|
1381
1498
|
checkboxElement,
|
|
1382
1499
|
checkboxSurface,
|
|
1383
1500
|
checkboxHiddenLabel: checkboxHiddenLabel$1,
|
|
1384
|
-
label: label$
|
|
1385
|
-
requiredIndicator: requiredIndicator$
|
|
1501
|
+
label: label$8,
|
|
1502
|
+
requiredIndicator: requiredIndicator$7,
|
|
1503
|
+
helperText: helperText$7,
|
|
1504
|
+
errorMessage: errorMessage$7
|
|
1386
1505
|
} = {
|
|
1387
1506
|
host: { selector: () => ':host' },
|
|
1388
1507
|
label: { selector: '::part(label)' },
|
|
1389
|
-
requiredIndicator: { selector: '::part(required-indicator)::after' },
|
|
1508
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
|
1390
1509
|
component: { selector: 'vaadin-checkbox' },
|
|
1391
1510
|
checkboxElement: { selector: 'vaadin-checkbox::part(checkbox)' },
|
|
1392
1511
|
checkboxSurface: { selector: 'vaadin-checkbox::part(checkbox)::after' },
|
|
1393
1512
|
checkboxHiddenLabel: { selector: 'vaadin-checkbox [slot="label"]' },
|
|
1513
|
+
helperText: { selector: '::part(helper-text)' },
|
|
1514
|
+
errorMessage: { selector: '::part(error-message)' },
|
|
1394
1515
|
};
|
|
1395
1516
|
|
|
1396
1517
|
const CheckboxClass = compose(
|
|
1397
1518
|
createStyleMixin({
|
|
1398
1519
|
mappings: {
|
|
1399
|
-
|
|
1400
|
-
cursor: component$1,
|
|
1520
|
+
hostWidth: { ...host$b, property: 'width' },
|
|
1401
1521
|
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
checkboxRadius: { ...checkboxElement, property: 'border-radius' },
|
|
1405
|
-
|
|
1406
|
-
checkboxSize: [
|
|
1407
|
-
{ ...checkboxElement, property: 'width' },
|
|
1408
|
-
{ ...label$6, property: 'margin-left' },
|
|
1409
|
-
{ ...checkboxElement, property: 'height' },
|
|
1410
|
-
{ ...checkboxSurface, property: 'font-size' },
|
|
1411
|
-
{ ...component$1, property: 'font-size' },
|
|
1412
|
-
{ ...label$6, property: 'line-height' },
|
|
1413
|
-
{ ...checkboxHiddenLabel$1, property: 'line-height' }
|
|
1414
|
-
],
|
|
1415
|
-
|
|
1416
|
-
checkboxOutlineWidth: { ...checkboxElement, property: 'outline-width' },
|
|
1417
|
-
checkboxOutlineOffset: { ...checkboxElement, property: 'outline-offset' },
|
|
1418
|
-
checkboxOutlineColor: { ...checkboxElement, property: 'outline-color' },
|
|
1419
|
-
checkboxOutlineStyle: { ...checkboxElement, property: 'outline-style' },
|
|
1420
|
-
|
|
1421
|
-
// Checkmark
|
|
1422
|
-
checkmarkTextColor: { ...checkboxSurface, property: 'color' },
|
|
1423
|
-
|
|
1424
|
-
// Label
|
|
1425
|
-
labelFontSize: [
|
|
1426
|
-
{ ...host$9, property: 'font-size' },
|
|
1522
|
+
fontSize: [
|
|
1523
|
+
{ ...host$b, property: 'font-size' },
|
|
1427
1524
|
{ ...checkboxElement, property: 'font-size' },
|
|
1428
|
-
{ ...label$
|
|
1525
|
+
{ ...label$8, property: 'font-size' },
|
|
1429
1526
|
{ ...checkboxHiddenLabel$1, property: 'font-size' }
|
|
1430
1527
|
],
|
|
1528
|
+
fontFamily: [
|
|
1529
|
+
{ ...label$8, property: 'font-family' },
|
|
1530
|
+
{ ...checkboxHiddenLabel$1, property: 'font-family' },
|
|
1531
|
+
{ ...helperText$7, property: 'font-family' },
|
|
1532
|
+
{ ...errorMessage$7, property: 'font-family' }
|
|
1533
|
+
],
|
|
1534
|
+
|
|
1535
|
+
labelTextColor: [
|
|
1536
|
+
{ ...label$8, property: 'color' },
|
|
1537
|
+
{ ...requiredIndicator$7, property: 'color' },
|
|
1538
|
+
],
|
|
1539
|
+
labelRequiredIndicator: { ...requiredIndicator$7, property: 'content' },
|
|
1540
|
+
|
|
1431
1541
|
labelFontWeight: [
|
|
1432
|
-
{ ...label$
|
|
1542
|
+
{ ...label$8, property: 'font-weight' },
|
|
1433
1543
|
{ ...checkboxHiddenLabel$1, property: 'font-weight' }
|
|
1434
1544
|
],
|
|
1435
|
-
|
|
1436
|
-
{ ...label$
|
|
1545
|
+
labelSpacing: [
|
|
1546
|
+
{ ...label$8, property: 'left' },
|
|
1437
1547
|
{ ...checkboxHiddenLabel$1, property: 'padding-left' }
|
|
1438
1548
|
],
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1549
|
+
inputValueTextColor: { ...checkboxSurface, property: 'color' },
|
|
1550
|
+
inputBackgroundColor: { ...checkboxElement, property: 'background-color' },
|
|
1551
|
+
inputBorderRadius: { ...checkboxElement, property: 'border-radius' },
|
|
1552
|
+
inputOutlineWidth: { ...checkboxElement, property: 'outline-width' },
|
|
1553
|
+
inputOutlineOffset: { ...checkboxElement, property: 'outline-offset' },
|
|
1554
|
+
inputOutlineColor: { ...checkboxElement, property: 'outline-color' },
|
|
1555
|
+
inputOutlineStyle: { ...checkboxElement, property: 'outline-style' },
|
|
1556
|
+
inputSize: [
|
|
1557
|
+
{ ...checkboxElement, property: 'width' },
|
|
1558
|
+
{ ...label$8, property: 'margin-left' },
|
|
1559
|
+
{ ...checkboxElement, property: 'height' },
|
|
1560
|
+
{ ...checkboxSurface, property: 'font-size' },
|
|
1561
|
+
{ ...component$1, property: 'font-size' },
|
|
1562
|
+
{ ...label$8, property: 'line-height' },
|
|
1563
|
+
{ ...checkboxHiddenLabel$1, property: 'line-height' }
|
|
1442
1564
|
],
|
|
1443
1565
|
},
|
|
1444
1566
|
}),
|
|
1445
1567
|
draggableMixin,
|
|
1446
|
-
|
|
1568
|
+
composedProxyInputMixin,
|
|
1447
1569
|
componentNameValidationMixin,
|
|
1448
1570
|
booleanFieldMixin
|
|
1449
1571
|
)(
|
|
1450
1572
|
createProxy({
|
|
1451
1573
|
slots: [],
|
|
1452
1574
|
wrappedEleName: 'vaadin-text-field',
|
|
1453
|
-
style: `
|
|
1575
|
+
style: () => `
|
|
1454
1576
|
${commonStyles}
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
height: 100%;
|
|
1458
|
-
cursor: pointer;
|
|
1577
|
+
vaadin-text-field {
|
|
1578
|
+
padding: calc(var(${CheckboxClass.cssVarList.inputOutlineWidth}) + var(${CheckboxClass.cssVarList.inputOutlineOffset}));
|
|
1459
1579
|
}
|
|
1460
1580
|
`,
|
|
1461
1581
|
excludeAttrsSync: ['tabindex'],
|
|
1462
|
-
componentName: componentName$
|
|
1582
|
+
componentName: componentName$m
|
|
1463
1583
|
})
|
|
1464
1584
|
);
|
|
1465
1585
|
|
|
1466
|
-
customElements.define(componentName$
|
|
1586
|
+
customElements.define(componentName$n, BooleanInputInternal);
|
|
1467
1587
|
|
|
1468
|
-
customElements.define(componentName$
|
|
1588
|
+
customElements.define(componentName$m, CheckboxClass);
|
|
1469
1589
|
|
|
1470
|
-
const componentName$
|
|
1590
|
+
const componentName$l = getComponentName('switch-toggle');
|
|
1471
1591
|
|
|
1472
1592
|
const {
|
|
1473
|
-
host: host$
|
|
1593
|
+
host: host$a,
|
|
1474
1594
|
component,
|
|
1475
1595
|
checkboxElement: track,
|
|
1476
1596
|
checkboxSurface: knob,
|
|
1477
1597
|
checkboxHiddenLabel,
|
|
1478
|
-
label: label$
|
|
1479
|
-
requiredIndicator: requiredIndicator$
|
|
1598
|
+
label: label$7,
|
|
1599
|
+
requiredIndicator: requiredIndicator$6,
|
|
1600
|
+
helperText: helperText$6,
|
|
1601
|
+
errorMessage: errorMessage$6
|
|
1480
1602
|
} = {
|
|
1481
1603
|
host: { selector: () => ':host' },
|
|
1482
1604
|
label: { selector: '::part(label)' },
|
|
1483
|
-
requiredIndicator: { selector: '::part(required-indicator)::after' },
|
|
1605
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
|
1484
1606
|
component: { selector: 'vaadin-checkbox' },
|
|
1485
1607
|
checkboxElement: { selector: 'vaadin-checkbox::part(checkbox)' },
|
|
1486
1608
|
checkboxSurface: { selector: 'vaadin-checkbox::part(checkbox)::after' },
|
|
1487
1609
|
checkboxHiddenLabel: { selector: 'vaadin-checkbox [slot="label"]' },
|
|
1610
|
+
helperText: { selector: '::part(helper-text)' },
|
|
1611
|
+
errorMessage: { selector: '::part(error-message)' },
|
|
1488
1612
|
};
|
|
1489
1613
|
|
|
1490
1614
|
const SwitchToggleClass = compose(
|
|
1491
1615
|
createStyleMixin({
|
|
1492
1616
|
mappings: {
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1617
|
+
hostWidth: { ...host$a, property: 'width' },
|
|
1618
|
+
fontSize: [
|
|
1619
|
+
{ ...component, property: 'font-size' },
|
|
1620
|
+
{ ...label$7, property: 'font-size' },
|
|
1621
|
+
{ ...checkboxHiddenLabel, property: 'font-size' },
|
|
1622
|
+
],
|
|
1623
|
+
fontFamily: [
|
|
1624
|
+
{ ...label$7, property: 'font-family' },
|
|
1625
|
+
{ ...helperText$6, property: 'font-family' },
|
|
1626
|
+
{ ...errorMessage$6, property: 'font-family' }
|
|
1627
|
+
],
|
|
1498
1628
|
trackBorderWidth: { ...track, property: 'border-width' },
|
|
1499
1629
|
trackBorderStyle: { ...track, property: 'border-style' },
|
|
1500
1630
|
trackBorderColor: { ...track, property: 'border-color' },
|
|
1501
|
-
|
|
1502
|
-
// Checkbox
|
|
1503
1631
|
trackBackgroundColor: { ...track, property: 'background-color' },
|
|
1504
|
-
|
|
1505
|
-
|
|
1632
|
+
trackBorderRadius: { ...track, property: 'border-radius' },
|
|
1506
1633
|
trackWidth: [
|
|
1507
1634
|
{ ...track, property: 'width' },
|
|
1508
1635
|
],
|
|
@@ -1510,44 +1637,43 @@ const SwitchToggleClass = compose(
|
|
|
1510
1637
|
{ ...knob, property: 'font-size' },
|
|
1511
1638
|
{ ...track, property: 'height' }
|
|
1512
1639
|
],
|
|
1513
|
-
switchOutlineWidth: { ...track, property: 'outline-width' },
|
|
1514
|
-
switchOutlineOffset: { ...track, property: 'outline-offset' },
|
|
1515
|
-
switchOutlineColor: { ...track, property: 'outline-color' },
|
|
1516
|
-
switchOutlineStyle: { ...track, property: 'outline-style' },
|
|
1517
1640
|
|
|
1518
|
-
// Knob
|
|
1519
1641
|
knobSize: [
|
|
1520
1642
|
{ ...knob, property: 'width' },
|
|
1521
1643
|
{ ...knob, property: 'height' },
|
|
1522
1644
|
],
|
|
1523
1645
|
knobTextColor: { ...knob, property: 'color' },
|
|
1524
1646
|
knobRadius: { ...knob, property: 'border-radius' },
|
|
1525
|
-
|
|
1647
|
+
knobTransitionDuration: { ...knob, property: 'transition' },
|
|
1526
1648
|
knobColor: { ...knob, property: 'background-color' },
|
|
1527
1649
|
knobTopOffset: { ...knob, property: 'top' },
|
|
1528
|
-
|
|
1650
|
+
knobLeftOffset: { ...knob, property: 'left' },
|
|
1529
1651
|
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
{ ...label$5, property: 'padding-left' },
|
|
1652
|
+
labelSpacing: [
|
|
1653
|
+
{ ...label$7, property: 'padding-left' },
|
|
1533
1654
|
{ ...checkboxHiddenLabel, property: 'padding-left' }
|
|
1534
1655
|
],
|
|
1535
1656
|
labelLineHeight: [
|
|
1536
|
-
{ ...label$
|
|
1657
|
+
{ ...label$7, property: 'line-height' },
|
|
1537
1658
|
{ ...checkboxHiddenLabel, property: 'line-height' }
|
|
1538
1659
|
],
|
|
1539
1660
|
labelFontWeight: [
|
|
1540
|
-
{ ...label$
|
|
1661
|
+
{ ...label$7, property: 'font-weight' },
|
|
1541
1662
|
{ ...checkboxHiddenLabel, property: 'font-weight' }
|
|
1542
1663
|
],
|
|
1543
1664
|
labelTextColor: [
|
|
1544
|
-
{ ...label$
|
|
1545
|
-
{ ...requiredIndicator$
|
|
1665
|
+
{ ...label$7, property: 'color' },
|
|
1666
|
+
{ ...requiredIndicator$6, property: 'color' },
|
|
1546
1667
|
],
|
|
1668
|
+
labelRequiredIndicator: { ...requiredIndicator$6, property: 'content' },
|
|
1669
|
+
inputOutlineWidth: { ...track, property: 'outline-width' },
|
|
1670
|
+
inputOutlineOffset: { ...track, property: 'outline-offset' },
|
|
1671
|
+
inputOutlineColor: { ...track, property: 'outline-color' },
|
|
1672
|
+
inputOutlineStyle: { ...track, property: 'outline-style' },
|
|
1547
1673
|
},
|
|
1548
1674
|
}),
|
|
1549
1675
|
draggableMixin,
|
|
1550
|
-
|
|
1676
|
+
composedProxyInputMixin,
|
|
1551
1677
|
componentNameValidationMixin,
|
|
1552
1678
|
booleanFieldMixin
|
|
1553
1679
|
)(
|
|
@@ -1555,36 +1681,37 @@ const SwitchToggleClass = compose(
|
|
|
1555
1681
|
slots: [],
|
|
1556
1682
|
wrappedEleName: 'vaadin-text-field',
|
|
1557
1683
|
style: () => `
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1684
|
+
${commonStyles}
|
|
1685
|
+
:host {
|
|
1686
|
+
padding: calc(var(${SwitchToggleClass.cssVarList.inputOutlineWidth}) + var(${SwitchToggleClass.cssVarList.inputOutlineOffset}));
|
|
1687
|
+
}
|
|
1688
|
+
vaadin-text-field::part(label) {
|
|
1689
|
+
left: calc(var(${SwitchToggleClass.cssVarList.trackWidth}) + var(${SwitchToggleClass.cssVarList.trackBorderWidth}) * 2);
|
|
1690
|
+
}
|
|
1691
|
+
vaadin-checkbox[active]::part(checkbox) {
|
|
1692
|
+
transform: none;
|
|
1693
|
+
}
|
|
1694
|
+
vaadin-checkbox[checked]::part(checkbox) {
|
|
1695
|
+
background: none;
|
|
1696
|
+
}
|
|
1697
|
+
vaadin-checkbox::part(checkbox)::after {
|
|
1698
|
+
position: absolute;
|
|
1699
|
+
opacity: 1;
|
|
1700
|
+
content: '';
|
|
1701
|
+
}
|
|
1575
1702
|
`,
|
|
1576
1703
|
excludeAttrsSync: ['tabindex'],
|
|
1577
|
-
componentName: componentName$
|
|
1704
|
+
componentName: componentName$l
|
|
1578
1705
|
})
|
|
1579
1706
|
);
|
|
1580
1707
|
|
|
1581
|
-
customElements.define(componentName$
|
|
1708
|
+
customElements.define(componentName$l, SwitchToggleClass);
|
|
1582
1709
|
|
|
1583
|
-
const componentName$
|
|
1710
|
+
const componentName$k = getComponentName('loader-linear');
|
|
1584
1711
|
|
|
1585
|
-
class RawLoaderLinear extends createBaseClass({ componentName: componentName$
|
|
1712
|
+
class RawLoaderLinear extends createBaseClass({ componentName: componentName$k, baseSelector: ':host > div' }) {
|
|
1586
1713
|
static get componentName() {
|
|
1587
|
-
return componentName$
|
|
1714
|
+
return componentName$k;
|
|
1588
1715
|
}
|
|
1589
1716
|
constructor() {
|
|
1590
1717
|
super();
|
|
@@ -1605,7 +1732,6 @@ class RawLoaderLinear extends createBaseClass({ componentName: componentName$j,
|
|
|
1605
1732
|
position: absolute;
|
|
1606
1733
|
left: 0;
|
|
1607
1734
|
}
|
|
1608
|
-
|
|
1609
1735
|
:host > div {
|
|
1610
1736
|
width: 100%;
|
|
1611
1737
|
}
|
|
@@ -1615,38 +1741,43 @@ class RawLoaderLinear extends createBaseClass({ componentName: componentName$j,
|
|
|
1615
1741
|
}
|
|
1616
1742
|
}
|
|
1617
1743
|
|
|
1618
|
-
const selectors$
|
|
1619
|
-
root: {},
|
|
1744
|
+
const selectors$1 = {
|
|
1620
1745
|
after: { selector: '::after' },
|
|
1621
1746
|
host: { selector: () => ':host' }
|
|
1622
1747
|
};
|
|
1623
1748
|
|
|
1624
|
-
const {
|
|
1749
|
+
const { after: after$1, host: host$9 } = selectors$1;
|
|
1625
1750
|
|
|
1626
1751
|
const LoaderLinearClass = compose(
|
|
1627
1752
|
createStyleMixin({
|
|
1628
1753
|
mappings: {
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1754
|
+
hostDisplay: {},
|
|
1755
|
+
hostWidth: { ...host$9, property: 'width' },
|
|
1756
|
+
barHeight: [
|
|
1757
|
+
{ property: 'height' },
|
|
1758
|
+
{ ...after$1, property: 'height' }
|
|
1759
|
+
],
|
|
1760
|
+
barBorderRadius: [
|
|
1761
|
+
{ property: 'border-radius' },
|
|
1762
|
+
{ ...after$1, property: 'border-radius' }
|
|
1763
|
+
],
|
|
1764
|
+
barBackgroundColor: { property: 'background-color' },
|
|
1765
|
+
barColor: { ...after$1, property: 'background-color' },
|
|
1635
1766
|
barWidth: { ...after$1, property: 'width' },
|
|
1636
|
-
animationDuration: [
|
|
1637
|
-
animationTimingFunction: [
|
|
1638
|
-
animationIterationCount: [
|
|
1767
|
+
animationDuration: [{}, after$1],
|
|
1768
|
+
animationTimingFunction: [{}, after$1],
|
|
1769
|
+
animationIterationCount: [{}, after$1]
|
|
1639
1770
|
}
|
|
1640
1771
|
}),
|
|
1641
1772
|
draggableMixin,
|
|
1642
1773
|
componentNameValidationMixin
|
|
1643
1774
|
)(RawLoaderLinear);
|
|
1644
1775
|
|
|
1645
|
-
customElements.define(componentName$
|
|
1776
|
+
customElements.define(componentName$k, LoaderLinearClass);
|
|
1646
1777
|
|
|
1647
|
-
const componentName$
|
|
1778
|
+
const componentName$j = getComponentName('loader-radial');
|
|
1648
1779
|
|
|
1649
|
-
class RawLoaderRadial extends createBaseClass({ componentName: componentName$
|
|
1780
|
+
class RawLoaderRadial extends createBaseClass({ componentName: componentName$j, baseSelector: ':host > div' }) {
|
|
1650
1781
|
constructor() {
|
|
1651
1782
|
super();
|
|
1652
1783
|
|
|
@@ -1672,17 +1803,18 @@ class RawLoaderRadial extends createBaseClass({ componentName: componentName$i,
|
|
|
1672
1803
|
const LoaderRadialClass = compose(
|
|
1673
1804
|
createStyleMixin({
|
|
1674
1805
|
mappings: {
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1806
|
+
hostDisplay: { property: 'display' },
|
|
1807
|
+
spinnerSize: [
|
|
1808
|
+
{ property: 'width' },
|
|
1809
|
+
{ property: 'height' }
|
|
1810
|
+
],
|
|
1811
|
+
spinnerBorderWidth: { property: 'border-width' },
|
|
1812
|
+
spinnerBorderStyle: { property: 'border-style' },
|
|
1813
|
+
spinnerBorderRadius: { property: 'border-radius' },
|
|
1814
|
+
spinnerQuadrant1Color: { property: 'border-top-color' },
|
|
1815
|
+
spinnerQuadrant2Color: { property: 'border-bottom-color' },
|
|
1816
|
+
spinnerQuadrant3Color: { property: 'border-right-color' },
|
|
1817
|
+
spinnerQuadrant4Color: { property: 'border-left-color' },
|
|
1686
1818
|
animationDuration: {},
|
|
1687
1819
|
animationTimingFunction: {},
|
|
1688
1820
|
animationIterationCount: {}
|
|
@@ -1692,11 +1824,11 @@ const LoaderRadialClass = compose(
|
|
|
1692
1824
|
componentNameValidationMixin
|
|
1693
1825
|
)(RawLoaderRadial);
|
|
1694
1826
|
|
|
1695
|
-
customElements.define(componentName$
|
|
1827
|
+
customElements.define(componentName$j, LoaderRadialClass);
|
|
1696
1828
|
|
|
1697
|
-
const componentName$
|
|
1829
|
+
const componentName$i = getComponentName('container');
|
|
1698
1830
|
|
|
1699
|
-
class RawContainer extends createBaseClass({ componentName: componentName$
|
|
1831
|
+
class RawContainer extends createBaseClass({ componentName: componentName$i, baseSelector: ':host > slot' }) {
|
|
1700
1832
|
constructor() {
|
|
1701
1833
|
super();
|
|
1702
1834
|
|
|
@@ -1707,11 +1839,11 @@ class RawContainer extends createBaseClass({ componentName: componentName$h, bas
|
|
|
1707
1839
|
width: 100%;
|
|
1708
1840
|
height: 100%;
|
|
1709
1841
|
display: flex;
|
|
1710
|
-
overflow:
|
|
1842
|
+
overflow: auto;
|
|
1711
1843
|
}
|
|
1712
1844
|
:host {
|
|
1713
1845
|
display: inline-block;
|
|
1714
|
-
overflow:
|
|
1846
|
+
overflow: hidden;
|
|
1715
1847
|
}
|
|
1716
1848
|
</style>
|
|
1717
1849
|
<slot></slot>
|
|
@@ -1722,8 +1854,8 @@ class RawContainer extends createBaseClass({ componentName: componentName$h, bas
|
|
|
1722
1854
|
const ContainerClass = compose(
|
|
1723
1855
|
createStyleMixin({
|
|
1724
1856
|
mappings: {
|
|
1725
|
-
|
|
1726
|
-
|
|
1857
|
+
hostHeight: { selector: () => ':host', property: 'height' },
|
|
1858
|
+
hostWidth: { selector: () => ':host', property: 'width' },
|
|
1727
1859
|
|
|
1728
1860
|
verticalPadding: [
|
|
1729
1861
|
{ property: 'padding-top' },
|
|
@@ -1755,50 +1887,45 @@ const ContainerClass = compose(
|
|
|
1755
1887
|
componentNameValidationMixin
|
|
1756
1888
|
)(RawContainer);
|
|
1757
1889
|
|
|
1758
|
-
customElements.define(componentName$
|
|
1890
|
+
customElements.define(componentName$i, ContainerClass);
|
|
1759
1891
|
|
|
1760
|
-
const componentName$
|
|
1761
|
-
class RawDivider extends createBaseClass({ componentName: componentName$
|
|
1892
|
+
const componentName$h = getComponentName('divider');
|
|
1893
|
+
class RawDivider extends createBaseClass({ componentName: componentName$h, baseSelector: ':host > div' }) {
|
|
1762
1894
|
constructor() {
|
|
1763
1895
|
super();
|
|
1764
1896
|
|
|
1765
1897
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
<descope-text>
|
|
1798
|
-
<slot></slot>
|
|
1799
|
-
</descope-text>
|
|
1800
|
-
</div>
|
|
1801
|
-
`;
|
|
1898
|
+
<style>
|
|
1899
|
+
:host {
|
|
1900
|
+
display: inline-block;
|
|
1901
|
+
}
|
|
1902
|
+
:host > div {
|
|
1903
|
+
display: flex;
|
|
1904
|
+
height: 100%;
|
|
1905
|
+
width: 100%;
|
|
1906
|
+
}
|
|
1907
|
+
:host > div::before,
|
|
1908
|
+
:host > div::after {
|
|
1909
|
+
content: '';
|
|
1910
|
+
flex-grow: 1;
|
|
1911
|
+
}
|
|
1912
|
+
descope-text {
|
|
1913
|
+
flex-grow: 0;
|
|
1914
|
+
flex-shrink: 0;
|
|
1915
|
+
}
|
|
1916
|
+
:host(:empty) descope-text {
|
|
1917
|
+
display: none;
|
|
1918
|
+
}
|
|
1919
|
+
:host([vertical="true"]) div {
|
|
1920
|
+
width: fit-content;
|
|
1921
|
+
}
|
|
1922
|
+
</style>
|
|
1923
|
+
<div>
|
|
1924
|
+
<descope-text>
|
|
1925
|
+
<slot></slot>
|
|
1926
|
+
</descope-text>
|
|
1927
|
+
</div>
|
|
1928
|
+
`;
|
|
1802
1929
|
|
|
1803
1930
|
this.textComponent = this.shadowRoot.querySelector('descope-text');
|
|
1804
1931
|
|
|
@@ -1808,41 +1935,65 @@ class RawDivider extends createBaseClass({ componentName: componentName$g, baseS
|
|
|
1808
1935
|
}
|
|
1809
1936
|
}
|
|
1810
1937
|
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1938
|
+
const {
|
|
1939
|
+
host: host$8,
|
|
1940
|
+
before,
|
|
1941
|
+
after,
|
|
1942
|
+
text: text$3,
|
|
1943
|
+
} = {
|
|
1944
|
+
host: { selector: () => ':host' },
|
|
1813
1945
|
before: { selector: '::before' },
|
|
1814
1946
|
after: { selector: '::after' },
|
|
1815
1947
|
text: { selector: 'descope-text' },
|
|
1816
|
-
host: { selector: () => ':host' },
|
|
1817
1948
|
};
|
|
1818
1949
|
|
|
1819
|
-
const { root, before, after, text: text$2, host: host$6 } = selectors$2;
|
|
1820
|
-
|
|
1821
1950
|
const DividerClass = compose(
|
|
1822
1951
|
createStyleMixin({
|
|
1823
1952
|
mappings: {
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1953
|
+
hostWidth: { ...host$8, property: 'width' },
|
|
1954
|
+
hostPadding: { ...host$8, property: 'padding' },
|
|
1955
|
+
|
|
1956
|
+
minHeight: {},
|
|
1957
|
+
alignItems: {},
|
|
1958
|
+
alignSelf: {},
|
|
1959
|
+
flexDirection: {},
|
|
1960
|
+
|
|
1961
|
+
labelTextWidth: { ...text$3, property: 'width' },
|
|
1962
|
+
labelTextMaxWidth: { ...text$3, property: 'max-width' },
|
|
1963
|
+
labelTextVerticalSpacing: [
|
|
1964
|
+
{ ...text$3, property: 'padding-top' },
|
|
1965
|
+
{ ...text$3, property: 'padding-bottom' }
|
|
1966
|
+
],
|
|
1967
|
+
labelTextHorizontalSpacing: [
|
|
1968
|
+
{ ...text$3, property: 'padding-right' },
|
|
1969
|
+
{ ...text$3, property: 'padding-left' }
|
|
1970
|
+
],
|
|
1971
|
+
|
|
1972
|
+
stripeColor: [
|
|
1973
|
+
{ ...before, property: 'background-color' },
|
|
1974
|
+
{ ...after, property: 'background-color' }
|
|
1975
|
+
],
|
|
1976
|
+
stripeHorizontalThickness: [
|
|
1977
|
+
{ ...before, property: 'height' },
|
|
1978
|
+
{ ...after, property: 'height' }
|
|
1979
|
+
],
|
|
1980
|
+
stripeVerticalThickness: [
|
|
1981
|
+
{ ...before, property: 'width' },
|
|
1982
|
+
{ ...after, property: 'width' }
|
|
1983
|
+
],
|
|
1984
|
+
stripeColorOpacity: [
|
|
1985
|
+
{ ...before, property: 'opacity' },
|
|
1986
|
+
{ ...after, property: 'opacity' }
|
|
1987
|
+
],
|
|
1837
1988
|
},
|
|
1838
1989
|
}),
|
|
1839
1990
|
draggableMixin,
|
|
1840
1991
|
componentNameValidationMixin
|
|
1841
1992
|
)(RawDivider);
|
|
1842
1993
|
|
|
1843
|
-
const componentName$
|
|
1994
|
+
const componentName$g = getComponentName('text');
|
|
1844
1995
|
|
|
1845
|
-
class RawText extends createBaseClass({ componentName: componentName$
|
|
1996
|
+
class RawText extends createBaseClass({ componentName: componentName$g, baseSelector: ':host > slot' }) {
|
|
1846
1997
|
constructor() {
|
|
1847
1998
|
super();
|
|
1848
1999
|
|
|
@@ -1864,147 +2015,138 @@ class RawText extends createBaseClass({ componentName: componentName$f, baseSele
|
|
|
1864
2015
|
const TextClass = compose(
|
|
1865
2016
|
createStyleMixin({
|
|
1866
2017
|
mappings: {
|
|
2018
|
+
hostWidth: { selector: () => ':host', property: 'width' },
|
|
2019
|
+
fontSize: { property: 'font-size' },
|
|
2020
|
+
textColor: { property: 'color' },
|
|
2021
|
+
textLineHeight: { property: 'line-height' },
|
|
2022
|
+
textLetterSpacing: { property: 'letter-spacing' },
|
|
2023
|
+
textShadow: {},
|
|
2024
|
+
textAlign: {},
|
|
2025
|
+
textTransform: {},
|
|
1867
2026
|
fontFamily: {},
|
|
1868
|
-
lineHeight: {},
|
|
1869
2027
|
fontStyle: {},
|
|
1870
|
-
fontSize: {},
|
|
1871
2028
|
fontWeight: {},
|
|
1872
|
-
width: { selector: () => ':host' },
|
|
1873
|
-
color: {},
|
|
1874
|
-
letterSpacing: {},
|
|
1875
|
-
textShadow: {},
|
|
1876
2029
|
borderWidth: {},
|
|
1877
2030
|
borderStyle: {},
|
|
1878
2031
|
borderColor: {},
|
|
1879
|
-
textTransform: {},
|
|
1880
|
-
textAlign: {},
|
|
1881
2032
|
},
|
|
1882
2033
|
}),
|
|
1883
2034
|
draggableMixin,
|
|
1884
2035
|
componentNameValidationMixin
|
|
1885
2036
|
)(RawText);
|
|
1886
2037
|
|
|
1887
|
-
customElements.define(componentName$
|
|
2038
|
+
customElements.define(componentName$g, TextClass);
|
|
1888
2039
|
|
|
1889
|
-
customElements.define(componentName$
|
|
2040
|
+
customElements.define(componentName$h, DividerClass);
|
|
1890
2041
|
|
|
1891
|
-
const
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
input
|
|
2042
|
+
const {
|
|
2043
|
+
host: host$7,
|
|
2044
|
+
label: label$6,
|
|
2045
|
+
placeholder: placeholder$2,
|
|
2046
|
+
requiredIndicator: requiredIndicator$5,
|
|
2047
|
+
inputField: inputField$4,
|
|
2048
|
+
input,
|
|
2049
|
+
readOnlyInput,
|
|
2050
|
+
helperText: helperText$5,
|
|
2051
|
+
errorMessage: errorMessage$5
|
|
2052
|
+
} = {
|
|
2053
|
+
host: { selector: () => ':host' },
|
|
2054
|
+
label: { selector: '::part(label)' },
|
|
2055
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
|
2056
|
+
placeholder: { selector: '> input:placeholder-shown' },
|
|
2057
|
+
inputField: { selector: '::part(input-field)' },
|
|
2058
|
+
input: { selector: 'input' },
|
|
2059
|
+
readOnlyInput: { selector: '[readonly]::part(input-field)::after' },
|
|
2060
|
+
helperText: { selector: '::part(helper-text)' },
|
|
2061
|
+
errorMessage: { selector: '::part(error-message)' }
|
|
1898
2062
|
};
|
|
1899
2063
|
|
|
1900
2064
|
var textFieldMappings = {
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
borderColor: [
|
|
1906
|
-
{ selector: selectors$1.inputWrapper },
|
|
1907
|
-
{ selector: selectors$1.readOnlyInput }
|
|
2065
|
+
// we apply font-size also on the host so we can set its width with em
|
|
2066
|
+
fontSize: [
|
|
2067
|
+
{ property: 'font-size' },
|
|
2068
|
+
{ ...host$7, property: 'font-size' }
|
|
1908
2069
|
],
|
|
1909
|
-
|
|
1910
|
-
{
|
|
1911
|
-
{
|
|
2070
|
+
fontFamily: [
|
|
2071
|
+
{ ...label$6, property: 'font-family' },
|
|
2072
|
+
{ ...inputField$4, property: 'font-family' },
|
|
2073
|
+
{ ...helperText$5, property: 'font-family' },
|
|
2074
|
+
{ ...errorMessage$5, property: 'font-family' }
|
|
1912
2075
|
],
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
2076
|
+
|
|
2077
|
+
hostWidth: { ...host$7, property: 'width' },
|
|
2078
|
+
|
|
2079
|
+
inputBackgroundColor: { ...inputField$4, property: 'background-color' },
|
|
2080
|
+
|
|
2081
|
+
labelTextColor: [
|
|
2082
|
+
{ ...label$6, property: 'color' },
|
|
2083
|
+
{ ...requiredIndicator$5, property: 'color' }
|
|
1916
2084
|
],
|
|
1917
|
-
borderRadius: { selector: selectors$1.inputWrapper },
|
|
1918
|
-
boxShadow: { selector: selectors$1.inputWrapper },
|
|
1919
2085
|
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
outlineStyle: { selector: selectors$1.inputWrapper },
|
|
1929
|
-
outlineWidth: [
|
|
1930
|
-
{ selector: selectors$1.inputWrapper },
|
|
1931
|
-
// we need to make sure there is enough space for the outline
|
|
1932
|
-
{ property: 'padding' }
|
|
2086
|
+
inputValueTextColor: { ...inputField$4, property: 'color' },
|
|
2087
|
+
inputCaretTextColor: { ...input, property: 'color' },
|
|
2088
|
+
|
|
2089
|
+
labelRequiredIndicator: { ...requiredIndicator$5, property: 'content' },
|
|
2090
|
+
|
|
2091
|
+
inputBorderColor: [
|
|
2092
|
+
{ ...inputField$4, property: 'border-color' },
|
|
2093
|
+
{ ...readOnlyInput, property: 'border-color' }
|
|
1933
2094
|
],
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
2095
|
+
inputBorderWidth: [
|
|
2096
|
+
{ ...inputField$4, property: 'border-width' },
|
|
2097
|
+
{ ...readOnlyInput, property: 'border-width' }
|
|
2098
|
+
],
|
|
2099
|
+
inputBorderStyle: [
|
|
2100
|
+
{ ...inputField$4, property: 'border-style' },
|
|
2101
|
+
{ ...readOnlyInput, property: 'border-style' }
|
|
2102
|
+
],
|
|
2103
|
+
inputBorderRadius: { ...inputField$4, property: 'border-radius' },
|
|
2104
|
+
|
|
2105
|
+
inputHeight: { ...inputField$4, property: 'height' },
|
|
2106
|
+
inputPadding: { ...inputField$4, property: 'padding' },
|
|
2107
|
+
|
|
2108
|
+
inputOutlineColor: { ...inputField$4, property: 'outline-color' },
|
|
2109
|
+
inputOutlineStyle: { ...inputField$4, property: 'outline-style' },
|
|
2110
|
+
inputOutlineWidth: { ...inputField$4, property: 'outline-width' },
|
|
2111
|
+
inputOutlineOffset: { ...inputField$4, property: 'outline-offset' },
|
|
2112
|
+
|
|
2113
|
+
inputTextAlign: { ...input, property: 'text-align' },
|
|
1938
2114
|
|
|
1939
|
-
|
|
2115
|
+
inputPlaceholderColor: { ...placeholder$2, property: 'color' }
|
|
2116
|
+
};
|
|
1940
2117
|
|
|
1941
|
-
|
|
2118
|
+
const componentName$f = getComponentName('email-field');
|
|
1942
2119
|
|
|
1943
2120
|
const EmailFieldClass = compose(
|
|
1944
2121
|
createStyleMixin({
|
|
1945
|
-
mappings:
|
|
1946
|
-
...textFieldMappings
|
|
1947
|
-
}
|
|
2122
|
+
mappings: textFieldMappings
|
|
1948
2123
|
}),
|
|
1949
2124
|
draggableMixin,
|
|
1950
|
-
|
|
2125
|
+
composedProxyInputMixin,
|
|
1951
2126
|
componentNameValidationMixin
|
|
1952
2127
|
)(
|
|
1953
2128
|
createProxy({
|
|
1954
2129
|
slots: ['suffix'],
|
|
1955
2130
|
wrappedEleName: 'vaadin-email-field',
|
|
1956
|
-
style: () =>
|
|
2131
|
+
style: () => `
|
|
2132
|
+
:host {
|
|
2133
|
+
display: inline-block;
|
|
2134
|
+
max-width: 100%;
|
|
2135
|
+
min-width: 10em;
|
|
2136
|
+
padding: calc(var(${EmailFieldClass.cssVarList.inputOutlineWidth}) + var(${EmailFieldClass.cssVarList.inputOutlineOffset}))
|
|
2137
|
+
}
|
|
2138
|
+
${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
|
|
2139
|
+
`,
|
|
1957
2140
|
excludeAttrsSync: ['tabindex'],
|
|
1958
|
-
componentName: componentName$
|
|
2141
|
+
componentName: componentName$f
|
|
1959
2142
|
})
|
|
1960
2143
|
);
|
|
1961
2144
|
|
|
1962
|
-
|
|
1963
|
-
:host {
|
|
1964
|
-
display: inline-block;
|
|
1965
|
-
min-width: 10em;
|
|
1966
|
-
max-width: 100%;
|
|
1967
|
-
}
|
|
1968
|
-
vaadin-email-field {
|
|
1969
|
-
margin: 0;
|
|
1970
|
-
width: 100%;
|
|
1971
|
-
box-sizing: border-box;
|
|
1972
|
-
}
|
|
1973
|
-
vaadin-email-field::before {
|
|
1974
|
-
height: 0;
|
|
1975
|
-
}
|
|
1976
|
-
vaadin-email-field > input {
|
|
1977
|
-
-webkit-mask-image: none;
|
|
1978
|
-
}
|
|
1979
|
-
vaadin-email-field::part(input-field) {
|
|
1980
|
-
overflow: hidden;
|
|
1981
|
-
padding: 0;
|
|
1982
|
-
}
|
|
1983
|
-
vaadin-email-field[readonly] > input:placeholder-shown {
|
|
1984
|
-
opacity: 1;
|
|
1985
|
-
}
|
|
1986
|
-
vaadin-email-field input:-webkit-autofill,
|
|
1987
|
-
vaadin-email-field input:-webkit-autofill::first-line,
|
|
1988
|
-
vaadin-email-field input:-webkit-autofill:hover,
|
|
1989
|
-
vaadin-email-field input:-webkit-autofill:active,
|
|
1990
|
-
vaadin-email-field input:-webkit-autofill:focus {
|
|
1991
|
-
-webkit-text-fill-color: var(${EmailFieldClass.cssVarList.color});
|
|
1992
|
-
box-shadow: 0 0 0 var(${EmailFieldClass.cssVarList.height}) var(${EmailFieldClass.cssVarList.backgroundColor}) inset;
|
|
1993
|
-
}
|
|
1994
|
-
vaadin-email-field[required]::part(required-indicator)::after {
|
|
1995
|
-
content: "*";
|
|
1996
|
-
color: var(${EmailFieldClass.cssVarList.color});
|
|
1997
|
-
}
|
|
1998
|
-
vaadin-email-field[readonly]::part(input-field)::after {
|
|
1999
|
-
border: 0 solid;
|
|
2000
|
-
}
|
|
2001
|
-
`;
|
|
2002
|
-
|
|
2003
|
-
customElements.define(componentName$e, EmailFieldClass);
|
|
2145
|
+
customElements.define(componentName$f, EmailFieldClass);
|
|
2004
2146
|
|
|
2005
|
-
const componentName$
|
|
2147
|
+
const componentName$e = getComponentName('link');
|
|
2006
2148
|
|
|
2007
|
-
class RawLink extends createBaseClass({ componentName: componentName$
|
|
2149
|
+
class RawLink extends createBaseClass({ componentName: componentName$e, baseSelector: ':host a' }) {
|
|
2008
2150
|
constructor() {
|
|
2009
2151
|
super();
|
|
2010
2152
|
|
|
@@ -2046,32 +2188,35 @@ const selectors = {
|
|
|
2046
2188
|
text: { selector: () => TextClass.componentName }
|
|
2047
2189
|
};
|
|
2048
2190
|
|
|
2049
|
-
const { anchor, text: text$
|
|
2191
|
+
const { anchor, text: text$2, host: host$6, wrapper } = selectors;
|
|
2050
2192
|
|
|
2051
2193
|
const LinkClass = compose(
|
|
2052
2194
|
createStyleMixin({
|
|
2053
2195
|
mappings: {
|
|
2054
|
-
|
|
2196
|
+
hostWidth: { ...host$6, property: 'width' },
|
|
2055
2197
|
textAlign: wrapper,
|
|
2056
|
-
|
|
2198
|
+
textColor: [
|
|
2199
|
+
{ ...anchor, property: 'color' },
|
|
2200
|
+
{ ...text$2, property: TextClass.cssVarList.textColor }
|
|
2201
|
+
],
|
|
2057
2202
|
cursor: anchor,
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2203
|
+
textUnderlineWidth: { ...anchor, property: 'border-bottom-width' },
|
|
2204
|
+
textUnderlineStyle: { ...anchor, property: 'border-bottom-style' },
|
|
2205
|
+
textUnderlineColor: { ...anchor, property: 'border-bottom-color' }
|
|
2061
2206
|
},
|
|
2062
2207
|
}),
|
|
2063
2208
|
draggableMixin,
|
|
2064
2209
|
componentNameValidationMixin
|
|
2065
2210
|
)(RawLink);
|
|
2066
2211
|
|
|
2067
|
-
customElements.define(componentName$
|
|
2212
|
+
customElements.define(componentName$e, LinkClass);
|
|
2068
2213
|
|
|
2069
|
-
const componentName$
|
|
2214
|
+
const componentName$d = getComponentName('logo');
|
|
2070
2215
|
|
|
2071
2216
|
let style;
|
|
2072
2217
|
const getStyle = () => style;
|
|
2073
2218
|
|
|
2074
|
-
class RawLogo extends createBaseClass({ componentName: componentName$
|
|
2219
|
+
class RawLogo extends createBaseClass({ componentName: componentName$d, baseSelector: ':host > div' }) {
|
|
2075
2220
|
constructor() {
|
|
2076
2221
|
super();
|
|
2077
2222
|
|
|
@@ -2113,69 +2258,36 @@ style = `
|
|
|
2113
2258
|
}
|
|
2114
2259
|
`;
|
|
2115
2260
|
|
|
2116
|
-
customElements.define(componentName$
|
|
2261
|
+
customElements.define(componentName$d, LogoClass);
|
|
2117
2262
|
|
|
2118
|
-
const componentName$
|
|
2119
|
-
|
|
2120
|
-
let overrides$3 = ``;
|
|
2263
|
+
const componentName$c = getComponentName('number-field');
|
|
2121
2264
|
|
|
2122
2265
|
const NumberFieldClass = compose(
|
|
2123
2266
|
createStyleMixin({
|
|
2124
|
-
mappings:
|
|
2125
|
-
...textFieldMappings
|
|
2126
|
-
}
|
|
2267
|
+
mappings: textFieldMappings
|
|
2127
2268
|
}),
|
|
2128
2269
|
draggableMixin,
|
|
2129
|
-
|
|
2270
|
+
composedProxyInputMixin,
|
|
2130
2271
|
componentNameValidationMixin
|
|
2131
2272
|
)(
|
|
2132
2273
|
createProxy({
|
|
2133
2274
|
slots: ['prefix', 'suffix'],
|
|
2134
2275
|
wrappedEleName: 'vaadin-number-field',
|
|
2135
|
-
style: () =>
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
margin: 0;
|
|
2149
|
-
padding: 0;
|
|
2150
|
-
width: 100%;
|
|
2151
|
-
}
|
|
2152
|
-
vaadin-number-field > input {
|
|
2153
|
-
-webkit-mask-image: none;
|
|
2154
|
-
}
|
|
2155
|
-
vaadin-number-field::part(input-field) {
|
|
2156
|
-
padding: 0;
|
|
2157
|
-
}
|
|
2158
|
-
vaadin-number-field[readonly] > input:placeholder-shown {
|
|
2159
|
-
opacity: 1;
|
|
2160
|
-
}
|
|
2161
|
-
vaadin-number-field input:-webkit-autofill,
|
|
2162
|
-
vaadin-number-field input:-webkit-autofill::first-line,
|
|
2163
|
-
vaadin-number-field input:-webkit-autofill:hover,
|
|
2164
|
-
vaadin-number-field input:-webkit-autofill:active,
|
|
2165
|
-
vaadin-number-field input:-webkit-autofill:focus {
|
|
2166
|
-
-webkit-text-fill-color: var(${NumberFieldClass.cssVarList.color});
|
|
2167
|
-
box-shadow: 0 0 0 var(${NumberFieldClass.cssVarList.height}) var(${NumberFieldClass.cssVarList.backgroundColor}) inset;
|
|
2168
|
-
}
|
|
2169
|
-
vaadin-number-field[required]::part(required-indicator)::after {
|
|
2170
|
-
content: "*";
|
|
2171
|
-
color: var(${NumberFieldClass.cssVarList.color});
|
|
2172
|
-
}
|
|
2173
|
-
vaadin-number-field[readonly]::part(input-field)::after {
|
|
2174
|
-
border: 0 solid;
|
|
2175
|
-
}
|
|
2176
|
-
`;
|
|
2276
|
+
style: () => `
|
|
2277
|
+
:host {
|
|
2278
|
+
display: inline-block;
|
|
2279
|
+
max-width: 100%;
|
|
2280
|
+
min-width: 10em;
|
|
2281
|
+
padding: calc(var(${NumberFieldClass.cssVarList.inputOutlineWidth}) + var(${NumberFieldClass.cssVarList.inputOutlineOffset}));
|
|
2282
|
+
}
|
|
2283
|
+
${resetInputOverrides('vaadin-number-field', NumberFieldClass.cssVarList)}
|
|
2284
|
+
`,
|
|
2285
|
+
excludeAttrsSync: ['tabindex'],
|
|
2286
|
+
componentName: componentName$c
|
|
2287
|
+
})
|
|
2288
|
+
);
|
|
2177
2289
|
|
|
2178
|
-
customElements.define(componentName$
|
|
2290
|
+
customElements.define(componentName$c, NumberFieldClass);
|
|
2179
2291
|
|
|
2180
2292
|
const focusElement = (ele) => {
|
|
2181
2293
|
ele?.focus();
|
|
@@ -2191,7 +2303,7 @@ const getSanitizedCharacters = (str) => {
|
|
|
2191
2303
|
return [...pin]; // creating array of chars
|
|
2192
2304
|
};
|
|
2193
2305
|
|
|
2194
|
-
const componentName$
|
|
2306
|
+
const componentName$b = getComponentName('passcode-internal');
|
|
2195
2307
|
|
|
2196
2308
|
const observedAttributes$2 = [
|
|
2197
2309
|
'digits'
|
|
@@ -2205,7 +2317,7 @@ const forwardAttributes = [
|
|
|
2205
2317
|
'readonly'
|
|
2206
2318
|
];
|
|
2207
2319
|
|
|
2208
|
-
const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$
|
|
2320
|
+
const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$b, baseSelector: 'div' });
|
|
2209
2321
|
|
|
2210
2322
|
class PasscodeInternal extends BaseInputClass$2 {
|
|
2211
2323
|
static get observedAttributes() {
|
|
@@ -2213,7 +2325,7 @@ class PasscodeInternal extends BaseInputClass$2 {
|
|
|
2213
2325
|
}
|
|
2214
2326
|
|
|
2215
2327
|
static get componentName() {
|
|
2216
|
-
return componentName$
|
|
2328
|
+
return componentName$b;
|
|
2217
2329
|
}
|
|
2218
2330
|
|
|
2219
2331
|
constructor() {
|
|
@@ -2376,9 +2488,7 @@ class PasscodeInternal extends BaseInputClass$2 {
|
|
|
2376
2488
|
}
|
|
2377
2489
|
}
|
|
2378
2490
|
|
|
2379
|
-
const componentName$
|
|
2380
|
-
|
|
2381
|
-
let overrides$2 = ``;
|
|
2491
|
+
const componentName$a = getComponentName('text-field');
|
|
2382
2492
|
|
|
2383
2493
|
const observedAttrs = ['type'];
|
|
2384
2494
|
|
|
@@ -2407,70 +2517,29 @@ const TextFieldClass = compose(
|
|
|
2407
2517
|
mappings: textFieldMappings
|
|
2408
2518
|
}),
|
|
2409
2519
|
draggableMixin,
|
|
2410
|
-
|
|
2520
|
+
composedProxyInputMixin,
|
|
2411
2521
|
componentNameValidationMixin,
|
|
2412
2522
|
customMixin$3
|
|
2413
2523
|
)(
|
|
2414
2524
|
createProxy({
|
|
2415
2525
|
slots: ['prefix', 'suffix'],
|
|
2416
2526
|
wrappedEleName: 'vaadin-text-field',
|
|
2417
|
-
style: () =>
|
|
2527
|
+
style: () => `
|
|
2528
|
+
:host {
|
|
2529
|
+
display: inline-block;
|
|
2530
|
+
max-width: 100%;
|
|
2531
|
+
min-width: 10em;
|
|
2532
|
+
padding: calc(var(${TextFieldClass.cssVarList.inputOutlineWidth}) + var(${TextFieldClass.cssVarList.inputOutlineOffset}));
|
|
2533
|
+
}
|
|
2534
|
+
${resetInputFieldDefaultWidth()}
|
|
2535
|
+
${resetInputOverrides('vaadin-text-field', TextFieldClass.cssVarList)}
|
|
2536
|
+
`,
|
|
2418
2537
|
excludeAttrsSync: ['tabindex'],
|
|
2419
|
-
componentName: componentName$
|
|
2538
|
+
componentName: componentName$a
|
|
2420
2539
|
})
|
|
2421
2540
|
);
|
|
2422
2541
|
|
|
2423
|
-
|
|
2424
|
-
:host {
|
|
2425
|
-
display: inline-block;
|
|
2426
|
-
--vaadin-field-default-width: auto;
|
|
2427
|
-
max-width: 100%;
|
|
2428
|
-
min-width: 10em;
|
|
2429
|
-
|
|
2430
|
-
}
|
|
2431
|
-
vaadin-text-field {
|
|
2432
|
-
margin: 0;
|
|
2433
|
-
width: 100%;
|
|
2434
|
-
height: 100%;
|
|
2435
|
-
box-sizing: border-box;
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
vaadin-text-field::part(input-field) {
|
|
2439
|
-
overflow: hidden;
|
|
2440
|
-
padding: 0;
|
|
2441
|
-
}
|
|
2442
|
-
vaadin-text-field[disabled] > input:placeholder-shown,
|
|
2443
|
-
vaadin-text-field[readonly] > input:placeholder-shown {
|
|
2444
|
-
opacity: 1;
|
|
2445
|
-
}
|
|
2446
|
-
vaadin-text-field input:-webkit-autofill,
|
|
2447
|
-
vaadin-text-field input:-webkit-autofill::first-line,
|
|
2448
|
-
vaadin-text-field input:-webkit-autofill:hover,
|
|
2449
|
-
vaadin-text-field input:-webkit-autofill:active,
|
|
2450
|
-
vaadin-text-field input:-webkit-autofill:focus {
|
|
2451
|
-
-webkit-text-fill-color: var(${TextFieldClass.cssVarList.color});
|
|
2452
|
-
box-shadow: 0 0 0 var(${TextFieldClass.cssVarList.height}) var(${TextFieldClass.cssVarList.backgroundColor}) inset;
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
|
-
vaadin-text-field > input {
|
|
2456
|
-
-webkit-mask-image: none;
|
|
2457
|
-
min-height: 0;
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
|
-
vaadin-text-field[required]::part(required-indicator)::after {
|
|
2461
|
-
content: "*";
|
|
2462
|
-
color: var(${TextFieldClass.cssVarList.color});
|
|
2463
|
-
}
|
|
2464
|
-
vaadin-text-field::part(input-field)::after {
|
|
2465
|
-
opacity: 0 !important;
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
vaadin-text-field::before {
|
|
2469
|
-
height: unset;
|
|
2470
|
-
}
|
|
2471
|
-
`;
|
|
2472
|
-
|
|
2473
|
-
const componentName$8 = getComponentName('passcode');
|
|
2542
|
+
const componentName$9 = getComponentName('passcode');
|
|
2474
2543
|
|
|
2475
2544
|
const observedAttributes$1 = [
|
|
2476
2545
|
'digits'
|
|
@@ -2495,17 +2564,17 @@ const customMixin$2 = (superclass) =>
|
|
|
2495
2564
|
const template = document.createElement('template');
|
|
2496
2565
|
|
|
2497
2566
|
template.innerHTML = `
|
|
2498
|
-
<${componentName$
|
|
2567
|
+
<${componentName$b}
|
|
2499
2568
|
bordered="true"
|
|
2500
2569
|
name="code"
|
|
2501
2570
|
tabindex="-1"
|
|
2502
2571
|
slot="input"
|
|
2503
|
-
></${componentName$
|
|
2572
|
+
></${componentName$b}>
|
|
2504
2573
|
`;
|
|
2505
2574
|
|
|
2506
2575
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
2507
2576
|
|
|
2508
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
|
2577
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$b);
|
|
2509
2578
|
|
|
2510
2579
|
forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size'] });
|
|
2511
2580
|
}
|
|
@@ -2519,10 +2588,15 @@ const customMixin$2 = (superclass) =>
|
|
|
2519
2588
|
}
|
|
2520
2589
|
};
|
|
2521
2590
|
|
|
2522
|
-
const {
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2591
|
+
const {
|
|
2592
|
+
host: host$5,
|
|
2593
|
+
digitField,
|
|
2594
|
+
label: label$5,
|
|
2595
|
+
requiredIndicator: requiredIndicator$4,
|
|
2596
|
+
internalWrapper,
|
|
2597
|
+
focusedDigitField
|
|
2598
|
+
} = {
|
|
2599
|
+
host: () => ':host',
|
|
2526
2600
|
focusedDigitField: { selector: () => `${TextFieldClass.componentName}[focused="true"]` },
|
|
2527
2601
|
digitField: { selector: () => TextFieldClass.componentName },
|
|
2528
2602
|
label: { selector: '::part(label)' },
|
|
@@ -2535,26 +2609,29 @@ const textVars$1 = TextFieldClass.cssVarList;
|
|
|
2535
2609
|
const PasscodeClass = compose(
|
|
2536
2610
|
createStyleMixin({
|
|
2537
2611
|
mappings: {
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
{ ...
|
|
2543
|
-
// we want to leave enough space to the digits outline,
|
|
2544
|
-
// ideally, this would be part of the text field
|
|
2545
|
-
{ ...internalWrapper, property: 'padding' }
|
|
2612
|
+
hostWidth: { property: 'width' },
|
|
2613
|
+
fontFamily: host$5,
|
|
2614
|
+
labelTextColor: [
|
|
2615
|
+
{ ...label$5, property: 'color' },
|
|
2616
|
+
{ ...requiredIndicator$4, property: 'color' },
|
|
2546
2617
|
],
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2618
|
+
labelRequiredIndicator: { ...requiredIndicator$4, property: 'content' },
|
|
2619
|
+
digitValueTextColor: {
|
|
2620
|
+
selector: TextFieldClass.componentName,
|
|
2621
|
+
property: textVars$1.inputValueTextColor
|
|
2622
|
+
},
|
|
2623
|
+
digitPadding: { ...digitField, property: textVars$1.inputPadding },
|
|
2624
|
+
digitTextAlign: { ...digitField, property: textVars$1.inputTextAlign },
|
|
2625
|
+
digitCaretTextColor: { ...digitField, property: textVars$1.inputCaretTextColor },
|
|
2626
|
+
digitSpacing: { ...internalWrapper, property: 'gap' },
|
|
2627
|
+
digitOutlineColor: { ...digitField, property: textVars$1.inputOutlineColor },
|
|
2628
|
+
digitOutlineWidth: { ...digitField, property: textVars$1.inputOutlineWidth },
|
|
2629
|
+
|
|
2630
|
+
focusedDigitFieldOutlineColor: { ...focusedDigitField, property: textVars$1.inputOutlineColor }
|
|
2554
2631
|
},
|
|
2555
2632
|
}),
|
|
2556
2633
|
draggableMixin,
|
|
2557
|
-
|
|
2634
|
+
composedProxyInputMixin,
|
|
2558
2635
|
componentNameValidationMixin,
|
|
2559
2636
|
customMixin$2
|
|
2560
2637
|
)(
|
|
@@ -2563,11 +2640,11 @@ const PasscodeClass = compose(
|
|
|
2563
2640
|
wrappedEleName: 'vaadin-text-field',
|
|
2564
2641
|
style: () => `
|
|
2565
2642
|
:host {
|
|
2566
|
-
--vaadin-field-default-width: auto;
|
|
2567
2643
|
display: inline-block;
|
|
2568
2644
|
max-width: 100%;
|
|
2569
2645
|
min-width: calc(var(--passcode-digits-count) * 2em);
|
|
2570
2646
|
}
|
|
2647
|
+
${resetInputFieldDefaultWidth()}
|
|
2571
2648
|
:host::after {
|
|
2572
2649
|
background-color: transparent;
|
|
2573
2650
|
}
|
|
@@ -2592,7 +2669,7 @@ const PasscodeClass = compose(
|
|
|
2592
2669
|
|
|
2593
2670
|
descope-passcode-internal descope-text-field {
|
|
2594
2671
|
min-width: 2em;
|
|
2595
|
-
max-width: var(${textVars$1.
|
|
2672
|
+
max-width: var(${textVars$1.inputHeight});
|
|
2596
2673
|
}
|
|
2597
2674
|
|
|
2598
2675
|
vaadin-text-field::part(input-field) {
|
|
@@ -2616,27 +2693,26 @@ const PasscodeClass = compose(
|
|
|
2616
2693
|
opacity: 1;
|
|
2617
2694
|
}
|
|
2618
2695
|
|
|
2619
|
-
vaadin-text-field::part(input-field):focus {
|
|
2620
|
-
cursor: text;
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
vaadin-text-field[required]::part(required-indicator)::after {
|
|
2624
|
-
content: "*";
|
|
2625
|
-
}
|
|
2626
2696
|
vaadin-text-field[readonly]::part(input-field)::after {
|
|
2627
2697
|
border: 0 solid;
|
|
2628
2698
|
}
|
|
2699
|
+
|
|
2700
|
+
vaadin-text-field::part(input-field) {
|
|
2701
|
+
box-shadow: none;
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
${resetInputCursor('vaadin-text-field')}
|
|
2629
2705
|
`,
|
|
2630
2706
|
excludeAttrsSync: ['tabindex'],
|
|
2631
|
-
componentName: componentName$
|
|
2707
|
+
componentName: componentName$9
|
|
2632
2708
|
})
|
|
2633
2709
|
);
|
|
2634
2710
|
|
|
2635
|
-
customElements.define(componentName$
|
|
2711
|
+
customElements.define(componentName$a, TextFieldClass);
|
|
2636
2712
|
|
|
2637
|
-
customElements.define(componentName$
|
|
2713
|
+
customElements.define(componentName$b, PasscodeInternal);
|
|
2638
2714
|
|
|
2639
|
-
customElements.define(componentName$
|
|
2715
|
+
customElements.define(componentName$9, PasscodeClass);
|
|
2640
2716
|
|
|
2641
2717
|
const passwordDraggableMixin = (superclass) => class PasswordDraggableMixinClass extends superclass {
|
|
2642
2718
|
get isReadOnly() {
|
|
@@ -2671,94 +2747,97 @@ const passwordDraggableMixin = (superclass) => class PasswordDraggableMixinClass
|
|
|
2671
2747
|
}
|
|
2672
2748
|
};
|
|
2673
2749
|
|
|
2674
|
-
const componentName$
|
|
2750
|
+
const componentName$8 = getComponentName('password-field');
|
|
2675
2751
|
|
|
2676
2752
|
const {
|
|
2677
2753
|
host: host$4,
|
|
2678
|
-
|
|
2754
|
+
inputField: inputField$3,
|
|
2679
2755
|
inputElement,
|
|
2680
2756
|
inputElementPlaceholder,
|
|
2681
|
-
revealButton,
|
|
2682
2757
|
revealButtonIcon,
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2758
|
+
label: label$4,
|
|
2759
|
+
requiredIndicator: requiredIndicator$3,
|
|
2760
|
+
errorMessage: errorMessage$4,
|
|
2761
|
+
helperText: helperText$4
|
|
2686
2762
|
} = {
|
|
2687
2763
|
host: { selector: () => ':host' },
|
|
2688
|
-
|
|
2764
|
+
inputField: { selector: '::part(input-field)' },
|
|
2689
2765
|
inputElement: { selector: '> input' },
|
|
2690
2766
|
inputElementPlaceholder: { selector: '> input:placeholder-shown' },
|
|
2691
|
-
revealButton: { selector: 'vaadin-password-field-button' },
|
|
2692
2767
|
revealButtonIcon: { selector: () => '::part(reveal-button)::before' },
|
|
2693
|
-
revealButtonIconOutline: { selector: () => 'vaadin-password-field-button[focus-ring]' },
|
|
2694
2768
|
label: { selector: '::part(label)' },
|
|
2695
|
-
requiredIndicator: { selector: '::part(required-indicator)::after' },
|
|
2769
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
|
2770
|
+
helperText: { selector: '::part(helper-text)' },
|
|
2771
|
+
errorMessage: { selector: '::part(error-message)' }
|
|
2696
2772
|
};
|
|
2697
2773
|
|
|
2698
2774
|
const PasswordFieldClass = compose(
|
|
2699
2775
|
createStyleMixin({
|
|
2700
2776
|
mappings: {
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
wrapperBorderRadius: { ...inputWrapper$1, property: 'border-radius' },
|
|
2706
|
-
|
|
2707
|
-
revealButtonOutlineBoxShadow: [
|
|
2708
|
-
{
|
|
2709
|
-
...revealButtonIconOutline,
|
|
2710
|
-
property: 'box-shadow'
|
|
2711
|
-
}
|
|
2777
|
+
hostWidth: { ...host$4, property: 'width' },
|
|
2778
|
+
fontSize: [
|
|
2779
|
+
{ property: 'font-size' },
|
|
2780
|
+
{ ...host$4, property: 'font-size' }
|
|
2712
2781
|
],
|
|
2782
|
+
fontFamily: [
|
|
2783
|
+
label$4,
|
|
2784
|
+
inputField$3,
|
|
2785
|
+
errorMessage$4,
|
|
2786
|
+
helperText$4
|
|
2787
|
+
],
|
|
2788
|
+
inputHeight: { ...inputField$3, property: 'height' },
|
|
2789
|
+
inputBackgroundColor: { ...inputField$3, property: 'background-color' },
|
|
2790
|
+
|
|
2791
|
+
inputBorderStyle: { ...inputField$3, property: 'border-style' },
|
|
2792
|
+
inputBorderWidth: { ...inputField$3, property: 'border-width' },
|
|
2793
|
+
inputBorderColor: { ...inputField$3, property: 'border-color' },
|
|
2794
|
+
inputBorderRadius: { ...inputField$3, property: 'border-radius' },
|
|
2795
|
+
|
|
2796
|
+
inputOutlineColor: { ...inputField$3, property: 'outline-color' },
|
|
2797
|
+
inputOutlineStyle: { ...inputField$3, property: 'outline-style' },
|
|
2798
|
+
inputOutlineOffset: { ...inputField$3, property: 'outline-offset' },
|
|
2799
|
+
inputOutlineWidth: { ...inputField$3, property: 'outline-width' },
|
|
2713
2800
|
|
|
2714
2801
|
labelTextColor: [
|
|
2715
|
-
{ ...label$
|
|
2716
|
-
{ ...requiredIndicator$
|
|
2802
|
+
{ ...label$4, property: 'color' },
|
|
2803
|
+
{ ...requiredIndicator$3, property: 'color' }
|
|
2717
2804
|
],
|
|
2718
|
-
|
|
2805
|
+
labelRequiredIndicator: { ...requiredIndicator$3, property: 'content' },
|
|
2806
|
+
|
|
2807
|
+
inputValueTextColor: [
|
|
2719
2808
|
{ ...inputElement, property: 'color' },
|
|
2720
2809
|
{ ...revealButtonIcon, property: 'color' }
|
|
2721
2810
|
],
|
|
2722
|
-
|
|
2723
|
-
fontSize: [{}, host$4],
|
|
2724
|
-
height: inputWrapper$1,
|
|
2725
|
-
padding: inputWrapper$1,
|
|
2726
|
-
pointerCursor: [
|
|
2727
|
-
{ ...revealButton, property: 'cursor' },
|
|
2728
|
-
{ ...label$3, property: 'cursor' },
|
|
2729
|
-
{ ...requiredIndicator$2, property: 'cursor' }
|
|
2730
|
-
],
|
|
2731
|
-
outlineColor: inputWrapper$1,
|
|
2732
|
-
outlineStyle: inputWrapper$1,
|
|
2733
|
-
outlineWidth: [
|
|
2734
|
-
inputWrapper$1,
|
|
2735
|
-
// we need to make sure there is enough space for the outline
|
|
2736
|
-
{ property: 'padding' }
|
|
2737
|
-
],
|
|
2738
|
-
backgroundColor: inputWrapper$1
|
|
2811
|
+
inputPlaceholderTextColor: { ...inputElementPlaceholder, property: 'color' },
|
|
2739
2812
|
}
|
|
2740
2813
|
}),
|
|
2741
2814
|
draggableMixin,
|
|
2742
|
-
|
|
2815
|
+
composedProxyInputMixin,
|
|
2743
2816
|
componentNameValidationMixin,
|
|
2744
2817
|
passwordDraggableMixin
|
|
2745
2818
|
)(
|
|
2746
2819
|
createProxy({
|
|
2747
2820
|
slots: ['suffix'],
|
|
2748
2821
|
wrappedEleName: 'vaadin-password-field',
|
|
2749
|
-
style: `
|
|
2822
|
+
style: () => `
|
|
2750
2823
|
:host {
|
|
2751
2824
|
display: inline-block;
|
|
2752
2825
|
min-width: 10em;
|
|
2753
2826
|
max-width: 100%;
|
|
2827
|
+
box-sizing: border-box;
|
|
2828
|
+
padding: calc(var(${PasswordFieldClass.cssVarList.inputOutlineWidth}) + var(${PasswordFieldClass.cssVarList.inputOutlineOffset}));
|
|
2754
2829
|
}
|
|
2755
2830
|
vaadin-password-field {
|
|
2756
2831
|
width: 100%;
|
|
2757
2832
|
box-sizing: border-box;
|
|
2833
|
+
padding: 0;
|
|
2758
2834
|
}
|
|
2759
2835
|
vaadin-password-field::part(input-field) {
|
|
2760
2836
|
padding: 0;
|
|
2761
2837
|
}
|
|
2838
|
+
vaadin-password-field[focus-ring]::part(input-field) {
|
|
2839
|
+
box-shadow: none;
|
|
2840
|
+
}
|
|
2762
2841
|
vaadin-password-field > input {
|
|
2763
2842
|
min-height: 0;
|
|
2764
2843
|
-webkit-mask-image: none;
|
|
@@ -2771,109 +2850,115 @@ const PasswordFieldClass = compose(
|
|
|
2771
2850
|
}
|
|
2772
2851
|
vaadin-password-field::part(input-field)::after {
|
|
2773
2852
|
opacity: 0;
|
|
2774
|
-
}
|
|
2775
|
-
vaadin-password-field[required]::part(required-indicator)::after {
|
|
2776
|
-
content: "*";
|
|
2777
2853
|
}
|
|
2854
|
+
vaadin-password-field-button {
|
|
2855
|
+
cursor: pointer;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
${resetInputCursor('vaadin-password-field')}
|
|
2859
|
+
|
|
2778
2860
|
[readonly] vaadin-password-field-button {
|
|
2779
2861
|
pointer-events: none;
|
|
2780
2862
|
}
|
|
2863
|
+
|
|
2864
|
+
vaadin-password-field-button[focus-ring] {
|
|
2865
|
+
box-shadow: 0 0 0 2px var(${PasswordFieldClass.cssVarList.inputOutlineColor});
|
|
2866
|
+
}
|
|
2781
2867
|
`,
|
|
2782
2868
|
excludeAttrsSync: ['tabindex'],
|
|
2783
|
-
componentName: componentName$
|
|
2869
|
+
componentName: componentName$8
|
|
2784
2870
|
})
|
|
2785
2871
|
);
|
|
2786
2872
|
|
|
2787
|
-
customElements.define(componentName$
|
|
2873
|
+
customElements.define(componentName$8, PasswordFieldClass);
|
|
2788
2874
|
|
|
2789
|
-
const componentName$
|
|
2875
|
+
const componentName$7 = getComponentName('text-area');
|
|
2790
2876
|
|
|
2791
2877
|
const {
|
|
2792
2878
|
host: host$3,
|
|
2879
|
+
label: label$3,
|
|
2793
2880
|
placeholder: placeholder$1,
|
|
2794
|
-
|
|
2795
|
-
textArea: textArea$
|
|
2796
|
-
|
|
2797
|
-
|
|
2881
|
+
inputField: inputField$2,
|
|
2882
|
+
textArea: textArea$2,
|
|
2883
|
+
requiredIndicator: requiredIndicator$2,
|
|
2884
|
+
helperText: helperText$3,
|
|
2885
|
+
errorMessage: errorMessage$3
|
|
2798
2886
|
} = {
|
|
2799
2887
|
host: { selector: () => ':host' },
|
|
2800
|
-
textArea: { selector: '> textarea' },
|
|
2801
2888
|
label: { selector: '::part(label)' },
|
|
2802
|
-
input: { selector: '::part(input-field)' },
|
|
2803
2889
|
placeholder: { selector: 'textarea:placeholder-shown' },
|
|
2804
|
-
|
|
2890
|
+
inputField: { selector: '::part(input-field)' },
|
|
2891
|
+
textArea: { selector: '> textarea' },
|
|
2892
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
|
2893
|
+
helperText: { selector: '::part(helper-text)' },
|
|
2894
|
+
errorMessage: { selector: '::part(error-message)' }
|
|
2805
2895
|
};
|
|
2806
2896
|
|
|
2807
|
-
let overrides$1 = ``;
|
|
2808
|
-
|
|
2809
2897
|
const TextAreaClass = compose(
|
|
2810
2898
|
createStyleMixin({
|
|
2811
2899
|
mappings: {
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
{ ...
|
|
2900
|
+
hostWidth: { ...host$3, property: 'width' },
|
|
2901
|
+
fontSize: [
|
|
2902
|
+
{ ...host$3, property: 'font-size' },
|
|
2903
|
+
{ ...textArea$2, property: 'font-size' }
|
|
2904
|
+
],
|
|
2905
|
+
fontFamily: [
|
|
2906
|
+
{ ...label$3, property: 'font-family' },
|
|
2907
|
+
{ ...inputField$2, property: 'font-family' },
|
|
2908
|
+
{ ...helperText$3, property: 'font-family' },
|
|
2909
|
+
{ ...errorMessage$3, property: 'font-family' }
|
|
2910
|
+
],
|
|
2911
|
+
labelTextColor: [
|
|
2912
|
+
{ ...label$3, property: 'color' },
|
|
2913
|
+
{ ...requiredIndicator$2, property: 'color' }
|
|
2819
2914
|
],
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2915
|
+
labelRequiredIndicator: { ...requiredIndicator$2, property: 'content' },
|
|
2916
|
+
inputBackgroundColor: { ...inputField$2, property: 'background-color' },
|
|
2917
|
+
inputValueTextColor: { ...textArea$2, property: 'color' },
|
|
2918
|
+
inputPlaceholderTextColor: { ...placeholder$1, property: 'color' },
|
|
2919
|
+
inputBorderWidth: { ...inputField$2, property: 'border-width' },
|
|
2920
|
+
inputBorderStyle: { ...inputField$2, property: 'border-style' },
|
|
2921
|
+
inputBorderColor: { ...inputField$2, property: 'border-color' },
|
|
2922
|
+
inputBorderRadius: { ...inputField$2, property: 'border-radius' },
|
|
2923
|
+
inputOutlineStyle: { ...inputField$2, property: 'outline-Style' },
|
|
2924
|
+
inputOutlineColor: { ...inputField$2, property: 'outline-color' },
|
|
2925
|
+
inputOutlineOffset: { ...inputField$2, property: 'outline-offset' },
|
|
2926
|
+
inputOutlineWidth: { ...inputField$2, property: 'outline-width' },
|
|
2927
|
+
inputResizeType: { ...textArea$2, property: 'resize' },
|
|
2831
2928
|
}
|
|
2832
2929
|
}),
|
|
2833
2930
|
draggableMixin,
|
|
2834
|
-
|
|
2931
|
+
composedProxyInputMixin,
|
|
2835
2932
|
componentNameValidationMixin
|
|
2836
2933
|
)(
|
|
2837
2934
|
createProxy({
|
|
2838
2935
|
slots: [],
|
|
2839
2936
|
wrappedEleName: 'vaadin-text-area',
|
|
2840
|
-
style: () =>
|
|
2937
|
+
style: () => `
|
|
2938
|
+
:host {
|
|
2939
|
+
display: inline-block;
|
|
2940
|
+
min-width: 10em;
|
|
2941
|
+
max-width: 100%;
|
|
2942
|
+
padding: calc(var(${TextAreaClass.cssVarList.inputOutlineWidth}) + var(${TextAreaClass.cssVarList.inputOutlineOffset}));
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
${resetInputContainer('vaadin-text-area')}
|
|
2946
|
+
${resetInputField('vaadin-text-area')}
|
|
2947
|
+
${resetInputPlaceholder('vaadin-text-area', 'textarea')}
|
|
2948
|
+
${resetInputCursor('vaadin-text-area')}
|
|
2949
|
+
`,
|
|
2841
2950
|
excludeAttrsSync: ['tabindex'],
|
|
2842
|
-
componentName: componentName$
|
|
2951
|
+
componentName: componentName$7
|
|
2843
2952
|
})
|
|
2844
2953
|
);
|
|
2845
2954
|
|
|
2846
|
-
|
|
2847
|
-
:host {
|
|
2848
|
-
display: inline-block;
|
|
2849
|
-
min-width: 10em;
|
|
2850
|
-
max-width: 100%;
|
|
2851
|
-
}
|
|
2852
|
-
vaadin-text-area {
|
|
2853
|
-
margin: 0;
|
|
2854
|
-
width: 100%;
|
|
2855
|
-
box-sizing: border-box;
|
|
2856
|
-
}
|
|
2857
|
-
vaadin-text-area > label,
|
|
2858
|
-
vaadin-text-area::part(input-field) {
|
|
2859
|
-
padding: 0;
|
|
2860
|
-
}
|
|
2861
|
-
vaadin-text-area[required]::part(required-indicator)::after {
|
|
2862
|
-
content: "*";
|
|
2863
|
-
}
|
|
2864
|
-
vaadin-text-area[disabled] > textarea:placeholder-shown,
|
|
2865
|
-
vaadin-text-area[readonly] > textarea:placeholder-shown {
|
|
2866
|
-
opacity: 1;
|
|
2867
|
-
}
|
|
2868
|
-
`;
|
|
2869
|
-
|
|
2870
|
-
customElements.define(componentName$6, TextAreaClass);
|
|
2955
|
+
customElements.define(componentName$7, TextAreaClass);
|
|
2871
2956
|
|
|
2872
2957
|
const observedAttributes = ['src', 'alt'];
|
|
2873
2958
|
|
|
2874
|
-
const componentName$
|
|
2959
|
+
const componentName$6 = getComponentName('image');
|
|
2875
2960
|
|
|
2876
|
-
const BaseClass = createBaseClass({ componentName: componentName$
|
|
2961
|
+
const BaseClass = createBaseClass({ componentName: componentName$6, baseSelector: ':host > img' });
|
|
2877
2962
|
class RawImage extends BaseClass {
|
|
2878
2963
|
static get observedAttributes() {
|
|
2879
2964
|
return observedAttributes.concat(BaseClass.observedAttributes || []);
|
|
@@ -2913,10 +2998,9 @@ const ImageClass = compose(
|
|
|
2913
2998
|
draggableMixin,
|
|
2914
2999
|
)(RawImage);
|
|
2915
3000
|
|
|
2916
|
-
customElements.define(componentName$
|
|
2917
|
-
|
|
2918
|
-
const componentName$4 = getComponentName('combo-box');
|
|
3001
|
+
customElements.define(componentName$6, ImageClass);
|
|
2919
3002
|
|
|
3003
|
+
const componentName$5 = getComponentName('combo-box');
|
|
2920
3004
|
|
|
2921
3005
|
const ComboBoxMixin = (superclass) => class ComboBoxMixinClass extends superclass {
|
|
2922
3006
|
constructor() {
|
|
@@ -2970,16 +3054,22 @@ const ComboBoxMixin = (superclass) => class ComboBoxMixinClass extends superclas
|
|
|
2970
3054
|
|
|
2971
3055
|
const {
|
|
2972
3056
|
host: host$2,
|
|
2973
|
-
|
|
3057
|
+
inputField: inputField$1,
|
|
2974
3058
|
placeholder,
|
|
2975
3059
|
toggle,
|
|
2976
|
-
label: label$
|
|
3060
|
+
label: label$2,
|
|
3061
|
+
requiredIndicator: requiredIndicator$1,
|
|
3062
|
+
helperText: helperText$2,
|
|
3063
|
+
errorMessage: errorMessage$2
|
|
2977
3064
|
} = {
|
|
2978
3065
|
host: { selector: () => ':host' },
|
|
2979
|
-
|
|
3066
|
+
inputField: { selector: '::part(input-field)' },
|
|
2980
3067
|
placeholder: { selector: '> input:placeholder-shown' },
|
|
2981
3068
|
toggle: { selector: '::part(toggle-button)' },
|
|
2982
|
-
label: { selector: '::part(label)' }
|
|
3069
|
+
label: { selector: '::part(label)' },
|
|
3070
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
|
3071
|
+
helperText: { selector: '::part(helper-text)' },
|
|
3072
|
+
errorMessage: { selector: '::part(error-message)' }
|
|
2983
3073
|
};
|
|
2984
3074
|
|
|
2985
3075
|
// const { slotted, selected } = {
|
|
@@ -2990,27 +3080,38 @@ const {
|
|
|
2990
3080
|
const ComboBoxClass = compose(
|
|
2991
3081
|
createStyleMixin({
|
|
2992
3082
|
mappings: {
|
|
2993
|
-
|
|
2994
|
-
height: input,
|
|
2995
|
-
padding: input,
|
|
2996
|
-
|
|
2997
|
-
inputBackgroundColor: { ...input, property: 'background-color' },
|
|
2998
|
-
boxShadow: input,
|
|
2999
|
-
|
|
3000
|
-
borderColor: input,
|
|
3001
|
-
borderWidth: input,
|
|
3002
|
-
borderStyle: input,
|
|
3003
|
-
borderRadius: input,
|
|
3004
|
-
|
|
3005
|
-
color: [label$1, input],
|
|
3006
|
-
|
|
3083
|
+
hostWidth: { ...host$2, property: 'width' },
|
|
3007
3084
|
// we apply font-size also on the host so we can set its width with em
|
|
3008
|
-
fontSize: [
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3085
|
+
fontSize: [
|
|
3086
|
+
{ property: 'font-size' },
|
|
3087
|
+
{ ...host$2, property: 'font-size' }
|
|
3088
|
+
],
|
|
3089
|
+
fontFamily: [
|
|
3090
|
+
label$2,
|
|
3091
|
+
placeholder,
|
|
3092
|
+
inputField$1,
|
|
3093
|
+
helperText$2,
|
|
3094
|
+
errorMessage$2
|
|
3095
|
+
],
|
|
3096
|
+
labelTextColor: [
|
|
3097
|
+
{ ...label$2, property: 'color' },
|
|
3098
|
+
{ ...requiredIndicator$1, property: 'color' }
|
|
3099
|
+
],
|
|
3100
|
+
inputHeight: { ...inputField$1, property: 'height' },
|
|
3101
|
+
inputBackgroundColor: { ...inputField$1, property: 'background-color' },
|
|
3102
|
+
inputBorderColor: { ...inputField$1, property: 'border-color' },
|
|
3103
|
+
inputBorderWidth: { ...inputField$1, property: 'border-width' },
|
|
3104
|
+
inputBorderStyle: { ...inputField$1, property: 'border-style' },
|
|
3105
|
+
inputBorderRadius: { ...inputField$1, property: 'border-radius' },
|
|
3106
|
+
labelRequiredIndicator: { ...requiredIndicator$1, property: 'content' },
|
|
3107
|
+
inputValueTextColor: { ...inputField$1, property: 'color' },
|
|
3108
|
+
inputPlaceholderTextColor: { ...placeholder, property: 'color' },
|
|
3109
|
+
inputDropdownButtonCursor: { ...toggle, property: 'cursor' },
|
|
3110
|
+
inputDropdownButtonColor: { ...toggle, property: 'color' },
|
|
3111
|
+
inputOutlineColor: { ...inputField$1, property: 'outline-color' },
|
|
3112
|
+
inputOutlineWidth: { ...inputField$1, property: 'outline-width' },
|
|
3113
|
+
inputOutlineStyle: { ...inputField$1, property: 'outline-style' },
|
|
3114
|
+
inputOutlineOffset: { ...inputField$1, property: 'outline-offset' },
|
|
3014
3115
|
|
|
3015
3116
|
// we need to use the variables from the portal mixin
|
|
3016
3117
|
// so we need to use an arrow function on the selector
|
|
@@ -3034,7 +3135,7 @@ const ComboBoxClass = compose(
|
|
|
3034
3135
|
attributes: ['size']
|
|
3035
3136
|
},
|
|
3036
3137
|
}),
|
|
3037
|
-
|
|
3138
|
+
composedProxyInputMixin,
|
|
3038
3139
|
componentNameValidationMixin,
|
|
3039
3140
|
ComboBoxMixin
|
|
3040
3141
|
)(
|
|
@@ -3046,40 +3147,36 @@ const ComboBoxClass = compose(
|
|
|
3046
3147
|
display: inline-flex;
|
|
3047
3148
|
box-sizing: border-box;
|
|
3048
3149
|
-webkit-mask-image: none;
|
|
3150
|
+
padding: calc(var(${ComboBoxClass.cssVarList.inputOutlineWidth}) + var(${ComboBoxClass.cssVarList.inputOutlineOffset}))
|
|
3049
3151
|
}
|
|
3050
3152
|
vaadin-combo-box {
|
|
3051
3153
|
padding: 0;
|
|
3154
|
+
width: 100%;
|
|
3052
3155
|
}
|
|
3053
3156
|
vaadin-combo-box [slot="input"] {
|
|
3054
3157
|
-webkit-mask-image: none;
|
|
3055
3158
|
min-height: 0;
|
|
3056
3159
|
}
|
|
3160
|
+
|
|
3057
3161
|
vaadin-combo-box::part(input-field) {
|
|
3058
|
-
-webkit-mask-image: none;
|
|
3059
|
-
border-radius: 0;
|
|
3060
3162
|
padding: 0;
|
|
3061
3163
|
}
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
}
|
|
3065
|
-
vaadin-combo-box
|
|
3066
|
-
border: none;
|
|
3067
|
-
}
|
|
3068
|
-
vaadin-combo-box[readonly] > input:placeholder-shown {
|
|
3069
|
-
opacity: 1;
|
|
3070
|
-
}
|
|
3164
|
+
|
|
3165
|
+
${resetInputReadonlyStyle('vaadin-combo-box')}
|
|
3166
|
+
${resetInputPlaceholder('vaadin-combo-box')}
|
|
3167
|
+
${resetInputCursor('vaadin-combo-box')}
|
|
3071
3168
|
`,
|
|
3072
3169
|
// Note: we exclude `size` to avoid overriding Vaadin's ComboBox property
|
|
3073
3170
|
// with the same name. Including it will cause Vaadin to calculate NaN size,
|
|
3074
3171
|
// and reset items to an empty array, and opening the list box with no items
|
|
3075
3172
|
// to display.
|
|
3076
3173
|
excludeAttrsSync: ['tabindex', 'size'],
|
|
3077
|
-
componentName: componentName$
|
|
3174
|
+
componentName: componentName$5,
|
|
3078
3175
|
includeForwardProps: ['items', 'renderer', 'selectedItem']
|
|
3079
3176
|
})
|
|
3080
3177
|
);
|
|
3081
3178
|
|
|
3082
|
-
customElements.define(componentName$
|
|
3179
|
+
customElements.define(componentName$5, ComboBoxClass);
|
|
3083
3180
|
|
|
3084
3181
|
var CountryCodes = [
|
|
3085
3182
|
{
|
|
@@ -4318,7 +4415,7 @@ const comboBoxItem = ({ code, dialCode, name: country }) => (`
|
|
|
4318
4415
|
</div>
|
|
4319
4416
|
`);
|
|
4320
4417
|
|
|
4321
|
-
const componentName$
|
|
4418
|
+
const componentName$4 = getComponentName('phone-field-internal');
|
|
4322
4419
|
|
|
4323
4420
|
const commonAttrs$1 = [
|
|
4324
4421
|
'disabled',
|
|
@@ -4336,7 +4433,7 @@ const mapAttrs = {
|
|
|
4336
4433
|
|
|
4337
4434
|
const inputRelatedAttrs$1 = [].concat(commonAttrs$1, countryAttrs, phoneAttrs);
|
|
4338
4435
|
|
|
4339
|
-
const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$
|
|
4436
|
+
const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$4, baseSelector: 'div' });
|
|
4340
4437
|
|
|
4341
4438
|
class PhoneFieldInternal extends BaseInputClass$1 {
|
|
4342
4439
|
static get observedAttributes() {
|
|
@@ -4508,12 +4605,12 @@ class PhoneFieldInternal extends BaseInputClass$1 {
|
|
|
4508
4605
|
}
|
|
4509
4606
|
}
|
|
4510
4607
|
|
|
4511
|
-
customElements.define(componentName$
|
|
4608
|
+
customElements.define(componentName$4, PhoneFieldInternal);
|
|
4512
4609
|
|
|
4513
4610
|
const textVars = TextFieldClass.cssVarList;
|
|
4514
4611
|
const comboVars = ComboBoxClass.cssVarList;
|
|
4515
4612
|
|
|
4516
|
-
const componentName$
|
|
4613
|
+
const componentName$3 = getComponentName('phone-field');
|
|
4517
4614
|
|
|
4518
4615
|
const customMixin$1 = (superclass) =>
|
|
4519
4616
|
class PhoneFieldMixinClass extends superclass {
|
|
@@ -4531,15 +4628,15 @@ const customMixin$1 = (superclass) =>
|
|
|
4531
4628
|
const template = document.createElement('template');
|
|
4532
4629
|
|
|
4533
4630
|
template.innerHTML = `
|
|
4534
|
-
<${componentName$
|
|
4631
|
+
<${componentName$4}
|
|
4535
4632
|
tabindex="-1"
|
|
4536
4633
|
slot="input"
|
|
4537
|
-
></${componentName$
|
|
4634
|
+
></${componentName$4}>
|
|
4538
4635
|
`;
|
|
4539
4636
|
|
|
4540
4637
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
4541
4638
|
|
|
4542
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
|
4639
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$4);
|
|
4543
4640
|
|
|
4544
4641
|
forwardAttrs(this.shadowRoot.host, this.inputElement, {
|
|
4545
4642
|
includeAttrs: [
|
|
@@ -4558,27 +4655,32 @@ const customMixin$1 = (superclass) =>
|
|
|
4558
4655
|
|
|
4559
4656
|
const {
|
|
4560
4657
|
host: host$1,
|
|
4561
|
-
|
|
4658
|
+
label: label$1,
|
|
4659
|
+
requiredIndicator,
|
|
4660
|
+
inputField,
|
|
4562
4661
|
countryCodeInput,
|
|
4563
4662
|
phoneInput,
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4663
|
+
separator,
|
|
4664
|
+
errorMessage: errorMessage$1,
|
|
4665
|
+
helperText: helperText$1
|
|
4567
4666
|
} = {
|
|
4568
4667
|
host: { selector: () => ':host' },
|
|
4569
|
-
inputWrapper: { selector: '::part(input-field)' },
|
|
4570
|
-
phoneInput: { selector: () => 'descope-text-field' },
|
|
4571
|
-
countryCodeInput: { selector: () => 'descope-combo-box' },
|
|
4572
4668
|
label: { selector: '::part(label)' },
|
|
4573
4669
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
|
4574
|
-
|
|
4670
|
+
inputField: { selector: '::part(input-field)' },
|
|
4671
|
+
phoneInput: { selector: () => 'descope-text-field' },
|
|
4672
|
+
countryCodeInput: { selector: () => 'descope-combo-box' },
|
|
4673
|
+
separator: { selector: 'descope-phone-field-internal .separator' },
|
|
4674
|
+
helperText: { selector: '::part(helper-text)' },
|
|
4675
|
+
errorMessage: { selector: '::part(error-message)' }
|
|
4575
4676
|
};
|
|
4576
4677
|
|
|
4577
4678
|
const PhoneFieldClass = compose(
|
|
4578
4679
|
createStyleMixin({
|
|
4579
4680
|
mappings: {
|
|
4580
4681
|
fontSize: [
|
|
4581
|
-
host$1,
|
|
4682
|
+
{ ...host$1, property: 'font-size' },
|
|
4683
|
+
{ ...inputField, property: 'font-size' },
|
|
4582
4684
|
{
|
|
4583
4685
|
selector: TextFieldClass.componentName,
|
|
4584
4686
|
property: TextFieldClass.cssVarList.fontSize
|
|
@@ -4588,57 +4690,66 @@ const PhoneFieldClass = compose(
|
|
|
4588
4690
|
property: ComboBoxClass.cssVarList.fontSize
|
|
4589
4691
|
}
|
|
4590
4692
|
],
|
|
4693
|
+
fontFamily: [
|
|
4694
|
+
label$1,
|
|
4695
|
+
errorMessage$1,
|
|
4696
|
+
helperText$1
|
|
4697
|
+
],
|
|
4698
|
+
hostWidth: [
|
|
4699
|
+
{ ...host$1, property: 'width' },
|
|
4700
|
+
{ ...phoneInput, property: 'width' },
|
|
4701
|
+
{ ...countryCodeInput, property: '--vaadin-combo-box-overlay-width' }
|
|
4702
|
+
],
|
|
4591
4703
|
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
wrapperBorderStyle: [
|
|
4595
|
-
{ ...inputWrapper, property: 'border-style' },
|
|
4704
|
+
inputBorderStyle: [
|
|
4705
|
+
{ ...inputField, property: 'border-style' },
|
|
4596
4706
|
{ ...separator, property: 'border-left-style' }
|
|
4597
4707
|
],
|
|
4598
|
-
|
|
4599
|
-
{ ...
|
|
4708
|
+
inputBorderWidth: [
|
|
4709
|
+
{ ...inputField, property: 'border-width' },
|
|
4600
4710
|
{ ...separator, property: 'border-left-width' }
|
|
4601
4711
|
],
|
|
4602
|
-
|
|
4603
|
-
{ ...
|
|
4712
|
+
inputBorderColor: [
|
|
4713
|
+
{ ...inputField, property: 'border-color' },
|
|
4604
4714
|
{ ...separator, property: 'border-left-color' }
|
|
4605
4715
|
],
|
|
4606
|
-
|
|
4716
|
+
inputBorderRadius: { ...inputField, property: 'border-radius' },
|
|
4607
4717
|
|
|
4608
|
-
inputHeight: { ...
|
|
4718
|
+
inputHeight: { ...inputField, property: 'height' },
|
|
4609
4719
|
|
|
4610
|
-
countryCodeInputWidth: { ...countryCodeInput, property: comboVars.
|
|
4720
|
+
countryCodeInputWidth: { ...countryCodeInput, property: comboVars.hostWidth },
|
|
4611
4721
|
countryCodeDropdownWidth: {
|
|
4612
4722
|
...countryCodeInput,
|
|
4613
4723
|
property: '--vaadin-combo-box-overlay-width'
|
|
4614
4724
|
},
|
|
4615
|
-
|
|
4616
4725
|
phoneInputWidth: { ...phoneInput, property: 'width' },
|
|
4617
4726
|
|
|
4618
|
-
|
|
4619
|
-
label,
|
|
4620
|
-
requiredIndicator,
|
|
4621
|
-
{ ...phoneInput, property: textVars.color },
|
|
4622
|
-
{ ...countryCodeInput, property: comboVars.color }
|
|
4727
|
+
labelTextColor: [
|
|
4728
|
+
{ ...label$1, property: 'color' },
|
|
4729
|
+
{ ...requiredIndicator, property: 'color' },
|
|
4623
4730
|
],
|
|
4731
|
+
labelRequiredIndicator: { ...requiredIndicator, property: 'content' },
|
|
4624
4732
|
|
|
4625
|
-
|
|
4626
|
-
...phoneInput,
|
|
4627
|
-
property:
|
|
4628
|
-
|
|
4733
|
+
inputValueTextColor: [
|
|
4734
|
+
{ ...phoneInput, property: textVars.inputValueTextColor },
|
|
4735
|
+
{ ...countryCodeInput, property: comboVars.inputValueTextColor }
|
|
4736
|
+
],
|
|
4737
|
+
|
|
4738
|
+
inputPlaceholderTextColor: { ...phoneInput, property: textVars.inputPlaceholderColor },
|
|
4629
4739
|
|
|
4630
4740
|
overlayItemBackgroundColor: {
|
|
4631
4741
|
selector: 'descope-combo-box',
|
|
4632
4742
|
property: comboVars.overlayItemBackgroundColor
|
|
4633
4743
|
},
|
|
4634
4744
|
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4745
|
+
inputOutlineStyle: { ...inputField, property: 'outline-style' },
|
|
4746
|
+
inputOutlineColor: { ...inputField, property: 'outline-color' },
|
|
4747
|
+
inputOutlineWidth: { ...inputField, property: 'outline-width' },
|
|
4748
|
+
inputOutlineOffset: { ...inputField, property: 'outline-offset' },
|
|
4638
4749
|
},
|
|
4639
4750
|
}),
|
|
4640
4751
|
draggableMixin,
|
|
4641
|
-
|
|
4752
|
+
composedProxyInputMixin,
|
|
4642
4753
|
customMixin$1,
|
|
4643
4754
|
)(
|
|
4644
4755
|
createProxy({
|
|
@@ -4646,10 +4757,11 @@ const PhoneFieldClass = compose(
|
|
|
4646
4757
|
wrappedEleName: 'vaadin-text-field',
|
|
4647
4758
|
style: () => `
|
|
4648
4759
|
:host {
|
|
4649
|
-
--vaadin-field-default-width: auto;
|
|
4650
4760
|
display: inline-block;
|
|
4651
4761
|
max-width: 100%;
|
|
4652
4762
|
min-width: 15em;
|
|
4763
|
+
box-sizing: border-box;
|
|
4764
|
+
padding: calc(var(${PhoneFieldClass.cssVarList.inputOutlineWidth}) + var(${PhoneFieldClass.cssVarList.inputOutlineOffset}))
|
|
4653
4765
|
}
|
|
4654
4766
|
div {
|
|
4655
4767
|
display: inline-flex;
|
|
@@ -4658,6 +4770,7 @@ const PhoneFieldClass = compose(
|
|
|
4658
4770
|
width: 100%;
|
|
4659
4771
|
height: 100%;
|
|
4660
4772
|
box-sizing: border-box;
|
|
4773
|
+
padding: 0;
|
|
4661
4774
|
}
|
|
4662
4775
|
vaadin-text-field[focus-ring]::part(input-field) {
|
|
4663
4776
|
box-shadow: none;
|
|
@@ -4689,18 +4802,18 @@ const PhoneFieldClass = compose(
|
|
|
4689
4802
|
descope-combo-box {
|
|
4690
4803
|
flex-shrink: 0;
|
|
4691
4804
|
height: 100%;
|
|
4692
|
-
${comboVars.
|
|
4805
|
+
${comboVars.inputOutlineWidth}: 0;
|
|
4806
|
+
${comboVars.inputOutlineOffset}: 0;
|
|
4807
|
+
${comboVars.inputBorderWidth}: 0;
|
|
4808
|
+
${comboVars.inputBorderRadius}: 0;
|
|
4693
4809
|
}
|
|
4694
4810
|
descope-text-field {
|
|
4695
4811
|
flex-grow: 1;
|
|
4696
4812
|
min-height: 0;
|
|
4697
4813
|
height: 100%;
|
|
4698
|
-
${textVars.
|
|
4699
|
-
${textVars.
|
|
4700
|
-
${textVars.
|
|
4701
|
-
}
|
|
4702
|
-
vaadin-text-field[required]::part(required-indicator)::after {
|
|
4703
|
-
content: "*";
|
|
4814
|
+
${textVars.inputOutlineWidth}: 0;
|
|
4815
|
+
${textVars.inputBorderWidth}: 0;
|
|
4816
|
+
${textVars.inputBorderRadius}: 0;
|
|
4704
4817
|
}
|
|
4705
4818
|
vaadin-text-field[readonly] > input:placeholder-shown {
|
|
4706
4819
|
opacity: 1;
|
|
@@ -4708,17 +4821,20 @@ const PhoneFieldClass = compose(
|
|
|
4708
4821
|
vaadin-text-field::part(input-field)::after {
|
|
4709
4822
|
border: none;
|
|
4710
4823
|
}
|
|
4824
|
+
|
|
4825
|
+
${resetInputFieldDefaultWidth()}
|
|
4826
|
+
${resetInputCursor('vaadin-text-field')}
|
|
4711
4827
|
`,
|
|
4712
4828
|
excludeAttrsSync: ['tabindex'],
|
|
4713
|
-
componentName: componentName$
|
|
4829
|
+
componentName: componentName$3
|
|
4714
4830
|
})
|
|
4715
4831
|
);
|
|
4716
4832
|
|
|
4717
|
-
customElements.define(componentName$
|
|
4833
|
+
customElements.define(componentName$3, PhoneFieldClass);
|
|
4718
4834
|
|
|
4719
|
-
const componentName$
|
|
4835
|
+
const componentName$2 = getComponentName('new-password-internal');
|
|
4720
4836
|
|
|
4721
|
-
const componentName = getComponentName('new-password');
|
|
4837
|
+
const componentName$1 = getComponentName('new-password');
|
|
4722
4838
|
|
|
4723
4839
|
const customMixin = (superclass) =>
|
|
4724
4840
|
class NewPasswordMixinClass extends superclass {
|
|
@@ -4732,16 +4848,16 @@ const customMixin = (superclass) =>
|
|
|
4732
4848
|
const template = document.createElement('template');
|
|
4733
4849
|
|
|
4734
4850
|
template.innerHTML = `
|
|
4735
|
-
<${componentName$
|
|
4851
|
+
<${componentName$2}
|
|
4736
4852
|
name="new-password"
|
|
4737
4853
|
tabindex="-1"
|
|
4738
4854
|
slot="input"
|
|
4739
|
-
></${componentName$
|
|
4855
|
+
></${componentName$2}>
|
|
4740
4856
|
`;
|
|
4741
4857
|
|
|
4742
4858
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
4743
4859
|
|
|
4744
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
|
4860
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$2);
|
|
4745
4861
|
|
|
4746
4862
|
forwardAttrs(this, this.inputElement, {
|
|
4747
4863
|
includeAttrs: [
|
|
@@ -4762,9 +4878,18 @@ const customMixin = (superclass) =>
|
|
|
4762
4878
|
}
|
|
4763
4879
|
};
|
|
4764
4880
|
|
|
4765
|
-
const {
|
|
4881
|
+
const {
|
|
4882
|
+
host,
|
|
4883
|
+
label,
|
|
4884
|
+
internalInputsWrapper,
|
|
4885
|
+
errorMessage,
|
|
4886
|
+
helperText
|
|
4887
|
+
} = {
|
|
4766
4888
|
host: { selector: () => ':host' },
|
|
4767
|
-
|
|
4889
|
+
label: { selector: '::part(label)' },
|
|
4890
|
+
internalInputsWrapper: { selector: 'descope-new-password-internal .wrapper' },
|
|
4891
|
+
helperText: { selector: '::part(helper-text)' },
|
|
4892
|
+
errorMessage: { selector: '::part(error-message)' }
|
|
4768
4893
|
};
|
|
4769
4894
|
|
|
4770
4895
|
const NewPasswordClass = compose(
|
|
@@ -4777,69 +4902,73 @@ const NewPasswordClass = compose(
|
|
|
4777
4902
|
property: PasswordFieldClass.cssVarList.fontSize
|
|
4778
4903
|
}
|
|
4779
4904
|
],
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4905
|
+
fontFamily: [
|
|
4906
|
+
label,
|
|
4907
|
+
errorMessage,
|
|
4908
|
+
helperText
|
|
4909
|
+
],
|
|
4910
|
+
hostWidth: { ...host, property: 'width' },
|
|
4911
|
+
inputsRequiredIndicator: { ...host, property: 'content' },
|
|
4912
|
+
spaceBetweenInputs: { ...internalInputsWrapper, property: 'gap' },
|
|
4783
4913
|
}
|
|
4784
4914
|
}),
|
|
4785
4915
|
draggableMixin,
|
|
4786
|
-
|
|
4916
|
+
composedProxyInputMixin,
|
|
4787
4917
|
customMixin,
|
|
4788
4918
|
)(
|
|
4789
4919
|
createProxy({
|
|
4790
4920
|
slots: [],
|
|
4791
4921
|
wrappedEleName: 'vaadin-text-field',
|
|
4792
|
-
style: () =>
|
|
4922
|
+
style: () => `
|
|
4923
|
+
:host {
|
|
4924
|
+
display: inline-block;
|
|
4925
|
+
max-width: 100%;
|
|
4926
|
+
min-width: 10em;
|
|
4927
|
+
box-sizing: border-box;
|
|
4928
|
+
}
|
|
4929
|
+
${resetInputFieldDefaultWidth()}
|
|
4930
|
+
vaadin-text-field {
|
|
4931
|
+
padding: 0;
|
|
4932
|
+
width: 100%;
|
|
4933
|
+
height: 100%;
|
|
4934
|
+
}
|
|
4935
|
+
vaadin-text-field::part(input-field) {
|
|
4936
|
+
min-height: 0;
|
|
4937
|
+
background: transparent;
|
|
4938
|
+
overflow: hidden;
|
|
4939
|
+
box-shadow: none;
|
|
4940
|
+
padding: 0;
|
|
4941
|
+
}
|
|
4942
|
+
vaadin-text-field::part(input-field)::after {
|
|
4943
|
+
background: transparent;
|
|
4944
|
+
opacity: 0;
|
|
4945
|
+
}
|
|
4946
|
+
descope-new-password-internal {
|
|
4947
|
+
-webkit-mask-image: none;
|
|
4948
|
+
min-height: 0;
|
|
4949
|
+
width: 100%;
|
|
4950
|
+
height: 100%;
|
|
4951
|
+
padding: 0;
|
|
4952
|
+
}
|
|
4953
|
+
descope-new-password-internal > .wrapper {
|
|
4954
|
+
width: 100%;
|
|
4955
|
+
height: 100%;
|
|
4956
|
+
display: flex;
|
|
4957
|
+
flex-direction: column;
|
|
4958
|
+
}
|
|
4959
|
+
descope-password-field {
|
|
4960
|
+
display: block;
|
|
4961
|
+
width: 100%;
|
|
4962
|
+
}
|
|
4963
|
+
descope-new-password-internal vaadin-password-field::before {
|
|
4964
|
+
height: initial;
|
|
4965
|
+
},
|
|
4966
|
+
`,
|
|
4793
4967
|
excludeAttrsSync: ['tabindex'],
|
|
4794
|
-
componentName
|
|
4968
|
+
componentName: componentName$1
|
|
4795
4969
|
})
|
|
4796
4970
|
);
|
|
4797
4971
|
|
|
4798
|
-
const overrides = `
|
|
4799
|
-
:host {
|
|
4800
|
-
--vaadin-field-default-width: auto;
|
|
4801
|
-
display: inline-block;
|
|
4802
|
-
min-width: 10em;
|
|
4803
|
-
max-width: 100%;
|
|
4804
|
-
}
|
|
4805
|
-
vaadin-text-field {
|
|
4806
|
-
padding: 0;
|
|
4807
|
-
width: 100%;
|
|
4808
|
-
height: 100%;
|
|
4809
|
-
}
|
|
4810
|
-
vaadin-text-field::part(input-field) {
|
|
4811
|
-
min-height: 0;
|
|
4812
|
-
background: transparent;
|
|
4813
|
-
overflow: hidden;
|
|
4814
|
-
box-shadow: none;
|
|
4815
|
-
padding: 0;
|
|
4816
|
-
}
|
|
4817
|
-
vaadin-text-field::part(input-field)::after {
|
|
4818
|
-
background: transparent;
|
|
4819
|
-
opacity: 0;
|
|
4820
|
-
}
|
|
4821
|
-
descope-new-password-internal {
|
|
4822
|
-
-webkit-mask-image: none;
|
|
4823
|
-
min-height: 0;
|
|
4824
|
-
width: 100%;
|
|
4825
|
-
height: 100%;
|
|
4826
|
-
padding: 0;
|
|
4827
|
-
}
|
|
4828
|
-
descope-new-password-internal > .wrapper {
|
|
4829
|
-
width: 100%;
|
|
4830
|
-
height: 100%;
|
|
4831
|
-
display: flex;
|
|
4832
|
-
flex-direction: column;
|
|
4833
|
-
}
|
|
4834
|
-
descope-password-field {
|
|
4835
|
-
display: block;
|
|
4836
|
-
width: 100%;
|
|
4837
|
-
}
|
|
4838
|
-
descope-new-password-internal vaadin-password-field::before {
|
|
4839
|
-
height: initial;
|
|
4840
|
-
}
|
|
4841
|
-
`;
|
|
4842
|
-
|
|
4843
4972
|
const passwordAttrPrefixRegex = /^password-/;
|
|
4844
4973
|
const confirmAttrPrefixRegex = /^confirm-/;
|
|
4845
4974
|
|
|
@@ -4861,7 +4990,7 @@ const commonAttrs = [
|
|
|
4861
4990
|
|
|
4862
4991
|
const inputRelatedAttrs = [].concat(commonAttrs, passwordInputAttrs, confirmInputAttrs);
|
|
4863
4992
|
|
|
4864
|
-
const BaseInputClass = createBaseInputClass({ componentName: componentName$
|
|
4993
|
+
const BaseInputClass = createBaseInputClass({ componentName: componentName$2, baseSelector: 'div' });
|
|
4865
4994
|
|
|
4866
4995
|
class NewPasswordInternal extends BaseInputClass {
|
|
4867
4996
|
static get observedAttributes() {
|
|
@@ -4954,7 +5083,7 @@ class NewPasswordInternal extends BaseInputClass {
|
|
|
4954
5083
|
const styleTag = document.createElement('style');
|
|
4955
5084
|
styleTag.innerHTML = `
|
|
4956
5085
|
:host::part(required-indicator)::after {
|
|
4957
|
-
content: var(${NewPasswordClass.cssVarList.
|
|
5086
|
+
content: var(${NewPasswordClass.cssVarList.inputsRequiredIndicator});
|
|
4958
5087
|
}
|
|
4959
5088
|
`;
|
|
4960
5089
|
input?.shadowRoot.appendChild(styleTag);
|
|
@@ -5026,9 +5155,9 @@ class NewPasswordInternal extends BaseInputClass {
|
|
|
5026
5155
|
}
|
|
5027
5156
|
}
|
|
5028
5157
|
|
|
5029
|
-
customElements.define(componentName$
|
|
5158
|
+
customElements.define(componentName$2, NewPasswordInternal);
|
|
5030
5159
|
|
|
5031
|
-
customElements.define(componentName, NewPasswordClass);
|
|
5160
|
+
customElements.define(componentName$1, NewPasswordClass);
|
|
5032
5161
|
|
|
5033
5162
|
const getVarName = (path) => getCssVarName(DESCOPE_PREFIX, ...path);
|
|
5034
5163
|
|
|
@@ -5066,6 +5195,11 @@ const getThemeRefs = (theme, prefix) =>
|
|
|
5066
5195
|
set({}, path, `var(${getVarName(prefix ? [prefix, ...path] : path)})`)
|
|
5067
5196
|
);
|
|
5068
5197
|
|
|
5198
|
+
const getThemeVars = (theme, prefix) =>
|
|
5199
|
+
transformTheme(theme, [], (path) =>
|
|
5200
|
+
set({}, path, getVarName(prefix ? [prefix, ...path] : path))
|
|
5201
|
+
);
|
|
5202
|
+
|
|
5069
5203
|
const globalsThemeToStyle = (theme, themeName = '') => `
|
|
5070
5204
|
*[data-theme="${themeName}"] {
|
|
5071
5205
|
${Object.entries(themeToCSSVarsObj(theme)).reduce(
|
|
@@ -5081,7 +5215,7 @@ const componentsThemeToStyleObj = (componentsTheme) =>
|
|
|
5081
5215
|
const property = restPath.pop();
|
|
5082
5216
|
const componentName = getComponentName(component);
|
|
5083
5217
|
|
|
5084
|
-
if(property === 'undefined'){
|
|
5218
|
+
if (property === 'undefined') {
|
|
5085
5219
|
console.warn(componentName, `theme value: "${val}" is mapped to an invalid property`);
|
|
5086
5220
|
}
|
|
5087
5221
|
|
|
@@ -5350,7 +5484,7 @@ const shadow = {
|
|
|
5350
5484
|
}
|
|
5351
5485
|
};
|
|
5352
5486
|
|
|
5353
|
-
|
|
5487
|
+
const globals = {
|
|
5354
5488
|
colors,
|
|
5355
5489
|
typography,
|
|
5356
5490
|
spacing,
|
|
@@ -5359,418 +5493,436 @@ var globals = {
|
|
|
5359
5493
|
shadow,
|
|
5360
5494
|
fonts
|
|
5361
5495
|
};
|
|
5496
|
+
const vars$m = getThemeVars(globals);
|
|
5362
5497
|
|
|
5363
|
-
const globalRefs$
|
|
5364
|
-
const
|
|
5498
|
+
const globalRefs$c = getThemeRefs(globals);
|
|
5499
|
+
const compVars$2 = ButtonClass.cssVarList;
|
|
5365
5500
|
|
|
5366
5501
|
const mode = {
|
|
5367
|
-
primary: globalRefs$
|
|
5368
|
-
secondary: globalRefs$
|
|
5369
|
-
success: globalRefs$
|
|
5370
|
-
error: globalRefs$
|
|
5371
|
-
surface: globalRefs$
|
|
5502
|
+
primary: globalRefs$c.colors.primary,
|
|
5503
|
+
secondary: globalRefs$c.colors.secondary,
|
|
5504
|
+
success: globalRefs$c.colors.success,
|
|
5505
|
+
error: globalRefs$c.colors.error,
|
|
5506
|
+
surface: globalRefs$c.colors.surface
|
|
5372
5507
|
};
|
|
5373
5508
|
|
|
5374
|
-
const [helperTheme$
|
|
5509
|
+
const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$o);
|
|
5375
5510
|
|
|
5376
5511
|
const verticalPaddingRatio = 3;
|
|
5377
5512
|
const horizontalPaddingRatio = 2;
|
|
5378
5513
|
|
|
5379
5514
|
const button = {
|
|
5380
|
-
...helperTheme$
|
|
5515
|
+
...helperTheme$3,
|
|
5516
|
+
|
|
5517
|
+
[compVars$2.fontFamily]: globalRefs$c.fonts.font1.family,
|
|
5518
|
+
|
|
5519
|
+
[compVars$2.cursor]: 'pointer',
|
|
5381
5520
|
|
|
5382
|
-
[
|
|
5521
|
+
[compVars$2.borderRadius]: globalRefs$c.radius.sm,
|
|
5522
|
+
[compVars$2.borderWidth]: '2px',
|
|
5523
|
+
[compVars$2.borderStyle]: 'solid',
|
|
5524
|
+
[compVars$2.borderColor]: 'transparent',
|
|
5383
5525
|
|
|
5384
|
-
[
|
|
5385
|
-
[vars$g.borderWidth]: '2px',
|
|
5386
|
-
[vars$g.borderStyle]: 'solid',
|
|
5387
|
-
[vars$g.borderColor]: 'transparent',
|
|
5526
|
+
[compVars$2.labelSpacing]: '0.25em',
|
|
5388
5527
|
|
|
5389
|
-
[
|
|
5528
|
+
[compVars$2.verticalPadding]: `calc(var(${compVars$2.fontSize}) / ${verticalPaddingRatio})`,
|
|
5529
|
+
[compVars$2.horizontalPadding]: `calc(var(${compVars$2.fontSize}) / ${horizontalPaddingRatio})`,
|
|
5390
5530
|
|
|
5391
|
-
[
|
|
5392
|
-
[
|
|
5531
|
+
[compVars$2.outlineWidth]: globals.border.sm,
|
|
5532
|
+
[compVars$2.outlineOffset]: '1px',
|
|
5533
|
+
[compVars$2.outlineStyle]: 'solid',
|
|
5534
|
+
[compVars$2.outlineColor]: 'transparent',
|
|
5393
5535
|
|
|
5394
5536
|
size: {
|
|
5395
|
-
xs: { [
|
|
5396
|
-
sm: { [
|
|
5397
|
-
md: { [
|
|
5398
|
-
lg: { [
|
|
5399
|
-
xl: { [
|
|
5537
|
+
xs: { [compVars$2.fontSize]: '8px' },
|
|
5538
|
+
sm: { [compVars$2.fontSize]: '10px' },
|
|
5539
|
+
md: { [compVars$2.fontSize]: '14px' },
|
|
5540
|
+
lg: { [compVars$2.fontSize]: '20px' },
|
|
5541
|
+
xl: { [compVars$2.fontSize]: '25px' }
|
|
5400
5542
|
},
|
|
5401
5543
|
|
|
5402
5544
|
_fullWidth: {
|
|
5403
|
-
[
|
|
5545
|
+
[compVars$2.hostWidth]: '100%'
|
|
5404
5546
|
},
|
|
5405
5547
|
|
|
5406
5548
|
_loading: {
|
|
5407
|
-
[
|
|
5549
|
+
[compVars$2.cursor]: 'wait'
|
|
5408
5550
|
},
|
|
5409
5551
|
|
|
5410
5552
|
variant: {
|
|
5411
5553
|
contained: {
|
|
5412
|
-
[
|
|
5413
|
-
[
|
|
5554
|
+
[compVars$2.labelTextColor]: helperRefs$3.contrast,
|
|
5555
|
+
[compVars$2.backgroundColor]: helperRefs$3.main,
|
|
5414
5556
|
_hover: {
|
|
5415
|
-
[
|
|
5557
|
+
[compVars$2.backgroundColor]: helperRefs$3.dark
|
|
5416
5558
|
},
|
|
5417
5559
|
_active: {
|
|
5418
|
-
[
|
|
5560
|
+
[compVars$2.backgroundColor]: helperRefs$3.dark
|
|
5419
5561
|
}
|
|
5420
5562
|
},
|
|
5421
5563
|
|
|
5422
5564
|
outline: {
|
|
5423
|
-
[
|
|
5424
|
-
[
|
|
5565
|
+
[compVars$2.labelTextColor]: helperRefs$3.main,
|
|
5566
|
+
[compVars$2.borderColor]: 'currentColor',
|
|
5425
5567
|
_hover: {
|
|
5426
|
-
[
|
|
5568
|
+
[compVars$2.labelTextColor]: helperRefs$3.dark,
|
|
5427
5569
|
},
|
|
5428
5570
|
_active: {
|
|
5429
|
-
[
|
|
5571
|
+
[compVars$2.labelTextColor]: helperRefs$3.light,
|
|
5430
5572
|
}
|
|
5431
5573
|
},
|
|
5432
5574
|
|
|
5433
5575
|
link: {
|
|
5434
|
-
[
|
|
5576
|
+
[compVars$2.labelTextColor]: helperRefs$3.main,
|
|
5435
5577
|
_hover: {
|
|
5436
|
-
[
|
|
5437
|
-
[
|
|
5578
|
+
[compVars$2.labelTextColor]: helperRefs$3.main,
|
|
5579
|
+
[compVars$2.labelTextDecoration]: 'underline'
|
|
5438
5580
|
},
|
|
5439
5581
|
_active: {
|
|
5440
|
-
[
|
|
5582
|
+
[compVars$2.labelTextColor]: helperRefs$3.dark
|
|
5441
5583
|
}
|
|
5442
5584
|
}
|
|
5443
|
-
}
|
|
5444
|
-
};
|
|
5445
|
-
|
|
5446
|
-
const globalRefs$d = getThemeRefs(globals);
|
|
5447
|
-
|
|
5448
|
-
const vars$f = TextFieldClass.cssVarList;
|
|
5449
|
-
|
|
5450
|
-
const textField = (vars) => ({
|
|
5451
|
-
[vars.padding]: '0 1em',
|
|
5452
|
-
|
|
5453
|
-
[vars.outlineWidth]: '2px',
|
|
5454
|
-
[vars.outlineStyle]: 'solid',
|
|
5455
|
-
[vars.outlineColor]: 'transparent',
|
|
5456
|
-
|
|
5457
|
-
[vars.height]: '2em',
|
|
5458
|
-
|
|
5459
|
-
size: {
|
|
5460
|
-
xs: {
|
|
5461
|
-
[vars.fontSize]: '8px',
|
|
5462
|
-
},
|
|
5463
|
-
sm: {
|
|
5464
|
-
[vars.fontSize]: '10px',
|
|
5465
|
-
},
|
|
5466
|
-
md: {
|
|
5467
|
-
[vars.fontSize]: '14px',
|
|
5468
|
-
},
|
|
5469
|
-
lg: {
|
|
5470
|
-
[vars.fontSize]: '20px',
|
|
5471
|
-
},
|
|
5472
|
-
xl: {
|
|
5473
|
-
[vars.fontSize]: '25px',
|
|
5474
|
-
}
|
|
5475
5585
|
},
|
|
5476
5586
|
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5587
|
+
_focused: {
|
|
5588
|
+
[compVars$2.outlineColor]: globals.colors.surface.main,
|
|
5589
|
+
}
|
|
5590
|
+
};
|
|
5480
5591
|
|
|
5481
|
-
|
|
5592
|
+
const vars$l = {
|
|
5593
|
+
...compVars$2,
|
|
5594
|
+
...helperVars$2
|
|
5595
|
+
};
|
|
5482
5596
|
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5597
|
+
var button$1 = /*#__PURE__*/Object.freeze({
|
|
5598
|
+
__proto__: null,
|
|
5599
|
+
default: button,
|
|
5600
|
+
vars: vars$l
|
|
5601
|
+
});
|
|
5487
5602
|
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
[vars.placeholderColor]: globalRefs$d.colors.surface.light,
|
|
5491
|
-
[vars.backgroundColor]: globalRefs$d.colors.surface.main
|
|
5492
|
-
},
|
|
5603
|
+
const componentName = getComponentName('input-wrapper');
|
|
5604
|
+
const globalRefs$b = getThemeRefs(globals);
|
|
5493
5605
|
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5606
|
+
const [theme$1, refs, vars$k] = createHelperVars({
|
|
5607
|
+
labelTextColor: globalRefs$b.colors.surface.contrast,
|
|
5608
|
+
valueTextColor: globalRefs$b.colors.surface.contrast,
|
|
5609
|
+
placeholderTextColor: globalRefs$b.colors.surface.main,
|
|
5610
|
+
requiredIndicator: "'*'",
|
|
5497
5611
|
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5612
|
+
borderWidth: globalRefs$b.border.xs,
|
|
5613
|
+
borderRadius: globalRefs$b.radius.xs,
|
|
5614
|
+
borderColor: 'transparent',
|
|
5501
5615
|
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5616
|
+
outlineWidth: globalRefs$b.border.sm,
|
|
5617
|
+
outlineStyle: 'solid',
|
|
5618
|
+
outlineColor: 'transparent',
|
|
5619
|
+
outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
|
|
5505
5620
|
|
|
5506
|
-
|
|
5507
|
-
[vars.borderColor]: globalRefs$d.colors.error.main,
|
|
5508
|
-
[vars.color]: globalRefs$d.colors.error.main,
|
|
5509
|
-
[vars.outlineColor]: globalRefs$d.colors.error.light,
|
|
5510
|
-
[vars.placeholderColor]: globalRefs$d.colors.error.light
|
|
5511
|
-
}
|
|
5512
|
-
});
|
|
5621
|
+
inputHeight: '2em',
|
|
5513
5622
|
|
|
5514
|
-
|
|
5623
|
+
backgroundColor: globalRefs$b.colors.surface.light,
|
|
5515
5624
|
|
|
5516
|
-
|
|
5625
|
+
fontFamily: globalRefs$b.fonts.font1.family,
|
|
5517
5626
|
|
|
5518
|
-
|
|
5627
|
+
size: {
|
|
5628
|
+
xs: { fontSize: '8px' },
|
|
5629
|
+
sm: { fontSize: '10px' },
|
|
5630
|
+
md: { fontSize: '14px' },
|
|
5631
|
+
lg: { fontSize: '20px' },
|
|
5632
|
+
xl: { fontSize: '25px' }
|
|
5633
|
+
},
|
|
5519
5634
|
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
[vars$e.wrapperBorderColor]: 'transparent',
|
|
5524
|
-
[vars$e.wrapperBorderRadius]: globalRefs$c.radius.xs,
|
|
5525
|
-
[vars$e.backgroundColor]: globalRefs$c.colors.surface.light,
|
|
5635
|
+
_fullWidth: {
|
|
5636
|
+
width: '100%',
|
|
5637
|
+
},
|
|
5526
5638
|
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5639
|
+
_focused: {
|
|
5640
|
+
outlineColor: globalRefs$b.colors.surface.main,
|
|
5641
|
+
_invalid: {
|
|
5642
|
+
outlineColor: globalRefs$b.colors.error.light,
|
|
5643
|
+
}
|
|
5644
|
+
},
|
|
5530
5645
|
|
|
5531
|
-
|
|
5646
|
+
_bordered: {
|
|
5647
|
+
borderColor: globalRefs$b.colors.surface.main,
|
|
5648
|
+
borderStyle: 'solid',
|
|
5649
|
+
_invalid: {
|
|
5650
|
+
borderColor: globalRefs$b.colors.error.main,
|
|
5651
|
+
}
|
|
5652
|
+
},
|
|
5532
5653
|
|
|
5654
|
+
_disabled: {
|
|
5655
|
+
labelTextColor: globalRefs$b.colors.surface.main,
|
|
5656
|
+
valueTextColor: globalRefs$b.colors.surface.dark,
|
|
5657
|
+
placeholderTextColor: globalRefs$b.colors.surface.dark,
|
|
5658
|
+
backgroundColor: globalRefs$b.colors.surface.main
|
|
5659
|
+
},
|
|
5533
5660
|
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5661
|
+
_invalid: {
|
|
5662
|
+
labelTextColor: globalRefs$b.colors.error.main,
|
|
5663
|
+
valueTextColor: globalRefs$b.colors.error.main,
|
|
5664
|
+
placeholderTextColor: globalRefs$b.colors.error.light,
|
|
5665
|
+
}
|
|
5666
|
+
}, componentName);
|
|
5537
5667
|
|
|
5538
|
-
|
|
5668
|
+
var inputWrapper = /*#__PURE__*/Object.freeze({
|
|
5669
|
+
__proto__: null,
|
|
5670
|
+
default: theme$1,
|
|
5671
|
+
refs: refs,
|
|
5672
|
+
vars: vars$k
|
|
5673
|
+
});
|
|
5539
5674
|
|
|
5540
|
-
|
|
5541
|
-
|
|
5675
|
+
const vars$j = TextFieldClass.cssVarList;
|
|
5676
|
+
|
|
5677
|
+
const textField = ({
|
|
5678
|
+
[vars$j.hostWidth]: refs.width,
|
|
5679
|
+
[vars$j.fontSize]: refs.fontSize,
|
|
5680
|
+
[vars$j.fontFamily]: refs.fontFamily,
|
|
5681
|
+
[vars$j.labelTextColor]: refs.labelTextColor,
|
|
5682
|
+
[vars$j.labelRequiredIndicator]: refs.requiredIndicator,
|
|
5683
|
+
[vars$j.inputValueTextColor]: refs.valueTextColor,
|
|
5684
|
+
[vars$j.inputPlaceholderColor]: refs.placeholderTextColor,
|
|
5685
|
+
[vars$j.inputBorderWidth]: refs.borderWidth,
|
|
5686
|
+
[vars$j.inputBorderStyle]: refs.borderStyle,
|
|
5687
|
+
[vars$j.inputBorderColor]: refs.borderColor,
|
|
5688
|
+
[vars$j.inputBorderRadius]: refs.borderRadius,
|
|
5689
|
+
[vars$j.inputOutlineWidth]: refs.outlineWidth,
|
|
5690
|
+
[vars$j.inputOutlineStyle]: refs.outlineStyle,
|
|
5691
|
+
[vars$j.inputOutlineColor]: refs.outlineColor,
|
|
5692
|
+
[vars$j.inputOutlineOffset]: refs.outlineOffset,
|
|
5693
|
+
[vars$j.inputBackgroundColor]: refs.backgroundColor,
|
|
5694
|
+
[vars$j.inputHeight]: refs.inputHeight,
|
|
5695
|
+
});
|
|
5542
5696
|
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
},
|
|
5550
|
-
md: {
|
|
5551
|
-
[vars$e.fontSize]: '14px',
|
|
5552
|
-
},
|
|
5553
|
-
lg: {
|
|
5554
|
-
[vars$e.fontSize]: '20px',
|
|
5555
|
-
},
|
|
5556
|
-
xl: {
|
|
5557
|
-
[vars$e.fontSize]: '25px',
|
|
5558
|
-
}
|
|
5559
|
-
},
|
|
5697
|
+
var textField$1 = /*#__PURE__*/Object.freeze({
|
|
5698
|
+
__proto__: null,
|
|
5699
|
+
default: textField,
|
|
5700
|
+
textField: textField,
|
|
5701
|
+
vars: vars$j
|
|
5702
|
+
});
|
|
5560
5703
|
|
|
5561
|
-
|
|
5562
|
-
[vars$e.padding]: '0 0.5em',
|
|
5563
|
-
[vars$e.wrapperBorderColor]: globalRefs$c.colors.surface.main
|
|
5564
|
-
},
|
|
5704
|
+
const vars$i = PasswordFieldClass.cssVarList;
|
|
5565
5705
|
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5706
|
+
const passwordField = {
|
|
5707
|
+
[vars$i.hostWidth]: refs.width,
|
|
5708
|
+
[vars$i.fontSize]: refs.fontSize,
|
|
5709
|
+
[vars$i.fontFamily]: refs.fontFamily,
|
|
5710
|
+
[vars$i.labelTextColor]: refs.labelTextColor,
|
|
5711
|
+
[vars$i.inputHeight]: refs.inputHeight,
|
|
5712
|
+
[vars$i.inputBackgroundColor]: refs.backgroundColor,
|
|
5713
|
+
[vars$i.labelRequiredIndicator]: refs.requiredIndicator,
|
|
5714
|
+
[vars$i.inputValueTextColor]: refs.valueTextColor,
|
|
5715
|
+
[vars$i.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
|
5716
|
+
[vars$i.inputBorderWidth]: refs.borderWidth,
|
|
5717
|
+
[vars$i.inputBorderStyle]: refs.borderStyle,
|
|
5718
|
+
[vars$i.inputBorderColor]: refs.borderColor,
|
|
5719
|
+
[vars$i.inputBorderRadius]: refs.borderRadius,
|
|
5720
|
+
[vars$i.inputOutlineWidth]: refs.outlineWidth,
|
|
5721
|
+
[vars$i.inputOutlineStyle]: refs.outlineStyle,
|
|
5722
|
+
[vars$i.inputOutlineColor]: refs.outlineColor,
|
|
5723
|
+
[vars$i.inputOutlineOffset]: refs.outlineOffset,
|
|
5724
|
+
};
|
|
5569
5725
|
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5726
|
+
var passwordField$1 = /*#__PURE__*/Object.freeze({
|
|
5727
|
+
__proto__: null,
|
|
5728
|
+
default: passwordField,
|
|
5729
|
+
vars: vars$i
|
|
5730
|
+
});
|
|
5573
5731
|
|
|
5574
|
-
|
|
5575
|
-
[vars$e.labelTextColor]: globalRefs$c.colors.error.main,
|
|
5576
|
-
[vars$e.inputTextColor]: globalRefs$c.colors.error.main,
|
|
5577
|
-
[vars$e.placeholderTextColor]: globalRefs$c.colors.error.light,
|
|
5578
|
-
[vars$e.wrapperBorderColor]: globalRefs$c.colors.error.main,
|
|
5579
|
-
[vars$e.outlineColor]: globalRefs$c.colors.error.light,
|
|
5580
|
-
},
|
|
5581
|
-
};
|
|
5732
|
+
const vars$h = NumberFieldClass.cssVarList;
|
|
5582
5733
|
|
|
5583
5734
|
const numberField = {
|
|
5584
|
-
|
|
5735
|
+
[vars$h.hostWidth]: refs.width,
|
|
5736
|
+
[vars$h.fontSize]: refs.fontSize,
|
|
5737
|
+
[vars$h.fontFamily]: refs.fontFamily,
|
|
5738
|
+
[vars$h.labelTextColor]: refs.labelTextColor,
|
|
5739
|
+
[vars$h.inputValueTextColor]: refs.valueTextColor,
|
|
5740
|
+
[vars$h.inputPlaceholderColor]: refs.placeholderTextColor,
|
|
5741
|
+
[vars$h.inputBorderWidth]: refs.borderWidth,
|
|
5742
|
+
[vars$h.inputBorderStyle]: refs.borderStyle,
|
|
5743
|
+
[vars$h.inputBorderColor]: refs.borderColor,
|
|
5744
|
+
[vars$h.inputBorderRadius]: refs.borderRadius,
|
|
5745
|
+
[vars$h.inputOutlineWidth]: refs.outlineWidth,
|
|
5746
|
+
[vars$h.inputOutlineStyle]: refs.outlineStyle,
|
|
5747
|
+
[vars$h.inputOutlineColor]: refs.outlineColor,
|
|
5748
|
+
[vars$h.inputOutlineOffset]: refs.outlineOffset,
|
|
5749
|
+
[vars$h.inputBackgroundColor]: refs.backgroundColor,
|
|
5750
|
+
[vars$h.labelRequiredIndicator]: refs.requiredIndicator,
|
|
5751
|
+
[vars$h.inputHeight]: refs.inputHeight,
|
|
5585
5752
|
};
|
|
5586
5753
|
|
|
5754
|
+
var numberField$1 = /*#__PURE__*/Object.freeze({
|
|
5755
|
+
__proto__: null,
|
|
5756
|
+
default: numberField,
|
|
5757
|
+
vars: vars$h
|
|
5758
|
+
});
|
|
5759
|
+
|
|
5760
|
+
const vars$g = EmailFieldClass.cssVarList;
|
|
5761
|
+
|
|
5587
5762
|
const emailField = {
|
|
5588
|
-
|
|
5763
|
+
[vars$g.hostWidth]: refs.width,
|
|
5764
|
+
[vars$g.fontSize]: refs.fontSize,
|
|
5765
|
+
[vars$g.fontFamily]: refs.fontFamily,
|
|
5766
|
+
[vars$g.labelTextColor]: refs.labelTextColor,
|
|
5767
|
+
[vars$g.inputValueTextColor]: refs.valueTextColor,
|
|
5768
|
+
[vars$g.labelRequiredIndicator]: refs.requiredIndicator,
|
|
5769
|
+
[vars$g.inputPlaceholderColor]: refs.placeholderTextColor,
|
|
5770
|
+
[vars$g.inputBorderWidth]: refs.borderWidth,
|
|
5771
|
+
[vars$g.inputBorderStyle]: refs.borderStyle,
|
|
5772
|
+
[vars$g.inputBorderColor]: refs.borderColor,
|
|
5773
|
+
[vars$g.inputBorderRadius]: refs.borderRadius,
|
|
5774
|
+
[vars$g.inputOutlineWidth]: refs.outlineWidth,
|
|
5775
|
+
[vars$g.inputOutlineStyle]: refs.outlineStyle,
|
|
5776
|
+
[vars$g.inputOutlineColor]: refs.outlineColor,
|
|
5777
|
+
[vars$g.inputOutlineOffset]: refs.outlineOffset,
|
|
5778
|
+
[vars$g.inputBackgroundColor]: refs.backgroundColor,
|
|
5779
|
+
[vars$g.inputHeight]: refs.inputHeight
|
|
5589
5780
|
};
|
|
5590
5781
|
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
[vars$d.placeholderColor]: globalRefs$b.colors.surface.main,
|
|
5597
|
-
[vars$d.color]: globalRefs$b.colors.surface.contrast,
|
|
5598
|
-
[vars$d.fontSize]: '14px',
|
|
5599
|
-
|
|
5600
|
-
[vars$d.backgroundColor]: globalRefs$b.colors.surface.light,
|
|
5601
|
-
[vars$d.resize]: 'vertical',
|
|
5602
|
-
|
|
5603
|
-
[vars$d.borderRadius]: globalRefs$b.radius.sm,
|
|
5604
|
-
[vars$d.borderWidth]: '1px',
|
|
5605
|
-
[vars$d.borderStyle]: 'solid',
|
|
5606
|
-
[vars$d.borderColor]: 'transparent',
|
|
5607
|
-
[vars$d.outlineWidth]: '2px',
|
|
5608
|
-
[vars$d.outlineStyle]: 'solid',
|
|
5609
|
-
[vars$d.outlineColor]: 'transparent',
|
|
5610
|
-
[vars$d.outlineOffset]: '0',
|
|
5782
|
+
var emailField$1 = /*#__PURE__*/Object.freeze({
|
|
5783
|
+
__proto__: null,
|
|
5784
|
+
default: emailField,
|
|
5785
|
+
vars: vars$g
|
|
5786
|
+
});
|
|
5611
5787
|
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
},
|
|
5788
|
+
const globalRefs$a = getThemeRefs(globals);
|
|
5789
|
+
const vars$f = TextAreaClass.cssVarList;
|
|
5615
5790
|
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5791
|
+
const textArea = {
|
|
5792
|
+
[vars$f.hostWidth]: refs.width,
|
|
5793
|
+
[vars$f.fontSize]: '14px',
|
|
5794
|
+
[vars$f.fontFamily]: refs.fontFamily,
|
|
5795
|
+
[vars$f.labelTextColor]: refs.labelTextColor,
|
|
5796
|
+
[vars$f.labelRequiredIndicator]: refs.requiredIndicator,
|
|
5797
|
+
[vars$f.inputBackgroundColor]: refs.backgroundColor,
|
|
5798
|
+
[vars$f.inputValueTextColor]: refs.valueTextColor,
|
|
5799
|
+
[vars$f.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
|
5800
|
+
[vars$f.inputBorderRadius]: refs.borderRadius,
|
|
5801
|
+
[vars$f.inputBorderWidth]: refs.borderWidth,
|
|
5802
|
+
[vars$f.inputBorderStyle]: refs.borderStyle,
|
|
5803
|
+
[vars$f.inputBorderColor]: refs.borderColor,
|
|
5804
|
+
[vars$f.inputOutlineWidth]: refs.outlineWidth,
|
|
5805
|
+
[vars$f.inputOutlineStyle]: refs.outlineStyle,
|
|
5806
|
+
[vars$f.inputOutlineColor]: refs.outlineColor,
|
|
5807
|
+
[vars$f.inputOutlineOffset]: refs.outlineOffset,
|
|
5808
|
+
[vars$f.inputResizeType]: 'vertical',
|
|
5619
5809
|
|
|
5620
5810
|
_disabled: {
|
|
5621
|
-
[vars$
|
|
5622
|
-
},
|
|
5623
|
-
|
|
5624
|
-
_bordered: {
|
|
5625
|
-
[vars$d.borderColor]: globalRefs$b.colors.surface.main,
|
|
5626
|
-
},
|
|
5627
|
-
|
|
5628
|
-
_invalid: {
|
|
5629
|
-
[vars$d.labelColor]: globalRefs$b.colors.error.main,
|
|
5630
|
-
[vars$d.borderColor]: globalRefs$b.colors.error.main,
|
|
5631
|
-
[vars$d.outlineColor]: globalRefs$b.colors.error.light,
|
|
5632
|
-
[vars$d.placeholderColor]: globalRefs$b.colors.error.light,
|
|
5811
|
+
[vars$f.inputBackgroundColor]: globalRefs$a.colors.surface.light,
|
|
5633
5812
|
},
|
|
5634
5813
|
|
|
5635
5814
|
_readonly: {
|
|
5636
|
-
[vars$
|
|
5815
|
+
[vars$f.inputResizeType]: 'none',
|
|
5637
5816
|
}
|
|
5638
5817
|
};
|
|
5639
5818
|
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
[vars$c.cursor]: 'pointer',
|
|
5646
|
-
|
|
5647
|
-
[vars$c.checkboxRadius]: globalRefs$a.radius.xs,
|
|
5648
|
-
[vars$c.checkboxSize]: '2em',
|
|
5649
|
-
|
|
5650
|
-
[vars$c.labelTextColor]: globalRefs$a.colors.surface.contrast,
|
|
5651
|
-
[vars$c.labelMargin]: '0.5em',
|
|
5652
|
-
[vars$c.labelFontWeight]: '400',
|
|
5819
|
+
var textArea$1 = /*#__PURE__*/Object.freeze({
|
|
5820
|
+
__proto__: null,
|
|
5821
|
+
default: textArea,
|
|
5822
|
+
vars: vars$f
|
|
5823
|
+
});
|
|
5653
5824
|
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
[vars$c.labelFontSize]: '8px',
|
|
5657
|
-
},
|
|
5658
|
-
sm: {
|
|
5659
|
-
[vars$c.labelFontSize]: '10px',
|
|
5660
|
-
},
|
|
5661
|
-
md: {
|
|
5662
|
-
[vars$c.labelFontSize]: '14px',
|
|
5663
|
-
},
|
|
5664
|
-
lg: {
|
|
5665
|
-
[vars$c.labelFontSize]: '20px',
|
|
5666
|
-
},
|
|
5667
|
-
xl: {
|
|
5668
|
-
[vars$c.labelFontSize]: '25px',
|
|
5669
|
-
}
|
|
5670
|
-
},
|
|
5825
|
+
const globalRefs$9 = getThemeRefs(globals);
|
|
5826
|
+
const vars$e = CheckboxClass.cssVarList;
|
|
5671
5827
|
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5828
|
+
const checkbox = {
|
|
5829
|
+
[vars$e.hostWidth]: refs.width,
|
|
5830
|
+
[vars$e.fontSize]: refs.fontSize,
|
|
5831
|
+
[vars$e.fontFamily]: refs.fontFamily,
|
|
5832
|
+
[vars$e.labelTextColor]: refs.labelTextColor,
|
|
5833
|
+
[vars$e.labelRequiredIndicator]: refs.requiredIndicator,
|
|
5834
|
+
[vars$e.labelFontWeight]: '400',
|
|
5835
|
+
[vars$e.labelSpacing]: '0.5em',
|
|
5836
|
+
[vars$e.inputOutlineWidth]: refs.outlineWidth,
|
|
5837
|
+
[vars$e.inputOutlineOffset]: refs.outlineOffset,
|
|
5838
|
+
[vars$e.inputOutlineColor]: refs.outlineColor,
|
|
5839
|
+
[vars$e.inputOutlineStyle]: refs.outlineStyle,
|
|
5840
|
+
[vars$e.inputBorderRadius]: refs.borderRadius,
|
|
5841
|
+
[vars$e.inputBackgroundColor]: globalRefs$9.colors.surface.main,
|
|
5842
|
+
[vars$e.inputSize]: '2em',
|
|
5675
5843
|
|
|
5676
5844
|
_checked: {
|
|
5677
|
-
[vars$
|
|
5678
|
-
[vars$
|
|
5845
|
+
[vars$e.inputBackgroundColor]: globalRefs$9.colors.primary.main,
|
|
5846
|
+
[vars$e.inputValueTextColor]: globalRefs$9.colors.primary.contrast,
|
|
5679
5847
|
},
|
|
5680
5848
|
|
|
5681
5849
|
_disabled: {
|
|
5682
|
-
[vars$
|
|
5850
|
+
[vars$e.inputBackgroundColor]: globalRefs$9.colors.surface.main,
|
|
5683
5851
|
},
|
|
5684
|
-
|
|
5685
|
-
_focused: {
|
|
5686
|
-
[vars$c.checkboxOutlineWidth]: '2px',
|
|
5687
|
-
[vars$c.checkboxOutlineOffset]: '1px',
|
|
5688
|
-
[vars$c.checkboxOutlineColor]: globalRefs$a.colors.primary.main,
|
|
5689
|
-
[vars$c.checkboxOutlineStyle]: 'solid'
|
|
5690
|
-
},
|
|
5691
|
-
|
|
5692
|
-
_invalid: {
|
|
5693
|
-
[vars$c.checkboxOutlineColor]: globalRefs$a.colors.error.main,
|
|
5694
|
-
[vars$c.labelTextColor]: globalRefs$a.colors.error.main
|
|
5695
|
-
},
|
|
5696
|
-
|
|
5697
5852
|
};
|
|
5698
5853
|
|
|
5854
|
+
var checkbox$1 = /*#__PURE__*/Object.freeze({
|
|
5855
|
+
__proto__: null,
|
|
5856
|
+
default: checkbox,
|
|
5857
|
+
vars: vars$e
|
|
5858
|
+
});
|
|
5859
|
+
|
|
5699
5860
|
const knobMargin = '2px';
|
|
5700
5861
|
const checkboxHeight = '1.25em';
|
|
5701
|
-
const trackBorderWidth = '2px';
|
|
5702
5862
|
|
|
5703
|
-
const globalRefs$
|
|
5704
|
-
const vars$
|
|
5863
|
+
const globalRefs$8 = getThemeRefs(globals);
|
|
5864
|
+
const vars$d = SwitchToggleClass.cssVarList;
|
|
5705
5865
|
|
|
5706
5866
|
const switchToggle = {
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
[vars$
|
|
5716
|
-
|
|
5717
|
-
[vars$
|
|
5718
|
-
[vars$
|
|
5719
|
-
[vars$
|
|
5720
|
-
|
|
5721
|
-
[vars$
|
|
5722
|
-
|
|
5723
|
-
[vars$
|
|
5724
|
-
[vars$
|
|
5725
|
-
|
|
5726
|
-
[vars$
|
|
5727
|
-
[vars$
|
|
5728
|
-
[vars$
|
|
5729
|
-
|
|
5730
|
-
[vars$
|
|
5731
|
-
[vars$
|
|
5732
|
-
|
|
5733
|
-
[vars$
|
|
5734
|
-
[vars$
|
|
5735
|
-
|
|
5736
|
-
[vars$
|
|
5737
|
-
|
|
5738
|
-
_fullWidth: {
|
|
5739
|
-
[vars$b.width]: '100%',
|
|
5740
|
-
},
|
|
5867
|
+
[vars$d.fontSize]: refs.fontSize,
|
|
5868
|
+
[vars$d.fontFamily]: refs.fontFamily,
|
|
5869
|
+
|
|
5870
|
+
[vars$d.inputOutlineWidth]: refs.outlineWidth,
|
|
5871
|
+
[vars$d.inputOutlineOffset]: refs.outlineOffset,
|
|
5872
|
+
[vars$d.inputOutlineColor]: refs.outlineColor,
|
|
5873
|
+
[vars$d.inputOutlineStyle]: refs.outlineStyle,
|
|
5874
|
+
|
|
5875
|
+
[vars$d.trackBorderStyle]: refs.borderStyle,
|
|
5876
|
+
[vars$d.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
|
5877
|
+
[vars$d.trackBorderColor]: globalRefs$8.colors.surface.contrast,
|
|
5878
|
+
[vars$d.trackBackgroundColor]: 'none',
|
|
5879
|
+
[vars$d.trackBorderRadius]: globalRefs$8.radius.md,
|
|
5880
|
+
[vars$d.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
|
5881
|
+
[vars$d.trackHeight]: checkboxHeight,
|
|
5882
|
+
|
|
5883
|
+
[vars$d.knobSize]: `calc(1em - ${knobMargin})`,
|
|
5884
|
+
[vars$d.knobRadius]: '50%',
|
|
5885
|
+
[vars$d.knobTopOffset]: '1px',
|
|
5886
|
+
[vars$d.knobLeftOffset]: knobMargin,
|
|
5887
|
+
[vars$d.knobColor]: refs.valueTextColor,
|
|
5888
|
+
[vars$d.knobTransitionDuration]: '0.3s',
|
|
5889
|
+
|
|
5890
|
+
[vars$d.labelTextColor]: refs.labelTextColor,
|
|
5891
|
+
[vars$d.labelFontWeight]: '400',
|
|
5892
|
+
[vars$d.labelLineHeight]: `calc(${checkboxHeight} + 0.25em)`,
|
|
5893
|
+
[vars$d.labelSpacing]: '0.25em',
|
|
5894
|
+
[vars$d.labelRequiredIndicator]: refs.requiredIndicator,
|
|
5895
|
+
|
|
5896
|
+
[vars$d.hostWidth]: refs.width,
|
|
5741
5897
|
|
|
5742
5898
|
_checked: {
|
|
5743
|
-
[vars$
|
|
5744
|
-
[vars$
|
|
5745
|
-
[vars$
|
|
5746
|
-
[vars$
|
|
5899
|
+
[vars$d.trackBorderColor]: globalRefs$8.colors.primary.main,
|
|
5900
|
+
[vars$d.knobLeftOffset]: `calc(100% - var(${vars$d.knobSize}) - ${knobMargin})`,
|
|
5901
|
+
[vars$d.knobColor]: globalRefs$8.colors.primary.main,
|
|
5902
|
+
[vars$d.knobTextColor]: refs.valueTextColor,
|
|
5747
5903
|
},
|
|
5748
5904
|
|
|
5749
5905
|
_disabled: {
|
|
5750
|
-
[vars$
|
|
5751
|
-
[vars$
|
|
5752
|
-
[vars$
|
|
5753
|
-
[vars$b.trackBackgroundColor]: globalRefs$9.colors.surface.light,
|
|
5754
|
-
},
|
|
5755
|
-
|
|
5756
|
-
_focused: {
|
|
5757
|
-
[vars$b.switchOutlineWidth]: '2px',
|
|
5758
|
-
[vars$b.switchOutlineOffset]: '1px',
|
|
5759
|
-
[vars$b.switchOutlineColor]: globalRefs$9.colors.primary.main,
|
|
5760
|
-
[vars$b.switchOutlineStyle]: 'solid'
|
|
5906
|
+
[vars$d.knobColor]: globalRefs$8.colors.surface.main,
|
|
5907
|
+
[vars$d.trackBorderColor]: globalRefs$8.colors.surface.main,
|
|
5908
|
+
[vars$d.trackBackgroundColor]: globalRefs$8.colors.surface.light,
|
|
5761
5909
|
},
|
|
5762
5910
|
|
|
5763
5911
|
_invalid: {
|
|
5764
|
-
[vars$
|
|
5765
|
-
[vars$
|
|
5766
|
-
[vars$b.knobColor]: globalRefs$9.colors.error.main,
|
|
5767
|
-
[vars$b.labelTextColor]: globalRefs$9.colors.error.main
|
|
5912
|
+
[vars$d.trackBorderColor]: globalRefs$8.colors.error.main,
|
|
5913
|
+
[vars$d.knobColor]: globalRefs$8.colors.error.main,
|
|
5768
5914
|
},
|
|
5769
5915
|
};
|
|
5770
5916
|
|
|
5771
|
-
|
|
5917
|
+
var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
|
5918
|
+
__proto__: null,
|
|
5919
|
+
default: switchToggle,
|
|
5920
|
+
vars: vars$d
|
|
5921
|
+
});
|
|
5922
|
+
|
|
5923
|
+
const globalRefs$7 = getThemeRefs(globals);
|
|
5772
5924
|
|
|
5773
|
-
const
|
|
5925
|
+
const compVars$1 = ContainerClass.cssVarList;
|
|
5774
5926
|
|
|
5775
5927
|
const verticalAlignment = {
|
|
5776
5928
|
start: { verticalAlignment: 'start' },
|
|
@@ -5784,583 +5936,561 @@ const horizontalAlignment = {
|
|
|
5784
5936
|
end: { horizontalAlignment: 'end' },
|
|
5785
5937
|
};
|
|
5786
5938
|
|
|
5787
|
-
const [helperTheme$
|
|
5939
|
+
const [helperTheme$2, helperRefs$2, helperVars$1] =
|
|
5788
5940
|
createHelperVars({
|
|
5789
5941
|
verticalAlignment,
|
|
5790
5942
|
horizontalAlignment,
|
|
5791
5943
|
shadowColor: '#00000020' //if we want to support transparency vars, we should use different color format
|
|
5792
|
-
}, componentName$
|
|
5944
|
+
}, componentName$i);
|
|
5945
|
+
|
|
5946
|
+
const { shadowColor } = helperRefs$2;
|
|
5793
5947
|
|
|
5794
5948
|
const container = {
|
|
5795
|
-
...helperTheme$
|
|
5796
|
-
|
|
5797
|
-
[
|
|
5798
|
-
[
|
|
5799
|
-
[
|
|
5949
|
+
...helperTheme$2,
|
|
5950
|
+
|
|
5951
|
+
[compVars$1.hostWidth]: '100%',
|
|
5952
|
+
[compVars$1.boxShadow]: 'none',
|
|
5953
|
+
[compVars$1.backgroundColor]: globalRefs$7.colors.surface.light,
|
|
5954
|
+
[compVars$1.color]: globalRefs$7.colors.surface.contrast,
|
|
5955
|
+
|
|
5800
5956
|
verticalPadding: {
|
|
5801
|
-
sm: { [
|
|
5802
|
-
md: { [
|
|
5803
|
-
lg: { [
|
|
5957
|
+
sm: { [compVars$1.verticalPadding]: '5px' },
|
|
5958
|
+
md: { [compVars$1.verticalPadding]: '10px' },
|
|
5959
|
+
lg: { [compVars$1.verticalPadding]: '20px' },
|
|
5804
5960
|
},
|
|
5961
|
+
|
|
5805
5962
|
horizontalPadding: {
|
|
5806
|
-
sm: { [
|
|
5807
|
-
md: { [
|
|
5808
|
-
lg: { [
|
|
5963
|
+
sm: { [compVars$1.horizontalPadding]: '5px' },
|
|
5964
|
+
md: { [compVars$1.horizontalPadding]: '10px' },
|
|
5965
|
+
lg: { [compVars$1.horizontalPadding]: '20px' },
|
|
5809
5966
|
},
|
|
5967
|
+
|
|
5810
5968
|
direction: {
|
|
5811
5969
|
row: {
|
|
5812
|
-
[
|
|
5813
|
-
[
|
|
5814
|
-
[
|
|
5815
|
-
[
|
|
5970
|
+
[compVars$1.flexDirection]: 'row',
|
|
5971
|
+
[compVars$1.alignItems]: helperRefs$2.verticalAlignment,
|
|
5972
|
+
[compVars$1.justifyContent]: helperRefs$2.horizontalAlignment,
|
|
5973
|
+
[compVars$1.flexWrap]: 'wrap',
|
|
5816
5974
|
horizontalAlignment: {
|
|
5817
|
-
spaceBetween: {
|
|
5975
|
+
spaceBetween: {
|
|
5976
|
+
[helperVars$1.horizontalAlignment]: 'space-between'
|
|
5977
|
+
},
|
|
5818
5978
|
}
|
|
5819
5979
|
},
|
|
5820
|
-
|
|
5821
5980
|
column: {
|
|
5822
|
-
[
|
|
5823
|
-
[
|
|
5824
|
-
[
|
|
5981
|
+
[compVars$1.flexDirection]: 'column',
|
|
5982
|
+
[compVars$1.alignItems]: helperRefs$2.horizontalAlignment,
|
|
5983
|
+
[compVars$1.justifyContent]: helperRefs$2.verticalAlignment,
|
|
5825
5984
|
verticalAlignment: {
|
|
5826
|
-
spaceBetween: {
|
|
5985
|
+
spaceBetween: {
|
|
5986
|
+
[helperVars$1.verticalAlignment]: 'space-between'
|
|
5987
|
+
}
|
|
5827
5988
|
}
|
|
5828
5989
|
},
|
|
5829
5990
|
},
|
|
5830
5991
|
|
|
5831
5992
|
spaceBetween: {
|
|
5832
|
-
sm: {
|
|
5833
|
-
|
|
5834
|
-
}
|
|
5835
|
-
md: {
|
|
5836
|
-
[vars$a.gap]: '20px'
|
|
5837
|
-
},
|
|
5838
|
-
lg: {
|
|
5839
|
-
[vars$a.gap]: '30px'
|
|
5840
|
-
}
|
|
5993
|
+
sm: { [compVars$1.gap]: '10px' },
|
|
5994
|
+
md: { [compVars$1.gap]: '20px' },
|
|
5995
|
+
lg: { [compVars$1.gap]: '30px' }
|
|
5841
5996
|
},
|
|
5842
5997
|
|
|
5843
5998
|
shadow: {
|
|
5844
|
-
sm: {
|
|
5845
|
-
|
|
5846
|
-
},
|
|
5847
|
-
|
|
5848
|
-
[vars$a.boxShadow]: `${globalRefs$8.shadow.wide.md} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.md} ${helperRefs$1.shadowColor}`
|
|
5849
|
-
},
|
|
5850
|
-
lg: {
|
|
5851
|
-
[vars$a.boxShadow]: `${globalRefs$8.shadow.wide.lg} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.lg} ${helperRefs$1.shadowColor}`
|
|
5852
|
-
},
|
|
5853
|
-
xl: {
|
|
5854
|
-
[vars$a.boxShadow]: `${globalRefs$8.shadow.wide.xl} ${helperRefs$1.shadowColor}, ${globalRefs$8.shadow.narrow.xl} ${helperRefs$1.shadowColor}`
|
|
5855
|
-
},
|
|
5999
|
+
sm: { [compVars$1.boxShadow]: `${globalRefs$7.shadow.wide.sm} ${shadowColor}, ${globalRefs$7.shadow.narrow.sm} ${shadowColor}` },
|
|
6000
|
+
md: { [compVars$1.boxShadow]: `${globalRefs$7.shadow.wide.md} ${shadowColor}, ${globalRefs$7.shadow.narrow.md} ${shadowColor}` },
|
|
6001
|
+
lg: { [compVars$1.boxShadow]: `${globalRefs$7.shadow.wide.lg} ${shadowColor}, ${globalRefs$7.shadow.narrow.lg} ${shadowColor}` },
|
|
6002
|
+
xl: { [compVars$1.boxShadow]: `${globalRefs$7.shadow.wide.xl} ${shadowColor}, ${globalRefs$7.shadow.narrow.xl} ${shadowColor}` },
|
|
5856
6003
|
'2xl': {
|
|
5857
|
-
[helperVars.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
5858
|
-
[
|
|
6004
|
+
[helperVars$1.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
6005
|
+
[compVars$1.boxShadow]: `${globalRefs$7.shadow.wide['2xl']} ${shadowColor}`
|
|
5859
6006
|
},
|
|
5860
6007
|
},
|
|
5861
6008
|
|
|
5862
6009
|
borderRadius: {
|
|
5863
|
-
sm: {
|
|
5864
|
-
|
|
5865
|
-
},
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
},
|
|
5869
|
-
lg: {
|
|
5870
|
-
[vars$a.borderRadius]: globalRefs$8.radius.lg
|
|
5871
|
-
},
|
|
5872
|
-
xl: {
|
|
5873
|
-
[vars$a.borderRadius]: globalRefs$8.radius.xl
|
|
5874
|
-
},
|
|
5875
|
-
'2xl': {
|
|
5876
|
-
[vars$a.borderRadius]: globalRefs$8.radius['2xl']
|
|
5877
|
-
},
|
|
5878
|
-
'3xl': {
|
|
5879
|
-
[vars$a.borderRadius]: globalRefs$8.radius['3xl']
|
|
5880
|
-
},
|
|
6010
|
+
sm: { [compVars$1.borderRadius]: globalRefs$7.radius.sm },
|
|
6011
|
+
md: { [compVars$1.borderRadius]: globalRefs$7.radius.md },
|
|
6012
|
+
lg: { [compVars$1.borderRadius]: globalRefs$7.radius.lg },
|
|
6013
|
+
xl: { [compVars$1.borderRadius]: globalRefs$7.radius.xl },
|
|
6014
|
+
'2xl': { [compVars$1.borderRadius]: globalRefs$7.radius['2xl'] },
|
|
6015
|
+
'3xl': { [compVars$1.borderRadius]: globalRefs$7.radius['3xl'] },
|
|
5881
6016
|
}
|
|
5882
6017
|
};
|
|
5883
6018
|
|
|
5884
|
-
const vars$
|
|
6019
|
+
const vars$c = {
|
|
6020
|
+
...compVars$1,
|
|
6021
|
+
...helperVars$1
|
|
6022
|
+
};
|
|
6023
|
+
|
|
6024
|
+
var container$1 = /*#__PURE__*/Object.freeze({
|
|
6025
|
+
__proto__: null,
|
|
6026
|
+
default: container,
|
|
6027
|
+
vars: vars$c
|
|
6028
|
+
});
|
|
6029
|
+
|
|
6030
|
+
const vars$b = LogoClass.cssVarList;
|
|
5885
6031
|
|
|
5886
6032
|
const logo = {
|
|
5887
|
-
[vars$
|
|
6033
|
+
[vars$b.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)'
|
|
5888
6034
|
};
|
|
5889
6035
|
|
|
5890
|
-
|
|
6036
|
+
var logo$1 = /*#__PURE__*/Object.freeze({
|
|
6037
|
+
__proto__: null,
|
|
6038
|
+
default: logo,
|
|
6039
|
+
vars: vars$b
|
|
6040
|
+
});
|
|
5891
6041
|
|
|
5892
|
-
const
|
|
6042
|
+
const globalRefs$6 = getThemeRefs(globals);
|
|
6043
|
+
const vars$a = TextClass.cssVarList;
|
|
5893
6044
|
|
|
5894
6045
|
const text = {
|
|
5895
|
-
[vars$
|
|
5896
|
-
[vars$
|
|
5897
|
-
[vars$
|
|
6046
|
+
[vars$a.textLineHeight]: '1em',
|
|
6047
|
+
[vars$a.textAlign]: 'left',
|
|
6048
|
+
[vars$a.textColor]: globalRefs$6.colors.surface.dark,
|
|
5898
6049
|
variant: {
|
|
5899
6050
|
h1: {
|
|
5900
|
-
[vars$
|
|
5901
|
-
[vars$
|
|
5902
|
-
[vars$
|
|
6051
|
+
[vars$a.fontSize]: globalRefs$6.typography.h1.size,
|
|
6052
|
+
[vars$a.fontWeight]: globalRefs$6.typography.h1.weight,
|
|
6053
|
+
[vars$a.fontFamily]: globalRefs$6.typography.h1.font
|
|
5903
6054
|
},
|
|
5904
6055
|
h2: {
|
|
5905
|
-
[vars$
|
|
5906
|
-
[vars$
|
|
5907
|
-
[vars$
|
|
6056
|
+
[vars$a.fontSize]: globalRefs$6.typography.h2.size,
|
|
6057
|
+
[vars$a.fontWeight]: globalRefs$6.typography.h2.weight,
|
|
6058
|
+
[vars$a.fontFamily]: globalRefs$6.typography.h2.font
|
|
5908
6059
|
},
|
|
5909
6060
|
h3: {
|
|
5910
|
-
[vars$
|
|
5911
|
-
[vars$
|
|
5912
|
-
[vars$
|
|
6061
|
+
[vars$a.fontSize]: globalRefs$6.typography.h3.size,
|
|
6062
|
+
[vars$a.fontWeight]: globalRefs$6.typography.h3.weight,
|
|
6063
|
+
[vars$a.fontFamily]: globalRefs$6.typography.h3.font
|
|
5913
6064
|
},
|
|
5914
6065
|
subtitle1: {
|
|
5915
|
-
[vars$
|
|
5916
|
-
[vars$
|
|
5917
|
-
[vars$
|
|
6066
|
+
[vars$a.fontSize]: globalRefs$6.typography.subtitle1.size,
|
|
6067
|
+
[vars$a.fontWeight]: globalRefs$6.typography.subtitle1.weight,
|
|
6068
|
+
[vars$a.fontFamily]: globalRefs$6.typography.subtitle1.font
|
|
5918
6069
|
},
|
|
5919
6070
|
subtitle2: {
|
|
5920
|
-
[vars$
|
|
5921
|
-
[vars$
|
|
5922
|
-
[vars$
|
|
6071
|
+
[vars$a.fontSize]: globalRefs$6.typography.subtitle2.size,
|
|
6072
|
+
[vars$a.fontWeight]: globalRefs$6.typography.subtitle2.weight,
|
|
6073
|
+
[vars$a.fontFamily]: globalRefs$6.typography.subtitle2.font
|
|
5923
6074
|
},
|
|
5924
6075
|
body1: {
|
|
5925
|
-
[vars$
|
|
5926
|
-
[vars$
|
|
5927
|
-
[vars$
|
|
6076
|
+
[vars$a.fontSize]: globalRefs$6.typography.body1.size,
|
|
6077
|
+
[vars$a.fontWeight]: globalRefs$6.typography.body1.weight,
|
|
6078
|
+
[vars$a.fontFamily]: globalRefs$6.typography.body1.font
|
|
5928
6079
|
},
|
|
5929
6080
|
body2: {
|
|
5930
|
-
[vars$
|
|
5931
|
-
[vars$
|
|
5932
|
-
[vars$
|
|
6081
|
+
[vars$a.fontSize]: globalRefs$6.typography.body2.size,
|
|
6082
|
+
[vars$a.fontWeight]: globalRefs$6.typography.body2.weight,
|
|
6083
|
+
[vars$a.fontFamily]: globalRefs$6.typography.body2.font
|
|
5933
6084
|
}
|
|
5934
6085
|
},
|
|
6086
|
+
|
|
5935
6087
|
mode: {
|
|
5936
6088
|
primary: {
|
|
5937
|
-
[vars$
|
|
6089
|
+
[vars$a.textColor]: globalRefs$6.colors.primary.main
|
|
5938
6090
|
},
|
|
5939
6091
|
secondary: {
|
|
5940
|
-
[vars$
|
|
6092
|
+
[vars$a.textColor]: globalRefs$6.colors.secondary.main
|
|
5941
6093
|
},
|
|
5942
6094
|
error: {
|
|
5943
|
-
[vars$
|
|
6095
|
+
[vars$a.textColor]: globalRefs$6.colors.error.main
|
|
5944
6096
|
},
|
|
5945
6097
|
success: {
|
|
5946
|
-
[vars$
|
|
6098
|
+
[vars$a.textColor]: globalRefs$6.colors.success.main
|
|
5947
6099
|
}
|
|
5948
6100
|
},
|
|
6101
|
+
|
|
5949
6102
|
textAlign: {
|
|
5950
|
-
right: { [vars$
|
|
5951
|
-
left: { [vars$
|
|
5952
|
-
center: { [vars$
|
|
6103
|
+
right: { [vars$a.textAlign]: 'right' },
|
|
6104
|
+
left: { [vars$a.textAlign]: 'left' },
|
|
6105
|
+
center: { [vars$a.textAlign]: 'center' }
|
|
5953
6106
|
},
|
|
6107
|
+
|
|
5954
6108
|
_fullWidth: {
|
|
5955
|
-
[vars$
|
|
6109
|
+
[vars$a.hostWidth]: '100%',
|
|
5956
6110
|
},
|
|
6111
|
+
|
|
5957
6112
|
_italic: {
|
|
5958
|
-
[vars$
|
|
6113
|
+
[vars$a.fontStyle]: 'italic'
|
|
5959
6114
|
},
|
|
6115
|
+
|
|
5960
6116
|
_uppercase: {
|
|
5961
|
-
[vars$
|
|
6117
|
+
[vars$a.textTransform]: 'uppercase'
|
|
5962
6118
|
},
|
|
6119
|
+
|
|
5963
6120
|
_lowercase: {
|
|
5964
|
-
[vars$
|
|
6121
|
+
[vars$a.textTransform]: 'lowercase'
|
|
5965
6122
|
}
|
|
5966
6123
|
};
|
|
5967
6124
|
|
|
5968
|
-
|
|
5969
|
-
|
|
6125
|
+
var text$1 = /*#__PURE__*/Object.freeze({
|
|
6126
|
+
__proto__: null,
|
|
6127
|
+
default: text,
|
|
6128
|
+
vars: vars$a
|
|
6129
|
+
});
|
|
6130
|
+
|
|
6131
|
+
const globalRefs$5 = getThemeRefs(globals);
|
|
6132
|
+
const vars$9 = LinkClass.cssVarList;
|
|
5970
6133
|
|
|
5971
6134
|
const link = {
|
|
5972
|
-
[vars$
|
|
5973
|
-
|
|
5974
|
-
[vars$
|
|
5975
|
-
[vars$
|
|
5976
|
-
[vars$
|
|
6135
|
+
[vars$9.cursor]: 'pointer',
|
|
6136
|
+
|
|
6137
|
+
[vars$9.textUnderlineWidth]: '2px',
|
|
6138
|
+
[vars$9.textUnderlineStyle]: 'solid',
|
|
6139
|
+
[vars$9.textUnderlineColor]: 'transparent',
|
|
6140
|
+
[vars$9.textColor]: globalRefs$5.colors.primary.main,
|
|
5977
6141
|
|
|
5978
6142
|
_hover: {
|
|
5979
|
-
[vars$
|
|
6143
|
+
[vars$9.textUnderlineColor]: globalRefs$5.colors.primary.main
|
|
5980
6144
|
},
|
|
5981
6145
|
|
|
5982
6146
|
textAlign: {
|
|
5983
|
-
right: { [vars$
|
|
5984
|
-
left: { [vars$
|
|
5985
|
-
center: { [vars$
|
|
6147
|
+
right: { [vars$9.textAlign]: 'right' },
|
|
6148
|
+
left: { [vars$9.textAlign]: 'left' },
|
|
6149
|
+
center: { [vars$9.textAlign]: 'center' }
|
|
5986
6150
|
},
|
|
5987
6151
|
|
|
5988
6152
|
_fullWidth: {
|
|
5989
|
-
[vars$
|
|
6153
|
+
[vars$9.hostWidth]: '100%'
|
|
6154
|
+
},
|
|
6155
|
+
|
|
6156
|
+
_hover: {
|
|
6157
|
+
[vars$9.textUnderlineColor]: 'currentColor'
|
|
5990
6158
|
},
|
|
5991
6159
|
|
|
5992
6160
|
mode: {
|
|
5993
6161
|
primary: {
|
|
5994
|
-
[vars$
|
|
5995
|
-
_hover: {
|
|
5996
|
-
[vars$7.borderBottomColor]: globalRefs$6.colors.primary.main
|
|
5997
|
-
}
|
|
6162
|
+
[vars$9.textColor]: globalRefs$5.colors.primary.main,
|
|
5998
6163
|
},
|
|
5999
6164
|
secondary: {
|
|
6000
|
-
[vars$
|
|
6001
|
-
_hover: {
|
|
6002
|
-
[vars$7.borderBottomColor]: globalRefs$6.colors.secondary.main
|
|
6003
|
-
}
|
|
6165
|
+
[vars$9.textColor]: globalRefs$5.colors.secondary.main,
|
|
6004
6166
|
},
|
|
6005
6167
|
error: {
|
|
6006
|
-
[vars$
|
|
6007
|
-
_hover: {
|
|
6008
|
-
[vars$7.borderBottomColor]: globalRefs$6.colors.error.main
|
|
6009
|
-
}
|
|
6168
|
+
[vars$9.textColor]: globalRefs$5.colors.error.main,
|
|
6010
6169
|
},
|
|
6011
6170
|
success: {
|
|
6012
|
-
[vars$
|
|
6013
|
-
_hover: {
|
|
6014
|
-
[vars$7.borderBottomColor]: globalRefs$6.colors.success.main
|
|
6015
|
-
}
|
|
6171
|
+
[vars$9.textColor]: globalRefs$5.colors.success.main,
|
|
6016
6172
|
}
|
|
6017
6173
|
}
|
|
6018
6174
|
};
|
|
6019
6175
|
|
|
6020
|
-
|
|
6176
|
+
var link$1 = /*#__PURE__*/Object.freeze({
|
|
6177
|
+
__proto__: null,
|
|
6178
|
+
default: link,
|
|
6179
|
+
vars: vars$9
|
|
6180
|
+
});
|
|
6021
6181
|
|
|
6022
|
-
const
|
|
6182
|
+
const globalRefs$4 = getThemeRefs(globals);
|
|
6183
|
+
const compVars = DividerClass.cssVarList;
|
|
6023
6184
|
|
|
6024
|
-
const
|
|
6025
|
-
|
|
6026
|
-
|
|
6185
|
+
const [
|
|
6186
|
+
helperTheme$1,
|
|
6187
|
+
helperRefs$1,
|
|
6188
|
+
helperVars
|
|
6189
|
+
] = createHelperVars({
|
|
6190
|
+
thickness: '2px',
|
|
6191
|
+
spacing: '10px'
|
|
6192
|
+
}, componentName$h);
|
|
6027
6193
|
|
|
6028
6194
|
const divider = {
|
|
6029
|
-
...helperTheme,
|
|
6030
|
-
|
|
6031
|
-
[
|
|
6032
|
-
[
|
|
6033
|
-
[
|
|
6034
|
-
[
|
|
6035
|
-
[
|
|
6036
|
-
[
|
|
6037
|
-
[
|
|
6038
|
-
[
|
|
6195
|
+
...helperTheme$1,
|
|
6196
|
+
|
|
6197
|
+
[compVars.alignItems]: 'center',
|
|
6198
|
+
[compVars.flexDirection]: 'row',
|
|
6199
|
+
[compVars.alignSelf]: 'stretch',
|
|
6200
|
+
[compVars.hostWidth]: '100%',
|
|
6201
|
+
[compVars.stripeColor]: globalRefs$4.colors.surface.main,
|
|
6202
|
+
[compVars.stripeColorOpacity]: '0.5',
|
|
6203
|
+
[compVars.stripeHorizontalThickness]: helperRefs$1.thickness,
|
|
6204
|
+
[compVars.labelTextWidth]: 'fit-content',
|
|
6205
|
+
[compVars.labelTextMaxWidth]: 'calc(100% - 100px)',
|
|
6206
|
+
[compVars.labelTextHorizontalSpacing]: helperRefs$1.spacing,
|
|
6207
|
+
|
|
6039
6208
|
_vertical: {
|
|
6040
|
-
[
|
|
6041
|
-
[
|
|
6042
|
-
[
|
|
6043
|
-
[
|
|
6044
|
-
[
|
|
6045
|
-
[
|
|
6046
|
-
[
|
|
6047
|
-
[
|
|
6209
|
+
[compVars.minHeight]: '200px',
|
|
6210
|
+
[compVars.flexDirection]: 'column',
|
|
6211
|
+
[compVars.hostWidth]: 'fit-content',
|
|
6212
|
+
[compVars.hostPadding]: `0 calc(${helperRefs$1.thickness} * 3)`,
|
|
6213
|
+
[compVars.stripeVerticalThickness]: helperRefs$1.thickness,
|
|
6214
|
+
[compVars.labelTextWidth]: 'fit-content',
|
|
6215
|
+
[compVars.labelTextMaxWidth]: '100%',
|
|
6216
|
+
[compVars.labelTextVerticalSpacing]: helperRefs$1.spacing,
|
|
6048
6217
|
}
|
|
6049
6218
|
};
|
|
6050
6219
|
|
|
6051
|
-
const vars$
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
[vars$5.backgroundColor]: globalRefs$4.colors.surface.light,
|
|
6056
|
-
[vars$5.outlineWidth]: '2px',
|
|
6057
|
-
[vars$5.outlineColor]: 'transparent',
|
|
6058
|
-
[vars$5.padding]: '0',
|
|
6059
|
-
[vars$5.textAlign]: 'center',
|
|
6060
|
-
[vars$5.borderColor]: 'transparent',
|
|
6061
|
-
[vars$5.digitsGap]: '0',
|
|
6062
|
-
[vars$5.focusedDigitFieldOutlineColor]: globalRefs$4.colors.surface.main,
|
|
6063
|
-
[vars$5.color]: globalRefs$4.colors.surface.contrast,
|
|
6220
|
+
const vars$8 = {
|
|
6221
|
+
...compVars,
|
|
6222
|
+
...helperVars
|
|
6223
|
+
};
|
|
6064
6224
|
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6225
|
+
var divider$1 = /*#__PURE__*/Object.freeze({
|
|
6226
|
+
__proto__: null,
|
|
6227
|
+
default: divider,
|
|
6228
|
+
vars: vars$8
|
|
6229
|
+
});
|
|
6068
6230
|
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
},
|
|
6231
|
+
const globalRefs$3 = getThemeRefs(globals);
|
|
6232
|
+
const vars$7 = PasscodeClass.cssVarList;
|
|
6072
6233
|
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6234
|
+
const passcode = {
|
|
6235
|
+
[vars$7.fontFamily]: refs.fontFamily,
|
|
6236
|
+
[vars$7.labelTextColor]: refs.labelTextColor,
|
|
6237
|
+
[vars$7.labelRequiredIndicator]: refs.requiredIndicator,
|
|
6238
|
+
[vars$7.digitValueTextColor]: refs.valueTextColor,
|
|
6239
|
+
[vars$7.digitPadding]: '0',
|
|
6240
|
+
[vars$7.digitTextAlign]: 'center',
|
|
6241
|
+
[vars$7.digitSpacing]: '0',
|
|
6242
|
+
[vars$7.hostWidth]: refs.width,
|
|
6243
|
+
[vars$7.digitOutlineColor]: 'transparent',
|
|
6244
|
+
[vars$7.digitOutlineWidth]: '2px',
|
|
6245
|
+
[vars$7.focusedDigitFieldOutlineColor]: globalRefs$3.colors.surface.main,
|
|
6076
6246
|
|
|
6077
|
-
|
|
6078
|
-
[vars$
|
|
6247
|
+
_hideCursor: {
|
|
6248
|
+
[vars$7.digitCaretTextColor]: 'transparent',
|
|
6079
6249
|
},
|
|
6080
6250
|
|
|
6081
6251
|
_invalid: {
|
|
6082
|
-
[vars$
|
|
6083
|
-
|
|
6084
|
-
[vars$5.focusedDigitFieldOutlineColor]: globalRefs$4.colors.error.light,
|
|
6085
|
-
},
|
|
6252
|
+
[vars$7.focusedDigitFieldOutlineColor]: globalRefs$3.colors.error.light,
|
|
6253
|
+
}
|
|
6086
6254
|
};
|
|
6087
6255
|
|
|
6088
|
-
|
|
6256
|
+
var passcode$1 = /*#__PURE__*/Object.freeze({
|
|
6257
|
+
__proto__: null,
|
|
6258
|
+
default: passcode,
|
|
6259
|
+
vars: vars$7
|
|
6260
|
+
});
|
|
6089
6261
|
|
|
6090
|
-
const
|
|
6262
|
+
const globalRefs$2 = getThemeRefs(globals);
|
|
6263
|
+
const vars$6 = LoaderLinearClass.cssVarList;
|
|
6091
6264
|
|
|
6092
6265
|
const loaderLinear = {
|
|
6093
|
-
[vars$
|
|
6094
|
-
[vars$
|
|
6095
|
-
|
|
6096
|
-
[vars$
|
|
6097
|
-
[vars$
|
|
6098
|
-
|
|
6099
|
-
[vars$
|
|
6100
|
-
[vars$
|
|
6101
|
-
|
|
6266
|
+
[vars$6.hostDisplay]: 'inline-block',
|
|
6267
|
+
[vars$6.hostWidth]: '100%',
|
|
6268
|
+
|
|
6269
|
+
[vars$6.barColor]: globalRefs$2.colors.surface.contrast,
|
|
6270
|
+
[vars$6.barWidth]: '20%',
|
|
6271
|
+
|
|
6272
|
+
[vars$6.barBackgroundColor]: globalRefs$2.colors.surface.main,
|
|
6273
|
+
[vars$6.barBorderRadius]: '4px',
|
|
6274
|
+
|
|
6275
|
+
[vars$6.animationDuration]: '2s',
|
|
6276
|
+
[vars$6.animationTimingFunction]: 'linear',
|
|
6277
|
+
[vars$6.animationIterationCount]: 'infinite',
|
|
6278
|
+
|
|
6102
6279
|
size: {
|
|
6103
|
-
xs: {
|
|
6104
|
-
|
|
6105
|
-
},
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
},
|
|
6109
|
-
md: {
|
|
6110
|
-
[vars$4.height]: '10px'
|
|
6111
|
-
},
|
|
6112
|
-
lg: {
|
|
6113
|
-
[vars$4.height]: '12px'
|
|
6114
|
-
},
|
|
6115
|
-
xl: {
|
|
6116
|
-
[vars$4.height]: '14px'
|
|
6117
|
-
}
|
|
6280
|
+
xs: { [vars$6.barHeight]: '8px' },
|
|
6281
|
+
sm: { [vars$6.barHeight]: '10px' },
|
|
6282
|
+
md: { [vars$6.barHeight]: '14px' },
|
|
6283
|
+
lg: { [vars$6.barHeight]: '20px' },
|
|
6284
|
+
xl: { [vars$6.barHeight]: '25px' }
|
|
6118
6285
|
},
|
|
6286
|
+
|
|
6119
6287
|
mode: {
|
|
6120
6288
|
primary: {
|
|
6121
|
-
[vars$
|
|
6289
|
+
[vars$6.barColor]: globalRefs$2.colors.primary.main
|
|
6122
6290
|
},
|
|
6123
6291
|
secondary: {
|
|
6124
|
-
[vars$
|
|
6292
|
+
[vars$6.barColor]: globalRefs$2.colors.secondary.main
|
|
6125
6293
|
}
|
|
6126
6294
|
},
|
|
6295
|
+
|
|
6127
6296
|
_hidden: {
|
|
6128
|
-
[vars$
|
|
6297
|
+
[vars$6.hostDisplay]: 'none'
|
|
6129
6298
|
}
|
|
6130
6299
|
};
|
|
6131
6300
|
|
|
6132
|
-
|
|
6301
|
+
var loaderLinear$1 = /*#__PURE__*/Object.freeze({
|
|
6302
|
+
__proto__: null,
|
|
6303
|
+
default: loaderLinear,
|
|
6304
|
+
vars: vars$6
|
|
6305
|
+
});
|
|
6133
6306
|
|
|
6134
|
-
const
|
|
6307
|
+
const globalRefs$1 = getThemeRefs(globals);
|
|
6308
|
+
const vars$5 = LoaderRadialClass.cssVarList;
|
|
6135
6309
|
|
|
6136
|
-
const
|
|
6137
|
-
|
|
6138
|
-
[vars$3.color]: globalRefs$2.colors.surface.contrast,
|
|
6139
|
-
[vars$3.animationDuration]: '2s',
|
|
6140
|
-
[vars$3.animationTimingFunction]: 'linear',
|
|
6141
|
-
[vars$3.animationIterationCount]: 'infinite',
|
|
6142
|
-
[vars$3.spinnerStyle]: 'solid',
|
|
6143
|
-
[vars$3.spinnerWidth]: '4px',
|
|
6144
|
-
[vars$3.spinnerRadius]: '50%',
|
|
6145
|
-
[vars$3.spinnerTopColor]: 'currentColor',
|
|
6146
|
-
[vars$3.spinnerBottomColor]: 'transparent',
|
|
6147
|
-
[vars$3.spinnerRightColor]: 'currentColor',
|
|
6148
|
-
[vars$3.spinnerLeftColor]: 'transparent',
|
|
6149
|
-
size: {
|
|
6150
|
-
xs: {
|
|
6151
|
-
[vars$3.width]: '20px',
|
|
6152
|
-
[vars$3.height]: '20px',
|
|
6153
|
-
[vars$3.spinnerWidth]: '2px'
|
|
6154
|
-
},
|
|
6155
|
-
sm: {
|
|
6156
|
-
[vars$3.width]: '30px',
|
|
6157
|
-
[vars$3.height]: '30px',
|
|
6158
|
-
[vars$3.spinnerWidth]: '3px'
|
|
6159
|
-
},
|
|
6160
|
-
md: {
|
|
6161
|
-
[vars$3.width]: '40px',
|
|
6162
|
-
[vars$3.height]: '40px',
|
|
6163
|
-
[vars$3.spinnerWidth]: '4px'
|
|
6164
|
-
},
|
|
6165
|
-
lg: {
|
|
6166
|
-
[vars$3.width]: '60px',
|
|
6167
|
-
[vars$3.height]: '60px',
|
|
6168
|
-
[vars$3.spinnerWidth]: '5px'
|
|
6169
|
-
},
|
|
6170
|
-
xl: {
|
|
6171
|
-
[vars$3.width]: '80px',
|
|
6172
|
-
[vars$3.height]: '80px',
|
|
6173
|
-
[vars$3.spinnerWidth]: '6px'
|
|
6174
|
-
}
|
|
6175
|
-
},
|
|
6310
|
+
const [helperTheme, helperRefs] = createHelperVars({
|
|
6311
|
+
spinnerColor: globalRefs$1.colors.surface.contrast,
|
|
6176
6312
|
mode: {
|
|
6177
6313
|
primary: {
|
|
6178
|
-
|
|
6314
|
+
spinnerColor: globalRefs$1.colors.primary.main
|
|
6179
6315
|
},
|
|
6180
6316
|
secondary: {
|
|
6181
|
-
|
|
6317
|
+
spinnerColor: globalRefs$1.colors.secondary.main
|
|
6182
6318
|
}
|
|
6319
|
+
}
|
|
6320
|
+
}, componentName$j);
|
|
6321
|
+
|
|
6322
|
+
const loaderRadial = {
|
|
6323
|
+
...helperTheme,
|
|
6324
|
+
|
|
6325
|
+
[vars$5.animationDuration]: '2s',
|
|
6326
|
+
[vars$5.animationTimingFunction]: 'linear',
|
|
6327
|
+
[vars$5.animationIterationCount]: 'infinite',
|
|
6328
|
+
[vars$5.spinnerBorderStyle]: 'solid',
|
|
6329
|
+
[vars$5.spinnerBorderWidth]: '0.2em',
|
|
6330
|
+
[vars$5.spinnerBorderRadius]: '50%',
|
|
6331
|
+
[vars$5.spinnerQuadrant1Color]: helperRefs.spinnerColor,
|
|
6332
|
+
[vars$5.spinnerQuadrant2Color]: 'transparent',
|
|
6333
|
+
[vars$5.spinnerQuadrant3Color]: helperRefs.spinnerColor,
|
|
6334
|
+
[vars$5.spinnerQuadrant4Color]: 'transparent',
|
|
6335
|
+
|
|
6336
|
+
size: {
|
|
6337
|
+
xs: { [vars$5.spinnerSize]: '20px' },
|
|
6338
|
+
sm: { [vars$5.spinnerSize]: '30px' },
|
|
6339
|
+
md: { [vars$5.spinnerSize]: '40px' },
|
|
6340
|
+
lg: { [vars$5.spinnerSize]: '60px' },
|
|
6341
|
+
xl: { [vars$5.spinnerSize]: '80px' }
|
|
6183
6342
|
},
|
|
6343
|
+
|
|
6184
6344
|
_hidden: {
|
|
6185
|
-
[vars$
|
|
6345
|
+
[vars$5.hostDisplay]: 'none'
|
|
6186
6346
|
}
|
|
6187
6347
|
};
|
|
6188
6348
|
|
|
6189
|
-
|
|
6349
|
+
var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
|
6350
|
+
__proto__: null,
|
|
6351
|
+
default: loaderRadial,
|
|
6352
|
+
vars: vars$5
|
|
6353
|
+
});
|
|
6190
6354
|
|
|
6191
|
-
const
|
|
6355
|
+
const globalRefs = getThemeRefs(globals);
|
|
6356
|
+
const vars$4 = ComboBoxClass.cssVarList;
|
|
6192
6357
|
|
|
6193
6358
|
const comboBox = {
|
|
6194
|
-
[vars$
|
|
6195
|
-
[vars$
|
|
6196
|
-
[vars$
|
|
6197
|
-
[vars$
|
|
6198
|
-
[vars$
|
|
6199
|
-
[vars$
|
|
6200
|
-
[vars$
|
|
6201
|
-
[vars$
|
|
6202
|
-
[vars$
|
|
6203
|
-
[vars$
|
|
6204
|
-
|
|
6205
|
-
[vars$
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
},
|
|
6214
|
-
md: {
|
|
6215
|
-
[vars$2.fontSize]: '14px',
|
|
6216
|
-
},
|
|
6217
|
-
lg: {
|
|
6218
|
-
[vars$2.fontSize]: '20px',
|
|
6219
|
-
},
|
|
6220
|
-
xl: {
|
|
6221
|
-
[vars$2.fontSize]: '25px',
|
|
6222
|
-
}
|
|
6223
|
-
},
|
|
6359
|
+
[vars$4.hostWidth]: refs.width,
|
|
6360
|
+
[vars$4.fontSize]: refs.fontSize,
|
|
6361
|
+
[vars$4.fontFamily]: refs.fontFamily,
|
|
6362
|
+
[vars$4.labelTextColor]: refs.labelTextColor,
|
|
6363
|
+
[vars$4.inputBorderColor]: refs.borderColor,
|
|
6364
|
+
[vars$4.inputBorderWidth]: refs.borderWidth,
|
|
6365
|
+
[vars$4.inputBorderStyle]: refs.borderStyle,
|
|
6366
|
+
[vars$4.inputBorderRadius]: refs.borderRadius,
|
|
6367
|
+
[vars$4.inputOutlineColor]: refs.outlineColor,
|
|
6368
|
+
[vars$4.inputOutlineOffset]: refs.outlineOffset,
|
|
6369
|
+
[vars$4.inputOutlineWidth]: refs.outlineWidth,
|
|
6370
|
+
[vars$4.inputOutlineStyle]: refs.outlineStyle,
|
|
6371
|
+
[vars$4.labelRequiredIndicator]: refs.requiredIndicator,
|
|
6372
|
+
[vars$4.inputValueTextColor]: refs.valueTextColor,
|
|
6373
|
+
[vars$4.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
|
6374
|
+
[vars$4.inputBackgroundColor]: refs.backgroundColor,
|
|
6375
|
+
[vars$4.inputHeight]: refs.inputHeight,
|
|
6376
|
+
[vars$4.inputDropdownButtonColor]: globalRefs.colors.surface.contrast,
|
|
6377
|
+
[vars$4.inputDropdownButtonCursor]: 'pointer',
|
|
6224
6378
|
|
|
6225
6379
|
_readonly: {
|
|
6226
|
-
[vars$
|
|
6380
|
+
[vars$4.inputDropdownButtonCursor]: 'default'
|
|
6227
6381
|
},
|
|
6228
6382
|
|
|
6229
6383
|
_invalid: {
|
|
6230
|
-
[vars$
|
|
6231
|
-
[vars$2.placeholderColor]: globalRefs$1.colors.error.light,
|
|
6232
|
-
[vars$2.toggleColor]: globalRefs$1.colors.error.main,
|
|
6384
|
+
[vars$4.inputDropdownButtonColor]: globalRefs.colors.error.main
|
|
6233
6385
|
},
|
|
6386
|
+
|
|
6234
6387
|
// [vars.overlayCursor]: 'pointer',
|
|
6235
6388
|
// [vars.overlayBackground]: globalRefs.colors.surface.light,
|
|
6236
6389
|
// [vars.overlayBorder]: `2px solid red`,
|
|
6237
6390
|
};
|
|
6238
6391
|
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
const phoneField = {
|
|
6247
|
-
[vars$1.wrapperBorderStyle]: 'solid',
|
|
6248
|
-
[vars$1.wrapperBorderWidth]: '1px',
|
|
6249
|
-
[vars$1.wrapperBorderColor]: 'transparent',
|
|
6250
|
-
[vars$1.wrapperBorderRadius]: globalRefs.radius.xs,
|
|
6251
|
-
[vars$1.placeholderColor]: globalRefs.colors.surface.main,
|
|
6252
|
-
[vars$1.color]: globalRefs.colors.surface.contrast,
|
|
6253
|
-
|
|
6254
|
-
[vars$1.phoneInputWidth]: '10em',
|
|
6255
|
-
[vars$1.countryCodeInputWidth]: '5em',
|
|
6256
|
-
|
|
6257
|
-
[vars$1.inputHeight]: '2em',
|
|
6258
|
-
[vars$1.countryCodeDropdownWidth]: '12em',
|
|
6259
|
-
|
|
6260
|
-
size: {
|
|
6261
|
-
xs: {
|
|
6262
|
-
[vars$1.fontSize]: '8px',
|
|
6263
|
-
},
|
|
6264
|
-
sm: {
|
|
6265
|
-
[vars$1.fontSize]: '20px',
|
|
6266
|
-
},
|
|
6267
|
-
md: {
|
|
6268
|
-
[vars$1.fontSize]: '14px',
|
|
6269
|
-
},
|
|
6270
|
-
lg: {
|
|
6271
|
-
[vars$1.fontSize]: '20px',
|
|
6272
|
-
},
|
|
6273
|
-
xl: {
|
|
6274
|
-
[vars$1.fontSize]: '25px',
|
|
6275
|
-
}
|
|
6276
|
-
},
|
|
6392
|
+
var comboBox$1 = /*#__PURE__*/Object.freeze({
|
|
6393
|
+
__proto__: null,
|
|
6394
|
+
comboBox: comboBox,
|
|
6395
|
+
default: comboBox,
|
|
6396
|
+
vars: vars$4
|
|
6397
|
+
});
|
|
6277
6398
|
|
|
6278
|
-
|
|
6279
|
-
[vars$1.componentWidth]: '100%',
|
|
6280
|
-
[vars$1.phoneInputWidth]: '100%',
|
|
6281
|
-
[vars$1.countryCodeDropdownWidth]: '100%',
|
|
6282
|
-
},
|
|
6399
|
+
const vars$3 = ImageClass.cssVarList;
|
|
6283
6400
|
|
|
6284
|
-
|
|
6285
|
-
[vars$1.wrapperBorderColor]: globalRefs.colors.surface.main
|
|
6286
|
-
},
|
|
6401
|
+
const image = {};
|
|
6287
6402
|
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6403
|
+
var image$1 = /*#__PURE__*/Object.freeze({
|
|
6404
|
+
__proto__: null,
|
|
6405
|
+
default: image,
|
|
6406
|
+
vars: vars$3
|
|
6407
|
+
});
|
|
6291
6408
|
|
|
6292
|
-
|
|
6293
|
-
[vars$1.outlineColor]: globalRefs.colors.surface.main
|
|
6294
|
-
},
|
|
6409
|
+
const vars$2 = PhoneFieldClass.cssVarList;
|
|
6295
6410
|
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6411
|
+
const phoneField = {
|
|
6412
|
+
[vars$2.hostWidth]: refs.width,
|
|
6413
|
+
[vars$2.fontSize]: refs.fontSize,
|
|
6414
|
+
[vars$2.fontFamily]: refs.fontFamily,
|
|
6415
|
+
[vars$2.labelTextColor]: refs.labelTextColor,
|
|
6416
|
+
[vars$2.labelRequiredIndicator]: refs.requiredIndicator,
|
|
6417
|
+
[vars$2.inputValueTextColor]: refs.valueTextColor,
|
|
6418
|
+
[vars$2.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
|
6419
|
+
[vars$2.inputBorderStyle]: refs.borderStyle,
|
|
6420
|
+
[vars$2.inputBorderWidth]: refs.borderWidth,
|
|
6421
|
+
[vars$2.inputBorderColor]: refs.borderColor,
|
|
6422
|
+
[vars$2.inputBorderRadius]: refs.borderRadius,
|
|
6423
|
+
[vars$2.inputOutlineStyle]: refs.outlineStyle,
|
|
6424
|
+
[vars$2.inputOutlineWidth]: refs.outlineWidth,
|
|
6425
|
+
[vars$2.inputOutlineColor]: refs.outlineColor,
|
|
6426
|
+
[vars$2.inputOutlineOffset]: refs.outlineOffset,
|
|
6427
|
+
[vars$2.inputHeight]: refs.inputHeight,
|
|
6428
|
+
[vars$2.phoneInputWidth]: '10em',
|
|
6429
|
+
[vars$2.countryCodeInputWidth]: '5em',
|
|
6430
|
+
[vars$2.countryCodeDropdownWidth]: '20em',
|
|
6302
6431
|
|
|
6303
6432
|
// '@overlay': {
|
|
6304
6433
|
// overlayItemBackgroundColor: 'red'
|
|
6305
6434
|
// }
|
|
6306
6435
|
};
|
|
6307
6436
|
|
|
6308
|
-
|
|
6437
|
+
var phoneField$1 = /*#__PURE__*/Object.freeze({
|
|
6438
|
+
__proto__: null,
|
|
6439
|
+
default: phoneField,
|
|
6440
|
+
vars: vars$2
|
|
6441
|
+
});
|
|
6442
|
+
|
|
6443
|
+
const vars$1 = NewPasswordClass.cssVarList;
|
|
6309
6444
|
|
|
6310
6445
|
const newPassword = {
|
|
6311
|
-
[vars.
|
|
6446
|
+
[vars$1.hostWidth]: refs.width,
|
|
6447
|
+
[vars$1.fontSize]: refs.fontSize,
|
|
6448
|
+
[vars$1.fontFamily]: refs.fontFamily,
|
|
6449
|
+
[vars$1.spaceBetweenInputs]: '1em',
|
|
6312
6450
|
|
|
6313
6451
|
_required: {
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
},
|
|
6320
|
-
|
|
6321
|
-
size: {
|
|
6322
|
-
xs: {
|
|
6323
|
-
[vars.fontSize]: '8px',
|
|
6324
|
-
},
|
|
6325
|
-
sm: {
|
|
6326
|
-
[vars.fontSize]: '10px',
|
|
6327
|
-
},
|
|
6328
|
-
md: {
|
|
6329
|
-
[vars.fontSize]: '14px',
|
|
6330
|
-
},
|
|
6331
|
-
lg: {
|
|
6332
|
-
[vars.fontSize]: '20px',
|
|
6333
|
-
},
|
|
6334
|
-
xl: {
|
|
6335
|
-
[vars.fontSize]: '25px',
|
|
6336
|
-
}
|
|
6337
|
-
},
|
|
6452
|
+
// NewPassword doesn't pass `required` attribute to its PasswordFields.
|
|
6453
|
+
// That's why we fake the required indicator on each input.
|
|
6454
|
+
// We do that by injecting `::after` element, and populating it with requiredIndicator content.
|
|
6455
|
+
[vars$1.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
|
|
6456
|
+
}
|
|
6338
6457
|
};
|
|
6339
6458
|
|
|
6340
|
-
var
|
|
6341
|
-
|
|
6459
|
+
var newPassword$1 = /*#__PURE__*/Object.freeze({
|
|
6460
|
+
__proto__: null,
|
|
6461
|
+
default: newPassword,
|
|
6462
|
+
vars: vars$1
|
|
6463
|
+
});
|
|
6464
|
+
|
|
6465
|
+
const components = {
|
|
6466
|
+
button: button$1,
|
|
6342
6467
|
textField: textField$1,
|
|
6343
|
-
passwordField,
|
|
6344
|
-
numberField,
|
|
6345
|
-
emailField,
|
|
6346
|
-
textArea,
|
|
6347
|
-
checkbox,
|
|
6348
|
-
switchToggle,
|
|
6349
|
-
container,
|
|
6350
|
-
logo,
|
|
6351
|
-
text,
|
|
6352
|
-
link,
|
|
6353
|
-
divider,
|
|
6354
|
-
passcode,
|
|
6355
|
-
loaderRadial,
|
|
6356
|
-
loaderLinear,
|
|
6357
|
-
comboBox,
|
|
6358
|
-
image,
|
|
6359
|
-
phoneField,
|
|
6360
|
-
newPassword,
|
|
6468
|
+
passwordField: passwordField$1,
|
|
6469
|
+
numberField: numberField$1,
|
|
6470
|
+
emailField: emailField$1,
|
|
6471
|
+
textArea: textArea$1,
|
|
6472
|
+
checkbox: checkbox$1,
|
|
6473
|
+
switchToggle: switchToggle$1,
|
|
6474
|
+
container: container$1,
|
|
6475
|
+
logo: logo$1,
|
|
6476
|
+
text: text$1,
|
|
6477
|
+
link: link$1,
|
|
6478
|
+
divider: divider$1,
|
|
6479
|
+
passcode: passcode$1,
|
|
6480
|
+
loaderRadial: loaderRadial$1,
|
|
6481
|
+
loaderLinear: loaderLinear$1,
|
|
6482
|
+
comboBox: comboBox$1,
|
|
6483
|
+
image: image$1,
|
|
6484
|
+
phoneField: phoneField$1,
|
|
6485
|
+
newPassword: newPassword$1,
|
|
6486
|
+
inputWrapper,
|
|
6361
6487
|
};
|
|
6362
6488
|
|
|
6363
|
-
|
|
6489
|
+
const theme = Object.keys(components).reduce((acc, comp) => ({ ...acc, [comp]: components[comp].default }), {});
|
|
6490
|
+
const vars = Object.keys(components).reduce((acc, comp) => ({ ...acc, [comp]: components[comp].vars }), {});
|
|
6491
|
+
|
|
6492
|
+
const defaultTheme = { globals, components: theme };
|
|
6493
|
+
const themeVars = { globals: vars$m, components: vars };
|
|
6364
6494
|
|
|
6365
|
-
export { ButtonClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordFieldClass, PhoneFieldClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, componentsThemeManager, createComponentsTheme,
|
|
6495
|
+
export { ButtonClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordFieldClass, PhoneFieldClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
|
|
6366
6496
|
//# sourceMappingURL=index.esm.js.map
|