@aithe/aithe-ui 26.2.3 → 26.3.1

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 (564) hide show
  1. package/README.md +16 -11
  2. package/dist/apps/admin/app.js +12 -0
  3. package/dist/apps/admin/components/admin-app.js +83 -0
  4. package/dist/apps/admin/components/admin-layout.d.ts +0 -1
  5. package/dist/apps/admin/components/admin-layout.d.ts.map +1 -1
  6. package/dist/apps/admin/components/admin-layout.js +250 -0
  7. package/dist/apps/admin/datahub/auth.js +24 -0
  8. package/dist/apps/admin/datahub/dashboard.js +16 -0
  9. package/dist/apps/admin/datahub/index.js +42 -0
  10. package/dist/apps/admin/datahub/menu.js +16 -0
  11. package/dist/apps/admin/datahub/mock/auth.js +11 -0
  12. package/dist/apps/admin/datahub/mock/dashboard.js +10 -0
  13. package/dist/apps/admin/datahub/mock/menu.js +42 -0
  14. package/dist/apps/admin/i18n/de-DE.js +37 -0
  15. package/dist/apps/admin/i18n/en-US.js +37 -0
  16. package/dist/apps/admin/i18n/es-ES.js +38 -0
  17. package/dist/apps/admin/i18n/fr-FR.js +37 -0
  18. package/dist/apps/admin/i18n/index.js +27 -0
  19. package/dist/apps/admin/i18n/ja-JP.js +38 -0
  20. package/dist/apps/admin/i18n/ko-KR.js +37 -0
  21. package/dist/apps/admin/i18n/pt-BR.js +37 -0
  22. package/dist/apps/admin/i18n/zh-CN.js +37 -0
  23. package/dist/apps/admin/i18n/zh-HK.js +37 -0
  24. package/dist/apps/admin/i18n/zh-TW.js +37 -0
  25. package/dist/apps/admin/pages/dashboard-page.d.ts +1 -0
  26. package/dist/apps/admin/pages/dashboard-page.d.ts.map +1 -1
  27. package/dist/apps/admin/pages/dashboard-page.js +199 -0
  28. package/dist/apps/admin/pages/login-page.js +278 -0
  29. package/dist/apps/admin/pages/not-found-page.js +57 -0
  30. package/dist/apps/admin/pages/role-page.js +76 -0
  31. package/dist/apps/admin/pages/settings-page.js +95 -0
  32. package/dist/apps/admin/pages/user-page.js +76 -0
  33. package/dist/apps/admin/router/index.js +43 -0
  34. package/dist/apps/admin/standalone.js +1 -0
  35. package/dist/apps/admin/store/auth.js +42 -0
  36. package/dist/apps/api/app.js +82 -0
  37. package/dist/apps/api/demo-data.d.ts.map +1 -1
  38. package/dist/apps/api/demo-data.js +965 -0
  39. package/dist/apps/api/docs-viewer.js +684 -0
  40. package/dist/apps/api/i18n/de-DE.d.ts.map +1 -1
  41. package/dist/apps/api/i18n/de-DE.js +130 -0
  42. package/dist/apps/api/i18n/en-US.d.ts.map +1 -1
  43. package/dist/apps/api/i18n/en-US.js +140 -0
  44. package/dist/apps/api/i18n/es-ES.d.ts.map +1 -1
  45. package/dist/apps/api/i18n/es-ES.js +130 -0
  46. package/dist/apps/api/i18n/fr-FR.d.ts.map +1 -1
  47. package/dist/apps/api/i18n/fr-FR.js +130 -0
  48. package/dist/apps/api/i18n/index.js +27 -0
  49. package/dist/apps/api/i18n/ja-JP.d.ts.map +1 -1
  50. package/dist/apps/api/i18n/ja-JP.js +130 -0
  51. package/dist/apps/api/i18n/ko-KR.d.ts.map +1 -1
  52. package/dist/apps/api/i18n/ko-KR.js +130 -0
  53. package/dist/apps/api/i18n/pt-BR.d.ts.map +1 -1
  54. package/dist/apps/api/i18n/pt-BR.js +130 -0
  55. package/dist/apps/api/i18n/zh-CN.d.ts.map +1 -1
  56. package/dist/apps/api/i18n/zh-CN.js +140 -0
  57. package/dist/apps/api/i18n/zh-HK.d.ts.map +1 -1
  58. package/dist/apps/api/i18n/zh-HK.js +130 -0
  59. package/dist/apps/api/i18n/zh-TW.d.ts.map +1 -1
  60. package/dist/apps/api/i18n/zh-TW.js +130 -0
  61. package/dist/apps/api/pages/docs.d.ts.map +1 -1
  62. package/dist/apps/api/pages/docs.js +367 -0
  63. package/dist/apps/api/standalone.js +1 -0
  64. package/dist/apps/demo/app.js +273 -0
  65. package/dist/apps/demo/editor.d.ts.map +1 -1
  66. package/dist/apps/demo/editor.js +270 -0
  67. package/dist/apps/demo/helpers.js +7 -0
  68. package/dist/apps/demo/i18n/de-DE.d.ts.map +1 -1
  69. package/dist/apps/demo/i18n/de-DE.js +269 -0
  70. package/dist/apps/demo/i18n/en-US.d.ts.map +1 -1
  71. package/dist/apps/demo/i18n/en-US.js +281 -0
  72. package/dist/apps/demo/i18n/es-ES.d.ts.map +1 -1
  73. package/dist/apps/demo/i18n/es-ES.js +269 -0
  74. package/dist/apps/demo/i18n/fr-FR.d.ts.map +1 -1
  75. package/dist/apps/demo/i18n/fr-FR.js +269 -0
  76. package/dist/apps/demo/i18n/index.js +27 -0
  77. package/dist/apps/demo/i18n/ja-JP.d.ts.map +1 -1
  78. package/dist/apps/demo/i18n/ja-JP.js +269 -0
  79. package/dist/apps/demo/i18n/ko-KR.d.ts.map +1 -1
  80. package/dist/apps/demo/i18n/ko-KR.js +269 -0
  81. package/dist/apps/demo/i18n/pt-BR.d.ts.map +1 -1
  82. package/dist/apps/demo/i18n/pt-BR.js +269 -0
  83. package/dist/apps/demo/i18n/zh-CN.d.ts.map +1 -1
  84. package/dist/apps/demo/i18n/zh-CN.js +281 -0
  85. package/dist/apps/demo/i18n/zh-HK.d.ts.map +1 -1
  86. package/dist/apps/demo/i18n/zh-HK.js +269 -0
  87. package/dist/apps/demo/i18n/zh-TW.d.ts.map +1 -1
  88. package/dist/apps/demo/i18n/zh-TW.js +269 -0
  89. package/dist/apps/demo/pages/autoform.js +412 -0
  90. package/dist/apps/demo/pages/basic.js +157 -0
  91. package/dist/apps/demo/pages/code.js +1088 -0
  92. package/dist/apps/demo/pages/container.js +42 -0
  93. package/dist/apps/demo/pages/dashboard.js +159 -0
  94. package/dist/apps/demo/pages/data.d.ts.map +1 -1
  95. package/dist/apps/demo/pages/data.js +327 -0
  96. package/dist/apps/demo/pages/display.d.ts.map +1 -1
  97. package/dist/apps/demo/pages/display.js +295 -0
  98. package/dist/apps/demo/pages/feedback.js +94 -0
  99. package/dist/apps/demo/pages/form.js +99 -0
  100. package/dist/apps/demo/pages/layout.js +74 -0
  101. package/dist/apps/demo/pages/navigation.js +54 -0
  102. package/dist/apps/demo/pages/progress.js +42 -0
  103. package/dist/apps/demo/pages/theme.js +126 -0
  104. package/dist/apps/demo/standalone.js +1 -0
  105. package/dist/components/basic/AGENTS.md +1 -0
  106. package/dist/components/basic/avatar.js +168 -0
  107. package/dist/components/basic/badge.js +157 -0
  108. package/dist/components/basic/button-group.js +70 -0
  109. package/dist/components/basic/button.d.ts +2 -4
  110. package/dist/components/basic/button.d.ts.map +1 -1
  111. package/dist/components/basic/button.js +315 -0
  112. package/dist/components/basic/card.js +186 -0
  113. package/dist/components/basic/chip.js +103 -0
  114. package/dist/components/basic/divider.js +127 -0
  115. package/dist/components/basic/empty.js +72 -0
  116. package/dist/components/basic/icon.js +129 -0
  117. package/dist/components/basic/input.d.ts.map +1 -1
  118. package/dist/components/basic/input.js +314 -0
  119. package/dist/components/basic/tag.d.ts +7 -2
  120. package/dist/components/basic/tag.d.ts.map +1 -1
  121. package/dist/components/basic/tag.js +248 -0
  122. package/dist/components/basic/textarea.d.ts +0 -1
  123. package/dist/components/basic/textarea.d.ts.map +1 -1
  124. package/dist/components/basic/textarea.js +130 -0
  125. package/dist/components/container/callout.js +108 -0
  126. package/dist/components/container/details.js +117 -0
  127. package/dist/components/container/scroller.js +144 -0
  128. package/dist/components/container/split-panel.js +150 -0
  129. package/dist/components/data/AGENTS.md +1 -1
  130. package/dist/components/data/box-table.d.ts +53 -0
  131. package/dist/components/data/box-table.d.ts.map +1 -0
  132. package/dist/components/data/box-table.js +220 -0
  133. package/dist/components/data/dropdown.d.ts +8 -5
  134. package/dist/components/data/dropdown.d.ts.map +1 -1
  135. package/dist/components/data/dropdown.js +219 -0
  136. package/dist/components/data/metrics-group.js +180 -0
  137. package/dist/components/data/metrics.d.ts +11 -0
  138. package/dist/components/data/metrics.d.ts.map +1 -1
  139. package/dist/components/data/metrics.js +309 -0
  140. package/dist/components/data/pagination.js +119 -0
  141. package/dist/components/data/tab-pane.d.ts +58 -12
  142. package/dist/components/data/tab-pane.d.ts.map +1 -1
  143. package/dist/components/data/tab-pane.js +130 -0
  144. package/dist/components/data/table-column.d.ts +29 -5
  145. package/dist/components/data/table-column.d.ts.map +1 -1
  146. package/dist/components/data/table-column.js +123 -0
  147. package/dist/components/data/table.d.ts +134 -54
  148. package/dist/components/data/table.d.ts.map +1 -1
  149. package/dist/components/data/table.js +1210 -0
  150. package/dist/components/data/tabs.d.ts +60 -3
  151. package/dist/components/data/tabs.d.ts.map +1 -1
  152. package/dist/components/data/tabs.js +416 -0
  153. package/dist/components/data/timeline-item.js +127 -0
  154. package/dist/components/data/timeline.js +204 -0
  155. package/dist/components/data/tree-menu.d.ts +12 -2
  156. package/dist/components/data/tree-menu.d.ts.map +1 -1
  157. package/dist/components/data/tree-menu.js +482 -0
  158. package/dist/components/data/tree.js +269 -0
  159. package/dist/components/display/AGENTS.md +5 -2
  160. package/dist/components/display/animated-image.js +98 -0
  161. package/dist/components/display/brief-box.d.ts +42 -0
  162. package/dist/components/display/brief-box.d.ts.map +1 -0
  163. package/dist/components/display/brief-box.js +117 -0
  164. package/dist/components/display/carousel.js +223 -0
  165. package/dist/components/display/code-editor.d.ts.map +1 -1
  166. package/dist/components/display/code-editor.js +976 -0
  167. package/dist/components/display/comparison.js +132 -0
  168. package/dist/components/display/desc-item.d.ts +48 -0
  169. package/dist/components/display/desc-item.d.ts.map +1 -0
  170. package/dist/components/display/desc-item.js +150 -0
  171. package/dist/components/display/desc.d.ts +64 -0
  172. package/dist/components/display/desc.d.ts.map +1 -0
  173. package/dist/components/display/desc.js +363 -0
  174. package/dist/components/display/detail-box.d.ts +51 -0
  175. package/dist/components/display/detail-box.d.ts.map +1 -0
  176. package/dist/components/display/detail-box.js +157 -0
  177. package/dist/components/display/label.js +166 -0
  178. package/dist/components/display/markdown-editor.js +319 -0
  179. package/dist/components/display/markdown.d.ts.map +1 -1
  180. package/dist/components/display/markdown.js +193 -0
  181. package/dist/components/display/mini-box.d.ts +31 -0
  182. package/dist/components/display/mini-box.d.ts.map +1 -0
  183. package/dist/components/display/mini-box.js +137 -0
  184. package/dist/components/display/profile.d.ts +18 -0
  185. package/dist/components/display/profile.d.ts.map +1 -0
  186. package/dist/components/display/profile.js +164 -0
  187. package/dist/components/feedback/AGENTS.md +1 -0
  188. package/dist/components/feedback/alert.js +150 -0
  189. package/dist/components/feedback/dialog.js +228 -0
  190. package/dist/components/feedback/drawer.d.ts.map +1 -1
  191. package/dist/components/feedback/drawer.js +338 -0
  192. package/dist/components/feedback/loading.js +130 -0
  193. package/dist/components/feedback/modal.d.ts.map +1 -1
  194. package/dist/components/feedback/modal.js +303 -0
  195. package/dist/components/feedback/notification.js +170 -0
  196. package/dist/components/feedback/popover.d.ts +1 -1
  197. package/dist/components/feedback/popover.js +124 -0
  198. package/dist/components/feedback/toast.js +142 -0
  199. package/dist/components/feedback/tooltip.d.ts +1 -1
  200. package/dist/components/feedback/tooltip.js +153 -0
  201. package/dist/components/form/AGENTS.md +4 -0
  202. package/dist/components/form/autoform-item.js +761 -0
  203. package/dist/components/form/autoform.d.ts +15 -5
  204. package/dist/components/form/autoform.d.ts.map +1 -1
  205. package/dist/components/form/autoform.js +303 -0
  206. package/dist/components/form/checkbox-group.js +118 -0
  207. package/dist/components/form/checkbox.js +123 -0
  208. package/dist/components/form/color-picker.js +148 -0
  209. package/dist/components/form/combobox.d.ts.map +1 -1
  210. package/dist/components/form/combobox.js +282 -0
  211. package/dist/components/form/date-picker.js +123 -0
  212. package/dist/components/form/form-item.d.ts.map +1 -1
  213. package/dist/components/form/form-item.js +141 -0
  214. package/dist/components/form/form.js +94 -0
  215. package/dist/components/form/radio-group.js +106 -0
  216. package/dist/components/form/radio.js +110 -0
  217. package/dist/components/form/rate.js +116 -0
  218. package/dist/components/form/select.d.ts +1 -1
  219. package/dist/components/form/select.js +495 -0
  220. package/dist/components/form/slider.js +134 -0
  221. package/dist/components/form/switch.js +146 -0
  222. package/dist/components/form/time-picker.js +92 -0
  223. package/dist/components/form/transfer.js +273 -0
  224. package/dist/components/form/upload.js +138 -0
  225. package/dist/components/framework/body.js +333 -0
  226. package/dist/components/framework/dashboard-panel.js +519 -0
  227. package/dist/components/framework/dashboard.d.ts.map +1 -1
  228. package/dist/components/framework/dashboard.js +1084 -0
  229. package/dist/components/framework/header.js +237 -0
  230. package/dist/components/framework/log-panel.js +637 -0
  231. package/dist/components/framework/page.js +151 -0
  232. package/dist/components/framework/sidebar.d.ts +4 -10
  233. package/dist/components/framework/sidebar.d.ts.map +1 -1
  234. package/dist/components/framework/sidebar.js +477 -0
  235. package/dist/components/layout/affix.js +137 -0
  236. package/dist/components/layout/col.js +103 -0
  237. package/dist/components/layout/collapse-item.js +165 -0
  238. package/dist/components/layout/collapse.js +108 -0
  239. package/dist/components/layout/container.js +92 -0
  240. package/dist/components/layout/flex.js +100 -0
  241. package/dist/components/layout/row.js +103 -0
  242. package/dist/components/layout/space.js +85 -0
  243. package/dist/components/navigation/back-top.js +127 -0
  244. package/dist/components/navigation/breadcrumb-item.js +108 -0
  245. package/dist/components/navigation/breadcrumb.js +70 -0
  246. package/dist/components/navigation/menu-item.js +181 -0
  247. package/dist/components/navigation/menu.js +126 -0
  248. package/dist/components/navigation/steps.js +183 -0
  249. package/dist/components/navigation/sub-menu.js +253 -0
  250. package/dist/components/progress/progress-bar.js +97 -0
  251. package/dist/components/progress/progress-ring.js +111 -0
  252. package/dist/components/progress/skeleton.js +108 -0
  253. package/dist/components/progress/spinner.js +129 -0
  254. package/dist/components/theme/locale-switch.js +241 -0
  255. package/dist/components/theme/shadow-picker.js +233 -0
  256. package/dist/components/theme/shape-picker.js +232 -0
  257. package/dist/components/theme/theme-picker.js +236 -0
  258. package/dist/components/theme/theme-preview.d.ts +1 -2
  259. package/dist/components/theme/theme-preview.d.ts.map +1 -1
  260. package/dist/components/theme/theme-preview.js +376 -0
  261. package/dist/components/theme/theme-switch.d.ts.map +1 -1
  262. package/dist/components/theme/theme-switch.js +318 -0
  263. package/dist/components/theme/typo-picker.js +219 -0
  264. package/dist/core/AGENTS.md +6 -1
  265. package/dist/core/aithe-element.d.ts +2 -2
  266. package/dist/core/aithe-element.js +135 -0
  267. package/dist/core/aithe-widget.js +30 -0
  268. package/dist/core/anchored-overlay.d.ts +3 -0
  269. package/dist/core/anchored-overlay.d.ts.map +1 -1
  270. package/dist/core/anchored-overlay.js +111 -0
  271. package/dist/core/autoform/autoform.js +79 -0
  272. package/dist/core/autoform/condition.js +170 -0
  273. package/dist/core/autoform/index.js +8 -0
  274. package/dist/core/autoform/types.js +7 -0
  275. package/dist/core/datahub/config/strategy.d.ts +1 -1
  276. package/dist/core/datahub/config/strategy.d.ts.map +1 -1
  277. package/dist/core/datahub/config/strategy.js +50 -0
  278. package/dist/core/datahub/core/adapter/fetch-adapter.d.ts +1 -1
  279. package/dist/core/datahub/core/adapter/fetch-adapter.d.ts.map +1 -1
  280. package/dist/core/datahub/core/adapter/fetch-adapter.js +118 -0
  281. package/dist/core/datahub/core/adapter/index.js +7 -0
  282. package/dist/core/datahub/core/adapter/mock-adapter.d.ts +1 -1
  283. package/dist/core/datahub/core/adapter/mock-adapter.d.ts.map +1 -1
  284. package/dist/core/datahub/core/adapter/mock-adapter.js +58 -0
  285. package/dist/core/datahub/core/api-styles.d.ts +1 -1
  286. package/dist/core/datahub/core/api-styles.d.ts.map +1 -1
  287. package/dist/core/datahub/core/api-styles.js +131 -0
  288. package/dist/core/datahub/core/datahub-core.d.ts +3 -3
  289. package/dist/core/datahub/core/datahub-core.d.ts.map +1 -1
  290. package/dist/core/datahub/core/datahub-core.js +441 -0
  291. package/dist/core/datahub/core/index.js +7 -0
  292. package/dist/core/datahub/index.js +50 -0
  293. package/dist/core/datahub/types.d.ts +6 -0
  294. package/dist/core/datahub/types.d.ts.map +1 -1
  295. package/dist/core/datahub/types.js +31 -0
  296. package/dist/core/datahub/utils/cache.js +55 -0
  297. package/dist/core/datahub/utils/common.js +23 -0
  298. package/dist/core/datahub/utils/dedup.d.ts +1 -1
  299. package/dist/core/datahub/utils/dedup.d.ts.map +1 -1
  300. package/dist/core/datahub/utils/dedup.js +52 -0
  301. package/dist/core/datahub/utils/idempotent.js +61 -0
  302. package/dist/core/datahub/utils/is-query.js +53 -0
  303. package/dist/core/datahub/utils/loading.js +78 -0
  304. package/dist/core/filter/__tests__/index.test.d.ts +2 -0
  305. package/dist/core/filter/__tests__/index.test.d.ts.map +1 -0
  306. package/dist/core/filter/__tests__/index.test.js +230 -0
  307. package/dist/core/filter/builtins.d.ts +60 -0
  308. package/dist/core/filter/builtins.d.ts.map +1 -0
  309. package/dist/core/filter/builtins.js +172 -0
  310. package/dist/core/filter/factory.d.ts +54 -0
  311. package/dist/core/filter/factory.d.ts.map +1 -0
  312. package/dist/core/filter/factory.js +96 -0
  313. package/dist/core/filter/index.d.ts +11 -0
  314. package/dist/core/filter/index.d.ts.map +1 -0
  315. package/dist/core/filter/index.js +9 -0
  316. package/dist/core/filter/types.d.ts +12 -0
  317. package/dist/core/filter/types.d.ts.map +1 -0
  318. package/dist/core/filter/types.js +1 -0
  319. package/dist/core/floating.js +132 -0
  320. package/dist/core/highlight/index.js +43 -0
  321. package/dist/core/highlight/lang-bash.js +27 -0
  322. package/dist/core/highlight/lang-c.js +27 -0
  323. package/dist/core/highlight/lang-cmake.js +27 -0
  324. package/dist/core/highlight/lang-cpp.js +27 -0
  325. package/dist/core/highlight/lang-css.js +24 -0
  326. package/dist/core/highlight/lang-dart.js +27 -0
  327. package/dist/core/highlight/lang-dockerfile.js +16 -0
  328. package/dist/core/highlight/lang-fsharp.js +23 -0
  329. package/dist/core/highlight/lang-go.js +22 -0
  330. package/dist/core/highlight/lang-html.js +12 -0
  331. package/dist/core/highlight/lang-java.js +22 -0
  332. package/dist/core/highlight/lang-javascript.js +26 -0
  333. package/dist/core/highlight/lang-json.js +13 -0
  334. package/dist/core/highlight/lang-jsonline.js +13 -0
  335. package/dist/core/highlight/lang-jsx.js +30 -0
  336. package/dist/core/highlight/lang-kotlin.js +27 -0
  337. package/dist/core/highlight/lang-latex.js +22 -0
  338. package/dist/core/highlight/lang-lua.js +26 -0
  339. package/dist/core/highlight/lang-makefile.js +22 -0
  340. package/dist/core/highlight/lang-markdown.js +18 -0
  341. package/dist/core/highlight/lang-objectivec.js +24 -0
  342. package/dist/core/highlight/lang-perl.js +30 -0
  343. package/dist/core/highlight/lang-powershell.js +23 -0
  344. package/dist/core/highlight/lang-python.js +27 -0
  345. package/dist/core/highlight/lang-r.js +21 -0
  346. package/dist/core/highlight/lang-ruby.js +29 -0
  347. package/dist/core/highlight/lang-rust.js +24 -0
  348. package/dist/core/highlight/lang-scala.js +26 -0
  349. package/dist/core/highlight/lang-sql.js +21 -0
  350. package/dist/core/highlight/lang-svelte.js +27 -0
  351. package/dist/core/highlight/lang-swift.js +28 -0
  352. package/dist/core/highlight/lang-tsx.js +35 -0
  353. package/dist/core/highlight/lang-typescript.js +31 -0
  354. package/dist/core/highlight/lang-vue.js +29 -0
  355. package/dist/core/highlight/lang-wasm.js +22 -0
  356. package/dist/core/highlight/lang-xml.js +12 -0
  357. package/dist/core/highlight/lang-yaml.js +14 -0
  358. package/dist/core/highlight/registry.js +99 -0
  359. package/dist/core/logger/LoggerCore.js +626 -0
  360. package/dist/core/logger/index.js +10 -0
  361. package/dist/core/logger/types.js +29 -0
  362. package/dist/core/markdown/index.js +20 -0
  363. package/dist/core/markdown/parser.d.ts +2 -0
  364. package/dist/core/markdown/parser.d.ts.map +1 -1
  365. package/dist/core/markdown/parser.js +376 -0
  366. package/dist/core/markdown/plugins.js +608 -0
  367. package/dist/core/markdown/types.d.ts +5 -0
  368. package/dist/core/markdown/types.d.ts.map +1 -1
  369. package/dist/core/markdown/types.js +7 -0
  370. package/dist/core/router/index.js +244 -0
  371. package/dist/core/styles.js +44 -0
  372. package/dist/core/types.d.ts +50 -3
  373. package/dist/core/types.d.ts.map +1 -1
  374. package/dist/core/types.js +1 -0
  375. package/dist/index.d.ts +8 -0
  376. package/dist/index.d.ts.map +1 -1
  377. package/dist/index.js +2812 -1253
  378. package/dist/index.js.map +1 -1
  379. package/dist/index.umd.js +1670 -728
  380. package/dist/index.umd.js.map +1 -1
  381. package/dist/styles/aithe-ui.d.ts +23 -0
  382. package/dist/styles/aithe-ui.d.ts.map +1 -1
  383. package/dist/styles/aithe-ui.js +185 -0
  384. package/dist/styles/global.css.d.ts +1 -1
  385. package/dist/styles/global.css.d.ts.map +1 -1
  386. package/dist/styles/global.css.js +119 -0
  387. package/dist/styles/i18n/index.js +206 -0
  388. package/dist/styles/i18n/locales/de-DE.d.ts.map +1 -1
  389. package/dist/styles/i18n/locales/de-DE.js +148 -0
  390. package/dist/styles/i18n/locales/en-US.d.ts.map +1 -1
  391. package/dist/styles/i18n/locales/en-US.js +157 -0
  392. package/dist/styles/i18n/locales/es-ES.d.ts.map +1 -1
  393. package/dist/styles/i18n/locales/es-ES.js +148 -0
  394. package/dist/styles/i18n/locales/fr-FR.d.ts.map +1 -1
  395. package/dist/styles/i18n/locales/fr-FR.js +148 -0
  396. package/dist/styles/i18n/locales/index.js +14 -0
  397. package/dist/styles/i18n/locales/ja-JP.d.ts.map +1 -1
  398. package/dist/styles/i18n/locales/ja-JP.js +148 -0
  399. package/dist/styles/i18n/locales/ko-KR.d.ts.map +1 -1
  400. package/dist/styles/i18n/locales/ko-KR.js +148 -0
  401. package/dist/styles/i18n/locales/pt-BR.d.ts.map +1 -1
  402. package/dist/styles/i18n/locales/pt-BR.js +148 -0
  403. package/dist/styles/i18n/locales/zh-CN.d.ts.map +1 -1
  404. package/dist/styles/i18n/locales/zh-CN.js +157 -0
  405. package/dist/styles/i18n/locales/zh-HK.d.ts.map +1 -1
  406. package/dist/styles/i18n/locales/zh-HK.js +148 -0
  407. package/dist/styles/i18n/locales/zh-TW.d.ts.map +1 -1
  408. package/dist/styles/i18n/locales/zh-TW.js +148 -0
  409. package/dist/styles/layout/index.js +88 -0
  410. package/dist/styles/mixins.js +43 -0
  411. package/dist/styles/shadow/cyber.js +19 -0
  412. package/dist/styles/shadow/deep.js +19 -0
  413. package/dist/styles/shadow/diffuse.js +19 -0
  414. package/dist/styles/shadow/flat.js +19 -0
  415. package/dist/styles/shadow/glassmorphism.js +19 -0
  416. package/dist/styles/shadow/index.js +129 -0
  417. package/dist/styles/shadow/neumorphism.js +21 -0
  418. package/dist/styles/shadow/retro.js +19 -0
  419. package/dist/styles/shadow/sharp-business.js +19 -0
  420. package/dist/styles/shadow/skeuomorphic.js +21 -0
  421. package/dist/styles/shape/chamfer.js +19 -0
  422. package/dist/styles/shape/circle.js +19 -0
  423. package/dist/styles/shape/index.js +174 -0
  424. package/dist/styles/shape/organic.js +19 -0
  425. package/dist/styles/shape/pill.js +19 -0
  426. package/dist/styles/shape/rounded.js +21 -0
  427. package/dist/styles/shape/rounder.js +19 -0
  428. package/dist/styles/shape/sharp.js +19 -0
  429. package/dist/styles/shape/smooth.js +19 -0
  430. package/dist/styles/theme/aliyun.d.ts +1 -1
  431. package/dist/styles/theme/aliyun.d.ts.map +1 -1
  432. package/dist/styles/theme/aliyun.js +102 -0
  433. package/dist/styles/theme/amber.d.ts +1 -1
  434. package/dist/styles/theme/amber.d.ts.map +1 -1
  435. package/dist/styles/theme/amber.js +101 -0
  436. package/dist/styles/theme/blue.d.ts +1 -1
  437. package/dist/styles/theme/blue.d.ts.map +1 -1
  438. package/dist/styles/theme/blue.js +101 -0
  439. package/dist/styles/theme/charcoal.d.ts +1 -1
  440. package/dist/styles/theme/charcoal.d.ts.map +1 -1
  441. package/dist/styles/theme/charcoal.js +106 -0
  442. package/dist/styles/theme/cyan.d.ts +1 -1
  443. package/dist/styles/theme/cyan.d.ts.map +1 -1
  444. package/dist/styles/theme/cyan.js +96 -0
  445. package/dist/styles/theme/dark.d.ts +1 -1
  446. package/dist/styles/theme/dark.d.ts.map +1 -1
  447. package/dist/styles/theme/dark.js +106 -0
  448. package/dist/styles/theme/ebony.d.ts +1 -1
  449. package/dist/styles/theme/ebony.d.ts.map +1 -1
  450. package/dist/styles/theme/ebony.js +106 -0
  451. package/dist/styles/theme/festive.d.ts +1 -1
  452. package/dist/styles/theme/festive.d.ts.map +1 -1
  453. package/dist/styles/theme/festive.js +101 -0
  454. package/dist/styles/theme/graphite.d.ts +1 -1
  455. package/dist/styles/theme/graphite.d.ts.map +1 -1
  456. package/dist/styles/theme/graphite.js +106 -0
  457. package/dist/styles/theme/gray.d.ts +1 -1
  458. package/dist/styles/theme/gray.d.ts.map +1 -1
  459. package/dist/styles/theme/gray.js +101 -0
  460. package/dist/styles/theme/huawei.d.ts +1 -1
  461. package/dist/styles/theme/huawei.d.ts.map +1 -1
  462. package/dist/styles/theme/huawei.js +102 -0
  463. package/dist/styles/theme/index.d.ts +1 -1
  464. package/dist/styles/theme/index.d.ts.map +1 -1
  465. package/dist/styles/theme/index.js +276 -0
  466. package/dist/styles/theme/indigo.d.ts +1 -1
  467. package/dist/styles/theme/indigo.d.ts.map +1 -1
  468. package/dist/styles/theme/indigo.js +101 -0
  469. package/dist/styles/theme/ink.d.ts +1 -1
  470. package/dist/styles/theme/ink.d.ts.map +1 -1
  471. package/dist/styles/theme/ink.js +106 -0
  472. package/dist/styles/theme/light.d.ts +1 -1
  473. package/dist/styles/theme/light.d.ts.map +1 -1
  474. package/dist/styles/theme/light.js +102 -0
  475. package/dist/styles/theme/midnight.d.ts +1 -1
  476. package/dist/styles/theme/midnight.d.ts.map +1 -1
  477. package/dist/styles/theme/midnight.js +106 -0
  478. package/dist/styles/theme/navy.d.ts +1 -1
  479. package/dist/styles/theme/navy.d.ts.map +1 -1
  480. package/dist/styles/theme/navy.js +106 -0
  481. package/dist/styles/theme/obsidian.d.ts +1 -1
  482. package/dist/styles/theme/obsidian.d.ts.map +1 -1
  483. package/dist/styles/theme/obsidian.js +106 -0
  484. package/dist/styles/theme/onyx.d.ts +1 -1
  485. package/dist/styles/theme/onyx.d.ts.map +1 -1
  486. package/dist/styles/theme/onyx.js +106 -0
  487. package/dist/styles/theme/orange.d.ts +1 -1
  488. package/dist/styles/theme/orange.d.ts.map +1 -1
  489. package/dist/styles/theme/orange.js +101 -0
  490. package/dist/styles/theme/pink.d.ts +1 -1
  491. package/dist/styles/theme/pink.d.ts.map +1 -1
  492. package/dist/styles/theme/pink.js +101 -0
  493. package/dist/styles/theme/purple.d.ts +1 -1
  494. package/dist/styles/theme/purple.d.ts.map +1 -1
  495. package/dist/styles/theme/purple.js +101 -0
  496. package/dist/styles/theme/raisin.d.ts +1 -1
  497. package/dist/styles/theme/raisin.d.ts.map +1 -1
  498. package/dist/styles/theme/raisin.js +106 -0
  499. package/dist/styles/theme/slate.d.ts +1 -1
  500. package/dist/styles/theme/slate.d.ts.map +1 -1
  501. package/dist/styles/theme/slate.js +106 -0
  502. package/dist/styles/theme/teal.d.ts +1 -1
  503. package/dist/styles/theme/teal.d.ts.map +1 -1
  504. package/dist/styles/theme/teal.js +101 -0
  505. package/dist/styles/theme/tianyi.d.ts +1 -1
  506. package/dist/styles/theme/tianyi.d.ts.map +1 -1
  507. package/dist/styles/theme/tianyi.js +102 -0
  508. package/dist/styles/types.js +1 -0
  509. package/dist/styles/typo/business.js +34 -0
  510. package/dist/styles/typo/compact.js +34 -0
  511. package/dist/styles/typo/index.js +99 -0
  512. package/dist/styles/typo/luxury.js +34 -0
  513. package/dist/styles/typo/minimal.js +34 -0
  514. package/dist/types/index.js +2 -0
  515. package/dist/utils/dom.js +51 -0
  516. package/dist/utils/events.js +32 -0
  517. package/dist/utils/icon.js +176 -0
  518. package/dist/utils/index.js +4 -0
  519. package/dist/utils/utils.d.ts +5 -5
  520. package/dist/utils/utils.js +89 -0
  521. package/dist/utils/validation.js +52 -0
  522. package/docs/api/basic/button.md +9 -6
  523. package/docs/api/basic/tag.md +24 -17
  524. package/docs/api/data/box-table.md +73 -0
  525. package/docs/api/data/dropdown.md +3 -2
  526. package/docs/api/data/metrics.md +2 -0
  527. package/docs/api/data/table-column.md +37 -23
  528. package/docs/api/data/table.md +158 -44
  529. package/docs/api/data/tabs.md +46 -1
  530. package/docs/api/data/tree-menu.md +55 -2
  531. package/docs/api/display/box.md +66 -0
  532. package/docs/api/display/brief-box.md +73 -0
  533. package/docs/api/display/desc-item.md +57 -0
  534. package/docs/api/display/desc.md +204 -0
  535. package/docs/api/display/detail-box.md +75 -0
  536. package/docs/api/display/mini-box.md +100 -0
  537. package/docs/api/display/profile.md +92 -0
  538. package/docs/api/feedback/popover.md +10 -10
  539. package/docs/api/feedback/tooltip.md +14 -14
  540. package/docs/api/form/autoform-item.md +100 -0
  541. package/docs/api/form/autoform.md +4 -1
  542. package/docs/api/form/select.md +28 -28
  543. package/docs/api/framework/log-panel.md +46 -0
  544. package/docs/api/framework/sidebar.md +3 -2
  545. package/docs/api/summary.md +45 -35
  546. package/docs/api/theme/theme-switch.md +1 -1
  547. package/docs/autoform.md +13 -1
  548. package/docs/changelog/CHANGELOG.md +80 -0
  549. package/docs/changelog/VERSION_26.3.1.md +966 -0
  550. package/docs/datahub.md +1 -1
  551. package/docs/filter.md +332 -0
  552. package/docs/framework-integration.md +2 -2
  553. package/docs/guide.md +66 -1
  554. package/docs/i18n.md +2 -2
  555. package/docs/issue/issue_26.3.1.0.md +84 -0
  556. package/docs/issue/issue_26.3.1.1.md +72 -0
  557. package/docs/issue/issue_26.3.1.2.md +75 -0
  558. package/docs/issue/issue_26.3.1.3.md +78 -0
  559. package/docs/issue/issue_26.3.1.4.md +113 -0
  560. package/docs/issue/issue_26.3.1.5.md +142 -0
  561. package/docs/issue/issue_26.3.1.6.md +100 -0
  562. package/docs/issue/issue_26.3.1.7.md +78 -0
  563. package/docs/quickstart.md +5 -5
  564. package/package.json +5 -2
