@simoncomputing/mui-bueno-v2 0.19.23 → 0.20.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 CHANGED
@@ -11,6 +11,27 @@ 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.20.0] - 2025-12-10
15
+
16
+ ### Changed
17
+
18
+ - Updated dependencies
19
+ - `CitationField`
20
+ - Updated style handling in the bubble/popup menu (resolves breaking change from Mui TipTap)
21
+
22
+ ## [0.19.24] - 2025-12-08
23
+
24
+ ### Added
25
+
26
+ - `PageHeader` - added `bottomGutter` which, when true, will add some margin spacing at the bottom of the component
27
+
28
+ ### Changed
29
+
30
+ - `PageHeader`
31
+ - `title` & `createButtonLabel` are now optional
32
+ - `createButtonLabel` will have a default value of `"Add Item"`
33
+ - returns null if the `title` is not defined, and the create button has no label and/or `showCreateButton` is false
34
+
14
35
  ## [0.19.23] - 2025-12-04
15
36
 
16
37
  ### Added
@@ -173,7 +194,6 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
173
194
  ### Added
174
195
 
175
196
  - `Table`/`PaginatedTable`
176
-
177
197
  - Added additional column to the left of the table when using expandable columns that will display up/down chevrons indicating the row is expandable. In mobile/card view, "Show More"/"Show Less" buttons will be displayed at the bottom of the card instead.
178
198
 
179
199
  - Added this changelog to Storybook
@@ -210,7 +230,6 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
210
230
  ### Changed
211
231
 
212
232
  - `Error`
213
-
214
233
  - Renamed component to `ValidationError` to avoid confusion with JS's built-in Error class. **Migration:** Rename references to `Error` component to `ValidationError`.
215
234
  - Replaced `collapseWhenEmpty` with `errorMode`, which supports an additional mode `none` to always hide errors. **Migration:** When `collapseWithEmpty` is true, use `errorMode="hidden"` or `errorMode="collapse"`.
216
235
 
@@ -229,12 +248,10 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
229
248
  ### Added
230
249
 
231
250
  - `SelectableCitationManager`
232
-
233
251
  - Added `readOnly` prop which when true, will hide the ability to create, update, delete and select/unselect citations/attachments. Note: checkboxes will still be visible but will be disabled.
234
252
  - Added built-in close button to the top-right corner. Clicking will trigger `onClose`.
235
253
 
236
254
  - `CitationManager`
237
-
238
255
  - Added `readOnly` prop which when true, will hide the ability to create, update and delete citations/attachments.
239
256
 
240
257
  - `CitationField`
@@ -243,11 +260,9 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
243
260
  ### Changed
244
261
 
245
262
  - `CitationField`
246
-
247
263
  - Citation/Attachment bubble menu will now open when clicking on citations embedded in the field when the field is `readOnly`. When clicked, the popup will show a readonly view of the citations/attachments -- create, edit, delete and select/unselect actions are hidden, but the user can still download, view, and launch links. Checkboxes will be disabled but still visible.
248
264
 
249
265
  - `CitationField`, `CitationManager`, `SelectableCitationManager`
250
-
251
266
  - When adding an attachment, the "Upload a file" button for selecting a file has been relabeled to "Select a file", and "Add new attachment" button has been relabeled to "Upload Attachment"
252
267
  - Adjusted spacing of fields on Attachment create/edit screen
253
268
 
@@ -298,7 +313,6 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
298
313
  ### Fixed
299
314
 
300
315
  - `CitationField`, `CitationManger`, `SelectableCitationManager`
301
-
302
316
  - Empty form will display if an error occurs when clicking on the edit button and retrieve API call fails
303
317
 
304
318
  - `Radio`/`RadioGroup`
@@ -321,13 +335,11 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
321
335
  ### Added
322
336
 
323
337
  - `CitationField`
324
-
325
338
  - Added helper text for Classification field
326
339
 
327
340
  - `CitationField`, `CitationManger`, `SelectableCitationManager`
328
341
  - Added `canOpenPublicUrls` prop to enable launch url button to display for public source URLs
329
342
  - `CitationManger`, `SelectableCitationManager`
330
-
331
343
  - Added tooltips to actions (Edit, Delete, Download, Open URL)
332
344
  - Improved performance of Delete popper by reducing unnecessary re-renders
333
345
 
@@ -389,7 +401,6 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
389
401
  ### Added
390
402
 
391
403
  - `CitationField`
392
-
393
404
  - added optional `placeholder` prop to override default placeholder text ("Start typing here...")
394
405
  - [prototype] added `notApplicableName` prop which when a formik name is provided, a Not Applicable checkbox will appear
395
406
 
@@ -431,7 +442,6 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
431
442
  ### Changed
432
443
 
