@douyinfe/semi-ui 2.25.2 → 2.25.4

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.
Files changed (333) hide show
  1. package/dist/umd/semi-ui.js +1957 -1929
  2. package/dist/umd/semi-ui.js.map +1 -1
  3. package/dist/umd/semi-ui.min.js +1 -1
  4. package/dist/umd/semi-ui.min.js.map +1 -1
  5. package/lib/cjs/_portal/index.js +2 -2
  6. package/lib/cjs/_utils/index.js +3 -1
  7. package/lib/cjs/anchor/index.js +9 -9
  8. package/lib/cjs/anchor/link.js +8 -8
  9. package/lib/cjs/autoComplete/index.js +8 -4
  10. package/lib/cjs/autoComplete/option.js +7 -7
  11. package/lib/cjs/avatar/avatarGroup.js +7 -7
  12. package/lib/cjs/avatar/index.js +12 -12
  13. package/lib/cjs/badge/index.js +8 -8
  14. package/lib/cjs/banner/index.js +12 -12
  15. package/lib/cjs/breadcrumb/index.js +12 -12
  16. package/lib/cjs/breadcrumb/item.js +8 -8
  17. package/lib/cjs/button/Button.js +9 -9
  18. package/lib/cjs/button/buttonGroup.js +5 -5
  19. package/lib/cjs/button/splitButtonGroup.js +1 -1
  20. package/lib/cjs/calendar/dayCalendar.js +13 -13
  21. package/lib/cjs/calendar/dayCol.js +17 -17
  22. package/lib/cjs/calendar/monthCalendar.js +38 -38
  23. package/lib/cjs/calendar/rangeCalendar.js +27 -27
  24. package/lib/cjs/calendar/timeCol.js +6 -6
  25. package/lib/cjs/calendar/weekCalendar.js +27 -27
  26. package/lib/cjs/card/cardGroup.js +2 -2
  27. package/lib/cjs/card/index.js +16 -16
  28. package/lib/cjs/card/meta.js +5 -5
  29. package/lib/cjs/carousel/CarouselArrow.js +6 -6
  30. package/lib/cjs/carousel/CarouselIndicator.js +6 -6
  31. package/lib/cjs/carousel/index.js +12 -12
  32. package/lib/cjs/cascader/index.js +36 -36
  33. package/lib/cjs/cascader/item.js +25 -25
  34. package/lib/cjs/checkbox/checkbox.js +14 -14
  35. package/lib/cjs/checkbox/checkboxGroup.js +4 -4
  36. package/lib/cjs/checkbox/checkboxInner.js +6 -6
  37. package/lib/cjs/collapse/item.js +9 -9
  38. package/lib/cjs/collapsible/index.js +3 -3
  39. package/lib/cjs/configProvider/index.js +1 -1
  40. package/lib/cjs/datePicker/dateInput.js +16 -16
  41. package/lib/cjs/datePicker/datePicker.js +9 -9
  42. package/lib/cjs/datePicker/footer.js +1 -1
  43. package/lib/cjs/datePicker/index.js +1 -1
  44. package/lib/cjs/datePicker/month.js +2 -2
  45. package/lib/cjs/datePicker/monthsGrid.d.ts +2 -2
  46. package/lib/cjs/datePicker/monthsGrid.js +28 -28
  47. package/lib/cjs/datePicker/navigation.js +1 -1
  48. package/lib/cjs/datePicker/quickControl.js +14 -14
  49. package/lib/cjs/datePicker/yearAndMonth.js +4 -4
  50. package/lib/cjs/descriptions/index.js +3 -3
  51. package/lib/cjs/descriptions/item.js +5 -5
  52. package/lib/cjs/divider/index.js +7 -7
  53. package/lib/cjs/dropdown/dropdownDivider.js +1 -1
  54. package/lib/cjs/dropdown/dropdownItem.js +6 -6
  55. package/lib/cjs/dropdown/dropdownMenu.js +1 -1
  56. package/lib/cjs/dropdown/dropdownTitle.js +2 -2
  57. package/lib/cjs/dropdown/index.js +3 -3
  58. package/lib/cjs/empty/index.js +7 -7
  59. package/lib/cjs/form/arrayField.js +1 -1
  60. package/lib/cjs/form/baseForm.d.ts +1 -1
  61. package/lib/cjs/form/baseForm.js +2 -2
  62. package/lib/cjs/form/errorMessage.js +1 -1
  63. package/lib/cjs/form/field.d.ts +1 -1
  64. package/lib/cjs/form/group.js +2 -2
  65. package/lib/cjs/form/hoc/withField.js +16 -16
  66. package/lib/cjs/form/label.js +9 -9
  67. package/lib/cjs/form/slot.js +5 -5
  68. package/lib/cjs/grid/col.js +11 -11
  69. package/lib/cjs/grid/row.js +4 -4
  70. package/lib/cjs/highlight/index.js +1 -1
  71. package/lib/cjs/iconButton/index.js +5 -5
  72. package/lib/cjs/image/image.js +10 -10
  73. package/lib/cjs/image/preview.js +3 -3
  74. package/lib/cjs/image/previewFooter.js +12 -12
  75. package/lib/cjs/image/previewHeader.js +3 -3
  76. package/lib/cjs/image/previewImage.js +7 -7
  77. package/lib/cjs/image/previewInner.js +7 -7
  78. package/lib/cjs/input/index.js +38 -38
  79. package/lib/cjs/input/inputGroup.js +7 -7
  80. package/lib/cjs/input/textarea.js +14 -14
  81. package/lib/cjs/inputNumber/index.js +11 -11
  82. package/lib/cjs/layout/Sider.js +3 -3
  83. package/lib/cjs/layout/index.js +2 -2
  84. package/lib/cjs/list/index.js +11 -11
  85. package/lib/cjs/list/item.js +6 -6
  86. package/lib/cjs/modal/ConfirmModal.js +7 -7
  87. package/lib/cjs/modal/Modal.js +4 -4
  88. package/lib/cjs/modal/ModalContent.js +24 -24
  89. package/lib/cjs/modal/useModal/index.js +1 -1
  90. package/lib/cjs/navigation/CollapseButton.js +1 -1
  91. package/lib/cjs/navigation/Footer.js +2 -2
  92. package/lib/cjs/navigation/Header.js +5 -5
  93. package/lib/cjs/navigation/Item.js +16 -16
  94. package/lib/cjs/navigation/SubNav.js +14 -14
  95. package/lib/cjs/navigation/index.js +8 -8
  96. package/lib/cjs/notification/index.js +3 -3
  97. package/lib/cjs/notification/notice.js +12 -12
  98. package/lib/cjs/overflowList/index.js +6 -6
  99. package/lib/cjs/pagination/index.js +26 -26
  100. package/lib/cjs/popconfirm/index.js +9 -9
  101. package/lib/cjs/popover/index.js +2 -2
  102. package/lib/cjs/progress/index.js +14 -14
  103. package/lib/cjs/radio/radio.js +22 -22
  104. package/lib/cjs/radio/radioGroup.js +5 -5
  105. package/lib/cjs/radio/radioInner.js +7 -7
  106. package/lib/cjs/rating/index.js +5 -5
  107. package/lib/cjs/rating/item.js +11 -11
  108. package/lib/cjs/scrollList/index.js +5 -5
  109. package/lib/cjs/scrollList/scrollItem.js +13 -13
  110. package/lib/cjs/select/index.js +53 -53
  111. package/lib/cjs/select/option.js +7 -7
  112. package/lib/cjs/sideSheet/SideSheetContent.js +10 -10
  113. package/lib/cjs/sideSheet/index.js +7 -7
  114. package/lib/cjs/skeleton/index.js +1 -1
  115. package/lib/cjs/skeleton/item.js +4 -4
  116. package/lib/cjs/slider/index.js +28 -28
  117. package/lib/cjs/space/index.js +12 -12
  118. package/lib/cjs/spin/icon.js +2 -2
  119. package/lib/cjs/spin/index.js +6 -6
  120. package/lib/cjs/steps/basicStep.js +14 -14
  121. package/lib/cjs/steps/basicSteps.js +6 -6
  122. package/lib/cjs/steps/fillStep.js +10 -10
  123. package/lib/cjs/steps/fillSteps.js +4 -4
  124. package/lib/cjs/steps/navStep.js +5 -5
  125. package/lib/cjs/steps/navSteps.js +2 -2
  126. package/lib/cjs/table/Body/BaseRow.js +5 -5
  127. package/lib/cjs/table/Body/ExpandedRow.js +3 -3
  128. package/lib/cjs/table/Body/SectionRow.js +1 -1
  129. package/lib/cjs/table/Body/index.js +8 -8
  130. package/lib/cjs/table/ColGroup.js +2 -2
  131. package/lib/cjs/table/ColumnFilter.js +3 -3
  132. package/lib/cjs/table/ColumnSelection.js +2 -2
  133. package/lib/cjs/table/ColumnSorter.js +7 -7
  134. package/lib/cjs/table/CustomExpandIcon.js +2 -2
  135. package/lib/cjs/table/HeadTable.js +3 -3
  136. package/lib/cjs/table/Table.d.ts +1 -1
  137. package/lib/cjs/table/Table.js +20 -20
  138. package/lib/cjs/table/TableCell.js +8 -8
  139. package/lib/cjs/table/TableHeader.js +1 -1
  140. package/lib/cjs/table/TableHeaderRow.js +8 -8
  141. package/lib/cjs/table/TablePagination.js +3 -3
  142. package/lib/cjs/tabs/TabBar.js +18 -18
  143. package/lib/cjs/tabs/TabPane.js +3 -3
  144. package/lib/cjs/tabs/index.js +2 -2
  145. package/lib/cjs/tag/group.js +5 -5
  146. package/lib/cjs/tag/index.js +13 -13
  147. package/lib/cjs/tagInput/index.js +33 -33
  148. package/lib/cjs/timePicker/Combobox.js +4 -4
  149. package/lib/cjs/timePicker/TimeInput.js +4 -4
  150. package/lib/cjs/timePicker/TimePicker.js +8 -8
  151. package/lib/cjs/timeline/index.js +8 -8
  152. package/lib/cjs/timeline/item.js +7 -7
  153. package/lib/cjs/toast/index.js +5 -5
  154. package/lib/cjs/toast/toast.js +9 -9
  155. package/lib/cjs/tooltip/index.js +7 -7
  156. package/lib/cjs/transfer/index.js +31 -31
  157. package/lib/cjs/tree/autoSizer.js +1 -1
  158. package/lib/cjs/tree/index.js +6 -6
  159. package/lib/cjs/tree/nodeList.js +1 -1
  160. package/lib/cjs/tree/treeNode.js +26 -26
  161. package/lib/cjs/treeSelect/index.js +40 -40
  162. package/lib/cjs/typography/base.js +14 -14
  163. package/lib/cjs/typography/copyable.js +3 -3
  164. package/lib/cjs/typography/paragraph.js +1 -1
  165. package/lib/cjs/typography/title.js +1 -1
  166. package/lib/cjs/typography/util.js +1 -1
  167. package/lib/cjs/upload/fileCard.js +32 -32
  168. package/lib/cjs/upload/index.js +37 -37
  169. package/lib/es/_portal/index.js +2 -2
  170. package/lib/es/_utils/index.js +3 -1
  171. package/lib/es/anchor/index.js +9 -9
  172. package/lib/es/anchor/link.js +8 -8
  173. package/lib/es/autoComplete/index.js +8 -4
  174. package/lib/es/autoComplete/option.js +7 -7
  175. package/lib/es/avatar/avatarGroup.js +7 -7
  176. package/lib/es/avatar/index.js +12 -12
  177. package/lib/es/badge/index.js +8 -8
  178. package/lib/es/banner/index.js +12 -12
  179. package/lib/es/breadcrumb/index.js +12 -12
  180. package/lib/es/breadcrumb/item.js +8 -8
  181. package/lib/es/button/Button.js +9 -9
  182. package/lib/es/button/buttonGroup.js +5 -5
  183. package/lib/es/button/splitButtonGroup.js +1 -1
  184. package/lib/es/calendar/dayCalendar.js +13 -13
  185. package/lib/es/calendar/dayCol.js +17 -17
  186. package/lib/es/calendar/monthCalendar.js +38 -38
  187. package/lib/es/calendar/rangeCalendar.js +27 -27
  188. package/lib/es/calendar/timeCol.js +6 -6
  189. package/lib/es/calendar/weekCalendar.js +27 -27
  190. package/lib/es/card/cardGroup.js +2 -2
  191. package/lib/es/card/index.js +16 -16
  192. package/lib/es/card/meta.js +5 -5
  193. package/lib/es/carousel/CarouselArrow.js +6 -6
  194. package/lib/es/carousel/CarouselIndicator.js +6 -6
  195. package/lib/es/carousel/index.js +12 -12
  196. package/lib/es/cascader/index.js +36 -36
  197. package/lib/es/cascader/item.js +25 -25
  198. package/lib/es/checkbox/checkbox.js +14 -14
  199. package/lib/es/checkbox/checkboxGroup.js +4 -4
  200. package/lib/es/checkbox/checkboxInner.js +6 -6
  201. package/lib/es/collapse/item.js +9 -9
  202. package/lib/es/collapsible/index.js +3 -3
  203. package/lib/es/configProvider/index.js +1 -1
  204. package/lib/es/datePicker/dateInput.js +16 -16
  205. package/lib/es/datePicker/datePicker.js +9 -9
  206. package/lib/es/datePicker/footer.js +1 -1
  207. package/lib/es/datePicker/index.js +1 -1
  208. package/lib/es/datePicker/month.js +2 -2
  209. package/lib/es/datePicker/monthsGrid.d.ts +2 -2
  210. package/lib/es/datePicker/monthsGrid.js +28 -28
  211. package/lib/es/datePicker/navigation.js +1 -1
  212. package/lib/es/datePicker/quickControl.js +14 -14
  213. package/lib/es/datePicker/yearAndMonth.js +4 -4
  214. package/lib/es/descriptions/index.js +3 -3
  215. package/lib/es/descriptions/item.js +5 -5
  216. package/lib/es/divider/index.js +7 -7
  217. package/lib/es/dropdown/dropdownDivider.js +1 -1
  218. package/lib/es/dropdown/dropdownItem.js +6 -6
  219. package/lib/es/dropdown/dropdownMenu.js +1 -1
  220. package/lib/es/dropdown/dropdownTitle.js +2 -2
  221. package/lib/es/dropdown/index.js +3 -3
  222. package/lib/es/empty/index.js +7 -7
  223. package/lib/es/form/arrayField.js +1 -1
  224. package/lib/es/form/baseForm.d.ts +1 -1
  225. package/lib/es/form/baseForm.js +2 -2
  226. package/lib/es/form/errorMessage.js +1 -1
  227. package/lib/es/form/field.d.ts +1 -1
  228. package/lib/es/form/group.js +2 -2
  229. package/lib/es/form/hoc/withField.js +16 -16
  230. package/lib/es/form/label.js +9 -9
  231. package/lib/es/form/slot.js +5 -5
  232. package/lib/es/grid/col.js +11 -11
  233. package/lib/es/grid/row.js +4 -4
  234. package/lib/es/highlight/index.js +1 -1
  235. package/lib/es/iconButton/index.js +5 -5
  236. package/lib/es/image/image.js +10 -10
  237. package/lib/es/image/preview.js +3 -3
  238. package/lib/es/image/previewFooter.js +12 -12
  239. package/lib/es/image/previewHeader.js +3 -3
  240. package/lib/es/image/previewImage.js +7 -7
  241. package/lib/es/image/previewInner.js +7 -7
  242. package/lib/es/input/index.js +38 -38
  243. package/lib/es/input/inputGroup.js +7 -7
  244. package/lib/es/input/textarea.js +14 -14
  245. package/lib/es/inputNumber/index.js +11 -11
  246. package/lib/es/layout/Sider.js +3 -3
  247. package/lib/es/layout/index.js +2 -2
  248. package/lib/es/list/index.js +11 -11
  249. package/lib/es/list/item.js +6 -6
  250. package/lib/es/modal/ConfirmModal.js +7 -7
  251. package/lib/es/modal/Modal.js +4 -4
  252. package/lib/es/modal/ModalContent.js +24 -24
  253. package/lib/es/modal/useModal/index.js +1 -1
  254. package/lib/es/navigation/CollapseButton.js +1 -1
  255. package/lib/es/navigation/Footer.js +2 -2
  256. package/lib/es/navigation/Header.js +5 -5
  257. package/lib/es/navigation/Item.js +16 -16
  258. package/lib/es/navigation/SubNav.js +14 -14
  259. package/lib/es/navigation/index.js +8 -8
  260. package/lib/es/notification/index.js +3 -3
  261. package/lib/es/notification/notice.js +12 -12
  262. package/lib/es/overflowList/index.js +6 -6
  263. package/lib/es/pagination/index.js +26 -26
  264. package/lib/es/popconfirm/index.js +9 -9
  265. package/lib/es/popover/index.js +2 -2
  266. package/lib/es/progress/index.js +14 -14
  267. package/lib/es/radio/radio.js +22 -22
  268. package/lib/es/radio/radioGroup.js +5 -5
  269. package/lib/es/radio/radioInner.js +7 -7
  270. package/lib/es/rating/index.js +5 -5
  271. package/lib/es/rating/item.js +11 -11
  272. package/lib/es/scrollList/index.js +5 -5
  273. package/lib/es/scrollList/scrollItem.js +13 -13
  274. package/lib/es/select/index.js +53 -53
  275. package/lib/es/select/option.js +7 -7
  276. package/lib/es/sideSheet/SideSheetContent.js +10 -10
  277. package/lib/es/sideSheet/index.js +7 -7
  278. package/lib/es/skeleton/index.js +1 -1
  279. package/lib/es/skeleton/item.js +4 -4
  280. package/lib/es/slider/index.js +28 -28
  281. package/lib/es/space/index.js +12 -12
  282. package/lib/es/spin/icon.js +2 -2
  283. package/lib/es/spin/index.js +6 -6
  284. package/lib/es/steps/basicStep.js +14 -14
  285. package/lib/es/steps/basicSteps.js +6 -6
  286. package/lib/es/steps/fillStep.js +10 -10
  287. package/lib/es/steps/fillSteps.js +4 -4
  288. package/lib/es/steps/navStep.js +5 -5
  289. package/lib/es/steps/navSteps.js +2 -2
  290. package/lib/es/table/Body/BaseRow.js +5 -5
  291. package/lib/es/table/Body/ExpandedRow.js +3 -3
  292. package/lib/es/table/Body/SectionRow.js +1 -1
  293. package/lib/es/table/Body/index.js +8 -8
  294. package/lib/es/table/ColGroup.js +2 -2
  295. package/lib/es/table/ColumnFilter.js +3 -3
  296. package/lib/es/table/ColumnSelection.js +2 -2
  297. package/lib/es/table/ColumnSorter.js +7 -7
  298. package/lib/es/table/CustomExpandIcon.js +2 -2
  299. package/lib/es/table/HeadTable.js +3 -3
  300. package/lib/es/table/Table.d.ts +1 -1
  301. package/lib/es/table/Table.js +20 -20
  302. package/lib/es/table/TableCell.js +8 -8
  303. package/lib/es/table/TableHeader.js +1 -1
  304. package/lib/es/table/TableHeaderRow.js +8 -8
  305. package/lib/es/table/TablePagination.js +3 -3
  306. package/lib/es/tabs/TabBar.js +18 -18
  307. package/lib/es/tabs/TabPane.js +3 -3
  308. package/lib/es/tabs/index.js +2 -2
  309. package/lib/es/tag/group.js +5 -5
  310. package/lib/es/tag/index.js +13 -13
  311. package/lib/es/tagInput/index.js +33 -33
  312. package/lib/es/timePicker/Combobox.js +4 -4
  313. package/lib/es/timePicker/TimeInput.js +4 -4
  314. package/lib/es/timePicker/TimePicker.js +8 -8
  315. package/lib/es/timeline/index.js +8 -8
  316. package/lib/es/timeline/item.js +7 -7
  317. package/lib/es/toast/index.js +5 -5
  318. package/lib/es/toast/toast.js +9 -9
  319. package/lib/es/tooltip/index.js +7 -7
  320. package/lib/es/transfer/index.js +31 -31
  321. package/lib/es/tree/autoSizer.js +1 -1
  322. package/lib/es/tree/index.js +6 -6
  323. package/lib/es/tree/nodeList.js +1 -1
  324. package/lib/es/tree/treeNode.js +26 -26
  325. package/lib/es/treeSelect/index.js +40 -40
  326. package/lib/es/typography/base.js +14 -14
  327. package/lib/es/typography/copyable.js +3 -3
  328. package/lib/es/typography/paragraph.js +1 -1
  329. package/lib/es/typography/title.js +1 -1
  330. package/lib/es/typography/util.js +1 -1
  331. package/lib/es/upload/fileCard.js +32 -32
  332. package/lib/es/upload/index.js +37 -37
  333. package/package.json +8 -8
