@lifi/widget 1.13.6 → 1.13.7
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/cjs/config/theme.js +4 -3
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/utils/colors.d.ts +1 -1
- package/cjs/utils/colors.js +4 -4
- package/config/theme.js +4 -3
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/package.json +5 -5
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/utils/colors.d.ts +1 -1
- package/utils/colors.js +4 -4
package/cjs/config/theme.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createTheme = void 0;
|
|
4
|
+
const colors_1 = require("@mui/material/colors");
|
|
4
5
|
const DialogActions_1 = require("@mui/material/DialogActions");
|
|
5
6
|
const styles_1 = require("@mui/material/styles");
|
|
6
7
|
const palette = {
|
|
@@ -122,9 +123,9 @@ const createTheme = (mode, theme = {}) => {
|
|
|
122
123
|
},
|
|
123
124
|
}, contained: {
|
|
124
125
|
'&:hover': {
|
|
125
|
-
color: (0, styles_1.getContrastRatio)(
|
|
126
|
-
?
|
|
127
|
-
:
|
|
126
|
+
color: (0, styles_1.getContrastRatio)(colors_1.common.white, primaryMainColor) >= 3
|
|
127
|
+
? colors_1.common.white
|
|
128
|
+
: colors_1.common.black,
|
|
128
129
|
},
|
|
129
130
|
} }),
|
|
130
131
|
},
|
package/cjs/config/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/widget";
|
|
2
|
-
export declare const version = "1.13.
|
|
2
|
+
export declare const version = "1.13.7";
|
package/cjs/config/version.js
CHANGED
package/cjs/utils/colors.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Theme } from '@mui/material';
|
|
2
2
|
export declare const getContrastAlphaColor: (theme: Theme, alpha: string | number) => string;
|
|
3
|
-
export declare const getContrastTextColor: (theme: Theme, background?: string) => "
|
|
3
|
+
export declare const getContrastTextColor: (theme: Theme, background?: string) => "#fff" | "#000";
|
package/cjs/utils/colors.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getContrastTextColor = exports.getContrastAlphaColor = void 0;
|
|
4
|
+
const colors_1 = require("@mui/material/colors");
|
|
4
5
|
const styles_1 = require("@mui/material/styles");
|
|
5
6
|
const getContrastAlphaColor = (theme, alpha) => theme.palette.mode === 'light'
|
|
6
7
|
? `rgb(0 0 0 / ${alpha})`
|
|
7
8
|
: `rgb(255 255 255 / ${alpha})`;
|
|
8
9
|
exports.getContrastAlphaColor = getContrastAlphaColor;
|
|
9
|
-
const getContrastTextColor = (theme, background) => (0, styles_1.getContrastRatio)(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
: 'rgb(255, 255, 255)';
|
|
10
|
+
const getContrastTextColor = (theme, background) => (0, styles_1.getContrastRatio)(colors_1.common.white, background !== null && background !== void 0 ? background : theme.palette.primary.main) >= 3
|
|
11
|
+
? colors_1.common.white
|
|
12
|
+
: colors_1.common.black;
|
|
13
13
|
exports.getContrastTextColor = getContrastTextColor;
|
package/config/theme.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { common } from '@mui/material/colors';
|
|
1
2
|
import { dialogActionsClasses } from '@mui/material/DialogActions';
|
|
2
3
|
import { alpha, createTheme as createMuiTheme, darken, getContrastRatio, lighten, } from '@mui/material/styles';
|
|
3
4
|
const palette = {
|
|
@@ -119,9 +120,9 @@ export const createTheme = (mode, theme = {}) => {
|
|
|
119
120
|
},
|
|
120
121
|
}, contained: {
|
|
121
122
|
'&:hover': {
|
|
122
|
-
color: getContrastRatio(
|
|
123
|
-
?
|
|
124
|
-
:
|
|
123
|
+
color: getContrastRatio(common.white, primaryMainColor) >= 3
|
|
124
|
+
? common.white
|
|
125
|
+
: common.black,
|
|
125
126
|
},
|
|
126
127
|
} }),
|
|
127
128
|
},
|
package/config/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@lifi/widget";
|
|
2
|
-
export declare const version = "1.13.
|
|
2
|
+
export declare const version = "1.13.7";
|
package/config/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@lifi/widget';
|
|
2
|
-
export const version = '1.13.
|
|
2
|
+
export const version = '1.13.7';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.7",
|
|
4
4
|
"description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@emotion/react": "^11.10.0",
|
|
40
40
|
"@emotion/styled": "^11.10.0",
|
|
41
|
-
"@ethersproject/experimental": "^5.
|
|
42
|
-
"@ethersproject/providers": "^5.
|
|
41
|
+
"@ethersproject/experimental": "^5.7.0",
|
|
42
|
+
"@ethersproject/providers": "^5.7.0",
|
|
43
43
|
"@lifi/sdk": "^1.1.6",
|
|
44
|
-
"@lifi/wallet-management": "^1.1.
|
|
44
|
+
"@lifi/wallet-management": "^1.1.7",
|
|
45
45
|
"@mui/icons-material": "^5.8.4",
|
|
46
46
|
"@mui/lab": "^5.0.0-alpha.95",
|
|
47
47
|
"@mui/material": "^5.10.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react-i18next": "^11.18.4",
|
|
60
60
|
"react-router-dom": "^6.3.0",
|
|
61
61
|
"react-timer-hook": "^3.0.5",
|
|
62
|
-
"zustand": "^4.1.
|
|
62
|
+
"zustand": "^4.1.1"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@types/react": "^18.0.0",
|