@groupeactual/ui-kit 1.7.8 → 1.7.10
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 +6 -3
- package/dist/es/index.js +2 -2
- package/dist/es/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/es/src/components/Modal/Drawer/Drawer.d.ts +2 -2
- package/dist/es/src/components/Modal/modal.interface.d.ts +4 -1
- package/package.json +2 -2
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
- package/src/components/Modal/Drawer/Drawer.tsx +21 -14
- package/src/components/Modal/modal.interface.ts +4 -1
package/dist/es/index.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ interface LinkItem {
|
|
|
141
141
|
}
|
|
142
142
|
interface Props$h extends BreadcrumbsProps {
|
|
143
143
|
PageName: string;
|
|
144
|
-
links
|
|
144
|
+
links?: LinkItem[];
|
|
145
145
|
}
|
|
146
146
|
declare const Breadcrumbs: ({ PageName, links, ...props }: Props$h) => React.JSX.Element;
|
|
147
147
|
|
|
@@ -324,15 +324,18 @@ interface ModalProps extends Omit<ModalProps$1, 'component' | 'open' | 'classNam
|
|
|
324
324
|
open: boolean;
|
|
325
325
|
title?: string;
|
|
326
326
|
size?: 'small' | 'large';
|
|
327
|
-
component: ReactNode | null;
|
|
328
327
|
footer?: ReactNode | null;
|
|
329
328
|
cardProps?: Partial<CardProps>;
|
|
330
329
|
className?: string;
|
|
331
330
|
icon?: IconDefinition;
|
|
332
331
|
onClose?: () => void;
|
|
333
332
|
}
|
|
333
|
+
interface DrawerProps extends Omit<ModalProps, 'icon'> {
|
|
334
|
+
titleLeftComponent?: ReactNode;
|
|
335
|
+
hideCloseButton?: boolean;
|
|
336
|
+
}
|
|
334
337
|
|
|
335
|
-
declare const Drawer: ({ title, open,
|
|
338
|
+
declare const Drawer: ({ title, open, hideCloseButton, titleLeftComponent, footer, cardProps, size, children, onClose, ...props }: DrawerProps) => React.JSX.Element;
|
|
336
339
|
|
|
337
340
|
declare const Dialog: ({ title, open, onClose, children, icon, ...props }: Omit<ModalProps, "footer" | "cardProps" | "size" | "component">) => React.JSX.Element;
|
|
338
341
|
|