@kimafinance/kima-transaction-widget 1.1.19 → 1.1.20-beta.1
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/README.md +18 -15
- package/dist/assets/icons/Arbitrium.d.ts +7 -0
- package/dist/assets/icons/Optimism.d.ts +7 -0
- package/dist/assets/icons/index.d.ts +2 -0
- package/dist/index.css +1319 -1319
- package/dist/index.js +7731 -7634
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7212 -7096
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/config.d.ts +3 -0
- package/dist/utils/constants.d.ts +8 -2
- package/package.json +3 -3
- package/dist/components/reusable/HelpPopup.d.ts +0 -3
- package/dist/components/reusable/Tooltip.d.ts +0 -11
- package/dist/components/reusable/WalletConnectModal.d.ts +0 -3
- package/dist/helpers/xplorisk.d.ts +0 -17
- package/dist/styles/hooks/index.d.ts +0 -1
- package/dist/styles/hooks/useWidth.d.ts +0 -2
- package/dist/utils/ethereum/common.d.ts +0 -21
- package/dist/utils/ethereum/erc20Token.d.ts +0 -171
- package/dist/utils/parseError.d.ts +0 -2
package/README.md
CHANGED
|
@@ -18,12 +18,12 @@ import React from 'react'
|
|
|
18
18
|
import {
|
|
19
19
|
KimaTransactionWidget,
|
|
20
20
|
KimaProvider,
|
|
21
|
-
ThemeOptions,
|
|
22
21
|
FontSizeOptions,
|
|
23
22
|
ModeOptions,
|
|
24
|
-
SupportNetworks
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
SupportNetworks,
|
|
24
|
+
ColorModeOptions
|
|
25
|
+
} from 'kima-transaction-widget'
|
|
26
|
+
import 'kima-transaction-widget/dist/index.css'
|
|
27
27
|
|
|
28
28
|
const App = () => {
|
|
29
29
|
return (
|
|
@@ -35,9 +35,11 @@ const App = () => {
|
|
|
35
35
|
>
|
|
36
36
|
<div className='container'>
|
|
37
37
|
<KimaTransactionWidget
|
|
38
|
-
theme={
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
theme={{
|
|
39
|
+
colorMode: ColorModeOptions.light,
|
|
40
|
+
fontSize: FontSizeOptions.medium
|
|
41
|
+
}}
|
|
42
|
+
mode={ModeOptions.payment}
|
|
41
43
|
kimaBackendUrl='https://trasnaction_backend.kima.finance'
|
|
42
44
|
kimaNodeProviderQuery='https://api_staging_testnet.kima.finance'
|
|
43
45
|
titleOption={{
|
|
@@ -85,11 +87,11 @@ import React from 'react'
|
|
|
85
87
|
import {
|
|
86
88
|
KimaTransactionWidget,
|
|
87
89
|
KimaProvider,
|
|
88
|
-
ThemeOptions,
|
|
89
90
|
FontSizeOptions,
|
|
90
|
-
ModeOptions
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
ModeOptions,
|
|
92
|
+
ColorModeOptions
|
|
93
|
+
} from 'kima-transaction-widget'
|
|
94
|
+
import 'kima-transaction-widget/dist/index.css'
|
|
93
95
|
|
|
94
96
|
const App = () => {
|
|
95
97
|
return (
|
|
@@ -101,8 +103,10 @@ const App = () => {
|
|
|
101
103
|
>
|
|
102
104
|
<div className='container'>
|
|
103
105
|
<KimaTransactionWidget
|
|
104
|
-
theme={
|
|
105
|
-
|
|
106
|
+
theme={{
|
|
107
|
+
colorMode: ColorModeOptions.light,
|
|
108
|
+
fontSize: FontSizeOptions.medium
|
|
109
|
+
}}
|
|
106
110
|
mode={ModeOptions.bridge}
|
|
107
111
|
kimaBackendUrl='https://trasnaction_backend.kima.finance'
|
|
108
112
|
kimaNodeProviderQuery='https://api_staging_testnet.kima.finance'
|
|
@@ -130,8 +134,7 @@ export default App
|
|
|
130
134
|
|
|
131
135
|
| Prop Name | Type | Description | Values | Default Value |
|
|
132
136
|
| ------------------------------ | ------------------ | ------------------------ | ----------------| ------------- |
|
|
133
|
-
| theme `(
|
|
134
|
-
| fontSize `(optional)` | FontSizeOptions | font size of widget | `small`, `medium`, `large` | `medium` |
|
|
137
|
+
| theme `(required)` | ThemeOptions | colorMode, fontSize, fontFamily, backgroundColor | | |
|
|
135
138
|
| mode `(required)` | ModeOptions | scenario of the widget | `payment`, `bridge` | |
|
|
136
139
|
| transactionOption `(optional)` | TransactionOption | target chain, address and currency | | |
|
|
137
140
|
| titleOption `(optional)` | TitleOption | titles of widget for every steps | | |
|
|
@@ -9,6 +9,8 @@ export { default as EthereumIcon } from './Ethereum';
|
|
|
9
9
|
export { default as SolanaIcon } from './Solana';
|
|
10
10
|
export { default as PolygonIcon } from './Polygon';
|
|
11
11
|
export { default as AvalancheIcon } from './Avalanche';
|
|
12
|
+
export { default as ArbitriumIcon } from './Arbitrium';
|
|
13
|
+
export { default as OptimismIcon } from './Optimism';
|
|
12
14
|
export { default as USDCIcon } from './USDC';
|
|
13
15
|
export { default as USDTIcon } from './USDT';
|
|
14
16
|
export { default as FuseIcon } from './Fuse';
|