@@ -0,0 +1,276 @@
1
+ import { findClosestThemeElement } from '../../utils/dom';
2
+ import { aitheGlobalCssText } from '../global.css';
3
+ import { amberThemeTokens } from './amber';
4
+ import { blueThemeTokens } from './blue';
5
+ import { charcoalThemeTokens } from './charcoal';
6
+ import { cyanThemeTokens } from './cyan';
7
+ import { darkThemeTokens } from './dark';
8
+ import { ebonyThemeTokens } from './ebony';
9
+ import { festiveThemeTokens } from './festive';
10
+ import { graphiteThemeTokens } from './graphite';
11
+ import { grayThemeTokens } from './gray';
12
+ import { indigoThemeTokens } from './indigo';
13
+ import { inkThemeTokens } from './ink';
14
+ import { lightThemeTokens } from './light';
15
+ import { midnightThemeTokens } from './midnight';
16
+ import { navyThemeTokens } from './navy';
17
+ import { obsidianThemeTokens } from './obsidian';
18
+ import { onyxThemeTokens } from './onyx';
19
+ import { orangeThemeTokens } from './orange';
20
+ import { pinkThemeTokens } from './pink';
21
+ import { purpleThemeTokens } from './purple';
22
+ import { raisinThemeTokens } from './raisin';
23
+ import { slateThemeTokens } from './slate';
24
+ import { tealThemeTokens } from './teal';
25
+ import { huaweiThemeTokens } from './huawei';
26
+ import { tianyiThemeTokens } from './tianyi';
27
+ import { aliyunThemeTokens } from './aliyun';
28
+ /** Default theme name. 默认主题名称。 */
29
+ export const AITHE_DEFAULT_THEME = 'light';
30
+ /** localStorage key for persisting the selected theme. 用于持久化所选主题的 localStorage 键名。 */
31
+ export const AITHE_THEME_STORAGE_KEY = 'aithe-ui-theme';
32
+ /** CSS class prefix for theme application. 主题应用的 CSS 类名前缀。 */
33
+ const THEME_CLASS_PREFIX = 'aithe-theme-';
34
+ /** ID of the injected <style> element that holds all theme tokens. 注入的包含所有主题 token 的 <style> 元素 ID。 */
35
+ const AITHE_THEME_STYLE_ID = 'aithe-theme-tokens';
36
+ /** Listeners for theme change events. 主题变更事件监听器集合。 */
37
+ const themeListeners = new Set();
38
+ /** Concatenated CSS text for all built-in themes and global tokens. 所有内置主题和全局 token 的拼接 CSS 文本。 */
39
+ export const aitheThemeText = `
40
+ ${lightThemeTokens}
41
+ ${darkThemeTokens}
42
+ ${grayThemeTokens}
43
+ ${blueThemeTokens}
44
+ ${festiveThemeTokens}
45
+ ${orangeThemeTokens}
46
+ ${purpleThemeTokens}
47
+ ${pinkThemeTokens}
48
+ ${tealThemeTokens}
49
+ ${indigoThemeTokens}
50
+ ${cyanThemeTokens}
51
+ ${amberThemeTokens}
52
+ ${charcoalThemeTokens}
53
+ ${ebonyThemeTokens}
54
+ ${graphiteThemeTokens}
55
+ ${inkThemeTokens}
56
+ ${midnightThemeTokens}
57
+ ${navyThemeTokens}
58
+ ${obsidianThemeTokens}
59
+ ${onyxThemeTokens}
60
+ ${raisinThemeTokens}
61
+ ${slateThemeTokens}
62
+ ${huaweiThemeTokens}
63
+ ${tianyiThemeTokens}
64
+ ${aliyunThemeTokens}
65
+ ${aitheGlobalCssText}
66
+ `;
67
+ /**
68
+ * Theme color preview values for each built-in theme.
69
+ * 每个内置主题的颜色预览值。
70
+ */
71
+ export const THEME_COLORS = {
72
+ light: '#f5f5f5',
73
+ dark: '#1a1a2e',
74
+ gray: '#8c8c8c',
75
+ blue: '#4d8dff',
76
+ festive: '#f5313d',
77
+ orange: '#e87a18',
78
+ purple: '#7c4de0',
79
+ pink: '#e04d8a',
80
+ teal: '#13a8a8',
81
+ indigo: '#5c48d6',
82
+ cyan: '#0ebfc7',
83
+ amber: '#d4a010',
84
+ slate: '#5470e0',
85
+ charcoal: '#6454d4',
86
+ midnight: '#4070e0',
87
+ obsidian: '#4c6cd4',
88
+ graphite: '#4c60a6',
89
+ ink: '#6454d4',
90
+ onyx: '#506088',
91
+ ebony: '#6a5094',
92
+ navy: '#4066c0',
93
+ raisin: '#6e50c0',
94
+ huawei: '#cf102d',
95
+ tianyi: '#0052cc',
96
+ aliyun: '#ff6a00',
97
+ };
98
+ /**
99
+ * Built-in light theme names.
100
+ * 内置亮色主题名称列表。
101
+ */
102
+ export const LIGHT_THEMES = [
103
+ 'light', 'gray', 'blue', 'festive', 'orange', 'purple',
104
+ 'pink', 'teal', 'indigo', 'cyan', 'amber',
105
+ ];
106
+ /**
107
+ * Built-in dark theme names.
108
+ * 内置暗色主题名称列表。
109
+ */
110
+ export const DARK_THEMES = [
111
+ 'dark', 'slate', 'charcoal', 'midnight', 'obsidian', 'graphite',
112
+ 'ink', 'onyx', 'ebony', 'navy', 'raisin',
113
+ ];
114
+ /**
115
+ * Built-in cloud theme names.
116
+ * 内置云厂商主题名称列表。
117
+ */
118
+ export const CLOUD_THEMES = [
119
+ 'huawei', 'tianyi', 'aliyun',
120
+ ];
121
+ /**
122
+ * Static tree menu data for theme selection, compatible with `<aithe-tree-menu>`.
123
+ * 用于主题选择的静态树形菜单数据,兼容 `<aithe-tree-menu>`。
124
+ *
125
+ * Each theme group (light/dark) is a collapsible group node whose children
126
+ * are individual theme items. A special `type: 'theme'` node is placed at
127
+ * the end for the inline theme picker.
128
+ * 每个主题分组(亮色/暗色)是一个可折叠的分组节点,其子节点为各个主题项。
129
+ * 末尾放置一个 `type: 'theme'` 节点用于内联主题选择器。
130
+ */
131
+ export const themeMenu = [
132
+ {
133
+ id: 'light-group',
134
+ label: 'Light',
135
+ i18n: 'theme.light',
136
+ children: LIGHT_THEMES.map((t) => ({
137
+ id: t,
138
+ label: t.charAt(0).toUpperCase() + t.slice(1),
139
+ color: THEME_COLORS[t],
140
+ i18n: `theme.${t}`,
141
+ })),
142
+ },
143
+ {
144
+ id: 'dark-group',
145
+ label: 'Dark',
146
+ i18n: 'theme.dark',
147
+ children: DARK_THEMES.map((t) => ({
148
+ id: t,
149
+ label: t.charAt(0).toUpperCase() + t.slice(1),
150
+ color: THEME_COLORS[t],
151
+ i18n: `theme.${t}`,
152
+ })),
153
+ },
154
+ {
155
+ id: 'cloud-group',
156
+ label: 'Cloud',
157
+ i18n: 'theme.cloud',
158
+ children: CLOUD_THEMES.map((t) => ({
159
+ id: t,
160
+ label: t.charAt(0).toUpperCase() + t.slice(1),
161
+ color: THEME_COLORS[t],
162
+ i18n: `theme.${t}`,
163
+ })),
164
+ },
165
+ ];
166
+ /**
167
+ * Register the theme style sheet into the document head (idempotent).
168
+ * 将主题样式表注册到文档 head(幂等操作)。
169
+ */
170
+ export function registerAitheTheme() {
171
+ if (typeof document === 'undefined') {
172
+ return;
173
+ }
174
+ const existing = document.getElementById(AITHE_THEME_STYLE_ID);
175
+ if (existing) {
176
+ return;
177
+ }
178
+ const style = document.createElement('style');
179
+ style.id = AITHE_THEME_STYLE_ID;
180
+ style.textContent = aitheThemeText;
181
+ document.head.appendChild(style);
182
+ }
183
+ /** Get the CSS class name for a given theme. 获取指定主题的 CSS 类名。 */
184
+ export function getThemeClassName(theme) {
185
+ return `${THEME_CLASS_PREFIX}${theme}`;
186
+ }
187
+ /**
188
+ * Get the current global theme from the document element's data attribute or class list.
189
+ * 从文档元素的 data 属性或类列表获取当前全局主题。
190
+ */
191
+ export function getGlobalTheme() {
192
+ if (typeof document === 'undefined') {
193
+ return AITHE_DEFAULT_THEME;
194
+ }
195
+ const explicit = document.documentElement.dataset.aitheTheme;
196
+ if (explicit) {
197
+ return explicit;
198
+ }
199
+ const themedClass = Array.from(document.documentElement.classList).find((token) => token.startsWith(THEME_CLASS_PREFIX));
200
+ return themedClass?.replace(THEME_CLASS_PREFIX, '') || AITHE_DEFAULT_THEME;
201
+ }
202
+ /**
203
+ * Set the global theme on the document element and optionally persist to localStorage.
204
+ * 在文档元素上设置全局主题,可选持久化到 localStorage。
205
+ *
206
+ * @param theme - Theme name to apply. 要应用的主题名称。
207
+ * @param persist - Whether to save to localStorage. 是否保存到 localStorage。
208
+ */
209
+ export function setGlobalTheme(theme, persist = true) {
210
+ if (typeof document === 'undefined') {
211
+ return;
212
+ }
213
+ const root = document.documentElement;
214
+ const tokensToRemove = Array.from(root.classList).filter((token) => token.startsWith(THEME_CLASS_PREFIX));
215
+ for (const token of tokensToRemove) {
216
+ root.classList.remove(token);
217
+ }
218
+ root.classList.add(getThemeClassName(theme));
219
+ root.dataset.aitheTheme = theme;
220
+ if (persist && typeof localStorage !== 'undefined') {
221
+ localStorage.setItem(AITHE_THEME_STORAGE_KEY, theme);
222
+ }
223
+ for (const fn of themeListeners) {
224
+ fn();
225
+ }
226
+ }
227
+ /** Load the previously persisted theme from localStorage. 从 localStorage 加载之前持久化的主题。 */
228
+ export function loadStoredTheme() {
229
+ if (typeof localStorage === 'undefined') {
230
+ return null;
231
+ }
232
+ return localStorage.getItem(AITHE_THEME_STORAGE_KEY);
233
+ }
234
+ /**
235
+ * Resolve the computed theme for a given element: local override → closest themed ancestor → global theme.
236
+ * 解析给定元素的计算主题:本地覆盖 → 最近带主题祖先 → 全局主题。
237
+ *
238
+ * @param element - The element to resolve theme for. 要解析主题的元素。
239
+ * @param componentTheme - Optional local theme override. 可选的本地主题覆盖。
240
+ */
241
+ export function resolveComputedTheme(element, componentTheme) {
242
+ if (componentTheme) {
243
+ return componentTheme;
244
+ }
245
+ const themedParent = findClosestThemeElement(element);
246
+ if (themedParent) {
247
+ return (themedParent.dataset.aitheTheme ||
248
+ Array.from(themedParent.classList)
249
+ .find((token) => token.startsWith(THEME_CLASS_PREFIX))
250
+ ?.replace(THEME_CLASS_PREFIX, '') ||
251
+ AITHE_DEFAULT_THEME);
252
+ }
253
+ return getGlobalTheme();
254
+ }
255
+ /**
256
+ * Initialize the theme subsystem: register styles and apply the stored or default theme.
257
+ * 初始化主题子系统:注册样式并应用已存储或默认的主题。
258
+ *
259
+ * @param defaultTheme - Fallback theme when no stored preference exists. 无存储偏好时的回退主题。
260
+ */
261
+ export function initAitheTheme(defaultTheme = AITHE_DEFAULT_THEME) {
262
+ registerAitheTheme();
263
+ const stored = loadStoredTheme();
264
+ setGlobalTheme((stored || defaultTheme) ?? AITHE_DEFAULT_THEME, false);
265
+ }
266
+ /**
267
+ * Subscribe to theme changes. Returns an unsubscribe function.
268
+ * 订阅主题变更,返回取消订阅函数。
269
+ *
270
+ * @param fn - Callback function invoked when theme changes. 主题变更时调用的回调函数。
271
+ * @returns Unsubscribe function. 取消订阅函数。
272
+ */
273
+ export function onAitheThemeChange(fn) {
274
+ themeListeners.add(fn);
275
+ return () => themeListeners.delete(fn);
276
+ }
@@ -5,5 +5,5 @@
5
5
  * Steady business, premium texture with indigo-tinted backgrounds.
