@rango-dev/ui 0.1.11-next.6 → 0.1.11-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/SwapDetail/Token.d.ts +1 -0
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts +4 -2
- package/dist/ui.cjs.development.js +93 -70
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +93 -70
- package/dist/ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Alert/Alert.tsx +1 -1
- package/src/components/Drawer/Drawer.tsx +1 -1
- package/src/components/Settings/Settings.tsx +4 -3
- package/src/components/StepDetail/StepDetail.tsx +7 -4
- package/src/components/SwapContainer/SwapContainer.tsx +1 -2
- package/src/components/SwapDetail/SwapDetail.tsx +4 -14
- package/src/components/SwapDetail/Token.tsx +14 -8
- package/src/components/TextField/TextField.tsx +1 -0
- package/src/components/Typography/Typography.tsx +8 -0
- package/src/containers/ConfirmSwap/ConfirmSwap.tsx +9 -9
- package/src/containers/History/History.tsx +2 -6
- package/src/containers/SwapHistory/SwapHistory.tsx +60 -63
- package/src/containers/SwapHistory/SwapMessages.tsx +8 -8
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',
|
|
@@ -1709,13 +1716,13 @@ function StepDetail(props) {
|
|
|
1709
1716
|
pl: direction === 'horizontal'
|
|
1710
1717
|
}, amount && React__default.createElement(Typography, {
|
|
1711
1718
|
noWrap: true,
|
|
1712
|
-
variant: direction === 'vertical' ? 'body2' : '
|
|
1719
|
+
variant: direction === 'vertical' ? 'body2' : 'title'
|
|
1713
1720
|
}, amount), !amount && estimatedAmount && React__default.createElement(Typography, {
|
|
1714
1721
|
noWrap: true,
|
|
1715
|
-
variant: direction === 'vertical' ? 'body2' : '
|
|
1716
|
-
color: '$
|
|
1722
|
+
variant: direction === 'vertical' ? 'body2' : 'title',
|
|
1723
|
+
color: '$neutrals600'
|
|
1717
1724
|
}, estimatedAmount), "\xA0", React__default.createElement(Typography, {
|
|
1718
|
-
variant: direction === 'vertical' ? 'body2' : '
|
|
1725
|
+
variant: direction === 'vertical' ? 'body2' : 'title',
|
|
1719
1726
|
noWrap: true
|
|
1720
1727
|
}, symbol), React__default.createElement(SubTitle, {
|
|
1721
1728
|
noWrap: true,
|
|
@@ -2644,6 +2651,7 @@ var InputContainer = /*#__PURE__*/styled('div', {
|
|
|
2644
2651
|
position: 'relative',
|
|
2645
2652
|
alignItems: 'center',
|
|
2646
2653
|
color: '$foreground',
|
|
2654
|
+
overflowX: 'hidden',
|
|
2647
2655
|
transition: 'border-color ease .3s',
|
|
2648
2656
|
'&:focus-within': {
|
|
2649
2657
|
borderColor: '$success',
|
|
@@ -2994,7 +3002,7 @@ function Alert(props) {
|
|
|
2994
3002
|
}
|
|
2995
3003
|
}, title && React__default.createElement(React__default.Fragment, null, React__default.createElement(Typography, {
|
|
2996
3004
|
className: "title",
|
|
2997
|
-
variant: "
|
|
3005
|
+
variant: "title",
|
|
2998
3006
|
color: type
|
|
2999
3007
|
}, title), !!children && React__default.createElement(Spacer, {
|
|
3000
3008
|
size: 8,
|
|
@@ -3942,13 +3950,13 @@ var SlippageChipsContainer = /*#__PURE__*/styled('div', {
|
|
|
3942
3950
|
var LiquiditySourceContainer = /*#__PURE__*/styled(BaseContainer, {
|
|
3943
3951
|
display: 'flex',
|
|
3944
3952
|
justifyContent: 'space-between',
|
|
3945
|
-
marginTop: '$
|
|
3953
|
+
marginTop: '$16',
|
|
3946
3954
|
cursor: 'pointer'
|
|
3947
3955
|
});
|
|
3948
3956
|
var InfiniteContainer = /*#__PURE__*/styled(BaseContainer, {
|
|
3949
3957
|
display: 'flex',
|
|
3950
3958
|
justifyContent: 'space-between',
|
|
3951
|
-
marginTop: '$
|
|
3959
|
+
marginTop: '$16'
|
|
3952
3960
|
});
|
|
3953
3961
|
var StyledAngleRight = /*#__PURE__*/styled(AngleRightIcon, {
|
|
3954
3962
|
marginLeft: '$8'
|
|
@@ -3959,7 +3967,7 @@ var LiquiditySourceNumber = /*#__PURE__*/styled('div', {
|
|
|
3959
3967
|
justifyContent: 'center'
|
|
3960
3968
|
});
|
|
3961
3969
|
var ThemesContainer = /*#__PURE__*/styled(BaseContainer, {
|
|
3962
|
-
marginTop: '$
|
|
3970
|
+
marginTop: '$16'
|
|
3963
3971
|
});
|
|
3964
3972
|
var Head = /*#__PURE__*/styled('div', {
|
|
3965
3973
|
display: 'flex',
|
|
@@ -4081,14 +4089,14 @@ var MainContainer$2 = /*#__PURE__*/styled('div', {
|
|
|
4081
4089
|
width: '100%',
|
|
4082
4090
|
minWidth: '375px',
|
|
4083
4091
|
maxWidth: '512px',
|
|
4084
|
-
maxHeight: '595px',
|
|
4085
4092
|
padding: '$16',
|
|
4086
4093
|
boxSizing: 'border-box',
|
|
4087
4094
|
backgroundColor: '$background',
|
|
4088
4095
|
variants: {
|
|
4089
4096
|
fixedHeight: {
|
|
4090
4097
|
"true": {
|
|
4091
|
-
height: '595px'
|
|
4098
|
+
height: '595px',
|
|
4099
|
+
maxHeight: '595px'
|
|
4092
4100
|
},
|
|
4093
4101
|
"false": {
|
|
4094
4102
|
height: 'auto'
|
|
@@ -4114,6 +4122,9 @@ var TokenContainer = /*#__PURE__*/styled('div', {
|
|
|
4114
4122
|
width: '160px',
|
|
4115
4123
|
'& .amount': {
|
|
4116
4124
|
fontWeight: 'bold'
|
|
4125
|
+
},
|
|
4126
|
+
'& .estimated': {
|
|
4127
|
+
color: '$neutrals600'
|
|
4117
4128
|
}
|
|
4118
4129
|
});
|
|
4119
4130
|
var TokenImage = /*#__PURE__*/styled('div', {
|
|
@@ -4134,23 +4145,30 @@ var TokenImage = /*#__PURE__*/styled('div', {
|
|
|
4134
4145
|
}
|
|
4135
4146
|
});
|
|
4136
4147
|
function Token(props) {
|
|
4148
|
+
var _props$data = props.data,
|
|
4149
|
+
token = _props$data.token,
|
|
4150
|
+
blockchain = _props$data.blockchain,
|
|
4151
|
+
amount = _props$data.amount,
|
|
4152
|
+
estimatedAmount = _props$data.estimatedAmount;
|
|
4137
4153
|
return React__default.createElement(TokenContainer, null, React__default.createElement(TokenImage, null, React__default.createElement(Image, {
|
|
4138
|
-
src:
|
|
4154
|
+
src: token.logo,
|
|
4139
4155
|
alt: "",
|
|
4140
4156
|
size: 24
|
|
4141
4157
|
}), React__default.createElement("div", {
|
|
4142
4158
|
className: "overlay"
|
|
4143
4159
|
}, React__default.createElement(Image, {
|
|
4144
|
-
src:
|
|
4145
|
-
alt:
|
|
4160
|
+
src: blockchain.logo,
|
|
4161
|
+
alt: blockchain.name,
|
|
4146
4162
|
size: 12
|
|
4147
4163
|
}))), React__default.createElement(Spacer, {
|
|
4148
4164
|
size: 8
|
|
4149
|
-
}), React__default.createElement("span", {
|
|
4165
|
+
}), !!amount && React__default.createElement("span", {
|
|
4150
4166
|
className: "amount"
|
|
4151
|
-
}, props.data.amount), React__default.createElement(
|
|
4167
|
+
}, props.data.amount), !amount && estimatedAmount && React__default.createElement("span", {
|
|
4168
|
+
className: "amount estimated"
|
|
4169
|
+
}, props.data.estimatedAmount), React__default.createElement(Spacer, {
|
|
4152
4170
|
size: 4
|
|
4153
|
-
}),
|
|
4171
|
+
}), token.symbol);
|
|
4154
4172
|
}
|
|
4155
4173
|
|
|
4156
4174
|
var Container$3 = /*#__PURE__*/styled('div', {
|
|
@@ -4169,12 +4187,6 @@ var Container$3 = /*#__PURE__*/styled('div', {
|
|
|
4169
4187
|
fontWeight: 'bold',
|
|
4170
4188
|
fontSize: '$12'
|
|
4171
4189
|
},
|
|
4172
|
-
'&.running': {
|
|
4173
|
-
color: '$foreground'
|
|
4174
|
-
},
|
|
4175
|
-
'&.failed,&.success': {
|
|
4176
|
-
color: '$neutrals600'
|
|
4177
|
-
},
|
|
4178
4190
|
'&.failed .status': {
|
|
4179
4191
|
color: '$error'
|
|
4180
4192
|
},
|
|
@@ -4204,7 +4216,6 @@ function SwapDetail(_ref) {
|
|
|
4204
4216
|
symbol: firstStep.fromSymbol
|
|
4205
4217
|
},
|
|
4206
4218
|
blockchain: {
|
|
4207
|
-
// @ts-ignore
|
|
4208
4219
|
logo: firstStep.fromBlockchainLogo || '',
|
|
4209
4220
|
name: firstStep.fromBlockchain
|
|
4210
4221
|
},
|
|
@@ -4223,11 +4234,11 @@ function SwapDetail(_ref) {
|
|
|
4223
4234
|
symbol: lastStep.toSymbol
|
|
4224
4235
|
},
|
|
4225
4236
|
blockchain: {
|
|
4226
|
-
|
|
4227
|
-
logo: lastStep.toBlockchainLogo,
|
|
4237
|
+
logo: lastStep.toBlockchainLogo || '',
|
|
4228
4238
|
name: lastStep.toBlockchain
|
|
4229
4239
|
},
|
|
4230
|
-
amount: limitDecimalPlaces(lastStep.outputAmount ||
|
|
4240
|
+
amount: limitDecimalPlaces(lastStep.outputAmount || ''),
|
|
4241
|
+
estimatedAmount: limitDecimalPlaces(lastStep.expectedOutputAmountHumanReadable || '')
|
|
4231
4242
|
}
|
|
4232
4243
|
})), React__default.createElement("div", {
|
|
4233
4244
|
className: "status"
|
|
@@ -4401,7 +4412,7 @@ function Drawer(props) {
|
|
|
4401
4412
|
anchor: anchor,
|
|
4402
4413
|
style: containerStyle
|
|
4403
4414
|
}, React__default.createElement(DrawerHeader, null, React__default.createElement(Typography, {
|
|
4404
|
-
variant: "
|
|
4415
|
+
variant: "h6"
|
|
4405
4416
|
}, title), showClose && React__default.createElement(CloseIcon, {
|
|
4406
4417
|
size: 24,
|
|
4407
4418
|
onClick: onClose
|
|
@@ -4478,17 +4489,25 @@ function ConfirmSwap(props) {
|
|
|
4478
4489
|
}, 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
4490
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
|
|
4480
4491
|
direction: "vertical"
|
|
4481
|
-
}), React__default.createElement(Alert, {
|
|
4492
|
+
}), React__default.createElement(Alert, Object.assign({
|
|
4482
4493
|
type: "error",
|
|
4483
4494
|
key: index
|
|
4484
|
-
}, error
|
|
4495
|
+
}, typeof error === 'string' ? {
|
|
4496
|
+
title: error
|
|
4497
|
+
} : {
|
|
4498
|
+
children: error
|
|
4499
|
+
})));
|
|
4485
4500
|
}), warnings == null ? void 0 : warnings.map(function (warning, index) {
|
|
4486
4501
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Spacer, {
|
|
4487
4502
|
direction: "vertical"
|
|
4488
|
-
}), React__default.createElement(Alert, {
|
|
4503
|
+
}), React__default.createElement(Alert, Object.assign({
|
|
4489
4504
|
type: "warning",
|
|
4490
4505
|
key: index
|
|
4491
|
-
}, warning
|
|
4506
|
+
}, typeof warning === 'string' ? {
|
|
4507
|
+
title: warning
|
|
4508
|
+
} : {
|
|
4509
|
+
children: warning
|
|
4510
|
+
})));
|
|
4492
4511
|
}))), props.previewInputs || props.previewRoutes ? React__default.createElement(Section, null, props.previewInputs, !!props.previewRoutes ? React__default.createElement(Spacer, {
|
|
4493
4512
|
size: 16,
|
|
4494
4513
|
direction: "vertical"
|
|
@@ -4508,7 +4527,7 @@ function ConfirmSwap(props) {
|
|
|
4508
4527
|
variant: "body2"
|
|
4509
4528
|
}, "Your ", wallet, " Wallet")), list.length === 0 && React__default.createElement(React__default.Fragment, null, React__default.createElement(AlertContainer, null, React__default.createElement(Alert, {
|
|
4510
4529
|
type: "error"
|
|
4511
|
-
}, "You need to connect a compatible wallet with ", wallet)), (isExperimentalChain == null ? void 0 : isExperimentalChain(wallet)) && React__default.createElement(Button, {
|
|
4530
|
+
}, "You need to connect a compatible wallet with ", wallet, ".")), (isExperimentalChain == null ? void 0 : isExperimentalChain(wallet)) && React__default.createElement(Button, {
|
|
4512
4531
|
variant: "contained",
|
|
4513
4532
|
type: "primary",
|
|
4514
4533
|
align: "grow",
|
|
@@ -4552,7 +4571,6 @@ var SwapsGroup = function SwapsGroup(props) {
|
|
|
4552
4571
|
key: index
|
|
4553
4572
|
}, React__default.createElement(Typography, {
|
|
4554
4573
|
variant: "body2",
|
|
4555
|
-
color: "neutrals600",
|
|
4556
4574
|
className: "group-title"
|
|
4557
4575
|
}, group.title), group.swaps.map(function (swap, index) {
|
|
4558
4576
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(SwapDetail, {
|
|
@@ -4577,7 +4595,7 @@ function History(_ref) {
|
|
|
4577
4595
|
return React__default.createElement(SecondaryPage, {
|
|
4578
4596
|
onBack: onBack,
|
|
4579
4597
|
textField: true,
|
|
4580
|
-
textFieldPlaceholder: "Search by
|
|
4598
|
+
textFieldPlaceholder: "Search by Network, Token or Request ID",
|
|
4581
4599
|
title: "Swaps"
|
|
4582
4600
|
}, function (searchedFor) {
|
|
4583
4601
|
var filterSwaps = filteredHistory(list, searchedFor);
|
|
@@ -4631,21 +4649,21 @@ var SwapMessages = function SwapMessages(props) {
|
|
|
4631
4649
|
onClick: props.switchNetwork
|
|
4632
4650
|
}, "Change network to ", currentStepBlockchain)
|
|
4633
4651
|
}), !!detailedMessage.content ? React__default.createElement(DetailedMessage, null, React__default.createElement(Typography, {
|
|
4634
|
-
variant: "
|
|
4652
|
+
variant: "body3"
|
|
4635
4653
|
}, 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, {
|
|
4636
|
-
variant: "
|
|
4654
|
+
variant: "body3"
|
|
4637
4655
|
}, "Don't worry, your fund is\xA0"), React__default.createElement(SuccessText, {
|
|
4638
|
-
variant: "
|
|
4656
|
+
variant: "body3"
|
|
4639
4657
|
}, React__default.createElement("b", null, "Safe"))), React__default.createElement("p", null, React__default.createElement(Typography, {
|
|
4640
|
-
variant: "
|
|
4658
|
+
variant: "body3"
|
|
4641
4659
|
}, "It is converted to \xA0", React__default.createElement("u", null, lastConvertedTokenInFailedSwap.outputAmount), "\xA0"), React__default.createElement(SuccessText, {
|
|
4642
|
-
variant: "
|
|
4660
|
+
variant: "body3"
|
|
4643
4661
|
}, React__default.createElement("b", null, lastConvertedTokenInFailedSwap.symbol, "\xA0")), React__default.createElement(Typography, {
|
|
4644
|
-
variant: "
|
|
4662
|
+
variant: "body3"
|
|
4645
4663
|
}, "on your\xA0"), React__default.createElement(SuccessText, {
|
|
4646
|
-
variant: "
|
|
4664
|
+
variant: "body3"
|
|
4647
4665
|
}, React__default.createElement("b", null, lastConvertedTokenInFailedSwap.blockchain, "\xA0")), React__default.createElement(Typography, {
|
|
4648
|
-
variant: "
|
|
4666
|
+
variant: "body3"
|
|
4649
4667
|
}, "wallet"))));
|
|
4650
4668
|
};
|
|
4651
4669
|
|
|
@@ -4668,7 +4686,7 @@ var SwapperContainer$1 = /*#__PURE__*/styled('div', {
|
|
|
4668
4686
|
}
|
|
4669
4687
|
});
|
|
4670
4688
|
var FeeContainer = /*#__PURE__*/styled('div', {
|
|
4671
|
-
paddingLeft: '$
|
|
4689
|
+
paddingLeft: '$16'
|
|
4672
4690
|
});
|
|
4673
4691
|
var Fee = /*#__PURE__*/styled('div', {
|
|
4674
4692
|
display: 'flex',
|
|
@@ -4694,8 +4712,7 @@ var ArrowDown = /*#__PURE__*/styled('div', {
|
|
|
4694
4712
|
});
|
|
4695
4713
|
var StyledAnchor = /*#__PURE__*/styled('a', {
|
|
4696
4714
|
color: '$primary',
|
|
4697
|
-
fontWeight: '$600'
|
|
4698
|
-
marginLeft: '$12'
|
|
4715
|
+
fontWeight: '$600'
|
|
4699
4716
|
});
|
|
4700
4717
|
var SwapInfoContainer = /*#__PURE__*/styled('div', {
|
|
4701
4718
|
display: 'flex',
|
|
@@ -4704,11 +4721,14 @@ var SwapInfoContainer = /*#__PURE__*/styled('div', {
|
|
|
4704
4721
|
borderBottom: '1px solid $neutrals300'
|
|
4705
4722
|
});
|
|
4706
4723
|
var InternalDetailsContainer = /*#__PURE__*/styled('div', {
|
|
4707
|
-
display: 'flex'
|
|
4724
|
+
display: 'flex',
|
|
4725
|
+
'.details': {
|
|
4726
|
+
padding: '$8 0'
|
|
4727
|
+
}
|
|
4708
4728
|
});
|
|
4709
4729
|
var InternalDetail = /*#__PURE__*/styled('div', {
|
|
4710
4730
|
display: 'flex',
|
|
4711
|
-
|
|
4731
|
+
margin: '$12 0 $12 $20'
|
|
4712
4732
|
});
|
|
4713
4733
|
var DescriptionContainer = /*#__PURE__*/styled('div', {
|
|
4714
4734
|
display: 'flex',
|
|
@@ -4716,7 +4736,7 @@ var DescriptionContainer = /*#__PURE__*/styled('div', {
|
|
|
4716
4736
|
});
|
|
4717
4737
|
var Description = /*#__PURE__*/styled(Typography, {
|
|
4718
4738
|
color: '$success',
|
|
4719
|
-
|
|
4739
|
+
paddingLeft: '$4'
|
|
4720
4740
|
});
|
|
4721
4741
|
var Line$1 = /*#__PURE__*/styled('div', {
|
|
4722
4742
|
width: '0',
|
|
@@ -4737,7 +4757,8 @@ var Row$2 = /*#__PURE__*/styled('div', {
|
|
|
4737
4757
|
'.value': {
|
|
4738
4758
|
display: 'flex',
|
|
4739
4759
|
alignItems: 'center',
|
|
4740
|
-
color: '$neutrals800'
|
|
4760
|
+
color: '$neutrals800',
|
|
4761
|
+
justifyContent: 'flex-end'
|
|
4741
4762
|
},
|
|
4742
4763
|
'.status': {
|
|
4743
4764
|
fontWeight: 'bold',
|
|
@@ -4751,7 +4772,6 @@ var Row$2 = /*#__PURE__*/styled('div', {
|
|
|
4751
4772
|
}
|
|
4752
4773
|
});
|
|
4753
4774
|
var RequestId = /*#__PURE__*/styled('div', {
|
|
4754
|
-
width: '150px',
|
|
4755
4775
|
whiteSpace: 'nowrap',
|
|
4756
4776
|
overflow: 'hidden',
|
|
4757
4777
|
textOverflow: 'ellipsis',
|
|
@@ -4760,13 +4780,13 @@ var RequestId = /*#__PURE__*/styled('div', {
|
|
|
4760
4780
|
}
|
|
4761
4781
|
});
|
|
4762
4782
|
var ExtraDetails = /*#__PURE__*/styled('div', {
|
|
4763
|
-
padding: '
|
|
4783
|
+
padding: '0',
|
|
4764
4784
|
color: '$neutrals600',
|
|
4765
|
-
fontSize: '$
|
|
4785
|
+
fontSize: '$10'
|
|
4766
4786
|
});
|
|
4767
4787
|
var SwapFlowContainer = /*#__PURE__*/styled('div', {
|
|
4768
4788
|
overflowY: 'auto',
|
|
4769
|
-
|
|
4789
|
+
padding: '$8 $4 $2 $4'
|
|
4770
4790
|
});
|
|
4771
4791
|
function SwapHistory(props) {
|
|
4772
4792
|
var pendingSwap = props.pendingSwap,
|
|
@@ -4797,7 +4817,7 @@ function SwapHistory(props) {
|
|
|
4797
4817
|
}, "Try again"))
|
|
4798
4818
|
}, React__default.createElement("div", null, React__default.createElement(SwapInfoContainer, null, React__default.createElement(Row$2, null, React__default.createElement("div", {
|
|
4799
4819
|
className: "name"
|
|
4800
|
-
}, "Request
|
|
4820
|
+
}, "Request Id:", React__default.createElement("span", {
|
|
4801
4821
|
className: "value requestId",
|
|
4802
4822
|
onClick: onCopy.bind(null, pendingSwap == null ? void 0 : pendingSwap.requestId)
|
|
4803
4823
|
}, React__default.createElement(RequestId, null, pendingSwap == null ? void 0 : pendingSwap.requestId), React__default.createElement(Spacer, {
|
|
@@ -4806,15 +4826,15 @@ function SwapHistory(props) {
|
|
|
4806
4826
|
type: "primary",
|
|
4807
4827
|
variant: "ghost",
|
|
4808
4828
|
size: "compact"
|
|
4809
|
-
}, isCopied ? 'Copied!' : 'Copy'))), React__default.createElement(
|
|
4829
|
+
}, isCopied ? 'Copied!' : 'Copy'))), React__default.createElement("div", {
|
|
4810
4830
|
className: "name"
|
|
4811
|
-
},
|
|
4831
|
+
}, React__default.createElement("span", {
|
|
4812
4832
|
className: "value status " + ((pendingSwap == null ? void 0 : pendingSwap.status) || '')
|
|
4813
4833
|
}, pendingSwap == null ? void 0 : pendingSwap.status, (pendingSwap == null ? void 0 : pendingSwap.status) === 'running' && React__default.createElement(Spinner, {
|
|
4814
4834
|
size: 16,
|
|
4815
4835
|
color: "primary"
|
|
4816
|
-
}))
|
|
4817
|
-
size:
|
|
4836
|
+
})), React__default.createElement(ExtraDetails, null, date))))), React__default.createElement(SwapFlowContainer, null, extraMessageProps.shortMessage && React__default.createElement(SwapMessages, Object.assign({}, extraMessageProps)), React__default.createElement(Divider, {
|
|
4837
|
+
size: 16
|
|
4818
4838
|
}), pendingSwap == null ? void 0 : pendingSwap.steps.map(function (step, index) {
|
|
4819
4839
|
return React__default.createElement("div", {
|
|
4820
4840
|
key: index
|
|
@@ -4833,29 +4853,33 @@ function SwapHistory(props) {
|
|
|
4833
4853
|
size: 20
|
|
4834
4854
|
}), React__default.createElement(FeeContainer, null, React__default.createElement(Typography, {
|
|
4835
4855
|
variant: "caption"
|
|
4836
|
-
}, step.swapperType
|
|
4856
|
+
}, step.swapperType === 'DEX' ? 'Swap' : 'Bridge', " via", ' ', step.swapperId), React__default.createElement(Fee, null, React__default.createElement(GasIcon, null), React__default.createElement(Typography, {
|
|
4837
4857
|
variant: "caption"
|
|
4838
4858
|
}, "\xA0 $", step.feeInUsd, " estimated gas fee")))), React__default.createElement("div", {
|
|
4839
4859
|
style: {
|
|
4840
4860
|
display: 'flex'
|
|
4841
4861
|
}
|
|
4842
|
-
}, React__default.createElement(InternalDetailsContainer, null, React__default.createElement(Line$1, null), React__default.createElement("div",
|
|
4862
|
+
}, React__default.createElement(InternalDetailsContainer, null, React__default.createElement(Line$1, null), React__default.createElement("div", {
|
|
4863
|
+
className: "details"
|
|
4864
|
+
}, !!step.explorerUrl && React__default.createElement("div", null, step.explorerUrl.map(function (item, index) {
|
|
4843
4865
|
return React__default.createElement(InternalDetail, {
|
|
4844
4866
|
key: index
|
|
4845
|
-
}, React__default.createElement(DescriptionContainer, null, React__default.createElement(
|
|
4846
|
-
|
|
4867
|
+
}, React__default.createElement(DescriptionContainer, null, React__default.createElement(Divider, {
|
|
4868
|
+
size: 4
|
|
4869
|
+
}), React__default.createElement(CheckCircleIcon, {
|
|
4870
|
+
color: "primary"
|
|
4847
4871
|
}), React__default.createElement(Description, {
|
|
4848
|
-
variant: "
|
|
4849
|
-
},
|
|
4872
|
+
variant: "body3"
|
|
4873
|
+
}, React__default.createElement(StyledAnchor, {
|
|
4850
4874
|
href: item.url,
|
|
4851
4875
|
target: "_blank",
|
|
4852
4876
|
rel: "noreferrer",
|
|
4853
4877
|
key: index
|
|
4854
|
-
}, "
|
|
4878
|
+
}, !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
4879
|
})), step.status === 'failed' && React__default.createElement(InternalDetail, null, React__default.createElement(DescriptionContainer, null, React__default.createElement(InfoCircleIcon, {
|
|
4856
4880
|
color: "error"
|
|
4857
4881
|
}), React__default.createElement(Description, {
|
|
4858
|
-
variant: "
|
|
4882
|
+
variant: "body3",
|
|
4859
4883
|
color: "$error500"
|
|
4860
4884
|
}, "Step failed")))))), index + 1 === pendingSwap.steps.length && React__default.createElement(ArrowDown, null), React__default.createElement(StepDetail, {
|
|
4861
4885
|
logo: step.toLogo,
|
|
@@ -4876,10 +4900,9 @@ function SwapHistory(props) {
|
|
|
4876
4900
|
title: "Cancel Progress",
|
|
4877
4901
|
content: React__default.createElement(Alert, {
|
|
4878
4902
|
type: "warning"
|
|
4879
|
-
}, React__default.createElement(
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
}), React__default.createElement("p", null, "If you have already signed your transaction to blockchain, you should wait for that to complete or rollback")),
|
|
4903
|
+
}, React__default.createElement(Typography, {
|
|
4904
|
+
variant: "body2"
|
|
4905
|
+
}, "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
4906
|
footer: React__default.createElement("div", {
|
|
4884
4907
|
style: {
|
|
4885
4908
|
display: 'flex',
|