@douyinfe/semi-ui 2.38.2-alpha.1 → 2.38.2-alpha.2

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.
@@ -15058,149 +15058,125 @@ function dontSetMe(props
15058
15058
 
15059
15059
  exports.__esModule = true;
15060
15060
  exports["default"] = void 0;
15061
-
15062
- var _react = _interopRequireDefault(__webpack_require__("neV8"));
15063
-
15061
+ var React = _interopRequireWildcard(__webpack_require__("neV8"));
15064
15062
  var _reactDraggable = __webpack_require__("j6Rw");
15065
-
15066
15063
  var _utils = __webpack_require__("+cYm");
15067
-
15068
15064
  var _propTypes = __webpack_require__("6rtJ");
15069
-
15070
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15071
-
15072
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15073
-
15074
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
15075
-
15076
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15077
-
15065
+ var _excluded = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
15066
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15067
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15068
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15078
15069
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15079
-
15080
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
15081
-
15082
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
15083
-
15084
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15085
-
15070
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15071
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15072
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15073
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
15074
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15075
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
15076
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15077
+ // The base <Resizable> component.
15078
+ // This component does not have state and relies on the parent to set its props based on callback data.
15086
15079
  var Resizable = /*#__PURE__*/function (_React$Component) {
15087
15080
  _inheritsLoose(Resizable, _React$Component);
15088
-
15089
15081
  function Resizable() {
15090
15082
  var _this;
15091
-
15092
15083
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15093
15084
  args[_key] = arguments[_key];
15094
15085
  }
15095
-
15096
15086
  _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
15097
-
15098
- _defineProperty(_assertThisInitialized(_this), "state", undefined);
15099
-
15100
- _defineProperty(_assertThisInitialized(_this), "lastHandleRect", null);
15101
-
15102
- _defineProperty(_assertThisInitialized(_this), "slack", null);
15103
-
15087
+ _this.handleRefs = {};
15088
+ _this.lastHandleRect = null;
15089
+ _this.slack = null;
15104
15090
  return _this;
15105
15091
  }
15106
-
15107
15092
  var _proto = Resizable.prototype;
15108
-
15109
15093
  _proto.componentWillUnmount = function componentWillUnmount() {
15110
15094
  this.resetData();
15111
15095
  };
15112
-
15113
- _proto.lockAspectRatio = function lockAspectRatio(width, height, aspectRatio) {
15114
- height = width / aspectRatio;
15115
- width = height * aspectRatio;
15116
- return [width, height];
15117
- };
15118
-
15119
15096
  _proto.resetData = function resetData() {
15120
15097
  this.lastHandleRect = this.slack = null;
15121
- } // Clamp width and height within provided constraints
15122
- ;
15098
+ }
15123
15099
 
