@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.
- package/README.md +1 -0
- package/dist/cjs/index.js +15505 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/App.d.ts +3 -0
- package/dist/cjs/types/components/Button/Button.d.ts +4 -0
- package/dist/cjs/types/components/Button/index.d.ts +1 -0
- package/dist/cjs/types/components/Button/styles.d.ts +3 -0
- package/dist/cjs/types/components/Button/types.d.ts +32 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +5 -0
- package/dist/cjs/types/components/Dropdown/DropdownItem.d.ts +4 -0
- package/dist/cjs/types/components/Dropdown/index.d.ts +3 -0
- package/dist/cjs/types/components/Dropdown/styles.d.ts +4 -0
- package/dist/cjs/types/components/Dropdown/types.d.ts +58 -0
- package/dist/cjs/types/components/Flex/index.d.ts +5 -0
- package/dist/cjs/types/components/Input/Input.d.ts +10 -0
- package/dist/cjs/types/components/Input/NumericInput.d.ts +11 -0
- package/dist/cjs/types/components/Input/index.d.ts +2 -0
- package/dist/cjs/types/components/Text/index.d.ts +4 -0
- package/dist/cjs/types/components/Text/types.d.ts +23 -0
- package/dist/cjs/types/components/index.d.ts +4 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/main.d.ts +1 -0
- package/dist/cjs/types/theme/base.d.ts +103 -0
- package/dist/cjs/types/theme/colors.d.ts +88 -0
- package/dist/cjs/types/theme/components.d.ts +439 -0
- package/dist/cjs/types/theme/display.d.ts +2 -0
- package/dist/cjs/types/theme/index.d.ts +2 -0
- package/dist/cjs/types/theme/types.d.ts +10 -0
- package/dist/cjs/types/utils/numbers.d.ts +1 -0
- package/dist/cjs/types/views/ClaimLifi/ClaimLifi.d.ts +8 -0
- package/dist/cjs/types/views/ClaimLifi/components/ApiKeyInput.d.ts +7 -0
- package/dist/cjs/types/views/ClaimLifi/components/AvailableFeesComponent.d.ts +10 -0
- package/dist/cjs/types/views/ClaimLifi/components/IntegratorSelector.d.ts +8 -0
- package/dist/cjs/types/views/ClaimLifi/index.d.ts +1 -0
- package/dist/cjs/types/views/index.d.ts +1 -0
- package/dist/esm/index.js +15480 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/App.d.ts +3 -0
- package/dist/esm/types/components/Button/Button.d.ts +4 -0
- package/dist/esm/types/components/Button/index.d.ts +1 -0
- package/dist/esm/types/components/Button/styles.d.ts +3 -0
- package/dist/esm/types/components/Button/types.d.ts +32 -0
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +5 -0
- package/dist/esm/types/components/Dropdown/DropdownItem.d.ts +4 -0
- package/dist/esm/types/components/Dropdown/index.d.ts +3 -0
- package/dist/esm/types/components/Dropdown/styles.d.ts +4 -0
- package/dist/esm/types/components/Dropdown/types.d.ts +58 -0
- package/dist/esm/types/components/Flex/index.d.ts +5 -0
- package/dist/esm/types/components/Input/Input.d.ts +10 -0
- package/dist/esm/types/components/Input/NumericInput.d.ts +11 -0
- package/dist/esm/types/components/Input/index.d.ts +2 -0
- package/dist/esm/types/components/Text/index.d.ts +4 -0
- package/dist/esm/types/components/Text/types.d.ts +23 -0
- package/dist/esm/types/components/index.d.ts +4 -0
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/esm/types/main.d.ts +1 -0
- package/dist/esm/types/theme/base.d.ts +103 -0
- package/dist/esm/types/theme/colors.d.ts +88 -0
- package/dist/esm/types/theme/components.d.ts +439 -0
- package/dist/esm/types/theme/display.d.ts +2 -0
- package/dist/esm/types/theme/index.d.ts +2 -0
- package/dist/esm/types/theme/types.d.ts +10 -0
- package/dist/esm/types/utils/numbers.d.ts +1 -0
- package/dist/esm/types/views/ClaimLifi/ClaimLifi.d.ts +8 -0
- package/dist/esm/types/views/ClaimLifi/components/ApiKeyInput.d.ts +7 -0
- package/dist/esm/types/views/ClaimLifi/components/AvailableFeesComponent.d.ts +10 -0
- package/dist/esm/types/views/ClaimLifi/components/IntegratorSelector.d.ts +8 -0
- package/dist/esm/types/views/ClaimLifi/index.d.ts +1 -0
- package/dist/esm/types/views/index.d.ts +1 -0
- package/dist/index.d.ts +93 -0
- package/package.json +55 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Button } from './Button';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps as ThemeUIButtonProps } from 'theme-ui';
|
|
3
|
+
export declare enum sizes {
|
|
4
|
+
SMALL = "sm",
|
|
5
|
+
MEDIUM = "md",
|
|
6
|
+
LARGE = "lg"
|
|
7
|
+
}
|
|
8
|
+
export declare const buttonFontSizes: Record<sizes | any, string>;
|
|
9
|
+
export declare const buttonLineHeight: Record<sizes | any, string>;
|
|
10
|
+
export declare const buttonPadding: Record<sizes | any, {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}>;
|
|
14
|
+
export declare enum variants {
|
|
15
|
+
PRIMARY = "primary",
|
|
16
|
+
SECONDARY = "secondary",
|
|
17
|
+
TERTIARY = "tertiary",
|
|
18
|
+
TEXT = "text",
|
|
19
|
+
SUCCESS = "success",
|
|
20
|
+
DANGER = "danger"
|
|
21
|
+
}
|
|
22
|
+
export type sizeProps = `${sizes}`;
|
|
23
|
+
export type variantProps = `${variants}`;
|
|
24
|
+
export interface ButtonProps extends Omit<ThemeUIButtonProps, 'sx'> {
|
|
25
|
+
variant?: variantProps;
|
|
26
|
+
size?: sizeProps;
|
|
27
|
+
startIcon?: ReactNode;
|
|
28
|
+
endIcon?: ReactNode;
|
|
29
|
+
fullWidth?: boolean;
|
|
30
|
+
load?: boolean;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export declare enum sizes {
|
|
3
|
+
SMALL = "sm",
|
|
4
|
+
MEDIUM = "md",
|
|
5
|
+
LARGE = "lg"
|
|
6
|
+
}
|
|
7
|
+
export declare const fontSizes: {
|
|
8
|
+
sm: number;
|
|
9
|
+
md: number;
|
|
10
|
+
lg: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const dropdownPadding: {
|
|
13
|
+
sm: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
md: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
lg: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const dropdownItemPadding: {
|
|
27
|
+
sm: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
};
|
|
31
|
+
md: {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
};
|
|
35
|
+
lg: {
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type sizeProps = `${sizes}`;
|
|
41
|
+
export interface DropdownProps {
|
|
42
|
+
component: React.ReactNode;
|
|
43
|
+
size?: sizeProps;
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}
|
|
46
|
+
export interface DropdownItemProps {
|
|
47
|
+
onClick?: () => void;
|
|
48
|
+
children?: ReactNode;
|
|
49
|
+
url?: string;
|
|
50
|
+
active?: boolean;
|
|
51
|
+
size?: sizeProps;
|
|
52
|
+
sx?: any;
|
|
53
|
+
}
|
|
54
|
+
export declare type Position = 'top' | 'top-right' | 'bottom';
|
|
55
|
+
export interface PositionProps {
|
|
56
|
+
position?: Position;
|
|
57
|
+
}
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type variant = 'search' | 'password' | 'text';
|
|
3
|
+
type inputStatus = 'default' | 'error' | 'success';
|
|
4
|
+
declare const Input: ({ variant, width, status, isLoading, ...props }: {
|
|
5
|
+
variant?: variant;
|
|
6
|
+
width?: string[];
|
|
7
|
+
status?: inputStatus;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
} | any) => React.JSX.Element;
|
|
10
|
+
export default Input;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @jsxImportSource theme-ui */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ThemeUIStyleObject } from 'theme-ui';
|
|
4
|
+
declare const NumericInput: ({ onUserInput, value, disabled, style, placeholder, }: {
|
|
5
|
+
onUserInput?: (input: string) => void;
|
|
6
|
+
value: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
style?: ThemeUIStyleObject;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export default NumericInput;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TextProps as ThemeUITextProps } from 'theme-ui';
|
|
2
|
+
export declare enum variants {
|
|
3
|
+
SMALL = "sm",
|
|
4
|
+
NORMAL = "md",
|
|
5
|
+
LARGE = "lg",
|
|
6
|
+
LINK = "link"
|
|
7
|
+
}
|
|
8
|
+
export declare enum weights {
|
|
9
|
+
LIGHT = "light",
|
|
10
|
+
NORMAL = "normal",
|
|
11
|
+
BOLD = "bold"
|
|
12
|
+
}
|
|
13
|
+
type variantProps = `${variants}`;
|
|
14
|
+
type weightProps = `${weights}` | number;
|
|
15
|
+
type sizeProps = string;
|
|
16
|
+
export interface TextProps extends Omit<ThemeUITextProps, 'sx'> {
|
|
17
|
+
variant?: variantProps;
|
|
18
|
+
weight?: weightProps;
|
|
19
|
+
color?: string;
|
|
20
|
+
size?: sizeProps;
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { MediaQueries } from './types';
|
|
2
|
+
export declare const breakpointMap: {
|
|
3
|
+
[key: string]: number;
|
|
4
|
+
};
|
|
5
|
+
declare const baseTheme: {
|
|
6
|
+
breakpoints: string[];
|
|
7
|
+
space: number[];
|
|
8
|
+
fontSizes: number[];
|
|
9
|
+
borderWidths: number[];
|
|
10
|
+
mediaQueries: MediaQueries;
|
|
11
|
+
fontWeights: {
|
|
12
|
+
light: number;
|
|
13
|
+
normal: number;
|
|
14
|
+
bold: number;
|
|
15
|
+
};
|
|
16
|
+
fonts: {
|
|
17
|
+
body: string;
|
|
18
|
+
poppins: string;
|
|
19
|
+
};
|
|
20
|
+
radii: {
|
|
21
|
+
small: string;
|
|
22
|
+
default: string;
|
|
23
|
+
normal: string;
|
|
24
|
+
card: string;
|
|
25
|
+
circle: string;
|
|
26
|
+
};
|
|
27
|
+
zIndices: {
|
|
28
|
+
dropdown: number;
|
|
29
|
+
modal: number;
|
|
30
|
+
};
|
|
31
|
+
styles: {
|
|
32
|
+
root: {
|
|
33
|
+
fontFamily: string;
|
|
34
|
+
webkitFontSmoothing: string;
|
|
35
|
+
fontWeight: number;
|
|
36
|
+
color: string;
|
|
37
|
+
bg: string;
|
|
38
|
+
textDecoration: string;
|
|
39
|
+
};
|
|
40
|
+
a: {
|
|
41
|
+
color: string;
|
|
42
|
+
textDecoration: string;
|
|
43
|
+
':hover': {
|
|
44
|
+
color: string;
|
|
45
|
+
textDecoration: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
nav: {
|
|
49
|
+
textDecoration: string;
|
|
50
|
+
breakpoints: string[];
|
|
51
|
+
a: {
|
|
52
|
+
textDecoration: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
progress: {
|
|
56
|
+
primary: string;
|
|
57
|
+
color: string;
|
|
58
|
+
background: string;
|
|
59
|
+
height: string;
|
|
60
|
+
};
|
|
61
|
+
hr: {
|
|
62
|
+
background: string;
|
|
63
|
+
height: string;
|
|
64
|
+
border: string;
|
|
65
|
+
};
|
|
66
|
+
h1: {
|
|
67
|
+
variant: string;
|
|
68
|
+
fontSize: string;
|
|
69
|
+
lineHeight: string;
|
|
70
|
+
};
|
|
71
|
+
h2: {
|
|
72
|
+
variant: string;
|
|
73
|
+
fontSize: string;
|
|
74
|
+
lineHeight: string;
|
|
75
|
+
};
|
|
76
|
+
h3: {
|
|
77
|
+
variant: string;
|
|
78
|
+
fontSize: string;
|
|
79
|
+
lineHeight: string;
|
|
80
|
+
};
|
|
81
|
+
h4: {
|
|
82
|
+
variant: string;
|
|
83
|
+
fontSize: string;
|
|
84
|
+
lineHeight: string;
|
|
85
|
+
};
|
|
86
|
+
h5: {
|
|
87
|
+
variant: string;
|
|
88
|
+
fontSize: string;
|
|
89
|
+
lineHeight: string;
|
|
90
|
+
};
|
|
91
|
+
banner: {
|
|
92
|
+
variant: string;
|
|
93
|
+
fontWeight: string;
|
|
94
|
+
fontSize: string;
|
|
95
|
+
lineHeight: string;
|
|
96
|
+
};
|
|
97
|
+
input: {
|
|
98
|
+
fontFamily: string;
|
|
99
|
+
fontWeight: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export default baseTheme;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
declare const abondColors: {
|
|
2
|
+
white1: string;
|
|
3
|
+
white2: string;
|
|
4
|
+
white3: string;
|
|
5
|
+
white4: string;
|
|
6
|
+
white5: string;
|
|
7
|
+
brandPrimary140: string;
|
|
8
|
+
navBar: string;
|
|
9
|
+
primaryButton: string;
|
|
10
|
+
secondary: string;
|
|
11
|
+
footer: string;
|
|
12
|
+
success: string;
|
|
13
|
+
error: string;
|
|
14
|
+
yellow: string;
|
|
15
|
+
primaryButtonDisable: string;
|
|
16
|
+
primaryButtonHovered: string;
|
|
17
|
+
textDisabledButton: string;
|
|
18
|
+
text: string;
|
|
19
|
+
textDisabled: string;
|
|
20
|
+
home: {
|
|
21
|
+
c1: string;
|
|
22
|
+
c2: string;
|
|
23
|
+
c3: string;
|
|
24
|
+
cShadow: string;
|
|
25
|
+
hideCircles: string;
|
|
26
|
+
title: string;
|
|
27
|
+
shadowImage: string;
|
|
28
|
+
};
|
|
29
|
+
backgroundDisabled: string;
|
|
30
|
+
listTagBg: {
|
|
31
|
+
ape: string;
|
|
32
|
+
launch: string;
|
|
33
|
+
reserve: string;
|
|
34
|
+
liquidity: string;
|
|
35
|
+
ark: string;
|
|
36
|
+
hot: string;
|
|
37
|
+
new: string;
|
|
38
|
+
default: string;
|
|
39
|
+
auto: string;
|
|
40
|
+
beta: string;
|
|
41
|
+
max: string;
|
|
42
|
+
real_yield: string;
|
|
43
|
+
bondLp: string;
|
|
44
|
+
migration: string;
|
|
45
|
+
cex_fund: string;
|
|
46
|
+
expired: string;
|
|
47
|
+
permatlock: string;
|
|
48
|
+
};
|
|
49
|
+
listTagTextColor: {
|
|
50
|
+
liquidity: string;
|
|
51
|
+
cex_fund: string;
|
|
52
|
+
};
|
|
53
|
+
body: string;
|
|
54
|
+
lvl1: string;
|
|
55
|
+
lvl2: string;
|
|
56
|
+
primaryBright: string;
|
|
57
|
+
primaryDark: string;
|
|
58
|
+
info: string;
|
|
59
|
+
secondaryButtonDisableBg: string;
|
|
60
|
+
secondaryButtonDisableColor: string;
|
|
61
|
+
buttonDisabledText: string;
|
|
62
|
+
dividerColor: string;
|
|
63
|
+
textareaColor: string;
|
|
64
|
+
heading: string;
|
|
65
|
+
black: string;
|
|
66
|
+
gradient: string;
|
|
67
|
+
smartGradient: string;
|
|
68
|
+
white2Opacity09: string;
|
|
69
|
+
radioChecked: string;
|
|
70
|
+
navMenuLogo: string;
|
|
71
|
+
input: string;
|
|
72
|
+
primaryGray: string;
|
|
73
|
+
gray: string;
|
|
74
|
+
brown: string;
|
|
75
|
+
hoveredYellow: string;
|
|
76
|
+
hoveredSuccess: string;
|
|
77
|
+
hoveredDanger: string;
|
|
78
|
+
modalOverlay: string;
|
|
79
|
+
opacityBadge: string;
|
|
80
|
+
gnanaWarningBackground: string;
|
|
81
|
+
moon: string;
|
|
82
|
+
island: string;
|
|
83
|
+
migration: string;
|
|
84
|
+
bg1: string;
|
|
85
|
+
bg2: string;
|
|
86
|
+
progressBar: string;
|
|
87
|
+
};
|
|
88
|
+
export default abondColors;
|