@downcity/icons 0.0.0 → 0.1.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.
Files changed (201) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +129 -0
  3. package/dist/chunk-23CDBVGX.js +13 -0
  4. package/dist/chunk-2BUJ7TVT.js +13 -0
  5. package/dist/chunk-2DWFGABM.js +24 -0
  6. package/dist/chunk-2TKTX3CU.js +26 -0
  7. package/dist/chunk-3FPF7LCI.js +13 -0
  8. package/dist/chunk-4UIJEWGF.js +23 -0
  9. package/dist/chunk-6GGYGTKE.js +13 -0
  10. package/dist/chunk-6RDGLI7R.js +13 -0
  11. package/dist/chunk-76UOULDL.js +27 -0
  12. package/dist/chunk-7H5NSSU6.js +13 -0
  13. package/dist/chunk-7UIG6EFZ.js +13 -0
  14. package/dist/chunk-BGO2END2.js +23 -0
  15. package/dist/chunk-CNJMWVEG.js +23 -0
  16. package/dist/chunk-DKPGA424.js +13 -0
  17. package/dist/chunk-DKZZG6QO.js +28 -0
  18. package/dist/chunk-HGNHV53V.js +25 -0
  19. package/dist/chunk-HWU63TFP.js +13 -0
  20. package/dist/chunk-HXOYIUQQ.js +24 -0
  21. package/dist/chunk-ILAFNOCW.js +16 -0
  22. package/dist/chunk-IQTKODNC.js +33 -0
  23. package/dist/chunk-IXCWDNK2.js +13 -0
  24. package/dist/chunk-K3DUWMQO.js +13 -0
  25. package/dist/chunk-KPDMGF4F.js +13 -0
  26. package/dist/chunk-KU34JGIO.js +31 -0
  27. package/dist/chunk-NBGN6WVE.js +24 -0
  28. package/dist/chunk-NDRETNEW.js +27 -0
  29. package/dist/chunk-NUT4AMSX.js +13 -0
  30. package/dist/chunk-NVOG4T3W.js +12 -0
  31. package/dist/chunk-O3KGMKUU.js +27 -0
  32. package/dist/chunk-OCZC6LVQ.js +29 -0
  33. package/dist/chunk-OKTJS2IX.js +57 -0
  34. package/dist/chunk-PDJIQEFH.js +27 -0
  35. package/dist/chunk-PFCSIXEJ.js +13 -0
  36. package/dist/chunk-R2IGXQRH.js +33 -0
  37. package/dist/chunk-R5Q73DLS.js +13 -0
  38. package/dist/chunk-RPUE7IHD.js +13 -0
  39. package/dist/chunk-RVFXW6ME.js +13 -0
  40. package/dist/chunk-RXYMPDOI.js +23 -0
  41. package/dist/chunk-S6ZGAMKH.js +25 -0
  42. package/dist/chunk-SGB2OQAT.js +13 -0
  43. package/dist/chunk-SXQXPUXP.js +97 -0
  44. package/dist/chunk-T6BSLNMN.js +54 -0
  45. package/dist/chunk-TMDEAPHD.js +24 -0
  46. package/dist/chunk-V3E6IXCE.js +24 -0
  47. package/dist/chunk-VWZK6FRQ.js +29 -0
  48. package/dist/chunk-WTAG3WKQ.js +13 -0
  49. package/dist/chunk-WUXNEKAA.js +13 -0
  50. package/dist/chunk-WWHMK4UP.js +154 -0
  51. package/dist/chunk-XV63DEGU.js +13 -0
  52. package/dist/chunk-ZLZMMRSY.js +13 -0
  53. package/dist/chunk-ZP2ZAJYJ.js +23 -0
  54. package/dist/chunk-ZY2G74T6.js +13 -0
  55. package/dist/definition-CueRRK0O.d.ts +111 -0
  56. package/dist/definitions/check.d.ts +7 -0
  57. package/dist/definitions/check.js +10 -0
  58. package/dist/definitions/chevron-down.d.ts +7 -0
  59. package/dist/definitions/chevron-down.js +10 -0
  60. package/dist/definitions/close.d.ts +7 -0
  61. package/dist/definitions/close.js +10 -0
  62. package/dist/definitions/copy.d.ts +7 -0
  63. package/dist/definitions/copy.js +10 -0
  64. package/dist/definitions/file.d.ts +7 -0
  65. package/dist/definitions/file.js +7 -0
  66. package/dist/definitions/folder.d.ts +7 -0
  67. package/dist/definitions/folder.js +7 -0
  68. package/dist/definitions/inbox.d.ts +7 -0
  69. package/dist/definitions/inbox.js +7 -0
  70. package/dist/definitions/loader.d.ts +7 -0
  71. package/dist/definitions/loader.js +9 -0
  72. package/dist/definitions/mail.d.ts +7 -0
  73. package/dist/definitions/mail.js +7 -0
  74. package/dist/definitions/memory.d.ts +7 -0
  75. package/dist/definitions/memory.js +7 -0
  76. package/dist/definitions/message.d.ts +7 -0
  77. package/dist/definitions/message.js +7 -0
  78. package/dist/definitions/messenger.d.ts +7 -0
  79. package/dist/definitions/messenger.js +7 -0
  80. package/dist/definitions/more.d.ts +7 -0
  81. package/dist/definitions/more.js +6 -0
  82. package/dist/definitions/plus.d.ts +7 -0
  83. package/dist/definitions/plus.js +7 -0
  84. package/dist/definitions/search.d.ts +7 -0
  85. package/dist/definitions/search.js +7 -0
  86. package/dist/definitions/session.d.ts +7 -0
  87. package/dist/definitions/session.js +8 -0
  88. package/dist/definitions/settings.d.ts +7 -0
  89. package/dist/definitions/settings.js +7 -0
  90. package/dist/definitions/skill.d.ts +7 -0
  91. package/dist/definitions/skill.js +7 -0
  92. package/dist/definitions/task-check.d.ts +7 -0
  93. package/dist/definitions/task-check.js +10 -0
  94. package/dist/definitions/task.d.ts +7 -0
  95. package/dist/definitions/task.js +7 -0
  96. package/dist/definitions/terminal.d.ts +7 -0
  97. package/dist/definitions/terminal.js +10 -0
  98. package/dist/definitions/web.d.ts +7 -0
  99. package/dist/definitions/web.js +7 -0
  100. package/dist/definitions/workspace.d.ts +7 -0
  101. package/dist/definitions/workspace.js +7 -0
  102. package/dist/index.d.ts +84 -0
  103. package/dist/index.js +51 -0
  104. package/dist/react/icons/check.d.ts +7 -0
  105. package/dist/react/icons/check.js +13 -0
  106. package/dist/react/icons/chevron-down.d.ts +7 -0
  107. package/dist/react/icons/chevron-down.js +13 -0
  108. package/dist/react/icons/close.d.ts +7 -0
  109. package/dist/react/icons/close.js +13 -0
  110. package/dist/react/icons/copy.d.ts +7 -0
  111. package/dist/react/icons/copy.js +13 -0
  112. package/dist/react/icons/file.d.ts +7 -0
  113. package/dist/react/icons/file.js +11 -0
  114. package/dist/react/icons/folder.d.ts +7 -0
  115. package/dist/react/icons/folder.js +11 -0
  116. package/dist/react/icons/inbox.d.ts +7 -0
  117. package/dist/react/icons/inbox.js +11 -0
  118. package/dist/react/icons/loader.d.ts +7 -0
  119. package/dist/react/icons/loader.js +12 -0
  120. package/dist/react/icons/mail.d.ts +7 -0
  121. package/dist/react/icons/mail.js +11 -0
  122. package/dist/react/icons/memory.d.ts +7 -0
  123. package/dist/react/icons/memory.js +11 -0
  124. package/dist/react/icons/message.d.ts +7 -0
  125. package/dist/react/icons/message.js +11 -0
  126. package/dist/react/icons/messenger.d.ts +7 -0
  127. package/dist/react/icons/messenger.js +11 -0
  128. package/dist/react/icons/more.d.ts +7 -0
  129. package/dist/react/icons/more.js +11 -0
  130. package/dist/react/icons/plus.d.ts +7 -0
  131. package/dist/react/icons/plus.js +11 -0
  132. package/dist/react/icons/search.d.ts +7 -0
  133. package/dist/react/icons/search.js +11 -0
  134. package/dist/react/icons/session.d.ts +7 -0
  135. package/dist/react/icons/session.js +11 -0
  136. package/dist/react/icons/settings.d.ts +7 -0
  137. package/dist/react/icons/settings.js +11 -0
  138. package/dist/react/icons/skill.d.ts +7 -0
  139. package/dist/react/icons/skill.js +11 -0
  140. package/dist/react/icons/task-check.d.ts +7 -0
  141. package/dist/react/icons/task-check.js +13 -0
  142. package/dist/react/icons/task.d.ts +7 -0
  143. package/dist/react/icons/task.js +11 -0
  144. package/dist/react/icons/terminal.d.ts +7 -0
  145. package/dist/react/icons/terminal.js +13 -0
  146. package/dist/react/icons/web.d.ts +7 -0
  147. package/dist/react/icons/web.js +11 -0
  148. package/dist/react/icons/workspace.d.ts +7 -0
  149. package/dist/react/icons/workspace.js +11 -0
  150. package/dist/react/index.d.ts +26 -0
  151. package/dist/react/index.js +123 -0
  152. package/dist/react-D-Ingc4F.d.ts +29 -0
  153. package/dist/registry.d.ts +7 -0
  154. package/dist/registry.js +83 -0
  155. package/dist/static/check-layered.svg +1 -0
  156. package/dist/static/check.svg +1 -0
  157. package/dist/static/chevron-down-layered.svg +1 -0
  158. package/dist/static/chevron-down.svg +1 -0
  159. package/dist/static/close-layered.svg +1 -0
  160. package/dist/static/close.svg +1 -0
  161. package/dist/static/copy-layered.svg +1 -0
  162. package/dist/static/copy.svg +1 -0
  163. package/dist/static/file-layered.svg +1 -0
  164. package/dist/static/file.svg +1 -0
  165. package/dist/static/folder-layered.svg +1 -0
  166. package/dist/static/folder.svg +1 -0
  167. package/dist/static/inbox-layered.svg +1 -0
  168. package/dist/static/inbox.svg +1 -0
  169. package/dist/static/loader-layered.svg +1 -0
  170. package/dist/static/loader.svg +1 -0
  171. package/dist/static/mail-layered.svg +1 -0
  172. package/dist/static/mail.svg +1 -0
  173. package/dist/static/memory-layered.svg +1 -0
  174. package/dist/static/memory.svg +1 -0
  175. package/dist/static/message-layered.svg +1 -0
  176. package/dist/static/message.svg +1 -0
  177. package/dist/static/messenger-layered.svg +1 -0
  178. package/dist/static/messenger.svg +1 -0
  179. package/dist/static/more-layered.svg +1 -0
  180. package/dist/static/more.svg +1 -0
  181. package/dist/static/plus-layered.svg +1 -0
  182. package/dist/static/plus.svg +1 -0
  183. package/dist/static/search-layered.svg +1 -0
  184. package/dist/static/search.svg +1 -0
  185. package/dist/static/session-layered.svg +1 -0
  186. package/dist/static/session.svg +1 -0
  187. package/dist/static/settings-layered.svg +1 -0
  188. package/dist/static/settings.svg +1 -0
  189. package/dist/static/skill-layered.svg +1 -0
  190. package/dist/static/skill.svg +1 -0
  191. package/dist/static/task-check-layered.svg +1 -0
  192. package/dist/static/task-check.svg +1 -0
  193. package/dist/static/task-layered.svg +1 -0
  194. package/dist/static/task.svg +1 -0
  195. package/dist/static/terminal-layered.svg +1 -0
  196. package/dist/static/terminal.svg +1 -0
  197. package/dist/static/web-layered.svg +1 -0
  198. package/dist/static/web.svg +1 -0
  199. package/dist/static/workspace-layered.svg +1 -0
  200. package/dist/static/workspace.svg +1 -0
  201. package/package.json +59 -2
