@orderly.network/ui-scaffold 2.4.1 → 2.5.0-alpha.1
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.d.mts +86 -101
- package/dist/index.d.ts +86 -101
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode, HTMLAttributeAnchorTarget,
|
|
3
|
+
import react__default, { ReactNode, HTMLAttributeAnchorTarget, FC, PropsWithChildren } from 'react';
|
|
4
4
|
import * as _orderly_network_types from '@orderly.network/types';
|
|
5
|
-
import {
|
|
6
|
-
import { LogoProps } from '@orderly.network/ui';
|
|
5
|
+
import { NetworkId } from '@orderly.network/types';
|
|
7
6
|
import { WsNetworkStatus } from '@orderly.network/hooks';
|
|
8
7
|
import * as _orderly_network_i18n from '@orderly.network/i18n';
|
|
9
8
|
import { LocaleContextState } from '@orderly.network/i18n';
|
|
@@ -11,6 +10,8 @@ import { LocaleContextState } from '@orderly.network/i18n';
|
|
|
11
10
|
declare const AccountMenuWidget: () => react_jsx_runtime.JSX.Element;
|
|
12
11
|
|
|
13
12
|
type LeftNavProps = {
|
|
13
|
+
/** custom leading */
|
|
14
|
+
leading?: ReactNode;
|
|
14
15
|
menus?: LeftNavItem[];
|
|
15
16
|
twitterUrl?: string;
|
|
16
17
|
telegramUrl?: string;
|
|
@@ -18,7 +19,6 @@ type LeftNavProps = {
|
|
|
18
19
|
duneUrl?: string;
|
|
19
20
|
feedbackUrl?: string;
|
|
20
21
|
customLeftNav?: ReactNode;
|
|
21
|
-
products?: ReactNode;
|
|
22
22
|
};
|
|
23
23
|
type LeftNavItem = {
|
|
24
24
|
name: string;
|
|
@@ -58,90 +58,13 @@ type MainNavItem = {
|
|
|
58
58
|
isHomePageInMobile?: boolean;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
type CampaignProps = {
|
|
62
|
-
item: MainNavItem;
|
|
63
|
-
className?: string;
|
|
64
|
-
onItemClick?: (item: MainNavItem[]) => void;
|
|
65
|
-
current?: string[];
|
|
66
|
-
};
|
|
67
|
-
|
|
68
61
|
type MainNavClassNames = {
|
|
69
62
|
root?: string;
|
|
70
63
|
navItem?: string;
|
|
71
64
|
subMenu?: string;
|
|
72
65
|
};
|
|
73
|
-
type MainNavItemsProps = {
|
|
74
|
-
items?: MainNavItem[];
|
|
75
|
-
current?: string[];
|
|
76
|
-
classNames?: MainNavClassNames;
|
|
77
|
-
onItemClick?: (item: MainNavItem[]) => void;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
declare enum CampaignPositionEnum {
|
|
81
|
-
menuLeading = "menuLeading",
|
|
82
|
-
menuTailing = "menuTailing",
|
|
83
|
-
navTailing = "navTailing"
|
|
84
|
-
}
|
|
85
66
|
|
|
86
|
-
|
|
87
|
-
className?: string;
|
|
88
|
-
logo: LogoProps;
|
|
89
|
-
mainMenus: MainNavItemsProps;
|
|
90
|
-
leading?: ReactNode;
|
|
91
|
-
trailing?: ReactNode;
|
|
92
|
-
wrongNetwork: boolean;
|
|
93
|
-
isConnected: boolean;
|
|
94
|
-
campaigns?: CampaignProps;
|
|
95
|
-
campaignPosition?: CampaignPositionEnum;
|
|
96
|
-
classNames?: {
|
|
97
|
-
root?: string;
|
|
98
|
-
mainNav?: MainNavClassNames;
|
|
99
|
-
logo?: string;
|
|
100
|
-
products?: string;
|
|
101
|
-
account?: string;
|
|
102
|
-
chains?: string;
|
|
103
|
-
campaignButton?: string;
|
|
104
|
-
};
|
|
105
|
-
status?: AccountStatusEnum;
|
|
106
|
-
disabledConnect?: boolean;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
type MainNavWidgetProps = PropsWithChildren<{
|
|
110
|
-
leading?: ReactNode;
|
|
111
|
-
trailing?: ReactNode;
|
|
112
|
-
logo?: {
|
|
113
|
-
src: string;
|
|
114
|
-
alt: string;
|
|
115
|
-
};
|
|
116
|
-
mainMenus?: MainNavItem[];
|
|
117
|
-
campaigns?: MainNavItem;
|
|
118
|
-
campaignPosition?: CampaignPositionEnum;
|
|
119
|
-
initialProduct?: string;
|
|
120
|
-
/**
|
|
121
|
-
* initial menu path, if it has submenus, use array
|
|
122
|
-
* @type string | string[]
|
|
123
|
-
*/
|
|
124
|
-
initialMenu?: string | string[];
|
|
125
|
-
onItemClick?: (options: {
|
|
126
|
-
href: string;
|
|
127
|
-
name: string;
|
|
128
|
-
scope?: string;
|
|
129
|
-
}) => void;
|
|
130
|
-
/** only works on mobile */
|
|
131
|
-
customRender?: (components: {
|
|
132
|
-
title?: ReactNode;
|
|
133
|
-
languageSwitcher?: ReactNode;
|
|
134
|
-
scanQRCode?: ReactNode;
|
|
135
|
-
subAccount?: ReactNode;
|
|
136
|
-
linkDevice?: ReactNode;
|
|
137
|
-
chainMenu?: ReactNode;
|
|
138
|
-
walletConnect?: ReactNode;
|
|
139
|
-
}) => ReactNode;
|
|
140
|
-
/** only works on mobile */
|
|
141
|
-
leftNav?: LeftNavProps;
|
|
142
|
-
customLeftNav?: ReactNode;
|
|
143
|
-
}> & Pick<MainNavProps, "classNames">;
|
|
144
|
-
declare const MainNavWidget: (props: MainNavWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
67
|
+
declare const LeftNavWidget: FC<LeftNavProps>;
|
|
145
68
|
|
|
146
69
|
type BottomNavProps$1 = {
|
|
147
70
|
mainMenus?: BottomNavItem[];
|
|
@@ -170,22 +93,6 @@ declare const FooterWidget: (props: FooterProps) => react_jsx_runtime.JSX.Elemen
|
|
|
170
93
|
|
|
171
94
|
declare const Footer: FC<FooterReturns & FooterProps>;
|
|
172
95
|
|
|
173
|
-
declare const LeftNavWidget: FC<LeftNavProps>;
|
|
174
|
-
|
|
175
|
-
declare const useLeftNavState: () => {};
|
|
176
|
-
type LeftNavState = ReturnType<typeof useLeftNavState>;
|
|
177
|
-
|
|
178
|
-
type LeftNavUIProps = LeftNavProps & LeftNavState & {
|
|
179
|
-
className?: string;
|
|
180
|
-
logo?: {
|
|
181
|
-
src: string;
|
|
182
|
-
alt: string;
|
|
183
|
-
};
|
|
184
|
-
routerAdapter?: RouterAdapter;
|
|
185
|
-
showSubAccount?: boolean;
|
|
186
|
-
};
|
|
187
|
-
declare const LeftNavUI: FC<LeftNavUIProps>;
|
|
188
|
-
|
|
189
96
|
type SideMenuItem = {
|
|
190
97
|
name: string;
|
|
191
98
|
icon?: react__default.ReactNode;
|
|
@@ -254,7 +161,7 @@ type ScaffoldProps = {
|
|
|
254
161
|
*/
|
|
255
162
|
topBar?: ReactNode;
|
|
256
163
|
/**
|
|
257
|
-
* custom top nav props
|
|
164
|
+
* custom top nav props
|
|
258
165
|
*/
|
|
259
166
|
mainNavProps?: MainNavWidgetProps;
|
|
260
167
|
/**
|
|
@@ -294,7 +201,85 @@ type BottomNavProps = {
|
|
|
294
201
|
};
|
|
295
202
|
declare const BottomNav: (props: BottomNavProps) => react_jsx_runtime.JSX.Element | null;
|
|
296
203
|
|
|
297
|
-
|
|
204
|
+
declare const useLeftNavState: () => {};
|
|
205
|
+
type LeftNavState = ReturnType<typeof useLeftNavState>;
|
|
206
|
+
|
|
207
|
+
type LeftNavUIProps = LeftNavProps & LeftNavState & {
|
|
208
|
+
className?: string;
|
|
209
|
+
logo?: {
|
|
210
|
+
src: string;
|
|
211
|
+
alt: string;
|
|
212
|
+
};
|
|
213
|
+
routerAdapter?: RouterAdapter;
|
|
214
|
+
showSubAccount?: boolean;
|
|
215
|
+
};
|
|
216
|
+
declare const LeftNavUI: FC<LeftNavUIProps>;
|
|
217
|
+
|
|
218
|
+
declare enum CampaignPositionEnum {
|
|
219
|
+
menuLeading = "menuLeading",
|
|
220
|
+
menuTailing = "menuTailing",
|
|
221
|
+
navTailing = "navTailing"
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
type MainNavWidgetProps = {
|
|
225
|
+
leading?: ReactNode;
|
|
226
|
+
trailing?: ReactNode;
|
|
227
|
+
logo?: {
|
|
228
|
+
src: string;
|
|
229
|
+
alt: string;
|
|
230
|
+
};
|
|
231
|
+
mainMenus?: MainNavItem[];
|
|
232
|
+
campaigns?: MainNavItem;
|
|
233
|
+
campaignPosition?: CampaignPositionEnum;
|
|
234
|
+
/**
|
|
235
|
+
* initial menu path, if it has submenus, use array
|
|
236
|
+
* @type string | string[]
|
|
237
|
+
*/
|
|
238
|
+
initialMenu?: string | string[];
|
|
239
|
+
onItemClick?: (options: {
|
|
240
|
+
href: string;
|
|
241
|
+
name: string;
|
|
242
|
+
scope?: string;
|
|
243
|
+
}) => void;
|
|
244
|
+
/** only works on mobile */
|
|
245
|
+
leftNav?: LeftNavProps;
|
|
246
|
+
customLeftNav?: ReactNode;
|
|
247
|
+
className?: string;
|
|
248
|
+
classNames?: {
|
|
249
|
+
root?: string;
|
|
250
|
+
mainNav?: MainNavClassNames;
|
|
251
|
+
logo?: string;
|
|
252
|
+
account?: string;
|
|
253
|
+
chains?: string;
|
|
254
|
+
campaignButton?: string;
|
|
255
|
+
};
|
|
256
|
+
/** custom render main nav */
|
|
257
|
+
customRender?: (components: {
|
|
258
|
+
/** Logo or title component (desktop & mobile) */
|
|
259
|
+
title?: ReactNode;
|
|
260
|
+
/** Language selection component (desktop & mobile) */
|
|
261
|
+
languageSwitcher?: ReactNode;
|
|
262
|
+
/** Sub-account component (desktop & mobile) */
|
|
263
|
+
subAccount?: ReactNode;
|
|
264
|
+
/** Device linking component (desktop & mobile) */
|
|
265
|
+
linkDevice?: ReactNode;
|
|
266
|
+
/** Chain selection menu (desktop & mobile) */
|
|
267
|
+
chainMenu?: ReactNode;
|
|
268
|
+
/** Wallet connection component (desktop & mobile) */
|
|
269
|
+
walletConnect?: ReactNode;
|
|
270
|
+
/** Main navigation menu (desktop & mobile) */
|
|
271
|
+
mainNav?: ReactNode;
|
|
272
|
+
/** Account summary component (desktop only) */
|
|
273
|
+
accountSummary?: ReactNode;
|
|
274
|
+
/** Left navigation component (mobile only) */
|
|
275
|
+
leftNav?: ReactNode;
|
|
276
|
+
/** QR code scanner component (mobile only) */
|
|
277
|
+
scanQRCode?: ReactNode;
|
|
278
|
+
}) => ReactNode;
|
|
279
|
+
};
|
|
280
|
+
declare const MainNavWidget: (props: PropsWithChildren<MainNavWidgetProps>) => react_jsx_runtime.JSX.Element;
|
|
281
|
+
|
|
282
|
+
type MainNavMobileProps = {
|
|
298
283
|
current?: string;
|
|
299
284
|
subItems?: {
|
|
300
285
|
name: string;
|
|
@@ -302,7 +287,7 @@ type Props = {
|
|
|
302
287
|
}[];
|
|
303
288
|
routerAdapter?: RouterAdapter;
|
|
304
289
|
} & MainNavWidgetProps;
|
|
305
|
-
declare const MainNavMobile: FC<
|
|
290
|
+
declare const MainNavMobile: FC<MainNavMobileProps>;
|
|
306
291
|
|
|
307
292
|
declare const AccountSummaryWidget: () => react_jsx_runtime.JSX.Element;
|
|
308
293
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode, HTMLAttributeAnchorTarget,
|
|
3
|
+
import react__default, { ReactNode, HTMLAttributeAnchorTarget, FC, PropsWithChildren } from 'react';
|
|
4
4
|
import * as _orderly_network_types from '@orderly.network/types';
|
|
5
|
-
import {
|
|
6
|
-
import { LogoProps } from '@orderly.network/ui';
|
|
5
|
+
import { NetworkId } from '@orderly.network/types';
|
|
7
6
|
import { WsNetworkStatus } from '@orderly.network/hooks';
|
|
8
7
|
import * as _orderly_network_i18n from '@orderly.network/i18n';
|
|
9
8
|
import { LocaleContextState } from '@orderly.network/i18n';
|
|
@@ -11,6 +10,8 @@ import { LocaleContextState } from '@orderly.network/i18n';
|
|
|
11
10
|
declare const AccountMenuWidget: () => react_jsx_runtime.JSX.Element;
|
|
12
11
|
|
|
13
12
|
type LeftNavProps = {
|
|
13
|
+
/** custom leading */
|
|
14
|
+
leading?: ReactNode;
|
|
14
15
|
menus?: LeftNavItem[];
|
|
15
16
|
twitterUrl?: string;
|
|
16
17
|
telegramUrl?: string;
|
|
@@ -18,7 +19,6 @@ type LeftNavProps = {
|
|
|
18
19
|
duneUrl?: string;
|
|
19
20
|
feedbackUrl?: string;
|
|
20
21
|
customLeftNav?: ReactNode;
|
|
21
|
-
products?: ReactNode;
|
|
22
22
|
};
|
|
23
23
|
type LeftNavItem = {
|
|
24
24
|
name: string;
|
|
@@ -58,90 +58,13 @@ type MainNavItem = {
|
|
|
58
58
|
isHomePageInMobile?: boolean;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
type CampaignProps = {
|
|
62
|
-
item: MainNavItem;
|
|
63
|
-
className?: string;
|
|
64
|
-
onItemClick?: (item: MainNavItem[]) => void;
|
|
65
|
-
current?: string[];
|
|
66
|
-
};
|
|
67
|
-
|
|
68
61
|
type MainNavClassNames = {
|
|
69
62
|
root?: string;
|
|
70
63
|
navItem?: string;
|
|
71
64
|
subMenu?: string;
|
|
72
65
|
};
|
|
73
|
-
type MainNavItemsProps = {
|
|
74
|
-
items?: MainNavItem[];
|
|
75
|
-
current?: string[];
|
|
76
|
-
classNames?: MainNavClassNames;
|
|
77
|
-
onItemClick?: (item: MainNavItem[]) => void;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
declare enum CampaignPositionEnum {
|
|
81
|
-
menuLeading = "menuLeading",
|
|
82
|
-
menuTailing = "menuTailing",
|
|
83
|
-
navTailing = "navTailing"
|
|
84
|
-
}
|
|
85
66
|
|
|
86
|
-
|
|
87
|
-
className?: string;
|
|
88
|
-
logo: LogoProps;
|
|
89
|
-
mainMenus: MainNavItemsProps;
|
|
90
|
-
leading?: ReactNode;
|
|
91
|
-
trailing?: ReactNode;
|
|
92
|
-
wrongNetwork: boolean;
|
|
93
|
-
isConnected: boolean;
|
|
94
|
-
campaigns?: CampaignProps;
|
|
95
|
-
campaignPosition?: CampaignPositionEnum;
|
|
96
|
-
classNames?: {
|
|
97
|
-
root?: string;
|
|
98
|
-
mainNav?: MainNavClassNames;
|
|
99
|
-
logo?: string;
|
|
100
|
-
products?: string;
|
|
101
|
-
account?: string;
|
|
102
|
-
chains?: string;
|
|
103
|
-
campaignButton?: string;
|
|
104
|
-
};
|
|
105
|
-
status?: AccountStatusEnum;
|
|
106
|
-
disabledConnect?: boolean;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
type MainNavWidgetProps = PropsWithChildren<{
|
|
110
|
-
leading?: ReactNode;
|
|
111
|
-
trailing?: ReactNode;
|
|
112
|
-
logo?: {
|
|
113
|
-
src: string;
|
|
114
|
-
alt: string;
|
|
115
|
-
};
|
|
116
|
-
mainMenus?: MainNavItem[];
|
|
117
|
-
campaigns?: MainNavItem;
|
|
118
|
-
campaignPosition?: CampaignPositionEnum;
|
|
119
|
-
initialProduct?: string;
|
|
120
|
-
/**
|
|
121
|
-
* initial menu path, if it has submenus, use array
|
|
122
|
-
* @type string | string[]
|
|
123
|
-
*/
|
|
124
|
-
initialMenu?: string | string[];
|
|
125
|
-
onItemClick?: (options: {
|
|
126
|
-
href: string;
|
|
127
|
-
name: string;
|
|
128
|
-
scope?: string;
|
|
129
|
-
}) => void;
|
|
130
|
-
/** only works on mobile */
|
|
131
|
-
customRender?: (components: {
|
|
132
|
-
title?: ReactNode;
|
|
133
|
-
languageSwitcher?: ReactNode;
|
|
134
|
-
scanQRCode?: ReactNode;
|
|
135
|
-
subAccount?: ReactNode;
|
|
136
|
-
linkDevice?: ReactNode;
|
|
137
|
-
chainMenu?: ReactNode;
|
|
138
|
-
walletConnect?: ReactNode;
|
|
139
|
-
}) => ReactNode;
|
|
140
|
-
/** only works on mobile */
|
|
141
|
-
leftNav?: LeftNavProps;
|
|
142
|
-
customLeftNav?: ReactNode;
|
|
143
|
-
}> & Pick<MainNavProps, "classNames">;
|
|
144
|
-
declare const MainNavWidget: (props: MainNavWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
67
|
+
declare const LeftNavWidget: FC<LeftNavProps>;
|
|
145
68
|
|
|
146
69
|
type BottomNavProps$1 = {
|
|
147
70
|
mainMenus?: BottomNavItem[];
|
|
@@ -170,22 +93,6 @@ declare const FooterWidget: (props: FooterProps) => react_jsx_runtime.JSX.Elemen
|
|
|
170
93
|
|
|
171
94
|
declare const Footer: FC<FooterReturns & FooterProps>;
|
|
172
95
|
|
|
173
|
-
declare const LeftNavWidget: FC<LeftNavProps>;
|
|
174
|
-
|
|
175
|
-
declare const useLeftNavState: () => {};
|
|
176
|
-
type LeftNavState = ReturnType<typeof useLeftNavState>;
|
|
177
|
-
|
|
178
|
-
type LeftNavUIProps = LeftNavProps & LeftNavState & {
|
|
179
|
-
className?: string;
|
|
180
|
-
logo?: {
|
|
181
|
-
src: string;
|
|
182
|
-
alt: string;
|
|
183
|
-
};
|
|
184
|
-
routerAdapter?: RouterAdapter;
|
|
185
|
-
showSubAccount?: boolean;
|
|
186
|
-
};
|
|
187
|
-
declare const LeftNavUI: FC<LeftNavUIProps>;
|
|
188
|
-
|
|
189
96
|
type SideMenuItem = {
|
|
190
97
|
name: string;
|
|
191
98
|
icon?: react__default.ReactNode;
|
|
@@ -254,7 +161,7 @@ type ScaffoldProps = {
|
|
|
254
161
|
*/
|
|
255
162
|
topBar?: ReactNode;
|
|
256
163
|
/**
|
|
257
|
-
* custom top nav props
|
|
164
|
+
* custom top nav props
|
|
258
165
|
*/
|
|
259
166
|
mainNavProps?: MainNavWidgetProps;
|
|
260
167
|
/**
|
|
@@ -294,7 +201,85 @@ type BottomNavProps = {
|
|
|
294
201
|
};
|
|
295
202
|
declare const BottomNav: (props: BottomNavProps) => react_jsx_runtime.JSX.Element | null;
|
|
296
203
|
|
|
297
|
-
|
|
204
|
+
declare const useLeftNavState: () => {};
|
|
205
|
+
type LeftNavState = ReturnType<typeof useLeftNavState>;
|
|
206
|
+
|
|
207
|
+
type LeftNavUIProps = LeftNavProps & LeftNavState & {
|
|
208
|
+
className?: string;
|
|
209
|
+
logo?: {
|
|
210
|
+
src: string;
|
|
211
|
+
alt: string;
|
|
212
|
+
};
|
|
213
|
+
routerAdapter?: RouterAdapter;
|
|
214
|
+
showSubAccount?: boolean;
|
|
215
|
+
};
|
|
216
|
+
declare const LeftNavUI: FC<LeftNavUIProps>;
|
|
217
|
+
|
|
218
|
+
declare enum CampaignPositionEnum {
|
|
219
|
+
menuLeading = "menuLeading",
|
|
220
|
+
menuTailing = "menuTailing",
|
|
221
|
+
navTailing = "navTailing"
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
type MainNavWidgetProps = {
|
|
225
|
+
leading?: ReactNode;
|
|
226
|
+
trailing?: ReactNode;
|
|
227
|
+
logo?: {
|
|
228
|
+
src: string;
|
|
229
|
+
alt: string;
|
|
230
|
+
};
|
|
231
|
+
mainMenus?: MainNavItem[];
|
|
232
|
+
campaigns?: MainNavItem;
|
|
233
|
+
campaignPosition?: CampaignPositionEnum;
|
|
234
|
+
/**
|
|
235
|
+
* initial menu path, if it has submenus, use array
|
|
236
|
+
* @type string | string[]
|
|
237
|
+
*/
|
|
238
|
+
initialMenu?: string | string[];
|
|
239
|
+
onItemClick?: (options: {
|
|
240
|
+
href: string;
|
|
241
|
+
name: string;
|
|
242
|
+
scope?: string;
|
|
243
|
+
}) => void;
|
|
244
|
+
/** only works on mobile */
|
|
245
|
+
leftNav?: LeftNavProps;
|
|
246
|
+
customLeftNav?: ReactNode;
|
|
247
|
+
className?: string;
|
|
248
|
+
classNames?: {
|
|
249
|
+
root?: string;
|
|
250
|
+
mainNav?: MainNavClassNames;
|
|
251
|
+
logo?: string;
|
|
252
|
+
account?: string;
|
|
253
|
+
chains?: string;
|
|
254
|
+
campaignButton?: string;
|
|
255
|
+
};
|
|
256
|
+
/** custom render main nav */
|
|
257
|
+
customRender?: (components: {
|
|
258
|
+
/** Logo or title component (desktop & mobile) */
|
|
259
|
+
title?: ReactNode;
|
|
260
|
+
/** Language selection component (desktop & mobile) */
|
|
261
|
+
languageSwitcher?: ReactNode;
|
|
262
|
+
/** Sub-account component (desktop & mobile) */
|
|
263
|
+
subAccount?: ReactNode;
|
|
264
|
+
/** Device linking component (desktop & mobile) */
|
|
265
|
+
linkDevice?: ReactNode;
|
|
266
|
+
/** Chain selection menu (desktop & mobile) */
|
|
267
|
+
chainMenu?: ReactNode;
|
|
268
|
+
/** Wallet connection component (desktop & mobile) */
|
|
269
|
+
walletConnect?: ReactNode;
|
|
270
|
+
/** Main navigation menu (desktop & mobile) */
|
|
271
|
+
mainNav?: ReactNode;
|
|
272
|
+
/** Account summary component (desktop only) */
|
|
273
|
+
accountSummary?: ReactNode;
|
|
274
|
+
/** Left navigation component (mobile only) */
|
|
275
|
+
leftNav?: ReactNode;
|
|
276
|
+
/** QR code scanner component (mobile only) */
|
|
277
|
+
scanQRCode?: ReactNode;
|
|
278
|
+
}) => ReactNode;
|
|
279
|
+
};
|
|
280
|
+
declare const MainNavWidget: (props: PropsWithChildren<MainNavWidgetProps>) => react_jsx_runtime.JSX.Element;
|
|
281
|
+
|
|
282
|
+
type MainNavMobileProps = {
|
|
298
283
|
current?: string;
|
|
299
284
|
subItems?: {
|
|
300
285
|
name: string;
|
|
@@ -302,7 +287,7 @@ type Props = {
|
|
|
302
287
|
}[];
|
|
303
288
|
routerAdapter?: RouterAdapter;
|
|
304
289
|
} & MainNavWidgetProps;
|
|
305
|
-
declare const MainNavMobile: FC<
|
|
290
|
+
declare const MainNavMobile: FC<MainNavMobileProps>;
|
|
306
291
|
|
|
307
292
|
declare const AccountSummaryWidget: () => react_jsx_runtime.JSX.Element;
|
|
308
293
|
|