@fangxinyan/lumina 0.6.7 → 0.6.9

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 (222) hide show
  1. package/README.md +17 -6
  2. package/dist/Alert.cjs +3 -3
  3. package/dist/Alert.js +2 -2
  4. package/dist/AppShell.cjs +5 -5
  5. package/dist/AppShell.js +1 -1
  6. package/dist/AutoComplete.cjs +5 -5
  7. package/dist/AutoComplete.js +4 -4
  8. package/dist/Avatar.cjs +2 -2
  9. package/dist/Avatar.js +1 -1
  10. package/dist/Badge.cjs +2 -2
  11. package/dist/Badge.js +1 -1
  12. package/dist/Button.cjs +7 -3
  13. package/dist/Button.d.cts +13 -1
  14. package/dist/Button.d.ts +13 -1
  15. package/dist/Button.js +2 -2
  16. package/dist/Calendar.cjs +3 -3
  17. package/dist/Calendar.js +2 -2
  18. package/dist/{Card-M6UMBDD2.css → Card-4DKCXWFU.css} +4 -2
  19. package/dist/Card.cjs +3 -3
  20. package/dist/Card.js +2 -2
  21. package/dist/Cascader.cjs +5 -5
  22. package/dist/Cascader.js +4 -4
  23. package/dist/Checkbox.cjs +3 -3
  24. package/dist/Checkbox.js +2 -2
  25. package/dist/Collapse.cjs +3 -3
  26. package/dist/Collapse.js +2 -2
  27. package/dist/ColorPicker.cjs +2 -2
  28. package/dist/ColorPicker.js +1 -1
  29. package/dist/CommandPalette.cjs +5 -5
  30. package/dist/CommandPalette.js +4 -4
  31. package/dist/ContextMenu.cjs +2 -2
  32. package/dist/ContextMenu.js +1 -1
  33. package/dist/Divider.cjs +2 -2
  34. package/dist/Divider.js +1 -1
  35. package/dist/Drawer.cjs +3 -3
  36. package/dist/Drawer.js +2 -2
  37. package/dist/Empty.cjs +2 -2
  38. package/dist/Empty.js +1 -1
  39. package/dist/Form.cjs +4 -4
  40. package/dist/Form.js +1 -1
  41. package/dist/Icon.cjs +49 -49
  42. package/dist/Icon.js +1 -1
  43. package/dist/Image.cjs +6 -6
  44. package/dist/Image.js +2 -2
  45. package/dist/Input.cjs +5 -5
  46. package/dist/Input.js +3 -3
  47. package/dist/InputNumber.cjs +5 -5
  48. package/dist/InputNumber.js +4 -4
  49. package/dist/List.cjs +2 -2
  50. package/dist/List.js +1 -1
  51. package/dist/Message.cjs +6 -6
  52. package/dist/Message.js +2 -2
  53. package/dist/Modal.cjs +4 -4
  54. package/dist/Modal.js +3 -3
  55. package/dist/Pagination.cjs +7 -7
  56. package/dist/Pagination.js +6 -6
  57. package/dist/Popover.cjs +2 -2
  58. package/dist/Popover.js +1 -1
  59. package/dist/Progress.cjs +2 -2
  60. package/dist/Progress.js +1 -1
  61. package/dist/Radio.cjs +3 -3
  62. package/dist/Radio.js +1 -1
  63. package/dist/Select.cjs +6 -6
  64. package/dist/Select.js +5 -5
  65. package/dist/Skeleton.cjs +2 -2
  66. package/dist/Skeleton.js +1 -1
  67. package/dist/Slider.cjs +2 -2
  68. package/dist/Slider.js +1 -1
  69. package/dist/Spin.cjs +2 -2
  70. package/dist/Spin.js +1 -1
  71. package/dist/Splitter.cjs +2 -2
  72. package/dist/Splitter.js +1 -1
  73. package/dist/StatusBar.cjs +3 -3
  74. package/dist/StatusBar.js +1 -1
  75. package/dist/Surface.cjs +4 -4
  76. package/dist/Surface.js +2 -2
  77. package/dist/Switch.cjs +2 -2
  78. package/dist/Switch.js +1 -1
  79. package/dist/Table.cjs +9 -9
  80. package/dist/Table.js +8 -8
  81. package/dist/TablePro.cjs +10 -10
  82. package/dist/TablePro.d.cts +11 -7
  83. package/dist/TablePro.d.ts +11 -7
  84. package/dist/TablePro.js +9 -9
  85. package/dist/Tabs.cjs +2 -2
  86. package/dist/Tabs.js +1 -1
  87. package/dist/Tag.cjs +3 -3
  88. package/dist/Tag.js +2 -2
  89. package/dist/Textarea.cjs +4 -4
  90. package/dist/Textarea.js +2 -2
  91. package/dist/Theme.cjs +11 -11
  92. package/dist/Theme.js +1 -1
  93. package/dist/{ThemePanel-76LB3YA5.css → ThemePanel-TEHB2JCQ.css} +68 -0
  94. package/dist/ThemePanel.cjs +13 -13
  95. package/dist/ThemePanel.d.cts +12 -2
  96. package/dist/ThemePanel.d.ts +12 -2
  97. package/dist/ThemePanel.js +10 -10
  98. package/dist/Timeline.cjs +3 -3
  99. package/dist/Timeline.js +2 -2
  100. package/dist/Tooltip.cjs +2 -2
  101. package/dist/Tooltip.js +1 -1
  102. package/dist/Typography.cjs +7 -7
  103. package/dist/Typography.js +2 -2
  104. package/dist/{chunk-MOMLQP7B.cjs → chunk-2EY34PPA.cjs} +1 -1
  105. package/dist/{chunk-IHK2FRTS.cjs → chunk-2LM5UYNU.cjs} +1 -1
  106. package/dist/{chunk-Y5F7ZTBH.js → chunk-3GJZRYTD.js} +1 -1
  107. package/dist/{chunk-D5PCIVID.cjs → chunk-3HPHQV2L.cjs} +3 -3
  108. package/dist/{chunk-DYHNOYRC.cjs → chunk-3NSBPQBT.cjs} +6 -6
  109. package/dist/{chunk-LI4XJTEA.js → chunk-3VXBSLPT.js} +3 -3
  110. package/dist/{chunk-YVTLHTG6.js → chunk-44WHEN76.js} +1 -1
  111. package/dist/{chunk-NT6CJYI3.cjs → chunk-4LOOWTRX.cjs} +4 -4
  112. package/dist/{chunk-U2H4DRMV.cjs → chunk-4N64ZL5M.cjs} +1 -1
  113. package/dist/{chunk-6XVLERA3.cjs → chunk-5C3ZSOKF.cjs} +1 -1
  114. package/dist/{chunk-2ZFJTMEF.js → chunk-5CWTC3I2.js} +3 -3
  115. package/dist/{chunk-ZPKHGKVL.cjs → chunk-5KGGB3EH.cjs} +3 -3
  116. package/dist/{chunk-W5CJC7S7.js → chunk-62RPBEAW.js} +2 -2
  117. package/dist/{chunk-NE7IUGMK.js → chunk-64ZQHLHL.js} +2 -2
  118. package/dist/{chunk-YJEXAO2I.js → chunk-6VSNO7IH.js} +1 -1
  119. package/dist/{chunk-3YP7CBJT.js → chunk-762NV3E4.js} +2 -2
  120. package/dist/{chunk-SYWTT5TY.cjs → chunk-76OH42CM.cjs} +4 -4
  121. package/dist/{chunk-56PHETWO.js → chunk-7DNK5JB2.js} +2 -2
  122. package/dist/{chunk-I4M2RL2X.js → chunk-7IWYBQAE.js} +2 -2
  123. package/dist/{chunk-VAXWWJJP.cjs → chunk-7OYMY22O.cjs} +8 -8
  124. package/dist/{chunk-L27C5O4W.cjs → chunk-7UCXY4T5.cjs} +3 -3
  125. package/dist/{chunk-7NZ2A4MA.js → chunk-7ZCTEIOW.js} +1 -1
  126. package/dist/{chunk-QY76WTO5.cjs → chunk-AA2FRQUQ.cjs} +8 -8
  127. package/dist/{chunk-SABWUELE.js → chunk-ACZA7HHP.js} +1 -1
  128. package/dist/{chunk-GZCU6HXD.js → chunk-AHS2AFTD.js} +1 -1
  129. package/dist/{chunk-YSCIMHOI.cjs → chunk-AYZ4BWHG.cjs} +4 -4
  130. package/dist/{chunk-NFXHIO3G.js → chunk-BY2YW5XN.js} +1 -1
  131. package/dist/{chunk-OGPDCBPD.cjs → chunk-CPBFUKSX.cjs} +11 -11
  132. package/dist/{chunk-R74TZKJS.cjs → chunk-D56CNYUP.cjs} +3 -3
  133. package/dist/{chunk-4UKM4KAC.cjs → chunk-DDCAHAAE.cjs} +1 -1
  134. package/dist/{chunk-N2COYOXE.cjs → chunk-DGB6KVU3.cjs} +1 -1
  135. package/dist/{chunk-PNZJFLMY.js → chunk-EXN64ADJ.js} +2 -2
  136. package/dist/{chunk-LFTCK2VM.cjs → chunk-F3DN2JGE.cjs} +489 -238
  137. package/dist/{chunk-IDJCFYPP.cjs → chunk-F65KYGPX.cjs} +14 -14
  138. package/dist/{chunk-RIUDYPRB.cjs → chunk-FJHFUES7.cjs} +1 -1
  139. package/dist/{chunk-66GXZQKL.cjs → chunk-FL25IGIG.cjs} +3 -3
  140. package/dist/{chunk-REMJWNAT.js → chunk-FPII6I52.js} +3 -3
  141. package/dist/{chunk-YSXD344H.js → chunk-FZITSOKH.js} +4 -4
  142. package/dist/{chunk-2NT5QKEX.js → chunk-GEANNF4T.js} +2 -2
  143. package/dist/{chunk-6LARTGLP.cjs → chunk-GJAEGIPM.cjs} +1 -1
  144. package/dist/{chunk-PVOQWCP2.cjs → chunk-GT34KAMX.cjs} +3 -3
  145. package/dist/{chunk-TVUBGXWA.js → chunk-GVPGJXZT.js} +1 -1
  146. package/dist/{chunk-J7EQJXSJ.js → chunk-HEBBQZUT.js} +3 -3
  147. package/dist/{chunk-6GQPF3EI.cjs → chunk-HFM4YKM5.cjs} +1 -1
  148. package/dist/{chunk-2SCXQ7QS.js → chunk-HR5QBBIS.js} +1 -1
  149. package/dist/{chunk-ACQSRMLF.cjs → chunk-HTW62OMX.cjs} +4 -4
  150. package/dist/{chunk-VNNQYJLT.js → chunk-I5XCHN67.js} +2 -2
  151. package/dist/{chunk-N3OLFKV5.cjs → chunk-IMAGOTLP.cjs} +1 -1
  152. package/dist/{chunk-Z4PZ2ZHI.cjs → chunk-J2R3BEEH.cjs} +1 -1
  153. package/dist/{chunk-PEJLXJQD.js → chunk-JPAYPF6H.js} +1 -1
  154. package/dist/{chunk-YNCDTKAE.cjs → chunk-JWZ6HJIF.cjs} +1 -1
  155. package/dist/{chunk-S6OKX4H7.cjs → chunk-KOY7GNP3.cjs} +1 -1
  156. package/dist/{chunk-NDO22RER.cjs → chunk-LF3ATJFY.cjs} +1 -1
  157. package/dist/{chunk-5NFSDFBB.cjs → chunk-LW6Z2WDZ.cjs} +3 -3
  158. package/dist/{chunk-YUKXNWVE.cjs → chunk-MLOT2AGK.cjs} +1 -1
  159. package/dist/{chunk-7D76MI37.js → chunk-MOLKLUSQ.js} +4 -4
  160. package/dist/{chunk-SG42F5VB.cjs → chunk-MZCKPLHQ.cjs} +1 -1
  161. package/dist/chunk-N24KHD5B.js +84 -0
  162. package/dist/{chunk-C24W6PTJ.cjs → chunk-N4JH6HHA.cjs} +1 -1
  163. package/dist/{chunk-5JNDDWFZ.js → chunk-NUF3EA7T.js} +2 -2
  164. package/dist/chunk-NUNPFMCM.cjs +106 -0
  165. package/dist/{chunk-WHXSUPJB.cjs → chunk-OUSJMIZX.cjs} +4 -4
  166. package/dist/{chunk-AJH2O4WC.js → chunk-OVTB7FQQ.js} +2 -2
  167. package/dist/{chunk-HFUHQUPQ.js → chunk-P434GBHP.js} +1 -1
  168. package/dist/{chunk-66T76GII.cjs → chunk-PEFIXNAV.cjs} +6 -6
  169. package/dist/{chunk-WXWFMWWF.js → chunk-PHONNUK2.js} +2 -2
  170. package/dist/{chunk-MYRLCN6V.js → chunk-PWPL3DRN.js} +1 -1
  171. package/dist/{chunk-HU7T64Y3.js → chunk-Q5KHJ32P.js} +1 -1
  172. package/dist/{chunk-OHFZ7L4T.js → chunk-Q77BWQNG.js} +1 -1
  173. package/dist/{chunk-XVP7IKLZ.js → chunk-QDXBI3PV.js} +3 -3
  174. package/dist/{chunk-PKHITACT.js → chunk-QKWRN2JL.js} +1 -1
  175. package/dist/{chunk-7ZNGHWVS.js → chunk-R53WIZY5.js} +1 -1
  176. package/dist/{chunk-LQLOOUS3.js → chunk-RYRBNMCC.js} +1 -1
  177. package/dist/{chunk-2ZADGBUN.cjs → chunk-S4CZ3VO6.cjs} +9 -4
  178. package/dist/{chunk-N4USDBY2.js → chunk-SGNDIRZC.js} +3 -3
  179. package/dist/{chunk-YT5NLCRC.js → chunk-SNX4FZYB.js} +1 -1
  180. package/dist/{chunk-KMG7OMOS.js → chunk-TJB7U72Z.js} +1 -1
  181. package/dist/{chunk-SFAGHPBT.js → chunk-TWJAYAK2.js} +1 -1
  182. package/dist/{chunk-JFQ53MO4.cjs → chunk-VM6CJYP6.cjs} +1 -1
  183. package/dist/{chunk-CNGKJYGZ.js → chunk-VRA4CQCJ.js} +7 -3
  184. package/dist/{chunk-YU5JK247.cjs → chunk-VUTCNATX.cjs} +6 -6
  185. package/dist/{chunk-CEZ2DR4R.js → chunk-W72IIGOV.js} +2 -2
  186. package/dist/{chunk-QP7RXZES.js → chunk-WIBAYFBB.js} +1 -1
  187. package/dist/{chunk-O43DOE7V.js → chunk-WIZVOZNO.js} +2 -2
  188. package/dist/{chunk-SQIWPU6V.js → chunk-XN52S7PT.js} +1 -1
  189. package/dist/{chunk-O4BOBOYV.cjs → chunk-XOYMBL5R.cjs} +1 -1
  190. package/dist/{chunk-MYHBC3HA.cjs → chunk-XPV672EI.cjs} +1 -1
  191. package/dist/{chunk-DYSGXQUK.cjs → chunk-XVDD6JEU.cjs} +6 -6
  192. package/dist/{chunk-ZWCDB5PP.cjs → chunk-XWRQ7ZLT.cjs} +1 -1
  193. package/dist/{chunk-N2BTMKF2.cjs → chunk-Z35Q432P.cjs} +4 -4
  194. package/dist/{chunk-VSUMJX6Z.cjs → chunk-ZC5VDX4W.cjs} +1 -1
  195. package/dist/{chunk-ZPP7LTHP.js → chunk-ZCMFLRZS.js} +2 -2
  196. package/dist/{chunk-5PR7UWIZ.cjs → chunk-ZGDAYWWC.cjs} +10 -10
  197. package/dist/{chunk-NJCHFXGC.js → chunk-ZTIECMCF.js} +455 -204
  198. package/dist/index.cjs +177 -173
  199. package/dist/index.d.cts +3 -3
  200. package/dist/index.d.ts +3 -3
  201. package/dist/index.js +48 -48
  202. package/dist/styles.css +82 -2
  203. package/dist/{tokens-EF34LSWI.css → tokens-RGFJKRC7.css} +21 -0
  204. package/dist/tokens.css +21 -0
  205. package/docs/llms/autocomplete.md +6 -0
  206. package/docs/llms/button.md +16 -4
  207. package/docs/llms/card.md +2 -2
  208. package/docs/llms/commandpalette.md +6 -0
  209. package/docs/llms/contextmenu.md +6 -0
  210. package/docs/llms/form.md +6 -0
  211. package/docs/llms/inputnumber.md +6 -0
  212. package/docs/llms/splitter.md +6 -0
  213. package/docs/llms/statusbar.md +6 -0
  214. package/docs/llms/tablepro.md +2 -0
  215. package/docs/llms/textarea.md +83 -0
  216. package/docs/llms/themepanel.md +26 -5
  217. package/docs/llms/timeline.md +6 -0
  218. package/docs/llms/typography.md +1 -1
  219. package/docs/llms.md +2 -1
  220. package/package.json +51 -1
  221. package/dist/chunk-D64IPDUE.cjs +0 -28
  222. package/dist/chunk-GUZ2DNDC.js +0 -26
