@manohub/icon 1.1.4 → 1.2.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 (194) hide show
  1. package/README.md +90 -22
  2. package/dist/glyphs/base/ai.d.ts +2 -0
  3. package/dist/glyphs/base/ai.js +3 -0
  4. package/dist/glyphs/base/alert-circle.d.ts +2 -0
  5. package/dist/glyphs/base/alert-circle.js +2 -0
  6. package/dist/glyphs/base/alert.d.ts +2 -0
  7. package/dist/glyphs/base/alert.js +2 -0
  8. package/dist/glyphs/base/apps.d.ts +2 -0
  9. package/dist/glyphs/base/apps.js +2 -0
  10. package/dist/glyphs/base/archive.d.ts +2 -0
  11. package/dist/glyphs/base/archive.js +2 -0
  12. package/dist/glyphs/base/back.d.ts +2 -0
  13. package/dist/glyphs/base/back.js +2 -0
  14. package/dist/glyphs/base/branch.d.ts +2 -0
  15. package/dist/glyphs/base/branch.js +2 -0
  16. package/dist/glyphs/base/calendar.d.ts +2 -0
  17. package/dist/glyphs/base/calendar.js +2 -0
  18. package/dist/glyphs/base/check-circle.d.ts +2 -0
  19. package/dist/glyphs/base/check-circle.js +2 -0
  20. package/dist/glyphs/base/check.d.ts +2 -0
  21. package/dist/glyphs/base/check.js +2 -0
  22. package/dist/glyphs/base/chevron-down.d.ts +2 -0
  23. package/dist/glyphs/base/chevron-down.js +2 -0
  24. package/dist/glyphs/base/chevron-left.d.ts +2 -0
  25. package/dist/glyphs/base/chevron-left.js +2 -0
  26. package/dist/glyphs/base/chevron-right.d.ts +2 -0
  27. package/dist/glyphs/base/chevron-right.js +2 -0
  28. package/dist/glyphs/base/chevron-up.d.ts +2 -0
  29. package/dist/glyphs/base/chevron-up.js +2 -0
  30. package/dist/glyphs/base/chevrons-left.d.ts +2 -0
  31. package/dist/glyphs/base/chevrons-left.js +4 -0
  32. package/dist/glyphs/base/chevrons-right.d.ts +2 -0
  33. package/dist/glyphs/base/chevrons-right.js +2 -0
  34. package/dist/glyphs/base/clock.d.ts +2 -0
  35. package/dist/glyphs/base/clock.js +2 -0
  36. package/dist/glyphs/base/close-circle.d.ts +2 -0
  37. package/dist/glyphs/base/close-circle.js +2 -0
  38. package/dist/glyphs/base/close.d.ts +2 -0
  39. package/dist/glyphs/base/close.js +2 -0
  40. package/dist/glyphs/base/copy.d.ts +2 -0
  41. package/dist/glyphs/base/copy.js +2 -0
  42. package/dist/glyphs/base/delete.d.ts +2 -0
  43. package/dist/glyphs/base/delete.js +2 -0
  44. package/dist/glyphs/base/download.d.ts +2 -0
  45. package/dist/glyphs/base/download.js +2 -0
  46. package/dist/glyphs/base/drag-handle.d.ts +2 -0
  47. package/dist/glyphs/base/drag-handle.js +4 -0
  48. package/dist/glyphs/base/edit.d.ts +2 -0
  49. package/dist/glyphs/base/edit.js +2 -0
  50. package/dist/glyphs/base/external-link.d.ts +2 -0
  51. package/dist/glyphs/base/external-link.js +2 -0
  52. package/dist/glyphs/base/favorite-filled.d.ts +2 -0
  53. package/dist/glyphs/base/favorite-filled.js +2 -0
  54. package/dist/glyphs/base/favorite.d.ts +2 -0
  55. package/dist/glyphs/base/favorite.js +2 -0
  56. package/dist/glyphs/base/file-code.d.ts +2 -0
  57. package/dist/glyphs/base/file-code.js +2 -0
  58. package/dist/glyphs/base/file-json.d.ts +2 -0
  59. package/dist/glyphs/base/file-json.js +2 -0
  60. package/dist/glyphs/base/file-text.d.ts +2 -0
  61. package/dist/glyphs/base/file-text.js +2 -0
  62. package/dist/glyphs/base/file.d.ts +2 -0
  63. package/dist/glyphs/base/file.js +2 -0
  64. package/dist/glyphs/base/filter.d.ts +2 -0
  65. package/dist/glyphs/base/filter.js +2 -0
  66. package/dist/glyphs/base/folder-open.d.ts +2 -0
  67. package/dist/glyphs/base/folder-open.js +2 -0
  68. package/dist/glyphs/base/folder.d.ts +2 -0
  69. package/dist/glyphs/base/folder.js +2 -0
  70. package/dist/glyphs/base/help.d.ts +2 -0
  71. package/dist/glyphs/base/help.js +2 -0
  72. package/dist/glyphs/base/history.d.ts +2 -0
  73. package/dist/glyphs/base/history.js +2 -0
  74. package/dist/glyphs/base/home.d.ts +2 -0
  75. package/dist/glyphs/base/home.js +2 -0
  76. package/dist/glyphs/base/image.d.ts +2 -0
  77. package/dist/glyphs/base/image.js +3 -0
  78. package/dist/glyphs/base/index.d.ts +172 -0
  79. package/dist/glyphs/base/index.js +172 -0
  80. package/dist/glyphs/base/info-circle.d.ts +2 -0
  81. package/dist/glyphs/base/info-circle.js +4 -0
  82. package/dist/glyphs/base/info.d.ts +2 -0
  83. package/dist/glyphs/base/info.js +8 -0
  84. package/dist/glyphs/base/key.d.ts +2 -0
  85. package/dist/glyphs/base/key.js +2 -0
  86. package/dist/glyphs/base/link.d.ts +2 -0
  87. package/dist/glyphs/base/link.js +2 -0
  88. package/dist/glyphs/base/list.d.ts +2 -0
  89. package/dist/glyphs/base/list.js +2 -0
  90. package/dist/glyphs/base/loading.d.ts +2 -0
  91. package/dist/glyphs/base/loading.js +2 -0
  92. package/dist/glyphs/base/lock.d.ts +2 -0
  93. package/dist/glyphs/base/lock.js +2 -0
  94. package/dist/glyphs/base/logout.d.ts +2 -0
  95. package/dist/glyphs/base/logout.js +2 -0
  96. package/dist/glyphs/base/menu.d.ts +2 -0
  97. package/dist/glyphs/base/menu.js +3 -0
  98. package/dist/glyphs/base/minus.d.ts +2 -0
  99. package/dist/glyphs/base/minus.js +2 -0
  100. package/dist/glyphs/base/more.d.ts +2 -0
  101. package/dist/glyphs/base/more.js +2 -0
  102. package/dist/glyphs/base/notification.d.ts +2 -0
  103. package/dist/glyphs/base/notification.js +2 -0
  104. package/dist/glyphs/base/package.d.ts +2 -0
  105. package/dist/glyphs/base/package.js +2 -0
  106. package/dist/glyphs/base/page-title.d.ts +2 -0
  107. package/dist/glyphs/base/page-title.js +5 -0
  108. package/dist/glyphs/base/pause-filled.d.ts +2 -0
  109. package/dist/glyphs/base/pause-filled.js +2 -0
  110. package/dist/glyphs/base/pause.d.ts +2 -0
  111. package/dist/glyphs/base/pause.js +2 -0
  112. package/dist/glyphs/base/play-filled.d.ts +2 -0
  113. package/dist/glyphs/base/play-filled.js +2 -0
  114. package/dist/glyphs/base/play.d.ts +2 -0
  115. package/dist/glyphs/base/play.js +6 -0
  116. package/dist/glyphs/base/plug.d.ts +2 -0
  117. package/dist/glyphs/base/plug.js +2 -0
  118. package/dist/glyphs/base/plus-circle.d.ts +2 -0
  119. package/dist/glyphs/base/plus-circle.js +2 -0
  120. package/dist/glyphs/base/plus.d.ts +2 -0
  121. package/dist/glyphs/base/plus.js +2 -0
  122. package/dist/glyphs/base/preview.d.ts +2 -0
  123. package/dist/glyphs/base/preview.js +2 -0
  124. package/dist/glyphs/base/refresh.d.ts +2 -0
  125. package/dist/glyphs/base/refresh.js +2 -0
  126. package/dist/glyphs/base/save.d.ts +2 -0
  127. package/dist/glyphs/base/save.js +2 -0
  128. package/dist/glyphs/base/search.d.ts +2 -0
  129. package/dist/glyphs/base/search.js +2 -0
  130. package/dist/glyphs/base/settings.d.ts +2 -0
  131. package/dist/glyphs/base/settings.js +2 -0
  132. package/dist/glyphs/base/shield-alert.d.ts +2 -0
  133. package/dist/glyphs/base/shield-alert.js +2 -0
  134. package/dist/glyphs/base/shield-check.d.ts +2 -0
  135. package/dist/glyphs/base/shield-check.js +2 -0
  136. package/dist/glyphs/base/shield.d.ts +2 -0
  137. package/dist/glyphs/base/shield.js +2 -0
  138. package/dist/glyphs/base/table.d.ts +2 -0
  139. package/dist/glyphs/base/table.js +2 -0
  140. package/dist/glyphs/base/tag.d.ts +2 -0
  141. package/dist/glyphs/base/tag.js +2 -0
  142. package/dist/glyphs/base/terminal.d.ts +2 -0
  143. package/dist/glyphs/base/terminal.js +2 -0
  144. package/dist/glyphs/base/tool.d.ts +2 -0
  145. package/dist/glyphs/base/tool.js +2 -0
  146. package/dist/glyphs/base/unlock.d.ts +2 -0
  147. package/dist/glyphs/base/unlock.js +2 -0
  148. package/dist/glyphs/base/upload.d.ts +2 -0
  149. package/dist/glyphs/base/upload.js +2 -0
  150. package/dist/glyphs/base/user.d.ts +2 -0
  151. package/dist/glyphs/base/user.js +2 -0
  152. package/dist/glyphs/base/users.d.ts +2 -0
  153. package/dist/glyphs/base/users.js +2 -0
  154. package/dist/glyphs/base/workbench.d.ts +2 -0
  155. package/dist/glyphs/base/workbench.js +2 -0
  156. package/dist/glyphs/business/agent.d.ts +2 -0
  157. package/dist/glyphs/business/agent.js +3 -0
  158. package/dist/glyphs/business/application.d.ts +2 -0
  159. package/dist/glyphs/business/application.js +3 -0
  160. package/dist/glyphs/business/client.d.ts +2 -0
  161. package/dist/glyphs/business/client.js +3 -0
  162. package/dist/glyphs/business/compose.d.ts +2 -0
  163. package/dist/glyphs/business/compose.js +5 -0
  164. package/dist/glyphs/business/exposure.d.ts +2 -0
  165. package/dist/glyphs/business/exposure.js +3 -0
  166. package/dist/{business-glyphs.d.ts → glyphs/business/index.d.ts} +18 -1
  167. package/dist/glyphs/business/index.js +43 -0
  168. package/dist/glyphs/business/log.d.ts +2 -0
  169. package/dist/glyphs/business/log.js +3 -0
  170. package/dist/glyphs/business/mcp.d.ts +2 -0
  171. package/dist/glyphs/business/mcp.js +3 -0
  172. package/dist/glyphs/business/openapi.d.ts +2 -0
  173. package/dist/glyphs/business/openapi.js +3 -0
  174. package/dist/glyphs/business/schema.d.ts +2 -0
  175. package/dist/glyphs/business/schema.js +5 -0
  176. package/dist/glyphs/business/server.d.ts +2 -0
  177. package/dist/glyphs/business/server.js +3 -0
  178. package/dist/glyphs/business/service.d.ts +2 -0
  179. package/dist/glyphs/business/service.js +3 -0
  180. package/dist/{glyphs.d.ts → glyphs/index.d.ts} +10 -4
  181. package/dist/glyphs/index.js +62 -0
  182. package/dist/icon-base.d.ts +81 -0
  183. package/dist/icon-base.js +44 -0
  184. package/dist/icon-render.d.ts +19 -0
  185. package/dist/icon-render.js +55 -0
  186. package/dist/icon.d.ts +12 -4
  187. package/dist/icon.js +14 -51
  188. package/dist/index.d.ts +10 -4
  189. package/dist/index.js +10 -4
  190. package/dist/svg.d.ts +1 -1
  191. package/dist/svg.js +4 -4
  192. package/package.json +15 -3
  193. package/dist/business-glyphs.js +0 -41
  194. package/dist/glyphs.js +0 -159
