@fangxinyan/lumina 0.6.0 → 0.6.2

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 (460) hide show
  1. package/dist/Alert.cjs +3 -5
  2. package/dist/Alert.js +2 -4
  3. package/dist/AppShell.cjs +5 -7
  4. package/dist/AppShell.js +1 -3
  5. package/dist/AutoComplete.cjs +6 -7
  6. package/dist/AutoComplete.d.cts +1 -1
  7. package/dist/AutoComplete.d.ts +1 -1
  8. package/dist/AutoComplete.js +5 -6
  9. package/dist/Avatar.cjs +2 -4
  10. package/dist/Avatar.js +1 -3
  11. package/dist/Badge-DPGLV3D3.css +22 -0
  12. package/dist/Badge.cjs +10 -0
  13. package/dist/Badge.d.cts +18 -0
  14. package/dist/Badge.d.ts +18 -0
  15. package/dist/Badge.js +1 -0
  16. package/dist/Button.cjs +3 -9
  17. package/dist/Button.d.cts +5 -10
  18. package/dist/Button.d.ts +5 -10
  19. package/dist/Button.js +2 -4
  20. package/dist/Calendar.cjs +3 -5
  21. package/dist/Calendar.js +2 -4
  22. package/dist/{Card-RG7ECXL2.css → Card-6RMVIHWX.css} +7 -13
  23. package/dist/Card.cjs +2 -8
  24. package/dist/Card.d.cts +7 -11
  25. package/dist/Card.d.ts +7 -11
  26. package/dist/Card.js +1 -3
  27. package/dist/{Cascader-VSYEKQCG.css → Cascader-C2DFSMKJ.css} +64 -0
  28. package/dist/Cascader.cjs +6 -6
  29. package/dist/Cascader.d.cts +18 -2
  30. package/dist/Cascader.d.ts +18 -2
  31. package/dist/Cascader.js +5 -5
  32. package/dist/{Checkbox-SKJATVSN.css → Checkbox-U5EUDSYS.css} +5 -35
  33. package/dist/Checkbox.cjs +3 -9
  34. package/dist/Checkbox.d.cts +1 -18
  35. package/dist/Checkbox.d.ts +1 -18
  36. package/dist/Checkbox.js +2 -4
  37. package/dist/Collapse-66U5YJFY.css +53 -0
  38. package/dist/Collapse.cjs +11 -0
  39. package/dist/Collapse.d.cts +32 -0
  40. package/dist/Collapse.d.ts +32 -0
  41. package/dist/Collapse.js +2 -0
  42. package/dist/ColorPicker.cjs +3 -5
  43. package/dist/ColorPicker.js +2 -4
  44. package/dist/CommandPalette.cjs +5 -6
  45. package/dist/CommandPalette.js +4 -5
  46. package/dist/ContextMenu.cjs +2 -4
  47. package/dist/ContextMenu.js +1 -3
  48. package/dist/Divider.cjs +2 -4
  49. package/dist/Divider.js +1 -3
  50. package/dist/Drawer.cjs +3 -5
  51. package/dist/Drawer.js +2 -4
  52. package/dist/Empty-DC2LPORC.css +28 -0
  53. package/dist/Empty.cjs +2 -12
  54. package/dist/Empty.d.cts +1 -62
  55. package/dist/Empty.d.ts +1 -62
  56. package/dist/Empty.js +1 -3
  57. package/dist/Form.cjs +4 -6
  58. package/dist/Form.d.cts +1 -1
  59. package/dist/Form.d.ts +1 -1
  60. package/dist/Form.js +1 -3
  61. package/dist/Icon.cjs +179 -5
  62. package/dist/Icon.d.cts +96 -3
  63. package/dist/Icon.d.ts +96 -3
  64. package/dist/Icon.js +1 -3
  65. package/dist/Image.cjs +4 -6
  66. package/dist/Image.js +2 -4
  67. package/dist/{Input-33CAH4O6.css → Input-3G4ONWNU.css} +15 -42
  68. package/dist/Input.cjs +6 -7
  69. package/dist/Input.d.cts +19 -23
  70. package/dist/Input.d.ts +19 -23
  71. package/dist/Input.js +3 -4
  72. package/dist/InputNumber.cjs +5 -6
  73. package/dist/InputNumber.d.cts +1 -1
  74. package/dist/InputNumber.d.ts +1 -1
  75. package/dist/InputNumber.js +4 -5
  76. package/dist/List.cjs +2 -4
  77. package/dist/List.js +1 -3
  78. package/dist/Message-2MZ3LFPU.css +45 -0
  79. package/dist/Message.cjs +23 -0
  80. package/dist/Message.d.cts +54 -0
  81. package/dist/Message.d.ts +54 -0
  82. package/dist/Message.js +2 -0
  83. package/dist/{Modal-XSDMU4XJ.css → Modal-2QNDW4SO.css} +27 -0
  84. package/dist/Modal.cjs +4 -6
  85. package/dist/Modal.d.cts +28 -4
  86. package/dist/Modal.d.ts +28 -4
  87. package/dist/Modal.js +3 -5
  88. package/dist/Pagination.cjs +8 -8
  89. package/dist/Pagination.js +7 -7
  90. package/dist/Popover.cjs +3 -5
  91. package/dist/Popover.d.cts +11 -3
  92. package/dist/Popover.d.ts +11 -3
  93. package/dist/Popover.js +2 -4
  94. package/dist/Progress.cjs +2 -4
  95. package/dist/Progress.js +1 -3
  96. package/dist/Radio-GVFDPAZM.css +97 -0
  97. package/dist/Radio.cjs +14 -0
  98. package/dist/Radio.d.cts +36 -0
  99. package/dist/Radio.d.ts +36 -0
  100. package/dist/Radio.js +1 -0
  101. package/dist/{Select-J3CCVFJ7.css → Select-JVBQAZBG.css} +7 -23
  102. package/dist/Select.cjs +7 -7
  103. package/dist/Select.d.cts +25 -4
  104. package/dist/Select.d.ts +25 -4
  105. package/dist/Select.js +6 -6
  106. package/dist/Skeleton-CVWH2VWN.css +40 -0
  107. package/dist/Skeleton.cjs +10 -0
  108. package/dist/Skeleton.d.cts +30 -0
  109. package/dist/Skeleton.d.ts +30 -0
  110. package/dist/Skeleton.js +1 -0
  111. package/dist/Slider.cjs +2 -4
  112. package/dist/Slider.js +1 -3
  113. package/dist/Spin-3GJNMSIH.css +94 -0
  114. package/dist/Spin.cjs +10 -0
  115. package/dist/Spin.d.cts +20 -0
  116. package/dist/Spin.d.ts +20 -0
  117. package/dist/Spin.js +1 -0
  118. package/dist/Splitter.cjs +2 -4
  119. package/dist/Splitter.js +1 -3
  120. package/dist/StatusBar.cjs +3 -5
  121. package/dist/StatusBar.js +1 -3
  122. package/dist/Switch.cjs +2 -4
  123. package/dist/Switch.js +1 -3
  124. package/dist/{Table-2LPTOUIR.css → Table-ATJJQLKU.css} +0 -53
  125. package/dist/Table.cjs +10 -14
  126. package/dist/Table.d.cts +2 -21
  127. package/dist/Table.d.ts +2 -21
  128. package/dist/Table.js +9 -9
  129. package/dist/TablePro-3XVHYLSL.css +45 -0
  130. package/dist/TablePro.cjs +19 -0
  131. package/dist/TablePro.d.cts +21 -0
  132. package/dist/TablePro.d.ts +21 -0
  133. package/dist/TablePro.js +10 -0
  134. package/dist/{Tabs-RHK6XAFF.css → Tabs-BLSNI2T5.css} +0 -34
  135. package/dist/Tabs.cjs +2 -8
  136. package/dist/Tabs.d.cts +1 -16
  137. package/dist/Tabs.d.ts +1 -16
  138. package/dist/Tabs.js +1 -3
  139. package/dist/Tag-LB3OOJAO.css +29 -0
  140. package/dist/Tag.cjs +3 -9
  141. package/dist/Tag.d.cts +1 -11
  142. package/dist/Tag.d.ts +1 -11
  143. package/dist/Tag.js +2 -4
  144. package/dist/Textarea-YNET7IBH.css +54 -0
  145. package/dist/Textarea.cjs +15 -0
  146. package/dist/Textarea.d.cts +25 -0
  147. package/dist/Textarea.d.ts +25 -0
  148. package/dist/Textarea.js +2 -0
  149. package/dist/Theme.cjs +10 -12
  150. package/dist/Theme.js +1 -3
  151. package/dist/{Timeline-RHZAZKZ7.css → Timeline-3ZHOHPXT.css} +2 -2
  152. package/dist/Timeline.cjs +3 -5
  153. package/dist/Timeline.d.cts +1 -1
  154. package/dist/Timeline.d.ts +1 -1
  155. package/dist/Timeline.js +2 -4
  156. package/dist/Tooltip.cjs +3 -5
  157. package/dist/Tooltip.d.cts +17 -4
  158. package/dist/Tooltip.d.ts +17 -4
  159. package/dist/Tooltip.js +2 -4
  160. package/dist/Typography.cjs +7 -9
  161. package/dist/Typography.js +2 -4
  162. package/dist/{chunk-74VZZAUT.cjs → chunk-2TL37AP5.cjs} +0 -2
  163. package/dist/{chunk-4DNHASZU.js → chunk-33NCTOEB.js} +1 -3
  164. package/dist/{chunk-KA3XLPQJ.cjs → chunk-35ZGBAA3.cjs} +3 -5
  165. package/dist/{chunk-IL523MTN.cjs → chunk-3AS5B7MQ.cjs} +13 -34
  166. package/dist/{chunk-ZA36BJIY.cjs → chunk-3YJU3D5S.cjs} +30 -9
  167. package/dist/chunk-45VJGBGN.js +25 -0
  168. package/dist/{chunk-JS6U7UQS.js → chunk-46VXFTEC.js} +3 -5
  169. package/dist/{chunk-V24B7KWT.cjs → chunk-4WTU5P3O.cjs} +3 -5
  170. package/dist/{chunk-3LJO33HI.js → chunk-5C2AI2SD.js} +0 -2
  171. package/dist/{chunk-FCIPCZAK.cjs → chunk-5JSDQ6QQ.cjs} +0 -2
  172. package/dist/{chunk-A3IJM7IX.js → chunk-5TKC6IEN.js} +4 -57
  173. package/dist/{chunk-JF2WNLPF.cjs → chunk-5WAXZJG5.cjs} +12 -21
  174. package/dist/{chunk-E6K6GYUC.js → chunk-65FIH5A3.js} +0 -2
  175. package/dist/chunk-6ACKL3WH.cjs +138 -0
  176. package/dist/{chunk-DCX36FYD.js → chunk-6BWELOCT.js} +0 -2
  177. package/dist/{chunk-WFFWVQK4.cjs → chunk-6LZ54NPO.cjs} +70 -76
  178. package/dist/{chunk-2LIX7ZHX.js → chunk-6YQTMI55.js} +0 -2
  179. package/dist/{chunk-SREMTSVI.cjs → chunk-7ABFUIOB.cjs} +0 -2
  180. package/dist/{chunk-2TZ2R7L2.js → chunk-7JN6FJ55.js} +0 -2
  181. package/dist/{chunk-DB5JMXOI.js → chunk-7NGMQIST.js} +2 -4
  182. package/dist/{chunk-Y7BZMMAV.cjs → chunk-7PNJI5UE.cjs} +0 -2
  183. package/dist/{chunk-KWE2PXJQ.js → chunk-7PQJCLIR.js} +0 -2
  184. package/dist/{chunk-5VIOJW6M.js → chunk-AWXCSX6J.js} +6 -26
  185. package/dist/chunk-AXZ7ELMA.js +41 -0
  186. package/dist/{chunk-XMINE4TN.cjs → chunk-B2KEZQ6S.cjs} +5 -7
  187. package/dist/chunk-CEJ7VBR6.js +283 -0
  188. package/dist/{chunk-ZPDMAMWC.js → chunk-CHMCL7AV.js} +1 -3
  189. package/dist/{chunk-MU4GGX6C.cjs → chunk-CUXV6QNN.cjs} +5 -7
  190. package/dist/{chunk-WLFMOWUY.js → chunk-CXWEOAVU.js} +1 -3
  191. package/dist/{chunk-D242UJZO.js → chunk-DQTSTJ6O.js} +3 -20
  192. package/dist/{chunk-ANAQER3T.js → chunk-DUFRASGO.js} +0 -2
  193. package/dist/{chunk-EARCKSI7.js → chunk-EC4WGEAJ.js} +0 -2
  194. package/dist/chunk-EIY7KEJ3.cjs +132 -0
  195. package/dist/{chunk-LSQD2GFA.js → chunk-EJBHR2P5.js} +3 -5
  196. package/dist/chunk-ELNT3CFO.js +64 -0
  197. package/dist/{chunk-ZN6VS6SO.js → chunk-EQEJTN3V.js} +3 -45
  198. package/dist/chunk-F6RYCBQG.js +25 -0
  199. package/dist/{chunk-S3OSBW7R.cjs → chunk-FBVVRTX2.cjs} +3 -46
  200. package/dist/chunk-FFZ6OMZI.js +110 -0
  201. package/dist/{chunk-MXIWTYNC.js → chunk-FJNWUELL.js} +3 -5
  202. package/dist/chunk-GENABQYA.cjs +47 -0
  203. package/dist/chunk-GMN74OEY.cjs +63 -0
  204. package/dist/{chunk-AXRABZLY.cjs → chunk-GNEZD7KE.cjs} +0 -2
  205. package/dist/chunk-GNEZQMKH.js +218 -0
  206. package/dist/{chunk-JAGJQDAV.cjs → chunk-HPFQXYKG.cjs} +159 -10
  207. package/dist/{chunk-XYGRVPUA.js → chunk-HWFM4MAT.js} +19 -9
  208. package/dist/{chunk-TC5ZL2OS.cjs → chunk-HZSIUOCN.cjs} +2 -57
  209. package/dist/{chunk-N6ZLZUBF.cjs → chunk-IZOHYJUQ.cjs} +0 -2
  210. package/dist/{chunk-6FSOJLY6.js → chunk-JD7A6VM3.js} +11 -19
  211. package/dist/chunk-K2KYM7LW.cjs +28 -0
  212. package/dist/{chunk-X3QINITU.js → chunk-K6F25JXT.js} +1 -3
  213. package/dist/{chunk-NRP3X3PE.cjs → chunk-KD4YYIIO.cjs} +1 -34
  214. package/dist/chunk-KGSADAOD.cjs +170 -0
  215. package/dist/{chunk-ZHCQEJ2Z.js → chunk-KLEKKZ73.js} +0 -2
  216. package/dist/{chunk-QRSPBK3X.js → chunk-LKK2AA7W.js} +0 -2
  217. package/dist/{chunk-V5KSJITO.cjs → chunk-MQV2XN4B.cjs} +5 -7
  218. package/dist/{chunk-2TNJ7TC4.cjs → chunk-MT7UWY6T.cjs} +2 -4
  219. package/dist/chunk-MUXP7ASL.js +26 -0
  220. package/dist/{chunk-W6I67HQQ.js → chunk-NN25YMOL.js} +0 -2
  221. package/dist/{chunk-474MXYO5.cjs → chunk-NTS5L4NQ.cjs} +3 -5
  222. package/dist/{chunk-CVEGVB2C.js → chunk-OBEKX4VR.js} +2 -34
  223. package/dist/chunk-OF3SGLZY.js +385 -0
  224. package/dist/{chunk-6TRVGFFX.cjs → chunk-OF7JIYBY.cjs} +2 -4
  225. package/dist/chunk-ON4DEDMI.js +113 -0
  226. package/dist/chunk-OQBDU5I2.cjs +104 -0
  227. package/dist/{chunk-ZM4P6ELG.cjs → chunk-OYMJVU66.cjs} +50 -41
  228. package/dist/{chunk-4JHFGSNH.js → chunk-PH3YECMF.js} +1 -3
  229. package/dist/{chunk-3EGZ6TBF.cjs → chunk-PL6DRFUO.cjs} +0 -2
  230. package/dist/chunk-Q5SZIU7Z.cjs +47 -0
  231. package/dist/{chunk-SWB57EA2.js → chunk-QCILPZWP.js} +0 -2
  232. package/dist/chunk-QGHYQCF3.cjs +240 -0
  233. package/dist/chunk-QKQHZIF3.cjs +86 -0
  234. package/dist/{chunk-Q7CDWNM6.cjs → chunk-RF2EY5JS.cjs} +0 -2
  235. package/dist/{chunk-2K5HZLXW.cjs → chunk-S3VXH5L4.cjs} +0 -2
  236. package/dist/{chunk-P4CGE5C7.cjs → chunk-SKMP2A5O.cjs} +5 -7
  237. package/dist/{chunk-RXL26GSI.cjs → chunk-SWBWZIL4.cjs} +0 -2
  238. package/dist/{chunk-YRAQRENN.js → chunk-TEEFR2FD.js} +29 -8
  239. package/dist/{chunk-YVSZLQTQ.cjs → chunk-TEG7NJHS.cjs} +3 -5
  240. package/dist/{chunk-DH4NYYJP.cjs → chunk-TJII7BQ2.cjs} +263 -4
  241. package/dist/{chunk-HHSVGNJA.cjs → chunk-TZJH5HBT.cjs} +6 -8
  242. package/dist/{chunk-T7ZBJJC4.js → chunk-UMDGS4BP.js} +1 -3
  243. package/dist/chunk-USQ43DJ5.js +147 -0
  244. package/dist/{chunk-RNVE2LMJ.cjs → chunk-UUHFKIWP.cjs} +20 -10
  245. package/dist/chunk-WGZ2KJTZ.js +81 -0
  246. package/dist/{chunk-RHZOBQON.js → chunk-WKKSAGYH.js} +40 -31
  247. package/dist/{chunk-XXE5TQ7I.cjs → chunk-WNM5RVXR.cjs} +0 -2
  248. package/dist/{chunk-4XSP4HHZ.js → chunk-XD3JGL5O.js} +2 -4
  249. package/dist/{chunk-44AVDO3T.js → chunk-XRR3CYQL.js} +0 -2
  250. package/dist/{chunk-ZZXNHPF3.js → chunk-XTIN5545.js} +68 -74
  251. package/dist/{chunk-3XIDJEYR.cjs → chunk-YB3IWIOJ.cjs} +0 -2
  252. package/dist/{chunk-EHZXEZI2.cjs → chunk-YLIQ37KY.cjs} +0 -2
  253. package/dist/{chunk-QCNHDDSD.cjs → chunk-ZIP7F4UF.cjs} +4 -22
  254. package/dist/index.cjs +346 -158
  255. package/dist/index.d.cts +23 -17
  256. package/dist/index.d.ts +23 -17
  257. package/dist/index.js +47 -43
  258. package/dist/styles.css +313 -192
  259. package/docs/llms/badge.md +3 -3
  260. package/docs/llms/button.md +7 -38
  261. package/docs/llms/card.md +6 -12
  262. package/docs/llms/cascader.md +19 -0
  263. package/docs/llms/{accordion.md → collapse.md} +13 -11
  264. package/docs/llms/drawer.md +1 -1
  265. package/docs/llms/form.md +1 -1
  266. package/docs/llms/input.md +25 -16
  267. package/docs/llms/message.md +63 -0
  268. package/docs/llms/modal.md +30 -0
  269. package/docs/llms/popover.md +18 -1
  270. package/docs/llms/radio.md +37 -1
  271. package/docs/llms/select.md +20 -0
  272. package/docs/llms/spin.md +59 -0
  273. package/docs/llms/table.md +3 -3
  274. package/docs/llms/tooltip.md +16 -3
  275. package/docs/llms.md +5 -5
  276. package/package.json +19 -53
  277. package/dist/Accordion-REMDCQUD.css +0 -44
  278. package/dist/Accordion.cjs +0 -13
  279. package/dist/Accordion.cjs.map +0 -1
  280. package/dist/Accordion.d.cts +0 -33
  281. package/dist/Accordion.d.ts +0 -33
  282. package/dist/Accordion.js +0 -4
  283. package/dist/Accordion.js.map +0 -1
  284. package/dist/Alert.cjs.map +0 -1
  285. package/dist/Alert.js.map +0 -1
  286. package/dist/AppShell.cjs.map +0 -1
  287. package/dist/AppShell.js.map +0 -1
  288. package/dist/AutoComplete.cjs.map +0 -1
  289. package/dist/AutoComplete.js.map +0 -1
  290. package/dist/Avatar.cjs.map +0 -1
  291. package/dist/Avatar.js.map +0 -1
  292. package/dist/Button.cjs.map +0 -1
  293. package/dist/Button.js.map +0 -1
  294. package/dist/Calendar.cjs.map +0 -1
  295. package/dist/Calendar.js.map +0 -1
  296. package/dist/Card.cjs.map +0 -1
  297. package/dist/Card.js.map +0 -1
  298. package/dist/Cascader.cjs.map +0 -1
  299. package/dist/Cascader.js.map +0 -1
  300. package/dist/Checkbox.cjs.map +0 -1
  301. package/dist/Checkbox.js.map +0 -1
  302. package/dist/ColorPicker.cjs.map +0 -1
  303. package/dist/ColorPicker.js.map +0 -1
  304. package/dist/CommandPalette.cjs.map +0 -1
  305. package/dist/CommandPalette.js.map +0 -1
  306. package/dist/ContextMenu.cjs.map +0 -1
  307. package/dist/ContextMenu.js.map +0 -1
  308. package/dist/Divider.cjs.map +0 -1
  309. package/dist/Divider.js.map +0 -1
  310. package/dist/Drawer.cjs.map +0 -1
  311. package/dist/Drawer.js.map +0 -1
  312. package/dist/Empty-NQ72W3D7.css +0 -160
  313. package/dist/Empty.cjs.map +0 -1
  314. package/dist/Empty.js.map +0 -1
  315. package/dist/Form.cjs.map +0 -1
  316. package/dist/Form.js.map +0 -1
  317. package/dist/Icon.cjs.map +0 -1
  318. package/dist/Icon.js.map +0 -1
  319. package/dist/Image.cjs.map +0 -1
  320. package/dist/Image.js.map +0 -1
  321. package/dist/Input.cjs.map +0 -1
  322. package/dist/Input.js.map +0 -1
  323. package/dist/InputNumber.cjs.map +0 -1
  324. package/dist/InputNumber.js.map +0 -1
  325. package/dist/List.cjs.map +0 -1
  326. package/dist/List.js.map +0 -1
  327. package/dist/Modal.cjs.map +0 -1
  328. package/dist/Modal.js.map +0 -1
  329. package/dist/Pagination.cjs.map +0 -1
  330. package/dist/Pagination.js.map +0 -1
  331. package/dist/Popover.cjs.map +0 -1
  332. package/dist/Popover.js.map +0 -1
  333. package/dist/Progress.cjs.map +0 -1
  334. package/dist/Progress.js.map +0 -1
  335. package/dist/Select.cjs.map +0 -1
  336. package/dist/Select.js.map +0 -1
  337. package/dist/Slider.cjs.map +0 -1
  338. package/dist/Slider.js.map +0 -1
  339. package/dist/Splitter.cjs.map +0 -1
  340. package/dist/Splitter.js.map +0 -1
  341. package/dist/StatusBar.cjs.map +0 -1
  342. package/dist/StatusBar.js.map +0 -1
  343. package/dist/Switch.cjs.map +0 -1
  344. package/dist/Switch.js.map +0 -1
  345. package/dist/Table.cjs.map +0 -1
  346. package/dist/Table.js.map +0 -1
  347. package/dist/Tabs.cjs.map +0 -1
  348. package/dist/Tabs.js.map +0 -1
  349. package/dist/Tag-FGDY3W7E.css +0 -51
  350. package/dist/Tag.cjs.map +0 -1
  351. package/dist/Tag.js.map +0 -1
  352. package/dist/Theme.cjs.map +0 -1
  353. package/dist/Theme.js.map +0 -1
  354. package/dist/Timeline.cjs.map +0 -1
  355. package/dist/Timeline.js.map +0 -1
  356. package/dist/Toast-YSACW3EM.css +0 -45
  357. package/dist/Toast.cjs +0 -17
  358. package/dist/Toast.cjs.map +0 -1
  359. package/dist/Toast.d.cts +0 -26
  360. package/dist/Toast.d.ts +0 -26
  361. package/dist/Toast.js +0 -4
  362. package/dist/Toast.js.map +0 -1
  363. package/dist/Tooltip.cjs.map +0 -1
  364. package/dist/Tooltip.js.map +0 -1
  365. package/dist/Typography.cjs.map +0 -1
  366. package/dist/Typography.js.map +0 -1
  367. package/dist/chunk-2K5HZLXW.cjs.map +0 -1
  368. package/dist/chunk-2LIX7ZHX.js.map +0 -1
  369. package/dist/chunk-2TNJ7TC4.cjs.map +0 -1
  370. package/dist/chunk-2TZ2R7L2.js.map +0 -1
  371. package/dist/chunk-3EGZ6TBF.cjs.map +0 -1
  372. package/dist/chunk-3LJO33HI.js.map +0 -1
  373. package/dist/chunk-3XIDJEYR.cjs.map +0 -1
  374. package/dist/chunk-44AVDO3T.js.map +0 -1
  375. package/dist/chunk-474MXYO5.cjs.map +0 -1
  376. package/dist/chunk-4DNHASZU.js.map +0 -1
  377. package/dist/chunk-4JHFGSNH.js.map +0 -1
  378. package/dist/chunk-4SCDDSXY.js +0 -41
  379. package/dist/chunk-4SCDDSXY.js.map +0 -1
  380. package/dist/chunk-4XSP4HHZ.js.map +0 -1
  381. package/dist/chunk-5VIOJW6M.js.map +0 -1
  382. package/dist/chunk-6CAEGNCK.js +0 -101
  383. package/dist/chunk-6CAEGNCK.js.map +0 -1
  384. package/dist/chunk-6FSOJLY6.js.map +0 -1
  385. package/dist/chunk-6TRVGFFX.cjs.map +0 -1
  386. package/dist/chunk-74VZZAUT.cjs.map +0 -1
  387. package/dist/chunk-A3IJM7IX.js.map +0 -1
  388. package/dist/chunk-ANAQER3T.js.map +0 -1
  389. package/dist/chunk-AXRABZLY.cjs.map +0 -1
  390. package/dist/chunk-BSHHQOFY.js +0 -170
  391. package/dist/chunk-BSHHQOFY.js.map +0 -1
  392. package/dist/chunk-CVEGVB2C.js.map +0 -1
  393. package/dist/chunk-D242UJZO.js.map +0 -1
  394. package/dist/chunk-DB5JMXOI.js.map +0 -1
  395. package/dist/chunk-DCX36FYD.js.map +0 -1
  396. package/dist/chunk-DH4NYYJP.cjs.map +0 -1
  397. package/dist/chunk-DUNQNSVK.js +0 -125
  398. package/dist/chunk-DUNQNSVK.js.map +0 -1
  399. package/dist/chunk-E6K6GYUC.js.map +0 -1
  400. package/dist/chunk-EARCKSI7.js.map +0 -1
  401. package/dist/chunk-EHZXEZI2.cjs.map +0 -1
  402. package/dist/chunk-FBQLNAUI.cjs +0 -123
  403. package/dist/chunk-FBQLNAUI.cjs.map +0 -1
  404. package/dist/chunk-FCIPCZAK.cjs.map +0 -1
  405. package/dist/chunk-FSOJHDXH.js +0 -76
  406. package/dist/chunk-FSOJHDXH.js.map +0 -1
  407. package/dist/chunk-HHSVGNJA.cjs.map +0 -1
  408. package/dist/chunk-HQO7EZNQ.cjs +0 -147
  409. package/dist/chunk-HQO7EZNQ.cjs.map +0 -1
  410. package/dist/chunk-IL523MTN.cjs.map +0 -1
  411. package/dist/chunk-JAGJQDAV.cjs.map +0 -1
  412. package/dist/chunk-JF2WNLPF.cjs.map +0 -1
  413. package/dist/chunk-JS6U7UQS.js.map +0 -1
  414. package/dist/chunk-KA3XLPQJ.cjs.map +0 -1
  415. package/dist/chunk-KWE2PXJQ.js.map +0 -1
  416. package/dist/chunk-LSQD2GFA.js.map +0 -1
  417. package/dist/chunk-MU4GGX6C.cjs.map +0 -1
  418. package/dist/chunk-MUFMJPRT.cjs +0 -64
  419. package/dist/chunk-MUFMJPRT.cjs.map +0 -1
  420. package/dist/chunk-MXIWTYNC.js.map +0 -1
  421. package/dist/chunk-N6ZLZUBF.cjs.map +0 -1
  422. package/dist/chunk-NRP3X3PE.cjs.map +0 -1
  423. package/dist/chunk-P4CGE5C7.cjs.map +0 -1
  424. package/dist/chunk-PX5ABNKV.js +0 -134
  425. package/dist/chunk-PX5ABNKV.js.map +0 -1
  426. package/dist/chunk-Q7CDWNM6.cjs.map +0 -1
  427. package/dist/chunk-QCNHDDSD.cjs.map +0 -1
  428. package/dist/chunk-QRSPBK3X.js.map +0 -1
  429. package/dist/chunk-RHZOBQON.js.map +0 -1
  430. package/dist/chunk-RNVE2LMJ.cjs.map +0 -1
  431. package/dist/chunk-RXL26GSI.cjs.map +0 -1
  432. package/dist/chunk-S3OSBW7R.cjs.map +0 -1
  433. package/dist/chunk-SREMTSVI.cjs.map +0 -1
  434. package/dist/chunk-SWB57EA2.js.map +0 -1
  435. package/dist/chunk-T7ZBJJC4.js.map +0 -1
  436. package/dist/chunk-TC5ZL2OS.cjs.map +0 -1
  437. package/dist/chunk-V24B7KWT.cjs.map +0 -1
  438. package/dist/chunk-V5KSJITO.cjs.map +0 -1
  439. package/dist/chunk-W6I67HQQ.js.map +0 -1
  440. package/dist/chunk-WFFWVQK4.cjs.map +0 -1
  441. package/dist/chunk-WLFMOWUY.js.map +0 -1
  442. package/dist/chunk-X3QINITU.js.map +0 -1
  443. package/dist/chunk-XMFVAYBP.cjs +0 -102
  444. package/dist/chunk-XMFVAYBP.cjs.map +0 -1
  445. package/dist/chunk-XMINE4TN.cjs.map +0 -1
  446. package/dist/chunk-XXE5TQ7I.cjs.map +0 -1
  447. package/dist/chunk-XYGRVPUA.js.map +0 -1
  448. package/dist/chunk-Y7BZMMAV.cjs.map +0 -1
  449. package/dist/chunk-YRAQRENN.js.map +0 -1
  450. package/dist/chunk-YVSZLQTQ.cjs.map +0 -1
  451. package/dist/chunk-ZA36BJIY.cjs.map +0 -1
  452. package/dist/chunk-ZHCQEJ2Z.js.map +0 -1
  453. package/dist/chunk-ZM4P6ELG.cjs.map +0 -1
  454. package/dist/chunk-ZN6VS6SO.js.map +0 -1
  455. package/dist/chunk-ZPDMAMWC.js.map +0 -1
  456. package/dist/chunk-ZZXNHPF3.js.map +0 -1
  457. package/dist/index.cjs.map +0 -1
  458. package/dist/index.js.map +0 -1
  459. package/docs/llms/spinner.md +0 -58
  460. package/docs/llms/toast.md +0 -51
