@douyinfe/semi-ui 2.30.0-alpha.0 → 2.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. package/dist/css/semi.css +29 -380
  2. package/dist/css/semi.min.css +1 -1
  3. package/dist/umd/semi-ui.js +2189 -2061
  4. package/dist/umd/semi-ui.js.map +1 -1
  5. package/dist/umd/semi-ui.min.js +1 -1
  6. package/dist/umd/semi-ui.min.js.map +1 -1
  7. package/lib/cjs/_portal/index.js +2 -2
  8. package/lib/cjs/_utils/index.js +3 -1
  9. package/lib/cjs/anchor/index.d.ts +1 -1
  10. package/lib/cjs/anchor/index.js +9 -9
  11. package/lib/cjs/anchor/link.js +8 -8
  12. package/lib/cjs/autoComplete/index.d.ts +1 -1
  13. package/lib/cjs/autoComplete/index.js +8 -4
  14. package/lib/cjs/autoComplete/option.js +7 -7
  15. package/lib/cjs/avatar/avatarGroup.js +7 -7
  16. package/lib/cjs/avatar/index.js +12 -12
  17. package/lib/cjs/badge/index.js +8 -8
  18. package/lib/cjs/banner/index.js +12 -12
  19. package/lib/cjs/breadcrumb/index.js +12 -12
  20. package/lib/cjs/breadcrumb/item.js +8 -8
  21. package/lib/cjs/button/Button.js +9 -9
  22. package/lib/cjs/button/buttonGroup.js +5 -5
  23. package/lib/cjs/button/splitButtonGroup.js +1 -1
  24. package/lib/cjs/calendar/dayCalendar.js +13 -13
  25. package/lib/cjs/calendar/dayCol.js +17 -17
  26. package/lib/cjs/calendar/monthCalendar.js +38 -38
  27. package/lib/cjs/calendar/rangeCalendar.js +27 -27
  28. package/lib/cjs/calendar/timeCol.js +6 -6
  29. package/lib/cjs/calendar/weekCalendar.js +27 -27
  30. package/lib/cjs/card/cardGroup.js +2 -2
  31. package/lib/cjs/card/index.js +16 -16
  32. package/lib/cjs/card/meta.js +5 -5
  33. package/lib/cjs/carousel/CarouselArrow.js +6 -6
  34. package/lib/cjs/carousel/CarouselIndicator.d.ts +1 -1
  35. package/lib/cjs/carousel/CarouselIndicator.js +6 -6
  36. package/lib/cjs/carousel/index.d.ts +2 -2
  37. package/lib/cjs/carousel/index.js +12 -12
  38. package/lib/cjs/cascader/index.d.ts +2 -0
  39. package/lib/cjs/cascader/index.js +44 -36
  40. package/lib/cjs/cascader/item.js +26 -26
  41. package/lib/cjs/checkbox/checkbox.js +14 -14
  42. package/lib/cjs/checkbox/checkboxGroup.js +4 -4
  43. package/lib/cjs/checkbox/checkboxInner.js +6 -6
  44. package/lib/cjs/collapse/item.js +9 -9
  45. package/lib/cjs/collapsible/index.js +3 -3
  46. package/lib/cjs/configProvider/index.js +1 -1
  47. package/lib/cjs/datePicker/dateInput.js +16 -16
  48. package/lib/cjs/datePicker/datePicker.d.ts +2 -2
  49. package/lib/cjs/datePicker/datePicker.js +9 -9
  50. package/lib/cjs/datePicker/footer.js +1 -1
  51. package/lib/cjs/datePicker/index.js +1 -1
  52. package/lib/cjs/datePicker/month.js +2 -2
  53. package/lib/cjs/datePicker/monthsGrid.d.ts +2 -2
  54. package/lib/cjs/datePicker/monthsGrid.js +27 -27
  55. package/lib/cjs/datePicker/navigation.js +1 -1
  56. package/lib/cjs/datePicker/quickControl.d.ts +1 -1
  57. package/lib/cjs/datePicker/quickControl.js +14 -14
  58. package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
  59. package/lib/cjs/datePicker/yearAndMonth.js +4 -4
  60. package/lib/cjs/descriptions/index.js +3 -3
  61. package/lib/cjs/descriptions/item.js +5 -5
  62. package/lib/cjs/divider/index.js +7 -7
  63. package/lib/cjs/dropdown/dropdownDivider.js +1 -1
  64. package/lib/cjs/dropdown/dropdownItem.js +7 -7
  65. package/lib/cjs/dropdown/dropdownMenu.js +1 -1
  66. package/lib/cjs/dropdown/dropdownTitle.js +2 -2
  67. package/lib/cjs/dropdown/index.d.ts +1 -1
  68. package/lib/cjs/dropdown/index.js +3 -3
  69. package/lib/cjs/empty/index.js +7 -7
  70. package/lib/cjs/form/arrayField.js +1 -1
  71. package/lib/cjs/form/baseForm.d.ts +4 -4
  72. package/lib/cjs/form/baseForm.js +2 -2
  73. package/lib/cjs/form/errorMessage.js +1 -1
  74. package/lib/cjs/form/field.d.ts +4 -4
  75. package/lib/cjs/form/group.js +6 -6
  76. package/lib/cjs/form/hoc/withField.js +16 -16
  77. package/lib/cjs/form/label.js +9 -9
  78. package/lib/cjs/form/slot.js +5 -5
  79. package/lib/cjs/grid/col.js +11 -11
  80. package/lib/cjs/grid/row.js +4 -4
  81. package/lib/cjs/highlight/index.js +1 -1
  82. package/lib/cjs/iconButton/index.js +5 -5
  83. package/lib/cjs/image/image.js +10 -10
  84. package/lib/cjs/image/preview.js +3 -3
  85. package/lib/cjs/image/previewFooter.js +12 -12
  86. package/lib/cjs/image/previewHeader.js +3 -3
  87. package/lib/cjs/image/previewImage.js +7 -7
  88. package/lib/cjs/image/previewInner.js +7 -7
  89. package/lib/cjs/input/index.js +38 -38
  90. package/lib/cjs/input/inputGroup.js +7 -7
  91. package/lib/cjs/input/textarea.js +14 -14
  92. package/lib/cjs/inputNumber/index.js +11 -11
  93. package/lib/cjs/layout/Sider.js +3 -3
  94. package/lib/cjs/layout/index.js +2 -2
  95. package/lib/cjs/list/index.js +11 -11
  96. package/lib/cjs/list/item.js +6 -6
  97. package/lib/cjs/locale/source/ar.js +5 -5
  98. package/lib/cjs/locale/source/de.js +5 -5
  99. package/lib/cjs/locale/source/en_GB.js +5 -5
  100. package/lib/cjs/locale/source/en_US.js +4 -4
  101. package/lib/cjs/locale/source/es.js +5 -5
  102. package/lib/cjs/locale/source/fr.js +5 -5
  103. package/lib/cjs/locale/source/id_ID.js +4 -4
  104. package/lib/cjs/locale/source/it.js +5 -5
  105. package/lib/cjs/locale/source/ja_JP.js +5 -5
  106. package/lib/cjs/locale/source/ko_KR.js +4 -4
  107. package/lib/cjs/locale/source/ms_MY.js +4 -4
  108. package/lib/cjs/locale/source/nl_NL.d.ts +1 -1
  109. package/lib/cjs/locale/source/nl_NL.js +6 -6
  110. package/lib/cjs/locale/source/pl_PL.js +4 -4
  111. package/lib/cjs/locale/source/pt_BR.js +5 -5
  112. package/lib/cjs/locale/source/ro.d.ts +13 -0
  113. package/lib/cjs/locale/source/ro.js +17 -4
  114. package/lib/cjs/locale/source/ru_RU.js +4 -4
  115. package/lib/cjs/locale/source/sv_SE.js +4 -4
  116. package/lib/cjs/locale/source/th_TH.js +5 -5
  117. package/lib/cjs/locale/source/tr_TR.js +5 -5
  118. package/lib/cjs/locale/source/vi_VN.js +5 -5
  119. package/lib/cjs/locale/source/zh_CN.js +4 -4
  120. package/lib/cjs/locale/source/zh_TW.js +4 -4
  121. package/lib/cjs/modal/ConfirmModal.js +7 -7
  122. package/lib/cjs/modal/Modal.js +4 -4
  123. package/lib/cjs/modal/ModalContent.js +24 -24
  124. package/lib/cjs/modal/confirm.js +9 -0
  125. package/lib/cjs/modal/useModal/index.js +1 -1
  126. package/lib/cjs/navigation/CollapseButton.js +1 -1
  127. package/lib/cjs/navigation/Footer.js +2 -2
  128. package/lib/cjs/navigation/Header.js +5 -5
  129. package/lib/cjs/navigation/Item.js +16 -16
  130. package/lib/cjs/navigation/SubNav.js +14 -14
  131. package/lib/cjs/navigation/index.js +8 -8
  132. package/lib/cjs/notification/index.js +3 -3
  133. package/lib/cjs/notification/notice.js +12 -12
  134. package/lib/cjs/overflowList/index.d.ts +1 -1
  135. package/lib/cjs/overflowList/index.js +6 -6
  136. package/lib/cjs/pagination/index.js +24 -24
  137. package/lib/cjs/popconfirm/index.d.ts +11 -7
  138. package/lib/cjs/popconfirm/index.js +97 -60
  139. package/lib/cjs/popover/index.d.ts +8 -2
  140. package/lib/cjs/popover/index.js +17 -5
  141. package/lib/cjs/progress/index.js +14 -14
  142. package/lib/cjs/radio/radio.d.ts +1 -1
  143. package/lib/cjs/radio/radio.js +22 -22
  144. package/lib/cjs/radio/radioGroup.d.ts +1 -1
  145. package/lib/cjs/radio/radioGroup.js +5 -5
  146. package/lib/cjs/radio/radioInner.js +7 -7
  147. package/lib/cjs/rating/index.js +5 -5
  148. package/lib/cjs/rating/item.js +11 -11
  149. package/lib/cjs/scrollList/index.js +5 -5
  150. package/lib/cjs/scrollList/scrollItem.js +13 -13
  151. package/lib/cjs/select/index.d.ts +1 -1
  152. package/lib/cjs/select/index.js +61 -61
  153. package/lib/cjs/select/option.js +7 -7
  154. package/lib/cjs/sideSheet/SideSheetContent.js +10 -10
  155. package/lib/cjs/sideSheet/index.js +7 -7
  156. package/lib/cjs/skeleton/index.js +1 -1
  157. package/lib/cjs/skeleton/item.js +4 -4
  158. package/lib/cjs/slider/index.js +28 -28
  159. package/lib/cjs/space/index.js +12 -12
  160. package/lib/cjs/spin/icon.js +2 -2
  161. package/lib/cjs/spin/index.js +6 -6
  162. package/lib/cjs/steps/basicStep.d.ts +0 -2
  163. package/lib/cjs/steps/basicStep.js +15 -20
  164. package/lib/cjs/steps/basicSteps.js +6 -6
  165. package/lib/cjs/steps/fillStep.d.ts +0 -1
  166. package/lib/cjs/steps/fillStep.js +10 -11
  167. package/lib/cjs/steps/fillSteps.js +5 -4
  168. package/lib/cjs/steps/index.d.ts +1 -4
  169. package/lib/cjs/steps/navStep.d.ts +0 -3
  170. package/lib/cjs/steps/navStep.js +8 -26
  171. package/lib/cjs/steps/navSteps.js +2 -2
  172. package/lib/cjs/steps/step.d.ts +1 -5
  173. package/lib/cjs/steps/step.js +3 -3
  174. package/lib/cjs/table/Body/BaseRow.js +5 -5
  175. package/lib/cjs/table/Body/ExpandedRow.js +3 -3
  176. package/lib/cjs/table/Body/SectionRow.js +1 -1
  177. package/lib/cjs/table/Body/index.js +8 -8
  178. package/lib/cjs/table/ColGroup.js +2 -2
  179. package/lib/cjs/table/ColumnFilter.js +3 -3
  180. package/lib/cjs/table/ColumnSelection.js +2 -2
  181. package/lib/cjs/table/ColumnSorter.js +7 -7
  182. package/lib/cjs/table/CustomExpandIcon.js +2 -2
  183. package/lib/cjs/table/HeadTable.js +3 -3
  184. package/lib/cjs/table/Table.d.ts +2 -2
  185. package/lib/cjs/table/Table.js +20 -20
  186. package/lib/cjs/table/TableCell.js +8 -8
  187. package/lib/cjs/table/TableHeader.js +1 -1
  188. package/lib/cjs/table/TableHeaderRow.js +8 -8
  189. package/lib/cjs/table/TablePagination.js +3 -3
  190. package/lib/cjs/tabs/TabBar.js +12 -12
  191. package/lib/cjs/tabs/TabItem.js +7 -7
  192. package/lib/cjs/tabs/TabPane.js +3 -3
  193. package/lib/cjs/tabs/index.js +2 -2
  194. package/lib/cjs/tag/group.js +5 -5
  195. package/lib/cjs/tag/index.js +13 -13
  196. package/lib/cjs/tagInput/index.js +33 -33
  197. package/lib/cjs/timePicker/Combobox.js +4 -4
  198. package/lib/cjs/timePicker/TimeInput.js +4 -4
  199. package/lib/cjs/timePicker/TimePicker.js +8 -8
  200. package/lib/cjs/timeline/index.js +8 -8
  201. package/lib/cjs/timeline/item.js +7 -7
  202. package/lib/cjs/toast/index.js +5 -5
  203. package/lib/cjs/toast/toast.js +9 -9
  204. package/lib/cjs/tooltip/index.d.ts +8 -4
  205. package/lib/cjs/tooltip/index.js +17 -7
  206. package/lib/cjs/transfer/index.js +31 -31
  207. package/lib/cjs/tree/autoSizer.js +1 -1
  208. package/lib/cjs/tree/index.js +6 -6
  209. package/lib/cjs/tree/nodeList.js +1 -1
  210. package/lib/cjs/tree/treeNode.js +26 -26
  211. package/lib/cjs/treeSelect/index.d.ts +2 -1
  212. package/lib/cjs/treeSelect/index.js +63 -51
  213. package/lib/cjs/typography/base.js +14 -14
  214. package/lib/cjs/typography/copyable.js +3 -3
  215. package/lib/cjs/typography/numeral.d.ts +1 -1
  216. package/lib/cjs/typography/paragraph.js +1 -1
  217. package/lib/cjs/typography/title.d.ts +1 -1
  218. package/lib/cjs/typography/title.js +1 -1
  219. package/lib/cjs/typography/util.js +1 -1
  220. package/lib/cjs/upload/fileCard.js +32 -32
  221. package/lib/cjs/upload/index.js +37 -37
  222. package/lib/es/_portal/index.js +2 -2
  223. package/lib/es/_utils/index.js +3 -1
  224. package/lib/es/anchor/index.d.ts +1 -1
  225. package/lib/es/anchor/index.js +9 -9
  226. package/lib/es/anchor/link.js +8 -8
  227. package/lib/es/autoComplete/index.d.ts +1 -1
  228. package/lib/es/autoComplete/index.js +8 -4
  229. package/lib/es/autoComplete/option.js +7 -7
  230. package/lib/es/avatar/avatarGroup.js +7 -7
  231. package/lib/es/avatar/index.js +12 -12
  232. package/lib/es/badge/index.js +8 -8
  233. package/lib/es/banner/index.js +12 -12
  234. package/lib/es/breadcrumb/index.js +12 -12
  235. package/lib/es/breadcrumb/item.js +8 -8
  236. package/lib/es/button/Button.js +9 -9
  237. package/lib/es/button/buttonGroup.js +5 -5
  238. package/lib/es/button/splitButtonGroup.js +1 -1
  239. package/lib/es/calendar/dayCalendar.js +13 -13
  240. package/lib/es/calendar/dayCol.js +17 -17
  241. package/lib/es/calendar/monthCalendar.js +38 -38
  242. package/lib/es/calendar/rangeCalendar.js +27 -27
  243. package/lib/es/calendar/timeCol.js +6 -6
  244. package/lib/es/calendar/weekCalendar.js +27 -27
  245. package/lib/es/card/cardGroup.js +2 -2
  246. package/lib/es/card/index.js +16 -16
  247. package/lib/es/card/meta.js +5 -5
  248. package/lib/es/carousel/CarouselArrow.js +6 -6
  249. package/lib/es/carousel/CarouselIndicator.d.ts +1 -1
  250. package/lib/es/carousel/CarouselIndicator.js +6 -6
  251. package/lib/es/carousel/index.d.ts +2 -2
  252. package/lib/es/carousel/index.js +12 -12
  253. package/lib/es/cascader/index.d.ts +2 -0
  254. package/lib/es/cascader/index.js +44 -36
  255. package/lib/es/cascader/item.js +26 -26
  256. package/lib/es/checkbox/checkbox.js +14 -14
  257. package/lib/es/checkbox/checkboxGroup.js +4 -4
  258. package/lib/es/checkbox/checkboxInner.js +6 -6
  259. package/lib/es/collapse/item.js +9 -9
  260. package/lib/es/collapsible/index.js +3 -3
  261. package/lib/es/configProvider/index.js +1 -1
  262. package/lib/es/datePicker/dateInput.js +16 -16
  263. package/lib/es/datePicker/datePicker.d.ts +2 -2
  264. package/lib/es/datePicker/datePicker.js +9 -9
  265. package/lib/es/datePicker/footer.js +1 -1
  266. package/lib/es/datePicker/index.js +1 -1
  267. package/lib/es/datePicker/month.js +2 -2
  268. package/lib/es/datePicker/monthsGrid.d.ts +2 -2
  269. package/lib/es/datePicker/monthsGrid.js +27 -27
  270. package/lib/es/datePicker/navigation.js +1 -1
  271. package/lib/es/datePicker/quickControl.d.ts +1 -1
  272. package/lib/es/datePicker/quickControl.js +14 -14
  273. package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
  274. package/lib/es/datePicker/yearAndMonth.js +4 -4
  275. package/lib/es/descriptions/index.js +3 -3
  276. package/lib/es/descriptions/item.js +5 -5
  277. package/lib/es/divider/index.js +7 -7
  278. package/lib/es/dropdown/dropdownDivider.js +1 -1
  279. package/lib/es/dropdown/dropdownItem.js +7 -7
  280. package/lib/es/dropdown/dropdownMenu.js +1 -1
  281. package/lib/es/dropdown/dropdownTitle.js +2 -2
  282. package/lib/es/dropdown/index.d.ts +1 -1
  283. package/lib/es/dropdown/index.js +3 -3
  284. package/lib/es/empty/index.js +7 -7
  285. package/lib/es/form/arrayField.js +1 -1
  286. package/lib/es/form/baseForm.d.ts +4 -4
  287. package/lib/es/form/baseForm.js +2 -2
  288. package/lib/es/form/errorMessage.js +1 -1
  289. package/lib/es/form/field.d.ts +4 -4
  290. package/lib/es/form/group.js +6 -6
  291. package/lib/es/form/hoc/withField.js +16 -16
  292. package/lib/es/form/label.js +9 -9
  293. package/lib/es/form/slot.js +5 -5
  294. package/lib/es/grid/col.js +11 -11
  295. package/lib/es/grid/row.js +4 -4
  296. package/lib/es/highlight/index.js +1 -1
  297. package/lib/es/iconButton/index.js +5 -5
  298. package/lib/es/image/image.js +10 -10
  299. package/lib/es/image/preview.js +3 -3
  300. package/lib/es/image/previewFooter.js +12 -12
  301. package/lib/es/image/previewHeader.js +3 -3
  302. package/lib/es/image/previewImage.js +7 -7
  303. package/lib/es/image/previewInner.js +7 -7
  304. package/lib/es/input/index.js +38 -38
  305. package/lib/es/input/inputGroup.js +7 -7
  306. package/lib/es/input/textarea.js +14 -14
  307. package/lib/es/inputNumber/index.js +11 -11
  308. package/lib/es/layout/Sider.js +3 -3
  309. package/lib/es/layout/index.js +2 -2
  310. package/lib/es/list/index.js +11 -11
  311. package/lib/es/list/item.js +6 -6
  312. package/lib/es/locale/source/ar.js +5 -5
  313. package/lib/es/locale/source/de.js +5 -5
  314. package/lib/es/locale/source/en_GB.js +5 -5
  315. package/lib/es/locale/source/en_US.js +4 -4
  316. package/lib/es/locale/source/es.js +5 -5
  317. package/lib/es/locale/source/fr.js +5 -5
  318. package/lib/es/locale/source/id_ID.js +4 -4
  319. package/lib/es/locale/source/it.js +5 -5
  320. package/lib/es/locale/source/ja_JP.js +5 -5
  321. package/lib/es/locale/source/ko_KR.js +4 -4
  322. package/lib/es/locale/source/ms_MY.js +4 -4
  323. package/lib/es/locale/source/nl_NL.d.ts +1 -1
  324. package/lib/es/locale/source/nl_NL.js +6 -6
  325. package/lib/es/locale/source/pl_PL.js +4 -4
  326. package/lib/es/locale/source/pt_BR.js +5 -5
  327. package/lib/es/locale/source/ro.d.ts +13 -0
  328. package/lib/es/locale/source/ro.js +17 -4
  329. package/lib/es/locale/source/ru_RU.js +4 -4
  330. package/lib/es/locale/source/sv_SE.js +4 -4
  331. package/lib/es/locale/source/th_TH.js +5 -5
  332. package/lib/es/locale/source/tr_TR.js +5 -5
  333. package/lib/es/locale/source/vi_VN.js +5 -5
  334. package/lib/es/locale/source/zh_CN.js +4 -4
  335. package/lib/es/locale/source/zh_TW.js +4 -4
  336. package/lib/es/modal/ConfirmModal.js +7 -7
  337. package/lib/es/modal/Modal.js +4 -4
  338. package/lib/es/modal/ModalContent.js +24 -24
  339. package/lib/es/modal/confirm.js +9 -0
  340. package/lib/es/modal/useModal/index.js +1 -1
  341. package/lib/es/navigation/CollapseButton.js +1 -1
  342. package/lib/es/navigation/Footer.js +2 -2
  343. package/lib/es/navigation/Header.js +5 -5
  344. package/lib/es/navigation/Item.js +16 -16
  345. package/lib/es/navigation/SubNav.js +14 -14
  346. package/lib/es/navigation/index.js +8 -8
  347. package/lib/es/notification/index.js +3 -3
  348. package/lib/es/notification/notice.js +12 -12
  349. package/lib/es/overflowList/index.d.ts +1 -1
  350. package/lib/es/overflowList/index.js +6 -6
  351. package/lib/es/pagination/index.js +24 -24
  352. package/lib/es/popconfirm/index.d.ts +11 -7
  353. package/lib/es/popconfirm/index.js +95 -60
  354. package/lib/es/popover/index.d.ts +8 -2
  355. package/lib/es/popover/index.js +17 -5
  356. package/lib/es/progress/index.js +14 -14
  357. package/lib/es/radio/radio.d.ts +1 -1
  358. package/lib/es/radio/radio.js +22 -22
  359. package/lib/es/radio/radioGroup.d.ts +1 -1
  360. package/lib/es/radio/radioGroup.js +5 -5
  361. package/lib/es/radio/radioInner.js +7 -7
  362. package/lib/es/rating/index.js +5 -5
  363. package/lib/es/rating/item.js +11 -11
  364. package/lib/es/scrollList/index.js +5 -5
  365. package/lib/es/scrollList/scrollItem.js +13 -13
  366. package/lib/es/select/index.d.ts +1 -1
  367. package/lib/es/select/index.js +61 -61
  368. package/lib/es/select/option.js +7 -7
  369. package/lib/es/sideSheet/SideSheetContent.js +10 -10
  370. package/lib/es/sideSheet/index.js +7 -7
  371. package/lib/es/skeleton/index.js +1 -1
  372. package/lib/es/skeleton/item.js +4 -4
  373. package/lib/es/slider/index.js +28 -28
  374. package/lib/es/space/index.js +12 -12
  375. package/lib/es/spin/icon.js +2 -2
  376. package/lib/es/spin/index.js +6 -6
  377. package/lib/es/steps/basicStep.d.ts +0 -2
  378. package/lib/es/steps/basicStep.js +15 -20
  379. package/lib/es/steps/basicSteps.js +6 -6
  380. package/lib/es/steps/fillStep.d.ts +0 -1
  381. package/lib/es/steps/fillStep.js +10 -11
  382. package/lib/es/steps/fillSteps.js +5 -4
  383. package/lib/es/steps/index.d.ts +1 -4
  384. package/lib/es/steps/navStep.d.ts +0 -3
  385. package/lib/es/steps/navStep.js +8 -21
  386. package/lib/es/steps/navSteps.js +2 -2
  387. package/lib/es/steps/step.d.ts +1 -5
  388. package/lib/es/steps/step.js +3 -3
  389. package/lib/es/table/Body/BaseRow.js +5 -5
  390. package/lib/es/table/Body/ExpandedRow.js +3 -3
  391. package/lib/es/table/Body/SectionRow.js +1 -1
  392. package/lib/es/table/Body/index.js +8 -8
  393. package/lib/es/table/ColGroup.js +2 -2
  394. package/lib/es/table/ColumnFilter.js +3 -3
  395. package/lib/es/table/ColumnSelection.js +2 -2
  396. package/lib/es/table/ColumnSorter.js +7 -7
  397. package/lib/es/table/CustomExpandIcon.js +2 -2
  398. package/lib/es/table/HeadTable.js +3 -3
  399. package/lib/es/table/Table.d.ts +2 -2
  400. package/lib/es/table/Table.js +20 -20
  401. package/lib/es/table/TableCell.js +8 -8
  402. package/lib/es/table/TableHeader.js +1 -1
  403. package/lib/es/table/TableHeaderRow.js +8 -8
  404. package/lib/es/table/TablePagination.js +3 -3
  405. package/lib/es/tabs/TabBar.js +12 -12
  406. package/lib/es/tabs/TabItem.js +7 -7
  407. package/lib/es/tabs/TabPane.js +3 -3
  408. package/lib/es/tabs/index.js +2 -2
  409. package/lib/es/tag/group.js +5 -5
  410. package/lib/es/tag/index.js +13 -13
  411. package/lib/es/tagInput/index.js +33 -33
  412. package/lib/es/timePicker/Combobox.js +4 -4
  413. package/lib/es/timePicker/TimeInput.js +4 -4
  414. package/lib/es/timePicker/TimePicker.js +8 -8
  415. package/lib/es/timeline/index.js +8 -8
  416. package/lib/es/timeline/item.js +7 -7
  417. package/lib/es/toast/index.js +5 -5
  418. package/lib/es/toast/toast.js +9 -9
  419. package/lib/es/tooltip/index.d.ts +8 -4
  420. package/lib/es/tooltip/index.js +17 -7
  421. package/lib/es/transfer/index.js +31 -31
  422. package/lib/es/tree/autoSizer.js +1 -1
  423. package/lib/es/tree/index.js +6 -6
  424. package/lib/es/tree/nodeList.js +1 -1
  425. package/lib/es/tree/treeNode.js +26 -26
  426. package/lib/es/treeSelect/index.d.ts +2 -1
  427. package/lib/es/treeSelect/index.js +63 -51
  428. package/lib/es/typography/base.js +14 -14
  429. package/lib/es/typography/copyable.js +3 -3
  430. package/lib/es/typography/numeral.d.ts +1 -1
  431. package/lib/es/typography/paragraph.js +1 -1
  432. package/lib/es/typography/title.d.ts +1 -1
  433. package/lib/es/typography/title.js +1 -1
  434. package/lib/es/typography/util.js +1 -1
  435. package/lib/es/upload/fileCard.js +32 -32
  436. package/lib/es/upload/index.js +37 -37
  437. package/package.json +9 -9
