@fangxinyan/lumina 0.6.6 → 0.6.8

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 (231) hide show
  1. package/dist/Alert.cjs +3 -3
  2. package/dist/Alert.js +2 -2
  3. package/dist/AppShell.cjs +5 -5
  4. package/dist/AppShell.js +1 -1
  5. package/dist/AutoComplete.cjs +5 -5
  6. package/dist/AutoComplete.js +4 -4
  7. package/dist/Avatar.cjs +2 -2
  8. package/dist/Avatar.js +1 -1
  9. package/dist/Badge.cjs +2 -2
  10. package/dist/Badge.js +1 -1
  11. package/dist/Button.cjs +7 -3
  12. package/dist/Button.d.cts +13 -1
  13. package/dist/Button.d.ts +13 -1
  14. package/dist/Button.js +2 -2
  15. package/dist/Calendar.cjs +3 -3
  16. package/dist/Calendar.js +2 -2
  17. package/dist/{Card-MA6SV7D5.css → Card-M6UMBDD2.css} +41 -1
  18. package/dist/Card.cjs +3 -2
  19. package/dist/Card.d.cts +18 -0
  20. package/dist/Card.d.ts +18 -0
  21. package/dist/Card.js +2 -1
  22. package/dist/Cascader.cjs +5 -5
  23. package/dist/Cascader.js +4 -4
  24. package/dist/Checkbox.cjs +3 -3
  25. package/dist/Checkbox.js +2 -2
  26. package/dist/Collapse.cjs +3 -3
  27. package/dist/Collapse.js +2 -2
  28. package/dist/ColorPicker.cjs +2 -2
  29. package/dist/ColorPicker.js +1 -1
  30. package/dist/CommandPalette.cjs +5 -5
  31. package/dist/CommandPalette.js +4 -4
  32. package/dist/ContextMenu.cjs +2 -2
  33. package/dist/ContextMenu.js +1 -1
  34. package/dist/Divider.cjs +2 -2
  35. package/dist/Divider.js +1 -1
  36. package/dist/Drawer.cjs +3 -3
  37. package/dist/Drawer.js +2 -2
  38. package/dist/Empty.cjs +2 -2
  39. package/dist/Empty.js +1 -1
  40. package/dist/Form.cjs +4 -4
  41. package/dist/Form.js +1 -1
  42. package/dist/Icon.cjs +49 -49
  43. package/dist/Icon.js +1 -1
  44. package/dist/Image.cjs +6 -6
  45. package/dist/Image.js +2 -2
  46. package/dist/Input.cjs +5 -5
  47. package/dist/Input.js +3 -3
  48. package/dist/InputNumber.cjs +5 -5
  49. package/dist/InputNumber.js +4 -4
  50. package/dist/List.cjs +2 -2
  51. package/dist/List.js +1 -1
  52. package/dist/Message.cjs +6 -6
  53. package/dist/Message.js +2 -2
  54. package/dist/Modal.cjs +4 -4
  55. package/dist/Modal.d.cts +12 -0
  56. package/dist/Modal.d.ts +12 -0
  57. package/dist/Modal.js +3 -3
  58. package/dist/Pagination.cjs +7 -7
  59. package/dist/Pagination.js +6 -6
  60. package/dist/Popover.cjs +2 -2
  61. package/dist/Popover.js +1 -1
  62. package/dist/Progress.cjs +2 -2
  63. package/dist/Progress.js +1 -1
  64. package/dist/Radio.cjs +3 -3
  65. package/dist/Radio.js +1 -1
  66. package/dist/Select.cjs +6 -6
  67. package/dist/Select.js +5 -5
  68. package/dist/Skeleton.cjs +2 -2
  69. package/dist/Skeleton.js +1 -1
  70. package/dist/Slider.cjs +2 -2
  71. package/dist/Slider.js +1 -1
  72. package/dist/Spin.cjs +2 -2
  73. package/dist/Spin.js +1 -1
  74. package/dist/Splitter.cjs +2 -2
  75. package/dist/Splitter.js +1 -1
  76. package/dist/StatusBar.cjs +3 -3
  77. package/dist/StatusBar.js +1 -1
  78. package/dist/Surface.cjs +4 -4
  79. package/dist/Surface.js +2 -2
  80. package/dist/Switch.cjs +2 -2
  81. package/dist/Switch.js +1 -1
  82. package/dist/Table.cjs +9 -9
  83. package/dist/Table.js +8 -8
  84. package/dist/TablePro.cjs +10 -10
  85. package/dist/TablePro.d.cts +11 -7
  86. package/dist/TablePro.d.ts +11 -7
  87. package/dist/TablePro.js +9 -9
  88. package/dist/Tabs.cjs +2 -2
  89. package/dist/Tabs.js +1 -1
  90. package/dist/Tag.cjs +3 -3
  91. package/dist/Tag.js +2 -2
  92. package/dist/Textarea.cjs +4 -4
  93. package/dist/Textarea.js +2 -2
  94. package/dist/Theme.cjs +11 -11
  95. package/dist/Theme.js +1 -1
  96. package/dist/{ThemePanel-76LB3YA5.css → ThemePanel-TEHB2JCQ.css} +68 -0
  97. package/dist/ThemePanel.cjs +13 -13
  98. package/dist/ThemePanel.d.cts +12 -2
  99. package/dist/ThemePanel.d.ts +12 -2
  100. package/dist/ThemePanel.js +10 -10
  101. package/dist/{Timeline-ZIM7QFQC.css → Timeline-CRFZ3I2W.css} +4 -1
  102. package/dist/Timeline.cjs +3 -3
  103. package/dist/Timeline.d.cts +38 -0
  104. package/dist/Timeline.d.ts +38 -0
  105. package/dist/Timeline.js +2 -2
  106. package/dist/Tooltip.cjs +2 -2
  107. package/dist/Tooltip.js +1 -1
  108. package/dist/Typography.cjs +7 -7
  109. package/dist/Typography.js +2 -2
  110. package/dist/{chunk-MOMLQP7B.cjs → chunk-2EY34PPA.cjs} +1 -1
  111. package/dist/{chunk-IHK2FRTS.cjs → chunk-2LM5UYNU.cjs} +1 -1
  112. package/dist/{chunk-Y5F7ZTBH.js → chunk-3GJZRYTD.js} +1 -1
  113. package/dist/{chunk-D5PCIVID.cjs → chunk-3HPHQV2L.cjs} +3 -3
  114. package/dist/{chunk-DYHNOYRC.cjs → chunk-3NSBPQBT.cjs} +6 -6
  115. package/dist/{chunk-LI4XJTEA.js → chunk-3VXBSLPT.js} +3 -3
  116. package/dist/{chunk-YVTLHTG6.js → chunk-44WHEN76.js} +1 -1
  117. package/dist/{chunk-NT6CJYI3.cjs → chunk-4LOOWTRX.cjs} +4 -4
  118. package/dist/{chunk-U2H4DRMV.cjs → chunk-4N64ZL5M.cjs} +1 -1
  119. package/dist/{chunk-6XVLERA3.cjs → chunk-5C3ZSOKF.cjs} +1 -1
  120. package/dist/{chunk-2ZFJTMEF.js → chunk-5CWTC3I2.js} +3 -3
  121. package/dist/{chunk-ZPKHGKVL.cjs → chunk-5KGGB3EH.cjs} +3 -3
  122. package/dist/{chunk-W5CJC7S7.js → chunk-62RPBEAW.js} +2 -2
  123. package/dist/{chunk-NE7IUGMK.js → chunk-64ZQHLHL.js} +2 -2
  124. package/dist/{chunk-YJEXAO2I.js → chunk-6VSNO7IH.js} +1 -1
  125. package/dist/{chunk-3YP7CBJT.js → chunk-762NV3E4.js} +2 -2
  126. package/dist/{chunk-SYWTT5TY.cjs → chunk-76OH42CM.cjs} +4 -4
  127. package/dist/{chunk-56PHETWO.js → chunk-7DNK5JB2.js} +2 -2
  128. package/dist/chunk-7IWYBQAE.js +151 -0
  129. package/dist/{chunk-VAXWWJJP.cjs → chunk-7OYMY22O.cjs} +8 -8
  130. package/dist/{chunk-L27C5O4W.cjs → chunk-7UCXY4T5.cjs} +3 -3
  131. package/dist/{chunk-7NZ2A4MA.js → chunk-7ZCTEIOW.js} +1 -1
  132. package/dist/{chunk-QY76WTO5.cjs → chunk-AA2FRQUQ.cjs} +8 -8
  133. package/dist/{chunk-SABWUELE.js → chunk-ACZA7HHP.js} +1 -1
  134. package/dist/{chunk-GZCU6HXD.js → chunk-AHS2AFTD.js} +1 -1
  135. package/dist/{chunk-YSCIMHOI.cjs → chunk-AYZ4BWHG.cjs} +4 -4
  136. package/dist/{chunk-WEJKY3DF.js → chunk-BKI7JY4Z.js} +24 -5
  137. package/dist/{chunk-NFXHIO3G.js → chunk-BY2YW5XN.js} +1 -1
  138. package/dist/{chunk-OGPDCBPD.cjs → chunk-CPBFUKSX.cjs} +11 -11
  139. package/dist/{chunk-R74TZKJS.cjs → chunk-D56CNYUP.cjs} +3 -3
  140. package/dist/{chunk-4UKM4KAC.cjs → chunk-DDCAHAAE.cjs} +1 -1
  141. package/dist/{chunk-N2COYOXE.cjs → chunk-DGB6KVU3.cjs} +1 -1
  142. package/dist/{chunk-PNZJFLMY.js → chunk-EXN64ADJ.js} +2 -2
  143. package/dist/{chunk-LFTCK2VM.cjs → chunk-F3DN2JGE.cjs} +489 -238
  144. package/dist/{chunk-IDJCFYPP.cjs → chunk-F65KYGPX.cjs} +14 -14
  145. package/dist/{chunk-RIUDYPRB.cjs → chunk-FJHFUES7.cjs} +1 -1
  146. package/dist/{chunk-66GXZQKL.cjs → chunk-FL25IGIG.cjs} +3 -3
  147. package/dist/{chunk-REMJWNAT.js → chunk-FPII6I52.js} +3 -3
  148. package/dist/{chunk-YSXD344H.js → chunk-FZITSOKH.js} +4 -4
  149. package/dist/{chunk-2NT5QKEX.js → chunk-GEANNF4T.js} +2 -2
  150. package/dist/{chunk-6LARTGLP.cjs → chunk-GJAEGIPM.cjs} +1 -1
  151. package/dist/chunk-GT34KAMX.cjs +173 -0
  152. package/dist/{chunk-TVUBGXWA.js → chunk-GVPGJXZT.js} +1 -1
  153. package/dist/{chunk-6GQPF3EI.cjs → chunk-HFM4YKM5.cjs} +1 -1
  154. package/dist/{chunk-2SCXQ7QS.js → chunk-HR5QBBIS.js} +1 -1
  155. package/dist/{chunk-ACQSRMLF.cjs → chunk-HTW62OMX.cjs} +4 -4
  156. package/dist/{chunk-VNNQYJLT.js → chunk-I5XCHN67.js} +2 -2
  157. package/dist/{chunk-N3OLFKV5.cjs → chunk-IMAGOTLP.cjs} +1 -1
  158. package/dist/{chunk-Z4PZ2ZHI.cjs → chunk-J2R3BEEH.cjs} +1 -1
  159. package/dist/{chunk-PEJLXJQD.js → chunk-JPAYPF6H.js} +1 -1
  160. package/dist/{chunk-YNCDTKAE.cjs → chunk-JWZ6HJIF.cjs} +1 -1
  161. package/dist/{chunk-S6OKX4H7.cjs → chunk-KOY7GNP3.cjs} +1 -1
  162. package/dist/{chunk-NDO22RER.cjs → chunk-LF3ATJFY.cjs} +1 -1
  163. package/dist/{chunk-5NFSDFBB.cjs → chunk-LW6Z2WDZ.cjs} +3 -3
  164. package/dist/{chunk-YUKXNWVE.cjs → chunk-MLOT2AGK.cjs} +1 -1
  165. package/dist/{chunk-7D76MI37.js → chunk-MOLKLUSQ.js} +4 -4
  166. package/dist/{chunk-SG42F5VB.cjs → chunk-MZCKPLHQ.cjs} +1 -1
  167. package/dist/chunk-N24KHD5B.js +84 -0
  168. package/dist/{chunk-C24W6PTJ.cjs → chunk-N4JH6HHA.cjs} +1 -1
  169. package/dist/{chunk-5JNDDWFZ.js → chunk-NUF3EA7T.js} +2 -2
  170. package/dist/chunk-NUNPFMCM.cjs +106 -0
  171. package/dist/{chunk-AJH2O4WC.js → chunk-OVTB7FQQ.js} +2 -2
  172. package/dist/{chunk-HFUHQUPQ.js → chunk-P434GBHP.js} +1 -1
  173. package/dist/{chunk-66T76GII.cjs → chunk-PEFIXNAV.cjs} +6 -6
  174. package/dist/{chunk-WXWFMWWF.js → chunk-PHONNUK2.js} +2 -2
  175. package/dist/{chunk-MYRLCN6V.js → chunk-PWPL3DRN.js} +1 -1
  176. package/dist/{chunk-HU7T64Y3.js → chunk-Q5KHJ32P.js} +1 -1
  177. package/dist/{chunk-OHFZ7L4T.js → chunk-Q77BWQNG.js} +1 -1
  178. package/dist/{chunk-XVP7IKLZ.js → chunk-QDXBI3PV.js} +3 -3
  179. package/dist/{chunk-PKHITACT.js → chunk-QKWRN2JL.js} +1 -1
  180. package/dist/{chunk-7ZNGHWVS.js → chunk-R53WIZY5.js} +1 -1
  181. package/dist/{chunk-LQLOOUS3.js → chunk-RYRBNMCC.js} +1 -1
  182. package/dist/{chunk-2ZADGBUN.cjs → chunk-S4CZ3VO6.cjs} +9 -4
  183. package/dist/{chunk-OHIFKN4E.js → chunk-SGNDIRZC.js} +17 -4
  184. package/dist/{chunk-YT5NLCRC.js → chunk-SNX4FZYB.js} +1 -1
  185. package/dist/{chunk-CBKJXKVI.cjs → chunk-TDYJ5ECR.cjs} +24 -5
  186. package/dist/{chunk-KMG7OMOS.js → chunk-TJB7U72Z.js} +1 -1
  187. package/dist/{chunk-SFAGHPBT.js → chunk-TWJAYAK2.js} +1 -1
  188. package/dist/{chunk-JFQ53MO4.cjs → chunk-VM6CJYP6.cjs} +1 -1
  189. package/dist/{chunk-CNGKJYGZ.js → chunk-VRA4CQCJ.js} +7 -3
  190. package/dist/{chunk-YU5JK247.cjs → chunk-VUTCNATX.cjs} +6 -6
  191. package/dist/{chunk-CEZ2DR4R.js → chunk-W72IIGOV.js} +2 -2
  192. package/dist/{chunk-QP7RXZES.js → chunk-WIBAYFBB.js} +1 -1
  193. package/dist/{chunk-O43DOE7V.js → chunk-WIZVOZNO.js} +2 -2
  194. package/dist/{chunk-SQIWPU6V.js → chunk-XN52S7PT.js} +1 -1
  195. package/dist/{chunk-O4BOBOYV.cjs → chunk-XOYMBL5R.cjs} +1 -1
  196. package/dist/{chunk-MYHBC3HA.cjs → chunk-XPV672EI.cjs} +1 -1
  197. package/dist/{chunk-DYSGXQUK.cjs → chunk-XVDD6JEU.cjs} +6 -6
  198. package/dist/{chunk-ZWCDB5PP.cjs → chunk-XWRQ7ZLT.cjs} +1 -1
  199. package/dist/{chunk-N2BTMKF2.cjs → chunk-Z35Q432P.cjs} +4 -4
  200. package/dist/{chunk-VSUMJX6Z.cjs → chunk-ZC5VDX4W.cjs} +1 -1
  201. package/dist/{chunk-ZPP7LTHP.js → chunk-ZCMFLRZS.js} +2 -2
  202. package/dist/{chunk-GBKUGKIY.cjs → chunk-ZGDAYWWC.cjs} +24 -11
  203. package/dist/{chunk-NJCHFXGC.js → chunk-ZTIECMCF.js} +455 -204
  204. package/dist/index.cjs +180 -176
  205. package/dist/index.d.cts +3 -3
  206. package/dist/index.d.ts +3 -3
  207. package/dist/index.js +48 -48
  208. package/dist/styles.css +118 -1
  209. package/dist/{tokens-EF34LSWI.css → tokens-RGFJKRC7.css} +21 -0
  210. package/dist/tokens.css +21 -0
  211. package/docs/llms/autocomplete.md +6 -0
  212. package/docs/llms/button.md +16 -4
  213. package/docs/llms/card.md +32 -0
  214. package/docs/llms/commandpalette.md +6 -0
  215. package/docs/llms/contextmenu.md +6 -0
  216. package/docs/llms/form.md +6 -0
  217. package/docs/llms/inputnumber.md +6 -0
  218. package/docs/llms/modal.md +19 -0
  219. package/docs/llms/splitter.md +6 -0
  220. package/docs/llms/statusbar.md +6 -0
  221. package/docs/llms/tablepro.md +2 -0
  222. package/docs/llms/textarea.md +83 -0
  223. package/docs/llms/themepanel.md +26 -5
  224. package/docs/llms/timeline.md +35 -0
  225. package/docs/llms/typography.md +1 -1
  226. package/docs/llms.md +2 -1
  227. package/package.json +51 -1
  228. package/dist/chunk-BJ6WUVEG.cjs +0 -106
  229. package/dist/chunk-D64IPDUE.cjs +0 -28
  230. package/dist/chunk-GUZ2DNDC.js +0 -26
  231. package/dist/chunk-OQU3TJCF.js +0 -84
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, IconName, IconProps, IconSlot, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, NamedIconComponentName, NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RenderIconSlotOptions, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName } from './Icon.cjs';
2
- export { Button, ButtonProps, ButtonSize, ButtonVariant } from './Button.cjs';
2
+ export { Button, ButtonProps, ButtonSize, ButtonVariant, IconButton, IconButtonProps } from './Button.cjs';
3
3
  export { Input, InputComponent, InputPassword, InputPasswordProps, InputProps, InputTextAreaProps } from './Input.cjs';