6
6
  * 沉稳商务、高端质感,配靛蓝调背景。
7
7
  */
8
- export declare const indigoThemeTokens = "\n.aithe-theme-indigo,\n[data-aithe-theme='indigo'] {\n color-scheme: light;\n --aithe-primary-1: #f0f0ff;\n --aithe-primary-2: #ddd8ff;\n --aithe-primary-3: #c0b8ff;\n --aithe-primary-4: #9e90ff;\n --aithe-primary-5: #7a68f0;\n --aithe-primary-6: #5c48d6;\n --aithe-primary-7: #4634b0;\n --aithe-primary-8: #34268a;\n --aithe-primary-9: #261a66;\n --aithe-primary-10: #1a1048;\n --aithe-success-1: #f0faf4;\n --aithe-success-2: #d6f0e0;\n --aithe-success-3: #aee0be;\n --aithe-success-4: #78cc96;\n --aithe-success-5: #4db872;\n --aithe-success-6: #2f9e56;\n --aithe-success-7: #1f8040;\n --aithe-success-8: #186432;\n --aithe-success-9: #124c26;\n --aithe-success-10: #0c361a;\n --aithe-warning-1: #fff9f0;\n --aithe-warning-2: #ffefcc;\n --aithe-warning-3: #ffe0a0;\n --aithe-warning-4: #ffcc6a;\n --aithe-warning-5: #f0b030;\n --aithe-warning-6: #c89018;\n --aithe-warning-7: #a07010;\n --aithe-warning-8: #7a550c;\n --aithe-warning-9: #563e08;\n --aithe-warning-10: #3a2a05;\n --aithe-danger-1: #fff2f4;\n --aithe-danger-2: #ffdde3;\n --aithe-danger-3: #ffc0cc;\n --aithe-danger-4: #ff96aa;\n --aithe-danger-5: #f06888;\n --aithe-danger-6: #d44068;\n --aithe-danger-7: #b02450;\n --aithe-danger-8: #8c183e;\n --aithe-danger-9: #6a1030;\n --aithe-danger-10: #480a20;\n --aithe-neutral-1: #f7f7fa;\n --aithe-neutral-2: #ededf2;\n --aithe-neutral-3: #d8d8e4;\n --aithe-neutral-4: #bcbcd0;\n --aithe-neutral-5: #9e9eb6;\n --aithe-neutral-6: #80809c;\n --aithe-neutral-7: #626280;\n --aithe-neutral-8: #484862;\n --aithe-neutral-9: #303044;\n --aithe-neutral-10: #18182a;\n --aithe-color-bg: #f0eef8;\n --aithe-color-bg-subtle: linear-gradient(180deg, #f6f4fc 0%, #e8e6f4 100%);\n --aithe-color-surface: rgba(250, 249, 255, 0.88);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #e2e0f0;\n --aithe-color-border: rgba(70, 50, 160, 0.18);\n --aithe-color-border-strong: rgba(55, 35, 140, 0.28);\n --aithe-color-text: #120e2a;\n --aithe-color-text-muted: #382e68;\n --aithe-color-text-subtle: #685ea0;\n --aithe-color-overlay: rgba(10, 6, 30, 0.48);\n --aithe-color-selection: rgba(92, 72, 214, 0.16);\n --aithe-color-focus-ring: rgba(92, 72, 214, 0.36);\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #7c3aed;\n --aithe-code-boolean: #b45309;\n --aithe-code-builtin: #4f46e5;\n --aithe-code-number: #b45309;\n --aithe-code-string: #15803d;\n --aithe-code-function: #4f46e5;\n --aithe-code-type: #a16207;\n --aithe-code-preprocessor: #7c3aed;\n --aithe-code-tag: #be185d;\n --aithe-code-attr: #b45309;\n --aithe-code-key: #be185d;\n --aithe-code-punctuation: #7c4dff;\n --aithe-code-entity: #b45309;\n --aithe-code-comment: #80809c;\n --aithe-code-doctype: #80809c;\n --aithe-code-placeholder: #80809c;\n}\n";
8
+ export declare const indigoThemeTokens = "\n.aithe-theme-indigo,\n[data-aithe-theme='indigo'] {\n color-scheme: light;\n --aithe-primary-1: #f0f0ff;\n --aithe-primary-2: #ddd8ff;\n --aithe-primary-3: #c0b8ff;\n --aithe-primary-4: #9e90ff;\n --aithe-primary-5: #7a68f0;\n --aithe-primary-6: #5c48d6;\n --aithe-primary-7: #4634b0;\n --aithe-primary-8: #34268a;\n --aithe-primary-9: #261a66;\n --aithe-primary-10: #1a1048;\n --aithe-success-1: #f0faf4;\n --aithe-success-2: #d6f0e0;\n --aithe-success-3: #aee0be;\n --aithe-success-4: #78cc96;\n --aithe-success-5: #4db872;\n --aithe-success-6: #2f9e56;\n --aithe-success-7: #1f8040;\n --aithe-success-8: #186432;\n --aithe-success-9: #124c26;\n --aithe-success-10: #0c361a;\n --aithe-warning-1: #fff9f0;\n --aithe-warning-2: #ffefcc;\n --aithe-warning-3: #ffe0a0;\n --aithe-warning-4: #ffcc6a;\n --aithe-warning-5: #f0b030;\n --aithe-warning-6: #c89018;\n --aithe-warning-7: #a07010;\n --aithe-warning-8: #7a550c;\n --aithe-warning-9: #563e08;\n --aithe-warning-10: #3a2a05;\n --aithe-danger-1: #fff2f4;\n --aithe-danger-2: #ffdde3;\n --aithe-danger-3: #ffc0cc;\n --aithe-danger-4: #ff96aa;\n --aithe-danger-5: #f06888;\n --aithe-danger-6: #d44068;\n --aithe-danger-7: #b02450;\n --aithe-danger-8: #8c183e;\n --aithe-danger-9: #6a1030;\n --aithe-danger-10: #480a20;\n --aithe-neutral-1: #f7f7fa;\n --aithe-neutral-2: #ededf2;\n --aithe-neutral-3: #d8d8e4;\n --aithe-neutral-4: #bcbcd0;\n --aithe-neutral-5: #9e9eb6;\n --aithe-neutral-6: #80809c;\n --aithe-neutral-7: #626280;\n --aithe-neutral-8: #484862;\n --aithe-neutral-9: #303044;\n --aithe-neutral-10: #18182a;\n --aithe-fill-1: #f7f8fa;\n --aithe-fill-2: #f0f1f3;\n --aithe-color-bg: #f0eef8;\n --aithe-color-bg-subtle: linear-gradient(180deg, #f6f4fc 0%, #e8e6f4 100%);\n --aithe-color-surface: rgba(250, 249, 255, 0.88);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #e2e0f0;\n --aithe-color-surface-hover: rgba(0, 0, 0, 0.04);\n --aithe-color-border: rgba(70, 50, 160, 0.18);\n --aithe-color-border-strong: rgba(55, 35, 140, 0.28);\n --aithe-color-text: #120e2a;\n --aithe-color-text-muted: #382e68;\n --aithe-color-text-subtle: #685ea0;\n --aithe-color-overlay: rgba(10, 6, 30, 0.48);\n --aithe-color-selection: rgba(92, 72, 214, 0.16);\n --aithe-color-focus-ring: rgba(92, 72, 214, 0.36);\n --aithe-color-text-secondary: #3d4a66;\n --aithe-color-bg-muted: #e8ecf4;\n --aithe-color-bg-hover: rgba(0, 0, 0, 0.04);\n --aithe-color-border-subtle: rgba(76, 94, 132, 0.10);\n --aithe-primary-6-rgb: 77, 141, 255;\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #7c3aed;\n --aithe-code-boolean: #b45309;\n --aithe-code-builtin: #4f46e5;\n --aithe-code-number: #b45309;\n --aithe-code-string: #15803d;\n --aithe-code-function: #4f46e5;\n --aithe-code-type: #a16207;\n --aithe-code-preprocessor: #7c3aed;\n --aithe-code-tag: #be185d;\n --aithe-code-attr: #b45309;\n --aithe-code-key: #be185d;\n --aithe-code-punctuation: #7c4dff;\n --aithe-code-entity: #b45309;\n --aithe-code-comment: #80809c;\n --aithe-code-doctype: #80809c;\n --aithe-code-placeholder: #80809c;\n}\n";
9
9
  //# sourceMappingURL=indigo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"indigo.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/indigo.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,qyFAqF7B,CAAC"}