@@ -74,10 +74,10 @@ class Slider extends _baseComponent.default {
74
74
  tipChildren
75
75
  } = this.foundation.computeHandleVisibleVal(tooltipVisible && isInRenderTree, tipFormatter, range);
76
76
  const minClass = (0, _classnames.default)(_constants.cssClasses.HANDLE, {
77
- ["".concat(_constants.cssClasses.HANDLE, "-clicked")]: chooseMovePos === 'min' && isDrag
77
+ [`${_constants.cssClasses.HANDLE}-clicked`]: chooseMovePos === 'min' && isDrag
78
78
  });
79
79
  const maxClass = (0, _classnames.default)(_constants.cssClasses.HANDLE, {
80
- ["".concat(_constants.cssClasses.HANDLE, "-clicked")]: chooseMovePos === 'max' && isDrag
80
+ [`${_constants.cssClasses.HANDLE}-clicked`]: chooseMovePos === 'max' && isDrag
81
81
  });
82
82
  const {
83
83
  min,
@@ -98,13 +98,13 @@ class Slider extends _baseComponent.default {
98
98
  trigger: "custom",
99
99
  rePosKey: minPercent,
100
100
  visible: isInRenderTree && (tipVisible.min || firstDotFocusVisible),
101
- className: "".concat(_constants.cssClasses.HANDLE, "-tooltip")
101
+ className: `${_constants.cssClasses.HANDLE}-tooltip`
102
102
  }, /*#__PURE__*/_react.default.createElement("span", Object.assign({
103
103
  onMouseOver: this.foundation.checkAndUpdateIsInRenderTreeState,
104
104
  ref: this.minHanleEl,
105
105
  className: minClass,
106
106
  style: {
107
- [stylePos]: "".concat(minPercent * 100, "%"),
107
+ [stylePos]: `${minPercent * 100}%`,
108
108
  zIndex: chooseMovePos === 'min' && isDrag ? 2 : 1
109
109
  },
110
110
  onMouseDown: e => {
@@ -150,12 +150,12 @@ class Slider extends _baseComponent.default {
150
150
  trigger: "custom",
151
151
  rePosKey: minPercent,
152
152
  visible: isInRenderTree && (tipVisible.min || firstDotFocusVisible),
153
- className: "".concat(_constants.cssClasses.HANDLE, "-tooltip")
153
+ className: `${_constants.cssClasses.HANDLE}-tooltip`
154
154
  }, /*#__PURE__*/_react.default.createElement("span", Object.assign({
155
155
  ref: this.minHanleEl,
156
156
  className: minClass,
157
157
  style: {
158
- [stylePos]: "".concat(minPercent * 100, "%"),
158
+ [stylePos]: `${minPercent * 100}%`,
159
159
  zIndex: chooseMovePos === 'min' ? 2 : 1
160
160
  },
161
161
  onMouseDown: e => {
@@ -201,12 +201,12 @@ class Slider extends _baseComponent.default {
201
201
  trigger: "custom",
202
202
  rePosKey: maxPercent,
203
203
  visible: isInRenderTree && (tipVisible.max || secondDotFocusVisible),
204
- className: "".concat(_constants.cssClasses.HANDLE, "-tooltip")
204
+ className: `${_constants.cssClasses.HANDLE}-tooltip`
205
205
  }, /*#__PURE__*/_react.default.createElement("span", Object.assign({
206
206
  ref: this.maxHanleEl,
207
207
  className: maxClass,
208
208
  style: {
209
- [stylePos]: "".concat(maxPercent * 100, "%"),
209
+ [stylePos]: `${maxPercent * 100}%`,
210
210
  zIndex: chooseMovePos === 'max' ? 2 : 1
211
211
  },
212
212
  onMouseDown: e => {
@@ -260,11 +260,11 @@ class Slider extends _baseComponent.default {
260
260
  const minPercent = percentInfo.min;
261
261
  const maxPercent = percentInfo.max;
262
262
  let trackStyle = !vertical ? {
263
- width: range ? "".concat((maxPercent - minPercent) * 100, "%") : "".concat(minPercent * 100, "%"),
264
- left: range ? "".concat(minPercent * 100, "%") : 0
263
+ width: range ? `${(maxPercent - minPercent) * 100}%` : `${minPercent * 100}%`,
264
+ left: range ? `${minPercent * 100}%` : 0
265
265
  } : {
266
- height: range ? "".concat((maxPercent - minPercent) * 100, "%") : "".concat(minPercent * 100, "%"),
267
- top: range ? "".concat(minPercent * 100, "%") : 0
266
+ height: range ? `${(maxPercent - minPercent) * 100}%` : `${minPercent * 100}%`,
267
+ top: range ? `${minPercent * 100}%` : 0
268
268
  };
269
269
  trackStyle = included ? trackStyle : {};
270
270
  return (
@@ -290,8 +290,8 @@ class Slider extends _baseComponent.default {
290
290
  className: _constants.cssClasses.DOTS
291
291
  }, Object.keys(marks).map(mark => {
292
292
  const activeResult = this.foundation.isMarkActive(Number(mark));
293
- const markClass = (0, _classnames.default)("".concat(prefixCls, "-dot"), {
294
- ["".concat(prefixCls, "-dot-active")]: this.foundation.isMarkActive(Number(mark)) === 'active'
293
+ const markClass = (0, _classnames.default)(`${prefixCls}-dot`, {
294
+ [`${prefixCls}-dot-active`]: this.foundation.isMarkActive(Number(mark)) === 'active'
295
295
  });
296
296
  const markPercent = (Number(mark) - min) / (max - min);
297
297
  return activeResult ?
@@ -302,7 +302,7 @@ class Slider extends _baseComponent.default {
302
302
  onClick: this.foundation.handleWrapClick,
303
303
  className: markClass,
304
304
  style: {
305
- [stylePos]: "calc(".concat(markPercent * 100, "% - 2px)")
305
+ [stylePos]: `calc(${markPercent * 100}% - 2px)`
306
306
  }
307
307
  }) : null;
308
308
  })) : null;
@@ -328,9 +328,9 @@ class Slider extends _baseComponent.default {
328
328
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
329
329
  _react.default.createElement("span", {
330
330
  key: mark,
331
- className: (0, _classnames.default)("".concat(prefixCls, "-mark").concat(vertical && verticalReverse ? '-reverse' : '')),
331
+ className: (0, _classnames.default)(`${prefixCls}-mark${vertical && verticalReverse ? '-reverse' : ''}`),
332
332
  style: {
333
- [stylePos]: "".concat(markPercent * 100, "%")
333
+ [stylePos]: `${markPercent * 100}%`
334
334
  },
335
335
  onClick: this.foundation.handleWrapClick
336
336
  }, marks[mark]) : null;
@@ -608,19 +608,19 @@ class Slider extends _baseComponent.default {
608
608
  range,
609
609
  className
610
610
  } = this.props;
611
- const wrapperClass = (0, _classnames.default)("".concat(prefixCls, "-wrapper"), {
612
- ["".concat(prefixCls, "-disabled")]: disabled,
613
- ["".concat(_constants.cssClasses.VERTICAL, "-wrapper")]: vertical,
614
- ["".concat(prefixCls, "-reverse")]: vertical && verticalReverse
611
+ const wrapperClass = (0, _classnames.default)(`${prefixCls}-wrapper`, {
612
+ [`${prefixCls}-disabled`]: disabled,
613
+ [`${_constants.cssClasses.VERTICAL}-wrapper`]: vertical,
614
+ [`${prefixCls}-reverse`]: vertical && verticalReverse
615
615
  }, className);
616
- const boundaryClass = (0, _classnames.default)("".concat(prefixCls, "-boundary"), {
617
- ["".concat(prefixCls, "-boundary-show")]: this.props.showBoundary && this.state.showBoundary
616
+ const boundaryClass = (0, _classnames.default)(`${prefixCls}-boundary`, {
617
+ [`${prefixCls}-boundary-show`]: this.props.showBoundary && this.state.showBoundary
618
618
  });
619
619
  const sliderCls = (0, _classnames.default)({
620
- ["".concat(prefixCls)]: !vertical,
620
+ [`${prefixCls}`]: !vertical,
621
621
  [_constants.cssClasses.VERTICAL]: vertical
622
622
  });
623
- const ariaLabel = range ? "Range: ".concat(this._getAriaValueText(currentValue[0], 0), " to ").concat(this._getAriaValueText(currentValue[1], 1)) : undefined;
623
+ const ariaLabel = range ? `Range: ${this._getAriaValueText(currentValue[0], 0)} to ${this._getAriaValueText(currentValue[1], 1)}` : undefined;
624
624
 
625
625
  const slider = /*#__PURE__*/_react.default.createElement("div", {
626
626
  className: wrapperClass,
@@ -630,15 +630,15 @@ class Slider extends _baseComponent.default {
630
630
  onMouseEnter: () => this.foundation.handleWrapperEnter(),
631
631
  onMouseLeave: () => this.foundation.handleWrapperLeave()
632
632
  }, /*#__PURE__*/_react.default.createElement("div", {
633
- className: "".concat(prefixCls, "-rail"),
633
+ className: `${prefixCls}-rail`,
634
634
  onClick: this.foundation.handleWrapClick,
635
635
  style: railStyle
636
636
  }), this.renderTrack(), this.renderStepDot(), /*#__PURE__*/_react.default.createElement("div", null, this.renderHandle()), this.renderLabel(), /*#__PURE__*/_react.default.createElement("div", {
637
637
  className: boundaryClass
638
638
  }, /*#__PURE__*/_react.default.createElement("span", {
639
- className: "".concat(prefixCls, "-boundary-min")
639
+ className: `${prefixCls}-boundary-min`
640
640
  }, min), /*#__PURE__*/_react.default.createElement("span", {
641
- className: "".concat(prefixCls, "-boundary-max")
641
+ className: `${prefixCls}-boundary-max`
642
642
  }, max)));
643
643
 
644
644
  if (!vertical) {
@@ -57,27 +57,27 @@ class Space extends _react.PureComponent {
57
57
  if ((0, _isString2.default)(spacing[0])) {
58
58
  spacingHorizontalType = spacing[0];
59
59
  } else if ((0, _isNumber2.default)(spacing[0])) {
60
- realStyle.columnGap = "".concat(spacing[0], "px");
60
+ realStyle.columnGap = `${spacing[0]}px`;
61
61
  }
62
62
 
63
63
  if ((0, _isString2.default)(spacing[1])) {
64
64
  spacingVerticalType = spacing[1];
65
65
  } else if ((0, _isNumber2.default)(spacing[1])) {
66
- realStyle.rowGap = "".concat(spacing[1], "px");
66
+ realStyle.rowGap = `${spacing[1]}px`;
67
67
  }
68
68
  }
69
69
 
70
70
  const classNames = (0, _classnames.default)(prefixCls, className, {
71
- ["".concat(prefixCls, "-align-").concat(align)]: align,
72
- ["".concat(prefixCls, "-vertical")]: vertical,
73
- ["".concat(prefixCls, "-horizontal")]: !vertical,
74
- ["".concat(prefixCls, "-wrap")]: isWrap,
75
- ["".concat(prefixCls, "-tight-horizontal")]: spacingHorizontalType === _constants.strings.SPACING_TIGHT,
76
- ["".concat(prefixCls, "-tight-vertical")]: spacingVerticalType === _constants.strings.SPACING_TIGHT,
77
- ["".concat(prefixCls, "-medium-horizontal")]: spacingHorizontalType === _constants.strings.SPACING_MEDIUM,
78
- ["".concat(prefixCls, "-medium-vertical")]: spacingVerticalType === _constants.strings.SPACING_MEDIUM,
79
- ["".concat(prefixCls, "-loose-horizontal")]: spacingHorizontalType === _constants.strings.SPACING_LOOSE,
80
- ["".concat(prefixCls, "-loose-vertical")]: spacingVerticalType === _constants.strings.SPACING_LOOSE
71
+ [`${prefixCls}-align-${align}`]: align,
72
+ [`${prefixCls}-vertical`]: vertical,
73
+ [`${prefixCls}-horizontal`]: !vertical,
74
+ [`${prefixCls}-wrap`]: isWrap,
75
+ [`${prefixCls}-tight-horizontal`]: spacingHorizontalType === _constants.strings.SPACING_TIGHT,
76
+ [`${prefixCls}-tight-vertical`]: spacingVerticalType === _constants.strings.SPACING_TIGHT,
77
+ [`${prefixCls}-medium-horizontal`]: spacingHorizontalType === _constants.strings.SPACING_MEDIUM,
78
+ [`${prefixCls}-medium-vertical`]: spacingVerticalType === _constants.strings.SPACING_MEDIUM,
79
+ [`${prefixCls}-loose-horizontal`]: spacingHorizontalType === _constants.strings.SPACING_LOOSE,
80
+ [`${prefixCls}-loose-vertical`]: spacingVerticalType === _constants.strings.SPACING_LOOSE
81
81
  });
82
82
  const childrenNodes = (0, _utils.flatten)(children);
83
83
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -42,7 +42,7 @@ function Icon() {
42
42
  _propsId = _id;
43
43
  }
44
44
 
45
- const id = "linearGradient-".concat(_propsId);
45
+ const id = `linearGradient-${_propsId}`;
46
46
  return /*#__PURE__*/_react.default.createElement("svg", Object.assign({}, rest, {
47
47
  className: className,
48
48
  width: "48",
@@ -83,7 +83,7 @@ function Icon() {
83
83
  height: "36"
84
84
  }), /*#__PURE__*/_react.default.createElement("path", {
85
85
  d: "M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",
86
- stroke: "url(#".concat(id, ")"),
86
+ stroke: `url(#${id})`,
87
87
  strokeWidth: "4",
88
88
  strokeLinecap: "round"
89
89
  })));
@@ -77,9 +77,9 @@ class Spin extends _baseComponent.default {
77
77
  loading
78
78
  } = this.state;
79
79
  return loading ? /*#__PURE__*/_react.default.createElement("div", {
80
- className: "".concat(prefixCls, "-wrapper")
80
+ className: `${prefixCls}-wrapper`
81
81
  }, indicator ? /*#__PURE__*/_react.default.createElement("div", {
82
- className: "".concat(prefixCls, "-animate"),
82
+ className: `${prefixCls}-animate`,
83
83
  "x-semi-prop": "indicator"
84
84
  }, indicator) : /*#__PURE__*/_react.default.createElement(_icon.default, null), tip ? /*#__PURE__*/_react.default.createElement("div", {
85
85
  "x-semi-prop": "tip"
@@ -99,15 +99,15 @@ class Spin extends _baseComponent.default {
99
99
  loading
100
100
  } = this.state;
101
101
  const spinCls = (0, _classnames.default)(prefixCls, wrapperClassName, {
102
- ["".concat(prefixCls, "-").concat(size)]: size,
103
- ["".concat(prefixCls, "-block")]: children,
104
- ["".concat(prefixCls, "-hidden")]: !loading
102
+ [`${prefixCls}-${size}`]: size,
103
+ [`${prefixCls}-block`]: children,
104
+ [`${prefixCls}-hidden`]: !loading
105
105
  });
106
106
  return /*#__PURE__*/_react.default.createElement("div", {
107
107
  className: spinCls,
108
108
  style: style
109
109
  }, this.renderSpin(), /*#__PURE__*/_react.default.createElement("div", {
110
- className: "".concat(prefixCls, "-children"),
110
+ className: `${prefixCls}-children`,
111
111
  style: childStyle,
112
112
  "x-semi-prop": "children"
113
113
  }, children));
@@ -19,8 +19,6 @@ export interface BasicStepProps {
19
19
  onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
20
20
  "role"?: React.AriaRole;
21
21
  "aria-label"?: React.AriaAttributes["aria-label"];
22
- type?: string;
23
- direction?: string;
24
22
  }
25
23
  export declare enum stepSizeMapIconSize {
26
24
  small = "large",
@@ -42,9 +42,7 @@ const BasicStep = props => {
42
42
  stepNumber,
43
43
  onClick,
44
44
  onChange,
45
- onKeyDown,
46
- type: typeInProps,
47
- direction: directionInProps
45
+ onKeyDown
48
46
  } = props;
49
47
 
50
48
  const renderIcon = () => {
@@ -64,13 +62,13 @@ const BasicStep = props => {
64
62
 
65
63
  case 'wait':
66
64
  inner = /*#__PURE__*/_react.default.createElement("span", {
67
- className: "".concat(prefixCls, "-number-icon")
65
+ className: `${prefixCls}-number-icon`
68
66
  }, stepNumber);
69
67
  break;
70
68
 
71
69
  case 'process':
72
70
  inner = /*#__PURE__*/_react.default.createElement("span", {
73
- className: "".concat(prefixCls, "-number-icon")
71
+ className: `${prefixCls}-number-icon`
74
72
  }, stepNumber);
75
73
  progress = true;
76
74
  break;
@@ -94,21 +92,18 @@ const BasicStep = props => {
94
92
  }
95
93
 
96
94
  const cls = (0, _classnames.default)({
97
- ["".concat(prefixCls, "-icon")]: true,
98
- ["".concat(prefixCls, "-custom-icon")]: 'icon' in props,
99
- ["".concat(prefixCls, "-icon-process")]: progress
95
+ [`${prefixCls}-icon`]: true,
96
+ [`${prefixCls}-custom-icon`]: 'icon' in props,
97
+ [`${prefixCls}-icon-process`]: progress
100
98
  });
101
99
  return inner ? /*#__PURE__*/_react.default.createElement("span", {
102
100
  className: cls
103
101
  }, inner) : null;
104
102
  };
105
103
 
106
- const classString = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(status), {
107
- ["".concat(prefixCls, "-active")]: active,
108
- ["".concat(prefixCls, "-done")]: done,
109
- ["".concat(prefixCls, "-basic")]: typeInProps,
110
- ["".concat(prefixCls, "-").concat(directionInProps)]: directionInProps,
111
- ["".concat(prefixCls, "-small")]: size === 'small'
104
+ const classString = (0, _classnames.default)(prefixCls, `${prefixCls}-${status}`, {
105
+ [`${prefixCls}-active`]: active,
106
+ [`${prefixCls}-done`]: done
112
107
  }, className);
113
108
 
114
109
  const handleClick = e => {
@@ -139,17 +134,17 @@ const BasicStep = props => {
139
134
  onClick: e => handleClick(e),
140
135
  onKeyDown: handleKeyDown
141
136
  }, /*#__PURE__*/_react.default.createElement("div", {
142
- className: "".concat(prefixCls, "-container")
137
+ className: `${prefixCls}-container`
143
138
  }, /*#__PURE__*/_react.default.createElement("div", {
144
- className: "".concat(prefixCls, "-left")
139
+ className: `${prefixCls}-left`
145
140
  }, renderIcon()), /*#__PURE__*/_react.default.createElement("div", {
146
- className: "".concat(prefixCls, "-content")
141
+ className: `${prefixCls}-content`
147
142
  }, /*#__PURE__*/_react.default.createElement("div", {
148
- className: "".concat(prefixCls, "-title")
143
+ className: `${prefixCls}-title`
149
144
  }, /*#__PURE__*/_react.default.createElement("div", {
150
- className: "".concat(prefixCls, "-title-text")
145
+ className: `${prefixCls}-title-text`
151
146
  }, title)), description && /*#__PURE__*/_react.default.createElement("div", {
152
- className: "".concat(prefixCls, "-description")
147
+ className: `${prefixCls}-description`
153
148
  }, description))));
154
149
  };
155
150
 
@@ -43,12 +43,12 @@ const Steps = props => {
43
43
 
44
44
  const stepNumber = initial + index;
45
45
  const childProps = Object.assign({
46
- stepNumber: "".concat(stepNumber + 1),
46
+ stepNumber: `${stepNumber + 1}`,
47
47
  size
48
48
  }, child.props);
49
49
 
50
50
  if (status === 'error' && index === current - 1) {
51
- childProps.className = "".concat(prefixCls, "-next-error");
51
+ childProps.className = `${prefixCls}-next-error`;
52
52
  }
53
53
 
54
54
  if (!child.props.status) {
@@ -76,10 +76,10 @@ const Steps = props => {
76
76
  return content;
77
77
  }, [children, initial, prefixCls, direction, status, current, size, onChange]);
78
78
  const wrapperCls = (0, _classnames.default)(className, {
79
- ["".concat(prefixCls, "-basic")]: true,
80
- ["".concat(prefixCls, "-").concat(direction)]: true,
81
- ["".concat(prefixCls, "-").concat(size)]: size !== 'default',
82
- ["".concat(prefixCls, "-hasline")]: hasLine
79
+ [`${prefixCls}-basic`]: true,
80
+ [`${prefixCls}-${direction}`]: true,
81
+ [`${prefixCls}-${size}`]: size !== 'default',
82
+ [`${prefixCls}-hasline`]: hasLine
83
83
  });
84
84
  return /*#__PURE__*/_react.default.createElement("div", {
85
85
  "aria-label": props["aria-label"],
@@ -15,7 +15,6 @@ export interface FillStepProps {
15
15
  onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
16
16
  "role"?: React.AriaRole;
17
17
  "aria-label"?: React.AriaAttributes["aria-label"];
18
- type?: string;
19
18
  }
20
19
  declare const FillStep: {
21
20
  (props: FillStepProps): JSX.Element;
@@ -75,10 +75,10 @@ const FillStep = props => {
75
75
  }
76
76
 
77
77
  const cls = (0, _classnames.default)({
78
- ["".concat(prefixCls, "-left")]: true,
79
- ["".concat(prefixCls, "-icon")]: 'icon' in props,
80
- ["".concat(prefixCls, "-plain")]: !('icon' in props),
81
- ["".concat(prefixCls, "-icon-process")]: progress
78
+ [`${prefixCls}-left`]: true,
79
+ [`${prefixCls}-icon`]: 'icon' in props,
80
+ [`${prefixCls}-plain`]: !('icon' in props),
81
+ [`${prefixCls}-icon-process`]: progress
82
82
  });
83
83
  return inner ? /*#__PURE__*/_react.default.createElement("div", {
84
84
  className: cls
@@ -110,9 +110,8 @@ const FillStep = props => {
110
110
  tabIndex: 0,
111
111
  className: (0, _classnames.default)({
112
112
  [prefixCls]: true,
113
- ["".concat(prefixCls, "-").concat(status)]: Boolean(status),
114
- ["".concat(prefixCls, "-clickable")]: onClick,
115
- ["".concat(prefixCls, "-fill")]: props.type === 'fill'
113
+ [`${prefixCls}-${status}`]: Boolean(status),
114
+ [`${prefixCls}-clickable`]: onClick
116
115
  }, className),
117
116
  style: style,
118
117
  onClick: e => {
@@ -120,14 +119,14 @@ const FillStep = props => {
120
119
  },
121
120
  onKeyDown: handleKeyDown
122
121
  }, renderIcon(), /*#__PURE__*/_react.default.createElement("div", {
123
- className: "".concat(prefixCls, "-content")
122
+ className: `${prefixCls}-content`
124
123
  }, /*#__PURE__*/_react.default.createElement("div", {
125
- className: "".concat(prefixCls, "-title"),
124
+ className: `${prefixCls}-title`,
126
125
  title: typeof title === 'string' ? title : null
127
126
  }, /*#__PURE__*/_react.default.createElement("span", {
128
- className: "".concat(prefixCls, "-title-text")
127
+ className: `${prefixCls}-title-text`
129
128
  }, title)), /*#__PURE__*/_react.default.createElement("div", {
130
- className: "".concat(prefixCls, "-description"),
129
+ className: `${prefixCls}-description`,
131
130
  title: typeof description === 'string' ? description : null
132
131
  }, description)));
133
132
  };
@@ -37,7 +37,7 @@ const Steps = props => {
37
37
  const filteredChildren = _react.Children.toArray(children).filter(c => /*#__PURE__*/(0, _react.isValidElement)(c));
38
38
 
39
39
  const colStyle = direction === 'vertical' ? null : {
40
- width: "".concat(100 / filteredChildren.length, "%")
40
+ width: `${100 / filteredChildren.length}%`
41
41
  };
42
42
 
43
43
  const content = _react.Children.map(filteredChildren, (child, index) => {
@@ -47,11 +47,12 @@ const Steps = props => {
47
47
 
48
48
  const stepNumber = initial + index;
49
49
  const childProps = Object.assign({
50
- stepNumber: "".concat(stepNumber + 1)
50
+ stepNumber: `${stepNumber + 1}`,
51
+ direction
51
52
  }, child.props);
52
53
 
53
54
  if (status === 'error' && index === current - 1) {
54
- childProps.className = "".concat(prefixCls, "-next-error");
55
+ childProps.className = `${prefixCls}-next-error`;
55
56
  }
56
57
 
57
58
  if (!child.props.status) {
@@ -79,7 +80,7 @@ const Steps = props => {
79
80
  }, [children, initial, prefixCls, direction, status, current, onChange]);
80
81
  const wrapperCls = (0, _classnames.default)(className, {
81
82
  [prefixCls]: true,
82
- ["".concat(prefixCls, "-").concat(direction)]: true
83
+ [`${prefixCls}-${direction}`]: true
83
84
  });
84
85
  return /*#__PURE__*/_react.default.createElement("div", {
85
86
  className: wrapperCls,
@@ -22,10 +22,7 @@ export interface NavStepsAllProps extends NavStepsProps {
22
22
  }
23
23
  export declare type StepsProps = FillStepsAllProps | BasicStepsAllProps | NavStepsAllProps;
24
24
  declare class Steps extends Component<StepsProps> {
25
- static Step: {
26
- (props: import("./step").StepProps): JSX.Element;
27
- elementType: string;
28
- };
25
+ static Step: (props: import("./step").StepProps) => JSX.Element;
29
26
  static propTypes: {
30
27
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
31
28
  type: PropTypes.Requireable<string>;
@@ -13,9 +13,6 @@ export interface NavStepProps {
13
13
  onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
14
14
  "role"?: React.AriaRole;
15
15
  "aria-label"?: React.AriaAttributes["aria-label"];
16
- type?: string;
17
- lastOne?: boolean;
18
- size?: string;
19
16
  }
20
17
  declare const NavStep: {
21
18
  (props: NavStepProps): JSX.Element;
@@ -5,11 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _isNumber2 = _interopRequireDefault(require("lodash/isNumber"));
9
-
10
8
  var _isFunction2 = _interopRequireDefault(require("lodash/isFunction"));
11
9
 
12
- var _react = _interopRequireWildcard(require("react"));
10
+ var _react = _interopRequireDefault(require("react"));
13
11
 
14
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
15
13
 
@@ -19,10 +17,6 @@ var _constants = require("@douyinfe/semi-foundation/lib/cjs/steps/constants");
19
17
 
20
18
  var _semiIcons = require("@douyinfe/semi-icons");
21
19
 
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
- 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; }
25
-
26
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
21
 
28
22
  const NavStep = props => {
@@ -36,15 +30,10 @@ const NavStep = props => {
36
30
  total,
37
31
  onClick,
38
32
  onKeyDown,
39
- onChange,
40
- lastOne,
41
- type,
42
- size
33
+ onChange
43
34
  } = props;
44
35
  const classString = (0, _classnames.default)(prefixCls, {
45
- ["".concat(prefixCls, "-active")]: active,
46
- ["".concat(prefixCls, "-nav")]: type,
47
- ["".concat(prefixCls, "-small")]: size === 'small'
36
+ [`${prefixCls}-active`]: active
48
37
  }, className);
49
38
 
50
39
  const handleClick = e => {
@@ -65,13 +54,6 @@ const NavStep = props => {
65
54
  }
66
55
  };
67
56
 
68
- const notLastOne = (0, _react.useMemo)(() => {
69
- if ((0, _isNumber2.default)(index) && (0, _isNumber2.default)(total)) {
70
- return index !== total - 1;
71
- }
72
-
73
- return !Boolean(lastOne);
74
- }, [index, total, lastOne]);
75
57
  return /*#__PURE__*/_react.default.createElement("div", {
76
58
  role: props["role"],
77
59
  "aria-label": props["aria-label"],
@@ -82,13 +64,13 @@ const NavStep = props => {
82
64
  onClick: e => handleClick(e),
83
65
  onKeyDown: handleKeyDown
84
66
  }, /*#__PURE__*/_react.default.createElement("div", {
85
- className: "".concat(prefixCls, "-container")
67
+ className: `${prefixCls}-container`
86
68
  }, /*#__PURE__*/_react.default.createElement("div", {
87
- className: "".concat(prefixCls, "-content")
69
+ className: `${prefixCls}-content`
88
70
  }, /*#__PURE__*/_react.default.createElement("div", {
89
- className: "".concat(prefixCls, "-title")
90
- }, title)), notLastOne && /*#__PURE__*/_react.default.createElement("div", {
91
- className: "".concat(prefixCls, "-icon")
71
+ className: `${prefixCls}-title`
72
+ }, title)), index !== total - 1 && /*#__PURE__*/_react.default.createElement("div", {
73
+ className: `${prefixCls}-icon`
92
74
  }, /*#__PURE__*/_react.default.createElement(_semiIcons.IconChevronRight, {
93
75
  size: "small"
94
76
  }))));
@@ -58,8 +58,8 @@ const Steps = props => {
58
58
  return content;
59
59
  }, [children, prefixCls, current, size, initial, onChange]);
60
60
  const wrapperCls = (0, _classnames.default)(className, {
61
- ["".concat(prefixCls, "-nav")]: true,
62
- ["".concat(prefixCls, "-").concat(size)]: size !== 'default'
61
+ [`${prefixCls}-nav`]: true,
62
+ [`${prefixCls}-${size}`]: size !== 'default'
63
63
  });
64
64
  return /*#__PURE__*/_react.default.createElement("div", {
65
65
  "aria-label": props["aria-label"],
@@ -8,10 +8,6 @@ export interface StepProps {
8
8
  className?: string;
9
9
  style?: React.CSSProperties;
10
10
  onClick?: React.MouseEventHandler<HTMLDivElement>;
11
- type?: string;
12
11
  }
13
- declare const Step: {
14
- (props: StepProps): JSX.Element;
15
- elementType: string;
16
- };
12
+ declare const Step: (props: StepProps) => JSX.Element;
17
13
  export default Step;
@@ -22,8 +22,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
22
22
  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; }
23
23
 
24
24
  const Step = props => {
25
- const stepContext = (0, _react.useContext)(_context.default);
26
- const type = stepContext ? stepContext.type : props.type;
25
+ const {
26
+ type
27
+ } = (0, _react.useContext)(_context.default);
27
28
 
28
29
  const renderStep = () => {
29
30
  switch (type) {
@@ -44,6 +45,5 @@ const Step = props => {
44
45
  return renderStep();
45
46
  };
46
47
 
47
- Step.elementType = 'Steps.Step';
48
48
  var _default = Step;
49
49
  exports.default = _default;
@@ -242,7 +242,7 @@ class TableRow extends _baseComponent.default {
242
242
  hideExpandedColumn: hideExpandedColumn,
243
243
  indentSize: indentSize,
244
244
  isSection: isSection,
245
- prefixCls: "".concat(prefixCls),
245
+ prefixCls: `${prefixCls}`,
246
246
  column: column,
247
247
  key: columnIndex,
248
248
  index: index,
@@ -293,10 +293,10 @@ class TableRow extends _baseComponent.default {
293
293
 
294
294
  this.adapter.setCache('customRowProps', Object.assign({}, rowProps));
295
295
  const baseRowStyle = Object.assign(Object.assign({}, style), customStyle);
296
- const rowCls = typeof replaceClassName === 'string' && replaceClassName.length ? replaceClassName : (0, _classnames.default)(className, "".concat(prefixCls, "-row"), {
297
- ["".concat(prefixCls, "-row-selected")]: selected,
298
- ["".concat(prefixCls, "-row-expanded")]: expanded,
299
- ["".concat(prefixCls, "-row-hovered")]: hovered
296
+ const rowCls = typeof replaceClassName === 'string' && replaceClassName.length ? replaceClassName : (0, _classnames.default)(className, `${prefixCls}-row`, {
297
+ [`${prefixCls}-row-selected`]: selected,
298
+ [`${prefixCls}-row-expanded`]: expanded,
299
+ [`${prefixCls}-row-hovered`]: hovered
300
300
  }, customClassName);
301
301
  const ariaProps = {};
302
302