@rango-dev/ui 0.1.11-next.6 → 0.1.11

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.
Files changed (30) hide show
  1. package/dist/components/SwapDetail/Token.d.ts +1 -0
  2. package/dist/components/TextField/TextField.d.ts +1 -1
  3. package/dist/components/Typography/Typography.d.ts +1 -1
  4. package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts +4 -2
  5. package/dist/containers/History/History.d.ts +5 -12
  6. package/dist/containers/History/SwapsGroup.d.ts +13 -0
  7. package/dist/containers/History/index.d.ts +2 -1
  8. package/dist/ui.cjs.development.js +130 -95
  9. package/dist/ui.cjs.development.js.map +1 -1
  10. package/dist/ui.cjs.production.min.js +1 -1
  11. package/dist/ui.cjs.production.min.js.map +1 -1
  12. package/dist/ui.esm.js +130 -96
  13. package/dist/ui.esm.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/components/Alert/Alert.tsx +3 -3
  16. package/src/components/BlockchainSelector/BlockchainSelector.tsx +23 -21
  17. package/src/components/Drawer/Drawer.tsx +1 -1
  18. package/src/components/Settings/Settings.tsx +7 -6
  19. package/src/components/StepDetail/StepDetail.tsx +7 -4
  20. package/src/components/SwapContainer/SwapContainer.tsx +1 -2
  21. package/src/components/SwapDetail/SwapDetail.tsx +4 -14
  22. package/src/components/SwapDetail/Token.tsx +14 -8
  23. package/src/components/TextField/TextField.tsx +8 -0
  24. package/src/components/TokenSelector/TokenSelector.tsx +1 -1
  25. package/src/components/Typography/Typography.tsx +11 -3
  26. package/src/containers/ConfirmSwap/ConfirmSwap.tsx +9 -9
  27. package/src/containers/History/History.tsx +28 -71
  28. package/src/containers/History/SwapsGroup.tsx +59 -0
  29. package/src/containers/History/index.ts +2 -1
  30. package/src/containers/SwapHistory/SwapHistory.tsx +61 -62
@@ -1492,6 +1492,13 @@ var TypographyContainer = /*#__PURE__*/styled('span', {
1492
1492
  fontSize: '$18'
1493
1493
  }
1494
1494
  },
