@sikka/hawa
Version:
Modern UI Kit made with Tailwind
35 lines (32 loc) • 2.38 kB
TypeScript
import * as class_variance_authority_types from 'class-variance-authority/types';
import * as React from 'react';
import * as ToastPrimitives from '@radix-ui/react-toast';
import { VariantProps } from 'class-variance-authority';
import { D as DirectionType } from '../commonTypes-BtF87PmG.js';
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
variant?: "default" | "destructive" | null | undefined;
severity?: "info" | "warning" | "error" | "success" | "none" | null | undefined;
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
direction?: DirectionType;
} & React.RefAttributes<HTMLLIElement>>;
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
size: "default" | "sm";
} & React.RefAttributes<HTMLDivElement>>;
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
size: "default" | "sm";
} & React.RefAttributes<HTMLDivElement>>;
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
type ToastActionElement = React.ReactElement<typeof ToastAction>;
type ToasterToastProps = ToastProps & {
id: string;
title?: React.ReactNode;
description?: React.ReactNode;
severity?: "info" | "warning" | "error" | "success" | "none";
action?: ToastActionElement;
size?: "default" | "sm";
};
export { Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, type ToasterToastProps };