@cerberus-design/react
Version:
The Cerberus Design React component library.
1 lines • 893 B
Source Map (JSON)
{"version":3,"sources":["../../../../src/components/notifications/types.ts"],"sourcesContent":["import type { CreateToasterReturn } from '@ark-ui/react/toast'\nimport type { ReactNode } from 'react'\n\nexport interface NotifyOptions {\n /**\n * The palette of the notification.\n * @default 'info'\n */\n palette?: 'info' | 'success' | 'warning' | 'error' | 'loading'\n /**\n * The heading of the notification.\n */\n heading: string\n /**\n * The description of the notification.\n */\n description?: ReactNode\n /**\n * The action to take when the notification is closed\n */\n action?: {\n label: string\n onClick: () => void\n }\n}\n\nexport type UseNotificationCenterReturn = CreateToasterReturn & {\n /**\n * @deprecated use `create` instead\n */\n notify: (options: NotifyOptions) => void\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}