@descope/web-components-ui 1.0.126 → 1.0.128

Sign up to get free protection for your applications and to get access to all the features.
@@ -1210,6 +1210,10 @@ const proxyInputMixin = (superclass) =>
1210
1210
  }, 0);
1211
1211
  }
1212
1212
 
1213
+ get name () {
1214
+ return this.getAttribute('name');
1215
+ }
1216
+
1213
1217
  get inputElement() {
1214
1218
  this.warnIfInputElementIsMissing();
1215
1219
 
@@ -1572,15 +1576,15 @@ const loadingIndicatorStyles = `
1572
1576
  }
1573
1577
  `;
1574
1578
 
1575
- const globalRefs$b = getThemeRefs(globals);
1579
+ const globalRefs$c = getThemeRefs(globals);
1576
1580
  const compVars$2 = ButtonClass.cssVarList;
1577
1581
 
1578
1582
  const mode = {
1579
- primary: globalRefs$b.colors.primary,
1580
- secondary: globalRefs$b.colors.secondary,
1581
- success: globalRefs$b.colors.success,
1582
- error: globalRefs$b.colors.error,
1583
- surface: globalRefs$b.colors.surface
1583
+ primary: globalRefs$c.colors.primary,
1584
+ secondary: globalRefs$c.colors.secondary,
1585
+ success: globalRefs$c.colors.success,
1586
+ error: globalRefs$c.colors.error,
1587
+ surface: globalRefs$c.colors.surface
1584
1588
  };
1585
1589
 
1586
1590
  const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$o);
