lingee-ui 0.0.14 → 0.0.15

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 (59) hide show
  1. package/dist/button/index.d.mts +1 -1
  2. package/dist/button/index.d.ts +1 -1
  3. package/dist/button/index.js +1 -1
  4. package/dist/button/index.mjs +1 -1
  5. package/dist/{chunk-HYN4Y4AW.js → chunk-7I26V66U.js} +1 -1
  6. package/dist/{chunk-WYTTL6TA.js → chunk-E3NN26A5.js} +1 -1
  7. package/dist/{chunk-B6CAD73P.mjs → chunk-HOX3ZANF.mjs} +1 -1
  8. package/dist/{chunk-FRXQG2XX.mjs → chunk-JWOTGIJI.mjs} +1 -1
  9. package/dist/chunk-K3345E52.mjs +2 -0
  10. package/dist/{chunk-BIETJXHD.mjs → chunk-K7VTWIZJ.mjs} +1 -1
  11. package/dist/chunk-KXUUVDLA.mjs +1 -0
  12. package/dist/{chunk-GLNNJIRF.js → chunk-P36XWLE4.js} +1 -1
  13. package/dist/{chunk-YSWFM6ML.js → chunk-P427AFIE.js} +1 -1
  14. package/dist/{chunk-G4FASWRJ.mjs → chunk-R5EGWXDT.mjs} +1 -1
  15. package/dist/{chunk-FHQEJ42C.js → chunk-TVE57POC.js} +1 -1
  16. package/dist/{chunk-T534AXC3.js → chunk-U4ZQGUSG.js} +2 -2
  17. package/dist/chunk-URZBMGD4.js +1 -0
  18. package/dist/chunk-VDUTBGPN.mjs +1 -0
  19. package/dist/chunk-XTBZBKJT.js +2 -0
  20. package/dist/{chunk-YLMME3Z2.mjs → chunk-XWFDVFPJ.mjs} +1 -1
  21. package/dist/{index-7pb5YOcq.d.mts → index-89atTLPD.d.mts} +2 -2
  22. package/dist/{index-7pb5YOcq.d.ts → index-89atTLPD.d.ts} +2 -2
  23. package/dist/index.css +1 -1
  24. package/dist/index.d.mts +49 -6
  25. package/dist/index.d.ts +49 -6
  26. package/dist/index.js +2 -2
  27. package/dist/index.mjs +2 -2
  28. package/dist/input/index.js +1 -1
  29. package/dist/input/index.mjs +1 -1
  30. package/dist/popover/index.css +1 -1
  31. package/dist/popover/index.d.mts +28 -2
  32. package/dist/popover/index.d.ts +28 -2
  33. package/dist/popover/index.js +1 -1
  34. package/dist/popover/index.mjs +1 -1
  35. package/dist/tabs/index.js +1 -1
  36. package/dist/tabs/index.mjs +1 -1
  37. package/dist/toast/index.js +1 -1
  38. package/dist/toast/index.mjs +1 -1
  39. package/dist/tooltip/index.js +1 -1
  40. package/dist/tooltip/index.mjs +1 -1
  41. package/dist/tree/index.css +1 -1
  42. package/dist/tree/index.js +1 -1
  43. package/dist/tree/index.mjs +1 -1
  44. package/package.json +1 -1
  45. package/skill/AGENTS-SNIPPET.md +2 -2
  46. package/skill/SKILL.md +3 -3
  47. package/skill/VERSION.json +2 -2
  48. package/skill/references/components/dialog.md +27 -0
  49. package/skill/references/components/empty.md +2 -1
  50. package/skill/references/components/popover.md +16 -12
  51. package/skill/references/components/sidebar.md +12 -2
  52. package/skill/references/components/tooltip.md +1 -0
  53. package/skill/references/setup.md +1 -1
  54. package/skill/references/tokens.md +1 -1
  55. package/dist/chunk-HJ7XGNWS.mjs +0 -2
  56. package/dist/chunk-IFHC5A33.mjs +0 -1
  57. package/dist/chunk-MIVVBEBP.js +0 -2
  58. package/dist/chunk-VV2IBN64.mjs +0 -1
  59. package/dist/chunk-X65SV4WZ.js +0 -1
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
- import { B as ButtonProps } from './index-7pb5YOcq.mjs';
2
- export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-7pb5YOcq.mjs';
1
+ import { B as ButtonProps } from './index-89atTLPD.mjs';
2
+ export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-89atTLPD.mjs';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode, CSSProperties, HTMLAttributes, MouseEvent, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
5
5
  import { TooltipProps } from './tooltip/index.mjs';
