UNPKG

ds-smart-ui

Version:

Smart UI v1.0.5 — A production-ready React component library by PT Praisindo Teknologi. Covers inputs, navigation, data display, feedback, and layout with a unified design system, semantic Typography tokens, and full Storybook documentation.

39 lines (38 loc) 1.32 kB
import { default as React } from 'react'; import { ButtonColorTypes, ButtonRoundedTypes, ButtonVariantTypes } from '../../../types/button-types'; type DialogSize = "sm" | "md" | "lg" | "xl"; type DialogRounded = "sm" | "md" | "lg" | "xl"; export interface DialogProps { isOpen: boolean; onClose: () => void; title?: string; children?: React.ReactNode; onConfirm?: () => void; onReset?: () => void; confirmButtonText?: string; closeButtonText?: string; resetButtonText?: string; size?: DialogSize | undefined; rounded?: DialogRounded | undefined; buttonRounded?: ButtonRoundedTypes | undefined; fullWidth?: boolean; color?: ButtonColorTypes | undefined; noHeader?: boolean; noFooter?: boolean; variantResetButton?: ButtonVariantTypes; variantCloseButton?: ButtonVariantTypes; variantConfirmButton?: ButtonVariantTypes; colorConfirmButton?: ButtonColorTypes; colorCloseButton?: ButtonColorTypes; colorResetButton?: ButtonColorTypes; disabled?: boolean; isLoading?: boolean; closeOnOverlayClick?: boolean; disableScrollLock?: boolean; disableEscapeKeyDown?: boolean; id?: string; "aria-describedby"?: string; "aria-labelledby"?: string; } declare const Dialog: React.FC<DialogProps>; export default Dialog;