@luscii-healthtech/web-ui 44.3.2 → 44.3.4
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/index.development.js +41 -1
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/ModalDialog/ModalDialog.d.ts +6 -0
- package/dist/src/components/ModalDialog/use-on-close-animation-finished.d.ts +8 -0
- package/dist/stories/ModalDialog.stories.d.ts +97 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -50,6 +50,12 @@ type Props = Omit<ComponentPropsWithoutRef<"dialog">, "open" | "onClose"> & {
|
|
|
50
50
|
* @default false
|
|
51
51
|
*/
|
|
52
52
|
keepChildrenMountedWhenClosed?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* A callback which is triggered when the closing transition has finished.
|
|
55
|
+
*
|
|
56
|
+
* This can be useful for removing the ModalDialog from the DOM after the close animation has completed.
|
|
57
|
+
*/
|
|
58
|
+
onCloseAnimationFinished?: () => void;
|
|
53
59
|
};
|
|
54
60
|
type SubComponents = {
|
|
55
61
|
/**
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A custom hook to handle the onCloseAnimationFinished callback of the ModalDialog component.
|
|
3
|
+
*/
|
|
4
|
+
export declare const useOnCloseAnimationFinished: ({ dialog, open, onCloseAnimationFinished, }: {
|
|
5
|
+
dialog: React.RefObject<HTMLDialogElement>;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onCloseAnimationFinished: () => void;
|
|
8
|
+
}) => void;
|