Files
maestro/design/components/surfaces/EventItem.d.ts
T
wangjia 5a1e185b1a docs(design): 解压 Maestro Design System 到 design/(重构参照材料)
phosphor console v1.1 设计系统(从现网 web/style.css 演化):tokens(colors/effects/
typography/fonts) + components(core/forms/surfaces .jsx) + ui_kits(console + console_mobile)
+ assets/icons(15 双色 SVG) + guidelines + CLAUDE/SKILL/readme。供 B1–B6 重构任务对照实现。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 14:29:07 +08:00

15 lines
621 B
TypeScript

/**
* 事件流条目:左侧 5px 方形色标 + 事件类型 + 时间 + 详情,类型决定颜色。放在 ul 里使用。
*/
export interface EventItemProps {
/** 事件类型 → 中文标签 + 色标颜色 */
type?: 'task.created' | 'task.updated' | 'status.changed' | 'approval.requested'
| 'approval.granted' | 'approval.rejected' | 'run.started' | 'run.finished' | 'project.synced';
/** 右对齐时间文字,如 "14:02:31" */
time?: string;
detail?: React.ReactNode;
/** 覆盖默认类型标签 */
label?: string;
}
export declare function EventItem(props: EventItemProps): JSX.Element;