15100
+ // Clamp width and height within provided constraints
15101
+ ;
15124
15102
  _proto.runConstraints = function runConstraints(width, height) {
15125
- var _ref = [this.props.minConstraints, this.props.maxConstraints],
15126
- min = _ref[0],
15127
- max = _ref[1];
15128
- if (!min && !max) return [width, height]; // If constraining to min and max, we need to also fit width and height to aspect ratio.
15129
-
15130
- if (this.props.lockAspectRatio) {
15131
- var resizingHorizontally = height === this.props.height;
15132
-
15133
- if (resizingHorizontally) {
15134
- var ratio = this.props.width / this.props.height;
15103
+ var _this$props = this.props,
15104
+ minConstraints = _this$props.minConstraints,
15105
+ maxConstraints = _this$props.maxConstraints,
15106
+ lockAspectRatio = _this$props.lockAspectRatio;
15107
+ // short circuit
15108
+ if (!minConstraints && !maxConstraints && !lockAspectRatio) return [width, height];
15109
+
15110
+ // If constraining to min and max, we need to also fit width and height to aspect ratio.
15111
+ if (lockAspectRatio) {
15112
+ var ratio = this.props.width / this.props.height;
15113
+ var deltaW = width - this.props.width;
15114
+ var deltaH = height - this.props.height;
15115
+
15116
+ // Find which coordinate was greater and should push the other toward it.
15117
+ // E.g.:
15118
+ // ratio = 1, deltaW = 10, deltaH = 5, deltaH should become 10.
15119
+ // ratio = 2, deltaW = 10, deltaH = 6, deltaW should become 12.
15120
+ if (Math.abs(deltaW) > Math.abs(deltaH * ratio)) {
15135
15121
  height = width / ratio;
15136
- width = height * ratio;
15137
15122
  } else {
15138
- // Take into account vertical resize with N/S handles on locked aspect
15139
- // ratio. Calculate the change height-first, instead of width-first
15140
- var _ratio = this.props.height / this.props.width;
15141
-
15142
- width = height / _ratio;
15143
- height = width * _ratio;
15123
+ width = height * ratio;
15144
15124
  }
15145
15125
  }
15146
-
15147
15126
  var oldW = width,
15148
- oldH = height; // Add slack to the values used to calculate bound position. This will ensure that if
15127
+ oldH = height;
15128
+
15129
+ // Add slack to the values used to calculate bound position. This will ensure that if
15149
15130
  // we start removing slack, the element won't react to it right away until it's been
15150
15131
  // completely removed.
15151
-
15152
- var _ref2 = this.slack || [0, 0],
15153
- slackW = _ref2[0],
15154
- slackH = _ref2[1];
15155
-
15132
+ var _ref = this.slack || [0, 0],
15133
+ slackW = _ref[0],
15134
+ slackH = _ref[1];
15156
15135
  width += slackW;
15157
15136
  height += slackH;
15158
-
15159
- if (min) {
15160
- width = Math.max(min[0], width);
15161
- height = Math.max(min[1], height);
15137
+ if (minConstraints) {
15138
+ width = Math.max(minConstraints[0], width);
15139
+ height = Math.max(minConstraints[1], height);
15140
+ }
15141
+ if (maxConstraints) {
15142
+ width = Math.min(maxConstraints[0], width);
15143
+ height = Math.min(maxConstraints[1], height);
15162
15144
  }
15163
15145
 
15164
- if (max) {
15165
- width = Math.min(max[0], width);
15166
- height = Math.min(max[1], height);
15167
- } // If the width or height changed, we must have introduced some slack. Record it for the next iteration.
15168
-
15169
-
15146
+ // If the width or height changed, we must have introduced some slack. Record it for the next iteration.
15170
15147
  this.slack = [slackW + (oldW - width), slackH + (oldH - height)];
15171
15148
  return [width, height];
15172
15149
  }
15150
+
15173
15151
  /**
15174
15152
  * Wrapper around drag events to provide more useful data.
15175
15153
  *
15176
15154
  * @param {String} handlerName Handler name to wrap.
15177
15155
  * @return {Function} Handler function.
15178
- */
15179
- ;
15180
-
15156
+ */;
15181
15157
  _proto.resizeHandler = function resizeHandler(handlerName, axis) {
15182
15158
  var _this2 = this;
15183
-
15184
- return function (e, _ref3) {
15185
- var node = _ref3.node,
15186
- deltaX = _ref3.deltaX,
15187
- deltaY = _ref3.deltaY;
15159
+ return function (e, _ref2) {
15160
+ var node = _ref2.node,
15161
+ deltaX = _ref2.deltaX,
15162
+ deltaY = _ref2.deltaY;
15188
15163
  // Reset data in case it was left over somehow (should not be possible)
15189
- if (handlerName === 'onResizeStart') _this2.resetData(); // Axis restrictions
15164
+ if (handlerName === 'onResizeStart') _this2.resetData();
15190
15165
 
15166
+ // Axis restrictions
15191
15167
  var canDragX = (_this2.props.axis === 'both' || _this2.props.axis === 'x') && axis !== 'n' && axis !== 's';
15192
- var canDragY = (_this2.props.axis === 'both' || _this2.props.axis === 'y') && axis !== 'e' && axis !== 'w'; // No dragging possible.
15193
-
15194
- if (!canDragX && !canDragY) return; // Decompose axis for later use
15168
+ var canDragY = (_this2.props.axis === 'both' || _this2.props.axis === 'y') && axis !== 'e' && axis !== 'w';
15169
+ // No dragging possible.
15170
+ if (!canDragX && !canDragY) return;
15195
15171
 
15172
+ // Decompose axis for later use
15196
15173
  var axisV = axis[0];
15197
15174
  var axisH = axis[axis.length - 1]; // intentionally not axis[1], so that this catches axis === 'w' for example
15175
+
15198
15176
  // Track the element being dragged to account for changes in position.
15199
15177
  // If a handle's position is changed between callbacks, we need to factor this in to the next callback.
15200
15178
  // Failure to do so will cause the element to "skip" when resized upwards or leftwards.
15201
-
15202
15179
  var handleRect = node.getBoundingClientRect();
15203
-
15204
15180
  if (_this2.lastHandleRect != null) {
15205
15181
  // If the handle has repositioned on either axis since last render,
15206
15182
  // we need to increase our callback values by this much.
@@ -15209,34 +15185,34 @@ var Resizable = /*#__PURE__*/function (_React$Component) {
15209
15185
  var deltaLeftSinceLast = handleRect.left - _this2.lastHandleRect.left;
15210
15186
  deltaX += deltaLeftSinceLast;
15211
15187
  }
15212
-
15213
15188
  if (axisV === 'n') {
15214
15189
  var deltaTopSinceLast = handleRect.top - _this2.lastHandleRect.top;
15215
15190
  deltaY += deltaTopSinceLast;
15216
15191
  }
15217
- } // Storage of last rect so we know how much it has really moved.
15218
-
15219
-
15220
- _this2.lastHandleRect = handleRect; // Reverse delta if using top or left drag handles.
15192
+ }
15193
+ // Storage of last rect so we know how much it has really moved.
15194
+ _this2.lastHandleRect = handleRect;
15221
15195
 
15196
+ // Reverse delta if using top or left drag handles.
15222
15197
  if (axisH === 'w') deltaX = -deltaX;
15223
- if (axisV === 'n') deltaY = -deltaY; // Update w/h by the deltas. Also factor in transformScale.
15198
+ if (axisV === 'n') deltaY = -deltaY;
15224
15199
 
15200
+ // Update w/h by the deltas. Also factor in transformScale.
15225
15201
  var width = _this2.props.width + (canDragX ? deltaX / _this2.props.transformScale : 0);
15226
- var height = _this2.props.height + (canDragY ? deltaY / _this2.props.transformScale : 0); // Run user-provided constraints.
15202
+ var height = _this2.props.height + (canDragY ? deltaY / _this2.props.transformScale : 0);
15227
15203
 
15204
+ // Run user-provided constraints.
15228
15205
  var _this2$runConstraints = _this2.runConstraints(width, height);
15229
-
15230
15206
  width = _this2$runConstraints[0];
15231
15207
  height = _this2$runConstraints[1];
15232
- var dimensionsChanged = width !== _this2.props.width || height !== _this2.props.height; // Call user-supplied callback if present.
15233
-
15234
- var cb = typeof _this2.props[handlerName] === 'function' ? _this2.props[handlerName] : null; // Don't call 'onResize' if dimensions haven't changed.
15208
+ var dimensionsChanged = width !== _this2.props.width || height !== _this2.props.height;
15235
15209
 
15210
+ // Call user-supplied callback if present.
15211
+ var cb = typeof _this2.props[handlerName] === 'function' ? _this2.props[handlerName] : null;
15212
+ // Don't call 'onResize' if dimensions haven't changed.
15236
15213
  var shouldSkipCb = handlerName === 'onResize' && !dimensionsChanged;
15237
-
15238
15214
  if (cb && !shouldSkipCb) {
15239
- if (typeof e.persist === 'function') e.persist();
15215
+ e.persist == null ? void 0 : e.persist();
15240
15216
  cb(e, {
15241
15217
  node: node,
15242
15218
  size: {
@@ -15245,86 +15221,95 @@ var Resizable = /*#__PURE__*/function (_React$Component) {
15245
15221
  },
15246
15222
  handle: axis
15247
15223
  });
15248
- } // Reset internal data
15249
-
15224
+ }
15250
15225
 
15226
+ // Reset internal data
15251
15227
  if (handlerName === 'onResizeStop') _this2.resetData();
15252
15228
  };
15253
- };
15229
+ }
15254
15230
 
15255
- _proto.renderResizeHandle = function renderResizeHandle(resizeHandleAxis) {
15231
+ // Render a resize handle given an axis & DOM ref. Ref *must* be attached for
15232
+ // the underlying draggable library to work properly.
15233
+ ;
15234
+ _proto.renderResizeHandle = function renderResizeHandle(handleAxis, ref) {
15256
15235
  var handle = this.props.handle;
15257
-
15258
- if (handle) {
15259
- if (typeof handle === 'function') {
15260
- return handle(resizeHandleAxis);
15261
- }
15262
-
15263
- return handle;
15236
+ // No handle provided, make the default
15237
+ if (!handle) {
15238
+ return /*#__PURE__*/React.createElement("span", {
15239
+ className: "react-resizable-handle react-resizable-handle-" + handleAxis,
15240
+ ref: ref
15241
+ });
15264
15242
  }
15265
-
15266
- return /*#__PURE__*/_react.default.createElement("span", {
15267
- className: "react-resizable-handle react-resizable-handle-" + resizeHandleAxis
15243
+ // Handle is a function, such as:
15244
+ // `handle={(handleAxis) => <span className={...} />}`
15245
+ if (typeof handle === 'function') {
15246
+ return handle(handleAxis, ref);
15247
+ }
15248
+ // Handle is a React component (composite or DOM).
15249
+ var isDOMElement = typeof handle.type === 'string';
15250
+ var props = _objectSpread({
15251
+ ref: ref
15252
+ }, isDOMElement ? {} : {
15253
+ handleAxis: handleAxis
15268
15254
  });
15255
+ return /*#__PURE__*/React.cloneElement(handle, props);
15269
15256
  };
15270
-
15271
15257
  _proto.render = function render() {
15272
15258
  var _this3 = this;
15273
-
15274
15259
  // Pass along only props not meant for the `<Resizable>`.`
15275
15260
  // eslint-disable-next-line no-unused-vars
15276
- var _this$props = this.props,
15277
- children = _this$props.children,
15278
- className = _this$props.className,
15279
- draggableOpts = _this$props.draggableOpts,
15280
- width = _this$props.width,
15281
- height = _this$props.height,
15282
- handle = _this$props.handle,
15283
- handleSize = _this$props.handleSize,
15284
- lockAspectRatio = _this$props.lockAspectRatio,
15285
- axis = _this$props.axis,
15286
- minConstraints = _this$props.minConstraints,
15287
- maxConstraints = _this$props.maxConstraints,
15288
- onResize = _this$props.onResize,
15289
- onResizeStop = _this$props.onResizeStop,
15290
- onResizeStart = _this$props.onResizeStart,
15291
- resizeHandles = _this$props.resizeHandles,
15292
- transformScale = _this$props.transformScale,
15293
- p = _objectWithoutPropertiesLoose(_this$props, ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"]); // What we're doing here is getting the child of this element, and cloning it with this element's props.
15261
+ var _this$props2 = this.props,
15262
+ children = _this$props2.children,
15263
+ className = _this$props2.className,
15264
+ draggableOpts = _this$props2.draggableOpts,
15265
+ width = _this$props2.width,
15266
+ height = _this$props2.height,
15267
+ handle = _this$props2.handle,
15268
+ handleSize = _this$props2.handleSize,
15269
+ lockAspectRatio = _this$props2.lockAspectRatio,
15270
+ axis = _this$props2.axis,
15271
+ minConstraints = _this$props2.minConstraints,
15272
+ maxConstraints = _this$props2.maxConstraints,
15273
+ onResize = _this$props2.onResize,
15274
+ onResizeStop = _this$props2.onResizeStop,
15275
+ onResizeStart = _this$props2.onResizeStart,
15276
+ resizeHandles = _this$props2.resizeHandles,
15277
+ transformScale = _this$props2.transformScale,
15278
+ p = _objectWithoutPropertiesLoose(_this$props2, _excluded);
15279
+
15280
+ // What we're doing here is getting the child of this element, and cloning it with this element's props.
15294
15281
  // We are then defining its children as:
15295
- // Its original children (resizable's child's children), and
15296
- // One or more draggable handles.
15297
-
15298
-
15282
+ // 1. Its original children (resizable's child's children), and
15283
+ // 2. One or more draggable handles.
15299
15284
  return (0, _utils.cloneElement)(children, _objectSpread(_objectSpread({}, p), {}, {
15300
15285
  className: (className ? className + " " : '') + "react-resizable",
15301
15286
  children: [].concat(children.props.children, resizeHandles.map(function (handleAxis) {
15302
- return /*#__PURE__*/_react.default.createElement(_reactDraggable.DraggableCore, _extends({}, draggableOpts, {
15287
+ var _this3$handleRefs$han;
15288
+ // Create a ref to the handle so that `<DraggableCore>` doesn't have to use ReactDOM.findDOMNode().
15289
+ var ref = (_this3$handleRefs$han = _this3.handleRefs[handleAxis]) != null ? _this3$handleRefs$han : _this3.handleRefs[handleAxis] = /*#__PURE__*/React.createRef();
15290
+ return /*#__PURE__*/React.createElement(_reactDraggable.DraggableCore, _extends({}, draggableOpts, {
15291
+ nodeRef: ref,
15303
15292
  key: "resizableHandle-" + handleAxis,
15304
15293
  onStop: _this3.resizeHandler('onResizeStop', handleAxis),
15305
15294
  onStart: _this3.resizeHandler('onResizeStart', handleAxis),
15306
15295
  onDrag: _this3.resizeHandler('onResize', handleAxis)
15307
- }), _this3.renderResizeHandle(handleAxis));
15296
+ }), _this3.renderResizeHandle(handleAxis, ref));
15308
15297
  }))
15309
15298
  }));
15310
15299
  };
15311
-
15312
15300
  return Resizable;
15313
- }(_react.default.Component);
15314
-
15301
+ }(React.Component);
15315
15302
  exports["default"] = Resizable;
15316
-
15317
- _defineProperty(Resizable, "propTypes", _propTypes.resizableProps);
15318
-
15319
- _defineProperty(Resizable, "defaultProps", {
15303
+ Resizable.propTypes = _propTypes.resizableProps;
15304
+ Resizable.defaultProps = {
15305
+ axis: 'both',
15320
15306
  handleSize: [20, 20],
15321
15307
  lockAspectRatio: false,
15322
- axis: 'both',
15323
15308
  minConstraints: [20, 20],
15324
15309
  maxConstraints: [Infinity, Infinity],
15325
15310
  resizeHandles: ['se'],
15326
15311
  transformScale: 1
15327
- });
15312
+ };
15328
15313
 
15329
15314
  /***/ }),
15330
15315
 
@@ -15337,71 +15322,50 @@ var __webpack_unused_export__;
15337
15322
 
15338
15323
  __webpack_unused_export__ = true;
15339
15324
  exports["default"] = void 0;
15340
-
15341
15325
  var React = _interopRequireWildcard(__webpack_require__("neV8"));
15342
-
15343
15326
  var _propTypes = _interopRequireDefault(__webpack_require__("aWzz"));
15344
-
15345
15327
  var _Resizable = _interopRequireDefault(__webpack_require__("DIYL"));
15346
-
15347
15328
  var _propTypes2 = __webpack_require__("6rtJ");
15348
-
15329
+ var _excluded = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
15349
15330
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15350
-
15351
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
15352
-
15353
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15354
-
15355
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15356
-
15357
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
15358
-
15359
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15360
-
15331
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15332
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15333
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15334
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15335
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15336
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15337
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
15338
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15361
15339
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15362
-
15363
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
15364
-
15365
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
15366
-
15367
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15368
-
15340
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
15341
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15369
15342
  var ResizableBox = /*#__PURE__*/function (_React$Component) {
15370
15343
  _inheritsLoose(ResizableBox, _React$Component);
15371
-
15372
15344
  function ResizableBox() {
15373
15345
  var _this;
15374
-
15375
15346
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15376
15347
  args[_key] = arguments[_key];
15377
15348
  }
15378
-
15379
15349
  _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
15380
-
15381
- _defineProperty(_assertThisInitialized(_this), "state", {
15350
+ _this.state = {
15382
15351
  width: _this.props.width,
15383
15352
  height: _this.props.height,
15384
15353
  propsWidth: _this.props.width,
15385
15354
  propsHeight: _this.props.height
15386
- });
15387
-
15388
- _defineProperty(_assertThisInitialized(_this), "onResize", function (e, data) {
15355
+ };
15356
+ _this.onResize = function (e, data) {
15389
15357
  var size = data.size;
15390
-
15391
15358
  if (_this.props.onResize) {
15392
- e.persist && e.persist();
15393
-
15359
+ e.persist == null ? void 0 : e.persist();
15394
15360
  _this.setState(size, function () {
15395
15361
  return _this.props.onResize && _this.props.onResize(e, data);
15396
15362
  });
15397
15363
  } else {
15398
15364
  _this.setState(size);
15399
15365
  }
15400
- });
15401
-
15366
+ };
15402
15367
  return _this;
15403
15368
  }
15404
-
15405
15369
  ResizableBox.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
15406
15370
  // If parent changes height/width, set that in our state.
15407
15371
  if (state.propsWidth !== props.width || state.propsHeight !== props.height) {
@@ -15412,34 +15376,30 @@ var ResizableBox = /*#__PURE__*/function (_React$Component) {
15412
15376
  propsHeight: props.height
15413
15377
  };
15414
15378
  }
15415
-
15416
15379
  return null;
15417
15380
  };
15418
-
15419
15381
  var _proto = ResizableBox.prototype;
15420
-
15421
15382
  _proto.render = function render() {
15422
15383
  // Basic wrapper around a Resizable instance.
15423
15384
  // If you use Resizable directly, you are responsible for updating the child component
15424
15385
  // with a new width and height.
15425
15386
  var _this$props = this.props,
15426
- handle = _this$props.handle,
15427
- handleSize = _this$props.handleSize,
15428
- onResize = _this$props.onResize,
15429
- onResizeStart = _this$props.onResizeStart,
15430
- onResizeStop = _this$props.onResizeStop,
15431
- draggableOpts = _this$props.draggableOpts,
15432
- minConstraints = _this$props.minConstraints,
15433
- maxConstraints = _this$props.maxConstraints,
15434
- lockAspectRatio = _this$props.lockAspectRatio,
15435
- axis = _this$props.axis,
15436
- width = _this$props.width,
15437
- height = _this$props.height,
15438
- resizeHandles = _this$props.resizeHandles,
15439
- style = _this$props.style,
15440
- transformScale = _this$props.transformScale,
15441
- props = _objectWithoutPropertiesLoose(_this$props, ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"]);
15442
-
15387
+ handle = _this$props.handle,
15388
+ handleSize = _this$props.handleSize,
15389
+ onResize = _this$props.onResize,
15390
+ onResizeStart = _this$props.onResizeStart,
15391
+ onResizeStop = _this$props.onResizeStop,
15392
+ draggableOpts = _this$props.draggableOpts,
15393
+ minConstraints = _this$props.minConstraints,
15394
+ maxConstraints = _this$props.maxConstraints,
15395
+ lockAspectRatio = _this$props.lockAspectRatio,
15396
+ axis = _this$props.axis,
15397
+ width = _this$props.width,
15398
+ height = _this$props.height,
15399
+ resizeHandles = _this$props.resizeHandles,
15400
+ style = _this$props.style,
15401
+ transformScale = _this$props.transformScale,
15402
+ props = _objectWithoutPropertiesLoose(_this$props, _excluded);
15443
15403
  return /*#__PURE__*/React.createElement(_Resizable.default, {
15444
15404
  axis: axis,
15445
15405
  draggableOpts: draggableOpts,
@@ -15462,15 +15422,13 @@ var ResizableBox = /*#__PURE__*/function (_React$Component) {
15462
15422
  })
15463
15423
  })));
15464
15424
  };
