@simoncomputing/mui-bueno-v2 0.19.22 → 0.19.24

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,25 @@ 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.24] - 2025-12-08
15
+
16
+ ### Added
17
+
18
+ - `PageHeader` - added `bottomGutter` which, when true, will add some margin spacing at the bottom of the component
19
+
20
+ ### Changed
21
+
22
+ - `PageHeader`
23
+ - `title` & `createButtonLabel` are now optional
24
+ - `createButtonLabel` will have a default value of `"Add Item"`
25
+ - returns null if the `title` is not defined, and the create button has no label and/or `showCreateButton` is false
26
+
27
+ ## [0.19.23] - 2025-12-04
28
+
29
+ ### Added
30
+
31
+ - `Table` / `PaginatedTable` - added `onRowClickObj` which is similar to `onRowClick` but provides the whole object instead of just the object's id.
32
+
14
33
  ## [0.19.22] - 2025-12-03
15
34
 
16
35
  ### Added
@@ -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;
@@ -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
  */