4
4
  export { TextArea, Textarea, TextareaProps } from './Textarea.cjs';
5
5
  export { Switch, SwitchProps } from './Switch.cjs';
@@ -43,12 +43,12 @@ export { BaseTypographyProps, CopyableConfig, EditableConfig, EllipsisConfig, Li
43
43
  export { ColorPicker, ColorPickerProps } from './ColorPicker.cjs';
44
44
  export { Drawer, DrawerProps } from './Drawer.cjs';
45
45
  export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, AccentKey, AccentPalette, BuiltInThemeMode, CustomAccentInput, DensityMode, FONT_STACKS, FontConfig, FontKey, ResolvedThemeMode, ThemeBaseMode, ThemeConfig, ThemeMode, ThemePreset, ThemePresets, ThemeProvider, ThemeProviderProps, ThemeTokens, ThemeValue, applyTheme, normalizeAccentInput, resolveThemeColorScheme, resolveThemeMode, useTheme, useThemeOptional } from './Theme.cjs';
46
- export { THEME_PANEL_DEFAULT_PRESET_OPTIONS, THEME_PANEL_DEFAULT_THEME_PRESETS, ThemePanel, ThemePanelCreateThemePayload, ThemePanelCreatedThemeMeta, ThemePanelDeleteThemePayload, ThemePanelModeOption, ThemePanelPresetOption, ThemePanelProps, ThemePanelSection } from './ThemePanel.cjs';
46
+ export { THEME_PANEL_DEFAULT_PRESET_OPTIONS, THEME_PANEL_DEFAULT_THEME_PRESETS, ThemePanel, ThemePanelCreateThemePayload, ThemePanelCreatedThemeMeta, ThemePanelDeleteThemePayload, ThemePanelModeOption, ThemePanelPresetOption, ThemePanelProps, ThemePanelSection, ThemePanelUpdateThemePayload } from './ThemePanel.cjs';
47
47
  export { Timeline, TimelineItemConfig, TimelineProps } from './Timeline.cjs';
