UNPKG

ivt

Version:

Ivt Components Library

35 lines (32 loc) 1.61 kB
import { u as useToast } from '../chunks/use-toast-CLJJgfL0.mjs'; import { T as ToastProvider, b as Toast, c as ToastTitle, d as ToastDescription, e as ToastClose, a as ToastViewport } from '../chunks/toast-DfCz10Et.mjs'; import 'react'; import 'react-dom'; import '../chunks/index-Dsw02Eup.mjs'; import '@radix-ui/react-slot'; import 'react/jsx-runtime'; import '../chunks/index-D4jPaBZ2.mjs'; import '@radix-ui/react-collection'; import '../chunks/index-4NpeUekv.mjs'; import '../chunks/index-DC-gAYjS.mjs'; import '../chunks/index-BksCjWh6.mjs'; import '../chunks/index-C8u7IIcP.mjs'; import '../chunks/index-DfeRLazC.mjs'; import '../chunks/index-1toTCGyr.mjs'; import '../chunks/index-BJrVyyCQ.mjs'; import 'class-variance-authority'; import '../chunks/utils-BDcRwQMd.mjs'; import '../chunks/bundle-mjs-CXmmFvYo.mjs'; import '../chunks/x-B6hDJA_l.mjs'; import '../chunks/createLucideIcon-C11Tr46U.mjs'; function Toaster() { const { toasts } = useToast(); return /*#__PURE__*/ React.createElement(ToastProvider, null, toasts.map(({ id, title, description, action, ...props })=>/*#__PURE__*/ React.createElement(Toast, { key: id, ...props }, /*#__PURE__*/ React.createElement("div", { className: "grid gap-1" }, title && /*#__PURE__*/ React.createElement(ToastTitle, null, title), description && /*#__PURE__*/ React.createElement(ToastDescription, null, description)), action, /*#__PURE__*/ React.createElement(ToastClose, null))), /*#__PURE__*/ React.createElement(ToastViewport, null)); } export { Toaster }; //# sourceMappingURL=index.mjs.map