asma-core-ui 2.19.42 → 2.19.44

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,6 @@
1
1
  import type { StyledTableProps } from './types';
2
2
  export declare const SELECT_COLUMN_ID = "select";
3
+ export declare const EXPAND_COLUMN_ID = "expand-column-id";
3
4
  /**
4
5
  *
5
6
  * Custom props:
@@ -7,9 +8,9 @@ export declare const SELECT_COLUMN_ID = "select";
7
8
  *
8
9
  * If you have a very long data, like descriptions. use input to render long strings instead of div. Example is in Storybook.
9
10
  *
10
- * @param focusable: Used for controlling the focusability of rows. If set to true, the tabIndex={0} attribute will be added to each table row. Used, for example, when adding a new item to scroll to it and focus it
11
+ * @param focusable: Used for controlling the focus of rows. If set to true, the tabIndex={0} attribute will be added to each table row. Used, for example, when adding a new item to scroll to it and focus it
11
12
  *
12
13
  */
13
14
  export declare const StyledTable: <TData extends {
14
15
  id: string | number;
15
- }, TCustomData = Record<string, unknown>>({ actions, columns, data, customSubRowData, initialState, enableRowSelection, headerPin, loading, noRowsOverlay, tableInstanceRef, className, rowHeight, tdClassName, thClassName, getRowClassName, onRowClick, renderSubRows, customActionsNode, focusable, stickyHeader, ...rest }: StyledTableProps<TData, TCustomData>) => JSX.Element;
16
+ }, TCustomData = Record<string, unknown>>({ actions, columns, data, customSubRowData, initialState, enableRowSelection, headerPin, loading, noRowsOverlay, tableInstanceRef, className, rowHeight, tdClassName, thClassName, getRowClassName, onRowClick, renderSubRows, customActionsNode, focusable, stickyHeader, expandArrow, ...rest }: StyledTableProps<TData, TCustomData>) => JSX.Element;
@@ -16,6 +16,6 @@ export declare function generateActionsColumn<TData>(options: {
16
16
  enableSorting: boolean;
17
17
  accessorFn: (row: TData) => TData;
18
18
  header: (props: HeaderContext<TData, TData>) => JSX.Element | null;
19
- cell: (row: CellContext<TData, TData>) => JSX.Element | null;
19
+ cell: (cell: CellContext<TData, TData>) => JSX.Element | null;
20
20
  size: number;
21
21
  };
@@ -0,0 +1,9 @@
1
+ import { type CellContext } from '@tanstack/react-table';
2
+ export declare function generateExpandColumn<TData>(): {
3
+ id: string;
4
+ maxSize: number;
5
+ enableHiding: boolean;
6
+ enableSorting: boolean;
7
+ header: () => null;
8
+ cell: ({ cell }: CellContext<TData, TData>) => JSX.Element | null;
9
+ };
@@ -27,6 +27,7 @@ export interface StyledTableProps<TData, TCustomData> extends Omit<TableOptions<
27
27
  customActionsNode?: (row: CellContext<TData, TData>) => ReactNode;
28
28
  customSubRowData?: Map<string, TCustomData[]>;
29
29
  headerPin?: boolean;
30
+ expandArrow?: boolean;
30
31
  loading?: boolean;
31
32
  noRowsOverlay?: ReactElement;
32
33
  tableInstanceRef?: React.MutableRefObject<Table<TData> | null>;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.19.42",
6
+ "version": "2.19.44",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",