1
+ {"version":3,"file":"indigo.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/indigo.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,inGA6F7B,CAAC"}
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Indigo theme tokens.
3
+ * 靛蓝主题令牌。
4
+ *
5
+ * Steady business, premium texture with indigo-tinted backgrounds.
6
+ * 沉稳商务、高端质感,配靛蓝调背景。
7
+ */
8
+ export const indigoThemeTokens = `
9
+ .aithe-theme-indigo,
10
+ [data-aithe-theme='indigo'] {
11
+ color-scheme: light;
12
+ --aithe-primary-1: #f0f0ff;
13
+ --aithe-primary-2: #ddd8ff;
14
+ --aithe-primary-3: #c0b8ff;
15
+ --aithe-primary-4: #9e90ff;
16
+ --aithe-primary-5: #7a68f0;
17
+ --aithe-primary-6: #5c48d6;
18
+ --aithe-primary-7: #4634b0;
19
+ --aithe-primary-8: #34268a;
20
+ --aithe-primary-9: #261a66;
21
+ --aithe-primary-10: #1a1048;
22
+ --aithe-success-1: #f0faf4;
23
+ --aithe-success-2: #d6f0e0;
24
+ --aithe-success-3: #aee0be;
25
+ --aithe-success-4: #78cc96;
26
+ --aithe-success-5: #4db872;
27
+ --aithe-success-6: #2f9e56;
28
+ --aithe-success-7: #1f8040;
29
+ --aithe-success-8: #186432;
30
+ --aithe-success-9: #124c26;
31
+ --aithe-success-10: #0c361a;
32
+ --aithe-warning-1: #fff9f0;
33
+ --aithe-warning-2: #ffefcc;
34
+ --aithe-warning-3: #ffe0a0;
35
+ --aithe-warning-4: #ffcc6a;
36
+ --aithe-warning-5: #f0b030;
37
+ --aithe-warning-6: #c89018;
38
+ --aithe-warning-7: #a07010;
39
+ --aithe-warning-8: #7a550c;
40
+ --aithe-warning-9: #563e08;
41
+ --aithe-warning-10: #3a2a05;
42
+ --aithe-danger-1: #fff2f4;
43
+ --aithe-danger-2: #ffdde3;
44
+ --aithe-danger-3: #ffc0cc;
45
+ --aithe-danger-4: #ff96aa;
46
+ --aithe-danger-5: #f06888;
47
+ --aithe-danger-6: #d44068;
48
+ --aithe-danger-7: #b02450;
49
+ --aithe-danger-8: #8c183e;
50
+ --aithe-danger-9: #6a1030;
51
+ --aithe-danger-10: #480a20;
52
+ --aithe-neutral-1: #f7f7fa;
53
+ --aithe-neutral-2: #ededf2;
54
+ --aithe-neutral-3: #d8d8e4;
55
+ --aithe-neutral-4: #bcbcd0;
56
+ --aithe-neutral-5: #9e9eb6;
57
+ --aithe-neutral-6: #80809c;
58
+ --aithe-neutral-7: #626280;
59
+ --aithe-neutral-8: #484862;
60
+ --aithe-neutral-9: #303044;
61
+ --aithe-neutral-10: #18182a;
62
+ --aithe-fill-1: #f7f8fa;
63
+ --aithe-fill-2: #f0f1f3;
64
+ --aithe-color-bg: #f0eef8;
65
+ --aithe-color-bg-subtle: linear-gradient(180deg, #f6f4fc 0%, #e8e6f4 100%);
66
+ --aithe-color-surface: rgba(250, 249, 255, 0.88);
67
+ --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);
68
+ --aithe-color-surface-muted: #e2e0f0;
69
+ --aithe-color-surface-hover: rgba(0, 0, 0, 0.04);
70
+ --aithe-color-border: rgba(70, 50, 160, 0.18);
71
+ --aithe-color-border-strong: rgba(55, 35, 140, 0.28);
72
+ --aithe-color-text: #120e2a;
73
+ --aithe-color-text-muted: #382e68;
74
+ --aithe-color-text-subtle: #685ea0;
75
+ --aithe-color-overlay: rgba(10, 6, 30, 0.48);
76
+ --aithe-color-selection: rgba(92, 72, 214, 0.16);
77
+ --aithe-color-focus-ring: rgba(92, 72, 214, 0.36);
78
+ --aithe-color-text-secondary: #3d4a66;
79
+ --aithe-color-bg-muted: #e8ecf4;
80
+ --aithe-color-bg-hover: rgba(0, 0, 0, 0.04);
81
+ --aithe-color-border-subtle: rgba(76, 94, 132, 0.10);
82
+ --aithe-primary-6-rgb: 77, 141, 255;
83
+ --aithe-color-text-on-primary: #ffffff;
84
+ --aithe-code-keyword: #7c3aed;
85
+ --aithe-code-boolean: #b45309;
86
+ --aithe-code-builtin: #4f46e5;
87
+ --aithe-code-number: #b45309;
88
+ --aithe-code-string: #15803d;
89
+ --aithe-code-function: #4f46e5;
90
+ --aithe-code-type: #a16207;
91
+ --aithe-code-preprocessor: #7c3aed;
92
+ --aithe-code-tag: #be185d;
93
+ --aithe-code-attr: #b45309;
94
+ --aithe-code-key: #be185d;
95
+ --aithe-code-punctuation: #7c4dff;
96
+ --aithe-code-entity: #b45309;
97
+ --aithe-code-comment: #80809c;
98
+ --aithe-code-doctype: #80809c;
99
+ --aithe-code-placeholder: #80809c;
100
+ }
101
+ `;
@@ -5,5 +5,5 @@
5
5
  * Deep indigo-black, literary & focused.