15465
-
15466
15425
  return ResizableBox;
15467
15426
  }(React.Component);
15468
-
15469
15427
  exports["default"] = ResizableBox;
15470
-
15471
- _defineProperty(ResizableBox, "propTypes", _objectSpread(_objectSpread({}, _propTypes2.resizableProps), {}, {
15428
+ // PropTypes are identical to <Resizable>, except that children are not strictly required to be present.
15429
+ ResizableBox.propTypes = _objectSpread(_objectSpread({}, _propTypes2.resizableProps), {}, {
15472
15430
  children: _propTypes.default.element
15473
- }));
15431
+ });
15474
15432
 
15475
15433
  /***/ }),
15476
15434
 
@@ -15482,13 +15440,9 @@ _defineProperty(ResizableBox, "propTypes", _objectSpread(_objectSpread({}, _prop
15482
15440
 
15483
15441
  exports.__esModule = true;
15484
15442
  exports.resizableProps = void 0;
15485
-
15486
15443
  var _propTypes = _interopRequireDefault(__webpack_require__("aWzz"));
15487
-
15488
15444
  var _reactDraggable = __webpack_require__("j6Rw");
15489
-
15490
15445
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15491
-
15492
15446
  var resizableProps = {
15493
15447
  /*
15494
15448
  * Restricts resizing to a particular axis (default: 'both')
@@ -15499,12 +15453,10 @@ var resizableProps = {
15499
15453
  * */
15500
15454
  axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']),
15501
15455
  className: _propTypes.default.string,
15502
-
15503
15456
  /*
15504
15457
  * Require that one and only one child be present.
15505
15458
  * */
15506
15459
  children: _propTypes.default.element.isRequired,
15507
-
15508
15460
  /*
15509
15461
  * These will be passed wholesale to react-draggable's DraggableCore
15510
15462
  * */
@@ -15524,48 +15476,50 @@ var resizableProps = {
15524
15476
  onMouseDown: _propTypes.default.func,
15525
15477
  scale: _propTypes.default.number
15526
15478
  }),
15527
-
15528
15479
  /*
15529
15480
  * Initial height
15530
15481
  * */
15531
- height: _propTypes.default.number.isRequired,
15532
-
15482
+ height: function height() {
15483
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15484
+ args[_key] = arguments[_key];
15485
+ }
15486
+ var props = args[0];
15487
+ // Required if resizing height or both
15488
+ if (props.axis === 'both' || props.axis === 'y') {
15489
+ var _PropTypes$number;
15490
+ return (_PropTypes$number = _propTypes.default.number).isRequired.apply(_PropTypes$number, args);
15491
+ }
15492
+ return _propTypes.default.number.apply(_propTypes.default, args);
15493
+ },
15533
15494
  /*
15534
15495
  * Customize cursor resize handle
15535
15496
  * */
15536
15497
  handle: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
15537
-
15538
15498
  /*
15539
15499
  * If you change this, be sure to update your css
15540
15500
  * */
15541
15501
  handleSize: _propTypes.default.arrayOf(_propTypes.default.number),
15542
15502
  lockAspectRatio: _propTypes.default.bool,
15543
-
15544
15503
  /*
15545
15504
  * Max X & Y measure
15546
15505
  * */
15547
15506
  maxConstraints: _propTypes.default.arrayOf(_propTypes.default.number),
15548
-
15549
15507
  /*
15550
15508
  * Min X & Y measure
15551
15509
  * */
15552
15510
  minConstraints: _propTypes.default.arrayOf(_propTypes.default.number),
15553
-
15554
15511
  /*
15555
15512
  * Called on stop resize event
15556
15513
  * */
15557
15514
  onResizeStop: _propTypes.default.func,
15558
-
15559
15515
  /*
15560
15516
  * Called on start resize event
15561
15517
  * */
15562
15518
  onResizeStart: _propTypes.default.func,
15563
-
15564
15519
  /*
15565
15520
  * Called on resize event
15566
15521
  * */
15567
15522
  onResize: _propTypes.default.func,
15568
-
15569
15523
  /*
15570
15524
  * Defines which resize handles should be rendered (default: 'se')
15571
15525
  * 's' - South handle (bottom-center)
@@ -15578,16 +15532,25 @@ var resizableProps = {
15578
15532
  * 'ne' - Northeast handle (top-center)
15579
15533
  * */
15580
15534
  resizeHandles: _propTypes.default.arrayOf(_propTypes.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])),
