@douyinfe/semi-ui 2.38.2-alpha.1 → 2.38.3-alpha.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.
@@ -138,7 +138,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
138
138
  preventScroll?: boolean;
139
139
  showRestTagsPopover?: boolean;
140
140
  restTagsPopoverProps?: import("../popover").PopoverProps;
141
- } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "getPopupContainer" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
141
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
142
142
  static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
143
143
  static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes<any>>;
144
144
  static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
@@ -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, "stopPropagation" | "getPopupContainer" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
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;
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>>;
@@ -130,7 +130,7 @@ class TextArea extends _baseComponent.default {
130
130
  this._resizeListener && window.removeEventListener('resize', this._resizeListener);
131
131
  }
132
132
  componentDidUpdate(prevProps, prevState) {
133
- if (this.props.value !== prevProps.value && this.props.autosize) {
133
+ if ((this.props.value !== prevProps.value || this.props.placeholder !== prevProps.placeholder) && this.props.autosize) {
134
134
  this.foundation.resizeTextarea();
135
135
  }
136
136
  }
@@ -140,15 +140,15 @@ export declare function withWarning(props: ModalReactProps): {
140
140
  type: "warning";
141
141
  };
142
142
  export declare function withError(props: ModalReactProps): {
143
- title?: React.ReactNode;
144
143
  children?: React.ReactNode;
145
- size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
146
144
  style?: React.CSSProperties;
147
145
  className?: string;
148
146
  getPopupContainer?: () => HTMLElement;
149
147
  footer?: React.ReactNode;
150
148
  header?: React.ReactNode;
149
+ title?: React.ReactNode;
151
150
  direction?: any;
151
+ size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
152
152
  motion?: boolean;
153
153
  width?: string | number;
154
154
  height?: string | number;
@@ -201,11 +201,11 @@ 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;
206
204
  value?: string | number | readonly string[];
207
205
  form?: string;
208
206
  slot?: string;
207
+ title?: string;
208
+ name?: string;
209
209
  onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
210
210
  onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
211
211
  hidden?: boolean;
@@ -503,7 +503,7 @@ class Body extends _baseComponent.default {
503
503
  if (props.virtualized) {
504
504
  getVirtualizedListRef(this.listRef);
505
505
  } else {
506
- console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/zh-CN/show/table for more information.');
506
+ console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/en-US/show/table for more information.');
507
507
  }
508
508
  }
509
509
  this.foundation = new _bodyFoundation.default(this.adapter);
@@ -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;
@@ -201,7 +201,7 @@ class TreeSelect extends _baseComponent.default {
201
201
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
202
202
  index,
203
203
  onClose
204
- }) : null;
204
+ }) : {};
205
205
  if ((0, _isNull2.default)(content) || (0, _isUndefined2.default)(content)) {
206
206
  return;
207
207
  }
