@lzzjokerzzl/react-ui-components 1.1.2 → 1.3.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/README.md +196 -32
- package/dist/index.cjs +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +148 -2
- package/dist/index.js +5483 -5129
- package/dist/index.js.map +1 -1
- package/dist/react-ui-components.css +1 -1
- package/package.json +14 -3
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;
|
|
@@ -1515,6 +1516,18 @@ export declare interface CounterTextProps extends Omit<BaseTextProps, 'text'> {
|
|
|
1515
1516
|
*/
|
|
1516
1517
|
export declare type CursorStyle = 'block' | 'line' | 'underscore' | 'none';
|
|
1517
1518
|
|
|
1519
|
+
/**
|
|
1520
|
+
* Custom color configuration for table
|
|
1521
|
+
*/
|
|
1522
|
+
declare interface CustomTableColor {
|
|
1523
|
+
background?: string;
|
|
1524
|
+
border?: string;
|
|
1525
|
+
text?: string;
|
|
1526
|
+
hover?: string;
|
|
1527
|
+
selected?: string;
|
|
1528
|
+
gradient?: string;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1518
1531
|
/**
|
|
1519
1532
|
* Disabled behavior types
|
|
1520
1533
|
*/
|
|
@@ -1891,6 +1904,25 @@ declare type InputType = "text" | "email" | "url" | "password" | "tel" | "search
|
|
|
1891
1904
|
*/
|
|
1892
1905
|
declare type InputVariant = "flat" | "bordered" | "faded" | "underlined";
|
|
1893
1906
|
|
|
1907
|
+
export declare const LibraryLink: default_2.FC<LibraryLinkProps>;
|
|
1908
|
+
|
|
1909
|
+
export declare interface LibraryLinkProps {
|
|
1910
|
+
to: string;
|
|
1911
|
+
children: React.ReactNode;
|
|
1912
|
+
className?: string;
|
|
1913
|
+
activeClassName?: string;
|
|
1914
|
+
exact?: boolean;
|
|
1915
|
+
replace?: boolean;
|
|
1916
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
export declare interface LibraryRouterProps {
|
|
1920
|
+
children: React.ReactNode;
|
|
1921
|
+
basePath?: string;
|
|
1922
|
+
routes?: Route[];
|
|
1923
|
+
onRouteChange?: (path: string) => void;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1894
1926
|
/**
|
|
1895
1927
|
* Menu trigger behavior
|
|
1896
1928
|
*/
|
|
@@ -2032,6 +2064,14 @@ declare interface NavbarSlots {
|
|
|
2032
2064
|
menuItem?: string;
|
|
2033
2065
|
}
|
|
2034
2066
|
|
|
2067
|
+
export declare const Navigation: default_2.FC<NavigationProps>;
|
|
2068
|
+
|
|
2069
|
+
export declare interface NavigationProps {
|
|
2070
|
+
routes: RouteGroup[];
|
|
2071
|
+
className?: string;
|
|
2072
|
+
renderItem?: (route: Route, isActive: boolean) => React.ReactNode;
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2035
2075
|
/**
|
|
2036
2076
|
* Main Pagination component that provides pagination functionality
|
|
2037
2077
|
*/
|
|
@@ -2441,6 +2481,31 @@ export declare interface RotateInProps extends BaseAnimationProps {
|
|
|
2441
2481
|
transformOrigin?: string;
|
|
2442
2482
|
}
|
|
2443
2483
|
|
|
2484
|
+
export declare interface Route {
|
|
2485
|
+
path: string;
|
|
2486
|
+
element: React.ComponentType;
|
|
2487
|
+
label: string;
|
|
2488
|
+
icon?: React.ReactNode;
|
|
2489
|
+
category?: string;
|
|
2490
|
+
exact?: boolean;
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
export declare interface RouteGroup {
|
|
2494
|
+
label: string;
|
|
2495
|
+
routes: Route[];
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
export declare interface RouterContextType {
|
|
2499
|
+
routes: Route[];
|
|
2500
|
+
currentPath: string;
|
|
2501
|
+
navigate: (path: string) => void;
|
|
2502
|
+
goBack: () => void;
|
|
2503
|
+
goForward: () => void;
|
|
2504
|
+
addRoute: (route: Route) => void;
|
|
2505
|
+
removeRoute: (path: string) => void;
|
|
2506
|
+
getRoutesByCategory: (category: string) => Route[];
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2444
2509
|
/**
|
|
2445
2510
|
* Row data interface
|
|
2446
2511
|
*/
|
|
@@ -2494,6 +2559,71 @@ declare type SelectionMode_2 = "none" | "single" | "multiple";
|
|
|
2494
2559
|
|
|
2495
2560
|
declare type SeparatorType = 'slash' | 'chevron' | 'arrow' | 'dot' | 'custom';
|
|
2496
2561
|
|
|
2562
|
+
export declare const Sidebar: default_2.FC<SidebarProps>;
|
|
2563
|
+
|
|
2564
|
+
export declare const SidebarContent: default_2.FC<SidebarContentProps>;
|
|
2565
|
+
|
|
2566
|
+
export declare interface SidebarContentProps {
|
|
2567
|
+
children: ReactNode;
|
|
2568
|
+
className?: string;
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
export declare interface SidebarContextType {
|
|
2572
|
+
isOpen: boolean;
|
|
2573
|
+
isMobile: boolean;
|
|
2574
|
+
toggle: () => void;
|
|
2575
|
+
open: () => void;
|
|
2576
|
+
close: () => void;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
export declare const SidebarFooter: default_2.FC<SidebarFooterProps>;
|
|
2580
|
+
|
|
2581
|
+
export declare interface SidebarFooterProps {
|
|
2582
|
+
children: ReactNode;
|
|
2583
|
+
className?: string;
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
export declare const SidebarHeader: default_2.FC<SidebarHeaderProps>;
|
|
2587
|
+
|
|
2588
|
+
export declare interface SidebarHeaderProps {
|
|
2589
|
+
children: ReactNode;
|
|
2590
|
+
className?: string;
|
|
2591
|
+
showCloseButton?: boolean;
|
|
2592
|
+
onClose?: () => void;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
export declare const SidebarItem: default_2.FC<SidebarItemProps>;
|
|
2596
|
+
|
|
2597
|
+
export declare interface SidebarItemProps {
|
|
2598
|
+
children: ReactNode;
|
|
2599
|
+
icon?: ReactNode;
|
|
2600
|
+
isActive?: boolean;
|
|
2601
|
+
href?: string;
|
|
2602
|
+
to?: string;
|
|
2603
|
+
onClick?: () => void;
|
|
2604
|
+
className?: string;
|
|
2605
|
+
disabled?: boolean;
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
export declare interface SidebarProps {
|
|
2609
|
+
children?: ReactNode;
|
|
2610
|
+
className?: string;
|
|
2611
|
+
width?: number | string;
|
|
2612
|
+
position?: "left" | "right";
|
|
2613
|
+
variant?: "permanent" | "temporary" | "persistent";
|
|
2614
|
+
backdrop?: boolean;
|
|
2615
|
+
closeOnBackdropClick?: boolean;
|
|
2616
|
+
closeOnEscape?: boolean;
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
export declare const SidebarTrigger: default_2.FC<SidebarTriggerProps>;
|
|
2620
|
+
|
|
2621
|
+
export declare interface SidebarTriggerProps {
|
|
2622
|
+
children?: ReactNode;
|
|
2623
|
+
className?: string;
|
|
2624
|
+
"aria-label"?: string;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2497
2627
|
export declare const SlideContainer: default_2.FC<SlideContainerProps>;
|
|
2498
2628
|
|
|
2499
2629
|
export declare interface SlideContainerProps extends BaseAnimatedContainerProps {
|
|
@@ -2640,12 +2770,12 @@ export declare interface SwitchProps {
|
|
|
2640
2770
|
*/
|
|
2641
2771
|
declare type SwitchSize = "sm" | "md" | "lg";
|
|
2642
2772
|
|
|
2643
|
-
export declare const Table: <T extends Record<string, any> = any>({ children, className, color, layout, radius, shadow, maxTableHeight, rowHeight, isVirtualized, hideHeader, isStriped, isCompact, isHeaderSticky, fullWidth, removeWrapper, topContent, bottomContent, topContentPlacement, bottomContentPlacement, showSelectionCheckboxes, sortDescriptor, selectedKeys, defaultSelectedKeys, disabledKeys, disallowEmptySelection, selectionMode, selectionBehavior, disabledBehavior, allowDuplicateSelectionEvents, disableAnimation, isKeyboardNavigationDisabled, columns, items, onRowAction, onCellAction, onSelectionChange, onSortChange, "data-testid": testId, ...props }: TableProps<T>) => JSX.Element;
|
|
2773
|
+
export declare const Table: <T extends Record<string, any> = any>({ children, className, color, customColor, layout, radius, shadow, maxTableHeight, rowHeight, isVirtualized, hideHeader, isStriped, isCompact, isHeaderSticky, fullWidth, removeWrapper, topContent, bottomContent, topContentPlacement, bottomContentPlacement, showSelectionCheckboxes, sortDescriptor, selectedKeys, defaultSelectedKeys, disabledKeys, disallowEmptySelection, selectionMode, selectionBehavior, disabledBehavior, allowDuplicateSelectionEvents, disableAnimation, isKeyboardNavigationDisabled, loading, emptyContent, centerHeaderText, centerCellText, columns, items, onRowAction, onCellAction, onSelectionChange, onSortChange, "data-testid": testId, ...props }: TableProps<T>) => JSX.Element;
|
|
2644
2774
|
|
|
2645
2775
|
/**
|
|
2646
2776
|
* Table color variants
|
|
2647
2777
|
*/
|
|
2648
|
-
declare type TableColor = "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
2778
|
+
declare type TableColor = "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "custom";
|
|
2649
2779
|
|
|
2650
2780
|
/**
|
|
2651
2781
|
* Table layout types
|
|
@@ -2659,6 +2789,7 @@ export declare interface TableProps<T = RowData> {
|
|
|
2659
2789
|
children?: ReactNode;
|
|
2660
2790
|
className?: string;
|
|
2661
2791
|
color?: TableColor;
|
|
2792
|
+
customColor?: CustomTableColor;
|
|
2662
2793
|
layout?: TableLayout;
|
|
2663
2794
|
radius?: TableRadius;
|
|
2664
2795
|
shadow?: TableShadow;
|
|
@@ -2689,6 +2820,10 @@ export declare interface TableProps<T = RowData> {
|
|
|
2689
2820
|
isKeyboardNavigationDisabled?: boolean;
|
|
2690
2821
|
columns?: ColumnDef<T>[];
|
|
2691
2822
|
items?: T[];
|
|
2823
|
+
loading?: boolean;
|
|
2824
|
+
emptyContent?: ReactNode;
|
|
2825
|
+
centerHeaderText?: boolean;
|
|
2826
|
+
centerCellText?: boolean;
|
|
2692
2827
|
onRowAction?: (key: Key) => void;
|
|
2693
2828
|
onCellAction?: (key: Key) => void;
|
|
2694
2829
|
onSelectionChange?: (keys: Selection_2) => void;
|
|
@@ -3166,6 +3301,17 @@ declare interface UseAvatarReturn {
|
|
|
3166
3301
|
fallbackProps: ComponentPropsWithoutRef<"div">;
|
|
3167
3302
|
}
|
|
3168
3303
|
|
|
3304
|
+
export declare const useLibraryNavigation: () => {
|
|
3305
|
+
navigateTo: (path: string, replace?: boolean) => void;
|
|
3306
|
+
goBack: () => void;
|
|
3307
|
+
goForward: () => void;
|
|
3308
|
+
isActive: (path: string, exact?: boolean) => boolean;
|
|
3309
|
+
currentPath: string;
|
|
3310
|
+
getCurrentRoute: () => Route | undefined;
|
|
3311
|
+
getRouteByPath: (path: string) => Route | undefined;
|
|
3312
|
+
routes: Route[];
|
|
3313
|
+
};
|
|
3314
|
+
|
|
3169
3315
|
export declare function useModal(props?: UseModalProps): UseModalReturn;
|
|
3170
3316
|
|
|
3171
3317
|
declare interface UseModalProps {
|