@groupeactual/ui-kit 1.7.7 → 1.7.9
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/dist/cjs/index.js +1 -1
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +2 -2
- package/dist/es/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/es/src/components/Modal/Dialog/Dialog.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
- package/src/components/Modal/Dialog/Dialog.tsx +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ModalProps } from '@/components/Modal/modal.interface';
|
|
3
|
-
declare const Dialog: ({ title, open, onClose,
|
|
3
|
+
declare const Dialog: ({ title, open, onClose, children, icon, ...props }: Omit<ModalProps, "footer" | "cardProps" | "size" | "component">) => React.JSX.Element;
|
|
4
4
|
export default Dialog;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groupeactual/ui-kit",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple template for a custom React component library",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@mui/x-date-pickers": "7.15.0",
|
|
34
34
|
"@mui/x-date-pickers-pro": "7.15.0",
|
|
35
35
|
"styled-components": "^6.1.13",
|
|
36
|
-
"@groupeactual/design-tokens": "1.7.
|
|
36
|
+
"@groupeactual/design-tokens": "1.7.9"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "rollup -c",
|
|
@@ -18,7 +18,7 @@ interface LinkItem {
|
|
|
18
18
|
|
|
19
19
|
interface Props extends BreadcrumbsProps {
|
|
20
20
|
PageName: string;
|
|
21
|
-
links
|
|
21
|
+
links?: LinkItem[];
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
const Breadcrumbs = ({ PageName, links, ...props }: Props) => {
|
|
@@ -30,7 +30,7 @@ const Breadcrumbs = ({ PageName, links, ...props }: Props) => {
|
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<StyledBreadcrumbs aria-label="breadcrumb" {...props}>
|
|
33
|
-
{links
|
|
33
|
+
{links?.map((link, index) => (
|
|
34
34
|
<div key={index}>
|
|
35
35
|
<Link key={index} href={link.link} variant="link1">
|
|
36
36
|
{link.title}
|
|
@@ -81,10 +81,10 @@ const Dialog = ({
|
|
|
81
81
|
title,
|
|
82
82
|
open,
|
|
83
83
|
onClose,
|
|
84
|
-
|
|
84
|
+
children,
|
|
85
85
|
icon,
|
|
86
86
|
...props
|
|
87
|
-
}: Omit<ModalProps, 'footer' | 'cardProps' | 'size'>) => {
|
|
87
|
+
}: Omit<ModalProps, 'footer' | 'cardProps' | 'size' | 'component'>) => {
|
|
88
88
|
return (
|
|
89
89
|
<BootstrapDialog
|
|
90
90
|
onClose={() => onClose?.()}
|
|
@@ -95,7 +95,7 @@ const Dialog = ({
|
|
|
95
95
|
<BootstrapDialogTitle icon={icon} onClose={() => onClose?.()}>
|
|
96
96
|
{title && <Text variant="h3">{title}</Text>}
|
|
97
97
|
</BootstrapDialogTitle>
|
|
98
|
-
<DialogContent>{
|
|
98
|
+
<DialogContent>{children}</DialogContent>
|
|
99
99
|
</BootstrapDialog>
|
|
100
100
|
);
|
|
101
101
|
};
|