@@ -499,7 +499,7 @@ class TreeSelect extends _baseComponent.default {
499
499
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
500
500
  index: idx,
501
501
  onClose
502
- }) : null;
502
+ }) : {};
503
503
  if (isRenderInTag) {
504
504
  return /*#__PURE__*/_react.default.createElement(_index.default, Object.assign({}, tagProps), content);
505
505
  } else {
@@ -39,7 +39,7 @@ export default class Title extends PureComponent<TitleProps> {
39
39
  underline: PropTypes.Requireable<boolean>;
40
40
  strong: PropTypes.Requireable<boolean>;
41
41
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
42
- heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
42
+ heading: PropTypes.Requireable<4 | 2 | 1 | 3 | 5 | 6>;
43
43
  style: PropTypes.Requireable<object>;
44
44
  className: PropTypes.Requireable<string>;
45
45
  component: PropTypes.Requireable<string>;
@@ -138,7 +138,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
138
138
  preventScroll?: boolean;
139
139
  showRestTagsPopover?: boolean;
140
140
  restTagsPopoverProps?: import("../popover").PopoverProps;
141
- } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "getPopupContainer" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
141
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
142
142
  static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
143
143
  static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes<any>>;
144
144
  static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
@@ -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, "stopPropagation" | "getPopupContainer" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
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;
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>>;
@@ -122,7 +122,7 @@ class TextArea extends BaseComponent {
122
122
  this._resizeListener && window.removeEventListener('resize', this._resizeListener);
123
123
  }
124
124
  componentDidUpdate(prevProps, prevState) {
125
- if (this.props.value !== prevProps.value && this.props.autosize) {
125
+ if ((this.props.value !== prevProps.value || this.props.placeholder !== prevProps.placeholder) && this.props.autosize) {
126
126
  this.foundation.resizeTextarea();
127
127
  }
128
128
  }
@@ -140,15 +140,15 @@ export declare function withWarning(props: ModalReactProps): {
140
140
  type: "warning";
141
141
  };
142
142
  export declare function withError(props: ModalReactProps): {
143
- title?: React.ReactNode;
144
143
  children?: React.ReactNode;
145
- size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
146
144
  style?: React.CSSProperties;
147
145
  className?: string;
148
146
  getPopupContainer?: () => HTMLElement;
149
147
  footer?: React.ReactNode;
150
148
  header?: React.ReactNode;
149
+ title?: React.ReactNode;
151
150
  direction?: any;
151
+ size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
152
152
  motion?: boolean;
153
153
  width?: string | number;
154
154
  height?: string | number;
@@ -201,11 +201,11 @@ 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;
206
204
  value?: string | number | readonly string[];
207
205
  form?: string;
208
206
  slot?: string;
207
+ title?: string;
208
+ name?: string;
209
209
  onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
210
210
  onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
211
211
  hidden?: boolean;
@@ -496,7 +496,7 @@ class Body extends BaseComponent {
496
496
  if (props.virtualized) {
497
497
  getVirtualizedListRef(this.listRef);
498
498
  } else {
499
- console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/zh-CN/show/table for more information.');
499
+ console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/en-US/show/table for more information.');
500
500
  }
501
501
  }
502
502
  this.foundation = new BodyFoundation(this.adapter);
@@ -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;
@@ -192,7 +192,7 @@ class TreeSelect extends BaseComponent {
192
192
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
193
193
  index,
194
194
  onClose
195
- }) : null;
195
+ }) : {};
196
196
  if (_isNull(content) || _isUndefined(content)) {
197
197
  return;
198
198
  }
@@ -490,7 +490,7 @@ class TreeSelect extends BaseComponent {
490
490
  } = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
491
491
  index: idx,
492
492
  onClose
493
- }) : null;
493
+ }) : {};
494
494
  if (isRenderInTag) {
495
495
  return /*#__PURE__*/React.createElement(Tag, Object.assign({}, tagProps), content);
496
496
  } else {
@@ -39,7 +39,7 @@ export default class Title extends PureComponent<TitleProps> {
39
39
  underline: PropTypes.Requireable<boolean>;
40
40
  strong: PropTypes.Requireable<boolean>;
41
41
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
42
- heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
42
+ heading: PropTypes.Requireable<4 | 2 | 1 | 3 | 5 | 6>;
43
43
  style: PropTypes.Requireable<object>;
44
44
  className: PropTypes.Requireable<string>;
45
45
  component: PropTypes.Requireable<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.38.2-alpha.1",
3
+ "version": "2.38.3-alpha.0",
4
4
  "description": "",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -17,12 +17,12 @@
17
17
  "lib/*"
18
18
  ],
19
19
  "dependencies": {
20
- "@douyinfe/semi-animation": "2.38.2-alpha.1",
21
- "@douyinfe/semi-animation-react": "2.38.2-alpha.1",
22
- "@douyinfe/semi-foundation": "2.38.2-alpha.1",
23
- "@douyinfe/semi-icons": "2.38.2-alpha.1",
24
- "@douyinfe/semi-illustrations": "2.38.2-alpha.1",
25
- "@douyinfe/semi-theme-default": "2.38.2-alpha.1",
20
+ "@douyinfe/semi-animation": "2.38.3-alpha.0",
21
+ "@douyinfe/semi-animation-react": "2.38.3-alpha.0",
22
+ "@douyinfe/semi-foundation": "2.38.3-alpha.0",
23
+ "@douyinfe/semi-icons": "2.38.3-alpha.0",
24
+ "@douyinfe/semi-illustrations": "2.38.3-alpha.0",
25
+ "@douyinfe/semi-theme-default": "2.38.3-alpha.0",
26
26
  "async-validator": "^3.5.0",
27
27
  "classnames": "^2.2.6",
28
28
  "copy-text-to-clipboard": "^2.1.1",
@@ -69,7 +69,7 @@
69
69
  ],
70
70
  "author": "",
71
71
  "license": "MIT",
72
- "gitHead": "cb42a0565bba8660255835264d23dfcba6ff4aa3",
72
+ "gitHead": "bc27ec006245606dd4fefaec5eb81217c1063d06",
73
73
  "devDependencies": {
74
74
  "@babel/plugin-proposal-decorators": "^7.15.8",
75
75
  "@babel/plugin-transform-runtime": "^7.15.8",