@nar-bus/lena-ui-shared 1.3.9 → 1.3.10

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
@@ -831,7 +831,7 @@ export declare interface DataRowProps {
831
831
  size?: 'sm' | 'md';
832
832
  }
833
833
 
834
- export declare function DataTable<TData>({ columns, getRowId, data, isLoading, error, pagination, onPageChange, onPageSizeChange, pageSizeOptions, sortBy, sortDirection, onSortChange, searchValue, onSearchChange, searchPlaceholder, searchDebounceMs, fieldConfig, filters, onFiltersChange, enableRowSelection, rowSelection, onRowSelectionChange, bulkActions, rowActions, toolbarStart, toolbarEnd, className, toolbarVariant, emptyIcon, emptyTitle, emptyDescription, onRowClick, rowClassName, meta, headerColor, }: DataTableComponentProps<TData>): JSX.Element;
834
+ export declare function DataTable<TData>({ columns, getRowId, data, isLoading, error, pagination, onPageChange, onPageSizeChange, pageSizeOptions, sortBy, sortDirection, onSortChange, searchValue, onSearchChange, searchPlaceholder, searchDebounceMs, fieldConfig, filters, onFiltersChange, enableRowSelection, rowSelection, onRowSelectionChange, bulkActions, rowActions, toolbarStart, toolbarEnd, className, toolbarVariant, emptyIcon, emptyTitle, emptyDescription, onRowClick, rowClassName, zebra, meta, headerColor, headerTextColor, }: DataTableComponentProps<TData>): JSX.Element;
835
835
 
836
836
  declare interface DataTableActions {
837
837
  setGeneralSearch: (value: string) => void;
@@ -905,10 +905,14 @@ declare interface DataTableComponentProps<TData> {
905
905
  emptyTitle?: string;
906
906
  emptyDescription?: string;
907
907
  onRowClick?: (row: TData) => void;
908
- rowClassName?: (row: TData) => string;
908
+ rowClassName?: (row: TData, index: number) => string;
909
+ /** Enable alternating row background colors */
910
+ zebra?: boolean;
909
911
  meta?: Record<string, unknown>;
910
912
  /** Custom header color (CSS color value). Overrides --table-header variable */
911
913
  headerColor?: string;
914
+ /** Custom header text color (CSS color value). Used with headerColor for gradient backgrounds */
915
+ headerTextColor?: string;
912
916
  }
913
917
 
914
918
  /** Customization props */
@@ -920,7 +924,9 @@ export declare interface DataTableCustomizationProps<TData> {
920
924
  emptyTitle?: string;
921
925
  emptyDescription?: string;
922
926
  onRowClick?: (row: TData) => void;
923
- rowClassName?: (row: TData) => string;
927
+ rowClassName?: (row: TData, index: number) => string;
928
+ /** Enable alternating row background colors */
929
+ zebra?: boolean;
924
930
  }
925
931
 
926
932
  /** Data props for the table */
@@ -2709,7 +2715,7 @@ export declare interface SidebarNavItem {
2709
2715
  children?: SidebarNavItem[];
2710
2716
  }
2711
2717
 
2712
- export declare function SimpleDataTable<TData>({ columns, data, getRowId, isLoading, error, meta, enableSearch, searchPlaceholder: searchPlaceholderProp, searchColumn, emptyIcon, emptyTitle: emptyTitleProp, emptyDescription, onRowClick, rowClassName, className, loadingRows, headerColor, }: SimpleDataTableProps<TData>): JSX.Element;
2718
+ export declare function SimpleDataTable<TData>({ columns, data, getRowId, isLoading, error, meta, enableSearch, searchPlaceholder: searchPlaceholderProp, searchColumn, emptyIcon, emptyTitle: emptyTitleProp, emptyDescription, onRowClick, rowClassName, zebra, className, loadingRows, headerColor, headerTextColor, }: SimpleDataTableProps<TData>): JSX.Element;
2713
2719
 
2714
2720
  declare interface SimpleDataTableProps<TData> {
2715
2721
  /** Column definitions */
@@ -2739,13 +2745,17 @@ declare interface SimpleDataTableProps<TData> {
2739
2745
  /** Row click handler */
2740
2746
  onRowClick?: (row: TData) => void;
2741
2747
  /** Custom row class */
2742
- rowClassName?: (row: TData) => string;
2748
+ rowClassName?: (row: TData, index: number) => string;
2749
+ /** Enable alternating row background colors */
2750
+ zebra?: boolean;
2743
2751
  /** Container class */
2744
2752
  className?: string;
2745
2753
  /** Number of skeleton rows for loading state */
2746
2754
  loadingRows?: number;
2747
2755
  /** Custom header color (CSS color value). Overrides --table-header variable */
2748
2756
  headerColor?: string;
2757
+ /** Custom header text color (CSS color value). Used with headerColor for gradient backgrounds */
2758
+ headerTextColor?: string;
2749
2759
  }
2750
2760
 
2751
2761
  export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;