@orderly.network/ui-scaffold 2.2.0 → 2.3.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 +30 -14
- package/dist/index.d.ts +30 -14
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import react__default, { HTMLAttributeAnchorTarget, ReactNode, PropsWithChildren, FC } from 'react';
|
|
4
4
|
import * as _orderly_network_types from '@orderly.network/types';
|
|
5
|
-
import { AccountStatusEnum, NetworkId
|
|
5
|
+
import { AccountStatusEnum, NetworkId } from '@orderly.network/types';
|
|
6
6
|
import { LogoProps } from '@orderly.network/ui';
|
|
7
7
|
import { WsNetworkStatus } from '@orderly.network/hooks';
|
|
8
8
|
import * as _orderly_network_i18n from '@orderly.network/i18n';
|
|
@@ -191,15 +191,37 @@ declare const useScaffoldContext: () => ScaffoldState;
|
|
|
191
191
|
|
|
192
192
|
type ScaffoldProps = {
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* custom left sidebar component, only works on desktop
|
|
195
195
|
* if provided, the layout will use this component over the default sidebar component
|
|
196
196
|
*/
|
|
197
|
-
leftSidebar?:
|
|
197
|
+
leftSidebar?: ReactNode;
|
|
198
|
+
/**
|
|
199
|
+
* custom left sidebar props, only works on desktop
|
|
200
|
+
*/
|
|
198
201
|
leftSideProps?: SideBarProps;
|
|
199
|
-
|
|
202
|
+
/**
|
|
203
|
+
* custom top bar component
|
|
204
|
+
*/
|
|
205
|
+
topBar?: ReactNode;
|
|
206
|
+
/**
|
|
207
|
+
* custom top nav props, only works on desktop
|
|
208
|
+
*/
|
|
200
209
|
mainNavProps?: MainNavWidgetProps;
|
|
210
|
+
/**
|
|
211
|
+
* custom bottom nav component, only works on mobile
|
|
212
|
+
*/
|
|
213
|
+
bottomNav?: ReactNode;
|
|
214
|
+
/**
|
|
215
|
+
* custom bottom nav component, only works on mobile
|
|
216
|
+
*/
|
|
201
217
|
bottomNavProps?: BottomNavProps$1;
|
|
202
|
-
|
|
218
|
+
/**
|
|
219
|
+
* custom footer component, only works on desktop
|
|
220
|
+
*/
|
|
221
|
+
footer?: ReactNode;
|
|
222
|
+
/**
|
|
223
|
+
* custom footer props, only works on desktop
|
|
224
|
+
*/
|
|
203
225
|
footerProps?: FooterProps;
|
|
204
226
|
routerAdapter?: RouterAdapter;
|
|
205
227
|
classNames?: {
|
|
@@ -210,6 +232,7 @@ type ScaffoldProps = {
|
|
|
210
232
|
leftSidebar?: string;
|
|
211
233
|
topNavbar?: string;
|
|
212
234
|
footer?: string;
|
|
235
|
+
bottomNav?: string;
|
|
213
236
|
};
|
|
214
237
|
};
|
|
215
238
|
declare const Scaffold: (props: PropsWithChildren<ScaffoldProps>) => react_jsx_runtime.JSX.Element;
|
|
@@ -274,16 +297,9 @@ declare const useAnnouncementScript: (options?: AnnouncementScriptOptions) => {
|
|
|
274
297
|
mutiLine: boolean;
|
|
275
298
|
contentRef: react__default.RefObject<HTMLDivElement>;
|
|
276
299
|
maintenanceDialogInfo: string | undefined;
|
|
277
|
-
tips:
|
|
300
|
+
tips: any[];
|
|
278
301
|
currentIndex: number;
|
|
279
|
-
currentTip:
|
|
280
|
-
announcement_id: number | string;
|
|
281
|
-
message: string;
|
|
282
|
-
i18n?: Record<PropertyKey, string | null>;
|
|
283
|
-
url?: string | null;
|
|
284
|
-
type?: AnnouncementType | null;
|
|
285
|
-
updated_time?: number | null;
|
|
286
|
-
} | undefined;
|
|
302
|
+
currentTip: any;
|
|
287
303
|
closeTips: () => void;
|
|
288
304
|
nextTips: () => void;
|
|
289
305
|
prevTips: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import react__default, { HTMLAttributeAnchorTarget, ReactNode, PropsWithChildren, FC } from 'react';
|
|
4
4
|
import * as _orderly_network_types from '@orderly.network/types';
|
|
5
|
-
import { AccountStatusEnum, NetworkId
|
|
5
|
+
import { AccountStatusEnum, NetworkId } from '@orderly.network/types';
|
|
6
6
|
import { LogoProps } from '@orderly.network/ui';
|
|
7
7
|
import { WsNetworkStatus } from '@orderly.network/hooks';
|
|
8
8
|
import * as _orderly_network_i18n from '@orderly.network/i18n';
|
|
@@ -191,15 +191,37 @@ declare const useScaffoldContext: () => ScaffoldState;
|
|
|
191
191
|
|
|
192
192
|
type ScaffoldProps = {
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* custom left sidebar component, only works on desktop
|
|
195
195
|
* if provided, the layout will use this component over the default sidebar component
|
|
196
196
|
*/
|
|
197
|
-
leftSidebar?:
|
|
197
|
+
leftSidebar?: ReactNode;
|
|
198
|
+
/**
|
|
199
|
+
* custom left sidebar props, only works on desktop
|
|
200
|
+
*/
|
|
198
201
|
leftSideProps?: SideBarProps;
|
|
199
|
-
|
|
202
|
+
/**
|
|
203
|
+
* custom top bar component
|
|
204
|
+
*/
|
|
205
|
+
topBar?: ReactNode;
|
|
206
|
+
/**
|
|
207
|
+
* custom top nav props, only works on desktop
|
|
208
|
+
*/
|
|
200
209
|
mainNavProps?: MainNavWidgetProps;
|
|
210
|
+
/**
|
|
211
|
+
* custom bottom nav component, only works on mobile
|
|
212
|
+
*/
|
|
213
|
+
bottomNav?: ReactNode;
|
|
214
|
+
/**
|
|
215
|
+
* custom bottom nav component, only works on mobile
|
|
216
|
+
*/
|
|
201
217
|
bottomNavProps?: BottomNavProps$1;
|
|
202
|
-
|
|
218
|
+
/**
|
|
219
|
+
* custom footer component, only works on desktop
|
|
220
|
+
*/
|
|
221
|
+
footer?: ReactNode;
|
|
222
|
+
/**
|
|
223
|
+
* custom footer props, only works on desktop
|
|
224
|
+
*/
|
|
203
225
|
footerProps?: FooterProps;
|
|
204
226
|
routerAdapter?: RouterAdapter;
|
|
205
227
|
classNames?: {
|
|
@@ -210,6 +232,7 @@ type ScaffoldProps = {
|
|
|
210
232
|
leftSidebar?: string;
|
|
211
233
|
topNavbar?: string;
|
|
212
234
|
footer?: string;
|
|
235
|
+
bottomNav?: string;
|
|
213
236
|
};
|
|
214
237
|
};
|
|
215
238
|
declare const Scaffold: (props: PropsWithChildren<ScaffoldProps>) => react_jsx_runtime.JSX.Element;
|
|
@@ -274,16 +297,9 @@ declare const useAnnouncementScript: (options?: AnnouncementScriptOptions) => {
|
|
|
274
297
|
mutiLine: boolean;
|
|
275
298
|
contentRef: react__default.RefObject<HTMLDivElement>;
|
|
276
299
|
maintenanceDialogInfo: string | undefined;
|
|
277
|
-
tips:
|
|
300
|
+
tips: any[];
|
|
278
301
|
currentIndex: number;
|
|
279
|
-
currentTip:
|
|
280
|
-
announcement_id: number | string;
|
|
281
|
-
message: string;
|
|
282
|
-
i18n?: Record<PropertyKey, string | null>;
|
|
283
|
-
url?: string | null;
|
|
284
|
-
type?: AnnouncementType | null;
|
|
285
|
-
updated_time?: number | null;
|
|
286
|
-
} | undefined;
|
|
302
|
+
currentTip: any;
|
|
287
303
|
closeTips: () => void;
|
|
288
304
|
nextTips: () => void;
|
|
289
305
|
prevTips: () => void;
|