@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.
- package/dist/cjs/index.cjs.js +32 -26
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +32 -26
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/481.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-password/PasswordClass.js +4 -0
- package/src/theme/components/password.js +4 -0
package/dist/cjs/index.cjs.js
CHANGED
@@ -1576,15 +1576,15 @@ const loadingIndicatorStyles = `
|
|
1576
1576
|
}
|
1577
1577
|
`;
|
1578
1578
|
|
1579
|
-
const globalRefs$
|
1579
|
+
const globalRefs$c = getThemeRefs(globals);
|
1580
1580
|
const compVars$2 = ButtonClass.cssVarList;
|
1581
1581
|
|
1582
1582
|
const mode = {
|
1583
|
-
primary: globalRefs$
|
1584
|
-
secondary: globalRefs$
|
1585
|
-
success: globalRefs$
|
1586
|
-
error: globalRefs$
|
1587
|
-
surface: globalRefs$
|
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$
|
1598
|
+
[compVars$2.fontFamily]: globalRefs$c.fonts.font1.family,
|
1599
1599
|
|
1600
1600
|
[compVars$2.cursor]: 'pointer',
|
1601
1601
|
|
1602
|
-
[compVars$2.borderRadius]: globalRefs$
|
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$
|
1897
|
+
const globalRefs$b = getThemeRefs(globals);
|
1898
1898
|
|
1899
1899
|
const [theme$1, refs, vars$k] = createHelperVars({
|
1900
|
-
labelTextColor: globalRefs$
|
1901
|
-
valueTextColor: globalRefs$
|
1902
|
-
placeholderTextColor: globalRefs$
|
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$
|
1906
|
-
borderRadius: globalRefs$
|
1905
|
+
borderWidth: globalRefs$b.border.xs,
|
1906
|
+
borderRadius: globalRefs$b.radius.xs,
|
1907
1907
|
borderColor: 'transparent',
|
1908
1908
|
|
1909
|
-
outlineWidth: globalRefs$
|
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$
|
1916
|
+
backgroundColor: globalRefs$b.colors.surface.light,
|
1917
1917
|
|
1918
|
-
fontFamily: globalRefs$
|
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$
|
1933
|
+
outlineColor: globalRefs$b.colors.surface.main,
|
1934
1934
|
_invalid: {
|
1935
|
-
outlineColor: globalRefs$
|
1935
|
+
outlineColor: globalRefs$b.colors.error.main,
|
1936
1936
|
}
|
1937
1937
|
},
|
1938
1938
|
|
1939
1939
|
_bordered: {
|
1940
|
-
outlineWidth: globalRefs$
|
1941
|
-
borderColor: globalRefs$
|
1940
|
+
outlineWidth: globalRefs$b.border.xs,
|
1941
|
+
borderColor: globalRefs$b.colors.surface.main,
|
1942
1942
|
borderStyle: 'solid',
|
1943
1943
|
_invalid: {
|
1944
|
-
borderColor: globalRefs$
|
1944
|
+
borderColor: globalRefs$b.colors.error.main,
|
1945
1945
|
}
|
1946
1946
|
},
|
1947
1947
|
|
1948
1948
|
_disabled: {
|
1949
|
-
labelTextColor: globalRefs$
|
1950
|
-
valueTextColor: globalRefs$
|
1951
|
-
placeholderTextColor: globalRefs$
|
1952
|
-
backgroundColor: globalRefs$
|
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({
|