@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.
- package/dist/Alert.cjs +3 -3
- package/dist/Alert.js +2 -2
- package/dist/AppShell.cjs +5 -5
- package/dist/AppShell.js +1 -1
- package/dist/AutoComplete.cjs +5 -5
- package/dist/AutoComplete.js +4 -4
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +2 -2
- package/dist/Badge.js +1 -1
- package/dist/Button.cjs +7 -3
- package/dist/Button.d.cts +13 -1
- package/dist/Button.d.ts +13 -1
- package/dist/Button.js +2 -2
- package/dist/Calendar.cjs +3 -3
- package/dist/Calendar.js +2 -2
- package/dist/{Card-MA6SV7D5.css → Card-M6UMBDD2.css} +41 -1
- package/dist/Card.cjs +3 -2
- package/dist/Card.d.cts +18 -0
- package/dist/Card.d.ts +18 -0
- package/dist/Card.js +2 -1
- package/dist/Cascader.cjs +5 -5
- package/dist/Cascader.js +4 -4
- package/dist/Checkbox.cjs +3 -3
- package/dist/Checkbox.js +2 -2
- package/dist/Collapse.cjs +3 -3
- package/dist/Collapse.js +2 -2
- package/dist/ColorPicker.cjs +2 -2
- package/dist/ColorPicker.js +1 -1
- package/dist/CommandPalette.cjs +5 -5
- package/dist/CommandPalette.js +4 -4
- package/dist/ContextMenu.cjs +2 -2
- package/dist/ContextMenu.js +1 -1
- package/dist/Divider.cjs +2 -2
- package/dist/Divider.js +1 -1
- package/dist/Drawer.cjs +3 -3
- package/dist/Drawer.js +2 -2
- package/dist/Empty.cjs +2 -2
- package/dist/Empty.js +1 -1
- package/dist/Form.cjs +4 -4
- package/dist/Form.js +1 -1
- package/dist/Icon.cjs +49 -49
- package/dist/Icon.js +1 -1
- package/dist/Image.cjs +6 -6
- package/dist/Image.js +2 -2
- package/dist/Input.cjs +5 -5
- package/dist/Input.js +3 -3
- package/dist/InputNumber.cjs +5 -5
- package/dist/InputNumber.js +4 -4
- package/dist/List.cjs +2 -2
- package/dist/List.js +1 -1
- package/dist/Message.cjs +6 -6
- package/dist/Message.js +2 -2
- package/dist/Modal.cjs +4 -4
- package/dist/Modal.d.cts +12 -0
- package/dist/Modal.d.ts +12 -0
- package/dist/Modal.js +3 -3
- package/dist/Pagination.cjs +7 -7
- package/dist/Pagination.js +6 -6
- package/dist/Popover.cjs +2 -2
- package/dist/Popover.js +1 -1
- package/dist/Progress.cjs +2 -2
- package/dist/Progress.js +1 -1
- package/dist/Radio.cjs +3 -3
- package/dist/Radio.js +1 -1
- package/dist/Select.cjs +6 -6
- package/dist/Select.js +5 -5
- package/dist/Skeleton.cjs +2 -2
- package/dist/Skeleton.js +1 -1
- package/dist/Slider.cjs +2 -2
- package/dist/Slider.js +1 -1
- package/dist/Spin.cjs +2 -2
- package/dist/Spin.js +1 -1
- package/dist/Splitter.cjs +2 -2
- package/dist/Splitter.js +1 -1
- package/dist/StatusBar.cjs +3 -3
- package/dist/StatusBar.js +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +2 -2
- package/dist/Switch.cjs +2 -2
- package/dist/Switch.js +1 -1
- package/dist/Table.cjs +9 -9
- package/dist/Table.js +8 -8
- package/dist/TablePro.cjs +10 -10
- package/dist/TablePro.d.cts +11 -7
- package/dist/TablePro.d.ts +11 -7
- package/dist/TablePro.js +9 -9
- package/dist/Tabs.cjs +2 -2
- package/dist/Tabs.js +1 -1
- package/dist/Tag.cjs +3 -3
- package/dist/Tag.js +2 -2
- package/dist/Textarea.cjs +4 -4
- package/dist/Textarea.js +2 -2
- package/dist/Theme.cjs +11 -11
- package/dist/Theme.js +1 -1
- package/dist/{ThemePanel-76LB3YA5.css → ThemePanel-TEHB2JCQ.css} +68 -0
- package/dist/ThemePanel.cjs +13 -13
- package/dist/ThemePanel.d.cts +12 -2
- package/dist/ThemePanel.d.ts +12 -2
- package/dist/ThemePanel.js +10 -10
- package/dist/{Timeline-ZIM7QFQC.css → Timeline-CRFZ3I2W.css} +4 -1
- package/dist/Timeline.cjs +3 -3
- package/dist/Timeline.d.cts +38 -0
- package/dist/Timeline.d.ts +38 -0
- package/dist/Timeline.js +2 -2
- package/dist/Tooltip.cjs +2 -2
- package/dist/Tooltip.js +1 -1
- package/dist/Typography.cjs +7 -7
- package/dist/Typography.js +2 -2
- package/dist/{chunk-MOMLQP7B.cjs → chunk-2EY34PPA.cjs} +1 -1
- package/dist/{chunk-IHK2FRTS.cjs → chunk-2LM5UYNU.cjs} +1 -1
- package/dist/{chunk-Y5F7ZTBH.js → chunk-3GJZRYTD.js} +1 -1
- package/dist/{chunk-D5PCIVID.cjs → chunk-3HPHQV2L.cjs} +3 -3
- package/dist/{chunk-DYHNOYRC.cjs → chunk-3NSBPQBT.cjs} +6 -6
- package/dist/{chunk-LI4XJTEA.js → chunk-3VXBSLPT.js} +3 -3
- package/dist/{chunk-YVTLHTG6.js → chunk-44WHEN76.js} +1 -1
- package/dist/{chunk-NT6CJYI3.cjs → chunk-4LOOWTRX.cjs} +4 -4
- package/dist/{chunk-U2H4DRMV.cjs → chunk-4N64ZL5M.cjs} +1 -1
- package/dist/{chunk-6XVLERA3.cjs → chunk-5C3ZSOKF.cjs} +1 -1
- package/dist/{chunk-2ZFJTMEF.js → chunk-5CWTC3I2.js} +3 -3
- package/dist/{chunk-ZPKHGKVL.cjs → chunk-5KGGB3EH.cjs} +3 -3
- package/dist/{chunk-W5CJC7S7.js → chunk-62RPBEAW.js} +2 -2
- package/dist/{chunk-NE7IUGMK.js → chunk-64ZQHLHL.js} +2 -2
- package/dist/{chunk-YJEXAO2I.js → chunk-6VSNO7IH.js} +1 -1
- package/dist/{chunk-3YP7CBJT.js → chunk-762NV3E4.js} +2 -2
- package/dist/{chunk-SYWTT5TY.cjs → chunk-76OH42CM.cjs} +4 -4
- package/dist/{chunk-56PHETWO.js → chunk-7DNK5JB2.js} +2 -2
- package/dist/chunk-7IWYBQAE.js +151 -0
- package/dist/{chunk-VAXWWJJP.cjs → chunk-7OYMY22O.cjs} +8 -8
- package/dist/{chunk-L27C5O4W.cjs → chunk-7UCXY4T5.cjs} +3 -3
- package/dist/{chunk-7NZ2A4MA.js → chunk-7ZCTEIOW.js} +1 -1
- package/dist/{chunk-QY76WTO5.cjs → chunk-AA2FRQUQ.cjs} +8 -8
- package/dist/{chunk-SABWUELE.js → chunk-ACZA7HHP.js} +1 -1
- package/dist/{chunk-GZCU6HXD.js → chunk-AHS2AFTD.js} +1 -1
- package/dist/{chunk-YSCIMHOI.cjs → chunk-AYZ4BWHG.cjs} +4 -4
- package/dist/{chunk-WEJKY3DF.js → chunk-BKI7JY4Z.js} +24 -5
- package/dist/{chunk-NFXHIO3G.js → chunk-BY2YW5XN.js} +1 -1
- package/dist/{chunk-OGPDCBPD.cjs → chunk-CPBFUKSX.cjs} +11 -11
- package/dist/{chunk-R74TZKJS.cjs → chunk-D56CNYUP.cjs} +3 -3
- package/dist/{chunk-4UKM4KAC.cjs → chunk-DDCAHAAE.cjs} +1 -1
- package/dist/{chunk-N2COYOXE.cjs → chunk-DGB6KVU3.cjs} +1 -1
- package/dist/{chunk-PNZJFLMY.js → chunk-EXN64ADJ.js} +2 -2
- package/dist/{chunk-LFTCK2VM.cjs → chunk-F3DN2JGE.cjs} +489 -238
- package/dist/{chunk-IDJCFYPP.cjs → chunk-F65KYGPX.cjs} +14 -14
- package/dist/{chunk-RIUDYPRB.cjs → chunk-FJHFUES7.cjs} +1 -1
- package/dist/{chunk-66GXZQKL.cjs → chunk-FL25IGIG.cjs} +3 -3
- package/dist/{chunk-REMJWNAT.js → chunk-FPII6I52.js} +3 -3
- package/dist/{chunk-YSXD344H.js → chunk-FZITSOKH.js} +4 -4
- package/dist/{chunk-2NT5QKEX.js → chunk-GEANNF4T.js} +2 -2
- package/dist/{chunk-6LARTGLP.cjs → chunk-GJAEGIPM.cjs} +1 -1
- package/dist/chunk-GT34KAMX.cjs +173 -0
- package/dist/{chunk-TVUBGXWA.js → chunk-GVPGJXZT.js} +1 -1
- package/dist/{chunk-6GQPF3EI.cjs → chunk-HFM4YKM5.cjs} +1 -1
- package/dist/{chunk-2SCXQ7QS.js → chunk-HR5QBBIS.js} +1 -1
- package/dist/{chunk-ACQSRMLF.cjs → chunk-HTW62OMX.cjs} +4 -4
- package/dist/{chunk-VNNQYJLT.js → chunk-I5XCHN67.js} +2 -2
- package/dist/{chunk-N3OLFKV5.cjs → chunk-IMAGOTLP.cjs} +1 -1
- package/dist/{chunk-Z4PZ2ZHI.cjs → chunk-J2R3BEEH.cjs} +1 -1
- package/dist/{chunk-PEJLXJQD.js → chunk-JPAYPF6H.js} +1 -1
- package/dist/{chunk-YNCDTKAE.cjs → chunk-JWZ6HJIF.cjs} +1 -1
- package/dist/{chunk-S6OKX4H7.cjs → chunk-KOY7GNP3.cjs} +1 -1
- package/dist/{chunk-NDO22RER.cjs → chunk-LF3ATJFY.cjs} +1 -1
- package/dist/{chunk-5NFSDFBB.cjs → chunk-LW6Z2WDZ.cjs} +3 -3
- package/dist/{chunk-YUKXNWVE.cjs → chunk-MLOT2AGK.cjs} +1 -1
- package/dist/{chunk-7D76MI37.js → chunk-MOLKLUSQ.js} +4 -4
- package/dist/{chunk-SG42F5VB.cjs → chunk-MZCKPLHQ.cjs} +1 -1
- package/dist/chunk-N24KHD5B.js +84 -0
- package/dist/{chunk-C24W6PTJ.cjs → chunk-N4JH6HHA.cjs} +1 -1
- package/dist/{chunk-5JNDDWFZ.js → chunk-NUF3EA7T.js} +2 -2
- package/dist/chunk-NUNPFMCM.cjs +106 -0
- package/dist/{chunk-AJH2O4WC.js → chunk-OVTB7FQQ.js} +2 -2
- package/dist/{chunk-HFUHQUPQ.js → chunk-P434GBHP.js} +1 -1
- package/dist/{chunk-66T76GII.cjs → chunk-PEFIXNAV.cjs} +6 -6
- package/dist/{chunk-WXWFMWWF.js → chunk-PHONNUK2.js} +2 -2
- package/dist/{chunk-MYRLCN6V.js → chunk-PWPL3DRN.js} +1 -1
- package/dist/{chunk-HU7T64Y3.js → chunk-Q5KHJ32P.js} +1 -1
- package/dist/{chunk-OHFZ7L4T.js → chunk-Q77BWQNG.js} +1 -1
- package/dist/{chunk-XVP7IKLZ.js → chunk-QDXBI3PV.js} +3 -3
- package/dist/{chunk-PKHITACT.js → chunk-QKWRN2JL.js} +1 -1
- package/dist/{chunk-7ZNGHWVS.js → chunk-R53WIZY5.js} +1 -1
- package/dist/{chunk-LQLOOUS3.js → chunk-RYRBNMCC.js} +1 -1
- package/dist/{chunk-2ZADGBUN.cjs → chunk-S4CZ3VO6.cjs} +9 -4
- package/dist/{chunk-OHIFKN4E.js → chunk-SGNDIRZC.js} +17 -4
- package/dist/{chunk-YT5NLCRC.js → chunk-SNX4FZYB.js} +1 -1
- package/dist/{chunk-CBKJXKVI.cjs → chunk-TDYJ5ECR.cjs} +24 -5
- package/dist/{chunk-KMG7OMOS.js → chunk-TJB7U72Z.js} +1 -1
- package/dist/{chunk-SFAGHPBT.js → chunk-TWJAYAK2.js} +1 -1
- package/dist/{chunk-JFQ53MO4.cjs → chunk-VM6CJYP6.cjs} +1 -1
- package/dist/{chunk-CNGKJYGZ.js → chunk-VRA4CQCJ.js} +7 -3
- package/dist/{chunk-YU5JK247.cjs → chunk-VUTCNATX.cjs} +6 -6
- package/dist/{chunk-CEZ2DR4R.js → chunk-W72IIGOV.js} +2 -2
- package/dist/{chunk-QP7RXZES.js → chunk-WIBAYFBB.js} +1 -1
- package/dist/{chunk-O43DOE7V.js → chunk-WIZVOZNO.js} +2 -2
- package/dist/{chunk-SQIWPU6V.js → chunk-XN52S7PT.js} +1 -1
- package/dist/{chunk-O4BOBOYV.cjs → chunk-XOYMBL5R.cjs} +1 -1
- package/dist/{chunk-MYHBC3HA.cjs → chunk-XPV672EI.cjs} +1 -1
- package/dist/{chunk-DYSGXQUK.cjs → chunk-XVDD6JEU.cjs} +6 -6
- package/dist/{chunk-ZWCDB5PP.cjs → chunk-XWRQ7ZLT.cjs} +1 -1
- package/dist/{chunk-N2BTMKF2.cjs → chunk-Z35Q432P.cjs} +4 -4
- package/dist/{chunk-VSUMJX6Z.cjs → chunk-ZC5VDX4W.cjs} +1 -1
- package/dist/{chunk-ZPP7LTHP.js → chunk-ZCMFLRZS.js} +2 -2
- package/dist/{chunk-GBKUGKIY.cjs → chunk-ZGDAYWWC.cjs} +24 -11
- package/dist/{chunk-NJCHFXGC.js → chunk-ZTIECMCF.js} +455 -204
- package/dist/index.cjs +180 -176
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +48 -48
- package/dist/styles.css +118 -1
- package/dist/{tokens-EF34LSWI.css → tokens-RGFJKRC7.css} +21 -0
- package/dist/tokens.css +21 -0
- package/docs/llms/autocomplete.md +6 -0
- package/docs/llms/button.md +16 -4
- package/docs/llms/card.md +32 -0
- package/docs/llms/commandpalette.md +6 -0
- package/docs/llms/contextmenu.md +6 -0
- package/docs/llms/form.md +6 -0
- package/docs/llms/inputnumber.md +6 -0
- package/docs/llms/modal.md +19 -0
- package/docs/llms/splitter.md +6 -0
- package/docs/llms/statusbar.md +6 -0
- package/docs/llms/tablepro.md +2 -0
- package/docs/llms/textarea.md +83 -0
- package/docs/llms/themepanel.md +26 -5
- package/docs/llms/timeline.md +35 -0
- package/docs/llms/typography.md +1 -1
- package/docs/llms.md +2 -1
- package/package.json +51 -1
- package/dist/chunk-BJ6WUVEG.cjs +0 -106
- package/dist/chunk-D64IPDUE.cjs +0 -28
- package/dist/chunk-GUZ2DNDC.js +0 -26
- 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.
|
|
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.
|
|
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-
|
|
2
|
-
export { THEME_PANEL_DEFAULT_PRESET_OPTIONS, THEME_PANEL_DEFAULT_THEME_PRESETS, ThemePanel } from './chunk-
|
|
3
|
-
export { Timeline } from './chunk-
|
|
4
|
-
export { Tooltip } from './chunk-
|
|
5
|
-
export { Link, Paragraph, Text, Title, Typography } from './chunk-
|
|
6
|
-
export { Slider } from './chunk-
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
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-
|
|
13
|
-
export { Switch } from './chunk-
|
|
14
|
-
export { TablePro } from './chunk-
|
|
15
|
-
export { Table } from './chunk-
|
|
16
|
-
export { MessageContainer, ToastContainer, message, toast } from './chunk-
|
|
17
|
-
export { Modal } from './chunk-
|
|
18
|
-
export { Pagination } from './chunk-
|
|
19
|
-
export { Popover } from './chunk-
|
|
20
|
-
export { Progress } from './chunk-
|
|
21
|
-
export { Radio, RadioGroup } from './chunk-
|
|
22
|
-
export { Select } from './chunk-
|
|
23
|
-
export { Tag } from './chunk-
|
|
24
|
-
export { Skeleton } from './chunk-
|
|
25
|
-
export { Drawer } from './chunk-
|
|
26
|
-
export { Empty } from './chunk-
|
|
27
|
-
export { Form, FormItem, useForm } from './chunk-
|
|
28
|
-
export { Image, ImageGrid, LayeredImage, SpriteImage } from './chunk-
|
|
29
|
-
export { InputNumber } from './chunk-
|
|
30
|
-
export { List } from './chunk-
|
|
31
|
-
export { Card } from './chunk-
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
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-
|
|
44
|
-
export { TextArea, Textarea } from './chunk-
|
|
45
|
-
export { Avatar } from './chunk-
|
|
46
|
-
export { Badge } from './chunk-
|
|
47
|
-
export { Button } from './chunk-
|
|
48
|
-
export { Calendar } from './chunk-
|
|
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-
|
|
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.
|
|
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 {
|
|
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,
|
package/docs/llms/button.md
CHANGED
|
@@ -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
|
|
65
|
+
IconButton 是 Button 的方形图标专用封装;Button 在只有 icon 时也会自动呈现为同样形态。
|
|
66
66
|
|
|
67
67
|
```tsx
|
|
68
68
|
<Button icon="heart" tip="收藏" />
|
|
69
|
-
<
|
|
70
|
-
<
|
|
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
|
---
|
package/docs/llms/contextmenu.md
CHANGED
package/docs/llms/form.md
CHANGED
package/docs/llms/inputnumber.md
CHANGED
package/docs/llms/modal.md
CHANGED
|
@@ -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` | 点击遮罩关闭 |
|
package/docs/llms/splitter.md
CHANGED
package/docs/llms/statusbar.md
CHANGED
package/docs/llms/tablepro.md
CHANGED
|
@@ -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
|
---
|