@descope/web-components-ui 1.0.127 → 1.0.128

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.
@@ -1576,15 +1576,15 @@ const loadingIndicatorStyles = `
1576
1576
  }
1577
1577
  `;
1578
1578
 
1579
- const globalRefs$b = getThemeRefs(globals);
1579
+ const globalRefs$c = getThemeRefs(globals);
1580
1580
  const compVars$2 = ButtonClass.cssVarList;
1581
1581
 
1582
1582
  const mode = {
1583
- primary: globalRefs$b.colors.primary,
1584
- secondary: globalRefs$b.colors.secondary,
1585
- success: globalRefs$b.colors.success,
1586
- error: globalRefs$b.colors.error,
1587
- 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
1588
1588
  };
1589
1589
 
1590
1590
  const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$o);
@@ -1595,11 +1595,11 @@ const horizontalPaddingRatio = 2;
1595
1595
  const button = {
1596
1596
  ...helperTheme$3,
1597
1597
 
1598
- [compVars$2.fontFamily]: globalRefs$b.fonts.font1.family,
1598
+ [compVars$2.fontFamily]: globalRefs$c.fonts.font1.family,
1599
1599
 
1600
1600
  [compVars$2.cursor]: 'pointer',
1601
1601
 
1602
- [compVars$2.borderRadius]: globalRefs$b.radius.sm,
1602
+ [compVars$2.borderRadius]: globalRefs$c.radius.sm,
1603
1603
  [compVars$2.borderWidth]: '2px',
1604
1604
  [compVars$2.borderStyle]: 'solid',
1605
1605
  [compVars$2.borderColor]: 'transparent',
@@ -1894,28 +1894,28 @@ const TextFieldClass = compose(
1894
1894
  );
1895
1895
 
1896
1896
  const componentName$m = getComponentName('input-wrapper');
1897
- const globalRefs$a = getThemeRefs(globals);
1897
+ const globalRefs$b = getThemeRefs(globals);
1898
1898
 
1899
1899
  const [theme$1, refs, vars$k] = createHelperVars({
1900
- labelTextColor: globalRefs$a.colors.surface.contrast,
1901
- valueTextColor: globalRefs$a.colors.surface.contrast,
1902
- 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,
1903
1903
  requiredIndicator: "'*'",
1904
1904
 
1905
- borderWidth: globalRefs$a.border.xs,
1906
- borderRadius: globalRefs$a.radius.xs,
1905
+ borderWidth: globalRefs$b.border.xs,
1906
+ borderRadius: globalRefs$b.radius.xs,
1907
1907
  borderColor: 'transparent',
1908
1908
 
1909
- outlineWidth: globalRefs$a.border.sm,
1909
+ outlineWidth: globalRefs$b.border.sm,
1910
1910
  outlineStyle: 'solid',
1911
1911
  outlineColor: 'transparent',
1912
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
1913
1913
 
1914
1914
  inputHeight: '2em',
1915
1915
 
1916
- backgroundColor: globalRefs$a.colors.surface.light,
1916
+ backgroundColor: globalRefs$b.colors.surface.light,
1917
1917
 
1918
- fontFamily: globalRefs$a.fonts.font1.family,
1918
+ fontFamily: globalRefs$b.fonts.font1.family,
1919
1919
 
1920
1920
  size: {
1921
1921
  xs: { fontSize: '8px' },
@@ -1930,26 +1930,26 @@ const [theme$1, refs, vars$k] = createHelperVars({
1930
1930
  },
1931
1931
 
1932
1932
  _focused: {
1933
- outlineColor: globalRefs$a.colors.surface.main,
1933
+ outlineColor: globalRefs$b.colors.surface.main,
1934
1934
  _invalid: {
1935
- outlineColor: globalRefs$a.colors.error.main,
1935
+ outlineColor: globalRefs$b.colors.error.main,
1936
1936
  }
1937
1937
  },
1938
1938
 
1939
1939
  _bordered: {
1940
- outlineWidth: globalRefs$a.border.xs,
1941
- borderColor: globalRefs$a.colors.surface.main,
1940
+ outlineWidth: globalRefs$b.border.xs,
1941
+ borderColor: globalRefs$b.colors.surface.main,
1942
1942
  borderStyle: 'solid',
1943
1943
  _invalid: {
1944
- borderColor: globalRefs$a.colors.error.main,
1944
+ borderColor: globalRefs$b.colors.error.main,
1945
1945
  }
1946
1946
  },
1947
1947
 
1948
1948
  _disabled: {
1949
- labelTextColor: globalRefs$a.colors.surface.main,
1950
- valueTextColor: globalRefs$a.colors.surface.dark,
1951
- placeholderTextColor: globalRefs$a.colors.surface.dark,
1952
- 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
1953
1953
  }
1954
1954
  }, componentName$m);
1955
1955
 
@@ -2029,6 +2029,7 @@ const {
2029
2029
  inputField: inputField$3,
2030
2030
  inputElement,
2031
2031
  inputElementPlaceholder,
2032
+ revealButtonContainer,
2032
2033
  revealButtonIcon,
2033
2034
  label: label$7,
2034
2035
  requiredIndicator: requiredIndicator$6,
@@ -2039,6 +2040,7 @@ const {
2039
2040
  inputField: { selector: '::part(input-field)' },
2040
2041
  inputElement: { selector: '> input' },
2041
2042
  inputElementPlaceholder: { selector: '> input:placeholder-shown' },
2043
+ revealButtonContainer: { selector: () => '::part(reveal-button)' },
2042
2044
  revealButtonIcon: { selector: () => '::part(reveal-button)::before' },
2043
2045
  label: { selector: '::part(label)' },
2044
2046
  requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
@@ -2084,6 +2086,8 @@ const PasswordClass = compose(
2084
2086
  { ...revealButtonIcon, property: 'color' }
2085
2087
  ],
2086
2088
  inputPlaceholderTextColor: { ...inputElementPlaceholder, property: 'color' },
2089
+
2090
+ revealButtonOffset: { ...revealButtonContainer, property: 'margin' }
2087
2091
  }
2088
2092
  }),
2089
2093
  draggableMixin,
@@ -2145,6 +2149,7 @@ const PasswordClass = compose(
2145
2149
  })
2146
2150
  );
2147
2151
 
2152
+ const globalRefs$a = getThemeRefs(globals);
2148
2153
  const vars$i = PasswordClass.cssVarList;
2149
2154
 
2150
2155
  const password = {
@@ -2165,6 +2170,7 @@ const password = {
2165
2170
  [vars$i.inputOutlineStyle]: refs.outlineStyle,
2166
2171
  [vars$i.inputOutlineColor]: refs.outlineColor,
2167
2172
  [vars$i.inputOutlineOffset]: refs.outlineOffset,
2173
+ [vars$i.revealButtonOffset]: globalRefs$a.spacing.md
2168
2174
  };
2169
2175
 
2170
2176
  var password$1 = /*#__PURE__*/Object.freeze({