@ape.swap/bonds-sdk 1.0.444 → 1.0.446
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/components/Bonds/BondRows/{BondRowsHeader.d.ts → BondRowHeader.d.ts} +4 -4
- package/dist/components/Bonds/BondRows/{BondRowsHeader.js → BondRowHeader.js} +3 -3
- package/dist/components/Bonds/Bonds.js +1 -1
- package/package.json +1 -1
- /package/dist/scss/{BondRowsHeader.scss → BondRowHeader.scss} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @jsxImportSource theme-ui */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import '../../../scss/
|
|
4
|
-
interface
|
|
3
|
+
import '../../../scss/BondRowHeader.scss';
|
|
4
|
+
interface BondRowHeaderProps {
|
|
5
5
|
inputValue: string;
|
|
6
6
|
onInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
7
|
onSort: (key: 'discount' | 'arr' | 'terms' | 'tokensRemaining') => void;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
9
|
+
declare const BondRowHeader: React.FC<BondRowHeaderProps>;
|
|
10
|
+
export default BondRowHeader;
|
|
@@ -14,9 +14,9 @@ import { Flex } from 'theme-ui';
|
|
|
14
14
|
import { Input } from '../../uikit-sdk/Input';
|
|
15
15
|
import { Svg, TooltipBubble } from '../../uikit-sdk';
|
|
16
16
|
import { TooltipText } from '../../../enum/tooltips';
|
|
17
|
-
import '../../../scss/
|
|
18
|
-
var
|
|
17
|
+
import '../../../scss/BondRowHeader.scss';
|
|
18
|
+
var BondRowHeader = function (_a) {
|
|
19
19
|
var inputValue = _a.inputValue, onInputChange = _a.onInputChange, onSort = _a.onSort;
|
|
20
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" })] }))] })));
|
|
21
21
|
};
|
|
22
|
-
export default
|
|
22
|
+
export default BondRowHeader;
|
|
@@ -70,7 +70,7 @@ import { formatValue } from '../../utils/formatNumbers';
|
|
|
70
70
|
import { BLOCK_EXPLORER } from '../../config/constants/chains';
|
|
71
71
|
import BondRowsByChain from './BondRows/BondRowsByChain';
|
|
72
72
|
import '../../scss/Bonds.scss';
|
|
73
|
-
import BondRowsHeader from './BondRows/
|
|
73
|
+
import BondRowsHeader from './BondRows/BondRowHeader';
|
|
74
74
|
var Bonds = function (_a) {
|
|
75
75
|
var connectionString = _a.connectionString;
|
|
76
76
|
var _b = useWeb3React(), account = _b.account, isActive = _b.isActive;
|
package/package.json
CHANGED
|
File without changes
|