@descope/web-components-ui 1.0.259 → 1.0.261

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1288,7 +1288,7 @@ const clickableMixin = (superclass) =>
1288
1288
  }
1289
1289
  };
1290
1290
 
1291
- const componentName$G = getComponentName('button');
1291
+ const componentName$H = getComponentName('button');
1292
1292
 
1293
1293
  const resetStyles = `
1294
1294
  :host {
@@ -1390,7 +1390,7 @@ const ButtonClass = compose(
1390
1390
  }
1391
1391
  `,
1392
1392
  excludeAttrsSync: ['tabindex'],
1393
- componentName: componentName$G,
1393
+ componentName: componentName$H,
1394
1394
  })
1395
1395
  );
1396
1396
 
@@ -1427,7 +1427,7 @@ loadingIndicatorStyles = `
1427
1427
  }
1428
1428
  `;
1429
1429
 
1430
- customElements.define(componentName$G, ButtonClass);
1430
+ customElements.define(componentName$H, ButtonClass);
1431
1431
 
1432
1432
  const createBaseInputClass = (...args) =>
1433
1433
  compose(
@@ -1437,11 +1437,11 @@ const createBaseInputClass = (...args) =>
1437
1437
  inputEventsDispatchingMixin
1438
1438
  )(createBaseClass(...args));
1439
1439
 
1440
- const componentName$F = getComponentName('boolean-field-internal');
1440
+ const componentName$G = getComponentName('boolean-field-internal');
1441
1441
 
1442
1442
  const forwardAttributes$1 = ['disabled', 'label', 'invalid', 'readonly'];
1443
1443
 
1444
- const BaseInputClass$5 = createBaseInputClass({ componentName: componentName$F, baseSelector: 'div' });
1444
+ const BaseInputClass$5 = createBaseInputClass({ componentName: componentName$G, baseSelector: 'div' });
1445
1445
 
1446
1446
  class BooleanInputInternal extends BaseInputClass$5 {
1447
1447
  static get observedAttributes() {
@@ -1517,14 +1517,14 @@ const booleanFieldMixin = (superclass) =>
1517
1517
 
1518
1518
  const template = document.createElement('template');
1519
1519
  template.innerHTML = `
1520
- <${componentName$F}
1520
+ <${componentName$G}
1521
1521
  tabindex="-1"
1522
1522
  slot="input"
1523
- ></${componentName$F}>
1523
+ ></${componentName$G}>
1524
1524
  `;
1525
1525
 
1526
1526
  this.baseElement.appendChild(template.content.cloneNode(true));
1527
- this.inputElement = this.shadowRoot.querySelector(componentName$F);
1527
+ this.inputElement = this.shadowRoot.querySelector(componentName$G);
1528
1528
  this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
1529
1529
 
1530
1530
  forwardAttrs(this, this.inputElement, {
@@ -1723,7 +1723,7 @@ descope-boolean-field-internal {
1723
1723
  }
1724
1724
  `;
1725
1725
 
1726
- const componentName$E = getComponentName('checkbox');
1726
+ const componentName$F = getComponentName('checkbox');
1727
1727
 
1728
1728
  const {
1729
1729
  host: host$g,
@@ -1829,15 +1829,15 @@ const CheckboxClass = compose(
1829
1829
  }
1830
1830
  `,
1831
1831
  excludeAttrsSync: ['label', 'tabindex'],
1832
- componentName: componentName$E,
1832
+ componentName: componentName$F,
1833
1833
  })
1834
1834
  );
1835
1835
 
1836
- customElements.define(componentName$F, BooleanInputInternal);
1836
+ customElements.define(componentName$G, BooleanInputInternal);
1837
1837
 
1838
- customElements.define(componentName$E, CheckboxClass);
1838
+ customElements.define(componentName$F, CheckboxClass);
1839
1839
 
1840
- const componentName$D = getComponentName('switch-toggle');
1840
+ const componentName$E = getComponentName('switch-toggle');
1841
1841
 
1842
1842
  const {
1843
1843
  host: host$f,
@@ -1969,17 +1969,17 @@ const SwitchToggleClass = compose(
1969
1969
  }
1970
1970
  `,
1971
1971
  excludeAttrsSync: ['label', 'tabindex'],
1972
- componentName: componentName$D,
1972
+ componentName: componentName$E,
1973
1973
  })
1974
1974
  );
1975
1975
 
1976
- customElements.define(componentName$D, SwitchToggleClass);
1976
+ customElements.define(componentName$E, SwitchToggleClass);
1977
1977
 
1978
- const componentName$C = getComponentName('loader-linear');
1978
+ const componentName$D = getComponentName('loader-linear');
1979
1979
 
1980
- class RawLoaderLinear extends createBaseClass({ componentName: componentName$C, baseSelector: ':host > div' }) {
1980
+ class RawLoaderLinear extends createBaseClass({ componentName: componentName$D, baseSelector: ':host > div' }) {
1981
1981
  static get componentName() {
1982
- return componentName$C;
1982
+ return componentName$D;
1983
1983
  }
1984
1984
 
1985
1985
  constructor() {
@@ -2040,11 +2040,11 @@ const LoaderLinearClass = compose(
2040
2040
  componentNameValidationMixin
2041
2041
  )(RawLoaderLinear);
2042
2042
 
2043
- customElements.define(componentName$C, LoaderLinearClass);
2043
+ customElements.define(componentName$D, LoaderLinearClass);
2044
2044
 
2045
- const componentName$B = getComponentName('loader-radial');
2045
+ const componentName$C = getComponentName('loader-radial');
2046
2046
 
2047
- class RawLoaderRadial extends createBaseClass({ componentName: componentName$B, baseSelector: ':host > div' }) {
2047
+ class RawLoaderRadial extends createBaseClass({ componentName: componentName$C, baseSelector: ':host > div' }) {
2048
2048
  constructor() {
2049
2049
  super();
2050
2050
 
@@ -2088,11 +2088,11 @@ const LoaderRadialClass = compose(
2088
2088
  componentNameValidationMixin
2089
2089
  )(RawLoaderRadial);
2090
2090
 
2091
- customElements.define(componentName$B, LoaderRadialClass);
2091
+ customElements.define(componentName$C, LoaderRadialClass);
2092
2092
 
2093
- const componentName$A = getComponentName('container');
2093
+ const componentName$B = getComponentName('container');
2094
2094
 
2095
- class RawContainer extends createBaseClass({ componentName: componentName$A, baseSelector: 'slot' }) {
2095
+ class RawContainer extends createBaseClass({ componentName: componentName$B, baseSelector: 'slot' }) {
2096
2096
  constructor() {
2097
2097
  super();
2098
2098
 
@@ -2144,13 +2144,13 @@ const ContainerClass = compose(
2144
2144
  componentNameValidationMixin
2145
2145
  )(RawContainer);
2146
2146
 
2147
- customElements.define(componentName$A, ContainerClass);
2147
+ customElements.define(componentName$B, ContainerClass);
2148
2148
 
2149
2149
  // eslint-disable-next-line max-classes-per-file
2150
2150
 
2151
- const componentName$z = getComponentName('text');
2151
+ const componentName$A = getComponentName('text');
2152
2152
 
2153
- class RawText extends createBaseClass({ componentName: componentName$z, baseSelector: ':host > slot' }) {
2153
+ class RawText extends createBaseClass({ componentName: componentName$A, baseSelector: ':host > slot' }) {
2154
2154
  constructor() {
2155
2155
  super();
2156
2156
 
@@ -2210,8 +2210,8 @@ const TextClass = compose(
2210
2210
  customTextMixin
2211
2211
  )(RawText);
2212
2212
 
2213
- const componentName$y = getComponentName('divider');
2214
- class RawDivider extends createBaseClass({ componentName: componentName$y, baseSelector: ':host > div' }) {
2213
+ const componentName$z = getComponentName('divider');
2214
+ class RawDivider extends createBaseClass({ componentName: componentName$z, baseSelector: ':host > div' }) {
2215
2215
  constructor() {
2216
2216
  super();
2217
2217
 
@@ -2310,9 +2310,9 @@ const DividerClass = compose(
2310
2310
  componentNameValidationMixin
2311
2311
  )(RawDivider);
2312
2312
 
2313
- customElements.define(componentName$z, TextClass);
2313
+ customElements.define(componentName$A, TextClass);
2314
2314
 
2315
- customElements.define(componentName$y, DividerClass);
2315
+ customElements.define(componentName$z, DividerClass);
2316
2316
 
2317
2317
  const { host: host$c, label: label$9, placeholder: placeholder$3, requiredIndicator: requiredIndicator$9, inputField: inputField$6, input, helperText: helperText$7, errorMessage: errorMessage$9 } =
2318
2318
  {
@@ -2369,7 +2369,7 @@ var textFieldMappings = {
2369
2369
  inputPlaceholderColor: { ...placeholder$3, property: 'color' },
2370
2370
  };
2371
2371
 
2372
- const componentName$x = getComponentName('email-field');
2372
+ const componentName$y = getComponentName('email-field');
2373
2373
 
2374
2374
  const customMixin$6 = (superclass) =>
2375
2375
  class EmailFieldMixinClass extends superclass {
@@ -2404,15 +2404,15 @@ const EmailFieldClass = compose(
2404
2404
  ${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
2405
2405
  `,
2406
2406
  excludeAttrsSync: ['tabindex'],
2407
- componentName: componentName$x,
2407
+ componentName: componentName$y,
2408
2408
  })
