@descope/web-components-ui 1.0.245 → 1.0.247

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.
Files changed (42) hide show
  1. package/dist/cjs/index.cjs.js +904 -674
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +2 -1
  4. package/dist/index.esm.js +910 -677
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/umd/1000.js +1 -1
  7. package/dist/umd/9214.js +1 -0
  8. package/dist/umd/9434.js +1 -0
  9. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -0
  10. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-internal-index-js.js +1 -0
  11. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -0
  12. package/dist/umd/button-selection-group-fields-descope-button-selection-group-internal-index-js.js +1 -0
  13. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -0
  14. package/dist/umd/index.js +1 -1
  15. package/package.json +1 -1
  16. package/src/components/{descope-button-selection-group/ButtonSelectionGroupClass.js → button-selection-group-fields/baseButtonSelectionGroup.js} +19 -70
  17. package/src/components/button-selection-group-fields/createBaseButtonSelectionGroupInternalClass.js +101 -0
  18. package/src/components/button-selection-group-fields/descope-button-multi-selection-group/ButtonMultiSelectionGroupClass.js +67 -0
  19. package/src/components/button-selection-group-fields/descope-button-multi-selection-group/index.js +7 -0
  20. package/src/components/button-selection-group-fields/descope-button-multi-selection-group-internal/ButtonMultiSelectionGroupInternalClass.js +106 -0
  21. package/src/components/button-selection-group-fields/descope-button-multi-selection-group-internal/index.js +8 -0
  22. package/src/components/button-selection-group-fields/descope-button-selection-group/ButtonSelectionGroupClass.js +67 -0
  23. package/src/components/{descope-button-selection-group → button-selection-group-fields/descope-button-selection-group}/index.js +2 -2
  24. package/src/components/button-selection-group-fields/descope-button-selection-group-internal/ButtonSelectionGroupInternalClass.js +77 -0
  25. package/src/components/descope-multi-select-combo-box/MultiSelectComboBoxClass.js +2 -2
  26. package/src/index.cjs.js +3 -2
  27. package/src/index.d.ts +2 -1
  28. package/src/index.js +2 -1
  29. package/src/mixins/inputValidationMixin.js +2 -2
  30. package/src/mixins/portalMixin.js +26 -15
  31. package/src/theme/components/buttonSelectionGroup/baseButtonSelectionGroup.js +15 -0
  32. package/src/theme/components/buttonSelectionGroup/buttonMultiSelectionGroup.js +11 -0
  33. package/src/theme/components/buttonSelectionGroup/buttonSelectionGroup.js +3 -12
  34. package/src/theme/components/buttonSelectionGroup/buttonSelectionGroupItem.js +1 -1
  35. package/src/theme/components/index.js +2 -0
  36. package/dist/umd/descope-button-selection-group-descope-button-selection-group-internal-index-js.js +0 -1
  37. package/dist/umd/descope-button-selection-group-descope-button-selection-group-item-index-js.js +0 -1
  38. package/dist/umd/descope-button-selection-group-index-js.js +0 -1
  39. package/src/components/descope-button-selection-group/descope-button-selection-group-internal/ButtonSelectionGroupInternalClass.js +0 -145
  40. /package/src/components/{descope-button-selection-group → button-selection-group-fields}/descope-button-selection-group-internal/index.js +0 -0
  41. /package/src/components/{descope-button-selection-group → button-selection-group-fields}/descope-button-selection-group-item/ButtonSelectionGroupItemClass.js +0 -0
  42. /package/src/components/{descope-button-selection-group → button-selection-group-fields}/descope-button-selection-group-item/index.js +0 -0
package/dist/index.esm.js CHANGED
@@ -761,11 +761,11 @@ const inputValidationMixin = (superclass) =>
761
761
  }
762
762
 
763
763
  get defaultErrorMsgRangeUnderflow() {
764
- return `At least ${this.minItemsSelection} items are required.`;
764
+ return `At least ${this.getAttribute('min-items-selection')} items are required.`;
765
765
  }
766
766
 
767
767
  get defaultErrorMsgRangeOverflow() {
768
- return `At most ${this.maxItemsSelection} items are allowed.`;
768
+ return `At most ${this.getAttribute('max-items-selection')} items are allowed.`;
769
769
  }
770
770
 
771
771
  getErrorMessage(flags) {
@@ -1061,10 +1061,11 @@ const DISPLAY_NAME_SEPARATOR = '_';
1061
1061
 
1062
1062
  const sanitizeSelector = (selector) => selector.replace(/[^\w\s]/gi, '');
1063
1063
 
1064
- const withWaitForShadowRoot = (getRootElementFn) => (that) =>
1065
- new Promise((res) => {
1064
+ const withWaitForShadowRoot = (getRootElementFn) => async (that) => {
1065
+ const ele = await getRootElementFn(that);
1066
+
1067
+ return new Promise((res) => {
1066
1068
  const MAX_RETRIES = 20;
1067
- const ele = getRootElementFn(that);
1068
1069
  let counter = 0;
1069
1070
 
1070
1071
  const check = () => {
@@ -1077,11 +1078,12 @@ const withWaitForShadowRoot = (getRootElementFn) => (that) =>
1077
1078
 
1078
1079
  counter++;
1079
1080
 
1080
- if (!ele.shadowRoot) setTimeout(check);
1081
+ if (!ele?.shadowRoot) setTimeout(check);
1081
1082
  else res(ele.shadowRoot);
1082
1083
  };
1083
1084
  check();
1084
1085
  });
1086
+ };
1085
1087
 
1086
1088
  const portalMixin =
1087
1089
  ({ name, selector, mappings = {}, forward: { attributes = [], include = true } = {} }) =>
@@ -1107,35 +1109,44 @@ const portalMixin =
1107
1109
 
1108
1110
  constructor() {
1109
1111
  // we cannot use "this" before calling "super"
1110
- const getRootElement = (that) => {
1112
+ const getRootElement = async (that) => {
1111
1113
  const baseEle = that.shadowRoot.querySelector(that.baseSelector);
1112
- const portal = selector ? baseEle.shadowRoot.querySelector(selector) : baseEle;
1114
+ if (!selector) {
1115
+ return baseEle;
1116
+ }
1113
1117
 
1114
- return portal;
1118
+ // in case we have a selector, we should first wait for the base element shadow root
1119
+ // and then look for the internal element
1120
+ const baseEleShadowRoot = await withWaitForShadowRoot(() => baseEle)(that);
1121
+ return baseEleShadowRoot.querySelector(selector);
1115
1122
  };
1116
1123
 
1124
+ const getPortalElement = withWaitForShadowRoot(getRootElement);
1125
+
1117
1126
  super({
1118
- getRootElement: withWaitForShadowRoot(getRootElement),
1127
+ getRootElement: getPortalElement,
1119
1128
  componentNameSuffix: DISPLAY_NAME_SEPARATOR + eleDisplayName,
1120
1129
  themeSection: PORTAL_THEME_PREFIX + eleDisplayName,
1121
1130
  baseSelector: ':host',
1122
1131
  });
1123
1132
 
1124
- this.#portalEle = getRootElement(this);
1133
+ this.#portalEle = getPortalElement(this).then((ele) => ele.host);
1125
1134
  }
1126
1135
 
1127
- #handleHoverAttribute() {
1128
- this.#portalEle.onmouseenter = (e) => {
1136
+ async #handleHoverAttribute() {
1137
+ const portalEle = await this.#portalEle;
1138
+ portalEle.onmouseenter = (e) => {
1129
1139
  e.target.setAttribute('hover', 'true');
1130
1140
  };
1131
- this.#portalEle.onmouseleave = (e) => {
1141
+ portalEle.onmouseleave = (e) => {
1132
1142
  e.target.removeAttribute('hover');
1133
1143
  };
1134
1144
  }
1135
1145
 
1136
- init() {
1146
+ async init() {
1137
1147
  super.init?.();
1138
- forwardAttrs(this, this.#portalEle, {
1148
+ const portalEle = await this.#portalEle;
1149
+ forwardAttrs(this, portalEle, {
1139
1150
  [include ? 'includeAttrs' : 'excludeAttrs']: attributes,
1140
1151
  });
1141
1152
 
@@ -1247,7 +1258,7 @@ const clickableMixin = (superclass) =>
1247
1258
  }
1248
1259
  };
1249
1260
 
1250
- const componentName$E = getComponentName('button');
1261
+ const componentName$G = getComponentName('button');
1251
1262
 
1252
1263
  const resetStyles = `
1253
1264
  :host {
@@ -1348,7 +1359,7 @@ const ButtonClass = compose(
1348
1359
  }
1349
1360
  `,
1350
1361
  excludeAttrsSync: ['tabindex'],
1351
- componentName: componentName$E,
1362
+ componentName: componentName$G,
1352
1363
  })
1353
1364
  );
1354
1365
 
@@ -1385,7 +1396,7 @@ loadingIndicatorStyles = `
1385
1396
  }
1386
1397
  `;
1387
1398
 
1388
- customElements.define(componentName$E, ButtonClass);
1399
+ customElements.define(componentName$G, ButtonClass);
1389
1400
 
1390
1401
  const createBaseInputClass = (...args) =>
1391
1402
  compose(
@@ -1395,11 +1406,11 @@ const createBaseInputClass = (...args) =>
1395
1406
  inputEventsDispatchingMixin
1396
1407
  )(createBaseClass(...args));
1397
1408
 
1398
- const componentName$D = getComponentName('boolean-field-internal');
1409
+ const componentName$F = getComponentName('boolean-field-internal');
1399
1410
 
1400
1411
  const forwardAttributes$1 = ['disabled', 'label', 'invalid', 'readonly'];
1401
1412
 
1402
- const BaseInputClass$5 = createBaseInputClass({ componentName: componentName$D, baseSelector: 'div' });
1413
+ const BaseInputClass$5 = createBaseInputClass({ componentName: componentName$F, baseSelector: 'div' });
1403
1414
 
1404
1415
  class BooleanInputInternal extends BaseInputClass$5 {
1405
1416
  static get observedAttributes() {
@@ -1475,14 +1486,14 @@ const booleanFieldMixin = (superclass) =>
1475
1486
 
1476
1487
  const template = document.createElement('template');
1477
1488
  template.innerHTML = `
1478
- <${componentName$D}
1489
+ <${componentName$F}
1479
1490
  tabindex="-1"
1480
1491
  slot="input"
1481
- ></${componentName$D}>
1492
+ ></${componentName$F}>
1482
1493
  `;
1483
1494
 
1484
1495
  this.baseElement.appendChild(template.content.cloneNode(true));
1485
- this.inputElement = this.shadowRoot.querySelector(componentName$D);
1496
+ this.inputElement = this.shadowRoot.querySelector(componentName$F);
1486
1497
  this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
1487
1498
 
1488
1499
  forwardAttrs(this, this.inputElement, {
@@ -1681,7 +1692,7 @@ descope-boolean-field-internal {
1681
1692
  }
1682
1693
  `;
1683
1694
 
1684
- const componentName$C = getComponentName('checkbox');
1695
+ const componentName$E = getComponentName('checkbox');
1685
1696
 
1686
1697
  const {
1687
1698
  host: host$g,
@@ -1787,15 +1798,15 @@ const CheckboxClass = compose(
1787
1798
  }
1788
1799
  `,
1789
1800
  excludeAttrsSync: ['label', 'tabindex'],
1790
- componentName: componentName$C,
1801
+ componentName: componentName$E,
1791
1802
  })
1792
1803
  );
1793
1804
 
1794
- customElements.define(componentName$D, BooleanInputInternal);
1805
+ customElements.define(componentName$F, BooleanInputInternal);
1795
1806
 
1796
- customElements.define(componentName$C, CheckboxClass);
1807
+ customElements.define(componentName$E, CheckboxClass);
1797
1808
 
1798
- const componentName$B = getComponentName('switch-toggle');
1809
+ const componentName$D = getComponentName('switch-toggle');
1799
1810
 
1800
1811
  const {
1801
1812
  host: host$f,
@@ -1927,17 +1938,17 @@ const SwitchToggleClass = compose(
1927
1938
  }
1928
1939
  `,
1929
1940
  excludeAttrsSync: ['label', 'tabindex'],
1930
- componentName: componentName$B,
1941
+ componentName: componentName$D,
1931
1942
  })
1932
1943
  );
1933
1944
 
1934
- customElements.define(componentName$B, SwitchToggleClass);
1945
+ customElements.define(componentName$D, SwitchToggleClass);
1935
1946
 
1936
- const componentName$A = getComponentName('loader-linear');
1947
+ const componentName$C = getComponentName('loader-linear');
1937
1948
 
1938
- class RawLoaderLinear extends createBaseClass({ componentName: componentName$A, baseSelector: ':host > div' }) {
1949
+ class RawLoaderLinear extends createBaseClass({ componentName: componentName$C, baseSelector: ':host > div' }) {
1939
1950
  static get componentName() {
1940
- return componentName$A;
1951
+ return componentName$C;
1941
1952
  }
1942
1953
 
1943
1954
  constructor() {
@@ -1998,11 +2009,11 @@ const LoaderLinearClass = compose(
1998
2009
  componentNameValidationMixin
1999
2010
  )(RawLoaderLinear);
2000
2011
 
2001
- customElements.define(componentName$A, LoaderLinearClass);
2012
+ customElements.define(componentName$C, LoaderLinearClass);
2002
2013
 
2003
- const componentName$z = getComponentName('loader-radial');
2014
+ const componentName$B = getComponentName('loader-radial');
2004
2015
 
2005
- class RawLoaderRadial extends createBaseClass({ componentName: componentName$z, baseSelector: ':host > div' }) {
2016
+ class RawLoaderRadial extends createBaseClass({ componentName: componentName$B, baseSelector: ':host > div' }) {
2006
2017
  constructor() {
2007
2018
  super();
2008
2019
 
@@ -2046,11 +2057,11 @@ const LoaderRadialClass = compose(
2046
2057
  componentNameValidationMixin
2047
2058
  )(RawLoaderRadial);
2048
2059
 
2049
- customElements.define(componentName$z, LoaderRadialClass);
2060
+ customElements.define(componentName$B, LoaderRadialClass);
2050
2061
 
2051
- const componentName$y = getComponentName('container');
2062
+ const componentName$A = getComponentName('container');
2052
2063
 
2053
- class RawContainer extends createBaseClass({ componentName: componentName$y, baseSelector: 'slot' }) {
2064
+ class RawContainer extends createBaseClass({ componentName: componentName$A, baseSelector: 'slot' }) {
2054
2065
  constructor() {
2055
2066
  super();
2056
2067
 
@@ -2102,13 +2113,13 @@ const ContainerClass = compose(
2102
2113
  componentNameValidationMixin
2103
2114
  )(RawContainer);
2104
2115
 
2105
- customElements.define(componentName$y, ContainerClass);
2116
+ customElements.define(componentName$A, ContainerClass);
2106
2117
 
2107
2118
  // eslint-disable-next-line max-classes-per-file
2108
2119
 
2109
- const componentName$x = getComponentName('text');
2120
+ const componentName$z = getComponentName('text');
2110
2121
 
2111
- class RawText extends createBaseClass({ componentName: componentName$x, baseSelector: ':host > slot' }) {
2122
+ class RawText extends createBaseClass({ componentName: componentName$z, baseSelector: ':host > slot' }) {
2112
2123
  constructor() {
2113
2124
  super();
2114
2125
 
@@ -2168,8 +2179,8 @@ const TextClass = compose(
2168
2179
  customTextMixin
2169
2180
  )(RawText);
2170
2181
 
2171
- const componentName$w = getComponentName('divider');
2172
- class RawDivider extends createBaseClass({ componentName: componentName$w, baseSelector: ':host > div' }) {
2182
+ const componentName$y = getComponentName('divider');
2183
+ class RawDivider extends createBaseClass({ componentName: componentName$y, baseSelector: ':host > div' }) {
2173
2184
  constructor() {
2174
2185
  super();
2175
2186
 
@@ -2268,9 +2279,9 @@ const DividerClass = compose(
2268
2279
  componentNameValidationMixin
2269
2280
  )(RawDivider);
2270
2281
 
2271
- customElements.define(componentName$x, TextClass);
2282
+ customElements.define(componentName$z, TextClass);
2272
2283
 
2273
- customElements.define(componentName$w, DividerClass);
2284
+ customElements.define(componentName$y, DividerClass);
2274
2285
 
2275
2286
  const { host: host$c, label: label$9, placeholder: placeholder$3, requiredIndicator: requiredIndicator$9, inputField: inputField$6, input, helperText: helperText$7, errorMessage: errorMessage$9 } =
2276
2287
  {
@@ -2327,9 +2338,9 @@ var textFieldMappings = {
2327
2338
  inputPlaceholderColor: { ...placeholder$3, property: 'color' },
2328
2339
  };
2329
2340
 
2330
- const componentName$v = getComponentName('email-field');
2341
+ const componentName$x = getComponentName('email-field');
2331
2342
 
2332
- const customMixin$7 = (superclass) =>
2343
+ const customMixin$6 = (superclass) =>
2333
2344
  class EmailFieldMixinClass extends superclass {
2334
2345
  init() {
2335
2346
  super.init?.();
@@ -2343,7 +2354,7 @@ const EmailFieldClass = compose(
2343
2354
  draggableMixin,
2344
2355
  composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
2345
2356
  componentNameValidationMixin,
2346
- customMixin$7
2357
+ customMixin$6
2347
2358
  )(
2348
2359
  createProxy({
2349
2360
  slots: ['', 'suffix'],
@@ -2362,15 +2373,15 @@ const EmailFieldClass = compose(
2362
2373
  ${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
2363
2374
  `,
2364
2375
  excludeAttrsSync: ['tabindex'],
2365
- componentName: componentName$v,
2376
+ componentName: componentName$x,
2366
2377
  })
2367
2378
  );
