@fangxinyan/lumina 0.10.0 → 0.10.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 (433) hide show
  1. package/README.md +2 -2
  2. package/dist/Alert-DJ3K7N7L.css +53 -0
  3. package/dist/Alert.cjs +5 -5
  4. package/dist/Alert.d.cts +1 -1
  5. package/dist/Alert.d.ts +1 -1
  6. package/dist/Alert.js +4 -4
  7. package/dist/AppShell-OWJRJ4ZD.css +197 -0
  8. package/dist/AppShell.cjs +8 -8
  9. package/dist/AppShell.d.cts +1 -1
  10. package/dist/AppShell.d.ts +1 -1
  11. package/dist/AppShell.js +4 -4
  12. package/dist/AutoComplete-PNCYHU2T.css +54 -0
  13. package/dist/AutoComplete.cjs +9 -10
  14. package/dist/AutoComplete.d.cts +1 -3
  15. package/dist/AutoComplete.d.ts +1 -3
  16. package/dist/AutoComplete.js +8 -9
  17. package/dist/{Avatar-3QACN2BC.css → Avatar-YBU2YZTW.css} +2 -2
  18. package/dist/Avatar.cjs +4 -4
  19. package/dist/Avatar.d.cts +1 -1
  20. package/dist/Avatar.d.ts +1 -1
  21. package/dist/Avatar.js +3 -3
  22. package/dist/{Badge-QQ4ANPQC.css → Badge-DBWJEV4C.css} +9 -9
  23. package/dist/Badge.cjs +4 -4
  24. package/dist/Badge.d.cts +1 -1
  25. package/dist/Badge.d.ts +1 -1
  26. package/dist/Badge.js +3 -3
  27. package/dist/Button-ILNZUX2N.css +125 -0
  28. package/dist/Button.cjs +6 -6
  29. package/dist/Button.d.cts +3 -5
  30. package/dist/Button.d.ts +3 -5
  31. package/dist/Button.js +4 -4
  32. package/dist/{Calendar-TDLACWMI.css → Calendar-QJ5HWEJQ.css} +18 -23
  33. package/dist/Calendar.cjs +5 -5
  34. package/dist/Calendar.d.cts +1 -1
  35. package/dist/Calendar.d.ts +1 -1
  36. package/dist/Calendar.js +4 -4
  37. package/dist/{Card-IVSREXOT.css → Card-VPMTWAWZ.css} +15 -13
  38. package/dist/Card.cjs +7 -8
  39. package/dist/Card.d.cts +1 -1
  40. package/dist/Card.d.ts +1 -1
  41. package/dist/Card.js +6 -7
  42. package/dist/Cascader-YBVDK6DC.css +168 -0
  43. package/dist/Cascader.cjs +9 -10
  44. package/dist/Cascader.d.cts +1 -5
  45. package/dist/Cascader.d.ts +1 -5
  46. package/dist/Cascader.js +8 -9
  47. package/dist/{Checkbox-72TYCE4F.css → Checkbox-YQ43GFUI.css} +10 -20
  48. package/dist/Checkbox.cjs +5 -5
  49. package/dist/Checkbox.d.cts +1 -3
  50. package/dist/Checkbox.d.ts +1 -3
  51. package/dist/Checkbox.js +4 -4
  52. package/dist/Collapse-BTSBHBSY.css +58 -0
  53. package/dist/Collapse.cjs +5 -6
  54. package/dist/Collapse.d.cts +2 -3
  55. package/dist/Collapse.d.ts +2 -3
  56. package/dist/Collapse.js +4 -5
  57. package/dist/{ColorPicker-4YOX3753.css → ColorPicker-GRZOKR5O.css} +25 -42
  58. package/dist/ColorPicker.cjs +9 -10
  59. package/dist/ColorPicker.d.cts +1 -3
  60. package/dist/ColorPicker.d.ts +1 -3
  61. package/dist/ColorPicker.js +8 -9
  62. package/dist/CommandPalette-GHTX7AAA.css +138 -0
  63. package/dist/CommandPalette.cjs +8 -9
  64. package/dist/CommandPalette.d.cts +1 -1
  65. package/dist/CommandPalette.d.ts +1 -1
  66. package/dist/CommandPalette.js +7 -8
  67. package/dist/{ContextMenu-QYBADTI6.css → ContextMenu-NG524Y2P.css} +10 -13
  68. package/dist/ContextMenu.cjs +5 -6
  69. package/dist/ContextMenu.d.cts +1 -1
  70. package/dist/ContextMenu.d.ts +1 -1
  71. package/dist/ContextMenu.js +4 -5
  72. package/dist/DatePicker-ZSFDXAYD.css +60 -0
  73. package/dist/DatePicker.cjs +12 -13
  74. package/dist/DatePicker.d.cts +1 -1
  75. package/dist/DatePicker.d.ts +1 -1
  76. package/dist/DatePicker.js +11 -12
  77. package/dist/{DateTimePicker-IA2TW3IB.css → DateTimePicker-EWSISVIF.css} +23 -25
  78. package/dist/DateTimePicker.cjs +12 -13
  79. package/dist/DateTimePicker.d.cts +1 -1
  80. package/dist/DateTimePicker.d.ts +1 -1
  81. package/dist/DateTimePicker.js +11 -12
  82. package/dist/{Divider-TNXPEHPI.css → Divider-OI2BXPBU.css} +7 -7
  83. package/dist/Divider.cjs +4 -4
  84. package/dist/Divider.d.cts +1 -1
  85. package/dist/Divider.d.ts +1 -1
  86. package/dist/Divider.js +3 -3
  87. package/dist/{Drawer-D4MHWACH.css → Drawer-VCXAXWV6.css} +15 -18
  88. package/dist/Drawer.cjs +6 -7
  89. package/dist/Drawer.d.cts +1 -1
  90. package/dist/Drawer.d.ts +1 -1
  91. package/dist/Drawer.js +5 -6
  92. package/dist/Empty-U5CBLCAL.css +28 -0
  93. package/dist/Empty.cjs +4 -4
  94. package/dist/Empty.d.cts +1 -1
  95. package/dist/Empty.d.ts +1 -1
  96. package/dist/Empty.js +3 -3
  97. package/dist/Form-DNEDZRJA.css +67 -0
  98. package/dist/Form.cjs +7 -7
  99. package/dist/Form.d.cts +1 -1
  100. package/dist/Form.d.ts +1 -1
  101. package/dist/Form.js +4 -4
  102. package/dist/Icon.cjs +51 -51
  103. package/dist/Icon.d.cts +1 -1
  104. package/dist/Icon.d.ts +1 -1
  105. package/dist/Icon.js +3 -3
  106. package/dist/{Image-ALIDKO4K.css → Image-CZJPPURT.css} +21 -25
  107. package/dist/Image.cjs +10 -11
  108. package/dist/Image.d.cts +1 -1
  109. package/dist/Image.d.ts +1 -1
  110. package/dist/Image.js +6 -7
  111. package/dist/{Input-NNDCHL7X.css → Input-ZUASNDXM.css} +8 -16
  112. package/dist/Input.cjs +7 -7
  113. package/dist/Input.d.cts +1 -1
  114. package/dist/Input.d.ts +1 -1
  115. package/dist/Input.js +5 -5
  116. package/dist/InputNumber-6NHBMRT4.css +40 -0
  117. package/dist/InputNumber.cjs +7 -7
  118. package/dist/InputNumber.d.cts +1 -1
  119. package/dist/InputNumber.d.ts +1 -1
  120. package/dist/InputNumber.js +6 -6
  121. package/dist/List-6BQIFAIT.css +42 -0
  122. package/dist/List.cjs +4 -4
  123. package/dist/List.d.cts +1 -1
  124. package/dist/List.d.ts +1 -1
  125. package/dist/List.js +3 -3
  126. package/dist/{Message-P7M3U2CL.css → Message-OTZWQTQ5.css} +8 -10
  127. package/dist/Message.cjs +9 -11
  128. package/dist/Message.d.cts +2 -8
  129. package/dist/Message.d.ts +2 -8
  130. package/dist/Message.js +5 -7
  131. package/dist/{Modal-3H5IMH2N.css → Modal-KLLX3Z2M.css} +16 -19
  132. package/dist/Modal.cjs +7 -8
  133. package/dist/Modal.d.cts +1 -1
  134. package/dist/Modal.d.ts +1 -1
  135. package/dist/Modal.js +6 -7
  136. package/dist/Pagination-POJTWMYR.css +70 -0
  137. package/dist/Pagination.cjs +11 -12
  138. package/dist/Pagination.d.cts +1 -3
  139. package/dist/Pagination.d.ts +1 -3
  140. package/dist/Pagination.js +10 -11
  141. package/dist/{Popover-JUA7DO7M.css → Popover-LCXLR3EU.css} +12 -12
  142. package/dist/Popover.cjs +6 -7
  143. package/dist/Popover.d.cts +1 -1
  144. package/dist/Popover.d.ts +1 -1
  145. package/dist/Popover.js +5 -6
  146. package/dist/{Progress-7O2BLYY5.css → Progress-33WE2NI7.css} +12 -4
  147. package/dist/Progress.cjs +4 -4
  148. package/dist/Progress.d.cts +1 -1
  149. package/dist/Progress.d.ts +1 -1
  150. package/dist/Progress.js +3 -3
  151. package/dist/Radio-RL7232MZ.css +105 -0
  152. package/dist/Radio.cjs +5 -6
  153. package/dist/Radio.d.cts +1 -5
  154. package/dist/Radio.d.ts +1 -5
  155. package/dist/Radio.js +3 -4
  156. package/dist/{Select-GFR5PIRY.css → Select-M3HCB3PW.css} +35 -44
  157. package/dist/Select.cjs +8 -9
  158. package/dist/Select.d.cts +1 -1
  159. package/dist/Select.d.ts +1 -1
  160. package/dist/Select.js +7 -8
  161. package/dist/{Skeleton-GDYN55I7.css → Skeleton-FMFE3BRI.css} +4 -4
  162. package/dist/Skeleton.cjs +4 -4
  163. package/dist/Skeleton.d.cts +1 -1
  164. package/dist/Skeleton.d.ts +1 -1
  165. package/dist/Skeleton.js +3 -3
  166. package/dist/{Slider-7VKECCZL.css → Slider-FZ5MI4X2.css} +21 -31
  167. package/dist/Slider.cjs +4 -4
  168. package/dist/Slider.d.cts +1 -5
  169. package/dist/Slider.d.ts +1 -5
  170. package/dist/Slider.js +3 -3
  171. package/dist/{Spin-F7YQJI7T.css → Spin-F5YIEENO.css} +6 -5
  172. package/dist/Spin.cjs +4 -5
  173. package/dist/Spin.d.cts +2 -3
  174. package/dist/Spin.d.ts +2 -3
  175. package/dist/Spin.js +3 -4
  176. package/dist/{Splitter-P2U6VO2N.css → Splitter-IQ3PFIKK.css} +2 -2
  177. package/dist/Splitter.cjs +4 -4
  178. package/dist/Splitter.d.cts +1 -1
  179. package/dist/Splitter.d.ts +1 -1
  180. package/dist/Splitter.js +3 -3
  181. package/dist/{StatusBar-YKD6Z4ER.css → StatusBar-TCGR3LXP.css} +6 -8
  182. package/dist/StatusBar.cjs +5 -5
  183. package/dist/StatusBar.d.cts +1 -1
  184. package/dist/StatusBar.d.ts +1 -1
  185. package/dist/StatusBar.js +3 -3
  186. package/dist/Surface-CTN775GD.css +42 -0
  187. package/dist/Surface.cjs +6 -7
  188. package/dist/Surface.d.cts +2 -2
  189. package/dist/Surface.d.ts +2 -2
  190. package/dist/Surface.js +4 -5
  191. package/dist/{Switch-3XFRLEDG.css → Switch-3JV3LCPX.css} +14 -18
  192. package/dist/Switch.cjs +4 -4
  193. package/dist/Switch.d.cts +2 -3
  194. package/dist/Switch.d.ts +2 -3
  195. package/dist/Switch.js +3 -3
  196. package/dist/{Table-BZ2LZIOR.css → Table-KB6EEBDJ.css} +33 -32
  197. package/dist/Table.cjs +14 -15
  198. package/dist/Table.d.cts +1 -1
  199. package/dist/Table.d.ts +1 -1
  200. package/dist/Table.js +13 -14
  201. package/dist/TablePro-WYE6TXWJ.css +45 -0
  202. package/dist/TablePro.cjs +15 -16
  203. package/dist/TablePro.d.cts +1 -1
  204. package/dist/TablePro.d.ts +1 -1
  205. package/dist/TablePro.js +14 -15
  206. package/dist/Tabs-FB2AMBWL.css +82 -0
  207. package/dist/Tabs.cjs +4 -5
  208. package/dist/Tabs.d.cts +1 -3
  209. package/dist/Tabs.d.ts +1 -3
  210. package/dist/Tabs.js +3 -4
  211. package/dist/Tag-5GIZLRAH.css +42 -0
  212. package/dist/Tag.cjs +5 -5
  213. package/dist/Tag.d.cts +1 -3
  214. package/dist/Tag.d.ts +1 -3
  215. package/dist/Tag.js +4 -4
  216. package/dist/Textarea-ZGHBZNLX.css +54 -0
  217. package/dist/Textarea.cjs +6 -6
  218. package/dist/Textarea.d.cts +1 -3
  219. package/dist/Textarea.d.ts +1 -3
  220. package/dist/Textarea.js +4 -4
  221. package/dist/Theme-BJa0Nb3w.d.cts +193 -0
  222. package/dist/Theme-DTtq_WWg.d.ts +193 -0
  223. package/dist/Theme.cjs +41 -42
  224. package/dist/Theme.d.cts +6 -110
  225. package/dist/Theme.d.ts +6 -110
  226. package/dist/Theme.js +2 -3
  227. package/dist/{ThemePanel-QHQKWSJ3.css → ThemePanel-EHNAS4RN.css} +75 -94
  228. package/dist/ThemePanel.cjs +17 -21
  229. package/dist/ThemePanel.d.cts +3 -17
  230. package/dist/ThemePanel.d.ts +3 -17
  231. package/dist/ThemePanel.js +14 -18
  232. package/dist/{TimePicker-DQO4WD2F.css → TimePicker-WJ3FSK6A.css} +14 -16
  233. package/dist/TimePicker.cjs +11 -12
  234. package/dist/TimePicker.d.cts +1 -1
  235. package/dist/TimePicker.d.ts +1 -1
  236. package/dist/TimePicker.js +10 -11
  237. package/dist/{Timeline-LXDF5X3C.css → Timeline-FUFO2UGY.css} +6 -9
  238. package/dist/Timeline.cjs +5 -6
  239. package/dist/Timeline.d.cts +1 -1
  240. package/dist/Timeline.d.ts +1 -1
  241. package/dist/Timeline.js +4 -5
  242. package/dist/{Tooltip-UQSCPNVZ.css → Tooltip-2EUNTOTW.css} +3 -3
  243. package/dist/Tooltip.cjs +6 -7
  244. package/dist/Tooltip.d.cts +1 -1
  245. package/dist/Tooltip.d.ts +1 -1
  246. package/dist/Tooltip.js +5 -6
  247. package/dist/{Typography-EVL7RTYP.css → Typography-CQ2OZXQH.css} +36 -41
  248. package/dist/Typography.cjs +11 -13
  249. package/dist/Typography.d.cts +1 -10
  250. package/dist/Typography.d.ts +1 -10
  251. package/dist/Typography.js +6 -8
  252. package/dist/{chunk-OEZIQWDQ.js → chunk-2BM65ITV.js} +3 -3
  253. package/dist/{chunk-MRYMT5PD.js → chunk-2NXLVPF4.js} +5 -5
  254. package/dist/{chunk-5PHL7D6E.cjs → chunk-2XDLXAZT.cjs} +8 -8
  255. package/dist/{chunk-TGZ7LQAP.cjs → chunk-33YRXHVK.cjs} +10 -13
  256. package/dist/{chunk-ORUSW4TE.js → chunk-427CDZDU.js} +4 -4
  257. package/dist/{chunk-HQ2B4DBK.js → chunk-4JANYBXO.js} +5 -23
  258. package/dist/{chunk-GNA6TVXK.js → chunk-4K6PQCWU.js} +8 -8
  259. package/dist/{chunk-2HK5KZRE.cjs → chunk-4LYJRFD2.cjs} +5 -5
  260. package/dist/{chunk-VJSMHRLZ.cjs → chunk-4MZW2KBN.cjs} +15 -15
  261. package/dist/{chunk-TXX73BPI.cjs → chunk-53I3PWRH.cjs} +5 -5
  262. package/dist/{chunk-OQLDPYZ2.js → chunk-563SQXH7.js} +5 -5
  263. package/dist/{chunk-CZIQSGYL.js → chunk-5HLNFDV4.js} +3 -7
  264. package/dist/{chunk-X5OPHL6U.cjs → chunk-5OQB5UUT.cjs} +21 -21
  265. package/dist/{chunk-YAE6D2RV.js → chunk-5PDEOGFV.js} +8 -11
  266. package/dist/{chunk-WQ5GH6XV.cjs → chunk-5PGRAEGA.cjs} +22 -24
  267. package/dist/{chunk-XOQ2M3A3.js → chunk-5VLANZAJ.js} +5 -5
  268. package/dist/{chunk-IZ2QVS4E.cjs → chunk-6A5KEWVU.cjs} +2 -2
  269. package/dist/{chunk-JEEWG5EB.js → chunk-6EHKQDMX.js} +12 -13
  270. package/dist/{chunk-VNMDLKWD.js → chunk-6OVWY63D.js} +4 -4
  271. package/dist/{chunk-WZZXJEED.cjs → chunk-6WEXRX7K.cjs} +9 -9
  272. package/dist/{chunk-CZYCRH6J.cjs → chunk-73IEJLSD.cjs} +23 -23
  273. package/dist/{chunk-SLVWSAXY.cjs → chunk-757JNNLH.cjs} +17 -18
  274. package/dist/{chunk-E3DMS43P.cjs → chunk-76CTKBXD.cjs} +5 -5
  275. package/dist/{chunk-AZTRNDG4.js → chunk-7NKNQRK6.js} +6 -6
  276. package/dist/{chunk-3EHPEKZP.js → chunk-7QKSXVN3.js} +6 -6
  277. package/dist/{chunk-Z4SCQG7W.cjs → chunk-ADPXWCTK.cjs} +11 -11
  278. package/dist/{chunk-5OBJUNBW.js → chunk-AEMDX4S7.js} +9 -15
  279. package/dist/{chunk-HGJS2WO6.cjs → chunk-AEY76EAH.cjs} +6 -24
  280. package/dist/{chunk-6TNAP326.js → chunk-AXZNZ2IH.js} +6 -9
  281. package/dist/{chunk-JAFA5KEI.cjs → chunk-BCQIVYL6.cjs} +12 -12
  282. package/dist/{chunk-JPGLAM3A.cjs → chunk-BM2J5QAE.cjs} +31 -34
  283. package/dist/{chunk-CQRXTUXB.cjs → chunk-BN44QG2B.cjs} +3 -9
  284. package/dist/{chunk-NI7A7QUH.js → chunk-BOBT7JUB.js} +4 -4
  285. package/dist/{chunk-C3BTIUQY.js → chunk-BZB45GGK.js} +3 -9
  286. package/dist/{chunk-D7Z4GBVQ.cjs → chunk-CLJLBFNU.cjs} +6 -6
  287. package/dist/{chunk-XTYD55Y5.cjs → chunk-CNV7R2OZ.cjs} +10 -13
  288. package/dist/{chunk-YLKG4J5D.js → chunk-CPVUDSIY.js} +453 -167
  289. package/dist/{chunk-BE7GQLRY.js → chunk-D2N7OXMK.js} +65 -44
  290. package/dist/{chunk-EKLVHLYC.cjs → chunk-D5HLHN5N.cjs} +33 -33
  291. package/dist/{chunk-YHWPHTSP.cjs → chunk-ELKGV3NA.cjs} +2 -2
  292. package/dist/{chunk-QSOKXTXC.js → chunk-G4E5QA2M.js} +11 -14
  293. package/dist/chunk-G5LCOBOT.cjs +213 -0
  294. package/dist/{chunk-X6CSD3JA.js → chunk-G62HAXAL.js} +11 -11
  295. package/dist/{chunk-3AC6LQ34.cjs → chunk-GFGMGJ5A.cjs} +15 -17
  296. package/dist/{chunk-AD465OWY.js → chunk-HAIWLYLR.js} +6 -6
  297. package/dist/{chunk-JREPEP6P.cjs → chunk-HPNZDAXF.cjs} +23 -23
  298. package/dist/{chunk-4UNW4HOZ.cjs → chunk-I4GJZLJU.cjs} +489 -183
  299. package/dist/{chunk-GJSJKN4W.cjs → chunk-IM47JR57.cjs} +16 -19
  300. package/dist/{chunk-W6NQP6YF.js → chunk-ISK2RW7F.js} +4 -4
  301. package/dist/{chunk-6DDP3GHQ.js → chunk-J7D5CQDK.js} +4 -4
  302. package/dist/{chunk-EOFLJIZ4.cjs → chunk-JNDATLOY.cjs} +8 -8
  303. package/dist/{chunk-DN5WQSYM.js → chunk-K4P45V67.js} +9 -12
  304. package/dist/{chunk-J7UCRWCY.js → chunk-KFCWDFBW.js} +4 -4
  305. package/dist/{chunk-7IRYSX25.js → chunk-KJG44Z5J.js} +7 -7
  306. package/dist/{chunk-YL4SRXVJ.cjs → chunk-KPBZKHCS.cjs} +8 -10
  307. package/dist/{chunk-M5ORQL4N.js → chunk-L2NEYHYG.js} +5 -10
  308. package/dist/{chunk-TWXJY4TK.cjs → chunk-L6ELDWUX.cjs} +16 -19
  309. package/dist/{chunk-NG6AJHGR.js → chunk-LACXN5CI.js} +4 -4
  310. package/dist/{chunk-P6GYDVL4.cjs → chunk-LDZCDOMW.cjs} +301 -448
  311. package/dist/{chunk-TTWITEH5.cjs → chunk-LQKP7MEA.cjs} +12 -12
  312. package/dist/{chunk-EGOXQN5F.cjs → chunk-M3JYP3V4.cjs} +9 -9
  313. package/dist/{chunk-W2NCWVG5.cjs → chunk-M4GXFACD.cjs} +14 -14
  314. package/dist/{chunk-HO6ZBKWB.js → chunk-MAXOCM5I.js} +285 -432
  315. package/dist/{chunk-ECYV5ZDY.js → chunk-MFJHI472.js} +4 -4
  316. package/dist/{chunk-24555WPW.cjs → chunk-MV56FOAD.cjs} +5 -5
  317. package/dist/{chunk-GQT5E6RE.cjs → chunk-NALBGFHY.cjs} +16 -22
  318. package/dist/{chunk-3VUHXQFC.js → chunk-NKIXCDZC.js} +1 -1
  319. package/dist/{chunk-HL6IWNUL.js → chunk-O6PRE6MZ.js} +5 -5
  320. package/dist/{chunk-UXIM7NAJ.cjs → chunk-OA3O5S7X.cjs} +15 -15
  321. package/dist/{chunk-QSCHWNUU.cjs → chunk-OBNGHJ3N.cjs} +5 -5
  322. package/dist/{chunk-WMQIS6G5.js → chunk-OGMI3TO5.js} +5 -7
  323. package/dist/{chunk-NQUGUASZ.js → chunk-PK5ZMOW6.js} +5 -5
  324. package/dist/{chunk-ACBUFOC3.cjs → chunk-PYCAGTO7.cjs} +5 -5
  325. package/dist/{chunk-O6DHJPOW.js → chunk-QS4GORDY.js} +8 -8
  326. package/dist/{chunk-OM5O22NE.js → chunk-QSLXUNLM.js} +6 -8
  327. package/dist/{chunk-GKQNEQRO.cjs → chunk-QTMI4ZA4.cjs} +68 -47
  328. package/dist/{chunk-Y3R4XBSR.cjs → chunk-QV4SPR4Z.cjs} +9 -9
  329. package/dist/{chunk-FPI7NOQN.js → chunk-QVDW32F2.js} +156 -159
  330. package/dist/{chunk-2AHMN7Z2.cjs → chunk-RA5BULQ3.cjs} +5 -5
  331. package/dist/{chunk-2X22QR5F.js → chunk-ROCX6JDG.js} +11 -11
  332. package/dist/{chunk-4CHFT3VR.cjs → chunk-RXITGNPX.cjs} +7 -7
  333. package/dist/{chunk-NBKSN7LC.js → chunk-RYF5ADJW.js} +5 -5
  334. package/dist/{chunk-YDKCNKFS.js → chunk-S6KPLYLT.js} +11 -11
  335. package/dist/{chunk-M5QRDAE3.js → chunk-SW3KEFIA.js} +1 -1
  336. package/dist/chunk-TSL3F2K3.js +209 -0
  337. package/dist/{chunk-FCDHQK4U.cjs → chunk-TTRU4TLQ.cjs} +6 -11
  338. package/dist/{chunk-M6XA5PNZ.js → chunk-TUXF2G2O.js} +6 -8
  339. package/dist/{chunk-ZJELU7TX.js → chunk-TY5LOU3A.js} +5 -5
  340. package/dist/{chunk-6CFAS76H.cjs → chunk-U5B2JLNE.cjs} +11 -11
  341. package/dist/{chunk-7ZB7ALMV.js → chunk-U7V2FOIM.js} +5 -5
  342. package/dist/{chunk-VEUTCEEL.js → chunk-UNUFUTFQ.js} +11 -13
  343. package/dist/{chunk-AV3SVSXD.cjs → chunk-UOXJH4AR.cjs} +170 -173
  344. package/dist/{chunk-GQ6IGKVD.cjs → chunk-UQF7E32V.cjs} +6 -6
  345. package/dist/{chunk-PF2I44TX.cjs → chunk-V6BLBIY6.cjs} +19 -23
  346. package/dist/{chunk-32R7PPSV.cjs → chunk-VDVKY2IX.cjs} +5 -5
  347. package/dist/{chunk-HFFSMOXE.js → chunk-VLQ6XIAL.js} +4 -4
  348. package/dist/{chunk-BIBFFJSB.cjs → chunk-VNP5WB6M.cjs} +8 -10
  349. package/dist/{chunk-XLVRDHX3.js → chunk-VSIBZ7VH.js} +11 -11
  350. package/dist/{chunk-COG36SO7.js → chunk-WOE73NDO.js} +7 -7
  351. package/dist/{chunk-UAE7XTB4.js → chunk-XFJTJVWD.js} +7 -10
  352. package/dist/{chunk-WMWMFXAV.cjs → chunk-XPFAAATJ.cjs} +27 -27
  353. package/dist/{chunk-FHILASME.js → chunk-XX7YYKIJ.js} +5 -5
  354. package/dist/{chunk-E3HM4MNF.js → chunk-XXCKQSWD.js} +9 -9
  355. package/dist/{chunk-S44UDZNG.js → chunk-Y3WFWA52.js} +5 -10
  356. package/dist/{chunk-2CQISUYV.cjs → chunk-YU4LBDBD.cjs} +8 -8
  357. package/dist/{chunk-TBO6HEIU.cjs → chunk-Z6AG7O4B.cjs} +5 -5
  358. package/dist/{chunk-R3ASWI6V.cjs → chunk-ZBRFGD3I.cjs} +6 -11
  359. package/dist/{chunk-DN6Y6AG4.cjs → chunk-ZCAYS4KR.cjs} +10 -10
  360. package/dist/{chunk-NZAF5OWH.cjs → chunk-ZNSTIRSE.cjs} +24 -24
  361. package/dist/{chunk-WV7WTIKR.js → chunk-ZP4ROQEZ.js} +10 -10
  362. package/dist/{componentThemeTypes-C-gl7vaO.d.cts → componentThemeTypes-C7lS3Hi8.d.cts} +3 -29
  363. package/dist/{componentThemeTypes-C-gl7vaO.d.ts → componentThemeTypes-C7lS3Hi8.d.ts} +3 -29
  364. package/dist/index.cjs +216 -224
  365. package/dist/index.d.cts +5 -6
  366. package/dist/index.d.ts +5 -6
  367. package/dist/index.js +56 -60
  368. package/dist/{shared-Q2QS5MED.css → shared-NJHRNLRH.css} +0 -1
  369. package/dist/styles.css +903 -1090
  370. package/dist/{tokens-MSB3Q56J.css → tokens-223RYVVS.css} +115 -215
  371. package/dist/tokens.css +115 -215
  372. package/docs/llms/autocomplete.md +0 -9
  373. package/docs/llms/button.md +4 -13
  374. package/docs/llms/cascader.md +0 -10
  375. package/docs/llms/checkbox.md +0 -9
  376. package/docs/llms/collapse.md +1 -9
  377. package/docs/llms/colorpicker.md +0 -7
  378. package/docs/llms/image.md +1 -1
  379. package/docs/llms/input.md +2 -2
  380. package/docs/llms/message.md +1 -10
  381. package/docs/llms/pagination.md +0 -9
  382. package/docs/llms/radio.md +0 -7
  383. package/docs/llms/select.md +1 -1
  384. package/docs/llms/slider.md +0 -10
  385. package/docs/llms/spin.md +2 -10
  386. package/docs/llms/switch.md +1 -9
  387. package/docs/llms/tabs.md +0 -9
  388. package/docs/llms/tag.md +0 -9
  389. package/docs/llms/textarea.md +2 -11
  390. package/docs/llms/theme.md +1 -40
  391. package/docs/llms/themepanel.md +1 -22
  392. package/docs/llms/typography.md +3 -4
  393. package/docs/llms.md +1 -2
  394. package/package.json +3 -9
  395. package/dist/Alert-A45U55ZL.css +0 -55
  396. package/dist/AppShell-IEHTB55N.css +0 -200
  397. package/dist/AutoComplete-NYGMSOEZ.css +0 -57
  398. package/dist/Button-BJUDR53E.css +0 -144
  399. package/dist/Cascader-DALZDUQP.css +0 -187
  400. package/dist/Collapse-YVWXW4BC.css +0 -62
  401. package/dist/CommandPalette-XQACFYDH.css +0 -141
  402. package/dist/DatePicker-LFTIWBEI.css +0 -64
  403. package/dist/Empty-S5CKXL3R.css +0 -28
  404. package/dist/Form-HAMBMHRL.css +0 -67
  405. package/dist/InputNumber-EVZWU4DN.css +0 -42
  406. package/dist/List-7PXNNSHX.css +0 -45
  407. package/dist/Pagination-UK5O3EVJ.css +0 -81
  408. package/dist/Radio-VCN2WNCK.css +0 -55
  409. package/dist/Segmented-7PFYTBJJ.css +0 -45
  410. package/dist/Segmented.cjs +0 -13
  411. package/dist/Segmented.d.cts +0 -32
  412. package/dist/Segmented.d.ts +0 -32
  413. package/dist/Segmented.js +0 -4
  414. package/dist/Surface-QG3SL4KT.css +0 -42
  415. package/dist/TablePro-QLGCL7T6.css +0 -45
  416. package/dist/Tabs-DPT2IZEB.css +0 -95
  417. package/dist/Tag-YCIQXQPC.css +0 -50
  418. package/dist/Textarea-WG6PUYR3.css +0 -63
  419. package/dist/base.css +0 -5
  420. package/dist/chunk-42CAR7IJ.cjs +0 -158
  421. package/dist/chunk-AWEBG3K6.js +0 -11
  422. package/dist/chunk-CZTVGHBA.cjs +0 -15
  423. package/dist/chunk-I25VT4TM.js +0 -136
  424. package/dist/chunk-IPJ2DKM5.cjs +0 -584
  425. package/dist/chunk-MLZIK3RB.js +0 -536
  426. package/dist/chunk-SLJ3APXL.js +0 -13
  427. package/dist/chunk-SVIBVURD.cjs +0 -13
  428. package/dist/chunk-VTHUU5AU.js +0 -16
  429. package/dist/chunk-VZIIKFK6.cjs +0 -39
  430. package/dist/themeConfigTypes-39m4Gb8P.d.ts +0 -110
  431. package/dist/themeConfigTypes-C9dwG8Nf.d.cts +0 -110
  432. package/dist/utilities.css +0 -7
  433. package/docs/llms/segmented.md +0 -48