2409
2409
  );
2410
2410
 
2411
- customElements.define(componentName$x, EmailFieldClass);
2411
+ customElements.define(componentName$y, EmailFieldClass);
2412
2412
 
2413
- const componentName$w = getComponentName('link');
2413
+ const componentName$x = getComponentName('link');
2414
2414
 
2415
- class RawLink extends createBaseClass({ componentName: componentName$w, baseSelector: ':host a' }) {
2415
+ class RawLink extends createBaseClass({ componentName: componentName$x, baseSelector: ':host a' }) {
2416
2416
  constructor() {
2417
2417
  super();
2418
2418
 
@@ -2477,7 +2477,7 @@ const LinkClass = compose(
2477
2477
  componentNameValidationMixin
2478
2478
  )(RawLink);
2479
2479
 
2480
- customElements.define(componentName$w, LinkClass);
2480
+ customElements.define(componentName$x, LinkClass);
2481
2481
 
2482
2482
  const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
2483
2483
  let style;
@@ -2529,25 +2529,35 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
2529
2529
  return CssVarImageClass;
2530
2530
  };
2531
2531
 
2532
- const componentName$v = getComponentName('logo');
2532
+ const componentName$w = getComponentName('logo');
2533
2533
 
2534
2534
  const LogoClass = createCssVarImageClass({
2535
- componentName: componentName$v,
2535
+ componentName: componentName$w,
2536
2536
  varName: 'url',
2537
2537
  fallbackVarName: 'fallbackUrl',
2538
2538
  });
2539
2539
 
2540
- customElements.define(componentName$v, LogoClass);
2540
+ customElements.define(componentName$w, LogoClass);
2541
2541
 
2542
- const componentName$u = getComponentName('totp-image');
2542
+ const componentName$v = getComponentName('totp-image');
2543
2543
 
2544
2544
  const TotpImageClass = createCssVarImageClass({
2545
+ componentName: componentName$v,
2546
+ varName: 'url',
2547
+ fallbackVarName: 'fallbackUrl',
2548
+ });
2549
+
2550
+ customElements.define(componentName$v, TotpImageClass);
2551
+
2552
+ const componentName$u = getComponentName('notp-image');
2553
+
2554
+ const NotpImageClass = createCssVarImageClass({
2545
2555
  componentName: componentName$u,
2546
2556
  varName: 'url',
2547
2557
  fallbackVarName: 'fallbackUrl',
2548
2558
  });
2549
2559
 
2550
- customElements.define(componentName$u, TotpImageClass);
2560
+ customElements.define(componentName$u, NotpImageClass);
2551
2561
 
2552
2562
  const componentName$t = getComponentName('number-field');
2553
2563
 
@@ -7617,17 +7627,26 @@ const multiSelectComboBoxMixin = (superclass) =>
7617
7627
  });
