@ape.swap/bonds-sdk 1.0.78-2.test.10 → 1.0.78-2.test.12

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 (34) hide show
  1. package/dist/components/BondMenu/BondMenu.d.ts +1 -0
  2. package/dist/components/BondMenu/BondMenu.js +1 -0
  3. package/dist/components/BondRows/BondRow.d.ts +1 -0
  4. package/dist/components/BondRows/BondRow.js +1 -0
  5. package/dist/components/BondRows/BondRowHeader.d.ts +1 -0
  6. package/dist/components/BondRows/BondRowHeader.js +1 -0
  7. package/dist/components/BondRows/BondRowsByChain.d.ts +1 -0
  8. package/dist/components/BondRows/BondRowsByChain.js +1 -0
  9. package/dist/components/BondRows/BondRowsWithTitle.d.ts +1 -0
  10. package/dist/components/BondRows/BondRowsWithTitle.js +1 -0
  11. package/dist/components/ProgressBar/ProgressBar.d.ts +1 -0
  12. package/dist/components/ProgressBar/ProgressBar.js +1 -0
  13. package/dist/components/TokenInfoAndName/index.d.ts +1 -0
  14. package/dist/components/TokenInfoAndName/index.js +5 -26
  15. package/dist/scss/BondMenu.scss +29 -0
  16. package/dist/scss/BondModal.scss +409 -0
  17. package/dist/scss/BondRow.scss +98 -0
  18. package/dist/scss/BondRowHeader.scss +124 -0
  19. package/dist/scss/BondRowsByChain.scss +5 -0
  20. package/dist/scss/BondRowsWithTitle.scss +4 -0
  21. package/dist/scss/Bonds.scss +17 -0
  22. package/dist/scss/ProgressBar.scss +13 -0
  23. package/dist/scss/TokenInfoName.scss +45 -0
  24. package/dist/scss/YourBonds.scss +198 -0
  25. package/dist/scss/YourBondsModal.scss +314 -0
  26. package/dist/views/BondModal/BondModal.d.ts +1 -0
  27. package/dist/views/BondModal/BondModal.js +1 -0
  28. package/dist/views/Bonds/Bonds.d.ts +1 -0
  29. package/dist/views/Bonds/Bonds.js +3 -2
  30. package/dist/views/YourBonds/YourBonds.d.ts +1 -0
  31. package/dist/views/YourBonds/YourBonds.js +1 -0
  32. package/dist/views/YourBondsModal/YourBondsModal.d.ts +1 -0
  33. package/dist/views/YourBondsModal/YourBondsModal.js +1 -0
  34. package/package.json +4 -5