48
48
  import 'react/jsx-runtime';
49
49
  import 'react';
50
50
 
51
51
  /** Package version — bumped by release scripts. */
52
- declare const VERSION = "0.6.6";
52
+ declare const VERSION = "0.6.8";
53
53
 
54
54
  export { VERSION };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, IconName, IconProps, IconSlot, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, NamedIconComponentName, NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RenderIconSlotOptions, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName } from './Icon.js';
2
- export { Button, ButtonProps, ButtonSize, ButtonVariant } from './Button.js';
2
+ export { Button, ButtonProps, ButtonSize, ButtonVariant, IconButton, IconButtonProps } from './Button.js';
3
3
  export { Input, InputComponent, InputPassword, InputPasswordProps, InputProps, InputTextAreaProps } from './Input.js';
4
4
  export { TextArea, Textarea, TextareaProps } from './Textarea.js';
5
5
  export { Switch, SwitchProps } from './Switch.js';
@@ -43,12 +43,12 @@ export { BaseTypographyProps, CopyableConfig, EditableConfig, EllipsisConfig, Li
43
43
  export { ColorPicker, ColorPickerProps } from './ColorPicker.js';
44
44
  export { Drawer, DrawerProps } from './Drawer.js';
45
45
  export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, AccentKey, AccentPalette, BuiltInThemeMode, CustomAccentInput, DensityMode, FONT_STACKS, FontConfig, FontKey, ResolvedThemeMode, ThemeBaseMode, ThemeConfig, ThemeMode, ThemePreset, ThemePresets, ThemeProvider, ThemeProviderProps, ThemeTokens, ThemeValue, applyTheme, normalizeAccentInput, resolveThemeColorScheme, resolveThemeMode, useTheme, useThemeOptional } from './Theme.js';
