@majoo-ui/react 1.57.15 → 1.57.17

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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { LabelProps } from 'recharts';
3
3
  import { CSS } from '../../config/stitches.config';
4
- interface BarChartData {
4
+ export interface BarChartData {
5
5
  name: string;
6
6
  total: number;
7
7
  color: string;
@@ -15,6 +15,7 @@ interface EditableMobileProps<Data extends object> {
15
15
  showCheckbox?: boolean;
16
16
  customRows?: (row: Row<object>) => CustomRows[];
17
17
  onExpand?: (expanded: boolean) => void;
18
+ hiddenColumns?: string[];
18
19
  }
19
20
  export default function EditableTableMobile(props: EditableMobileProps<any>): JSX.Element;
20
21
  export {};
@@ -66,6 +66,10 @@ interface EditableTableProps<Data extends object> {
66
66
  * Override isMobile condition
67
67
  */
68
68
  isMobileLayout?: boolean;
69
+ /**
70
+ * Array of hidden column id
71
+ */
72
+ hiddenColumns?: string[];
69
73
  }
70
74
  interface RemoveProps {
71
75
  position?: 'leftBottom' | 'rightBottom' | 'leftTop' | 'rightTop';
@@ -1088,10 +1088,19 @@ interface FetchDataParams {
1088
1088
  sortAccessor?: string;
1089
1089
  sortDirection?: string;
1090
1090
  }
1091
+ interface getCellPropParams {
1092
+ css?: CSS;
1093
+ sticky?: 'left' | 'right';
1094
+ stickyPosition?: number;
1095
+ shadow?: boolean;
1096
+ }
1097
+ interface CellProp {
1098
+ getCellProps?: (object: getCellPropParams) => object;
1099
+ }
1091
1100
  export interface RowGroup {
1092
1101
  groupKey: string;
1093
- headerRender?: (row: Row<object>) => React.ReactNode;
1094
- footerRender?: (row: Row<object>) => React.ReactNode;
1102
+ headerRender?: (row: Row<object>, cell: CellProp) => React.ReactNode;
1103
+ footerRender?: (row: Row<object>, cell: CellProp) => React.ReactNode;
1095
1104
  showGroupingWhenSorted?: boolean;
1096
1105
  }
1097
1106
  interface CustomRowsStyle {