@rue-js/design 0.0.32 → 0.0.39
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/rue-design.cjs.js +18963 -2012
- package/dist/rue-design.cjs.prod.js +1 -2060
- package/dist/rue-design.d.ts +4281 -0
- package/dist/rue-design.esm-browser.js +22079 -1997
- package/dist/rue-design.esm-browser.prod.js +1 -5
- package/dist/rue-design.esm-bundler.js +18923 -1997
- package/dist/rue-design.global.js +22163 -2042
- package/dist/rue-design.global.prod.js +1 -5
- package/index.js +2 -2
- package/package.json +13 -13
- package/dist/design.d.ts +0 -767
package/dist/design.d.ts
DELETED
|
@@ -1,767 +0,0 @@
|
|
|
1
|
-
import { FC } from '@rue-js/rue';
|
|
2
|
-
|
|
3
|
-
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
4
|
-
type AlertDirection = 'vertical' | 'horizontal';
|
|
5
|
-
interface AlertProps {
|
|
6
|
-
variant?: AlertVariant;
|
|
7
|
-
outline?: boolean;
|
|
8
|
-
dash?: boolean;
|
|
9
|
-
soft?: boolean;
|
|
10
|
-
direction?: AlertDirection;
|
|
11
|
-
className?: string;
|
|
12
|
-
children?: any;
|
|
13
|
-
}
|
|
14
|
-
/** 提示组件:根据 props 生成类名组合 */
|
|
15
|
-
export declare const Alert: FC<AlertProps>;
|
|
16
|
-
|
|
17
|
-
type AccordionIcon = 'arrow' | 'plus';
|
|
18
|
-
type AccordionForce = 'open' | 'close';
|
|
19
|
-
type AccordionUse = 'radio' | 'details';
|
|
20
|
-
interface AccordionDataItem {
|
|
21
|
-
title?: any;
|
|
22
|
-
content?: any;
|
|
23
|
-
titleClassName?: string;
|
|
24
|
-
contentClassName?: string;
|
|
25
|
-
icon?: AccordionIcon;
|
|
26
|
-
force?: AccordionForce;
|
|
27
|
-
use?: AccordionUse;
|
|
28
|
-
open?: boolean;
|
|
29
|
-
className?: string;
|
|
30
|
-
}
|
|
31
|
-
interface AccordionProps {
|
|
32
|
-
icon?: AccordionIcon;
|
|
33
|
-
force?: AccordionForce;
|
|
34
|
-
use?: AccordionUse;
|
|
35
|
-
name?: string;
|
|
36
|
-
open?: boolean;
|
|
37
|
-
className?: string;
|
|
38
|
-
children?: any;
|
|
39
|
-
items?: ReadonlyArray<AccordionDataItem>;
|
|
40
|
-
}
|
|
41
|
-
interface AccordionPartProps {
|
|
42
|
-
className?: string;
|
|
43
|
-
children?: any;
|
|
44
|
-
as?: 'div' | 'summary';
|
|
45
|
-
}
|
|
46
|
-
export type AccordionCompound = FC<AccordionProps> & {
|
|
47
|
-
Title: FC<AccordionPartProps>;
|
|
48
|
-
Content: FC<AccordionPartProps>;
|
|
49
|
-
};
|
|
50
|
-
export declare const AccordionCompound: AccordionCompound;
|
|
51
|
-
|
|
52
|
-
type BtnVariant = 'primary' | 'secondary' | 'accent' | 'neutral' | 'ghost' | 'link' | 'info' | 'success' | 'warning' | 'error';
|
|
53
|
-
type BtnSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
54
|
-
interface ButtonProps {
|
|
55
|
-
variant?: BtnVariant;
|
|
56
|
-
size?: BtnSize;
|
|
57
|
-
outline?: boolean;
|
|
58
|
-
dash?: boolean;
|
|
59
|
-
soft?: boolean;
|
|
60
|
-
ghost?: boolean;
|
|
61
|
-
link?: boolean;
|
|
62
|
-
active?: boolean;
|
|
63
|
-
block?: boolean;
|
|
64
|
-
wide?: boolean;
|
|
65
|
-
square?: boolean;
|
|
66
|
-
circle?: boolean;
|
|
67
|
-
disabled?: boolean;
|
|
68
|
-
disabledClass?: boolean;
|
|
69
|
-
loading?: boolean;
|
|
70
|
-
type?: 'button' | 'submit' | 'reset';
|
|
71
|
-
className?: string;
|
|
72
|
-
onClick?: (e: MouseEvent) => void;
|
|
73
|
-
children?: any;
|
|
74
|
-
}
|
|
75
|
-
/** 按钮组件:根据 props 生成类名与行为 */
|
|
76
|
-
export declare const Button: FC<ButtonProps>;
|
|
77
|
-
|
|
78
|
-
type CardSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
79
|
-
interface CardProps {
|
|
80
|
-
size?: CardSize;
|
|
81
|
-
border?: boolean;
|
|
82
|
-
dash?: boolean;
|
|
83
|
-
side?: boolean;
|
|
84
|
-
imageFull?: boolean;
|
|
85
|
-
className?: string;
|
|
86
|
-
children?: any;
|
|
87
|
-
}
|
|
88
|
-
interface CardPartProps {
|
|
89
|
-
className?: string;
|
|
90
|
-
children?: any;
|
|
91
|
-
}
|
|
92
|
-
export type CardCompound = FC<CardProps> & {
|
|
93
|
-
Body: FC<CardPartProps>;
|
|
94
|
-
Title: FC<CardPartProps>;
|
|
95
|
-
Actions: FC<CardPartProps>;
|
|
96
|
-
Figure: FC<CardPartProps>;
|
|
97
|
-
};
|
|
98
|
-
export declare const CardCompound: CardCompound;
|
|
99
|
-
|
|
100
|
-
type AvatarStatus = 'online' | 'offline' | 'placeholder';
|
|
101
|
-
interface AvatarProps {
|
|
102
|
-
status?: AvatarStatus;
|
|
103
|
-
className?: string;
|
|
104
|
-
children?: any;
|
|
105
|
-
}
|
|
106
|
-
interface AvatarGroupItem {
|
|
107
|
-
status?: AvatarStatus;
|
|
108
|
-
children?: any;
|
|
109
|
-
}
|
|
110
|
-
interface AvatarGroupProps {
|
|
111
|
-
className?: string;
|
|
112
|
-
children?: any;
|
|
113
|
-
items?: ReadonlyArray<AvatarGroupItem>;
|
|
114
|
-
}
|
|
115
|
-
export type AvatarCompound = FC<AvatarProps> & {
|
|
116
|
-
Group: FC<AvatarGroupProps>;
|
|
117
|
-
};
|
|
118
|
-
export declare const AvatarCompound: AvatarCompound;
|
|
119
|
-
|
|
120
|
-
type DividerVariant = 'neutral' | 'primary' | 'secondary' | 'accent' | 'success' | 'warning' | 'info' | 'error';
|
|
121
|
-
type DividerDirection = 'vertical' | 'horizontal';
|
|
122
|
-
type DividerPlacement = 'start' | 'end';
|
|
123
|
-
interface DividerProps {
|
|
124
|
-
variant?: DividerVariant;
|
|
125
|
-
direction?: DividerDirection;
|
|
126
|
-
placement?: DividerPlacement;
|
|
127
|
-
className?: string;
|
|
128
|
-
children?: any;
|
|
129
|
-
}
|
|
130
|
-
/** 分隔线组件:根据 props 生成类名 */
|
|
131
|
-
export declare const Divider: FC<DividerProps>;
|
|
132
|
-
|
|
133
|
-
type FooterDirection = 'vertical' | 'horizontal';
|
|
134
|
-
interface FooterProps {
|
|
135
|
-
direction?: FooterDirection;
|
|
136
|
-
center?: boolean;
|
|
137
|
-
className?: string;
|
|
138
|
-
children?: any;
|
|
139
|
-
}
|
|
140
|
-
/** 页脚组件:根据 props 组合类名 */
|
|
141
|
-
export declare const Footer: FC<FooterProps>;
|
|
142
|
-
|
|
143
|
-
interface ModalProps {
|
|
144
|
-
open: boolean;
|
|
145
|
-
title?: string;
|
|
146
|
-
children?: any;
|
|
147
|
-
actions?: any;
|
|
148
|
-
className?: string;
|
|
149
|
-
onClose?: () => void;
|
|
150
|
-
}
|
|
151
|
-
/** 模态框组件:受控显隐与动作区 */
|
|
152
|
-
export declare const Modal: FC<ModalProps>;
|
|
153
|
-
|
|
154
|
-
interface TabItem {
|
|
155
|
-
key: string;
|
|
156
|
-
label: string;
|
|
157
|
-
disabled?: boolean;
|
|
158
|
-
className?: string;
|
|
159
|
-
}
|
|
160
|
-
interface TabsProps {
|
|
161
|
-
items: TabItem[];
|
|
162
|
-
activeKey: string;
|
|
163
|
-
onChange?: (key: string) => void;
|
|
164
|
-
style?: 'box' | 'border' | 'lift';
|
|
165
|
-
placement?: 'top' | 'bottom';
|
|
166
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
167
|
-
className?: string;
|
|
168
|
-
}
|
|
169
|
-
/** 标签组件:受控当前项与样式组合 */
|
|
170
|
-
export declare const Tabs: FC<TabsProps>;
|
|
171
|
-
|
|
172
|
-
type BadgeVariant = 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
173
|
-
type BadgeSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
174
|
-
interface BadgeProps {
|
|
175
|
-
variant?: BadgeVariant;
|
|
176
|
-
size?: BadgeSize;
|
|
177
|
-
outline?: boolean;
|
|
178
|
-
dash?: boolean;
|
|
179
|
-
soft?: boolean;
|
|
180
|
-
ghost?: boolean;
|
|
181
|
-
className?: string;
|
|
182
|
-
children?: any;
|
|
183
|
-
}
|
|
184
|
-
/** 徽章组件:根据 props 生成样式类名 */
|
|
185
|
-
export declare const Badge: FC<BadgeProps>;
|
|
186
|
-
|
|
187
|
-
interface DiffProps {
|
|
188
|
-
className?: string;
|
|
189
|
-
tabIndex?: number;
|
|
190
|
-
children?: any;
|
|
191
|
-
}
|
|
192
|
-
interface DiffItemProps {
|
|
193
|
-
className?: string;
|
|
194
|
-
role?: string;
|
|
195
|
-
tabIndex?: number;
|
|
196
|
-
children?: any;
|
|
197
|
-
}
|
|
198
|
-
interface DiffResizerProps {
|
|
199
|
-
className?: string;
|
|
200
|
-
}
|
|
201
|
-
export type DiffCompound = FC<DiffProps> & {
|
|
202
|
-
Item1: FC<DiffItemProps>;
|
|
203
|
-
Item2: FC<DiffItemProps>;
|
|
204
|
-
Resizer: FC<DiffResizerProps>;
|
|
205
|
-
};
|
|
206
|
-
export declare const DiffCompound: DiffCompound;
|
|
207
|
-
|
|
208
|
-
type Hover3DAs = 'div' | 'a';
|
|
209
|
-
interface Hover3DProps {
|
|
210
|
-
as?: Hover3DAs;
|
|
211
|
-
href?: string;
|
|
212
|
-
className?: string;
|
|
213
|
-
overlays?: boolean;
|
|
214
|
-
children?: any;
|
|
215
|
-
}
|
|
216
|
-
/** 3D 悬浮组件:支持 overlays 覆盖层 */
|
|
217
|
-
export declare const Hover3D: FC<Hover3DProps>;
|
|
218
|
-
|
|
219
|
-
type TimelineDirection = 'horizontal' | 'vertical';
|
|
220
|
-
interface TimelineProps {
|
|
221
|
-
direction?: TimelineDirection;
|
|
222
|
-
snapIcon?: boolean;
|
|
223
|
-
compact?: boolean;
|
|
224
|
-
className?: string;
|
|
225
|
-
children?: any;
|
|
226
|
-
items?: ReadonlyArray<TimelineItem>;
|
|
227
|
-
}
|
|
228
|
-
interface TimelineItemPart {
|
|
229
|
-
box?: boolean;
|
|
230
|
-
className?: string;
|
|
231
|
-
content?: any;
|
|
232
|
-
}
|
|
233
|
-
interface TimelineItem {
|
|
234
|
-
beforeLine?: boolean;
|
|
235
|
-
afterLine?: boolean;
|
|
236
|
-
start?: TimelineItemPart;
|
|
237
|
-
middle?: {
|
|
238
|
-
className?: string;
|
|
239
|
-
content?: any;
|
|
240
|
-
};
|
|
241
|
-
end?: TimelineItemPart;
|
|
242
|
-
liClassName?: string;
|
|
243
|
-
}
|
|
244
|
-
interface TimelinePartProps {
|
|
245
|
-
box?: boolean;
|
|
246
|
-
className?: string;
|
|
247
|
-
children?: any;
|
|
248
|
-
}
|
|
249
|
-
export type TimelineCompound = FC<TimelineProps> & {
|
|
250
|
-
Start: FC<TimelinePartProps>;
|
|
251
|
-
Middle: FC<TimelinePartProps>;
|
|
252
|
-
End: FC<TimelinePartProps>;
|
|
253
|
-
};
|
|
254
|
-
export declare const TimelineCompound: TimelineCompound;
|
|
255
|
-
|
|
256
|
-
interface TextRotateItem {
|
|
257
|
-
text?: any;
|
|
258
|
-
className?: string;
|
|
259
|
-
}
|
|
260
|
-
interface TextRotateProps {
|
|
261
|
-
className?: string;
|
|
262
|
-
children?: any;
|
|
263
|
-
items?: ReadonlyArray<TextRotateItem>;
|
|
264
|
-
innerClassName?: string;
|
|
265
|
-
}
|
|
266
|
-
/** 文本轮播组件:items 或 children 渲染 */
|
|
267
|
-
export declare const TextRotate: FC<TextRotateProps>;
|
|
268
|
-
|
|
269
|
-
type StatusAs = 'span' | 'div';
|
|
270
|
-
type StatusSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
271
|
-
type StatusColor = 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
272
|
-
interface StatusProps {
|
|
273
|
-
as?: StatusAs;
|
|
274
|
-
ariaLabel?: string;
|
|
275
|
-
size?: StatusSize;
|
|
276
|
-
color?: StatusColor;
|
|
277
|
-
className?: string;
|
|
278
|
-
children?: any;
|
|
279
|
-
}
|
|
280
|
-
/** 状态点组件:用于展示状态或标识 */
|
|
281
|
-
export declare const Status: FC<StatusProps>;
|
|
282
|
-
|
|
283
|
-
type StatsDirection = 'horizontal' | 'vertical';
|
|
284
|
-
interface StatsProps {
|
|
285
|
-
direction?: StatsDirection;
|
|
286
|
-
className?: string;
|
|
287
|
-
children?: any;
|
|
288
|
-
items?: ReadonlyArray<StatDataItem>;
|
|
289
|
-
}
|
|
290
|
-
interface StatDataItem {
|
|
291
|
-
center?: boolean;
|
|
292
|
-
className?: string;
|
|
293
|
-
figure?: any;
|
|
294
|
-
figureClassName?: string;
|
|
295
|
-
title?: any;
|
|
296
|
-
titleClassName?: string;
|
|
297
|
-
value?: any;
|
|
298
|
-
valueClassName?: string;
|
|
299
|
-
desc?: any;
|
|
300
|
-
descClassName?: string;
|
|
301
|
-
actions?: any;
|
|
302
|
-
actionsClassName?: string;
|
|
303
|
-
}
|
|
304
|
-
interface StatItemProps {
|
|
305
|
-
center?: boolean;
|
|
306
|
-
className?: string;
|
|
307
|
-
children?: any;
|
|
308
|
-
}
|
|
309
|
-
interface StatPartProps {
|
|
310
|
-
className?: string;
|
|
311
|
-
children?: any;
|
|
312
|
-
}
|
|
313
|
-
export type StatCompound = FC<StatsProps> & {
|
|
314
|
-
Item: FC<StatItemProps>;
|
|
315
|
-
Title: FC<StatPartProps>;
|
|
316
|
-
Value: FC<StatPartProps>;
|
|
317
|
-
Desc: FC<StatPartProps>;
|
|
318
|
-
Figure: FC<StatPartProps>;
|
|
319
|
-
Actions: FC<StatPartProps>;
|
|
320
|
-
};
|
|
321
|
-
export declare const StatCompound: StatCompound;
|
|
322
|
-
|
|
323
|
-
type CarouselAlign = 'start' | 'center' | 'end';
|
|
324
|
-
type CarouselDirection = 'horizontal' | 'vertical';
|
|
325
|
-
interface CarouselDataItem {
|
|
326
|
-
content: any;
|
|
327
|
-
className?: string;
|
|
328
|
-
}
|
|
329
|
-
interface CarouselProps {
|
|
330
|
-
align?: CarouselAlign;
|
|
331
|
-
direction?: CarouselDirection;
|
|
332
|
-
auto?: boolean;
|
|
333
|
-
interval?: number;
|
|
334
|
-
loop?: boolean;
|
|
335
|
-
autoDirection?: 'forward' | 'backward';
|
|
336
|
-
activeIndex?: number;
|
|
337
|
-
onIndexChange?: (index: number) => void;
|
|
338
|
-
className?: string;
|
|
339
|
-
children?: any;
|
|
340
|
-
items?: ReadonlyArray<CarouselDataItem>;
|
|
341
|
-
}
|
|
342
|
-
interface CarouselItemProps {
|
|
343
|
-
className?: string;
|
|
344
|
-
children?: any;
|
|
345
|
-
}
|
|
346
|
-
export type CarouselCompound = FC<CarouselProps> & {
|
|
347
|
-
Item: FC<CarouselItemProps>;
|
|
348
|
-
};
|
|
349
|
-
export declare const CarouselCompound: CarouselCompound;
|
|
350
|
-
|
|
351
|
-
type ChatPlacement = 'start' | 'end';
|
|
352
|
-
interface ChatDataItem {
|
|
353
|
-
placement: ChatPlacement;
|
|
354
|
-
text?: any;
|
|
355
|
-
color?: BubbleColor;
|
|
356
|
-
imageSrc?: string;
|
|
357
|
-
imageAlt?: string;
|
|
358
|
-
imageClassName?: string;
|
|
359
|
-
headerName?: any;
|
|
360
|
-
headerTime?: any;
|
|
361
|
-
headerClassName?: string;
|
|
362
|
-
footer?: any;
|
|
363
|
-
footerClassName?: string;
|
|
364
|
-
}
|
|
365
|
-
interface ChatProps {
|
|
366
|
-
placement?: ChatPlacement;
|
|
367
|
-
className?: string;
|
|
368
|
-
children?: any;
|
|
369
|
-
items?: ReadonlyArray<ChatDataItem>;
|
|
370
|
-
}
|
|
371
|
-
interface ChatPartProps {
|
|
372
|
-
className?: string;
|
|
373
|
-
children?: any;
|
|
374
|
-
}
|
|
375
|
-
type BubbleColor = 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
376
|
-
interface BubbleProps extends ChatPartProps {
|
|
377
|
-
color?: BubbleColor;
|
|
378
|
-
}
|
|
379
|
-
export type ChatCompound = FC<ChatProps> & {
|
|
380
|
-
Bubble: FC<BubbleProps>;
|
|
381
|
-
Header: FC<ChatPartProps>;
|
|
382
|
-
Footer: FC<ChatPartProps>;
|
|
383
|
-
Image: FC<ChatPartProps>;
|
|
384
|
-
};
|
|
385
|
-
export declare const ChatCompound: ChatCompound;
|
|
386
|
-
|
|
387
|
-
interface CollapseProps {
|
|
388
|
-
arrow?: boolean;
|
|
389
|
-
plus?: boolean;
|
|
390
|
-
open?: boolean;
|
|
391
|
-
close?: boolean;
|
|
392
|
-
tabIndex?: number;
|
|
393
|
-
tag?: 'div' | 'details';
|
|
394
|
-
className?: string;
|
|
395
|
-
children?: any;
|
|
396
|
-
}
|
|
397
|
-
interface CollapsePartProps {
|
|
398
|
-
as?: 'div' | 'summary';
|
|
399
|
-
className?: string;
|
|
400
|
-
children?: any;
|
|
401
|
-
}
|
|
402
|
-
export type CollapseCompound = FC<CollapseProps> & {
|
|
403
|
-
Title: FC<CollapsePartProps>;
|
|
404
|
-
Content: FC<CollapsePartProps>;
|
|
405
|
-
};
|
|
406
|
-
export declare const CollapseCompound: CollapseCompound;
|
|
407
|
-
|
|
408
|
-
interface CountdownTextItem {
|
|
409
|
-
content: any;
|
|
410
|
-
className?: string;
|
|
411
|
-
}
|
|
412
|
-
interface CountdownValueItem {
|
|
413
|
-
value: number;
|
|
414
|
-
digits?: number;
|
|
415
|
-
className?: string;
|
|
416
|
-
ariaLive?: 'polite' | 'off' | 'assertive';
|
|
417
|
-
ariaLabel?: string;
|
|
418
|
-
children?: any;
|
|
419
|
-
}
|
|
420
|
-
type CountdownItem = CountdownTextItem | CountdownValueItem;
|
|
421
|
-
interface CountdownProps {
|
|
422
|
-
className?: string;
|
|
423
|
-
children?: any;
|
|
424
|
-
items?: ReadonlyArray<CountdownItem>;
|
|
425
|
-
}
|
|
426
|
-
interface ValueProps {
|
|
427
|
-
value: number;
|
|
428
|
-
digits?: number;
|
|
429
|
-
className?: string;
|
|
430
|
-
ariaLive?: 'polite' | 'off' | 'assertive';
|
|
431
|
-
ariaLabel?: string;
|
|
432
|
-
children?: any;
|
|
433
|
-
}
|
|
434
|
-
export type CountdownCompound = FC<CountdownProps> & {
|
|
435
|
-
Value: FC<ValueProps>;
|
|
436
|
-
};
|
|
437
|
-
export declare const CountdownCompound: CountdownCompound;
|
|
438
|
-
|
|
439
|
-
interface HoverGalleryItem {
|
|
440
|
-
src?: string;
|
|
441
|
-
alt?: string;
|
|
442
|
-
className?: string;
|
|
443
|
-
node?: any;
|
|
444
|
-
}
|
|
445
|
-
interface HoverGalleryProps {
|
|
446
|
-
as?: 'figure' | 'div';
|
|
447
|
-
className?: string;
|
|
448
|
-
children?: any;
|
|
449
|
-
items?: ReadonlyArray<HoverGalleryItem | string | any>;
|
|
450
|
-
}
|
|
451
|
-
/** 悬浮画廊:支持多种 item 输入形态 */
|
|
452
|
-
export declare const HoverGallery: FC<HoverGalleryProps>;
|
|
453
|
-
|
|
454
|
-
type KbdSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
455
|
-
interface KbdProps {
|
|
456
|
-
size?: KbdSize;
|
|
457
|
-
className?: string;
|
|
458
|
-
children?: any;
|
|
459
|
-
}
|
|
460
|
-
/** 键盘标签组件:kbd 元素包裹 */
|
|
461
|
-
export declare const Kbd: FC<KbdProps>;
|
|
462
|
-
|
|
463
|
-
interface ListColDataItem {
|
|
464
|
-
type: 'grow' | 'wrap';
|
|
465
|
-
as?: 'div' | 'p' | 'span';
|
|
466
|
-
className?: string;
|
|
467
|
-
content?: any;
|
|
468
|
-
}
|
|
469
|
-
interface ListDataItem {
|
|
470
|
-
type?: 'row' | 'item';
|
|
471
|
-
normal?: boolean;
|
|
472
|
-
className?: string;
|
|
473
|
-
content?: any;
|
|
474
|
-
cols?: ReadonlyArray<ListColDataItem>;
|
|
475
|
-
}
|
|
476
|
-
interface ListProps {
|
|
477
|
-
className?: string;
|
|
478
|
-
children?: any;
|
|
479
|
-
items?: ReadonlyArray<ListDataItem>;
|
|
480
|
-
}
|
|
481
|
-
interface ListRowProps {
|
|
482
|
-
normal?: boolean;
|
|
483
|
-
className?: string;
|
|
484
|
-
children?: any;
|
|
485
|
-
}
|
|
486
|
-
interface ListColProps {
|
|
487
|
-
as?: 'div' | 'p' | 'span';
|
|
488
|
-
className?: string;
|
|
489
|
-
children?: any;
|
|
490
|
-
}
|
|
491
|
-
interface ListItemProps {
|
|
492
|
-
className?: string;
|
|
493
|
-
children?: any;
|
|
494
|
-
}
|
|
495
|
-
export type ListCompound = FC<ListProps> & {
|
|
496
|
-
Row: FC<ListRowProps>;
|
|
497
|
-
ColGrow: FC<ListColProps>;
|
|
498
|
-
ColWrap: FC<ListColProps>;
|
|
499
|
-
Item: FC<ListItemProps>;
|
|
500
|
-
};
|
|
501
|
-
export declare const ListCompound: ListCompound;
|
|
502
|
-
|
|
503
|
-
type TableSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
504
|
-
interface ColumnItem {
|
|
505
|
-
key?: string;
|
|
506
|
-
title?: any;
|
|
507
|
-
dataIndex?: string | string[];
|
|
508
|
-
align?: 'left' | 'right' | 'center';
|
|
509
|
-
className?: string;
|
|
510
|
-
width?: string | number;
|
|
511
|
-
ellipsis?: boolean;
|
|
512
|
-
render?: (value: any, record: any, index: number) => any;
|
|
513
|
-
sorter?: boolean | ((a: any, b: any) => number);
|
|
514
|
-
defaultSortOrder?: 'ascend' | 'descend';
|
|
515
|
-
sortOrder?: 'ascend' | 'descend' | null;
|
|
516
|
-
filters?: Array<{
|
|
517
|
-
text: any;
|
|
518
|
-
value: any;
|
|
519
|
-
}>;
|
|
520
|
-
onFilter?: (value: any, record: any) => boolean;
|
|
521
|
-
filteredValue?: any[];
|
|
522
|
-
defaultFilteredValue?: any[];
|
|
523
|
-
filterMultiple?: boolean;
|
|
524
|
-
filterCombine?: 'or' | 'and';
|
|
525
|
-
filterOnClose?: boolean;
|
|
526
|
-
filterResetToDefaultFilteredValue?: boolean;
|
|
527
|
-
hidden?: boolean;
|
|
528
|
-
onHeaderCell?: (column: ColumnItem, index: number) => Record<string, any>;
|
|
529
|
-
onCell?: (record: any, rowIndex: number) => Record<string, any>;
|
|
530
|
-
fixedCol?: boolean;
|
|
531
|
-
}
|
|
532
|
-
interface RowSelection {
|
|
533
|
-
type?: 'checkbox' | 'radio';
|
|
534
|
-
selectedRowKeys?: Array<string | number>;
|
|
535
|
-
defaultSelectedRowKeys?: Array<string | number>;
|
|
536
|
-
columnWidth?: number | string;
|
|
537
|
-
disabled?: boolean;
|
|
538
|
-
onChange?: (selectedRowKeys: Array<string | number>, selectedRows: any[], info?: any) => void;
|
|
539
|
-
getCheckboxProps?: (record: any) => Record<string, any>;
|
|
540
|
-
onSelectAll?: (selected: boolean, selectedRows: any[]) => void;
|
|
541
|
-
}
|
|
542
|
-
interface PaginationConfig {
|
|
543
|
-
current?: number;
|
|
544
|
-
pageSize?: number;
|
|
545
|
-
hideOnSinglePage?: boolean;
|
|
546
|
-
onChange?: (page: number, pageSize: number) => void;
|
|
547
|
-
}
|
|
548
|
-
interface ExpandableConfig {
|
|
549
|
-
expandedRowRender?: (record: any, index: number) => any;
|
|
550
|
-
expandedRowKeys?: Array<string | number>;
|
|
551
|
-
defaultExpandAllRows?: boolean;
|
|
552
|
-
onExpand?: (expanded: boolean, record: any) => void;
|
|
553
|
-
}
|
|
554
|
-
interface TableProps {
|
|
555
|
-
size?: TableSize;
|
|
556
|
-
zebra?: boolean;
|
|
557
|
-
pinRows?: boolean;
|
|
558
|
-
pinCols?: boolean;
|
|
559
|
-
className?: string;
|
|
560
|
-
children?: any;
|
|
561
|
-
dataSource?: any[];
|
|
562
|
-
columns?: ColumnItem[];
|
|
563
|
-
rowKey?: string | ((record: any) => string);
|
|
564
|
-
showHeader?: boolean;
|
|
565
|
-
onRow?: (record: any, index: number) => Record<string, any>;
|
|
566
|
-
onHeaderRow?: (columns: ColumnItem[], index: number) => Record<string, any>;
|
|
567
|
-
onChange?: (pagination: any, filters: any, sorter: any, extra: any) => void;
|
|
568
|
-
rowSelection?: RowSelection;
|
|
569
|
-
pagination?: false | PaginationConfig;
|
|
570
|
-
expandable?: ExpandableConfig;
|
|
571
|
-
rowClassName?: (record: any, index: number) => string;
|
|
572
|
-
summary?: (currentData: any[], info?: {
|
|
573
|
-
total: number;
|
|
574
|
-
page: number;
|
|
575
|
-
pageSize: number;
|
|
576
|
-
}) => any;
|
|
577
|
-
emptyText?: any;
|
|
578
|
-
title?: (currentData: any[]) => any;
|
|
579
|
-
footer?: (currentData: any[]) => any;
|
|
580
|
-
rowHoverable?: boolean;
|
|
581
|
-
rowHoverClass?: string;
|
|
582
|
-
tableLayout?: 'auto' | 'fixed';
|
|
583
|
-
scroll?: {
|
|
584
|
-
x?: string | number | true;
|
|
585
|
-
y?: string | number;
|
|
586
|
-
};
|
|
587
|
-
height?: string | number;
|
|
588
|
-
onScroll?: (event: any) => void;
|
|
589
|
-
}
|
|
590
|
-
interface TablePartProps {
|
|
591
|
-
className?: string;
|
|
592
|
-
children?: any;
|
|
593
|
-
}
|
|
594
|
-
export type TableCompound = FC<TableProps> & {
|
|
595
|
-
Head: FC<TablePartProps>;
|
|
596
|
-
Body: FC<TablePartProps>;
|
|
597
|
-
Foot: FC<TablePartProps>;
|
|
598
|
-
TR: FC<TablePartProps>;
|
|
599
|
-
TH: FC<TablePartProps>;
|
|
600
|
-
TD: FC<TablePartProps>;
|
|
601
|
-
};
|
|
602
|
-
export declare const TableCompound: TableCompound;
|
|
603
|
-
|
|
604
|
-
interface BreadcrumbsProps {
|
|
605
|
-
className?: string;
|
|
606
|
-
children?: any;
|
|
607
|
-
items?: ReadonlyArray<BreadcrumbsDataItem>;
|
|
608
|
-
}
|
|
609
|
-
interface BreadcrumbsDataItem {
|
|
610
|
-
label?: any;
|
|
611
|
-
href?: string;
|
|
612
|
-
icon?: any;
|
|
613
|
-
className?: string;
|
|
614
|
-
linkClassName?: string;
|
|
615
|
-
}
|
|
616
|
-
interface BreadcrumbsItemProps {
|
|
617
|
-
className?: string;
|
|
618
|
-
children?: any;
|
|
619
|
-
}
|
|
620
|
-
export type BreadcrumbsCompound = FC<BreadcrumbsProps> & {
|
|
621
|
-
Item: FC<BreadcrumbsItemProps>;
|
|
622
|
-
};
|
|
623
|
-
export declare const BreadcrumbsCompound: BreadcrumbsCompound;
|
|
624
|
-
|
|
625
|
-
type DockSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
626
|
-
interface DockItemData {
|
|
627
|
-
as?: 'button' | 'a' | 'div';
|
|
628
|
-
className?: string;
|
|
629
|
-
icon?: any;
|
|
630
|
-
label?: any;
|
|
631
|
-
href?: string;
|
|
632
|
-
active?: boolean;
|
|
633
|
-
}
|
|
634
|
-
interface DockProps {
|
|
635
|
-
size?: DockSize;
|
|
636
|
-
className?: string;
|
|
637
|
-
items?: DockItemData[];
|
|
638
|
-
activeIndex?: number;
|
|
639
|
-
onChange?: (index: number) => void;
|
|
640
|
-
children?: any;
|
|
641
|
-
}
|
|
642
|
-
interface DockItemProps {
|
|
643
|
-
as?: 'button' | 'a' | 'div';
|
|
644
|
-
active?: boolean;
|
|
645
|
-
className?: string;
|
|
646
|
-
href?: string;
|
|
647
|
-
onClick?: () => void;
|
|
648
|
-
children?: any;
|
|
649
|
-
}
|
|
650
|
-
interface DockLabelProps {
|
|
651
|
-
className?: string;
|
|
652
|
-
children?: any;
|
|
653
|
-
}
|
|
654
|
-
export type DockCompound = FC<DockProps> & {
|
|
655
|
-
Item: FC<DockItemProps>;
|
|
656
|
-
Label: FC<DockLabelProps>;
|
|
657
|
-
};
|
|
658
|
-
export declare const DockCompound: DockCompound;
|
|
659
|
-
|
|
660
|
-
type LinkVariant = 'neutral' | 'primary' | 'secondary' | 'accent' | 'success' | 'info' | 'warning' | 'error';
|
|
661
|
-
interface LinkProps {
|
|
662
|
-
href?: string;
|
|
663
|
-
target?: string;
|
|
664
|
-
rel?: string;
|
|
665
|
-
to?: string;
|
|
666
|
-
onClick?: (e: any) => void;
|
|
667
|
-
variant?: LinkVariant;
|
|
668
|
-
hover?: boolean;
|
|
669
|
-
className?: string;
|
|
670
|
-
children?: any;
|
|
671
|
-
}
|
|
672
|
-
/** 链接组件:根据 to/href 渲染 RouterLink 或 <a> */
|
|
673
|
-
export declare const Link: FC<LinkProps>;
|
|
674
|
-
|
|
675
|
-
type MenuSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
676
|
-
type MenuDirection = 'vertical' | 'horizontal';
|
|
677
|
-
interface MenuDataTitle {
|
|
678
|
-
kind: 'title';
|
|
679
|
-
as?: 'li' | 'h2';
|
|
680
|
-
className?: string;
|
|
681
|
-
children?: any;
|
|
682
|
-
}
|
|
683
|
-
interface MenuDataDropdownToggle {
|
|
684
|
-
visible?: boolean;
|
|
685
|
-
className?: string;
|
|
686
|
-
children?: any;
|
|
687
|
-
}
|
|
688
|
-
interface MenuDataDropdown {
|
|
689
|
-
visible?: boolean;
|
|
690
|
-
className?: string;
|
|
691
|
-
items?: ReadonlyArray<MenuDataEntry>;
|
|
692
|
-
}
|
|
693
|
-
interface MenuDataSubmenu {
|
|
694
|
-
className?: string;
|
|
695
|
-
items?: ReadonlyArray<MenuDataEntry>;
|
|
696
|
-
}
|
|
697
|
-
interface MenuDataItem {
|
|
698
|
-
kind: 'item';
|
|
699
|
-
as?: 'a' | 'button' | 'span';
|
|
700
|
-
href?: string;
|
|
701
|
-
to?: string;
|
|
702
|
-
target?: string;
|
|
703
|
-
rel?: string;
|
|
704
|
-
onClick?: (e: any) => void;
|
|
705
|
-
disabled?: boolean;
|
|
706
|
-
active?: boolean;
|
|
707
|
-
focus?: boolean;
|
|
708
|
-
liClassName?: string;
|
|
709
|
-
className?: string;
|
|
710
|
-
children?: any;
|
|
711
|
-
dropdownToggle?: MenuDataDropdownToggle;
|
|
712
|
-
dropdown?: MenuDataDropdown;
|
|
713
|
-
submenu?: MenuDataSubmenu;
|
|
714
|
-
[key: string]: any;
|
|
715
|
-
}
|
|
716
|
-
type MenuDataEntry = MenuDataTitle | MenuDataItem;
|
|
717
|
-
interface MenuProps {
|
|
718
|
-
size?: MenuSize;
|
|
719
|
-
direction?: MenuDirection;
|
|
720
|
-
className?: string;
|
|
721
|
-
children?: any;
|
|
722
|
-
items?: ReadonlyArray<MenuDataEntry>;
|
|
723
|
-
}
|
|
724
|
-
interface MenuItemProps {
|
|
725
|
-
as?: 'a' | 'button' | 'span';
|
|
726
|
-
href?: string;
|
|
727
|
-
to?: string;
|
|
728
|
-
target?: string;
|
|
729
|
-
rel?: string;
|
|
730
|
-
onClick?: (e: any) => void;
|
|
731
|
-
disabled?: boolean;
|
|
732
|
-
active?: boolean;
|
|
733
|
-
focus?: boolean;
|
|
734
|
-
liClassName?: string;
|
|
735
|
-
className?: string;
|
|
736
|
-
children?: any;
|
|
737
|
-
[key: string]: any;
|
|
738
|
-
}
|
|
739
|
-
interface MenuTitleProps {
|
|
740
|
-
as?: 'li' | 'h2';
|
|
741
|
-
className?: string;
|
|
742
|
-
children?: any;
|
|
743
|
-
}
|
|
744
|
-
interface MenuDropdownProps {
|
|
745
|
-
visible?: boolean;
|
|
746
|
-
className?: string;
|
|
747
|
-
children?: any;
|
|
748
|
-
}
|
|
749
|
-
interface MenuDropdownToggleProps {
|
|
750
|
-
visible?: boolean;
|
|
751
|
-
className?: string;
|
|
752
|
-
children?: any;
|
|
753
|
-
}
|
|
754
|
-
interface SubmenuProps {
|
|
755
|
-
className?: string;
|
|
756
|
-
children?: any;
|
|
757
|
-
}
|
|
758
|
-
export type MenuCompound = FC<MenuProps> & {
|
|
759
|
-
Item: FC<MenuItemProps>;
|
|
760
|
-
Title: FC<MenuTitleProps>;
|
|
761
|
-
Dropdown: FC<MenuDropdownProps>;
|
|
762
|
-
DropdownToggle: FC<MenuDropdownToggleProps>;
|
|
763
|
-
Submenu: FC<SubmenuProps>;
|
|
764
|
-
};
|
|
765
|
-
export declare const MenuCompound: MenuCompound;
|
|
766
|
-
|
|
767
|
-
export { AccordionCompound as Accordion, AvatarCompound as Avatar, BreadcrumbsCompound as Breadcrumbs, CardCompound as Card, CarouselCompound as Carousel, ChatCompound as Chat, CollapseCompound as Collapse, CountdownCompound as Countdown, DiffCompound as Diff, DockCompound as Dock, ListCompound as List, MenuCompound as Menu, StatCompound as Stat, TableCompound as Table, TimelineCompound as Timeline };
|