@kdcloudjs/kdesign 1.7.33-stable.11 → 1.7.33-stable.12-hotfix.2

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 (448) hide show
  1. package/dist/kdesign-complete.less +19 -4
  2. package/dist/kdesign.css +10 -6
  3. package/dist/kdesign.css.map +1 -1
  4. package/dist/kdesign.js +8511 -6737
  5. package/dist/kdesign.js.map +1 -1
  6. package/dist/kdesign.min.css +2 -2
  7. package/dist/kdesign.min.js +16 -13
  8. package/dist/kdesign.min.js.map +1 -1
  9. package/es/_utils/formatUtil.js +0 -2
  10. package/es/_utils/hooks.js +3 -3
  11. package/es/_utils/resizeObserver.js +7 -10
  12. package/es/_utils/usePopper.d.ts +1 -1
  13. package/es/_utils/usePopper.js +43 -43
  14. package/es/alert/alert.js +4 -5
  15. package/es/anchor/anchor-link.js +1 -2
  16. package/es/anchor/anchor.js +24 -24
  17. package/es/avatar/avatar.js +3 -3
  18. package/es/badge/badge.js +6 -6
  19. package/es/base-data/base-data.js +32 -32
  20. package/es/button/button.js +11 -12
  21. package/es/button/group.js +6 -6
  22. package/es/card/card.js +3 -3
  23. package/es/carousel/carousel.js +6 -6
  24. package/es/carousel/slidebar.d.ts +2 -2
  25. package/es/carousel/slidebar.js +3 -4
  26. package/es/cascader/cascader.js +28 -31
  27. package/es/cascader/util.js +6 -6
  28. package/es/checkbox/checkbox.js +13 -13
  29. package/es/city-picker/city-picker.js +26 -28
  30. package/es/city-picker/option.js +3 -4
  31. package/es/collapse/panel.js +10 -15
  32. package/es/color-picker/color-picker-panel.js +7 -7
  33. package/es/color-picker/color-picker.js +17 -18
  34. package/es/color-picker/utils/colorFormat.js +6 -6
  35. package/es/config-provider/ConfigContext.d.ts +2 -0
  36. package/es/config-provider/compDefaultProps.d.ts +3 -3
  37. package/es/config-provider/defaultConfig.d.ts +1 -0
  38. package/es/config-provider/defaultConfig.js +2 -1
  39. package/es/date-picker/calendar.d.ts +2 -2
  40. package/es/date-picker/calendar.js +2 -3
  41. package/es/date-picker/date-panel.d.ts +1 -1
  42. package/es/date-picker/date-panel.js +5 -6
  43. package/es/date-picker/date-picker.js +3 -3
  44. package/es/date-picker/hooks/use-range-cls.js +1 -2
  45. package/es/date-picker/panel/date-time/date-time.d.ts +1 -1
  46. package/es/date-picker/panel/header/header.d.ts +1 -1
  47. package/es/date-picker/panel/header/header.js +10 -10
  48. package/es/date-picker/panel/month/month.d.ts +2 -2
  49. package/es/date-picker/panel/month/month.js +1 -2
  50. package/es/date-picker/panel/quarter/quarter.d.ts +2 -2
  51. package/es/date-picker/panel/quarter/quarter.js +1 -2
  52. package/es/date-picker/panel/time/time-column.d.ts +1 -1
  53. package/es/date-picker/panel/time/time-column.js +1 -2
  54. package/es/date-picker/panel/time/time.d.ts +2 -2
  55. package/es/date-picker/panel/time/time.js +2 -2
  56. package/es/date-picker/panel/week/week.d.ts +2 -2
  57. package/es/date-picker/panel/week/week.js +6 -7
  58. package/es/date-picker/panel/year/year.d.ts +2 -2
  59. package/es/date-picker/panel/year/year.js +2 -3
  60. package/es/date-picker/popper.js +1 -2
  61. package/es/date-picker/range/input-range.js +5 -5
  62. package/es/date-picker/range-picker.js +6 -6
  63. package/es/date-picker/single/input-date.js +3 -3
  64. package/es/date-picker/utils/date-fns.js +0 -1
  65. package/es/date-picker/utils/get-extra-footer.d.ts +1 -1
  66. package/es/date-picker/utils/get-ranges.d.ts +2 -2
  67. package/es/date-picker/utils/get-ranges.js +2 -2
  68. package/es/drawer/drawer.js +10 -10
  69. package/es/dropdown/dropdown.js +9 -9
  70. package/es/dropdown/menu.js +2 -2
  71. package/es/empty/defaultEmptyImg.d.ts +2 -2
  72. package/es/empty/empty.js +6 -6
  73. package/es/empty/illustrationEmptyImg.d.ts +2 -2
  74. package/es/filter/condition.js +5 -5
  75. package/es/filter/filter.js +2 -2
  76. package/es/filter/scheme.js +13 -13
  77. package/es/form/Field.js +4 -5
  78. package/es/form/FieldLabel.js +1 -2
  79. package/es/form/FieldWrapper.js +4 -4
  80. package/es/form/Form.js +2 -2
  81. package/es/icon/icon.js +2 -2
  82. package/es/image/image.js +3 -3
  83. package/es/image/preview-group.js +3 -3
  84. package/es/image/preview.js +7 -7
  85. package/es/image-cropper/image-cropper.js +4 -4
  86. package/es/image-cropper/operation-bar.js +5 -5
  87. package/es/input/ClearableLabeledInput.js +8 -9
  88. package/es/input/TextArea.js +5 -6
  89. package/es/input/calculateNodeHeight.js +0 -5
  90. package/es/input/input.js +2 -2
  91. package/es/input-number/inputNumber.js +4 -4
  92. package/es/layout/sider.js +6 -6
  93. package/es/link/link.js +3 -3
  94. package/es/locale/locale.js +6 -7
  95. package/es/menu/menu.js +2 -2
  96. package/es/menu/menuItem.js +2 -2
  97. package/es/menu/subMenu.js +6 -6
  98. package/es/message/content.js +1 -1
  99. package/es/modal/confirm.js +1 -1
  100. package/es/modal/modal.js +11 -11
  101. package/es/notification/content.js +3 -3
  102. package/es/notification/index.js +6 -3
  103. package/es/notification-base/index.js +1 -1
  104. package/es/notification-base/notice.js +2 -2
  105. package/es/pagination/pagination.js +15 -15
  106. package/es/popconfirm/popconfirm.js +2 -2
  107. package/es/progress/circle.js +5 -5
  108. package/es/progress/progress.js +2 -2
  109. package/es/radio/radio.js +1 -2
  110. package/es/rate/rate.js +7 -8
  111. package/es/search/option.js +1 -2
  112. package/es/search/quick-search.js +9 -10
  113. package/es/search/search-panel.js +6 -4
  114. package/es/search/search.js +6 -6
  115. package/es/select/option.js +3 -4
  116. package/es/select/select.js +28 -30
  117. package/es/slider/marks.d.ts +1 -1
  118. package/es/slider/marks.js +1 -2
  119. package/es/slider/slider.js +1 -2
  120. package/es/slider/sliderTooltip.js +1 -2
  121. package/es/slider/steps.d.ts +1 -1
  122. package/es/slider/steps.js +1 -2
  123. package/es/slider/track.d.ts +2 -2
  124. package/es/slider/track.js +1 -2
  125. package/es/space/space.js +3 -3
  126. package/es/spin/spin.js +6 -6
  127. package/es/split-panel/split-panel.js +7 -7
  128. package/es/stepper/stepper.js +6 -7
  129. package/es/steps/Step.js +2 -2
  130. package/es/steps/Steps.js +2 -2
  131. package/es/switch/switch.js +4 -4
  132. package/es/table/table.js +21 -5
  133. package/es/tabs/arrow-button.js +2 -2
  134. package/es/tabs/style/index.css +9 -5
  135. package/es/tabs/style/index.less +19 -4
  136. package/es/tabs/tab-pane.js +5 -4
  137. package/es/tabs/tabs.d.ts +2 -0
  138. package/es/tabs/tabs.js +71 -33
  139. package/es/tag/tag.js +5 -5
  140. package/es/timeline/Timeline.js +5 -5
  141. package/es/timeline/TimelineItem.js +5 -5
  142. package/es/tooltip/tooltip.js +1 -1
  143. package/es/transfer/list-item.js +1 -2
  144. package/es/transfer/list.js +7 -8
  145. package/es/transfer/operation.d.ts +1 -1
  146. package/es/transfer/operation.js +2 -2
  147. package/es/transfer/search.js +2 -2
  148. package/es/transfer/transfer.js +1 -2
  149. package/es/tree/tree.js +12 -12
  150. package/es/tree/treeHooks.js +3 -3
  151. package/es/tree/treeNode.js +10 -13
  152. package/es/tree/utils/treeUtils.js +13 -13
  153. package/es/tree-select/tree-select.js +25 -26
  154. package/es/typography/base.js +2 -2
  155. package/es/upload/scan-files.js +3 -3
  156. package/es/upload/upload.js +36 -36
  157. package/es/virtual-list/virtual-list.js +5 -6
  158. package/lib/_utils/KeyCode.js +1 -2
  159. package/lib/_utils/arrayUtil.js +3 -5
  160. package/lib/_utils/formatUtil.js +0 -2
  161. package/lib/_utils/hooks.js +3 -3
  162. package/lib/_utils/index.js +2 -3
  163. package/lib/_utils/raf.js +2 -4
  164. package/lib/_utils/reactNode.js +2 -4
  165. package/lib/_utils/resizeObserver.js +8 -12
  166. package/lib/_utils/type.js +3 -5
  167. package/lib/_utils/usePopper.d.ts +1 -1
  168. package/lib/_utils/usePopper.js +47 -51
  169. package/lib/alert/alert.js +8 -13
  170. package/lib/alert/index.js +1 -2
  171. package/lib/anchor/anchor-link.js +3 -6
  172. package/lib/anchor/anchor.js +27 -30
  173. package/lib/anchor/context.js +2 -4
  174. package/lib/anchor/index.js +1 -2
  175. package/lib/avatar/avatar.js +7 -11
  176. package/lib/avatar/index.js +2 -4
  177. package/lib/badge/badge.js +10 -14
  178. package/lib/badge/index.js +2 -4
  179. package/lib/base-data/base-data.js +34 -36
  180. package/lib/base-data/index.js +2 -4
  181. package/lib/base-data/interface.js +1 -2
  182. package/lib/button/button.js +18 -26
  183. package/lib/button/group.js +9 -12
  184. package/lib/button/index.js +1 -2
  185. package/lib/card/card.js +5 -7
  186. package/lib/card/index.js +2 -4
  187. package/lib/carousel/carousel.js +10 -14
  188. package/lib/carousel/displayList.js +2 -3
  189. package/lib/carousel/fadeList.js +2 -3
  190. package/lib/carousel/index.js +2 -4
  191. package/lib/carousel/slideList.js +2 -3
  192. package/lib/carousel/slidebar.d.ts +2 -2
  193. package/lib/carousel/slidebar.js +5 -7
  194. package/lib/cascader/cascader.js +31 -37
  195. package/lib/cascader/index.js +2 -4
  196. package/lib/cascader/util.js +18 -30
  197. package/lib/checkbox/checkbox.js +15 -17
  198. package/lib/checkbox/group.js +8 -10
  199. package/lib/checkbox/index.js +2 -4
  200. package/lib/city-picker/city-picker.js +28 -32
  201. package/lib/city-picker/index.js +2 -4
  202. package/lib/city-picker/interface.js +2 -4
  203. package/lib/city-picker/option.js +5 -8
  204. package/lib/collapse/collapse.js +3 -6
  205. package/lib/collapse/index.js +1 -2
  206. package/lib/collapse/panel.js +12 -19
  207. package/lib/color-picker/color-picker-panel.js +9 -11
  208. package/lib/color-picker/color-picker.js +19 -22
  209. package/lib/color-picker/constant/colorTypes.js +2 -3
  210. package/lib/color-picker/constant/defaultColor.js +1 -2
  211. package/lib/color-picker/constant/systemPresetColor.js +1 -2
  212. package/lib/color-picker/index.js +2 -4
  213. package/lib/color-picker/interface.js +2 -4
  214. package/lib/color-picker/utils/colorFormat.js +13 -19
  215. package/lib/color-picker/utils/hooks/useOnClickOutside.js +1 -2
  216. package/lib/config-provider/ConfigContext.d.ts +2 -0
  217. package/lib/config-provider/ConfigContext.js +1 -2
  218. package/lib/config-provider/SizeContext.js +2 -4
  219. package/lib/config-provider/compDefaultProps.d.ts +3 -3
  220. package/lib/config-provider/compDefaultProps.js +2 -4
  221. package/lib/config-provider/configProvider.js +2 -4
  222. package/lib/config-provider/defaultConfig.d.ts +1 -0
  223. package/lib/config-provider/defaultConfig.js +3 -3
  224. package/lib/config-provider/index.js +1 -2
  225. package/lib/date-picker/calendar.d.ts +2 -2
  226. package/lib/date-picker/calendar.js +4 -7
  227. package/lib/date-picker/context.js +2 -4
  228. package/lib/date-picker/date-panel.d.ts +1 -1
  229. package/lib/date-picker/date-panel.js +7 -10
  230. package/lib/date-picker/date-picker.js +5 -7
  231. package/lib/date-picker/hooks/use-range-cls.js +1 -2
  232. package/lib/date-picker/hooks/use-range-disabled.js +1 -2
  233. package/lib/date-picker/hooks/use-range-view-dates.js +1 -2
  234. package/lib/date-picker/hooks/use-text-value-mapping.js +1 -2
  235. package/lib/date-picker/index.js +1 -2
  236. package/lib/date-picker/locale/zh_CN.js +1 -2
  237. package/lib/date-picker/panel/date-time/date-time.d.ts +1 -1
  238. package/lib/date-picker/panel/date-time/date-time.js +2 -4
  239. package/lib/date-picker/panel/header/header.d.ts +1 -1
  240. package/lib/date-picker/panel/header/header.js +12 -14
  241. package/lib/date-picker/panel/month/month.d.ts +2 -2
  242. package/lib/date-picker/panel/month/month.js +3 -6
  243. package/lib/date-picker/panel/quarter/quarter.d.ts +2 -2
  244. package/lib/date-picker/panel/quarter/quarter.js +3 -6
  245. package/lib/date-picker/panel/time/time-column.d.ts +1 -1
  246. package/lib/date-picker/panel/time/time-column.js +10 -12
  247. package/lib/date-picker/panel/time/time.d.ts +2 -2
  248. package/lib/date-picker/panel/time/time.js +4 -6
  249. package/lib/date-picker/panel/week/week.d.ts +2 -2
  250. package/lib/date-picker/panel/week/week.js +8 -11
  251. package/lib/date-picker/panel/year/year.d.ts +2 -2
  252. package/lib/date-picker/panel/year/year.js +4 -7
  253. package/lib/date-picker/popper.js +3 -6
  254. package/lib/date-picker/range/input-range.js +7 -9
  255. package/lib/date-picker/range-picker.js +8 -10
  256. package/lib/date-picker/single/input-date.js +5 -7
  257. package/lib/date-picker/utils/date-fns.js +11 -8
  258. package/lib/date-picker/utils/get-extra-footer.d.ts +1 -1
  259. package/lib/date-picker/utils/get-extra-footer.js +1 -2
  260. package/lib/date-picker/utils/get-ranges.d.ts +2 -2
  261. package/lib/date-picker/utils/get-ranges.js +2 -2
  262. package/lib/date-picker/utils/index.js +4 -7
  263. package/lib/drawer/drawer.js +13 -16
  264. package/lib/drawer/index.js +2 -4
  265. package/lib/dropdown/dropdown.js +11 -13
  266. package/lib/dropdown/index.js +2 -4
  267. package/lib/dropdown/menu.js +5 -8
  268. package/lib/empty/defaultEmptyImg.d.ts +2 -2
  269. package/lib/empty/defaultEmptyImg.js +2 -4
  270. package/lib/empty/empty.js +8 -10
  271. package/lib/empty/illustrationEmptyImg.d.ts +2 -2
  272. package/lib/empty/illustrationEmptyImg.js +2 -4
  273. package/lib/empty/index.js +2 -4
  274. package/lib/filter/condition.js +7 -9
  275. package/lib/filter/filter.js +4 -6
  276. package/lib/filter/index.js +2 -4
  277. package/lib/filter/scheme.js +15 -17
  278. package/lib/form/Field.js +7 -11
  279. package/lib/form/FieldContext.js +1 -2
  280. package/lib/form/FieldLabel.js +3 -6
  281. package/lib/form/FieldWrapper.js +6 -8
  282. package/lib/form/Form.js +4 -6
  283. package/lib/form/FormContext.js +2 -4
  284. package/lib/form/hooks/useForceUpdate.js +1 -2
  285. package/lib/form/hooks/useForm.js +2 -4
  286. package/lib/form/index.js +2 -4
  287. package/lib/grid/col.js +2 -4
  288. package/lib/grid/row.js +3 -6
  289. package/lib/icon/icon.js +4 -6
  290. package/lib/icon/index.js +2 -4
  291. package/lib/icon/interface.js +3 -6
  292. package/lib/image/image.js +5 -7
  293. package/lib/image/index.js +2 -4
  294. package/lib/image/preview-group.js +5 -7
  295. package/lib/image/preview.js +9 -11
  296. package/lib/image-cropper/cropper.js +3 -6
  297. package/lib/image-cropper/image-cropper.js +6 -8
  298. package/lib/image-cropper/index.js +1 -2
  299. package/lib/image-cropper/operation-bar.js +7 -9
  300. package/lib/index.js +1 -2
  301. package/lib/input/ClearableLabeledInput.js +10 -13
  302. package/lib/input/TextArea.js +7 -10
  303. package/lib/input/calculateNodeHeight.js +0 -5
  304. package/lib/input/index.js +2 -4
  305. package/lib/input/input.js +6 -10
  306. package/lib/input-number/index.js +1 -2
  307. package/lib/input-number/inputNumber.js +6 -8
  308. package/lib/layout/index.js +2 -4
  309. package/lib/layout/layout.js +6 -12
  310. package/lib/layout/sider.js +18 -20
  311. package/lib/link/index.js +2 -4
  312. package/lib/link/link.js +6 -9
  313. package/lib/locale/index.js +2 -4
  314. package/lib/locale/locale.js +10 -14
  315. package/lib/locale/zh-CN.js +1 -2
  316. package/lib/menu/index.js +2 -4
  317. package/lib/menu/menu.js +4 -6
  318. package/lib/menu/menuItem.js +5 -8
  319. package/lib/menu/subMenu.js +7 -8
  320. package/lib/menu/util.js +8 -16
  321. package/lib/message/content.js +3 -5
  322. package/lib/message/index.js +1 -2
  323. package/lib/modal/confirm.js +1 -1
  324. package/lib/modal/index.js +2 -4
  325. package/lib/modal/modal.js +15 -19
  326. package/lib/notification/content.js +5 -7
  327. package/lib/notification/index.js +7 -5
  328. package/lib/notification-base/index.js +2 -3
  329. package/lib/notification-base/notice.js +5 -8
  330. package/lib/notification-base/notification.js +2 -4
  331. package/lib/pagination/index.js +1 -2
  332. package/lib/pagination/pagination.js +19 -23
  333. package/lib/popconfirm/index.js +2 -4
  334. package/lib/popconfirm/popconfirm.js +4 -6
  335. package/lib/progress/circle.js +6 -7
  336. package/lib/progress/index.js +1 -2
  337. package/lib/progress/line.js +1 -2
  338. package/lib/progress/progress.js +6 -10
  339. package/lib/progress/utils.js +3 -5
  340. package/lib/radio/context.js +3 -6
  341. package/lib/radio/group.js +2 -4
  342. package/lib/radio/index.js +1 -2
  343. package/lib/radio/radio-button.js +2 -4
  344. package/lib/radio/radio.js +3 -6
  345. package/lib/rate/index.js +1 -2
  346. package/lib/rate/rate.js +10 -14
  347. package/lib/search/index.js +1 -2
  348. package/lib/search/interface.js +3 -6
  349. package/lib/search/option.js +3 -6
  350. package/lib/search/quick-search.js +11 -14
  351. package/lib/search/search-panel.js +8 -8
  352. package/lib/search/search.js +8 -10
  353. package/lib/select/index.js +1 -2
  354. package/lib/select/interface.js +3 -6
  355. package/lib/select/option.js +5 -8
  356. package/lib/select/select.js +30 -34
  357. package/lib/slider/index.js +2 -4
  358. package/lib/slider/marks.d.ts +1 -1
  359. package/lib/slider/marks.js +2 -4
  360. package/lib/slider/slider.js +3 -6
  361. package/lib/slider/sliderTooltip.js +3 -6
  362. package/lib/slider/steps.d.ts +1 -1
  363. package/lib/slider/steps.js +2 -4
  364. package/lib/slider/track.d.ts +2 -2
  365. package/lib/slider/track.js +2 -4
  366. package/lib/space/index.js +2 -4
  367. package/lib/space/space.js +5 -7
  368. package/lib/spin/index.js +2 -4
  369. package/lib/spin/spin.js +9 -12
  370. package/lib/split-panel/index.js +2 -4
  371. package/lib/split-panel/split-panel.js +10 -13
  372. package/lib/split-panel/trigger.js +1 -2
  373. package/lib/stepper/index.js +2 -4
  374. package/lib/stepper/stepper.js +9 -13
  375. package/lib/steps/Step.js +3 -4
  376. package/lib/steps/Steps.js +4 -6
  377. package/lib/steps/index.js +1 -2
  378. package/lib/steps/interface.js +3 -6
  379. package/lib/switch/index.js +1 -2
  380. package/lib/switch/switch.js +7 -10
  381. package/lib/table/feature/autoRowSpan.js +1 -2
  382. package/lib/table/feature/colGroupExtendable.js +1 -2
  383. package/lib/table/feature/columnDrag.js +1 -2
  384. package/lib/table/feature/columnResize.js +1 -2
  385. package/lib/table/feature/contextMenu.js +1 -2
  386. package/lib/table/feature/filter.js +1 -2
  387. package/lib/table/feature/mergeCellHover.js +1 -2
  388. package/lib/table/feature/rowDetail.js +1 -2
  389. package/lib/table/feature/rowSelection.js +1 -2
  390. package/lib/table/feature/sort.js +1 -2
  391. package/lib/table/feature/treeMode.js +1 -2
  392. package/lib/table/feature/useFooterDataSource.js +1 -2
  393. package/lib/table/feature/useRangeSelection.js +1 -2
  394. package/lib/table/feature/useRowDrag.js +1 -2
  395. package/lib/table/index.js +1 -2
  396. package/lib/table/table.js +23 -9
  397. package/lib/tabs/active-line.js +2 -4
  398. package/lib/tabs/arrow-button.js +4 -6
  399. package/lib/tabs/context.js +3 -6
  400. package/lib/tabs/index.js +1 -2
  401. package/lib/tabs/style/index.css +9 -5
  402. package/lib/tabs/style/index.less +19 -4
  403. package/lib/tabs/tab-pane.js +8 -10
  404. package/lib/tabs/tabs.d.ts +2 -0
  405. package/lib/tabs/tabs.js +79 -47
  406. package/lib/tag/index.js +2 -4
  407. package/lib/tag/tag.js +10 -15
  408. package/lib/timeline/Timeline.js +7 -9
  409. package/lib/timeline/TimelineItem.js +7 -9
  410. package/lib/timeline/index.js +1 -2
  411. package/lib/tooltip/index.js +2 -4
  412. package/lib/tooltip/tooltip.js +3 -5
  413. package/lib/transfer/index.js +1 -2
  414. package/lib/transfer/list-body.js +3 -6
  415. package/lib/transfer/list-item.js +2 -4
  416. package/lib/transfer/list.js +9 -12
  417. package/lib/transfer/operation.d.ts +1 -1
  418. package/lib/transfer/operation.js +3 -4
  419. package/lib/transfer/search.js +3 -4
  420. package/lib/transfer/transfer.js +3 -6
  421. package/lib/tree/index.js +2 -4
  422. package/lib/tree/tree.js +14 -16
  423. package/lib/tree/treeHooks.js +12 -20
  424. package/lib/tree/treeNode.js +12 -17
  425. package/lib/tree/utils/treeUtils.js +38 -62
  426. package/lib/tree-select/index.js +2 -4
  427. package/lib/tree-select/interface.js +3 -6
  428. package/lib/tree-select/tree-select.js +27 -30
  429. package/lib/typography/base.js +5 -8
  430. package/lib/typography/index.js +1 -2
  431. package/lib/typography/paragraph.js +2 -4
  432. package/lib/typography/text.js +1 -2
  433. package/lib/typography/title.js +2 -4
  434. package/lib/typography/typography.js +2 -4
  435. package/lib/upload/dragger.js +2 -4
  436. package/lib/upload/index.js +2 -4
  437. package/lib/upload/scan-files.js +4 -5
  438. package/lib/upload/upload.js +38 -40
  439. package/lib/upload/verify-file.js +2 -3
  440. package/lib/view-container/context.js +3 -6
  441. package/lib/view-container/index.js +1 -2
  442. package/lib/view-container/view-container.js +2 -4
  443. package/lib/virtual-list/Filler.js +2 -4
  444. package/lib/virtual-list/index.js +2 -4
  445. package/lib/virtual-list/utils/itemUtil.js +1 -2
  446. package/lib/virtual-list/virtual-list.js +7 -10
  447. package/package.json +7 -5
  448. package/CHANGELOG.md +0 -1860
