@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,24 @@
1
+ import {
2
+ icon_tokens
3
+ } from "./chunk-O3KGMKUU.js";
4
+
5
+ // src/core/material.ts
6
+ function surface_style(variant, fill) {
7
+ return variant === "layered" ? { fill, stroke: "edge", stroke_width: icon_tokens.stroke.material_edge } : { fill: "none", stroke: "currentColor", stroke_width: icon_tokens.stroke.boundary };
8
+ }
9
+ function detail_style(variant, role = "ink") {
10
+ return { stroke: variant === "layered" ? role : "currentColor", stroke_width: variant === "layered" ? role === "highlight" ? icon_tokens.stroke.highlight : icon_tokens.stroke.material_detail : icon_tokens.stroke.detail };
11
+ }
12
+ function symbol_nodes(key, d, variant) {
13
+ if (variant === "outline") return [{ key, part: "front", tag: "path", d, stroke: "currentColor" }];
14
+ return [
15
+ { key: `${key}-edge`, part: "front", tag: "path", d, stroke: "edge", stroke_width: icon_tokens.stroke.symbol_edge },
16
+ { key, part: "front", tag: "path", d, stroke: "front", stroke_width: icon_tokens.stroke.symbol_face }
17
+ ];
18
+ }
19
+
20
+ export {
21
+ surface_style,
22
+ detail_style,
23
+ symbol_nodes
24
+ };
@@ -0,0 +1,27 @@
1
+ import {
2
+ story_motion
3
+ } from "./chunk-HXOYIUQQ.js";
4
+ import {
5
+ symbol_nodes
6
+ } from "./chunk-NBGN6WVE.js";
7
+ import {
8
+ default_motion
9
+ } from "./chunk-T6BSLNMN.js";
10
+
11
+ // src/definitions/chevron-down.ts
12
+ var chevron_down_definition = {
13
+ id: "chevron-down",
14
+ label: "\u5C55\u5F00",
15
+ layered: true,
16
+ motion: default_motion,
17
+ draw: ({ times, curve, variant }) => {
18
+ const story = story_motion(times.front, 1, curve);
19
+ const angle = (-story.prepare * 0.035 + story.action + story.settle * 0.016) * Math.PI;
20
+ const point = (x, y) => `${+(12 + x * Math.cos(angle) - y * Math.sin(angle)).toFixed(3)} ${+(12 + x * Math.sin(angle) + y * Math.cos(angle)).toFixed(3)}`;
21
+ return symbol_nodes("chevron", `M${point(-5, -2.5)} L${point(0, 2.5)} L${point(5, -2.5)}`, variant);
22
+ }
23
+ };
24
+
25
+ export {
26
+ chevron_down_definition
27
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ check_definition
6
+ } from "./chunk-2TKTX3CU.js";
7
+
8
+ // src/react/icons/check.tsx
9
+ var CheckIcon = create_icon(check_definition);
10
+
11
+ export {
12
+ CheckIcon
13
+ };
@@ -0,0 +1,12 @@
1
+ // src/definitions/more.ts
2
+ var more_definition = {
3
+ id: "more",
4
+ label: "\u66F4\u591A",
5
+ layered: true,
6
+ motion_enabled: false,
7
+ draw: () => [{ key: "dots", part: "front", tag: "path", d: "M6.5 12 A1.25 1.25 0 1 1 4 12 A1.25 1.25 0 1 1 6.5 12 Z M13.25 12 A1.25 1.25 0 1 1 10.75 12 A1.25 1.25 0 1 1 13.25 12 Z M20 12 A1.25 1.25 0 1 1 17.5 12 A1.25 1.25 0 1 1 20 12 Z", fill: "currentColor", no_stroke: true }]
8
+ };
9
+
10
+ export {
11
+ more_definition
12
+ };
@@ -0,0 +1,27 @@
1
+ // src/core/design_tokens.ts
2
+ var static_tokens = Object.freeze({
3
+ /** 规范v1的静态坐标基线;不是另一套宿主尺寸。 */
4
+ grid: 24,
5
+ inset: 2,
6
+ /** 纯轮廓1.75;线+色面的彩色轮廓1.25,避免填充与粗边叠加过重。 */
7
+ stroke: Object.freeze({ outline: 1.75, color_contour: 1.25, detail: 1.5, material_edge: 0.8, material_mark: 1, highlight: 0.5 }),
8
+ /** 主体与内部必要部件的转折。 */
9
+ radius: Object.freeze({ body: 2, part: 1 })
10
+ });
11
+ var icon_tokens = Object.freeze({
12
+ /** 轮廓可读性与材质细边分别校准;不是把粗轮廓描在彩色面外。 */
13
+ stroke: Object.freeze({ boundary: 1.75, detail: 1.5, material_edge: 0.85, material_detail: 0.95, highlight: 0.65, symbol_edge: 2.5, symbol_face: 1.25 }),
14
+ /** 同一交互节奏与唯一业务循环周期;不向每张图分配自由时长。 */
15
+ motion: Object.freeze({
16
+ interaction_duration: 640,
17
+ /** 因果阶段共享,部件不要求同时起止;余韵只在几何内有限表达。 */
18
+ story: Object.freeze({ prepare_end: 0.2, action_start: 0.12, action_end: 0.64, follow_start: 0.28, follow_end: 0.84 }),
19
+ running_duration: 1e3,
20
+ curve: Object.freeze([0.32, 0, 0.2, 1])
21
+ })
22
+ });
23
+
24
+ export {
25
+ static_tokens,
26
+ icon_tokens
27
+ };
@@ -0,0 +1,29 @@
1
+ import {
2
+ symbol_nodes
3
+ } from "./chunk-NBGN6WVE.js";
4
+ import {
5
+ default_motion
6
+ } from "./chunk-T6BSLNMN.js";
7
+ import {
8
+ icon_tokens
9
+ } from "./chunk-O3KGMKUU.js";
10
+
11
+ // src/definitions/loader.ts
12
+ var loader_definition = {
13
+ id: "loader",
14
+ label: "\u8FDB\u884C\u4E2D",
15
+ layered: true,
16
+ continuous: true,
17
+ // 持续相位一周仍为原有一秒;不对循环角速度应用部件缓动。
18
+ motion: { ...default_motion, duration: icon_tokens.motion.running_duration },
19
+ draw: ({ progress, variant }) => symbol_nodes("arc", (() => {
20
+ const a = progress * Math.PI * 2;
21
+ const x = (r) => +(12 + 7.5 * Math.cos(r)).toFixed(4);
22
+ const y = (r) => +(12 + 7.5 * Math.sin(r)).toFixed(4);
23
+ return `M${x(a)} ${y(a)} A7.5 7.5 0 1 1 ${x(a + Math.PI * 1.55)} ${y(a + Math.PI * 1.55)}`;
24
+ })(), variant)
25
+ };
26
+
27
+ export {
28
+ loader_definition
29
+ };
@@ -0,0 +1,57 @@
1
+ import {
2
+ cubic_bezier_progress,
3
+ default_motion
4
+ } from "./chunk-T6BSLNMN.js";
5
+
6
+ // src/core/core_motion.ts
7
+ var core_tokens = Object.freeze({
8
+ boundary: 1.5,
9
+ edge: 0.75,
10
+ content: 1.1,
11
+ light: 0.5,
12
+ corner: 1.5,
13
+ duration: 880,
14
+ prepare_end: 0.12,
15
+ transfer_end: 0.48,
16
+ hold_end: 0.6
17
+ });
18
+ var core_motion = Object.freeze({ ...default_motion, duration: core_tokens.duration });
19
+ function core_transfer(time, amplitude, delay = 0) {
20
+ const t = Math.max(0, Math.min(1, (time - delay) / (1 - delay)));
21
+ const ease = (value) => cubic_bezier_progress(value, core_motion.cubic_bezier);
22
+ const { prepare_end, transfer_end, hold_end } = core_tokens;
23
+ const phase = t < prepare_end ? -0.055 * Math.sin(t / prepare_end * Math.PI) : t < transfer_end ? ease((t - prepare_end) / (transfer_end - prepare_end)) : t < hold_end ? 1 : 1 - ease((t - hold_end) / (1 - hold_end));
24
+ return phase * Math.min(amplitude, 1.2);
25
+ }
26
+ function core_number(value) {
27
+ return Math.round(value * 100) / 100;
28
+ }
29
+
30
+ // src/definitions/session.ts
31
+ var session_definition = {
32
+ id: "session",
33
+ label: "\u4F1A\u8BDD",
34
+ layered: true,
35
+ materials: "core",
36
+ view_box: [0, 0, 24, 24],
37
+ motion: core_motion,
38
+ motion_cycle: true,
39
+ draw: ({ times, amplitude, variant }) => {
40
+ const outgoing = core_transfer(times.back, amplitude), reply = core_transfer(times.front, amplitude, 0.09);
41
+ const a = core_number(3 + outgoing * 3), b = core_number(10 - reply * 3);
42
+ const first = `M${core_number(a + 1.5)} 3.5 H${core_number(a + 9.5)} Q${core_number(a + 11)} 3.5 ${core_number(a + 11)} 5 V9 Q${core_number(a + 11)} 10.5 ${core_number(a + 9.5)} 10.5 H${core_number(a + 4)} L${core_number(a + 1.5)} 12.5 V10.5 Q${a} 10.5 ${a} 9 V5 Q${a} 3.5 ${core_number(a + 1.5)} 3.5 Z`;
43
+ const second = `M${core_number(b + 1.5)} 12 H${core_number(b + 9.5)} Q${core_number(b + 11)} 12 ${core_number(b + 11)} 13.5 V17.5 Q${core_number(b + 11)} 19 ${core_number(b + 9.5)} 19 V21 L${core_number(b + 7)} 19 H${core_number(b + 1.5)} Q${b} 19 ${b} 17.5 V13.5 Q${b} 12 ${core_number(b + 1.5)} 12 Z`;
44
+ const outline = variant === "outline";
45
+ return [
46
+ { key: "context", part: "back", tag: "path", d: "M4 15 V17.5 Q4 19 5.5 19 H7", stroke: outline ? "currentColor" : "back", stroke_width: core_tokens.content },
47
+ { key: "outgoing", part: "content", tag: "path", d: first, ...outline ? {} : { surface: "paper", stroke: "edge", shadow: true }, stroke_width: outline ? core_tokens.boundary : core_tokens.edge },
48
+ { key: "outgoing-line", part: "content", tag: "path", d: `M${core_number(a + 3)} 7 H${core_number(a + 7.5)}`, stroke: outline ? "currentColor" : "ink", stroke_width: core_tokens.content },
49
+ { key: "reply", part: "front", tag: "path", d: second, ...outline ? {} : { surface: "front", stroke: "edge", shadow: true }, stroke_width: outline ? core_tokens.boundary : core_tokens.edge },
50
+ { key: "reply-line", part: "front", tag: "path", d: `M${core_number(b + 3)} 15.5 H${core_number(b + 7.5)}`, stroke: outline ? "currentColor" : "ink", stroke_width: core_tokens.content }
51
+ ];
52
+ }
53
+ };
54
+
55
+ export {
56
+ session_definition
57
+ };
@@ -0,0 +1,27 @@
1
+ import {
2
+ static_tokens
3
+ } from "./chunk-O3KGMKUU.js";
4
+
5
+ // src/definitions/search.ts
6
+ var search_definition = {
7
+ id: "search",
8
+ label: "\u641C\u7D22",
9
+ layered: true,
10
+ materials: "core",
11
+ motion_enabled: false,
12
+ draw: ({ variant }) => {
13
+ const lens = "M16.75 10.75 A6.25 6.25 0 1 1 4.25 10.75 A6.25 6.25 0 1 1 16.75 10.75 Z";
14
+ if (variant === "outline") return [
15
+ { key: "handle", part: "back", tag: "path", d: "M15.25 15.5 L20 20.25", stroke_width: static_tokens.stroke.outline },
16
+ { key: "lens", part: "front", tag: "path", d: lens, stroke_width: static_tokens.stroke.outline }
17
+ ];
18
+ return [
19
+ { key: "glass", part: "content", tag: "path", d: "M14.75 10.75 A4.25 4.25 0 1 1 6.25 10.75 A4.25 4.25 0 1 1 14.75 10.75 Z", fill: "front", no_stroke: true },
20
+ { key: "contour", part: "front", tag: "path", d: "M20 20.25 L14.92 15.17 A6.25 6.25 0 1 1 6.08 6.33 A6.25 6.25 0 1 1 14.92 15.17", stroke: "currentColor", stroke_width: static_tokens.stroke.color_contour }
21
+ ];
22
+ }
23
+ };
24
+
25
+ export {
26
+ search_definition
27
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ close_definition
6
+ } from "./chunk-76UOULDL.js";
7
+
8
+ // src/react/icons/close.tsx
9
+ var CloseIcon = create_icon(close_definition);
10
+
11
+ export {
12
+ CloseIcon
13
+ };
@@ -0,0 +1,33 @@
1
+ import {
2
+ story_motion
3
+ } from "./chunk-HXOYIUQQ.js";
4
+ import {
5
+ surface_style,
6
+ symbol_nodes
7
+ } from "./chunk-NBGN6WVE.js";
8
+ import {
9
+ default_motion
10
+ } from "./chunk-T6BSLNMN.js";
11
+
12
+ // src/definitions/task-check.ts
13
+ var task_check_definition = {
14
+ id: "task-check",
15
+ label: "\u4EFB\u52A1",
16
+ layered: true,
17
+ motion: default_motion,
18
+ draw: ({ times, amplitude, curve, variant }) => {
19
+ const story = story_motion(times.front, amplitude, curve);
20
+ const trace = 1 - Math.min(1, story.prepare) * 0.72 - Math.min(1, Math.max(0, story.action - story.follow)) * 0.5;
21
+ const clip = +(Math.sin(Math.min(1, story.action / Math.max(amplitude, 1e-3)) * Math.PI) * amplitude * 0.3).toFixed(3);
22
+ const tick = `M8 12 L10.5 14.5 L${10.5 + trace * 5.5} ${14.5 - trace * 5.5}`;
23
+ return [
24
+ { key: "sheet", part: "front", tag: "path", d: variant === "outline" ? "M8 4.5 H7 Q5 4.5 5 6.5 V18.5 Q5 20.5 7 20.5 H17 Q19 20.5 19 18.5 V6.5 Q19 4.5 17 4.5 H16" : "M7 4.5 H17 Q19 4.5 19 6.5 V18.5 Q19 20.5 17 20.5 H7 Q5 20.5 5 18.5 V6.5 Q5 4.5 7 4.5 Z", ...surface_style(variant, "paper") },
25
+ { key: "clip", part: "content", tag: "path", d: `M10 ${3.5 - clip} H14 Q15 ${3.5 - clip} 15 4.5 V6 H9 V4.5 Q9 ${3.5 - clip} 10 ${3.5 - clip} Z`, ...surface_style(variant, "front") },
26
+ ...symbol_nodes("tick", tick, variant)
27
+ ];
28
+ }
29
+ };
30
+
31
+ export {
32
+ task_check_definition
33
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ workspace_definition
6
+ } from "./chunk-S6ZGAMKH.js";
7
+
8
+ // src/react/icons/workspace.tsx
9
+ var WorkspaceIcon = create_icon(workspace_definition);
10
+
11
+ export {
12
+ WorkspaceIcon
13
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ more_definition
6
+ } from "./chunk-NVOG4T3W.js";
7
+
8
+ // src/react/icons/more.tsx
9
+ var MoreIcon = create_icon(more_definition);
10
+
11
+ export {
12
+ MoreIcon
13
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ loader_definition
6
+ } from "./chunk-OCZC6LVQ.js";
7
+
8
+ // src/react/icons/loader.tsx
9
+ var LoaderIcon = create_icon(loader_definition);
10
+
11
+ export {
12
+ LoaderIcon
13
+ };
@@ -0,0 +1,23 @@
1
+ import {
2
+ static_tokens
3
+ } from "./chunk-O3KGMKUU.js";
4
+
5
+ // src/definitions/task.ts
6
+ var task_definition = {
7
+ id: "task",
8
+ label: "\u4EFB\u52A1",
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: "M7.5 12.25 L9 10.75 L11.25 13 L15.5 8.75 L17 10.25 L11.25 16 Z", ...outline ? { stroke_width: static_tokens.stroke.detail } : { fill: "front", no_stroke: true } },
16
+ { key: "contour", part: "back", tag: "path", d: "M8.5 5.5 V4.5 Q8.5 3 10 3 H14 Q15.5 3 15.5 4.5 V5.5 H17 Q19 5.5 19 7.5 V18.5 Q19 20.5 17 20.5 H7 Q5 20.5 5 18.5 V7.5 Q5 5.5 7 5.5 H8.5 Z", stroke: "currentColor", stroke_width: outline ? static_tokens.stroke.outline : static_tokens.stroke.color_contour }
17
+ ];
18
+ }
19
+ };
20
+
21
+ export {
22
+ task_definition
23
+ };
@@ -0,0 +1,25 @@
1
+ import {
2
+ static_tokens
3
+ } from "./chunk-O3KGMKUU.js";
4
+
5
+ // src/definitions/workspace.ts
6
+ var workspace_definition = {
7
+ id: "workspace",
8
+ label: "\u5DE5\u4F5C\u7A7A\u95F4",
9
+ layered: true,
10
+ materials: "core",
11
+ motion_enabled: false,
12
+ draw: ({ variant }) => {
13
+ const outline = variant === "outline";
14
+ const contour = "M8 6.5 V4.75 Q8 3.25 9.5 3.25 H14.5 Q16 3.25 16 4.75 V6.5 H18.75 Q21 6.5 21 8.75 V18.5 Q21 20.75 18.75 20.75 H5.25 Q3 20.75 3 18.5 V8.75 Q3 6.5 5.25 6.5 H8 Z";
15
+ const front = "M6.25 10 H17.75 Q19 10 19 11.25 V17.5 Q19 18.75 17.75 18.75 H6.25 Q5 18.75 5 17.5 V11.25 Q5 10 6.25 10 Z";
16
+ return [
17
+ { key: "front", part: "front", tag: "path", d: front, ...outline ? { stroke_width: static_tokens.stroke.outline } : { fill: "front", no_stroke: true } },
18
+ { key: "contour", part: "back", tag: "path", d: contour, stroke: "currentColor", stroke_width: outline ? static_tokens.stroke.outline : static_tokens.stroke.color_contour }
19
+ ];
20
+ }
21
+ };
22
+
23
+ export {
24
+ workspace_definition
25
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ web_definition
6
+ } from "./chunk-CNJMWVEG.js";
7
+
8
+ // src/react/icons/web.tsx
9
+ var WebIcon = create_icon(web_definition);
10
+
11
+ export {
12
+ WebIcon
13
+ };
@@ -0,0 +1,97 @@
1
+ import {
2
+ default_motion,
3
+ evaluate_motion
4
+ } from "./chunk-T6BSLNMN.js";
5
+
6
+ // src/core/paint.ts
7
+ var paints = {
8
+ currentColor: "currentColor",
9
+ none: "none",
10
+ back: "var(--icon-back, color-mix(in srgb, currentColor 78%, black))",
11
+ front: "var(--icon-front, color-mix(in srgb, currentColor 42%, white))",
12
+ paper: "var(--icon-paper, color-mix(in srgb, currentColor 5%, white))",
13
+ edge: "var(--icon-edge, color-mix(in srgb, currentColor 76%, black))",
14
+ ink: "var(--icon-ink, color-mix(in srgb, currentColor 82%, black))",
15
+ highlight: "var(--icon-highlight, color-mix(in srgb, currentColor 9%, white))"
16
+ };
17
+ function resolve_paint(paint) {
18
+ if (paint === void 0) return void 0;
19
+ if (!Object.hasOwn(paints, paint)) throw new TypeError("\u672A\u77E5\u8272\u5F69\u89D2\u8272");
20
+ return paints[paint];
21
+ }
22
+
23
+ // src/core/evaluate.ts
24
+ function evaluate_icon(definition, progress = 0, variant = "outline", motion_spec = definition.motion ?? default_motion) {
25
+ if (!Number.isFinite(progress)) throw new TypeError("\u56FE\u6807\u8FDB\u5EA6\u5FC5\u987B\u4E3A\u6709\u9650\u6570");
26
+ if (variant !== "outline" && variant !== "layered") throw new TypeError("\u672A\u77E5\u56FE\u6807\u5916\u89C2");
27
+ if (variant === "layered" && !definition.layered) throw new TypeError(`${definition.id} \u4E0D\u652F\u6301 layered`);
28
+ if (definition.view_box && (definition.view_box.length !== 4 || definition.view_box.some((value) => !Number.isFinite(value)) || definition.view_box[2] <= 0 || definition.view_box[3] <= 0 || definition.view_box.some((value) => Math.abs(value) > 128))) throw new TypeError("\u65E0\u6548\u56FE\u6807\u89C6\u7A97");
29
+ if (definition.materials !== void 0 && definition.materials !== true && definition.materials !== false && definition.materials !== "core") throw new TypeError("\u672A\u77E5\u6750\u8D28\u7B56\u7565");
30
+ const frame = evaluate_motion(motion_spec, progress);
31
+ const nodes = definition.draw({ ...frame, progress: definition.continuous ? progress : frame.progress, variant });
32
+ const keys = /* @__PURE__ */ new Set();
33
+ for (const node of nodes) {
34
+ if (node.tag !== "path" || keys.has(node.key)) throw new TypeError("\u56FE\u6807\u8282\u70B9\u5FC5\u987B\u4E3A\u552F\u4E00 path");
35
+ keys.add(node.key);
36
+ if (!node.d || !/^[MmLlHhVvCcSsQqTtAaZz\d\s.,+eE-]+$/.test(node.d) || /NaN|Infinity/.test(node.d)) throw new TypeError("\u65E0\u6548\u56FE\u6807\u8DEF\u5F84");
37
+ if (node.surface !== void 0 && (!definition.materials || !["back", "front", "paper"].includes(node.surface))) throw new TypeError("\u65E0\u6548\u6750\u8D28\u8868\u9762");
38
+ if (node.shadow !== void 0 && (typeof node.shadow !== "boolean" || !definition.materials)) throw new TypeError("\u65E0\u6548\u63A5\u89E6\u9634\u5F71");
39
+ resolve_paint(node.fill);
40
+ resolve_paint(node.stroke);
41
+ if (node.stroke_width !== void 0 && (!Number.isFinite(node.stroke_width) || node.stroke_width < 0 || node.stroke_width > 4)) throw new TypeError("\u65E0\u6548\u7EBF\u91CD");
42
+ if (node.part !== void 0 && !["back", "content", "front", "detail"].includes(node.part)) throw new TypeError("\u672A\u77E5\u56FE\u5C42\u89D2\u8272");
43
+ if (node.opacity !== void 0 && (!Number.isFinite(node.opacity) || node.opacity < 0 || node.opacity > 1)) throw new TypeError("\u65E0\u6548\u900F\u660E\u5EA6");
44
+ }
45
+ return nodes;
46
+ }
47
+
48
+ // src/core/surface_resources.ts
49
+ var study_paints = {
50
+ back: "var(--icon-back, color-mix(in srgb, currentColor 88%, white))",
51
+ edge: "var(--icon-edge, color-mix(in srgb, currentColor 90%, white))",
52
+ front: "var(--icon-front, color-mix(in srgb, currentColor 32%, white))",
53
+ paper: "var(--icon-paper, color-mix(in srgb, currentColor 3%, white))",
54
+ ink: "var(--icon-ink, color-mix(in srgb, currentColor 86%, white))",
55
+ highlight: "var(--icon-highlight, color-mix(in srgb, currentColor 5%, white))"
56
+ };
57
+ var core_paints = {
58
+ back: "var(--icon-back, color-mix(in srgb, currentColor 72%, white))",
59
+ edge: "var(--icon-edge, color-mix(in srgb, currentColor 84%, black))",
60
+ front: "var(--icon-front, color-mix(in srgb, currentColor 28%, white))",
61
+ paper: "var(--icon-paper, color-mix(in srgb, currentColor 6%, white))",
62
+ ink: "var(--icon-ink, color-mix(in srgb, currentColor 90%, black))",
63
+ highlight: "var(--icon-highlight, color-mix(in srgb, currentColor 12%, white))"
64
+ };
65
+ function surface_paint(role, materials = false) {
66
+ const fallback = resolve_paint(role);
67
+ return materials && role ? (materials === "core" ? core_paints : study_paints)[role] ?? fallback : fallback;
68
+ }
69
+ function validate_prefix(prefix) {
70
+ if (typeof prefix !== "string" || !/^[A-Za-z][A-Za-z0-9_-]{0,100}$/.test(prefix)) throw new TypeError("\u6750\u8D28ID\u524D\u7F00\u5FC5\u987B\u662F1\u2013101\u4E2A\u5B89\u5168\u5B57\u6BCD\u6570\u5B57/\u4E0B\u5212\u7EBF/\u8FDE\u5B57\u7B26");
71
+ return prefix;
72
+ }
73
+ function react_prefix(id) {
74
+ return "dc-" + Array.from(id, (char) => char.codePointAt(0).toString(16)).join("-");
75
+ }
76
+ function surface_fill(node, prefix, materials = false) {
77
+ return node.surface ? `url(#${validate_prefix(prefix)}-${node.surface})` : surface_paint(node.fill, materials);
78
+ }
79
+ function surface_defs(prefix, materials = true) {
80
+ validate_prefix(prefix);
81
+ const gradient = (name, stops) => `<linearGradient id="${prefix}-${name}" x1="0" y1="0" x2="0" y2="1" gradientUnits="objectBoundingBox">${stops.map(([offset, color]) => `<stop offset="${offset}" stop-color="${color}"/>`).join("")}</linearGradient>`;
82
+ if (materials === "core") return gradient("back", [["0%", "color-mix(in srgb, currentColor 65%, white)"], ["100%", surface_paint("back", "core")]]) + gradient("front", [["0%", "color-mix(in srgb, currentColor 22%, white)"], ["100%", surface_paint("front", "core")]]) + gradient("paper", [["0%", "color-mix(in srgb, currentColor 3%, white)"], ["100%", surface_paint("paper", "core")]]) + `<filter id="${prefix}-contact" x="-35%" y="-35%" width="170%" height="190%" color-interpolation-filters="sRGB"><feDropShadow dx="0" dy="0.45" stdDeviation="0.4" flood-color="${surface_paint("edge", "core")}" flood-opacity="0.18"/></filter>`;
83
+ const front = surface_paint("front", true);
84
+ const back = surface_paint("back", true);
85
+ const paper = surface_paint("paper", true);
86
+ return gradient("back", [["0%", "color-mix(in srgb, currentColor 60%, white)"], ["100%", back]]) + gradient("front", [["0%", "color-mix(in srgb, currentColor 17%, white)"], ["88%", front], ["89%", "color-mix(in srgb, currentColor 43%, white)"], ["100%", "color-mix(in srgb, currentColor 36%, white)"]]) + gradient("paper", [["0%", "color-mix(in srgb, currentColor 1%, white)"], ["100%", paper]]) + `<filter id="${prefix}-contact" x="-35%" y="-45%" width="170%" height="210%" color-interpolation-filters="sRGB"><feDropShadow dx="0" dy="0.65" stdDeviation="0.65" flood-color="${surface_paint("edge", true)}" flood-opacity="0.2"/></filter>`;
87
+ }
88
+
89
+ export {
90
+ resolve_paint,
91
+ evaluate_icon,
92
+ surface_paint,
93
+ validate_prefix,
94
+ react_prefix,
95
+ surface_fill,
96
+ surface_defs
97
+ };
@@ -0,0 +1,54 @@
1
+ import {
2
+ icon_tokens
3
+ } from "./chunk-O3KGMKUU.js";
4
+
5
+ // src/core/motion.ts
6
+ var parts = ["back", "content", "front", "detail"];
7
+ var default_motion = Object.freeze({ duration: icon_tokens.motion.interaction_duration, cubic_bezier: icon_tokens.motion.curve, amplitude: 1, tracks: Object.freeze({}) });
8
+ function validate_curve(curve) {
9
+ if (!Array.isArray(curve) || curve.length !== 4 || Array.from(curve).some((value) => !Number.isFinite(value) || value < 0 || value > 1)) throw new TypeError("\u8D1D\u585E\u5C14\u63A7\u5236\u70B9\u5FC5\u987B\u4E3A\u56DB\u4E2A 0\u20131 \u6709\u9650\u6570");
10
+ }
11
+ function validate_motion(spec) {
12
+ if (!spec || !Number.isFinite(spec.duration) || spec.duration < 80 || spec.duration > 2e3) throw new TypeError("\u5355\u7A0B\u65F6\u957F\u5FC5\u987B\u5728 80\u20132000ms \u4E4B\u95F4");
13
+ validate_curve(spec.cubic_bezier);
14
+ if (!Number.isFinite(spec.amplitude) || spec.amplitude < 0 || spec.amplitude > 1.5) throw new TypeError("\u529B\u5EA6\u5FC5\u987B\u5728 0\u20131.5 \u4E4B\u95F4");
15
+ if (!spec.tracks || typeof spec.tracks !== "object" || Array.isArray(spec.tracks)) throw new TypeError("\u65E0\u6548\u90E8\u4EF6\u8F68\u9053");
16
+ for (const [part, track] of Object.entries(spec.tracks)) {
17
+ if (!parts.includes(part) || !track || !Number.isFinite(track.start) || !Number.isFinite(track.end) || track.start < 0 || track.end > 1 || track.start >= track.end) throw new TypeError("\u8F68\u9053\u5FC5\u987B\u4E3A\u5DF2\u77E5\u90E8\u4EF6\u4E14 0 \u2264 start < end \u2264 1");
18
+ }
19
+ }
20
+ function unit_time(time) {
21
+ if (!Number.isFinite(time)) throw new TypeError("\u65F6\u95F4\u5FC5\u987B\u4E3A\u6709\u9650\u6570");
22
+ return Math.max(0, Math.min(1, time));
23
+ }
24
+ function cubic_bezier_progress(time, curve) {
25
+ validate_curve(curve);
26
+ const x = unit_time(time);
27
+ if (x === 0 || x === 1) return x;
28
+ const sample = (t, a, b) => 3 * (1 - t) ** 2 * t * a + 3 * (1 - t) * t ** 2 * b + t ** 3;
29
+ let low = 0, high = 1;
30
+ for (let i = 0; i < 32; i++) {
31
+ const middle = (low + high) / 2;
32
+ if (sample(middle, curve[0], curve[2]) < x) low = middle;
33
+ else high = middle;
34
+ }
35
+ return sample((low + high) / 2, curve[1], curve[3]);
36
+ }
37
+ function evaluate_motion(spec, time) {
38
+ validate_motion(spec);
39
+ const linear = unit_time(time);
40
+ const track_time = (part) => {
41
+ const track = spec.tracks[part];
42
+ return unit_time(track ? (linear - track.start) / (track.end - track.start) : linear);
43
+ };
44
+ const times = { back: track_time("back"), content: track_time("content"), front: track_time("front"), detail: track_time("detail") };
45
+ const track_progress = (part) => cubic_bezier_progress(times[part], spec.cubic_bezier);
46
+ return { times, curve: spec.cubic_bezier, progress: cubic_bezier_progress(linear, spec.cubic_bezier), amplitude: spec.amplitude, parts: { back: track_progress("back"), content: track_progress("content"), front: track_progress("front"), detail: track_progress("detail") } };
47
+ }
48
+
49
+ export {
50
+ default_motion,
51
+ validate_motion,
52
+ cubic_bezier_progress,
53
+ evaluate_motion
54
+ };
@@ -0,0 +1,24 @@
1
+ import {
2
+ static_tokens
3
+ } from "./chunk-O3KGMKUU.js";
4
+
5
+ // src/definitions/inbox.ts
6
+ var inbox_definition = {
7
+ id: "inbox",
8
+ label: "\u6536\u4EF6\u7BB1",
9
+ layered: true,
10
+ materials: "core",
11
+ motion_enabled: false,
12
+ draw: ({ variant }) => {
13
+ const tray = "M5 6.5 H8 V8 Q8 9.5 9.5 9.5 H14.5 Q16 9.5 16 8 V6.5 H19 Q21 6.5 21 8.5 V17.5 Q21 19.5 19 19.5 H5 Q3 19.5 3 17.5 V8.5 Q3 6.5 5 6.5 Z";
14
+ if (variant === "outline") return [{ key: "tray", part: "front", tag: "path", d: tray, stroke_width: static_tokens.stroke.outline }];
15
+ return [
16
+ { key: "plane", part: "content", tag: "path", d: "M6.25 11.5 H17.75 Q19 11.5 19 12.75 V16.25 Q19 17.5 17.75 17.5 H6.25 Q5 17.5 5 16.25 V12.75 Q5 11.5 6.25 11.5 Z", fill: "front", no_stroke: true },
17
+ { key: "tray", part: "front", tag: "path", d: tray, stroke: "currentColor", stroke_width: static_tokens.stroke.color_contour }
18
+ ];
19
+ }
20
+ };
21
+
22
+ export {
23
+ inbox_definition
24
+ };
@@ -0,0 +1,24 @@
1
+ import {
2
+ static_tokens
3
+ } from "./chunk-O3KGMKUU.js";
4
+
5
+ // src/definitions/settings.ts
6
+ var settings_definition = {
7
+ id: "settings",
8
+ label: "\u8BBE\u7F6E",
9
+ layered: true,
10
+ materials: "core",
11
+ motion_enabled: false,
12
+ draw: ({ variant }) => {
13
+ const outline = variant === "outline";
14
+ const contour = "M8.047 6.26 L9.005 5.706 Q9.265 5.556 9.347 5.268 L9.871 3.422 Q9.953 3.133 10.253 3.133 H13.747 Q14.047 3.133 14.129 3.422 L14.653 5.268 Q14.735 5.556 14.995 5.706 L15.953 6.26 Q16.213 6.41 16.504 6.336 L18.364 5.867 Q18.655 5.794 18.805 6.054 L20.552 9.08 Q20.702 9.339 20.493 9.555 L19.157 10.932 Q18.948 11.147 18.948 11.447 V12.553 Q18.948 12.853 19.157 13.068 L20.493 14.445 Q20.702 14.661 20.552 14.92 L18.805 17.946 Q18.655 18.206 18.364 18.133 L16.504 17.664 Q16.213 17.59 15.953 17.74 L14.995 18.294 Q14.735 18.444 14.653 18.732 L14.129 20.578 Q14.047 20.867 13.747 20.867 H10.253 Q9.953 20.867 9.871 20.578 L9.347 18.732 Q9.265 18.444 9.005 18.294 L8.047 17.74 Q7.787 17.59 7.496 17.664 L5.636 18.133 Q5.345 18.206 5.195 17.946 L3.448 14.92 Q3.298 14.661 3.507 14.445 L4.843 13.068 Q5.052 12.853 5.052 12.553 V11.447 Q5.052 11.147 4.843 10.932 L3.507 9.555 Q3.298 9.339 3.448 9.08 L5.195 6.054 Q5.345 5.794 5.636 5.867 L7.496 6.336 Q7.787 6.41 8.047 6.26 Z";
15
+ return [
16
+ { key: "front", part: "front", tag: "path", d: "M15.25 12 A3.25 3.25 0 1 1 8.75 12 A3.25 3.25 0 1 1 15.25 12 Z", ...outline ? { stroke_width: static_tokens.stroke.outline } : { fill: "front", no_stroke: true } },
17
+ { key: "contour", part: "back", tag: "path", d: contour, stroke: "currentColor", stroke_width: outline ? static_tokens.stroke.outline : static_tokens.stroke.color_contour }
18
+ ];
19
+ }
20
+ };
21
+
22
+ export {
23
+ settings_definition
24
+ };
@@ -0,0 +1,29 @@
1
+ import {
2
+ static_tokens
3
+ } from "./chunk-O3KGMKUU.js";
4
+
5
+ // src/definitions/folder.ts
6
+ var folder_definition = {
7
+ id: "folder",
8
+ label: "\u6587\u4EF6\u5939",
9
+ layered: true,
10
+ materials: "core",
11
+ motion_enabled: false,
12
+ draw: ({ variant }) => {
13
+ const outline = variant === "outline";
14
+ const rear = "M5.25 4.25 H8.5 Q9.2 4.25 9.7 4.75 L11.25 6.3 H18.75 Q21 6.3 21 8.55 V17.75 Q21 20 18.75 20 H5.25 Q3 20 3 17.75 V6.5 Q3 4.25 5.25 4.25 Z";
15
+ const front = outline ? "M5 11 Q5 9.75 6.25 9.75 H17.75 Q19 9.75 19 11" : "M6.25 9.75 H17.75 Q19 9.75 19 11 V16.75 Q19 18 17.75 18 H6.25 Q5 18 5 16.75 V11 Q5 9.75 6.25 9.75 Z";
16
+ if (outline) return [
17
+ { key: "back", part: "back", tag: "path", d: rear, stroke_width: static_tokens.stroke.outline },
18
+ { key: "front", part: "front", tag: "path", d: front, stroke_width: static_tokens.stroke.outline }
19
+ ];
20
+ return [
21
+ { key: "front", part: "front", tag: "path", d: front, fill: "front", no_stroke: true },
22
+ { key: "back", part: "back", tag: "path", d: rear, stroke: "currentColor", stroke_width: static_tokens.stroke.color_contour }
23
+ ];
24
+ }
25
+ };
26
+
27
+ export {
28
+ folder_definition
29
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ search_definition
6
+ } from "./chunk-PDJIQEFH.js";
7
+
8
+ // src/react/icons/search.tsx
9
+ var SearchIcon = create_icon(search_definition);
10
+
11
+ export {
12
+ SearchIcon
13
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ create_icon
3
+ } from "./chunk-WWHMK4UP.js";
4
+ import {
5
+ folder_definition
6
+ } from "./chunk-VWZK6FRQ.js";
7
+
8
+ // src/react/icons/folder.tsx
9
+ var FolderIcon = create_icon(folder_definition);
10
+
11
+ export {
12
+ FolderIcon
13
+ };