2368
2379
 
2369
- customElements.define(componentName$v, EmailFieldClass);
2380
+ customElements.define(componentName$x, EmailFieldClass);
2370
2381
 
2371
- const componentName$u = getComponentName('link');
2382
+ const componentName$w = getComponentName('link');
2372
2383
 
2373
- class RawLink extends createBaseClass({ componentName: componentName$u, baseSelector: ':host a' }) {
2384
+ class RawLink extends createBaseClass({ componentName: componentName$w, baseSelector: ':host a' }) {
2374
2385
  constructor() {
2375
2386
  super();
2376
2387
 
@@ -2435,7 +2446,7 @@ const LinkClass = compose(
2435
2446
  componentNameValidationMixin
2436
2447
  )(RawLink);
2437
2448
 
2438
- customElements.define(componentName$u, LinkClass);
2449
+ customElements.define(componentName$w, LinkClass);
2439
2450
 
2440
2451
  const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
2441
2452
  let style;
@@ -2487,27 +2498,27 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
2487
2498
  return CssVarImageClass;
2488
2499
  };
2489
2500
 
2490
- const componentName$t = getComponentName('logo');
2501
+ const componentName$v = getComponentName('logo');
2491
2502
 
2492
2503
  const LogoClass = createCssVarImageClass({
2493
- componentName: componentName$t,
2504
+ componentName: componentName$v,
2494
2505
  varName: 'url',
2495
2506
  fallbackVarName: 'fallbackUrl',
2496
2507
  });
2497
2508
 
2498
- customElements.define(componentName$t, LogoClass);
2509
+ customElements.define(componentName$v, LogoClass);
2499
2510
 
2500
- const componentName$s = getComponentName('totp-image');
2511
+ const componentName$u = getComponentName('totp-image');
2501
2512
 
2502
2513
  const TotpImageClass = createCssVarImageClass({
2503
- componentName: componentName$s,
2514
+ componentName: componentName$u,
2504
2515
  varName: 'url',
2505
2516
  fallbackVarName: 'fallbackUrl',
2506
2517
  });
2507
2518
 
2508
- customElements.define(componentName$s, TotpImageClass);
2519
+ customElements.define(componentName$u, TotpImageClass);
2509
2520
 
2510
- const componentName$r = getComponentName('number-field');
2521
+ const componentName$t = getComponentName('number-field');
2511
2522
 
2512
2523
  const NumberFieldClass = compose(
2513
2524
  createStyleMixin({
@@ -2533,11 +2544,11 @@ const NumberFieldClass = compose(
2533
2544
  ${resetInputOverrides('vaadin-number-field', NumberFieldClass.cssVarList)}
2534
2545
  `,
2535
2546
  excludeAttrsSync: ['tabindex'],
2536
- componentName: componentName$r,
2547
+ componentName: componentName$t,
2537
2548
  })
2538
2549
  );
2539
2550
 
2540
- customElements.define(componentName$r, NumberFieldClass);
2551
+ customElements.define(componentName$t, NumberFieldClass);
2541
2552
 
2542
2553
  const focusElement = (ele) => {
2543
2554
  ele?.focus();
@@ -2555,13 +2566,13 @@ const getSanitizedCharacters = (str) => {
2555
2566
 
2556
2567
  /* eslint-disable no-param-reassign */
2557
2568
 
2558
- const componentName$q = getComponentName('passcode-internal');
2569
+ const componentName$s = getComponentName('passcode-internal');
2559
2570
 
2560
2571
  const observedAttributes$5 = ['digits', 'loading'];
2561
2572
 
2562
2573
  const forwardAttributes = ['disabled', 'bordered', 'size', 'invalid', 'readonly'];
2563
2574
 
2564
- const BaseInputClass$4 = createBaseInputClass({ componentName: componentName$q, baseSelector: 'div' });
2575
+ const BaseInputClass$4 = createBaseInputClass({ componentName: componentName$s, baseSelector: 'div' });
2565
2576
 
2566
2577
  class PasscodeInternal extends BaseInputClass$4 {
2567
2578
  static get observedAttributes() {
@@ -2787,11 +2798,11 @@ class PasscodeInternal extends BaseInputClass$4 {
2787
2798
  }
2788
2799
  }
2789
2800
 
2790
- const componentName$p = getComponentName('text-field');
2801
+ const componentName$r = getComponentName('text-field');
2791
2802
 
2792
2803
  const observedAttrs = ['type'];
2793
2804
 
2794
- const customMixin$6 = (superclass) =>
2805
+ const customMixin$5 = (superclass) =>
2795
2806
  class TextFieldClass extends superclass {
2796
2807
  static get observedAttributes() {
2797
2808
  return observedAttrs.concat(superclass.observedAttributes || []);
@@ -2818,7 +2829,7 @@ const TextFieldClass = compose(
2818
2829
  draggableMixin,
2819
2830
  composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
2820
2831
  componentNameValidationMixin,
2821
- customMixin$6
2832
+ customMixin$5
2822
2833
  )(
2823
2834
  createProxy({
2824
2835
  slots: ['prefix', 'suffix'],
@@ -2837,15 +2848,15 @@ const TextFieldClass = compose(
2837
2848
  ${resetInputOverrides('vaadin-text-field', TextFieldClass.cssVarList)}
2838
2849
  `,
2839
2850
  excludeAttrsSync: ['tabindex'],
2840
- componentName: componentName$p,
2851
+ componentName: componentName$r,
2841
2852
  })
2842
2853
  );
2843
2854
 
2844
- const componentName$o = getComponentName('passcode');
2855
+ const componentName$q = getComponentName('passcode');
2845
2856
 
2846
2857
  const observedAttributes$4 = ['digits'];
2847
2858
 
2848
- const customMixin$5 = (superclass) =>
2859
+ const customMixin$4 = (superclass) =>
2849
2860
  class PasscodeMixinClass extends superclass {
2850
2861
  static get observedAttributes() {
2851
2862
  return observedAttributes$4.concat(superclass.observedAttributes || []);
@@ -2860,17 +2871,17 @@ const customMixin$5 = (superclass) =>
2860
2871
  const template = document.createElement('template');
2861
2872
 
2862
2873
  template.innerHTML = `
2863
- <${componentName$q}
2874
+ <${componentName$s}
2864
2875
  bordered="true"
2865
2876
  name="code"
2866
2877
  tabindex="-1"
2867
2878
  slot="input"
2868
- ><slot></slot></${componentName$q}>
2879
+ ><slot></slot></${componentName$s}>
2869
2880
  `;
2870
2881
 
2871
2882
  this.baseElement.appendChild(template.content.cloneNode(true));
2872
2883
 
2873
- this.inputElement = this.shadowRoot.querySelector(componentName$q);
2884
+ this.inputElement = this.shadowRoot.querySelector(componentName$s);
2874
2885
 
2875
2886
  forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size', 'loading'] });
2876
2887
  }
@@ -2941,7 +2952,7 @@ const PasscodeClass = compose(
2941
2952
  draggableMixin,
2942
2953
  composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
2943
2954
  componentNameValidationMixin,
2944
- customMixin$5
2955
+ customMixin$4
2945
2956
  )(
2946
2957
  createProxy({
2947
2958
  slots: [],
@@ -3017,15 +3028,15 @@ const PasscodeClass = compose(
3017
3028
  ${resetInputCursor('vaadin-text-field')}
3018
3029
  `,
3019
3030
  excludeAttrsSync: ['tabindex'],
3020
- componentName: componentName$o,
3031
+ componentName: componentName$q,
3021
3032
  })
3022
3033
  );
3023
3034
 
3024
- customElements.define(componentName$p, TextFieldClass);
3035
+ customElements.define(componentName$r, TextFieldClass);
3025
3036
 
3026
- customElements.define(componentName$q, PasscodeInternal);
3037
+ customElements.define(componentName$s, PasscodeInternal);
3027
3038
 
3028
- customElements.define(componentName$o, PasscodeClass);
3039
+ customElements.define(componentName$q, PasscodeClass);
3029
3040
 
3030
3041
  const passwordDraggableMixin = (superclass) =>
3031
3042
  class PasswordDraggableMixinClass extends superclass {
@@ -3061,7 +3072,7 @@ const passwordDraggableMixin = (superclass) =>
3061
3072
  }
3062
3073
  };
3063
3074
 
3064
- const componentName$n = getComponentName('password');
3075
+ const componentName$p = getComponentName('password');
3065
3076
 
3066
3077
  const {
3067
3078
  host: host$9,
@@ -3192,13 +3203,13 @@ const PasswordClass = compose(
3192
3203
  }
3193
3204
  `,
3194
3205
  excludeAttrsSync: ['tabindex'],
3195
- componentName: componentName$n,
3206
+ componentName: componentName$p,
3196
3207
  })
3197
3208
  );
3198
3209
 
3199
- customElements.define(componentName$n, PasswordClass);
3210
+ customElements.define(componentName$p, PasswordClass);
3200
3211
 
3201
- const componentName$m = getComponentName('text-area');
3212
+ const componentName$o = getComponentName('text-area');
3202
3213
 
3203
3214
  const {
3204
3215
  host: host$8,
@@ -3273,17 +3284,17 @@ const TextAreaClass = compose(
3273
3284
  ${resetInputCursor('vaadin-text-area')}
3274
3285
  `,
3275
3286
  excludeAttrsSync: ['tabindex'],
3276
- componentName: componentName$m,
3287
+ componentName: componentName$o,
3277
3288
  })
3278
3289
  );
3279
3290
 
3280
- customElements.define(componentName$m, TextAreaClass);
3291
+ customElements.define(componentName$o, TextAreaClass);
3281
3292
 
3282
3293
  const observedAttributes$3 = ['src', 'alt'];
3283
3294
 
3284
- const componentName$l = getComponentName('image');
3295
+ const componentName$n = getComponentName('image');
3285
3296
 
3286
- const BaseClass$1 = createBaseClass({ componentName: componentName$l, baseSelector: ':host > img' });
3297
+ const BaseClass$1 = createBaseClass({ componentName: componentName$n, baseSelector: ':host > img' });
3287
3298
  class RawImage extends BaseClass$1 {
3288
3299
  static get observedAttributes() {
3289
3300
  return observedAttributes$3.concat(BaseClass$1.observedAttributes || []);
@@ -3323,9 +3334,9 @@ const ImageClass = compose(
3323
3334
  draggableMixin
3324
3335
  )(RawImage);
3325
3336
 
3326
- customElements.define(componentName$l, ImageClass);
3337
+ customElements.define(componentName$n, ImageClass);
3327
3338
 
3328
- const componentName$k = getComponentName('combo-box');
3339
+ const componentName$m = getComponentName('combo-box');
3329
3340
 
3330
3341
  const ComboBoxMixin = (superclass) =>
3331
3342
  class ComboBoxMixinClass extends superclass {
@@ -3689,12 +3700,12 @@ const ComboBoxClass = compose(
3689
3700
  // and reset items to an empty array, and opening the list box with no items
3690
3701
  // to display.
3691
3702
  excludeAttrsSync: ['tabindex', 'size', 'data'],
3692
- componentName: componentName$k,
3703
+ componentName: componentName$m,
3693
3704
  includeForwardProps: ['items', 'renderer', 'selectedItem'],
3694
3705
  })
3695
3706
  );
3696
3707
 
3697
- customElements.define(componentName$k, ComboBoxClass);
3708
+ customElements.define(componentName$m, ComboBoxClass);
3698
3709
 
3699
3710
  var CountryCodes = [
3700
3711
  {
@@ -4934,7 +4945,7 @@ const comboBoxItem = ({ code, dialCode, name: country }) => `
4934
4945
  </div>
4935
4946
  `;
4936
4947
 
4937
- const componentName$j = getComponentName('phone-field-internal');
4948
+ const componentName$l = getComponentName('phone-field-internal');
4938
4949
 
4939
4950
  const commonAttrs$1 = ['disabled', 'size', 'bordered', 'invalid', 'readonly'];
4940
4951
  const countryAttrs = ['country-input-placeholder', 'default-code', 'restrict-countries'];
@@ -4946,7 +4957,7 @@ const mapAttrs$1 = {
4946
4957
 
4947
4958
  const inputRelatedAttrs$1 = [].concat(commonAttrs$1, countryAttrs, phoneAttrs);
4948
4959
 
4949
- const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$j, baseSelector: 'div' });
4960
+ const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$l, baseSelector: 'div' });
4950
4961
 
4951
4962
  let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$3 {
4952
4963
  static get observedAttributes() {
@@ -5118,14 +5129,14 @@ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$3 {
5118
5129
  }
5119
5130
  };
5120
5131
 
5121
- customElements.define(componentName$j, PhoneFieldInternal$1);
5132
+ customElements.define(componentName$l, PhoneFieldInternal$1);
5122
5133
 
5123
5134
  const textVars$1 = TextFieldClass.cssVarList;
5124
5135
  const comboVars = ComboBoxClass.cssVarList;
5125
5136
 
5126
- const componentName$i = getComponentName('phone-field');
5137
+ const componentName$k = getComponentName('phone-field');
5127
5138
 
5128
- const customMixin$4 = (superclass) =>
5139
+ const customMixin$3 = (superclass) =>
5129
5140
  class PhoneFieldMixinClass extends superclass {
5130
5141
  static get CountryCodes() {
5131
5142
  return CountryCodes;
@@ -5137,15 +5148,15 @@ const customMixin$4 = (superclass) =>
5137
5148
  const template = document.createElement('template');
5138
5149
 
5139
5150
  template.innerHTML = `
5140
- <${componentName$j}
5151
+ <${componentName$l}
5141
5152
  tabindex="-1"
5142
5153
  slot="input"
5143
- ></${componentName$j}>
5154
+ ></${componentName$l}>
5144
5155
  `;
5145
5156
 
5146
5157
  this.baseElement.appendChild(template.content.cloneNode(true));
5147
5158
 
5148
- this.inputElement = this.shadowRoot.querySelector(componentName$j);
5159
+ this.inputElement = this.shadowRoot.querySelector(componentName$l);
5149
5160
 
5150
5161
  forwardAttrs(this.shadowRoot.host, this.inputElement, {
5151
5162
  includeAttrs: [
@@ -5265,7 +5276,7 @@ const PhoneFieldClass = compose(
5265
5276
  }),
5266
5277
  draggableMixin,
5267
5278
  composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
5268
- customMixin$4
5279
+ customMixin$3
5269
5280
  )(
5270
5281
  createProxy({
5271
5282
  slots: [],
@@ -5341,17 +5352,17 @@ const PhoneFieldClass = compose(
5341
5352
  ${resetInputLabelPosition('vaadin-text-field')}
5342
5353
  `,
5343
5354
  excludeAttrsSync: ['tabindex'],
5344
- componentName: componentName$i,
5355
+ componentName: componentName$k,
5345
5356
  })
5346
5357
  );
5347
5358
 
5348
- customElements.define(componentName$i, PhoneFieldClass);
5359
+ customElements.define(componentName$k, PhoneFieldClass);
5349
5360
 
5350
5361
  const getCountryByCodeId = (countryCode) => {
5351
5362
  return CountryCodes.find((c) => c.code === countryCode)?.dialCode;
5352
5363
  };
5353
5364
 
5354
- const componentName$h = getComponentName('phone-field-internal-input-box');
5365
+ const componentName$j = getComponentName('phone-field-internal-input-box');
5355
5366
 
5356
5367
  const observedAttributes$2 = [
5357
5368
  'disabled',
@@ -5365,7 +5376,7 @@ const mapAttrs = {
5365
5376
  'phone-input-placeholder': 'placeholder',
5366
5377
  };
5367
5378
 
5368
- const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$h, baseSelector: 'div' });
5379
+ const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$j, baseSelector: 'div' });
5369
5380
 
5370
5381
  class PhoneFieldInternal extends BaseInputClass$2 {
5371
5382
  static get observedAttributes() {
@@ -5504,13 +5515,13 @@ class PhoneFieldInternal extends BaseInputClass$2 {
5504
5515
  }
5505
5516
  }
5506
5517
 
5507
- customElements.define(componentName$h, PhoneFieldInternal);
5518
+ customElements.define(componentName$j, PhoneFieldInternal);
5508
5519
 
5509
5520
  const textVars = TextFieldClass.cssVarList;
5510
5521
 
5511
- const componentName$g = getComponentName('phone-input-box-field');
5522
+ const componentName$i = getComponentName('phone-input-box-field');
5512
5523
 
5513
- const customMixin$3 = (superclass) =>
5524
+ const customMixin$2 = (superclass) =>
5514
5525
  class PhoneInputBoxFieldMixinClass extends superclass {
5515
5526
  static get CountryCodes() {
5516
5527
  return CountryCodes;
@@ -5522,15 +5533,15 @@ const customMixin$3 = (superclass) =>
5522
5533
  const template = document.createElement('template');
5523
5534
 
5524
5535
  template.innerHTML = `
5525
- <${componentName$h}
5536
+ <${componentName$j}
5526
5537
  tabindex="-1"
5527
5538
  slot="input"
5528
- ></${componentName$h}>
5539
+ ></${componentName$j}>
5529
5540
  `;
5530
5541
 
5531
5542
  this.baseElement.appendChild(template.content.cloneNode(true));
5532
5543
 
5533
- this.inputElement = this.shadowRoot.querySelector(componentName$h);
5544
+ this.inputElement = this.shadowRoot.querySelector(componentName$j);
5534
5545
 
5535
5546
  forwardAttrs(this.shadowRoot.host, this.inputElement, {
5536
5547
  includeAttrs: [
@@ -5597,7 +5608,7 @@ const PhoneFieldInputBoxClass = compose(
5597
5608
  }),
5598
5609
  draggableMixin,
5599
5610
  composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
5600
- customMixin$3
5611
+ customMixin$2
5601
5612
  )(
5602
5613
  createProxy({
5603
5614
  slots: [],
@@ -5663,17 +5674,17 @@ const PhoneFieldInputBoxClass = compose(
5663
5674
  ${resetInputLabelPosition('vaadin-text-field')}
5664
5675
  `,
5665
5676
  excludeAttrsSync: ['tabindex'],
5666
- componentName: componentName$g,
5677
+ componentName: componentName$i,
5667
5678
  })
5668
5679
  );
5669
5680
 
5670
- customElements.define(componentName$g, PhoneFieldInputBoxClass);
5681
+ customElements.define(componentName$i, PhoneFieldInputBoxClass);
5671
5682
 
5672
- const componentName$f = getComponentName('new-password-internal');
5683
+ const componentName$h = getComponentName('new-password-internal');
5673
5684
 
5674
- const componentName$e = getComponentName('new-password');
5685
+ const componentName$g = getComponentName('new-password');
5675
5686
 
5676
- const customMixin$2 = (superclass) =>
5687
+ const customMixin$1 = (superclass) =>
5677
5688
  class NewPasswordMixinClass extends superclass {
5678
5689
  init() {
5679
5690
  super.init?.();
@@ -5681,16 +5692,16 @@ const customMixin$2 = (superclass) =>
5681
5692
  const template = document.createElement('template');
5682
5693
 
5683
5694
  template.innerHTML = `
5684
- <${componentName$f}
5695
+ <${componentName$h}
5685
5696
  name="new-password"
5686
5697
  tabindex="-1"
5687
5698
  slot="input"
5688
- ></${componentName$f}>
5699
+ ></${componentName$h}>
5689
5700
  `;
5690
5701
 
5691
5702
  this.baseElement.appendChild(template.content.cloneNode(true));
5692
5703
 
5693
- this.inputElement = this.shadowRoot.querySelector(componentName$f);
5704
+ this.inputElement = this.shadowRoot.querySelector(componentName$h);
5694
5705
 
5695
5706
  forwardAttrs(this, this.inputElement, {
5696
5707
  includeAttrs: [
@@ -5745,7 +5756,7 @@ const NewPasswordClass = compose(
5745
5756
  }),
5746
5757
  draggableMixin,
5747
5758
  composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
5748
- customMixin$2
5759
+ customMixin$1
5749
5760
  )(
5750
5761
  createProxy({
5751
5762
  slots: [],
@@ -5797,7 +5808,7 @@ const NewPasswordClass = compose(
5797
5808
  }
5798
5809
  `,
5799
5810
  excludeAttrsSync: ['tabindex'],
5800
- componentName: componentName$e,
5811
+ componentName: componentName$g,
5801
5812
  })
5802
5813
  );
5803
5814
 
@@ -5822,7 +5833,7 @@ const commonAttrs = [
5822
5833
 
5823
5834
  const inputRelatedAttrs = [].concat(commonAttrs, passwordInputAttrs, confirmInputAttrs);
5824
5835
 
5825
- const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$f, baseSelector: 'div' });
5836
+ const BaseInputClass$1 = createBaseInputClass({ componentName: componentName$h, baseSelector: 'div' });
5826
5837
 
5827
5838
  class NewPasswordInternal extends BaseInputClass$1 {
5828
5839
  static get observedAttributes() {
@@ -5987,16 +5998,16 @@ class NewPasswordInternal extends BaseInputClass$1 {
5987
5998
  }
5988
5999
  }
5989
6000
 
5990
- customElements.define(componentName$f, NewPasswordInternal);
6001
+ customElements.define(componentName$h, NewPasswordInternal);
5991
6002
 
5992
- customElements.define(componentName$e, NewPasswordClass);
6003
+ customElements.define(componentName$g, NewPasswordClass);
5993
6004
 
5994
- const componentName$d = getComponentName('recaptcha');
6005
+ const componentName$f = getComponentName('recaptcha');
5995
6006
 
5996
6007
  const observedAttributes$1 = ['enabled', 'site-key', 'action', 'enterprise'];
5997
6008
 
5998
6009
  const BaseClass = createBaseClass({
5999
- componentName: componentName$d,
6010
+ componentName: componentName$f,
6000
6011
  baseSelector: ':host > div',
6001
6012
  });
6002
6013
  class RawRecaptcha extends BaseClass {
@@ -6148,7 +6159,7 @@ class RawRecaptcha extends BaseClass {
6148
6159
 
6149
6160
  const RecaptchaClass = compose(draggableMixin)(RawRecaptcha);
6150
6161
 
6151
- customElements.define(componentName$d, RecaptchaClass);
6162
+ customElements.define(componentName$f, RecaptchaClass);
6152
6163
 
6153
6164
  const getFileBase64 = (fileObj) => {
6154
6165
  return new Promise((resolve) => {
@@ -6162,7 +6173,7 @@ const getFilename = (fileObj) => {
6162
6173
  return fileObj.name.replace(/^.*\\/, '');
6163
6174
  };
6164
6175
 
6165
- const componentName$c = getComponentName('upload-file');
6176
+ const componentName$e = getComponentName('upload-file');
6166
6177
 
6167
6178
  const observedAttributes = [
6168
6179
  'title',
@@ -6177,7 +6188,7 @@ const observedAttributes = [
6177
6188
  'icon',
6178
6189
  ];
6179
6190
 
6180
- const BaseInputClass = createBaseInputClass({ componentName: componentName$c, baseSelector: ':host > div' });
6191
+ const BaseInputClass = createBaseInputClass({ componentName: componentName$e, baseSelector: ':host > div' });
6181
6192
 
6182
6193
  class RawUploadFile extends BaseInputClass {
6183
6194
  static get observedAttributes() {
@@ -6392,48 +6403,113 @@ const UploadFileClass = compose(
6392
6403
  componentNameValidationMixin
6393
6404
  )(RawUploadFile);
6394
6405
 
6395
- customElements.define(componentName$c, UploadFileClass);
6406
+ customElements.define(componentName$e, UploadFileClass);
6396
6407
 
6397
- const componentName$b = getComponentName('button-selection-group-internal');
6408
+ const createBaseButtonSelectionGroupInternalClass = (componentName) => {
6409
+ class BaseButtonSelectionGroupInternalClass extends createBaseInputClass({
6410
+ componentName,
6411
+ baseSelector: 'slot',
6412
+ }) {
6413
+ constructor() {
6414
+ super();
6398
6415
 
6399
- class ButtonSelectionGroupInternalClass extends createBaseInputClass({
6400
- componentName: componentName$b,
6401
- baseSelector: 'slot',
6402
- }) {
6403
- constructor() {
6404
- super();
6416
+ this.innerHTML = `
6417
+ <style>
6418
+ slot {
6419
+ box-sizing: border-box;
6420
+ width: 100%;
6421
+ display: flex;
6422
+ flex-wrap: wrap;
6423
+ }
6424
+ </style>
6425
+ <slot part="wrapper"></slot>
6426
+ `;
6427
+ }
6405
6428
 
6406
- this.innerHTML = `
6407
- <style>
6408
- slot {
6409
- box-sizing: border-box;
6410
- width: 100%;
6411
- display: flex;
6412
- flex-wrap: wrap;
6429
+ dispatchChange = createDispatchEvent.bind(this, 'change');
6430
+
6431
+ get items() {
6432
+ return this.querySelector('slot').assignedElements();
6413
6433
  }
6414
- </style>
6415
- <slot part="wrapper"></slot>
6416
- `;
6417
- }
6418
6434
 
6419
- #dispatchChange = createDispatchEvent.bind(this, 'change');
6435
+ get isReadonly() {
6436
+ return this.getAttribute('readonly') === 'true';
6437
+ }
6420
6438
 
6421
- get items() {
6422
- return this.querySelector('slot').assignedElements();
6423
- }
6439
+ get size() {
6440
+ return this.getAttribute('size') || 'md';
6441
+ }
6442
+
6443
+ // eslint-disable-next-line getter-return, class-methods-use-this
6444
+ get value() {
6445
+ // eslint-disable-next-line no-console
6446
+ console.warn('get value', 'is not implemented');
6447
+ }
6448
+
6449
+ // eslint-disable-next-line class-methods-use-this
6450
+ set value(value) {
6451
+ // eslint-disable-next-line no-console
6452
+ console.warn('set value', 'is not implemented');
6453
+ }
6454
+
6455
+ onSizeChange() {
6456
+ this.items.forEach((item) => {
6457
+ item.setAttribute('size', this.size);
6458
+ });
6459
+ }
6460
+
6461
+ onReadOnlyChange() {
6462
+ this.querySelector('slot').toggleAttribute('inert', this.isReadonly);
6463
+ }
6464
+
6465
+ // eslint-disable-next-line class-methods-use-this
6466
+ getValidity() {
6467
+ // eslint-disable-next-line no-console
6468
+ console.warn('getValidity', 'is not implemented');
6469
+ }
6424
6470
 
6425
- get isReadonly() {
6426
- return this.getAttribute('readonly') === 'true';
6471
+ onObservedAttributeChange(attrs) {
6472
+ attrs.forEach((attr) => {
6473
+ switch (attr) {
6474
+ case 'size':
6475
+ this.onSizeChange();
6476
+ break;
6477
+ case 'readonly':
6478
+ this.onReadOnlyChange();
6479
+ break;
6480
+ }
6481
+ });
6482
+ }
6483
+
6484
+ init() {
6485
+ // we are adding listeners before calling to super because it's stopping the events
6486
+ this.addEventListener('focus', (e) => {
6487
+ // we want to ignore focus events we are dispatching
6488
+ if (e.isTrusted) {
6489
+ this.items[0]?.focus();
6490
+ }
6491
+ });
6492
+
6493
+ super.init?.();
6494
+
6495
+ observeAttributes(this, this.onObservedAttributeChange.bind(this), {
6496
+ includeAttrs: ['size', 'readonly'],
6497
+ });
6498
+ }
6427
6499
  }
6428
6500
 
6501
+ return BaseButtonSelectionGroupInternalClass;
6502
+ };
6503
+
6504
+ const componentName$d = getComponentName('button-selection-group-internal');
6505
+
6506
+ class ButtonSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
6507
+ componentName$d
6508
+ ) {
6429
6509
  getSelectedNode() {
6430
6510
  return this.items.find((item) => item.hasAttribute('selected'));
6431
6511
  }
6432
6512
 
6433
- get size() {
6434
- return this.getAttribute('size') || 'md';
6435
- }
6436
-
6437
6513
  get allowDeselect() {
6438
6514
  return this.getAttribute('allow-deselect') === 'true';
6439
6515
  }
@@ -6449,7 +6525,7 @@ class ButtonSelectionGroupInternalClass extends createBaseInputClass({
6449
6525
  } else {
6450
6526
  this.setSelected(e.target);
6451
6527
  }
6452
- this.#dispatchChange();
6528
+ this.dispatchChange();
6453
6529
  }
6454
6530
  }
6455
6531
 
@@ -6460,15 +6536,6 @@ class ButtonSelectionGroupInternalClass extends createBaseInputClass({
6460
6536
  }
6461
6537
  }
6462
6538
 
6463
- get value() {
6464
- return this.getSelectedNode()?.value || '';
6465
- }
6466
-
6467
- set value(value) {
6468
- const node = this.items.find((child) => child.value === value);
6469
- this.setSelected(node);
6470
- }
6471
-
6472
6539
  get defaultValue() {
6473
6540
  return this.getAttribute('default-value');
6474
6541
  }
@@ -6483,14 +6550,13 @@ class ButtonSelectionGroupInternalClass extends createBaseInputClass({
6483
6550
  });
6484
6551
  }
6485
6552
 
6486
- onSizeChange() {
6487
- this.items.forEach((item) => {
6488
- item.setAttribute('size', this.size);
6489
- });
6553
+ get value() {
6554
+ return this.getSelectedNode()?.value || '';
6490
6555
  }
6491
6556
 
6492
- onReadOnlyChange() {
6493
- this.querySelector('slot').toggleAttribute('inert', this.isReadonly);
6557
+ set value(value) {
6558
+ const node = this.items.find((child) => child.value === value);
6559
+ this.setSelected(node);
6494
6560
  }
6495
6561
 
6496
6562
  getValidity() {
@@ -6501,42 +6567,16 @@ class ButtonSelectionGroupInternalClass extends createBaseInputClass({
6501
6567
  return {};
6502
6568
  }
6503
6569
 
6504
- onObservedAttributeChange(attrs) {
6505
- attrs.forEach((attr) => {
6506
- switch (attr) {
6507
- case 'size':
6508
- this.onSizeChange();
6509
- break;
6510
- case 'readonly':
6511
- this.onReadOnlyChange();
6512
- break;
6513
- }
6514
- });
6515
- }
6516
-
6517
6570
  init() {
6518
- // we are adding listeners before calling to super because it's stopping the events
6519
- this.addEventListener('focus', (e) => {
6520
- // we want to ignore focus events we are dispatching
6521
- if (e.isTrusted) {
6522
- this.items[0]?.focus();
6523
- }
6524
- });
6571
+ super.init();
6525
6572
 
6526
- super.init?.();
6527
6573
  this.setDefaultValue();
6528
6574
 
6529
- observeAttributes(this, this.onObservedAttributeChange.bind(this), {
6530
- includeAttrs: ['size', 'readonly'],
6531
- });
6532
-
6533
6575
  this.querySelector('slot').addEventListener('click', this.onClick.bind(this));
6534
6576
  }
6535
6577
  }
6536
6578
 
6537
- const componentName$a = getComponentName('button-selection-group');
6538
-
6539
- const customMixin$1 = (superclass) =>
6579
+ const buttonSelectionGroupBaseMixin = (superclass) =>
6540
6580
  class ButtonSelectionGroupMixinClass extends superclass {
6541
6581
  // eslint-disable-next-line class-methods-use-this
6542
6582
  #renderItem = ({ value, label }) =>
@@ -6606,25 +6646,6 @@ const customMixin$1 = (superclass) =>
6606
6646
 
6607
6647
  init() {
6608
6648
  super.init?.();
6609
- const template = document.createElement('template');
6610
-
6611
- template.innerHTML = `
6612
- <${componentName$b}
6613
- name="button-selection-group"
6614
- slot="input"
6615
- tabindex="-1"
6616
- >
6617
- <slot></slot>
6618
- </${componentName$b}>
6619
- `;
6620
-
6621
- this.baseElement.appendChild(template.content.cloneNode(true));
6622
-
6623
- this.inputElement = this.shadowRoot.querySelector(componentName$b);
6624
-
6625
- forwardAttrs(this, this.inputElement, {
6626
- includeAttrs: ['size', 'default-value', 'allow-deselect'],
6627
- });
6628
6649
 
6629
6650
  this.renderItems();
6630
6651
 
@@ -6643,34 +6664,24 @@ const { host: host$2, label: label$1, requiredIndicator: requiredIndicator$1, in
6643
6664
  host: { selector: () => ':host' },
6644
6665
  label: { selector: '::part(label)' },
6645
6666
  requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
6646
- internalWrapper: { selector: 'descope-button-selection-group-internal slot' },
6667
+ internalWrapper: { selector: () => ':host [part="internal-component"] slot' },
6647
6668
  errorMessage: { selector: '::part(error-message)' },
6648
6669
  };
6649
6670
 
6650
- const ButtonSelectionGroupClass = compose(
6651
- createStyleMixin({
6652
- mappings: {
6653
- hostWidth: { ...host$2, property: 'width' },
6654
- hostDirection: { ...host$2, property: 'direction' },
6655
- fontFamily: host$2,
6656
- labelTextColor: [
6657
- { ...label$1, property: 'color' },
6658
- { ...requiredIndicator$1, property: 'color' },
6659
- ],
6660
- labelRequiredIndicator: { ...requiredIndicator$1, property: 'content' },
6661
- errorMessageTextColor: { ...errorMessage$1, property: 'color' },
6662
- itemsSpacing: { ...internalWrapper, property: 'gap' },
6663
- },
6664
- }),
6665
- draggableMixin,
6666
- composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
6667
- componentNameValidationMixin,
6668
- customMixin$1
6669
- )(
6670
- createProxy({
6671
- slots: [],
6672
- wrappedEleName: 'vaadin-text-field',
6673
- style: () => `
6671
+ const buttonSelectionGroupMappings = {
6672
+ hostWidth: { ...host$2, property: 'width' },
6673
+ hostDirection: { ...host$2, property: 'direction' },
6674
+ fontFamily: host$2,
6675
+ labelTextColor: [
6676
+ { ...label$1, property: 'color' },
6677
+ { ...requiredIndicator$1, property: 'color' },
6678
+ ],
6679
+ labelRequiredIndicator: { ...requiredIndicator$1, property: 'content' },
6680
+ errorMessageTextColor: { ...errorMessage$1, property: 'color' },
6681
+ itemsSpacing: { ...internalWrapper, property: 'gap' },
6682
+ };
6683
+
6684
+ const buttonSelectionGroupStyles = `
6674
6685
  :host {
6675
6686
  display: inline-flex;
6676
6687
  max-width: 100%;
@@ -6683,7 +6694,7 @@ const ButtonSelectionGroupClass = compose(
6683
6694
  background-color: transparent;
6684
6695
  }
6685
6696
 
6686
- descope-button-selection-group-internal {
6697
+ [part="internal-component"] {
6687
6698
  -webkit-mask-image: none;
6688
6699
  padding: 0;
6689
6700
  width: 100%;
@@ -6723,18 +6734,64 @@ const ButtonSelectionGroupClass = compose(
6723
6734
 
6724
6735
  ${resetInputLabelPosition('vaadin-text-field')}
6725
6736
  ${resetInputCursor('vaadin-text-field')}
6726
- `,
6737
+ `;
6738
+
6739
+ const componentName$c = getComponentName('button-selection-group');
6740
+
6741
+ const buttonSelectionGroupMixin = (superclass) =>
6742
+ class ButtonMultiSelectionGroupMixinClass extends superclass {
6743
+ init() {
6744
+ super.init?.();
6745
+ const template = document.createElement('template');
6746
+
6747
+ template.innerHTML = `
6748
+ <${componentName$d}
6749
+ name="button-selection-group"
6750
+ slot="input"
6751
+ tabindex="-1"
6752
+ part="internal-component"
6753
+ >
6754
+ <slot></slot>
6755
+ </${componentName$d}>
6756
+ `;
6757
+
6758
+ this.baseElement.appendChild(template.content.cloneNode(true));
6759
+
6760
+ this.inputElement = this.shadowRoot.querySelector(componentName$d);
6761
+
6762
+ forwardAttrs(this, this.inputElement, {
6763
+ includeAttrs: ['size', 'default-value', 'allow-deselect'],
6764
+ });
6765
+ }
6766
+ };
6767
+
6768
+ const ButtonSelectionGroupClass = compose(
6769
+ createStyleMixin({
6770
+ mappings: {
6771
+ ...buttonSelectionGroupMappings,
6772
+ },
6773
+ }),
6774
+ draggableMixin,
6775
+ composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
6776
+ componentNameValidationMixin,
6777
+ buttonSelectionGroupBaseMixin,
6778
+ buttonSelectionGroupMixin
6779
+ )(
6780
+ createProxy({
6781
+ slots: [],
6782
+ wrappedEleName: 'vaadin-text-field',
6783
+ style: () => buttonSelectionGroupStyles,
6727
6784
  excludeAttrsSync: ['tabindex'],
6728
- componentName: componentName$a,
6785
+ componentName: componentName$c,
6729
6786
  })
6730
6787
  );
6731
6788
 
6732
- customElements.define(componentName$b, ButtonSelectionGroupInternalClass);
6789
+ customElements.define(componentName$d, ButtonSelectionGroupInternalClass);
6733
6790
 
6734
- const componentName$9 = getComponentName('button-selection-group-item');
6791
+ const componentName$b = getComponentName('button-selection-group-item');
6735
6792
 
6736
6793
  class RawSelectItem extends createBaseClass({
6737
- componentName: componentName$9,
6794
+ componentName: componentName$b,
6738
6795
  baseSelector: ':host > descope-button',
6739
6796
  }) {
6740
6797
  get size() {
@@ -6832,43 +6889,201 @@ const ButtonSelectionGroupItemClass = compose(
6832
6889
  componentNameValidationMixin
6833
6890
  )(RawSelectItem);
6834
6891
 
6835
- customElements.define(componentName$9, ButtonSelectionGroupItemClass);
6892
+ customElements.define(componentName$b, ButtonSelectionGroupItemClass);
6836
6893
 
6837
- customElements.define(componentName$a, ButtonSelectionGroupClass);
6894
+ customElements.define(componentName$c, ButtonSelectionGroupClass);
6838
6895
 
6839
- class GridTextColumnClass extends GridSortColumn {
6840
- get sortable() {
6841
- return this.getAttribute('sortable') === 'true';
6842
- }
6896
+ const componentName$a = getComponentName('button-multi-selection-group-internal');
6843
6897
 
6844
- _defaultHeaderRenderer(root, _column) {
6845
- if (this.sortable) {
6846
- super._defaultHeaderRenderer(root, _column);
6898
+ class ButtonMultiSelectionGroupInternalClass extends createBaseButtonSelectionGroupInternalClass(
6899
+ componentName$a
6900
+ ) {
6901
+ #getSelectedNodes() {
6902
+ return this.items.filter((item) => item.hasAttribute('selected'));
6903
+ }
6847
6904
 
6848
- return;
6905
+ onClick(e) {
6906
+ if (e.target !== e.currentTarget) {
6907
+ if (this.#getSelectedNodes().includes(e.target)) {
6908
+ e.target.removeAttribute('selected');
6909
+ } else {
6910
+ e.target.setAttribute('selected', 'true');
6911
+ }
6912
+ this.dispatchChange();
6849
6913
  }
6914
+ }
6850
6915
 
6851
- // eslint-disable-next-line no-param-reassign
6852
- root.innerHTML = this.__getHeader(this.header, this.path);
6916
+ get value() {
6917
+ return this.#getSelectedNodes().map((node) => node.value);
6853
6918
  }
6854
- }
6855
6919
 
6856
- const componentName$8 = getComponentName('grid-text-column');
6920
+ set value(values) {
6921
+ this.items.forEach((item) => {
6922
+ if (values.includes(item.value)) {
6923
+ item.setAttribute('selected', 'true');
6924
+ }
6925
+ });
6926
+ }
6857
6927
 
6858
- customElements.define(componentName$8, GridTextColumnClass);
6928
+ get minItemsSelection() {
6929
+ return parseInt(this.getAttribute('min-items-selection'), 10) || 0;
6930
+ }
6859
6931
 
6860
- /* eslint-disable no-param-reassign */
6932
+ get maxItemsSelection() {
6933
+ return parseInt(this.getAttribute('max-items-selection'), 10) || 0;
6934
+ }
6861
6935
 
6862
- class GridCustomColumnClass extends GridTextColumnClass {
6863
- _defaultRenderer(cell, _col, model) {
6864
- const content = model.item[this.path];
6936
+ // eslint-disable-next-line class-methods-use-this
6937
+ #isValidDataType(data) {
6938
+ const isValid = Array.isArray(data);
6939
+ if (!isValid) {
6940
+ // eslint-disable-next-line no-console
6941
+ console.error('default-values must be an array, received:', data);
6942
+ }
6865
6943
 
6866
- // we get a list of elements that can be used to render the content
6867
- // each element can have a "pattern" attribute which contains regex expression
6868
- // we are going over the elements, and when finding an element which is pattern matches the data,
6869
- // we are cloning this element, and injecting the data as its child
6870
- const contentEle = Array.from(this.children).find((child) => {
6871
- const pattern = child.getAttribute('data-pattern');
6944
+ return isValid;
6945
+ }
6946
+
6947
+ get defaultValues() {
6948
+ const defaultValuesAttr = this.getAttribute('default-values');
6949
+ if (defaultValuesAttr) {
6950
+ try {
6951
+ const defaultValues = JSON.parse(defaultValuesAttr);
6952
+ if (this.#isValidDataType(defaultValues)) {
6953
+ return defaultValues;
6954
+ }
6955
+ } catch (e) {
6956
+ // eslint-disable-next-line no-console
6957
+ console.error('could not parse data string from attribute "default-values" -', e.message);
6958
+ }
6959
+ }
6960
+ return [];
6961
+ }
6962
+
6963
+ setDefaultValues() {
6964
+ // we want to defer this action until all attributes are synced
6965
+ setTimeout(() => {
6966
+ if (this.defaultValues) {
6967
+ this.value = this.defaultValues;
6968
+ this.setCustomValidity();
6969
+ }
6970
+ });
6971
+ }
6972
+
6973
+ getValidity() {
6974
+ if (this.isRequired && !this.value.length) {
6975
+ return { valueMissing: true };
6976
+ }
6977
+ // If the field is not required, no minimum selection can be set
6978
+ if (this.isRequired && this.minItemsSelection && this.value.length < this.minItemsSelection) {
6979
+ return {
6980
+ rangeUnderflow: true,
6981
+ };
6982
+ }
6983
+ if (this.maxItemsSelection && this.value.length > this.maxItemsSelection) {
6984
+ return {
6985
+ rangeOverflow: true,
6986
+ };
6987
+ }
6988
+ return {};
6989
+ }
6990
+
6991
+ init() {
6992
+ super.init();
6993
+
6994
+ this.setDefaultValues();
6995
+
6996
+ this.querySelector('slot').addEventListener('click', this.onClick.bind(this));
6997
+ }
6998
+ }
6999
+
7000
+ const componentName$9 = getComponentName('button-multi-selection-group');
7001
+
7002
+ const buttonMultiSelectionGroupMixin = (superclass) =>
7003
+ class ButtonMultiSelectionGroupMixinClass extends superclass {
7004
+ init() {
7005
+ super.init?.();
7006
+ const template = document.createElement('template');
7007
+
7008
+ template.innerHTML = `
7009
+ <${componentName$a}
7010
+ name="button-selection-group"
7011
+ slot="input"
7012
+ tabindex="-1"
7013
+ part="internal-component"
7014
+ >
7015
+ <slot></slot>
7016
+ </${componentName$a}>
7017
+ `;
7018
+
7019
+ this.baseElement.appendChild(template.content.cloneNode(true));
7020
+
7021
+ this.inputElement = this.shadowRoot.querySelector(componentName$a);
7022
+
7023
+ forwardAttrs(this, this.inputElement, {
7024
+ includeAttrs: ['size', 'default-values', 'min-items-selection', 'max-items-selection'],
7025
+ });
7026
+ }
7027
+ };
7028
+
7029
+ const ButtonMultiSelectionGroupClass = compose(
7030
+ createStyleMixin({
7031
+ mappings: {
7032
+ ...buttonSelectionGroupMappings,
7033
+ },
7034
+ }),
7035
+ draggableMixin,
7036
+ composedProxyInputMixin({ proxyProps: ['value', 'selectionStart'] }),
7037
+ componentNameValidationMixin,
7038
+ buttonSelectionGroupBaseMixin,
7039
+ buttonMultiSelectionGroupMixin
7040
+ )(
7041
+ createProxy({
7042
+ slots: [],
7043
+ wrappedEleName: 'vaadin-text-field',
7044
+ style: () => buttonSelectionGroupStyles,
7045
+ excludeAttrsSync: ['tabindex'],
7046
+ componentName: componentName$9,
7047
+ })
7048
+ );
7049
+
7050
+ customElements.define(componentName$a, ButtonMultiSelectionGroupInternalClass);
7051
+
7052
+ customElements.define(componentName$9, ButtonMultiSelectionGroupClass);
7053
+
7054
+ class GridTextColumnClass extends GridSortColumn {
7055
+ get sortable() {
7056
+ return this.getAttribute('sortable') === 'true';
7057
+ }
7058
+
7059
+ _defaultHeaderRenderer(root, _column) {
7060
+ if (this.sortable) {
7061
+ super._defaultHeaderRenderer(root, _column);
7062
+
7063
+ return;
7064
+ }
7065
+
7066
+ // eslint-disable-next-line no-param-reassign
7067
+ root.innerHTML = this.__getHeader(this.header, this.path);
7068
+ }
7069
+ }
7070
+
7071
+ const componentName$8 = getComponentName('grid-text-column');
7072
+
7073
+ customElements.define(componentName$8, GridTextColumnClass);
7074
+
7075
+ /* eslint-disable no-param-reassign */
7076
+
7077
+ class GridCustomColumnClass extends GridTextColumnClass {
7078
+ _defaultRenderer(cell, _col, model) {
7079
+ const content = model.item[this.path];
7080
+
7081
+ // we get a list of elements that can be used to render the content
7082
+ // each element can have a "pattern" attribute which contains regex expression
7083
+ // we are going over the elements, and when finding an element which is pattern matches the data,
7084
+ // we are cloning this element, and injecting the data as its child
7085
+ const contentEle = Array.from(this.children).find((child) => {
7086
+ const pattern = child.getAttribute('data-pattern');
6872
7087
  if (!pattern) return true;
6873
7088
 
6874
7089
  const regEx = new RegExp(pattern);
@@ -7205,7 +7420,7 @@ customElements.define(componentName$5, GridClass);
7205
7420
 
7206
7421
  const componentName$4 = getComponentName('multi-select-combo-box');
7207
7422
 
7208
- const MultiSelectComboBoxMixin = (superclass) =>
7423
+ const multiSelectComboBoxMixin = (superclass) =>
7209
7424
  class MultiSelectComboBoxMixinClass extends superclass {
7210
7425
  // eslint-disable-next-line class-methods-use-this
7211
7426
  #renderItem = ({ displayName, value, label }) => {
@@ -7628,7 +7843,7 @@ const MultiSelectComboBoxClass = compose(
7628
7843
  }),
7629
7844
  composedProxyInputMixin({ proxyProps: ['selectionStart'], inputEvent: 'selected-items-changed' }),
7630
7845
  componentNameValidationMixin,
7631
- MultiSelectComboBoxMixin
7846
+ multiSelectComboBoxMixin
7632
7847
  )(
7633
7848
  createProxy({
7634
7849
  slots: ['', 'prefix'],
@@ -8079,7 +8294,7 @@ const globals = {
8079
8294
  fonts,
8080
8295
  direction,
8081
8296
  };
8082
- const vars$w = getThemeVars(globals);
8297
+ const vars$x = getThemeVars(globals);
8083
8298
 
8084
8299
  const globalRefs$i = getThemeRefs(globals);
8085
8300
  const compVars$4 = ButtonClass.cssVarList;
@@ -8092,7 +8307,7 @@ const mode = {
8092
8307
  surface: globalRefs$i.colors.surface,
8093
8308
  };
8094
8309
 
8095
- const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$E);
8310
+ const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$G);
8096
8311
 
8097
8312
  const button = {
8098
8313
  ...helperTheme$3,
@@ -8190,7 +8405,7 @@ const button = {
8190
8405
  },
8191
8406
  };
8192
8407
 
8193
- const vars$v = {
8408
+ const vars$w = {
8194
8409
  ...compVars$4,
8195
8410
  ...helperVars$3,
8196
8411
  };
@@ -8198,13 +8413,13 @@ const vars$v = {
8198
8413
  var button$1 = /*#__PURE__*/Object.freeze({
8199
8414
  __proto__: null,
8200
8415
  default: button,
8201
- vars: vars$v
8416
+ vars: vars$w
8202
8417
  });
8203
8418
 
8204
8419
  const componentName$2 = getComponentName('input-wrapper');
8205
8420
  const globalRefs$h = getThemeRefs(globals);
8206
8421
 
8207
- const [theme$1, refs, vars$u] = createHelperVars(
8422
+ const [theme$1, refs, vars$v] = createHelperVars(
8208
8423
  {
8209
8424
  labelTextColor: globalRefs$h.colors.surface.contrast,
8210
8425
  valueTextColor: globalRefs$h.colors.surface.contrast,
@@ -8277,22 +8492,58 @@ var inputWrapper = /*#__PURE__*/Object.freeze({
8277
8492
  __proto__: null,
8278
8493
  default: theme$1,
8279
8494
  refs: refs,
8280
- vars: vars$u
8495
+ vars: vars$v
8281
8496
  });
8282
8497
 
8283
- const vars$t = TextFieldClass.cssVarList;
8498
+ const vars$u = TextFieldClass.cssVarList;
8284
8499
 
8285
8500
  const textField = {
8501
+ [vars$u.hostWidth]: refs.width,
8502
+ [vars$u.hostMinWidth]: refs.minWidth,
8503
+ [vars$u.hostDirection]: refs.direction,
8504
+ [vars$u.fontSize]: refs.fontSize,
8505
+ [vars$u.fontFamily]: refs.fontFamily,
8506
+ [vars$u.labelTextColor]: refs.labelTextColor,
8507
+ [vars$u.labelRequiredIndicator]: refs.requiredIndicator,
8508
+ [vars$u.errorMessageTextColor]: refs.errorMessageTextColor,
8509
+ [vars$u.inputValueTextColor]: refs.valueTextColor,
8510
+ [vars$u.inputPlaceholderColor]: refs.placeholderTextColor,
8511
+ [vars$u.inputBorderWidth]: refs.borderWidth,
8512
+ [vars$u.inputBorderStyle]: refs.borderStyle,
8513
+ [vars$u.inputBorderColor]: refs.borderColor,
8514
+ [vars$u.inputBorderRadius]: refs.borderRadius,
8515
+ [vars$u.inputOutlineWidth]: refs.outlineWidth,
8516
+ [vars$u.inputOutlineStyle]: refs.outlineStyle,
8517
+ [vars$u.inputOutlineColor]: refs.outlineColor,
8518
+ [vars$u.inputOutlineOffset]: refs.outlineOffset,
8519
+ [vars$u.inputBackgroundColor]: refs.backgroundColor,
8520
+ [vars$u.inputHeight]: refs.inputHeight,
8521
+ [vars$u.inputHorizontalPadding]: refs.horizontalPadding,
8522
+ };
8523
+
8524
+ var textField$1 = /*#__PURE__*/Object.freeze({
8525
+ __proto__: null,
8526
+ default: textField,
8527
+ textField: textField,
8528
+ vars: vars$u
8529
+ });
8530
+
8531
+ const globalRefs$g = getThemeRefs(globals);
8532
+ const vars$t = PasswordClass.cssVarList;
8533
+
8534
+ const password = {
8286
8535
  [vars$t.hostWidth]: refs.width,
8287
- [vars$t.hostMinWidth]: refs.minWidth,
8288
8536
  [vars$t.hostDirection]: refs.direction,
8289
8537
  [vars$t.fontSize]: refs.fontSize,
8290
8538
  [vars$t.fontFamily]: refs.fontFamily,
8291
8539
  [vars$t.labelTextColor]: refs.labelTextColor,
8292
- [vars$t.labelRequiredIndicator]: refs.requiredIndicator,
8293
8540
  [vars$t.errorMessageTextColor]: refs.errorMessageTextColor,
8541
+ [vars$t.inputHorizontalPadding]: refs.horizontalPadding,
8542
+ [vars$t.inputHeight]: refs.inputHeight,
8543
+ [vars$t.inputBackgroundColor]: refs.backgroundColor,
8544
+ [vars$t.labelRequiredIndicator]: refs.requiredIndicator,
8294
8545
  [vars$t.inputValueTextColor]: refs.valueTextColor,
8295
- [vars$t.inputPlaceholderColor]: refs.placeholderTextColor,
8546
+ [vars$t.inputPlaceholderTextColor]: refs.placeholderTextColor,
8296
8547
  [vars$t.inputBorderWidth]: refs.borderWidth,
8297
8548
  [vars$t.inputBorderStyle]: refs.borderStyle,
8298
8549
  [vars$t.inputBorderColor]: refs.borderColor,
@@ -8301,34 +8552,28 @@ const textField = {
8301
8552
  [vars$t.inputOutlineStyle]: refs.outlineStyle,
8302
8553
  [vars$t.inputOutlineColor]: refs.outlineColor,
8303
8554
  [vars$t.inputOutlineOffset]: refs.outlineOffset,
8304
- [vars$t.inputBackgroundColor]: refs.backgroundColor,
8305
- [vars$t.inputHeight]: refs.inputHeight,
8306
- [vars$t.inputHorizontalPadding]: refs.horizontalPadding,
8555
+ [vars$t.revealButtonOffset]: globalRefs$g.spacing.md,
8556
+ [vars$t.revealButtonSize]: refs.toggleButtonSize,
8307
8557
  };
8308
8558
 
8309
- var textField$1 = /*#__PURE__*/Object.freeze({
8559
+ var password$1 = /*#__PURE__*/Object.freeze({
8310
8560
  __proto__: null,
8311
- default: textField,
8312
- textField: textField,
8561
+ default: password,
8313
8562
  vars: vars$t
8314
8563
  });
8315
8564
 
8316
- const globalRefs$g = getThemeRefs(globals);
8317
- const vars$s = PasswordClass.cssVarList;
8565
+ const vars$s = NumberFieldClass.cssVarList;
8318
8566
 
8319
- const password = {
8567
+ const numberField = {
8320
8568
  [vars$s.hostWidth]: refs.width,
8569
+ [vars$s.hostMinWidth]: refs.minWidth,
8321
8570
  [vars$s.hostDirection]: refs.direction,
8322
8571
  [vars$s.fontSize]: refs.fontSize,
8323
8572
  [vars$s.fontFamily]: refs.fontFamily,
8324
8573
  [vars$s.labelTextColor]: refs.labelTextColor,
8325
8574
  [vars$s.errorMessageTextColor]: refs.errorMessageTextColor,
8326
- [vars$s.inputHorizontalPadding]: refs.horizontalPadding,
8327
- [vars$s.inputHeight]: refs.inputHeight,
8328
- [vars$s.inputBackgroundColor]: refs.backgroundColor,
8329
- [vars$s.labelRequiredIndicator]: refs.requiredIndicator,
8330
8575
  [vars$s.inputValueTextColor]: refs.valueTextColor,
8331
- [vars$s.inputPlaceholderTextColor]: refs.placeholderTextColor,
8576
+ [vars$s.inputPlaceholderColor]: refs.placeholderTextColor,
8332
8577
  [vars$s.inputBorderWidth]: refs.borderWidth,
8333
8578
  [vars$s.inputBorderStyle]: refs.borderStyle,
8334
8579
  [vars$s.inputBorderColor]: refs.borderColor,
@@ -8337,19 +8582,21 @@ const password = {
8337
8582
  [vars$s.inputOutlineStyle]: refs.outlineStyle,
8338
8583
  [vars$s.inputOutlineColor]: refs.outlineColor,
8339
8584
  [vars$s.inputOutlineOffset]: refs.outlineOffset,
8340
- [vars$s.revealButtonOffset]: globalRefs$g.spacing.md,
8341
- [vars$s.revealButtonSize]: refs.toggleButtonSize,
8585
+ [vars$s.inputBackgroundColor]: refs.backgroundColor,
8586
+ [vars$s.labelRequiredIndicator]: refs.requiredIndicator,
8587
+ [vars$s.inputHorizontalPadding]: refs.horizontalPadding,
8588
+ [vars$s.inputHeight]: refs.inputHeight,
8342
8589
  };
8343
8590
 
8344
- var password$1 = /*#__PURE__*/Object.freeze({
8591
+ var numberField$1 = /*#__PURE__*/Object.freeze({
8345
8592
  __proto__: null,
8346
- default: password,
8593
+ default: numberField,
8347
8594
  vars: vars$s
8348
8595
  });
8349
8596
 
8350
- const vars$r = NumberFieldClass.cssVarList;
8597
+ const vars$r = EmailFieldClass.cssVarList;
8351
8598
 
8352
- const numberField = {
8599
+ const emailField = {
8353
8600
  [vars$r.hostWidth]: refs.width,
8354
8601
  [vars$r.hostMinWidth]: refs.minWidth,
8355
8602
  [vars$r.hostDirection]: refs.direction,
@@ -8358,6 +8605,7 @@ const numberField = {
8358
8605
  [vars$r.labelTextColor]: refs.labelTextColor,
8359
8606
  [vars$r.errorMessageTextColor]: refs.errorMessageTextColor,
8360
8607
  [vars$r.inputValueTextColor]: refs.valueTextColor,
8608
+ [vars$r.labelRequiredIndicator]: refs.requiredIndicator,
8361
8609
  [vars$r.inputPlaceholderColor]: refs.placeholderTextColor,
8362
8610
  [vars$r.inputBorderWidth]: refs.borderWidth,
8363
8611
  [vars$r.inputBorderStyle]: refs.borderStyle,
@@ -8368,198 +8616,165 @@ const numberField = {
8368
8616
  [vars$r.inputOutlineColor]: refs.outlineColor,
8369
8617
  [vars$r.inputOutlineOffset]: refs.outlineOffset,
8370
8618
  [vars$r.inputBackgroundColor]: refs.backgroundColor,
8371
- [vars$r.labelRequiredIndicator]: refs.requiredIndicator,
8372
8619
  [vars$r.inputHorizontalPadding]: refs.horizontalPadding,
8373
8620
  [vars$r.inputHeight]: refs.inputHeight,
8374
8621
  };
8375
8622
 
8376
- var numberField$1 = /*#__PURE__*/Object.freeze({
8623
+ var emailField$1 = /*#__PURE__*/Object.freeze({
8377
8624
  __proto__: null,
8378
- default: numberField,
8625
+ default: emailField,
8379
8626
  vars: vars$r
8380
8627
  });
8381
8628
 
8382
- const vars$q = EmailFieldClass.cssVarList;
8629
+ const globalRefs$f = getThemeRefs(globals);
8630
+ const vars$q = TextAreaClass.cssVarList;
8383
8631
 
8384
- const emailField = {
8632
+ const textArea = {
8385
8633
  [vars$q.hostWidth]: refs.width,
8386
8634
  [vars$q.hostMinWidth]: refs.minWidth,
8387
8635
  [vars$q.hostDirection]: refs.direction,
8388
8636
  [vars$q.fontSize]: refs.fontSize,
8389
8637
  [vars$q.fontFamily]: refs.fontFamily,
8390
8638
  [vars$q.labelTextColor]: refs.labelTextColor,
8639
+ [vars$q.labelRequiredIndicator]: refs.requiredIndicator,
8391
8640
  [vars$q.errorMessageTextColor]: refs.errorMessageTextColor,
8641
+ [vars$q.inputBackgroundColor]: refs.backgroundColor,
8392
8642
  [vars$q.inputValueTextColor]: refs.valueTextColor,
8393
- [vars$q.labelRequiredIndicator]: refs.requiredIndicator,
8394
- [vars$q.inputPlaceholderColor]: refs.placeholderTextColor,
8643
+ [vars$q.inputPlaceholderTextColor]: refs.placeholderTextColor,
8644
+ [vars$q.inputBorderRadius]: refs.borderRadius,
8395
8645
  [vars$q.inputBorderWidth]: refs.borderWidth,
8396
8646
  [vars$q.inputBorderStyle]: refs.borderStyle,
8397
8647
  [vars$q.inputBorderColor]: refs.borderColor,
8398
- [vars$q.inputBorderRadius]: refs.borderRadius,
8399
8648
  [vars$q.inputOutlineWidth]: refs.outlineWidth,
8400
8649
  [vars$q.inputOutlineStyle]: refs.outlineStyle,
8401
8650
  [vars$q.inputOutlineColor]: refs.outlineColor,
8402
8651
  [vars$q.inputOutlineOffset]: refs.outlineOffset,
8403
- [vars$q.inputBackgroundColor]: refs.backgroundColor,
8404
- [vars$q.inputHorizontalPadding]: refs.horizontalPadding,
8405
- [vars$q.inputHeight]: refs.inputHeight,
8652
+ [vars$q.inputResizeType]: 'vertical',
8653
+ [vars$q.inputMinHeight]: '5em',
8654
+
8655
+ _disabled: {
8656
+ [vars$q.inputBackgroundColor]: globalRefs$f.colors.surface.light,
8657
+ },
8658
+
8659
+ _readonly: {
8660
+ [vars$q.inputResizeType]: 'none',
8661
+ },
8406
8662
  };
8407
8663
 
8408
- var emailField$1 = /*#__PURE__*/Object.freeze({
8664
+ var textArea$1 = /*#__PURE__*/Object.freeze({
8409
8665
  __proto__: null,
8410
- default: emailField,
8666
+ default: textArea,
8411
8667
  vars: vars$q
8412
8668
  });
8413
8669
 
8414
- const globalRefs$f = getThemeRefs(globals);
8415
- const vars$p = TextAreaClass.cssVarList;
8670
+ const vars$p = CheckboxClass.cssVarList;
8671
+ const checkboxSize = '1.35em';
8416
8672
 
8417
- const textArea = {
8673
+ const checkbox = {
8418
8674
  [vars$p.hostWidth]: refs.width,
8419
- [vars$p.hostMinWidth]: refs.minWidth,
8420
8675
  [vars$p.hostDirection]: refs.direction,
8421
8676
  [vars$p.fontSize]: refs.fontSize,
8422
8677
  [vars$p.fontFamily]: refs.fontFamily,
8423
8678
  [vars$p.labelTextColor]: refs.labelTextColor,
8424
8679
  [vars$p.labelRequiredIndicator]: refs.requiredIndicator,
8680
+ [vars$p.labelFontWeight]: '400',
8681
+ [vars$p.labelLineHeight]: checkboxSize,
8682
+ [vars$p.labelSpacing]: '1em',
8425
8683
  [vars$p.errorMessageTextColor]: refs.errorMessageTextColor,
8426
- [vars$p.inputBackgroundColor]: refs.backgroundColor,
8427
- [vars$p.inputValueTextColor]: refs.valueTextColor,
8428
- [vars$p.inputPlaceholderTextColor]: refs.placeholderTextColor,
8684
+ [vars$p.inputOutlineWidth]: refs.outlineWidth,
8685
+ [vars$p.inputOutlineOffset]: refs.outlineOffset,
8686
+ [vars$p.inputOutlineColor]: refs.outlineColor,
8687
+ [vars$p.inputOutlineStyle]: refs.outlineStyle,
8429
8688
  [vars$p.inputBorderRadius]: refs.borderRadius,
8689
+ [vars$p.inputBorderColor]: refs.borderColor,
8430
8690
  [vars$p.inputBorderWidth]: refs.borderWidth,
8431
8691
  [vars$p.inputBorderStyle]: refs.borderStyle,
8432
- [vars$p.inputBorderColor]: refs.borderColor,
8433
- [vars$p.inputOutlineWidth]: refs.outlineWidth,
8434
- [vars$p.inputOutlineStyle]: refs.outlineStyle,
8435
- [vars$p.inputOutlineColor]: refs.outlineColor,
8436
- [vars$p.inputOutlineOffset]: refs.outlineOffset,
8437
- [vars$p.inputResizeType]: 'vertical',
8438
- [vars$p.inputMinHeight]: '5em',
8692
+ [vars$p.inputBackgroundColor]: refs.backgroundColor,
8693
+ [vars$p.inputSize]: checkboxSize,
8439
8694
 
8440
- _disabled: {
8441
- [vars$p.inputBackgroundColor]: globalRefs$f.colors.surface.light,
8695
+ _checked: {
8696
+ [vars$p.inputValueTextColor]: refs.valueTextColor,
8442
8697
  },
8443
8698
 
8444
- _readonly: {
8445
- [vars$p.inputResizeType]: 'none',
8699
+ _disabled: {
8700
+ [vars$p.labelTextColor]: refs.labelTextColor,
8446
8701
  },
8447
8702
  };
8448
8703
 
8449
- var textArea$1 = /*#__PURE__*/Object.freeze({
8704
+ var checkbox$1 = /*#__PURE__*/Object.freeze({
8450
8705
  __proto__: null,
8451
- default: textArea,
8706
+ default: checkbox,
8452
8707
  vars: vars$p
8453
8708
  });
8454
8709
 
8455
- const vars$o = CheckboxClass.cssVarList;
8456
- const checkboxSize = '1.35em';
8710
+ const knobMargin = '2px';
8711
+ const checkboxHeight = '1.25em';
8457
8712
 
8458
- const checkbox = {
8713
+ const globalRefs$e = getThemeRefs(globals);
8714
+ const vars$o = SwitchToggleClass.cssVarList;
8715
+
8716
+ const switchToggle = {
8459
8717
  [vars$o.hostWidth]: refs.width,
8460
8718
  [vars$o.hostDirection]: refs.direction,
8461
8719
  [vars$o.fontSize]: refs.fontSize,
8462
8720
  [vars$o.fontFamily]: refs.fontFamily,
8463
- [vars$o.labelTextColor]: refs.labelTextColor,
8464
- [vars$o.labelRequiredIndicator]: refs.requiredIndicator,
8465
- [vars$o.labelFontWeight]: '400',
8466
- [vars$o.labelLineHeight]: checkboxSize,
8467
- [vars$o.labelSpacing]: '1em',
8468
- [vars$o.errorMessageTextColor]: refs.errorMessageTextColor,
8721
+
8469
8722
  [vars$o.inputOutlineWidth]: refs.outlineWidth,
8470
8723
  [vars$o.inputOutlineOffset]: refs.outlineOffset,
8471
8724
  [vars$o.inputOutlineColor]: refs.outlineColor,
8472
8725
  [vars$o.inputOutlineStyle]: refs.outlineStyle,
8473
- [vars$o.inputBorderRadius]: refs.borderRadius,
8474
- [vars$o.inputBorderColor]: refs.borderColor,
8475
- [vars$o.inputBorderWidth]: refs.borderWidth,
8476
- [vars$o.inputBorderStyle]: refs.borderStyle,
8477
- [vars$o.inputBackgroundColor]: refs.backgroundColor,
8478
- [vars$o.inputSize]: checkboxSize,
8479
8726
 
8480
- _checked: {
8481
- [vars$o.inputValueTextColor]: refs.valueTextColor,
8482
- },
8483
-
8484
- _disabled: {
8485
- [vars$o.labelTextColor]: refs.labelTextColor,
8486
- },
8487
- };
8488
-
8489
- var checkbox$1 = /*#__PURE__*/Object.freeze({
8490
- __proto__: null,
8491
- default: checkbox,
8492
- vars: vars$o
8493
- });
8494
-
8495
- const knobMargin = '2px';
8496
- const checkboxHeight = '1.25em';
8727
+ [vars$o.trackBorderStyle]: refs.borderStyle,
8728
+ [vars$o.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
8729
+ [vars$o.trackBorderColor]: refs.borderColor,
8730
+ [vars$o.trackBackgroundColor]: 'none',
8731
+ [vars$o.trackBorderRadius]: globalRefs$e.radius.md,
8732
+ [vars$o.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
8733
+ [vars$o.trackHeight]: checkboxHeight,
8734
+
8735
+ [vars$o.knobSize]: `calc(1em - ${knobMargin})`,
8736
+ [vars$o.knobRadius]: '50%',
8737
+ [vars$o.knobTopOffset]: '1px',
8738
+ [vars$o.knobLeftOffset]: knobMargin,
8739
+ [vars$o.knobColor]: refs.valueTextColor,
8740
+ [vars$o.knobTransitionDuration]: '0.3s',
8497
8741
 
8498
- const globalRefs$e = getThemeRefs(globals);
8499
- const vars$n = SwitchToggleClass.cssVarList;
8500
-
8501
- const switchToggle = {
8502
- [vars$n.hostWidth]: refs.width,
8503
- [vars$n.hostDirection]: refs.direction,
8504
- [vars$n.fontSize]: refs.fontSize,
8505
- [vars$n.fontFamily]: refs.fontFamily,
8506
-
8507
- [vars$n.inputOutlineWidth]: refs.outlineWidth,
8508
- [vars$n.inputOutlineOffset]: refs.outlineOffset,
8509
- [vars$n.inputOutlineColor]: refs.outlineColor,
8510
- [vars$n.inputOutlineStyle]: refs.outlineStyle,
8511
-
8512
- [vars$n.trackBorderStyle]: refs.borderStyle,
8513
- [vars$n.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
8514
- [vars$n.trackBorderColor]: refs.borderColor,
8515
- [vars$n.trackBackgroundColor]: 'none',
8516
- [vars$n.trackBorderRadius]: globalRefs$e.radius.md,
8517
- [vars$n.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
8518
- [vars$n.trackHeight]: checkboxHeight,
8519
-
8520
- [vars$n.knobSize]: `calc(1em - ${knobMargin})`,
8521
- [vars$n.knobRadius]: '50%',
8522
- [vars$n.knobTopOffset]: '1px',
8523
- [vars$n.knobLeftOffset]: knobMargin,
8524
- [vars$n.knobColor]: refs.valueTextColor,
8525
- [vars$n.knobTransitionDuration]: '0.3s',
8526
-
8527
- [vars$n.labelTextColor]: refs.labelTextColor,
8528
- [vars$n.labelFontWeight]: '400',
8529
- [vars$n.labelLineHeight]: '1.35em',
8530
- [vars$n.labelSpacing]: '1em',
8531
- [vars$n.labelRequiredIndicator]: refs.requiredIndicator,
8532
- [vars$n.errorMessageTextColor]: refs.errorMessageTextColor,
8742
+ [vars$o.labelTextColor]: refs.labelTextColor,
8743
+ [vars$o.labelFontWeight]: '400',
8744
+ [vars$o.labelLineHeight]: '1.35em',
8745
+ [vars$o.labelSpacing]: '1em',
8746
+ [vars$o.labelRequiredIndicator]: refs.requiredIndicator,
8747
+ [vars$o.errorMessageTextColor]: refs.errorMessageTextColor,
8533
8748
 
8534
8749
  _checked: {
8535
- [vars$n.trackBorderColor]: refs.borderColor,
8536
- [vars$n.trackBackgroundColor]: refs.backgroundColor,
8537
- [vars$n.knobLeftOffset]: `calc(100% - var(${vars$n.knobSize}) - ${knobMargin})`,
8538
- [vars$n.knobColor]: refs.valueTextColor,
8539
- [vars$n.knobTextColor]: refs.valueTextColor,
8750
+ [vars$o.trackBorderColor]: refs.borderColor,
8751
+ [vars$o.trackBackgroundColor]: refs.backgroundColor,
8752
+ [vars$o.knobLeftOffset]: `calc(100% - var(${vars$o.knobSize}) - ${knobMargin})`,
8753
+ [vars$o.knobColor]: refs.valueTextColor,
8754
+ [vars$o.knobTextColor]: refs.valueTextColor,
8540
8755
  },
8541
8756
 
8542
8757
  _disabled: {
8543
- [vars$n.knobColor]: globalRefs$e.colors.surface.light,
8544
- [vars$n.trackBorderColor]: globalRefs$e.colors.surface.main,
8545
- [vars$n.trackBackgroundColor]: globalRefs$e.colors.surface.main,
8546
- [vars$n.labelTextColor]: refs.labelTextColor,
8758
+ [vars$o.knobColor]: globalRefs$e.colors.surface.light,
8759
+ [vars$o.trackBorderColor]: globalRefs$e.colors.surface.main,
8760
+ [vars$o.trackBackgroundColor]: globalRefs$e.colors.surface.main,
8761
+ [vars$o.labelTextColor]: refs.labelTextColor,
8547
8762
  _checked: {
8548
- [vars$n.knobColor]: globalRefs$e.colors.surface.light,
8549
- [vars$n.trackBackgroundColor]: globalRefs$e.colors.surface.main,
8763
+ [vars$o.knobColor]: globalRefs$e.colors.surface.light,
8764
+ [vars$o.trackBackgroundColor]: globalRefs$e.colors.surface.main,
8550
8765
  },
8551
8766
  },
8552
8767
 
8553
8768
  _invalid: {
8554
- [vars$n.trackBorderColor]: globalRefs$e.colors.error.main,
8555
- [vars$n.knobColor]: globalRefs$e.colors.error.main,
8769
+ [vars$o.trackBorderColor]: globalRefs$e.colors.error.main,
8770
+ [vars$o.knobColor]: globalRefs$e.colors.error.main,
8556
8771
  },
8557
8772
  };
8558
8773
 
8559
8774
  var switchToggle$1 = /*#__PURE__*/Object.freeze({
8560
8775
  __proto__: null,
8561
8776
  default: switchToggle,
8562
- vars: vars$n
8777
+ vars: vars$o
8563
8778
  });
8564
8779
 
8565
8780
  const globalRefs$d = getThemeRefs(globals);
@@ -8584,7 +8799,7 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
8584
8799
  horizontalAlignment,
8585
8800
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
8586
8801
  },
8587
- componentName$y
8802
+ componentName$A
8588
8803
  );
8589
8804
 
8590
8805
  const { shadowColor: shadowColor$1 } = helperRefs$2;
@@ -8669,7 +8884,7 @@ const container = {
8669
8884
  },
8670
8885
  };
8671
8886
 
8672
- const vars$m = {
8887
+ const vars$n = {
8673
8888
  ...compVars$3,
8674
8889
  ...helperVars$2,
8675
8890
  };
@@ -8677,154 +8892,154 @@ const vars$m = {
8677
8892
  var container$1 = /*#__PURE__*/Object.freeze({
8678
8893
  __proto__: null,
8679
8894
  default: container,
8680
- vars: vars$m
8895
+ vars: vars$n
8681
8896
  });
8682
8897
 
8683
- const vars$l = LogoClass.cssVarList;
8898
+ const vars$m = LogoClass.cssVarList;
8684
8899
 
8685
8900
  const logo$1 = {
8686
- [vars$l.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
8901
+ [vars$m.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
8687
8902
  };
8688
8903
 
8689
8904
  var logo$2 = /*#__PURE__*/Object.freeze({
8690
8905
  __proto__: null,
8691
8906
  default: logo$1,
8692
- vars: vars$l
8907
+ vars: vars$m
8693
8908
  });
8694
8909
 
8695
- const vars$k = TotpImageClass.cssVarList;
8910
+ const vars$l = TotpImageClass.cssVarList;
8696
8911
 
8697
8912
  const logo = {
8698
- [vars$k.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
8913
+ [vars$l.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
8699
8914
  };
8700
8915
 
8701
8916
  var totpImage = /*#__PURE__*/Object.freeze({
8702
8917
  __proto__: null,
8703
8918
  default: logo,
8704
- vars: vars$k
8919
+ vars: vars$l
8705
8920
  });
8706
8921
 
8707
8922
  const globalRefs$c = getThemeRefs(globals);
8708
- const vars$j = TextClass.cssVarList;
8923
+ const vars$k = TextClass.cssVarList;
8709
8924
 
8710
8925
  const text = {
8711
- [vars$j.hostDirection]: globalRefs$c.direction,
8712
- [vars$j.textLineHeight]: '1.35em',
8713
- [vars$j.textAlign]: 'left',
8714
- [vars$j.textColor]: globalRefs$c.colors.surface.dark,
8926
+ [vars$k.hostDirection]: globalRefs$c.direction,
8927
+ [vars$k.textLineHeight]: '1.35em',
8928
+ [vars$k.textAlign]: 'left',
8929
+ [vars$k.textColor]: globalRefs$c.colors.surface.dark,
8715
8930
  variant: {
8716
8931
  h1: {
8717
- [vars$j.fontSize]: globalRefs$c.typography.h1.size,
8718
- [vars$j.fontWeight]: globalRefs$c.typography.h1.weight,
8719
- [vars$j.fontFamily]: globalRefs$c.typography.h1.font,
8932
+ [vars$k.fontSize]: globalRefs$c.typography.h1.size,
8933
+ [vars$k.fontWeight]: globalRefs$c.typography.h1.weight,
8934
+ [vars$k.fontFamily]: globalRefs$c.typography.h1.font,
8720
8935
  },
8721
8936
  h2: {
8722
- [vars$j.fontSize]: globalRefs$c.typography.h2.size,
8723
- [vars$j.fontWeight]: globalRefs$c.typography.h2.weight,
8724
- [vars$j.fontFamily]: globalRefs$c.typography.h2.font,
8937
+ [vars$k.fontSize]: globalRefs$c.typography.h2.size,
8938
+ [vars$k.fontWeight]: globalRefs$c.typography.h2.weight,
8939
+ [vars$k.fontFamily]: globalRefs$c.typography.h2.font,
8725
8940
  },
8726
8941
  h3: {
8727
- [vars$j.fontSize]: globalRefs$c.typography.h3.size,
8728
- [vars$j.fontWeight]: globalRefs$c.typography.h3.weight,
8729
- [vars$j.fontFamily]: globalRefs$c.typography.h3.font,
8942
+ [vars$k.fontSize]: globalRefs$c.typography.h3.size,
8943
+ [vars$k.fontWeight]: globalRefs$c.typography.h3.weight,
8944
+ [vars$k.fontFamily]: globalRefs$c.typography.h3.font,
8730
8945
  },
8731
8946
  subtitle1: {
8732
- [vars$j.fontSize]: globalRefs$c.typography.subtitle1.size,
8733
- [vars$j.fontWeight]: globalRefs$c.typography.subtitle1.weight,
8734
- [vars$j.fontFamily]: globalRefs$c.typography.subtitle1.font,
8947
+ [vars$k.fontSize]: globalRefs$c.typography.subtitle1.size,
8948
+ [vars$k.fontWeight]: globalRefs$c.typography.subtitle1.weight,
8949
+ [vars$k.fontFamily]: globalRefs$c.typography.subtitle1.font,
8735
8950
  },
8736
8951
  subtitle2: {
8737
- [vars$j.fontSize]: globalRefs$c.typography.subtitle2.size,
8738
- [vars$j.fontWeight]: globalRefs$c.typography.subtitle2.weight,
8739
- [vars$j.fontFamily]: globalRefs$c.typography.subtitle2.font,
8952
+ [vars$k.fontSize]: globalRefs$c.typography.subtitle2.size,
8953
+ [vars$k.fontWeight]: globalRefs$c.typography.subtitle2.weight,
8954
+ [vars$k.fontFamily]: globalRefs$c.typography.subtitle2.font,
8740
8955
  },
8741
8956
  body1: {
8742
- [vars$j.fontSize]: globalRefs$c.typography.body1.size,
8743
- [vars$j.fontWeight]: globalRefs$c.typography.body1.weight,
8744
- [vars$j.fontFamily]: globalRefs$c.typography.body1.font,
8957
+ [vars$k.fontSize]: globalRefs$c.typography.body1.size,
8958
+ [vars$k.fontWeight]: globalRefs$c.typography.body1.weight,
8959
+ [vars$k.fontFamily]: globalRefs$c.typography.body1.font,
8745
8960
  },
8746
8961
  body2: {
8747
- [vars$j.fontSize]: globalRefs$c.typography.body2.size,
8748
- [vars$j.fontWeight]: globalRefs$c.typography.body2.weight,
8749
- [vars$j.fontFamily]: globalRefs$c.typography.body2.font,
8962
+ [vars$k.fontSize]: globalRefs$c.typography.body2.size,
8963
+ [vars$k.fontWeight]: globalRefs$c.typography.body2.weight,
8964
+ [vars$k.fontFamily]: globalRefs$c.typography.body2.font,
8750
8965
  },
8751
8966
  },
8752
8967
 
8753
8968
  mode: {
8754
8969
  primary: {
8755
- [vars$j.textColor]: globalRefs$c.colors.primary.main,
8970
+ [vars$k.textColor]: globalRefs$c.colors.primary.main,
8756
8971
  },
8757
8972
  secondary: {
8758
- [vars$j.textColor]: globalRefs$c.colors.secondary.main,
8973
+ [vars$k.textColor]: globalRefs$c.colors.secondary.main,
8759
8974
  },
8760
8975
  error: {
8761
- [vars$j.textColor]: globalRefs$c.colors.error.main,
8976
+ [vars$k.textColor]: globalRefs$c.colors.error.main,
8762
8977
  },
8763
8978
  success: {
8764
- [vars$j.textColor]: globalRefs$c.colors.success.main,
8979
+ [vars$k.textColor]: globalRefs$c.colors.success.main,
8765
8980
  },
8766
8981
  },
8767
8982
 
8768
8983
  textAlign: {
8769
- right: { [vars$j.textAlign]: 'right' },
8770
- left: { [vars$j.textAlign]: 'left' },
8771
- center: { [vars$j.textAlign]: 'center' },
8984
+ right: { [vars$k.textAlign]: 'right' },
8985
+ left: { [vars$k.textAlign]: 'left' },
8986
+ center: { [vars$k.textAlign]: 'center' },
8772
8987
  },
8773
8988
 
8774
8989
  _fullWidth: {
8775
- [vars$j.hostWidth]: '100%',
8990
+ [vars$k.hostWidth]: '100%',
8776
8991
  },
8777
8992
 
8778
8993
  _italic: {
8779
- [vars$j.fontStyle]: 'italic',
8994
+ [vars$k.fontStyle]: 'italic',
8780
8995
  },
8781
8996
 
8782
8997
  _uppercase: {
8783
- [vars$j.textTransform]: 'uppercase',
8998
+ [vars$k.textTransform]: 'uppercase',
8784
8999
  },
8785
9000
 
8786
9001
  _lowercase: {
8787
- [vars$j.textTransform]: 'lowercase',
9002
+ [vars$k.textTransform]: 'lowercase',
8788
9003
  },
8789
9004
  };
8790
9005
 
8791
9006
  var text$1 = /*#__PURE__*/Object.freeze({
8792
9007
  __proto__: null,
8793
9008
  default: text,
8794
- vars: vars$j
9009
+ vars: vars$k
8795
9010
  });
8796
9011
 
8797
9012
  const globalRefs$b = getThemeRefs(globals);
8798
- const vars$i = LinkClass.cssVarList;
9013
+ const vars$j = LinkClass.cssVarList;
8799
9014
 
8800
9015
  const link = {
8801
- [vars$i.hostDirection]: globalRefs$b.direction,
8802
- [vars$i.cursor]: 'pointer',
9016
+ [vars$j.hostDirection]: globalRefs$b.direction,
9017
+ [vars$j.cursor]: 'pointer',
8803
9018
 
8804
- [vars$i.textColor]: globalRefs$b.colors.primary.main,
9019
+ [vars$j.textColor]: globalRefs$b.colors.primary.main,
8805
9020
 
8806
9021
  textAlign: {
8807
- right: { [vars$i.textAlign]: 'right' },
8808
- left: { [vars$i.textAlign]: 'left' },
8809
- center: { [vars$i.textAlign]: 'center' },
9022
+ right: { [vars$j.textAlign]: 'right' },
9023
+ left: { [vars$j.textAlign]: 'left' },
9024
+ center: { [vars$j.textAlign]: 'center' },
8810
9025
  },
8811
9026
 
8812
9027
  _fullWidth: {
8813
- [vars$i.hostWidth]: '100%',
9028
+ [vars$j.hostWidth]: '100%',
8814
9029
  },
8815
9030
 
8816
9031
  mode: {
8817
9032
  primary: {
8818
- [vars$i.textColor]: globalRefs$b.colors.primary.main,
9033
+ [vars$j.textColor]: globalRefs$b.colors.primary.main,
8819
9034
  },
8820
9035
  secondary: {
8821
- [vars$i.textColor]: globalRefs$b.colors.secondary.main,
9036
+ [vars$j.textColor]: globalRefs$b.colors.secondary.main,
8822
9037
  },
8823
9038
  error: {
8824
- [vars$i.textColor]: globalRefs$b.colors.error.main,
9039
+ [vars$j.textColor]: globalRefs$b.colors.error.main,
8825
9040
  },
8826
9041
  success: {
8827
- [vars$i.textColor]: globalRefs$b.colors.success.main,
9042
+ [vars$j.textColor]: globalRefs$b.colors.success.main,
8828
9043
  },
8829
9044
  },
8830
9045
  };
@@ -8832,7 +9047,7 @@ const link = {
8832
9047
  var link$1 = /*#__PURE__*/Object.freeze({
8833
9048
  __proto__: null,
8834
9049
  default: link,
8835
- vars: vars$i
9050
+ vars: vars$j
8836
9051
  });
8837
9052
 
8838
9053
  const globalRefs$a = getThemeRefs(globals);
@@ -8843,7 +9058,7 @@ const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
8843
9058
  thickness: '2px',
8844
9059
  spacing: '10px',
8845
9060
  },
8846
- componentName$w
9061
+ componentName$y
8847
9062
  );
8848
9063
 
8849
9064
  const divider = {
@@ -8874,7 +9089,7 @@ const divider = {
8874
9089
  },
8875
9090
  };
8876
9091
 
8877
- const vars$h = {
9092
+ const vars$i = {
8878
9093
  ...compVars$2,
8879
9094
  ...helperVars$1,
8880
9095
  };
@@ -8882,93 +9097,93 @@ const vars$h = {
8882
9097
  var divider$1 = /*#__PURE__*/Object.freeze({
8883
9098
  __proto__: null,
8884
9099
  default: divider,
8885
- vars: vars$h
9100
+ vars: vars$i
8886
9101
  });
8887
9102
 
8888
- const vars$g = PasscodeClass.cssVarList;
9103
+ const vars$h = PasscodeClass.cssVarList;
8889
9104
 
8890
9105
  const passcode = {
8891
- [vars$g.hostDirection]: refs.direction,
8892
- [vars$g.fontFamily]: refs.fontFamily,
8893
- [vars$g.fontSize]: refs.fontSize,
8894
- [vars$g.labelTextColor]: refs.labelTextColor,
8895
- [vars$g.labelRequiredIndicator]: refs.requiredIndicator,
8896
- [vars$g.errorMessageTextColor]: refs.errorMessageTextColor,
8897
- [vars$g.digitValueTextColor]: refs.valueTextColor,
8898
- [vars$g.digitPadding]: '0',
8899
- [vars$g.digitTextAlign]: 'center',
8900
- [vars$g.digitSpacing]: '4px',
8901
- [vars$g.hostWidth]: refs.width,
8902
- [vars$g.digitOutlineColor]: 'transparent',
8903
- [vars$g.digitOutlineWidth]: refs.outlineWidth,
8904
- [vars$g.focusedDigitFieldOutlineColor]: refs.outlineColor,
8905
- [vars$g.digitSize]: refs.inputHeight,
9106
+ [vars$h.hostDirection]: refs.direction,
9107
+ [vars$h.fontFamily]: refs.fontFamily,
9108
+ [vars$h.fontSize]: refs.fontSize,
9109
+ [vars$h.labelTextColor]: refs.labelTextColor,
9110
+ [vars$h.labelRequiredIndicator]: refs.requiredIndicator,
9111
+ [vars$h.errorMessageTextColor]: refs.errorMessageTextColor,
9112
+ [vars$h.digitValueTextColor]: refs.valueTextColor,
9113
+ [vars$h.digitPadding]: '0',
9114
+ [vars$h.digitTextAlign]: 'center',
9115
+ [vars$h.digitSpacing]: '4px',
9116
+ [vars$h.hostWidth]: refs.width,
9117
+ [vars$h.digitOutlineColor]: 'transparent',
9118
+ [vars$h.digitOutlineWidth]: refs.outlineWidth,
9119
+ [vars$h.focusedDigitFieldOutlineColor]: refs.outlineColor,
9120
+ [vars$h.digitSize]: refs.inputHeight,
8906
9121
 
8907
9122
  size: {
8908
- xs: { [vars$g.spinnerSize]: '15px' },
8909
- sm: { [vars$g.spinnerSize]: '20px' },
8910
- md: { [vars$g.spinnerSize]: '20px' },
8911
- lg: { [vars$g.spinnerSize]: '20px' },
9123
+ xs: { [vars$h.spinnerSize]: '15px' },
9124
+ sm: { [vars$h.spinnerSize]: '20px' },
9125
+ md: { [vars$h.spinnerSize]: '20px' },
9126
+ lg: { [vars$h.spinnerSize]: '20px' },
8912
9127
  },
8913
9128
 
8914
9129
  _hideCursor: {
8915
- [vars$g.digitCaretTextColor]: 'transparent',
9130
+ [vars$h.digitCaretTextColor]: 'transparent',
8916
9131
  },
8917
9132
 
8918
9133
  _loading: {
8919
- [vars$g.overlayOpacity]: refs.overlayOpacity,
9134
+ [vars$h.overlayOpacity]: refs.overlayOpacity,
8920
9135
  },
8921
9136
  };
8922
9137
 
8923
9138
  var passcode$1 = /*#__PURE__*/Object.freeze({
8924
9139
  __proto__: null,
8925
9140
  default: passcode,
8926
- vars: vars$g
9141
+ vars: vars$h
8927
9142
  });
8928
9143
 
8929
9144
  const globalRefs$9 = getThemeRefs(globals);
8930
- const vars$f = LoaderLinearClass.cssVarList;
9145
+ const vars$g = LoaderLinearClass.cssVarList;
8931
9146
 
8932
9147
  const loaderLinear = {
8933
- [vars$f.hostDisplay]: 'inline-block',
8934
- [vars$f.hostWidth]: '100%',
9148
+ [vars$g.hostDisplay]: 'inline-block',
9149
+ [vars$g.hostWidth]: '100%',
8935
9150
 
8936
- [vars$f.barColor]: globalRefs$9.colors.surface.contrast,
8937
- [vars$f.barWidth]: '20%',
9151
+ [vars$g.barColor]: globalRefs$9.colors.surface.contrast,
9152
+ [vars$g.barWidth]: '20%',
8938
9153
 
8939
- [vars$f.barBackgroundColor]: globalRefs$9.colors.surface.main,
8940
- [vars$f.barBorderRadius]: '4px',
9154
+ [vars$g.barBackgroundColor]: globalRefs$9.colors.surface.main,
9155
+ [vars$g.barBorderRadius]: '4px',
8941
9156
 
8942
- [vars$f.animationDuration]: '2s',
8943
- [vars$f.animationTimingFunction]: 'linear',
8944
- [vars$f.animationIterationCount]: 'infinite',
8945
- [vars$f.verticalPadding]: '0.25em',
9157
+ [vars$g.animationDuration]: '2s',
9158
+ [vars$g.animationTimingFunction]: 'linear',
9159
+ [vars$g.animationIterationCount]: 'infinite',
9160
+ [vars$g.verticalPadding]: '0.25em',
8946
9161
 
8947
9162
  size: {
8948
- xs: { [vars$f.barHeight]: '2px' },
8949
- sm: { [vars$f.barHeight]: '4px' },
8950
- md: { [vars$f.barHeight]: '6px' },
8951
- lg: { [vars$f.barHeight]: '8px' },
9163
+ xs: { [vars$g.barHeight]: '2px' },
9164
+ sm: { [vars$g.barHeight]: '4px' },
9165
+ md: { [vars$g.barHeight]: '6px' },
9166
+ lg: { [vars$g.barHeight]: '8px' },
8952
9167
  },
8953
9168
 
8954
9169
  mode: {
8955
9170
  primary: {
8956
- [vars$f.barColor]: globalRefs$9.colors.primary.main,
9171
+ [vars$g.barColor]: globalRefs$9.colors.primary.main,
8957
9172
  },
8958
9173
  secondary: {
8959
- [vars$f.barColor]: globalRefs$9.colors.secondary.main,
9174
+ [vars$g.barColor]: globalRefs$9.colors.secondary.main,
8960
9175
  },
8961
9176
  },
8962
9177
 
8963
9178
  _hidden: {
8964
- [vars$f.hostDisplay]: 'none',
9179
+ [vars$g.hostDisplay]: 'none',
8965
9180
  },
8966
9181
  };
8967
9182
 
8968
9183
  var loaderLinear$1 = /*#__PURE__*/Object.freeze({
8969
9184
  __proto__: null,
8970
9185
  default: loaderLinear,
8971
- vars: vars$f
9186
+ vars: vars$g
8972
9187
  });
8973
9188
 
8974
9189
  const globalRefs$8 = getThemeRefs(globals);
@@ -8986,7 +9201,7 @@ const [helperTheme, helperRefs, helperVars] = createHelperVars(
8986
9201
  },
8987
9202
  },
8988
9203
  },
8989
- componentName$z
9204
+ componentName$B
8990
9205
  );
8991
9206
 
8992
9207
  const loaderRadial = {
@@ -9015,7 +9230,7 @@ const loaderRadial = {
9015
9230
  [compVars$1.hostDisplay]: 'none',
9016
9231
  },
9017
9232
  };
9018
- const vars$e = {
9233
+ const vars$f = {
9019
9234
  ...compVars$1,
9020
9235
  ...helperVars,
9021
9236
  };
@@ -9023,76 +9238,112 @@ const vars$e = {
9023
9238
  var loaderRadial$1 = /*#__PURE__*/Object.freeze({
9024
9239
  __proto__: null,
9025
9240
  default: loaderRadial,
9026
- vars: vars$e
9241
+ vars: vars$f
9027
9242
  });
9028
9243
 
9029
9244
  const globalRefs$7 = getThemeRefs(globals);
9030
- const vars$d = ComboBoxClass.cssVarList;
9245
+ const vars$e = ComboBoxClass.cssVarList;
9031
9246
 
9032
9247
  const comboBox = {
9033
- [vars$d.hostWidth]: refs.width,
9034
- [vars$d.hostDirection]: refs.direction,
9035
- [vars$d.fontSize]: refs.fontSize,
9036
- [vars$d.fontFamily]: refs.fontFamily,
9037
- [vars$d.labelTextColor]: refs.labelTextColor,
9038
- [vars$d.errorMessageTextColor]: refs.errorMessageTextColor,
9039
- [vars$d.inputBorderColor]: refs.borderColor,
9040
- [vars$d.inputBorderWidth]: refs.borderWidth,
9041
- [vars$d.inputBorderStyle]: refs.borderStyle,
9042
- [vars$d.inputBorderRadius]: refs.borderRadius,
9043
- [vars$d.inputOutlineColor]: refs.outlineColor,
9044
- [vars$d.inputOutlineOffset]: refs.outlineOffset,
9045
- [vars$d.inputOutlineWidth]: refs.outlineWidth,
9046
- [vars$d.inputOutlineStyle]: refs.outlineStyle,
9047
- [vars$d.labelRequiredIndicator]: refs.requiredIndicator,
9048
- [vars$d.inputValueTextColor]: refs.valueTextColor,
9049
- [vars$d.inputPlaceholderTextColor]: refs.placeholderTextColor,
9050
- [vars$d.inputBackgroundColor]: refs.backgroundColor,
9051
- [vars$d.inputHorizontalPadding]: refs.horizontalPadding,
9052
- [vars$d.inputHeight]: refs.inputHeight,
9053
- [vars$d.inputDropdownButtonColor]: globalRefs$7.colors.surface.contrast,
9054
- [vars$d.inputDropdownButtonCursor]: 'pointer',
9055
- [vars$d.inputDropdownButtonSize]: refs.toggleButtonSize,
9056
- [vars$d.inputDropdownButtonOffset]: globalRefs$7.spacing.xs,
9057
- [vars$d.overlayItemPaddingInlineStart]: globalRefs$7.spacing.xs,
9058
- [vars$d.overlayItemPaddingInlineEnd]: globalRefs$7.spacing.lg,
9248
+ [vars$e.hostWidth]: refs.width,
9249
+ [vars$e.hostDirection]: refs.direction,
9250
+ [vars$e.fontSize]: refs.fontSize,
9251
+ [vars$e.fontFamily]: refs.fontFamily,
9252
+ [vars$e.labelTextColor]: refs.labelTextColor,
9253
+ [vars$e.errorMessageTextColor]: refs.errorMessageTextColor,
9254
+ [vars$e.inputBorderColor]: refs.borderColor,
9255
+ [vars$e.inputBorderWidth]: refs.borderWidth,
9256
+ [vars$e.inputBorderStyle]: refs.borderStyle,
9257
+ [vars$e.inputBorderRadius]: refs.borderRadius,
9258
+ [vars$e.inputOutlineColor]: refs.outlineColor,
9259
+ [vars$e.inputOutlineOffset]: refs.outlineOffset,
9260
+ [vars$e.inputOutlineWidth]: refs.outlineWidth,
9261
+ [vars$e.inputOutlineStyle]: refs.outlineStyle,
9262
+ [vars$e.labelRequiredIndicator]: refs.requiredIndicator,
9263
+ [vars$e.inputValueTextColor]: refs.valueTextColor,
9264
+ [vars$e.inputPlaceholderTextColor]: refs.placeholderTextColor,
9265
+ [vars$e.inputBackgroundColor]: refs.backgroundColor,
9266
+ [vars$e.inputHorizontalPadding]: refs.horizontalPadding,
9267
+ [vars$e.inputHeight]: refs.inputHeight,
9268
+ [vars$e.inputDropdownButtonColor]: globalRefs$7.colors.surface.contrast,
9269
+ [vars$e.inputDropdownButtonCursor]: 'pointer',
9270
+ [vars$e.inputDropdownButtonSize]: refs.toggleButtonSize,
9271
+ [vars$e.inputDropdownButtonOffset]: globalRefs$7.spacing.xs,
9272
+ [vars$e.overlayItemPaddingInlineStart]: globalRefs$7.spacing.xs,
9273
+ [vars$e.overlayItemPaddingInlineEnd]: globalRefs$7.spacing.lg,
9059
9274
 
9060
9275
  _readonly: {
9061
- [vars$d.inputDropdownButtonCursor]: 'default',
9276
+ [vars$e.inputDropdownButtonCursor]: 'default',
9062
9277
  },
9063
9278
 
9064
9279
  // Overlay theme exposed via the component:
9065
- [vars$d.overlayFontSize]: refs.fontSize,
9066
- [vars$d.overlayFontFamily]: refs.fontFamily,
9067
- [vars$d.overlayCursor]: 'pointer',
9068
- [vars$d.overlayItemBoxShadow]: 'none',
9280
+ [vars$e.overlayFontSize]: refs.fontSize,
9281
+ [vars$e.overlayFontFamily]: refs.fontFamily,
9282
+ [vars$e.overlayCursor]: 'pointer',
9283
+ [vars$e.overlayItemBoxShadow]: 'none',
9069
9284
 
9070
9285
  // Overlay direct theme:
9071
- [vars$d.overlay.minHeight]: '400px',
9072
- [vars$d.overlay.margin]: '0',
9286
+ [vars$e.overlay.minHeight]: '400px',
9287
+ [vars$e.overlay.margin]: '0',
9073
9288
  };
9074
9289
 
9075
9290
  var comboBox$1 = /*#__PURE__*/Object.freeze({
9076
9291
  __proto__: null,
9077
9292
  comboBox: comboBox,
9078
9293
  default: comboBox,
9079
- vars: vars$d
9294
+ vars: vars$e
9080
9295
  });
9081
9296
 
9082
- const vars$c = ImageClass.cssVarList;
9297
+ const vars$d = ImageClass.cssVarList;
9083
9298
 
9084
9299
  const image = {};
9085
9300
 
9086
9301
  var image$1 = /*#__PURE__*/Object.freeze({
9087
9302
  __proto__: null,
9088
9303
  default: image,
9089
- vars: vars$c
9304
+ vars: vars$d
9090
9305
  });
9091
9306
 
9092
- const vars$b = PhoneFieldClass.cssVarList;
9307
+ const vars$c = PhoneFieldClass.cssVarList;
9093
9308
 
9094
9309
  const phoneField = {
9095
- [vars$b.hostWidth]: refs.width,
9310
+ [vars$c.hostWidth]: refs.width,
9311
+ [vars$c.hostDirection]: refs.direction,
9312
+ [vars$c.fontSize]: refs.fontSize,
9313
+ [vars$c.fontFamily]: refs.fontFamily,
9314
+ [vars$c.labelTextColor]: refs.labelTextColor,
9315
+ [vars$c.labelRequiredIndicator]: refs.requiredIndicator,
9316
+ [vars$c.errorMessageTextColor]: refs.errorMessageTextColor,
9317
+ [vars$c.inputValueTextColor]: refs.valueTextColor,
9318
+ [vars$c.inputPlaceholderTextColor]: refs.placeholderTextColor,
9319
+ [vars$c.inputBorderStyle]: refs.borderStyle,
9320
+ [vars$c.inputBorderWidth]: refs.borderWidth,
9321
+ [vars$c.inputBorderColor]: refs.borderColor,
9322
+ [vars$c.inputBorderRadius]: refs.borderRadius,
9323
+ [vars$c.inputOutlineStyle]: refs.outlineStyle,
9324
+ [vars$c.inputOutlineWidth]: refs.outlineWidth,
9325
+ [vars$c.inputOutlineColor]: refs.outlineColor,
9326
+ [vars$c.inputOutlineOffset]: refs.outlineOffset,
9327
+ [vars$c.phoneInputWidth]: refs.minWidth,
9328
+ [vars$c.countryCodeInputWidth]: '5em',
9329
+ [vars$c.countryCodeDropdownWidth]: '20em',
9330
+
9331
+ // '@overlay': {
9332
+ // overlayItemBackgroundColor: 'red'
9333
+ // }
9334
+ };
9335
+
9336
+ var phoneField$1 = /*#__PURE__*/Object.freeze({
9337
+ __proto__: null,
9338
+ default: phoneField,
9339
+ vars: vars$c
9340
+ });
9341
+
9342
+ const vars$b = PhoneFieldInputBoxClass.cssVarList;
9343
+
9344
+ const phoneInputBoxField = {
9345
+ [vars$b.hostWidth]: '16em',
9346
+ [vars$b.hostMinWidth]: refs.minWidth,
9096
9347
  [vars$b.hostDirection]: refs.direction,
9097
9348
  [vars$b.fontSize]: refs.fontSize,
9098
9349
  [vars$b.fontFamily]: refs.fontFamily,
@@ -9109,190 +9360,171 @@ const phoneField = {
9109
9360
  [vars$b.inputOutlineWidth]: refs.outlineWidth,
9110
9361
  [vars$b.inputOutlineColor]: refs.outlineColor,
9111
9362
  [vars$b.inputOutlineOffset]: refs.outlineOffset,
9112
- [vars$b.phoneInputWidth]: refs.minWidth,
9113
- [vars$b.countryCodeInputWidth]: '5em',
9114
- [vars$b.countryCodeDropdownWidth]: '20em',
9115
-
9116
- // '@overlay': {
9117
- // overlayItemBackgroundColor: 'red'
9118
- // }
9363
+ _fullWidth: {
9364
+ [vars$b.hostWidth]: refs.width,
9365
+ },
9119
9366
  };
9120
9367
 
9121
- var phoneField$1 = /*#__PURE__*/Object.freeze({
9368
+ var phoneInputBoxField$1 = /*#__PURE__*/Object.freeze({
9122
9369
  __proto__: null,
9123
- default: phoneField,
9370
+ default: phoneInputBoxField,
9124
9371
  vars: vars$b
9125
9372
  });
9126
9373
 
9127
- const vars$a = PhoneFieldInputBoxClass.cssVarList;
9374
+ const vars$a = NewPasswordClass.cssVarList;
9128
9375
 
9129
- const phoneInputBoxField = {
9130
- [vars$a.hostWidth]: '16em',
9376
+ const newPassword = {
9377
+ [vars$a.hostWidth]: refs.width,
9131
9378
  [vars$a.hostMinWidth]: refs.minWidth,
9132
9379
  [vars$a.hostDirection]: refs.direction,
9133
9380
  [vars$a.fontSize]: refs.fontSize,
9134
9381
  [vars$a.fontFamily]: refs.fontFamily,
9135
- [vars$a.labelTextColor]: refs.labelTextColor,
9136
- [vars$a.labelRequiredIndicator]: refs.requiredIndicator,
9382
+ [vars$a.spaceBetweenInputs]: '1em',
9137
9383
  [vars$a.errorMessageTextColor]: refs.errorMessageTextColor,
9138
- [vars$a.inputValueTextColor]: refs.valueTextColor,
9139
- [vars$a.inputPlaceholderTextColor]: refs.placeholderTextColor,
9140
- [vars$a.inputBorderStyle]: refs.borderStyle,
9141
- [vars$a.inputBorderWidth]: refs.borderWidth,
9142
- [vars$a.inputBorderColor]: refs.borderColor,
9143
- [vars$a.inputBorderRadius]: refs.borderRadius,
9144
- [vars$a.inputOutlineStyle]: refs.outlineStyle,
9145
- [vars$a.inputOutlineWidth]: refs.outlineWidth,
9146
- [vars$a.inputOutlineColor]: refs.outlineColor,
9147
- [vars$a.inputOutlineOffset]: refs.outlineOffset,
9148
- _fullWidth: {
9149
- [vars$a.hostWidth]: refs.width,
9150
- },
9151
- };
9152
-
9153
- var phoneInputBoxField$1 = /*#__PURE__*/Object.freeze({
9154
- __proto__: null,
9155
- default: phoneInputBoxField,
9156
- vars: vars$a
9157
- });
9158
-
9159
- const vars$9 = NewPasswordClass.cssVarList;
9160
-
9161
- const newPassword = {
9162
- [vars$9.hostWidth]: refs.width,
9163
- [vars$9.hostMinWidth]: refs.minWidth,
9164
- [vars$9.hostDirection]: refs.direction,
9165
- [vars$9.fontSize]: refs.fontSize,
9166
- [vars$9.fontFamily]: refs.fontFamily,
9167
- [vars$9.spaceBetweenInputs]: '1em',
9168
- [vars$9.errorMessageTextColor]: refs.errorMessageTextColor,
9169
9384
 
9170
9385
  _required: {
9171
9386
  // NewPassword doesn't pass `required` attribute to its Password components.
9172
9387
  // That's why we fake the required indicator on each input.
9173
9388
  // We do that by injecting `::after` element, and populating it with requiredIndicator content.
9174
- [vars$9.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
9389
+ [vars$a.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
9175
9390
  },
9176
9391
  };
9177
9392
 
9178
9393
  var newPassword$1 = /*#__PURE__*/Object.freeze({
9179
9394
  __proto__: null,
9180
9395
  default: newPassword,
9181
- vars: vars$9
9396
+ vars: vars$a
9182
9397
  });
9183
9398
 
9184
- const vars$8 = UploadFileClass.cssVarList;
9399
+ const vars$9 = UploadFileClass.cssVarList;
9185
9400
 
9186
9401
  const uploadFile = {
9187
- [vars$8.hostDirection]: refs.direction,
9188
- [vars$8.labelTextColor]: refs.labelTextColor,
9189
- [vars$8.fontFamily]: refs.fontFamily,
9402
+ [vars$9.hostDirection]: refs.direction,
9403
+ [vars$9.labelTextColor]: refs.labelTextColor,
9404
+ [vars$9.fontFamily]: refs.fontFamily,
9190
9405
 
9191
- [vars$8.iconSize]: '2em',
9406
+ [vars$9.iconSize]: '2em',
9192
9407
 
9193
- [vars$8.hostPadding]: '0.75em',
9194
- [vars$8.gap]: '0.5em',
9408
+ [vars$9.hostPadding]: '0.75em',
9409
+ [vars$9.gap]: '0.5em',
9195
9410
 
9196
- [vars$8.fontSize]: '16px',
9197
- [vars$8.titleFontWeight]: '500',
9198
- [vars$8.lineHeight]: '1em',
9411
+ [vars$9.fontSize]: '16px',
9412
+ [vars$9.titleFontWeight]: '500',
9413
+ [vars$9.lineHeight]: '1em',
9199
9414
 
9200
- [vars$8.borderWidth]: refs.borderWidth,
9201
- [vars$8.borderColor]: refs.borderColor,
9202
- [vars$8.borderRadius]: refs.borderRadius,
9203
- [vars$8.borderStyle]: 'dashed',
9415
+ [vars$9.borderWidth]: refs.borderWidth,
9416
+ [vars$9.borderColor]: refs.borderColor,
9417
+ [vars$9.borderRadius]: refs.borderRadius,
9418
+ [vars$9.borderStyle]: 'dashed',
9204
9419
 
9205
9420
  _required: {
9206
- [vars$8.requiredIndicator]: refs.requiredIndicator,
9421
+ [vars$9.requiredIndicator]: refs.requiredIndicator,
9207
9422
  },
9208
9423
 
9209
9424
  size: {
9210
9425
  xs: {
9211
- [vars$8.hostHeight]: '196px',
9212
- [vars$8.hostWidth]: '200px',
9213
- [vars$8.titleFontSize]: '0.875em',
9214
- [vars$8.descriptionFontSize]: '0.875em',
9215
- [vars$8.lineHeight]: '1.25em',
9426
+ [vars$9.hostHeight]: '196px',
9427
+ [vars$9.hostWidth]: '200px',
9428
+ [vars$9.titleFontSize]: '0.875em',
9429
+ [vars$9.descriptionFontSize]: '0.875em',
9430
+ [vars$9.lineHeight]: '1.25em',
9216
9431
  },
9217
9432
  sm: {
9218
- [vars$8.hostHeight]: '216px',
9219
- [vars$8.hostWidth]: '230px',
9220
- [vars$8.titleFontSize]: '1em',
9221
- [vars$8.descriptionFontSize]: '0.875em',
9222
- [vars$8.lineHeight]: '1.25em',
9433
+ [vars$9.hostHeight]: '216px',
9434
+ [vars$9.hostWidth]: '230px',
9435
+ [vars$9.titleFontSize]: '1em',
9436
+ [vars$9.descriptionFontSize]: '0.875em',
9437
+ [vars$9.lineHeight]: '1.25em',
9223
9438
  },
9224
9439
  md: {
9225
- [vars$8.hostHeight]: '256px',
9226
- [vars$8.hostWidth]: '312px',
9227
- [vars$8.titleFontSize]: '1.125em',
9228
- [vars$8.descriptionFontSize]: '1em',
9229
- [vars$8.lineHeight]: '1.5em',
9440
+ [vars$9.hostHeight]: '256px',
9441
+ [vars$9.hostWidth]: '312px',
9442
+ [vars$9.titleFontSize]: '1.125em',
9443
+ [vars$9.descriptionFontSize]: '1em',
9444
+ [vars$9.lineHeight]: '1.5em',
9230
9445
  },
9231
9446
  lg: {
9232
- [vars$8.hostHeight]: '280px',
9233
- [vars$8.hostWidth]: '336px',
9234
- [vars$8.titleFontSize]: '1.125em',
9235
- [vars$8.descriptionFontSize]: '1.125em',
9236
- [vars$8.lineHeight]: '1.75em',
9447
+ [vars$9.hostHeight]: '280px',
9448
+ [vars$9.hostWidth]: '336px',
9449
+ [vars$9.titleFontSize]: '1.125em',
9450
+ [vars$9.descriptionFontSize]: '1.125em',
9451
+ [vars$9.lineHeight]: '1.75em',
9237
9452
  },
9238
9453
  },
9239
9454
 
9240
9455
  _fullWidth: {
9241
- [vars$8.hostWidth]: refs.width,
9456
+ [vars$9.hostWidth]: refs.width,
9242
9457
  },
9243
9458
  };
9244
9459
 
9245
9460
  var uploadFile$1 = /*#__PURE__*/Object.freeze({
9246
9461
  __proto__: null,
9247
9462
  default: uploadFile,
9248
- vars: vars$8
9463
+ vars: vars$9
9249
9464
  });
9250
9465
 
9251
9466
  const globalRefs$6 = getThemeRefs(globals);
9252
9467
 
9253
- const vars$7 = ButtonSelectionGroupItemClass.cssVarList;
9468
+ const vars$8 = ButtonSelectionGroupItemClass.cssVarList;
9254
9469
 
9255
9470
  const buttonSelectionGroupItem = {
9256
- [vars$7.hostDirection]: 'inherit',
9257
- [vars$7.backgroundColor]: globalRefs$6.colors.surface.light,
9258
- [vars$7.labelTextColor]: globalRefs$6.colors.surface.contrast,
9259
- [vars$7.borderColor]: globalRefs$6.colors.surface.main,
9260
- [vars$7.borderStyle]: 'solid',
9261
- [vars$7.borderRadius]: globalRefs$6.radius.sm,
9471
+ [vars$8.hostDirection]: 'inherit',
9472
+ [vars$8.backgroundColor]: globalRefs$6.colors.surface.light,
9473
+ [vars$8.labelTextColor]: globalRefs$6.colors.surface.contrast,
9474
+ [vars$8.borderColor]: globalRefs$6.colors.surface.main,
9475
+ [vars$8.borderStyle]: 'solid',
9476
+ [vars$8.borderRadius]: globalRefs$6.radius.sm,
9262
9477
 
9263
9478
  _hover: {
9264
- [vars$7.backgroundColor]: '#f4f5f5', // can we take it from the palette?
9479
+ [vars$8.backgroundColor]: '#f4f5f5', // can we take it from the palette?
9265
9480
  },
9266
9481
 
9267
9482
  _selected: {
9268
- [vars$7.borderColor]: globalRefs$6.colors.surface.contrast,
9269
- [vars$7.backgroundColor]: globalRefs$6.colors.surface.contrast,
9270
- [vars$7.labelTextColor]: globalRefs$6.colors.surface.light,
9483
+ [vars$8.borderColor]: globalRefs$6.colors.surface.contrast,
9484
+ [vars$8.backgroundColor]: globalRefs$6.colors.surface.contrast,
9485
+ [vars$8.labelTextColor]: globalRefs$6.colors.surface.light,
9271
9486
  },
9272
9487
  };
9273
9488
 
9274
9489
  var buttonSelectionGroupItem$1 = /*#__PURE__*/Object.freeze({
9275
9490
  __proto__: null,
9276
9491
  default: buttonSelectionGroupItem,
9277
- vars: vars$7
9492
+ vars: vars$8
9278
9493
  });
9279
9494
 
9280
9495
  const globalRefs$5 = getThemeRefs(globals);
9281
- const vars$6 = ButtonSelectionGroupClass.cssVarList;
9496
+
9497
+ const createBaseButtonSelectionGroupMappings = (vars) => ({
9498
+ [vars.hostDirection]: refs.direction,
9499
+ [vars.fontFamily]: refs.fontFamily,
9500
+ [vars.labelTextColor]: refs.labelTextColor,
9501
+ [vars.labelRequiredIndicator]: refs.requiredIndicator,
9502
+ [vars.errorMessageTextColor]: refs.errorMessageTextColor,
9503
+ [vars.itemsSpacing]: globalRefs$5.spacing.sm,
9504
+ [vars.hostWidth]: refs.width,
9505
+ });
9506
+
9507
+ const vars$7 = ButtonSelectionGroupClass.cssVarList;
9282
9508
 
9283
9509
  const buttonSelectionGroup = {
9284
- [vars$6.hostDirection]: refs.direction,
9285
- [vars$6.fontFamily]: refs.fontFamily,
9286
- [vars$6.labelTextColor]: refs.labelTextColor,
9287
- [vars$6.labelRequiredIndicator]: refs.requiredIndicator,
9288
- [vars$6.errorMessageTextColor]: refs.errorMessageTextColor,
9289
- [vars$6.itemsSpacing]: globalRefs$5.spacing.sm,
9290
- [vars$6.hostWidth]: refs.width,
9510
+ ...createBaseButtonSelectionGroupMappings(vars$7),
9291
9511
  };
9292
9512
 
9293
9513
  var buttonSelectionGroup$1 = /*#__PURE__*/Object.freeze({
9294
9514
  __proto__: null,
9295
9515
  default: buttonSelectionGroup,
9516
+ vars: vars$7
9517
+ });
9518
+
9519
+ const vars$6 = ButtonMultiSelectionGroupClass.cssVarList;
9520
+
9521
+ const buttonMultiSelectionGroup = {
9522
+ ...createBaseButtonSelectionGroupMappings(vars$6),
9523
+ };
9524
+
9525
+ var buttonMultiSelectionGroup$1 = /*#__PURE__*/Object.freeze({
9526
+ __proto__: null,
9527
+ default: buttonMultiSelectionGroup,
9296
9528
  vars: vars$6
9297
9529
  });
9298
9530
 
@@ -9779,6 +10011,7 @@ const components = {
9779
10011
  uploadFile: uploadFile$1,
9780
10012
  buttonSelectionGroupItem: buttonSelectionGroupItem$1,
9781
10013
  buttonSelectionGroup: buttonSelectionGroup$1,
10014
+ buttonMultiSelectionGroup: buttonMultiSelectionGroup$1,
9782
10015
  modal: modal$1,
9783
10016
  grid: grid$1,
9784
10017
  notificationCard,
@@ -9796,7 +10029,7 @@ const vars = Object.keys(components).reduce(
9796
10029
  );
9797
10030
 
9798
10031
  const defaultTheme = { globals, components: theme };
9799
- const themeVars = { globals: vars$w, components: vars };
10032
+ const themeVars = { globals: vars$x, components: vars };
9800
10033
 
9801
- export { BadgeClass, ButtonClass, ButtonSelectionGroupClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, MultiSelectComboBoxClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, RecaptchaClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
10034
+ export { BadgeClass, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, MultiSelectComboBoxClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, RecaptchaClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
9802
10035
  //# sourceMappingURL=index.esm.js.map