@sia.soul/sia-react-ui 0.1.141 → 0.1.143

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 (47) hide show
  1. package/dist/{Button-BiL3Wjsd.d.ts → Button-C8W8ZHWV.d.ts} +1 -1
  2. package/dist/{Button-O_pNB3SQ.d.cts → Button-CxKBjLda.d.cts} +1 -1
  3. package/dist/{Select-DeD4O8FL.d.ts → Select-CTSd8zum.d.ts} +14 -10
  4. package/dist/{Select-Y0e9kaxE.d.cts → Select-bKLket9n.d.cts} +14 -10
  5. package/dist/chart.cjs +1051 -335
  6. package/dist/chart.js +5 -5
  7. package/dist/chunk-4OHS7RXE.js +1004 -0
  8. package/dist/{chunk-WIRIEIRO.js → chunk-4TYHSAR3.js} +5 -5
  9. package/dist/{chunk-L2S7IPSM.js → chunk-566S64IP.js} +5 -5
  10. package/dist/{chunk-CZ2ITBRW.js → chunk-7SEGBB6V.js} +34 -5
  11. package/dist/{chunk-KY6A5IJH.js → chunk-ETQJ2DQ2.js} +1 -1
  12. package/dist/{chunk-WD56MJO2.js → chunk-F52O2MOV.js} +7 -3
  13. package/dist/{chunk-PQBCD54U.js → chunk-JRXYM5YH.js} +167 -64
  14. package/dist/{chunk-SCEHVGKV.js → chunk-LKLPCYEP.js} +2 -2
  15. package/dist/{chunk-DIRPOUVX.js → chunk-MD4CGSOR.js} +105 -61
  16. package/dist/{chunk-436QH6XH.js → chunk-ORSQAJ22.js} +160 -497
  17. package/dist/{chunk-SO7IJZIR.js → chunk-PD3K5U5Y.js} +2 -2
  18. package/dist/{chunk-UVHC6OEX.js → chunk-WCYVBO2N.js} +342 -123
  19. package/dist/{core-DYo5C4Si.d.cts → core-COaZfusa.d.cts} +51 -24
  20. package/dist/{core-sWwvVAmP.d.ts → core-CvfsQGuT.d.ts} +51 -24
  21. package/dist/core.cjs +2000 -1251
  22. package/dist/core.css +416 -344
  23. package/dist/core.d.cts +3 -3
  24. package/dist/core.d.ts +3 -3
  25. package/dist/core.js +18 -9
  26. package/dist/game.cjs +1984 -1169
  27. package/dist/game.css +182 -177
  28. package/dist/game.d.cts +1 -1
  29. package/dist/game.d.ts +1 -1
  30. package/dist/game.js +8 -3
  31. package/dist/index.cjs +4658 -3542
  32. package/dist/index.css +416 -344
  33. package/dist/index.d.cts +84 -81
  34. package/dist/index.d.ts +84 -81
  35. package/dist/index.js +1075 -713
  36. package/dist/markdown-editor.cjs +727 -40
  37. package/dist/markdown-editor.js +8 -3
  38. package/dist/rich-text-editor.cjs +1265 -308
  39. package/dist/rich-text-editor.js +12 -7
  40. package/dist/{select-date-range-X6a9Y-Te.d.ts → select-date-range-C8cacfmb.d.ts} +1 -1
  41. package/dist/{select-date-range-DiBQQ0Rn.d.cts → select-date-range-Dad0IdD4.d.cts} +1 -1
  42. package/dist/select-date-range.cjs +1281 -807
  43. package/dist/select-date-range.d.cts +3 -3
  44. package/dist/select-date-range.d.ts +3 -3
  45. package/dist/select-date-range.js +13 -8
  46. package/package.json +9 -2
  47. package/dist/chunk-NZMUW5XI.js +0 -292
@@ -1,8 +1,8 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
3
- import { B as ButtonProps, b as Button } from './Button-O_pNB3SQ.cjs';
2
+ import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
3
+ import { B as ButtonProps, b as Button } from './Button-CxKBjLda.cjs';
4
4
  import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.cjs';
5
- import './Select-Y0e9kaxE.cjs';
5
+ import './Select-bKLket9n.cjs';
6
6
 
7
7
  /** 单个工具栏操作及其下拉菜单。 */
