@douyinfe/semi-ui 2.45.3-alpha.0 → 2.45.3-alpha.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.
Files changed (49) hide show
  1. package/dist/umd/semi-ui.js +36 -30
  2. package/dist/umd/semi-ui.js.map +1 -1
  3. package/dist/umd/semi-ui.min.js +1 -1
  4. package/dist/umd/semi-ui.min.js.map +1 -1
  5. package/lib/cjs/anchor/index.d.ts +1 -1
  6. package/lib/cjs/autoComplete/index.d.ts +1 -1
  7. package/lib/cjs/button/Button.d.ts +1 -1
  8. package/lib/cjs/button/buttonGroup.d.ts +1 -1
  9. package/lib/cjs/carousel/CarouselIndicator.d.ts +1 -1
  10. package/lib/cjs/carousel/index.d.ts +2 -2
  11. package/lib/cjs/cascader/index.d.ts +2 -0
  12. package/lib/cjs/cascader/index.js +14 -0
  13. package/lib/cjs/datePicker/datePicker.d.ts +1 -1
  14. package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
  15. package/lib/cjs/dropdown/index.d.ts +1 -1
  16. package/lib/cjs/form/baseForm.d.ts +2 -2
  17. package/lib/cjs/form/field.d.ts +2 -2
  18. package/lib/cjs/modal/confirm.d.ts +9 -9
  19. package/lib/cjs/popover/index.d.ts +1 -1
  20. package/lib/cjs/select/index.d.ts +1 -1
  21. package/lib/cjs/table/Table.d.ts +1 -1
  22. package/lib/cjs/tooltip/index.d.ts +1 -1
  23. package/lib/cjs/typography/base.d.ts +2 -1
  24. package/lib/cjs/typography/base.js +5 -16
  25. package/lib/cjs/typography/interface.d.ts +1 -2
  26. package/lib/cjs/typography/title.d.ts +1 -1
  27. package/lib/es/anchor/index.d.ts +1 -1
  28. package/lib/es/autoComplete/index.d.ts +1 -1
  29. package/lib/es/button/Button.d.ts +1 -1
  30. package/lib/es/button/buttonGroup.d.ts +1 -1
  31. package/lib/es/carousel/CarouselIndicator.d.ts +1 -1
  32. package/lib/es/carousel/index.d.ts +2 -2
  33. package/lib/es/cascader/index.d.ts +2 -0
  34. package/lib/es/cascader/index.js +14 -0
  35. package/lib/es/datePicker/datePicker.d.ts +1 -1
  36. package/lib/es/datePicker/monthsGrid.d.ts +1 -1
  37. package/lib/es/dropdown/index.d.ts +1 -1
  38. package/lib/es/form/baseForm.d.ts +2 -2
  39. package/lib/es/form/field.d.ts +2 -2
  40. package/lib/es/modal/confirm.d.ts +9 -9
  41. package/lib/es/popover/index.d.ts +1 -1
  42. package/lib/es/select/index.d.ts +1 -1
  43. package/lib/es/table/Table.d.ts +1 -1
  44. package/lib/es/tooltip/index.d.ts +1 -1
  45. package/lib/es/typography/base.d.ts +2 -1
  46. package/lib/es/typography/base.js +5 -16
  47. package/lib/es/typography/interface.d.ts +1 -2
  48. package/lib/es/typography/title.d.ts +1 -1
  49. package/package.json +8 -8
