@starasia/admin 4.3.5 → 4.5.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,24 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export declare function SidebarGroupSlotProvider({ children }: {
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ interface SidebarGroupSlotOutletProps {
7
+ slotKey: string;
8
+ fallback?: ReactNode;
9
+ }
10
+ export declare function SidebarGroupSlotOutlet({ slotKey, fallback }: SidebarGroupSlotOutletProps): import("react").JSX.Element;
11
+ interface SidebarGroupSlotProps {
12
+ slotKey: string;
13
+ children: ReactNode;
14
+ }
15
+ /**
16
+ * Inject custom content into a specific sidebar menu group identified by `slotKey`.
17
+ * The matching group must have `slotKey` set in the `SidebarMenuGroup` config.
18
+ * When active, replaces the group's static items with the injected content.
19
+ * Unmounting this component restores the group to its static items (fallback).
20
+ *
21
+ * Must be used inside a component tree rendered within `AppLayout`.
22
+ */
23
+ export declare function SidebarGroupSlot({ slotKey, children }: SidebarGroupSlotProps): import('react').ReactPortal | null;
24
+ export {};
@@ -1,6 +1,7 @@
1
1
  export * from './AppLayout';
2
2
  export * from './BackButton';
3
3
  export * from './HeaderLeftSlot';
4
+ export * from './SidebarGroupSlot';
4
5
  export * from './SidebarHeaderSlot';
5
6
  export * from './ModuleSwitcherModal';
6
7
  export * from './ModuleSwitcher';