@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
@@ -119,8 +119,8 @@ class TabPane extends _react.PureComponent {
119
119
  return /*#__PURE__*/_react.default.createElement("div", Object.assign({
120
120
  ref: this.ref,
121
121
  role: "tabpanel",
122
- id: "semiTabPanel".concat(itemKey),
123
- "aria-labelledby": "semiTab".concat(itemKey),
122
+ id: `semiTabPanel${itemKey}`,
123
+ "aria-labelledby": `semiTab${itemKey}`,
124
124
  className: classNames,
125
125
  style: style,
126
126
  "aria-hidden": active ? 'false' : 'true',
@@ -137,7 +137,7 @@ class TabPane extends _react.PureComponent {
137
137
  animationEventsNeedBind
138
138
  } = _ref;
139
139
  return /*#__PURE__*/_react.default.createElement("div", Object.assign({
140
- className: "".concat(_constants.cssClasses.TABS_PANE_MOTION_OVERLAY, " ").concat(animationClassName),
140
+ className: `${_constants.cssClasses.TABS_PANE_MOTION_OVERLAY} ${animationClassName}`,
141
141
  "x-semi-prop": "children"
142
142
  }, animationEventsNeedBind), shouldRender ? children : null);
143
143
  }));
@@ -336,11 +336,11 @@ class Tabs extends _baseComponent.default {
336
336
  } = this.state;
337
337
  const tabWrapperCls = (0, _classnames.default)(className, {
338
338
  [_constants.cssClasses.TABS]: true,
339
- ["".concat(_constants.cssClasses.TABS, "-").concat(tabPosition)]: tabPosition
339
+ [`${_constants.cssClasses.TABS}-${tabPosition}`]: tabPosition
340
340
  });
341
341
  const tabContentCls = (0, _classnames.default)({
342
342
  [_constants.cssClasses.TABS_CONTENT]: true,
343
- ["".concat(_constants.cssClasses.TABS_CONTENT, "-").concat(tabPosition)]: tabPosition
343
+ [`${_constants.cssClasses.TABS_CONTENT}-${tabPosition}`]: tabPosition
344
344
  });
345
345
  const tabBarProps = {
346
346
  activeKey,
@@ -54,7 +54,7 @@ class TagGroup extends _react.PureComponent {
54
54
  trigger: "hover",
55
55
  position: "top",
56
56
  autoAdjustOverflow: true,
57
- className: "".concat(prefixCls, "-rest-group-popover")
57
+ className: `${prefixCls}-rest-group-popover`
58
58
  }, popoverProps, {
59
59
  key: "_+n_Popover"
60
60
  }), nTag);
@@ -137,10 +137,10 @@ class TagGroup extends _react.PureComponent {
137
137
  size
138
138
  } = this.props;
139
139
  const groupCls = (0, _classnames.default)({
140
- ["".concat(prefixCls, "-group")]: true,
141
- ["".concat(prefixCls, "-group-max")]: maxTagCount,
142
- ["".concat(prefixCls, "-group-small")]: size === 'small',
143
- ["".concat(prefixCls, "-group-large")]: size === 'large'
140
+ [`${prefixCls}-group`]: true,
141
+ [`${prefixCls}-group-max`]: maxTagCount,
142
+ [`${prefixCls}-group-small`]: size === 'small',
143
+ [`${prefixCls}-group-large`]: size === 'large'
144
144
  }, className);
145
145
  const tags = this.renderAllTags();
146
146
  const tagContents = typeof maxTagCount === 'undefined' ? tags : this.renderMergeTags(tags);
