@equisoft/design-elements-react 8.0.1-snapshot.20240920141813 → 8.0.1-snapshot.20240923184849

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.
@@ -11,7 +11,7 @@ object-assign
11
11
  */
12
12
 
13
13
  /*!
14
- react-datepicker v7.3.0
14
+ react-datepicker v7.4.0
15
15
  https://github.com/Hacker0x01/react-datepicker
16
16
  Released under the MIT License.
17
17
  */
@@ -2,7 +2,9 @@ import { ReactElement } from 'react';
2
2
  import { Row, ColumnSort } from '@tanstack/react-table';
3
3
  import { TableColumn } from './types';
4
4
  type RowSize = 'small' | 'medium' | 'large';
5
+ type RowSelectionMode = 'single' | 'multiple';
5
6
  export interface TableProps<T extends object> {
7
+ ariaLabelledByColumnId?: string;
6
8
  data: T[];
7
9
  defaultSort?: ColumnSort;
8
10
  columns: TableColumn<T>[];
@@ -17,7 +19,7 @@ export interface TableProps<T extends object> {
17
19
  * @default medium
18
20
  */
19
21
  rowSize?: RowSize;
20
- selectableRows?: boolean;
22
+ rowSelectionMode?: RowSelectionMode;
21
23
  /**
22
24
  * Adds striped rows
23
25
  * @default false
@@ -31,5 +33,5 @@ export interface TableProps<T extends object> {
31
33
  onSelectedRowsChange?(selectedRows: T[]): void;
32
34
  onSort?(sort: ColumnSort | null): void;
33
35
  }
34
- export declare const Table: <T extends object>({ className, data, defaultSort, columns: providedColumns, expandableRows, stickyHeader, stickyFooter, rowNumbers, rowSize, selectableRows, striped, manualSort, onRowClick, onSelectedRowsChange, onSort, }: TableProps<T>) => ReactElement;
36
+ export declare const Table: <T extends object>({ ariaLabelledByColumnId, className, data, defaultSort, columns: providedColumns, expandableRows, stickyHeader, stickyFooter, rowNumbers, rowSize, rowSelectionMode, striped, manualSort, onRowClick, onSelectedRowsChange, onSort, }: TableProps<T>) => ReactElement;
35
37
  export {};
@@ -110,6 +110,7 @@ export declare const Translations: {
110
110
  };
111
111
  table: {
112
112
  subrowsAriaLabel: string;
113
+ selectRow: string;
113
114
  };
114
115
  tabs: {
115
116
  addTab: string;
@@ -246,6 +247,7 @@ export declare const Translations: {
246
247
  };
247
248
  table: {
248
249
  subrowsAriaLabel: string;
250
+ selectRow: string;
249
251
  };
250
252
  tabs: {
251
253
  addTab: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/design-elements-react",
3
- "version": "8.0.1-snapshot.20240920141813",
3
+ "version": "8.0.1-snapshot.20240923184849",
4
4
  "description": "React implementation of the Equisoft design system.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/bundle.js",