@fluityy/designsystem 0.1.0 → 0.2.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.
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface ProfileSettingsUser {
|
|
2
|
+
name: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
/** Texto de fallback se não houver avatar (ex: "EM") */
|
|
5
|
+
initials?: string;
|
|
6
|
+
/** URL da foto */
|
|
7
|
+
avatar?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ProfileSettingsNavItem {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
/** Qualquer ReactNode — passe um ícone Tabler ou SVG */
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface ProfileSettingsNavGroup {
|
|
16
|
+
group: string;
|
|
17
|
+
items: ProfileSettingsNavItem[];
|
|
18
|
+
}
|
|
19
|
+
export interface ProfileSettingsModalProps {
|
|
20
|
+
open: boolean;
|
|
21
|
+
onOpenChange: (open: boolean) => void;
|
|
22
|
+
user: ProfileSettingsUser;
|
|
23
|
+
nav: ProfileSettingsNavGroup[];
|
|
24
|
+
/** Seção ativa inicial */
|
|
25
|
+
defaultSection?: string;
|
|
26
|
+
/** Seção ativa controlada externamente */
|
|
27
|
+
activeSection?: string;
|
|
28
|
+
onSectionChange?: (id: string) => void;
|
|
29
|
+
/** Título por seção. Fallback: label do item */
|
|
30
|
+
sectionTitles?: Record<string, string>;
|
|
31
|
+
/** Subtítulo por seção */
|
|
32
|
+
sectionSubtitles?: Record<string, string>;
|
|
33
|
+
/** Renderiza o conteúdo da seção ativa */
|
|
34
|
+
renderSection?: (id: string) => React.ReactNode;
|
|
35
|
+
/** Ação no rodapé do sidebar (ex: "Get help") */
|
|
36
|
+
footerAction?: React.ReactNode;
|
|
37
|
+
}
|
|
38
|
+
export declare function ProfileSettingsModal({ open, onOpenChange, user, nav, defaultSection, activeSection: controlledSection, onSectionChange, sectionTitles, sectionSubtitles, renderSection, footerAction, }: ProfileSettingsModalProps): import("react").JSX.Element;
|