@@ -8,12 +8,12 @@ import { getCompProps } from '../_utils';
8
8
  import { Menu, Item } from './menu';
9
9
  import usePopper from '../_utils/usePopper';
10
10
  import { isFragment } from '../_utils/reactNode';
11
- var findItem = function findItem(element) {
11
+ var _findItem = function findItem(element) {
12
12
  var isItem = /dropdown-menu-item/.test(element.className);
13
13
  if (isItem) {
14
14
  return element;
15
15
  } else {
16
- return element.parentNode ? findItem(element.parentNode) : null;
16
+ return element.parentNode ? _findItem(element.parentNode) : null;
17
17
  }
18
18
  };
19
19
  var Dropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -48,7 +48,7 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
48
48
  props.visible === undefined && setVisible(visible);
49
49
  onVisibleChange && onVisibleChange(visible);
50
50
  };
51
- var child = children && ((_a = children === null || children === void 0 ? void 0 : children.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'Input' ? /*#__PURE__*/React.createElement("span", {
51
+ var child = children && ((_a = children === null || children === void 0 ? void 0 : children.type) === null || _a === void 0 ? void 0 : _a.displayName) === 'Input' ? (/*#__PURE__*/React.createElement("span", {
52
52
  className: classNames("".concat(prefixCls, "-trigger"), "".concat(prefixCls, "-trigger-container")),
53
53
  ref: ref
54
54
  }, trigger === 'focus' ? /*#__PURE__*/React.cloneElement(React.Children.only(children), {
@@ -60,12 +60,12 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
60
60
  children.props.onBlur && children.props.onBlur(e);
61
61
  handleVisibleChange(false);
62
62
  }
63
- }) : children) : /*#__PURE__*/React.cloneElement( /*#__PURE__*/React.isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement("span", null, children), {
63
+ }) : children)) : (/*#__PURE__*/React.cloneElement(/*#__PURE__*/React.isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement("span", null, children), {
64
64
  ref: /*#__PURE__*/React.isValidElement(children) && !isFragment(children) && children.ref ? children.ref : ref,
65
65
  className: classNames("".concat(prefixCls, "-trigger"), /*#__PURE__*/React.isValidElement(children) && !isFragment(children) && children.props && children.props.className, {
66
66
  disabled: disabled
67
67
  })
68
- });
68
+ }));
69
69
  var isMenu = menu.type === Menu;