package/dist/Alert.cjs CHANGED
@@ -1,13 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkKA3XLPQJ_cjs = require('./chunk-KA3XLPQJ.cjs');
4
- require('./chunk-DH4NYYJP.cjs');
3
+ var chunk35ZGBAA3_cjs = require('./chunk-35ZGBAA3.cjs');
4
+ require('./chunk-TJII7BQ2.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Alert", {
9
9
  enumerable: true,
10
- get: function () { return chunkKA3XLPQJ_cjs.Alert; }
10
+ get: function () { return chunk35ZGBAA3_cjs.Alert; }
11
11
  });
12
- //# sourceMappingURL=Alert.cjs.map
13
- //# sourceMappingURL=Alert.cjs.map
package/dist/Alert.js CHANGED
@@ -1,4 +1,2 @@
1
- export { Alert } from './chunk-T7ZBJJC4.js';
2
- import './chunk-BSHHQOFY.js';
3
- //# sourceMappingURL=Alert.js.map
4
- //# sourceMappingURL=Alert.js.map
1
+ export { Alert } from './chunk-UMDGS4BP.js';
2
+ import './chunk-OF3SGLZY.js';
package/dist/AppShell.cjs CHANGED
@@ -1,24 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkSREMTSVI_cjs = require('./chunk-SREMTSVI.cjs');
3
+ var chunk7ABFUIOB_cjs = require('./chunk-7ABFUIOB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "AppShell", {
8
8
  enumerable: true,
9
- get: function () { return chunkSREMTSVI_cjs.AppShell; }
9
+ get: function () { return chunk7ABFUIOB_cjs.AppShell; }
10
10
  });