6
6
  * 深靛黑,文雅专注,适合写作工具、笔记应用、阅读器。
7
7
  */
8
- export declare const inkThemeTokens = "\n.aithe-theme-ink,\n[data-aithe-theme='ink'] {\n color-scheme: dark;\n --aithe-primary-1: #f2f0ff;\n --aithe-primary-2: #ddd8ff;\n --aithe-primary-3: #c0b8ff;\n --aithe-primary-4: #9e90ff;\n --aithe-primary-5: #7e6ef0;\n --aithe-primary-6: #6454d4;\n --aithe-primary-7: #5040ae;\n --aithe-primary-8: #3e308c;\n --aithe-primary-9: #30246c;\n --aithe-primary-10: #241a50;\n --aithe-success-1: #edfcf8;\n --aithe-success-2: #c9f5e8;\n --aithe-success-3: #9cecd4;\n --aithe-success-4: #6cd8b8;\n --aithe-success-5: #44c09e;\n --aithe-success-6: #2ea882;\n --aithe-success-7: #228c6c;\n --aithe-success-8: #1a7056;\n --aithe-success-9: #145a46;\n --aithe-success-10: #104838;\n --aithe-warning-1: #fff9eb;\n --aithe-warning-2: #ffefc4;\n --aithe-warning-3: #ffde8e;\n --aithe-warning-4: #ffc95a;\n --aithe-warning-5: #f0b03e;\n --aithe-warning-6: #d08e26;\n --aithe-warning-7: #ac701a;\n --aithe-warning-8: #8a5816;\n --aithe-warning-9: #6e4614;\n --aithe-warning-10: #583610;\n --aithe-danger-1: #fff0f6;\n --aithe-danger-2: #ffdae8;\n --aithe-danger-3: #ffb8d0;\n --aithe-danger-4: #ff8eb4;\n --aithe-danger-5: #f06896;\n --aithe-danger-6: #d44c7a;\n --aithe-danger-7: #b03460;\n --aithe-danger-8: #8c244c;\n --aithe-danger-9: #6e1a3a;\n --aithe-danger-10: #52122c;\n --aithe-neutral-1: #eeeef6;\n --aithe-neutral-2: #d0d0e0;\n --aithe-neutral-3: #aaaac0;\n --aithe-neutral-4: #8484a0;\n --aithe-neutral-5: #646480;\n --aithe-neutral-6: #4a4a64;\n --aithe-neutral-7: #363650;\n --aithe-neutral-8: #26263c;\n --aithe-neutral-9: #18182c;\n --aithe-neutral-10: #0c0c1c;\n --aithe-color-bg: #0e0c18;\n --aithe-color-bg-subtle: radial-gradient(circle at top, rgba(80, 60, 140, 0.16) 0%, rgba(14, 12, 24, 1) 55%);\n --aithe-color-surface: rgba(18, 16, 28, 0.84);\n --aithe-color-surface-elevated: rgba(24, 22, 38, 0.96);\n --aithe-color-surface-muted: #16142a;\n --aithe-color-border: rgba(150, 140, 200, 0.17);\n --aithe-color-border-strong: rgba(170, 160, 220, 0.25);\n --aithe-color-text: #eae8f8;\n --aithe-color-text-muted: #9c98b8;\n --aithe-color-text-subtle: #747098;\n --aithe-color-overlay: rgba(4, 2, 10, 0.68);\n --aithe-color-selection: rgba(100, 84, 212, 0.22);\n --aithe-color-focus-ring: rgba(100, 84, 212, 0.40);\n --aithe-shadow-1: 0 8px 18px rgba(0, 0, 0, 0.26);\n --aithe-shadow-2: 0 14px 34px rgba(0, 0, 0, 0.32);\n --aithe-shadow-3: 0 20px 44px rgba(0, 0, 0, 0.38);\n --aithe-shadow-4: 0 24px 56px rgba(0, 0, 0, 0.44);\n --aithe-shadow-5: 0 30px 72px rgba(0, 0, 0, 0.50);\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #c678dd;\n --aithe-code-boolean: #d19a66;\n --aithe-code-builtin: #9e90ff;\n --aithe-code-number: #d19a66;\n --aithe-code-string: #98c379;\n --aithe-code-function: #61afef;\n --aithe-code-type: #e5c07b;\n --aithe-code-preprocessor: #c678dd;\n --aithe-code-tag: #e06c75;\n --aithe-code-attr: #d19a66;\n --aithe-code-key: #e06c75;\n --aithe-code-punctuation: #89ddff;\n --aithe-code-entity: #d19a66;\n --aithe-code-comment: #363650;\n --aithe-code-doctype: #363650;\n --aithe-code-placeholder: #363650;\n}\n";
8
+ export declare const inkThemeTokens = "\n.aithe-theme-ink,\n[data-aithe-theme='ink'] {\n color-scheme: dark;\n --aithe-primary-1: #f2f0ff;\n --aithe-primary-2: #ddd8ff;\n --aithe-primary-3: #c0b8ff;\n --aithe-primary-4: #9e90ff;\n --aithe-primary-5: #7e6ef0;\n --aithe-primary-6: #6454d4;\n --aithe-primary-7: #5040ae;\n --aithe-primary-8: #3e308c;\n --aithe-primary-9: #30246c;\n --aithe-primary-10: #241a50;\n --aithe-success-1: #edfcf8;\n --aithe-success-2: #c9f5e8;\n --aithe-success-3: #9cecd4;\n --aithe-success-4: #6cd8b8;\n --aithe-success-5: #44c09e;\n --aithe-success-6: #2ea882;\n --aithe-success-7: #228c6c;\n --aithe-success-8: #1a7056;\n --aithe-success-9: #145a46;\n --aithe-success-10: #104838;\n --aithe-warning-1: #fff9eb;\n --aithe-warning-2: #ffefc4;\n --aithe-warning-3: #ffde8e;\n --aithe-warning-4: #ffc95a;\n --aithe-warning-5: #f0b03e;\n --aithe-warning-6: #d08e26;\n --aithe-warning-7: #ac701a;\n --aithe-warning-8: #8a5816;\n --aithe-warning-9: #6e4614;\n --aithe-warning-10: #583610;\n --aithe-danger-1: #fff0f6;\n --aithe-danger-2: #ffdae8;\n --aithe-danger-3: #ffb8d0;\n --aithe-danger-4: #ff8eb4;\n --aithe-danger-5: #f06896;\n --aithe-danger-6: #d44c7a;\n --aithe-danger-7: #b03460;\n --aithe-danger-8: #8c244c;\n --aithe-danger-9: #6e1a3a;\n --aithe-danger-10: #52122c;\n --aithe-neutral-1: #eeeef6;\n --aithe-neutral-2: #d0d0e0;\n --aithe-neutral-3: #aaaac0;\n --aithe-neutral-4: #8484a0;\n --aithe-neutral-5: #646480;\n --aithe-neutral-6: #4a4a64;\n --aithe-neutral-7: #363650;\n --aithe-neutral-8: #26263c;\n --aithe-neutral-9: #18182c;\n --aithe-neutral-10: #0c0c1c;\n --aithe-fill-1: #1a2133;\n --aithe-fill-2: #1e263a;\n --aithe-color-bg: #0e0c18;\n --aithe-color-bg-subtle: radial-gradient(circle at top, rgba(80, 60, 140, 0.16) 0%, rgba(14, 12, 24, 1) 55%);\n --aithe-color-surface: rgba(18, 16, 28, 0.84);\n --aithe-color-surface-elevated: rgba(24, 22, 38, 0.96);\n --aithe-color-surface-muted: #16142a;\n --aithe-color-surface-hover: rgba(255, 255, 255, 0.04);\n --aithe-color-border: rgba(150, 140, 200, 0.17);\n --aithe-color-border-strong: rgba(170, 160, 220, 0.25);\n --aithe-color-text: #eae8f8;\n --aithe-color-text-muted: #9c98b8;\n --aithe-color-text-subtle: #747098;\n --aithe-color-overlay: rgba(4, 2, 10, 0.68);\n --aithe-color-selection: rgba(100, 84, 212, 0.22);\n --aithe-color-focus-ring: rgba(100, 84, 212, 0.40);\n --aithe-color-text-secondary: #8894ab;\n --aithe-color-bg-muted: #151c2b;\n --aithe-color-bg-hover: rgba(255, 255, 255, 0.04);\n --aithe-color-border-subtle: rgba(172, 188, 217, 0.08);\n --aithe-primary-6-rgb: 74, 125, 255;\n --aithe-shadow-1: 0 8px 18px rgba(0, 0, 0, 0.26);\n --aithe-shadow-2: 0 14px 34px rgba(0, 0, 0, 0.32);\n --aithe-shadow-3: 0 20px 44px rgba(0, 0, 0, 0.38);\n --aithe-shadow-4: 0 24px 56px rgba(0, 0, 0, 0.44);\n --aithe-shadow-5: 0 30px 72px rgba(0, 0, 0, 0.50);\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #c678dd;\n --aithe-code-boolean: #d19a66;\n --aithe-code-builtin: #9e90ff;\n --aithe-code-number: #d19a66;\n --aithe-code-string: #98c379;\n --aithe-code-function: #61afef;\n --aithe-code-type: #e5c07b;\n --aithe-code-preprocessor: #c678dd;\n --aithe-code-tag: #e06c75;\n --aithe-code-attr: #d19a66;\n --aithe-code-key: #e06c75;\n --aithe-code-punctuation: #89ddff;\n --aithe-code-entity: #d19a66;\n --aithe-code-comment: #363650;\n --aithe-code-doctype: #363650;\n --aithe-code-placeholder: #363650;\n}\n";
9
9
  //# sourceMappingURL=ink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ink.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/ink.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,4kGA0F1B,CAAC"}