6
6
  export { Tooltip, TooltipPlacement } from './tooltip/index.mjs';
7
7
  export { TabItem, Tabs, TabsOverflow, TabsProps, TabsScrollOptions, TabsSize, TabsVariant } from './tabs/index.mjs';
8
8
  import { PopoverContentProps } from './popover/index.mjs';
9
- export { Popover, PopoverAnchor, PopoverAnchorProps, PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverContent, PopoverPlacement, PopoverProps, PopoverTrigger, PopoverTriggerProps } from './popover/index.mjs';
9
+ export { Popover, PopoverAnchor, PopoverAnchorProps, PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverContent, PopoverPlacement, PopoverProps, PopoverTrigger, PopoverTriggerAction, PopoverTriggerProps } from './popover/index.mjs';
10
10
  export { Switch, SwitchProps, SwitchSize } from './switch/index.mjs';
11
11
  export { Input, InputProps, InputShape, InputSize } from './input/index.mjs';
12
12
  export { Textarea, TextareaProps } from './textarea/index.mjs';
@@ -724,10 +724,22 @@ interface HostModalPageProps<P> {
724
724
  * 渲染函数收到 `close`,用于绘制自己的关闭按钮。
725
725
  *
726
726
  * 只传本属性不会让宿主去掉标题栏 —— 那由发起端的 `headless` 决定。
727
- * 两处不匹配的后果:发起端开了而这里没传 → 弹窗没有任何关闭入口(只能点遮罩);
727
+ * 两处不匹配的后果:发起端开了而这里没传 → 由内置关闭按钮兜住出口(见 `closable`);
728
728
  * 这里传了而发起端没开 → 宿主标题栏与自绘头部上下叠两层。
729
729
  */
730
730
  header?: (close: (result?: unknown) => void) => React__default.ReactNode;
731
+ /**
732
+ * 是否渲染内置关闭按钮(面板右上角绝对定位)。
733
+ *
734
+ * 缺省按「宿主有没有提供关闭入口」自动判定,无需业务传值:
735
+ * - 发起端开了 `headless`:宿主不画标题栏与关闭按钮,本组件补上内置按钮,
736
+ * 省去业务侧重复实现(设计稿常把关闭按钮画在内容区右上角,并不需要整个自绘头部)
737
+ * - 发起端未开 `headless`:宿主标题栏自带关闭按钮,不再叠加
738
+ * - 传了 `header`:自绘头部通常已含关闭入口,同样不叠加
739
+ *
740
+ * 显式传值可覆盖以上判定。
741
+ */
742
+ closable?: boolean;
731
743
  /** 附加到容器上的类名,用于控制内边距等业务样式 */
732
744
  className?: string;
733
745
  }
@@ -743,7 +755,7 @@ interface HostModalPageProps<P> {
743
755
  * );
744
756
  * }
745
757
  */
746
- declare function HostModalPage<P = unknown>({ children, fallback, ready, header, className, }: HostModalPageProps<P>): react_jsx_runtime.JSX.Element | null;
758
+ declare function HostModalPage<P = unknown>({ children, fallback, ready, header, closable, className, }: HostModalPageProps<P>): react_jsx_runtime.JSX.Element | null;
747
759
  declare namespace HostModalPage {
748
760
  var displayName: string;
749
761
  }
@@ -1571,6 +1583,16 @@ type EmptyCardStatus = "loading" | "empty" | "error";
1571
1583
  type EmptyCardVariant = "block" | "inline";
1572
1584
  /** 上下留白档位 */
1573
1585
  type EmptyCardSpacing = "none" | "normal" | "loose";
