import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef } from 'react';
import { useConsolidatedRef, useFocusTrap } from '../../hooks';
import { StyledDialog } from './Dialog.styles';
const Dialog = forwardRef(function Dialog({ arrow = true, target, labelledbyId, ariaLabel, portal, strategy, placement, children, progress, focusTrap = true, ...restProps }, ref) {
    const dialogRef = useConsolidatedRef(ref);
    useFocusTrap(focusTrap ? dialogRef : null, false);
    return (_jsx(StyledDialog, { ...restProps, role: 'dialog', arrow: arrow, "aria-modal": 'false', "aria-labelledby": labelledbyId, "aria-label": ariaLabel, "aria-busy": progress ? 'true' : 'false', ref: dialogRef, target: target, portal: portal, strategy: strategy, placement: placement, children: children }));
});
export default Dialog;
//# sourceMappingURL=Dialog.js.map