8
8
  interface ToolbarItem {
@@ -43,6 +43,20 @@ interface ToolbarProps {
43
43
  /** 单行操作栏;宽度不足时按原顺序将尾部操作收纳到 hover 菜单。 */
44
44
  declare function Toolbar({ items, onAction, disabled, size, variant, overflowLabel }: ToolbarProps): react.JSX.Element;
45
45
 
46
+ /** 静态布局骨架的配置;不挂载真实内容,也不会自动推断尚未渲染的业务组件。 */
47
+ interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
48
+ /** 每列占位行数,默认 6;取整并限制在 1~30,非有限值回退默认值。 */
49
+ rows?: number;
50
+ /** 占位列数,默认 2;取整并限制在 1~4,非有限值回退默认值。 */
51
+ columns?: number;
52
+ /** 每个占位块高度,单位 CSS px,默认 30;限制在 8~200,非有限值回退默认值。 */
53
+ rowHeight?: number;
54
+ /** 行与列之间的间距,单位 CSS px,默认 16;限制在 0~64,非有限值回退默认值。 */
55
+ gap?: number;
56
+ }
57
+ /** 轻量静态骨架,适合弹层入场期间预留正文布局;通过行列配置近似目标内容,不执行真实子组件。 */
58
+ declare function Skeleton({ rows, columns, rowHeight, gap, className, style, ...props }: SkeletonProps): react.JSX.Element;
59
+
46
60
  /** 卡片强调装饰的显示方式。 */
47
61
  type CardAccent = "primary" | "success" | "warning" | "error";
48
62
  /** 卡片的属性配置。 */
@@ -358,7 +372,7 @@ declare const iconPaths: {
358
372
  /** 可用的线框图标名称。 */
359
373
  type IconName = keyof typeof iconPaths;
360
374
  /** 可用线框图标名称集合。 */
361
- declare const ICON_NAMES: readonly ("search" | "bold" | "link" | "copy" | "move" | "zoom-in" | "zoom-out" | "table" | "italic" | "underline" | "menu" | "send" | "close" | "pause" | "play" | "message" | "code" | "video" | "filter" | "image" | "stop" | "warning" | "package" | "order-receipt" | "after-sales" | "warehouse" | "shop-products" | "partner-products" | "purchase-return" | "purchase-inbound" | "stock-movement" | "stocktaking" | "platform-message" | "analytics-message" | "sales-return" | "sales-outbound" | "transfer-outbound" | "transfer-inbound" | "notepad-file" | "notepad-folder" | "notepad-virtual-folder" | "step-backward" | "step-forward" | "fast-backward" | "fast-forward" | "corner-up-left" | "corner-up-right" | "swap-horizontal" | "swap-vertical" | "expand" | "shrink" | "fullscreen" | "fullscreen-exit" | "menu-fold" | "menu-unfold" | "login" | "logout" | "vertical-align-top" | "vertical-align-middle" | "vertical-align-bottom" | "square-plus" | "square-minus" | "square-check" | "square-close" | "tab-plus" | "folder-plus" | "pin" | "pin-off" | "help-circle" | "save" | "clipboard" | "clipboard-check" | "file-plus" | "file-check" | "file-warning" | "file-spreadsheet" | "align-left" | "align-center" | "align-right" | "align-justify" | "strikethrough" | "list-ordered" | "list-unordered" | "eraser" | "highlighter" | "columns" | "rows" | "bar-chart" | "line-chart" | "pie-chart" | "area-chart" | "activity" | "trending-up" | "trending-down" | "database" | "cloud" | "cloud-download" | "cloud-upload" | "server" | "desktop" | "laptop" | "mobile" | "tablet" | "printer" | "camera" | "microphone" | "volume-up" | "volume-off" | "speaker-wave" | "speaker-muted" | "wifi" | "power" | "key" | "shield" | "shield-check" | "bug" | "bulb" | "rocket" | "target" | "trophy" | "shopping-cart" | "shopping-bag" | "shop" | "wallet" | "bank" | "calculator" | "tag" | "tags" | "comments" | "share" | "paperclip" | "location" | "compass" | "car" | "truck" | "gift" | "coffee" | "experiment" | "tool" | "appstore" | "puzzle" | "partition" | "branches" | "scan" | "qr-code" | "barcode" | "user-plus" | "user-minus" | "smile" | "meh" | "frown" | "game-cultivator" | "game-swordsman" | "game-spirit-wolf" | "game-gem" | "game-ingot" | "game-sword" | "game-robe" | "game-pants" | "game-pendant" | "game-necklace" | "game-pill" | "game-potion" | "game-elixir-jar" | "game-flame" | "game-soul-elixir" | "game-herb" | "game-meditate" | "game-backpack" | "game-qi" | "plus" | "tilde" | "minus" | "check" | "info" | "question" | "circle-check" | "circle-close" | "circle-plus" | "circle-minus" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "double-left" | "double-right" | "arrow-left" | "arrow-right" | "arrow-up" | "arrow-down" | "more-horizontal" | "more-vertical" | "home" | "user" | "users" | "settings" | "edit" | "trash" | "scissors" | "undo" | "redo" | "flip-horizontal" | "flip-vertical" | "rotate-left" | "rotate-right" | "download" | "upload" | "refresh" | "loader" | "calendar" | "clock" | "mail" | "phone" | "external-link" | "eye" | "eye-off" | "lock" | "unlock" | "bell" | "star" | "heart" | "file" | "folder" | "sort-ascending" | "sort-descending" | "book" | "component" | "token" | "sun" | "moon" | "github")[];
375
+ declare const ICON_NAMES: readonly ("close" | "copy" | "pause" | "play" | "message" | "code" | "link" | "menu" | "search" | "table" | "video" | "filter" | "image" | "stop" | "target" | "bold" | "move" | "zoom-in" | "zoom-out" | "italic" | "underline" | "send" | "warning" | "package" | "order-receipt" | "after-sales" | "warehouse" | "shop-products" | "partner-products" | "purchase-return" | "purchase-inbound" | "stock-movement" | "stocktaking" | "platform-message" | "analytics-message" | "sales-return" | "sales-outbound" | "transfer-outbound" | "transfer-inbound" | "notepad-file" | "notepad-folder" | "notepad-virtual-folder" | "step-backward" | "step-forward" | "fast-backward" | "fast-forward" | "corner-up-left" | "corner-up-right" | "swap-horizontal" | "swap-vertical" | "expand" | "shrink" | "fullscreen" | "fullscreen-exit" | "menu-fold" | "menu-unfold" | "login" | "logout" | "vertical-align-top" | "vertical-align-middle" | "vertical-align-bottom" | "square-plus" | "square-minus" | "square-check" | "square-close" | "tab-plus" | "folder-plus" | "pin" | "pin-off" | "help-circle" | "save" | "clipboard" | "clipboard-check" | "file-plus" | "file-check" | "file-warning" | "file-spreadsheet" | "align-left" | "align-center" | "align-right" | "align-justify" | "strikethrough" | "list-ordered" | "list-unordered" | "eraser" | "highlighter" | "columns" | "rows" | "bar-chart" | "line-chart" | "pie-chart" | "area-chart" | "activity" | "trending-up" | "trending-down" | "database" | "cloud" | "cloud-download" | "cloud-upload" | "server" | "desktop" | "laptop" | "mobile" | "tablet" | "printer" | "camera" | "microphone" | "volume-up" | "volume-off" | "speaker-wave" | "speaker-muted" | "wifi" | "power" | "key" | "shield" | "shield-check" | "bug" | "bulb" | "rocket" | "trophy" | "shopping-cart" | "shopping-bag" | "shop" | "wallet" | "bank" | "calculator" | "tag" | "tags" | "comments" | "share" | "paperclip" | "location" | "compass" | "car" | "truck" | "gift" | "coffee" | "experiment" | "tool" | "appstore" | "puzzle" | "partition" | "branches" | "scan" | "qr-code" | "barcode" | "user-plus" | "user-minus" | "smile" | "meh" | "frown" | "game-cultivator" | "game-swordsman" | "game-spirit-wolf" | "game-gem" | "game-ingot" | "game-sword" | "game-robe" | "game-pants" | "game-pendant" | "game-necklace" | "game-pill" | "game-potion" | "game-elixir-jar" | "game-flame" | "game-soul-elixir" | "game-herb" | "game-meditate" | "game-backpack" | "game-qi" | "plus" | "tilde" | "minus" | "check" | "info" | "question" | "circle-check" | "circle-close" | "circle-plus" | "circle-minus" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "double-left" | "double-right" | "arrow-left" | "arrow-right" | "arrow-up" | "arrow-down" | "more-horizontal" | "more-vertical" | "home" | "user" | "users" | "settings" | "edit" | "trash" | "scissors" | "undo" | "redo" | "flip-horizontal" | "flip-vertical" | "rotate-left" | "rotate-right" | "download" | "upload" | "refresh" | "loader" | "calendar" | "clock" | "mail" | "phone" | "external-link" | "eye" | "eye-off" | "lock" | "unlock" | "bell" | "star" | "heart" | "file" | "folder" | "sort-ascending" | "sort-descending" | "book" | "component" | "token" | "sun" | "moon" | "github")[];
362
376
  declare const filledIconPaths: {
363
377
  info: react.JSX.Element;
364
378
  question: react.JSX.Element;
@@ -541,7 +555,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
541
555
  /** 按展示顺序排列的项目配置。 */
542
556
  items: readonly MenuItem[];
543
557
  /**
544
- * 展示或交互模式;grid 显示双列圆角卡片,图标居上、名称居下,保留选中和当前生效标记。
558
+ * 展示或交互模式;inline 子目录按实际内容高度展开,支持长列表及嵌套目录;grid 显示双列圆角卡片,图标居上、名称居下,保留选中和当前生效标记。
545
559
  * @defaultValue "vertical"
546
560
  */
547
561
  mode?: MenuMode;
@@ -554,11 +568,11 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
554
568
  * @defaultValue "light"
555
569
  */
556
570
  theme?: MenuTheme;
557
- /** 当前选中项目的标识集合;传入后由外部控制。 */
571
+ /** 当前选中项目的标识集合;传入后由外部控制。同一面板内单选切换时背景以 260ms 滑到新项目,文字和回调立即更新;首次定位、多选及减少动态效果时直接显示。 */
558
572
  selectedKeys?: readonly string[];
559
573
  /**
560
574
  * 自动将首个选中项目滚动到菜单自身的可见区域,适用于可纵向滚动的列表、内嵌或网格菜单。
561
- * 首次渲染、异步项目到达及首个选中标识改变时尝试定位;已完整可见时不滚动,超出时尽量居中。
575
+ * 首次渲染、异步项目到达、首个选中标识改变或其目录展开后尝试定位;已完整可见时不滚动,超出时尽量居中。
562
576
  * 仅调整菜单自身的滚动位置,不展开子菜单、不移动焦点;相同选中项的普通重渲染保留用户手动滚动位置。
563
577
  * @defaultValue false
564
578
  */
@@ -586,7 +600,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
586
600
  */
587
601
  selectable?: boolean;
588
602
  /**
589
- * 收起内嵌菜单
603
+ * 收起内嵌菜单为图标入口;纯文本 label 或 title 同时作为入口的无障碍名称,子菜单以弹层展开。
590
604
  * @defaultValue false
591
605
  */
592
606
  inlineCollapsed?: boolean;
@@ -615,7 +629,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
615
629
  /** 子菜单交互改变展开状态时触发,参数为完整的展开键集合;弹出模式切换兄弟目录时同时移除旧分支及后代。受控时应将该集合写回 openKeys。 */
616
630
  onOpenChange?: (keys: string[]) => void;
617
631
  }
618
- /** 菜单组件;弹出子菜单切换时只保留当前分支及其祖先,内嵌模式允许多分支展开;操作浮动滚动条时保持对应菜单展开。侧向子菜单距父菜单项水平偏移 16px,上下弹出偏移 4px,空间不足时自动翻转方向。 */
632
+ /** 菜单组件;同面板单选背景默认滑动到新选项,快速切换从当前位置继续,多选保留独立背景。弹出子菜单切换时只保留当前分支及其祖先,内嵌模式允许多分支展开;操作浮动滚动条时保持对应菜单展开。侧向子菜单距父菜单项水平偏移 16px,上下弹出偏移 4px,空间不足时自动翻转方向。上下键及 Home/End 移动当前层焦点并跳过禁用项;右键展开子菜单,左键或 Escape 返回上层,Enter/空格执行当前按钮。 */
619
633
  declare function Menu({ items, mode, gridColumns, interactionCursor, theme, selectedKeys, autoScrollSelected, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, style, ...rest }: MenuProps): react.JSX.Element;
620
634
  /** Step的状态类型。 */
621
635
  type StepStatus = "wait" | "process" | "finish" | "error";
@@ -747,7 +761,7 @@ interface SegmentedProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultVa
747
761
  /** 值发生变化时调用;参数为新值及类型声明中列出的关联信息。 */
748
762
  onChange?: (value: SegmentedValue) => void;
749
763
  }
750
- /** 分段选择组件。 */
764
+ /** 分段选择组件;普通形态的选中背景以 260ms 平滑移动并适配选项尺寸,快速切换从当前位置接续。纵向与横向共用行为,值及回调立即更新;首次定位、尺寸变化及减少动态效果时直接对齐,zigzag 保留其折线与形变过渡。 */
751
765
  declare function Segmented({ options, value, defaultValue, variant, shape, size: sizeProp, block, vertical, disabled, onChange, className, onKeyDown, ...props }: SegmentedProps): react.JSX.Element;
752
766
 
753
767
  /** Tab的项目定义。 */
@@ -954,7 +968,7 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
954
968
  onClick?: ButtonProps["onClick"];
955
969
  }