11
11
  Object.defineProperty(exports, "Sidebar", {
12
12
  enumerable: true,
13
- get: function () { return chunkSREMTSVI_cjs.Sidebar; }
13
+ get: function () { return chunk7ABFUIOB_cjs.Sidebar; }
14
14
  });
15
15
  Object.defineProperty(exports, "TitleBar", {
16
16
  enumerable: true,
17
- get: function () { return chunkSREMTSVI_cjs.TitleBar; }
17
+ get: function () { return chunk7ABFUIOB_cjs.TitleBar; }
18
18
  });
19
19
  Object.defineProperty(exports, "WindowControls", {
20
20
  enumerable: true,
21
- get: function () { return chunkSREMTSVI_cjs.WindowControls; }
21
+ get: function () { return chunk7ABFUIOB_cjs.WindowControls; }
22
22
  });
23
- //# sourceMappingURL=AppShell.cjs.map
24
- //# sourceMappingURL=AppShell.cjs.map
package/dist/AppShell.js CHANGED
@@ -1,3 +1 @@
1
- export { AppShell, Sidebar, TitleBar, WindowControls } from './chunk-44AVDO3T.js';
2
- //# sourceMappingURL=AppShell.js.map
3
- //# sourceMappingURL=AppShell.js.map
1
+ export { AppShell, Sidebar, TitleBar, WindowControls } from './chunk-XRR3CYQL.js';
@@ -1,15 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkP4CGE5C7_cjs = require('./chunk-P4CGE5C7.cjs');
4
- require('./chunk-3XIDJEYR.cjs');
5
- require('./chunk-WFFWVQK4.cjs');
6
- require('./chunk-DH4NYYJP.cjs');
3
+ var chunkSKMP2A5O_cjs = require('./chunk-SKMP2A5O.cjs');
4
+ require('./chunk-YB3IWIOJ.cjs');
5
+ require('./chunk-6LZ54NPO.cjs');
6
+ require('./chunk-OQBDU5I2.cjs');
7
+ require('./chunk-TJII7BQ2.cjs');
7
8
 
