@nurihaus/web-design-system 2.0.4 → 2.0.6
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,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { headerHeight, rowHeight } from './table-props';
|
|
3
2
|
export interface RowItem {
|
|
4
3
|
id: string;
|
|
5
4
|
value: ReactNode;
|
|
@@ -15,8 +14,9 @@ export interface DataTableProps<T extends readonly RowItem[]> {
|
|
|
15
14
|
rows: T;
|
|
16
15
|
columns: ColumnsType<T>;
|
|
17
16
|
fixedRowsIndex?: number;
|
|
18
|
-
headerHeight?:
|
|
19
|
-
rowHeight?:
|
|
17
|
+
headerHeight?: number;
|
|
18
|
+
rowHeight?: number;
|
|
19
|
+
cellHeight?: number;
|
|
20
20
|
className?: string;
|
|
21
21
|
}
|
|
22
22
|
declare const DataTable: <T extends readonly RowItem[]>(props: DataTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
export declare const headerHeight: number[];
|
|
2
|
-
export declare const rowHeight: number[];
|
|
3
1
|
export declare const dataTableHeaderProps: {
|
|
4
2
|
headerHeight: {
|
|
5
|
-
type: "
|
|
6
|
-
|
|
7
|
-
key: "height"[];
|
|
8
|
-
values: number[];
|
|
3
|
+
type: "css";
|
|
4
|
+
key: "height";
|
|
9
5
|
default: number;
|
|
10
6
|
};
|
|
11
7
|
};
|
|
12
8
|
export declare const dataTableRowProps: {
|
|
13
9
|
rowHeight: {
|
|
14
|
-
type: "
|
|
15
|
-
|
|
16
|
-
key: "height"[];
|
|
17
|
-
values: number[];
|
|
10
|
+
type: "css";
|
|
11
|
+
key: "height";
|
|
18
12
|
default: number;
|
|
19
13
|
};
|
|
20
14
|
};
|
|
21
15
|
export declare const dataTableCellProps: {
|
|
22
16
|
cellHeight: {
|
|
23
|
-
type: "
|
|
24
|
-
|
|
25
|
-
key: "height"[];
|
|
26
|
-
values: number[];
|
|
27
|
-
default: number;
|
|
17
|
+
type: "css";
|
|
18
|
+
key: "height";
|
|
28
19
|
};
|
|
29
20
|
};
|