@lzzjokerzzl/react-ui-components 1.2.0 → 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/dist/index.d.ts CHANGED
@@ -1516,6 +1516,18 @@ export declare interface CounterTextProps extends Omit<BaseTextProps, 'text'> {
1516
1516
  */
1517
1517
  export declare type CursorStyle = 'block' | 'line' | 'underscore' | 'none';
1518
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
+
1519
1531
  /**
1520
1532
  * Disabled behavior types
1521
1533
  */
@@ -2758,12 +2770,12 @@ export declare interface SwitchProps {
2758
2770
  */
2759
2771
  declare type SwitchSize = "sm" | "md" | "lg";
2760
2772
 
2761
- 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;
2762
2774
 
2763
2775
  /**
2764
2776
  * Table color variants
2765
2777
  */
2766
- declare type TableColor = "default" | "primary" | "secondary" | "success" | "warning" | "danger";
2778
+ declare type TableColor = "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "custom";
2767
2779
 
2768
2780
  /**
2769
2781
  * Table layout types
@@ -2777,6 +2789,7 @@ export declare interface TableProps<T = RowData> {
2777
2789
  children?: ReactNode;
2778
2790
  className?: string;
2779
2791
  color?: TableColor;
2792
+ customColor?: CustomTableColor;
2780
2793
  layout?: TableLayout;
2781
2794
  radius?: TableRadius;
2782
2795
  shadow?: TableShadow;
@@ -2807,6 +2820,10 @@ export declare interface TableProps<T = RowData> {
2807
2820
  isKeyboardNavigationDisabled?: boolean;
2808
2821
  columns?: ColumnDef<T>[];
2809
2822
  items?: T[];
2823
+ loading?: boolean;
2824
+ emptyContent?: ReactNode;
2825
+ centerHeaderText?: boolean;
2826
+ centerCellText?: boolean;
2810
2827
  onRowAction?: (key: Key) => void;
2811
2828
  onCellAction?: (key: Key) => void;
2812
2829
  onSelectionChange?: (keys: Selection_2) => void;