15581
-
15582
15535
  /*
15583
15536
  * If `transform: scale(n)` is set on the parent, this should be set to `n`.
15584
15537
  * */
15585
15538
  transformScale: _propTypes.default.number,
15586
-
15587
15539
  /*
15588
15540
  * Initial width
15589
15541
  */
15590
- width: _propTypes.default.number.isRequired
15542
+ width: function width() {
15543
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
15544
+ args[_key2] = arguments[_key2];
15545
+ }
15546
+ var props = args[0];
15547
+ // Required if resizing width or both
15548
+ if (props.axis === 'both' || props.axis === 'x') {
15549
+ var _PropTypes$number2;
15550
+ return (_PropTypes$number2 = _propTypes.default.number).isRequired.apply(_PropTypes$number2, args);
15551
+ }
15552
+ return _propTypes.default.number.apply(_propTypes.default, args);
15553
+ }
15591
15554
  };
15592
15555
  exports.resizableProps = resizableProps;
15593
15556
 
@@ -15601,27 +15564,21 @@ exports.resizableProps = resizableProps;
15601
15564
 
15602
15565
  exports.__esModule = true;
15603
15566
  exports.cloneElement = cloneElement;
15604
-
15605
15567
  var _react = _interopRequireDefault(__webpack_require__("neV8"));
