@descope/web-components-ui 1.0.400 → 1.0.402

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1918,7 +1918,7 @@ const ButtonClass = compose(
1918
1918
 
1919
1919
  labelTextColor: { property: 'color' },
1920
1920
  iconColor: {
1921
- selector: () => `::slotted(${IconClass.componentName})`,
1921
+ selector: () => `::slotted(*)`,
1922
1922
  property: IconClass.cssVarList.fill,
1923
1923
  },
1924
1924
  labelTextDecoration: { ...label$a, property: 'text-decoration' },
@@ -11758,6 +11758,14 @@ const multiSelectComboBoxMixin = (superclass) =>
11758
11758
  setGetValidity() {
11759
11759
  // eslint-disable-next-line func-names
11760
11760
  this.getValidity = function () {
11761
+ if (this.pattern) {
11762
+ const patternRegex = new RegExp(this.pattern);
11763
+ if (this.value.some((val) => !patternRegex.test(val)))
11764
+ return {
11765
+ patternMismatch: true,
11766
+ };
11767
+ }
11768
+
11761
11769
  if (this.isRequired && !this.value.length) {
11762
11770
  return {
11763
11771
  valueMissing: true,
@@ -13651,6 +13659,7 @@ const UserAuthMethodClass = compose(
13651
13659
  { ...methodIconSlot, property: 'width' },
13652
13660
  { ...methodIconSlot, property: 'height' },
13653
13661
  ],
13662
+ iconColor: [{ selector: () => '::slotted(*)', property: IconClass.cssVarList.fill }],
13654
13663
  },
13655
13664
  }),
13656
13665
  draggableMixin,
@@ -17473,6 +17482,7 @@ const userAuthMethod = {
17473
17482
  [vars$g.itemsGap]: '16px',
17474
17483
  [vars$g.hostMinWidth]: '530px',
17475
17484
  [vars$g.iconSize]: '24px',
17485
+ [vars$g.iconColor]: 'currentcolor',
17476
17486
  _fullWidth: {
17477
17487
  [vars$g.hostWidth]: '100%',
17478
17488
  },