@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 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
- } from 'kima-transfer-widget'
26
- import 'kima-transfer-widget/dist/index.css'
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={ThemeOptions.light}
39
- fontSize={FontSizeOptions.medium}
40
- mode={ModeOptions.bridge}
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
- } from 'kima-transfer-widget'
92
- import 'kima-transfer-widget/dist/index.css'
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={ThemeOptions.light}
105
- fontSize={FontSizeOptions.medium}
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 `(optional)` | ThemeOptions | color theme of widget | `light`, `dark` | `light` |
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 | | |
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const Arbitrium: ({ width, height, ...rest }: {
3
+ [x: string]: any;
4
+ width?: number | undefined;
5
+ height?: number | undefined;
6
+ }) => JSX.Element;
7
+ export default Arbitrium;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const Optimism: ({ width, height, ...rest }: {
3
+ [x: string]: any;
4
+ width?: number | undefined;
5
+ height?: number | undefined;
6
+ }) => JSX.Element;
7
+ export default Optimism;
@@ -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';