@simoncomputing/mui-bueno-v2 0.28.4 → 0.29.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 +17 -0
- package/dist/@types/index.d.ts +2 -0
- package/dist/common/Utils/index.d.ts +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +2 -5
- package/dist/components/PageHeader/PageHeader.d.ts +2 -2
- package/dist/index.cjs.js +54 -54
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +547 -539
- package/dist/index.umd.js +48 -48
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,23 @@ 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.29.0] - 2026-05-06
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- `Breadcrumbs`
|
|
19
|
+
- Renamed `crumbInfo: BreadcrumbInfo[]` prop to `crumbs: BreadcrumbOptions[]` (the type has also been moved to `@types`)
|
|
20
|
+
- Tweaked styling
|
|
21
|
+
- underline will only appear on hover
|
|
22
|
+
- links are bold
|
|
23
|
+
- non-links are black (white in dark mode)
|
|
24
|
+
- separator is dark grey (white in dark mode)
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- `Breadcrumbs`
|
|
29
|
+
- Improved link handling. Added `openInNewTab`, `externalUrl`, and `onClick` (previously only `path` for react routes was allowed).
|
|
30
|
+
|
|
14
31
|
## [0.28.4] - 2026-04-30
|
|
15
32
|
|
|
16
33
|
### Fixed
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -257,3 +257,5 @@ export type UnsavedCitation = {
|
|
|
257
257
|
|
|
258
258
|
type UnsavedUrlCitation = Omit<UnsavedCitation, 'type'> & { type: 'Url' };
|
|
259
259
|
type UnsavedAttachmentCitation = Omit<UnsavedCitation, 'type'> & { type: 'Attachment' };
|
|
260
|
+
|
|
261
|
+
export type BreadcrumbOption = Omit<MenuOption, 'minPermission' | 'icon'>; // icon support can be added later
|
|
@@ -40,7 +40,7 @@ export declare function renderValue<T>(options: SelectOption<T>[], value?: strin
|
|
|
40
40
|
* @param naviate -- pass useNavigate's navigate fn. used when onClick & path are both present to navigate to the path
|
|
41
41
|
* @param onClickCallback -- (optional) called at the end of the onClick in case any additional execution is needed (ex. closing a modal)
|
|
42
42
|
*/
|
|
43
|
-
export declare function generateButtonLinkProps(menuOption: MenuOption, navigate: (path: string) => void, onClickCallback?: () => void): {
|
|
43
|
+
export declare function generateButtonLinkProps(menuOption: Pick<MenuOption, 'openInNewTab' | 'path' | 'externalUrl' | 'onClick'>, navigate: (path: string) => void, onClickCallback?: () => void): {
|
|
44
44
|
onClick: () => void;
|
|
45
45
|
component?: undefined;
|
|
46
46
|
to?: undefined;
|
|
@@ -56,7 +56,7 @@ export declare function generateButtonLinkProps(menuOption: MenuOption, navigate
|
|
|
56
56
|
rel?: undefined;
|
|
57
57
|
} | {
|
|
58
58
|
component: string;
|
|
59
|
-
href: string;
|
|
59
|
+
href: string | undefined;
|
|
60
60
|
target: string;
|
|
61
61
|
rel: string;
|
|
62
62
|
onClick?: undefined;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import { BreadcrumbOption } from '../../@types';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
export type BreadcrumbsProps = {
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
export type BreadcrumbInfo = {
|
|
6
|
-
label: string;
|
|
7
|
-
path?: string;
|
|
4
|
+
crumbs: BreadcrumbOption[];
|
|
8
5
|
};
|
|
9
6
|
export declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
10
7
|
export default Breadcrumbs;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BreadcrumbInfo } from '../Breadcrumbs/Breadcrumbs';
|
|
2
1
|
import { SxProps, Theme } from '@mui/material';
|
|
3
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { BreadcrumbOption } from '../../@types';
|
|
4
4
|
/**
|
|
5
5
|
* Interface for PageHeader props.
|
|
6
6
|
* @property {string} tableKey - The key of the table.
|
|
@@ -16,7 +16,7 @@ export type PageHeaderProps = {
|
|
|
16
16
|
createButtonLabel?: string;
|
|
17
17
|
showAddButton?: boolean;
|
|
18
18
|
onAdd?: (id?: number | string) => void;
|
|
19
|
-
breadcrumbs?:
|
|
19
|
+
breadcrumbs?: BreadcrumbOption[];
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
sx?: SxProps<Theme>;
|
|
22
22
|
bottomGutter?: boolean;
|