70
70
  var _React$useState3 = React.useState(props.selectedKey || ((_b = menu.props) === null || _b === void 0 ? void 0 : _b.defaultKey) || props.defaultKey || ''),
71
71
  _React$useState4 = _slicedToArray(_React$useState3, 2),
@@ -79,7 +79,7 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
79
79
  var menuSelectable = ((_c = menu.props) === null || _c === void 0 ? void 0 : _c.selectable) === undefined ? selectable : (_d = menu.props) === null || _d === void 0 ? void 0 : _d.selectable;
80
80
  var handleItemClick = function handleItemClick(e) {
81
81
  var _a;
82
- var item = findItem(e.target);
82
+ var item = _findItem(e.target);
83
83
  var key = (_a = item === null || item === void 0 ? void 0 : item.dataset) === null || _a === void 0 ? void 0 : _a.key;
84
84
  if ((item === null || item === void 0 ? void 0 : item.className.indexOf('disabled')) === -1 && key) {
85
85
  if (isMenu && menu.props.onClick) {
@@ -96,7 +96,7 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
96
96
  onClick: handleItemClick,
97
97
  selectable: menuSelectable
98
98
  });
99
- var menuElement = isMenu ? cloneObj : /*#__PURE__*/React.createElement("ul", {
99
+ var menuElement = isMenu ? cloneObj : (/*#__PURE__*/React.createElement("ul", {
100
100
  className: "".concat(prefixCls, "-menu"),
101
101
  onClick: handleItemClick,
102
102
  role: "menu"
@@ -125,8 +125,8 @@ var Dropdown = /*#__PURE__*/React.forwardRef(function (props, ref) {
125
125
  selected: selected
126
126
  }),
127
127
  role: "menuitem"
128
- }, href === undefined || disabled ? /*#__PURE__*/React.createElement("span", null, label) : /*#__PURE__*/React.createElement("a", _extends({}, alinkProps), /*#__PURE__*/React.createElement("span", null, label)));
129
- }));
128
+ }, href === undefined || disabled ? (/*#__PURE__*/React.createElement("span", null, label)) : (/*#__PURE__*/React.createElement("a", _extends({}, alinkProps), /*#__PURE__*/React.createElement("span", null, label))));
129
+ })));
130
130
  var popperProps = _extends(_extends({}, allProps), {
131
131
  visible: visible,
132
132
  prefixCls: prefixCls,
@@ -81,9 +81,9 @@ var Item = function Item(props) {
81
81
  selected: selected
82
82
  }),
83
83
  role: "menuitem"
84
- }, restProps), childrenIsLink ? disabled ? linkChildren : /*#__PURE__*/React.cloneElement(children, {
84
+ }, restProps), childrenIsLink ? disabled ? linkChildren : (/*#__PURE__*/React.cloneElement(children, {
85
85
  children: linkChildren
86
- }) : /*#__PURE__*/React.createElement("span", null, children));
86
+ })) : (/*#__PURE__*/React.createElement("span", null, children)));
87
87
  };