956
970
  declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
957
- /** 下拉菜单组件。 */
971
+ /** 下拉菜单组件;面板以 260ms 缩放淡入并果冻回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
958
972
  declare const Dropdown: typeof DropdownRoot & {
959
973
  /** 组合主操作按钮与下拉菜单的按钮组件。 */
960
974
  Button: typeof DropdownButton;
@@ -1000,7 +1014,7 @@ interface TooltipProps {
1000
1014
  /** 打开状态改变时触发,参数为新的打开状态。 */
1001
1015
  onOpenChange?: (open: boolean) => void;
1002
1016
  }
1003
- /** 文字提示组件。 */
1017
+ /** 弹性回弹展示的文字提示,退场完成后卸载;系统减少动态效果时直接切换。 */
1004
1018
  declare function Tooltip(props: TooltipProps): react.JSX.Element;
1005
1019
  /** 气泡卡片的属性配置。 */
1006
1020
  interface PopoverProps extends Omit<TooltipProps, "title"> {
@@ -1011,7 +1025,7 @@ interface PopoverProps extends Omit<TooltipProps, "title"> {
1011
1025
  /** 需要显示的内容,支持文本或 React 节点。 */
1012
1026
  content?: ReactNode;
1013
1027
  }
1014
- /** 气泡卡片组件。 */
1028
+ /** 弹性回弹开合的气泡卡片,退场期间不再响应指针操作。 */
1015
1029
  declare function Popover({ title, content, contentSize, trigger, overlayClassName, ...props }: PopoverProps): react.JSX.Element;
1016
1030
  /** 时间轴的项目定义。 */
1017
1031
  type TimelineItem = {
@@ -1409,7 +1423,7 @@ interface SpinProps extends HTMLAttributes<HTMLDivElement> {
1409
1423
  */
1410
1424
  fullscreen?: boolean;
1411
1425
  }
1412
- /** 加载指示器组件。 */
1426
+ /** 加载指示器组件;等待 delay 后以 180ms 淡入,停止时沿相同轨迹反向淡出并卸载,减少动态效果时直接切换。 */
1413
1427
  declare function Spin({ spinning, size, tip, indicator, delay, fullscreen, className, children, ...props }: SpinProps): react.JSX.Element | null;
1414
1428
  /** 水印文字的字体、颜色和对齐配置。 */
1415
1429
  interface WatermarkFont {
@@ -1498,7 +1512,7 @@ interface NotificationConfig {
1498
1512
  role?: string;
1499
1513
  /** 点击时触发,参数为当前点击事件或项目上下文。 */
1500
1514
  onClick?: () => void;
1501
- /** 请求关闭时触发的回调。 */
1515
+ /** 请求关闭时同步触发一次,通知在弹性回弹退场完成后移除;重复关闭不重复触发。 */
1502
1516
  onClose?: () => void;
1503
1517
  }
1504
1518
  declare function openNotification(config: NotificationConfig): {
@@ -1507,7 +1521,7 @@ declare function openNotification(config: NotificationConfig): {
1507
1521
  /** 关闭本条通知。 */
1508
1522
  close: () => void;
1509
1523
  };
1510
- /** 全局通知 API,支持标题、说明、自定义操作和关闭管理。 */
1524
+ /** 全局通知 API,支持标题、说明、自定义操作及弹性回弹开合;退场完成后移除通知。 */
1511
1525
  declare const notification: {
1512
1526
  /** 直接打开实例,返回可用于更新或关闭的操作句柄。 */
1513
1527
  open: typeof openNotification;
@@ -1603,7 +1617,7 @@ interface TourProps {
1603
1617
  /** 流程完成或表单校验通过并提交时调用。 */
1604
1618
  onFinish?: () => void;
1605
1619
  }
1606
- /** 操作引导组件。 */
1620
+ /** 操作引导组件;整体以 180ms 淡入,关闭时按相同轨迹反播后卸载,减少动态效果时直接切换。 */
1607
1621
  declare function Tour({ open, steps, current, defaultCurrent, mask, closable, disabledInteraction, onChange, onClose, onFinish }: TourProps): react.ReactPortal | null;
1608
1622
 
1609
1623
  /** 评分的属性配置。 */
@@ -1907,7 +1921,7 @@ interface ImagePreviewProps {
1907
1921
  /** 打开状态改变时触发,参数为新的打开状态。 */
1908
1922
  onOpenChange: (open: boolean) => void;
1909
1923
  }
1910
- /** 图片预览弹层,初始按窗口适配大图,支持水平/垂直翻转、左右旋转、缩放及拖动;重新打开或更换图片时重置视图。 */
1924
+ /** 图片预览弹层,初始按窗口适配大图,支持水平/垂直翻转、左右旋转、缩放及拖动;重新打开或更换图片时重置视图。入退场共用 180ms 淡入轨迹,关闭反播后卸载,退场期间保留图片视图;减少动态效果时直接切换。 */
1911
1925
  declare function ImagePreview({ open, src, alt, onOpenChange, current, count, onCurrentChange }: ImagePreviewProps): react.ReactPortal | null;
1912
1926
  /** 图片预览的配置。 */
1913
1927
  interface ImagePreviewConfig {
@@ -2193,18 +2207,18 @@ interface MessageConfig {
2193
2207
  duration?: number;
2194
2208
  /** 是否显示关闭入口。 */
2195
2209
  closable?: boolean;
2196
- /** 请求关闭时触发的回调。 */
2210
+ /** 请求关闭时同步触发一次;消息退场完成后移除 DOM,重复关闭不重复触发。 */
2197
2211
  onClose?: () => void;
2198
2212
  }
2199
2213
  /** 全局消息的操作句柄。 */
2200
2214
  interface MessageHandle {
2201
- /** 关闭当前界面或实例。 */
2215
+ /** 开始关闭消息,弹性回弹退场完成后移除;重复调用不重复触发 onClose。 */
2202
2216
  close: () => void;
2203
2217
  /** 局部更新当前实例配置,未传入的字段保持原值。 */
2204
2218
  update: (next: Partial<MessageConfig>) => void;
2205
2219
  }
2206
2220
  declare function openMessage(input: ReactNode | MessageConfig): MessageHandle;
2207
- /** 全局消息 API,可直接显示成功、错误、警告等短提示,并通过句柄关闭。 */
2221
+ /** 全局消息 API,短提示的背景以弹性形变开合,正文和图标只位移与淡入淡出、保持原始尺寸;关闭时保留节点直到退场完成,可通过句柄更新或关闭。 */
2208
2222
  declare const message: {
2209
2223
  /** 直接打开实例,返回可用于更新或关闭的操作句柄。 */
2210
2224
  open: typeof openMessage;
@@ -2391,7 +2405,7 @@ interface FloatButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "on
2391
2405
  * @defaultValue "top"
2392
2406
  */
2393
2407
  placement?: "top" | "bottom" | "left" | "right";
2394
- /** 是否打开;传入后由外部控制显示状态。 */
2408
+ /** 是否打开;传入后由外部控制显示状态。菜单展开 260ms,以缩放淡入、弹大回收后归位表现果冻弹性;收起 140ms,无回弹缩小淡出,保留原有面板外观;结束后卸载,减少动态效果时直接切换。 */
2395
2409
  open?: boolean;
2396
2410
  /**
2397
2411
  * 非受控模式下的初始打开状态。
@@ -2422,7 +2436,7 @@ declare function FloatButtonBackTop({ target, visibilityHeight, behavior, onClic
2422
2436
  declare const FloatButton: react.ForwardRefExoticComponent<FloatButtonProps & react.RefAttributes<HTMLButtonElement>> & {
2423
2437
  /** 组合多个子项并统一管理布局或选择状态。 */
2424
2438
  Group: typeof FloatButtonGroup;
2425
- /** 滚动超过指定距离后显示的返回顶部按钮。 */
2439
+ /** 滚动超过指定距离后以 180ms 淡入的返回顶部按钮;回到阈值内按同一轨迹反向淡出,减少动态效果时直接切换。 */
2426
2440
  BackTop: typeof FloatButtonBackTop;
2427
2441
  };
2428
2442
 
@@ -2446,4 +2460,17 @@ interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
2446
2460
  /** 用于导入、提交等操作完成后的结果展示,支持自定义图标、详情和操作。 */
2447
2461
  declare function Result({ status, title, subTitle, icon, extra, children, className, ...props }: ResultProps): react.JSX.Element;
2448
2462
 
2449
- export { type MenuMode as $, type FloatButtonGroupProps as A, type BadgeProps as B, Calendar as C, Dropdown as D, type FloatButtonProps as E, FILLED_ICON_NAMES as F, type FloatButtonShape as G, type FloatingPlacement as H, type FloatingTrigger as I, ICON_NAMES as J, Icon as K, type IconName as L, type IconProps as M, type IconVariant as N, Image as O, ImagePreview as P, type ImagePreviewConfig as Q, ImagePreviewGroup as R, type ImagePreviewGroupProps as S, type TagStatus as T, type ImagePreviewProps as U, type ImageProps as V, Input as W, type InputProps as X, Menu as Y, type MenuClickInfo as Z, type MenuItem as _, Badge as a, Upload as a$, type MenuProps as a0, type MenuTheme as a1, type MessageConfig as a2, type MessageHandle as a3, type MessageKey as a4, type MessageType as a5, type NotificationConfig as a6, type NotificationPlacement as a7, type NotificationType as a8, Popconfirm as a9, type TabsProps as aA, type TabsType as aB, Tag as aC, type TagProps as aD, type TagSize as aE, type TagVariant as aF, Timeline as aG, type TimelineItem as aH, type TimelineProps as aI, Toolbar as aJ, type ToolbarItem as aK, type ToolbarProps as aL, Tooltip as aM, type TooltipProps as aN, Tour as aO, type TourProps as aP, type TourStep as aQ, Tree as aR, type TreeDropPosition as aS, type TreeKey as aT, type TreeNode as aU, type TreeProps as aV, Typography as aW, type TypographyLinkProps as aX, type TypographyProps as aY, type TypographyTitleProps as aZ, type TypographyType as a_, type PopconfirmProps as aa, Popover as ab, type PopoverProps as ac, Progress as ad, type ProgressProps as ae, type ProgressStatus as af, Rate as ag, type RateProps as ah, Result as ai, type ResultProps as aj, type ResultStatus as ak, Segmented as al, type SegmentedOption as am, type SegmentedProps as an, type SegmentedValue as ao, Spin as ap, type SpinProps as aq, type StepItem as ar, type StepStatus as as, Steps as at, type StepsProps as au, type TabItem as av, Tabs as aw, type TabsContextMenuClickInfo as ax, type TabsOrientation as ay, type TabsPosition as az, type BadgeRibbonProps as b, type UploadChangeInfo as b0, type UploadDraggerProps as b1, type UploadFile as b2, type UploadFileStatus as b3, type UploadHttpRequest as b4, type UploadItemActions as b5, type UploadProps as b6, type UploadRef as b7, type UploadRejectInfo as b8, type UploadRequestHandle as b9, type UploadRequestOptions as ba, Watermark as bb, type WatermarkFont as bc, type WatermarkProps as bd, message as be, notification as bf, type BadgeStatus as c, Breadcrumb as d, type BreadcrumbItem as e, type BreadcrumbProps as f, type CalendarProps as g, Card as h, type CardAccent as i, type CardProps as j, Carousel as k, type CarouselProps as l, type CarouselRef as m, Collapse as n, type CollapseItem as o, type CollapseKey as p, type CollapseProps as q, type DropdownButtonProps as r, type DropdownMenuProps as s, type DropdownOpenSource as t, type DropdownPlacement as u, type DropdownProps as v, type DropdownTrigger as w, type FilledIconName as x, FloatButton as y, type FloatButtonBackTopProps as z };
2463
+ /** 浮动滚动条接入组件的属性配置。 */
2464
+ interface FloatingScrollbarProviderProps {
2465
+ /**
2466
+ * 是否停止本 Provider 的接管;全局 Provider 为 true 时暂停默认全局接管,恢复原生滚动条。
2467
+ * @defaultValue false
2468
+ */
2469
+ disabled?: boolean;
2470
+ /** 仅接管指定容器;不传时接管页面中的滚动容器。 */
2471
+ targetRef?: RefObject<HTMLElement | null>;
2472
+ }
2473
+ /** 为页面或指定容器接入不占布局空间的浮动滚动条,悬停、滚动和拖动时显示,离开后自动隐藏;默认入口自动启用,显式全局 Provider 可暂停接管。原生标记只跳过容器自身,内部滚动容器仍独立接管;Table 视口保留其专用轨道。 */
2474
+ declare function FloatingScrollbarProvider({ disabled, targetRef }: FloatingScrollbarProviderProps): null;
2475
+
2476
+ export { type MenuClickInfo as $, type FloatButtonGroupProps as A, type BadgeProps as B, Calendar as C, Dropdown as D, type FloatButtonProps as E, FILLED_ICON_NAMES as F, type FloatButtonShape as G, type FloatingPlacement as H, FloatingScrollbarProvider as I, type FloatingScrollbarProviderProps as J, type FloatingTrigger as K, ICON_NAMES as L, Icon as M, type IconName as N, type IconProps as O, type IconVariant as P, Image as Q, ImagePreview as R, type ImagePreviewConfig as S, type TagStatus as T, ImagePreviewGroup as U, type ImagePreviewGroupProps as V, type ImagePreviewProps as W, type ImageProps as X, Input as Y, type InputProps as Z, Menu as _, Badge as a, type TypographyLinkProps as a$, type MenuItem as a0, type MenuMode as a1, type MenuProps as a2, type MenuTheme as a3, type MessageConfig as a4, type MessageHandle as a5, type MessageKey as a6, type MessageType as a7, type NotificationConfig as a8, type NotificationPlacement as a9, Tabs as aA, type TabsContextMenuClickInfo as aB, type TabsOrientation as aC, type TabsPosition as aD, type TabsProps as aE, type TabsType as aF, Tag as aG, type TagProps as aH, type TagSize as aI, type TagVariant as aJ, Timeline as aK, type TimelineItem as aL, type TimelineProps as aM, Toolbar as aN, type ToolbarItem as aO, type ToolbarProps as aP, Tooltip as aQ, type TooltipProps as aR, Tour as aS, type TourProps as aT, type TourStep as aU, Tree as aV, type TreeDropPosition as aW, type TreeKey as aX, type TreeNode as aY, type TreeProps as aZ, Typography as a_, type NotificationType as aa, Popconfirm as ab, type PopconfirmProps as ac, Popover as ad, type PopoverProps as ae, Progress as af, type ProgressProps as ag, type ProgressStatus as ah, Rate as ai, type RateProps as aj, Result as ak, type ResultProps as al, type ResultStatus as am, Segmented as an, type SegmentedOption as ao, type SegmentedProps as ap, type SegmentedValue as aq, Skeleton as ar, type SkeletonProps as as, Spin as at, type SpinProps as au, type StepItem as av, type StepStatus as aw, Steps as ax, type StepsProps as ay, type TabItem as az, type BadgeRibbonProps as b, type TypographyProps as b0, type TypographyTitleProps as b1, type TypographyType as b2, Upload as b3, type UploadChangeInfo as b4, type UploadDraggerProps as b5, type UploadFile as b6, type UploadFileStatus as b7, type UploadHttpRequest as b8, type UploadItemActions as b9, type UploadProps as ba, type UploadRef as bb, type UploadRejectInfo as bc, type UploadRequestHandle as bd, type UploadRequestOptions as be, Watermark as bf, type WatermarkFont as bg, type WatermarkProps as bh, message as bi, notification as bj, type BadgeStatus as c, Breadcrumb as d, type BreadcrumbItem as e, type BreadcrumbProps as f, type CalendarProps as g, Card as h, type CardAccent as i, type CardProps as j, Carousel as k, type CarouselProps as l, type CarouselRef as m, Collapse as n, type CollapseItem as o, type CollapseKey as p, type CollapseProps as q, type DropdownButtonProps as r, type DropdownMenuProps as s, type DropdownOpenSource as t, type DropdownPlacement as u, type DropdownProps as v, type DropdownTrigger as w, type FilledIconName as x, FloatButton as y, type FloatButtonBackTopProps as z };
@@ -1,8 +1,8 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
3
- import { B as ButtonProps, b as Button } from './Button-BiL3Wjsd.js';
2
+ import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
3
+ import { B as ButtonProps, b as Button } from './Button-C8W8ZHWV.js';
4
4
  import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.js';
5
- import './Select-DeD4O8FL.js';
5
+ import './Select-CTSd8zum.js';
6
6
 
7
7
  /** 单个工具栏操作及其下拉菜单。 */
8
8
  interface ToolbarItem {
@@ -43,6 +43,20 @@ interface ToolbarProps {
43
43
  /** 单行操作栏;宽度不足时按原顺序将尾部操作收纳到 hover 菜单。 */
44
44
  declare function Toolbar({ items, onAction, disabled, size, variant, overflowLabel }: ToolbarProps): react.JSX.Element;
45
45
 
46
+ /** 静态布局骨架的配置;不挂载真实内容,也不会自动推断尚未渲染的业务组件。 */
47
+ interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
48
+ /** 每列占位行数,默认 6;取整并限制在 1~30,非有限值回退默认值。 */
49
+ rows?: number;
50
+ /** 占位列数,默认 2;取整并限制在 1~4,非有限值回退默认值。 */
51
+ columns?: number;
52
+ /** 每个占位块高度,单位 CSS px,默认 30;限制在 8~200,非有限值回退默认值。 */
53
+ rowHeight?: number;
54
+ /** 行与列之间的间距,单位 CSS px,默认 16;限制在 0~64,非有限值回退默认值。 */
55
+ gap?: number;
56
+ }
57
+ /** 轻量静态骨架,适合弹层入场期间预留正文布局;通过行列配置近似目标内容,不执行真实子组件。 */
58
+ declare function Skeleton({ rows, columns, rowHeight, gap, className, style, ...props }: SkeletonProps): react.JSX.Element;
59
+
46
60
  /** 卡片强调装饰的显示方式。 */
47
61
  type CardAccent = "primary" | "success" | "warning" | "error";
48
62
  /** 卡片的属性配置。 */
@@ -358,7 +372,7 @@ declare const iconPaths: {
358
372
  /** 可用的线框图标名称。 */
359
373
  type IconName = keyof typeof iconPaths;
360
374
  /** 可用线框图标名称集合。 */
361
- declare const ICON_NAMES: readonly ("search" | "bold" | "link" | "copy" | "move" | "zoom-in" | "zoom-out" | "table" | "italic" | "underline" | "menu" | "send" | "close" | "pause" | "play" | "message" | "code" | "video" | "filter" | "image" | "stop" | "warning" | "package" | "order-receipt" | "after-sales" | "warehouse" | "shop-products" | "partner-products" | "purchase-return" | "purchase-inbound" | "stock-movement" | "stocktaking" | "platform-message" | "analytics-message" | "sales-return" | "sales-outbound" | "transfer-outbound" | "transfer-inbound" | "notepad-file" | "notepad-folder" | "notepad-virtual-folder" | "step-backward" | "step-forward" | "fast-backward" | "fast-forward" | "corner-up-left" | "corner-up-right" | "swap-horizontal" | "swap-vertical" | "expand" | "shrink" | "fullscreen" | "fullscreen-exit" | "menu-fold" | "menu-unfold" | "login" | "logout" | "vertical-align-top" | "vertical-align-middle" | "vertical-align-bottom" | "square-plus" | "square-minus" | "square-check" | "square-close" | "tab-plus" | "folder-plus" | "pin" | "pin-off" | "help-circle" | "save" | "clipboard" | "clipboard-check" | "file-plus" | "file-check" | "file-warning" | "file-spreadsheet" | "align-left" | "align-center" | "align-right" | "align-justify" | "strikethrough" | "list-ordered" | "list-unordered" | "eraser" | "highlighter" | "columns" | "rows" | "bar-chart" | "line-chart" | "pie-chart" | "area-chart" | "activity" | "trending-up" | "trending-down" | "database" | "cloud" | "cloud-download" | "cloud-upload" | "server" | "desktop" | "laptop" | "mobile" | "tablet" | "printer" | "camera" | "microphone" | "volume-up" | "volume-off" | "speaker-wave" | "speaker-muted" | "wifi" | "power" | "key" | "shield" | "shield-check" | "bug" | "bulb" | "rocket" | "target" | "trophy" | "shopping-cart" | "shopping-bag" | "shop" | "wallet" | "bank" | "calculator" | "tag" | "tags" | "comments" | "share" | "paperclip" | "location" | "compass" | "car" | "truck" | "gift" | "coffee" | "experiment" | "tool" | "appstore" | "puzzle" | "partition" | "branches" | "scan" | "qr-code" | "barcode" | "user-plus" | "user-minus" | "smile" | "meh" | "frown" | "game-cultivator" | "game-swordsman" | "game-spirit-wolf" | "game-gem" | "game-ingot" | "game-sword" | "game-robe" | "game-pants" | "game-pendant" | "game-necklace" | "game-pill" | "game-potion" | "game-elixir-jar" | "game-flame" | "game-soul-elixir" | "game-herb" | "game-meditate" | "game-backpack" | "game-qi" | "plus" | "tilde" | "minus" | "check" | "info" | "question" | "circle-check" | "circle-close" | "circle-plus" | "circle-minus" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "double-left" | "double-right" | "arrow-left" | "arrow-right" | "arrow-up" | "arrow-down" | "more-horizontal" | "more-vertical" | "home" | "user" | "users" | "settings" | "edit" | "trash" | "scissors" | "undo" | "redo" | "flip-horizontal" | "flip-vertical" | "rotate-left" | "rotate-right" | "download" | "upload" | "refresh" | "loader" | "calendar" | "clock" | "mail" | "phone" | "external-link" | "eye" | "eye-off" | "lock" | "unlock" | "bell" | "star" | "heart" | "file" | "folder" | "sort-ascending" | "sort-descending" | "book" | "component" | "token" | "sun" | "moon" | "github")[];
375
+ declare const ICON_NAMES: readonly ("close" | "copy" | "pause" | "play" | "message" | "code" | "link" | "menu" | "search" | "table" | "video" | "filter" | "image" | "stop" | "target" | "bold" | "move" | "zoom-in" | "zoom-out" | "italic" | "underline" | "send" | "warning" | "package" | "order-receipt" | "after-sales" | "warehouse" | "shop-products" | "partner-products" | "purchase-return" | "purchase-inbound" | "stock-movement" | "stocktaking" | "platform-message" | "analytics-message" | "sales-return" | "sales-outbound" | "transfer-outbound" | "transfer-inbound" | "notepad-file" | "notepad-folder" | "notepad-virtual-folder" | "step-backward" | "step-forward" | "fast-backward" | "fast-forward" | "corner-up-left" | "corner-up-right" | "swap-horizontal" | "swap-vertical" | "expand" | "shrink" | "fullscreen" | "fullscreen-exit" | "menu-fold" | "menu-unfold" | "login" | "logout" | "vertical-align-top" | "vertical-align-middle" | "vertical-align-bottom" | "square-plus" | "square-minus" | "square-check" | "square-close" | "tab-plus" | "folder-plus" | "pin" | "pin-off" | "help-circle" | "save" | "clipboard" | "clipboard-check" | "file-plus" | "file-check" | "file-warning" | "file-spreadsheet" | "align-left" | "align-center" | "align-right" | "align-justify" | "strikethrough" | "list-ordered" | "list-unordered" | "eraser" | "highlighter" | "columns" | "rows" | "bar-chart" | "line-chart" | "pie-chart" | "area-chart" | "activity" | "trending-up" | "trending-down" | "database" | "cloud" | "cloud-download" | "cloud-upload" | "server" | "desktop" | "laptop" | "mobile" | "tablet" | "printer" | "camera" | "microphone" | "volume-up" | "volume-off" | "speaker-wave" | "speaker-muted" | "wifi" | "power" | "key" | "shield" | "shield-check" | "bug" | "bulb" | "rocket" | "trophy" | "shopping-cart" | "shopping-bag" | "shop" | "wallet" | "bank" | "calculator" | "tag" | "tags" | "comments" | "share" | "paperclip" | "location" | "compass" | "car" | "truck" | "gift" | "coffee" | "experiment" | "tool" | "appstore" | "puzzle" | "partition" | "branches" | "scan" | "qr-code" | "barcode" | "user-plus" | "user-minus" | "smile" | "meh" | "frown" | "game-cultivator" | "game-swordsman" | "game-spirit-wolf" | "game-gem" | "game-ingot" | "game-sword" | "game-robe" | "game-pants" | "game-pendant" | "game-necklace" | "game-pill" | "game-potion" | "game-elixir-jar" | "game-flame" | "game-soul-elixir" | "game-herb" | "game-meditate" | "game-backpack" | "game-qi" | "plus" | "tilde" | "minus" | "check" | "info" | "question" | "circle-check" | "circle-close" | "circle-plus" | "circle-minus" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down" | "double-left" | "double-right" | "arrow-left" | "arrow-right" | "arrow-up" | "arrow-down" | "more-horizontal" | "more-vertical" | "home" | "user" | "users" | "settings" | "edit" | "trash" | "scissors" | "undo" | "redo" | "flip-horizontal" | "flip-vertical" | "rotate-left" | "rotate-right" | "download" | "upload" | "refresh" | "loader" | "calendar" | "clock" | "mail" | "phone" | "external-link" | "eye" | "eye-off" | "lock" | "unlock" | "bell" | "star" | "heart" | "file" | "folder" | "sort-ascending" | "sort-descending" | "book" | "component" | "token" | "sun" | "moon" | "github")[];
362
376
  declare const filledIconPaths: {
363
377
  info: react.JSX.Element;
364
378
  question: react.JSX.Element;
@@ -541,7 +555,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
541
555
  /** 按展示顺序排列的项目配置。 */
542
556
  items: readonly MenuItem[];
543
557
  /**
544
- * 展示或交互模式;grid 显示双列圆角卡片,图标居上、名称居下,保留选中和当前生效标记。
558
+ * 展示或交互模式;inline 子目录按实际内容高度展开,支持长列表及嵌套目录;grid 显示双列圆角卡片,图标居上、名称居下,保留选中和当前生效标记。
545
559
  * @defaultValue "vertical"
546
560
  */
547
561
  mode?: MenuMode;
@@ -554,11 +568,11 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
554
568
  * @defaultValue "light"
555
569
  */
556
570
  theme?: MenuTheme;
557
- /** 当前选中项目的标识集合;传入后由外部控制。 */
571
+ /** 当前选中项目的标识集合;传入后由外部控制。同一面板内单选切换时背景以 260ms 滑到新项目,文字和回调立即更新;首次定位、多选及减少动态效果时直接显示。 */
558
572
  selectedKeys?: readonly string[];
559
573
  /**
560
574
  * 自动将首个选中项目滚动到菜单自身的可见区域,适用于可纵向滚动的列表、内嵌或网格菜单。
561
- * 首次渲染、异步项目到达及首个选中标识改变时尝试定位;已完整可见时不滚动,超出时尽量居中。
575
+ * 首次渲染、异步项目到达、首个选中标识改变或其目录展开后尝试定位;已完整可见时不滚动,超出时尽量居中。
562
576
  * 仅调整菜单自身的滚动位置,不展开子菜单、不移动焦点;相同选中项的普通重渲染保留用户手动滚动位置。
563
577
  * @defaultValue false
564
578
  */
@@ -586,7 +600,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
586
600
  */
587
601
  selectable?: boolean;
588
602
  /**
589
- * 收起内嵌菜单
603
+ * 收起内嵌菜单为图标入口;纯文本 label 或 title 同时作为入口的无障碍名称,子菜单以弹层展开。
590
604
  * @defaultValue false
591
605
  */
592
606
  inlineCollapsed?: boolean;
@@ -615,7 +629,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
615
629
  /** 子菜单交互改变展开状态时触发,参数为完整的展开键集合;弹出模式切换兄弟目录时同时移除旧分支及后代。受控时应将该集合写回 openKeys。 */
616
630
  onOpenChange?: (keys: string[]) => void;
617
631
  }
618
- /** 菜单组件;弹出子菜单切换时只保留当前分支及其祖先,内嵌模式允许多分支展开;操作浮动滚动条时保持对应菜单展开。侧向子菜单距父菜单项水平偏移 16px,上下弹出偏移 4px,空间不足时自动翻转方向。 */
632
+ /** 菜单组件;同面板单选背景默认滑动到新选项,快速切换从当前位置继续,多选保留独立背景。弹出子菜单切换时只保留当前分支及其祖先,内嵌模式允许多分支展开;操作浮动滚动条时保持对应菜单展开。侧向子菜单距父菜单项水平偏移 16px,上下弹出偏移 4px,空间不足时自动翻转方向。上下键及 Home/End 移动当前层焦点并跳过禁用项;右键展开子菜单,左键或 Escape 返回上层,Enter/空格执行当前按钮。 */
619
633
  declare function Menu({ items, mode, gridColumns, interactionCursor, theme, selectedKeys, autoScrollSelected, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, style, ...rest }: MenuProps): react.JSX.Element;
620
634
  /** Step的状态类型。 */
621
635
  type StepStatus = "wait" | "process" | "finish" | "error";
@@ -747,7 +761,7 @@ interface SegmentedProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultVa
747
761
  /** 值发生变化时调用;参数为新值及类型声明中列出的关联信息。 */
748
762
  onChange?: (value: SegmentedValue) => void;
749
763
  }
750
- /** 分段选择组件。 */
764
+ /** 分段选择组件;普通形态的选中背景以 260ms 平滑移动并适配选项尺寸,快速切换从当前位置接续。纵向与横向共用行为,值及回调立即更新;首次定位、尺寸变化及减少动态效果时直接对齐,zigzag 保留其折线与形变过渡。 */
751
765
  declare function Segmented({ options, value, defaultValue, variant, shape, size: sizeProp, block, vertical, disabled, onChange, className, onKeyDown, ...props }: SegmentedProps): react.JSX.Element;
752
766
 
753
767
  /** Tab的项目定义。 */
@@ -954,7 +968,7 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
954
968
  onClick?: ButtonProps["onClick"];
955
969
  }
956
970
  declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
957
- /** 下拉菜单组件。 */
971
+ /** 下拉菜单组件;面板以 260ms 缩放淡入并果冻回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
958
972
  declare const Dropdown: typeof DropdownRoot & {
959
973
  /** 组合主操作按钮与下拉菜单的按钮组件。 */
960
974
  Button: typeof DropdownButton;
@@ -1000,7 +1014,7 @@ interface TooltipProps {
1000
1014
  /** 打开状态改变时触发,参数为新的打开状态。 */
1001
1015
  onOpenChange?: (open: boolean) => void;
1002
1016
  }
1003
- /** 文字提示组件。 */
1017
+ /** 弹性回弹展示的文字提示,退场完成后卸载;系统减少动态效果时直接切换。 */
1004
1018
  declare function Tooltip(props: TooltipProps): react.JSX.Element;
1005
1019
  /** 气泡卡片的属性配置。 */
1006
1020
  interface PopoverProps extends Omit<TooltipProps, "title"> {
@@ -1011,7 +1025,7 @@ interface PopoverProps extends Omit<TooltipProps, "title"> {
1011
1025
  /** 需要显示的内容,支持文本或 React 节点。 */
1012
1026
  content?: ReactNode;
1013
1027
  }
1014
- /** 气泡卡片组件。 */
1028
+ /** 弹性回弹开合的气泡卡片,退场期间不再响应指针操作。 */
1015
1029
  declare function Popover({ title, content, contentSize, trigger, overlayClassName, ...props }: PopoverProps): react.JSX.Element;
1016
1030
  /** 时间轴的项目定义。 */
1017
1031
  type TimelineItem = {
@@ -1409,7 +1423,7 @@ interface SpinProps extends HTMLAttributes<HTMLDivElement> {
1409
1423
  */
1410
1424
  fullscreen?: boolean;
1411
1425
  }
1412
- /** 加载指示器组件。 */
1426
+ /** 加载指示器组件;等待 delay 后以 180ms 淡入,停止时沿相同轨迹反向淡出并卸载,减少动态效果时直接切换。 */
1413
1427
  declare function Spin({ spinning, size, tip, indicator, delay, fullscreen, className, children, ...props }: SpinProps): react.JSX.Element | null;
1414
1428
  /** 水印文字的字体、颜色和对齐配置。 */
1415
1429
  interface WatermarkFont {
@@ -1498,7 +1512,7 @@ interface NotificationConfig {
1498
1512
  role?: string;
1499
1513
  /** 点击时触发,参数为当前点击事件或项目上下文。 */
1500
1514
  onClick?: () => void;
1501
- /** 请求关闭时触发的回调。 */
1515
+ /** 请求关闭时同步触发一次,通知在弹性回弹退场完成后移除;重复关闭不重复触发。 */
1502
1516
  onClose?: () => void;
1503
1517
  }
1504
1518
  declare function openNotification(config: NotificationConfig): {
@@ -1507,7 +1521,7 @@ declare function openNotification(config: NotificationConfig): {
1507
1521
  /** 关闭本条通知。 */
1508
1522
  close: () => void;
1509
1523
  };
1510
- /** 全局通知 API,支持标题、说明、自定义操作和关闭管理。 */
1524
+ /** 全局通知 API,支持标题、说明、自定义操作及弹性回弹开合;退场完成后移除通知。 */
1511
1525
  declare const notification: {
1512
1526
  /** 直接打开实例,返回可用于更新或关闭的操作句柄。 */
1513
1527
  open: typeof openNotification;
@@ -1603,7 +1617,7 @@ interface TourProps {
1603
1617
  /** 流程完成或表单校验通过并提交时调用。 */
1604
1618
  onFinish?: () => void;
1605
1619
  }
1606
- /** 操作引导组件。 */
1620
+ /** 操作引导组件;整体以 180ms 淡入,关闭时按相同轨迹反播后卸载,减少动态效果时直接切换。 */
1607
1621
  declare function Tour({ open, steps, current, defaultCurrent, mask, closable, disabledInteraction, onChange, onClose, onFinish }: TourProps): react.ReactPortal | null;
1608
1622
 
1609
1623
  /** 评分的属性配置。 */
@@ -1907,7 +1921,7 @@ interface ImagePreviewProps {
1907
1921
  /** 打开状态改变时触发,参数为新的打开状态。 */
1908
1922
  onOpenChange: (open: boolean) => void;
1909
1923
  }
1910
- /** 图片预览弹层,初始按窗口适配大图,支持水平/垂直翻转、左右旋转、缩放及拖动;重新打开或更换图片时重置视图。 */
1924
+ /** 图片预览弹层,初始按窗口适配大图,支持水平/垂直翻转、左右旋转、缩放及拖动;重新打开或更换图片时重置视图。入退场共用 180ms 淡入轨迹,关闭反播后卸载,退场期间保留图片视图;减少动态效果时直接切换。 */
1911
1925
  declare function ImagePreview({ open, src, alt, onOpenChange, current, count, onCurrentChange }: ImagePreviewProps): react.ReactPortal | null;
1912
1926
  /** 图片预览的配置。 */
1913
1927
  interface ImagePreviewConfig {
@@ -2193,18 +2207,18 @@ interface MessageConfig {
2193
2207
  duration?: number;
2194
2208
  /** 是否显示关闭入口。 */
2195
2209
  closable?: boolean;
2196
- /** 请求关闭时触发的回调。 */
2210
+ /** 请求关闭时同步触发一次;消息退场完成后移除 DOM,重复关闭不重复触发。 */
2197
2211
  onClose?: () => void;
2198
2212
  }
2199
2213
  /** 全局消息的操作句柄。 */
2200
2214
  interface MessageHandle {
2201
- /** 关闭当前界面或实例。 */
2215
+ /** 开始关闭消息,弹性回弹退场完成后移除;重复调用不重复触发 onClose。 */
2202
2216
  close: () => void;
2203
2217
  /** 局部更新当前实例配置,未传入的字段保持原值。 */
2204
2218
  update: (next: Partial<MessageConfig>) => void;
2205
2219
  }
2206
2220
  declare function openMessage(input: ReactNode | MessageConfig): MessageHandle;
2207
- /** 全局消息 API,可直接显示成功、错误、警告等短提示,并通过句柄关闭。 */
2221
+ /** 全局消息 API,短提示的背景以弹性形变开合,正文和图标只位移与淡入淡出、保持原始尺寸;关闭时保留节点直到退场完成,可通过句柄更新或关闭。 */
2208
2222
  declare const message: {
2209
2223
  /** 直接打开实例,返回可用于更新或关闭的操作句柄。 */
2210
2224
  open: typeof openMessage;
@@ -2391,7 +2405,7 @@ interface FloatButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "on
2391
2405
  * @defaultValue "top"
2392
2406
  */
2393
2407
  placement?: "top" | "bottom" | "left" | "right";
2394
- /** 是否打开;传入后由外部控制显示状态。 */
2408
+ /** 是否打开;传入后由外部控制显示状态。菜单展开 260ms,以缩放淡入、弹大回收后归位表现果冻弹性;收起 140ms,无回弹缩小淡出,保留原有面板外观;结束后卸载,减少动态效果时直接切换。 */
2395
2409
  open?: boolean;
2396
2410
  /**
2397
2411
  * 非受控模式下的初始打开状态。
@@ -2422,7 +2436,7 @@ declare function FloatButtonBackTop({ target, visibilityHeight, behavior, onClic
2422
2436
  declare const FloatButton: react.ForwardRefExoticComponent<FloatButtonProps & react.RefAttributes<HTMLButtonElement>> & {
2423
2437
  /** 组合多个子项并统一管理布局或选择状态。 */
2424
2438
  Group: typeof FloatButtonGroup;
2425
- /** 滚动超过指定距离后显示的返回顶部按钮。 */
2439
+ /** 滚动超过指定距离后以 180ms 淡入的返回顶部按钮;回到阈值内按同一轨迹反向淡出,减少动态效果时直接切换。 */
2426
2440
  BackTop: typeof FloatButtonBackTop;
2427
2441
  };
2428
2442
 
@@ -2446,4 +2460,17 @@ interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
2446
2460
  /** 用于导入、提交等操作完成后的结果展示,支持自定义图标、详情和操作。 */
2447
2461
  declare function Result({ status, title, subTitle, icon, extra, children, className, ...props }: ResultProps): react.JSX.Element;
2448
2462
 
2449
- export { type MenuMode as $, type FloatButtonGroupProps as A, type BadgeProps as B, Calendar as C, Dropdown as D, type FloatButtonProps as E, FILLED_ICON_NAMES as F, type FloatButtonShape as G, type FloatingPlacement as H, type FloatingTrigger as I, ICON_NAMES as J, Icon as K, type IconName as L, type IconProps as M, type IconVariant as N, Image as O, ImagePreview as P, type ImagePreviewConfig as Q, ImagePreviewGroup as R, type ImagePreviewGroupProps as S, type TagStatus as T, type ImagePreviewProps as U, type ImageProps as V, Input as W, type InputProps as X, Menu as Y, type MenuClickInfo as Z, type MenuItem as _, Badge as a, Upload as a$, type MenuProps as a0, type MenuTheme as a1, type MessageConfig as a2, type MessageHandle as a3, type MessageKey as a4, type MessageType as a5, type NotificationConfig as a6, type NotificationPlacement as a7, type NotificationType as a8, Popconfirm as a9, type TabsProps as aA, type TabsType as aB, Tag as aC, type TagProps as aD, type TagSize as aE, type TagVariant as aF, Timeline as aG, type TimelineItem as aH, type TimelineProps as aI, Toolbar as aJ, type ToolbarItem as aK, type ToolbarProps as aL, Tooltip as aM, type TooltipProps as aN, Tour as aO, type TourProps as aP, type TourStep as aQ, Tree as aR, type TreeDropPosition as aS, type TreeKey as aT, type TreeNode as aU, type TreeProps as aV, Typography as aW, type TypographyLinkProps as aX, type TypographyProps as aY, type TypographyTitleProps as aZ, type TypographyType as a_, type PopconfirmProps as aa, Popover as ab, type PopoverProps as ac, Progress as ad, type ProgressProps as ae, type ProgressStatus as af, Rate as ag, type RateProps as ah, Result as ai, type ResultProps as aj, type ResultStatus as ak, Segmented as al, type SegmentedOption as am, type SegmentedProps as an, type SegmentedValue as ao, Spin as ap, type SpinProps as aq, type StepItem as ar, type StepStatus as as, Steps as at, type StepsProps as au, type TabItem as av, Tabs as aw, type TabsContextMenuClickInfo as ax, type TabsOrientation as ay, type TabsPosition as az, type BadgeRibbonProps as b, type UploadChangeInfo as b0, type UploadDraggerProps as b1, type UploadFile as b2, type UploadFileStatus as b3, type UploadHttpRequest as b4, type UploadItemActions as b5, type UploadProps as b6, type UploadRef as b7, type UploadRejectInfo as b8, type UploadRequestHandle as b9, type UploadRequestOptions as ba, Watermark as bb, type WatermarkFont as bc, type WatermarkProps as bd, message as be, notification as bf, type BadgeStatus as c, Breadcrumb as d, type BreadcrumbItem as e, type BreadcrumbProps as f, type CalendarProps as g, Card as h, type CardAccent as i, type CardProps as j, Carousel as k, type CarouselProps as l, type CarouselRef as m, Collapse as n, type CollapseItem as o, type CollapseKey as p, type CollapseProps as q, type DropdownButtonProps as r, type DropdownMenuProps as s, type DropdownOpenSource as t, type DropdownPlacement as u, type DropdownProps as v, type DropdownTrigger as w, type FilledIconName as x, FloatButton as y, type FloatButtonBackTopProps as z };
2463
+ /** 浮动滚动条接入组件的属性配置。 */
2464
+ interface FloatingScrollbarProviderProps {
2465
+ /**
2466
+ * 是否停止本 Provider 的接管;全局 Provider 为 true 时暂停默认全局接管,恢复原生滚动条。
2467
+ * @defaultValue false
2468
+ */
2469
+ disabled?: boolean;
2470
+ /** 仅接管指定容器;不传时接管页面中的滚动容器。 */
2471
+ targetRef?: RefObject<HTMLElement | null>;
2472
+ }
2473
+ /** 为页面或指定容器接入不占布局空间的浮动滚动条,悬停、滚动和拖动时显示,离开后自动隐藏;默认入口自动启用,显式全局 Provider 可暂停接管。原生标记只跳过容器自身,内部滚动容器仍独立接管;Table 视口保留其专用轨道。 */
2474
+ declare function FloatingScrollbarProvider({ disabled, targetRef }: FloatingScrollbarProviderProps): null;
2475
+
2476
+ export { type MenuClickInfo as $, type FloatButtonGroupProps as A, type BadgeProps as B, Calendar as C, Dropdown as D, type FloatButtonProps as E, FILLED_ICON_NAMES as F, type FloatButtonShape as G, type FloatingPlacement as H, FloatingScrollbarProvider as I, type FloatingScrollbarProviderProps as J, type FloatingTrigger as K, ICON_NAMES as L, Icon as M, type IconName as N, type IconProps as O, type IconVariant as P, Image as Q, ImagePreview as R, type ImagePreviewConfig as S, type TagStatus as T, ImagePreviewGroup as U, type ImagePreviewGroupProps as V, type ImagePreviewProps as W, type ImageProps as X, Input as Y, type InputProps as Z, Menu as _, Badge as a, type TypographyLinkProps as a$, type MenuItem as a0, type MenuMode as a1, type MenuProps as a2, type MenuTheme as a3, type MessageConfig as a4, type MessageHandle as a5, type MessageKey as a6, type MessageType as a7, type NotificationConfig as a8, type NotificationPlacement as a9, Tabs as aA, type TabsContextMenuClickInfo as aB, type TabsOrientation as aC, type TabsPosition as aD, type TabsProps as aE, type TabsType as aF, Tag as aG, type TagProps as aH, type TagSize as aI, type TagVariant as aJ, Timeline as aK, type TimelineItem as aL, type TimelineProps as aM, Toolbar as aN, type ToolbarItem as aO, type ToolbarProps as aP, Tooltip as aQ, type TooltipProps as aR, Tour as aS, type TourProps as aT, type TourStep as aU, Tree as aV, type TreeDropPosition as aW, type TreeKey as aX, type TreeNode as aY, type TreeProps as aZ, Typography as a_, type NotificationType as aa, Popconfirm as ab, type PopconfirmProps as ac, Popover as ad, type PopoverProps as ae, Progress as af, type ProgressProps as ag, type ProgressStatus as ah, Rate as ai, type RateProps as aj, Result as ak, type ResultProps as al, type ResultStatus as am, Segmented as an, type SegmentedOption as ao, type SegmentedProps as ap, type SegmentedValue as aq, Skeleton as ar, type SkeletonProps as as, Spin as at, type SpinProps as au, type StepItem as av, type StepStatus as aw, Steps as ax, type StepsProps as ay, type TabItem as az, type BadgeRibbonProps as b, type TypographyProps as b0, type TypographyTitleProps as b1, type TypographyType as b2, Upload as b3, type UploadChangeInfo as b4, type UploadDraggerProps as b5, type UploadFile as b6, type UploadFileStatus as b7, type UploadHttpRequest as b8, type UploadItemActions as b9, type UploadProps as ba, type UploadRef as bb, type UploadRejectInfo as bc, type UploadRequestHandle as bd, type UploadRequestOptions as be, Watermark as bf, type WatermarkFont as bg, type WatermarkProps as bh, message as bi, notification as bj, type BadgeStatus as c, Breadcrumb as d, type BreadcrumbItem as e, type BreadcrumbProps as f, type CalendarProps as g, Card as h, type CardAccent as i, type CardProps as j, Carousel as k, type CarouselProps as l, type CarouselRef as m, Collapse as n, type CollapseItem as o, type CollapseKey as p, type CollapseProps as q, type DropdownButtonProps as r, type DropdownMenuProps as s, type DropdownOpenSource as t, type DropdownPlacement as u, type DropdownProps as v, type DropdownTrigger as w, type FilledIconName as x, FloatButton as y, type FloatButtonBackTopProps as z };