@festo-ui/react 10.0.1-dev.840 → 10.0.1-dev.845
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.
|
@@ -7,7 +7,7 @@ import { RemoveScroll } from "react-remove-scroll";
|
|
|
7
7
|
import { CSSTransition } from "react-transition-group";
|
|
8
8
|
import { useForkRef } from "../../utils/useForkRef.js";
|
|
9
9
|
import { LoadingIndicator } from "../loading-indicator/LoadingIndicator.js";
|
|
10
|
-
const ModalBase = /*#__PURE__*/ forwardRef(({ isOpen, isLoading, onClose, onCloseDone, className, children, ...props }, ref)=>{
|
|
10
|
+
const ModalBase = /*#__PURE__*/ forwardRef(({ isOpen, isLoading, closeOnBackdrop = true, onClose, onCloseDone, className, children, ...props }, ref)=>{
|
|
11
11
|
const modalRef = useRef(null);
|
|
12
12
|
const backdropRef = useRef(null);
|
|
13
13
|
const mouseDownOnBackdropActive = useRef(false);
|
|
@@ -100,7 +100,7 @@ const ModalBase = /*#__PURE__*/ forwardRef(({ isOpen, isLoading, onClose, onClos
|
|
|
100
100
|
onMouseUp: (e)=>{
|
|
101
101
|
const closeModal = mouseDownOnBackdropActive.current && e.target === e.currentTarget;
|
|
102
102
|
mouseDownOnBackdropActive.current = false;
|
|
103
|
-
if (closeModal) onClose?.();
|
|
103
|
+
if (closeModal && closeOnBackdrop) onClose?.();
|
|
104
104
|
},
|
|
105
105
|
children: /*#__PURE__*/ jsx(RemoveScroll, {
|
|
106
106
|
ref: allRefs,
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import "./TabPane.css";
|
|
3
3
|
import classnames from "classnames";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
const TabPane = /*#__PURE__*/ forwardRef(({ isVisible = false, children, className, tabId, id, ...props }, ref)=>{
|
|
5
|
+
const TabPane = /*#__PURE__*/ forwardRef(({ isVisible = false, children, className, tabId, id, active: _active, name: _name, icon: _icon, ...props }, ref)=>{
|
|
6
6
|
const tabPaneClasses = classnames({
|
|
7
7
|
'fr-show': isVisible
|
|
8
8
|
}, {
|
package/package.json
CHANGED