88
88
  Menu.displayName = 'DropdownMenu';
89
89
  Item.displayName = 'DropdownMenuItem';
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare function DefaultEmptyImg(props: any): JSX.Element;
1
+ import React from 'react';
2
+ declare function DefaultEmptyImg(props: any): React.JSX.Element;
3
3
  export default DefaultEmptyImg;
package/es/empty/empty.js CHANGED
@@ -40,19 +40,19 @@ var InteranalEmpty = function InteranalEmpty(props, ref) {
40
40
  var thisEmptyRef = useRef();
41
41
  var emptyRef = ref || thisEmptyRef;
42
42
  var imgClasses = classNames("".concat(emptyPrefixCls, "-image"));
43
- var imgNode = typeof image === 'string' ? /*#__PURE__*/React.createElement("img", {
43
+ var imgNode = typeof image === 'string' ? (/*#__PURE__*/React.createElement("img", {
44
44
  src: image,
45
45
  className: imgClasses,
46
46
  style: imageStyle,
47
47
  alt: "empty"
48
- }) : typeof image === 'boolean' ? null : /*#__PURE__*/React.cloneElement(image, {
48
+ })) : typeof image === 'boolean' ? null : (/*#__PURE__*/React.cloneElement(image, {
49
49
  style: imageStyle
50
- });
51
- var descriptionNode = description === undefined ? /*#__PURE__*/React.createElement("div", {
50
+ }));
51
+ var descriptionNode = description === undefined ? (/*#__PURE__*/React.createElement("div", {
52
52
  className: "".concat(emptyPrefixCls, "-description")
53
- }, emptyLangMsg.emptyText) : description ? /*#__PURE__*/React.createElement("div", {
53
+ }, emptyLangMsg.emptyText)) : description ? (/*#__PURE__*/React.createElement("div", {
54
54
  className: "".concat(emptyPrefixCls, "-description")
55
- }, description) : null;
55
+ }, description)) : null;
56
56
  var emptyFooter = children ? /*#__PURE__*/React.createElement("div", {
57
57
  className: "".concat(emptyPrefixCls, "-footer")
58
58
  }, children) : null;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare function IllustrationEmptyImg(props: any): JSX.Element;
1
+ import React from 'react';
2
+ declare function IllustrationEmptyImg(props: any): React.JSX.Element;
3
3
  export default IllustrationEmptyImg;
@@ -51,13 +51,13 @@ var ConditionFilter = function ConditionFilter(props) {
51
51
  className: "".concat(prefixCls, "-body-condition-label")
52
52
  }, condition.label, ":"), /*#__PURE__*/React.createElement("div", {
53
53
  className: "".concat(prefixCls, "-body-condition-options")
54
- }, !condition.required && /*#__PURE__*/React.createElement("span", {
54
+ }, !condition.required && (/*#__PURE__*/React.createElement("span", {
55
55
  className: classNames("".concat(prefixCls, "-body-condition-option"), {
56
56
  active: !conditionValue
57
57
  }),
58
58
  onClick: onConditionRemove.bind(null, condition.key)
59
- }, FilterLangMsg.unlimited), _mapInstanceProperty(_context2 = condition.options).call(_context2, function (option) {
60
- return option.component ? /*#__PURE__*/React.createElement(React.Fragment, {
59
+ }, FilterLangMsg.unlimited)), _mapInstanceProperty(_context2 = condition.options).call(_context2, function (option) {
60
+ return option.component ? (/*#__PURE__*/React.createElement(React.Fragment, {
61
61
  key: option.label
62
62
  }, /*#__PURE__*/React.createElement("span", {
63
63
  title: option.label,
@@ -71,14 +71,14 @@ var ConditionFilter = function ConditionFilter(props) {
71
71
  })
72
72
  }, option.label), /*#__PURE__*/React.createElement("span", {
73
73
  className: "".concat(prefixCls, "-body-condition-option-customer")
74
- }, option.component)) : /*#__PURE__*/React.createElement("span", {
74
+ }, option.component))) : (/*#__PURE__*/React.createElement("span", {
75
75
  key: option.value,
76
76
  title: option.label || option.value,
77
77
  className: classNames("".concat(prefixCls, "-body-condition-option"), {
78
78
  active: conditionValue === null || conditionValue === void 0 ? void 0 : _includesInstanceProperty(conditionValue).call(conditionValue, option.value)
79
79
  }),
80
80
  onClick: handleConditionFilter.bind(null, condition, option)
81
- }, option.label || option.value);
81
+ }, option.label || option.value));
82
82
  })), /*#__PURE__*/React.createElement("div", {
83
83
  className: "".concat(prefixCls, "-body-condition-addition")
84
84
  }, condition.addition));