1495
+ title: {
1496
+ fontSize: '$14',
1497
+ fontWeight: '$500',
1498
+ '@md': {
1499
+ fontSize: '$15'
1500
+ }
1501
+ },
1495
1502
  body1: {
1496
1503
  fontSize: '$14',
1497
1504
  fontWeight: '$400',
@@ -1504,10 +1511,7 @@ var TypographyContainer = /*#__PURE__*/styled('span', {
1504
1511
  },
1505
1512
  body2: {
1506
1513
  fontSize: '$14',
1507
- fontWeight: '$400',
1508
- '@lg': {
1509
- fontSize: '$16'
1510
- }
1514
+ fontWeight: '$400'
1511
1515
  },
1512
1516
  body3: {
1513
1517
  fontSize: '$12',
@@ -1716,13 +1720,13 @@ function StepDetail(props) {
1716
1720
  pl: direction === 'horizontal'
1717
1721
  }, amount && React__default.createElement(Typography, {
1718
1722
  noWrap: true,
1719
- variant: direction === 'vertical' ? 'body2' : 'h6'
1723
+ variant: direction === 'vertical' ? 'body2' : 'title'
1720
1724
  }, amount), !amount && estimatedAmount && React__default.createElement(Typography, {
1721
1725
  noWrap: true,
1722
- variant: direction === 'vertical' ? 'body2' : 'h6',
1723
- color: '$neutrals500'
1726
+ variant: direction === 'vertical' ? 'body2' : 'title',
1727
+ color: '$neutrals600'
1724
1728
  }, estimatedAmount), "\xA0", React__default.createElement(Typography, {
1725
- variant: direction === 'vertical' ? 'body2' : 'h6',
1729
+ variant: direction === 'vertical' ? 'body2' : 'title',
1726
1730
  noWrap: true
1727
1731
  }, symbol), React__default.createElement(SubTitle, {
1728
1732
  noWrap: true,
@@ -2651,6 +2655,7 @@ var InputContainer = /*#__PURE__*/styled('div', {
2651
2655
  position: 'relative',
2652
2656
  alignItems: 'center',
2653
2657
  color: '$foreground',
2658
+ overflowX: 'hidden',
2654
2659
  transition: 'border-color ease .3s',
2655
2660
  '&:focus-within': {
2656
2661
  borderColor: '$success',
@@ -2711,6 +2716,13 @@ var Input = /*#__PURE__*/styled('input', {
2711
2716
  margin: 0,
2712
2717
  '&:disabled': {
2713
2718
  cursor: 'not-allowed'
2719
+ },
2720
+ '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
2721
+ '-webkit-appearance': 'none',
2722
+ margin: 0
2723
+ },
2724
+ '&[type="number"]': {
2725
+ '-moz-appearance': 'textfield'
2714
2726
  }
2715
2727
  });
2716
2728
  var Label = /*#__PURE__*/styled('label', {
@@ -2990,7 +3002,7 @@ function Alert(props) {
2990
3002
  color: type,
2991
3003
  size: 24
2992
3004
  }), React__default.createElement(Spacer, {
2993
- size: 8
3005
+ size: 4
2994
3006
  }))), React__default.createElement("div", {
2995
3007
  style: {
2996
3008
  display: 'flex',
@@ -3001,10 +3013,10 @@ function Alert(props) {
3001
3013
  }
3002
3014
  }, title && React__default.createElement(React__default.Fragment, null, React__default.createElement(Typography, {
3003
3015
  className: "title",
3004
- variant: "h6",
3016
+ variant: "title",
3005
3017
  color: type
3006
3018
  }, title), !!children && React__default.createElement(Spacer, {
3007
- size: 8,
3019
+ size: 4,
3008
3020
  direction: "vertical"
3009
3021
  })), children)), props.footer ? React__default.createElement("div", {
3010
3022
  className: "footer"
@@ -3193,7 +3205,7 @@ var LoaderContainer = /*#__PURE__*/styled('div', {
3193
3205
  display: 'flex',
3194
3206
  justifyContent: 'center',
3195
3207
  width: '100%',
3196
- paddingTop: '5%',
3208
+ paddingTop: '33%',
3197
3209
  flex: 1
3198
3210
  });
3199
3211
  var filterTokens = function filterTokens(list, searchedFor) {
@@ -3259,12 +3271,12 @@ function BlockchainSelector(props) {
3259
3271
  onBack: onBack
3260
3272
  }, function (searchedFor) {
3261
3273
  var filteredBlockchains = filterBlockchains(list, searchedFor);
3262
- return React__default.createElement(ListContainer$1, {
3274
+ return React__default.createElement(React__default.Fragment, null, loadingStatus === 'loading' && React__default.createElement(LoaderContainer, null, React__default.createElement(Spinner, {
3275
+ size: 24
3276
+ })), React__default.createElement(ListContainer$1, {
3263
3277
  style: listContainerStyle,
3264
3278
  key: "1"
3265
- }, loadingStatus === 'loading' && React__default.createElement(LoaderContainer, null, React__default.createElement(Spinner, {
3266
- size: 24
3267
- })), loadingStatus === 'failed' && React__default.createElement(LoadingFailedAlert, null), loadingStatus === 'success' && React__default.createElement(React__default.Fragment, null, filteredBlockchains.length ? React__default.createElement(BlockchainsList, {
3279
+ }, loadingStatus === 'failed' && React__default.createElement(LoadingFailedAlert, null), loadingStatus === 'success' && React__default.createElement(React__default.Fragment, null, filteredBlockchains.length ? React__default.createElement(BlockchainsList, {
3268
3280
  list: filteredBlockchains,
3269
3281
  selected: selected,
3270
3282
  multiSelect: multiSelect,
@@ -3273,7 +3285,7 @@ function BlockchainSelector(props) {
3273
3285
  }) : React__default.createElement(NotFoundAlert, {
3274
3286
  catergory: "Blockchain",
3275
3287
  searchedFor: searchedFor
3276
- })));
3288
+ }))));
3277
3289
  });
3278
3290
  }
3279
3291
 
@@ -3948,13 +3960,13 @@ var SlippageChipsContainer = /*#__PURE__*/styled('div', {
3948
3960
  var LiquiditySourceContainer = /*#__PURE__*/styled(BaseContainer, {
3949
3961
  display: 'flex',
3950
3962
  justifyContent: 'space-between',
3951
- marginTop: '$32',
3963
+ marginTop: '$16',
3952
3964
  cursor: 'pointer'
3953
3965
  });
3954
3966
  var InfiniteContainer = /*#__PURE__*/styled(BaseContainer, {
3955
3967
  display: 'flex',
3956
3968
  justifyContent: 'space-between',
3957
- marginTop: '$32'
3969
+ marginTop: '$16'
3958
3970
  });
3959
3971
  var StyledAngleRight = /*#__PURE__*/styled(AngleRightIcon, {
3960
3972
  marginLeft: '$8'
@@ -3965,7 +3977,7 @@ var LiquiditySourceNumber = /*#__PURE__*/styled('div', {
3965
3977
  justifyContent: 'center'
3966
3978
  });
3967
3979
  var ThemesContainer = /*#__PURE__*/styled(BaseContainer, {
3968
- marginTop: '$32'
3980
+ marginTop: '$16'
3969
3981
  });
3970
3982
  var Head = /*#__PURE__*/styled('div', {
3971
3983
  display: 'flex',
@@ -3997,8 +4009,8 @@ function Settings(props) {
3997
4009
  onSlippageChange(slippage);
3998
4010
  };
3999
4011
  var PageContent = React__default.createElement(React__default.Fragment, null, React__default.createElement(BaseContainer, null, React__default.createElement(Head, null, React__default.createElement(Typography, {
4000
- variant: "body1"
4001
- }, "Slippage tolerance per swap"), customSlippage ? React__default.createElement(Typography, {
4012
+ variant: "body2"
4013
+ }, "Slippage tolerance"), customSlippage ? React__default.createElement(Typography, {
4002
4014
  variant: "caption",
4003
4015
  color: "error"
4004
4016
  }, customSlippage, "% Custom") : undefined), React__default.createElement(SlippageChipsContainer, null, slippages.map(function (slippage, index) {
@@ -4052,7 +4064,7 @@ function Settings(props) {
4052
4064
  marginTop: '$24'
4053
4065
  }
4054
4066
  })), React__default.createElement(InfiniteContainer, null, React__default.createElement(Typography, {
4055
- variant: "body1"
4067
+ variant: "body2"
4056
4068
  }, "Infinite Approval"), React__default.createElement(Switch, {
4057
4069
  checked: infiniteApprove,
4058
4070
  onChange: toggleInfiniteApprove
@@ -4069,7 +4081,7 @@ function Settings(props) {
4069
4081
  color: "$error500"
4070
4082
  }, "Loading failed"), React__default.createElement(StyledAngleRight, null))
4071
4083
  }, React__default.createElement(Typography, {
4072
- variant: "body1"
4084
+ variant: "body2"
4073
4085
  }, "Liquidity Sources"))));
4074
4086
  return React__default.createElement(SecondaryPage, {
4075
4087
  title: "Settings",
@@ -4087,14 +4099,14 @@ var MainContainer$2 = /*#__PURE__*/styled('div', {
4087
4099
  width: '100%',
4088
4100
  minWidth: '375px',
4089
4101
  maxWidth: '512px',
4090
- maxHeight: '595px',
4091
4102
  padding: '$16',
4092
4103
  boxSizing: 'border-box',
4093
4104
  backgroundColor: '$background',
4094
4105
  variants: {
4095
4106
  fixedHeight: {
4096
4107
  "true": {
4097
- height: '595px'
4108
+ height: '595px',
4109
+ maxHeight: '595px'
4098
4110
  },
4099
4111
  "false": {
4100
4112
  height: 'auto'
@@ -4120,6 +4132,9 @@ var TokenContainer = /*#__PURE__*/styled('div', {
4120
4132
  width: '160px',
4121
4133
  '& .amount': {
4122
4134
  fontWeight: 'bold'
4135
+ },
4136
+ '& .estimated': {
4137
+ color: '$neutrals600'
4123
4138
  }
4124
4139
  });
4125
4140
  var TokenImage = /*#__PURE__*/styled('div', {
@@ -4140,23 +4155,30 @@ var TokenImage = /*#__PURE__*/styled('div', {
4140
4155
  }
4141
4156
  });
4142
4157
  function Token(props) {
4158
+ var _props$data = props.data,
4159
+ token = _props$data.token,
4160
+ blockchain = _props$data.blockchain,
4161
+ amount = _props$data.amount,
4162
+ estimatedAmount = _props$data.estimatedAmount;
4143
4163
  return React__default.createElement(TokenContainer, null, React__default.createElement(TokenImage, null, React__default.createElement(Image, {
4144
- src: props.data.token.logo,
4164
+ src: token.logo,
4145
4165
  alt: "",
4146
4166
  size: 24
4147
4167
  }), React__default.createElement("div", {
4148
4168
  className: "overlay"
4149
4169
  }, React__default.createElement(Image, {
4150
- src: props.data.blockchain.logo,
4151
- alt: props.data.blockchain.name,
4170
+ src: blockchain.logo,
4171
+ alt: blockchain.name,
4152
4172
  size: 12
4153
4173
  }))), React__default.createElement(Spacer, {
4154
4174
  size: 8
4155
- }), React__default.createElement("span", {
4175
+ }), !!amount && React__default.createElement("span", {
4156
4176
  className: "amount"
4157
- }, props.data.amount), React__default.createElement(Spacer, {
4177
+ }, props.data.amount), !amount && estimatedAmount && React__default.createElement("span", {
4178
+ className: "amount estimated"
4179
+ }, props.data.estimatedAmount), React__default.createElement(Spacer, {
4158
4180
  size: 4
4159
- }), props.data.token.symbol);
4181
+ }), token.symbol);
4160
4182
  }
4161
4183
 
4162
4184
  var Container$3 = /*#__PURE__*/styled('div', {
@@ -4175,12 +4197,6 @@ var Container$3 = /*#__PURE__*/styled('div', {
4175
4197
  fontWeight: 'bold',
4176
4198
  fontSize: '$12'
4177
4199
  },
4178
- '&.running': {
4179
- color: '$foreground'
4180
- },
4181
- '&.failed,&.success': {
4182
- color: '$neutrals600'
4183
- },
4184
4200
  '&.failed .status': {
4185
4201
  color: '$error'
4186
4202
  },
@@ -4210,7 +4226,6 @@ function SwapDetail(_ref) {
4210
4226
  symbol: firstStep.fromSymbol
4211
4227
  },
4212
4228
  blockchain: {
4213
- // @ts-ignore
4214
4229
  logo: firstStep.fromBlockchainLogo || '',
4215
4230
  name: firstStep.fromBlockchain
4216
4231
  },
@@ -4229,11 +4244,11 @@ function SwapDetail(_ref) {
4229
4244
  symbol: lastStep.toSymbol
4230
4245
  },
4231
4246
  blockchain: {
4232
- // @ts-ignore
4233
- logo: lastStep.toBlockchainLogo,
4247
+ logo: lastStep.toBlockchainLogo || '',
4234
4248
  name: lastStep.toBlockchain
4235
4249
  },
4236
- amount: limitDecimalPlaces(lastStep.outputAmount || lastStep.expectedOutputAmountHumanReadable || '')
4250
+ amount: limitDecimalPlaces(lastStep.outputAmount || ''),
4251
+ estimatedAmount: limitDecimalPlaces(lastStep.expectedOutputAmountHumanReadable || '')
4237
4252
  }
4238
4253
  })), React__default.createElement("div", {
4239
4254
  className: "status"
@@ -4407,7 +4422,7 @@ function Drawer(props) {
4407
4422
  anchor: anchor,
4408
4423
  style: containerStyle
4409
4424
  }, React__default.createElement(DrawerHeader, null, React__default.createElement(Typography, {
4410
- variant: "h4"
4425
+ variant: "h6"
4411
4426
  }, title), showClose && React__default.createElement(CloseIcon, {
4412
4427
  size: 24,
4413
4428
  onClick: onClose
@@ -4484,17 +4499,25 @@ function ConfirmSwap(props) {
4484
4499
  }, React__default.createElement(MainContainer$3, null, React__default.createElement("div", null, extraMessages || null, React__default.createElement(Alerts, null, errors == null ? void 0 : errors.map(function (error, index) {
4485
4500
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
4486
4501
  direction: "vertical"
4487
- }), React__default.createElement(Alert, {
4502
+ }), React__default.createElement(Alert, Object.assign({
4488
4503
  type: "error",
4489
4504
  key: index
4490
- }, error));
4505
+ }, typeof error === 'string' ? {
4506
+ title: error
4507
+ } : {
4508
+ children: error
4509
+ })));
4491
4510
  }), warnings == null ? void 0 : warnings.map(function (warning, index) {
4492
4511
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
4493
4512
  direction: "vertical"
4494
- }), React__default.createElement(Alert, {
4513
+ }), React__default.createElement(Alert, Object.assign({
4495
4514
  type: "warning",
4496
4515
  key: index
4497
- }, warning));
4516
+ }, typeof warning === 'string' ? {
4517
+ title: warning
4518
+ } : {
4519
+ children: warning
4520
+ })));
4498
4521
  }))), props.previewInputs || props.previewRoutes ? React__default.createElement(Section, null, props.previewInputs, !!props.previewRoutes ? React__default.createElement(Spacer, {
4499
4522
  size: 16,
4500
4523
  direction: "vertical"
@@ -4514,7 +4537,7 @@ function ConfirmSwap(props) {
4514
4537
  variant: "body2"
4515
4538
  }, "Your ", wallet, " Wallet")), list.length === 0 && React__default.createElement(React__default.Fragment, null, React__default.createElement(AlertContainer, null, React__default.createElement(Alert, {
4516
4539
  type: "error"
4517
- }, "You need to connect a compatible wallet with ", wallet)), (isExperimentalChain == null ? void 0 : isExperimentalChain(wallet)) && React__default.createElement(Button, {
4540
+ }, "You need to connect a compatible wallet with ", wallet, ".")), (isExperimentalChain == null ? void 0 : isExperimentalChain(wallet)) && React__default.createElement(Button, {
4518
4541
  variant: "contained",
4519
4542
  type: "primary",
4520
4543
  align: "grow",
@@ -4533,17 +4556,7 @@ var Group = /*#__PURE__*/styled('div', {
4533
4556
  textTransform: 'uppercase'
4534
4557
  }
4535
4558
  });
4536
- var Container$6 = /*#__PURE__*/styled('div', {
4537
- overflowY: 'auto'
4538
- });
4539
- var filteredHistory = function filteredHistory(list, searchedFor) {
4540
- return list.filter(function (swap) {
4541
- var firstStep = swap.steps[0];
4542
- var lastStep = swap.steps[swap.steps.length - 1];
4543
- return containsText(firstStep.fromBlockchain, searchedFor) || containsText(firstStep.fromSymbol, searchedFor) || containsText(lastStep.toBlockchain, searchedFor) || containsText(lastStep.toSymbol, searchedFor) || containsText(swap.requestId, searchedFor);
4544
- });
4545
- };
4546
- var SwapsGroup = function SwapsGroup(props) {
4559
+ function SwapsGroup(props) {
4547
4560
  var list = props.list,
4548
4561
  onSwapClick = props.onSwapClick,
4549
4562
  groupBy = props.groupBy;
@@ -4573,27 +4586,41 @@ var SwapsGroup = function SwapsGroup(props) {
4573
4586
  size: 24
4574
4587
  }));
4575
4588
  }));
4589
+ }
4590
+
4591
+ var Container$6 = /*#__PURE__*/styled('div', {
4592
+ overflowY: 'auto'
4593
+ });
4594
+ var filteredHistory = function filteredHistory(list, searchedFor) {
4595
+ return list.filter(function (swap) {
4596
+ var firstStep = swap.steps[0];
4597
+ var lastStep = swap.steps[swap.steps.length - 1];
4598
+ return containsText(firstStep.fromBlockchain, searchedFor) || containsText(firstStep.fromSymbol, searchedFor) || containsText(lastStep.toBlockchain, searchedFor) || containsText(lastStep.toSymbol, searchedFor) || containsText(swap.requestId, searchedFor);
4599
+ });
4576
4600
  };
4577
- function History(_ref) {
4578
- var _ref$list = _ref.list,
4579
- list = _ref$list === void 0 ? [] : _ref$list,
4580
- onBack = _ref.onBack,
4581
- onSwapClick = _ref.onSwapClick,
4582
- groupBy = _ref.groupBy;
4601
+ function History(props) {
4602
+ var _props$list = props.list,
4603
+ list = _props$list === void 0 ? [] : _props$list,
4604
+ onBack = props.onBack,
4605
+ onSwapClick = props.onSwapClick,
4606
+ groupBy = props.groupBy,
4607
+ loading = props.loading;
4583
4608
  return React__default.createElement(SecondaryPage, {
4584
4609
  onBack: onBack,
4585
4610
  textField: true,
4586
- textFieldPlaceholder: "Search by Blockchain/Token/Request Id",
4611
+ textFieldPlaceholder: "Search by Network, Token or Request ID",
4587
4612
  title: "Swaps"
4588
4613
  }, function (searchedFor) {
4589
4614
  var filterSwaps = filteredHistory(list, searchedFor);
4590
- return React__default.createElement(Container$6, null, filterSwaps.length ? React__default.createElement(SwapsGroup, {
4615
+ return React__default.createElement(React__default.Fragment, null, loading && React__default.createElement(LoaderContainer, null, React__default.createElement(Spinner, {
4616
+ size: 24
4617
+ })), React__default.createElement(Container$6, null, !loading && React__default.createElement(React__default.Fragment, null, filterSwaps.length ? React__default.createElement(SwapsGroup, {
4591
4618
  list: filterSwaps,
4592
4619
  onSwapClick: onSwapClick,
4593
4620
  groupBy: groupBy
4594
4621
  }) : React__default.createElement(NotFoundAlert, {
4595
4622
  catergory: "Swap"
4596
- }));
4623
+ }))));
4597
4624
  });
4598
4625
  }
4599
4626
 
@@ -4674,7 +4701,8 @@ var SwapperContainer$1 = /*#__PURE__*/styled('div', {
4674
4701
  }
4675
4702
  });
4676
4703
  var FeeContainer = /*#__PURE__*/styled('div', {
4677
- paddingLeft: '$4'
4704
+ paddingLeft: '$16',
4705
+ color: '$neutrals800'
4678
4706
  });
4679
4707
  var Fee = /*#__PURE__*/styled('div', {
4680
4708
  display: 'flex',
@@ -4700,8 +4728,7 @@ var ArrowDown = /*#__PURE__*/styled('div', {
4700
4728
  });
4701
4729
  var StyledAnchor = /*#__PURE__*/styled('a', {
4702
4730
  color: '$primary',
4703
- fontWeight: '$600',
4704
- marginLeft: '$12'
4731
+ fontWeight: '$600'
4705
4732
  });
4706
4733
  var SwapInfoContainer = /*#__PURE__*/styled('div', {
4707
4734
  display: 'flex',
@@ -4710,11 +4737,14 @@ var SwapInfoContainer = /*#__PURE__*/styled('div', {
4710
4737
  borderBottom: '1px solid $neutrals300'
4711
4738
  });
4712
4739
  var InternalDetailsContainer = /*#__PURE__*/styled('div', {
4713
- display: 'flex'
4740
+ display: 'flex',
4741
+ '.details': {
4742
+ padding: '$8 0'
4743
+ }
4714
4744
  });
4715
4745
  var InternalDetail = /*#__PURE__*/styled('div', {
4716
4746
  display: 'flex',
4717
- padding: '$10'
4747
+ margin: '$12 0 $12 $20'
4718
4748
  });
4719
4749
  var DescriptionContainer = /*#__PURE__*/styled('div', {
4720
4750
  display: 'flex',
@@ -4722,7 +4752,7 @@ var DescriptionContainer = /*#__PURE__*/styled('div', {
4722
4752
  });
4723
4753
  var Description = /*#__PURE__*/styled(Typography, {
4724
4754
  color: '$success',
4725
- marginLeft: '$8'
4755
+ paddingLeft: '$4'
4726
4756
  });
4727
4757
  var Line$1 = /*#__PURE__*/styled('div', {
4728
4758
  width: '0',
@@ -4743,7 +4773,8 @@ var Row$2 = /*#__PURE__*/styled('div', {
4743
4773
  '.value': {
4744
4774
  display: 'flex',
4745
4775
  alignItems: 'center',
4746
- color: '$neutrals800'
4776
+ color: '$neutrals800',
4777
+ justifyContent: 'flex-end'
4747
4778
  },
4748
4779
  '.status': {
4749
4780
  fontWeight: 'bold',
@@ -4766,13 +4797,13 @@ var RequestId = /*#__PURE__*/styled('div', {
4766
4797
  }
4767
4798
  });
4768
4799
  var ExtraDetails = /*#__PURE__*/styled('div', {
4769
- padding: '$8 0',
4800
+ padding: '0',
4770
4801
  color: '$neutrals600',
4771
- fontSize: '$12'
4802
+ fontSize: '$10'
4772
4803
  });
4773
4804
  var SwapFlowContainer = /*#__PURE__*/styled('div', {
4774
4805
  overflowY: 'auto',
4775
- paddingTop: '$8'
4806
+ padding: '$8 $4 $2 $4'
4776
4807
  });
4777
4808
  function SwapHistory(props) {
4778
4809
  var pendingSwap = props.pendingSwap,
@@ -4803,7 +4834,7 @@ function SwapHistory(props) {
4803
4834
  }, "Try again"))
4804
4835
  }, React__default.createElement("div", null, React__default.createElement(SwapInfoContainer, null, React__default.createElement(Row$2, null, React__default.createElement("div", {
4805
4836
  className: "name"
4806
- }, "Request ID:"), React__default.createElement("div", {
4837
+ }, "Request Id:", React__default.createElement("span", {
4807
4838
  className: "value requestId",
4808
4839
  onClick: onCopy.bind(null, pendingSwap == null ? void 0 : pendingSwap.requestId)
4809
4840
  }, React__default.createElement(RequestId, null, pendingSwap == null ? void 0 : pendingSwap.requestId), React__default.createElement(Spacer, {
@@ -4812,15 +4843,15 @@ function SwapHistory(props) {
4812
4843
  type: "primary",
4813
4844
  variant: "ghost",
4814
4845
  size: "compact"
4815
- }, isCopied ? 'Copied!' : 'Copy'))), React__default.createElement(Row$2, null, React__default.createElement("div", {
4846
+ }, isCopied ? 'Copied!' : 'Copy'))), React__default.createElement("div", {
4816
4847
  className: "name"
4817
- }, "Status:"), React__default.createElement("div", {
4848
+ }, React__default.createElement("span", {
4818
4849
  className: "value status " + ((pendingSwap == null ? void 0 : pendingSwap.status) || '')
4819
4850
  }, pendingSwap == null ? void 0 : pendingSwap.status, (pendingSwap == null ? void 0 : pendingSwap.status) === 'running' && React__default.createElement(Spinner, {
4820
4851
  size: 16,
4821
4852
  color: "primary"
4822
- }))), React__default.createElement(ExtraDetails, null, date))), React__default.createElement(SwapFlowContainer, null, extraMessageProps.shortMessage && React__default.createElement(SwapMessages, Object.assign({}, extraMessageProps)), React__default.createElement(Divider, {
4823
- size: 32
4853
+ })), React__default.createElement(ExtraDetails, null, date))))), React__default.createElement(SwapFlowContainer, null, extraMessageProps.shortMessage && React__default.createElement(SwapMessages, Object.assign({}, extraMessageProps)), React__default.createElement(Divider, {
4854
+ size: 16
4824
4855
  }), pendingSwap == null ? void 0 : pendingSwap.steps.map(function (step, index) {
4825
4856
  return React__default.createElement("div", {
4826
4857
  key: index
@@ -4838,26 +4869,30 @@ function SwapHistory(props) {
4838
4869
  alt: step.swapperId,
4839
4870
  size: 20
4840
4871
  }), React__default.createElement(FeeContainer, null, React__default.createElement(Typography, {
4841
- variant: "caption"
4842
- }, step.swapperType, " from ", step.fromSymbol, " to ", step.toSymbol, "\xA0 via ", step.swapperId), React__default.createElement(Fee, null, React__default.createElement(GasIcon, null), React__default.createElement(Typography, {
4843
- variant: "caption"
4872
+ variant: "body2"
4873
+ }, step.swapperType === 'DEX' ? 'Swap' : 'Bridge', " via", ' ', step.swapperId), React__default.createElement(Fee, null, React__default.createElement(GasIcon, null), React__default.createElement(Typography, {
4874
+ variant: "body2"
4844
4875
  }, "\xA0 $", step.feeInUsd, " estimated gas fee")))), React__default.createElement("div", {
4845
4876
  style: {
4846
4877
  display: 'flex'
4847
4878
  }
4848
- }, React__default.createElement(InternalDetailsContainer, null, React__default.createElement(Line$1, null), React__default.createElement("div", null, !!step.explorerUrl && React__default.createElement("div", null, step.explorerUrl.map(function (item, index) {
4879
+ }, React__default.createElement(InternalDetailsContainer, null, React__default.createElement(Line$1, null), React__default.createElement("div", {
4880
+ className: "details"
4881
+ }, !!step.explorerUrl && React__default.createElement("div", null, step.explorerUrl.map(function (item, index) {
4849
4882
  return React__default.createElement(InternalDetail, {
4850
4883
  key: index
4851
- }, React__default.createElement(DescriptionContainer, null, React__default.createElement(CheckCircleIcon, {
4852
- color: "success"
4884
+ }, React__default.createElement(DescriptionContainer, null, React__default.createElement(Divider, {
4885
+ size: 4
4886
+ }), React__default.createElement(CheckCircleIcon, {
4887
+ color: "primary"
4853
4888
  }), React__default.createElement(Description, {
4854
4889
  variant: "body2"
4855
- }, !item.description ? React__default.createElement("b", null, "View transaction") : React__default.createElement("b", null, item.description.substring(0, 1).toUpperCase(), item.description.substring(1)))), React__default.createElement(StyledAnchor, {
4890
+ }, React__default.createElement(StyledAnchor, {
4856
4891
  href: item.url,
4857
4892
  target: "_blank",
4858
4893
  rel: "noreferrer",
4859
4894
  key: index
4860
- }, "TX-Link"));
4895
+ }, !item.description ? React__default.createElement("b", null, "View transaction") : React__default.createElement("b", null, item.description.substring(0, 1).toUpperCase(), item.description.substring(1), " Tx")))));
4861
4896
  })), step.status === 'failed' && React__default.createElement(InternalDetail, null, React__default.createElement(DescriptionContainer, null, React__default.createElement(InfoCircleIcon, {
4862
4897
  color: "error"
4863
4898
  }), React__default.createElement(Description, {
@@ -4882,10 +4917,9 @@ function SwapHistory(props) {
4882
4917
  title: "Cancel Progress",
4883
4918
  content: React__default.createElement(Alert, {
4884
4919
  type: "warning"
4885
- }, React__default.createElement("p", null, "Warning: Rango ", React__default.createElement("u", null, "neither reverts"), " your transaction\xA0", React__default.createElement("u", null, "nor refunds"), " you if you've already signed and sent a transaction to the blockchain since it's out of Rango's control. Beware that \"Cancel\" only stops next steps from being executed."), React__default.createElement(Spacer, {
4886
- size: 12,
4887
- direction: "vertical"
4888
- }), React__default.createElement("p", null, "If you have already signed your transaction to blockchain, you should wait for that to complete or rollback")),
4920
+ }, React__default.createElement(Typography, {
4921
+ variant: "body2"
4922
+ }, "Warning: Cancel ", React__default.createElement("u", null, "doesn't revert"), " your transaction if you've already signed and sent a transaction to the blockchain. It only stops next steps from being executed.")),
4889
4923
  footer: React__default.createElement("div", {
4890
4924
  style: {
4891
4925
  display: 'flex',
@@ -4972,6 +5006,7 @@ exports.SwapContainer = SwapContainer;
4972
5006
  exports.SwapDetail = SwapDetail;
4973
5007
  exports.SwapHistory = SwapHistory;
4974
5008
  exports.SwapWalletIcon = SwapWalletIcon;
5009
+ exports.SwapsGroup = SwapsGroup;
4975
5010
  exports.Switch = Switch;
4976
5011
  exports.TextField = TextField;
4977
5012
  exports.TimeIcon = TimeIcon;