@lifi/widget 1.13.5 → 1.14.0
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/lifi.js +3 -1
- package/cjs/config/theme.js +4 -3
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/fonts/Inter-Black.woff +0 -0
- package/cjs/fonts/Inter-Black.woff2 +0 -0
- package/cjs/fonts/Inter-BlackItalic.woff +0 -0
- package/cjs/fonts/Inter-BlackItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Bold.woff +0 -0
- package/cjs/fonts/Inter-Bold.woff2 +0 -0
- package/cjs/fonts/Inter-BoldItalic.woff +0 -0
- package/cjs/fonts/Inter-BoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraBold.woff +0 -0
- package/cjs/fonts/Inter-ExtraBold.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraBoldItalic.woff +0 -0
- package/cjs/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraLight.woff +0 -0
- package/cjs/fonts/Inter-ExtraLight.woff2 +0 -0
- package/cjs/fonts/Inter-ExtraLightItalic.woff +0 -0
- package/cjs/fonts/Inter-ExtraLightItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Italic.woff +0 -0
- package/cjs/fonts/Inter-Italic.woff2 +0 -0
- package/cjs/fonts/Inter-Light.woff +0 -0
- package/cjs/fonts/Inter-Light.woff2 +0 -0
- package/cjs/fonts/Inter-LightItalic.woff +0 -0
- package/cjs/fonts/Inter-LightItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Medium.woff +0 -0
- package/cjs/fonts/Inter-Medium.woff2 +0 -0
- package/cjs/fonts/Inter-MediumItalic.woff +0 -0
- package/cjs/fonts/Inter-MediumItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Regular.woff +0 -0
- package/cjs/fonts/Inter-Regular.woff2 +0 -0
- package/cjs/fonts/Inter-SemiBold.woff +0 -0
- package/cjs/fonts/Inter-SemiBold.woff2 +0 -0
- package/cjs/fonts/Inter-SemiBoldItalic.woff +0 -0
- package/cjs/fonts/Inter-SemiBoldItalic.woff2 +0 -0
- package/cjs/fonts/Inter-Thin.woff +0 -0
- package/cjs/fonts/Inter-Thin.woff2 +0 -0
- package/cjs/fonts/Inter-ThinItalic.woff +0 -0
- package/cjs/fonts/Inter-ThinItalic.woff2 +0 -0
- package/cjs/fonts/Inter-italic.var.woff2 +0 -0
- package/cjs/fonts/Inter-roman.var.woff2 +0 -0
- package/cjs/fonts/Inter.var.woff2 +0 -0
- package/cjs/fonts/inter.css +200 -0
- package/cjs/i18n/en/translation.json +167 -167
- package/cjs/providers/WalletProvider/WalletProvider.js +2 -2
- package/cjs/providers/WidgetProvider/WidgetProvider.js +4 -0
- package/cjs/stores/route/useRouteStore.js +36 -0
- package/cjs/utils/colors.d.ts +1 -1
- package/cjs/utils/colors.js +4 -4
- package/config/lifi.js +3 -1
- package/config/theme.js +4 -3
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/package.json +6 -6
- package/providers/WalletProvider/WalletProvider.js +2 -2
- package/providers/WidgetProvider/WidgetProvider.js +5 -1
- package/stores/route/useRouteStore.js +36 -0
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/utils/colors.d.ts +1 -1
- package/utils/colors.js +4 -4
package/cjs/config/lifi.js
CHANGED
|
@@ -5,7 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.updateLiFiConfig = exports.LiFi = void 0;
|
|
7
7
|
const sdk_1 = __importDefault(require("@lifi/sdk"));
|
|
8
|
-
exports.LiFi = new sdk_1.default(
|
|
8
|
+
exports.LiFi = new sdk_1.default({
|
|
9
|
+
disableVersionCheck: true,
|
|
10
|
+
});
|
|
9
11
|
const updateLiFiConfig = (configUpdate) => {
|
|
10
12
|
exports.LiFi.setConfig(configUpdate);
|
|
11
13
|
};
|
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.
|
|
2
|
+
export declare const version = "1.14.0";
|
package/cjs/config/version.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'Inter';
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-weight: 100;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
src: url("Inter-Thin.woff2?v=3.19") format("woff2"),
|
|
7
|
+
url("Inter-Thin.woff?v=3.19") format("woff");
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Inter';
|
|
11
|
+
font-style: italic;
|
|
12
|
+
font-weight: 100;
|
|
13
|
+
font-display: swap;
|
|
14
|
+
src: url("Inter-ThinItalic.woff2?v=3.19") format("woff2"),
|
|
15
|
+
url("Inter-ThinItalic.woff?v=3.19") format("woff");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@font-face {
|
|
19
|
+
font-family: 'Inter';
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: 200;
|
|
22
|
+
font-display: swap;
|
|
23
|
+
src: url("Inter-ExtraLight.woff2?v=3.19") format("woff2"),
|
|
24
|
+
url("Inter-ExtraLight.woff?v=3.19") format("woff");
|
|
25
|
+
}
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Inter';
|
|
28
|
+
font-style: italic;
|
|
29
|
+
font-weight: 200;
|
|
30
|
+
font-display: swap;
|
|
31
|
+
src: url("Inter-ExtraLightItalic.woff2?v=3.19") format("woff2"),
|
|
32
|
+
url("Inter-ExtraLightItalic.woff?v=3.19") format("woff");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@font-face {
|
|
36
|
+
font-family: 'Inter';
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 300;
|
|
39
|
+
font-display: swap;
|
|
40
|
+
src: url("Inter-Light.woff2?v=3.19") format("woff2"),
|
|
41
|
+
url("Inter-Light.woff?v=3.19") format("woff");
|
|
42
|
+
}
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: 'Inter';
|
|
45
|
+
font-style: italic;
|
|
46
|
+
font-weight: 300;
|
|
47
|
+
font-display: swap;
|
|
48
|
+
src: url("Inter-LightItalic.woff2?v=3.19") format("woff2"),
|
|
49
|
+
url("Inter-LightItalic.woff?v=3.19") format("woff");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: 'Inter';
|
|
54
|
+
font-style: normal;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
font-display: swap;
|
|
57
|
+
src: url("Inter-Regular.woff2?v=3.19") format("woff2"),
|
|
58
|
+
url("Inter-Regular.woff?v=3.19") format("woff");
|
|
59
|
+
}
|
|
60
|
+
@font-face {
|
|
61
|
+
font-family: 'Inter';
|
|
62
|
+
font-style: italic;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
font-display: swap;
|
|
65
|
+
src: url("Inter-Italic.woff2?v=3.19") format("woff2"),
|
|
66
|
+
url("Inter-Italic.woff?v=3.19") format("woff");
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@font-face {
|
|
70
|
+
font-family: 'Inter';
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
font-display: swap;
|
|
74
|
+
src: url("Inter-Medium.woff2?v=3.19") format("woff2"),
|
|
75
|
+
url("Inter-Medium.woff?v=3.19") format("woff");
|
|
76
|
+
}
|
|
77
|
+
@font-face {
|
|
78
|
+
font-family: 'Inter';
|
|
79
|
+
font-style: italic;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
font-display: swap;
|
|
82
|
+
src: url("Inter-MediumItalic.woff2?v=3.19") format("woff2"),
|
|
83
|
+
url("Inter-MediumItalic.woff?v=3.19") format("woff");
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@font-face {
|
|
87
|
+
font-family: 'Inter';
|
|
88
|
+
font-style: normal;
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
font-display: swap;
|
|
91
|
+
src: url("Inter-SemiBold.woff2?v=3.19") format("woff2"),
|
|
92
|
+
url("Inter-SemiBold.woff?v=3.19") format("woff");
|
|
93
|
+
}
|
|
94
|
+
@font-face {
|
|
95
|
+
font-family: 'Inter';
|
|
96
|
+
font-style: italic;
|
|
97
|
+
font-weight: 600;
|
|
98
|
+
font-display: swap;
|
|
99
|
+
src: url("Inter-SemiBoldItalic.woff2?v=3.19") format("woff2"),
|
|
100
|
+
url("Inter-SemiBoldItalic.woff?v=3.19") format("woff");
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@font-face {
|
|
104
|
+
font-family: 'Inter';
|
|
105
|
+
font-style: normal;
|
|
106
|
+
font-weight: 700;
|
|
107
|
+
font-display: swap;
|
|
108
|
+
src: url("Inter-Bold.woff2?v=3.19") format("woff2"),
|
|
109
|
+
url("Inter-Bold.woff?v=3.19") format("woff");
|
|
110
|
+
}
|
|
111
|
+
@font-face {
|
|
112
|
+
font-family: 'Inter';
|
|
113
|
+
font-style: italic;
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
font-display: swap;
|
|
116
|
+
src: url("Inter-BoldItalic.woff2?v=3.19") format("woff2"),
|
|
117
|
+
url("Inter-BoldItalic.woff?v=3.19") format("woff");
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@font-face {
|
|
121
|
+
font-family: 'Inter';
|
|
122
|
+
font-style: normal;
|
|
123
|
+
font-weight: 800;
|
|
124
|
+
font-display: swap;
|
|
125
|
+
src: url("Inter-ExtraBold.woff2?v=3.19") format("woff2"),
|
|
126
|
+
url("Inter-ExtraBold.woff?v=3.19") format("woff");
|
|
127
|
+
}
|
|
128
|
+
@font-face {
|
|
129
|
+
font-family: 'Inter';
|
|
130
|
+
font-style: italic;
|
|
131
|
+
font-weight: 800;
|
|
132
|
+
font-display: swap;
|
|
133
|
+
src: url("Inter-ExtraBoldItalic.woff2?v=3.19") format("woff2"),
|
|
134
|
+
url("Inter-ExtraBoldItalic.woff?v=3.19") format("woff");
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@font-face {
|
|
138
|
+
font-family: 'Inter';
|
|
139
|
+
font-style: normal;
|
|
140
|
+
font-weight: 900;
|
|
141
|
+
font-display: swap;
|
|
142
|
+
src: url("Inter-Black.woff2?v=3.19") format("woff2"),
|
|
143
|
+
url("Inter-Black.woff?v=3.19") format("woff");
|
|
144
|
+
}
|
|
145
|
+
@font-face {
|
|
146
|
+
font-family: 'Inter';
|
|
147
|
+
font-style: italic;
|
|
148
|
+
font-weight: 900;
|
|
149
|
+
font-display: swap;
|
|
150
|
+
src: url("Inter-BlackItalic.woff2?v=3.19") format("woff2"),
|
|
151
|
+
url("Inter-BlackItalic.woff?v=3.19") format("woff");
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* -------------------------------------------------------
|
|
155
|
+
Variable font.
|
|
156
|
+
Usage:
|
|
157
|
+
|
|
158
|
+
html { font-family: 'Inter', sans-serif; }
|
|
159
|
+
@supports (font-variation-settings: normal) {
|
|
160
|
+
html { font-family: 'Inter var', sans-serif; }
|
|
161
|
+
}
|
|
162
|
+
*/
|
|
163
|
+
@font-face {
|
|
164
|
+
font-family: 'Inter var';
|
|
165
|
+
font-weight: 100 900;
|
|
166
|
+
font-display: swap;
|
|
167
|
+
font-style: normal;
|
|
168
|
+
font-named-instance: 'Regular';
|
|
169
|
+
src: url("Inter-roman.var.woff2?v=3.19") format("woff2");
|
|
170
|
+
}
|
|
171
|
+
@font-face {
|
|
172
|
+
font-family: 'Inter var';
|
|
173
|
+
font-weight: 100 900;
|
|
174
|
+
font-display: swap;
|
|
175
|
+
font-style: italic;
|
|
176
|
+
font-named-instance: 'Italic';
|
|
177
|
+
src: url("Inter-italic.var.woff2?v=3.19") format("woff2");
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
/* --------------------------------------------------------------------------
|
|
182
|
+
[EXPERIMENTAL] Multi-axis, single variable font.
|
|
183
|
+
|
|
184
|
+
Slant axis is not yet widely supported (as of February 2019) and thus this
|
|
185
|
+
multi-axis single variable font is opt-in rather than the default.
|
|
186
|
+
|
|
187
|
+
When using this, you will probably need to set font-variation-settings
|
|
188
|
+
explicitly, e.g.
|
|
189
|
+
|
|
190
|
+
* { font-variation-settings: "slnt" 0deg }
|
|
191
|
+
.italic { font-variation-settings: "slnt" 10deg }
|
|
192
|
+
|
|
193
|
+
*/
|
|
194
|
+
@font-face {
|
|
195
|
+
font-family: 'Inter var experimental';
|
|
196
|
+
font-weight: 100 900;
|
|
197
|
+
font-display: swap;
|
|
198
|
+
font-style: oblique 0deg 10deg;
|
|
199
|
+
src: url("Inter.var.woff2?v=3.19") format("woff2");
|
|
200
|
+
}
|