@descope/web-components-ui 1.0.55 → 1.0.57

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 CHANGED
@@ -32,7 +32,11 @@ const createCssSelector = (
32
32
  ) =>
33
33
  typeof relativeSelectorOrSelectorFn === 'function'
34
34
  ? relativeSelectorOrSelectorFn(baseSelector)
35
- : `${baseSelector}${relativeSelectorOrSelectorFn}`;
35
+ : `${baseSelector}${
36
+ /^[A-Za-z]/.test(relativeSelectorOrSelectorFn)
37
+ ? ` ${relativeSelectorOrSelectorFn}`
38
+ : relativeSelectorOrSelectorFn
39
+ }`;
36
40
 
37
41
  class StyleBuilder {
38
42
  constructor() {
@@ -110,110 +114,115 @@ const matchHostStyle = (mappingObj = {}) => [
110
114
 
111
115
  const createStyleMixin =
112
116
  ({ mappings = {}, nestedMappings = {} }) =>
113
- (superclass) => {
114
- const styleAttributes = Object.keys(mappings).map((key) =>
115
- kebabCaseJoin('st', key)
116
- );
117
- return class CustomStyleMixinClass extends superclass {
118
- static get observedAttributes() {
119
- const superAttrs = superclass.observedAttributes || [];
120
- return [...superAttrs, ...styleAttributes];
121
- }
117
+ (superclass) => {
118
+ const styleAttributes = Object.keys(mappings).map((key) =>
119
+ kebabCaseJoin('st', key)
120
+ );
121
+ return class CustomStyleMixinClass extends superclass {
122
+ static get observedAttributes() {
123
+ const superAttrs = superclass.observedAttributes || [];
124
+ return [...superAttrs, ...styleAttributes];
125
+ }
122
126
 
123
- static get cssVarList() {
124
- return createCssVarsList(superclass.componentName, mappings);
125
- }
127
+ static get cssVarList() {
128
+ return createCssVarsList(superclass.componentName, {
129
+ ...mappings,
130
+ ...nestedMappings
131
+ });
132
+ }
126
133
 
127
- #styleEle = null;
134
+ #styleEle = null;
128
135
 
129
- constructor() {
130
- super();
136
+ constructor() {
137
+ super();
131
138
 
132
- this.#createComponentStyle();
133
- this.#createAttrOverrideStyle();
134
- }
139
+ this.#createComponentStyle();
140
+ this.#createAttrOverrideStyle();
141
+ }
135
142
 
136
- #createAttrOverrideStyle() {
137
- this.#styleEle = document.createElement('style');
138
- this.#styleEle.id = 'style-mixin-overrides';
143
+ #createAttrOverrideStyle() {
144
+ this.#styleEle = document.createElement('style');
145
+ this.#styleEle.id = 'style-mixin-overrides';
139
146
 
140
- this.#styleEle.innerText = '* {}';
141
- this.shadowRoot.prepend(this.#styleEle);
142
- }
147
+ this.#styleEle.innerText = '* {}';
148
+ this.shadowRoot.prepend(this.#styleEle);
149
+ }
143
150
 
144
- #updateAttrOverrideStyle(attrName, value) {
145
- const style = this.#styleEle.sheet?.cssRules[0].style;
146
- const varName = getCssVarName(
147
- superclass.componentName,
148
- attrName.replace(/^st-/, '')
149
- );
151
+ #updateAttrOverrideStyle(attrName, value) {
152
+ const style = this.#styleEle.sheet?.cssRules[0].style;
153
+ const varName = getCssVarName(
154
+ superclass.componentName,
155
+ attrName.replace(/^st-/, '')
156
+ );
150
157
 
151
- if (value) style?.setProperty(varName, value);
152
- else style?.removeProperty(varName);
153
- }
158
+ if (value) style?.setProperty(varName, value);
159
+ else style?.removeProperty(varName);
160
+ }
154
161
 
155
- #createComponentStyle() {
156
- const themeStyle = document.createElement('style');
157
- themeStyle.id = 'style-mixin-component';
158
- themeStyle.innerHTML = createStyle(
159
- superclass.componentName,
160
- this.baseSelector,
161
- mappings
162
- );
163
- this.shadowRoot.prepend(themeStyle);
164
- }
162
+ #createComponentStyle() {
163
+ const themeStyle = document.createElement('style');
164
+ themeStyle.id = 'style-mixin-component';
165
+ themeStyle.innerHTML = createStyle(
166
+ superclass.componentName,
167
+ this.baseSelector,
168
+ mappings
169
+ );
170
+ this.shadowRoot.prepend(themeStyle);
171
+ }
165
172
 
166
- #createComponentNestingStyle() {
167
- // we need these selectors to be more specific from the theme selectors
168
- // in order to do it, we are repeating the class name for specificity
169
- const numOfClassNameSpecifier = 3;
173
+ #createComponentNestingStyle() {
174
+ // we need these selectors to be more specific from the theme selectors
175
+ // in order to do it, we are repeating the class name for specificity
176
+ const numOfClassNameSpecifier = 3;
170
177
 
171
- const rootNode = this.shadowRoot.host.getRootNode();
172
- const styleId = `${superclass.componentName}-style-mixin-component`;
178
+ const rootNode = this.shadowRoot.host.getRootNode();
179
+ const styleId = `${superclass.componentName}-style-mixin-component`;
173
180
 
174
- const className = superclass.componentName;
175
- this.shadowRoot.host.classList.add(className);
181
+ const className = superclass.componentName;
182
+ this.shadowRoot.host.classList.add(className);
176
183
 
177
- if(rootNode.querySelector(`style#${styleId}`)) return;
184
+ if (rootNode.querySelector(`style#${styleId}`)) return;
178
185
 
179
- const themeStyle = document.createElement('style');
180
- themeStyle.id = styleId;
181
- themeStyle.innerHTML = createStyle(
182
- superclass.componentName,
183
- `${superclass.componentName}${Array(numOfClassNameSpecifier).fill(`.${className}`).join('')}`,
184
- nestedMappings
185
- );
186
+ const themeStyle = document.createElement('style');
187
+ themeStyle.id = styleId;
188
+ themeStyle.innerHTML = createStyle(
189
+ superclass.componentName,
190
+ `${superclass.componentName}${Array(numOfClassNameSpecifier)
191
+ .fill(`.${className}`)
192
+ .join('')}`,
193
+ nestedMappings
194
+ );
186
195
 
187
- // rootNode can be either a shadow DOM or a light DOM
188
- if (rootNode.nodeName === '#document') {
189
- rootNode.head.append(themeStyle);
190
- } else {
191
- rootNode.append(themeStyle);
192
- }
196
+ // rootNode can be either a shadow DOM or a light DOM
197
+ if (rootNode.nodeName === '#document') {
198
+ rootNode.head.append(themeStyle);
199
+ } else {
200
+ rootNode.append(themeStyle);
193
201
  }
202
+ }
194
203
 
195
- attributeChangedCallback(attrName, oldValue, newValue) {
196
- super.attributeChangedCallback?.(attrName, oldValue, newValue);
204
+ attributeChangedCallback(attrName, oldValue, newValue) {
205
+ super.attributeChangedCallback?.(attrName, oldValue, newValue);
197
206
 
198
- if (styleAttributes.includes(attrName)) {
199
- this.#updateAttrOverrideStyle(attrName, newValue);
200
- }
207
+ if (styleAttributes.includes(attrName)) {
208
+ this.#updateAttrOverrideStyle(attrName, newValue);
201
209
  }
210
+ }
202
211
 
203
- connectedCallback() {
204
- super.connectedCallback?.();
205
- if (this.shadowRoot.isConnected) {
206
- this.#createComponentNestingStyle();
212
+ connectedCallback() {
213
+ super.connectedCallback?.();
214
+ if (this.shadowRoot.isConnected) {
215
+ this.#createComponentNestingStyle();
207
216
 
208
- Array.from(this.attributes).forEach(attr => {
209
- if (styleAttributes.includes(attr.nodeName)) {
210
- this.#updateAttrOverrideStyle(attr.nodeName, attr.value);
211
- }
212
- });
213
- }
217
+ Array.from(this.attributes).forEach((attr) => {
218
+ if (styleAttributes.includes(attr.nodeName)) {
219
+ this.#updateAttrOverrideStyle(attr.nodeName, attr.value);
220
+ }
221
+ });
214
222
  }
215
- };
223
+ }
216
224
  };
225
+ };
217
226
 
218
227
  const draggableMixin = (superclass) =>
219
228
  class DraggableMixinClass extends superclass {
@@ -535,7 +544,7 @@ const compose =
535
544
  (val) =>
536
545
  fns.reduceRight((res, fn) => fn(res), val);
537
546
 
538
- const componentName$g = getComponentName('button');
547
+ const componentName$i = getComponentName('button');
539
548
 
540
549
  const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
541
550
  const resetStyles = `
@@ -558,7 +567,7 @@ const iconStyles = `
558
567
  }
559
568
  `;
560
569
 
561
- const selectors$4 = {
570
+ const selectors$5 = {
562
571
  label: '::part(label)'
563
572
  };
564
573
 
@@ -567,7 +576,7 @@ const Button = compose(
567
576
  mappings: {
568
577
  backgroundColor: {},
569
578
  borderRadius: {},
570
- color: { selector: selectors$4.label },
579
+ color: { selector: selectors$5.label },
571
580
  borderColor: {},
572
581
  borderStyle: {},
573
582
  borderWidth: {},
@@ -575,8 +584,8 @@ const Button = compose(
575
584
  height: {},
576
585
  width: matchHostStyle(),
577
586
  cursor: {},
578
- padding: [{ selector: selectors$4.label }],
579
- textDecoration: { selector: selectors$4.label }
587
+ padding: [{ selector: selectors$5.label }],
588
+ textDecoration: { selector: selectors$5.label }
580
589
  }
581
590
  }),
582
591
  draggableMixin,
@@ -588,7 +597,7 @@ const Button = compose(
588
597
  style: () =>
589
598
  `${resetStyles} ${editorOverrides} ${iconStyles} ${loadingIndicatorStyles}`,
590
599
  excludeAttrsSync: ['tabindex'],
591
- componentName: componentName$g
600
+ componentName: componentName$i
592
601
  })
593
602
  );
594
603
 
@@ -621,9 +630,9 @@ const loadingIndicatorStyles = `
621
630
  }
