@orderly.network/ui-scaffold 2.1.3 → 2.2.0

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 CHANGED
@@ -24,6 +24,21 @@ type MainNavItem = {
24
24
  children?: MainNavItem[];
25
25
  className?: string;
26
26
  asChild?: boolean;
27
+ /**
28
+ * if true, the item will be shown as a submenu in mobile
29
+ */
30
+ isSubMenuInMobile?: boolean;
31
+ /**
32
+ * if provided, the item is a submenu in mobile, and this will be the a back nav
33
+ */
34
+ subMenuBackNav?: {
35
+ name: string;
36
+ href: string;
37
+ };
38
+ /**
39
+ * if true, the item will be shown as a home page in mobile
40
+ */
41
+ isHomePageInMobile?: boolean;
27
42
  };
28
43
 
29
44
  type CampaignProps = {
@@ -98,27 +113,32 @@ type MainNavWidgetProps = PropsWithChildren<{
98
113
  }> & Pick<MainNavProps, "classNames">;
99
114
  declare const MainNavWidget: (props: MainNavWidgetProps) => react_jsx_runtime.JSX.Element;
100
115
 
101
- declare const AccountSummaryWidget: () => react_jsx_runtime.JSX.Element;
116
+ type BottomNavProps$1 = {
117
+ mainMenus?: BottomNavItem[];
118
+ current?: string;
119
+ onRouteChange?: RouterAdapter["onRouteChange"];
120
+ };
121
+ type BottomNavItem = {
122
+ name: string;
123
+ href: string;
124
+ activeIcon: ReactNode;
125
+ inactiveIcon: ReactNode;
126
+ };
127
+ declare const BottomNavWidget: (props: BottomNavProps$1) => react_jsx_runtime.JSX.Element | null;
102
128
 
103
- declare const ChainMenuWidget: () => react_jsx_runtime.JSX.Element;
129
+ type FooterReturns = {
130
+ wsStatus: WsNetworkStatus;
131
+ };
104
132
 
105
- type UseChainMenuScriptReturn = ReturnType<typeof useChainMenuScript>;
106
- declare const useChainMenuScript: () => {
107
- isConnected: boolean;
108
- currentChainId: number | undefined;
109
- wrongNetwork: boolean;
110
- disabledConnect: boolean;
111
- accountStatus: _orderly_network_types.AccountStatusEnum;
112
- networkId: NetworkId;
113
- open: boolean;
114
- onOpenChange: react.Dispatch<react.SetStateAction<boolean>>;
115
- hide: () => void;
116
- onChainChangeBefore: () => void;
117
- onChainChangeAfter: () => void;
118
- loading: boolean;
133
+ type FooterProps = {
134
+ telegramUrl?: string;
135
+ twitterUrl?: string;
136
+ discordUrl?: string;
137
+ trailing?: ReactNode;
119
138
  };
139
+ declare const FooterWidget: (props: FooterProps) => react_jsx_runtime.JSX.Element;
120
140
 
121
- declare const ChainMenu: (props: UseChainMenuScriptReturn) => react_jsx_runtime.JSX.Element;
141
+ declare const Footer: FC<FooterReturns & FooterProps>;
122
142
 
123
143
  type SideMenuItem = {
124
144
  name: string;
@@ -126,6 +146,7 @@ type SideMenuItem = {
126
146
  href?: string;
127
147
  disabled?: boolean;
128
148
  onClick?: () => void;
149
+ hide?: boolean;
129
150
  };
130
151
  type SideBarProps = {
131
152
  title?: react__default.ReactNode;
@@ -146,19 +167,92 @@ declare const SideBar: {
146
167
 
147
168
  declare const SideNavbarWidget: (props?: Partial<SideBarProps>) => react_jsx_runtime.JSX.Element;
148
169
 
149
- type FooterReturns = {
150
- wsStatus: WsNetworkStatus;
170
+ type RouteOption = {
171
+ href: string;
172
+ name: string;
173
+ scope?: string;
174
+ target?: string;
175
+ };
176
+ type RouterAdapter = {
177
+ onRouteChange: (option: RouteOption) => void;
178
+ currentPath?: string;
179
+ };
180
+ type ScaffoldState = {
181
+ routerAdapter?: RouterAdapter;
182
+ expanded?: boolean;
183
+ setExpand: (expand: boolean) => void;
184
+ checkChainSupport: (chainId: number | string) => boolean;
185
+ topNavbarHeight: number;
186
+ footerHeight: number;
187
+ announcementHeight: number;
151
188
  };
189
+ declare const ScaffoldContext: react.Context<ScaffoldState>;
190
+ declare const useScaffoldContext: () => ScaffoldState;
152
191
 
153
- type FooterProps = {
154
- telegramUrl?: string;
155
- twitterUrl?: string;
156
- discordUrl?: string;
157
- trailing?: React.ReactNode;
192
+ type ScaffoldProps = {
193
+ /**
194
+ * Custom left sidebar component,
195
+ * if provided, the layout will use this component over the default sidebar component
196
+ */
197
+ leftSidebar?: react__default.ReactNode;
198
+ leftSideProps?: SideBarProps;
199
+ topBar?: react__default.ReactNode;
200
+ mainNavProps?: MainNavWidgetProps;
201
+ bottomNavProps?: BottomNavProps$1;
202
+ footer?: react__default.ReactNode;
203
+ footerProps?: FooterProps;
204
+ routerAdapter?: RouterAdapter;
205
+ classNames?: {
206
+ root?: string;
207
+ container?: string;
208
+ content?: string;
209
+ body?: string;
210
+ leftSidebar?: string;
211
+ topNavbar?: string;
212
+ footer?: string;
213
+ };
158
214
  };
159
- declare const FooterWidget: (props: FooterProps) => react_jsx_runtime.JSX.Element;
215
+ declare const Scaffold: (props: PropsWithChildren<ScaffoldProps>) => react_jsx_runtime.JSX.Element;
160
216
 
161
- declare const Footer: FC<FooterReturns & FooterProps>;
217
+ type BottomNavProps = {
218
+ mainMenus?: BottomNavItem[];
219
+ current?: string | string[];
220
+ onRouteChange?: RouterAdapter["onRouteChange"];
221
+ };
222
+ declare const BottomNav: (props: BottomNavProps) => react_jsx_runtime.JSX.Element | null;
223
+
224
+ type Props = {
225
+ current?: string;
226
+ subItems?: {
227
+ name: string;
228
+ href: string;
229
+ }[];
230
+ routerAdapter?: RouterAdapter;
231
+ } & MainNavWidgetProps;
232
+ declare const MainNavMobile: FC<Props>;
233
+
234
+ declare const AccountSummaryWidget: () => react_jsx_runtime.JSX.Element;
235
+
236
+ declare const ChainMenuWidget: () => react_jsx_runtime.JSX.Element;
237
+
238
+ type UseChainMenuScriptReturn = ReturnType<typeof useChainMenuScript>;
239
+ declare const useChainMenuScript: () => {
240
+ isConnected: boolean;
241
+ currentChainId: number | undefined;
242
+ wrongNetwork: boolean;
243
+ disabledConnect: boolean;
244
+ accountStatus: _orderly_network_types.AccountStatusEnum;
245
+ networkId: NetworkId;
246
+ open: boolean;
247
+ onOpenChange: react.Dispatch<react.SetStateAction<boolean>>;
248
+ hide: () => void;
249
+ onChainChangeBefore: () => void;
250
+ onChainChangeAfter: () => void;
251
+ loading: boolean;
252
+ setCurrentChainId: (chainId: number | undefined) => void;
253
+ };
254
+
255
+ declare const ChainMenu: (props: UseChainMenuScriptReturn) => react_jsx_runtime.JSX.Element;
162
256
 
163
257
  interface MaintenanceTipInterface {
164
258
  tipsContent: string;
@@ -233,66 +327,26 @@ declare const RestrictedInfo: FC<RestrictedInfoProps>;
233
327
  type RestrictedInfoWidgetProps = Pick<RestrictedInfoProps, "className">;
234
328
  declare const RestrictedInfoWidget: FC<RestrictedInfoWidgetProps>;
235
329
 
236
- type RouteOption = {
237
- href: string;
238
- name: string;
239
- scope?: string;
240
- target?: string;
241
- };
242
- type RouterAdapter = {
243
- onRouteChange: (option: RouteOption) => void;
244
- currentPath?: string;
245
- };
246
- type ScaffoldState = {
247
- routerAdapter?: RouterAdapter;
248
- expanded?: boolean;
249
- setExpand: (expand: boolean) => void;
250
- checkChainSupport: (chainId: number | string) => boolean;
251
- topNavbarHeight: number;
252
- footerHeight: number;
253
- announcementHeight: number;
254
- };
255
- declare const ScaffoldContext: react.Context<ScaffoldState>;
256
- declare const useScaffoldContext: () => ScaffoldState;
257
-
258
- type ScaffoldProps = {
259
- /**
260
- * Custom left sidebar component,
261
- * if provided, the layout will use this component over the default sidebar component
262
- */
263
- leftSidebar?: react__default.ReactNode;
264
- leftSideProps?: SideBarProps;
265
- topBar?: react__default.ReactNode;
266
- mainNavProps?: MainNavWidgetProps;
267
- footer?: react__default.ReactNode;
268
- footerProps?: FooterProps;
269
- routerAdapter?: RouterAdapter;
270
- classNames?: {
271
- root?: string;
272
- container?: string;
273
- content?: string;
274
- body?: string;
275
- leftSidebar?: string;
276
- topNavbar?: string;
277
- footer?: string;
278
- };
279
- };
280
- declare const Scaffold: (props: PropsWithChildren<ScaffoldProps>) => react_jsx_runtime.JSX.Element;
281
-
282
330
  type MainLogoProps = {
283
331
  src?: string;
284
332
  alt?: string;
285
333
  };
286
334
  declare const MainLogo: FC<MainLogoProps>;
287
335
 
288
- type LanguageSwitcherWidgetProps = Pick<LocaleContextState, "popup">;
336
+ type LanguageSwitcherWidgetProps = Pick<LocaleContextState, "popup"> & {
337
+ open?: boolean;
338
+ setOpen?: (open: boolean) => void;
339
+ };
289
340
  declare const LanguageSwitcherWidget: (props: LanguageSwitcherWidgetProps) => react_jsx_runtime.JSX.Element;
290
341
 
291
342
  type LanguageSwitcherScriptReturn = ReturnType<typeof useLanguageSwitcherScript>;
292
- type LanguageSwitcherScriptOptions = Pick<LocaleContextState, "popup">;
343
+ type LanguageSwitcherScriptOptions = Pick<LocaleContextState, "popup"> & {
344
+ open?: boolean;
345
+ setOpen?: (open: boolean) => void;
346
+ };
293
347
  declare const useLanguageSwitcherScript: (options?: LanguageSwitcherScriptOptions) => {
294
348
  open: boolean;
295
- onOpenChange: react.Dispatch<react.SetStateAction<boolean>>;
349
+ onOpenChange: (open: boolean) => void;
296
350
  languages: _orderly_network_i18n.Language[];
297
351
  selectedLang: string;
298
352
  onLangChange: (lang: string, displayName: string) => Promise<void>;
@@ -307,4 +361,19 @@ declare const useLanguageSwitcherScript: (options?: LanguageSwitcherScriptOption
307
361
  type LanguageSwitcherProps = LanguageSwitcherScriptReturn;
308
362
  declare const LanguageSwitcher: FC<LanguageSwitcherProps>;
309
363
 
310
- export { AccountMenuWidget, AccountSummaryWidget, Announcement, AnnouncementWidget, type AnnouncementWidgetProps, CampaignPositionEnum, ChainMenu, ChainMenuWidget, Footer, type FooterProps, FooterWidget, LanguageSwitcher, type LanguageSwitcherProps, type LanguageSwitcherScriptReturn, LanguageSwitcherWidget, type LanguageSwitcherWidgetProps, MainLogo, MainNavWidget, type MainNavWidgetProps, MaintenanceTipsUI, MaintenanceTipsWidget, RestrictedInfo, RestrictedInfoWidget, type RouteOption, type RouterAdapter, Scaffold, ScaffoldContext, type ScaffoldProps, SideBar, type SideBarProps, type SideMenuItem, SideNavbarWidget, useAnnouncementScript, useLanguageSwitcherScript, useRestrictedInfoScript, useScaffoldContext };
364
+ declare const ScanQRCodeWidget: () => react_jsx_runtime.JSX.Element;
365
+
366
+ type UseScanQRCodeScriptReturn = ReturnType<typeof useScanQRCodeScript>;
367
+ declare function useScanQRCodeScript(): {
368
+ open: boolean;
369
+ onOpenChange: react.Dispatch<react.SetStateAction<boolean>>;
370
+ showDialog: () => void;
371
+ hideDialog: () => void;
372
+ onScanSuccess: (url: string) => void;
373
+ showScanTooltip: any;
374
+ };
375
+
376
+ type ScanQRCodeProps = UseScanQRCodeScriptReturn;
377
+ declare const ScanQRCode: FC<ScanQRCodeProps>;
378
+
379
+ export { AccountMenuWidget, AccountSummaryWidget, Announcement, AnnouncementWidget, type AnnouncementWidgetProps, BottomNav, type BottomNavProps$1 as BottomNavProps, BottomNavWidget, CampaignPositionEnum, ChainMenu, ChainMenuWidget, Footer, type FooterProps, FooterWidget, LanguageSwitcher, type LanguageSwitcherProps, type LanguageSwitcherScriptReturn, LanguageSwitcherWidget, type LanguageSwitcherWidgetProps, MainLogo, MainNavMobile, MainNavWidget, type MainNavWidgetProps, MaintenanceTipsUI, MaintenanceTipsWidget, RestrictedInfo, RestrictedInfoWidget, type RouteOption, type RouterAdapter, Scaffold, ScaffoldContext, type ScaffoldProps, ScanQRCode, ScanQRCodeWidget, SideBar, type SideBarProps, type SideMenuItem, SideNavbarWidget, useAnnouncementScript, useLanguageSwitcherScript, useRestrictedInfoScript, useScaffoldContext, useScanQRCodeScript };
package/dist/index.d.ts CHANGED
@@ -24,6 +24,21 @@ type MainNavItem = {
24
24
  children?: MainNavItem[];
25
25
  className?: string;
26
26
  asChild?: boolean;
27
+ /**
28
+ * if true, the item will be shown as a submenu in mobile
29
+ */
30
+ isSubMenuInMobile?: boolean;
31
+ /**
32
+ * if provided, the item is a submenu in mobile, and this will be the a back nav
33
+ */
34
+ subMenuBackNav?: {
35
+ name: string;
36
+ href: string;
37
+ };
38
+ /**
39
+ * if true, the item will be shown as a home page in mobile
40
+ */
41
+ isHomePageInMobile?: boolean;
27
42
  };
28
43
 
29
44
  type CampaignProps = {
@@ -98,27 +113,32 @@ type MainNavWidgetProps = PropsWithChildren<{
98
113
  }> & Pick<MainNavProps, "classNames">;
99
114
  declare const MainNavWidget: (props: MainNavWidgetProps) => react_jsx_runtime.JSX.Element;
100
115
 
101
- declare const AccountSummaryWidget: () => react_jsx_runtime.JSX.Element;
116
+ type BottomNavProps$1 = {
117
+ mainMenus?: BottomNavItem[];
118
+ current?: string;
119
+ onRouteChange?: RouterAdapter["onRouteChange"];
120
+ };
121
+ type BottomNavItem = {
122
+ name: string;
123
+ href: string;
124
+ activeIcon: ReactNode;
125
+ inactiveIcon: ReactNode;
126
+ };
127
+ declare const BottomNavWidget: (props: BottomNavProps$1) => react_jsx_runtime.JSX.Element | null;
102
128
 
103
- declare const ChainMenuWidget: () => react_jsx_runtime.JSX.Element;
129
+ type FooterReturns = {
130
+ wsStatus: WsNetworkStatus;
131
+ };
104
132
 
105
- type UseChainMenuScriptReturn = ReturnType<typeof useChainMenuScript>;
106
- declare const useChainMenuScript: () => {
107
- isConnected: boolean;
108
- currentChainId: number | undefined;
109
- wrongNetwork: boolean;
110
- disabledConnect: boolean;
111
- accountStatus: _orderly_network_types.AccountStatusEnum;
112
- networkId: NetworkId;
113
- open: boolean;
114
- onOpenChange: react.Dispatch<react.SetStateAction<boolean>>;
115
- hide: () => void;
116
- onChainChangeBefore: () => void;
117
- onChainChangeAfter: () => void;
118
- loading: boolean;
133
+ type FooterProps = {
134
+ telegramUrl?: string;
135
+ twitterUrl?: string;
136
+ discordUrl?: string;
137
+ trailing?: ReactNode;
119
138
  };
139
+ declare const FooterWidget: (props: FooterProps) => react_jsx_runtime.JSX.Element;
120
140
 
121
- declare const ChainMenu: (props: UseChainMenuScriptReturn) => react_jsx_runtime.JSX.Element;
141
+ declare const Footer: FC<FooterReturns & FooterProps>;
122
142
 
123
143
  type SideMenuItem = {
124
144
  name: string;
@@ -126,6 +146,7 @@ type SideMenuItem = {
126
146
  href?: string;
127
147
  disabled?: boolean;
128
148
  onClick?: () => void;
149
+ hide?: boolean;
129
150
  };
130
151
  type SideBarProps = {
131
152
  title?: react__default.ReactNode;
@@ -146,19 +167,92 @@ declare const SideBar: {
146
167
 
147
168
  declare const SideNavbarWidget: (props?: Partial<SideBarProps>) => react_jsx_runtime.JSX.Element;
148
169
 
149
- type FooterReturns = {
150
- wsStatus: WsNetworkStatus;
170
+ type RouteOption = {
171
+ href: string;
172
+ name: string;
173
+ scope?: string;
174
+ target?: string;
175
+ };
176
+ type RouterAdapter = {
177
+ onRouteChange: (option: RouteOption) => void;
178
+ currentPath?: string;
179
+ };
180
+ type ScaffoldState = {
181
+ routerAdapter?: RouterAdapter;
182
+ expanded?: boolean;
183
+ setExpand: (expand: boolean) => void;
184
+ checkChainSupport: (chainId: number | string) => boolean;
185
+ topNavbarHeight: number;
186
+ footerHeight: number;
187
+ announcementHeight: number;
151
188
  };
189
+ declare const ScaffoldContext: react.Context<ScaffoldState>;
190
+ declare const useScaffoldContext: () => ScaffoldState;
152
191
 
153
- type FooterProps = {
154
- telegramUrl?: string;
155
- twitterUrl?: string;
156
- discordUrl?: string;
157
- trailing?: React.ReactNode;
192
+ type ScaffoldProps = {
193
+ /**
194
+ * Custom left sidebar component,
195
+ * if provided, the layout will use this component over the default sidebar component
196
+ */
197
+ leftSidebar?: react__default.ReactNode;
198
+ leftSideProps?: SideBarProps;
199
+ topBar?: react__default.ReactNode;
200
+ mainNavProps?: MainNavWidgetProps;
201
+ bottomNavProps?: BottomNavProps$1;
202
+ footer?: react__default.ReactNode;
203
+ footerProps?: FooterProps;
204
+ routerAdapter?: RouterAdapter;
205
+ classNames?: {
206
+ root?: string;
207
+ container?: string;
208
+ content?: string;
209
+ body?: string;
210
+ leftSidebar?: string;
211
+ topNavbar?: string;
212
+ footer?: string;
213
+ };
158
214
  };
159
- declare const FooterWidget: (props: FooterProps) => react_jsx_runtime.JSX.Element;
215
+ declare const Scaffold: (props: PropsWithChildren<ScaffoldProps>) => react_jsx_runtime.JSX.Element;
160
216
 
161
- declare const Footer: FC<FooterReturns & FooterProps>;
217
+ type BottomNavProps = {
218
+ mainMenus?: BottomNavItem[];
219
+ current?: string | string[];
220
+ onRouteChange?: RouterAdapter["onRouteChange"];
221
+ };
222
+ declare const BottomNav: (props: BottomNavProps) => react_jsx_runtime.JSX.Element | null;
223
+
224
+ type Props = {
225
+ current?: string;
226
+ subItems?: {
227
+ name: string;
228
+ href: string;
229
+ }[];
230
+ routerAdapter?: RouterAdapter;
231
+ } & MainNavWidgetProps;
232
+ declare const MainNavMobile: FC<Props>;
233
+
234
+ declare const AccountSummaryWidget: () => react_jsx_runtime.JSX.Element;
235
+
236
+ declare const ChainMenuWidget: () => react_jsx_runtime.JSX.Element;
237
+
238
+ type UseChainMenuScriptReturn = ReturnType<typeof useChainMenuScript>;
239
+ declare const useChainMenuScript: () => {
240
+ isConnected: boolean;
241
+ currentChainId: number | undefined;
242
+ wrongNetwork: boolean;
243
+ disabledConnect: boolean;
244
+ accountStatus: _orderly_network_types.AccountStatusEnum;
245
+ networkId: NetworkId;
246
+ open: boolean;
247
+ onOpenChange: react.Dispatch<react.SetStateAction<boolean>>;
248
+ hide: () => void;
249
+ onChainChangeBefore: () => void;
250
+ onChainChangeAfter: () => void;
251
+ loading: boolean;
252
+ setCurrentChainId: (chainId: number | undefined) => void;
253
+ };
254
+
255
+ declare const ChainMenu: (props: UseChainMenuScriptReturn) => react_jsx_runtime.JSX.Element;
162
256
 
163
257
  interface MaintenanceTipInterface {
164
258
  tipsContent: string;
@@ -233,66 +327,26 @@ declare const RestrictedInfo: FC<RestrictedInfoProps>;
233
327
  type RestrictedInfoWidgetProps = Pick<RestrictedInfoProps, "className">;
234
328
  declare const RestrictedInfoWidget: FC<RestrictedInfoWidgetProps>;
235
329
 
236
- type RouteOption = {
237
- href: string;
238
- name: string;
239
- scope?: string;
240
- target?: string;
241
- };
242
- type RouterAdapter = {
243
- onRouteChange: (option: RouteOption) => void;
244
- currentPath?: string;
245
- };
246
- type ScaffoldState = {
247
- routerAdapter?: RouterAdapter;
248
- expanded?: boolean;
249
- setExpand: (expand: boolean) => void;
250
- checkChainSupport: (chainId: number | string) => boolean;
251
- topNavbarHeight: number;
252
- footerHeight: number;
253
- announcementHeight: number;
254
- };
255
- declare const ScaffoldContext: react.Context<ScaffoldState>;
256
- declare const useScaffoldContext: () => ScaffoldState;
257
-
258
- type ScaffoldProps = {
259
- /**
260
- * Custom left sidebar component,
261
- * if provided, the layout will use this component over the default sidebar component
262
- */
263
- leftSidebar?: react__default.ReactNode;
264
- leftSideProps?: SideBarProps;
265
- topBar?: react__default.ReactNode;
266
- mainNavProps?: MainNavWidgetProps;
267
- footer?: react__default.ReactNode;
268
- footerProps?: FooterProps;
269
- routerAdapter?: RouterAdapter;
270
- classNames?: {
271
- root?: string;
272
- container?: string;
273
- content?: string;
274
- body?: string;
275
- leftSidebar?: string;
276
- topNavbar?: string;
277
- footer?: string;
278
- };
279
- };
280
- declare const Scaffold: (props: PropsWithChildren<ScaffoldProps>) => react_jsx_runtime.JSX.Element;
281
-
282
330
  type MainLogoProps = {
283
331
  src?: string;
284
332
  alt?: string;
285
333
  };
286
334
  declare const MainLogo: FC<MainLogoProps>;
287
335
 
288
- type LanguageSwitcherWidgetProps = Pick<LocaleContextState, "popup">;
336
+ type LanguageSwitcherWidgetProps = Pick<LocaleContextState, "popup"> & {
337
+ open?: boolean;
338
+ setOpen?: (open: boolean) => void;
339
+ };
289
340
  declare const LanguageSwitcherWidget: (props: LanguageSwitcherWidgetProps) => react_jsx_runtime.JSX.Element;
290
341
 
291
342
  type LanguageSwitcherScriptReturn = ReturnType<typeof useLanguageSwitcherScript>;
292
- type LanguageSwitcherScriptOptions = Pick<LocaleContextState, "popup">;
343
+ type LanguageSwitcherScriptOptions = Pick<LocaleContextState, "popup"> & {
344
+ open?: boolean;
345
+ setOpen?: (open: boolean) => void;
346
+ };
293
347
  declare const useLanguageSwitcherScript: (options?: LanguageSwitcherScriptOptions) => {
294
348
  open: boolean;
295
- onOpenChange: react.Dispatch<react.SetStateAction<boolean>>;
349
+ onOpenChange: (open: boolean) => void;
296
350
  languages: _orderly_network_i18n.Language[];
297
351
  selectedLang: string;
298
352
  onLangChange: (lang: string, displayName: string) => Promise<void>;
@@ -307,4 +361,19 @@ declare const useLanguageSwitcherScript: (options?: LanguageSwitcherScriptOption
307
361
  type LanguageSwitcherProps = LanguageSwitcherScriptReturn;
308
362
  declare const LanguageSwitcher: FC<LanguageSwitcherProps>;
309
363
 
310
- export { AccountMenuWidget, AccountSummaryWidget, Announcement, AnnouncementWidget, type AnnouncementWidgetProps, CampaignPositionEnum, ChainMenu, ChainMenuWidget, Footer, type FooterProps, FooterWidget, LanguageSwitcher, type LanguageSwitcherProps, type LanguageSwitcherScriptReturn, LanguageSwitcherWidget, type LanguageSwitcherWidgetProps, MainLogo, MainNavWidget, type MainNavWidgetProps, MaintenanceTipsUI, MaintenanceTipsWidget, RestrictedInfo, RestrictedInfoWidget, type RouteOption, type RouterAdapter, Scaffold, ScaffoldContext, type ScaffoldProps, SideBar, type SideBarProps, type SideMenuItem, SideNavbarWidget, useAnnouncementScript, useLanguageSwitcherScript, useRestrictedInfoScript, useScaffoldContext };
364
+ declare const ScanQRCodeWidget: () => react_jsx_runtime.JSX.Element;
365
+
366
+ type UseScanQRCodeScriptReturn = ReturnType<typeof useScanQRCodeScript>;
367
+ declare function useScanQRCodeScript(): {
368
+ open: boolean;
369
+ onOpenChange: react.Dispatch<react.SetStateAction<boolean>>;
370
+ showDialog: () => void;
371
+ hideDialog: () => void;
372
+ onScanSuccess: (url: string) => void;
373
+ showScanTooltip: any;
374
+ };
375
+
376
+ type ScanQRCodeProps = UseScanQRCodeScriptReturn;
377
+ declare const ScanQRCode: FC<ScanQRCodeProps>;
378
+
379
+ export { AccountMenuWidget, AccountSummaryWidget, Announcement, AnnouncementWidget, type AnnouncementWidgetProps, BottomNav, type BottomNavProps$1 as BottomNavProps, BottomNavWidget, CampaignPositionEnum, ChainMenu, ChainMenuWidget, Footer, type FooterProps, FooterWidget, LanguageSwitcher, type LanguageSwitcherProps, type LanguageSwitcherScriptReturn, LanguageSwitcherWidget, type LanguageSwitcherWidgetProps, MainLogo, MainNavMobile, MainNavWidget, type MainNavWidgetProps, MaintenanceTipsUI, MaintenanceTipsWidget, RestrictedInfo, RestrictedInfoWidget, type RouteOption, type RouterAdapter, Scaffold, ScaffoldContext, type ScaffoldProps, ScanQRCode, ScanQRCodeWidget, SideBar, type SideBarProps, type SideMenuItem, SideNavbarWidget, useAnnouncementScript, useLanguageSwitcherScript, useRestrictedInfoScript, useScaffoldContext, useScanQRCodeScript };