@orderly.network/ui-scaffold 2.5.3 → 2.6.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
@@ -31,6 +31,11 @@ type LeftNavItem = {
31
31
  href: string;
32
32
  isActive?: boolean;
33
33
  }) => React.ReactNode;
34
+ /**
35
+ * if true, this item will only be shown in the main account
36
+ * @default false
37
+ **/
38
+ onlyInMainAccount?: boolean;
34
39
  };
35
40
 
36
41
  type MainNavItem = {
@@ -67,6 +72,11 @@ type MainNavItem = {
67
72
  href: string;
68
73
  isActive?: boolean;
69
74
  }) => react__default.ReactNode;
75
+ /**
76
+ * if true, this item will only be shown in the main account
77
+ * @default false
78
+ **/
79
+ onlyInMainAccount?: boolean;
70
80
  tooltipConfig?: {
71
81
  /**
72
82
  * if true, the tooltip will be shown on first visit
@@ -250,7 +260,9 @@ type MainNavWidgetProps = {
250
260
  alt: string;
251
261
  };
252
262
  mainMenus?: MainNavItem[];
263
+ /** @deprecated use mainMenus instead */
253
264
  campaigns?: MainNavItem;
265
+ /** @deprecated use mainMenus instead */
254
266
  campaignPosition?: CampaignPositionEnum;
255
267
  /**
256
268
  * initial menu path, if it has submenus, use array
package/dist/index.d.ts CHANGED
@@ -31,6 +31,11 @@ type LeftNavItem = {
31
31
  href: string;
32
32
  isActive?: boolean;
33
33
  }) => React.ReactNode;
34
+ /**
35
+ * if true, this item will only be shown in the main account
36
+ * @default false
37
+ **/
38
+ onlyInMainAccount?: boolean;
34
39
  };
35
40
 
36
41
  type MainNavItem = {
@@ -67,6 +72,11 @@ type MainNavItem = {
67
72
  href: string;
68
73
  isActive?: boolean;
69
74
  }) => react__default.ReactNode;
75
+ /**
76
+ * if true, this item will only be shown in the main account
77
+ * @default false
78
+ **/
79
+ onlyInMainAccount?: boolean;
70
80
  tooltipConfig?: {
71
81
  /**
72
82
  * if true, the tooltip will be shown on first visit
@@ -250,7 +260,9 @@ type MainNavWidgetProps = {
250
260
  alt: string;
251
261
  };
252
262
  mainMenus?: MainNavItem[];
263
+ /** @deprecated use mainMenus instead */
253
264
  campaigns?: MainNavItem;
265
+ /** @deprecated use mainMenus instead */
254
266
  campaignPosition?: CampaignPositionEnum;
255
267
  /**
256
268
  * initial menu path, if it has submenus, use array