@stokr/components-library 2.3.0 → 2.3.1-2.1
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/api/StokrWeb3.js +3 -170
- package/dist/components/2FA/InstallAuthApp.js +0 -1
- package/dist/components/Button/Button-stoDetails.js +230 -0
- package/dist/components/ChartLegend/ChartLegend.js +7 -1
- package/dist/components/ChartLegend/ChartLegend.stories.js +5 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +3 -1
- package/dist/components/Checklist/UserChecklist.js +0 -34
- package/dist/components/Checklist/UserChecklist.stories.js +0 -28
- package/dist/components/FAQ/FAQ.js +14 -3
- package/dist/components/FAQ/FAQ.styles.js +22 -3
- package/dist/components/Footer/FooterMenu.js +31 -5
- package/dist/components/Footer/FooterMenu.styles.js +1 -1
- package/dist/components/Grid/Grid.styles.js +25 -5
- package/dist/components/Header/Header.js +1 -11
- package/dist/components/Header/Header.stories.js +0 -28
- package/dist/components/Input/Input.js +13 -4
- package/dist/components/Input/Input.styles.js +7 -3
- package/dist/components/Input/InputPassword.js +1 -1
- package/dist/components/Input/Select.js +23 -9
- package/dist/components/Input/Select.stories.js +1 -0
- package/dist/components/Input/Select.styles.js +6 -10
- package/dist/components/InvestCalculator/InvestCalculator.js +2 -4
- package/dist/components/MainMenu/MainMenu.js +1 -31
- package/dist/components/Modal/Modal.styles.js +5 -5
- package/dist/components/Modal/PaymentModal.js +15 -3
- package/dist/components/Modal/PaymentModal.stories.js +4 -2
- package/dist/components/ROI/ROIParkingo.js +356 -0
- package/dist/components/ROI/ROIPixelmatic.js +356 -0
- package/dist/components/SigningSubflow/index.js +0 -42
- package/dist/components/StepsProgress/StepsProgress.styles.js +1 -1
- package/dist/components/StokrLoader/StokrLoader.js +20 -3
- package/dist/components/SvgIcons/SocialFacebook.js +18 -13
- package/dist/components/SvgIcons/SocialLinkedIn.js +23 -13
- package/dist/components/SvgIcons/SocialTelegram.js +47 -13
- package/dist/components/SvgIcons/SocialTwitter.js +40 -14
- package/dist/components/SvgIcons/SocialYoutube.js +13 -13
- package/dist/components/Text/Text.styles.js +12 -2
- package/dist/components/ToDoList/ToDoList.js +1 -2
- package/dist/components/ToDoList/ToDoList.styles.js +1 -1
- package/dist/components/ToDoList/ToDoListTask.js +1 -8
- package/dist/components/ToDoList/ToDoListTask.stories.js +3 -1
- package/dist/components/TransactionDetails/TransactionDetails.js +1 -1
- package/dist/components/TransactionInfo/TransactionInfo.js +4 -1
- package/dist/components/icons/Facebook_Logo.png +0 -0
- package/dist/components/icons/LI-In-Bug.png +0 -0
- package/dist/components/icons/Telegram-Logo.png +0 -0
- package/dist/components/icons/X-logo-black.png +0 -0
- package/dist/components/icons/youtube_social_circle_red.png +0 -0
- package/dist/components/logo/Logo.js +89 -0
- package/dist/components/logo/index.js +27 -0
- package/dist/components/taxId/TaxId.stories.js +0 -1
- package/dist/components/taxId/register-taxid.js +6 -1
- package/dist/constants/globalVariables.js +1 -3
- package/dist/context/Auth.js +3 -2
- package/dist/index.js +55 -11
- package/dist/static/country-list.json +251 -0
- package/dist/styles/colors.js +2 -1
- package/dist/styles/global.js +1 -1
- package/dist/styles/theme.js +2 -1
- package/dist/utils/formatCurrencyValue.js +12 -6
- package/dist/utils/isUSInvestor.js +11 -0
- package/dist/utils/km_ify.js +4 -2
- package/package.json +1 -4
|
@@ -16,15 +16,32 @@ exports.FaqItems = FaqItems;
|
|
|
16
16
|
var FaqItem = _styledComponents.default.div.withConfig({
|
|
17
17
|
displayName: "FAQstyles__FaqItem",
|
|
18
18
|
componentId: "sc-dtvahh-1"
|
|
19
|
-
})(["& + &{margin-top:30px;}"])
|
|
19
|
+
})(["& + &{margin-top:30px;}", " ", ""], function (props) {
|
|
20
|
+
return props.center && "\n text-align:center;\n ";
|
|
21
|
+
}, function (props) {
|
|
22
|
+
return props.customContainerStyle;
|
|
23
|
+
});
|
|
20
24
|
exports.FaqItem = FaqItem;
|
|
21
25
|
var FaqTitle = _styledComponents.default.button.withConfig({
|
|
22
26
|
displayName: "FAQstyles__FaqTitle",
|
|
23
27
|
componentId: "sc-dtvahh-2"
|
|
24
|
-
})(["display:block;width:100%;position:relative;font-family:'Open Sans';font-weight:600;font-size:16px;line-height:24px;letter-spacing:0.4px;color:", ";padding:0;margin:0;outline:0;border:none;padding-right:30px;text-align:left;transition:color 0.2s;&:hover{color:inherit;}", ""], function (props) {
|
|
28
|
+
})(["display:block;width:100%;position:relative;font-family:'Open Sans';font-weight:600;font-size:16px;line-height:24px;letter-spacing:0.4px;color:", ";padding:0;margin:0;outline:0;border:none;padding-right:30px;text-align:left;transition:color 0.2s;background:none;&:hover{color:inherit;}", " ", " ", " ", " ", " ", ""], function (props) {
|
|
25
29
|
return _theme.default.cBlack;
|
|
30
|
+
}, function (props) {
|
|
31
|
+
return props.uppercase && "\n text-transform:uppercase;\n font-weight:700;\n letter-spacing: 0.6px;\n ";
|
|
32
|
+
}, function (_ref) {
|
|
33
|
+
var white = _ref.white;
|
|
34
|
+
return white && "\n color:white;\n ";
|
|
35
|
+
}, function (_ref2) {
|
|
36
|
+
var center = _ref2.center;
|
|
37
|
+
return center && "\n text-align:center;\n ";
|
|
38
|
+
}, function (_ref3) {
|
|
39
|
+
var hideIcon = _ref3.hideIcon;
|
|
40
|
+
return hideIcon && "\n padding-right:0;\n ";
|
|
26
41
|
}, function (props) {
|
|
27
42
|
return props.isActive && "\n ".concat(FaqDropdownIcon, " {\n transform: rotate(180deg);\n }\n ");
|
|
43
|
+
}, function (props) {
|
|
44
|
+
return props.modalViewMore && "\n font-size: 12px;\n font-weight: 300;\n line-height: 16px;\n padding-left: 28px;\n cursor: pointer;\n text-decoration: underline;\n\n &:hover {\n color: initial;\n }\n ";
|
|
28
45
|
});
|
|
29
46
|
exports.FaqTitle = FaqTitle;
|
|
30
47
|
var FaqDropdownIcon = _styledComponents.default.i.attrs({
|
|
@@ -44,5 +61,7 @@ exports.FaqContent = FaqContent;
|
|
|
44
61
|
var FaqText = _styledComponents.default.div.withConfig({
|
|
45
62
|
displayName: "FAQstyles__FaqText",
|
|
46
63
|
componentId: "sc-dtvahh-5"
|
|
47
|
-
})(["padding:0;padding-top:30px;padding-bottom:10px;font-weight:300;font-size:16px;line-height:24px;letter-spacing:0.4px;"])
|
|
64
|
+
})(["padding:0;padding-top:30px;padding-bottom:10px;font-weight:300;font-size:16px;line-height:24px;letter-spacing:0.4px;", ""], function (props) {
|
|
65
|
+
return props.largeSpacing && "\n padding-bottom: 30px;\n\n ";
|
|
66
|
+
});
|
|
48
67
|
exports.FaqText = FaqText;
|
|
@@ -12,6 +12,11 @@ var _SvgIcons = require("../SvgIcons");
|
|
|
12
12
|
var _FooterMenu = require("./FooterMenu.styles");
|
|
13
13
|
var _customHooks = require("../../utils/customHooks");
|
|
14
14
|
var _rwd = require("../../styles/rwd");
|
|
15
|
+
var _Facebook_Logo = _interopRequireDefault(require("../icons/Facebook_Logo.png"));
|
|
16
|
+
var _LIInBug = _interopRequireDefault(require("../icons/LI-In-Bug.png"));
|
|
17
|
+
var _XLogoBlack = _interopRequireDefault(require("../icons/X-logo-black.png"));
|
|
18
|
+
var _youtube_social_circle_red = _interopRequireDefault(require("../icons/youtube_social_circle_red.png"));
|
|
19
|
+
var _TelegramLogo = _interopRequireDefault(require("../icons/Telegram-Logo.png"));
|
|
15
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -43,13 +48,34 @@ CollapseWrapper.defaultProps = {
|
|
|
43
48
|
isOpened: false
|
|
44
49
|
};
|
|
45
50
|
var socialSvg = {
|
|
46
|
-
linkedin: /*#__PURE__*/_react.default.createElement(
|
|
51
|
+
linkedin: /*#__PURE__*/_react.default.createElement("img", {
|
|
52
|
+
src: _LIInBug.default,
|
|
53
|
+
alt: "Linkedin Logo",
|
|
54
|
+
style: {
|
|
55
|
+
padding: 1
|
|
56
|
+
}
|
|
57
|
+
}),
|
|
47
58
|
instagram: /*#__PURE__*/_react.default.createElement(_SvgIcons.SocialInstagram, null),
|
|
48
|
-
twitter: /*#__PURE__*/_react.default.createElement(
|
|
49
|
-
|
|
50
|
-
|
|
59
|
+
twitter: /*#__PURE__*/_react.default.createElement("img", {
|
|
60
|
+
src: _XLogoBlack.default,
|
|
61
|
+
alt: "X Logo",
|
|
62
|
+
style: {
|
|
63
|
+
padding: 4
|
|
64
|
+
}
|
|
65
|
+
}),
|
|
66
|
+
facebook: /*#__PURE__*/_react.default.createElement("img", {
|
|
67
|
+
src: _Facebook_Logo.default,
|
|
68
|
+
alt: "Facebook Logo"
|
|
69
|
+
}),
|
|
70
|
+
telegram: /*#__PURE__*/_react.default.createElement("img", {
|
|
71
|
+
src: _TelegramLogo.default,
|
|
72
|
+
alt: "Telegram Logo"
|
|
73
|
+
}),
|
|
51
74
|
//medium: <SocialMedium />,
|
|
52
|
-
youtube: /*#__PURE__*/_react.default.createElement(
|
|
75
|
+
youtube: /*#__PURE__*/_react.default.createElement("img", {
|
|
76
|
+
src: _youtube_social_circle_red.default,
|
|
77
|
+
alt: "Youtube Logo"
|
|
78
|
+
}),
|
|
53
79
|
reddit: /*#__PURE__*/_react.default.createElement(_SvgIcons.SocialReddit, null)
|
|
54
80
|
};
|
|
55
81
|
exports.socialSvg = socialSvg;
|
|
@@ -55,7 +55,7 @@ exports.Link = Link;
|
|
|
55
55
|
var SocialLink = _styledComponents.default.a.withConfig({
|
|
56
56
|
displayName: "FooterMenustyles__SocialLink",
|
|
57
57
|
componentId: "sc-40ddqf-7"
|
|
58
|
-
})(["position:relative;display:inline-block;width:40px;height:40px;border-radius:20px;
|
|
58
|
+
})(["position:relative;display:inline-block;width:40px;height:40px;border-radius:20px;transition:background-color 0.2s;& > svg,img{height:40px;width:40px;}&:focus,&:hover{opacity:0.8;}"]);
|
|
59
59
|
exports.SocialLink = SocialLink;
|
|
60
60
|
var HiringTotalNumber = _styledComponents.default.span.withConfig({
|
|
61
61
|
displayName: "FooterMenustyles__HiringTotalNumber",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.Wrapper = exports.Row = exports.PageWrapper = exports.FlexContainer = exports.Column = void 0;
|
|
6
|
+
exports.Wrapper = exports.Row = exports.PageWrapper = exports.FlexGrid = exports.FlexContainer = exports.Column = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _grid = _interopRequireDefault(require("../../styles/grid"));
|
|
9
9
|
var _rwd = _interopRequireDefault(require("../../styles/rwd"));
|
|
@@ -22,7 +22,7 @@ exports.Wrapper = Wrapper;
|
|
|
22
22
|
var Row = _styledComponents.default.div.withConfig({
|
|
23
23
|
displayName: "Gridstyles__Row",
|
|
24
24
|
componentId: "sc-1jreazl-1"
|
|
25
|
-
})(["display:flex;flex-wrap:wrap;text-align:left;", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
25
|
+
})(["display:flex;flex-wrap:wrap;text-align:left;", " ", " ", " ", " ", " ", " ", " ", " height:", ";"], function (props) {
|
|
26
26
|
return props.center && "\n justify-content: center;\n ";
|
|
27
27
|
}, function (props) {
|
|
28
28
|
return props.right && "\n justify-content: right;\n ";
|
|
@@ -34,23 +34,36 @@ var Row = _styledComponents.default.div.withConfig({
|
|
|
34
34
|
return props.dashboard && "\n margin: -16px;\n ";
|
|
35
35
|
}, function (props) {
|
|
36
36
|
return props.nowrap && "\n flex-wrap: nowrap;\n ";
|
|
37
|
+
}, function (props) {
|
|
38
|
+
return props.fullWidth && "\n width: 100%;\n ";
|
|
37
39
|
}, _rwd.default.MLarge(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n "])), function (props) {
|
|
38
40
|
return props.main && "\n z-index: 0;\n min-height: calc(100vh - ".concat(_spacing.default.footerHeight, "px);\n padding-top: ").concat(_spacing.default.headerHeight, "px;\n ");
|
|
39
|
-
})
|
|
41
|
+
}), function (_ref) {
|
|
42
|
+
var isConfirmModal = _ref.isConfirmModal;
|
|
43
|
+
return isConfirmModal && '400px';
|
|
44
|
+
}); // ID has padding-top as 85px instead of headerHeight (which is set to 96px)
|
|
40
45
|
exports.Row = Row;
|
|
41
46
|
var Column = _styledComponents.default.div.withConfig({
|
|
42
47
|
displayName: "Gridstyles__Column",
|
|
43
48
|
componentId: "sc-1jreazl-2"
|
|
44
|
-
})(["display:flex;flex-direction:column;width:100%;", " ", " ", " ", " ", " ", ""], function (props) {
|
|
49
|
+
})(["display:flex;flex-direction:column;width:100%;", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
50
|
+
return props.halfWidth && "\n width: 50%;\n\n @media screen and (max-width: 500px) {\n width: 100%;\n }\n\n ";
|
|
51
|
+
}, function (props) {
|
|
52
|
+
return props.textAlignHopper && "\n > div:last-child {\n text-align:right;\n }\n\n @media screen and (max-width: 767px) {\n > div:last-child {\n text-align:left;\n }\n }\n\n @media screen and (max-width: 500px) {\n > div > div {\n justify-content: left;\n margin-top: 1rem;\n }\n }\n\n ";
|
|
53
|
+
}, function (props) {
|
|
45
54
|
return props.center && "\n justify-content: center;\n ";
|
|
46
55
|
}, function (props) {
|
|
47
56
|
return props.alignCenter && "\n align-items: center;\n ";
|
|
57
|
+
}, function (props) {
|
|
58
|
+
return props.alignRight && "\n text-align: right;\n align-items: center;\n ";
|
|
48
59
|
}, function (props) {
|
|
49
60
|
return props.spaceBetween && "\n justify-content: space-between;\n ";
|
|
50
61
|
}, function (props) {
|
|
51
62
|
return props.flexEnd && "\n justify-content: flex-end;\n ";
|
|
52
63
|
}, function (props) {
|
|
53
64
|
return props.mainRelative && "\n padding: 18px 0 28px;\n ";
|
|
65
|
+
}, function (props) {
|
|
66
|
+
return props.isConfirmModal && "\n justify-content: center;\n overflow: hidden;\n\n @media screen and (max-width: 767px) {\n height: 100vh;\n }\n ";
|
|
54
67
|
}, _rwd.default.Medium(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n "])), function (props) {
|
|
55
68
|
return props.part && "\n width: ".concat((0, _grid.default)(props.part, props.full), ";\n ");
|
|
56
69
|
}, function (props) {
|
|
@@ -72,4 +85,11 @@ var FlexContainer = _styledComponents.default.div.withConfig({
|
|
|
72
85
|
})(["display:flex;", ""], function (props) {
|
|
73
86
|
return props.itemsCenter && "align-items:center;";
|
|
74
87
|
});
|
|
75
|
-
exports.FlexContainer = FlexContainer;
|
|
88
|
+
exports.FlexContainer = FlexContainer;
|
|
89
|
+
var FlexGrid = _styledComponents.default.div.withConfig({
|
|
90
|
+
displayName: "Gridstyles__FlexGrid",
|
|
91
|
+
componentId: "sc-1jreazl-5"
|
|
92
|
+
})(["display:flex;flex-wrap:wrap;", ""], function (props) {
|
|
93
|
+
return props.borderBottom && "\n border-bottom: 1px solid #e1e1e1;\n ";
|
|
94
|
+
});
|
|
95
|
+
exports.FlexGrid = FlexGrid;
|
|
@@ -362,17 +362,7 @@ var Header = function Header(_ref3) {
|
|
|
362
362
|
onClick: function onClick() {
|
|
363
363
|
return toggleMenu('main');
|
|
364
364
|
}
|
|
365
|
-
}, "Liquid Addresses")), /*#__PURE__*/_react.default.createElement(_Header.
|
|
366
|
-
href: "".concat(newPlatformUrlForUserMenu, "/settings/algorand-address"),
|
|
367
|
-
onClick: function onClick() {
|
|
368
|
-
return toggleMenu('main');
|
|
369
|
-
}
|
|
370
|
-
}, "Algorand Addresses")), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
371
|
-
href: "".concat(newPlatformUrlForUserMenu, "/settings/ethereum-address"),
|
|
372
|
-
onClick: function onClick() {
|
|
373
|
-
return toggleMenu('main');
|
|
374
|
-
}
|
|
375
|
-
}, "Ethereum Addresses")))))), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuPart, {
|
|
365
|
+
}, "Liquid Addresses")))))), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuPart, {
|
|
376
366
|
withPadding: true,
|
|
377
367
|
flexColumnt: true,
|
|
378
368
|
noPaddingTop: !signupFlow,
|
|
@@ -75,34 +75,6 @@ var userDev = {
|
|
|
75
75
|
country: 'Germany',
|
|
76
76
|
is_risk_questionnaire_finished: false,
|
|
77
77
|
kyc_status: 'Accepted',
|
|
78
|
-
investor_algo_addresses: [{
|
|
79
|
-
name: 'another test',
|
|
80
|
-
address: 'TVNC3QHY5LXKBMX7RGJG3B25EJPW73V5WMMEMUB33V2HEPEA2H77UPOYTQ',
|
|
81
|
-
whitelistedAssets: ['20918100']
|
|
82
|
-
}, {
|
|
83
|
-
name: 'my algo test',
|
|
84
|
-
address: 'YFQD2RZIIZQSO67F6MG3DJVXLMF2QU4EKGBPVXVIF3XTLKGWUZ36WMG56A',
|
|
85
|
-
whitelistedAssets: ['20918100', '20013569', '92363258']
|
|
86
|
-
}, {
|
|
87
|
-
name: 'test algosigner',
|
|
88
|
-
address: 'Y4UGMCSV3B43Y7QAM2VUVPETDDO5JVHDRB3ZC5MBF2VTUTCP4X437A65JU',
|
|
89
|
-
whitelistedAssets: ['20918100', '20013569', '92363258']
|
|
90
|
-
}, {
|
|
91
|
-
name: 'test new address',
|
|
92
|
-
address: 'B36KBEDYKBUSEMNRITZFFE7VINEPMP5MJTNUCRM5S5AP6GNWMWW4B5PEQI',
|
|
93
|
-
whitelistedAssets: ['20918100', '92363258']
|
|
94
|
-
}, {
|
|
95
|
-
address: 'E3Q6B5Q7JHFCEWBGGXJGEMXVAL6MSJBUHCGURZRMASRTJFDD6RQTJHPF4A',
|
|
96
|
-
whitelistedAssets: ['20918100', '20013569']
|
|
97
|
-
}, {
|
|
98
|
-
name: 'test 30/05',
|
|
99
|
-
address: 'RTQWXHRWZCBT5FF474T4DTL3VRVHERY3Q6LWLMPP24IXNOYIXBDQXJ2Z6M',
|
|
100
|
-
whitelistedAssets: ['20918100']
|
|
101
|
-
}, {
|
|
102
|
-
name: 'test info 01/06',
|
|
103
|
-
address: 'U4EIZEMPRGC77P6HJSFCLWYE4NUMNILU5DBZCKV44QMJ3TQOADRETVVAZU',
|
|
104
|
-
whitelistedAssets: ['20918100', '92363258']
|
|
105
|
-
}],
|
|
106
78
|
wallets: [{
|
|
107
79
|
_id: '641dd681b08b7543f433af1e',
|
|
108
80
|
userId: '61851acd5b9a890013297b12',
|
|
@@ -29,7 +29,11 @@ var Input = function Input(props) {
|
|
|
29
29
|
touched = props.touched,
|
|
30
30
|
readOnly = props.readOnly,
|
|
31
31
|
inverted = props.inverted,
|
|
32
|
-
dashboard = props.dashboard
|
|
32
|
+
dashboard = props.dashboard,
|
|
33
|
+
disabled = props.disabled,
|
|
34
|
+
inputWrapStyle = props.inputWrapStyle,
|
|
35
|
+
wrapperStyle = props.wrapperStyle,
|
|
36
|
+
autoHeightLabel = props.autoHeightLabel;
|
|
33
37
|
var _useState = (0, _react.useState)(false),
|
|
34
38
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35
39
|
labelUp = _useState2[0],
|
|
@@ -66,15 +70,20 @@ var Input = function Input(props) {
|
|
|
66
70
|
setLabelUp(focus || !!value);
|
|
67
71
|
};
|
|
68
72
|
return /*#__PURE__*/_react.default.createElement(_Input.Wrapper, {
|
|
69
|
-
inverted: inverted
|
|
73
|
+
inverted: inverted,
|
|
74
|
+
style: wrapperStyle
|
|
70
75
|
}, label && /*#__PURE__*/_react.default.createElement(_Input.Label, {
|
|
71
76
|
isUp: labelUp,
|
|
72
77
|
active: hasFocus,
|
|
73
78
|
error: error && touched,
|
|
74
|
-
htmlFor: id
|
|
79
|
+
htmlFor: id,
|
|
80
|
+
autoHeightLabel: autoHeightLabel
|
|
75
81
|
}, label), /*#__PURE__*/_react.default.createElement(_Input.InputWrap, {
|
|
76
82
|
error: error && touched,
|
|
77
|
-
dashboard: dashboard
|
|
83
|
+
dashboard: dashboard,
|
|
84
|
+
disabled: disabled,
|
|
85
|
+
style: inputWrapStyle,
|
|
86
|
+
autoHeightLabel: autoHeightLabel
|
|
78
87
|
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
79
88
|
type: type,
|
|
80
89
|
id: id,
|
|
@@ -15,15 +15,17 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
15
15
|
var Wrapper = _styledComponents.default.div.withConfig({
|
|
16
16
|
displayName: "Inputstyles__Wrapper",
|
|
17
17
|
componentId: "sc-1osolkh-0"
|
|
18
|
-
})(["position:relative;display:block;input:-webkit-autofill{border:none;border-bottom:1px solid #
|
|
18
|
+
})(["position:relative;display:block;input:-webkit-autofill{border:none;border-bottom:1px solid #e1e1e1;box-shadow:0 0 0px 1000px #fff inset;transition:background-color 5000s ease-in-out 0s;}", ""], function (props) {
|
|
19
19
|
return props.inverted && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " {\n color: ", ";\n opacity: 0.4;\n }\n ", " {\n & > input {\n color: ", ";\n border-bottom-color: ", ";\n\n &:focus,\n &:hover {\n border-bottom-color: rgba(255, 255, 255, 0.4);\n }\n }\n }\n "])), Label, _theme.default.cWhite, InputWrap, _theme.default.cWhite, _theme.default.cWhite);
|
|
20
20
|
});
|
|
21
21
|
exports.Wrapper = Wrapper;
|
|
22
22
|
var Label = _styledComponents.default.label.withConfig({
|
|
23
23
|
displayName: "Inputstyles__Label",
|
|
24
24
|
componentId: "sc-1osolkh-1"
|
|
25
|
-
})(["z-index:11;display:block;position:absolute;left:0;top:-2px;font-weight:500;height:12px;font-size:11px;line-height:20px;letter-spacing:2px;text-transform:uppercase;color:", ";pointer-events:none;transform:translateY(15px);transition:transform 0.2s,font-size 0.2s;", " ", " ", ""], function (props) {
|
|
25
|
+
})(["z-index:11;display:block;position:absolute;left:0;top:-2px;font-weight:500;height:12px;font-size:11px;line-height:20px;letter-spacing:2px;text-transform:uppercase;color:", ";pointer-events:none;transform:translateY(15px);transition:transform 0.2s,font-size 0.2s;", " ", " ", " ", ""], function (props) {
|
|
26
26
|
return _theme.default.cBlack;
|
|
27
|
+
}, function (props) {
|
|
28
|
+
return props.autoHeightLabel && "\n height:auto;\n position: relative;\n ";
|
|
27
29
|
}, function (props) {
|
|
28
30
|
return props.isUp && "\n font-size: 10px;\n transform: translateY(0);\n ";
|
|
29
31
|
}, function (props) {
|
|
@@ -35,10 +37,12 @@ exports.Label = Label;
|
|
|
35
37
|
var InputWrap = _styledComponents.default.div.withConfig({
|
|
36
38
|
displayName: "Inputstyles__InputWrap",
|
|
37
39
|
componentId: "sc-1osolkh-2"
|
|
38
|
-
})(["position:relative;& > input{z-index:0;font-family:'Open sans';display:block;width:100%;height:40px;font-weight:600;font-size:12px;line-height:18px;padding:15px 0;padding-bottom:5px;box-shadow:none;border:0;outline:0;border-top:1px solid transparent;border-bottom:1px solid ", ";color:", ";background-color:transparent;transition:border-color 0.2s
|
|
40
|
+
})(["position:relative;& > input{z-index:0;font-family:'Open sans';display:block;width:100%;height:40px;font-weight:600;font-size:12px;line-height:18px;padding:15px 0;padding-bottom:5px;box-shadow:none;border:0;outline:0;border-top:1px solid transparent;border-bottom:1px solid ", ";color:", ";background-color:transparent;transition:border-color 0.2s;", " &:focus,&:hover{border-top-color:transparent;border-bottom-color:", ";}&::placeholder{color:transparent;opacity:0;}}", " ", ""], function (props) {
|
|
39
41
|
return _theme.default.cGrey;
|
|
40
42
|
}, function (props) {
|
|
41
43
|
return _theme.default.cBlack;
|
|
44
|
+
}, function (props) {
|
|
45
|
+
return props.autoHeightLabel && "\n height:20px;\n padding-top:0;\n ";
|
|
42
46
|
}, function (props) {
|
|
43
47
|
return _theme.default.cPrimary;
|
|
44
48
|
}, function (props) {
|
|
@@ -126,7 +126,7 @@ var InputPassword = function InputPassword(props) {
|
|
|
126
126
|
// <InfoIcon position="bottom" title={info} noMarginLeft />
|
|
127
127
|
// </InfoIconWrapper>
|
|
128
128
|
// )
|
|
129
|
-
_react.default.createElement(_react.default.Fragment, null), /*#__PURE__*/_react.default.createElement(_InputPassword.CapslockIndicator, null, isCapslockOn &&
|
|
129
|
+
_react.default.createElement(_react.default.Fragment, null), /*#__PURE__*/_react.default.createElement(_InputPassword.CapslockIndicator, null, isCapslockOn && /*#__PURE__*/_react.default.createElement(_SvgIcons.CapsLockSvg, null))));
|
|
130
130
|
};
|
|
131
131
|
exports.InputPassword = InputPassword;
|
|
132
132
|
InputPassword.propTypes = {
|
|
@@ -34,10 +34,14 @@ DropdownIndicator.propTypes = {
|
|
|
34
34
|
selectProps: _propTypes.default.instanceOf(Object).isRequired
|
|
35
35
|
};
|
|
36
36
|
var SelectMenuListWithScroll = function SelectMenuListWithScroll(props) {
|
|
37
|
-
var children = props.children
|
|
37
|
+
var children = props.children,
|
|
38
|
+
selectProps = props.selectProps;
|
|
39
|
+
var _selectProps$maxMenuH = selectProps.maxMenuHeight,
|
|
40
|
+
maxMenuHeight = _selectProps$maxMenuH === void 0 ? 300 : _selectProps$maxMenuH;
|
|
38
41
|
return /*#__PURE__*/_react.default.createElement(_Select.SelectMenuList, {
|
|
39
42
|
autoHeight: true,
|
|
40
|
-
autoHeightMax:
|
|
43
|
+
autoHeightMax: maxMenuHeight,
|
|
44
|
+
fullHeight: true
|
|
41
45
|
}, children);
|
|
42
46
|
};
|
|
43
47
|
SelectMenuListWithScroll.propTypes = {
|
|
@@ -52,7 +56,8 @@ var Select = function Select(props) {
|
|
|
52
56
|
error = props.error,
|
|
53
57
|
touched = props.touched,
|
|
54
58
|
value = props.value,
|
|
55
|
-
disabled = props.disabled
|
|
59
|
+
disabled = props.disabled,
|
|
60
|
+
menuHeight = props.menuHeight;
|
|
56
61
|
var _useState = (0, _react.useState)(!!value),
|
|
57
62
|
_useState2 = _slicedToArray(_useState, 2),
|
|
58
63
|
labelUp = _useState2[0],
|
|
@@ -109,26 +114,35 @@ var Select = function Select(props) {
|
|
|
109
114
|
}),
|
|
110
115
|
placeholder: "",
|
|
111
116
|
isSearchable: search,
|
|
117
|
+
maxMenuHeight: menuHeight,
|
|
112
118
|
styles: {
|
|
113
119
|
control: function control() {
|
|
114
120
|
return _Select.SelectControl;
|
|
115
121
|
},
|
|
116
|
-
menu: function menu() {
|
|
117
|
-
return
|
|
122
|
+
menu: function menu(baseStyle, state) {
|
|
123
|
+
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
124
|
+
marginTop: 0,
|
|
125
|
+
zIndex: 1000,
|
|
126
|
+
SelectMenu: _Select.SelectMenu
|
|
127
|
+
});
|
|
118
128
|
},
|
|
119
|
-
option: function option() {
|
|
120
|
-
return
|
|
129
|
+
option: function option(baseStyle, state) {
|
|
130
|
+
return _objectSpread({
|
|
131
|
+
fontWeight: state.isSelected || state.isFocused ? 'bold' : 'normal',
|
|
132
|
+
cursor: 'pointer'
|
|
133
|
+
}, _Select.SelectOption);
|
|
121
134
|
},
|
|
122
135
|
selectContainer: function selectContainer() {
|
|
123
136
|
return _Select.SelectContainer;
|
|
124
137
|
},
|
|
125
138
|
valueContainer: function valueContainer(baseStyle) {
|
|
126
139
|
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
127
|
-
padding: 0
|
|
128
|
-
marginLeft: '-2px'
|
|
140
|
+
padding: 0
|
|
141
|
+
//marginLeft: '-2px',
|
|
129
142
|
});
|
|
130
143
|
}
|
|
131
144
|
},
|
|
145
|
+
|
|
132
146
|
components: {
|
|
133
147
|
DropdownIndicator: DropdownIndicator,
|
|
134
148
|
IndicatorSeparator: null,
|
|
@@ -13,33 +13,29 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
16
|
-
var SelectControl = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &&& {\n z-index: 10 !important;\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n height: 40px;\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n padding: 15px 0;\n padding-bottom: 5px;\n border-radius: 0;\n box-shadow: none;\n border: 0;\n border-top: 1px solid transparent;\n border-bottom: 1px solid #
|
|
16
|
+
var SelectControl = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &&& {\n z-index: 10 !important;\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n height: 40px;\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n padding: 15px 0;\n padding-bottom: 5px;\n border-radius: 0;\n box-shadow: none;\n border: 0;\n border-top: 1px solid transparent;\n border-bottom: 1px solid #e1e1e1;\n color: #202020;\n background-color: transparent;\n transition: border-color 0.2s;\n cursor: pointer;\n\n &:hover {\n box-shadow: none;\n border-top-color: transparent;\n border-bottom-color: #0050ca;\n }\n\n &.active {\n z-index: 12 !important;\n }\n }\n"])));
|
|
17
17
|
exports.SelectControl = SelectControl;
|
|
18
|
-
var SelectMenu = (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n
|
|
18
|
+
var SelectMenu = (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-top: -1px;\n border-radius: 0;\n box-shadow: none;\n border: 0;\n border-top: 1px solid #e1e1e1 !important;\n border-bottom: 1px solid #e1e1e1 !important;\n background-color: #ffffff;\n opacity: 999 !important;\n"])));
|
|
19
19
|
exports.SelectMenu = SelectMenu;
|
|
20
20
|
var SelectMenuList = (0, _styledComponents.default)(_ComponentScroll2.default).withConfig({
|
|
21
21
|
displayName: "Selectstyles__SelectMenuList",
|
|
22
22
|
componentId: "sc-1wc1ybn-0"
|
|
23
|
-
})(["", "{right:6px;}"], _ComponentScroll.TrackV);
|
|
23
|
+
})(["&&&{overflow:hidden;", "{right:6px;}}"], _ComponentScroll.TrackV);
|
|
24
24
|
exports.SelectMenuList = SelectMenuList;
|
|
25
|
-
var SelectOption = (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
26
|
-
return props.isFocused && "\n font-weight: bold;\n ";
|
|
27
|
-
}, function (props) {
|
|
28
|
-
return props.isSelected && "\n font-weight: bold;\n ";
|
|
29
|
-
});
|
|
25
|
+
var SelectOption = (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n padding: 8px 0 !important;\n padding-left: 4px !important;\n font-size: 12px;\n line-height: 18px;\n border: 0;\n background-color: transparent;\n color: #202020;\n\n &:hover {\n background-color: transparent;\n font-weight: bold;\n }\n"])));
|
|
30
26
|
exports.SelectOption = SelectOption;
|
|
31
27
|
var SelectContainer = (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n z-index: 100;\n ", "\n"])), function (props) {
|
|
32
28
|
return props.selectProps.menuIsOpen && "\n z-index: 150 !important;\n ";
|
|
33
29
|
});
|
|
34
30
|
exports.SelectContainer = SelectContainer;
|
|
35
|
-
var SelectValueContainer = (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n &&& {\n
|
|
31
|
+
var SelectValueContainer = (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n &&& {\n padding-left: 0;\n margin-left: -2px;\n }\n"])));
|
|
36
32
|
exports.SelectValueContainer = SelectValueContainer;
|
|
37
33
|
var SelectIcon = _styledComponents.default.i.attrs({
|
|
38
34
|
className: 'ion ion-ios-arrow-down'
|
|
39
35
|
}).withConfig({
|
|
40
36
|
displayName: "Selectstyles__SelectIcon",
|
|
41
37
|
componentId: "sc-1wc1ybn-1"
|
|
42
|
-
})(["&&&{transition:0.3s transform;transform:rotate(0);", "}"], function (props) {
|
|
38
|
+
})(["&&&{transition:0.3s transform;transform:rotate(0);color:#202020;", "}"], function (props) {
|
|
43
39
|
return props.isMenuOpen && "\n transform: rotate(180deg);\n ";
|
|
44
40
|
});
|
|
45
41
|
exports.SelectIcon = SelectIcon;
|
|
@@ -34,7 +34,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
34
34
|
//import { tokenDecimals } from '../../constants/decimals'
|
|
35
35
|
|
|
36
36
|
var InvestCalculatorCurrencies = {
|
|
37
|
-
ETH: 'eth',
|
|
38
37
|
EUR: 'eur',
|
|
39
38
|
GUSD: 'gusd',
|
|
40
39
|
USDT: 'usdt',
|
|
@@ -63,13 +62,12 @@ var InvestCalculator = /*#__PURE__*/function (_PureComponent) {
|
|
|
63
62
|
tokens: 0,
|
|
64
63
|
currencyValue: 0,
|
|
65
64
|
selectedCurrencyValue: 0,
|
|
66
|
-
selectedCurrency: _this.props.userSelectedCurrency === '
|
|
65
|
+
selectedCurrency: _this.props.userSelectedCurrency === 'gemini' ? InvestCalculatorCurrencies.GUSD : InvestCalculatorCurrencies.USDT,
|
|
67
66
|
// selectedCurrency: InvestCalculatorCurrencies.ETH,
|
|
68
67
|
errors: {}
|
|
69
68
|
});
|
|
70
69
|
_defineProperty(_assertThisInitialized(_this), "normalizeCurrencySelected", function (currencySelected) {
|
|
71
70
|
if (currencySelected === 'euro') return 'eur';
|
|
72
|
-
if (currencySelected === 'ether') return 'eth';
|
|
73
71
|
if (currencySelected === 'gemini') return 'gusd';
|
|
74
72
|
if (currencySelected === 'tether') return 'usdt';
|
|
75
73
|
});
|
|
@@ -271,7 +269,7 @@ var InvestCalculator = /*#__PURE__*/function (_PureComponent) {
|
|
|
271
269
|
}, errors.tokens)), /*#__PURE__*/_react.default.createElement(_InvestCalculator.EqualSign, null, "="), /*#__PURE__*/_react.default.createElement(_InvestCalculator.Container, null, isIban ? /*#__PURE__*/_react.default.createElement(_InvestCalculator.Title, {
|
|
272
270
|
error: !!errors.tokens
|
|
273
271
|
}, "\u20AC value") : /*#__PURE__*/_react.default.createElement(_InvestCalculator.Title, {
|
|
274
|
-
error: selectedCurrency === InvestCalculatorCurrencies.
|
|
272
|
+
error: selectedCurrency === InvestCalculatorCurrencies.GUSD && !!errors.currencyValue || selectedCurrency === InvestCalculatorCurrencies.USDT && !!errors.currencyValue
|
|
275
273
|
}, userSelectedCurrency === 'ether' ? 'ETH VALUE' : userSelectedCurrency === 'gemini' ? 'GUSD VALUE' : 'USDT VALUE')
|
|
276
274
|
// <SelectWrapper>
|
|
277
275
|
// <Select
|
|
@@ -177,21 +177,7 @@ var MainMenu = /*#__PURE__*/function (_PureComponent) {
|
|
|
177
177
|
}
|
|
178
178
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
179
179
|
style: spanStyleForMenu
|
|
180
|
-
}, "Liquid Addresses")), /*#__PURE__*/_react.default.createElement(
|
|
181
|
-
isActive: this.checkActive('algorand-address'),
|
|
182
|
-
onClick: function onClick() {
|
|
183
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/algorand-address"));
|
|
184
|
-
}
|
|
185
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
186
|
-
style: spanStyleForMenu
|
|
187
|
-
}, "Algorand Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
188
|
-
isActive: this.checkActive('ethereum-address'),
|
|
189
|
-
onClick: function onClick() {
|
|
190
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/ethereum-address"));
|
|
191
|
-
}
|
|
192
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
193
|
-
style: spanStyleForMenu
|
|
194
|
-
}, "Ethereum Addresses")))))), !isAdmin && /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
180
|
+
}, "Liquid Addresses")))))), !isAdmin && /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
195
181
|
isOpened: isScrollDown,
|
|
196
182
|
hasNestedCollapse: true
|
|
197
183
|
}, /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOptions, null, /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
@@ -211,22 +197,6 @@ var MainMenu = /*#__PURE__*/function (_PureComponent) {
|
|
|
211
197
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
212
198
|
style: spanStyleForMenu
|
|
213
199
|
}, "Liquid Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
214
|
-
scrollDown: true,
|
|
215
|
-
isActive: this.checkActive('algorand-address'),
|
|
216
|
-
onClick: function onClick() {
|
|
217
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/algorand-address"));
|
|
218
|
-
}
|
|
219
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
220
|
-
style: spanStyleForMenu
|
|
221
|
-
}, "Algorand Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
222
|
-
scrollDown: true,
|
|
223
|
-
isActive: this.checkActive('ethereum-address'),
|
|
224
|
-
onClick: function onClick() {
|
|
225
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/ethereum-address"));
|
|
226
|
-
}
|
|
227
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
228
|
-
style: spanStyleForMenu
|
|
229
|
-
}, "Ethereum Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
230
200
|
scrollDown: true,
|
|
231
201
|
onClick: function onClick() {
|
|
232
202
|
_this2.setScrollUp();
|
|
@@ -38,7 +38,7 @@ var Box = _styledComponents.default.div.withConfig({
|
|
|
38
38
|
return props.kyc && "\n width: 100vw;\n height: 100vh;\n max-width: 1024px!important;\n max-height: 768px!important;\n ";
|
|
39
39
|
}, _rwd.default.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: ", ";\n\n ", "\n "])), (0, _grid.default)(12), function (props) {
|
|
40
40
|
return props.thin && "\n max-width: ".concat((0, _grid.default)(8), ";\n ");
|
|
41
|
-
}), _rwd.default.XLarge(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-width: ", ";\n\n ", "\n "])), (0, _grid.default)(
|
|
41
|
+
}), _rwd.default.XLarge(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n //max-width: ", ";\n\n ", "\n "])), (0, _grid.default)(11), function (props) {
|
|
42
42
|
return props.thin && "\n max-width: ".concat((0, _grid.default)(8), ";\n ");
|
|
43
43
|
}), function (_ref) {
|
|
44
44
|
var isRegisterEntity = _ref.isRegisterEntity;
|
|
@@ -53,7 +53,7 @@ exports.ModalInnerSmartContractAddress = ModalInnerSmartContractAddress;
|
|
|
53
53
|
var ModalInnerWithBorder = _styledComponents.default.div.withConfig({
|
|
54
54
|
displayName: "Modalstyles__ModalInnerWithBorder",
|
|
55
55
|
componentId: "sc-9hc271-4"
|
|
56
|
-
})(["border-radius:10px;border:1px solid ", ";padding:25px 35px;margin-top:39px;", " ", " ", " ", " ", " ", " p{color:", ";font-size:14px;font-weight:300;letter-spacing:0.53px;line-height:22px;text-align:left;margin:0;}"], _colors.default.
|
|
56
|
+
})(["border-radius:10px;border:1px solid ", ";padding:25px 35px;margin-top:39px;", " ", " ", " ", " ", " ", " p{color:", ";font-size:14px;font-weight:300;letter-spacing:0.53px;line-height:22px;text-align:left;margin:0;}"], _colors.default.lightGrey, function (props) {
|
|
57
57
|
return props.bottomRadius0 && "\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n ";
|
|
58
58
|
}, function (props) {
|
|
59
59
|
return props.topRadius0 && "\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n ";
|
|
@@ -76,7 +76,7 @@ var ModalInner = _styledComponents.default.div.withConfig({
|
|
|
76
76
|
}, function (props) {
|
|
77
77
|
return props.center && "\n text-align: center;\n ";
|
|
78
78
|
}, function (props) {
|
|
79
|
-
return props.background && "\n background-color: ".concat(_colors.default.
|
|
79
|
+
return props.background && "\n background-color: ".concat(_colors.default.lightGrey, ";\n ");
|
|
80
80
|
}, function (props) {
|
|
81
81
|
return props.modalBot && "\n background-color: ".concat(_colors.default.orangishRed, ";\n color: ").concat(_colors.default.white, ";\n flex-grow: 0 !important;\n height: auto;\n ");
|
|
82
82
|
}, function (props) {
|
|
@@ -86,7 +86,7 @@ var ModalInner = _styledComponents.default.div.withConfig({
|
|
|
86
86
|
}, _rwd.default.Medium(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 53px ", ";\n\n ", "\n\n ", "\n\n /* missing tiny */\n "])), (0, _grid.default)(1, 12), function (props) {
|
|
87
87
|
return props.left && "\n padding: 88px ".concat((0, _grid.default)(1, 12), ";\n ");
|
|
88
88
|
}, function (props) {
|
|
89
|
-
return props.modalTop && "\n padding-bottom: 43px;\n border-right: 1px solid ".concat(_colors.default.
|
|
89
|
+
return props.modalTop && "\n padding-bottom: 43px;\n border-right: 1px solid ".concat(_colors.default.lightGrey, ";\n ");
|
|
90
90
|
}), _rwd.default.XLarge(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding: 53px ", ";\n\n ", "\n\n ", "\n\n /* missing tiny */\n "])), (0, _grid.default)(1, 10), function (props) {
|
|
91
91
|
return props.left && "\n padding: 88px ".concat((0, _grid.default)(1, 10), ";\n ");
|
|
92
92
|
}, function (props) {
|
|
@@ -136,7 +136,7 @@ exports.ModalTitle = ModalTitle;
|
|
|
136
136
|
var ModalScroll = _styledComponents.default.div.withConfig({
|
|
137
137
|
displayName: "Modalstyles__ModalScroll",
|
|
138
138
|
componentId: "sc-9hc271-12"
|
|
139
|
-
})(["height:100%;overflow-y:auto;padding:0 12px;margin:0 -12px;", " &::-webkit-scrollbar{width:4px;}&::-webkit-scrollbar-track{background-color:", ";}&::-webkit-scrollbar-thumb{background-color:", ";}&::-webkit-scrollbar-thumb:window-inactive{background-color:", ";}"], _rwd.default.Large(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n padding: 0 32px;\n margin: 0 -32px;\n "]))), _colors.default.
|
|
139
|
+
})(["height:100%;overflow-y:auto;padding:0 12px;margin:0 -12px;", " &::-webkit-scrollbar{width:4px;}&::-webkit-scrollbar-track{background-color:", ";}&::-webkit-scrollbar-thumb{background-color:", ";}&::-webkit-scrollbar-thumb:window-inactive{background-color:", ";}"], _rwd.default.Large(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n padding: 0 32px;\n margin: 0 -32px;\n "]))), _colors.default.lightGrey, _colors.default.orangishRed, _colors.default.orangishRedDark);
|
|
140
140
|
exports.ModalScroll = ModalScroll;
|
|
141
141
|
var ModalSection = _styledComponents.default.div.withConfig({
|
|
142
142
|
displayName: "Modalstyles__ModalSection",
|
|
@@ -18,7 +18,7 @@ var _formatCurrencyValue = require("../../utils/formatCurrencyValue");
|
|
|
18
18
|
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
19
19
|
var _Icon = _interopRequireWildcard(require("../Icon/Icon.style"));
|
|
20
20
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
21
|
-
var _excluded = ["data", "user", "isModalOpen", "onModalClose", "onCTAClick", "isRedemption", "noCTA", "CTAText", "additionalInfoRight", "withTimer", "error", "secondsRemaining", "modalTitle", "txTextInRed", "sendTokenTextRight", "numberOfSecuritiesText"];
|
|
21
|
+
var _excluded = ["data", "user", "isModalOpen", "onModalClose", "onCTAClick", "isRedemption", "noCTA", "CTAText", "additionalInfoRight", "withTimer", "error", "secondsRemaining", "modalTitle", "txTextInRed", "sendTokenTextRight", "numberOfSecuritiesText", "formatAmountInLink"];
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -59,15 +59,24 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
59
59
|
sendTokenTextRight = _ref$sendTokenTextRig === void 0 ? /*#__PURE__*/_react.default.createElement("p", null, "Send your ", data === null || data === void 0 ? void 0 : data.tokenSymbolToSend, " to the treasury wallet below.") : _ref$sendTokenTextRig,
|
|
60
60
|
_ref$numberOfSecuriti = _ref.numberOfSecuritiesText,
|
|
61
61
|
numberOfSecuritiesText = _ref$numberOfSecuriti === void 0 ? 'Redeem securities' : _ref$numberOfSecuriti,
|
|
62
|
+
_ref$formatAmountInLi = _ref.formatAmountInLink,
|
|
63
|
+
formatAmountInLink = _ref$formatAmountInLi === void 0 ? true : _ref$formatAmountInLi,
|
|
62
64
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
63
65
|
var projectData = data.projectData,
|
|
64
66
|
tokenAmount = data.tokenAmount,
|
|
65
67
|
tokenSymbolToSend = data.tokenSymbolToSend,
|
|
66
68
|
tokenSymbol = data.tokenSymbol,
|
|
67
69
|
createdAt = data.createdAt,
|
|
70
|
+
_data$tokenDecimals = data.tokenDecimals,
|
|
71
|
+
tokenDecimals = _data$tokenDecimals === void 0 ? 2 : _data$tokenDecimals,
|
|
68
72
|
GAID = data.GAID,
|
|
69
73
|
currencyType = data.currencyType;
|
|
70
|
-
var
|
|
74
|
+
var newTokenAmount = tokenAmount;
|
|
75
|
+
if (formatAmountInLink) {
|
|
76
|
+
//https://github.com/ElementsProject/elements/issues/805
|
|
77
|
+
newTokenAmount = (tokenAmount * Math.pow(10, tokenDecimals - 8)).toFixed(8);
|
|
78
|
+
}
|
|
79
|
+
var paymentlink = "liquidnetwork:".concat(projectData === null || projectData === void 0 ? void 0 : projectData.companyWallet, "?amount=").concat(newTokenAmount, "&assetid=").concat(projectData === null || projectData === void 0 ? void 0 : projectData.secondaryAssetId);
|
|
71
80
|
var isKYCVerified = (user === null || user === void 0 ? void 0 : user.kyc_status) === 'Accepted';
|
|
72
81
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
73
82
|
isOpen: isModalOpen,
|
|
@@ -75,7 +84,10 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
75
84
|
}, /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, null, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h3", null, modalTitle)), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
76
85
|
noPaddingHorizontal: true
|
|
77
86
|
}, /*#__PURE__*/_react.default.createElement(_Grid.Row, null, /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
78
|
-
part: 8
|
|
87
|
+
part: 8,
|
|
88
|
+
style: {
|
|
89
|
+
paddingRight: 20
|
|
90
|
+
}
|
|
79
91
|
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("p", null, "Request date:", ' ', /*#__PURE__*/_react.default.createElement("strong", null, (0, _momentTimezone.default)(createdAt).tz('Europe/Berlin').format('DD MMM YYYY - HH:mm z'))), /*#__PURE__*/_react.default.createElement("p", null, "Your securities: ", /*#__PURE__*/_react.default.createElement("strong", null, " ", tokenSymbol)), /*#__PURE__*/_react.default.createElement("p", null, "Your AMP wallet:", /*#__PURE__*/_react.default.createElement(_CryptoAddress.default, {
|
|
80
92
|
noHead: true,
|
|
81
93
|
data: {
|