@douyinfe/semi-ui 2.23.0-beta.1 → 2.23.1

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.
@@ -17967,6 +17967,10 @@ var isUndefined_default = /*#__PURE__*/__webpack_require__.n(isUndefined);
17967
17967
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__("faye");
17968
17968
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
17969
17969
 
17970
+ // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/lodash/isEqual.js
17971
+ var isEqual = __webpack_require__("nnRT");
17972
+ var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
17973
+
17970
17974
  // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/lodash/isFunction.js
17971
17975
  var isFunction = __webpack_require__("2q8g");
17972
17976
  var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction);
@@ -18219,6 +18223,14 @@ class foundation_Tooltip extends foundation {
18219
18223
  const content = this.getProp('content');
18220
18224
  const trigger = this.getProp('trigger');
18221
18225
  const clickTriggerToHide = this.getProp('clickTriggerToHide');
18226
+ const {
18227
+ visible
18228
+ } = this.getStates();
18229
+
18230
+ if (visible) {
18231
+ return;
18232
+ }
18233
+
18222
18234
  this.clearDelayTimer();
18223
18235
  /**
18224
18236
  * If you emit an event in setState callback, you need to place the event listener function before setState to execute.
@@ -18235,7 +18247,7 @@ class foundation_Tooltip extends foundation {
18235
18247
  });
18236
18248
 
18237
18249
  this._adapter.insertPortal(content, {
18238
- left: -9990,
18250
+ left: -9999,
18239
18251
  top: -9999
18240
18252
  }); // offscreen rendering
18241
18253
 
@@ -19764,10 +19776,6 @@ const TriangleArrowVertical = props => {
19764
19776
  width: prop_types_default.a.number,
19765
19777
  height: prop_types_default.a.number
19766
19778
  }));
19767
- // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/lodash/isEqual.js
19768
- var isEqual = __webpack_require__("nnRT");
19769
- var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
19770
-
19771
19779
  // CONCATENATED MODULE: ./_cssAnimation/index.tsx
19772
19780
 
19773
19781
 
@@ -19906,6 +19914,7 @@ _cssAnimation_CSSAnimation.defaultProps = {
19906
19914
 
19907
19915
 
19908
19916
 
19917
+
19909
19918
  var tooltip_rest = undefined && undefined.__rest || function (s, e) {
19910
19919
  var t = {};
19911
19920
 
@@ -20173,6 +20182,10 @@ class tooltip_Tooltip extends baseComponent_BaseComponent {
20173
20182
  return mergedEvents;
20174
20183
  };
20175
20184
 
20185
+ this.getPopupId = () => {
20186
+ return this.state.id;
20187
+ };
20188
+
20176
20189
  this.state = {
20177
20190
  visible: false,
20178
20191
 
@@ -20485,7 +20498,7 @@ class tooltip_Tooltip extends baseComponent_BaseComponent {
20485
20498
  this.props.visible ? this.foundation.delayShow() : this.foundation.delayHide();
20486
20499
  }
20487
20500
 
20488
- if (prevProps.rePosKey !== this.props.rePosKey) {
20501
+ if (!isEqual_default()(prevProps.rePosKey, this.props.rePosKey)) {
20489
20502
  this.rePosition();
20490
20503
  }
20491
20504
  }
@@ -43505,8 +43518,8 @@ function sortableElement(WrappedComponent) {
43505
43518
 
43506
43519
 
43507
43520
 
43508
- const tagInput_SortableItem = sortableElement(props => props.item);
43509
- const tagInput_SortableList = sortableContainer(_ref => {
43521
+ const SortableItem = sortableElement(props => props.item);
43522
+ const SortableList = sortableContainer(_ref => {
43510
43523
  let {
43511
43524
  items
43512
43525
  } = _ref;
@@ -43518,7 +43531,7 @@ const tagInput_SortableList = sortableContainer(_ref => {
43518
43531
  }, items.map((item, index) =>
43519
43532
  /*#__PURE__*/
43520
43533
  // @ts-ignore skip SortableItem type check
43521
- external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(tagInput_SortableItem, {
43534
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(SortableItem, {
43522
43535
  key: item.key,
43523
43536
  index: index,
43524
43537
  item: item.item
@@ -43907,9 +43920,11 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
43907
43920
  }));
43908
43921
 
43909
43922
  if (active && draggable && sortableListItems.length > 0) {
43923
+ // helperClass:add styles to the helper(item being dragged) https://github.com/clauderic/react-sortable-hoc/issues/87
43910
43924
  // @ts-ignore skip SortableItem type check
43911
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(tagInput_SortableList, {
43925
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(SortableList, {
43912
43926
  useDragHandle: true,
43927
+ helperClass: "".concat(tagInput_prefixCls, "-drag-item-move"),
43913
43928
  items: sortableListItems,
43914
43929
  onSortEnd: this.onSortEnd,
43915
43930
  axis: "xy"
@@ -56836,7 +56851,6 @@ class yearAndMonth_YearAndMonth extends baseComponent_BaseComponent {
56836
56851
  disabledDate,
56837
56852
  yearAndMonthOpts
56838
56853
  } = this.props;
56839
- console.log('yearAndMonthOpts', yearAndMonthOpts);
56840
56854
 
56841
56855
  let transform = val => val;
56842
56856
 
@@ -59048,10 +59062,6 @@ class modalFoundation_ModalFoundation extends foundation {
59048
59062
  this.toggleDisplayNone = (displayNone, callback) => {
59049
59063
  this._adapter.toggleDisplayNone(displayNone, callback);
59050
59064
  };
59051
-
59052
- this.setShouldRender = shouldRender => {
59053
- this._adapter.setShouldRender(shouldRender);
59054
- };
59055
59065
  }
59056
59066
 
59057
59067
  destroy() {
@@ -60014,8 +60024,6 @@ class Modal_Modal extends baseComponent_BaseComponent {
60014
60024
  visible
60015
60025
  } = this.props;
60016
60026
  this.foundation.toggleDisplayNone(!visible);
60017
- const shouldRender = this.props.visible || this.props.keepDOM && (!this.props.lazyRender || this._haveRendered);
60018
- this.foundation.setShouldRender(shouldRender);
60019
60027
  };
60020
60028
 
60021
60029
  this.renderFooter = () => {
@@ -60097,8 +60105,11 @@ class Modal_Modal extends baseComponent_BaseComponent {
60097
60105
  const classList = classnames_default()(className, {
60098
60106
  ["".concat(modal_constants_cssClasses.DIALOG, "-displayNone")]: keepDOM && this.state.displayNone
60099
60107
  });
60108
+ const shouldRender = this.props.visible || this.props.keepDOM && (!this.props.lazyRender || this._haveRendered) || this.props.motion && !this.state.displayNone
60109
+ /* When there is animation, we use displayNone to judge whether animation is ended and judge whether to unmount content */
60110
+ ;
60100
60111
 
60101
- if (this.state.shouldRender) {
60112
+ if (shouldRender) {
60102
60113
  this._haveRendered = true;
60103
60114
  }
60104
60115
 
@@ -60129,7 +60140,7 @@ class Modal_Modal extends baseComponent_BaseComponent {
60129
60140
  animationClassName: maskAnimationClassName,
60130
60141
  animationEventsNeedBind: maskAnimationEventsNeedBind
60131
60142
  } = _ref2;
60132
- return this.state.shouldRender ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(ModalContent_ModalContent, Object.assign({}, restProps, {
60143
+ return shouldRender ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(ModalContent_ModalContent, Object.assign({}, restProps, {
60133
60144
  contentExtraProps: animationEventsNeedBind,
60134
60145
  maskExtraProps: maskAnimationEventsNeedBind,
60135
60146
  isFullScreen: this.state.isFullScreen,
@@ -60149,8 +60160,7 @@ class Modal_Modal extends baseComponent_BaseComponent {
60149
60160
 
60150
60161
  this.state = {
60151
60162
  displayNone: !props.visible,
60152
- isFullScreen: props.fullScreen,
60153
- shouldRender: this.props.visible || this.props.keepDOM && !this.props.lazyRender
60163
+ isFullScreen: props.fullScreen
60154
60164
  };
60155
60165
  this.foundation = new modalFoundation_ModalFoundation(this.adapter);
60156
60166
  this.modalRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
@@ -60205,13 +60215,6 @@ class Modal_Modal extends baseComponent_BaseComponent {
60205
60215
  isFullScreen
60206
60216
  });
60207
60217
  }
60208
- },
60209
- setShouldRender: shouldRender => {
60210
- if (shouldRender !== this.state.shouldRender) {
60211
- this.setState({
60212
- shouldRender
60213
- });
60214
- }
60215
60218
  }
60216
60219
  });
60217
60220
  }
@@ -60257,12 +60260,6 @@ class Modal_Modal extends baseComponent_BaseComponent {
60257
60260
  this.foundation.beforeShow();
60258
60261
  }
60259
60262
 
60260
- const shouldRender = this.props.visible || this.props.keepDOM && (!this.props.lazyRender || this._haveRendered);
60261
-
60262
- if (shouldRender === true && this.state.shouldRender === false) {
60263
- this.foundation.setShouldRender(true);
60264
- }
60265
-
60266
60263
  if (!prevState.displayNone && this.state.displayNone) {
60267
60264
  this.foundation.afterHide();
60268
60265
  }
@@ -60412,26 +60409,39 @@ class foundation_DropdownFoundation extends foundation {
60412
60409
  this._adapter.setPopVisible(visible);
60413
60410
 
60414
60411
  this._adapter.notifyVisibleChange(visible);
60412
+
60413
+ const {
60414
+ trigger
60415
+ } = this.getProps();
60416
+
60417
+ if (visible && trigger === "click") {
60418
+ const popupId = this._adapter.getPopupId();
60419
+
60420
+ this.setFocusToFirstMenuItem(popupId);
60421
+ }
60415
60422
  }
60416
60423
 
60417
- getMenuItemNodes(target) {
60418
- const id = target.attributes['data-popupid'].value;
60424
+ getMenuItemNodes(id) {
60419
60425
  const menuWrapper = document.getElementById(id); // if has dropdown item, the item must wrapped by li
60420
60426
 
60421
60427
  return menuWrapper ? Array.from(menuWrapper.getElementsByTagName('li')).filter(item => item.ariaDisabled === "false") : null;
60422
60428
  }
60423
60429
 
60424
- setFocusToFirstMenuItem(target) {
60425
- const menuItemNodes = this.getMenuItemNodes(target);
60430
+ setFocusToFirstMenuItem(id) {
60431
+ const menuItemNodes = this.getMenuItemNodes(id);
60426
60432
  menuItemNodes && setFocusToFirstItem(menuItemNodes);
60427
60433
  }
60428
60434
 
60429
- setFocusToLastMenuItem(target) {
60430
- const menuItemNodes = this.getMenuItemNodes(target);
60435
+ setFocusToLastMenuItem(id) {
60436
+ const menuItemNodes = this.getMenuItemNodes(id);
60431
60437
  menuItemNodes && setFocusToLastItem(menuItemNodes);
60432
60438
  }
60433
60439
 
60434
60440
  handleKeyDown(event) {
60441
+ var _a, _b;
60442
+
60443
+ const id = (_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.attributes['data-popupid']) === null || _b === void 0 ? void 0 : _b.value;
60444
+
60435
60445
  switch (event.key) {
60436
60446
  case ' ':
60437
60447
  case 'Enter':
@@ -60441,12 +60451,12 @@ class foundation_DropdownFoundation extends foundation {
60441
60451
  break;
60442
60452
 
60443
60453
  case 'ArrowDown':
60444
- this.setFocusToFirstMenuItem(event.target);
60454
+ this.setFocusToFirstMenuItem(id);
60445
60455
  handlePrevent(event);
60446
60456
  break;
60447
60457
 
60448
60458
  case 'ArrowUp':
60449
- this.setFocusToLastMenuItem(event.target);
60459
+ this.setFocusToLastMenuItem(id);
60450
60460
  handlePrevent(event);
60451
60461
  break;
60452
60462
 
@@ -60464,17 +60474,6 @@ class menuFoundation_DropdownMenuFoundation extends foundation {
60464
60474
  super(...arguments);
60465
60475
  this.menuItemNodes = null;
60466
60476
  this.firstChars = [];
60467
- } // if trigger is click, auto focus to the first menu item
60468
-
60469
-
60470
- autoFocus(ulElement) {
60471
- const trigger = this._adapter.getContext('trigger');
60472
-
60473
- if (trigger === 'click') {
60474
- // find all non-disabled li under this menu and set focus to the first menu
60475
- this.menuItemNodes = [...ulElement.getElementsByTagName('li')].filter(item => item.ariaDisabled !== "true");
60476
- setFocusToFirstItem(this.menuItemNodes);
60477
- }
60478
60477
  }
60479
60478
 
60480
60479
  handleEscape(menu) {
@@ -60576,7 +60575,6 @@ const dropdownMenu_prefixCls = dropdown_constants_cssClasses.PREFIX;
60576
60575
  class dropdownMenu_DropdownMenu extends baseComponent_BaseComponent {
60577
60576
  constructor(props) {
60578
60577
  super(props);
60579
- this.menuRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
60580
60578
  this.foundation = new menuFoundation_DropdownMenuFoundation(this.adapter);
60581
60579
  }
60582
60580
 
@@ -60584,10 +60582,6 @@ class dropdownMenu_DropdownMenu extends baseComponent_BaseComponent {
60584
60582
  return Object.assign({}, super.adapter);
60585
60583
  }
60586
60584
 
60587
- componentDidMount() {
60588
- this.foundation.autoFocus(this.menuRef.current);
60589
- }
60590
-
60591
60585
  render() {
60592
60586
  const _a = this.props,
60593
60587
  {
@@ -60599,8 +60593,7 @@ class dropdownMenu_DropdownMenu extends baseComponent_BaseComponent {
60599
60593
 
60600
60594
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", Object.assign({
60601
60595
  role: "menu",
60602
- "aria-orientation": "vertical",
60603
- ref: this.menuRef
60596
+ "aria-orientation": "vertical"
60604
60597
  }, rest, {
60605
60598
  className: classnames_default()("".concat(dropdownMenu_prefixCls, "-menu"), className),
60606
60599
  style: style,
@@ -60833,6 +60826,7 @@ class dropdown_Dropdown extends baseComponent_BaseComponent {
60833
60826
  popVisible: props.visible
60834
60827
  };
60835
60828
  this.foundation = new foundation_DropdownFoundation(this.adapter);
60829
+ this.tooltipRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
60836
60830
  }
60837
60831
 
60838
60832
  get adapter() {
@@ -60840,7 +60834,8 @@ class dropdown_Dropdown extends baseComponent_BaseComponent {
60840
60834
  setPopVisible: popVisible => this.setState({
60841
60835
  popVisible
60842
60836
  }),
60843
- notifyVisibleChange: visible => this.props.onVisibleChange(visible)
60837
+ notifyVisibleChange: visible => this.props.onVisibleChange(visible),
60838
+ getPopupId: () => this.tooltipRef.current.getPopupId()
60844
60839
  });
60845
60840
  }
60846
60841
 
@@ -60997,7 +60992,8 @@ class dropdown_Dropdown extends baseComponent_BaseComponent {
60997
60992
  trigger: trigger,
60998
60993
  onVisibleChange: this.handleVisibleChange,
60999
60994
  showArrow: false,
61000
- returnFocusOnClose: true
60995
+ returnFocusOnClose: true,
60996
+ ref: this.tooltipRef
61001
60997
  }, attr), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(children) ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(children, {
61002
60998
  //@ts-ignore
61003
60999
  className: classnames_default()(get_default()(children, 'props.className'), {
@@ -72120,7 +72116,7 @@ class select_Select extends baseComponent_BaseComponent {
72120
72116
  } // Add isOptionChanged: There may be cases where the value is unchanged, but the optionList is updated. At this time, the label corresponding to the value may change, and the selected item needs to be updated
72121
72117
 
72122
72118
 
72123
- if (prevProps.value !== this.props.value || isOptionsChanged) {
72119
+ if (!isEqual_default()(this.props.value, prevProps.value) || isOptionsChanged) {
72124
72120
  if ('value' in this.props) {
72125
72121
  this.foundation.handleValueChange(this.props.value);
72126
72122
  } else {
@@ -76237,10 +76233,6 @@ class sideSheetFoundation_SideSheetFoundation extends foundation {
76237
76233
  }
76238
76234
  }
76239
76235
 
76240
- setShouldRender(shouldRender) {
76241
- this._adapter.setShouldRender(shouldRender);
76242
- }
76243
-
76244
76236
  onVisibleChange(visible) {
76245
76237
  this._adapter.notifyVisibleChange(visible);
76246
76238
  }
@@ -76292,14 +76284,11 @@ class sideSheet_SideSheet extends baseComponent_BaseComponent {
76292
76284
  };
76293
76285
 
76294
76286
  this.updateState = () => {
76295
- const shouldRender = this.props.visible || this.props.keepDOM;
76296
- this.foundation.setShouldRender(shouldRender);
76297
76287
  this.foundation.toggleDisplayNone(!this.props.visible);
76298
76288
  };
76299
76289
 
76300
76290
  this.state = {
76301
- displayNone: !this.props.visible,
76302
- shouldRender: this.props.visible
76291
+ displayNone: !this.props.visible
76303
76292
  };
76304
76293
  this.foundation = new sideSheetFoundation_SideSheetFoundation(this.adapter);
76305
76294
  }
@@ -76346,13 +76335,6 @@ class sideSheet_SideSheet extends baseComponent_BaseComponent {
76346
76335
  displayNone: displayNone
76347
76336
  });
76348
76337
  }
76349
- },
76350
- setShouldRender: shouldRender => {
76351
- if (shouldRender !== this.state.shouldRender) {
76352
- this.setState({
76353
- shouldRender
76354
- });
76355
- }
76356
76338
  }
76357
76339
  });
76358
76340
  }
@@ -76388,12 +76370,6 @@ class sideSheet_SideSheet extends baseComponent_BaseComponent {
76388
76370
  this.foundation.afterHide();
76389
76371
  }
76390
76372
 
76391
- const shouldRender = this.props.visible || this.props.keepDOM;
76392
-
76393
- if (shouldRender === true && this.state.shouldRender === false) {
76394
- this.foundation.setShouldRender(true);
76395
- }
76396
-
76397
76373
  if (prevState.displayNone !== this.state.displayNone) {
76398
76374
  this.foundation.onVisibleChange(!this.state.displayNone);
76399
76375
  }
@@ -76445,7 +76421,10 @@ class sideSheet_SideSheet extends baseComponent_BaseComponent {
76445
76421
  width: sheetWidth,
76446
76422
  height: sheetHeight,
76447
76423
  onClose: this.handleCancel
76448
- }); // Since user could change animate duration , we don't know which animation end first. So we call updateState func twice.
76424
+ });
76425
+ const shouldRender = this.props.visible || this.props.keepDOM || this.props.motion && !this.state.displayNone
76426
+ /* When there is animation, we use displayNone to judge whether animation is ended and judge whether to unmount content */
76427
+ ; // Since user could change animate duration , we don't know which animation end first. So we call updateState func twice.
76449
76428
 
76450
76429
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(_cssAnimation, {
76451
76430
  motion: this.props.motion,
@@ -76470,7 +76449,7 @@ class sideSheet_SideSheet extends baseComponent_BaseComponent {
76470
76449
  animationStyle,
76471
76450
  animationEventsNeedBind
76472
76451
  } = _ref2;
76473
- return this.state.shouldRender ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(SideSheetContent_SideSheetContent, Object.assign({}, contentProps, {
76452
+ return shouldRender ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(SideSheetContent_SideSheetContent, Object.assign({}, contentProps, {
76474
76453
  maskExtraProps: maskAnimationEventsNeedBind,
76475
76454
  wrapperExtraProps: animationEventsNeedBind,
76476
76455
  dialogClassName: animationClassName,
@@ -97232,7 +97211,30 @@ var transfer = __webpack_require__("mo0a");
97232
97211
 
97233
97212
 
97234
97213
 
97235
- const transfer_prefixcls = transfer_constants_cssClasses.PREFIX;
97214
+ const transfer_prefixcls = transfer_constants_cssClasses.PREFIX; // SortableItem & SortableList should not be assigned inside of the render function
97215
+
97216
+ const transfer_SortableItem = sortableElement(props => props.item.node);
97217
+ const transfer_SortableList = sortableContainer(_ref => {
97218
+ let {
97219
+ items
97220
+ } = _ref;
97221
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
97222
+ className: "".concat(transfer_prefixcls, "-right-list"),
97223
+ role: "list",
97224
+ "aria-label": "Selected list"
97225
+ }, items.map((item, index) =>
97226
+ /*#__PURE__*/
97227
+ // @ts-ignore skip SortableItem type check
97228
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(transfer_SortableItem, {
97229
+ key: item.label,
97230
+ index: index,
97231
+ item: item
97232
+ }))) // eslint-disable-next-line @typescript-eslint/ban-ts-comment
97233
+ // @ts-ignore see reasons: https://github.com/clauderic/react-sortable-hoc/issues/206
97234
+ ;
97235
+ }, {
97236
+ distance: 10
97237
+ });
97236
97238
 
97237
97239
  class transfer_Transfer extends baseComponent_BaseComponent {
97238
97240
  constructor(props) {
@@ -97675,34 +97677,16 @@ class transfer_Transfer extends baseComponent_BaseComponent {
97675
97677
  }
97676
97678
 
97677
97679
  renderRightSortableList(selectedData) {
97678
- // when choose some items && draggable is true
97679
- const SortableItem = sortableElement(props => this.renderRightItem(props.item));
97680
- const SortableList = sortableContainer(_ref => {
97681
- let {
97682
- items
97683
- } = _ref;
97684
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
97685
- className: "".concat(transfer_prefixcls, "-right-list"),
97686
- role: "list",
97687
- "aria-label": "Selected list"
97688
- }, items.map((item, index) =>
97689
- /*#__PURE__*/
97690
- // @ts-ignore skip SortableItem type check
97691
- external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(SortableItem, {
97692
- key: item.label,
97693
- index: index,
97694
- item: item
97695
- }))) // eslint-disable-next-line @typescript-eslint/ban-ts-comment
97696
- // @ts-ignore see reasons: https://github.com/clauderic/react-sortable-hoc/issues/206
97697
- ;
97698
- }, {
97699
- distance: 10
97700
- }); // @ts-ignore skip SortableItem type check
97680
+ const sortableListItems = selectedData.map(item => Object.assign(Object.assign({}, item), {
97681
+ node: this.renderRightItem(item)
97682
+ })); // helperClass:add styles to the helper(item being dragged) https://github.com/clauderic/react-sortable-hoc/issues/87
97683
+ // @ts-ignore skip SortableItem type check
97701
97684
 
97702
- const sortList = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(SortableList, {
97685
+ const sortList = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(transfer_SortableList, {
97703
97686
  useDragHandle: true,
97687
+ helperClass: "".concat(transfer_prefixcls, "-right-item-drag-item-move"),
97704
97688
  onSortEnd: this.onSortEnd,
97705
- items: selectedData
97689
+ items: sortableListItems
97706
97690
  });
97707
97691
  return sortList;
97708
97692
  }