@sikka/hawa
Version:
Modern UI Kit made with Tailwind
35 lines (32 loc) • 2.43 kB
text/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-C-g8nFFC.mjs';
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 { type ToasterToastProps as T, type ToastProps as a, type ToastActionElement as b, ToastProvider as c, ToastViewport as d, Toast as e, ToastTitle as f, ToastDescription as g, ToastClose as h, ToastAction as i };