package/README.md CHANGED
@@ -19,11 +19,20 @@
19
19
 
20
20
  - **TypeScript 优先** — 全量类型定义,IDE 智能提示完善
21
21
  - **拟态设计语言** — 统一的凸起/凹陷/柔光阴影系统,通过 CSS 变量自定义
22
- - **25+ 基础组件** — Button、Input、Table、Modal、Toast、Calendar …
22
+ - **45+ 公共组件** — Button、Input、Table、Modal、Message、Calendar …
23
23
  - **Electron 原生感** — `TitleBar`、`Sidebar`、`AppShell` 直接拼出窗口布局
24
24
  - **主题化** — 明/暗模式、6 套强调色、3 档密度(紧凑/标准/宽松)
25
25
  - **零运行时依赖** — 只依赖 React;样式纯 CSS 变量驱动
26
26
 
27
+ ## Why Lumina matters for AI-assisted development
28
+
29
+ Lumina 不只是把组件打成 npm 包,也把“AI 能按需读懂组件”的上下文一起发布出去。
30
+
31
+ - **内置 LLM 文档** — 每个组件都有独立 `docs/llms/<id>.md`,覆盖导入方式、可复制示例和完整 Props 表,AI 不必一次读取整份 API。
32
+ - **按需组件文档** — `@fangxinyan/lumina/llms.md` 提供全局约定和组件索引,`@fangxinyan/lumina/llms/button.md` 这类子路径可直接定位到单组件。
33
+ - **零运行时依赖** — 运行时只依赖 React / React DOM,组件逻辑、主题 token 和样式入口都更容易被 AI 审查、迁移和解释。
34
+ - **Electron 场景优先** — `TitleBar`、`WindowControls`、`Sidebar`、`StatusBar`、`AppShell` 等桌面应用原语减少了业务侧临时拼装窗口 UI 的成本。
35
+
27
36
  ## 📦 安装
