@moontra/moonui-pro 2.24.8 → 2.24.9

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.d.ts CHANGED
@@ -2596,6 +2596,83 @@ interface DashboardNotification {
2596
2596
  };
2597
2597
  }
2598
2598
 
2599
+ interface SidebarItem {
2600
+ id: string;
2601
+ title: string;
2602
+ href?: string;
2603
+ icon?: React__default.ReactNode;
2604
+ badge?: string | number;
2605
+ badgeVariant?: 'secondary' | 'destructive' | 'outline';
2606
+ disabled?: boolean;
2607
+ items?: SidebarItem[];
2608
+ action?: () => void;
2609
+ tooltip?: string;
2610
+ filteredChildren?: SidebarItem[];
2611
+ }
2612
+ interface SidebarSection {
2613
+ id: string;
2614
+ title?: string;
2615
+ items: SidebarItem[];
2616
+ collapsible?: boolean;
2617
+ defaultExpanded?: boolean;
2618
+ showDivider?: boolean;
2619
+ }
2620
+ interface SidebarConfig {
2621
+ sections: SidebarSection[];
2622
+ footer?: SidebarSection;
2623
+ showSearch?: boolean;
2624
+ searchPlaceholder?: string;
2625
+ searchQuery?: string;
2626
+ onSearchChange?: (value: string) => void;
2627
+ showThemeToggle?: boolean;
2628
+ theme?: 'light' | 'dark' | 'system';
2629
+ onThemeChange?: (theme: 'light' | 'dark' | 'system') => void;
2630
+ branding?: {
2631
+ logo?: React__default.ReactNode;
2632
+ title?: string;
2633
+ href?: string;
2634
+ };
2635
+ collapsible?: boolean;
2636
+ defaultCollapsed?: boolean;
2637
+ floatingActionButton?: boolean;
2638
+ floatingActionButtonPosition?: {
2639
+ bottom?: string;
2640
+ left?: string;
2641
+ right?: string;
2642
+ top?: string;
2643
+ };
2644
+ floatingActionButtonClassName?: string;
2645
+ glassmorphism?: boolean;
2646
+ animatedBackground?: boolean;
2647
+ keyboardShortcuts?: boolean;
2648
+ persistState?: boolean;
2649
+ persistKey?: string;
2650
+ onStateChange?: (state: SidebarState) => void;
2651
+ customStyles?: {
2652
+ background?: string;
2653
+ border?: string;
2654
+ text?: string;
2655
+ hover?: string;
2656
+ active?: string;
2657
+ };
2658
+ fullWidthItems?: boolean;
2659
+ }
2660
+ interface SidebarState {
2661
+ collapsed: boolean;
2662
+ expandedSections: string[];
2663
+ searchQuery: string;
2664
+ pinnedItems: string[];
2665
+ recentItems: string[];
2666
+ }
2667
+ interface SidebarProps extends SidebarConfig {
2668
+ className?: string;
2669
+ activePath?: string;
2670
+ onNavigate?: (href: string) => void;
2671
+ }
2672
+ declare function Sidebar(props: SidebarProps): react_jsx_runtime.JSX.Element;
2673
+ declare const MoonUISidebarPro: typeof Sidebar;
2674
+ type MoonUISidebarProProps = SidebarProps;
2675
+
2599
2676
  interface DashboardProps {
2600
2677
  config?: DashboardConfig;
2601
2678
  widgets?: Widget[];
@@ -2618,6 +2695,9 @@ interface DashboardProps {
2618
2695
  contentClassName?: string;
2619
2696
  sidebarPosition?: 'left' | 'right' | 'none';
2620
2697
  sidebarContent?: React__default.ReactNode;
2698
+ sidebarSections?: SidebarSection[];
2699
+ sidebarCollapsible?: boolean;
2700
+ sidebarDefaultCollapsed?: boolean;
2621
2701
  notifications?: DashboardNotification[];
2622
2702
  onNotificationClick?: (notification: DashboardNotification) => void;
2623
2703
  onNotificationMarkAsRead?: (notificationId: string) => void;
@@ -3235,83 +3315,6 @@ declare function useExpandableRows(initialExpanded?: Set<string>): {
3235
3315
  declare const MoonUIDataTablePro: typeof DataTable;
3236
3316
  type MoonUIDataTableProProps<TData, TValue> = DataTableProps<TData, TValue>;
3237
3317
 
3238
- interface SidebarItem {
3239
- id: string;
3240
- title: string;
3241
- href?: string;
3242
- icon?: React__default.ReactNode;
3243
- badge?: string | number;
3244
- badgeVariant?: 'secondary' | 'destructive' | 'outline';
3245
- disabled?: boolean;
3246
- items?: SidebarItem[];
3247
- action?: () => void;
3248
- tooltip?: string;
3249
- filteredChildren?: SidebarItem[];
3250
- }
3251
- interface SidebarSection {
3252
- id: string;
3253
- title?: string;
3254
- items: SidebarItem[];
3255
- collapsible?: boolean;
3256
- defaultExpanded?: boolean;
3257
- showDivider?: boolean;
3258
- }
3259
- interface SidebarConfig {
3260
- sections: SidebarSection[];
3261
- footer?: SidebarSection;
3262
- showSearch?: boolean;
3263
- searchPlaceholder?: string;
3264
- searchQuery?: string;
3265
- onSearchChange?: (value: string) => void;
3266
- showThemeToggle?: boolean;
3267
- theme?: 'light' | 'dark' | 'system';
3268
- onThemeChange?: (theme: 'light' | 'dark' | 'system') => void;
3269
- branding?: {
3270
- logo?: React__default.ReactNode;
3271
- title?: string;
3272
- href?: string;
3273
- };
3274
- collapsible?: boolean;
3275
- defaultCollapsed?: boolean;
3276
- floatingActionButton?: boolean;
3277
- floatingActionButtonPosition?: {
3278
- bottom?: string;
3279
- left?: string;
3280
- right?: string;
3281
- top?: string;
3282
- };
3283
- floatingActionButtonClassName?: string;
3284
- glassmorphism?: boolean;
3285
- animatedBackground?: boolean;
3286
- keyboardShortcuts?: boolean;
3287
- persistState?: boolean;
3288
- persistKey?: string;
3289
- onStateChange?: (state: SidebarState) => void;
3290
- customStyles?: {
3291
- background?: string;
3292
- border?: string;
3293
- text?: string;
3294
- hover?: string;
3295
- active?: string;
3296
- };
3297
- fullWidthItems?: boolean;
3298
- }
3299
- interface SidebarState {
3300
- collapsed: boolean;
3301
- expandedSections: string[];
3302
- searchQuery: string;
3303
- pinnedItems: string[];
3304
- recentItems: string[];
3305
- }
3306
- interface SidebarProps extends SidebarConfig {
3307
- className?: string;
3308
- activePath?: string;
3309
- onNavigate?: (href: string) => void;
3310
- }
3311
- declare function Sidebar(props: SidebarProps): react_jsx_runtime.JSX.Element;
3312
- declare const MoonUISidebarPro: typeof Sidebar;
3313
- type MoonUISidebarProProps = SidebarProps;
3314
-
3315
3318
  interface NavbarItem {
3316
3319
  id: string;
3317
3320
  title: string;