ui-mathilde-web 0.0.6 → 0.0.7

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.
@@ -47,6 +47,12 @@ declare interface CheckboxProps {
47
47
  onChange: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
48
48
  }
49
49
 
50
+ declare interface Column {
51
+ header: string;
52
+ accessor: string;
53
+ cell?: (row: any) => React_2.ReactNode;
54
+ }
55
+
50
56
  export declare const ImageFormat: ({ src, alt, width, height, classIm }: {
51
57
  src: string;
52
58
  alt: string;
@@ -123,7 +129,15 @@ declare interface SelectFormProps extends React.SelectHTMLAttributes<HTMLSelectE
123
129
 
124
130
  export declare const SidebarMth: () => JSX_2.Element;
125
131
 
126
- export declare const TableComponent: React_2.FC;
132
+ export declare const TableComponent: React_2.FC<TableComponentProps>;
133
+
134
+ declare interface TableComponentProps {
135
+ columns: Column[];
136
+ data: any[];
137
+ showSearch?: boolean;
138
+ itemsPerPage?: number;
139
+ title?: string;
140
+ }
127
141
 
128
142
  export declare const TableOfContents: React.FC<TableOfContentsProps>;
129
143