feat(sidebar): sidebar with new functionalities (#7018)

This commit is contained in:
Pablo Lara
2025-03-03 12:30:28 +01:00
committed by GitHub
parent 8db442d8ba
commit bdc759d34c
52 changed files with 2438 additions and 2018 deletions
+33
View File
@@ -1,3 +1,4 @@
import { LucideIcon } from "lucide-react";
import { SVGProps } from "react";
export type IconSvgProps = SVGProps<SVGSVGElement> & {
@@ -9,6 +10,38 @@ export type IconProps = {
style?: React.CSSProperties;
};
export type IconComponent = LucideIcon | React.FC<IconSvgProps>;
export type SubmenuProps = {
href: string;
target?: string;
label: string;
active?: boolean;
icon: IconComponent;
};
export type MenuProps = {
href: string;
label: string;
active?: boolean;
icon: IconComponent;
submenus?: SubmenuProps[];
defaultOpen?: boolean;
};
export type GroupProps = {
groupLabel: string;
menus: MenuProps[];
};
export interface CollapseMenuButtonProps {
icon: IconComponent;
label: string;
submenus: SubmenuProps[];
defaultOpen: boolean;
isOpen: boolean | undefined;
}
export type NextUIVariants =
| "solid"
| "faded"