622
631
  `;
623
632
 
624
- customElements.define(componentName$g, Button);
633
+ customElements.define(componentName$i, Button);
625
634
 
626
- const componentName$f = getComponentName('checkbox');
635
+ const componentName$h = getComponentName('checkbox');
627
636
 
628
637
  const Checkbox = compose(
629
638
  createStyleMixin({
@@ -645,11 +654,131 @@ const Checkbox = compose(
645
654
  }
646
655
  `,
647
656
  excludeAttrsSync: ['tabindex'],
648
- componentName: componentName$f
657
+ componentName: componentName$h
649
658
  })
650
659
  );
651
660
 
652
- customElements.define(componentName$f, Checkbox);
661
+ customElements.define(componentName$h, Checkbox);
662
+
663
+ const componentName$g = getComponentName('loader-linear');
664
+
665
+ class RawLoaderLinear extends DescopeBaseClass {
666
+ static get componentName() {
667
+ return componentName$g;
668
+ }
669
+ constructor() {
670
+ super();
671
+ const template = document.createElement('template');
672
+ template.innerHTML = `
673
+ <style>
674
+ @keyframes tilt {
675
+ 0% { transform: translateX(0); }
676
+ 50% { transform: translateX(400%); }
677
+ }
678
+ :host {
679
+ position: relative;
680
+ }
681
+ div::after {
682
+ content: '';
683
+ animation-name: tilt;
684
+ position: absolute;
685
+ left: 0;
686
+ }
687
+ </style>
688
+ <div></div>
689
+ `;
690
+
691
+ this.attachShadow({ mode: 'open' });
692
+ this.shadowRoot.appendChild(template.content.cloneNode(true));
693
+
694
+ this.baseSelector = ':host > div';
695
+ }
696
+ }
697
+
698
+ const selectors$4 = {
699
+ root: {},
700
+ after: { selector: '::after' }
701
+ };
702
+
703
+ const { root: root$1, after: after$1 } = selectors$4;
704
+
705
+ const LoaderLinear = compose(
706
+ createStyleMixin({
707
+ mappings: {
708
+ display: root$1,
709
+ width: matchHostStyle(root$1),
710
+ height: [root$1, after$1],
711
+ borderRadius: [root$1, after$1],
712
+ surfaceColor: [{ property: 'background-color' }],
713
+ barColor: [{ ...after$1, property: 'background-color' }],
714
+ barWidth: { ...after$1, property: 'width' },
715
+ animationDuration: [root$1, after$1],
716
+ animationTimingFunction: [root$1, after$1],
717
+ animationIterationCount: [root$1, after$1]
718
+ }
719
+ }),
720
+ draggableMixin,
721
+ componentNameValidationMixin
722
+ )(RawLoaderLinear);
723
+
724
+ customElements.define(componentName$g, LoaderLinear);
725
+
726
+ const componentName$f = getComponentName('loader-radial');
727
+
728
+ class RawLoaderRadial extends DescopeBaseClass {
729
+ static get componentName() {
730
+ return componentName$f;
731
+ }
732
+ constructor() {
733
+ super();
734
+ const template = document.createElement('template');
735
+ template.innerHTML = `
736
+ <style>
737
+ @keyframes spin {
738
+ 0% { transform: rotate(0deg); }
739
+ 100% { transform: rotate(360deg); }
740
+ }
741
+ :host {
742
+ position: relative;
743
+ }
744
+ :host > div {
745
+ animation-name: spin;
746
+ }
747
+ </style>
748
+ <div></div>
749
+ `;
750
+
751
+ this.attachShadow({ mode: 'open' });
752
+ this.shadowRoot.appendChild(template.content.cloneNode(true));
753
+
754
+ this.baseSelector = ':host > div';
755
+ }
756
+ }
757
+
758
+ const LoaderRadial = compose(
759
+ createStyleMixin({
760
+ mappings: {
761
+ display: {},
762
+ width: matchHostStyle({}),
763
+ height: {},
764
+ spinnerWidth: { property: 'border-width' },
765
+ spinnerStyle: { property: 'border-style' },
766
+ spinnerRadius: { property: 'border-radius' },
767
+ spinnerTopColor: { property: 'border-top-color' },
768
+ spinnerBottomColor: { property: 'border-bottom-color' },
769
+ spinnerRightColor: { property: 'border-right-color' },
770
+ spinnerLeftColor: { property: 'border-left-color' },
771
+ color: {},
772
+ animationDuration: {},
773
+ animationTimingFunction: {},
774
+ animationIterationCount: {}
775
+ }
776
+ }),
777
+ draggableMixin,
778
+ componentNameValidationMixin
779
+ )(RawLoaderRadial);
780
+
781
+ customElements.define(componentName$f, LoaderRadial);
653
782
 
654
783
  const selectors$3 = {
655
784
  label: '::part(label)',
@@ -943,11 +1072,53 @@ const enforceNestingElementsStylesMixin =
943
1072
  };
944
1073
  };
945
1074
 