@@ -131,13 +131,13 @@ var Filter = function Filter(props) {
131
131
  type: 'edit',
132
132
  onClose: onConditionRemove.bind(null, conditionKey)
133
133
  };
134
- return name && /*#__PURE__*/React.createElement(Tag, _extends({
134
+ return name && (/*#__PURE__*/React.createElement(Tag, _extends({
135
135
  className: "".concat(prefixCls, "-header-condition-item"),
136
136
  key: conditionKey
137
137
  }, conditionProps), /*#__PURE__*/React.createElement("span", {
138
138
  className: "".concat(prefixCls, "-header-condition-item-text"),
139
139
  title: options
140
- }, name, "\uFF1A", options));
140
+ }, name, "\uFF1A", options)));
141
141
  }))), /*#__PURE__*/React.createElement(Search, _extends({
142
142
  className: "".concat(prefixCls, "-header-search"),
143
143
  type: "quick-search"
@@ -189,7 +189,7 @@ var SchemeFilter = function SchemeFilter(props) {
189
189
  onClick: handleSwitchScheme.bind(null, name)
190
190
  }, name)
191
191
  );
192
- })), SettingMenu && scheme.name && /*#__PURE__*/React.createElement("div", {
192
+ })), SettingMenu && scheme.name && (/*#__PURE__*/React.createElement("div", {
193
193
  className: "".concat(prefixCls, "-body-scheme-action")
194
194
  }, /*#__PURE__*/React.createElement(Dropdown, {
195
195
  menu: SettingMenu,
@@ -198,7 +198,7 @@ var SchemeFilter = function SchemeFilter(props) {
198
198
  }, /*#__PURE__*/React.createElement(Button, {
199
199
  type: "ghost",
200
200
  size: "small"
201
- }, FilterLangMsg.settings)))), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("span", {
201
+ }, FilterLangMsg.settings))))), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("span", {
202
202
  className: "".concat(prefixCls, "-body-scheme-label")
203
203
  }, FilterLangMsg.advancedQuery, "\uFF1A"), /*#__PURE__*/React.createElement("ol", {
204
204
  className: "".concat(prefixCls, "-body-scheme-detail")
@@ -207,30 +207,30 @@ var SchemeFilter = function SchemeFilter(props) {
207
207
  operator = _ref9.operator,
208
208
  value = _ref9.value,
209
209
  required = _ref9.required;
210
- var field = _findInstanceProperty(fields).call(fields, function (_ref10) {
211
- var name = _ref10.name;
210
+ var field = _findInstanceProperty(fields).call(fields, function (_ref0) {
211
+ var name = _ref0.name;
212
212
  return name === fieldName;
213
213
  });
214
214
  return /*#__PURE__*/React.createElement("li", {
215
215
  key: index
216
216
  }, /*#__PURE__*/React.createElement("span", {
217
217
  className: "".concat(prefixCls, "-body-scheme-detail-field")
218
- }, required ? field === null || field === void 0 ? void 0 : field.label : /*#__PURE__*/React.createElement(Select, {
218
+ }, required ? field === null || field === void 0 ? void 0 : field.label : (/*#__PURE__*/React.createElement(Select, {
219
219
  borderType: "bordered",
220
220
  style: {
221
221
  width: '100%'
222
222
  },
223
223
  value: fieldName,
224
224
  onChange: handleChangeField.bind(null, index)
225
- }, _mapInstanceProperty(fields).call(fields, function (_ref11) {
226
- var name = _ref11.name,
227
- label = _ref11.label;
225
+ }, _mapInstanceProperty(fields).call(fields, function (_ref1) {
226
+ var name = _ref1.name,
227
+ label = _ref1.label;
228
228
  return /*#__PURE__*/React.createElement(Option, {
229
229
  key: name,
230
230
  value: name,
231
231
  title: label
232
232
  }, label);
233
- }))), /*#__PURE__*/React.createElement("span", {
233
+ })))), /*#__PURE__*/React.createElement("span", {
234
234
  className: "".concat(prefixCls, "-body-scheme-detail-operator")
235
235
  }, (field === null || field === void 0 ? void 0 : field.operators) && /*#__PURE__*/React.cloneElement(field.operators, {
236
236
  value: operator,
@@ -248,12 +248,12 @@ var SchemeFilter = function SchemeFilter(props) {
248
248
  onChange: handleChangeOption.bind(null, index)
249
249
  })), /*#__PURE__*/React.createElement("span", {
250
250
  className: "".concat(prefixCls, "-body-scheme-detail-and")
251
- }, FilterLangMsg.and), !required && /*#__PURE__*/React.createElement("span", {
251
+ }, FilterLangMsg.and), !required && (/*#__PURE__*/React.createElement("span", {
252
252
  className: "".concat(prefixCls, "-body-scheme-detail-delete"),
253
253
  onClick: handleDeleteCondition.bind(null, index)
254
254
  }, /*#__PURE__*/React.createElement(Icon, {
255
255
  type: "close-solid"
256
- })));
256
+ }))));
257
257
  }), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
258
258
  type: "primary",
259
259
  ghost: true,
@@ -265,7 +265,7 @@ var SchemeFilter = function SchemeFilter(props) {
265
265
  verticalAlign: 'top',
266
266
  marginRight: 5
267
267
  }
268
- }), FilterLangMsg.addCondition)))), onSchemeSave && /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("span", {
268
+ }), FilterLangMsg.addCondition)))), onSchemeSave && (/*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("span", {
269
269
  className: "".concat(prefixCls, "-body-scheme-label")
270
270
  }, FilterLangMsg.schemeName, "\uFF1A"), /*#__PURE__*/React.createElement("div", {
271
271
  className: "".concat(prefixCls, "-body-scheme-edit")
@@ -288,6 +288,6 @@ var SchemeFilter = function SchemeFilter(props) {
288
288
  }, /*#__PURE__*/React.createElement(Button, {
289
289
  type: "primary",
290
290
  onClick: handleSearch
291
- }, FilterLangMsg.query))));
291
+ }, FilterLangMsg.query)))));
292
292
  };
293
293
  export default SchemeFilter;
package/es/form/Field.js CHANGED
@@ -61,7 +61,7 @@ export var INNER_VALUE_PROPS_LIST = [{
61
61
  propName: 'targetKeys'
62
62
  }];
63
63
  var Field = function Field(props) {
64
- var _context, _classnames;
64
+ var _context;
65
65
  var _a;
66
66
  devwarning(! /*#__PURE__*/React.isValidElement(props.children), 'Form.Item', 'Children of Form.Item is not a valid element');
67
67
  devwarning(!props.name, 'Form.Item', 'Form.Item must have a name');
@@ -188,7 +188,7 @@ var Field = function Field(props) {
188
188
  };
189
189
  }, []);