15606
-
15607
15568
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15608
-
15609
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
15610
-
15611
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15612
-
15613
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15614
-
15569
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15570
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15571
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15572
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
15573
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15615
15574
  // React.addons.cloneWithProps look-alike that merges style & className.
15616
15575
  function cloneElement(element, props) {
15617
15576
  if (props.style && element.props.style) {
15618
15577
  props.style = _objectSpread(_objectSpread({}, element.props.style), props.style);
15619
15578
  }
15620
-
15621
15579
  if (props.className && element.props.className) {
15622
15580
  props.className = element.props.className + " " + props.className;
15623
15581
  }
15624
-
15625
15582
  return /*#__PURE__*/_react.default.cloneElement(element, props);
15626
15583
  }
15627
15584
 
@@ -17854,14 +17811,9 @@ class AnchorFoundation extends foundation {
17854
17811
  */
17855
17812
  behavior: actions => {
17856
17813
  // We just need to scroll the innermost target container
17857
- const verticalScrollAction = actions.find(action => {
17858
- const {
17859
- el
17860
- } = action;
17861
- return el.scrollHeight > el.clientHeight;
17862
- });
17863
- const el = get_default()(verticalScrollAction, 'el');
17864
- const top = get_default()(verticalScrollAction, 'top');
17814
+ const innermostAction = get_default()(actions, '0');
17815
+ const el = get_default()(innermostAction, 'el');
17816
+ const top = get_default()(innermostAction, 'top');
17865
17817
  if (el) {
17866
17818
  const offsetTop = top - targetOffset;
17867
17819
  if (el.scroll && canSmoothScroll) {
@@ -18153,7 +18105,9 @@ class Event {
18153
18105
  if (!this._eventMap.has(event)) {
18154
18106
  return false;
18155
18107
  }
18156
- this._eventMap.get(event).forEach(callback => callback(...args));
18108
+ const callbacks = [...this._eventMap.get(event)];
18109
+ // clone to avoid someone writing the logic of deleting callback in callbacks into his or her callback code, for example the once func above
18110
+ callbacks.forEach(callback => callback(...args));
18157
18111
  return true;
18158
18112
  }
18159
18113
  }
@@ -18361,6 +18315,16 @@ class foundation_Tooltip extends foundation {
18361
18315
  this.show = () => {
18362
18316
  const content = this.getProp('content');
18363
18317
  const trigger = this.getProp('trigger');
18318
+ if (trigger === "hover") {
18319
+ const checkTriggerIsHover = () => {
18320
+ const triggerDOM = this._adapter.getTriggerDOM();
18321
+ if (trigger && !triggerDOM.matches(":hover")) {
18322
+ this.hide();
18323
+ }
18324
+ this._adapter.off("portalInserted", checkTriggerIsHover);
18325
+ };
18326
+ this._adapter.on('portalInserted', checkTriggerIsHover);
18327
+ }
18364
18328
  const clickTriggerToHide = this.getProp('clickTriggerToHide');
18365
18329
  const {
18366
18330
  visible,
@@ -20647,6 +20611,13 @@ class Tooltip extends BaseComponent {
20647
20611
  this.setState({
20648
20612
  id: getUuidShort()
20649
20613
  });
20614
+ },
20615
+ getTriggerDOM: () => {
20616
+ if (this.triggerEl.current) {
20617
+ return external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this.triggerEl.current);
20618
+ } else {
20619
+ return null;
20620
+ }
20650
20621
  }
20651
20622
  });
20652
20623
  }
@@ -59926,7 +59897,7 @@ class TextArea extends BaseComponent {
59926
59897
  this._resizeListener && window.removeEventListener('resize', this._resizeListener);
59927
59898
  }
59928
59899
  componentDidUpdate(prevProps, prevState) {
59929
- if (this.props.value !== prevProps.value && this.props.autosize) {
59900
+ if ((this.props.value !== prevProps.value || this.props.placeholder !== prevProps.placeholder) && this.props.autosize) {
59930
59901
  this.foundation.resizeTextarea();
59931
59902
  }
59932
59903
  }
@@ -79631,7 +79602,7 @@ class Body extends BaseComponent {
79631
79602
  if (props.virtualized) {
79632
79603
  getVirtualizedListRef(this.listRef);
79633
79604
  } else {
79634
- console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/zh-CN/show/table for more information.');
79605
+ console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/en-US/show/table for more information.');
79635
79606
  }
79636
79607
  }
79637
79608
  this.foundation = new TableBodyFoundation(this.adapter);