946
- const componentName$a = getComponentName('divider');
947
- class RawDivider extends DescopeBaseClass {
1075
+ const componentName$a = getComponentName('text');
1076
+
1077
+ class RawText extends DescopeBaseClass {
948
1078
  static get componentName() {
949
1079
  return componentName$a;
950
1080
  }
1081
+ constructor() {
1082
+ super();
1083
+ const template = document.createElement('template');
1084
+ template.innerHTML = `<slot></slot>`;
1085
+
1086
+ this.attachShadow({ mode: 'open' });
1087
+ this.shadowRoot.appendChild(template.content.cloneNode(true));
1088
+
1089
+ this.baseSelector = ':host > slot';
1090
+ }
1091
+ }
1092
+
1093
+ const Text = compose(
1094
+ createStyleMixin({
1095
+ mappings: {
1096
+ fontFamily: {},
1097
+ lineHeight: {},
1098
+ fontStyle: {},
1099
+ fontSize: {},
1100
+ fontWeight: {},
1101
+ width: {},
1102
+ color: {},
1103
+ letterSpacing: {},
1104
+ textShadow: {},
1105
+ borderWidth: {},
1106
+ borderStyle: {},
1107
+ borderColor: {},
1108
+ textTransform: {},
1109
+ textAlign: matchHostStyle(),
1110
+ display: matchHostStyle()
1111
+ }
1112
+ }),
1113
+ draggableMixin,
1114
+ componentNameValidationMixin
1115
+ )(RawText);
1116
+
1117
+ const componentName$9 = getComponentName('divider');
1118
+ class RawDivider extends DescopeBaseClass {
1119
+ static get componentName() {
1120
+ return componentName$9;
1121
+ }
951
1122
  constructor() {
952
1123
  super();
953
1124
  const template = document.createElement('template');
@@ -1010,57 +1181,21 @@ const Divider = compose(
1010
1181
  backgroundColor: [before, after],
1011
1182
  opacity: [before, after],
1012
1183
  textWidth: { ...slotted, property: 'width' }
1184
+ },
1185
+ nestedMappings: {
1186
+ fontStyle: {
1187
+ selector: Text.componentName,
1188
+ property: Text.cssVarList.fontStyle
1189
+ }
1013
1190
  }
1014
1191
  }),
1015
1192
  draggableMixin,
1016
1193
  componentNameValidationMixin
1017
1194
  )(RawDivider);
1018
1195
 
1019
- const componentName$9 = getComponentName('text');
1020
-
1021
- class RawText extends DescopeBaseClass {
1022
- static get componentName() {
1023
- return componentName$9;
1024
- }
1025
- constructor() {
1026
- super();
1027
- const template = document.createElement('template');
1028
- template.innerHTML = `<slot></slot>`;
1029
-
1030
- this.attachShadow({ mode: 'open' });
1031
- this.shadowRoot.appendChild(template.content.cloneNode(true));
1196
+ customElements.define(componentName$a, Text);
1032
1197
 
1033
- this.baseSelector = ':host > slot';
1034
- }
1035
- }
1036
-
1037
- const Text = compose(
1038
- createStyleMixin({
1039
- mappings: {
1040
- fontFamily: {},
1041
- lineHeight: {},
1042
- fontStyle: {},
1043
- fontSize: {},
1044
- fontWeight: {},
1045
- width: {},
1046
- color: {},
1047
- letterSpacing: {},
1048
- textShadow: {},
1049
- borderWidth: {},
1050
- borderStyle: {},
1051
- borderColor: {},
1052
- textTransform: {},
1053
- textAlign: matchHostStyle(),
1054
- display: matchHostStyle()
1055
- }
1056
- }),
1057
- draggableMixin,
1058
- componentNameValidationMixin
1059
- )(RawText);
1060
-
1061
- customElements.define(componentName$9, Text);
1062
-
1063
- customElements.define(componentName$a, Divider);
1198
+ customElements.define(componentName$9, Divider);
1064
1199
 
1065
1200
  const componentName$8 = getComponentName('email-field');
1066
1201
 
@@ -1192,7 +1327,7 @@ const Link = compose(
1192
1327
  },
1193
1328
  nestedMappings: {
1194
1329
  color: {
1195
- selector: ` ${Text.componentName}`,
1330
+ selector: Text.componentName,
1196
1331
  property: Text.cssVarList.color
1197
1332
  }
1198
1333
  }