46
- export { THEME_PANEL_DEFAULT_PRESET_OPTIONS, THEME_PANEL_DEFAULT_THEME_PRESETS, ThemePanel, ThemePanelCreateThemePayload, ThemePanelCreatedThemeMeta, ThemePanelDeleteThemePayload, ThemePanelModeOption, ThemePanelPresetOption, ThemePanelProps, ThemePanelSection } from './ThemePanel.js';
46
+ export { THEME_PANEL_DEFAULT_PRESET_OPTIONS, THEME_PANEL_DEFAULT_THEME_PRESETS, ThemePanel, ThemePanelCreateThemePayload, ThemePanelCreatedThemeMeta, ThemePanelDeleteThemePayload, ThemePanelModeOption, ThemePanelPresetOption, ThemePanelProps, ThemePanelSection, ThemePanelUpdateThemePayload } from './ThemePanel.js';
47
47
  export { Timeline, TimelineItemConfig, TimelineProps } from './Timeline.js';
48
48
  import 'react/jsx-runtime';
49
49
  import 'react';
50
50
 
51
51
  /** Package version — bumped by release scripts. */
52
- declare const VERSION = "0.6.6";
52
+ declare const VERSION = "0.6.8";
53
53
 
54
54
  export { VERSION };
package/dist/index.js CHANGED
@@ -1,54 +1,54 @@
1
- export { Tabs } from './chunk-TVUBGXWA.js';
2
- export { THEME_PANEL_DEFAULT_PRESET_OPTIONS, THEME_PANEL_DEFAULT_THEME_PRESETS, ThemePanel } from './chunk-NJCHFXGC.js';
3
- export { Timeline } from './chunk-OQU3TJCF.js';
4
- export { Tooltip } from './chunk-SFAGHPBT.js';
5
- export { Link, Paragraph, Text, Title, Typography } from './chunk-5JNDDWFZ.js';
6
- export { Slider } from './chunk-HU7T64Y3.js';
7
- export { Spin } from './chunk-Y5F7ZTBH.js';
8
- export { Splitter } from './chunk-7ZNGHWVS.js';
9
- export { StatusBar, StatusBarItem } from './chunk-2SCXQ7QS.js';
10
- export { SURFACE_THEME_PRESETS, Surface } from './chunk-O43DOE7V.js';
1
+ export { Tabs } from './chunk-GVPGJXZT.js';
2
+ export { THEME_PANEL_DEFAULT_PRESET_OPTIONS, THEME_PANEL_DEFAULT_THEME_PRESETS, ThemePanel } from './chunk-ZTIECMCF.js';
3
+ export { Timeline } from './chunk-7IWYBQAE.js';
4
+ export { Tooltip } from './chunk-TWJAYAK2.js';
5
+ export { Link, Paragraph, Text, Title, Typography } from './chunk-NUF3EA7T.js';
6
+ export { Slider } from './chunk-Q5KHJ32P.js';
7
+ export { Splitter } from './chunk-R53WIZY5.js';
8
+ export { StatusBar, StatusBarItem } from './chunk-HR5QBBIS.js';
9
+ export { SURFACE_THEME_PRESETS, Surface } from './chunk-WIZVOZNO.js';
11
10
  import './chunk-6SPMHY54.js';
