@ape.swap/bonds-sdk 1.0.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 (71) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/index.js +15505 -0
  3. package/dist/cjs/index.js.map +1 -0
  4. package/dist/cjs/types/App.d.ts +3 -0
  5. package/dist/cjs/types/components/Button/Button.d.ts +4 -0
  6. package/dist/cjs/types/components/Button/index.d.ts +1 -0
  7. package/dist/cjs/types/components/Button/styles.d.ts +3 -0
  8. package/dist/cjs/types/components/Button/types.d.ts +32 -0
  9. package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +5 -0
  10. package/dist/cjs/types/components/Dropdown/DropdownItem.d.ts +4 -0
  11. package/dist/cjs/types/components/Dropdown/index.d.ts +3 -0
  12. package/dist/cjs/types/components/Dropdown/styles.d.ts +4 -0
  13. package/dist/cjs/types/components/Dropdown/types.d.ts +58 -0
  14. package/dist/cjs/types/components/Flex/index.d.ts +5 -0
  15. package/dist/cjs/types/components/Input/Input.d.ts +10 -0
  16. package/dist/cjs/types/components/Input/NumericInput.d.ts +11 -0
  17. package/dist/cjs/types/components/Input/index.d.ts +2 -0
  18. package/dist/cjs/types/components/Text/index.d.ts +4 -0
  19. package/dist/cjs/types/components/Text/types.d.ts +23 -0
  20. package/dist/cjs/types/components/index.d.ts +4 -0
  21. package/dist/cjs/types/index.d.ts +2 -0
  22. package/dist/cjs/types/main.d.ts +1 -0
  23. package/dist/cjs/types/theme/base.d.ts +103 -0
  24. package/dist/cjs/types/theme/colors.d.ts +88 -0
  25. package/dist/cjs/types/theme/components.d.ts +439 -0
  26. package/dist/cjs/types/theme/display.d.ts +2 -0
  27. package/dist/cjs/types/theme/index.d.ts +2 -0
  28. package/dist/cjs/types/theme/types.d.ts +10 -0
  29. package/dist/cjs/types/utils/numbers.d.ts +1 -0
  30. package/dist/cjs/types/views/ClaimLifi/ClaimLifi.d.ts +8 -0
  31. package/dist/cjs/types/views/ClaimLifi/components/ApiKeyInput.d.ts +7 -0
  32. package/dist/cjs/types/views/ClaimLifi/components/AvailableFeesComponent.d.ts +10 -0
  33. package/dist/cjs/types/views/ClaimLifi/components/IntegratorSelector.d.ts +8 -0
  34. package/dist/cjs/types/views/ClaimLifi/index.d.ts +1 -0
  35. package/dist/cjs/types/views/index.d.ts +1 -0
  36. package/dist/esm/index.js +15480 -0
  37. package/dist/esm/index.js.map +1 -0
  38. package/dist/esm/types/App.d.ts +3 -0
  39. package/dist/esm/types/components/Button/Button.d.ts +4 -0
  40. package/dist/esm/types/components/Button/index.d.ts +1 -0
  41. package/dist/esm/types/components/Button/styles.d.ts +3 -0
  42. package/dist/esm/types/components/Button/types.d.ts +32 -0
  43. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +5 -0
  44. package/dist/esm/types/components/Dropdown/DropdownItem.d.ts +4 -0
  45. package/dist/esm/types/components/Dropdown/index.d.ts +3 -0
  46. package/dist/esm/types/components/Dropdown/styles.d.ts +4 -0
  47. package/dist/esm/types/components/Dropdown/types.d.ts +58 -0
  48. package/dist/esm/types/components/Flex/index.d.ts +5 -0
  49. package/dist/esm/types/components/Input/Input.d.ts +10 -0
  50. package/dist/esm/types/components/Input/NumericInput.d.ts +11 -0
  51. package/dist/esm/types/components/Input/index.d.ts +2 -0
  52. package/dist/esm/types/components/Text/index.d.ts +4 -0
  53. package/dist/esm/types/components/Text/types.d.ts +23 -0
  54. package/dist/esm/types/components/index.d.ts +4 -0
  55. package/dist/esm/types/index.d.ts +2 -0
  56. package/dist/esm/types/main.d.ts +1 -0
  57. package/dist/esm/types/theme/base.d.ts +103 -0
  58. package/dist/esm/types/theme/colors.d.ts +88 -0
  59. package/dist/esm/types/theme/components.d.ts +439 -0
  60. package/dist/esm/types/theme/display.d.ts +2 -0
  61. package/dist/esm/types/theme/index.d.ts +2 -0
  62. package/dist/esm/types/theme/types.d.ts +10 -0
  63. package/dist/esm/types/utils/numbers.d.ts +1 -0
  64. package/dist/esm/types/views/ClaimLifi/ClaimLifi.d.ts +8 -0
  65. package/dist/esm/types/views/ClaimLifi/components/ApiKeyInput.d.ts +7 -0
  66. package/dist/esm/types/views/ClaimLifi/components/AvailableFeesComponent.d.ts +10 -0
  67. package/dist/esm/types/views/ClaimLifi/components/IntegratorSelector.d.ts +8 -0
  68. package/dist/esm/types/views/ClaimLifi/index.d.ts +1 -0
  69. package/dist/esm/types/views/index.d.ts +1 -0
  70. package/dist/index.d.ts +93 -0
  71. package/package.json +55 -0