1586
+ /**
1587
+ * 水平对齐。
1588
+ * - center: 居中,区块级/页面级占位的默认形态
1589
+ * - start: 左对齐,用于列表内嵌占位 —— 与上方列表项同一阅读起点,
1590
+ * 居中会让一行小字悬在空白正中,与列表的阅读动线脱节
1591
+ *
1592
+ * 只负责对齐,不含缩进:对齐基准(列表项文字 / 分组标题)由所在容器决定,
1593
+ * 组件无从得知,需要缩进时由消费方在外层补 padding。
1594
+ */
1595
+ type EmptyCardAlign = "center" | "start";
1574
1596
  interface EmptyCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "onClick" | "size"> {
1575
1597
  status: EmptyCardStatus;
1576
1598
  /** 描述文案。组件不内置文案,由消费方传入 */
@@ -1586,6 +1608,8 @@ interface EmptyCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"
1586
1608
  size?: EmptySize;
1587
1609
  variant?: EmptyCardVariant;
1588
1610
  spacing?: EmptyCardSpacing;
1611
+ /** 水平对齐,默认 "center" */
1612
+ align?: EmptyCardAlign;
1589
1613
  /**
1590
1614
  * 重试回调。仅 status="error" 时生效。
1591
1615
  * 传入后整体渲染为可点击按钮:带浅色底 + hover 反馈,
@@ -1857,6 +1881,14 @@ interface SidebarHeaderProps extends HTMLAttributes<HTMLDivElement> {
1857
1881
  className?: string;
1858
1882
  style?: CSSProperties;
1859
1883
  }
1884
+ interface SidebarStickyHeaderProps extends HTMLAttributes<HTMLDivElement> {
1885
+ /** 占满剩余宽度的主内容 */
1886
+ children?: ReactNode;
1887
+ /** 固定在右侧、不参与主内容压缩的操作区 */
1888
+ actions?: ReactNode;
1889
+ className?: string;
1890
+ style?: CSSProperties;
1891
+ }
1860
1892
  interface SidebarTabItem {
1861
1893
  key: string;
1862
1894
  label: ReactNode;
@@ -1890,11 +1922,14 @@ interface SidebarCollapsibleNavItemChild {
1890
1922
  disabled?: boolean;
1891
1923
  onClick?: () => void;
1892
1924
  }
1925
+ type SidebarCaretTone = "muted" | "default";
1893
1926
  interface SidebarCollapsibleNavItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
1894
1927
  icon?: ReactNode;
1895
1928
  label: ReactNode;
1896
1929
  /** 头部高亮态。内部会与子项 active 做互斥:任一子项 active 时头部不高亮 */
1897
1930
  active?: boolean;
1931
+ /** 箭头视觉层级,default 保留语义色的完整不透明度 */
1932
+ caretTone?: SidebarCaretTone;
1898
1933
  /** 受控展开态 */
1899
1934
  open?: boolean;
1900
1935
  /** 非受控初始展开态,open 传入时忽略 */
@@ -2161,6 +2196,13 @@ declare const SidebarRoot: React__default.ForwardRefExoticComponent<SidebarRootP
2161
2196
  */
2162
2197
  declare const SidebarHeader: React__default.ForwardRefExoticComponent<SidebarHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
2163
2198
 
2199
+ /**
2200
+ * Sidebar.StickyHeader — 吸顶内容与右侧操作区的通用布局。
2201
+ *
2202
+ * 吸顶层必须作为滚动容器的直接子元素,才能相对该容器生效。
2203
+ */
2204
+ declare const SidebarStickyHeader: React__default.ForwardRefExoticComponent<SidebarStickyHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
2205
+
2164
2206
  /**
2165
2207
  * Sidebar.TabBar — 侧边栏顶部分段页签
2166
2208
  *
@@ -2426,6 +2468,7 @@ declare function formatFileSize(bytes: number): string;
2426
2468
  declare const Sidebar: {
2427
2469
  Root: React$1.ForwardRefExoticComponent<SidebarRootProps & React$1.RefAttributes<HTMLDivElement>>;
2428
2470
  Header: React$1.ForwardRefExoticComponent<SidebarHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
2471
+ StickyHeader: React$1.ForwardRefExoticComponent<SidebarStickyHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
2429
2472
  TabBar: React$1.ForwardRefExoticComponent<SidebarTabBarProps & React$1.RefAttributes<HTMLDivElement>>;
2430
2473
  NavItem: React$1.ForwardRefExoticComponent<SidebarNavItemProps & React$1.RefAttributes<HTMLButtonElement>>;
2431
2474
  CollapsibleNavItem: React$1.ForwardRefExoticComponent<SidebarCollapsibleNavItemProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -3436,4 +3479,4 @@ declare const Carousel: CarouselComponent;
3436
3479
  */
3437
3480
  declare function cn(...inputs: ClassValue[]): string;
3438
3481
 
3439
- export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, Pagination, type PaginationProps, type PaginationVariant, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, Tag, type TagPresetColor, type TagProps, type TagShape, type TagSize, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, useComponentConfig, useComponentLocale, useLocale, useSite, zhCN };
3482
+ export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardAlign, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, Pagination, type PaginationProps, type PaginationVariant, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, type SidebarCaretTone, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarStickyHeader, type SidebarStickyHeaderProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, Tag, type TagPresetColor, type TagProps, type TagShape, type TagSize, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, useComponentConfig, useComponentLocale, useLocale, useSite, zhCN };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { B as ButtonProps } from './index-7pb5YOcq.js';
2
- export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-7pb5YOcq.js';
1
+ import { B as ButtonProps } from './index-89atTLPD.js';
2
+ export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-89atTLPD.js';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { ReactNode, CSSProperties, HTMLAttributes, MouseEvent, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
5
5
  import { TooltipProps } from './tooltip/index.js';