@@ -49,7 +49,7 @@ declare class Anchor extends BaseComponent<AnchorProps, AnchorState> {
49
49
  offsetTop: PropTypes.Requireable<number>;
50
50
  targetOffset: PropTypes.Requireable<number>;
51
51
  showTooltip: PropTypes.Requireable<boolean>;
52
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
52
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
53
53
  maxWidth: PropTypes.Requireable<NonNullable<string | number>>;
54
54
  maxHeight: PropTypes.Requireable<NonNullable<string | number>>;
55
55
  getContainer: PropTypes.Requireable<(...args: any[]) => any>;
@@ -116,7 +116,7 @@ declare class AutoComplete<T extends AutoCompleteItems> extends BaseComponent<Au
116
116
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
117
117
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
118
118
  onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
119
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
119
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
120
120
  placeholder: PropTypes.Requireable<string>;
121
121
  prefix: PropTypes.Requireable<PropTypes.ReactNodeLike>;
122
122
  onChangeWithObject: PropTypes.Requireable<boolean>;
@@ -55,7 +55,7 @@ export default class Button extends PureComponent<ButtonProps> {
55
55
  circle: PropTypes.Requireable<boolean>;
56
56
  loading: PropTypes.Requireable<boolean>;
57
57
  htmlType: PropTypes.Requireable<"button" | "submit" | "reset">;
58
- theme: PropTypes.Requireable<"solid" | "light" | "borderless">;
58
+ theme: PropTypes.Requireable<"light" | "solid" | "borderless">;
59
59
  className: PropTypes.Requireable<string>;
60
60
  onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
61
61
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
@@ -19,7 +19,7 @@ export default class ButtonGroup extends BaseComponent<ButtonGroupProps> {
19
19
  disabled: PropTypes.Requireable<boolean>;
20
20
  type: PropTypes.Requireable<string>;
21
21
  size: PropTypes.Requireable<"default" | "small" | "large">;
22
- theme: PropTypes.Requireable<"solid" | "light" | "borderless">;
22
+ theme: PropTypes.Requireable<"light" | "solid" | "borderless">;
23
23
  'aria-label': PropTypes.Requireable<string>;
24
24
  };
25
25
  static defaultProps: {
@@ -8,7 +8,7 @@ declare class CarouselIndicator extends React.PureComponent<CarouselIndicatorPro
8
8
  position: PropTypes.Requireable<"center" | "left" | "right">;
9
9
  size: PropTypes.Requireable<"small" | "medium">;
10
10
  style: PropTypes.Requireable<object>;
11
- theme: PropTypes.Requireable<"dark" | "light" | "primary">;
11
+ theme: PropTypes.Requireable<"primary" | "light" | "dark">;
12
12
  total: PropTypes.Requireable<number>;
13
13
  onIndicatorChange: PropTypes.Requireable<(...args: any[]) => any>;
14
14
  type: PropTypes.Requireable<"line" | "dot" | "columnar">;
@@ -22,9 +22,9 @@ declare class Carousel extends BaseComponent<CarouselProps, CarouselState> {
22
22
  indicatorPosition: PropTypes.Requireable<"center" | "left" | "right">;
23
23
  indicatorSize: PropTypes.Requireable<"small" | "medium">;
24
24
  indicatorType: PropTypes.Requireable<"line" | "dot" | "columnar">;
25
- theme: PropTypes.Requireable<"dark" | "light" | "primary">;
25
+ theme: PropTypes.Requireable<"primary" | "light" | "dark">;
26
26
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
27
- arrowType: PropTypes.Requireable<"always" | "hover">;
27
+ arrowType: PropTypes.Requireable<"hover" | "always">;
28
28
  showArrow: PropTypes.Requireable<boolean>;
29
29
  showIndicator: PropTypes.Requireable<boolean>;
30
30
  slideDirection: PropTypes.Requireable<"left" | "right">;
@@ -182,6 +182,8 @@ declare class Cascader extends BaseComponent<CascaderProps, CascaderState> {
182
182
  clickOutsideHandler: any;
183
183
  mergeType: string;
184
184
  context: ContextValue;
185
+ loadingKeysRef: React.RefObject<Set<string> | null>;
186
+ loadedKeysRef: React.RefObject<Set<string> | null>;
185
187
  constructor(props: CascaderProps);
186
188
  get adapter(): CascaderAdapter;
187
189
  static getDerivedStateFromProps(props: CascaderProps, prevState: CascaderState): Partial<CascaderState>;
@@ -516,6 +516,8 @@ class Cascader extends _baseComponent.default {
516
516
  this.optionsRef = /*#__PURE__*/_react.default.createRef();
517
517
  this.clickOutsideHandler = null;
518
518
  this.foundation = new _foundation.default(this.adapter);
519
+ this.loadingKeysRef = /*#__PURE__*/_react.default.createRef();
520
+ this.loadedKeysRef = /*#__PURE__*/_react.default.createRef();
519
521
  }
520
522
  get adapter() {
521
523
  var _this = this;
@@ -661,6 +663,18 @@ class Cascader extends _baseComponent.default {
661
663
  this.setState({
662
664
  isFocus
663
665
  });
666
+ },
667
+ updateLoadingKeyRefValue: keys => {
668
+ this.loadingKeysRef.current = keys;
669
+ },
670
+ getLoadingKeyRefValue: () => {
671
+ return this.loadingKeysRef.current;
672
+ },
673
+ updateLoadedKeyRefValue: keys => {
674
+ this.loadedKeysRef.current = keys;
675
+ },
676
+ getLoadedKeyRefValue: () => {
677
+ return this.loadedKeysRef.current;
664
678
  }
665
679
  });
666
680
  }
@@ -91,7 +91,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
91
91
  insetLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
92
92
  insetLabelId: PropTypes.Requireable<string>;
93
93
  zIndex: PropTypes.Requireable<number>;
94
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
94
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
95
95
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
96
96
  onCancel: PropTypes.Requireable<(...args: any[]) => any>;
97
97
  onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
@@ -86,7 +86,7 @@ export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGri
86
86
  renderMonth(month: Date, panelType: PanelType): JSX.Element;
87
87
  handleWeeksRowNumChange: (weeksRowNum: number, panelType: PanelType) => void;
88
88
  reselect: () => void;
89
- getYAMOpenType: () => "none" | "left" | "right" | "both";
89
+ getYAMOpenType: () => "both" | "none" | "left" | "right";
90
90
  renderTimePicker(panelType: PanelType, panelDetail: MonthInfo): JSX.Element;
91
91
  renderYearAndMonth(panelType: PanelType, panelDetail: MonthInfo): JSX.Element;
92
92
  renderSwitch(panelType: PanelType): JSX.Element;
@@ -66,7 +66,7 @@ declare class Dropdown extends BaseComponent<DropdownProps, DropdownState> {
66
66
  motion: PropTypes.Requireable<NonNullable<boolean | object>>;
67
67
  onVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
68
68
  prefixCls: PropTypes.Requireable<string>;
69
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
69
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
70
70
  rePosKey: PropTypes.Requireable<NonNullable<string | number>>;
71
71
  render: PropTypes.Requireable<PropTypes.ReactNodeLike>;
72
72
  spacing: PropTypes.Requireable<NonNullable<number | object>>;
@@ -85,7 +85,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
85
85
  expandRestTagsOnClick?: boolean;
86
86
  onDropdownVisibleChange?: (visible: boolean) => void;
87
87
  zIndex?: number;
88
- position?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
88
+ position?: "left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
89
89
  onSearch?: (value: string, event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
90
90
  dropdownClassName?: string;
91
91
  dropdownStyle?: React.CSSProperties;
@@ -140,7 +140,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
140
140
  preventScroll?: boolean;
141
141
  showRestTagsPopover?: boolean;
142
142
  restTagsPopoverProps?: import("../popover").PopoverProps;
143
- } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
143
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "motion" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
144
144
  static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
145
145
  static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes<any>>;
146
146
  static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
@@ -31,7 +31,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
31
31
  expandRestTagsOnClick?: boolean;
32
32
  onDropdownVisibleChange?: (visible: boolean) => void;
33
33
  zIndex?: number;
34
- position?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
34
+ position?: "left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
35
35
  onSearch?: (value: string, event: import("react").MouseEvent<Element, MouseEvent> | import("react").KeyboardEvent<Element>) => void;
36
36
  dropdownClassName?: string;
37
37
  dropdownStyle?: import("react").CSSProperties;
@@ -86,7 +86,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
86
86
  preventScroll?: boolean;
87
87
  showRestTagsPopover?: boolean;
88
88
  restTagsPopoverProps?: import("../popover").PopoverProps;
89
- } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
89
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "motion" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
90
90
  declare const FormCheckboxGroup: import("react").ComponentType<import("utility-types").Subtract<import("../checkbox/checkboxGroup").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
91
91
  declare const FormCheckbox: import("react").ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox/checkbox").CheckboxProps & import("./interface").RCIncludeType>;
92
92
  declare const FormRadioGroup: import("react").ComponentType<import("utility-types").Subtract<import("../radio/radioGroup").RadioGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
@@ -148,18 +148,18 @@ export declare function withError(props: ModalReactProps): {
148
148
  header?: React.ReactNode;
149
149
  title?: React.ReactNode;
150
150
  direction?: any;
151
+ motion?: boolean;
151
152
  mask?: boolean;
152
153
  visible?: boolean;
153
154
  zIndex?: number;
154
155
  size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
155
- motion?: boolean;
156
+ onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
156
157
  width?: string | number;
157
158
  height?: string | number;
158
159
  content?: React.ReactNode;
159
- icon: string | number | boolean | React.ReactFragment | JSX.Element;
160
- onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
161
160
  closeOnEsc?: boolean;
162
161
  preventScroll?: boolean;
162
+ icon: string | number | boolean | React.ReactFragment | JSX.Element;
163
163
  afterClose?: () => void;
164
164
  keepDOM?: boolean;
165
165
  cancelText?: string;
@@ -205,6 +205,8 @@ export declare function withError(props: ModalReactProps): {
205
205
  form?: string;
206
206
  slot?: string;
207
207
  title?: string;
208
+ onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
209
+ onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
208
210
  prefix?: string;
209
211
  dangerouslySetInnerHTML?: {
210
212
  __html: string | TrustedHTML;
@@ -359,9 +361,7 @@ export declare function withError(props: ModalReactProps): {
359
361
  onScrollCapture?: React.UIEventHandler<HTMLButtonElement>;
360
362
  onWheel?: React.WheelEventHandler<HTMLButtonElement>;
361
363
  onWheelCapture?: React.WheelEventHandler<HTMLButtonElement>;
362
- onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
363
364
  onAnimationStartCapture?: React.AnimationEventHandler<HTMLButtonElement>;
364
- onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
365
365
  onAnimationEndCapture?: React.AnimationEventHandler<HTMLButtonElement>;
366
366
  onAnimationIteration?: React.AnimationEventHandler<HTMLButtonElement>;
367
367
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
@@ -376,7 +376,6 @@ export declare function withError(props: ModalReactProps): {
376
376
  accessKey?: string;
377
377
  autoFocus?: boolean;
378
378
  name?: string;
379
- content?: string;
380
379
  formAction?: string;
381
380
  formEncType?: string;
382
381
  formMethod?: string;
@@ -389,9 +388,10 @@ export declare function withError(props: ModalReactProps): {
389
388
  translate?: "no" | "yes";
390
389
  role?: React.AriaRole;
391
390
  contentEditable?: "inherit" | (boolean | "true" | "false");
392
- inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
391
+ inputMode?: "search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal";
393
392
  nonce?: string;
394
393
  tabIndex?: number;
394
+ content?: string;
395
395
  'aria-expanded'?: boolean | "true" | "false";
396
396
  'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false";
397
397
  'aria-controls'?: string;
@@ -422,13 +422,13 @@ export declare function withError(props: ModalReactProps): {
422
422
  is?: string;
423
423
  'aria-activedescendant'?: string;
424
424
  'aria-atomic'?: boolean | "true" | "false";
425
- 'aria-autocomplete'?: "none" | "list" | "both" | "inline";
425
+ 'aria-autocomplete'?: "both" | "none" | "list" | "inline";
426
426
  'aria-busy'?: boolean | "true" | "false";
427
427
  'aria-checked'?: boolean | "true" | "false" | "mixed";
428
428
  'aria-colcount'?: number;
429
429
  'aria-colindex'?: number;
430
430
  'aria-colspan'?: number;
431
- 'aria-current'?: boolean | "time" | "true" | "false" | "date" | "page" | "location" | "step";
431
+ 'aria-current'?: boolean | "time" | "true" | "false" | "date" | "location" | "page" | "step";
432
432
  'aria-details'?: string;
433
433
  'aria-disabled'?: boolean | "true" | "false";
434
434
  'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup";
@@ -58,7 +58,7 @@ declare class Popover extends React.PureComponent<PopoverProps, PopoverState> {
58
58
  visible: PropTypes.Requireable<boolean>;
59
59
  autoAdjustOverflow: PropTypes.Requireable<boolean>;
60
60
  motion: PropTypes.Requireable<boolean>;
61
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
61
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
62
62
  margin: PropTypes.Requireable<NonNullable<number | object>>;
63
63
  mouseEnterDelay: PropTypes.Requireable<number>;
64
64
  mouseLeaveDelay: PropTypes.Requireable<number>;
@@ -200,7 +200,7 @@ declare class Select extends BaseComponent<SelectProps, SelectState> {
200
200
  expandRestTagsOnClick: PropTypes.Requireable<boolean>;
201
201
  onDropdownVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
202
202
  zIndex: PropTypes.Requireable<number>;
203
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
203
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
204
204
  onSearch: PropTypes.Requireable<(...args: any[]) => any>;
205
205
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
206
206
  dropdownClassName: PropTypes.Requireable<string>;
@@ -308,7 +308,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
308
308
  showSizeChanger?: boolean;
309
309
  showQuickJumper?: boolean;
310
310
  popoverZIndex?: number;
311
- popoverPosition?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
311
+ popoverPosition?: "left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
312
312
  hideOnSinglePage?: boolean;
313
313
  hoverShowPageSelect?: boolean;
314
314
  disabled?: boolean;
@@ -91,7 +91,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
91
91
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
92
92
  motion: PropTypes.Requireable<boolean>;
93
93
  autoAdjustOverflow: PropTypes.Requireable<boolean>;
94
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
94
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
95
95
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
96
96
  mouseEnterDelay: PropTypes.Requireable<number>;
97
97
  mouseLeaveDelay: PropTypes.Requireable<number>;
@@ -132,6 +132,7 @@ export default class Base extends Component<BaseTypographyProps, BaseTypographyS
132
132
  shouldTruncated: (rows: number) => boolean;
133
133
  showTooltip: () => boolean | ShowTooltip | {
134
134
  type: string;
135
+ opts: {};
135
136
  };
136
137
  getEllipsisState(): boolean;
137
138
  /**
@@ -190,7 +191,7 @@ export default class Base extends Component<BaseTypographyProps, BaseTypographyS
190
191
  renderCopy(): JSX.Element;
191
192
  renderIcon(): JSX.Element;
192
193
  renderContent(): JSX.Element;
193
- renderTipWrapper(): string | number | boolean | React.ReactFragment | JSX.Element;
194
+ renderTipWrapper(): JSX.Element;
194
195
  render(): JSX.Element;
195
196
  }
196
197
  export {};
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _isFunction2 = _interopRequireDefault(require("lodash/isFunction"));
8
7
  var _isNull2 = _interopRequireDefault(require("lodash/isNull"));
9
8
  var _isString2 = _interopRequireDefault(require("lodash/isString"));
10
9
  var _merge2 = _interopRequireDefault(require("lodash/merge"));
@@ -103,7 +102,6 @@ class Base extends _react.Component {
103
102
  return updateOverflow;
104
103
  };
105
104
  this.showTooltip = () => {
106
- var _a, _b;
107
105
  const {
108
106
  isOverflowed,
109
107
  isTruncated,
@@ -121,7 +119,8 @@ class Base extends _react.Component {
121
119
  return show;
122
120
  }
123
121
  const defaultOpts = {
124
- type: 'tooltip'
122
+ type: 'tooltip',
123
+ opts: {}
125
124
  };
126
125
  if (typeof showTooltip === 'object') {
127
126
  if (showTooltip.type && showTooltip.type.toLowerCase() === 'popover') {
@@ -130,14 +129,7 @@ class Base extends _react.Component {
130
129
  // style: { width: '240px' },
131
130
  showArrow: true
132
131
  }
133
- }, showTooltip, {
134
- opts: {
135
- className: (0, _classnames.default)({
136
- [`${prefixCls}-ellipsis-popover`]: true,
137
- [(_a = showTooltip === null || showTooltip === void 0 ? void 0 : showTooltip.opts) === null || _a === void 0 ? void 0 : _a.className]: Boolean((_b = showTooltip === null || showTooltip === void 0 ? void 0 : showTooltip.opts) === null || _b === void 0 ? void 0 : _b.className)
138
- })
139
- }
140
- });
132
+ }, showTooltip);
141
133
  }
142
134
  return Object.assign(Object.assign({}, defaultOpts), showTooltip);
143
135
  }
@@ -539,12 +531,9 @@ class Base extends _react.Component {
539
531
  if (showTooltip) {
540
532
  const {
541
533
  type,
542
- opts,
543
- renderTooltip
534
+ opts
544
535
  } = showTooltip;
545
- if ((0, _isFunction2.default)(renderTooltip)) {
546
- return renderTooltip(children, content);
547
- } else if (type.toLowerCase() === 'popover') {
536
+ if (type.toLowerCase() === 'popover') {
548
537
  return /*#__PURE__*/_react.default.createElement(_index2.default, Object.assign({
549
538
  content: children,
550
539
  position: "top"
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { PopoverProps } from '../popover';
3
3
  import { TooltipProps } from '../tooltip';
4
4
  import { ArrayElement } from '../_base/base';
@@ -7,7 +7,6 @@ export type EllipsisPos = 'end' | 'middle';
7
7
  export type ShowTooltip = {
8
8
  type?: string;
9
9
  opts?: Partial<PopoverProps> & Partial<TooltipProps>;
10
- renderTooltip?: (content: TooltipProps['content'], children: ReactNode) => ReactNode;
11
10
  };
12
11
  export type Ellipsis = {
13
12
  collapseText?: string;
@@ -64,7 +64,7 @@ export default class Title extends PureComponent<TitleProps> {
64
64
  style: PropTypes.Requireable<object>;
65
65
  className: PropTypes.Requireable<string>;
66
66
  component: PropTypes.Requireable<string>;
67
- weight: PropTypes.Requireable<NonNullable<number | "default" | "bold" | "medium" | "light" | "regular" | "semibold">>;
67
+ weight: PropTypes.Requireable<NonNullable<number | "default" | "bold" | "light" | "regular" | "medium" | "semibold">>;
68
68
  };
69
69
  static defaultProps: {
70
70
  copyable: boolean;
@@ -49,7 +49,7 @@ declare class Anchor extends BaseComponent<AnchorProps, AnchorState> {
49
49
  offsetTop: PropTypes.Requireable<number>;
50
50
  targetOffset: PropTypes.Requireable<number>;
51
51
  showTooltip: PropTypes.Requireable<boolean>;
52
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
52
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
53
53
  maxWidth: PropTypes.Requireable<NonNullable<string | number>>;
54
54
  maxHeight: PropTypes.Requireable<NonNullable<string | number>>;
55
55
  getContainer: PropTypes.Requireable<(...args: any[]) => any>;
@@ -116,7 +116,7 @@ declare class AutoComplete<T extends AutoCompleteItems> extends BaseComponent<Au
116
116
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
117
117
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
118
118
  onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
119
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
119
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
120
120
  placeholder: PropTypes.Requireable<string>;
121
121
  prefix: PropTypes.Requireable<PropTypes.ReactNodeLike>;
122
122
  onChangeWithObject: PropTypes.Requireable<boolean>;
@@ -55,7 +55,7 @@ export default class Button extends PureComponent<ButtonProps> {
55
55
  circle: PropTypes.Requireable<boolean>;
56
56
  loading: PropTypes.Requireable<boolean>;
57
57
  htmlType: PropTypes.Requireable<"button" | "submit" | "reset">;
58
- theme: PropTypes.Requireable<"solid" | "light" | "borderless">;
58
+ theme: PropTypes.Requireable<"light" | "solid" | "borderless">;
59
59
  className: PropTypes.Requireable<string>;
60
60
  onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
61
61
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
@@ -19,7 +19,7 @@ export default class ButtonGroup extends BaseComponent<ButtonGroupProps> {
19
19
  disabled: PropTypes.Requireable<boolean>;
20
20
  type: PropTypes.Requireable<string>;
21
21
  size: PropTypes.Requireable<"default" | "small" | "large">;
22
- theme: PropTypes.Requireable<"solid" | "light" | "borderless">;
22
+ theme: PropTypes.Requireable<"light" | "solid" | "borderless">;
23
23
  'aria-label': PropTypes.Requireable<string>;
24
24
  };
25
25
  static defaultProps: {
@@ -8,7 +8,7 @@ declare class CarouselIndicator extends React.PureComponent<CarouselIndicatorPro
8
8
  position: PropTypes.Requireable<"center" | "left" | "right">;
9
9
  size: PropTypes.Requireable<"small" | "medium">;
10
10
  style: PropTypes.Requireable<object>;
11
- theme: PropTypes.Requireable<"dark" | "light" | "primary">;
11
+ theme: PropTypes.Requireable<"primary" | "light" | "dark">;
12
12
  total: PropTypes.Requireable<number>;
13
13
  onIndicatorChange: PropTypes.Requireable<(...args: any[]) => any>;
14
14
  type: PropTypes.Requireable<"line" | "dot" | "columnar">;
@@ -22,9 +22,9 @@ declare class Carousel extends BaseComponent<CarouselProps, CarouselState> {
22
22
  indicatorPosition: PropTypes.Requireable<"center" | "left" | "right">;
23
23
  indicatorSize: PropTypes.Requireable<"small" | "medium">;
24
24
  indicatorType: PropTypes.Requireable<"line" | "dot" | "columnar">;
25
- theme: PropTypes.Requireable<"dark" | "light" | "primary">;
25
+ theme: PropTypes.Requireable<"primary" | "light" | "dark">;
26
26
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
27
- arrowType: PropTypes.Requireable<"always" | "hover">;
27
+ arrowType: PropTypes.Requireable<"hover" | "always">;
28
28
  showArrow: PropTypes.Requireable<boolean>;
29
29
  showIndicator: PropTypes.Requireable<boolean>;
30
30
  slideDirection: PropTypes.Requireable<"left" | "right">;
@@ -182,6 +182,8 @@ declare class Cascader extends BaseComponent<CascaderProps, CascaderState> {
182
182
  clickOutsideHandler: any;
183
183
  mergeType: string;
184
184
  context: ContextValue;
185
+ loadingKeysRef: React.RefObject<Set<string> | null>;
186
+ loadedKeysRef: React.RefObject<Set<string> | null>;
185
187
  constructor(props: CascaderProps);
186
188
  get adapter(): CascaderAdapter;
187
189
  static getDerivedStateFromProps(props: CascaderProps, prevState: CascaderState): Partial<CascaderState>;
@@ -507,6 +507,8 @@ class Cascader extends BaseComponent {
507
507
  this.optionsRef = /*#__PURE__*/React.createRef();
508
508
  this.clickOutsideHandler = null;
509
509
  this.foundation = new CascaderFoundation(this.adapter);
510
+ this.loadingKeysRef = /*#__PURE__*/React.createRef();
511
+ this.loadedKeysRef = /*#__PURE__*/React.createRef();
510
512
  }
511
513
  get adapter() {
512
514
  var _this = this;
@@ -652,6 +654,18 @@ class Cascader extends BaseComponent {
652
654
  this.setState({
653
655
  isFocus
654
656
  });
657
+ },
658
+ updateLoadingKeyRefValue: keys => {
659
+ this.loadingKeysRef.current = keys;
660
+ },
661
+ getLoadingKeyRefValue: () => {
662
+ return this.loadingKeysRef.current;
663
+ },
664
+ updateLoadedKeyRefValue: keys => {
665
+ this.loadedKeysRef.current = keys;
666
+ },
667
+ getLoadedKeyRefValue: () => {
668
+ return this.loadedKeysRef.current;
655
669
  }
656
670
  });
657
671
  }
@@ -91,7 +91,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
91
91
  insetLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
92
92
  insetLabelId: PropTypes.Requireable<string>;
93
93
  zIndex: PropTypes.Requireable<number>;
94
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
94
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
95
95
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
96
96
  onCancel: PropTypes.Requireable<(...args: any[]) => any>;
97
97
  onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
@@ -86,7 +86,7 @@ export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGri
86
86
  renderMonth(month: Date, panelType: PanelType): JSX.Element;
87
87
  handleWeeksRowNumChange: (weeksRowNum: number, panelType: PanelType) => void;
88
88
  reselect: () => void;
89
- getYAMOpenType: () => "none" | "left" | "right" | "both";
89
+ getYAMOpenType: () => "both" | "none" | "left" | "right";
90
90
  renderTimePicker(panelType: PanelType, panelDetail: MonthInfo): JSX.Element;
91
91
  renderYearAndMonth(panelType: PanelType, panelDetail: MonthInfo): JSX.Element;
92
92
  renderSwitch(panelType: PanelType): JSX.Element;
@@ -66,7 +66,7 @@ declare class Dropdown extends BaseComponent<DropdownProps, DropdownState> {
66
66
  motion: PropTypes.Requireable<NonNullable<boolean | object>>;
67
67
  onVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
68
68
  prefixCls: PropTypes.Requireable<string>;
69
- position: PropTypes.Requireable<"left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
69
+ position: PropTypes.Requireable<"left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
70
70
  rePosKey: PropTypes.Requireable<NonNullable<string | number>>;
71
71
  render: PropTypes.Requireable<PropTypes.ReactNodeLike>;
72
72
  spacing: PropTypes.Requireable<NonNullable<number | object>>;
@@ -85,7 +85,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
85
85
  expandRestTagsOnClick?: boolean;
86
86
  onDropdownVisibleChange?: (visible: boolean) => void;
87
87
  zIndex?: number;
88
- position?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
88
+ position?: "left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
89
89
  onSearch?: (value: string, event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
90
90
  dropdownClassName?: string;
91
91
  dropdownStyle?: React.CSSProperties;
@@ -140,7 +140,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
140
140
  preventScroll?: boolean;
141
141
  showRestTagsPopover?: boolean;
142
142
  restTagsPopoverProps?: import("../popover").PopoverProps;
143
- } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
143
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "motion" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
144
144
  static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
145
145
  static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes<any>>;
146
146
  static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
@@ -31,7 +31,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
31
31
  expandRestTagsOnClick?: boolean;
32
32
  onDropdownVisibleChange?: (visible: boolean) => void;
33
33
  zIndex?: number;
34
- position?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
34
+ position?: "left" | "right" | "top" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
35
35
  onSearch?: (value: string, event: import("react").MouseEvent<Element, MouseEvent> | import("react").KeyboardEvent<Element>) => void;
36
36
  dropdownClassName?: string;
37
37
  dropdownStyle?: import("react").CSSProperties;
@@ -86,7 +86,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
86
86
  preventScroll?: boolean;
87
87
  showRestTagsPopover?: boolean;
88
88
  restTagsPopoverProps?: import("../popover").PopoverProps;
89
- } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
89
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "motion" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
90
90
  declare const FormCheckboxGroup: import("react").ComponentType<import("utility-types").Subtract<import("../checkbox/checkboxGroup").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
91
91
  declare const FormCheckbox: import("react").ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox/checkbox").CheckboxProps & import("./interface").RCIncludeType>;
92
92
  declare const FormRadioGroup: import("react").ComponentType<import("utility-types").Subtract<import("../radio/radioGroup").RadioGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;