tcce-design-system 0.1.1 → 0.1.3
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.
|
@@ -457,7 +457,6 @@ export declare interface HeaderProps {
|
|
|
457
457
|
sidebarCollapsed?: boolean;
|
|
458
458
|
user?: HeaderUser;
|
|
459
459
|
hasNotifications?: boolean;
|
|
460
|
-
/** Optional count. If provided and > 0, overrides hasNotifications and shows the number (capped). */
|
|
461
460
|
notificationCount?: number;
|
|
462
461
|
onNotificationClick?: () => void;
|
|
463
462
|
onUserProfileClick?: () => void;
|
|
@@ -589,14 +588,10 @@ export declare const Layout: default_2.FC<LayoutProps>;
|
|
|
589
588
|
* @onUserProfileClick - Callback when user profile area is clicked.
|
|
590
589
|
* @contentClassName - Optional class name for main content area.
|
|
591
590
|
*/
|
|
592
|
-
export declare interface LayoutProps {
|
|
591
|
+
export declare interface LayoutProps extends SidebarProps {
|
|
593
592
|
children: default_2.ReactNode;
|
|
594
|
-
navigationConfig: NavigationItem[];
|
|
595
|
-
userRoles?: string[];
|
|
596
|
-
activePath?: string;
|
|
597
593
|
user?: HeaderUser;
|
|
598
594
|
hasNotifications?: boolean;
|
|
599
|
-
onNavigate?: (path: string) => void;
|
|
600
595
|
onNotificationClick?: () => void;
|
|
601
596
|
onUserProfileClick?: () => void;
|
|
602
597
|
contentClassName?: string;
|
|
@@ -659,7 +654,7 @@ export declare type LinkVariant = 'underlined' | 'plain';
|
|
|
659
654
|
export declare interface NavigationItem {
|
|
660
655
|
id: string;
|
|
661
656
|
label: string;
|
|
662
|
-
icon?:
|
|
657
|
+
icon?: default_2.ReactNode | RemixiconComponentType;
|
|
663
658
|
iconSize?: IconSizes | string | number;
|
|
664
659
|
iconColor?: string;
|
|
665
660
|
path?: string;
|
|
@@ -833,20 +828,14 @@ export declare interface SidebarContextValue {
|
|
|
833
828
|
export declare interface SidebarProps {
|
|
834
829
|
navigationConfig: NavigationItem[];
|
|
835
830
|
userRoles?: string[];
|
|
836
|
-
currentUser?: SidebarUser;
|
|
837
831
|
onNavigate?: (path: string) => void;
|
|
838
832
|
activePath?: string;
|
|
839
|
-
|
|
840
|
-
|
|
833
|
+
logoImgExpanded?: default_2.ReactNode;
|
|
834
|
+
logoImgCollapsed?: default_2.ReactNode;
|
|
841
835
|
}
|
|
842
836
|
|
|
843
837
|
export declare const SidebarProvider: ({ children }: PropsWithChildren) => JSX.Element;
|
|
844
838
|
|
|
845
|
-
export declare interface SidebarUser {
|
|
846
|
-
name?: string;
|
|
847
|
-
role?: string;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
839
|
declare type Size = 'sm' | 'md' | 'lg' | 'xl';
|
|
851
840
|
|
|
852
841
|
export declare const sizeStyles: {
|
|
@@ -886,7 +875,7 @@ declare interface SpinnerProps {
|
|
|
886
875
|
* @param onSortChange - Callback for sort direction changes.
|
|
887
876
|
*/
|
|
888
877
|
export declare const Table: {
|
|
889
|
-
({ columns, rows, size, variant,
|
|
878
|
+
({ columns, rows, size, variant, tableWrapperClassName, tableClassName, stickyHeader, onSortChange, }: TableProps): JSX.Element;
|
|
890
879
|
displayName: string;
|
|
891
880
|
};
|
|
892
881
|
|
|
@@ -946,7 +935,6 @@ export declare interface TableHeaderCellProps extends default_2.HTMLAttributes<H
|
|
|
946
935
|
align?: 'left' | 'center' | 'right';
|
|
947
936
|
width?: string | number;
|
|
948
937
|
active?: boolean;
|
|
949
|
-
sticky?: boolean;
|
|
950
938
|
fixed?: 'left' | 'right';
|
|
951
939
|
onSort?: (direction: SortDirection) => void;
|
|
952
940
|
}
|
|
@@ -960,7 +948,8 @@ export declare interface TableProps<T = default_2.ReactNode> {
|
|
|
960
948
|
rows: TableRowData<T>[];
|
|
961
949
|
size?: TableCellSize;
|
|
962
950
|
variant?: TableVariant;
|
|
963
|
-
|
|
951
|
+
tableWrapperClassName?: string;
|
|
952
|
+
tableClassName?: string;
|
|
964
953
|
stickyHeader?: boolean;
|
|
965
954
|
sortState?: SortState;
|
|
966
955
|
onSortChange?: (state: SortState) => void;
|