@douyinfe/semi-ui 2.45.3-alpha.0 → 2.46.0-beta.0

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.
@@ -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
  }
@@ -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;
@@ -86,7 +86,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
86
86
  onDropdownVisibleChange?: (visible: boolean) => void;
87
87
  zIndex?: number;
88
88
  position?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
89
- onSearch?: (value: string, event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
89
+ onSearch?: (value: string, event: React.KeyboardEvent<Element> | React.MouseEvent<Element, MouseEvent>) => void;
90
90
  dropdownClassName?: string;
91
91
  dropdownStyle?: React.CSSProperties;
92
92
  dropdownMargin?: number | {
@@ -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, "stopPropagation" | "motion" | "getPopupContainer" | "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>;
@@ -32,7 +32,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
32
32
  onDropdownVisibleChange?: (visible: boolean) => void;
33
33
  zIndex?: number;
34
34
  position?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
35
- onSearch?: (value: string, event: import("react").MouseEvent<Element, MouseEvent> | import("react").KeyboardEvent<Element>) => void;
35
+ onSearch?: (value: string, event: import("react").KeyboardEvent<Element> | import("react").MouseEvent<Element, MouseEvent>) => void;
36
36
  dropdownClassName?: string;
37
37
  dropdownStyle?: import("react").CSSProperties;
38
38
  dropdownMargin?: number | {
@@ -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, "stopPropagation" | "motion" | "getPopupContainer" | "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>>;
@@ -140,19 +140,19 @@ export declare function withWarning(props: ModalReactProps): {
140
140
  type: "warning";
141
141
  };
142
142
  export declare function withError(props: ModalReactProps): {
143
+ title?: React.ReactNode;
143
144
  children?: React.ReactNode;
145
+ size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
144
146
  style?: React.CSSProperties;
145
147
  className?: string;
148
+ motion?: boolean;
146
149
  getPopupContainer?: () => HTMLElement;
147
150
  footer?: React.ReactNode;
148
151
  header?: React.ReactNode;
149
- title?: React.ReactNode;
150
152
  direction?: any;
151
153
  mask?: boolean;
152
154
  visible?: boolean;
153
155
  zIndex?: number;
154
- size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
155
- motion?: boolean;
156
156
  width?: string | number;
157
157
  height?: string | number;
158
158
  content?: React.ReactNode;
@@ -201,10 +201,13 @@ export declare function withError(props: ModalReactProps): {
201
201
  onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
202
202
  onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
203
203
  'aria-label'?: string;
204
+ title?: string;
205
+ name?: string;
204
206
  value?: string | number | readonly string[];
207
+ onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
208
+ onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
205
209
  form?: string;
206
210
  slot?: string;
207
- title?: string;
208
211
  prefix?: string;
209
212
  dangerouslySetInnerHTML?: {
210
213
  __html: string | TrustedHTML;
@@ -359,9 +362,7 @@ export declare function withError(props: ModalReactProps): {
359
362
  onScrollCapture?: React.UIEventHandler<HTMLButtonElement>;
360
363
  onWheel?: React.WheelEventHandler<HTMLButtonElement>;
361
364
  onWheelCapture?: React.WheelEventHandler<HTMLButtonElement>;
362
- onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
363
365
  onAnimationStartCapture?: React.AnimationEventHandler<HTMLButtonElement>;
364
- onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
365
366
  onAnimationEndCapture?: React.AnimationEventHandler<HTMLButtonElement>;
366
367
  onAnimationIteration?: React.AnimationEventHandler<HTMLButtonElement>;
367
368
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
@@ -375,7 +376,6 @@ export declare function withError(props: ModalReactProps): {
375
376
  suppressHydrationWarning?: boolean;
376
377
  accessKey?: string;
377
378
  autoFocus?: boolean;
378
- name?: string;
379
379
  content?: string;
380
380
  formAction?: string;
381
381
  formEncType?: string;
@@ -389,7 +389,7 @@ export declare function withError(props: ModalReactProps): {
389
389
  translate?: "no" | "yes";
390
390
  role?: React.AriaRole;
391
391
  contentEditable?: "inherit" | (boolean | "true" | "false");
392
- inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
392
+ inputMode?: "search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal";
393
393
  nonce?: string;
394
394
  tabIndex?: number;
395
395
  'aria-expanded'?: boolean | "true" | "false";
@@ -422,7 +422,7 @@ 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;
@@ -228,7 +228,7 @@ declare class TreeSelect extends BaseComponent<TreeSelectProps, TreeSelectState>
228
228
  renderArrow: () => JSX.Element;
229
229
  renderClearBtn: () => JSX.Element;
230
230
  renderSelection: () => JSX.Element;
231
- renderTagItem: (key: string, idx: number) => string | number | boolean | React.ReactFragment | JSX.Element;
231
+ renderTagItem: (key: string, idx: number) => any;
232
232
  renderTagInput: () => JSX.Element;
233
233
  renderInput: () => JSX.Element;
234
234
  renderEmpty: () => JSX.Element;
@@ -200,7 +200,7 @@ class TreeSelect extends _baseComponent.default {
200
200
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
201
201
  index,
202
202
  onClose
203
- }) : null;
203
+ }) : {};
204
204
  if ((0, _isNull2.default)(content) || (0, _isUndefined2.default)(content)) {
205
205
  return;
206
206
  }
@@ -496,7 +496,7 @@ class TreeSelect extends _baseComponent.default {
496
496
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
497
497
  index: idx,
498
498
  onClose
499
- }) : null;
499
+ }) : {};
500
500
  if (isRenderInTag) {
501
501
  return /*#__PURE__*/_react.default.createElement(_index.default, Object.assign({}, tagProps), content);
502
502
  } else {
@@ -60,7 +60,7 @@ export default class Title extends PureComponent<TitleProps> {
60
60
  underline: PropTypes.Requireable<boolean>;
61
61
  strong: PropTypes.Requireable<boolean>;
62
62
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
63
- heading: PropTypes.Requireable<4 | 2 | 5 | 1 | 3 | 6>;
63
+ heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
64
64
  style: PropTypes.Requireable<object>;
65
65
  className: PropTypes.Requireable<string>;
66
66
  component: PropTypes.Requireable<string>;
@@ -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
  }
@@ -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;
@@ -86,7 +86,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
86
86
  onDropdownVisibleChange?: (visible: boolean) => void;
87
87
  zIndex?: number;
88
88
  position?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
89
- onSearch?: (value: string, event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
89
+ onSearch?: (value: string, event: React.KeyboardEvent<Element> | React.MouseEvent<Element, MouseEvent>) => void;
90
90
  dropdownClassName?: string;
91
91
  dropdownStyle?: React.CSSProperties;
92
92
  dropdownMargin?: number | {
@@ -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, "stopPropagation" | "motion" | "getPopupContainer" | "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>;
@@ -32,7 +32,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
32
32
  onDropdownVisibleChange?: (visible: boolean) => void;
33
33
  zIndex?: number;
34
34
  position?: "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
35
- onSearch?: (value: string, event: import("react").MouseEvent<Element, MouseEvent> | import("react").KeyboardEvent<Element>) => void;
35
+ onSearch?: (value: string, event: import("react").KeyboardEvent<Element> | import("react").MouseEvent<Element, MouseEvent>) => void;
36
36
  dropdownClassName?: string;
37
37
  dropdownStyle?: import("react").CSSProperties;
38
38
  dropdownMargin?: number | {
@@ -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, "stopPropagation" | "motion" | "getPopupContainer" | "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>>;
@@ -140,19 +140,19 @@ export declare function withWarning(props: ModalReactProps): {
140
140
  type: "warning";
141
141
  };
142
142
  export declare function withError(props: ModalReactProps): {
143
+ title?: React.ReactNode;
143
144
  children?: React.ReactNode;
145
+ size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
144
146
  style?: React.CSSProperties;
145
147
  className?: string;
148
+ motion?: boolean;
146
149
  getPopupContainer?: () => HTMLElement;
147
150
  footer?: React.ReactNode;
148
151
  header?: React.ReactNode;
149
- title?: React.ReactNode;
150
152
  direction?: any;
151
153
  mask?: boolean;
152
154
  visible?: boolean;
153
155
  zIndex?: number;
154
- size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
155
- motion?: boolean;
156
156
  width?: string | number;
157
157
  height?: string | number;
158
158
  content?: React.ReactNode;
@@ -201,10 +201,13 @@ export declare function withError(props: ModalReactProps): {
201
201
  onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
202
202
  onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
203
203
  'aria-label'?: string;
204
+ title?: string;
205
+ name?: string;
204
206
  value?: string | number | readonly string[];
207
+ onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
208
+ onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
205
209
  form?: string;
206
210
  slot?: string;
207
- title?: string;
208
211
  prefix?: string;
209
212
  dangerouslySetInnerHTML?: {
210
213
  __html: string | TrustedHTML;
@@ -359,9 +362,7 @@ export declare function withError(props: ModalReactProps): {
359
362
  onScrollCapture?: React.UIEventHandler<HTMLButtonElement>;
360
363
  onWheel?: React.WheelEventHandler<HTMLButtonElement>;
361
364
  onWheelCapture?: React.WheelEventHandler<HTMLButtonElement>;
362
- onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
363
365
  onAnimationStartCapture?: React.AnimationEventHandler<HTMLButtonElement>;
364
- onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
365
366
  onAnimationEndCapture?: React.AnimationEventHandler<HTMLButtonElement>;
366
367
  onAnimationIteration?: React.AnimationEventHandler<HTMLButtonElement>;
367
368
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
@@ -375,7 +376,6 @@ export declare function withError(props: ModalReactProps): {
375
376
  suppressHydrationWarning?: boolean;
376
377
  accessKey?: string;
377
378
  autoFocus?: boolean;
378
- name?: string;
379
379
  content?: string;
380
380
  formAction?: string;
381
381
  formEncType?: string;
@@ -389,7 +389,7 @@ export declare function withError(props: ModalReactProps): {
389
389
  translate?: "no" | "yes";
390
390
  role?: React.AriaRole;
391
391
  contentEditable?: "inherit" | (boolean | "true" | "false");
392
- inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
392
+ inputMode?: "search" | "none" | "text" | "email" | "tel" | "url" | "numeric" | "decimal";
393
393
  nonce?: string;
394
394
  tabIndex?: number;
395
395
  'aria-expanded'?: boolean | "true" | "false";
@@ -422,7 +422,7 @@ 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;
@@ -228,7 +228,7 @@ declare class TreeSelect extends BaseComponent<TreeSelectProps, TreeSelectState>
228
228
  renderArrow: () => JSX.Element;
229
229
  renderClearBtn: () => JSX.Element;
230
230
  renderSelection: () => JSX.Element;
231
- renderTagItem: (key: string, idx: number) => string | number | boolean | React.ReactFragment | JSX.Element;
231
+ renderTagItem: (key: string, idx: number) => any;
232
232
  renderTagInput: () => JSX.Element;
233
233
  renderInput: () => JSX.Element;
234
234
  renderEmpty: () => JSX.Element;
@@ -191,7 +191,7 @@ class TreeSelect extends BaseComponent {
191
191
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
192
192
  index,
193
193
  onClose
194
- }) : null;
194
+ }) : {};
195
195
  if (_isNull(content) || _isUndefined(content)) {
196
196
  return;
197
197
  }
@@ -487,7 +487,7 @@ class TreeSelect extends BaseComponent {
487
487
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
488
488
  index: idx,
489
489
  onClose
490
- }) : null;
490
+ }) : {};
491
491
  if (isRenderInTag) {
492
492
  return /*#__PURE__*/React.createElement(Tag, Object.assign({}, tagProps), content);
493
493
  } else {
@@ -60,7 +60,7 @@ export default class Title extends PureComponent<TitleProps> {
60
60
  underline: PropTypes.Requireable<boolean>;
61
61
  strong: PropTypes.Requireable<boolean>;
62
62
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
63
- heading: PropTypes.Requireable<4 | 2 | 5 | 1 | 3 | 6>;
63
+ heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
64
64
  style: PropTypes.Requireable<object>;
65
65
  className: PropTypes.Requireable<string>;
66
66
  component: PropTypes.Requireable<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.45.3-alpha.0",
3
+ "version": "2.46.0-beta.0",
4
4
  "description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -20,12 +20,12 @@
20
20
  "@dnd-kit/core": "^6.0.8",
21
21
  "@dnd-kit/sortable": "^7.0.2",
22
22
  "@dnd-kit/utilities": "^3.2.1",
23
- "@douyinfe/semi-animation": "2.45.3-alpha.0",
24
- "@douyinfe/semi-animation-react": "2.45.3-alpha.0",
25
- "@douyinfe/semi-foundation": "2.45.3-alpha.0",
26
- "@douyinfe/semi-icons": "2.45.3-alpha.0",
27
- "@douyinfe/semi-illustrations": "2.45.3-alpha.0",
28
- "@douyinfe/semi-theme-default": "2.45.3-alpha.0",
23
+ "@douyinfe/semi-animation": "2.46.0-beta.0",
24
+ "@douyinfe/semi-animation-react": "2.46.0-beta.0",
25
+ "@douyinfe/semi-foundation": "2.46.0-beta.0",
26
+ "@douyinfe/semi-icons": "2.46.0-beta.0",
27
+ "@douyinfe/semi-illustrations": "2.46.0-beta.0",
28
+ "@douyinfe/semi-theme-default": "2.46.0-beta.0",
29
29
  "async-validator": "^3.5.0",
30
30
  "classnames": "^2.2.6",
31
31
  "copy-text-to-clipboard": "^2.1.1",
@@ -75,7 +75,7 @@
75
75
  ],
76
76
  "author": "",
77
77
  "license": "MIT",
78
- "gitHead": "c3a4c39758b556f94546b5cb38bf2d842669880a",
78
+ "gitHead": "ecce44f71f5c592685055bb2ec9c0ccb3519538d",
79
79
  "devDependencies": {
80
80
  "@babel/plugin-proposal-decorators": "^7.15.8",
81
81
  "@babel/plugin-transform-runtime": "^7.15.8",