28
37
 
29
38
  ```bash
@@ -60,7 +69,7 @@ export default function App() {
60
69
  ## 🛠 本地开发(下载即用)
61
70
 
62
71
  ```bash
63
- cd package
72
+ cd lumina
64
73
  npm install
65
74
  npm run dev # 启动 Playground(http://localhost:5173)
66
75
  npm run typecheck # 类型检查
@@ -73,16 +82,18 @@ npm run build:lib # 构建库 → dist/(ESM + CJS + .d.ts)
73
82
  项目结构:
74
83
 
75
84
  ```
76
- package/
85
+ lumina/
77
86
  ├── src/
78
- │ ├── components/ # 所有 .tsx 组件源码
87
+ │ ├── components/ # 每个组件一个目录,包含 .tsx / .css / index.ts
79
88
  │ ├── styles/
80
89
  │ │ ├── tokens.css # 设计令牌(主题 / 颜色 / 阴影 / 间距)
81
90
  │ │ ├── base.css # 基础样式(body / scrollbar / focus)
82
- │ │ └── components/ # 每个组件对应一个 .css 文件
91
+ │ │ ├── shared.css # 共享动画 / 跨组件样式
92
+ │ │ └── index.css # 完整样式入口
83
93
  │ └── index.ts # 公共出口
84
94
  ├── playground/ # 本地演示应用(Vite)
85
95
  ├── docs/ # 组件文档 & API 文档
96
+ ├── scripts/ # 文档生成 / 公开 API 校验脚本
86
97
  ├── tsup.config.ts # 库构建配置
87
98
  └── vite.config.ts # Playground 开发服务器
88
99
  ```
