@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
package/dist/ui.esm.js CHANGED
@@ -1485,6 +1485,13 @@ var TypographyContainer = /*#__PURE__*/styled('span', {
1485
1485
  fontSize: '$18'
1486
1486
  }
1487
1487
  },
1488
+ title: {
1489
+ fontSize: '$14',
1490
+ fontWeight: '$500',
1491
+ '@md': {
1492
+ fontSize: '$15'
1493
+ }
1494
+ },
1488
1495
  body1: {
1489
1496
  fontSize: '$14',
1490
1497
  fontWeight: '$400',
@@ -1497,10 +1504,7 @@ var TypographyContainer = /*#__PURE__*/styled('span', {
1497
1504
  },
1498
1505
  body2: {
1499
1506
  fontSize: '$14',
1500
- fontWeight: '$400',
1501
- '@lg': {
1502
- fontSize: '$16'
1503
- }
1507
+ fontWeight: '$400'
1504
1508
  },
1505
1509
  body3: {
1506
1510
  fontSize: '$12',
@@ -1709,13 +1713,13 @@ function StepDetail(props) {
1709
1713
  pl: direction === 'horizontal'
1710
1714
  }, amount && React__default.createElement(Typography, {
1711
1715
  noWrap: true,
1712
- variant: direction === 'vertical' ? 'body2' : 'h6'
1716
+ variant: direction === 'vertical' ? 'body2' : 'title'
1713
1717
  }, amount), !amount && estimatedAmount && React__default.createElement(Typography, {
1714
1718
  noWrap: true,
1715
- variant: direction === 'vertical' ? 'body2' : 'h6',
1716
- color: '$neutrals500'
1719
+ variant: direction === 'vertical' ? 'body2' : 'title',
1720
+ color: '$neutrals600'
1717
1721
  }, estimatedAmount), "\xA0", React__default.createElement(Typography, {
1718
- variant: direction === 'vertical' ? 'body2' : 'h6',
1722
+ variant: direction === 'vertical' ? 'body2' : 'title',
1719
1723
  noWrap: true
1720
1724
  }, symbol), React__default.createElement(SubTitle, {
1721
1725
  noWrap: true,
@@ -2644,6 +2648,7 @@ var InputContainer = /*#__PURE__*/styled('div', {
2644
2648
  position: 'relative',
2645
2649
  alignItems: 'center',
2646
2650
  color: '$foreground',
2651
+ overflowX: 'hidden',
2647
2652
  transition: 'border-color ease .3s',
2648
2653
  '&:focus-within': {
2649
2654
  borderColor: '$success',
@@ -2704,6 +2709,13 @@ var Input = /*#__PURE__*/styled('input', {
2704
2709
  margin: 0,
2705
2710
  '&:disabled': {
2706
2711
  cursor: 'not-allowed'
2712
+ },
2713
+ '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
2714
+ '-webkit-appearance': 'none',
2715
+ margin: 0
2716
+ },
2717
+ '&[type="number"]': {
2718
+ '-moz-appearance': 'textfield'
2707
2719
  }
2708
2720
  });
2709
2721
  var Label = /*#__PURE__*/styled('label', {
@@ -2983,7 +2995,7 @@ function Alert(props) {
2983
2995
  color: type,
2984
2996
  size: 24
2985
2997
  }), React__default.createElement(Spacer, {
2986
- size: 8
2998
+ size: 4
2987
2999
  }))), React__default.createElement("div", {
2988
3000
  style: {
2989
3001
  display: 'flex',
@@ -2994,10 +3006,10 @@ function Alert(props) {
2994
3006
  }
2995
3007
  }, title && React__default.createElement(React__default.Fragment, null, React__default.createElement(Typography, {
2996
3008
  className: "title",
2997
- variant: "h6",
3009
+ variant: "title",
2998
3010
  color: type
2999
3011
  }, title), !!children && React__default.createElement(Spacer, {
3000
- size: 8,
3012
+ size: 4,
3001
3013
  direction: "vertical"
3002
3014
  })), children)), props.footer ? React__default.createElement("div", {
3003
3015
  className: "footer"
@@ -3186,7 +3198,7 @@ var LoaderContainer = /*#__PURE__*/styled('div', {
3186
3198
  display: 'flex',
3187
3199
  justifyContent: 'center',
3188
3200
  width: '100%',
3189
- paddingTop: '5%',
3201
+ paddingTop: '33%',
3190
3202
  flex: 1
3191
3203
  });
3192
3204
  var filterTokens = function filterTokens(list, searchedFor) {
@@ -3252,12 +3264,12 @@ function BlockchainSelector(props) {
3252
3264
  onBack: onBack
3253
3265
  }, function (searchedFor) {
3254
3266
  var filteredBlockchains = filterBlockchains(list, searchedFor);
3255
- return React__default.createElement(ListContainer$1, {
3267
+ return React__default.createElement(React__default.Fragment, null, loadingStatus === 'loading' && React__default.createElement(LoaderContainer, null, React__default.createElement(Spinner, {
3268
+ size: 24
3269
+ })), React__default.createElement(ListContainer$1, {
3256
3270
  style: listContainerStyle,
3257
3271
  key: "1"
3258
- }, loadingStatus === 'loading' && React__default.createElement(LoaderContainer, null, React__default.createElement(Spinner, {
3259
- size: 24
3260
- })), loadingStatus === 'failed' && React__default.createElement(LoadingFailedAlert, null), loadingStatus === 'success' && React__default.createElement(React__default.Fragment, null, filteredBlockchains.length ? React__default.createElement(BlockchainsList, {
3272
+ }, loadingStatus === 'failed' && React__default.createElement(LoadingFailedAlert, null), loadingStatus === 'success' && React__default.createElement(React__default.Fragment, null, filteredBlockchains.length ? React__default.createElement(BlockchainsList, {
3261
3273
  list: filteredBlockchains,
3262
3274
  selected: selected,
3263
3275
  multiSelect: multiSelect,
@@ -3266,7 +3278,7 @@ function BlockchainSelector(props) {
3266
3278
  }) : React__default.createElement(NotFoundAlert, {
3267
3279
  catergory: "Blockchain",
3268
3280
  searchedFor: searchedFor
3269
- })));
3281
+ }))));
3270
3282
  });
3271
3283
  }
3272
3284
 
@@ -3942,13 +3954,13 @@ var SlippageChipsContainer = /*#__PURE__*/styled('div', {
3942
3954
  var LiquiditySourceContainer = /*#__PURE__*/styled(BaseContainer, {
3943
3955
  display: 'flex',
3944
3956
  justifyContent: 'space-between',
3945
- marginTop: '$32',
3957
+ marginTop: '$16',
3946
3958
  cursor: 'pointer'
3947
3959
  });
3948
3960
  var InfiniteContainer = /*#__PURE__*/styled(BaseContainer, {
3949
3961
  display: 'flex',
3950
3962
  justifyContent: 'space-between',
3951
- marginTop: '$32'
3963
+ marginTop: '$16'
3952
3964
  });
3953
3965
  var StyledAngleRight = /*#__PURE__*/styled(AngleRightIcon, {
3954
3966
  marginLeft: '$8'
@@ -3959,7 +3971,7 @@ var LiquiditySourceNumber = /*#__PURE__*/styled('div', {
3959
3971
  justifyContent: 'center'
3960
3972
  });
3961
3973
  var ThemesContainer = /*#__PURE__*/styled(BaseContainer, {
3962
- marginTop: '$32'
3974
+ marginTop: '$16'
3963
3975
  });
3964
3976
  var Head = /*#__PURE__*/styled('div', {
3965
3977
  display: 'flex',
@@ -3991,8 +4003,8 @@ function Settings(props) {
3991
4003
  onSlippageChange(slippage);
3992
4004
  };
3993
4005
  var PageContent = React__default.createElement(React__default.Fragment, null, React__default.createElement(BaseContainer, null, React__default.createElement(Head, null, React__default.createElement(Typography, {
3994
- variant: "body1"
3995
- }, "Slippage tolerance per swap"), customSlippage ? React__default.createElement(Typography, {
4006
+ variant: "body2"
4007
+ }, "Slippage tolerance"), customSlippage ? React__default.createElement(Typography, {
3996
4008
  variant: "caption",
3997
4009
  color: "error"
3998
4010
  }, customSlippage, "% Custom") : undefined), React__default.createElement(SlippageChipsContainer, null, slippages.map(function (slippage, index) {
@@ -4046,7 +4058,7 @@ function Settings(props) {
4046
4058
  marginTop: '$24'
4047
4059
  }
4048
4060
  })), React__default.createElement(InfiniteContainer, null, React__default.createElement(Typography, {
4049
- variant: "body1"
4061
+ variant: "body2"
4050
4062
  }, "Infinite Approval"), React__default.createElement(Switch, {
4051
4063
  checked: infiniteApprove,
4052
4064
  onChange: toggleInfiniteApprove
@@ -4063,7 +4075,7 @@ function Settings(props) {
4063
4075
  color: "$error500"
4064
4076
  }, "Loading failed"), React__default.createElement(StyledAngleRight, null))
4065
4077
  }, React__default.createElement(Typography, {
4066
- variant: "body1"
4078
+ variant: "body2"
4067
4079
  }, "Liquidity Sources"))));
4068
4080
  return React__default.createElement(SecondaryPage, {
4069
4081
  title: "Settings",
@@ -4081,14 +4093,14 @@ var MainContainer$2 = /*#__PURE__*/styled('div', {
4081
4093
  width: '100%',
4082
4094
  minWidth: '375px',
4083
4095
  maxWidth: '512px',
4084
- maxHeight: '595px',
4085
4096
  padding: '$16',
4086
4097
  boxSizing: 'border-box',
4087
4098
  backgroundColor: '$background',
4088
4099
  variants: {
4089
4100
  fixedHeight: {
4090
4101
  "true": {
4091
- height: '595px'
4102
+ height: '595px',
4103
+ maxHeight: '595px'
4092
4104
  },
4093
4105
  "false": {
4094
4106
  height: 'auto'
@@ -4114,6 +4126,9 @@ var TokenContainer = /*#__PURE__*/styled('div', {
4114
4126
  width: '160px',
4115
4127
  '& .amount': {
4116
4128
  fontWeight: 'bold'
4129
+ },
4130
+ '& .estimated': {
4131
+ color: '$neutrals600'
4117
4132
  }
4118
4133
  });
4119
4134
  var TokenImage = /*#__PURE__*/styled('div', {
@@ -4134,23 +4149,30 @@ var TokenImage = /*#__PURE__*/styled('div', {
4134
4149
  }
4135
4150
  });
4136
4151
  function Token(props) {
4152
+ var _props$data = props.data,
4153
+ token = _props$data.token,
4154
+ blockchain = _props$data.blockchain,
4155
+ amount = _props$data.amount,
4156
+ estimatedAmount = _props$data.estimatedAmount;
4137
4157
  return React__default.createElement(TokenContainer, null, React__default.createElement(TokenImage, null, React__default.createElement(Image, {
4138
- src: props.data.token.logo,
4158
+ src: token.logo,
4139
4159
  alt: "",
4140
4160
  size: 24
4141
4161
  }), React__default.createElement("div", {
4142
4162
  className: "overlay"
4143
4163
  }, React__default.createElement(Image, {
4144
- src: props.data.blockchain.logo,
4145
- alt: props.data.blockchain.name,
4164
+ src: blockchain.logo,
4165
+ alt: blockchain.name,
4146
4166
  size: 12
4147
4167
  }))), React__default.createElement(Spacer, {
4148
4168
  size: 8
4149
- }), React__default.createElement("span", {
4169
+ }), !!amount && React__default.createElement("span", {
4150
4170
  className: "amount"
4151
- }, props.data.amount), React__default.createElement(Spacer, {
4171
+ }, props.data.amount), !amount && estimatedAmount && React__default.createElement("span", {
4172
+ className: "amount estimated"
4173
+ }, props.data.estimatedAmount), React__default.createElement(Spacer, {
4152
4174
  size: 4
4153
- }), props.data.token.symbol);
4175
+ }), token.symbol);
4154
4176
  }
4155
4177
 
4156
4178
  var Container$3 = /*#__PURE__*/styled('div', {
@@ -4169,12 +4191,6 @@ var Container$3 = /*#__PURE__*/styled('div', {
4169
4191
  fontWeight: 'bold',
4170
4192
  fontSize: '$12'
4171
4193
  },
4172
- '&.running': {
4173
- color: '$foreground'
4174
- },
4175
- '&.failed,&.success': {
4176
- color: '$neutrals600'
4177
- },
4178
4194
  '&.failed .status': {
4179
4195
  color: '$error'
4180
4196
  },
@@ -4204,7 +4220,6 @@ function SwapDetail(_ref) {
4204
4220
  symbol: firstStep.fromSymbol
4205
4221
  },
4206
4222
  blockchain: {
4207
- // @ts-ignore
4208
4223
  logo: firstStep.fromBlockchainLogo || '',
4209
4224
  name: firstStep.fromBlockchain
4210
4225
  },
@@ -4223,11 +4238,11 @@ function SwapDetail(_ref) {
4223
4238
  symbol: lastStep.toSymbol
4224
4239
  },
4225
4240
  blockchain: {
4226
- // @ts-ignore
4227
- logo: lastStep.toBlockchainLogo,
4241
+ logo: lastStep.toBlockchainLogo || '',
4228
4242
  name: lastStep.toBlockchain
4229
4243
  },
4230
- amount: limitDecimalPlaces(lastStep.outputAmount || lastStep.expectedOutputAmountHumanReadable || '')
4244
+ amount: limitDecimalPlaces(lastStep.outputAmount || ''),
4245
+ estimatedAmount: limitDecimalPlaces(lastStep.expectedOutputAmountHumanReadable || '')
4231
4246
  }
4232
4247
  })), React__default.createElement("div", {
4233
4248
  className: "status"
@@ -4401,7 +4416,7 @@ function Drawer(props) {
4401
4416
  anchor: anchor,
4402
4417
  style: containerStyle
4403
4418
  }, React__default.createElement(DrawerHeader, null, React__default.createElement(Typography, {
4404
- variant: "h4"
4419
+ variant: "h6"
4405
4420
  }, title), showClose && React__default.createElement(CloseIcon, {
4406
4421
  size: 24,
4407
4422
  onClick: onClose
@@ -4478,17 +4493,25 @@ function ConfirmSwap(props) {
4478
4493
  }, 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) {
4479
4494
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
4480
4495
  direction: "vertical"
4481
- }), React__default.createElement(Alert, {
4496
+ }), React__default.createElement(Alert, Object.assign({
4482
4497
  type: "error",
4483
4498
  key: index
4484
- }, error));
4499
+ }, typeof error === 'string' ? {
4500
+ title: error
4501
+ } : {
4502
+ children: error
4503
+ })));
4485
4504
  }), warnings == null ? void 0 : warnings.map(function (warning, index) {
4486
4505
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
4487
4506
  direction: "vertical"
4488
- }), React__default.createElement(Alert, {
4507
+ }), React__default.createElement(Alert, Object.assign({
4489
4508
  type: "warning",
4490
4509
  key: index
4491
- }, warning));
4510
+ }, typeof warning === 'string' ? {
4511
+ title: warning
4512
+ } : {
4513
+ children: warning
4514
+ })));
4492
4515
  }))), props.previewInputs || props.previewRoutes ? React__default.createElement(Section, null, props.previewInputs, !!props.previewRoutes ? React__default.createElement(Spacer, {
4493
4516
  size: 16,
4494
4517
  direction: "vertical"
@@ -4508,7 +4531,7 @@ function ConfirmSwap(props) {
4508
4531
  variant: "body2"
4509
4532
  }, "Your ", wallet, " Wallet")), list.length === 0 && React__default.createElement(React__default.Fragment, null, React__default.createElement(AlertContainer, null, React__default.createElement(Alert, {
4510
4533
  type: "error"
4511
- }, "You need to connect a compatible wallet with ", wallet)), (isExperimentalChain == null ? void 0 : isExperimentalChain(wallet)) && React__default.createElement(Button, {
4534
+ }, "You need to connect a compatible wallet with ", wallet, ".")), (isExperimentalChain == null ? void 0 : isExperimentalChain(wallet)) && React__default.createElement(Button, {
4512
4535
  variant: "contained",
4513
4536
  type: "primary",
4514
4537
  align: "grow",
@@ -4527,17 +4550,7 @@ var Group = /*#__PURE__*/styled('div', {
4527
4550
  textTransform: 'uppercase'
4528
4551
  }
4529
4552
  });
4530
- var Container$6 = /*#__PURE__*/styled('div', {
4531
- overflowY: 'auto'
4532
- });
4533
- var filteredHistory = function filteredHistory(list, searchedFor) {
4534
- return list.filter(function (swap) {
4535
- var firstStep = swap.steps[0];
4536
- var lastStep = swap.steps[swap.steps.length - 1];
4537
- return containsText(firstStep.fromBlockchain, searchedFor) || containsText(firstStep.fromSymbol, searchedFor) || containsText(lastStep.toBlockchain, searchedFor) || containsText(lastStep.toSymbol, searchedFor) || containsText(swap.requestId, searchedFor);
4538
- });
4539
- };
4540
- var SwapsGroup = function SwapsGroup(props) {
4553
+ function SwapsGroup(props) {
4541
4554
  var list = props.list,
4542
4555
  onSwapClick = props.onSwapClick,
4543
4556
  groupBy = props.groupBy;
@@ -4567,27 +4580,41 @@ var SwapsGroup = function SwapsGroup(props) {
4567
4580
  size: 24
4568
4581
  }));
4569
4582
  }));
4583
+ }
4584
+
4585
+ var Container$6 = /*#__PURE__*/styled('div', {
4586
+ overflowY: 'auto'
4587
+ });
4588
+ var filteredHistory = function filteredHistory(list, searchedFor) {
4589
+ return list.filter(function (swap) {
4590
+ var firstStep = swap.steps[0];
4591
+ var lastStep = swap.steps[swap.steps.length - 1];
4592
+ return containsText(firstStep.fromBlockchain, searchedFor) || containsText(firstStep.fromSymbol, searchedFor) || containsText(lastStep.toBlockchain, searchedFor) || containsText(lastStep.toSymbol, searchedFor) || containsText(swap.requestId, searchedFor);
4593
+ });
4570
4594
  };
4571
- function History(_ref) {
4572
- var _ref$list = _ref.list,
4573
- list = _ref$list === void 0 ? [] : _ref$list,
4574
- onBack = _ref.onBack,
4575
- onSwapClick = _ref.onSwapClick,
4576
- groupBy = _ref.groupBy;
4595
+ function History(props) {
4596
+ var _props$list = props.list,
4597
+ list = _props$list === void 0 ? [] : _props$list,
4598
+ onBack = props.onBack,
4599
+ onSwapClick = props.onSwapClick,
4600
+ groupBy = props.groupBy,
4601
+ loading = props.loading;
4577
4602
  return React__default.createElement(SecondaryPage, {
4578
4603
  onBack: onBack,
4579
4604
  textField: true,
4580
- textFieldPlaceholder: "Search by Blockchain/Token/Request Id",
4605
+ textFieldPlaceholder: "Search by Network, Token or Request ID",
4581
4606
  title: "Swaps"
4582
4607
  }, function (searchedFor) {
4583
4608
  var filterSwaps = filteredHistory(list, searchedFor);
4584
- return React__default.createElement(Container$6, null, filterSwaps.length ? React__default.createElement(SwapsGroup, {
4609
+ return React__default.createElement(React__default.Fragment, null, loading && React__default.createElement(LoaderContainer, null, React__default.createElement(Spinner, {
4610
+ size: 24
4611
+ })), React__default.createElement(Container$6, null, !loading && React__default.createElement(React__default.Fragment, null, filterSwaps.length ? React__default.createElement(SwapsGroup, {
4585
4612
  list: filterSwaps,
4586
4613
  onSwapClick: onSwapClick,
4587
4614
  groupBy: groupBy
4588
4615
  }) : React__default.createElement(NotFoundAlert, {
4589
4616
  catergory: "Swap"
4590
- }));
4617
+ }))));
4591
4618
  });
4592
4619
  }
4593
4620
 
@@ -4668,7 +4695,8 @@ var SwapperContainer$1 = /*#__PURE__*/styled('div', {
4668
4695
  }
4669
4696
  });
4670
4697
  var FeeContainer = /*#__PURE__*/styled('div', {
4671
- paddingLeft: '$4'
4698
+ paddingLeft: '$16',
4699
+ color: '$neutrals800'
4672
4700
  });
4673
4701
  var Fee = /*#__PURE__*/styled('div', {
4674
4702
  display: 'flex',
@@ -4694,8 +4722,7 @@ var ArrowDown = /*#__PURE__*/styled('div', {
4694
4722
  });
4695
4723
  var StyledAnchor = /*#__PURE__*/styled('a', {
4696
4724
  color: '$primary',
4697
- fontWeight: '$600',
4698
- marginLeft: '$12'
4725
+ fontWeight: '$600'
4699
4726
  });
4700
4727
  var SwapInfoContainer = /*#__PURE__*/styled('div', {
4701
4728
  display: 'flex',
@@ -4704,11 +4731,14 @@ var SwapInfoContainer = /*#__PURE__*/styled('div', {
4704
4731
  borderBottom: '1px solid $neutrals300'
4705
4732
  });
4706
4733
  var InternalDetailsContainer = /*#__PURE__*/styled('div', {
4707
- display: 'flex'
4734
+ display: 'flex',
4735
+ '.details': {
4736
+ padding: '$8 0'
4737
+ }
4708
4738
  });
4709
4739
  var InternalDetail = /*#__PURE__*/styled('div', {
4710
4740
  display: 'flex',
4711
- padding: '$10'
4741
+ margin: '$12 0 $12 $20'
4712
4742
  });
4713
4743
  var DescriptionContainer = /*#__PURE__*/styled('div', {
4714
4744
  display: 'flex',
@@ -4716,7 +4746,7 @@ var DescriptionContainer = /*#__PURE__*/styled('div', {
4716
4746
  });
4717
4747
  var Description = /*#__PURE__*/styled(Typography, {
4718
4748
  color: '$success',
4719
- marginLeft: '$8'
4749
+ paddingLeft: '$4'
4720
4750
  });
4721
4751
  var Line$1 = /*#__PURE__*/styled('div', {
4722
4752
  width: '0',
@@ -4737,7 +4767,8 @@ var Row$2 = /*#__PURE__*/styled('div', {
4737
4767
  '.value': {
4738
4768
  display: 'flex',
4739
4769
  alignItems: 'center',
4740
- color: '$neutrals800'
4770
+ color: '$neutrals800',
4771
+ justifyContent: 'flex-end'
4741
4772
  },
4742
4773
  '.status': {
4743
4774
  fontWeight: 'bold',
@@ -4760,13 +4791,13 @@ var RequestId = /*#__PURE__*/styled('div', {
4760
4791
  }
4761
4792
  });
4762
4793
  var ExtraDetails = /*#__PURE__*/styled('div', {
4763
- padding: '$8 0',
4794
+ padding: '0',
4764
4795
  color: '$neutrals600',
4765
- fontSize: '$12'
4796
+ fontSize: '$10'
4766
4797
  });
4767
4798
  var SwapFlowContainer = /*#__PURE__*/styled('div', {
4768
4799
  overflowY: 'auto',
4769
- paddingTop: '$8'
4800
+ padding: '$8 $4 $2 $4'
4770
4801
  });
4771
4802
  function SwapHistory(props) {
4772
4803
  var pendingSwap = props.pendingSwap,
@@ -4797,7 +4828,7 @@ function SwapHistory(props) {
4797
4828
  }, "Try again"))
4798
4829
  }, React__default.createElement("div", null, React__default.createElement(SwapInfoContainer, null, React__default.createElement(Row$2, null, React__default.createElement("div", {
4799
4830
  className: "name"
4800
- }, "Request ID:"), React__default.createElement("div", {
4831
+ }, "Request Id:", React__default.createElement("span", {
4801
4832
  className: "value requestId",
4802
4833
  onClick: onCopy.bind(null, pendingSwap == null ? void 0 : pendingSwap.requestId)
4803
4834
  }, React__default.createElement(RequestId, null, pendingSwap == null ? void 0 : pendingSwap.requestId), React__default.createElement(Spacer, {
@@ -4806,15 +4837,15 @@ function SwapHistory(props) {
4806
4837
  type: "primary",
4807
4838
  variant: "ghost",
4808
4839
  size: "compact"
4809
- }, isCopied ? 'Copied!' : 'Copy'))), React__default.createElement(Row$2, null, React__default.createElement("div", {
4840
+ }, isCopied ? 'Copied!' : 'Copy'))), React__default.createElement("div", {
4810
4841
  className: "name"
4811
- }, "Status:"), React__default.createElement("div", {
4842
+ }, React__default.createElement("span", {
4812
4843
  className: "value status " + ((pendingSwap == null ? void 0 : pendingSwap.status) || '')
4813
4844
  }, pendingSwap == null ? void 0 : pendingSwap.status, (pendingSwap == null ? void 0 : pendingSwap.status) === 'running' && React__default.createElement(Spinner, {
4814
4845
  size: 16,
4815
4846
  color: "primary"
4816
- }))), React__default.createElement(ExtraDetails, null, date))), React__default.createElement(SwapFlowContainer, null, extraMessageProps.shortMessage && React__default.createElement(SwapMessages, Object.assign({}, extraMessageProps)), React__default.createElement(Divider, {
4817
- size: 32
4847
+ })), React__default.createElement(ExtraDetails, null, date))))), React__default.createElement(SwapFlowContainer, null, extraMessageProps.shortMessage && React__default.createElement(SwapMessages, Object.assign({}, extraMessageProps)), React__default.createElement(Divider, {
4848
+ size: 16
4818
4849
  }), pendingSwap == null ? void 0 : pendingSwap.steps.map(function (step, index) {
4819
4850
  return React__default.createElement("div", {
4820
4851
  key: index
@@ -4832,26 +4863,30 @@ function SwapHistory(props) {
4832
4863
  alt: step.swapperId,
4833
4864
  size: 20
4834
4865
  }), React__default.createElement(FeeContainer, null, React__default.createElement(Typography, {
4835
- variant: "caption"
4836
- }, 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, {
4837
- variant: "caption"
4866
+ variant: "body2"
4867
+ }, step.swapperType === 'DEX' ? 'Swap' : 'Bridge', " via", ' ', step.swapperId), React__default.createElement(Fee, null, React__default.createElement(GasIcon, null), React__default.createElement(Typography, {
4868
+ variant: "body2"
4838
4869
  }, "\xA0 $", step.feeInUsd, " estimated gas fee")))), React__default.createElement("div", {
4839
4870
  style: {
4840
4871
  display: 'flex'
4841
4872
  }
4842
- }, 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) {
4873
+ }, React__default.createElement(InternalDetailsContainer, null, React__default.createElement(Line$1, null), React__default.createElement("div", {
4874
+ className: "details"
4875
+ }, !!step.explorerUrl && React__default.createElement("div", null, step.explorerUrl.map(function (item, index) {
4843
4876
  return React__default.createElement(InternalDetail, {
4844
4877
  key: index
4845
- }, React__default.createElement(DescriptionContainer, null, React__default.createElement(CheckCircleIcon, {
4846
- color: "success"
4878
+ }, React__default.createElement(DescriptionContainer, null, React__default.createElement(Divider, {
4879
+ size: 4
4880
+ }), React__default.createElement(CheckCircleIcon, {
4881
+ color: "primary"
4847
4882
  }), React__default.createElement(Description, {
4848
4883
  variant: "body2"
4849
- }, !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, {
4884
+ }, React__default.createElement(StyledAnchor, {
4850
4885
  href: item.url,
4851
4886
  target: "_blank",
4852
4887
  rel: "noreferrer",
4853
4888
  key: index
4854
- }, "TX-Link"));
4889
+ }, !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")))));
4855
4890
  })), step.status === 'failed' && React__default.createElement(InternalDetail, null, React__default.createElement(DescriptionContainer, null, React__default.createElement(InfoCircleIcon, {
4856
4891
  color: "error"
4857
4892
  }), React__default.createElement(Description, {
@@ -4876,10 +4911,9 @@ function SwapHistory(props) {
4876
4911
  title: "Cancel Progress",
4877
4912
  content: React__default.createElement(Alert, {
4878
4913
  type: "warning"
4879
- }, 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, {
4880
- size: 12,
4881
- direction: "vertical"
4882
- }), React__default.createElement("p", null, "If you have already signed your transaction to blockchain, you should wait for that to complete or rollback")),
4914
+ }, React__default.createElement(Typography, {
4915
+ variant: "body2"
4916
+ }, "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.")),
4883
4917
  footer: React__default.createElement("div", {
4884
4918
  style: {
4885
4919
  display: 'flex',
@@ -4904,5 +4938,5 @@ function SwapHistory(props) {
4904
4938
  }));
4905
4939
  }
4906
4940
 
4907
- export { AddCircleIcon, AddIcon, AddWalletIcon, Alert, AngleDownIcon, AngleLeftIcon, AngleRightIcon, AngleUpIcon, ArrowRightIcon, BagIcon, BanIcon, BestRoute, BlockchainSelector, Button, CheckCircleIcon, CheckIcon, CheckSquareIcon, CheckWalletIcon, Checkbox, ChevronRightIcon, Chip, CloseIcon, ColorPicker, ConfirmSwap, ConnectWalletsModal, CopyIcon, DeleteCircleIcon, DeleteWalletIcon, DisconnectIcon, Divider, DownloadIcon, Drawer, FilledCircle, GasIcon, Header, History, HistoryIcon, HorizontalSwapIcon, Image, InfoCircleIcon, LiquiditySourcesSelector, LoadingFailedAlert, MinusCircleIcon, Modal, Radio, RetryIcon, RetryLeftIcon, RetryRightIcon, SearchIcon, SearchMinusIcon, SecondaryPage, SelectableWalletList, Settings, SettingsIcon, SignatureIcon, Spacer, Spinner, StepDetail, SwapContainer, SwapDetail, SwapHistory, SwapWalletIcon, Switch, TextField, TimeIcon, TokenList, TokenSelector, Tooltip, TrashIcon, TryAgainIcon, Typography, VerticalSwapIcon, Wallet, WalletIcon, WalletState, WarningIcon, createTheme, css, darkTheme, globalCss, keyframes, lightTheme, styled };
4941
+ export { AddCircleIcon, AddIcon, AddWalletIcon, Alert, AngleDownIcon, AngleLeftIcon, AngleRightIcon, AngleUpIcon, ArrowRightIcon, BagIcon, BanIcon, BestRoute, BlockchainSelector, Button, CheckCircleIcon, CheckIcon, CheckSquareIcon, CheckWalletIcon, Checkbox, ChevronRightIcon, Chip, CloseIcon, ColorPicker, ConfirmSwap, ConnectWalletsModal, CopyIcon, DeleteCircleIcon, DeleteWalletIcon, DisconnectIcon, Divider, DownloadIcon, Drawer, FilledCircle, GasIcon, Header, History, HistoryIcon, HorizontalSwapIcon, Image, InfoCircleIcon, LiquiditySourcesSelector, LoadingFailedAlert, MinusCircleIcon, Modal, Radio, RetryIcon, RetryLeftIcon, RetryRightIcon, SearchIcon, SearchMinusIcon, SecondaryPage, SelectableWalletList, Settings, SettingsIcon, SignatureIcon, Spacer, Spinner, StepDetail, SwapContainer, SwapDetail, SwapHistory, SwapWalletIcon, SwapsGroup, Switch, TextField, TimeIcon, TokenList, TokenSelector, Tooltip, TrashIcon, TryAgainIcon, Typography, VerticalSwapIcon, Wallet, WalletIcon, WalletState, WarningIcon, createTheme, css, darkTheme, globalCss, keyframes, lightTheme, styled };
4908
4942
  //# sourceMappingURL=ui.esm.js.map