7618
7628
  }
7619
7629
 
7630
+ // To prevent duplicate items for the multi select options, we dedup them based on the "data-id" attribute
7631
+ // eslint-disable-next-line class-methods-use-this
7632
+ #dedupItems(items) {
7633
+ return Array.from(
7634
+ new Map(items.map((item) => [item.getAttribute('data-id'), item])).values()
7635
+ );
7636
+ }
7637
+
7620
7638
  // vaadin api is to set props on their combo box node,
7621
7639
  // in order to avoid it, we are passing the children of this component
7622
7640
  // to the items & renderer props, so it will be used as the combo box items
7623
7641
  #onChildrenChange() {
7624
7642
  const items = Array.from(this.children);
7643
+ const dedupItems = this.#dedupItems(items);
7625
7644
 
7626
7645
  // we want the data-name attribute to be accessible as an object attribute
7627
7646
  if (items.length) {
7628
7647
  this.removeAttribute('has-no-options');
7629
7648
 
7630
- items.forEach((node) => {
7649
+ dedupItems.forEach((node) => {
7631
7650
  Object.defineProperty(node, 'data-name', {
7632
7651
  value: node.getAttribute('data-name'),
7633
7652
  configurable: true,
@@ -7640,7 +7659,7 @@ const multiSelectComboBoxMixin = (superclass) =>
7640
7659
  });
7641
7660
  });
7642
7661
 
7643
- this.baseElement.items = items;
7662
+ this.baseElement.items = dedupItems;
7644
7663
 
7645
7664
  setTimeout(() => {
7646
7665
  // set timeout to ensure this runs after customValueTransformFn had the chance to be overriden
@@ -8555,7 +8574,7 @@ const globals = {
8555
8574
  fonts,
8556
8575
  direction,
8557
8576
  };
8558
- const vars$x = getThemeVars(globals);
8577
+ const vars$y = getThemeVars(globals);
8559
8578
 
8560
8579
  const globalRefs$i = getThemeRefs(globals);
8561
8580
  const compVars$4 = ButtonClass.cssVarList;
@@ -8568,7 +8587,7 @@ const mode = {
8568
8587
  surface: globalRefs$i.colors.surface,
8569
8588
  };
8570
8589
 
8571
- const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$G);
8590
+ const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$H);
8572
8591
 
8573
8592
  const button = {
8574
8593
  ...helperTheme$3,
@@ -8673,7 +8692,7 @@ const button = {
8673
8692
  },
8674
8693
  };
8675
8694
 
8676
- const vars$w = {
8695
+ const vars$x = {
8677
8696
  ...compVars$4,
8678
8697
  ...helperVars$3,
8679
8698
  };
@@ -8681,13 +8700,13 @@ const vars$w = {
8681
8700
  var button$1 = /*#__PURE__*/Object.freeze({
8682
8701
  __proto__: null,
8683
8702
  default: button,
8684
- vars: vars$w
8703
+ vars: vars$x
8685
8704
  });
8686
8705
 
8687
8706
  const componentName$1 = getComponentName('input-wrapper');
8688
8707
  const globalRefs$h = getThemeRefs(globals);
8689
8708
 
8690
- const [theme$1, refs, vars$v] = createHelperVars(
8709
+ const [theme$1, refs, vars$w] = createHelperVars(
8691
8710
  {
8692
8711
  labelTextColor: globalRefs$h.colors.surface.contrast,
8693
8712
  valueTextColor: globalRefs$h.colors.surface.contrast,
@@ -8760,22 +8779,63 @@ var inputWrapper = /*#__PURE__*/Object.freeze({
8760
8779
  __proto__: null,
8761
8780
  default: theme$1,
8762
8781
  refs: refs,
8763
- vars: vars$v
8782
+ vars: vars$w
8764
8783
  });
8765
8784
 
8766
- const vars$u = TextFieldClass.cssVarList;
8785
+ const vars$v = TextFieldClass.cssVarList;
8767
8786
 
8768
8787
  const textField = {
8788
+ [vars$v.hostWidth]: refs.width,
8789
+ [vars$v.hostMinWidth]: refs.minWidth,
8790
+ [vars$v.hostDirection]: refs.direction,
8791
+ [vars$v.fontSize]: refs.fontSize,
8792
+ [vars$v.fontFamily]: refs.fontFamily,
8793
+ [vars$v.labelTextColor]: refs.labelTextColor,
8794
+ [vars$v.labelRequiredIndicator]: refs.requiredIndicator,
8795
+ [vars$v.errorMessageTextColor]: refs.errorMessageTextColor,
8796
+ [vars$v.inputValueTextColor]: refs.valueTextColor,
8797
+ [vars$v.inputPlaceholderColor]: refs.placeholderTextColor,
8798
+ [vars$v.inputBorderWidth]: refs.borderWidth,
8799
+ [vars$v.inputBorderStyle]: refs.borderStyle,
8800
+ [vars$v.inputBorderColor]: refs.borderColor,
8801
+ [vars$v.inputBorderRadius]: refs.borderRadius,
8802
+ [vars$v.inputOutlineWidth]: refs.outlineWidth,
8803
+ [vars$v.inputOutlineStyle]: refs.outlineStyle,
8804
+ [vars$v.inputOutlineColor]: refs.outlineColor,
8805
+ [vars$v.inputOutlineOffset]: refs.outlineOffset,
8806
+ [vars$v.inputBackgroundColor]: refs.backgroundColor,
8807
+ [vars$v.inputHeight]: refs.inputHeight,
8808
+ [vars$v.inputHorizontalPadding]: refs.horizontalPadding,
8809
+ textAlign: {
8810
+ right: { [vars$v.inputTextAlign]: 'right' },
8811
+ left: { [vars$v.inputTextAlign]: 'left' },
8812
+ center: { [vars$v.inputTextAlign]: 'center' },
8813
+ },
8814
+ };
8815
+
8816
+ var textField$1 = /*#__PURE__*/Object.freeze({
8817
+ __proto__: null,
8818
+ default: textField,
8819
+ textField: textField,
8820
+ vars: vars$v
8821
+ });
8822
+
8823
+ const globalRefs$g = getThemeRefs(globals);
8824
+ const vars$u = PasswordClass.cssVarList;
8825
+
8826
+ const password = {
8769
8827
  [vars$u.hostWidth]: refs.width,
8770
- [vars$u.hostMinWidth]: refs.minWidth,
8771
8828
  [vars$u.hostDirection]: refs.direction,
8772
8829
  [vars$u.fontSize]: refs.fontSize,
8773
8830
  [vars$u.fontFamily]: refs.fontFamily,
8774
8831
  [vars$u.labelTextColor]: refs.labelTextColor,
8775
- [vars$u.labelRequiredIndicator]: refs.requiredIndicator,
8776
8832
  [vars$u.errorMessageTextColor]: refs.errorMessageTextColor,
8833
+ [vars$u.inputHorizontalPadding]: refs.horizontalPadding,
8834
+ [vars$u.inputHeight]: refs.inputHeight,
8835
+ [vars$u.inputBackgroundColor]: refs.backgroundColor,
8836
+ [vars$u.labelRequiredIndicator]: refs.requiredIndicator,
8777
8837
  [vars$u.inputValueTextColor]: refs.valueTextColor,
8778
- [vars$u.inputPlaceholderColor]: refs.placeholderTextColor,
8838
+ [vars$u.inputPlaceholderTextColor]: refs.placeholderTextColor,
8779
8839
  [vars$u.inputBorderWidth]: refs.borderWidth,
8780
8840
  [vars$u.inputBorderStyle]: refs.borderStyle,
8781
8841
  [vars$u.inputBorderColor]: refs.borderColor,
@@ -8784,39 +8844,28 @@ const textField = {
8784
8844
  [vars$u.inputOutlineStyle]: refs.outlineStyle,
8785
8845
  [vars$u.inputOutlineColor]: refs.outlineColor,
8786
8846
  [vars$u.inputOutlineOffset]: refs.outlineOffset,
8787
- [vars$u.inputBackgroundColor]: refs.backgroundColor,
8788
- [vars$u.inputHeight]: refs.inputHeight,
8789
- [vars$u.inputHorizontalPadding]: refs.horizontalPadding,
8790
- textAlign: {
8791
- right: { [vars$u.inputTextAlign]: 'right' },
8792
- left: { [vars$u.inputTextAlign]: 'left' },
8793
- center: { [vars$u.inputTextAlign]: 'center' },
8794
- },
8847
+ [vars$u.revealButtonOffset]: globalRefs$g.spacing.md,
8848
+ [vars$u.revealButtonSize]: refs.toggleButtonSize,
8795
8849
  };
8796
8850
 
8797
- var textField$1 = /*#__PURE__*/Object.freeze({
8851
+ var password$1 = /*#__PURE__*/Object.freeze({
8798
8852
  __proto__: null,
8799
- default: textField,
8800
- textField: textField,
8853
+ default: password,
8801
8854
  vars: vars$u
8802
8855
  });
8803
8856
 
8804
- const globalRefs$g = getThemeRefs(globals);
8805
- const vars$t = PasswordClass.cssVarList;
8857
+ const vars$t = NumberFieldClass.cssVarList;
8806
8858
 
8807
- const password = {
8859
+ const numberField = {
8808
8860
  [vars$t.hostWidth]: refs.width,
8861
+ [vars$t.hostMinWidth]: refs.minWidth,
8809
8862
  [vars$t.hostDirection]: refs.direction,
8810
8863
  [vars$t.fontSize]: refs.fontSize,
8811
8864
  [vars$t.fontFamily]: refs.fontFamily,
8812
8865
  [vars$t.labelTextColor]: refs.labelTextColor,
8813
8866
  [vars$t.errorMessageTextColor]: refs.errorMessageTextColor,
8814
- [vars$t.inputHorizontalPadding]: refs.horizontalPadding,
8815
- [vars$t.inputHeight]: refs.inputHeight,
8816
- [vars$t.inputBackgroundColor]: refs.backgroundColor,
8817
- [vars$t.labelRequiredIndicator]: refs.requiredIndicator,
8818
8867
  [vars$t.inputValueTextColor]: refs.valueTextColor,
8819
- [vars$t.inputPlaceholderTextColor]: refs.placeholderTextColor,
8868
+ [vars$t.inputPlaceholderColor]: refs.placeholderTextColor,
8820
8869
  [vars$t.inputBorderWidth]: refs.borderWidth,
8821
8870
  [vars$t.inputBorderStyle]: refs.borderStyle,
8822
8871
  [vars$t.inputBorderColor]: refs.borderColor,
@@ -8825,19 +8874,21 @@ const password = {
8825
8874
  [vars$t.inputOutlineStyle]: refs.outlineStyle,
8826
8875
  [vars$t.inputOutlineColor]: refs.outlineColor,
8827
8876
  [vars$t.inputOutlineOffset]: refs.outlineOffset,
8828
- [vars$t.revealButtonOffset]: globalRefs$g.spacing.md,
8829
- [vars$t.revealButtonSize]: refs.toggleButtonSize,
8877
+ [vars$t.inputBackgroundColor]: refs.backgroundColor,
8878
+ [vars$t.labelRequiredIndicator]: refs.requiredIndicator,
8879
+ [vars$t.inputHorizontalPadding]: refs.horizontalPadding,
8880
+ [vars$t.inputHeight]: refs.inputHeight,
8830
8881
  };
8831
8882
 
8832
- var password$1 = /*#__PURE__*/Object.freeze({
8883
+ var numberField$1 = /*#__PURE__*/Object.freeze({
8833
8884
  __proto__: null,
8834
- default: password,
8885
+ default: numberField,
8835
8886
  vars: vars$t
8836
8887
  });
8837
8888
 
8838
- const vars$s = NumberFieldClass.cssVarList;
8889
+ const vars$s = EmailFieldClass.cssVarList;
8839
8890
 
8840
- const numberField = {
8891
+ const emailField = {
8841
8892
  [vars$s.hostWidth]: refs.width,
8842
8893
  [vars$s.hostMinWidth]: refs.minWidth,
8843
8894
  [vars$s.hostDirection]: refs.direction,
@@ -8846,6 +8897,7 @@ const numberField = {
8846
8897
  [vars$s.labelTextColor]: refs.labelTextColor,
8847
8898
  [vars$s.errorMessageTextColor]: refs.errorMessageTextColor,
8848
8899
  [vars$s.inputValueTextColor]: refs.valueTextColor,
8900
+ [vars$s.labelRequiredIndicator]: refs.requiredIndicator,
8849
8901
  [vars$s.inputPlaceholderColor]: refs.placeholderTextColor,
8850
8902
  [vars$s.inputBorderWidth]: refs.borderWidth,
8851
8903
  [vars$s.inputBorderStyle]: refs.borderStyle,
@@ -8856,203 +8908,170 @@ const numberField = {
8856
8908
  [vars$s.inputOutlineColor]: refs.outlineColor,
8857
8909
  [vars$s.inputOutlineOffset]: refs.outlineOffset,
8858
8910
  [vars$s.inputBackgroundColor]: refs.backgroundColor,
8859
- [vars$s.labelRequiredIndicator]: refs.requiredIndicator,
8860
8911
  [vars$s.inputHorizontalPadding]: refs.horizontalPadding,
8861
8912
  [vars$s.inputHeight]: refs.inputHeight,
8862
8913
  };
8863
8914
 
8864
- var numberField$1 = /*#__PURE__*/Object.freeze({
8915
+ var emailField$1 = /*#__PURE__*/Object.freeze({
8865
8916
  __proto__: null,
8866
- default: numberField,
8917
+ default: emailField,
8867
8918
  vars: vars$s
8868
8919
  });
8869
8920
 
8870
- const vars$r = EmailFieldClass.cssVarList;
8921
+ const globalRefs$f = getThemeRefs(globals);
8922
+ const vars$r = TextAreaClass.cssVarList;
8871
8923
 
8872
- const emailField = {
8924
+ const textArea = {
8873
8925
  [vars$r.hostWidth]: refs.width,
8874
8926
  [vars$r.hostMinWidth]: refs.minWidth,
8875
8927
  [vars$r.hostDirection]: refs.direction,
8876
8928
  [vars$r.fontSize]: refs.fontSize,
8877
8929
  [vars$r.fontFamily]: refs.fontFamily,
8878
8930
  [vars$r.labelTextColor]: refs.labelTextColor,
8931
+ [vars$r.labelRequiredIndicator]: refs.requiredIndicator,
8879
8932
  [vars$r.errorMessageTextColor]: refs.errorMessageTextColor,
8933
+ [vars$r.inputBackgroundColor]: refs.backgroundColor,
8880
8934
  [vars$r.inputValueTextColor]: refs.valueTextColor,
8881
- [vars$r.labelRequiredIndicator]: refs.requiredIndicator,
8882
- [vars$r.inputPlaceholderColor]: refs.placeholderTextColor,
8935
+ [vars$r.inputPlaceholderTextColor]: refs.placeholderTextColor,
8936
+ [vars$r.inputBorderRadius]: refs.borderRadius,
8883
8937
  [vars$r.inputBorderWidth]: refs.borderWidth,
8884
8938
  [vars$r.inputBorderStyle]: refs.borderStyle,
8885
8939
  [vars$r.inputBorderColor]: refs.borderColor,
8886
- [vars$r.inputBorderRadius]: refs.borderRadius,
8887
8940
  [vars$r.inputOutlineWidth]: refs.outlineWidth,
8888
8941
  [vars$r.inputOutlineStyle]: refs.outlineStyle,
8889
8942
  [vars$r.inputOutlineColor]: refs.outlineColor,
8890
8943
  [vars$r.inputOutlineOffset]: refs.outlineOffset,
8891
- [vars$r.inputBackgroundColor]: refs.backgroundColor,
8892
- [vars$r.inputHorizontalPadding]: refs.horizontalPadding,
8893
- [vars$r.inputHeight]: refs.inputHeight,
8944
+ [vars$r.inputResizeType]: 'vertical',
8945
+ [vars$r.inputMinHeight]: '5em',
8946
+ textAlign: {
8947
+ right: { [vars$r.inputTextAlign]: 'right' },
8948
+ left: { [vars$r.inputTextAlign]: 'left' },
8949
+ center: { [vars$r.inputTextAlign]: 'center' },
8950
+ },
8951
+
8952
+ _disabled: {
8953
+ [vars$r.inputBackgroundColor]: globalRefs$f.colors.surface.light,
8954
+ },
8955
+
8956
+ _readonly: {
8957
+ [vars$r.inputResizeType]: 'none',
8958
+ },
8894
8959
  };
8895
8960
 
8896
- var emailField$1 = /*#__PURE__*/Object.freeze({
8961
+ var textArea$1 = /*#__PURE__*/Object.freeze({
8897
8962
  __proto__: null,
8898
- default: emailField,
8963
+ default: textArea,
8899
8964
  vars: vars$r
8900
8965
  });
8901
8966
 
8902
- const globalRefs$f = getThemeRefs(globals);
8903
- const vars$q = TextAreaClass.cssVarList;
8967
+ const vars$q = CheckboxClass.cssVarList;
8968
+ const checkboxSize = '1.35em';
8904
8969
 
8905
- const textArea = {
8970
+ const checkbox = {
8906
8971
  [vars$q.hostWidth]: refs.width,
8907
- [vars$q.hostMinWidth]: refs.minWidth,
8908
8972
  [vars$q.hostDirection]: refs.direction,
8909
8973
  [vars$q.fontSize]: refs.fontSize,
8910
8974
  [vars$q.fontFamily]: refs.fontFamily,
8911
8975
  [vars$q.labelTextColor]: refs.labelTextColor,
8912
8976
  [vars$q.labelRequiredIndicator]: refs.requiredIndicator,
8977
+ [vars$q.labelFontWeight]: '400',
8978
+ [vars$q.labelLineHeight]: checkboxSize,
8979
+ [vars$q.labelSpacing]: '1em',
8913
8980
  [vars$q.errorMessageTextColor]: refs.errorMessageTextColor,
8914
- [vars$q.inputBackgroundColor]: refs.backgroundColor,
8915
- [vars$q.inputValueTextColor]: refs.valueTextColor,
8916
- [vars$q.inputPlaceholderTextColor]: refs.placeholderTextColor,
8981
+ [vars$q.inputOutlineWidth]: refs.outlineWidth,
8982
+ [vars$q.inputOutlineOffset]: refs.outlineOffset,
8983
+ [vars$q.inputOutlineColor]: refs.outlineColor,
8984
+ [vars$q.inputOutlineStyle]: refs.outlineStyle,
8917
8985
  [vars$q.inputBorderRadius]: refs.borderRadius,
8986
+ [vars$q.inputBorderColor]: refs.borderColor,
8918
8987
  [vars$q.inputBorderWidth]: refs.borderWidth,
8919
8988
  [vars$q.inputBorderStyle]: refs.borderStyle,
8920
- [vars$q.inputBorderColor]: refs.borderColor,
8921
- [vars$q.inputOutlineWidth]: refs.outlineWidth,
8922
- [vars$q.inputOutlineStyle]: refs.outlineStyle,
8923
- [vars$q.inputOutlineColor]: refs.outlineColor,
8924
- [vars$q.inputOutlineOffset]: refs.outlineOffset,
8925
- [vars$q.inputResizeType]: 'vertical',
8926
- [vars$q.inputMinHeight]: '5em',
8927
- textAlign: {
8928
- right: { [vars$q.inputTextAlign]: 'right' },
8929
- left: { [vars$q.inputTextAlign]: 'left' },
8930
- center: { [vars$q.inputTextAlign]: 'center' },
8931
- },
8989
+ [vars$q.inputBackgroundColor]: refs.backgroundColor,
8990
+ [vars$q.inputSize]: checkboxSize,
8932
8991
 
8933
- _disabled: {
8934
- [vars$q.inputBackgroundColor]: globalRefs$f.colors.surface.light,
8992
+ _checked: {
8993
+ [vars$q.inputValueTextColor]: refs.valueTextColor,
8935
8994
  },
8936
8995
 
8937
- _readonly: {
8938
- [vars$q.inputResizeType]: 'none',
8996
+ _disabled: {
8997
+ [vars$q.labelTextColor]: refs.labelTextColor,
8939
8998
  },
8940
8999
  };
8941
9000
 
8942
- var textArea$1 = /*#__PURE__*/Object.freeze({
9001
+ var checkbox$1 = /*#__PURE__*/Object.freeze({
8943
9002
  __proto__: null,
8944
- default: textArea,
9003
+ default: checkbox,
8945
9004
  vars: vars$q
8946
9005
  });
8947
9006
 
8948
- const vars$p = CheckboxClass.cssVarList;
8949
- const checkboxSize = '1.35em';
9007
+ const knobMargin = '2px';
9008
+ const checkboxHeight = '1.25em';
8950
9009
 
8951
- const checkbox = {
9010
+ const globalRefs$e = getThemeRefs(globals);
9011
+ const vars$p = SwitchToggleClass.cssVarList;
9012
+
9013
+ const switchToggle = {
8952
9014
  [vars$p.hostWidth]: refs.width,
8953
9015
  [vars$p.hostDirection]: refs.direction,
8954
9016
  [vars$p.fontSize]: refs.fontSize,
8955
9017
  [vars$p.fontFamily]: refs.fontFamily,
8956
- [vars$p.labelTextColor]: refs.labelTextColor,
8957
- [vars$p.labelRequiredIndicator]: refs.requiredIndicator,
8958
- [vars$p.labelFontWeight]: '400',
8959
- [vars$p.labelLineHeight]: checkboxSize,
8960
- [vars$p.labelSpacing]: '1em',
8961
- [vars$p.errorMessageTextColor]: refs.errorMessageTextColor,
9018
+
8962
9019
  [vars$p.inputOutlineWidth]: refs.outlineWidth,
8963
9020
  [vars$p.inputOutlineOffset]: refs.outlineOffset,
8964
9021
  [vars$p.inputOutlineColor]: refs.outlineColor,
8965
9022
  [vars$p.inputOutlineStyle]: refs.outlineStyle,
8966
- [vars$p.inputBorderRadius]: refs.borderRadius,
8967
- [vars$p.inputBorderColor]: refs.borderColor,
8968
- [vars$p.inputBorderWidth]: refs.borderWidth,
8969
- [vars$p.inputBorderStyle]: refs.borderStyle,
8970
- [vars$p.inputBackgroundColor]: refs.backgroundColor,
8971
- [vars$p.inputSize]: checkboxSize,
8972
-
8973
- _checked: {
8974
- [vars$p.inputValueTextColor]: refs.valueTextColor,
8975
- },
8976
-
8977
- _disabled: {
8978
- [vars$p.labelTextColor]: refs.labelTextColor,
8979
- },
8980
- };
8981
-
8982
- var checkbox$1 = /*#__PURE__*/Object.freeze({
8983
- __proto__: null,
8984
- default: checkbox,
8985
- vars: vars$p
8986
- });
8987
-
8988
- const knobMargin = '2px';
8989
- const checkboxHeight = '1.25em';
8990
9023
 
8991
- const globalRefs$e = getThemeRefs(globals);
8992
- const vars$o = SwitchToggleClass.cssVarList;
9024
+ [vars$p.trackBorderStyle]: refs.borderStyle,
9025
+ [vars$p.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
9026
+ [vars$p.trackBorderColor]: refs.borderColor,
9027
+ [vars$p.trackBackgroundColor]: 'none',
9028
+ [vars$p.trackBorderRadius]: globalRefs$e.radius.md,
9029
+ [vars$p.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
9030
+ [vars$p.trackHeight]: checkboxHeight,
9031
+
9032
+ [vars$p.knobSize]: `calc(1em - ${knobMargin})`,
9033
+ [vars$p.knobRadius]: '50%',
9034
+ [vars$p.knobTopOffset]: '1px',
9035
+ [vars$p.knobLeftOffset]: knobMargin,
9036
+ [vars$p.knobColor]: refs.valueTextColor,
9037
+ [vars$p.knobTransitionDuration]: '0.3s',
8993
9038
 
8994
- const switchToggle = {
8995
- [vars$o.hostWidth]: refs.width,
8996
- [vars$o.hostDirection]: refs.direction,
8997
- [vars$o.fontSize]: refs.fontSize,
8998
- [vars$o.fontFamily]: refs.fontFamily,
8999
-
9000
- [vars$o.inputOutlineWidth]: refs.outlineWidth,
9001
- [vars$o.inputOutlineOffset]: refs.outlineOffset,
9002
- [vars$o.inputOutlineColor]: refs.outlineColor,
9003
- [vars$o.inputOutlineStyle]: refs.outlineStyle,
9004
-
9005
- [vars$o.trackBorderStyle]: refs.borderStyle,
9006
- [vars$o.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
9007
- [vars$o.trackBorderColor]: refs.borderColor,
9008
- [vars$o.trackBackgroundColor]: 'none',
9009
- [vars$o.trackBorderRadius]: globalRefs$e.radius.md,
9010
- [vars$o.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
9011
- [vars$o.trackHeight]: checkboxHeight,
9012
-
9013
- [vars$o.knobSize]: `calc(1em - ${knobMargin})`,
9014
- [vars$o.knobRadius]: '50%',
9015
- [vars$o.knobTopOffset]: '1px',
9016
- [vars$o.knobLeftOffset]: knobMargin,
9017
- [vars$o.knobColor]: refs.valueTextColor,
9018
- [vars$o.knobTransitionDuration]: '0.3s',
9019
-
9020
- [vars$o.labelTextColor]: refs.labelTextColor,
9021
- [vars$o.labelFontWeight]: '400',
9022
- [vars$o.labelLineHeight]: '1.35em',
9023
- [vars$o.labelSpacing]: '1em',
9024
- [vars$o.labelRequiredIndicator]: refs.requiredIndicator,
9025
- [vars$o.errorMessageTextColor]: refs.errorMessageTextColor,
9039
+ [vars$p.labelTextColor]: refs.labelTextColor,
9040
+ [vars$p.labelFontWeight]: '400',
9041
+ [vars$p.labelLineHeight]: '1.35em',
9042
+ [vars$p.labelSpacing]: '1em',
9043
+ [vars$p.labelRequiredIndicator]: refs.requiredIndicator,
9044
+ [vars$p.errorMessageTextColor]: refs.errorMessageTextColor,
9026
9045
 
9027
9046
  _checked: {
9028
- [vars$o.trackBorderColor]: refs.borderColor,
9029
- [vars$o.trackBackgroundColor]: refs.backgroundColor,
9030
- [vars$o.knobLeftOffset]: `calc(100% - var(${vars$o.knobSize}) - ${knobMargin})`,
9031
- [vars$o.knobColor]: refs.valueTextColor,
9032
- [vars$o.knobTextColor]: refs.valueTextColor,
9047
+ [vars$p.trackBorderColor]: refs.borderColor,
9048
+ [vars$p.trackBackgroundColor]: refs.backgroundColor,
9049
+ [vars$p.knobLeftOffset]: `calc(100% - var(${vars$p.knobSize}) - ${knobMargin})`,
9050
+ [vars$p.knobColor]: refs.valueTextColor,
9051
+ [vars$p.knobTextColor]: refs.valueTextColor,
9033
9052
  },
9034
9053
 
9035
9054
  _disabled: {
9036
- [vars$o.knobColor]: globalRefs$e.colors.surface.light,
9037
- [vars$o.trackBorderColor]: globalRefs$e.colors.surface.main,
9038
- [vars$o.trackBackgroundColor]: globalRefs$e.colors.surface.main,
9039
- [vars$o.labelTextColor]: refs.labelTextColor,
9055
+ [vars$p.knobColor]: globalRefs$e.colors.surface.light,
9056
+ [vars$p.trackBorderColor]: globalRefs$e.colors.surface.main,
9057
+ [vars$p.trackBackgroundColor]: globalRefs$e.colors.surface.main,
9058
+ [vars$p.labelTextColor]: refs.labelTextColor,
9040
9059
  _checked: {
9041
- [vars$o.knobColor]: globalRefs$e.colors.surface.light,
9042
- [vars$o.trackBackgroundColor]: globalRefs$e.colors.surface.main,
9060
+ [vars$p.knobColor]: globalRefs$e.colors.surface.light,
9061
+ [vars$p.trackBackgroundColor]: globalRefs$e.colors.surface.main,
9043
9062
  },
9044
9063
  },
9045
9064
 
9046
9065
  _invalid: {
9047
- [vars$o.trackBorderColor]: globalRefs$e.colors.error.main,
9048
- [vars$o.knobColor]: globalRefs$e.colors.error.main,
9066
+ [vars$p.trackBorderColor]: globalRefs$e.colors.error.main,
9067
+ [vars$p.knobColor]: globalRefs$e.colors.error.main,
9049
9068
  },
9050
9069
  };
9051
9070
 
9052
9071
  var switchToggle$1 = /*#__PURE__*/Object.freeze({
9053
9072
  __proto__: null,
9054
9073
  default: switchToggle,
9055
- vars: vars$o
9074
+ vars: vars$p
9056
9075
  });
9057
9076
 
9058
9077
  const globalRefs$d = getThemeRefs(globals);
@@ -9077,7 +9096,7 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
9077
9096
  horizontalAlignment,
9078
9097
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
9079
9098
  },
9080
- componentName$A
9099
+ componentName$B
9081
9100
  );
9082
9101
 
9083
9102
  const { shadowColor: shadowColor$1 } = helperRefs$2;
@@ -9162,7 +9181,7 @@ const container = {
9162
9181
  },
9163
9182
  };
9164
9183
 
9165
- const vars$n = {
9184
+ const vars$o = {
9166
9185
  ...compVars$3,
9167
9186
  ...helperVars$2,
9168
9187
  };
@@ -9170,28 +9189,40 @@ const vars$n = {
9170
9189
  var container$1 = /*#__PURE__*/Object.freeze({
9171
9190
  __proto__: null,
9172
9191
  default: container,
9192
+ vars: vars$o
9193
+ });
9194
+
9195
+ const vars$n = LogoClass.cssVarList;
9196
+
9197
+ const logo$2 = {
9198
+ [vars$n.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
9199
+ };
9200
+
9201
+ var logo$3 = /*#__PURE__*/Object.freeze({
9202
+ __proto__: null,
9203
+ default: logo$2,
9173
9204
  vars: vars$n
9174
9205
  });
9175
9206
 
9176
- const vars$m = LogoClass.cssVarList;
9207
+ const vars$m = TotpImageClass.cssVarList;
9177
9208
 
9178
9209
  const logo$1 = {
9179
- [vars$m.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
9210
+ [vars$m.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
9180
9211
  };
9181
9212
 
9182
- var logo$2 = /*#__PURE__*/Object.freeze({
9213
+ var totpImage = /*#__PURE__*/Object.freeze({
9183
9214
  __proto__: null,
9184
9215
  default: logo$1,
9185
9216
  vars: vars$m
9186
9217
  });
9187
9218
 
9188
- const vars$l = TotpImageClass.cssVarList;
9219
+ const vars$l = NotpImageClass.cssVarList;
9189
9220
 
9190
9221
  const logo = {
9191
- [vars$l.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
9222
+ [vars$l.fallbackUrl]: 'url(https://imgs.descope.com/components/notp-placeholder.svg)',
9192
9223
  };
9193
9224
 
9194
- var totpImage = /*#__PURE__*/Object.freeze({
9225
+ var notpImage = /*#__PURE__*/Object.freeze({
9195
9226
  __proto__: null,
9196
9227
  default: logo,
9197
9228
  vars: vars$l
@@ -9336,7 +9367,7 @@ const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
9336
9367
  thickness: '2px',
9337
9368
  spacing: '10px',
9338
9369
  },
9339
- componentName$y
9370
+ componentName$z
9340
9371
  );
9341
9372
 
9342
9373
  const divider = {
@@ -9479,7 +9510,7 @@ const [helperTheme, helperRefs, helperVars] = createHelperVars(
9479
9510
  },
9480
9511
  },
9481
9512
  },
9482
- componentName$B
9513
+ componentName$C
9483
9514
  );
9484
9515
 
9485
9516
  const loaderRadial = {
@@ -10173,8 +10204,9 @@ const components = {
10173
10204
  checkbox: checkbox$1,
10174
10205
  switchToggle: switchToggle$1,
10175
10206
  container: container$1,
10176
- logo: logo$2,
10207
+ logo: logo$3,
10177
10208
  totpImage,
10209
+ notpImage,
10178
10210
  text: text$1,
10179
10211
  link: link$1,
10180
10212
  divider: divider$1,
@@ -10208,7 +10240,7 @@ const vars = Object.keys(components).reduce(
10208
10240
  );
10209
10241
 
10210
10242
  const defaultTheme = { globals, components: theme };
10211
- const themeVars = { globals: vars$x, components: vars };
10243
+ const themeVars = { globals: vars$y, components: vars };
10212
10244
 
10213
- export { BadgeClass, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, ModalClass, MultiSelectComboBoxClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, RecaptchaClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
10245
+ export { BadgeClass, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, ModalClass, MultiSelectComboBoxClass, NewPasswordClass, NotpImageClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, RecaptchaClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
10214
10246
  //# sourceMappingURL=index.esm.js.map