@pismo/marola 1.1.9 → 1.1.11
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/components/ConfirmationDialog/ConfirmationDialog.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +10 -9
- package/dist/components/Dialog/Dialog.js +230 -222
- package/dist/components/Dialog/Dialog.stories.d.ts +9 -5
- package/dist/components/Dialog/Dialog.test.d.ts +1 -0
- package/dist/components/Icon/Icon.js +152 -146
- package/dist/components/Icon/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as o, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { Button as n } from "../Button/Button.js";
|
|
3
|
-
import
|
|
3
|
+
import g from "../Dialog/Dialog.js";
|
|
4
4
|
import { Typography as e } from "../Typography/Typography.js";
|
|
5
5
|
import f from "../Dialog/Content.js";
|
|
6
6
|
import u from "../Dialog/Actions.js";
|
|
@@ -6,7 +6,7 @@ import { ModalProps } from '@mui/base';
|
|
|
6
6
|
import { ComponentProps, JSXElementConstructor, ReactElement, ReactNode } from 'react';
|
|
7
7
|
|
|
8
8
|
export type CloseReason = 'backdropClick' | 'escapeKeyDown' | 'closeButtonClick';
|
|
9
|
-
export type DialogProps = Omit<ModalProps, 'onClose'> & {
|
|
9
|
+
export type DialogProps = Omit<ModalProps, 'onClose' | 'ref'> & {
|
|
10
10
|
/** main content */
|
|
11
11
|
children: ReactElement<unknown, string | JSXElementConstructor<unknown>>;
|
|
12
12
|
/** display title label */
|
|
@@ -16,13 +16,14 @@ export type DialogProps = Omit<ModalProps, 'onClose'> & {
|
|
|
16
16
|
/** icon to show in the left side of the title */
|
|
17
17
|
icon?: ComponentProps<typeof Icon>;
|
|
18
18
|
/** callback for when close is clicked */
|
|
19
|
-
onClose?: (reason
|
|
19
|
+
onClose?: (reason: CloseReason) => void;
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Actions: import('react').FunctionComponent<DialogActionProps>;
|
|
21
|
+
type DialogComponent = React.ForwardRefExoticComponent<React.PropsWithoutRef<DialogProps> & React.RefAttributes<HTMLDivElement>> & {
|
|
22
|
+
Title: React.FunctionComponent<DialogTitleProps>;
|
|
23
|
+
Content: React.FunctionComponent<DialogContentProps>;
|
|
24
|
+
Actions: React.FunctionComponent<DialogActionProps>;
|
|
26
25
|
};
|
|
27
|
-
|
|
28
|
-
export
|
|
26
|
+
declare const DialogExport: DialogComponent;
|
|
27
|
+
export { DialogExport as Dialog, DialogTitle, Content, Actions };
|
|
28
|
+
declare const _default: DialogComponent;
|
|
29
|
+
export default _default;
|