6
6
  export { Tooltip, TooltipPlacement } from './tooltip/index.js';
7
7
  export { TabItem, Tabs, TabsOverflow, TabsProps, TabsScrollOptions, TabsSize, TabsVariant } from './tabs/index.js';
8
8
  import { PopoverContentProps } from './popover/index.js';
9
- export { Popover, PopoverAnchor, PopoverAnchorProps, PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverContent, PopoverPlacement, PopoverProps, PopoverTrigger, PopoverTriggerProps } from './popover/index.js';
9
+ export { Popover, PopoverAnchor, PopoverAnchorProps, PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverContent, PopoverPlacement, PopoverProps, PopoverTrigger, PopoverTriggerAction, PopoverTriggerProps } from './popover/index.js';
10
10
  export { Switch, SwitchProps, SwitchSize } from './switch/index.js';
11
11
  export { Input, InputProps, InputShape, InputSize } from './input/index.js';
12
12
  export { Textarea, TextareaProps } from './textarea/index.js';
@@ -724,10 +724,22 @@ interface HostModalPageProps<P> {
724
724
  * 渲染函数收到 `close`,用于绘制自己的关闭按钮。
725
725
  *
726
726
  * 只传本属性不会让宿主去掉标题栏 —— 那由发起端的 `headless` 决定。
727
- * 两处不匹配的后果:发起端开了而这里没传 → 弹窗没有任何关闭入口(只能点遮罩);
727
+ * 两处不匹配的后果:发起端开了而这里没传 → 由内置关闭按钮兜住出口(见 `closable`);
728
728
  * 这里传了而发起端没开 → 宿主标题栏与自绘头部上下叠两层。
729
729
  */
730
730
  header?: (close: (result?: unknown) => void) => React__default.ReactNode;
731
+ /**
732
+ * 是否渲染内置关闭按钮(面板右上角绝对定位)。
733
+ *
734
+ * 缺省按「宿主有没有提供关闭入口」自动判定,无需业务传值:
735
+ * - 发起端开了 `headless`:宿主不画标题栏与关闭按钮,本组件补上内置按钮,
736
+ * 省去业务侧重复实现(设计稿常把关闭按钮画在内容区右上角,并不需要整个自绘头部)
737
+ * - 发起端未开 `headless`:宿主标题栏自带关闭按钮,不再叠加
738
+ * - 传了 `header`:自绘头部通常已含关闭入口,同样不叠加
739
+ *
740
+ * 显式传值可覆盖以上判定。
741
+ */
742
+ closable?: boolean;
731
743
  /** 附加到容器上的类名,用于控制内边距等业务样式 */
732
744
  className?: string;
733
745
  }
@@ -743,7 +755,7 @@ interface HostModalPageProps<P> {
743
755
  * );
744
756
  * }
745
757
  */
746
- declare function HostModalPage<P = unknown>({ children, fallback, ready, header, className, }: HostModalPageProps<P>): react_jsx_runtime.JSX.Element | null;
758
+ declare function HostModalPage<P = unknown>({ children, fallback, ready, header, closable, className, }: HostModalPageProps<P>): react_jsx_runtime.JSX.Element | null;
747
759
  declare namespace HostModalPage {
748
760
  var displayName: string;
749
761
  }
@@ -1571,6 +1583,16 @@ type EmptyCardStatus = "loading" | "empty" | "error";
1571
1583
  type EmptyCardVariant = "block" | "inline";
1572
1584
  /** 上下留白档位 */
1573
1585
  type EmptyCardSpacing = "none" | "normal" | "loose";
