@sesamehr/react-design-system 3.5.0 → 3.6.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.
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface TableBulkHeaderBarProps {
|
|
3
|
+
selectedCount: number;
|
|
4
|
+
total: number;
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TableBulkHeaderProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
3
8
|
selectedCount?: number;
|
|
4
9
|
total?: number;
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/** Action controls rendered on the right. */
|
|
11
|
-
actions?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* The whole contents of the bar. A function receives
|
|
12
|
+
* `{ selectedCount, total, message }`; omitted, the bar renders `message`.
|
|
13
|
+
*/
|
|
14
|
+
children?: ReactNode | ((props: TableBulkHeaderBarProps) => ReactNode);
|
|
12
15
|
}
|
|
13
16
|
export declare const TableBulkHeader: import('react').ForwardRefExoticComponent<TableBulkHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
|