@@ -112,7 +123,7 @@ package/
112
123
 
113
124
  ## 📚 文档
114
125
 
115
- - **[🤖 AI / LLM 组件参考(索引)](./docs/llms.md)** — 全局约定 + 39 个组件的链接
126
+ - **[🤖 AI / LLM 组件参考(索引)](./docs/llms.md)** — 全局约定 + 完整组件索引
116
127
  - **[单组件文档](./docs/llms/)** — 每个组件一份 `.md`,AI 按需读取(例如 [`llms/button.md`](./docs/llms/button.md))
117
128
  - [设计令牌](./docs/tokens.md)
118
129
  - [Electron 集成](./docs/electron.md)
package/dist/Alert.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkYSCIMHOI_cjs = require('./chunk-YSCIMHOI.cjs');
4
- require('./chunk-6LARTGLP.cjs');
3
+ var chunkAYZ4BWHG_cjs = require('./chunk-AYZ4BWHG.cjs');
4
+ require('./chunk-GJAEGIPM.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Alert", {
9
9
  enumerable: true,
10
- get: function () { return chunkYSCIMHOI_cjs.Alert; }
10
+ get: function () { return chunkAYZ4BWHG_cjs.Alert; }
11
11
  });
package/dist/Alert.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Alert } from './chunk-3YP7CBJT.js';
2
- import './chunk-YT5NLCRC.js';
1
+ export { Alert } from './chunk-762NV3E4.js';
2
+ import './chunk-SNX4FZYB.js';
package/dist/AppShell.cjs CHANGED
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkYNCDTKAE_cjs = require('./chunk-YNCDTKAE.cjs');
3
+ var chunkJWZ6HJIF_cjs = require('./chunk-JWZ6HJIF.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "AppShell", {
8
8
  enumerable: true,
9
- get: function () { return chunkYNCDTKAE_cjs.AppShell; }
9
+ get: function () { return chunkJWZ6HJIF_cjs.AppShell; }
10
10
  });
