@sia.soul/sia-react-ui 0.1.166 → 0.1.168

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 (42) hide show
  1. package/dist/{Select-Dxevc0f6.d.cts → Select-BXL6JVj0.d.cts} +3 -1
  2. package/dist/{Select-tsENCXQI.d.ts → Select-xBynHOUn.d.ts} +3 -1
  3. package/dist/chart.cjs +4553 -4513
  4. package/dist/chart.d.cts +1850 -1843
  5. package/dist/chart.d.ts +1850 -1843
  6. package/dist/chart.js +1 -1
  7. package/dist/chunk-2FZI7TP6.js +0 -0
  8. package/dist/{chunk-T2F6X3LA.js → chunk-55MXRT55.js} +26 -22
  9. package/dist/{chunk-2EC653G5.js → chunk-5KTQXNGL.js} +2 -2
  10. package/dist/{chunk-NHGCGOF2.js → chunk-A7TLMWMM.js} +4754 -4714
  11. package/dist/{chunk-DKQ5UCN6.js → chunk-DQR7EPRA.js} +519 -220
  12. package/dist/{chunk-G5EJJFUI.js → chunk-FSO46WEJ.js} +14 -6
  13. package/dist/{chunk-SX4LLT3H.js → chunk-V4YT4LT5.js} +36 -29
  14. package/dist/{chunk-23FQ5ARA.js → chunk-XS7AVCHO.js} +27 -17
  15. package/dist/{core-Dy8NWJ1b.d.ts → core-BlCSI1Tm.d.ts} +7 -10
  16. package/dist/{core-Cnt8r6pj.d.cts → core-D_D7pOTq.d.cts} +7 -10
  17. package/dist/core.cjs +117 -88
  18. package/dist/core.css +3145 -5342
  19. package/dist/core.d.cts +2 -2
  20. package/dist/core.d.ts +2 -2
  21. package/dist/core.js +4 -4
  22. package/dist/game.cjs +14 -6
  23. package/dist/game.css +1658 -3131
  24. package/dist/game.js +1 -1
  25. package/dist/index.cjs +6684 -6237
  26. package/dist/index.css +8717 -8536
  27. package/dist/index.d.cts +137 -116
  28. package/dist/index.d.ts +137 -116
  29. package/dist/index.js +908 -828
  30. package/dist/markdown-editor.css +461 -0
  31. package/dist/markdown-editor.js +2 -1
  32. package/dist/rich-text-editor.cjs +38 -20
  33. package/dist/rich-text-editor.css +461 -0
  34. package/dist/rich-text-editor.js +4 -3
  35. package/dist/{select-date-range-E1N5-oXv.d.ts → select-date-range-C-29x2BA.d.ts} +7 -10
  36. package/dist/{select-date-range-BnlISSPV.d.cts → select-date-range-CewOaLtk.d.cts} +7 -10
  37. package/dist/select-date-range.cjs +563 -249
  38. package/dist/select-date-range.d.cts +2 -2
  39. package/dist/select-date-range.d.ts +2 -2
  40. package/dist/select-date-range.js +4 -4
  41. package/package.json +5 -1
  42. /package/dist/{chunk-V4I32DPL.js → chunk-GKWSCL5Q.js} +0 -0
@@ -1395,19 +1395,27 @@ function useOverlayLifecycle(open, panelRef, onRequestClose, keyboard = true, au
1395
1395
  closeRef.current();
1396
1396
  return;
1397
1397
  }
1398
- if (event.key !== "Tab" || !panelRef.current) return;
1399
- const focusable = focusableElements(panelRef.current);
1398
+ const panel = panelRef.current;
1399
+ if (event.key !== "Tab" || !panel) return;
1400
+ const focusable = focusableElements(panel);
1400
1401
  if (focusable.length === 0) {
1401
1402
  event.preventDefault();
1402
- panelRef.current.focus();
1403
+ panel.focus();
1403
1404
  return;
1404
1405
  }
1405
1406
  const first = focusable[0];
