@douyinfe/semi-ui 2.22.0-alpha.0 → 2.22.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.
Files changed (71) hide show
  1. package/dist/css/semi.css +12 -0
  2. package/dist/css/semi.min.css +1 -1
  3. package/dist/umd/semi-ui.js +427 -497
  4. package/dist/umd/semi-ui.js.map +1 -1
  5. package/dist/umd/semi-ui.min.js +1 -1
  6. package/dist/umd/semi-ui.min.js.map +1 -1
  7. package/lib/cjs/_base/baseComponent.js +3 -0
  8. package/lib/cjs/anchor/index.d.ts +1 -1
  9. package/lib/cjs/autoComplete/index.d.ts +1 -1
  10. package/lib/cjs/checkbox/checkbox.d.ts +5 -1
  11. package/lib/cjs/checkbox/checkbox.js +24 -0
  12. package/lib/cjs/checkbox/checkboxGroup.js +2 -2
  13. package/lib/cjs/checkbox/context.d.ts +1 -2
  14. package/lib/cjs/datePicker/datePicker.d.ts +2 -2
  15. package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
  16. package/lib/cjs/datePicker/quickControl.d.ts +1 -1
  17. package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
  18. package/lib/cjs/dropdown/dropdownMenu.d.ts +1 -0
  19. package/lib/cjs/dropdown/index.d.ts +2 -1
  20. package/lib/cjs/form/baseForm.d.ts +1 -1
  21. package/lib/cjs/form/field.d.ts +1 -1
  22. package/lib/cjs/image/preview.d.ts +1 -0
  23. package/lib/cjs/image/previewImage.d.ts +1 -1
  24. package/lib/cjs/image/previewImage.js +8 -5
  25. package/lib/cjs/image/previewInner.js +3 -3
  26. package/lib/cjs/input/index.d.ts +1 -0
  27. package/lib/cjs/input/textarea.js +1 -1
  28. package/lib/cjs/popover/index.d.ts +1 -1
  29. package/lib/cjs/select/index.d.ts +1 -1
  30. package/lib/cjs/slider/index.js +2 -2
  31. package/lib/cjs/spin/index.d.ts +1 -0
  32. package/lib/cjs/table/Table.d.ts +1 -1
  33. package/lib/cjs/table/Table.js +20 -1
  34. package/lib/cjs/table/TableHeaderRow.d.ts +1 -0
  35. package/lib/cjs/table/interface.d.ts +2 -0
  36. package/lib/cjs/tooltip/index.d.ts +1 -4
  37. package/lib/cjs/tooltip/index.js +0 -2
  38. package/lib/cjs/typography/title.d.ts +1 -1
  39. package/lib/es/_base/baseComponent.js +3 -0
  40. package/lib/es/anchor/index.d.ts +1 -1
  41. package/lib/es/autoComplete/index.d.ts +1 -1
  42. package/lib/es/checkbox/checkbox.d.ts +5 -1
  43. package/lib/es/checkbox/checkbox.js +24 -0
  44. package/lib/es/checkbox/checkboxGroup.js +2 -2
  45. package/lib/es/checkbox/context.d.ts +1 -2
  46. package/lib/es/datePicker/datePicker.d.ts +2 -2
  47. package/lib/es/datePicker/monthsGrid.d.ts +1 -1
  48. package/lib/es/datePicker/quickControl.d.ts +1 -1
  49. package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
  50. package/lib/es/dropdown/dropdownMenu.d.ts +1 -0
  51. package/lib/es/dropdown/index.d.ts +2 -1
  52. package/lib/es/form/baseForm.d.ts +1 -1
  53. package/lib/es/form/field.d.ts +1 -1
  54. package/lib/es/image/preview.d.ts +1 -0
  55. package/lib/es/image/previewImage.d.ts +1 -1
  56. package/lib/es/image/previewImage.js +8 -5
  57. package/lib/es/image/previewInner.js +3 -3
  58. package/lib/es/input/index.d.ts +1 -0
  59. package/lib/es/input/textarea.js +1 -1
  60. package/lib/es/popover/index.d.ts +1 -1
  61. package/lib/es/select/index.d.ts +1 -1
  62. package/lib/es/slider/index.js +2 -2
  63. package/lib/es/spin/index.d.ts +1 -0
  64. package/lib/es/table/Table.d.ts +1 -1
  65. package/lib/es/table/Table.js +18 -1
  66. package/lib/es/table/TableHeaderRow.d.ts +1 -0
  67. package/lib/es/table/interface.d.ts +2 -0
  68. package/lib/es/tooltip/index.d.ts +1 -4
  69. package/lib/es/tooltip/index.js +0 -2
  70. package/lib/es/typography/title.d.ts +1 -1
  71. package/package.json +7 -8