@@ -0,0 +1,154 @@
1
+ import {
2
+ evaluate_icon,
3
+ react_prefix,
4
+ surface_defs,
5
+ surface_fill,
6
+ surface_paint
7
+ } from "./chunk-SXQXPUXP.js";
8
+ import {
9
+ default_motion,
10
+ validate_motion
11
+ } from "./chunk-T6BSLNMN.js";
12
+ import {
13
+ icon_tokens
14
+ } from "./chunk-O3KGMKUU.js";
15
+
16
+ // src/react/create_icon.tsx
17
+ import { forwardRef, useId } from "react";
18
+
19
+ // src/react/use_icon_motion.ts
20
+ import { useEffect, useRef, useState } from "react";
21
+ function use_icon_motion({ motion, active, play_key, base_progress, running, duration, cycle = false }) {
22
+ const target = active ? 1 : base_progress;
23
+ const [progress, set_progress] = useState(target);
24
+ const current = useRef(target);
25
+ const previous_key = useRef(play_key);
26
+ const first_effect = useRef(true);
27
+ useEffect(() => {
28
+ let frame;
29
+ let disposed = false;
30
+ let local_progress = current.current;
31
+ const replay = !first_effect.current && previous_key.current !== play_key && active === void 0;
32
+ previous_key.current = play_key;
33
+ first_effect.current = false;
34
+ if (motion === "off") {
35
+ current.current = target;
36
+ set_progress(target);
37
+ return;
38
+ }
39
+ const query = window.matchMedia("(prefers-reduced-motion: reduce)");
40
+ const assign = (value) => {
41
+ if (disposed) return;
42
+ local_progress = value;
43
+ current.current = value;
44
+ set_progress(value);
45
+ };
46
+ const cancel = () => {
47
+ if (frame !== void 0) window.cancelAnimationFrame(frame);
48
+ frame = void 0;
49
+ };
50
+ const start = (allow_replay) => {
51
+ cancel();
52
+ if (motion !== "auto" || query.matches || document.hidden) {
53
+ assign(target);
54
+ return;
55
+ }
56
+ let started_at;
57
+ const from = allow_replay && cycle ? 0 : local_progress;
58
+ if (allow_replay && cycle) assign(0);
59
+ const tick = (time) => {
60
+ if (disposed) return;
61
+ started_at ??= time;
62
+ const elapsed = time - started_at;
63
+ if (running) {
64
+ assign((from + elapsed / duration) % 1);
65
+ frame = window.requestAnimationFrame(tick);
66
+ return;
67
+ }
68
+ if (allow_replay && cycle) {
69
+ const t2 = Math.min(1, elapsed / duration);
70
+ assign(t2);
71
+ if (t2 < 1) frame = window.requestAnimationFrame(tick);
72
+ return;
73
+ }
74
+ if (allow_replay) {
75
+ const outward = duration * (1 - from);
76
+ const inward = duration * (1 - target);
77
+ const total = outward + inward;
78
+ assign(elapsed < outward ? from + elapsed / duration : Math.max(target, 1 - (elapsed - outward) / duration));
79
+ if (elapsed < total) frame = window.requestAnimationFrame(tick);
80
+ return;
81
+ }
82
+ const t = Math.min(1, elapsed / Math.max(1, duration * Math.abs(target - from)));
83
+ assign(from + (target - from) * t);
84
+ if (t < 1) frame = window.requestAnimationFrame(tick);
85
+ };
86
+ if (running || allow_replay || from !== target) frame = window.requestAnimationFrame(tick);
87
+ };
88
+ const on_environment_change = () => start(false);
89
+ query.addEventListener("change", on_environment_change);
90
+ document.addEventListener("visibilitychange", on_environment_change);
91
+ start(replay);
92
+ return () => {
93
+ disposed = true;
94
+ cancel();
95
+ query.removeEventListener("change", on_environment_change);
96
+ document.removeEventListener("visibilitychange", on_environment_change);
97
+ };
98
+ }, [motion, active, play_key, base_progress, running, target, duration, cycle]);
99
+ return motion === "off" ? target : progress;
100
+ }
101
+
102
+ // src/react/create_icon.tsx
103
+ import { jsx, jsxs } from "react/jsx-runtime";
104
+ function create_icon(definition) {
105
+ const Component = forwardRef((input, ref) => {
106
+ const { title, motion = "off", motion_spec = definition.motion ?? default_motion, active, play_key, ...remaining } = input;
107
+ const { variant = "outline", state = "rest", running = false, ...svg_props } = remaining;
108
+ if (state !== "rest" && !(definition.id === "folder" && state === "open")) throw new TypeError("\u4E0D\u652F\u6301\u7684\u56FE\u6807\u72B6\u6001");
109
+ validate_motion(motion_spec);
110
+ const progress = use_icon_motion({
111
+ duration: motion_spec.duration,
112
+ cycle: definition.motion_cycle,
113
+ motion: definition.motion_enabled === false ? "off" : motion,
114
+ active,
115
+ play_key,
116
+ base_progress: state === "open" ? 1 : 0,
117
+ running: !!definition.continuous && running
118
+ });
119
+ const nodes = evaluate_icon(definition, progress, variant, motion_spec);
120
+ const prefix = react_prefix(useId());
121
+ const resources = nodes.some((node) => node.surface || node.shadow);
122
+ return /* @__PURE__ */ jsxs(
123
+ "svg",
124
+ {
125
+ width: "1em",
126
+ height: "1em",
127
+ viewBox: definition.view_box?.join(" ") ?? "0 0 24 24",
128
+ fill: "none",
129
+ stroke: variant === "outline" ? "currentColor" : surface_paint("edge", definition.materials),
130
+ strokeWidth: icon_tokens.stroke.boundary,
131
+ strokeLinecap: "round",
132
+ strokeLinejoin: "round",
133
+ ...svg_props,
134
+ ref,
135
+ focusable: "false",
136
+ tabIndex: void 0,
137
+ role: title ? "img" : svg_props.role,
138
+ "aria-hidden": title ? void 0 : svg_props["aria-label"] || svg_props["aria-labelledby"] ? void 0 : true,
139
+ "aria-label": title || svg_props["aria-label"],
140
+ children: [
141
+ title ? /* @__PURE__ */ jsx("title", { children: title }) : null,
142
+ resources ? /* @__PURE__ */ jsx("defs", { dangerouslySetInnerHTML: { __html: surface_defs(prefix, definition.materials) } }) : null,
143
+ nodes.map((node) => /* @__PURE__ */ jsx("path", { d: node.d, fill: surface_fill(node, prefix, definition.materials), filter: node.shadow ? `url(#${prefix}-contact)` : void 0, opacity: node.opacity, stroke: node.no_stroke ? "none" : surface_paint(node.stroke, definition.materials), strokeWidth: node.stroke_width }, node.key))
144
+ ]
145
+ }
146
+ );
147
+ });
148
+ Component.displayName = `${definition.id}Icon`;
149
+ return Component;
150
+ }
151
+
152
+ export {
153
+ create_icon
154
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ task_definition
6
+ } from "./chunk-RXYMPDOI.js";
7
+
8
+ // src/react/icons/task.tsx
9
+ var TaskIcon = create_icon(task_definition);
10
+
11
+ export {
12
+ TaskIcon
13
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ session_definition
6
+ } from "./chunk-OKTJS2IX.js";
7
+
8
+ // src/react/icons/session.tsx
9
+ var SessionIcon = create_icon(session_definition);
10
+
11
+ export {
12
+ SessionIcon
13
+ };
@@ -0,0 +1,23 @@
1
+ import {
2
+ static_tokens
3
+ } from "./chunk-O3KGMKUU.js";
4
+
5
+ // src/definitions/memory.ts
6
+ var memory_definition = {
7
+ id: "memory",
8
+ label: "\u8BB0\u5FC6",
9
+ layered: true,
10
+ materials: "core",
11
+ motion_enabled: false,
12
+ draw: ({ variant }) => {
13
+ const outline = variant === "outline";
14
+ return [
15
+ { key: "front", part: "front", tag: "path", d: "M17 7 Q17 9 12 9 Q7 9 7 7 Q7 5 12 5 Q17 5 17 7 Z", ...outline ? { stroke_width: static_tokens.stroke.detail } : { fill: "front", no_stroke: true } },
16
+ { key: "contour", part: "back", tag: "path", d: "M5 6 Q5 3.5 12 3.5 Q19 3.5 19 6 V18 Q19 20.5 12 20.5 Q5 20.5 5 18 Z", stroke: "currentColor", stroke_width: outline ? static_tokens.stroke.outline : static_tokens.stroke.color_contour }
17
+ ];
18
+ }
19
+ };
20
+
21
+ export {
22
+ memory_definition
23
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ message_definition
6
+ } from "./chunk-DKZZG6QO.js";
7
+
8
+ // src/react/icons/message.tsx
9
+ var MessageIcon = create_icon(message_definition);
10
+
11
+ export {
12
+ MessageIcon
13
+ };
@@ -0,0 +1,111 @@
1
+ /** 有限的时间协议;时钟由调用方拥有,形变由图形定义拥有。 */
2
+
3
+ interface MotionTrack {
4
+ /** 相对线性时间的开始位置,范围 0–1。 */
5
+ start: number;
6
+ /** 相对线性时间的结束位置,必须大于 start 且不超过 1。 */
7
+ end: number;
8
+ }
9
+ interface MotionSpec {
10
+ /** 单程时长(毫秒),80–2000;单次往返使用两程。 */
11
+ duration: number;
12
+ /** CSS cubic-bezier 控制点;四值限定 0–1,避免越界/弹性姿态。 */
13
+ cubic_bezier: readonly [number, number, number, number];
14
+ /** 几何力度 0–1.5;零保持静止,不扩张时间进度。 */
15
+ amplitude: number;
16
+ /** 按视觉部件覆盖时段;缺省部件使用完整时段。 */
17
+ tracks: Readonly<Partial<Record<IconPart, MotionTrack>>>;
18
+ }
19
+ interface IconMotionFrame {
20
+ /** 各部件时段内的线性时间,供因果阶段求值;不重复整体缓动。 */
21
+ times: Readonly<Record<IconPart, number>>;
22
+ /** 已验证曲线,阶段内复用;不允许几何余韵放宽控制点边界。 */
23
+ curve: CubicBezier;
24
+ /** 全程缓动姿态;不等于线性时间。 */
25
+ progress: number;
26
+ /** 各部件在各自时段内的缓动姿态,均为 0–1。 */
27
+ parts: Readonly<Record<IconPart, number>>;
28
+ /** 几何层的运动力度,绝不用于扩张 progress。 */
29
+ amplitude: number;
30
+ }
31
+ /** 调校台复用的有限贝塞尔参数类型。 */
32
+ type CubicBezier = MotionSpec["cubic_bezier"];
33
+
34
+ /** 图标的纯数据协议;不依赖 React、DOM 或业务状态。 */
35
+
36
+ type IconVariant = "outline" | "layered";
37
+ type IconState = "rest" | "open";
38
+ /** 材质角色只从 currentColor 派生;不允许定义注入任意 CSS。 */
39
+ type IconPaint = "currentColor" | "none" | "back" | "front" | "paper" | "edge" | "ink" | "highlight";
40
+ /** 视觉部件,不等于 path 数量;预览按该字段拆解真实图层。 */
41
+ type IconPart = "back" | "content" | "front" | "detail";
42
+ interface IconNode {
43
+ /** 稳定节点标识,用于 React key 与静态输出的一致性。 */
44
+ key: string;
45
+ /** 一期只开放路径,避免任意 SVG/HTML 注入。 */
46
+ tag: "path";
47
+ /** SVG 路径,由原创纯几何函数生成。 */
48
+ d: string;
49
+ /** 视觉角色;缺省为独立线条。 */
50
+ part?: IconPart;
51
+ /** 只允许继承色、无填充或有限的色彩角色。 */
52
+ fill?: IconPaint;
53
+ /** 可选独立描边角色;未指定时继承根。 */
54
+ stroke?: IconPaint;
55
+ /** 语义线重;轮廓1.75/1.5,材质细边/内容/亮边见icon_tokens。 */
56
+ stroke_width?: number;
57
+ /** 有限纵向材质渐变;仅接受三种表面,不能传入任意URL。 */
58
+ surface?: "back" | "front" | "paper";
59
+ /** 本节点使用共享接触软影;不允许任意filter表达式。 */
60
+ shadow?: boolean;
61
+ /** 可选弱面透明度,不承载唯一语义。 */
62
+ opacity?: number;
63
+ /** 是否关闭本节点描边;默认继承根描边。 */
64
+ no_stroke?: boolean;
65
+ }
66
+ interface IconFrame extends IconMotionFrame {
67
+ /** 零到一的动作进度;loader 可使用连续相位。 */
68
+ progress: number;
69
+ /** 外观,只有明确声明的图标支持 layered。 */
70
+ variant: IconVariant;
71
+ }
72
+ interface IconDefinition {
73
+ /** 唯一 kebab-case 标识。 */
74
+ id: string;
75
+ /** 人类可读名称,供独立 registry/预览使用。 */
76
+ label: string;
77
+ /** 是否确实提供第二种绘制。 */
78
+ layered: boolean;
79
+ /** true保留历史研究材质;core使用Downcity哑光框架材质,未指定沿用纯色。 */
80
+ materials?: boolean | "core";
81
+ /** 含运动和阴影padding的视窗[x,y,width,height];缺省24网格。 */
82
+ view_box?: readonly [number, number, number, number];
83
+ /** 是否有持续运行相位;目前只有 loader。 */
84
+ continuous?: boolean;
85
+ /** true表示draw的0→1本身包含交接与归位,事件只前进一次,不再倒放一遍。 */
86
+ motion_cycle?: boolean;
87
+ /** false为明确静态定义:React不分配动画时钟;未指定保留历史图行为。 */
88
+ motion_enabled?: boolean;
89
+ /** 图标建议节奏;缺省使用 default_motion。 */
90
+ motion?: MotionSpec;
91
+ /** 纯函数:同一帧在静态与 React 输出同一几何。 */
92
+ draw: (frame: IconFrame) => readonly IconNode[];
93
+ }
94
+ interface StaticIconOptions {
95
+ /** 默认 24;必须是 1–4096 的有限数。 */
96
+ size?: number;
97
+ /** 缺省 outline。 */
98
+ variant?: IconVariant;
99
+ /** folder 的持续展开姿态;其他图标不接受 open。 */
100
+ state?: IconState;
101
+ /** 显式线性时间 0–1;缺省由 state 决定。 */
102
+ progress?: number;
103
+ /** 完整运动覆盖,与 React 和调校台共用求值。 */
104
+ motion_spec?: MotionSpec;
105
+ /** 材质资源的文档唯一前缀;合并多段静态SVG时必须分别提供。缺省为本模块安全递增前缀。 */
106
+ id_prefix?: string;
107
+ /** 可访问名称;缺省为装饰性 SVG。 */
108
+ title?: string;
109
+ }
110
+
111
+ export type { CubicBezier as C, IconDefinition as I, MotionSpec as M, StaticIconOptions as S, IconMotionFrame as a, IconNode as b, IconPaint as c, IconPart as d, IconState as e, IconVariant as f, MotionTrack as g };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 确认:笔画收笔再绘入;点击只是图形演示,成功事实由父控件拥有。 */
4
+
5
+ declare const check_definition: IconDefinition;
6
+
7
+ export { check_definition };
@@ -0,0 +1,10 @@
1
+ import {
2
+ check_definition
3
+ } from "../chunk-2TKTX3CU.js";
4
+ import "../chunk-HXOYIUQQ.js";
5
+ import "../chunk-NBGN6WVE.js";
6
+ import "../chunk-T6BSLNMN.js";
7
+ import "../chunk-O3KGMKUU.js";
8
+ export {
9
+ check_definition
10
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 方向状态:绕固定中心旋转,不把V压扁穿过零面积。 */
4
+
5
+ declare const chevron_down_definition: IconDefinition;
6
+
7
+ export { chevron_down_definition };
@@ -0,0 +1,10 @@
1
+ import {
2
+ chevron_down_definition
3
+ } from "../chunk-NDRETNEW.js";
4
+ import "../chunk-HXOYIUQQ.js";
5
+ import "../chunk-NBGN6WVE.js";
6
+ import "../chunk-T6BSLNMN.js";
7
+ import "../chunk-O3KGMKUU.js";
8
+ export {
9
+ chevron_down_definition
10
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 关闭:两笔围绕同一交点有界收合再回位,不整体转圈或真正关闭宿主。 */
4
+
5
+ declare const close_definition: IconDefinition;
6
+
7
+ export { close_definition };
@@ -0,0 +1,10 @@
1
+ import {
2
+ close_definition
3
+ } from "../chunk-76UOULDL.js";
4
+ import "../chunk-HXOYIUQQ.js";
5
+ import "../chunk-NBGN6WVE.js";
6
+ import "../chunk-T6BSLNMN.js";
7
+ import "../chunk-O3KGMKUU.js";
8
+ export {
9
+ close_definition
10
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 复制:圆角双页,固定背页,前页沿左下分离;不自行切换成功状态。 */
4
+
5
+ declare const copy_definition: IconDefinition;
6
+
7
+ export { copy_definition };
@@ -0,0 +1,10 @@
1
+ import {
2
+ copy_definition
3
+ } from "../chunk-KU34JGIO.js";
4
+ import "../chunk-HXOYIUQQ.js";
5
+ import "../chunk-NBGN6WVE.js";
6
+ import "../chunk-T6BSLNMN.js";
7
+ import "../chunk-O3KGMKUU.js";
8
+ export {
9
+ copy_definition
10
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 文件线面母版:斜肩纸页与单块内嵌面;仅静态,不用折角和文字增加内部线。 */
4
+
5
+ declare const file_definition: IconDefinition;
6
+
7
+ export { file_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ file_definition
3
+ } from "../chunk-2DWFGABM.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ file_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 文件夹线面母版:一条连续闭合轮廓与一块内嵌色面,不附加内部线或材质装饰。 */
4
+
5
+ declare const folder_definition: IconDefinition;
6
+
7
+ export { folder_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ folder_definition
3
+ } from "../chunk-VWZK6FRQ.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ folder_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 收件箱线面母版:单一带凹口托盘轮廓加内嵌面,不堆信纸或来件动作。 */
4
+
5
+ declare const inbox_definition: IconDefinition;
6
+
7
+ export { inbox_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ inbox_definition
3
+ } from "../chunk-TMDEAPHD.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ inbox_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 运行环:保留7.5半径与开放角,固定中心/恒定面积,唯一允许的业务运行循环。 */
4
+
5
+ declare const loader_definition: IconDefinition;
6
+
7
+ export { loader_definition };
@@ -0,0 +1,9 @@
1
+ import {
2
+ loader_definition
3
+ } from "../chunk-OCZC6LVQ.js";
4
+ import "../chunk-NBGN6WVE.js";
5
+ import "../chunk-T6BSLNMN.js";
6
+ import "../chunk-O3KGMKUU.js";
7
+ export {
8
+ loader_definition
9
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 邮件线面母版:一笔信封轮廓,一个下垂封口色面;不以多条折线或信纸增加复杂度。 */
4
+
5
+ declare const mail_definition: IconDefinition;
6
+
7
+ export { mail_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ mail_definition
3
+ } from "../chunk-4UIJEWGF.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ mail_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 记忆:圆柱资料库的连续剪影与椭圆入口色面;不叠三层分割线。 */
4
+
5
+ declare const memory_definition: IconDefinition;
6
+
7
+ export { memory_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ memory_definition
3
+ } from "../chunk-ZP2ZAJYJ.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ memory_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 对话线面母版:气泡尾角负责识别,内嵌平面承接话语,不用文字线堆叠细节。 */
4
+
5
+ declare const message_definition: IconDefinition;
6
+
7
+ export { message_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ message_definition
3
+ } from "../chunk-DKZZG6QO.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ message_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 通讯:手持对讲机的天线与声窗,区别于对话气泡;不把广播弧拆成多笔。 */
4
+
5
+ declare const messenger_definition: IconDefinition;
6
+
7
+ export { messenger_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ messenger_definition
3
+ } from "../chunk-BGO2END2.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ messenger_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 更多是操作符号例外:三个实心点,不为凑色面加容器。 */
4
+
5
+ declare const more_definition: IconDefinition;
6
+
7
+ export { more_definition };
@@ -0,0 +1,6 @@
1
+ import {
2
+ more_definition
3
+ } from "../chunk-NVOG4T3W.js";
4
+ export {
5
+ more_definition
6
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 新增是操作符号例外:正交两笔,不造多余色面。 */
4
+
5
+ declare const plus_definition: IconDefinition;
6
+
7
+ export { plus_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ plus_definition
3
+ } from "../chunk-ILAFNOCW.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ plus_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 搜索线面母版:圆环接短柄组成单一连续线,一块镜面与轮廓保持2单位offset。 */
4
+
5
+ declare const search_definition: IconDefinition;
6
+
7
+ export { search_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ search_definition
3
+ } from "../chunk-PDJIQEFH.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ search_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 会话:上下错位的双方话语,通过固定的上下文接点往来;不把会话画成邮件。 */
4
+
5
+ declare const session_definition: IconDefinition;
6
+
7
+ export { session_definition };
@@ -0,0 +1,8 @@
1
+ import {
2
+ session_definition
3
+ } from "../chunk-OKTJS2IX.js";
4
+ import "../chunk-T6BSLNMN.js";
5
+ import "../chunk-O3KGMKUU.js";
6
+ export {
7
+ session_definition
8
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 设置:六齿连续轮廓与中心色盘。减少齿数,保证14px仍有明确的齿轮负形。 */
4
+
5
+ declare const settings_definition: IconDefinition;
6
+
7
+ export { settings_definition };
@@ -0,0 +1,7 @@
1
+ import {
2
+ settings_definition
3
+ } from "../chunk-V3E6IXCE.js";
4
+ import "../chunk-O3KGMKUU.js";
5
+ export {
6
+ settings_definition
7
+ };
@@ -0,0 +1,7 @@
1
+ import { I as IconDefinition } from '../definition-CueRRK0O.js';
2
+
3
+ /** 技能:熟悉的斜向胶囊,单一半片色面表达可装配的能力,不增加分割描边。 */
4
+
5
+ declare const skill_definition: IconDefinition;
6
+
7
+ export { skill_definition };