UNPKG

@bemit/consent-ui-formanta

Version:

© 2022 [bemit](https://bemit.eu)

56 lines (55 loc) 1.51 kB
import React, { HTMLAttributes } from 'react'; import { ConsentUiBoxProps } from '@bemit/consent-ui-formanta/ConsentUiBox'; /** * @todo not used by formanta due to absolute positioned dialog strategy */ export declare const dialogPositions: { center: { alignItems: string; justifyContent: string; }; top: { alignItems: string; justifyContent: string; }; bottom: { alignItems: string; justifyContent: string; }; bottomLeft: { alignItems: string; justifyContent: string; }; bottomRight: { alignItems: string; justifyContent: string; }; topLeft: { alignItems: string; justifyContent: string; }; topRight: { alignItems: string; justifyContent: string; }; centerLeft: { alignItems: string; justifyContent: string; }; centerRight: { alignItems: string; justifyContent: string; }; }; export interface ConsentUiBoxDialogProps extends ConsentUiBoxProps { borderRadius?: number; maxHeight?: string; e2e?: boolean; slots?: { mask?: HTMLAttributes<HTMLDivElement>; modal?: HTMLAttributes<HTMLDivElement>; body?: HTMLAttributes<HTMLDivElement>; }; position?: keyof typeof dialogPositions; } export declare const ConsentUiBoxDialog: ({ borderRadius, maxHeight, e2e, slots: { mask, modal, body, }, ...props }: ConsentUiBoxDialogProps) => React.JSX.Element;