@internxt/ui 0.1.15 → 0.1.16

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.
@@ -34,6 +34,12 @@ export interface SidenavProps {
34
34
  showSubsections?: boolean;
35
35
  isCollapsed?: boolean;
36
36
  storage?: SidenavStorageProps;
37
+ notification?: {
38
+ message: string;
39
+ actionLabel: string;
40
+ onAction: () => void;
41
+ type?: 'warning';
42
+ };
37
43
  onToggleCollapse?: () => void;
38
44
  }
39
45
  /**
@@ -49,7 +55,8 @@ export interface SidenavProps {
49
55
  * @property {boolean} showSubsections - Determines whether to display the subsections of the sidenav
50
56
  * @property {boolean} isCollapsed - Determines whether the sidenav is collapsed or not
51
57
  * @property {SidenavStorage} storage - The storage information displayed at the bottom of the sidenav
58
+ * @property {object} notification - Optional structured notification rendered above the storage section (hidden when collapsed). Accepts message, actionLabel, onAction, and an optional type ('warning').
52
59
  * @property {() => void} onToggleCollapse - A callback function triggered when the collapse button is clicked
53
60
  */
54
- declare const Sidenav: ({ header, primaryAction, suiteLauncher, collapsedPrimaryAction, options, showSubsections, isCollapsed, storage, onToggleCollapse, }: SidenavProps) => import("react/jsx-runtime").JSX.Element;
61
+ declare const Sidenav: ({ header, primaryAction, suiteLauncher, collapsedPrimaryAction, options, showSubsections, isCollapsed, storage, notification, onToggleCollapse, }: SidenavProps) => import("react/jsx-runtime").JSX.Element;
55
62
  export default Sidenav;