433
444
  - `CitationManager` & `SelectableCitationManager`
434
-
435
445
  - Moved actions displayed by `addlActions` to the end of the column, to the right of the delete button
436
446
  - `onCreateCitation` is optional. When not provided, the Add Citation & Add Attachment buttons will not be displayed.
437
447
 
@@ -453,7 +463,6 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
453
463
  ### Fixed
454
464
 
455
465
  - `CitationManager` & `SelectableCitationManager`
456
-
457
466
  - Fixed citation `type` showing attachment icon when `fileName` is null
458
467
  - Fixed `url` displaying instead of `fileName` for attachments
459
468
  - Fixed `accessedAt` displaying a value for attachments
@@ -898,7 +907,6 @@ Summary: Updates the expandable row functionality in `Table` / `PaginatedTable`
898
907
  ### Added
899
908
 
900
909
  - `Table`/`PaginatedTable`
901
-
902
910
  - added `errorTableMsg` prop which, when defined, will show an error message in the table
903
911
  - added `retryCallback` prop which, when defined AND `errorTableMsg` is defined, will display a "Retry?" button for the user to click to trigger a new API fetch.
904
912
 
@@ -1309,7 +1317,6 @@ IMPORTANT: I recommend removing `PageResponse` from your project's `index.d.ts`
1309
1317
  ### Changed
1310
1318
 
1311
1319
  - `Autocomplete` - major refactor (recommend checking out Storybook for updated examples)
1312
-
1313
1320
  - No longer requires `AutocompleteOption` wrapper. To migrate, if you're using objects, make sure to override `getOptionLabel` and `isOptionEqualToValue`.
1314
1321
  - `onChange` - added `event` param. To migrate, update your `onChange` signature: `(val: T | null)` --> `(event, val: T | null)`
1315
1322
  - `inputValue` removed from available props since this will be handled by formik. To migrate, remove this prop and override `getOptionLabel` instead.
@@ -1354,7 +1361,6 @@ IMPORTANT: I recommend removing `PageResponse` from your project's `index.d.ts`
1354
1361
  ### Fixed
1355
1362
 
1356
1363
  - `Table`/`PaginatedTable`
1357
-
1358
1364
  - fixed row/card not highlighting on hover (when `onRowClick` is defined)
1359
1365
  - fixed mobile card not showing pointer-style cursor on hover (when `onRowClick` is defined)
1360
1366
 
@@ -1407,7 +1413,6 @@ IMPORTANT: I recommend removing `PageResponse` from your project's `index.d.ts`
1407
1413
  ### Changed
1408
1414
 
1409
1415
  - Modified the default style settings for the static label (`staticLabel` or `readOnly` is true) to make it easier for users to differentiate between the label and value for the following components:
1410
-
1411
1416
  - `Autocomplete`/`MultiAutocomplete`
1412
1417
  - `Location`
1413
1418
  - `Select`
@@ -1,7 +1,6 @@
1
- import { Except } from 'type-fest';
2
1
  import { ControlledBubbleMenuProps } from 'mui-tiptap';
3
2
  import { SelectableCitationManagerProps } from './SelectableCitationManager';
4
- export type CitationBubbleMenuProps = Partial<Except<ControlledBubbleMenuProps, 'open' | 'editor' | 'children'>> & Omit<SelectableCitationManagerProps, 'onCancel' | 'onSelectCitations'> & {
3
+ export type CitationBubbleMenuProps = Partial<Omit<ControlledBubbleMenuProps, 'open' | 'editor' | 'children' | 'classes'>> & Omit<SelectableCitationManagerProps, 'onCancel' | 'onSelectCitations'> & {
5
4
  onChanged?: (ids: number[]) => void;
6
5
  };
7
6
  /**
@@ -12,16 +12,17 @@ import { ReactNode } from 'react';
12
12
  * @property {React.ReactNode} children - additional components to display on the right side of the component (or below, on mobile screens)
13
13
  */
14
14
  export type PageHeaderProps = {
15
- title: string | ReactNode;
16
- createButtonLabel: string;
15
+ title?: string | ReactNode;
16
+ createButtonLabel?: string;
17
17
  showAddButton?: boolean;
18
18
  onAdd?: (id?: number | string) => void;
19
19
  breadcrumbs?: BreadcrumbInfo[];
20
20
  children?: React.ReactNode;
21
21
  sx?: SxProps<Theme>;
22
+ bottomGutter?: boolean;
22
23
  };
23
24
  /**
24
25
  * Header for PagingTable. Includes Title, Add Button, breadcrumbs (optional). Additional components can be added via children (ex. SearchField) if desired.
25
26
  */
26
- export declare const PageHeader: (props: PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const PageHeader: (props: PageHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
27
28
  export default PageHeader;