@rango-dev/ui 0.1.11-next.3 → 0.1.11-next.4
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/Icon/types.d.ts +1 -0
- package/dist/components/common/Image.d.ts +6 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/containers/SwapHistory/SwapHistory.d.ts +0 -1
- package/dist/ui.cjs.development.js +107 -88
- 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 +107 -89
- package/dist/ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/BestRoute/BestRoute.tsx +2 -5
- package/src/components/BlockchainsList/BlockchainsList.tsx +8 -6
- package/src/components/Icon/common.ts +10 -0
- package/src/components/Icon/types.tsx +1 -0
- package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +8 -5
- package/src/components/SelectableWalletList/SelectableWalletList.tsx +2 -1
- package/src/components/StepDetail/StepDetail.tsx +6 -13
- package/src/components/SwapDetail/Token.tsx +7 -9
- package/src/components/TokenList/TokenItem.tsx +8 -5
- package/src/components/Wallet/Wallet.tsx +8 -5
- package/src/components/common/Image.tsx +27 -0
- package/src/components/common/index.ts +1 -0
- package/src/containers/History/History.tsx +1 -1
- package/src/containers/SwapHistory/SwapHistory.tsx +5 -10
|
@@ -2,5 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
export interface IconProps extends React.SVGAttributes<SVGElement> {
|
|
3
3
|
size?: 12 | 16 | 18 | 20 | 24 | 28 | 32 | 36 | 40;
|
|
4
4
|
color?: 'primary' | 'error' | 'warning' | 'success' | 'black' | 'white';
|
|
5
|
+
disabled?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare type Icon = 'DeleteCircleIcon' | 'CheckSquareIcon' | 'AddIcon' | 'InfoCircleIcon' | 'AddCircleIcon' | 'MinusCircleIcon' | 'CheckCircleIcon' | 'CheckIcon' | 'BanIcon' | 'WarningIcon' | 'HistoryIcon' | 'GasIcon' | 'SettingsIcon' | 'TrashIcon' | 'SearchMinusIcon' | 'SearchIcon' | 'AngleRightIcon' | 'AngleUpIcon' | 'AngleDownIcon' | 'AngleLeftIcon' | 'DownloadIcon' | 'RetryRightIcon' | 'RetryLeftIcon' | 'TryAgainIcon' | 'VerticalSwapIcon' | 'HorizontalSwapIcon' | 'RetryIcon' | 'WalletIcon' | 'AddWalletIcon' | 'DeleteWalletIcon' | 'CheckWalletIcon' | 'SwapWalletIcon' | 'BagIcon' | 'TimeIcon' | 'CloseIcon' | 'SignatureIcon' | 'CopyIcon';
|
|
@@ -5,7 +5,6 @@ export declare const SwapperContainer: any;
|
|
|
5
5
|
export declare const BodyError: any;
|
|
6
6
|
export declare const ErrorMsg: any;
|
|
7
7
|
export declare const Fee: any;
|
|
8
|
-
export declare const SwapperLogo: any;
|
|
9
8
|
export declare const RelativeContainer: any;
|
|
10
9
|
export declare const Footer: any;
|
|
11
10
|
export declare const Dot: any;
|
|
@@ -225,6 +225,11 @@ var SvgWithStrokeColor = /*#__PURE__*/styled('svg', {
|
|
|
225
225
|
}, _white["." + darkTheme + " &"] = {
|
|
226
226
|
$$color: '$colors$foreground'
|
|
227
227
|
}, _white.stroke = '$$color', _white)
|
|
228
|
+
},
|
|
229
|
+
disabled: {
|
|
230
|
+
"true": {
|
|
231
|
+
stroke: '$neutrals400'
|
|
232
|
+
}
|
|
228
233
|
}
|
|
229
234
|
}
|
|
230
235
|
});
|
|
@@ -254,6 +259,11 @@ var SvgWithFillColor = /*#__PURE__*/styled('svg', {
|
|
|
254
259
|
}, _white2["." + darkTheme + " &"] = {
|
|
255
260
|
$$color: '$colors$foreground'
|
|
256
261
|
}, _white2.fill = '$$color', _white2)
|
|
262
|
+
},
|
|
263
|
+
disabled: {
|
|
264
|
+
"true": {
|
|
265
|
+
stroke: '$neutrals400'
|
|
266
|
+
}
|
|
257
267
|
}
|
|
258
268
|
}
|
|
259
269
|
});
|
|
@@ -1604,6 +1614,37 @@ Typography.toString = function () {
|
|
|
1604
1614
|
return '._typography';
|
|
1605
1615
|
};
|
|
1606
1616
|
|
|
1617
|
+
var FilledCircle = /*#__PURE__*/styled('span', {
|
|
1618
|
+
width: '10px',
|
|
1619
|
+
height: '10px',
|
|
1620
|
+
backgroundColor: '$primary',
|
|
1621
|
+
borderRadius: '99999px'
|
|
1622
|
+
});
|
|
1623
|
+
|
|
1624
|
+
var _excluded$E = ["size"];
|
|
1625
|
+
var ImageContainer = /*#__PURE__*/styled('div', {
|
|
1626
|
+
display: 'flex',
|
|
1627
|
+
justifyContent: 'center',
|
|
1628
|
+
alignItems: 'center',
|
|
1629
|
+
'.image': {
|
|
1630
|
+
width: '100%',
|
|
1631
|
+
height: '100%',
|
|
1632
|
+
objectFit: 'contain'
|
|
1633
|
+
}
|
|
1634
|
+
});
|
|
1635
|
+
function Image(props) {
|
|
1636
|
+
var size = props.size,
|
|
1637
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded$E);
|
|
1638
|
+
return React__default.createElement(ImageContainer, {
|
|
1639
|
+
css: {
|
|
1640
|
+
width: size + 'px',
|
|
1641
|
+
height: size + 'px'
|
|
1642
|
+
}
|
|
1643
|
+
}, React__default.createElement("img", Object.assign({
|
|
1644
|
+
className: "image"
|
|
1645
|
+
}, otherProps)));
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1607
1648
|
var StepLogoContainer = /*#__PURE__*/styled('div', {
|
|
1608
1649
|
position: 'relative',
|
|
1609
1650
|
width: '$28',
|
|
@@ -1617,25 +1658,18 @@ var StepLogoContainer = /*#__PURE__*/styled('div', {
|
|
|
1617
1658
|
}
|
|
1618
1659
|
}
|
|
1619
1660
|
});
|
|
1620
|
-
var Logo = /*#__PURE__*/styled('img', {
|
|
1621
|
-
width: '$28',
|
|
1622
|
-
height: '$28',
|
|
1623
|
-
borderRadius: '50%'
|
|
1624
|
-
});
|
|
1625
1661
|
var ChainLogo = /*#__PURE__*/styled('div', {
|
|
1626
1662
|
position: 'absolute',
|
|
1627
1663
|
right: -4,
|
|
1628
1664
|
bottom: -4,
|
|
1629
1665
|
width: '$16',
|
|
1630
1666
|
height: '$16',
|
|
1631
|
-
padding: '$2',
|
|
1632
1667
|
borderRadius: '50%',
|
|
1668
|
+
display: 'flex',
|
|
1669
|
+
justifyContent: 'center',
|
|
1670
|
+
alignItems: 'center',
|
|
1633
1671
|
backgroundColor: '$background',
|
|
1634
|
-
border: '1px solid $neutrals400'
|
|
1635
|
-
img: {
|
|
1636
|
-
width: '100%',
|
|
1637
|
-
display: 'block'
|
|
1638
|
-
}
|
|
1672
|
+
border: '1px solid $neutrals400'
|
|
1639
1673
|
});
|
|
1640
1674
|
var StepContainer = /*#__PURE__*/styled('div', {
|
|
1641
1675
|
display: 'flex',
|
|
@@ -1683,12 +1717,14 @@ function StepDetail(_ref) {
|
|
|
1683
1717
|
direction: direction
|
|
1684
1718
|
}, React__default.createElement(StepLogoContainer, {
|
|
1685
1719
|
direction: direction
|
|
1686
|
-
}, React__default.createElement(
|
|
1720
|
+
}, React__default.createElement(Image, {
|
|
1687
1721
|
src: logo,
|
|
1688
|
-
alt: symbol
|
|
1689
|
-
|
|
1722
|
+
alt: symbol,
|
|
1723
|
+
size: 28
|
|
1724
|
+
}), React__default.createElement(ChainLogo, null, React__default.createElement(Image, {
|
|
1690
1725
|
src: chainLogo,
|
|
1691
|
-
alt: blockchain
|
|
1726
|
+
alt: blockchain,
|
|
1727
|
+
size: 12
|
|
1692
1728
|
}))), React__default.createElement(Detail, {
|
|
1693
1729
|
pl: direction === 'horizontal'
|
|
1694
1730
|
}, React__default.createElement(Typography, {
|
|
@@ -1956,10 +1992,6 @@ var HR = /*#__PURE__*/styled('hr', {
|
|
|
1956
1992
|
border: '1px solid $neutrals400',
|
|
1957
1993
|
margin: '$8 0'
|
|
1958
1994
|
});
|
|
1959
|
-
var SwapperLogo = /*#__PURE__*/styled('img', {
|
|
1960
|
-
width: '$16',
|
|
1961
|
-
height: '$16'
|
|
1962
|
-
});
|
|
1963
1995
|
var RelativeContainer = /*#__PURE__*/styled('div', {
|
|
1964
1996
|
position: 'relative'
|
|
1965
1997
|
});
|
|
@@ -2091,9 +2123,10 @@ function BestRoute(props) {
|
|
|
2091
2123
|
chainLogo: swap.from.blockchainLogo,
|
|
2092
2124
|
blockchain: swap.from.blockchain,
|
|
2093
2125
|
amount: swap.fromAmount
|
|
2094
|
-
}), React__default.createElement(Dot, null)), React__default.createElement(SwapperContainer, null, React__default.createElement(Line, null), React__default.createElement(
|
|
2126
|
+
}), React__default.createElement(Dot, null)), React__default.createElement(SwapperContainer, null, React__default.createElement(Line, null), React__default.createElement(Image, {
|
|
2095
2127
|
src: swap.swapperLogo,
|
|
2096
|
-
alt: swap.swapperId
|
|
2128
|
+
alt: swap.swapperId,
|
|
2129
|
+
size: 20
|
|
2097
2130
|
}), React__default.createElement(Line, null)), index + 1 === ((_data$result2 = data.result) == null ? void 0 : _data$result2.swaps.length) && React__default.createElement(ArrowRight, null), React__default.createElement(StepDetail, {
|
|
2098
2131
|
direction: "vertical",
|
|
2099
2132
|
logo: swap.to.logo,
|
|
@@ -2107,7 +2140,7 @@ function BestRoute(props) {
|
|
|
2107
2140
|
}, "No routes found")));
|
|
2108
2141
|
}
|
|
2109
2142
|
|
|
2110
|
-
var _excluded$
|
|
2143
|
+
var _excluded$F = ["children", "loading", "disabled", "prefix", "suffix", "align", "flexContent"];
|
|
2111
2144
|
var _ghost, _css, _css2, _css3;
|
|
2112
2145
|
var ButtonContainer = /*#__PURE__*/styled('button', {
|
|
2113
2146
|
borderRadius: '$5',
|
|
@@ -2452,7 +2485,7 @@ function Button(_ref) {
|
|
|
2452
2485
|
suffix = _ref.suffix,
|
|
2453
2486
|
align = _ref.align,
|
|
2454
2487
|
flexContent = _ref.flexContent,
|
|
2455
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2488
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
2456
2489
|
var isDisabled = loading || disabled;
|
|
2457
2490
|
return React__default.createElement(ButtonContainer, Object.assign({
|
|
2458
2491
|
disabled: isDisabled
|
|
@@ -2470,13 +2503,6 @@ function Button(_ref) {
|
|
|
2470
2503
|
}), suffix);
|
|
2471
2504
|
}
|
|
2472
2505
|
|
|
2473
|
-
var FilledCircle = /*#__PURE__*/styled('span', {
|
|
2474
|
-
width: '10px',
|
|
2475
|
-
height: '10px',
|
|
2476
|
-
backgroundColor: '$primary',
|
|
2477
|
-
borderRadius: '99999px'
|
|
2478
|
-
});
|
|
2479
|
-
|
|
2480
2506
|
var ListContainer = /*#__PURE__*/styled('div', {
|
|
2481
2507
|
display: 'grid',
|
|
2482
2508
|
gap: '.5rem',
|
|
@@ -2485,10 +2511,8 @@ var ListContainer = /*#__PURE__*/styled('div', {
|
|
|
2485
2511
|
width: '100%',
|
|
2486
2512
|
height: '100%'
|
|
2487
2513
|
});
|
|
2488
|
-
var
|
|
2489
|
-
|
|
2490
|
-
maxHeight: '1.5rem',
|
|
2491
|
-
marginRight: '$4'
|
|
2514
|
+
var ImageContainer$1 = /*#__PURE__*/styled('div', {
|
|
2515
|
+
paddingRight: '$4'
|
|
2492
2516
|
});
|
|
2493
2517
|
function BlockchainsList(props) {
|
|
2494
2518
|
var list = props.list,
|
|
@@ -2515,9 +2539,10 @@ function BlockchainsList(props) {
|
|
|
2515
2539
|
type: isSelect(blockchain.name) ? 'primary' : undefined,
|
|
2516
2540
|
variant: "outlined",
|
|
2517
2541
|
size: "large",
|
|
2518
|
-
prefix: React__default.createElement(Image, {
|
|
2542
|
+
prefix: React__default.createElement(ImageContainer$1, null, React__default.createElement(Image, {
|
|
2543
|
+
size: 24,
|
|
2519
2544
|
src: blockchain.logo
|
|
2520
|
-
}),
|
|
2545
|
+
})),
|
|
2521
2546
|
suffix: isSelect(blockchain.name) ? React__default.createElement(FilledCircle, null) : undefined,
|
|
2522
2547
|
align: "start",
|
|
2523
2548
|
onClick: changeSelectedBlockchain.bind(null, blockchain),
|
|
@@ -2588,7 +2613,7 @@ function Header(props) {
|
|
|
2588
2613
|
}, props.title), props.suffix || React__default.createElement("div", null));
|
|
2589
2614
|
}
|
|
2590
2615
|
|
|
2591
|
-
var _excluded$
|
|
2616
|
+
var _excluded$G = ["label", "prefix", "suffix", "children", "size", "style"];
|
|
2592
2617
|
var InputContainer = /*#__PURE__*/styled('div', {
|
|
2593
2618
|
backgroundColor: '$background',
|
|
2594
2619
|
padding: '1px',
|
|
@@ -2675,7 +2700,7 @@ var TextField = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
2675
2700
|
suffix = props.suffix,
|
|
2676
2701
|
size = props.size,
|
|
2677
2702
|
style = props.style,
|
|
2678
|
-
inputAttributes = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2703
|
+
inputAttributes = _objectWithoutPropertiesLoose(props, _excluded$G);
|
|
2679
2704
|
return React__default.createElement(React__default.Fragment, null, label && React__default.createElement(Label, Object.assign({
|
|
2680
2705
|
className: "_text"
|
|
2681
2706
|
}, inputAttributes.id && {
|
|
@@ -3020,10 +3045,8 @@ function VirtualizedList(props) {
|
|
|
3020
3045
|
});
|
|
3021
3046
|
}
|
|
3022
3047
|
|
|
3023
|
-
var
|
|
3024
|
-
|
|
3025
|
-
maxHeight: '$32',
|
|
3026
|
-
marginRight: '$16'
|
|
3048
|
+
var TokenImageContainer = /*#__PURE__*/styled('div', {
|
|
3049
|
+
paddingRight: '$16'
|
|
3027
3050
|
});
|
|
3028
3051
|
var TokenNameContainer = /*#__PURE__*/styled('div', {
|
|
3029
3052
|
display: 'flex',
|
|
@@ -3056,9 +3079,10 @@ function TokenItem(props) {
|
|
|
3056
3079
|
align: "start",
|
|
3057
3080
|
onClick: onClick.bind(null, token),
|
|
3058
3081
|
type: selected ? 'primary' : undefined,
|
|
3059
|
-
prefix: React__default.createElement(
|
|
3060
|
-
src: token.image
|
|
3061
|
-
|
|
3082
|
+
prefix: React__default.createElement(TokenImageContainer, null, React__default.createElement(Image, {
|
|
3083
|
+
src: token.image,
|
|
3084
|
+
size: 32
|
|
3085
|
+
})),
|
|
3062
3086
|
suffix: ((_token$balance = token.balance) == null ? void 0 : _token$balance.amount) && React__default.createElement(TokenAmountContainer, null, React__default.createElement(Typography, {
|
|
3063
3087
|
variant: "body2"
|
|
3064
3088
|
}, token.balance.amount), React__default.createElement(Typography, {
|
|
@@ -3072,7 +3096,7 @@ function TokenItem(props) {
|
|
|
3072
3096
|
}, token.name))));
|
|
3073
3097
|
}
|
|
3074
3098
|
|
|
3075
|
-
var _excluded$
|
|
3099
|
+
var _excluded$H = ["style"];
|
|
3076
3100
|
var PAGE_SIZE = 20;
|
|
3077
3101
|
function TokenList(props) {
|
|
3078
3102
|
var list = props.list,
|
|
@@ -3112,7 +3136,7 @@ function TokenList(props) {
|
|
|
3112
3136
|
}, [tokens.length]);
|
|
3113
3137
|
var innerElementType = React.forwardRef(function (_ref, ref) {
|
|
3114
3138
|
var style = _ref.style,
|
|
3115
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3139
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
3116
3140
|
return React__default.createElement("div", Object.assign({
|
|
3117
3141
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3118
3142
|
ref: ref,
|
|
@@ -3227,7 +3251,7 @@ function BlockchainSelector(props) {
|
|
|
3227
3251
|
});
|
|
3228
3252
|
}
|
|
3229
3253
|
|
|
3230
|
-
var _excluded$
|
|
3254
|
+
var _excluded$I = ["label", "id"];
|
|
3231
3255
|
var CheckboxContainer = /*#__PURE__*/styled('div', {
|
|
3232
3256
|
display: 'flex',
|
|
3233
3257
|
alignItems: 'center'
|
|
@@ -3252,7 +3276,7 @@ var Label$1 = /*#__PURE__*/styled('label', {
|
|
|
3252
3276
|
function Checkbox(_ref) {
|
|
3253
3277
|
var label = _ref.label,
|
|
3254
3278
|
id = _ref.id,
|
|
3255
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3279
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
3256
3280
|
return React__default.createElement(CheckboxContainer, null, React__default.createElement(CheckboxRoot, Object.assign({
|
|
3257
3281
|
id: id
|
|
3258
3282
|
}, props), React__default.createElement(RadixCheckbox.Indicator, null, React__default.createElement(CheckIcon, {
|
|
@@ -3384,10 +3408,8 @@ var State = function State(_ref) {
|
|
|
3384
3408
|
})), walletState === exports.WalletState.CONNECTING && React__default.createElement(Spinner, null), walletState === exports.WalletState.CONNECTED && React__default.createElement(DisconnectIcon, null)));
|
|
3385
3409
|
};
|
|
3386
3410
|
|
|
3387
|
-
var
|
|
3388
|
-
|
|
3389
|
-
height: '$24',
|
|
3390
|
-
marginRight: '$12'
|
|
3411
|
+
var WalletImageContainer = /*#__PURE__*/styled('div', {
|
|
3412
|
+
paddingRight: '$12'
|
|
3391
3413
|
});
|
|
3392
3414
|
var Text = /*#__PURE__*/styled('div', {
|
|
3393
3415
|
display: 'flex',
|
|
@@ -3424,9 +3446,10 @@ function Wallet(props) {
|
|
|
3424
3446
|
align: "start",
|
|
3425
3447
|
variant: "outlined",
|
|
3426
3448
|
size: "large",
|
|
3427
|
-
prefix: React__default.createElement(
|
|
3428
|
-
src: image
|
|
3429
|
-
|
|
3449
|
+
prefix: React__default.createElement(WalletImageContainer, null, React__default.createElement(Image, {
|
|
3450
|
+
src: image,
|
|
3451
|
+
size: 24
|
|
3452
|
+
})),
|
|
3430
3453
|
suffix: React__default.createElement(State, {
|
|
3431
3454
|
walletState: state,
|
|
3432
3455
|
installLink: installLink
|
|
@@ -3542,10 +3565,8 @@ var LiquiditySourceType = /*#__PURE__*/styled('div', {
|
|
|
3542
3565
|
paddingTop: '$8',
|
|
3543
3566
|
paddingBottom: '$8'
|
|
3544
3567
|
});
|
|
3545
|
-
var
|
|
3546
|
-
|
|
3547
|
-
maxHeight: '$20',
|
|
3548
|
-
marginRight: '$16'
|
|
3568
|
+
var LiquidityImageContainer = /*#__PURE__*/styled('div', {
|
|
3569
|
+
paddingRight: '$16'
|
|
3549
3570
|
});
|
|
3550
3571
|
var LoaderContainer$1 = /*#__PURE__*/styled('div', {
|
|
3551
3572
|
display: 'flex',
|
|
@@ -3643,9 +3664,10 @@ var LiquiditySourceItem = function LiquiditySourceItem(_ref) {
|
|
|
3643
3664
|
size: "large",
|
|
3644
3665
|
align: "start",
|
|
3645
3666
|
variant: "outlined",
|
|
3646
|
-
prefix: React__default.createElement(
|
|
3647
|
-
src: liquiditySource.logo
|
|
3648
|
-
|
|
3667
|
+
prefix: React__default.createElement(LiquidityImageContainer, null, React__default.createElement(Image, {
|
|
3668
|
+
src: liquiditySource.logo,
|
|
3669
|
+
size: 20
|
|
3670
|
+
})),
|
|
3649
3671
|
suffix: React__default.createElement(Switch, {
|
|
3650
3672
|
checked: selected
|
|
3651
3673
|
}),
|
|
@@ -3785,11 +3807,10 @@ function SelectableWalletList(_ref) {
|
|
|
3785
3807
|
checked: checked,
|
|
3786
3808
|
onClick: onClick.bind(null, w),
|
|
3787
3809
|
key: index
|
|
3788
|
-
}, React__default.createElement(
|
|
3810
|
+
}, React__default.createElement(Image, {
|
|
3789
3811
|
src: w.image,
|
|
3790
3812
|
alt: w.walletType,
|
|
3791
|
-
|
|
3792
|
-
height: 24
|
|
3813
|
+
size: 24
|
|
3793
3814
|
}), React__default.createElement(Typography, {
|
|
3794
3815
|
variant: "body2"
|
|
3795
3816
|
}, w.name), React__default.createElement(Typography, {
|
|
@@ -4074,14 +4095,8 @@ var TokenContainer = /*#__PURE__*/styled('div', {
|
|
|
4074
4095
|
fontWeight: 'bold'
|
|
4075
4096
|
}
|
|
4076
4097
|
});
|
|
4077
|
-
var TokenImage
|
|
4098
|
+
var TokenImage = /*#__PURE__*/styled('div', {
|
|
4078
4099
|
position: 'relative',
|
|
4079
|
-
width: '$24',
|
|
4080
|
-
height: '$24',
|
|
4081
|
-
img: {
|
|
4082
|
-
width: '100%',
|
|
4083
|
-
display: 'block'
|
|
4084
|
-
},
|
|
4085
4100
|
'.overlay': {
|
|
4086
4101
|
position: 'absolute',
|
|
4087
4102
|
right: -4,
|
|
@@ -4090,19 +4105,24 @@ var TokenImage$1 = /*#__PURE__*/styled('div', {
|
|
|
4090
4105
|
height: '$16',
|
|
4091
4106
|
padding: '$2',
|
|
4092
4107
|
borderRadius: '50%',
|
|
4108
|
+
display: 'flex',
|
|
4109
|
+
justifyContent: 'center',
|
|
4110
|
+
alignItems: 'center',
|
|
4093
4111
|
backgroundColor: '$background',
|
|
4094
4112
|
border: '1px solid $neutrals400'
|
|
4095
4113
|
}
|
|
4096
4114
|
});
|
|
4097
4115
|
function Token(props) {
|
|
4098
|
-
return React__default.createElement(TokenContainer, null, React__default.createElement(TokenImage
|
|
4116
|
+
return React__default.createElement(TokenContainer, null, React__default.createElement(TokenImage, null, React__default.createElement(Image, {
|
|
4099
4117
|
src: props.data.token.logo,
|
|
4100
|
-
alt: ""
|
|
4118
|
+
alt: "",
|
|
4119
|
+
size: 24
|
|
4101
4120
|
}), React__default.createElement("div", {
|
|
4102
4121
|
className: "overlay"
|
|
4103
|
-
}, React__default.createElement(
|
|
4122
|
+
}, React__default.createElement(Image, {
|
|
4104
4123
|
src: props.data.blockchain.logo,
|
|
4105
|
-
alt: props.data.blockchain.name
|
|
4124
|
+
alt: props.data.blockchain.name,
|
|
4125
|
+
size: 12
|
|
4106
4126
|
}))), React__default.createElement(Spacer, {
|
|
4107
4127
|
size: 8
|
|
4108
4128
|
}), React__default.createElement("span", {
|
|
@@ -4536,7 +4556,7 @@ function History(_ref) {
|
|
|
4536
4556
|
return React__default.createElement(SecondaryPage, {
|
|
4537
4557
|
onBack: onBack,
|
|
4538
4558
|
textField: true,
|
|
4539
|
-
textFieldPlaceholder: "Search
|
|
4559
|
+
textFieldPlaceholder: "Search by Blockchain/Token/Request Id",
|
|
4540
4560
|
title: "Swaps"
|
|
4541
4561
|
}, function (searchedFor) {
|
|
4542
4562
|
var filterSwaps = filteredHistory(list, searchedFor);
|
|
@@ -4608,7 +4628,7 @@ var SwapMessages = function SwapMessages(props) {
|
|
|
4608
4628
|
}, "wallet"))));
|
|
4609
4629
|
};
|
|
4610
4630
|
|
|
4611
|
-
var _excluded$
|
|
4631
|
+
var _excluded$J = ["pendingSwap", "onBack", "onCopy", "isCopied", "onCancel", "date", "onRetry", "previewInputs"];
|
|
4612
4632
|
var SwapperContainer$1 = /*#__PURE__*/styled('div', {
|
|
4613
4633
|
display: 'flex',
|
|
4614
4634
|
alignItems: 'center',
|
|
@@ -4618,10 +4638,6 @@ var Fee = /*#__PURE__*/styled('div', {
|
|
|
4618
4638
|
display: 'flex',
|
|
4619
4639
|
alignItems: 'center'
|
|
4620
4640
|
});
|
|
4621
|
-
var SwapperLogo$1 = /*#__PURE__*/styled('img', {
|
|
4622
|
-
width: '$16',
|
|
4623
|
-
height: '$16'
|
|
4624
|
-
});
|
|
4625
4641
|
var RelativeContainer$1 = /*#__PURE__*/styled('div', {
|
|
4626
4642
|
position: 'relative'
|
|
4627
4643
|
});
|
|
@@ -4740,7 +4756,7 @@ function SwapHistory(props) {
|
|
|
4740
4756
|
onCancel = props.onCancel,
|
|
4741
4757
|
date = props.date,
|
|
4742
4758
|
onRetry = props.onRetry,
|
|
4743
|
-
extraMessageProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
4759
|
+
extraMessageProps = _objectWithoutPropertiesLoose(props, _excluded$J);
|
|
4744
4760
|
var _useState = React.useState(false),
|
|
4745
4761
|
showDrawer = _useState[0],
|
|
4746
4762
|
setShowDrawer = _useState[1];
|
|
@@ -4791,11 +4807,13 @@ function SwapHistory(props) {
|
|
|
4791
4807
|
chainLogo: step.fromBlockchainLogo || '',
|
|
4792
4808
|
blockchain: step.fromBlockchain,
|
|
4793
4809
|
amount: pendingSwap.inputAmount
|
|
4794
|
-
}), React__default.createElement(Dot$1, null)), React__default.createElement(Line$1, null), React__default.createElement(SwapperContainer$1, null, React__default.createElement(
|
|
4795
|
-
|
|
4810
|
+
}), React__default.createElement(Dot$1, null)), React__default.createElement(Line$1, null), React__default.createElement(SwapperContainer$1, null, React__default.createElement(Image
|
|
4811
|
+
// @ts-ignore
|
|
4812
|
+
, {
|
|
4796
4813
|
// @ts-ignore
|
|
4797
|
-
step.swapperLogo
|
|
4798
|
-
alt: step.swapperId
|
|
4814
|
+
src: step.swapperLogo,
|
|
4815
|
+
alt: step.swapperId,
|
|
4816
|
+
size: 16
|
|
4799
4817
|
}), React__default.createElement("div", null, React__default.createElement(Typography, {
|
|
4800
4818
|
ml: 4,
|
|
4801
4819
|
variant: "caption"
|
|
@@ -4911,6 +4929,7 @@ exports.Header = Header;
|
|
|
4911
4929
|
exports.History = History;
|
|
4912
4930
|
exports.HistoryIcon = HistoryIcon;
|
|
4913
4931
|
exports.HorizontalSwapIcon = HorizontalSwapIcon;
|
|
4932
|
+
exports.Image = Image;
|
|
4914
4933
|
exports.InfoCircleIcon = InfoCircleIcon;
|
|
4915
4934
|
exports.LiquiditySourcesSelector = LiquiditySourcesSelector;
|
|
4916
4935
|
exports.LoadingFailedAlert = LoadingFailedAlert;
|