sevago-sso-fe 1.0.86 → 1.0.93
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
|
@@ -7086,7 +7086,10 @@ const LinkWrapProductRow = styled$3(LinkElement)(({ theme }) => ({
|
|
|
7086
7086
|
gap: PADDING_GAP_ITEM,
|
|
7087
7087
|
backgroundColor: theme.palette.background.default
|
|
7088
7088
|
}));
|
|
7089
|
-
const lightenColor = (hex, percent) => {
|
|
7089
|
+
const lightenColor = (hex, percent = 0) => {
|
|
7090
|
+
if (!hex || !/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(hex)) {
|
|
7091
|
+
return COLOR_CONSTANT.white;
|
|
7092
|
+
}
|
|
7090
7093
|
let r, g, b;
|
|
7091
7094
|
if (hex.length === 7) {
|
|
7092
7095
|
r = parseInt(hex.slice(1, 3), 16);
|