@coinswap-app/uikit 1.0.6 → 1.0.7

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.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")(_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) {
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 spin = _ref2.spin;
342
- return spin && spinStyle;
343
- }, styledSystem.space, function (_ref3) {
344
- var fill = _ref3.fill;
345
- return fill;
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 opac = _ref4.opac;
348
- return opac ? 1 : 0.5;
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.small;
413
- return small ? "14px" : fontSize || "16px";
419
+ $small = _ref2.$small;
420
+ return $small ? "14px" : fontSize || "16px";
414
421
  };
415
- var Text = styledComponents.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) {
416
- var bold = _ref3.bold;
417
- return bold ? 700 : 400;
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.isLoading,
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(_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) {
491
- var white = _ref4.white;
492
- return white ? "white" : getButtonVariantProp$3("color");
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.fullWidth;
495
- return fullWidth ? "100%" : "max-content";
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.isLoading;
504
- return isLoading ? 0.5 : 1;
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 Button(_ref) {
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
- isLoading = _ref.isLoading,
522
- disabled = _ref.disabled,
523
- white = _ref.white,
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 isDisabled = isLoading || disabled;
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.defaultProps = {
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
- bold: true
8420
- })(_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) {
8421
- var size = _ref.size;
8422
- return style[size || sizes$1.MD].fontSize;
8423
- }, function (_ref2) {
8424
- var theme = _ref2.theme;
8425
- return theme.mediaQueries.lg;
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 size = _ref3.size;
8428
- return style[size || sizes$1.MD].fontSizeLg;
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
- role: "presentation"
8491
- })(_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) {
8492
- var show = _ref.show;
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 show = _ref3.show;
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 Link(_ref) {
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.defaultProps = {
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
  };
@@ -9515,10 +9543,6 @@ var StyledButton$1 = styledComponents.styled.button(_templateObject$1R || (_temp
9515
9543
  var theme = _ref10.theme;
9516
9544
  return theme.colors.primary;
9517
9545
  }, getDisabledStyles$2, removePointerEvents$2, styledSystem.space);
9518
- StyledButton$1.defaultProps = {
9519
- fullWidth: false,
9520
- type: "button"
9521
- };
9522
9546
 
9523
9547
  var _excluded$m = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled", "lined"];
9524
9548
  var Button = function Button(_ref) {
@@ -9526,9 +9550,12 @@ var Button = function Button(_ref) {
9526
9550
  style = _ref.style,
9527
9551
  endIcon = _ref.endIcon,
9528
9552
  children = _ref.children,
9529
- external = _ref.external,
9530
- isLoading = _ref.isLoading,
9531
- disabled = _ref.disabled,
9553
+ _ref$external = _ref.external,
9554
+ external = _ref$external === void 0 ? false : _ref$external,
9555
+ _ref$isLoading = _ref.isLoading,
9556
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
9557
+ _ref$disabled = _ref.disabled,
9558
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
9532
9559
  lined = _ref.lined,
9533
9560
  props = _objectWithoutProperties(_ref, _excluded$m);
9534
9561
  var internalProps = external ? getExternalLinkProps() : {};
@@ -9547,13 +9574,6 @@ var Button = function Button(_ref) {
9547
9574
  })]
9548
9575
  }));
9549
9576
  };
9550
- Button.defaultProps = {
9551
- variant: variants$2.PRIMARY,
9552
- size: sizes.MD,
9553
- external: false,
9554
- isLoading: false,
9555
- disabled: false
9556
- };
9557
9577
 
9558
9578
  var getColor = function getColor(color, theme) {
9559
9579
  return getThemeValue("colors.".concat(color), color)(theme);
@@ -9584,7 +9604,11 @@ var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide
9584
9604
  var _templateObject$1P, _templateObject2$Z, _templateObject3$L;
9585
9605
  var ButtonBody = styledComponents.styled.div(_templateObject$1P || (_templateObject$1P = _taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n"])));
9586
9606
  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)(_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"])));
9607
+ var InactiveButton$1 = styledComponents.styled(Button).withConfig({
9608
+ shouldForwardProp: function shouldForwardProp(prop) {
9609
+ return prop !== 'colorKey';
9610
+ }
9611
+ })(_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
9612
  var ButtonMenuItem = function ButtonMenuItem(_ref) {
9589
9613
  var _ref$isActive = _ref.isActive,
9590
9614
  isActive = _ref$isActive === void 0 ? false : _ref$isActive,
@@ -9694,10 +9718,6 @@ var StyledButtonActivity = styledComponents.styled.button(_templateObject$1N ||
9694
9718
  var size = _ref6.size;
9695
9719
  return size === "sm" ? "0 16px" : "0 24px";
9696
9720
  }, getButtonVariantProp$1("borderColorHover"), getDisabledStyles$1, removePointerEvents$1, styledSystem.space);
9697
- StyledButtonActivity.defaultProps = {
9698
- fullWidth: false,
9699
- type: "button"
9700
- };
9701
9721
 
9702
9722
  var _excluded$k = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled"];
9703
9723
  var ButtonActivity = function ButtonActivity(_ref) {
@@ -9705,9 +9725,12 @@ var ButtonActivity = function ButtonActivity(_ref) {
9705
9725
  style = _ref.style,
9706
9726
  endIcon = _ref.endIcon,
9707
9727
  children = _ref.children,
9708
- external = _ref.external,
9709
- isLoading = _ref.isLoading,
9710
- disabled = _ref.disabled,
9728
+ _ref$external = _ref.external,
9729
+ external = _ref$external === void 0 ? false : _ref$external,
9730
+ _ref$isLoading = _ref.isLoading,
9731
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
9732
+ _ref$disabled = _ref.disabled,
9733
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
9711
9734
  props = _objectWithoutProperties(_ref, _excluded$k);
9712
9735
  var internalProps = external ? getExternalLinkProps() : {};
9713
9736
  var isDisabled = isLoading || disabled;
@@ -9722,13 +9745,6 @@ var ButtonActivity = function ButtonActivity(_ref) {
9722
9745
  })]
9723
9746
  }));
9724
9747
  };
9725
- ButtonActivity.defaultProps = {
9726
- variant: variants$2.PRIMARY,
9727
- size: sizes.MD,
9728
- external: false,
9729
- isLoading: false,
9730
- disabled: false
9731
- };
9732
9748
 
9733
9749
  var _excluded$j = ["isActive", "size", "variant", "as"];
9734
9750
  var _templateObject$1M;
@@ -9797,10 +9813,6 @@ var StyledButtonSwitch = styledComponents.styled.button(_templateObject$1L || (_
9797
9813
  active = _ref7.active;
9798
9814
  return active ? theme.colors.primary : theme.colors.grey;
9799
9815
  }, getDisabledStyles, removePointerEvents, styledSystem.space);