@@ -1544,21 +1679,21 @@ class PasscodeInternal extends HTMLElement {
1544
1679
  const componentName$3 = getComponentName('passcode');
1545
1680
 
1546
1681
  const customMixin = (superclass) =>
1547
- class DraggableMixinClass extends superclass {
1548
- constructor() {
1549
- super();
1550
- }
1682
+ class DraggableMixinClass extends superclass {
1683
+ constructor() {
1684
+ super();
1685
+ }
1551
1686
 
1552
- get digits() {
1553
- return Number.parseInt(this.getAttribute('digits')) || 6
1554
- }
1687
+ get digits() {
1688
+ return Number.parseInt(this.getAttribute('digits')) || 6;
1689
+ }
1555
1690
 
1556
- connectedCallback() {
1557
- super.connectedCallback?.();
1558
- const template = document.createElement('template');
1691
+ connectedCallback() {
1692
+ super.connectedCallback?.();
1693
+ const template = document.createElement('template');
1559
1694
 
1560
- //forward required & pattern TODO use forwardAttrs
1561
- template.innerHTML = `
1695
+ //forward required & pattern TODO use forwardAttrs
1696
+ template.innerHTML = `
1562
1697
  <${componentName$4}
1563
1698
  bordered="true"
1564
1699
  name="code"
@@ -1569,47 +1704,52 @@ const customMixin = (superclass) =>
1569
1704
  ></${componentName$4}>
1570
1705
  `;
1571
1706
 
1572
- // we are adding a slot under vaadin-text-field, it should reflect all descope-passcode children to be under vaadin-text-field, this is why it has a name & slot
1573
- const slotEle = Object.assign(document.createElement('slot'), { name: 'input', slot: 'input', part: 'input' });
1574
- this.proxyElement.appendChild(slotEle);
1707
+ // we are adding a slot under vaadin-text-field, it should reflect all descope-passcode children to be under vaadin-text-field, this is why it has a name & slot
1708
+ const slotEle = Object.assign(document.createElement('slot'), {
1709
+ name: 'input',
1710
+ slot: 'input',
1711
+ part: 'input'
1712
+ });
1713
+ this.proxyElement.appendChild(slotEle);
1575
1714
 
1576
- // we want to control when the element is out of focus
1577
- // so the validations will be triggered blur event is dispatched from descope-passcode internal (and not every time focusing a digit)
1578
- this.proxyElement._setFocused = () => { };
1715
+ // we want to control when the element is out of focus
1716
+ // so the validations will be triggered blur event is dispatched from descope-passcode internal (and not every time focusing a digit)
1717
+ this.proxyElement._setFocused = () => {};
1579
1718
 
1580
- this.shadowRoot.host.appendChild(template.content.cloneNode(true));
1581
- this.inputElement = this.querySelector(componentName$4);
1719
+ this.shadowRoot.host.appendChild(template.content.cloneNode(true));
1720
+ this.inputElement = this.querySelector(componentName$4);
1582
1721
 
1583
- // we want to trigger validation only when dispatching a blur event from the descope-passcode-internal
1584
- this.inputElement.addEventListener('blur', () => {
1585
- this.proxyElement.validate();
1586
- });
1587
- }
1588
- };
1722
+ // we want to trigger validation only when dispatching a blur event from the descope-passcode-internal
1723
+ this.inputElement.addEventListener('blur', () => {
1724
+ this.proxyElement.validate();
1725
+ });
1726
+ }
1727
+ };
1589
1728
 
1590
- const { borderStyle, borderWidth, ...restTextFieldMappings } = textFieldMappings;
1729
+ const { borderStyle, borderWidth, ...restTextFieldMappings } =
1730
+ textFieldMappings;
1591
1731
 
1592
1732
  const Passcode = compose(
1593
- createStyleMixin({
1594
- mappings: {
1595
- ...restTextFieldMappings,
1596
- },
1597
- nestedMappings: {
1598
- borderColor: {
1599
- selector: ` ${TextField.componentName}`,
1600
- property: TextField.cssVarList.borderColor
1601
- }
1602
- }
1603
- }),
1604
- draggableMixin,
1605
- inputMixin,
1606
- componentNameValidationMixin,
1607
- customMixin
1733
+ createStyleMixin({
1734
+ mappings: {
1735
+ ...restTextFieldMappings
1736
+ },
1737
+ nestedMappings: {
1738
+ borderColor: {
1739
+ selector: TextField.componentName,
1740
+ property: TextField.cssVarList.borderColor
1741
+ }
1742
+ }
1743
+ }),
1744
+ draggableMixin,
1745
+ inputMixin,
1746
+ componentNameValidationMixin,
1747
+ customMixin
1608
1748
  )(
1609
- createProxy({
1610
- slots: [],
1611
- wrappedEleName: 'vaadin-text-field',
1612
- style: () => `
1749
+ createProxy({
1750
+ slots: [],
1751
+ wrappedEleName: 'vaadin-text-field',
1752
+ style: () => `
1613
1753
  :host {
1614
1754
  --vaadin-field-default-width: auto;
1615
1755
  }
@@ -1629,9 +1769,9 @@ const Passcode = compose(
1629
1769
 
1630
1770
  ${overrides$3}
1631
1771
  `,
1632
- excludeAttrsSync: ['tabindex'],
1633
- componentName: componentName$3
1634
- })
1772
+ excludeAttrsSync: ['tabindex'],
1773
+ componentName: componentName$3
1774
+ })
1635
1775
  );
1636
1776
 
1637
1777
  const overrides$3 = `
@@ -2016,6 +2156,99 @@ const genColors = (colors) => {
2016
2156
  }, {});
2017
2157
  };
2018
2158
 
2159
+ const globalRefs$7 = getThemeRefs(globals);
2160
+ const vars$c = Button.cssVarList;
2161
+
2162
+ const mode = {
2163
+ primary: globalRefs$7.colors.primary,
2164
+ secondary: globalRefs$7.colors.secondary,
2165
+ success: globalRefs$7.colors.success,
2166
+ error: globalRefs$7.colors.error,
2167
+ surface: globalRefs$7.colors.surface
2168
+ };
2169
+
2170
+ const [helperTheme$1, helperRefs$1] = createHelperVars({ mode }, componentName$i);
2171
+
2172
+ const button = {
2173
+ ...helperTheme$1,
2174
+
2175
+ size: {
2176
+ xs: {
2177
+ [vars$c.height]: '10px',
2178
+ [vars$c.fontSize]: '10px',
2179
+ [vars$c.padding]: `0 ${globalRefs$7.spacing.xs}`
2180
+ },
2181
+ sm: {
2182
+ [vars$c.height]: '20px',
2183
+ [vars$c.fontSize]: '10px',
2184
+ [vars$c.padding]: `0 ${globalRefs$7.spacing.sm}`
2185
+ },
2186
+ md: {
2187
+ [vars$c.height]: '30px',
2188
+ [vars$c.fontSize]: '14px',
2189
+ [vars$c.padding]: `0 ${globalRefs$7.spacing.md}`
2190
+ },
2191
+ lg: {
2192
+ [vars$c.height]: '40px',
2193
+ [vars$c.fontSize]: '20px',
2194
+ [vars$c.padding]: `0 ${globalRefs$7.spacing.lg}`
2195
+ },
2196
+ xl: {
2197
+ [vars$c.height]: '50px',
2198
+ [vars$c.fontSize]: '25px',
2199
+ [vars$c.padding]: `0 ${globalRefs$7.spacing.xl}`
2200
+ }
2201
+ },
2202
+
2203
+ [vars$c.borderRadius]: globalRefs$7.radius.lg,
2204
+ [vars$c.cursor]: 'pointer',
2205
+ [vars$c.borderWidth]: '2px',
2206
+ [vars$c.borderStyle]: 'solid',
2207
+ [vars$c.borderColor]: 'transparent',
2208
+
2209
+ _fullWidth: {
2210
+ [vars$c.width]: '100%'
2211
+ },
2212
+ _loading: {
2213
+ [vars$c.cursor]: 'wait'
2214
+ },
2215
+
2216
+ variant: {
2217
+ contained: {
2218
+ [vars$c.color]: helperRefs$1.contrast,
2219
+ [vars$c.backgroundColor]: helperRefs$1.main,
2220
+ _hover: {
2221
+ [vars$c.backgroundColor]: helperRefs$1.dark
2222
+ },
2223
+ _loading: {
2224
+ [vars$c.backgroundColor]: helperRefs$1.main
2225
+ }
2226
+ },
2227
+ outline: {
2228
+ [vars$c.color]: helperRefs$1.main,
2229
+ [vars$c.borderColor]: helperRefs$1.main,
2230
+ _hover: {
2231
+ [vars$c.color]: helperRefs$1.dark,
2232
+ [vars$c.borderColor]: helperRefs$1.dark,
2233
+ _error: {
2234
+ [vars$c.color]: helperRefs$1.error
2235
+ }
2236
+ }
2237
+ },
2238
+ link: {
2239
+ [vars$c.color]: helperRefs$1.main,
2240
+ [vars$c.padding]: 0,
2241
+ [vars$c.margin]: 0,
2242
+ [vars$c.lineHeight]: helperRefs$1.height,
2243
+ [vars$c.borderRadius]: 0,
2244
+ _hover: {
2245
+ [vars$c.color]: helperRefs$1.main,
2246
+ [vars$c.textDecoration]: 'underline'
2247
+ }
2248
+ }
2249
+ }
2250
+ };
2251
+
2019
2252
  const colors = genColors({
2020
2253
  surface: {
2021
2254
  main: 'lightgray',
@@ -2119,150 +2352,53 @@ var globals = {
2119
2352
  fonts
2120
2353
  };
2121
2354
 
2122
- const globalRefs$5 = getThemeRefs(globals);
2123
- const vars$a = Button.cssVarList;
2124
-
2125
- const mode = {
2126
- primary: globalRefs$5.colors.primary,
2127
- secondary: globalRefs$5.colors.secondary,
2128
- success: globalRefs$5.colors.success,
2129
- error: globalRefs$5.colors.error,
2130
- surface: globalRefs$5.colors.surface
2131
- };
2132
-
2133
- const [helperTheme$1, helperRefs$1] = createHelperVars({ mode }, componentName$g);
2134
-
2135
- const button = {
2136
- ...helperTheme$1,
2355
+ const globalRefs$6 = getThemeRefs(globals);
2137
2356
 
2138
- size: {
2139
- xs: {
2140
- [vars$a.height]: '10px',
2141
- [vars$a.fontSize]: '10px',
2142
- [vars$a.padding]: `0 ${globalRefs$5.spacing.xs}`
2143
- },
2144
- sm: {
2145
- [vars$a.height]: '20px',
2146
- [vars$a.fontSize]: '10px',
2147
- [vars$a.padding]: `0 ${globalRefs$5.spacing.sm}`
2148
- },
2149
- md: {
2150
- [vars$a.height]: '30px',
2151
- [vars$a.fontSize]: '14px',
2152
- [vars$a.padding]: `0 ${globalRefs$5.spacing.md}`
2153
- },
2154
- lg: {
2155
- [vars$a.height]: '40px',
2156
- [vars$a.fontSize]: '20px',
2157
- [vars$a.padding]: `0 ${globalRefs$5.spacing.lg}`
2158
- },
2159
- xl: {
2160
- [vars$a.height]: '50px',
2161
- [vars$a.fontSize]: '25px',
2162
- [vars$a.padding]: `0 ${globalRefs$5.spacing.xl}`
2163
- }
2164
- },
2165
-
2166
- [vars$a.borderRadius]: globalRefs$5.radius.lg,
2167
- [vars$a.cursor]: 'pointer',
2168
- [vars$a.borderWidth]: '2px',
2169
- [vars$a.borderStyle]: 'solid',
2170
- [vars$a.borderColor]: 'transparent',
2171
-
2172
- _fullWidth: {
2173
- [vars$a.width]: '100%'
2174
- },
2175
- _loading: {
2176
- [vars$a.cursor]: 'wait'
2177
- },
2178
-
2179
- variant: {
2180
- contained: {
2181
- [vars$a.color]: helperRefs$1.contrast,
2182
- [vars$a.backgroundColor]: helperRefs$1.main,
2183
- _hover: {
2184
- [vars$a.backgroundColor]: helperRefs$1.dark
2185
- },
2186
- _loading: {
2187
- [vars$a.backgroundColor]: helperRefs$1.main
2188
- }
2189
- },
2190
- outline: {
2191
- [vars$a.color]: helperRefs$1.main,
2192
- [vars$a.borderColor]: helperRefs$1.main,
2193
- _hover: {
2194
- [vars$a.color]: helperRefs$1.dark,
2195
- [vars$a.borderColor]: helperRefs$1.dark,
2196
- _error: {
2197
- [vars$a.color]: helperRefs$1.error
2198
- }
2199
- }
2200
- },
2201
- link: {
2202
- [vars$a.color]: helperRefs$1.main,
2203
- [vars$a.padding]: 0,
2204
- [vars$a.margin]: 0,
2205
- [vars$a.lineHeight]: helperRefs$1.height,
2206
- [vars$a.borderRadius]: 0,
2207
- _hover: {
2208
- [vars$a.color]: helperRefs$1.main,
2209
- [vars$a.textDecoration]: 'underline'
2210
- }
2211
- }
2212
- }
2213
- };
2214
-
2215
- const globalRefs$4 = getThemeRefs(globals);
2216
-
2217
- const vars$9 = TextField.cssVarList;
2357
+ const vars$b = TextField.cssVarList;
2218
2358
 
2219
2359
  const textField = (vars) => ({
2220
2360
  size: {
2221
2361
  xs: {
2222
2362
  [vars.height]: '14px',
2223
2363
  [vars.fontSize]: '8px',
2224
- [vars.padding]: `0 ${globalRefs$4.spacing.xs}`
2364
+ [vars.padding]: `0 ${globalRefs$6.spacing.xs}`
2225
2365
  },
2226
2366
  sm: {
2227
2367
  [vars.height]: '20px',
2228
2368
  [vars.fontSize]: '10px',
2229
- [vars.padding]: `0 ${globalRefs$4.spacing.sm}`
2369
+ [vars.padding]: `0 ${globalRefs$6.spacing.sm}`
2230
2370
  },
2231
2371
  md: {
2232
2372
  [vars.height]: '30px',
2233
2373
  [vars.fontSize]: '14px',
2234
- [vars.padding]: `0 ${globalRefs$4.spacing.md}`
2374
+ [vars.padding]: `0 ${globalRefs$6.spacing.md}`
2235
2375
  },
2236
2376
  lg: {
2237
2377
  [vars.height]: '40px',
2238
2378
  [vars.fontSize]: '16px',
2239
- [vars.padding]: `0 ${globalRefs$4.spacing.lg}`
2379
+ [vars.padding]: `0 ${globalRefs$6.spacing.lg}`
2240
2380
  },
2241
2381
  xl: {
2242
2382
  [vars.height]: '50px',
2243
2383
  [vars.fontSize]: '25px',
2244
- [vars.padding]: `0 ${globalRefs$4.spacing.xl}`
2384
+ [vars.padding]: `0 ${globalRefs$6.spacing.xl}`
2245
2385
  }
2246
2386
  },
2247
2387
 
2248
- [vars.color]: globalRefs$4.colors.surface.contrast,
2249
- [vars.placeholderColor]: globalRefs$4.colors.surface.contrast,
2388
+ [vars.color]: globalRefs$6.colors.surface.contrast,
2389
+ [vars.placeholderColor]: globalRefs$6.colors.surface.contrast,
2250
2390
 
2251
- [vars.backgroundColor]: globalRefs$4.colors.surface.light,
2391
+ [vars.backgroundColor]: globalRefs$6.colors.surface.light,
2252
2392
 
2253
2393
  [vars.borderWidth]: '1px',
2254
2394
  [vars.borderStyle]: 'solid',
2255
2395
  [vars.borderColor]: 'transparent',
2256
- [vars.borderRadius]: globalRefs$4.radius.sm,
2257
-
2258
- _borderOffset: {
2259
- [vars.outlineOffset]: '2px'
2260
- },
2396
+ [vars.borderRadius]: globalRefs$6.radius.sm,
2261
2397
 
2262
2398
  _disabled: {
2263
- [vars.color]: globalRefs$4.colors.surface.dark,
2264
- [vars.placeholderColor]: globalRefs$4.colors.surface.light,
2265
- [vars.backgroundColor]: globalRefs$4.colors.surface.main
2399
+ [vars.color]: globalRefs$6.colors.surface.dark,
2400
+ [vars.placeholderColor]: globalRefs$6.colors.surface.light,
2401
+ [vars.backgroundColor]: globalRefs$6.colors.surface.main
2266
2402
  },
2267
2403
 
2268
2404
  _fullWidth: {
@@ -2270,27 +2406,27 @@ const textField = (vars) => ({
2270
2406
  },
2271
2407
 
2272
2408
  _focused: {
2273
- [vars.outline]: `2px solid ${globalRefs$4.colors.surface.main}`
2409
+ [vars.outline]: `2px solid ${globalRefs$6.colors.surface.main}`
2274
2410
  },
2275
2411
 
2276
2412
  _bordered: {
2277
- [vars.borderColor]: globalRefs$4.colors.surface.main
2413
+ [vars.borderColor]: globalRefs$6.colors.surface.main
2278
2414
  },
2279
2415
 
2280
2416
  _hasErrorMessage: {
2281
- [vars.borderColor]: globalRefs$4.colors.error.main,
2282
- [vars.color]: globalRefs$4.colors.error.main,
2283
- [vars.placeholderColor]: globalRefs$4.colors.error.light
2417
+ [vars.borderColor]: globalRefs$6.colors.error.main,
2418
+ [vars.color]: globalRefs$6.colors.error.main,
2419
+ [vars.placeholderColor]: globalRefs$6.colors.error.light
2284
2420
  }
2285
2421
  });
2286
2422
 
2287
- var textField$1 = textField(vars$9);
2423
+ var textField$1 = textField(vars$b);
2288
2424
 
2289
- const vars$8 = PasswordField.cssVarList;
2425
+ const vars$a = PasswordField.cssVarList;
2290
2426
 
2291
2427
  const passwordField = {
2292
- ...textField(vars$8),
2293
- [vars$8.revealCursor]: 'pointer'
2428
+ ...textField(vars$a),
2429
+ [vars$a.revealCursor]: 'pointer'
2294
2430
  };
2295
2431
 
2296
2432
  const numberField = {
@@ -2301,60 +2437,56 @@ const emailField = {
2301
2437
  ...textField(EmailField.cssVarList)
2302
2438
  };
2303
2439
 
2304
- const globalRefs$3 = getThemeRefs(globals);
2305
- const vars$7 = TextArea.cssVarList;
2440
+ const globalRefs$5 = getThemeRefs(globals);
2441
+ const vars$9 = TextArea.cssVarList;
2306
2442
 
2307
2443
  const textArea = {
2308
- [vars$7.color]: globalRefs$3.colors.primary.main,
2309
- [vars$7.backgroundColor]: globalRefs$3.colors.surface.light,
2310
- [vars$7.resize]: 'vertical',
2444
+ [vars$9.color]: globalRefs$5.colors.primary.main,
2445
+ [vars$9.backgroundColor]: globalRefs$5.colors.surface.light,
2446
+ [vars$9.resize]: 'vertical',
2311
2447
 
2312
- [vars$7.borderRadius]: globalRefs$3.radius.sm,
2313
- [vars$7.borderWidth]: '1px',
2314
- [vars$7.borderStyle]: 'solid',
2315
- [vars$7.borderColor]: 'transparent',
2316
-
2317
- _borderOffset: {
2318
- [vars$7.outlineOffset]: '2px'
2319
- },
2448
+ [vars$9.borderRadius]: globalRefs$5.radius.sm,
2449
+ [vars$9.borderWidth]: '1px',
2450
+ [vars$9.borderStyle]: 'solid',
2451
+ [vars$9.borderColor]: 'transparent',
2320
2452
 
2321
2453
  _bordered: {
2322
- [vars$7.borderColor]: globalRefs$3.colors.surface.main
2454
+ [vars$9.borderColor]: globalRefs$5.colors.surface.main
2323
2455
  },
2324
2456
 
2325
2457
  _focused: {
2326
- [vars$7.outline]: `2px solid ${globalRefs$3.colors.surface.main}`
2458
+ [vars$9.outline]: `2px solid ${globalRefs$5.colors.surface.main}`
2327
2459
  },
2328
2460
 
2329
2461
  _fullWidth: {
2330
- [vars$7.width]: '100%'
2462
+ [vars$9.width]: '100%'
2331
2463
  },
2332
2464
 
2333
2465
  _disabled: {
2334
- [vars$7.cursor]: 'not-allowed'
2466
+ [vars$9.cursor]: 'not-allowed'
2335
2467
  },
2336
2468
 
2337
2469
  _invalid: {
2338
- [vars$7.outline]: `2px solid ${globalRefs$3.colors.error.main}`
2470
+ [vars$9.outline]: `2px solid ${globalRefs$5.colors.error.main}`
2339
2471
  }
2340
2472
  };
2341
2473
 
2342
- const vars$6 = Checkbox.cssVarList;
2474
+ const vars$8 = Checkbox.cssVarList;
2343
2475
 
2344
2476
  const checkbox = {
2345
- [vars$6.cursor]: 'pointer'
2477
+ [vars$8.cursor]: 'pointer'
2346
2478
  };
2347
2479
 
2348
- const vars$5 = SwitchToggle.cssVarList;
2480
+ const vars$7 = SwitchToggle.cssVarList;
2349
2481
 
2350
2482
  const swtichToggle = {
2351
- [vars$5.width]: '70px',
2352
- [vars$5.cursor]: [{}, { selector: '> label' }]
2483
+ [vars$7.width]: '70px',
2484
+ [vars$7.cursor]: [{}, { selector: '> label' }]
2353
2485
  };
2354
2486
 
2355
- const globalRefs$2 = getThemeRefs(globals);
2487
+ const globalRefs$4 = getThemeRefs(globals);
2356
2488
 
2357
- const vars$4 = Container.cssVarList;
2489
+ const vars$6 = Container.cssVarList;
2358
2490
 
2359
2491
  const verticalAlignment = {
2360
2492
  start: { verticalAlignment: 'start' },
@@ -2377,31 +2509,31 @@ const [helperTheme, helperRefs, helperVars] =
2377
2509
 
2378
2510
  const container = {
2379
2511
  ...helperTheme,
2380
- [vars$4.display]: 'flex',
2512
+ [vars$6.display]: 'flex',
2381
2513
  verticalPadding: {
2382
- sm: { [vars$4.verticalPadding]: '5px' },
2383
- md: { [vars$4.verticalPadding]: '10px' },
2384
- lg: { [vars$4.verticalPadding]: '20px' },
2514
+ sm: { [vars$6.verticalPadding]: '5px' },
2515
+ md: { [vars$6.verticalPadding]: '10px' },
2516
+ lg: { [vars$6.verticalPadding]: '20px' },
2385
2517
  },
2386
2518
  horizontalPadding: {
2387
- sm: { [vars$4.horizontalPadding]: '5px' },
2388
- md: { [vars$4.horizontalPadding]: '10px' },
2389
- lg: { [vars$4.horizontalPadding]: '20px' },
2519
+ sm: { [vars$6.horizontalPadding]: '5px' },
2520
+ md: { [vars$6.horizontalPadding]: '10px' },
2521
+ lg: { [vars$6.horizontalPadding]: '20px' },
2390
2522
  },
2391
2523
  direction: {
2392
2524
  row: {
2393
- [vars$4.flexDirection]: 'row',
2394
- [vars$4.alignItems]: helperRefs.verticalAlignment,
2395
- [vars$4.justifyContent]: helperRefs.horizontalAlignment,
2525
+ [vars$6.flexDirection]: 'row',
2526
+ [vars$6.alignItems]: helperRefs.verticalAlignment,
2527
+ [vars$6.justifyContent]: helperRefs.horizontalAlignment,
2396
2528
  horizontalAlignment: {
2397
2529
  spaceBetween: { [helperVars.horizontalAlignment]: 'space-between' },
2398
2530
  }
2399
2531
  },
2400
2532
 
2401
2533
  column: {
2402
- [vars$4.flexDirection]: 'column',
2403
- [vars$4.alignItems]: helperRefs.horizontalAlignment,
2404
- [vars$4.justifyContent]: helperRefs.verticalAlignment,
2534
+ [vars$6.flexDirection]: 'column',
2535
+ [vars$6.alignItems]: helperRefs.horizontalAlignment,
2536
+ [vars$6.justifyContent]: helperRefs.verticalAlignment,
2405
2537
  verticalAlignment: {
2406
2538
  spaceBetween: { [helperVars.verticalAlignment]: 'space-between' }
2407
2539
  }
@@ -2410,204 +2542,207 @@ const container = {
2410
2542
 
2411
2543
  spaceBetween: {
2412
2544
  sm: {
2413
- [vars$4.gap]: '10px'
2545
+ [vars$6.gap]: '10px'
2414
2546
  },
2415
2547
  md: {
2416
- [vars$4.gap]: '20px'
2548
+ [vars$6.gap]: '20px'
2417
2549
  },
2418
2550
  lg: {
2419
- [vars$4.gap]: '30px'
2551
+ [vars$6.gap]: '30px'
2420
2552
  }
2421
2553
  },
2422
2554
 
2423
2555
  shadow: {
2424
2556
  sm: {
2425
- [vars$4.boxShadow]: `${globalRefs$2.shadow.wide.sm} ${helperRefs.shadowColor}, ${globalRefs$2.shadow.narrow.sm} ${helperRefs.shadowColor}`
2557
+ [vars$6.boxShadow]: `${globalRefs$4.shadow.wide.sm} ${helperRefs.shadowColor}, ${globalRefs$4.shadow.narrow.sm} ${helperRefs.shadowColor}`
2426
2558
  },
2427
2559
  md: {
2428
- [vars$4.boxShadow]: `${globalRefs$2.shadow.wide.md} ${helperRefs.shadowColor}, ${globalRefs$2.shadow.narrow.md} ${helperRefs.shadowColor}`
2560
+ [vars$6.boxShadow]: `${globalRefs$4.shadow.wide.md} ${helperRefs.shadowColor}, ${globalRefs$4.shadow.narrow.md} ${helperRefs.shadowColor}`
2429
2561
  },
2430
2562
  lg: {
2431
- [vars$4.boxShadow]: `${globalRefs$2.shadow.wide.lg} ${helperRefs.shadowColor}, ${globalRefs$2.shadow.narrow.lg} ${helperRefs.shadowColor}`
2563
+ [vars$6.boxShadow]: `${globalRefs$4.shadow.wide.lg} ${helperRefs.shadowColor}, ${globalRefs$4.shadow.narrow.lg} ${helperRefs.shadowColor}`
2432
2564
  },
2433
2565
  xl: {
2434
- [vars$4.boxShadow]: `${globalRefs$2.shadow.wide.xl} ${helperRefs.shadowColor}, ${globalRefs$2.shadow.narrow.xl} ${helperRefs.shadowColor}`
2566
+ [vars$6.boxShadow]: `${globalRefs$4.shadow.wide.xl} ${helperRefs.shadowColor}, ${globalRefs$4.shadow.narrow.xl} ${helperRefs.shadowColor}`
2435
2567
  },
2436
2568
  '2xl': {
2437
2569
  [helperVars.shadowColor]: '#00000050',
2438
- [vars$4.boxShadow]: `${globalRefs$2.shadow.wide['2xl']} ${helperRefs.shadowColor}`
2570
+ [vars$6.boxShadow]: `${globalRefs$4.shadow.wide['2xl']} ${helperRefs.shadowColor}`
2439
2571
  },
2440
2572
  },
2441
2573
 
2442
2574
  borderRadius: {
2443
2575
  sm: {
2444
- [vars$4.borderRadius]: globalRefs$2.radius.sm
2576
+ [vars$6.borderRadius]: globalRefs$4.radius.sm
2445
2577
  },
2446
2578
  md: {
2447
- [vars$4.borderRadius]: globalRefs$2.radius.md
2579
+ [vars$6.borderRadius]: globalRefs$4.radius.md
2448
2580
  },
2449
2581
  lg: {
2450
- [vars$4.borderRadius]: globalRefs$2.radius.lg
2582
+ [vars$6.borderRadius]: globalRefs$4.radius.lg
2451
2583
  },
2452
2584
  }
2453
2585
  };
2454
2586
 
2455
- const vars$3 = Logo.cssVarList;
2587
+ const vars$5 = Logo.cssVarList;
2456
2588
 
2457
2589
  const logo = {
2458
- [vars$3.fallbackUrl]: 'url(https://content.app.descope.com/assets/flows/noLogoPlaceholder.svg)'
2590
+ [vars$5.fallbackUrl]: 'url(https://content.app.descope.com/assets/flows/noLogoPlaceholder.svg)'
2459
2591
  };
2460
2592
 
2461
- const globalRefs$1 = getThemeRefs(globals);
2593
+ const globalRefs$3 = getThemeRefs(globals);
2462
2594
 
2463
- const vars$2 = Text.cssVarList;
2595
+ const vars$4 = Text.cssVarList;
2464
2596
 
2465
2597
  const text = {
2466
- [vars$2.lineHeight]: '1em',
2467
- [vars$2.display]: 'inline-block',
2468
- [vars$2.textAlign]: 'left',
2469
- [vars$2.color]: globalRefs$1.colors.surface.dark,
2598
+ [vars$4.lineHeight]: '1em',
2599
+ [vars$4.display]: 'inline-block',
2600
+ [vars$4.textAlign]: 'left',
2601
+ [vars$4.color]: globalRefs$3.colors.surface.dark,
2470
2602
  variant: {
2471
2603
  h1: {
2472
- [vars$2.fontSize]: globalRefs$1.typography.h1.size,
2473
- [vars$2.fontWeight]: globalRefs$1.typography.h1.weight,
2474
- [vars$2.fontFamily]: globalRefs$1.typography.h1.font
2604
+ [vars$4.fontSize]: globalRefs$3.typography.h1.size,
2605
+ [vars$4.fontWeight]: globalRefs$3.typography.h1.weight,
2606
+ [vars$4.fontFamily]: globalRefs$3.typography.h1.font
2475
2607
  },
2476
2608
  h2: {
2477
- [vars$2.fontSize]: globalRefs$1.typography.h2.size,
2478
- [vars$2.fontWeight]: globalRefs$1.typography.h2.weight,
2479
- [vars$2.fontFamily]: globalRefs$1.typography.h2.font
2609
+ [vars$4.fontSize]: globalRefs$3.typography.h2.size,
2610
+ [vars$4.fontWeight]: globalRefs$3.typography.h2.weight,
2611
+ [vars$4.fontFamily]: globalRefs$3.typography.h2.font
2480
2612
  },
2481
2613
  h3: {
2482
- [vars$2.fontSize]: globalRefs$1.typography.h3.size,
2483
- [vars$2.fontWeight]: globalRefs$1.typography.h3.weight,
2484
- [vars$2.fontFamily]: globalRefs$1.typography.h3.font
2614
+ [vars$4.fontSize]: globalRefs$3.typography.h3.size,
2615
+ [vars$4.fontWeight]: globalRefs$3.typography.h3.weight,
2616
+ [vars$4.fontFamily]: globalRefs$3.typography.h3.font
2485
2617
  },
2486
2618
  subtitle1: {
2487
- [vars$2.fontSize]: globalRefs$1.typography.subtitle1.size,
2488
- [vars$2.fontWeight]: globalRefs$1.typography.subtitle1.weight,
2489
- [vars$2.fontFamily]: globalRefs$1.typography.subtitle1.font
2619
+ [vars$4.fontSize]: globalRefs$3.typography.subtitle1.size,
2620
+ [vars$4.fontWeight]: globalRefs$3.typography.subtitle1.weight,
2621
+ [vars$4.fontFamily]: globalRefs$3.typography.subtitle1.font
2490
2622
  },
2491
2623
  subtitle2: {
2492
- [vars$2.fontSize]: globalRefs$1.typography.subtitle2.size,
2493
- [vars$2.fontWeight]: globalRefs$1.typography.subtitle2.weight,
2494
- [vars$2.fontFamily]: globalRefs$1.typography.subtitle2.font
2624
+ [vars$4.fontSize]: globalRefs$3.typography.subtitle2.size,
2625
+ [vars$4.fontWeight]: globalRefs$3.typography.subtitle2.weight,
2626
+ [vars$4.fontFamily]: globalRefs$3.typography.subtitle2.font
2495
2627
  },
2496
2628
  body1: {
2497
- [vars$2.fontSize]: globalRefs$1.typography.body1.size,
2498
- [vars$2.fontWeight]: globalRefs$1.typography.body1.weight,
2499
- [vars$2.fontFamily]: globalRefs$1.typography.body1.font
2629
+ [vars$4.fontSize]: globalRefs$3.typography.body1.size,
2630
+ [vars$4.fontWeight]: globalRefs$3.typography.body1.weight,
2631
+ [vars$4.fontFamily]: globalRefs$3.typography.body1.font
2500
2632
  },
2501
2633
  body2: {
2502
- [vars$2.fontSize]: globalRefs$1.typography.body2.size,
2503
- [vars$2.fontWeight]: globalRefs$1.typography.body2.weight,
2504
- [vars$2.fontFamily]: globalRefs$1.typography.body2.font
2634
+ [vars$4.fontSize]: globalRefs$3.typography.body2.size,
2635
+ [vars$4.fontWeight]: globalRefs$3.typography.body2.weight,
2636
+ [vars$4.fontFamily]: globalRefs$3.typography.body2.font
2505
2637
  }
2506
2638
  },
2507
2639
  mode: {
2508
2640
  primary: {
2509
- [vars$2.color]: globalRefs$1.colors.primary.main
2641
+ [vars$4.color]: globalRefs$3.colors.primary.main
2510
2642
  },
2511
2643
  secondary: {
2512
- [vars$2.color]: globalRefs$1.colors.secondary.main
2644
+ [vars$4.color]: globalRefs$3.colors.secondary.main
2513
2645
  },
2514
2646
  error: {
2515
- [vars$2.color]: globalRefs$1.colors.error.main
2647
+ [vars$4.color]: globalRefs$3.colors.error.main
2516
2648
  },
2517
2649
  success: {
2518
- [vars$2.color]: globalRefs$1.colors.success.main
2650
+ [vars$4.color]: globalRefs$3.colors.success.main
2519
2651
  }
2520
2652
  },
2521
2653
  textAlign: {
2522
- right: { [vars$2.textAlign]: 'right' },
2523
- left: { [vars$2.textAlign]: 'left' },
2524
- center: { [vars$2.textAlign]: 'center' }
2654
+ right: { [vars$4.textAlign]: 'right' },
2655
+ left: { [vars$4.textAlign]: 'left' },
2656
+ center: { [vars$4.textAlign]: 'center' }
2525
2657
  },
2526
2658
  _fullWidth: {
2527
- [vars$2.width]: '100%',
2528
- [vars$2.display]: 'block'
2659
+ [vars$4.width]: '100%',
2660
+ [vars$4.display]: 'block'
2529
2661
  },
2530
2662
  _italic: {
2531
- [vars$2.fontStyle]: 'italic'
2663
+ [vars$4.fontStyle]: 'italic'
2532
2664
  },
2533
2665
  _uppercase: {
2534
- [vars$2.textTransform]: 'uppercase'
2666
+ [vars$4.textTransform]: 'uppercase'
2535
2667
  },
2536
2668
  _lowercase: {
2537
- [vars$2.textTransform]: 'lowercase'
2669
+ [vars$4.textTransform]: 'lowercase'
2538
2670
  }
2539
2671
  };
2540
2672
 
2541
- const globalRefs = getThemeRefs(globals);
2542
- const vars$1 = Link.cssVarList;
2673
+ const globalRefs$2 = getThemeRefs(globals);
2674
+ const vars$3 = Link.cssVarList;
2543
2675
 
2544
2676
  const link = {
2545
- [vars$1.cursor]: 'pointer',
2546
- [vars$1.borderBottomWidth]: '2px',
2547
- [vars$1.borderBottomStyle]: 'solid',
2548
- [vars$1.borderBottomColor]: 'transparent',
2549
- [vars$1.color]: globalRefs.colors.primary.main,
2677
+ [vars$3.cursor]: 'pointer',
2678
+ [vars$3.borderBottomWidth]: '2px',
2679
+ [vars$3.borderBottomStyle]: 'solid',
2680
+ [vars$3.borderBottomColor]: 'transparent',
2681
+ [vars$3.color]: globalRefs$2.colors.primary.main,
2550
2682
 
2551
2683
  _hover: {
2552
- [vars$1.borderBottomColor]: globalRefs.colors.primary.main
2684
+ [vars$3.borderBottomColor]: globalRefs$2.colors.primary.main
2553
2685
  },
2554
2686
 
2555
2687
  textAlign: {
2556
- right: { [vars$1.textAlign]: 'right' },
2557
- left: { [vars$1.textAlign]: 'left' },
2558
- center: { [vars$1.textAlign]: 'center' }
2688
+ right: { [vars$3.textAlign]: 'right' },
2689
+ left: { [vars$3.textAlign]: 'left' },
2690
+ center: { [vars$3.textAlign]: 'center' }
2559
2691
  },
2560
2692
 
2561
2693
  _fullWidth: {
2562
- [vars$1.width]: '100%'
2694
+ [vars$3.width]: '100%'
2563
2695
  },
2564
2696
 
2565
2697
  mode: {
2566
2698
  primary: {
2567
- [vars$1.color]: globalRefs.colors.primary.main,
2699
+ [vars$3.color]: globalRefs$2.colors.primary.main,
2568
2700
  _hover: {
2569
- [vars$1.borderBottomColor]: globalRefs.colors.primary.main
2701
+ [vars$3.borderBottomColor]: globalRefs$2.colors.primary.main
2570
2702
  }
2571
2703
  },
2572
2704
  secondary: {
2573
- [vars$1.color]: globalRefs.colors.secondary.main,
2705
+ [vars$3.color]: globalRefs$2.colors.secondary.main,
2574
2706
  _hover: {
2575
- [vars$1.borderBottomColor]: globalRefs.colors.secondary.main
2707
+ [vars$3.borderBottomColor]: globalRefs$2.colors.secondary.main
2576
2708
  }
2577
2709
  },
2578
2710
  error: {
2579
- [vars$1.color]: globalRefs.colors.error.main,
2711
+ [vars$3.color]: globalRefs$2.colors.error.main,
2580
2712
  _hover: {
2581
- [vars$1.borderBottomColor]: globalRefs.colors.error.main
2713
+ [vars$3.borderBottomColor]: globalRefs$2.colors.error.main
2582
2714
  }
2583
2715
  },
2584
2716
  success: {
2585
- [vars$1.color]: globalRefs.colors.success.main,
2717
+ [vars$3.color]: globalRefs$2.colors.success.main,
2586
2718
  _hover: {
2587
- [vars$1.borderBottomColor]: globalRefs.colors.success.main
2719
+ [vars$3.borderBottomColor]: globalRefs$2.colors.success.main
2588
2720
  }
2589
2721
  }
2590
2722
  }
2591
2723
  };
2592
2724
 
2593
- const vars = Divider.cssVarList;
2725
+ const vars$2 = Divider.cssVarList;
2594
2726
 
2595
2727
  const divider = {
2596
- [vars.alignItems]: 'center',
2597
- [vars.height]: '2px',
2598
- [vars.backgroundColor]: 'currentColor',
2599
- [vars.opacity]: '0.2',
2600
- [vars.padding]: '0 10px',
2601
- [vars.width]: '100%',
2602
- [vars.flexDirection]: 'row',
2603
- [vars.alignSelf]: 'strech',
2604
- [vars.textWidth]: 'fit-content',
2728
+ [vars$2.alignItems]: 'center',
2729
+ [vars$2.height]: '2px',
2730
+ [vars$2.backgroundColor]: 'currentColor',
2731
+ [vars$2.opacity]: '0.2',
2732
+ [vars$2.padding]: '0 10px',
2733
+ [vars$2.width]: '100%',
2734
+ [vars$2.flexDirection]: 'row',
2735
+ [vars$2.alignSelf]: 'strech',
2736
+ [vars$2.textWidth]: 'fit-content',
2605
2737
  _vertical: {
2606
- [vars.width]: '2px',
2607
- [vars.padding]: '10px 0',
2608
- [vars.flexDirection]: 'column',
2609
- [vars.minHeight]: '200px',
2610
- [vars.textWidth]: 'max-content'
2738
+ [vars$2.width]: '2px',
2739
+ [vars$2.padding]: '10px 0',
2740
+ [vars$2.flexDirection]: 'column',
2741
+ [vars$2.minHeight]: '200px',
2742
+ [vars$2.textWidth]: 'max-content'
2743
+ },
2744
+ _italic: {
2745
+ [vars$2.fontStyle]: 'italic'
2611
2746
  }
2612
2747
  };
2613
2748
 
@@ -2615,6 +2750,107 @@ const passcode = {
2615
2750
  ...textField(Passcode.cssVarList),
2616
2751
  };
2617
2752
 
2753
+ const globalRefs$1 = getThemeRefs(globals);
2754
+
2755
+ const vars$1 = LoaderLinear.cssVarList;
2756
+
2757
+ const loaderLinear = {
2758
+ [vars$1.display]: 'inline-block',
2759
+ [vars$1.barColor]: globalRefs$1.colors.surface.contrast,
2760
+ [vars$1.barWidth]: '20%',
2761
+ [vars$1.surfaceColor]: globalRefs$1.colors.surface.main,
2762
+ [vars$1.borderRadius]: '4px',
2763
+ [vars$1.animationDuration]: '2s',
2764
+ [vars$1.animationTimingFunction]: 'linear',
2765
+ [vars$1.animationIterationCount]: 'infinite',
2766
+ [vars$1.width]: '100%',
2767
+ size: {
2768
+ xs: {
2769
+ [vars$1.height]: '6px'
2770
+ },
2771
+ sm: {
2772
+ [vars$1.height]: '8px'
2773
+ },
2774
+ md: {
2775
+ [vars$1.height]: '10px'
2776
+ },
2777
+ lg: {
2778
+ [vars$1.height]: '12px'
2779
+ },
2780
+ xl: {
2781
+ [vars$1.height]: '14px'
2782
+ }
2783
+ },
2784
+ mode: {
2785
+ primary: {
2786
+ [vars$1.barColor]: globalRefs$1.colors.primary.main
2787
+ },
2788
+ secondary: {
2789
+ [vars$1.barColor]: globalRefs$1.colors.secondary.main
2790
+ }
2791
+ },
2792
+ _hidden: {
2793
+ [vars$1.display]: 'none'
2794
+ }
2795
+ };
2796
+
2797
+ const globalRefs = getThemeRefs(globals);
2798
+
2799
+ const vars = LoaderRadial.cssVarList;
2800
+
2801
+ const loaderRadial = {
2802
+ [vars.display]: 'inline-block',
2803
+ [vars.color]: globalRefs.colors.surface.contrast,
2804
+ [vars.animationDuration]: '2s',
2805
+ [vars.animationTimingFunction]: 'linear',
2806
+ [vars.animationIterationCount]: 'infinite',
2807
+ [vars.spinnerStyle]: 'solid',
2808
+ [vars.spinnerWidth]: '4px',
2809
+ [vars.spinnerRadius]: '50%',
2810
+ [vars.spinnerTopColor]: 'currentColor',
2811
+ [vars.spinnerBottomColor]: 'transparent',
2812
+ [vars.spinnerRightColor]: 'currentColor',
2813
+ [vars.spinnerLeftColor]: 'transparent',
2814
+ size: {
2815
+ xs: {
2816
+ [vars.width]: '20px',
2817
+ [vars.height]: '20px',
2818
+ [vars.spinnerWidth]: '2px'
2819
+ },
2820
+ sm: {
2821
+ [vars.width]: '30px',
2822
+ [vars.height]: '30px',
2823
+ [vars.spinnerWidth]: '3px'
2824
+ },
2825
+ md: {
2826
+ [vars.width]: '40px',
2827
+ [vars.height]: '40px',
2828
+ [vars.spinnerWidth]: '4px'
2829
+ },
2830
+ lg: {
2831
+ [vars.width]: '60px',
2832
+ [vars.height]: '60px',
2833
+ [vars.spinnerWidth]: '5px'
2834
+ },
2835
+ xl: {
2836
+ [vars.width]: '80px',
2837
+ [vars.height]: '80px',
2838
+ [vars.spinnerWidth]: '6px'
2839
+ }
2840
+ },
2841
+ mode: {
2842
+ primary: {
2843
+ [vars.color]: globalRefs.colors.primary.main
2844
+ },
2845
+ secondary: {
2846
+ [vars.color]: globalRefs.colors.secondary.main
2847
+ }
2848
+ },
2849
+ _hidden: {
2850
+ [vars.display]: 'none'
2851
+ }
2852
+ };
2853
+
2618
2854
  var components = {
2619
2855
  button,
2620
2856
  textField: textField$1,
@@ -2629,7 +2865,9 @@ var components = {
2629
2865
  text,
2630
2866
  link,
2631
2867
  divider,
2632
- passcode
2868
+ passcode,
2869
+ loaderRadial,
2870
+ loaderLinear
2633
2871
  };
2634
2872
 
2635
2873
  var index = { globals, components };