12
- export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, FONT_STACKS, ThemeProvider, applyTheme, normalizeAccentInput, resolveThemeColorScheme, resolveThemeMode, useTheme, useThemeOptional } from './chunk-7NZ2A4MA.js';
13
- export { Switch } from './chunk-YJEXAO2I.js';
14
- export { TablePro } from './chunk-GUZ2DNDC.js';
15
- export { Table } from './chunk-YSXD344H.js';
16
- export { MessageContainer, ToastContainer, message, toast } from './chunk-W5CJC7S7.js';
17
- export { Modal } from './chunk-OHIFKN4E.js';
18
- export { Pagination } from './chunk-2ZFJTMEF.js';
19
- export { Popover } from './chunk-PKHITACT.js';
20
- export { Progress } from './chunk-YVTLHTG6.js';
21
- export { Radio, RadioGroup } from './chunk-HFUHQUPQ.js';
22
- export { Select } from './chunk-7D76MI37.js';
23
- export { Tag } from './chunk-VNNQYJLT.js';
24
- export { Skeleton } from './chunk-PEJLXJQD.js';
25
- export { Drawer } from './chunk-PNZJFLMY.js';
26
- export { Empty } from './chunk-LQLOOUS3.js';
27
- export { Form, FormItem, useForm } from './chunk-SABWUELE.js';
28
- export { Image, ImageGrid, LayeredImage, SpriteImage } from './chunk-2NT5QKEX.js';
29
- export { InputNumber } from './chunk-LI4XJTEA.js';
30
- export { List } from './chunk-OHFZ7L4T.js';
31
- export { Card } from './chunk-WEJKY3DF.js';
32
- export { Cascader } from './chunk-REMJWNAT.js';
33
- export { Checkbox } from './chunk-WXWFMWWF.js';
34
- export { Collapse } from './chunk-AJH2O4WC.js';
35
- export { ColorPicker } from './chunk-GZCU6HXD.js';
36
- export { CommandPalette } from './chunk-NE7IUGMK.js';
37
- export { ContextMenu } from './chunk-SQIWPU6V.js';
38
- export { Divider } from './chunk-MYRLCN6V.js';
39
- export { Alert } from './chunk-3YP7CBJT.js';
40
- export { AppShell, Sidebar, TitleBar, WindowControls } from './chunk-QP7RXZES.js';
41
- export { AutoComplete } from './chunk-ZPP7LTHP.js';
11
+ export { ACCENT_PRESETS, ACCENT_PRESETS_DARK, FONT_STACKS, ThemeProvider, applyTheme, normalizeAccentInput, resolveThemeColorScheme, resolveThemeMode, useTheme, useThemeOptional } from './chunk-7ZCTEIOW.js';
12
+ export { Switch } from './chunk-6VSNO7IH.js';
13
+ export { TablePro } from './chunk-N24KHD5B.js';
14
+ export { Table } from './chunk-FZITSOKH.js';
15
+ export { MessageContainer, ToastContainer, message, toast } from './chunk-62RPBEAW.js';
16
+ export { Modal } from './chunk-SGNDIRZC.js';
17
+ export { Pagination } from './chunk-5CWTC3I2.js';
18
+ export { Popover } from './chunk-QKWRN2JL.js';
19
+ export { Progress } from './chunk-44WHEN76.js';
20
+ export { Radio, RadioGroup } from './chunk-P434GBHP.js';
21
+ export { Select } from './chunk-MOLKLUSQ.js';
22
+ export { Tag } from './chunk-I5XCHN67.js';
23
+ export { Skeleton } from './chunk-JPAYPF6H.js';
24
+ export { Drawer } from './chunk-EXN64ADJ.js';
25
+ export { Empty } from './chunk-RYRBNMCC.js';
26
+ export { Form, FormItem, useForm } from './chunk-ACZA7HHP.js';
27
+ export { Image, ImageGrid, LayeredImage, SpriteImage } from './chunk-GEANNF4T.js';
28
+ export { InputNumber } from './chunk-3VXBSLPT.js';
29
+ export { List } from './chunk-Q77BWQNG.js';
30
+ export { Card } from './chunk-BKI7JY4Z.js';
31
+ export { Spin } from './chunk-3GJZRYTD.js';
32
+ export { Cascader } from './chunk-FPII6I52.js';
33
+ export { Checkbox } from './chunk-PHONNUK2.js';
34
+ export { Collapse } from './chunk-OVTB7FQQ.js';
35
+ export { ColorPicker } from './chunk-AHS2AFTD.js';
36
+ export { CommandPalette } from './chunk-64ZQHLHL.js';
37
+ export { ContextMenu } from './chunk-XN52S7PT.js';
38
+ export { Divider } from './chunk-PWPL3DRN.js';
39
+ export { Alert } from './chunk-762NV3E4.js';
40
+ export { AppShell, Sidebar, TitleBar, WindowControls } from './chunk-WIBAYFBB.js';
41
+ export { AutoComplete } from './chunk-ZCMFLRZS.js';
42
42
  import './chunk-DUFRASGO.js';
43
- export { Input, InputPassword } from './chunk-XVP7IKLZ.js';
44
- export { TextArea, Textarea } from './chunk-56PHETWO.js';
45
- export { Avatar } from './chunk-KMG7OMOS.js';
46
- export { Badge } from './chunk-NFXHIO3G.js';
47
- export { Button } from './chunk-CNGKJYGZ.js';
48
- export { Calendar } from './chunk-CEZ2DR4R.js';
49
- export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName } from './chunk-YT5NLCRC.js';
43
+ export { Input, InputPassword } from './chunk-QDXBI3PV.js';
44
+ export { TextArea, Textarea } from './chunk-7DNK5JB2.js';
45
+ export { Avatar } from './chunk-TJB7U72Z.js';
46
+ export { Badge } from './chunk-BY2YW5XN.js';
47
+ export { Button, IconButton } from './chunk-VRA4CQCJ.js';
48
+ export { Calendar } from './chunk-W72IIGOV.js';
49
+ export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName } from './chunk-SNX4FZYB.js';
50
50
 
51
51
  // src/index.ts
