@douyinfe/semi-ui 2.45.3 → 2.46.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.
@@ -17962,6 +17962,9 @@ Typography.propTypes = {
17962
17962
  className: (prop_types_default()).string
17963
17963
  };
17964
17964
  /* harmony default export */ const typography_typography = (Typography);
17965
+ // EXTERNAL MODULE: ../../node_modules/lodash/isFunction.js
17966
+ var isFunction = __webpack_require__("2q8g");
17967
+ var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction);
17965
17968
  // EXTERNAL MODULE: ../../node_modules/lodash/isNull.js
17966
17969
  var isNull = __webpack_require__("R7V3");
17967
17970
  var isNull_default = /*#__PURE__*/__webpack_require__.n(isNull);
@@ -17980,9 +17983,6 @@ var isUndefined_default = /*#__PURE__*/__webpack_require__.n(isUndefined);
17980
17983
  // EXTERNAL MODULE: ../../node_modules/lodash/isEqual.js
17981
17984
  var isEqual = __webpack_require__("nnRT");
17982
17985
  var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
17983
- // EXTERNAL MODULE: ../../node_modules/lodash/isFunction.js
17984
- var isFunction = __webpack_require__("2q8g");
17985
- var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction);
17986
17986
  // EXTERNAL MODULE: ../../node_modules/lodash/isEmpty.js
17987
17987
  var isEmpty = __webpack_require__("MwrP");
17988
17988
  var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty);
@@ -23676,6 +23676,7 @@ ReactResizeObserver.defaultProps = {
23676
23676
 
23677
23677
 
23678
23678
 
23679
+
23679
23680
  var base_rest = undefined && undefined.__rest || function (s, e) {
23680
23681
  var t = {};
23681
23682
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -23766,6 +23767,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
23766
23767
  return updateOverflow;
23767
23768
  };
23768
23769
  this.showTooltip = () => {
23770
+ var _a, _b;
23769
23771
  const {
23770
23772
  isOverflowed,
23771
23773
  isTruncated,
@@ -23783,8 +23785,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
23783
23785
  return show;
23784
23786
  }
23785
23787
  const defaultOpts = {
23786
- type: 'tooltip',
23787
- opts: {}
23788
+ type: 'tooltip'
23788
23789
  };
23789
23790
  if (typeof showTooltip === 'object') {
23790
23791
  if (showTooltip.type && showTooltip.type.toLowerCase() === 'popover') {
@@ -23793,7 +23794,14 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
23793
23794
  // style: { width: '240px' },
23794
23795
  showArrow: true
23795
23796
  }
23796
- }, showTooltip);
23797
+ }, showTooltip, {
23798
+ opts: {
23799
+ className: classnames_default()({
23800
+ [`${base_prefixCls}-ellipsis-popover`]: true,
23801
+ [(_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)
23802
+ })
23803
+ }
23804
+ });
23797
23805
  }
23798
23806
  return Object.assign(Object.assign({}, defaultOpts), showTooltip);
23799
23807
  }
@@ -24195,9 +24203,12 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
24195
24203
  if (showTooltip) {
24196
24204
  const {
24197
24205
  type,
24198
- opts
24206
+ opts,
24207
+ renderTooltip
24199
24208
  } = showTooltip;
24200
- if (type.toLowerCase() === 'popover') {
24209
+ if (isFunction_default()(renderTooltip)) {
24210
+ return renderTooltip(children, content);
24211
+ } else if (type.toLowerCase() === 'popover') {
24201
24212
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, Object.assign({
24202
24213
  content: children,
24203
24214
  position: "top"
@@ -25520,12 +25531,7 @@ class AutoCompleteFoundation extends foundation {
25520
25531
  // only need persist on react adapter
25521
25532
  // https://reactjs.org/docs/legacy-event-pooling.html
25522
25533
  this._persistEvent(e);
25523
- // In order to handle the problem of losing onClick binding when clicking on the padding area, the onBlur event is triggered first to cause the react view to be updated
25524
- // internal-issues:1231
25525
- setTimeout(() => {
25526
- this._adapter.notifyBlur(e);
25527
- // this.closeDropdown();
25528
- }, 100);
25534
+ this._adapter.notifyBlur(e);
25529
25535
  }
25530
25536
  }
25531
25537
  /* harmony default export */ const autoComplete_foundation = (AutoCompleteFoundation);
@@ -34592,7 +34598,7 @@ class monthCalendar extends BaseComponent {
34592
34598
  }
34593
34599
  }
34594
34600
  if (!isEqual_default()(prevEventKeys, nowEventKeys) || itemLimitUpdate || !isEqual_default()(prevProps.displayValue, this.props.displayValue)) {
34595
- this.foundation.parseMonthlyEvents(itemLimit || this.props.events);
34601
+ this.foundation.parseMonthlyEvents(itemLimit);
34596
34602
  }
34597
34603
  }
34598
34604
  closeCard(e, key) {