8
9
 
9
10
 
10
11
  Object.defineProperty(exports, "AutoComplete", {
11
12
  enumerable: true,
12
- get: function () { return chunkP4CGE5C7_cjs.AutoComplete; }
13
+ get: function () { return chunkSKMP2A5O_cjs.AutoComplete; }
13
14
  });
14
- //# sourceMappingURL=AutoComplete.cjs.map
15
- //# sourceMappingURL=AutoComplete.cjs.map
@@ -32,7 +32,7 @@ interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
32
32
  }
33
33
  /**
34
34
  * `AutoComplete` — text input with a filtered suggestion dropdown.
35
- * Follows antd's API shape (value / onChange / onSelect / options / filterOption).
35
+ * Uses value / onChange / onSelect / options / filterOption for predictable field binding.
36
36
  *
37
37
  * @example
38
38
  * ```tsx
@@ -32,7 +32,7 @@ interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
32
32
  }
33
33
  /**
34
34
  * `AutoComplete` — text input with a filtered suggestion dropdown.
35
- * Follows antd's API shape (value / onChange / onSelect / options / filterOption).
35
+ * Uses value / onChange / onSelect / options / filterOption for predictable field binding.
36
36
  *
37
37
  * @example
38
38
  * ```tsx
@@ -1,6 +1,5 @@
1
- export { AutoComplete } from './chunk-MXIWTYNC.js';
2
- import './chunk-ANAQER3T.js';
3
- import './chunk-ZZXNHPF3.js';
4
- import './chunk-BSHHQOFY.js';
5
- //# sourceMappingURL=AutoComplete.js.map
6
- //# sourceMappingURL=AutoComplete.js.map
1
+ export { AutoComplete } from './chunk-FJNWUELL.js';
2
+ import './chunk-DUFRASGO.js';
3
+ import './chunk-XTIN5545.js';
4
+ import './chunk-WGZ2KJTZ.js';
5
+ import './chunk-OF3SGLZY.js';
package/dist/Avatar.cjs CHANGED
@@ -1,12 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkRXL26GSI_cjs = require('./chunk-RXL26GSI.cjs');
3
+ var chunkSWBWZIL4_cjs = require('./chunk-SWBWZIL4.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Avatar", {
8
8
  enumerable: true,
9
- get: function () { return chunkRXL26GSI_cjs.Avatar; }
9
+ get: function () { return chunkSWBWZIL4_cjs.Avatar; }
10
10
  });
11
- //# sourceMappingURL=Avatar.cjs.map
12
- //# sourceMappingURL=Avatar.cjs.map
package/dist/Avatar.js CHANGED
@@ -1,3 +1 @@
1
- export { Avatar } from './chunk-KWE2PXJQ.js';
2
- //# sourceMappingURL=Avatar.js.map
3
- //# sourceMappingURL=Avatar.js.map
1
+ export { Avatar } from './chunk-7PQJCLIR.js';
@@ -0,0 +1,22 @@
1
+ /* ============ Badge ============ */
2
+ .badge {
3
+ display: inline-flex;
4
+ align-items: center; justify-content: center;
5
+ min-width: 18px; height: 18px;
6
+ padding: 0 6px;
7
+ border-radius: 999px;
8
+ font-size: 10px;
9
+ font-weight: 700;
10
+ background: var(--danger);
11
+ color: var(--bg);
12
+ box-shadow: 0 1px 4px color-mix(in oklch, var(--shadow-dark) 35%, transparent);
13
+ font-variant-numeric: tabular-nums;
14
+ }
15
+ .badge.dot { min-width: 10px; height: 10px; padding: 0; }
16
+ .badge.accent { background: var(--accent); box-shadow: 0 1px 4px var(--accent-glow); }
17
+ .badge.info { background: var(--info); box-shadow: 0 1px 4px color-mix(in oklch, var(--info) 35%, transparent); }
18
+ .badge.success { background: var(--success); box-shadow: 0 1px 4px color-mix(in oklch, var(--success) 35%, transparent); }
19
+ .badge.warning { background: var(--warning); box-shadow: 0 1px 4px color-mix(in oklch, var(--warning) 35%, transparent); }
20
+ .badge.neutral { background: var(--fg-muted); box-shadow: 0 1px 4px color-mix(in oklch, var(--shadow-dark) 35%, transparent); }
21
+ .badge-wrap { position: relative; display: inline-block; }
22
+ .badge-wrap > .badge { position: absolute; top: -4px; right: -4px; }
package/dist/Badge.cjs ADDED
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var chunkQ5SZIU7Z_cjs = require('./chunk-Q5SZIU7Z.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "Badge", {
8
+ enumerable: true,
9
+ get: function () { return chunkQ5SZIU7Z_cjs.Badge; }
10
+ });
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { TagTone } from './Tag.cjs';
3
+ import './Icon.cjs';
4
+
5
+ interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
6
+ /** Numeric count — renders as "max+" if greater than `max`. */
7
+ count?: number;
8
+ /** Maximum number to display before adding "+". */
9
+ max?: number;
10
+ /** Show a tiny dot instead of a number. */
11
+ dot?: boolean;
12
+ tone?: TagTone;
13
+ children?: React.ReactNode;
14
+ }
15
+ /** `Badge` — notification dot / count. Wrap around another element. */
16
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
17
+
18
+ export { Badge, type BadgeProps };
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { TagTone } from './Tag.js';
3
+ import './Icon.js';
4
+
5
+ interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
6
+ /** Numeric count — renders as "max+" if greater than `max`. */
7
+ count?: number;
8
+ /** Maximum number to display before adding "+". */
9
+ max?: number;
10
+ /** Show a tiny dot instead of a number. */
11
+ dot?: boolean;
12
+ tone?: TagTone;
13
+ children?: React.ReactNode;
14
+ }
15
+ /** `Badge` — notification dot / count. Wrap around another element. */
16
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
17
+
18
+ export { Badge, type BadgeProps };
package/dist/Badge.js ADDED
@@ -0,0 +1 @@
1
+ export { Badge } from './chunk-F6RYCBQG.js';
package/dist/Button.cjs CHANGED
@@ -1,17 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkJF2WNLPF_cjs = require('./chunk-JF2WNLPF.cjs');
4
- require('./chunk-DH4NYYJP.cjs');
3
+ var chunk5WAXZJG5_cjs = require('./chunk-5WAXZJG5.cjs');
4
+ require('./chunk-TJII7BQ2.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Button", {
9
9
  enumerable: true,
10
- get: function () { return chunkJF2WNLPF_cjs.Button; }
10
+ get: function () { return chunk5WAXZJG5_cjs.Button; }
11
11
  });