52
- var VERSION = "0.6.6";
52
+ var VERSION = "0.6.8";
53
53
 
54
54
  export { VERSION };
package/dist/styles.css CHANGED
@@ -125,6 +125,26 @@
125
125
  --dur: 220ms;
126
126
  --dur-slow: 360ms;
127
127
  }
128
+ /* Explicit light reset for scoped ThemeProvider instances.
129
+ :root already has these defaults, but nested [data-theme="light"] must not
130
+ inherit a dark or custom parent surface. */
131
+ :root[data-theme="light"],
132
+ [data-theme="light"] {
133
+ --bg: #e8eef5;
134
+ --bg-raised: #edf2f8;
135
+ --bg-sunken: #dde4ed;
136
+ --fg: #3a4558;
137
+ --fg-muted: #7b8599;
138
+ --fg-subtle: #9ca7ba;
139
+ --border: rgba(130, 148, 175, 0.14);
140
+ --divider: rgba(130, 148, 175, 0.18);
141
+ --shadow-dark: rgba(163, 177, 198, 0.55);
142
+ --shadow-light: rgba(255, 255, 255, 0.95);
143
+ --shadow-offset: calc(6px * var(--d) * var(--shadow-scale));
144
+ --shadow-blur: calc(16px * var(--d) * var(--shadow-scale));
145
+ --shadow-inset-offset: calc(4px * var(--d) * var(--shadow-scale));
146
+ --shadow-inset-blur: calc(10px * var(--d) * var(--shadow-scale));
147
+ }
128
148
  /* ---- Dark theme ----
129
149
  深色模式的拟态不能照搬浅色思路:白色高光会变成刺眼的白圈。
130
150
  这里做法:保留深色阴影给"下沉"深度,把"上凸高光"压到很低 alpha,
@@ -1121,6 +1141,12 @@ input, textarea, select { font-family: inherit; color: inherit; }
1121
1141
  box-shadow: var(--neu-shadow-panel);
1122
1142
  padding: var(--gap-5);
1123
1143
  }
1144
+ .card.fill {
1145
+ display: flex;
1146
+ flex-direction: column;
1147
+ min-height: 0;
1148
+ height: 100%;
1149
+ }
1124
1150
  .card.flat { box-shadow: var(--neu-shadow-subtle); }
1125
1151
  .card.sunken { box-shadow: var(--neu-shadow-inset-strong); }
1126
1152
  .card.pad-none { padding: 0; }
@@ -1144,7 +1170,40 @@ input, textarea, select { font-family: inherit; color: inherit; }
1144
1170
  .card-title { font-size: 15px; font-weight: 600; }
1145
1171
  .card-desc { font-size: 12px; color: var(--fg-muted); }
1146
1172
  .card-actions { display: flex; gap: 6px; }
1147
- .card-body { font-size: 13px; }
1173
+ .card-body {
1174
+ font-size: 13px;
1175
+ min-width: 0;
1176
+ position: relative;
1177
+ }
1178
+ .card-body.body-stack {
1179
+ display: flex;
1180
+ flex-direction: column;
1181
+ gap: var(--gap-3);
1182
+ }
1183
+ .card-body.body-fill {
1184
+ display: flex;
1185
+ flex: 1;
1186
+ flex-direction: column;
1187
+ min-height: 0;
1188
+ }
1189
+ .card-body.body-center {
1190
+ display: grid;
1191
+ place-items: center;
1192
+ }
1193
+ .card-body.loading {
1194
+ pointer-events: none;
1195
+ }
1196
+ .card-loading-overlay {
1197
+ position: absolute;
1198
+ inset: calc(var(--gap-2) * -1);
1199
+ border-radius: var(--r-md);
1200
+ display: grid;
1201
+ place-items: center;
1202
+ background: color-mix(in oklch, var(--bg) 82%, transparent);
1203
+ box-shadow: var(--neu-shadow-inset);
1204
+ color: var(--fg-muted);
1205
+ z-index: 1;
1206
+ }
1148
1207
  /* ============ Surface ============ */