190
190
  var formPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, 'form', customizePrefixcls);
191
- var formItemClassName = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(formPrefixCls), true), _defineProperty(_classnames, "".concat(formPrefixCls, "-field"), true), _defineProperty(_classnames, "".concat(formPrefixCls, "-field-hidden"), hidden), _defineProperty(_classnames, "".concat(formPrefixCls, "-field-vertical"), vertical), _defineProperty(_classnames, "".concat(formPrefixCls, "-field-extra"), extra), _classnames), className);
191
+ var formItemClassName = classnames(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(formPrefixCls), true), "".concat(formPrefixCls, "-field"), true), "".concat(formPrefixCls, "-field-hidden"), hidden), "".concat(formPrefixCls, "-field-vertical"), vertical), "".concat(formPrefixCls, "-field-extra"), extra), className);
192
192
  var value = getFieldValue(name);
193
193
  var validateMessage = getFieldError(name);
194
194
  var getInputValueFormProp = function getInputValueFormProp(evt) {
@@ -211,7 +211,6 @@ var Field = function Field(props) {
211
211
  });
212
212
  }, [name]);
213
213
  var mergeProps = function mergeProps(fa, ch) {
214
- var _extends2;
215
214
  if (!ch) {
216
215
  return {};
217
216
  }
@@ -246,10 +245,10 @@ var Field = function Field(props) {
246
245
  setDefaultValues(_defineProperty({}, name, chValue !== undefined ? chValue : chDefaultValue));
247
246
  forceUpdate();
248
247
  }
249
- var mergeResult = _extends(_extends({}, faRest), (_extends2 = {
248
+ var mergeResult = _extends(_extends({}, faRest), _defineProperty(_defineProperty({
250
249
  onChange: onChange,
251
250
  defaultValue: defaultValue
252
- }, _defineProperty(_extends2, innerValuePropName, fieldValue), _defineProperty(_extends2, "disabled", chDisabled !== undefined ? chDisabled : disabled !== undefined ? disabled : formDisabled), _extends2));
251
+ }, innerValuePropName, fieldValue), "disabled", chDisabled !== undefined ? chDisabled : disabled !== undefined ? disabled : formDisabled));
253
252
  var mergeEventArray = [];
254
253
  if (validateTrigger) {
255
254
  if (Array.isArray(validateTrigger)) {
@@ -5,7 +5,6 @@ import { ConfigContext } from '../config-provider';
5
5
  import { getCompProps } from '../_utils';
6
6
  import FieldContext from './FieldContext';
7
7
  var FieldLabel = function FieldLabel(props) {
8
- var _classnames;
9
8
  var _useContext = useContext(ConfigContext),
10
9
  getPrefixCls = _useContext.getPrefixCls,
11
10
  prefixCls = _useContext.prefixCls,
@@ -24,7 +23,7 @@ var FieldLabel = function FieldLabel(props) {
24
23
  var fieldLabelPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, 'form-field-label', customizePrefixCls);
25
24
  var mergedLabelWidth = width || contextLabelWidth;
26
25
  var mergedLabelAlign = textAlign || contextLabelAlign;
27
- var labelWrapperClassName = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(fieldLabelPrefixCls), true), _defineProperty(_classnames, "".concat(fieldLabelPrefixCls, "-right"), mergedLabelAlign === 'right'), _classnames));
26
+ var labelWrapperClassName = classnames(_defineProperty(_defineProperty({}, "".concat(fieldLabelPrefixCls), true), "".concat(fieldLabelPrefixCls, "-right"), mergedLabelAlign === 'right'));
28
27
  var labelClassName = classnames(_defineProperty({}, "".concat(fieldLabelPrefixCls, "-required-mark"), requiredMark));
29
28
  var style = {
30
29
  width: mergedLabelWidth
@@ -16,21 +16,21 @@ var FieldWrapper = function FieldWrapper(props) {
16
16
  var wrapperPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, 'form-field-wrapper', customizePrefixCls);
17
17
  var wrapperClassName = classnames(["".concat(wrapperPrefixCls)]);
18
18
  var messageClassName = classnames(["".concat(wrapperPrefixCls, "-message")]);
19
- var validate = validateMessage ? /*#__PURE__*/React.createElement("p", {
19
+ var validate = validateMessage ? (/*#__PURE__*/React.createElement("p", {
20
20
  className: messageClassName,
21
21
  title: validateMessage
22
- }, validateMessage) : null;
22
+ }, validateMessage)) : null;
23
23
  return /*#__PURE__*/React.createElement("div", {
24
24
  className: wrapperClassName,
25
25
  style: {
26
26
  width: width
27
27
  }
28
- }, children, extra ? /*#__PURE__*/React.createElement("div", {
28
+ }, children, extra ? (/*#__PURE__*/React.createElement("div", {
29
29
  className: "".concat(wrapperPrefixCls, "-extra")
30
30
  }, /*#__PURE__*/React.createElement("div", {
31
31
  className: "".concat(wrapperPrefixCls, "-extra-message")
32
32
  }, validateMessage), /*#__PURE__*/React.createElement("div", {
33
33
  className: "".concat(wrapperPrefixCls, "-extra-text")
34
- }, extra)) : /*#__PURE__*/React.createElement(React.Fragment, null, validate));
34
+ }, extra))) : (/*#__PURE__*/React.createElement(React.Fragment, null, validate)));
35
35
  };
36
36
  export default FieldWrapper;
package/es/form/Form.js CHANGED
@@ -19,7 +19,7 @@ import useForm, { INTERNAL_HOOK_KEY } from './hooks/useForm';
19
19
  import FormContext from './FormContext';
20
20
  import FieldContext from './FieldContext';
21
21
  var Form = function Form(props, ref) {
22
- var _context, _classnames;
22
+ var _context;
23
23
  var _useContext = useContext(ConfigContext),
24
24
  getPrefixCls = _useContext.getPrefixCls,
25
25
  prefixCls = _useContext.prefixCls,
@@ -45,7 +45,7 @@ var Form = function Form(props, ref) {
45
45
  disabled = formProps.disabled,
46
46
  restProps = __rest(formProps, ["children", "defaultValues", "className", "form", "labelAlign", "labelWidth", "layout", "name", "prefixCls", "wrapperWidth", "onFinish", "onFinishFailed", "onValuesChange", "disabled"]);
47
47
  var formPrefixCls = getPrefixCls(prefixCls, 'form', customizePrefixCls);
48
- var formClassName = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(formPrefixCls), true), _defineProperty(_classnames, _concatInstanceProperty(_context = "".concat(formPrefixCls, "-")).call(_context, layout), true), _classnames), className);
48
+ var formClassName = classnames(_defineProperty(_defineProperty({}, "".concat(formPrefixCls), true), _concatInstanceProperty(_context = "".concat(formPrefixCls, "-")).call(_context, layout), true), className);
49
49
  var formContext = useContext(FormContext);
50
50
  var _useForm = useForm(form),
51
51
  _useForm2 = _slicedToArray(_useForm, 1),
package/es/icon/icon.js CHANGED
@@ -15,7 +15,7 @@ import classNames from 'classnames';
15
15
  import ConfigContext from '../config-provider/ConfigContext';
16
16
  import { getCompProps } from '../_utils';
