@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,3 @@
1
+ import React from 'react';
2
+ declare function App(): React.JSX.Element;
3
+ export default App;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ButtonProps } from './types';
3
+ declare const Button: ({ variant, size, load, children, startIcon, endIcon, fullWidth, disabled, ...props }: ButtonProps) => React.JSX.Element;
4
+ export default Button;
@@ -0,0 +1 @@
1
+ export { default as Button } from './Button';
@@ -0,0 +1,3 @@
1
+ import { ThemeUIStyleObject } from 'theme-ui';
2
+ declare const styles: Record<string, ThemeUIStyleObject>;
3
+ export default styles;
@@ -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,5 @@
1
+ /** @jsxImportSource theme-ui */
2
+ import React from 'react';
3
+ import { DropdownProps } from './types';
4
+ declare const Dropdown: React.FC<DropdownProps>;
5
+ export default Dropdown;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DropdownItemProps } from './types';
3
+ declare const DropdownItem: React.FC<DropdownItemProps>;
4
+ export default DropdownItem;
@@ -0,0 +1,3 @@
1
+ export { default as Dropdown } from './Dropdown';
2
+ export { default as DropdownItem } from './DropdownItem';
3
+ export type { DropdownProps, DropdownItemProps } from './types';
@@ -0,0 +1,4 @@
1
+ import { ThemeUIStyleObject } from 'theme-ui';
2
+ declare const styles: Record<string, ThemeUIStyleObject>;
3
+ export declare const dynamicStyles: Record<string, (props: any) => ThemeUIStyleObject>;
4
+ export default styles;
@@ -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,5 @@
1
+ import React from 'react';
2
+ declare const Flex: ({ children, ...props }: {
3
+ children: React.ReactNode;
4
+ } | any) => React.JSX.Element;
5
+ export default Flex;
@@ -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,2 @@
1
+ export { default as NumericInput } from './NumericInput';
2
+ export { default as Input } from './Input';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TextProps } from './types';
3
+ declare const Text: ({ variant, weight, size, children, color, ...props }: TextProps | any) => React.JSX.Element;
4
+ export default Text;
@@ -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,4 @@
1
+ export { Button } from './Button';
2
+ export { default as Text } from './Text';
3
+ export { default as Flex } from './Flex';
4
+ export { Dropdown, DropdownItem } from './Dropdown';
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './views';
@@ -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;