@rango-dev/ui 0.1.11-next.10 → 0.1.11-next.12

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.
@@ -1511,10 +1511,7 @@ var TypographyContainer = /*#__PURE__*/styled('span', {
1511
1511
  },
1512
1512
  body2: {
1513
1513
  fontSize: '$14',
1514
- fontWeight: '$400',
1515
- '@lg': {
1516
- fontSize: '$16'
1517
- }
1514
+ fontWeight: '$400'
1518
1515
  },
1519
1516
  body3: {
1520
1517
  fontSize: '$12',
@@ -3005,7 +3002,7 @@ function Alert(props) {
3005
3002
  color: type,
3006
3003
  size: 24
3007
3004
  }), React__default.createElement(Spacer, {
3008
- size: 8
3005
+ size: 4
3009
3006
  }))), React__default.createElement("div", {
3010
3007
  style: {
3011
3008
  display: 'flex',
@@ -3019,7 +3016,7 @@ function Alert(props) {
3019
3016
  variant: "title",
3020
3017
  color: type
3021
3018
  }, title), !!children && React__default.createElement(Spacer, {
3022
- size: 8,
3019
+ size: 4,
3023
3020
  direction: "vertical"
3024
3021
  })), children)), props.footer ? React__default.createElement("div", {
3025
3022
  className: "footer"
@@ -4012,8 +4009,8 @@ function Settings(props) {
4012
4009
  onSlippageChange(slippage);
4013
4010
  };
4014
4011
  var PageContent = React__default.createElement(React__default.Fragment, null, React__default.createElement(BaseContainer, null, React__default.createElement(Head, null, React__default.createElement(Typography, {
4015
- variant: "body1"
4016
- }, "Slippage tolerance per swap"), customSlippage ? React__default.createElement(Typography, {
4012
+ variant: "body2"
4013
+ }, "Slippage tolerance"), customSlippage ? React__default.createElement(Typography, {
4017
4014
  variant: "caption",
4018
4015
  color: "error"
4019
4016
  }, customSlippage, "% Custom") : undefined), React__default.createElement(SlippageChipsContainer, null, slippages.map(function (slippage, index) {
@@ -4067,7 +4064,7 @@ function Settings(props) {
4067
4064
  marginTop: '$24'
4068
4065
  }
4069
4066
  })), React__default.createElement(InfiniteContainer, null, React__default.createElement(Typography, {
4070
- variant: "body1"
4067
+ variant: "body2"
4071
4068
  }, "Infinite Approval"), React__default.createElement(Switch, {
4072
4069
  checked: infiniteApprove,
4073
4070
  onChange: toggleInfiniteApprove
@@ -4084,7 +4081,7 @@ function Settings(props) {
4084
4081
  color: "$error500"
4085
4082
  }, "Loading failed"), React__default.createElement(StyledAngleRight, null))
4086
4083
  }, React__default.createElement(Typography, {
4087
- variant: "body1"
4084
+ variant: "body2"
4088
4085
  }, "Liquidity Sources"))));
4089
4086
  return React__default.createElement(SecondaryPage, {
4090
4087
  title: "Settings",
@@ -4667,21 +4664,21 @@ var SwapMessages = function SwapMessages(props) {
4667
4664
  onClick: props.switchNetwork
4668
4665
  }, "Change network to ", currentStepBlockchain)
4669
4666
  }), !!detailedMessage.content ? React__default.createElement(DetailedMessage, null, React__default.createElement(Typography, {
4670
- variant: "body3"
4667
+ variant: "body2"
4671
4668
  }, shouldShowMoreDetailsButton && !expandedMessage ? detailedMessage.content.substring(0, allowedNumberOfChars) + (allowedNumberOfChars > 0 ? '...' : '') : detailedMessage.content)) : null, !!lastConvertedTokenInFailedSwap && React__default.createElement(React__default.Fragment, null, React__default.createElement("p", null, React__default.createElement(Typography, {
4672
- variant: "body3"
4669
+ variant: "body2"
4673
4670
  }, "Don't worry, your fund is\xA0"), React__default.createElement(SuccessText, {
4674
- variant: "body3"
4671
+ variant: "body2"
4675
4672
  }, React__default.createElement("b", null, "Safe"))), React__default.createElement("p", null, React__default.createElement(Typography, {
4676
- variant: "body3"
4673
+ variant: "body2"
4677
4674
  }, "It is converted to \xA0", React__default.createElement("u", null, lastConvertedTokenInFailedSwap.outputAmount), "\xA0"), React__default.createElement(SuccessText, {
4678
- variant: "body3"
4675
+ variant: "body2"
4679
4676
  }, React__default.createElement("b", null, lastConvertedTokenInFailedSwap.symbol, "\xA0")), React__default.createElement(Typography, {
4680
- variant: "body3"
4677
+ variant: "body2"
4681
4678
  }, "on your\xA0"), React__default.createElement(SuccessText, {
4682
- variant: "body3"
4679
+ variant: "body2"
4683
4680
  }, React__default.createElement("b", null, lastConvertedTokenInFailedSwap.blockchain, "\xA0")), React__default.createElement(Typography, {
4684
- variant: "body3"
4681
+ variant: "body2"
4685
4682
  }, "wallet"))));
4686
4683
  };
4687
4684
 
@@ -4704,7 +4701,8 @@ var SwapperContainer$1 = /*#__PURE__*/styled('div', {
4704
4701
  }
4705
4702
  });
4706
4703
  var FeeContainer = /*#__PURE__*/styled('div', {
4707
- paddingLeft: '$16'
4704
+ paddingLeft: '$16',
4705
+ color: '$neutrals800'
4708
4706
  });
4709
4707
  var Fee = /*#__PURE__*/styled('div', {
4710
4708
  display: 'flex',
@@ -4871,9 +4869,9 @@ function SwapHistory(props) {
4871
4869
  alt: step.swapperId,
4872
4870
  size: 20
4873
4871
  }), React__default.createElement(FeeContainer, null, React__default.createElement(Typography, {
4874
- variant: "caption"
4872
+ variant: "body2"
4875
4873
  }, step.swapperType === 'DEX' ? 'Swap' : 'Bridge', " via", ' ', step.swapperId), React__default.createElement(Fee, null, React__default.createElement(GasIcon, null), React__default.createElement(Typography, {
4876
- variant: "caption"
4874
+ variant: "body2"
4877
4875
  }, "\xA0 $", step.feeInUsd, " estimated gas fee")))), React__default.createElement("div", {
4878
4876
  style: {
4879
4877
  display: 'flex'
@@ -4888,7 +4886,7 @@ function SwapHistory(props) {
4888
4886
  }), React__default.createElement(CheckCircleIcon, {
4889
4887
  color: "primary"
4890
4888
  }), React__default.createElement(Description, {
4891
- variant: "body3"
4889
+ variant: "body2"
4892
4890
  }, React__default.createElement(StyledAnchor, {
4893
4891
  href: item.url,
4894
4892
  target: "_blank",
@@ -4898,7 +4896,7 @@ function SwapHistory(props) {
4898
4896
  })), step.status === 'failed' && React__default.createElement(InternalDetail, null, React__default.createElement(DescriptionContainer, null, React__default.createElement(InfoCircleIcon, {
4899
4897
  color: "error"
4900
4898
  }), React__default.createElement(Description, {
4901
- variant: "body3",
4899
+ variant: "body2",
4902
4900
  color: "$error500"
4903
4901
  }, "Step failed")))))), index + 1 === pendingSwap.steps.length && React__default.createElement(ArrowDown, null), React__default.createElement(StepDetail, {
4904
4902
  logo: step.toLogo,