@coinswap-app/uikit 1.0.6 → 1.0.8
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/AddToCap/AddToCap.d.ts +56 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/IconButton.d.ts +55 -1
- package/dist/components/Button/types.d.ts +7 -3
- package/dist/components/Card/CardBody.d.ts +3 -1
- package/dist/components/Card/CardFooter.d.ts +3 -1
- package/dist/components/Card/types.d.ts +4 -0
- package/dist/components/EarnedCarouselWrapper/EarnedCarouselWrapperHeader.d.ts +3 -1
- package/dist/components/EarnedWrapper/EarnedWrapperHeader.d.ts +3 -1
- package/dist/components/Heading/Heading.d.ts +2 -2
- package/dist/components/InfoBox/InfoBoxBody.d.ts +3 -1
- package/dist/components/InfoBox/InfoBoxFooter.d.ts +3 -1
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Overlay/Overlay.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/Svg/types.d.ts +2 -2
- package/dist/components/Text/types.d.ts +2 -0
- package/dist/index.cjs.js +335 -316
- package/dist/index.esm.js +335 -316
- package/dist/widgets/ConnectVerifyPanel/components/ChangeProviderButton.d.ts +55 -1
- package/dist/widgets/ConnectVerifyPanel/components/LogoutButton.d.ts +55 -1
- package/dist/widgets/ConnectVerifyPanel/components/SettingsButton.d.ts +55 -1
- package/dist/widgets/Menu/components/MenuButton.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -333,26 +333,33 @@ var getThemeValue = function getThemeValue(path, fallback) {
|
|
|
333
333
|
var _templateObject$2b, _templateObject2$16, _templateObject3$O;
|
|
334
334
|
var rotate$1 = styledComponents.keyframes(_templateObject$2b || (_templateObject$2b = _taggedTemplateLiteral(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"])));
|
|
335
335
|
var spinStyle = styledComponents.css(_templateObject2$16 || (_templateObject2$16 = _taggedTemplateLiteral(["\n animation: ", " 2s linear infinite;\n"])), rotate$1);
|
|
336
|
-
var Svg = styledComponents.styled("svg")
|
|
336
|
+
var Svg = styledComponents.styled("svg").withConfig({
|
|
337
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
338
|
+
return !['$spin', '$opac'].includes(prop);
|
|
339
|
+
}
|
|
340
|
+
})(_templateObject3$O || (_templateObject3$O = _taggedTemplateLiteral(["\n fill: ", ";\n flex-shrink: 0;\n width: ", ";\n xmlns: ", ";\n\n ", "\n ", "\n path {\n fill: ", ";\n //Opacity set on 0.5\n fill-opacity: ", ";\n }\n"])), function (_ref) {
|
|
337
341
|
var theme = _ref.theme,
|
|
338
|
-
color = _ref.color
|
|
342
|
+
_ref$color = _ref.color,
|
|
343
|
+
color = _ref$color === void 0 ? "text" : _ref$color;
|
|
339
344
|
return getThemeValue("colors.".concat(color), color)(theme);
|
|
340
345
|
}, function (_ref2) {
|
|
341
|
-
var
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
+
var _ref2$width = _ref2.width,
|
|
347
|
+
width = _ref2$width === void 0 ? "20px" : _ref2$width;
|
|
348
|
+
return width;
|
|
349
|
+
}, function (_ref3) {
|
|
350
|
+
var _ref3$xmlns = _ref3.xmlns,
|
|
351
|
+
xmlns = _ref3$xmlns === void 0 ? "http://www.w3.org/2000/svg" : _ref3$xmlns;
|
|
352
|
+
return xmlns;
|
|
346
353
|
}, function (_ref4) {
|
|
347
|
-
var
|
|
348
|
-
return
|
|
354
|
+
var $spin = _ref4.$spin;
|
|
355
|
+
return $spin && spinStyle;
|
|
356
|
+
}, styledSystem.space, function (_ref5) {
|
|
357
|
+
var fill = _ref5.fill;
|
|
358
|
+
return fill;
|
|
359
|
+
}, function (_ref6) {
|
|
360
|
+
var $opac = _ref6.$opac;
|
|
361
|
+
return $opac ? 1 : 0.5;
|
|
349
362
|
});
|
|
350
|
-
Svg.defaultProps = {
|
|
351
|
-
color: "text",
|
|
352
|
-
width: "20px",
|
|
353
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
354
|
-
spin: false
|
|
355
|
-
};
|
|
356
363
|
|
|
357
364
|
var Icon$2H = function Icon(props) {
|
|
358
365
|
return /*#__PURE__*/jsxRuntime.jsx(Svg, _objectSpread2(_objectSpread2({
|
|
@@ -409,20 +416,21 @@ var getColor$1 = function getColor(_ref) {
|
|
|
409
416
|
};
|
|
410
417
|
var getFontSize = function getFontSize(_ref2) {
|
|
411
418
|
var fontSize = _ref2.fontSize,
|
|
412
|
-
small = _ref2
|
|
413
|
-
return small ? "14px" : fontSize || "16px";
|
|
419
|
+
$small = _ref2.$small;
|
|
420
|
+
return $small ? "14px" : fontSize || "16px";
|
|
414
421
|
};
|
|
415
|
-
var Text = styledComponents.styled.div
|
|
416
|
-
|
|
417
|
-
|
|
422
|
+
var Text = styledComponents.styled.div.withConfig({
|
|
423
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
424
|
+
return !['$bold', '$small'].includes(prop);
|
|
425
|
+
}
|
|
426
|
+
})(_templateObject$2a || (_templateObject$2a = _taggedTemplateLiteral(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: 1.5;\n ", "\n ", "\n ", "\n"])), getColor$1, getFontSize, function (_ref3) {
|
|
427
|
+
var $bold = _ref3.$bold,
|
|
428
|
+
bold = _ref3.bold;
|
|
429
|
+
return $bold || bold ? 700 : 400;
|
|
418
430
|
}, function (_ref4) {
|
|
419
431
|
var textTransform = _ref4.textTransform;
|
|
420
432
|
return textTransform && "text-transform: ".concat(textTransform, ";");
|
|
421
433
|
}, styledSystem.space, styledSystem.typography);
|
|
422
|
-
Text.defaultProps = {
|
|
423
|
-
color: "text",
|
|
424
|
-
small: false
|
|
425
|
-
};
|
|
426
434
|
|
|
427
435
|
var getExternalLinkProps = function getExternalLinkProps() {
|
|
428
436
|
return {
|
|
@@ -464,9 +472,9 @@ var variants$4 = {
|
|
|
464
472
|
|
|
465
473
|
var _templateObject$29;
|
|
466
474
|
var getDisabledStyles$3 = function getDisabledStyles(_ref) {
|
|
467
|
-
var isLoading = _ref
|
|
475
|
+
var $isLoading = _ref.$isLoading,
|
|
468
476
|
theme = _ref.theme;
|
|
469
|
-
if (isLoading === true) {
|
|
477
|
+
if ($isLoading === true) {
|
|
470
478
|
return "\n &:disabled,\n &.button--disabled {\n cursor: not-allowed;\n }\n ";
|
|
471
479
|
}
|
|
472
480
|
return "\n &:disabled,\n &.button--disabled {\n background-color: ".concat(theme.colors.backgroundDisabled, ";\n border-color: ").concat(theme.colors.backgroundDisabled, ";\n box-shadow: none;\n color: ").concat(theme.colors.textDisabled, ";\n cursor: not-allowed;\n }\n ");
|
|
@@ -487,12 +495,17 @@ var getButtonVariantProp$3 = function getButtonVariantProp(prop) {
|
|
|
487
495
|
return theme.button[variant][prop];
|
|
488
496
|
};
|
|
489
497
|
};
|
|
490
|
-
var StyledButton$2 = styledComponents.styled.button
|
|
491
|
-
|
|
492
|
-
|
|
498
|
+
var StyledButton$2 = styledComponents.styled.button.withConfig({
|
|
499
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
500
|
+
return !['$fullWidth', '$isLoading', '$white'].includes(prop);
|
|
501
|
+
}
|
|
502
|
+
})(_templateObject$29 || (_templateObject$29 = _taggedTemplateLiteral(["\n align-items: center;\n background-color: ", ";\n border: ", ";\n border-radius: 10px;\n color: ", ";\n cursor: pointer;\n display: inline-flex;\n font-family: inherit;\n font-size: 16px;\n font-weight: 600;\n /* max-content instead of auto for Safari fix */\n width: ", ";\n height: ", ";\n line-height: 1;\n letter-spacing: 0.03em;\n justify-content: center;\n outline: 0;\n padding: ", ";\n transition: background-color 0.2s;\n opacity: ", ";\n\n &:hover:not(:disabled):not(.button--disabled):not(:active) {\n background-color: ", ";\n border-color: ", ";\n }\n\n &:focus:not(:active) {\n box-shadow: 0 0 0 1px ", ";\n }\n\n &:active {\n background-color: ", ";\n box-shadow: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), getButtonVariantProp$3("background"), getButtonVariantProp$3("border"), function (_ref4) {
|
|
503
|
+
var $white = _ref4.$white;
|
|
504
|
+
return $white ? "white" : getButtonVariantProp$3("color");
|
|
493
505
|
}, function (_ref5) {
|
|
494
|
-
var fullWidth = _ref5
|
|
495
|
-
|
|
506
|
+
var _ref5$$fullWidth = _ref5.$fullWidth,
|
|
507
|
+
$fullWidth = _ref5$$fullWidth === void 0 ? false : _ref5$$fullWidth;
|
|
508
|
+
return $fullWidth ? "100%" : "max-content";
|
|
496
509
|
}, function (_ref6) {
|
|
497
510
|
var size = _ref6.size;
|
|
498
511
|
return size === "sm" ? "32px" : "40px";
|
|
@@ -500,49 +513,51 @@ var StyledButton$2 = styledComponents.styled.button(_templateObject$29 || (_temp
|
|
|
500
513
|
var size = _ref7.size;
|
|
501
514
|
return size === "sm" ? "0 16px" : "0 24px";
|
|
502
515
|
}, function (_ref8) {
|
|
503
|
-
var isLoading = _ref8
|
|
504
|
-
|
|
516
|
+
var _ref8$$isLoading = _ref8.$isLoading,
|
|
517
|
+
$isLoading = _ref8$$isLoading === void 0 ? false : _ref8$$isLoading;
|
|
518
|
+
return $isLoading ? 0.5 : 1;
|
|
505
519
|
}, getButtonVariantProp$3("backgroundHover"), getButtonVariantProp$3("borderColorHover"), function (_ref9) {
|
|
506
520
|
var theme = _ref9.theme;
|
|
507
521
|
return theme.colors.secondary;
|
|
508
522
|
}, getButtonVariantProp$3("backgroundActive"), getButtonVariantProp$3("boxShadowActive"), getDisabledStyles$3, removePointerEvents$3, styledSystem.space);
|
|
509
|
-
StyledButton$2.defaultProps = {
|
|
510
|
-
fullWidth: false,
|
|
511
|
-
type: "button"
|
|
512
|
-
};
|
|
513
523
|
|
|
514
|
-
var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled", "white"];
|
|
515
|
-
var Button$1 = function
|
|
524
|
+
var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "$isLoading", "disabled", "$white", "$fullWidth", "fullWidth", "isLoading", "white"];
|
|
525
|
+
var Button$1 = /*#__PURE__*/React.forwardRef(function (_ref) {
|
|
516
526
|
var startIcon = _ref.startIcon,
|
|
517
527
|
style = _ref.style,
|
|
518
528
|
endIcon = _ref.endIcon,
|
|
519
529
|
children = _ref.children,
|
|
520
|
-
external = _ref.external,
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
530
|
+
_ref$external = _ref.external,
|
|
531
|
+
external = _ref$external === void 0 ? false : _ref$external,
|
|
532
|
+
$isLoadingProp = _ref.$isLoading,
|
|
533
|
+
_ref$disabled = _ref.disabled,
|
|
534
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
535
|
+
$whiteProp = _ref.$white,
|
|
536
|
+
$fullWidthProp = _ref.$fullWidth,
|
|
537
|
+
fullWidthProp = _ref.fullWidth,
|
|
538
|
+
isLoadingProp = _ref.isLoading,
|
|
539
|
+
whiteProp = _ref.white,
|
|
524
540
|
props = _objectWithoutProperties(_ref, _excluded$12);
|
|
525
541
|
var internalProps = external ? getExternalLinkProps() : {};
|
|
526
|
-
var
|
|
542
|
+
var $isLoading = $isLoadingProp || isLoadingProp || false;
|
|
543
|
+
var $white = $whiteProp || whiteProp;
|
|
544
|
+
var $fullWidth = $fullWidthProp || fullWidthProp;
|
|
545
|
+
var isDisabled = $isLoading || disabled;
|
|
527
546
|
return /*#__PURE__*/jsxRuntime.jsxs(StyledButton$2, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
|
|
528
|
-
isLoading: isLoading,
|
|
547
|
+
$isLoading: $isLoading,
|
|
529
548
|
disabled: isDisabled,
|
|
530
549
|
style: style,
|
|
531
|
-
white: white,
|
|
550
|
+
$white: $white,
|
|
551
|
+
$fullWidth: $fullWidth,
|
|
552
|
+
type: props.type || "button",
|
|
532
553
|
children: [/*#__PURE__*/React.isValidElement(startIcon) && /*#__PURE__*/React.cloneElement(startIcon, {
|
|
533
554
|
mr: "0.5rem"
|
|
534
555
|
}), children, /*#__PURE__*/React.isValidElement(endIcon) && /*#__PURE__*/React.cloneElement(endIcon, {
|
|
535
556
|
ml: "0.5rem"
|
|
536
557
|
})]
|
|
537
558
|
}));
|
|
538
|
-
};
|
|
539
|
-
Button$1.
|
|
540
|
-
variant: variants$4.PRIMARY,
|
|
541
|
-
size: sizes$2.MD,
|
|
542
|
-
external: false,
|
|
543
|
-
isLoading: false,
|
|
544
|
-
disabled: false
|
|
545
|
-
};
|
|
559
|
+
});
|
|
560
|
+
Button$1.displayName = "Button";
|
|
546
561
|
|
|
547
562
|
var Icon$2D = function Icon(props) {
|
|
548
563
|
return /*#__PURE__*/jsxRuntime.jsx(Svg, _objectSpread2(_objectSpread2({
|
|
@@ -7940,7 +7955,7 @@ var RampButtonLite = function RampButtonLite(_ref2) {
|
|
|
7940
7955
|
extended: extended,
|
|
7941
7956
|
children: children
|
|
7942
7957
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$1l, {
|
|
7943
|
-
opac: true
|
|
7958
|
+
$opac: true
|
|
7944
7959
|
})]
|
|
7945
7960
|
});
|
|
7946
7961
|
};
|
|
@@ -7968,9 +7983,9 @@ var RampButton = function RampButton(_ref2) {
|
|
|
7968
7983
|
},
|
|
7969
7984
|
extended: extended,
|
|
7970
7985
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1i, {
|
|
7971
|
-
opac: true
|
|
7986
|
+
$opac: true
|
|
7972
7987
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$1h, {
|
|
7973
|
-
opac: true,
|
|
7988
|
+
$opac: true,
|
|
7974
7989
|
display: extended ? "block" : "none"
|
|
7975
7990
|
})]
|
|
7976
7991
|
});
|
|
@@ -8415,21 +8430,25 @@ var style = _defineProperty(_defineProperty(_defineProperty(_defineProperty({},
|
|
|
8415
8430
|
fontSize: "48px",
|
|
8416
8431
|
fontSizeLg: "64px"
|
|
8417
8432
|
});
|
|
8418
|
-
var Heading = styledComponents.styled(Text).attrs({
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8433
|
+
var Heading = styledComponents.styled(Text).attrs(function (_ref) {
|
|
8434
|
+
var _ref$as = _ref.as,
|
|
8435
|
+
as = _ref$as === void 0 ? tags.H2 : _ref$as;
|
|
8436
|
+
return {
|
|
8437
|
+
$bold: true,
|
|
8438
|
+
as: as
|
|
8439
|
+
};
|
|
8440
|
+
})(_templateObject$1$ || (_templateObject$1$ = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: 600;\n line-height: 1.1;\n\n ", " {\n font-size: ", ";\n }\n"])), function (_ref2) {
|
|
8441
|
+
var _ref2$size = _ref2.size,
|
|
8442
|
+
size = _ref2$size === void 0 ? sizes$1.MD : _ref2$size;
|
|
8443
|
+
return style[size].fontSize;
|
|
8426
8444
|
}, function (_ref3) {
|
|
8427
|
-
var
|
|
8428
|
-
return
|
|
8445
|
+
var theme = _ref3.theme;
|
|
8446
|
+
return theme.mediaQueries.lg;
|
|
8447
|
+
}, function (_ref4) {
|
|
8448
|
+
var _ref4$size = _ref4.size,
|
|
8449
|
+
size = _ref4$size === void 0 ? sizes$1.MD : _ref4$size;
|
|
8450
|
+
return style[size].fontSizeLg;
|
|
8429
8451
|
});
|
|
8430
|
-
Heading.defaultProps = {
|
|
8431
|
-
as: tags.H2
|
|
8432
|
-
};
|
|
8433
8452
|
|
|
8434
8453
|
var _templateObject$1_, _templateObject2$12, _templateObject3$M, _templateObject4$x;
|
|
8435
8454
|
var StyledModal = styledComponents.styled.div(_templateObject$1_ || (_templateObject$1_ = _taggedTemplateLiteral(["\n background: ", ";\n box-shadow: 0 13px 20px rgba(0, 0, 0, 0.25);\n @-moz-document url-prefix() {\n background: #191921 !important;\n }\n border-radius: 15px;\n width: 100%;\n z-index: 99;\n overflow-y: auto;\n padding-bottom: 8px;\n ", " {\n width: auto;\n min-width: 360px;\n max-width: 100%;\n max-height: 80%;\n }\n ", " {\n max-height: 80vh;\n }\n"])), function (_ref) {
|
|
@@ -8474,7 +8493,7 @@ var Modal = function Modal(_ref4) {
|
|
|
8474
8493
|
"aria-label": "Close the dialog",
|
|
8475
8494
|
children: /*#__PURE__*/jsxRuntime.jsx(Icon$2j, {
|
|
8476
8495
|
color: "primary",
|
|
8477
|
-
opac: true
|
|
8496
|
+
$opac: true
|
|
8478
8497
|
})
|
|
8479
8498
|
})]
|
|
8480
8499
|
}), /*#__PURE__*/jsxRuntime.jsx(Flex, {
|
|
@@ -8486,22 +8505,29 @@ var Modal = function Modal(_ref4) {
|
|
|
8486
8505
|
};
|
|
8487
8506
|
|
|
8488
8507
|
var _templateObject$1Z;
|
|
8489
|
-
var Overlay = styledComponents.styled.div.attrs({
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8508
|
+
var Overlay = styledComponents.styled.div.attrs(function (_ref) {
|
|
8509
|
+
var _ref$show = _ref.show,
|
|
8510
|
+
show = _ref$show === void 0 ? false : _ref$show,
|
|
8511
|
+
_ref$zIndex = _ref.zIndex,
|
|
8512
|
+
zIndex = _ref$zIndex === void 0 ? 10 : _ref$zIndex;
|
|
8513
|
+
return {
|
|
8514
|
+
role: "presentation",
|
|
8515
|
+
show: show,
|
|
8516
|
+
zIndex: zIndex
|
|
8517
|
+
};
|
|
8518
|
+
})(_templateObject$1Z || (_templateObject$1Z = _taggedTemplateLiteral(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgb(22, 22, 29);\n transition: opacity 0.4s;\n opacity: ", ";\n z-index: ", ";\n pointer-events: ", ";\n"])), function (_ref2) {
|
|
8519
|
+
var _ref2$show = _ref2.show,
|
|
8520
|
+
show = _ref2$show === void 0 ? false : _ref2$show;
|
|
8493
8521
|
return show ? 0.6 : 0;
|
|
8494
|
-
}, function (_ref2) {
|
|
8495
|
-
var zIndex = _ref2.zIndex;
|
|
8496
|
-
return zIndex;
|
|
8497
8522
|
}, function (_ref3) {
|
|
8498
|
-
var
|
|
8523
|
+
var _ref3$zIndex = _ref3.zIndex,
|
|
8524
|
+
zIndex = _ref3$zIndex === void 0 ? 10 : _ref3$zIndex;
|
|
8525
|
+
return zIndex;
|
|
8526
|
+
}, function (_ref4) {
|
|
8527
|
+
var _ref4$show = _ref4.show,
|
|
8528
|
+
show = _ref4$show === void 0 ? false : _ref4$show;
|
|
8499
8529
|
return show ? "initial" : "none";
|
|
8500
8530
|
});
|
|
8501
|
-
Overlay.defaultProps = {
|
|
8502
|
-
show: false,
|
|
8503
|
-
zIndex: 10
|
|
8504
|
-
};
|
|
8505
8531
|
|
|
8506
8532
|
var _templateObject$1Y;
|
|
8507
8533
|
var ModalWrapper = styledComponents.styled.div(_templateObject$1Y || (_templateObject$1Y = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: ", ";\n ", " {\n justify-content: flex-start;\n padding-top: 50px;\n }\n"])), function (_ref) {
|
|
@@ -8846,7 +8872,7 @@ var WalletCard = function WalletCard(_ref) {
|
|
|
8846
8872
|
_useCookies2[0];
|
|
8847
8873
|
_useCookies2[1];
|
|
8848
8874
|
return /*#__PURE__*/jsxRuntime.jsxs(Button$1, {
|
|
8849
|
-
fullWidth: true,
|
|
8875
|
+
$fullWidth: true,
|
|
8850
8876
|
variant: exports.ButtonVariant.OUTLINE,
|
|
8851
8877
|
onClick: function onClick() {
|
|
8852
8878
|
login(walletConfig.connectorId, title);
|
|
@@ -8864,7 +8890,7 @@ var WalletCard = function WalletCard(_ref) {
|
|
|
8864
8890
|
children: title
|
|
8865
8891
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
8866
8892
|
width: "20px",
|
|
8867
|
-
opac: true
|
|
8893
|
+
$opac: true
|
|
8868
8894
|
})]
|
|
8869
8895
|
});
|
|
8870
8896
|
};
|
|
@@ -8895,21 +8921,23 @@ var ConnectModal = function ConnectModal(_ref) {
|
|
|
8895
8921
|
});
|
|
8896
8922
|
};
|
|
8897
8923
|
|
|
8898
|
-
var _excluded$p = ["external"];
|
|
8924
|
+
var _excluded$p = ["external", "color"];
|
|
8899
8925
|
var _templateObject$1X;
|
|
8900
8926
|
var StyledLink$1 = styledComponents.styled(Text)(_templateObject$1X || (_templateObject$1X = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n width: fit-content;\n margin-right: 21px;\n &:hover {\n text-decoration: underline;\n }\n"])));
|
|
8901
|
-
var Link = function
|
|
8927
|
+
var Link = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8902
8928
|
var external = _ref.external,
|
|
8929
|
+
_ref$color = _ref.color,
|
|
8930
|
+
color = _ref$color === void 0 ? "primary" : _ref$color,
|
|
8903
8931
|
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
8904
8932
|
var internalProps = external ? getExternalLinkProps() : {};
|
|
8905
8933
|
return /*#__PURE__*/jsxRuntime.jsx(StyledLink$1, _objectSpread2(_objectSpread2({
|
|
8934
|
+
ref: ref,
|
|
8906
8935
|
as: "a",
|
|
8907
|
-
bold: true
|
|
8936
|
+
bold: true,
|
|
8937
|
+
color: color
|
|
8908
8938
|
}, internalProps), props));
|
|
8909
|
-
};
|
|
8910
|
-
Link.
|
|
8911
|
-
color: "primary"
|
|
8912
|
-
};
|
|
8939
|
+
});
|
|
8940
|
+
Link.displayName = "Link";
|
|
8913
8941
|
|
|
8914
8942
|
var _excluded$o = ["children"];
|
|
8915
8943
|
var LinkExternal = function LinkExternal(_ref) {
|
|
@@ -8922,7 +8950,7 @@ var LinkExternal = function LinkExternal(_ref) {
|
|
|
8922
8950
|
color: "primary",
|
|
8923
8951
|
ml: "10px",
|
|
8924
8952
|
width: 15,
|
|
8925
|
-
opac: true
|
|
8953
|
+
$opac: true
|
|
8926
8954
|
})]
|
|
8927
8955
|
}));
|
|
8928
8956
|
};
|
|
@@ -9487,7 +9515,11 @@ var getButtonVariantProp$2 = function getButtonVariantProp(prop) {
|
|
|
9487
9515
|
return theme.button[variant][prop];
|
|
9488
9516
|
};
|
|
9489
9517
|
};
|
|
9490
|
-
var StyledButton$1 = styledComponents.styled.button
|
|
9518
|
+
var StyledButton$1 = styledComponents.styled.button.withConfig({
|
|
9519
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
9520
|
+
return !['variant', 'isLoading', 'fullWidth', 'lined', 'active', 'isActive'].includes(prop);
|
|
9521
|
+
}
|
|
9522
|
+
})(_templateObject$1R || (_templateObject$1R = _taggedTemplateLiteral(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 10px;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n font-family: inherit;\n font-size: 16px;\n font-weight: 700;\n color: white;\n /* max-content instead of auto for Safari fix */\n width: ", ";\n height: ", ";\n line-height: 1;\n letter-spacing: 0.03em;\n justify-content: center;\n outline: 0;\n padding: ", ";\n transition: all 0.5s;\n\n .dot {\n margin-top: 10px;\n height: ", ";\n width: ", ";\n border-radius: ", ";\n display: inline-block;\n background-color: ", ";\n }\n\n &:hover:not(:disabled):not(.button--disabled):not(:active) {\n border-color: ", ";\n color: ", ";\n }\n\n &:active {\n background-color: transparent;\n color: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), function (_ref4) {
|
|
9491
9523
|
var fullWidth = _ref4.fullWidth;
|
|
9492
9524
|
return fullWidth ? "100%" : "max-content";
|
|
9493
9525
|
}, function (_ref5) {
|
|
@@ -9515,10 +9547,6 @@ var StyledButton$1 = styledComponents.styled.button(_templateObject$1R || (_temp
|
|
|
9515
9547
|
var theme = _ref10.theme;
|
|
9516
9548
|
return theme.colors.primary;
|
|
9517
9549
|
}, getDisabledStyles$2, removePointerEvents$2, styledSystem.space);
|
|
9518
|
-
StyledButton$1.defaultProps = {
|
|
9519
|
-
fullWidth: false,
|
|
9520
|
-
type: "button"
|
|
9521
|
-
};
|
|
9522
9550
|
|
|
9523
9551
|
var _excluded$m = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled", "lined"];
|
|
9524
9552
|
var Button = function Button(_ref) {
|
|
@@ -9526,18 +9554,19 @@ var Button = function Button(_ref) {
|
|
|
9526
9554
|
style = _ref.style,
|
|
9527
9555
|
endIcon = _ref.endIcon,
|
|
9528
9556
|
children = _ref.children,
|
|
9529
|
-
external = _ref.external,
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9557
|
+
_ref$external = _ref.external,
|
|
9558
|
+
external = _ref$external === void 0 ? false : _ref$external,
|
|
9559
|
+
_ref$isLoading = _ref.isLoading,
|
|
9560
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
9561
|
+
_ref$disabled = _ref.disabled,
|
|
9562
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
9563
|
+
_ref.lined;
|
|
9564
|
+
var props = _objectWithoutProperties(_ref, _excluded$m);
|
|
9534
9565
|
var internalProps = external ? getExternalLinkProps() : {};
|
|
9535
9566
|
var isDisabled = isLoading || disabled;
|
|
9536
9567
|
return /*#__PURE__*/jsxRuntime.jsxs(StyledButton$1, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
|
|
9537
|
-
isLoading: isLoading,
|
|
9538
9568
|
disabled: isDisabled,
|
|
9539
9569
|
style: style,
|
|
9540
|
-
lined: lined,
|
|
9541
9570
|
children: [/*#__PURE__*/React.isValidElement(startIcon) && /*#__PURE__*/React.cloneElement(startIcon, {
|
|
9542
9571
|
mr: "0.5rem"
|
|
9543
9572
|
}), children, /*#__PURE__*/React.isValidElement(endIcon) && /*#__PURE__*/React.cloneElement(endIcon, {
|
|
@@ -9547,13 +9576,6 @@ var Button = function Button(_ref) {
|
|
|
9547
9576
|
})]
|
|
9548
9577
|
}));
|
|
9549
9578
|
};
|
|
9550
|
-
Button.defaultProps = {
|
|
9551
|
-
variant: variants$2.PRIMARY,
|
|
9552
|
-
size: sizes.MD,
|
|
9553
|
-
external: false,
|
|
9554
|
-
isLoading: false,
|
|
9555
|
-
disabled: false
|
|
9556
|
-
};
|
|
9557
9579
|
|
|
9558
9580
|
var getColor = function getColor(color, theme) {
|
|
9559
9581
|
return getThemeValue("colors.".concat(color), color)(theme);
|
|
@@ -9580,11 +9602,16 @@ var StyledTag = styledComponents.styled.div(_templateObject$1Q || (_templateObje
|
|
|
9580
9602
|
return getColor(variant, theme);
|
|
9581
9603
|
}, getThemeTextColor, getThemeTextColor);
|
|
9582
9604
|
|
|
9583
|
-
var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"]
|
|
9605
|
+
var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"],
|
|
9606
|
+
_excluded2$1 = ["isActive"];
|
|
9584
9607
|
var _templateObject$1P, _templateObject2$Z, _templateObject3$L;
|
|
9585
9608
|
var ButtonBody = styledComponents.styled.div(_templateObject$1P || (_templateObject$1P = _taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n"])));
|
|
9586
9609
|
var ButtonTag = styledComponents.styled(StyledTag)(_templateObject2$Z || (_templateObject2$Z = _taggedTemplateLiteral(["\n margin-left: 7px;\n font-weight: bold;\n font-size: 11px;\n padding: 1px 5px;\n height: unset;\n border-width: 1px;\n"])));
|
|
9587
|
-
var InactiveButton$1 = styledComponents.styled(Button)
|
|
9610
|
+
var InactiveButton$1 = styledComponents.styled(Button).withConfig({
|
|
9611
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
9612
|
+
return prop !== 'colorKey' && prop !== 'isActive';
|
|
9613
|
+
}
|
|
9614
|
+
})(_templateObject3$L || (_templateObject3$L = _taggedTemplateLiteral(["\n background-color: transparent;\n color: #535459;\n .dot {\n background-color: transparent;\n }\n\n &:hover:not(:disabled):not(:active) {\n background-color: transparent;\n }\n"])));
|
|
9588
9615
|
var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
9589
9616
|
var _ref$isActive = _ref.isActive,
|
|
9590
9617
|
isActive = _ref$isActive === void 0 ? false : _ref$isActive,
|
|
@@ -9597,13 +9624,16 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9597
9624
|
tag = _ref.tag,
|
|
9598
9625
|
hide = _ref.hide,
|
|
9599
9626
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
9627
|
+
// Remove isActive from props to prevent it from being passed to DOM
|
|
9628
|
+
props.isActive;
|
|
9629
|
+
var buttonProps = _objectWithoutProperties(props, _excluded2$1);
|
|
9600
9630
|
if (!isActive) {
|
|
9601
9631
|
return /*#__PURE__*/jsxRuntime.jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
|
|
9602
9632
|
forwardedAs: as,
|
|
9603
9633
|
size: size,
|
|
9604
9634
|
variant: "tertiary",
|
|
9605
9635
|
colorKey: variant === variants$2.PRIMARY ? "primary" : "textSubtle"
|
|
9606
|
-
},
|
|
9636
|
+
}, buttonProps), {}, {
|
|
9607
9637
|
style: {
|
|
9608
9638
|
display: hide ? "none" : "flex"
|
|
9609
9639
|
},
|
|
@@ -9619,7 +9649,7 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9619
9649
|
as: as,
|
|
9620
9650
|
size: size,
|
|
9621
9651
|
variant: variant
|
|
9622
|
-
},
|
|
9652
|
+
}, buttonProps), {}, {
|
|
9623
9653
|
style: {
|
|
9624
9654
|
display: hide ? "none" : "flex"
|
|
9625
9655
|
},
|
|
@@ -9694,10 +9724,6 @@ var StyledButtonActivity = styledComponents.styled.button(_templateObject$1N ||
|
|
|
9694
9724
|
var size = _ref6.size;
|
|
9695
9725
|
return size === "sm" ? "0 16px" : "0 24px";
|
|
9696
9726
|
}, getButtonVariantProp$1("borderColorHover"), getDisabledStyles$1, removePointerEvents$1, styledSystem.space);
|
|
9697
|
-
StyledButtonActivity.defaultProps = {
|
|
9698
|
-
fullWidth: false,
|
|
9699
|
-
type: "button"
|
|
9700
|
-
};
|
|
9701
9727
|
|
|
9702
9728
|
var _excluded$k = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled"];
|
|
9703
9729
|
var ButtonActivity = function ButtonActivity(_ref) {
|
|
@@ -9705,9 +9731,12 @@ var ButtonActivity = function ButtonActivity(_ref) {
|
|
|
9705
9731
|
style = _ref.style,
|
|
9706
9732
|
endIcon = _ref.endIcon,
|
|
9707
9733
|
children = _ref.children,
|
|
9708
|
-
external = _ref.external,
|
|
9709
|
-
|
|
9710
|
-
|
|
9734
|
+
_ref$external = _ref.external,
|
|
9735
|
+
external = _ref$external === void 0 ? false : _ref$external,
|
|
9736
|
+
_ref$isLoading = _ref.isLoading,
|
|
9737
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
9738
|
+
_ref$disabled = _ref.disabled,
|
|
9739
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
9711
9740
|
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
9712
9741
|
var internalProps = external ? getExternalLinkProps() : {};
|
|
9713
9742
|
var isDisabled = isLoading || disabled;
|
|
@@ -9722,13 +9751,6 @@ var ButtonActivity = function ButtonActivity(_ref) {
|
|
|
9722
9751
|
})]
|
|
9723
9752
|
}));
|
|
9724
9753
|
};
|
|
9725
|
-
ButtonActivity.defaultProps = {
|
|
9726
|
-
variant: variants$2.PRIMARY,
|
|
9727
|
-
size: sizes.MD,
|
|
9728
|
-
external: false,
|
|
9729
|
-
isLoading: false,
|
|
9730
|
-
disabled: false
|
|
9731
|
-
};
|
|
9732
9754
|
|
|
9733
9755
|
var _excluded$j = ["isActive", "size", "variant", "as"];
|
|
9734
9756
|
var _templateObject$1M;
|
|
@@ -9797,10 +9819,6 @@ var StyledButtonSwitch = styledComponents.styled.button(_templateObject$1L || (_
|
|
|
9797
9819
|
active = _ref7.active;
|
|
9798
9820
|
return active ? theme.colors.primary : theme.colors.grey;
|
|
9799
9821
|
}, getDisabledStyles, removePointerEvents, styledSystem.space);
|
|
9800
|
-
StyledButtonSwitch.defaultProps = {
|
|
9801
|
-
fullWidth: false,
|
|
9802
|
-
type: "button"
|
|
9803
|
-
};
|
|
9804
9822
|
|
|
9805
9823
|
var _excluded$i = ["style", "children", "isLoading", "disabled", "active"];
|
|
9806
9824
|
var ButtonSwitch = function ButtonSwitch(_ref) {
|
|
@@ -9850,7 +9868,8 @@ var StyledToggle = styledComponents.styled.div(_templateObject3$K || (_templateO
|
|
|
9850
9868
|
var _excluded$h = ["checked", "variant"];
|
|
9851
9869
|
var Toggle$1 = function Toggle(_ref) {
|
|
9852
9870
|
var checked = _ref.checked,
|
|
9853
|
-
variant = _ref.variant,
|
|
9871
|
+
_ref$variant = _ref.variant,
|
|
9872
|
+
variant = _ref$variant === void 0 ? variants$1.PANEL : _ref$variant,
|
|
9854
9873
|
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
9855
9874
|
var isChecked = !!checked;
|
|
9856
9875
|
var disabled = props.disabled,
|
|
@@ -9870,9 +9889,6 @@ var Toggle$1 = function Toggle(_ref) {
|
|
|
9870
9889
|
})]
|
|
9871
9890
|
}));
|
|
9872
9891
|
};
|
|
9873
|
-
Toggle$1.defaultProps = {
|
|
9874
|
-
variant: variants$1.PANEL
|
|
9875
|
-
};
|
|
9876
9892
|
|
|
9877
9893
|
var _excluded$g = ["onClick", "active"];
|
|
9878
9894
|
var ButtonSwitchMenuItem = function ButtonSwitchMenuItem(_ref) {
|
|
@@ -9928,22 +9944,32 @@ var _templateObject$1I;
|
|
|
9928
9944
|
* Priority: Warning --> Success --> Active
|
|
9929
9945
|
*/
|
|
9930
9946
|
var getBoxShadow$2 = function getBoxShadow(_ref) {
|
|
9931
|
-
var isActive = _ref
|
|
9947
|
+
var $isActive = _ref.$isActive,
|
|
9948
|
+
isActive = _ref.isActive,
|
|
9949
|
+
$isSuccess = _ref.$isSuccess,
|
|
9932
9950
|
isSuccess = _ref.isSuccess,
|
|
9951
|
+
$isWarning = _ref.$isWarning,
|
|
9933
9952
|
isWarning = _ref.isWarning,
|
|
9934
9953
|
theme = _ref.theme;
|
|
9935
|
-
|
|
9954
|
+
var isWarningValue = $isWarning || isWarning;
|
|
9955
|
+
var isSuccessValue = $isSuccess || isSuccess;
|
|
9956
|
+
var isActiveValue = $isActive || isActive;
|
|
9957
|
+
if (isWarningValue) {
|
|
9936
9958
|
return theme.card.boxShadowWarning;
|
|
9937
9959
|
}
|
|
9938
|
-
if (
|
|
9960
|
+
if (isSuccessValue) {
|
|
9939
9961
|
return theme.card.boxShadowSuccess;
|
|
9940
9962
|
}
|
|
9941
|
-
if (
|
|
9963
|
+
if (isActiveValue) {
|
|
9942
9964
|
return theme.card.boxShadowActive;
|
|
9943
9965
|
}
|
|
9944
9966
|
return theme.card.boxShadow;
|
|
9945
9967
|
};
|
|
9946
|
-
var StyledCard = styledComponents.styled.div
|
|
9968
|
+
var StyledCard = styledComponents.styled.div.withConfig({
|
|
9969
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
9970
|
+
return !['$isActive', '$isSuccess', '$isWarning', '$isDisabled'].includes(prop);
|
|
9971
|
+
}
|
|
9972
|
+
})(_templateObject$1I || (_templateObject$1I = _taggedTemplateLiteral(["\n background: ", ";\n @-moz-document url-prefix() {\n background: rgba(36, 36, 36, 0.95) !important;\n }\n box-shadow: 0 13px 20px rgba(0, 0, 0, 0.25);\n border: 1px solid ", ";\n border-radius: 15px;\n box-shadow: ", ";\n color: ", ";\n overflow: hidden;\n position: relative;\n padding: 30px;\n\n ", "\n"])), function (_ref2) {
|
|
9947
9973
|
var theme = _ref2.theme;
|
|
9948
9974
|
return theme.colors.card;
|
|
9949
9975
|
}, function (_ref3) {
|
|
@@ -9951,15 +9977,10 @@ var StyledCard = styledComponents.styled.div(_templateObject$1I || (_templateObj
|
|
|
9951
9977
|
return theme.colors.white7;
|
|
9952
9978
|
}, getBoxShadow$2, function (_ref4) {
|
|
9953
9979
|
var theme = _ref4.theme,
|
|
9980
|
+
$isDisabled = _ref4.$isDisabled,
|
|
9954
9981
|
isDisabled = _ref4.isDisabled;
|
|
9955
|
-
return theme.colors[isDisabled ? "textDisabled" : "text"];
|
|
9982
|
+
return theme.colors[$isDisabled || isDisabled ? "textDisabled" : "text"];
|
|
9956
9983
|
}, styledSystem.space);
|
|
9957
|
-
StyledCard.defaultProps = {
|
|
9958
|
-
isActive: false,
|
|
9959
|
-
isSuccess: false,
|
|
9960
|
-
isWarning: false,
|
|
9961
|
-
isDisabled: false
|
|
9962
|
-
};
|
|
9963
9984
|
|
|
9964
9985
|
var _excluded$f = ["ribbon", "children"];
|
|
9965
9986
|
var Card = function Card(_ref) {
|
|
@@ -9972,20 +9993,25 @@ var Card = function Card(_ref) {
|
|
|
9972
9993
|
};
|
|
9973
9994
|
|
|
9974
9995
|
var _templateObject$1H;
|
|
9975
|
-
var CardBody = styledComponents.styled.div(
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
|
|
9996
|
+
var CardBody = styledComponents.styled.div.attrs(function (_ref) {
|
|
9997
|
+
var _ref$p = _ref.p,
|
|
9998
|
+
p = _ref$p === void 0 ? "24px" : _ref$p;
|
|
9999
|
+
return {
|
|
10000
|
+
p: p
|
|
10001
|
+
};
|
|
10002
|
+
})(_templateObject$1H || (_templateObject$1H = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), styledSystem.space);
|
|
9979
10003
|
|
|
9980
10004
|
var _templateObject$1G;
|
|
9981
10005
|
var CardHeader = styledComponents.styled.div(_templateObject$1G || (_templateObject$1G = _taggedTemplateLiteral(["\n ", "\n font-weight: 700;\n font-size: 26px;\n line-height: 130%;\n display: flex;\n width: 100%;\n justify-content: space-between;\n"])), styledSystem.space);
|
|
9982
|
-
CardHeader.defaultProps = {};
|
|
9983
10006
|
|
|
9984
10007
|
var _templateObject$1F;
|
|
9985
|
-
var CardFooter = styledComponents.styled.div(
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
10008
|
+
var CardFooter = styledComponents.styled.div.attrs(function (_ref) {
|
|
10009
|
+
var _ref$p = _ref.p,
|
|
10010
|
+
p = _ref$p === void 0 ? "24px" : _ref$p;
|
|
10011
|
+
return {
|
|
10012
|
+
p: p
|
|
10013
|
+
};
|
|
10014
|
+
})(_templateObject$1F || (_templateObject$1F = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), styledSystem.space);
|
|
9989
10015
|
|
|
9990
10016
|
var _templateObject$1E;
|
|
9991
10017
|
var StyledCardRibbon = styledComponents.styled.div(_templateObject$1E || (_templateObject$1E = _taggedTemplateLiteral(["\n background-color: ", ";\n color: white;\n margin: 0;\n padding: 0;\n padding: 8px 0;\n position: absolute;\n right: 0;\n top: 0;\n text-align: center;\n transform: translateX(30%) translateY(0%) rotate(45deg);\n transform-origin: top left;\n width: 96px;\n\n &:before,\n &:after {\n background-color: ", ";\n content: \"\";\n height: 100%;\n margin: 0 -1px; /* Removes tiny gap */\n position: absolute;\n top: 0;\n width: 100%;\n }\n\n &:before {\n right: 100%;\n }\n\n &:after {\n left: 100%;\n }\n\n & > div {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 96px;\n }\n"])), function (_ref) {
|
|
@@ -10054,9 +10080,6 @@ var Checkbox = styledComponents.styled.input.attrs({
|
|
|
10054
10080
|
var bordered = _ref9.bordered;
|
|
10055
10081
|
return bordered ? "none !important" : "";
|
|
10056
10082
|
});
|
|
10057
|
-
Checkbox.defaultProps = {
|
|
10058
|
-
scale: scales$2.MD
|
|
10059
|
-
};
|
|
10060
10083
|
|
|
10061
10084
|
var _templateObject$1C, _templateObject2$X;
|
|
10062
10085
|
var getLeft = function getLeft(_ref) {
|
|
@@ -10099,9 +10122,6 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
10099
10122
|
})]
|
|
10100
10123
|
});
|
|
10101
10124
|
};
|
|
10102
|
-
Dropdown.defaultProps = {
|
|
10103
|
-
position: "bottom"
|
|
10104
|
-
};
|
|
10105
10125
|
|
|
10106
10126
|
var _excluded$e = ["tokenName", "amount", "tokenIcon", "actions"];
|
|
10107
10127
|
var _templateObject$1B, _templateObject2$W, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$j, _templateObject7$f;
|
|
@@ -10229,16 +10249,19 @@ var EarnedWrapper = function EarnedWrapper(_ref) {
|
|
|
10229
10249
|
};
|
|
10230
10250
|
|
|
10231
10251
|
var _templateObject$1z;
|
|
10232
|
-
var EarnedWrapperHeader = styledComponents.styled.div(
|
|
10233
|
-
var
|
|
10234
|
-
|
|
10235
|
-
|
|
10252
|
+
var EarnedWrapperHeader = styledComponents.styled.div.attrs(function (_ref) {
|
|
10253
|
+
var _ref$as = _ref.as,
|
|
10254
|
+
as = _ref$as === void 0 ? tags.H2 : _ref$as;
|
|
10255
|
+
return {
|
|
10256
|
+
as: as
|
|
10257
|
+
};
|
|
10258
|
+
})(_templateObject$1z || (_templateObject$1z = _taggedTemplateLiteral(["\n font-size: 20px;\n line-height: 26px;\n padding: 15px;\n font-weight: 700;\n color: ", ";\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n ", " {\n font-size: 26px;\n line-height: 33.8px;\n padding: 25px 10px 25px 30px;\n }\n"])), function (_ref2) {
|
|
10236
10259
|
var theme = _ref2.theme;
|
|
10260
|
+
return theme.colors.white;
|
|
10261
|
+
}, function (_ref3) {
|
|
10262
|
+
var theme = _ref3.theme;
|
|
10237
10263
|
return theme.mediaQueries.md;
|
|
10238
10264
|
});
|
|
10239
|
-
EarnedWrapperHeader.defaultProps = {
|
|
10240
|
-
as: tags.H2
|
|
10241
|
-
};
|
|
10242
10265
|
|
|
10243
10266
|
var _templateObject$1y;
|
|
10244
10267
|
var GridLayout$1 = styledComponents.styled.div(_templateObject$1y || (_templateObject$1y = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: repeat(8, 1fr);\n grid-gap: 16px;\n ", " {\n grid-gap: 10px;\n }\n ", " {\n grid-template-columns: repeat(12, 1fr);\n grid-gap: 24px;\n }\n ", " {\n grid-template-columns: repeat(12, 1fr);\n grid-gap: 32px;\n }\n"])), function (_ref) {
|
|
@@ -10374,16 +10397,19 @@ var EarnedCarouselWrapper = function EarnedCarouselWrapper(_ref) {
|
|
|
10374
10397
|
};
|
|
10375
10398
|
|
|
10376
10399
|
var _templateObject$1u;
|
|
10377
|
-
var EarnedCarouselWrapperHeader = styledComponents.styled.div(
|
|
10378
|
-
var
|
|
10379
|
-
|
|
10380
|
-
|
|
10400
|
+
var EarnedCarouselWrapperHeader = styledComponents.styled.div.attrs(function (_ref) {
|
|
10401
|
+
var _ref$as = _ref.as,
|
|
10402
|
+
as = _ref$as === void 0 ? tags.H2 : _ref$as;
|
|
10403
|
+
return {
|
|
10404
|
+
as: as
|
|
10405
|
+
};
|
|
10406
|
+
})(_templateObject$1u || (_templateObject$1u = _taggedTemplateLiteral(["\n font-size: 20px;\n line-height: 26px;\n padding: 15px;\n font-weight: 700;\n color: ", ";\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n ", " {\n font-size: 26px;\n line-height: 33.8px;\n padding: 25px 10px 25px 30px;\n }\n"])), function (_ref2) {
|
|
10381
10407
|
var theme = _ref2.theme;
|
|
10408
|
+
return theme.colors.white;
|
|
10409
|
+
}, function (_ref3) {
|
|
10410
|
+
var theme = _ref3.theme;
|
|
10382
10411
|
return theme.mediaQueries.md;
|
|
10383
10412
|
});
|
|
10384
|
-
EarnedCarouselWrapperHeader.defaultProps = {
|
|
10385
|
-
as: tags.H2
|
|
10386
|
-
};
|
|
10387
10413
|
|
|
10388
10414
|
var _templateObject$1t, _templateObject2$U, _templateObject3$H;
|
|
10389
10415
|
var CSSTokenWrapper = styledComponents.styled.div(_templateObject$1t || (_templateObject$1t = _taggedTemplateLiteral(["\n padding: 0 10px;\n\n @media (max-width: 800px) {\n width: 50%;\n }\n @media (min-width: 800px) {\n width: 33.3%;\n }\n @media (min-width: 1200px) {\n width: 25%;\n }\n"])));
|
|
@@ -10585,10 +10611,6 @@ var StyledInfoBox = styledComponents.styled.div(_templateObject$1s || (_template
|
|
|
10585
10611
|
var theme = _ref3.theme;
|
|
10586
10612
|
return theme.colors.text;
|
|
10587
10613
|
}, styledSystem.space);
|
|
10588
|
-
StyledInfoBox.defaultProps = {
|
|
10589
|
-
isActive: false,
|
|
10590
|
-
isWarning: false
|
|
10591
|
-
};
|
|
10592
10614
|
|
|
10593
10615
|
var _excluded$a = ["children"];
|
|
10594
10616
|
var InfoBox$1 = function InfoBox(_ref) {
|
|
@@ -10600,20 +10622,25 @@ var InfoBox$1 = function InfoBox(_ref) {
|
|
|
10600
10622
|
};
|
|
10601
10623
|
|
|
10602
10624
|
var _templateObject$1r;
|
|
10603
|
-
var InfoBox = styledComponents.styled.div(
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10625
|
+
var InfoBox = styledComponents.styled.div.attrs(function (_ref) {
|
|
10626
|
+
var _ref$p = _ref.p,
|
|
10627
|
+
p = _ref$p === void 0 ? "24px" : _ref$p;
|
|
10628
|
+
return {
|
|
10629
|
+
p: p
|
|
10630
|
+
};
|
|
10631
|
+
})(_templateObject$1r || (_templateObject$1r = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), styledSystem.space);
|
|
10607
10632
|
|
|
10608
10633
|
var _templateObject$1q;
|
|
10609
10634
|
var InfoBoxHeader = styledComponents.styled.div(_templateObject$1q || (_templateObject$1q = _taggedTemplateLiteral(["\n ", ";\n font-weight: 600;\n font-size: 24px;\n line-height: 130%;\n color: white;\n\n display: flex;\n height: 55px;\n padding: 0 20px;\n justify-content: space-between;\n align-items: center;\n background: rgba(10, 10, 10, 1);\n"])), styledSystem.space);
|
|
10610
|
-
InfoBoxHeader.defaultProps = {};
|
|
10611
10635
|
|
|
10612
10636
|
var _templateObject$1p;
|
|
10613
|
-
var InfoBoxFooter = styledComponents.styled.div(
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10637
|
+
var InfoBoxFooter = styledComponents.styled.div.attrs(function (_ref) {
|
|
10638
|
+
var _ref$p = _ref.p,
|
|
10639
|
+
p = _ref$p === void 0 ? "24px" : _ref$p;
|
|
10640
|
+
return {
|
|
10641
|
+
p: p
|
|
10642
|
+
};
|
|
10643
|
+
})(_templateObject$1p || (_templateObject$1p = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), styledSystem.space);
|
|
10617
10644
|
|
|
10618
10645
|
var scales$1 = {
|
|
10619
10646
|
SM: "sm",
|
|
@@ -10671,11 +10698,6 @@ var Input = styledComponents.styled.input(_templateObject$1o || (_templateObject
|
|
|
10671
10698
|
var theme = _ref8.theme;
|
|
10672
10699
|
return theme.shadows.focus;
|
|
10673
10700
|
});
|
|
10674
|
-
Input.defaultProps = {
|
|
10675
|
-
scale: scales$1.MD,
|
|
10676
|
-
isSuccess: false,
|
|
10677
|
-
isWarning: false
|
|
10678
|
-
};
|
|
10679
10701
|
|
|
10680
10702
|
var _excluded$9 = ["children"],
|
|
10681
10703
|
_excluded2 = ["children"],
|
|
@@ -11032,7 +11054,7 @@ var MuiTextInput = function MuiTextInput(_ref11) {
|
|
|
11032
11054
|
fill: theme.colors.error,
|
|
11033
11055
|
width: 24,
|
|
11034
11056
|
height: 24,
|
|
11035
|
-
opac: true
|
|
11057
|
+
$opac: true
|
|
11036
11058
|
}) : success && /*#__PURE__*/jsxRuntime.jsx(Icon$1b, {})
|
|
11037
11059
|
}
|
|
11038
11060
|
/* eslint-disable-next-line react/jsx-no-duplicate-props */,
|
|
@@ -11122,39 +11144,49 @@ var getCheckedScale = function getCheckedScale(_ref2) {
|
|
|
11122
11144
|
return "20px";
|
|
11123
11145
|
}
|
|
11124
11146
|
};
|
|
11125
|
-
var Radio = styledComponents.styled.input.attrs({
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11147
|
+
var Radio = styledComponents.styled.input.attrs(function (_ref3) {
|
|
11148
|
+
var _ref3$scale = _ref3.scale,
|
|
11149
|
+
scale = _ref3$scale === void 0 ? scales.MD : _ref3$scale,
|
|
11150
|
+
_ref3$m = _ref3.m,
|
|
11151
|
+
m = _ref3$m === void 0 ? 0 : _ref3$m;
|
|
11152
|
+
return {
|
|
11153
|
+
type: "radio",
|
|
11154
|
+
scale: scale,
|
|
11155
|
+
m: m
|
|
11156
|
+
};
|
|
11157
|
+
})(_templateObject$1i || (_templateObject$1i = _taggedTemplateLiteral(["\n appearance: none;\n overflow: hidden;\n cursor: pointer;\n position: relative;\n display: inline-block;\n height: ", ";\n width: ", ";\n vertical-align: middle;\n transition: background-color 0.2s ease-in-out;\n border: 0;\n border-radius: 50%;\n background-color: ", ";\n box-shadow: ", ";\n\n &:after {\n border-radius: 50%;\n content: \"\";\n height: ", ";\n left: 6px;\n position: absolute;\n top: 6px;\n width: ", ";\n }\n\n &:hover:not(:disabled):not(:checked) {\n box-shadow: ", ";\n }\n\n &:focus {\n outline: none;\n box-shadow: ", ";\n }\n\n &:checked {\n background-color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &:disabled {\n cursor: default;\n opacity: 0.6;\n }\n ", "\n"])), getScale, getScale, function (_ref4) {
|
|
11131
11158
|
var theme = _ref4.theme;
|
|
11132
|
-
return theme.
|
|
11133
|
-
},
|
|
11159
|
+
return theme.colors.input;
|
|
11160
|
+
}, function (_ref5) {
|
|
11134
11161
|
var theme = _ref5.theme;
|
|
11135
|
-
return theme.shadows.
|
|
11136
|
-
}, function (_ref6) {
|
|
11162
|
+
return theme.shadows.inset;
|
|
11163
|
+
}, getCheckedScale, getCheckedScale, function (_ref6) {
|
|
11137
11164
|
var theme = _ref6.theme;
|
|
11138
11165
|
return theme.shadows.focus;
|
|
11139
11166
|
}, function (_ref7) {
|
|
11140
11167
|
var theme = _ref7.theme;
|
|
11141
|
-
return theme.
|
|
11168
|
+
return theme.shadows.focus;
|
|
11142
11169
|
}, function (_ref8) {
|
|
11143
11170
|
var theme = _ref8.theme;
|
|
11171
|
+
return theme.colors.success;
|
|
11172
|
+
}, function (_ref9) {
|
|
11173
|
+
var theme = _ref9.theme;
|
|
11144
11174
|
return theme.radio.handleBackground;
|
|
11145
11175
|
}, styledSystem.space);
|
|
11146
|
-
Radio.defaultProps = {
|
|
11147
|
-
scale: scales.MD,
|
|
11148
|
-
m: 0
|
|
11149
|
-
};
|
|
11150
11176
|
|
|
11151
|
-
var _excluded$7 = ["startIcon", "endIcon", "children"];
|
|
11177
|
+
var _excluded$7 = ["startIcon", "endIcon", "children", "variant", "outline"];
|
|
11152
11178
|
var Tag = function Tag(_ref) {
|
|
11153
11179
|
var startIcon = _ref.startIcon,
|
|
11154
11180
|
endIcon = _ref.endIcon,
|
|
11155
11181
|
children = _ref.children,
|
|
11182
|
+
_ref$variant = _ref.variant,
|
|
11183
|
+
variant = _ref$variant === void 0 ? "primary" : _ref$variant,
|
|
11184
|
+
_ref$outline = _ref.outline,
|
|
11185
|
+
outline = _ref$outline === void 0 ? false : _ref$outline,
|
|
11156
11186
|
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
11157
11187
|
return /*#__PURE__*/jsxRuntime.jsxs(StyledTag, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
11188
|
+
variant: variant,
|
|
11189
|
+
outline: outline,
|
|
11158
11190
|
children: [/*#__PURE__*/React.isValidElement(startIcon) && /*#__PURE__*/React.cloneElement(startIcon, {
|
|
11159
11191
|
mr: "0.5rem"
|
|
11160
11192
|
}), children, /*#__PURE__*/React.isValidElement(endIcon) && /*#__PURE__*/React.cloneElement(endIcon, {
|
|
@@ -11162,10 +11194,6 @@ var Tag = function Tag(_ref) {
|
|
|
11162
11194
|
})]
|
|
11163
11195
|
}));
|
|
11164
11196
|
};
|
|
11165
|
-
Tag.defaultProps = {
|
|
11166
|
-
variant: "primary",
|
|
11167
|
-
outline: false
|
|
11168
|
-
};
|
|
11169
11197
|
|
|
11170
11198
|
exports.TagVariant = void 0;
|
|
11171
11199
|
(function (tagVariant) {
|
|
@@ -11303,7 +11331,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
|
|
|
11303
11331
|
return {
|
|
11304
11332
|
color: theme.colors.lightBlue,
|
|
11305
11333
|
icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
|
|
11306
|
-
opac: true,
|
|
11334
|
+
$opac: true,
|
|
11307
11335
|
fill: active ? theme.colors.lightBlue : theme.colors.grey
|
|
11308
11336
|
})
|
|
11309
11337
|
};
|
|
@@ -11311,7 +11339,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
|
|
|
11311
11339
|
return {
|
|
11312
11340
|
color: brandColors.binance,
|
|
11313
11341
|
icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
|
|
11314
|
-
opac: true,
|
|
11342
|
+
$opac: true,
|
|
11315
11343
|
fill: active ? brandColors.binance : theme.colors.grey
|
|
11316
11344
|
})
|
|
11317
11345
|
};
|
|
@@ -11319,7 +11347,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
|
|
|
11319
11347
|
return {
|
|
11320
11348
|
color: theme.colors.vividBlue,
|
|
11321
11349
|
icon: /*#__PURE__*/jsxRuntime.jsx(Icon$1a, {
|
|
11322
|
-
opac: true,
|
|
11350
|
+
$opac: true,
|
|
11323
11351
|
stroke: active ? theme.colors.vividBlue : theme.colors.grey
|
|
11324
11352
|
})
|
|
11325
11353
|
};
|
|
@@ -11327,7 +11355,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
|
|
|
11327
11355
|
return {
|
|
11328
11356
|
color: theme.colors.primary,
|
|
11329
11357
|
icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
|
|
11330
|
-
opac: true,
|
|
11358
|
+
$opac: true,
|
|
11331
11359
|
fill: active ? theme.colors.primary : theme.colors.grey
|
|
11332
11360
|
})
|
|
11333
11361
|
};
|
|
@@ -11353,10 +11381,6 @@ var CoreTag = function CoreTag(_ref8) {
|
|
|
11353
11381
|
})]
|
|
11354
11382
|
});
|
|
11355
11383
|
};
|
|
11356
|
-
CoreTag.defaultProps = {
|
|
11357
|
-
variant: "primary",
|
|
11358
|
-
outline: false
|
|
11359
|
-
};
|
|
11360
11384
|
|
|
11361
11385
|
var Icon$M = function Icon(props) {
|
|
11362
11386
|
return /*#__PURE__*/jsxRuntime.jsx(Svg, _objectSpread2(_objectSpread2({
|
|
@@ -11470,11 +11494,9 @@ var List = function List(_ref3) {
|
|
|
11470
11494
|
|
|
11471
11495
|
var _templateObject$1e, _templateObject2$L;
|
|
11472
11496
|
var Bar = styledComponents.styled.div(_templateObject$1e || (_templateObject$1e = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n background-color: ", ";\n border-top-left-radius: 32px;\n border-bottom-left-radius: 32px;\n height: 16px;\n transition: width 200ms ease;\n"])), function (props) {
|
|
11473
|
-
|
|
11497
|
+
var _props$primary;
|
|
11498
|
+
return ((_props$primary = props.primary) !== null && _props$primary !== void 0 ? _props$primary : false) ? props.theme.colors.secondary : "".concat(props.theme.colors.secondary, "80");
|
|
11474
11499
|
});
|
|
11475
|
-
Bar.defaultProps = {
|
|
11476
|
-
primary: false
|
|
11477
|
-
};
|
|
11478
11500
|
var StyledProgress = styledComponents.styled.div(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteral(["\n position: relative;\n background-color: ", ";\n border-radius: 32px;\n box-shadow: ", ";\n height: 16px;\n overflow: hidden;\n"])), function (_ref) {
|
|
11479
11501
|
var theme = _ref.theme;
|
|
11480
11502
|
return theme.colors.input;
|
|
@@ -12340,10 +12362,10 @@ var TableRow = function TableRow(_ref9) {
|
|
|
12340
12362
|
},
|
|
12341
12363
|
children: active ? /*#__PURE__*/jsxRuntime.jsx(Icon$2l, {
|
|
12342
12364
|
fill: darkColors.primary,
|
|
12343
|
-
opac: true
|
|
12365
|
+
$opac: true
|
|
12344
12366
|
}) : /*#__PURE__*/jsxRuntime.jsx(Icon$2o, {
|
|
12345
12367
|
fill: baseColors.white55,
|
|
12346
|
-
opac: true
|
|
12368
|
+
$opac: true
|
|
12347
12369
|
})
|
|
12348
12370
|
})]
|
|
12349
12371
|
}), active ? /*#__PURE__*/jsxRuntime.jsx(StyledTableDetails, {
|
|
@@ -12537,10 +12559,10 @@ var ValueFull = function ValueFull(_ref) {
|
|
|
12537
12559
|
children: [/*#__PURE__*/jsxRuntime.jsxs(DifferenceBox, {
|
|
12538
12560
|
children: [!_.isNil(difference) && (difference > 0 ? /*#__PURE__*/jsxRuntime.jsx(Icon$2l, {
|
|
12539
12561
|
fill: baseColors.green,
|
|
12540
|
-
opac: true
|
|
12562
|
+
$opac: true
|
|
12541
12563
|
}) : /*#__PURE__*/jsxRuntime.jsx(Icon$2o, {
|
|
12542
12564
|
fill: baseColors.red,
|
|
12543
|
-
opac: true
|
|
12565
|
+
$opac: true
|
|
12544
12566
|
})), /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
12545
12567
|
style: {
|
|
12546
12568
|
fontSize: "16px",
|
|
@@ -13141,7 +13163,7 @@ var ProviderRow = function ProviderRow(_ref4) {
|
|
|
13141
13163
|
isTheLastItem: isTheLastItem,
|
|
13142
13164
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
13143
13165
|
width: "40px",
|
|
13144
|
-
opac: true
|
|
13166
|
+
$opac: true
|
|
13145
13167
|
}), /*#__PURE__*/jsxRuntime.jsx(ProviderTitle, {
|
|
13146
13168
|
children: title
|
|
13147
13169
|
})]
|
|
@@ -13249,7 +13271,7 @@ var ConnectWallet = function ConnectWallet(_ref2) {
|
|
|
13249
13271
|
isUserVerified: isUserVerified,
|
|
13250
13272
|
textAlign: "right",
|
|
13251
13273
|
children: [isUserVerified && /*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
|
|
13252
|
-
opac: true
|
|
13274
|
+
$opac: true
|
|
13253
13275
|
}), /*#__PURE__*/jsxRuntime.jsx(AccountNumber, {
|
|
13254
13276
|
bold: true,
|
|
13255
13277
|
fontSize: "14px",
|
|
@@ -13264,7 +13286,7 @@ var ConnectWallet = function ConnectWallet(_ref2) {
|
|
|
13264
13286
|
children: [isUserVerified && /*#__PURE__*/jsxRuntime.jsxs(VerificationInfo, {
|
|
13265
13287
|
marginTop: "20px",
|
|
13266
13288
|
children: [/*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
|
|
13267
|
-
opac: true
|
|
13289
|
+
$opac: true
|
|
13268
13290
|
}), /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
13269
13291
|
color: "#818C92",
|
|
13270
13292
|
children: "Wallet connection has been verified"
|
|
@@ -13272,7 +13294,7 @@ var ConnectWallet = function ConnectWallet(_ref2) {
|
|
|
13272
13294
|
}), connectedProvider && /*#__PURE__*/jsxRuntime.jsxs(ConnectedProvider, {
|
|
13273
13295
|
children: [/*#__PURE__*/jsxRuntime.jsx(connectedProvider.icon, {
|
|
13274
13296
|
width: "40px",
|
|
13275
|
-
opac: true
|
|
13297
|
+
$opac: true
|
|
13276
13298
|
}), /*#__PURE__*/jsxRuntime.jsx(ProviderTitle, {
|
|
13277
13299
|
children: connectedProvider.title
|
|
13278
13300
|
})]
|
|
@@ -13360,7 +13382,7 @@ var VerifiedWallet = function VerifiedWallet(_ref) {
|
|
|
13360
13382
|
}), /*#__PURE__*/jsxRuntime.jsxs(AccountNumberWrapper, {
|
|
13361
13383
|
isVerifiedUser: true,
|
|
13362
13384
|
children: [/*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
|
|
13363
|
-
opac: true
|
|
13385
|
+
$opac: true
|
|
13364
13386
|
}), /*#__PURE__*/jsxRuntime.jsx(AccountNumber, {
|
|
13365
13387
|
bold: true,
|
|
13366
13388
|
fontSize: "14px",
|
|
@@ -13370,7 +13392,7 @@ var VerifiedWallet = function VerifiedWallet(_ref) {
|
|
|
13370
13392
|
}), /*#__PURE__*/jsxRuntime.jsxs(MiddleRow, {
|
|
13371
13393
|
children: [/*#__PURE__*/jsxRuntime.jsxs(VerificationInfo, {
|
|
13372
13394
|
children: [/*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
|
|
13373
|
-
opac: true
|
|
13395
|
+
$opac: true
|
|
13374
13396
|
}), /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
13375
13397
|
color: "#818C92",
|
|
13376
13398
|
children: "Wallet connection has been verified"
|
|
@@ -13378,7 +13400,7 @@ var VerifiedWallet = function VerifiedWallet(_ref) {
|
|
|
13378
13400
|
}), connectedProvider && /*#__PURE__*/jsxRuntime.jsxs(ConnectedProvider, {
|
|
13379
13401
|
children: [connectedProvider && /*#__PURE__*/jsxRuntime.jsx(connectedProvider.icon, {
|
|
13380
13402
|
width: "40px",
|
|
13381
|
-
opac: true
|
|
13403
|
+
$opac: true
|
|
13382
13404
|
}), /*#__PURE__*/jsxRuntime.jsx(ProviderTitle, {
|
|
13383
13405
|
children: connectedProvider.title
|
|
13384
13406
|
})]
|
|
@@ -14140,7 +14162,7 @@ var CSSPower = function CSSPower(_ref7) {
|
|
|
14140
14162
|
right: 30,
|
|
14141
14163
|
children: /*#__PURE__*/jsxRuntime.jsx(StyledInfoIcon, {
|
|
14142
14164
|
fill: baseColors.primary,
|
|
14143
|
-
opac: true
|
|
14165
|
+
$opac: true
|
|
14144
14166
|
})
|
|
14145
14167
|
})]
|
|
14146
14168
|
}), /*#__PURE__*/jsxRuntime.jsx(CSSPowerValue, {
|
|
@@ -14569,7 +14591,7 @@ var AddToCap = function AddToCap(_ref18) {
|
|
|
14569
14591
|
children: [isSigned ? /*#__PURE__*/jsxRuntime.jsx(Icon$1_, {
|
|
14570
14592
|
color: baseColors.primary
|
|
14571
14593
|
}) : /*#__PURE__*/jsxRuntime.jsx(Icon$1Z, {
|
|
14572
|
-
opac: true
|
|
14594
|
+
$opac: true
|
|
14573
14595
|
}), /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
14574
14596
|
ml: "16px",
|
|
14575
14597
|
bold: true,
|
|
@@ -14618,7 +14640,7 @@ var AddToCap = function AddToCap(_ref18) {
|
|
|
14618
14640
|
},
|
|
14619
14641
|
disabled: !eligible || actionPending || buttonDisabled,
|
|
14620
14642
|
endIcon: actionPending && /*#__PURE__*/jsxRuntime.jsx(Icon$2v, {
|
|
14621
|
-
spin: true,
|
|
14643
|
+
$spin: true,
|
|
14622
14644
|
color: "currentColor"
|
|
14623
14645
|
}),
|
|
14624
14646
|
children: getActionButtonText()
|
|
@@ -14713,7 +14735,7 @@ var AddToCap = function AddToCap(_ref18) {
|
|
|
14713
14735
|
right: 30,
|
|
14714
14736
|
children: /*#__PURE__*/jsxRuntime.jsx(StyledInfoIcon, {
|
|
14715
14737
|
fill: baseColors.primary,
|
|
14716
|
-
opac: true
|
|
14738
|
+
$opac: true
|
|
14717
14739
|
})
|
|
14718
14740
|
})]
|
|
14719
14741
|
}), isParticipation && isSigned && /*#__PURE__*/jsxRuntime.jsxs(PersonalValuesWrapper, {
|
|
@@ -14770,7 +14792,7 @@ var AddToCap = function AddToCap(_ref18) {
|
|
|
14770
14792
|
}), /*#__PURE__*/jsxRuntime.jsxs(MainFunctionsWrapper, {
|
|
14771
14793
|
children: [/*#__PURE__*/jsxRuntime.jsx(AddCapButton, {
|
|
14772
14794
|
endIcon: actionPending && /*#__PURE__*/jsxRuntime.jsx(Icon$2v, {
|
|
14773
|
-
spin: true,
|
|
14795
|
+
$spin: true,
|
|
14774
14796
|
color: "currentColor"
|
|
14775
14797
|
}),
|
|
14776
14798
|
disabled: isButtonDisabled() || error !== "",
|
|
@@ -15396,7 +15418,7 @@ var AccountInfo = function AccountInfo(_ref27) {
|
|
|
15396
15418
|
},
|
|
15397
15419
|
onClick: copyAccount,
|
|
15398
15420
|
fill: accountCopied ? baseColors.white55 : baseColors.primary,
|
|
15399
|
-
opac: true
|
|
15421
|
+
$opac: true
|
|
15400
15422
|
})]
|
|
15401
15423
|
})
|
|
15402
15424
|
})]
|
|
@@ -15718,7 +15740,7 @@ var UserTiers = function UserTiers(props) {
|
|
|
15718
15740
|
}), /*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
15719
15741
|
as: "a",
|
|
15720
15742
|
href: powerUpHref,
|
|
15721
|
-
fullWidth: true,
|
|
15743
|
+
$fullWidth: true,
|
|
15722
15744
|
padding: "24px 0px",
|
|
15723
15745
|
marginTop: "40px",
|
|
15724
15746
|
children: /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
@@ -15732,7 +15754,7 @@ var UserTiers = function UserTiers(props) {
|
|
|
15732
15754
|
variant: exports.ButtonVariant.OUTLINE,
|
|
15733
15755
|
as: "a",
|
|
15734
15756
|
href: learnMoreHref,
|
|
15735
|
-
fullWidth: true,
|
|
15757
|
+
$fullWidth: true,
|
|
15736
15758
|
padding: "16px 0px",
|
|
15737
15759
|
marginTop: "16px",
|
|
15738
15760
|
children: /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
@@ -15962,10 +15984,10 @@ var CopyLinkCard = function CopyLinkCard(_ref3) {
|
|
|
15962
15984
|
},
|
|
15963
15985
|
children: refCopied ? /*#__PURE__*/jsxRuntime.jsx(Icon$2q, {
|
|
15964
15986
|
fill: baseColors.secondary,
|
|
15965
|
-
opac: true
|
|
15987
|
+
$opac: true
|
|
15966
15988
|
}) : /*#__PURE__*/jsxRuntime.jsx(Icon$2g, {
|
|
15967
15989
|
fill: baseColors.secondary,
|
|
15968
|
-
opac: true
|
|
15990
|
+
$opac: true
|
|
15969
15991
|
})
|
|
15970
15992
|
})]
|
|
15971
15993
|
}), /*#__PURE__*/jsxRuntime.jsxs(SocialRow, {
|
|
@@ -16654,7 +16676,7 @@ var StyledLink = styledComponents.styled(reactRouterDom.Link)(_templateObject$o
|
|
|
16654
16676
|
var theme = _ref.theme;
|
|
16655
16677
|
return theme.mediaQueries.nav;
|
|
16656
16678
|
});
|
|
16657
|
-
var CoinswapLogo = styledComponents.styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n opacity: ", ";\n width: ", ";\n transition: width 0.6s, opacity 0.3s;\n"])), function (_ref2) {
|
|
16679
|
+
var CoinswapLogo = styledComponents.styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n $opacity: ", ";\n width: ", ";\n transition: width 0.6s, $opacity 0.3s;\n"])), function (_ref2) {
|
|
16658
16680
|
var isPushed = _ref2.isPushed;
|
|
16659
16681
|
return isPushed ? 1 : 0;
|
|
16660
16682
|
}, function (_ref3) {
|
|
@@ -16671,13 +16693,13 @@ var Logo = function Logo(_ref4) {
|
|
|
16671
16693
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
16672
16694
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon$2d, {
|
|
16673
16695
|
className: "mobile-icon",
|
|
16674
|
-
opac: true
|
|
16696
|
+
$opac: true
|
|
16675
16697
|
}), /*#__PURE__*/jsxRuntime.jsx(CoinswapLogo, {
|
|
16676
16698
|
isPushed: pushed,
|
|
16677
16699
|
children: !isMobile ? /*#__PURE__*/jsxRuntime.jsx(LogoWithText, {
|
|
16678
16700
|
className: "desktop-icon",
|
|
16679
16701
|
isDark: isDark,
|
|
16680
|
-
opac: true
|
|
16702
|
+
$opac: true
|
|
16681
16703
|
}) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {})
|
|
16682
16704
|
})]
|
|
16683
16705
|
});
|
|
@@ -16890,11 +16912,6 @@ var MenuEntry = styledComponents.styled.div(_templateObject3$d || (_templateObje
|
|
|
16890
16912
|
var theme = _ref10.theme;
|
|
16891
16913
|
return theme.colors.gradients.bubblegum;
|
|
16892
16914
|
});
|
|
16893
|
-
MenuEntry.defaultProps = {
|
|
16894
|
-
secondary: false,
|
|
16895
|
-
isActive: false,
|
|
16896
|
-
role: "button"
|
|
16897
|
-
};
|
|
16898
16915
|
|
|
16899
16916
|
var _templateObject$m, _templateObject2$g, _templateObject3$c;
|
|
16900
16917
|
var Container$2 = styledComponents.styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n // Safari fix\n flex-shrink: 0;\n"])));
|
|
@@ -17028,7 +17045,7 @@ var PanelBody = function PanelBody(_ref4) {
|
|
|
17028
17045
|
height: "18px",
|
|
17029
17046
|
mr: "8px",
|
|
17030
17047
|
fill: activeLink ? "#12FFB8" : baseColors.grey,
|
|
17031
|
-
opac: true
|
|
17048
|
+
$opac: true
|
|
17032
17049
|
}) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
17033
17050
|
var calloutClass = entry.calloutClass ? entry.calloutClass : undefined;
|
|
17034
17051
|
if (entry.items) {
|
|
@@ -17051,7 +17068,7 @@ var PanelBody = function PanelBody(_ref4) {
|
|
|
17051
17068
|
var entryIconElement = EntryIcon ? /*#__PURE__*/jsxRuntime.jsx(EntryIcon, {
|
|
17052
17069
|
width: "18px",
|
|
17053
17070
|
mr: "8px",
|
|
17054
|
-
opac: true
|
|
17071
|
+
$opac: true
|
|
17055
17072
|
}) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
17056
17073
|
return /*#__PURE__*/jsxRuntime.jsxs(MenuEntry, {
|
|
17057
17074
|
isActive: item.href === location.pathname,
|
|
@@ -17089,30 +17106,40 @@ var PanelBody = function PanelBody(_ref4) {
|
|
|
17089
17106
|
});
|
|
17090
17107
|
};
|
|
17091
17108
|
|
|
17092
|
-
var _excluded$1 = ["startIcon", "endIcon", "children", "external", "isLoading", "disabled"];
|
|
17109
|
+
var _excluded$1 = ["startIcon", "endIcon", "children", "external", "$isLoading", "isLoading", "disabled"];
|
|
17093
17110
|
var _templateObject$k;
|
|
17094
|
-
var StyledNavButton = styledComponents.styled.button
|
|
17095
|
-
|
|
17096
|
-
|
|
17111
|
+
var StyledNavButton = styledComponents.styled.button.withConfig({
|
|
17112
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
17113
|
+
return !['$fullWidth', '$isLoading'].includes(prop);
|
|
17114
|
+
}
|
|
17115
|
+
})(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n align-items: center;\n cursor: pointer;\n display: flex;\n justify-content: center;\n font-family: inherit;\n font-size: 16px;\n font-weight: 600;\n /* max-content instead of auto for Safari fix */\n width: ", ";\n height: ", ";\n line-height: 1;\n letter-spacing: 0.03em;\n justify-content: center;\n outline: 0;\n border: none;\n transition: background-color 0.2s;\n background-color: transparent;\n opacity: ", ";\n margin-left: 10px;\n"])), function (_ref) {
|
|
17116
|
+
var $fullWidth = _ref.$fullWidth,
|
|
17117
|
+
fullWidth = _ref.fullWidth;
|
|
17118
|
+
return $fullWidth || fullWidth ? "100%" : "max-content";
|
|
17097
17119
|
}, function (_ref2) {
|
|
17098
17120
|
var size = _ref2.size;
|
|
17099
17121
|
return size === "sm" ? "32px" : "48px";
|
|
17100
17122
|
}, function (_ref3) {
|
|
17101
|
-
var isLoading = _ref3
|
|
17102
|
-
|
|
17123
|
+
var $isLoading = _ref3.$isLoading,
|
|
17124
|
+
isLoading = _ref3.isLoading;
|
|
17125
|
+
return $isLoading || isLoading ? 0.5 : 1;
|
|
17103
17126
|
});
|
|
17104
17127
|
var NavButton = function NavButton(_ref4) {
|
|
17105
17128
|
var startIcon = _ref4.startIcon,
|
|
17106
17129
|
endIcon = _ref4.endIcon,
|
|
17107
17130
|
children = _ref4.children,
|
|
17108
|
-
external = _ref4.external,
|
|
17109
|
-
|
|
17110
|
-
|
|
17131
|
+
_ref4$external = _ref4.external,
|
|
17132
|
+
external = _ref4$external === void 0 ? false : _ref4$external,
|
|
17133
|
+
$isLoadingProp = _ref4.$isLoading,
|
|
17134
|
+
isLoadingProp = _ref4.isLoading,
|
|
17135
|
+
_ref4$disabled = _ref4.disabled,
|
|
17136
|
+
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
17111
17137
|
props = _objectWithoutProperties(_ref4, _excluded$1);
|
|
17112
17138
|
var internalProps = external ? getExternalLinkProps() : {};
|
|
17113
|
-
var
|
|
17139
|
+
var $isLoading = $isLoadingProp || isLoadingProp || false;
|
|
17140
|
+
var isDisabled = $isLoading || disabled;
|
|
17114
17141
|
return /*#__PURE__*/jsxRuntime.jsxs(StyledNavButton, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
|
|
17115
|
-
isLoading: isLoading,
|
|
17142
|
+
$isLoading: $isLoading,
|
|
17116
17143
|
disabled: isDisabled,
|
|
17117
17144
|
children: [/*#__PURE__*/React.isValidElement(startIcon) && /*#__PURE__*/React.cloneElement(startIcon, {
|
|
17118
17145
|
mr: "0.5rem"
|
|
@@ -17121,49 +17148,41 @@ var NavButton = function NavButton(_ref4) {
|
|
|
17121
17148
|
})]
|
|
17122
17149
|
}));
|
|
17123
17150
|
};
|
|
17124
|
-
NavButton.defaultProps = {
|
|
17125
|
-
variant: variants$4.PRIMARY,
|
|
17126
|
-
size: sizes$2.MD,
|
|
17127
|
-
external: false,
|
|
17128
|
-
isLoading: false,
|
|
17129
|
-
disabled: false
|
|
17130
|
-
};
|
|
17131
17151
|
|
|
17132
17152
|
var _templateObject$j;
|
|
17133
|
-
var MenuButton = styledComponents.styled(NavButton)(
|
|
17153
|
+
var MenuButton = styledComponents.styled(NavButton).attrs({
|
|
17154
|
+
variant: "text",
|
|
17155
|
+
size: "sm"
|
|
17156
|
+
})(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n color: ", ";\n padding: 0 8px;\n border-radius: 8px;\n"])), function (_ref) {
|
|
17134
17157
|
var theme = _ref.theme;
|
|
17135
17158
|
return theme.colors.text;
|
|
17136
17159
|
});
|
|
17137
|
-
MenuButton.defaultProps = {
|
|
17138
|
-
variant: "text",
|
|
17139
|
-
size: "sm"
|
|
17140
|
-
};
|
|
17141
17160
|
|
|
17142
17161
|
var getLangFlag = function getLangFlag(lang) {
|
|
17143
17162
|
switch (lang.code) {
|
|
17144
17163
|
case "EN":
|
|
17145
17164
|
return /*#__PURE__*/jsxRuntime.jsx(Icon$15, {
|
|
17146
|
-
opac: true
|
|
17165
|
+
$opac: true
|
|
17147
17166
|
});
|
|
17148
17167
|
case "CH":
|
|
17149
17168
|
return /*#__PURE__*/jsxRuntime.jsx(Icon$14, {
|
|
17150
|
-
opac: true
|
|
17169
|
+
$opac: true
|
|
17151
17170
|
});
|
|
17152
17171
|
case "IN":
|
|
17153
17172
|
return /*#__PURE__*/jsxRuntime.jsx(Icon$13, {
|
|
17154
|
-
opac: true
|
|
17173
|
+
$opac: true
|
|
17155
17174
|
});
|
|
17156
17175
|
case "VIE":
|
|
17157
17176
|
return /*#__PURE__*/jsxRuntime.jsx(Icon$12, {
|
|
17158
|
-
opac: true
|
|
17177
|
+
$opac: true
|
|
17159
17178
|
});
|
|
17160
17179
|
case "TH":
|
|
17161
17180
|
return /*#__PURE__*/jsxRuntime.jsx(Icon$11, {
|
|
17162
|
-
opac: true
|
|
17181
|
+
$opac: true
|
|
17163
17182
|
});
|
|
17164
17183
|
case "SP":
|
|
17165
17184
|
return /*#__PURE__*/jsxRuntime.jsx(Icon$10, {
|
|
17166
|
-
opac: true
|
|
17185
|
+
$opac: true
|
|
17167
17186
|
});
|
|
17168
17187
|
default:
|
|
17169
17188
|
return /*#__PURE__*/jsxRuntime.jsx("div", {});
|
|
@@ -17239,7 +17258,7 @@ var LangSelector = function LangSelector(_ref9) {
|
|
|
17239
17258
|
style: {
|
|
17240
17259
|
marginRight: 10
|
|
17241
17260
|
},
|
|
17242
|
-
opac: true
|
|
17261
|
+
$opac: true
|
|
17243
17262
|
}),
|
|
17244
17263
|
isPushed: isPushed,
|
|
17245
17264
|
children: [/*#__PURE__*/jsxRuntime.jsx(MainLangText, {
|
|
@@ -17278,7 +17297,7 @@ var LangSelector = function LangSelector(_ref9) {
|
|
|
17278
17297
|
}), /*#__PURE__*/jsxRuntime.jsx(LangsList, {
|
|
17279
17298
|
children: langs.map(function (lang, index) {
|
|
17280
17299
|
return /*#__PURE__*/jsxRuntime.jsxs(MenuButton, {
|
|
17281
|
-
fullWidth: true,
|
|
17300
|
+
$fullWidth: true,
|
|
17282
17301
|
onClick: function onClick() {
|
|
17283
17302
|
return chooseLangHandler(lang);
|
|
17284
17303
|
},
|
|
@@ -17367,7 +17386,7 @@ var MobileMenu = function MobileMenu(_ref3) {
|
|
|
17367
17386
|
height: "17px",
|
|
17368
17387
|
mb: "7px",
|
|
17369
17388
|
fill: activeLink ? "#12FFB8" : baseColors.grey,
|
|
17370
|
-
opac: true
|
|
17389
|
+
$opac: true
|
|
17371
17390
|
}) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
17372
17391
|
return /*#__PURE__*/jsxRuntime.jsx(MobileEntry, {
|
|
17373
17392
|
isActive: activeLink,
|
|
@@ -17521,13 +17540,13 @@ var DiclaimerModal = function DiclaimerModal(_ref) {
|
|
|
17521
17540
|
children: /*#__PURE__*/jsxRuntime.jsxs(Flex, {
|
|
17522
17541
|
justifyContent: "space-between",
|
|
17523
17542
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
17524
|
-
white: true,
|
|
17543
|
+
$white: true,
|
|
17525
17544
|
size: "md",
|
|
17526
17545
|
variant: "secondary",
|
|
17527
17546
|
onClick: function onClick() {
|
|
17528
17547
|
return onClickHandler(false);
|
|
17529
17548
|
},
|
|
17530
|
-
fullWidth: true,
|
|
17549
|
+
$fullWidth: true,
|
|
17531
17550
|
children: t("Decline")
|
|
17532
17551
|
}), /*#__PURE__*/jsxRuntime.jsx(Space, {}), /*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
17533
17552
|
disabled: _.some(checkBoxes, {
|
|
@@ -17538,7 +17557,7 @@ var DiclaimerModal = function DiclaimerModal(_ref) {
|
|
|
17538
17557
|
onClick: function onClick() {
|
|
17539
17558
|
return onClickHandler(true);
|
|
17540
17559
|
},
|
|
17541
|
-
fullWidth: true,
|
|
17560
|
+
$fullWidth: true,
|
|
17542
17561
|
children: t("Agree")
|
|
17543
17562
|
})]
|
|
17544
17563
|
})
|
|
@@ -17719,7 +17738,7 @@ var UserBlock = function UserBlock(_ref8) {
|
|
|
17719
17738
|
setIsConnectWalletPanelOpen(true);
|
|
17720
17739
|
},
|
|
17721
17740
|
children: [isUserVerified ? /*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
|
|
17722
|
-
opac: true
|
|
17741
|
+
$opac: true
|
|
17723
17742
|
}) : /*#__PURE__*/jsxRuntime.jsx(VerifyAddressIndicator, {
|
|
17724
17743
|
fontSize: "12px",
|
|
17725
17744
|
fontWeight: 500,
|
|
@@ -17790,7 +17809,7 @@ var BellNotifier = function BellNotifier(_ref1) {
|
|
|
17790
17809
|
onClick: onClick,
|
|
17791
17810
|
hasMsg: hasMessage,
|
|
17792
17811
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1e, {
|
|
17793
|
-
opac: true,
|
|
17812
|
+
$opac: true,
|
|
17794
17813
|
fill: !hasMessage ? "#2B2B32" : undefined
|
|
17795
17814
|
}), /*#__PURE__*/jsxRuntime.jsx(NotificationNumber, {
|
|
17796
17815
|
hasMsg: hasMessage,
|
|
@@ -17817,7 +17836,7 @@ var CryptoDropdownWrapper = styledComponents.styled.button(_templateObject$a ||
|
|
|
17817
17836
|
var theme = _ref2.theme;
|
|
17818
17837
|
return theme.mediaQueries.mobile;
|
|
17819
17838
|
});
|
|
17820
|
-
var ButtonsContainer = styledComponents.styled.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteral(["\n position: absolute;\n width: 159px;\n height: 89px;\n top: 53px;\n right: 0px;\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n opacity: ", ";\n display: flex;\n z-index: ", "999;\n transition-property: opacity, box-shadow;\n transition-duration: 0.5s, 0.3s;\n box-shadow: 0px 0px 24px -11px rgba(0, 0, 0, 0.25);\n border-radius: 10px;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n ", " {\n display: ", ";\n }\n"])), function (_ref3) {
|
|
17839
|
+
var ButtonsContainer = styledComponents.styled.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteral(["\n position: absolute;\n width: 159px;\n height: 89px;\n top: 53px;\n right: 0px;\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n $opacity: ", ";\n display: flex;\n z-index: ", "999;\n transition-property: $opacity, box-shadow;\n transition-duration: 0.5s, 0.3s;\n box-shadow: 0px 0px 24px -11px rgba(0, 0, 0, 0.25);\n border-radius: 10px;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n ", " {\n display: ", ";\n }\n"])), function (_ref3) {
|
|
17821
17840
|
var theme = _ref3.theme;
|
|
17822
17841
|
return theme.backgrounds.secondary;
|
|
17823
17842
|
}, function (_ref4) {
|
|
@@ -17833,7 +17852,7 @@ var ButtonsContainer = styledComponents.styled.div(_templateObject2$7 || (_templ
|
|
|
17833
17852
|
}, function (props) {
|
|
17834
17853
|
return props.visible ? "flex" : "none";
|
|
17835
17854
|
});
|
|
17836
|
-
var ButtonRow = styledComponents.styled(Link)(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 11px;\n width: 100%;\n height: 100%;\n overflow: visible;\n z-index: 99999;\n svg {\n opacity: 0.55;\n }\n &:hover {\n svg {\n opacity: 1;\n }\n }\n transition: all 0.3s ease-in;\n"])));
|
|
17855
|
+
var ButtonRow = styledComponents.styled(Link)(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 11px;\n width: 100%;\n height: 100%;\n overflow: visible;\n z-index: 99999;\n svg {\n $opacity: 0.55;\n }\n &:hover {\n svg {\n $opacity: 1;\n }\n }\n transition: all 0.3s ease-in;\n"])));
|
|
17837
17856
|
var ButtonsSpacer = styledComponents.styled.div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral(["\n border: 1px solid #373749;\n width: calc(100% - 20px);\n"])));
|
|
17838
17857
|
var CryptoButton = function CryptoButton(_ref6) {
|
|
17839
17858
|
var _ref6$extended = _ref6.extended,
|
|
@@ -17858,18 +17877,18 @@ var CryptoButton = function CryptoButton(_ref6) {
|
|
|
17858
17877
|
return closeDropDownHandler();
|
|
17859
17878
|
},
|
|
17860
17879
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1i, {
|
|
17861
|
-
opac: true,
|
|
17880
|
+
$opac: true,
|
|
17862
17881
|
height: "11"
|
|
17863
17882
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$1h, {
|
|
17864
|
-
opac: true,
|
|
17883
|
+
$opac: true,
|
|
17865
17884
|
height: "16.6"
|
|
17866
17885
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$2m, {
|
|
17867
17886
|
fill: baseColors.primaryBright,
|
|
17868
|
-
opac: true
|
|
17887
|
+
$opac: true
|
|
17869
17888
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$16, {
|
|
17870
|
-
opac: true
|
|
17889
|
+
$opac: true
|
|
17871
17890
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$17, {
|
|
17872
|
-
opac: true
|
|
17891
|
+
$opac: true
|
|
17873
17892
|
})]
|
|
17874
17893
|
}), /*#__PURE__*/jsxRuntime.jsx(ButtonsSpacer, {}), /*#__PURE__*/jsxRuntime.jsxs(ButtonRow, {
|
|
17875
17894
|
as: "a",
|
|
@@ -17879,17 +17898,17 @@ var CryptoButton = function CryptoButton(_ref6) {
|
|
|
17879
17898
|
return closeDropDownHandler();
|
|
17880
17899
|
},
|
|
17881
17900
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon$16, {
|
|
17882
|
-
opac: true
|
|
17901
|
+
$opac: true
|
|
17883
17902
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$17, {
|
|
17884
|
-
opac: true
|
|
17903
|
+
$opac: true
|
|
17885
17904
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$2m, {
|
|
17886
17905
|
fill: baseColors.primaryBright,
|
|
17887
|
-
opac: true
|
|
17906
|
+
$opac: true
|
|
17888
17907
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$1i, {
|
|
17889
|
-
opac: true,
|
|
17908
|
+
$opac: true,
|
|
17890
17909
|
height: "11"
|
|
17891
17910
|
}), /*#__PURE__*/jsxRuntime.jsx(Icon$1h, {
|
|
17892
|
-
opac: true,
|
|
17911
|
+
$opac: true,
|
|
17893
17912
|
height: "16.6"
|
|
17894
17913
|
})]
|
|
17895
17914
|
})]
|
|
@@ -17904,14 +17923,14 @@ var CryptoButton = function CryptoButton(_ref6) {
|
|
|
17904
17923
|
return closeDropDownHandler();
|
|
17905
17924
|
},
|
|
17906
17925
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1i, {
|
|
17907
|
-
opac: true,
|
|
17926
|
+
$opac: true,
|
|
17908
17927
|
height: isMobile ? "12" : ""
|
|
17909
17928
|
}), extended && /*#__PURE__*/jsxRuntime.jsx(Icon$1h, {
|
|
17910
|
-
opac: true,
|
|
17929
|
+
$opac: true,
|
|
17911
17930
|
display: extended ? "block" : "none",
|
|
17912
17931
|
height: isMobile ? "14" : ""
|
|
17913
17932
|
}), extended && /*#__PURE__*/jsxRuntime.jsx(Icon$2o, {
|
|
17914
|
-
opac: true
|
|
17933
|
+
$opac: true
|
|
17915
17934
|
}), /*#__PURE__*/jsxRuntime.jsx(ButtonsContainer, {
|
|
17916
17935
|
visible: dropToggled,
|
|
17917
17936
|
children: transactionsButtons()
|
|
@@ -18334,7 +18353,7 @@ var VerificationModal = function VerificationModal(props) {
|
|
|
18334
18353
|
bodyPadding: "0px 57px 32px 57px",
|
|
18335
18354
|
children: /*#__PURE__*/jsxRuntime.jsxs(VerificationModalContent, {
|
|
18336
18355
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon$28, {
|
|
18337
|
-
opac: true,
|
|
18356
|
+
$opac: true,
|
|
18338
18357
|
height: 48,
|
|
18339
18358
|
width: 48,
|
|
18340
18359
|
color: baseColors.vividBlue
|
|
@@ -18591,9 +18610,9 @@ var IdoExtensionsModal = function IdoExtensionsModal(_ref7) {
|
|
|
18591
18610
|
}), /*#__PURE__*/jsxRuntime.jsx(ModalButton, {
|
|
18592
18611
|
disabled: isButtonDisabled(),
|
|
18593
18612
|
type: "submit",
|
|
18594
|
-
isLoading: extensionsLoading,
|
|
18613
|
+
$isLoading: extensionsLoading,
|
|
18595
18614
|
endIcon: extensionsLoading && /*#__PURE__*/jsxRuntime.jsx(Icon$2v, {
|
|
18596
|
-
spin: true,
|
|
18615
|
+
$spin: true,
|
|
18597
18616
|
color: "currentColor"
|
|
18598
18617
|
}),
|
|
18599
18618
|
children: "Continue"
|