demio-ui 1.0.83 → 1.0.84
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.
|
@@ -4,6 +4,7 @@ type Props = {
|
|
|
4
4
|
contentClassName?: string;
|
|
5
5
|
hideCloseButton?: boolean;
|
|
6
6
|
maxHeight?: string;
|
|
7
|
+
onClose?: () => void;
|
|
7
8
|
onOpenChange: (open: boolean) => void;
|
|
8
9
|
open: boolean;
|
|
9
10
|
overlayClassName: string;
|
|
@@ -16,5 +17,5 @@ type Props = {
|
|
|
16
17
|
- Esc closes the component automatically.
|
|
17
18
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
18
19
|
**/
|
|
19
|
-
declare function Modal({ children, contentClassName, hideCloseButton, maxHeight,
|
|
20
|
+
declare function Modal({ children, contentClassName, hideCloseButton, maxHeight, onClose, onOpenChange, open, overlayClassName, title, width, }: Props): React.JSX.Element;
|
|
20
21
|
export default Modal;
|
package/dist/types.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ type Props$5 = {
|
|
|
118
118
|
contentClassName?: string;
|
|
119
119
|
hideCloseButton?: boolean;
|
|
120
120
|
maxHeight?: string;
|
|
121
|
+
onClose?: () => void;
|
|
121
122
|
onOpenChange: (open: boolean) => void;
|
|
122
123
|
open: boolean;
|
|
123
124
|
overlayClassName: string;
|
|
@@ -130,7 +131,7 @@ type Props$5 = {
|
|
|
130
131
|
- Esc closes the component automatically.
|
|
131
132
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
132
133
|
**/
|
|
133
|
-
declare function Modal({ children, contentClassName, hideCloseButton, maxHeight,
|
|
134
|
+
declare function Modal({ children, contentClassName, hideCloseButton, maxHeight, onClose, onOpenChange, open, overlayClassName, title, width, }: Props$5): React__default.JSX.Element;
|
|
134
135
|
|
|
135
136
|
type Props$4 = {
|
|
136
137
|
align: 'center' | 'start' | 'end';
|