@douyinfe/semi-ui 2.9.0-beta.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/_base/baseComponent.tsx +2 -1
  2. package/_portal/index.tsx +2 -1
  3. package/anchor/__test__/anchor.test.js +1 -0
  4. package/anchor/_story/anchor.stories.js +23 -1
  5. package/anchor/index.tsx +2 -1
  6. package/anchor/link.tsx +2 -1
  7. package/autoComplete/index.tsx +2 -2
  8. package/avatar/interface.ts +2 -2
  9. package/backtop/index.tsx +1 -0
  10. package/badge/_story/badge.stories.js +34 -2
  11. package/badge/index.tsx +4 -2
  12. package/banner/index.tsx +1 -0
  13. package/breadcrumb/bread-context.tsx +2 -2
  14. package/breadcrumb/index.tsx +2 -2
  15. package/breadcrumb/item.tsx +11 -3
  16. package/button/Button.tsx +2 -1
  17. package/button/buttonGroup.tsx +2 -1
  18. package/calendar/_story/Demo.tsx +3 -3
  19. package/card/cardGroup.tsx +1 -0
  20. package/card/index.tsx +1 -0
  21. package/cascader/_story/cascader.stories.js +17 -2
  22. package/cascader/index.tsx +4 -3
  23. package/cascader/item.tsx +3 -1
  24. package/checkbox/_story/checkbox.stories.js +1 -1
  25. package/checkbox/checkbox.tsx +4 -2
  26. package/checkbox/checkboxGroup.tsx +1 -1
  27. package/checkbox/context.ts +3 -3
  28. package/collapse/index.tsx +1 -0
  29. package/collapse/item.tsx +5 -0
  30. package/collapsible/index.tsx +2 -2
  31. package/configProvider/context.tsx +1 -1
  32. package/datePicker/_story/datePicker.stories.js +37 -0
  33. package/datePicker/datePicker.tsx +2 -1
  34. package/descriptions/index.tsx +2 -1
  35. package/descriptions/item.tsx +4 -1
  36. package/dist/css/semi.css +2 -2
  37. package/dist/css/semi.min.css +1 -1
  38. package/dist/umd/semi-ui.js +7560 -3681
  39. package/dist/umd/semi-ui.js.map +1 -1
  40. package/dist/umd/semi-ui.min.js +1 -1
  41. package/dist/umd/semi-ui.min.js.map +1 -1
  42. package/dropdown/context.ts +6 -1
  43. package/dropdown/dropdownItem.tsx +2 -1
  44. package/dropdown/dropdownTitle.tsx +2 -1
  45. package/dropdown/index.tsx +3 -1
  46. package/empty/index.tsx +1 -1
  47. package/form/arrayField.tsx +1 -0
  48. package/form/baseForm.tsx +3 -2
  49. package/form/group.tsx +2 -0
  50. package/form/hoc/withField.tsx +9 -6
  51. package/form/label.tsx +1 -0
  52. package/form/section.tsx +1 -1
  53. package/form/slot.tsx +2 -0
  54. package/grid/col.tsx +3 -1
  55. package/grid/row.tsx +5 -1
  56. package/input/__test__/input.test.js +12 -3
  57. package/input/__test__/textArea.test.js +53 -0
  58. package/layout/Sider.tsx +3 -1
  59. package/layout/index.tsx +2 -0
  60. package/layout/layout-context.ts +1 -1
  61. package/lib/cjs/_base/baseComponent.d.ts +2 -1
  62. package/lib/cjs/_portal/index.d.ts +3 -1
  63. package/lib/cjs/anchor/index.d.ts +2 -1
  64. package/lib/cjs/anchor/link.d.ts +3 -2
  65. package/lib/cjs/autoComplete/index.d.ts +2 -2
  66. package/lib/cjs/avatar/avatarGroup.d.ts +1 -1
  67. package/lib/cjs/avatar/interface.d.ts +2 -2
  68. package/lib/cjs/backtop/index.d.ts +1 -0
  69. package/lib/cjs/badge/index.d.ts +4 -2
  70. package/lib/cjs/banner/index.d.ts +2 -1
  71. package/lib/cjs/breadcrumb/bread-context.d.ts +2 -2
  72. package/lib/cjs/breadcrumb/index.d.ts +2 -2
  73. package/lib/cjs/breadcrumb/item.d.ts +15 -3
  74. package/lib/cjs/button/Button.d.ts +2 -1
  75. package/lib/cjs/button/buttonGroup.d.ts +1 -0
  76. package/lib/cjs/button/index.d.ts +1 -1
  77. package/lib/cjs/calendar/timeCol.d.ts +1 -1
  78. package/lib/cjs/card/cardGroup.d.ts +1 -0
  79. package/lib/cjs/card/index.d.ts +2 -1
  80. package/lib/cjs/cascader/index.d.ts +5 -3
  81. package/lib/cjs/cascader/index.js +1 -1
  82. package/lib/cjs/cascader/item.d.ts +3 -1
  83. package/lib/cjs/checkbox/checkbox.d.ts +5 -11
  84. package/lib/cjs/checkbox/checkbox.js +1 -1
  85. package/lib/cjs/checkbox/checkboxGroup.d.ts +1 -1
  86. package/lib/cjs/checkbox/checkboxInner.d.ts +1 -10
  87. package/lib/cjs/checkbox/context.d.ts +3 -3
  88. package/lib/cjs/collapse/index.d.ts +1 -0
  89. package/lib/cjs/collapse/item.d.ts +2 -0
  90. package/lib/cjs/collapse/item.js +4 -2
  91. package/lib/cjs/collapsible/index.d.ts +1 -1
  92. package/lib/cjs/configProvider/index.d.ts +1 -1
  93. package/lib/cjs/datePicker/datePicker.d.ts +3 -1
  94. package/lib/cjs/datePicker/insetInput.d.ts +1 -0
  95. package/lib/cjs/descriptions/index.d.ts +4 -3
  96. package/lib/cjs/descriptions/item.d.ts +4 -1
  97. package/lib/cjs/dropdown/context.d.ts +5 -3
  98. package/lib/cjs/dropdown/dropdownItem.d.ts +3 -3
  99. package/lib/cjs/dropdown/dropdownMenu.d.ts +1 -0
  100. package/lib/cjs/dropdown/dropdownTitle.d.ts +3 -3
  101. package/lib/cjs/dropdown/index.d.ts +3 -3
  102. package/lib/cjs/empty/index.d.ts +1 -1
  103. package/lib/cjs/form/arrayField.d.ts +1 -0
  104. package/lib/cjs/form/baseForm.d.ts +2 -2
  105. package/lib/cjs/form/baseForm.js +1 -1
  106. package/lib/cjs/form/errorMessage.d.ts +1 -1
  107. package/lib/cjs/form/group.d.ts +3 -1
  108. package/lib/cjs/form/hoc/withField.js +6 -4
  109. package/lib/cjs/form/label.d.ts +1 -0
  110. package/lib/cjs/form/section.d.ts +1 -1
  111. package/lib/cjs/form/slot.js +2 -0
  112. package/lib/cjs/grid/col.d.ts +3 -3
  113. package/lib/cjs/grid/row.d.ts +4 -3
  114. package/lib/cjs/iconButton/index.d.ts +1 -1
  115. package/lib/cjs/inputNumber/index.d.ts +1 -1
  116. package/lib/cjs/layout/Sider.d.ts +4 -1
  117. package/lib/cjs/layout/index.d.ts +2 -0
  118. package/lib/cjs/list/index.d.ts +1 -0
  119. package/lib/cjs/list/item.d.ts +5 -1
  120. package/lib/cjs/list/item.js +5 -1
  121. package/lib/cjs/modal/Modal.d.ts +1 -0
  122. package/lib/cjs/modal/Modal.js +3 -0
  123. package/lib/cjs/modal/ModalContent.d.ts +7 -2
  124. package/lib/cjs/modal/confirm.d.ts +10 -5
  125. package/lib/cjs/modal/useModal/index.d.ts +1 -0
  126. package/lib/cjs/navigation/Footer.d.ts +3 -5
  127. package/lib/cjs/navigation/Header.d.ts +4 -6
  128. package/lib/cjs/navigation/Item.d.ts +4 -6
  129. package/lib/cjs/navigation/OpenIconTransition.d.ts +2 -1
  130. package/lib/cjs/navigation/SubNav.d.ts +3 -5
  131. package/lib/cjs/navigation/SubNav.js +2 -2
  132. package/lib/cjs/navigation/SubNavTransition.d.ts +1 -1
  133. package/lib/cjs/navigation/index.d.ts +2 -2
  134. package/lib/cjs/navigation/nav-context.d.ts +21 -5
  135. package/lib/cjs/notification/NoticeTransition.d.ts +2 -2
  136. package/lib/cjs/notification/index.d.ts +3 -1
  137. package/lib/cjs/notification/notice.d.ts +3 -1
  138. package/lib/cjs/notification/useNotification/index.d.ts +1 -0
  139. package/lib/cjs/overflowList/intersectionObserver.d.ts +3 -2
  140. package/lib/cjs/pagination/index.d.ts +3 -1
  141. package/lib/cjs/pagination/index.js +15 -11
  142. package/lib/cjs/popconfirm/index.d.ts +4 -2
  143. package/lib/cjs/popover/index.d.ts +4 -2
  144. package/lib/cjs/progress/index.d.ts +1 -1
  145. package/lib/cjs/radio/radio.d.ts +1 -0
  146. package/lib/cjs/radio/radioGroup.d.ts +1 -0
  147. package/lib/cjs/scrollList/scrollItem.js +5 -1
  148. package/lib/cjs/select/index.d.ts +3 -1
  149. package/lib/cjs/select/optionGroup.d.ts +1 -1
  150. package/lib/cjs/sideSheet/SideSheetContent.d.ts +1 -0
  151. package/lib/cjs/sideSheet/SideSheetTransition.d.ts +1 -1
  152. package/lib/cjs/sideSheet/index.d.ts +3 -1
  153. package/lib/cjs/table/Body/BaseRow.d.ts +1 -1
  154. package/lib/cjs/table/Body/ExpandedRow.d.ts +4 -2
  155. package/lib/cjs/table/Body/SectionRow.d.ts +3 -1
  156. package/lib/cjs/table/Column.d.ts +1 -1
  157. package/lib/cjs/table/ColumnShape.d.ts +1 -1
  158. package/lib/cjs/table/CustomExpandIcon.d.ts +1 -1
  159. package/lib/cjs/table/Table.d.ts +10 -8
  160. package/lib/cjs/table/TableCell.d.ts +5 -3
  161. package/lib/cjs/table/TableHeaderRow.d.ts +3 -1
  162. package/lib/cjs/table/index.d.ts +4 -4
  163. package/lib/cjs/table/table-context.d.ts +7 -6
  164. package/lib/cjs/tabs/TabPane.d.ts +3 -1
  165. package/lib/cjs/tabs/TabPane.js +4 -0
  166. package/lib/cjs/tabs/index.js +2 -0
  167. package/lib/cjs/tabs/interface.d.ts +2 -1
  168. package/lib/cjs/tag/group.d.ts +1 -1
  169. package/lib/cjs/timePicker/Combobox.d.ts +1 -0
  170. package/lib/cjs/timeline/index.d.ts +2 -1
  171. package/lib/cjs/timeline/item.d.ts +1 -0
  172. package/lib/cjs/toast/ToastTransition.d.ts +1 -1
  173. package/lib/cjs/toast/index.d.ts +8 -16
  174. package/lib/cjs/toast/toast.d.ts +4 -2
  175. package/lib/cjs/toast/useToast/index.d.ts +1 -0
  176. package/lib/cjs/tooltip/index.d.ts +4 -2
  177. package/lib/cjs/tooltip/index.js +1 -1
  178. package/lib/cjs/transfer/index.d.ts +4 -3
  179. package/lib/cjs/transfer/index.js +5 -2
  180. package/lib/cjs/tree/index.d.ts +13 -11
  181. package/lib/cjs/tree/nodeList.d.ts +1 -1
  182. package/lib/cjs/tree/treeContext.d.ts +10 -10
  183. package/lib/cjs/tree/treeNode.d.ts +11 -9
  184. package/lib/cjs/tree/treeNode.js +2 -0
  185. package/lib/cjs/treeSelect/index.d.ts +7 -5
  186. package/lib/cjs/typography/copyable.d.ts +1 -1
  187. package/lib/cjs/upload/index.d.ts +2 -2
  188. package/lib/es/_base/baseComponent.d.ts +2 -1
  189. package/lib/es/_portal/index.d.ts +3 -1
  190. package/lib/es/anchor/index.d.ts +2 -1
  191. package/lib/es/anchor/link.d.ts +3 -2
  192. package/lib/es/autoComplete/index.d.ts +2 -2
  193. package/lib/es/avatar/avatarGroup.d.ts +1 -1
  194. package/lib/es/avatar/interface.d.ts +2 -2
  195. package/lib/es/backtop/index.d.ts +1 -0
  196. package/lib/es/badge/index.d.ts +4 -2
  197. package/lib/es/banner/index.d.ts +2 -1
  198. package/lib/es/breadcrumb/bread-context.d.ts +2 -2
  199. package/lib/es/breadcrumb/index.d.ts +2 -2
  200. package/lib/es/breadcrumb/item.d.ts +15 -3
  201. package/lib/es/button/Button.d.ts +2 -1
  202. package/lib/es/button/buttonGroup.d.ts +1 -0
  203. package/lib/es/button/index.d.ts +1 -1
  204. package/lib/es/calendar/timeCol.d.ts +1 -1
  205. package/lib/es/card/cardGroup.d.ts +1 -0
  206. package/lib/es/card/index.d.ts +2 -1
  207. package/lib/es/cascader/index.d.ts +5 -3
  208. package/lib/es/cascader/index.js +1 -1
  209. package/lib/es/cascader/item.d.ts +3 -1
  210. package/lib/es/checkbox/checkbox.d.ts +5 -11
  211. package/lib/es/checkbox/checkbox.js +1 -1
  212. package/lib/es/checkbox/checkboxGroup.d.ts +1 -1
  213. package/lib/es/checkbox/checkboxInner.d.ts +1 -10
  214. package/lib/es/checkbox/context.d.ts +3 -3
  215. package/lib/es/collapse/index.d.ts +1 -0
  216. package/lib/es/collapse/item.d.ts +2 -0
  217. package/lib/es/collapse/item.js +4 -2
  218. package/lib/es/collapsible/index.d.ts +1 -1
  219. package/lib/es/configProvider/index.d.ts +1 -1
  220. package/lib/es/datePicker/datePicker.d.ts +3 -1
  221. package/lib/es/datePicker/insetInput.d.ts +1 -0
  222. package/lib/es/descriptions/index.d.ts +4 -3
  223. package/lib/es/descriptions/item.d.ts +4 -1
  224. package/lib/es/dropdown/context.d.ts +5 -3
  225. package/lib/es/dropdown/dropdownItem.d.ts +3 -3
  226. package/lib/es/dropdown/dropdownMenu.d.ts +1 -0
  227. package/lib/es/dropdown/dropdownTitle.d.ts +3 -3
  228. package/lib/es/dropdown/index.d.ts +3 -3
  229. package/lib/es/empty/index.d.ts +1 -1
  230. package/lib/es/form/arrayField.d.ts +1 -0
  231. package/lib/es/form/baseForm.d.ts +2 -2
  232. package/lib/es/form/baseForm.js +1 -1
  233. package/lib/es/form/errorMessage.d.ts +1 -1
  234. package/lib/es/form/group.d.ts +3 -1
  235. package/lib/es/form/hoc/withField.js +6 -4
  236. package/lib/es/form/label.d.ts +1 -0
  237. package/lib/es/form/section.d.ts +1 -1
  238. package/lib/es/form/slot.js +2 -0
  239. package/lib/es/grid/col.d.ts +3 -3
  240. package/lib/es/grid/row.d.ts +4 -3
  241. package/lib/es/iconButton/index.d.ts +1 -1
  242. package/lib/es/inputNumber/index.d.ts +1 -1
  243. package/lib/es/layout/Sider.d.ts +4 -1
  244. package/lib/es/layout/index.d.ts +2 -0
  245. package/lib/es/list/index.d.ts +1 -0
  246. package/lib/es/list/item.d.ts +5 -1
  247. package/lib/es/list/item.js +5 -1
  248. package/lib/es/modal/Modal.d.ts +1 -0
  249. package/lib/es/modal/Modal.js +3 -0
  250. package/lib/es/modal/ModalContent.d.ts +7 -2
  251. package/lib/es/modal/confirm.d.ts +10 -5
  252. package/lib/es/modal/useModal/index.d.ts +1 -0
  253. package/lib/es/navigation/Footer.d.ts +3 -5
  254. package/lib/es/navigation/Header.d.ts +4 -6
  255. package/lib/es/navigation/Item.d.ts +4 -6
  256. package/lib/es/navigation/OpenIconTransition.d.ts +2 -1
  257. package/lib/es/navigation/SubNav.d.ts +3 -5
  258. package/lib/es/navigation/SubNav.js +2 -2
  259. package/lib/es/navigation/SubNavTransition.d.ts +1 -1
  260. package/lib/es/navigation/index.d.ts +2 -2
  261. package/lib/es/navigation/nav-context.d.ts +21 -5
  262. package/lib/es/notification/NoticeTransition.d.ts +2 -2
  263. package/lib/es/notification/index.d.ts +3 -1
  264. package/lib/es/notification/notice.d.ts +3 -1
  265. package/lib/es/notification/useNotification/index.d.ts +1 -0
  266. package/lib/es/overflowList/intersectionObserver.d.ts +3 -2
  267. package/lib/es/pagination/index.d.ts +3 -1
  268. package/lib/es/pagination/index.js +15 -11
  269. package/lib/es/popconfirm/index.d.ts +4 -2
  270. package/lib/es/popover/index.d.ts +4 -2
  271. package/lib/es/progress/index.d.ts +1 -1
  272. package/lib/es/radio/radio.d.ts +1 -0
  273. package/lib/es/radio/radioGroup.d.ts +1 -0
  274. package/lib/es/scrollList/scrollItem.js +5 -1
  275. package/lib/es/select/index.d.ts +3 -1
  276. package/lib/es/select/optionGroup.d.ts +1 -1
  277. package/lib/es/sideSheet/SideSheetContent.d.ts +1 -0
  278. package/lib/es/sideSheet/SideSheetTransition.d.ts +1 -1
  279. package/lib/es/sideSheet/index.d.ts +3 -1
  280. package/lib/es/table/Body/BaseRow.d.ts +1 -1
  281. package/lib/es/table/Body/ExpandedRow.d.ts +4 -2
  282. package/lib/es/table/Body/SectionRow.d.ts +3 -1
  283. package/lib/es/table/Column.d.ts +1 -1
  284. package/lib/es/table/ColumnShape.d.ts +1 -1
  285. package/lib/es/table/CustomExpandIcon.d.ts +1 -1
  286. package/lib/es/table/Table.d.ts +10 -8
  287. package/lib/es/table/TableCell.d.ts +5 -3
  288. package/lib/es/table/TableHeaderRow.d.ts +3 -1
  289. package/lib/es/table/index.d.ts +4 -4
  290. package/lib/es/table/table-context.d.ts +7 -6
  291. package/lib/es/tabs/TabPane.d.ts +3 -1
  292. package/lib/es/tabs/TabPane.js +4 -0
  293. package/lib/es/tabs/index.js +2 -0
  294. package/lib/es/tabs/interface.d.ts +2 -1
  295. package/lib/es/tag/group.d.ts +1 -1
  296. package/lib/es/timePicker/Combobox.d.ts +1 -0
  297. package/lib/es/timeline/index.d.ts +2 -1
  298. package/lib/es/timeline/item.d.ts +1 -0
  299. package/lib/es/toast/ToastTransition.d.ts +1 -1
  300. package/lib/es/toast/index.d.ts +8 -16
  301. package/lib/es/toast/toast.d.ts +4 -2
  302. package/lib/es/toast/useToast/index.d.ts +1 -0
  303. package/lib/es/tooltip/index.d.ts +4 -2
  304. package/lib/es/tooltip/index.js +1 -1
  305. package/lib/es/transfer/index.d.ts +4 -3
  306. package/lib/es/transfer/index.js +6 -2
  307. package/lib/es/tree/index.d.ts +13 -11
  308. package/lib/es/tree/nodeList.d.ts +1 -1
  309. package/lib/es/tree/treeContext.d.ts +10 -10
  310. package/lib/es/tree/treeNode.d.ts +11 -9
  311. package/lib/es/tree/treeNode.js +2 -0
  312. package/lib/es/treeSelect/index.d.ts +7 -5
  313. package/lib/es/typography/copyable.d.ts +1 -1
  314. package/lib/es/upload/index.d.ts +2 -2
  315. package/list/index.tsx +1 -0
  316. package/list/item.tsx +6 -1
  317. package/modal/Modal.tsx +3 -0
  318. package/modal/ModalContent.tsx +9 -3
  319. package/modal/confirm.tsx +1 -1
  320. package/navigation/Footer.tsx +3 -1
  321. package/navigation/Header.tsx +3 -1
  322. package/navigation/Item.tsx +4 -3
  323. package/navigation/OpenIconTransition.tsx +2 -1
  324. package/navigation/SubNav.tsx +4 -3
  325. package/navigation/SubNavTransition.tsx +1 -1
  326. package/navigation/nav-context.ts +22 -1
  327. package/notification/NoticeTransition.tsx +1 -1
  328. package/notification/index.tsx +3 -1
  329. package/notification/notice.tsx +3 -1
  330. package/overflowList/_story/overflowList.stories.js +44 -0
  331. package/overflowList/intersectionObserver.tsx +2 -1
  332. package/package.json +9 -9
  333. package/pagination/index.tsx +4 -1
  334. package/popconfirm/index.tsx +3 -1
  335. package/popover/index.tsx +3 -1
  336. package/radio/radio.tsx +1 -0
  337. package/radio/radioGroup.tsx +1 -0
  338. package/scrollList/_story/SingleWheelList/index.js +72 -0
  339. package/scrollList/_story/scrolllist.stories.js +7 -0
  340. package/scrollList/scrollItem.tsx +4 -1
  341. package/select/index.tsx +2 -1
  342. package/select/utils.tsx +1 -1
  343. package/sideSheet/SideSheetContent.tsx +1 -0
  344. package/sideSheet/SideSheetTransition.tsx +1 -1
  345. package/sideSheet/index.tsx +3 -2
  346. package/table/Body/ExpandedRow.tsx +3 -1
  347. package/table/Body/SectionRow.tsx +3 -1
  348. package/table/Body/index.tsx +3 -2
  349. package/table/Table.tsx +4 -3
  350. package/table/TableCell.tsx +6 -4
  351. package/table/TableHeaderRow.tsx +3 -1
  352. package/table/__test__/table.test.js +1 -0
  353. package/table/table-context.ts +10 -6
  354. package/tabs/TabPane.tsx +4 -0
  355. package/tabs/_story/tabs.stories.js +72 -0
  356. package/tabs/index.tsx +3 -2
  357. package/tabs/interface.ts +2 -1
  358. package/tag/group.tsx +5 -5
  359. package/tagInput/_story/tagInput.stories.js +14 -1
  360. package/timePicker/TimePicker.tsx +2 -2
  361. package/timePicker/_story/timepicker.stories.js +20 -1
  362. package/timeline/index.tsx +1 -0
  363. package/timeline/item.tsx +1 -0
  364. package/toast/ToastTransition.tsx +1 -1
  365. package/toast/toast.tsx +3 -1
  366. package/tooltip/_story/tooltip.stories.js +127 -15
  367. package/tooltip/index.tsx +3 -2
  368. package/transfer/index.tsx +7 -2
  369. package/tree/index.tsx +12 -11
  370. package/tree/treeContext.tsx +10 -10
  371. package/tree/treeNode.tsx +10 -7
  372. package/treeSelect/index.tsx +5 -4
  373. package/typography/__test__/typography.test.js +1 -0
  374. package/upload/__test__/upload.test.js +2 -0
  375. package/upload/_story/upload.stories.js +2 -2
  376. package/upload/index.tsx +1 -1
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
+ import { RowContextType } from './row';
6
7
  export interface ColSize {
7
8
  span?: number;
8
9
  order?: number;
@@ -28,9 +29,7 @@ export interface ColProps {
28
29
  xxl?: number | ColSize;
29
30
  }
30
31
  declare class Col extends React.Component<ColProps> {
31
- static contextType: React.Context<{
32
- gutters: import("./row").Gutter | [import("./row").Gutter, import("./row").Gutter];
33
- }>;
32
+ static contextType: React.Context<RowContextType>;
34
33
  static propTypes: {
35
34
  span: PropTypes.Requireable<number>;
36
35
  order: PropTypes.Requireable<number>;
@@ -50,6 +49,7 @@ declare class Col extends React.Component<ColProps> {
50
49
  static defaultProps: {
51
50
  prefixCls: string;
52
51
  };
52
+ context: RowContextType;
53
53
  render(): JSX.Element;
54
54
  }
55
55
  export default Col;
@@ -4,9 +4,10 @@
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import '@douyinfe/semi-foundation/lib/cjs/grid/grid.css';
7
- export declare const RowContext: React.Context<{
8
- gutters: Gutter | [Gutter, Gutter];
9
- }>;
7
+ export interface RowContextType {
8
+ gutters?: Gutter | [Gutter, Gutter];
9
+ }
10
+ export declare const RowContext: React.Context<RowContextType>;
10
11
  export declare type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
11
12
  export declare type Gutter = number | Partial<Record<Breakpoint, number>>;
12
13
  export interface RowProps {
@@ -31,7 +31,7 @@ declare class IconButton extends PureComponent<IconButtonProps> {
31
31
  style: PropTypes.Requireable<object>;
32
32
  loading: PropTypes.Requireable<boolean>;
33
33
  prefixCls: PropTypes.Requireable<string>;
34
- icon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
34
+ icon: PropTypes.Requireable<object | PropTypes.ReactNodeLike>;
35
35
  iconSize: PropTypes.Requireable<string>;
36
36
  noHorizontalPadding: PropTypes.Requireable<string | boolean | any[]>;
37
37
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -109,7 +109,7 @@ declare class InputNumber extends BaseComponent<InputNumberProps, InputNumberSta
109
109
  handleMouseUp: (e: React.MouseEvent) => void;
110
110
  handleMouseLeave: (e: React.MouseEvent) => void;
111
111
  renderButtons: () => JSX.Element;
112
- renderSuffix: () => React.ReactNode;
112
+ renderSuffix: () => string | number | boolean | React.ReactFragment | JSX.Element;
113
113
  render(): JSX.Element;
114
114
  }
115
115
  declare const _default: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,6 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { ContextType } from './layout-context';
3
4
  export interface ResponsiveMap {
4
5
  xs: string;
5
6
  sm: string;
@@ -12,6 +13,7 @@ export interface SiderProps {
12
13
  prefixCls?: string;
13
14
  style?: CSSProperties;
14
15
  className?: string;
16
+ children?: React.ReactNode | undefined;
15
17
  breakpoint?: Array<keyof ResponsiveMap>;
16
18
  onBreakpoint?: (screen: keyof ResponsiveMap, match: boolean) => void;
17
19
  'aria-label'?: React.AriaAttributes['aria-label'];
@@ -30,8 +32,9 @@ declare class Sider extends React.PureComponent<SiderProps> {
30
32
  static defaultProps: {
31
33
  prefixCls: string;
32
34
  };
33
- static contextType: React.Context<import("./layout-context").ContextType>;
35
+ static contextType: React.Context<ContextType>;
34
36
  unRegisters: Array<() => void>;
37
+ context: ContextType;
35
38
  uniqueId: string;
36
39
  constructor(props: SiderProps);
37
40
  componentDidMount(): void;
@@ -10,11 +10,13 @@ export interface BasicProps {
10
10
  className?: string;
11
11
  tagName?: keyof HTMLElementTagNameMap;
12
12
  type?: string;
13
+ children?: React.ReactNode | undefined;
13
14
  }
14
15
  export interface BasicLayoutProps {
15
16
  prefixCls?: string;
16
17
  style?: CSSProperties;
17
18
  className?: string;
19
+ children?: React.ReactNode | undefined;
18
20
  hasSider?: boolean;
19
21
  tagName?: keyof HTMLElementTagNameMap;
20
22
  }
@@ -8,6 +8,7 @@ export { ListItemProps } from './item';
8
8
  export interface ListProps<T> {
9
9
  style?: React.CSSProperties;
10
10
  className?: string;
11
+ children?: React.ReactNode | undefined;
11
12
  bordered?: boolean;
12
13
  footer?: React.ReactNode;
13
14
  header?: React.ReactNode;
@@ -1,11 +1,13 @@
1
1
  import React, { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { ListContextValue } from './list-context';
3
4
  export interface ListItemProps {
4
5
  extra?: React.ReactNode;
5
6
  header?: React.ReactNode;
6
7
  main?: React.ReactNode;
7
8
  align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
8
9
  className?: string;
10
+ children?: React.ReactNode | undefined;
9
11
  style?: React.CSSProperties;
10
12
  onClick?: React.MouseEventHandler<HTMLLIElement>;
11
13
  onRightClick?: React.MouseEventHandler<HTMLLIElement>;
@@ -13,13 +15,14 @@ export interface ListItemProps {
13
15
  onMouseEnter?: React.MouseEventHandler<HTMLLIElement>;
14
16
  }
15
17
  export default class ListItem extends PureComponent<ListItemProps> {
16
- static contextType: React.Context<import("./list-context").ListContextValue>;
18
+ static contextType: React.Context<ListContextValue>;
17
19
  static propTypes: {
18
20
  extra: PropTypes.Requireable<PropTypes.ReactNodeLike>;
19
21
  header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
20
22
  main: PropTypes.Requireable<PropTypes.ReactNodeLike>;
21
23
  align: PropTypes.Requireable<string>;
22
24
  className: PropTypes.Requireable<string>;
25
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
23
26
  style: PropTypes.Requireable<object>;
24
27
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
25
28
  onRightClick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -31,6 +34,7 @@ export default class ListItem extends PureComponent<ListItemProps> {
31
34
  onMouseEnter: (...args: any[]) => void;
32
35
  onMouseLeave: (...args: any[]) => void;
33
36
  };
37
+ context: ListContextValue;
34
38
  wrapWithGrid(content: React.ReactNode): JSX.Element;
35
39
  render(): JSX.Element;
36
40
  }
@@ -109,7 +109,10 @@ class ListItem extends _react.PureComponent {
109
109
  }, main) : null);
110
110
  }
111
111
 
112
- let content = /*#__PURE__*/_react.default.createElement("li", {
112
+ let content =
113
+ /*#__PURE__*/
114
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
115
+ _react.default.createElement("li", {
113
116
  className: itemCls,
114
117
  style: style,
115
118
  onClick: handleClick,
@@ -137,6 +140,7 @@ ListItem.propTypes = {
137
140
  main: _propTypes.default.node,
138
141
  align: _propTypes.default.oneOf(_constants.strings.ALIGN),
139
142
  className: _propTypes.default.string,
143
+ children: _propTypes.default.node,
140
144
  style: _propTypes.default.object,
141
145
  onClick: _propTypes.default.func,
142
146
  onRightClick: _propTypes.default.func,
@@ -10,6 +10,7 @@ export declare type ConfirmType = 'leftTop' | 'leftBottom' | 'rightTop' | 'right
10
10
  export declare type Directions = 'ltr' | 'rtl';
11
11
  export interface ModalReactProps extends ModalProps {
12
12
  cancelButtonProps?: ButtonProps;
13
+ children?: React.ReactNode | undefined;
13
14
  okButtonProps?: ButtonProps;
14
15
  bodyStyle?: CSSProperties;
15
16
  maskStyle?: CSSProperties;
@@ -253,6 +253,9 @@ class Modal extends _baseComponent.default {
253
253
  this.props.onOk(e);
254
254
  },
255
255
  notifyClose: () => {
256
+ var _a, _b;
257
+
258
+ (_b = (_a = this.props.motion) === null || _a === void 0 ? void 0 : _a.didLeave) === null || _b === void 0 ? void 0 : _b.call(_a);
256
259
  this.props.afterClose();
257
260
  },
258
261
  toggleHidden: (hidden, callback) => {
@@ -1,9 +1,13 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { ContextValue } from '../configProvider/context';
3
4
  import BaseComponent from '../_base/baseComponent';
4
5
  import ModalContentFoundation, { ModalContentAdapter, ModalContentProps, ModalContentState } from '@douyinfe/semi-foundation/lib/cjs/modal/modalContentFoundation';
5
- export default class ModalContent extends BaseComponent<ModalContentProps, ModalContentState> {
6
- static contextType: React.Context<import("../configProvider/context").ContextValue>;
6
+ export interface ModalContentReactProps extends ModalContentProps {
7
+ children?: React.ReactNode | undefined;
8
+ }
9
+ export default class ModalContent extends BaseComponent<ModalContentReactProps, ModalContentState> {
10
+ static contextType: React.Context<ContextValue>;
7
11
  static propTypes: {
8
12
  close: PropTypes.Requireable<(...args: any[]) => any>;
9
13
  getContainerContext: PropTypes.Requireable<(...args: any[]) => any>;
@@ -21,6 +25,7 @@ export default class ModalContent extends BaseComponent<ModalContentProps, Modal
21
25
  private timeoutId;
22
26
  modalDialogRef: React.MutableRefObject<HTMLDivElement>;
23
27
  foundation: ModalContentFoundation;
28
+ context: ContextValue;
24
29
  constructor(props: ModalContentProps);
25
30
  get adapter(): ModalContentAdapter;
26
31
  componentDidMount(): void;
@@ -10,11 +10,12 @@ export default function confirm(props: ConfirmProps): {
10
10
  };
11
11
  export declare function withInfo(props: ModalReactProps): {
12
12
  cancelButtonProps?: import("../button").BaseButtonProps;
13
+ children?: React.ReactNode;
13
14
  okButtonProps?: import("../button").BaseButtonProps;
14
15
  bodyStyle?: React.CSSProperties;
15
16
  maskStyle?: React.CSSProperties;
16
17
  style?: React.CSSProperties;
17
- icon: React.ReactNode | JSX.Element;
18
+ icon: string | number | boolean | React.ReactFragment | JSX.Element;
18
19
  closeIcon?: React.ReactNode;
19
20
  title?: React.ReactNode;
20
21
  content?: React.ReactNode;
@@ -51,11 +52,12 @@ export declare function withInfo(props: ModalReactProps): {
51
52
  };
52
53
  export declare function withSuccess(props: ModalReactProps): {
53
54
  cancelButtonProps?: import("../button").BaseButtonProps;
55
+ children?: React.ReactNode;
54
56
  okButtonProps?: import("../button").BaseButtonProps;
55
57
  bodyStyle?: React.CSSProperties;
56
58
  maskStyle?: React.CSSProperties;
57
59
  style?: React.CSSProperties;
58
- icon: React.ReactNode | JSX.Element;
60
+ icon: string | number | boolean | React.ReactFragment | JSX.Element;
59
61
  closeIcon?: React.ReactNode;
60
62
  title?: React.ReactNode;
61
63
  content?: React.ReactNode;
@@ -92,11 +94,12 @@ export declare function withSuccess(props: ModalReactProps): {
92
94
  };
93
95
  export declare function withWarning(props: ModalReactProps): {
94
96
  cancelButtonProps?: import("../button").BaseButtonProps;
97
+ children?: React.ReactNode;
95
98
  okButtonProps?: import("../button").BaseButtonProps;
96
99
  bodyStyle?: React.CSSProperties;
97
100
  maskStyle?: React.CSSProperties;
98
101
  style?: React.CSSProperties;
99
- icon: React.ReactNode | JSX.Element;
102
+ icon: string | number | boolean | React.ReactFragment | JSX.Element;
100
103
  closeIcon?: React.ReactNode;
101
104
  title?: React.ReactNode;
102
105
  content?: React.ReactNode;
@@ -133,11 +136,12 @@ export declare function withWarning(props: ModalReactProps): {
133
136
  };
134
137
  export declare function withError(props: ModalReactProps): {
135
138
  cancelButtonProps?: import("../button").BaseButtonProps;
139
+ children?: React.ReactNode;
136
140
  okButtonProps?: import("../button").BaseButtonProps;
137
141
  bodyStyle?: React.CSSProperties;
138
142
  maskStyle?: React.CSSProperties;
139
143
  style?: React.CSSProperties;
140
- icon: React.ReactNode | JSX.Element;
144
+ icon: string | number | boolean | React.ReactFragment | JSX.Element;
141
145
  closeIcon?: React.ReactNode;
142
146
  title?: React.ReactNode;
143
147
  content?: React.ReactNode;
@@ -174,11 +178,12 @@ export declare function withError(props: ModalReactProps): {
174
178
  };
175
179
  export declare function withConfirm(props: ModalReactProps): {
176
180
  cancelButtonProps?: import("../button").BaseButtonProps;
181
+ children?: React.ReactNode;
177
182
  okButtonProps?: import("../button").BaseButtonProps;
178
183
  bodyStyle?: React.CSSProperties;
179
184
  maskStyle?: React.CSSProperties;
180
185
  style?: React.CSSProperties;
181
- icon: React.ReactNode | JSX.Element;
186
+ icon: string | number | boolean | React.ReactFragment | JSX.Element;
182
187
  closeIcon?: React.ReactNode;
183
188
  title?: React.ReactNode;
184
189
  content?: React.ReactNode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfirmProps } from '../confirm';
2
3
  import { ModalReactProps } from '../Modal';
3
4
  export default function useModal(): (JSX.Element | {
@@ -1,17 +1,14 @@
1
1
  import React, { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import '@douyinfe/semi-foundation/lib/cjs/navigation/navigation.css';
4
+ import { NavContextType } from './nav-context';
4
5
  import { BaseProps } from '../_base/baseComponent';
5
6
  export interface NavFooterProps extends BaseProps {
6
7
  collapseButton?: React.ReactNode | boolean;
7
8
  collapseText?: (collapsed?: boolean) => React.ReactNode;
8
9
  }
9
10
  export default class NavFooter extends PureComponent<NavFooterProps> {
10
- static contextType: React.Context<{
11
- isCollapsed: boolean;
12
- selectedKeys: any[];
13
- openKeys: any[];
14
- }>;
11
+ static contextType: React.Context<NavContextType>;
15
12
  static propTypes: {
16
13
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
14
  style: PropTypes.Requireable<object>;
@@ -22,6 +19,7 @@ export default class NavFooter extends PureComponent<NavFooterProps> {
22
19
  static defaultProps: {
23
20
  collapseButton: boolean;
24
21
  };
22
+ context: NavContextType;
25
23
  renderCollapseButton: () => JSX.Element;
26
24
  render(): JSX.Element;
27
25
  }
@@ -1,6 +1,7 @@
1
1
  import React, { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import '@douyinfe/semi-foundation/lib/cjs/navigation/navigation.css';
4
+ import { NavContextType } from './nav-context';
4
5
  import { BaseProps } from '../_base/baseComponent';
5
6
  export declare type Logo = React.ReactNode;
6
7
  export interface NavHeaderProps extends BaseProps {
@@ -11,14 +12,10 @@ export interface NavHeaderProps extends BaseProps {
11
12
  text?: React.ReactNode;
12
13
  }
13
14
  export default class NavHeader extends PureComponent<NavHeaderProps> {
14
- static contextType: React.Context<{
15
- isCollapsed: boolean;
16
- selectedKeys: any[];
17
- openKeys: any[];
18
- }>;
15
+ static contextType: React.Context<NavContextType>;
19
16
  static propTypes: {
20
17
  prefixCls: PropTypes.Requireable<string>;
21
- logo: PropTypes.Requireable<PropTypes.ReactNodeLike>;
18
+ logo: PropTypes.Requireable<object | PropTypes.ReactNodeLike>;
22
19
  text: PropTypes.Requireable<PropTypes.ReactNodeLike>;
23
20
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
24
21
  style: PropTypes.Requireable<object>;
@@ -29,6 +26,7 @@ export default class NavHeader extends PureComponent<NavHeaderProps> {
29
26
  static defaultProps: {
30
27
  prefixCls: string;
31
28
  };
29
+ context: NavContextType;
32
30
  renderLogo(logo: React.ReactNode): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
33
31
  render(): JSX.Element;
34
32
  }
@@ -2,6 +2,7 @@ import BaseComponent, { BaseProps } from '../_base/baseComponent';
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import ItemFoundation, { ItemAdapter, ItemProps, SelectedItemProps } from '@douyinfe/semi-foundation/lib/cjs/navigation/itemFoundation';
5
+ import { NavContextType } from './nav-context';
5
6
  export interface NavItemProps extends ItemProps, BaseProps {
6
7
  children?: React.ReactNode;
7
8
  disabled?: boolean;
@@ -25,11 +26,7 @@ export interface NavItemState {
25
26
  tooltipShow: boolean;
26
27
  }
27
28
  export default class NavItem extends BaseComponent<NavItemProps, NavItemState> {
28
- static contextType: React.Context<{
29
- isCollapsed: boolean;
30
- selectedKeys: any[];
31
- openKeys: any[];
32
- }>;
29
+ static contextType: React.Context<NavContextType>;
33
30
  static propTypes: {
34
31
  text: PropTypes.Requireable<PropTypes.ReactNodeLike>;
35
32
  itemKey: PropTypes.Requireable<string | number>;
@@ -60,6 +57,7 @@ export default class NavItem extends BaseComponent<NavItemProps, NavItemState> {
60
57
  disabled: boolean;
61
58
  };
62
59
  foundation: ItemFoundation;
60
+ context: NavContextType;
63
61
  constructor(props: NavItemProps);
64
62
  _invokeContextFunc(funcName: string, ...args: any[]): any;
65
63
  get adapter(): ItemAdapter<NavItemProps, NavItemState>;
@@ -68,5 +66,5 @@ export default class NavItem extends BaseComponent<NavItemProps, NavItemState> {
68
66
  wrapTooltip: (node: React.ReactNode) => JSX.Element;
69
67
  handleClick: (e: React.MouseEvent) => void;
70
68
  handleKeyPress: (e: React.KeyboardEvent) => void;
71
- render(): {} | React.ReactElement<any, string | React.JSXElementConstructor<any>>;
69
+ render(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
72
70
  }
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export interface OpenIconTransitionProps {
4
- children?: React.ReactNode;
4
+ children?: React.ReactNode | ((transitionArgus?: any) => React.ReactNode);
5
+ isCollapsed?: boolean;
5
6
  isOpen?: boolean;
6
7
  }
7
8
  declare function OpenIconTransition(props?: OpenIconTransitionProps): JSX.Element;
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import '@douyinfe/semi-foundation/lib/cjs/navigation/navigation.css';
5
5
  import SubNavFoundation, { SubNavAdapter } from '@douyinfe/semi-foundation/lib/cjs/navigation/subNavFoundation';
6
+ import { NavContextType } from './nav-context';
6
7
  export interface ToggleIcon {
7
8
  open?: string;
8
9
  closed?: string;
@@ -26,11 +27,7 @@ export interface SubNavState {
26
27
  isHovered: boolean;
27
28
  }
28
29
  export default class SubNav extends BaseComponent<SubNavProps, SubNavState> {
29
- static contextType: React.Context<{
30
- isCollapsed: boolean;
31
- selectedKeys: any[];
32
- openKeys: any[];
33
- }>;
30
+ static contextType: React.Context<NavContextType>;
34
31
  static propTypes: {
35
32
  /**
36
33
  * Unique identification
@@ -89,6 +86,7 @@ export default class SubNav extends BaseComponent<SubNavProps, SubNavState> {
89
86
  titleRef: React.RefObject<HTMLDivElement>;
90
87
  itemRef: React.RefObject<HTMLLIElement>;
91
88
  foundation: SubNavFoundation;
89
+ context: NavContextType;
92
90
  constructor(props: SubNavProps);
93
91
  setItemRef: (ref: HTMLLIElement | React.RefObject<HTMLLIElement>) => void;
94
92
  setTitleRef: (ref: HTMLDivElement | React.RefObject<HTMLDivElement>) => void;
@@ -141,12 +141,12 @@ class SubNav extends _baseComponent.default {
141
141
  getIsSelected: itemKey => {
142
142
  var _context;
143
143
 
144
- return Boolean(!(0, _isNullOrUndefined.default)(itemKey) && (0, _includes.default)(_context = (0, _get2.default)(this.context, 'selectedKeys', [])).call(_context, itemKey));
144
+ return Boolean(!(0, _isNullOrUndefined.default)(itemKey) && (0, _includes.default)(_context = (0, _get2.default)(this.context, 'selectedKeys', [])).call(_context, String(itemKey)));
145
145
  },
146
146
  getIsOpen: () => {
147
147
  var _context2;
148
148
 
149
- return Boolean(this.context && this.context.openKeys && (0, _includes.default)(_context2 = this.context.openKeys).call(_context2, this.props.itemKey));
149
+ return Boolean(this.context && this.context.openKeys && (0, _includes.default)(_context2 = this.context.openKeys).call(_context2, String(this.props.itemKey)));
150
150
  }
151
151
  });
152
152
  }
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
3
  import { Motion } from '@douyinfe/semi-foundation/lib/cjs/utils/type';
4
4
  export interface SubNavTransitionProps {
5
- children?: React.ReactNode;
5
+ children?: React.ReactNode | ((transitionProps?: any) => React.ReactNode);
6
6
  isCollapsed?: boolean;
7
7
  maxHeight?: number;
8
8
  motion?: Motion;
@@ -107,8 +107,8 @@ declare class Nav extends BaseComponent<NavProps, NavState> {
107
107
  className: PropTypes.Requireable<string>;
108
108
  toggleIconPosition: PropTypes.Requireable<string>;
109
109
  prefixCls: PropTypes.Requireable<string>;
110
- header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
111
- footer: PropTypes.Requireable<PropTypes.ReactNodeLike>;
110
+ header: PropTypes.Requireable<object | PropTypes.ReactNodeLike>;
111
+ footer: PropTypes.Requireable<object | PropTypes.ReactNodeLike>;
112
112
  limitIndent: PropTypes.Requireable<boolean>;
113
113
  };
114
114
  static defaultProps: {
@@ -1,7 +1,23 @@
1
1
  import React from 'react';
2
- declare const NavContext: React.Context<{
3
- isCollapsed: boolean;
4
- selectedKeys: any[];
5
- openKeys: any[];
6
- }>;
2
+ import { NavProps } from './index';
3
+ import { Locale } from '../locale/interface';
4
+ export interface NavContextType {
5
+ isCollapsed?: boolean;
6
+ mode?: NavProps['mode'];
7
+ openKeys?: string[];
8
+ onCollapseChange?: NavProps['onCollapseChange'];
9
+ prefixCls?: string;
10
+ selectedKeys?: string[];
11
+ toggleIconPosition?: string;
12
+ selectedKeysIsControlled?: boolean;
13
+ openKeysIsControlled?: boolean;
14
+ limitIndent?: boolean;
15
+ isInSubNav?: boolean;
16
+ locale?: Locale['Navigation'];
17
+ subNavMotion?: NavProps['subNavMotion'];
18
+ subNavCloseDelay?: NavProps['subNavCloseDelay'];
19
+ subNavOpenDelay?: NavProps['subNavOpenDelay'];
20
+ canUpdateOpenKeys?: boolean;
21
+ }
22
+ declare const NavContext: React.Context<NavContextType>;
7
23
  export default NavContext;
@@ -1,10 +1,10 @@
1
- import React, { JSXElementConstructor } from 'react';
1
+ import React from 'react';
2
2
  import { NoticePosition } from '@douyinfe/semi-foundation/lib/cjs/notification/notificationFoundation';
3
3
  import { Motion } from '../_base/base';
4
4
  export declare type ArgsType<T> = T extends (...args: infer A) => any ? A : never;
5
5
  export interface NoticeTransitionProps {
6
6
  position?: NoticePosition;
7
7
  motion?: Motion<NoticeTransitionProps>;
8
- children?: JSXElementConstructor<any> | React.ReactChildren;
8
+ children?: React.ReactNode | ((TransitionProps?: any) => React.ReactNode);
9
9
  }
10
10
  export default function NoticeTransition(props?: NoticeTransitionProps): JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { ContextValue } from '../configProvider/context';
3
4
  import { ConfigProps, NotificationListAdapter, NotificationListProps, NotificationListState } from '@douyinfe/semi-foundation/lib/cjs/notification/notificationListFoundation';
4
5
  import BaseComponent from '../_base/baseComponent';
5
6
  import '@douyinfe/semi-foundation/lib/cjs/notification/notification.css';
@@ -19,7 +20,7 @@ export declare type NoticesInPosition = {
19
20
  bottomRight: NoticeInstance[];
20
21
  };
21
22
  declare class NotificationList extends BaseComponent<NotificationListProps, NotificationListState> {
22
- static contextType: React.Context<import("../configProvider/context").ContextValue>;
23
+ static contextType: React.Context<ContextValue>;
23
24
  static propTypes: {
24
25
  style: PropTypes.Requireable<object>;
25
26
  className: PropTypes.Requireable<string>;
@@ -31,6 +32,7 @@ declare class NotificationList extends BaseComponent<NotificationListProps, Noti
31
32
  private noticeStorage;
32
33
  private removeItemStorage;
33
34
  constructor(props: NotificationListProps);
35
+ context: ContextValue;
34
36
  get adapter(): NotificationListAdapter;
35
37
  static addNotice(notice: NoticeProps): string;
36
38
  static removeNotice(id: string): string;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { ContextValue } from '../configProvider/context';
3
4
  import { NoticeAdapter, NoticeProps, NoticeState } from '@douyinfe/semi-foundation/lib/cjs/notification/notificationFoundation';
4
5
  import BaseComponent from '../_base/baseComponent';
5
6
  export interface NoticeReactProps extends NoticeProps {
@@ -10,7 +11,7 @@ export interface NoticeReactProps extends NoticeProps {
10
11
  onClick?: (e: React.MouseEvent) => void;
11
12
  }
12
13
  declare class Notice extends BaseComponent<NoticeReactProps, NoticeState> {
13
- static contextType: React.Context<import("../configProvider/context").ContextValue>;
14
+ static contextType: React.Context<ContextValue>;
14
15
  static propTypes: {
15
16
  duration: PropTypes.Requireable<number>;
16
17
  id: PropTypes.Requireable<string | number>;
@@ -40,6 +41,7 @@ declare class Notice extends BaseComponent<NoticeReactProps, NoticeState> {
40
41
  };
41
42
  get adapter(): NoticeAdapter;
42
43
  constructor(props: NoticeReactProps);
44
+ context: ContextValue;
43
45
  componentWillUnmount(): void;
44
46
  renderTypeIcon(): JSX.Element;
45
47
  clearCloseTimer: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '@douyinfe/semi-foundation/lib/cjs/notification/notification.css';
2
3
  import { NoticeProps } from '@douyinfe/semi-foundation/lib/cjs/notification/notificationFoundation';
3
4
  export default function useNotification(): (JSX.Element | {
@@ -1,8 +1,9 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  export interface ReactIntersectionObserverProps {
4
4
  onIntersect?: IntersectionObserverCallback;
5
5
  option?: IntersectionObserverInit;
6
+ children?: React.ReactNode;
6
7
  root?: IntersectionObserverInit['root'];
7
8
  threshold?: IntersectionObserverInit['threshold'];
8
9
  rootMargin?: IntersectionObserverInit['rootMargin'];
@@ -30,5 +31,5 @@ export default class ReactIntersectionObserver extends React.PureComponent<React
30
31
  componentDidUpdate(): void;
31
32
  componentWillUnmount(): void;
32
33
  observeElement(force?: boolean): void;
33
- render(): ReactNode;
34
+ render(): React.ReactNode;
34
35
  }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { PageList, PaginationAdapter } from '@douyinfe/semi-foundation/lib/cjs/pagination/foundation';
4
4
  import '@douyinfe/semi-foundation/lib/cjs/pagination/pagination.css';
5
+ import { ContextValue } from '../configProvider/context';
5
6
  import { Locale } from '../locale/interface';
6
7
  import BaseComponent from '../_base/baseComponent';
7
8
  import { Position } from '../tooltip';
@@ -43,7 +44,7 @@ export declare type PaginationLocale = Locale['Pagination'];
43
44
  export declare type PopoverPosition = Position;
44
45
  export { PageList };
45
46
  export default class Pagination extends BaseComponent<PaginationProps, PaginationState> {
46
- static contextType: React.Context<import("../configProvider/context").ContextValue>;
47
+ static contextType: React.Context<ContextValue>;
47
48
  static propTypes: {
48
49
  total: PropTypes.Requireable<number>;
49
50
  showTotal: PropTypes.Requireable<boolean>;
@@ -83,6 +84,7 @@ export default class Pagination extends BaseComponent<PaginationProps, Paginatio
83
84
  showQuickJumper: boolean;
84
85
  };
85
86
  constructor(props: PaginationProps);
87
+ context: ContextValue;
86
88
  get adapter(): PaginationAdapter<PaginationProps, PaginationState>;
87
89
  componentDidMount(): void;
88
90
  componentWillUnmount(): void;
@@ -363,17 +363,21 @@ class Pagination extends _baseComponent.default {
363
363
 
364
364
  const itemHeight = 32;
365
365
  const listHeight = count >= 5 ? itemHeight * 5 : itemHeight * count;
366
- return /*#__PURE__*/_react.default.createElement(_reactWindow.FixedSizeList, {
367
- className: "".concat(prefixCls, "-rest-list"),
368
- itemData: restList,
369
- itemSize: itemHeight,
370
- width: 78,
371
- itemCount: count,
372
- height: listHeight,
373
- style: {
374
- direction
375
- }
376
- }, row);
366
+ return (
367
+ /*#__PURE__*/
368
+ // @ts-ignore skip type check cause react-window not update with @types/react 18
369
+ _react.default.createElement(_reactWindow.FixedSizeList, {
370
+ className: "".concat(prefixCls, "-rest-list"),
371
+ itemData: restList,
372
+ itemSize: itemHeight,
373
+ width: 78,
374
+ itemCount: count,
375
+ height: listHeight,
376
+ style: {
377
+ direction
378
+ }
379
+ }, row)
380
+ );
377
381
  }
378
382
 
379
383
  renderSmallPage(locale) {