@festo-ui/react 8.2.0-dev.601 → 8.2.0-dev.607
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.
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "./Modal.scss";
|
|
2
|
-
import {
|
|
3
|
-
export interface ModalBaseProps extends
|
|
2
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
3
|
+
export interface ModalBaseProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
isLoading?: boolean;
|
|
6
6
|
onClose?: () => void;
|
|
7
7
|
onCloseDone?: () => void;
|
|
8
|
-
testId?: string;
|
|
9
8
|
}
|
|
10
9
|
declare const ModalBase: (props: ModalBaseProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
11
10
|
export default ModalBase;
|
|
@@ -15,9 +15,9 @@ const ModalBase = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
15
15
|
isLoading,
|
|
16
16
|
onClose,
|
|
17
17
|
onCloseDone,
|
|
18
|
-
testId,
|
|
19
18
|
className,
|
|
20
|
-
children
|
|
19
|
+
children,
|
|
20
|
+
...props
|
|
21
21
|
} = _ref;
|
|
22
22
|
const modalRef = useRef(null);
|
|
23
23
|
const backdropRef = useRef(null);
|
|
@@ -78,7 +78,7 @@ const ModalBase = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
78
78
|
ref: allRefs,
|
|
79
79
|
enabled: isOpen,
|
|
80
80
|
className: classNames("fr-modal fwe-modal", className),
|
|
81
|
-
|
|
81
|
+
...props,
|
|
82
82
|
children: children
|
|
83
83
|
})
|
|
84
84
|
})
|
|
@@ -22,9 +22,9 @@ const ModalBase = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
22
22
|
isLoading,
|
|
23
23
|
onClose,
|
|
24
24
|
onCloseDone,
|
|
25
|
-
testId,
|
|
26
25
|
className,
|
|
27
|
-
children
|
|
26
|
+
children,
|
|
27
|
+
...props
|
|
28
28
|
} = _ref;
|
|
29
29
|
const modalRef = (0, _react.useRef)(null);
|
|
30
30
|
const backdropRef = (0, _react.useRef)(null);
|
|
@@ -85,7 +85,7 @@ const ModalBase = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
85
85
|
ref: allRefs,
|
|
86
86
|
enabled: isOpen,
|
|
87
87
|
className: (0, _classnames.default)("fr-modal fwe-modal", className),
|
|
88
|
-
|
|
88
|
+
...props,
|
|
89
89
|
children: children
|
|
90
90
|
})
|
|
91
91
|
})
|
package/package.json
CHANGED