9800
- StyledButtonSwitch.defaultProps = {
9801
- fullWidth: false,
9802
- type: "button"
9803
- };
9804
9816
 
9805
9817
  var _excluded$i = ["style", "children", "isLoading", "disabled", "active"];
9806
9818
  var ButtonSwitch = function ButtonSwitch(_ref) {
@@ -9850,7 +9862,8 @@ var StyledToggle = styledComponents.styled.div(_templateObject3$K || (_templateO
9850
9862
  var _excluded$h = ["checked", "variant"];
9851
9863
  var Toggle$1 = function Toggle(_ref) {
9852
9864
  var checked = _ref.checked,
9853
- variant = _ref.variant,
9865
+ _ref$variant = _ref.variant,
9866
+ variant = _ref$variant === void 0 ? variants$1.PANEL : _ref$variant,
9854
9867
  props = _objectWithoutProperties(_ref, _excluded$h);
9855
9868
  var isChecked = !!checked;
9856
9869
  var disabled = props.disabled,
@@ -9870,9 +9883,6 @@ var Toggle$1 = function Toggle(_ref) {
9870
9883
  })]
9871
9884
  }));
9872
9885
  };
9873
- Toggle$1.defaultProps = {
9874
- variant: variants$1.PANEL
9875
- };
9876
9886
 
9877
9887
  var _excluded$g = ["onClick", "active"];
