@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/index.esm.js CHANGED
@@ -311,26 +311,33 @@ var getThemeValue = function getThemeValue(path, fallback) {
311
311
  var _templateObject$2b, _templateObject2$16, _templateObject3$O;
312
312
  var rotate$1 = keyframes(_templateObject$2b || (_templateObject$2b = _taggedTemplateLiteral(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"])));
313
313
  var spinStyle = css(_templateObject2$16 || (_templateObject2$16 = _taggedTemplateLiteral(["\n animation: ", " 2s linear infinite;\n"])), rotate$1);
314
- var Svg = styled("svg")(_templateObject3$O || (_templateObject3$O = _taggedTemplateLiteral(["\n fill: ", ";\n flex-shrink: 0;\n\n ", "\n ", "\n path {\n fill: ", ";\n //Opacity set on 0.5\n fill-opacity: ", ";\n }\n"])), function (_ref) {
314
+ var Svg = styled("svg").withConfig({
315
+ shouldForwardProp: function shouldForwardProp(prop) {
316
+ return !['$spin', '$opac'].includes(prop);
317
+ }
318
+ })(_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) {
315
319
  var theme = _ref.theme,
316
- color = _ref.color;
320
+ _ref$color = _ref.color,
321
+ color = _ref$color === void 0 ? "text" : _ref$color;
317
322
  return getThemeValue("colors.".concat(color), color)(theme);
318
323
  }, function (_ref2) {
319
- var spin = _ref2.spin;
320
- return spin && spinStyle;
321
- }, space, function (_ref3) {
322
- var fill = _ref3.fill;
323
- return fill;
324
+ var _ref2$width = _ref2.width,
325
+ width = _ref2$width === void 0 ? "20px" : _ref2$width;
326
+ return width;
327
+ }, function (_ref3) {
328
+ var _ref3$xmlns = _ref3.xmlns,
329
+ xmlns = _ref3$xmlns === void 0 ? "http://www.w3.org/2000/svg" : _ref3$xmlns;
330
+ return xmlns;
324
331
  }, function (_ref4) {
325
- var opac = _ref4.opac;
326
- return opac ? 1 : 0.5;
332
+ var $spin = _ref4.$spin;
333
+ return $spin && spinStyle;
334
+ }, space, function (_ref5) {
335
+ var fill = _ref5.fill;
336
+ return fill;
337
+ }, function (_ref6) {
338
+ var $opac = _ref6.$opac;
339
+ return $opac ? 1 : 0.5;
327
340
  });
328
- Svg.defaultProps = {
329
- color: "text",
330
- width: "20px",
331
- xmlns: "http://www.w3.org/2000/svg",
332
- spin: false
333
- };
334
341
 
335
342
  var Icon$2H = function Icon(props) {
336
343
  return /*#__PURE__*/jsx(Svg, _objectSpread2(_objectSpread2({
@@ -387,20 +394,21 @@ var getColor$1 = function getColor(_ref) {
387
394
  };
388
395
  var getFontSize = function getFontSize(_ref2) {
389
396
  var fontSize = _ref2.fontSize,
390
- small = _ref2.small;
391
- return small ? "14px" : fontSize || "16px";
397
+ $small = _ref2.$small;
398
+ return $small ? "14px" : fontSize || "16px";
392
399
  };
393
- var Text = styled.div(_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) {
394
- var bold = _ref3.bold;
395
- return bold ? 700 : 400;
400
+ var Text = styled.div.withConfig({
401
+ shouldForwardProp: function shouldForwardProp(prop) {
402
+ return !['$bold', '$small'].includes(prop);
403
+ }
404
+ })(_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) {
405
+ var $bold = _ref3.$bold,
406
+ bold = _ref3.bold;
407
+ return $bold || bold ? 700 : 400;
396
408
  }, function (_ref4) {
397
409
  var textTransform = _ref4.textTransform;
398
410
  return textTransform && "text-transform: ".concat(textTransform, ";");
399
411
  }, space, typography);
400
- Text.defaultProps = {
401
- color: "text",
402
- small: false
403
- };
404
412
 
405
413
  var getExternalLinkProps = function getExternalLinkProps() {
406
414
  return {
@@ -442,9 +450,9 @@ var variants$4 = {
442
450
 
443
451
  var _templateObject$29;
444
452
  var getDisabledStyles$3 = function getDisabledStyles(_ref) {
445
- var isLoading = _ref.isLoading,
453
+ var $isLoading = _ref.$isLoading,
446
454
  theme = _ref.theme;
447
- if (isLoading === true) {
455
+ if ($isLoading === true) {
448
456
  return "\n &:disabled,\n &.button--disabled {\n cursor: not-allowed;\n }\n ";
449
457
  }
450
458
  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 ");
@@ -465,12 +473,17 @@ var getButtonVariantProp$3 = function getButtonVariantProp(prop) {
465
473
  return theme.button[variant][prop];
466
474
  };
467
475
  };
468
- var StyledButton$2 = styled.button(_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) {
469
- var white = _ref4.white;
470
- return white ? "white" : getButtonVariantProp$3("color");
476
+ var StyledButton$2 = styled.button.withConfig({
477
+ shouldForwardProp: function shouldForwardProp(prop) {
478
+ return !['$fullWidth', '$isLoading', '$white'].includes(prop);
479
+ }
480
+ })(_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) {
481
+ var $white = _ref4.$white;
482
+ return $white ? "white" : getButtonVariantProp$3("color");
471
483
  }, function (_ref5) {
472
- var fullWidth = _ref5.fullWidth;
473
- return fullWidth ? "100%" : "max-content";
484
+ var _ref5$$fullWidth = _ref5.$fullWidth,
485
+ $fullWidth = _ref5$$fullWidth === void 0 ? false : _ref5$$fullWidth;
486
+ return $fullWidth ? "100%" : "max-content";
474
487
  }, function (_ref6) {
475
488
  var size = _ref6.size;
476
489
  return size === "sm" ? "32px" : "40px";
@@ -478,49 +491,51 @@ var StyledButton$2 = styled.button(_templateObject$29 || (_templateObject$29 = _
478
491
  var size = _ref7.size;
479
492
  return size === "sm" ? "0 16px" : "0 24px";
480
493
  }, function (_ref8) {
481
- var isLoading = _ref8.isLoading;
482
- return isLoading ? 0.5 : 1;
494
+ var _ref8$$isLoading = _ref8.$isLoading,
495
+ $isLoading = _ref8$$isLoading === void 0 ? false : _ref8$$isLoading;
496
+ return $isLoading ? 0.5 : 1;
483
497
  }, getButtonVariantProp$3("backgroundHover"), getButtonVariantProp$3("borderColorHover"), function (_ref9) {
484
498
  var theme = _ref9.theme;
485
499
  return theme.colors.secondary;
486
500
  }, getButtonVariantProp$3("backgroundActive"), getButtonVariantProp$3("boxShadowActive"), getDisabledStyles$3, removePointerEvents$3, space);
487
- StyledButton$2.defaultProps = {
488
- fullWidth: false,
489
- type: "button"
490
- };
491
501
 
492
- var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled", "white"];
493
- var Button$1 = function Button(_ref) {
502
+ var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "$isLoading", "disabled", "$white", "$fullWidth", "fullWidth", "isLoading", "white"];
503
+ var Button$1 = /*#__PURE__*/React__default.forwardRef(function (_ref) {
494
504
  var startIcon = _ref.startIcon,
495
505
  style = _ref.style,
496
506
  endIcon = _ref.endIcon,
497
507
  children = _ref.children,
498
- external = _ref.external,
499
- isLoading = _ref.isLoading,
500
- disabled = _ref.disabled,
501
- white = _ref.white,
508
+ _ref$external = _ref.external,
509
+ external = _ref$external === void 0 ? false : _ref$external,
510
+ $isLoadingProp = _ref.$isLoading,
511
+ _ref$disabled = _ref.disabled,
512
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
513
+ $whiteProp = _ref.$white,
514
+ $fullWidthProp = _ref.$fullWidth,
515
+ fullWidthProp = _ref.fullWidth,
516
+ isLoadingProp = _ref.isLoading,
517
+ whiteProp = _ref.white,
502
518
  props = _objectWithoutProperties(_ref, _excluded$12);
503
519
  var internalProps = external ? getExternalLinkProps() : {};
504
- var isDisabled = isLoading || disabled;
520
+ var $isLoading = $isLoadingProp || isLoadingProp || false;
521
+ var $white = $whiteProp || whiteProp;
522
+ var $fullWidth = $fullWidthProp || fullWidthProp;
523
+ var isDisabled = $isLoading || disabled;
505
524
  return /*#__PURE__*/jsxs(StyledButton$2, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
506
- isLoading: isLoading,
525
+ $isLoading: $isLoading,
507
526
  disabled: isDisabled,
508
527
  style: style,
509
- white: white,
528
+ $white: $white,
529
+ $fullWidth: $fullWidth,
530
+ type: props.type || "button",
510
531
  children: [/*#__PURE__*/React__default.isValidElement(startIcon) && /*#__PURE__*/React__default.cloneElement(startIcon, {
511
532
  mr: "0.5rem"
512
533
  }), children, /*#__PURE__*/React__default.isValidElement(endIcon) && /*#__PURE__*/React__default.cloneElement(endIcon, {
513
534
  ml: "0.5rem"
514
535
  })]
515
536
  }));
516
- };
517
- Button$1.defaultProps = {
518
- variant: variants$4.PRIMARY,
519
- size: sizes$2.MD,
520
- external: false,
521
- isLoading: false,
522
- disabled: false
523
- };
537
+ });
538
+ Button$1.displayName = "Button";
524
539
 
525
540
  var Icon$2D = function Icon(props) {
526
541
  return /*#__PURE__*/jsx(Svg, _objectSpread2(_objectSpread2({
@@ -7918,7 +7933,7 @@ var RampButtonLite = function RampButtonLite(_ref2) {
7918
7933
  extended: extended,
7919
7934
  children: children
7920
7935
  }), /*#__PURE__*/jsx(Icon$1l, {
7921
- opac: true
7936
+ $opac: true
7922
7937
  })]
7923
7938
  });
7924
7939
  };
@@ -7946,9 +7961,9 @@ var RampButton = function RampButton(_ref2) {
7946
7961
  },
7947
7962
  extended: extended,
7948
7963
  children: [/*#__PURE__*/jsx(Icon$1i, {
7949
- opac: true
7964
+ $opac: true
7950
7965
  }), /*#__PURE__*/jsx(Icon$1h, {
7951
- opac: true,
7966
+ $opac: true,
7952
7967
  display: extended ? "block" : "none"
7953
7968
  })]
7954
7969
  });
@@ -8393,21 +8408,25 @@ var style = _defineProperty(_defineProperty(_defineProperty(_defineProperty({},
8393
8408
  fontSize: "48px",
8394
8409
  fontSizeLg: "64px"
8395
8410
  });
8396
- var Heading = styled(Text).attrs({
8397
- bold: true
8398
- })(_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 (_ref) {
8399
- var size = _ref.size;
8400
- return style[size || sizes$1.MD].fontSize;
8401
- }, function (_ref2) {
8402
- var theme = _ref2.theme;
8403
- return theme.mediaQueries.lg;
8411
+ var Heading = styled(Text).attrs(function (_ref) {
8412
+ var _ref$as = _ref.as,
8413
+ as = _ref$as === void 0 ? tags.H2 : _ref$as;
8414
+ return {
8415
+ $bold: true,
8416
+ as: as
8417
+ };
8418
+ })(_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) {
8419
+ var _ref2$size = _ref2.size,
8420
+ size = _ref2$size === void 0 ? sizes$1.MD : _ref2$size;
8421
+ return style[size].fontSize;
8404
8422
  }, function (_ref3) {
8405
- var size = _ref3.size;
8406
- return style[size || sizes$1.MD].fontSizeLg;
8423
+ var theme = _ref3.theme;
8424
+ return theme.mediaQueries.lg;
8425
+ }, function (_ref4) {
8426
+ var _ref4$size = _ref4.size,
8427
+ size = _ref4$size === void 0 ? sizes$1.MD : _ref4$size;
8428
+ return style[size].fontSizeLg;
8407
8429
  });
8408
- Heading.defaultProps = {
8409
- as: tags.H2
8410
- };
8411
8430
 
8412
8431
  var _templateObject$1_, _templateObject2$12, _templateObject3$M, _templateObject4$x;
8413
8432
  var StyledModal = 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) {
@@ -8452,7 +8471,7 @@ var Modal = function Modal(_ref4) {
8452
8471
  "aria-label": "Close the dialog",
8453
8472
  children: /*#__PURE__*/jsx(Icon$2j, {
8454
8473
  color: "primary",
8455
- opac: true
8474
+ $opac: true
8456
8475
  })
8457
8476
  })]
8458
8477
  }), /*#__PURE__*/jsx(Flex, {
@@ -8464,22 +8483,29 @@ var Modal = function Modal(_ref4) {
8464
8483
  };
8465
8484
 
8466
8485
  var _templateObject$1Z;
8467
- var Overlay = styled.div.attrs({
8468
- role: "presentation"
8469
- })(_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 (_ref) {
8470
- var show = _ref.show;
8486
+ var Overlay = styled.div.attrs(function (_ref) {
8487
+ var _ref$show = _ref.show,
8488
+ show = _ref$show === void 0 ? false : _ref$show,
8489
+ _ref$zIndex = _ref.zIndex,
8490
+ zIndex = _ref$zIndex === void 0 ? 10 : _ref$zIndex;
8491
+ return {
8492
+ role: "presentation",
8493
+ show: show,
8494
+ zIndex: zIndex
8495
+ };
8496
+ })(_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) {
8497
+ var _ref2$show = _ref2.show,
8498
+ show = _ref2$show === void 0 ? false : _ref2$show;
8471
8499
  return show ? 0.6 : 0;
8472
- }, function (_ref2) {
8473
- var zIndex = _ref2.zIndex;
8474
- return zIndex;
8475
8500
  }, function (_ref3) {
8476
- var show = _ref3.show;
8501
+ var _ref3$zIndex = _ref3.zIndex,
8502
+ zIndex = _ref3$zIndex === void 0 ? 10 : _ref3$zIndex;
8503
+ return zIndex;
8504
+ }, function (_ref4) {
8505
+ var _ref4$show = _ref4.show,
8506
+ show = _ref4$show === void 0 ? false : _ref4$show;
8477
8507
  return show ? "initial" : "none";
8478
8508
  });
8479
- Overlay.defaultProps = {
8480
- show: false,
8481
- zIndex: 10
8482
- };
8483
8509
 
8484
8510
  var _templateObject$1Y;
8485
8511
  var ModalWrapper = 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) {
@@ -8824,7 +8850,7 @@ var WalletCard = function WalletCard(_ref) {
8824
8850
  _useCookies2[0];
8825
8851
  _useCookies2[1];
8826
8852
  return /*#__PURE__*/jsxs(Button$1, {
8827
- fullWidth: true,
8853
+ $fullWidth: true,
8828
8854
  variant: buttonVariant.OUTLINE,
8829
8855
  onClick: function onClick() {
8830
8856
  login(walletConfig.connectorId, title);
@@ -8842,7 +8868,7 @@ var WalletCard = function WalletCard(_ref) {
8842
8868
  children: title
8843
8869
  }), /*#__PURE__*/jsx(Icon, {
8844
8870
  width: "20px",
8845
- opac: true
8871
+ $opac: true
8846
8872
  })]
8847
8873
  });
8848
8874
  };
@@ -8873,21 +8899,23 @@ var ConnectModal = function ConnectModal(_ref) {
8873
8899
  });
8874
8900
  };
8875
8901
 
8876
- var _excluded$p = ["external"];
8902
+ var _excluded$p = ["external", "color"];
8877
8903
  var _templateObject$1X;
8878
8904
  var StyledLink$1 = 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"])));
8879
- var Link = function Link(_ref) {
8905
+ var Link = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
8880
8906
  var external = _ref.external,
8907
+ _ref$color = _ref.color,
8908
+ color = _ref$color === void 0 ? "primary" : _ref$color,
8881
8909
  props = _objectWithoutProperties(_ref, _excluded$p);
8882
8910
  var internalProps = external ? getExternalLinkProps() : {};
8883
8911
  return /*#__PURE__*/jsx(StyledLink$1, _objectSpread2(_objectSpread2({
8912
+ ref: ref,
8884
8913
  as: "a",
8885
- bold: true
8914
+ bold: true,
8915
+ color: color
8886
8916
  }, internalProps), props));
8887
- };
8888
- Link.defaultProps = {
8889
- color: "primary"
8890
- };
8917
+ });
8918
+ Link.displayName = "Link";
8891
8919
 
8892
8920
  var _excluded$o = ["children"];
8893
8921
  var LinkExternal = function LinkExternal(_ref) {
@@ -8900,7 +8928,7 @@ var LinkExternal = function LinkExternal(_ref) {
8900
8928
  color: "primary",
8901
8929
  ml: "10px",
8902
8930
  width: 15,
8903
- opac: true
8931
+ $opac: true
8904
8932
  })]
8905
8933
  }));
8906
8934
  };
@@ -9465,7 +9493,11 @@ var getButtonVariantProp$2 = function getButtonVariantProp(prop) {
9465
9493
  return theme.button[variant][prop];
9466
9494
  };
9467
9495
  };
9468
- var StyledButton$1 = styled.button(_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) {
9496
+ var StyledButton$1 = styled.button.withConfig({
9497
+ shouldForwardProp: function shouldForwardProp(prop) {
9498
+ return !['variant', 'isLoading', 'fullWidth', 'lined', 'active', 'isActive'].includes(prop);
9499
+ }
9500
+ })(_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) {
9469
9501
  var fullWidth = _ref4.fullWidth;
9470
9502
  return fullWidth ? "100%" : "max-content";
9471
9503
  }, function (_ref5) {
@@ -9493,10 +9525,6 @@ var StyledButton$1 = styled.button(_templateObject$1R || (_templateObject$1R = _
9493
9525
  var theme = _ref10.theme;
9494
9526
  return theme.colors.primary;
9495
9527
  }, getDisabledStyles$2, removePointerEvents$2, space);
9496
- StyledButton$1.defaultProps = {
9497
- fullWidth: false,
9498
- type: "button"
9499
- };
9500
9528
 
9501
9529
  var _excluded$m = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled", "lined"];
9502
9530
  var Button = function Button(_ref) {
@@ -9504,18 +9532,19 @@ var Button = function Button(_ref) {
9504
9532
  style = _ref.style,
9505
9533
  endIcon = _ref.endIcon,
9506
9534
  children = _ref.children,
9507
- external = _ref.external,
9508
- isLoading = _ref.isLoading,
9509
- disabled = _ref.disabled,
9510
- lined = _ref.lined,
9511
- props = _objectWithoutProperties(_ref, _excluded$m);
9535
+ _ref$external = _ref.external,
9536
+ external = _ref$external === void 0 ? false : _ref$external,
9537
+ _ref$isLoading = _ref.isLoading,
9538
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
9539
+ _ref$disabled = _ref.disabled,
9540
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled;
9541
+ _ref.lined;
9542
+ var props = _objectWithoutProperties(_ref, _excluded$m);
9512
9543
  var internalProps = external ? getExternalLinkProps() : {};
9513
9544
  var isDisabled = isLoading || disabled;
9514
9545
  return /*#__PURE__*/jsxs(StyledButton$1, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
9515
- isLoading: isLoading,
9516
9546
  disabled: isDisabled,
9517
9547
  style: style,
9518
- lined: lined,
9519
9548
  children: [/*#__PURE__*/React__default.isValidElement(startIcon) && /*#__PURE__*/React__default.cloneElement(startIcon, {
9520
9549
  mr: "0.5rem"
9521
9550
  }), children, /*#__PURE__*/React__default.isValidElement(endIcon) && /*#__PURE__*/React__default.cloneElement(endIcon, {
@@ -9525,13 +9554,6 @@ var Button = function Button(_ref) {
9525
9554
  })]
9526
9555
  }));
9527
9556
  };
9528
- Button.defaultProps = {
9529
- variant: variants$2.PRIMARY,
9530
- size: sizes.MD,
9531
- external: false,
9532
- isLoading: false,
9533
- disabled: false
9534
- };
9535
9557
 
9536
9558
  var getColor = function getColor(color, theme) {
9537
9559
  return getThemeValue("colors.".concat(color), color)(theme);
@@ -9558,11 +9580,16 @@ var StyledTag = styled.div(_templateObject$1Q || (_templateObject$1Q = _taggedTe
9558
9580
  return getColor(variant, theme);
9559
9581
  }, getThemeTextColor, getThemeTextColor);
9560
9582
 
9561
- var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"];
9583
+ var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"],
9584
+ _excluded2$1 = ["isActive"];
9562
9585
  var _templateObject$1P, _templateObject2$Z, _templateObject3$L;
9563
9586
  var ButtonBody = styled.div(_templateObject$1P || (_templateObject$1P = _taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n"])));
9564
9587
  var ButtonTag = 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"])));
9565
- var InactiveButton$1 = styled(Button)(_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
+ var InactiveButton$1 = styled(Button).withConfig({
9589
+ shouldForwardProp: function shouldForwardProp(prop) {
9590
+ return prop !== 'colorKey' && prop !== 'isActive';
9591
+ }
9592
+ })(_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"])));
9566
9593
  var ButtonMenuItem = function ButtonMenuItem(_ref) {
9567
9594
  var _ref$isActive = _ref.isActive,
9568
9595
  isActive = _ref$isActive === void 0 ? false : _ref$isActive,
@@ -9575,13 +9602,16 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
9575
9602
  tag = _ref.tag,
9576
9603
  hide = _ref.hide,
9577
9604
  props = _objectWithoutProperties(_ref, _excluded$l);
9605
+ // Remove isActive from props to prevent it from being passed to DOM
9606
+ props.isActive;
9607
+ var buttonProps = _objectWithoutProperties(props, _excluded2$1);
9578
9608
  if (!isActive) {
9579
9609
  return /*#__PURE__*/jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
9580
9610
  forwardedAs: as,
9581
9611
  size: size,
9582
9612
  variant: "tertiary",
9583
9613
  colorKey: variant === variants$2.PRIMARY ? "primary" : "textSubtle"
9584
- }, props), {}, {
9614
+ }, buttonProps), {}, {
9585
9615
  style: {
9586
9616
  display: hide ? "none" : "flex"
9587
9617
  },
@@ -9597,7 +9627,7 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
9597
9627
  as: as,
9598
9628
  size: size,
9599
9629
  variant: variant
9600
- }, props), {}, {
9630
+ }, buttonProps), {}, {
9601
9631
  style: {
9602
9632
  display: hide ? "none" : "flex"
9603
9633
  },
@@ -9672,10 +9702,6 @@ var StyledButtonActivity = styled.button(_templateObject$1N || (_templateObject$
9672
9702
  var size = _ref6.size;
9673
9703
  return size === "sm" ? "0 16px" : "0 24px";
9674
9704
  }, getButtonVariantProp$1("borderColorHover"), getDisabledStyles$1, removePointerEvents$1, space);
9675
- StyledButtonActivity.defaultProps = {
9676
- fullWidth: false,
9677
- type: "button"
9678
- };
9679
9705
 
9680
9706
  var _excluded$k = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled"];
9681
9707
  var ButtonActivity = function ButtonActivity(_ref) {
@@ -9683,9 +9709,12 @@ var ButtonActivity = function ButtonActivity(_ref) {
9683
9709
  style = _ref.style,
9684
9710
  endIcon = _ref.endIcon,
9685
9711
  children = _ref.children,
9686
- external = _ref.external,
9687
- isLoading = _ref.isLoading,
9688
- disabled = _ref.disabled,
9712
+ _ref$external = _ref.external,
9713
+ external = _ref$external === void 0 ? false : _ref$external,
9714
+ _ref$isLoading = _ref.isLoading,
9715
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
9716
+ _ref$disabled = _ref.disabled,
9717
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
9689
9718
  props = _objectWithoutProperties(_ref, _excluded$k);
9690
9719
  var internalProps = external ? getExternalLinkProps() : {};
9691
9720
  var isDisabled = isLoading || disabled;
@@ -9700,13 +9729,6 @@ var ButtonActivity = function ButtonActivity(_ref) {
9700
9729
  })]
9701
9730
  }));
9702
9731
  };
9703
- ButtonActivity.defaultProps = {
9704
- variant: variants$2.PRIMARY,
9705
- size: sizes.MD,
9706
- external: false,
9707
- isLoading: false,
9708
- disabled: false
9709
- };
9710
9732
 
9711
9733
  var _excluded$j = ["isActive", "size", "variant", "as"];
9712
9734
  var _templateObject$1M;
@@ -9775,10 +9797,6 @@ var StyledButtonSwitch = styled.button(_templateObject$1L || (_templateObject$1L
9775
9797
  active = _ref7.active;
9776
9798
  return active ? theme.colors.primary : theme.colors.grey;
9777
9799
  }, getDisabledStyles, removePointerEvents, space);
9778
- StyledButtonSwitch.defaultProps = {
9779
- fullWidth: false,
9780
- type: "button"
9781
- };
9782
9800
 
9783
9801
  var _excluded$i = ["style", "children", "isLoading", "disabled", "active"];
9784
9802
  var ButtonSwitch = function ButtonSwitch(_ref) {
@@ -9828,7 +9846,8 @@ var StyledToggle = styled.div(_templateObject3$K || (_templateObject3$K = _tagge
9828
9846
  var _excluded$h = ["checked", "variant"];
9829
9847
  var Toggle$1 = function Toggle(_ref) {
9830
9848
  var checked = _ref.checked,
9831
- variant = _ref.variant,
9849
+ _ref$variant = _ref.variant,
9850
+ variant = _ref$variant === void 0 ? variants$1.PANEL : _ref$variant,
9832
9851
  props = _objectWithoutProperties(_ref, _excluded$h);
9833
9852
  var isChecked = !!checked;
9834
9853
  var disabled = props.disabled,
@@ -9848,9 +9867,6 @@ var Toggle$1 = function Toggle(_ref) {
9848
9867
  })]
9849
9868
  }));
9850
9869
  };
9851
- Toggle$1.defaultProps = {
9852
- variant: variants$1.PANEL
9853
- };
9854
9870
 
9855
9871
  var _excluded$g = ["onClick", "active"];
9856
9872
  var ButtonSwitchMenuItem = function ButtonSwitchMenuItem(_ref) {
@@ -9906,22 +9922,32 @@ var _templateObject$1I;
9906
9922
  * Priority: Warning --> Success --> Active
9907
9923
  */
9908
9924
  var getBoxShadow$2 = function getBoxShadow(_ref) {
9909
- var isActive = _ref.isActive,
9925
+ var $isActive = _ref.$isActive,
9926
+ isActive = _ref.isActive,
9927
+ $isSuccess = _ref.$isSuccess,
9910
9928
  isSuccess = _ref.isSuccess,
9929
+ $isWarning = _ref.$isWarning,
9911
9930
  isWarning = _ref.isWarning,
9912
9931
  theme = _ref.theme;
9913
- if (isWarning) {
9932
+ var isWarningValue = $isWarning || isWarning;
9933
+ var isSuccessValue = $isSuccess || isSuccess;
9934
+ var isActiveValue = $isActive || isActive;
9935
+ if (isWarningValue) {
9914
9936
  return theme.card.boxShadowWarning;
9915
9937
  }
9916
- if (isSuccess) {
9938
+ if (isSuccessValue) {
9917
9939
  return theme.card.boxShadowSuccess;
9918
9940
  }
9919
- if (isActive) {
9941
+ if (isActiveValue) {
9920
9942
  return theme.card.boxShadowActive;
9921
9943
  }
9922
9944
  return theme.card.boxShadow;
9923
9945
  };
9924
- var StyledCard = styled.div(_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) {
9946
+ var StyledCard = styled.div.withConfig({
9947
+ shouldForwardProp: function shouldForwardProp(prop) {
9948
+ return !['$isActive', '$isSuccess', '$isWarning', '$isDisabled'].includes(prop);
9949
+ }
9950
+ })(_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) {
9925
9951
  var theme = _ref2.theme;
9926
9952
  return theme.colors.card;
9927
9953
  }, function (_ref3) {
@@ -9929,15 +9955,10 @@ var StyledCard = styled.div(_templateObject$1I || (_templateObject$1I = _taggedT
9929
9955
  return theme.colors.white7;
9930
9956
  }, getBoxShadow$2, function (_ref4) {
9931
9957
  var theme = _ref4.theme,
9958
+ $isDisabled = _ref4.$isDisabled,
9932
9959
  isDisabled = _ref4.isDisabled;
9933
- return theme.colors[isDisabled ? "textDisabled" : "text"];
9960
+ return theme.colors[$isDisabled || isDisabled ? "textDisabled" : "text"];
9934
9961
  }, space);
9935
- StyledCard.defaultProps = {
9936
- isActive: false,
9937
- isSuccess: false,
9938
- isWarning: false,
9939
- isDisabled: false
9940
- };
9941
9962
 
9942
9963
  var _excluded$f = ["ribbon", "children"];
9943
9964
  var Card = function Card(_ref) {
@@ -9950,20 +9971,25 @@ var Card = function Card(_ref) {
9950
9971
  };
9951
9972
 
9952
9973
  var _templateObject$1H;
9953
- var CardBody = styled.div(_templateObject$1H || (_templateObject$1H = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), space);
9954
- CardBody.defaultProps = {
9955
- p: "24px"
9956
- };
9974
+ var CardBody = styled.div.attrs(function (_ref) {
9975
+ var _ref$p = _ref.p,
9976
+ p = _ref$p === void 0 ? "24px" : _ref$p;
9977
+ return {
9978
+ p: p
9979
+ };
9980
+ })(_templateObject$1H || (_templateObject$1H = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), space);
9957
9981
 
9958
9982
  var _templateObject$1G;
9959
9983
  var CardHeader = 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"])), space);
9960
- CardHeader.defaultProps = {};
9961
9984
 
9962
9985
  var _templateObject$1F;
9963
- var CardFooter = styled.div(_templateObject$1F || (_templateObject$1F = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), space);
9964
- CardFooter.defaultProps = {
9965
- p: "24px"
9966
- };
9986
+ var CardFooter = styled.div.attrs(function (_ref) {
9987
+ var _ref$p = _ref.p,
9988
+ p = _ref$p === void 0 ? "24px" : _ref$p;
9989
+ return {
9990
+ p: p
9991
+ };
9992
+ })(_templateObject$1F || (_templateObject$1F = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), space);
9967
9993
 
9968
9994
  var _templateObject$1E;
9969
9995
  var StyledCardRibbon = 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) {
@@ -10032,9 +10058,6 @@ var Checkbox = styled.input.attrs({
10032
10058
  var bordered = _ref9.bordered;
10033
10059
  return bordered ? "none !important" : "";
10034
10060
  });
10035
- Checkbox.defaultProps = {
10036
- scale: scales$2.MD
10037
- };
10038
10061
 
10039
10062
  var _templateObject$1C, _templateObject2$X;
10040
10063
  var getLeft = function getLeft(_ref) {
@@ -10077,9 +10100,6 @@ var Dropdown = function Dropdown(_ref7) {
10077
10100
  })]
10078
10101
  });
10079
10102
  };
10080
- Dropdown.defaultProps = {
10081
- position: "bottom"
10082
- };
10083
10103
 
10084
10104
  var _excluded$e = ["tokenName", "amount", "tokenIcon", "actions"];
10085
10105
  var _templateObject$1B, _templateObject2$W, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$j, _templateObject7$f;
@@ -10207,16 +10227,19 @@ var EarnedWrapper = function EarnedWrapper(_ref) {
10207
10227
  };
10208
10228
 
10209
10229
  var _templateObject$1z;
10210
- var EarnedWrapperHeader = styled.div(_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 (_ref) {
10211
- var theme = _ref.theme;
10212
- return theme.colors.white;
10213
- }, function (_ref2) {
10230
+ var EarnedWrapperHeader = styled.div.attrs(function (_ref) {
10231
+ var _ref$as = _ref.as,
10232
+ as = _ref$as === void 0 ? tags.H2 : _ref$as;
10233
+ return {
10234
+ as: as
10235
+ };
10236
+ })(_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) {
10214
10237
  var theme = _ref2.theme;
10238
+ return theme.colors.white;
10239
+ }, function (_ref3) {
10240
+ var theme = _ref3.theme;
10215
10241
  return theme.mediaQueries.md;
10216
10242
  });
10217
- EarnedWrapperHeader.defaultProps = {
10218
- as: tags.H2
10219
- };
10220
10243
 
10221
10244
  var _templateObject$1y;
10222
10245
  var GridLayout$1 = 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) {
@@ -10352,16 +10375,19 @@ var EarnedCarouselWrapper = function EarnedCarouselWrapper(_ref) {
10352
10375
  };
10353
10376
 
10354
10377
  var _templateObject$1u;
10355
- var EarnedCarouselWrapperHeader = styled.div(_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 (_ref) {
10356
- var theme = _ref.theme;
10357
- return theme.colors.white;
10358
- }, function (_ref2) {
10378
+ var EarnedCarouselWrapperHeader = styled.div.attrs(function (_ref) {
10379
+ var _ref$as = _ref.as,
10380
+ as = _ref$as === void 0 ? tags.H2 : _ref$as;
10381
+ return {
10382
+ as: as
10383
+ };
10384
+ })(_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) {
10359
10385
  var theme = _ref2.theme;
10386
+ return theme.colors.white;
10387
+ }, function (_ref3) {
10388
+ var theme = _ref3.theme;
10360
10389
  return theme.mediaQueries.md;
10361
10390
  });
10362
- EarnedCarouselWrapperHeader.defaultProps = {
10363
- as: tags.H2
10364
- };
10365
10391
 
10366
10392
  var _templateObject$1t, _templateObject2$U, _templateObject3$H;
10367
10393
  var CSSTokenWrapper = 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"])));
@@ -10563,10 +10589,6 @@ var StyledInfoBox = styled.div(_templateObject$1s || (_templateObject$1s = _tagg
10563
10589
  var theme = _ref3.theme;
10564
10590
  return theme.colors.text;
10565
10591
  }, space);
10566
- StyledInfoBox.defaultProps = {
10567
- isActive: false,
10568
- isWarning: false
10569
- };
10570
10592
 
10571
10593
  var _excluded$a = ["children"];
10572
10594
  var InfoBox$1 = function InfoBox(_ref) {
@@ -10578,20 +10600,25 @@ var InfoBox$1 = function InfoBox(_ref) {
10578
10600
  };
10579
10601
 
10580
10602
  var _templateObject$1r;
10581
- var InfoBox = styled.div(_templateObject$1r || (_templateObject$1r = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), space);
10582
- InfoBox.defaultProps = {
10583
- p: "24px"
10584
- };
10603
+ var InfoBox = styled.div.attrs(function (_ref) {
10604
+ var _ref$p = _ref.p,
10605
+ p = _ref$p === void 0 ? "24px" : _ref$p;
10606
+ return {
10607
+ p: p
10608
+ };
10609
+ })(_templateObject$1r || (_templateObject$1r = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), space);
10585
10610
 
10586
10611
  var _templateObject$1q;
10587
10612
  var InfoBoxHeader = 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"])), space);
10588
- InfoBoxHeader.defaultProps = {};
10589
10613
 
10590
10614
  var _templateObject$1p;
10591
- var InfoBoxFooter = styled.div(_templateObject$1p || (_templateObject$1p = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), space);
10592
- InfoBoxFooter.defaultProps = {
10593
- p: "24px"
10594
- };
10615
+ var InfoBoxFooter = styled.div.attrs(function (_ref) {
10616
+ var _ref$p = _ref.p,
10617
+ p = _ref$p === void 0 ? "24px" : _ref$p;
10618
+ return {
10619
+ p: p
10620
+ };
10621
+ })(_templateObject$1p || (_templateObject$1p = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), space);
10595
10622
 
10596
10623
  var scales$1 = {
10597
10624
  SM: "sm",
@@ -10649,11 +10676,6 @@ var Input = styled.input(_templateObject$1o || (_templateObject$1o = _taggedTemp
10649
10676
  var theme = _ref8.theme;
10650
10677
  return theme.shadows.focus;
10651
10678
  });
10652
- Input.defaultProps = {
10653
- scale: scales$1.MD,
10654
- isSuccess: false,
10655
- isWarning: false
10656
- };
10657
10679
 
10658
10680
  var _excluded$9 = ["children"],
10659
10681
  _excluded2 = ["children"],
@@ -11010,7 +11032,7 @@ var MuiTextInput = function MuiTextInput(_ref11) {
11010
11032
  fill: theme.colors.error,
11011
11033
  width: 24,
11012
11034
  height: 24,
11013
- opac: true
11035
+ $opac: true
11014
11036
  }) : success && /*#__PURE__*/jsx(Icon$1b, {})
11015
11037
  }
11016
11038
  /* eslint-disable-next-line react/jsx-no-duplicate-props */,
@@ -11100,39 +11122,49 @@ var getCheckedScale = function getCheckedScale(_ref2) {
11100
11122
  return "20px";
11101
11123
  }
11102
11124
  };
11103
- var Radio = styled.input.attrs({
11104
- type: "radio"
11105
- })(_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 (_ref3) {
11106
- var theme = _ref3.theme;
11107
- return theme.colors.input;
11108
- }, function (_ref4) {
11125
+ var Radio = styled.input.attrs(function (_ref3) {
11126
+ var _ref3$scale = _ref3.scale,
11127
+ scale = _ref3$scale === void 0 ? scales.MD : _ref3$scale,
11128
+ _ref3$m = _ref3.m,
11129
+ m = _ref3$m === void 0 ? 0 : _ref3$m;
11130
+ return {
11131
+ type: "radio",
11132
+ scale: scale,
11133
+ m: m
11134
+ };
11135
+ })(_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) {
11109
11136
  var theme = _ref4.theme;
11110
- return theme.shadows.inset;
11111
- }, getCheckedScale, getCheckedScale, function (_ref5) {
11137
+ return theme.colors.input;
11138
+ }, function (_ref5) {
11112
11139
  var theme = _ref5.theme;
11113
- return theme.shadows.focus;
11114
- }, function (_ref6) {
11140
+ return theme.shadows.inset;
11141
+ }, getCheckedScale, getCheckedScale, function (_ref6) {
11115
11142
  var theme = _ref6.theme;
11116
11143
  return theme.shadows.focus;
11117
11144
  }, function (_ref7) {
11118
11145
  var theme = _ref7.theme;
11119
- return theme.colors.success;
11146
+ return theme.shadows.focus;
11120
11147
  }, function (_ref8) {
11121
11148
  var theme = _ref8.theme;
11149
+ return theme.colors.success;
11150
+ }, function (_ref9) {
11151
+ var theme = _ref9.theme;
11122
11152
  return theme.radio.handleBackground;
11123
11153
  }, space);
11124
- Radio.defaultProps = {
11125
- scale: scales.MD,
11126
- m: 0
11127
- };
11128
11154
 
11129
- var _excluded$7 = ["startIcon", "endIcon", "children"];
11155
+ var _excluded$7 = ["startIcon", "endIcon", "children", "variant", "outline"];
11130
11156
  var Tag = function Tag(_ref) {
11131
11157
  var startIcon = _ref.startIcon,
11132
11158
  endIcon = _ref.endIcon,
11133
11159
  children = _ref.children,
11160
+ _ref$variant = _ref.variant,
11161
+ variant = _ref$variant === void 0 ? "primary" : _ref$variant,
11162
+ _ref$outline = _ref.outline,
11163
+ outline = _ref$outline === void 0 ? false : _ref$outline,
11134
11164
  props = _objectWithoutProperties(_ref, _excluded$7);
11135
11165
  return /*#__PURE__*/jsxs(StyledTag, _objectSpread2(_objectSpread2({}, props), {}, {
11166
+ variant: variant,
11167
+ outline: outline,
11136
11168
  children: [/*#__PURE__*/React__default.isValidElement(startIcon) && /*#__PURE__*/React__default.cloneElement(startIcon, {
11137
11169
  mr: "0.5rem"
11138
11170
  }), children, /*#__PURE__*/React__default.isValidElement(endIcon) && /*#__PURE__*/React__default.cloneElement(endIcon, {
@@ -11140,10 +11172,6 @@ var Tag = function Tag(_ref) {
11140
11172
  })]
11141
11173
  }));
11142
11174
  };
11143
- Tag.defaultProps = {
11144
- variant: "primary",
11145
- outline: false
11146
- };
11147
11175
 
11148
11176
  var tagVariant;
11149
11177
  (function (tagVariant) {
@@ -11281,7 +11309,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
11281
11309
  return {
11282
11310
  color: theme.colors.lightBlue,
11283
11311
  icon: /*#__PURE__*/jsx(Icon$2p, {
11284
- opac: true,
11312
+ $opac: true,
11285
11313
  fill: active ? theme.colors.lightBlue : theme.colors.grey
11286
11314
  })
11287
11315
  };
@@ -11289,7 +11317,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
11289
11317
  return {
11290
11318
  color: brandColors.binance,
11291
11319
  icon: /*#__PURE__*/jsx(Icon$2p, {
11292
- opac: true,
11320
+ $opac: true,
11293
11321
  fill: active ? brandColors.binance : theme.colors.grey
11294
11322
  })
11295
11323
  };
@@ -11297,7 +11325,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
11297
11325
  return {
11298
11326
  color: theme.colors.vividBlue,
11299
11327
  icon: /*#__PURE__*/jsx(Icon$1a, {
11300
- opac: true,
11328
+ $opac: true,
11301
11329
  stroke: active ? theme.colors.vividBlue : theme.colors.grey
11302
11330
  })
11303
11331
  };
@@ -11305,7 +11333,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
11305
11333
  return {
11306
11334
  color: theme.colors.primary,
11307
11335
  icon: /*#__PURE__*/jsx(Icon$2p, {
11308
- opac: true,
11336
+ $opac: true,
11309
11337
  fill: active ? theme.colors.primary : theme.colors.grey
11310
11338
  })
11311
11339
  };
@@ -11331,10 +11359,6 @@ var CoreTag = function CoreTag(_ref8) {
11331
11359
  })]
11332
11360
  });
11333
11361
  };
11334
- CoreTag.defaultProps = {
11335
- variant: "primary",
11336
- outline: false
11337
- };
11338
11362
 
11339
11363
  var Icon$M = function Icon(props) {
11340
11364
  return /*#__PURE__*/jsx(Svg, _objectSpread2(_objectSpread2({
@@ -11448,11 +11472,9 @@ var List = function List(_ref3) {
11448
11472
 
11449
11473
  var _templateObject$1e, _templateObject2$L;
11450
11474
  var Bar = 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) {
11451
- return props.primary ? props.theme.colors.secondary : "".concat(props.theme.colors.secondary, "80");
11475
+ var _props$primary;
11476
+ return ((_props$primary = props.primary) !== null && _props$primary !== void 0 ? _props$primary : false) ? props.theme.colors.secondary : "".concat(props.theme.colors.secondary, "80");
11452
11477
  });
11453
- Bar.defaultProps = {
11454
- primary: false
11455
- };
11456
11478
  var StyledProgress = 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) {
11457
11479
  var theme = _ref.theme;
11458
11480
  return theme.colors.input;
@@ -12318,10 +12340,10 @@ var TableRow = function TableRow(_ref9) {
12318
12340
  },
12319
12341
  children: active ? /*#__PURE__*/jsx(Icon$2l, {
12320
12342
  fill: darkColors.primary,
12321
- opac: true
12343
+ $opac: true
12322
12344
  }) : /*#__PURE__*/jsx(Icon$2o, {
12323
12345
  fill: baseColors.white55,
12324
- opac: true
12346
+ $opac: true
12325
12347
  })
12326
12348
  })]
12327
12349
  }), active ? /*#__PURE__*/jsx(StyledTableDetails, {
@@ -12515,10 +12537,10 @@ var ValueFull = function ValueFull(_ref) {
12515
12537
  children: [/*#__PURE__*/jsxs(DifferenceBox, {
12516
12538
  children: [!_.isNil(difference) && (difference > 0 ? /*#__PURE__*/jsx(Icon$2l, {
12517
12539
  fill: baseColors.green,
12518
- opac: true
12540
+ $opac: true
12519
12541
  }) : /*#__PURE__*/jsx(Icon$2o, {
12520
12542
  fill: baseColors.red,
12521
- opac: true
12543
+ $opac: true
12522
12544
  })), /*#__PURE__*/jsx(Text, {
12523
12545
  style: {
12524
12546
  fontSize: "16px",
@@ -13119,7 +13141,7 @@ var ProviderRow = function ProviderRow(_ref4) {
13119
13141
  isTheLastItem: isTheLastItem,
13120
13142
  children: [/*#__PURE__*/jsx(Icon, {
13121
13143
  width: "40px",
13122
- opac: true
13144
+ $opac: true
13123
13145
  }), /*#__PURE__*/jsx(ProviderTitle, {
13124
13146
  children: title
13125
13147
  })]
@@ -13227,7 +13249,7 @@ var ConnectWallet = function ConnectWallet(_ref2) {
13227
13249
  isUserVerified: isUserVerified,
13228
13250
  textAlign: "right",
13229
13251
  children: [isUserVerified && /*#__PURE__*/jsx(VerifiedWalletIcon, {
13230
- opac: true
13252
+ $opac: true
13231
13253
  }), /*#__PURE__*/jsx(AccountNumber, {
13232
13254
  bold: true,
13233
13255
  fontSize: "14px",
@@ -13242,7 +13264,7 @@ var ConnectWallet = function ConnectWallet(_ref2) {
13242
13264
  children: [isUserVerified && /*#__PURE__*/jsxs(VerificationInfo, {
13243
13265
  marginTop: "20px",
13244
13266
  children: [/*#__PURE__*/jsx(VerifiedWalletIcon, {
13245
- opac: true
13267
+ $opac: true
13246
13268
  }), /*#__PURE__*/jsx(Text, {
13247
13269
  color: "#818C92",
13248
13270
  children: "Wallet connection has been verified"
@@ -13250,7 +13272,7 @@ var ConnectWallet = function ConnectWallet(_ref2) {
13250
13272
  }), connectedProvider && /*#__PURE__*/jsxs(ConnectedProvider, {
13251
13273
  children: [/*#__PURE__*/jsx(connectedProvider.icon, {
13252
13274
  width: "40px",
13253
- opac: true
13275
+ $opac: true
13254
13276
  }), /*#__PURE__*/jsx(ProviderTitle, {
13255
13277
  children: connectedProvider.title
13256
13278
  })]
@@ -13338,7 +13360,7 @@ var VerifiedWallet = function VerifiedWallet(_ref) {
13338
13360
  }), /*#__PURE__*/jsxs(AccountNumberWrapper, {
13339
13361
  isVerifiedUser: true,
13340
13362
  children: [/*#__PURE__*/jsx(VerifiedWalletIcon, {
13341
- opac: true
13363
+ $opac: true
13342
13364
  }), /*#__PURE__*/jsx(AccountNumber, {
13343
13365
  bold: true,
13344
13366
  fontSize: "14px",
@@ -13348,7 +13370,7 @@ var VerifiedWallet = function VerifiedWallet(_ref) {
13348
13370
  }), /*#__PURE__*/jsxs(MiddleRow, {
13349
13371
  children: [/*#__PURE__*/jsxs(VerificationInfo, {
13350
13372
  children: [/*#__PURE__*/jsx(VerifiedWalletIcon, {
13351
- opac: true
13373
+ $opac: true
13352
13374
  }), /*#__PURE__*/jsx(Text, {
13353
13375
  color: "#818C92",
13354
13376
  children: "Wallet connection has been verified"
@@ -13356,7 +13378,7 @@ var VerifiedWallet = function VerifiedWallet(_ref) {
13356
13378
  }), connectedProvider && /*#__PURE__*/jsxs(ConnectedProvider, {
13357
13379
  children: [connectedProvider && /*#__PURE__*/jsx(connectedProvider.icon, {
13358
13380
  width: "40px",
13359
- opac: true
13381
+ $opac: true
13360
13382
  }), /*#__PURE__*/jsx(ProviderTitle, {
13361
13383
  children: connectedProvider.title
13362
13384
  })]
@@ -14118,7 +14140,7 @@ var CSSPower = function CSSPower(_ref7) {
14118
14140
  right: 30,
14119
14141
  children: /*#__PURE__*/jsx(StyledInfoIcon, {
14120
14142
  fill: baseColors.primary,
14121
- opac: true
14143
+ $opac: true
14122
14144
  })
14123
14145
  })]
14124
14146
  }), /*#__PURE__*/jsx(CSSPowerValue, {
@@ -14547,7 +14569,7 @@ var AddToCap = function AddToCap(_ref18) {
14547
14569
  children: [isSigned ? /*#__PURE__*/jsx(Icon$1_, {
14548
14570
  color: baseColors.primary
14549
14571
  }) : /*#__PURE__*/jsx(Icon$1Z, {
14550
- opac: true
14572
+ $opac: true
14551
14573
  }), /*#__PURE__*/jsx(Text, {
14552
14574
  ml: "16px",
14553
14575
  bold: true,
@@ -14596,7 +14618,7 @@ var AddToCap = function AddToCap(_ref18) {
14596
14618
  },
14597
14619
  disabled: !eligible || actionPending || buttonDisabled,
14598
14620
  endIcon: actionPending && /*#__PURE__*/jsx(Icon$2v, {
14599
- spin: true,
14621
+ $spin: true,
14600
14622
  color: "currentColor"
14601
14623
  }),
14602
14624
  children: getActionButtonText()
@@ -14691,7 +14713,7 @@ var AddToCap = function AddToCap(_ref18) {
14691
14713
  right: 30,
14692
14714
  children: /*#__PURE__*/jsx(StyledInfoIcon, {
14693
14715
  fill: baseColors.primary,
14694
- opac: true
14716
+ $opac: true
14695
14717
  })
14696
14718
  })]
14697
14719
  }), isParticipation && isSigned && /*#__PURE__*/jsxs(PersonalValuesWrapper, {
@@ -14748,7 +14770,7 @@ var AddToCap = function AddToCap(_ref18) {
14748
14770
  }), /*#__PURE__*/jsxs(MainFunctionsWrapper, {
14749
14771
  children: [/*#__PURE__*/jsx(AddCapButton, {
14750
14772
  endIcon: actionPending && /*#__PURE__*/jsx(Icon$2v, {
14751
- spin: true,
14773
+ $spin: true,
14752
14774
  color: "currentColor"
14753
14775
  }),
14754
14776
  disabled: isButtonDisabled() || error !== "",
@@ -15374,7 +15396,7 @@ var AccountInfo = function AccountInfo(_ref27) {
15374
15396
  },
15375
15397
  onClick: copyAccount,
15376
15398
  fill: accountCopied ? baseColors.white55 : baseColors.primary,
15377
- opac: true
15399
+ $opac: true
15378
15400
  })]
15379
15401
  })
15380
15402
  })]
@@ -15696,7 +15718,7 @@ var UserTiers = function UserTiers(props) {
15696
15718
  }), /*#__PURE__*/jsx(Button$1, {
15697
15719
  as: "a",
15698
15720
  href: powerUpHref,
15699
- fullWidth: true,
15721
+ $fullWidth: true,
15700
15722
  padding: "24px 0px",
15701
15723
  marginTop: "40px",
15702
15724
  children: /*#__PURE__*/jsx(Text, {
@@ -15710,7 +15732,7 @@ var UserTiers = function UserTiers(props) {
15710
15732
  variant: buttonVariant.OUTLINE,
15711
15733
  as: "a",
15712
15734
  href: learnMoreHref,
15713
- fullWidth: true,
15735
+ $fullWidth: true,
15714
15736
  padding: "16px 0px",
15715
15737
  marginTop: "16px",
15716
15738
  children: /*#__PURE__*/jsx(Text, {
@@ -15940,10 +15962,10 @@ var CopyLinkCard = function CopyLinkCard(_ref3) {
15940
15962
  },
15941
15963
  children: refCopied ? /*#__PURE__*/jsx(Icon$2q, {
15942
15964
  fill: baseColors.secondary,
15943
- opac: true
15965
+ $opac: true
15944
15966
  }) : /*#__PURE__*/jsx(Icon$2g, {
15945
15967
  fill: baseColors.secondary,
15946
- opac: true
15968
+ $opac: true
15947
15969
  })
15948
15970
  })]
15949
15971
  }), /*#__PURE__*/jsxs(SocialRow, {
@@ -16632,7 +16654,7 @@ var StyledLink = styled(Link$1)(_templateObject$o || (_templateObject$o = _tagge
16632
16654
  var theme = _ref.theme;
16633
16655
  return theme.mediaQueries.nav;
16634
16656
  });
16635
- var CoinswapLogo = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n opacity: ", ";\n width: ", ";\n transition: width 0.6s, opacity 0.3s;\n"])), function (_ref2) {
16657
+ var CoinswapLogo = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n $opacity: ", ";\n width: ", ";\n transition: width 0.6s, $opacity 0.3s;\n"])), function (_ref2) {
16636
16658
  var isPushed = _ref2.isPushed;
16637
16659
  return isPushed ? 1 : 0;
16638
16660
  }, function (_ref3) {
@@ -16649,13 +16671,13 @@ var Logo$1 = function Logo(_ref4) {
16649
16671
  return /*#__PURE__*/jsxs(Fragment, {
16650
16672
  children: [/*#__PURE__*/jsx(Icon$2d, {
16651
16673
  className: "mobile-icon",
16652
- opac: true
16674
+ $opac: true
16653
16675
  }), /*#__PURE__*/jsx(CoinswapLogo, {
16654
16676
  isPushed: pushed,
16655
16677
  children: !isMobile ? /*#__PURE__*/jsx(LogoWithText, {
16656
16678
  className: "desktop-icon",
16657
16679
  isDark: isDark,
16658
- opac: true
16680
+ $opac: true
16659
16681
  }) : /*#__PURE__*/jsx(Fragment, {})
16660
16682
  })]
16661
16683
  });
@@ -16868,11 +16890,6 @@ var MenuEntry = styled.div(_templateObject3$d || (_templateObject3$d = _taggedTe
16868
16890
  var theme = _ref10.theme;
16869
16891
  return theme.colors.gradients.bubblegum;
16870
16892
  });
16871
- MenuEntry.defaultProps = {
16872
- secondary: false,
16873
- isActive: false,
16874
- role: "button"
16875
- };
16876
16893
 
16877
16894
  var _templateObject$m, _templateObject2$g, _templateObject3$c;
16878
16895
  var Container$2 = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n // Safari fix\n flex-shrink: 0;\n"])));
@@ -17006,7 +17023,7 @@ var PanelBody = function PanelBody(_ref4) {
17006
17023
  height: "18px",
17007
17024
  mr: "8px",
17008
17025
  fill: activeLink ? "#12FFB8" : baseColors.grey,
17009
- opac: true
17026
+ $opac: true
17010
17027
  }) : /*#__PURE__*/jsx(Fragment, {});
17011
17028
  var calloutClass = entry.calloutClass ? entry.calloutClass : undefined;
17012
17029
  if (entry.items) {
@@ -17029,7 +17046,7 @@ var PanelBody = function PanelBody(_ref4) {
17029
17046
  var entryIconElement = EntryIcon ? /*#__PURE__*/jsx(EntryIcon, {
17030
17047
  width: "18px",
17031
17048
  mr: "8px",
17032
- opac: true
17049
+ $opac: true
17033
17050
  }) : /*#__PURE__*/jsx(Fragment, {});
17034
17051
  return /*#__PURE__*/jsxs(MenuEntry, {
17035
17052
  isActive: item.href === location.pathname,
@@ -17067,30 +17084,40 @@ var PanelBody = function PanelBody(_ref4) {
17067
17084
  });
17068
17085
  };
17069
17086
 
17070
- var _excluded$1 = ["startIcon", "endIcon", "children", "external", "isLoading", "disabled"];
17087
+ var _excluded$1 = ["startIcon", "endIcon", "children", "external", "$isLoading", "isLoading", "disabled"];
17071
17088
  var _templateObject$k;
17072
- var StyledNavButton = styled.button(_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) {
17073
- var fullWidth = _ref.fullWidth;
17074
- return fullWidth ? "100%" : "max-content";
17089
+ var StyledNavButton = styled.button.withConfig({
17090
+ shouldForwardProp: function shouldForwardProp(prop) {
17091
+ return !['$fullWidth', '$isLoading'].includes(prop);
17092
+ }
17093
+ })(_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) {
17094
+ var $fullWidth = _ref.$fullWidth,
17095
+ fullWidth = _ref.fullWidth;
17096
+ return $fullWidth || fullWidth ? "100%" : "max-content";
17075
17097
  }, function (_ref2) {
17076
17098
  var size = _ref2.size;
17077
17099
  return size === "sm" ? "32px" : "48px";
17078
17100
  }, function (_ref3) {
17079
- var isLoading = _ref3.isLoading;
17080
- return isLoading ? 0.5 : 1;
17101
+ var $isLoading = _ref3.$isLoading,
17102
+ isLoading = _ref3.isLoading;
17103
+ return $isLoading || isLoading ? 0.5 : 1;
17081
17104
  });
17082
17105
  var NavButton = function NavButton(_ref4) {
17083
17106
  var startIcon = _ref4.startIcon,
17084
17107
  endIcon = _ref4.endIcon,
17085
17108
  children = _ref4.children,
17086
- external = _ref4.external,
17087
- isLoading = _ref4.isLoading,
17088
- disabled = _ref4.disabled,
17109
+ _ref4$external = _ref4.external,
17110
+ external = _ref4$external === void 0 ? false : _ref4$external,
17111
+ $isLoadingProp = _ref4.$isLoading,
17112
+ isLoadingProp = _ref4.isLoading,
17113
+ _ref4$disabled = _ref4.disabled,
17114
+ disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
17089
17115
  props = _objectWithoutProperties(_ref4, _excluded$1);
17090
17116
  var internalProps = external ? getExternalLinkProps() : {};
17091
- var isDisabled = isLoading || disabled;
17117
+ var $isLoading = $isLoadingProp || isLoadingProp || false;
17118
+ var isDisabled = $isLoading || disabled;
17092
17119
  return /*#__PURE__*/jsxs(StyledNavButton, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
17093
- isLoading: isLoading,
17120
+ $isLoading: $isLoading,
17094
17121
  disabled: isDisabled,
17095
17122
  children: [/*#__PURE__*/React__default.isValidElement(startIcon) && /*#__PURE__*/React__default.cloneElement(startIcon, {
17096
17123
  mr: "0.5rem"
@@ -17099,49 +17126,41 @@ var NavButton = function NavButton(_ref4) {
17099
17126
  })]
17100
17127
  }));
17101
17128
  };
17102
- NavButton.defaultProps = {
17103
- variant: variants$4.PRIMARY,
17104
- size: sizes$2.MD,
17105
- external: false,
17106
- isLoading: false,
17107
- disabled: false
17108
- };
17109
17129
 
17110
17130
  var _templateObject$j;
17111
- var MenuButton = styled(NavButton)(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n color: ", ";\n padding: 0 8px;\n border-radius: 8px;\n"])), function (_ref) {
17131
+ var MenuButton = styled(NavButton).attrs({
17132
+ variant: "text",
17133
+ size: "sm"
17134
+ })(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n color: ", ";\n padding: 0 8px;\n border-radius: 8px;\n"])), function (_ref) {
17112
17135
  var theme = _ref.theme;
17113
17136
  return theme.colors.text;
17114
17137
  });
17115
- MenuButton.defaultProps = {
17116
- variant: "text",
17117
- size: "sm"
17118
- };
17119
17138
 
17120
17139
  var getLangFlag = function getLangFlag(lang) {
17121
17140
  switch (lang.code) {
17122
17141
  case "EN":
17123
17142
  return /*#__PURE__*/jsx(Icon$15, {
17124
- opac: true
17143
+ $opac: true
17125
17144
  });
17126
17145
  case "CH":
17127
17146
  return /*#__PURE__*/jsx(Icon$14, {
17128
- opac: true
17147
+ $opac: true
17129
17148
  });
17130
17149
  case "IN":
17131
17150
  return /*#__PURE__*/jsx(Icon$13, {
17132
- opac: true
17151
+ $opac: true
17133
17152
  });
17134
17153
  case "VIE":
17135
17154
  return /*#__PURE__*/jsx(Icon$12, {
17136
- opac: true
17155
+ $opac: true
17137
17156
  });
17138
17157
  case "TH":
17139
17158
  return /*#__PURE__*/jsx(Icon$11, {
17140
- opac: true
17159
+ $opac: true
17141
17160
  });
17142
17161
  case "SP":
17143
17162
  return /*#__PURE__*/jsx(Icon$10, {
17144
- opac: true
17163
+ $opac: true
17145
17164
  });
17146
17165
  default:
17147
17166
  return /*#__PURE__*/jsx("div", {});
@@ -17217,7 +17236,7 @@ var LangSelector$1 = function LangSelector(_ref9) {
17217
17236
  style: {
17218
17237
  marginRight: 10
17219
17238
  },
17220
- opac: true
17239
+ $opac: true
17221
17240
  }),
17222
17241
  isPushed: isPushed,
17223
17242
  children: [/*#__PURE__*/jsx(MainLangText, {
@@ -17256,7 +17275,7 @@ var LangSelector$1 = function LangSelector(_ref9) {
17256
17275
  }), /*#__PURE__*/jsx(LangsList, {
17257
17276
  children: langs.map(function (lang, index) {
17258
17277
  return /*#__PURE__*/jsxs(MenuButton, {
17259
- fullWidth: true,
17278
+ $fullWidth: true,
17260
17279
  onClick: function onClick() {
17261
17280
  return chooseLangHandler(lang);
17262
17281
  },
@@ -17345,7 +17364,7 @@ var MobileMenu = function MobileMenu(_ref3) {
17345
17364
  height: "17px",
17346
17365
  mb: "7px",
17347
17366
  fill: activeLink ? "#12FFB8" : baseColors.grey,
17348
- opac: true
17367
+ $opac: true
17349
17368
  }) : /*#__PURE__*/jsx(Fragment, {});
17350
17369
  return /*#__PURE__*/jsx(MobileEntry, {
17351
17370
  isActive: activeLink,
@@ -17499,13 +17518,13 @@ var DiclaimerModal = function DiclaimerModal(_ref) {
17499
17518
  children: /*#__PURE__*/jsxs(Flex, {
17500
17519
  justifyContent: "space-between",
17501
17520
  children: [/*#__PURE__*/jsx(Button$1, {
17502
- white: true,
17521
+ $white: true,
17503
17522
  size: "md",
17504
17523
  variant: "secondary",
17505
17524
  onClick: function onClick() {
17506
17525
  return onClickHandler(false);
17507
17526
  },
17508
- fullWidth: true,
17527
+ $fullWidth: true,
17509
17528
  children: t("Decline")
17510
17529
  }), /*#__PURE__*/jsx(Space, {}), /*#__PURE__*/jsx(Button$1, {
17511
17530
  disabled: some(checkBoxes, {
@@ -17516,7 +17535,7 @@ var DiclaimerModal = function DiclaimerModal(_ref) {
17516
17535
  onClick: function onClick() {
17517
17536
  return onClickHandler(true);
17518
17537
  },
17519
- fullWidth: true,
17538
+ $fullWidth: true,
17520
17539
  children: t("Agree")
17521
17540
  })]
17522
17541
  })
@@ -17697,7 +17716,7 @@ var UserBlock = function UserBlock(_ref8) {
17697
17716
  setIsConnectWalletPanelOpen(true);
17698
17717
  },
17699
17718
  children: [isUserVerified ? /*#__PURE__*/jsx(VerifiedWalletIcon, {
17700
- opac: true
17719
+ $opac: true
17701
17720
  }) : /*#__PURE__*/jsx(VerifyAddressIndicator, {
17702
17721
  fontSize: "12px",
17703
17722
  fontWeight: 500,
@@ -17768,7 +17787,7 @@ var BellNotifier = function BellNotifier(_ref1) {
17768
17787
  onClick: onClick,
17769
17788
  hasMsg: hasMessage,
17770
17789
  children: [/*#__PURE__*/jsx(Icon$1e, {
17771
- opac: true,
17790
+ $opac: true,
17772
17791
  fill: !hasMessage ? "#2B2B32" : undefined
17773
17792
  }), /*#__PURE__*/jsx(NotificationNumber, {
17774
17793
  hasMsg: hasMessage,
@@ -17795,7 +17814,7 @@ var CryptoDropdownWrapper = styled.button(_templateObject$a || (_templateObject$
17795
17814
  var theme = _ref2.theme;
17796
17815
  return theme.mediaQueries.mobile;
17797
17816
  });
17798
- var ButtonsContainer = 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) {
17817
+ var ButtonsContainer = 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) {
17799
17818
  var theme = _ref3.theme;
17800
17819
  return theme.backgrounds.secondary;
17801
17820
  }, function (_ref4) {
@@ -17811,7 +17830,7 @@ var ButtonsContainer = styled.div(_templateObject2$7 || (_templateObject2$7 = _t
17811
17830
  }, function (props) {
17812
17831
  return props.visible ? "flex" : "none";
17813
17832
  });
17814
- var ButtonRow = 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"])));
17833
+ var ButtonRow = 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"])));
17815
17834
  var ButtonsSpacer = styled.div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral(["\n border: 1px solid #373749;\n width: calc(100% - 20px);\n"])));
17816
17835
  var CryptoButton = function CryptoButton(_ref6) {
17817
17836
  var _ref6$extended = _ref6.extended,
@@ -17836,18 +17855,18 @@ var CryptoButton = function CryptoButton(_ref6) {
17836
17855
  return closeDropDownHandler();
17837
17856
  },
17838
17857
  children: [/*#__PURE__*/jsx(Icon$1i, {
17839
- opac: true,
17858
+ $opac: true,
17840
17859
  height: "11"
17841
17860
  }), /*#__PURE__*/jsx(Icon$1h, {
17842
- opac: true,
17861
+ $opac: true,
17843
17862
  height: "16.6"
17844
17863
  }), /*#__PURE__*/jsx(Icon$2m, {
17845
17864
  fill: baseColors.primaryBright,
17846
- opac: true
17865
+ $opac: true
17847
17866
  }), /*#__PURE__*/jsx(Icon$16, {
17848
- opac: true
17867
+ $opac: true
17849
17868
  }), /*#__PURE__*/jsx(Icon$17, {
17850
- opac: true
17869
+ $opac: true
17851
17870
  })]
17852
17871
  }), /*#__PURE__*/jsx(ButtonsSpacer, {}), /*#__PURE__*/jsxs(ButtonRow, {
17853
17872
  as: "a",
@@ -17857,17 +17876,17 @@ var CryptoButton = function CryptoButton(_ref6) {
17857
17876
  return closeDropDownHandler();
17858
17877
  },
17859
17878
  children: [/*#__PURE__*/jsx(Icon$16, {
17860
- opac: true
17879
+ $opac: true
17861
17880
  }), /*#__PURE__*/jsx(Icon$17, {
17862
- opac: true
17881
+ $opac: true
17863
17882
  }), /*#__PURE__*/jsx(Icon$2m, {
17864
17883
  fill: baseColors.primaryBright,
17865
- opac: true
17884
+ $opac: true
17866
17885
  }), /*#__PURE__*/jsx(Icon$1i, {
17867
- opac: true,
17886
+ $opac: true,
17868
17887
  height: "11"
17869
17888
  }), /*#__PURE__*/jsx(Icon$1h, {
17870
- opac: true,
17889
+ $opac: true,
17871
17890
  height: "16.6"
17872
17891
  })]
17873
17892
  })]
@@ -17882,14 +17901,14 @@ var CryptoButton = function CryptoButton(_ref6) {
17882
17901
  return closeDropDownHandler();
17883
17902
  },
17884
17903
  children: [/*#__PURE__*/jsx(Icon$1i, {
17885
- opac: true,
17904
+ $opac: true,
17886
17905
  height: isMobile ? "12" : ""
17887
17906
  }), extended && /*#__PURE__*/jsx(Icon$1h, {
17888
- opac: true,
17907
+ $opac: true,
17889
17908
  display: extended ? "block" : "none",
17890
17909
  height: isMobile ? "14" : ""
17891
17910
  }), extended && /*#__PURE__*/jsx(Icon$2o, {
17892
- opac: true
17911
+ $opac: true
17893
17912
  }), /*#__PURE__*/jsx(ButtonsContainer, {
17894
17913
  visible: dropToggled,
17895
17914
  children: transactionsButtons()
@@ -18312,7 +18331,7 @@ var VerificationModal = function VerificationModal(props) {
18312
18331
  bodyPadding: "0px 57px 32px 57px",
18313
18332
  children: /*#__PURE__*/jsxs(VerificationModalContent, {
18314
18333
  children: [/*#__PURE__*/jsx(Icon$28, {
18315
- opac: true,
18334
+ $opac: true,
18316
18335
  height: 48,
18317
18336
  width: 48,
18318
18337
  color: baseColors.vividBlue
@@ -18569,9 +18588,9 @@ var IdoExtensionsModal = function IdoExtensionsModal(_ref7) {
18569
18588
  }), /*#__PURE__*/jsx(ModalButton, {
18570
18589
  disabled: isButtonDisabled(),
18571
18590
  type: "submit",
18572
- isLoading: extensionsLoading,
18591
+ $isLoading: extensionsLoading,
18573
18592
  endIcon: extensionsLoading && /*#__PURE__*/jsx(Icon$2v, {
18574
- spin: true,
18593
+ $spin: true,
18575
18594
  color: "currentColor"
18576
18595
  }),
18577
18596
  children: "Continue"