11
11
  Object.defineProperty(exports, "Sidebar", {
12
12
  enumerable: true,
13
- get: function () { return chunkYNCDTKAE_cjs.Sidebar; }
13
+ get: function () { return chunkJWZ6HJIF_cjs.Sidebar; }
14
14
  });
15
15
  Object.defineProperty(exports, "TitleBar", {
16
16
  enumerable: true,
17
- get: function () { return chunkYNCDTKAE_cjs.TitleBar; }
17
+ get: function () { return chunkJWZ6HJIF_cjs.TitleBar; }
18
18
  });
19
19
  Object.defineProperty(exports, "WindowControls", {
20
20
  enumerable: true,
21
- get: function () { return chunkYNCDTKAE_cjs.WindowControls; }
21
+ get: function () { return chunkJWZ6HJIF_cjs.WindowControls; }
22
22
  });
package/dist/AppShell.js CHANGED
@@ -1 +1 @@
1
- export { AppShell, Sidebar, TitleBar, WindowControls } from './chunk-QP7RXZES.js';
1
+ export { AppShell, Sidebar, TitleBar, WindowControls } from './chunk-WIBAYFBB.js';
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunk66GXZQKL_cjs = require('./chunk-66GXZQKL.cjs');
3
+ var chunkFL25IGIG_cjs = require('./chunk-FL25IGIG.cjs');
4
4
  require('./chunk-YB3IWIOJ.cjs');
5
- require('./chunk-VAXWWJJP.cjs');
6
- require('./chunk-5NFSDFBB.cjs');
7
- require('./chunk-6LARTGLP.cjs');
5
+ require('./chunk-7OYMY22O.cjs');
6
+ require('./chunk-LW6Z2WDZ.cjs');
7
+ require('./chunk-GJAEGIPM.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "AutoComplete", {
12
12
  enumerable: true,
13
- get: function () { return chunk66GXZQKL_cjs.AutoComplete; }
13
+ get: function () { return chunkFL25IGIG_cjs.AutoComplete; }
14
14
  });
@@ -1,5 +1,5 @@
1
- export { AutoComplete } from './chunk-ZPP7LTHP.js';
1
+ export { AutoComplete } from './chunk-ZCMFLRZS.js';
2
2
  import './chunk-DUFRASGO.js';
3
- import './chunk-XVP7IKLZ.js';
4
- import './chunk-56PHETWO.js';
5
- import './chunk-YT5NLCRC.js';
3
+ import './chunk-QDXBI3PV.js';
4
+ import './chunk-7DNK5JB2.js';
5
+ import './chunk-SNX4FZYB.js';
package/dist/Avatar.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkS6OKX4H7_cjs = require('./chunk-S6OKX4H7.cjs');
3
+ var chunkKOY7GNP3_cjs = require('./chunk-KOY7GNP3.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Avatar", {
8
8
  enumerable: true,
9
- get: function () { return chunkS6OKX4H7_cjs.Avatar; }
9
+ get: function () { return chunkKOY7GNP3_cjs.Avatar; }
10
10
  });
