@yusr_systems/ui 6.0.4 → 6.0.6

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.ts CHANGED
@@ -787,6 +787,18 @@ export declare function Loading({ entityName }: {
787
787
  entityName: string;
788
788
  }): JSX.Element;
789
789
 
790
+ export declare type MainMenuItem = {
791
+ title: string;
792
+ url: string;
793
+ icon?: React.ReactNode;
794
+ hasAuth: boolean;
795
+ subItems?: {
796
+ title: string;
797
+ url: string;
798
+ hasAuth: boolean;
799
+ }[];
800
+ };
801
+
790
802
  export declare function NumberField({ label, error, isInvalid, required, ...props }: NumberFieldProps): JSX.Element;
791
803
 
792
804
  declare interface NumberFieldProps extends NumberInputProps {
@@ -1042,12 +1054,7 @@ export declare interface SidebarLogoProps {
1042
1054
  }
1043
1055
 
1044
1056
  export declare function SideBarMainMenu({ items }: {
1045
- items: {
1046
- title: string;
1047
- url: string;
1048
- icon?: React.ReactNode;
1049
- hasAuth: boolean;
1050
- }[];
1057
+ items: MainMenuItem[];
1051
1058
  }): JSX.Element;
1052
1059
 
1053
1060
  export declare function SidebarMenu({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
@@ -1382,6 +1389,11 @@ export declare function YusrSideBarMainMenu({ items, LinkComponent, }: {
1382
1389
  url: string;
1383
1390
  icon?: React.ReactNode;
1384
1391
  hasAuth: boolean;
1392
+ subItems?: {
1393
+ title: string;
1394
+ url: string;
1395
+ hasAuth: boolean;
1396
+ }[];
1385
1397
  }[];
1386
1398
  LinkComponent?: React.ElementType;
1387
1399
  }): JSX.Element;