12
- Object.defineProperty(exports, "IconButton", {
13
- enumerable: true,
14
- get: function () { return chunkJF2WNLPF_cjs.IconButton; }
15
- });
16
- //# sourceMappingURL=Button.cjs.map
17
- //# sourceMappingURL=Button.cjs.map
package/dist/Button.d.cts CHANGED
@@ -12,6 +12,10 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
12
12
  icon?: IconName;
13
13
  /** Trailing icon. */
14
14
  trailingIcon?: IconName;
15
+ /** Render as a square icon-only button. Automatically enabled when `icon` is set and no children are provided. */
16
+ iconOnly?: boolean;
17
+ /** Native tooltip/title for compact icon-only buttons. */
18
+ tip?: string;
15
19
  /** Show spinner + disable interaction. */
16
20
  loading?: boolean;
17
21
  /** Make the button fill the container's width. */
@@ -30,14 +34,5 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
30
34
  * <Button variant="ghost" loading>保存</Button>
31
35
  */
32
36
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
33
- interface IconButtonProps extends Omit<ButtonProps, "icon" | "children"> {
34
- icon: IconName;
35
- tip?: string;
36
- "aria-label"?: string;
37
- }
38
- /**
39
- * `IconButton` — square button containing just an icon. Pair with a tooltip.
40
- */
41
- declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
42
37
 
