lingee-ui 0.0.8 → 0.0.10
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/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/chunk-45W5KD4T.js +2 -0
- package/dist/{chunk-AEPAJEIR.js → chunk-5RKADFB7.js} +1 -1
- package/dist/{chunk-TO3JLUBX.mjs → chunk-HI27RMCM.mjs} +1 -1
- package/dist/{chunk-AP6UHKTU.mjs → chunk-HSJ3C3FP.mjs} +1 -1
- package/dist/chunk-HVFYR7UA.mjs +2 -0
- package/dist/chunk-LBNA6G3N.js +1 -0
- package/dist/chunk-MH2WNTQF.mjs +1 -0
- package/dist/chunk-N524EGAL.mjs +1 -0
- package/dist/chunk-TR5HCUR5.js +1 -0
- package/dist/{chunk-VHOWVMZ3.js → chunk-UXFCTPA5.js} +1 -1
- package/dist/{index-7pb5YOcq.d.mts → index-89atTLPD.d.mts} +2 -2
- package/dist/{index-7pb5YOcq.d.ts → index-89atTLPD.d.ts} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.mts +693 -32
- package/dist/index.d.ts +693 -32
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/input/index.css +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/popover/index.css +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/popover/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/textarea/index.css +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast/index.mjs +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tree/index.css +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/tree/index.mjs +1 -1
- package/package.json +4 -1
- package/skill/AGENTS-SNIPPET.md +60 -23
- package/skill/SKILL.md +34 -23
- package/skill/VERSION.json +4 -4
- package/skill/references/components/carousel.md +93 -0
- package/skill/references/components/dropdown.md +81 -2
- package/skill/references/components/ellipsis-tooltip.md +44 -0
- package/skill/references/components/empty.md +3 -2
- package/skill/references/components/select.md +1 -0
- package/skill/references/components/sidebar.md +14 -4
- package/skill/references/components/upload.md +53 -1
- package/skill/references/icons.md +3 -2
- package/skill/references/setup.md +14 -2
- package/skill/references/tokens.md +56 -21
- package/dist/chunk-3U36GSZF.js +0 -2
- package/dist/chunk-7TZ6IXXG.js +0 -1
- package/dist/chunk-DIXO53WK.mjs +0 -1
- package/dist/chunk-M2SC5LED.js +0 -1
- package/dist/chunk-PKNSR23I.mjs +0 -2
- package/dist/chunk-QBEHOXXU.mjs +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { B as ButtonProps } from './index-
|
|
2
|
-
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-
|
|
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
|
+
import * as React$1 from 'react';
|
|
4
|
+
import React__default, { ReactNode, CSSProperties, HTMLAttributes, MouseEvent, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
|
|
5
|
+
import { TooltipProps } from './tooltip/index.js';
|
|
6
|
+
export { Tooltip, TooltipPlacement } from './tooltip/index.js';
|
|
3
7
|
export { TabItem, Tabs, TabsProps, TabsSize, TabsVariant } from './tabs/index.js';
|
|
4
|
-
export { Tooltip, TooltipPlacement, TooltipProps } from './tooltip/index.js';
|
|
5
8
|
import { PopoverContentProps } from './popover/index.js';
|
|
6
9
|
export { Popover, PopoverAnchor, PopoverAnchorProps, PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverContent, PopoverPlacement, PopoverProps, PopoverTrigger, PopoverTriggerProps } from './popover/index.js';
|
|
7
10
|
export { Switch, SwitchProps, SwitchSize } from './switch/index.js';
|
|
@@ -9,8 +12,6 @@ export { Input, InputProps, InputShape, InputSize } from './input/index.js';
|
|
|
9
12
|
export { Textarea, TextareaProps } from './textarea/index.js';
|
|
10
13
|
export { ToastConfig, ToastGlobalConfig, ToastType, toast } from './toast/index.js';
|
|
11
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
|
-
import * as React$1 from 'react';
|
|
13
|
-
import React__default, { ReactNode, HTMLAttributes, MouseEvent, CSSProperties, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
|
|
14
15
|
import { L as LgSize } from './index-B5SLxsZP.js';
|
|
15
16
|
export { a as LgShape, b as LgVariant } from './index-B5SLxsZP.js';
|
|
16
17
|
import { SvgIconProps } from 'lingee-icon';
|
|
@@ -20,6 +21,55 @@ export { Rule } from 'rc-field-form/es/interface';
|
|
|
20
21
|
import { ClassValue } from 'clsx';
|
|
21
22
|
import 'class-variance-authority/types';
|
|
22
23
|
|
|
24
|
+
interface EllipsisTooltipProps extends Omit<TooltipProps, "children" | "content" | "open" | "onOpenChange" | "container"> {
|
|
25
|
+
/** 提示内容。通常与 children 相同,为空时不弹出 */
|
|
26
|
+
content?: ReactNode;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* 容器标签。默认 span —— 可安全嵌入 button 等仅接受
|
|
30
|
+
* phrasing content 的元素内
|
|
31
|
+
*/
|
|
32
|
+
as?: "span" | "div";
|
|
33
|
+
/**
|
|
34
|
+
* 是否自带单行省略样式,默认 true。
|
|
35
|
+
* 关闭后省略表现由消费方的 className 决定(如多行截断场景)
|
|
36
|
+
*/
|
|
37
|
+
ellipsis?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 触发阈值(0~1)。文本宽度超过 `容器宽度 × threshold` 时弹出,
|
|
40
|
+
* 默认 1 即真正溢出才弹。调小可在接近溢出时提前提示
|
|
41
|
+
*/
|
|
42
|
+
threshold?: number;
|
|
43
|
+
/**
|
|
44
|
+
* 提示内容的最大字符数,超出截断并追加省略号,默认 2000。
|
|
45
|
+
* 超长文本会让提示浮层占据过大空间
|
|
46
|
+
*/
|
|
47
|
+
maxLength?: number;
|
|
48
|
+
/**
|
|
49
|
+
* 祖先容器的 className。传入后提示浮层的最大宽度对齐该祖先宽度,
|
|
50
|
+
* 用于让提示不超出所在卡片/胶囊的视觉边界
|
|
51
|
+
*/
|
|
52
|
+
anchorClassName?: string;
|
|
53
|
+
/**
|
|
54
|
+
* 浮层挂载容器。接收触发节点并返回容器 ——
|
|
55
|
+
* 用于在 overflow 裁剪的滚动容器内就地挂载
|
|
56
|
+
*/
|
|
57
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
58
|
+
className?: string;
|
|
59
|
+
style?: CSSProperties;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* EllipsisTooltip 省略提示
|
|
64
|
+
*
|
|
65
|
+
* 仅在文本真正被截断时才弹出提示 —— 无条件挂 Tooltip 会让未截断的文本
|
|
66
|
+
* 也弹出重复内容,形成干扰。
|
|
67
|
+
*
|
|
68
|
+
* 用受控 open 而非 Tooltip 的 disabled:disabled 时 Radix Root 不渲染,
|
|
69
|
+
* onOpenChange 不触发,就拿不到 hover 这个测量时机。
|
|
70
|
+
*/
|
|
71
|
+
declare const EllipsisTooltip: React__default.ForwardRefExoticComponent<EllipsisTooltipProps & React__default.RefAttributes<HTMLElement>>;
|
|
72
|
+
|
|
23
73
|
/**
|
|
24
74
|
* 中文语言包(默认语言)
|
|
25
75
|
* 按组件名为 key 组织翻译文案
|
|
@@ -34,16 +84,28 @@ declare const zhCN: {
|
|
|
34
84
|
Select: {
|
|
35
85
|
loading: string;
|
|
36
86
|
loadError: string;
|
|
87
|
+
/** 传入 onRetry 时使用:引导语由 Empty.Card 统一追加,此处不含「请重试」 */
|
|
88
|
+
loadFailed: string;
|
|
37
89
|
notFound: string;
|
|
38
90
|
clear: string;
|
|
39
91
|
};
|
|
40
92
|
Dropdown: {
|
|
41
93
|
clear: string;
|
|
94
|
+
loading: string;
|
|
95
|
+
loadError: string;
|
|
96
|
+
empty: string;
|
|
42
97
|
};
|
|
43
98
|
Tabs: {
|
|
44
99
|
scrollLeft: string;
|
|
45
100
|
scrollRight: string;
|
|
46
101
|
};
|
|
102
|
+
Carousel: {
|
|
103
|
+
carousel: string;
|
|
104
|
+
prev: string;
|
|
105
|
+
next: string;
|
|
106
|
+
/** {page} 为页码,从 1 开始 */
|
|
107
|
+
goToPage: string;
|
|
108
|
+
};
|
|
47
109
|
Form: {
|
|
48
110
|
/** {label} 为表单项名称 */
|
|
49
111
|
required: string;
|
|
@@ -119,6 +181,10 @@ declare const zhCN: {
|
|
|
119
181
|
Spin: {
|
|
120
182
|
loading: string;
|
|
121
183
|
};
|
|
184
|
+
Empty: {
|
|
185
|
+
/** 错误态传入 onRetry 后,固定追加在 description 之后的重试引导 */
|
|
186
|
+
retry: string;
|
|
187
|
+
};
|
|
122
188
|
};
|
|
123
189
|
|
|
124
190
|
/** 语言包类型,由 zh-CN 推导结构 */
|
|
@@ -143,16 +209,26 @@ declare const enUS: {
|
|
|
143
209
|
Select: {
|
|
144
210
|
loading: string;
|
|
145
211
|
loadError: string;
|
|
212
|
+
loadFailed: string;
|
|
146
213
|
notFound: string;
|
|
147
214
|
clear: string;
|
|
148
215
|
};
|
|
149
216
|
Dropdown: {
|
|
150
217
|
clear: string;
|
|
218
|
+
loading: string;
|
|
219
|
+
loadError: string;
|
|
220
|
+
empty: string;
|
|
151
221
|
};
|
|
152
222
|
Tabs: {
|
|
153
223
|
scrollLeft: string;
|
|
154
224
|
scrollRight: string;
|
|
155
225
|
};
|
|
226
|
+
Carousel: {
|
|
227
|
+
carousel: string;
|
|
228
|
+
prev: string;
|
|
229
|
+
next: string;
|
|
230
|
+
goToPage: string;
|
|
231
|
+
};
|
|
156
232
|
Form: {
|
|
157
233
|
required: string;
|
|
158
234
|
requiredNoLabel: string;
|
|
@@ -226,6 +302,9 @@ declare const enUS: {
|
|
|
226
302
|
Spin: {
|
|
227
303
|
loading: string;
|
|
228
304
|
};
|
|
305
|
+
Empty: {
|
|
306
|
+
retry: string;
|
|
307
|
+
};
|
|
229
308
|
};
|
|
230
309
|
|
|
231
310
|
/**
|
|
@@ -447,8 +526,14 @@ interface SelectProps<T = string> {
|
|
|
447
526
|
onSearch?: (keyword: string) => void;
|
|
448
527
|
/** 加载中状态(远程搜索时展示 loading) */
|
|
449
528
|
loading?: boolean;
|
|
450
|
-
/**
|
|
529
|
+
/** 加载失败状态(下拉面板展示加载失败缺省) */
|
|
451
530
|
loadError?: boolean;
|
|
531
|
+
/**
|
|
532
|
+
* 加载失败后的重试回调。
|
|
533
|
+
* 传入后 loadError 缺省态可点击,并在文案后追加「重试」;
|
|
534
|
+
* 不传则为纯提示(此时 loadError 文案自带「请重试」引导)
|
|
535
|
+
*/
|
|
536
|
+
onRetry?: () => void;
|
|
452
537
|
/** 禁用 */
|
|
453
538
|
disabled?: boolean;
|
|
454
539
|
/** 错误态 */
|
|
@@ -485,6 +570,20 @@ declare const Select: <T = string>(props: SelectProps<T> & {
|
|
|
485
570
|
ref?: React__default.Ref<HTMLDivElement>;
|
|
486
571
|
}) => React__default.ReactElement | null;
|
|
487
572
|
|
|
573
|
+
/**
|
|
574
|
+
* 菜单项文本的溢出提示开关。
|
|
575
|
+
*
|
|
576
|
+
* 不传时行为与此前完全一致(文本撑开面板,不打点也不弹提示)。
|
|
577
|
+
* 传入后文本带默认最大宽度并单行截断,**仅在真正被截断时**悬浮显示完整内容,
|
|
578
|
+
* 未截断不弹(由 EllipsisTooltip 在 hover 时实时测量决定)。
|
|
579
|
+
*
|
|
580
|
+
* - `true`:取 `label` / `children` 作为提示内容。内容为 JSX 时会整块塞进浮层,
|
|
581
|
+
* 这类场景应显式传 ReactNode 指定纯文本
|
|
582
|
+
* - `ReactNode`:以其作为提示内容
|
|
583
|
+
*
|
|
584
|
+
* 最大宽度默认 240px,可通过 `--lg-dropdown-label-max-width` 覆盖。
|
|
585
|
+
*/
|
|
586
|
+
type DropdownEllipsisTooltip = boolean | ReactNode;
|
|
488
587
|
interface DropdownMenuItemData {
|
|
489
588
|
type?: "item";
|
|
490
589
|
/** 唯一标识 */
|
|
@@ -501,6 +600,8 @@ interface DropdownMenuItemData {
|
|
|
501
600
|
disabled?: boolean;
|
|
502
601
|
/** 选中回调 */
|
|
503
602
|
onSelect?: (event: Event) => void;
|
|
603
|
+
/** 文本溢出时悬浮显示完整内容,详见 DropdownEllipsisTooltip */
|
|
604
|
+
ellipsisTooltip?: DropdownEllipsisTooltip;
|
|
504
605
|
}
|
|
505
606
|
interface DropdownSeparatorData {
|
|
506
607
|
type: "separator";
|
|
@@ -511,6 +612,23 @@ interface DropdownLabelData {
|
|
|
511
612
|
}
|
|
512
613
|
/** items 快捷模式的数据项类型 */
|
|
513
614
|
type DropdownItemData = DropdownMenuItemData | DropdownSeparatorData | DropdownLabelData;
|
|
615
|
+
/** 面板三态。与 Empty.Card 的 status 同名同义 */
|
|
616
|
+
type DropdownStatusType = "loading" | "empty" | "error";
|
|
617
|
+
/** 三态文案覆盖。未提供的键回落到 locale 内置文案 */
|
|
618
|
+
interface DropdownStatusText {
|
|
619
|
+
loading?: ReactNode;
|
|
620
|
+
empty?: ReactNode;
|
|
621
|
+
error?: ReactNode;
|
|
622
|
+
}
|
|
623
|
+
interface DropdownStatusProps {
|
|
624
|
+
status: DropdownStatusType;
|
|
625
|
+
/** 覆盖该状态的默认文案 */
|
|
626
|
+
description?: ReactNode;
|
|
627
|
+
/** 重试回调。仅 status="error" 时生效,传入后占位整体可点击 */
|
|
628
|
+
onRetry?: () => void;
|
|
629
|
+
/** 额外类名 */
|
|
630
|
+
className?: string;
|
|
631
|
+
}
|
|
514
632
|
interface DropdownProps {
|
|
515
633
|
/** 子元素(Trigger + Content),或仅 Trigger 元素(配合 items 快捷模式) */
|
|
516
634
|
children: ReactNode;
|
|
@@ -533,11 +651,22 @@ interface DropdownProps {
|
|
|
533
651
|
contentProps?: Omit<DropdownContentProps, "children">;
|
|
534
652
|
/** 当前选中的 item key 列表,匹配的项会显示勾选图标 */
|
|
535
653
|
selectedKeys?: string[];
|
|
536
|
-
/** 加载中状态,为 true
|
|
654
|
+
/** 加载中状态,为 true 时面板显示加载占位 */
|
|
537
655
|
loading?: boolean;
|
|
538
|
-
/**
|
|
656
|
+
/**
|
|
657
|
+
* 加载失败状态,为 true 时面板显示失败占位。
|
|
658
|
+
* 优先级低于 loading(重试期间应展示加载中而非上一次的失败)
|
|
659
|
+
*/
|
|
660
|
+
loadError?: boolean;
|
|
661
|
+
/** 加载失败时的重试回调,传入后失败占位整体可点击 */
|
|
662
|
+
onRetry?: () => void;
|
|
663
|
+
/** 覆盖三态占位的默认文案,未传的键走 locale 内置文案 */
|
|
664
|
+
statusText?: DropdownStatusText;
|
|
665
|
+
/** 自定义加载中渲染内容,覆盖默认占位 */
|
|
539
666
|
loadingContent?: ReactNode;
|
|
540
|
-
/**
|
|
667
|
+
/** 自定义失败渲染内容,覆盖默认占位 */
|
|
668
|
+
errorContent?: ReactNode;
|
|
669
|
+
/** 自定义空态渲染内容(items 为空数组且非 loading / loadError 时显示) */
|
|
541
670
|
emptyContent?: ReactNode;
|
|
542
671
|
/**
|
|
543
672
|
* 自定义面板渲染,参数 menu 为默认渲染的菜单项列表
|
|
@@ -596,6 +725,8 @@ interface DropdownItemProps {
|
|
|
596
725
|
selected?: boolean;
|
|
597
726
|
/** 选中回调,调用 event.preventDefault() 可阻止面板自动关闭 */
|
|
598
727
|
onSelect?: (event: Event) => void;
|
|
728
|
+
/** 文本溢出时悬浮显示完整内容,详见 DropdownEllipsisTooltip */
|
|
729
|
+
ellipsisTooltip?: DropdownEllipsisTooltip;
|
|
599
730
|
}
|
|
600
731
|
interface DropdownCheckboxItemProps {
|
|
601
732
|
/** 菜单项内容 */
|
|
@@ -610,6 +741,8 @@ interface DropdownCheckboxItemProps {
|
|
|
610
741
|
icon?: ReactNode;
|
|
611
742
|
/** 选中状态变化回调 */
|
|
612
743
|
onCheckedChange?: (checked: boolean) => void;
|
|
744
|
+
/** 文本溢出时悬浮显示完整内容,详见 DropdownEllipsisTooltip */
|
|
745
|
+
ellipsisTooltip?: DropdownEllipsisTooltip;
|
|
613
746
|
}
|
|
614
747
|
interface DropdownRadioGroupProps {
|
|
615
748
|
/** 子元素(DropdownRadioItem) */
|
|
@@ -630,6 +763,8 @@ interface DropdownRadioItemProps {
|
|
|
630
763
|
disabled?: boolean;
|
|
631
764
|
/** 前置图标 */
|
|
632
765
|
icon?: ReactNode;
|
|
766
|
+
/** 文本溢出时悬浮显示完整内容,详见 DropdownEllipsisTooltip */
|
|
767
|
+
ellipsisTooltip?: DropdownEllipsisTooltip;
|
|
633
768
|
}
|
|
634
769
|
interface DropdownLabelProps {
|
|
635
770
|
/** 标题内容 */
|
|
@@ -664,10 +799,25 @@ interface DropdownSubTriggerProps {
|
|
|
664
799
|
disabled?: boolean;
|
|
665
800
|
/** 前置图标 */
|
|
666
801
|
icon?: ReactNode;
|
|
802
|
+
/**
|
|
803
|
+
* 鼠标进入回调,在组件内部展开子菜单的逻辑之后执行。
|
|
804
|
+
* 用于「展开时才拉取数据」这类懒加载场景
|
|
805
|
+
*/
|
|
806
|
+
onMouseEnter?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
807
|
+
/** 文本溢出时悬浮显示完整内容,详见 DropdownEllipsisTooltip */
|
|
808
|
+
ellipsisTooltip?: DropdownEllipsisTooltip;
|
|
667
809
|
}
|
|
668
810
|
interface DropdownSubContentProps extends Pick<PopoverContentProps, "side" | "align" | "sideOffset" | "alignOffset" | "className" | "collisionPadding" | "container"> {
|
|
669
811
|
/** 子菜单面板内容 */
|
|
670
812
|
children: ReactNode;
|
|
813
|
+
/**
|
|
814
|
+
* 面板自定义样式
|
|
815
|
+
* - maxHeight: 面板高度上限,超出时内置 ScrollArea 滚动。
|
|
816
|
+
* 不传时仅以视口可用空间为界(子菜单承载的内容形态差异大,
|
|
817
|
+
* 统一给固定上限会截断设计高度更大的自定义面板)
|
|
818
|
+
* - width / minWidth 等其它 CSS 属性均可使用
|
|
819
|
+
*/
|
|
820
|
+
style?: CSSProperties;
|
|
671
821
|
}
|
|
672
822
|
interface DropdownButtonProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
673
823
|
/** 按钮文本内容 */
|
|
@@ -708,7 +858,7 @@ interface DropdownButtonProps extends Omit<React__default.ButtonHTMLAttributes<H
|
|
|
708
858
|
|
|
709
859
|
declare const DropdownButton: React__default.ForwardRefExoticComponent<DropdownButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
710
860
|
|
|
711
|
-
declare function Dropdown({ children, open, defaultOpen, onOpenChange, modal, disabled, items, contentProps, selectedKeys, loading, loadingContent, emptyContent, dropdownRender, header, footer, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
861
|
+
declare function Dropdown({ children, open, defaultOpen, onOpenChange, modal, disabled, items, contentProps, selectedKeys, loading, loadError, onRetry, statusText, loadingContent, errorContent, emptyContent, dropdownRender, header, footer, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
712
862
|
declare namespace Dropdown {
|
|
713
863
|
var displayName: string;
|
|
714
864
|
}
|
|
@@ -729,6 +879,21 @@ declare function DropdownSeparator({ className }: DropdownSeparatorProps): react
|
|
|
729
879
|
declare namespace DropdownSeparator {
|
|
730
880
|
var displayName: string;
|
|
731
881
|
}
|
|
882
|
+
/**
|
|
883
|
+
* 面板内的加载 / 空 / 失败占位。
|
|
884
|
+
*
|
|
885
|
+
* 复用 Empty.Card 的默认块级形态(variant="block" + spacing="normal"):
|
|
886
|
+
* 三态共用同一 min-height,面板在「加载中 → 有数据 / 空 / 失败」之间
|
|
887
|
+
* 切换时高度不变。不要压 spacing —— 去掉留白后图标与文字紧贴,
|
|
888
|
+
* 看起来会像行内轻量提示而非块级占位。
|
|
889
|
+
*
|
|
890
|
+
* 文案不内置在 Empty.Card 层,改由此处从 locale 取默认值,
|
|
891
|
+
* 消费方通过 description 覆盖,这样多语言无需每个调用点重复传参。
|
|
892
|
+
*/
|
|
893
|
+
declare function DropdownStatus({ status, description, onRetry, className }: DropdownStatusProps): react_jsx_runtime.JSX.Element;
|
|
894
|
+
declare namespace DropdownStatus {
|
|
895
|
+
var displayName: string;
|
|
896
|
+
}
|
|
732
897
|
declare function DropdownGroup({ children }: DropdownGroupProps): react_jsx_runtime.JSX.Element;
|
|
733
898
|
declare namespace DropdownGroup {
|
|
734
899
|
var displayName: string;
|
|
@@ -1109,22 +1274,33 @@ interface EmptyProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
|
1109
1274
|
*/
|
|
1110
1275
|
type EmptyCardStatus = "loading" | "empty" | "error";
|
|
1111
1276
|
/**
|
|
1112
|
-
*
|
|
1113
|
-
* - block:
|
|
1114
|
-
* - inline:
|
|
1277
|
+
* 密度形态。仅影响留白,图标与文字尺寸由 size 决定。
|
|
1278
|
+
* - block: 区块级占位,留白按 spacing 档位给足
|
|
1279
|
+
* - inline: 行内轻量提示(如「加载更多」),上下留白收紧、左右补 12px
|
|
1115
1280
|
*/
|
|
1116
1281
|
type EmptyCardVariant = "block" | "inline";
|
|
1117
1282
|
/** 上下留白档位 */
|
|
1118
1283
|
type EmptyCardSpacing = "none" | "normal" | "loose";
|
|
1119
|
-
interface EmptyCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "onClick"> {
|
|
1284
|
+
interface EmptyCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "onClick" | "size"> {
|
|
1120
1285
|
status: EmptyCardStatus;
|
|
1121
1286
|
/** 描述文案。组件不内置文案,由消费方传入 */
|
|
1122
1287
|
description: ReactNode;
|
|
1123
1288
|
/** 覆盖默认图标;传 null 则不渲染图标 */
|
|
1124
1289
|
icon?: ReactNode | null;
|
|
1290
|
+
/**
|
|
1291
|
+
* 尺寸,默认 "sm"。语义与 Empty 的 size 一致,内部直接透传:
|
|
1292
|
+
* - sm: 图标 16px + 文字 12px,横向排列(占位场景默认值)
|
|
1293
|
+
* - md: 图标 24px + 文字 14px,纵向排列
|
|
1294
|
+
* - lg: 图标 56px + 文字 16px,纵向排列
|
|
1295
|
+
*/
|
|
1296
|
+
size?: EmptySize;
|
|
1125
1297
|
variant?: EmptyCardVariant;
|
|
1126
1298
|
spacing?: EmptyCardSpacing;
|
|
1127
|
-
/**
|
|
1299
|
+
/**
|
|
1300
|
+
* 重试回调。仅 status="error" 时生效。
|
|
1301
|
+
* 传入后整体渲染为可点击按钮:带浅色底 + hover 反馈,
|
|
1302
|
+
* 并在 description 之后自动追加主题色「重试」(文案取自 locale,无需消费方拼接)
|
|
1303
|
+
*/
|
|
1128
1304
|
onRetry?: () => void;
|
|
1129
1305
|
className?: string;
|
|
1130
1306
|
style?: CSSProperties;
|
|
@@ -1133,12 +1309,11 @@ interface EmptyCardProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"
|
|
|
1133
1309
|
/**
|
|
1134
1310
|
* Empty.Card — 等高三态占位
|
|
1135
1311
|
*
|
|
1136
|
-
* 统一「加载中 / 加载结束空 /
|
|
1137
|
-
*
|
|
1138
|
-
* 避免列表或卡片区域跳动。
|
|
1312
|
+
* 统一「加载中 / 加载结束空 / 加载结束失败」三态:同一 size + spacing 档位下
|
|
1313
|
+
* 三态 min-height 一致,状态切换时容器高度不变,避免列表或卡片区域跳动。
|
|
1139
1314
|
*
|
|
1140
|
-
*
|
|
1141
|
-
*
|
|
1315
|
+
* 图标与文案的排版直接复用 Empty(size 透传),本组件只额外负责三件事:
|
|
1316
|
+
* 等高约束、重试交互、状态无障碍播报。
|
|
1142
1317
|
*/
|
|
1143
1318
|
declare const EmptyCard: React__default.ForwardRefExoticComponent<EmptyCardProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1144
1319
|
|
|
@@ -1148,10 +1323,230 @@ declare const EmptyCard: React__default.ForwardRefExoticComponent<EmptyCardProps
|
|
|
1148
1323
|
* 用 Object.assign 而非对象字面量挂载子组件:
|
|
1149
1324
|
* 保留 EmptyRoot 的 forwardRef 类型,使 <Empty ref={...} /> 仍可直接使用。
|
|
1150
1325
|
*/
|
|
1151
|
-
declare const Empty:
|
|
1152
|
-
Card:
|
|
1326
|
+
declare const Empty: React$1.ForwardRefExoticComponent<EmptyProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
1327
|
+
Card: React$1.ForwardRefExoticComponent<EmptyCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1153
1328
|
};
|
|
1154
1329
|
|
|
1330
|
+
/** 附件/截图元信息 */
|
|
1331
|
+
interface FeedbackAttachment {
|
|
1332
|
+
name: string;
|
|
1333
|
+
/** 文件大小(字节) */
|
|
1334
|
+
size?: number;
|
|
1335
|
+
/** 访问 URL(图片用于预览,附件用于下载) */
|
|
1336
|
+
url?: string;
|
|
1337
|
+
/** 是否图片:图片走缩略图预览,其余走附件卡片 */
|
|
1338
|
+
isImage?: boolean;
|
|
1339
|
+
/** MIME 或扩展名,用于取附件图标 */
|
|
1340
|
+
fileType?: string;
|
|
1341
|
+
}
|
|
1342
|
+
/** 反馈处理状态 */
|
|
1343
|
+
type FeedbackStatus = "pending" | "replied";
|
|
1344
|
+
/** 历史列表项 */
|
|
1345
|
+
interface FeedbackHistoryItem {
|
|
1346
|
+
id: string;
|
|
1347
|
+
title: string;
|
|
1348
|
+
status: FeedbackStatus;
|
|
1349
|
+
/**
|
|
1350
|
+
* 回复已读态。false = 有未读回复(画红点);true = 已读;
|
|
1351
|
+
* null/undefined = 未回复或后端未上线 —— 三态必须区分,
|
|
1352
|
+
* 否则未回复的工单会全部亮红点
|
|
1353
|
+
*/
|
|
1354
|
+
replyRead?: boolean | null;
|
|
1355
|
+
}
|
|
1356
|
+
/** 官方回复 */
|
|
1357
|
+
interface FeedbackReply {
|
|
1358
|
+
replyContent?: string;
|
|
1359
|
+
attachments?: FeedbackAttachment[];
|
|
1360
|
+
}
|
|
1361
|
+
/** 相似问题 */
|
|
1362
|
+
interface FeedbackSimilarItem {
|
|
1363
|
+
id: string;
|
|
1364
|
+
title: string;
|
|
1365
|
+
description?: string;
|
|
1366
|
+
voteCount: number;
|
|
1367
|
+
voted?: boolean;
|
|
1368
|
+
attachments?: FeedbackAttachment[];
|
|
1369
|
+
}
|
|
1370
|
+
/** 历史详情 */
|
|
1371
|
+
interface FeedbackHistoryDetail {
|
|
1372
|
+
id: string;
|
|
1373
|
+
description: string;
|
|
1374
|
+
images?: FeedbackAttachment[];
|
|
1375
|
+
attachments?: FeedbackAttachment[];
|
|
1376
|
+
/** 是否允许读取当前对话信息,为真时展示告知卡片 */
|
|
1377
|
+
allowSessionView?: boolean;
|
|
1378
|
+
reply?: FeedbackReply;
|
|
1379
|
+
/** 详情响应携带的是查看前的旧值,据此高亮「新回复」 */
|
|
1380
|
+
replyRead?: boolean | null;
|
|
1381
|
+
similar?: FeedbackSimilarItem[];
|
|
1382
|
+
}
|
|
1383
|
+
type FeedbackTabKey = "submit" | "history";
|
|
1384
|
+
interface SidebarFeedbackModalProps {
|
|
1385
|
+
open: boolean;
|
|
1386
|
+
/** 关闭请求。遮罩点击已禁用,仅右上角关闭按钮与取消触发 */
|
|
1387
|
+
onClose: () => void;
|
|
1388
|
+
activeTab: FeedbackTabKey;
|
|
1389
|
+
onTabChange: (key: FeedbackTabKey) => void;
|
|
1390
|
+
/** 提交页签文案 */
|
|
1391
|
+
submitTabLabel: ReactNode;
|
|
1392
|
+
/** 历史页签文案 */
|
|
1393
|
+
historyTabLabel: ReactNode;
|
|
1394
|
+
/** 历史页签是否显示未读红点 */
|
|
1395
|
+
historyUnread?: boolean;
|
|
1396
|
+
/** 关闭按钮无障碍标签 */
|
|
1397
|
+
closeLabel?: string;
|
|
1398
|
+
/** 提交面板内容 */
|
|
1399
|
+
submitPanel?: ReactNode;
|
|
1400
|
+
/**
|
|
1401
|
+
* 历史面板内容。
|
|
1402
|
+
* 首次切到历史页签后才挂载,避免无谓请求 —— 由消费方控制传入时机
|
|
1403
|
+
*/
|
|
1404
|
+
historyPanel?: ReactNode;
|
|
1405
|
+
className?: string;
|
|
1406
|
+
style?: CSSProperties;
|
|
1407
|
+
}
|
|
1408
|
+
interface SidebarFeedbackSubmitPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1409
|
+
/** 顶部提示条(会话内打开时的说明),传 null 不渲染 */
|
|
1410
|
+
notice?: ReactNode;
|
|
1411
|
+
/** 表单区内容:由 FeedbackField 组合 */
|
|
1412
|
+
children?: ReactNode;
|
|
1413
|
+
/** 底部按钮区 */
|
|
1414
|
+
footer?: ReactNode;
|
|
1415
|
+
/** 拖拽悬停态,驱动上传区高亮 */
|
|
1416
|
+
dragOver?: boolean;
|
|
1417
|
+
className?: string;
|
|
1418
|
+
style?: CSSProperties;
|
|
1419
|
+
}
|
|
1420
|
+
/** 表单字段容器 */
|
|
1421
|
+
interface SidebarFeedbackFieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
1422
|
+
label?: ReactNode;
|
|
1423
|
+
/** 显示必填星号 */
|
|
1424
|
+
required?: boolean;
|
|
1425
|
+
/** 标签行右侧插槽(如横向翻页箭头) */
|
|
1426
|
+
labelExtra?: ReactNode;
|
|
1427
|
+
/** 字段下方灰色提示 */
|
|
1428
|
+
hint?: ReactNode;
|
|
1429
|
+
children?: ReactNode;
|
|
1430
|
+
className?: string;
|
|
1431
|
+
style?: CSSProperties;
|
|
1432
|
+
}
|
|
1433
|
+
/** 文件墙条目 */
|
|
1434
|
+
interface FeedbackFileWallItem {
|
|
1435
|
+
uid: string;
|
|
1436
|
+
/** 图片走缩略图、附件走图标卡片 */
|
|
1437
|
+
kind: "image" | "attachment";
|
|
1438
|
+
name: string;
|
|
1439
|
+
size?: number;
|
|
1440
|
+
/** 图片预览地址 */
|
|
1441
|
+
url?: string;
|
|
1442
|
+
/** 附件图标地址 */
|
|
1443
|
+
iconUrl?: string;
|
|
1444
|
+
}
|
|
1445
|
+
interface SidebarFeedbackFileWallProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1446
|
+
items: FeedbackFileWallItem[];
|
|
1447
|
+
/** 移除某项 */
|
|
1448
|
+
onRemove?: (uid: string) => void;
|
|
1449
|
+
/** 点击图片,用于外部预览 */
|
|
1450
|
+
onPreview?: (uid: string) => void;
|
|
1451
|
+
/** 是否显示「截图中」占位卡 */
|
|
1452
|
+
capturing?: boolean;
|
|
1453
|
+
/** 截图中文案 */
|
|
1454
|
+
capturingText?: ReactNode;
|
|
1455
|
+
/** 尾部添加区(通常是 Upload 触发器),达到数量上限时消费方不传 */
|
|
1456
|
+
addSlot?: ReactNode;
|
|
1457
|
+
/** 大小格式化,默认按 B/KB/MB 输出 */
|
|
1458
|
+
formatSize?: (bytes: number) => string;
|
|
1459
|
+
className?: string;
|
|
1460
|
+
style?: CSSProperties;
|
|
1461
|
+
}
|
|
1462
|
+
interface SidebarFeedbackHistoryPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1463
|
+
/** 左栏顶部工具区(搜索框) */
|
|
1464
|
+
toolbar?: ReactNode;
|
|
1465
|
+
/** 左栏列表内容 */
|
|
1466
|
+
list?: ReactNode;
|
|
1467
|
+
/** 右栏详情内容 */
|
|
1468
|
+
detail?: ReactNode;
|
|
1469
|
+
/** 列表滚动容器 ref,供无限滚动挂载 */
|
|
1470
|
+
listRef?: React.Ref<HTMLDivElement>;
|
|
1471
|
+
className?: string;
|
|
1472
|
+
style?: CSSProperties;
|
|
1473
|
+
}
|
|
1474
|
+
interface SidebarFeedbackHistoryItemProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onSelect"> {
|
|
1475
|
+
item: FeedbackHistoryItem;
|
|
1476
|
+
selected?: boolean;
|
|
1477
|
+
onSelect?: () => void;
|
|
1478
|
+
/** 状态标签文案,由消费方按 status 提供 */
|
|
1479
|
+
statusLabel: ReactNode;
|
|
1480
|
+
/** 时间/关注数等元信息 */
|
|
1481
|
+
meta?: ReactNode;
|
|
1482
|
+
/** 未读红点无障碍标签 */
|
|
1483
|
+
unreadLabel?: string;
|
|
1484
|
+
className?: string;
|
|
1485
|
+
style?: CSSProperties;
|
|
1486
|
+
}
|
|
1487
|
+
interface SidebarFeedbackDetailProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "title"> {
|
|
1488
|
+
/** 标题(固定为「反馈描述」这类静态文案,由消费方传入) */
|
|
1489
|
+
title: ReactNode;
|
|
1490
|
+
/** 标题下方元信息 */
|
|
1491
|
+
meta?: ReactNode;
|
|
1492
|
+
/** 反馈描述正文 */
|
|
1493
|
+
description?: ReactNode;
|
|
1494
|
+
/** 描述下方的附件区,通常是 FeedbackAttachmentRow */
|
|
1495
|
+
attachments?: ReactNode;
|
|
1496
|
+
attachmentsLabel?: ReactNode;
|
|
1497
|
+
/** 「已允许读取对话」告知卡片 */
|
|
1498
|
+
notice?: {
|
|
1499
|
+
title: ReactNode;
|
|
1500
|
+
description: ReactNode;
|
|
1501
|
+
} | null;
|
|
1502
|
+
/** 官方回复区 */
|
|
1503
|
+
reply?: ReactNode;
|
|
1504
|
+
/** 相似问题区 */
|
|
1505
|
+
similar?: ReactNode;
|
|
1506
|
+
className?: string;
|
|
1507
|
+
style?: CSSProperties;
|
|
1508
|
+
}
|
|
1509
|
+
interface SidebarFeedbackAttachmentRowProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1510
|
+
items: FeedbackAttachment[];
|
|
1511
|
+
/** 点击图片:回传本组图片 URL 列表与命中索引,供预览组左右切换 */
|
|
1512
|
+
onPreviewImage?: (urls: string[], index: number) => void;
|
|
1513
|
+
/** 点击附件(下载) */
|
|
1514
|
+
onDownload?: (item: FeedbackAttachment) => void;
|
|
1515
|
+
/** 取附件图标地址 */
|
|
1516
|
+
resolveIcon?: (item: FeedbackAttachment) => string | undefined;
|
|
1517
|
+
formatSize?: (bytes: number) => string;
|
|
1518
|
+
className?: string;
|
|
1519
|
+
style?: CSSProperties;
|
|
1520
|
+
}
|
|
1521
|
+
interface SidebarFeedbackSimilarItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1522
|
+
item: FeedbackSimilarItem;
|
|
1523
|
+
/** 展开态。为空时组件自行维护(默认按是否有描述决定) */
|
|
1524
|
+
expanded?: boolean;
|
|
1525
|
+
onExpandedChange?: (next: boolean) => void;
|
|
1526
|
+
/** 赞同点击。已赞同时组件不再触发 */
|
|
1527
|
+
onVote?: () => void;
|
|
1528
|
+
voteLabel: ReactNode;
|
|
1529
|
+
/** 展开区内的附件区 */
|
|
1530
|
+
attachments?: ReactNode;
|
|
1531
|
+
attachmentsLabel?: ReactNode;
|
|
1532
|
+
className?: string;
|
|
1533
|
+
style?: CSSProperties;
|
|
1534
|
+
}
|
|
1535
|
+
interface SidebarAuthImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, "onClick" | "onLoad" | "src"> {
|
|
1536
|
+
src?: string;
|
|
1537
|
+
/**
|
|
1538
|
+
* 鉴权 token,拼为 `Authorization: Bearer {token}`。
|
|
1539
|
+
* 由消费方注入 —— 组件库不读取任何运行环境
|
|
1540
|
+
*/
|
|
1541
|
+
token?: string;
|
|
1542
|
+
/** 额外请求头,与 token 合并(同名时以此为准) */
|
|
1543
|
+
headers?: Record<string, string>;
|
|
1544
|
+
/** 加载完成,回传 blob URL 供父组件收集用于预览 */
|
|
1545
|
+
onLoaded?: (blobUrl: string) => void;
|
|
1546
|
+
/** 点击图片,回传已加载的 blob URL */
|
|
1547
|
+
onImageClick?: (blobUrl: string) => void;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1155
1550
|
interface SidebarRootProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1156
1551
|
/** 展开宽度(px),默认 280 */
|
|
1157
1552
|
width?: number;
|
|
@@ -1289,7 +1684,7 @@ interface SidebarCollapsibleListItemProps extends Omit<HTMLAttributes<HTMLDivEle
|
|
|
1289
1684
|
className?: string;
|
|
1290
1685
|
style?: CSSProperties;
|
|
1291
1686
|
}
|
|
1292
|
-
interface
|
|
1687
|
+
interface SidebarFooterUserProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
1293
1688
|
/** 头像插槽 */
|
|
1294
1689
|
avatar?: ReactNode;
|
|
1295
1690
|
/** 名称,为空时不渲染身份区 */
|
|
@@ -1298,13 +1693,35 @@ interface SidebarFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1298
1693
|
nameSuffix?: ReactNode;
|
|
1299
1694
|
/** 用户菜单展开态,驱动触发区高亮与箭头旋转 */
|
|
1300
1695
|
menuOpen?: boolean;
|
|
1696
|
+
/**
|
|
1697
|
+
* 是否显示展开箭头。默认 false —— 触发区整体可点,
|
|
1698
|
+
* 箭头属冗余提示。需要显式指示可展开时开启。
|
|
1699
|
+
*
|
|
1700
|
+
* 开启后:常态隐藏,hover 或菜单打开时显现;
|
|
1701
|
+
* 菜单向上弹出,故默认指向上方,展开后转回向下
|
|
1702
|
+
*/
|
|
1703
|
+
showCaret?: boolean;
|
|
1704
|
+
/**
|
|
1705
|
+
* 姓名超长时是否 hover 出全称提示,默认 true。
|
|
1706
|
+
* 仅在真正溢出时弹出,未溢出不干扰
|
|
1707
|
+
*/
|
|
1708
|
+
nameTooltip?: boolean;
|
|
1301
1709
|
/** 点击触发区。回传触发元素的 DOMRect,便于消费方自行定位浮层 */
|
|
1302
1710
|
onTriggerClick?: (rect: DOMRect) => void;
|
|
1303
|
-
/** 右侧动作区插槽 */
|
|
1304
|
-
actions?: ReactNode;
|
|
1305
1711
|
className?: string;
|
|
1306
1712
|
style?: CSSProperties;
|
|
1307
1713
|
}
|
|
1714
|
+
interface SidebarFooterProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">, SidebarFooterUserProps {
|
|
1715
|
+
/** 右侧动作区插槽 */
|
|
1716
|
+
actions?: ReactNode;
|
|
1717
|
+
/**
|
|
1718
|
+
* 自定义左侧内容,传入时忽略 avatar/name 等。
|
|
1719
|
+
*
|
|
1720
|
+
* 需要外挂用户菜单时用它 —— 把 Sidebar.FooterUser 交给 DropdownTrigger
|
|
1721
|
+
* 单独包裹,避免右侧动作按钮被并入菜单触发区
|
|
1722
|
+
*/
|
|
1723
|
+
children?: ReactNode;
|
|
1724
|
+
}
|
|
1308
1725
|
interface SidebarFooterMenuStaticRowProps extends HTMLAttributes<HTMLDivElement> {
|
|
1309
1726
|
/** 行首图标 */
|
|
1310
1727
|
icon?: ReactNode;
|
|
@@ -1447,13 +1864,24 @@ declare const SidebarListItem: React__default.ForwardRefExoticComponent<SidebarL
|
|
|
1447
1864
|
declare const SidebarCollapsibleListItem: React__default.ForwardRefExoticComponent<SidebarCollapsibleListItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1448
1865
|
|
|
1449
1866
|
/**
|
|
1450
|
-
* Sidebar.
|
|
1867
|
+
* Sidebar.FooterUser — 底栏左侧用户区(头像 + 名称 + 后缀徽标 + 展开箭头)
|
|
1451
1868
|
*
|
|
1452
|
-
*
|
|
1453
|
-
*
|
|
1869
|
+
* 单独成件而非塞进 Footer:用户菜单的 DropdownTrigger 必须只包裹这里,
|
|
1870
|
+
* 若包住整个 Footer,右侧动作按钮也会成为触发器的一部分,
|
|
1871
|
+
* 点「反馈」「产物管理」时会连带弹出用户菜单。
|
|
1454
1872
|
*
|
|
1455
|
-
*
|
|
1456
|
-
|
|
1873
|
+
* 用 div + role 而非 button:作为 Dropdown trigger 时嵌套 button 是非法结构。
|
|
1874
|
+
*/
|
|
1875
|
+
declare const SidebarFooterUser: React__default.ForwardRefExoticComponent<SidebarFooterUserProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1876
|
+
/**
|
|
1877
|
+
* Sidebar.Footer — 底部条容器
|
|
1878
|
+
*
|
|
1879
|
+
* 一行左右结构:左侧 FooterUser 占满剩余宽度,右侧动作区靠右贴边。
|
|
1880
|
+
*
|
|
1881
|
+
* 两种用法:
|
|
1882
|
+
* - 传 avatar/name 等:内部自行渲染 FooterUser(无需外挂菜单时最省事)
|
|
1883
|
+
* - 传 children:完全自定义左侧内容,用于把 FooterUser 单独交给
|
|
1884
|
+
* DropdownTrigger 包裹,使动作按钮不被并入菜单触发区
|
|
1457
1885
|
*/
|
|
1458
1886
|
declare const SidebarFooter: React__default.ForwardRefExoticComponent<SidebarFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1459
1887
|
|
|
@@ -1502,6 +1930,99 @@ declare const SidebarUsagePanel: React__default.ForwardRefExoticComponent<Sideba
|
|
|
1502
1930
|
*/
|
|
1503
1931
|
declare const SidebarUsagePanelSection: React__default.ForwardRefExoticComponent<SidebarUsagePanelSectionProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1504
1932
|
|
|
1933
|
+
/**
|
|
1934
|
+
* Sidebar.FeedbackModal — 问题反馈弹窗骨架
|
|
1935
|
+
*
|
|
1936
|
+
* 只负责「弹窗 + 双页签 + 未读红点 + 关闭」这层外壳,
|
|
1937
|
+
* 两个面板内容由消费方注入 —— 取数、提交、截图能力各端差异极大。
|
|
1938
|
+
*
|
|
1939
|
+
* 历史面板建议首次切换后才传入,避免未打开就发请求。
|
|
1940
|
+
*/
|
|
1941
|
+
declare const SidebarFeedbackModal: React__default.ForwardRefExoticComponent<SidebarFeedbackModalProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* Sidebar.FeedbackSubmitPanel — 提交反馈面板
|
|
1945
|
+
*
|
|
1946
|
+
* 内容区滚动、底部按钮固定。拖拽事件由消费方挂在本组件上
|
|
1947
|
+
* (需要访问 dataTransfer 做文件校验,组件库不介入)。
|
|
1948
|
+
*/
|
|
1949
|
+
declare const SidebarFeedbackSubmitPanel: React__default.ForwardRefExoticComponent<SidebarFeedbackSubmitPanelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1950
|
+
/**
|
|
1951
|
+
* Sidebar.FeedbackField — 表单字段容器
|
|
1952
|
+
*
|
|
1953
|
+
* 统一「标签 + 必填星号 + 右侧插槽 + 控件 + 提示」的间距,
|
|
1954
|
+
* 避免每个字段各写一遍 margin。
|
|
1955
|
+
*/
|
|
1956
|
+
declare const SidebarFeedbackField: React__default.ForwardRefExoticComponent<SidebarFeedbackFieldProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* Sidebar.FeedbackFileWall — 横向文件墙
|
|
1960
|
+
*
|
|
1961
|
+
* 图片走缩略图、附件走图标卡片,两者同尺寸同排展示。
|
|
1962
|
+
* 超出宽度时内部横向滚动而非撑破弹窗,翻页箭头由消费方放在
|
|
1963
|
+
* FeedbackField 的 labelExtra 插槽(需要读滚动状态,故不内置)。
|
|
1964
|
+
*
|
|
1965
|
+
* 只负责展示与移除;添加动作以 addSlot 注入(通常是 Upload 触发器),
|
|
1966
|
+
* 因为文件校验与截图能力各端不同。
|
|
1967
|
+
*/
|
|
1968
|
+
declare const SidebarFeedbackFileWall: React__default.ForwardRefExoticComponent<SidebarFeedbackFileWallProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Sidebar.FeedbackHistoryPanel — 历史面板双栏骨架
|
|
1972
|
+
*
|
|
1973
|
+
* 左栏定宽列表、右栏自适应详情,中间竖分割线。
|
|
1974
|
+
* 分页与取数由消费方负责,列表滚动容器通过 listRef 暴露以挂载无限滚动。
|
|
1975
|
+
*/
|
|
1976
|
+
declare const SidebarFeedbackHistoryPanel: React__default.ForwardRefExoticComponent<SidebarFeedbackHistoryPanelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1977
|
+
/**
|
|
1978
|
+
* Sidebar.FeedbackHistoryItem — 历史列表卡片
|
|
1979
|
+
*
|
|
1980
|
+
* 状态标签与未读红点同行,标题与元信息各占一行。
|
|
1981
|
+
* 未读判定由消费方给出(replyRead 三态需业务语义),此处只按数据渲染。
|
|
1982
|
+
*/
|
|
1983
|
+
declare const SidebarFeedbackHistoryItem: React__default.ForwardRefExoticComponent<SidebarFeedbackHistoryItemProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* Sidebar.FeedbackDetail — 反馈详情
|
|
1987
|
+
*
|
|
1988
|
+
* 描述 / 附件 / 授权告知 / 官方回复 / 相似问题五段,
|
|
1989
|
+
* 后两段由消费方按数据决定是否传入,不传即不渲染分割线。
|
|
1990
|
+
*/
|
|
1991
|
+
declare const SidebarFeedbackDetail: React__default.ForwardRefExoticComponent<SidebarFeedbackDetailProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1992
|
+
/**
|
|
1993
|
+
* Sidebar.FeedbackAttachmentRow — 附件行
|
|
1994
|
+
*
|
|
1995
|
+
* 图片渲染缩略图并聚合为一个预览分组(点任意图可左右切换),
|
|
1996
|
+
* 其余渲染为可下载的图标卡片。
|
|
1997
|
+
*/
|
|
1998
|
+
declare const SidebarFeedbackAttachmentRow: React__default.ForwardRefExoticComponent<SidebarFeedbackAttachmentRowProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1999
|
+
/**
|
|
2000
|
+
* Sidebar.FeedbackSimilarItem — 相似问题卡片
|
|
2001
|
+
*
|
|
2002
|
+
* 可折叠 + 赞同。展开态默认按「是否有描述」初始化 ——
|
|
2003
|
+
* 有内容可看时直接展开,避免用户逐个点开。
|
|
2004
|
+
*/
|
|
2005
|
+
declare const SidebarFeedbackSimilarItem: React__default.ForwardRefExoticComponent<SidebarFeedbackSimilarItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Sidebar.AuthImage — 带鉴权的图片
|
|
2009
|
+
*
|
|
2010
|
+
* 用 fetch 携带鉴权头拉取图片再转 blob URL 交给 <img>,
|
|
2011
|
+
* 解决 Electron renderer 中 <img src> 不自动带 token 的问题。
|
|
2012
|
+
*
|
|
2013
|
+
* token 由 props 注入而非组件内读取环境:组件库不持有任何运行环境依赖。
|
|
2014
|
+
* Web 端若靠 cookie 鉴权则无需本组件,直接用 <img> 即可。
|
|
2015
|
+
*/
|
|
2016
|
+
declare const SidebarAuthImage: React__default.ForwardRefExoticComponent<SidebarAuthImageProps & React__default.RefAttributes<HTMLImageElement>>;
|
|
2017
|
+
|
|
2018
|
+
/**
|
|
2019
|
+
* 文件大小格式化。
|
|
2020
|
+
*
|
|
2021
|
+
* 与两端既有实现一致:1KB 以下按字节、1MB 以下按 KB,其余按 MB,
|
|
2022
|
+
* 均保留一位小数。
|
|
2023
|
+
*/
|
|
2024
|
+
declare function formatFileSize(bytes: number): string;
|
|
2025
|
+
|
|
1505
2026
|
/**
|
|
1506
2027
|
* Sidebar 侧边栏
|
|
1507
2028
|
*
|
|
@@ -1531,11 +2052,22 @@ declare const Sidebar: {
|
|
|
1531
2052
|
ListItem: React$1.ForwardRefExoticComponent<SidebarListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1532
2053
|
CollapsibleListItem: React$1.ForwardRefExoticComponent<SidebarCollapsibleListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1533
2054
|
Footer: React$1.ForwardRefExoticComponent<SidebarFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2055
|
+
FooterUser: React$1.ForwardRefExoticComponent<SidebarFooterUserProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1534
2056
|
FooterMenuStaticRow: React$1.ForwardRefExoticComponent<SidebarFooterMenuStaticRowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1535
2057
|
FooterBadge: React$1.ForwardRefExoticComponent<SidebarFooterBadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1536
2058
|
UsageBar: React$1.ForwardRefExoticComponent<SidebarUsageBarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1537
2059
|
UsagePanel: React$1.ForwardRefExoticComponent<SidebarUsagePanelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1538
2060
|
UsagePanelSection: React$1.ForwardRefExoticComponent<SidebarUsagePanelSectionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2061
|
+
FeedbackModal: React$1.ForwardRefExoticComponent<SidebarFeedbackModalProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2062
|
+
FeedbackSubmitPanel: React$1.ForwardRefExoticComponent<SidebarFeedbackSubmitPanelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2063
|
+
FeedbackField: React$1.ForwardRefExoticComponent<SidebarFeedbackFieldProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2064
|
+
FeedbackFileWall: React$1.ForwardRefExoticComponent<SidebarFeedbackFileWallProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2065
|
+
FeedbackHistoryPanel: React$1.ForwardRefExoticComponent<SidebarFeedbackHistoryPanelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2066
|
+
FeedbackHistoryItem: React$1.ForwardRefExoticComponent<SidebarFeedbackHistoryItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2067
|
+
FeedbackDetail: React$1.ForwardRefExoticComponent<SidebarFeedbackDetailProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2068
|
+
FeedbackAttachmentRow: React$1.ForwardRefExoticComponent<SidebarFeedbackAttachmentRowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2069
|
+
FeedbackSimilarItem: React$1.ForwardRefExoticComponent<SidebarFeedbackSimilarItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2070
|
+
AuthImage: React$1.ForwardRefExoticComponent<SidebarAuthImageProps & React$1.RefAttributes<HTMLImageElement>>;
|
|
1539
2071
|
};
|
|
1540
2072
|
|
|
1541
2073
|
/** 主轴方向类型 */
|
|
@@ -2245,6 +2777,10 @@ interface FileItemActions {
|
|
|
2245
2777
|
/** 重新上传 */
|
|
2246
2778
|
retry: () => void;
|
|
2247
2779
|
}
|
|
2780
|
+
/** 上传请求方法 */
|
|
2781
|
+
type UploadMethod = "POST" | "PUT" | "PATCH" | "post" | "put" | "patch";
|
|
2782
|
+
/** beforeUpload 允许的返回值:false 阻止上传,File/Blob 替换待传文件 */
|
|
2783
|
+
type BeforeUploadReturn = boolean | void | File | Blob;
|
|
2248
2784
|
interface UploadProps {
|
|
2249
2785
|
/** 接受的文件 MIME 类型,如 "image/*,.pdf" */
|
|
2250
2786
|
accept?: string;
|
|
@@ -2256,6 +2792,11 @@ interface UploadProps {
|
|
|
2256
2792
|
multiple?: boolean;
|
|
2257
2793
|
/** 是否渲染拖拽上传区域 */
|
|
2258
2794
|
drag?: boolean;
|
|
2795
|
+
/**
|
|
2796
|
+
* 是否选择文件夹。开启后点击选择目录,拖拽时递归遍历子目录,
|
|
2797
|
+
* 并强制按 `accept` 过滤(目录内文件不经过选择器,无法靠原生 accept 拦截)。
|
|
2798
|
+
*/
|
|
2799
|
+
directory?: boolean;
|
|
2259
2800
|
/** 禁用状态 */
|
|
2260
2801
|
disabled?: boolean;
|
|
2261
2802
|
/** 受控文件列表 */
|
|
@@ -2270,6 +2811,28 @@ interface UploadProps {
|
|
|
2270
2811
|
* 由消费方在提交时自行携带。
|
|
2271
2812
|
*/
|
|
2272
2813
|
customRequest?: (options: CustomRequestOptions) => CustomRequestReturn | void;
|
|
2814
|
+
/**
|
|
2815
|
+
* 上传地址。传入即启用内置 XHR 上传(含真实进度事件),
|
|
2816
|
+
* 无需自行实现 `customRequest`。同时传入时 `customRequest` 优先。
|
|
2817
|
+
*/
|
|
2818
|
+
action?: string | ((file: File) => string | PromiseLike<string>);
|
|
2819
|
+
/** 请求方法,默认 POST。仅 `action` 模式生效 */
|
|
2820
|
+
method?: UploadMethod;
|
|
2821
|
+
/** 附加请求头。仅 `action` 模式生效 */
|
|
2822
|
+
headers?: Record<string, string>;
|
|
2823
|
+
/** 附加表单字段,可为函数按文件动态生成。仅 `action` 模式生效 */
|
|
2824
|
+
data?: Record<string, unknown> | ((file: File) => Record<string, unknown>);
|
|
2825
|
+
/** 跨域请求是否携带 cookie。仅 `action` 模式生效 */
|
|
2826
|
+
withCredentials?: boolean;
|
|
2827
|
+
/** 表单中文件字段名,默认 "file"。仅 `action` 模式生效 */
|
|
2828
|
+
name?: string;
|
|
2829
|
+
/**
|
|
2830
|
+
* 上传前钩子,在内置校验(类型/数量/大小)通过之后执行。
|
|
2831
|
+
*
|
|
2832
|
+
* 返回 `false` 或 reject 阻止该文件上传;返回 `File`/`Blob` 则用其替换
|
|
2833
|
+
* 待上传的文件,适用于压缩、转格式等场景(原始文件仍保留在 `originFile`)。
|
|
2834
|
+
*/
|
|
2835
|
+
beforeUpload?: (file: File, fileList: File[]) => BeforeUploadReturn | Promise<BeforeUploadReturn>;
|
|
2273
2836
|
/**
|
|
2274
2837
|
* 粘贴上传。开启后监听容器内的 paste 事件,
|
|
2275
2838
|
* 取剪贴板中的文件(如截图)走同一套校验与收集流程。
|
|
@@ -2306,7 +2869,10 @@ interface UploadProps {
|
|
|
2306
2869
|
|
|
2307
2870
|
/**
|
|
2308
2871
|
* Upload 上传组件
|
|
2309
|
-
*
|
|
2872
|
+
*
|
|
2873
|
+
* 内核采用 rc-upload(@rc-component/upload):原生 input、点击/键盘触发、
|
|
2874
|
+
* 拖拽落盘、文件夹递归遍历、accept 判定、XHR 请求与中止均由其承担。
|
|
2875
|
+
* 本层负责 lingee 的 UploadFile 列表语义、批量校验与 UI。
|
|
2310
2876
|
*/
|
|
2311
2877
|
declare const Upload: React__default.ForwardRefExoticComponent<UploadProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2312
2878
|
|
|
@@ -2372,6 +2938,101 @@ declare const ScrollArea: React__default.ForwardRefExoticComponent<ScrollAreaPro
|
|
|
2372
2938
|
*/
|
|
2373
2939
|
declare const ScrollBar: React__default.ForwardRefExoticComponent<ScrollBarProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2374
2940
|
|
|
2941
|
+
/** 指示器位置 */
|
|
2942
|
+
type CarouselDotsPlacement = "inside" | "outside";
|
|
2943
|
+
/**
|
|
2944
|
+
* 轮播实例 API
|
|
2945
|
+
* 刻意收窄为最小可用集合,不直接暴露 embla 类型,避免消费方类型依赖泄漏
|
|
2946
|
+
*/
|
|
2947
|
+
interface CarouselApi {
|
|
2948
|
+
/** 跳转到指定序号(0 开始),jump 为 true 时不播放过渡动画 */
|
|
2949
|
+
scrollTo: (index: number, jump?: boolean) => void;
|
|
2950
|
+
/** 上一页 */
|
|
2951
|
+
scrollPrev: () => void;
|
|
2952
|
+
/** 下一页 */
|
|
2953
|
+
scrollNext: () => void;
|
|
2954
|
+
/** 是否可向前翻页(loop 模式下恒为 true) */
|
|
2955
|
+
canScrollPrev: () => boolean;
|
|
2956
|
+
/** 是否可向后翻页(loop 模式下恒为 true) */
|
|
2957
|
+
canScrollNext: () => boolean;
|
|
2958
|
+
/** 当前选中序号 */
|
|
2959
|
+
selectedIndex: () => number;
|
|
2960
|
+
/** 总页数 */
|
|
2961
|
+
count: () => number;
|
|
2962
|
+
/** 启动自动轮播 */
|
|
2963
|
+
play: () => void;
|
|
2964
|
+
/** 暂停自动轮播 */
|
|
2965
|
+
stop: () => void;
|
|
2966
|
+
/** 重新初始化(外部改变了尺寸或结构时手动触发) */
|
|
2967
|
+
reInit: () => void;
|
|
2968
|
+
}
|
|
2969
|
+
interface CarouselProps {
|
|
2970
|
+
/** 轮播项,需为 CarouselItem */
|
|
2971
|
+
children: ReactNode;
|
|
2972
|
+
/** 自定义类名(应用于根容器) */
|
|
2973
|
+
className?: string;
|
|
2974
|
+
/** 自定义样式(应用于根容器) */
|
|
2975
|
+
style?: CSSProperties;
|
|
2976
|
+
/** 是否循环轮播 */
|
|
2977
|
+
loop?: boolean;
|
|
2978
|
+
/** 是否开启自动轮播 */
|
|
2979
|
+
autoplay?: boolean;
|
|
2980
|
+
/** 自动轮播间隔(ms),设计规范建议 3000 ~ 6000 */
|
|
2981
|
+
autoplayDelay?: number;
|
|
2982
|
+
/** 鼠标移入时暂停自动轮播,移出恢复 */
|
|
2983
|
+
stopOnMouseEnter?: boolean;
|
|
2984
|
+
/** 用户手动交互(拖拽 / 点击指示器)后彻底停止自动轮播 */
|
|
2985
|
+
stopOnInteraction?: boolean;
|
|
2986
|
+
/** 是否允许拖拽 / 滑动切换 */
|
|
2987
|
+
draggable?: boolean;
|
|
2988
|
+
/** 每屏展示的轮播项数量,多图模式下配合 gap 使用 */
|
|
2989
|
+
slidesPerView?: number;
|
|
2990
|
+
/** 轮播项之间的间距(px) */
|
|
2991
|
+
gap?: number;
|
|
2992
|
+
/** 初始选中序号(0 开始) */
|
|
2993
|
+
defaultIndex?: number;
|
|
2994
|
+
/** 是否展示圆点指示器 */
|
|
2995
|
+
dots?: boolean;
|
|
2996
|
+
/** 指示器位置:inside 浮于内容上方,outside 位于轮播下方 */
|
|
2997
|
+
dotsPlacement?: CarouselDotsPlacement;
|
|
2998
|
+
/** 指示器是否使用半透明毛玻璃胶囊底,用于内容色彩复杂的场景 */
|
|
2999
|
+
dotsGlassy?: boolean;
|
|
3000
|
+
/** 是否展示左右箭头 */
|
|
3001
|
+
arrows?: boolean;
|
|
3002
|
+
/** 选中项变化回调 */
|
|
3003
|
+
onChange?: (index: number) => void;
|
|
3004
|
+
/** 获取轮播实例,用于外部控制翻页 */
|
|
3005
|
+
apiRef?: Ref<CarouselApi>;
|
|
3006
|
+
}
|
|
3007
|
+
interface CarouselItemProps {
|
|
3008
|
+
/** 轮播项内容 */
|
|
3009
|
+
children?: ReactNode;
|
|
3010
|
+
/** 自定义类名 */
|
|
3011
|
+
className?: string;
|
|
3012
|
+
/** 自定义样式 */
|
|
3013
|
+
style?: CSSProperties;
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
/**
|
|
3017
|
+
* Carousel 轮播容器组件
|
|
3018
|
+
*
|
|
3019
|
+
* 水平方向切换,默认从右至左自动轮播,也支持拖拽与点击指示器切换。
|
|
3020
|
+
*
|
|
3021
|
+
* ```tsx
|
|
3022
|
+
* <Carousel autoplay loop>
|
|
3023
|
+
* <Carousel.Item>第一屏</Carousel.Item>
|
|
3024
|
+
* <Carousel.Item>第二屏</Carousel.Item>
|
|
3025
|
+
* </Carousel>
|
|
3026
|
+
* ```
|
|
3027
|
+
*/
|
|
3028
|
+
declare const CarouselRoot: React__default.ForwardRefExoticComponent<CarouselProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
3029
|
+
/** Carousel.Item 轮播项 */
|
|
3030
|
+
declare const CarouselItem: React__default.ForwardRefExoticComponent<CarouselItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
3031
|
+
type CarouselComponent = typeof CarouselRoot & {
|
|
3032
|
+
Item: typeof CarouselItem;
|
|
3033
|
+
};
|
|
3034
|
+
declare const Carousel: CarouselComponent;
|
|
3035
|
+
|
|
2375
3036
|
/**
|
|
2376
3037
|
* 合并 CSS 类名,支持条件拼接
|
|
2377
3038
|
* @param inputs - 任意数量的 ClassValue 参数
|
|
@@ -2379,4 +3040,4 @@ declare const ScrollBar: React__default.ForwardRefExoticComponent<ScrollBarProps
|
|
|
2379
3040
|
*/
|
|
2380
3041
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2381
3042
|
|
|
2382
|
-
export { Alert, type AlertProps, type AlertType, AvatarWithGroup as Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, ButtonProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ColorPicker, type ColorPickerProps, type ColorPickerSize, type CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfirmOptions, type DialogProps, Divider, type DividerOrientation, type DividerProps, type DividerVariant, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, DropdownButton, type DropdownButtonProps, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, 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, DropdownSub, DropdownSubContent, type DropdownSubContentProps, type DropdownSubProps, DropdownSubTrigger, type DropdownSubTriggerProps, DropdownTrigger, type DropdownTriggerProps, Empty, EmptyCard, type EmptyCardProps, type EmptyCardSpacing, type EmptyCardStatus, type EmptyCardVariant, type EmptyIconComponent, type EmptyProps, type EmptySize, type FileItemActions, Flex, type FlexGapSize, type FlexOrientation, type FlexProps, Form, type FormInstance, type FormItemProps, type FormLayout, type FormProps, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, LgSize, LingeeProvider, type LingeeProviderProps, 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, type SidebarCaretPlacement, SidebarCollapsibleListItem, type SidebarCollapsibleListItemProps, SidebarCollapsibleNavItem, type SidebarCollapsibleNavItemChild, type SidebarCollapsibleNavItemProps, SidebarFooter, SidebarFooterBadge, type SidebarFooterBadgeProps, SidebarFooterMenuStaticRow, type SidebarFooterMenuStaticRowProps, type SidebarFooterProps, 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, type TransformAction, type TransformType, Upload, type UploadFile, type UploadFileStatus, type UploadProps, cn, enUS, useComponentLocale, useLocale, zhCN };
|
|
3043
|
+
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 CoverConfig, type CustomRequestOptions, type CustomRequestReturn, DatePicker, type DatePickerProps, type DatePickerSize, type DateRange, Dialog, type DialogConfirmOptions, 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, Image, type ImagePreviewGroupProps, type ImageProps, type ImgInfo, LgSize, LingeeProvider, type LingeeProviderProps, 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, 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, cn, enUS, formatFileSize, useComponentLocale, useLocale, zhCN };
|