@rango-dev/ui 0.45.1-next.6 → 0.45.1-next.7
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 +1 -1
- package/dist/index.js.map +3 -3
- package/dist/ui.build.json +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.types.d.ts +2 -0
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.types.d.ts +2 -0
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/SwapListItem/SwapListItem.tsx +2 -0
- package/src/components/SwapListItem/SwapListItem.types.ts +3 -0
- package/src/components/SwapListItem/SwapToken.tsx +4 -1
- package/src/components/SwapListItem/SwapToken.types.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapListItem/SwapListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,CAAC,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"SwapListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapListItem/SwapListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,CAAC,qBAAqB,CAAC,qBAkD3E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PendingSwapStep } from 'rango-types';
|
|
1
2
|
export type Status = 'running' | 'failed' | 'success';
|
|
2
3
|
export interface SwapListItemProps {
|
|
3
4
|
requestId: string;
|
|
@@ -7,6 +8,7 @@ export interface SwapListItemProps {
|
|
|
7
8
|
swapTokenData: SwapTokenData;
|
|
8
9
|
onlyShowTime?: boolean;
|
|
9
10
|
tooltipContainer?: HTMLElement;
|
|
11
|
+
currentStep: PendingSwapStep | null;
|
|
10
12
|
}
|
|
11
13
|
export interface LoadingProps {
|
|
12
14
|
isLoading: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapListItem.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapListItem/SwapListItem.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,EAAE,aAAa,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"SwapListItem.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapListItem/SwapListItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,EAAE,aAAa,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,WAAW,EAAE,eAAe,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG,YAAY,CAAC;AAErE,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;QACF,UAAU,EAAE;YACV,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,EAAE,EAAE;QACF,KAAK,EAAE;YACL,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;QACF,UAAU,EAAE;YACV,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapToken.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapListItem/SwapToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"SwapToken.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapListItem/SwapToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBA+HzC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { LoadingProps, Status, SwapTokenData } from './SwapListItem.types.js';
|
|
2
|
+
import type { PendingSwapStep } from 'rango-types';
|
|
2
3
|
export interface SwapTokenProps {
|
|
3
4
|
data: SwapTokenData;
|
|
4
5
|
status: Status;
|
|
5
6
|
tooltipContainer?: HTMLElement;
|
|
7
|
+
currentStep: PendingSwapStep | null;
|
|
6
8
|
}
|
|
7
9
|
export type PropTypes = SwapTokenProps | LoadingProps;
|
|
8
10
|
//# sourceMappingURL=SwapToken.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapToken.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapListItem/SwapToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EACN,aAAa,EACd,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"SwapToken.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/SwapListItem/SwapToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EACN,aAAa,EACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,WAAW,EAAE,eAAe,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/ui",
|
|
3
|
-
"version": "0.45.1-next.
|
|
3
|
+
"version": "0.45.1-next.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@radix-ui/react-select": "^2.0.0",
|
|
54
54
|
"@radix-ui/react-switch": "^1.0.1",
|
|
55
55
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
56
|
-
"@rango-dev/wallets-shared": "^0.43.1-next.
|
|
56
|
+
"@rango-dev/wallets-shared": "^0.43.1-next.4",
|
|
57
57
|
"@stitches/react": "^1.2.8",
|
|
58
58
|
"copy-to-clipboard": "^3.3.3",
|
|
59
59
|
"rango-types": "^0.1.82",
|
|
@@ -41,6 +41,7 @@ export function SwapListItem(props: PropsWithChildren<SwapListItemPropTypes>) {
|
|
|
41
41
|
status,
|
|
42
42
|
swapTokenData,
|
|
43
43
|
tooltipContainer,
|
|
44
|
+
currentStep,
|
|
44
45
|
} = props;
|
|
45
46
|
return (
|
|
46
47
|
<Main onClick={onClick.bind(null, requestId)}>
|
|
@@ -62,6 +63,7 @@ export function SwapListItem(props: PropsWithChildren<SwapListItemPropTypes>) {
|
|
|
62
63
|
data={swapTokenData}
|
|
63
64
|
status={status}
|
|
64
65
|
tooltipContainer={tooltipContainer}
|
|
66
|
+
currentStep={currentStep}
|
|
65
67
|
/>
|
|
66
68
|
</Container>
|
|
67
69
|
</Main>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { PendingSwapStep } from 'rango-types';
|
|
2
|
+
|
|
1
3
|
export type Status = 'running' | 'failed' | 'success';
|
|
2
4
|
|
|
3
5
|
export interface SwapListItemProps {
|
|
@@ -8,6 +10,7 @@ export interface SwapListItemProps {
|
|
|
8
10
|
swapTokenData: SwapTokenData;
|
|
9
11
|
onlyShowTime?: boolean;
|
|
10
12
|
tooltipContainer?: HTMLElement;
|
|
13
|
+
currentStep: PendingSwapStep | null;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
export interface LoadingProps {
|
|
@@ -72,6 +72,7 @@ export function SwapToken(props: PropTypes) {
|
|
|
72
72
|
},
|
|
73
73
|
status,
|
|
74
74
|
tooltipContainer,
|
|
75
|
+
currentStep,
|
|
75
76
|
} = props;
|
|
76
77
|
|
|
77
78
|
return (
|
|
@@ -109,7 +110,9 @@ export function SwapToken(props: PropTypes) {
|
|
|
109
110
|
</Typography>
|
|
110
111
|
</TopSection>
|
|
111
112
|
<Typography size="small" variant="body" color="neutral700">
|
|
112
|
-
{
|
|
113
|
+
{currentStep?.fromBlockchain === currentStep?.toBlockchain
|
|
114
|
+
? i18n.t('Waiting for the swap transaction')
|
|
115
|
+
: i18n.t('Waiting for the bridge transaction')}
|
|
113
116
|
</Typography>
|
|
114
117
|
</Layout>
|
|
115
118
|
) : (
|
|
@@ -3,11 +3,13 @@ import type {
|
|
|
3
3
|
Status,
|
|
4
4
|
SwapTokenData,
|
|
5
5
|
} from './SwapListItem.types.js';
|
|
6
|
+
import type { PendingSwapStep } from 'rango-types';
|
|
6
7
|
|
|
7
8
|
export interface SwapTokenProps {
|
|
8
9
|
data: SwapTokenData;
|
|
9
10
|
status: Status;
|
|
10
11
|
tooltipContainer?: HTMLElement;
|
|
12
|
+
currentStep: PendingSwapStep | null;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
export type PropTypes = SwapTokenProps | LoadingProps;
|