@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.
@@ -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 {};
@@ -1,2 +1 @@
1
1
  export * from './GenericTable';
2
- export * from './GroupRowActions/GroupRowActions';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@canonical/maas-react-components",
3
3
  "description": "React components for use in MAAS UI projects.",
4
- "version": "1.33.2",
4
+ "version": "1.33.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/canonical/maas-react-components.git"
@@ -1,7 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { Row } from '@tanstack/react-table';
3
- type GroupRowActionsProps<T> = {
4
- row: Row<T>;
5
- };
6
- export declare const GroupRowActions: <T>({ row, }: GroupRowActionsProps<T>) => ReactElement;
7
- export {};
@@ -1 +0,0 @@
1
- export * from './GroupRowActions';