@rango-dev/ui 0.1.11-next.10 → 0.1.11-next.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.
- package/dist/ui.cjs.development.js +17 -19
- 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 +17 -19
- package/dist/ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Alert/Alert.tsx +2 -2
- package/src/components/Typography/Typography.tsx +3 -3
- package/src/containers/SwapHistory/SwapHistory.tsx +5 -4
- package/src/containers/SwapHistory/SwapMessages.tsx +8 -8
package/package.json
CHANGED
|
@@ -72,7 +72,7 @@ export function Alert(props: PropsWithChildren<PropTypes>) {
|
|
|
72
72
|
{type === 'success' && <CheckCircleIcon color={type} size={24} />}
|
|
73
73
|
{type === 'warning' && <WarningIcon color={type} size={24} />}
|
|
74
74
|
{type === 'error' && <InfoCircleIcon color={type} size={24} />}
|
|
75
|
-
<Spacer size={
|
|
75
|
+
<Spacer size={4} />
|
|
76
76
|
</div>
|
|
77
77
|
</>
|
|
78
78
|
)}
|
|
@@ -90,7 +90,7 @@ export function Alert(props: PropsWithChildren<PropTypes>) {
|
|
|
90
90
|
<Typography className="title" variant="title" color={type}>
|
|
91
91
|
{title}
|
|
92
92
|
</Typography>
|
|
93
|
-
{!!children && <Spacer size={
|
|
93
|
+
{!!children && <Spacer size={4} direction="vertical" />}
|
|
94
94
|
</>
|
|
95
95
|
)}
|
|
96
96
|
{children}
|
|
@@ -53,6 +53,7 @@ export const ErrorMsg = styled(Typography, {
|
|
|
53
53
|
|
|
54
54
|
export const FeeContainer = styled('div', {
|
|
55
55
|
paddingLeft: '$16',
|
|
56
|
+
color: '$neutrals800'
|
|
56
57
|
});
|
|
57
58
|
|
|
58
59
|
export const Fee = styled('div', {
|
|
@@ -298,13 +299,13 @@ export function SwapHistory(props: PropTypes) {
|
|
|
298
299
|
/>
|
|
299
300
|
|
|
300
301
|
<FeeContainer>
|
|
301
|
-
<Typography variant="
|
|
302
|
+
<Typography variant="body2">
|
|
302
303
|
{step.swapperType === 'DEX' ? 'Swap' : 'Bridge'} via{' '}
|
|
303
304
|
{step.swapperId}
|
|
304
305
|
</Typography>
|
|
305
306
|
<Fee>
|
|
306
307
|
<GasIcon />
|
|
307
|
-
<Typography variant="
|
|
308
|
+
<Typography variant="body2">
|
|
308
309
|
${step.feeInUsd} estimated gas fee
|
|
309
310
|
</Typography>
|
|
310
311
|
</Fee>
|
|
@@ -325,7 +326,7 @@ export function SwapHistory(props: PropTypes) {
|
|
|
325
326
|
<DescriptionContainer>
|
|
326
327
|
<Divider size={4} />
|
|
327
328
|
<CheckCircleIcon color="primary" />
|
|
328
|
-
<Description variant="
|
|
329
|
+
<Description variant="body2">
|
|
329
330
|
<StyledAnchor
|
|
330
331
|
href={item.url}
|
|
331
332
|
target="_blank"
|
|
@@ -353,7 +354,7 @@ export function SwapHistory(props: PropTypes) {
|
|
|
353
354
|
<InternalDetail>
|
|
354
355
|
<DescriptionContainer>
|
|
355
356
|
<InfoCircleIcon color="error" />
|
|
356
|
-
<Description variant="
|
|
357
|
+
<Description variant="body2" color="$error500">
|
|
357
358
|
Step failed
|
|
358
359
|
</Description>
|
|
359
360
|
</DescriptionContainer>
|
|
@@ -75,7 +75,7 @@ export const SwapMessages: React.FC<PropTypes> = (props) => {
|
|
|
75
75
|
>
|
|
76
76
|
{!!detailedMessage.content ? (
|
|
77
77
|
<DetailedMessage>
|
|
78
|
-
<Typography variant="
|
|
78
|
+
<Typography variant="body2">
|
|
79
79
|
{shouldShowMoreDetailsButton && !expandedMessage
|
|
80
80
|
? detailedMessage.content.substring(0, allowedNumberOfChars) +
|
|
81
81
|
(allowedNumberOfChars > 0 ? '...' : '')
|
|
@@ -86,28 +86,28 @@ export const SwapMessages: React.FC<PropTypes> = (props) => {
|
|
|
86
86
|
{!!lastConvertedTokenInFailedSwap && (
|
|
87
87
|
<>
|
|
88
88
|
<p>
|
|
89
|
-
<Typography variant="
|
|
89
|
+
<Typography variant="body2">
|
|
90
90
|
Don't worry, your fund is
|
|
91
91
|
</Typography>
|
|
92
|
-
<SuccessText variant="
|
|
92
|
+
<SuccessText variant="body2">
|
|
93
93
|
<b>Safe</b>
|
|
94
94
|
</SuccessText>
|
|
95
95
|
</p>
|
|
96
96
|
|
|
97
97
|
<p>
|
|
98
|
-
<Typography variant="
|
|
98
|
+
<Typography variant="body2">
|
|
99
99
|
It is converted to
|
|
100
100
|
<u>{lastConvertedTokenInFailedSwap.outputAmount}</u>
|
|
101
101
|
|
|
102
102
|
</Typography>
|
|
103
|
-
<SuccessText variant="
|
|
103
|
+
<SuccessText variant="body2">
|
|
104
104
|
<b>{lastConvertedTokenInFailedSwap.symbol} </b>
|
|
105
105
|
</SuccessText>
|
|
106
|
-
<Typography variant="
|
|
107
|
-
<SuccessText variant="
|
|
106
|
+
<Typography variant="body2">on your </Typography>
|
|
107
|
+
<SuccessText variant="body2">
|
|
108
108
|
<b>{lastConvertedTokenInFailedSwap.blockchain} </b>
|
|
109
109
|
</SuccessText>
|
|
110
|
-
<Typography variant="
|
|
110
|
+
<Typography variant="body2">wallet</Typography>
|
|
111
111
|
</p>
|
|
112
112
|
</>
|
|
113
113
|
)}
|