@@ -1,536 +0,0 @@
1
- import * as React from 'react';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- // src/components/Theme/presets.ts
5
- var ACCENT_PRESETS = {
6
- sky: { accent: "oklch(68% 0.14 235)", ink: "oklch(42% 0.12 235)", soft: "oklch(92% 0.04 235)", glow: "oklch(68% 0.14 235 / 0.35)" },
7
- coral: { accent: "oklch(72% 0.16 35)", ink: "oklch(48% 0.14 35)", soft: "oklch(94% 0.04 35)", glow: "oklch(72% 0.16 35 / 0.35)" },
8
- mint: { accent: "oklch(72% 0.13 165)", ink: "oklch(46% 0.11 165)", soft: "oklch(93% 0.04 165)", glow: "oklch(72% 0.13 165 / 0.35)" },
9
- violet: { accent: "oklch(66% 0.16 290)", ink: "oklch(44% 0.14 290)", soft: "oklch(93% 0.04 290)", glow: "oklch(66% 0.16 290 / 0.35)" },
10
- amber: { accent: "oklch(76% 0.14 75)", ink: "oklch(50% 0.12 75)", soft: "oklch(94% 0.05 75)", glow: "oklch(76% 0.14 75 / 0.35)" },
11
- rose: { accent: "oklch(68% 0.17 10)", ink: "oklch(46% 0.15 10)", soft: "oklch(93% 0.04 10)", glow: "oklch(68% 0.17 10 / 0.35)" }
12
- };
13
- var ACCENT_PRESETS_DARK = {
14
- sky: { soft: "oklch(35% 0.08 235)", ink: "oklch(82% 0.10 235)", glow: "oklch(68% 0.14 235 / 0.18)" },
15
- coral: { soft: "oklch(38% 0.09 35)", ink: "oklch(84% 0.10 35)", glow: "oklch(72% 0.16 35 / 0.18)" },
16
- mint: { soft: "oklch(36% 0.08 165)", ink: "oklch(83% 0.10 165)", glow: "oklch(72% 0.13 165 / 0.18)" },
17
- violet: { soft: "oklch(36% 0.09 290)", ink: "oklch(82% 0.11 290)", glow: "oklch(66% 0.16 290 / 0.18)" },
18
- amber: { soft: "oklch(38% 0.08 75)", ink: "oklch(85% 0.10 75)", glow: "oklch(76% 0.14 75 / 0.18)" },
19
- rose: { soft: "oklch(38% 0.09 10)", ink: "oklch(84% 0.11 10)", glow: "oklch(68% 0.17 10 / 0.18)" }
20
- };
21
- var LUMINA_THEME_PRESETS = {
22
- light: {
23
- base: "light",
24
- accent: "sky",
25
- density: "comfortable",
26
- intensity: 5,
27
- radius: 20,
28
- font: "sf",
29
- tokens: {
30
- bg: "#e8eef5",
31
- info: "oklch(68% 0.14 235)",
32
- success: "oklch(68% 0.14 150)",
33
- warning: "oklch(75% 0.14 75)",
34
- danger: "oklch(64% 0.18 25)",
35
- "bg-raised": "#edf2f8",
36
- "bg-sunken": "#dde4ed",
37
- fg: "#3a4558",
38
- "fg-muted": "#596579",
39
- "fg-subtle": "#7a8597",
40
- border: "rgba(130, 148, 175, 0.14)",
41
- divider: "rgba(130, 148, 175, 0.18)",
42
- "shadow-dark": "rgba(163, 177, 198, 0.55)",
43
- "shadow-light": "rgba(255, 255, 255, 0.95)",
44
- "shadow-scale": "1",
45
- "shadow-float-scale": "1"
46
- }
47
- },
48
- dark: {
49
- base: "dark",
50
- accent: "sky",
51
- density: "comfortable",
52
- intensity: 5,
53
- radius: 20,
54
- font: "sf",
55
- tokens: {
56
- bg: "#1b2030",
57
- info: "oklch(78% 0.12 235)",
58
- success: "oklch(78% 0.14 150)",
59
- warning: "oklch(82% 0.14 75)",
60
- danger: "oklch(76% 0.16 25)",
61
- "bg-raised": "#242a3c",
62
- "bg-sunken": "#151a27",
63
- fg: "#d8deeb",
64
- "fg-muted": "#8b94ab",
65
- "fg-subtle": "#78839a",
66
- border: "rgba(0, 0, 0, 0.35)",
67
- divider: "rgba(255, 255, 255, 0.06)",
68
- "shadow-dark": "rgba(0, 0, 0, 0.55)",
69
- "shadow-light": "rgba(130, 145, 180, 0.06)",
70
- "shadow-scale": "1",
71
- "shadow-float-scale": "1"
72
- }
73
- },
74
- porcelain: {
75
- base: "light",
76
- accent: {
77
- accent: "oklch(66% 0.14 175)",
78
- ink: "oklch(39% 0.11 175)",
79
- soft: "oklch(92% 0.04 175)",
80
- glow: "oklch(66% 0.14 175 / 0.32)"
81
- },
82
- density: "comfortable",
83
- intensity: 6,
84
- radius: 24,
85
- font: "sf",
86
- tokens: {
87
- bg: "#edf3f1",
88
- "bg-raised": "#f5faf8",
89
- "bg-sunken": "#dfe8e5",
90
- fg: "#33434a",
91
- "fg-muted": "#52656b",
92
- "fg-subtle": "#77878c",
93
- border: "rgba(101, 134, 139, 0.13)",
94
- divider: "rgba(101, 134, 139, 0.18)",
95
- "shadow-dark": "rgba(143, 163, 168, 0.45)",
96
- "shadow-light": "rgba(255, 255, 255, 0.96)",
97
- "shadow-scale": "1",
98
- "shadow-float-scale": "1"
99
- }
100
- },
101
- graphite: {
102
- base: "dark",
103
- accent: {
104
- accent: "oklch(72% 0.13 190)",
105
- ink: "oklch(85% 0.1 190)",
106
- soft: "oklch(31% 0.05 190)",
107
- glow: "oklch(72% 0.13 190 / 0.18)"
108
- },
109
- intensity: 4,
110
- radius: 18,
111
- tokens: {
112
- bg: "#181b22",
113
- "bg-raised": "#20242d",
114
- "bg-sunken": "#11141a",
115
- fg: "#edf1f7",
116
- "fg-muted": "#a3adbd",
117
- "fg-subtle": "#7b879a",
118
- border: "rgba(255, 255, 255, 0.07)",
119
- divider: "rgba(255, 255, 255, 0.08)",
120
- "shadow-dark": "rgba(0, 0, 0, 0.58)",
121
- "shadow-light": "rgba(128, 146, 166, 0.07)",
122
- "shadow-scale": "1",
123
- "shadow-float-scale": "1"
124
- }
125
- },
126
- ember: {
127
- base: "dark",
128
- accent: {
129
- accent: "oklch(76% 0.15 62)",
130
- ink: "oklch(86% 0.11 62)",
131
- soft: "oklch(34% 0.07 62)",
132
- glow: "oklch(76% 0.15 62 / 0.18)"
133
- },
134
- intensity: 5,
135
- radius: 16,
136
- tokens: {
137
- bg: "#201a18",
138
- "bg-raised": "#2a221f",
139
- "bg-sunken": "#171211",
140
- fg: "#f0e7df",
141
- "fg-muted": "#b09f93",
142
- "fg-subtle": "#978476",
143
- border: "rgba(255, 233, 212, 0.08)",
144
- divider: "rgba(255, 233, 212, 0.09)",
145
- "shadow-dark": "rgba(0, 0, 0, 0.54)",
146
- "shadow-light": "rgba(232, 172, 118, 0.07)",
147
- "shadow-scale": "1",
148
- "shadow-float-scale": "1"
149
- }
150
- },
151
- assistant: {
152
- base: "light",
153
- accent: {
154
- accent: "#646cff",
155
- ink: "#4f56d8",
156
- soft: "rgba(100, 108, 255, 0.12)",
157
- glow: "rgba(100, 108, 255, 0.26)"
158
- },
159
- density: "comfortable",
160
- intensity: 4,
161
- radius: 16,
162
- font: "system",
163
- tokens: {
164
- bg: "#e6eaf4",
165
- "bg-raised": "#f9f9f9",
166
- "bg-sunken": "#d7dce8",
167
- fg: "#213547",
168
- "fg-muted": "#57647a",
169
- "fg-subtle": "#7a8597",
170
- border: "rgba(240, 247, 255, 0.72)",
171
- divider: "rgba(33, 53, 71, 0.12)",
172
- "shadow-dark": "#d1d5de",
173
- "shadow-light": "#fbffff",
174
- "shadow-scale": "1",
175
- "shadow-float-scale": "1"
176
- }
177
- },
178
- assistantDark: {
179
- base: "dark",
180
- accent: {
181
- accent: "#818cf8",
182
- ink: "#c4c9ff",
183
- soft: "rgba(129, 140, 248, 0.17)",
184
- glow: "rgba(129, 140, 248, 0.18)"
185
- },
186
- density: "comfortable",
187
- intensity: 4,
188
- radius: 16,
189
- font: "system",
190
- tokens: {
191
- bg: "#2a2a36",
192
- "bg-raised": "#33333f",
193
- "bg-sunken": "#20202b",
194
- fg: "#d4d7e0",
195
- "fg-muted": "#9ca1b0",
196
- "fg-subtle": "#82899b",
197
- border: "#3e4455",
198
- divider: "rgba(255, 255, 255, 0.08)",
199
- "shadow-dark": "#1a1a24",
200
- "shadow-light": "#3a3a46",
201
- "shadow-scale": "1",
202
- "shadow-float-scale": "1"
203
- }
204
- }
205
- };
206
- function cloneLuminaThemePreset(key) {
207
- const preset = LUMINA_THEME_PRESETS[key];
208
- const components = preset.components ? Object.fromEntries(
209
- Object.entries(preset.components).map(([name, override]) => [
210
- name,
211
- override ? {
212
- ...override,
213
- colors: override.colors ? { ...override.colors } : void 0,
214
- tokens: override.tokens ? { ...override.tokens } : void 0,
215
- styles: override.styles ? Object.fromEntries(
216
- Object.entries(override.styles).map(([slot, style]) => [
217
- slot,
218
- style ? { ...style } : style
219
- ])
220
- ) : void 0
221
- } : override
222
- ])
223
- ) : void 0;
224
- return {
225
- ...preset,
226
- accent: typeof preset.accent === "object" ? { ...preset.accent } : preset.accent,
227
- colors: preset.colors ? { ...preset.colors } : void 0,
228
- tokens: { ...preset.tokens },
229
- components
230
- };
231
- }
232
- function pickLuminaThemePresets(keys) {
233
- return Object.fromEntries(keys.map((key) => [key, cloneLuminaThemePreset(key)]));
234
- }
235
-
236
- // src/components/Theme/spacing.ts
237
- var SPACING_TOKEN_KEYS = [
238
- "spacing-scale",
239
- "padding-scale",
240
- "gap-scale",
241
- "margin-scale",
242
- "gap-1",
243
- "gap-2",
244
- "gap-3",
245
- "gap-4",
246
- "gap-5",
247
- "gap-6",
248
- "gap-8",
249
- "gap-10",
250
- "ctrl-pad-x",
251
- "ctrl-pad-x-xs",
252
- "ctrl-pad-x-sm",
253
- "ctrl-pad-x-lg",
254
- "ctrl-pad-y",
255
- "overlay-body-padding"
256
- ];
257
- function resolveSpacingTokens(tokens, inherited) {
258
- const result = { ...inherited };
259
- for (const key of SPACING_TOKEN_KEYS) {
260
- const value = tokens?.[`--${key}`] ?? tokens?.[key];
261
- if (value !== void 0) result[key] = value;
262
- }
263
- return result;
264
- }
265
- function readSpacingTokens(style) {
266
- const result = {};
267
- for (const key of SPACING_TOKEN_KEYS) {
268
- const value = style.getPropertyValue(`--${key}`).trim();
269
- if (value) result[key] = value;
270
- }
271
- return result;
272
- }
273
-
274
- // src/components/Theme/themeColors.ts
275
- function normalizeAccentInput(input, colorScheme) {
276
- if (typeof input === "string" && input in ACCENT_PRESETS) {
277
- const key = input;
278
- const base = ACCENT_PRESETS[key];
279
- if (colorScheme === "dark") {
280
- return { key, palette: { ...base, ...ACCENT_PRESETS_DARK[key] } };
281
- }
282
- return { key, palette: base };
283
- }
284
- const raw = typeof input === "string" ? { accent: input } : input;
285
- const { accent } = raw;
286
- const ink = raw.ink ?? `color-mix(in oklch, ${accent} 65%, black)`;
287
- const soft = raw.soft ?? (colorScheme === "dark" ? `color-mix(in oklch, ${accent} 30%, black)` : `color-mix(in oklch, ${accent} 15%, white)`);
288
- const glow = raw.glow ?? (colorScheme === "dark" ? `color-mix(in oklch, ${accent} 18%, transparent)` : `color-mix(in oklch, ${accent} 35%, transparent)`);
289
- return { key: "custom", palette: { accent, ink, soft, glow } };
290
- }
291
- var DEFAULT_THEME_COLORS = Object.fromEntries(
292
- ["light", "dark"].map((mode) => {
293
- const tokens = LUMINA_THEME_PRESETS[mode].tokens;
294
- const accent = { ...ACCENT_PRESETS.sky, ...mode === "dark" ? ACCENT_PRESETS_DARK.sky : {} };
295
- return [mode, {
296
- bg: tokens.bg,
297
- bgRaised: tokens["bg-raised"],
298
- bgSunken: tokens["bg-sunken"],
299
- fg: tokens.fg,
300
- fgMuted: tokens["fg-muted"],
301
- fgSubtle: tokens["fg-subtle"],
302
- border: tokens.border,
303
- divider: tokens.divider,
304
- shadowDark: tokens["shadow-dark"],
305
- shadowLight: tokens["shadow-light"],
306
- accent: accent.accent,
307
- accentInk: accent.ink,
308
- accentSoft: accent.soft,
309
- accentGlow: accent.glow,
310
- info: tokens.info,
311
- success: tokens.success,
312
- warning: tokens.warning,
313
- danger: tokens.danger
314
- }];
315
- })
316
- );
317
- function mixColor(value, percent, other) {
318
- return `color-mix(in srgb, ${value} ${percent}%, ${other})`;
319
- }
320
- function fadeColor(value, percent) {
321
- return `color-mix(in srgb, ${value} ${percent}%, transparent)`;
322
- }
323
- function deriveThemeColors(baseColor, options = {}) {
324
- const colorScheme = options.colorScheme ?? "light";
325
- const dark = colorScheme === "dark";
326
- const derivedAccent = dark ? mixColor(baseColor, 68, "white") : mixColor(baseColor, 62, "black");
327
- const explicitAccent = options.accent ? normalizeAccentInput(options.accent, colorScheme).palette : null;
328
- const accent = explicitAccent?.accent ?? derivedAccent;
329
- return {
330
- bg: baseColor,
331
- bgRaised: mixColor(baseColor, dark ? 86 : 82, "white"),
332
- bgSunken: mixColor(baseColor, dark ? 80 : 86, "black"),
333
- fg: mixColor(baseColor, 18, dark ? "white" : "black"),
334
- fgMuted: mixColor(baseColor, 38, dark ? "white" : "black"),
335
- fgSubtle: mixColor(baseColor, 55, dark ? "white" : "black"),
336
- border: mixColor(baseColor, 82, dark ? "white" : "black"),
337
- divider: mixColor(baseColor, 88, dark ? "white" : "black"),
338
- shadowDark: fadeColor(
339
- mixColor(baseColor, dark ? 40 : 58, "black"),
340
- dark ? 65 : 55
341
- ),
342
- shadowLight: fadeColor(
343
- mixColor(baseColor, dark ? 82 : 28, "white"),
344
- dark ? 22 : 88
345
- ),
346
- accent,
347
- accentInk: explicitAccent?.ink ?? mixColor(accent, 65, dark ? "white" : "black"),
348
- accentSoft: explicitAccent?.soft ?? mixColor(accent, dark ? 30 : 15, dark ? "black" : "white"),
349
- accentGlow: explicitAccent?.glow ?? fadeColor(accent, dark ? 25 : 40)
350
- };
351
- }
352
- var COLOR_TOKEN_KEYS = {
353
- bg: "bg",
354
- bgRaised: "bg-raised",
355
- bgSunken: "bg-sunken",
356
- fg: "fg",
357
- fgMuted: "fg-muted",
358
- fgSubtle: "fg-subtle",
359
- border: "border",
360
- divider: "divider",
361
- shadowDark: "shadow-dark",
362
- shadowLight: "shadow-light",
363
- accent: "accent",
364
- accentInk: "accent-ink",
365
- accentSoft: "accent-soft",
366
- accentGlow: "accent-glow",
367
- info: "info",
368
- success: "success",
369
- warning: "warning",
370
- danger: "danger"
371
- };
372
- function hasAccentColorOverride(config) {
373
- return ["accent", "accentInk", "accentSoft", "accentGlow"].some((key) => {
374
- const tokenKey = COLOR_TOKEN_KEYS[key];
375
- return config.colors?.[key] !== void 0 || config.tokens?.[tokenKey] !== void 0 || config.tokens?.[`--${tokenKey}`] !== void 0;
376
- });
377
- }
378
- function resolveThemeColors(config, colorScheme, inherited) {
379
- const fallback = inherited ?? DEFAULT_THEME_COLORS[colorScheme];
380
- const surface = config.baseColor ? deriveThemeColors(config.baseColor, { colorScheme, accent: config.accent }) : { ...fallback };
381
- if (!config.baseColor && config.accent) {
382
- const palette = normalizeAccentInput(config.accent, colorScheme).palette;
383
- surface.accent = palette.accent;
384
- surface.accentInk = palette.ink;
385
- surface.accentSoft = palette.soft;
386
- surface.accentGlow = palette.glow;
387
- }
388
- const resolved = {
389
- ...fallback,
390
- ...surface,
391
- ...config.colors ?? {}
392
- };
393
- for (const [colorKey, tokenKey] of Object.entries(COLOR_TOKEN_KEYS)) {
394
- const value = config.tokens?.[tokenKey] ?? config.tokens?.[`--${tokenKey}`];
395
- if (value !== void 0) resolved[colorKey] = value;
396
- }
397
- return resolved;
398
- }
399
- function themeColorsToStyle(colors, prefix = "") {
400
- const style = {};
401
- for (const [colorKey, tokenKey] of Object.entries(COLOR_TOKEN_KEYS)) {
402
- style[`--${prefix}${tokenKey}`] = colors[colorKey];
403
- }
404
- return style;
405
- }
406
- function themeTokenToKebabCase(value) {
407
- return value.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/_/g, "-").toLowerCase();
408
- }
409
- function visualThemeToStyle(snapshot, prefix = "") {
410
- const style = themeColorsToStyle(snapshot.colors, prefix);
411
- for (const [key, value] of Object.entries(snapshot.spacingTokens ?? {})) {
412
- style[`--${prefix}${key}`] = value;
413
- }
414
- const variable = (name) => `--${prefix}${name}`;
415
- const reference = (name) => `var(${variable(name)})`;
416
- const inheritedReference = (name) => prefix ? `var(${variable(name)}, var(--${name}))` : `var(--${name})`;
417
- const d = 0.4 + snapshot.intensity * 0.12;
418
- const dark = snapshot.colorScheme === "dark";
419
- style[variable("d")] = String(d);
420
- style[variable("edge-raised")] = dark ? "inset 0 1px 0 rgb(255 255 255 / 0.05)" : "inset 0 0 0 transparent";
421
- style[variable("edge-inset")] = dark ? "inset 0 0 0 1px rgb(0 0 0 / 0.28)" : "inset 0 0 0 transparent";
422
- style[variable("focus-ring")] = `0 0 0 2px ${reference("bg")}, 0 0 0 4px ${reference("accent")}`;
423
- style[variable("disabled-fg")] = reference("fg-subtle");
424
- style[variable("disabled-bg")] = reference("bg-sunken");
425
- style[variable("disabled-shadow")] = reference("neu-shadow-subtle");
426
- style[variable("shadow-offset")] = `calc(${dark ? 3 : 5}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
427
- style[variable("shadow-blur")] = `calc(${dark ? 8 : 12}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
428
- style[variable("shadow-inset-offset")] = `calc(${dark ? 2 : 3}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
429
- style[variable("shadow-inset-blur")] = `calc(${dark ? 5 : 8}px * ${reference("d")} * ${inheritedReference("shadow-scale")})`;
430
- style[variable("neu-shadow-panel")] = `${reference("shadow-offset")} ${reference("shadow-offset")} ${reference("shadow-blur")} ${reference("shadow-dark")}, calc(${reference("shadow-offset")} * -1) calc(${reference("shadow-offset")} * -1) ${reference("shadow-blur")} ${reference("shadow-light")}, ${reference("edge-raised")}`;
431
- style[variable("neu-shadow-control")] = `calc(${reference("shadow-offset")} * .5) calc(${reference("shadow-offset")} * .5) calc(${reference("shadow-blur")} * .6) ${reference("shadow-dark")}, calc(${reference("shadow-offset")} * -.5) calc(${reference("shadow-offset")} * -.5) calc(${reference("shadow-blur")} * .6) ${reference("shadow-light")}, ${reference("edge-raised")}`;
432
- style[variable("neu-shadow-lift")] = `calc(${reference("shadow-offset")} * 1.6) calc(${reference("shadow-offset")} * 1.6) calc(${reference("shadow-blur")} * 1.4) ${reference("shadow-dark")}, calc(${reference("shadow-offset")} * -1.6) calc(${reference("shadow-offset")} * -1.6) calc(${reference("shadow-blur")} * 1.4) ${reference("shadow-light")}, ${reference("edge-raised")}`;
433
- style[variable("neu-shadow-inset-strong")] = `inset ${reference("shadow-inset-offset")} ${reference("shadow-inset-offset")} ${reference("shadow-inset-blur")} ${reference("shadow-dark")}, inset calc(${reference("shadow-inset-offset")} * -1) calc(${reference("shadow-inset-offset")} * -1) ${reference("shadow-inset-blur")} ${reference("shadow-light")}, ${reference("edge-inset")}`;
434
- style[variable("neu-shadow-inset")] = `inset calc(${reference("shadow-inset-offset")} * .6) calc(${reference("shadow-inset-offset")} * .6) calc(${reference("shadow-inset-blur")} * .6) ${reference("shadow-dark")}, inset calc(${reference("shadow-inset-offset")} * -.6) calc(${reference("shadow-inset-offset")} * -.6) calc(${reference("shadow-inset-blur")} * .6) ${reference("shadow-light")}, ${reference("edge-inset")}`;
435
- style[variable("neu-shadow-subtle")] = `.75px .75px 1.5px ${reference("shadow-dark")}, -.75px -.75px 1.5px ${reference("shadow-light")}, ${reference("edge-raised")}`;
436
- style[variable("neu-shadow-float")] = `0 calc(${reference("shadow-offset")} * 1.8 * ${inheritedReference("shadow-float-scale")}) calc(${reference("shadow-blur")} * 2.2 * ${inheritedReference("shadow-float-scale")}) ${reference("shadow-dark")}, 0 calc(${reference("shadow-offset")} * .4 * ${inheritedReference("shadow-float-scale")}) calc(${reference("shadow-blur")} * .7 * ${inheritedReference("shadow-float-scale")}) ${reference("shadow-dark")}`;
437
- style[variable("neu-out")] = reference("neu-shadow-panel");
438
- style[variable("neu-out-sm")] = reference("neu-shadow-control");
439
- style[variable("neu-out-lg")] = reference("neu-shadow-lift");
440
- style[variable("neu-in")] = reference("neu-shadow-inset-strong");
441
- style[variable("neu-in-sm")] = reference("neu-shadow-inset");
442
- style[variable("neu-flat")] = reference("neu-shadow-subtle");
443
- style[variable("neu-float")] = reference("neu-shadow-float");
444
- return style;
445
- }
446
- function componentTokensToStyle(tokens, prefix) {
447
- if (!tokens) return {};
448
- const style = {};
449
- for (const [key, value] of Object.entries(tokens)) {
450
- const property = key.startsWith("--") ? key : `--${prefix}${themeTokenToKebabCase(key)}`;
451
- style[property] = value;
452
- }
453
- return style;
454
- }
455
- function resolveVisualThemeSnapshot(config, inherited) {
456
- const colorScheme = config.colorScheme ?? inherited?.colorScheme ?? "light";
457
- const inheritedColors = inherited?.colorScheme === colorScheme ? inherited.colors : DEFAULT_THEME_COLORS[colorScheme];
458
- return {
459
- colorScheme,
460
- intensity: config.intensity ?? inherited?.intensity ?? LUMINA_THEME_PRESETS.light.intensity,
461
- colors: resolveThemeColors(config, colorScheme, inheritedColors),
462
- spacingTokens: resolveSpacingTokens(config.tokens, inherited?.spacingTokens)
463
- };
464
- }
465
- var EMPTY_COMPONENT_OVERRIDES = Object.freeze({});
466
- var VisualThemeContext = React.createContext(null);
467
- var ComponentOverridesContext = React.createContext(
468
- EMPTY_COMPONENT_OVERRIDES
469
- );
470
- var OwnerPortalThemeContext = React.createContext(null);
471
- var imperativeThemeChangeListeners = /* @__PURE__ */ new Set();
472
- function subscribeImperativeThemeChange(listener) {
473
- imperativeThemeChangeListeners.add(listener);
474
- return () => imperativeThemeChangeListeners.delete(listener);
475
- }
476
- function notifyImperativeThemeChange(target) {
477
- imperativeThemeChangeListeners.forEach((listener) => listener(target));
478
- }
479
- function mergeComponentOverride(parent, next) {
480
- const styles = { ...parent?.styles ?? {} };
481
- for (const [slot, style] of Object.entries(next.styles ?? {})) {
482
- styles[slot] = { ...styles[slot] ?? {}, ...style };
483
- }
484
- return {
485
- ...parent,
486
- ...next,
487
- colors: { ...parent?.colors ?? {}, ...next.colors ?? {} },
488
- tokens: { ...parent?.tokens ?? {}, ...next.tokens ?? {} },
489
- styles
490
- };
491
- }
492
- function mergeComponentThemeOverrides(...sources) {
493
- const result = {};
494
- for (const source of sources) {
495
- if (!source) continue;
496
- for (const [name, override] of Object.entries(source)) {
497
- if (!override) continue;
498
- result[name] = mergeComponentOverride(result[name], override);
499
- }
500
- }
501
- return result;
502
- }
503
- function VisualThemeProvider({
504
- value,
505
- children
506
- }) {
507
- return /* @__PURE__ */ jsx(VisualThemeContext.Provider, { value, children });
508
- }
509
- function ComponentOverridesProvider({
510
- value,
511
- children
512
- }) {
513
- const inherited = React.useContext(ComponentOverridesContext);
514
- const merged = React.useMemo(() => {
515
- if (!value || Object.keys(value).length === 0) return inherited;
516
- return mergeComponentThemeOverrides(inherited, value);
517
- }, [inherited, value]);
518
- return /* @__PURE__ */ jsx(ComponentOverridesContext.Provider, { value: merged, children });
519
- }
520
- function OwnerPortalThemeProvider({
521
- value,
522
- children
523
- }) {
524
- return /* @__PURE__ */ jsx(OwnerPortalThemeContext.Provider, { value, children });
525
- }
526
- function useVisualThemeSnapshot() {
527
- return React.useContext(VisualThemeContext);
528
- }
529
- function useComponentOverrides() {
530
- return React.useContext(ComponentOverridesContext);
531
- }
532
- function useOwnerPortalTheme() {
533
- return React.useContext(OwnerPortalThemeContext);
534
- }
535
-
536
- export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, COLOR_TOKEN_KEYS, ComponentOverridesProvider, DEFAULT_THEME_COLORS, LUMINA_THEME_PRESETS, OwnerPortalThemeProvider, SPACING_TOKEN_KEYS, VisualThemeProvider, cloneLuminaThemePreset, componentTokensToStyle, deriveThemeColors, hasAccentColorOverride, mergeComponentThemeOverrides, normalizeAccentInput, notifyImperativeThemeChange, pickLuminaThemePresets, readSpacingTokens, resolveThemeColors, resolveVisualThemeSnapshot, subscribeImperativeThemeChange, themeColorsToStyle, themeTokenToKebabCase, useComponentOverrides, useOwnerPortalTheme, useVisualThemeSnapshot, visualThemeToStyle };
@@ -1,13 +0,0 @@
1
- import { SegmentedControl } from './chunk-I25VT4TM.js';
2
- import { withComponentTheme } from './chunk-CZIQSGYL.js';
3
- import './tokens-MSB3Q56J.css';
4
- import './shared-Q2QS5MED.css';
5
- import './Segmented-7PFYTBJJ.css';
6
-
7
- var Segmented = withComponentTheme(
8
- SegmentedControl,
9
- "Segmented",
10
- "segmented"
11
- );
12
-
13
- export { Segmented };
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- // src/utils/deprecation.ts
4
- var reported = /* @__PURE__ */ new Set();
5
- function warnDeprecated(component, oldName, replacement) {
6
- if (process.env.NODE_ENV !== "development") return;
7
- const key = `${component}.${oldName}`;
8
- if (reported.has(key)) return;
9
- reported.add(key);
10
- console.warn(`[Lumina] ${key} \u5DF2\u5F03\u7528\uFF0C\u8BF7\u4F7F\u7528 ${replacement}\uFF1B\u65E7\u5199\u6CD5\u4ECD\u7136\u517C\u5BB9\u3002`);
11
- }
12
-
13
- exports.warnDeprecated = warnDeprecated;
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- // src/utils/portal.tsx
5
- var PortalContainerContext = React.createContext(null);
6
- function PortalScopeProvider({ container, children }) {
7
- return /* @__PURE__ */ jsx(PortalContainerContext.Provider, { value: container, children });
8
- }
9
- function usePortalContainer() {
10
- const scopedContainer = React.useContext(PortalContainerContext);
11
- if (scopedContainer) return scopedContainer;
12
- if (typeof document === "undefined") return null;
13
- return document.body;
14
- }
15
-
16
- export { PortalScopeProvider, usePortalContainer };
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var jsxRuntime = require('react/jsx-runtime');
5
-
6
- function _interopNamespace(e) {
7
- if (e && e.__esModule) return e;
8
- var n = Object.create(null);
9
- if (e) {
10
- Object.keys(e).forEach(function (k) {
11
- if (k !== 'default') {
12
- var d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: function () { return e[k]; }
16
- });
17
- }
18
- });
19
- }
20
- n.default = e;
21
- return Object.freeze(n);
22
- }
23
-
24
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
25
-
26
- // src/utils/portal.tsx
27
- var PortalContainerContext = React__namespace.createContext(null);
28
- function PortalScopeProvider({ container, children }) {
29
- return /* @__PURE__ */ jsxRuntime.jsx(PortalContainerContext.Provider, { value: container, children });
30
- }
31
- function usePortalContainer() {
32
- const scopedContainer = React__namespace.useContext(PortalContainerContext);
33
- if (scopedContainer) return scopedContainer;
34
- if (typeof document === "undefined") return null;
35
- return document.body;
36
- }
37
-
38
- exports.PortalScopeProvider = PortalScopeProvider;
39
- exports.usePortalContainer = usePortalContainer;