1586
+ /**
1587
+ * 水平对齐。
1588
+ * - center: 居中,区块级/页面级占位的默认形态
1589
+ * - start: 左对齐,用于列表内嵌占位 —— 与上方列表项同一阅读起点,
1590
+ * 居中会让一行小字悬在空白正中,与列表的阅读动线脱节
1591
+ *
1592
+ * 只负责对齐,不含缩进:对齐基准(列表项文字 / 分组标题)由所在容器决定,
1593
+ * 组件无从得知,需要缩进时由消费方在外层补 padding。
1594
+ */
1595
+ type EmptyCardAlign = "center" | "start";
1574
1596
  interface EmptyCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "onClick" | "size"> {
1575
1597
  status: EmptyCardStatus;
1576
1598
  /** 描述文案。组件不内置文案,由消费方传入 */
@@ -1586,6 +1608,8 @@ interface EmptyCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"
1586
1608
  size?: EmptySize;
1587
1609
  variant?: EmptyCardVariant;
1588
1610
  spacing?: EmptyCardSpacing;
1611
+ /** 水平对齐,默认 "center" */
1612
+ align?: EmptyCardAlign;
1589
1613
  /**
1590
1614
  * 重试回调。仅 status="error" 时生效。
1591
1615
  * 传入后整体渲染为可点击按钮:带浅色底 + hover 反馈,
@@ -1857,6 +1881,14 @@ interface SidebarHeaderProps extends HTMLAttributes<HTMLDivElement> {
1857
1881
  className?: string;
1858
1882
  style?: CSSProperties;
1859
1883
  }
1884
+ interface SidebarStickyHeaderProps extends HTMLAttributes<HTMLDivElement> {
1885
+ /** 占满剩余宽度的主内容 */
1886
+ children?: ReactNode;
1887
+ /** 固定在右侧、不参与主内容压缩的操作区 */
1888
+ actions?: ReactNode;
1889
+ className?: string;
1890
+ style?: CSSProperties;
1891
+ }
1860
1892
  interface SidebarTabItem {
1861
1893
  key: string;
1862
1894
  label: ReactNode;
@@ -1890,11 +1922,14 @@ interface SidebarCollapsibleNavItemChild {
1890
1922
  disabled?: boolean;
1891
1923
  onClick?: () => void;
1892
1924
  }
1925
+ type SidebarCaretTone = "muted" | "default";
1893
1926
  interface SidebarCollapsibleNavItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
1894
1927
  icon?: ReactNode;
1895
1928
  label: ReactNode;
1896
1929
  /** 头部高亮态。内部会与子项 active 做互斥:任一子项 active 时头部不高亮 */
1897
1930
  active?: boolean;
1931
+ /** 箭头视觉层级,default 保留语义色的完整不透明度 */
1932
+ caretTone?: SidebarCaretTone;
1898
1933
  /** 受控展开态 */
1899
1934
  open?: boolean;
1900
1935
  /** 非受控初始展开态,open 传入时忽略 */
@@ -2161,6 +2196,13 @@ declare const SidebarRoot: React__default.ForwardRefExoticComponent<SidebarRootP
2161
2196
  */
2162
2197
  declare const SidebarHeader: React__default.ForwardRefExoticComponent<SidebarHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
2163
2198
 
2199
+ /**
2200
+ * Sidebar.StickyHeader — 吸顶内容与右侧操作区的通用布局。
2201
+ *
2202
+ * 吸顶层必须作为滚动容器的直接子元素,才能相对该容器生效。
2203
+ */
2204
+ declare const SidebarStickyHeader: React__default.ForwardRefExoticComponent<SidebarStickyHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
2205
+
2164
2206
  /**
2165
2207
  * Sidebar.TabBar — 侧边栏顶部分段页签
2166
2208
  *
@@ -2426,6 +2468,7 @@ declare function formatFileSize(bytes: number): string;
2426
2468
  declare const Sidebar: {
2427
2469
  Root: React$1.ForwardRefExoticComponent<SidebarRootProps & React$1.RefAttributes<HTMLDivElement>>;
2428
2470
  Header: React$1.ForwardRefExoticComponent<SidebarHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
2471
+ StickyHeader: React$1.ForwardRefExoticComponent<SidebarStickyHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
2429
2472
  TabBar: React$1.ForwardRefExoticComponent<SidebarTabBarProps & React$1.RefAttributes<HTMLDivElement>>;
2430
2473
  NavItem: React$1.ForwardRefExoticComponent<SidebarNavItemProps & React$1.RefAttributes<HTMLButtonElement>>;
2431
2474
  CollapsibleNavItem: React$1.ForwardRefExoticComponent<SidebarCollapsibleNavItemProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -3436,4 +3479,4 @@ declare const Carousel: CarouselComponent;
3436
3479
  */
3437
3480
  declare function cn(...inputs: ClassValue[]): string;
3438
3481
 
3439
- export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, Pagination, type PaginationProps, type PaginationVariant, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, Tag, type TagPresetColor, type TagProps, type TagShape, type TagSize, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, useComponentConfig, useComponentLocale, useLocale, useSite, zhCN };
3482
+ export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, ButtonProps, Carousel, type CarouselApi, type CarouselDotsPlacement, CarouselItem, type CarouselItemProps, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerSize, type ComponentConfig, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfig, type DialogConfirmOptions, type DialogHostModal, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownEllipsisTooltip, DropdownGroup, type DropdownGroupProps, DropdownItem, type DropdownItemData, type DropdownItemProps, DropdownLabel, type DropdownLabelData, type DropdownLabelProps, type DropdownMenuItemData, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorData, type DropdownSeparatorProps, DropdownStatus, type DropdownStatusProps, type DropdownStatusText, type DropdownStatusType, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, EllipsisTooltip, type EllipsisTooltipProps, Empty, EmptyCard, type EmptyCardAlign, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FeedbackAttachment, type FeedbackFileWallItem, type FeedbackHistoryDetail, type FeedbackHistoryItem, type FeedbackReply, type FeedbackSimilarItem, type FeedbackStatus, type FeedbackTabKey, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, HostModalPage, type HostModalPageProps, type HostToastLevel, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, Pagination, type PaginationProps, type PaginationVariant, PopoverContentProps, type PreviewGroupType, type PreviewType, Progress, type ProgressProps, type ProgressStatus, type ProgressType, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, type RadioSize, RangePicker, type RangePickerProps, type RangePickerSize, type RejectReason, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, type SelectDropdownProps, type SelectMode, type SelectOption, type SelectOptionGroup, type SelectProps, type SelectSize, Sidebar, SidebarAuthImage, type SidebarAuthImageProps, type SidebarCaretPlacement, type SidebarCaretTone, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarFeedbackAttachmentRow, type SidebarFeedbackAttachmentRowProps, SidebarFeedbackDetail, type SidebarFeedbackDetailProps, SidebarFeedbackField, type SidebarFeedbackFieldProps, SidebarFeedbackFileWall, type SidebarFeedbackFileWallProps, SidebarFeedbackHistoryItem, type SidebarFeedbackHistoryItemProps, SidebarFeedbackHistoryPanel, type SidebarFeedbackHistoryPanelProps, SidebarFeedbackModal, type SidebarFeedbackModalProps, SidebarFeedbackSimilarItem, type SidebarFeedbackSimilarItemProps, SidebarFeedbackSubmitPanel, type SidebarFeedbackSubmitPanelProps, SidebarFolderNode, type SidebarFolderNodeProps, SidebarFolderSection, type SidebarFolderSectionProps, type SidebarFolderStatus, type SidebarFolderStatusText, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, SidebarFooterUser, type SidebarFooterUserProps, SidebarGroupHeader, type SidebarGroupHeaderProps, SidebarHeader, type SidebarHeaderProps, type SidebarIndicatorType, SidebarListItem, type SidebarListItemProps, SidebarNavItem, type SidebarNavItemProps, SidebarRoot, type SidebarRootProps, SidebarStickyHeader, type SidebarStickyHeaderProps, SidebarTabBar, type SidebarTabBarProps, type SidebarTabItem, SidebarUsageBar, type SidebarUsageBarProps, SidebarUsagePanel, type SidebarUsagePanelProps, SidebarUsagePanelSection, type SidebarUsagePanelSectionProps, type SidebarUsageTone, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderProps, type SliderSize, Spin, type SpinProps, type SpinSize, type StepItem, type StepStatus, Steps, type StepsProps, type StepsSize, type StepsTitlePlacement, Table, type TableColumnType, type TableProps, type TableRowSelection, type TableSize, type TableSorterState, Tag, type TagPresetColor, type TagProps, type TagShape, type TagSize, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, useComponentConfig, useComponentLocale, useLocale, useSite, zhCN };