1149
1208
  .surface {
1150
1209
  position: relative;
@@ -3777,6 +3836,64 @@ input, textarea, select { font-family: inherit; color: inherit; }
3777
3836
  .theme-panel-shadow {
3778
3837
  gap: 7px;
3779
3838
  }
3839
+ .theme-panel-advanced-row {
3840
+ gap: 10px;
3841
+ }
3842
+ .theme-panel .theme-panel-advanced-toggle.btn {
3843
+ justify-content: center;
3844
+ }
3845
+ .theme-panel-live-advanced {
3846
+ display: flex;
3847
+ flex-direction: column;
3848
+ gap: 10px;
3849
+ padding: 10px;
3850
+ border-radius: var(--r-md);
3851
+ background: var(--bg);
3852
+ box-shadow: var(--neu-shadow-inset);
3853
+ }
3854
+ .theme-panel-advanced-actions {
3855
+ display: flex;
3856
+ flex-direction: column;
3857
+ gap: 8px;
3858
+ padding-top: 10px;
3859
+ border-top: 1px solid var(--divider);
3860
+ }
3861
+ .theme-panel-save-as-field {
3862
+ display: grid;
3863
+ grid-template-columns: auto minmax(0, 1fr);
3864
+ gap: 8px;
3865
+ align-items: center;
3866
+ }
3867
+ .theme-panel-save-as-field > span {
3868
+ color: var(--fg-muted);
3869
+ font-size: 11px;
3870
+ font-weight: 800;
3871
+ white-space: nowrap;
3872
+ }
3873
+ .theme-panel-advanced-footer {
3874
+ display: grid;
3875
+ grid-template-columns: minmax(0, 1fr) auto;
3876
+ gap: 8px;
3877
+ align-items: center;
3878
+ }
3879
+ .theme-panel-advanced-footer > span {
3880
+ min-width: 0;
3881
+ color: var(--fg-subtle);
3882
+ font-family: var(--font-mono);
3883
+ font-size: 10px;
3884
+ overflow: hidden;
3885
+ text-overflow: ellipsis;
3886
+ white-space: nowrap;
3887
+ }
3888
+ .theme-panel-advanced-buttons {
3889
+ display: flex;
3890
+ flex-wrap: wrap;
3891
+ justify-content: flex-end;
3892
+ gap: 6px;
3893
+ }
3894
+ .theme-panel-advanced-buttons .btn {
3895
+ white-space: nowrap;
3896
+ }
3780
3897
  .theme-panel-create-preview {
3781
3898
  min-height: 36px;
3782
3899
  display: flex;
@@ -126,6 +126,27 @@
126
126
  --dur-slow: 360ms;
127
127
  }
128
128
 
129
+ /* Explicit light reset for scoped ThemeProvider instances.
130
+ :root already has these defaults, but nested [data-theme="light"] must not
131
+ inherit a dark or custom parent surface. */
132
+ :root[data-theme="light"],
133
+ [data-theme="light"] {
134
+ --bg: #e8eef5;
135
+ --bg-raised: #edf2f8;
136
+ --bg-sunken: #dde4ed;
137
+ --fg: #3a4558;
138
+ --fg-muted: #7b8599;
139
+ --fg-subtle: #9ca7ba;
140
+ --border: rgba(130, 148, 175, 0.14);
141
+ --divider: rgba(130, 148, 175, 0.18);
142
+ --shadow-dark: rgba(163, 177, 198, 0.55);
143
+ --shadow-light: rgba(255, 255, 255, 0.95);
144
+ --shadow-offset: calc(6px * var(--d) * var(--shadow-scale));
145
+ --shadow-blur: calc(16px * var(--d) * var(--shadow-scale));
146
+ --shadow-inset-offset: calc(4px * var(--d) * var(--shadow-scale));
147
+ --shadow-inset-blur: calc(10px * var(--d) * var(--shadow-scale));
148
+ }
149
+
129
150
  /* ---- Dark theme ----
130
151
  深色模式的拟态不能照搬浅色思路:白色高光会变成刺眼的白圈。
131
152
  这里做法:保留深色阴影给"下沉"深度,把"上凸高光"压到很低 alpha,
package/dist/tokens.css CHANGED
@@ -126,6 +126,27 @@
126
126
  --dur-slow: 360ms;
127
127
  }
128
128
 
129
+ /* Explicit light reset for scoped ThemeProvider instances.
130
+ :root already has these defaults, but nested [data-theme="light"] must not
131
+ inherit a dark or custom parent surface. */
132
+ :root[data-theme="light"],
133
+ [data-theme="light"] {
134
+ --bg: #e8eef5;
135
+ --bg-raised: #edf2f8;
136
+ --bg-sunken: #dde4ed;
137
+ --fg: #3a4558;
138
+ --fg-muted: #7b8599;
139
+ --fg-subtle: #9ca7ba;
140
+ --border: rgba(130, 148, 175, 0.14);
141
+ --divider: rgba(130, 148, 175, 0.18);
142
+ --shadow-dark: rgba(163, 177, 198, 0.55);
143
+ --shadow-light: rgba(255, 255, 255, 0.95);
144
+ --shadow-offset: calc(6px * var(--d) * var(--shadow-scale));
145
+ --shadow-blur: calc(16px * var(--d) * var(--shadow-scale));
146
+ --shadow-inset-offset: calc(4px * var(--d) * var(--shadow-scale));
147
+ --shadow-inset-blur: calc(10px * var(--d) * var(--shadow-scale));
148
+ }
149
+
129
150
  /* ---- Dark theme ----
130
151
  深色模式的拟态不能照搬浅色思路:白色高光会变成刺眼的白圈。
131
152
  这里做法:保留深色阴影给"下沉"深度,把"上凸高光"压到很低 alpha,
@@ -2,6 +2,12 @@
2
2
 
3
3
  > 输入时展示建议下拉,不限定必须从候选中选。
4
4
 
5
+ ## 导入
6
+
7
+ ```tsx
8
+ import { AutoComplete } from "@fangxinyan/lumina";
9
+ ```
10
+
5
11
  ## 示例
6
12
 
7
13
  ### 基础
@@ -5,7 +5,7 @@
5
5
  ## 导入
6
6
 
7
7
  ```tsx
8
- import { Button } from "@fangxinyan/lumina";
8
+ import { Button, IconButton } from "@fangxinyan/lumina";
9
9
  ```
10
10
 
11
11
  ## 示例
@@ -62,12 +62,12 @@ block 让按钮撑满容器宽度,常用于底部主操作或表单提交。
62
62
 
63
63
  ### 纯图标按钮
64
64
 
65
- Button 在只有 icon 时自动呈现为方形按钮,常配合 tip 使用。
65
+ IconButton 是 Button 的方形图标专用封装;Button 在只有 icon 时也会自动呈现为同样形态。
66
66
 
67
67
  ```tsx
68
68
  <Button icon="heart" tip="收藏" />
69
- <Button icon="bell" tip="通知" />
70
- <Button icon="settings" tip="设置" />
69
+ <IconButton icon="bell" tip="通知" />
70
+ <IconButton icon="settings" tip="设置" />
71
71
  ```
72
72
 
73
73
  ## API
@@ -88,5 +88,17 @@ Button 在只有 icon 时自动呈现为方形按钮,常配合 tip 使用。
88
88
  | onClick | `(e: MouseEvent) => void` | — | 点击回调 |
89
89
 
90
90
 
91
+ **IconButton**
92
+
93
+ | Prop | 类型 | 默认 | 说明 |
94
+ | --- | --- | --- | --- |
95
+ | icon \* | `IconName | ReactNode` | — | 按钮图标,可传内置图标名或自定义节点 |
96
+ | tip | `string` | — | 原生悬浮提示,也会作为缺省 aria-label |
97
+ | variant | `"default" | "primary" | "ghost" | "danger"` | `"default"` | 按钮风格 |
98
+ | size | `"sm" | "md" | "lg"` | `"md"` | 按钮尺寸 |
99
+ | loading | `boolean` | `false` | 加载态 |
100
+ | disabled | `boolean` | `false` | 禁用 |
101
+
102
+
91
103
  ---
92
104
  [← 回到索引](../llms.md)
package/docs/llms/card.md CHANGED
@@ -44,6 +44,31 @@ hoverable 在鼠标悬浮时轻微上移并加强阴影,适合可点击的卡片
44
44
  <Card title="..." actions={<Button size="sm" icon="plus">邀请</Button>}>...</Card>
45
45
  ```
46
46
 
47
+ ### 正文布局
48
+
49
+ bodyLayout 控制正文槽布局,bodyClassName / bodyStyle / bodyProps 直接作用到 .card-body。
50
+
51
+ ```tsx
52
+ <Card
53
+ fill
54
+ bodyLayout="stack"
55
+ bodyClassName="settings-card-body"
56
+ bodyStyle={{ minHeight: 160 }}
57
+ >
58
+ ...
59
+ </Card>
60
+ ```
61
+
62
+ ### 加载覆盖
63
+
64
+ loading 会在正文区域显示内建 overlay;loadingOverlay 可替换默认 Spin。
65
+
66
+ ```tsx
67
+ <Card loading loadingOverlay="正在同步...">
68
+ ...
69
+ </Card>
70
+ ```
71
+
47
72
  ## API
48
73
 
49
74
  **Card**
@@ -56,6 +81,13 @@ hoverable 在鼠标悬浮时轻微上移并加强阴影,适合可点击的卡片
56
81
  | title | `ReactNode` | — | 标题 |
57
82
  | description | `ReactNode` | — | 副标题 |
58
83
  | actions | `ReactNode` | — | 右上操作区 |
84
+ | fill | `boolean` | `false` | 卡片和正文填满可用高度 |
85
+ | bodyLayout | `"block" | "stack" | "fill" | "center"` | `"block"` | 正文布局策略 |
86
+ | bodyClassName | `string` | — | 正文容器 className |
87
+ | bodyStyle | `CSSProperties` | — | 正文容器内联样式 |
88
+ | bodyProps | `HTMLAttributes<HTMLDivElement>` | — | 透传给正文容器的 DOM props |
89
+ | loading | `boolean` | `false` | 显示正文加载覆盖层 |
90
+ | loadingOverlay | `ReactNode` | — | 自定义加载覆盖层内容 |
59
91
 
60
92
 
61
93
  ---
@@ -2,6 +2,12 @@
2
2
 
3
3
  > 全局命令搜索与执行入口。
4
4
 
5
+ ## 导入
6
+
7
+ ```tsx
8
+ import { CommandPalette } from "@fangxinyan/lumina";
9
+ ```
10
+
5
11
  ## 示例
6
12
 
7
13
  ### 基础 + 快捷键
@@ -2,6 +2,12 @@
2
2
 
3
3
  > 桌面应用风格的右键上下文菜单。
4
4
 
5
+ ## 导入
6
+
7
+ ```tsx
8
+ import { ContextMenu } from "@fangxinyan/lumina";
9
+ ```
10
+
5
11
  ## 示例
6
12
 
7
13
  ### 基础
package/docs/llms/form.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  > 受控表单,字段绑定 + 校验。
4
4
 
5
+ ## 导入
6
+
7
+ ```tsx
8
+ import { Form, FormItem } from "@fangxinyan/lumina";
9
+ ```
10
+
5
11
  ## 示例
6
12
 
7
13
  ### 基础
@@ -2,6 +2,12 @@
2
2
 
3
3
  > 带步进按钮的数字输入框。
4
4
 
5
+ ## 导入
6
+
7
+ ```tsx
8
+ import { InputNumber } from "@fangxinyan/lumina";
9
+ ```
10
+
5
11
  ## 示例
6
12
 
7
13
  ### 基础
@@ -78,6 +78,21 @@ closable={false} 隐藏右上角 ×,closeIcon 可自定义。
78
78
  <Modal closeIcon={<Icon name="chevDown" />} />
79
79
  ```
80
80
 
81
+ ### 正文容器控制
82
+
83
+ bodyClassName / bodyStyle / bodyProps 可直接作用到正文容器;bodyOverflow 用于切换滚动或允许拟态阴影外溢。
84
+
85
+ ```tsx
86
+ <Modal
87
+ bodyClassName="settings-modal-body"
88
+ bodyStyle={{ maxHeight: 260, padding: 12 }}
89
+ bodyOverflow="visible"
90
+ bodyProps={{ "data-panel": "settings" }}
91
+ >
92
+ ...
93
+ </Modal>
94
+ ```
95
+
81
96
  ## API
82
97
 
83
98
  **Modal**
@@ -93,6 +108,10 @@ closable={false} 隐藏右上角 ×,closeIcon 可自定义。
93
108
  | okText / cancelText | `ReactNode` | `"确定" / "取消"` | 默认按钮文案 |
94
109
  | okButtonProps / cancelButtonProps | `Partial<ButtonProps>` | — | 透传给默认按钮 |
95
110
  | confirmLoading | `boolean` | `false` | OK 按钮显示 spinner 并禁用 |
111
+ | bodyClassName | `string` | — | 正文容器 className |
112
+ | bodyStyle | `CSSProperties` | — | 正文容器内联样式 |
113
+ | bodyProps | `HTMLAttributes<HTMLDivElement>` | — | 透传给正文容器的 DOM props |
114
+ | bodyOverflow | `CSSProperties['overflow']` | — | 正文容器 overflow 快捷控制 |
96
115
  | closable | `boolean` | `true` | 显示右上角 × |
97
116
  | closeIcon | `ReactNode` | — | 自定义关闭图标 |
98
117
  | maskClosable | `boolean` | `true` | 点击遮罩关闭 |
@@ -2,6 +2,12 @@
2
2
 
3
3
  > 两栏之间可拖拽的分隔条,支持横向、纵向与嵌套。
4
4
 
5
+ ## 导入
6
+
7
+ ```tsx
8
+ import { Splitter } from "@fangxinyan/lumina";
9
+ ```
10
+
5
11
  ## 示例
6
12
 
7
13
  ### 水平分栏
@@ -2,6 +2,12 @@
2
2
 
3
3
  > 窗口底部状态栏,展示分支、编码、行列等应用元信息。
4
4
 
5
+ ## 导入
6
+
7
+ ```tsx
8
+ import { StatusBar, StatusBarItem } from "@fangxinyan/lumina";
9
+ ```
10
+
5
11
  ## 示例
6
12
 
7
13
  ### 基础
@@ -50,6 +50,8 @@ TablePro 直接透传 expandable 到 Table。
50
50
  | actions | `ReactNode` | — | 工具栏右侧操作 |
51
51
  | footer | `ReactNode` | — | 底部 (可选,传了会渲染在分页下方) |
52
52
  | title | `ReactNode` | — | 工具栏标题 |
53
+ | className / style / id / data-* / aria-* | `native attrs` | — | 透传到外层 table-card 根节点 |
54
+ | tableClassName / tableStyle | `string / CSSProperties` | — | 透传到内部 Table |
53
55
 
54
56
 
55
57
  ---