@@ -0,0 +1,439 @@
1
+ export declare const buttonHover: {
2
+ '&:not([disabled])': {
3
+ borderColor: string;
4
+ background: string;
5
+ opacity: number;
6
+ };
7
+ '&:disabled': {};
8
+ };
9
+ export declare const textUnderlineHover: {
10
+ '::after': {
11
+ content: string;
12
+ position: string;
13
+ background: string;
14
+ left: string;
15
+ bottom: string;
16
+ height: string;
17
+ width: string;
18
+ borderRadius: string;
19
+ transform: string;
20
+ transformOrigin: string;
21
+ transition: string;
22
+ backfaceVisibility: string;
23
+ };
24
+ ':hover::after': {
25
+ transform: string;
26
+ transformOrigin: string;
27
+ };
28
+ };
29
+ declare const components: {
30
+ text: {
31
+ heading: {
32
+ fontFamily: string;
33
+ fontWeight: string;
34
+ };
35
+ lg: {
36
+ fontSize: number;
37
+ lineHeight: string;
38
+ };
39
+ md: {
40
+ fontSize: number;
41
+ lineHeight: string;
42
+ };
43
+ sm: {
44
+ fontSize: number;
45
+ lineHeight: string;
46
+ };
47
+ };
48
+ input: {
49
+ fontFamily: string;
50
+ fontWeight: number;
51
+ sm: {
52
+ background: string;
53
+ borderRadius: number;
54
+ height: string;
55
+ width: string;
56
+ };
57
+ md: {
58
+ background: string;
59
+ borderRadius: number;
60
+ height: string;
61
+ width: string;
62
+ };
63
+ lg: {
64
+ background: string;
65
+ borderRadius: number;
66
+ height: string;
67
+ width: string;
68
+ };
69
+ };
70
+ textarea: {
71
+ padding: string;
72
+ borderRadius: string;
73
+ border: string;
74
+ fontWeight: string;
75
+ background: string;
76
+ resize: string;
77
+ color: string;
78
+ '&:focus': {
79
+ outline: string;
80
+ };
81
+ };
82
+ checkbox: {
83
+ background: string;
84
+ borderRadius: string;
85
+ borderWidth: string;
86
+ borderStyle: string;
87
+ borderColor: string;
88
+ boxShadow: string;
89
+ outline: string;
90
+ appearance: string;
91
+ width: string;
92
+ height: string;
93
+ margin: string;
94
+ cursor: string;
95
+ '& + svg': {
96
+ display: string;
97
+ position: string;
98
+ pointerEvents: string;
99
+ top: string;
100
+ left: string;
101
+ bottom: string;
102
+ right: string;
103
+ margin: string;
104
+ };
105
+ '&:checked ': {
106
+ background: string;
107
+ borderColor: string;
108
+ '& + svg': {
109
+ display: string;
110
+ };
111
+ };
112
+ '&:focus:not(:checked)': {
113
+ outline: string;
114
+ boxShadow: string;
115
+ };
116
+ '&:focus': {
117
+ outline: string;
118
+ boxShadow: string;
119
+ };
120
+ '&:hover:not(:disabled):not(:checked)': {
121
+ borderColor: string;
122
+ boxShadow: string;
123
+ };
124
+ };
125
+ radio: {
126
+ background: string;
127
+ borderRadius: string;
128
+ borderWidth: string;
129
+ borderStyle: string;
130
+ borderColor: string;
131
+ boxShadow: string;
132
+ outline: string;
133
+ appearance: string;
134
+ width: string;
135
+ height: string;
136
+ margin: string;
137
+ cursor: string;
138
+ '& + span': {
139
+ display: string;
140
+ position: string;
141
+ pointerEvents: string;
142
+ top: string;
143
+ left: string;
144
+ bottom: string;
145
+ right: string;
146
+ margin: string;
147
+ backgroundColor: string;
148
+ borderRadius: string;
149
+ };
150
+ '&:checked ': {
151
+ background: string;
152
+ borderColor: string;
153
+ '& + span': {
154
+ display: string;
155
+ };
156
+ };
157
+ '&:focus': {
158
+ outline: string;
159
+ boxShadow: string;
160
+ };
161
+ '&:hover:not(:disabled):not(:checked)': {
162
+ borderColor: string;
163
+ };
164
+ };
165
+ label: {
166
+ inline: {
167
+ display: string;
168
+ alignItems: string;
169
+ columnGap: number;
170
+ };
171
+ };
172
+ borders: {
173
+ primaryButton: string;
174
+ primaryBtnDisable: string;
175
+ secondaryButton: string;
176
+ secondaryButtonDisable: string;
177
+ mode: {
178
+ dark: {
179
+ secondaryButtonDisable: string;
180
+ };
181
+ };
182
+ };
183
+ buttons: {
184
+ primary: {
185
+ background: string;
186
+ border: string;
187
+ color: string;
188
+ '&:disabled': {
189
+ cursor: string;
190
+ background: string;
191
+ color: string;
192
+ border: string;
193
+ opacity: number;
194
+ };
195
+ '&:hover': {
196
+ '&:not([disabled])': {
197
+ borderColor: string;
198
+ background: string;
199
+ };
200
+ '&:disabled': {};
201
+ };
202
+ padding: string;
203
+ fontSize: string;
204
+ fontFamily: string;
205
+ cursor: string;
206
+ fontWeight: number;
207
+ display: string;
208
+ alignItems: string;
209
+ '&&': {
210
+ borderRadius: string;
211
+ };
212
+ };
213
+ secondary: {
214
+ background: string;
215
+ border: string;
216
+ color: string;
217
+ '&:disabled': {
218
+ cursor: string;
219
+ background: string;
220
+ color: string;
221
+ border: string;
222
+ };
223
+ '&&:hover': {
224
+ '&:not([disabled])': {
225
+ borderColor: string;
226
+ };
227
+ '&:disabled': {};
228
+ };
229
+ padding: string;
230
+ fontSize: string;
231
+ fontFamily: string;
232
+ cursor: string;
233
+ fontWeight: number;
234
+ display: string;
235
+ alignItems: string;
236
+ '&&': {
237
+ borderRadius: string;
238
+ };
239
+ };
240
+ tertiary: {
241
+ background: string;
242
+ border: string;
243
+ color: string;
244
+ '&:disabled': {
245
+ cursor: string;
246
+ background: string;
247
+ color: string;
248
+ };
249
+ '&:hover': {
250
+ '&:not([disabled])': {
251
+ background: string;
252
+ };
253
+ '&:disabled': {};
254
+ };
255
+ padding: string;
256
+ fontSize: string;
257
+ fontFamily: string;
258
+ cursor: string;
259
+ fontWeight: number;
260
+ display: string;
261
+ alignItems: string;
262
+ '&&': {
263
+ borderRadius: string;
264
+ };
265
+ };
266
+ text: {
267
+ background: string;
268
+ color: string;
269
+ '&:hover': {
270
+ '&:not([disabled])': {
271
+ color: string;
272
+ };
273
+ '&:disabled': {};
274
+ };
275
+ '&:disabled': {
276
+ cursor: string;
277
+ background: string;
278
+ color: string;
279
+ };
280
+ padding: string;
281
+ fontSize: string;
282
+ fontFamily: string;
283
+ cursor: string;
284
+ fontWeight: number;
285
+ display: string;
286
+ alignItems: string;
287
+ '&&': {
288
+ borderRadius: string;
289
+ };
290
+ };
291
+ success: {
292
+ background: string;
293
+ color: string;
294
+ '&:disabled': {
295
+ cursor: string;
296
+ background: string;
297
+ color: string;
298
+ };
299
+ '&:hover': {
300
+ '&:not([disabled])': {
301
+ background: string;
302
+ };
303
+ '&:disabled': {};
304
+ };
305
+ padding: string;
306
+ fontSize: string;
307
+ fontFamily: string;
308
+ cursor: string;
309
+ fontWeight: number;
310
+ display: string;
311
+ alignItems: string;
312
+ '&&': {
313
+ borderRadius: string;
314
+ };
315
+ };
316
+ danger: {
317
+ background: string;
318
+ color: string;
319
+ '&:disabled': {
320
+ cursor: string;
321
+ background: string;
322
+ color: string;
323
+ };
324
+ '&:hover': {
325
+ '&:not([disabled])': {
326
+ background: string;
327
+ };
328
+ '&:disabled': {};
329
+ };
330
+ padding: string;
331
+ fontSize: string;
332
+ fontFamily: string;
333
+ cursor: string;
334
+ fontWeight: number;
335
+ display: string;
336
+ alignItems: string;
337
+ '&&': {
338
+ borderRadius: string;
339
+ };
340
+ };
341
+ circular: {
342
+ width: string;
343
+ height: string;
344
+ background: string;
345
+ borderRadius: string;
346
+ display: string;
347
+ justifyContent: string;
348
+ alignItems: string;
349
+ overflow: string;
350
+ cursor: string;
351
+ padding: string;
352
+ transition: string;
353
+ '&:hover': {
354
+ filter: string;
355
+ };
356
+ '&:active': {
357
+ transform: string;
358
+ };
359
+ };
360
+ };
361
+ cards: {
362
+ primary: {
363
+ background: string;
364
+ borderRadius: string;
365
+ };
366
+ };
367
+ flex: {
368
+ dexContainer: {
369
+ width: string;
370
+ maxWidth: string;
371
+ height: string;
372
+ background: string;
373
+ padding: string[];
374
+ borderRadius: string;
375
+ flexDirection: string;
376
+ };
377
+ v3SubDexContainer: {
378
+ width: string;
379
+ maxWidth: string;
380
+ height: string;
381
+ background: string;
382
+ padding: string[];
383
+ borderRadius: string;
384
+ margin: string;
385
+ flexDirection: string;
386
+ };
387
+ navContainer: {
388
+ height: string;
389
+ padding: string;
390
+ background: string;
391
+ borderRadius: string;
392
+ alignItems: string;
393
+ cursor: string;
394
+ transition: string;
395
+ '&:hover': {
396
+ filter: string;
397
+ };
398
+ '&:active': {
399
+ transform: string;
400
+ };
401
+ };
402
+ link: {
403
+ cursor: string;
404
+ textDecoration: string;
405
+ display: string;
406
+ '::after': {
407
+ content: string;
408
+ position: string;
409
+ background: string;
410
+ left: string;
411
+ bottom: string;
412
+ height: string;
413
+ width: string;
414
+ borderRadius: string;
415
+ transform: string;
416
+ transformOrigin: string;
417
+ transition: string;
418
+ backfaceVisibility: string;
419
+ };
420
+ ':hover::after': {
421
+ transform: string;
422
+ transformOrigin: string;
423
+ };
424
+ };
425
+ tag: {
426
+ padding: string;
427
+ borderRadius: string;
428
+ alignItems: string;
429
+ justifyContent: string;
430
+ };
431
+ };
432
+ switch: {
433
+ backgroundColor: string;
434
+ 'input:checked ~ &': {
435
+ backgroundColor: string;
436
+ };
437
+ };
438
+ };
439
+ export default components;
@@ -0,0 +1,2 @@
1
+ export declare const MOBILE_DISPLAY: string[];
2
+ export declare const DESKTOP_DISPLAY: string[];
@@ -0,0 +1,2 @@
1
+ import type { Theme } from 'theme-ui';
2
+ export declare const defaultTheme: Theme;
@@ -0,0 +1,10 @@
1
+ export type MediaQueries = {
2
+ xs: string;
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
6
+ xl: string;
7
+ xxl: string;
8
+ xxxl: string;
9
+ nav: string;
10
+ };
@@ -0,0 +1 @@
1
+ export declare const isNumber: (s: string) => boolean;
@@ -0,0 +1,8 @@
1
+ /** @jsxImportSource theme-ui */
2
+ import React from 'react';
3
+ import { JsonRpcSigner } from '@ethersproject/providers';
4
+ declare const ClaimLifi: ({ signer, theme }: {
5
+ signer?: JsonRpcSigner;
6
+ theme?: any;
7
+ }) => React.JSX.Element;
8
+ export default ClaimLifi;
@@ -0,0 +1,7 @@
1
+ /** @jsxImportSource theme-ui */
2
+ import React from 'react';
3
+ declare const ApiKeyInput: ({ apiKey, setApiKey }: {
4
+ apiKey: string;
5
+ setApiKey: (val: string) => void;
6
+ }) => React.JSX.Element;
7
+ export default ApiKeyInput;
@@ -0,0 +1,10 @@
1
+ /** @jsxImportSource theme-ui */
2
+ import React from 'react';
3
+ import { JsonRpcSigner } from '@ethersproject/providers';
4
+ declare const AvailableFeesComponent: ({ availableFees, integrator, signer, apiKey, }: {
5
+ availableFees?: any;
6
+ integrator: string;
7
+ signer?: JsonRpcSigner;
8
+ apiKey: string;
9
+ }) => React.JSX.Element;
10
+ export default AvailableFeesComponent;
@@ -0,0 +1,8 @@
1
+ /** @jsxImportSource theme-ui */
2
+ import React from 'react';
3
+ declare const IntegratorSelector: ({ integratorIds, integrator, setIntegrator, }: {
4
+ integratorIds: string[];
5
+ integrator: string;
6
+ setIntegrator: (val: string) => void;
7
+ }) => React.JSX.Element;
8
+ export default IntegratorSelector;
@@ -0,0 +1 @@
1
+ export { default } from './ClaimLifi';
@@ -0,0 +1 @@
1
+ export { default as ClaimLifi } from './ClaimLifi';