@canonical/maas-react-components 1.33.2 → 1.33.4
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/@canonical/maas-react-components.es.js +1407 -1368
- package/dist/@canonical/maas-react-components.umd.js +11 -11
- package/dist/maas-react-components.css +1 -1
- package/dist/src/lib/components/GenericTable/GenericTable.d.ts +3 -1
- package/dist/src/lib/components/GenericTable/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/lib/components/GenericTable/GroupRowActions/GroupRowActions.d.ts +0 -7
- package/dist/src/lib/components/GenericTable/GroupRowActions/GroupRowActions.test.d.ts +0 -1
- package/dist/src/lib/components/GenericTable/GroupRowActions/index.d.ts +0 -1
|
@@ -24,6 +24,7 @@ type GenericTableProps<T extends {
|
|
|
24
24
|
sortBy?: ColumnSort[];
|
|
25
25
|
rowSelection?: RowSelectionState;
|
|
26
26
|
setRowSelection?: Dispatch<SetStateAction<RowSelectionState>>;
|
|
27
|
+
showChevron?: boolean;
|
|
27
28
|
variant?: "full-height" | "regular";
|
|
28
29
|
} & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
29
30
|
/**
|
|
@@ -53,6 +54,7 @@ type GenericTableProps<T extends {
|
|
|
53
54
|
* @param {ColumnSort[]} [props.sortBy] - Initial sort configuration
|
|
54
55
|
* @param {RowSelectionState} [props.rowSelection] - Selected rows state
|
|
55
56
|
* @param {Dispatch<SetStateAction<RowSelectionState>>} [props.setRowSelection] - Selection state setter
|
|
57
|
+
* @param {boolean} [props.showChevron=false] - Show group row expansion state chevrons
|
|
56
58
|
* @param {"full-height" | "regular"} [props.variant="full-height"] - Table layout variant
|
|
57
59
|
*
|
|
58
60
|
* @returns {ReactElement} - The rendered table component
|
|
@@ -77,5 +79,5 @@ type GenericTableProps<T extends {
|
|
|
77
79
|
*/
|
|
78
80
|
export declare const GenericTable: <T extends {
|
|
79
81
|
id: number | string;
|
|
80
|
-
}>({ className, canSelect, disabledSelectionTooltip, columns: initialColumns, containerRef, data: initialData, filterCells, filterHeaders, getSubRows, groupBy, isLoading, noData, pagination, pinGroup, sortBy, rowSelection, setRowSelection, variant, ...props }: GenericTableProps<T>) => ReactElement;
|
|
82
|
+
}>({ className, canSelect, disabledSelectionTooltip, columns: initialColumns, containerRef, data: initialData, filterCells, filterHeaders, getSubRows, groupBy, isLoading, noData, pagination, pinGroup, sortBy, rowSelection, setRowSelection, showChevron, variant, ...props }: GenericTableProps<T>) => ReactElement;
|
|
81
83
|
export {};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GroupRowActions';
|