9878
9888
  var ButtonSwitchMenuItem = function ButtonSwitchMenuItem(_ref) {
@@ -9928,22 +9938,32 @@ var _templateObject$1I;
9928
9938
  * Priority: Warning --> Success --> Active
9929
9939
  */
9930
9940
  var getBoxShadow$2 = function getBoxShadow(_ref) {
9931
- var isActive = _ref.isActive,
9941
+ var $isActive = _ref.$isActive,
9942
+ isActive = _ref.isActive,
9943
+ $isSuccess = _ref.$isSuccess,
9932
9944
  isSuccess = _ref.isSuccess,
9945
+ $isWarning = _ref.$isWarning,
9933
9946
  isWarning = _ref.isWarning,
9934
9947
  theme = _ref.theme;
9935
- if (isWarning) {
9948
+ var isWarningValue = $isWarning || isWarning;
9949
+ var isSuccessValue = $isSuccess || isSuccess;
9950
+ var isActiveValue = $isActive || isActive;
9951
+ if (isWarningValue) {
9936
9952
  return theme.card.boxShadowWarning;
9937
9953
  }
9938
- if (isSuccess) {
9954
+ if (isSuccessValue) {
9939
9955
  return theme.card.boxShadowSuccess;
9940
9956
  }
9941
- if (isActive) {
9957
+ if (isActiveValue) {
9942
9958
  return theme.card.boxShadowActive;
9943
9959
  }
9944
9960
  return theme.card.boxShadow;
9945
9961
  };
9946
- var StyledCard = styledComponents.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) {
9962
+ var StyledCard = styledComponents.styled.div.withConfig({
9963
+ shouldForwardProp: function shouldForwardProp(prop) {
9964
+ return !['$isActive', '$isSuccess', '$isWarning', '$isDisabled'].includes(prop);
9965
+ }
9966
+ })(_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
9967
  var theme = _ref2.theme;
9948
9968
  return theme.colors.card;
9949
9969
  }, function (_ref3) {
@@ -9951,15 +9971,10 @@ var StyledCard = styledComponents.styled.div(_templateObject$1I || (_templateObj
9951
9971
  return theme.colors.white7;
9952
9972
  }, getBoxShadow$2, function (_ref4) {
9953
9973
  var theme = _ref4.theme,
9974
+ $isDisabled = _ref4.$isDisabled,
9954
9975
  isDisabled = _ref4.isDisabled;
9955
- return theme.colors[isDisabled ? "textDisabled" : "text"];
9976
+ return theme.colors[$isDisabled || isDisabled ? "textDisabled" : "text"];
9956
9977
  }, styledSystem.space);
9957
- StyledCard.defaultProps = {
9958
- isActive: false,
9959
- isSuccess: false,
9960
- isWarning: false,
9961
- isDisabled: false
9962
- };
9963
9978
 
9964
9979
  var _excluded$f = ["ribbon", "children"];
9965
9980
  var Card = function Card(_ref) {
@@ -9972,20 +9987,25 @@ var Card = function Card(_ref) {
9972
9987
  };
9973
9988
 
9974
9989
  var _templateObject$1H;
9975
- var CardBody = styledComponents.styled.div(_templateObject$1H || (_templateObject$1H = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), styledSystem.space);
9976
- CardBody.defaultProps = {
9977
- p: "24px"
9978
- };
9990
+ var CardBody = styledComponents.styled.div.attrs(function (_ref) {
9991
+ var _ref$p = _ref.p,
9992
+ p = _ref$p === void 0 ? "24px" : _ref$p;
9993
+ return {
9994
+ p: p
9995
+ };
9996
+ })(_templateObject$1H || (_templateObject$1H = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), styledSystem.space);
9979
9997
 
9980
9998
  var _templateObject$1G;
9981
9999
  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
10000
 
9984
10001
  var _templateObject$1F;
9985
- var CardFooter = styledComponents.styled.div(_templateObject$1F || (_templateObject$1F = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), styledSystem.space);
9986
- CardFooter.defaultProps = {
9987
- p: "24px"
9988
- };
10002
+ var CardFooter = styledComponents.styled.div.attrs(function (_ref) {
10003
+ var _ref$p = _ref.p,
10004
+ p = _ref$p === void 0 ? "24px" : _ref$p;
10005
+ return {
10006
+ p: p
10007
+ };
10008
+ })(_templateObject$1F || (_templateObject$1F = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: center;\n"])), styledSystem.space);
9989
10009
 
9990
10010
  var _templateObject$1E;
9991
10011
  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 +10074,6 @@ var Checkbox = styledComponents.styled.input.attrs({
10054
10074
  var bordered = _ref9.bordered;
10055
10075
  return bordered ? "none !important" : "";
10056
10076
  });
10057
- Checkbox.defaultProps = {
10058
- scale: scales$2.MD
10059
- };
10060
10077
 
10061
10078
  var _templateObject$1C, _templateObject2$X;
10062
10079
  var getLeft = function getLeft(_ref) {
@@ -10099,9 +10116,6 @@ var Dropdown = function Dropdown(_ref7) {
10099
10116
  })]
10100
10117
  });
10101
10118
  };
10102
- Dropdown.defaultProps = {
10103
- position: "bottom"
10104
- };
10105
10119
 
10106
10120
  var _excluded$e = ["tokenName", "amount", "tokenIcon", "actions"];
10107
10121
  var _templateObject$1B, _templateObject2$W, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$j, _templateObject7$f;
@@ -10229,16 +10243,19 @@ var EarnedWrapper = function EarnedWrapper(_ref) {
10229
10243
  };
10230
10244
 
10231
10245
  var _templateObject$1z;
10232
- var EarnedWrapperHeader = styledComponents.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) {
10233
- var theme = _ref.theme;
10234
- return theme.colors.white;
10235
- }, function (_ref2) {
10246
+ var EarnedWrapperHeader = styledComponents.styled.div.attrs(function (_ref) {
10247
+ var _ref$as = _ref.as,
10248
+ as = _ref$as === void 0 ? tags.H2 : _ref$as;
10249
+ return {
10250
+ as: as
10251
+ };
10252
+ })(_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
10253
  var theme = _ref2.theme;
10254
+ return theme.colors.white;
10255
+ }, function (_ref3) {
10256
+ var theme = _ref3.theme;
10237
10257
  return theme.mediaQueries.md;
10238
10258
  });
10239
- EarnedWrapperHeader.defaultProps = {
10240
- as: tags.H2
10241
- };
10242
10259
 
10243
10260
  var _templateObject$1y;
10244
10261
  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 +10391,19 @@ var EarnedCarouselWrapper = function EarnedCarouselWrapper(_ref) {
10374
10391
  };
10375
10392
 
10376
10393
  var _templateObject$1u;
10377
- var EarnedCarouselWrapperHeader = styledComponents.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) {
10378
- var theme = _ref.theme;
10379
- return theme.colors.white;
10380
- }, function (_ref2) {
10394
+ var EarnedCarouselWrapperHeader = styledComponents.styled.div.attrs(function (_ref) {
10395
+ var _ref$as = _ref.as,
10396
+ as = _ref$as === void 0 ? tags.H2 : _ref$as;
10397
+ return {
10398
+ as: as
10399
+ };
10400
+ })(_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
10401
  var theme = _ref2.theme;
10402
+ return theme.colors.white;
10403
+ }, function (_ref3) {
10404
+ var theme = _ref3.theme;
10382
10405
  return theme.mediaQueries.md;
10383
10406
  });
10384
- EarnedCarouselWrapperHeader.defaultProps = {
10385
- as: tags.H2
10386
- };
10387
10407
 
10388
10408
  var _templateObject$1t, _templateObject2$U, _templateObject3$H;
10389
10409
  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 +10605,6 @@ var StyledInfoBox = styledComponents.styled.div(_templateObject$1s || (_template
10585
10605
  var theme = _ref3.theme;
10586
10606
  return theme.colors.text;
10587
10607
  }, styledSystem.space);
10588
- StyledInfoBox.defaultProps = {
10589
- isActive: false,
10590
- isWarning: false
10591
- };
10592
10608
 
10593
10609
  var _excluded$a = ["children"];
10594
10610
  var InfoBox$1 = function InfoBox(_ref) {
@@ -10600,20 +10616,25 @@ var InfoBox$1 = function InfoBox(_ref) {
10600
10616
  };
10601
10617
 
10602
10618
  var _templateObject$1r;
10603
- var InfoBox = styledComponents.styled.div(_templateObject$1r || (_templateObject$1r = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), styledSystem.space);
10604
- InfoBox.defaultProps = {
10605
- p: "24px"
10606
- };
10619
+ var InfoBox = styledComponents.styled.div.attrs(function (_ref) {
10620
+ var _ref$p = _ref.p,
10621
+ p = _ref$p === void 0 ? "24px" : _ref$p;
10622
+ return {
10623
+ p: p
10624
+ };
10625
+ })(_templateObject$1r || (_templateObject$1r = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), styledSystem.space);
10607
10626
 
10608
10627
  var _templateObject$1q;
10609
10628
  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
10629
 
10612
10630
  var _templateObject$1p;
10613
- var InfoBoxFooter = styledComponents.styled.div(_templateObject$1p || (_templateObject$1p = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), styledSystem.space);
10614
- InfoBoxFooter.defaultProps = {
10615
- p: "24px"
10616
- };
10631
+ var InfoBoxFooter = styledComponents.styled.div.attrs(function (_ref) {
10632
+ var _ref$p = _ref.p,
10633
+ p = _ref$p === void 0 ? "24px" : _ref$p;
10634
+ return {
10635
+ p: p
10636
+ };
10637
+ })(_templateObject$1p || (_templateObject$1p = _taggedTemplateLiteral(["\n ", ";\n padding: 20px;\n display: flex;\n justify-content: flex-start;\n"])), styledSystem.space);
10617
10638
 
10618
10639
  var scales$1 = {
10619
10640
  SM: "sm",
@@ -10671,11 +10692,6 @@ var Input = styledComponents.styled.input(_templateObject$1o || (_templateObject
10671
10692
  var theme = _ref8.theme;
10672
10693
  return theme.shadows.focus;
10673
10694
  });
10674
- Input.defaultProps = {
10675
- scale: scales$1.MD,
10676
- isSuccess: false,
10677
- isWarning: false
10678
- };
10679
10695
 
10680
10696
  var _excluded$9 = ["children"],
10681
10697
  _excluded2 = ["children"],
@@ -11032,7 +11048,7 @@ var MuiTextInput = function MuiTextInput(_ref11) {
11032
11048
  fill: theme.colors.error,
11033
11049
  width: 24,
11034
11050
  height: 24,
11035
- opac: true
11051
+ $opac: true
11036
11052
  }) : success && /*#__PURE__*/jsxRuntime.jsx(Icon$1b, {})
11037
11053
  }
11038
11054
  /* eslint-disable-next-line react/jsx-no-duplicate-props */,
@@ -11122,39 +11138,49 @@ var getCheckedScale = function getCheckedScale(_ref2) {
11122
11138
  return "20px";
11123
11139
  }
11124
11140
  };
11125
- var Radio = styledComponents.styled.input.attrs({
11126
- type: "radio"
11127
- })(_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) {
11128
- var theme = _ref3.theme;
11129
- return theme.colors.input;
11130
- }, function (_ref4) {
11141
+ var Radio = styledComponents.styled.input.attrs(function (_ref3) {
11142
+ var _ref3$scale = _ref3.scale,
11143
+ scale = _ref3$scale === void 0 ? scales.MD : _ref3$scale,
11144
+ _ref3$m = _ref3.m,
11145
+ m = _ref3$m === void 0 ? 0 : _ref3$m;
11146
+ return {
11147
+ type: "radio",
11148
+ scale: scale,
11149
+ m: m
11150
+ };
11151
+ })(_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
11152
  var theme = _ref4.theme;
11132
- return theme.shadows.inset;
11133
- }, getCheckedScale, getCheckedScale, function (_ref5) {
11153
+ return theme.colors.input;
11154
+ }, function (_ref5) {
11134
11155
  var theme = _ref5.theme;
11135
- return theme.shadows.focus;
11136
- }, function (_ref6) {
11156
+ return theme.shadows.inset;
11157
+ }, getCheckedScale, getCheckedScale, function (_ref6) {
11137
11158
  var theme = _ref6.theme;
11138
11159
  return theme.shadows.focus;
11139
11160
  }, function (_ref7) {
11140
11161
  var theme = _ref7.theme;
11141
- return theme.colors.success;
11162
+ return theme.shadows.focus;
11142
11163
  }, function (_ref8) {
11143
11164
  var theme = _ref8.theme;
11165
+ return theme.colors.success;
11166
+ }, function (_ref9) {
11167
+ var theme = _ref9.theme;
11144
11168
  return theme.radio.handleBackground;
11145
11169
  }, styledSystem.space);
11146
- Radio.defaultProps = {
11147
- scale: scales.MD,
11148
- m: 0
11149
- };
11150
11170
 
11151
- var _excluded$7 = ["startIcon", "endIcon", "children"];
11171
+ var _excluded$7 = ["startIcon", "endIcon", "children", "variant", "outline"];
11152
11172
  var Tag = function Tag(_ref) {
11153
11173
  var startIcon = _ref.startIcon,
11154
11174
  endIcon = _ref.endIcon,
11155
11175
  children = _ref.children,
11176
+ _ref$variant = _ref.variant,
11177
+ variant = _ref$variant === void 0 ? "primary" : _ref$variant,
11178
+ _ref$outline = _ref.outline,
11179
+ outline = _ref$outline === void 0 ? false : _ref$outline,
11156
11180
  props = _objectWithoutProperties(_ref, _excluded$7);
11157
11181
  return /*#__PURE__*/jsxRuntime.jsxs(StyledTag, _objectSpread2(_objectSpread2({}, props), {}, {
11182
+ variant: variant,
11183
+ outline: outline,
11158
11184
  children: [/*#__PURE__*/React.isValidElement(startIcon) && /*#__PURE__*/React.cloneElement(startIcon, {
11159
11185
  mr: "0.5rem"
11160
11186
  }), children, /*#__PURE__*/React.isValidElement(endIcon) && /*#__PURE__*/React.cloneElement(endIcon, {
@@ -11162,10 +11188,6 @@ var Tag = function Tag(_ref) {
11162
11188
  })]
11163
11189
  }));
11164
11190
  };
11165
- Tag.defaultProps = {
11166
- variant: "primary",
11167
- outline: false
11168
- };
11169
11191
 
11170
11192
  exports.TagVariant = void 0;
11171
11193
  (function (tagVariant) {
@@ -11303,7 +11325,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
11303
11325
  return {
11304
11326
  color: theme.colors.lightBlue,
11305
11327
  icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
11306
- opac: true,
11328
+ $opac: true,
11307
11329
  fill: active ? theme.colors.lightBlue : theme.colors.grey
11308
11330
  })
11309
11331
  };
@@ -11311,7 +11333,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
11311
11333
  return {
11312
11334
  color: brandColors.binance,
11313
11335
  icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
11314
- opac: true,
11336
+ $opac: true,
11315
11337
  fill: active ? brandColors.binance : theme.colors.grey
11316
11338
  })
11317
11339
  };
