@descope/web-components-ui 1.0.75 → 1.0.76
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/index.esm.js +362 -247
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/447.js +1 -1
- package/dist/umd/744.js +1 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
- package/dist/umd/descope-passcode-index-js.js +1 -1
- package/dist/umd/descope-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/package.json +1 -1
- package/src/components/descope-passcode/Passcode.js +44 -10
- package/src/components/descope-passcode/descope-passcode-internal/PasscodeInternal.js +32 -14
- package/src/components/descope-phone-field/PhoneField.js +8 -1
- package/src/components/descope-text-area/TextArea.js +3 -1
- package/src/components/descope-text-field/TextField.js +10 -3
- package/src/components/descope-text-field/textFieldMappings.js +20 -15
- package/src/mixins/normalizeBooleanAttributesMixin.js +16 -7
- package/src/mixins/proxyInputMixin.js +1 -1
- package/src/theme/components/button.js +0 -3
- package/src/theme/components/passcode.js +36 -3
- package/src/theme/components/textArea.js +5 -2
- package/src/theme/components/textField.js +4 -1
package/dist/index.esm.js
CHANGED
|
@@ -692,7 +692,7 @@ const inputValidationMixin = (superclass) => class InputValidationMixinClass ext
|
|
|
692
692
|
}
|
|
693
693
|
};
|
|
694
694
|
|
|
695
|
-
const errorAttrs = ['invalid', '
|
|
695
|
+
const errorAttrs = ['invalid', 'required'];
|
|
696
696
|
|
|
697
697
|
const propertyObserver = (src, target, property) => {
|
|
698
698
|
Object.defineProperty(src, property, {
|
|
@@ -991,15 +991,22 @@ const changeMixin = (superclass) => class ChangeMixinClass extends superclass {
|
|
|
991
991
|
}
|
|
992
992
|
};
|
|
993
993
|
|
|
994
|
-
// we want all the valueless attributes to have "true" value
|
|
994
|
+
// we want all the valueless attributes to have "true" value
|
|
995
|
+
// and all the falsy attribute to be removed
|
|
995
996
|
const normalizeBooleanAttributesMixin = (superclass) => class NormalizeBooleanAttributesMixinClass extends superclass {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
this.setAttribute(attrName, 'true');
|
|
999
|
-
newValue = 'true';
|
|
1000
|
-
}
|
|
997
|
+
init() {
|
|
998
|
+
super.init?.();
|
|
1001
999
|
|
|
1002
|
-
|
|
1000
|
+
observeAttributes(this, (attrs) =>
|
|
1001
|
+
attrs.forEach(attr => {
|
|
1002
|
+
const attrVal = this.getAttribute(attr);
|
|
1003
|
+
|
|
1004
|
+
if (attrVal === '') {
|
|
1005
|
+
this.setAttribute(attr, 'true');
|
|
1006
|
+
} else if (attrVal === 'false') {
|
|
1007
|
+
this.removeAttribute(attr);
|
|
1008
|
+
}
|
|
1009
|
+
}), {});
|
|
1003
1010
|
}
|
|
1004
1011
|
};
|
|
1005
1012
|
|
|
@@ -1466,39 +1473,44 @@ customElements.define(componentName$f, Divider);
|
|
|
1466
1473
|
|
|
1467
1474
|
const selectors$2 = {
|
|
1468
1475
|
label: '::part(label)',
|
|
1469
|
-
|
|
1476
|
+
inputWrapper: '::part(input-field)',
|
|
1470
1477
|
readOnlyInput: '[readonly]::part(input-field)::after',
|
|
1471
1478
|
placeholder: '> input:placeholder-shown',
|
|
1472
|
-
host: () => ':host'
|
|
1479
|
+
host: () => ':host',
|
|
1480
|
+
input: 'input'
|
|
1473
1481
|
};
|
|
1474
1482
|
|
|
1475
1483
|
var textFieldMappings = {
|
|
1476
|
-
backgroundColor: { selector: selectors$2.
|
|
1477
|
-
color: { selector: selectors$2.
|
|
1484
|
+
backgroundColor: { selector: selectors$2.inputWrapper },
|
|
1485
|
+
color: { selector: selectors$2.inputWrapper },
|
|
1478
1486
|
width: { selector: selectors$2.host },
|
|
1479
1487
|
borderColor: [
|
|
1480
|
-
{ selector: selectors$2.
|
|
1488
|
+
{ selector: selectors$2.inputWrapper },
|
|
1481
1489
|
{ selector: selectors$2.readOnlyInput }
|
|
1482
1490
|
],
|
|
1483
1491
|
borderWidth: [
|
|
1484
|
-
{ selector: selectors$2.
|
|
1492
|
+
{ selector: selectors$2.inputWrapper },
|
|
1485
1493
|
{ selector: selectors$2.readOnlyInput }
|
|
1486
1494
|
],
|
|
1487
1495
|
borderStyle: [
|
|
1488
|
-
{ selector: selectors$2.
|
|
1496
|
+
{ selector: selectors$2.inputWrapper },
|
|
1489
1497
|
{ selector: selectors$2.readOnlyInput }
|
|
1490
1498
|
],
|
|
1491
|
-
borderRadius: { selector: selectors$2.
|
|
1492
|
-
boxShadow: { selector: selectors$2.
|
|
1499
|
+
borderRadius: { selector: selectors$2.inputWrapper },
|
|
1500
|
+
boxShadow: { selector: selectors$2.inputWrapper },
|
|
1493
1501
|
|
|
1494
1502
|
// we apply font-size also on the host so we can set its width with em
|
|
1495
1503
|
fontSize: [{}, { selector: selectors$2.host }],
|
|
1496
|
-
|
|
1497
|
-
height: { selector: selectors$2.
|
|
1498
|
-
padding: { selector: selectors$2.
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1504
|
+
|
|
1505
|
+
height: { selector: selectors$2.inputWrapper },
|
|
1506
|
+
padding: { selector: selectors$2.inputWrapper },
|
|
1507
|
+
margin: { selector: selectors$2.inputWrapper },
|
|
1508
|
+
caretColor: { selector: selectors$2.input },
|
|
1509
|
+
outlineColor: { selector: selectors$2.inputWrapper },
|
|
1510
|
+
outlineStyle: { selector: selectors$2.inputWrapper },
|
|
1511
|
+
outlineWidth: { selector: selectors$2.inputWrapper },
|
|
1512
|
+
outlineOffset: { selector: selectors$2.inputWrapper },
|
|
1513
|
+
textAlign: {selector: selectors$2.input},
|
|
1502
1514
|
placeholderColor: { selector: selectors$2.placeholder, property: 'color' }
|
|
1503
1515
|
};
|
|
1504
1516
|
|
|
@@ -1765,6 +1777,10 @@ const getSanitizedCharacters = (str) => {
|
|
|
1765
1777
|
const componentName$9 = getComponentName('passcode-internal');
|
|
1766
1778
|
|
|
1767
1779
|
const observedAttributes$1 = [
|
|
1780
|
+
'digits'
|
|
1781
|
+
];
|
|
1782
|
+
|
|
1783
|
+
const forwardAttributes = [
|
|
1768
1784
|
'disabled',
|
|
1769
1785
|
'bordered',
|
|
1770
1786
|
'size',
|
|
@@ -1788,22 +1804,35 @@ class PasscodeInternal extends BaseInputClass$1 {
|
|
|
1788
1804
|
|
|
1789
1805
|
constructor() {
|
|
1790
1806
|
super();
|
|
1807
|
+
|
|
1808
|
+
this.innerHTML = `
|
|
1809
|
+
<div class="wrapper"></div>
|
|
1810
|
+
<style>
|
|
1811
|
+
.wrapper {
|
|
1812
|
+
display: flex;
|
|
1813
|
+
width: 100%;
|
|
1814
|
+
justify-content: space-between;
|
|
1815
|
+
}
|
|
1816
|
+
</style>
|
|
1817
|
+
`;
|
|
1818
|
+
|
|
1819
|
+
this.wrapperEle = this.querySelector('div');
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
renderInputs() {
|
|
1791
1823
|
const inputs = [...Array(this.digits).keys()].map((idx) => `
|
|
1792
1824
|
<descope-text-field
|
|
1793
|
-
st-width="35px"
|
|
1794
1825
|
data-id=${idx}
|
|
1795
1826
|
type="tel"
|
|
1796
1827
|
autocomplete="off"
|
|
1797
1828
|
></descope-text-field>
|
|
1798
1829
|
`);
|
|
1799
1830
|
|
|
1800
|
-
this.innerHTML =
|
|
1801
|
-
<div>
|
|
1802
|
-
${inputs.join('')}
|
|
1803
|
-
</div>
|
|
1804
|
-
`;
|
|
1831
|
+
this.wrapperEle.innerHTML = inputs.join('');
|
|
1805
1832
|
|
|
1806
1833
|
this.inputs = Array.from(this.querySelectorAll('descope-text-field'));
|
|
1834
|
+
|
|
1835
|
+
this.initInputs();
|
|
1807
1836
|
}
|
|
1808
1837
|
|
|
1809
1838
|
get digits() {
|
|
@@ -1811,7 +1840,7 @@ class PasscodeInternal extends BaseInputClass$1 {
|
|
|
1811
1840
|
}
|
|
1812
1841
|
|
|
1813
1842
|
get value() {
|
|
1814
|
-
return this.inputs
|
|
1843
|
+
return this.inputs?.map(({ value }) => value).join('') || ''
|
|
1815
1844
|
}
|
|
1816
1845
|
|
|
1817
1846
|
set value(val) {
|
|
@@ -1850,7 +1879,8 @@ class PasscodeInternal extends BaseInputClass$1 {
|
|
|
1850
1879
|
|
|
1851
1880
|
super.init?.();
|
|
1852
1881
|
|
|
1853
|
-
this.
|
|
1882
|
+
this.renderInputs();
|
|
1883
|
+
|
|
1854
1884
|
}
|
|
1855
1885
|
|
|
1856
1886
|
getInputIdx(inputEle) {
|
|
@@ -1939,6 +1969,8 @@ class PasscodeInternal extends BaseInputClass$1 {
|
|
|
1939
1969
|
input.value = ''; // we are clearing the previous value so we can override it with the new value
|
|
1940
1970
|
}
|
|
1941
1971
|
};
|
|
1972
|
+
|
|
1973
|
+
forwardAttrs(this, input, { includeAttrs: forwardAttributes });
|
|
1942
1974
|
});
|
|
1943
1975
|
}
|
|
1944
1976
|
|
|
@@ -1948,11 +1980,9 @@ class PasscodeInternal extends BaseInputClass$1 {
|
|
|
1948
1980
|
// sync attributes to inputs
|
|
1949
1981
|
if (oldValue !== newValue) {
|
|
1950
1982
|
if (observedAttributes$1.includes(attrName)) {
|
|
1951
|
-
|
|
1952
|
-
(
|
|
1953
|
-
|
|
1954
|
-
input.setAttribute(attrName, newValue)
|
|
1955
|
-
);
|
|
1983
|
+
if (attrName === 'digits') {
|
|
1984
|
+
this.renderInputs();
|
|
1985
|
+
}
|
|
1956
1986
|
}
|
|
1957
1987
|
}
|
|
1958
1988
|
}
|
|
@@ -2013,9 +2043,7 @@ overrides$3 = `
|
|
|
2013
2043
|
width: 100%;
|
|
2014
2044
|
height: 100%;
|
|
2015
2045
|
}
|
|
2016
|
-
|
|
2017
|
-
min-height: 0;
|
|
2018
|
-
}
|
|
2046
|
+
|
|
2019
2047
|
vaadin-text-field::part(input-field) {
|
|
2020
2048
|
overflow: hidden;
|
|
2021
2049
|
padding: 0;
|
|
@@ -2031,6 +2059,11 @@ overrides$3 = `
|
|
|
2031
2059
|
-webkit-text-fill-color: var(${TextField.cssVarList.color});
|
|
2032
2060
|
box-shadow: 0 0 0 var(${TextField.cssVarList.height}) var(${TextField.cssVarList.backgroundColor}) inset;
|
|
2033
2061
|
}
|
|
2062
|
+
|
|
2063
|
+
vaadin-text-field input {
|
|
2064
|
+
-webkit-mask-image: none;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2034
2067
|
vaadin-text-field > label,
|
|
2035
2068
|
vaadin-text-field::part(input-field) {
|
|
2036
2069
|
color: var(${TextField.cssVarList.color});
|
|
@@ -2046,6 +2079,10 @@ overrides$3 = `
|
|
|
2046
2079
|
vaadin-text-field[readonly]::part(input-field)::after {
|
|
2047
2080
|
border: 0 solid;
|
|
2048
2081
|
}
|
|
2082
|
+
|
|
2083
|
+
vaadin-text-field::before {
|
|
2084
|
+
height: unset;
|
|
2085
|
+
}
|
|
2049
2086
|
`;
|
|
2050
2087
|
|
|
2051
2088
|
const componentName$7 = getComponentName('passcode');
|
|
@@ -2076,16 +2113,20 @@ const customMixin$1 = (superclass) =>
|
|
|
2076
2113
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
|
2077
2114
|
|
|
2078
2115
|
this.inputElement = this.shadowRoot.querySelector(componentName$9);
|
|
2116
|
+
|
|
2117
|
+
forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size'] });
|
|
2079
2118
|
}
|
|
2080
2119
|
};
|
|
2081
2120
|
|
|
2082
2121
|
const { borderStyle, borderWidth, ...restTextFieldMappings } =
|
|
2083
2122
|
textFieldMappings;
|
|
2084
2123
|
|
|
2085
|
-
const { digitField, label: label$1, requiredIndicator: requiredIndicator$1 } = {
|
|
2124
|
+
const { digitField, label: label$1, requiredIndicator: requiredIndicator$1, internalWrapper, focusedValidDigitField } = {
|
|
2125
|
+
focusedValidDigitField: { selector: () => `${TextField.componentName}[focused="true"]:not([invalid="true"])` },
|
|
2086
2126
|
digitField: { selector: () => TextField.componentName },
|
|
2087
2127
|
label: { selector: '> label' },
|
|
2088
|
-
requiredIndicator: { selector: '[required]::part(required-indicator)::after' }
|
|
2128
|
+
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
|
2129
|
+
internalWrapper: { selector: 'descope-passcode-internal .wrapper' }
|
|
2089
2130
|
};
|
|
2090
2131
|
|
|
2091
2132
|
const textVars$1 = TextField.cssVarList;
|
|
@@ -2095,7 +2136,20 @@ const Passcode = compose(
|
|
|
2095
2136
|
mappings: {
|
|
2096
2137
|
...restTextFieldMappings,
|
|
2097
2138
|
borderColor: { ...digitField, property: textVars$1.borderColor },
|
|
2139
|
+
outlineColor: { ...digitField, property: textVars$1.outlineColor },
|
|
2140
|
+
outlineWidth: [
|
|
2141
|
+
{ ...digitField, property: textVars$1.outlineWidth },
|
|
2142
|
+
// we want to leave enough space to the digits outline,
|
|
2143
|
+
// ideally, this would be part of the text field
|
|
2144
|
+
{ ...internalWrapper, property: 'padding' }
|
|
2145
|
+
],
|
|
2098
2146
|
color: [restTextFieldMappings.color, label$1, requiredIndicator$1],
|
|
2147
|
+
padding: { ...digitField, property: textVars$1.padding },
|
|
2148
|
+
margin: { ...digitField, property: textVars$1.margin },
|
|
2149
|
+
textAlign: { ...digitField, property: textVars$1.textAlign },
|
|
2150
|
+
caretColor: { ...digitField, property: textVars$1.caretColor },
|
|
2151
|
+
digitsGap: { ...internalWrapper, property: 'gap' },
|
|
2152
|
+
focusedValidDigitFieldBorderColor: { ...focusedValidDigitField, property: textVars$1.borderColor }
|
|
2099
2153
|
},
|
|
2100
2154
|
}),
|
|
2101
2155
|
draggableMixin,
|
|
@@ -2114,30 +2168,47 @@ const Passcode = compose(
|
|
|
2114
2168
|
|
|
2115
2169
|
descope-passcode-internal {
|
|
2116
2170
|
-webkit-mask-image: none;
|
|
2117
|
-
display: flex;
|
|
2118
|
-
gap: 2px;
|
|
2119
|
-
align-items: center;
|
|
2120
2171
|
padding: 0;
|
|
2172
|
+
width: 100%;
|
|
2173
|
+
height: 100%;
|
|
2174
|
+
min-height: initial;
|
|
2121
2175
|
}
|
|
2176
|
+
|
|
2177
|
+
descope-passcode-internal .wrapper {
|
|
2178
|
+
box-sizing: border-box;
|
|
2179
|
+
min-height: initial;
|
|
2180
|
+
height: 100%;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
descope-passcode-internal descope-text-field {
|
|
2184
|
+
width: var(${textVars$1.height})
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2122
2187
|
vaadin-text-field::part(input-field) {
|
|
2123
2188
|
background-color: transparent;
|
|
2124
2189
|
padding: 0;
|
|
2125
2190
|
overflow: hidden;
|
|
2191
|
+
-webkit-mask-image: none;
|
|
2126
2192
|
}
|
|
2193
|
+
|
|
2127
2194
|
vaadin-text-field {
|
|
2128
2195
|
margin: 0;
|
|
2129
2196
|
padding: 0;
|
|
2197
|
+
width: 100%
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
vaadin-text-field::before {
|
|
2201
|
+
height: initial;
|
|
2130
2202
|
}
|
|
2203
|
+
|
|
2131
2204
|
vaadin-text-field[readonly] > input:placeholder-shown {
|
|
2132
2205
|
opacity: 1;
|
|
2133
2206
|
}
|
|
2134
|
-
|
|
2135
|
-
vaadin-text-field::part(input-field) {
|
|
2136
|
-
cursor: pointer;
|
|
2137
|
-
}
|
|
2207
|
+
|
|
2138
2208
|
vaadin-text-field::part(input-field):focus {
|
|
2139
2209
|
cursor: text;
|
|
2140
2210
|
}
|
|
2211
|
+
|
|
2141
2212
|
vaadin-text-field[required]::part(required-indicator)::after {
|
|
2142
2213
|
font-size: "12px";
|
|
2143
2214
|
content: "*";
|
|
@@ -2331,7 +2402,9 @@ const TextArea = compose(
|
|
|
2331
2402
|
borderStyle: { selector: selectors.input },
|
|
2332
2403
|
borderColor: { selector: selectors.input },
|
|
2333
2404
|
borderRadius: { selector: selectors.input },
|
|
2334
|
-
|
|
2405
|
+
outlineWidth: { selector: selectors.input },
|
|
2406
|
+
outlineStyle: { selector: selectors.input },
|
|
2407
|
+
outlineColor: { selector: selectors.input },
|
|
2335
2408
|
outlineOffset: { selector: selectors.input }
|
|
2336
2409
|
}
|
|
2337
2410
|
}),
|
|
@@ -4100,7 +4173,7 @@ const PhoneField = compose(
|
|
|
4100
4173
|
|
|
4101
4174
|
phoneInputWidth: { ...phoneInput, property: 'width' },
|
|
4102
4175
|
|
|
4103
|
-
color: [label, requiredIndicator],
|
|
4176
|
+
color: [label, requiredIndicator, {...phoneInput, property: textVars.color}, {...countryCodeInput, property: comboVars.color}],
|
|
4104
4177
|
|
|
4105
4178
|
placeholderColor: {
|
|
4106
4179
|
...phoneInput,
|
|
@@ -4178,6 +4251,13 @@ const PhoneField = compose(
|
|
|
4178
4251
|
})
|
|
4179
4252
|
);
|
|
4180
4253
|
|
|
4254
|
+
/*
|
|
4255
|
+
Bugs:
|
|
4256
|
+
- default code value, open the dropdown and click outside, the value is gone
|
|
4257
|
+
- make invalid by blur, enter a 6 digit number, component is valid but the divider is red
|
|
4258
|
+
- missing handling of outline when focused, hiding the divider when focusing the phone
|
|
4259
|
+
*/
|
|
4260
|
+
|
|
4181
4261
|
customElements.define(componentName, PhoneField);
|
|
4182
4262
|
|
|
4183
4263
|
const getVarName = (path) => getCssVarName(DESCOPE_PREFIX, ...path);
|
|
@@ -4451,146 +4531,143 @@ var globals = {
|
|
|
4451
4531
|
fonts
|
|
4452
4532
|
};
|
|
4453
4533
|
|
|
4454
|
-
const globalRefs$
|
|
4455
|
-
const vars$
|
|
4534
|
+
const globalRefs$a = getThemeRefs(globals);
|
|
4535
|
+
const vars$f = Button.cssVarList;
|
|
4456
4536
|
|
|
4457
4537
|
const mode = {
|
|
4458
|
-
primary: globalRefs$
|
|
4459
|
-
secondary: globalRefs$
|
|
4460
|
-
success: globalRefs$
|
|
4461
|
-
error: globalRefs$
|
|
4462
|
-
surface: globalRefs$
|
|
4538
|
+
primary: globalRefs$a.colors.primary,
|
|
4539
|
+
secondary: globalRefs$a.colors.secondary,
|
|
4540
|
+
success: globalRefs$a.colors.success,
|
|
4541
|
+
error: globalRefs$a.colors.error,
|
|
4542
|
+
surface: globalRefs$a.colors.surface
|
|
4463
4543
|
};
|
|
4464
4544
|
|
|
4465
4545
|
const [helperTheme$2, helperRefs$2] = createHelperVars({ mode }, componentName$l);
|
|
4466
4546
|
|
|
4467
4547
|
const button = {
|
|
4468
4548
|
...helperTheme$2,
|
|
4469
|
-
[vars$
|
|
4549
|
+
[vars$f.width]: 'fit-content',
|
|
4470
4550
|
size: {
|
|
4471
4551
|
xs: {
|
|
4472
|
-
[vars$
|
|
4473
|
-
[vars$
|
|
4474
|
-
[vars$
|
|
4552
|
+
[vars$f.height]: '10px',
|
|
4553
|
+
[vars$f.fontSize]: '10px',
|
|
4554
|
+
[vars$f.padding]: `0 ${globalRefs$a.spacing.xs}`
|
|
4475
4555
|
},
|
|
4476
4556
|
sm: {
|
|
4477
|
-
[vars$
|
|
4478
|
-
[vars$
|
|
4479
|
-
[vars$
|
|
4557
|
+
[vars$f.height]: '20px',
|
|
4558
|
+
[vars$f.fontSize]: '10px',
|
|
4559
|
+
[vars$f.padding]: `0 ${globalRefs$a.spacing.sm}`
|
|
4480
4560
|
},
|
|
4481
4561
|
md: {
|
|
4482
|
-
[vars$
|
|
4483
|
-
[vars$
|
|
4484
|
-
[vars$
|
|
4562
|
+
[vars$f.height]: '30px',
|
|
4563
|
+
[vars$f.fontSize]: '14px',
|
|
4564
|
+
[vars$f.padding]: `0 ${globalRefs$a.spacing.md}`
|
|
4485
4565
|
},
|
|
4486
4566
|
lg: {
|
|
4487
|
-
[vars$
|
|
4488
|
-
[vars$
|
|
4489
|
-
[vars$
|
|
4567
|
+
[vars$f.height]: '40px',
|
|
4568
|
+
[vars$f.fontSize]: '20px',
|
|
4569
|
+
[vars$f.padding]: `0 ${globalRefs$a.spacing.lg}`
|
|
4490
4570
|
},
|
|
4491
4571
|
xl: {
|
|
4492
|
-
[vars$
|
|
4493
|
-
[vars$
|
|
4494
|
-
[vars$
|
|
4572
|
+
[vars$f.height]: '50px',
|
|
4573
|
+
[vars$f.fontSize]: '25px',
|
|
4574
|
+
[vars$f.padding]: `0 ${globalRefs$a.spacing.xl}`
|
|
4495
4575
|
}
|
|
4496
4576
|
},
|
|
4497
4577
|
|
|
4498
|
-
[vars$
|
|
4499
|
-
[vars$
|
|
4500
|
-
[vars$
|
|
4501
|
-
[vars$
|
|
4502
|
-
[vars$
|
|
4578
|
+
[vars$f.borderRadius]: globalRefs$a.radius.lg,
|
|
4579
|
+
[vars$f.cursor]: 'pointer',
|
|
4580
|
+
[vars$f.borderWidth]: '2px',
|
|
4581
|
+
[vars$f.borderStyle]: 'solid',
|
|
4582
|
+
[vars$f.borderColor]: 'transparent',
|
|
4503
4583
|
|
|
4504
4584
|
_fullWidth: {
|
|
4505
|
-
[vars$
|
|
4585
|
+
[vars$f.width]: '100%'
|
|
4506
4586
|
},
|
|
4507
4587
|
_loading: {
|
|
4508
|
-
[vars$
|
|
4588
|
+
[vars$f.cursor]: 'wait'
|
|
4509
4589
|
},
|
|
4510
4590
|
|
|
4511
4591
|
variant: {
|
|
4512
4592
|
contained: {
|
|
4513
|
-
[vars$
|
|
4514
|
-
[vars$
|
|
4593
|
+
[vars$f.color]: helperRefs$2.contrast,
|
|
4594
|
+
[vars$f.backgroundColor]: helperRefs$2.main,
|
|
4515
4595
|
_hover: {
|
|
4516
|
-
[vars$
|
|
4596
|
+
[vars$f.backgroundColor]: helperRefs$2.dark
|
|
4517
4597
|
},
|
|
4518
4598
|
_loading: {
|
|
4519
|
-
[vars$
|
|
4599
|
+
[vars$f.backgroundColor]: helperRefs$2.main
|
|
4520
4600
|
}
|
|
4521
4601
|
},
|
|
4522
4602
|
outline: {
|
|
4523
|
-
[vars$
|
|
4524
|
-
[vars$
|
|
4603
|
+
[vars$f.color]: helperRefs$2.main,
|
|
4604
|
+
[vars$f.borderColor]: helperRefs$2.main,
|
|
4525
4605
|
_hover: {
|
|
4526
|
-
[vars$
|
|
4527
|
-
[vars$
|
|
4606
|
+
[vars$f.color]: helperRefs$2.dark,
|
|
4607
|
+
[vars$f.borderColor]: helperRefs$2.dark,
|
|
4528
4608
|
_error: {
|
|
4529
|
-
[vars$
|
|
4609
|
+
[vars$f.color]: helperRefs$2.error
|
|
4530
4610
|
}
|
|
4531
4611
|
}
|
|
4532
4612
|
},
|
|
4533
4613
|
link: {
|
|
4534
|
-
[vars$
|
|
4535
|
-
[vars$
|
|
4536
|
-
[vars$e.margin]: 0,
|
|
4537
|
-
[vars$e.lineHeight]: helperRefs$2.height,
|
|
4538
|
-
[vars$e.borderRadius]: 0,
|
|
4614
|
+
[vars$f.color]: helperRefs$2.main,
|
|
4615
|
+
[vars$f.lineHeight]: helperRefs$2.height,
|
|
4539
4616
|
_hover: {
|
|
4540
|
-
[vars$
|
|
4541
|
-
[vars$
|
|
4617
|
+
[vars$f.color]: helperRefs$2.main,
|
|
4618
|
+
[vars$f.textDecoration]: 'underline'
|
|
4542
4619
|
}
|
|
4543
4620
|
}
|
|
4544
4621
|
}
|
|
4545
4622
|
};
|
|
4546
4623
|
|
|
4547
|
-
const globalRefs$
|
|
4624
|
+
const globalRefs$9 = getThemeRefs(globals);
|
|
4548
4625
|
|
|
4549
|
-
const vars$
|
|
4626
|
+
const vars$e = TextField.cssVarList;
|
|
4550
4627
|
|
|
4551
4628
|
const textField = (vars) => ({
|
|
4552
4629
|
size: {
|
|
4553
4630
|
xs: {
|
|
4554
4631
|
[vars.height]: '14px',
|
|
4555
4632
|
[vars.fontSize]: '8px',
|
|
4556
|
-
[vars.padding]: `0 ${globalRefs$
|
|
4633
|
+
[vars.padding]: `0 ${globalRefs$9.spacing.xs}`
|
|
4557
4634
|
},
|
|
4558
4635
|
sm: {
|
|
4559
4636
|
[vars.height]: '20px',
|
|
4560
4637
|
[vars.fontSize]: '10px',
|
|
4561
|
-
[vars.padding]: `0 ${globalRefs$
|
|
4638
|
+
[vars.padding]: `0 ${globalRefs$9.spacing.sm}`
|
|
4562
4639
|
},
|
|
4563
4640
|
md: {
|
|
4564
4641
|
[vars.height]: '30px',
|
|
4565
4642
|
[vars.fontSize]: '14px',
|
|
4566
|
-
[vars.padding]: `0 ${globalRefs$
|
|
4643
|
+
[vars.padding]: `0 ${globalRefs$9.spacing.md}`
|
|
4567
4644
|
},
|
|
4568
4645
|
lg: {
|
|
4569
4646
|
[vars.height]: '40px',
|
|
4570
4647
|
[vars.fontSize]: '20px',
|
|
4571
|
-
[vars.padding]: `0 ${globalRefs$
|
|
4648
|
+
[vars.padding]: `0 ${globalRefs$9.spacing.lg}`
|
|
4572
4649
|
},
|
|
4573
4650
|
xl: {
|
|
4574
4651
|
[vars.height]: '50px',
|
|
4575
4652
|
[vars.fontSize]: '25px',
|
|
4576
|
-
[vars.padding]: `0 ${globalRefs$
|
|
4653
|
+
[vars.padding]: `0 ${globalRefs$9.spacing.xl}`
|
|
4577
4654
|
}
|
|
4578
4655
|
},
|
|
4579
4656
|
|
|
4580
|
-
[vars.color]: globalRefs$
|
|
4581
|
-
[vars.placeholderColor]: globalRefs$
|
|
4657
|
+
[vars.color]: globalRefs$9.colors.surface.contrast,
|
|
4658
|
+
[vars.placeholderColor]: globalRefs$9.colors.surface.main,
|
|
4582
4659
|
|
|
4583
|
-
[vars.backgroundColor]: globalRefs$
|
|
4660
|
+
[vars.backgroundColor]: globalRefs$9.colors.surface.light,
|
|
4584
4661
|
|
|
4585
4662
|
[vars.borderWidth]: '1px',
|
|
4586
4663
|
[vars.borderStyle]: 'solid',
|
|
4587
4664
|
[vars.borderColor]: 'transparent',
|
|
4588
|
-
[vars.borderRadius]: globalRefs$
|
|
4665
|
+
[vars.borderRadius]: globalRefs$9.radius.sm,
|
|
4589
4666
|
|
|
4590
4667
|
_disabled: {
|
|
4591
|
-
[vars.color]: globalRefs$
|
|
4592
|
-
[vars.placeholderColor]: globalRefs$
|
|
4593
|
-
[vars.backgroundColor]: globalRefs$
|
|
4668
|
+
[vars.color]: globalRefs$9.colors.surface.dark,
|
|
4669
|
+
[vars.placeholderColor]: globalRefs$9.colors.surface.light,
|
|
4670
|
+
[vars.backgroundColor]: globalRefs$9.colors.surface.main
|
|
4594
4671
|
},
|
|
4595
4672
|
|
|
4596
4673
|
_fullWidth: {
|
|
@@ -4598,27 +4675,30 @@ const textField = (vars) => ({
|
|
|
4598
4675
|
},
|
|
4599
4676
|
|
|
4600
4677
|
_focused: {
|
|
4601
|
-
[vars.
|
|
4678
|
+
[vars.outlineWidth]: '2px',
|
|
4679
|
+
[vars.outlineStyle]: 'solid',
|
|
4680
|
+
[vars.outlineColor]: globalRefs$9.colors.surface.main
|
|
4602
4681
|
},
|
|
4603
4682
|
|
|
4604
4683
|
_bordered: {
|
|
4605
|
-
[vars.borderColor]: globalRefs$
|
|
4684
|
+
[vars.borderColor]: globalRefs$9.colors.surface.main
|
|
4606
4685
|
},
|
|
4607
4686
|
|
|
4608
4687
|
_invalid: {
|
|
4609
|
-
[vars.borderColor]: globalRefs$
|
|
4610
|
-
[vars.color]: globalRefs$
|
|
4611
|
-
[vars.
|
|
4688
|
+
[vars.borderColor]: globalRefs$9.colors.error.main,
|
|
4689
|
+
[vars.color]: globalRefs$9.colors.error.main,
|
|
4690
|
+
[vars.outlineColor]: globalRefs$9.colors.error.light,
|
|
4691
|
+
[vars.placeholderColor]: globalRefs$9.colors.error.light
|
|
4612
4692
|
}
|
|
4613
4693
|
});
|
|
4614
4694
|
|
|
4615
|
-
var textField$1 = textField(vars$
|
|
4695
|
+
var textField$1 = textField(vars$e);
|
|
4616
4696
|
|
|
4617
|
-
const vars$
|
|
4697
|
+
const vars$d = PasswordField.cssVarList;
|
|
4618
4698
|
|
|
4619
4699
|
const passwordField = {
|
|
4620
|
-
...textField(vars$
|
|
4621
|
-
[vars$
|
|
4700
|
+
...textField(vars$d),
|
|
4701
|
+
[vars$d.revealCursor]: 'pointer'
|
|
4622
4702
|
};
|
|
4623
4703
|
|
|
4624
4704
|
const numberField = {
|
|
@@ -4629,58 +4709,61 @@ const emailField = {
|
|
|
4629
4709
|
...textField(EmailField.cssVarList)
|
|
4630
4710
|
};
|
|
4631
4711
|
|
|
4632
|
-
const globalRefs$
|
|
4633
|
-
const vars$
|
|
4712
|
+
const globalRefs$8 = getThemeRefs(globals);
|
|
4713
|
+
const vars$c = TextArea.cssVarList;
|
|
4634
4714
|
|
|
4635
4715
|
const textArea = {
|
|
4636
|
-
[vars$
|
|
4637
|
-
[vars$
|
|
4638
|
-
[vars$
|
|
4639
|
-
[vars$
|
|
4716
|
+
[vars$c.width]: '100%',
|
|
4717
|
+
[vars$c.color]: globalRefs$8.colors.primary.main,
|
|
4718
|
+
[vars$c.backgroundColor]: globalRefs$8.colors.surface.light,
|
|
4719
|
+
[vars$c.resize]: 'vertical',
|
|
4720
|
+
|
|
4721
|
+
[vars$c.borderRadius]: globalRefs$8.radius.sm,
|
|
4722
|
+
[vars$c.borderWidth]: '1px',
|
|
4723
|
+
[vars$c.borderStyle]: 'solid',
|
|
4724
|
+
[vars$c.borderColor]: 'transparent',
|
|
4725
|
+
[vars$c.outlineWidth]: '2px',
|
|
4726
|
+
[vars$c.outlineStyle]: 'solid',
|
|
4640
4727
|
|
|
4641
|
-
[vars$b.borderRadius]: globalRefs$7.radius.sm,
|
|
4642
|
-
[vars$b.borderWidth]: '1px',
|
|
4643
|
-
[vars$b.borderStyle]: 'solid',
|
|
4644
|
-
[vars$b.borderColor]: 'transparent',
|
|
4645
4728
|
|
|
4646
4729
|
_bordered: {
|
|
4647
|
-
[vars$
|
|
4730
|
+
[vars$c.borderColor]: globalRefs$8.colors.surface.main
|
|
4648
4731
|
},
|
|
4649
4732
|
|
|
4650
4733
|
_focused: {
|
|
4651
|
-
[vars$
|
|
4734
|
+
[vars$c.outlineColor]: globalRefs$8.colors.surface.main
|
|
4652
4735
|
},
|
|
4653
4736
|
|
|
4654
4737
|
_fullWidth: {
|
|
4655
|
-
[vars$
|
|
4738
|
+
[vars$c.width]: '100%'
|
|
4656
4739
|
},
|
|
4657
4740
|
|
|
4658
4741
|
_disabled: {
|
|
4659
|
-
[vars$
|
|
4742
|
+
[vars$c.cursor]: 'not-allowed'
|
|
4660
4743
|
},
|
|
4661
4744
|
|
|
4662
4745
|
_invalid: {
|
|
4663
|
-
[vars$
|
|
4746
|
+
[vars$c.outlineColor]: globalRefs$8.colors.error.main
|
|
4664
4747
|
}
|
|
4665
4748
|
};
|
|
4666
4749
|
|
|
4667
|
-
const vars$
|
|
4750
|
+
const vars$b = Checkbox.cssVarList;
|
|
4668
4751
|
|
|
4669
4752
|
const checkbox = {
|
|
4670
|
-
[vars$
|
|
4671
|
-
[vars$
|
|
4753
|
+
[vars$b.cursor]: 'pointer',
|
|
4754
|
+
[vars$b.width]: 'fit-content'
|
|
4672
4755
|
};
|
|
4673
4756
|
|
|
4674
|
-
const vars$
|
|
4757
|
+
const vars$a = SwitchToggle.cssVarList;
|
|
4675
4758
|
|
|
4676
4759
|
const swtichToggle = {
|
|
4677
|
-
[vars$
|
|
4678
|
-
[vars$
|
|
4760
|
+
[vars$a.width]: '70px',
|
|
4761
|
+
[vars$a.cursor]: [{}, { selector: '> label' }]
|
|
4679
4762
|
};
|
|
4680
4763
|
|
|
4681
|
-
const globalRefs$
|
|
4764
|
+
const globalRefs$7 = getThemeRefs(globals);
|
|
4682
4765
|
|
|
4683
|
-
const vars$
|
|
4766
|
+
const vars$9 = Container.cssVarList;
|
|
4684
4767
|
|
|
4685
4768
|
const verticalAlignment = {
|
|
4686
4769
|
start: { verticalAlignment: 'start' },
|
|
@@ -4703,31 +4786,31 @@ const [helperTheme$1, helperRefs$1, helperVars] =
|
|
|
4703
4786
|
|
|
4704
4787
|
const container = {
|
|
4705
4788
|
...helperTheme$1,
|
|
4706
|
-
[vars$
|
|
4789
|
+
[vars$9.width]: '100%',
|
|
4707
4790
|
verticalPadding: {
|
|
4708
|
-
sm: { [vars$
|
|
4709
|
-
md: { [vars$
|
|
4710
|
-
lg: { [vars$
|
|
4791
|
+
sm: { [vars$9.verticalPadding]: '5px' },
|
|
4792
|
+
md: { [vars$9.verticalPadding]: '10px' },
|
|
4793
|
+
lg: { [vars$9.verticalPadding]: '20px' },
|
|
4711
4794
|
},
|
|
4712
4795
|
horizontalPadding: {
|
|
4713
|
-
sm: { [vars$
|
|
4714
|
-
md: { [vars$
|
|
4715
|
-
lg: { [vars$
|
|
4796
|
+
sm: { [vars$9.horizontalPadding]: '5px' },
|
|
4797
|
+
md: { [vars$9.horizontalPadding]: '10px' },
|
|
4798
|
+
lg: { [vars$9.horizontalPadding]: '20px' },
|
|
4716
4799
|
},
|
|
4717
4800
|
direction: {
|
|
4718
4801
|
row: {
|
|
4719
|
-
[vars$
|
|
4720
|
-
[vars$
|
|
4721
|
-
[vars$
|
|
4802
|
+
[vars$9.flexDirection]: 'row',
|
|
4803
|
+
[vars$9.alignItems]: helperRefs$1.verticalAlignment,
|
|
4804
|
+
[vars$9.justifyContent]: helperRefs$1.horizontalAlignment,
|
|
4722
4805
|
horizontalAlignment: {
|
|
4723
4806
|
spaceBetween: { [helperVars.horizontalAlignment]: 'space-between' },
|
|
4724
4807
|
}
|
|
4725
4808
|
},
|
|
4726
4809
|
|
|
4727
4810
|
column: {
|
|
4728
|
-
[vars$
|
|
4729
|
-
[vars$
|
|
4730
|
-
[vars$
|
|
4811
|
+
[vars$9.flexDirection]: 'column',
|
|
4812
|
+
[vars$9.alignItems]: helperRefs$1.horizontalAlignment,
|
|
4813
|
+
[vars$9.justifyContent]: helperRefs$1.verticalAlignment,
|
|
4731
4814
|
verticalAlignment: {
|
|
4732
4815
|
spaceBetween: { [helperVars.verticalAlignment]: 'space-between' }
|
|
4733
4816
|
}
|
|
@@ -4736,187 +4819,187 @@ const container = {
|
|
|
4736
4819
|
|
|
4737
4820
|
spaceBetween: {
|
|
4738
4821
|
sm: {
|
|
4739
|
-
[vars$
|
|
4822
|
+
[vars$9.gap]: '10px'
|
|
4740
4823
|
},
|
|
4741
4824
|
md: {
|
|
4742
|
-
[vars$
|
|
4825
|
+
[vars$9.gap]: '20px'
|
|
4743
4826
|
},
|
|
4744
4827
|
lg: {
|
|
4745
|
-
[vars$
|
|
4828
|
+
[vars$9.gap]: '30px'
|
|
4746
4829
|
}
|
|
4747
4830
|
},
|
|
4748
4831
|
|
|
4749
4832
|
shadow: {
|
|
4750
4833
|
sm: {
|
|
4751
|
-
[vars$
|
|
4834
|
+
[vars$9.boxShadow]: `${globalRefs$7.shadow.wide.sm} ${helperRefs$1.shadowColor}, ${globalRefs$7.shadow.narrow.sm} ${helperRefs$1.shadowColor}`
|
|
4752
4835
|
},
|
|
4753
4836
|
md: {
|
|
4754
|
-
[vars$
|
|
4837
|
+
[vars$9.boxShadow]: `${globalRefs$7.shadow.wide.md} ${helperRefs$1.shadowColor}, ${globalRefs$7.shadow.narrow.md} ${helperRefs$1.shadowColor}`
|
|
4755
4838
|
},
|
|
4756
4839
|
lg: {
|
|
4757
|
-
[vars$
|
|
4840
|
+
[vars$9.boxShadow]: `${globalRefs$7.shadow.wide.lg} ${helperRefs$1.shadowColor}, ${globalRefs$7.shadow.narrow.lg} ${helperRefs$1.shadowColor}`
|
|
4758
4841
|
},
|
|
4759
4842
|
xl: {
|
|
4760
|
-
[vars$
|
|
4843
|
+
[vars$9.boxShadow]: `${globalRefs$7.shadow.wide.xl} ${helperRefs$1.shadowColor}, ${globalRefs$7.shadow.narrow.xl} ${helperRefs$1.shadowColor}`
|
|
4761
4844
|
},
|
|
4762
4845
|
'2xl': {
|
|
4763
4846
|
[helperVars.shadowColor]: '#00000050',
|
|
4764
|
-
[vars$
|
|
4847
|
+
[vars$9.boxShadow]: `${globalRefs$7.shadow.wide['2xl']} ${helperRefs$1.shadowColor}`
|
|
4765
4848
|
},
|
|
4766
4849
|
},
|
|
4767
4850
|
|
|
4768
4851
|
borderRadius: {
|
|
4769
4852
|
sm: {
|
|
4770
|
-
[vars$
|
|
4853
|
+
[vars$9.borderRadius]: globalRefs$7.radius.sm
|
|
4771
4854
|
},
|
|
4772
4855
|
md: {
|
|
4773
|
-
[vars$
|
|
4856
|
+
[vars$9.borderRadius]: globalRefs$7.radius.md
|
|
4774
4857
|
},
|
|
4775
4858
|
lg: {
|
|
4776
|
-
[vars$
|
|
4859
|
+
[vars$9.borderRadius]: globalRefs$7.radius.lg
|
|
4777
4860
|
},
|
|
4778
4861
|
}
|
|
4779
4862
|
};
|
|
4780
4863
|
|
|
4781
|
-
const vars$
|
|
4864
|
+
const vars$8 = Logo.cssVarList;
|
|
4782
4865
|
|
|
4783
4866
|
const logo = {
|
|
4784
|
-
[vars$
|
|
4867
|
+
[vars$8.fallbackUrl]: 'url(https://content.app.descope.com/assets/flows/noLogoPlaceholder.svg)'
|
|
4785
4868
|
};
|
|
4786
4869
|
|
|
4787
|
-
const globalRefs$
|
|
4870
|
+
const globalRefs$6 = getThemeRefs(globals);
|
|
4788
4871
|
|
|
4789
|
-
const vars$
|
|
4872
|
+
const vars$7 = Text.cssVarList;
|
|
4790
4873
|
|
|
4791
4874
|
const text = {
|
|
4792
|
-
[vars$
|
|
4793
|
-
[vars$
|
|
4794
|
-
[vars$
|
|
4795
|
-
[vars$
|
|
4875
|
+
[vars$7.lineHeight]: '1em',
|
|
4876
|
+
[vars$7.display]: 'inline-block',
|
|
4877
|
+
[vars$7.textAlign]: 'left',
|
|
4878
|
+
[vars$7.color]: globalRefs$6.colors.surface.dark,
|
|
4796
4879
|
variant: {
|
|
4797
4880
|
h1: {
|
|
4798
|
-
[vars$
|
|
4799
|
-
[vars$
|
|
4800
|
-
[vars$
|
|
4881
|
+
[vars$7.fontSize]: globalRefs$6.typography.h1.size,
|
|
4882
|
+
[vars$7.fontWeight]: globalRefs$6.typography.h1.weight,
|
|
4883
|
+
[vars$7.fontFamily]: globalRefs$6.typography.h1.font
|
|
4801
4884
|
},
|
|
4802
4885
|
h2: {
|
|
4803
|
-
[vars$
|
|
4804
|
-
[vars$
|
|
4805
|
-
[vars$
|
|
4886
|
+
[vars$7.fontSize]: globalRefs$6.typography.h2.size,
|
|
4887
|
+
[vars$7.fontWeight]: globalRefs$6.typography.h2.weight,
|
|
4888
|
+
[vars$7.fontFamily]: globalRefs$6.typography.h2.font
|
|
4806
4889
|
},
|
|
4807
4890
|
h3: {
|
|
4808
|
-
[vars$
|
|
4809
|
-
[vars$
|
|
4810
|
-
[vars$
|
|
4891
|
+
[vars$7.fontSize]: globalRefs$6.typography.h3.size,
|
|
4892
|
+
[vars$7.fontWeight]: globalRefs$6.typography.h3.weight,
|
|
4893
|
+
[vars$7.fontFamily]: globalRefs$6.typography.h3.font
|
|
4811
4894
|
},
|
|
4812
4895
|
subtitle1: {
|
|
4813
|
-
[vars$
|
|
4814
|
-
[vars$
|
|
4815
|
-
[vars$
|
|
4896
|
+
[vars$7.fontSize]: globalRefs$6.typography.subtitle1.size,
|
|
4897
|
+
[vars$7.fontWeight]: globalRefs$6.typography.subtitle1.weight,
|
|
4898
|
+
[vars$7.fontFamily]: globalRefs$6.typography.subtitle1.font
|
|
4816
4899
|
},
|
|
4817
4900
|
subtitle2: {
|
|
4818
|
-
[vars$
|
|
4819
|
-
[vars$
|
|
4820
|
-
[vars$
|
|
4901
|
+
[vars$7.fontSize]: globalRefs$6.typography.subtitle2.size,
|
|
4902
|
+
[vars$7.fontWeight]: globalRefs$6.typography.subtitle2.weight,
|
|
4903
|
+
[vars$7.fontFamily]: globalRefs$6.typography.subtitle2.font
|
|
4821
4904
|
},
|
|
4822
4905
|
body1: {
|
|
4823
|
-
[vars$
|
|
4824
|
-
[vars$
|
|
4825
|
-
[vars$
|
|
4906
|
+
[vars$7.fontSize]: globalRefs$6.typography.body1.size,
|
|
4907
|
+
[vars$7.fontWeight]: globalRefs$6.typography.body1.weight,
|
|
4908
|
+
[vars$7.fontFamily]: globalRefs$6.typography.body1.font
|
|
4826
4909
|
},
|
|
4827
4910
|
body2: {
|
|
4828
|
-
[vars$
|
|
4829
|
-
[vars$
|
|
4830
|
-
[vars$
|
|
4911
|
+
[vars$7.fontSize]: globalRefs$6.typography.body2.size,
|
|
4912
|
+
[vars$7.fontWeight]: globalRefs$6.typography.body2.weight,
|
|
4913
|
+
[vars$7.fontFamily]: globalRefs$6.typography.body2.font
|
|
4831
4914
|
}
|
|
4832
4915
|
},
|
|
4833
4916
|
mode: {
|
|
4834
4917
|
primary: {
|
|
4835
|
-
[vars$
|
|
4918
|
+
[vars$7.color]: globalRefs$6.colors.primary.main
|
|
4836
4919
|
},
|
|
4837
4920
|
secondary: {
|
|
4838
|
-
[vars$
|
|
4921
|
+
[vars$7.color]: globalRefs$6.colors.secondary.main
|
|
4839
4922
|
},
|
|
4840
4923
|
error: {
|
|
4841
|
-
[vars$
|
|
4924
|
+
[vars$7.color]: globalRefs$6.colors.error.main
|
|
4842
4925
|
},
|
|
4843
4926
|
success: {
|
|
4844
|
-
[vars$
|
|
4927
|
+
[vars$7.color]: globalRefs$6.colors.success.main
|
|
4845
4928
|
}
|
|
4846
4929
|
},
|
|
4847
4930
|
textAlign: {
|
|
4848
|
-
right: { [vars$
|
|
4849
|
-
left: { [vars$
|
|
4850
|
-
center: { [vars$
|
|
4931
|
+
right: { [vars$7.textAlign]: 'right' },
|
|
4932
|
+
left: { [vars$7.textAlign]: 'left' },
|
|
4933
|
+
center: { [vars$7.textAlign]: 'center' }
|
|
4851
4934
|
},
|
|
4852
4935
|
_fullWidth: {
|
|
4853
|
-
[vars$
|
|
4854
|
-
[vars$
|
|
4936
|
+
[vars$7.width]: '100%',
|
|
4937
|
+
[vars$7.display]: 'block'
|
|
4855
4938
|
},
|
|
4856
4939
|
_italic: {
|
|
4857
|
-
[vars$
|
|
4940
|
+
[vars$7.fontStyle]: 'italic'
|
|
4858
4941
|
},
|
|
4859
4942
|
_uppercase: {
|
|
4860
|
-
[vars$
|
|
4943
|
+
[vars$7.textTransform]: 'uppercase'
|
|
4861
4944
|
},
|
|
4862
4945
|
_lowercase: {
|
|
4863
|
-
[vars$
|
|
4946
|
+
[vars$7.textTransform]: 'lowercase'
|
|
4864
4947
|
}
|
|
4865
4948
|
};
|
|
4866
4949
|
|
|
4867
|
-
const globalRefs$
|
|
4868
|
-
const vars$
|
|
4950
|
+
const globalRefs$5 = getThemeRefs(globals);
|
|
4951
|
+
const vars$6 = Link.cssVarList;
|
|
4869
4952
|
|
|
4870
4953
|
const link = {
|
|
4871
|
-
[vars$
|
|
4872
|
-
[vars$
|
|
4873
|
-
[vars$
|
|
4874
|
-
[vars$
|
|
4875
|
-
[vars$
|
|
4954
|
+
[vars$6.cursor]: 'pointer',
|
|
4955
|
+
[vars$6.borderBottomWidth]: '2px',
|
|
4956
|
+
[vars$6.borderBottomStyle]: 'solid',
|
|
4957
|
+
[vars$6.borderBottomColor]: 'transparent',
|
|
4958
|
+
[vars$6.color]: globalRefs$5.colors.primary.main,
|
|
4876
4959
|
|
|
4877
4960
|
_hover: {
|
|
4878
|
-
[vars$
|
|
4961
|
+
[vars$6.borderBottomColor]: globalRefs$5.colors.primary.main
|
|
4879
4962
|
},
|
|
4880
4963
|
|
|
4881
4964
|
textAlign: {
|
|
4882
|
-
right: { [vars$
|
|
4883
|
-
left: { [vars$
|
|
4884
|
-
center: { [vars$
|
|
4965
|
+
right: { [vars$6.textAlign]: 'right' },
|
|
4966
|
+
left: { [vars$6.textAlign]: 'left' },
|
|
4967
|
+
center: { [vars$6.textAlign]: 'center' }
|
|
4885
4968
|
},
|
|
4886
4969
|
|
|
4887
4970
|
_fullWidth: {
|
|
4888
|
-
[vars$
|
|
4971
|
+
[vars$6.width]: '100%'
|
|
4889
4972
|
},
|
|
4890
4973
|
|
|
4891
4974
|
mode: {
|
|
4892
4975
|
primary: {
|
|
4893
|
-
[vars$
|
|
4976
|
+
[vars$6.color]: globalRefs$5.colors.primary.main,
|
|
4894
4977
|
_hover: {
|
|
4895
|
-
[vars$
|
|
4978
|
+
[vars$6.borderBottomColor]: globalRefs$5.colors.primary.main
|
|
4896
4979
|
}
|
|
4897
4980
|
},
|
|
4898
4981
|
secondary: {
|
|
4899
|
-
[vars$
|
|
4982
|
+
[vars$6.color]: globalRefs$5.colors.secondary.main,
|
|
4900
4983
|
_hover: {
|
|
4901
|
-
[vars$
|
|
4984
|
+
[vars$6.borderBottomColor]: globalRefs$5.colors.secondary.main
|
|
4902
4985
|
}
|
|
4903
4986
|
},
|
|
4904
4987
|
error: {
|
|
4905
|
-
[vars$
|
|
4988
|
+
[vars$6.color]: globalRefs$5.colors.error.main,
|
|
4906
4989
|
_hover: {
|
|
4907
|
-
[vars$
|
|
4990
|
+
[vars$6.borderBottomColor]: globalRefs$5.colors.error.main
|
|
4908
4991
|
}
|
|
4909
4992
|
},
|
|
4910
4993
|
success: {
|
|
4911
|
-
[vars$
|
|
4994
|
+
[vars$6.color]: globalRefs$5.colors.success.main,
|
|
4912
4995
|
_hover: {
|
|
4913
|
-
[vars$
|
|
4996
|
+
[vars$6.borderBottomColor]: globalRefs$5.colors.success.main
|
|
4914
4997
|
}
|
|
4915
4998
|
}
|
|
4916
4999
|
}
|
|
4917
5000
|
};
|
|
4918
5001
|
|
|
4919
|
-
const vars$
|
|
5002
|
+
const vars$5 = Divider.cssVarList;
|
|
4920
5003
|
|
|
4921
5004
|
const thickness = '2px';
|
|
4922
5005
|
const textPaddingSize = '10px';
|
|
@@ -4925,30 +5008,62 @@ const [helperTheme, helperRefs] = createHelperVars({ thickness, textPaddingSize
|
|
|
4925
5008
|
|
|
4926
5009
|
const divider = {
|
|
4927
5010
|
...helperTheme,
|
|
4928
|
-
[vars$
|
|
4929
|
-
[vars$
|
|
4930
|
-
[vars$
|
|
4931
|
-
[vars$
|
|
4932
|
-
[vars$
|
|
4933
|
-
[vars$
|
|
4934
|
-
[vars$
|
|
4935
|
-
[vars$
|
|
4936
|
-
[vars$
|
|
4937
|
-
[vars$
|
|
5011
|
+
[vars$5.alignItems]: 'center',
|
|
5012
|
+
[vars$5.dividerHeight]: helperRefs.thickness,
|
|
5013
|
+
[vars$5.backgroundColor]: 'currentColor',
|
|
5014
|
+
[vars$5.opacity]: '0.2',
|
|
5015
|
+
[vars$5.textPadding]: `0 ${helperRefs.textPaddingSize}`,
|
|
5016
|
+
[vars$5.width]: '100%',
|
|
5017
|
+
[vars$5.flexDirection]: 'row',
|
|
5018
|
+
[vars$5.alignSelf]: 'strech',
|
|
5019
|
+
[vars$5.textWidth]: 'fit-content',
|
|
5020
|
+
[vars$5.maxTextWidth]: 'calc(100% - 100px)',
|
|
4938
5021
|
_vertical: {
|
|
4939
|
-
[vars$
|
|
4940
|
-
[vars$
|
|
4941
|
-
[vars$
|
|
4942
|
-
[vars$
|
|
4943
|
-
[vars$
|
|
4944
|
-
[vars$
|
|
4945
|
-
[vars$
|
|
4946
|
-
[vars$
|
|
5022
|
+
[vars$5.padding]: `0 calc(${thickness} * 3)`,
|
|
5023
|
+
[vars$5.width]: 'fit-content',
|
|
5024
|
+
[vars$5.textPadding]: `${helperRefs.textPaddingSize} 0`,
|
|
5025
|
+
[vars$5.flexDirection]: 'column',
|
|
5026
|
+
[vars$5.minHeight]: '200px',
|
|
5027
|
+
[vars$5.textWidth]: 'fit-content',
|
|
5028
|
+
[vars$5.dividerWidth]: helperRefs.thickness,
|
|
5029
|
+
[vars$5.maxTextWidth]: '100%',
|
|
4947
5030
|
}
|
|
4948
5031
|
};
|
|
4949
5032
|
|
|
5033
|
+
const vars$4 = Passcode.cssVarList;
|
|
5034
|
+
const globalRefs$4 = getThemeRefs(globals);
|
|
5035
|
+
|
|
4950
5036
|
const passcode = {
|
|
4951
|
-
|
|
5037
|
+
[vars$4.backgroundColor]: globalRefs$4.colors.surface.light,
|
|
5038
|
+
[vars$4.outlineWidth]: '2px',
|
|
5039
|
+
[vars$4.outlineColor]: globalRefs$4.colors.primary.main,
|
|
5040
|
+
[vars$4.padding]: '0',
|
|
5041
|
+
[vars$4.textAlign]: 'center',
|
|
5042
|
+
[vars$4.borderColor]: 'transparent',
|
|
5043
|
+
[vars$4.digitsGap]: '4px',
|
|
5044
|
+
[vars$4.focusedValidDigitFieldBorderColor]: globalRefs$4.colors.primary.main,
|
|
5045
|
+
|
|
5046
|
+
_hideCursor: {
|
|
5047
|
+
[vars$4.caretColor]: 'transparent',
|
|
5048
|
+
},
|
|
5049
|
+
|
|
5050
|
+
_disabled: {
|
|
5051
|
+
[vars$4.backgroundColor]: globalRefs$4.colors.surface.main
|
|
5052
|
+
},
|
|
5053
|
+
|
|
5054
|
+
_fullWidth: {
|
|
5055
|
+
[vars$4.width]: '100%'
|
|
5056
|
+
},
|
|
5057
|
+
|
|
5058
|
+
_bordered: {
|
|
5059
|
+
[vars$4.borderColor]: globalRefs$4.colors.surface.main
|
|
5060
|
+
},
|
|
5061
|
+
|
|
5062
|
+
_invalid: {
|
|
5063
|
+
[vars$4.borderColor]: globalRefs$4.colors.error.main,
|
|
5064
|
+
[vars$4.color]: globalRefs$4.colors.error.main,
|
|
5065
|
+
[vars$4.outlineColor]: globalRefs$4.colors.error.light,
|
|
5066
|
+
},
|
|
4952
5067
|
};
|
|
4953
5068
|
|
|
4954
5069
|
const globalRefs$3 = getThemeRefs(globals);
|