@ape.swap/bonds-sdk 3.0.9 → 3.0.10
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/dist/main.d.ts
CHANGED
|
@@ -5,4 +5,5 @@ import FullBondsView from './views/FullBondsView';
|
|
|
5
5
|
import ProjectView from './views/ProjectView';
|
|
6
6
|
import { generateImageFromTemplate } from './views/YourBondsModal/components/LinkShare/utils';
|
|
7
7
|
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
8
|
-
|
|
8
|
+
import SingleBond from './views/SingleBond';
|
|
9
|
+
export { Bonds, BondModal, YourBonds, FullBondsView, ProjectView, generateImageFromTemplate, ChainId, SingleBond };
|
package/dist/main.js
CHANGED
|
@@ -75369,12 +75369,7 @@ const colors$1 = {
|
|
|
75369
75369
|
white3: '#1F1D29',
|
|
75370
75370
|
white4: '#282632',
|
|
75371
75371
|
white5: '#312F3A',
|
|
75372
|
-
brandPrimary140: '#C1BDE7',
|
|
75373
|
-
navBar: 'rgba(22, 20, 32, 0.8)',
|
|
75374
75372
|
primaryButton: '#6560C5', //this should've been called just "primary"
|
|
75375
|
-
primaryShade: '#514CA133',
|
|
75376
|
-
secondary: '#E69275',
|
|
75377
|
-
footer: '#000000',
|
|
75378
75373
|
success: '#38A611',
|
|
75379
75374
|
error: '#DF4141',
|
|
75380
75375
|
yellow: '#FFB300',
|
|
@@ -75385,74 +75380,6 @@ const colors$1 = {
|
|
|
75385
75380
|
// Text-related colors
|
|
75386
75381
|
text: '#FAFAFA',
|
|
75387
75382
|
textDisabled: '#424242',
|
|
75388
|
-
home: {
|
|
75389
|
-
c1: 'radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(217, 217, 217, 0.02) 100%)',
|
|
75390
|
-
c2: 'radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(217, 217, 217, 0.02) 100%)',
|
|
75391
|
-
c3: 'radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(217, 217, 217, 0.02) 100%)',
|
|
75392
|
-
cShadow: 'transparent',
|
|
75393
|
-
hideCircles: '#0E0D16',
|
|
75394
|
-
title: 'linear-gradient(98.79deg, #6560C5 -2.37%, #E07753 100%)',
|
|
75395
|
-
shadowImage: 'rgba(101, 96, 197, 0.25)',
|
|
75396
|
-
},
|
|
75397
|
-
backgroundDisabled: '#3c3742',
|
|
75398
|
-
listTagBg: {
|
|
75399
|
-
ape: 'linear-gradient(99.09deg, rgba(161, 101, 82, 0.8) 0%, rgba(255, 179, 0, 0.8) 106.96%)',
|
|
75400
|
-
launch: 'rgba(213, 49, 49, 0.2)',
|
|
75401
|
-
reserve: 'rgba(90, 208, 109, 0.2)',
|
|
75402
|
-
liquidity: 'rgba(60, 106, 181, 0.19)',
|
|
75403
|
-
ark: 'rgba(208, 126, 90, 0.8)',
|
|
75404
|
-
hot: '#DF4141',
|
|
75405
|
-
new: '#38A611',
|
|
75406
|
-
default: '#38A611',
|
|
75407
|
-
auto: '#DF4141',
|
|
75408
|
-
beta: '#38A611',
|
|
75409
|
-
max: '#38A611',
|
|
75410
|
-
real_yield: '#F0B90B',
|
|
75411
|
-
bondLp: 'rgba(254, 185, 1, 0.2)',
|
|
75412
|
-
migration: '#6F6AC930',
|
|
75413
|
-
cex_fund: 'rgba(213, 49, 49, 0.2)',
|
|
75414
|
-
expired: '#E07753',
|
|
75415
|
-
permatlock: '#38A611',
|
|
75416
|
-
},
|
|
75417
|
-
listTagTextColor: {
|
|
75418
|
-
liquidity: '#3B78D3',
|
|
75419
|
-
cex_fund: '#D53131',
|
|
75420
|
-
},
|
|
75421
|
-
//
|
|
75422
|
-
body: '#FDFBF5',
|
|
75423
|
-
lvl1: '#F1EADA',
|
|
75424
|
-
lvl2: '#EADFC7',
|
|
75425
|
-
primaryBright: '#FAFAFA',
|
|
75426
|
-
primaryDark: '#0B0B0B',
|
|
75427
|
-
info: '#4D4040',
|
|
75428
|
-
secondaryButtonDisableBg: '#F1EADA',
|
|
75429
|
-
secondaryButtonDisableColor: 'rgba(66, 66, 66, 0.5)',
|
|
75430
|
-
buttonDisabledText: '#A09F9C',
|
|
75431
|
-
dividerColor: '#E2E2E2',
|
|
75432
|
-
textareaColor: '#4D4040',
|
|
75433
|
-
heading: '#4D4040',
|
|
75434
|
-
black: '#000000',
|
|
75435
|
-
gradient: 'linear-gradient(53.53deg, #A16552 15.88%, #E1B242 92.56%)',
|
|
75436
|
-
smartGradient: 'linear-gradient(94.44deg, #BA801E -9.73%, #E7CF67 40.14%, #BA801E 93.01%)',
|
|
75437
|
-
white2Opacity09: 'rgba(241, 234, 218, 0.50)',
|
|
75438
|
-
radioChecked: '#FAFAFA',
|
|
75439
|
-
navMenuLogo: '#C8BA9C',
|
|
75440
|
-
input: '#4D4040',
|
|
75441
|
-
primaryGray: '#4D40407F',
|
|
75442
|
-
gray: '#7A7A7A',
|
|
75443
|
-
brown: '#4D4040',
|
|
75444
|
-
hoveredYellow: '#FFDA00',
|
|
75445
|
-
hoveredSuccess: '#38A611B3',
|
|
75446
|
-
hoveredDanger: '#DF4141B3',
|
|
75447
|
-
modalOverlay: 'rgba(66, 66, 66, 0.5)',
|
|
75448
|
-
opacityBadge: 'rgba(66, 66, 66, 0.5)',
|
|
75449
|
-
gnanaWarningBackground: '#FFB300',
|
|
75450
|
-
moon: '#7A7A7A',
|
|
75451
|
-
island: '#4D4040',
|
|
75452
|
-
migration: '#6560C5',
|
|
75453
|
-
bg1: 'linear-gradient(180deg, #FFFFFF 0%, #EEDFC7 10%, #FFFFFF 40%, #FEFAE0 50%, #EEDFC7 100%), linear-gradient(180deg, #FEFCEC 27.58%, #EEDFC7 79.74%, #FEFAE0 131.91%, #F5ECDD 154.81%)',
|
|
75454
|
-
bg2: 'linear-gradient(180deg, #FEFCEC 27.58%, #EEDFC7 79.74%, #FEFAE0 131.91%, #F5ECDD 154.81%)',
|
|
75455
|
-
progressBar: 'linear-gradient(90deg, #312E7A 0%, #5C4FAE 41.5%, #AD6568 74.5%, #AD6E66 100%)',
|
|
75456
75383
|
};
|
|
75457
75384
|
|
|
75458
75385
|
const defaultTheme = Object.assign(Object.assign(Object.assign({}, baseTheme), components), { colors: Object.assign({}, colors$1) });
|
|
@@ -75535,14 +75462,15 @@ BigNumber$1.config({
|
|
|
75535
75462
|
DECIMAL_PLACES: 80,
|
|
75536
75463
|
});
|
|
75537
75464
|
const Providers = ({ children, theme }) => {
|
|
75465
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
75538
75466
|
return (jsx$2(ThemeUIProvider, { theme: Object.assign(Object.assign({}, defaultTheme), {
|
|
75539
75467
|
//@ts-ignore
|
|
75540
|
-
colors: Object.assign(Object.assign({}, defaultTheme.colors), { primaryButton: theme.colors.primaryButton, white1: theme.colors.white1, white2: theme.colors.white2, white3: theme.colors.white3, white4: theme.colors.white4, white5: theme.colors.white5, text: theme.colors.text, primaryBright: theme.colors.primaryBright }), radii: { normal: theme.radii } }), children: jsx$2(ModalProvider, { children: jsx$2(Popups, { children: children }) }) }));
|
|
75468
|
+
colors: Object.assign(Object.assign({}, defaultTheme.colors), { primaryButton: (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.primaryButton, white1: (_b = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _b === void 0 ? void 0 : _b.white1, white2: (_c = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _c === void 0 ? void 0 : _c.white2, white3: (_d = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _d === void 0 ? void 0 : _d.white3, white4: (_e = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _e === void 0 ? void 0 : _e.white4, white5: (_f = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _f === void 0 ? void 0 : _f.white5, text: (_g = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _g === void 0 ? void 0 : _g.text, primaryBright: (_h = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _h === void 0 ? void 0 : _h.primaryBright }), radii: { normal: theme === null || theme === void 0 ? void 0 : theme.radii } }), children: jsx$2(ModalProvider, { children: jsx$2(Popups, { children: children }) }) }));
|
|
75541
75469
|
};
|
|
75542
75470
|
|
|
75543
75471
|
const BondsWithProviders = (props) => {
|
|
75544
75472
|
useSDKConfig(props);
|
|
75545
|
-
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(Bonds, {}) }));
|
|
75473
|
+
return (jsx$2(Providers, { theme: props === null || props === void 0 ? void 0 : props.theme, children: jsx$2(Bonds, {}) }));
|
|
75546
75474
|
};
|
|
75547
75475
|
|
|
75548
75476
|
const YourBondsWithProviders = (props) => {
|
|
@@ -75557,7 +75485,7 @@ const BondModalWithProviders = (props) => {
|
|
|
75557
75485
|
|
|
75558
75486
|
const FullBondsViewWithProviders = (props) => {
|
|
75559
75487
|
useSDKConfig(props);
|
|
75560
|
-
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(FullBondsView, {}) }));
|
|
75488
|
+
return (jsx$2(Providers, { theme: props === null || props === void 0 ? void 0 : props.theme, children: jsx$2(FullBondsView, {}) }));
|
|
75561
75489
|
};
|
|
75562
75490
|
|
|
75563
75491
|
const styles$4 = {
|
|
@@ -91227,5 +91155,14 @@ const ProjectViewWithProviders = (props) => {
|
|
|
91227
91155
|
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(ProjectView, Object.assign({}, props)) }));
|
|
91228
91156
|
};
|
|
91229
91157
|
|
|
91158
|
+
const SingleBond = () => {
|
|
91159
|
+
return jsx$2(Flex, { children: "asd!" });
|
|
91160
|
+
};
|
|
91161
|
+
|
|
91162
|
+
const SingleBondWithProviders = (props) => {
|
|
91163
|
+
useSDKConfig(props);
|
|
91164
|
+
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(SingleBond, {}) }));
|
|
91165
|
+
};
|
|
91166
|
+
|
|
91230
91167
|
var ChainId = types.ChainId;
|
|
91231
|
-
export { BondModalWithProviders as BondModal, BondsWithProviders as Bonds, ChainId, FullBondsViewWithProviders as FullBondsView, ProjectViewWithProviders as ProjectView, YourBondsWithProviders as YourBonds, generateImageFromTemplate };
|
|
91168
|
+
export { BondModalWithProviders as BondModal, BondsWithProviders as Bonds, ChainId, FullBondsViewWithProviders as FullBondsView, ProjectViewWithProviders as ProjectView, SingleBondWithProviders as SingleBond, YourBondsWithProviders as YourBonds, generateImageFromTemplate };
|
package/dist/theme/colors.d.ts
CHANGED
|
@@ -4,12 +4,7 @@ declare const colors: {
|
|
|
4
4
|
white3: string;
|
|
5
5
|
white4: string;
|
|
6
6
|
white5: string;
|
|
7
|
-
brandPrimary140: string;
|
|
8
|
-
navBar: string;
|
|
9
7
|
primaryButton: string;
|
|
10
|
-
primaryShade: string;
|
|
11
|
-
secondary: string;
|
|
12
|
-
footer: string;
|
|
13
8
|
success: string;
|
|
14
9
|
error: string;
|
|
15
10
|
yellow: string;
|
|
@@ -18,72 +13,5 @@ declare const colors: {
|
|
|
18
13
|
textDisabledButton: string;
|
|
19
14
|
text: string;
|
|
20
15
|
textDisabled: string;
|
|
21
|
-
home: {
|
|
22
|
-
c1: string;
|
|
23
|
-
c2: string;
|
|
24
|
-
c3: string;
|
|
25
|
-
cShadow: string;
|
|
26
|
-
hideCircles: string;
|
|
27
|
-
title: string;
|
|
28
|
-
shadowImage: string;
|
|
29
|
-
};
|
|
30
|
-
backgroundDisabled: string;
|
|
31
|
-
listTagBg: {
|
|
32
|
-
ape: string;
|
|
33
|
-
launch: string;
|
|
34
|
-
reserve: string;
|
|
35
|
-
liquidity: string;
|
|
36
|
-
ark: string;
|
|
37
|
-
hot: string;
|
|
38
|
-
new: string;
|
|
39
|
-
default: string;
|
|
40
|
-
auto: string;
|
|
41
|
-
beta: string;
|
|
42
|
-
max: string;
|
|
43
|
-
real_yield: string;
|
|
44
|
-
bondLp: string;
|
|
45
|
-
migration: string;
|
|
46
|
-
cex_fund: string;
|
|
47
|
-
expired: string;
|
|
48
|
-
permatlock: string;
|
|
49
|
-
};
|
|
50
|
-
listTagTextColor: {
|
|
51
|
-
liquidity: string;
|
|
52
|
-
cex_fund: string;
|
|
53
|
-
};
|
|
54
|
-
body: string;
|
|
55
|
-
lvl1: string;
|
|
56
|
-
lvl2: string;
|
|
57
|
-
primaryBright: string;
|
|
58
|
-
primaryDark: string;
|
|
59
|
-
info: string;
|
|
60
|
-
secondaryButtonDisableBg: string;
|
|
61
|
-
secondaryButtonDisableColor: string;
|
|
62
|
-
buttonDisabledText: string;
|
|
63
|
-
dividerColor: string;
|
|
64
|
-
textareaColor: string;
|
|
65
|
-
heading: string;
|
|
66
|
-
black: string;
|
|
67
|
-
gradient: string;
|
|
68
|
-
smartGradient: string;
|
|
69
|
-
white2Opacity09: string;
|
|
70
|
-
radioChecked: string;
|
|
71
|
-
navMenuLogo: string;
|
|
72
|
-
input: string;
|
|
73
|
-
primaryGray: string;
|
|
74
|
-
gray: string;
|
|
75
|
-
brown: string;
|
|
76
|
-
hoveredYellow: string;
|
|
77
|
-
hoveredSuccess: string;
|
|
78
|
-
hoveredDanger: string;
|
|
79
|
-
modalOverlay: string;
|
|
80
|
-
opacityBadge: string;
|
|
81
|
-
gnanaWarningBackground: string;
|
|
82
|
-
moon: string;
|
|
83
|
-
island: string;
|
|
84
|
-
migration: string;
|
|
85
|
-
bg1: string;
|
|
86
|
-
bg2: string;
|
|
87
|
-
progressBar: string;
|
|
88
16
|
};
|
|
89
17
|
export default colors;
|