@@ -184,16 +184,16 @@ class Tag extends _react.Component {
184
184
  const baseProps = Object.assign(Object.assign({}, attr), {
185
185
  onClick,
186
186
  className: (0, _classnames.default)(prefixCls, {
187
- ["".concat(prefixCls, "-default")]: size === 'default',
188
- ["".concat(prefixCls, "-small")]: size === 'small',
189
- ["".concat(prefixCls, "-large")]: size === 'large',
190
- ["".concat(prefixCls, "-square")]: shape === 'square',
191
- ["".concat(prefixCls, "-circle")]: shape === 'circle',
192
- ["".concat(prefixCls, "-").concat(type)]: type,
193
- ["".concat(prefixCls, "-").concat(color, "-").concat(type)]: color && type,
194
- ["".concat(prefixCls, "-closable")]: closable,
195
- ["".concat(prefixCls, "-invisible")]: !isVisible,
196
- ["".concat(prefixCls, "-avatar-").concat(avatarShape)]: avatarSrc
187
+ [`${prefixCls}-default`]: size === 'default',
188
+ [`${prefixCls}-small`]: size === 'small',
189
+ [`${prefixCls}-large`]: size === 'large',
190
+ [`${prefixCls}-square`]: shape === 'square',
191
+ [`${prefixCls}-circle`]: shape === 'circle',
192
+ [`${prefixCls}-${type}`]: type,
193
+ [`${prefixCls}-${color}-${type}`]: color && type,
194
+ [`${prefixCls}-closable`]: closable,
195
+ [`${prefixCls}-invisible`]: !isVisible,
196
+ [`${prefixCls}-avatar-${avatarShape}`]: avatarSrc
197
197
  }, className)
198
198
  });
199
199
  const wrapProps = clickable ? Object.assign(Object.assign({}, baseProps), a11yProps) : baseProps;
@@ -201,15 +201,15 @@ class Tag extends _react.Component {
201
201
  /*#__PURE__*/
202
202
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
203
203
  _react.default.createElement("div", {
204
- className: "".concat(prefixCls, "-close"),
204
+ className: `${prefixCls}-close`,
205
205
  onClick: e => this.close(e, children, tagKey)
206
206
  }, /*#__PURE__*/_react.default.createElement(_semiIcons.IconClose, {
207
207
  size: "small"
208
208
  })) : null;
209
209
  return /*#__PURE__*/_react.default.createElement("div", Object.assign({
210
- "aria-label": this.props['aria-label'] || (0, _isString2.default)(children) ? "".concat(closable ? 'Closable ' : '', "Tag: ").concat(children) : ''
210
+ "aria-label": this.props['aria-label'] || (0, _isString2.default)(children) ? `${closable ? 'Closable ' : ''}Tag: ${children}` : ''
211
211
  }, wrapProps), avatarSrc ? this.renderAvatar() : null, /*#__PURE__*/_react.default.createElement("div", {
212
- className: "".concat(prefixCls, "-content")
212
+ className: `${prefixCls}-content`
213
213
  }, children), closeIcon);
214
214
  }
215
215
 
@@ -54,7 +54,7 @@ const SortableList = (0, _reactSortableHoc.SortableContainer)(_ref => {
54
54
  items
55
55
  } = _ref;
56
56
  return /*#__PURE__*/_react.default.createElement("div", {
57
- className: "".concat(prefixCls, "-sortable-list")
57
+ className: `${prefixCls}-sortable-list`
58
58
  }, items.map((item, index) =>
59
59
  /*#__PURE__*/
60
60
  // @ts-ignore skip SortableItem type check
@@ -132,22 +132,22 @@ class TagInput extends _baseComponent.default {
132
132
  active
133
133
  } = this.state;
134
134
  const showIconHandler = active && draggable;
135
- const tagCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper-tag"), {
136
- ["".concat(prefixCls, "-wrapper-tag-size-").concat(size)]: size,
137
- ["".concat(prefixCls, "-wrapper-tag-icon")]: showIconHandler
135
+ const tagCls = (0, _classnames.default)(`${prefixCls}-wrapper-tag`, {
136
+ [`${prefixCls}-wrapper-tag-size-${size}`]: size,
137
+ [`${prefixCls}-wrapper-tag-icon`]: showIconHandler
138
138
  });
139
- const typoCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper-typo"), {
140
- ["".concat(prefixCls, "-wrapper-typo-disabled")]: disabled
139
+ const typoCls = (0, _classnames.default)(`${prefixCls}-wrapper-typo`, {
140
+ [`${prefixCls}-wrapper-typo-disabled`]: disabled
141
141
  });
142
142
  const itemWrapperCls = (0, _classnames.default)({
143
- ["".concat(prefixCls, "-drag-item")]: showIconHandler,
144
- ["".concat(prefixCls, "-wrapper-tag-icon")]: showIconHandler
143
+ [`${prefixCls}-drag-item`]: showIconHandler,
144
+ [`${prefixCls}-wrapper-tag-icon`]: showIconHandler
145
145
  });
146
146
  const DragHandle = (0, _reactSortableHoc.SortableHandle)(() => /*#__PURE__*/_react.default.createElement(_semiIcons.IconHandle, {
147
- className: "".concat(prefixCls, "-drag-handler")
147
+ className: `${prefixCls}-drag-handler`
148
148
  }));
149
149
  return tagsArray.map((value, index) => {
150
- const elementKey = showIconHandler ? value : "".concat(index).concat(value);
150
+ const elementKey = showIconHandler ? value : `${index}${value}`;
151
151
 
152
152
  const onClose = () => {
153
153
  !disabled && this.handleTagClose(index);
@@ -168,9 +168,9 @@ class TagInput extends _baseComponent.default {
168
168
  closable: !disabled,
169
169
  key: elementKey,
170
170
  visible: true,
171
- "aria-label": "".concat(!disabled ? 'Closable ' : '', "Tag: ").concat(value)
171
+ "aria-label": `${!disabled ? 'Closable ' : ''}Tag: ${value}`
172
172
  }, /*#__PURE__*/_react.default.createElement("div", {
173
- className: "".concat(prefixCls, "-tag-content-wrapper")
173
+ className: `${prefixCls}-tag-content-wrapper`
174
174
  }, showIconHandler && /*#__PURE__*/_react.default.createElement(DragHandle, null), /*#__PURE__*/_react.default.createElement(_paragraph.default, {
175
175
  className: typoCls,
176
176
  ellipsis: {
@@ -354,8 +354,8 @@ class TagInput extends _baseComponent.default {
354
354
  disabled,
355
355
  clearIcon
356
356
  } = this.props;
357
- const clearCls = (0, _classnames.default)("".concat(prefixCls, "-clearBtn"), {
358
- ["".concat(prefixCls, "-clearBtn-invisible")]: !hovering || inputValue === '' && tagsArray.length === 0 || disabled
357
+ const clearCls = (0, _classnames.default)(`${prefixCls}-clearBtn`, {
358
+ [`${prefixCls}-clearBtn-invisible`]: !hovering || inputValue === '' && tagsArray.length === 0 || disabled
359
359
  });
360
360
 
361
361
  if (showClear) {
@@ -384,11 +384,11 @@ class TagInput extends _baseComponent.default {
384
384
  return null;
385
385
  }
386
386
 
387
- const prefixWrapperCls = (0, _classnames.default)("".concat(prefixCls, "-prefix"), {
388
- ["".concat(prefixCls, "-inset-label")]: insetLabel,
389
- ["".concat(prefixCls, "-prefix-text")]: labelNode && (0, _isString2.default)(labelNode),
387
+ const prefixWrapperCls = (0, _classnames.default)(`${prefixCls}-prefix`, {
388
+ [`${prefixCls}-inset-label`]: insetLabel,
389
+ [`${prefixCls}-prefix-text`]: labelNode && (0, _isString2.default)(labelNode),
390
390
  // eslint-disable-next-line max-len
391
- ["".concat(prefixCls, "-prefix-icon")]: (0, _utils.isSemiIcon)(labelNode)
391
+ [`${prefixCls}-prefix-icon`]: (0, _utils.isSemiIcon)(labelNode)
392
392
  });
393
393
  return (
394
394
  /*#__PURE__*/
@@ -412,10 +412,10 @@ class TagInput extends _baseComponent.default {
412
412
  return null;
413
413
  }
414
414
 
415
- const suffixWrapperCls = (0, _classnames.default)("".concat(prefixCls, "-suffix"), {
416
- ["".concat(prefixCls, "-suffix-text")]: suffix && (0, _isString2.default)(suffix),
415
+ const suffixWrapperCls = (0, _classnames.default)(`${prefixCls}-suffix`, {
416
+ [`${prefixCls}-suffix-text`]: suffix && (0, _isString2.default)(suffix),
417
417
  // eslint-disable-next-line max-len
418
- ["".concat(prefixCls, "-suffix-icon")]: (0, _utils.isSemiIcon)(suffix)
418
+ [`${prefixCls}-suffix-icon`]: (0, _utils.isSemiIcon)(suffix)
419
419
  });
420
420
  return (
421
421
  /*#__PURE__*/
@@ -442,8 +442,8 @@ class TagInput extends _baseComponent.default {
442
442
  tagsArray,
443
443
  active
444
444
  } = this.state;
445
- const restTagsCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper-n"), {
446
- ["".concat(prefixCls, "-wrapper-n-disabled")]: disabled
445
+ const restTagsCls = (0, _classnames.default)(`${prefixCls}-wrapper-n`, {
446
+ [`${prefixCls}-wrapper-n-disabled`]: disabled
447
447
  });
448
448
  const allTags = this.getAllTags();
449
449
  let restTags = [];
@@ -468,7 +468,7 @@ class TagInput extends _baseComponent.default {
468
468
  // @ts-ignore skip SortableItem type check
469
469
  return /*#__PURE__*/_react.default.createElement(SortableList, {
470
470
  useDragHandle: true,
471
- helperClass: "".concat(prefixCls, "-drag-item-move"),
471
+ helperClass: `${prefixCls}-drag-item-move`,
472
472
  items: sortableListItems,
473
473
  onSortEnd: this.onSortEnd,
474
474
  axis: "xy"
@@ -522,16 +522,16 @@ class TagInput extends _baseComponent.default {
522
522
  active
523
523
  } = this.state;
524
524
  const tagInputCls = (0, _classnames.default)(prefixCls, className, {
525
- ["".concat(prefixCls, "-focus")]: focusing || active,
526
- ["".concat(prefixCls, "-disabled")]: disabled,
527
- ["".concat(prefixCls, "-hover")]: hovering && !disabled,
528
- ["".concat(prefixCls, "-error")]: validateStatus === 'error',
529
- ["".concat(prefixCls, "-warning")]: validateStatus === 'warning',
530
- ["".concat(prefixCls, "-small")]: size === 'small',
531
- ["".concat(prefixCls, "-large")]: size === 'large'
525
+ [`${prefixCls}-focus`]: focusing || active,
526
+ [`${prefixCls}-disabled`]: disabled,
527
+ [`${prefixCls}-hover`]: hovering && !disabled,
528
+ [`${prefixCls}-error`]: validateStatus === 'error',
529
+ [`${prefixCls}-warning`]: validateStatus === 'warning',
530
+ [`${prefixCls}-small`]: size === 'small',
531
+ [`${prefixCls}-large`]: size === 'large'
532
532
  });
533
- const inputCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper-input"), "".concat(prefixCls, "-wrapper-input-").concat(size));
534
- const wrapperCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper"));
533
+ const inputCls = (0, _classnames.default)(`${prefixCls}-wrapper-input`, `${prefixCls}-wrapper-input-${size}`);
534
+ const wrapperCls = (0, _classnames.default)(`${prefixCls}-wrapper`);
535
535
  return (
536
536
  /*#__PURE__*/
537
537
  // eslint-disable-next-line
@@ -162,7 +162,7 @@ class Combobox extends _baseComponent.default {
162
162
 
163
163
  const transformHour = value => value + locale.hour;
164
164
 
165
- const className = "".concat(prefixCls, "-list-hour");
165
+ const className = `${prefixCls}-list-hour`;
166
166
  return /*#__PURE__*/_react.default.createElement(_scrollItem.default, Object.assign({
167
167
  ref: current => this.cacheRefCurrent('hour', current),
168
168
  mode: 'normal',
@@ -193,7 +193,7 @@ class Combobox extends _baseComponent.default {
193
193
 
194
194
  const value = new Date(timeStampValue);
195
195
  const disabledOptions = disabledMinutes && disabledMinutes(value.getHours());
196
- const className = "".concat(prefixCls, "-list-minute");
196
+ const className = `${prefixCls}-list-minute`;
197
197
 
198
198
  const transformMinute = min => min + locale.minute;
199
199
 
@@ -227,7 +227,7 @@ class Combobox extends _baseComponent.default {
227
227
 
228
228
  const value = new Date(timeStampValue);
229
229
  const disabledOptions = disabledSeconds && disabledSeconds(value.getHours(), value.getMinutes());
230
- const className = "".concat(prefixCls, "-list-second");
230
+ const className = `${prefixCls}-list-second`;
231
231
 
232
232
  const transformSecond = sec => String(sec) + locale.second;
233
233
 
@@ -263,7 +263,7 @@ class Combobox extends _baseComponent.default {
263
263
  text: locale.PM || '下午'
264
264
  }];
265
265
  const selected = isAM ? 0 : 1;
266
- const className = "".concat(prefixCls, "-list-ampm");
266
+ const className = `${prefixCls}-list-ampm`;
267
267
  return /*#__PURE__*/_react.default.createElement(_scrollItem.default, Object.assign({
268
268
  ref: current => this.cacheRefCurrent('ampm', current),
269
269
  mode: 'normal',
@@ -142,9 +142,9 @@ class TimeInput extends _baseComponent.default {
142
142
  rest = __rest(_a, ["prefixCls", "placeholder", "inputReadOnly", "onFocus", "disabled", "type", "locale", "localeCode", "insetLabel", "validateStatus", "value", "onChange", "invalid", "format", "clearText", "disabledHours", "disabledMinutes", "disabledSeconds", "onEsc", "defaultOpenValue", "currentSelectPanel", "focusOnOpen", "timeStampValue", "timeZone", "defaultOpen", "dateFnsLocale"]); // const { focusing } = this.state;
143
143
 
144
144
 
145
- const inputCls = (0, _classnames.default)("".concat(prefixCls, "-input"), {
146
- ["".concat(prefixCls, "-input-invalid")]: invalid,
147
- ["".concat(prefixCls, "-input-readonly")]: inputReadOnly
145
+ const inputCls = (0, _classnames.default)(`${prefixCls}-input`, {
146
+ [`${prefixCls}-input-invalid`]: invalid,
147
+ [`${prefixCls}-input-readonly`]: inputReadOnly
148
148
  });
149
149
  const mergeValidateStatus = invalid ? 'error' : validateStatus;
150
150
  return /*#__PURE__*/_react.default.createElement(_input.default, Object.assign({}, rest, {
@@ -171,7 +171,7 @@ class TimeInput extends _baseComponent.default {
171
171
  prefixCls
172
172
  } = this.props;
173
173
  return /*#__PURE__*/_react.default.createElement("div", {
174
- className: "".concat(prefixCls, "-input-wrap")
174
+ className: `${prefixCls}-input-wrap`
175
175
  }, this.getInput());
176
176
  }
177
177
 
@@ -223,7 +223,7 @@ class TimePicker extends _baseComponent.default {
223
223
  format: format,
224
224
  isAM: isAM[0],
225
225
  timeStampValue: value[0],
226
- prefixCls: "".concat(prefixCls, "-panel"),
226
+ prefixCls: `${prefixCls}-panel`,
227
227
  onChange: v => this.handlePanelChange(v, 0),
228
228
  onCurrentSelectPanelChange: this.onCurrentSelectPanelChange
229
229
  }, this.createPanelProps(0)))];
@@ -234,7 +234,7 @@ class TimePicker extends _baseComponent.default {
234
234
  format: format,
235
235
  isAM: isAM[1],
236
236
  timeStampValue: value[1],
237
- prefixCls: "".concat(prefixCls, "-panel"),
237
+ prefixCls: `${prefixCls}-panel`,
238
238
  onChange: v => this.handlePanelChange(v, 1),
239
239
  onCurrentSelectPanelChange: this.onCurrentSelectPanelChange
240
240
  }, this.createPanelProps(1))));
@@ -278,10 +278,10 @@ class TimePicker extends _baseComponent.default {
278
278
  selectColumnCount += 1;
279
279
  }
280
280
 
281
- return (0, _classnames.default)("".concat(prefixCls, "-panel"), popupClassName, {
282
- ["".concat(prefixCls, "-panel-narrow")]: (!showHour || !showMinute || !showSecond) && !use12Hours,
281
+ return (0, _classnames.default)(`${prefixCls}-panel`, popupClassName, {
282
+ [`${prefixCls}-panel-narrow`]: (!showHour || !showMinute || !showSecond) && !use12Hours,
283
283
  [_constants.cssClasses.RANGE_PICKER]: this.adapter.isRangePicker()
284
- }, "".concat(prefixCls, "-panel-column-").concat(selectColumnCount));
284
+ }, `${prefixCls}-panel-column-${selectColumnCount}`);
285
285
  }
286
286
 
287
287
  focus() {// TODO this.picker is undefined, confirm keep this func or not
@@ -341,11 +341,11 @@ class TimePicker extends _baseComponent.default {
341
341
  } = this.state;
342
342
  const popupClassName = this.getPopupClassName();
343
343
  const headerPrefix = (0, _classnames.default)({
344
- ["".concat(prefixCls, "-header")]: true
344
+ [`${prefixCls}-header`]: true
345
345
  });
346
346
  const panelPrefix = (0, _classnames.default)({
347
- ["".concat(prefixCls, "-panel")]: true,
348
- ["".concat(prefixCls, "-panel-").concat(size)]: size
347
+ [`${prefixCls}-panel`]: true,
348
+ [`${prefixCls}-panel-${size}`]: size
349
349
  });
350
350
  const inputProps = Object.assign(Object.assign({}, rest), {
351
351
  disabled,
@@ -38,26 +38,26 @@ class Timeline extends _react.PureComponent {
38
38
 
39
39
  if (mode === 'alternate') {
40
40
  if (ele.props.position) {
41
- return "".concat(prefixCls, "-item-").concat(ele.props.position);
41
+ return `${prefixCls}-item-${ele.props.position}`;
42
42
  }
43
43
 
44
- return idx % 2 === 0 ? "".concat(prefixCls, "-item-left") : "".concat(prefixCls, "-item-right");
44
+ return idx % 2 === 0 ? `${prefixCls}-item-left` : `${prefixCls}-item-right`;
45
45
  }
46
46
 
47
47
  if (mode === 'center') {
48
48
  if (ele.props.position) {
49
- return "".concat(prefixCls, "-item-").concat(ele.props.position);
49
+ return `${prefixCls}-item-${ele.props.position}`;
50
50
  }
51
51
 
52
- return "".concat(prefixCls, "-item-left");
52
+ return `${prefixCls}-item-left`;
53
53
  }
54
54
 
55
55
  if (mode === 'left' || mode === 'right') {
56
- return "".concat(prefixCls, "-item-").concat(mode);
56
+ return `${prefixCls}-item-${mode}`;
57
57
  }
58
58
 
59
59
  if (ele.props.position) {
60
- return "".concat(prefixCls, "-item-").concat(ele.props.position);
60
+ return `${prefixCls}-item-${ele.props.position}`;
61
61
  }
62
62
 
63
63
  return '';
@@ -84,13 +84,13 @@ class Timeline extends _react.PureComponent {
84
84
  dataSource
85
85
  } = this.props;
86
86
  const classString = (0, _classnames.default)(prefixCls, className, {
87
- ["".concat(prefixCls, "-").concat(mode)]: mode
87
+ [`${prefixCls}-${mode}`]: mode
88
88
  });
89
89
  let childrenList;
90
90
 
91
91
  if (dataSource && dataSource.length) {
92
92
  const items = dataSource.map((item, index) => /*#__PURE__*/_react.default.createElement(_item.default, Object.assign({
93
- key: "timeline-item-".concat(index)
93
+ key: `timeline-item-${index}`
94
94
  }, item), item.content));
95
95
  childrenList = this.addClassName(items);
96
96
  }
@@ -40,9 +40,9 @@ class Item extends _react.PureComponent {
40
40
  } = this.props;
41
41
  const itemCls = (0, _classnames.default)(prefixCls, className);
42
42
  const dotCls = (0, _classnames.default)({
43
- ["".concat(prefixCls, "-head")]: true,
44
- ["".concat(prefixCls, "-head-custom")]: dot,
45
- ["".concat(prefixCls, "-head-").concat(type)]: type
43
+ [`${prefixCls}-head`]: true,
44
+ [`${prefixCls}-head-custom`]: dot,
45
+ [`${prefixCls}-head-${type}`]: type
46
46
  });
47
47
  const dotStyle = color ? {
48
48
  style: {
@@ -54,17 +54,17 @@ class Item extends _react.PureComponent {
54
54
  style: style,
55
55
  onClick: onClick
56
56
  }, /*#__PURE__*/_react.default.createElement("div", {
57
- className: "".concat(prefixCls, "-tail"),
57
+ className: `${prefixCls}-tail`,
58
58
  "aria-hidden": true
59
59
  }), /*#__PURE__*/_react.default.createElement("div", Object.assign({
60
60
  className: dotCls,
61
61
  "aria-hidden": true
62
62
  }, dotStyle), dot), /*#__PURE__*/_react.default.createElement("div", {
63
- className: "".concat(prefixCls, "-content")
63
+ className: `${prefixCls}-content`
64
64
  }, children, extra && /*#__PURE__*/_react.default.createElement("div", {
65
- className: "".concat(prefixCls, "-content-extra")
65
+ className: `${prefixCls}-content-extra`
66
66
  }, extra), time && /*#__PURE__*/_react.default.createElement("div", {
67
- className: "".concat(prefixCls, "-content-time")
67
+ className: `${prefixCls}-content-time`
68
68
  }, time)));
69
69
  }
70
70
 
@@ -76,7 +76,7 @@ const createBaseToast = () => {
76
76
  ['top', 'left', 'bottom', 'right'].map(pos => {
77
77
  if (pos in ToastList.defaultOpts || pos in opts) {
78
78
  const val = opts[pos] ? opts[pos] : ToastList.defaultOpts[pos];
79
- div.style[pos] = typeof val === 'number' ? "".concat(val, "px") : val;
79
+ div.style[pos] = typeof val === 'number' ? `${val}px` : val;
80
80
  }
81
81
  }); // document.body.appendChild(div);
82
82
 
@@ -95,10 +95,10 @@ const createBaseToast = () => {
95
95
  }));
96
96
  });
97
97
  } else {
98
- const node = document.querySelector("#".concat(this.wrapperId));
98
+ const node = document.querySelector(`#${this.wrapperId}`);
99
99
  ['top', 'left', 'bottom', 'right'].map(pos => {
100
100
  if (pos in opts) {
101
- node.style[pos] = typeof opts[pos] === 'number' ? "".concat(opts[pos], "px") : opts[pos];
101
+ node.style[pos] = typeof opts[pos] === 'number' ? `${opts[pos]}px` : opts[pos];
102
102
  }
103
103
  });
104
104
 
@@ -125,7 +125,7 @@ const createBaseToast = () => {
125
125
  static destroyAll() {
126
126
  if (ToastList.ref) {
127
127
  ToastList.ref.destroyAll();
128
- const wrapper = document.querySelector("#".concat(this.wrapperId));
128
+ const wrapper = document.querySelector(`#${this.wrapperId}`);
129
129
 
130
130
  _reactDom.default.unmountComponentAtNode(wrapper);
131
131
 
@@ -260,7 +260,7 @@ const createBaseToast = () => {
260
260
  key: item.id,
261
261
  motion: item.motion,
262
262
  animationState: isRemoved ? "leave" : "enter",
263
- startClassName: isRemoved ? "".concat(_constants.cssClasses.PREFIX, "-animation-hide") : "".concat(_constants.cssClasses.PREFIX, "-animation-show")
263
+ startClassName: isRemoved ? `${_constants.cssClasses.PREFIX}-animation-hide` : `${_constants.cssClasses.PREFIX}-animation-show`
264
264
  }, _ref2 => {
265
265
  let {
266
266
  animationClassName,
@@ -88,12 +88,12 @@ class Toast extends _baseComponent.default {
88
88
  };
89
89
  const iconType = iconMap[type];
90
90
  const iconSize = 'large';
91
- const iconCls = (0, _classnames.default)("".concat(prefixCls, "-icon"), "".concat(prefixCls, "-icon-").concat(type));
91
+ const iconCls = (0, _classnames.default)(`${prefixCls}-icon`, `${prefixCls}-icon-${type}`);
92
92
 
93
93
  if (icon) {
94
94
  return (0, _utils.isSemiIcon)(icon) ? /*#__PURE__*/_react.default.cloneElement(icon, {
95
95
  size: iconSize,
96
- className: "".concat(prefixCls, "-icon")
96
+ className: `${prefixCls}-icon`
97
97
  }) : icon;
98
98
  }
99
99
 
@@ -119,9 +119,9 @@ class Toast extends _baseComponent.default {
119
119
  } = this.props;
120
120
  const direction = this.props.direction || this.context.direction;
121
121
  const toastCls = (0, _classnames.default)(prefixCls, className, {
122
- ["".concat(prefixCls, "-").concat(type)]: true,
123
- ["".concat(prefixCls, "-").concat(theme)]: theme === 'light',
124
- ["".concat(prefixCls, "-rtl")]: direction === 'rtl'
122
+ [`${prefixCls}-${type}`]: true,
123
+ [`${prefixCls}-${theme}`]: theme === 'light',
124
+ [`${prefixCls}-rtl`]: direction === 'rtl'
125
125
  });
126
126
  const textStyle = {};
127
127
  textStyle.maxWidth = textMaxWidth;
@@ -129,7 +129,7 @@ class Toast extends _baseComponent.default {
129
129
  const btnSize = 'small';
130
130
  return /*#__PURE__*/_react.default.createElement("div", {
131
131
  role: "alert",
132
- "aria-label": "".concat(type ? type : 'default', " type"),
132
+ "aria-label": `${type ? type : 'default'} type`,
133
133
  className: toastCls,
134
134
  style: style,
135
135
  onMouseEnter: this.clearCloseTimer,
@@ -137,13 +137,13 @@ class Toast extends _baseComponent.default {
137
137
  onAnimationStart: this.props.onAnimationStart,
138
138
  onAnimationEnd: this.props.onAnimationEnd
139
139
  }, /*#__PURE__*/_react.default.createElement("div", {
140
- className: "".concat(prefixCls, "-content")
140
+ className: `${prefixCls}-content`
141
141
  }, this.renderIcon(), /*#__PURE__*/_react.default.createElement("span", {
142
- className: "".concat(prefixCls, "-content-text"),
142
+ className: `${prefixCls}-content-text`,
143
143
  style: textStyle,
144
144
  "x-semi-prop": "content"
145
145
  }, content), showClose && /*#__PURE__*/_react.default.createElement("div", {
146
- className: "".concat(prefixCls, "-close-button")
146
+ className: `${prefixCls}-close-button`
147
147
  }, /*#__PURE__*/_react.default.createElement(_index.default, {
148
148
  onClick: e => this.close(e),
149
149
  type: "tertiary",
@@ -15,10 +15,10 @@ export interface ArrowBounding {
15
15
  width?: number;
16
16
  height?: number;
17
17
  }
18
- export interface RenderContentProps {
19
- initialFocusRef?: React.RefObject<HTMLElement>;
18
+ export interface RenderContentProps<T = HTMLElement> {
19
+ initialFocusRef?: React.RefObject<T>;
20
20
  }
21
- export declare type RenderContent = (props: RenderContentProps) => React.ReactNode;
21
+ export declare type RenderContent<T = HTMLElement> = (props: RenderContentProps<T>) => React.ReactNode;
22
22
  export interface TooltipProps extends BaseProps {
23
23
  children?: React.ReactNode;
24
24
  motion?: boolean;
@@ -86,7 +86,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
86
86
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
87
87
  motion: PropTypes.Requireable<boolean>;
88
88
  autoAdjustOverflow: PropTypes.Requireable<boolean>;
89
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
89
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
90
90
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
91
91
  mouseEnterDelay: PropTypes.Requireable<number>;
92
92
  mouseLeaveDelay: PropTypes.Requireable<number>;
@@ -172,6 +172,10 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
172
172
  get adapter(): TooltipAdapter<TooltipProps, TooltipState>;
173
173
  componentDidMount(): void;
174
174
  componentWillUnmount(): void;
175
+ /**
176
+ * focus on tooltip trigger
177
+ */
178
+ focusTrigger(): void;
175
179
  isSpecial: (elem: React.ReactNode | HTMLElement | any) => boolean | "disabled" | "loading";
176
180
  didLeave: () => void;
177
181
  /** for transition - end */
@@ -139,7 +139,7 @@ class Tooltip extends _baseComponent.default {
139
139
  style
140
140
  } = this.props;
141
141
  let icon = null;
142
- const triangleCls = (0, _classnames.default)(["".concat(prefixCls, "-icon-arrow")]);
142
+ const triangleCls = (0, _classnames.default)([`${prefixCls}-icon-arrow`]);
143
143
  const bgColor = (0, _get2.default)(style, 'backgroundColor');
144
144
  const iconComponent = placement.includes('left') || placement.includes('right') ? /*#__PURE__*/_react.default.createElement(_TriangleArrowVertical.default, null) : /*#__PURE__*/_react.default.createElement(_TriangleArrow.default, null);
145
145
 
@@ -212,10 +212,10 @@ class Tooltip extends _baseComponent.default {
212
212
  } = this.props;
213
213
  const direction = this.context.direction;
214
214
  const className = (0, _classnames.default)(propClassName, {
215
- ["".concat(prefixCls, "-wrapper")]: true,
216
- ["".concat(prefixCls, "-wrapper-show")]: visible,
217
- ["".concat(prefixCls, "-with-arrow")]: Boolean(showArrow),
218
- ["".concat(prefixCls, "-rtl")]: direction === 'rtl'
215
+ [`${prefixCls}-wrapper`]: true,
216
+ [`${prefixCls}-wrapper-show`]: visible,
217
+ [`${prefixCls}-with-arrow`]: Boolean(showArrow),
218
+ [`${prefixCls}-rtl`]: direction === 'rtl'
219
219
  });
220
220
  const icon = this.renderIcon();
221
221
  const portalInnerStyle = (0, _omit2.default)(containerStyle, motion ? ['transformOrigin'] : undefined);
@@ -227,7 +227,7 @@ class Tooltip extends _baseComponent.default {
227
227
  fillMode: "forwards",
228
228
  animationState: transitionState,
229
229
  motion: motion && isPositionUpdated,
230
- startClassName: transitionState === 'enter' ? "".concat(prefix, "-animation-show") : "".concat(prefix, "-animation-hide"),
230
+ startClassName: transitionState === 'enter' ? `${prefix}-animation-show` : `${prefix}-animation-hide`,
231
231
  onAnimationEnd: () => {
232
232
  var _a, _b;
233
233
 
@@ -262,7 +262,9 @@ class Tooltip extends _baseComponent.default {
262
262
  zIndex
263
263
  }
264
264
  }, /*#__PURE__*/_react.default.createElement("div", {
265
- className: "".concat(_constants.BASE_CLASS_PREFIX, "-portal-inner"),
265
+ // listen keyboard event, don't move tabIndex -1
266
+ tabIndex: -1,
267
+ className: `${_constants.BASE_CLASS_PREFIX}-portal-inner`,
266
268
  style: portalInnerStyle,
267
269
  ref: this.setContainerEl,
268
270
  onClick: this.handlePortalInnerClick,
@@ -609,6 +611,14 @@ class Tooltip extends _baseComponent.default {
609
611
  this.mounted = false;
610
612
  this.foundation.destroy();
611
613
  }
614
+ /**
615
+ * focus on tooltip trigger
616
+ */
617
+
618
+
619
+ focusTrigger() {
620
+ this.foundation.focusTrigger();
621
+ }
612
622
  /** for transition - end */
613
623
 
614
624