1
+ {"version":3,"file":"ink.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/ink.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,s6GAkG1B,CAAC"}
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Ink theme tokens.
3
+ * 墨色暗色主题令牌。
4
+ *
5
+ * Deep indigo-black, literary & focused.
6
+ * 深靛黑,文雅专注,适合写作工具、笔记应用、阅读器。
7
+ */
8
+ export const inkThemeTokens = `
9
+ .aithe-theme-ink,
10
+ [data-aithe-theme='ink'] {
11
+ color-scheme: dark;
12
+ --aithe-primary-1: #f2f0ff;
13
+ --aithe-primary-2: #ddd8ff;
14
+ --aithe-primary-3: #c0b8ff;
15
+ --aithe-primary-4: #9e90ff;
16
+ --aithe-primary-5: #7e6ef0;
17
+ --aithe-primary-6: #6454d4;
18
+ --aithe-primary-7: #5040ae;
19
+ --aithe-primary-8: #3e308c;
20
+ --aithe-primary-9: #30246c;
21
+ --aithe-primary-10: #241a50;
22
+ --aithe-success-1: #edfcf8;
23
+ --aithe-success-2: #c9f5e8;
24
+ --aithe-success-3: #9cecd4;
25
+ --aithe-success-4: #6cd8b8;
26
+ --aithe-success-5: #44c09e;
27
+ --aithe-success-6: #2ea882;
28
+ --aithe-success-7: #228c6c;
29
+ --aithe-success-8: #1a7056;
30
+ --aithe-success-9: #145a46;
31
+ --aithe-success-10: #104838;
32
+ --aithe-warning-1: #fff9eb;
33
+ --aithe-warning-2: #ffefc4;
34
+ --aithe-warning-3: #ffde8e;
35
+ --aithe-warning-4: #ffc95a;
36
+ --aithe-warning-5: #f0b03e;
37
+ --aithe-warning-6: #d08e26;
38
+ --aithe-warning-7: #ac701a;
39
+ --aithe-warning-8: #8a5816;
40
+ --aithe-warning-9: #6e4614;
41
+ --aithe-warning-10: #583610;
42
+ --aithe-danger-1: #fff0f6;
43
+ --aithe-danger-2: #ffdae8;
44
+ --aithe-danger-3: #ffb8d0;
45
+ --aithe-danger-4: #ff8eb4;
46
+ --aithe-danger-5: #f06896;
47
+ --aithe-danger-6: #d44c7a;
48
+ --aithe-danger-7: #b03460;
49
+ --aithe-danger-8: #8c244c;
50
+ --aithe-danger-9: #6e1a3a;
51
+ --aithe-danger-10: #52122c;
52
+ --aithe-neutral-1: #eeeef6;
53
+ --aithe-neutral-2: #d0d0e0;
54
+ --aithe-neutral-3: #aaaac0;
55
+ --aithe-neutral-4: #8484a0;
56
+ --aithe-neutral-5: #646480;
57
+ --aithe-neutral-6: #4a4a64;
58
+ --aithe-neutral-7: #363650;
59
+ --aithe-neutral-8: #26263c;
60
+ --aithe-neutral-9: #18182c;
61
+ --aithe-neutral-10: #0c0c1c;
62
+ --aithe-fill-1: #1a2133;
63
+ --aithe-fill-2: #1e263a;
64
+ --aithe-color-bg: #0e0c18;
65
+ --aithe-color-bg-subtle: radial-gradient(circle at top, rgba(80, 60, 140, 0.16) 0%, rgba(14, 12, 24, 1) 55%);
66
+ --aithe-color-surface: rgba(18, 16, 28, 0.84);
67
+ --aithe-color-surface-elevated: rgba(24, 22, 38, 0.96);
68
+ --aithe-color-surface-muted: #16142a;
69
+ --aithe-color-surface-hover: rgba(255, 255, 255, 0.04);
70
+ --aithe-color-border: rgba(150, 140, 200, 0.17);
71
+ --aithe-color-border-strong: rgba(170, 160, 220, 0.25);
72
+ --aithe-color-text: #eae8f8;
73
+ --aithe-color-text-muted: #9c98b8;
74
+ --aithe-color-text-subtle: #747098;
75
+ --aithe-color-overlay: rgba(4, 2, 10, 0.68);
76
+ --aithe-color-selection: rgba(100, 84, 212, 0.22);
77
+ --aithe-color-focus-ring: rgba(100, 84, 212, 0.40);
78
+ --aithe-color-text-secondary: #8894ab;
79
+ --aithe-color-bg-muted: #151c2b;
80
+ --aithe-color-bg-hover: rgba(255, 255, 255, 0.04);
81
+ --aithe-color-border-subtle: rgba(172, 188, 217, 0.08);
82
+ --aithe-primary-6-rgb: 74, 125, 255;
83
+ --aithe-shadow-1: 0 8px 18px rgba(0, 0, 0, 0.26);
84
+ --aithe-shadow-2: 0 14px 34px rgba(0, 0, 0, 0.32);
85
+ --aithe-shadow-3: 0 20px 44px rgba(0, 0, 0, 0.38);
86
+ --aithe-shadow-4: 0 24px 56px rgba(0, 0, 0, 0.44);
87
+ --aithe-shadow-5: 0 30px 72px rgba(0, 0, 0, 0.50);
88
+ --aithe-color-text-on-primary: #ffffff;
89
+ --aithe-code-keyword: #c678dd;
90
+ --aithe-code-boolean: #d19a66;
91
+ --aithe-code-builtin: #9e90ff;
92
+ --aithe-code-number: #d19a66;
93
+ --aithe-code-string: #98c379;
94
+ --aithe-code-function: #61afef;
95
+ --aithe-code-type: #e5c07b;
96
+ --aithe-code-preprocessor: #c678dd;
97
+ --aithe-code-tag: #e06c75;
98
+ --aithe-code-attr: #d19a66;
99
+ --aithe-code-key: #e06c75;
100
+ --aithe-code-punctuation: #89ddff;
101
+ --aithe-code-entity: #d19a66;
102
+ --aithe-code-comment: #363650;
103
+ --aithe-code-doctype: #363650;
104
+ --aithe-code-placeholder: #363650;
105
+ }
106
+ `;
@@ -5,5 +5,5 @@
5
5
  * Primary, success, warning, danger, neutral scales plus semantic color aliases.