@@ -13,7 +13,7 @@ export interface QuickControlProps {
13
13
  declare class QuickControl extends PureComponent<QuickControlProps> {
14
14
  static propTypes: {
15
15
  presets: PropTypes.Requireable<any[]>;
16
- presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
16
+ presetPosition: PropTypes.Requireable<"top" | "left" | "right" | "bottom">;
17
17
  onPresetClick: PropTypes.Requireable<(...args: any[]) => any>;
18
18
  type: PropTypes.Requireable<string>;
19
19
  insetInput: PropTypes.Requireable<boolean>;
@@ -20,7 +20,7 @@ declare class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonth
20
20
  noBackBtn: PropTypes.Requireable<boolean>;
21
21
  disabledDate: PropTypes.Requireable<(...args: any[]) => any>;
22
22
  density: PropTypes.Requireable<string>;
23
- presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
23
+ presetPosition: PropTypes.Requireable<"top" | "left" | "right" | "bottom">;
24
24
  renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
25
25
  renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
26
26
  };
@@ -23,6 +23,7 @@ declare class DropdownMenu extends BaseComponent<DropdownMenuProps> {
23
23
  getCaches(): any;
24
24
  setCache(key: any, value: any): void;
25
25
  stopPropagation(e: any): void;
26
+ persistEvent: (event: any) => void;
26
27
  };
27
28
  componentDidMount(): void;
28
29
  render(): JSX.Element;
@@ -59,7 +59,7 @@ declare class Dropdown extends BaseComponent<DropdownProps, DropdownState> {
59
59
  render: PropTypes.Requireable<PropTypes.ReactNodeLike>;
60
60
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
61
61
  visible: PropTypes.Requireable<boolean>;
62
- position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
62
+ position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
63
63
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
64
64
  mouseEnterDelay: PropTypes.Requireable<number>;
65
65
  mouseLeaveDelay: PropTypes.Requireable<number>;
@@ -104,6 +104,7 @@ declare class Dropdown extends BaseComponent<DropdownProps, DropdownState> {
104
104
  getCaches(): any;
105
105
  setCache(key: any, value: any): void;
106
106
  stopPropagation(e: any): void;
107
+ persistEvent: (event: any) => void;
107
108
  };
108
109
  handleVisibleChange: (visible: boolean) => any;
109
110
  renderContent(): JSX.Element;
@@ -80,7 +80,7 @@ declare class Form extends BaseComponent<BaseFormProps, BaseFormState> {
80
80
  emptyContent?: React.ReactNode;
81
81
  onDropdownVisibleChange?: (visible: boolean) => void;
82
82
  zIndex?: number;
83
- position?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
83
+ position?: "top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
84
84
  onSearch?: (value: string) => void;
85
85
  dropdownClassName?: string;
86
86
  dropdownStyle?: React.CSSProperties;
@@ -28,7 +28,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
28
28
  emptyContent?: import("react").ReactNode;
29
29
  onDropdownVisibleChange?: (visible: boolean) => void;
30
30
  zIndex?: number;
31
- position?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
31
+ position?: "top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
32
32
  onSearch?: (value: string) => void;
33
33
  dropdownClassName?: string;
34
34
  dropdownStyle?: import("react").CSSProperties;
@@ -64,6 +64,7 @@ export default class Preview extends BaseComponent<PreviewProps, PreviewState> {
64
64
  getCaches(): any;
65
65
  setCache(key: any, value: any): void;
66
66
  stopPropagation(e: any): void;
67
+ persistEvent: (event: any) => void;
67
68
  };
68
69
  foundation: PreviewFoundation;
69
70
  previewGroupId: string;
@@ -28,7 +28,7 @@ export default class PreviewImage extends BaseComponent<PreviewImageProps, Previ
28
28
  };
29
29
  get adapter(): PreviewImageAdapter<PreviewImageProps, PreviewImageStates>;
30
30
  containerRef: React.RefObject<HTMLDivElement>;
31
- imageRef: React.RefObject<HTMLImageElement>;
31
+ imageRef: HTMLImageElement | null;
32
32
  foundation: PreviewImageFoundation;
33
33
  constructor(props: any);
34
34
  componentDidMount(): void;
@@ -59,7 +59,7 @@ export default class PreviewImage extends BaseComponent {
59
59
 
60
60
 
61
61
  this.registryImageRef = ref => {
62
- if (this.imageRef && this.imageRef.current) {
62
+ if (this.imageRef) {
63
63
  this.imageRef.removeEventListener("wheel", this.handleWheel);
64
64
  }
65
65
 
@@ -93,7 +93,7 @@ export default class PreviewImage extends BaseComponent {
93
93
  left: 0
94
94
  };
95
95
  this.containerRef = /*#__PURE__*/React.createRef();
96
- this.imageRef = /*#__PURE__*/React.createRef();
96
+ this.imageRef = null;
97
97
  this.foundation = new PreviewImageFoundation(this.adapter);
98
98
  }
99
99
 
@@ -107,10 +107,10 @@ export default class PreviewImage extends BaseComponent {
107
107
  originImageWidth = size.originImageWidth;
108
108
  originImageHeight = size.originImageHeight;
109
109
  },
110
- getContainerRef: () => {
111
- return this.containerRef;
110
+ getContainer: () => {
111
+ return this.containerRef.current;
112
112
  },
113
- getImageRef: () => {
113
+ getImage: () => {
114
114
  return this.imageRef;
115
115
  },
116
116
  getMouseMove: () => startMouseMove,
@@ -125,6 +125,9 @@ export default class PreviewImage extends BaseComponent {
125
125
  this.setState({
126
126
  loading
127
127
  });
128
+ },
129
+ setImageCursor: canDrag => {
130
+ this.imageRef.style.cursor = canDrag ? "grab" : "default";
128
131
  }
129
132
  });
130
133
  }
@@ -56,7 +56,7 @@ export default class PreviewInner extends BaseComponent {
56
56
  };
57
57
 
58
58
  this.handleMouseUp = e => {
59
- this.foundation.handleMouseUp(e);
59
+ this.foundation.handleMouseUp(e.nativeEvent);
60
60
  };
61
61
 
62
62
  this.handleMouseMove = e => {
@@ -299,8 +299,8 @@ export default class PreviewInner extends BaseComponent {
299
299
  onMouseDown: this.handleMouseDown,
300
300
  onMouseUp: this.handleMouseUp,
301
301
  onMouseMove: this.handleMouseMove,
302
- onMouseOver: e => this.handleMouseEvent(e, "over"),
303
- onMouseOut: e => this.handleMouseEvent(e, "out")
302
+ onMouseOver: e => this.handleMouseEvent(e.nativeEvent, "over"),
303
+ onMouseOut: e => this.handleMouseEvent(e.nativeEvent, "out")
304
304
  }, /*#__PURE__*/React.createElement(Header, {
305
305
  className: cls(hideViewerCls),
306
306
  onClose: this.handlePreviewClose,
@@ -158,6 +158,7 @@ declare class Input extends BaseComponent<InputProps, InputState> {
158
158
  getCaches(): any;
159
159
  setCache(key: any, value: any): void;
160
160
  stopPropagation(e: any): void;
161
+ persistEvent: (event: any) => void;
161
162
  };
162
163
  static getDerivedStateFromProps(props: InputProps, state: InputState): Partial<InputState>;
163
164
  componentDidUpdate(prevProps: InputProps): void;
@@ -68,7 +68,7 @@ class TextArea extends BaseComponent {
68
68
  this.foundation.resizeTextarea();
69
69
  }
70
70
  }),
71
- getRef: () => this.libRef,
71
+ getRef: () => this.libRef.current,
72
72
  toggleFocusing: focusing => this.setState({
73
73
  isFocus: focusing
74
74
  }),
@@ -53,7 +53,7 @@ declare class Popover extends React.PureComponent<PopoverProps, PopoverState> {
53
53
  visible: PropTypes.Requireable<boolean>;
54
54
  autoAdjustOverflow: PropTypes.Requireable<boolean>;
55
55
  motion: PropTypes.Requireable<boolean | object>;
56
- position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
56
+ position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
57
57
  mouseEnterDelay: PropTypes.Requireable<number>;
58
58
  mouseLeaveDelay: PropTypes.Requireable<number>;
59
59
  trigger: PropTypes.Validator<"hover" | "focus" | "click" | "custom">;
@@ -168,7 +168,7 @@ declare class Select extends BaseComponent<SelectProps, SelectState> {
168
168
  emptyContent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
169
169
  onDropdownVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
170
170
  zIndex: PropTypes.Requireable<number>;
171
- position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
171
+ position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
172
172
  onSearch: PropTypes.Requireable<(...args: any[]) => any>;
173
173
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
174
174
  dropdownClassName: PropTypes.Requireable<string>;
@@ -456,8 +456,8 @@ export default class Slider extends BaseComponent {
456
456
  setOverallVars: (key, value) => {
457
457
  this[key] = value;
458
458
  },
459
- getMinHandleEl: () => this.minHanleEl,
460
- getMaxHandleEl: () => this.maxHanleEl,
459
+ getMinHandleEl: () => this.minHanleEl.current,
460
+ getMaxHandleEl: () => this.maxHanleEl.current,
461
461
  onHandleDown: e => {
462
462
  this._addEventListener(document.body, 'mousemove', this.foundation.onHandleMove, false);
463
463
 
@@ -55,6 +55,7 @@ declare class Spin extends BaseComponent<SpinProps, SpinState> {
55
55
  getCaches(): any;
56
56
  setCache(key: any, value: any): void;
57
57
  stopPropagation(e: any): void;
58
+ persistEvent: (event: any) => void;
58
59
  };
59
60
  componentWillUnmount(): void;
60
61
  renderSpin(): JSX.Element;
@@ -300,7 +300,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
300
300
  showSizeChanger?: boolean;
301
301
  showQuickJumper?: boolean;
302
302
  popoverZIndex?: number;
303
- popoverPosition?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
303
+ popoverPosition?: "top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
304
304
  hideOnSinglePage?: boolean;
305
305
  hoverShowPageSelect?: boolean;
306
306
  };
@@ -819,6 +819,7 @@ class Table extends BaseComponent {
819
819
 
820
820
  const columns = this.getColumns(props.columns, props.children);
821
821
  const cachedflattenColumns = flattenColumns(columns);
822
+ const queries = TableFoundation.initColumnsFilteredValueAndSorterOrder(cloneDeep(cachedflattenColumns));
822
823
  this.state = {
823
824
  /**
824
825
  * Cached props
@@ -831,7 +832,7 @@ class Table extends BaseComponent {
831
832
  /**
832
833
  * State calculated based on prop
833
834
  */
834
- queries: cloneDeep(cachedflattenColumns),
835
+ queries,
835
836
  dataSource: [],
836
837
  flattenData: [],
837
838
  expandedRowKeys: [...(props.expandedRowKeys || []), ...(props.defaultExpandedRowKeys || [])],
@@ -1082,7 +1083,23 @@ class Table extends BaseComponent {
1082
1083
  bodyHasScrollBar
1083
1084
  });
1084
1085
  }
1086
+ },
1087
+
1088
+ stopPropagation(e) {
1089
+ // The event definition here is not very accurate for now, it belongs to a broad structure definition
1090
+ if (e && typeof e === 'object') {
1091
+ if (typeof e.stopPropagation === 'function') {
1092
+ e.stopPropagation();
1093
+ }
1094
+
1095
+ if (e.nativeEvent && typeof e.nativeEvent.stopPropagation === 'function') {
1096
+ e.nativeEvent.stopPropagation();
1097
+ } else if (typeof e.stopImmediatePropagation === 'function') {
1098
+ e.stopImmediatePropagation();
1099
+ }
1100
+ }
1085
1101
  }
1102
+
1086
1103
  });
1087
1104
  }
1088
1105
 
@@ -51,6 +51,7 @@ export default class TableHeaderRow extends BaseComponent<TableHeaderRowProps, R
51
51
  getCaches(): any;
52
52
  setCache(key: any, value: any): void;
53
53
  stopPropagation(e: any): void;
54
+ persistEvent: (event: any) => void;
54
55
  };
55
56
  headerNode: HTMLElement;
56
57
  context: TableContextProps;
@@ -133,6 +133,8 @@ export interface FilterDropdownItem {
133
133
  }
134
134
  export interface RenderOptions {
135
135
  expandIcon?: React.ReactNode;
136
+ selection?: React.ReactNode;
137
+ indentText?: React.ReactNode;
136
138
  }
137
139
  export interface OnCellReturnObject extends React.TdHTMLAttributes<HTMLElement> {
138
140
  [x: string]: any;
@@ -39,7 +39,6 @@ export interface TooltipProps extends BaseProps {
39
39
  onVisibleChange?: (visible: boolean) => void;
40
40
  onClickOutSide?: (e: React.MouseEvent) => void;
41
41
  spacing?: number;
42
- margin?: number;
43
42
  showArrow?: boolean | React.ReactNode;
44
43
  zIndex?: number;
45
44
  rePosKey?: string | number;
@@ -82,7 +81,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
82
81
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
83
82
  motion: PropTypes.Requireable<boolean | object>;
84
83
  autoAdjustOverflow: PropTypes.Requireable<boolean>;
85
- position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
84
+ position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
86
85
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
87
86
  mouseEnterDelay: PropTypes.Requireable<number>;
88
87
  mouseLeaveDelay: PropTypes.Requireable<number>;
@@ -98,7 +97,6 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
98
97
  onVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
99
98
  onClickOutSide: PropTypes.Requireable<(...args: any[]) => any>;
100
99
  spacing: PropTypes.Requireable<number>;
101
- margin: PropTypes.Requireable<number>;
102
100
  showArrow: PropTypes.Requireable<PropTypes.ReactNodeLike>;
103
101
  zIndex: PropTypes.Requireable<number>;
104
102
  rePosKey: PropTypes.Requireable<string | number>;
@@ -137,7 +135,6 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
137
135
  onVisibleChange: (...args: any[]) => void;
138
136
  onClickOutSide: (...args: any[]) => void;
139
137
  spacing: 8;
140
- margin: 0;
141
138
  showArrow: boolean;
142
139
  wrapWhenSpecial: boolean;
143
140
  zIndex: 1060;
@@ -703,7 +703,6 @@ Tooltip.propTypes = {
703
703
  onVisibleChange: PropTypes.func,
704
704
  onClickOutSide: PropTypes.func,
705
705
  spacing: PropTypes.number,
706
- margin: PropTypes.number,
707
706
  showArrow: PropTypes.oneOfType([PropTypes.bool, PropTypes.node]),
708
707
  zIndex: PropTypes.number,
709
708
  rePosKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
@@ -733,7 +732,6 @@ Tooltip.defaultProps = {
733
732
  onVisibleChange: _noop,
734
733
  onClickOutSide: _noop,
735
734
  spacing: numbers.SPACING,
736
- margin: numbers.MARGIN,
737
735
  showArrow: true,
738
736
  wrapWhenSpecial: true,
739
737
  zIndex: numbers.DEFAULT_Z_INDEX,
@@ -37,7 +37,7 @@ export default class Title extends PureComponent<TitleProps> {
37
37
  underline: PropTypes.Requireable<boolean>;
38
38
  strong: PropTypes.Requireable<boolean>;
39
39
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
40
- heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 6 | 5>;
40
+ heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
41
41
  style: PropTypes.Requireable<object>;
42
42
  className: PropTypes.Requireable<string>;
43
43
  component: PropTypes.Requireable<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.22.0-alpha.0",
3
+ "version": "2.22.0-beta.0",
4
4
  "description": "",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -18,11 +18,11 @@
18
18
  ],
19
19
  "dependencies": {
20
20
  "@douyinfe/semi-animation": "2.12.0",
21
- "@douyinfe/semi-animation-react": "2.22.0-alpha.0",
22
- "@douyinfe/semi-foundation": "2.22.0-alpha.0",
23
- "@douyinfe/semi-icons": "2.22.0-alpha.0",
21
+ "@douyinfe/semi-animation-react": "2.22.0-beta.0",
22
+ "@douyinfe/semi-foundation": "2.22.0-beta.0",
23
+ "@douyinfe/semi-icons": "2.22.0-beta.0",
24
24
  "@douyinfe/semi-illustrations": "2.15.0",
25
- "@douyinfe/semi-theme-default": "2.22.0-alpha.0",
25
+ "@douyinfe/semi-theme-default": "2.22.0-beta.0",
26
26
  "async-validator": "^3.5.0",
27
27
  "classnames": "^2.2.6",
28
28
  "copy-text-to-clipboard": "^2.1.1",
@@ -69,13 +69,13 @@
69
69
  ],
70
70
  "author": "",
71
71
  "license": "MIT",
72
- "gitHead": "bb316f98269de321274b842e2b6b9b463bca1c53",
72
+ "gitHead": "6dbdc576c3bfa810e1fac609d87ee53ee0925483",
73
73
  "devDependencies": {
74
74
  "@babel/plugin-proposal-decorators": "^7.15.8",
75
75
  "@babel/plugin-transform-runtime": "^7.15.8",
76
76
  "@babel/preset-env": "^7.15.8",
77
77
  "@babel/preset-react": "^7.14.5",
78
- "@douyinfe/semi-scss-compile": "2.22.0-alpha.0",
78
+ "@douyinfe/semi-scss-compile": "2.22.0-beta.0",
79
79
  "@storybook/addon-knobs": "^6.3.1",
80
80
  "@types/lodash": "^4.14.176",
81
81
  "@types/react": ">=16.0.0",
@@ -97,7 +97,6 @@
97
97
  "jsdom": "^15.2.1",
98
98
  "merge2": "^1.4.1",
99
99
  "null-loader": "^3.0.0",
100
- "prop-types": "15.7.2",
101
100
  "react-dnd": "^9.5.1",
102
101
  "react-infinite-scroller": "^1.2.4",
103
102
  "react-storybook-addon-props-combinations": "^1.1.0",