@lifi/widget 1.27.1 → 1.28.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.
Files changed (221) hide show
  1. package/AppDrawer.style.d.ts +1 -1
  2. package/AppRoutes.js +15 -33
  3. package/README.md +1 -1
  4. package/cjs/AppDrawer.style.d.ts +1 -1
  5. package/cjs/AppRoutes.js +15 -33
  6. package/cjs/components/ActiveSwaps/ActiveSwaps.style.d.ts +1 -1
  7. package/cjs/components/Card/Card.d.ts +1 -1
  8. package/cjs/components/ChainSelect/ChainSelect.style.d.ts +1 -1
  9. package/cjs/components/ContractComponent/ContractComponent.d.ts +3 -0
  10. package/cjs/components/ContractComponent/ContractComponent.js +14 -0
  11. package/cjs/components/ContractComponent/index.d.ts +1 -0
  12. package/cjs/components/ContractComponent/index.js +17 -0
  13. package/cjs/components/Header/Header.style.d.ts +2 -2
  14. package/cjs/components/Header/NavigationHeader.js +10 -2
  15. package/cjs/components/Header/WalletHeader.js +1 -1
  16. package/cjs/components/NFT/NFT.d.ts +4 -0
  17. package/cjs/components/NFT/NFT.js +41 -0
  18. package/cjs/components/NFT/NFT.style.d.ts +16 -0
  19. package/cjs/components/NFT/NFT.style.js +11 -0
  20. package/cjs/components/NFT/index.d.ts +2 -0
  21. package/cjs/components/NFT/index.js +18 -0
  22. package/cjs/components/NFT/types.d.ts +15 -0
  23. package/cjs/components/NFT/types.js +2 -0
  24. package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
  25. package/cjs/components/Select.d.ts +1 -1
  26. package/cjs/components/SelectChainAndToken.js +12 -2
  27. package/cjs/components/SelectTokenButton/SelectTokenButton.js +5 -2
  28. package/cjs/components/SendToWallet/SendToWallet.style.d.ts +1 -1
  29. package/cjs/components/SmallAvatar.d.ts +1 -1
  30. package/cjs/components/Step/StepProcess.style.d.ts +1 -1
  31. package/cjs/components/StepActions/StepActions.d.ts +6 -7
  32. package/cjs/components/StepActions/StepActions.js +41 -12
  33. package/cjs/components/StepActions/StepActions.style.d.ts +1 -1
  34. package/cjs/components/StepActions/types.d.ts +5 -0
  35. package/cjs/components/SwapInput/SwapInput.d.ts +2 -1
  36. package/cjs/components/SwapInput/SwapInput.js +15 -3
  37. package/cjs/components/SwapInput/SwapInput.style.d.ts +1 -1
  38. package/cjs/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
  39. package/cjs/components/SwapRouteCard/SwapRouteCard.js +3 -1
  40. package/cjs/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
  41. package/cjs/components/Token/Token.d.ts +1 -1
  42. package/cjs/components/Token/Token.js +12 -12
  43. package/cjs/components/TokenAvatar/TokenAvatar.d.ts +5 -3
  44. package/cjs/components/TokenAvatar/TokenAvatar.js +10 -9
  45. package/cjs/components/TokenList/TokenList.style.js +6 -0
  46. package/cjs/components/TokenList/VirtualizedTokenList.js +4 -2
  47. package/cjs/config/theme.js +3 -5
  48. package/cjs/config/version.d.ts +1 -1
  49. package/cjs/config/version.js +1 -1
  50. package/cjs/hooks/useSwapRoutes.d.ts +5 -2
  51. package/cjs/hooks/useSwapRoutes.js +64 -14
  52. package/cjs/hooks/useToken.d.ts +1 -1
  53. package/cjs/hooks/useTokenSearch.d.ts +1 -1
  54. package/cjs/i18n/de.json +214 -214
  55. package/cjs/i18n/en.json +218 -214
  56. package/cjs/i18n/es.json +191 -191
  57. package/cjs/i18n/fr.json +214 -214
  58. package/cjs/i18n/it.json +214 -214
  59. package/cjs/i18n/uk.json +214 -214
  60. package/cjs/i18n/zh.json +214 -214
  61. package/cjs/index.d.ts +2 -0
  62. package/cjs/index.js +4 -1
  63. package/cjs/pages/MainPage/MainPage.js +5 -1
  64. package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
  65. package/cjs/pages/SettingsPage/LanguageSelect.js +1 -2
  66. package/cjs/providers/SwapFormProvider/types.d.ts +10 -0
  67. package/cjs/providers/SwapFormProvider/types.js +5 -0
  68. package/cjs/stores/chains/useChainOrderStore.d.ts +1 -1
  69. package/cjs/stores/routes/useRouteExecutionStore.d.ts +1 -1
  70. package/cjs/stores/settings/useSettingsStore.d.ts +1 -1
  71. package/cjs/types/widget.d.ts +12 -6
  72. package/cjs/types/widget.js +2 -0
  73. package/components/ActiveSwaps/ActiveSwaps.style.d.ts +1 -1
  74. package/components/Card/Card.d.ts +1 -1
  75. package/components/ChainSelect/ChainSelect.style.d.ts +1 -1
  76. package/components/ContractComponent/ContractComponent.d.ts +3 -0
  77. package/components/ContractComponent/ContractComponent.js +10 -0
  78. package/components/ContractComponent/index.d.ts +1 -0
  79. package/components/ContractComponent/index.js +1 -0
  80. package/components/Header/Header.style.d.ts +2 -2
  81. package/components/Header/NavigationHeader.js +12 -4
  82. package/components/Header/WalletHeader.js +1 -1
  83. package/components/NFT/NFT.d.ts +4 -0
  84. package/components/NFT/NFT.js +37 -0
  85. package/components/NFT/NFT.style.d.ts +16 -0
  86. package/components/NFT/NFT.style.js +8 -0
  87. package/components/NFT/index.d.ts +2 -0
  88. package/components/NFT/index.js +2 -0
  89. package/components/NFT/types.d.ts +15 -0
  90. package/components/NFT/types.js +1 -0
  91. package/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
  92. package/components/Select.d.ts +1 -1
  93. package/components/SelectChainAndToken.js +12 -2
  94. package/components/SelectTokenButton/SelectTokenButton.js +5 -2
  95. package/components/SendToWallet/SendToWallet.style.d.ts +1 -1
  96. package/components/SmallAvatar.d.ts +1 -1
  97. package/components/Step/StepProcess.style.d.ts +1 -1
  98. package/components/StepActions/StepActions.d.ts +6 -7
  99. package/components/StepActions/StepActions.js +40 -12
  100. package/components/StepActions/StepActions.style.d.ts +1 -1
  101. package/components/StepActions/types.d.ts +5 -0
  102. package/components/SwapInput/SwapInput.d.ts +2 -1
  103. package/components/SwapInput/SwapInput.js +15 -3
  104. package/components/SwapInput/SwapInput.style.d.ts +1 -1
  105. package/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
  106. package/components/SwapRouteCard/SwapRouteCard.js +3 -1
  107. package/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
  108. package/components/Token/Token.d.ts +1 -1
  109. package/components/Token/Token.js +13 -13
  110. package/components/TokenAvatar/TokenAvatar.d.ts +5 -3
  111. package/components/TokenAvatar/TokenAvatar.js +10 -9
  112. package/components/TokenList/TokenList.style.js +6 -0
  113. package/components/TokenList/VirtualizedTokenList.js +4 -2
  114. package/config/theme.js +3 -5
  115. package/config/version.d.ts +1 -1
  116. package/config/version.js +1 -1
  117. package/hooks/useSwapRoutes.d.ts +5 -2
  118. package/hooks/useSwapRoutes.js +64 -14
  119. package/hooks/useToken.d.ts +1 -1
  120. package/hooks/useTokenSearch.d.ts +1 -1
  121. package/i18n/de.json +214 -214
  122. package/i18n/en.json +218 -214
  123. package/i18n/es.json +191 -191
  124. package/i18n/fr.json +214 -214
  125. package/i18n/it.json +214 -214
  126. package/i18n/uk.json +214 -214
  127. package/i18n/zh.json +214 -214
  128. package/index.d.ts +2 -0
  129. package/index.js +2 -0
  130. package/package.json +15 -13
  131. package/pages/MainPage/MainPage.js +5 -1
  132. package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
  133. package/pages/SettingsPage/LanguageSelect.js +1 -2
  134. package/providers/SwapFormProvider/types.d.ts +10 -0
  135. package/providers/SwapFormProvider/types.js +5 -0
  136. package/stores/chains/useChainOrderStore.d.ts +1 -1
  137. package/stores/routes/useRouteExecutionStore.d.ts +1 -1
  138. package/stores/settings/useSettingsStore.d.ts +1 -1
  139. package/tsconfig.cjs.tsbuildinfo +1 -1
  140. package/types/widget.d.ts +12 -6
  141. package/types/widget.js +2 -0
  142. package/cjs/fonts/Inter-Black.woff +0 -0
  143. package/cjs/fonts/Inter-Black.woff2 +0 -0
  144. package/cjs/fonts/Inter-BlackItalic.woff +0 -0
  145. package/cjs/fonts/Inter-BlackItalic.woff2 +0 -0
  146. package/cjs/fonts/Inter-Bold.woff +0 -0
  147. package/cjs/fonts/Inter-Bold.woff2 +0 -0
  148. package/cjs/fonts/Inter-BoldItalic.woff +0 -0
  149. package/cjs/fonts/Inter-BoldItalic.woff2 +0 -0
  150. package/cjs/fonts/Inter-ExtraBold.woff +0 -0
  151. package/cjs/fonts/Inter-ExtraBold.woff2 +0 -0
  152. package/cjs/fonts/Inter-ExtraBoldItalic.woff +0 -0
  153. package/cjs/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
  154. package/cjs/fonts/Inter-ExtraLight.woff +0 -0
  155. package/cjs/fonts/Inter-ExtraLight.woff2 +0 -0
  156. package/cjs/fonts/Inter-ExtraLightItalic.woff +0 -0
  157. package/cjs/fonts/Inter-ExtraLightItalic.woff2 +0 -0
  158. package/cjs/fonts/Inter-Italic.woff +0 -0
  159. package/cjs/fonts/Inter-Italic.woff2 +0 -0
  160. package/cjs/fonts/Inter-Light.woff +0 -0
  161. package/cjs/fonts/Inter-Light.woff2 +0 -0
  162. package/cjs/fonts/Inter-LightItalic.woff +0 -0
  163. package/cjs/fonts/Inter-LightItalic.woff2 +0 -0
  164. package/cjs/fonts/Inter-Medium.woff +0 -0
  165. package/cjs/fonts/Inter-Medium.woff2 +0 -0
  166. package/cjs/fonts/Inter-MediumItalic.woff +0 -0
  167. package/cjs/fonts/Inter-MediumItalic.woff2 +0 -0
  168. package/cjs/fonts/Inter-Regular.woff +0 -0
  169. package/cjs/fonts/Inter-Regular.woff2 +0 -0
  170. package/cjs/fonts/Inter-SemiBold.woff +0 -0
  171. package/cjs/fonts/Inter-SemiBold.woff2 +0 -0
  172. package/cjs/fonts/Inter-SemiBoldItalic.woff +0 -0
  173. package/cjs/fonts/Inter-SemiBoldItalic.woff2 +0 -0
  174. package/cjs/fonts/Inter-Thin.woff +0 -0
  175. package/cjs/fonts/Inter-Thin.woff2 +0 -0
  176. package/cjs/fonts/Inter-ThinItalic.woff +0 -0
  177. package/cjs/fonts/Inter-ThinItalic.woff2 +0 -0
  178. package/cjs/fonts/Inter-italic.var.woff2 +0 -0
  179. package/cjs/fonts/Inter-roman.var.woff2 +0 -0
  180. package/cjs/fonts/Inter.var.woff2 +0 -0
  181. package/cjs/fonts/inter.css +0 -200
  182. package/fonts/Inter-Black.woff +0 -0
  183. package/fonts/Inter-Black.woff2 +0 -0
  184. package/fonts/Inter-BlackItalic.woff +0 -0
  185. package/fonts/Inter-BlackItalic.woff2 +0 -0
  186. package/fonts/Inter-Bold.woff +0 -0
  187. package/fonts/Inter-Bold.woff2 +0 -0
  188. package/fonts/Inter-BoldItalic.woff +0 -0
  189. package/fonts/Inter-BoldItalic.woff2 +0 -0
  190. package/fonts/Inter-ExtraBold.woff +0 -0
  191. package/fonts/Inter-ExtraBold.woff2 +0 -0
  192. package/fonts/Inter-ExtraBoldItalic.woff +0 -0
  193. package/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
  194. package/fonts/Inter-ExtraLight.woff +0 -0
  195. package/fonts/Inter-ExtraLight.woff2 +0 -0
  196. package/fonts/Inter-ExtraLightItalic.woff +0 -0
  197. package/fonts/Inter-ExtraLightItalic.woff2 +0 -0
  198. package/fonts/Inter-Italic.woff +0 -0
  199. package/fonts/Inter-Italic.woff2 +0 -0
  200. package/fonts/Inter-Light.woff +0 -0
  201. package/fonts/Inter-Light.woff2 +0 -0
  202. package/fonts/Inter-LightItalic.woff +0 -0
  203. package/fonts/Inter-LightItalic.woff2 +0 -0
  204. package/fonts/Inter-Medium.woff +0 -0
  205. package/fonts/Inter-Medium.woff2 +0 -0
  206. package/fonts/Inter-MediumItalic.woff +0 -0
  207. package/fonts/Inter-MediumItalic.woff2 +0 -0
  208. package/fonts/Inter-Regular.woff +0 -0
  209. package/fonts/Inter-Regular.woff2 +0 -0
  210. package/fonts/Inter-SemiBold.woff +0 -0
  211. package/fonts/Inter-SemiBold.woff2 +0 -0
  212. package/fonts/Inter-SemiBoldItalic.woff +0 -0
  213. package/fonts/Inter-SemiBoldItalic.woff2 +0 -0
  214. package/fonts/Inter-Thin.woff +0 -0
  215. package/fonts/Inter-Thin.woff2 +0 -0
  216. package/fonts/Inter-ThinItalic.woff +0 -0
  217. package/fonts/Inter-ThinItalic.woff2 +0 -0
  218. package/fonts/Inter-italic.var.woff2 +0 -0
  219. package/fonts/Inter-roman.var.woff2 +0 -0
  220. package/fonts/Inter.var.woff2 +0 -0
  221. package/fonts/inter.css +0 -200
