@descope/web-components-ui 1.0.296 → 1.0.297
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 +583 -357
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +566 -339
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1612.js +1 -1
- package/dist/umd/1621.js +2 -2
- package/dist/umd/3951.js +1 -1
- package/dist/umd/4024.js +1 -1
- package/dist/umd/4052.js +1 -1
- package/dist/umd/4569.js +1 -0
- package/dist/umd/4746.js +1 -1
- package/dist/umd/5806.js +1 -1
- package/dist/umd/6770.js +1 -1
- package/dist/umd/7056.js +1 -1
- package/dist/umd/7531.js +1 -1
- package/dist/umd/7911.js +1 -1
- package/dist/umd/9092.js +2 -2
- package/dist/umd/9314.js +1 -1
- package/dist/umd/9423.js +2 -2
- package/dist/umd/9562.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-button-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-user-attribute-index-js.js +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
- package/dist/umd/text-components-descope-markdown-content-index-js.js +1 -0
- package/dist/umd/text-components-descope-text-index-js.js +1 -0
- package/package.json +4 -2
- package/src/components/descope-divider/DividerClass.js +1 -1
- package/src/components/descope-divider/index.js +1 -1
- package/src/components/descope-link/LinkClass.js +1 -1
- package/src/components/descope-link/index.js +1 -1
- package/src/components/descope-user-attribute/UserAttributeClass.js +1 -1
- package/src/components/descope-user-attribute/index.js +1 -1
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +1 -1
- package/src/components/descope-user-auth-method/index.js +1 -1
- package/src/components/mapping-fields/descope-mappings-field/MappingsFieldClass.js +1 -1
- package/src/components/mapping-fields/descope-mappings-field/index.js +1 -1
- package/src/components/text-components/createBaseTextClass.js +26 -0
- package/src/components/text-components/descope-markdown-content/MarkdownContentClass.js +98 -0
- package/src/components/text-components/descope-markdown-content/helpers.js +41 -0
- package/src/components/text-components/descope-markdown-content/index.js +5 -0
- package/src/components/text-components/descope-text/TextClass.js +34 -0
- package/src/components/text-components/hideWhenEmptyMixin.js +17 -0
- package/src/index.cjs.js +2 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +2 -1
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/markdownContent.js +84 -0
- package/src/theme/components/text.js +1 -1
- package/dist/umd/descope-text-index-js.js +0 -1
- package/src/components/descope-text/TextClass.js +0 -67
- /package/src/components/{descope-text → text-components/descope-text}/index.js +0 -0
package/dist/index.esm.js
CHANGED
@@ -5,6 +5,7 @@ import '@vaadin/text-field';
|
|
5
5
|
import '@vaadin/email-field';
|
6
6
|
import '@vaadin/number-field';
|
7
7
|
import '@vaadin/password-field';
|
8
|
+
import markdownit from 'markdown-it';
|
8
9
|
import '@vaadin/text-area';
|
9
10
|
import '@vaadin/combo-box';
|
10
11
|
import '@vaadin/grid';
|
@@ -1354,7 +1355,7 @@ const clickableMixin = (superclass) =>
|
|
1354
1355
|
}
|
1355
1356
|
};
|
1356
1357
|
|
1357
|
-
const componentName$
|
1358
|
+
const componentName$S = getComponentName('button');
|
1358
1359
|
|
1359
1360
|
const resetStyles = `
|
1360
1361
|
:host {
|
@@ -1456,7 +1457,7 @@ const ButtonClass = compose(
|
|
1456
1457
|
}
|
1457
1458
|
`,
|
1458
1459
|
excludeAttrsSync: ['tabindex'],
|
1459
|
-
componentName: componentName$
|
1460
|
+
componentName: componentName$S,
|
1460
1461
|
})
|
1461
1462
|
);
|
1462
1463
|
|
@@ -1493,7 +1494,7 @@ loadingIndicatorStyles = `
|
|
1493
1494
|
}
|
1494
1495
|
`;
|
1495
1496
|
|
1496
|
-
customElements.define(componentName$
|
1497
|
+
customElements.define(componentName$S, ButtonClass);
|
1497
1498
|
|
1498
1499
|
const createBaseInputClass = (...args) =>
|
1499
1500
|
compose(
|
@@ -1503,11 +1504,11 @@ const createBaseInputClass = (...args) =>
|
|
1503
1504
|
inputEventsDispatchingMixin
|
1504
1505
|
)(createBaseClass(...args));
|
1505
1506
|
|
1506
|
-
const componentName$
|
1507
|
+
const componentName$R = getComponentName('boolean-field-internal');
|
1507
1508
|
|
1508
1509
|
const forwardAttributes$1 = ['disabled', 'label', 'invalid', 'readonly'];
|
1509
1510
|
|
1510
|
-
const BaseInputClass$8 = createBaseInputClass({ componentName: componentName$
|
1511
|
+
const BaseInputClass$8 = createBaseInputClass({ componentName: componentName$R, baseSelector: 'div' });
|
1511
1512
|
|
1512
1513
|
class BooleanInputInternal extends BaseInputClass$8 {
|
1513
1514
|
static get observedAttributes() {
|
@@ -1583,14 +1584,14 @@ const booleanFieldMixin = (superclass) =>
|
|
1583
1584
|
|
1584
1585
|
const template = document.createElement('template');
|
1585
1586
|
template.innerHTML = `
|
1586
|
-
<${componentName$
|
1587
|
+
<${componentName$R}
|
1587
1588
|
tabindex="-1"
|
1588
1589
|
slot="input"
|
1589
|
-
></${componentName$
|
1590
|
+
></${componentName$R}>
|
1590
1591
|
`;
|
1591
1592
|
|
1592
1593
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
1593
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
1594
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$R);
|
1594
1595
|
this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
|
1595
1596
|
|
1596
1597
|
forwardAttrs(this, this.inputElement, {
|
@@ -1789,7 +1790,7 @@ descope-boolean-field-internal {
|
|
1789
1790
|
}
|
1790
1791
|
`;
|
1791
1792
|
|
1792
|
-
const componentName$
|
1793
|
+
const componentName$Q = getComponentName('checkbox');
|
1793
1794
|
|
1794
1795
|
const {
|
1795
1796
|
host: host$m,
|
@@ -1895,15 +1896,15 @@ const CheckboxClass = compose(
|
|
1895
1896
|
}
|
1896
1897
|
`,
|
1897
1898
|
excludeAttrsSync: ['label', 'tabindex'],
|
1898
|
-
componentName: componentName$
|
1899
|
+
componentName: componentName$Q,
|
1899
1900
|
})
|
1900
1901
|
);
|
1901
1902
|
|
1902
|
-
customElements.define(componentName$
|
1903
|
+
customElements.define(componentName$R, BooleanInputInternal);
|
1903
1904
|
|
1904
|
-
customElements.define(componentName$
|
1905
|
+
customElements.define(componentName$Q, CheckboxClass);
|
1905
1906
|
|
1906
|
-
const componentName$
|
1907
|
+
const componentName$P = getComponentName('switch-toggle');
|
1907
1908
|
|
1908
1909
|
const {
|
1909
1910
|
host: host$l,
|
@@ -2035,17 +2036,17 @@ const SwitchToggleClass = compose(
|
|
2035
2036
|
}
|
2036
2037
|
`,
|
2037
2038
|
excludeAttrsSync: ['label', 'tabindex'],
|
2038
|
-
componentName: componentName$
|
2039
|
+
componentName: componentName$P,
|
2039
2040
|
})
|
2040
2041
|
);
|
2041
2042
|
|
2042
|
-
customElements.define(componentName$
|
2043
|
+
customElements.define(componentName$P, SwitchToggleClass);
|
2043
2044
|
|
2044
|
-
const componentName$
|
2045
|
+
const componentName$O = getComponentName('loader-linear');
|
2045
2046
|
|
2046
|
-
class RawLoaderLinear extends createBaseClass({ componentName: componentName$
|
2047
|
+
class RawLoaderLinear extends createBaseClass({ componentName: componentName$O, baseSelector: ':host > div' }) {
|
2047
2048
|
static get componentName() {
|
2048
|
-
return componentName$
|
2049
|
+
return componentName$O;
|
2049
2050
|
}
|
2050
2051
|
|
2051
2052
|
constructor() {
|
@@ -2106,11 +2107,11 @@ const LoaderLinearClass = compose(
|
|
2106
2107
|
componentNameValidationMixin
|
2107
2108
|
)(RawLoaderLinear);
|
2108
2109
|
|
2109
|
-
customElements.define(componentName$
|
2110
|
+
customElements.define(componentName$O, LoaderLinearClass);
|
2110
2111
|
|
2111
|
-
const componentName$
|
2112
|
+
const componentName$N = getComponentName('loader-radial');
|
2112
2113
|
|
2113
|
-
class RawLoaderRadial extends createBaseClass({ componentName: componentName$
|
2114
|
+
class RawLoaderRadial extends createBaseClass({ componentName: componentName$N, baseSelector: ':host > div' }) {
|
2114
2115
|
constructor() {
|
2115
2116
|
super();
|
2116
2117
|
|
@@ -2154,11 +2155,11 @@ const LoaderRadialClass = compose(
|
|
2154
2155
|
componentNameValidationMixin
|
2155
2156
|
)(RawLoaderRadial);
|
2156
2157
|
|
2157
|
-
customElements.define(componentName$
|
2158
|
+
customElements.define(componentName$N, LoaderRadialClass);
|
2158
2159
|
|
2159
|
-
const componentName$
|
2160
|
+
const componentName$M = getComponentName('container');
|
2160
2161
|
|
2161
|
-
class RawContainer extends createBaseClass({ componentName: componentName$
|
2162
|
+
class RawContainer extends createBaseClass({ componentName: componentName$M, baseSelector: 'slot' }) {
|
2162
2163
|
constructor() {
|
2163
2164
|
super();
|
2164
2165
|
|
@@ -2211,33 +2212,10 @@ const ContainerClass = compose(
|
|
2211
2212
|
componentNameValidationMixin
|
2212
2213
|
)(RawContainer);
|
2213
2214
|
|
2214
|
-
customElements.define(componentName$
|
2215
|
-
|
2216
|
-
// eslint-disable-next-line max-classes-per-file
|
2217
|
-
|
2218
|
-
const componentName$K = getComponentName('text');
|
2219
|
-
|
2220
|
-
class RawText extends createBaseClass({ componentName: componentName$K, baseSelector: ':host > slot' }) {
|
2221
|
-
constructor() {
|
2222
|
-
super();
|
2215
|
+
customElements.define(componentName$M, ContainerClass);
|
2223
2216
|
|
2224
|
-
|
2225
|
-
|
2226
|
-
:host {
|
2227
|
-
display: inline-block;
|
2228
|
-
}
|
2229
|
-
:host > slot {
|
2230
|
-
width: 100%;
|
2231
|
-
display: inline-block;
|
2232
|
-
}
|
2233
|
-
</style>
|
2234
|
-
<slot part="text-wrapper"></slot>
|
2235
|
-
`;
|
2236
|
-
}
|
2237
|
-
}
|
2238
|
-
|
2239
|
-
const customTextMixin = (superclass) =>
|
2240
|
-
class CustomTextMixin extends superclass {
|
2217
|
+
const hideWhenEmptyMixin = (superclass) =>
|
2218
|
+
class HideWhenEmptyMixinClass extends superclass {
|
2241
2219
|
get hideWhenEmpty() {
|
2242
2220
|
return this.getAttribute('hide-when-empty') === 'true';
|
2243
2221
|
}
|
@@ -2252,6 +2230,35 @@ const customTextMixin = (superclass) =>
|
|
2252
2230
|
}
|
2253
2231
|
};
|
2254
2232
|
|
2233
|
+
const createBaseTextClass = (componentName) => {
|
2234
|
+
class BaseText extends createBaseClass({ componentName, baseSelector: ':host > slot' }) {
|
2235
|
+
constructor() {
|
2236
|
+
super();
|
2237
|
+
|
2238
|
+
this.attachShadow({ mode: 'open' }).innerHTML = `
|
2239
|
+
<style>
|
2240
|
+
:host {
|
2241
|
+
display: inline-block;
|
2242
|
+
}
|
2243
|
+
:host > slot {
|
2244
|
+
width: 100%;
|
2245
|
+
display: inline-block;
|
2246
|
+
}
|
2247
|
+
</style>
|
2248
|
+
<slot part="text-wrapper"></slot>
|
2249
|
+
`;
|
2250
|
+
|
2251
|
+
this.textSlot = this.shadowRoot.querySelector('slot');
|
2252
|
+
}
|
2253
|
+
}
|
2254
|
+
|
2255
|
+
return BaseText;
|
2256
|
+
};
|
2257
|
+
|
2258
|
+
const componentName$L = getComponentName('text');
|
2259
|
+
|
2260
|
+
const BaseTextClass = createBaseTextClass(componentName$L);
|
2261
|
+
|
2255
2262
|
const TextClass = compose(
|
2256
2263
|
createStyleMixin({
|
2257
2264
|
mappings: {
|
@@ -2274,11 +2281,11 @@ const TextClass = compose(
|
|
2274
2281
|
}),
|
2275
2282
|
draggableMixin,
|
2276
2283
|
componentNameValidationMixin,
|
2277
|
-
|
2278
|
-
)(
|
2284
|
+
hideWhenEmptyMixin
|
2285
|
+
)(BaseTextClass);
|
2279
2286
|
|
2280
|
-
const componentName$
|
2281
|
-
class RawDivider extends createBaseClass({ componentName: componentName$
|
2287
|
+
const componentName$K = getComponentName('divider');
|
2288
|
+
class RawDivider extends createBaseClass({ componentName: componentName$K, baseSelector: ':host > div' }) {
|
2282
2289
|
constructor() {
|
2283
2290
|
super();
|
2284
2291
|
|
@@ -2377,9 +2384,9 @@ const DividerClass = compose(
|
|
2377
2384
|
componentNameValidationMixin
|
2378
2385
|
)(RawDivider);
|
2379
2386
|
|
2380
|
-
customElements.define(componentName$
|
2387
|
+
customElements.define(componentName$L, TextClass);
|
2381
2388
|
|
2382
|
-
customElements.define(componentName$
|
2389
|
+
customElements.define(componentName$K, DividerClass);
|
2383
2390
|
|
2384
2391
|
const {
|
2385
2392
|
host: host$i,
|
@@ -2457,7 +2464,7 @@ var textFieldMappings = {
|
|
2457
2464
|
],
|
2458
2465
|
};
|
2459
2466
|
|
2460
|
-
const componentName$
|
2467
|
+
const componentName$J = getComponentName('email-field');
|
2461
2468
|
|
2462
2469
|
const customMixin$8 = (superclass) =>
|
2463
2470
|
class EmailFieldMixinClass extends superclass {
|
@@ -2492,15 +2499,15 @@ const EmailFieldClass = compose(
|
|
2492
2499
|
${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
|
2493
2500
|
`,
|
2494
2501
|
excludeAttrsSync: ['tabindex'],
|
2495
|
-
componentName: componentName$
|
2502
|
+
componentName: componentName$J,
|
2496
2503
|
})
|
2497
2504
|
);
|
2498
2505
|
|
2499
|
-
customElements.define(componentName$
|
2506
|
+
customElements.define(componentName$J, EmailFieldClass);
|
2500
2507
|
|
2501
|
-
const componentName$
|
2508
|
+
const componentName$I = getComponentName('link');
|
2502
2509
|
|
2503
|
-
class RawLink extends createBaseClass({ componentName: componentName$
|
2510
|
+
class RawLink extends createBaseClass({ componentName: componentName$I, baseSelector: ':host a' }) {
|
2504
2511
|
constructor() {
|
2505
2512
|
super();
|
2506
2513
|
|
@@ -2565,7 +2572,7 @@ const LinkClass = compose(
|
|
2565
2572
|
componentNameValidationMixin
|
2566
2573
|
)(RawLink);
|
2567
2574
|
|
2568
|
-
customElements.define(componentName$
|
2575
|
+
customElements.define(componentName$I, LinkClass);
|
2569
2576
|
|
2570
2577
|
const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
|
2571
2578
|
let style;
|
@@ -2617,37 +2624,37 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
|
|
2617
2624
|
return CssVarImageClass;
|
2618
2625
|
};
|
2619
2626
|
|
2620
|
-
const componentName$
|
2627
|
+
const componentName$H = getComponentName('logo');
|
2621
2628
|
|
2622
2629
|
const LogoClass = createCssVarImageClass({
|
2623
|
-
componentName: componentName$
|
2630
|
+
componentName: componentName$H,
|
2624
2631
|
varName: 'url',
|
2625
2632
|
fallbackVarName: 'fallbackUrl',
|
2626
2633
|
});
|
2627
2634
|
|
2628
|
-
customElements.define(componentName$
|
2635
|
+
customElements.define(componentName$H, LogoClass);
|
2629
2636
|
|
2630
|
-
const componentName$
|
2637
|
+
const componentName$G = getComponentName('totp-image');
|
2631
2638
|
|
2632
2639
|
const TotpImageClass = createCssVarImageClass({
|
2633
|
-
componentName: componentName$
|
2640
|
+
componentName: componentName$G,
|
2634
2641
|
varName: 'url',
|
2635
2642
|
fallbackVarName: 'fallbackUrl',
|
2636
2643
|
});
|
2637
2644
|
|
2638
|
-
customElements.define(componentName$
|
2645
|
+
customElements.define(componentName$G, TotpImageClass);
|
2639
2646
|
|
2640
|
-
const componentName$
|
2647
|
+
const componentName$F = getComponentName('notp-image');
|
2641
2648
|
|
2642
2649
|
const NotpImageClass = createCssVarImageClass({
|
2643
|
-
componentName: componentName$
|
2650
|
+
componentName: componentName$F,
|
2644
2651
|
varName: 'url',
|
2645
2652
|
fallbackVarName: 'fallbackUrl',
|
2646
2653
|
});
|
2647
2654
|
|
2648
|
-
customElements.define(componentName$
|
2655
|
+
customElements.define(componentName$F, NotpImageClass);
|
2649
2656
|
|
2650
|
-
const componentName$
|
2657
|
+
const componentName$E = getComponentName('number-field');
|
2651
2658
|
|
2652
2659
|
const NumberFieldClass = compose(
|
2653
2660
|
createStyleMixin({
|
@@ -2673,11 +2680,11 @@ const NumberFieldClass = compose(
|
|
2673
2680
|
${resetInputOverrides('vaadin-number-field', NumberFieldClass.cssVarList)}
|
2674
2681
|
`,
|
2675
2682
|
excludeAttrsSync: ['tabindex'],
|
2676
|
-
componentName: componentName$
|
2683
|
+
componentName: componentName$E,
|
2677
2684
|
})
|
2678
2685
|
);
|
2679
2686
|
|
2680
|
-
customElements.define(componentName$
|
2687
|
+
customElements.define(componentName$E, NumberFieldClass);
|
2681
2688
|
|
2682
2689
|
const focusElement = (ele) => {
|
2683
2690
|
ele?.focus();
|
@@ -2695,13 +2702,13 @@ const getSanitizedCharacters = (str) => {
|
|
2695
2702
|
|
2696
2703
|
/* eslint-disable no-param-reassign */
|
2697
2704
|
|
2698
|
-
const componentName$
|
2705
|
+
const componentName$D = getComponentName('passcode-internal');
|
2699
2706
|
|
2700
2707
|
const observedAttributes$5 = ['digits', 'loading'];
|
2701
2708
|
|
2702
2709
|
const forwardAttributes = ['disabled', 'bordered', 'size', 'invalid', 'readonly'];
|
2703
2710
|
|
2704
|
-
const BaseInputClass$7 = createBaseInputClass({ componentName: componentName$
|
2711
|
+
const BaseInputClass$7 = createBaseInputClass({ componentName: componentName$D, baseSelector: 'div' });
|
2705
2712
|
|
2706
2713
|
class PasscodeInternal extends BaseInputClass$7 {
|
2707
2714
|
static get observedAttributes() {
|
@@ -2927,7 +2934,7 @@ class PasscodeInternal extends BaseInputClass$7 {
|
|
2927
2934
|
}
|
2928
2935
|
}
|
2929
2936
|
|
2930
|
-
const componentName$
|
2937
|
+
const componentName$C = getComponentName('text-field');
|
2931
2938
|
|
2932
2939
|
const observedAttrs = ['type'];
|
2933
2940
|
|
@@ -2977,11 +2984,11 @@ const TextFieldClass = compose(
|
|
2977
2984
|
${resetInputOverrides('vaadin-text-field', TextFieldClass.cssVarList)}
|
2978
2985
|
`,
|
2979
2986
|
excludeAttrsSync: ['tabindex'],
|
2980
|
-
componentName: componentName$
|
2987
|
+
componentName: componentName$C,
|
2981
2988
|
})
|
2982
2989
|
);
|
2983
2990
|
|
2984
|
-
const componentName$
|
2991
|
+
const componentName$B = getComponentName('passcode');
|
2985
2992
|
|
2986
2993
|
const observedAttributes$4 = ['digits'];
|
2987
2994
|
|
@@ -3000,17 +3007,17 @@ const customMixin$6 = (superclass) =>
|
|
3000
3007
|
const template = document.createElement('template');
|
3001
3008
|
|
3002
3009
|
template.innerHTML = `
|
3003
|
-
<${componentName$
|
3010
|
+
<${componentName$D}
|
3004
3011
|
bordered="true"
|
3005
3012
|
name="code"
|
3006
3013
|
tabindex="-1"
|
3007
3014
|
slot="input"
|
3008
|
-
><slot></slot></${componentName$
|
3015
|
+
><slot></slot></${componentName$D}>
|
3009
3016
|
`;
|
3010
3017
|
|
3011
3018
|
this.baseElement.appendChild(template.content.cloneNode(true));
|
3012
3019
|
|
3013
|
-
this.inputElement = this.shadowRoot.querySelector(componentName$
|
3020
|
+
this.inputElement = this.shadowRoot.querySelector(componentName$D);
|
3014
3021
|
|
3015
3022
|
forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size', 'loading'] });
|
3016
3023
|
}
|
@@ -3157,15 +3164,15 @@ const PasscodeClass = compose(
|
|
3157
3164
|
${resetInputCursor('vaadin-text-field')}
|
3158
3165
|
`,
|
3159
3166
|
excludeAttrsSync: ['tabindex'],
|
3160
|
-
componentName: componentName$
|
3167
|
+
componentName: componentName$B,
|
3161
3168
|
})
|
3162
3169
|
);
|
3163
3170
|
|
3164
|
-
customElements.define(componentName$
|
3171
|
+
customElements.define(componentName$C, TextFieldClass);
|
3165
3172
|
|
3166
|
-
customElements.define(componentName$
|
3173
|
+
customElements.define(componentName$D, PasscodeInternal);
|
3167
3174
|
|
3168
|
-
customElements.define(componentName$
|
3175
|
+
customElements.define(componentName$B, PasscodeClass);
|
3169
3176
|
|
3170
3177
|
const passwordDraggableMixin = (superclass) =>
|
3171
3178
|
class PasswordDraggableMixinClass extends superclass {
|
@@ -3201,7 +3208,7 @@ const passwordDraggableMixin = (superclass) =>
|
|
3201
3208
|
}
|
3202
3209
|
};
|
3203
3210
|
|
3204
|
-
const componentName$
|
3211
|
+
const componentName$A = getComponentName('password');
|
3205
3212
|
|
3206
3213
|
const {
|
3207
3214
|
host: host$f,
|
@@ -3330,11 +3337,146 @@ const PasswordClass = compose(
|
|
3330
3337
|
}
|
3331
3338
|
`,
|
3332
3339
|
excludeAttrsSync: ['tabindex'],
|
3333
|
-
componentName: componentName$
|
3340
|
+
componentName: componentName$A,
|
3334
3341
|
})
|
3335
3342
|
);
|
3336
3343
|
|
3337
|
-
customElements.define(componentName$
|
3344
|
+
customElements.define(componentName$A, PasswordClass);
|
3345
|
+
|
3346
|
+
const customEleMap = {
|
3347
|
+
a: 'descope-link',
|
3348
|
+
};
|
3349
|
+
|
3350
|
+
const getTokenTag = (token) => customEleMap[token.tag] || token.tag;
|
3351
|
+
|
3352
|
+
const isImageToken = (token) => token?.children?.[0].type === 'image';
|
3353
|
+
|
3354
|
+
const enrichTokens = (tokens) =>
|
3355
|
+
tokens.map((token) => {
|
3356
|
+
const tag = getTokenTag(token);
|
3357
|
+
|
3358
|
+
if (isImageToken(token)) {
|
3359
|
+
token.children[0].attrs.push(['style', 'width:100%']);
|
3360
|
+
return {
|
3361
|
+
...token,
|
3362
|
+
tag,
|
3363
|
+
};
|
3364
|
+
}
|
3365
|
+
|
3366
|
+
if (token?.children?.length > 0) {
|
3367
|
+
return {
|
3368
|
+
...token,
|
3369
|
+
tag,
|
3370
|
+
children: enrichTokens(token.children),
|
3371
|
+
};
|
3372
|
+
}
|
3373
|
+
|
3374
|
+
return {
|
3375
|
+
...token,
|
3376
|
+
tag,
|
3377
|
+
};
|
3378
|
+
});
|
3379
|
+
|
3380
|
+
const onClipboardCopy = (e) => {
|
3381
|
+
const selection = document.getSelection().toString();
|
3382
|
+
const clipdata = e.clipboardData || window.clipboardData;
|
3383
|
+
clipdata.setData('text/plain', selection);
|
3384
|
+
clipdata.setData('text/html', selection);
|
3385
|
+
e.preventDefault();
|
3386
|
+
};
|
3387
|
+
|
3388
|
+
const componentName$z = getComponentName('markdown-content');
|
3389
|
+
|
3390
|
+
const BaseMarkdownContentClass = createBaseTextClass(componentName$z);
|
3391
|
+
|
3392
|
+
const markdownContentMixin = (superclass) =>
|
3393
|
+
class MarkdownContentMixinClass extends superclass {
|
3394
|
+
static get observedAttributes() {
|
3395
|
+
return ['disabled-rules', 'line-break'];
|
3396
|
+
}
|
3397
|
+
|
3398
|
+
get lineBreak() {
|
3399
|
+
return this.getAttribute('line-break');
|
3400
|
+
}
|
3401
|
+
|
3402
|
+
get disabledRules() {
|
3403
|
+
return (this.getAttribute('disabled-rules') || '').split(',').filter(Boolean);
|
3404
|
+
}
|
3405
|
+
|
3406
|
+
init() {
|
3407
|
+
super.init();
|
3408
|
+
this.#initMarkdown();
|
3409
|
+
this.textSlot.addEventListener('slotchange', this.#parseChildren.bind(this));
|
3410
|
+
}
|
3411
|
+
|
3412
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
3413
|
+
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
3414
|
+
|
3415
|
+
if (attrName === 'disabled-rules') {
|
3416
|
+
if (newValue !== oldValue) {
|
3417
|
+
this.#initMarkdown(newValue);
|
3418
|
+
this.#parseChildren();
|
3419
|
+
}
|
3420
|
+
}
|
3421
|
+
}
|
3422
|
+
|
3423
|
+
#initMarkdown() {
|
3424
|
+
this.markdown = markdownit({ breaks: this.lineBreak }).disable(this.disabledRules);
|
3425
|
+
}
|
3426
|
+
|
3427
|
+
#parseChildren() {
|
3428
|
+
const node = this.textSlot.assignedNodes({ flatten: true })?.[0];
|
3429
|
+
|
3430
|
+
if (node && node.nodeType === Node.TEXT_NODE) {
|
3431
|
+
const tokens = this.markdown.parse(node.textContent, { references: undefined });
|
3432
|
+
const result = this.markdown.renderer.render(enrichTokens(tokens), {
|
3433
|
+
breaks: this.lineBreak,
|
3434
|
+
});
|
3435
|
+
|
3436
|
+
if (result !== node.textContent) {
|
3437
|
+
const span = document.createElement('div');
|
3438
|
+
span.classList.add('markdown-wrapper');
|
3439
|
+
// eslint-disable-next-line no-use-before-define
|
3440
|
+
span.innerHTML = `${getStyleReset()}${result}`;
|
3441
|
+
span.addEventListener('copy', onClipboardCopy);
|
3442
|
+
node.parentNode.replaceChild(span, node);
|
3443
|
+
}
|
3444
|
+
}
|
3445
|
+
}
|
3446
|
+
};
|
3447
|
+
|
3448
|
+
const MarkdownContentClass = compose(
|
3449
|
+
createStyleMixin({
|
3450
|
+
mappings: {
|
3451
|
+
hostWidth: { selector: () => ':host', property: 'width' },
|
3452
|
+
hostDirection: { selector: () => ':host', property: 'direction' },
|
3453
|
+
fontSize: {},
|
3454
|
+
fontFamily: {},
|
3455
|
+
fontWeight: {},
|
3456
|
+
textColor: { property: 'color' },
|
3457
|
+
textLineHeight: { property: 'line-height' },
|
3458
|
+
marginReset: { selector: '*', property: 'margin' },
|
3459
|
+
textAlign: {},
|
3460
|
+
},
|
3461
|
+
}),
|
3462
|
+
draggableMixin,
|
3463
|
+
componentNameValidationMixin,
|
3464
|
+
markdownContentMixin,
|
3465
|
+
hideWhenEmptyMixin
|
3466
|
+
)(BaseMarkdownContentClass);
|
3467
|
+
|
3468
|
+
function getStyleReset() {
|
3469
|
+
return `
|
3470
|
+
<style>
|
3471
|
+
.markdown-wrapper > * { margin:0 }
|
3472
|
+
.markdown-wrapper > *:not(:only-child):not(:last-child) {
|
3473
|
+
margin-bottom: var(${MarkdownContentClass.cssVarList.textLineHeight})
|
3474
|
+
}
|
3475
|
+
</style>
|
3476
|
+
`;
|
3477
|
+
}
|
3478
|
+
|
3479
|
+
customElements.define(componentName$z, MarkdownContentClass);
|
3338
3480
|
|
3339
3481
|
const componentName$y = getComponentName('text-area');
|
3340
3482
|
|
@@ -10647,33 +10789,33 @@ const globals = {
|
|
10647
10789
|
fonts,
|
10648
10790
|
direction,
|
10649
10791
|
};
|
10650
|
-
const vars$
|
10792
|
+
const vars$F = getThemeVars(globals);
|
10651
10793
|
|
10652
|
-
const globalRefs$
|
10794
|
+
const globalRefs$o = getThemeRefs(globals);
|
10653
10795
|
const compVars$5 = ButtonClass.cssVarList;
|
10654
10796
|
|
10655
10797
|
const mode = {
|
10656
|
-
primary: globalRefs$
|
10657
|
-
secondary: globalRefs$
|
10658
|
-
success: globalRefs$
|
10659
|
-
error: globalRefs$
|
10660
|
-
surface: globalRefs$
|
10798
|
+
primary: globalRefs$o.colors.primary,
|
10799
|
+
secondary: globalRefs$o.colors.secondary,
|
10800
|
+
success: globalRefs$o.colors.success,
|
10801
|
+
error: globalRefs$o.colors.error,
|
10802
|
+
surface: globalRefs$o.colors.surface,
|
10661
10803
|
};
|
10662
10804
|
|
10663
|
-
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$
|
10805
|
+
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$S);
|
10664
10806
|
|
10665
10807
|
const button = {
|
10666
10808
|
...helperTheme$3,
|
10667
10809
|
|
10668
|
-
[compVars$5.fontFamily]: globalRefs$
|
10810
|
+
[compVars$5.fontFamily]: globalRefs$o.fonts.font1.family,
|
10669
10811
|
|
10670
10812
|
[compVars$5.cursor]: 'pointer',
|
10671
10813
|
[compVars$5.hostHeight]: '3em',
|
10672
10814
|
[compVars$5.hostWidth]: 'auto',
|
10673
|
-
[compVars$5.hostDirection]: globalRefs$
|
10815
|
+
[compVars$5.hostDirection]: globalRefs$o.direction,
|
10674
10816
|
|
10675
|
-
[compVars$5.borderRadius]: globalRefs$
|
10676
|
-
[compVars$5.borderWidth]: globalRefs$
|
10817
|
+
[compVars$5.borderRadius]: globalRefs$o.radius.sm,
|
10818
|
+
[compVars$5.borderWidth]: globalRefs$o.border.xs,
|
10677
10819
|
[compVars$5.borderStyle]: 'solid',
|
10678
10820
|
[compVars$5.borderColor]: 'transparent',
|
10679
10821
|
|
@@ -10716,10 +10858,10 @@ const button = {
|
|
10716
10858
|
},
|
10717
10859
|
|
10718
10860
|
_disabled: {
|
10719
|
-
[helperVars$3.main]: globalRefs$
|
10720
|
-
[helperVars$3.dark]: globalRefs$
|
10721
|
-
[helperVars$3.light]: globalRefs$
|
10722
|
-
[helperVars$3.contrast]: globalRefs$
|
10861
|
+
[helperVars$3.main]: globalRefs$o.colors.surface.light,
|
10862
|
+
[helperVars$3.dark]: globalRefs$o.colors.surface.dark,
|
10863
|
+
[helperVars$3.light]: globalRefs$o.colors.surface.light,
|
10864
|
+
[helperVars$3.contrast]: globalRefs$o.colors.surface.main,
|
10723
10865
|
},
|
10724
10866
|
|
10725
10867
|
variant: {
|
@@ -10767,7 +10909,7 @@ const button = {
|
|
10767
10909
|
},
|
10768
10910
|
};
|
10769
10911
|
|
10770
|
-
const vars$
|
10912
|
+
const vars$E = {
|
10771
10913
|
...compVars$5,
|
10772
10914
|
...helperVars$3,
|
10773
10915
|
};
|
@@ -10775,28 +10917,28 @@ const vars$D = {
|
|
10775
10917
|
var button$1 = /*#__PURE__*/Object.freeze({
|
10776
10918
|
__proto__: null,
|
10777
10919
|
default: button,
|
10778
|
-
vars: vars$
|
10920
|
+
vars: vars$E
|
10779
10921
|
});
|
10780
10922
|
|
10781
10923
|
const componentName = getComponentName('input-wrapper');
|
10782
|
-
const globalRefs$
|
10924
|
+
const globalRefs$n = getThemeRefs(globals);
|
10783
10925
|
|
10784
|
-
const [theme$1, refs, vars$
|
10926
|
+
const [theme$1, refs, vars$D] = createHelperVars(
|
10785
10927
|
{
|
10786
|
-
labelTextColor: globalRefs$
|
10928
|
+
labelTextColor: globalRefs$n.colors.surface.dark,
|
10787
10929
|
labelFontSize: '14px', // not taken from globals as it is fixed in all inputs
|
10788
|
-
valueTextColor: globalRefs$
|
10789
|
-
placeholderTextColor: globalRefs$
|
10930
|
+
valueTextColor: globalRefs$n.colors.surface.contrast,
|
10931
|
+
placeholderTextColor: globalRefs$n.colors.surface.dark,
|
10790
10932
|
requiredIndicator: "'*'",
|
10791
|
-
helperTextColor: globalRefs$
|
10792
|
-
errorMessageTextColor: globalRefs$
|
10793
|
-
successMessageTextColor: globalRefs$
|
10933
|
+
helperTextColor: globalRefs$n.colors.surface.dark,
|
10934
|
+
errorMessageTextColor: globalRefs$n.colors.error.main,
|
10935
|
+
successMessageTextColor: globalRefs$n.colors.success.main,
|
10794
10936
|
|
10795
|
-
borderWidth: globalRefs$
|
10796
|
-
borderRadius: globalRefs$
|
10937
|
+
borderWidth: globalRefs$n.border.xs,
|
10938
|
+
borderRadius: globalRefs$n.radius.xs,
|
10797
10939
|
borderColor: 'transparent',
|
10798
10940
|
|
10799
|
-
outlineWidth: globalRefs$
|
10941
|
+
outlineWidth: globalRefs$n.border.sm,
|
10800
10942
|
outlineStyle: 'solid',
|
10801
10943
|
outlineColor: 'transparent',
|
10802
10944
|
outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
|
@@ -10807,11 +10949,11 @@ const [theme$1, refs, vars$C] = createHelperVars(
|
|
10807
10949
|
horizontalPadding: '0.5em',
|
10808
10950
|
verticalPadding: '0.5em',
|
10809
10951
|
|
10810
|
-
backgroundColor: globalRefs$
|
10952
|
+
backgroundColor: globalRefs$n.colors.surface.main,
|
10811
10953
|
|
10812
|
-
fontFamily: globalRefs$
|
10954
|
+
fontFamily: globalRefs$n.fonts.font1.family,
|
10813
10955
|
|
10814
|
-
direction: globalRefs$
|
10956
|
+
direction: globalRefs$n.direction,
|
10815
10957
|
|
10816
10958
|
overlayOpacity: '0.3',
|
10817
10959
|
|
@@ -10827,28 +10969,28 @@ const [theme$1, refs, vars$C] = createHelperVars(
|
|
10827
10969
|
},
|
10828
10970
|
|
10829
10971
|
_focused: {
|
10830
|
-
outlineColor: globalRefs$
|
10972
|
+
outlineColor: globalRefs$n.colors.surface.light,
|
10831
10973
|
_invalid: {
|
10832
|
-
outlineColor: globalRefs$
|
10974
|
+
outlineColor: globalRefs$n.colors.error.main,
|
10833
10975
|
},
|
10834
10976
|
},
|
10835
10977
|
|
10836
10978
|
_bordered: {
|
10837
|
-
outlineWidth: globalRefs$
|
10838
|
-
borderColor: globalRefs$
|
10979
|
+
outlineWidth: globalRefs$n.border.xs,
|
10980
|
+
borderColor: globalRefs$n.colors.surface.light,
|
10839
10981
|
borderStyle: 'solid',
|
10840
10982
|
_invalid: {
|
10841
|
-
borderColor: globalRefs$
|
10983
|
+
borderColor: globalRefs$n.colors.error.main,
|
10842
10984
|
},
|
10843
10985
|
},
|
10844
10986
|
|
10845
10987
|
_disabled: {
|
10846
|
-
labelTextColor: globalRefs$
|
10847
|
-
borderColor: globalRefs$
|
10848
|
-
valueTextColor: globalRefs$
|
10849
|
-
placeholderTextColor: globalRefs$
|
10850
|
-
helperTextColor: globalRefs$
|
10851
|
-
backgroundColor: globalRefs$
|
10988
|
+
labelTextColor: globalRefs$n.colors.surface.light,
|
10989
|
+
borderColor: globalRefs$n.colors.surface.light,
|
10990
|
+
valueTextColor: globalRefs$n.colors.surface.light,
|
10991
|
+
placeholderTextColor: globalRefs$n.colors.surface.light,
|
10992
|
+
helperTextColor: globalRefs$n.colors.surface.light,
|
10993
|
+
backgroundColor: globalRefs$n.colors.surface.main,
|
10852
10994
|
},
|
10853
10995
|
},
|
10854
10996
|
componentName
|
@@ -10858,22 +11000,64 @@ var inputWrapper = /*#__PURE__*/Object.freeze({
|
|
10858
11000
|
__proto__: null,
|
10859
11001
|
default: theme$1,
|
10860
11002
|
refs: refs,
|
10861
|
-
vars: vars$
|
11003
|
+
vars: vars$D
|
10862
11004
|
});
|
10863
11005
|
|
10864
|
-
const vars$
|
11006
|
+
const vars$C = TextFieldClass.cssVarList;
|
10865
11007
|
|
10866
11008
|
const textField = {
|
11009
|
+
[vars$C.hostWidth]: refs.width,
|
11010
|
+
[vars$C.hostMinWidth]: refs.minWidth,
|
11011
|
+
[vars$C.hostDirection]: refs.direction,
|
11012
|
+
[vars$C.fontSize]: refs.fontSize,
|
11013
|
+
[vars$C.fontFamily]: refs.fontFamily,
|
11014
|
+
[vars$C.labelTextColor]: refs.labelTextColor,
|
11015
|
+
[vars$C.labelRequiredIndicator]: refs.requiredIndicator,
|
11016
|
+
[vars$C.errorMessageTextColor]: refs.errorMessageTextColor,
|
11017
|
+
[vars$C.inputValueTextColor]: refs.valueTextColor,
|
11018
|
+
[vars$C.inputPlaceholderColor]: refs.placeholderTextColor,
|
11019
|
+
[vars$C.inputBorderWidth]: refs.borderWidth,
|
11020
|
+
[vars$C.inputBorderStyle]: refs.borderStyle,
|
11021
|
+
[vars$C.inputBorderColor]: refs.borderColor,
|
11022
|
+
[vars$C.inputBorderRadius]: refs.borderRadius,
|
11023
|
+
[vars$C.inputOutlineWidth]: refs.outlineWidth,
|
11024
|
+
[vars$C.inputOutlineStyle]: refs.outlineStyle,
|
11025
|
+
[vars$C.inputOutlineColor]: refs.outlineColor,
|
11026
|
+
[vars$C.inputOutlineOffset]: refs.outlineOffset,
|
11027
|
+
[vars$C.inputBackgroundColor]: refs.backgroundColor,
|
11028
|
+
[vars$C.inputHeight]: refs.inputHeight,
|
11029
|
+
[vars$C.inputHorizontalPadding]: refs.horizontalPadding,
|
11030
|
+
[vars$C.helperTextColor]: refs.helperTextColor,
|
11031
|
+
textAlign: {
|
11032
|
+
right: { [vars$C.inputTextAlign]: 'right' },
|
11033
|
+
left: { [vars$C.inputTextAlign]: 'left' },
|
11034
|
+
center: { [vars$C.inputTextAlign]: 'center' },
|
11035
|
+
},
|
11036
|
+
};
|
11037
|
+
|
11038
|
+
var textField$1 = /*#__PURE__*/Object.freeze({
|
11039
|
+
__proto__: null,
|
11040
|
+
default: textField,
|
11041
|
+
textField: textField,
|
11042
|
+
vars: vars$C
|
11043
|
+
});
|
11044
|
+
|
11045
|
+
const globalRefs$m = getThemeRefs(globals);
|
11046
|
+
const vars$B = PasswordClass.cssVarList;
|
11047
|
+
|
11048
|
+
const password = {
|
10867
11049
|
[vars$B.hostWidth]: refs.width,
|
10868
|
-
[vars$B.hostMinWidth]: refs.minWidth,
|
10869
11050
|
[vars$B.hostDirection]: refs.direction,
|
10870
11051
|
[vars$B.fontSize]: refs.fontSize,
|
10871
11052
|
[vars$B.fontFamily]: refs.fontFamily,
|
10872
11053
|
[vars$B.labelTextColor]: refs.labelTextColor,
|
10873
|
-
[vars$B.labelRequiredIndicator]: refs.requiredIndicator,
|
10874
11054
|
[vars$B.errorMessageTextColor]: refs.errorMessageTextColor,
|
11055
|
+
[vars$B.inputHorizontalPadding]: refs.horizontalPadding,
|
11056
|
+
[vars$B.inputHeight]: refs.inputHeight,
|
11057
|
+
[vars$B.inputBackgroundColor]: refs.backgroundColor,
|
11058
|
+
[vars$B.labelRequiredIndicator]: refs.requiredIndicator,
|
10875
11059
|
[vars$B.inputValueTextColor]: refs.valueTextColor,
|
10876
|
-
[vars$B.
|
11060
|
+
[vars$B.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
10877
11061
|
[vars$B.inputBorderWidth]: refs.borderWidth,
|
10878
11062
|
[vars$B.inputBorderStyle]: refs.borderStyle,
|
10879
11063
|
[vars$B.inputBorderColor]: refs.borderColor,
|
@@ -10882,40 +11066,29 @@ const textField = {
|
|
10882
11066
|
[vars$B.inputOutlineStyle]: refs.outlineStyle,
|
10883
11067
|
[vars$B.inputOutlineColor]: refs.outlineColor,
|
10884
11068
|
[vars$B.inputOutlineOffset]: refs.outlineOffset,
|
10885
|
-
[vars$B.
|
10886
|
-
[vars$B.
|
10887
|
-
[vars$B.
|
10888
|
-
[vars$B.helperTextColor]: refs.helperTextColor,
|
10889
|
-
textAlign: {
|
10890
|
-
right: { [vars$B.inputTextAlign]: 'right' },
|
10891
|
-
left: { [vars$B.inputTextAlign]: 'left' },
|
10892
|
-
center: { [vars$B.inputTextAlign]: 'center' },
|
10893
|
-
},
|
11069
|
+
[vars$B.revealButtonOffset]: globalRefs$m.spacing.md,
|
11070
|
+
[vars$B.revealButtonSize]: refs.toggleButtonSize,
|
11071
|
+
[vars$B.revealButtonColor]: refs.placeholderTextColor,
|
10894
11072
|
};
|
10895
11073
|
|
10896
|
-
var
|
11074
|
+
var password$1 = /*#__PURE__*/Object.freeze({
|
10897
11075
|
__proto__: null,
|
10898
|
-
default:
|
10899
|
-
textField: textField,
|
11076
|
+
default: password,
|
10900
11077
|
vars: vars$B
|
10901
11078
|
});
|
10902
11079
|
|
10903
|
-
const
|
10904
|
-
const vars$A = PasswordClass.cssVarList;
|
11080
|
+
const vars$A = NumberFieldClass.cssVarList;
|
10905
11081
|
|
10906
|
-
const
|
11082
|
+
const numberField = {
|
10907
11083
|
[vars$A.hostWidth]: refs.width,
|
11084
|
+
[vars$A.hostMinWidth]: refs.minWidth,
|
10908
11085
|
[vars$A.hostDirection]: refs.direction,
|
10909
11086
|
[vars$A.fontSize]: refs.fontSize,
|
10910
11087
|
[vars$A.fontFamily]: refs.fontFamily,
|
10911
11088
|
[vars$A.labelTextColor]: refs.labelTextColor,
|
10912
11089
|
[vars$A.errorMessageTextColor]: refs.errorMessageTextColor,
|
10913
|
-
[vars$A.inputHorizontalPadding]: refs.horizontalPadding,
|
10914
|
-
[vars$A.inputHeight]: refs.inputHeight,
|
10915
|
-
[vars$A.inputBackgroundColor]: refs.backgroundColor,
|
10916
|
-
[vars$A.labelRequiredIndicator]: refs.requiredIndicator,
|
10917
11090
|
[vars$A.inputValueTextColor]: refs.valueTextColor,
|
10918
|
-
[vars$A.
|
11091
|
+
[vars$A.inputPlaceholderColor]: refs.placeholderTextColor,
|
10919
11092
|
[vars$A.inputBorderWidth]: refs.borderWidth,
|
10920
11093
|
[vars$A.inputBorderStyle]: refs.borderStyle,
|
10921
11094
|
[vars$A.inputBorderColor]: refs.borderColor,
|
@@ -10924,20 +11097,21 @@ const password = {
|
|
10924
11097
|
[vars$A.inputOutlineStyle]: refs.outlineStyle,
|
10925
11098
|
[vars$A.inputOutlineColor]: refs.outlineColor,
|
10926
11099
|
[vars$A.inputOutlineOffset]: refs.outlineOffset,
|
10927
|
-
[vars$A.
|
10928
|
-
[vars$A.
|
10929
|
-
[vars$A.
|
11100
|
+
[vars$A.inputBackgroundColor]: refs.backgroundColor,
|
11101
|
+
[vars$A.labelRequiredIndicator]: refs.requiredIndicator,
|
11102
|
+
[vars$A.inputHorizontalPadding]: refs.horizontalPadding,
|
11103
|
+
[vars$A.inputHeight]: refs.inputHeight,
|
10930
11104
|
};
|
10931
11105
|
|
10932
|
-
var
|
11106
|
+
var numberField$1 = /*#__PURE__*/Object.freeze({
|
10933
11107
|
__proto__: null,
|
10934
|
-
default:
|
11108
|
+
default: numberField,
|
10935
11109
|
vars: vars$A
|
10936
11110
|
});
|
10937
11111
|
|
10938
|
-
const vars$z =
|
11112
|
+
const vars$z = EmailFieldClass.cssVarList;
|
10939
11113
|
|
10940
|
-
const
|
11114
|
+
const emailField = {
|
10941
11115
|
[vars$z.hostWidth]: refs.width,
|
10942
11116
|
[vars$z.hostMinWidth]: refs.minWidth,
|
10943
11117
|
[vars$z.hostDirection]: refs.direction,
|
@@ -10946,6 +11120,7 @@ const numberField = {
|
|
10946
11120
|
[vars$z.labelTextColor]: refs.labelTextColor,
|
10947
11121
|
[vars$z.errorMessageTextColor]: refs.errorMessageTextColor,
|
10948
11122
|
[vars$z.inputValueTextColor]: refs.valueTextColor,
|
11123
|
+
[vars$z.labelRequiredIndicator]: refs.requiredIndicator,
|
10949
11124
|
[vars$z.inputPlaceholderColor]: refs.placeholderTextColor,
|
10950
11125
|
[vars$z.inputBorderWidth]: refs.borderWidth,
|
10951
11126
|
[vars$z.inputBorderStyle]: refs.borderStyle,
|
@@ -10956,200 +11131,167 @@ const numberField = {
|
|
10956
11131
|
[vars$z.inputOutlineColor]: refs.outlineColor,
|
10957
11132
|
[vars$z.inputOutlineOffset]: refs.outlineOffset,
|
10958
11133
|
[vars$z.inputBackgroundColor]: refs.backgroundColor,
|
10959
|
-
[vars$z.labelRequiredIndicator]: refs.requiredIndicator,
|
10960
11134
|
[vars$z.inputHorizontalPadding]: refs.horizontalPadding,
|
10961
11135
|
[vars$z.inputHeight]: refs.inputHeight,
|
10962
11136
|
};
|
10963
11137
|
|
10964
|
-
var
|
11138
|
+
var emailField$1 = /*#__PURE__*/Object.freeze({
|
10965
11139
|
__proto__: null,
|
10966
|
-
default:
|
11140
|
+
default: emailField,
|
10967
11141
|
vars: vars$z
|
10968
11142
|
});
|
10969
11143
|
|
10970
|
-
const vars$y =
|
11144
|
+
const vars$y = TextAreaClass.cssVarList;
|
10971
11145
|
|
10972
|
-
const
|
11146
|
+
const textArea = {
|
10973
11147
|
[vars$y.hostWidth]: refs.width,
|
10974
11148
|
[vars$y.hostMinWidth]: refs.minWidth,
|
10975
11149
|
[vars$y.hostDirection]: refs.direction,
|
10976
11150
|
[vars$y.fontSize]: refs.fontSize,
|
10977
11151
|
[vars$y.fontFamily]: refs.fontFamily,
|
10978
11152
|
[vars$y.labelTextColor]: refs.labelTextColor,
|
11153
|
+
[vars$y.labelRequiredIndicator]: refs.requiredIndicator,
|
10979
11154
|
[vars$y.errorMessageTextColor]: refs.errorMessageTextColor,
|
11155
|
+
[vars$y.inputBackgroundColor]: refs.backgroundColor,
|
10980
11156
|
[vars$y.inputValueTextColor]: refs.valueTextColor,
|
10981
|
-
[vars$y.
|
10982
|
-
[vars$y.
|
11157
|
+
[vars$y.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
11158
|
+
[vars$y.inputBorderRadius]: refs.borderRadius,
|
10983
11159
|
[vars$y.inputBorderWidth]: refs.borderWidth,
|
10984
11160
|
[vars$y.inputBorderStyle]: refs.borderStyle,
|
10985
11161
|
[vars$y.inputBorderColor]: refs.borderColor,
|
10986
|
-
[vars$y.inputBorderRadius]: refs.borderRadius,
|
10987
11162
|
[vars$y.inputOutlineWidth]: refs.outlineWidth,
|
10988
11163
|
[vars$y.inputOutlineStyle]: refs.outlineStyle,
|
10989
11164
|
[vars$y.inputOutlineColor]: refs.outlineColor,
|
10990
11165
|
[vars$y.inputOutlineOffset]: refs.outlineOffset,
|
10991
|
-
[vars$y.
|
10992
|
-
[vars$y.
|
10993
|
-
|
11166
|
+
[vars$y.inputResizeType]: 'vertical',
|
11167
|
+
[vars$y.inputMinHeight]: '5em',
|
11168
|
+
textAlign: {
|
11169
|
+
right: { [vars$y.inputTextAlign]: 'right' },
|
11170
|
+
left: { [vars$y.inputTextAlign]: 'left' },
|
11171
|
+
center: { [vars$y.inputTextAlign]: 'center' },
|
11172
|
+
},
|
11173
|
+
|
11174
|
+
_readonly: {
|
11175
|
+
[vars$y.inputResizeType]: 'none',
|
11176
|
+
},
|
10994
11177
|
};
|
10995
11178
|
|
10996
|
-
var
|
11179
|
+
var textArea$1 = /*#__PURE__*/Object.freeze({
|
10997
11180
|
__proto__: null,
|
10998
|
-
default:
|
11181
|
+
default: textArea,
|
10999
11182
|
vars: vars$y
|
11000
11183
|
});
|
11001
11184
|
|
11002
|
-
const vars$x =
|
11185
|
+
const vars$x = CheckboxClass.cssVarList;
|
11186
|
+
const checkboxSize = '1.35em';
|
11003
11187
|
|
11004
|
-
const
|
11188
|
+
const checkbox = {
|
11005
11189
|
[vars$x.hostWidth]: refs.width,
|
11006
|
-
[vars$x.hostMinWidth]: refs.minWidth,
|
11007
11190
|
[vars$x.hostDirection]: refs.direction,
|
11008
11191
|
[vars$x.fontSize]: refs.fontSize,
|
11009
11192
|
[vars$x.fontFamily]: refs.fontFamily,
|
11010
11193
|
[vars$x.labelTextColor]: refs.labelTextColor,
|
11011
11194
|
[vars$x.labelRequiredIndicator]: refs.requiredIndicator,
|
11195
|
+
[vars$x.labelFontWeight]: '400',
|
11196
|
+
[vars$x.labelLineHeight]: checkboxSize,
|
11197
|
+
[vars$x.labelSpacing]: '1em',
|
11012
11198
|
[vars$x.errorMessageTextColor]: refs.errorMessageTextColor,
|
11013
|
-
[vars$x.
|
11014
|
-
[vars$x.
|
11015
|
-
[vars$x.
|
11199
|
+
[vars$x.inputOutlineWidth]: refs.outlineWidth,
|
11200
|
+
[vars$x.inputOutlineOffset]: refs.outlineOffset,
|
11201
|
+
[vars$x.inputOutlineColor]: refs.outlineColor,
|
11202
|
+
[vars$x.inputOutlineStyle]: refs.outlineStyle,
|
11016
11203
|
[vars$x.inputBorderRadius]: refs.borderRadius,
|
11204
|
+
[vars$x.inputBorderColor]: refs.borderColor,
|
11017
11205
|
[vars$x.inputBorderWidth]: refs.borderWidth,
|
11018
11206
|
[vars$x.inputBorderStyle]: refs.borderStyle,
|
11019
|
-
[vars$x.
|
11020
|
-
[vars$x.
|
11021
|
-
|
11022
|
-
|
11023
|
-
|
11024
|
-
[vars$x.inputResizeType]: 'vertical',
|
11025
|
-
[vars$x.inputMinHeight]: '5em',
|
11026
|
-
textAlign: {
|
11027
|
-
right: { [vars$x.inputTextAlign]: 'right' },
|
11028
|
-
left: { [vars$x.inputTextAlign]: 'left' },
|
11029
|
-
center: { [vars$x.inputTextAlign]: 'center' },
|
11207
|
+
[vars$x.inputBackgroundColor]: refs.backgroundColor,
|
11208
|
+
[vars$x.inputSize]: checkboxSize,
|
11209
|
+
|
11210
|
+
_checked: {
|
11211
|
+
[vars$x.inputValueTextColor]: refs.valueTextColor,
|
11030
11212
|
},
|
11031
11213
|
|
11032
|
-
|
11033
|
-
[vars$x.
|
11214
|
+
_disabled: {
|
11215
|
+
[vars$x.labelTextColor]: refs.labelTextColor,
|
11034
11216
|
},
|
11035
11217
|
};
|
11036
11218
|
|
11037
|
-
var
|
11219
|
+
var checkbox$1 = /*#__PURE__*/Object.freeze({
|
11038
11220
|
__proto__: null,
|
11039
|
-
default:
|
11221
|
+
default: checkbox,
|
11040
11222
|
vars: vars$x
|
11041
11223
|
});
|
11042
11224
|
|
11043
|
-
const
|
11044
|
-
const
|
11225
|
+
const knobMargin = '2px';
|
11226
|
+
const checkboxHeight = '1.25em';
|
11045
11227
|
|
11046
|
-
const
|
11228
|
+
const globalRefs$l = getThemeRefs(globals);
|
11229
|
+
const vars$w = SwitchToggleClass.cssVarList;
|
11230
|
+
|
11231
|
+
const switchToggle = {
|
11047
11232
|
[vars$w.hostWidth]: refs.width,
|
11048
11233
|
[vars$w.hostDirection]: refs.direction,
|
11049
11234
|
[vars$w.fontSize]: refs.fontSize,
|
11050
11235
|
[vars$w.fontFamily]: refs.fontFamily,
|
11051
|
-
|
11052
|
-
[vars$w.labelRequiredIndicator]: refs.requiredIndicator,
|
11053
|
-
[vars$w.labelFontWeight]: '400',
|
11054
|
-
[vars$w.labelLineHeight]: checkboxSize,
|
11055
|
-
[vars$w.labelSpacing]: '1em',
|
11056
|
-
[vars$w.errorMessageTextColor]: refs.errorMessageTextColor,
|
11236
|
+
|
11057
11237
|
[vars$w.inputOutlineWidth]: refs.outlineWidth,
|
11058
11238
|
[vars$w.inputOutlineOffset]: refs.outlineOffset,
|
11059
11239
|
[vars$w.inputOutlineColor]: refs.outlineColor,
|
11060
11240
|
[vars$w.inputOutlineStyle]: refs.outlineStyle,
|
11061
|
-
[vars$w.inputBorderRadius]: refs.borderRadius,
|
11062
|
-
[vars$w.inputBorderColor]: refs.borderColor,
|
11063
|
-
[vars$w.inputBorderWidth]: refs.borderWidth,
|
11064
|
-
[vars$w.inputBorderStyle]: refs.borderStyle,
|
11065
|
-
[vars$w.inputBackgroundColor]: refs.backgroundColor,
|
11066
|
-
[vars$w.inputSize]: checkboxSize,
|
11067
11241
|
|
11068
|
-
|
11069
|
-
|
11070
|
-
|
11071
|
-
|
11072
|
-
|
11073
|
-
|
11074
|
-
|
11075
|
-
|
11242
|
+
[vars$w.trackBorderStyle]: refs.borderStyle,
|
11243
|
+
[vars$w.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
11244
|
+
[vars$w.trackBorderColor]: refs.borderColor,
|
11245
|
+
[vars$w.trackBackgroundColor]: refs.backgroundColor,
|
11246
|
+
[vars$w.trackBorderRadius]: globalRefs$l.radius.md,
|
11247
|
+
[vars$w.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
11248
|
+
[vars$w.trackHeight]: checkboxHeight,
|
11249
|
+
|
11250
|
+
[vars$w.knobSize]: `calc(1em - ${knobMargin})`,
|
11251
|
+
[vars$w.knobRadius]: '50%',
|
11252
|
+
[vars$w.knobTopOffset]: '1px',
|
11253
|
+
[vars$w.knobLeftOffset]: knobMargin,
|
11254
|
+
[vars$w.knobColor]: refs.labelTextColor,
|
11255
|
+
[vars$w.knobTransitionDuration]: '0.3s',
|
11076
11256
|
|
11077
|
-
|
11078
|
-
|
11079
|
-
|
11080
|
-
vars:
|
11081
|
-
|
11082
|
-
|
11083
|
-
const knobMargin = '2px';
|
11084
|
-
const checkboxHeight = '1.25em';
|
11085
|
-
|
11086
|
-
const globalRefs$k = getThemeRefs(globals);
|
11087
|
-
const vars$v = SwitchToggleClass.cssVarList;
|
11088
|
-
|
11089
|
-
const switchToggle = {
|
11090
|
-
[vars$v.hostWidth]: refs.width,
|
11091
|
-
[vars$v.hostDirection]: refs.direction,
|
11092
|
-
[vars$v.fontSize]: refs.fontSize,
|
11093
|
-
[vars$v.fontFamily]: refs.fontFamily,
|
11094
|
-
|
11095
|
-
[vars$v.inputOutlineWidth]: refs.outlineWidth,
|
11096
|
-
[vars$v.inputOutlineOffset]: refs.outlineOffset,
|
11097
|
-
[vars$v.inputOutlineColor]: refs.outlineColor,
|
11098
|
-
[vars$v.inputOutlineStyle]: refs.outlineStyle,
|
11099
|
-
|
11100
|
-
[vars$v.trackBorderStyle]: refs.borderStyle,
|
11101
|
-
[vars$v.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
11102
|
-
[vars$v.trackBorderColor]: refs.borderColor,
|
11103
|
-
[vars$v.trackBackgroundColor]: refs.backgroundColor,
|
11104
|
-
[vars$v.trackBorderRadius]: globalRefs$k.radius.md,
|
11105
|
-
[vars$v.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
11106
|
-
[vars$v.trackHeight]: checkboxHeight,
|
11107
|
-
|
11108
|
-
[vars$v.knobSize]: `calc(1em - ${knobMargin})`,
|
11109
|
-
[vars$v.knobRadius]: '50%',
|
11110
|
-
[vars$v.knobTopOffset]: '1px',
|
11111
|
-
[vars$v.knobLeftOffset]: knobMargin,
|
11112
|
-
[vars$v.knobColor]: refs.labelTextColor,
|
11113
|
-
[vars$v.knobTransitionDuration]: '0.3s',
|
11114
|
-
|
11115
|
-
[vars$v.labelTextColor]: refs.labelTextColor,
|
11116
|
-
[vars$v.labelFontWeight]: '400',
|
11117
|
-
[vars$v.labelLineHeight]: '1.35em',
|
11118
|
-
[vars$v.labelSpacing]: '1em',
|
11119
|
-
[vars$v.labelRequiredIndicator]: refs.requiredIndicator,
|
11120
|
-
[vars$v.errorMessageTextColor]: refs.errorMessageTextColor,
|
11257
|
+
[vars$w.labelTextColor]: refs.labelTextColor,
|
11258
|
+
[vars$w.labelFontWeight]: '400',
|
11259
|
+
[vars$w.labelLineHeight]: '1.35em',
|
11260
|
+
[vars$w.labelSpacing]: '1em',
|
11261
|
+
[vars$w.labelRequiredIndicator]: refs.requiredIndicator,
|
11262
|
+
[vars$w.errorMessageTextColor]: refs.errorMessageTextColor,
|
11121
11263
|
|
11122
11264
|
_checked: {
|
11123
|
-
[vars$
|
11124
|
-
[vars$
|
11125
|
-
[vars$
|
11126
|
-
[vars$
|
11265
|
+
[vars$w.trackBorderColor]: refs.borderColor,
|
11266
|
+
[vars$w.knobLeftOffset]: `calc(100% - var(${vars$w.knobSize}) - ${knobMargin})`,
|
11267
|
+
[vars$w.knobColor]: refs.valueTextColor,
|
11268
|
+
[vars$w.knobTextColor]: refs.valueTextColor,
|
11127
11269
|
},
|
11128
11270
|
|
11129
11271
|
_disabled: {
|
11130
|
-
[vars$
|
11131
|
-
[vars$
|
11132
|
-
[vars$
|
11133
|
-
[vars$
|
11272
|
+
[vars$w.knobColor]: globalRefs$l.colors.surface.light,
|
11273
|
+
[vars$w.trackBorderColor]: globalRefs$l.colors.surface.light,
|
11274
|
+
[vars$w.trackBackgroundColor]: globalRefs$l.colors.surface.main,
|
11275
|
+
[vars$w.labelTextColor]: refs.labelTextColor,
|
11134
11276
|
_checked: {
|
11135
|
-
[vars$
|
11136
|
-
[vars$
|
11277
|
+
[vars$w.knobColor]: globalRefs$l.colors.surface.light,
|
11278
|
+
[vars$w.trackBackgroundColor]: globalRefs$l.colors.surface.main,
|
11137
11279
|
},
|
11138
11280
|
},
|
11139
11281
|
|
11140
11282
|
_invalid: {
|
11141
|
-
[vars$
|
11142
|
-
[vars$
|
11283
|
+
[vars$w.trackBorderColor]: globalRefs$l.colors.error.main,
|
11284
|
+
[vars$w.knobColor]: globalRefs$l.colors.error.main,
|
11143
11285
|
},
|
11144
11286
|
};
|
11145
11287
|
|
11146
11288
|
var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
11147
11289
|
__proto__: null,
|
11148
11290
|
default: switchToggle,
|
11149
|
-
vars: vars$
|
11291
|
+
vars: vars$w
|
11150
11292
|
});
|
11151
11293
|
|
11152
|
-
const globalRefs$
|
11294
|
+
const globalRefs$k = getThemeRefs(globals);
|
11153
11295
|
|
11154
11296
|
const compVars$4 = ContainerClass.cssVarList;
|
11155
11297
|
|
@@ -11171,7 +11313,7 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
|
|
11171
11313
|
horizontalAlignment,
|
11172
11314
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
11173
11315
|
},
|
11174
|
-
componentName$
|
11316
|
+
componentName$M
|
11175
11317
|
);
|
11176
11318
|
|
11177
11319
|
const { shadowColor: shadowColor$1 } = helperRefs$2;
|
@@ -11181,10 +11323,10 @@ const container = {
|
|
11181
11323
|
|
11182
11324
|
[compVars$4.hostWidth]: '100%',
|
11183
11325
|
[compVars$4.boxShadow]: 'none',
|
11184
|
-
[compVars$4.backgroundColor]: globalRefs$
|
11185
|
-
[compVars$4.color]: globalRefs$
|
11326
|
+
[compVars$4.backgroundColor]: globalRefs$k.colors.surface.main,
|
11327
|
+
[compVars$4.color]: globalRefs$k.colors.surface.contrast,
|
11186
11328
|
[compVars$4.borderRadius]: '0px',
|
11187
|
-
[compVars$4.hostDirection]: globalRefs$
|
11329
|
+
[compVars$4.hostDirection]: globalRefs$k.direction,
|
11188
11330
|
|
11189
11331
|
verticalPadding: {
|
11190
11332
|
sm: { [compVars$4.verticalPadding]: '5px' },
|
@@ -11230,34 +11372,34 @@ const container = {
|
|
11230
11372
|
|
11231
11373
|
shadow: {
|
11232
11374
|
sm: {
|
11233
|
-
[compVars$4.boxShadow]: `${globalRefs$
|
11375
|
+
[compVars$4.boxShadow]: `${globalRefs$k.shadow.wide.sm} ${shadowColor$1}, ${globalRefs$k.shadow.narrow.sm} ${shadowColor$1}`,
|
11234
11376
|
},
|
11235
11377
|
md: {
|
11236
|
-
[compVars$4.boxShadow]: `${globalRefs$
|
11378
|
+
[compVars$4.boxShadow]: `${globalRefs$k.shadow.wide.md} ${shadowColor$1}, ${globalRefs$k.shadow.narrow.md} ${shadowColor$1}`,
|
11237
11379
|
},
|
11238
11380
|
lg: {
|
11239
|
-
[compVars$4.boxShadow]: `${globalRefs$
|
11381
|
+
[compVars$4.boxShadow]: `${globalRefs$k.shadow.wide.lg} ${shadowColor$1}, ${globalRefs$k.shadow.narrow.lg} ${shadowColor$1}`,
|
11240
11382
|
},
|
11241
11383
|
xl: {
|
11242
|
-
[compVars$4.boxShadow]: `${globalRefs$
|
11384
|
+
[compVars$4.boxShadow]: `${globalRefs$k.shadow.wide.xl} ${shadowColor$1}, ${globalRefs$k.shadow.narrow.xl} ${shadowColor$1}`,
|
11243
11385
|
},
|
11244
11386
|
'2xl': {
|
11245
11387
|
[helperVars$2.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
11246
|
-
[compVars$4.boxShadow]: `${globalRefs$
|
11388
|
+
[compVars$4.boxShadow]: `${globalRefs$k.shadow.wide['2xl']} ${shadowColor$1}`,
|
11247
11389
|
},
|
11248
11390
|
},
|
11249
11391
|
|
11250
11392
|
borderRadius: {
|
11251
|
-
sm: { [compVars$4.borderRadius]: globalRefs$
|
11252
|
-
md: { [compVars$4.borderRadius]: globalRefs$
|
11253
|
-
lg: { [compVars$4.borderRadius]: globalRefs$
|
11254
|
-
xl: { [compVars$4.borderRadius]: globalRefs$
|
11255
|
-
'2xl': { [compVars$4.borderRadius]: globalRefs$
|
11256
|
-
'3xl': { [compVars$4.borderRadius]: globalRefs$
|
11393
|
+
sm: { [compVars$4.borderRadius]: globalRefs$k.radius.sm },
|
11394
|
+
md: { [compVars$4.borderRadius]: globalRefs$k.radius.md },
|
11395
|
+
lg: { [compVars$4.borderRadius]: globalRefs$k.radius.lg },
|
11396
|
+
xl: { [compVars$4.borderRadius]: globalRefs$k.radius.xl },
|
11397
|
+
'2xl': { [compVars$4.borderRadius]: globalRefs$k.radius['2xl'] },
|
11398
|
+
'3xl': { [compVars$4.borderRadius]: globalRefs$k.radius['3xl'] },
|
11257
11399
|
},
|
11258
11400
|
};
|
11259
11401
|
|
11260
|
-
const vars$
|
11402
|
+
const vars$v = {
|
11261
11403
|
...compVars$4,
|
11262
11404
|
...helperVars$2,
|
11263
11405
|
};
|
@@ -11265,53 +11407,164 @@ const vars$u = {
|
|
11265
11407
|
var container$1 = /*#__PURE__*/Object.freeze({
|
11266
11408
|
__proto__: null,
|
11267
11409
|
default: container,
|
11268
|
-
vars: vars$
|
11410
|
+
vars: vars$v
|
11269
11411
|
});
|
11270
11412
|
|
11271
|
-
const vars$
|
11413
|
+
const vars$u = LogoClass.cssVarList;
|
11272
11414
|
|
11273
11415
|
const logo$2 = {
|
11274
|
-
[vars$
|
11416
|
+
[vars$u.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
|
11275
11417
|
};
|
11276
11418
|
|
11277
11419
|
var logo$3 = /*#__PURE__*/Object.freeze({
|
11278
11420
|
__proto__: null,
|
11279
11421
|
default: logo$2,
|
11280
|
-
vars: vars$
|
11422
|
+
vars: vars$u
|
11281
11423
|
});
|
11282
11424
|
|
11283
|
-
const vars$
|
11425
|
+
const vars$t = TotpImageClass.cssVarList;
|
11284
11426
|
|
11285
11427
|
const logo$1 = {
|
11286
|
-
[vars$
|
11428
|
+
[vars$t.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
|
11287
11429
|
};
|
11288
11430
|
|
11289
11431
|
var totpImage = /*#__PURE__*/Object.freeze({
|
11290
11432
|
__proto__: null,
|
11291
11433
|
default: logo$1,
|
11292
|
-
vars: vars$
|
11434
|
+
vars: vars$t
|
11293
11435
|
});
|
11294
11436
|
|
11295
|
-
const vars$
|
11437
|
+
const vars$s = NotpImageClass.cssVarList;
|
11296
11438
|
|
11297
11439
|
const logo = {
|
11298
|
-
[vars$
|
11440
|
+
[vars$s.fallbackUrl]: 'url(https://imgs.descope.com/components/notp-placeholder.svg)',
|
11299
11441
|
};
|
11300
11442
|
|
11301
11443
|
var notpImage = /*#__PURE__*/Object.freeze({
|
11302
11444
|
__proto__: null,
|
11303
11445
|
default: logo,
|
11446
|
+
vars: vars$s
|
11447
|
+
});
|
11448
|
+
|
11449
|
+
const globalRefs$j = getThemeRefs(globals);
|
11450
|
+
const vars$r = TextClass.cssVarList;
|
11451
|
+
|
11452
|
+
const text = {
|
11453
|
+
[vars$r.hostDirection]: globalRefs$j.direction,
|
11454
|
+
[vars$r.textLineHeight]: '1.35em',
|
11455
|
+
[vars$r.textAlign]: 'left',
|
11456
|
+
[vars$r.textColor]: globalRefs$j.colors.surface.dark,
|
11457
|
+
variant: {
|
11458
|
+
h1: {
|
11459
|
+
[vars$r.fontSize]: globalRefs$j.typography.h1.size,
|
11460
|
+
[vars$r.fontWeight]: globalRefs$j.typography.h1.weight,
|
11461
|
+
[vars$r.fontFamily]: globalRefs$j.typography.h1.font,
|
11462
|
+
},
|
11463
|
+
h2: {
|
11464
|
+
[vars$r.fontSize]: globalRefs$j.typography.h2.size,
|
11465
|
+
[vars$r.fontWeight]: globalRefs$j.typography.h2.weight,
|
11466
|
+
[vars$r.fontFamily]: globalRefs$j.typography.h2.font,
|
11467
|
+
},
|
11468
|
+
h3: {
|
11469
|
+
[vars$r.fontSize]: globalRefs$j.typography.h3.size,
|
11470
|
+
[vars$r.fontWeight]: globalRefs$j.typography.h3.weight,
|
11471
|
+
[vars$r.fontFamily]: globalRefs$j.typography.h3.font,
|
11472
|
+
},
|
11473
|
+
subtitle1: {
|
11474
|
+
[vars$r.fontSize]: globalRefs$j.typography.subtitle1.size,
|
11475
|
+
[vars$r.fontWeight]: globalRefs$j.typography.subtitle1.weight,
|
11476
|
+
[vars$r.fontFamily]: globalRefs$j.typography.subtitle1.font,
|
11477
|
+
},
|
11478
|
+
subtitle2: {
|
11479
|
+
[vars$r.fontSize]: globalRefs$j.typography.subtitle2.size,
|
11480
|
+
[vars$r.fontWeight]: globalRefs$j.typography.subtitle2.weight,
|
11481
|
+
[vars$r.fontFamily]: globalRefs$j.typography.subtitle2.font,
|
11482
|
+
},
|
11483
|
+
body1: {
|
11484
|
+
[vars$r.fontSize]: globalRefs$j.typography.body1.size,
|
11485
|
+
[vars$r.fontWeight]: globalRefs$j.typography.body1.weight,
|
11486
|
+
[vars$r.fontFamily]: globalRefs$j.typography.body1.font,
|
11487
|
+
},
|
11488
|
+
body2: {
|
11489
|
+
[vars$r.fontSize]: globalRefs$j.typography.body2.size,
|
11490
|
+
[vars$r.fontWeight]: globalRefs$j.typography.body2.weight,
|
11491
|
+
[vars$r.fontFamily]: globalRefs$j.typography.body2.font,
|
11492
|
+
},
|
11493
|
+
},
|
11494
|
+
|
11495
|
+
mode: {
|
11496
|
+
primary: {
|
11497
|
+
[vars$r.textColor]: globalRefs$j.colors.surface.contrast,
|
11498
|
+
},
|
11499
|
+
secondary: {
|
11500
|
+
[vars$r.textColor]: globalRefs$j.colors.surface.dark,
|
11501
|
+
},
|
11502
|
+
error: {
|
11503
|
+
[vars$r.textColor]: globalRefs$j.colors.error.main,
|
11504
|
+
},
|
11505
|
+
success: {
|
11506
|
+
[vars$r.textColor]: globalRefs$j.colors.success.main,
|
11507
|
+
},
|
11508
|
+
},
|
11509
|
+
|
11510
|
+
textAlign: {
|
11511
|
+
right: { [vars$r.textAlign]: 'right' },
|
11512
|
+
left: { [vars$r.textAlign]: 'left' },
|
11513
|
+
center: { [vars$r.textAlign]: 'center' },
|
11514
|
+
},
|
11515
|
+
|
11516
|
+
_fullWidth: {
|
11517
|
+
[vars$r.hostWidth]: '100%',
|
11518
|
+
},
|
11519
|
+
|
11520
|
+
_italic: {
|
11521
|
+
[vars$r.fontStyle]: 'italic',
|
11522
|
+
},
|
11523
|
+
|
11524
|
+
_uppercase: {
|
11525
|
+
[vars$r.textTransform]: 'uppercase',
|
11526
|
+
},
|
11527
|
+
|
11528
|
+
_lowercase: {
|
11529
|
+
[vars$r.textTransform]: 'lowercase',
|
11530
|
+
},
|
11531
|
+
};
|
11532
|
+
|
11533
|
+
var text$1 = /*#__PURE__*/Object.freeze({
|
11534
|
+
__proto__: null,
|
11535
|
+
default: text,
|
11304
11536
|
vars: vars$r
|
11305
11537
|
});
|
11306
11538
|
|
11307
11539
|
const globalRefs$i = getThemeRefs(globals);
|
11308
|
-
const vars$q =
|
11540
|
+
const vars$q = MarkdownContentClass.cssVarList;
|
11309
11541
|
|
11310
|
-
const
|
11542
|
+
const markdownContent = {
|
11311
11543
|
[vars$q.hostDirection]: globalRefs$i.direction,
|
11544
|
+
|
11545
|
+
[vars$q.fontSize]: globalRefs$i.typography.body1.size,
|
11546
|
+
[vars$q.fontWeight]: globalRefs$i.typography.body1.weight,
|
11547
|
+
[vars$q.fontFamily]: globalRefs$i.typography.body1.font,
|
11548
|
+
|
11312
11549
|
[vars$q.textLineHeight]: '1.35em',
|
11313
11550
|
[vars$q.textAlign]: 'left',
|
11314
11551
|
[vars$q.textColor]: globalRefs$i.colors.surface.dark,
|
11552
|
+
|
11553
|
+
mode: {
|
11554
|
+
primary: {
|
11555
|
+
[vars$q.textColor]: globalRefs$i.colors.surface.contrast,
|
11556
|
+
},
|
11557
|
+
secondary: {
|
11558
|
+
[vars$q.textColor]: globalRefs$i.colors.surface.dark,
|
11559
|
+
},
|
11560
|
+
error: {
|
11561
|
+
[vars$q.textColor]: globalRefs$i.colors.error.main,
|
11562
|
+
},
|
11563
|
+
success: {
|
11564
|
+
[vars$q.textColor]: globalRefs$i.colors.success.main,
|
11565
|
+
},
|
11566
|
+
},
|
11567
|
+
|
11315
11568
|
variant: {
|
11316
11569
|
h1: {
|
11317
11570
|
[vars$q.fontSize]: globalRefs$i.typography.h1.size,
|
@@ -11350,21 +11603,6 @@ const text = {
|
|
11350
11603
|
},
|
11351
11604
|
},
|
11352
11605
|
|
11353
|
-
mode: {
|
11354
|
-
primary: {
|
11355
|
-
[vars$q.textColor]: globalRefs$i.colors.surface.contrast,
|
11356
|
-
},
|
11357
|
-
secondary: {
|
11358
|
-
[vars$q.textColor]: globalRefs$i.colors.surface.dark,
|
11359
|
-
},
|
11360
|
-
error: {
|
11361
|
-
[vars$q.textColor]: globalRefs$i.colors.error.main,
|
11362
|
-
},
|
11363
|
-
success: {
|
11364
|
-
[vars$q.textColor]: globalRefs$i.colors.success.main,
|
11365
|
-
},
|
11366
|
-
},
|
11367
|
-
|
11368
11606
|
textAlign: {
|
11369
11607
|
right: { [vars$q.textAlign]: 'right' },
|
11370
11608
|
left: { [vars$q.textAlign]: 'left' },
|
@@ -11374,23 +11612,11 @@ const text = {
|
|
11374
11612
|
_fullWidth: {
|
11375
11613
|
[vars$q.hostWidth]: '100%',
|
11376
11614
|
},
|
11377
|
-
|
11378
|
-
_italic: {
|
11379
|
-
[vars$q.fontStyle]: 'italic',
|
11380
|
-
},
|
11381
|
-
|
11382
|
-
_uppercase: {
|
11383
|
-
[vars$q.textTransform]: 'uppercase',
|
11384
|
-
},
|
11385
|
-
|
11386
|
-
_lowercase: {
|
11387
|
-
[vars$q.textTransform]: 'lowercase',
|
11388
|
-
},
|
11389
11615
|
};
|
11390
11616
|
|
11391
|
-
var
|
11617
|
+
var markdownContent$1 = /*#__PURE__*/Object.freeze({
|
11392
11618
|
__proto__: null,
|
11393
|
-
default:
|
11619
|
+
default: markdownContent,
|
11394
11620
|
vars: vars$q
|
11395
11621
|
});
|
11396
11622
|
|
@@ -11443,7 +11669,7 @@ const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
|
11443
11669
|
thickness: '2px',
|
11444
11670
|
spacing: '10px',
|
11445
11671
|
},
|
11446
|
-
componentName$
|
11672
|
+
componentName$K
|
11447
11673
|
);
|
11448
11674
|
|
11449
11675
|
const divider = {
|
@@ -11586,7 +11812,7 @@ const [helperTheme, helperRefs, helperVars] = createHelperVars(
|
|
11586
11812
|
},
|
11587
11813
|
},
|
11588
11814
|
},
|
11589
|
-
componentName$
|
11815
|
+
componentName$N
|
11590
11816
|
);
|
11591
11817
|
|
11592
11818
|
const loaderRadial = {
|
@@ -12341,6 +12567,7 @@ const components = {
|
|
12341
12567
|
totpImage,
|
12342
12568
|
notpImage,
|
12343
12569
|
text: text$1,
|
12570
|
+
markdownContent: markdownContent$1,
|
12344
12571
|
link: link$1,
|
12345
12572
|
divider: divider$1,
|
12346
12573
|
passcode: passcode$1,
|
@@ -12379,7 +12606,7 @@ const vars = Object.keys(components).reduce(
|
|
12379
12606
|
);
|
12380
12607
|
|
12381
12608
|
const defaultTheme = { globals, components: theme };
|
12382
|
-
const themeVars = { globals: vars$
|
12609
|
+
const themeVars = { globals: vars$F, components: vars };
|
12383
12610
|
|
12384
12611
|
const colors = {
|
12385
12612
|
surface: {
|
@@ -12425,5 +12652,5 @@ const darkTheme = merge({}, defaultTheme, {
|
|
12425
12652
|
},
|
12426
12653
|
});
|
12427
12654
|
|
12428
|
-
export { AvatarClass, BadgeClass, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CheckboxClass, ComboBoxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, MappingsFieldClass, ModalClass, MultiSelectComboBoxClass, NewPasswordClass, NotificationClass, NotpImageClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RecaptchaClass, SamlGroupMappingsClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, UserAttributeClass, UserAuthMethodClass, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
|
12655
|
+
export { AvatarClass, BadgeClass, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CheckboxClass, ComboBoxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, MappingsFieldClass, MarkdownContentClass, ModalClass, MultiSelectComboBoxClass, NewPasswordClass, NotificationClass, NotpImageClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RecaptchaClass, SamlGroupMappingsClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, UserAttributeClass, UserAuthMethodClass, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
|
12429
12656
|
//# sourceMappingURL=index.esm.js.map
|