6
6
  * primary、success、warning、danger、neutral 色阶及语义颜色别名。
7
7
  */
8
- export declare const lightThemeTokens = "\n.aithe-theme-light,\n[data-aithe-theme='light'],\n:root {\n color-scheme: light;\n --aithe-primary-1: #f2f7ff;\n --aithe-primary-2: #e3efff;\n --aithe-primary-3: #c8deff;\n --aithe-primary-4: #9ec5ff;\n --aithe-primary-5: #74aaff;\n --aithe-primary-6: #4d8dff;\n --aithe-primary-7: #326fe1;\n --aithe-primary-8: #2859b5;\n --aithe-primary-9: #22488f;\n --aithe-primary-10: #1d3970;\n --aithe-success-1: #effcf6;\n --aithe-success-2: #d9f5e6;\n --aithe-success-3: #b7ebcf;\n --aithe-success-4: #84d9ae;\n --aithe-success-5: #52c48a;\n --aithe-success-6: #2eae70;\n --aithe-success-7: #1f915d;\n --aithe-success-8: #1b754e;\n --aithe-success-9: #185e40;\n --aithe-success-10: #144b34;\n --aithe-warning-1: #fff8e8;\n --aithe-warning-2: #ffefc7;\n --aithe-warning-3: #ffe08c;\n --aithe-warning-4: #ffcc59;\n --aithe-warning-5: #f6b73a;\n --aithe-warning-6: #dd9621;\n --aithe-warning-7: #b97516;\n --aithe-warning-8: #955b14;\n --aithe-warning-9: #754712;\n --aithe-warning-10: #5c390f;\n --aithe-danger-1: #fff1f2;\n --aithe-danger-2: #ffe0e4;\n --aithe-danger-3: #ffc4cb;\n --aithe-danger-4: #ff9ca8;\n --aithe-danger-5: #ff7283;\n --aithe-danger-6: #f04f64;\n --aithe-danger-7: #cf3950;\n --aithe-danger-8: #ab3144;\n --aithe-danger-9: #882c3a;\n --aithe-danger-10: #6d2630;\n --aithe-neutral-1: #f7f8fb;\n --aithe-neutral-2: #eef1f6;\n --aithe-neutral-3: #e1e6ef;\n --aithe-neutral-4: #c9d1df;\n --aithe-neutral-5: #aeb8cb;\n --aithe-neutral-6: #8f9ab0;\n --aithe-neutral-7: #6d788f;\n --aithe-neutral-8: #4d576b;\n --aithe-neutral-9: #2f3747;\n --aithe-neutral-10: #151a22;\n --aithe-color-bg: #f2f5fa;\n --aithe-color-bg-subtle: linear-gradient(180deg, #f7faff 0%, #eef2f8 100%);\n --aithe-color-surface: rgba(255, 255, 255, 0.85);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #e8ecf4;\n --aithe-color-border: rgba(76, 94, 132, 0.20);\n --aithe-color-border-strong: rgba(52, 66, 96, 0.30);\n --aithe-color-text: #0e1628;\n --aithe-color-text-muted: #3d4a66;\n --aithe-color-text-subtle: #6a7a94;\n --aithe-color-overlay: rgba(11, 17, 29, 0.54);\n --aithe-color-selection: rgba(77, 141, 255, 0.18);\n --aithe-color-focus-ring: rgba(77, 141, 255, 0.38);\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #a626a4;\n --aithe-code-boolean: #986801;\n --aithe-code-builtin: #4078f2;\n --aithe-code-number: #986801;\n --aithe-code-string: #50a14f;\n --aithe-code-function: #4078f2;\n --aithe-code-type: #c18401;\n --aithe-code-preprocessor: #a626a4;\n --aithe-code-tag: #e45649;\n --aithe-code-attr: #986801;\n --aithe-code-key: #e45649;\n --aithe-code-punctuation: #5c6bc0;\n --aithe-code-entity: #986801;\n --aithe-code-comment: #a0a1a7;\n --aithe-code-doctype: #a0a1a7;\n --aithe-code-placeholder: #a0a1a7;\n}\n";
8
+ export declare const lightThemeTokens = "\n.aithe-theme-light,\n[data-aithe-theme='light'],\n:root {\n color-scheme: light;\n --aithe-primary-1: #f2f7ff;\n --aithe-primary-2: #e3efff;\n --aithe-primary-3: #c8deff;\n --aithe-primary-4: #9ec5ff;\n --aithe-primary-5: #74aaff;\n --aithe-primary-6: #4d8dff;\n --aithe-primary-7: #326fe1;\n --aithe-primary-8: #2859b5;\n --aithe-primary-9: #22488f;\n --aithe-primary-10: #1d3970;\n --aithe-success-1: #effcf6;\n --aithe-success-2: #d9f5e6;\n --aithe-success-3: #b7ebcf;\n --aithe-success-4: #84d9ae;\n --aithe-success-5: #52c48a;\n --aithe-success-6: #2eae70;\n --aithe-success-7: #1f915d;\n --aithe-success-8: #1b754e;\n --aithe-success-9: #185e40;\n --aithe-success-10: #144b34;\n --aithe-warning-1: #fff8e8;\n --aithe-warning-2: #ffefc7;\n --aithe-warning-3: #ffe08c;\n --aithe-warning-4: #ffcc59;\n --aithe-warning-5: #f6b73a;\n --aithe-warning-6: #dd9621;\n --aithe-warning-7: #b97516;\n --aithe-warning-8: #955b14;\n --aithe-warning-9: #754712;\n --aithe-warning-10: #5c390f;\n --aithe-danger-1: #fff1f2;\n --aithe-danger-2: #ffe0e4;\n --aithe-danger-3: #ffc4cb;\n --aithe-danger-4: #ff9ca8;\n --aithe-danger-5: #ff7283;\n --aithe-danger-6: #f04f64;\n --aithe-danger-7: #cf3950;\n --aithe-danger-8: #ab3144;\n --aithe-danger-9: #882c3a;\n --aithe-danger-10: #6d2630;\n --aithe-neutral-1: #f7f8fb;\n --aithe-neutral-2: #eef1f6;\n --aithe-neutral-3: #e1e6ef;\n --aithe-neutral-4: #c9d1df;\n --aithe-neutral-5: #aeb8cb;\n --aithe-neutral-6: #8f9ab0;\n --aithe-neutral-7: #6d788f;\n --aithe-neutral-8: #4d576b;\n --aithe-neutral-9: #2f3747;\n --aithe-neutral-10: #151a22;\n --aithe-fill-1: #f7f8fa;\n --aithe-fill-2: #f0f1f3;\n --aithe-color-bg: #f2f5fa;\n --aithe-color-bg-subtle: linear-gradient(180deg, #f7faff 0%, #eef2f8 100%);\n --aithe-color-surface: rgba(255, 255, 255, 0.85);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #e8ecf4;\n --aithe-color-surface-hover: rgba(0, 0, 0, 0.04);\n --aithe-color-border: rgba(76, 94, 132, 0.20);\n --aithe-color-border-strong: rgba(52, 66, 96, 0.30);\n --aithe-color-text: #0e1628;\n --aithe-color-text-muted: #3d4a66;\n --aithe-color-text-subtle: #6a7a94;\n --aithe-color-overlay: rgba(11, 17, 29, 0.54);\n --aithe-color-selection: rgba(77, 141, 255, 0.18);\n --aithe-color-focus-ring: rgba(77, 141, 255, 0.38);\n --aithe-color-text-secondary: #3d4a66;\n --aithe-color-bg-muted: #e8ecf4;\n --aithe-color-bg-hover: rgba(0, 0, 0, 0.04);\n --aithe-color-border-subtle: rgba(76, 94, 132, 0.10);\n --aithe-primary-6-rgb: 77, 141, 255;\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #a626a4;\n --aithe-code-boolean: #986801;\n --aithe-code-builtin: #4078f2;\n --aithe-code-number: #986801;\n --aithe-code-string: #50a14f;\n --aithe-code-function: #4078f2;\n --aithe-code-type: #c18401;\n --aithe-code-preprocessor: #a626a4;\n --aithe-code-tag: #e45649;\n --aithe-code-attr: #986801;\n --aithe-code-key: #e45649;\n --aithe-code-punctuation: #5c6bc0;\n --aithe-code-entity: #986801;\n --aithe-code-comment: #a0a1a7;\n --aithe-code-doctype: #a0a1a7;\n --aithe-code-placeholder: #a0a1a7;\n}\n";
9
9
  //# sourceMappingURL=light.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/light.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,6yFAsF5B,CAAC"}
