@rango-dev/ui 0.34.1-next.0 → 0.34.1-next.2
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/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts +1 -1
- package/dist/widget/ui/src/components/Wallet/Wallet.types.d.ts +2 -0
- package/dist/widget/ui/src/components/Wallet/Wallet.types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/SelectableCategoryList/SelectableCategoryList.helpers.ts +1 -1
- package/src/components/SelectableCategoryList/index.ts +1 -1
- package/src/components/Wallet/Wallet.types.ts +2 -0
- package/dist/widget/ui/src/containers/ConnectWalletsModal/mockData.d.ts +0 -3
- package/dist/widget/ui/src/containers/ConnectWalletsModal/mockData.d.ts.map +0 -1
- package/src/containers/ConnectWalletsModal/mockData.ts +0 -137
package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ export declare const blockchainCategoryLabel: {
|
|
|
14
14
|
OTHER: string;
|
|
15
15
|
};
|
|
16
16
|
export declare const hasAnyCategory: (list: BlockchainMeta[], blockchainType: string) => boolean;
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const getCategoriesCount: (list: BlockchainMeta[]) => number;
|
|
18
18
|
//# sourceMappingURL=SelectableCategoryList.helpers.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { SelectableCategoryList } from './SelectableCategoryList';
|
|
2
2
|
export type { SelectableCategoryListPropTypes } from './SelectableCategoryList.types';
|
|
3
3
|
export { BlockchainCategories } from './SelectableCategoryList.types';
|
|
4
|
-
export {
|
|
4
|
+
export { getCategoriesCount } from './SelectableCategoryList.helpers';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { InstallObjects, WalletType } from '@rango-dev/wallets-shared';
|
|
2
|
+
import type { TransactionType } from 'rango-sdk';
|
|
2
3
|
export declare enum WalletState {
|
|
3
4
|
NOT_INSTALLED = "not_installed",
|
|
4
5
|
DISCONNECTED = "disconnected",
|
|
@@ -12,6 +13,7 @@ export type WalletInfo = {
|
|
|
12
13
|
image: string;
|
|
13
14
|
type: string;
|
|
14
15
|
showOnMobile?: boolean;
|
|
16
|
+
blockchainTypes: TransactionType[];
|
|
15
17
|
};
|
|
16
18
|
export interface Info {
|
|
17
19
|
color: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/Wallet.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"Wallet.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Wallet/Wallet.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,oBAAY,WAAW;IACrB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,eAAe,EAAE,CAAC;CACpC,CAAC;AAEF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/ui",
|
|
3
|
-
"version": "0.34.1-next.
|
|
3
|
+
"version": "0.34.1-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@radix-ui/react-select": "^2.0.0",
|
|
51
51
|
"@radix-ui/react-switch": "^1.0.1",
|
|
52
52
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
53
|
-
"@rango-dev/wallets-shared": "^0.33.0",
|
|
53
|
+
"@rango-dev/wallets-shared": "^0.33.1-next.0",
|
|
54
54
|
"@stitches/react": "^1.2.8",
|
|
55
55
|
"copy-to-clipboard": "^3.3.3",
|
|
56
56
|
"rango-sdk": "^0.1.45",
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|
|
@@ -46,7 +46,7 @@ export const hasAnyCategory = (
|
|
|
46
46
|
blockchainType: string
|
|
47
47
|
) => list.some((blockchain) => filterByType(blockchain, blockchainType));
|
|
48
48
|
|
|
49
|
-
export const
|
|
49
|
+
export const getCategoriesCount = (list: BlockchainMeta[]) => {
|
|
50
50
|
const categoriesToCheck = Object.values(BlockchainCategories).filter(
|
|
51
51
|
(category) => category !== BlockchainCategories.ALL
|
|
52
52
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { SelectableCategoryList } from './SelectableCategoryList';
|
|
2
2
|
export type { SelectableCategoryListPropTypes } from './SelectableCategoryList.types';
|
|
3
3
|
export { BlockchainCategories } from './SelectableCategoryList.types';
|
|
4
|
-
export {
|
|
4
|
+
export { getCategoriesCount } from './SelectableCategoryList.helpers';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { InstallObjects, WalletType } from '@rango-dev/wallets-shared';
|
|
2
|
+
import type { TransactionType } from 'rango-sdk';
|
|
2
3
|
|
|
3
4
|
export enum WalletState {
|
|
4
5
|
NOT_INSTALLED = 'not_installed',
|
|
@@ -14,6 +15,7 @@ export type WalletInfo = {
|
|
|
14
15
|
image: string;
|
|
15
16
|
type: string;
|
|
16
17
|
showOnMobile?: boolean;
|
|
18
|
+
blockchainTypes: TransactionType[];
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
export interface Info {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/ConnectWalletsModal/mockData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAMnD,eAAO,MAAM,WAAW,EAAE,UAAU,EAkInC,CAAC"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import type { WalletInfo } from '../../components';
|
|
2
|
-
|
|
3
|
-
import { WalletTypes } from '@rango-dev/wallets-shared';
|
|
4
|
-
|
|
5
|
-
import { WalletState } from '../../components';
|
|
6
|
-
|
|
7
|
-
export const walletsInfo: WalletInfo[] = [
|
|
8
|
-
{
|
|
9
|
-
image:
|
|
10
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
11
|
-
title: 'Coinbase',
|
|
12
|
-
state: WalletState.DISCONNECTED,
|
|
13
|
-
link: '',
|
|
14
|
-
type: WalletTypes.COINBASE,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
image:
|
|
18
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
19
|
-
title: 'Coinbase',
|
|
20
|
-
state: WalletState.CONNECTED,
|
|
21
|
-
link: '',
|
|
22
|
-
type: WalletTypes.COINBASE,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
image:
|
|
26
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
27
|
-
title: 'Coinbase',
|
|
28
|
-
state: WalletState.CONNECTING,
|
|
29
|
-
link: '',
|
|
30
|
-
type: WalletTypes.COINBASE,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
image:
|
|
34
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
35
|
-
title: 'Coinbase',
|
|
36
|
-
state: WalletState.NOT_INSTALLED,
|
|
37
|
-
type: WalletTypes.COINBASE,
|
|
38
|
-
|
|
39
|
-
link: 'https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad?hl=en',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
image:
|
|
43
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
44
|
-
title: 'Coinbase',
|
|
45
|
-
state: WalletState.DISCONNECTED,
|
|
46
|
-
link: '',
|
|
47
|
-
type: WalletTypes.COINBASE,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
image:
|
|
51
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
52
|
-
title: 'Coinbase',
|
|
53
|
-
state: WalletState.CONNECTED,
|
|
54
|
-
link: '',
|
|
55
|
-
type: WalletTypes.COINBASE,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
image:
|
|
59
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
60
|
-
title: 'Coinbase',
|
|
61
|
-
state: WalletState.DISCONNECTED,
|
|
62
|
-
link: '',
|
|
63
|
-
type: WalletTypes.COINBASE,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
image:
|
|
67
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
68
|
-
title: 'Coinbase',
|
|
69
|
-
state: WalletState.DISCONNECTED,
|
|
70
|
-
link: '',
|
|
71
|
-
type: WalletTypes.COINBASE,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
image:
|
|
75
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
76
|
-
title: 'Coinbase',
|
|
77
|
-
state: WalletState.DISCONNECTED,
|
|
78
|
-
link: '',
|
|
79
|
-
type: WalletTypes.COINBASE,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
image:
|
|
83
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
84
|
-
title: 'Coinbase',
|
|
85
|
-
state: WalletState.DISCONNECTED,
|
|
86
|
-
link: '',
|
|
87
|
-
type: WalletTypes.COINBASE,
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
image:
|
|
91
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
92
|
-
title: 'Coinbase',
|
|
93
|
-
state: WalletState.DISCONNECTED,
|
|
94
|
-
link: '',
|
|
95
|
-
type: WalletTypes.COINBASE,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
image:
|
|
99
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
100
|
-
title: 'Coinbase',
|
|
101
|
-
state: WalletState.DISCONNECTED,
|
|
102
|
-
link: '',
|
|
103
|
-
type: WalletTypes.COINBASE,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
image:
|
|
107
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
108
|
-
title: 'Coinbase',
|
|
109
|
-
state: WalletState.DISCONNECTED,
|
|
110
|
-
link: '',
|
|
111
|
-
type: WalletTypes.COINBASE,
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
image:
|
|
115
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
116
|
-
title: 'Coinbase',
|
|
117
|
-
state: WalletState.DISCONNECTED,
|
|
118
|
-
link: '',
|
|
119
|
-
type: WalletTypes.COINBASE,
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
image:
|
|
123
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
124
|
-
title: 'Coinbase',
|
|
125
|
-
state: WalletState.DISCONNECTED,
|
|
126
|
-
link: '',
|
|
127
|
-
type: WalletTypes.COINBASE,
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
image:
|
|
131
|
-
'https://raw.githubusercontent.com/rango-exchange/assets/main/wallets/coinbase/icon.svg',
|
|
132
|
-
title: 'Coinbase',
|
|
133
|
-
state: WalletState.DISCONNECTED,
|
|
134
|
-
link: '',
|
|
135
|
-
type: WalletTypes.COINBASE,
|
|
136
|
-
},
|
|
137
|
-
];
|