@ape.swap/bonds-sdk 1.0.447 → 1.0.449
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.
|
@@ -17,6 +17,6 @@ import { TooltipText } from '../../../enum/tooltips';
|
|
|
17
17
|
import '../../../scss/BondRowHeader.scss';
|
|
18
18
|
var BondRowHeader = function (_a) {
|
|
19
19
|
var inputValue = _a.inputValue, onInputChange = _a.onInputChange, onSort = _a.onSort;
|
|
20
|
-
return (_jsxs(Flex, __assign({ className: "container header-container" }, { children: [_jsxs(Flex, __assign({ className: "column column-tokens" }, { children: [_jsx(Flex, __assign({ className: "column column-search", sx: { width: '100%', maxWidth: ['200px', '200px', '200px', '340px'] } }, { children: _jsx(Input, { value: inputValue, onChange: onInputChange, variant: "search", sx: { fontWeight: 400, background: 'white2', height: '30px', fontSize: '14px' }, width: '100%', placeholder: 'Search...' }) })), _jsx(Flex, { className: "column column-tokenicons" })] })), _jsxs(Flex, __assign({ className: "column column-bondinfo" }, { children: [_jsxs(Flex, __assign({ className: "column column-discount" }, { children: [_jsx(Flex, __assign({ className: "column tooltip" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(18%, -4%)" }, { children: ["Discount", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column header-icon", onClick: function () { return onSort('discount'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsxs(Flex, __assign({ className: "column column-arr" }, { children: [_jsx(Flex, __assign({ className: "column tooltip" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(8%, -5%)" }, { children: ["ARR", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column header-icon", onClick: function () { return onSort('arr'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsxs(Flex, __assign({ className: "column column-terms" }, { children: [_jsx(Flex, __assign({ className: "column tooltip" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomRight", transformTip: "translate(11%, -5%)" }, { children: ["Terms", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column header-icon", onClick: function () { return onSort('terms'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsxs(Flex, __assign({ className: "column column-tokensremaining" }, { children: [_jsx(Flex, __assign({ className: "column tooltip" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.TokensRemaining }), width: "230px", placement: "bottomRight", transformTip: "translate(12%, -4%)" }, { children: ["Tokens Remaining", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column header-icon", onClick: function () { return onSort('tokensRemaining'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsx(Flex, { className: "column column-hotbond" })] }))] })));
|
|
20
|
+
return (_jsxs(Flex, __assign({ className: "container header-container" }, { children: [_jsxs(Flex, __assign({ className: "column column-tokens" }, { children: [_jsx(Flex, __assign({ className: "column column-search", sx: { width: '100%', maxWidth: ['200px', '200px', '200px', '340px'] } }, { children: _jsx(Input, { value: inputValue, onChange: onInputChange, variant: "search", sx: { fontWeight: 400, background: 'white2', height: '30px', fontSize: '14px', color: 'white' }, width: '100%', placeholder: 'Search...' }) })), _jsx(Flex, { className: "column column-tokenicons" })] })), _jsxs(Flex, __assign({ className: "column column-bondinfo" }, { children: [_jsxs(Flex, __assign({ className: "column column-discount" }, { children: [_jsx(Flex, __assign({ className: "column tooltip" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(18%, -4%)" }, { children: ["Discount", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column header-icon", onClick: function () { return onSort('discount'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsxs(Flex, __assign({ className: "column column-arr" }, { children: [_jsx(Flex, __assign({ className: "column tooltip" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(8%, -5%)" }, { children: ["ARR", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column header-icon", onClick: function () { return onSort('arr'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsxs(Flex, __assign({ className: "column column-terms" }, { children: [_jsx(Flex, __assign({ className: "column tooltip" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomRight", transformTip: "translate(11%, -5%)" }, { children: ["Terms", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column header-icon", onClick: function () { return onSort('terms'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsxs(Flex, __assign({ className: "column column-tokensremaining" }, { children: [_jsx(Flex, __assign({ className: "column tooltip" }, { children: _jsxs(TooltipBubble, __assign({ body: _jsx(Flex, { children: TooltipText.TokensRemaining }), width: "230px", placement: "bottomRight", transformTip: "translate(12%, -4%)" }, { children: ["Tokens Remaining", _jsx(Flex, __assign({ className: "column header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }))] })) })), _jsx(Flex, __assign({ className: "column header-icon", onClick: function () { return onSort('tokensRemaining'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsx(Flex, { className: "column column-hotbond" })] }))] })));
|
|
21
21
|
};
|
|
22
22
|
export default BondRowHeader;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
.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
1
|
.container.header-container {
|
|
13
2
|
display: flex;
|
|
14
3
|
justify-content: space-around;
|
|
15
4
|
align-items: center;
|
|
5
|
+
flex-direction: row;
|
|
16
6
|
width: 100%;
|
|
17
7
|
padding-top: 5px;
|
|
18
8
|
padding-left: 15px;
|
|
@@ -22,22 +12,6 @@
|
|
|
22
12
|
color: #78787D;
|
|
23
13
|
}
|
|
24
14
|
|
|
25
|
-
.container.bondrow-container {
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: row;
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 70px;
|
|
30
|
-
justify-content: space-around;
|
|
31
|
-
background-color: var(--theme-ui-colors-white2);
|
|
32
|
-
margin-bottom: 5px;
|
|
33
|
-
border-radius: 10px;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
|
|
36
|
-
&:hover {
|
|
37
|
-
background-color: var(--theme-ui-colors-white3);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
15
|
.column.column-tokens {
|
|
42
16
|
display: flex;
|
|
43
17
|
align-items: center;
|
package/dist/scss/Bonds.scss
CHANGED
|
@@ -7,134 +7,4 @@
|
|
|
7
7
|
padding-left: 100px;
|
|
8
8
|
padding-right: 100px;
|
|
9
9
|
padding-bottom: 50px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.container.header-container {
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: space-around;
|
|
15
|
-
align-items: center;
|
|
16
|
-
width: 100%;
|
|
17
|
-
padding-top: 5px;
|
|
18
|
-
padding-left: 15px;
|
|
19
|
-
padding-right: 15px;
|
|
20
|
-
padding-bottom: 5px;
|
|
21
|
-
font-size: 12px;
|
|
22
|
-
color: #78787D;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.container.bondrow-container {
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: row;
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 70px;
|
|
30
|
-
justify-content: space-around;
|
|
31
|
-
background-color: var(--theme-ui-colors-white2);
|
|
32
|
-
margin-bottom: 5px;
|
|
33
|
-
border-radius: 10px;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
|
|
36
|
-
&:hover {
|
|
37
|
-
background-color: var(--theme-ui-colors-white3);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.column.column-tokens {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: start;
|
|
45
|
-
width: 40%;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.column.column-search {
|
|
49
|
-
padding-bottom: 15px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.column.column-tokeninfoname {
|
|
53
|
-
width: 100%;
|
|
54
|
-
height: 100%;
|
|
55
|
-
flex-direction: row;
|
|
56
|
-
justify-content: start;
|
|
57
|
-
align-items: center;
|
|
58
|
-
padding-left: 20px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.column.column-tokenname {
|
|
62
|
-
width: 100%;
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
justify-content: start;
|
|
65
|
-
align-items: center;
|
|
66
|
-
padding-left: 20px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.column.column-tokenicons {
|
|
70
|
-
width: 20%;
|
|
71
|
-
flex-direction: row;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: start;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.column.column-bondinfo {
|
|
77
|
-
flex-direction: row;
|
|
78
|
-
align-items: center;
|
|
79
|
-
justify-content: end;
|
|
80
|
-
width: 70%;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.column.column-discount {
|
|
84
|
-
flex-direction: row;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
align-items: center;
|
|
87
|
-
width: 20%;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.discount-positive {
|
|
91
|
-
color: #38A611;
|
|
92
|
-
width: 20%;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.discount-negative {
|
|
96
|
-
color: #DF4141;
|
|
97
|
-
width: 20%;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.column.column-arr {
|
|
101
|
-
flex-direction: row;
|
|
102
|
-
justify-content: center;
|
|
103
|
-
align-items: center;
|
|
104
|
-
width: 20%;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.column.column-terms {
|
|
108
|
-
flex-direction: row;
|
|
109
|
-
justify-content: center;
|
|
110
|
-
align-items: center;
|
|
111
|
-
width: 20%;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.column.column-tokensremaining {
|
|
115
|
-
flex-direction: row;
|
|
116
|
-
justify-content: center;
|
|
117
|
-
align-items: center;
|
|
118
|
-
width: 30%;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.column.column-hotbond {
|
|
122
|
-
flex-direction: row;
|
|
123
|
-
justify-content: center;
|
|
124
|
-
align-items: center;
|
|
125
|
-
width: 10%;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.column.tooltip {
|
|
129
|
-
flex-direction: row;
|
|
130
|
-
align-items: center;
|
|
131
|
-
justify-content: space-around;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.column.header-icon {
|
|
135
|
-
padding-left: 5px;
|
|
136
|
-
align-items: start;
|
|
137
|
-
justify-content: space-around;
|
|
138
|
-
cursor: pointer;
|
|
139
|
-
opacity: 0.6;
|
|
140
10
|
}
|