meticulous-ui 3.9.1 → 3.9.2
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/index.d.ts +46 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -665,6 +665,52 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
665
665
|
export declare const Grid: React.FC<GridProps>;
|
|
666
666
|
export declare const GridItem: React.FC<GridItemProps>;
|
|
667
667
|
|
|
668
|
+
// ---------------------------------------------------------------------------
|
|
669
|
+
// Sidebar
|
|
670
|
+
// ---------------------------------------------------------------------------
|
|
671
|
+
|
|
672
|
+
export interface SidebarChildItem {
|
|
673
|
+
id: string;
|
|
674
|
+
label: string;
|
|
675
|
+
badge?: number;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export interface SidebarNavItem {
|
|
679
|
+
id: string;
|
|
680
|
+
label: string;
|
|
681
|
+
icon: React.ReactNode;
|
|
682
|
+
badge?: number;
|
|
683
|
+
onAdd?: () => void;
|
|
684
|
+
children?: SidebarChildItem[];
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
export interface SidebarBottomItem {
|
|
688
|
+
id: string;
|
|
689
|
+
label?: string;
|
|
690
|
+
icon: React.ReactNode;
|
|
691
|
+
onClick?: () => void;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
export interface SidebarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
695
|
+
logo?: React.ReactNode;
|
|
696
|
+
storeName?: string;
|
|
697
|
+
storeUrl?: string;
|
|
698
|
+
onSwitchStore?: () => void;
|
|
699
|
+
navItems?: SidebarNavItem[];
|
|
700
|
+
activeId?: string;
|
|
701
|
+
onNavChange?: (id: string) => void;
|
|
702
|
+
bottomItems?: SidebarBottomItem[];
|
|
703
|
+
collapsed?: boolean;
|
|
704
|
+
onCollapseToggle?: () => void;
|
|
705
|
+
/** Stays collapsed; expands on hover and collapses again after any nav action */
|
|
706
|
+
hoverExpand?: boolean;
|
|
707
|
+
/** When true shows logo + store name + store URL + small hamburger. When false (default) shows a large hamburger beside the logo only. */
|
|
708
|
+
showStoreInfo?: boolean;
|
|
709
|
+
theme?: 'light' | 'dark';
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
export declare const Sidebar: React.FC<SidebarProps>;
|
|
713
|
+
|
|
668
714
|
// ---------------------------------------------------------------------------
|
|
669
715
|
// Hooks
|
|
670
716
|
// ---------------------------------------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meticulous-ui",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"description": "A comprehensive React UI component library with a wide range of customizable components, icons, colors, and utilities for building modern web applications.",
|
|
6
6
|
"types": "./index.d.ts",
|