@lzzjokerzzl/react-ui-components 1.1.2 → 1.2.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.
package/dist/index.d.ts CHANGED
@@ -978,6 +978,7 @@ export declare const BreadcrumbItem: default_2.ForwardRefExoticComponent<Breadcr
978
978
  export declare interface BreadcrumbItemProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
979
979
  children: ReactNode;
980
980
  href?: string;
981
+ to?: string;
981
982
  isDisabled?: boolean;
982
983
  isCurrent?: boolean;
983
984
  startContent?: ReactNode;
@@ -1891,6 +1892,25 @@ declare type InputType = "text" | "email" | "url" | "password" | "tel" | "search
1891
1892
  */
1892
1893
  declare type InputVariant = "flat" | "bordered" | "faded" | "underlined";
1893
1894
 
1895
+ export declare const LibraryLink: default_2.FC<LibraryLinkProps>;
1896
+
1897
+ export declare interface LibraryLinkProps {
1898
+ to: string;
1899
+ children: React.ReactNode;
1900
+ className?: string;
1901
+ activeClassName?: string;
1902
+ exact?: boolean;
1903
+ replace?: boolean;
1904
+ onClick?: (event: React.MouseEvent) => void;
1905
+ }
1906
+
1907
+ export declare interface LibraryRouterProps {
1908
+ children: React.ReactNode;
1909
+ basePath?: string;
1910
+ routes?: Route[];
1911
+ onRouteChange?: (path: string) => void;
1912
+ }
1913
+
1894
1914
  /**
1895
1915
  * Menu trigger behavior
1896
1916
  */
@@ -2032,6 +2052,14 @@ declare interface NavbarSlots {
2032
2052
  menuItem?: string;
2033
2053
  }
2034
2054
 
2055
+ export declare const Navigation: default_2.FC<NavigationProps>;
2056
+
2057
+ export declare interface NavigationProps {
2058
+ routes: RouteGroup[];
2059
+ className?: string;
2060
+ renderItem?: (route: Route, isActive: boolean) => React.ReactNode;
2061
+ }
2062
+
2035
2063
  /**
2036
2064
  * Main Pagination component that provides pagination functionality
2037
2065
  */
@@ -2441,6 +2469,31 @@ export declare interface RotateInProps extends BaseAnimationProps {
2441
2469
  transformOrigin?: string;
2442
2470
  }
2443
2471
 
2472
+ export declare interface Route {
2473
+ path: string;
2474
+ element: React.ComponentType;
2475
+ label: string;
2476
+ icon?: React.ReactNode;
2477
+ category?: string;
2478
+ exact?: boolean;
2479
+ }
2480
+
2481
+ export declare interface RouteGroup {
2482
+ label: string;
2483
+ routes: Route[];
2484
+ }
2485
+
2486
+ export declare interface RouterContextType {
2487
+ routes: Route[];
2488
+ currentPath: string;
2489
+ navigate: (path: string) => void;
2490
+ goBack: () => void;
2491
+ goForward: () => void;
2492
+ addRoute: (route: Route) => void;
2493
+ removeRoute: (path: string) => void;
2494
+ getRoutesByCategory: (category: string) => Route[];
2495
+ }
2496
+
2444
2497
  /**
2445
2498
  * Row data interface
2446
2499
  */
@@ -2494,6 +2547,71 @@ declare type SelectionMode_2 = "none" | "single" | "multiple";
2494
2547
 
2495
2548
  declare type SeparatorType = 'slash' | 'chevron' | 'arrow' | 'dot' | 'custom';
2496
2549
 
2550
+ export declare const Sidebar: default_2.FC<SidebarProps>;
2551
+
2552
+ export declare const SidebarContent: default_2.FC<SidebarContentProps>;
2553
+
2554
+ export declare interface SidebarContentProps {
2555
+ children: ReactNode;
2556
+ className?: string;
2557
+ }
2558
+
2559
+ export declare interface SidebarContextType {
2560
+ isOpen: boolean;
2561
+ isMobile: boolean;
2562
+ toggle: () => void;
2563
+ open: () => void;
2564
+ close: () => void;
2565
+ }
2566
+
2567
+ export declare const SidebarFooter: default_2.FC<SidebarFooterProps>;
2568
+
2569
+ export declare interface SidebarFooterProps {
2570
+ children: ReactNode;
2571
+ className?: string;
2572
+ }
2573
+
2574
+ export declare const SidebarHeader: default_2.FC<SidebarHeaderProps>;
2575
+
2576
+ export declare interface SidebarHeaderProps {
2577
+ children: ReactNode;
2578
+ className?: string;
2579
+ showCloseButton?: boolean;
2580
+ onClose?: () => void;
2581
+ }
2582
+
2583
+ export declare const SidebarItem: default_2.FC<SidebarItemProps>;
2584
+
2585
+ export declare interface SidebarItemProps {
2586
+ children: ReactNode;
2587
+ icon?: ReactNode;
2588
+ isActive?: boolean;
2589
+ href?: string;
2590
+ to?: string;
2591
+ onClick?: () => void;
2592
+ className?: string;
2593
+ disabled?: boolean;
2594
+ }
2595
+
2596
+ export declare interface SidebarProps {
2597
+ children?: ReactNode;
2598
+ className?: string;
2599
+ width?: number | string;
2600
+ position?: "left" | "right";
2601
+ variant?: "permanent" | "temporary" | "persistent";
2602
+ backdrop?: boolean;
2603
+ closeOnBackdropClick?: boolean;
2604
+ closeOnEscape?: boolean;
2605
+ }
2606
+
2607
+ export declare const SidebarTrigger: default_2.FC<SidebarTriggerProps>;
2608
+
2609
+ export declare interface SidebarTriggerProps {
2610
+ children?: ReactNode;
2611
+ className?: string;
2612
+ "aria-label"?: string;
2613
+ }
2614
+
2497
2615
  export declare const SlideContainer: default_2.FC<SlideContainerProps>;
2498
2616
 
2499
2617
  export declare interface SlideContainerProps extends BaseAnimatedContainerProps {
@@ -3166,6 +3284,17 @@ declare interface UseAvatarReturn {
3166
3284
  fallbackProps: ComponentPropsWithoutRef<"div">;
3167
3285
  }
3168
3286
 
3287
+ export declare const useLibraryNavigation: () => {
3288
+ navigateTo: (path: string, replace?: boolean) => void;
3289
+ goBack: () => void;
3290
+ goForward: () => void;
3291
+ isActive: (path: string, exact?: boolean) => boolean;
3292
+ currentPath: string;
3293
+ getCurrentRoute: () => Route | undefined;
3294
+ getRouteByPath: (path: string) => Route | undefined;
3295
+ routes: Route[];
3296
+ };
3297
+
3169
3298
  export declare function useModal(props?: UseModalProps): UseModalReturn;
3170
3299
 
3171
3300
  declare interface UseModalProps {