@farris/x-ui 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farris/x-ui",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "可复用的 AI 对话组件",
5
5
  "type": "module",
6
6
  "main": "./farris.x-ui.umd.cjs",
@@ -1,6 +1,16 @@
1
- import { TodoItemStatus } from '../../../../type';
1
+ import { IconStatus } from '../../../../type';
2
2
 
3
- /** 状态图标:NotStart / Working 蓝色静态空心圆,Done 绿色对勾。farrisicon 未找到时使用 CSS 占位 */
4
- export declare function StatusIcon({ status }: {
5
- status: TodoItemStatus;
3
+ /** 使用场景 */
4
+ type StatusIconVariant = 'todo' | 'thinking' | '';
5
+ /** 状态图标:
6
+ *
7
+ 'NotStart' :未开始,默认绿色圆圈 任务场景下,未开始是灰色圆圈。
8
+ 'Working' :进行中,默认绿色转圈。任务场景下,进行中是灰色圆圈。
9
+ 'Done':已完成,默认绿色空心对号。任务场景下,完成是绿色实心对号
10
+ 'Error ':失败,默认红色
11
+ */
12
+ export declare function StatusIcon({ status, variant }: {
13
+ status: IconStatus;
14
+ variant?: StatusIconVariant;
6
15
  }): import("vue/jsx-runtime").JSX.Element;
16
+ export {};
@@ -1,5 +1,6 @@
1
1
  /** 待办项状态 */
2
2
  export type TodoItemStatus = 'NotStart' | 'Working' | 'Done';
3
+ export type IconStatus = 'NotStart' | 'Working' | 'Done' | 'Error';
3
4
  /** 带子任务时的展开/悬停展示方式 */
4
5
  export type DetailViewMode = 'expand' | 'hover' | 'none';
5
6
  /** 待办项 */