package/dist/Avatar.js CHANGED
@@ -1 +1 @@
1
- export { Avatar } from './chunk-KMG7OMOS.js';
1
+ export { Avatar } from './chunk-TJB7U72Z.js';
package/dist/Badge.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkJFQ53MO4_cjs = require('./chunk-JFQ53MO4.cjs');
3
+ var chunkVM6CJYP6_cjs = require('./chunk-VM6CJYP6.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Badge", {
8
8
  enumerable: true,
9
- get: function () { return chunkJFQ53MO4_cjs.Badge; }
9
+ get: function () { return chunkVM6CJYP6_cjs.Badge; }
10
10
  });
package/dist/Badge.js CHANGED
@@ -1 +1 @@
1
- export { Badge } from './chunk-NFXHIO3G.js';
1
+ export { Badge } from './chunk-BY2YW5XN.js';
package/dist/Button.cjs CHANGED
@@ -1,11 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunk2ZADGBUN_cjs = require('./chunk-2ZADGBUN.cjs');
4
- require('./chunk-6LARTGLP.cjs');
3
+ var chunkS4CZ3VO6_cjs = require('./chunk-S4CZ3VO6.cjs');
4
+ require('./chunk-GJAEGIPM.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Button", {
9
9
  enumerable: true,
10
- get: function () { return chunk2ZADGBUN_cjs.Button; }
10
+ get: function () { return chunkS4CZ3VO6_cjs.Button; }
11
+ });
12
+ Object.defineProperty(exports, "IconButton", {
13
+ enumerable: true,
14
+ get: function () { return chunkS4CZ3VO6_cjs.IconButton; }
11
15
  });
package/dist/Button.d.cts CHANGED
@@ -27,6 +27,11 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
27
27
  className?: string;
28
28
  children?: React.ReactNode;
29
29
  }
30
+ interface IconButtonProps extends Omit<ButtonProps, "children" | "iconOnly" | "trailingIcon"> {
31
+ /** Icon rendered in the square button. Accepts a built-in icon name or custom React node. */
32
+ icon: IconSlot;
33
+ children?: never;
34
+ }
30
35
  /**
31
36
  * `Button` — the primary action surface.
32
37
  *
@@ -35,5 +40,12 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
35
40
  * <Button variant="ghost" loading>保存</Button>
36
41
  */
37
42
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
43
+ /**
44
+ * `IconButton` — square icon-only command button.
45
+ *
46
+ * @example
47
+ * <IconButton icon="settings" tip="设置" />
48
+ */
49
+ declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
38
50
 
39
- export { Button, type ButtonProps, type ButtonSize, type ButtonVariant };
51
+ export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, IconButton, type IconButtonProps };
package/dist/Button.d.ts CHANGED
@@ -27,6 +27,11 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
27
27
  className?: string;
28
28
  children?: React.ReactNode;
29
29
  }
30
+ interface IconButtonProps extends Omit<ButtonProps, "children" | "iconOnly" | "trailingIcon"> {
31
+ /** Icon rendered in the square button. Accepts a built-in icon name or custom React node. */
32
+ icon: IconSlot;
33
+ children?: never;
34
+ }
30
35
  /**
31
36
  * `Button` — the primary action surface.
32
37
  *
@@ -35,5 +40,12 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
35
40
  * <Button variant="ghost" loading>保存</Button>
36
41
  */
37
42
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
43
+ /**
44
+ * `IconButton` — square icon-only command button.
45
+ *
46
+ * @example
47
+ * <IconButton icon="settings" tip="设置" />
48
+ */
49
+ declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
38
50
 
39
- export { Button, type ButtonProps, type ButtonSize, type ButtonVariant };
51
+ export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, IconButton, type IconButtonProps };
package/dist/Button.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Button } from './chunk-CNGKJYGZ.js';
2
- import './chunk-YT5NLCRC.js';
1
+ export { Button, IconButton } from './chunk-VRA4CQCJ.js';
2
+ import './chunk-SNX4FZYB.js';
package/dist/Calendar.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkACQSRMLF_cjs = require('./chunk-ACQSRMLF.cjs');
4
- require('./chunk-6LARTGLP.cjs');
3
+ var chunkHTW62OMX_cjs = require('./chunk-HTW62OMX.cjs');
4
+ require('./chunk-GJAEGIPM.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Calendar", {
9
9
  enumerable: true,
10
- get: function () { return chunkACQSRMLF_cjs.Calendar; }
10
+ get: function () { return chunkHTW62OMX_cjs.Calendar; }
11
11
  });
package/dist/Calendar.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Calendar } from './chunk-CEZ2DR4R.js';
2
- import './chunk-YT5NLCRC.js';
1
+ export { Calendar } from './chunk-W72IIGOV.js';
2
+ import './chunk-SNX4FZYB.js';
@@ -66,8 +66,10 @@
66
66
  border-radius: var(--r-md);
67
67
  display: grid;
68
68
  place-items: center;
