@lifi/widget 1.11.1 → 1.11.2

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/config/theme.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { dialogActionsClasses } from '@mui/material/DialogActions';
2
- import { alpha, createTheme as createMuiTheme, darken, lighten, } from '@mui/material/styles';
2
+ import { alpha, createTheme as createMuiTheme, darken, getContrastRatio, lighten, } from '@mui/material/styles';
3
+ import { dark, light } from '@mui/material/styles/createPalette';
3
4
  const palette = {
4
5
  primary: {
5
6
  main: '#3F49E1',
@@ -24,8 +25,12 @@ const palette = {
24
25
  main: '#297EFF',
25
26
  },
26
27
  };
28
+ const shape = {
29
+ borderRadius: 12,
30
+ borderRadiusSecondary: 6,
31
+ };
27
32
  export const createTheme = (mode, theme = {}) => {
28
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
33
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
29
34
  return createMuiTheme({
30
35
  typography: Object.assign({ fontFamily: 'Inter var, Inter, sans-serif' }, theme.typography),
31
36
  palette: Object.assign(Object.assign(Object.assign({ mode }, palette), { primary: {
@@ -57,7 +62,7 @@ export const createTheme = (mode, theme = {}) => {
57
62
  paper: '#212121',
58
63
  },
59
64
  })),
60
- shape: Object.assign({ borderRadius: 12, borderRadiusSecondary: 6 }, theme.shape),
65
+ shape: Object.assign(Object.assign({}, shape), theme.shape),
61
66
  breakpoints: {
62
67
  values: {
63
68
  xs: 0,
@@ -96,7 +101,7 @@ export const createTheme = (mode, theme = {}) => {
96
101
  },
97
102
  }
98
103
  : {})), { root: {
99
- borderRadius: (_u = theme.shape) === null || _u === void 0 ? void 0 : _u.borderRadiusSecondary,
104
+ borderRadius: (_v = (_u = theme.shape) === null || _u === void 0 ? void 0 : _u.borderRadiusSecondary) !== null && _v !== void 0 ? _v : shape.borderRadiusSecondary,
100
105
  textTransform: 'none',
101
106
  fontSize: '1rem',
102
107
  padding: '10px 16px',
@@ -110,12 +115,21 @@ export const createTheme = (mode, theme = {}) => {
110
115
  cursor: 'not-allowed',
111
116
  pointerEvents: 'auto',
112
117
  },
118
+ }, contained: {
119
+ '&:hover': {
120
+ color: getContrastRatio(palette.primary.main, dark.text.primary) >= 3
121
+ ? dark.text.primary
122
+ : light.text.primary,
123
+ },
113
124
  } }),
114
125
  },
115
126
  MuiIconButton: {
116
127
  styleOverrides: {
117
128
  root: {
118
129
  color: 'inherit',
130
+ '&:hover': {
131
+ color: 'inherit',
132
+ },
119
133
  },
120
134
  },
121
135
  },
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@lifi/widget";
2
- export declare const version = "1.11.1";
2
+ export declare const version = "1.11.2";
package/config/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget';
2
- export const version = '1.11.1';
2
+ export const version = '1.11.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
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
  "sideEffects": false,
6
6
  "main": "./index.js",