@@ -1591,11 +1595,11 @@ const horizontalPaddingRatio = 2;
1591
1595
  const button = {
1592
1596
  ...helperTheme$3,
1593
1597
 
1594
- [compVars$2.fontFamily]: globalRefs$b.fonts.font1.family,
1598
+ [compVars$2.fontFamily]: globalRefs$c.fonts.font1.family,
1595
1599
 
1596
1600
  [compVars$2.cursor]: 'pointer',
1597
1601
 
1598
- [compVars$2.borderRadius]: globalRefs$b.radius.sm,
1602
+ [compVars$2.borderRadius]: globalRefs$c.radius.sm,
1599
1603
  [compVars$2.borderWidth]: '2px',
1600
1604
  [compVars$2.borderStyle]: 'solid',
1601
1605
  [compVars$2.borderColor]: 'transparent',
@@ -1890,28 +1894,28 @@ const TextFieldClass = compose(
1890
1894
  );
1891
1895
 
1892
1896
  const componentName$m = getComponentName('input-wrapper');
1893
- const globalRefs$a = getThemeRefs(globals);
1897
+ const globalRefs$b = getThemeRefs(globals);
1894
1898
 
1895
1899
  const [theme$1, refs, vars$k] = createHelperVars({
1896
- labelTextColor: globalRefs$a.colors.surface.contrast,
1897
- valueTextColor: globalRefs$a.colors.surface.contrast,
1898
- placeholderTextColor: globalRefs$a.colors.surface.main,
1900
+ labelTextColor: globalRefs$b.colors.surface.contrast,
1901
+ valueTextColor: globalRefs$b.colors.surface.contrast,
1902
+ placeholderTextColor: globalRefs$b.colors.surface.main,
1899
1903
  requiredIndicator: "'*'",
1900
1904
 
1901
- borderWidth: globalRefs$a.border.xs,
1902
- borderRadius: globalRefs$a.radius.xs,
1905
+ borderWidth: globalRefs$b.border.xs,
1906
+ borderRadius: globalRefs$b.radius.xs,
1903
1907
  borderColor: 'transparent',
1904
1908
 
1905
- outlineWidth: globalRefs$a.border.sm,
1909
+ outlineWidth: globalRefs$b.border.sm,
1906
1910
  outlineStyle: 'solid',
1907
1911
  outlineColor: 'transparent',
1908
1912
  outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
1909
1913
 
1910
1914
  inputHeight: '2em',
1911
1915
 
1912
- backgroundColor: globalRefs$a.colors.surface.light,
1916
+ backgroundColor: globalRefs$b.colors.surface.light,
1913
1917
 
1914
- fontFamily: globalRefs$a.fonts.font1.family,
1918
+ fontFamily: globalRefs$b.fonts.font1.family,
1915
1919
 
1916
1920
  size: {
1917
1921
  xs: { fontSize: '8px' },
@@ -1926,26 +1930,26 @@ const [theme$1, refs, vars$k] = createHelperVars({
1926
1930
  },
1927
1931
 
1928
1932
  _focused: {
1929
- outlineColor: globalRefs$a.colors.surface.main,
1933
+ outlineColor: globalRefs$b.colors.surface.main,
1930
1934
  _invalid: {
1931
- outlineColor: globalRefs$a.colors.error.main,
1935
+ outlineColor: globalRefs$b.colors.error.main,
1932
1936
  }
1933
1937
  },
1934
1938
 
1935
1939
  _bordered: {
1936
- outlineWidth: globalRefs$a.border.xs,
1937
- borderColor: globalRefs$a.colors.surface.main,
1940
+ outlineWidth: globalRefs$b.border.xs,
1941
+ borderColor: globalRefs$b.colors.surface.main,
1938
1942
  borderStyle: 'solid',
1939
1943
  _invalid: {
1940
- borderColor: globalRefs$a.colors.error.main,
1944
+ borderColor: globalRefs$b.colors.error.main,
1941
1945
  }
1942
1946
  },
1943
1947
 
1944
1948
  _disabled: {
1945
- labelTextColor: globalRefs$a.colors.surface.main,
1946
- valueTextColor: globalRefs$a.colors.surface.dark,
1947
- placeholderTextColor: globalRefs$a.colors.surface.dark,
1948
- backgroundColor: globalRefs$a.colors.surface.main
1949
+ labelTextColor: globalRefs$b.colors.surface.main,
1950
+ valueTextColor: globalRefs$b.colors.surface.dark,
1951
+ placeholderTextColor: globalRefs$b.colors.surface.dark,
1952
+ backgroundColor: globalRefs$b.colors.surface.main
1949
1953
  }
1950
1954
  }, componentName$m);
1951
1955
 
@@ -2025,6 +2029,7 @@ const {
2025
2029
  inputField: inputField$3,
2026
2030
  inputElement,
2027
2031
  inputElementPlaceholder,
2032
+ revealButtonContainer,
2028
2033
  revealButtonIcon,
2029
2034
  label: label$7,
2030
2035
  requiredIndicator: requiredIndicator$6,
@@ -2035,6 +2040,7 @@ const {
2035
2040
  inputField: { selector: '::part(input-field)' },
2036
2041
  inputElement: { selector: '> input' },
2037
2042
  inputElementPlaceholder: { selector: '> input:placeholder-shown' },
2043
+ revealButtonContainer: { selector: () => '::part(reveal-button)' },
2038
2044
  revealButtonIcon: { selector: () => '::part(reveal-button)::before' },
2039
2045
  label: { selector: '::part(label)' },
2040
2046
  requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
@@ -2080,6 +2086,8 @@ const PasswordClass = compose(
2080
2086
  { ...revealButtonIcon, property: 'color' }
2081
2087
  ],
2082
2088
  inputPlaceholderTextColor: { ...inputElementPlaceholder, property: 'color' },
2089
+
2090
+ revealButtonOffset: { ...revealButtonContainer, property: 'margin' }
2083
2091
  }
2084
2092
  }),
2085
2093
  draggableMixin,
@@ -2141,6 +2149,7 @@ const PasswordClass = compose(
2141
2149
  })
2142
2150
  );
2143
2151
 
2152
+ const globalRefs$a = getThemeRefs(globals);
2144
2153
  const vars$i = PasswordClass.cssVarList;
2145
2154
 
2146
2155
  const password = {
@@ -2161,6 +2170,7 @@ const password = {
2161
2170
  [vars$i.inputOutlineStyle]: refs.outlineStyle,
2162
2171
  [vars$i.inputOutlineColor]: refs.outlineColor,
2163
2172
  [vars$i.inputOutlineOffset]: refs.outlineOffset,
2173
+ [vars$i.revealButtonOffset]: globalRefs$a.spacing.md
2164
2174
  };
2165
2175
 
2166
2176
  var password$1 = /*#__PURE__*/Object.freeze({