@simoncomputing/mui-bueno-v2 0.19.21 → 0.19.23
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/CHANGELOG.md +13 -0
- package/dist/components/Table/Table.d.ts +13 -0
- package/dist/index.cjs.js +69 -69
- package/dist/index.es.js +4028 -4021
- package/dist/index.umd.js +53 -53
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
- Minor increment --> singlular/minor changes. Minimal breaking changes.
|
|
12
12
|
- Patch increment --> singlular/minor changes. Zero breaking changes.
|
|
13
13
|
|
|
14
|
+
## [0.19.23] - 2025-12-04
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `Table` / `PaginatedTable` - added `onRowClickObj` which is similar to `onRowClick` but provides the whole object instead of just the object's id.
|
|
19
|
+
|
|
20
|
+
## [0.19.22] - 2025-12-03
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- `Table` / `PaginatedTable`
|
|
25
|
+
- Added `expandOnRowClick` which allows the table row to expand/collapse when the user clicks anywhere on the row.
|
|
26
|
+
|
|
14
27
|
## [0.19.21] - 2025-11-25
|
|
15
28
|
|
|
16
29
|
### Fixed
|
|
@@ -26,6 +26,10 @@ export type BaseTableProps<T> = {
|
|
|
26
26
|
* Function to call when a row is clicked
|
|
27
27
|
*/
|
|
28
28
|
onRowClick?: (id?: number | string) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Same as onRowClick but provides the whole object.
|
|
31
|
+
*/
|
|
32
|
+
onRowClickObj?: (obj: T) => void;
|
|
29
33
|
/**
|
|
30
34
|
* Define which columns (fieldName) to hide on mobile/small screens
|
|
31
35
|
*/
|
|
@@ -85,6 +89,15 @@ export type BaseTableProps<T> = {
|
|
|
85
89
|
* NOTE: not supported for mobile stack currently.
|
|
86
90
|
*/
|
|
87
91
|
renderExpand?: (item: T) => React.ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* Whether user can click anywhere on the row, or just on the chevron, to expand/collapse the row.
|
|
94
|
+
*
|
|
95
|
+
* true --> clicking anywhere on the row will expand/collapse
|
|
96
|
+
* false --> user must click on the chevron to expand/collapse (recommended if your row has other clickable elements)
|
|
97
|
+
*
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
expandOnRowClick?: boolean;
|
|
88
101
|
/**
|
|
89
102
|
* Renders Table render as a Table, instead of cards, on Mobile/small screens
|
|
90
103
|
* @default false
|