UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS

24 lines (21 loc) 942 B
import { ForwardedRef } from 'react'; import { ButtonProps } from '../Button/Button.types.js'; import { DialogProps } from '../Dialog/Dialog.types.js'; import '@snowball-tech/design-tokens/dist/web/typescript/constants'; import '../constants-QFINMz1u.js'; import '../Button/Button.constants.js'; import '@radix-ui/react-dialog'; import '../Paper/Paper.types.js'; import '../Paper/Paper.constants.js'; import '../Dialog/Dialog.constants.js'; interface ConfirmProps extends Omit<DialogProps, 'disabled' | 'dismissable' | 'modal'> { cancel: ({ ref?: ForwardedRef<HTMLElement>; } & Omit<ButtonProps, 'href' | 'onClick' | 'target' | 'type' | 'variant'>) | string | false; confirm: ({ ref?: ForwardedRef<HTMLElement>; } & Omit<ButtonProps, 'href' | 'onClick' | 'target' | 'type' | 'variant'>) | string; onCancel?: ButtonProps['onClick']; onConfirm?: ButtonProps['onClick']; } export type { ConfirmProps };