1
+ {"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/light.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,ynGA8F5B,CAAC"}
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Light theme tokens.
3
+ * 浅色主题令牌。
4
+ *
5
+ * Primary, success, warning, danger, neutral scales plus semantic color aliases.
6
+ * primary、success、warning、danger、neutral 色阶及语义颜色别名。
7
+ */
8
+ export const lightThemeTokens = `
9
+ .aithe-theme-light,
10
+ [data-aithe-theme='light'],
11
+ :root {
12
+ color-scheme: light;
13
+ --aithe-primary-1: #f2f7ff;
14
+ --aithe-primary-2: #e3efff;
15
+ --aithe-primary-3: #c8deff;
16
+ --aithe-primary-4: #9ec5ff;
17
+ --aithe-primary-5: #74aaff;
18
+ --aithe-primary-6: #4d8dff;
19
+ --aithe-primary-7: #326fe1;
20
+ --aithe-primary-8: #2859b5;
21
+ --aithe-primary-9: #22488f;
22
+ --aithe-primary-10: #1d3970;
23
+ --aithe-success-1: #effcf6;
24
+ --aithe-success-2: #d9f5e6;
25
+ --aithe-success-3: #b7ebcf;
26
+ --aithe-success-4: #84d9ae;
27
+ --aithe-success-5: #52c48a;
28
+ --aithe-success-6: #2eae70;
29
+ --aithe-success-7: #1f915d;
30
+ --aithe-success-8: #1b754e;
31
+ --aithe-success-9: #185e40;
32
+ --aithe-success-10: #144b34;
33
+ --aithe-warning-1: #fff8e8;
34
+ --aithe-warning-2: #ffefc7;
35
+ --aithe-warning-3: #ffe08c;
36
+ --aithe-warning-4: #ffcc59;
37
+ --aithe-warning-5: #f6b73a;
38
+ --aithe-warning-6: #dd9621;
39
+ --aithe-warning-7: #b97516;
40
+ --aithe-warning-8: #955b14;
41
+ --aithe-warning-9: #754712;
42
+ --aithe-warning-10: #5c390f;
43
+ --aithe-danger-1: #fff1f2;
44
+ --aithe-danger-2: #ffe0e4;
45
+ --aithe-danger-3: #ffc4cb;
46
+ --aithe-danger-4: #ff9ca8;
47
+ --aithe-danger-5: #ff7283;
48
+ --aithe-danger-6: #f04f64;
49
+ --aithe-danger-7: #cf3950;
50
+ --aithe-danger-8: #ab3144;
51
+ --aithe-danger-9: #882c3a;
52
+ --aithe-danger-10: #6d2630;
53
+ --aithe-neutral-1: #f7f8fb;
54
+ --aithe-neutral-2: #eef1f6;
55
+ --aithe-neutral-3: #e1e6ef;
56
+ --aithe-neutral-4: #c9d1df;
57
+ --aithe-neutral-5: #aeb8cb;
58
+ --aithe-neutral-6: #8f9ab0;
59
+ --aithe-neutral-7: #6d788f;
60
+ --aithe-neutral-8: #4d576b;
61
+ --aithe-neutral-9: #2f3747;
62
+ --aithe-neutral-10: #151a22;
63
+ --aithe-fill-1: #f7f8fa;
64
+ --aithe-fill-2: #f0f1f3;
65
+ --aithe-color-bg: #f2f5fa;
66
+ --aithe-color-bg-subtle: linear-gradient(180deg, #f7faff 0%, #eef2f8 100%);
67
+ --aithe-color-surface: rgba(255, 255, 255, 0.85);
68
+ --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);
69
+ --aithe-color-surface-muted: #e8ecf4;
70
+ --aithe-color-surface-hover: rgba(0, 0, 0, 0.04);
71
+ --aithe-color-border: rgba(76, 94, 132, 0.20);
72
+ --aithe-color-border-strong: rgba(52, 66, 96, 0.30);
73
+ --aithe-color-text: #0e1628;
74
+ --aithe-color-text-muted: #3d4a66;
75
+ --aithe-color-text-subtle: #6a7a94;
76
+ --aithe-color-overlay: rgba(11, 17, 29, 0.54);
77
+ --aithe-color-selection: rgba(77, 141, 255, 0.18);
78
+ --aithe-color-focus-ring: rgba(77, 141, 255, 0.38);
79
+ --aithe-color-text-secondary: #3d4a66;
80
+ --aithe-color-bg-muted: #e8ecf4;
81
+ --aithe-color-bg-hover: rgba(0, 0, 0, 0.04);
82
+ --aithe-color-border-subtle: rgba(76, 94, 132, 0.10);
83
+ --aithe-primary-6-rgb: 77, 141, 255;
84
+ --aithe-color-text-on-primary: #ffffff;
85
+ --aithe-code-keyword: #a626a4;
86
+ --aithe-code-boolean: #986801;
87
+ --aithe-code-builtin: #4078f2;
88
+ --aithe-code-number: #986801;
89
+ --aithe-code-string: #50a14f;
90
+ --aithe-code-function: #4078f2;
91
+ --aithe-code-type: #c18401;
92
+ --aithe-code-preprocessor: #a626a4;
93
+ --aithe-code-tag: #e45649;
94
+ --aithe-code-attr: #986801;
95
+ --aithe-code-key: #e45649;
96
+ --aithe-code-punctuation: #5c6bc0;
97
+ --aithe-code-entity: #986801;
98
+ --aithe-code-comment: #a0a1a7;
99
+ --aithe-code-doctype: #a0a1a7;
100
+ --aithe-code-placeholder: #a0a1a7;
101
+ }
102
+ `;