@contact_incruiter/fcc 1.0.6 → 1.0.7

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.
@@ -43,6 +43,8 @@ export interface InCruiterSidebarProps {
43
43
  /** Controlled collapse — pass alongside onToggleCollapse to host collapse state */
44
44
  collapsed?: boolean;
45
45
  onToggleCollapse?: (collapsed: boolean) => void;
46
+ /** Nav item href to auto-expand whenever the sidebar becomes uncollapsed */
47
+ defaultExpandedItem?: string | null;
46
48
  children?: ReactNode;
47
49
  }
48
50
  export interface SidebarSubItemProps {
@@ -53,4 +55,4 @@ export interface SidebarSubItemProps {
53
55
  onClick: () => void;
54
56
  }
55
57
  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;
58
+ 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contact_incruiter/fcc",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "InCruiter Front-end Component Collection — reusable React components for InCruiter products",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",