@@ -365,13 +365,13 @@ class Select extends BaseComponent {
365
365
  },
366
366
  updateScrollTop: index => {
367
367
  // eslint-disable-next-line max-len
368
- let optionClassName = ".".concat(prefixcls, "-option-selected");
368
+ let optionClassName = `.${prefixcls}-option-selected`;
369
369
 
370
370
  if (index !== undefined) {
371
- optionClassName = ".".concat(prefixcls, "-option:nth-child(").concat(index, ")");
371
+ optionClassName = `.${prefixcls}-option:nth-child(${index})`;
372
372
  }
373
373
 
374
- let destNode = document.querySelector("#".concat(prefixcls, "-").concat(this.selectOptionListID, " ").concat(optionClassName));
374
+ let destNode = document.querySelector(`#${prefixcls}-${this.selectOptionListID} ${optionClassName}`);
375
375
 
376
376
  if (Array.isArray(destNode)) {
377
377
  // eslint-disable-next-line prefer-destructuring
@@ -431,9 +431,9 @@ class Select extends BaseComponent {
431
431
 
432
432
  const inputPropsCls = _get(inputProps, 'className');
433
433
 
434
- const inputcls = cls("".concat(prefixcls, "-input"), {
435
- ["".concat(prefixcls, "-input-single")]: !multiple,
436
- ["".concat(prefixcls, "-input-multiple")]: multiple
434
+ const inputcls = cls(`${prefixcls}-input`, {
435
+ [`${prefixcls}-input-single`]: !multiple,
436
+ [`${prefixcls}-input-multiple`]: multiple
437
437
  }, inputPropsCls);
438
438
  const {
439
439
  inputValue,
@@ -449,7 +449,7 @@ class Select extends BaseComponent {
449
449
 
450
450
  if (multiple) {
451
451
  style = {
452
- width: inputValue ? "".concat(inputValue.length * 16, "px") : '2px'
452
+ width: inputValue ? `${inputValue.length * 16}px` : '2px'
453
453
  };
454
454
  selectInputProps.style = style;
455
455
  }
@@ -457,7 +457,7 @@ class Select extends BaseComponent {
457
457
  return /*#__PURE__*/React.createElement(Input, Object.assign({
458
458
  ref: this.inputRef,
459
459
  size: size,
460
- "aria-activedescendant": focusIndex !== -1 ? "".concat(this.selectID, "-option-").concat(focusIndex) : '',
460
+ "aria-activedescendant": focusIndex !== -1 ? `${this.selectID}-option-${focusIndex}` : '',
461
461
  onFocus: e => {
462
462
  // if multiple and filter, when use tab key to let select get focus
463
463
  // need to manual update state isFocus to let the focus style take effect
@@ -515,7 +515,7 @@ class Select extends BaseComponent {
515
515
  }
516
516
 
517
517
  renderLoading() {
518
- const loadingWrapperCls = "".concat(prefixcls, "-loading-wrapper");
518
+ const loadingWrapperCls = `${prefixcls}-loading-wrapper`;
519
519
  return /*#__PURE__*/React.createElement("div", {
520
520
  className: loadingWrapperCls
521
521
  }, /*#__PURE__*/React.createElement(Spin, null));
@@ -556,7 +556,7 @@ class Select extends BaseComponent {
556
556
  key: option.key || option.label + option.value + optionIndex,
557
557
  renderOptionItem: renderOptionItem,
558
558
  inputValue: inputValue,
559
- id: "".concat(this.selectID, "-option-").concat(optionIndex)
559
+ id: `${this.selectID}-option-${optionIndex}`
560
560
  }), option.label);
561
561
  }
562
562
 
@@ -580,7 +580,7 @@ class Select extends BaseComponent {
580
580
  }), /*#__PURE__*/React.createElement(LocaleConsumer, {
581
581
  componentName: "Select"
582
582
  }, locale => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
583
- className: "".concat(prefixcls, "-create-tips")
583
+ className: `${prefixcls}-create-tips`
584
584
  }, locale.createText), option.value)));
585
585
  return defaultCreateItem;
586
586
  }
@@ -682,26 +682,26 @@ class Select extends BaseComponent {
682
682
  minWidth: dropdownMinWidth
683
683
  }, dropdownStyle);
684
684
  const optionListCls = cls({
685
- ["".concat(prefixcls, "-option-list")]: true,
686
- ["".concat(prefixcls, "-option-list-chosen")]: selections.size
685
+ [`${prefixcls}-option-list`]: true,
686
+ [`${prefixcls}-option-list-chosen`]: selections.size
687
687
  });
688
688
  const isEmpty = !options.length || !options.some(item => item._show);
689
689
  return (
690
690
  /*#__PURE__*/
691
691
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
692
692
  React.createElement("div", {
693
- id: "".concat(prefixcls, "-").concat(this.selectOptionListID),
693
+ id: `${prefixcls}-${this.selectOptionListID}`,
694
694
  className: cls({
695
695
  // When emptyContent is null and the option is empty, there is no need for the drop-down option for the user,
696
696
  // so there is no need to set padding through this className
697
- ["".concat(prefixcls, "-option-list-wrapper")]: !(isEmpty && emptyContent === null)
697
+ [`${prefixcls}-option-list-wrapper`]: !(isEmpty && emptyContent === null)
698
698
  }, dropdownClassName),
699
699
  style: style,
700
700
  ref: this.setOptionContainerEl,
701
701
  onKeyDown: e => this.foundation.handleContainerKeyDown(e)
702
702
  }, outerTopSlot, /*#__PURE__*/React.createElement("div", {
703
703
  style: {
704
- maxHeight: "".concat(maxHeight, "px")
704
+ maxHeight: `${maxHeight}px`
705
705
  },
706
706
  className: optionListCls,
707
707
  role: "listbox",
@@ -735,13 +735,13 @@ class Select extends BaseComponent {
735
735
  }
736
736
 
737
737
  const spanCls = cls({
738
- ["".concat(prefixcls, "-selection-text")]: true,
739
- ["".concat(prefixcls, "-selection-placeholder")]: !renderText && renderText !== 0,
740
- ["".concat(prefixcls, "-selection-text-hide")]: inputValue && showInput,
741
- ["".concat(prefixcls, "-selection-text-inactive")]: !inputValue && showInput // Stack Input & RenderText(opacity 0.4)
738
+ [`${prefixcls}-selection-text`]: true,
739
+ [`${prefixcls}-selection-placeholder`]: !renderText && renderText !== 0,
740
+ [`${prefixcls}-selection-text-hide`]: inputValue && showInput,
741
+ [`${prefixcls}-selection-text-inactive`]: !inputValue && showInput // Stack Input & RenderText(opacity 0.4)
742
742
 
743
743
  });
744
- const contentWrapperCls = "".concat(prefixcls, "-content-wrapper");
744
+ const contentWrapperCls = `${prefixcls}-content-wrapper`;
745
745
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
746
746
  className: contentWrapperCls
747
747
  }, /*#__PURE__*/React.createElement("span", {
@@ -826,14 +826,14 @@ class Select extends BaseComponent {
826
826
  }
827
827
 
828
828
  const contentWrapperCls = cls({
829
- ["".concat(prefixcls, "-content-wrapper")]: true,
830
- ["".concat(prefixcls, "-content-wrapper-one-line")]: maxTagCount,
831
- ["".concat(prefixcls, "-content-wrapper-empty")]: !tags.length
829
+ [`${prefixcls}-content-wrapper`]: true,
830
+ [`${prefixcls}-content-wrapper-one-line`]: maxTagCount,
831
+ [`${prefixcls}-content-wrapper-empty`]: !tags.length
832
832
  });
833
833
  const spanCls = cls({
834
- ["".concat(prefixcls, "-selection-text")]: true,
835
- ["".concat(prefixcls, "-selection-placeholder")]: !tags.length,
836
- ["".concat(prefixcls, "-selection-text-hide")]: tags && tags.length // [prefixcls + '-selection-text-inactive']: !inputValue && !tags.length,
834
+ [`${prefixcls}-selection-text`]: true,
835
+ [`${prefixcls}-selection-placeholder`]: !tags.length,
836
+ [`${prefixcls}-selection-text-hide`]: tags && tags.length // [prefixcls + '-selection-text-inactive']: !inputValue && !tags.length,
837
837
 
838
838
  });
839
839
  const placeholderText = placeholder && !inputValue ? /*#__PURE__*/React.createElement("span", {
@@ -897,9 +897,9 @@ class Select extends BaseComponent {
897
897
  suffix
898
898
  } = this.props;
899
899
  const suffixWrapperCls = cls({
900
- ["".concat(prefixcls, "-suffix")]: true,
901
- ["".concat(prefixcls, "-suffix-text")]: suffix && _isString(suffix),
902
- ["".concat(prefixcls, "-suffix-icon")]: isSemiIcon(suffix)
900
+ [`${prefixcls}-suffix`]: true,
901
+ [`${prefixcls}-suffix-text`]: suffix && _isString(suffix),
902
+ [`${prefixcls}-suffix-icon`]: isSemiIcon(suffix)
903
903
  });
904
904
  return /*#__PURE__*/React.createElement("div", {
905
905
  className: suffixWrapperCls,
@@ -915,10 +915,10 @@ class Select extends BaseComponent {
915
915
  } = this.props;
916
916
  const labelNode = prefix || insetLabel;
917
917
  const prefixWrapperCls = cls({
918
- ["".concat(prefixcls, "-prefix")]: true,
919
- ["".concat(prefixcls, "-inset-label")]: insetLabel,
920
- ["".concat(prefixcls, "-prefix-text")]: labelNode && _isString(labelNode),
921
- ["".concat(prefixcls, "-prefix-icon")]: isSemiIcon(labelNode)
918
+ [`${prefixcls}-prefix`]: true,
919
+ [`${prefixcls}-inset-label`]: insetLabel,
920
+ [`${prefixcls}-prefix-text`]: labelNode && _isString(labelNode),
921
+ [`${prefixcls}-prefix-icon`]: isSemiIcon(labelNode)
922
922
  });
923
923
  return /*#__PURE__*/React.createElement("div", {
924
924
  className: prefixWrapperCls,
@@ -960,26 +960,26 @@ class Select extends BaseComponent {
960
960
  const filterable = Boolean(filter); // filter(boolean || function)
961
961
 
962
962
  const selectionCls = useCustomTrigger ? cls(className) : cls(prefixcls, className, {
963
- ["".concat(prefixcls, "-open")]: isOpen,
964
- ["".concat(prefixcls, "-focus")]: isFocus,
965
- ["".concat(prefixcls, "-disabled")]: disabled,
966
- ["".concat(prefixcls, "-single")]: !multiple,
967
- ["".concat(prefixcls, "-multiple")]: multiple,
968
- ["".concat(prefixcls, "-filterable")]: filterable,
969
- ["".concat(prefixcls, "-small")]: size === 'small',
970
- ["".concat(prefixcls, "-large")]: size === 'large',
971
- ["".concat(prefixcls, "-error")]: validateStatus === 'error',
972
- ["".concat(prefixcls, "-warning")]: validateStatus === 'warning',
973
- ["".concat(prefixcls, "-no-arrow")]: !showArrow,
974
- ["".concat(prefixcls, "-with-prefix")]: prefix || insetLabel,
975
- ["".concat(prefixcls, "-with-suffix")]: suffix
963
+ [`${prefixcls}-open`]: isOpen,
964
+ [`${prefixcls}-focus`]: isFocus,
965
+ [`${prefixcls}-disabled`]: disabled,
966
+ [`${prefixcls}-single`]: !multiple,
967
+ [`${prefixcls}-multiple`]: multiple,
968
+ [`${prefixcls}-filterable`]: filterable,
969
+ [`${prefixcls}-small`]: size === 'small',
970
+ [`${prefixcls}-large`]: size === 'large',
971
+ [`${prefixcls}-error`]: validateStatus === 'error',
972
+ [`${prefixcls}-warning`]: validateStatus === 'warning',
973
+ [`${prefixcls}-no-arrow`]: !showArrow,
974
+ [`${prefixcls}-with-prefix`]: prefix || insetLabel,
975
+ [`${prefixcls}-with-suffix`]: suffix
976
976
  });
977
977
  const showClear = this.props.showClear && (selections.size || inputValue) && !disabled && (isHovering || isOpen);
978
978
  const arrowContent = showArrow ? /*#__PURE__*/React.createElement("div", {
979
- className: "".concat(prefixcls, "-arrow"),
979
+ className: `${prefixcls}-arrow`,
980
980
  "x-semi-prop": "arrowIcon"
981
981
  }, arrowIcon) : /*#__PURE__*/React.createElement("div", {
982
- className: "".concat(prefixcls, "-arrow-empty")
982
+ className: `${prefixcls}-arrow-empty`
983
983
  });
984
984
  const clear = clearIcon ? clearIcon : /*#__PURE__*/React.createElement(IconClear, null);
985
985
  const inner = useCustomTrigger ? /*#__PURE__*/React.createElement(Trigger, {
@@ -997,11 +997,11 @@ class Select extends BaseComponent {
997
997
  }, prefix || insetLabel ? this.renderPrefix() : null), /*#__PURE__*/React.createElement(Fragment, {
998
998
  key: "selection"
999
999
  }, /*#__PURE__*/React.createElement("div", {
1000
- className: cls("".concat(prefixcls, "-selection"))
1000
+ className: cls(`${prefixcls}-selection`)
1001
1001
  }, multiple ? this.renderMultipleSelection(selections, filterable) : this.renderSingleSelection(selections, filterable))), /*#__PURE__*/React.createElement(Fragment, {
1002
1002
  key: "clearicon"
1003
1003
  }, showClear ? /*#__PURE__*/React.createElement("div", {
1004
- className: cls("".concat(prefixcls, "-clear")),
1004
+ className: cls(`${prefixcls}-clear`),
1005
1005
  onClick: this.onClear
1006
1006
  }, clear) : arrowContent), /*#__PURE__*/React.createElement(Fragment, {
1007
1007
  key: "suffix"
@@ -1024,7 +1024,7 @@ class Select extends BaseComponent {
1024
1024
  role: "combobox",
1025
1025
  "aria-disabled": disabled,
1026
1026
  "aria-expanded": isOpen,
1027
- "aria-controls": "".concat(prefixcls, "-").concat(this.selectOptionListID),
1027
+ "aria-controls": `${prefixcls}-${this.selectOptionListID}`,
1028
1028
  "aria-haspopup": "listbox",
1029
1029
  "aria-label": selections.size ? 'selected' : '',
1030
1030
  "aria-invalid": this.props['aria-invalid'],
@@ -1038,7 +1038,7 @@ class Select extends BaseComponent {
1038
1038
  style: style,
1039
1039
  id: this.selectID,
1040
1040
  tabIndex: tabIndex,
1041
- "aria-activedescendant": focusIndex !== -1 ? "".concat(this.selectID, "-option-").concat(focusIndex) : '',
1041
+ "aria-activedescendant": focusIndex !== -1 ? `${this.selectID}-option-${focusIndex}` : '',
1042
1042
  onMouseEnter: this.onMouseEnter,
1043
1043
  onMouseLeave: this.onMouseLeave,
1044
1044
  onFocus: e => this.foundation.handleTriggerFocus(e),
@@ -82,13 +82,13 @@ class Option extends PureComponent {
82
82
  rest = __rest(_a, ["children", "disabled", "value", "selected", "label", "empty", "emptyContent", "onSelect", "focused", "showTick", "className", "style", "onMouseEnter", "prefixCls", "renderOptionItem", "inputValue", "id"]);
83
83
 
84
84
  const optionClassName = classNames(prefixCls, {
85
- ["".concat(prefixCls, "-disabled")]: disabled,
86
- ["".concat(prefixCls, "-selected")]: selected,
87
- ["".concat(prefixCls, "-focused")]: focused,
88
- ["".concat(prefixCls, "-empty")]: empty,
85
+ [`${prefixCls}-disabled`]: disabled,
86
+ [`${prefixCls}-selected`]: selected,
87
+ [`${prefixCls}-focused`]: focused,
88
+ [`${prefixCls}-empty`]: empty,
89
89
  [className]: className
90
90
  });
91
- const selectedIconClassName = classNames(["".concat(prefixCls, "-icon")]);
91
+ const selectedIconClassName = classNames([`${prefixCls}-icon`]);
92
92
 
93
93
  if (empty) {
94
94
  if (emptyContent === null) {
@@ -126,7 +126,7 @@ class Option extends PureComponent {
126
126
  searchWords: inputValue,
127
127
  sourceString: children,
128
128
  option: {
129
- highlightClassName: "".concat(prefixCls, "-keyword")
129
+ highlightClassName: `${prefixCls}-keyword`
130
130
  }
131
131
  };
132
132
  return (
@@ -150,7 +150,7 @@ class Option extends PureComponent {
150
150
  }, showTick ? /*#__PURE__*/React.createElement("div", {
151
151
  className: selectedIconClassName
152
152
  }, /*#__PURE__*/React.createElement(IconTick, null)) : null, _isString(children) ? /*#__PURE__*/React.createElement("div", {
153
- className: "".concat(prefixCls, "-text")
153
+ className: `${prefixCls}-text`
154
154
  }, this.renderOptionContent({
155
155
  children,
156
156
  config,
@@ -38,7 +38,7 @@ export default class SideSheetContent extends React.PureComponent {
38
38
  }
39
39
 
40
40
  componentDidMount() {
41
- this.sideSheetId = "sidesheet-".concat(uuid++);
41
+ this.sideSheetId = `sidesheet-${uuid++}`;
42
42
  }
43
43
 
44
44
  componentWillUnmount() {
@@ -58,7 +58,7 @@ export default class SideSheetContent extends React.PureComponent {
58
58
  return /*#__PURE__*/React.createElement("div", Object.assign({
59
59
  "aria-hidden": true,
60
60
  key: "mask",
61
- className: cls("".concat(prefixCls, "-mask"), (_a = this.props.maskClassName) !== null && _a !== void 0 ? _a : ""),
61
+ className: cls(`${prefixCls}-mask`, (_a = this.props.maskClassName) !== null && _a !== void 0 ? _a : ""),
62
62
  style: maskStyle,
63
63
  onClick: maskClosable ? this.onMaskClick : null
64
64
  }, this.props.maskExtraProps));
@@ -77,14 +77,14 @@ export default class SideSheetContent extends React.PureComponent {
77
77
 
78
78
  if (title) {
79
79
  header = /*#__PURE__*/React.createElement("div", {
80
- className: "".concat(prefixCls, "-title"),
80
+ className: `${prefixCls}-title`,
81
81
  "x-semi-prop": "title"
82
82
  }, this.props.title);
83
83
  }
84
84
 
85
85
  if (closable) {
86
86
  closer = /*#__PURE__*/React.createElement(Button, {
87
- className: "".concat(prefixCls, "-close"),
87
+ className: `${prefixCls}-close`,
88
88
  key: "close-btn",
89
89
  onClick: this.close,
90
90
  type: "tertiary",
@@ -95,7 +95,7 @@ export default class SideSheetContent extends React.PureComponent {
95
95
  }
96
96
 
97
97
  return /*#__PURE__*/React.createElement("div", {
98
- className: "".concat(prefixCls, "-header"),
98
+ className: `${prefixCls}-header`,
99
99
  role: 'heading',
100
100
  "aria-level": 1,
101
101
  style: Object.assign({}, headerStyle)
@@ -126,17 +126,17 @@ export default class SideSheetContent extends React.PureComponent {
126
126
  key: "dialog-element",
127
127
  role: "dialog",
128
128
  tabIndex: -1,
129
- className: cls("".concat(prefixCls, "-inner"), "".concat(prefixCls, "-inner-wrap"), (_a = this.props.dialogClassName) !== null && _a !== void 0 ? _a : ""),
129
+ className: cls(`${prefixCls}-inner`, `${prefixCls}-inner-wrap`, (_a = this.props.dialogClassName) !== null && _a !== void 0 ? _a : ""),
130
130
  // onMouseDown={this.onDialogMouseDown}
131
131
  style: Object.assign(Object.assign({}, props.style), style)
132
132
  }, this.props.wrapperExtraProps), /*#__PURE__*/React.createElement("div", {
133
- className: "".concat(prefixCls, "-content")
133
+ className: `${prefixCls}-content`
134
134
  }, header, /*#__PURE__*/React.createElement("div", {
135
- className: "".concat(prefixCls, "-body"),
135
+ className: `${prefixCls}-body`,
136
136
  style: props.bodyStyle,
137
137
  "x-semi-prop": "children"
138
138
  }, props.children), props.footer ? /*#__PURE__*/React.createElement("div", {
139
- className: "".concat(prefixCls, "-footer"),
139
+ className: `${prefixCls}-footer`,
140
140
  "x-semi-prop": "footer"
141
141
  }, props.footer) : null));
142
142
  return dialogElement;
@@ -149,7 +149,7 @@ export default class SideSheetContent extends React.PureComponent {
149
149
  width
150
150
  } = this.props;
151
151
  const wrapperCls = cls(className, {
152
- ["".concat(prefixCls, "-fixed")]: !mask
152
+ [`${prefixCls}-fixed`]: !mask
153
153
  });
154
154
  const wrapperStyle = {};
155
155
 
@@ -164,11 +164,11 @@ export default class SideSheet extends BaseComponent {
164
164
  const sheetWidth = isVertical ? width ? width : defaultWidthList[size] : '100%';
165
165
  const sheetHeight = isHorizontal ? height ? height : defaultHeight : '100%';
166
166
  const classList = cls(prefixCls, className, {
167
- ["".concat(prefixCls, "-").concat(placement)]: placement,
168
- ["".concat(prefixCls, "-popup")]: getPopupContainer,
169
- ["".concat(prefixCls, "-horizontal")]: isHorizontal,
170
- ["".concat(prefixCls, "-rtl")]: direction === 'rtl',
171
- ["".concat(prefixCls, "-hidden")]: keepDOM && this.state.displayNone
167
+ [`${prefixCls}-${placement}`]: placement,
168
+ [`${prefixCls}-popup`]: getPopupContainer,
169
+ [`${prefixCls}-horizontal`]: isHorizontal,
170
+ [`${prefixCls}-rtl`]: direction === 'rtl',
171
+ [`${prefixCls}-hidden`]: keepDOM && this.state.displayNone
172
172
  });
173
173
  const contentProps = Object.assign(Object.assign({}, props), {
174
174
  visible,
@@ -185,7 +185,7 @@ export default class SideSheet extends BaseComponent {
185
185
  return /*#__PURE__*/React.createElement(CSSAnimation, {
186
186
  motion: this.props.motion,
187
187
  animationState: visible ? 'enter' : 'leave',
188
- startClassName: visible ? "".concat(prefixCls, "-animation-mask_show") : "".concat(prefixCls, "-animation-mask_hide"),
188
+ startClassName: visible ? `${prefixCls}-animation-mask_show` : `${prefixCls}-animation-mask_hide`,
189
189
  onAnimationEnd: this.updateState
190
190
  }, _ref => {
191
191
  let {
@@ -195,7 +195,7 @@ export default class SideSheet extends BaseComponent {
195
195
  return /*#__PURE__*/React.createElement(CSSAnimation, {
196
196
  motion: this.props.motion,
197
197
  animationState: visible ? 'enter' : 'leave',
198
- startClassName: visible ? "".concat(prefixCls, "-animation-content_show_").concat(this.props.placement) : "".concat(prefixCls, "-animation-content_hide_").concat(this.props.placement),
198
+ startClassName: visible ? `${prefixCls}-animation-content_show_${this.props.placement}` : `${prefixCls}-animation-content_hide_${this.props.placement}`,
199
199
  onAnimationEnd: this.updateState
200
200
  /* for no mask case*/
201
201
 
@@ -31,7 +31,7 @@ class Skeleton extends PureComponent {
31
31
  others = __rest(_a, ["placeholder", "active", "children", "className", "loading", "style"]);
32
32
 
33
33
  const skCls = cls(prefixCls, {
34
- ["".concat(prefixCls, "-active")]: Boolean(active)
34
+ [`${prefixCls}-active`]: Boolean(active)
35
35
  }, className);
36
36
  let content;
37
37
 
@@ -34,10 +34,10 @@ class Generic extends PureComponent {
34
34
  } = _a,
35
35
  others = __rest(_a, ["prefixCls", "className", "type", "size", "shape"]);
36
36
 
37
- const classString = cls(className, "".concat(prefixCls, "-").concat(type), {
38
- ["".concat(prefixCls, "-").concat(type, "-").concat(size)]: type.toUpperCase() === 'AVATAR'
37
+ const classString = cls(className, `${prefixCls}-${type}`, {
38
+ [`${prefixCls}-${type}-${size}`]: type.toUpperCase() === 'AVATAR'
39
39
  }, {
40
- ["".concat(prefixCls, "-").concat(type, "-").concat(shape)]: type.toUpperCase() === 'AVATAR'
40
+ [`${prefixCls}-${type}-${shape}`]: type.toUpperCase() === 'AVATAR'
41
41
  });
42
42
  return /*#__PURE__*/React.createElement('div', Object.assign({
43
43
  className: classString
@@ -71,7 +71,7 @@ export class Paragraph extends PureComponent {
71
71
  style,
72
72
  rows
73
73
  } = this.props;
74
- const classString = cls(className, "".concat(prefixCls, "-paragraph"));
74
+ const classString = cls(className, `${prefixCls}-paragraph`);
75
75
  return /*#__PURE__*/React.createElement("ul", {
76
76
  className: classString,
77
77
  style: style
@@ -59,10 +59,10 @@ export default class Slider extends BaseComponent {
59
59
  left: 'translateX(-50%)'
60
60
  };
61
61
  const minClass = cls(cssClasses.HANDLE, {
62
- ["".concat(cssClasses.HANDLE, "-clicked")]: chooseMovePos === 'min' && isDrag
62
+ [`${cssClasses.HANDLE}-clicked`]: chooseMovePos === 'min' && isDrag
63
63
  });
64
64
  const maxClass = cls(cssClasses.HANDLE, {
65
- ["".concat(cssClasses.HANDLE, "-clicked")]: chooseMovePos === 'max' && isDrag
65
+ [`${cssClasses.HANDLE}-clicked`]: chooseMovePos === 'max' && isDrag
66
66
  });
67
67
  const {
68
68
  min,
@@ -83,13 +83,13 @@ export default class Slider extends BaseComponent {
83
83
  trigger: "custom",
84
84
  rePosKey: minPercent,
85
85
  visible: isInRenderTree && (tipVisible.min || firstDotFocusVisible),
86
- className: "".concat(cssClasses.HANDLE, "-tooltip")
86
+ className: `${cssClasses.HANDLE}-tooltip`
87
87
  }, /*#__PURE__*/React.createElement("span", Object.assign({
88
88
  onMouseOver: this.foundation.checkAndUpdateIsInRenderTreeState,
89
89
  ref: this.minHanleEl,
90
90
  className: minClass,
91
91
  style: {
92
- [stylePos]: "".concat(minPercent * 100, "%"),
92
+ [stylePos]: `${minPercent * 100}%`,
93
93
  zIndex: chooseMovePos === 'min' && isDrag ? 2 : 1,
94
94
  transform: transform[stylePos]
95
95
  },
@@ -136,12 +136,12 @@ export default class Slider extends BaseComponent {
136
136
  trigger: "custom",
137
137
  rePosKey: minPercent,
138
138
  visible: isInRenderTree && (tipVisible.min || firstDotFocusVisible),
139
- className: "".concat(cssClasses.HANDLE, "-tooltip")
139
+ className: `${cssClasses.HANDLE}-tooltip`
140
140
  }, /*#__PURE__*/React.createElement("span", Object.assign({
141
141
  ref: this.minHanleEl,
142
142
  className: minClass,
143
143
  style: {
144
- [stylePos]: "".concat(minPercent * 100, "%"),
144
+ [stylePos]: `${minPercent * 100}%`,
145
145
  zIndex: chooseMovePos === 'min' ? 2 : 1,
146
146
  transform: transform[stylePos]
147
147
  },
@@ -188,12 +188,12 @@ export default class Slider extends BaseComponent {
188
188
  trigger: "custom",
189
189
  rePosKey: maxPercent,
190
190
  visible: isInRenderTree && (tipVisible.max || secondDotFocusVisible),
191
- className: "".concat(cssClasses.HANDLE, "-tooltip")
191
+ className: `${cssClasses.HANDLE}-tooltip`
192
192
  }, /*#__PURE__*/React.createElement("span", Object.assign({
193
193
  ref: this.maxHanleEl,
194
194
  className: maxClass,
195
195
  style: {
196
- [stylePos]: "".concat(maxPercent * 100, "%"),
196
+ [stylePos]: `${maxPercent * 100}%`,
197
197
  zIndex: chooseMovePos === 'max' ? 2 : 1,
198
198
  transform: transform[stylePos]
199
199
  },
@@ -248,11 +248,11 @@ export default class Slider extends BaseComponent {
248
248
  const minPercent = percentInfo.min;
249
249
  const maxPercent = percentInfo.max;
250
250
  let trackStyle = !vertical ? {
251
- width: range ? "".concat((maxPercent - minPercent) * 100, "%") : "".concat(minPercent * 100, "%"),
252
- left: range ? "".concat(minPercent * 100, "%") : 0
251
+ width: range ? `${(maxPercent - minPercent) * 100}%` : `${minPercent * 100}%`,
252
+ left: range ? `${minPercent * 100}%` : 0
253
253
  } : {
254
- height: range ? "".concat((maxPercent - minPercent) * 100, "%") : "".concat(minPercent * 100, "%"),
255
- top: range ? "".concat(minPercent * 100, "%") : 0
254
+ height: range ? `${(maxPercent - minPercent) * 100}%` : `${minPercent * 100}%`,
255
+ top: range ? `${minPercent * 100}%` : 0
256
256
  };
257
257
  trackStyle = included ? trackStyle : {};
258
258
  return (
@@ -278,8 +278,8 @@ export default class Slider extends BaseComponent {
278
278
  className: cssClasses.DOTS
279
279
  }, Object.keys(marks).map(mark => {
280
280
  const activeResult = this.foundation.isMarkActive(Number(mark));
281
- const markClass = cls("".concat(prefixCls, "-dot"), {
282
- ["".concat(prefixCls, "-dot-active")]: this.foundation.isMarkActive(Number(mark)) === 'active'
281
+ const markClass = cls(`${prefixCls}-dot`, {
282
+ [`${prefixCls}-dot-active`]: this.foundation.isMarkActive(Number(mark)) === 'active'
283
283
  });
284
284
  const markPercent = (Number(mark) - min) / (max - min);
285
285
  return activeResult ?
@@ -290,7 +290,7 @@ export default class Slider extends BaseComponent {
290
290
  onClick: this.foundation.handleWrapClick,
291
291
  className: markClass,
292
292
  style: {
293
- [stylePos]: "calc(".concat(markPercent * 100, "% - 2px)")
293
+ [stylePos]: `calc(${markPercent * 100}% - 2px)`
294
294
  }
295
295
  }) : null;
296
296
  })) : null;
@@ -316,9 +316,9 @@ export default class Slider extends BaseComponent {
316
316
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
317
317
  React.createElement("span", {
318
318
  key: mark,
319
- className: cls("".concat(prefixCls, "-mark").concat(vertical && verticalReverse ? '-reverse' : '')),
319
+ className: cls(`${prefixCls}-mark${vertical && verticalReverse ? '-reverse' : ''}`),
320
320
  style: {
321
- [stylePos]: "".concat(markPercent * 100, "%")
321
+ [stylePos]: `${markPercent * 100}%`
322
322
  },
323
323
  onClick: this.foundation.handleWrapClick
324
324
  }, marks[mark]) : null;
@@ -595,19 +595,19 @@ export default class Slider extends BaseComponent {
595
595
  range,
596
596
  className
597
597
  } = this.props;
598
- const wrapperClass = cls("".concat(prefixCls, "-wrapper"), {
599
- ["".concat(prefixCls, "-disabled")]: disabled,
600
- ["".concat(cssClasses.VERTICAL, "-wrapper")]: vertical,
601
- ["".concat(prefixCls, "-reverse")]: vertical && verticalReverse
598
+ const wrapperClass = cls(`${prefixCls}-wrapper`, {
599
+ [`${prefixCls}-disabled`]: disabled,
600
+ [`${cssClasses.VERTICAL}-wrapper`]: vertical,
601
+ [`${prefixCls}-reverse`]: vertical && verticalReverse
602
602
  }, className);
603
- const boundaryClass = cls("".concat(prefixCls, "-boundary"), {
604
- ["".concat(prefixCls, "-boundary-show")]: this.props.showBoundary && this.state.showBoundary
603
+ const boundaryClass = cls(`${prefixCls}-boundary`, {
604
+ [`${prefixCls}-boundary-show`]: this.props.showBoundary && this.state.showBoundary
605
605
  });
606
606
  const sliderCls = cls({
607
- ["".concat(prefixCls)]: !vertical,
607
+ [`${prefixCls}`]: !vertical,
608
608
  [cssClasses.VERTICAL]: vertical
609
609
  });
610
- const ariaLabel = range ? "Range: ".concat(this._getAriaValueText(currentValue[0], 0), " to ").concat(this._getAriaValueText(currentValue[1], 1)) : undefined;
610
+ const ariaLabel = range ? `Range: ${this._getAriaValueText(currentValue[0], 0)} to ${this._getAriaValueText(currentValue[1], 1)}` : undefined;
611
611
  const slider = /*#__PURE__*/React.createElement("div", {
612
612
  className: wrapperClass,
613
613
  style: style,
@@ -616,15 +616,15 @@ export default class Slider extends BaseComponent {
616
616
  onMouseEnter: () => this.foundation.handleWrapperEnter(),
617
617
  onMouseLeave: () => this.foundation.handleWrapperLeave()
618
618
  }, /*#__PURE__*/React.createElement("div", {
619
- className: "".concat(prefixCls, "-rail"),
619
+ className: `${prefixCls}-rail`,
620
620
  onClick: this.foundation.handleWrapClick,
621
621
  style: railStyle
622
622
  }), this.renderTrack(), this.renderStepDot(), /*#__PURE__*/React.createElement("div", null, this.renderHandle()), this.renderLabel(), /*#__PURE__*/React.createElement("div", {
623
623
  className: boundaryClass
624
624
  }, /*#__PURE__*/React.createElement("span", {
625
- className: "".concat(prefixCls, "-boundary-min")
625
+ className: `${prefixCls}-boundary-min`
626
626
  }, min), /*#__PURE__*/React.createElement("span", {
627
- className: "".concat(prefixCls, "-boundary-max")
627
+ className: `${prefixCls}-boundary-max`
628
628
  }, max)));
629
629
 
630
630
  if (!vertical) {
@@ -35,27 +35,27 @@ class Space extends PureComponent {
35
35
  if (_isString(spacing[0])) {
36
36
  spacingHorizontalType = spacing[0];
37
37
  } else if (_isNumber(spacing[0])) {
38
- realStyle.columnGap = "".concat(spacing[0], "px");
38
+ realStyle.columnGap = `${spacing[0]}px`;
39
39
  }
40
40
 
41
41
  if (_isString(spacing[1])) {
42
42
  spacingVerticalType = spacing[1];
43
43
  } else if (_isNumber(spacing[1])) {
44
- realStyle.rowGap = "".concat(spacing[1], "px");
44
+ realStyle.rowGap = `${spacing[1]}px`;
45
45
  }
46
46
  }
47
47
 
48
48
  const classNames = cls(prefixCls, className, {
49
- ["".concat(prefixCls, "-align-").concat(align)]: align,
50
- ["".concat(prefixCls, "-vertical")]: vertical,
51
- ["".concat(prefixCls, "-horizontal")]: !vertical,
52
- ["".concat(prefixCls, "-wrap")]: isWrap,
53
- ["".concat(prefixCls, "-tight-horizontal")]: spacingHorizontalType === strings.SPACING_TIGHT,
54
- ["".concat(prefixCls, "-tight-vertical")]: spacingVerticalType === strings.SPACING_TIGHT,
55
- ["".concat(prefixCls, "-medium-horizontal")]: spacingHorizontalType === strings.SPACING_MEDIUM,
56
- ["".concat(prefixCls, "-medium-vertical")]: spacingVerticalType === strings.SPACING_MEDIUM,
57
- ["".concat(prefixCls, "-loose-horizontal")]: spacingHorizontalType === strings.SPACING_LOOSE,
58
- ["".concat(prefixCls, "-loose-vertical")]: spacingVerticalType === strings.SPACING_LOOSE
49
+ [`${prefixCls}-align-${align}`]: align,
50
+ [`${prefixCls}-vertical`]: vertical,
51
+ [`${prefixCls}-horizontal`]: !vertical,
52
+ [`${prefixCls}-wrap`]: isWrap,
53
+ [`${prefixCls}-tight-horizontal`]: spacingHorizontalType === strings.SPACING_TIGHT,
54
+ [`${prefixCls}-tight-vertical`]: spacingVerticalType === strings.SPACING_TIGHT,
55
+ [`${prefixCls}-medium-horizontal`]: spacingHorizontalType === strings.SPACING_MEDIUM,
56
+ [`${prefixCls}-medium-vertical`]: spacingVerticalType === strings.SPACING_MEDIUM,
57
+ [`${prefixCls}-loose-horizontal`]: spacingHorizontalType === strings.SPACING_LOOSE,
58
+ [`${prefixCls}-loose-vertical`]: spacingVerticalType === strings.SPACING_LOOSE
59
59
  });
60
60
  const childrenNodes = flatten(children);
61
61
  return /*#__PURE__*/React.createElement("div", {