@descope/web-components-ui 1.0.174 → 1.0.176

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/dist/cjs/index.cjs.js +785 -587
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +2 -1
  4. package/dist/index.esm.js +993 -622
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/umd/{descope-phone-field-descope-phone-field-internal-index-js.js → 7262.js} +1 -1
  7. package/dist/umd/index.js +1 -1
  8. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -0
  9. package/dist/umd/{descope-phone-field-index-js.js → phone-fields-descope-phone-field-index-js.js} +1 -1
  10. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +1 -0
  11. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -0
  12. package/package.json +1 -1
  13. package/src/components/{descope-phone-field → phone-fields/descope-phone-field}/PhoneFieldClass.js +8 -7
  14. package/src/components/{descope-phone-field → phone-fields/descope-phone-field}/descope-phone-field-internal/PhoneFieldInternal.js +36 -19
  15. package/src/components/{descope-phone-field → phone-fields/descope-phone-field}/descope-phone-field-internal/index.js +2 -2
  16. package/src/components/{descope-phone-field → phone-fields/descope-phone-field}/index.js +2 -2
  17. package/src/components/phone-fields/descope-phone-input-box-field/PhoneFieldInputBoxClass.js +174 -0
  18. package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/PhoneFieldInternalInputBox.js +158 -0
  19. package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/index.js +5 -0
  20. package/src/components/phone-fields/descope-phone-input-box-field/index.js +9 -0
  21. package/src/components/phone-fields/helpers.js +5 -0
  22. package/src/index.cjs.js +2 -1
  23. package/src/index.d.ts +2 -1
  24. package/src/index.js +2 -1
  25. package/src/theme/components/index.js +2 -0
  26. package/src/theme/components/phoneField.js +1 -1
  27. package/src/theme/components/phoneInputBoxField.js +30 -0
  28. /package/src/components/{descope-phone-field → phone-fields}/CountryCodes.js +0 -0
  29. /package/src/components/{descope-phone-field → phone-fields/descope-phone-field}/helpers.js +0 -0