43
- export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, IconButton, type IconButtonProps };
38
+ export { Button, type ButtonProps, type ButtonSize, type ButtonVariant };
package/dist/Button.d.ts CHANGED
@@ -12,6 +12,10 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
12
12
  icon?: IconName;
13
13
  /** Trailing icon. */
14
14
  trailingIcon?: IconName;
15
+ /** Render as a square icon-only button. Automatically enabled when `icon` is set and no children are provided. */
16
+ iconOnly?: boolean;
17
+ /** Native tooltip/title for compact icon-only buttons. */
18
+ tip?: string;
15
19
  /** Show spinner + disable interaction. */
16
20
  loading?: boolean;
17
21
  /** Make the button fill the container's width. */
@@ -30,14 +34,5 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
30
34
  * <Button variant="ghost" loading>保存</Button>
31
35
  */
32
36
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
33
- interface IconButtonProps extends Omit<ButtonProps, "icon" | "children"> {
34
- icon: IconName;
35
- tip?: string;
36
- "aria-label"?: string;
37
- }
38
- /**
39
- * `IconButton` — square button containing just an icon. Pair with a tooltip.
40
- */
41
- declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
42
37
 
43
- export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, IconButton, type IconButtonProps };
38
+ export { Button, type ButtonProps, type ButtonSize, type ButtonVariant };
package/dist/Button.js CHANGED
@@ -1,4 +1,2 @@
1
- export { Button, IconButton } from './chunk-6FSOJLY6.js';
2
- import './chunk-BSHHQOFY.js';
3
- //# sourceMappingURL=Button.js.map
4
- //# sourceMappingURL=Button.js.map
1
+ export { Button } from './chunk-JD7A6VM3.js';
2
+ import './chunk-OF3SGLZY.js';
package/dist/Calendar.cjs CHANGED
@@ -1,13 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkV24B7KWT_cjs = require('./chunk-V24B7KWT.cjs');
4
- require('./chunk-DH4NYYJP.cjs');
3
+ var chunk4WTU5P3O_cjs = require('./chunk-4WTU5P3O.cjs');
4
+ require('./chunk-TJII7BQ2.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Calendar", {
9
9
  enumerable: true,
10
- get: function () { return chunkV24B7KWT_cjs.Calendar; }
10
+ get: function () { return chunk4WTU5P3O_cjs.Calendar; }
11
11
  });
