erp-pos-ecommerce-shared 0.0.5 → 0.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 +11 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
|
|
4
4
|
interface ICategoryResponse {
|
|
@@ -485,20 +485,27 @@ interface IGender {
|
|
|
485
485
|
deletedDate: null;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
+
/**
|
|
489
|
+
* Use a component type (e.g. LayoutGrid from Tabler, LayoutGridIcon from Lucide)
|
|
490
|
+
* so the sidebar can render <Icon />. Pass the component reference, not JSX:
|
|
491
|
+
* @example
|
|
492
|
+
* import { LayoutGrid } from '@tabler/icons-react'
|
|
493
|
+
* { label: 'Dashboard', icon: LayoutGrid, href: '/' }
|
|
494
|
+
*/
|
|
488
495
|
interface ISidebarLink {
|
|
489
496
|
label: string;
|
|
490
|
-
icon:
|
|
497
|
+
icon: ElementType;
|
|
491
498
|
href?: string;
|
|
492
499
|
subLinks?: ISidebarSubLink[];
|
|
493
500
|
}
|
|
494
501
|
interface ISidebarSubLink {
|
|
495
502
|
label: string;
|
|
496
|
-
icon:
|
|
503
|
+
icon: ElementType;
|
|
497
504
|
href: string;
|
|
498
505
|
}
|
|
499
506
|
interface ISidebarGroup {
|
|
500
507
|
label: string;
|
|
501
|
-
icon?:
|
|
508
|
+
icon?: ElementType;
|
|
502
509
|
links: ISidebarLink[];
|
|
503
510
|
}
|
|
504
511
|
|