lingee-ui 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button/index.css +1 -1
- package/dist/chunk-DIBP224Q.mjs +2 -0
- package/dist/chunk-EOVPC2E4.js +2 -0
- package/dist/{chunk-NLYZRYOJ.mjs → chunk-G5VOLG6L.mjs} +1 -1
- package/dist/{chunk-5LB5DYXZ.js → chunk-GUINI25L.js} +1 -1
- package/dist/{chunk-V32QRQMP.js → chunk-IBX6LBGA.js} +1 -1
- package/dist/chunk-KWRU5RWD.mjs +1 -0
- package/dist/chunk-TJMCJSHN.mjs +1 -0
- package/dist/chunk-TRDCCPJD.js +1 -0
- package/dist/index-B0J-mUew.d.mts +318 -0
- package/dist/index-Dmm11UAd.d.ts +318 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +33 -39
- package/dist/index.d.ts +33 -39
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/input/index.js +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/tabs/index.css +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast/index.mjs +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tooltip/index.css +1 -1
- package/dist/tree/index.css +1 -1
- package/dist/tree/index.d.mts +3 -229
- package/dist/tree/index.d.ts +3 -229
- package/dist/tree/index.js +1 -1
- package/dist/tree/index.mjs +1 -1
- package/package.json +1 -1
- package/skill/AGENTS-SNIPPET.md +2 -2
- package/skill/SKILL.md +3 -3
- package/skill/VERSION.json +3 -3
- package/skill/references/components/breadcrumb.md +26 -5
- package/skill/references/components/select.md +34 -4
- package/skill/references/components/tag.md +16 -7
- package/skill/references/components/tree.md +32 -2
- package/skill/references/icons.md +1 -1
- package/skill/references/setup.md +1 -1
- package/skill/references/tokens.md +2 -2
- package/dist/chunk-4QG542GX.js +0 -1
- package/dist/chunk-67CCJI3Y.mjs +0 -1
- package/dist/chunk-ARLTJ7O7.js +0 -2
- package/dist/chunk-IBJZAWUP.mjs +0 -1
- package/dist/chunk-QIGXWGB4.mjs +0 -2
package/dist/index.d.mts
CHANGED
|
@@ -12,10 +12,11 @@ export { Input, InputProps, InputShape, InputSize } from './input/index.mjs';
|
|
|
12
12
|
export { T as Textarea, a as TextareaAutoSizeConfig, b as TextareaProps } from './index-CZhoE8dw.mjs';
|
|
13
13
|
export { ToastConfig, ToastGlobalConfig, ToastType, toast } from './toast/index.mjs';
|
|
14
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
15
|
+
import { T as TagProps } from './index-B0J-mUew.mjs';
|
|
16
|
+
export { a as TagPresetColor, b as TagShape, c as TagSize, d as TagVariant, e as Tree, f as TreeAllowDropOptions, g as TreeCheckInfo, h as TreeDropInfo, i as TreeExpandAction, j as TreeExpandInfo, k as TreeFieldNames, l as TreeIndentGuide, m as TreeNodeAction, n as TreeNodeData, o as TreeNodeExtra, p as TreeNodeExtraRenderContext, q as TreeNodeItemPresentation, r as TreeNodeState, s as TreeNodeTag, t as TreeProps, u as TreeSelectInfo, v as TreeSize } from './index-B0J-mUew.mjs';
|
|
15
17
|
import { L as LgSize } from './index-B5SLxsZP.mjs';
|
|
16
18
|
export { a as LgShape, b as LgVariant } from './index-B5SLxsZP.mjs';
|
|
17
19
|
import { SvgIconProps } from 'lingee-icon';
|
|
18
|
-
export { Tree, TreeAllowDropOptions, TreeCheckInfo, TreeDropInfo, TreeExpandAction, TreeExpandInfo, TreeFieldNames, TreeIndentGuide, TreeNodeData, TreeNodeState, TreeProps, TreeSelectInfo, TreeSize } from './tree/index.mjs';
|
|
19
20
|
import { FormInstance as FormInstance$1, Rule } from 'rc-field-form/es/interface';
|
|
20
21
|
export { Rule } from 'rc-field-form/es/interface';
|
|
21
22
|
import { ClassValue } from 'clsx';
|
|
@@ -27,6 +28,22 @@ import 'class-variance-authority/types';
|
|
|
27
28
|
* - `sm` 小型 —— 13px 文字,默认尖括号分隔
|
|
28
29
|
*/
|
|
29
30
|
type BreadcrumbSize = "sm" | "md";
|
|
31
|
+
/**
|
|
32
|
+
* 宽度不足时的处理策略:
|
|
33
|
+
* - `ellipsis` 收缩省略(默认)—— 首项最先省略、最少保留一个字,其次中间项,最后当前页;
|
|
34
|
+
* `maxItems` 折叠出的省略号始终完整,不参与收缩
|
|
35
|
+
* - `scroll` 横向滚动 —— 全部层级完整展示、不折叠,溢出时两端出现箭头
|
|
36
|
+
*/
|
|
37
|
+
type BreadcrumbOverflow = "ellipsis" | "scroll";
|
|
38
|
+
/** 滚动细节配置,仅 `overflow="scroll"` 下有意义 */
|
|
39
|
+
interface BreadcrumbScrollOptions {
|
|
40
|
+
/** 箭头显示策略:`true` 溢出即显示 / `"hover"` 悬浮或键盘聚焦时显示 / `false` 不显示,默认 `true` */
|
|
41
|
+
arrows?: boolean | "hover";
|
|
42
|
+
/** 点击箭头单次滚动距离(px),默认 200 */
|
|
43
|
+
step?: number;
|
|
44
|
+
/** 是否显示边缘渐隐,默认 `true` */
|
|
45
|
+
fade?: boolean;
|
|
46
|
+
}
|
|
30
47
|
interface BreadcrumbItem {
|
|
31
48
|
/** 唯一标识 */
|
|
32
49
|
key: string;
|
|
@@ -61,13 +78,19 @@ interface BreadcrumbProps {
|
|
|
61
78
|
*
|
|
62
79
|
* 折叠后保留首项与末尾若干项,可见单元总数(含省略号)等于该值。
|
|
63
80
|
* 小于 3 时不折叠 —— 首项、省略号、末项三者缺一,折叠就失去意义。
|
|
81
|
+
*
|
|
82
|
+
* `overflow="scroll"` 下不生效:滚动模式承诺完整展示全部层级。
|
|
64
83
|
*/
|
|
65
84
|
maxItems?: number;
|
|
66
|
-
/** 单项文字最大宽度(px
|
|
85
|
+
/** 单项文字最大宽度(px),超出显示省略号。`overflow="scroll"` 下不生效 */
|
|
67
86
|
itemMaxWidth?: number;
|
|
87
|
+
/** 宽度不足时的处理策略,默认 `ellipsis` */
|
|
88
|
+
overflow?: BreadcrumbOverflow;
|
|
89
|
+
/** 滚动细节配置,仅 `overflow="scroll"` 生效 */
|
|
90
|
+
scrollOptions?: BreadcrumbScrollOptions;
|
|
68
91
|
/** 传入后在最前面显示返回箭头,点击触发 */
|
|
69
92
|
onBack?: () => void;
|
|
70
|
-
/** 自定义内容,传入时忽略 `items` */
|
|
93
|
+
/** 自定义内容,传入时忽略 `items`(`overflow` 同样不生效) */
|
|
71
94
|
children?: ReactNode;
|
|
72
95
|
/** 自定义类名 */
|
|
73
96
|
className?: string;
|
|
@@ -199,6 +222,9 @@ declare const zhCN: {
|
|
|
199
222
|
back: string;
|
|
200
223
|
/** nav 的无障碍标签,屏幕阅读器用于播报导航区域用途 */
|
|
201
224
|
label: string;
|
|
225
|
+
/** overflow="scroll" 两端箭头的提示与无障碍标签 */
|
|
226
|
+
scrollLeft: string;
|
|
227
|
+
scrollRight: string;
|
|
202
228
|
};
|
|
203
229
|
Select: {
|
|
204
230
|
loading: string;
|
|
@@ -386,6 +412,8 @@ declare const enUS: {
|
|
|
386
412
|
more: string;
|
|
387
413
|
back: string;
|
|
388
414
|
label: string;
|
|
415
|
+
scrollLeft: string;
|
|
416
|
+
scrollRight: string;
|
|
389
417
|
};
|
|
390
418
|
Select: {
|
|
391
419
|
loading: string;
|
|
@@ -566,43 +594,9 @@ declare function useComponentLocale<K extends keyof Omit<Locale, "locale">>(comp
|
|
|
566
594
|
*/
|
|
567
595
|
declare function useSite(): LingeeSite | undefined;
|
|
568
596
|
|
|
569
|
-
/** 预设语义色 */
|
|
570
|
-
type TagPresetColor = "primary" | "info" | "success" | "warning" | "danger" | "amber" | "yellow" | "cyan" | "purple";
|
|
571
|
-
/**
|
|
572
|
-
* 视觉变体
|
|
573
|
-
* - tint:纯色浅底,通用标记场景
|
|
574
|
-
* - gradient:渐变浅底,用于提示类徽标(警告 / 建议 / 提示)
|
|
575
|
-
* - glow:渐变底 + 光斑装饰,用于等级类徽标(钻石 / 黄金 / 铂金)
|
|
576
|
-
*/
|
|
577
|
-
type TagVariant = "tint" | "gradient" | "glow";
|
|
578
|
-
/** 标签尺寸 */
|
|
579
|
-
type TagSize = LgSize;
|
|
580
|
-
/** 标签圆角形状(仅 variant="tint" 生效,其余变体圆角由变体规范决定) */
|
|
581
|
-
type TagShape = "pill" | "rounded";
|
|
582
|
-
interface TagProps extends Omit<HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
583
|
-
/** 色彩:预设语义色 或 任意 CSS 色值字符串,默认 "info" */
|
|
584
|
-
color?: TagPresetColor | (string & {});
|
|
585
|
-
/** 视觉变体,默认 "tint" */
|
|
586
|
-
variant?: TagVariant;
|
|
587
|
-
/** 尺寸,默认 "md"(sm: 20px, md: 24px, lg: 32px) */
|
|
588
|
-
size?: TagSize;
|
|
589
|
-
/** 圆角形状,默认 "pill"(pill: 999px, rounded: 8px) */
|
|
590
|
-
shape?: TagShape;
|
|
591
|
-
/** 前缀图标(尺寸由组件统一控制,无需自行设置宽高) */
|
|
592
|
-
icon?: ReactNode;
|
|
593
|
-
/** 自定义背景(覆盖默认背景,支持渐变等任意 CSS background 值) */
|
|
594
|
-
background?: string;
|
|
595
|
-
/** 是否可关闭(显示关闭按钮) */
|
|
596
|
-
closable?: boolean;
|
|
597
|
-
/** 关闭回调 */
|
|
598
|
-
onClose?: (e: MouseEvent<HTMLSpanElement>) => void;
|
|
599
|
-
/** 子内容(文字、图标自由组合) */
|
|
600
|
-
children?: ReactNode;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
597
|
/**
|
|
604
598
|
* Tag 标签组件
|
|
605
|
-
*
|
|
599
|
+
* 支持预设语义色、自定义色值、文字 / 实底 / 描边 / 渐变 / 光斑变体、前缀图标、可关闭等能力
|
|
606
600
|
*/
|
|
607
601
|
declare const Tag: React__default.ForwardRefExoticComponent<TagProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
608
602
|
|
|
@@ -4155,4 +4149,4 @@ declare const Carousel: CarouselComponent;
|
|
|
4155
4149
|
*/
|
|
4156
4150
|
declare function cn(...inputs: ClassValue[]): string;
|
|
4157
4151
|
|
|
4158
|
-
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type BreadcrumbSize, 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, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, 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, type TableStatusText, type TableStatusType, Tag,
|
|
4152
|
+
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbOverflow, type BreadcrumbProps, type BreadcrumbScrollOptions, type BreadcrumbSize, 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, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, 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, type TableStatusText, type TableStatusType, Tag, TagProps, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, type UsePickerStateOptions, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, entityKey as personPickerEntityKey, useComponentConfig, useComponentLocale, useLocale, usePickerState as usePersonPickerState, useSite, zhCN };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,10 +12,11 @@ export { Input, InputProps, InputShape, InputSize } from './input/index.js';
|
|
|
12
12
|
export { T as Textarea, a as TextareaAutoSizeConfig, b as TextareaProps } from './index-CZhoE8dw.js';
|
|
13
13
|
export { ToastConfig, ToastGlobalConfig, ToastType, toast } from './toast/index.js';
|
|
14
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
15
|
+
import { T as TagProps } from './index-Dmm11UAd.js';
|
|
16
|
+
export { a as TagPresetColor, b as TagShape, c as TagSize, d as TagVariant, e as Tree, f as TreeAllowDropOptions, g as TreeCheckInfo, h as TreeDropInfo, i as TreeExpandAction, j as TreeExpandInfo, k as TreeFieldNames, l as TreeIndentGuide, m as TreeNodeAction, n as TreeNodeData, o as TreeNodeExtra, p as TreeNodeExtraRenderContext, q as TreeNodeItemPresentation, r as TreeNodeState, s as TreeNodeTag, t as TreeProps, u as TreeSelectInfo, v as TreeSize } from './index-Dmm11UAd.js';
|
|
15
17
|
import { L as LgSize } from './index-B5SLxsZP.js';
|
|
16
18
|
export { a as LgShape, b as LgVariant } from './index-B5SLxsZP.js';
|
|
17
19
|
import { SvgIconProps } from 'lingee-icon';
|
|
18
|
-
export { Tree, TreeAllowDropOptions, TreeCheckInfo, TreeDropInfo, TreeExpandAction, TreeExpandInfo, TreeFieldNames, TreeIndentGuide, TreeNodeData, TreeNodeState, TreeProps, TreeSelectInfo, TreeSize } from './tree/index.js';
|
|
19
20
|
import { FormInstance as FormInstance$1, Rule } from 'rc-field-form/es/interface';
|
|
20
21
|
export { Rule } from 'rc-field-form/es/interface';
|
|
21
22
|
import { ClassValue } from 'clsx';
|
|
@@ -27,6 +28,22 @@ import 'class-variance-authority/types';
|
|
|
27
28
|
* - `sm` 小型 —— 13px 文字,默认尖括号分隔
|
|
28
29
|
*/
|
|
29
30
|
type BreadcrumbSize = "sm" | "md";
|
|
31
|
+
/**
|
|
32
|
+
* 宽度不足时的处理策略:
|
|
33
|
+
* - `ellipsis` 收缩省略(默认)—— 首项最先省略、最少保留一个字,其次中间项,最后当前页;
|
|
34
|
+
* `maxItems` 折叠出的省略号始终完整,不参与收缩
|
|
35
|
+
* - `scroll` 横向滚动 —— 全部层级完整展示、不折叠,溢出时两端出现箭头
|
|
36
|
+
*/
|
|
37
|
+
type BreadcrumbOverflow = "ellipsis" | "scroll";
|
|
38
|
+
/** 滚动细节配置,仅 `overflow="scroll"` 下有意义 */
|
|
39
|
+
interface BreadcrumbScrollOptions {
|
|
40
|
+
/** 箭头显示策略:`true` 溢出即显示 / `"hover"` 悬浮或键盘聚焦时显示 / `false` 不显示,默认 `true` */
|
|
41
|
+
arrows?: boolean | "hover";
|
|
42
|
+
/** 点击箭头单次滚动距离(px),默认 200 */
|
|
43
|
+
step?: number;
|
|
44
|
+
/** 是否显示边缘渐隐,默认 `true` */
|
|
45
|
+
fade?: boolean;
|
|
46
|
+
}
|
|
30
47
|
interface BreadcrumbItem {
|
|
31
48
|
/** 唯一标识 */
|
|
32
49
|
key: string;
|
|
@@ -61,13 +78,19 @@ interface BreadcrumbProps {
|
|
|
61
78
|
*
|
|
62
79
|
* 折叠后保留首项与末尾若干项,可见单元总数(含省略号)等于该值。
|
|
63
80
|
* 小于 3 时不折叠 —— 首项、省略号、末项三者缺一,折叠就失去意义。
|
|
81
|
+
*
|
|
82
|
+
* `overflow="scroll"` 下不生效:滚动模式承诺完整展示全部层级。
|
|
64
83
|
*/
|
|
65
84
|
maxItems?: number;
|
|
66
|
-
/** 单项文字最大宽度(px
|
|
85
|
+
/** 单项文字最大宽度(px),超出显示省略号。`overflow="scroll"` 下不生效 */
|
|
67
86
|
itemMaxWidth?: number;
|
|
87
|
+
/** 宽度不足时的处理策略,默认 `ellipsis` */
|
|
88
|
+
overflow?: BreadcrumbOverflow;
|
|
89
|
+
/** 滚动细节配置,仅 `overflow="scroll"` 生效 */
|
|
90
|
+
scrollOptions?: BreadcrumbScrollOptions;
|
|
68
91
|
/** 传入后在最前面显示返回箭头,点击触发 */
|
|
69
92
|
onBack?: () => void;
|
|
70
|
-
/** 自定义内容,传入时忽略 `items` */
|
|
93
|
+
/** 自定义内容,传入时忽略 `items`(`overflow` 同样不生效) */
|
|
71
94
|
children?: ReactNode;
|
|
72
95
|
/** 自定义类名 */
|
|
73
96
|
className?: string;
|
|
@@ -199,6 +222,9 @@ declare const zhCN: {
|
|
|
199
222
|
back: string;
|
|
200
223
|
/** nav 的无障碍标签,屏幕阅读器用于播报导航区域用途 */
|
|
201
224
|
label: string;
|
|
225
|
+
/** overflow="scroll" 两端箭头的提示与无障碍标签 */
|
|
226
|
+
scrollLeft: string;
|
|
227
|
+
scrollRight: string;
|
|
202
228
|
};
|
|
203
229
|
Select: {
|
|
204
230
|
loading: string;
|
|
@@ -386,6 +412,8 @@ declare const enUS: {
|
|
|
386
412
|
more: string;
|
|
387
413
|
back: string;
|
|
388
414
|
label: string;
|
|
415
|
+
scrollLeft: string;
|
|
416
|
+
scrollRight: string;
|
|
389
417
|
};
|
|
390
418
|
Select: {
|
|
391
419
|
loading: string;
|
|
@@ -566,43 +594,9 @@ declare function useComponentLocale<K extends keyof Omit<Locale, "locale">>(comp
|
|
|
566
594
|
*/
|
|
567
595
|
declare function useSite(): LingeeSite | undefined;
|
|
568
596
|
|
|
569
|
-
/** 预设语义色 */
|
|
570
|
-
type TagPresetColor = "primary" | "info" | "success" | "warning" | "danger" | "amber" | "yellow" | "cyan" | "purple";
|
|
571
|
-
/**
|
|
572
|
-
* 视觉变体
|
|
573
|
-
* - tint:纯色浅底,通用标记场景
|
|
574
|
-
* - gradient:渐变浅底,用于提示类徽标(警告 / 建议 / 提示)
|
|
575
|
-
* - glow:渐变底 + 光斑装饰,用于等级类徽标(钻石 / 黄金 / 铂金)
|
|
576
|
-
*/
|
|
577
|
-
type TagVariant = "tint" | "gradient" | "glow";
|
|
578
|
-
/** 标签尺寸 */
|
|
579
|
-
type TagSize = LgSize;
|
|
580
|
-
/** 标签圆角形状(仅 variant="tint" 生效,其余变体圆角由变体规范决定) */
|
|
581
|
-
type TagShape = "pill" | "rounded";
|
|
582
|
-
interface TagProps extends Omit<HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
583
|
-
/** 色彩:预设语义色 或 任意 CSS 色值字符串,默认 "info" */
|
|
584
|
-
color?: TagPresetColor | (string & {});
|
|
585
|
-
/** 视觉变体,默认 "tint" */
|
|
586
|
-
variant?: TagVariant;
|
|
587
|
-
/** 尺寸,默认 "md"(sm: 20px, md: 24px, lg: 32px) */
|
|
588
|
-
size?: TagSize;
|
|
589
|
-
/** 圆角形状,默认 "pill"(pill: 999px, rounded: 8px) */
|
|
590
|
-
shape?: TagShape;
|
|
591
|
-
/** 前缀图标(尺寸由组件统一控制,无需自行设置宽高) */
|
|
592
|
-
icon?: ReactNode;
|
|
593
|
-
/** 自定义背景(覆盖默认背景,支持渐变等任意 CSS background 值) */
|
|
594
|
-
background?: string;
|
|
595
|
-
/** 是否可关闭(显示关闭按钮) */
|
|
596
|
-
closable?: boolean;
|
|
597
|
-
/** 关闭回调 */
|
|
598
|
-
onClose?: (e: MouseEvent<HTMLSpanElement>) => void;
|
|
599
|
-
/** 子内容(文字、图标自由组合) */
|
|
600
|
-
children?: ReactNode;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
597
|
/**
|
|
604
598
|
* Tag 标签组件
|
|
605
|
-
*
|
|
599
|
+
* 支持预设语义色、自定义色值、文字 / 实底 / 描边 / 渐变 / 光斑变体、前缀图标、可关闭等能力
|
|
606
600
|
*/
|
|
607
601
|
declare const Tag: React__default.ForwardRefExoticComponent<TagProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
608
602
|
|
|
@@ -4155,4 +4149,4 @@ declare const Carousel: CarouselComponent;
|
|
|
4155
4149
|
*/
|
|
4156
4150
|
declare function cn(...inputs: ClassValue[]): string;
|
|
4157
4151
|
|
|
4158
|
-
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type BreadcrumbSize, 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, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, 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, type TableStatusText, type TableStatusType, Tag,
|
|
4152
|
+
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbOverflow, type BreadcrumbProps, type BreadcrumbScrollOptions, type BreadcrumbSize, 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, InfiniteScroll, type InfiniteScrollProps, type InfiniteScrollTarget, LgSize, LingeeProvider, type LingeeProviderProps, type LingeeSite, type Locale, DEFAULT_TABS as PERSON_PICKER_DEFAULT_TABS, ENTITY_TYPE_ORDER as PERSON_PICKER_TYPE_ORDER, Pagination, type PaginationProps, type PaginationVariant, PersonPicker, PersonPickerPanel, type PersonPickerPanelProps, type PersonPickerProps, type PickerChangeInfo, type PickerEntity, type PickerEntityType, type PickerExtra, type PickerGroup, type PickerMode, type PickerOrgPathItem, type PickerPaneData, type PickerSection, type PickerSelectedCount, type PickerState, type PickerTabChangeContext, type PickerTabKey, 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, type TableStatusText, type TableStatusType, Tag, TagProps, TimePicker, type TimePickerProps, type TimePickerSize, type TimeValue, TooltipProps, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, type UsePickerStateOptions, closeHostModal, cn, enUS, formatFileSize, getHostModalParams, isInHostModal, notifyHostModalReady, entityKey as personPickerEntityKey, useComponentConfig, useComponentLocale, useLocale, usePickerState as usePersonPickerState, useSite, zhCN };
|