@descope/web-components-ui 1.0.133 → 1.0.135
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +320 -281
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +296 -256
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/{18.js → 1018.js} +2 -2
- package/dist/umd/2481.js +1 -0
- package/dist/umd/3208.js +2 -0
- package/dist/umd/3585.js +1 -0
- package/dist/umd/3878.js +1 -0
- package/dist/umd/4201.js +1 -0
- package/dist/umd/4447.js +1 -0
- package/dist/umd/{513.js → 4513.js} +1 -1
- package/dist/umd/4803.js +1 -0
- package/dist/umd/5767.js +2 -0
- package/dist/umd/{806.js → 5806.js} +2 -2
- package/dist/umd/{56.js → 7056.js} +2 -2
- package/dist/umd/{101.js → 7101.js} +2 -2
- package/dist/umd/{824.js → 7824.js} +2 -2
- package/dist/umd/7840.js +356 -0
- package/dist/umd/{725.js → 8725.js} +2 -2
- package/dist/umd/{211.js → 9211.js} +2 -2
- package/dist/umd/9241.js +1 -0
- package/dist/umd/{314.js → 9314.js} +2 -2
- package/dist/umd/{437.js → 9437.js} +2 -2
- package/dist/umd/{515.js → 9515.js} +2 -2
- package/dist/umd/{789.js → 9789.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-date-picker-index-js.js +1 -1
- package/dist/umd/descope-divider-index-js.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +1 -1
- package/dist/umd/descope-image-index-js.js +1 -1
- package/dist/umd/descope-loader-linear-index-js.js +1 -1
- package/dist/umd/descope-loader-radial-index-js.js +1 -1
- package/dist/umd/descope-logo-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-number-field-index-js.js +1 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
- package/dist/umd/descope-password-index-js.js +1 -1
- package/dist/umd/descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/descope-phone-field-index-js.js +1 -1
- package/dist/umd/descope-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/descope-totp-image-index-js.js +1 -0
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- package/src/baseClasses/createCssVarImageClass.js +49 -0
- package/src/components/boolean-fields/booleanFieldMixin.js +1 -0
- package/src/components/boolean-fields/commonStyles.js +1 -0
- package/src/components/boolean-fields/descope-checkbox/CheckboxClass.js +10 -2
- package/src/components/boolean-fields/descope-switch-toggle/SwitchToggleClass.js +1 -3
- package/src/components/descope-logo/LogoClass.js +2 -51
- package/src/components/descope-totp-image/TotpImageClass.js +6 -0
- package/src/components/descope-totp-image/index.js +5 -0
- package/src/index.cjs.js +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/theme/components/checkbox.js +8 -5
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/inputWrapper.js +1 -0
- package/src/theme/components/switchToggle.js +11 -5
- package/src/theme/components/totpImage.js +10 -0
- package/dist/umd/201.js +0 -1
- package/dist/umd/208.js +0 -2
- package/dist/umd/241.js +0 -1
- package/dist/umd/447.js +0 -1
- package/dist/umd/481.js +0 -1
- package/dist/umd/767.js +0 -2
- package/dist/umd/803.js +0 -1
- package/dist/umd/840.js +0 -356
- package/dist/umd/878.js +0 -1
- /package/dist/umd/{18.js.LICENSE.txt → 1018.js.LICENSE.txt} +0 -0
- /package/dist/umd/{208.js.LICENSE.txt → 3208.js.LICENSE.txt} +0 -0
- /package/dist/umd/{767.js.LICENSE.txt → 5767.js.LICENSE.txt} +0 -0
- /package/dist/umd/{437.js.LICENSE.txt → 5806.js.LICENSE.txt} +0 -0
- /package/dist/umd/{56.js.LICENSE.txt → 7056.js.LICENSE.txt} +0 -0
- /package/dist/umd/{101.js.LICENSE.txt → 7101.js.LICENSE.txt} +0 -0
- /package/dist/umd/{824.js.LICENSE.txt → 7824.js.LICENSE.txt} +0 -0
- /package/dist/umd/{840.js.LICENSE.txt → 7840.js.LICENSE.txt} +0 -0
- /package/dist/umd/{515.js.LICENSE.txt → 8725.js.LICENSE.txt} +0 -0
- /package/dist/umd/{211.js.LICENSE.txt → 9211.js.LICENSE.txt} +0 -0
- /package/dist/umd/{314.js.LICENSE.txt → 9314.js.LICENSE.txt} +0 -0
- /package/dist/umd/{806.js.LICENSE.txt → 9437.js.LICENSE.txt} +0 -0
- /package/dist/umd/{725.js.LICENSE.txt → 9515.js.LICENSE.txt} +0 -0
package/dist/index.esm.js
CHANGED
@@ -1223,7 +1223,7 @@ const inputEventsDispatchingMixin = (superclass) => class InputEventsDispatching
|
|
1223
1223
|
}
|
1224
1224
|
};
|
1225
1225
|
|
1226
|
-
const componentName$
|
1226
|
+
const componentName$p = getComponentName('button');
|
1227
1227
|
|
1228
1228
|
const resetStyles = `
|
1229
1229
|
:host {
|
@@ -1311,7 +1311,7 @@ const ButtonClass = compose(
|
|
1311
1311
|
${useHostExternalPadding(ButtonClass.cssVarList)}
|
1312
1312
|
`,
|
1313
1313
|
excludeAttrsSync: ['tabindex'],
|
1314
|
-
componentName: componentName$
|
1314
|
+
componentName: componentName$p
|
1315
1315
|
})
|
1316
1316
|
);
|
1317
1317
|
|
@@ -1344,7 +1344,7 @@ const loadingIndicatorStyles = `
|
|
1344
1344
|
}
|
1345
1345
|
`;
|
1346
1346
|
|
1347
|
-
customElements.define(componentName$
|
1347
|
+
customElements.define(componentName$p, ButtonClass);
|
1348
1348
|
|
1349
1349
|
const createBaseInputClass = (...args) => compose(
|
1350
1350
|
inputValidationMixin,
|
@@ -1353,7 +1353,7 @@ const createBaseInputClass = (...args) => compose(
|
|
1353
1353
|
inputEventsDispatchingMixin
|
1354
1354
|
)(createBaseClass(...args));
|
1355
1355
|
|
1356
|
-
const componentName$
|
1356
|
+
const componentName$o = getComponentName('boolean-field-internal');
|
1357
1357
|
|
1358
1358
|
const forwardAttributes$1 = [
|
1359
1359
|
'disabled',
|
@@ -1362,7 +1362,7 @@ const forwardAttributes$1 = [
|
|
1362
1362
|
'readonly'
|
1363
1363
|
];
|
1364
1364
|
|
1365
|
-
const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$
|
1365
|
+
const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$o, baseSelector: 'div' });
|
1366
1366
|
|
1367
1367
|
class BooleanInputInternal extends BaseInputClass$3 {
|
1368
1368
|
constructor() {
|
@@ -1426,14 +1426,14 @@ const booleanFieldMixin = (superclass) =>
|
|
1426
1426
|
|
1427
1427
|
const template = document.createElement('template');
|
1428
1428
|
template.innerHTML = `
|
1429
|
-
<${componentName$
|
1429
|
+
<${componentName$o}
|
1430
1430
|
tabindex="-1"
|
1431
1431
|
slot="input"
|
1432
|
-
></${componentName$
|
1432
|
+
></${componentName$o}>
|
1433
1433
|
`;
|
1434
1434
|
|
1435
1435
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
1436
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
1436
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$o);
|
1437
1437
|
this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
|
1438
1438
|
|
1439
1439
|
forwardAttrs(this, this.inputElement, {
|
@@ -1443,6 +1443,7 @@ const booleanFieldMixin = (superclass) =>
|
|
1443
1443
|
'size',
|
1444
1444
|
'label',
|
1445
1445
|
'invalid',
|
1446
|
+
'disabled'
|
1446
1447
|
]
|
1447
1448
|
});
|
1448
1449
|
|
@@ -1460,6 +1461,7 @@ ${resetInputFieldDefaultWidth()}
|
|
1460
1461
|
|
1461
1462
|
.wrapper {
|
1462
1463
|
display: flex;
|
1464
|
+
box-sizing: border-box;
|
1463
1465
|
}
|
1464
1466
|
|
1465
1467
|
vaadin-text-field {
|
@@ -1517,7 +1519,7 @@ vaadin-checkbox::part(checkbox) {
|
|
1517
1519
|
}
|
1518
1520
|
`;
|
1519
1521
|
|
1520
|
-
const componentName$
|
1522
|
+
const componentName$n = getComponentName('checkbox');
|
1521
1523
|
|
1522
1524
|
const {
|
1523
1525
|
host: host$b,
|
@@ -1562,6 +1564,7 @@ const CheckboxClass = compose(
|
|
1562
1564
|
labelTextColor: [
|
1563
1565
|
{ ...label$8, property: 'color' },
|
1564
1566
|
{ ...requiredIndicator$7, property: 'color' },
|
1567
|
+
{ ...label$8, property: '-webkit-text-fill-color' }
|
1565
1568
|
],
|
1566
1569
|
labelRequiredIndicator: { ...requiredIndicator$7, property: 'content' },
|
1567
1570
|
|
@@ -1575,19 +1578,26 @@ const CheckboxClass = compose(
|
|
1575
1578
|
],
|
1576
1579
|
inputValueTextColor: { ...checkboxSurface, property: 'color' },
|
1577
1580
|
inputBackgroundColor: { ...checkboxElement, property: 'background-color' },
|
1581
|
+
|
1578
1582
|
inputBorderRadius: { ...checkboxElement, property: 'border-radius' },
|
1583
|
+
inputBorderWidth: { ...checkboxElement, property: 'border-width' },
|
1584
|
+
inputBorderOffset: { ...checkboxElement, property: 'border-offset' },
|
1585
|
+
inputBorderColor: { ...checkboxElement, property: 'border-color' },
|
1586
|
+
inputBorderStyle: { ...checkboxElement, property: 'border-style' },
|
1587
|
+
|
1579
1588
|
inputOutlineWidth: { ...checkboxElement, property: 'outline-width' },
|
1580
1589
|
inputOutlineOffset: { ...checkboxElement, property: 'outline-offset' },
|
1581
1590
|
inputOutlineColor: { ...checkboxElement, property: 'outline-color' },
|
1582
1591
|
inputOutlineStyle: { ...checkboxElement, property: 'outline-style' },
|
1592
|
+
|
1583
1593
|
inputSize: [
|
1584
1594
|
{ ...checkboxElement, property: 'width' },
|
1585
|
-
{ ...label$8, property: 'margin-left' },
|
1586
1595
|
{ ...checkboxElement, property: 'height' },
|
1587
1596
|
{ ...checkboxSurface, property: 'font-size' },
|
1588
1597
|
{ ...component$1, property: 'font-size' },
|
1598
|
+
{ ...checkboxHiddenLabel$1, property: 'line-height' },
|
1599
|
+
{ ...label$8, property: 'margin-left' },
|
1589
1600
|
{ ...label$8, property: 'line-height' },
|
1590
|
-
{ ...checkboxHiddenLabel$1, property: 'line-height' }
|
1591
1601
|
],
|
1592
1602
|
},
|
1593
1603
|
}),
|
@@ -1604,15 +1614,15 @@ const CheckboxClass = compose(
|
|
1604
1614
|
${useHostExternalPadding(CheckboxClass.cssVarList)}
|
1605
1615
|
`,
|
1606
1616
|
excludeAttrsSync: ['tabindex'],
|
1607
|
-
componentName: componentName$
|
1617
|
+
componentName: componentName$n
|
1608
1618
|
})
|
1609
1619
|
);
|
1610
1620
|
|
1611
|
-
customElements.define(componentName$
|
1621
|
+
customElements.define(componentName$o, BooleanInputInternal);
|
1612
1622
|
|
1613
|
-
customElements.define(componentName$
|
1623
|
+
customElements.define(componentName$n, CheckboxClass);
|
1614
1624
|
|
1615
|
-
const componentName$
|
1625
|
+
const componentName$m = getComponentName('switch-toggle');
|
1616
1626
|
|
1617
1627
|
const {
|
1618
1628
|
host: host$a,
|
@@ -1689,6 +1699,7 @@ const SwitchToggleClass = compose(
|
|
1689
1699
|
labelTextColor: [
|
1690
1700
|
{ ...label$7, property: 'color' },
|
1691
1701
|
{ ...requiredIndicator$6, property: 'color' },
|
1702
|
+
{ ...label$7, property: '-webkit-text-fill-color' }
|
1692
1703
|
],
|
1693
1704
|
labelRequiredIndicator: { ...requiredIndicator$6, property: 'content' },
|
1694
1705
|
inputOutlineWidth: { ...track, property: 'outline-width' },
|
@@ -1714,9 +1725,6 @@ const SwitchToggleClass = compose(
|
|
1714
1725
|
vaadin-checkbox[active]::part(checkbox) {
|
1715
1726
|
transform: none;
|
1716
1727
|
}
|
1717
|
-
vaadin-checkbox[checked]::part(checkbox) {
|
1718
|
-
background: none;
|
1719
|
-
}
|
1720
1728
|
vaadin-checkbox::part(checkbox)::after {
|
1721
1729
|
position: absolute;
|
1722
1730
|
opacity: 1;
|
@@ -1724,17 +1732,17 @@ const SwitchToggleClass = compose(
|
|
1724
1732
|
}
|
1725
1733
|
`,
|
1726
1734
|
excludeAttrsSync: ['tabindex'],
|
1727
|
-
componentName: componentName$
|
1735
|
+
componentName: componentName$m
|
1728
1736
|
})
|
1729
1737
|
);
|
1730
1738
|
|
1731
|
-
customElements.define(componentName$
|
1739
|
+
customElements.define(componentName$m, SwitchToggleClass);
|
1732
1740
|
|
1733
|
-
const componentName$
|
1741
|
+
const componentName$l = getComponentName('loader-linear');
|
1734
1742
|
|
1735
|
-
class RawLoaderLinear extends createBaseClass({ componentName: componentName$
|
1743
|
+
class RawLoaderLinear extends createBaseClass({ componentName: componentName$l, baseSelector: ':host > div' }) {
|
1736
1744
|
static get componentName() {
|
1737
|
-
return componentName$
|
1745
|
+
return componentName$l;
|
1738
1746
|
}
|
1739
1747
|
constructor() {
|
1740
1748
|
super();
|
@@ -1796,11 +1804,11 @@ const LoaderLinearClass = compose(
|
|
1796
1804
|
componentNameValidationMixin
|
1797
1805
|
)(RawLoaderLinear);
|
1798
1806
|
|
1799
|
-
customElements.define(componentName$
|
1807
|
+
customElements.define(componentName$l, LoaderLinearClass);
|
1800
1808
|
|
1801
|
-
const componentName$
|
1809
|
+
const componentName$k = getComponentName('loader-radial');
|
1802
1810
|
|
1803
|
-
class RawLoaderRadial extends createBaseClass({ componentName: componentName$
|
1811
|
+
class RawLoaderRadial extends createBaseClass({ componentName: componentName$k, baseSelector: ':host > div' }) {
|
1804
1812
|
constructor() {
|
1805
1813
|
super();
|
1806
1814
|
|
@@ -1847,11 +1855,11 @@ const LoaderRadialClass = compose(
|
|
1847
1855
|
componentNameValidationMixin
|
1848
1856
|
)(RawLoaderRadial);
|
1849
1857
|
|
1850
|
-
customElements.define(componentName$
|
1858
|
+
customElements.define(componentName$k, LoaderRadialClass);
|
1851
1859
|
|
1852
|
-
const componentName$
|
1860
|
+
const componentName$j = getComponentName('container');
|
1853
1861
|
|
1854
|
-
class RawContainer extends createBaseClass({ componentName: componentName$
|
1862
|
+
class RawContainer extends createBaseClass({ componentName: componentName$j, baseSelector: ':host > slot' }) {
|
1855
1863
|
constructor() {
|
1856
1864
|
super();
|
1857
1865
|
|
@@ -1909,10 +1917,10 @@ const ContainerClass = compose(
|
|
1909
1917
|
componentNameValidationMixin
|
1910
1918
|
)(RawContainer);
|
1911
1919
|
|
1912
|
-
customElements.define(componentName$
|
1920
|
+
customElements.define(componentName$j, ContainerClass);
|
1913
1921
|
|
1914
|
-
const componentName$
|
1915
|
-
class RawDivider extends createBaseClass({ componentName: componentName$
|
1922
|
+
const componentName$i = getComponentName('divider');
|
1923
|
+
class RawDivider extends createBaseClass({ componentName: componentName$i, baseSelector: ':host > div' }) {
|
1916
1924
|
constructor() {
|
1917
1925
|
super();
|
1918
1926
|
|
@@ -2013,9 +2021,9 @@ const DividerClass = compose(
|
|
2013
2021
|
componentNameValidationMixin
|
2014
2022
|
)(RawDivider);
|
2015
2023
|
|
2016
|
-
const componentName$
|
2024
|
+
const componentName$h = getComponentName('text');
|
2017
2025
|
|
2018
|
-
class RawText extends createBaseClass({ componentName: componentName$
|
2026
|
+
class RawText extends createBaseClass({ componentName: componentName$h, baseSelector: ':host > slot' }) {
|
2019
2027
|
constructor() {
|
2020
2028
|
super();
|
2021
2029
|
|
@@ -2057,9 +2065,9 @@ const TextClass = compose(
|
|
2057
2065
|
componentNameValidationMixin
|
2058
2066
|
)(RawText);
|
2059
2067
|
|
2060
|
-
customElements.define(componentName$
|
2068
|
+
customElements.define(componentName$h, TextClass);
|
2061
2069
|
|
2062
|
-
customElements.define(componentName$
|
2070
|
+
customElements.define(componentName$i, DividerClass);
|
2063
2071
|
|
2064
2072
|
const {
|
2065
2073
|
host: host$7,
|
@@ -2130,7 +2138,7 @@ var textFieldMappings = {
|
|
2130
2138
|
inputPlaceholderColor: { ...placeholder$2, property: 'color' }
|
2131
2139
|
};
|
2132
2140
|
|
2133
|
-
const componentName$
|
2141
|
+
const componentName$g = getComponentName('email-field');
|
2134
2142
|
|
2135
2143
|
const EmailFieldClass = compose(
|
2136
2144
|
createStyleMixin({
|
@@ -2153,15 +2161,15 @@ const EmailFieldClass = compose(
|
|
2153
2161
|
${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
|
2154
2162
|
`,
|
2155
2163
|
excludeAttrsSync: ['tabindex'],
|
2156
|
-
componentName: componentName$
|
2164
|
+
componentName: componentName$g
|
2157
2165
|
})
|
2158
2166
|
);
|
2159
2167
|
|
2160
|
-
customElements.define(componentName$
|
2168
|
+
customElements.define(componentName$g, EmailFieldClass);
|
2161
2169
|
|
2162
|
-
const componentName$
|
2170
|
+
const componentName$f = getComponentName('link');
|
2163
2171
|
|
2164
|
-
class RawLink extends createBaseClass({ componentName: componentName$
|
2172
|
+
class RawLink extends createBaseClass({ componentName: componentName$f, baseSelector: ':host a' }) {
|
2165
2173
|
constructor() {
|
2166
2174
|
super();
|
2167
2175
|
|
@@ -2225,56 +2233,65 @@ const LinkClass = compose(
|
|
2225
2233
|
componentNameValidationMixin
|
2226
2234
|
)(RawLink);
|
2227
2235
|
|
2228
|
-
customElements.define(componentName$
|
2229
|
-
|
2230
|
-
const componentName$d = getComponentName('logo');
|
2236
|
+
customElements.define(componentName$f, LinkClass);
|
2231
2237
|
|
2232
2238
|
let style;
|
2233
|
-
const
|
2239
|
+
const getContent = () => style;
|
2240
|
+
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
2241
|
+
class RawCssVarImageClass extends createBaseClass({ componentName, baseSelector: ':host > div' }) {
|
2242
|
+
constructor() {
|
2243
|
+
super();
|
2244
|
+
this.attachShadow({ mode: 'open' }).innerHTML = `
|
2245
|
+
<style>
|
2246
|
+
:host {
|
2247
|
+
display: inline-flex;
|
2248
|
+
}
|
2249
|
+
:host([draggable="true"]) > div {
|
2250
|
+
pointer-events: none
|
2251
|
+
}
|
2252
|
+
:host > div {
|
2253
|
+
display: inline-block;
|
2254
|
+
max-width: 100%;
|
2255
|
+
max-height: 100%;
|
2256
|
+
object-fit: contain;
|
2257
|
+
margin: auto;
|
2258
|
+
${getContent()}
|
2259
|
+
}
|
2260
|
+
</style>
|
2261
|
+
<div></div>
|
2262
|
+
`;
|
2263
|
+
}
|
2264
|
+
}
|
2234
2265
|
|
2235
|
-
|
2236
|
-
|
2237
|
-
|
2266
|
+
const CssVarImageClass = compose(
|
2267
|
+
createStyleMixin({
|
2268
|
+
mappings: {
|
2269
|
+
height: { selector: () => ':host' },
|
2270
|
+
width: { selector: () => ':host' },
|
2271
|
+
[varName]: { property: 'content' },
|
2272
|
+
[fallbackVarName]: { property: 'content' },
|
2273
|
+
}
|
2274
|
+
}),
|
2275
|
+
draggableMixin,
|
2276
|
+
componentNameValidationMixin
|
2277
|
+
)(RawCssVarImageClass);
|
2238
2278
|
|
2239
|
-
|
2240
|
-
<style>
|
2241
|
-
${getStyle()}
|
2242
|
-
</style>
|
2243
|
-
<div></div>`;
|
2244
|
-
}
|
2245
|
-
}
|
2279
|
+
style = `content: var(${CssVarImageClass.cssVarList[varName]}, var(${CssVarImageClass.cssVarList[fallbackVarName]}));`;
|
2246
2280
|
|
2247
|
-
|
2248
|
-
|
2249
|
-
mappings: {
|
2250
|
-
height: { selector: () => ':host' },
|
2251
|
-
width: { selector: () => ':host' },
|
2252
|
-
fallbackUrl: { property: 'content' },
|
2253
|
-
url: { property: 'content' },
|
2254
|
-
}
|
2255
|
-
}),
|
2256
|
-
draggableMixin,
|
2257
|
-
componentNameValidationMixin
|
2258
|
-
)(RawLogo);
|
2281
|
+
return CssVarImageClass;
|
2282
|
+
};
|
2259
2283
|
|
2260
|
-
|
2261
|
-
|
2262
|
-
|
2263
|
-
}
|
2264
|
-
:host > div {
|
2265
|
-
display: inline-block;
|
2266
|
-
content: var(${LogoClass.cssVarList.url}, var(${LogoClass.cssVarList.fallbackUrl}));
|
2267
|
-
max-width: 100%;
|
2268
|
-
max-height: 100%;
|
2269
|
-
object-fit: contain;
|
2270
|
-
margin: auto;
|
2271
|
-
}
|
2272
|
-
:host([draggable="true"]) > div {
|
2273
|
-
pointer-events: none
|
2274
|
-
}
|
2275
|
-
`;
|
2284
|
+
const componentName$e = getComponentName('logo');
|
2285
|
+
|
2286
|
+
const LogoClass = createCssVarImageClass({ componentName: componentName$e, varName: 'url', fallbackVarName: 'fallbackUrl' });
|
2276
2287
|
|
2277
|
-
customElements.define(componentName$
|
2288
|
+
customElements.define(componentName$e, LogoClass);
|
2289
|
+
|
2290
|
+
const componentName$d = getComponentName('totp-image');
|
2291
|
+
|
2292
|
+
const TotpImageClass = createCssVarImageClass({ componentName: componentName$d, varName: 'url', fallbackVarName: 'fallbackUrl' });
|
2293
|
+
|
2294
|
+
customElements.define(componentName$d, TotpImageClass);
|
2278
2295
|
|
2279
2296
|
const componentName$c = getComponentName('number-field');
|
2280
2297
|
|
@@ -5558,20 +5575,20 @@ const globals = {
|
|
5558
5575
|
shadow,
|
5559
5576
|
fonts
|
5560
5577
|
};
|
5561
|
-
const vars$
|
5578
|
+
const vars$n = getThemeVars(globals);
|
5562
5579
|
|
5563
|
-
const globalRefs$
|
5580
|
+
const globalRefs$b = getThemeRefs(globals);
|
5564
5581
|
const compVars$2 = ButtonClass.cssVarList;
|
5565
5582
|
|
5566
5583
|
const mode = {
|
5567
|
-
primary: globalRefs$
|
5568
|
-
secondary: globalRefs$
|
5569
|
-
success: globalRefs$
|
5570
|
-
error: globalRefs$
|
5571
|
-
surface: globalRefs$
|
5584
|
+
primary: globalRefs$b.colors.primary,
|
5585
|
+
secondary: globalRefs$b.colors.secondary,
|
5586
|
+
success: globalRefs$b.colors.success,
|
5587
|
+
error: globalRefs$b.colors.error,
|
5588
|
+
surface: globalRefs$b.colors.surface
|
5572
5589
|
};
|
5573
5590
|
|
5574
|
-
const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$
|
5591
|
+
const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$p);
|
5575
5592
|
|
5576
5593
|
const verticalPaddingRatio = 3;
|
5577
5594
|
const horizontalPaddingRatio = 2;
|
@@ -5579,11 +5596,11 @@ const horizontalPaddingRatio = 2;
|
|
5579
5596
|
const button = {
|
5580
5597
|
...helperTheme$3,
|
5581
5598
|
|
5582
|
-
[compVars$2.fontFamily]: globalRefs$
|
5599
|
+
[compVars$2.fontFamily]: globalRefs$b.fonts.font1.family,
|
5583
5600
|
|
5584
5601
|
[compVars$2.cursor]: 'pointer',
|
5585
5602
|
|
5586
|
-
[compVars$2.borderRadius]: globalRefs$
|
5603
|
+
[compVars$2.borderRadius]: globalRefs$b.radius.sm,
|
5587
5604
|
[compVars$2.borderWidth]: '2px',
|
5588
5605
|
[compVars$2.borderStyle]: 'solid',
|
5589
5606
|
[compVars$2.borderColor]: 'transparent',
|
@@ -5653,7 +5670,7 @@ const button = {
|
|
5653
5670
|
}
|
5654
5671
|
};
|
5655
5672
|
|
5656
|
-
const vars$
|
5673
|
+
const vars$m = {
|
5657
5674
|
...compVars$2,
|
5658
5675
|
...helperVars$2
|
5659
5676
|
};
|
@@ -5661,23 +5678,23 @@ const vars$l = {
|
|
5661
5678
|
var button$1 = /*#__PURE__*/Object.freeze({
|
5662
5679
|
__proto__: null,
|
5663
5680
|
default: button,
|
5664
|
-
vars: vars$
|
5681
|
+
vars: vars$m
|
5665
5682
|
});
|
5666
5683
|
|
5667
5684
|
const componentName = getComponentName('input-wrapper');
|
5668
|
-
const globalRefs$
|
5685
|
+
const globalRefs$a = getThemeRefs(globals);
|
5669
5686
|
|
5670
|
-
const [theme$1, refs, vars$
|
5671
|
-
labelTextColor: globalRefs$
|
5672
|
-
valueTextColor: globalRefs$
|
5673
|
-
placeholderTextColor: globalRefs$
|
5687
|
+
const [theme$1, refs, vars$l] = createHelperVars({
|
5688
|
+
labelTextColor: globalRefs$a.colors.surface.contrast,
|
5689
|
+
valueTextColor: globalRefs$a.colors.surface.contrast,
|
5690
|
+
placeholderTextColor: globalRefs$a.colors.surface.main,
|
5674
5691
|
requiredIndicator: "'*'",
|
5675
5692
|
|
5676
|
-
borderWidth: globalRefs$
|
5677
|
-
borderRadius: globalRefs$
|
5693
|
+
borderWidth: globalRefs$a.border.xs,
|
5694
|
+
borderRadius: globalRefs$a.radius.xs,
|
5678
5695
|
borderColor: 'transparent',
|
5679
5696
|
|
5680
|
-
outlineWidth: globalRefs$
|
5697
|
+
outlineWidth: globalRefs$a.border.sm,
|
5681
5698
|
outlineStyle: 'solid',
|
5682
5699
|
outlineColor: 'transparent',
|
5683
5700
|
outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
|
@@ -5688,9 +5705,9 @@ const [theme$1, refs, vars$k] = createHelperVars({
|
|
5688
5705
|
horizontalPadding: '0.5em',
|
5689
5706
|
verticalPadding: '0.5em',
|
5690
5707
|
|
5691
|
-
backgroundColor: globalRefs$
|
5708
|
+
backgroundColor: globalRefs$a.colors.surface.light,
|
5692
5709
|
|
5693
|
-
fontFamily: globalRefs$
|
5710
|
+
fontFamily: globalRefs$a.fonts.font1.family,
|
5694
5711
|
|
5695
5712
|
size: {
|
5696
5713
|
xs: { fontSize: '12px' },
|
@@ -5704,26 +5721,27 @@ const [theme$1, refs, vars$k] = createHelperVars({
|
|
5704
5721
|
},
|
5705
5722
|
|
5706
5723
|
_focused: {
|
5707
|
-
outlineColor: globalRefs$
|
5724
|
+
outlineColor: globalRefs$a.colors.surface.main,
|
5708
5725
|
_invalid: {
|
5709
|
-
outlineColor: globalRefs$
|
5726
|
+
outlineColor: globalRefs$a.colors.error.main,
|
5710
5727
|
}
|
5711
5728
|
},
|
5712
5729
|
|
5713
5730
|
_bordered: {
|
5714
|
-
outlineWidth: globalRefs$
|
5715
|
-
borderColor: globalRefs$
|
5731
|
+
outlineWidth: globalRefs$a.border.xs,
|
5732
|
+
borderColor: globalRefs$a.colors.surface.main,
|
5716
5733
|
borderStyle: 'solid',
|
5717
5734
|
_invalid: {
|
5718
|
-
borderColor: globalRefs$
|
5735
|
+
borderColor: globalRefs$a.colors.error.main,
|
5719
5736
|
}
|
5720
5737
|
},
|
5721
5738
|
|
5722
5739
|
_disabled: {
|
5723
|
-
labelTextColor: globalRefs$
|
5724
|
-
|
5725
|
-
|
5726
|
-
|
5740
|
+
labelTextColor: globalRefs$a.colors.surface.main,
|
5741
|
+
borderColor: globalRefs$a.colors.surface.main,
|
5742
|
+
valueTextColor: globalRefs$a.colors.surface.dark,
|
5743
|
+
placeholderTextColor: globalRefs$a.colors.surface.dark,
|
5744
|
+
backgroundColor: globalRefs$a.colors.surface.main
|
5727
5745
|
}
|
5728
5746
|
}, componentName);
|
5729
5747
|
|
@@ -5731,20 +5749,54 @@ var inputWrapper = /*#__PURE__*/Object.freeze({
|
|
5731
5749
|
__proto__: null,
|
5732
5750
|
default: theme$1,
|
5733
5751
|
refs: refs,
|
5734
|
-
vars: vars$
|
5752
|
+
vars: vars$l
|
5735
5753
|
});
|
5736
5754
|
|
5737
|
-
const vars$
|
5755
|
+
const vars$k = TextFieldClass.cssVarList;
|
5738
5756
|
|
5739
5757
|
const textField = ({
|
5758
|
+
[vars$k.hostWidth]: refs.width,
|
5759
|
+
[vars$k.hostMinWidth]: refs.minWidth,
|
5760
|
+
[vars$k.fontSize]: refs.fontSize,
|
5761
|
+
[vars$k.fontFamily]: refs.fontFamily,
|
5762
|
+
[vars$k.labelTextColor]: refs.labelTextColor,
|
5763
|
+
[vars$k.labelRequiredIndicator]: refs.requiredIndicator,
|
5764
|
+
[vars$k.inputValueTextColor]: refs.valueTextColor,
|
5765
|
+
[vars$k.inputPlaceholderColor]: refs.placeholderTextColor,
|
5766
|
+
[vars$k.inputBorderWidth]: refs.borderWidth,
|
5767
|
+
[vars$k.inputBorderStyle]: refs.borderStyle,
|
5768
|
+
[vars$k.inputBorderColor]: refs.borderColor,
|
5769
|
+
[vars$k.inputBorderRadius]: refs.borderRadius,
|
5770
|
+
[vars$k.inputOutlineWidth]: refs.outlineWidth,
|
5771
|
+
[vars$k.inputOutlineStyle]: refs.outlineStyle,
|
5772
|
+
[vars$k.inputOutlineColor]: refs.outlineColor,
|
5773
|
+
[vars$k.inputOutlineOffset]: refs.outlineOffset,
|
5774
|
+
[vars$k.inputBackgroundColor]: refs.backgroundColor,
|
5775
|
+
[vars$k.inputHeight]: refs.inputHeight,
|
5776
|
+
[vars$k.inputHorizontalPadding]: refs.horizontalPadding
|
5777
|
+
});
|
5778
|
+
|
5779
|
+
var textField$1 = /*#__PURE__*/Object.freeze({
|
5780
|
+
__proto__: null,
|
5781
|
+
default: textField,
|
5782
|
+
textField: textField,
|
5783
|
+
vars: vars$k
|
5784
|
+
});
|
5785
|
+
|
5786
|
+
const globalRefs$9 = getThemeRefs(globals);
|
5787
|
+
const vars$j = PasswordClass.cssVarList;
|
5788
|
+
|
5789
|
+
const password = {
|
5740
5790
|
[vars$j.hostWidth]: refs.width,
|
5741
|
-
[vars$j.hostMinWidth]: refs.minWidth,
|
5742
5791
|
[vars$j.fontSize]: refs.fontSize,
|
5743
5792
|
[vars$j.fontFamily]: refs.fontFamily,
|
5744
5793
|
[vars$j.labelTextColor]: refs.labelTextColor,
|
5794
|
+
[vars$j.inputHorizontalPadding]: refs.horizontalPadding,
|
5795
|
+
[vars$j.inputHeight]: refs.inputHeight,
|
5796
|
+
[vars$j.inputBackgroundColor]: refs.backgroundColor,
|
5745
5797
|
[vars$j.labelRequiredIndicator]: refs.requiredIndicator,
|
5746
5798
|
[vars$j.inputValueTextColor]: refs.valueTextColor,
|
5747
|
-
[vars$j.
|
5799
|
+
[vars$j.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
5748
5800
|
[vars$j.inputBorderWidth]: refs.borderWidth,
|
5749
5801
|
[vars$j.inputBorderStyle]: refs.borderStyle,
|
5750
5802
|
[vars$j.inputBorderColor]: refs.borderColor,
|
@@ -5753,32 +5805,26 @@ const textField = ({
|
|
5753
5805
|
[vars$j.inputOutlineStyle]: refs.outlineStyle,
|
5754
5806
|
[vars$j.inputOutlineColor]: refs.outlineColor,
|
5755
5807
|
[vars$j.inputOutlineOffset]: refs.outlineOffset,
|
5756
|
-
[vars$j.
|
5757
|
-
[vars$j.
|
5758
|
-
|
5759
|
-
});
|
5808
|
+
[vars$j.revealButtonOffset]: globalRefs$9.spacing.md,
|
5809
|
+
[vars$j.revealButtonSize]: refs.toggleButtonSize
|
5810
|
+
};
|
5760
5811
|
|
5761
|
-
var
|
5812
|
+
var password$1 = /*#__PURE__*/Object.freeze({
|
5762
5813
|
__proto__: null,
|
5763
|
-
default:
|
5764
|
-
textField: textField,
|
5814
|
+
default: password,
|
5765
5815
|
vars: vars$j
|
5766
5816
|
});
|
5767
5817
|
|
5768
|
-
const
|
5769
|
-
const vars$i = PasswordClass.cssVarList;
|
5818
|
+
const vars$i = NumberFieldClass.cssVarList;
|
5770
5819
|
|
5771
|
-
const
|
5820
|
+
const numberField = {
|
5772
5821
|
[vars$i.hostWidth]: refs.width,
|
5822
|
+
[vars$i.hostMinWidth]: refs.minWidth,
|
5773
5823
|
[vars$i.fontSize]: refs.fontSize,
|
5774
5824
|
[vars$i.fontFamily]: refs.fontFamily,
|
5775
5825
|
[vars$i.labelTextColor]: refs.labelTextColor,
|
5776
|
-
[vars$i.inputHorizontalPadding]: refs.horizontalPadding,
|
5777
|
-
[vars$i.inputHeight]: refs.inputHeight,
|
5778
|
-
[vars$i.inputBackgroundColor]: refs.backgroundColor,
|
5779
|
-
[vars$i.labelRequiredIndicator]: refs.requiredIndicator,
|
5780
5826
|
[vars$i.inputValueTextColor]: refs.valueTextColor,
|
5781
|
-
[vars$i.
|
5827
|
+
[vars$i.inputPlaceholderColor]: refs.placeholderTextColor,
|
5782
5828
|
[vars$i.inputBorderWidth]: refs.borderWidth,
|
5783
5829
|
[vars$i.inputBorderStyle]: refs.borderStyle,
|
5784
5830
|
[vars$i.inputBorderColor]: refs.borderColor,
|
@@ -5787,25 +5833,28 @@ const password = {
|
|
5787
5833
|
[vars$i.inputOutlineStyle]: refs.outlineStyle,
|
5788
5834
|
[vars$i.inputOutlineColor]: refs.outlineColor,
|
5789
5835
|
[vars$i.inputOutlineOffset]: refs.outlineOffset,
|
5790
|
-
[vars$i.
|
5791
|
-
[vars$i.
|
5836
|
+
[vars$i.inputBackgroundColor]: refs.backgroundColor,
|
5837
|
+
[vars$i.labelRequiredIndicator]: refs.requiredIndicator,
|
5838
|
+
[vars$i.inputHorizontalPadding]: refs.horizontalPadding,
|
5839
|
+
[vars$i.inputHeight]: refs.inputHeight
|
5792
5840
|
};
|
5793
5841
|
|
5794
|
-
var
|
5842
|
+
var numberField$1 = /*#__PURE__*/Object.freeze({
|
5795
5843
|
__proto__: null,
|
5796
|
-
default:
|
5844
|
+
default: numberField,
|
5797
5845
|
vars: vars$i
|
5798
5846
|
});
|
5799
5847
|
|
5800
|
-
const vars$h =
|
5848
|
+
const vars$h = EmailFieldClass.cssVarList;
|
5801
5849
|
|
5802
|
-
const
|
5850
|
+
const emailField = {
|
5803
5851
|
[vars$h.hostWidth]: refs.width,
|
5804
5852
|
[vars$h.hostMinWidth]: refs.minWidth,
|
5805
5853
|
[vars$h.fontSize]: refs.fontSize,
|
5806
5854
|
[vars$h.fontFamily]: refs.fontFamily,
|
5807
5855
|
[vars$h.labelTextColor]: refs.labelTextColor,
|
5808
5856
|
[vars$h.inputValueTextColor]: refs.valueTextColor,
|
5857
|
+
[vars$h.labelRequiredIndicator]: refs.requiredIndicator,
|
5809
5858
|
[vars$h.inputPlaceholderColor]: refs.placeholderTextColor,
|
5810
5859
|
[vars$h.inputBorderWidth]: refs.borderWidth,
|
5811
5860
|
[vars$h.inputBorderStyle]: refs.borderStyle,
|
@@ -5816,181 +5865,159 @@ const numberField = {
|
|
5816
5865
|
[vars$h.inputOutlineColor]: refs.outlineColor,
|
5817
5866
|
[vars$h.inputOutlineOffset]: refs.outlineOffset,
|
5818
5867
|
[vars$h.inputBackgroundColor]: refs.backgroundColor,
|
5819
|
-
[vars$h.labelRequiredIndicator]: refs.requiredIndicator,
|
5820
5868
|
[vars$h.inputHorizontalPadding]: refs.horizontalPadding,
|
5821
5869
|
[vars$h.inputHeight]: refs.inputHeight
|
5822
5870
|
};
|
5823
5871
|
|
5824
|
-
var
|
5872
|
+
var emailField$1 = /*#__PURE__*/Object.freeze({
|
5825
5873
|
__proto__: null,
|
5826
|
-
default:
|
5874
|
+
default: emailField,
|
5827
5875
|
vars: vars$h
|
5828
5876
|
});
|
5829
5877
|
|
5830
|
-
const
|
5878
|
+
const globalRefs$8 = getThemeRefs(globals);
|
5879
|
+
const vars$g = TextAreaClass.cssVarList;
|
5831
5880
|
|
5832
|
-
const
|
5881
|
+
const textArea = {
|
5833
5882
|
[vars$g.hostWidth]: refs.width,
|
5834
5883
|
[vars$g.hostMinWidth]: refs.minWidth,
|
5835
|
-
[vars$g.fontSize]:
|
5884
|
+
[vars$g.fontSize]: '14px',
|
5836
5885
|
[vars$g.fontFamily]: refs.fontFamily,
|
5837
5886
|
[vars$g.labelTextColor]: refs.labelTextColor,
|
5838
|
-
[vars$g.inputValueTextColor]: refs.valueTextColor,
|
5839
5887
|
[vars$g.labelRequiredIndicator]: refs.requiredIndicator,
|
5840
|
-
[vars$g.
|
5888
|
+
[vars$g.inputBackgroundColor]: refs.backgroundColor,
|
5889
|
+
[vars$g.inputValueTextColor]: refs.valueTextColor,
|
5890
|
+
[vars$g.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
5891
|
+
[vars$g.inputBorderRadius]: refs.borderRadius,
|
5841
5892
|
[vars$g.inputBorderWidth]: refs.borderWidth,
|
5842
5893
|
[vars$g.inputBorderStyle]: refs.borderStyle,
|
5843
5894
|
[vars$g.inputBorderColor]: refs.borderColor,
|
5844
|
-
[vars$g.inputBorderRadius]: refs.borderRadius,
|
5845
5895
|
[vars$g.inputOutlineWidth]: refs.outlineWidth,
|
5846
5896
|
[vars$g.inputOutlineStyle]: refs.outlineStyle,
|
5847
5897
|
[vars$g.inputOutlineColor]: refs.outlineColor,
|
5848
5898
|
[vars$g.inputOutlineOffset]: refs.outlineOffset,
|
5849
|
-
[vars$g.
|
5850
|
-
[vars$g.inputHorizontalPadding]: refs.horizontalPadding,
|
5851
|
-
[vars$g.inputHeight]: refs.inputHeight
|
5852
|
-
};
|
5853
|
-
|
5854
|
-
var emailField$1 = /*#__PURE__*/Object.freeze({
|
5855
|
-
__proto__: null,
|
5856
|
-
default: emailField,
|
5857
|
-
vars: vars$g
|
5858
|
-
});
|
5859
|
-
|
5860
|
-
const globalRefs$9 = getThemeRefs(globals);
|
5861
|
-
const vars$f = TextAreaClass.cssVarList;
|
5862
|
-
|
5863
|
-
const textArea = {
|
5864
|
-
[vars$f.hostWidth]: refs.width,
|
5865
|
-
[vars$f.hostMinWidth]: refs.minWidth,
|
5866
|
-
[vars$f.fontSize]: '14px',
|
5867
|
-
[vars$f.fontFamily]: refs.fontFamily,
|
5868
|
-
[vars$f.labelTextColor]: refs.labelTextColor,
|
5869
|
-
[vars$f.labelRequiredIndicator]: refs.requiredIndicator,
|
5870
|
-
[vars$f.inputBackgroundColor]: refs.backgroundColor,
|
5871
|
-
[vars$f.inputValueTextColor]: refs.valueTextColor,
|
5872
|
-
[vars$f.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
5873
|
-
[vars$f.inputBorderRadius]: refs.borderRadius,
|
5874
|
-
[vars$f.inputBorderWidth]: refs.borderWidth,
|
5875
|
-
[vars$f.inputBorderStyle]: refs.borderStyle,
|
5876
|
-
[vars$f.inputBorderColor]: refs.borderColor,
|
5877
|
-
[vars$f.inputOutlineWidth]: refs.outlineWidth,
|
5878
|
-
[vars$f.inputOutlineStyle]: refs.outlineStyle,
|
5879
|
-
[vars$f.inputOutlineColor]: refs.outlineColor,
|
5880
|
-
[vars$f.inputOutlineOffset]: refs.outlineOffset,
|
5881
|
-
[vars$f.inputResizeType]: 'vertical',
|
5899
|
+
[vars$g.inputResizeType]: 'vertical',
|
5882
5900
|
|
5883
5901
|
_disabled: {
|
5884
|
-
[vars$
|
5902
|
+
[vars$g.inputBackgroundColor]: globalRefs$8.colors.surface.light,
|
5885
5903
|
},
|
5886
5904
|
|
5887
5905
|
_readonly: {
|
5888
|
-
[vars$
|
5906
|
+
[vars$g.inputResizeType]: 'none',
|
5889
5907
|
}
|
5890
5908
|
};
|
5891
5909
|
|
5892
5910
|
var textArea$1 = /*#__PURE__*/Object.freeze({
|
5893
5911
|
__proto__: null,
|
5894
5912
|
default: textArea,
|
5895
|
-
vars: vars$
|
5913
|
+
vars: vars$g
|
5896
5914
|
});
|
5897
5915
|
|
5898
|
-
|
5899
|
-
const vars$
|
5916
|
+
getThemeRefs(globals);
|
5917
|
+
const vars$f = CheckboxClass.cssVarList;
|
5900
5918
|
|
5901
5919
|
const checkbox = {
|
5902
|
-
[vars$
|
5903
|
-
[vars$
|
5904
|
-
[vars$
|
5905
|
-
[vars$
|
5906
|
-
[vars$
|
5907
|
-
[vars$
|
5908
|
-
[vars$
|
5909
|
-
[vars$
|
5910
|
-
[vars$
|
5911
|
-
[vars$
|
5912
|
-
[vars$
|
5913
|
-
[vars$
|
5914
|
-
[vars$
|
5915
|
-
[vars$
|
5920
|
+
[vars$f.hostWidth]: refs.width,
|
5921
|
+
[vars$f.fontSize]: refs.fontSize,
|
5922
|
+
[vars$f.fontFamily]: refs.fontFamily,
|
5923
|
+
[vars$f.labelTextColor]: refs.labelTextColor,
|
5924
|
+
[vars$f.labelRequiredIndicator]: refs.requiredIndicator,
|
5925
|
+
[vars$f.labelFontWeight]: '400',
|
5926
|
+
[vars$f.labelSpacing]: '0.75em',
|
5927
|
+
[vars$f.inputOutlineWidth]: refs.outlineWidth,
|
5928
|
+
[vars$f.inputOutlineOffset]: refs.outlineOffset,
|
5929
|
+
[vars$f.inputOutlineColor]: refs.outlineColor,
|
5930
|
+
[vars$f.inputOutlineStyle]: refs.outlineStyle,
|
5931
|
+
[vars$f.inputBorderRadius]: refs.borderRadius,
|
5932
|
+
[vars$f.inputBorderColor]: refs.borderColor,
|
5933
|
+
[vars$f.inputBorderWidth]: refs.borderWidth,
|
5934
|
+
[vars$f.inputBorderStyle]: refs.borderStyle,
|
5935
|
+
[vars$f.inputBackgroundColor]: refs.inputBackgroundColor,
|
5936
|
+
[vars$f.inputSize]: '2em',
|
5916
5937
|
|
5917
5938
|
_checked: {
|
5918
|
-
[vars$
|
5919
|
-
[vars$
|
5939
|
+
[vars$f.inputBackgroundColor]: refs.backgroundColor,
|
5940
|
+
[vars$f.inputValueTextColor]: refs.valueTextColor,
|
5920
5941
|
},
|
5921
5942
|
|
5922
5943
|
_disabled: {
|
5923
|
-
[vars$
|
5944
|
+
[vars$f.labelTextColor]: refs.labelTextColor,
|
5924
5945
|
},
|
5925
5946
|
};
|
5926
5947
|
|
5927
5948
|
var checkbox$1 = /*#__PURE__*/Object.freeze({
|
5928
5949
|
__proto__: null,
|
5929
5950
|
default: checkbox,
|
5930
|
-
vars: vars$
|
5951
|
+
vars: vars$f
|
5931
5952
|
});
|
5932
5953
|
|
5933
5954
|
const knobMargin = '2px';
|
5934
5955
|
const checkboxHeight = '1.25em';
|
5935
5956
|
|
5936
5957
|
const globalRefs$7 = getThemeRefs(globals);
|
5937
|
-
const vars$
|
5958
|
+
const vars$e = SwitchToggleClass.cssVarList;
|
5938
5959
|
|
5939
5960
|
const switchToggle = {
|
5940
|
-
[vars$
|
5941
|
-
[vars$
|
5942
|
-
|
5943
|
-
[vars$
|
5944
|
-
[vars$
|
5945
|
-
[vars$
|
5946
|
-
[vars$
|
5947
|
-
|
5948
|
-
[vars$
|
5949
|
-
[vars$
|
5950
|
-
[vars$
|
5951
|
-
[vars$
|
5952
|
-
[vars$
|
5953
|
-
[vars$
|
5954
|
-
[vars$
|
5955
|
-
|
5956
|
-
[vars$
|
5957
|
-
[vars$
|
5958
|
-
[vars$
|
5959
|
-
[vars$
|
5960
|
-
[vars$
|
5961
|
-
[vars$
|
5962
|
-
|
5963
|
-
[vars$
|
5964
|
-
[vars$
|
5965
|
-
[vars$
|
5966
|
-
[vars$
|
5967
|
-
[vars$
|
5968
|
-
|
5969
|
-
[vars$
|
5961
|
+
[vars$e.fontSize]: refs.fontSize,
|
5962
|
+
[vars$e.fontFamily]: refs.fontFamily,
|
5963
|
+
|
5964
|
+
[vars$e.inputOutlineWidth]: refs.outlineWidth,
|
5965
|
+
[vars$e.inputOutlineOffset]: refs.outlineOffset,
|
5966
|
+
[vars$e.inputOutlineColor]: refs.outlineColor,
|
5967
|
+
[vars$e.inputOutlineStyle]: refs.outlineStyle,
|
5968
|
+
|
5969
|
+
[vars$e.trackBorderStyle]: refs.borderStyle,
|
5970
|
+
[vars$e.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
5971
|
+
[vars$e.trackBorderColor]: refs.borderColor,
|
5972
|
+
[vars$e.trackBackgroundColor]: 'none',
|
5973
|
+
[vars$e.trackBorderRadius]: globalRefs$7.radius.md,
|
5974
|
+
[vars$e.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
5975
|
+
[vars$e.trackHeight]: checkboxHeight,
|
5976
|
+
|
5977
|
+
[vars$e.knobSize]: `calc(1em - ${knobMargin})`,
|
5978
|
+
[vars$e.knobRadius]: '50%',
|
5979
|
+
[vars$e.knobTopOffset]: '1px',
|
5980
|
+
[vars$e.knobLeftOffset]: knobMargin,
|
5981
|
+
[vars$e.knobColor]: refs.valueTextColor,
|
5982
|
+
[vars$e.knobTransitionDuration]: '0.3s',
|
5983
|
+
|
5984
|
+
[vars$e.labelTextColor]: refs.labelTextColor,
|
5985
|
+
[vars$e.labelFontWeight]: '400',
|
5986
|
+
[vars$e.labelLineHeight]: `calc(${checkboxHeight} + 0.25em)`,
|
5987
|
+
[vars$e.labelSpacing]: '0.25em',
|
5988
|
+
[vars$e.labelRequiredIndicator]: refs.requiredIndicator,
|
5989
|
+
|
5990
|
+
[vars$e.hostWidth]: refs.width,
|
5970
5991
|
|
5971
5992
|
_checked: {
|
5972
|
-
[vars$
|
5973
|
-
[vars$
|
5974
|
-
[vars$
|
5975
|
-
[vars$
|
5993
|
+
[vars$e.trackBorderColor]: refs.borderColor,
|
5994
|
+
[vars$e.trackBackgroundColor]: refs.backgroundColor,
|
5995
|
+
[vars$e.knobLeftOffset]: `calc(100% - var(${vars$e.knobSize}) - ${knobMargin})`,
|
5996
|
+
[vars$e.knobColor]: refs.valueTextColor,
|
5997
|
+
[vars$e.knobTextColor]: refs.valueTextColor,
|
5976
5998
|
},
|
5977
5999
|
|
5978
6000
|
_disabled: {
|
5979
|
-
[vars$
|
5980
|
-
[vars$
|
5981
|
-
[vars$
|
6001
|
+
[vars$e.knobColor]: globalRefs$7.colors.surface.light,
|
6002
|
+
[vars$e.trackBorderColor]: globalRefs$7.colors.surface.main,
|
6003
|
+
[vars$e.trackBackgroundColor]: globalRefs$7.colors.surface.main,
|
6004
|
+
[vars$e.labelTextColor]: refs.labelTextColor,
|
6005
|
+
_checked: {
|
6006
|
+
[vars$e.knobColor]: globalRefs$7.colors.surface.light,
|
6007
|
+
[vars$e.trackBackgroundColor]: globalRefs$7.colors.surface.main,
|
6008
|
+
}
|
5982
6009
|
},
|
5983
6010
|
|
5984
6011
|
_invalid: {
|
5985
|
-
[vars$
|
5986
|
-
[vars$
|
6012
|
+
[vars$e.trackBorderColor]: globalRefs$7.colors.error.main,
|
6013
|
+
[vars$e.knobColor]: globalRefs$7.colors.error.main,
|
5987
6014
|
},
|
5988
6015
|
};
|
5989
6016
|
|
5990
6017
|
var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
5991
6018
|
__proto__: null,
|
5992
6019
|
default: switchToggle,
|
5993
|
-
vars: vars$
|
6020
|
+
vars: vars$e
|
5994
6021
|
});
|
5995
6022
|
|
5996
6023
|
const globalRefs$6 = getThemeRefs(globals);
|
@@ -6014,7 +6041,7 @@ const [helperTheme$2, helperRefs$2, helperVars$1] =
|
|
6014
6041
|
verticalAlignment,
|
6015
6042
|
horizontalAlignment,
|
6016
6043
|
shadowColor: '#00000020' //if we want to support transparency vars, we should use different color format
|
6017
|
-
}, componentName$
|
6044
|
+
}, componentName$j);
|
6018
6045
|
|
6019
6046
|
const { shadowColor } = helperRefs$2;
|
6020
6047
|
|
@@ -6089,7 +6116,7 @@ const container = {
|
|
6089
6116
|
}
|
6090
6117
|
};
|
6091
6118
|
|
6092
|
-
const vars$
|
6119
|
+
const vars$d = {
|
6093
6120
|
...compVars$1,
|
6094
6121
|
...helperVars$1
|
6095
6122
|
};
|
@@ -6097,16 +6124,28 @@ const vars$c = {
|
|
6097
6124
|
var container$1 = /*#__PURE__*/Object.freeze({
|
6098
6125
|
__proto__: null,
|
6099
6126
|
default: container,
|
6127
|
+
vars: vars$d
|
6128
|
+
});
|
6129
|
+
|
6130
|
+
const vars$c = LogoClass.cssVarList;
|
6131
|
+
|
6132
|
+
const logo$1 = {
|
6133
|
+
[vars$c.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)'
|
6134
|
+
};
|
6135
|
+
|
6136
|
+
var logo$2 = /*#__PURE__*/Object.freeze({
|
6137
|
+
__proto__: null,
|
6138
|
+
default: logo$1,
|
6100
6139
|
vars: vars$c
|
6101
6140
|
});
|
6102
6141
|
|
6103
|
-
const vars$b =
|
6142
|
+
const vars$b = TotpImageClass.cssVarList;
|
6104
6143
|
|
6105
6144
|
const logo = {
|
6106
|
-
[vars$b.fallbackUrl]: 'url(https://
|
6145
|
+
[vars$b.fallbackUrl]: 'url(https://app.descope.com/images/99ae31fd143ba38e072d.svg)'
|
6107
6146
|
};
|
6108
6147
|
|
6109
|
-
var
|
6148
|
+
var totpImage = /*#__PURE__*/Object.freeze({
|
6110
6149
|
__proto__: null,
|
6111
6150
|
default: logo,
|
6112
6151
|
vars: vars$b
|
@@ -6258,7 +6297,7 @@ const [
|
|
6258
6297
|
] = createHelperVars({
|
6259
6298
|
thickness: '2px',
|
6260
6299
|
spacing: '10px'
|
6261
|
-
}, componentName$
|
6300
|
+
}, componentName$i);
|
6262
6301
|
|
6263
6302
|
const divider = {
|
6264
6303
|
...helperTheme$1,
|
@@ -6384,7 +6423,7 @@ const [helperTheme, helperRefs] = createHelperVars({
|
|
6384
6423
|
spinnerColor: globalRefs$1.colors.secondary.main
|
6385
6424
|
}
|
6386
6425
|
}
|
6387
|
-
}, componentName$
|
6426
|
+
}, componentName$k);
|
6388
6427
|
|
6389
6428
|
const loaderRadial = {
|
6390
6429
|
...helperTheme,
|
@@ -6542,7 +6581,8 @@ const components = {
|
|
6542
6581
|
checkbox: checkbox$1,
|
6543
6582
|
switchToggle: switchToggle$1,
|
6544
6583
|
container: container$1,
|
6545
|
-
logo: logo$
|
6584
|
+
logo: logo$2,
|
6585
|
+
totpImage,
|
6546
6586
|
text: text$1,
|
6547
6587
|
link: link$1,
|
6548
6588
|
divider: divider$1,
|
@@ -6560,7 +6600,7 @@ const theme = Object.keys(components).reduce((acc, comp) => ({ ...acc, [comp]: c
|
|
6560
6600
|
const vars = Object.keys(components).reduce((acc, comp) => ({ ...acc, [comp]: components[comp].vars }), {});
|
6561
6601
|
|
6562
6602
|
const defaultTheme = { globals, components: theme };
|
6563
|
-
const themeVars = { globals: vars$
|
6603
|
+
const themeVars = { globals: vars$n, components: vars };
|
6564
6604
|
|
6565
|
-
export { ButtonClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
|
6605
|
+
export { ButtonClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
|
6566
6606
|
//# sourceMappingURL=index.esm.js.map
|