package/dist/index.esm.js CHANGED
@@ -700,7 +700,7 @@ const createProxy = ({
700
700
  return ProxyClass;
701
701
  };
702
702
 
703
- const observedAttributes$5 = ['required', 'pattern'];
703
+ const observedAttributes$6 = ['required', 'pattern'];
704
704
 
705
705
  const errorAttributes = {
706
706
  valueMissing: 'data-errormessage-value-missing',
@@ -711,7 +711,7 @@ const errorAttributes = {
711
711
  const inputValidationMixin = (superclass) =>
712
712
  class InputValidationMixinClass extends superclass {
713
713
  static get observedAttributes() {
714
- return [...(superclass.observedAttributes || []), ...observedAttributes$5];
714
+ return [...(superclass.observedAttributes || []), ...observedAttributes$6];
715
715
  }
716
716
 
717
717
  static get formAssociated() {
@@ -842,7 +842,7 @@ const inputValidationMixin = (superclass) =>
842
842
  attributeChangedCallback(attrName, oldValue, newValue) {
843
843
  super.attributeChangedCallback?.(attrName, oldValue, newValue);
844
844
 
845
- if (observedAttributes$5.includes(attrName)) {
845
+ if (observedAttributes$6.includes(attrName)) {
846
846
  this.#setValidity();
847
847
  }
848
848
  }
@@ -1185,7 +1185,7 @@ const clickableMixin = (superclass) =>
1185
1185
  }
1186
1186
  };
1187
1187
 
1188
- const componentName$r = getComponentName('button');
1188
+ const componentName$t = getComponentName('button');
1189
1189
 
1190
1190
  const resetStyles = `
1191
1191
  :host {
@@ -1223,7 +1223,7 @@ const iconStyles = `
1223
1223
 
1224
1224
  const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
1225
1225
 
1226
- const { host: host$d, label: label$9 } = {
1226
+ const { host: host$e, label: label$a } = {
1227
1227
  host: { selector: () => ':host' },
1228
1228
  label: { selector: '::part(label)' },
1229
1229
  };
@@ -1233,7 +1233,7 @@ let loadingIndicatorStyles;
1233
1233
  const ButtonClass = compose(
1234
1234
  createStyleMixin({
1235
1235
  mappings: {
1236
- hostWidth: { ...host$d, property: 'width' },
1236
+ hostWidth: { ...host$e, property: 'width' },
1237
1237
  hostHeight: { property: 'height' },
1238
1238
  fontSize: {},
1239
1239
  fontFamily: {},
@@ -1255,8 +1255,8 @@ const ButtonClass = compose(
1255
1255
  horizontalPadding: [{ property: 'padding-left' }, { property: 'padding-right' }],
1256
1256
 
1257
1257
  labelTextColor: { property: 'color' },
1258
- labelTextDecoration: { ...label$9, property: 'text-decoration' },
1259
- labelSpacing: { ...label$9, property: 'gap' },
1258
+ labelTextDecoration: { ...label$a, property: 'text-decoration' },
1259
+ labelSpacing: { ...label$a, property: 'gap' },
1260
1260
  },
1261
1261
  }),
1262
1262
  clickableMixin,
@@ -1279,7 +1279,7 @@ const ButtonClass = compose(
1279
1279
  }
1280
1280
  `,
1281
1281
  excludeAttrsSync: ['tabindex'],
1282
- componentName: componentName$r,
1282
+ componentName: componentName$t,
1283
1283
  })
1284
1284
  );
1285
1285
 
@@ -1316,7 +1316,7 @@ loadingIndicatorStyles = `
1316
1316
  }
1317
1317
  `;
1318
1318
 
1319
- customElements.define(componentName$r, ButtonClass);
1319
+ customElements.define(componentName$t, ButtonClass);
1320
1320
 
1321
1321
  const createBaseInputClass = (...args) =>
1322
1322
  compose(
@@ -1326,13 +1326,13 @@ const createBaseInputClass = (...args) =>
1326
1326
  inputEventsDispatchingMixin
1327
1327
  )(createBaseClass(...args));
1328
1328
 
1329
- const componentName$q = getComponentName('boolean-field-internal');
1329
+ const componentName$s = getComponentName('boolean-field-internal');
1330
1330
 
1331
1331
  const forwardAttributes$1 = ['disabled', 'label', 'invalid', 'readonly'];
1332
1332
 
1333
- const BaseInputClass$4 = createBaseInputClass({ componentName: componentName$q, baseSelector: 'div' });
1333
+ const BaseInputClass$5 = createBaseInputClass({ componentName: componentName$s, baseSelector: 'div' });
1334
1334
 
1335
- class BooleanInputInternal extends BaseInputClass$4 {
1335
+ class BooleanInputInternal extends BaseInputClass$5 {
1336
1336
  constructor() {
1337
1337
  super();
1338
1338
  this.innerHTML = `
@@ -1390,14 +1390,14 @@ const booleanFieldMixin = (superclass) =>
1390
1390
 
1391
1391
  const template = document.createElement('template');
1392
1392
  template.innerHTML = `
1393
- <${componentName$q}
1393
+ <${componentName$s}
1394
1394
  tabindex="-1"
1395
1395
  slot="input"
1396
- ></${componentName$q}>
1396
+ ></${componentName$s}>
1397
1397
  `;
1398
1398
 
1399
1399
  this.baseElement.appendChild(template.content.cloneNode(true));
1400
- this.inputElement = this.shadowRoot.querySelector(componentName$q);
1400
+ this.inputElement = this.shadowRoot.querySelector(componentName$s);
1401
1401
  this.checkbox = this.inputElement.querySelector('vaadin-checkbox');
1402
1402
 
1403
1403
  forwardAttrs(this, this.inputElement, {
@@ -1577,18 +1577,18 @@ vaadin-checkbox::part(checkbox) {
1577
1577
  }
1578
1578
  `;
1579
1579
 
1580
- const componentName$p = getComponentName('checkbox');
1580
+ const componentName$r = getComponentName('checkbox');
1581
1581
 
1582
1582
  const {
1583
- host: host$c,
1583
+ host: host$d,
1584
1584
  component: component$1,
1585
1585
  checkboxElement,
1586
1586
  checkboxSurface,
1587
1587
  checkboxHiddenLabel: checkboxHiddenLabel$1,
1588
- label: label$8,
1589
- requiredIndicator: requiredIndicator$8,
1590
- helperText: helperText$7,
1591
- errorMessage: errorMessage$8,
1588
+ label: label$9,
1589
+ requiredIndicator: requiredIndicator$9,
1590
+ helperText: helperText$8,
1591
+ errorMessage: errorMessage$9,
1592
1592
  } = {
1593
1593
  host: { selector: () => ':host' },
1594
1594
  label: { selector: '::part(label)' },
@@ -1604,25 +1604,25 @@ const {
1604
1604
  const CheckboxClass = compose(
1605
1605
  createStyleMixin({
1606
1606
  mappings: {
1607
- hostWidth: { ...host$c, property: 'width' },
1607
+ hostWidth: { ...host$d, property: 'width' },
1608
1608
 
1609
- fontSize: [host$c, checkboxElement, label$8, checkboxHiddenLabel$1],
1610
- fontFamily: [label$8, checkboxHiddenLabel$1, helperText$7, errorMessage$8],
1609
+ fontSize: [host$d, checkboxElement, label$9, checkboxHiddenLabel$1],
1610
+ fontFamily: [label$9, checkboxHiddenLabel$1, helperText$8, errorMessage$9],
1611
1611
 
1612
1612
  labelTextColor: [
1613
- { ...label$8, property: 'color' },
1614
- { ...requiredIndicator$8, property: 'color' },
1615
- { ...label$8, property: '-webkit-text-fill-color' },
1613
+ { ...label$9, property: 'color' },
1614
+ { ...requiredIndicator$9, property: 'color' },
1615
+ { ...label$9, property: '-webkit-text-fill-color' },
1616
1616
  ],
1617
- labelRequiredIndicator: { ...requiredIndicator$8, property: 'content' },
1618
- errorMessageTextColor: { ...errorMessage$8, property: 'color' },
1617
+ labelRequiredIndicator: { ...requiredIndicator$9, property: 'content' },
1618
+ errorMessageTextColor: { ...errorMessage$9, property: 'color' },
1619
1619
 
1620
1620
  labelFontWeight: [
1621
- { ...label$8, property: 'font-weight' },
1621
+ { ...label$9, property: 'font-weight' },
1622
1622
  { ...checkboxHiddenLabel$1, property: 'font-weight' },
1623
1623
  ],
1624
1624
  labelSpacing: [
1625
- { ...label$8, property: 'left' },
1625
+ { ...label$9, property: 'left' },
1626
1626
  { ...checkboxHiddenLabel$1, property: 'padding-left' },
1627
1627
  ],
1628
1628
  inputValueTextColor: { ...checkboxSurface, property: 'color' },
@@ -1645,8 +1645,8 @@ const CheckboxClass = compose(
1645
1645
  { ...checkboxSurface, property: 'font-size' },
1646
1646
  { ...component$1, property: 'font-size' },
1647
1647
  { ...checkboxHiddenLabel$1, property: 'line-height' },
1648
- { ...label$8, property: 'margin-left' },
1649
- { ...label$8, property: 'line-height' },
1648
+ { ...label$9, property: 'margin-left' },
1649
+ { ...label$9, property: 'line-height' },
1650
1650
  ],
1651
1651
  },
1652
1652
  }),
@@ -1667,26 +1667,26 @@ const CheckboxClass = compose(
1667
1667
  ${useHostExternalPadding(CheckboxClass.cssVarList)}
1668
1668
  `,
1669
1669
  excludeAttrsSync: ['tabindex'],
1670
- componentName: componentName$p,
1670
+ componentName: componentName$r,
1671
1671
  })
1672
1672
  );
1673
1673
 
1674
- customElements.define(componentName$q, BooleanInputInternal);
1674
+ customElements.define(componentName$s, BooleanInputInternal);
1675
1675
 
1676
- customElements.define(componentName$p, CheckboxClass);
1676
+ customElements.define(componentName$r, CheckboxClass);
1677
1677
 
1678
- const componentName$o = getComponentName('switch-toggle');
1678
+ const componentName$q = getComponentName('switch-toggle');
1679
1679
 
1680
1680
  const {
1681
- host: host$b,
1681
+ host: host$c,
1682
1682
  component,
1683
1683
  checkboxElement: track,
1684
1684
  checkboxSurface: knob,
1685
1685
  checkboxHiddenLabel,
1686
- label: label$7,
1687
- requiredIndicator: requiredIndicator$7,
1688
- helperText: helperText$6,
1689
- errorMessage: errorMessage$7,
1686
+ label: label$8,
1687
+ requiredIndicator: requiredIndicator$8,
1688
+ helperText: helperText$7,
1689
+ errorMessage: errorMessage$8,
1690
1690
  } = {
1691
1691
  host: { selector: () => ':host' },
1692
1692
  label: { selector: '::part(label)' },
@@ -1702,9 +1702,9 @@ const {
1702
1702
  const SwitchToggleClass = compose(
1703
1703
  createStyleMixin({
1704
1704
  mappings: {
1705
- hostWidth: { ...host$b, property: 'width' },
1706
- fontSize: [component, label$7, checkboxHiddenLabel],
1707
- fontFamily: [label$7, helperText$6, errorMessage$7],
1705
+ hostWidth: { ...host$c, property: 'width' },
1706
+ fontSize: [component, label$8, checkboxHiddenLabel],
1707
+ fontFamily: [label$8, helperText$7, errorMessage$8],
1708
1708
  trackBorderWidth: { ...track, property: 'border-width' },
1709
1709
  trackBorderStyle: { ...track, property: 'border-style' },
1710
1710
  trackBorderColor: { ...track, property: 'border-color' },
@@ -1728,24 +1728,24 @@ const SwitchToggleClass = compose(
1728
1728
  knobLeftOffset: { ...knob, property: 'left' },
1729
1729
 
1730
1730
  labelSpacing: [
1731
- { ...label$7, property: 'padding-left' },
1731
+ { ...label$8, property: 'padding-left' },
1732
1732
  { ...checkboxHiddenLabel, property: 'padding-left' },
1733
1733
  ],
1734
1734
  labelLineHeight: [
1735
- { ...label$7, property: 'line-height' },
1735
+ { ...label$8, property: 'line-height' },
1736
1736
  { ...checkboxHiddenLabel, property: 'line-height' },
1737
1737
  ],
1738
1738
  labelFontWeight: [
1739
- { ...label$7, property: 'font-weight' },
1739
+ { ...label$8, property: 'font-weight' },
1740
1740
  { ...checkboxHiddenLabel, property: 'font-weight' },
1741
1741
  ],
1742
1742
  labelTextColor: [
1743
- { ...label$7, property: 'color' },
1744
- { ...requiredIndicator$7, property: 'color' },
1745
- { ...label$7, property: '-webkit-text-fill-color' },
1743
+ { ...label$8, property: 'color' },
1744
+ { ...requiredIndicator$8, property: 'color' },
1745
+ { ...label$8, property: '-webkit-text-fill-color' },
1746
1746
  ],
1747
- labelRequiredIndicator: { ...requiredIndicator$7, property: 'content' },
1748
- errorMessageTextColor: { ...errorMessage$7, property: 'color' },
1747
+ labelRequiredIndicator: { ...requiredIndicator$8, property: 'content' },
1748
+ errorMessageTextColor: { ...errorMessage$8, property: 'color' },
1749
1749
  inputOutlineWidth: { ...track, property: 'outline-width' },
1750
1750
  inputOutlineOffset: { ...track, property: 'outline-offset' },
1751
1751
  inputOutlineColor: { ...track, property: 'outline-color' },
@@ -1778,17 +1778,17 @@ const SwitchToggleClass = compose(
1778
1778
  }
1779
1779
  `,
1780
1780
  excludeAttrsSync: ['tabindex'],
1781
- componentName: componentName$o,
1781
+ componentName: componentName$q,
1782
1782
  })
1783
1783
  );
1784
1784
 
1785
- customElements.define(componentName$o, SwitchToggleClass);
1785
+ customElements.define(componentName$q, SwitchToggleClass);
1786
1786
 
1787
- const componentName$n = getComponentName('loader-linear');
1787
+ const componentName$p = getComponentName('loader-linear');
1788
1788
 
1789
- class RawLoaderLinear extends createBaseClass({ componentName: componentName$n, baseSelector: ':host > div' }) {
1789
+ class RawLoaderLinear extends createBaseClass({ componentName: componentName$p, baseSelector: ':host > div' }) {
1790
1790
  static get componentName() {
1791
- return componentName$n;
1791
+ return componentName$p;
1792
1792
  }
1793
1793
 
1794
1794
  constructor() {
@@ -1824,18 +1824,18 @@ const selectors$1 = {
1824
1824
  host: { selector: () => ':host' },
1825
1825
  };
1826
1826
 
1827
- const { after: after$1, host: host$a } = selectors$1;
1827
+ const { after: after$1, host: host$b } = selectors$1;
1828
1828
 
1829
1829
  const LoaderLinearClass = compose(
1830
1830
  createStyleMixin({
1831
1831
  mappings: {
1832
1832
  hostDisplay: {},
1833
- hostWidth: { ...host$a, property: 'width' },
1833
+ hostWidth: { ...host$b, property: 'width' },
1834
1834
  barHeight: [{ property: 'height' }, { ...after$1, property: 'height' }],
1835
1835
  barBorderRadius: [{ property: 'border-radius' }, { ...after$1, property: 'border-radius' }],
1836
1836
  verticalPadding: [
1837
- { ...host$a, property: 'padding-top' },
1838
- { ...host$a, property: 'padding-bottom' },
1837
+ { ...host$b, property: 'padding-top' },
1838
+ { ...host$b, property: 'padding-bottom' },
1839
1839
  ],
1840
1840
  barBackgroundColor: { property: 'background-color' },
1841
1841
  barColor: { ...after$1, property: 'background-color' },
@@ -1849,11 +1849,11 @@ const LoaderLinearClass = compose(
1849
1849
  componentNameValidationMixin
1850
1850
  )(RawLoaderLinear);
1851
1851
 
1852
- customElements.define(componentName$n, LoaderLinearClass);
1852
+ customElements.define(componentName$p, LoaderLinearClass);
1853
1853
 
1854
- const componentName$m = getComponentName('loader-radial');
1854
+ const componentName$o = getComponentName('loader-radial');
1855
1855
 
1856
- class RawLoaderRadial extends createBaseClass({ componentName: componentName$m, baseSelector: ':host > div' }) {
1856
+ class RawLoaderRadial extends createBaseClass({ componentName: componentName$o, baseSelector: ':host > div' }) {
1857
1857
  constructor() {
1858
1858
  super();
1859
1859
 
@@ -1897,11 +1897,11 @@ const LoaderRadialClass = compose(
1897
1897
  componentNameValidationMixin
1898
1898
  )(RawLoaderRadial);
1899
1899
 
1900
- customElements.define(componentName$m, LoaderRadialClass);
1900
+ customElements.define(componentName$o, LoaderRadialClass);
1901
1901
 
1902
- const componentName$l = getComponentName('container');
1902
+ const componentName$n = getComponentName('container');
1903
1903
 
1904
- class RawContainer extends createBaseClass({ componentName: componentName$l, baseSelector: ':host > slot' }) {
1904
+ class RawContainer extends createBaseClass({ componentName: componentName$n, baseSelector: ':host > slot' }) {
1905
1905
  constructor() {
1906
1906
  super();
1907
1907
 
@@ -1953,10 +1953,10 @@ const ContainerClass = compose(
1953
1953
  componentNameValidationMixin
1954
1954
  )(RawContainer);
1955
1955
 
1956
- customElements.define(componentName$l, ContainerClass);
1956
+ customElements.define(componentName$n, ContainerClass);
1957
1957
 
1958
- const componentName$k = getComponentName('divider');
1959
- class RawDivider extends createBaseClass({ componentName: componentName$k, baseSelector: ':host > div' }) {
1958
+ const componentName$m = getComponentName('divider');
1959
+ class RawDivider extends createBaseClass({ componentName: componentName$m, baseSelector: ':host > div' }) {
1960
1960
  constructor() {
1961
1961
  super();
1962
1962
 
@@ -2001,7 +2001,7 @@ class RawDivider extends createBaseClass({ componentName: componentName$k, baseS
2001
2001
  }
2002
2002
  }
2003
2003
 
2004
- const { host: host$9, before, after, text: text$3 } = {
2004
+ const { host: host$a, before, after, text: text$3 } = {
2005
2005
  host: { selector: () => ':host' },
2006
2006
  before: { selector: '::before' },
2007
2007
  after: { selector: '::after' },
@@ -2011,8 +2011,8 @@ const { host: host$9, before, after, text: text$3 } = {
2011
2011
  const DividerClass = compose(
2012
2012
  createStyleMixin({
2013
2013
  mappings: {
2014
- hostWidth: { ...host$9, property: 'width' },
2015
- hostPadding: { ...host$9, property: 'padding' },
2014
+ hostWidth: { ...host$a, property: 'width' },
2015
+ hostPadding: { ...host$a, property: 'padding' },
2016
2016
 
2017
2017
  minHeight: {},
2018
2018
  alignItems: {},
@@ -2052,9 +2052,9 @@ const DividerClass = compose(
2052
2052
  componentNameValidationMixin
2053
2053
  )(RawDivider);
2054
2054
 
2055
- const componentName$j = getComponentName('text');
2055
+ const componentName$l = getComponentName('text');
2056
2056
 
2057
- class RawText extends createBaseClass({ componentName: componentName$j, baseSelector: ':host > slot' }) {
2057
+ class RawText extends createBaseClass({ componentName: componentName$l, baseSelector: ':host > slot' }) {
2058
2058
  constructor() {
2059
2059
  super();
2060
2060
 
@@ -2096,11 +2096,11 @@ const TextClass = compose(
2096
2096
  componentNameValidationMixin
2097
2097
  )(RawText);
2098
2098
 
2099
- customElements.define(componentName$j, TextClass);
2099
+ customElements.define(componentName$l, TextClass);
2100
2100
 
2101
- customElements.define(componentName$k, DividerClass);
2101
+ customElements.define(componentName$m, DividerClass);
2102
2102
 
2103
- const { host: host$8, label: label$6, placeholder: placeholder$2, requiredIndicator: requiredIndicator$6, inputField: inputField$4, input, helperText: helperText$5, errorMessage: errorMessage$6 } =
2103
+ const { host: host$9, label: label$7, placeholder: placeholder$2, requiredIndicator: requiredIndicator$7, inputField: inputField$5, input, helperText: helperText$6, errorMessage: errorMessage$7 } =
2104
2104
  {
2105
2105
  host: { selector: () => ':host' },
2106
2106
  label: { selector: '::part(label)' },
@@ -2114,49 +2114,49 @@ const { host: host$8, label: label$6, placeholder: placeholder$2, requiredIndica
2114
2114
 
2115
2115
  var textFieldMappings = {
2116
2116
  // we apply font-size also on the host so we can set its width with em
2117
- fontSize: [{}, host$8],
2118
- fontFamily: [label$6, inputField$4, helperText$5, errorMessage$6],
2117
+ fontSize: [{}, host$9],
2118
+ fontFamily: [label$7, inputField$5, helperText$6, errorMessage$7],
2119
2119
 
2120
- hostWidth: { ...host$8, property: 'width' },
2121
- hostMinWidth: { ...host$8, property: 'min-width' },
2120
+ hostWidth: { ...host$9, property: 'width' },
2121
+ hostMinWidth: { ...host$9, property: 'min-width' },
2122
2122
 
2123
- inputBackgroundColor: { ...inputField$4, property: 'background-color' },
2123
+ inputBackgroundColor: { ...inputField$5, property: 'background-color' },
2124
2124
 
2125
2125
  labelTextColor: [
2126
- { ...label$6, property: 'color' },
2127
- { ...requiredIndicator$6, property: 'color' },
2126
+ { ...label$7, property: 'color' },
2127
+ { ...requiredIndicator$7, property: 'color' },
2128
2128
  ],
2129
- errorMessageTextColor: { ...errorMessage$6, property: 'color' },
2129
+ errorMessageTextColor: { ...errorMessage$7, property: 'color' },
2130
2130
 
2131
- inputValueTextColor: { ...inputField$4, property: 'color' },
2131
+ inputValueTextColor: { ...inputField$5, property: 'color' },
2132
2132
  inputCaretTextColor: { ...input, property: 'color' },
2133
2133
 
2134
- labelRequiredIndicator: { ...requiredIndicator$6, property: 'content' },
2134
+ labelRequiredIndicator: { ...requiredIndicator$7, property: 'content' },
2135
2135
 
2136
- inputBorderColor: { ...inputField$4, property: 'border-color' },
2137
- inputBorderWidth: { ...inputField$4, property: 'border-width' },
2138
- inputBorderStyle: { ...inputField$4, property: 'border-style' },
2139
- inputBorderRadius: { ...inputField$4, property: 'border-radius' },
2136
+ inputBorderColor: { ...inputField$5, property: 'border-color' },
2137
+ inputBorderWidth: { ...inputField$5, property: 'border-width' },
2138
+ inputBorderStyle: { ...inputField$5, property: 'border-style' },
2139
+ inputBorderRadius: { ...inputField$5, property: 'border-radius' },
2140
2140
 
2141
- inputHeight: { ...inputField$4, property: 'height' },
2141
+ inputHeight: { ...inputField$5, property: 'height' },
2142
2142
  inputHorizontalPadding: [
2143
2143
  { ...input, property: 'padding-left' },
2144
2144
  { ...input, property: 'padding-right' },
2145
2145
  ],
2146
2146
 
2147
- inputOutlineColor: { ...inputField$4, property: 'outline-color' },
2148
- inputOutlineStyle: { ...inputField$4, property: 'outline-style' },
2149
- inputOutlineWidth: { ...inputField$4, property: 'outline-width' },
2150
- inputOutlineOffset: { ...inputField$4, property: 'outline-offset' },
2147
+ inputOutlineColor: { ...inputField$5, property: 'outline-color' },
2148
+ inputOutlineStyle: { ...inputField$5, property: 'outline-style' },
2149
+ inputOutlineWidth: { ...inputField$5, property: 'outline-width' },
2150
+ inputOutlineOffset: { ...inputField$5, property: 'outline-offset' },
2151
2151
 
2152
2152
  inputTextAlign: { ...input, property: 'text-align' },
2153
2153
 
2154
2154
  inputPlaceholderColor: { ...placeholder$2, property: 'color' },
2155
2155
  };
2156
2156
 
2157
- const componentName$i = getComponentName('email-field');
2157
+ const componentName$k = getComponentName('email-field');
2158
2158
 
2159
- const customMixin$4 = (superclass) =>
2159
+ const customMixin$5 = (superclass) =>
2160
2160
  class EmailFieldMixinClass extends superclass {
2161
2161
  init() {
2162
2162
  super.init?.();
@@ -2170,7 +2170,7 @@ const EmailFieldClass = compose(
2170
2170
  draggableMixin,
2171
2171
  composedProxyInputMixin,
2172
2172
  componentNameValidationMixin,
2173
- customMixin$4
2173
+ customMixin$5
2174
2174
  )(
2175
2175
  createProxy({
2176
2176
  slots: ['suffix'],
@@ -2187,15 +2187,15 @@ const EmailFieldClass = compose(
2187
2187
  ${resetInputOverrides('vaadin-email-field', EmailFieldClass.cssVarList)}
2188
2188
  `,
2189
2189
  excludeAttrsSync: ['tabindex'],
2190
- componentName: componentName$i,
2190
+ componentName: componentName$k,
2191
2191
  })
2192
2192
  );
2193
2193
 
2194
- customElements.define(componentName$i, EmailFieldClass);
2194
+ customElements.define(componentName$k, EmailFieldClass);
2195
2195
 
2196
- const componentName$h = getComponentName('link');
2196
+ const componentName$j = getComponentName('link');
2197
2197
 
2198
- class RawLink extends createBaseClass({ componentName: componentName$h, baseSelector: ':host a' }) {
2198
+ class RawLink extends createBaseClass({ componentName: componentName$j, baseSelector: ':host a' }) {
2199
2199
  constructor() {
2200
2200
  super();
2201
2201
 
@@ -2241,12 +2241,12 @@ const selectors = {
2241
2241
  text: { selector: () => TextClass.componentName },
2242
2242
  };
2243
2243
 
2244
- const { anchor, text: text$2, host: host$7, wrapper: wrapper$1 } = selectors;
2244
+ const { anchor, text: text$2, host: host$8, wrapper: wrapper$1 } = selectors;
2245
2245
 
2246
2246
  const LinkClass = compose(
2247
2247
  createStyleMixin({
2248
2248
  mappings: {
2249
- hostWidth: { ...host$7, property: 'width' },
2249
+ hostWidth: { ...host$8, property: 'width' },
2250
2250
  textAlign: wrapper$1,
2251
2251
  textColor: [
2252
2252
  { ...anchor, property: 'color' },
@@ -2259,7 +2259,7 @@ const LinkClass = compose(
2259
2259
  componentNameValidationMixin
2260
2260
  )(RawLink);
2261
2261
 
2262
- customElements.define(componentName$h, LinkClass);
2262
+ customElements.define(componentName$j, LinkClass);
2263
2263
 
2264
2264
  const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) => {
2265
2265
  let style;
@@ -2311,27 +2311,27 @@ const createCssVarImageClass = ({ componentName, varName, fallbackVarName }) =>
2311
2311
  return CssVarImageClass;
2312
2312
  };
2313
2313
 
2314
- const componentName$g = getComponentName('logo');
2314
+ const componentName$i = getComponentName('logo');
2315
2315
 
2316
2316
  const LogoClass = createCssVarImageClass({
2317
- componentName: componentName$g,
2317
+ componentName: componentName$i,
2318
2318
  varName: 'url',
2319
2319
  fallbackVarName: 'fallbackUrl',
2320
2320
  });
2321
2321
 
2322
- customElements.define(componentName$g, LogoClass);
2322
+ customElements.define(componentName$i, LogoClass);
2323
2323
 
2324
- const componentName$f = getComponentName('totp-image');
2324
+ const componentName$h = getComponentName('totp-image');
2325
2325
 
2326
2326
  const TotpImageClass = createCssVarImageClass({
2327
- componentName: componentName$f,
2327
+ componentName: componentName$h,
2328
2328
  varName: 'url',
2329
2329
  fallbackVarName: 'fallbackUrl',
2330
2330
  });
2331
2331
 
2332
- customElements.define(componentName$f, TotpImageClass);
2332
+ customElements.define(componentName$h, TotpImageClass);
2333
2333
 
2334
- const componentName$e = getComponentName('number-field');
2334
+ const componentName$g = getComponentName('number-field');
2335
2335
 
2336
2336
  const NumberFieldClass = compose(
2337
2337
  createStyleMixin({
@@ -2356,11 +2356,11 @@ const NumberFieldClass = compose(
2356
2356
  ${resetInputOverrides('vaadin-number-field', NumberFieldClass.cssVarList)}
2357
2357
  `,
2358
2358
  excludeAttrsSync: ['tabindex'],
2359
- componentName: componentName$e,
2359
+ componentName: componentName$g,
2360
2360
  })
2361
2361
  );
2362
2362
 
2363
- customElements.define(componentName$e, NumberFieldClass);
2363
+ customElements.define(componentName$g, NumberFieldClass);
2364
2364
 
2365
2365
  const focusElement = (ele) => {
2366
2366
  ele?.focus();
@@ -2378,21 +2378,21 @@ const getSanitizedCharacters = (str) => {
2378
2378
 
2379
2379
  /* eslint-disable no-param-reassign */
2380
2380
 
2381
- const componentName$d = getComponentName('passcode-internal');
2381
+ const componentName$f = getComponentName('passcode-internal');
2382
2382
 
2383
- const observedAttributes$4 = ['digits'];
2383
+ const observedAttributes$5 = ['digits'];
2384
2384
 
2385
2385
  const forwardAttributes = ['disabled', 'bordered', 'size', 'invalid', 'readonly'];
2386
2386
 
2387
- const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$d, baseSelector: 'div' });
2387
+ const BaseInputClass$4 = createBaseInputClass({ componentName: componentName$f, baseSelector: 'div' });
2388
2388
 
2389
- class PasscodeInternal extends BaseInputClass$3 {
2389
+ class PasscodeInternal extends BaseInputClass$4 {
2390
2390
  static get observedAttributes() {
2391
- return observedAttributes$4.concat(BaseInputClass$3.observedAttributes || []);
2391
+ return observedAttributes$5.concat(BaseInputClass$4.observedAttributes || []);
2392
2392
  }
2393
2393
 
2394
2394
  static get componentName() {
2395
- return componentName$d;
2395
+ return componentName$f;
2396
2396
  }
2397
2397
 
2398
2398
  constructor() {
@@ -2571,7 +2571,7 @@ class PasscodeInternal extends BaseInputClass$3 {
2571
2571
 
2572
2572
  // sync attributes to inputs
2573
2573
  if (oldValue !== newValue) {
2574
- if (observedAttributes$4.includes(attrName)) {
2574
+ if (observedAttributes$5.includes(attrName)) {
2575
2575
  if (attrName === 'digits') {
2576
2576
  this.renderInputs();
2577
2577
  }
@@ -2584,11 +2584,11 @@ class PasscodeInternal extends BaseInputClass$3 {
2584
2584
  }
2585
2585
  }
2586
2586
 
2587
- const componentName$c = getComponentName('text-field');
2587
+ const componentName$e = getComponentName('text-field');
2588
2588
 
2589
2589
  const observedAttrs = ['type'];
2590
2590
 
2591
- const customMixin$3 = (superclass) =>
2591
+ const customMixin$4 = (superclass) =>
2592
2592
  class TextFieldClass extends superclass {
2593
2593
  static get observedAttributes() {
2594
2594
  return observedAttrs.concat(superclass.observedAttributes || []);
@@ -2615,7 +2615,7 @@ const TextFieldClass = compose(
2615
2615
  draggableMixin,
2616
2616
  composedProxyInputMixin,
2617
2617
  componentNameValidationMixin,
2618
- customMixin$3
2618
+ customMixin$4
2619
2619
  )(
2620
2620
  createProxy({
2621
2621
  slots: ['prefix', 'suffix'],
@@ -2632,18 +2632,18 @@ const TextFieldClass = compose(
2632
2632
  ${resetInputOverrides('vaadin-text-field', TextFieldClass.cssVarList)}
2633
2633
  `,
2634
2634
  excludeAttrsSync: ['tabindex'],
2635
- componentName: componentName$c,
2635
+ componentName: componentName$e,
2636
2636
  })
2637
2637
  );
2638
2638
 
2639
- const componentName$b = getComponentName('passcode');
2639
+ const componentName$d = getComponentName('passcode');
2640
2640
 
2641
- const observedAttributes$3 = ['digits'];
2641
+ const observedAttributes$4 = ['digits'];
2642
2642
 
2643
- const customMixin$2 = (superclass) =>
2643
+ const customMixin$3 = (superclass) =>
2644
2644
  class PasscodeMixinClass extends superclass {
2645
2645
  static get observedAttributes() {
2646
- return observedAttributes$3.concat(superclass.observedAttributes || []);
2646
+ return observedAttributes$4.concat(superclass.observedAttributes || []);
2647
2647
  }
2648
2648
 
2649
2649
  get digits() {
@@ -2655,17 +2655,17 @@ const customMixin$2 = (superclass) =>
2655
2655
  const template = document.createElement('template');
2656
2656
 
2657
2657
  template.innerHTML = `
2658
- <${componentName$d}
2658
+ <${componentName$f}
2659
2659
  bordered="true"
2660
2660
  name="code"
2661
2661
  tabindex="-1"
2662
2662
  slot="input"
2663
- ></${componentName$d}>
2663
+ ></${componentName$f}>
2664
2664
  `;
2665
2665
 
2666
2666
  this.baseElement.appendChild(template.content.cloneNode(true));
2667
2667
 
2668
- this.inputElement = this.shadowRoot.querySelector(componentName$d);
2668
+ this.inputElement = this.shadowRoot.querySelector(componentName$f);
2669
2669
 
2670
2670
  forwardAttrs(this, this.inputElement, { includeAttrs: ['digits', 'size'] });
2671
2671
  }
@@ -2680,13 +2680,13 @@ const customMixin$2 = (superclass) =>
2680
2680
  };
2681
2681
 
2682
2682
  const {
2683
- host: host$6,
2683
+ host: host$7,
2684
2684
  digitField,
2685
- label: label$5,
2686
- requiredIndicator: requiredIndicator$5,
2685
+ label: label$6,
2686
+ requiredIndicator: requiredIndicator$6,
2687
2687
  internalWrapper,
2688
2688
  focusedDigitField,
2689
- errorMessage: errorMessage$5,
2689
+ errorMessage: errorMessage$6,
2690
2690
  } = {
2691
2691
  host: { selector: () => ':host' },
2692
2692
  focusedDigitField: { selector: () => `${TextFieldClass.componentName}[focused="true"]` },
@@ -2697,42 +2697,42 @@ const {
2697
2697
  errorMessage: { selector: '::part(error-message)' },
2698
2698
  };
2699
2699
 
2700
- const textVars$1 = TextFieldClass.cssVarList;
2700
+ const textVars$2 = TextFieldClass.cssVarList;
2701
2701
 
2702
2702
  const PasscodeClass = compose(
2703
2703
  createStyleMixin({
2704
2704
  mappings: {
2705
- fontSize: [{ ...digitField, property: textVars$1.fontSize }, host$6],
2705
+ fontSize: [{ ...digitField, property: textVars$2.fontSize }, host$7],
2706
2706
  hostWidth: { property: 'width' },
2707
- fontFamily: host$6,
2707
+ fontFamily: host$7,
2708
2708
  labelTextColor: [
2709
- { ...label$5, property: 'color' },
2710
- { ...requiredIndicator$5, property: 'color' },
2709
+ { ...label$6, property: 'color' },
2710
+ { ...requiredIndicator$6, property: 'color' },
2711
2711
  ],
2712
- labelRequiredIndicator: { ...requiredIndicator$5, property: 'content' },
2713
- errorMessageTextColor: { ...errorMessage$5, property: 'color' },
2712
+ labelRequiredIndicator: { ...requiredIndicator$6, property: 'content' },
2713
+ errorMessageTextColor: { ...errorMessage$6, property: 'color' },
2714
2714
  digitValueTextColor: {
2715
2715
  selector: TextFieldClass.componentName,
2716
- property: textVars$1.inputValueTextColor,
2716
+ property: textVars$2.inputValueTextColor,
2717
2717
  },
2718
2718
  digitSize: [
2719
2719
  { ...digitField, property: 'height' },
2720
2720
  { ...digitField, property: 'width' },
2721
2721
  ],
2722
- digitPadding: { ...digitField, property: textVars$1.inputHorizontalPadding },
2723
- digitTextAlign: { ...digitField, property: textVars$1.inputTextAlign },
2724
- digitCaretTextColor: { ...digitField, property: textVars$1.inputCaretTextColor },
2722
+ digitPadding: { ...digitField, property: textVars$2.inputHorizontalPadding },
2723
+ digitTextAlign: { ...digitField, property: textVars$2.inputTextAlign },
2724
+ digitCaretTextColor: { ...digitField, property: textVars$2.inputCaretTextColor },
2725
2725
  digitSpacing: { ...internalWrapper, property: 'gap' },
2726
- digitOutlineColor: { ...digitField, property: textVars$1.inputOutlineColor },
2727
- digitOutlineWidth: { ...digitField, property: textVars$1.inputOutlineWidth },
2726
+ digitOutlineColor: { ...digitField, property: textVars$2.inputOutlineColor },
2727
+ digitOutlineWidth: { ...digitField, property: textVars$2.inputOutlineWidth },
2728
2728
 
2729
- focusedDigitFieldOutlineColor: { ...focusedDigitField, property: textVars$1.inputOutlineColor },
2729
+ focusedDigitFieldOutlineColor: { ...focusedDigitField, property: textVars$2.inputOutlineColor },
2730
2730
  },
2731
2731
  }),
2732
2732
  draggableMixin,
2733
2733
  composedProxyInputMixin,
2734
2734
  componentNameValidationMixin,
2735
- customMixin$2
2735
+ customMixin$3
2736
2736
  )(
2737
2737
  createProxy({
2738
2738
  slots: [],
@@ -2768,7 +2768,7 @@ const PasscodeClass = compose(
2768
2768
 
2769
2769
  descope-passcode-internal descope-text-field {
2770
2770
  min-width: 2em;
2771
- max-width: var(${textVars$1.inputHeight});
2771
+ max-width: var(${textVars$2.inputHeight});
2772
2772
  }
2773
2773
 
2774
2774
  vaadin-text-field::part(input-field) {
@@ -2803,15 +2803,15 @@ const PasscodeClass = compose(
2803
2803
  ${resetInputCursor('vaadin-text-field')}
2804
2804
  `,
2805
2805
  excludeAttrsSync: ['tabindex'],
2806
- componentName: componentName$b,
2806
+ componentName: componentName$d,
2807
2807
  })
2808
2808
  );
2809
2809
 
2810
- customElements.define(componentName$c, TextFieldClass);
2810
+ customElements.define(componentName$e, TextFieldClass);
2811
2811
 
2812
- customElements.define(componentName$d, PasscodeInternal);
2812
+ customElements.define(componentName$f, PasscodeInternal);
2813
2813
 
2814
- customElements.define(componentName$b, PasscodeClass);
2814
+ customElements.define(componentName$d, PasscodeClass);
2815
2815
 
2816
2816
  const passwordDraggableMixin = (superclass) =>
2817
2817
  class PasswordDraggableMixinClass extends superclass {
@@ -2847,19 +2847,19 @@ const passwordDraggableMixin = (superclass) =>
2847
2847
  }
2848
2848
  };
2849
2849
 
2850
- const componentName$a = getComponentName('password');
2850
+ const componentName$c = getComponentName('password');
2851
2851
 
2852
2852
  const {
2853
- host: host$5,
2854
- inputField: inputField$3,
2853
+ host: host$6,
2854
+ inputField: inputField$4,
2855
2855
  inputElement: inputElement$1,
2856
2856
  inputElementPlaceholder,
2857
2857
  revealButtonContainer,
2858
2858
  revealButtonIcon,
2859
- label: label$4,
2860
- requiredIndicator: requiredIndicator$4,
2861
- errorMessage: errorMessage$4,
2862
- helperText: helperText$4,
2859
+ label: label$5,
2860
+ requiredIndicator: requiredIndicator$5,
2861
+ errorMessage: errorMessage$5,
2862
+ helperText: helperText$5,
2863
2863
  } = {
2864
2864
  host: { selector: () => ':host' },
2865
2865
  inputField: { selector: '::part(input-field)' },
@@ -2876,33 +2876,33 @@ const {
2876
2876
  const PasswordClass = compose(
2877
2877
  createStyleMixin({
2878
2878
  mappings: {
2879
- hostWidth: { ...host$5, property: 'width' },
2880
- hostMinWidth: { ...host$5, property: 'min-width' },
2881
- fontSize: [{}, host$5],
2882
- fontFamily: [label$4, inputField$3, errorMessage$4, helperText$4],
2883
- inputHeight: { ...inputField$3, property: 'height' },
2879
+ hostWidth: { ...host$6, property: 'width' },
2880
+ hostMinWidth: { ...host$6, property: 'min-width' },
2881
+ fontSize: [{}, host$6],
2882
+ fontFamily: [label$5, inputField$4, errorMessage$5, helperText$5],
2883
+ inputHeight: { ...inputField$4, property: 'height' },
2884
2884
  inputHorizontalPadding: [
2885
2885
  { ...inputElement$1, property: 'padding-left' },
2886
2886
  { ...inputElement$1, property: 'padding-right' },
2887
2887
  ],
2888
- inputBackgroundColor: { ...inputField$3, property: 'background-color' },
2888
+ inputBackgroundColor: { ...inputField$4, property: 'background-color' },
2889
2889
 
2890
- inputBorderStyle: { ...inputField$3, property: 'border-style' },
2891
- inputBorderWidth: { ...inputField$3, property: 'border-width' },
2892
- inputBorderColor: { ...inputField$3, property: 'border-color' },
2893
- inputBorderRadius: { ...inputField$3, property: 'border-radius' },
2890
+ inputBorderStyle: { ...inputField$4, property: 'border-style' },
2891
+ inputBorderWidth: { ...inputField$4, property: 'border-width' },
2892
+ inputBorderColor: { ...inputField$4, property: 'border-color' },
2893
+ inputBorderRadius: { ...inputField$4, property: 'border-radius' },
2894
2894
 
2895
- inputOutlineColor: { ...inputField$3, property: 'outline-color' },
2896
- inputOutlineStyle: { ...inputField$3, property: 'outline-style' },
2897
- inputOutlineOffset: { ...inputField$3, property: 'outline-offset' },
2898
- inputOutlineWidth: { ...inputField$3, property: 'outline-width' },
2895
+ inputOutlineColor: { ...inputField$4, property: 'outline-color' },
2896
+ inputOutlineStyle: { ...inputField$4, property: 'outline-style' },
2897
+ inputOutlineOffset: { ...inputField$4, property: 'outline-offset' },
2898
+ inputOutlineWidth: { ...inputField$4, property: 'outline-width' },
2899
2899
 
2900
2900
  labelTextColor: [
2901
- { ...label$4, property: 'color' },
2902
- { ...requiredIndicator$4, property: 'color' },
2901
+ { ...label$5, property: 'color' },
2902
+ { ...requiredIndicator$5, property: 'color' },
2903
2903
  ],
2904
- labelRequiredIndicator: { ...requiredIndicator$4, property: 'content' },
2905
- errorMessageTextColor: { ...errorMessage$4, property: 'color' },
2904
+ labelRequiredIndicator: { ...requiredIndicator$5, property: 'content' },
2905
+ errorMessageTextColor: { ...errorMessage$5, property: 'color' },
2906
2906
 
2907
2907
  inputValueTextColor: [
2908
2908
  { ...inputElement$1, property: 'color' },
@@ -2975,23 +2975,23 @@ const PasswordClass = compose(
2975
2975
  }
2976
2976
  `,
2977
2977
  excludeAttrsSync: ['tabindex'],
2978
- componentName: componentName$a,
2978
+ componentName: componentName$c,
2979
2979
  })
2980
2980
  );
2981
2981
 
2982
- customElements.define(componentName$a, PasswordClass);
2982
+ customElements.define(componentName$c, PasswordClass);
2983
2983
 
2984
- const componentName$9 = getComponentName('text-area');
2984
+ const componentName$b = getComponentName('text-area');
2985
2985
 
2986
2986
  const {
2987
- host: host$4,
2988
- label: label$3,
2987
+ host: host$5,
2988
+ label: label$4,
2989
2989
  placeholder: placeholder$1,
2990
- inputField: inputField$2,
2990
+ inputField: inputField$3,
2991
2991
  textArea: textArea$2,
2992
- requiredIndicator: requiredIndicator$3,
2993
- helperText: helperText$3,
2994
- errorMessage: errorMessage$3,
2992
+ requiredIndicator: requiredIndicator$4,
2993
+ helperText: helperText$4,
2994
+ errorMessage: errorMessage$4,
2995
2995
  } = {
2996
2996
  host: { selector: () => ':host' },
2997
2997
  label: { selector: '::part(label)' },
@@ -3006,27 +3006,27 @@ const {
3006
3006
  const TextAreaClass = compose(
3007
3007
  createStyleMixin({
3008
3008
  mappings: {
3009
- hostWidth: { ...host$4, property: 'width' },
3010
- hostMinWidth: { ...host$4, property: 'min-width' },
3011
- fontSize: [host$4, textArea$2],
3012
- fontFamily: [label$3, inputField$2, helperText$3, errorMessage$3],
3009
+ hostWidth: { ...host$5, property: 'width' },
3010
+ hostMinWidth: { ...host$5, property: 'min-width' },
3011
+ fontSize: [host$5, textArea$2],
3012
+ fontFamily: [label$4, inputField$3, helperText$4, errorMessage$4],
3013
3013
  labelTextColor: [
3014
- { ...label$3, property: 'color' },
3015
- { ...requiredIndicator$3, property: 'color' },
3014
+ { ...label$4, property: 'color' },
3015
+ { ...requiredIndicator$4, property: 'color' },
3016
3016
  ],
3017
- labelRequiredIndicator: { ...requiredIndicator$3, property: 'content' },
3018
- errorMessageTextColor: { ...errorMessage$3, property: 'color' },
3019
- inputBackgroundColor: { ...inputField$2, property: 'background-color' },
3017
+ labelRequiredIndicator: { ...requiredIndicator$4, property: 'content' },
3018
+ errorMessageTextColor: { ...errorMessage$4, property: 'color' },
3019
+ inputBackgroundColor: { ...inputField$3, property: 'background-color' },
3020
3020
  inputValueTextColor: { ...textArea$2, property: 'color' },
3021
3021
  inputPlaceholderTextColor: { ...placeholder$1, property: 'color' },
3022
- inputBorderWidth: { ...inputField$2, property: 'border-width' },
3023
- inputBorderStyle: { ...inputField$2, property: 'border-style' },
3024
- inputBorderColor: { ...inputField$2, property: 'border-color' },
3025
- inputBorderRadius: { ...inputField$2, property: 'border-radius' },
3026
- inputOutlineStyle: { ...inputField$2, property: 'outline-Style' },
3027
- inputOutlineColor: { ...inputField$2, property: 'outline-color' },
3028
- inputOutlineOffset: { ...inputField$2, property: 'outline-offset' },
3029
- inputOutlineWidth: { ...inputField$2, property: 'outline-width' },
3022
+ inputBorderWidth: { ...inputField$3, property: 'border-width' },
3023
+ inputBorderStyle: { ...inputField$3, property: 'border-style' },
3024
+ inputBorderColor: { ...inputField$3, property: 'border-color' },
3025
+ inputBorderRadius: { ...inputField$3, property: 'border-radius' },
3026
+ inputOutlineStyle: { ...inputField$3, property: 'outline-Style' },
3027
+ inputOutlineColor: { ...inputField$3, property: 'outline-color' },
3028
+ inputOutlineOffset: { ...inputField$3, property: 'outline-offset' },
3029
+ inputOutlineWidth: { ...inputField$3, property: 'outline-width' },
3030
3030
  inputResizeType: { ...textArea$2, property: 'resize' },
3031
3031
  inputMinHeight: { ...textArea$2, property: 'min-height' },
3032
3032
  },
@@ -3053,20 +3053,20 @@ const TextAreaClass = compose(
3053
3053
  ${resetInputCursor('vaadin-text-area')}
3054
3054
  `,
3055
3055
  excludeAttrsSync: ['tabindex'],
3056
- componentName: componentName$9,
3056
+ componentName: componentName$b,
3057
3057
  })
3058
3058
  );
3059
3059
 
3060
- customElements.define(componentName$9, TextAreaClass);
3060
+ customElements.define(componentName$b, TextAreaClass);
3061
3061
 
3062
- const observedAttributes$2 = ['src', 'alt'];
3062
+ const observedAttributes$3 = ['src', 'alt'];
3063
3063
 
3064
- const componentName$8 = getComponentName('image');
3064
+ const componentName$a = getComponentName('image');
3065
3065
 
3066
- const BaseClass$1 = createBaseClass({ componentName: componentName$8, baseSelector: ':host > img' });
3066
+ const BaseClass$1 = createBaseClass({ componentName: componentName$a, baseSelector: ':host > img' });
3067
3067
  class RawImage extends BaseClass$1 {
3068
3068
  static get observedAttributes() {
3069
- return observedAttributes$2.concat(BaseClass$1.observedAttributes || []);
3069
+ return observedAttributes$3.concat(BaseClass$1.observedAttributes || []);
3070
3070
  }
3071
3071
 
3072
3072
  constructor() {
@@ -3089,7 +3089,7 @@ class RawImage extends BaseClass$1 {
3089
3089
  connectedCallback() {
3090
3090
  super.connectedCallback?.();
3091
3091
 
3092
- forwardAttrs(this, this.baseElement, { includeAttrs: observedAttributes$2 });
3092
+ forwardAttrs(this, this.baseElement, { includeAttrs: observedAttributes$3 });
3093
3093
  }
3094
3094
  }
3095
3095
 
@@ -3103,9 +3103,9 @@ const ImageClass = compose(
3103
3103
  draggableMixin
3104
3104
  )(RawImage);
3105
3105
 
3106
- customElements.define(componentName$8, ImageClass);
3106
+ customElements.define(componentName$a, ImageClass);
3107
3107
 
3108
- const componentName$7 = getComponentName('combo-box');
3108
+ const componentName$9 = getComponentName('combo-box');
3109
3109
 
3110
3110
  const ComboBoxMixin = (superclass) =>
3111
3111
  class ComboBoxMixinClass extends superclass {
@@ -3157,15 +3157,15 @@ const ComboBoxMixin = (superclass) =>
3157
3157
  };
3158
3158
 
3159
3159
  const {
3160
- host: host$3,
3161
- inputField: inputField$1,
3160
+ host: host$4,
3161
+ inputField: inputField$2,
3162
3162
  inputElement,
3163
3163
  placeholder,
3164
3164
  toggle,
3165
- label: label$2,
3166
- requiredIndicator: requiredIndicator$2,
3167
- helperText: helperText$2,
3168
- errorMessage: errorMessage$2,
3165
+ label: label$3,
3166
+ requiredIndicator: requiredIndicator$3,
3167
+ helperText: helperText$3,
3168
+ errorMessage: errorMessage$3,
3169
3169
  } = {
3170
3170
  host: { selector: () => ':host' },
3171
3171
  inputField: { selector: '::part(input-field)' },
@@ -3186,23 +3186,23 @@ const {
3186
3186
  const ComboBoxClass = compose(
3187
3187
  createStyleMixin({
3188
3188
  mappings: {
3189
- hostWidth: { ...host$3, property: 'width' },
3189
+ hostWidth: { ...host$4, property: 'width' },
3190
3190
  // we apply font-size also on the host so we can set its width with em
3191
- fontSize: [{}, host$3],
3192
- fontFamily: [label$2, placeholder, inputField$1, helperText$2, errorMessage$2],
3191
+ fontSize: [{}, host$4],
3192
+ fontFamily: [label$3, placeholder, inputField$2, helperText$3, errorMessage$3],
3193
3193
  labelTextColor: [
3194
- { ...label$2, property: 'color' },
3195
- { ...requiredIndicator$2, property: 'color' },
3194
+ { ...label$3, property: 'color' },
3195
+ { ...requiredIndicator$3, property: 'color' },
3196
3196
  ],
3197
- errorMessageTextColor: { ...errorMessage$2, property: 'color' },
3198
- inputHeight: { ...inputField$1, property: 'height' },
3199
- inputBackgroundColor: { ...inputField$1, property: 'background-color' },
3200
- inputBorderColor: { ...inputField$1, property: 'border-color' },
3201
- inputBorderWidth: { ...inputField$1, property: 'border-width' },
3202
- inputBorderStyle: { ...inputField$1, property: 'border-style' },
3203
- inputBorderRadius: { ...inputField$1, property: 'border-radius' },
3204
- labelRequiredIndicator: { ...requiredIndicator$2, property: 'content' },
3205
- inputValueTextColor: { ...inputField$1, property: 'color' },
3197
+ errorMessageTextColor: { ...errorMessage$3, property: 'color' },
3198
+ inputHeight: { ...inputField$2, property: 'height' },
3199
+ inputBackgroundColor: { ...inputField$2, property: 'background-color' },
3200
+ inputBorderColor: { ...inputField$2, property: 'border-color' },
3201
+ inputBorderWidth: { ...inputField$2, property: 'border-width' },
3202
+ inputBorderStyle: { ...inputField$2, property: 'border-style' },
3203
+ inputBorderRadius: { ...inputField$2, property: 'border-radius' },
3204
+ labelRequiredIndicator: { ...requiredIndicator$3, property: 'content' },
3205
+ inputValueTextColor: { ...inputField$2, property: 'color' },
3206
3206
  inputPlaceholderTextColor: { ...placeholder, property: 'color' },
3207
3207
  inputDropdownButtonCursor: { ...toggle, property: 'cursor' },
3208
3208
  inputDropdownButtonColor: { ...toggle, property: 'color' },
@@ -3211,10 +3211,10 @@ const ComboBoxClass = compose(
3211
3211
  { ...toggle, property: 'margin-right' },
3212
3212
  { ...toggle, property: 'margin-left' },
3213
3213
  ],
3214
- inputOutlineColor: { ...inputField$1, property: 'outline-color' },
3215
- inputOutlineWidth: { ...inputField$1, property: 'outline-width' },
3216
- inputOutlineStyle: { ...inputField$1, property: 'outline-style' },
3217
- inputOutlineOffset: { ...inputField$1, property: 'outline-offset' },
3214
+ inputOutlineColor: { ...inputField$2, property: 'outline-color' },
3215
+ inputOutlineWidth: { ...inputField$2, property: 'outline-width' },
3216
+ inputOutlineStyle: { ...inputField$2, property: 'outline-style' },
3217
+ inputOutlineOffset: { ...inputField$2, property: 'outline-offset' },
3218
3218
  inputHorizontalPadding: [
3219
3219
  { ...inputElement, property: 'padding-left' },
3220
3220
  { ...inputElement, property: 'padding-right' },
@@ -3285,12 +3285,12 @@ const ComboBoxClass = compose(
3285
3285
  // and reset items to an empty array, and opening the list box with no items
3286
3286
  // to display.
3287
3287
  excludeAttrsSync: ['tabindex', 'size'],
3288
- componentName: componentName$7,
3288
+ componentName: componentName$9,
3289
3289
  includeForwardProps: ['items', 'renderer', 'selectedItem'],
3290
3290
  })
3291
3291
  );
3292
3292
 
3293
- customElements.define(componentName$7, ComboBoxClass);
3293
+ customElements.define(componentName$9, ComboBoxClass);
3294
3294
 
3295
3295
  var CountryCodes = [
3296
3296
  {
@@ -4530,39 +4530,40 @@ const comboBoxItem = ({ code, dialCode, name: country }) => `
4530
4530
  </div>
4531
4531
  `;
4532
4532
 
4533
- const componentName$6 = getComponentName('phone-field-internal');
4533
+ const componentName$8 = getComponentName('phone-field-internal');
4534
4534
 
4535
4535
  const commonAttrs$1 = ['disabled', 'size', 'bordered', 'invalid', 'readonly'];
4536
- const countryAttrs = ['country-input-placeholder', 'default-code'];
4536
+ const countryAttrs = ['country-input-placeholder', 'default-code', 'restrict-countries'];
4537
4537
  const phoneAttrs = ['phone-input-placeholder', 'maxlength'];
4538
- const mapAttrs = {
4538
+ const mapAttrs$1 = {
4539
4539
  'country-input-placeholder': 'placeholder',
4540
4540
  'phone-input-placeholder': 'placeholder',
4541
4541
  };
4542
4542
 
4543
4543
  const inputRelatedAttrs$1 = [].concat(commonAttrs$1, countryAttrs, phoneAttrs);
4544
4544
 
4545
- const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$6, baseSelector: 'div' });
4545
+ const BaseInputClass$3 = createBaseInputClass({ componentName: componentName$8, baseSelector: 'div' });
4546
4546
 
4547
- class PhoneFieldInternal extends BaseInputClass$2 {
4547
+ let PhoneFieldInternal$1 = class PhoneFieldInternal extends BaseInputClass$3 {
4548
4548
  static get observedAttributes() {
4549
- return [].concat(BaseInputClass$2.observedAttributes || [], inputRelatedAttrs$1);
4549
+ return [].concat(BaseInputClass$3.observedAttributes || [], inputRelatedAttrs$1);
4550
4550
  }
4551
4551
 
4552
4552
  constructor() {
4553
4553
  super();
4554
4554
 
4555
4555
  this.innerHTML = `
4556
- <div>
4557
- <descope-combo-box
4558
- item-label-path="data-name"
4559
- item-value-path="data-id"
4560
- >
4561
- ${CountryCodes.map((item) => comboBoxItem(item)).join('')}
4562
- </descope-combo-box>
4563
- <div class="separator"></div>
4564
- <descope-text-field type="tel"></descope-text-field>
4565
- </div>`;
4556
+ <div>
4557
+ <descope-combo-box
4558
+ item-label-path="data-name"
4559
+ item-value-path="data-id"
4560
+ >
4561
+ ${CountryCodes.map((item) => comboBoxItem(item)).join('')}
4562
+ </descope-combo-box>
4563
+ <div class="separator"></div>
4564
+ <descope-text-field type="tel"></descope-text-field>
4565
+ </div>
4566
+ `;
4566
4567
 
4567
4568
  this.countryCodeInput = this.querySelector('descope-combo-box');
4568
4569
  this.phoneNumberInput = this.querySelector('descope-text-field');
@@ -4570,10 +4571,10 @@ class PhoneFieldInternal extends BaseInputClass$2 {
4570
4571
  }
4571
4572
 
4572
4573
  get value() {
4573
- if (!this.countryCodeValue || !this.phoneNumberValue) {
4574
+ if (!this.phoneNumberValue) {
4574
4575
  return '';
4575
4576
  }
4576
- return this.inputs.map(({ value }) => value).join('-');
4577
+ return `${this.countryCodeInput.value}-${this.phoneNumberInput.value}`;
4577
4578
  }
4578
4579
 
4579
4580
  set value(val) {
@@ -4610,7 +4611,7 @@ class PhoneFieldInternal extends BaseInputClass$2 {
4610
4611
  if (hasMinPhoneLength) {
4611
4612
  return { tooShort: true };
4612
4613
  }
4613
- if ((hasCode && !hasPhone) || (!hasCode && hasPhone)) {
4614
+ if (hasPhone && !hasCode) {
4614
4615
  return { valueMissing: true };
4615
4616
  }
4616
4617
  return {};
@@ -4627,14 +4628,27 @@ class PhoneFieldInternal extends BaseInputClass$2 {
4627
4628
  this.setComboBoxDescriptor();
4628
4629
  }
4629
4630
 
4631
+ getRestrictedCountries() {
4632
+ return this.getAttribute('restrict-countries')?.split(',') || [];
4633
+ }
4634
+
4630
4635
  getCountryByDialCode(countryDialCode) {
4631
- return this.countryCodeInput.items.find(
4636
+ return this.countryCodeInput.items?.find(
4632
4637
  (c) => c.getAttribute('data-dial-code') === countryDialCode
4633
4638
  );
4634
4639
  }
4635
4640
 
4636
4641
  getCountryByCodeId(countryCode) {
4637
- return this.countryCodeInput.items.find((c) => c['data-id'] === countryCode)?.['data-name'];
4642
+ return this.countryCodeInput.items?.find((c) => c['data-id'] === countryCode)?.['data-name'];
4643
+ }
4644
+
4645
+ updateCountryCodeItems(restrictCountries) {
4646
+ const items = restrictCountries.length
4647
+ ? CountryCodes.filter((c) => restrictCountries.includes(c.code))
4648
+ : CountryCodes;
4649
+ this.querySelector('descope-combo-box').innerHTML = items
4650
+ .map((item) => comboBoxItem(item))
4651
+ .join('');
4638
4652
  }
4639
4653
 
4640
4654
  handleDefaultCountryCode(countryCode) {
@@ -4701,7 +4715,7 @@ class PhoneFieldInternal extends BaseInputClass$2 {
4701
4715
  if (attrName === 'default-code' && newValue) {
4702
4716
  this.handleDefaultCountryCode(newValue);
4703
4717
  } else if (inputRelatedAttrs$1.includes(attrName)) {
4704
- const attr = mapAttrs[attrName] || attrName;
4718
+ const attr = mapAttrs$1[attrName] || attrName;
4705
4719
 
4706
4720
  if (commonAttrs$1.includes(attrName)) {
4707
4721
  this.inputs.forEach((input) => input.setAttribute(attr, newValue));
@@ -4711,18 +4725,21 @@ class PhoneFieldInternal extends BaseInputClass$2 {
4711
4725
  this.phoneNumberInput.setAttribute(attr, newValue);
4712
4726
  }
4713
4727
  }
4728
+ if (attrName === 'restrict-countries') {
4729
+ this.updateCountryCodeItems(this.getRestrictedCountries());
4730
+ }
4714
4731
  }
4715
4732
  }
4716
- }
4733
+ };
4717
4734
 
4718
- customElements.define(componentName$6, PhoneFieldInternal);
4735
+ customElements.define(componentName$8, PhoneFieldInternal$1);
4719
4736
 
4720
- const textVars = TextFieldClass.cssVarList;
4737
+ const textVars$1 = TextFieldClass.cssVarList;
4721
4738
  const comboVars = ComboBoxClass.cssVarList;
4722
4739
 
4723
- const componentName$5 = getComponentName('phone-field');
4740
+ const componentName$7 = getComponentName('phone-field');
4724
4741
 
4725
- const customMixin$1 = (superclass) =>
4742
+ const customMixin$2 = (superclass) =>
4726
4743
  class PhoneFieldMixinClass extends superclass {
4727
4744
  static get CountryCodes() {
4728
4745
  return CountryCodes;
@@ -4734,15 +4751,15 @@ const customMixin$1 = (superclass) =>
4734
4751
  const template = document.createElement('template');
4735
4752
 
4736
4753
  template.innerHTML = `
4737
- <${componentName$6}
4754
+ <${componentName$8}
4738
4755
  tabindex="-1"
4739
4756
  slot="input"
4740
- ></${componentName$6}>
4757
+ ></${componentName$8}>
4741
4758
  `;
4742
4759
 
4743
4760
  this.baseElement.appendChild(template.content.cloneNode(true));
4744
4761
 
4745
- this.inputElement = this.shadowRoot.querySelector(componentName$6);
4762
+ this.inputElement = this.shadowRoot.querySelector(componentName$8);
4746
4763
 
4747
4764
  forwardAttrs(this.shadowRoot.host, this.inputElement, {
4748
4765
  includeAttrs: [
@@ -4755,21 +4772,22 @@ const customMixin$1 = (superclass) =>
4755
4772
  'country-input-placeholder',
4756
4773
  'phone-input-placeholder',
4757
4774
  'disabled',
4775
+ 'restrict-countries',
4758
4776
  ],
4759
4777
  });
4760
4778
  }
4761
4779
  };
4762
4780
 
4763
4781
  const {
4764
- host: host$2,
4765
- label: label$1,
4766
- requiredIndicator: requiredIndicator$1,
4767
- inputField,
4782
+ host: host$3,
4783
+ label: label$2,
4784
+ requiredIndicator: requiredIndicator$2,
4785
+ inputField: inputField$1,
4768
4786
  countryCodeInput,
4769
- phoneInput,
4787
+ phoneInput: phoneInput$1,
4770
4788
  separator,
4771
- errorMessage: errorMessage$1,
4772
- helperText: helperText$1,
4789
+ errorMessage: errorMessage$2,
4790
+ helperText: helperText$2,
4773
4791
  } = {
4774
4792
  host: { selector: () => ':host' },
4775
4793
  label: { selector: '::part(label)' },
@@ -4786,8 +4804,8 @@ const PhoneFieldClass = compose(
4786
4804
  createStyleMixin({
4787
4805
  mappings: {
4788
4806
  fontSize: [
4789
- host$2,
4790
- inputField,
4807
+ host$3,
4808
+ inputField$1,
4791
4809
  {
4792
4810
  selector: TextFieldClass.componentName,
4793
4811
  property: TextFieldClass.cssVarList.fontSize,
@@ -4798,69 +4816,69 @@ const PhoneFieldClass = compose(
4798
4816
  },
4799
4817
  ],
4800
4818
  fontFamily: [
4801
- label$1,
4802
- errorMessage$1,
4803
- helperText$1,
4819
+ label$2,
4820
+ errorMessage$2,
4821
+ helperText$2,
4804
4822
  {
4805
4823
  ...countryCodeInput,
4806
4824
  property: ComboBoxClass.cssVarList.overlay.fontFamily,
4807
4825
  },
4808
4826
  ],
4809
4827
  hostWidth: [
4810
- { ...host$2, property: 'width' },
4811
- { ...phoneInput, property: 'width' },
4828
+ { ...host$3, property: 'width' },
4829
+ { ...phoneInput$1, property: 'width' },
4812
4830
  { ...countryCodeInput, property: '--vaadin-combo-box-overlay-width' },
4813
4831
  ],
4814
4832
 
4815
4833
  inputBorderStyle: [
4816
- { ...inputField, property: 'border-style' },
4834
+ { ...inputField$1, property: 'border-style' },
4817
4835
  { ...separator, property: 'border-left-style' },
4818
4836
  ],
4819
4837
  inputBorderWidth: [
4820
- { ...inputField, property: 'border-width' },
4838
+ { ...inputField$1, property: 'border-width' },
4821
4839
  { ...separator, property: 'border-left-width' },
4822
4840
  ],
4823
4841
  inputBorderColor: [
4824
- { ...inputField, property: 'border-color' },
4842
+ { ...inputField$1, property: 'border-color' },
4825
4843
  { ...separator, property: 'border-left-color' },
4826
4844
  ],
4827
- inputBorderRadius: { ...inputField, property: 'border-radius' },
4845
+ inputBorderRadius: { ...inputField$1, property: 'border-radius' },
4828
4846
 
4829
4847
  countryCodeInputWidth: { ...countryCodeInput, property: comboVars.hostWidth },
4830
4848
  countryCodeDropdownWidth: {
4831
4849
  ...countryCodeInput,
4832
4850
  property: '--vaadin-combo-box-overlay-width',
4833
4851
  },
4834
- phoneInputWidth: { ...phoneInput, property: 'width' },
4852
+ phoneInputWidth: { ...phoneInput$1, property: 'width' },
4835
4853
 
4836
4854
  labelTextColor: [
4837
- { ...label$1, property: 'color' },
4838
- { ...requiredIndicator$1, property: 'color' },
4855
+ { ...label$2, property: 'color' },
4856
+ { ...requiredIndicator$2, property: 'color' },
4839
4857
  ],
4840
- labelRequiredIndicator: { ...requiredIndicator$1, property: 'content' },
4841
- errorMessageTextColor: { ...errorMessage$1, property: 'color' },
4858
+ labelRequiredIndicator: { ...requiredIndicator$2, property: 'content' },
4859
+ errorMessageTextColor: { ...errorMessage$2, property: 'color' },
4842
4860
 
4843
4861
  inputValueTextColor: [
4844
- { ...phoneInput, property: textVars.inputValueTextColor },
4862
+ { ...phoneInput$1, property: textVars$1.inputValueTextColor },
4845
4863
  { ...countryCodeInput, property: comboVars.inputValueTextColor },
4846
4864
  ],
4847
4865
 
4848
- inputPlaceholderTextColor: { ...phoneInput, property: textVars.inputPlaceholderColor },
4866
+ inputPlaceholderTextColor: { ...phoneInput$1, property: textVars$1.inputPlaceholderColor },
4849
4867
 
4850
4868
  overlayItemBackgroundColor: {
4851
4869
  selector: 'descope-combo-box',
4852
4870
  property: comboVars.overlayItemBackgroundColor,
4853
4871
  },
4854
4872
 
4855
- inputOutlineStyle: { ...inputField, property: 'outline-style' },
4856
- inputOutlineColor: { ...inputField, property: 'outline-color' },
4857
- inputOutlineWidth: { ...inputField, property: 'outline-width' },
4858
- inputOutlineOffset: { ...inputField, property: 'outline-offset' },
4873
+ inputOutlineStyle: { ...inputField$1, property: 'outline-style' },
4874
+ inputOutlineColor: { ...inputField$1, property: 'outline-color' },
4875
+ inputOutlineWidth: { ...inputField$1, property: 'outline-width' },
4876
+ inputOutlineOffset: { ...inputField$1, property: 'outline-offset' },
4859
4877
  },
4860
4878
  }),
4861
4879
  draggableMixin,
4862
4880
  composedProxyInputMixin,
4863
- customMixin$1
4881
+ customMixin$2
4864
4882
  )(
4865
4883
  createProxy({
4866
4884
  slots: [],
@@ -4923,10 +4941,10 @@ const PhoneFieldClass = compose(
4923
4941
  }
4924
4942
  descope-text-field {
4925
4943
  flex-grow: 1;
4926
- ${textVars.inputOutlineWidth}: 0;
4927
- ${textVars.inputOutlineOffset}: 0;
4928
- ${textVars.inputBorderWidth}: 0;
4929
- ${textVars.inputBorderRadius}: 0;
4944
+ ${textVars$1.inputOutlineWidth}: 0;
4945
+ ${textVars$1.inputOutlineOffset}: 0;
4946
+ ${textVars$1.inputBorderWidth}: 0;
4947
+ ${textVars$1.inputBorderRadius}: 0;
4930
4948
  }
4931
4949
  vaadin-text-field[readonly] > input:placeholder-shown {
4932
4950
  opacity: 1;
@@ -4936,41 +4954,362 @@ const PhoneFieldClass = compose(
4936
4954
  }
4937
4955
  `,
4938
4956
  excludeAttrsSync: ['tabindex'],
4939
- componentName: componentName$5,
4957
+ componentName: componentName$7,
4940
4958
  })
4941
4959
  );
4942
4960
 
4943
- customElements.define(componentName$5, PhoneFieldClass);
4961
+ customElements.define(componentName$7, PhoneFieldClass);
4944
4962
 
4945
- const componentName$4 = getComponentName('new-password-internal');
4963
+ const getCountryByCodeId = (countryCode) => {
4964
+ return CountryCodes.find((c) => c.code === countryCode)?.dialCode;
4965
+ };
4946
4966
 
4947
- const componentName$3 = getComponentName('new-password');
4967
+ const componentName$6 = getComponentName('phone-field-internal-input-box');
4948
4968
 
4949
- const customMixin = (superclass) =>
4950
- class NewPasswordMixinClass extends superclass {
4951
- init() {
4952
- super.init?.();
4969
+ const observedAttributes$2 = [
4970
+ 'disabled',
4971
+ 'size',
4972
+ 'bordered',
4973
+ 'invalid',
4974
+ 'readonly',
4975
+ 'phone-input-placeholder',
4976
+ ];
4977
+ const mapAttrs = {
4978
+ 'phone-input-placeholder': 'placeholder',
4979
+ };
4953
4980
 
4954
- const template = document.createElement('template');
4981
+ const BaseInputClass$2 = createBaseInputClass({ componentName: componentName$6, baseSelector: 'div' });
4955
4982
 
4956
- template.innerHTML = `
4957
- <${componentName$4}
4958
- name="new-password"
4959
- tabindex="-1"
4960
- slot="input"
4961
- ></${componentName$4}>
4962
- `;
4983
+ class PhoneFieldInternal extends BaseInputClass$2 {
4984
+ static get observedAttributes() {
4985
+ return [].concat(BaseInputClass$2.observedAttributes || [], observedAttributes$2);
4986
+ }
4963
4987
 
4964
- this.baseElement.appendChild(template.content.cloneNode(true));
4988
+ constructor() {
4989
+ super();
4965
4990
 
4966
- this.inputElement = this.shadowRoot.querySelector(componentName$4);
4991
+ this.innerHTML = `
4992
+ <div>
4993
+ <descope-text-field tabindex="1"></descope-text-field>
4994
+ </div>
4995
+ `;
4967
4996
 
4968
- forwardAttrs(this, this.inputElement, {
4969
- includeAttrs: [
4970
- 'password-label',
4971
- 'password-placeholder',
4972
- 'confirm-label',
4973
- 'confirm-placeholder',
4997
+ this.phoneNumberInput = this.querySelector('descope-text-field');
4998
+ }
4999
+
5000
+ get defaultCountryCode() {
5001
+ return getCountryByCodeId(this.getAttribute('default-code'));
5002
+ }
5003
+
5004
+ get hasDefaultCode() {
5005
+ return !!this.getAttribute('default-code');
5006
+ }
5007
+
5008
+ get value() {
5009
+ if (!this.phoneNumberValue) {
5010
+ return '';
5011
+ }
5012
+
5013
+ if (this.hasDefaultCode) {
5014
+ // we want to transform phone numbers to a valid {dialCode}-{phoneNumber} format
5015
+ // e.g.:
5016
+ // +972-12345 => +972-12345
5017
+ // 972-12345 => +972-12345
5018
+ // 12345 => +972-12345
5019
+ //
5020
+ // we also want to handle any extra dash if added in the start of the phone number
5021
+ // e.g.:
5022
+ // +972--12345 => +972-12345
5023
+ const pattern = new RegExp(`\\+?${parseInt(this.defaultCountryCode, 10)}--?`);
5024
+ return `${this.defaultCountryCode}-${this.phoneNumberInput.value.replace(pattern, '')}`;
5025
+ }
5026
+
5027
+ return this.phoneNumberInput.value;
5028
+ }
5029
+
5030
+ set value(val) {
5031
+ this.phoneNumberInput.value = val;
5032
+ }
5033
+
5034
+ get phoneNumberValue() {
5035
+ return this.phoneNumberInput.value;
5036
+ }
5037
+
5038
+ get minLength() {
5039
+ return parseInt(this.getAttribute('minlength'), 10) || 0;
5040
+ }
5041
+
5042
+ get maxLength() {
5043
+ return parseInt(this.getAttribute('maxlength'), 10) || 50;
5044
+ }
5045
+
5046
+ getValidity() {
5047
+ const validPhonePattern = /^\+\d{1,4}-(?:\d-?){1,15}$/;
5048
+ const stripValue = this.value.replace(/\D/g, '');
5049
+
5050
+ if (this.isRequired && !this.value) {
5051
+ return { valueMissing: true };
5052
+ }
5053
+
5054
+ if (stripValue.length < this.minLength) {
5055
+ return { tooShort: true };
5056
+ }
5057
+
5058
+ if (stripValue.length > this.maxLength) {
5059
+ return { tooLong: true };
5060
+ }
5061
+
5062
+ if (!validPhonePattern.test(this.value)) {
5063
+ return { patternMismatch: true };
5064
+ }
5065
+
5066
+ return {};
5067
+ }
5068
+
5069
+ init() {
5070
+ this.addEventListener('focus', (e) => {
5071
+ // we want to ignore focus events we are dispatching
5072
+ if (e.isTrusted) this.phoneNumberInput.focus();
5073
+ });
5074
+
5075
+ super.init?.();
5076
+ this.initInputs();
5077
+ }
5078
+
5079
+ getCountryByDialCode(countryDialCode) {
5080
+ return this.countryCodeInput.items?.find(
5081
+ (c) => c.getAttribute('data-dial-code') === countryDialCode
5082
+ );
5083
+ }
5084
+
5085
+ initInputs() {
5086
+ // Sanitize phone input value to filter everything but digits
5087
+ this.phoneNumberInput.addEventListener('input', (e) => {
5088
+ if (e.target.value.length === 1 && e.target.value === '-') {
5089
+ e.target.value = '';
5090
+ }
5091
+
5092
+ e.target.value = e.target.value
5093
+ .replace(/(?!^)\+/g, '')
5094
+ .replace('--', '-')
5095
+ .replace('+-', '+');
5096
+
5097
+ const telDigitsRegExp = /^[+\d-]+$/;
5098
+ const sanitizedInput = e.target.value
5099
+ .split('')
5100
+ .filter((char) => telDigitsRegExp.test(char))
5101
+ .join('');
5102
+
5103
+ e.target.value = sanitizedInput;
5104
+ });
5105
+
5106
+ this.handleFocusEventsDispatching([this.phoneNumberInput]);
5107
+ this.handleInputEventDispatching();
5108
+ }
5109
+
5110
+ attributeChangedCallback(attrName, oldValue, newValue) {
5111
+ super.attributeChangedCallback(attrName, oldValue, newValue);
5112
+
5113
+ if (oldValue !== newValue && observedAttributes$2.includes(attrName)) {
5114
+ const attr = mapAttrs[attrName] || attrName;
5115
+ this.phoneNumberInput.setAttribute(attr, newValue);
5116
+ }
5117
+ }
5118
+ }
5119
+
5120
+ customElements.define(componentName$6, PhoneFieldInternal);
5121
+
5122
+ const textVars = TextFieldClass.cssVarList;
5123
+
5124
+ const componentName$5 = getComponentName('phone-input-box-field');
5125
+
5126
+ const customMixin$1 = (superclass) =>
5127
+ class PhoneInputBoxFieldMixinClass extends superclass {
5128
+ static get CountryCodes() {
5129
+ return CountryCodes;
5130
+ }
5131
+
5132
+ init() {
5133
+ super.init?.();
5134
+
5135
+ const template = document.createElement('template');
5136
+
5137
+ template.innerHTML = `
5138
+ <${componentName$6}
5139
+ tabindex="-1"
5140
+ slot="input"
5141
+ ></${componentName$6}>
5142
+ `;
5143
+
5144
+ this.baseElement.appendChild(template.content.cloneNode(true));
5145
+
5146
+ this.inputElement = this.shadowRoot.querySelector(componentName$6);
5147
+
5148
+ forwardAttrs(this.shadowRoot.host, this.inputElement, {
5149
+ includeAttrs: [
5150
+ 'size',
5151
+ 'bordered',
5152
+ 'invalid',
5153
+ 'minlength',
5154
+ 'maxlength',
5155
+ 'default-code',
5156
+ 'disabled',
5157
+ 'phone-input-placeholder',
5158
+ ],
5159
+ });
5160
+ }
5161
+ };
5162
+
5163
+ const { host: host$2, label: label$1, requiredIndicator: requiredIndicator$1, inputField, phoneInput, errorMessage: errorMessage$1, helperText: helperText$1 } = {
5164
+ host: { selector: () => ':host' },
5165
+ label: { selector: '::part(label)' },
5166
+ requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
5167
+ inputField: { selector: '::part(input-field)' },
5168
+ phoneInput: { selector: () => 'descope-text-field' },
5169
+ helperText: { selector: '::part(helper-text)' },
5170
+ errorMessage: { selector: '::part(error-message)' },
5171
+ };
5172
+
5173
+ const PhoneFieldInputBoxClass = compose(
5174
+ createStyleMixin({
5175
+ mappings: {
5176
+ fontSize: [
5177
+ host$2,
5178
+ inputField,
5179
+ {
5180
+ selector: TextFieldClass.componentName,
5181
+ property: TextFieldClass.cssVarList.fontSize,
5182
+ },
5183
+ ],
5184
+ fontFamily: [label$1, errorMessage$1, helperText$1],
5185
+ hostWidth: { ...host$2, property: 'width' },
5186
+ hostMinWidth: { ...host$2, property: 'min-width' },
5187
+
5188
+ inputBorderStyle: { ...inputField, property: 'border-style' },
5189
+ inputBorderWidth: { ...inputField, property: 'border-width' },
5190
+ inputBorderColor: { ...inputField, property: 'border-color' },
5191
+ inputBorderRadius: { ...inputField, property: 'border-radius' },
5192
+
5193
+ labelTextColor: [
5194
+ { ...label$1, property: 'color' },
5195
+ { ...requiredIndicator$1, property: 'color' },
5196
+ ],
5197
+ labelRequiredIndicator: { ...requiredIndicator$1, property: 'content' },
5198
+ errorMessageTextColor: { ...errorMessage$1, property: 'color' },
5199
+
5200
+ inputValueTextColor: { ...phoneInput, property: textVars.inputValueTextColor },
5201
+
5202
+ inputPlaceholderTextColor: { ...phoneInput, property: textVars.inputPlaceholderColor },
5203
+
5204
+ inputOutlineStyle: { ...inputField, property: 'outline-style' },
5205
+ inputOutlineColor: { ...inputField, property: 'outline-color' },
5206
+ inputOutlineWidth: { ...inputField, property: 'outline-width' },
5207
+ inputOutlineOffset: { ...inputField, property: 'outline-offset' },
5208
+ },
5209
+ }),
5210
+ draggableMixin,
5211
+ composedProxyInputMixin,
5212
+ customMixin$1
5213
+ )(
5214
+ createProxy({
5215
+ slots: [],
5216
+ wrappedEleName: 'vaadin-text-field',
5217
+ style: () => `
5218
+ :host {
5219
+ display: inline-flex;
5220
+ max-width: 100%;
5221
+ box-sizing: border-box;
5222
+ }
5223
+ ${useHostExternalPadding(PhoneFieldInputBoxClass.cssVarList)}
5224
+ ${resetInputCursor('vaadin-text-field')}
5225
+ ${resetInputFieldInvalidBackgroundColor('vaadin-text-field')}
5226
+ ${resetInputFieldDefaultWidth()}
5227
+
5228
+ vaadin-text-field {
5229
+ width: 100%;
5230
+ height: 100%;
5231
+ box-sizing: border-box;
5232
+ padding: 0;
5233
+ }
5234
+ vaadin-text-field[focus-ring]::part(input-field) {
5235
+ box-shadow: none;
5236
+ }
5237
+ vaadin-text-field::before {
5238
+ height: 0;
5239
+ }
5240
+ vaadin-text-field::part(input-field) {
5241
+ padding: 0;
5242
+ min-height: 0;
5243
+ background: transparent;
5244
+ overflow: hidden;
5245
+ -webkit-mask-image: none;
5246
+ }
5247
+ descope-phone-field-internal-input-box {
5248
+ -webkit-mask-image: none;
5249
+ padding: 0;
5250
+ min-height: 0;
5251
+ width: 100%;
5252
+ height: 100%;
5253
+ }
5254
+ descope-phone-field-internal-input-box > div {
5255
+ width: 100%;
5256
+ height: 100%;
5257
+ }
5258
+ descope-phone-field-internal-input-box .separator {
5259
+ flex: 0;
5260
+ border: none;
5261
+ }
5262
+ descope-text-field {
5263
+ flex-grow: 1;
5264
+ width: 100%;
5265
+ ${textVars.inputOutlineWidth}: 0;
5266
+ ${textVars.inputOutlineOffset}: 0;
5267
+ ${textVars.inputBorderWidth}: 0;
5268
+ ${textVars.inputBorderRadius}: 0;
5269
+ }
5270
+ vaadin-text-field[readonly] > input:placeholder-shown {
5271
+ opacity: 1;
5272
+ }
5273
+ vaadin-text-field::part(input-field)::after {
5274
+ border: none;
5275
+ }
5276
+ `,
5277
+ excludeAttrsSync: ['tabindex'],
5278
+ componentName: componentName$5,
5279
+ })
5280
+ );
5281
+
5282
+ customElements.define(componentName$5, PhoneFieldInputBoxClass);
5283
+
5284
+ const componentName$4 = getComponentName('new-password-internal');
5285
+
5286
+ const componentName$3 = getComponentName('new-password');
5287
+
5288
+ const customMixin = (superclass) =>
5289
+ class NewPasswordMixinClass extends superclass {
5290
+ init() {
5291
+ super.init?.();
5292
+
5293
+ const template = document.createElement('template');
5294
+
5295
+ template.innerHTML = `
5296
+ <${componentName$4}
5297
+ name="new-password"
5298
+ tabindex="-1"
5299
+ slot="input"
5300
+ ></${componentName$4}>
5301
+ `;
5302
+
5303
+ this.baseElement.appendChild(template.content.cloneNode(true));
5304
+
5305
+ this.inputElement = this.shadowRoot.querySelector(componentName$4);
5306
+
5307
+ forwardAttrs(this, this.inputElement, {
5308
+ includeAttrs: [
5309
+ 'password-label',
5310
+ 'password-placeholder',
5311
+ 'confirm-label',
5312
+ 'confirm-placeholder',
4974
5313
  'full-width',
4975
5314
  'size',
4976
5315
  'bordered',
@@ -5963,7 +6302,7 @@ const globals = {
5963
6302
  shadow,
5964
6303
  fonts,
5965
6304
  };
5966
- const vars$o = getThemeVars(globals);
6305
+ const vars$p = getThemeVars(globals);
5967
6306
 
5968
6307
  const globalRefs$b = getThemeRefs(globals);
5969
6308
  const compVars$3 = ButtonClass.cssVarList;
@@ -5976,7 +6315,7 @@ const mode = {
5976
6315
  surface: globalRefs$b.colors.surface,
5977
6316
  };
5978
6317
 
5979
- const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$r);
6318
+ const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$t);
5980
6319
 
5981
6320
  const verticalPaddingRatio = 3;
5982
6321
  const horizontalPaddingRatio = 2;
@@ -6063,7 +6402,7 @@ const button = {
6063
6402
  },
6064
6403
  };
6065
6404
 
6066
- const vars$n = {
6405
+ const vars$o = {
6067
6406
  ...compVars$3,
6068
6407
  ...helperVars$3,
6069
6408
  };
@@ -6071,13 +6410,13 @@ const vars$n = {
6071
6410
  var button$1 = /*#__PURE__*/Object.freeze({
6072
6411
  __proto__: null,
6073
6412
  default: button,
6074
- vars: vars$n
6413
+ vars: vars$o
6075
6414
  });
6076
6415
 
6077
6416
  const componentName = getComponentName('input-wrapper');
6078
6417
  const globalRefs$a = getThemeRefs(globals);
6079
6418
 
6080
- const [theme$1, refs, vars$m] = createHelperVars(
6419
+ const [theme$1, refs, vars$n] = createHelperVars(
6081
6420
  {
6082
6421
  labelTextColor: globalRefs$a.colors.surface.contrast,
6083
6422
  valueTextColor: globalRefs$a.colors.surface.contrast,
@@ -6146,21 +6485,56 @@ var inputWrapper = /*#__PURE__*/Object.freeze({
6146
6485
  __proto__: null,
6147
6486
  default: theme$1,
6148
6487
  refs: refs,
6149
- vars: vars$m
6488
+ vars: vars$n
6150
6489
  });
6151
6490
 
6152
- const vars$l = TextFieldClass.cssVarList;
6491
+ const vars$m = TextFieldClass.cssVarList;
6153
6492
 
6154
6493
  const textField = {
6494
+ [vars$m.hostWidth]: refs.width,
6495
+ [vars$m.hostMinWidth]: refs.minWidth,
6496
+ [vars$m.fontSize]: refs.fontSize,
6497
+ [vars$m.fontFamily]: refs.fontFamily,
6498
+ [vars$m.labelTextColor]: refs.labelTextColor,
6499
+ [vars$m.labelRequiredIndicator]: refs.requiredIndicator,
6500
+ [vars$m.errorMessageTextColor]: refs.errorMessageTextColor,
6501
+ [vars$m.inputValueTextColor]: refs.valueTextColor,
6502
+ [vars$m.inputPlaceholderColor]: refs.placeholderTextColor,
6503
+ [vars$m.inputBorderWidth]: refs.borderWidth,
6504
+ [vars$m.inputBorderStyle]: refs.borderStyle,
6505
+ [vars$m.inputBorderColor]: refs.borderColor,
6506
+ [vars$m.inputBorderRadius]: refs.borderRadius,
6507
+ [vars$m.inputOutlineWidth]: refs.outlineWidth,
6508
+ [vars$m.inputOutlineStyle]: refs.outlineStyle,
6509
+ [vars$m.inputOutlineColor]: refs.outlineColor,
6510
+ [vars$m.inputOutlineOffset]: refs.outlineOffset,
6511
+ [vars$m.inputBackgroundColor]: refs.backgroundColor,
6512
+ [vars$m.inputHeight]: refs.inputHeight,
6513
+ [vars$m.inputHorizontalPadding]: refs.horizontalPadding,
6514
+ };
6515
+
6516
+ var textField$1 = /*#__PURE__*/Object.freeze({
6517
+ __proto__: null,
6518
+ default: textField,
6519
+ textField: textField,
6520
+ vars: vars$m
6521
+ });
6522
+
6523
+ const globalRefs$9 = getThemeRefs(globals);
6524
+ const vars$l = PasswordClass.cssVarList;
6525
+
6526
+ const password = {
6155
6527
  [vars$l.hostWidth]: refs.width,
6156
- [vars$l.hostMinWidth]: refs.minWidth,
6157
6528
  [vars$l.fontSize]: refs.fontSize,
6158
6529
  [vars$l.fontFamily]: refs.fontFamily,
6159
6530
  [vars$l.labelTextColor]: refs.labelTextColor,
6160
- [vars$l.labelRequiredIndicator]: refs.requiredIndicator,
6161
6531
  [vars$l.errorMessageTextColor]: refs.errorMessageTextColor,
6532
+ [vars$l.inputHorizontalPadding]: refs.horizontalPadding,
6533
+ [vars$l.inputHeight]: refs.inputHeight,
6534
+ [vars$l.inputBackgroundColor]: refs.backgroundColor,
6535
+ [vars$l.labelRequiredIndicator]: refs.requiredIndicator,
6162
6536
  [vars$l.inputValueTextColor]: refs.valueTextColor,
6163
- [vars$l.inputPlaceholderColor]: refs.placeholderTextColor,
6537
+ [vars$l.inputPlaceholderTextColor]: refs.placeholderTextColor,
6164
6538
  [vars$l.inputBorderWidth]: refs.borderWidth,
6165
6539
  [vars$l.inputBorderStyle]: refs.borderStyle,
6166
6540
  [vars$l.inputBorderColor]: refs.borderColor,
@@ -6169,33 +6543,27 @@ const textField = {
6169
6543
  [vars$l.inputOutlineStyle]: refs.outlineStyle,
6170
6544
  [vars$l.inputOutlineColor]: refs.outlineColor,
6171
6545
  [vars$l.inputOutlineOffset]: refs.outlineOffset,
6172
- [vars$l.inputBackgroundColor]: refs.backgroundColor,
6173
- [vars$l.inputHeight]: refs.inputHeight,
6174
- [vars$l.inputHorizontalPadding]: refs.horizontalPadding,
6546
+ [vars$l.revealButtonOffset]: globalRefs$9.spacing.md,
6547
+ [vars$l.revealButtonSize]: refs.toggleButtonSize,
6175
6548
  };
6176
6549
 
6177
- var textField$1 = /*#__PURE__*/Object.freeze({
6550
+ var password$1 = /*#__PURE__*/Object.freeze({
6178
6551
  __proto__: null,
6179
- default: textField,
6180
- textField: textField,
6552
+ default: password,
6181
6553
  vars: vars$l
6182
6554
  });
6183
6555
 
6184
- const globalRefs$9 = getThemeRefs(globals);
6185
- const vars$k = PasswordClass.cssVarList;
6556
+ const vars$k = NumberFieldClass.cssVarList;
6186
6557
 
6187
- const password = {
6558
+ const numberField = {
6188
6559
  [vars$k.hostWidth]: refs.width,
6560
+ [vars$k.hostMinWidth]: refs.minWidth,
6189
6561
  [vars$k.fontSize]: refs.fontSize,
6190
6562
  [vars$k.fontFamily]: refs.fontFamily,
6191
6563
  [vars$k.labelTextColor]: refs.labelTextColor,
6192
6564
  [vars$k.errorMessageTextColor]: refs.errorMessageTextColor,
6193
- [vars$k.inputHorizontalPadding]: refs.horizontalPadding,
6194
- [vars$k.inputHeight]: refs.inputHeight,
6195
- [vars$k.inputBackgroundColor]: refs.backgroundColor,
6196
- [vars$k.labelRequiredIndicator]: refs.requiredIndicator,
6197
6565
  [vars$k.inputValueTextColor]: refs.valueTextColor,
6198
- [vars$k.inputPlaceholderTextColor]: refs.placeholderTextColor,
6566
+ [vars$k.inputPlaceholderColor]: refs.placeholderTextColor,
6199
6567
  [vars$k.inputBorderWidth]: refs.borderWidth,
6200
6568
  [vars$k.inputBorderStyle]: refs.borderStyle,
6201
6569
  [vars$k.inputBorderColor]: refs.borderColor,
@@ -6204,19 +6572,21 @@ const password = {
6204
6572
  [vars$k.inputOutlineStyle]: refs.outlineStyle,
6205
6573
  [vars$k.inputOutlineColor]: refs.outlineColor,
6206
6574
  [vars$k.inputOutlineOffset]: refs.outlineOffset,
6207
- [vars$k.revealButtonOffset]: globalRefs$9.spacing.md,
6208
- [vars$k.revealButtonSize]: refs.toggleButtonSize,
6575
+ [vars$k.inputBackgroundColor]: refs.backgroundColor,
6576
+ [vars$k.labelRequiredIndicator]: refs.requiredIndicator,
6577
+ [vars$k.inputHorizontalPadding]: refs.horizontalPadding,
6578
+ [vars$k.inputHeight]: refs.inputHeight,
6209
6579
  };
6210
6580
 
6211
- var password$1 = /*#__PURE__*/Object.freeze({
6581
+ var numberField$1 = /*#__PURE__*/Object.freeze({
6212
6582
  __proto__: null,
6213
- default: password,
6583
+ default: numberField,
6214
6584
  vars: vars$k
6215
6585
  });
6216
6586
 
6217
- const vars$j = NumberFieldClass.cssVarList;
6587
+ const vars$j = EmailFieldClass.cssVarList;
6218
6588
 
6219
- const numberField = {
6589
+ const emailField = {
6220
6590
  [vars$j.hostWidth]: refs.width,
6221
6591
  [vars$j.hostMinWidth]: refs.minWidth,
6222
6592
  [vars$j.fontSize]: refs.fontSize,
@@ -6224,6 +6594,7 @@ const numberField = {
6224
6594
  [vars$j.labelTextColor]: refs.labelTextColor,
6225
6595
  [vars$j.errorMessageTextColor]: refs.errorMessageTextColor,
6226
6596
  [vars$j.inputValueTextColor]: refs.valueTextColor,
6597
+ [vars$j.labelRequiredIndicator]: refs.requiredIndicator,
6227
6598
  [vars$j.inputPlaceholderColor]: refs.placeholderTextColor,
6228
6599
  [vars$j.inputBorderWidth]: refs.borderWidth,
6229
6600
  [vars$j.inputBorderStyle]: refs.borderStyle,
@@ -6234,194 +6605,162 @@ const numberField = {
6234
6605
  [vars$j.inputOutlineColor]: refs.outlineColor,
6235
6606
  [vars$j.inputOutlineOffset]: refs.outlineOffset,
6236
6607
  [vars$j.inputBackgroundColor]: refs.backgroundColor,
6237
- [vars$j.labelRequiredIndicator]: refs.requiredIndicator,
6238
6608
  [vars$j.inputHorizontalPadding]: refs.horizontalPadding,
6239
6609
  [vars$j.inputHeight]: refs.inputHeight,
6240
6610
  };
6241
6611
 
6242
- var numberField$1 = /*#__PURE__*/Object.freeze({
6612
+ var emailField$1 = /*#__PURE__*/Object.freeze({
6243
6613
  __proto__: null,
6244
- default: numberField,
6614
+ default: emailField,
6245
6615
  vars: vars$j
6246
6616
  });
6247
6617
 
6248
- const vars$i = EmailFieldClass.cssVarList;
6618
+ const globalRefs$8 = getThemeRefs(globals);
6619
+ const vars$i = TextAreaClass.cssVarList;
6249
6620
 
6250
- const emailField = {
6621
+ const textArea = {
6251
6622
  [vars$i.hostWidth]: refs.width,
6252
6623
  [vars$i.hostMinWidth]: refs.minWidth,
6253
- [vars$i.fontSize]: refs.fontSize,
6624
+ [vars$i.fontSize]: globalRefs$8.typography.body2.size,
6254
6625
  [vars$i.fontFamily]: refs.fontFamily,
6255
6626
  [vars$i.labelTextColor]: refs.labelTextColor,
6627
+ [vars$i.labelRequiredIndicator]: refs.requiredIndicator,
6256
6628
  [vars$i.errorMessageTextColor]: refs.errorMessageTextColor,
6629
+ [vars$i.inputBackgroundColor]: refs.backgroundColor,
6257
6630
  [vars$i.inputValueTextColor]: refs.valueTextColor,
6258
- [vars$i.labelRequiredIndicator]: refs.requiredIndicator,
6259
- [vars$i.inputPlaceholderColor]: refs.placeholderTextColor,
6631
+ [vars$i.inputPlaceholderTextColor]: refs.placeholderTextColor,
6632
+ [vars$i.inputBorderRadius]: refs.borderRadius,
6260
6633
  [vars$i.inputBorderWidth]: refs.borderWidth,
6261
6634
  [vars$i.inputBorderStyle]: refs.borderStyle,
6262
6635
  [vars$i.inputBorderColor]: refs.borderColor,
6263
- [vars$i.inputBorderRadius]: refs.borderRadius,
6264
6636
  [vars$i.inputOutlineWidth]: refs.outlineWidth,
6265
6637
  [vars$i.inputOutlineStyle]: refs.outlineStyle,
6266
6638
  [vars$i.inputOutlineColor]: refs.outlineColor,
6267
6639
  [vars$i.inputOutlineOffset]: refs.outlineOffset,
6268
- [vars$i.inputBackgroundColor]: refs.backgroundColor,
6269
- [vars$i.inputHorizontalPadding]: refs.horizontalPadding,
6270
- [vars$i.inputHeight]: refs.inputHeight,
6640
+ [vars$i.inputResizeType]: 'vertical',
6641
+ [vars$i.inputMinHeight]: '5em',
6642
+
6643
+ _disabled: {
6644
+ [vars$i.inputBackgroundColor]: globalRefs$8.colors.surface.light,
6645
+ },
6646
+
6647
+ _readonly: {
6648
+ [vars$i.inputResizeType]: 'none',
6649
+ },
6271
6650
  };
6272
6651
 
6273
- var emailField$1 = /*#__PURE__*/Object.freeze({
6652
+ var textArea$1 = /*#__PURE__*/Object.freeze({
6274
6653
  __proto__: null,
6275
- default: emailField,
6654
+ default: textArea,
6276
6655
  vars: vars$i
6277
6656
  });
6278
6657
 
6279
- const globalRefs$8 = getThemeRefs(globals);
6280
- const vars$h = TextAreaClass.cssVarList;
6658
+ const vars$h = CheckboxClass.cssVarList;
6281
6659
 
6282
- const textArea = {
6660
+ const checkbox = {
6283
6661
  [vars$h.hostWidth]: refs.width,
6284
- [vars$h.hostMinWidth]: refs.minWidth,
6285
- [vars$h.fontSize]: globalRefs$8.typography.body2.size,
6662
+ [vars$h.fontSize]: refs.fontSize,
6286
6663
  [vars$h.fontFamily]: refs.fontFamily,
6287
6664
  [vars$h.labelTextColor]: refs.labelTextColor,
6288
6665
  [vars$h.labelRequiredIndicator]: refs.requiredIndicator,
6666
+ [vars$h.labelFontWeight]: '400',
6667
+ [vars$h.labelSpacing]: '0.75em',
6289
6668
  [vars$h.errorMessageTextColor]: refs.errorMessageTextColor,
6290
- [vars$h.inputBackgroundColor]: refs.backgroundColor,
6291
- [vars$h.inputValueTextColor]: refs.valueTextColor,
6292
- [vars$h.inputPlaceholderTextColor]: refs.placeholderTextColor,
6669
+ [vars$h.inputOutlineWidth]: refs.outlineWidth,
6670
+ [vars$h.inputOutlineOffset]: refs.outlineOffset,
6671
+ [vars$h.inputOutlineColor]: refs.outlineColor,
6672
+ [vars$h.inputOutlineStyle]: refs.outlineStyle,
6293
6673
  [vars$h.inputBorderRadius]: refs.borderRadius,
6674
+ [vars$h.inputBorderColor]: refs.borderColor,
6294
6675
  [vars$h.inputBorderWidth]: refs.borderWidth,
6295
6676
  [vars$h.inputBorderStyle]: refs.borderStyle,
6296
- [vars$h.inputBorderColor]: refs.borderColor,
6297
- [vars$h.inputOutlineWidth]: refs.outlineWidth,
6298
- [vars$h.inputOutlineStyle]: refs.outlineStyle,
6299
- [vars$h.inputOutlineColor]: refs.outlineColor,
6300
- [vars$h.inputOutlineOffset]: refs.outlineOffset,
6301
- [vars$h.inputResizeType]: 'vertical',
6302
- [vars$h.inputMinHeight]: '5em',
6677
+ [vars$h.inputBackgroundColor]: refs.inputBackgroundColor,
6678
+ [vars$h.inputSize]: '2em',
6303
6679
 
6304
- _disabled: {
6305
- [vars$h.inputBackgroundColor]: globalRefs$8.colors.surface.light,
6680
+ _checked: {
6681
+ [vars$h.inputBackgroundColor]: refs.backgroundColor,
6682
+ [vars$h.inputValueTextColor]: refs.valueTextColor,
6306
6683
  },
6307
6684
 
6308
- _readonly: {
6309
- [vars$h.inputResizeType]: 'none',
6685
+ _disabled: {
6686
+ [vars$h.labelTextColor]: refs.labelTextColor,
6310
6687
  },
6311
6688
  };
6312
6689
 
6313
- var textArea$1 = /*#__PURE__*/Object.freeze({
6690
+ var checkbox$1 = /*#__PURE__*/Object.freeze({
6314
6691
  __proto__: null,
6315
- default: textArea,
6692
+ default: checkbox,
6316
6693
  vars: vars$h
6317
6694
  });
6318
6695
 
6319
- const vars$g = CheckboxClass.cssVarList;
6696
+ const knobMargin = '2px';
6697
+ const checkboxHeight = '1.25em';
6320
6698
 
6321
- const checkbox = {
6322
- [vars$g.hostWidth]: refs.width,
6699
+ const globalRefs$7 = getThemeRefs(globals);
6700
+ const vars$g = SwitchToggleClass.cssVarList;
6701
+
6702
+ const switchToggle = {
6323
6703
  [vars$g.fontSize]: refs.fontSize,
6324
6704
  [vars$g.fontFamily]: refs.fontFamily,
6325
- [vars$g.labelTextColor]: refs.labelTextColor,
6326
- [vars$g.labelRequiredIndicator]: refs.requiredIndicator,
6327
- [vars$g.labelFontWeight]: '400',
6328
- [vars$g.labelSpacing]: '0.75em',
6329
- [vars$g.errorMessageTextColor]: refs.errorMessageTextColor,
6705
+
6330
6706
  [vars$g.inputOutlineWidth]: refs.outlineWidth,
6331
6707
  [vars$g.inputOutlineOffset]: refs.outlineOffset,
6332
6708
  [vars$g.inputOutlineColor]: refs.outlineColor,
6333
6709
  [vars$g.inputOutlineStyle]: refs.outlineStyle,
6334
- [vars$g.inputBorderRadius]: refs.borderRadius,
6335
- [vars$g.inputBorderColor]: refs.borderColor,
6336
- [vars$g.inputBorderWidth]: refs.borderWidth,
6337
- [vars$g.inputBorderStyle]: refs.borderStyle,
6338
- [vars$g.inputBackgroundColor]: refs.inputBackgroundColor,
6339
- [vars$g.inputSize]: '2em',
6340
-
6341
- _checked: {
6342
- [vars$g.inputBackgroundColor]: refs.backgroundColor,
6343
- [vars$g.inputValueTextColor]: refs.valueTextColor,
6344
- },
6345
-
6346
- _disabled: {
6347
- [vars$g.labelTextColor]: refs.labelTextColor,
6348
- },
6349
- };
6350
6710
 
6351
- var checkbox$1 = /*#__PURE__*/Object.freeze({
6352
- __proto__: null,
6353
- default: checkbox,
6354
- vars: vars$g
6355
- });
6356
-
6357
- const knobMargin = '2px';
6358
- const checkboxHeight = '1.25em';
6711
+ [vars$g.trackBorderStyle]: refs.borderStyle,
6712
+ [vars$g.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
6713
+ [vars$g.trackBorderColor]: refs.borderColor,
6714
+ [vars$g.trackBackgroundColor]: 'none',
6715
+ [vars$g.trackBorderRadius]: globalRefs$7.radius.md,
6716
+ [vars$g.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
6717
+ [vars$g.trackHeight]: checkboxHeight,
6718
+
6719
+ [vars$g.knobSize]: `calc(1em - ${knobMargin})`,
6720
+ [vars$g.knobRadius]: '50%',
6721
+ [vars$g.knobTopOffset]: '1px',
6722
+ [vars$g.knobLeftOffset]: knobMargin,
6723
+ [vars$g.knobColor]: refs.valueTextColor,
6724
+ [vars$g.knobTransitionDuration]: '0.3s',
6359
6725
 
6360
- const globalRefs$7 = getThemeRefs(globals);
6361
- const vars$f = SwitchToggleClass.cssVarList;
6726
+ [vars$g.labelTextColor]: refs.labelTextColor,
6727
+ [vars$g.labelFontWeight]: '400',
6728
+ [vars$g.labelLineHeight]: `calc(${checkboxHeight} + 0.25em)`,
6729
+ [vars$g.labelSpacing]: '0.25em',
6730
+ [vars$g.labelRequiredIndicator]: refs.requiredIndicator,
6731
+ [vars$g.errorMessageTextColor]: refs.errorMessageTextColor,
6362
6732
 
6363
- const switchToggle = {
6364
- [vars$f.fontSize]: refs.fontSize,
6365
- [vars$f.fontFamily]: refs.fontFamily,
6366
-
6367
- [vars$f.inputOutlineWidth]: refs.outlineWidth,
6368
- [vars$f.inputOutlineOffset]: refs.outlineOffset,
6369
- [vars$f.inputOutlineColor]: refs.outlineColor,
6370
- [vars$f.inputOutlineStyle]: refs.outlineStyle,
6371
-
6372
- [vars$f.trackBorderStyle]: refs.borderStyle,
6373
- [vars$f.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
6374
- [vars$f.trackBorderColor]: refs.borderColor,
6375
- [vars$f.trackBackgroundColor]: 'none',
6376
- [vars$f.trackBorderRadius]: globalRefs$7.radius.md,
6377
- [vars$f.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
6378
- [vars$f.trackHeight]: checkboxHeight,
6379
-
6380
- [vars$f.knobSize]: `calc(1em - ${knobMargin})`,
6381
- [vars$f.knobRadius]: '50%',
6382
- [vars$f.knobTopOffset]: '1px',
6383
- [vars$f.knobLeftOffset]: knobMargin,
6384
- [vars$f.knobColor]: refs.valueTextColor,
6385
- [vars$f.knobTransitionDuration]: '0.3s',
6386
-
6387
- [vars$f.labelTextColor]: refs.labelTextColor,
6388
- [vars$f.labelFontWeight]: '400',
6389
- [vars$f.labelLineHeight]: `calc(${checkboxHeight} + 0.25em)`,
6390
- [vars$f.labelSpacing]: '0.25em',
6391
- [vars$f.labelRequiredIndicator]: refs.requiredIndicator,
6392
- [vars$f.errorMessageTextColor]: refs.errorMessageTextColor,
6393
-
6394
- [vars$f.hostWidth]: refs.width,
6733
+ [vars$g.hostWidth]: refs.width,
6395
6734
 
6396
6735
  _checked: {
6397
- [vars$f.trackBorderColor]: refs.borderColor,
6398
- [vars$f.trackBackgroundColor]: refs.backgroundColor,
6399
- [vars$f.knobLeftOffset]: `calc(100% - var(${vars$f.knobSize}) - ${knobMargin})`,
6400
- [vars$f.knobColor]: refs.valueTextColor,
6401
- [vars$f.knobTextColor]: refs.valueTextColor,
6736
+ [vars$g.trackBorderColor]: refs.borderColor,
6737
+ [vars$g.trackBackgroundColor]: refs.backgroundColor,
6738
+ [vars$g.knobLeftOffset]: `calc(100% - var(${vars$g.knobSize}) - ${knobMargin})`,
6739
+ [vars$g.knobColor]: refs.valueTextColor,
6740
+ [vars$g.knobTextColor]: refs.valueTextColor,
6402
6741
  },
6403
6742
 
6404
6743
  _disabled: {
6405
- [vars$f.knobColor]: globalRefs$7.colors.surface.light,
6406
- [vars$f.trackBorderColor]: globalRefs$7.colors.surface.main,
6407
- [vars$f.trackBackgroundColor]: globalRefs$7.colors.surface.main,
6408
- [vars$f.labelTextColor]: refs.labelTextColor,
6744
+ [vars$g.knobColor]: globalRefs$7.colors.surface.light,
6745
+ [vars$g.trackBorderColor]: globalRefs$7.colors.surface.main,
6746
+ [vars$g.trackBackgroundColor]: globalRefs$7.colors.surface.main,
6747
+ [vars$g.labelTextColor]: refs.labelTextColor,
6409
6748
  _checked: {
6410
- [vars$f.knobColor]: globalRefs$7.colors.surface.light,
6411
- [vars$f.trackBackgroundColor]: globalRefs$7.colors.surface.main,
6749
+ [vars$g.knobColor]: globalRefs$7.colors.surface.light,
6750
+ [vars$g.trackBackgroundColor]: globalRefs$7.colors.surface.main,
6412
6751
  },
6413
6752
  },
6414
6753
 
6415
6754
  _invalid: {
6416
- [vars$f.trackBorderColor]: globalRefs$7.colors.error.main,
6417
- [vars$f.knobColor]: globalRefs$7.colors.error.main,
6755
+ [vars$g.trackBorderColor]: globalRefs$7.colors.error.main,
6756
+ [vars$g.knobColor]: globalRefs$7.colors.error.main,
6418
6757
  },
6419
6758
  };
6420
6759
 
6421
6760
  var switchToggle$1 = /*#__PURE__*/Object.freeze({
6422
6761
  __proto__: null,
6423
6762
  default: switchToggle,
6424
- vars: vars$f
6763
+ vars: vars$g
6425
6764
  });
6426
6765
 
6427
6766
  const globalRefs$6 = getThemeRefs(globals);
@@ -6446,7 +6785,7 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
6446
6785
  horizontalAlignment,
6447
6786
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
6448
6787
  },
6449
- componentName$l
6788
+ componentName$n
6450
6789
  );
6451
6790
 
6452
6791
  const { shadowColor } = helperRefs$2;
@@ -6530,7 +6869,7 @@ const container = {
6530
6869
  },
6531
6870
  };
6532
6871
 
6533
- const vars$e = {
6872
+ const vars$f = {
6534
6873
  ...compVars$2,
6535
6874
  ...helperVars$2,
6536
6875
  };
@@ -6538,152 +6877,152 @@ const vars$e = {
6538
6877
  var container$1 = /*#__PURE__*/Object.freeze({
6539
6878
  __proto__: null,
6540
6879
  default: container,
6541
- vars: vars$e
6880
+ vars: vars$f
6542
6881
  });
6543
6882
 
6544
- const vars$d = LogoClass.cssVarList;
6883
+ const vars$e = LogoClass.cssVarList;
6545
6884
 
6546
6885
  const logo$1 = {
6547
- [vars$d.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
6886
+ [vars$e.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
6548
6887
  };
6549
6888
 
6550
6889
  var logo$2 = /*#__PURE__*/Object.freeze({
6551
6890
  __proto__: null,
6552
6891
  default: logo$1,
6553
- vars: vars$d
6892
+ vars: vars$e
6554
6893
  });
6555
6894
 
6556
- const vars$c = TotpImageClass.cssVarList;
6895
+ const vars$d = TotpImageClass.cssVarList;
6557
6896
 
6558
6897
  const logo = {
6559
- [vars$c.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
6898
+ [vars$d.fallbackUrl]: 'url(https://imgs.descope.com/components/totp-placeholder.svg)',
6560
6899
  };
6561
6900
 
6562
6901
  var totpImage = /*#__PURE__*/Object.freeze({
6563
6902
  __proto__: null,
6564
6903
  default: logo,
6565
- vars: vars$c
6904
+ vars: vars$d
6566
6905
  });
6567
6906
 
6568
6907
  const globalRefs$5 = getThemeRefs(globals);
6569
- const vars$b = TextClass.cssVarList;
6908
+ const vars$c = TextClass.cssVarList;
6570
6909
 
6571
6910
  const text = {
6572
- [vars$b.textLineHeight]: '1em',
6573
- [vars$b.textAlign]: 'left',
6574
- [vars$b.textColor]: globalRefs$5.colors.surface.dark,
6911
+ [vars$c.textLineHeight]: '1em',
6912
+ [vars$c.textAlign]: 'left',
6913
+ [vars$c.textColor]: globalRefs$5.colors.surface.dark,
6575
6914
  variant: {
6576
6915
  h1: {
6577
- [vars$b.fontSize]: globalRefs$5.typography.h1.size,
6578
- [vars$b.fontWeight]: globalRefs$5.typography.h1.weight,
6579
- [vars$b.fontFamily]: globalRefs$5.typography.h1.font,
6916
+ [vars$c.fontSize]: globalRefs$5.typography.h1.size,
6917
+ [vars$c.fontWeight]: globalRefs$5.typography.h1.weight,
6918
+ [vars$c.fontFamily]: globalRefs$5.typography.h1.font,
6580
6919
  },
6581
6920
  h2: {
6582
- [vars$b.fontSize]: globalRefs$5.typography.h2.size,
6583
- [vars$b.fontWeight]: globalRefs$5.typography.h2.weight,
6584
- [vars$b.fontFamily]: globalRefs$5.typography.h2.font,
6921
+ [vars$c.fontSize]: globalRefs$5.typography.h2.size,
6922
+ [vars$c.fontWeight]: globalRefs$5.typography.h2.weight,
6923
+ [vars$c.fontFamily]: globalRefs$5.typography.h2.font,
6585
6924
  },
6586
6925
  h3: {
6587
- [vars$b.fontSize]: globalRefs$5.typography.h3.size,
6588
- [vars$b.fontWeight]: globalRefs$5.typography.h3.weight,
6589
- [vars$b.fontFamily]: globalRefs$5.typography.h3.font,
6926
+ [vars$c.fontSize]: globalRefs$5.typography.h3.size,
6927
+ [vars$c.fontWeight]: globalRefs$5.typography.h3.weight,
6928
+ [vars$c.fontFamily]: globalRefs$5.typography.h3.font,
6590
6929
  },
6591
6930
  subtitle1: {
6592
- [vars$b.fontSize]: globalRefs$5.typography.subtitle1.size,
6593
- [vars$b.fontWeight]: globalRefs$5.typography.subtitle1.weight,
6594
- [vars$b.fontFamily]: globalRefs$5.typography.subtitle1.font,
6931
+ [vars$c.fontSize]: globalRefs$5.typography.subtitle1.size,
6932
+ [vars$c.fontWeight]: globalRefs$5.typography.subtitle1.weight,
6933
+ [vars$c.fontFamily]: globalRefs$5.typography.subtitle1.font,
6595
6934
  },
6596
6935
  subtitle2: {
6597
- [vars$b.fontSize]: globalRefs$5.typography.subtitle2.size,
6598
- [vars$b.fontWeight]: globalRefs$5.typography.subtitle2.weight,
6599
- [vars$b.fontFamily]: globalRefs$5.typography.subtitle2.font,
6936
+ [vars$c.fontSize]: globalRefs$5.typography.subtitle2.size,
6937
+ [vars$c.fontWeight]: globalRefs$5.typography.subtitle2.weight,
6938
+ [vars$c.fontFamily]: globalRefs$5.typography.subtitle2.font,
6600
6939
  },
6601
6940
  body1: {
6602
- [vars$b.fontSize]: globalRefs$5.typography.body1.size,
6603
- [vars$b.fontWeight]: globalRefs$5.typography.body1.weight,
6604
- [vars$b.fontFamily]: globalRefs$5.typography.body1.font,
6941
+ [vars$c.fontSize]: globalRefs$5.typography.body1.size,
6942
+ [vars$c.fontWeight]: globalRefs$5.typography.body1.weight,
6943
+ [vars$c.fontFamily]: globalRefs$5.typography.body1.font,
6605
6944
  },
6606
6945
  body2: {
6607
- [vars$b.fontSize]: globalRefs$5.typography.body2.size,
6608
- [vars$b.fontWeight]: globalRefs$5.typography.body2.weight,
6609
- [vars$b.fontFamily]: globalRefs$5.typography.body2.font,
6946
+ [vars$c.fontSize]: globalRefs$5.typography.body2.size,
6947
+ [vars$c.fontWeight]: globalRefs$5.typography.body2.weight,
6948
+ [vars$c.fontFamily]: globalRefs$5.typography.body2.font,
6610
6949
  },
6611
6950
  },
6612
6951
 
6613
6952
  mode: {
6614
6953
  primary: {
6615
- [vars$b.textColor]: globalRefs$5.colors.primary.main,
6954
+ [vars$c.textColor]: globalRefs$5.colors.primary.main,
6616
6955
  },
6617
6956
  secondary: {
6618
- [vars$b.textColor]: globalRefs$5.colors.secondary.main,
6957
+ [vars$c.textColor]: globalRefs$5.colors.secondary.main,
6619
6958
  },
6620
6959
  error: {
6621
- [vars$b.textColor]: globalRefs$5.colors.error.main,
6960
+ [vars$c.textColor]: globalRefs$5.colors.error.main,
6622
6961
  },
6623
6962
  success: {
6624
- [vars$b.textColor]: globalRefs$5.colors.success.main,
6963
+ [vars$c.textColor]: globalRefs$5.colors.success.main,
6625
6964
  },
6626
6965
  },
6627
6966
 
6628
6967
  textAlign: {
6629
- right: { [vars$b.textAlign]: 'right' },
6630
- left: { [vars$b.textAlign]: 'left' },
6631
- center: { [vars$b.textAlign]: 'center' },
6968
+ right: { [vars$c.textAlign]: 'right' },
6969
+ left: { [vars$c.textAlign]: 'left' },
6970
+ center: { [vars$c.textAlign]: 'center' },
6632
6971
  },
6633
6972
 
6634
6973
  _fullWidth: {
6635
- [vars$b.hostWidth]: '100%',
6974
+ [vars$c.hostWidth]: '100%',
6636
6975
  },
6637
6976
 
6638
6977
  _italic: {
6639
- [vars$b.fontStyle]: 'italic',
6978
+ [vars$c.fontStyle]: 'italic',
6640
6979
  },
6641
6980
 
6642
6981
  _uppercase: {
6643
- [vars$b.textTransform]: 'uppercase',
6982
+ [vars$c.textTransform]: 'uppercase',
6644
6983
  },
6645
6984
 
6646
6985
  _lowercase: {
6647
- [vars$b.textTransform]: 'lowercase',
6986
+ [vars$c.textTransform]: 'lowercase',
6648
6987
  },
6649
6988
  };
6650
6989
 
6651
6990
  var text$1 = /*#__PURE__*/Object.freeze({
6652
6991
  __proto__: null,
6653
6992
  default: text,
6654
- vars: vars$b
6993
+ vars: vars$c
6655
6994
  });
6656
6995
 
6657
6996
  const globalRefs$4 = getThemeRefs(globals);
6658
- const vars$a = LinkClass.cssVarList;
6997
+ const vars$b = LinkClass.cssVarList;
6659
6998
 
6660
6999
  const link = {
6661
- [vars$a.cursor]: 'pointer',
7000
+ [vars$b.cursor]: 'pointer',
6662
7001
 
6663
- [vars$a.textColor]: globalRefs$4.colors.primary.main,
7002
+ [vars$b.textColor]: globalRefs$4.colors.primary.main,
6664
7003
 
6665
7004
  textAlign: {
6666
- right: { [vars$a.textAlign]: 'right' },
6667
- left: { [vars$a.textAlign]: 'left' },
6668
- center: { [vars$a.textAlign]: 'center' },
7005
+ right: { [vars$b.textAlign]: 'right' },
7006
+ left: { [vars$b.textAlign]: 'left' },
7007
+ center: { [vars$b.textAlign]: 'center' },
6669
7008
  },
6670
7009
 
6671
7010
  _fullWidth: {
6672
- [vars$a.hostWidth]: '100%',
7011
+ [vars$b.hostWidth]: '100%',
6673
7012
  },
6674
7013
 
6675
7014
  mode: {
6676
7015
  primary: {
6677
- [vars$a.textColor]: globalRefs$4.colors.primary.main,
7016
+ [vars$b.textColor]: globalRefs$4.colors.primary.main,
6678
7017
  },
6679
7018
  secondary: {
6680
- [vars$a.textColor]: globalRefs$4.colors.secondary.main,
7019
+ [vars$b.textColor]: globalRefs$4.colors.secondary.main,
6681
7020
  },
6682
7021
  error: {
6683
- [vars$a.textColor]: globalRefs$4.colors.error.main,
7022
+ [vars$b.textColor]: globalRefs$4.colors.error.main,
6684
7023
  },
6685
7024
  success: {
6686
- [vars$a.textColor]: globalRefs$4.colors.success.main,
7025
+ [vars$b.textColor]: globalRefs$4.colors.success.main,
6687
7026
  },
6688
7027
  },
6689
7028
  };
@@ -6691,7 +7030,7 @@ const link = {
6691
7030
  var link$1 = /*#__PURE__*/Object.freeze({
6692
7031
  __proto__: null,
6693
7032
  default: link,
6694
- vars: vars$a
7033
+ vars: vars$b
6695
7034
  });
6696
7035
 
6697
7036
  const globalRefs$3 = getThemeRefs(globals);
@@ -6702,7 +7041,7 @@ const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
6702
7041
  thickness: '2px',
6703
7042
  spacing: '10px',
6704
7043
  },
6705
- componentName$k
7044
+ componentName$m
6706
7045
  );
6707
7046
 
6708
7047
  const divider = {
@@ -6731,7 +7070,7 @@ const divider = {
6731
7070
  },
6732
7071
  };
6733
7072
 
6734
- const vars$9 = {
7073
+ const vars$a = {
6735
7074
  ...compVars$1,
6736
7075
  ...helperVars$1,
6737
7076
  };
@@ -6739,81 +7078,81 @@ const vars$9 = {
6739
7078
  var divider$1 = /*#__PURE__*/Object.freeze({
6740
7079
  __proto__: null,
6741
7080
  default: divider,
6742
- vars: vars$9
7081
+ vars: vars$a
6743
7082
  });
6744
7083
 
6745
- const vars$8 = PasscodeClass.cssVarList;
7084
+ const vars$9 = PasscodeClass.cssVarList;
6746
7085
 
6747
7086
  const passcode = {
6748
- [vars$8.fontFamily]: refs.fontFamily,
6749
- [vars$8.fontSize]: refs.fontSize,
6750
- [vars$8.labelTextColor]: refs.labelTextColor,
6751
- [vars$8.labelRequiredIndicator]: refs.requiredIndicator,
6752
- [vars$8.errorMessageTextColor]: refs.errorMessageTextColor,
6753
- [vars$8.digitValueTextColor]: refs.valueTextColor,
6754
- [vars$8.digitPadding]: '0',
6755
- [vars$8.digitTextAlign]: 'center',
6756
- [vars$8.digitSpacing]: '4px',
6757
- [vars$8.hostWidth]: refs.width,
6758
- [vars$8.digitOutlineColor]: 'transparent',
6759
- [vars$8.digitOutlineWidth]: refs.outlineWidth,
6760
- [vars$8.focusedDigitFieldOutlineColor]: refs.outlineColor,
6761
- [vars$8.digitSize]: refs.inputHeight,
7087
+ [vars$9.fontFamily]: refs.fontFamily,
7088
+ [vars$9.fontSize]: refs.fontSize,
7089
+ [vars$9.labelTextColor]: refs.labelTextColor,
7090
+ [vars$9.labelRequiredIndicator]: refs.requiredIndicator,
7091
+ [vars$9.errorMessageTextColor]: refs.errorMessageTextColor,
7092
+ [vars$9.digitValueTextColor]: refs.valueTextColor,
7093
+ [vars$9.digitPadding]: '0',
7094
+ [vars$9.digitTextAlign]: 'center',
7095
+ [vars$9.digitSpacing]: '4px',
7096
+ [vars$9.hostWidth]: refs.width,
7097
+ [vars$9.digitOutlineColor]: 'transparent',
7098
+ [vars$9.digitOutlineWidth]: refs.outlineWidth,
7099
+ [vars$9.focusedDigitFieldOutlineColor]: refs.outlineColor,
7100
+ [vars$9.digitSize]: refs.inputHeight,
6762
7101
 
6763
7102
  _hideCursor: {
6764
- [vars$8.digitCaretTextColor]: 'transparent',
7103
+ [vars$9.digitCaretTextColor]: 'transparent',
6765
7104
  },
6766
7105
  };
6767
7106
 
6768
7107
  var passcode$1 = /*#__PURE__*/Object.freeze({
6769
7108
  __proto__: null,
6770
7109
  default: passcode,
6771
- vars: vars$8
7110
+ vars: vars$9
6772
7111
  });
6773
7112
 
6774
7113
  const globalRefs$2 = getThemeRefs(globals);
6775
- const vars$7 = LoaderLinearClass.cssVarList;
7114
+ const vars$8 = LoaderLinearClass.cssVarList;
6776
7115
 
6777
7116
  const loaderLinear = {
6778
- [vars$7.hostDisplay]: 'inline-block',
6779
- [vars$7.hostWidth]: '100%',
7117
+ [vars$8.hostDisplay]: 'inline-block',
7118
+ [vars$8.hostWidth]: '100%',
6780
7119
 
6781
- [vars$7.barColor]: globalRefs$2.colors.surface.contrast,
6782
- [vars$7.barWidth]: '20%',
7120
+ [vars$8.barColor]: globalRefs$2.colors.surface.contrast,
7121
+ [vars$8.barWidth]: '20%',
6783
7122
 
6784
- [vars$7.barBackgroundColor]: globalRefs$2.colors.surface.main,
6785
- [vars$7.barBorderRadius]: '4px',
7123
+ [vars$8.barBackgroundColor]: globalRefs$2.colors.surface.main,
7124
+ [vars$8.barBorderRadius]: '4px',
6786
7125
 
6787
- [vars$7.animationDuration]: '2s',
6788
- [vars$7.animationTimingFunction]: 'linear',
6789
- [vars$7.animationIterationCount]: 'infinite',
6790
- [vars$7.verticalPadding]: '0.25em',
7126
+ [vars$8.animationDuration]: '2s',
7127
+ [vars$8.animationTimingFunction]: 'linear',
7128
+ [vars$8.animationIterationCount]: 'infinite',
7129
+ [vars$8.verticalPadding]: '0.25em',
6791
7130
 
6792
7131
  size: {
6793
- xs: { [vars$7.barHeight]: '2px' },
6794
- sm: { [vars$7.barHeight]: '4px' },
6795
- md: { [vars$7.barHeight]: '6px' },
6796
- lg: { [vars$7.barHeight]: '8px' },
7132
+ xs: { [vars$8.barHeight]: '2px' },
7133
+ sm: { [vars$8.barHeight]: '4px' },
7134
+ md: { [vars$8.barHeight]: '6px' },
7135
+ lg: { [vars$8.barHeight]: '8px' },
6797
7136
  },
6798
7137
 
6799
7138
  mode: {
6800
7139
  primary: {
6801
- [vars$7.barColor]: globalRefs$2.colors.primary.main,
7140
+ [vars$8.barColor]: globalRefs$2.colors.primary.main,
6802
7141
  },
6803
7142
  secondary: {
6804
- [vars$7.barColor]: globalRefs$2.colors.secondary.main,
7143
+ [vars$8.barColor]: globalRefs$2.colors.secondary.main,
6805
7144
  },
6806
7145
  },
6807
7146
 
6808
7147
  _hidden: {
6809
- [vars$7.hostDisplay]: 'none',
7148
+ [vars$8.hostDisplay]: 'none',
6810
7149
  },
6811
7150
  };
6812
7151
 
6813
7152
  var loaderLinear$1 = /*#__PURE__*/Object.freeze({
6814
7153
  __proto__: null,
6815
7154
  default: loaderLinear,
6816
- vars: vars$7
7155
+ vars: vars$8
6817
7156
  });
6818
7157
 
6819
7158
  const globalRefs$1 = getThemeRefs(globals);
@@ -6831,7 +7170,7 @@ const [helperTheme, helperRefs, helperVars] = createHelperVars(
6831
7170
  },
6832
7171
  },
6833
7172
  },
6834
- componentName$m
7173
+ componentName$o
6835
7174
  );
6836
7175
 
6837
7176
  const loaderRadial = {
@@ -6860,7 +7199,7 @@ const loaderRadial = {
6860
7199
  [compVars.hostDisplay]: 'none',
6861
7200
  },
6862
7201
  };
6863
- const vars$6 = {
7202
+ const vars$7 = {
6864
7203
  ...compVars,
6865
7204
  ...helperVars,
6866
7205
  };
@@ -6868,43 +7207,43 @@ const vars$6 = {
6868
7207
  var loaderRadial$1 = /*#__PURE__*/Object.freeze({
6869
7208
  __proto__: null,
6870
7209
  default: loaderRadial,
6871
- vars: vars$6
7210
+ vars: vars$7
6872
7211
  });
6873
7212
 
6874
7213
  const globalRefs = getThemeRefs(globals);
6875
- const vars$5 = ComboBoxClass.cssVarList;
7214
+ const vars$6 = ComboBoxClass.cssVarList;
6876
7215
 
6877
7216
  const comboBox = {
6878
- [vars$5.hostWidth]: refs.width,
6879
- [vars$5.fontSize]: refs.fontSize,
6880
- [vars$5.fontFamily]: refs.fontFamily,
6881
- [vars$5.labelTextColor]: refs.labelTextColor,
6882
- [vars$5.errorMessageTextColor]: refs.errorMessageTextColor,
6883
- [vars$5.inputBorderColor]: refs.borderColor,
6884
- [vars$5.inputBorderWidth]: refs.borderWidth,
6885
- [vars$5.inputBorderStyle]: refs.borderStyle,
6886
- [vars$5.inputBorderRadius]: refs.borderRadius,
6887
- [vars$5.inputOutlineColor]: refs.outlineColor,
6888
- [vars$5.inputOutlineOffset]: refs.outlineOffset,
6889
- [vars$5.inputOutlineWidth]: refs.outlineWidth,
6890
- [vars$5.inputOutlineStyle]: refs.outlineStyle,
6891
- [vars$5.labelRequiredIndicator]: refs.requiredIndicator,
6892
- [vars$5.inputValueTextColor]: refs.valueTextColor,
6893
- [vars$5.inputPlaceholderTextColor]: refs.placeholderTextColor,
6894
- [vars$5.inputBackgroundColor]: refs.backgroundColor,
6895
- [vars$5.inputHorizontalPadding]: refs.horizontalPadding,
6896
- [vars$5.inputHeight]: refs.inputHeight,
6897
- [vars$5.inputDropdownButtonColor]: globalRefs.colors.surface.contrast,
6898
- [vars$5.inputDropdownButtonCursor]: 'pointer',
6899
- [vars$5.inputDropdownButtonSize]: refs.toggleButtonSize,
6900
- [vars$5.inputDropdownButtonOffset]: globalRefs.spacing.xs,
7217
+ [vars$6.hostWidth]: refs.width,
7218
+ [vars$6.fontSize]: refs.fontSize,
7219
+ [vars$6.fontFamily]: refs.fontFamily,
7220
+ [vars$6.labelTextColor]: refs.labelTextColor,
7221
+ [vars$6.errorMessageTextColor]: refs.errorMessageTextColor,
7222
+ [vars$6.inputBorderColor]: refs.borderColor,
7223
+ [vars$6.inputBorderWidth]: refs.borderWidth,
7224
+ [vars$6.inputBorderStyle]: refs.borderStyle,
7225
+ [vars$6.inputBorderRadius]: refs.borderRadius,
7226
+ [vars$6.inputOutlineColor]: refs.outlineColor,
7227
+ [vars$6.inputOutlineOffset]: refs.outlineOffset,
7228
+ [vars$6.inputOutlineWidth]: refs.outlineWidth,
7229
+ [vars$6.inputOutlineStyle]: refs.outlineStyle,
7230
+ [vars$6.labelRequiredIndicator]: refs.requiredIndicator,
7231
+ [vars$6.inputValueTextColor]: refs.valueTextColor,
7232
+ [vars$6.inputPlaceholderTextColor]: refs.placeholderTextColor,
7233
+ [vars$6.inputBackgroundColor]: refs.backgroundColor,
7234
+ [vars$6.inputHorizontalPadding]: refs.horizontalPadding,
7235
+ [vars$6.inputHeight]: refs.inputHeight,
7236
+ [vars$6.inputDropdownButtonColor]: globalRefs.colors.surface.contrast,
7237
+ [vars$6.inputDropdownButtonCursor]: 'pointer',
7238
+ [vars$6.inputDropdownButtonSize]: refs.toggleButtonSize,
7239
+ [vars$6.inputDropdownButtonOffset]: globalRefs.spacing.xs,
6901
7240
 
6902
7241
  _readonly: {
6903
- [vars$5.inputDropdownButtonCursor]: 'default',
7242
+ [vars$6.inputDropdownButtonCursor]: 'default',
6904
7243
  },
6905
7244
 
6906
- [vars$5.overlay.minHeight]: '400px',
6907
- [vars$5.overlay.margin]: '0 auto',
7245
+ [vars$6.overlay.minHeight]: '400px',
7246
+ [vars$6.overlay.margin]: '0 auto',
6908
7247
 
6909
7248
  // [vars.overlayCursor]: 'pointer',
6910
7249
  // [vars.overlayBackground]: globalRefs.colors.surface.light,
@@ -6915,23 +7254,58 @@ var comboBox$1 = /*#__PURE__*/Object.freeze({
6915
7254
  __proto__: null,
6916
7255
  comboBox: comboBox,
6917
7256
  default: comboBox,
6918
- vars: vars$5
7257
+ vars: vars$6
6919
7258
  });
6920
7259
 
6921
- const vars$4 = ImageClass.cssVarList;
7260
+ const vars$5 = ImageClass.cssVarList;
6922
7261
 
6923
7262
  const image = {};
6924
7263
 
6925
7264
  var image$1 = /*#__PURE__*/Object.freeze({
6926
7265
  __proto__: null,
6927
7266
  default: image,
6928
- vars: vars$4
7267
+ vars: vars$5
6929
7268
  });
6930
7269
 
6931
- const vars$3 = PhoneFieldClass.cssVarList;
7270
+ const vars$4 = PhoneFieldClass.cssVarList;
6932
7271
 
6933
7272
  const phoneField = {
6934
- [vars$3.hostWidth]: refs.width,
7273
+ [vars$4.hostWidth]: refs.width,
7274
+ [vars$4.fontSize]: refs.fontSize,
7275
+ [vars$4.fontFamily]: refs.fontFamily,
7276
+ [vars$4.labelTextColor]: refs.labelTextColor,
7277
+ [vars$4.labelRequiredIndicator]: refs.requiredIndicator,
7278
+ [vars$4.errorMessageTextColor]: refs.errorMessageTextColor,
7279
+ [vars$4.inputValueTextColor]: refs.valueTextColor,
7280
+ [vars$4.inputPlaceholderTextColor]: refs.placeholderTextColor,
7281
+ [vars$4.inputBorderStyle]: refs.borderStyle,
7282
+ [vars$4.inputBorderWidth]: refs.borderWidth,
7283
+ [vars$4.inputBorderColor]: refs.borderColor,
7284
+ [vars$4.inputBorderRadius]: refs.borderRadius,
7285
+ [vars$4.inputOutlineStyle]: refs.outlineStyle,
7286
+ [vars$4.inputOutlineWidth]: refs.outlineWidth,
7287
+ [vars$4.inputOutlineColor]: refs.outlineColor,
7288
+ [vars$4.inputOutlineOffset]: refs.outlineOffset,
7289
+ [vars$4.phoneInputWidth]: refs.minWidth,
7290
+ [vars$4.countryCodeInputWidth]: '5em',
7291
+ [vars$4.countryCodeDropdownWidth]: '20em',
7292
+
7293
+ // '@overlay': {
7294
+ // overlayItemBackgroundColor: 'red'
7295
+ // }
7296
+ };
7297
+
7298
+ var phoneField$1 = /*#__PURE__*/Object.freeze({
7299
+ __proto__: null,
7300
+ default: phoneField,
7301
+ vars: vars$4
7302
+ });
7303
+
7304
+ const vars$3 = PhoneFieldInputBoxClass.cssVarList;
7305
+
7306
+ const phoneInputBoxField = {
7307
+ [vars$3.hostWidth]: '16em',
7308
+ [vars$3.hostMinWidth]: refs.minWidth,
6935
7309
  [vars$3.fontSize]: refs.fontSize,
6936
7310
  [vars$3.fontFamily]: refs.fontFamily,
6937
7311
  [vars$3.labelTextColor]: refs.labelTextColor,
@@ -6947,18 +7321,14 @@ const phoneField = {
6947
7321
  [vars$3.inputOutlineWidth]: refs.outlineWidth,
6948
7322
  [vars$3.inputOutlineColor]: refs.outlineColor,
6949
7323
  [vars$3.inputOutlineOffset]: refs.outlineOffset,
6950
- [vars$3.phoneInputWidth]: refs.minWidth,
6951
- [vars$3.countryCodeInputWidth]: '5em',
6952
- [vars$3.countryCodeDropdownWidth]: '20em',
6953
-
6954
- // '@overlay': {
6955
- // overlayItemBackgroundColor: 'red'
6956
- // }
7324
+ _fullWidth: {
7325
+ [vars$3.hostWidth]: refs.width,
7326
+ },
6957
7327
  };
6958
7328
 
6959
- var phoneField$1 = /*#__PURE__*/Object.freeze({
7329
+ var phoneInputBoxField$1 = /*#__PURE__*/Object.freeze({
6960
7330
  __proto__: null,
6961
- default: phoneField,
7331
+ default: phoneInputBoxField,
6962
7332
  vars: vars$3
6963
7333
  });
6964
7334
 
@@ -7073,6 +7443,7 @@ const components = {
7073
7443
  comboBox: comboBox$1,
7074
7444
  image: image$1,
7075
7445
  phoneField: phoneField$1,
7446
+ phoneInputBoxField: phoneInputBoxField$1,
7076
7447
  newPassword: newPassword$1,
7077
7448
  inputWrapper,
7078
7449
  uploadFile: uploadFile$1,
@@ -7088,7 +7459,7 @@ const vars = Object.keys(components).reduce(
7088
7459
  );
7089
7460
 
7090
7461
  const defaultTheme = { globals, components: theme };
7091
- const themeVars = { globals: vars$o, components: vars };
7462
+ const themeVars = { globals: vars$p, components: vars };
7092
7463
 
7093
- export { ButtonClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, RecaptchaClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
7464
+ export { ButtonClass, CheckboxClass, ContainerClass, DividerClass, EmailFieldClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, NewPasswordClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, RecaptchaClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
7094
7465
  //# sourceMappingURL=index.esm.js.map