@xiongtao.xt/tau-plugins 0.28.0 → 0.30.0

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.
@@ -56,6 +56,18 @@ export interface ContentNode {
56
56
  type?: string;
57
57
  children?: ContentNode[];
58
58
  }
59
+ /** 由宿主生成发布快照、由博客渲染器内置展示的业务节点。 */
60
+ export declare const PUBLISHED_HOST_ELEMENT_TYPES: readonly ["project-card-list"];
61
+ export interface PublishedProjectCardListNode extends ContentNode {
62
+ type: "project-card-list";
63
+ items: {
64
+ id: number;
65
+ title: string;
66
+ summary: string;
67
+ target: ContentRef;
68
+ }[];
69
+ children: ContentNode[];
70
+ }
59
71
  export interface TreeItem {
60
72
  title: string;
61
73
  target?: ContentRef;
@@ -13,6 +13,7 @@ export * from "./primitives/Button";
13
13
  export * from "./primitives/IconButton";
14
14
  export * from "./primitives/Loading";
15
15
  export * from "./primitives/Panel";
16
+ export * from "./primitives/DocumentCard";
16
17
  export * from "./primitives/Toast";
17
18
  export * from "./primitives/Notification";
18
19
  export * from "./primitives/Tooltip";
@@ -28,6 +29,7 @@ export * from "./primitives/input/Input";
28
29
  export * from "./primitives/input/Textarea";
29
30
  export * from "./primitives/input/NumberInput";
30
31
  export * from "./patterns/FormRow";
32
+ export * from "./patterns/SettingRow";
31
33
  export * from "./primitives/Checkbox";
32
34
  export * from "./primitives/Switch";
33
35
  export * from "./primitives/RadioGroup";
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 设置行 —— 设置分组面板内的标准行式(左侧标题+说明,右侧控件槽)。
3
+ * 行高 ≥56px;同一面板内相邻行以 line-2 弱分隔(02 §2.3「列表行间」token,内收不贴面板边),
4
+ * 分组之间靠 SettingsGroup 面板与留白区分。
5
+ */
6
+ import type { ReactNode } from "react";
7
+ /** 面板内相邻行的 line-2 弱分隔(内收 12px):自定义行(模型 / 文件行)也挂它,与 SettingRow 互相衔接 */
8
+ export declare const ROW_DIVIDER = "relative [&+&]:before:border-line-2 [&+&]:before:absolute [&+&]:before:inset-x-3 [&+&]:before:top-0 [&+&]:before:border-t";
9
+ export declare function SettingRow({ title, description, children, className, }: {
10
+ title: ReactNode;
11
+ description?: ReactNode;
12
+ children?: ReactNode;
13
+ className?: string;
14
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ export declare function DocumentCardGrid({ children }: {
3
+ children: ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ /** 尺寸使用 em,让编辑器与发布站点的卡片随正文字号一起缩放。 */
6
+ export declare function DocumentCard({ title, description, href, onClick, }: {
7
+ title: string;
8
+ description: string;
9
+ href?: string;
10
+ onClick?: () => void;
11
+ }): import("react/jsx-runtime").JSX.Element;