@@ -0,0 +1,124 @@
1
+ .bondrow-header {
2
+ display: flex;
3
+ justify-content: space-around;
4
+ align-items: center;
5
+ flex-direction: column;
6
+ width: 100%;
7
+ font-size: 11px;
8
+ }
9
+
10
+ .bondrow-header.filters {
11
+ display: flex;
12
+ flex-direction: row;
13
+ align-items: center;
14
+ justify-content: end;
15
+ padding-bottom: 5px;
16
+ width: 100%;
17
+ }
18
+
19
+ .bondrow-header.rows {
20
+ display: flex;
21
+ flex-direction: row;
22
+ align-items: center;
23
+ width: 100%;
24
+ }
25
+
26
+ .column.column-tokens {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: start;
30
+ width: 40%;
31
+ }
32
+
33
+ .column.column-search {
34
+ padding-bottom: 15px;
35
+ }
36
+
37
+ .column.column-tokeninfoname {
38
+ width: 100%;
39
+ height: 100%;
40
+ flex-direction: row;
41
+ justify-content: start;
42
+ align-items: center;
43
+ padding-left: 0px;
44
+ }
45
+
46
+ .column.column-tokenname {
47
+ width: 100%;
48
+ flex-direction: row;
49
+ justify-content: start;
50
+ align-items: center;
51
+ padding-left: 20px;
52
+ }
53
+
54
+ .column.column-tokenicons {
55
+ width: 20%;
56
+ flex-direction: row;
57
+ align-items: center;
58
+ justify-content: start;
59
+ }
60
+
61
+ .column.column-bondinfo {
62
+ flex-direction: row;
63
+ align-items: center;
64
+ justify-content: end;
65
+ width: 70%;
66
+ }
67
+
68
+ .column.column-discount {
69
+ flex-direction: row;
70
+ justify-content: center;
71
+ align-items: center;
72
+ width: 20%;
73
+ }
74
+
75
+ .discount-positive {
76
+ color: #38A611;
77
+ width: 20%;
78
+ }
79
+
80
+ .discount-negative {
81
+ color: #DF4141;
82
+ width: 20%;
83
+ }
84
+
85
+ .column.column-arr {
86
+ flex-direction: row;
87
+ justify-content: center;
88
+ align-items: center;
89
+ width: 20%;
90
+ }
91
+
92
+ .column.column-terms {
93
+ flex-direction: row;
94
+ justify-content: center;
95
+ align-items: center;
96
+ width: 20%;
97
+ }
98
+
99
+ .column.column-tokensremaining {
100
+ flex-direction: row;
101
+ justify-content: center;
102
+ align-items: center;
103
+ width: 30%;
104
+ }
105
+
106
+ .column.column-hotbond {
107
+ flex-direction: row;
108
+ justify-content: center;
109
+ align-items: center;
110
+ width: 10%;
111
+ }
112
+
113
+ .column.tooltip {
114
+ flex-direction: row;
115
+ align-items: center;
116
+ justify-content: space-around;
117
+ }
118
+
119
+ .column.header-icon {
120
+ padding-left: 5px;
121
+ align-items: start;
122
+ justify-content: space-around;
123
+ cursor: pointer;
124
+ }
@@ -0,0 +1,5 @@
1
+ .bondrowsbychain {
2
+ width: 100%;
3
+ flex-direction: column;
4
+ margin-top: 5px;
5
+ }
@@ -0,0 +1,4 @@
1
+ .bondrowswithtitle {
2
+ width: 100%;
3
+ flex-direction: column;
4
+ }
@@ -0,0 +1,17 @@
1
+
2
+ .bonds-container.table-container {
3
+ width: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ padding-top: 50px;
7
+ padding-left: 100px;
8
+ padding-right: 100px;
9
+ padding-bottom: 50px;
10
+ }
11
+
12
+ .bonds-spinner {
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
16
+ height: 100vh;
17
+ }
@@ -0,0 +1,13 @@
1
+ .progressbar-background {
2
+ width: 100%;
3
+ height: 5px;
4
+ background-color: var(--theme-ui-colors-white4);
5
+ border-radius: 10px;
6
+ overflow: hidden;
7
+ }
8
+
9
+ .progressbar-completed {
10
+ border-radius: 10px;
11
+ height: 100%;
12
+ background-color: var(--theme-ui-colors-text);
13
+ }
@@ -0,0 +1,45 @@
1
+ .tokeninfoname-border {
2
+ width: 100%;
3
+ position: relative;
4
+ justify-content: space-between;
5
+ margin-right: 10px;
6
+ height: 100%;
7
+ align-items: center;
8
+ margin-left: -20px;
9
+ padding-left: 20px;
10
+ overflow: hidden;
11
+ border-radius: 10px;
12
+
13
+ @media (min-width: 576px) {
14
+ justify-content: space-between;
15
+ margin-right: 10px;
16
+ }
17
+
18
+ @media (min-width: 768px) {
19
+ justify-content: space-between;
20
+ margin-right: 10px;
21
+ }
22
+
23
+ @media (min-width: 992px) {
24
+ justify-content: flex-start;
25
+ margin-right: 0px;
26
+ }
27
+ }
28
+
29
+ .tokeninfoname-bordergradient {
30
+ position: absolute;
31
+ z-index: 0;
32
+ left: 0px;
33
+ width: 30px;
34
+ height: 100%;
35
+ filter: blur(35px);
36
+ }
37
+
38
+ .tokeninfoname-chain {
39
+ position: absolute;
40
+ left: 0px;
41
+ top: 0px;
42
+ overflow: hidden;
43
+ border-radius: 10px 0px 8px 0px;
44
+ z-index: 5;
45
+ }
@@ -0,0 +1,198 @@
1
+ .yourbonds-spinner {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ height: 100vh;
6
+ }
7
+
8
+ .yourbonds.table-container {
9
+ width: 100%;
10
+ display: flex;
11
+ flex-direction: column;
12
+ padding-top: 50px;
13
+ padding-left: 100px;
14
+ padding-right: 100px;
15
+ padding-bottom: 50px;
16
+ }
17
+
18
+ .yourbonds.header-container {
19
+ display: flex;
20
+ flex-direction: row;
21
+ width: 100%;
22
+ height: 30px;
23
+ justify-content: space-around;
24
+ margin-bottom: 5px;
25
+ padding: 0px;
26
+ border-radius: 10px;
27
+ font-size: 11px;
28
+ color: #73728E;
29
+ }
30
+
31
+ .yourbonds.bondrow-container {
32
+ display: flex;
33
+ flex-direction: row;
34
+ width: 100%;
35
+ height: 70px;
36
+ justify-content: space-around;
37
+ background-color: var(--theme-ui-colors-white2);
38
+ margin-bottom: 5px;
39
+ border-radius: 10px;
40
+ cursor: pointer;
41
+
42
+ &:hover {
43
+ background-color: var(--theme-ui-colors-white3);
44
+ }
45
+ }
46
+
47
+ .yourbonds.column-tokens {
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: start;
51
+ width: 40%;
52
+ }
53
+
54
+ .yourbonds.column-search {
55
+ padding-bottom: 0px;
56
+ }
57
+
58
+ .yourbonds.column-tokeninfoname {
59
+ width: 100%;
60
+ height: 100%;
61
+ flex-direction: row;
62
+ justify-content: start;
63
+ align-items: center;
64
+ padding-left: 20px;
65
+ }
66
+
67
+ .yourbonds.column-bondinfo {
68
+ flex-direction: row;
69
+ align-items: center;
70
+ justify-content: end;
71
+ width: 60%;
72
+ }
73
+
74
+ .yourbonds.header-claimable {
75
+ flex-direction: row;
76
+ justify-content: center;
77
+ align-items: center;
78
+ width: 25%;
79
+ font-size: 11px;
80
+ color: var(--theme-ui-colors-text)
81
+ }
82
+
83
+ .yourbonds.header-pending {
84
+ flex-direction: row;
85
+ justify-content: center;
86
+ align-items: center;
87
+ width: 25%;
88
+ font-size: 11px;
89
+ color: var(--theme-ui-colors-text)
90
+ }
91
+
92
+ .yourbonds.header-terms {
93
+ flex-direction: row;
94
+ justify-content: center;
95
+ align-items: center;
96
+ width: 25%;
97
+ font-size: 11px;
98
+ color: var(--theme-ui-colors-text)
99
+ }
100
+
101
+ .yourbonds.header-claimall {
102
+ flex-direction: column;
103
+ justify-content: center;
104
+ align-items: center;
105
+ width: 30%;
106
+ padding-right: 20px;
107
+ padding-bottom: 15px;
108
+ }
109
+
110
+ .yourbonds.header-icon {
111
+ padding-left: 5px;
112
+ align-items: start;
113
+ justify-content: space-around;
114
+ cursor: pointer;
115
+ }
116
+
117
+ .yourbonds.column-claimable {
118
+ flex-direction: row;
119
+ justify-content: center;
120
+ align-items: center;
121
+ width: 25%;
122
+ }
123
+
124
+ .yourbonds.column-pending {
125
+ flex-direction: row;
126
+ justify-content: center;
127
+ align-items: center;
128
+ width: 25%;
129
+ }
130
+
131
+ .yourbonds.column-terms {
132
+ flex-direction: row;
133
+ justify-content: center;
134
+ align-items: center;
135
+ width: 25%;
136
+ }
137
+
138
+ .yourbonds.column-claimall {
139
+ flex-direction: column;
140
+ justify-content: center;
141
+ align-items: center;
142
+ width: 30%;
143
+ padding-right: 20px;
144
+
145
+ .claim-button {
146
+
147
+ height: 36px;
148
+ line-height: 12px;
149
+ font-size: 14px;
150
+ font-weight: 600;
151
+ width: 100%;
152
+
153
+ @media (min-width: 1024px) {
154
+ height: 26px;
155
+ }
156
+
157
+ &:disabled {
158
+ filter: brightness(130%)
159
+ }
160
+ }
161
+
162
+ .switch-button {
163
+ height: 45px;
164
+ line-height: 20px;
165
+ font-size: 14px;
166
+ font-weight: 600;
167
+ width: 100%;
168
+
169
+ &:disabled {
170
+ filter: brightness(130%)
171
+ }
172
+ }
173
+ }
174
+
175
+ .toast {
176
+ position: fixed;
177
+ bottom: 50px;
178
+ right: 20px;
179
+ background-color: var(--theme-ui-colors-white2);
180
+ color: white;
181
+ font-size: 24px;
182
+ padding: 10px 20px;
183
+ border-radius: 5px;
184
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
185
+ z-index: 9999;
186
+ animation: fadein 0.5s, fadeout 0.5s 4.5s;
187
+ cursor: pointer;
188
+ }
189
+
190
+ @keyframes fadein {
191
+ from { bottom: 0; opacity: 0; }
192
+ to { bottom: 50px; opacity: 1; }
193
+ }
194
+
195
+ @keyframes fadeout {
196
+ from { bottom: 50px; opacity: 1; }
197
+ to { bottom: 0; opacity: 0; }
198
+ }
@@ -0,0 +1,314 @@
1
+ .yourbondsmodal-backdrop {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ background-color: rgba(66, 66, 66, 0.5);
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ z-index: 1000;
12
+ overflow: auto;
13
+ padding: 50px;
14
+ }
15
+
16
+ .yourbondsmodal-content {
17
+ display: flex;
18
+ flex-direction: column;
19
+ border-radius: 10px;
20
+ background-color: var(--theme-ui-colors-white2);
21
+ padding: 10px;
22
+ border-radius: 10px;
23
+ z-index: 1001;
24
+ max-width: 1200px;
25
+ min-width: 1000px;
26
+ height: auto;
27
+ max-height: 60vh;
28
+ min-height: 400px;
29
+ overflow: auto;
30
+ }
31
+
32
+ .yourbondsmodal-spinner {
33
+ display: flex;
34
+ justify-content: center;
35
+ align-items: center;
36
+ height: 100vh;
37
+ width: 100vw;
38
+ }
39
+
40
+ .yourbondsmodal-header {
41
+ display: flex;
42
+ justify-content: end;
43
+ align-items: center;
44
+ padding: 5px;
45
+
46
+ .svg-close {
47
+ height: 12px;
48
+ width: 12px;
49
+ cursor: pointer;
50
+ }
51
+ }
52
+
53
+ .yourbondsmodal.table-container {
54
+ width: 100%;
55
+ display: flex;
56
+ flex-direction: row;
57
+ padding-left: 10px;
58
+ padding-right: 10px;
59
+ padding-bottom: 10px;
60
+ }
61
+
62
+ .yourbondsmodal.bondimage {
63
+ width: 60%;
64
+ height: 100%;
65
+ display: flex;
66
+ flex-direction: column;
67
+ padding-left: 10px;
68
+ padding-right: 10px;
69
+ padding-bottom: 10px;
70
+ }
71
+
72
+ .yourbondsmodal.yourbondinfo {
73
+ width: 40%;
74
+ height: 100%;
75
+ display: flex;
76
+ flex-direction: column;
77
+ padding-left: 10px;
78
+ padding-right: 10px;
79
+ padding-bottom: 10px;
80
+ }
81
+
82
+ .yourbondinfo.title-container {
83
+ font-weight: bold;
84
+ font-size: 1.5rem;
85
+ display: flex;
86
+ flex-direction: row;
87
+ align-items: center;
88
+ padding-top: 5px;
89
+ padding-bottom: 5px;
90
+ }
91
+
92
+ .title-container.bondicon {
93
+ display: flex;
94
+ flex-direction: row;
95
+ align-items: center;
96
+ }
97
+
98
+ .icon-container {
99
+ position: relative;
100
+ display: inline-block;
101
+ }
102
+
103
+ .icon-container svg {
104
+ position: absolute;
105
+ top: -8px;
106
+ right: -5px;
107
+ z-index: 1;
108
+ }
109
+
110
+ .icon-container img {
111
+ display: block;
112
+ }
113
+
114
+ .icon-container-small {
115
+ position: relative;
116
+ display: inline-block;
117
+ }
118
+
119
+ .icon-container-small svg {
120
+ position: absolute;
121
+ top: -5px;
122
+ right: -4px;
123
+ z-index: 1;
124
+ }
125
+
126
+ .icon-container-small img {
127
+ display: block;
128
+ }
129
+
130
+
131
+ .title-container.tokenname {
132
+ display: flex;
133
+ flex-direction: row;
134
+ align-items: center;
135
+ padding-left: 10px;
136
+ }
137
+
138
+ .title-container.tokentags {
139
+ display: flex;
140
+ align-items: center;
141
+ padding-left: 10px;
142
+ }
143
+
144
+ .yourbondinfo.blocks-container {
145
+ display: flex;
146
+ flex-direction: column;
147
+ align-items: center;
148
+ width: 100%;
149
+ height: 100%;
150
+ justify-content: space-around;
151
+ margin-bottom: 10px;
152
+ margin-top: 5px;
153
+ }
154
+
155
+ .yourbondinfo-block.header {
156
+ color: white;
157
+ align-items: center;
158
+ width: 50%;
159
+ font-size: 12px;
160
+ font-weight: 400;
161
+ opacity: 0.6;
162
+ line-height: 14px;
163
+ }
164
+
165
+ .yourbondinfo-block.header-title {
166
+ align-items: center;
167
+ }
168
+
169
+ .yourbondinfo-block.header-tooltip {
170
+ align-items: center;
171
+ }
172
+
173
+ .block-header.icon {
174
+ padding-left: 5px;
175
+ align-items: start;
176
+ cursor: pointer;
177
+ }
178
+
179
+ .yourbondinfo-block.info {
180
+ flex-direction: row;
181
+ align-items: center;
182
+ justify-content: end;
183
+ width: 50%;
184
+ display: flex;
185
+ background: var(--theme-ui-colors-white3);
186
+ border-radius: 10px;
187
+ padding-top: 10px;
188
+ padding-bottom: 10px;
189
+ }
190
+
191
+ .block-info.icon {
192
+ align-items: center;
193
+ }
194
+
195
+ .block-info.text {
196
+ padding-left: 10px;
197
+ }
198
+
199
+ .attributes-container {
200
+ flex-direction: column;
201
+ width: 100%;
202
+ padding-bottom: 10px;
203
+ align-items: center;
204
+
205
+ .attributes-header {
206
+ justify-content: space-between;
207
+ height: 24px;
208
+ background-color: var(--theme-ui-colors-white3);
209
+ padding-left: 15px;
210
+ padding-right: 15px;
211
+ width: 100%;
212
+ }
213
+ }
214
+
215
+ .yourbondinfo-block.row-vested {
216
+ flex-direction: row;
217
+ height: 50px;
218
+ width: 100%;
219
+ margin-bottom: 10px;
220
+ padding-left: 10px;
221
+ padding-right: 10px;
222
+ align-items: center;
223
+ justify-content: space-between;
224
+ background: var(--theme-ui-colors-white3);
225
+ border-radius: 10px;
226
+ padding-top: 10px;
227
+ padding-bottom: 10px;
228
+ }
229
+
230
+ .yourbondinfo-block.row-pending {
231
+ flex-direction: row;
232
+ height: 50px;
233
+ width: 100%;
234
+ margin-bottom: 10px;
235
+ padding-left: 10px;
236
+ padding-right: 10px;
237
+ align-items: center;
238
+ justify-content: space-between;
239
+ background: var(--theme-ui-colors-white3);
240
+ border-radius: 10px;
241
+ padding-top: 10px;
242
+ padding-bottom: 10px;
243
+ }
244
+
245
+ .yourbondinfo-block.row-claimable {
246
+ flex-direction: row;
247
+ height: 50px;
248
+ width: 100%;
249
+ margin-bottom: 10px;
250
+ padding-left: 10px;
251
+ padding-right: 10px;
252
+ align-items: center;
253
+ justify-content: space-between;
254
+ background: var(--theme-ui-colors-white3);
255
+ border-radius: 10px;
256
+ padding-top: 10px;
257
+ padding-bottom: 10px;
258
+ }
259
+
260
+ .yourbondinfo.button-container {
261
+ width: 100%;
262
+ padding-top: 10px;
263
+ display: flex;
264
+ flex-direction: row;
265
+ justify-content: space-between;
266
+ }
267
+
268
+ .button-container.claim {
269
+ justify-content: center;
270
+ align-items: center;
271
+ cursor: pointer;
272
+
273
+ .switch-button {
274
+ width: 300px;
275
+ }
276
+
277
+ .claim-button {
278
+ width: 300px;
279
+ }
280
+ }
281
+
282
+ .button-container.transfer {
283
+ justify-content: center;
284
+ align-items: center;
285
+
286
+ .transfer-button {
287
+ width: 125px;
288
+ }
289
+ }
290
+
291
+ .toast {
292
+ position: fixed;
293
+ top: 50px;
294
+ right: 20px;
295
+ background-color: var(--theme-ui-colors-white2);
296
+ color: white;
297
+ font-size: 24px;
298
+ padding: 10px 20px;
299
+ border-radius: 5px;
300
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
301
+ z-index: 9999;
302
+ animation: fadein 0.5s, fadeout 0.5s 4.5s;
303
+ cursor: pointer;
304
+ }
305
+
306
+ @keyframes fadein {
307
+ from { top: 0; opacity: 0; }
308
+ to { top: 50px; opacity: 1; }
309
+ }
310
+
311
+ @keyframes fadeout {
312
+ from { top: 50px; opacity: 1; }
313
+ to { top: 0; opacity: 0; }
314
+ }
@@ -1,5 +1,6 @@
1
1
  /** @jsxImportSource theme-ui */
2
2
  import React from 'react';
3
+ import '../../scss/BondModal.scss';
3
4
  export interface BondModalProps {
4
5
  account: string;
5
6
  isActive: boolean;