package/README.md CHANGED
@@ -13,25 +13,36 @@ TS 源码、**不含 JSX**,`tsc` 一个命令直出 `dist`(不引 vite、不
13
13
 
14
14
  抽出后依赖方向变为:`@manohub/ui` 与 `@manohub/kit` **都依赖** `@manohub/icon`,图标成为两侧共享的底座,不再有"骨架层依赖组件库"的倒挂。
15
15
 
16
- ## 三个入口
16
+ ## 四个入口
17
17
 
18
18
  | 入口 | 内容 | 是否引 `vue` |
19
19
  |---|---|---|
20
- | `@manohub/icon` | `Icon` 组件(`name` + 默认插槽)+ 图标表 + 字符串渲染器 | 是(组件那半边) |
21
- | `@manohub/icon/glyphs` | 图标表 + `renderIconSvg()` + `IconNameList` | **否** |
20
+ | `@manohub/icon` | `Icon`(按名字)+ `GlyphIcon`(按片段)+ 逐图标 `*Glyph` + 图标表 + 字符串渲染器 | 是(组件那半边) |
21
+ | `@manohub/icon/base` | `GlyphIcon`(只吃片段,**不引图标表**) | 是 |
22
+ | `@manohub/icon/glyphs` | 图标表 + 逐图标 `*Glyph` + `glyphs/base/<name>` / `glyphs/business/<name>` 单条默认导出 + `renderIconSvg()` / `renderGlyphSvg()` + `IconNameList` | **否** |
22
23
  | `@manohub/icon/svg` | SVG 归一(`svgToFragment()` / `buildTableSource()` / 查重),给构建期用 | **否** |
23
24
 
24
25
  ### 纯 JS 用法(不装 Vue、不打包、静态页也能用)
25
26
 
27
+ 按需:只带 `search` 一条片段。
28
+
26
29
  ```js
27
- import { renderIconSvg, ICON_GLYPHS } from '@manohub/icon/glyphs'
30
+ import { renderGlyphSvg, searchGlyph } from '@manohub/icon/glyphs'
28
31
 
29
- el.innerHTML = renderIconSvg('refresh', { size: 18, class: 'text-primary' })
32
+ el.innerHTML = renderGlyphSvg(searchGlyph, { size: 18, class: 'text-primary' })
30
33
  // 或者只要片段,自己包一层容器:
31
- el.innerHTML = `<svg viewBox="0 0 24 24" width="18" height="18">${ICON_GLYPHS.refresh}</svg>`
34
+ el.innerHTML = `<svg viewBox="0 0 24 24" width="18" height="18">${searchGlyph}</svg>`
32
35
  ```
33
36
 
34
- `renderIconSvg` 产出的属性(`viewBox` / `data-slot` / `fill` / `stroke` / `stroke-width` / 圆头端点 / 基底内联样式)与 `<Icon>` 组件**逐字一致**,两版可以互相替换。
37
+ 按名字取(会带上整张 `ICON_GLYPHS` 表):
38
+
39
+ ```js
40
+ import { renderIconSvg } from '@manohub/icon/glyphs'
41
+
42
+ el.innerHTML = renderIconSvg('refresh', { size: 18, class: 'text-primary' })
43
+ ```
44
+
45
+ `renderIconSvg` / `renderGlyphSvg` 产出的属性(`viewBox` / `data-slot` / `fill` / `stroke` / `stroke-width` / 圆头端点 / 基底内联样式)与 `<Icon>` / `<GlyphIcon>` 组件**逐字一致**,三版可以互相替换。
35
46
 
36
47
  ### Vue 组件用法
37
48
 
@@ -54,6 +65,52 @@ import { Icon, IconNameList, type IconName } from '@manohub/icon'
54
65
  - `style`:附加内联样式,会与基底样式合并(同键以消费方传入的为准)
55
66
  - 图标为 24×24 viewBox 的 SVG 片段,`stroke` 继承 `currentColor`(随文字颜色)
56
67
 
68
+ ### 按需引入(tree-shaking)
69
+
70
+ `<Icon name="…">` 需要整张名字表才能查找,**只用一个图标时也会带上全部 87 个字形**(约 66 KB 路径数据)。
71
+ 只要一个或几个图标时,用 `GlyphIcon` + 对应的 `*Glyph`:
72
+
73
+ ```tsx
74
+ import { GlyphIcon, searchGlyph } from '@manohub/icon'
75
+
76
+ <GlyphIcon glyph={searchGlyph} size={16} class="text-primary" />
77
+ ```
78
+
79
+ `*Glyph` 是命名导出,未使用的字形、`Icon` 与 `ICON_GLYPHS` 都会被 bundler 摇掉;`GlyphIcon` 本身
80
+ 不 import 图标表。需要完全绕开根入口(例如不想让 bundler 处理根 barrel)时:
81
+
82
+ ```tsx
83
+ import { GlyphIcon } from '@manohub/icon/base'
84
+ import { searchGlyph } from '@manohub/icon/glyphs'
85
+ ```
86
+
87
+ 业务字形(11 条)还有**单文件入口**——每条一个模块,连 tree-shaking 都不依赖:
88
+
89
+ ```tsx
90
+ import serviceGlyph from '@manohub/icon/glyphs/business/service'
91
+ <GlyphIcon glyph={serviceGlyph} />
92
+ ```
93
+
94
+ 通用字形(87 − 11 = 76 条)同样有单文件入口,文件名就是图标名(kebab-case):
95
+
96
+ ```tsx
97
+ import chevronDownGlyph from '@manohub/icon/glyphs/base/chevron-down'
98
+ <GlyphIcon glyph={chevronDownGlyph} />
99
+ ```
100
+
101
+ 命名换算:kebab-case → camelCase + `Glyph`(`chevron-left` → `chevronLeftGlyph`、`delete` → `deleteGlyph`、
102
+ `package` → `packageGlyph`)。动态名字但只允许一个子集时,自己组一张小表 —— 只打包用到的那几条:
103
+
104
+ ```ts
105
+ import { closeGlyph, searchGlyph } from '@manohub/icon'
106
+
107
+ export const APP_ICONS = { close: closeGlyph, search: searchGlyph }
108
+ // 模板里:<GlyphIcon :glyph="APP_ICONS[name]" />
109
+ ```
110
+
111
+ `GlyphIcon` 的 props:`glyph`(24 网格片段串)、`size`、`class`;默认插槽同样可用,**槽里有内容时以槽为准**。
112
+ 容器口径(`viewBox` / `fill` / `stroke` / 圆头端点 / 基底内联样式)与 `<Icon>` 完全一致。
113
+
57
114
  ## 交付形态:TS 源码 + `tsc` 直出 dist
58
115
 
59
116
  ```bash
@@ -62,6 +119,8 @@ pnpm --filter @manohub/icon type-check # tsc --noEmit -p tsconfig.json
62
119
  ```
63
120
 
64
121
  - `exports` 指向 `dist`(产物分发,与 `ui` / `kit` 一致),消费方无需任何别名或 `paths` 映射。
122
+ - **源码相对导入写 `.ts` 后缀**;`rewriteRelativeImportExtensions` 在 `dist/*.js` 里统一改写成 `.js`
123
+ (Node ESM 可直接解析)。`dist/*.d.ts` 保留 `.ts` 说明符,TypeScript 消费方按扩展名替换解析到同名 `.d.ts`。
65
124
  - **不需要 vite、也不需要 vue-tsc**:源码里没有 JSX(图标数据是字符串,组件用 `h()` + `innerHTML` 渲染),
66
125
  没有 CSS、没有第三方运行时依赖,所以纯 `tsc` 就能同时产出 `dist/*.js` 与 `dist/*.d.ts`。
67
126
  - **类型是编译产出的**(`dist/*.d.ts`),不是手写声明 —— 新增图标时类型自动跟着内容表走,不会漂。
@@ -83,25 +142,28 @@ pnpm --filter @manohub/icon type-check # tsc --noEmit -p tsconfig.json
83
142
  ## 扩展:项目自带字形
84
143
 
85
144
  通用字形缺了就补本包;**本项目自己的业务字形**(菜单 / 页头专属的**单色**字形)不用等本包发版 ——
86
- 把图形直接写进 `<Icon>` 的**插槽**:
145
+ 把图形直接写进 `<GlyphIcon>` 的 `glyph` 或**插槽**(`GlyphIcon` 不引图标表,项目字形不会连带整表):
87
146
 
88
147
  ```tsx
89
- import { Icon } from '@manohub/icon'
148
+ import { GlyphIcon } from '@manohub/icon'
90
149
 
91
150
  // vnode:最常用的形式
92
- <Icon><path d="M2 2h6v6H2z" /></Icon>
93
- <Icon><g fill="currentColor" fill-rule="evenodd"><path d="…" /><path d="…" /></g></Icon>
151
+ <GlyphIcon><path d="M2 2h6v6H2z" /></GlyphIcon>
152
+ <GlyphIcon><g fill="currentColor" fill-rule="evenodd"><path d="…" /><path d="…" /></g></GlyphIcon>
94
153
 
95
154
  // 片段串:从设计稿 / 生成器贴过来
96
- <Icon>{'<path d="M2 2h6v6H2z"/>'}</Icon>
155
+ <GlyphIcon glyph={'<path d="M2 2h6v6H2z"/>'} />
97
156
  ```
98
157
 
158
+ `<Icon>` 的插槽仍然可用(不带 `name` 时不会查表),但 `Icon` 模块本身 import 了名字表;项目字形
159
+ 不需要名字查找,优先用 `GlyphIcon`。
160
+
99
161
  | 口径 | 说明 |
100
162
  |---|---|
101
- | **优先** | 槽里有内容就以槽为准(显式给的图形胜过 `name`);两者都不给 → 空图标,不抛错 |
102
- | **容器** | 由 `<Icon>` 统一给:`viewBox="0 0 24 24"`、`fill="none"`、`stroke="currentColor"`、圆头端点、`size`、基底内联样式 —— 所以槽里的图形请按 **24 网格**给;原稿是 16 画板就自己包一层 `<g transform="scale(1.5)">` |
163
+ | **优先** | 槽里有内容就以槽为准(显式给的图形胜过 `glyph` / `name`);两者都不给 → 空图标,不抛错 |
164
+ | **容器** | 由 `<GlyphIcon>` / `<Icon>` 统一给:`viewBox="0 0 24 24"`、`fill="none"`、`stroke="currentColor"`、圆头端点、`size`、基底内联样式 —— 所以槽里的图形请按 **24 网格**给;原稿是 16 画板就自己包一层 `<g transform="scale(1.5)">` |
103
165
  | **颜色** | 靠继承:写 `currentColor`,别写死色值 |
104
- | **类型** | 槽内容不受约束(vnode / 字符串都行);`name` 仍受 `IconName` 约束,拼错编译期报错 |
166
+ | **类型** | 槽内容不受约束(vnode / 字符串都行);`glyph` 是片段串;`name` 仍受 `IconName` 约束,拼错编译期报错 |
105
167
 
106
168
  自带字形要**集中在项目自己的一个文件里**(一处定义、多处引用),别在页面里就地画裸 `<svg>` ——
107
169
  理由与契约见 `@manohub/kit/CONTRACT.md` L1.5-6。
@@ -147,16 +209,22 @@ import { MY_GLYPHS } from './icons'
147
209
 
148
210
  ## 维护
149
211
 
150
- 内容表按**出处**分成两张,合并后才是完整的 `ICON_GLYPHS`:
212
+ 内容按**出处**分在 `glyphs/base/` 与 `glyphs/business/` 两个目录;每条字形一个模块(默认导出片段),由 `glyphs/index.ts` 汇总成全量表并保留 `*Glyph` 命名导出:
151
213
 
152
214
  | 文件 | 内容 | 出处 |
153
215
  |---|---|---|
154
- | `src/glyphs.ts` | `ICON_GLYPHS` 主体 | 路径取自 [lucide](https://lucide.dev)(ISC License);少量自绘条目在条目上方注明出处 |
155
- | `src/business-glyphs.ts` | `BUSINESS_GLYPHS`(业务导航字形) | 设计交付的设计稿原稿(由「主题色 / 反白 / 中性」多姿态稿归并而来) |
156
-
157
- `glyphs.ts` 表尾以 `...BUSINESS_GLYPHS` 展开合并,`IconName` / `IconNameList` 与类型声明都由键自动推导,
158
- **无需改别处**;改完重新 `build` 即可。加图标时选对表:通用 UI 字形进 `glyphs.ts`,
159
- **设计稿给的业务字形进 `business-glyphs.ts`**(后者只追加/替换条目,不动结构);设计交净稿时只替换该文件里的对应条目。
216
+ | `src/glyphs/base/` | 每条通用字形一个 `<name>.ts`(默认导出片段)+ `index.ts` 汇总 `BASE_GLYPHS` 与命名导出 | 路径取自 [lucide](https://lucide.dev)(ISC License);少量自绘条目在条目上方注明出处 |
217
+ | `src/glyphs/business/` | 每条业务字形一个 `<name>.ts`(默认导出片段)+ `index.ts` 汇总 `BUSINESS_GLYPHS` 与命名导出 | 设计交付的设计稿原稿(由「主题色 / 反白 / 中性」多姿态稿归并而来) |
218
+ | `src/glyphs/index.ts` | 合并两张表成 `ICON_GLYPHS`、推导类型、提供字符串渲染器 | — |
219
+
220
+ `base/index.ts` 定义 `BASE_GLYPHS`,`business/index.ts` 定义 `BUSINESS_GLYPHS`,顶层 `index.ts`
221
+ 以 `...BASE_GLYPHS` / `...BUSINESS_GLYPHS` 合并成 `ICON_GLYPHS`;`IconName` / `IconNameList` 与类型声明
222
+ 都由键自动推导,**无需改别处**;改完重新 `build` 即可。
223
+ 加图标时选对目录:通用 UI 字形进 `base/`,**设计稿给的业务字形进 `business/`**
224
+ (新建 `<name>.ts`,再在该目录的 `index.ts` 加导入、命名导出与表项);顶层 `index.ts` 不用动。
225
+ 设计交净稿时只替换 `business/` 下对应文件。新增条目 = 单文件模块 + 子 `index.ts` 的导入 / 命名导出 / 表项;
226
+ 命名换算为 kebab-case → camelCase + `Glyph`,保留字(`delete` / `package`)因此也能安全导出。
227
+ `IconNameList` 与表键保持原顺序,不要重排。
160
228
 
161
229
  约定:片段内不写容器属性(`viewBox`/`width`/`stroke` 由渲染方统一给);线性图标继承 `currentColor`;实心图标显式 `fill="currentColor" stroke="none"`。
162
230
  业务字形另有两条:**坐标**统一包一层 `<g transform="scale(1.5)">`(设计稿画板是 16×16,映射到 24 网格,路径数据不改写);
@@ -0,0 +1,2 @@
1
+ declare const aiGlyph = "<path d=\"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z\"/><path d=\"M20 3v4\"/><path d=\"M22 5h-4\"/><path d=\"M4 17v2\"/><path d=\"M5 18H3\"/>";
2
+ export default aiGlyph;
@@ -0,0 +1,3 @@
1
+ // ===== 状态 / 业务 =====
2
+ const aiGlyph = '<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/><path d="M20 3v4"/><path d="M22 5h-4"/><path d="M4 17v2"/><path d="M5 18H3"/>';
3
+ export default aiGlyph;
@@ -0,0 +1,2 @@
1
+ declare const alertCircleGlyph = "<circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"12\" x2=\"12\" y1=\"8\" y2=\"12\"/><line x1=\"12\" x2=\"12.01\" y1=\"16\" y2=\"16\"/>";
2
+ export default alertCircleGlyph;
@@ -0,0 +1,2 @@
1
+ const alertCircleGlyph = '<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>';
2
+ export default alertCircleGlyph;
@@ -0,0 +1,2 @@
1
+ declare const alertGlyph = "<path d=\"M12 5v9\"/><path d=\"M12 19h.01\"/>";
2
+ export default alertGlyph;
@@ -0,0 +1,2 @@
1
+ const alertGlyph = '<path d="M12 5v9"/><path d="M12 19h.01"/>';
2
+ export default alertGlyph;
@@ -0,0 +1,2 @@
1
+ declare const appsGlyph = "<g fill=\"currentColor\" stroke=\"none\"><circle cx=\"5\" cy=\"5\" r=\"1.5\"/><circle cx=\"12\" cy=\"5\" r=\"1.5\"/><circle cx=\"19\" cy=\"5\" r=\"1.5\"/><circle cx=\"5\" cy=\"12\" r=\"1.5\"/><circle cx=\"12\" cy=\"12\" r=\"1.5\"/><circle cx=\"19\" cy=\"12\" r=\"1.5\"/><circle cx=\"5\" cy=\"19\" r=\"1.5\"/><circle cx=\"12\" cy=\"19\" r=\"1.5\"/><circle cx=\"19\" cy=\"19\" r=\"1.5\"/></g>";
2
+ export default appsGlyph;
@@ -0,0 +1,2 @@
1
+ const appsGlyph = '<g fill="currentColor" stroke="none"><circle cx="5" cy="5" r="1.5"/><circle cx="12" cy="5" r="1.5"/><circle cx="19" cy="5" r="1.5"/><circle cx="5" cy="12" r="1.5"/><circle cx="12" cy="12" r="1.5"/><circle cx="19" cy="12" r="1.5"/><circle cx="5" cy="19" r="1.5"/><circle cx="12" cy="19" r="1.5"/><circle cx="19" cy="19" r="1.5"/></g>';
2
+ export default appsGlyph;
@@ -0,0 +1,2 @@
1
+ declare const archiveGlyph = "<rect width=\"20\" height=\"5\" x=\"2\" y=\"3\" rx=\"1\"/><path d=\"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8\"/><path d=\"M10 12h4\"/>";
2
+ export default archiveGlyph;
@@ -0,0 +1,2 @@
1
+ const archiveGlyph = '<rect width="20" height="5" x="2" y="3" rx="1"/><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"/><path d="M10 12h4"/>';
2
+ export default archiveGlyph;
@@ -0,0 +1,2 @@
1
+ declare const backGlyph = "<g fill=\"currentColor\" stroke=\"none\" transform=\"translate(2.74, 3.76) scale(1.2)\"><path d=\"M3.83177095,5.24594871 C4.0602244,5.47440869 4.08306498,5.83061605 3.90029598,6.08462021 L3.83175782,6.16518753 C3.5779134,6.41902469 3.16635617,6.41901881 2.912519,6.1651744 L0.190377671,3.44295529 L0.178511775,3.43077648 C0.161302612,3.41264792 0.145127956,3.39352776 0.130082378,3.37351059 L0.190377671,3.44295529 C0.161590153,3.41416695 0.136092993,3.3833986 0.113868819,3.35110255 C0.0995917417,3.33017175 0.0864982717,3.30852919 0.0746766273,3.28611188 C0.0292654095,3.20019745 0.00466816878,3.10620964 0.000603695422,3.01164047 C0.000208243732,3.00233175 3.64474909e-06,2.99286099 3.64474909e-06,2.98334245 C0.000336250747,2.95470912 0.00150386353,2.93496788 0.00356302865,2.91530936 L3.64474909e-06,2.98334245 C3.64474909e-06,2.9464507 0.00307705756,2.91027678 0.00898180791,2.87506278 C0.0119100067,2.85795575 0.0155561728,2.84055358 0.0199163976,2.82330214 C0.0240526844,2.80675154 0.028784588,2.79075497 0.0341019515,2.77502817 C0.0390005997,2.76052929 0.044550606,2.74581013 0.0506490237,2.73127431 C0.0582569033,2.71333431 0.0663820399,2.69623276 0.0752112443,2.67956138 C0.0807509514,2.6688148 0.0871507675,2.65749932 0.0939137641,2.64634913 C0.106428764,2.62605334 0.119478658,2.60699193 0.133478633,2.58869609 C0.139794115,2.58023299 0.14642202,2.57200602 0.153278251,2.56391211 L0.226982285,2.48983163 L2.94912362,0.156500961 C3.22168212,-0.0771272852 3.63202755,-0.0455680793 3.8656558,0.22699042 C4.09928404,0.49954892 4.06772484,0.909894354 3.79516634,1.1435226 L2.407,2.333 L9.59202675,2.33334245 C12.6180843,2.33334245 15.1778244,4.79506422 15.2957606,7.81911854 C15.4203498,11.0138765 12.7903966,13.744442 9.59202675,13.744442 L2.98271209,13.744442 C2.623727,13.744442 2.33271209,13.4534271 2.33271209,13.094442 C2.33271209,12.7354569 2.623727,12.444442 2.98271209,12.444442 L9.59202675,12.444442 C12.0529831,12.444442 14.0925682,10.3268299 13.9967481,7.86977833 C13.9060235,5.54347019 11.9198402,3.63334245 9.59202675,3.63334245 L2.219,3.633 L3.83177095,5.24594871 Z\"/></g>";
2
+ export default backGlyph;
@@ -0,0 +1,2 @@
1
+ const backGlyph = '<g fill="currentColor" stroke="none" transform="translate(2.74, 3.76) scale(1.2)"><path d="M3.83177095,5.24594871 C4.0602244,5.47440869 4.08306498,5.83061605 3.90029598,6.08462021 L3.83175782,6.16518753 C3.5779134,6.41902469 3.16635617,6.41901881 2.912519,6.1651744 L0.190377671,3.44295529 L0.178511775,3.43077648 C0.161302612,3.41264792 0.145127956,3.39352776 0.130082378,3.37351059 L0.190377671,3.44295529 C0.161590153,3.41416695 0.136092993,3.3833986 0.113868819,3.35110255 C0.0995917417,3.33017175 0.0864982717,3.30852919 0.0746766273,3.28611188 C0.0292654095,3.20019745 0.00466816878,3.10620964 0.000603695422,3.01164047 C0.000208243732,3.00233175 3.64474909e-06,2.99286099 3.64474909e-06,2.98334245 C0.000336250747,2.95470912 0.00150386353,2.93496788 0.00356302865,2.91530936 L3.64474909e-06,2.98334245 C3.64474909e-06,2.9464507 0.00307705756,2.91027678 0.00898180791,2.87506278 C0.0119100067,2.85795575 0.0155561728,2.84055358 0.0199163976,2.82330214 C0.0240526844,2.80675154 0.028784588,2.79075497 0.0341019515,2.77502817 C0.0390005997,2.76052929 0.044550606,2.74581013 0.0506490237,2.73127431 C0.0582569033,2.71333431 0.0663820399,2.69623276 0.0752112443,2.67956138 C0.0807509514,2.6688148 0.0871507675,2.65749932 0.0939137641,2.64634913 C0.106428764,2.62605334 0.119478658,2.60699193 0.133478633,2.58869609 C0.139794115,2.58023299 0.14642202,2.57200602 0.153278251,2.56391211 L0.226982285,2.48983163 L2.94912362,0.156500961 C3.22168212,-0.0771272852 3.63202755,-0.0455680793 3.8656558,0.22699042 C4.09928404,0.49954892 4.06772484,0.909894354 3.79516634,1.1435226 L2.407,2.333 L9.59202675,2.33334245 C12.6180843,2.33334245 15.1778244,4.79506422 15.2957606,7.81911854 C15.4203498,11.0138765 12.7903966,13.744442 9.59202675,13.744442 L2.98271209,13.744442 C2.623727,13.744442 2.33271209,13.4534271 2.33271209,13.094442 C2.33271209,12.7354569 2.623727,12.444442 2.98271209,12.444442 L9.59202675,12.444442 C12.0529831,12.444442 14.0925682,10.3268299 13.9967481,7.86977833 C13.9060235,5.54347019 11.9198402,3.63334245 9.59202675,3.63334245 L2.219,3.633 L3.83177095,5.24594871 Z"/></g>';
2
+ export default backGlyph;
@@ -0,0 +1,2 @@
1
+ declare const branchGlyph = "<line x1=\"6\" x2=\"6\" y1=\"3\" y2=\"15\"/><circle cx=\"18\" cy=\"6\" r=\"3\"/><circle cx=\"6\" cy=\"18\" r=\"3\"/><path d=\"M18 9a9 9 0 0 1-9 9\"/>";
2
+ export default branchGlyph;
@@ -0,0 +1,2 @@
1
+ const branchGlyph = '<line x1="6" x2="6" y1="3" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/>';
2
+ export default branchGlyph;
@@ -0,0 +1,2 @@
1
+ declare const calendarGlyph = "<path d=\"M8 2v4\"/><path d=\"M16 2v4\"/><rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\"/><path d=\"M3 10h18\"/>";
2
+ export default calendarGlyph;
@@ -0,0 +1,2 @@
1
+ const calendarGlyph = '<path d="M8 2v4"/><path d="M16 2v4"/><rect width="18" height="18" x="3" y="4" rx="2"/><path d="M3 10h18"/>';
2
+ export default calendarGlyph;
@@ -0,0 +1,2 @@
1
+ declare const checkCircleGlyph = "<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m16 9-5.5 5.5L8 12\"/>";
2
+ export default checkCircleGlyph;
@@ -0,0 +1,2 @@
1
+ const checkCircleGlyph = '<circle cx="12" cy="12" r="10"/><path d="m16 9-5.5 5.5L8 12"/>';
2
+ export default checkCircleGlyph;
@@ -0,0 +1,2 @@
1
+ declare const checkGlyph = "<path d=\"M20 6 9 17l-5-5\"/>";
2
+ export default checkGlyph;
@@ -0,0 +1,2 @@
1
+ const checkGlyph = '<path d="M20 6 9 17l-5-5"/>';
2
+ export default checkGlyph;
@@ -0,0 +1,2 @@
1
+ declare const chevronDownGlyph = "<path d=\"m6 9 6 6 6-6\"/>";
2
+ export default chevronDownGlyph;
@@ -0,0 +1,2 @@
1
+ const chevronDownGlyph = '<path d="m6 9 6 6 6-6"/>';
2
+ export default chevronDownGlyph;
@@ -0,0 +1,2 @@
1
+ declare const chevronLeftGlyph = "<path d=\"m15 18-6-6 6-6\"/>";
2
+ export default chevronLeftGlyph;
@@ -0,0 +1,2 @@
1
+ const chevronLeftGlyph = '<path d="m15 18-6-6 6-6"/>';
2
+ export default chevronLeftGlyph;
@@ -0,0 +1,2 @@
1
+ declare const chevronRightGlyph = "<path d=\"m9 18 6-6-6-6\"/>";
2
+ export default chevronRightGlyph;
@@ -0,0 +1,2 @@
1
+ const chevronRightGlyph = '<path d="m9 18 6-6-6-6"/>';
2
+ export default chevronRightGlyph;
@@ -0,0 +1,2 @@
1
+ declare const chevronUpGlyph = "<path d=\"m6 15 6-6 6 6\"/>";
2
+ export default chevronUpGlyph;
@@ -0,0 +1,2 @@
1
+ const chevronUpGlyph = '<path d="m6 15 6-6 6 6"/>';
2
+ export default chevronUpGlyph;
@@ -0,0 +1,2 @@
1
+ declare const chevronsLeftGlyph = "<path d=\"m11 17-5-5 5-5\"/><path d=\"m18 17-5-5 5-5\"/>";
2
+ export default chevronsLeftGlyph;
@@ -0,0 +1,4 @@
1
+ /* 双箭头:**整段跳转**(分页的首 / 末页)。与单箭头同族但语义不同 ——
2
+ * 单箭头是「相邻一格」,双箭头是「直达端点」,故不靠并排画两个单箭头表达。 */
3
+ const chevronsLeftGlyph = '<path d="m11 17-5-5 5-5"/><path d="m18 17-5-5 5-5"/>';
4
+ export default chevronsLeftGlyph;
@@ -0,0 +1,2 @@
1
+ declare const chevronsRightGlyph = "<path d=\"m6 17 5-5-5-5\"/><path d=\"m13 17 5-5-5-5\"/>";
2
+ export default chevronsRightGlyph;
@@ -0,0 +1,2 @@
1
+ const chevronsRightGlyph = '<path d="m6 17 5-5-5-5"/><path d="m13 17 5-5-5-5"/>';
2
+ export default chevronsRightGlyph;
@@ -0,0 +1,2 @@
1
+ declare const clockGlyph = "<circle cx=\"12\" cy=\"12\" r=\"10\"/><polyline points=\"12 6 12 12 16 14\"/>";
2
+ export default clockGlyph;
@@ -0,0 +1,2 @@
1
+ const clockGlyph = '<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>';
2
+ export default clockGlyph;
@@ -0,0 +1,2 @@
1
+ declare const closeCircleGlyph = "<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m15 9-6 6\"/><path d=\"m9 9 6 6\"/>";
2
+ export default closeCircleGlyph;
@@ -0,0 +1,2 @@
1
+ const closeCircleGlyph = '<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/>';
2
+ export default closeCircleGlyph;
@@ -0,0 +1,2 @@
1
+ declare const closeGlyph = "<path d=\"M18 6 6 18\"/><path d=\"m6 6 12 12\"/>";
2
+ export default closeGlyph;
@@ -0,0 +1,2 @@
1
+ const closeGlyph = '<path d="M18 6 6 18"/><path d="m6 6 12 12"/>';
2
+ export default closeGlyph;
@@ -0,0 +1,2 @@
1
+ declare const copyGlyph = "<rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"/><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"/>";
2
+ export default copyGlyph;
@@ -0,0 +1,2 @@
1
+ const copyGlyph = '<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>';
2
+ export default copyGlyph;
@@ -0,0 +1,2 @@
1
+ declare const deleteGlyph = "<path d=\"M3 6h18\"/><path d=\"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\"/><path d=\"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\"/><line x1=\"10\" x2=\"10\" y1=\"11\" y2=\"17\"/><line x1=\"14\" x2=\"14\" y1=\"11\" y2=\"17\"/>";
2
+ export default deleteGlyph;
@@ -0,0 +1,2 @@
1
+ const deleteGlyph = '<path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/>';
2
+ export default deleteGlyph;
@@ -0,0 +1,2 @@
1
+ declare const downloadGlyph = "<g fill=\"currentColor\" stroke=\"none\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11.25 13.5H7.6875L12 18L16.3125 13.5H12.75V3H11.25V13.5ZM19.5 12H21V21H3V12H4.5V19.5H19.5V12Z\"/></g>";
2
+ export default downloadGlyph;
@@ -0,0 +1,2 @@
1
+ const downloadGlyph = '<g fill="currentColor" stroke="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.25 13.5H7.6875L12 18L16.3125 13.5H12.75V3H11.25V13.5ZM19.5 12H21V21H3V12H4.5V19.5H19.5V12Z"/></g>';
2
+ export default downloadGlyph;
@@ -0,0 +1,2 @@
1
+ declare const dragHandleGlyph = "<g fill=\"currentColor\" stroke=\"none\"><circle cx=\"9\" cy=\"5\" r=\"1.5\"/><circle cx=\"9\" cy=\"12\" r=\"1.5\"/><circle cx=\"9\" cy=\"19\" r=\"1.5\"/><circle cx=\"15\" cy=\"5\" r=\"1.5\"/><circle cx=\"15\" cy=\"12\" r=\"1.5\"/><circle cx=\"15\" cy=\"19\" r=\"1.5\"/></g>";
2
+ export default dragHandleGlyph;
@@ -0,0 +1,4 @@
1
+ // ===== 操作(编辑 / 内容) =====
2
+ /* 拖拽手柄(6 点 = 2 列 × 3 行,点径与 `apps` 一致);宫格入口是另一个字形 `apps`(9 点 3×3) */
3
+ const dragHandleGlyph = '<g fill="currentColor" stroke="none"><circle cx="9" cy="5" r="1.5"/><circle cx="9" cy="12" r="1.5"/><circle cx="9" cy="19" r="1.5"/><circle cx="15" cy="5" r="1.5"/><circle cx="15" cy="12" r="1.5"/><circle cx="15" cy="19" r="1.5"/></g>';
4
+ export default dragHandleGlyph;
@@ -0,0 +1,2 @@
1
+ declare const editGlyph = "<path d=\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\"/><path d=\"m15 5 4 4\"/>";
2
+ export default editGlyph;
@@ -0,0 +1,2 @@
1
+ const editGlyph = '<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/><path d="m15 5 4 4"/>';
2
+ export default editGlyph;
@@ -0,0 +1,2 @@
1
+ declare const externalLinkGlyph = "<path d=\"M15 3h6v6\"/><path d=\"M10 14 21 3\"/><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"/>";
2
+ export default externalLinkGlyph;
@@ -0,0 +1,2 @@
1
+ const externalLinkGlyph = '<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>';
2
+ export default externalLinkGlyph;
@@ -0,0 +1,2 @@
1
+ declare const favoriteFilledGlyph = "<g fill=\"currentColor\" stroke=\"none\"><path d=\"M12.0409 5.54069C13.1383 4.44662 14.682 3.87338 16.2685 4.02409C18.2956 4.21669 20.0315 5.55741 20.7294 7.47037C21.4272 9.38357 20.9627 11.5281 19.5272 12.9889L12.4872 19.9489C12.1756 20.257 11.6739 20.257 11.3622 19.9489L4.31436 12.9801C2.88709 11.5275 2.42223 9.38356 3.12002 7.47037C3.81793 5.55742 5.55377 4.21666 7.58096 4.02409C9.16741 3.87341 10.7111 4.44659 11.8085 5.54069L11.9247 5.66178L12.0409 5.54069Z\"/></g>";
2
+ export default favoriteFilledGlyph;
@@ -0,0 +1,2 @@
1
+ const favoriteFilledGlyph = '<g fill="currentColor" stroke="none"><path d="M12.0409 5.54069C13.1383 4.44662 14.682 3.87338 16.2685 4.02409C18.2956 4.21669 20.0315 5.55741 20.7294 7.47037C21.4272 9.38357 20.9627 11.5281 19.5272 12.9889L12.4872 19.9489C12.1756 20.257 11.6739 20.257 11.3622 19.9489L4.31436 12.9801C2.88709 11.5275 2.42223 9.38356 3.12002 7.47037C3.81793 5.55742 5.55377 4.21666 7.58096 4.02409C9.16741 3.87341 10.7111 4.44659 11.8085 5.54069L11.9247 5.66178L12.0409 5.54069Z"/></g>';
2
+ export default favoriteFilledGlyph;
@@ -0,0 +1,2 @@
1
+ declare const favoriteGlyph = "<g fill=\"currentColor\" stroke=\"none\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.0409 5.54069C13.1383 4.44662 14.682 3.87338 16.2685 4.02409C18.2956 4.21669 20.0315 5.55741 20.7294 7.47037C21.4272 9.38357 20.9627 11.5281 19.5272 12.9889L12.4872 19.9489C12.1756 20.257 11.6739 20.257 11.3622 19.9489L4.31436 12.9801C2.88709 11.5275 2.42223 9.38356 3.12002 7.47037C3.81793 5.55742 5.55377 4.21666 7.58096 4.02409C9.16741 3.87341 10.7111 4.44659 11.8085 5.54069L11.9247 5.66178L12.0409 5.54069ZM16.1171 5.61686C14.7042 5.48264 13.34 6.17249 12.6112 7.3903C12.3007 7.90932 11.5487 7.90932 11.2382 7.3903C10.5094 6.17249 9.14517 5.48271 7.73232 5.61686C6.31932 5.75109 5.10929 6.68575 4.62295 8.0192C4.13664 9.35264 4.46057 10.847 5.44717 11.8512L11.9247 18.2546L18.3944 11.859C19.3305 10.9062 19.672 9.52611 19.3036 8.25553L19.2265 8.0192C18.7401 6.68576 17.5301 5.75109 16.1171 5.61686Z\"/></g>";
2
+ export default favoriteGlyph;
@@ -0,0 +1,2 @@
1
+ const favoriteGlyph = '<g fill="currentColor" stroke="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.0409 5.54069C13.1383 4.44662 14.682 3.87338 16.2685 4.02409C18.2956 4.21669 20.0315 5.55741 20.7294 7.47037C21.4272 9.38357 20.9627 11.5281 19.5272 12.9889L12.4872 19.9489C12.1756 20.257 11.6739 20.257 11.3622 19.9489L4.31436 12.9801C2.88709 11.5275 2.42223 9.38356 3.12002 7.47037C3.81793 5.55742 5.55377 4.21666 7.58096 4.02409C9.16741 3.87341 10.7111 4.44659 11.8085 5.54069L11.9247 5.66178L12.0409 5.54069ZM16.1171 5.61686C14.7042 5.48264 13.34 6.17249 12.6112 7.3903C12.3007 7.90932 11.5487 7.90932 11.2382 7.3903C10.5094 6.17249 9.14517 5.48271 7.73232 5.61686C6.31932 5.75109 5.10929 6.68575 4.62295 8.0192C4.13664 9.35264 4.46057 10.847 5.44717 11.8512L11.9247 18.2546L18.3944 11.859C19.3305 10.9062 19.672 9.52611 19.3036 8.25553L19.2265 8.0192C18.7401 6.68576 17.5301 5.75109 16.1171 5.61686Z"/></g>';
2
+ export default favoriteGlyph;
@@ -0,0 +1,2 @@
1
+ declare const fileCodeGlyph = "<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"/><path d=\"M14 2v4a2 2 0 0 0 2 2h4\"/><path d=\"m10 13-2 2 2 2\"/><path d=\"m14 17 2-2-2-2\"/>";
2
+ export default fileCodeGlyph;
@@ -0,0 +1,2 @@
1
+ const fileCodeGlyph = '<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="m10 13-2 2 2 2"/><path d="m14 17 2-2-2-2"/>';
2
+ export default fileCodeGlyph;
@@ -0,0 +1,2 @@
1
+ declare const fileJsonGlyph = "<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"/><path d=\"M14 2v4a2 2 0 0 0 2 2h4\"/><path d=\"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1\"/><path d=\"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1\"/>";
2
+ export default fileJsonGlyph;
@@ -0,0 +1,2 @@
1
+ const fileJsonGlyph = '<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/>';
2
+ export default fileJsonGlyph;
@@ -0,0 +1,2 @@
1
+ declare const fileTextGlyph = "<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"/><path d=\"M14 2v4a2 2 0 0 0 2 2h4\"/><path d=\"M16 13H8\"/><path d=\"M16 17H8\"/><path d=\"M10 9H8\"/>";
2
+ export default fileTextGlyph;
@@ -0,0 +1,2 @@
1
+ const fileTextGlyph = '<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M16 13H8"/><path d="M16 17H8"/><path d="M10 9H8"/>';
2
+ export default fileTextGlyph;
@@ -0,0 +1,2 @@
1
+ declare const fileGlyph = "<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"/>";
2
+ export default fileGlyph;
@@ -0,0 +1,2 @@
1
+ const fileGlyph = '<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/>';
2
+ export default fileGlyph;
@@ -0,0 +1,2 @@
1
+ declare const filterGlyph = "<polygon points=\"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3\"/>";
2
+ export default filterGlyph;
@@ -0,0 +1,2 @@
1
+ const filterGlyph = '<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/>';
2
+ export default filterGlyph;
@@ -0,0 +1,2 @@
1
+ declare const folderOpenGlyph = "<path d=\"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\"/>";
2
+ export default folderOpenGlyph;
@@ -0,0 +1,2 @@
1
+ const folderOpenGlyph = '<path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>';
2
+ export default folderOpenGlyph;
@@ -0,0 +1,2 @@
1
+ declare const folderGlyph = "<path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\"/>";
2
+ export default folderGlyph;
@@ -0,0 +1,2 @@
1
+ const folderGlyph = '<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>';
2
+ export default folderGlyph;
@@ -0,0 +1,2 @@
1
+ declare const helpGlyph = "<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\"/><path d=\"M12 17h.01\"/>";
2
+ export default helpGlyph;
@@ -0,0 +1,2 @@
1
+ const helpGlyph = '<circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/>';
2
+ export default helpGlyph;
@@ -0,0 +1,2 @@
1
+ declare const historyGlyph = "<path d=\"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\"/><path d=\"M3 3v5h5\"/><path d=\"M12 7v5l4 2\"/>";
2
+ export default historyGlyph;
@@ -0,0 +1,2 @@
1
+ const historyGlyph = '<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/>';
2
+ export default historyGlyph;
@@ -0,0 +1,2 @@
1
+ declare const homeGlyph = "<path d=\"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\"/><path d=\"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/>";
2
+ export default homeGlyph;
@@ -0,0 +1,2 @@
1
+ const homeGlyph = '<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>';
2
+ export default homeGlyph;
@@ -0,0 +1,2 @@
1
+ declare const imageGlyph = "<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\"/><circle cx=\"9\" cy=\"9\" r=\"2\"/><path d=\"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\"/>";
2
+ export default imageGlyph;
@@ -0,0 +1,3 @@
1
+ // ===== 文件 / 资源 =====
2
+ const imageGlyph = '<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>';
3
+ export default imageGlyph;