12
- //# sourceMappingURL=Calendar.cjs.map
13
- //# sourceMappingURL=Calendar.cjs.map
package/dist/Calendar.js CHANGED
@@ -1,4 +1,2 @@
1
- export { Calendar } from './chunk-4DNHASZU.js';
2
- import './chunk-BSHHQOFY.js';
3
- //# sourceMappingURL=Calendar.js.map
4
- //# sourceMappingURL=Calendar.js.map
1
+ export { Calendar } from './chunk-33NCTOEB.js';
2
+ import './chunk-OF3SGLZY.js';
@@ -1,4 +1,4 @@
1
- /* ============ Card & Panel ============ */
1
+ /* ============ Card ============ */
2
2
  .card {
3
3
  background: var(--bg);
4
4
  border-radius: var(--r-lg);
@@ -22,18 +22,12 @@
22
22
  .card.hoverable.flat:hover { box-shadow: var(--neu-out-sm); }
23
23
  .card.hoverable.sunken:hover { box-shadow: var(--neu-out); }
24
24
 
25
- .panel {
26
- background: var(--bg);
27
- border-radius: var(--r-lg);
28
- box-shadow: var(--neu-out);
29
- padding: var(--gap-5);
30
- }
31
- .panel-head {
25
+ .card-head {
32
26
  display: flex; align-items: flex-start; justify-content: space-between;
33
27
  gap: var(--gap-3); margin-bottom: var(--gap-4);
34
28
  }
35
- .panel-titles { display: flex; flex-direction: column; gap: 2px; }
36
- .panel-title { font-size: 15px; font-weight: 600; }
37
- .panel-desc { font-size: 12px; color: var(--fg-muted); }
38
- .panel-actions { display: flex; gap: 6px; }
39
- .panel-body { font-size: 13px; }
29
+ .card-titles { display: flex; flex-direction: column; gap: 2px; }
30
+ .card-title { font-size: 15px; font-weight: 600; }
31
+ .card-desc { font-size: 12px; color: var(--fg-muted); }
32
+ .card-actions { display: flex; gap: 6px; }
33
+ .card-body { font-size: 13px; }
package/dist/Card.cjs CHANGED
@@ -1,16 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkMUFMJPRT_cjs = require('./chunk-MUFMJPRT.cjs');
3
+ var chunkGMN74OEY_cjs = require('./chunk-GMN74OEY.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Card", {
8
8
  enumerable: true,
9
- get: function () { return chunkMUFMJPRT_cjs.Card; }
9
+ get: function () { return chunkGMN74OEY_cjs.Card; }
10
10
  });
11
- Object.defineProperty(exports, "Panel", {
12
- enumerable: true,
13
- get: function () { return chunkMUFMJPRT_cjs.Panel; }
14
- });
15
- //# sourceMappingURL=Card.cjs.map
16
- //# sourceMappingURL=Card.cjs.map
package/dist/Card.d.cts CHANGED
@@ -1,27 +1,23 @@
1
1
  import * as React from 'react';
2
2
 
3
- interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
4
4
  /** Visual variant. `raised` protrudes; `sunken` recesses; `flat` is subtle. */
5
5
  variant?: "raised" | "sunken" | "flat";
6
6
  /** Inner padding. */
7
7
  padding?: "none" | "sm" | "md" | "lg";
8
8
  /** When true, the card raises and lifts on hover. */
9
9
  hoverable?: boolean;
10
- children?: React.ReactNode;
11
- }
12
- /**
13
- * `Card` — neumorphic surface container. Use to group related content.
14
- */
15
- declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
16
- interface PanelProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
10
+ /** Optional card heading. */
17
11
  title?: React.ReactNode;
12
+ /** Secondary text shown under `title`. */
18
13
  description?: React.ReactNode;
14
+ /** Action slot aligned to the card heading. */
19
15
  actions?: React.ReactNode;
20
16
  children?: React.ReactNode;
21
17
  }
22
18
  /**
23
- * `Panel` — a titled `Card` with optional actions row.
19
+ * `Card` — neumorphic surface container. Use to group related content.
24
20
  */
25
- declare const Panel: React.FC<PanelProps>;
21
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
26
22
 
27
- export { Card, type CardProps, Panel, type PanelProps };
23
+ export { Card, type CardProps };
package/dist/Card.d.ts CHANGED
@@ -1,27 +1,23 @@
1
1
  import * as React from 'react';
2
2
 
3
- interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
4
4
  /** Visual variant. `raised` protrudes; `sunken` recesses; `flat` is subtle. */
5
5
  variant?: "raised" | "sunken" | "flat";
6
6
  /** Inner padding. */
7
7
  padding?: "none" | "sm" | "md" | "lg";
8
8
  /** When true, the card raises and lifts on hover. */
9
9
  hoverable?: boolean;
10
- children?: React.ReactNode;
11
- }
12
- /**
13
- * `Card` — neumorphic surface container. Use to group related content.
14
- */
15
- declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
16
- interface PanelProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
10
+ /** Optional card heading. */
17
11
  title?: React.ReactNode;
12
+ /** Secondary text shown under `title`. */
18
13
  description?: React.ReactNode;
14
+ /** Action slot aligned to the card heading. */
19
15
  actions?: React.ReactNode;
20
16
  children?: React.ReactNode;
21
17
  }
22
18
  /**
23
- * `Panel` — a titled `Card` with optional actions row.
19
+ * `Card` — neumorphic surface container. Use to group related content.
24
20
  */
25
- declare const Panel: React.FC<PanelProps>;
21
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
26
22
 
27
- export { Card, type CardProps, Panel, type PanelProps };
23
+ export { Card, type CardProps };
package/dist/Card.js CHANGED
@@ -1,3 +1 @@
1
- export { Card, Panel } from './chunk-4SCDDSXY.js';
2
- //# sourceMappingURL=Card.js.map
3
- //# sourceMappingURL=Card.js.map
1
+ export { Card } from './chunk-AXZ7ELMA.js';
@@ -24,6 +24,24 @@
24
24
  }
25
25
  .cascader-trigger.placeholder { color: var(--fg-subtle); }
26
26
  .cascader.open .cascader-trigger { box-shadow: var(--neu-in-sm); color: var(--accent-ink); }