package/types/widget.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { Signer } from '@ethersproject/abstract-signer';
2
2
  import type { ChainKey, ConfigUpdate, Order, RouteOptions, Token } from '@lifi/sdk';
3
- import type { PaletteMode, PaletteOptions, Shape } from '@mui/material';
3
+ import type { Components, PaletteMode, PaletteOptions, Shape, Theme } from '@mui/material';
4
4
  import type { TypographyOptions } from '@mui/material/styles/createTypography';
5
5
  import type { CSSProperties, ReactNode, RefObject } from 'react';
6
6
  import type { LanguageKey, LanguageResources } from '../providers';
7
- export type WidgetVariant = 'default' | 'expandable' | 'drawer' | 'refuel';
7
+ export type WidgetVariant = 'default' | 'expandable' | 'drawer' | 'refuel' | 'nft';
8
8
  export declare enum DisabledUI {
9
9
  FromAmount = "fromAmount",
10
10
  FromToken = "fromToken",
@@ -21,9 +21,10 @@ export declare enum HiddenUI {
21
21
  export type HiddenUIType = `${HiddenUI}`;
22
22
  export type Appearance = PaletteMode | 'auto';
23
23
  export type ThemeConfig = {
24
- palette?: Pick<PaletteOptions, 'grey' | 'background' | 'text' | 'secondary' | 'primary'>;
24
+ palette?: Pick<PaletteOptions, 'background' | 'grey' | 'primary' | 'secondary' | 'text'>;
25
25
  shape?: Shape;
26
26
  typography?: TypographyOptions;
27
+ components?: Pick<Components<Omit<Theme, 'components'>>, 'MuiAvatar'>;
27
28
  };
28
29
  export interface WidgetWalletManagement {
29
30
  connect(): Promise<Signer>;
@@ -36,10 +37,14 @@ export interface WidgetWalletManagement {
36
37
  export interface SDKConfig extends Omit<ConfigUpdate, 'defaultExecutionSettings' | 'defaultRouteOptions' | 'disableVersionCheck'> {
37
38
  defaultRouteOptions?: Omit<RouteOptions, 'bridges' | 'exchanges'>;
38
39
  }
40
+ export interface WidgetContractTool {
41
+ logoURI: string;
42
+ name: string;
43
+ }
39
44
  export interface WidgetContract {
40
- address: string;
41
- callData: string;
42
- gasLimit: string;
45
+ address?: string;
46
+ callData?: string;
47
+ gasLimit?: string;
43
48
  approvalAddress?: string;
44
49
  outputToken?: string;
45
50
  fallbackAddress?: string;
@@ -55,6 +60,7 @@ export interface WidgetConfig {
55
60
  contract?: WidgetContract;
56
61
  contractComponent?: ReactNode;
57
62
  contractCompactComponent?: ReactNode;
63
+ contractTool?: WidgetContractTool;
58
64
  fee?: number;
59
65
  integrator?: string;
60
66
  referrer?: string;
package/types/widget.js CHANGED
@@ -8,7 +8,9 @@ export var DisabledUI;
8
8
  export var HiddenUI;
9
9
  (function (HiddenUI) {
10
10
  HiddenUI["Appearance"] = "appearance";
11
+ // FromAmount = 'fromAmount',
11
12
  HiddenUI["Language"] = "language";
12
13
  HiddenUI["PoweredBy"] = "poweredBy";
13
14
  HiddenUI["ToAddress"] = "toAddress";
15
+ // ToToken = 'toToken',
14
16
  })(HiddenUI || (HiddenUI = {}));
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
@@ -1,200 +0,0 @@
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
- }
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
package/fonts/inter.css DELETED
@@ -1,200 +0,0 @@
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
- }