import { ButtonColors, ButtonVariants } from "../Button/types.js"; import * as react29 from "react"; import { ReactNode } from "react"; import { DialogProps } from "@equinor/eds-core-react"; import { IconData } from "@equinor/eds-icons"; //#region src/molecules/Dialog/Dialog.d.ts /** * @param position - Right is default * @param onClick - button on click * @param text - button text * @param variant - button variant * @param icon - button icon, is placed to the left of the text * @param disabled - if set to string, the button is disabled and gets a tooltip */ interface DialogAction { position?: 'left' | 'center' | 'right'; onClick: () => void; text: string; variant?: ButtonVariants; color?: ButtonColors; icon?: IconData; disabled?: boolean | string; isLoading?: boolean; } interface DialogProps$1 extends Omit { title?: string | ReactNode | [ReactNode, ReactNode]; children: string | ReactNode | ReactNode[]; onClose: () => void; width?: number | 'auto'; actions?: DialogAction[]; withContentPadding?: { vertical?: boolean; horizontal?: boolean; }; withBorders?: boolean; contentMaxHeight?: string; hideClose?: boolean; additionalInfo?: string | ReactNode; } /** * @param title - String or up to 2 react elements in a flex-column * @param children - Content in the dialog, if string it gets the default typography styling for dialogs * @param onClose - fn to set open to false * @param width - width in px, defaults to just fit-content * @param actions - Dialog actions, { position: "right" is default } * @param withContentPadding - Defaults to true for vertical and horizontal * @param withBorders - Defaults to false * @param contentMaxHeight - Defaults to '60vh' * @param hideClose - Defaults to true. Hides the top right close button icon * @param additionalInfo - Defaults to empty, and won't show the additional info button * Also inherits props from EDS dialog */ declare const Dialog$1: react29.ForwardRefExoticComponent>; //#endregion export { Dialog$1 as Dialog, DialogAction, DialogProps$1 as DialogProps };