@rango-dev/ui 0.29.1-next.1 → 0.29.1-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/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/widget/ui/src/components/Alert/Alert.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.constants.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.Skeletons.d.ts +6 -0
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.Skeletons.d.ts.map +1 -0
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.d.ts +4 -0
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.d.ts.map +1 -0
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.stories.d.ts +7 -0
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/{ExpandedRoute/ExpandedRoute.styles.d.ts → FullExpandedQuote/FullExpandedQuote.styles.d.ts} +652 -3
- package/dist/widget/ui/src/components/{ExpandedRoute/ExpandedRoute.styles.d.ts.map → FullExpandedQuote/FullExpandedQuote.styles.d.ts.map} +1 -1
- package/dist/widget/ui/src/components/{ExpandedRoute/ExpandedRoute.types.d.ts → FullExpandedQuote/FullExpandedQuote.types.d.ts} +17 -9
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.types.d.ts.map +1 -0
- package/dist/widget/ui/src/components/FullExpandedQuote/index.d.ts +2 -0
- package/dist/widget/ui/src/components/FullExpandedQuote/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/FullExpandedQuote/mock.d.ts.map +1 -0
- package/dist/widget/ui/src/components/List/List.d.ts.map +1 -1
- package/dist/widget/ui/src/components/List/List.types.d.ts +1 -0
- package/dist/widget/ui/src/components/List/List.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/List/index.d.ts +1 -0
- package/dist/widget/ui/src/components/List/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Popover/Popover.types.d.ts +2 -0
- package/dist/widget/ui/src/components/Popover/Popover.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Select/select.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tabs/Tabs.d.ts +4 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.stories.d.ts +6 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.styles.d.ts +780 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.styles.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.types.d.ts +30 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.types.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tabs/index.d.ts +2 -0
- package/dist/widget/ui/src/components/Tabs/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/index.d.ts +3 -1
- package/dist/widget/ui/src/components/index.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/Bridges.d.ts +5 -0
- package/dist/widget/ui/src/icons/Bridges.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Document.d.ts +5 -0
- package/dist/widget/ui/src/icons/Document.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Exchange.d.ts +5 -0
- package/dist/widget/ui/src/icons/Exchange.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Explorer.d.ts +5 -0
- package/dist/widget/ui/src/icons/Explorer.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/InProgress.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/More.d.ts +5 -0
- package/dist/widget/ui/src/icons/More.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Report.d.ts +5 -0
- package/dist/widget/ui/src/icons/Report.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Request.d.ts +5 -0
- package/dist/widget/ui/src/icons/Request.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Support.d.ts +5 -0
- package/dist/widget/ui/src/icons/Support.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/index.d.ts +19 -11
- package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/readme.md +1 -0
- package/src/components/Alert/Alert.styles.ts +3 -1
- package/src/components/Alert/Alert.tsx +6 -1
- package/src/components/ChainToken/ChainToken.constants.ts +1 -0
- package/src/components/ChainToken/ChainToken.styles.ts +4 -0
- package/src/components/FullExpandedQuote/FullExpandedQuote.Skeletons.tsx +78 -0
- package/src/components/{ExpandedRoute/ExpandedRoute.stories.tsx → FullExpandedQuote/FullExpandedQuote.stories.tsx} +4 -4
- package/src/components/{ExpandedRoute/ExpandedRoute.styles.ts → FullExpandedQuote/FullExpandedQuote.styles.ts} +35 -13
- package/src/components/FullExpandedQuote/FullExpandedQuote.tsx +184 -0
- package/src/components/{ExpandedRoute/ExpandedRoute.types.ts → FullExpandedQuote/FullExpandedQuote.types.ts} +17 -8
- package/src/components/FullExpandedQuote/index.ts +1 -0
- package/src/components/Header/Header.styles.ts +1 -1
- package/src/components/List/List.tsx +2 -3
- package/src/components/List/List.types.ts +1 -0
- package/src/components/List/index.ts +1 -0
- package/src/components/ListItem/ListItem.styles.ts +2 -0
- package/src/components/Popover/Popover.tsx +4 -3
- package/src/components/Popover/Popover.types.ts +2 -0
- package/src/components/QuoteCost/QuoteCost.styles.ts +2 -0
- package/src/components/Select/Select.tsx +24 -24
- package/src/components/Select/select.styles.ts +30 -54
- package/src/components/Tabs/Tabs.stories.tsx +12 -0
- package/src/components/Tabs/Tabs.styles.tsx +157 -0
- package/src/components/Tabs/Tabs.tsx +95 -0
- package/src/components/Tabs/Tabs.types.tsx +32 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/index.ts +3 -1
- package/src/icons/Bridges.tsx +19 -0
- package/src/icons/Document.tsx +50 -0
- package/src/icons/Exchange.tsx +22 -0
- package/src/icons/Explorer.tsx +20 -0
- package/src/icons/InProgress.tsx +13 -8
- package/src/icons/More.tsx +30 -0
- package/src/icons/Report.tsx +20 -0
- package/src/icons/Request.tsx +65 -0
- package/src/icons/Support.tsx +40 -0
- package/src/icons/index.ts +19 -11
- package/dist/widget/ui/src/components/ExpandedRoute/ExpandedRoute.d.ts +0 -4
- package/dist/widget/ui/src/components/ExpandedRoute/ExpandedRoute.d.ts.map +0 -1
- package/dist/widget/ui/src/components/ExpandedRoute/ExpandedRoute.stories.d.ts +0 -7
- package/dist/widget/ui/src/components/ExpandedRoute/ExpandedRoute.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/ExpandedRoute/ExpandedRoute.types.d.ts.map +0 -1
- package/dist/widget/ui/src/components/ExpandedRoute/index.d.ts +0 -2
- package/dist/widget/ui/src/components/ExpandedRoute/index.d.ts.map +0 -1
- package/dist/widget/ui/src/components/ExpandedRoute/mock.d.ts.map +0 -1
- package/src/components/ExpandedRoute/ExpandedRoute.tsx +0 -147
- package/src/components/ExpandedRoute/index.ts +0 -1
- /package/dist/widget/ui/src/components/{ExpandedRoute → FullExpandedQuote}/mock.d.ts +0 -0
- /package/src/components/{ExpandedRoute → FullExpandedQuote}/mock.ts +0 -0
package/src/icons/index.ts
CHANGED
|
@@ -2,11 +2,14 @@ export { default as AddIcon } from './Add';
|
|
|
2
2
|
export { default as AutoThemeIcon } from './AutoTheme';
|
|
3
3
|
export { default as AutorenewIcon } from './Autorenew';
|
|
4
4
|
export { default as BorderRadiusIcon } from './BorderRadius';
|
|
5
|
+
export { default as BridgeIcon } from './Bridges';
|
|
6
|
+
export { default as ChainsIcon } from './Chains';
|
|
5
7
|
export { default as ChevronDownIcon } from './ChevronDown';
|
|
6
8
|
export { default as ChevronLeftIcon } from './ChevronLeft';
|
|
7
9
|
export { default as ChevronRightIcon } from './ChevronRight';
|
|
8
10
|
export { default as ChevronUpIcon } from './ChevronUp';
|
|
9
11
|
export { default as CloseIcon } from './Close';
|
|
12
|
+
export { default as ColorsIcon } from './Colors';
|
|
10
13
|
export { default as CompleteIcon } from './Complete';
|
|
11
14
|
export { default as CopyIcon } from './Copy';
|
|
12
15
|
export { default as CosmosCategoryIcon } from './CosmosCategory';
|
|
@@ -14,25 +17,32 @@ export { default as CustomColorsIcon } from './CustomColors';
|
|
|
14
17
|
export { default as DarkModeIcon } from './DarkMode';
|
|
15
18
|
export { default as DeleteIcon } from './Delete';
|
|
16
19
|
export { default as DesktopIcon } from './Desktop';
|
|
20
|
+
export { default as DocumentIcon } from './Document';
|
|
21
|
+
export { default as DiscordIcon } from './Discord';
|
|
17
22
|
export { default as DoneIcon } from './Done';
|
|
18
|
-
export { default as EvmCategoryIcon } from './EvmCategory';
|
|
19
23
|
export { default as ErrorIcon } from './Error';
|
|
24
|
+
export { default as EvmCategoryIcon } from './EvmCategory';
|
|
20
25
|
export { default as ExitIcon } from './Exit';
|
|
26
|
+
export { default as ExchangeIcon } from './Exchange';
|
|
27
|
+
export { default as ExplorerIcon } from './Explorer';
|
|
21
28
|
export { default as ExternalLinkIcon } from './ExternalLink';
|
|
22
29
|
export { default as FontIcon } from './Font';
|
|
23
30
|
export { default as GasIcon } from './Gas';
|
|
24
31
|
export { default as HeightIcon } from './Height';
|
|
25
|
-
export { default as InProgressIcon } from './InProgress';
|
|
26
32
|
export { default as InfoErrorIcon } from './InfoError';
|
|
27
33
|
export { default as InfoIcon } from './Info';
|
|
34
|
+
export { default as InProgressIcon } from './InProgress';
|
|
35
|
+
export { default as KeyIcon } from './Key';
|
|
28
36
|
export { default as LanguageIcon } from './Language';
|
|
29
37
|
export { default as LightModeIcon } from './LightMode';
|
|
30
38
|
export { default as LinkIcon } from './Link';
|
|
31
39
|
export { default as LoadingIcon } from './Loading';
|
|
32
40
|
export { default as LogoWithTextIcon } from './LogoWithText';
|
|
41
|
+
export { default as MediumIcon } from './Medium';
|
|
33
42
|
export { default as MenuIcon } from './Menu';
|
|
34
|
-
export { default as
|
|
43
|
+
export { default as MoreIcon } from './More';
|
|
35
44
|
export { default as NextIcon } from './Next';
|
|
45
|
+
export { default as NoRouteIcon } from './NoRoute';
|
|
36
46
|
export { default as NoNotificationIcon } from './NoNotification';
|
|
37
47
|
export { default as NotificationNumberIcon } from './NotificationNumber';
|
|
38
48
|
export { default as NotificationsIcon } from './Notifications';
|
|
@@ -40,10 +50,16 @@ export { default as NumberIcon } from './Number';
|
|
|
40
50
|
export { default as OtherCategoryIcon } from './OtherCategory';
|
|
41
51
|
export { default as PinIcon } from './Pin';
|
|
42
52
|
export { default as RefreshIcon } from './Refresh';
|
|
53
|
+
export { default as ReportIcon } from './Report';
|
|
54
|
+
export { default as RequestIcon } from './Request';
|
|
43
55
|
export { default as ReverseIcon } from './Reverse';
|
|
44
56
|
export { default as RouteIcon } from './Route';
|
|
45
57
|
export { default as SearchIcon } from './Search';
|
|
58
|
+
export { default as SupportIcon } from './Support';
|
|
59
|
+
export { default as SettingsIcon } from './Settings';
|
|
60
|
+
export { default as StyleIcon } from './Style';
|
|
46
61
|
export { default as SwapIcon } from './Swap';
|
|
62
|
+
export { default as TelegramIcon } from './Telegram';
|
|
47
63
|
export { default as TimeIcon } from './Time';
|
|
48
64
|
export { default as TransactionIcon } from './Transaction';
|
|
49
65
|
export { default as TuneIcon } from './Tune';
|
|
@@ -51,12 +67,4 @@ export { default as UtxoCategoryIcon } from './UtxoCategory';
|
|
|
51
67
|
export { default as WalletIcon } from './Wallet';
|
|
52
68
|
export { default as WarningIcon } from './Warning';
|
|
53
69
|
export { default as WidthIcon } from './Width';
|
|
54
|
-
export { default as ChainsIcon } from './Chains';
|
|
55
|
-
export { default as ColorsIcon } from './Colors';
|
|
56
|
-
export { default as DiscordIcon } from './Discord';
|
|
57
|
-
export { default as KeyIcon } from './Key';
|
|
58
|
-
export { default as MediumIcon } from './Medium';
|
|
59
|
-
export { default as SettingsIcon } from './Settings';
|
|
60
|
-
export { default as StyleIcon } from './Style';
|
|
61
|
-
export { default as TelegramIcon } from './Telegram';
|
|
62
70
|
export { default as XIcon } from './X';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandedRoute.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ExpandedRoute/ExpandedRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,KAAK,MAAM,OAAO,CAAC;AA8B1B,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,qBAkH7C"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { ExpandedRoute } from './ExpandedRoute';
|
|
3
|
-
declare const meta: Meta<typeof ExpandedRoute>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ExpandedRoute>;
|
|
6
|
-
export declare const Main: Story;
|
|
7
|
-
//# sourceMappingURL=ExpandedRoute.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandedRoute.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ExpandedRoute/ExpandedRoute.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAEpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,eAAO,MAAM,IAAI,EAAE,KAgBlB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandedRoute.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ExpandedRoute/ExpandedRoute.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC7B,GAAG,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IAC3B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;IACxD,YAAY,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAChD,WAAW,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACrC,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ExpandedRoute/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ExpandedRoute/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAE7D,eAAO,MAAM,KAAK,EAAE,IAAI,EAkNvB,CAAC;AAEF,eAAO,MAAM,IAAI;;;GAqBhB,CAAC"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import type { PropTypes } from './ExpandedRoute.types';
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
|
-
import { ErrorIcon, WarningIcon } from '../../icons';
|
|
6
|
-
import { ChainToken } from '../ChainToken';
|
|
7
|
-
import { Image } from '../common';
|
|
8
|
-
import { Divider } from '../Divider';
|
|
9
|
-
import { QuoteCost } from '../QuoteCost';
|
|
10
|
-
import { QuoteTag } from '../QuoteTag';
|
|
11
|
-
import { Tooltip } from '../Tooltip';
|
|
12
|
-
import { Typography } from '../Typography';
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
FromToken,
|
|
16
|
-
IconHighlight,
|
|
17
|
-
lastStepStyle,
|
|
18
|
-
LeftSection,
|
|
19
|
-
OutputSection,
|
|
20
|
-
RightSection,
|
|
21
|
-
RouteContainer,
|
|
22
|
-
RouteHeader,
|
|
23
|
-
Step,
|
|
24
|
-
Steps,
|
|
25
|
-
StyledPriceImpact,
|
|
26
|
-
SwapperContainer,
|
|
27
|
-
SwapperImage,
|
|
28
|
-
TagsContainer,
|
|
29
|
-
tokenLabelStyles,
|
|
30
|
-
VerticalLine,
|
|
31
|
-
} from './ExpandedRoute.styles';
|
|
32
|
-
|
|
33
|
-
export function ExpandedRoute(props: PropTypes) {
|
|
34
|
-
const {
|
|
35
|
-
steps,
|
|
36
|
-
tags,
|
|
37
|
-
time,
|
|
38
|
-
fee,
|
|
39
|
-
percentageChange,
|
|
40
|
-
warningLevel,
|
|
41
|
-
outputPrice,
|
|
42
|
-
tooltipContainer,
|
|
43
|
-
selected = false,
|
|
44
|
-
onClick,
|
|
45
|
-
} = props;
|
|
46
|
-
const numberOfSteps = steps.length;
|
|
47
|
-
return (
|
|
48
|
-
<RouteContainer selected={selected} onClick={onClick}>
|
|
49
|
-
<RouteHeader>
|
|
50
|
-
<QuoteCost fee={fee} time={time} steps={numberOfSteps} />
|
|
51
|
-
<TagsContainer>
|
|
52
|
-
{tags.map((tag) => (
|
|
53
|
-
<QuoteTag key={tag.label} label={tag.label} value={tag.value} />
|
|
54
|
-
))}
|
|
55
|
-
</TagsContainer>
|
|
56
|
-
</RouteHeader>
|
|
57
|
-
<Steps>
|
|
58
|
-
{steps.map((step, index) => {
|
|
59
|
-
const key = `item-${index}`;
|
|
60
|
-
return (
|
|
61
|
-
<Step
|
|
62
|
-
key={key}
|
|
63
|
-
className={index === numberOfSteps - 1 ? lastStepStyle() : ''}>
|
|
64
|
-
<LeftSection>
|
|
65
|
-
<ChainToken
|
|
66
|
-
size="small"
|
|
67
|
-
chainImage={step.from.chain.image}
|
|
68
|
-
tokenImage={step.from.token.image}
|
|
69
|
-
/>
|
|
70
|
-
<FromToken>
|
|
71
|
-
<Tooltip
|
|
72
|
-
content={step.from.price.realValue}
|
|
73
|
-
container={tooltipContainer}
|
|
74
|
-
side="bottom"
|
|
75
|
-
open={!step.from.price.realValue ? false : undefined}>
|
|
76
|
-
<Typography size="xsmall" variant="body">
|
|
77
|
-
{step.from.price.value}
|
|
78
|
-
</Typography>
|
|
79
|
-
</Tooltip>
|
|
80
|
-
<Typography
|
|
81
|
-
size="xsmall"
|
|
82
|
-
variant="body"
|
|
83
|
-
className={tokenLabelStyles()}>
|
|
84
|
-
{step.from.token.displayName}
|
|
85
|
-
</Typography>
|
|
86
|
-
</FromToken>
|
|
87
|
-
</LeftSection>
|
|
88
|
-
<RightSection>
|
|
89
|
-
<SwapperContainer>
|
|
90
|
-
<SwapperImage state={step.state}>
|
|
91
|
-
<Image size={15} type="circular" src={step.swapper.image} />
|
|
92
|
-
{step.state && (
|
|
93
|
-
<IconHighlight type={step.state}>
|
|
94
|
-
{step.state === 'error' ? (
|
|
95
|
-
<ErrorIcon size={6} color="error" />
|
|
96
|
-
) : (
|
|
97
|
-
<WarningIcon size={6} color="warning" />
|
|
98
|
-
)}
|
|
99
|
-
</IconHighlight>
|
|
100
|
-
)}
|
|
101
|
-
</SwapperImage>
|
|
102
|
-
<Typography size="xsmall" variant="body" align="center">
|
|
103
|
-
{step.swapper.displayName}
|
|
104
|
-
</Typography>
|
|
105
|
-
</SwapperContainer>
|
|
106
|
-
<VerticalLine />
|
|
107
|
-
</RightSection>
|
|
108
|
-
</Step>
|
|
109
|
-
);
|
|
110
|
-
})}
|
|
111
|
-
<OutputSection>
|
|
112
|
-
<ChainToken
|
|
113
|
-
chainImage={steps[numberOfSteps - 1].to.chain.image}
|
|
114
|
-
tokenImage={steps[numberOfSteps - 1].to.token.image}
|
|
115
|
-
size="medium"
|
|
116
|
-
/>
|
|
117
|
-
<div>
|
|
118
|
-
<div>
|
|
119
|
-
<Tooltip
|
|
120
|
-
content={outputPrice.realValue}
|
|
121
|
-
container={tooltipContainer}
|
|
122
|
-
open={!outputPrice.realValue ? false : undefined}>
|
|
123
|
-
<Typography size="xmedium" variant="title">
|
|
124
|
-
{outputPrice.value}
|
|
125
|
-
</Typography>
|
|
126
|
-
<Divider size={4} direction="horizontal" />
|
|
127
|
-
<Typography size="large" variant="body">
|
|
128
|
-
{steps[numberOfSteps - 1].to.token.displayName}
|
|
129
|
-
</Typography>
|
|
130
|
-
</Tooltip>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
<StyledPriceImpact
|
|
134
|
-
size="xsmall"
|
|
135
|
-
warningLevel={warningLevel}
|
|
136
|
-
outputUsdValue={outputPrice.usdValue}
|
|
137
|
-
realOutputUsdValue={outputPrice.realUsdValue}
|
|
138
|
-
percentageChange={percentageChange}
|
|
139
|
-
tooltipProps={{
|
|
140
|
-
container: tooltipContainer,
|
|
141
|
-
}}
|
|
142
|
-
/>
|
|
143
|
-
</OutputSection>
|
|
144
|
-
</Steps>
|
|
145
|
-
</RouteContainer>
|
|
146
|
-
);
|
|
147
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ExpandedRoute } from './ExpandedRoute';
|
|
File without changes
|
|
File without changes
|