27
+ .cascader-clear {
28
+ position: absolute;
29
+ right: 30px;
30
+ top: 50%;
31
+ transform: translateY(-50%);
32
+ width: 20px;
33
+ height: 20px;
34
+ border-radius: 999px;
35
+ background: var(--bg);
36
+ box-shadow: var(--neu-out-sm);
37
+ display: inline-grid;
38
+ place-items: center;
39
+ color: var(--fg-subtle);
40
+ opacity: 0;
41
+ transition: all var(--dur-fast) var(--ease);
42
+ }
43
+ .cascader:hover .cascader-clear { opacity: 1; }
44
+ .cascader-clear:hover { color: var(--accent-ink); box-shadow: var(--neu-in-sm); }
27
45
  .cascader-panel {
28
46
  z-index: 1000;
29
47
  display: flex;
@@ -34,6 +52,52 @@
34
52
  animation: menuIn var(--dur) var(--ease);
35
53
  gap: 4px;
36
54
  }
55
+ .cascader-panel.with-search {
56
+ flex-direction: column;
57
+ min-width: 320px;
58
+ }
59
+ .cascader-columns {
60
+ display: flex;
61
+ gap: 4px;
62
+ }
63
+ .cascader-search {
64
+ padding: 4px 2px 8px;
65
+ border-bottom: 1px solid var(--divider);
66
+ }
67
+ .cascader-search-list {
68
+ display: flex;
69
+ flex-direction: column;
70
+ gap: 4px;
71
+ max-height: 260px;
72
+ overflow-y: auto;
73
+ padding: 4px;
74
+ }
75
+ .cascader-search-item {
76
+ border: none;
77
+ background: transparent;
78
+ color: var(--fg);
79
+ border-radius: var(--r-sm);
80
+ padding: 8px 10px;
81
+ display: flex;
82
+ align-items: center;
83
+ gap: 6px;
84
+ font-size: 13px;
85
+ font-family: inherit;
86
+ text-align: left;
87
+ cursor: pointer;
88
+ }
89
+ .cascader-search-item:hover {
90
+ background: var(--bg);
91
+ box-shadow: var(--neu-flat);
92
+ color: var(--accent-ink);
93
+ }
94
+ .cascader-path-sep { color: var(--fg-subtle); }
95
+ .cascader-empty {
96
+ padding: 24px 12px;
97
+ text-align: center;
98
+ color: var(--fg-muted);
99
+ font-size: 12px;
100
+ }
37
101
  .cascader-col {
38
102
  min-width: 160px;
39
103
  max-height: 280px;
package/dist/Cascader.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkHQO7EZNQ_cjs = require('./chunk-HQO7EZNQ.cjs');
4
- require('./chunk-3XIDJEYR.cjs');
5
- require('./chunk-DH4NYYJP.cjs');
3
+ var chunkQGHYQCF3_cjs = require('./chunk-QGHYQCF3.cjs');
4
+ require('./chunk-YB3IWIOJ.cjs');
5
+ require('./chunk-6LZ54NPO.cjs');
6
+ require('./chunk-OQBDU5I2.cjs');
7
+ require('./chunk-TJII7BQ2.cjs');
6
8
 
7
9
 
8
10
 
9
11
  Object.defineProperty(exports, "Cascader", {
10
12
  enumerable: true,
11
- get: function () { return chunkHQO7EZNQ_cjs.Cascader; }
13
+ get: function () { return chunkQGHYQCF3_cjs.Cascader; }
12
14
  });
13
- //# sourceMappingURL=Cascader.cjs.map
14
- //# sourceMappingURL=Cascader.cjs.map
@@ -8,16 +8,32 @@ interface CascaderOption {
8
8
  children?: CascaderOption[];
9
9
  disabled?: boolean;
10
10
  }
11
+ interface CascaderShowSearchConfig {
12
+ filter?: (inputValue: string, path: CascaderOption[]) => boolean;
13
+ render?: (inputValue: string, path: CascaderOption[]) => React.ReactNode;
14
+ limit?: number | false;
15
+ }
11
16
  interface CascaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
12
17
  options: CascaderOption[];
13
18
  value?: string[];
14
19
  defaultValue?: string[];
15
- onChange?: (path: string[]) => void;
20
+ onChange?: (path: string[], selectedOptions?: CascaderOption[]) => void;
16
21
  placeholder?: string;
17
22
  disabled?: boolean;
23
+ /** Show a clear button. */
24
+ allowClear?: boolean;
25
+ onClear?: () => void;
26
+ /** Select intermediate nodes instead of only leaf nodes. */
27
+ changeOnSelect?: boolean;
28
+ /** Search mode. */
29
+ showSearch?: boolean | CascaderShowSearchConfig;
30
+ /** Class for the popped-out panel. */
31
+ popupClassName?: string;
32
+ /** Additional alias for `popupClassName`. */
33
+ dropdownClassName?: string;
18
34
  className?: string;
19
35
  }
20
36
  /** `Cascader` — multi-column hierarchical selector. */
21
37
  declare const Cascader: React.ForwardRefExoticComponent<CascaderProps & React.RefAttributes<HTMLDivElement>>;
22
38
 
23
- export { Cascader, type CascaderOption, type CascaderProps };
39
+ export { Cascader, type CascaderOption, type CascaderProps, type CascaderShowSearchConfig };
@@ -8,16 +8,32 @@ interface CascaderOption {
8
8
  children?: CascaderOption[];
9
9
  disabled?: boolean;
10
10
  }
11
+ interface CascaderShowSearchConfig {
12
+ filter?: (inputValue: string, path: CascaderOption[]) => boolean;
13
+ render?: (inputValue: string, path: CascaderOption[]) => React.ReactNode;
14
+ limit?: number | false;
15
+ }
11
16
  interface CascaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
12
17
  options: CascaderOption[];
13
18
  value?: string[];
14
19
  defaultValue?: string[];
15
- onChange?: (path: string[]) => void;
20
+ onChange?: (path: string[], selectedOptions?: CascaderOption[]) => void;
16
21
  placeholder?: string;
17
22
  disabled?: boolean;
23
+ /** Show a clear button. */
24
+ allowClear?: boolean;
25
+ onClear?: () => void;
26
+ /** Select intermediate nodes instead of only leaf nodes. */
27
+ changeOnSelect?: boolean;
28
+ /** Search mode. */
29
+ showSearch?: boolean | CascaderShowSearchConfig;
30
+ /** Class for the popped-out panel. */
31
+ popupClassName?: string;
32
+ /** Additional alias for `popupClassName`. */
33
+ dropdownClassName?: string;
18
34
  className?: string;
19
35
  }
20
36
  /** `Cascader` — multi-column hierarchical selector. */
21
37
  declare const Cascader: React.ForwardRefExoticComponent<CascaderProps & React.RefAttributes<HTMLDivElement>>;
22
38
 
23
- export { Cascader, type CascaderOption, type CascaderProps };
39
+ export { Cascader, type CascaderOption, type CascaderProps, type CascaderShowSearchConfig };
package/dist/Cascader.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Cascader } from './chunk-DUNQNSVK.js';
2
- import './chunk-ANAQER3T.js';
3
- import './chunk-BSHHQOFY.js';
4
- //# sourceMappingURL=Cascader.js.map
5
- //# sourceMappingURL=Cascader.js.map
1
+ export { Cascader } from './chunk-GNEZQMKH.js';
2
+ import './chunk-DUFRASGO.js';
3
+ import './chunk-XTIN5545.js';
4
+ import './chunk-WGZ2KJTZ.js';
5
+ import './chunk-OF3SGLZY.js';