17
17
  var InternalIcon = function InternalIcon(props, ref) {
18
- var _context, _classNames;
18
+ var _context;
19
19
  var _useContext = useContext(ConfigContext),
20
20
  userDefaultProps = _useContext.compDefaultProps;
21
21
  var iconProps = getCompProps('Icon', userDefaultProps, props);
@@ -32,7 +32,7 @@ var InternalIcon = function InternalIcon(props, ref) {
32
32
  var innerRef = React.useRef();
33
33
  var iconRef = ref || innerRef;
34
34
  var iconPrefix = prefix || iconProps.iconPrefix;
35
- var iconClass = classNames(iconPrefix, className, (_classNames = {}, _defineProperty(_classNames, _concatInstanceProperty(_context = "".concat(iconPrefix, "-")).call(_context, type), type), _defineProperty(_classNames, "icon-spin", spin), _classNames));
35
+ var iconClass = classNames(iconPrefix, className, _defineProperty(_defineProperty({}, _concatInstanceProperty(_context = "".concat(iconPrefix, "-")).call(_context, type), type), "icon-spin", spin));
36
36
  var handleClick = function handleClick(e) {
37
37
  onClick && onClick(e);
38
38
  };
package/es/image/image.js CHANGED
@@ -50,9 +50,9 @@ var ImageInternal = function ImageInternal(props, ref) {
50
50
  visible = _React$useState8[0],
51
51
  setVisible = _React$useState8[1];
52
52
  var _React$useState9 = React.useState(''),
53
- _React$useState10 = _slicedToArray(_React$useState9, 2),
54
- transformOrigin = _React$useState10[0],
55
- setTransformOrigin = _React$useState10[1];
53
+ _React$useState0 = _slicedToArray(_React$useState9, 2),
54
+ transformOrigin = _React$useState0[0],
55
+ setTransformOrigin = _React$useState0[1];
56
56
  React.useEffect(function () {
57
57
  placeholder && setSrc(placeholder);
58
58
  var img = new window.Image();
@@ -48,9 +48,9 @@ var PreviewGroup = function PreviewGroup(_ref) {
48
48
  visible = _React$useState8[0],
49
49
  setVisible = _React$useState8[1];
50
50
  var _React$useState9 = React.useState(''),
51
- _React$useState10 = _slicedToArray(_React$useState9, 2),
52
- transformOrigin = _React$useState10[0],
53
- setTransformOrigin = _React$useState10[1];
51
+ _React$useState0 = _slicedToArray(_React$useState9, 2),
52
+ transformOrigin = _React$useState0[0],
53
+ setTransformOrigin = _React$useState0[1];
54
54
  var calcTransformOrigin = function calcTransformOrigin(element) {
55
55
  var _context2;
56
56
  var transformOriginX = element && element.getBoundingClientRect().x + element.getBoundingClientRect().width / 2;
@@ -121,13 +121,13 @@ var Preview = function Preview(props) {
121
121
  onClick: onClose
122
122
  }, /*#__PURE__*/React.createElement("img", _extends({}, previewImgProps)))), /*#__PURE__*/React.createElement("div", {
123
123
  className: "".concat(prefixCls, "-preview-action")
124
- }, props.type !== 'upload' && length && /*#__PURE__*/React.createElement(Icon, {
124
+ }, props.type !== 'upload' && length && (/*#__PURE__*/React.createElement(Icon, {
125
125
  type: "arrow-left",
126
126
  className: classNames({
127
127
  disabled: current <= 0
128
128
  }),
129
129
  onClick: props.onPrevious
130
- }), /*#__PURE__*/React.createElement(Icon, {
130
+ })), /*#__PURE__*/React.createElement(Icon, {
131
131
  type: "shrink",
132
132
  className: classNames({
133
133
  disabled: scale <= minScale
@@ -139,13 +139,13 @@ var Preview = function Preview(props) {
139
139
  disabled: scale >= maxScale
140
140
  }),
141
141
  onClick: handleZoomIn
142
- }), props.type !== 'upload' && operations, props.type !== 'upload' && length && /*#__PURE__*/React.createElement(Icon, {
142
+ }), props.type !== 'upload' && operations, props.type !== 'upload' && length && (/*#__PURE__*/React.createElement(Icon, {
143
143
  type: "arrow-right",
144
144
  className: classNames({
145
145
  disabled: current >= length - 1
146
146
  }),
147
147
  onClick: props.onNext
148
- })), props.type === 'upload' && length && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
148
+ }))), props.type === 'upload' && length && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
149
149
  className: "".concat(prefixCls, "-preview-previous")
150
150
  }, /*#__PURE__*/React.createElement(Icon, {
151
151
  type: "arrow-left",
@@ -167,11 +167,11 @@ var Preview = function Preview(props) {
167
167
  disabled: current >= length - 1
168
168
  }),
169
169
  onClick: props.onNext
170
- }))), props.type !== 'upload' && /*#__PURE__*/React.createElement(Icon, {
170
+ })))), props.type !== 'upload' && (/*#__PURE__*/React.createElement(Icon, {
171
171
  className: "".concat(prefixCls, "-preview-close"),
172
172
  type: "close-solid",
173
173
  onClick: onClose
174
- }), props.type === 'upload' && /*#__PURE__*/React.createElement("div", {
174
+ })), props.type === 'upload' && (/*#__PURE__*/React.createElement("div", {
175
175
  className: "".concat(prefixCls, "-preview-topbar")
176
176
  }, /*#__PURE__*/React.createElement("div", {
177
177
  className: "".concat(prefixCls, "-preview-topbar-info")
@@ -185,7 +185,7 @@ var Preview = function Preview(props) {
185
185
  onClick: onClose
186
186
  }, /*#__PURE__*/React.createElement(Icon, {
187
187
  type: "close-solid"
188
- }), "\u5173\u95ED"))));
188
+ }), "\u5173\u95ED")))));
189
189
  return /*#__PURE__*/ReactDOM.createPortal(peviewContainer, document.body);
190
190
  };
191
191
  export default Preview;