1406
1407
  const last = focusable.at(-1);
1407
- if (event.shiftKey && document.activeElement === first) {
1408
+ const active = document.activeElement;
1409
+ const insidePanel = active instanceof Node && panel.contains(active);
1410
+ if (!insidePanel || active === panel) {
1411
+ event.preventDefault();
1412
+ (event.shiftKey ? last : first).focus();
1413
+ return;
1414
+ }
1415
+ if (event.shiftKey && active === first) {
1408
1416
  event.preventDefault();
1409
1417
  last.focus();
1410
- } else if (!event.shiftKey && document.activeElement === last) {
1418
+ } else if (!event.shiftKey && active === last) {
1411
1419
  event.preventDefault();
1412
1420
  first.focus();
1413
1421
  }
@@ -1422,7 +1430,7 @@ function useOverlayLifecycle(open, panelRef, onRequestClose, keyboard = true, au
1422
1430
  unlockBody();
1423
1431
  previouslyFocused?.focus({ preventScroll: true });
1424
1432
  };
1425
- }, [keyboard, open, panelRef, autoFocusInput]);
1433
+ }, [keyboard, open, panelRef]);
1426
1434
  useEffect(() => {
1427
1435
  if (!open) return;
1428
1436
  const timer = window.setTimeout(() => {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Dropdown,
3
3
  Input
4
- } from "./chunk-23FQ5ARA.js";
4
+ } from "./chunk-XS7AVCHO.js";
5
5
  import {
6
6
  Icon,
7
7
  Modal,
8
8
  isAnchorBehindOverlay,
9
9
  subscribeOverlayLayers
10
- } from "./chunk-G5EJJFUI.js";
10
+ } from "./chunk-FSO46WEJ.js";
11
11
  import {
12
12
  Button
13
13
  } from "./chunk-PAWEP65C.js";
@@ -1542,6 +1542,27 @@ var Select = forwardRef2(function Select2({
1542
1542
  open,
1543
1543
  title: modalConfig?.title ?? placeholder,
1544
1544
  width: modalConfig?.width ?? 900,
1545
+ titleExtra: /* @__PURE__ */ jsxs5(Fragment2, { children: [
1546
+ modalConfig?.titleExtra != null && modalConfig.titleExtra !== false ? modalConfig.titleExtra : null,
1547
+ /* @__PURE__ */ jsx5(
1548
+ Input,
1549
+ {
1550
+ className: "sia-select-modal__search",
1551
+ "aria-label": searchPlaceholder,
1552
+ placeholder: searchPlaceholder,
1553
+ placeholderMode: "default",
1554
+ prefix: /* @__PURE__ */ jsx5(Icon, { name: "search", size: 14 }),
1555
+ value: query,
1556
+ allowClear: true,
1557
+ disabled: modalSubmitting || disabled,
1558
+ onChange: (event) => {
1559
+ setQuery(event.target.value);
1560
+ onSearch?.(event.target.value);
1561
+ }
1562
+ },
1563
+ "sia-select-modal-search"
1564
+ )
1565
+ ] }),
1545
1566
  confirmLoading: modalSubmitting,
1546
1567
  onOpenChange: (next) => {
1547
1568
  if (!next) closeDropdown();
@@ -1556,43 +1577,27 @@ var Select = forwardRef2(function Select2({
1556
1577
  ] }),
1557
1578
  children: open ? /* @__PURE__ */ jsxs5(Fragment2, { children: [
1558
1579
  modalConfig?.headerExtra != null && modalConfig.headerExtra !== false ? /* @__PURE__ */ jsx5("div", { className: "sia-select-modal__header-extra", children: modalConfig.headerExtra }) : null,
1559
- /* @__PURE__ */ jsxs5("div", { className: "sia-select-modal__heading", children: [
1560
- /* @__PURE__ */ jsxs5("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
1561
- /* @__PURE__ */ jsx5(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
1562
- /* @__PURE__ */ jsxs5(Button, { role: "tab", "aria-selected": selectedOnly, variant: "link", onClick: () => setSelectedOnly(true), children: [
1563
- "\u5DF2\u9009\u9879(",
1564
- modalValues.length,
1565
- ")"
1566
- ] })
1567
- ] }),
1568
- /* @__PURE__ */ jsx5(
1569
- Input,
1570
- {
1571
- "aria-label": searchPlaceholder,
1572
- placeholder: searchPlaceholder,
1573
- prefix: /* @__PURE__ */ jsx5(Icon, { name: "search", size: 14 }),
1574
- value: query,
1575
- allowClear: true,
1576
- onChange: (event) => {
1577
- setQuery(event.target.value);
1578
- onSearch?.(event.target.value);
1579
- }
1580
- }
1581
- )
1582
- ] }),
1580
+ /* @__PURE__ */ jsx5("div", { className: "sia-select-modal__heading", children: /* @__PURE__ */ jsxs5("div", { role: "tablist", "aria-label": "\u9009\u9879\u8303\u56F4", children: [
1581
+ /* @__PURE__ */ jsx5(Button, { role: "tab", "aria-selected": !selectedOnly, variant: "link", onClick: () => setSelectedOnly(false), children: "\u5168\u90E8" }),
1582
+ /* @__PURE__ */ jsxs5(Button, { role: "tab", "aria-selected": selectedOnly, variant: "link", onClick: () => setSelectedOnly(true), children: [
1583
+ "\u5DF2\u9009\u9879(",
1584
+ modalValues.length,
1585
+ ")"
1586
+ ] })
1587
+ ] }) }),
1583
1588
  multiple && showSelectAll ? /* @__PURE__ */ jsxs5("div", { className: "sia-select-modal__actions", children: [
1584
1589
  /* @__PURE__ */ jsx5(
1585
1590
  Checkbox2,
1586
1591
  {
1587
1592
  checked: modalEnabled.length > 0 && modalEnabled.every((option) => modalValues.includes(option.value)),
1588
1593
  indeterminate: modalEnabled.some((option) => modalValues.includes(option.value)) && !modalEnabled.every((option) => modalValues.includes(option.value)),
1589
- disabled: !modalEnabled.length,
1594
+ disabled: modalSubmitting || disabled || loading || !modalEnabled.length,
1590
1595
  onChange: (checked) => modalBatch(checked ? "all" : "remove"),
1591
1596
  children: "\u5168\u9009"
1592
1597
  }
1593
1598
  ),
1594
- /* @__PURE__ */ jsx5(Button, { variant: "link", size: "small", disabled: !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
1595
- /* @__PURE__ */ jsx5(Button, { variant: "link", size: "small", danger: true, disabled: !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
1599
+ /* @__PURE__ */ jsx5(Button, { variant: "link", size: "small", disabled: modalSubmitting || disabled || loading || !modalEnabled.length, onClick: () => modalBatch("invert"), children: "\u53CD\u9009" }),
1600
+ /* @__PURE__ */ jsx5(Button, { variant: "link", size: "small", danger: true, disabled: modalSubmitting || disabled || loading || !modalValues.length, onClick: () => setModalValues([]), children: "\u6E05\u7A7A" })
1596
1601
  ] }) : null,
1597
1602
  allowInput && canSubmitInput ? /* @__PURE__ */ jsxs5(Button, { variant: "link", onClick: () => {
1598
1603
  setModalValues(multiple ? [.../* @__PURE__ */ new Set([...modalValues, inputValue])] : [inputValue]);
@@ -1611,6 +1616,8 @@ var Select = forwardRef2(function Select2({
1611
1616
  multiple,
1612
1617
  groupCheckable: modalConfig?.groupCheckable,
1613
1618
  allowDeselect: allowClear,
1619
+ disabled: modalSubmitting || disabled,
1620
+ loading,
1614
1621
  selectedOnly,
1615
1622
  showValue,
1616
1623
  showSearch: false,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  Icon,
6
6
  Modal
7
- } from "./chunk-G5EJJFUI.js";
7
+ } from "./chunk-FSO46WEJ.js";
8
8
  import {
9
9
  Button
10
10
  } from "./chunk-PAWEP65C.js";
@@ -586,7 +586,7 @@ function Segmented({ options, value, defaultValue, variant = "default", shape =
586
586
  }
587
587
 
588
588
  // src/components/Dropdown.tsx
589
- import { cloneElement, isValidElement, useEffect as useEffect2, useLayoutEffect as useLayoutEffect4, useRef as useRef4, useState as useState2 } from "react";
589
+ import { cloneElement, forwardRef as forwardRef2, isValidElement, useEffect as useEffect2, useLayoutEffect as useLayoutEffect4, useRef as useRef4, useState as useState2 } from "react";
590
590
  import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
591
591
  var placementMap = {
592
592
  bottomLeft: "bottom-start",
@@ -594,7 +594,7 @@ var placementMap = {
594
594
  topLeft: "top-start",
595
595
  topRight: "top-end"
596
596
  };
597
- function DropdownInternal({
597
+ var DropdownInternal = forwardRef2(function DropdownInternal2({
598
598
  popupAnchorRef,
599
599
  menu,
600
600
  children,
@@ -619,8 +619,13 @@ function DropdownInternal({
619
619
  onContextMenu,
620
620
  onKeyDown,
621
621
  ...props
622
- }) {
622
+ }, forwardedRef) {
623
623
  const rootRef = useRef4(null);
624
+ function setRootRef(node) {
625
+ rootRef.current = node;
626
+ if (typeof forwardedRef === "function") forwardedRef(node);
627
+ else if (forwardedRef) forwardedRef.current = node;
628
+ }
624
629
  const contextAnchorRef = useRef4(null);
625
630
  const popupRef = useRef4(null);
626
631
  const menuListRef = useRef4(null);
@@ -772,7 +777,7 @@ function DropdownInternal({
772
777
  return /* @__PURE__ */ jsxs2(
773
778
  "span",
774
779
  {
775
- ref: rootRef,
780
+ ref: setRootRef,
776
781
  className: `sia-dropdown${visible ? " is-open" : ""}${disabled ? " is-disabled" : ""} ${className}`.trim(),
777
782
  "aria-expanded": visible,
778
783
  "aria-haspopup": "menu",
@@ -828,11 +833,11 @@ function DropdownInternal({
828
833
  ]
829
834
  }
830
835
  );
831
- }
832
- function DropdownRoot(props) {
833
- return /* @__PURE__ */ jsx4(DropdownInternal, { ...props });
834
- }
835
- function DropdownButton({
836
+ });
837
+ var DropdownRoot = forwardRef2(function Dropdown(props, forwardedRef) {
838
+ return /* @__PURE__ */ jsx4(DropdownInternal, { ref: forwardedRef, ...props });
839
+ });
840
+ var DropdownButton = forwardRef2(function DropdownButton2({
836
841
  children,
837
842
  className = "",
838
843
  buttonProps,
@@ -842,9 +847,14 @@ function DropdownButton({
842
847
  dropdownDisabled,
843
848
  trigger = ["click"],
844
849
  ...dropdownProps
845
- }) {
850
+ }, forwardedRef) {
846
851
  const groupRef = useRef4(null);
847
- return /* @__PURE__ */ jsxs2("span", { ref: groupRef, className: `sia-dropdown-button ${className}`.trim(), children: [
852
+ function setGroupRef(node) {
853
+ groupRef.current = node;
854
+ if (typeof forwardedRef === "function") forwardedRef(node);
855
+ else if (forwardedRef) forwardedRef.current = node;
856
+ }
857
+ return /* @__PURE__ */ jsxs2("span", { ref: setGroupRef, className: `sia-dropdown-button ${className}`.trim(), children: [
848
858
  /* @__PURE__ */ jsx4(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
849
859
  /* @__PURE__ */ jsx4(DropdownInternal, { ...dropdownProps, popupAnchorRef: groupRef, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ jsx4(
850
860
  Button,
@@ -857,16 +867,16 @@ function DropdownButton({
857
867
  }
858
868
  ) })
859
869
  ] });
860
- }
861
- var Dropdown = Object.assign(DropdownRoot, {
870
+ });
871
+ var Dropdown2 = Object.assign(DropdownRoot, {
862
872
  /** 组合主操作按钮与下拉菜单的按钮组件。 */
863
873
  Button: DropdownButton
864
874
  });
865
875
 
866
876
  // src/components/Input.tsx
867
- import { forwardRef as forwardRef2, useId as useId2, useRef as useRef5, useState as useState3 } from "react";
877
+ import { forwardRef as forwardRef3, useId as useId2, useRef as useRef5, useState as useState3 } from "react";
868
878
  import { Fragment as Fragment3, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
869
- var Input = forwardRef2(function Input2({
879
+ var Input = forwardRef3(function Input2({
870
880
  label,
871
881
  hint,
872
882
  status = "default",
@@ -1032,6 +1042,6 @@ export {
1032
1042
  Menu,
1033
1043
  Steps,
1034
1044
  Segmented,
1035
- Dropdown,
1045
+ Dropdown2 as Dropdown,
1036
1046
  Input
1037
1047
  };
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
3
3
  import { B as ButtonProps, b as Button } from './Button-B59TIes7.js';
4
4
  import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.js';
5
- import './Select-tsENCXQI.js';
5
+ import './Select-xBynHOUn.js';
6
6
 
7
7
  /** 单个工具栏操作及其下拉菜单。 */
8
8
  interface ToolbarItem {
@@ -134,7 +134,7 @@ interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
134
134
  bodyStyle?: CSSProperties;
135
135
  }
136
136
  /** 卡片组件。 */
137
- declare function Card({ bordered, title, description, extra, selectable, interactionCursor, selected, showSelectedIndicator, defaultSelected, disabled, onSelectedChange, onAction, hoverActions, accent, accentColor, collapsible, collapsed, defaultCollapsed, onCollapsedChange, bodyHeight, fill, bodyClassName, bodyStyle, className, style, children, onClick, onKeyDown, ...props }: CardProps): react.JSX.Element;
137
+ declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLElement>>;
138
138
 
139
139
  declare const iconPaths: {
140
140
  package: react.JSX.Element;
@@ -859,7 +859,7 @@ interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
859
859
  onTabContextMenuClick?: (info: TabsContextMenuClickInfo) => void;
860
860
  }
861
861
  /** 选项卡组件;默认仅挂载首次激活的面板,切走后隐藏并保留,显式设置 destroyInactiveTabPane=true 可在切走后卸载。横向空间不足时,剩余标签收起到末尾的更多菜单,支持悬停或点击展开。设置确定高度或由父级弹性布局分配高度时,内容面板占满导航之外的剩余空间;未限定高度时按内容自然撑开。 */
862
- declare function Tabs({ items, activeKey, defaultActiveKey, onChange, onAfterChange, deferContent, type, indicatorMotion, indicatorPosition, size, tabPosition, orientation, centered, tabBarTitle, tabBarExtraContent, contentGap, destroyInactiveTabPane, closable, onEdit, tabContextMenu, onTabContextMenuClick, className, ...props }: TabsProps): react.JSX.Element;
862
+ declare const Tabs: react.ForwardRefExoticComponent<TabsProps & react.RefAttributes<HTMLDivElement>>;
863
863
 
864
864
  /** 打开下拉菜单的触发方式。 */
865
865
  type DropdownTrigger = "click" | "hover" | "contextMenu";
@@ -944,8 +944,6 @@ interface DropdownProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"
944
944
  source: DropdownOpenSource;
945
945
  }) => void;
946
946
  }
947
- /** 普通下拉菜单使用自身触发器定位,不对外暴露组合按钮的内部锚点。 */
948
- declare function DropdownRoot(props: DropdownProps): react.JSX.Element;
949
947
  /** 组合下拉按钮的属性配置;菜单相对于整组按钮定位,主操作和箭头触发保持独立。 */
950
948
  interface DropdownButtonProps extends Omit<DropdownProps, "children" | "className"> {
951
949
  /**
@@ -969,11 +967,10 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
969
967
  /** 点击时触发,参数为当前点击事件或项目上下文。 */
970
968
  onClick?: ButtonProps["onClick"];
971
969
  }
972
- declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
973
970
  /** 下拉菜单组件;面板以 260ms 缩放淡入并轻微回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
974
- declare const Dropdown: typeof DropdownRoot & {
971
+ declare const Dropdown: react.ForwardRefExoticComponent<DropdownProps & react.RefAttributes<HTMLSpanElement>> & {
975
972
  /** 组合主操作按钮与下拉菜单的按钮组件。 */
976
- Button: typeof DropdownButton;
973
+ Button: react.ForwardRefExoticComponent<DropdownButtonProps & react.RefAttributes<HTMLSpanElement>>;
977
974
  };
978
975
 
979
976
  /** 气泡十二个方向;start/end 为对应边的起点/终点对齐,同时支持 topLeft、leftTop 等驼峰别名。 */
@@ -2285,7 +2282,7 @@ interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
2285
2282
  itemRender?: (item: BreadcrumbItem, index: number, items: readonly BreadcrumbItem[]) => ReactNode;
2286
2283
  }
2287
2284
  /** 面包屑组件。 */
2288
- declare function Breadcrumb({ items, separator, itemRender, className, ...props }: BreadcrumbProps): react.JSX.Element;
2285
+ declare const Breadcrumb: react.ForwardRefExoticComponent<BreadcrumbProps & react.RefAttributes<HTMLElement>>;
2289
2286
 
2290
2287
  /** 排版的类型标识。 */
2291
2288
  type TypographyType = "secondary" | "success" | "warning" | "danger";
@@ -2466,7 +2463,7 @@ interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
2466
2463
  children?: ReactNode;
2467
2464
  }
2468
2465
  /** 用于导入、提交等操作完成后的结果展示,支持自定义图标、详情和操作。 */
2469
- declare function Result({ status, title, subTitle, icon, extra, children, className, ...props }: ResultProps): react.JSX.Element;
2466
+ declare const Result: react.ForwardRefExoticComponent<ResultProps & react.RefAttributes<HTMLDivElement>>;
2470
2467
 
2471
2468
  /** 浮动滚动条接入组件的属性配置。 */
2472
2469
  interface FloatingScrollbarProviderProps {
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
3
3
  import { B as ButtonProps, b as Button } from './Button-xLR4Yt57.cjs';
4
4
  import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.cjs';
5
- import './Select-Dxevc0f6.cjs';
5
+ import './Select-BXL6JVj0.cjs';
6
6
 
7
7
  /** 单个工具栏操作及其下拉菜单。 */
8
8
  interface ToolbarItem {
@@ -134,7 +134,7 @@ interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
134
134
  bodyStyle?: CSSProperties;
135
135
  }
136
136
  /** 卡片组件。 */
137
- declare function Card({ bordered, title, description, extra, selectable, interactionCursor, selected, showSelectedIndicator, defaultSelected, disabled, onSelectedChange, onAction, hoverActions, accent, accentColor, collapsible, collapsed, defaultCollapsed, onCollapsedChange, bodyHeight, fill, bodyClassName, bodyStyle, className, style, children, onClick, onKeyDown, ...props }: CardProps): react.JSX.Element;
137
+ declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLElement>>;
138
138
 
139
139
  declare const iconPaths: {
140
140
  package: react.JSX.Element;
@@ -859,7 +859,7 @@ interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
859
859
  onTabContextMenuClick?: (info: TabsContextMenuClickInfo) => void;
860
860
  }
861
861
  /** 选项卡组件;默认仅挂载首次激活的面板,切走后隐藏并保留,显式设置 destroyInactiveTabPane=true 可在切走后卸载。横向空间不足时,剩余标签收起到末尾的更多菜单,支持悬停或点击展开。设置确定高度或由父级弹性布局分配高度时,内容面板占满导航之外的剩余空间;未限定高度时按内容自然撑开。 */
862
- declare function Tabs({ items, activeKey, defaultActiveKey, onChange, onAfterChange, deferContent, type, indicatorMotion, indicatorPosition, size, tabPosition, orientation, centered, tabBarTitle, tabBarExtraContent, contentGap, destroyInactiveTabPane, closable, onEdit, tabContextMenu, onTabContextMenuClick, className, ...props }: TabsProps): react.JSX.Element;
862
+ declare const Tabs: react.ForwardRefExoticComponent<TabsProps & react.RefAttributes<HTMLDivElement>>;
863
863
 
864
864
  /** 打开下拉菜单的触发方式。 */
865
865
  type DropdownTrigger = "click" | "hover" | "contextMenu";
@@ -944,8 +944,6 @@ interface DropdownProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"
944
944
  source: DropdownOpenSource;
945
945
  }) => void;
946
946
  }
947
- /** 普通下拉菜单使用自身触发器定位,不对外暴露组合按钮的内部锚点。 */
948
- declare function DropdownRoot(props: DropdownProps): react.JSX.Element;
949
947
  /** 组合下拉按钮的属性配置;菜单相对于整组按钮定位,主操作和箭头触发保持独立。 */
950
948
  interface DropdownButtonProps extends Omit<DropdownProps, "children" | "className"> {
951
949
  /**
@@ -969,11 +967,10 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
969
967
  /** 点击时触发,参数为当前点击事件或项目上下文。 */
970
968
  onClick?: ButtonProps["onClick"];
971
969
  }
972
- declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
973
970
  /** 下拉菜单组件;面板以 260ms 缩放淡入并轻微回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
974
- declare const Dropdown: typeof DropdownRoot & {
971
+ declare const Dropdown: react.ForwardRefExoticComponent<DropdownProps & react.RefAttributes<HTMLSpanElement>> & {
975
972
  /** 组合主操作按钮与下拉菜单的按钮组件。 */
976
- Button: typeof DropdownButton;
973
+ Button: react.ForwardRefExoticComponent<DropdownButtonProps & react.RefAttributes<HTMLSpanElement>>;
977
974
  };
978
975
 
979
976
  /** 气泡十二个方向;start/end 为对应边的起点/终点对齐,同时支持 topLeft、leftTop 等驼峰别名。 */
@@ -2285,7 +2282,7 @@ interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
2285
2282
  itemRender?: (item: BreadcrumbItem, index: number, items: readonly BreadcrumbItem[]) => ReactNode;
2286
2283
  }
2287
2284
  /** 面包屑组件。 */
2288
- declare function Breadcrumb({ items, separator, itemRender, className, ...props }: BreadcrumbProps): react.JSX.Element;
2285
+ declare const Breadcrumb: react.ForwardRefExoticComponent<BreadcrumbProps & react.RefAttributes<HTMLElement>>;
2289
2286
 
2290
2287
  /** 排版的类型标识。 */
2291
2288
  type TypographyType = "secondary" | "success" | "warning" | "danger";
@@ -2466,7 +2463,7 @@ interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
2466
2463
  children?: ReactNode;
2467
2464
  }
2468
2465
  /** 用于导入、提交等操作完成后的结果展示,支持自定义图标、详情和操作。 */
2469
- declare function Result({ status, title, subTitle, icon, extra, children, className, ...props }: ResultProps): react.JSX.Element;
2466
+ declare const Result: react.ForwardRefExoticComponent<ResultProps & react.RefAttributes<HTMLDivElement>>;
2470
2467
 
2471
2468
  /** 浮动滚动条接入组件的属性配置。 */
2472
2469
  interface FloatingScrollbarProviderProps {