69
- background: color-mix(in oklch, var(--bg) 82%, transparent);
70
- box-shadow: var(--neu-shadow-inset);
69
+ background: color-mix(in srgb, var(--bg) 72%, var(--bg-sunken));
70
+ box-shadow:
71
+ inset calc(var(--shadow-inset-offset) * 0.45) calc(var(--shadow-inset-offset) * 0.45) calc(var(--shadow-inset-blur) * 0.45) color-mix(in oklch, var(--shadow-dark) 55%, transparent),
72
+ inset calc(var(--shadow-inset-offset) * -0.45) calc(var(--shadow-inset-offset) * -0.45) calc(var(--shadow-inset-blur) * 0.45) color-mix(in oklch, var(--shadow-light) 72%, transparent);
71
73
  color: var(--fg-muted);
72
74
  z-index: 1;
73
75
  }
package/dist/Card.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkWHXSUPJB_cjs = require('./chunk-WHXSUPJB.cjs');
4
- require('./chunk-SG42F5VB.cjs');
3
+ var chunkOUSJMIZX_cjs = require('./chunk-OUSJMIZX.cjs');
4
+ require('./chunk-MZCKPLHQ.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Card", {
9
9
  enumerable: true,
10
- get: function () { return chunkWHXSUPJB_cjs.Card; }
10
+ get: function () { return chunkOUSJMIZX_cjs.Card; }
11
11
  });
package/dist/Card.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Card } from './chunk-J7EQJXSJ.js';
2
- import './chunk-Y5F7ZTBH.js';
1
+ export { Card } from './chunk-HEBBQZUT.js';
2
+ import './chunk-3GJZRYTD.js';
package/dist/Cascader.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkQY76WTO5_cjs = require('./chunk-QY76WTO5.cjs');
3
+ var chunkAA2FRQUQ_cjs = require('./chunk-AA2FRQUQ.cjs');
4
4
  require('./chunk-YB3IWIOJ.cjs');
5
- require('./chunk-VAXWWJJP.cjs');
6
- require('./chunk-5NFSDFBB.cjs');
7
- require('./chunk-6LARTGLP.cjs');
5
+ require('./chunk-7OYMY22O.cjs');
6
+ require('./chunk-LW6Z2WDZ.cjs');
7
+ require('./chunk-GJAEGIPM.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "Cascader", {
12
12
  enumerable: true,
13
- get: function () { return chunkQY76WTO5_cjs.Cascader; }
13
+ get: function () { return chunkAA2FRQUQ_cjs.Cascader; }
14
14
  });
package/dist/Cascader.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Cascader } from './chunk-REMJWNAT.js';
1
+ export { Cascader } from './chunk-FPII6I52.js';
2
2
  import './chunk-DUFRASGO.js';
3
- import './chunk-XVP7IKLZ.js';
4
- import './chunk-56PHETWO.js';
5
- import './chunk-YT5NLCRC.js';
3
+ import './chunk-QDXBI3PV.js';
4
+ import './chunk-7DNK5JB2.js';
5
+ import './chunk-SNX4FZYB.js';
package/dist/Checkbox.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkZPKHGKVL_cjs = require('./chunk-ZPKHGKVL.cjs');
4
- require('./chunk-6LARTGLP.cjs');
3
+ var chunk5KGGB3EH_cjs = require('./chunk-5KGGB3EH.cjs');
4
+ require('./chunk-GJAEGIPM.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Checkbox", {
9
9
  enumerable: true,
10
- get: function () { return chunkZPKHGKVL_cjs.Checkbox; }
10
+ get: function () { return chunk5KGGB3EH_cjs.Checkbox; }
11
11
  });
package/dist/Checkbox.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Checkbox } from './chunk-WXWFMWWF.js';
2
- import './chunk-YT5NLCRC.js';
1
+ export { Checkbox } from './chunk-PHONNUK2.js';
2
+ import './chunk-SNX4FZYB.js';
package/dist/Collapse.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkR74TZKJS_cjs = require('./chunk-R74TZKJS.cjs');
4
- require('./chunk-6LARTGLP.cjs');
3
+ var chunkD56CNYUP_cjs = require('./chunk-D56CNYUP.cjs');
4
+ require('./chunk-GJAEGIPM.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Collapse", {
9
9
  enumerable: true,
10
- get: function () { return chunkR74TZKJS_cjs.Collapse; }
10
+ get: function () { return chunkD56CNYUP_cjs.Collapse; }
11
11
  });
package/dist/Collapse.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Collapse } from './chunk-AJH2O4WC.js';
2
- import './chunk-YT5NLCRC.js';
1
+ export { Collapse } from './chunk-OVTB7FQQ.js';
2
+ import './chunk-SNX4FZYB.js';
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkMYHBC3HA_cjs = require('./chunk-MYHBC3HA.cjs');
3
+ var chunkXPV672EI_cjs = require('./chunk-XPV672EI.cjs');
4
4
  require('./chunk-YB3IWIOJ.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "ColorPicker", {
9
9
  enumerable: true,
10
- get: function () { return chunkMYHBC3HA_cjs.ColorPicker; }
10
+ get: function () { return chunkXPV672EI_cjs.ColorPicker; }
11
11
  });