@@ -84,15 +84,15 @@ var InternalImageCropper = function InternalImageCropper(props, forwardedRef) {
84
84
  var handleOkClick = function handleOkClick() {
85
85
  return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
86
86
  var imgFile;
87
- return _regeneratorRuntime.wrap(function _callee$(_context) {
87
+ return _regeneratorRuntime.wrap(function (_context) {
88
88
  while (1) switch (_context.prev = _context.next) {
89
89
  case 0:
90
- _context.next = 2;
90
+ _context.next = 1;
91
91
  return cropperRef.current.getImage();
92
- case 2:
92
+ case 1:
93
93
  imgFile = _context.sent;
94
94
  imgFile ? onCropSuccess === null || onCropSuccess === void 0 ? void 0 : onCropSuccess(imgFile) : onCropFailed === null || onCropFailed === void 0 ? void 0 : onCropFailed(imgFile);
95
- case 4:
95
+ case 2:
96
96
  case "end":
97
97
  return _context.stop();
98
98
  }
@@ -66,7 +66,7 @@ var OperationBar = function OperationBar(props) {
66
66
  }, [accept, beforeUpload]);
67
67
  return /*#__PURE__*/React.createElement("div", {
68
68
  className: className
69
- }, showDeaultToolbar && /*#__PURE__*/React.createElement("div", {
69
+ }, showDeaultToolbar && (/*#__PURE__*/React.createElement("div", {
70
70
  className: classNames(btnClassName)
71
71
  }, /*#__PURE__*/React.createElement(Icon, {
72
72
  type: "reduction",
@@ -86,14 +86,14 @@ var OperationBar = function OperationBar(props) {
86
86
  onClick: function onClick() {
87
87
  return handleZoom(0.1);
88
88
  }
89
- })), customComponents && _mapInstanceProperty(customComponents).call(customComponents, function (Component, index) {
89
+ }))), customComponents && _mapInstanceProperty(customComponents).call(customComponents, function (Component, index) {
90
90
  return Component(getCropper, index);
91
- }), okBtn ? /*#__PURE__*/React.createElement("div", {
91
+ }), okBtn ? (/*#__PURE__*/React.createElement("div", {
92
92
  onClick: handleBtnClick
93
- }, okBtn) : /*#__PURE__*/React.createElement(Button, {
93
+ }, okBtn)) : (/*#__PURE__*/React.createElement(Button, {
94
94
  className: classNames('ok-btn'),
95
95
  type: "primary",
96
96
  onClick: handleBtnClick
97
- }, okText));
97
+ }, okText)));
98
98
  };
99
99
  export default OperationBar;
@@ -51,12 +51,11 @@ var ClearableInput = function ClearableInput(props) {
51
51
  (_b = (_a = fixRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('input')) === null || _b === void 0 ? void 0 : _b.focus();
52
52
  };
53
53
  var renderClearIcon = function renderClearIcon() {
54
- var _classNames;
55
54
  if (!allowClear) {
56
55
  return null;
57
56
  }
58
57
  var needClear = !disabled && value && isMouseEnter;
59
- var clearIconclasses = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-textarea-clear-icon"), inputType === ClearableInputType[1]), _defineProperty(_classNames, "".concat(prefixCls, "-clear-icon"), inputType === ClearableInputType[0]), _defineProperty(_classNames, "".concat(prefixCls, "-clear-icon-hidden"), !needClear), _defineProperty(_classNames, "".concat(prefixCls, "-clear-icon-rightSpace"), suffix), _classNames));
58
+ var clearIconclasses = classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-textarea-clear-icon"), inputType === ClearableInputType[1]), "".concat(prefixCls, "-clear-icon"), inputType === ClearableInputType[0]), "".concat(prefixCls, "-clear-icon-hidden"), !needClear), "".concat(prefixCls, "-clear-icon-rightSpace"), suffix));
60
59
  return /*#__PURE__*/React.createElement("span", {
61
60
  onMouseDown: mouseDownHandle,
62
61
  onClick: handleReset,
@@ -79,16 +78,16 @@ var ClearableInput = function ClearableInput(props) {
79
78
  return null;
80
79
  };
81
80
  var renderInputWithFixNode = function renderInputWithFixNode(originElement) {
82
- var _context, _classNames2;
81
+ var _context;
83
82
  if (!hasPrefixSuffix(props) && !count) {
84
83
  return originElement;
85
84
  }
86
85
  var suffixNode = renderSuffix();
87
- var prefixNode = prefix ? /*#__PURE__*/React.createElement("span", {
86
+ var prefixNode = prefix ? (/*#__PURE__*/React.createElement("span", {
88
87
  className: "".concat(prefixCls, "-prefix"),
89
88
  onMouseDown: mouseDownHandle
90
- }, prefix) : null;
91
- var inputWrapperClasses = classNames((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-wrapper"), true), _defineProperty(_classNames2, "".concat(prefixCls, "-wrapper-focused"), focused && !disabled), _defineProperty(_classNames2, _concatInstanceProperty(_context = "".concat(prefixCls, "-wrapper-size-")).call(_context, size), size), _defineProperty(_classNames2, "".concat(prefixCls, "-wrapper-borderless"), borderType === 'none'), _defineProperty(_classNames2, "".concat(prefixCls, "-wrapper-underline"), borderType === 'underline'), _defineProperty(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), _defineProperty(_classNames2, "".concat(prefixCls, "-wrapper-disabled"), disabled), _classNames2), _defineProperty({}, className, className && !addonBefore && !addonAfter));
89
+ }, prefix)) : null;
90
+ var inputWrapperClasses = classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-wrapper"), true), "".concat(prefixCls, "-wrapper-focused"), focused && !disabled), _concatInstanceProperty(_context = "".concat(prefixCls, "-wrapper-size-")).call(_context, size), size), "".concat(prefixCls, "-wrapper-borderless"), borderType === 'none'), "".concat(prefixCls, "-wrapper-underline"), borderType === 'underline'), "".concat(prefixCls, "-error"), status === 'error'), "".concat(prefixCls, "-wrapper-disabled"), disabled), _defineProperty({}, className, className && !addonBefore && !addonAfter));
92
91
  return /*#__PURE__*/React.createElement("span", {
93
92
  className: inputWrapperClasses,
94
93
  ref: fixRef,
@@ -101,18 +100,18 @@ var ClearableInput = function ClearableInput(props) {
101
100
  }), renderClearIcon(), suffixNode);
102
101
  };
103
102
  var renderInputWithLabel = function renderInputWithLabel(originElement) {
104
- var _classNames4, _context2, _classNames5;
103
+ var _context2;
105
104
  if (!addonBefore && !addonAfter && !count) {
106
105
  return originElement;
107
106
  }
108
- var addonClassName = classNames("".concat(prefixCls, "-group-addon"), (_classNames4 = {}, _defineProperty(_classNames4, "".concat(prefixCls, "-group-addon-borderless"), borderType === 'none'), _defineProperty(_classNames4, "".concat(prefixCls, "-group-addon-underline"), borderType === 'underline'), _defineProperty(_classNames4, "".concat(prefixCls, "-error"), status === 'error'), _defineProperty(_classNames4, "".concat(prefixCls, "-group-addon-disabled"), disabled), _classNames4));
107
+ var addonClassName = classNames("".concat(prefixCls, "-group-addon"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-group-addon-borderless"), borderType === 'none'), "".concat(prefixCls, "-group-addon-underline"), borderType === 'underline'), "".concat(prefixCls, "-error"), status === 'error'), "".concat(prefixCls, "-group-addon-disabled"), disabled));
109
108
  var addonBeforeNode = addonBefore ? /*#__PURE__*/React.createElement("span", {
110
109
  className: addonClassName
111
110
  }, addonBefore) : null;
112
111
  var addonAfterNode = addonAfter ? /*#__PURE__*/React.createElement("span", {
113
112
  className: addonClassName
114
113
  }, addonAfter) : null;
115
- var inputGroupClasses = classNames(className, (_classNames5 = {}, _defineProperty(_classNames5, "".concat(prefixCls, "-group"), true), _defineProperty(_classNames5, _concatInstanceProperty(_context2 = "".concat(prefixCls, "-group-size-")).call(_context2, size), size), _classNames5));
114
+ var inputGroupClasses = classNames(className, _defineProperty(_defineProperty({}, "".concat(prefixCls, "-group"), true), _concatInstanceProperty(_context2 = "".concat(prefixCls, "-group-size-")).call(_context2, size), size));
116
115
  return /*#__PURE__*/React.createElement("span", {
117
116
  className: "".concat(prefixCls, "-group-wrapper")
118
117
  }, /*#__PURE__*/React.createElement("span", {
@@ -121,8 +121,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
121
121
  };
122
122
  var renderNumberMark = function renderNumberMark() {
123
123
  if (count && (showNumberMark || numberMarkError) && !disabled && maxLength !== '' && maxLength >= 0) {
124
- var _classNames;
125
- var countClass = classNames("".concat(textAreaPrefixCls, "-textarea-mark"), (_classNames = {}, _defineProperty(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'), _defineProperty(_classNames, "".concat(textAreaPrefixCls, "-textarea-mark-error"), numberMarkError), _classNames));
124
+ var countClass = classNames("".concat(textAreaPrefixCls, "-textarea-mark"), _defineProperty(_defineProperty({}, "".concat(textAreaPrefixCls, "-textarea-mark-inner"), countPosition === 'inner'), "".concat(textAreaPrefixCls, "-textarea-mark-error"), numberMarkError));
126
125
  return /*#__PURE__*/React.createElement("div", {
127
126
  className: countClass
128
127
  }, value ? value.length : 0, "/", maxLength);
@@ -148,7 +147,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
148
147
  }
149
148
  }, [focused]);
150
149
  var renderTextArea = function renderTextArea(prefixCls) {
151
- var _context, _classNames2, _context2;
150
+ var _context, _context2;
152
151
  var hadCount = count && !disabled && !allowClear;
153
152
  var _a = style || {},
154
153
  width = _a.width,
@@ -175,7 +174,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
175
174
  ref: textareaRef,
176
175
  disabled: disabled,
177
176
  style: _extends({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
178
- className: classNames("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _defineProperty(_classNames2, _concatInstanceProperty(_context = "".concat(prefixCls, "-size-")).call(_context, size), size), _defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _defineProperty(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _defineProperty(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _defineProperty(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-error"), status === 'error' || numberMarkError), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _defineProperty({}, className, className && !allowClear && !hadCount)),
177
+ className: classNames("".concat(prefixCls, "-textarea"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _concatInstanceProperty(_context = "".concat(prefixCls, "-size-")).call(_context, size), size), "".concat(prefixCls, "-borderless"), borderType === 'none'), "".concat(prefixCls, "-underline"), borderType === 'underline'), "".concat(prefixCls, "-no-resize"), canResize !== true), "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), "".concat(prefixCls, "-error"), status === 'error' || numberMarkError), "".concat(prefixCls, "-disabled"), disabled), _defineProperty({}, className, className && !allowClear && !hadCount)),
179
178
  onChange: handleChange,
180
179
  onFocus: !disabled ? handleFocus : undefined,
181
180
  onBlur: !disabled ? handleBlur : undefined,
@@ -183,10 +182,10 @@ var InternalTextarea = function InternalTextarea(props, ref) {
183
182
  placeholder: placeholder,
184
183
  maxLength: maxLength
185
184
  }, others));
186
- return hadCount ? /*#__PURE__*/React.createElement("span", {
185
+ return hadCount ? (/*#__PURE__*/React.createElement("span", {
187
186
  style: wrapperStyle,
188
187
  className: _concatInstanceProperty(_context2 = "".concat(prefixCls, "-countWrapper ")).call(_context2, className && !allowClear ? className : '')
189
- }, textarea, renderNumberMark()) : textarea;
188
+ }, textarea, renderNumberMark())) : textarea;
190
189
  };
191
190
  return /*#__PURE__*/React.createElement(ClearableInput, _extends({}, textAreaProps, {
192
191
  handleReset: handleReset,