@contact_incruiter/fcc 1.0.6 → 1.0.8
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +572 -557
- package/dist/index.js.map +1 -1
- package/dist/shared/InCruiterSidebar.d.ts +5 -1
- package/package.json +1 -1
|
@@ -15,6 +15,8 @@ export interface SidebarNavItemConfig {
|
|
|
15
15
|
/** Shows a chevron and uses expandedContent as a collapsible panel */
|
|
16
16
|
hasChevron?: boolean;
|
|
17
17
|
expandedContent?: ReactNode;
|
|
18
|
+
/** Content rendered below the nav row when the sidebar is collapsed and this item is expanded */
|
|
19
|
+
collapsedExpandedContent?: ReactNode;
|
|
18
20
|
onClick?: () => void;
|
|
19
21
|
}
|
|
20
22
|
export interface SidebarProfileItemConfig {
|
|
@@ -43,6 +45,8 @@ export interface InCruiterSidebarProps {
|
|
|
43
45
|
/** Controlled collapse — pass alongside onToggleCollapse to host collapse state */
|
|
44
46
|
collapsed?: boolean;
|
|
45
47
|
onToggleCollapse?: (collapsed: boolean) => void;
|
|
48
|
+
/** Nav item href to auto-expand whenever the sidebar becomes uncollapsed */
|
|
49
|
+
defaultExpandedItem?: string | null;
|
|
46
50
|
children?: ReactNode;
|
|
47
51
|
}
|
|
48
52
|
export interface SidebarSubItemProps {
|
|
@@ -53,4 +57,4 @@ export interface SidebarSubItemProps {
|
|
|
53
57
|
onClick: () => void;
|
|
54
58
|
}
|
|
55
59
|
export declare function SidebarSubItem({ name, icon, active, onClick }: SidebarSubItemProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export declare function InCruiterSidebar({ logoSrc, user, navItems, otherItems, profileItems, activeHref, onNavigate, collapsed: collapsedProp, onToggleCollapse, children, }: InCruiterSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export declare function InCruiterSidebar({ logoSrc, user, navItems, otherItems, profileItems, activeHref, onNavigate, collapsed: collapsedProp, onToggleCollapse, defaultExpandedItem, children, }: InCruiterSidebarProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED