@douyinfe/semi-ui 2.25.0-beta.0 → 2.25.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.
@@ -43979,7 +43979,7 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
43979
43979
  }
43980
43980
 
43981
43981
  blur() {
43982
- this.inputRef.current.blur(); // unregister clickOutside event
43982
+ this.inputRef.current.blur(); // unregister clickOutside event
43983
43983
 
43984
43984
  this.foundation.clickOutsideCallBack();
43985
43985
  }
@@ -43994,7 +43994,7 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
43994
43994
  });
43995
43995
 
43996
43996
  if (!disabled) {
43997
- // register clickOutside event
43997
+ // register clickOutside event
43998
43998
  this.foundation.handleClick();
43999
43999
  }
44000
44000
  }
@@ -44020,13 +44020,15 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
44020
44020
  ["".concat(tagInput_prefixCls, "-disabled")]: disabled,
44021
44021
  ["".concat(tagInput_prefixCls, "-hover")]: hovering && !disabled,
44022
44022
  ["".concat(tagInput_prefixCls, "-error")]: validateStatus === 'error',
44023
- ["".concat(tagInput_prefixCls, "-warning")]: validateStatus === 'warning'
44023
+ ["".concat(tagInput_prefixCls, "-warning")]: validateStatus === 'warning',
44024
+ ["".concat(tagInput_prefixCls, "-small")]: size === 'small',
44025
+ ["".concat(tagInput_prefixCls, "-large")]: size === 'large'
44024
44026
  });
44025
44027
  const inputCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper-input"), "".concat(tagInput_prefixCls, "-wrapper-input-").concat(size));
44026
- const wrapperCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper"), "".concat(tagInput_prefixCls, "-wrapper-").concat(size));
44028
+ const wrapperCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper"));
44027
44029
  return (
44028
44030
  /*#__PURE__*/
44029
- // eslint-disable-next-line
44031
+ // eslint-disable-next-line
44030
44032
  external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
44031
44033
  ref: this.tagInputRef,
44032
44034
  style: style,
@@ -102858,6 +102860,16 @@ var image_image = __webpack_require__("txvO");
102858
102860
 
102859
102861
 
102860
102862
 
102863
+ var image_rest = undefined && undefined.__rest || function (s, e) {
102864
+ var t = {};
102865
+
102866
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
102867
+
102868
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
102869
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
102870
+ }
102871
+ return t;
102872
+ };
102861
102873
  /* eslint-disable jsx-a11y/click-events-have-key-events */
102862
102874
 
102863
102875
  /* eslint-disable jsx-a11y/no-static-element-interactions */
@@ -102873,6 +102885,8 @@ var image_image = __webpack_require__("txvO");
102873
102885
 
102874
102886
 
102875
102887
 
102888
+
102889
+
102876
102890
  const image_prefixCls = image_constants_cssClasses.PREFIX;
102877
102891
  class image_Image extends baseComponent_BaseComponent {
102878
102892
  constructor(props) {
@@ -103022,15 +103036,23 @@ class image_Image extends baseComponent_BaseComponent {
103022
103036
  loadStatus,
103023
103037
  previewVisible
103024
103038
  } = this.state;
103025
- const {
103039
+
103040
+ const _b = this.props,
103041
+ {
103042
+ src: picSrc,
103026
103043
  width,
103027
103044
  height,
103028
103045
  alt,
103029
103046
  style,
103030
103047
  className,
103031
103048
  crossOrigin,
103032
- preview
103033
- } = this.props;
103049
+ preview,
103050
+ fallback,
103051
+ placeholder,
103052
+ imageID
103053
+ } = _b,
103054
+ restProps = image_rest(_b, ["src", "width", "height", "alt", "style", "className", "crossOrigin", "preview", "fallback", "placeholder", "imageID"]);
103055
+
103034
103056
  const outerStyle = Object.assign({
103035
103057
  width,
103036
103058
  height
@@ -103048,7 +103070,7 @@ class image_Image extends baseComponent_BaseComponent {
103048
103070
  style: outerStyle,
103049
103071
  className: outerCls,
103050
103072
  onClick: this.handleClick
103051
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", {
103073
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", Object.assign({}, restProps, {
103052
103074
  src: this.isInGroup() && this.isLazyLoad() ? undefined : src,
103053
103075
  "data-src": src,
103054
103076
  alt: alt,
@@ -103061,7 +103083,7 @@ class image_Image extends baseComponent_BaseComponent {
103061
103083
  crossOrigin: crossOrigin,
103062
103084
  onError: this.handleError,
103063
103085
  onLoad: this.handleLoaded
103064
- }), loadStatus !== "success" && this.renderExtra(), canPreview && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(previewInner_PreviewInner, Object.assign({}, previewProps, {
103086
+ })), loadStatus !== "success" && this.renderExtra(), canPreview && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(previewInner_PreviewInner, Object.assign({}, previewProps, {
103065
103087
  src: previewSrc,
103066
103088
  visible: previewVisible,
103067
103089
  onVisibleChange: this.handlePreviewVisibleChange,