@broxus/evm-connect 1.2.0 → 1.3.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/README.md +42 -1
- package/dist/cjs/components/EvmConnectDialog/index.css +12 -12
- package/dist/cjs/components/EvmConnector/index.css +2 -2
- package/dist/cjs/components/EvmProvidersDispatcher/ConnectionRequest/index.css +1 -0
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/components/EvmConnectDialog/index.css +12 -12
- package/dist/esm/components/EvmConnector/index.css +2 -2
- package/dist/esm/components/EvmProvidersDispatcher/ConnectionRequest/index.css +1 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/style.min.css +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -18,6 +18,39 @@ or using **yarn**:
|
|
|
18
18
|
yarn add @broxus/evm-connect
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
### Requirements
|
|
22
|
+
|
|
23
|
+
In general it works great with our [UIkit](https://www.npmjs.com/package/@broxus/react-uikit) package.
|
|
24
|
+
If you use this package you don't need to worry about the details.
|
|
25
|
+
|
|
26
|
+
#### Minimum requirements
|
|
27
|
+
|
|
28
|
+
If you are only going to use stores, you should install a few required packages
|
|
29
|
+
|
|
30
|
+
```shell
|
|
31
|
+
npm i web3 mobx
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
or using **yarn**:
|
|
35
|
+
|
|
36
|
+
```shell
|
|
37
|
+
yarn add web3 mobx
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### Full requirements
|
|
41
|
+
|
|
42
|
+
If you would like to use stores and included react components, you need to install a few more packages
|
|
43
|
+
|
|
44
|
+
```shell
|
|
45
|
+
npm i web3 mobx mobx-react-lite react-intl
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
or using **yarn**:
|
|
49
|
+
|
|
50
|
+
```shell
|
|
51
|
+
yarn add web3 mobx-react-lite react-intl
|
|
52
|
+
```
|
|
53
|
+
|
|
21
54
|
### EvmWalletService
|
|
22
55
|
|
|
23
56
|
The Wallet Service is a key part of this module. It accepts a number of settings and
|
|
@@ -179,4 +212,12 @@ const walletService = new EvmWalletService({
|
|
|
179
212
|
await walletService.connect()
|
|
180
213
|
```
|
|
181
214
|
|
|
182
|
-
|
|
215
|
+
## Styling
|
|
216
|
+
|
|
217
|
+
If you are using our [UIkit](https://www.npmjs.com/package/@broxus/react-uikit) package it will it automatically adapts to your interface colors.
|
|
218
|
+
|
|
219
|
+
Otherwise, you can import standalone CSS
|
|
220
|
+
|
|
221
|
+
```typescript jsx
|
|
222
|
+
import '~@broxus/evm-connect/style.min.css'
|
|
223
|
+
```
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
.evm-connect-modal .uk-modal-title {
|
|
20
20
|
color: var(--evm-connect-modal-title-color);
|
|
21
|
-
font-size: var(--evm-connect-modal-font-size);
|
|
22
|
-
font-weight: var(--evm-connect-modal-font-weight);
|
|
23
|
-
line-height: var(--evm-connect-modal-line-height);
|
|
21
|
+
font-size: var(--evm-connect-modal-title-font-size);
|
|
22
|
+
font-weight: var(--evm-connect-modal-title-font-weight);
|
|
23
|
+
line-height: var(--evm-connect-modal-title-line-height);
|
|
24
24
|
text-align: center;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
|
|
57
57
|
.evm-connect-drawer .uk-drawer-title {
|
|
58
58
|
color: var(--evm-connect-drawer-title-color);
|
|
59
|
-
font-size: var(--evm-connect-drawer-font-size);
|
|
60
|
-
font-weight: var(--evm-connect-drawer-font-weight);
|
|
61
|
-
line-height: var(--evm-connect-drawer-line-height);
|
|
59
|
+
font-size: var(--evm-connect-drawer-title-font-size);
|
|
60
|
+
font-weight: var(--evm-connect-drawer-title-font-weight);
|
|
61
|
+
line-height: var(--evm-connect-drawer-title-line-height);
|
|
62
62
|
text-align: center;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
--evm-connect-modal-header-padding-horizontal: 0;
|
|
103
103
|
--evm-connect-modal-header-padding-vertical: var(--evm-connect-modal-content-padding-vertical);
|
|
104
104
|
--evm-connect-modal-title-color: var(--base-heading-color, #383838);
|
|
105
|
-
--evm-connect-modal-font-size: var(--modal-title-font-size,
|
|
106
|
-
--evm-connect-modal-font-weight: 500;
|
|
107
|
-
--evm-connect-modal-line-height: var(--modal-title-line-height,
|
|
105
|
+
--evm-connect-modal-title-font-size: var(--modal-title-font-size, 18px);
|
|
106
|
+
--evm-connect-modal-title-font-weight: 500;
|
|
107
|
+
--evm-connect-modal-title-line-height: var(--modal-title-line-height, 22px);
|
|
108
108
|
--evm-connect-modal-body-padding-horizontal: 0;
|
|
109
109
|
--evm-connect-modal-body-padding-vertical: var(--evm-connect-modal-content-padding-vertical);
|
|
110
110
|
--evm-connect-modal-footer-padding-horizontal: 0;
|
|
@@ -120,9 +120,9 @@
|
|
|
120
120
|
--evm-connect-drawer-header-padding-horizontal: 0;
|
|
121
121
|
--evm-connect-drawer-header-padding-vertical: var(--evm-connect-drawer-content-padding-vertical);
|
|
122
122
|
--evm-connect-drawer-title-color: var(--base-heading-color, #383838);
|
|
123
|
-
--evm-connect-drawer-font-size: var(--drawer-title-font-size, 24px);
|
|
124
|
-
--evm-connect-drawer-font-weight: 500;
|
|
125
|
-
--evm-connect-drawer-line-height: var(--drawer-title-line-height, 28px);
|
|
123
|
+
--evm-connect-drawer-title-font-size: var(--drawer-title-font-size, 24px);
|
|
124
|
+
--evm-connect-drawer-title-font-weight: 500;
|
|
125
|
+
--evm-connect-drawer-title-line-height: var(--drawer-title-line-height, 28px);
|
|
126
126
|
--evm-connect-drawer-body-padding-horizontal: 0;
|
|
127
127
|
--evm-connect-drawer-body-padding-vertical: var(--evm-connect-drawer-content-padding-vertical);
|
|
128
128
|
--evm-connect-drawer-footer-padding-horizontal: 0;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
--evm-connect-dropdown-trigger-horizontal-padding: var(--global-small-gutter, 8px);
|
|
31
31
|
--evm-connect-dropdown-trigger-vertical-padding: 0;
|
|
32
32
|
--evm-connect-dropdown-background: var(--dropdown-background, #fff);
|
|
33
|
-
--evm-connect-dropdown-border-radius: var(--dropdown-border-radius,
|
|
33
|
+
--evm-connect-dropdown-border-radius: var(--dropdown-border-radius, 5px);
|
|
34
34
|
--evm-connect-dropdown-box-shadow: 0 8px 32px 0 rgb(63 74 111 / 12%), 0 1px 4px 0 rgb(63 74 111 / 8%);
|
|
35
35
|
--evm-connect-dropdown-color: var(--dropdown-color, #333);
|
|
36
|
-
--evm-connect-dropdown-link-color: var(--dropdown-color, #
|
|
36
|
+
--evm-connect-dropdown-link-color: var(--dropdown-color, #0af);
|
|
37
37
|
}
|