@rango-dev/ui 0.1.11-next.2 → 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.
@@ -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';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare type PropTypes = {
3
+ size: number;
4
+ } & React.ImgHTMLAttributes<HTMLImageElement>;
5
+ export declare function Image(props: PropTypes): JSX.Element;
6
+ export {};
@@ -1 +1,2 @@
1
1
  export { FilledCircle } from './FilledCircle';
2
+ export { Image } from './Image';
@@ -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;
@@ -1,2 +1,3 @@
1
- export declare const containsText: (text: string, searchText: string) => boolean;
2
- export declare const getConciseAddress: (address: string | null, maxChars?: number, ellipsisLength?: number) => string | null;
1
+ export declare function containsText(text: string, searchText: string): boolean;
2
+ export declare function getConciseAddress(address: string | null, maxChars?: number, ellipsisLength?: number): string | null;
3
+ export declare function limitDecimalPlaces(numberString: string, maxDecimalPlaces?: number): string;
@@ -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(Logo, {
1720
+ }, React__default.createElement(Image, {
1687
1721
  src: logo,
1688
- alt: symbol
1689
- }), React__default.createElement(ChainLogo, null, React__default.createElement("img", {
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(SwapperLogo, {
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$E = ["children", "loading", "disabled", "prefix", "suffix", "align", "flexContent"];
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$E);
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 Image = /*#__PURE__*/styled('img', {
2489
- width: '1.5rem',
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$F = ["label", "prefix", "suffix", "children", "size", "style"];
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$F);
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 && {
@@ -2735,10 +2760,10 @@ function SecondaryPage(props) {
2735
2760
  })), props.textField && (props.children == null ? void 0 : props.children(searchedFor)), !props.textField && props.children), Footer);
2736
2761
  }
2737
2762
 
2738
- var containsText = function containsText(text, searchText) {
2763
+ function containsText(text, searchText) {
2739
2764
  return text.toLowerCase().indexOf(searchText.toLowerCase()) > -1;
2740
- };
2741
- var getConciseAddress = function getConciseAddress(address, maxChars, ellipsisLength) {
2765
+ }
2766
+ function getConciseAddress(address, maxChars, ellipsisLength) {
2742
2767
  if (maxChars === void 0) {
2743
2768
  maxChars = 8;
2744
2769
  }
@@ -2750,7 +2775,19 @@ var getConciseAddress = function getConciseAddress(address, maxChars, ellipsisLe
2750
2775
  var start = Math.ceil((address.length - maxChars) / 2);
2751
2776
  var end = address.length - maxChars;
2752
2777
  return "" + address.substr(start, maxChars) + '.'.repeat(ellipsisLength) + address.substr(end);
2753
- };
2778
+ }
2779
+ function limitDecimalPlaces(numberString, maxDecimalPlaces) {
2780
+ if (maxDecimalPlaces === void 0) {
2781
+ maxDecimalPlaces = 4;
2782
+ }
2783
+ var number = parseFloat(numberString);
2784
+ if (isNaN(number)) return numberString; // Return the original string if it's not a valid number
2785
+ else {
2786
+ var multiplier = Math.pow(10, maxDecimalPlaces);
2787
+ var roundedNumber = Math.round(number * multiplier) / multiplier;
2788
+ return roundedNumber.toString();
2789
+ }
2790
+ }
2754
2791
 
2755
2792
  var SpacerContainer = /*#__PURE__*/styled('div', {
2756
2793
  variants: {
@@ -3008,10 +3045,8 @@ function VirtualizedList(props) {
3008
3045
  });
3009
3046
  }
3010
3047
 
3011
- var TokenImage = /*#__PURE__*/styled('img', {
3012
- width: '$32',
3013
- maxHeight: '$32',
3014
- marginRight: '$16'
3048
+ var TokenImageContainer = /*#__PURE__*/styled('div', {
3049
+ paddingRight: '$16'
3015
3050
  });
3016
3051
  var TokenNameContainer = /*#__PURE__*/styled('div', {
3017
3052
  display: 'flex',
@@ -3044,9 +3079,10 @@ function TokenItem(props) {
3044
3079
  align: "start",
3045
3080
  onClick: onClick.bind(null, token),
3046
3081
  type: selected ? 'primary' : undefined,
3047
- prefix: React__default.createElement(TokenImage, {
3048
- src: token.image
3049
- }),
3082
+ prefix: React__default.createElement(TokenImageContainer, null, React__default.createElement(Image, {
3083
+ src: token.image,
3084
+ size: 32
3085
+ })),
3050
3086
  suffix: ((_token$balance = token.balance) == null ? void 0 : _token$balance.amount) && React__default.createElement(TokenAmountContainer, null, React__default.createElement(Typography, {
3051
3087
  variant: "body2"
3052
3088
  }, token.balance.amount), React__default.createElement(Typography, {
@@ -3060,7 +3096,7 @@ function TokenItem(props) {
3060
3096
  }, token.name))));
3061
3097
  }
3062
3098
 
3063
- var _excluded$G = ["style"];
3099
+ var _excluded$H = ["style"];
3064
3100
  var PAGE_SIZE = 20;
3065
3101
  function TokenList(props) {
3066
3102
  var list = props.list,
@@ -3100,7 +3136,7 @@ function TokenList(props) {
3100
3136
  }, [tokens.length]);
3101
3137
  var innerElementType = React.forwardRef(function (_ref, ref) {
3102
3138
  var style = _ref.style,
3103
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$G);
3139
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$H);
3104
3140
  return React__default.createElement("div", Object.assign({
3105
3141
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3106
3142
  ref: ref,
@@ -3215,7 +3251,7 @@ function BlockchainSelector(props) {
3215
3251
  });
3216
3252
  }
3217
3253
 
3218
- var _excluded$H = ["label", "id"];
3254
+ var _excluded$I = ["label", "id"];
3219
3255
  var CheckboxContainer = /*#__PURE__*/styled('div', {
3220
3256
  display: 'flex',
3221
3257
  alignItems: 'center'
@@ -3240,7 +3276,7 @@ var Label$1 = /*#__PURE__*/styled('label', {
3240
3276
  function Checkbox(_ref) {
3241
3277
  var label = _ref.label,
3242
3278
  id = _ref.id,
3243
- props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
3279
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
3244
3280
  return React__default.createElement(CheckboxContainer, null, React__default.createElement(CheckboxRoot, Object.assign({
3245
3281
  id: id
3246
3282
  }, props), React__default.createElement(RadixCheckbox.Indicator, null, React__default.createElement(CheckIcon, {
@@ -3372,10 +3408,8 @@ var State = function State(_ref) {
3372
3408
  })), walletState === exports.WalletState.CONNECTING && React__default.createElement(Spinner, null), walletState === exports.WalletState.CONNECTED && React__default.createElement(DisconnectIcon, null)));
3373
3409
  };
3374
3410
 
3375
- var WalletImage = /*#__PURE__*/styled('img', {
3376
- width: '$24',
3377
- height: '$24',
3378
- marginRight: '$12'
3411
+ var WalletImageContainer = /*#__PURE__*/styled('div', {
3412
+ paddingRight: '$12'
3379
3413
  });
3380
3414
  var Text = /*#__PURE__*/styled('div', {
3381
3415
  display: 'flex',
@@ -3412,9 +3446,10 @@ function Wallet(props) {
3412
3446
  align: "start",
3413
3447
  variant: "outlined",
3414
3448
  size: "large",
3415
- prefix: React__default.createElement(WalletImage, {
3416
- src: image
3417
- }),
3449
+ prefix: React__default.createElement(WalletImageContainer, null, React__default.createElement(Image, {
3450
+ src: image,
3451
+ size: 24
3452
+ })),
3418
3453
  suffix: React__default.createElement(State, {
3419
3454
  walletState: state,
3420
3455
  installLink: installLink
@@ -3530,10 +3565,8 @@ var LiquiditySourceType = /*#__PURE__*/styled('div', {
3530
3565
  paddingTop: '$8',
3531
3566
  paddingBottom: '$8'
3532
3567
  });
3533
- var LiquidityImage = /*#__PURE__*/styled('img', {
3534
- width: '$20',
3535
- maxHeight: '$20',
3536
- marginRight: '$16'
3568
+ var LiquidityImageContainer = /*#__PURE__*/styled('div', {
3569
+ paddingRight: '$16'
3537
3570
  });
3538
3571
  var LoaderContainer$1 = /*#__PURE__*/styled('div', {
3539
3572
  display: 'flex',
@@ -3631,9 +3664,10 @@ var LiquiditySourceItem = function LiquiditySourceItem(_ref) {
3631
3664
  size: "large",
3632
3665
  align: "start",
3633
3666
  variant: "outlined",
3634
- prefix: React__default.createElement(LiquidityImage, {
3635
- src: liquiditySource.logo
3636
- }),
3667
+ prefix: React__default.createElement(LiquidityImageContainer, null, React__default.createElement(Image, {
3668
+ src: liquiditySource.logo,
3669
+ size: 20
3670
+ })),
3637
3671
  suffix: React__default.createElement(Switch, {
3638
3672
  checked: selected
3639
3673
  }),
@@ -3773,11 +3807,10 @@ function SelectableWalletList(_ref) {
3773
3807
  checked: checked,
3774
3808
  onClick: onClick.bind(null, w),
3775
3809
  key: index
3776
- }, React__default.createElement("img", {
3810
+ }, React__default.createElement(Image, {
3777
3811
  src: w.image,
3778
3812
  alt: w.walletType,
3779
- width: 24,
3780
- height: 24
3813
+ size: 24
3781
3814
  }), React__default.createElement(Typography, {
3782
3815
  variant: "body2"
3783
3816
  }, w.name), React__default.createElement(Typography, {
@@ -4057,18 +4090,13 @@ function SwapContainer(props) {
4057
4090
  var TokenContainer = /*#__PURE__*/styled('div', {
4058
4091
  display: 'flex',
4059
4092
  alignItems: 'center',
4093
+ width: '160px',
4060
4094
  '& .amount': {
4061
4095
  fontWeight: 'bold'
4062
4096
  }
4063
4097
  });
4064
- var TokenImage$1 = /*#__PURE__*/styled('div', {
4098
+ var TokenImage = /*#__PURE__*/styled('div', {
4065
4099
  position: 'relative',
4066
- width: '$24',
4067
- height: '$24',
4068
- img: {
4069
- width: '100%',
4070
- display: 'block'
4071
- },
4072
4100
  '.overlay': {
4073
4101
  position: 'absolute',
4074
4102
  right: -4,
@@ -4077,19 +4105,24 @@ var TokenImage$1 = /*#__PURE__*/styled('div', {
4077
4105
  height: '$16',
4078
4106
  padding: '$2',
4079
4107
  borderRadius: '50%',
4108
+ display: 'flex',
4109
+ justifyContent: 'center',
4110
+ alignItems: 'center',
4080
4111
  backgroundColor: '$background',
4081
4112
  border: '1px solid $neutrals400'
4082
4113
  }
4083
4114
  });
4084
4115
  function Token(props) {
4085
- return React__default.createElement(TokenContainer, null, React__default.createElement(TokenImage$1, null, React__default.createElement("img", {
4116
+ return React__default.createElement(TokenContainer, null, React__default.createElement(TokenImage, null, React__default.createElement(Image, {
4086
4117
  src: props.data.token.logo,
4087
- alt: ""
4118
+ alt: "",
4119
+ size: 24
4088
4120
  }), React__default.createElement("div", {
4089
4121
  className: "overlay"
4090
- }, React__default.createElement("img", {
4122
+ }, React__default.createElement(Image, {
4091
4123
  src: props.data.blockchain.logo,
4092
- alt: props.data.blockchain.name
4124
+ alt: props.data.blockchain.name,
4125
+ size: 12
4093
4126
  }))), React__default.createElement(Spacer, {
4094
4127
  size: 8
4095
4128
  }), React__default.createElement("span", {
@@ -4154,7 +4187,7 @@ function SwapDetail(_ref) {
4154
4187
  logo: firstStep.fromBlockchainLogo || '',
4155
4188
  name: firstStep.fromBlockchain
4156
4189
  },
4157
- amount: swap.inputAmount
4190
+ amount: limitDecimalPlaces(swap.inputAmount)
4158
4191
  }
4159
4192
  }), React__default.createElement(Spacer, {
4160
4193
  size: 12
@@ -4173,7 +4206,7 @@ function SwapDetail(_ref) {
4173
4206
  logo: lastStep.toBlockchainLogo,
4174
4207
  name: lastStep.toBlockchain
4175
4208
  },
4176
- amount: lastStep.outputAmount || lastStep.expectedOutputAmountHumanReadable || ''
4209
+ amount: limitDecimalPlaces(lastStep.outputAmount || lastStep.expectedOutputAmountHumanReadable || '')
4177
4210
  }
4178
4211
  })), React__default.createElement("div", {
4179
4212
  className: "status"
@@ -4523,7 +4556,7 @@ function History(_ref) {
4523
4556
  return React__default.createElement(SecondaryPage, {
4524
4557
  onBack: onBack,
4525
4558
  textField: true,
4526
- textFieldPlaceholder: "Search By Blockchain Or Token Or Request ID",
4559
+ textFieldPlaceholder: "Search by Blockchain/Token/Request Id",
4527
4560
  title: "Swaps"
4528
4561
  }, function (searchedFor) {
4529
4562
  var filterSwaps = filteredHistory(list, searchedFor);
@@ -4595,7 +4628,7 @@ var SwapMessages = function SwapMessages(props) {
4595
4628
  }, "wallet"))));
4596
4629
  };
4597
4630
 
4598
- var _excluded$I = ["pendingSwap", "onBack", "onCopy", "isCopied", "onCancel", "date", "onRetry", "previewInputs"];
4631
+ var _excluded$J = ["pendingSwap", "onBack", "onCopy", "isCopied", "onCancel", "date", "onRetry", "previewInputs"];
4599
4632
  var SwapperContainer$1 = /*#__PURE__*/styled('div', {
4600
4633
  display: 'flex',
4601
4634
  alignItems: 'center',
@@ -4605,10 +4638,6 @@ var Fee = /*#__PURE__*/styled('div', {
4605
4638
  display: 'flex',
4606
4639
  alignItems: 'center'
4607
4640
  });
4608
- var SwapperLogo$1 = /*#__PURE__*/styled('img', {
4609
- width: '$16',
4610
- height: '$16'
4611
- });
4612
4641
  var RelativeContainer$1 = /*#__PURE__*/styled('div', {
4613
4642
  position: 'relative'
4614
4643
  });
@@ -4727,7 +4756,7 @@ function SwapHistory(props) {
4727
4756
  onCancel = props.onCancel,
4728
4757
  date = props.date,
4729
4758
  onRetry = props.onRetry,
4730
- extraMessageProps = _objectWithoutPropertiesLoose(props, _excluded$I);
4759
+ extraMessageProps = _objectWithoutPropertiesLoose(props, _excluded$J);
4731
4760
  var _useState = React.useState(false),
4732
4761
  showDrawer = _useState[0],
4733
4762
  setShowDrawer = _useState[1];
@@ -4778,11 +4807,13 @@ function SwapHistory(props) {
4778
4807
  chainLogo: step.fromBlockchainLogo || '',
4779
4808
  blockchain: step.fromBlockchain,
4780
4809
  amount: pendingSwap.inputAmount
4781
- }), React__default.createElement(Dot$1, null)), React__default.createElement(Line$1, null), React__default.createElement(SwapperContainer$1, null, React__default.createElement(SwapperLogo$1, {
4782
- src:
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
+ , {
4783
4813
  // @ts-ignore
4784
- step.swapperLogo || '',
4785
- alt: step.swapperId
4814
+ src: step.swapperLogo,
4815
+ alt: step.swapperId,
4816
+ size: 16
4786
4817
  }), React__default.createElement("div", null, React__default.createElement(Typography, {
4787
4818
  ml: 4,
4788
4819
  variant: "caption"
@@ -4898,6 +4929,7 @@ exports.Header = Header;
4898
4929
  exports.History = History;
4899
4930
  exports.HistoryIcon = HistoryIcon;
4900
4931
  exports.HorizontalSwapIcon = HorizontalSwapIcon;
4932
+ exports.Image = Image;
4901
4933
  exports.InfoCircleIcon = InfoCircleIcon;
4902
4934
  exports.LiquiditySourcesSelector = LiquiditySourcesSelector;
4903
4935
  exports.LoadingFailedAlert = LoadingFailedAlert;