@@ -11319,7 +11341,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
11319
11341
  return {
11320
11342
  color: theme.colors.vividBlue,
11321
11343
  icon: /*#__PURE__*/jsxRuntime.jsx(Icon$1a, {
11322
- opac: true,
11344
+ $opac: true,
11323
11345
  stroke: active ? theme.colors.vividBlue : theme.colors.grey
11324
11346
  })
11325
11347
  };
@@ -11327,7 +11349,7 @@ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme)
11327
11349
  return {
11328
11350
  color: theme.colors.primary,
11329
11351
  icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
11330
- opac: true,
11352
+ $opac: true,
11331
11353
  fill: active ? theme.colors.primary : theme.colors.grey
11332
11354
  })
11333
11355
  };
@@ -11353,10 +11375,6 @@ var CoreTag = function CoreTag(_ref8) {
11353
11375
  })]
11354
11376
  });
11355
11377
  };
11356
- CoreTag.defaultProps = {
11357
- variant: "primary",
11358
- outline: false
11359
- };
11360
11378
 
11361
11379
  var Icon$M = function Icon(props) {
11362
11380
  return /*#__PURE__*/jsxRuntime.jsx(Svg, _objectSpread2(_objectSpread2({
@@ -11470,11 +11488,9 @@ var List = function List(_ref3) {
11470
11488
 
11471
11489
  var _templateObject$1e, _templateObject2$L;
11472
11490
  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
- return props.primary ? props.theme.colors.secondary : "".concat(props.theme.colors.secondary, "80");
11491
+ var _props$primary;
11492
+ return ((_props$primary = props.primary) !== null && _props$primary !== void 0 ? _props$primary : false) ? props.theme.colors.secondary : "".concat(props.theme.colors.secondary, "80");
11474
11493
  });
11475
- Bar.defaultProps = {
11476
- primary: false
11477
- };
11478
11494
  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
11495
  var theme = _ref.theme;
11480
11496
  return theme.colors.input;
@@ -12340,10 +12356,10 @@ var TableRow = function TableRow(_ref9) {
12340
12356
  },
12341
12357
  children: active ? /*#__PURE__*/jsxRuntime.jsx(Icon$2l, {
12342
12358
  fill: darkColors.primary,
12343
- opac: true
12359
+ $opac: true
12344
12360
  }) : /*#__PURE__*/jsxRuntime.jsx(Icon$2o, {
12345
12361
  fill: baseColors.white55,
12346
- opac: true
12362
+ $opac: true
12347
12363
  })
12348
12364
  })]
12349
12365
  }), active ? /*#__PURE__*/jsxRuntime.jsx(StyledTableDetails, {
@@ -12537,10 +12553,10 @@ var ValueFull = function ValueFull(_ref) {
12537
12553
  children: [/*#__PURE__*/jsxRuntime.jsxs(DifferenceBox, {
12538
12554
  children: [!_.isNil(difference) && (difference > 0 ? /*#__PURE__*/jsxRuntime.jsx(Icon$2l, {
12539
12555
  fill: baseColors.green,
12540
- opac: true
12556
+ $opac: true
12541
12557
  }) : /*#__PURE__*/jsxRuntime.jsx(Icon$2o, {
12542
12558
  fill: baseColors.red,
12543
- opac: true
12559
+ $opac: true
12544
12560
  })), /*#__PURE__*/jsxRuntime.jsx(Text, {
12545
12561
  style: {
12546
12562
  fontSize: "16px",
@@ -13141,7 +13157,7 @@ var ProviderRow = function ProviderRow(_ref4) {
13141
13157
  isTheLastItem: isTheLastItem,
13142
13158
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon, {
13143
13159
  width: "40px",
13144
- opac: true
13160
+ $opac: true
13145
13161
  }), /*#__PURE__*/jsxRuntime.jsx(ProviderTitle, {
13146
13162
  children: title
13147
13163
  })]
@@ -13249,7 +13265,7 @@ var ConnectWallet = function ConnectWallet(_ref2) {
13249
13265
  isUserVerified: isUserVerified,
13250
13266
  textAlign: "right",
13251
13267
  children: [isUserVerified && /*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
13252
- opac: true
13268
+ $opac: true
13253
13269
  }), /*#__PURE__*/jsxRuntime.jsx(AccountNumber, {
13254
13270
  bold: true,
13255
13271
  fontSize: "14px",
@@ -13264,7 +13280,7 @@ var ConnectWallet = function ConnectWallet(_ref2) {
13264
13280
  children: [isUserVerified && /*#__PURE__*/jsxRuntime.jsxs(VerificationInfo, {
13265
13281
  marginTop: "20px",
13266
13282
  children: [/*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
13267
- opac: true
13283
+ $opac: true
13268
13284
  }), /*#__PURE__*/jsxRuntime.jsx(Text, {
13269
13285
  color: "#818C92",
13270
13286
  children: "Wallet connection has been verified"
@@ -13272,7 +13288,7 @@ var ConnectWallet = function ConnectWallet(_ref2) {
13272
13288
  }), connectedProvider && /*#__PURE__*/jsxRuntime.jsxs(ConnectedProvider, {
13273
13289
  children: [/*#__PURE__*/jsxRuntime.jsx(connectedProvider.icon, {
13274
13290
  width: "40px",
13275
- opac: true
13291
+ $opac: true
13276
13292
  }), /*#__PURE__*/jsxRuntime.jsx(ProviderTitle, {
13277
13293
  children: connectedProvider.title
13278
13294
  })]
@@ -13360,7 +13376,7 @@ var VerifiedWallet = function VerifiedWallet(_ref) {
13360
13376
  }), /*#__PURE__*/jsxRuntime.jsxs(AccountNumberWrapper, {
13361
13377
  isVerifiedUser: true,
13362
13378
  children: [/*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
13363
- opac: true
13379
+ $opac: true
13364
13380
  }), /*#__PURE__*/jsxRuntime.jsx(AccountNumber, {
13365
13381
  bold: true,
13366
13382
  fontSize: "14px",
@@ -13370,7 +13386,7 @@ var VerifiedWallet = function VerifiedWallet(_ref) {
13370
13386
  }), /*#__PURE__*/jsxRuntime.jsxs(MiddleRow, {
13371
13387
  children: [/*#__PURE__*/jsxRuntime.jsxs(VerificationInfo, {
13372
13388
  children: [/*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
13373
- opac: true
13389
+ $opac: true
13374
13390
  }), /*#__PURE__*/jsxRuntime.jsx(Text, {
13375
13391
  color: "#818C92",
13376
13392
  children: "Wallet connection has been verified"
@@ -13378,7 +13394,7 @@ var VerifiedWallet = function VerifiedWallet(_ref) {
13378
13394
  }), connectedProvider && /*#__PURE__*/jsxRuntime.jsxs(ConnectedProvider, {
13379
13395
  children: [connectedProvider && /*#__PURE__*/jsxRuntime.jsx(connectedProvider.icon, {
13380
13396
  width: "40px",
13381
- opac: true
13397
+ $opac: true
13382
13398
  }), /*#__PURE__*/jsxRuntime.jsx(ProviderTitle, {
13383
13399
  children: connectedProvider.title
13384
13400
  })]
@@ -14140,7 +14156,7 @@ var CSSPower = function CSSPower(_ref7) {
14140
14156
  right: 30,
14141
14157
  children: /*#__PURE__*/jsxRuntime.jsx(StyledInfoIcon, {
14142
14158
  fill: baseColors.primary,
14143
- opac: true
14159
+ $opac: true
14144
14160
  })
14145
14161
  })]
14146
14162
  }), /*#__PURE__*/jsxRuntime.jsx(CSSPowerValue, {
@@ -14569,7 +14585,7 @@ var AddToCap = function AddToCap(_ref18) {
14569
14585
  children: [isSigned ? /*#__PURE__*/jsxRuntime.jsx(Icon$1_, {
14570
14586
  color: baseColors.primary
14571
14587
  }) : /*#__PURE__*/jsxRuntime.jsx(Icon$1Z, {
14572
- opac: true
14588
+ $opac: true
14573
14589
  }), /*#__PURE__*/jsxRuntime.jsx(Text, {
14574
14590
  ml: "16px",
14575
14591
  bold: true,
@@ -14618,7 +14634,7 @@ var AddToCap = function AddToCap(_ref18) {
14618
14634
  },
14619
14635
  disabled: !eligible || actionPending || buttonDisabled,
14620
14636
  endIcon: actionPending && /*#__PURE__*/jsxRuntime.jsx(Icon$2v, {
14621
- spin: true,
14637
+ $spin: true,
14622
14638
  color: "currentColor"
14623
14639
  }),
14624
14640
  children: getActionButtonText()
@@ -14713,7 +14729,7 @@ var AddToCap = function AddToCap(_ref18) {
14713
14729
  right: 30,
14714
14730
  children: /*#__PURE__*/jsxRuntime.jsx(StyledInfoIcon, {
14715
14731
  fill: baseColors.primary,
14716
- opac: true
14732
+ $opac: true
14717
14733
  })
14718
14734
  })]
14719
14735
  }), isParticipation && isSigned && /*#__PURE__*/jsxRuntime.jsxs(PersonalValuesWrapper, {
@@ -14770,7 +14786,7 @@ var AddToCap = function AddToCap(_ref18) {
14770
14786
  }), /*#__PURE__*/jsxRuntime.jsxs(MainFunctionsWrapper, {
14771
14787
  children: [/*#__PURE__*/jsxRuntime.jsx(AddCapButton, {
14772
14788
  endIcon: actionPending && /*#__PURE__*/jsxRuntime.jsx(Icon$2v, {
14773
- spin: true,
14789
+ $spin: true,
14774
14790
  color: "currentColor"
14775
14791
  }),
14776
14792
  disabled: isButtonDisabled() || error !== "",
@@ -15396,7 +15412,7 @@ var AccountInfo = function AccountInfo(_ref27) {
15396
15412
  },
15397
15413
  onClick: copyAccount,
15398
15414
  fill: accountCopied ? baseColors.white55 : baseColors.primary,
15399
- opac: true
15415
+ $opac: true
15400
15416
  })]
15401
15417
  })
15402
15418
  })]
@@ -15718,7 +15734,7 @@ var UserTiers = function UserTiers(props) {
15718
15734
  }), /*#__PURE__*/jsxRuntime.jsx(Button$1, {
15719
15735
  as: "a",
15720
15736
  href: powerUpHref,
15721
- fullWidth: true,
15737
+ $fullWidth: true,
15722
15738
  padding: "24px 0px",
15723
15739
  marginTop: "40px",
15724
15740
  children: /*#__PURE__*/jsxRuntime.jsx(Text, {
@@ -15732,7 +15748,7 @@ var UserTiers = function UserTiers(props) {
15732
15748
  variant: exports.ButtonVariant.OUTLINE,
15733
15749
  as: "a",
15734
15750
  href: learnMoreHref,
15735
- fullWidth: true,
15751
+ $fullWidth: true,
15736
15752
  padding: "16px 0px",
15737
15753
  marginTop: "16px",
15738
15754
  children: /*#__PURE__*/jsxRuntime.jsx(Text, {
@@ -15962,10 +15978,10 @@ var CopyLinkCard = function CopyLinkCard(_ref3) {
15962
15978
  },
15963
15979
  children: refCopied ? /*#__PURE__*/jsxRuntime.jsx(Icon$2q, {
15964
15980
  fill: baseColors.secondary,
15965
- opac: true
15981
+ $opac: true
15966
15982
  }) : /*#__PURE__*/jsxRuntime.jsx(Icon$2g, {
15967
15983
  fill: baseColors.secondary,
15968
- opac: true
15984
+ $opac: true
15969
15985
  })
15970
15986
  })]
15971
15987
  }), /*#__PURE__*/jsxRuntime.jsxs(SocialRow, {
@@ -16654,7 +16670,7 @@ var StyledLink = styledComponents.styled(reactRouterDom.Link)(_templateObject$o
16654
16670
  var theme = _ref.theme;
16655
16671
  return theme.mediaQueries.nav;
16656
16672
  });
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) {
16673
+ 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
16674
  var isPushed = _ref2.isPushed;
16659
16675
  return isPushed ? 1 : 0;
16660
16676
  }, function (_ref3) {
@@ -16671,13 +16687,13 @@ var Logo = function Logo(_ref4) {
16671
16687
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
16672
16688
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon$2d, {
16673
16689
  className: "mobile-icon",
16674
- opac: true
16690
+ $opac: true
16675
16691
  }), /*#__PURE__*/jsxRuntime.jsx(CoinswapLogo, {
16676
16692
  isPushed: pushed,
16677
16693
  children: !isMobile ? /*#__PURE__*/jsxRuntime.jsx(LogoWithText, {
16678
16694
  className: "desktop-icon",
16679
16695
  isDark: isDark,
16680
- opac: true
16696
+ $opac: true
16681
16697
  }) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {})
16682
16698
  })]
16683
16699
  });
@@ -16890,11 +16906,6 @@ var MenuEntry = styledComponents.styled.div(_templateObject3$d || (_templateObje
16890
16906
  var theme = _ref10.theme;
16891
16907
  return theme.colors.gradients.bubblegum;
16892
16908
  });
16893
- MenuEntry.defaultProps = {
16894
- secondary: false,
16895
- isActive: false,
16896
- role: "button"
16897
- };
16898
16909
 
16899
16910
  var _templateObject$m, _templateObject2$g, _templateObject3$c;
16900
16911
  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 +17039,7 @@ var PanelBody = function PanelBody(_ref4) {
17028
17039
  height: "18px",
17029
17040
  mr: "8px",
17030
17041
  fill: activeLink ? "#12FFB8" : baseColors.grey,
17031
- opac: true
17042
+ $opac: true
17032
17043
  }) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
17033
17044
  var calloutClass = entry.calloutClass ? entry.calloutClass : undefined;
17034
17045
  if (entry.items) {
@@ -17051,7 +17062,7 @@ var PanelBody = function PanelBody(_ref4) {
17051
17062
  var entryIconElement = EntryIcon ? /*#__PURE__*/jsxRuntime.jsx(EntryIcon, {
17052
17063
  width: "18px",
17053
17064
  mr: "8px",
17054
- opac: true
17065
+ $opac: true
17055
17066
  }) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
17056
17067
  return /*#__PURE__*/jsxRuntime.jsxs(MenuEntry, {
17057
17068
  isActive: item.href === location.pathname,
@@ -17089,30 +17100,40 @@ var PanelBody = function PanelBody(_ref4) {
17089
17100
  });
17090
17101
  };
17091
17102
 
17092
- var _excluded$1 = ["startIcon", "endIcon", "children", "external", "isLoading", "disabled"];
17103
+ var _excluded$1 = ["startIcon", "endIcon", "children", "external", "$isLoading", "isLoading", "disabled"];
17093
17104
  var _templateObject$k;
17094
- var StyledNavButton = styledComponents.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) {
17095
- var fullWidth = _ref.fullWidth;
17096
- return fullWidth ? "100%" : "max-content";
17105
+ var StyledNavButton = styledComponents.styled.button.withConfig({
17106
+ shouldForwardProp: function shouldForwardProp(prop) {
17107
+ return !['$fullWidth', '$isLoading'].includes(prop);
17108
+ }
17109
+ })(_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) {
17110
+ var $fullWidth = _ref.$fullWidth,
17111
+ fullWidth = _ref.fullWidth;
17112
+ return $fullWidth || fullWidth ? "100%" : "max-content";
17097
17113
  }, function (_ref2) {
17098
17114
  var size = _ref2.size;
17099
17115
  return size === "sm" ? "32px" : "48px";
17100
17116
  }, function (_ref3) {
17101
- var isLoading = _ref3.isLoading;
17102
- return isLoading ? 0.5 : 1;
17117
+ var $isLoading = _ref3.$isLoading,
17118
+ isLoading = _ref3.isLoading;
17119
+ return $isLoading || isLoading ? 0.5 : 1;
17103
17120
  });
17104
17121
  var NavButton = function NavButton(_ref4) {
17105
17122
  var startIcon = _ref4.startIcon,
17106
17123
  endIcon = _ref4.endIcon,
17107
17124
  children = _ref4.children,
17108
- external = _ref4.external,
17109
- isLoading = _ref4.isLoading,
17110
- disabled = _ref4.disabled,
17125
+ _ref4$external = _ref4.external,
17126
+ external = _ref4$external === void 0 ? false : _ref4$external,
17127
+ $isLoadingProp = _ref4.$isLoading,
17128
+ isLoadingProp = _ref4.isLoading,
17129
+ _ref4$disabled = _ref4.disabled,
17130
+ disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
17111
17131
  props = _objectWithoutProperties(_ref4, _excluded$1);
17112
17132
  var internalProps = external ? getExternalLinkProps() : {};
17113
- var isDisabled = isLoading || disabled;
17133
+ var $isLoading = $isLoadingProp || isLoadingProp || false;
17134
+ var isDisabled = $isLoading || disabled;
17114
17135
  return /*#__PURE__*/jsxRuntime.jsxs(StyledNavButton, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
17115
- isLoading: isLoading,
17136
+ $isLoading: $isLoading,
17116
17137
  disabled: isDisabled,
17117
17138
  children: [/*#__PURE__*/React.isValidElement(startIcon) && /*#__PURE__*/React.cloneElement(startIcon, {
17118
17139
  mr: "0.5rem"
@@ -17121,49 +17142,41 @@ var NavButton = function NavButton(_ref4) {
17121
17142
  })]
17122
17143
  }));
17123
17144
  };
17124
- NavButton.defaultProps = {
17125
- variant: variants$4.PRIMARY,
17126
- size: sizes$2.MD,
17127
- external: false,
17128
- isLoading: false,
17129
- disabled: false
17130
- };
17131
17145
 
17132
17146
  var _templateObject$j;
17133
- var MenuButton = styledComponents.styled(NavButton)(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n color: ", ";\n padding: 0 8px;\n border-radius: 8px;\n"])), function (_ref) {
17147
+ var MenuButton = styledComponents.styled(NavButton).attrs({
17148
+ variant: "text",
17149
+ size: "sm"
17150
+ })(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n color: ", ";\n padding: 0 8px;\n border-radius: 8px;\n"])), function (_ref) {
17134
17151
  var theme = _ref.theme;
17135
17152
  return theme.colors.text;
17136
17153
  });
17137
- MenuButton.defaultProps = {
17138
- variant: "text",
17139
- size: "sm"
17140
- };
17141
17154
 
17142
17155
  var getLangFlag = function getLangFlag(lang) {
17143
17156
  switch (lang.code) {
17144
17157
  case "EN":
17145
17158
  return /*#__PURE__*/jsxRuntime.jsx(Icon$15, {
17146
- opac: true
17159
+ $opac: true
17147
17160
  });
17148
17161
  case "CH":
17149
17162
  return /*#__PURE__*/jsxRuntime.jsx(Icon$14, {
17150
- opac: true
17163
+ $opac: true
17151
17164
  });
17152
17165
  case "IN":
17153
17166
  return /*#__PURE__*/jsxRuntime.jsx(Icon$13, {
17154
- opac: true
17167
+ $opac: true
17155
17168
  });
17156
17169
  case "VIE":
17157
17170
  return /*#__PURE__*/jsxRuntime.jsx(Icon$12, {
17158
- opac: true
17171
+ $opac: true
17159
17172
  });
17160
17173
  case "TH":
17161
17174
  return /*#__PURE__*/jsxRuntime.jsx(Icon$11, {
17162
- opac: true
17175
+ $opac: true
17163
17176
  });
17164
17177
  case "SP":
17165
17178
  return /*#__PURE__*/jsxRuntime.jsx(Icon$10, {
17166
- opac: true
17179
+ $opac: true
17167
17180
  });
17168
17181
  default:
17169
17182
  return /*#__PURE__*/jsxRuntime.jsx("div", {});
@@ -17239,7 +17252,7 @@ var LangSelector = function LangSelector(_ref9) {
17239
17252
  style: {
17240
17253
  marginRight: 10
17241
17254
  },
17242
- opac: true
17255
+ $opac: true
17243
17256
  }),
17244
17257
  isPushed: isPushed,
17245
17258
  children: [/*#__PURE__*/jsxRuntime.jsx(MainLangText, {
@@ -17278,7 +17291,7 @@ var LangSelector = function LangSelector(_ref9) {
17278
17291
  }), /*#__PURE__*/jsxRuntime.jsx(LangsList, {
17279
17292
  children: langs.map(function (lang, index) {
17280
17293
  return /*#__PURE__*/jsxRuntime.jsxs(MenuButton, {
17281
- fullWidth: true,
17294
+ $fullWidth: true,
17282
17295
  onClick: function onClick() {
17283
17296
  return chooseLangHandler(lang);
17284
17297
  },
@@ -17367,7 +17380,7 @@ var MobileMenu = function MobileMenu(_ref3) {
17367
17380
  height: "17px",
17368
17381
  mb: "7px",
17369
17382
  fill: activeLink ? "#12FFB8" : baseColors.grey,
17370
- opac: true
17383
+ $opac: true
17371
17384
  }) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
17372
17385
  return /*#__PURE__*/jsxRuntime.jsx(MobileEntry, {
17373
17386
  isActive: activeLink,
@@ -17521,13 +17534,13 @@ var DiclaimerModal = function DiclaimerModal(_ref) {
17521
17534
  children: /*#__PURE__*/jsxRuntime.jsxs(Flex, {
17522
17535
  justifyContent: "space-between",
17523
17536
  children: [/*#__PURE__*/jsxRuntime.jsx(Button$1, {
17524
- white: true,
17537
+ $white: true,
17525
17538
  size: "md",
17526
17539
  variant: "secondary",
17527
17540
  onClick: function onClick() {
17528
17541
  return onClickHandler(false);
17529
17542
  },
17530
- fullWidth: true,
17543
+ $fullWidth: true,
17531
17544
  children: t("Decline")
17532
17545
  }), /*#__PURE__*/jsxRuntime.jsx(Space, {}), /*#__PURE__*/jsxRuntime.jsx(Button$1, {
17533
17546
  disabled: _.some(checkBoxes, {
@@ -17538,7 +17551,7 @@ var DiclaimerModal = function DiclaimerModal(_ref) {
17538
17551
  onClick: function onClick() {
17539
17552
  return onClickHandler(true);
17540
17553
  },
17541
- fullWidth: true,
17554
+ $fullWidth: true,
17542
17555
  children: t("Agree")
17543
17556
  })]
17544
17557
  })
@@ -17719,7 +17732,7 @@ var UserBlock = function UserBlock(_ref8) {
17719
17732
  setIsConnectWalletPanelOpen(true);
17720
17733
  },
17721
17734
  children: [isUserVerified ? /*#__PURE__*/jsxRuntime.jsx(VerifiedWalletIcon, {
17722
- opac: true
17735
+ $opac: true
17723
17736
  }) : /*#__PURE__*/jsxRuntime.jsx(VerifyAddressIndicator, {
17724
17737
  fontSize: "12px",
17725
17738
  fontWeight: 500,
@@ -17790,7 +17803,7 @@ var BellNotifier = function BellNotifier(_ref1) {
17790
17803
  onClick: onClick,
17791
17804
  hasMsg: hasMessage,
17792
17805
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1e, {
17793
- opac: true,
17806
+ $opac: true,
17794
17807
  fill: !hasMessage ? "#2B2B32" : undefined
17795
17808
  }), /*#__PURE__*/jsxRuntime.jsx(NotificationNumber, {
17796
17809
  hasMsg: hasMessage,
@@ -17817,7 +17830,7 @@ var CryptoDropdownWrapper = styledComponents.styled.button(_templateObject$a ||
17817
17830
  var theme = _ref2.theme;
17818
17831
  return theme.mediaQueries.mobile;
17819
17832
  });
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) {
17833
+ 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
17834
  var theme = _ref3.theme;
17822
17835
  return theme.backgrounds.secondary;
17823
17836
  }, function (_ref4) {
@@ -17833,7 +17846,7 @@ var ButtonsContainer = styledComponents.styled.div(_templateObject2$7 || (_templ
17833
17846
  }, function (props) {
17834
17847
  return props.visible ? "flex" : "none";
17835
17848
  });
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"])));
17849
+ 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
17850
  var ButtonsSpacer = styledComponents.styled.div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral(["\n border: 1px solid #373749;\n width: calc(100% - 20px);\n"])));
17838
17851
  var CryptoButton = function CryptoButton(_ref6) {
17839
17852
  var _ref6$extended = _ref6.extended,
@@ -17858,18 +17871,18 @@ var CryptoButton = function CryptoButton(_ref6) {
17858
17871
  return closeDropDownHandler();
17859
17872
  },
17860
17873
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1i, {
17861
- opac: true,
17874
+ $opac: true,
17862
17875
  height: "11"
17863
17876
  }), /*#__PURE__*/jsxRuntime.jsx(Icon$1h, {
17864
- opac: true,
17877
+ $opac: true,
17865
17878
  height: "16.6"
17866
17879
  }), /*#__PURE__*/jsxRuntime.jsx(Icon$2m, {
17867
17880
  fill: baseColors.primaryBright,
17868
- opac: true
17881
+ $opac: true
17869
17882
  }), /*#__PURE__*/jsxRuntime.jsx(Icon$16, {
17870
- opac: true
17883
+ $opac: true
17871
17884
  }), /*#__PURE__*/jsxRuntime.jsx(Icon$17, {
17872
- opac: true
17885
+ $opac: true
17873
17886
  })]
17874
17887
  }), /*#__PURE__*/jsxRuntime.jsx(ButtonsSpacer, {}), /*#__PURE__*/jsxRuntime.jsxs(ButtonRow, {
17875
17888
  as: "a",
@@ -17879,17 +17892,17 @@ var CryptoButton = function CryptoButton(_ref6) {
17879
17892
  return closeDropDownHandler();
17880
17893
  },
17881
17894
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon$16, {
17882
- opac: true
17895
+ $opac: true
17883
17896
  }), /*#__PURE__*/jsxRuntime.jsx(Icon$17, {
17884
- opac: true
17897
+ $opac: true
17885
17898
  }), /*#__PURE__*/jsxRuntime.jsx(Icon$2m, {
17886
17899
  fill: baseColors.primaryBright,
17887
- opac: true
17900
+ $opac: true
17888
17901
  }), /*#__PURE__*/jsxRuntime.jsx(Icon$1i, {
17889
- opac: true,
17902
+ $opac: true,
17890
17903
  height: "11"
17891
17904
  }), /*#__PURE__*/jsxRuntime.jsx(Icon$1h, {
17892
- opac: true,
17905
+ $opac: true,
17893
17906
  height: "16.6"
17894
17907
  })]
17895
17908
  })]
@@ -17904,14 +17917,14 @@ var CryptoButton = function CryptoButton(_ref6) {
17904
17917
  return closeDropDownHandler();
17905
17918
  },
17906
17919
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon$1i, {
17907
- opac: true,
17920
+ $opac: true,
17908
17921
  height: isMobile ? "12" : ""
17909
17922
  }), extended && /*#__PURE__*/jsxRuntime.jsx(Icon$1h, {
17910
- opac: true,
17923
+ $opac: true,
17911
17924
  display: extended ? "block" : "none",
17912
17925
  height: isMobile ? "14" : ""
17913
17926
  }), extended && /*#__PURE__*/jsxRuntime.jsx(Icon$2o, {
17914
- opac: true
17927
+ $opac: true
17915
17928
  }), /*#__PURE__*/jsxRuntime.jsx(ButtonsContainer, {
17916
17929
  visible: dropToggled,
17917
17930
  children: transactionsButtons()
@@ -18334,7 +18347,7 @@ var VerificationModal = function VerificationModal(props) {
18334
18347
  bodyPadding: "0px 57px 32px 57px",
18335
18348
  children: /*#__PURE__*/jsxRuntime.jsxs(VerificationModalContent, {
18336
18349
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon$28, {
18337
- opac: true,
18350
+ $opac: true,
18338
18351
  height: 48,
18339
18352
  width: 48,
18340
18353
  color: baseColors.vividBlue
@@ -18591,9 +18604,9 @@ var IdoExtensionsModal = function IdoExtensionsModal(_ref7) {
18591
18604
  }), /*#__PURE__*/jsxRuntime.jsx(ModalButton, {
18592
18605
  disabled: isButtonDisabled(),
18593
18606
  type: "submit",
18594
- isLoading: extensionsLoading,
18607
+ $isLoading: extensionsLoading,
18595
18608
  endIcon: extensionsLoading && /*#__PURE__*/jsxRuntime.jsx(Icon$2v, {
18596
- spin: true,
18609
+ $spin: true,
18597
18610
  color: "currentColor"
18598
18611
  }),
18599
18612
  children: "Continue"