@rue-js/design 0.0.39 → 0.1.1
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 +36466 -15981
- package/dist/rue-design.cjs.prod.js +1 -1
- package/dist/rue-design.d.ts +2482 -112
- package/dist/rue-design.esm-browser.js +38861 -17397
- package/dist/rue-design.esm-browser.prod.js +3 -1
- package/dist/rue-design.esm-bundler.js +36432 -15982
- package/dist/rue-design.global.js +38896 -17397
- package/dist/rue-design.global.prod.js +3 -1
- package/package.json +4 -4
package/dist/rue-design.d.ts
CHANGED
|
@@ -136,6 +136,107 @@ export type AccordionCompound = FC<AccordionProps> & {
|
|
|
136
136
|
Content: FC<AccordionPartProps>;
|
|
137
137
|
};
|
|
138
138
|
export declare const AccordionCompound: AccordionCompound;
|
|
139
|
+
export type AutoCompleteValue = string | number;
|
|
140
|
+
export type AutoCompletePlacement = "top" | "bottom";
|
|
141
|
+
export type AutoCompleteSize = "xs" | "sm" | "md" | "lg" | "xl" | "small" | "middle" | "medium" | "large";
|
|
142
|
+
export type AutoCompleteStatus = "warning" | "error";
|
|
143
|
+
export type AutoCompleteVariant = "outlined" | "filled" | "ghost" | "borderless" | "underlined";
|
|
144
|
+
export interface AutoCompleteAllowClearConfig {
|
|
145
|
+
clearIcon?: any;
|
|
146
|
+
}
|
|
147
|
+
export interface AutoCompleteOption {
|
|
148
|
+
key?: string | number;
|
|
149
|
+
value: AutoCompleteValue;
|
|
150
|
+
label?: any;
|
|
151
|
+
description?: any;
|
|
152
|
+
disabled?: boolean;
|
|
153
|
+
keywords?: Array<string | number>;
|
|
154
|
+
className?: string;
|
|
155
|
+
style?: any;
|
|
156
|
+
title?: string;
|
|
157
|
+
[key: string]: any;
|
|
158
|
+
}
|
|
159
|
+
export interface AutoCompleteOptionGroup {
|
|
160
|
+
key?: string | number;
|
|
161
|
+
label: any;
|
|
162
|
+
options: AutoCompleteOption[];
|
|
163
|
+
className?: string;
|
|
164
|
+
style?: any;
|
|
165
|
+
[key: string]: any;
|
|
166
|
+
}
|
|
167
|
+
export type AutoCompleteOptionData = AutoCompleteOption | AutoCompleteOptionGroup;
|
|
168
|
+
export interface AutoCompleteClassNames {
|
|
169
|
+
root?: string;
|
|
170
|
+
control?: string;
|
|
171
|
+
input?: string;
|
|
172
|
+
popup?: string;
|
|
173
|
+
list?: string;
|
|
174
|
+
item?: string;
|
|
175
|
+
group?: string;
|
|
176
|
+
empty?: string;
|
|
177
|
+
clear?: string;
|
|
178
|
+
loading?: string;
|
|
179
|
+
}
|
|
180
|
+
export interface AutoCompleteStyles {
|
|
181
|
+
root?: any;
|
|
182
|
+
control?: any;
|
|
183
|
+
input?: any;
|
|
184
|
+
popup?: any;
|
|
185
|
+
list?: any;
|
|
186
|
+
item?: any;
|
|
187
|
+
group?: any;
|
|
188
|
+
empty?: any;
|
|
189
|
+
clear?: any;
|
|
190
|
+
loading?: any;
|
|
191
|
+
}
|
|
192
|
+
export interface AutoCompleteProps {
|
|
193
|
+
value?: AutoCompleteValue;
|
|
194
|
+
defaultValue?: AutoCompleteValue;
|
|
195
|
+
options?: AutoCompleteOptionData[];
|
|
196
|
+
open?: boolean;
|
|
197
|
+
defaultOpen?: boolean;
|
|
198
|
+
disabled?: boolean;
|
|
199
|
+
readOnly?: boolean;
|
|
200
|
+
loading?: boolean;
|
|
201
|
+
placeholder?: string;
|
|
202
|
+
allowClear?: boolean | AutoCompleteAllowClearConfig;
|
|
203
|
+
backfill?: boolean;
|
|
204
|
+
defaultActiveFirstOption?: boolean;
|
|
205
|
+
filterOption?: boolean | ((inputValue: string, option: AutoCompleteOption) => boolean);
|
|
206
|
+
notFoundContent?: any;
|
|
207
|
+
popupMatchSelectWidth?: boolean | number;
|
|
208
|
+
popupRender?: (originNode: any) => any;
|
|
209
|
+
optionLabelProp?: string;
|
|
210
|
+
placement?: AutoCompletePlacement;
|
|
211
|
+
size?: AutoCompleteSize;
|
|
212
|
+
status?: AutoCompleteStatus;
|
|
213
|
+
variant?: AutoCompleteVariant;
|
|
214
|
+
prefix?: any;
|
|
215
|
+
suffix?: any;
|
|
216
|
+
className?: string;
|
|
217
|
+
style?: any;
|
|
218
|
+
rootClassName?: string;
|
|
219
|
+
controlClassName?: string;
|
|
220
|
+
inputClassName?: string;
|
|
221
|
+
popupClassName?: string;
|
|
222
|
+
clearButtonClassName?: string;
|
|
223
|
+
popupStyle?: any;
|
|
224
|
+
classNames?: AutoCompleteClassNames;
|
|
225
|
+
styles?: AutoCompleteStyles;
|
|
226
|
+
onChange?: (value: string) => void;
|
|
227
|
+
onSearch?: (value: string) => void;
|
|
228
|
+
onSelect?: (value: AutoCompleteValue, option: AutoCompleteOption) => void;
|
|
229
|
+
onOpenChange?: (open: boolean) => void;
|
|
230
|
+
onClear?: (event: MouseEvent) => void;
|
|
231
|
+
onFocus?: (event: FocusEvent) => void;
|
|
232
|
+
onBlur?: (event: FocusEvent) => void;
|
|
233
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
234
|
+
onInputKeyDown?: (event: KeyboardEvent) => void;
|
|
235
|
+
onPressEnter?: (event: KeyboardEvent) => void;
|
|
236
|
+
onPopupScroll?: (event: Event) => void;
|
|
237
|
+
[key: string]: any;
|
|
238
|
+
}
|
|
239
|
+
export declare const AutoComplete: FC<AutoCompleteProps>;
|
|
139
240
|
export type ButtonTone = "neutral" | "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
140
241
|
export type ButtonColor = "default" | "danger" | ButtonTone;
|
|
141
242
|
export type ButtonType = "solid" | "filled" | "outlined" | "dashed" | "text" | "link";
|
|
@@ -143,6 +244,7 @@ export type ButtonShape = "default" | "square" | "circle" | "round";
|
|
|
143
244
|
export type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "small" | "medium" | "middle" | "large";
|
|
144
245
|
export type ButtonHTMLType = "button" | "submit" | "reset";
|
|
145
246
|
export type ButtonIconPlacement = "start" | "end";
|
|
247
|
+
export type ButtonGroupDirection = "horizontal" | "vertical";
|
|
146
248
|
export interface ButtonLoadingConfig {
|
|
147
249
|
delay?: number;
|
|
148
250
|
icon?: any;
|
|
@@ -170,7 +272,21 @@ export interface ButtonProps {
|
|
|
170
272
|
children?: any;
|
|
171
273
|
[key: string]: any;
|
|
172
274
|
}
|
|
173
|
-
export
|
|
275
|
+
export interface ButtonGroupProps {
|
|
276
|
+
as?: any;
|
|
277
|
+
size?: ButtonSize;
|
|
278
|
+
shape?: ButtonShape;
|
|
279
|
+
direction?: ButtonGroupDirection;
|
|
280
|
+
block?: boolean;
|
|
281
|
+
className?: string;
|
|
282
|
+
style?: any;
|
|
283
|
+
children?: any;
|
|
284
|
+
[key: string]: any;
|
|
285
|
+
}
|
|
286
|
+
export type ButtonCompound = FC<ButtonProps> & {
|
|
287
|
+
Group: FC<ButtonGroupProps>;
|
|
288
|
+
};
|
|
289
|
+
export declare const ButtonCompound: ButtonCompound;
|
|
174
290
|
export type CardSize = "xs" | "sm" | "md" | "lg" | "xl" | "small" | "medium" | "middle" | "large";
|
|
175
291
|
export type CardVariant = "outlined" | "borderless" | "dashed";
|
|
176
292
|
export type CardType = "default" | "inner";
|
|
@@ -336,6 +452,162 @@ export type CalendarCompound = FC<CalendarProps> & {
|
|
|
336
452
|
PikaSingle: FC<CalendarPikaSingleProps>;
|
|
337
453
|
};
|
|
338
454
|
export declare const CalendarCompound: CalendarCompound;
|
|
455
|
+
export declare const FORMAT_HEX = "hex";
|
|
456
|
+
export declare const FORMAT_RGB = "rgb";
|
|
457
|
+
export declare const FORMAT_HSB = "hsb";
|
|
458
|
+
export declare const COLOR_PICKER_MODE_SINGLE = "single";
|
|
459
|
+
export declare const COLOR_PICKER_MODE_GRADIENT = "gradient";
|
|
460
|
+
export type ColorFormatType = typeof FORMAT_HEX | typeof FORMAT_RGB | typeof FORMAT_HSB;
|
|
461
|
+
export type ColorPickerMode = typeof COLOR_PICKER_MODE_SINGLE | typeof COLOR_PICKER_MODE_GRADIENT;
|
|
462
|
+
export type ColorPickerTrigger = "click" | "hover";
|
|
463
|
+
export type ColorPickerPlacement = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom";
|
|
464
|
+
export type ColorPickerSize = "small" | "default" | "middle" | "medium" | "large" | "sm" | "md" | "lg";
|
|
465
|
+
export type ColorPickerArrow = boolean | {
|
|
466
|
+
pointAtCenter?: boolean;
|
|
467
|
+
};
|
|
468
|
+
export type ColorPickerGetPopupContainer = string | HTMLElement | false | ((triggerNode?: HTMLElement) => string | HTMLElement | false | null | undefined);
|
|
469
|
+
export type ColorPickerValue = string | Color | ColorPickerGradientStop[] | null;
|
|
470
|
+
export type ColorPickerPresetValue = string | Color | ColorPickerGradientStop[];
|
|
471
|
+
export interface ColorPickerAllowClearConfig {
|
|
472
|
+
clearIcon?: any;
|
|
473
|
+
}
|
|
474
|
+
export interface ColorPickerPresetItem {
|
|
475
|
+
label: any;
|
|
476
|
+
colors: ColorPickerPresetValue[];
|
|
477
|
+
defaultOpen?: boolean;
|
|
478
|
+
key?: string | number;
|
|
479
|
+
}
|
|
480
|
+
export interface ColorPickerGradientStop {
|
|
481
|
+
color: string | Color;
|
|
482
|
+
percent: number;
|
|
483
|
+
id?: string | number;
|
|
484
|
+
}
|
|
485
|
+
export interface ColorPickerClassNames {
|
|
486
|
+
root?: string;
|
|
487
|
+
trigger?: string;
|
|
488
|
+
popup?: string;
|
|
489
|
+
panel?: string;
|
|
490
|
+
body?: string;
|
|
491
|
+
saturation?: string;
|
|
492
|
+
sliders?: string;
|
|
493
|
+
formatBar?: string;
|
|
494
|
+
valueInput?: string;
|
|
495
|
+
presets?: string;
|
|
496
|
+
presetItem?: string;
|
|
497
|
+
clear?: string;
|
|
498
|
+
}
|
|
499
|
+
export interface ColorPickerStyles {
|
|
500
|
+
root?: Record<string, any>;
|
|
501
|
+
trigger?: Record<string, any>;
|
|
502
|
+
popup?: Record<string, any>;
|
|
503
|
+
panel?: Record<string, any>;
|
|
504
|
+
body?: Record<string, any>;
|
|
505
|
+
saturation?: Record<string, any>;
|
|
506
|
+
sliders?: Record<string, any>;
|
|
507
|
+
formatBar?: Record<string, any>;
|
|
508
|
+
valueInput?: Record<string, any>;
|
|
509
|
+
presets?: Record<string, any>;
|
|
510
|
+
}
|
|
511
|
+
export interface ColorPickerPanelRenderProps {
|
|
512
|
+
color: Color | GradientColor | null;
|
|
513
|
+
format: ColorFormatType;
|
|
514
|
+
mode: ColorPickerMode;
|
|
515
|
+
}
|
|
516
|
+
export interface ColorPickerProps {
|
|
517
|
+
value?: ColorPickerValue;
|
|
518
|
+
defaultValue?: ColorPickerValue;
|
|
519
|
+
open?: boolean;
|
|
520
|
+
defaultOpen?: boolean;
|
|
521
|
+
disabled?: boolean;
|
|
522
|
+
placement?: ColorPickerPlacement;
|
|
523
|
+
trigger?: ColorPickerTrigger;
|
|
524
|
+
format?: ColorFormatType;
|
|
525
|
+
defaultFormat?: ColorFormatType;
|
|
526
|
+
allowClear?: boolean | ColorPickerAllowClearConfig;
|
|
527
|
+
presets?: ColorPickerPresetItem[];
|
|
528
|
+
mode?: ColorPickerMode | ColorPickerMode[];
|
|
529
|
+
defaultMode?: ColorPickerMode;
|
|
530
|
+
arrow?: ColorPickerArrow;
|
|
531
|
+
showText?: boolean | ((color: Color | GradientColor) => any);
|
|
532
|
+
size?: ColorPickerSize;
|
|
533
|
+
disabledAlpha?: boolean;
|
|
534
|
+
disabledFormat?: boolean;
|
|
535
|
+
getPopupContainer?: ColorPickerGetPopupContainer;
|
|
536
|
+
autoAdjustOverflow?: boolean;
|
|
537
|
+
destroyTooltipOnHide?: boolean;
|
|
538
|
+
destroyOnHidden?: boolean;
|
|
539
|
+
panelRender?: (panel: any, extra: {
|
|
540
|
+
components: {
|
|
541
|
+
Picker: FC;
|
|
542
|
+
Presets: FC;
|
|
543
|
+
};
|
|
544
|
+
state: ColorPickerPanelRenderProps;
|
|
545
|
+
}) => any;
|
|
546
|
+
rootClassName?: string;
|
|
547
|
+
triggerClassName?: string;
|
|
548
|
+
popupClassName?: string;
|
|
549
|
+
panelClassName?: string;
|
|
550
|
+
className?: string;
|
|
551
|
+
style?: Record<string, any>;
|
|
552
|
+
classNames?: ColorPickerClassNames;
|
|
553
|
+
styles?: ColorPickerStyles;
|
|
554
|
+
onOpenChange?: (open: boolean) => void;
|
|
555
|
+
onFormatChange?: (format: ColorFormatType) => void;
|
|
556
|
+
onChange?: (value: Color | GradientColor | null, css: string) => void;
|
|
557
|
+
onClear?: () => void;
|
|
558
|
+
onChangeComplete?: (value: Color | GradientColor) => void;
|
|
559
|
+
children?: any;
|
|
560
|
+
[key: string]: any;
|
|
561
|
+
}
|
|
562
|
+
export interface HSBAColor {
|
|
563
|
+
h: number;
|
|
564
|
+
s: number;
|
|
565
|
+
b: number;
|
|
566
|
+
a: number;
|
|
567
|
+
}
|
|
568
|
+
export interface RGBAColor {
|
|
569
|
+
r: number;
|
|
570
|
+
g: number;
|
|
571
|
+
b: number;
|
|
572
|
+
a: number;
|
|
573
|
+
}
|
|
574
|
+
export type ColorLike = string | Color | null | undefined | Partial<RGBAColor> | Partial<HSBAColor> | {
|
|
575
|
+
h?: number;
|
|
576
|
+
s?: number;
|
|
577
|
+
v?: number;
|
|
578
|
+
a?: number;
|
|
579
|
+
};
|
|
580
|
+
export declare class Color {
|
|
581
|
+
private hsba;
|
|
582
|
+
constructor(value?: ColorLike);
|
|
583
|
+
clone(): Color;
|
|
584
|
+
toHex(): string;
|
|
585
|
+
toHexString(): string;
|
|
586
|
+
toRgb(): RGBAColor;
|
|
587
|
+
toRgbString(): string;
|
|
588
|
+
toHsb(): HSBAColor;
|
|
589
|
+
toHsbString(): string;
|
|
590
|
+
toCssString(): string;
|
|
591
|
+
withAlpha(alpha: number): Color;
|
|
592
|
+
withHue(hue: number): Color;
|
|
593
|
+
withSaturationBrightness(saturation: number, brightness: number): Color;
|
|
594
|
+
}
|
|
595
|
+
export declare class GradientColor {
|
|
596
|
+
private stops;
|
|
597
|
+
constructor(value?: ColorPickerGradientStop[], disabledAlpha?: boolean);
|
|
598
|
+
clone(): GradientColor;
|
|
599
|
+
toStops(): {
|
|
600
|
+
id: string;
|
|
601
|
+
color: Color;
|
|
602
|
+
percent: number;
|
|
603
|
+
}[];
|
|
604
|
+
toCssString(): string;
|
|
605
|
+
withStopColor(id: string, color: Color): GradientColor;
|
|
606
|
+
withStopPercent(id: string, percent: number): GradientColor;
|
|
607
|
+
addStop(percent: number, color: Color): GradientColor;
|
|
608
|
+
removeStop(id: string): GradientColor;
|
|
609
|
+
}
|
|
610
|
+
export declare const ColorPicker: FC<ColorPickerProps>;
|
|
339
611
|
export type AvatarStatus = "online" | "offline" | "placeholder";
|
|
340
612
|
export type AvatarShape = "circle" | "square";
|
|
341
613
|
export type AvatarImageFit = "cover" | "contain";
|
|
@@ -383,6 +655,93 @@ export type AvatarCompound = FC<AvatarProps> & {
|
|
|
383
655
|
Group: FC<AvatarGroupProps>;
|
|
384
656
|
};
|
|
385
657
|
export declare const AvatarCompound: AvatarCompound;
|
|
658
|
+
export type AnchorKey = string | number;
|
|
659
|
+
export type AnchorDirection = "vertical" | "horizontal";
|
|
660
|
+
export type AnchorContainer = HTMLElement | Window;
|
|
661
|
+
export interface AnchorItem {
|
|
662
|
+
key?: AnchorKey;
|
|
663
|
+
href: string;
|
|
664
|
+
title: any;
|
|
665
|
+
target?: string;
|
|
666
|
+
replace?: boolean;
|
|
667
|
+
description?: any;
|
|
668
|
+
className?: string;
|
|
669
|
+
disabled?: boolean;
|
|
670
|
+
children?: AnchorItem[];
|
|
671
|
+
}
|
|
672
|
+
export interface AnchorLinkProps extends Omit<AnchorItem, "children"> {
|
|
673
|
+
children?: any;
|
|
674
|
+
}
|
|
675
|
+
export interface AnchorClassNames {
|
|
676
|
+
root?: string;
|
|
677
|
+
list?: string;
|
|
678
|
+
item?: string;
|
|
679
|
+
link?: string;
|
|
680
|
+
title?: string;
|
|
681
|
+
description?: string;
|
|
682
|
+
indicator?: string;
|
|
683
|
+
}
|
|
684
|
+
export interface AnchorStyles {
|
|
685
|
+
root?: Record<string, any>;
|
|
686
|
+
list?: Record<string, any>;
|
|
687
|
+
item?: Record<string, any>;
|
|
688
|
+
link?: Record<string, any>;
|
|
689
|
+
title?: Record<string, any>;
|
|
690
|
+
description?: Record<string, any>;
|
|
691
|
+
indicator?: Record<string, any>;
|
|
692
|
+
}
|
|
693
|
+
export interface AnchorProps {
|
|
694
|
+
className?: string;
|
|
695
|
+
rootClassName?: string;
|
|
696
|
+
style?: Record<string, any>;
|
|
697
|
+
children?: any;
|
|
698
|
+
offsetTop?: number;
|
|
699
|
+
bounds?: number;
|
|
700
|
+
affix?: boolean;
|
|
701
|
+
showInkInFixed?: boolean;
|
|
702
|
+
getContainer?: () => AnchorContainer | undefined;
|
|
703
|
+
getCurrentAnchor?: (activeLink: string) => string;
|
|
704
|
+
onClick?: (event: MouseEvent, link: {
|
|
705
|
+
title: any;
|
|
706
|
+
href: string;
|
|
707
|
+
}) => void;
|
|
708
|
+
targetOffset?: number;
|
|
709
|
+
onChange?: (currentActiveLink: string) => void;
|
|
710
|
+
items?: AnchorItem[];
|
|
711
|
+
direction?: AnchorDirection;
|
|
712
|
+
replace?: boolean;
|
|
713
|
+
classNames?: AnchorClassNames;
|
|
714
|
+
styles?: AnchorStyles;
|
|
715
|
+
[key: string]: any;
|
|
716
|
+
}
|
|
717
|
+
declare const AnchorLink: FC<AnchorLinkProps>;
|
|
718
|
+
export type AnchorComponent = FC<AnchorProps> & {
|
|
719
|
+
Link: typeof AnchorLink;
|
|
720
|
+
};
|
|
721
|
+
export declare const Anchor: AnchorComponent;
|
|
722
|
+
export type AffixTarget = HTMLElement | Window | null | undefined;
|
|
723
|
+
export interface AffixClassNames {
|
|
724
|
+
root?: string;
|
|
725
|
+
fixed?: string;
|
|
726
|
+
}
|
|
727
|
+
export interface AffixStyles {
|
|
728
|
+
root?: Record<string, any>;
|
|
729
|
+
fixed?: Record<string, any>;
|
|
730
|
+
}
|
|
731
|
+
export interface AffixProps {
|
|
732
|
+
offsetTop?: number;
|
|
733
|
+
offsetBottom?: number;
|
|
734
|
+
style?: Record<string, any>;
|
|
735
|
+
onChange?: (affixed?: boolean) => void;
|
|
736
|
+
target?: () => AffixTarget;
|
|
737
|
+
className?: string;
|
|
738
|
+
rootClassName?: string;
|
|
739
|
+
children?: any;
|
|
740
|
+
classNames?: AffixClassNames;
|
|
741
|
+
styles?: AffixStyles;
|
|
742
|
+
[key: string]: any;
|
|
743
|
+
}
|
|
744
|
+
export declare const Affix: FC<AffixProps>;
|
|
386
745
|
export type DividerTone = "neutral" | "primary" | "secondary" | "accent" | "success" | "warning" | "info" | "error";
|
|
387
746
|
export type DividerLegacyDirection = "vertical" | "horizontal";
|
|
388
747
|
export type DividerOrientation = "horizontal" | "vertical";
|
|
@@ -411,6 +770,104 @@ export interface DividerProps {
|
|
|
411
770
|
[key: string]: any;
|
|
412
771
|
}
|
|
413
772
|
export declare const Divider: FC<DividerProps>;
|
|
773
|
+
export type DescriptionsSize = "small" | "default" | "middle" | "large" | "sm" | "md" | "lg";
|
|
774
|
+
export type DescriptionsLayout = "horizontal" | "vertical";
|
|
775
|
+
export type DescriptionsBreakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
776
|
+
export type DescriptionsResponsiveValue<T> = Partial<Record<DescriptionsBreakpoint, T>>;
|
|
777
|
+
export type DescriptionsSpan = number | "filled" | DescriptionsResponsiveValue<number>;
|
|
778
|
+
export interface DescriptionsClassNames {
|
|
779
|
+
root?: string;
|
|
780
|
+
header?: string;
|
|
781
|
+
title?: string;
|
|
782
|
+
extra?: string;
|
|
783
|
+
body?: string;
|
|
784
|
+
row?: string;
|
|
785
|
+
item?: string;
|
|
786
|
+
label?: string;
|
|
787
|
+
content?: string;
|
|
788
|
+
}
|
|
789
|
+
export interface DescriptionsStyles {
|
|
790
|
+
root?: Record<string, any>;
|
|
791
|
+
header?: Record<string, any>;
|
|
792
|
+
title?: Record<string, any>;
|
|
793
|
+
extra?: Record<string, any>;
|
|
794
|
+
body?: Record<string, any>;
|
|
795
|
+
row?: Record<string, any>;
|
|
796
|
+
item?: Record<string, any>;
|
|
797
|
+
label?: Record<string, any>;
|
|
798
|
+
content?: Record<string, any>;
|
|
799
|
+
}
|
|
800
|
+
export interface DescriptionsItemClassNames {
|
|
801
|
+
item?: string;
|
|
802
|
+
label?: string;
|
|
803
|
+
content?: string;
|
|
804
|
+
}
|
|
805
|
+
export interface DescriptionsItemStyles {
|
|
806
|
+
item?: Record<string, any>;
|
|
807
|
+
label?: Record<string, any>;
|
|
808
|
+
content?: Record<string, any>;
|
|
809
|
+
}
|
|
810
|
+
export interface DescriptionsItemProps {
|
|
811
|
+
key?: string | number;
|
|
812
|
+
label?: any;
|
|
813
|
+
children?: any;
|
|
814
|
+
content?: any;
|
|
815
|
+
span?: DescriptionsSpan;
|
|
816
|
+
className?: string;
|
|
817
|
+
style?: Record<string, any>;
|
|
818
|
+
labelClassName?: string;
|
|
819
|
+
labelStyle?: Record<string, any>;
|
|
820
|
+
contentClassName?: string;
|
|
821
|
+
contentStyle?: Record<string, any>;
|
|
822
|
+
classNames?: DescriptionsItemClassNames;
|
|
823
|
+
styles?: DescriptionsItemStyles;
|
|
824
|
+
[key: string]: any;
|
|
825
|
+
}
|
|
826
|
+
export interface DescriptionsProps {
|
|
827
|
+
className?: string;
|
|
828
|
+
style?: Record<string, any>;
|
|
829
|
+
title?: any;
|
|
830
|
+
extra?: any;
|
|
831
|
+
bordered?: boolean;
|
|
832
|
+
size?: DescriptionsSize;
|
|
833
|
+
children?: any;
|
|
834
|
+
layout?: DescriptionsLayout;
|
|
835
|
+
colon?: boolean;
|
|
836
|
+
column?: number | DescriptionsResponsiveValue<number>;
|
|
837
|
+
labelStyle?: Record<string, any>;
|
|
838
|
+
contentStyle?: Record<string, any>;
|
|
839
|
+
classNames?: DescriptionsClassNames;
|
|
840
|
+
styles?: DescriptionsStyles;
|
|
841
|
+
items?: DescriptionsItemProps[];
|
|
842
|
+
id?: string;
|
|
843
|
+
[key: string]: any;
|
|
844
|
+
}
|
|
845
|
+
export type DescriptionsCompound = FC<DescriptionsProps> & {
|
|
846
|
+
Item: FC<DescriptionsItemProps>;
|
|
847
|
+
};
|
|
848
|
+
export declare const DescriptionsCompound: DescriptionsCompound;
|
|
849
|
+
export type FlexOrientation = "horizontal" | "vertical";
|
|
850
|
+
export type FlexGapPreset = "small" | "middle" | "medium" | "large";
|
|
851
|
+
export type FlexWrap = boolean | "nowrap" | "wrap" | "wrap-reverse";
|
|
852
|
+
export type FlexJustify = "start" | "end" | "center" | "flex-start" | "flex-end" | "space-between" | "between" | "space-around" | "around" | "space-evenly" | "evenly" | "normal" | string;
|
|
853
|
+
export type FlexAlign = "start" | "end" | "center" | "stretch" | "baseline" | "top" | "middle" | "bottom" | "flex-start" | "flex-end" | "normal" | string;
|
|
854
|
+
export interface FlexProps {
|
|
855
|
+
as?: any;
|
|
856
|
+
component?: any;
|
|
857
|
+
vertical?: boolean;
|
|
858
|
+
orientation?: FlexOrientation;
|
|
859
|
+
inline?: boolean;
|
|
860
|
+
wrap?: FlexWrap;
|
|
861
|
+
justify?: FlexJustify;
|
|
862
|
+
align?: FlexAlign;
|
|
863
|
+
flex?: number | string;
|
|
864
|
+
gap?: FlexGapPreset | number | string;
|
|
865
|
+
className?: string;
|
|
866
|
+
style?: Record<string, any>;
|
|
867
|
+
children?: any;
|
|
868
|
+
[key: string]: any;
|
|
869
|
+
}
|
|
870
|
+
export declare const Flex: FC<FlexProps>;
|
|
414
871
|
export type FooterDirection = "vertical" | "horizontal";
|
|
415
872
|
export interface FooterLinkProps {
|
|
416
873
|
as?: any;
|
|
@@ -477,6 +934,282 @@ export type FooterCompound = FC<FooterProps> & {
|
|
|
477
934
|
Link: FC<FooterLinkProps>;
|
|
478
935
|
};
|
|
479
936
|
export declare const Footer: FooterCompound;
|
|
937
|
+
export type FormLayout = "horizontal" | "vertical" | "inline";
|
|
938
|
+
export type FormLabelAlign = "left" | "right";
|
|
939
|
+
export type FormSize = "small" | "middle" | "large" | "sm" | "md" | "lg";
|
|
940
|
+
export type FormRequiredMark = boolean | "optional" | ((label: any, info: {
|
|
941
|
+
required: boolean;
|
|
942
|
+
}) => any);
|
|
943
|
+
export type FormComponent = string | false;
|
|
944
|
+
export type NamePath = string | number | ReadonlyArray<string | number>;
|
|
945
|
+
export type NamePathSegment = string | number;
|
|
946
|
+
export type ValidateStatus = "success" | "warning" | "error" | "validating";
|
|
947
|
+
export interface FormValidateMessages {
|
|
948
|
+
required?: string;
|
|
949
|
+
whitespace?: string;
|
|
950
|
+
pattern?: string;
|
|
951
|
+
types?: Partial<Record<FormRuleType, string>>;
|
|
952
|
+
string?: {
|
|
953
|
+
len?: string;
|
|
954
|
+
min?: string;
|
|
955
|
+
max?: string;
|
|
956
|
+
};
|
|
957
|
+
number?: {
|
|
958
|
+
len?: string;
|
|
959
|
+
min?: string;
|
|
960
|
+
max?: string;
|
|
961
|
+
};
|
|
962
|
+
array?: {
|
|
963
|
+
len?: string;
|
|
964
|
+
min?: string;
|
|
965
|
+
max?: string;
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
export type FormRuleType = "string" | "number" | "boolean" | "array" | "email" | "url";
|
|
969
|
+
export interface FormRule {
|
|
970
|
+
required?: boolean;
|
|
971
|
+
message?: string;
|
|
972
|
+
min?: number;
|
|
973
|
+
max?: number;
|
|
974
|
+
len?: number;
|
|
975
|
+
type?: FormRuleType;
|
|
976
|
+
pattern?: RegExp;
|
|
977
|
+
whitespace?: boolean;
|
|
978
|
+
warningOnly?: boolean;
|
|
979
|
+
transform?: (value: any) => any;
|
|
980
|
+
validator?: (rule: FormRule, value: any, values: any) => void | string | Promise<void | string>;
|
|
981
|
+
}
|
|
982
|
+
export interface FieldError {
|
|
983
|
+
name: NamePathSegment[];
|
|
984
|
+
errors: string[];
|
|
985
|
+
warnings: string[];
|
|
986
|
+
}
|
|
987
|
+
export interface FieldData extends FieldError {
|
|
988
|
+
touched: boolean;
|
|
989
|
+
validating: boolean;
|
|
990
|
+
value: any;
|
|
991
|
+
}
|
|
992
|
+
export interface FormListFieldData {
|
|
993
|
+
key: number;
|
|
994
|
+
name: number;
|
|
995
|
+
fieldKey: number;
|
|
996
|
+
}
|
|
997
|
+
export interface FormListOperation {
|
|
998
|
+
add: (defaultValue?: any, insertIndex?: number) => void;
|
|
999
|
+
remove: (index: number | number[]) => void;
|
|
1000
|
+
move: (from: number, to: number) => void;
|
|
1001
|
+
}
|
|
1002
|
+
export interface FormErrorListProps {
|
|
1003
|
+
errors?: ReadonlyArray<any>;
|
|
1004
|
+
warnings?: ReadonlyArray<any>;
|
|
1005
|
+
className?: string;
|
|
1006
|
+
style?: Record<string, any>;
|
|
1007
|
+
}
|
|
1008
|
+
export interface FormProps {
|
|
1009
|
+
className?: string;
|
|
1010
|
+
style?: Record<string, any>;
|
|
1011
|
+
children?: any;
|
|
1012
|
+
render?: (form: FormInstance) => any;
|
|
1013
|
+
component?: FormComponent;
|
|
1014
|
+
layout?: FormLayout;
|
|
1015
|
+
size?: FormSize;
|
|
1016
|
+
disabled?: boolean;
|
|
1017
|
+
colon?: boolean;
|
|
1018
|
+
labelAlign?: FormLabelAlign;
|
|
1019
|
+
labelWrap?: boolean;
|
|
1020
|
+
labelCol?: FormColConfig;
|
|
1021
|
+
wrapperCol?: FormColConfig;
|
|
1022
|
+
requiredMark?: FormRequiredMark;
|
|
1023
|
+
initialValues?: Record<string, any>;
|
|
1024
|
+
form?: FormInstance;
|
|
1025
|
+
name?: string;
|
|
1026
|
+
preserve?: boolean;
|
|
1027
|
+
validateMessages?: FormValidateMessages;
|
|
1028
|
+
validateTrigger?: string | string[];
|
|
1029
|
+
scrollToFirstError?: boolean | (ScrollIntoViewOptions & {
|
|
1030
|
+
focus?: boolean;
|
|
1031
|
+
});
|
|
1032
|
+
onValuesChange?: (changedValues: any, allValues: any) => void;
|
|
1033
|
+
onFieldsChange?: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
1034
|
+
onFinish?: (values: any) => void;
|
|
1035
|
+
onFinishFailed?: (info: FormFinishFailedInfo) => void;
|
|
1036
|
+
onSubmit?: (event: Event) => void;
|
|
1037
|
+
[key: string]: any;
|
|
1038
|
+
}
|
|
1039
|
+
export interface FormItemProps {
|
|
1040
|
+
className?: string;
|
|
1041
|
+
style?: Record<string, any>;
|
|
1042
|
+
form?: FormInstance;
|
|
1043
|
+
children?: any;
|
|
1044
|
+
render?: (controlProps: Record<string, any>, meta: {
|
|
1045
|
+
value: any;
|
|
1046
|
+
touched: boolean;
|
|
1047
|
+
validating: boolean;
|
|
1048
|
+
errors: string[];
|
|
1049
|
+
warnings: string[];
|
|
1050
|
+
status?: ValidateStatus;
|
|
1051
|
+
}, form: FormInstance) => any;
|
|
1052
|
+
name?: NamePath;
|
|
1053
|
+
label?: any;
|
|
1054
|
+
extra?: any;
|
|
1055
|
+
help?: any;
|
|
1056
|
+
required?: boolean;
|
|
1057
|
+
rules?: FormRule[];
|
|
1058
|
+
dependencies?: NamePath[];
|
|
1059
|
+
noStyle?: boolean;
|
|
1060
|
+
hidden?: boolean;
|
|
1061
|
+
initialValue?: any;
|
|
1062
|
+
preserve?: boolean;
|
|
1063
|
+
valuePropName?: string;
|
|
1064
|
+
trigger?: string;
|
|
1065
|
+
validateTrigger?: string | string[];
|
|
1066
|
+
getValueFromEvent?: (...args: any[]) => any;
|
|
1067
|
+
getValueProps?: (value: any) => Record<string, any>;
|
|
1068
|
+
normalize?: (value: any, prevValue: any, values: any) => any;
|
|
1069
|
+
shouldUpdate?: boolean | ((prevValues: any, nextValues: any) => boolean);
|
|
1070
|
+
validateStatus?: ValidateStatus;
|
|
1071
|
+
hasFeedback?: boolean;
|
|
1072
|
+
messageVariables?: Record<string, string>;
|
|
1073
|
+
colon?: boolean;
|
|
1074
|
+
labelAlign?: FormLabelAlign;
|
|
1075
|
+
labelCol?: FormColConfig;
|
|
1076
|
+
wrapperCol?: FormColConfig;
|
|
1077
|
+
layout?: Exclude<FormLayout, "inline">;
|
|
1078
|
+
htmlFor?: string;
|
|
1079
|
+
[key: string]: any;
|
|
1080
|
+
}
|
|
1081
|
+
export interface FormListProps {
|
|
1082
|
+
form?: FormInstance;
|
|
1083
|
+
name: NamePath;
|
|
1084
|
+
children?: (fields: FormListFieldData[], operation: FormListOperation, meta: {
|
|
1085
|
+
errors: string[];
|
|
1086
|
+
warnings: string[];
|
|
1087
|
+
}) => any;
|
|
1088
|
+
render?: (fields: FormListFieldData[], operation: FormListOperation, meta: {
|
|
1089
|
+
errors: string[];
|
|
1090
|
+
warnings: string[];
|
|
1091
|
+
}) => any;
|
|
1092
|
+
initialValue?: any[];
|
|
1093
|
+
rules?: FormRule[];
|
|
1094
|
+
}
|
|
1095
|
+
export interface FormFinishFailedInfo {
|
|
1096
|
+
values: any;
|
|
1097
|
+
errorFields: FieldError[];
|
|
1098
|
+
outOfDate: boolean;
|
|
1099
|
+
}
|
|
1100
|
+
export interface FormInstance {
|
|
1101
|
+
getFieldValue: (name: NamePath) => any;
|
|
1102
|
+
getFieldsValue: (nameList?: true | NamePath[]) => any;
|
|
1103
|
+
setFieldValue: (name: NamePath, value: any) => void;
|
|
1104
|
+
setFieldsValue: (values: Record<string, any>) => void;
|
|
1105
|
+
resetFields: (nameList?: NamePath[]) => void;
|
|
1106
|
+
validateFields: (nameList?: NamePath[]) => Promise<any>;
|
|
1107
|
+
submit: () => void;
|
|
1108
|
+
scrollToField: (name: NamePath, options?: ScrollIntoViewOptions & {
|
|
1109
|
+
focus?: boolean;
|
|
1110
|
+
}) => void;
|
|
1111
|
+
isFieldTouched: (name: NamePath) => boolean;
|
|
1112
|
+
getFieldError: (name: NamePath) => string[];
|
|
1113
|
+
getFieldsError: (nameList?: NamePath[]) => FieldError[];
|
|
1114
|
+
}
|
|
1115
|
+
export interface FormColConfig {
|
|
1116
|
+
span?: number;
|
|
1117
|
+
offset?: number;
|
|
1118
|
+
}
|
|
1119
|
+
export type FormCompound = FC<FormProps> & {
|
|
1120
|
+
Item: FC<FormItemProps>;
|
|
1121
|
+
List: FC<FormListProps>;
|
|
1122
|
+
ErrorList: FC<FormErrorListProps>;
|
|
1123
|
+
useForm: (form?: FormInstance) => [
|
|
1124
|
+
FormInstance
|
|
1125
|
+
];
|
|
1126
|
+
useFormInstance: () => FormInstance;
|
|
1127
|
+
useWatch: (name: NamePath, form?: FormInstance) => any;
|
|
1128
|
+
};
|
|
1129
|
+
export declare const Form: FormCompound;
|
|
1130
|
+
export type GridBreakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
1131
|
+
export type GridGutterSize = number | string;
|
|
1132
|
+
export type GridAlign = "top" | "middle" | "bottom" | "stretch";
|
|
1133
|
+
export type GridJustify = "start" | "end" | "center" | "space-around" | "space-between" | "space-evenly";
|
|
1134
|
+
export type GridResponsiveValue<T> = Partial<Record<GridBreakpoint, T>>;
|
|
1135
|
+
export type GridResponsiveGutter = GridGutterSize | GridResponsiveValue<GridGutterSize>;
|
|
1136
|
+
export type GridGutter = GridResponsiveGutter | [
|
|
1137
|
+
GridResponsiveGutter,
|
|
1138
|
+
GridResponsiveGutter
|
|
1139
|
+
];
|
|
1140
|
+
export type GridStyle = string | Record<string, any>;
|
|
1141
|
+
export interface GridColConfig {
|
|
1142
|
+
span?: number;
|
|
1143
|
+
order?: number;
|
|
1144
|
+
offset?: number;
|
|
1145
|
+
push?: number;
|
|
1146
|
+
pull?: number;
|
|
1147
|
+
flex?: number | string;
|
|
1148
|
+
}
|
|
1149
|
+
export type GridColResponsive = number | GridColConfig;
|
|
1150
|
+
export interface GridRowProps {
|
|
1151
|
+
gutter?: GridGutter;
|
|
1152
|
+
align?: GridAlign;
|
|
1153
|
+
justify?: GridJustify;
|
|
1154
|
+
wrap?: boolean;
|
|
1155
|
+
className?: string;
|
|
1156
|
+
style?: GridStyle;
|
|
1157
|
+
children?: any;
|
|
1158
|
+
[key: string]: any;
|
|
1159
|
+
}
|
|
1160
|
+
export interface GridColProps extends GridColConfig {
|
|
1161
|
+
xs?: GridColResponsive;
|
|
1162
|
+
sm?: GridColResponsive;
|
|
1163
|
+
md?: GridColResponsive;
|
|
1164
|
+
lg?: GridColResponsive;
|
|
1165
|
+
xl?: GridColResponsive;
|
|
1166
|
+
xxl?: GridColResponsive;
|
|
1167
|
+
className?: string;
|
|
1168
|
+
style?: GridStyle;
|
|
1169
|
+
children?: any;
|
|
1170
|
+
[key: string]: any;
|
|
1171
|
+
}
|
|
1172
|
+
export interface GridCompound extends FC<GridRowProps> {
|
|
1173
|
+
Row: FC<GridRowProps>;
|
|
1174
|
+
Col: FC<GridColProps>;
|
|
1175
|
+
}
|
|
1176
|
+
export declare const GridCompound$1: GridCompound;
|
|
1177
|
+
export type MasonryBreakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
1178
|
+
export type MasonryResponsiveValue<T> = Partial<Record<MasonryBreakpoint, T>>;
|
|
1179
|
+
export type MasonrySpacePreset = "small" | "middle" | "large";
|
|
1180
|
+
export type MasonrySpace = MasonrySpacePreset | number | string;
|
|
1181
|
+
export type MasonryResponsiveSpace = MasonrySpace | MasonryResponsiveValue<MasonrySpace>;
|
|
1182
|
+
export type MasonryGap = MasonryResponsiveSpace | [
|
|
1183
|
+
MasonryResponsiveSpace,
|
|
1184
|
+
MasonryResponsiveSpace
|
|
1185
|
+
];
|
|
1186
|
+
export type MasonryStyle = string | Record<string, any>;
|
|
1187
|
+
export interface MasonryProps<T = any> {
|
|
1188
|
+
as?: any;
|
|
1189
|
+
columns?: number | MasonryResponsiveValue<number>;
|
|
1190
|
+
gap?: MasonryGap;
|
|
1191
|
+
gutter?: MasonryGap;
|
|
1192
|
+
columnGap?: MasonryResponsiveSpace;
|
|
1193
|
+
rowGap?: MasonryResponsiveSpace;
|
|
1194
|
+
minColumnWidth?: MasonryResponsiveSpace;
|
|
1195
|
+
minColumns?: number | MasonryResponsiveValue<number>;
|
|
1196
|
+
maxColumns?: number | MasonryResponsiveValue<number>;
|
|
1197
|
+
items?: T[];
|
|
1198
|
+
renderItem?: (item: T, index: number) => any;
|
|
1199
|
+
itemKey?: keyof T | ((item: T, index: number) => string | number);
|
|
1200
|
+
itemAs?: any;
|
|
1201
|
+
itemClassName?: string | ((item: T, index: number) => string | undefined);
|
|
1202
|
+
itemStyle?: Record<string, any> | ((item: T, index: number) => Record<string, any> | undefined);
|
|
1203
|
+
empty?: any;
|
|
1204
|
+
className?: string;
|
|
1205
|
+
style?: MasonryStyle;
|
|
1206
|
+
children?: any;
|
|
1207
|
+
[key: string]: any;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* Masonry 根容器负责列数解析和容器测量;子项统一包一层 wrapper,保证 break-inside 和垂直间距稳定。
|
|
1211
|
+
*/
|
|
1212
|
+
export declare const Masonry: FC<MasonryProps<any>>;
|
|
480
1213
|
export type ModalWidth = string | number;
|
|
481
1214
|
export type ModalInlineStyle = string | Record<string, string | number | null | undefined>;
|
|
482
1215
|
export type ModalGetContainer = string | HTMLElement | (() => HTMLElement) | false;
|
|
@@ -697,6 +1430,48 @@ export type DiffCompound = FC<DiffProps> & {
|
|
|
697
1430
|
Resizer: FC<DiffResizerProps>;
|
|
698
1431
|
};
|
|
699
1432
|
export declare const DiffCompound: DiffCompound;
|
|
1433
|
+
export type EmptySize = "sm" | "md" | "lg" | "small" | "default" | "large";
|
|
1434
|
+
export type EmptyAlign = "center" | "start";
|
|
1435
|
+
export type EmptyVariant = "surface" | "soft" | "outline";
|
|
1436
|
+
export interface EmptyClassNames {
|
|
1437
|
+
root?: string;
|
|
1438
|
+
image?: string;
|
|
1439
|
+
description?: string;
|
|
1440
|
+
footer?: string;
|
|
1441
|
+
}
|
|
1442
|
+
export interface EmptyStyles {
|
|
1443
|
+
root?: Record<string, any>;
|
|
1444
|
+
image?: Record<string, any>;
|
|
1445
|
+
description?: Record<string, any>;
|
|
1446
|
+
footer?: Record<string, any>;
|
|
1447
|
+
}
|
|
1448
|
+
export interface EmptyPresentedImageProps {
|
|
1449
|
+
className?: string;
|
|
1450
|
+
style?: any;
|
|
1451
|
+
size?: EmptySize;
|
|
1452
|
+
}
|
|
1453
|
+
export interface EmptyProps {
|
|
1454
|
+
image?: string | FC<EmptyPresentedImageProps> | any;
|
|
1455
|
+
description?: any;
|
|
1456
|
+
imageStyle?: any;
|
|
1457
|
+
imageAlt?: string;
|
|
1458
|
+
children?: any;
|
|
1459
|
+
size?: EmptySize;
|
|
1460
|
+
align?: EmptyAlign;
|
|
1461
|
+
variant?: EmptyVariant;
|
|
1462
|
+
className?: string;
|
|
1463
|
+
rootClassName?: string;
|
|
1464
|
+
style?: any;
|
|
1465
|
+
classNames?: EmptyClassNames;
|
|
1466
|
+
styles?: EmptyStyles;
|
|
1467
|
+
role?: string;
|
|
1468
|
+
[key: string]: any;
|
|
1469
|
+
}
|
|
1470
|
+
export interface EmptyType extends FC<EmptyProps> {
|
|
1471
|
+
PRESENTED_IMAGE_DEFAULT: FC<EmptyPresentedImageProps>;
|
|
1472
|
+
PRESENTED_IMAGE_SIMPLE: FC<EmptyPresentedImageProps>;
|
|
1473
|
+
}
|
|
1474
|
+
export declare const Empty: EmptyType;
|
|
700
1475
|
export type Hover3DAs = "div" | "a";
|
|
701
1476
|
export interface Hover3DSurfaceProps {
|
|
702
1477
|
[key: string]: any;
|
|
@@ -1976,14 +2751,81 @@ export interface LinkProps {
|
|
|
1976
2751
|
[key: string]: any;
|
|
1977
2752
|
}
|
|
1978
2753
|
export declare const Link: FC<LinkProps>;
|
|
1979
|
-
export type
|
|
1980
|
-
export type
|
|
1981
|
-
export type
|
|
1982
|
-
export type
|
|
1983
|
-
export type
|
|
1984
|
-
export interface
|
|
1985
|
-
|
|
1986
|
-
|
|
2754
|
+
export type LayoutBreakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
2755
|
+
export type LayoutStyle = string | Record<string, any>;
|
|
2756
|
+
export type LayoutCollapseType = "clickTrigger" | "responsive";
|
|
2757
|
+
export type LayoutSiderTheme = "light" | "dark";
|
|
2758
|
+
export type LayoutSiderTriggerPosition = "start" | "end";
|
|
2759
|
+
export interface LayoutProps {
|
|
2760
|
+
as?: any;
|
|
2761
|
+
hasSider?: boolean;
|
|
2762
|
+
className?: string;
|
|
2763
|
+
style?: LayoutStyle;
|
|
2764
|
+
children?: any;
|
|
2765
|
+
[key: string]: any;
|
|
2766
|
+
}
|
|
2767
|
+
export interface LayoutSectionProps {
|
|
2768
|
+
as?: any;
|
|
2769
|
+
className?: string;
|
|
2770
|
+
style?: LayoutStyle;
|
|
2771
|
+
children?: any;
|
|
2772
|
+
[key: string]: any;
|
|
2773
|
+
}
|
|
2774
|
+
export interface LayoutSiderTriggerRenderMeta {
|
|
2775
|
+
collapsed: boolean;
|
|
2776
|
+
below: boolean;
|
|
2777
|
+
zeroWidth: boolean;
|
|
2778
|
+
toggle: () => void;
|
|
2779
|
+
}
|
|
2780
|
+
export interface LayoutSiderTriggerProps {
|
|
2781
|
+
className?: string;
|
|
2782
|
+
style?: LayoutStyle;
|
|
2783
|
+
children?: any;
|
|
2784
|
+
[key: string]: any;
|
|
2785
|
+
}
|
|
2786
|
+
export interface LayoutSiderProps {
|
|
2787
|
+
as?: any;
|
|
2788
|
+
className?: string;
|
|
2789
|
+
style?: LayoutStyle;
|
|
2790
|
+
bodyClassName?: string;
|
|
2791
|
+
bodyStyle?: LayoutStyle;
|
|
2792
|
+
footer?: any;
|
|
2793
|
+
footerClassName?: string;
|
|
2794
|
+
footerStyle?: LayoutStyle;
|
|
2795
|
+
triggerClassName?: string;
|
|
2796
|
+
triggerStyle?: LayoutStyle;
|
|
2797
|
+
theme?: LayoutSiderTheme;
|
|
2798
|
+
width?: number | string;
|
|
2799
|
+
collapsedWidth?: number | string;
|
|
2800
|
+
collapsed?: boolean;
|
|
2801
|
+
defaultCollapsed?: boolean;
|
|
2802
|
+
collapsible?: boolean;
|
|
2803
|
+
breakpoint?: LayoutBreakpoint;
|
|
2804
|
+
reverseArrow?: boolean;
|
|
2805
|
+
trigger?: any | ((meta: LayoutSiderTriggerRenderMeta) => any);
|
|
2806
|
+
zeroWidthTriggerStyle?: LayoutStyle;
|
|
2807
|
+
triggerPosition?: LayoutSiderTriggerPosition;
|
|
2808
|
+
onCollapse?: (collapsed: boolean, type: LayoutCollapseType) => void;
|
|
2809
|
+
onBreakpoint?: (broken: boolean) => void;
|
|
2810
|
+
children?: any;
|
|
2811
|
+
[key: string]: any;
|
|
2812
|
+
}
|
|
2813
|
+
export interface LayoutCompound extends FC<LayoutProps> {
|
|
2814
|
+
Header: FC<LayoutSectionProps>;
|
|
2815
|
+
Content: FC<LayoutSectionProps>;
|
|
2816
|
+
Footer: FC<LayoutSectionProps>;
|
|
2817
|
+
Sider: FC<LayoutSiderProps>;
|
|
2818
|
+
Trigger: FC<LayoutSiderTriggerProps>;
|
|
2819
|
+
}
|
|
2820
|
+
export declare const Layout: LayoutCompound;
|
|
2821
|
+
export type MenuKey = string | number;
|
|
2822
|
+
export type MenuSize = "xs" | "sm" | "md" | "lg" | "xl" | "small" | "middle" | "medium" | "large";
|
|
2823
|
+
export type MenuDirection = "vertical" | "horizontal";
|
|
2824
|
+
export type MenuMode = "vertical" | "horizontal" | "inline";
|
|
2825
|
+
export type MenuTriggerSubMenuAction = "hover" | "click";
|
|
2826
|
+
export interface MenuClickInfo {
|
|
2827
|
+
key?: MenuKey;
|
|
2828
|
+
keyPath: MenuKey[];
|
|
1987
2829
|
item?: MenuDataEntry;
|
|
1988
2830
|
domEvent: MouseEvent;
|
|
1989
2831
|
}
|
|
@@ -2186,6 +3028,97 @@ export type MenuCompound = FC<MenuProps> & {
|
|
|
2186
3028
|
Divider: FC<MenuDividerProps>;
|
|
2187
3029
|
};
|
|
2188
3030
|
export declare const MenuCompound: MenuCompound;
|
|
3031
|
+
export type MentionPlacement = "top" | "bottom";
|
|
3032
|
+
export type MentionsSize = "xs" | "sm" | "md" | "lg" | "xl" | "small" | "middle" | "medium" | "large";
|
|
3033
|
+
export type MentionsStatus = "success" | "warning" | "error" | "validating";
|
|
3034
|
+
export type MentionsVariant = "outlined" | "filled" | "ghost" | "borderless" | "underlined";
|
|
3035
|
+
export interface MentionsAutoSizeConfig {
|
|
3036
|
+
minRows?: number;
|
|
3037
|
+
maxRows?: number;
|
|
3038
|
+
}
|
|
3039
|
+
export interface MentionsAllowClearConfig {
|
|
3040
|
+
clearIcon?: any;
|
|
3041
|
+
}
|
|
3042
|
+
export interface MentionsOption {
|
|
3043
|
+
key?: string;
|
|
3044
|
+
value: string;
|
|
3045
|
+
label?: any;
|
|
3046
|
+
disabled?: boolean;
|
|
3047
|
+
className?: string;
|
|
3048
|
+
style?: any;
|
|
3049
|
+
[key: string]: any;
|
|
3050
|
+
}
|
|
3051
|
+
export interface MentionsClassNames {
|
|
3052
|
+
root?: string;
|
|
3053
|
+
textarea?: string;
|
|
3054
|
+
popup?: string;
|
|
3055
|
+
option?: string;
|
|
3056
|
+
empty?: string;
|
|
3057
|
+
clear?: string;
|
|
3058
|
+
}
|
|
3059
|
+
export interface MentionsStyles {
|
|
3060
|
+
root?: any;
|
|
3061
|
+
textarea?: any;
|
|
3062
|
+
popup?: any;
|
|
3063
|
+
}
|
|
3064
|
+
export interface MentionsConfig {
|
|
3065
|
+
prefix?: string | string[];
|
|
3066
|
+
split?: string;
|
|
3067
|
+
}
|
|
3068
|
+
export interface MentionsEntity {
|
|
3069
|
+
prefix: string;
|
|
3070
|
+
value: string;
|
|
3071
|
+
}
|
|
3072
|
+
export interface MentionsProps {
|
|
3073
|
+
value?: string;
|
|
3074
|
+
defaultValue?: string;
|
|
3075
|
+
options?: MentionsOption[];
|
|
3076
|
+
prefix?: string | string[];
|
|
3077
|
+
split?: string;
|
|
3078
|
+
searchDebounce?: number;
|
|
3079
|
+
placement?: MentionPlacement;
|
|
3080
|
+
size?: MentionsSize;
|
|
3081
|
+
status?: MentionsStatus;
|
|
3082
|
+
variant?: MentionsVariant;
|
|
3083
|
+
allowClear?: boolean | MentionsAllowClearConfig;
|
|
3084
|
+
autoSize?: boolean | MentionsAutoSizeConfig;
|
|
3085
|
+
loading?: boolean;
|
|
3086
|
+
disabled?: boolean;
|
|
3087
|
+
readOnly?: boolean;
|
|
3088
|
+
notFoundContent?: any;
|
|
3089
|
+
filterOption?: false | ((input: string, option: MentionsOption) => boolean);
|
|
3090
|
+
validateSearch?: (text: string, props: MentionsProps) => boolean;
|
|
3091
|
+
onChange?: (text: string) => void;
|
|
3092
|
+
onInput?: (event: Event) => void;
|
|
3093
|
+
onNativeChange?: (event: Event) => void;
|
|
3094
|
+
onSearch?: (text: string, prefix: string) => void;
|
|
3095
|
+
onSelect?: (option: MentionsOption, prefix: string) => void;
|
|
3096
|
+
onFocus?: (event: FocusEvent) => void;
|
|
3097
|
+
onBlur?: (event: FocusEvent) => void;
|
|
3098
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
3099
|
+
onCompositionStart?: (event: CompositionEvent) => void;
|
|
3100
|
+
onCompositionEnd?: (event: CompositionEvent) => void;
|
|
3101
|
+
onResize?: (size: {
|
|
3102
|
+
width: number;
|
|
3103
|
+
height: number;
|
|
3104
|
+
}) => void;
|
|
3105
|
+
onPopupScroll?: (event: Event) => void;
|
|
3106
|
+
rootClassName?: string;
|
|
3107
|
+
textareaClassName?: string;
|
|
3108
|
+
popupClassName?: string;
|
|
3109
|
+
popupStyle?: any;
|
|
3110
|
+
classNames?: MentionsClassNames;
|
|
3111
|
+
styles?: MentionsStyles;
|
|
3112
|
+
className?: string;
|
|
3113
|
+
style?: any;
|
|
3114
|
+
children?: any;
|
|
3115
|
+
[key: string]: any;
|
|
3116
|
+
}
|
|
3117
|
+
declare const MentionsRoot: FC<MentionsProps>;
|
|
3118
|
+
export type CompoundedComponent = typeof MentionsRoot & {
|
|
3119
|
+
getMentions: (value: string, config?: MentionsConfig) => MentionsEntity[];
|
|
3120
|
+
};
|
|
3121
|
+
export declare const Mentions: CompoundedComponent;
|
|
2189
3122
|
export type JoinDirection = "horizontal" | "vertical";
|
|
2190
3123
|
export interface JoinItemProps {
|
|
2191
3124
|
as?: any;
|
|
@@ -2809,6 +3742,7 @@ export interface InputProps {
|
|
|
2809
3742
|
clearButtonClassName?: string;
|
|
2810
3743
|
className?: string;
|
|
2811
3744
|
disabled?: boolean;
|
|
3745
|
+
readOnly?: boolean;
|
|
2812
3746
|
value?: string | number;
|
|
2813
3747
|
defaultValue?: string | number;
|
|
2814
3748
|
onClear?: (event: MouseEvent) => void;
|
|
@@ -2853,6 +3787,50 @@ export type InputCompound = FC<InputProps> & {
|
|
|
2853
3787
|
TextArea: FC<TextareaProps>;
|
|
2854
3788
|
};
|
|
2855
3789
|
export declare const InputCompound: InputCompound;
|
|
3790
|
+
export type InputNumberValue = number | string;
|
|
3791
|
+
export type InputNumberEmitter = "handler" | "keydown" | "wheel";
|
|
3792
|
+
export interface InputNumberFormatterInfo {
|
|
3793
|
+
userTyping: boolean;
|
|
3794
|
+
input: string;
|
|
3795
|
+
}
|
|
3796
|
+
export interface InputNumberControlsConfig {
|
|
3797
|
+
upIcon?: any;
|
|
3798
|
+
downIcon?: any;
|
|
3799
|
+
}
|
|
3800
|
+
export interface InputNumberStepInfo {
|
|
3801
|
+
offset: number;
|
|
3802
|
+
type: "up" | "down";
|
|
3803
|
+
emitter: InputNumberEmitter;
|
|
3804
|
+
}
|
|
3805
|
+
export interface InputNumberProps extends Omit<InputProps, "type" | "value" | "defaultValue" | "onChange"> {
|
|
3806
|
+
value?: InputNumberValue | null;
|
|
3807
|
+
defaultValue?: InputNumberValue;
|
|
3808
|
+
min?: InputNumberValue;
|
|
3809
|
+
max?: InputNumberValue;
|
|
3810
|
+
step?: InputNumberValue;
|
|
3811
|
+
precision?: number;
|
|
3812
|
+
stringMode?: boolean;
|
|
3813
|
+
keyboard?: boolean;
|
|
3814
|
+
changeOnWheel?: boolean;
|
|
3815
|
+
changeOnBlur?: boolean;
|
|
3816
|
+
controls?: boolean | InputNumberControlsConfig;
|
|
3817
|
+
decimalSeparator?: string;
|
|
3818
|
+
color?: InputColor;
|
|
3819
|
+
size?: InputSize;
|
|
3820
|
+
status?: InputStatus;
|
|
3821
|
+
variant?: InputVariant;
|
|
3822
|
+
readOnly?: boolean;
|
|
3823
|
+
formatter?: (value: InputNumberValue | null, info: InputNumberFormatterInfo) => string;
|
|
3824
|
+
parser?: (input: string) => number | string | null | undefined;
|
|
3825
|
+
onChange?: (value: InputNumberValue | null) => void;
|
|
3826
|
+
onStep?: (value: InputNumberValue, info: InputNumberStepInfo) => void;
|
|
3827
|
+
onBlur?: (event: FocusEvent) => void;
|
|
3828
|
+
onFocus?: (event: FocusEvent) => void;
|
|
3829
|
+
onWheel?: (event: WheelEvent) => void;
|
|
3830
|
+
onCompositionStart?: (event: CompositionEvent) => void;
|
|
3831
|
+
onCompositionEnd?: (event: CompositionEvent) => void;
|
|
3832
|
+
}
|
|
3833
|
+
export declare const InputNumber: FC<InputNumberProps>;
|
|
2856
3834
|
export type LabelControl = "input" | "select" | "textarea" | "none";
|
|
2857
3835
|
export type LabelTone = "neutral" | "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
2858
3836
|
export type LabelColor = "default" | LabelTone;
|
|
@@ -3303,6 +4281,59 @@ export type PaginationCompound = FC<PaginationProps> & {
|
|
|
3303
4281
|
Item: FC<PaginationItemProps>;
|
|
3304
4282
|
};
|
|
3305
4283
|
export declare const Pagination: PaginationCompound;
|
|
4284
|
+
export type PopoverPlacement = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom";
|
|
4285
|
+
export type PopoverTrigger = "hover" | "focus" | "click" | "contextMenu";
|
|
4286
|
+
export type PopoverArrow = boolean | {
|
|
4287
|
+
pointAtCenter?: boolean;
|
|
4288
|
+
};
|
|
4289
|
+
export interface PopoverClassNames {
|
|
4290
|
+
root?: string;
|
|
4291
|
+
trigger?: string;
|
|
4292
|
+
overlay?: string;
|
|
4293
|
+
panel?: string;
|
|
4294
|
+
arrow?: string;
|
|
4295
|
+
header?: string;
|
|
4296
|
+
title?: string;
|
|
4297
|
+
content?: string;
|
|
4298
|
+
}
|
|
4299
|
+
export interface PopoverStyles {
|
|
4300
|
+
root?: Record<string, any>;
|
|
4301
|
+
trigger?: Record<string, any>;
|
|
4302
|
+
overlay?: Record<string, any>;
|
|
4303
|
+
panel?: Record<string, any>;
|
|
4304
|
+
arrow?: Record<string, any>;
|
|
4305
|
+
header?: Record<string, any>;
|
|
4306
|
+
title?: Record<string, any>;
|
|
4307
|
+
content?: Record<string, any>;
|
|
4308
|
+
}
|
|
4309
|
+
export interface PopoverProps {
|
|
4310
|
+
as?: string;
|
|
4311
|
+
title?: any;
|
|
4312
|
+
content?: any;
|
|
4313
|
+
overlay?: any;
|
|
4314
|
+
placement?: PopoverPlacement;
|
|
4315
|
+
trigger?: PopoverTrigger | PopoverTrigger[];
|
|
4316
|
+
open?: boolean;
|
|
4317
|
+
defaultOpen?: boolean;
|
|
4318
|
+
disabled?: boolean;
|
|
4319
|
+
arrow?: PopoverArrow;
|
|
4320
|
+
destroyOnHidden?: boolean;
|
|
4321
|
+
mouseEnterDelay?: number;
|
|
4322
|
+
mouseLeaveDelay?: number;
|
|
4323
|
+
zIndex?: number;
|
|
4324
|
+
className?: string;
|
|
4325
|
+
style?: string | Record<string, any>;
|
|
4326
|
+
triggerClassName?: string;
|
|
4327
|
+
triggerStyle?: string | Record<string, any>;
|
|
4328
|
+
overlayClassName?: string;
|
|
4329
|
+
overlayStyle?: Record<string, any>;
|
|
4330
|
+
classNames?: PopoverClassNames;
|
|
4331
|
+
styles?: PopoverStyles;
|
|
4332
|
+
onOpenChange?: (open: boolean) => void;
|
|
4333
|
+
children?: any;
|
|
4334
|
+
[key: string]: any;
|
|
4335
|
+
}
|
|
4336
|
+
export declare const Root: FC<PopoverProps>;
|
|
3306
4337
|
export type SelectColor = "neutral" | "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
3307
4338
|
export type SelectStatus = "success" | "warning" | "error";
|
|
3308
4339
|
export type SelectVariant = "outlined" | "filled" | "ghost" | "borderless";
|
|
@@ -3426,120 +4457,784 @@ export type SelectCompound = FC<SelectProps> & {
|
|
|
3426
4457
|
Shell: FC<SelectShellProps>;
|
|
3427
4458
|
};
|
|
3428
4459
|
export declare const Select: SelectCompound;
|
|
3429
|
-
export type
|
|
3430
|
-
export type
|
|
3431
|
-
export type
|
|
3432
|
-
export type
|
|
3433
|
-
export
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
height?: number;
|
|
3439
|
-
} | "small" | "default" | "medium";
|
|
3440
|
-
export type ProgressStrokeColor = string | string[] | {
|
|
3441
|
-
from: string;
|
|
3442
|
-
to: string;
|
|
3443
|
-
direction?: string;
|
|
3444
|
-
};
|
|
3445
|
-
export type ProgressSteps = number | {
|
|
3446
|
-
count: number;
|
|
3447
|
-
gap: number;
|
|
3448
|
-
};
|
|
3449
|
-
export type ProgressGapPlacement = "top" | "bottom" | "start" | "end";
|
|
3450
|
-
export interface ProgressSuccessProps {
|
|
3451
|
-
percent?: number;
|
|
3452
|
-
strokeColor?: string;
|
|
4460
|
+
export type SegmentedValue = string | number;
|
|
4461
|
+
export type SegmentedOrientation = "horizontal" | "vertical";
|
|
4462
|
+
export type SegmentedShape = "default" | "round";
|
|
4463
|
+
export type SegmentedSize = "small" | "default" | "middle" | "medium" | "large" | "sm" | "md" | "lg";
|
|
4464
|
+
export interface SegmentedSemanticClassNames {
|
|
4465
|
+
root?: string;
|
|
4466
|
+
item?: string;
|
|
4467
|
+
icon?: string;
|
|
4468
|
+
label?: string;
|
|
3453
4469
|
}
|
|
3454
|
-
export interface
|
|
3455
|
-
|
|
3456
|
-
|
|
4470
|
+
export interface SegmentedSemanticStyles {
|
|
4471
|
+
root?: any;
|
|
4472
|
+
item?: any;
|
|
4473
|
+
icon?: any;
|
|
4474
|
+
label?: any;
|
|
3457
4475
|
}
|
|
3458
|
-
export interface
|
|
3459
|
-
|
|
4476
|
+
export interface SegmentedLabeledOption<ValueType = SegmentedValue> {
|
|
4477
|
+
value: ValueType;
|
|
4478
|
+
label?: any;
|
|
4479
|
+
icon?: any;
|
|
4480
|
+
disabled?: boolean;
|
|
3460
4481
|
className?: string;
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
4482
|
+
style?: any;
|
|
4483
|
+
title?: string;
|
|
4484
|
+
tooltip?: string | {
|
|
4485
|
+
title?: any;
|
|
4486
|
+
};
|
|
4487
|
+
ariaLabel?: string;
|
|
4488
|
+
}
|
|
4489
|
+
export type SegmentedOptions<ValueType = SegmentedValue> = Array<ValueType | SegmentedLabeledOption<ValueType>>;
|
|
4490
|
+
export type SegmentedSemanticInput<T> = T | ((info: {
|
|
4491
|
+
props: SegmentedProps<any>;
|
|
4492
|
+
}) => T);
|
|
4493
|
+
export interface SegmentedProps<ValueType = SegmentedValue> {
|
|
4494
|
+
options?: SegmentedOptions<ValueType>;
|
|
4495
|
+
value?: ValueType;
|
|
4496
|
+
defaultValue?: ValueType;
|
|
4497
|
+
disabled?: boolean;
|
|
4498
|
+
block?: boolean;
|
|
4499
|
+
size?: SegmentedSize;
|
|
4500
|
+
vertical?: boolean;
|
|
4501
|
+
orientation?: SegmentedOrientation;
|
|
4502
|
+
shape?: SegmentedShape;
|
|
4503
|
+
name?: string;
|
|
4504
|
+
className?: string;
|
|
4505
|
+
style?: any;
|
|
4506
|
+
classNames?: SegmentedSemanticInput<SegmentedSemanticClassNames>;
|
|
4507
|
+
styles?: SegmentedSemanticInput<SegmentedSemanticStyles>;
|
|
4508
|
+
onChange?: (value: ValueType) => void;
|
|
3482
4509
|
[key: string]: any;
|
|
3483
4510
|
}
|
|
3484
|
-
export declare const
|
|
3485
|
-
type
|
|
3486
|
-
|
|
3487
|
-
|
|
4511
|
+
export declare const Segmented: FC<SegmentedProps<any>>;
|
|
4512
|
+
export type TimePickerSize = "xs" | "sm" | "md" | "lg" | "xl" | "small" | "middle" | "medium" | "large";
|
|
4513
|
+
export type TimePickerStatus = "warning" | "error";
|
|
4514
|
+
export type TimePickerVariant = "outlined" | "filled" | "ghost" | "borderless";
|
|
4515
|
+
export type TimePickerPlacement = "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
4516
|
+
export type TimePickerPanelColumn = "hour" | "minute" | "second" | "meridiem";
|
|
4517
|
+
export type TimePickerChangeSource = "panel" | "input" | "clear" | "now" | "confirm";
|
|
4518
|
+
export type TimeMeridiem = "am" | "pm";
|
|
4519
|
+
export interface TimePickerValue {
|
|
4520
|
+
hour: number;
|
|
4521
|
+
minute: number;
|
|
4522
|
+
second: number;
|
|
4523
|
+
meridiem: TimeMeridiem;
|
|
4524
|
+
text: string;
|
|
4525
|
+
}
|
|
4526
|
+
export interface TimePickerDisabledConfig {
|
|
4527
|
+
disabledHours?: () => number[];
|
|
4528
|
+
disabledMinutes?: (selectedHour: number) => number[];
|
|
4529
|
+
disabledSeconds?: (selectedHour: number, selectedMinute: number) => number[];
|
|
4530
|
+
}
|
|
4531
|
+
export interface TimePickerCellRenderInfo {
|
|
4532
|
+
subType: TimePickerPanelColumn;
|
|
4533
|
+
selected: boolean;
|
|
4534
|
+
disabled: boolean;
|
|
4535
|
+
label: string;
|
|
3488
4536
|
}
|
|
3489
|
-
export
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
export type RadialProgressSize = number | string | "small" | "default" | "medium";
|
|
3493
|
-
export type RadialProgressSteps = number | {
|
|
3494
|
-
count: number;
|
|
3495
|
-
gap: number;
|
|
3496
|
-
};
|
|
3497
|
-
export type RadialProgressGapPlacement = "top" | "bottom" | "start" | "end";
|
|
3498
|
-
export interface RadialProgressSuccessProps {
|
|
3499
|
-
percent?: number;
|
|
3500
|
-
value?: string | number;
|
|
3501
|
-
strokeColor?: string;
|
|
4537
|
+
export interface TimePickerChangeInfo {
|
|
4538
|
+
selection: TimePickerValue | null;
|
|
4539
|
+
source: TimePickerChangeSource;
|
|
3502
4540
|
}
|
|
3503
|
-
export interface
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
4541
|
+
export interface TimePickerAllowClearConfig {
|
|
4542
|
+
clearIcon?: any;
|
|
4543
|
+
}
|
|
4544
|
+
export interface TimePickerProps {
|
|
4545
|
+
value?: string | null;
|
|
4546
|
+
defaultValue?: string | null;
|
|
4547
|
+
defaultOpenValue?: string | null;
|
|
4548
|
+
open?: boolean;
|
|
4549
|
+
defaultOpen?: boolean;
|
|
4550
|
+
disabled?: boolean;
|
|
4551
|
+
allowClear?: boolean | TimePickerAllowClearConfig;
|
|
4552
|
+
clearLabel?: string;
|
|
4553
|
+
format?: string;
|
|
4554
|
+
use12Hours?: boolean;
|
|
4555
|
+
hourStep?: number;
|
|
4556
|
+
minuteStep?: number;
|
|
4557
|
+
secondStep?: number;
|
|
4558
|
+
hideDisabledOptions?: boolean;
|
|
4559
|
+
inputReadOnly?: boolean;
|
|
4560
|
+
needConfirm?: boolean;
|
|
4561
|
+
showNow?: boolean;
|
|
4562
|
+
nowLabel?: string;
|
|
4563
|
+
confirmLabel?: string;
|
|
4564
|
+
changeOnScroll?: boolean;
|
|
4565
|
+
placeholder?: string;
|
|
4566
|
+
placement?: TimePickerPlacement;
|
|
4567
|
+
status?: TimePickerStatus;
|
|
4568
|
+
variant?: TimePickerVariant;
|
|
4569
|
+
size?: TimePickerSize;
|
|
4570
|
+
prefix?: any;
|
|
4571
|
+
suffixIcon?: any;
|
|
4572
|
+
addonBefore?: any;
|
|
4573
|
+
addonAfter?: any;
|
|
4574
|
+
renderExtraFooter?: () => any;
|
|
4575
|
+
disabledTime?: (selection: TimePickerValue | null) => TimePickerDisabledConfig | undefined;
|
|
4576
|
+
cellRender?: (current: number | string, info: TimePickerCellRenderInfo) => any;
|
|
4577
|
+
rootClassName?: string;
|
|
4578
|
+
popupClassName?: string;
|
|
4579
|
+
panelClassName?: string;
|
|
4580
|
+
inputClassName?: string;
|
|
3524
4581
|
className?: string;
|
|
3525
|
-
|
|
4582
|
+
onChange?: (value: string | null, timeString: string, info: TimePickerChangeInfo) => void;
|
|
4583
|
+
onCalendarChange?: (value: string | null, timeString: string, info: TimePickerChangeInfo) => void;
|
|
4584
|
+
onOpenChange?: (open: boolean) => void;
|
|
4585
|
+
onInput?: (event: Event) => void;
|
|
4586
|
+
onFocus?: (event: FocusEvent) => void;
|
|
4587
|
+
onBlur?: (event: FocusEvent) => void;
|
|
3526
4588
|
[key: string]: any;
|
|
3527
4589
|
}
|
|
3528
|
-
export
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
export type RadioOrientation = "horizontal" | "vertical";
|
|
3535
|
-
export interface RadioChangeMeta {
|
|
3536
|
-
checked: boolean;
|
|
3537
|
-
value?: RadioValue;
|
|
3538
|
-
optionType: RadioOptionType;
|
|
4590
|
+
export interface TimeRangePickerChangeInfo {
|
|
4591
|
+
range: "start" | "end" | "clear";
|
|
4592
|
+
values: [
|
|
4593
|
+
TimePickerValue | null,
|
|
4594
|
+
TimePickerValue | null
|
|
4595
|
+
];
|
|
3539
4596
|
}
|
|
3540
|
-
export interface
|
|
3541
|
-
|
|
3542
|
-
|
|
4597
|
+
export interface TimeRangePickerProps {
|
|
4598
|
+
value?: [
|
|
4599
|
+
string | null,
|
|
4600
|
+
string | null
|
|
4601
|
+
];
|
|
4602
|
+
defaultValue?: [
|
|
4603
|
+
string | null,
|
|
4604
|
+
string | null
|
|
4605
|
+
];
|
|
4606
|
+
defaultOpenValue?: [
|
|
4607
|
+
string | null,
|
|
4608
|
+
string | null
|
|
4609
|
+
] | string | null;
|
|
4610
|
+
disabled?: boolean | [
|
|
4611
|
+
boolean,
|
|
4612
|
+
boolean
|
|
4613
|
+
];
|
|
4614
|
+
placeholder?: string | [
|
|
4615
|
+
string,
|
|
4616
|
+
string
|
|
4617
|
+
];
|
|
4618
|
+
allowClear?: boolean | TimePickerAllowClearConfig;
|
|
4619
|
+
order?: boolean;
|
|
4620
|
+
separator?: any;
|
|
4621
|
+
format?: string;
|
|
4622
|
+
use12Hours?: boolean;
|
|
4623
|
+
hourStep?: number;
|
|
4624
|
+
minuteStep?: number;
|
|
4625
|
+
secondStep?: number;
|
|
4626
|
+
hideDisabledOptions?: boolean;
|
|
4627
|
+
inputReadOnly?: boolean;
|
|
4628
|
+
needConfirm?: boolean;
|
|
4629
|
+
showNow?: boolean;
|
|
4630
|
+
nowLabel?: string;
|
|
4631
|
+
confirmLabel?: string;
|
|
4632
|
+
changeOnScroll?: boolean;
|
|
4633
|
+
status?: TimePickerStatus;
|
|
4634
|
+
variant?: TimePickerVariant;
|
|
4635
|
+
size?: TimePickerSize;
|
|
4636
|
+
renderExtraFooter?: () => any;
|
|
4637
|
+
disabledTime?: (selection: TimePickerValue | null, type: "start" | "end") => TimePickerDisabledConfig | undefined;
|
|
4638
|
+
rootClassName?: string;
|
|
4639
|
+
className?: string;
|
|
4640
|
+
pickerClassName?: string;
|
|
4641
|
+
startPickerClassName?: string;
|
|
4642
|
+
endPickerClassName?: string;
|
|
4643
|
+
onChange?: (values: [
|
|
4644
|
+
string | null,
|
|
4645
|
+
string | null
|
|
4646
|
+
], timeStrings: [
|
|
4647
|
+
string,
|
|
4648
|
+
string
|
|
4649
|
+
], info: TimeRangePickerChangeInfo) => void;
|
|
4650
|
+
onCalendarChange?: (values: [
|
|
4651
|
+
string | null,
|
|
4652
|
+
string | null
|
|
4653
|
+
], timeStrings: [
|
|
4654
|
+
string,
|
|
4655
|
+
string
|
|
4656
|
+
], info: Exclude<TimeRangePickerChangeInfo["range"], "clear"> extends never ? never : {
|
|
4657
|
+
range: "start" | "end";
|
|
4658
|
+
values: [
|
|
4659
|
+
TimePickerValue | null,
|
|
4660
|
+
TimePickerValue | null
|
|
4661
|
+
];
|
|
4662
|
+
}) => void;
|
|
4663
|
+
}
|
|
4664
|
+
export type TimePickerCompound = FC<TimePickerProps> & {
|
|
4665
|
+
RangePicker: FC<TimeRangePickerProps>;
|
|
4666
|
+
};
|
|
4667
|
+
export declare const TimePicker: TimePickerCompound;
|
|
4668
|
+
export type TransferKey = string | number;
|
|
4669
|
+
export type TransferDirection = "left" | "right";
|
|
4670
|
+
export type TransferStatus = "warning" | "error";
|
|
4671
|
+
export type TransferSize = "small" | "default" | "middle" | "large" | "sm" | "md" | "lg";
|
|
4672
|
+
export interface TransferItem {
|
|
4673
|
+
key?: TransferKey;
|
|
4674
|
+
title?: any;
|
|
4675
|
+
description?: any;
|
|
4676
|
+
disabled?: boolean;
|
|
4677
|
+
[key: string]: any;
|
|
4678
|
+
}
|
|
4679
|
+
export interface TransferRenderResultObject {
|
|
4680
|
+
label: any;
|
|
4681
|
+
value?: string;
|
|
4682
|
+
description?: any;
|
|
4683
|
+
}
|
|
4684
|
+
export type TransferRenderResult = TransferRenderResultObject | string | number | any | null;
|
|
4685
|
+
export type TransferRender<RecordType> = (item: RecordType) => TransferRenderResult;
|
|
4686
|
+
export interface TransferLocale {
|
|
4687
|
+
titles?: any[];
|
|
4688
|
+
notFoundContent?: any | any[];
|
|
4689
|
+
searchPlaceholder?: any;
|
|
4690
|
+
itemUnit?: string;
|
|
4691
|
+
itemsUnit?: string;
|
|
4692
|
+
remove?: any;
|
|
4693
|
+
selectAll?: any;
|
|
4694
|
+
deselectAll?: any;
|
|
4695
|
+
selectInvert?: any;
|
|
4696
|
+
clearSelection?: any;
|
|
4697
|
+
removeSelected?: any;
|
|
4698
|
+
}
|
|
4699
|
+
export interface TransferSearchConfig {
|
|
4700
|
+
placeholder?: string;
|
|
4701
|
+
defaultValue?: string;
|
|
4702
|
+
}
|
|
4703
|
+
export interface TransferPaginationConfig {
|
|
4704
|
+
pageSize?: number;
|
|
4705
|
+
}
|
|
4706
|
+
export interface TransferListStyleInfo {
|
|
4707
|
+
direction: TransferDirection;
|
|
4708
|
+
}
|
|
4709
|
+
export interface TransferClassNames {
|
|
4710
|
+
root?: string;
|
|
4711
|
+
panel?: string;
|
|
4712
|
+
header?: string;
|
|
4713
|
+
search?: string;
|
|
4714
|
+
body?: string;
|
|
4715
|
+
list?: string;
|
|
4716
|
+
item?: string;
|
|
4717
|
+
operations?: string;
|
|
4718
|
+
footer?: string;
|
|
4719
|
+
empty?: string;
|
|
4720
|
+
pager?: string;
|
|
4721
|
+
}
|
|
4722
|
+
export interface TransferStyles {
|
|
4723
|
+
root?: Record<string, any>;
|
|
4724
|
+
panel?: Record<string, any>;
|
|
4725
|
+
header?: Record<string, any>;
|
|
4726
|
+
search?: Record<string, any>;
|
|
4727
|
+
body?: Record<string, any>;
|
|
4728
|
+
list?: Record<string, any>;
|
|
4729
|
+
item?: Record<string, any>;
|
|
4730
|
+
operations?: Record<string, any>;
|
|
4731
|
+
footer?: Record<string, any>;
|
|
4732
|
+
empty?: Record<string, any>;
|
|
4733
|
+
pager?: Record<string, any>;
|
|
4734
|
+
}
|
|
4735
|
+
export interface TransferRenderListItem<RecordType = TransferItem> {
|
|
4736
|
+
key: TransferKey;
|
|
4737
|
+
record: RecordType;
|
|
4738
|
+
disabled: boolean;
|
|
4739
|
+
label: any;
|
|
4740
|
+
description?: any;
|
|
4741
|
+
searchText: string;
|
|
4742
|
+
}
|
|
4743
|
+
export interface TransferRenderListProps<RecordType = TransferItem> {
|
|
4744
|
+
direction: TransferDirection;
|
|
4745
|
+
disabled: boolean;
|
|
4746
|
+
items: TransferRenderListItem<RecordType>[];
|
|
4747
|
+
filteredItems: TransferRenderListItem<RecordType>[];
|
|
4748
|
+
selectedKeys: TransferKey[];
|
|
4749
|
+
searchValue: string;
|
|
4750
|
+
onItemSelect: (key: TransferKey, selected: boolean) => void;
|
|
4751
|
+
onItemSelectAll: (keys: TransferKey[], selected: boolean) => void;
|
|
4752
|
+
}
|
|
4753
|
+
export interface TransferProps<RecordType = TransferItem> {
|
|
4754
|
+
className?: string;
|
|
4755
|
+
style?: Record<string, any>;
|
|
4756
|
+
disabled?: boolean;
|
|
4757
|
+
size?: TransferSize;
|
|
4758
|
+
status?: TransferStatus;
|
|
4759
|
+
dataSource?: RecordType[];
|
|
4760
|
+
targetKeys?: TransferKey[];
|
|
4761
|
+
defaultTargetKeys?: TransferKey[];
|
|
4762
|
+
selectedKeys?: TransferKey[];
|
|
4763
|
+
defaultSelectedKeys?: TransferKey[];
|
|
4764
|
+
render?: TransferRender<RecordType>;
|
|
4765
|
+
onChange?: (targetKeys: TransferKey[], direction: TransferDirection, moveKeys: TransferKey[]) => void;
|
|
4766
|
+
onSelectChange?: (sourceSelectedKeys: TransferKey[], targetSelectedKeys: TransferKey[]) => void;
|
|
4767
|
+
titles?: any[];
|
|
4768
|
+
operations?: any[];
|
|
4769
|
+
actions?: any[];
|
|
4770
|
+
showSearch?: boolean | TransferSearchConfig;
|
|
4771
|
+
filterOption?: (inputValue: string, item: RecordType, direction: TransferDirection) => boolean;
|
|
4772
|
+
locale?: TransferLocale;
|
|
4773
|
+
footer?: (props: TransferRenderListProps<RecordType>, info: {
|
|
4774
|
+
direction: TransferDirection;
|
|
4775
|
+
}) => any;
|
|
4776
|
+
renderList?: (props: TransferRenderListProps<RecordType>) => any;
|
|
4777
|
+
rowKey?: (record: RecordType) => TransferKey;
|
|
4778
|
+
onSearch?: (direction: TransferDirection, value: string) => void;
|
|
4779
|
+
onScroll?: (direction: TransferDirection, event: Event) => void;
|
|
4780
|
+
children?: (props: TransferRenderListProps<RecordType>) => any;
|
|
4781
|
+
showSelectAll?: boolean;
|
|
4782
|
+
selectAllLabels?: Array<any | ((info: {
|
|
4783
|
+
selectedCount: number;
|
|
4784
|
+
totalCount: number;
|
|
4785
|
+
}) => any)>;
|
|
4786
|
+
oneWay?: boolean;
|
|
4787
|
+
pagination?: boolean | TransferPaginationConfig;
|
|
4788
|
+
listStyle?: Record<string, any> | ((info: TransferListStyleInfo) => Record<string, any>);
|
|
4789
|
+
operationStyle?: Record<string, any>;
|
|
4790
|
+
classNames?: TransferClassNames;
|
|
4791
|
+
styles?: TransferStyles;
|
|
4792
|
+
[key: string]: any;
|
|
4793
|
+
}
|
|
4794
|
+
export declare const Transfer: FC<TransferProps<any>>;
|
|
4795
|
+
export type TourPlacement = "center" | "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom";
|
|
4796
|
+
export type TourType = "default" | "primary";
|
|
4797
|
+
export type TourArrow = boolean | {
|
|
4798
|
+
pointAtCenter?: boolean;
|
|
4799
|
+
};
|
|
4800
|
+
export type TourTarget = HTMLElement | null | undefined | (() => HTMLElement | null | undefined);
|
|
4801
|
+
export type TourGetPopupContainer = string | HTMLElement | (() => HTMLElement) | false;
|
|
4802
|
+
export interface TourGap {
|
|
4803
|
+
offset?: number | [
|
|
4804
|
+
number,
|
|
4805
|
+
number
|
|
4806
|
+
];
|
|
4807
|
+
radius?: number;
|
|
4808
|
+
}
|
|
4809
|
+
export interface TourMask {
|
|
4810
|
+
color?: string;
|
|
4811
|
+
style?: Record<string, any>;
|
|
4812
|
+
}
|
|
4813
|
+
export interface TourLocale {
|
|
4814
|
+
next?: any;
|
|
4815
|
+
previous?: any;
|
|
4816
|
+
finish?: any;
|
|
4817
|
+
close?: any;
|
|
4818
|
+
}
|
|
4819
|
+
export interface TourButtonProps {
|
|
4820
|
+
children?: any;
|
|
4821
|
+
onClick?: () => void;
|
|
4822
|
+
className?: string;
|
|
4823
|
+
style?: Record<string, any>;
|
|
4824
|
+
disabled?: boolean;
|
|
4825
|
+
}
|
|
4826
|
+
export interface TourClassNames {
|
|
4827
|
+
root?: string;
|
|
4828
|
+
mask?: string;
|
|
4829
|
+
spotlight?: string;
|
|
4830
|
+
panel?: string;
|
|
4831
|
+
section?: string;
|
|
4832
|
+
cover?: string;
|
|
4833
|
+
body?: string;
|
|
4834
|
+
meta?: string;
|
|
4835
|
+
header?: string;
|
|
4836
|
+
title?: string;
|
|
4837
|
+
description?: string;
|
|
4838
|
+
footer?: string;
|
|
4839
|
+
actions?: string;
|
|
4840
|
+
buttons?: string;
|
|
4841
|
+
prevButton?: string;
|
|
4842
|
+
nextButton?: string;
|
|
4843
|
+
indicators?: string;
|
|
4844
|
+
indicator?: string;
|
|
4845
|
+
close?: string;
|
|
4846
|
+
arrow?: string;
|
|
4847
|
+
}
|
|
4848
|
+
export interface TourStyles {
|
|
4849
|
+
root?: Record<string, any>;
|
|
4850
|
+
mask?: Record<string, any>;
|
|
4851
|
+
spotlight?: Record<string, any>;
|
|
4852
|
+
panel?: Record<string, any>;
|
|
4853
|
+
section?: Record<string, any>;
|
|
4854
|
+
cover?: Record<string, any>;
|
|
4855
|
+
body?: Record<string, any>;
|
|
4856
|
+
meta?: Record<string, any>;
|
|
4857
|
+
header?: Record<string, any>;
|
|
4858
|
+
title?: Record<string, any>;
|
|
4859
|
+
description?: Record<string, any>;
|
|
4860
|
+
footer?: Record<string, any>;
|
|
4861
|
+
actions?: Record<string, any>;
|
|
4862
|
+
buttons?: Record<string, any>;
|
|
4863
|
+
prevButton?: Record<string, any>;
|
|
4864
|
+
nextButton?: Record<string, any>;
|
|
4865
|
+
indicators?: Record<string, any>;
|
|
4866
|
+
indicator?: Record<string, any>;
|
|
4867
|
+
close?: Record<string, any>;
|
|
4868
|
+
arrow?: Record<string, any>;
|
|
4869
|
+
}
|
|
4870
|
+
export interface TourStepProps {
|
|
4871
|
+
target?: TourTarget;
|
|
4872
|
+
title?: any;
|
|
4873
|
+
description?: any;
|
|
4874
|
+
cover?: any;
|
|
4875
|
+
locale?: TourLocale;
|
|
4876
|
+
placement?: TourPlacement;
|
|
4877
|
+
mask?: boolean | TourMask;
|
|
4878
|
+
arrow?: TourArrow;
|
|
4879
|
+
type?: TourType;
|
|
4880
|
+
closeIcon?: any;
|
|
4881
|
+
onClose?: () => void;
|
|
4882
|
+
scrollIntoViewOptions?: boolean | ScrollIntoViewOptions;
|
|
4883
|
+
nextButtonProps?: TourButtonProps;
|
|
4884
|
+
prevButtonProps?: TourButtonProps;
|
|
4885
|
+
indicatorsRender?: (current: number, total: number) => any;
|
|
4886
|
+
actionsRender?: (originNode: any, info: {
|
|
4887
|
+
current: number;
|
|
4888
|
+
total: number;
|
|
4889
|
+
}) => any;
|
|
4890
|
+
className?: string;
|
|
4891
|
+
style?: Record<string, any>;
|
|
4892
|
+
classNames?: TourClassNames;
|
|
4893
|
+
styles?: TourStyles;
|
|
4894
|
+
}
|
|
4895
|
+
export interface TourProps {
|
|
4896
|
+
steps?: TourStepProps[];
|
|
4897
|
+
open?: boolean;
|
|
4898
|
+
defaultOpen?: boolean;
|
|
4899
|
+
current?: number;
|
|
4900
|
+
defaultCurrent?: number;
|
|
4901
|
+
placement?: TourPlacement;
|
|
4902
|
+
mask?: boolean | TourMask;
|
|
4903
|
+
gap?: TourGap;
|
|
4904
|
+
arrow?: TourArrow;
|
|
4905
|
+
type?: TourType;
|
|
4906
|
+
closeIcon?: any;
|
|
4907
|
+
disabledInteraction?: boolean;
|
|
4908
|
+
keyboard?: boolean;
|
|
4909
|
+
zIndex?: number;
|
|
4910
|
+
scrollIntoViewOptions?: boolean | ScrollIntoViewOptions;
|
|
4911
|
+
getPopupContainer?: TourGetPopupContainer;
|
|
4912
|
+
locale?: TourLocale;
|
|
4913
|
+
indicatorsRender?: (current: number, total: number) => any;
|
|
4914
|
+
actionsRender?: (originNode: any, info: {
|
|
4915
|
+
current: number;
|
|
4916
|
+
total: number;
|
|
4917
|
+
}) => any;
|
|
4918
|
+
className?: string;
|
|
4919
|
+
style?: Record<string, any>;
|
|
4920
|
+
classNames?: TourClassNames;
|
|
4921
|
+
styles?: TourStyles;
|
|
4922
|
+
onChange?: (current: number) => void;
|
|
4923
|
+
onClose?: () => void;
|
|
4924
|
+
onFinish?: () => void;
|
|
4925
|
+
onOpenChange?: (open: boolean) => void;
|
|
4926
|
+
[key: string]: any;
|
|
4927
|
+
}
|
|
4928
|
+
export declare const Tour: FC<TourProps>;
|
|
4929
|
+
export type PopconfirmPlacement = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom";
|
|
4930
|
+
export type PopconfirmTrigger = "hover" | "focus" | "click" | "contextMenu";
|
|
4931
|
+
export type PopconfirmOkType = "solid" | "filled" | "outlined" | "dashed" | "text" | "link" | "default" | "primary" | "danger";
|
|
4932
|
+
export type PopconfirmArrow = boolean | {
|
|
4933
|
+
pointAtCenter?: boolean;
|
|
4934
|
+
};
|
|
4935
|
+
export interface PopconfirmButtonProps {
|
|
4936
|
+
children?: any;
|
|
4937
|
+
className?: string;
|
|
4938
|
+
style?: Record<string, any>;
|
|
4939
|
+
type?: "solid" | "filled" | "outlined" | "dashed" | "text" | "link";
|
|
4940
|
+
color?: "default" | "danger" | "neutral" | "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
4941
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "small" | "medium" | "middle" | "large";
|
|
4942
|
+
shape?: "default" | "square" | "circle" | "round";
|
|
4943
|
+
block?: boolean;
|
|
4944
|
+
wide?: boolean;
|
|
4945
|
+
danger?: boolean;
|
|
4946
|
+
disabled?: boolean;
|
|
4947
|
+
htmlType?: "button" | "submit" | "reset";
|
|
4948
|
+
icon?: any;
|
|
4949
|
+
iconPlacement?: "start" | "end";
|
|
4950
|
+
loading?: boolean | {
|
|
4951
|
+
delay?: number;
|
|
4952
|
+
icon?: any;
|
|
4953
|
+
};
|
|
4954
|
+
onClick?: (event: MouseEvent) => void;
|
|
4955
|
+
}
|
|
4956
|
+
export interface PopconfirmClassNames {
|
|
4957
|
+
root?: string;
|
|
4958
|
+
trigger?: string;
|
|
4959
|
+
overlay?: string;
|
|
4960
|
+
panel?: string;
|
|
4961
|
+
arrow?: string;
|
|
4962
|
+
icon?: string;
|
|
4963
|
+
body?: string;
|
|
4964
|
+
title?: string;
|
|
4965
|
+
description?: string;
|
|
4966
|
+
footer?: string;
|
|
4967
|
+
cancelButton?: string;
|
|
4968
|
+
okButton?: string;
|
|
4969
|
+
}
|
|
4970
|
+
export interface PopconfirmStyles {
|
|
4971
|
+
root?: Record<string, any>;
|
|
4972
|
+
trigger?: Record<string, any>;
|
|
4973
|
+
overlay?: Record<string, any>;
|
|
4974
|
+
panel?: Record<string, any>;
|
|
4975
|
+
arrow?: Record<string, any>;
|
|
4976
|
+
icon?: Record<string, any>;
|
|
4977
|
+
body?: Record<string, any>;
|
|
4978
|
+
title?: Record<string, any>;
|
|
4979
|
+
description?: Record<string, any>;
|
|
4980
|
+
footer?: Record<string, any>;
|
|
4981
|
+
cancelButton?: Record<string, any>;
|
|
4982
|
+
okButton?: Record<string, any>;
|
|
4983
|
+
}
|
|
4984
|
+
export interface PopconfirmProps {
|
|
4985
|
+
title?: any;
|
|
4986
|
+
description?: any;
|
|
4987
|
+
disabled?: boolean;
|
|
4988
|
+
placement?: PopconfirmPlacement;
|
|
4989
|
+
trigger?: PopconfirmTrigger | PopconfirmTrigger[];
|
|
4990
|
+
arrow?: PopconfirmArrow;
|
|
4991
|
+
open?: boolean;
|
|
4992
|
+
defaultOpen?: boolean;
|
|
4993
|
+
icon?: any;
|
|
4994
|
+
okText?: any;
|
|
4995
|
+
cancelText?: any;
|
|
4996
|
+
okType?: PopconfirmOkType;
|
|
4997
|
+
okButtonProps?: PopconfirmButtonProps;
|
|
4998
|
+
cancelButtonProps?: PopconfirmButtonProps;
|
|
4999
|
+
showCancel?: boolean;
|
|
5000
|
+
className?: string;
|
|
5001
|
+
style?: string | Record<string, any>;
|
|
5002
|
+
overlayClassName?: string;
|
|
5003
|
+
overlayStyle?: Record<string, any>;
|
|
5004
|
+
classNames?: PopconfirmClassNames;
|
|
5005
|
+
styles?: PopconfirmStyles;
|
|
5006
|
+
onConfirm?: (event?: MouseEvent) => void | boolean | Promise<unknown>;
|
|
5007
|
+
onCancel?: (event?: MouseEvent) => void;
|
|
5008
|
+
onOpenChange?: (open: boolean) => void;
|
|
5009
|
+
onPopupClick?: (event: MouseEvent) => void;
|
|
5010
|
+
children?: any;
|
|
5011
|
+
[key: string]: any;
|
|
5012
|
+
}
|
|
5013
|
+
export declare const Popconfirm: FC<PopconfirmProps>;
|
|
5014
|
+
export type ProgressColor = "neutral" | "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
5015
|
+
export type ProgressType = "line" | "circle" | "dashboard";
|
|
5016
|
+
export type ProgressStatus = "normal" | "exception" | "active" | "success";
|
|
5017
|
+
export type ProgressLinecap = "round" | "square" | "butt";
|
|
5018
|
+
export type ProgressSize = number | [
|
|
5019
|
+
number | string,
|
|
5020
|
+
number
|
|
5021
|
+
] | {
|
|
5022
|
+
width?: number | string;
|
|
5023
|
+
height?: number;
|
|
5024
|
+
} | "small" | "default" | "medium";
|
|
5025
|
+
export type ProgressStrokeColor = string | string[] | {
|
|
5026
|
+
from: string;
|
|
5027
|
+
to: string;
|
|
5028
|
+
direction?: string;
|
|
5029
|
+
};
|
|
5030
|
+
export type ProgressSteps = number | {
|
|
5031
|
+
count: number;
|
|
5032
|
+
gap: number;
|
|
5033
|
+
};
|
|
5034
|
+
export type ProgressGapPlacement = "top" | "bottom" | "start" | "end";
|
|
5035
|
+
export interface ProgressSuccessProps {
|
|
5036
|
+
percent?: number;
|
|
5037
|
+
strokeColor?: string;
|
|
5038
|
+
}
|
|
5039
|
+
export interface ProgressPercentPosition {
|
|
5040
|
+
align?: "start" | "center" | "end";
|
|
5041
|
+
type?: "inner" | "outer";
|
|
5042
|
+
}
|
|
5043
|
+
export interface ProgressProps {
|
|
5044
|
+
color?: ProgressColor;
|
|
5045
|
+
className?: string;
|
|
5046
|
+
type?: ProgressType;
|
|
5047
|
+
percent?: number;
|
|
5048
|
+
max?: number;
|
|
5049
|
+
value?: number;
|
|
5050
|
+
status?: ProgressStatus;
|
|
5051
|
+
showInfo?: boolean;
|
|
5052
|
+
format?: (percent?: number, successPercent?: number) => any;
|
|
5053
|
+
size?: ProgressSize;
|
|
5054
|
+
strokeWidth?: number;
|
|
5055
|
+
strokeLinecap?: ProgressLinecap;
|
|
5056
|
+
strokeColor?: ProgressStrokeColor;
|
|
5057
|
+
trailColor?: string;
|
|
5058
|
+
railColor?: string;
|
|
5059
|
+
success?: ProgressSuccessProps;
|
|
5060
|
+
steps?: ProgressSteps;
|
|
5061
|
+
gapDegree?: number;
|
|
5062
|
+
gapPlacement?: ProgressGapPlacement;
|
|
5063
|
+
gapPosition?: "top" | "bottom" | "left" | "right";
|
|
5064
|
+
percentPosition?: ProgressPercentPosition;
|
|
5065
|
+
rounding?: (step: number) => number;
|
|
5066
|
+
children?: any;
|
|
5067
|
+
[key: string]: any;
|
|
5068
|
+
}
|
|
5069
|
+
export declare const Progress: FC<ProgressProps>;
|
|
5070
|
+
export type QRCodeErrorCorrectionLevel = "L" | "M" | "Q" | "H";
|
|
5071
|
+
export type QRCodeType = "canvas" | "svg";
|
|
5072
|
+
export type QRCodeStatus = "active" | "expired" | "loading" | "scanned";
|
|
5073
|
+
export interface QRCodeLocale {
|
|
5074
|
+
expired?: any;
|
|
5075
|
+
refresh?: any;
|
|
5076
|
+
scanned?: any;
|
|
5077
|
+
loading?: any;
|
|
5078
|
+
overflow?: any;
|
|
5079
|
+
}
|
|
5080
|
+
export interface QRCodeStatusRenderInfo {
|
|
5081
|
+
status: Exclude<QRCodeStatus, "active">;
|
|
5082
|
+
locale: QRCodeLocale;
|
|
5083
|
+
onRefresh?: () => void;
|
|
5084
|
+
}
|
|
5085
|
+
export interface QRCodeClassNames {
|
|
5086
|
+
root?: string;
|
|
5087
|
+
frame?: string;
|
|
5088
|
+
code?: string;
|
|
5089
|
+
svg?: string;
|
|
5090
|
+
canvas?: string;
|
|
5091
|
+
cover?: string;
|
|
5092
|
+
status?: string;
|
|
5093
|
+
action?: string;
|
|
5094
|
+
icon?: string;
|
|
5095
|
+
}
|
|
5096
|
+
export interface QRCodeStyles {
|
|
5097
|
+
root?: Record<string, any>;
|
|
5098
|
+
frame?: Record<string, any>;
|
|
5099
|
+
code?: Record<string, any>;
|
|
5100
|
+
svg?: Record<string, any>;
|
|
5101
|
+
canvas?: Record<string, any>;
|
|
5102
|
+
cover?: Record<string, any>;
|
|
5103
|
+
status?: Record<string, any>;
|
|
5104
|
+
action?: Record<string, any>;
|
|
5105
|
+
icon?: Record<string, any>;
|
|
5106
|
+
}
|
|
5107
|
+
export interface QRCodeProps {
|
|
5108
|
+
value?: string;
|
|
5109
|
+
type?: QRCodeType;
|
|
5110
|
+
icon?: string;
|
|
5111
|
+
size?: number;
|
|
5112
|
+
iconSize?: number | {
|
|
5113
|
+
width?: number;
|
|
5114
|
+
height?: number;
|
|
5115
|
+
};
|
|
5116
|
+
color?: string;
|
|
5117
|
+
bgColor?: string;
|
|
5118
|
+
errorLevel?: QRCodeErrorCorrectionLevel;
|
|
5119
|
+
status?: QRCodeStatus;
|
|
5120
|
+
bordered?: boolean;
|
|
5121
|
+
onRefresh?: () => void;
|
|
5122
|
+
statusRender?: (info: QRCodeStatusRenderInfo) => any;
|
|
5123
|
+
className?: string;
|
|
5124
|
+
rootClassName?: string;
|
|
5125
|
+
style?: Record<string, any>;
|
|
5126
|
+
marginSize?: number;
|
|
5127
|
+
locale?: QRCodeLocale;
|
|
5128
|
+
classNames?: QRCodeClassNames;
|
|
5129
|
+
styles?: QRCodeStyles;
|
|
5130
|
+
boostLevel?: boolean;
|
|
5131
|
+
[key: string]: any;
|
|
5132
|
+
}
|
|
5133
|
+
export declare const QRCode: FC<QRCodeProps>;
|
|
5134
|
+
export type ResultTone = "info" | "success" | "warning" | "error";
|
|
5135
|
+
export type ResultExceptionStatus = 403 | 404 | 500 | "403" | "404" | "500";
|
|
5136
|
+
export type ResultStatus = ResultTone | ResultExceptionStatus;
|
|
5137
|
+
export type ResultVariant = "surface" | "soft" | "outline";
|
|
5138
|
+
export type ResultSize = "sm" | "md" | "lg";
|
|
5139
|
+
export type ResultAlign = "center" | "start";
|
|
5140
|
+
export interface ResultProps {
|
|
5141
|
+
status?: ResultStatus;
|
|
5142
|
+
icon?: any;
|
|
5143
|
+
title?: any;
|
|
5144
|
+
subTitle?: any;
|
|
5145
|
+
extra?: any;
|
|
5146
|
+
children?: any;
|
|
5147
|
+
variant?: ResultVariant;
|
|
5148
|
+
size?: ResultSize;
|
|
5149
|
+
align?: ResultAlign;
|
|
5150
|
+
showIcon?: boolean;
|
|
5151
|
+
bordered?: boolean;
|
|
5152
|
+
role?: string;
|
|
5153
|
+
className?: string;
|
|
5154
|
+
style?: any;
|
|
5155
|
+
iconClassName?: string;
|
|
5156
|
+
iconStyle?: any;
|
|
5157
|
+
contentClassName?: string;
|
|
5158
|
+
contentStyle?: any;
|
|
5159
|
+
titleClassName?: string;
|
|
5160
|
+
titleStyle?: any;
|
|
5161
|
+
subTitleClassName?: string;
|
|
5162
|
+
subTitleStyle?: any;
|
|
5163
|
+
extraClassName?: string;
|
|
5164
|
+
extraStyle?: any;
|
|
5165
|
+
bodyClassName?: string;
|
|
5166
|
+
bodyStyle?: any;
|
|
5167
|
+
[key: string]: any;
|
|
5168
|
+
}
|
|
5169
|
+
export interface ResultPresentedImageProps {
|
|
5170
|
+
className?: string;
|
|
5171
|
+
style?: any;
|
|
5172
|
+
size?: ResultSize;
|
|
5173
|
+
}
|
|
5174
|
+
export interface ResultType extends FC<ResultProps> {
|
|
5175
|
+
PRESENTED_IMAGE_403: FC<ResultPresentedImageProps>;
|
|
5176
|
+
PRESENTED_IMAGE_404: FC<ResultPresentedImageProps>;
|
|
5177
|
+
PRESENTED_IMAGE_500: FC<ResultPresentedImageProps>;
|
|
5178
|
+
}
|
|
5179
|
+
export declare const Result: ResultType;
|
|
5180
|
+
type StyleValue$1 = string | number | null | undefined;
|
|
5181
|
+
interface StyleObject$1 {
|
|
5182
|
+
[key: string]: StyleValue$1;
|
|
5183
|
+
}
|
|
5184
|
+
export type RadialProgressType = "circle" | "dashboard";
|
|
5185
|
+
export type RadialProgressStatus = "normal" | "exception" | "success";
|
|
5186
|
+
export type RadialProgressLinecap = "round" | "square" | "butt";
|
|
5187
|
+
export type RadialProgressSize = number | string | "small" | "default" | "medium";
|
|
5188
|
+
export type RadialProgressSteps = number | {
|
|
5189
|
+
count: number;
|
|
5190
|
+
gap: number;
|
|
5191
|
+
};
|
|
5192
|
+
export type RadialProgressGapPlacement = "top" | "bottom" | "start" | "end";
|
|
5193
|
+
export interface RadialProgressSuccessProps {
|
|
5194
|
+
percent?: number;
|
|
5195
|
+
value?: string | number;
|
|
5196
|
+
strokeColor?: string;
|
|
5197
|
+
}
|
|
5198
|
+
export interface RadialProgressProps {
|
|
5199
|
+
value?: string | number;
|
|
5200
|
+
percent?: number;
|
|
5201
|
+
max?: string | number;
|
|
5202
|
+
type?: RadialProgressType;
|
|
5203
|
+
status?: RadialProgressStatus;
|
|
5204
|
+
showInfo?: boolean;
|
|
5205
|
+
format?: (percent?: number, successPercent?: number) => any;
|
|
5206
|
+
size?: RadialProgressSize;
|
|
5207
|
+
thickness?: string | number;
|
|
5208
|
+
strokeWidth?: string | number;
|
|
5209
|
+
strokeLinecap?: RadialProgressLinecap;
|
|
5210
|
+
strokeColor?: string | string[];
|
|
5211
|
+
railColor?: string;
|
|
5212
|
+
trailColor?: string;
|
|
5213
|
+
success?: RadialProgressSuccessProps;
|
|
5214
|
+
steps?: RadialProgressSteps;
|
|
5215
|
+
gapDegree?: number;
|
|
5216
|
+
gapPlacement?: RadialProgressGapPlacement;
|
|
5217
|
+
gapPosition?: "top" | "bottom" | "left" | "right";
|
|
5218
|
+
style?: string | StyleObject$1;
|
|
5219
|
+
className?: string;
|
|
5220
|
+
children?: any;
|
|
5221
|
+
[key: string]: any;
|
|
5222
|
+
}
|
|
5223
|
+
export declare const RadialProgress: FC<RadialProgressProps>;
|
|
5224
|
+
export type RadioColor = "neutral" | "primary" | "secondary" | "accent" | "success" | "warning" | "info" | "error";
|
|
5225
|
+
export type RadioSize = "xs" | "sm" | "md" | "lg" | "xl" | "small" | "medium" | "middle" | "large";
|
|
5226
|
+
export type RadioValue = string | number | boolean;
|
|
5227
|
+
export type RadioOptionType = "default" | "button";
|
|
5228
|
+
export type RadioButtonStyle = "outline" | "solid";
|
|
5229
|
+
export type RadioOrientation = "horizontal" | "vertical";
|
|
5230
|
+
export interface RadioChangeMeta {
|
|
5231
|
+
checked: boolean;
|
|
5232
|
+
value?: RadioValue;
|
|
5233
|
+
optionType: RadioOptionType;
|
|
5234
|
+
}
|
|
5235
|
+
export interface RadioProps {
|
|
5236
|
+
color?: RadioColor;
|
|
5237
|
+
size?: RadioSize;
|
|
3543
5238
|
checked?: boolean;
|
|
3544
5239
|
defaultChecked?: boolean;
|
|
3545
5240
|
disabled?: boolean;
|
|
@@ -3781,6 +5476,90 @@ export type SkeletonCompound = FC<SkeletonProps> & {
|
|
|
3781
5476
|
Node: FC<SkeletonNodeProps>;
|
|
3782
5477
|
};
|
|
3783
5478
|
export declare const Skeleton: SkeletonCompound;
|
|
5479
|
+
export type SpaceDirection = "horizontal" | "vertical";
|
|
5480
|
+
export type SpaceAlign = "start" | "end" | "center" | "baseline" | "stretch";
|
|
5481
|
+
export type SpaceSize = "small" | "middle" | "large" | number | string;
|
|
5482
|
+
export interface SpaceProps {
|
|
5483
|
+
as?: any;
|
|
5484
|
+
size?: SpaceSize | [
|
|
5485
|
+
SpaceSize,
|
|
5486
|
+
SpaceSize
|
|
5487
|
+
];
|
|
5488
|
+
direction?: SpaceDirection;
|
|
5489
|
+
orientation?: SpaceDirection;
|
|
5490
|
+
vertical?: boolean;
|
|
5491
|
+
align?: SpaceAlign;
|
|
5492
|
+
split?: any;
|
|
5493
|
+
separator?: any;
|
|
5494
|
+
wrap?: boolean;
|
|
5495
|
+
block?: boolean;
|
|
5496
|
+
className?: string;
|
|
5497
|
+
style?: Record<string, any>;
|
|
5498
|
+
itemClassName?: string;
|
|
5499
|
+
itemStyle?: Record<string, any>;
|
|
5500
|
+
children?: any;
|
|
5501
|
+
[key: string]: any;
|
|
5502
|
+
}
|
|
5503
|
+
export interface SpaceCompactProps {
|
|
5504
|
+
as?: any;
|
|
5505
|
+
size?: SpaceSize;
|
|
5506
|
+
direction?: SpaceDirection;
|
|
5507
|
+
orientation?: SpaceDirection;
|
|
5508
|
+
vertical?: boolean;
|
|
5509
|
+
block?: boolean;
|
|
5510
|
+
className?: string;
|
|
5511
|
+
style?: Record<string, any>;
|
|
5512
|
+
children?: any;
|
|
5513
|
+
[key: string]: any;
|
|
5514
|
+
}
|
|
5515
|
+
export type SpaceCompound = FC<SpaceProps> & {
|
|
5516
|
+
Compact: FC<SpaceCompactProps>;
|
|
5517
|
+
};
|
|
5518
|
+
export declare const Space: SpaceCompound;
|
|
5519
|
+
export type SplitterOrientation = "horizontal" | "vertical";
|
|
5520
|
+
export type SplitterSize = number | string;
|
|
5521
|
+
export type SplitterCollapsibleIconMode = boolean | "auto";
|
|
5522
|
+
export interface SplitterCollapsibleConfig {
|
|
5523
|
+
start?: boolean;
|
|
5524
|
+
end?: boolean;
|
|
5525
|
+
showCollapsibleIcon?: SplitterCollapsibleIconMode;
|
|
5526
|
+
}
|
|
5527
|
+
export interface SplitterProps {
|
|
5528
|
+
orientation?: SplitterOrientation;
|
|
5529
|
+
layout?: SplitterOrientation;
|
|
5530
|
+
vertical?: boolean;
|
|
5531
|
+
lazy?: boolean;
|
|
5532
|
+
className?: string;
|
|
5533
|
+
style?: any;
|
|
5534
|
+
draggerIcon?: any;
|
|
5535
|
+
collapsibleIcon?: {
|
|
5536
|
+
start?: any;
|
|
5537
|
+
end?: any;
|
|
5538
|
+
};
|
|
5539
|
+
onDraggerDoubleClick?: (index: number) => void;
|
|
5540
|
+
onResizeStart?: (sizes: number[]) => void;
|
|
5541
|
+
onResize?: (sizes: number[]) => void;
|
|
5542
|
+
onResizeEnd?: (sizes: number[]) => void;
|
|
5543
|
+
onCollapse?: (collapsed: boolean[], sizes: number[]) => void;
|
|
5544
|
+
children?: any;
|
|
5545
|
+
[key: string]: any;
|
|
5546
|
+
}
|
|
5547
|
+
export interface SplitterPanelProps {
|
|
5548
|
+
className?: string;
|
|
5549
|
+
style?: any;
|
|
5550
|
+
min?: SplitterSize;
|
|
5551
|
+
max?: SplitterSize;
|
|
5552
|
+
size?: SplitterSize;
|
|
5553
|
+
defaultSize?: SplitterSize;
|
|
5554
|
+
resizable?: boolean;
|
|
5555
|
+
collapsible?: boolean | SplitterCollapsibleConfig;
|
|
5556
|
+
children?: any;
|
|
5557
|
+
[key: string]: any;
|
|
5558
|
+
}
|
|
5559
|
+
export type SplitterCompound = FC<SplitterProps> & {
|
|
5560
|
+
Panel: FC<SplitterPanelProps>;
|
|
5561
|
+
};
|
|
5562
|
+
export declare const Splitter: SplitterCompound;
|
|
3784
5563
|
export type StackVerticalAlign = "center" | "top" | "bottom";
|
|
3785
5564
|
export type StackHorizontalAlign = "center" | "start" | "end";
|
|
3786
5565
|
export type StackPlacement = "center" | "top" | "bottom" | "start" | "end" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
@@ -4126,6 +5905,195 @@ export type ToastCompound = FC<ToastProps> & {
|
|
|
4126
5905
|
];
|
|
4127
5906
|
};
|
|
4128
5907
|
export declare const ToastCompound: ToastCompound;
|
|
5908
|
+
export type MessageKey = string | number;
|
|
5909
|
+
export type MessagePlacement = Extract<ToastPlacement, "top-start" | "top" | "top-center" | "top-end" | "bottom-start" | "bottom" | "bottom-center" | "bottom-end" | "center">;
|
|
5910
|
+
export interface MessageProps extends Omit<ToastProps, "children" | "placement" | "inset"> {
|
|
5911
|
+
placement?: MessagePlacement;
|
|
5912
|
+
top?: number | string;
|
|
5913
|
+
inset?: ToastInset;
|
|
5914
|
+
children?: any;
|
|
5915
|
+
}
|
|
5916
|
+
export interface MessageItemProps extends Omit<ToastItemProps, "title" | "description" | "children" | "open" | "defaultOpen"> {
|
|
5917
|
+
content?: any;
|
|
5918
|
+
children?: any;
|
|
5919
|
+
}
|
|
5920
|
+
export interface MessageOpenConfig extends Omit<MessageItemProps, "children"> {
|
|
5921
|
+
key?: MessageKey;
|
|
5922
|
+
children?: any;
|
|
5923
|
+
}
|
|
5924
|
+
export interface MessageUseMessageOptions extends Omit<ToastUseMessageOptions, "placement" | "type" | "showIcon"> {
|
|
5925
|
+
placement?: MessagePlacement;
|
|
5926
|
+
top?: number | string;
|
|
5927
|
+
inset?: ToastInset;
|
|
5928
|
+
getContainer?: ToastGetContainer;
|
|
5929
|
+
showIcon?: boolean;
|
|
5930
|
+
}
|
|
5931
|
+
export interface MessageConfigOptions extends MessageUseMessageOptions {
|
|
5932
|
+
}
|
|
5933
|
+
export type MessageDurationArg = number | (() => void);
|
|
5934
|
+
export type MessageArgTuple = [
|
|
5935
|
+
content: any,
|
|
5936
|
+
durationOrOnClose?: MessageDurationArg,
|
|
5937
|
+
onClose?: () => void
|
|
5938
|
+
];
|
|
5939
|
+
export interface MessageHandle extends PromiseLike<boolean> {
|
|
5940
|
+
(): void;
|
|
5941
|
+
promise: Promise<boolean>;
|
|
5942
|
+
}
|
|
5943
|
+
export interface MessageInstance {
|
|
5944
|
+
open: (config: MessageOpenConfig) => MessageHandle;
|
|
5945
|
+
success: (...args: MessageArgTuple) => MessageHandle;
|
|
5946
|
+
info: (...args: MessageArgTuple) => MessageHandle;
|
|
5947
|
+
warning: (...args: MessageArgTuple) => MessageHandle;
|
|
5948
|
+
error: (...args: MessageArgTuple) => MessageHandle;
|
|
5949
|
+
loading: (...args: MessageArgTuple) => MessageHandle;
|
|
5950
|
+
destroy: (key?: MessageKey) => void;
|
|
5951
|
+
}
|
|
5952
|
+
export type MessageCompound = FC<MessageProps> & {
|
|
5953
|
+
Item: FC<MessageItemProps>;
|
|
5954
|
+
useMessage: (options?: MessageUseMessageOptions) => readonly [
|
|
5955
|
+
MessageInstance,
|
|
5956
|
+
any
|
|
5957
|
+
];
|
|
5958
|
+
open: (config: MessageOpenConfig) => MessageHandle;
|
|
5959
|
+
success: (...args: MessageArgTuple) => MessageHandle;
|
|
5960
|
+
info: (...args: MessageArgTuple) => MessageHandle;
|
|
5961
|
+
warning: (...args: MessageArgTuple) => MessageHandle;
|
|
5962
|
+
error: (...args: MessageArgTuple) => MessageHandle;
|
|
5963
|
+
loading: (...args: MessageArgTuple) => MessageHandle;
|
|
5964
|
+
destroy: (key?: MessageKey) => void;
|
|
5965
|
+
config: (options: MessageConfigOptions) => void;
|
|
5966
|
+
};
|
|
5967
|
+
export declare const MessageCompound: MessageCompound;
|
|
5968
|
+
declare const NotificationPlacements: readonly [
|
|
5969
|
+
"top",
|
|
5970
|
+
"topLeft",
|
|
5971
|
+
"topRight",
|
|
5972
|
+
"bottom",
|
|
5973
|
+
"bottomLeft",
|
|
5974
|
+
"bottomRight"
|
|
5975
|
+
];
|
|
5976
|
+
export type NotificationPlacement = (typeof NotificationPlacements)[number];
|
|
5977
|
+
export type NotificationType = "success" | "info" | "warning" | "error";
|
|
5978
|
+
export type NotificationVariant = "soft" | "solid" | "outline";
|
|
5979
|
+
export type NotificationCloseSource = "close" | "timeout";
|
|
5980
|
+
export type NotificationKey = string | number;
|
|
5981
|
+
export type NotificationMountTarget = string | HTMLElement | ShadowRoot | (() => HTMLElement | ShadowRoot | null | undefined) | false;
|
|
5982
|
+
export interface NotificationClassNames {
|
|
5983
|
+
root?: string;
|
|
5984
|
+
icon?: string;
|
|
5985
|
+
title?: string;
|
|
5986
|
+
description?: string;
|
|
5987
|
+
actions?: string;
|
|
5988
|
+
progress?: string;
|
|
5989
|
+
close?: string;
|
|
5990
|
+
}
|
|
5991
|
+
export interface NotificationStyles {
|
|
5992
|
+
root?: Record<string, any>;
|
|
5993
|
+
icon?: Record<string, any>;
|
|
5994
|
+
title?: Record<string, any>;
|
|
5995
|
+
description?: Record<string, any>;
|
|
5996
|
+
actions?: Record<string, any>;
|
|
5997
|
+
progress?: Record<string, any>;
|
|
5998
|
+
close?: Record<string, any>;
|
|
5999
|
+
}
|
|
6000
|
+
export interface NotificationCloseMeta {
|
|
6001
|
+
source: NotificationCloseSource;
|
|
6002
|
+
event?: Event;
|
|
6003
|
+
}
|
|
6004
|
+
export interface NotificationClosableConfig {
|
|
6005
|
+
icon?: any;
|
|
6006
|
+
label?: string;
|
|
6007
|
+
onClose?: (meta: NotificationCloseMeta) => void;
|
|
6008
|
+
}
|
|
6009
|
+
export type NotificationClosable = boolean | NotificationClosableConfig;
|
|
6010
|
+
export interface NotificationProps {
|
|
6011
|
+
as?: any;
|
|
6012
|
+
inline?: boolean;
|
|
6013
|
+
placement?: NotificationPlacement;
|
|
6014
|
+
top?: number | string;
|
|
6015
|
+
bottom?: number | string;
|
|
6016
|
+
gap?: number | string;
|
|
6017
|
+
zIndex?: number | string;
|
|
6018
|
+
maxWidth?: number | string;
|
|
6019
|
+
className?: string;
|
|
6020
|
+
style?: Record<string, any>;
|
|
6021
|
+
children?: any;
|
|
6022
|
+
[key: string]: any;
|
|
6023
|
+
}
|
|
6024
|
+
export interface NotificationItemProps {
|
|
6025
|
+
as?: any;
|
|
6026
|
+
open?: boolean;
|
|
6027
|
+
defaultOpen?: boolean;
|
|
6028
|
+
type?: NotificationType;
|
|
6029
|
+
variant?: NotificationVariant;
|
|
6030
|
+
icon?: any;
|
|
6031
|
+
showIcon?: boolean;
|
|
6032
|
+
title?: any;
|
|
6033
|
+
message?: any;
|
|
6034
|
+
description?: any;
|
|
6035
|
+
actions?: any;
|
|
6036
|
+
btn?: any;
|
|
6037
|
+
closable?: NotificationClosable;
|
|
6038
|
+
closeIcon?: any;
|
|
6039
|
+
duration?: number | false | null;
|
|
6040
|
+
pauseOnHover?: boolean;
|
|
6041
|
+
showProgress?: boolean;
|
|
6042
|
+
className?: string;
|
|
6043
|
+
style?: Record<string, any>;
|
|
6044
|
+
classNames?: NotificationClassNames;
|
|
6045
|
+
styles?: NotificationStyles;
|
|
6046
|
+
props?: Record<string, any>;
|
|
6047
|
+
children?: any;
|
|
6048
|
+
onClose?: (meta: NotificationCloseMeta) => void;
|
|
6049
|
+
onOpenChange?: (open: boolean, meta: NotificationCloseMeta) => void;
|
|
6050
|
+
onClick?: (event: MouseEvent) => void;
|
|
6051
|
+
[key: string]: any;
|
|
6052
|
+
}
|
|
6053
|
+
export interface NotificationArgsProps extends Omit<NotificationItemProps, "open" | "defaultOpen"> {
|
|
6054
|
+
key?: NotificationKey;
|
|
6055
|
+
placement?: NotificationPlacement;
|
|
6056
|
+
}
|
|
6057
|
+
export interface NotificationUseOptions extends Omit<NotificationProps, "children"> {
|
|
6058
|
+
getContainer?: NotificationMountTarget;
|
|
6059
|
+
maxCount?: number;
|
|
6060
|
+
duration?: number | false | null;
|
|
6061
|
+
closable?: NotificationClosable;
|
|
6062
|
+
pauseOnHover?: boolean;
|
|
6063
|
+
showProgress?: boolean;
|
|
6064
|
+
showIcon?: boolean;
|
|
6065
|
+
variant?: NotificationVariant;
|
|
6066
|
+
type?: NotificationType;
|
|
6067
|
+
closeIcon?: any;
|
|
6068
|
+
classNames?: NotificationClassNames;
|
|
6069
|
+
styles?: NotificationStyles;
|
|
6070
|
+
props?: Record<string, any>;
|
|
6071
|
+
}
|
|
6072
|
+
export interface NotificationGlobalConfig extends NotificationUseOptions {
|
|
6073
|
+
}
|
|
6074
|
+
export interface NotificationInstance {
|
|
6075
|
+
open: (config: NotificationArgsProps) => () => void;
|
|
6076
|
+
success: (config: Omit<NotificationArgsProps, "type">) => () => void;
|
|
6077
|
+
info: (config: Omit<NotificationArgsProps, "type">) => () => void;
|
|
6078
|
+
warning: (config: Omit<NotificationArgsProps, "type">) => () => void;
|
|
6079
|
+
error: (config: Omit<NotificationArgsProps, "type">) => () => void;
|
|
6080
|
+
destroy: (key?: NotificationKey) => void;
|
|
6081
|
+
}
|
|
6082
|
+
export type NotificationCompound = FC<NotificationProps> & {
|
|
6083
|
+
Item: FC<NotificationItemProps>;
|
|
6084
|
+
useNotification: (options?: NotificationUseOptions) => readonly [
|
|
6085
|
+
NotificationInstance,
|
|
6086
|
+
any
|
|
6087
|
+
];
|
|
6088
|
+
open: NotificationInstance["open"];
|
|
6089
|
+
success: NotificationInstance["success"];
|
|
6090
|
+
info: NotificationInstance["info"];
|
|
6091
|
+
warning: NotificationInstance["warning"];
|
|
6092
|
+
error: NotificationInstance["error"];
|
|
6093
|
+
destroy: NotificationInstance["destroy"];
|
|
6094
|
+
config: (options: NotificationGlobalConfig) => void;
|
|
6095
|
+
};
|
|
6096
|
+
export declare const NotificationCompound: NotificationCompound;
|
|
4129
6097
|
export type ToggleColor = "primary" | "secondary" | "accent" | "neutral" | "success" | "warning" | "info" | "error";
|
|
4130
6098
|
export type ToggleSize = "xs" | "sm" | "md" | "lg" | "xl" | "small" | "default" | "medium";
|
|
4131
6099
|
export type ToggleValue = boolean | string | number;
|
|
@@ -4201,6 +6169,402 @@ export type TooltipCompound = FC<TooltipProps> & {
|
|
|
4201
6169
|
Content: FC<TooltipContentProps>;
|
|
4202
6170
|
};
|
|
4203
6171
|
export declare const Tooltip: TooltipCompound;
|
|
6172
|
+
export type TreeKey = string | number;
|
|
6173
|
+
export type TreeStatus = "warning" | "error";
|
|
6174
|
+
export type TreeSize = "small" | "default" | "middle" | "large" | "sm" | "md" | "lg";
|
|
6175
|
+
export type TreeExpandAction = false | "click" | "doubleClick";
|
|
6176
|
+
export type TreeDropPosition = -1 | 0 | 1;
|
|
6177
|
+
export type DirectoryTreeRangeSelectMode = false | "append" | "replace";
|
|
6178
|
+
export interface TreeFieldNames {
|
|
6179
|
+
title?: string;
|
|
6180
|
+
key?: string;
|
|
6181
|
+
children?: string;
|
|
6182
|
+
disabled?: string;
|
|
6183
|
+
selectable?: string;
|
|
6184
|
+
checkable?: string;
|
|
6185
|
+
disableCheckbox?: string;
|
|
6186
|
+
isLeaf?: string;
|
|
6187
|
+
icon?: string;
|
|
6188
|
+
className?: string;
|
|
6189
|
+
id?: string;
|
|
6190
|
+
pId?: string;
|
|
6191
|
+
}
|
|
6192
|
+
export interface TreeDataNode {
|
|
6193
|
+
title?: any;
|
|
6194
|
+
key?: TreeKey;
|
|
6195
|
+
children?: TreeDataNode[];
|
|
6196
|
+
disabled?: boolean;
|
|
6197
|
+
selectable?: boolean;
|
|
6198
|
+
checkable?: boolean;
|
|
6199
|
+
disableCheckbox?: boolean;
|
|
6200
|
+
isLeaf?: boolean;
|
|
6201
|
+
icon?: any;
|
|
6202
|
+
className?: string;
|
|
6203
|
+
[key: string]: any;
|
|
6204
|
+
}
|
|
6205
|
+
export interface TreeSimpleModeConfig {
|
|
6206
|
+
id?: string;
|
|
6207
|
+
pId?: string;
|
|
6208
|
+
rootPId?: string | number | null;
|
|
6209
|
+
}
|
|
6210
|
+
export interface TreeCheckedKeysObject {
|
|
6211
|
+
checked: TreeKey[];
|
|
6212
|
+
halfChecked: TreeKey[];
|
|
6213
|
+
}
|
|
6214
|
+
export interface TreeNode {
|
|
6215
|
+
key: TreeKey;
|
|
6216
|
+
keyText: string;
|
|
6217
|
+
title: any;
|
|
6218
|
+
depth: number;
|
|
6219
|
+
children: TreeNode[];
|
|
6220
|
+
raw: TreeDataNode;
|
|
6221
|
+
disabled: boolean;
|
|
6222
|
+
selectable: boolean;
|
|
6223
|
+
checkable: boolean;
|
|
6224
|
+
disableCheckbox: boolean;
|
|
6225
|
+
isLeaf: boolean;
|
|
6226
|
+
className?: string;
|
|
6227
|
+
icon?: any;
|
|
6228
|
+
parentKeyText?: string;
|
|
6229
|
+
}
|
|
6230
|
+
export interface TreeEventInfo {
|
|
6231
|
+
node: TreeNode;
|
|
6232
|
+
nativeEvent?: Event | MouseEvent;
|
|
6233
|
+
selected?: boolean;
|
|
6234
|
+
checked?: boolean;
|
|
6235
|
+
expanded?: boolean;
|
|
6236
|
+
checkedNodes?: TreeNode[];
|
|
6237
|
+
selectedNodes?: TreeNode[];
|
|
6238
|
+
halfCheckedKeys?: TreeKey[];
|
|
6239
|
+
}
|
|
6240
|
+
export interface TreeDragEventInfo {
|
|
6241
|
+
event: DragEvent | Event;
|
|
6242
|
+
node: TreeNode;
|
|
6243
|
+
expandedKeys?: TreeKey[];
|
|
6244
|
+
}
|
|
6245
|
+
export interface TreeDropInfo extends TreeDragEventInfo {
|
|
6246
|
+
dragNode: TreeNode;
|
|
6247
|
+
dragNodesKeys: TreeKey[];
|
|
6248
|
+
dropPosition: TreeDropPosition;
|
|
6249
|
+
dropToGap: boolean;
|
|
6250
|
+
}
|
|
6251
|
+
export interface TreeAllowDropInfo {
|
|
6252
|
+
dragNode: TreeNode;
|
|
6253
|
+
dropNode: TreeNode;
|
|
6254
|
+
dropPosition: TreeDropPosition;
|
|
6255
|
+
dropToGap: boolean;
|
|
6256
|
+
}
|
|
6257
|
+
export interface TreeDraggableConfig {
|
|
6258
|
+
icon?: any | false;
|
|
6259
|
+
nodeDraggable?: (node: TreeNode) => boolean;
|
|
6260
|
+
}
|
|
6261
|
+
export type TreeDraggable = boolean | ((node: TreeNode) => boolean) | TreeDraggableConfig;
|
|
6262
|
+
export interface TreeClassNames {
|
|
6263
|
+
root?: string;
|
|
6264
|
+
header?: string;
|
|
6265
|
+
body?: string;
|
|
6266
|
+
search?: string;
|
|
6267
|
+
node?: string;
|
|
6268
|
+
switcher?: string;
|
|
6269
|
+
checkbox?: string;
|
|
6270
|
+
dragHandle?: string;
|
|
6271
|
+
label?: string;
|
|
6272
|
+
empty?: string;
|
|
6273
|
+
}
|
|
6274
|
+
export interface TreeStyles {
|
|
6275
|
+
root?: Record<string, any>;
|
|
6276
|
+
header?: Record<string, any>;
|
|
6277
|
+
body?: Record<string, any>;
|
|
6278
|
+
search?: Record<string, any>;
|
|
6279
|
+
node?: Record<string, any>;
|
|
6280
|
+
switcher?: Record<string, any>;
|
|
6281
|
+
checkbox?: Record<string, any>;
|
|
6282
|
+
dragHandle?: Record<string, any>;
|
|
6283
|
+
label?: Record<string, any>;
|
|
6284
|
+
empty?: Record<string, any>;
|
|
6285
|
+
}
|
|
6286
|
+
export interface TreeTitleRenderProps {
|
|
6287
|
+
node: TreeNode;
|
|
6288
|
+
expanded: boolean;
|
|
6289
|
+
selected: boolean;
|
|
6290
|
+
checked: boolean;
|
|
6291
|
+
halfChecked: boolean;
|
|
6292
|
+
loading: boolean;
|
|
6293
|
+
}
|
|
6294
|
+
export interface TreeProps {
|
|
6295
|
+
className?: string;
|
|
6296
|
+
style?: Record<string, any>;
|
|
6297
|
+
treeData?: TreeDataNode[];
|
|
6298
|
+
fieldNames?: TreeFieldNames;
|
|
6299
|
+
treeDataSimpleMode?: boolean | TreeSimpleModeConfig;
|
|
6300
|
+
selectedKeys?: TreeKey[];
|
|
6301
|
+
defaultSelectedKeys?: TreeKey[];
|
|
6302
|
+
checkedKeys?: TreeKey[] | TreeCheckedKeysObject;
|
|
6303
|
+
defaultCheckedKeys?: TreeKey[];
|
|
6304
|
+
expandedKeys?: TreeKey[];
|
|
6305
|
+
defaultExpandedKeys?: TreeKey[];
|
|
6306
|
+
defaultExpandAll?: boolean;
|
|
6307
|
+
multiple?: boolean;
|
|
6308
|
+
checkable?: boolean;
|
|
6309
|
+
checkStrictly?: boolean;
|
|
6310
|
+
showLine?: boolean;
|
|
6311
|
+
showIcon?: boolean;
|
|
6312
|
+
blockNode?: boolean;
|
|
6313
|
+
selectable?: boolean;
|
|
6314
|
+
disabled?: boolean;
|
|
6315
|
+
size?: TreeSize;
|
|
6316
|
+
status?: TreeStatus;
|
|
6317
|
+
draggable?: TreeDraggable;
|
|
6318
|
+
allowDrop?: (info: TreeAllowDropInfo) => boolean;
|
|
6319
|
+
virtual?: boolean;
|
|
6320
|
+
height?: number;
|
|
6321
|
+
itemHeight?: number;
|
|
6322
|
+
titleRender?: (props: TreeTitleRenderProps) => any;
|
|
6323
|
+
switcherIcon?: any | ((props: TreeTitleRenderProps) => any);
|
|
6324
|
+
icon?: any | ((props: TreeTitleRenderProps) => any);
|
|
6325
|
+
filterTreeNode?: boolean | ((inputValue: string, node: TreeNode) => boolean);
|
|
6326
|
+
searchValue?: string;
|
|
6327
|
+
defaultSearchValue?: string;
|
|
6328
|
+
searchPlaceholder?: any;
|
|
6329
|
+
allowSearch?: boolean;
|
|
6330
|
+
loadData?: (node: TreeNode) => Promise<any> | void;
|
|
6331
|
+
emptyText?: any;
|
|
6332
|
+
onSelect?: (selectedKeys: TreeKey[], info: TreeEventInfo) => void;
|
|
6333
|
+
onCheck?: (checkedKeys: TreeKey[] | TreeCheckedKeysObject, info: TreeEventInfo) => void;
|
|
6334
|
+
onExpand?: (expandedKeys: TreeKey[], info: TreeEventInfo) => void;
|
|
6335
|
+
onSearch?: (value: string) => void;
|
|
6336
|
+
onDoubleClick?: (event: MouseEvent, node: TreeNode) => void;
|
|
6337
|
+
onDragStart?: (info: TreeDragEventInfo) => void;
|
|
6338
|
+
onDragEnter?: (info: TreeDragEventInfo) => void;
|
|
6339
|
+
onDragOver?: (info: TreeDragEventInfo) => void;
|
|
6340
|
+
onDragLeave?: (info: TreeDragEventInfo) => void;
|
|
6341
|
+
onDragEnd?: (info: TreeDragEventInfo) => void;
|
|
6342
|
+
onDrop?: (info: TreeDropInfo) => void;
|
|
6343
|
+
onScroll?: (event: UIEvent) => void;
|
|
6344
|
+
classNames?: TreeClassNames;
|
|
6345
|
+
styles?: TreeStyles;
|
|
6346
|
+
[key: string]: any;
|
|
6347
|
+
}
|
|
6348
|
+
export interface DirectoryTreeProps extends TreeProps {
|
|
6349
|
+
expandAction?: TreeExpandAction;
|
|
6350
|
+
toggleSelect?: boolean;
|
|
6351
|
+
rangeSelect?: DirectoryTreeRangeSelectMode;
|
|
6352
|
+
}
|
|
6353
|
+
export type TreeCompoundComponent = FC<TreeProps> & {
|
|
6354
|
+
DirectoryTree: FC<DirectoryTreeProps>;
|
|
6355
|
+
};
|
|
6356
|
+
export declare const Tree: TreeCompoundComponent;
|
|
6357
|
+
declare const SHOW_ALL: "SHOW_ALL";
|
|
6358
|
+
declare const SHOW_PARENT: "SHOW_PARENT";
|
|
6359
|
+
declare const SHOW_CHILD: "SHOW_CHILD";
|
|
6360
|
+
export type TreeSelectValue = string | number;
|
|
6361
|
+
export type TreeSelectShowCheckedStrategy = typeof SHOW_ALL | typeof SHOW_PARENT | typeof SHOW_CHILD;
|
|
6362
|
+
export interface TreeSelectFieldNames {
|
|
6363
|
+
label?: string;
|
|
6364
|
+
value?: string;
|
|
6365
|
+
children?: string;
|
|
6366
|
+
key?: string;
|
|
6367
|
+
disabled?: string;
|
|
6368
|
+
selectable?: string;
|
|
6369
|
+
checkable?: string;
|
|
6370
|
+
disableCheckbox?: string;
|
|
6371
|
+
isLeaf?: string;
|
|
6372
|
+
className?: string;
|
|
6373
|
+
icon?: string;
|
|
6374
|
+
id?: string;
|
|
6375
|
+
pId?: string;
|
|
6376
|
+
}
|
|
6377
|
+
export interface TreeSelectDataNode {
|
|
6378
|
+
title?: any;
|
|
6379
|
+
label?: any;
|
|
6380
|
+
value?: TreeSelectValue;
|
|
6381
|
+
key?: TreeSelectValue;
|
|
6382
|
+
children?: TreeSelectDataNode[];
|
|
6383
|
+
disabled?: boolean;
|
|
6384
|
+
selectable?: boolean;
|
|
6385
|
+
checkable?: boolean;
|
|
6386
|
+
disableCheckbox?: boolean;
|
|
6387
|
+
isLeaf?: boolean;
|
|
6388
|
+
className?: string;
|
|
6389
|
+
icon?: any;
|
|
6390
|
+
[key: string]: any;
|
|
6391
|
+
}
|
|
6392
|
+
export interface TreeSelectSimpleModeConfig {
|
|
6393
|
+
id?: string;
|
|
6394
|
+
pId?: string;
|
|
6395
|
+
rootPId?: string | number | null;
|
|
6396
|
+
}
|
|
6397
|
+
export interface TreeSelectLabeledValue {
|
|
6398
|
+
value: TreeSelectValue;
|
|
6399
|
+
key: TreeSelectValue;
|
|
6400
|
+
label: any;
|
|
6401
|
+
halfChecked?: boolean;
|
|
6402
|
+
disabled?: boolean;
|
|
6403
|
+
}
|
|
6404
|
+
export interface TreeSelectShowSearchConfig {
|
|
6405
|
+
autoClearSearchValue?: boolean;
|
|
6406
|
+
filterTreeNode?: boolean | ((inputValue: string, node: TreeSelectNormalizedNode) => boolean);
|
|
6407
|
+
searchValue?: string;
|
|
6408
|
+
treeNodeFilterProp?: string;
|
|
6409
|
+
onSearch?: (value: string) => void;
|
|
6410
|
+
}
|
|
6411
|
+
export interface TreeSelectChangeExtra {
|
|
6412
|
+
triggerValue?: TreeSelectValue | null;
|
|
6413
|
+
selected?: boolean;
|
|
6414
|
+
checked?: boolean;
|
|
6415
|
+
clear?: boolean;
|
|
6416
|
+
triggerNode?: TreeSelectNormalizedNode | null;
|
|
6417
|
+
checkedNodes?: TreeSelectNormalizedNode[];
|
|
6418
|
+
displayNodes?: TreeSelectNormalizedNode[];
|
|
6419
|
+
halfCheckedKeys?: TreeSelectValue[];
|
|
6420
|
+
}
|
|
6421
|
+
export interface TreeSelectTagRenderProps {
|
|
6422
|
+
label: any;
|
|
6423
|
+
value: TreeSelectValue;
|
|
6424
|
+
disabled?: boolean;
|
|
6425
|
+
closable: boolean;
|
|
6426
|
+
node: TreeSelectNormalizedNode;
|
|
6427
|
+
onClose: (event: MouseEvent) => void;
|
|
6428
|
+
}
|
|
6429
|
+
export interface TreeSelectSwitcherRenderContext {
|
|
6430
|
+
expanded: boolean;
|
|
6431
|
+
loading: boolean;
|
|
6432
|
+
selected: boolean;
|
|
6433
|
+
checked: boolean;
|
|
6434
|
+
halfChecked: boolean;
|
|
6435
|
+
node: TreeSelectNormalizedNode;
|
|
6436
|
+
}
|
|
6437
|
+
export interface TreeSelectProps {
|
|
6438
|
+
value?: TreeSelectValue | TreeSelectValue[] | TreeSelectLabeledValue | TreeSelectLabeledValue[] | null;
|
|
6439
|
+
defaultValue?: TreeSelectValue | TreeSelectValue[] | TreeSelectLabeledValue | TreeSelectLabeledValue[] | null;
|
|
6440
|
+
treeData?: TreeSelectDataNode[];
|
|
6441
|
+
fieldNames?: TreeSelectFieldNames;
|
|
6442
|
+
treeDataSimpleMode?: boolean | TreeSelectSimpleModeConfig;
|
|
6443
|
+
multiple?: boolean;
|
|
6444
|
+
treeCheckable?: boolean;
|
|
6445
|
+
treeCheckStrictly?: boolean;
|
|
6446
|
+
showCheckedStrategy?: TreeSelectShowCheckedStrategy;
|
|
6447
|
+
labelInValue?: boolean;
|
|
6448
|
+
showSearch?: boolean | TreeSelectShowSearchConfig;
|
|
6449
|
+
searchValue?: string;
|
|
6450
|
+
filterTreeNode?: boolean | ((inputValue: string, node: TreeSelectNormalizedNode) => boolean);
|
|
6451
|
+
treeNodeFilterProp?: string;
|
|
6452
|
+
placeholder?: any;
|
|
6453
|
+
allowClear?: boolean | {
|
|
6454
|
+
clearIcon?: any;
|
|
6455
|
+
};
|
|
6456
|
+
clearLabel?: string;
|
|
6457
|
+
notFoundContent?: any;
|
|
6458
|
+
disabled?: boolean;
|
|
6459
|
+
loading?: boolean;
|
|
6460
|
+
open?: boolean;
|
|
6461
|
+
defaultOpen?: boolean;
|
|
6462
|
+
onOpenChange?: (open: boolean) => void;
|
|
6463
|
+
treeDefaultExpandAll?: boolean;
|
|
6464
|
+
treeDefaultExpandedKeys?: TreeSelectValue[];
|
|
6465
|
+
treeExpandedKeys?: TreeSelectValue[];
|
|
6466
|
+
treeLoadedKeys?: TreeSelectValue[];
|
|
6467
|
+
onTreeExpand?: (keys: TreeSelectValue[]) => void;
|
|
6468
|
+
loadData?: (node: TreeSelectNormalizedNode) => Promise<any> | void;
|
|
6469
|
+
maxCount?: number;
|
|
6470
|
+
maxTagCount?: number | "responsive";
|
|
6471
|
+
maxTagPlaceholder?: any | ((omittedValues: TreeSelectNormalizedNode[]) => any);
|
|
6472
|
+
maxTagTextLength?: number;
|
|
6473
|
+
listHeight?: number;
|
|
6474
|
+
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
6475
|
+
popupMatchSelectWidth?: boolean | number;
|
|
6476
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "small" | "medium" | "middle" | "large";
|
|
6477
|
+
status?: "error" | "warning";
|
|
6478
|
+
variant?: "outlined" | "filled" | "borderless" | "underlined";
|
|
6479
|
+
prefix?: any;
|
|
6480
|
+
suffix?: any;
|
|
6481
|
+
suffixIcon?: any;
|
|
6482
|
+
showArrow?: boolean;
|
|
6483
|
+
switcherIcon?: any | ((context: TreeSelectSwitcherRenderContext) => any);
|
|
6484
|
+
treeTitleRender?: (node: TreeSelectNormalizedNode) => any;
|
|
6485
|
+
treeNodeLabelProp?: string;
|
|
6486
|
+
treeLine?: boolean | {
|
|
6487
|
+
showLeafIcon?: boolean;
|
|
6488
|
+
};
|
|
6489
|
+
tagRender?: (props: TreeSelectTagRenderProps) => any;
|
|
6490
|
+
onSearch?: (value: string) => void;
|
|
6491
|
+
onChange?: (value: TreeSelectValue | TreeSelectValue[] | TreeSelectLabeledValue | TreeSelectLabeledValue[] | null, label: any, extra: TreeSelectChangeExtra) => void;
|
|
6492
|
+
onSelect?: (value: TreeSelectValue | TreeSelectLabeledValue, node: TreeSelectNormalizedNode, extra: TreeSelectChangeExtra) => void;
|
|
6493
|
+
onDeselect?: (value: TreeSelectValue | TreeSelectLabeledValue, node: TreeSelectNormalizedNode, extra: TreeSelectChangeExtra) => void;
|
|
6494
|
+
onClear?: (event: MouseEvent) => void;
|
|
6495
|
+
onPopupScroll?: (event: UIEvent) => void;
|
|
6496
|
+
className?: string;
|
|
6497
|
+
style?: any;
|
|
6498
|
+
selectorClassName?: string;
|
|
6499
|
+
selectorStyle?: any;
|
|
6500
|
+
popupClassName?: string;
|
|
6501
|
+
popupStyle?: any;
|
|
6502
|
+
dropdownClassName?: string;
|
|
6503
|
+
dropdownStyle?: any;
|
|
6504
|
+
classNames?: Record<string, any>;
|
|
6505
|
+
styles?: Record<string, any>;
|
|
6506
|
+
children?: any;
|
|
6507
|
+
[key: string]: any;
|
|
6508
|
+
}
|
|
6509
|
+
export interface TreeSelectNormalizedNode {
|
|
6510
|
+
key: string;
|
|
6511
|
+
value: TreeSelectValue;
|
|
6512
|
+
valueKey: string;
|
|
6513
|
+
label: any;
|
|
6514
|
+
labelText: string;
|
|
6515
|
+
depth: number;
|
|
6516
|
+
parentValueKey?: string;
|
|
6517
|
+
children: TreeSelectNormalizedNode[];
|
|
6518
|
+
raw: TreeSelectDataNode;
|
|
6519
|
+
disabled: boolean;
|
|
6520
|
+
selectable: boolean;
|
|
6521
|
+
checkable: boolean;
|
|
6522
|
+
disableCheckbox: boolean;
|
|
6523
|
+
isLeaf: boolean;
|
|
6524
|
+
className?: string;
|
|
6525
|
+
icon?: any;
|
|
6526
|
+
}
|
|
6527
|
+
export type TreeSelectCompound = FC<TreeSelectProps> & {
|
|
6528
|
+
SHOW_ALL: typeof SHOW_ALL;
|
|
6529
|
+
SHOW_PARENT: typeof SHOW_PARENT;
|
|
6530
|
+
SHOW_CHILD: typeof SHOW_CHILD;
|
|
6531
|
+
};
|
|
6532
|
+
export declare const TreeSelect: TreeSelectCompound;
|
|
6533
|
+
export interface WatermarkFont {
|
|
6534
|
+
color?: string;
|
|
6535
|
+
fontSize?: number | string;
|
|
6536
|
+
fontWeight?: "normal" | "lighter" | "bold" | "bolder" | number;
|
|
6537
|
+
fontStyle?: "none" | "normal" | "italic" | "oblique";
|
|
6538
|
+
fontFamily?: string;
|
|
6539
|
+
textAlign?: "left" | "right" | "center" | "start" | "end";
|
|
6540
|
+
}
|
|
6541
|
+
export interface WatermarkProps {
|
|
6542
|
+
zIndex?: number;
|
|
6543
|
+
rotate?: number;
|
|
6544
|
+
width?: number;
|
|
6545
|
+
height?: number;
|
|
6546
|
+
image?: string;
|
|
6547
|
+
content?: string | string[];
|
|
6548
|
+
font?: WatermarkFont;
|
|
6549
|
+
className?: string;
|
|
6550
|
+
rootClassName?: string;
|
|
6551
|
+
overlayClassName?: string;
|
|
6552
|
+
style?: any;
|
|
6553
|
+
overlayStyle?: any;
|
|
6554
|
+
gap?: [
|
|
6555
|
+
number,
|
|
6556
|
+
number
|
|
6557
|
+
];
|
|
6558
|
+
offset?: [
|
|
6559
|
+
number,
|
|
6560
|
+
number
|
|
6561
|
+
];
|
|
6562
|
+
opacity?: number;
|
|
6563
|
+
children?: any;
|
|
6564
|
+
inherit?: boolean;
|
|
6565
|
+
[key: string]: any;
|
|
6566
|
+
}
|
|
6567
|
+
export declare const Watermark: FC<WatermarkProps>;
|
|
4204
6568
|
export type ValidatorHost = "input" | "select" | "textarea";
|
|
4205
6569
|
export type ValidatorAppearance = "input" | "select" | "textarea" | "checkbox" | "toggle";
|
|
4206
6570
|
export type ValidatorHintHost = "div" | "p" | "span";
|
|
@@ -4248,6 +6612,7 @@ export {
|
|
|
4248
6612
|
AccordionCompound as Accordion,
|
|
4249
6613
|
AvatarCompound as Avatar,
|
|
4250
6614
|
BreadcrumbsCompound as Breadcrumbs,
|
|
6615
|
+
ButtonCompound as Button,
|
|
4251
6616
|
CalendarCompound as Calendar,
|
|
4252
6617
|
CardCompound as Card,
|
|
4253
6618
|
CarouselCompound as Carousel,
|
|
@@ -4255,11 +6620,13 @@ export {
|
|
|
4255
6620
|
CheckboxCompound as Checkbox,
|
|
4256
6621
|
CollapseCompound as Collapse,
|
|
4257
6622
|
CountdownCompound as Countdown,
|
|
6623
|
+
DescriptionsCompound as Descriptions,
|
|
4258
6624
|
DiffCompound as Diff,
|
|
4259
6625
|
DockCompound as Dock,
|
|
4260
6626
|
DropdownCompound as Dropdown,
|
|
4261
6627
|
FabCompound as Fab,
|
|
4262
6628
|
FilterCompound as Filter,
|
|
6629
|
+
GridCompound$1 as Grid,
|
|
4263
6630
|
HeroCompound as Hero,
|
|
4264
6631
|
IndicatorCompound as Indicator,
|
|
4265
6632
|
InputCompound as Input,
|
|
@@ -4267,8 +6634,11 @@ export {
|
|
|
4267
6634
|
LabelCompound as Label,
|
|
4268
6635
|
ListCompound as List,
|
|
4269
6636
|
MenuCompound as Menu,
|
|
6637
|
+
MessageCompound as Message,
|
|
6638
|
+
NotificationCompound as Notification,
|
|
4270
6639
|
Range$1 as Range,
|
|
4271
6640
|
RatingCompound as Rating,
|
|
6641
|
+
Root as Popover,
|
|
4272
6642
|
StatCompound as Stat,
|
|
4273
6643
|
StepsCompound as Steps,
|
|
4274
6644
|
SwapCompound as Swap,
|