UNPKG

copper-ui

Version:

Modern React UI components library with TypeScript support, built on top of Ant Design

46 lines 1.09 kB
import { TimelineItemProps } from 'antd'; export type TimelineHistoryItem = { createdAt: Date; createdBy: CreatedBy; type: "form" | "notice" | "docs" | "updated" | { node: React.ReactNode; }; fields: Fields[] | { node: React.ReactNode; }; icon?: TimelineItemProps["icon"]; color?: TimelineItemProps["color"]; timePassed?: string | { node: React.ReactNode; }; }; type CreatedBy = { fio: string; }; type Fields = { id: string; field: string; oldValue: string | null; newValue: string | null; }; export type TimelineHistoryContentProps = Omit<TimelineHistoryItem, "createdAt" | "icon" | "color">; export type TagVariants = { form: { text: "Анкета"; color: "default"; }; docs: { text: "Документ"; color: "processing"; }; notice: { text: "Уведомление"; color: "warning"; }; updated: { text: "Актуализация"; color: "success"; }; }; export {}; //# sourceMappingURL=types.d.ts.map