@@ -1,2 +1,2 @@
1
- export { ColorPicker } from './chunk-GZCU6HXD.js';
1
+ export { ColorPicker } from './chunk-AHS2AFTD.js';
2
2
  import './chunk-DUFRASGO.js';
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkD5PCIVID_cjs = require('./chunk-D5PCIVID.cjs');
4
- require('./chunk-VAXWWJJP.cjs');
5
- require('./chunk-5NFSDFBB.cjs');
6
- require('./chunk-6LARTGLP.cjs');
3
+ var chunk3HPHQV2L_cjs = require('./chunk-3HPHQV2L.cjs');
4
+ require('./chunk-7OYMY22O.cjs');
5
+ require('./chunk-LW6Z2WDZ.cjs');
6
+ require('./chunk-GJAEGIPM.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "CommandPalette", {
11
11
  enumerable: true,
12
- get: function () { return chunkD5PCIVID_cjs.CommandPalette; }
12
+ get: function () { return chunk3HPHQV2L_cjs.CommandPalette; }
13
13
  });
@@ -1,4 +1,4 @@
1
- export { CommandPalette } from './chunk-NE7IUGMK.js';
2
- import './chunk-XVP7IKLZ.js';
3
- import './chunk-56PHETWO.js';
4
- import './chunk-YT5NLCRC.js';
1
+ export { CommandPalette } from './chunk-64ZQHLHL.js';
2
+ import './chunk-QDXBI3PV.js';
3
+ import './chunk-7DNK5JB2.js';
4
+ import './chunk-SNX4FZYB.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkO4BOBOYV_cjs = require('./chunk-O4BOBOYV.cjs');
3
+ var chunkXOYMBL5R_cjs = require('./chunk-XOYMBL5R.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "ContextMenu", {
8
8
  enumerable: true,
9
- get: function () { return chunkO4BOBOYV_cjs.ContextMenu; }
9
+ get: function () { return chunkXOYMBL5R_cjs.ContextMenu; }
10
10
  });
@@ -1 +1 @@
1
- export { ContextMenu } from './chunk-SQIWPU6V.js';
1
+ export { ContextMenu } from './chunk-XN52S7PT.js';
package/dist/Divider.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkNDO22RER_cjs = require('./chunk-NDO22RER.cjs');
3
+ var chunkLF3ATJFY_cjs = require('./chunk-LF3ATJFY.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Divider", {
8
8
  enumerable: true,
9
- get: function () { return chunkNDO22RER_cjs.Divider; }
9
+ get: function () { return chunkLF3ATJFY_cjs.Divider; }
10
10
  });
package/dist/Divider.js CHANGED
@@ -1 +1 @@
1
- export { Divider } from './chunk-MYRLCN6V.js';
1
+ export { Divider } from './chunk-PWPL3DRN.js';
package/dist/Drawer.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkL27C5O4W_cjs = require('./chunk-L27C5O4W.cjs');
4
- require('./chunk-6LARTGLP.cjs');
3
+ var chunk7UCXY4T5_cjs = require('./chunk-7UCXY4T5.cjs');
4
+ require('./chunk-GJAEGIPM.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Drawer", {
9
9
  enumerable: true,
10
- get: function () { return chunkL27C5O4W_cjs.Drawer; }
10
+ get: function () { return chunk7UCXY4T5_cjs.Drawer; }
11
11
  });
package/dist/Drawer.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Drawer } from './chunk-PNZJFLMY.js';
2
- import './chunk-YT5NLCRC.js';
1
+ export { Drawer } from './chunk-EXN64ADJ.js';
2
+ import './chunk-SNX4FZYB.js';
package/dist/Empty.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkZ4PZ2ZHI_cjs = require('./chunk-Z4PZ2ZHI.cjs');
3
+ var chunkJ2R3BEEH_cjs = require('./chunk-J2R3BEEH.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Empty", {
8
8
  enumerable: true,
9
- get: function () { return chunkZ4PZ2ZHI_cjs.Empty; }
9
+ get: function () { return chunkJ2R3BEEH_cjs.Empty; }
10
10
  });
package/dist/Empty.js CHANGED
@@ -1 +1 @@
1
- export { Empty } from './chunk-LQLOOUS3.js';
1
+ export { Empty } from './chunk-RYRBNMCC.js';
package/dist/Form.cjs CHANGED
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkC24W6PTJ_cjs = require('./chunk-C24W6PTJ.cjs');
3
+ var chunkN4JH6HHA_cjs = require('./chunk-N4JH6HHA.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Form", {
8
8
  enumerable: true,
9
- get: function () { return chunkC24W6PTJ_cjs.Form; }
9
+ get: function () { return chunkN4JH6HHA_cjs.Form; }
10
10
  });
11
11
  Object.defineProperty(exports, "FormItem", {
12
12
  enumerable: true,
13
- get: function () { return chunkC24W6PTJ_cjs.FormItem; }
13
+ get: function () { return chunkN4JH6HHA_cjs.FormItem; }
14
14
  });
15
15
  Object.defineProperty(exports, "useForm", {
16
16
  enumerable: true,
17
- get: function () { return chunkC24W6PTJ_cjs.useForm; }
17
+ get: function () { return chunkN4JH6HHA_cjs.useForm; }
18
18
  });
package/dist/Form.js CHANGED
@@ -1 +1 @@
1
- export { Form, FormItem, useForm } from './chunk-SABWUELE.js';
1
+ export { Form, FormItem, useForm } from './chunk-ACZA7HHP.js';