@simoncomputing/mui-bueno-v2 0.26.4 → 0.27.0
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 +20 -0
- package/dist/components/Table/Table.d.ts +21 -5
- package/dist/index.cjs.js +77 -77
- package/dist/index.es.js +4009 -4001
- package/dist/index.umd.js +82 -82
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,26 @@ 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.27.0] - 2026-04-14
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `Table`, `PaginatedTable`
|
|
19
|
+
- Added controlled version of `highlightSelectedRow` -- see `selectedRowKey` prop
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- `Table`, `PaginatedTable`
|
|
24
|
+
- `highlightSelectedRow` prop has been split into `higlightSelectedRow` & `selectedRowColor`.
|
|
25
|
+
- MIGRATION:
|
|
26
|
+
- Old: <Table ... highlightSelectedRow={color} />
|
|
27
|
+
- New: <Table ... highlightSelectedRow selectedRowColor={color} />
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- `CitationManager`, `SelectableCitationManager`, `CitationField`
|
|
32
|
+
- Grammar fix in paste & prefill popup
|
|
33
|
+
|
|
14
34
|
## [0.26.4] - 2026-03-26
|
|
15
35
|
|
|
16
36
|
### Fixed
|
|
@@ -32,6 +32,8 @@ export type BaseTableProps<T> = {
|
|
|
32
32
|
onRowClickObj?: (obj: T) => void;
|
|
33
33
|
/**
|
|
34
34
|
* For tables with selectable rows. When defined, shows checkbox as first column.
|
|
35
|
+
*
|
|
36
|
+
* Note: data must have IDs.
|
|
35
37
|
*/
|
|
36
38
|
checkedIds?: number[];
|
|
37
39
|
/**
|
|
@@ -90,7 +92,7 @@ export type BaseTableProps<T> = {
|
|
|
90
92
|
/**
|
|
91
93
|
* Function called when a row is clicked. Expands the row and displays the content returned by the function.
|
|
92
94
|
*
|
|
93
|
-
* NOTE: not supported for mobile stack currently.
|
|
95
|
+
* NOTE: not supported for mobile stack currently. Data must have an ID attribute.
|
|
94
96
|
*/
|
|
95
97
|
renderExpand?: (item: T) => React.ReactNode;
|
|
96
98
|
/**
|
|
@@ -108,12 +110,26 @@ export type BaseTableProps<T> = {
|
|
|
108
110
|
*/
|
|
109
111
|
disableMobileCards?: boolean;
|
|
110
112
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
113
|
+
* Highlights user-selected row.
|
|
114
|
+
*
|
|
115
|
+
* Set to `true` to enable. Alternatively, if you want a default value, set this to your row ID (or KEY if you've defined `getRowKey`)
|
|
116
|
+
*
|
|
117
|
+
* UNCONTROLLED. See `selectedRowKey` for controlled version.
|
|
114
118
|
* @default false
|
|
115
119
|
*/
|
|
116
|
-
highlightSelectedRow?: boolean | string;
|
|
120
|
+
highlightSelectedRow?: boolean | string | number;
|
|
121
|
+
/**
|
|
122
|
+
* Defines highlight color for a selected row
|
|
123
|
+
* @default MUI palette gray
|
|
124
|
+
*/
|
|
125
|
+
selectedRowColor?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Highlights user-selected row.
|
|
128
|
+
*
|
|
129
|
+
* CONTROLLED. Use with `onRowClick` to update the selected row. Value must be the ID (or key if you've defined `getRowKey`).
|
|
130
|
+
* See `highlightSelectedRow` for uncontrolled version.
|
|
131
|
+
*/
|
|
132
|
+
selectedRowKey?: string | number;
|
|
117
133
|
/**
|
|
118
134
|
* Allows overriding of default header row style settings (table only -- this has no effect on the card list for mobile)
|
|
119
135
|
*
|