@kdcloudjs/kdesign 1.7.33-stable.12 → 1.7.33-stable.12-hotfix.3

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 +8518 -6736
  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 +42 -42
  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 +78 -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 +46 -50
  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 +86 -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 -1880
@@ -110,7 +110,7 @@ function Panel(props) {
110
110
  endPeriod = _getYearsPeriod.endPeriod;
111
111
  var headerCls = classnames("".concat(prefixCls, "-header"), "".concat(prefixCls, "-header-year"));
112
112
  return {
113
- children: /*#__PURE__*/React.createElement(React.Fragment, null, startPeriod, " - ", endPeriod),
113
+ children: (/*#__PURE__*/React.createElement(React.Fragment, null, startPeriod, " - ", endPeriod)),
114
114
  className: headerCls
115
115
  };
116
116
  };
@@ -133,18 +133,17 @@ function Panel(props) {
133
133
  }
134
134
  };
135
135
  var renderDateHeader = function renderDateHeader() {
136
- var _classnames, _classnames2;
137
136
  var year = getYear(viewDate);
138
137
  var month = getMonth(viewDate) + 1;
139
138
  var headerCls = classnames("".concat(prefixCls, "-header"), "".concat(prefixCls, "-header-date"));
140
139
  return {
141
- children: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
142
- className: classnames("".concat(prefixCls, "-header-text-inner"), (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-header-text-inner-active"), innerPicker === 'year'), _defineProperty(_classnames, "".concat(prefixCls, "-header-text-inner-hover"), picker === 'date'), _classnames)),
140
+ children: (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
141
+ className: classnames("".concat(prefixCls, "-header-text-inner"), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-header-text-inner-active"), innerPicker === 'year'), "".concat(prefixCls, "-header-text-inner-hover"), picker === 'date')),
143
142
  onClick: onHeaderYearClick
144
143
  }, year + locale.year), /*#__PURE__*/React.createElement("span", {
145
- className: classnames("".concat(prefixCls, "-header-text-inner"), (_classnames2 = {}, _defineProperty(_classnames2, "".concat(prefixCls, "-header-text-inner-active"), innerPicker === 'month'), _defineProperty(_classnames2, "".concat(prefixCls, "-header-text-inner-hover"), picker === 'date'), _classnames2)),
144
+ className: classnames("".concat(prefixCls, "-header-text-inner"), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-header-text-inner-active"), innerPicker === 'month'), "".concat(prefixCls, "-header-text-inner-hover"), picker === 'date')),
146
145
  onClick: onHeaderMonthClick
147
- }, month + locale.month)),
146
+ }, month + locale.month))),
148
147
  className: headerCls
149
148
  };
150
149
  };
@@ -350,9 +350,9 @@ var InternalDatePicker = function InternalDatePicker(props, ref) {
350
350
  innerPicker: innerPicker,
351
351
  setInnerPicker: setInnerPicker
352
352
  }
353
- }, panelNode, (extraFooter || rangesNode || todayNode) && innerPicker === undefined ? /*#__PURE__*/React.createElement("div", {
353
+ }, panelNode, (extraFooter || rangesNode || todayNode) && innerPicker === undefined ? (/*#__PURE__*/React.createElement("div", {
354
354
  className: "".concat(datePickerPrefixCls, "-footer")
355
- }, extraFooter, rangesNode, todayNode) : null);
355
+ }, extraFooter, rangesNode, todayNode)) : null);
356
356
  };
357
357
  var inputProps = {
358
358
  inputRef: inputRef,
@@ -395,7 +395,7 @@ var InternalDatePicker = function InternalDatePicker(props, ref) {
395
395
  triggerChange: triggerChange,
396
396
  resetText: resetText
397
397
  };
398
- return usePopper( /*#__PURE__*/React.createElement(InputDate, _extends({
398
+ return usePopper(/*#__PURE__*/React.createElement(InputDate, _extends({
399
399
  ref: inputDivRef
400
400
  }, inputProps)), /*#__PURE__*/React.createElement("div", {
401
401
  ref: popperRef,
@@ -15,7 +15,6 @@ export default function useRangeCls(_ref) {
15
15
  isEnd = _ref.isEnd;
16
16
  function getClassName(date) {
17
17
  if (isRange) {
18
- var _classnames;
19
18
  var _rangeValue = rangeValue || [null, null];
20
19
  if (hoverRangedValue === null || hoverRangedValue === void 0 ? void 0 : _findInstanceProperty(hoverRangedValue).call(hoverRangedValue, function (n) {
21
20
  return n;
@@ -28,7 +27,7 @@ export default function useRangeCls(_ref) {
28
27
  if (isSameDay(_rangeValue[0], _rangeValue[1])) return {};
29
28
  if (isCurrentMonth && !isCurrentMonth(date)) return {};
30
29
  if (_rangeValue[0] && _rangeValue[1] && isAfter(_rangeValue[0], _rangeValue[1])) return {};
31
- return classnames((_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-range-view"), isAfterStart(date, _rangeValue) && isBeforeEnd(date, _rangeValue)), _defineProperty(_classnames, "".concat(prefixCls, "-range-start"), isStart(date, _rangeValue)), _defineProperty(_classnames, "".concat(prefixCls, "-range-end"), isEnd(date, _rangeValue)), _classnames));
30
+ return classnames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-range-view"), isAfterStart(date, _rangeValue) && isBeforeEnd(date, _rangeValue)), "".concat(prefixCls, "-range-start"), isStart(date, _rangeValue)), "".concat(prefixCls, "-range-end"), isEnd(date, _rangeValue)));
32
31
  }
33
32
  return {};
34
33
  }
@@ -8,5 +8,5 @@ export interface DatetimePanelProps extends PanelSharedProps, Omit<CalendarProps
8
8
  showTime?: boolean | SharedTimeProps;
9
9
  defaultValue?: DateType;
10
10
  }
11
- declare function DatetimePanel(props: DatetimePanelProps): JSX.Element;
11
+ declare function DatetimePanel(props: DatetimePanelProps): React.JSX.Element;
12
12
  export default DatetimePanel;
@@ -11,5 +11,5 @@ export interface HeaderProps {
11
11
  onSuperPrev?: () => void;
12
12
  onSuperNext?: () => void;
13
13
  }
14
- declare function Header(props: HeaderProps): JSX.Element;
14
+ declare function Header(props: HeaderProps): React.JSX.Element;
15
15
  export default Header;
@@ -19,36 +19,36 @@ function Header(props) {
19
19
  var textCls = classnames("".concat(prefixCls, "-header-text"));
20
20
  return /*#__PURE__*/React.createElement("div", {
21
21
  className: className
22
- }, onSuperPrev ? /*#__PURE__*/React.createElement("span", {
22
+ }, onSuperPrev ? (/*#__PURE__*/React.createElement("span", {
23
23
  className: iconCls,
24
24
  onClick: onSuperPrev
25
25
  }, superPrevIcon || /*#__PURE__*/React.createElement(Icon, {
26
26
  type: "double-arrow-left"
27
- })) : /*#__PURE__*/React.createElement("span", {
27
+ }))) : (/*#__PURE__*/React.createElement("span", {
28
28
  className: iconCls
29
- }), onPrev ? /*#__PURE__*/React.createElement("span", {
29
+ })), onPrev ? (/*#__PURE__*/React.createElement("span", {
30
30
  className: iconCls,
31
31
  onClick: onPrev
32
32
  }, prevIcon || /*#__PURE__*/React.createElement(Icon, {
33
33
  type: "arrow-left"
34
- })) : /*#__PURE__*/React.createElement("span", {
34
+ }))) : (/*#__PURE__*/React.createElement("span", {
35
35
  className: iconCls
36
- }), /*#__PURE__*/React.createElement("span", {
36
+ })), /*#__PURE__*/React.createElement("span", {
37
37
  className: textCls
38
- }, children), onNext ? /*#__PURE__*/React.createElement("span", {
38
+ }, children), onNext ? (/*#__PURE__*/React.createElement("span", {
39
39
  className: iconCls,
40
40
  onClick: onNext
41
41
  }, nextIcon || /*#__PURE__*/React.createElement(Icon, {
42
42
  type: "arrow-right"
43
- })) : /*#__PURE__*/React.createElement("span", {
43
+ }))) : (/*#__PURE__*/React.createElement("span", {
44
44
  className: iconCls
45
- }), onSuperNext ? /*#__PURE__*/React.createElement("span", {
45
+ })), onSuperNext ? (/*#__PURE__*/React.createElement("span", {
46
46
  className: iconCls,
47
47
  onClick: onSuperNext
48
48
  }, superNextIcon || /*#__PURE__*/React.createElement(Icon, {
49
49
  type: "double-arrow-right"
50
- })) : /*#__PURE__*/React.createElement("span", {
50
+ }))) : (/*#__PURE__*/React.createElement("span", {
51
51
  className: iconCls
52
- }));
52
+ })));
53
53
  }
54
54
  export default Header;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DateType } from '../../interface';
3
3
  export interface MonthProps {
4
4
  showFullMonth?: boolean;
5
5
  disabledDate?(date: DateType): boolean;
6
6
  }
7
- declare function Month(props: MonthProps): JSX.Element;
7
+ declare function Month(props: MonthProps): React.JSX.Element;
8
8
  export default Month;
@@ -55,8 +55,7 @@ function Month(props) {
55
55
  }
56
56
  };
57
57
  var getMonthClassNames = function getMonthClassNames(i) {
58
- var _classnames;
59
- return classnames("".concat(prefixCls, "-month-text"), (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-month-text-selected"), getMonthSelected(i)), _defineProperty(_classnames, "".concat(prefixCls, "-month-text-today"), getMonthToday(i)), _classnames));
58
+ return classnames("".concat(prefixCls, "-month-text"), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-month-text-selected"), getMonthSelected(i)), "".concat(prefixCls, "-month-text-today"), getMonthToday(i)));
60
59
  };
61
60
  var getRangeCls = useRangeCls({
62
61
  prefixCls: prefixCls,
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DateType } from '../../interface';
3
3
  interface QuarterProps {
4
4
  disabledDate?: (date: DateType) => boolean;
5
5
  }
6
- declare function Quarter(props: QuarterProps): JSX.Element;
6
+ declare function Quarter(props: QuarterProps): React.JSX.Element;
7
7
  export default Quarter;
@@ -51,8 +51,7 @@ function Quarter(props) {
51
51
  }
52
52
  };
53
53
  var getQuarterClassNames = function getQuarterClassNames(q) {
54
- var _classnames;
55
- return classnames("".concat(prefixCls, "-quarter-text"), (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-quarter-text-selected"), getQuarterSelected(q)), _defineProperty(_classnames, "".concat(prefixCls, "-quarter-text-today"), getQuarterToday(q)), _classnames));
54
+ return classnames("".concat(prefixCls, "-quarter-text"), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-quarter-text-selected"), getQuarterSelected(q)), "".concat(prefixCls, "-quarter-text-today"), getQuarterToday(q)));
56
55
  };
57
56
  var getRangeCls = useRangeCls({
58
57
  prefixCls: prefixCls,
@@ -13,5 +13,5 @@ export interface TimeUnitColumnProps {
13
13
  hideDisabledOptions?: boolean;
14
14
  onSelect?: (value: number) => void;
15
15
  }
16
- declare function TimeUnitColumn(props: TimeUnitColumnProps): JSX.Element;
16
+ declare function TimeUnitColumn(props: TimeUnitColumnProps): React.JSX.Element;
17
17
  export default TimeUnitColumn;
@@ -48,7 +48,6 @@ function TimeUnitColumn(props) {
48
48
  position: 'relative'
49
49
  }
50
50
  }, _mapInstanceProperty(units).call(units, function (unit) {
51
- var _classNames;
52
51
  if (hideDisabledOptions && unit.disabled) {
53
52
  return null;
54
53
  }
@@ -57,7 +56,7 @@ function TimeUnitColumn(props) {
57
56
  ref: function ref(element) {
58
57
  liRefs.current.set(unit.value, element);
59
58
  },
60
- className: classNames(cellPrefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(cellPrefixCls, "-disabled"), unit.disabled), _defineProperty(_classNames, "".concat(cellPrefixCls, "-selected"), value === unit.value), _classNames)),
59
+ className: classNames(cellPrefixCls, _defineProperty(_defineProperty({}, "".concat(cellPrefixCls, "-disabled"), unit.disabled), "".concat(cellPrefixCls, "-selected"), value === unit.value)),
61
60
  onClick: function onClick() {
62
61
  if (unit.disabled) {
63
62
  return;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { DateType, DisabledTimes, PanelSharedProps, PickerMode } from '../../interface';
3
3
  export interface SharedTimeProps extends DisabledTimes {
4
4
  format?: string;
@@ -17,5 +17,5 @@ export interface TimePanelProps extends PanelSharedProps, SharedTimeProps {
17
17
  format?: string;
18
18
  picker?: PickerMode;
19
19
  }
20
- declare function TimePanel(props: TimePanelProps): JSX.Element;
20
+ declare function TimePanel(props: TimePanelProps): React.JSX.Element;
21
21
  export default TimePanel;
@@ -212,9 +212,9 @@ function TimePanel(props) {
212
212
  className: classNames("".concat(prefixCls, "-time"), {
213
213
  // [`${panelPrefixCls}-active`]: active,
214
214
  })
215
- }, picker !== 'time' ? /*#__PURE__*/React.createElement(Header, {
215
+ }, picker !== 'time' ? (/*#__PURE__*/React.createElement(Header, {
216
216
  className: "".concat(prefixCls, "-time-header")
217
- }, !disabledTimePanel && value ? formatDate(value, format) : null) : null, /*#__PURE__*/React.createElement("div", {
217
+ }, !disabledTimePanel && value ? formatDate(value, format) : null)) : null, /*#__PURE__*/React.createElement("div", {
218
218
  className: classNames("".concat(prefixCls, "-content"), {
219
219
  // [`${panelPrefixCls}-active`]: active,
220
220
  })
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DateType, PickerMode } from '../../interface';
3
3
  export interface WeekProps {
4
4
  day: DateType;
@@ -7,5 +7,5 @@ export interface WeekProps {
7
7
  showTime?: boolean;
8
8
  disabledDate?: (date: DateType) => boolean;
9
9
  }
10
- declare function Week(props: WeekProps): JSX.Element;
10
+ declare function Week(props: WeekProps): React.JSX.Element;
11
11
  export default Week;
@@ -93,8 +93,8 @@ function Week(props) {
93
93
  }
94
94
  };
95
95
  var getDayClassNames = function getDayClassNames(date) {
96
- var _classnames, _context, _context2;
97
- return picker === 'date' ? classnames("".concat(prefixCls, "-calendar-text"), (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-calendar-text-selected"), getSelected(date)), _defineProperty(_classnames, "".concat(prefixCls, "-calendar-text-today"), getToday(date)), _classnames)) : picker === 'week' ? classnames(_concatInstanceProperty(_context = "".concat(prefixCls, "-calendar-")).call(_context, picker, "-text"), _defineProperty({}, _concatInstanceProperty(_context2 = "".concat(prefixCls, "-calendar-")).call(_context2, picker, "-text-today"), getWeekToday(date))) : '';
96
+ var _context, _context2;
97
+ return picker === 'date' ? classnames("".concat(prefixCls, "-calendar-text"), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-calendar-text-selected"), getSelected(date)), "".concat(prefixCls, "-calendar-text-today"), getToday(date))) : picker === 'week' ? classnames(_concatInstanceProperty(_context = "".concat(prefixCls, "-calendar-")).call(_context, picker, "-text"), _defineProperty({}, _concatInstanceProperty(_context2 = "".concat(prefixCls, "-calendar-")).call(_context2, picker, "-text-today"), getWeekToday(date))) : '';
98
98
  };
99
99
  var getRangeCls = useRangeCls({
100
100
  prefixCls: prefixCls,
@@ -153,19 +153,18 @@ function Week(props) {
153
153
  }
154
154
  };
155
155
  var renderDays = function renderDays() {
156
- var _context3, _classnames4;
156
+ var _context3;
157
157
  var startOfWeek = getStartOfWeek(day);
158
158
  var days = [];
159
159
  var weekNumber = formatWeekNumber(startOfWeek);
160
160
  if (showWeekNumber) {
161
161
  var calenderWeekNumberCls = classnames("".concat(prefixCls, "-calendar-weeknumber"));
162
- days.push( /*#__PURE__*/React.createElement("div", {
162
+ days.push(/*#__PURE__*/React.createElement("div", {
163
163
  key: "W",
164
164
  className: calenderWeekNumberCls
165
165
  }, weekNumber));
166
166
  }
167
167
  var week = _concatInstanceProperty(days).call(days, _mapInstanceProperty(_context3 = [0, 1, 2, 3, 4, 5, 6]).call(_context3, function (offset) {
168
- var _classnames3;
169
168
  var day = addDays(startOfWeek, offset);
170
169
  var date = getDate(day);
171
170
  var now;
@@ -203,12 +202,12 @@ function Week(props) {
203
202
  // console.log('disabledDate', disabledDate)
204
203
  return /*#__PURE__*/React.createElement("div", _extends({
205
204
  key: day.valueOf(),
206
- className: classnames("".concat(prefixCls, "-calendar-item"), (_classnames3 = {}, _defineProperty(_classnames3, "".concat(prefixCls, "-calendar-item-disabled"), disabledDate && disabledDate(day)), _defineProperty(_classnames3, "".concat(prefixCls, "-calendar-current"), currentMonth === getMonth(day)), _classnames3), getRangeCls(day))
205
+ className: classnames("".concat(prefixCls, "-calendar-item"), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-calendar-item-disabled"), disabledDate && disabledDate(day)), "".concat(prefixCls, "-calendar-current"), currentMonth === getMonth(day)), getRangeCls(day))
207
206
  }, _props), /*#__PURE__*/React.createElement("div", {
208
207
  className: getDayClassNames(day)
209
208
  }, date));
210
209
  }));
211
- var calenderLineCls = classnames((_classnames4 = {}, _defineProperty(_classnames4, "".concat(prefixCls, "-calendar-line"), picker !== 'week'), _defineProperty(_classnames4, "".concat(prefixCls, "-calendar-week-line"), picker === 'week'), _defineProperty(_classnames4, "".concat(prefixCls, "-calendar-week-selected"), picker === 'week' && getWeekSelected(startOfWeek)), _classnames4));
210
+ var calenderLineCls = classnames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-calendar-line"), picker !== 'week'), "".concat(prefixCls, "-calendar-week-line"), picker === 'week'), "".concat(prefixCls, "-calendar-week-selected"), picker === 'week' && getWeekSelected(startOfWeek)));
212
211
  return /*#__PURE__*/React.createElement("div", {
213
212
  className: calenderLineCls
214
213
  }, week);
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DateType, PickerMode } from '../../interface';
3
3
  export interface YearProps {
4
4
  yearItemNumber: number;
@@ -7,5 +7,5 @@ export interface YearProps {
7
7
  disabledDate?: (date: DateType) => boolean;
8
8
  picker?: PickerMode;
9
9
  }
10
- declare function Year(props: YearProps): JSX.Element;
10
+ declare function Year(props: YearProps): React.JSX.Element;
11
11
  export default Year;
@@ -55,8 +55,7 @@ function Year(props) {
55
55
  }
56
56
  };
57
57
  function getYearClassNames(y) {
58
- var _classnames;
59
- return classnames("".concat(prefixCls, "-year-text"), (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-year-text-selected"), getYearSelected(y)), _defineProperty(_classnames, "".concat(prefixCls, "-year-text-today"), getYearToday(y)), _classnames));
58
+ return classnames("".concat(prefixCls, "-year-text"), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-year-text-selected"), getYearSelected(y)), "".concat(prefixCls, "-year-text-today"), getYearToday(y)));
60
59
  }
61
60
  var getRangeCls = useRangeCls({
62
61
  prefixCls: prefixCls,
@@ -114,7 +113,7 @@ function Year(props) {
114
113
  }
115
114
  }
116
115
  };
117
- yearsList.push( /*#__PURE__*/React.createElement("div", _extends({
116
+ yearsList.push(/*#__PURE__*/React.createElement("div", _extends({
118
117
  className: classnames("".concat(prefixCls, "-year-item"), _defineProperty({}, "".concat(prefixCls, "-year-item-disabled"), disabledDate && disabledDate(year)), getRangeCls(year)),
119
118
  key: y
120
119
  }, _props), /*#__PURE__*/React.createElement("span", {
@@ -6,7 +6,6 @@ import classnames from 'classnames';
6
6
  import { usePopper } from 'react-popper';
7
7
  import { useOnClickOutside } from '../_utils/hooks';
8
8
  function Popper(props, ref) {
9
- var _classnames;
10
9
  var showArrow = props.showArrow,
11
10
  onClickOutside = props.onClickOutside,
12
11
  inputDivRef = props.inputDivRef,
@@ -45,7 +44,7 @@ function Popper(props, ref) {
45
44
  }),
46
45
  styles = _usePopper.styles,
47
46
  attributes = _usePopper.attributes;
48
- var arrowCls = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-has-arrow"), showArrow), _defineProperty(_classnames, "".concat(prefixCls, "-no-arrow"), !showArrow), _classnames));
47
+ var arrowCls = classnames(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-has-arrow"), showArrow), "".concat(prefixCls, "-no-arrow"), !showArrow));
49
48
  var panelWarpperCls = classnames("".concat(prefixCls, "-panel"), dropdownClassName, _defineProperty({
50
49
  'has-arrow': showArrow,
51
50
  'no-arrow': !showArrow
@@ -8,7 +8,7 @@ import { Icon } from '../../index';
8
8
  import usePickerInput from '../hooks/use-picker-input';
9
9
  import { getInputSize, getRangePlaceholder, elementsContains, getValue, updateValues } from '../utils';
10
10
  function InputDate(props, ref) {
11
- var _classnames, _context, _classnames2, _context2, _classnames3, _context3, _classnames4;
11
+ var _context, _context2, _context3;
12
12
  var startInputRef = props.startInputRef,
13
13
  endInputRef = props.endInputRef,
14
14
  startInputDivRef = props.startInputDivRef,
@@ -172,7 +172,7 @@ function InputDate(props, ref) {
172
172
  _usePickerInput4$ = _usePickerInput4[1],
173
173
  endFocused = _usePickerInput4$.focused,
174
174
  endTyping = _usePickerInput4$.typing;
175
- var borderClass = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-underline"), borderType === 'underline'), _defineProperty(_classnames, "".concat(prefixCls, "-borderless"), borderType === 'none'), _classnames));
175
+ var borderClass = classnames(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-underline"), borderType === 'underline'), "".concat(prefixCls, "-borderless"), borderType === 'none'));
176
176
  var mouseEnterHandle = function mouseEnterHandle(e) {
177
177
  setIsMouseEnter(true);
178
178
  if (typeof onMouseEnter === 'function') {
@@ -187,7 +187,7 @@ function InputDate(props, ref) {
187
187
  };
188
188
  return /*#__PURE__*/React.createElement("div", _extends({
189
189
  ref: ref,
190
- className: classnames(prefixCls, "".concat(prefixCls, "-range"), className, borderClass, (_classnames2 = {}, _defineProperty(_classnames2, _concatInstanceProperty(_context = "".concat(prefixCls, "-")).call(_context, size), size), _defineProperty(_classnames2, "".concat(prefixCls, "-disabled"), mergedDisabled[0] && mergedDisabled[1]), _defineProperty(_classnames2, "".concat(prefixCls, "-focused"), mergedActivePickerIndex === 0 ? startFocused : endFocused), _classnames2)),
190
+ className: classnames(prefixCls, "".concat(prefixCls, "-range"), className, borderClass, _defineProperty(_defineProperty(_defineProperty({}, _concatInstanceProperty(_context = "".concat(prefixCls, "-")).call(_context, size), size), "".concat(prefixCls, "-disabled"), mergedDisabled[0] && mergedDisabled[1]), "".concat(prefixCls, "-focused"), mergedActivePickerIndex === 0 ? startFocused : endFocused)),
191
191
  style: style,
192
192
  onMouseDown: onInternalonMouseDown,
193
193
  onMouseUp: onMouseUp,
@@ -196,7 +196,7 @@ function InputDate(props, ref) {
196
196
  onContextMenu: onContextMenu,
197
197
  onClick: onInternalonClick
198
198
  }, dataOrAriaProps), /*#__PURE__*/React.createElement("div", {
199
- className: classnames("".concat(prefixCls, "-input"), (_classnames3 = {}, _defineProperty(_classnames3, "".concat(prefixCls, "-input-active"), mergedActivePickerIndex === 0), _defineProperty(_classnames3, "".concat(prefixCls, "-input-placeholder"), !!startHoverValue), _defineProperty(_classnames3, _concatInstanceProperty(_context2 = "".concat(prefixCls, "-input-")).call(_context2, size), size), _classnames3)),
199
+ className: classnames("".concat(prefixCls, "-input"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-input-active"), mergedActivePickerIndex === 0), "".concat(prefixCls, "-input-placeholder"), !!startHoverValue), _concatInstanceProperty(_context2 = "".concat(prefixCls, "-input-")).call(_context2, size), size)),
200
200
  ref: startInputDivRef
201
201
  }, /*#__PURE__*/React.createElement("input", _extends({
202
202
  id: id,
@@ -216,7 +216,7 @@ function InputDate(props, ref) {
216
216
  className: "".concat(prefixCls, "-range-separator"),
217
217
  ref: separatorRef
218
218
  }, separator), /*#__PURE__*/React.createElement("div", {
219
- className: classnames("".concat(prefixCls, "-input"), (_classnames4 = {}, _defineProperty(_classnames4, "".concat(prefixCls, "-input-active"), mergedActivePickerIndex === 1), _defineProperty(_classnames4, "".concat(prefixCls, "-input-placeholder"), !!endHoverValue), _defineProperty(_classnames4, _concatInstanceProperty(_context3 = "".concat(prefixCls, "-input-")).call(_context3, size), size), _classnames4)),
219
+ className: classnames("".concat(prefixCls, "-input"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-input-active"), mergedActivePickerIndex === 1), "".concat(prefixCls, "-input-placeholder"), !!endHoverValue), _concatInstanceProperty(_context3 = "".concat(prefixCls, "-input-")).call(_context3, size), size)),
220
220
  ref: endInputDivRef
221
221
  }, /*#__PURE__*/React.createElement("input", _extends({
222
222
  ref: endInputRef,
@@ -308,9 +308,9 @@ var InternalRangePicker = function InternalRangePicker(props, ref) {
308
308
  var _useMergedState9 = useMergedState([picker, picker], {
309
309
  value: mode
310
310
  }),
311
- _useMergedState10 = _slicedToArray(_useMergedState9, 2),
312
- mergedModes = _useMergedState10[0],
313
- setInnerModes = _useMergedState10[1];
311
+ _useMergedState0 = _slicedToArray(_useMergedState9, 2),
312
+ mergedModes = _useMergedState0[0],
313
+ setInnerModes = _useMergedState0[1];
314
314
  var _useState3 = useState(undefined),
315
315
  _useState4 = _slicedToArray(_useState3, 2),
316
316
  innerPicker = _useState4[0],
@@ -675,7 +675,7 @@ var InternalRangePicker = function InternalRangePicker(props, ref) {
675
675
  }
676
676
  return null;
677
677
  };
678
- return usePopper( /*#__PURE__*/React.createElement(InputDate, _extends({
678
+ return usePopper(/*#__PURE__*/React.createElement(InputDate, _extends({
679
679
  ref: inputDivRef
680
680
  }, inputProps)), /*#__PURE__*/React.createElement("div", {
681
681
  ref: popperRef,
@@ -683,9 +683,9 @@ var InternalRangePicker = function InternalRangePicker(props, ref) {
683
683
  e.preventDefault();
684
684
  },
685
685
  className: classNames("".concat(datePickerPrefixCls, "-container"))
686
- }, /*#__PURE__*/React.createElement("div", null, renderPanels(), extraNode || rangesNode ? /*#__PURE__*/React.createElement("div", {
686
+ }, /*#__PURE__*/React.createElement("div", null, renderPanels(), extraNode || rangesNode ? (/*#__PURE__*/React.createElement("div", {
687
687
  className: "".concat(datePickerPrefixCls, "-footer")
688
- }, extraNode, rangesNode) : null), /*#__PURE__*/React.createElement("div", null, renderConfig())), {
688
+ }, extraNode, rangesNode)) : null), /*#__PURE__*/React.createElement("div", null, renderConfig())), {
689
689
  trigger: 'click',
690
690
  prefixCls: "".concat(datePickerPrefixCls, "-panel"),
691
691
  arrow: false,
@@ -8,7 +8,7 @@ import { Icon } from '../../index';
8
8
  import usePickerInput from '../hooks/use-picker-input';
9
9
  import { getInputSize, getPlaceholder, elementsContains } from '../utils';
10
10
  function InputDate(props, ref) {
11
- var _classnames, _context, _classnames2;
11
+ var _context;
12
12
  var inputRef = props.inputRef,
13
13
  panelDivRef = props.panelDivRef,
14
14
  id = props.id,
@@ -140,10 +140,10 @@ function InputDate(props, ref) {
140
140
  _usePickerInput2$ = _usePickerInput2[1],
141
141
  focused = _usePickerInput2$.focused,
142
142
  typing = _usePickerInput2$.typing;
143
- var borderClass = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-underline"), borderType === 'underline'), _defineProperty(_classnames, "".concat(prefixCls, "-borderless"), borderType === 'none'), _classnames));
143
+ var borderClass = classnames(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-underline"), borderType === 'underline'), "".concat(prefixCls, "-borderless"), borderType === 'none'));
144
144
  return /*#__PURE__*/React.createElement("div", _extends({
145
145
  ref: ref,
146
- className: classnames(prefixCls, className, borderClass, (_classnames2 = {}, _defineProperty(_classnames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classnames2, "".concat(prefixCls, "-focused"), focused), _defineProperty(_classnames2, _concatInstanceProperty(_context = "".concat(prefixCls, "-")).call(_context, size), size), _classnames2)),
146
+ className: classnames(prefixCls, className, borderClass, _defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), "".concat(prefixCls, "-focused"), focused), _concatInstanceProperty(_context = "".concat(prefixCls, "-")).call(_context, size), size)),
147
147
  style: style,
148
148
  onMouseDown: onInternalonMouseDown,
149
149
  onMouseUp: onInternalMouseUp,
@@ -152,7 +152,6 @@ export function getStartOfWeek(date) {
152
152
  return startOfWeek(date);
153
153
  // return startOfWeek(date)
154
154
  }
155
-
156
155
  export function getStartOfMonth(date) {
157
156
  return startOfMonth(date);
158
157
  }
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
2
  import { PanelMode } from '../interface';
3
- export default function getExtraFooter(prefixCls: string, mode: PanelMode, renderExtraFooter?: (mode: PanelMode) => React.ReactNode): JSX.Element | null;
3
+ export default function getExtraFooter(prefixCls: string, mode: PanelMode, renderExtraFooter?: (mode: PanelMode) => React.ReactNode): React.JSX.Element | null;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { Components, RangeList, InnerLocale } from '../interface';
3
3
  export interface RangesProps {
4
4
  prefixCls: string;
@@ -11,4 +11,4 @@ export interface RangesProps {
11
11
  showNow?: boolean;
12
12
  locale: InnerLocale;
13
13
  }
14
- export default function getRanges({ prefixCls, rangeList, components, needConfirmButton, onNow, onOk, okDisabled, showNow, locale, }: RangesProps): JSX.Element | null;
14
+ export default function getRanges({ prefixCls, rangeList, components, needConfirmButton, onNow, onOk, okDisabled, showNow, locale, }: RangesProps): React.JSX.Element | null;
@@ -42,12 +42,12 @@ export default function getRanges(_ref) {
42
42
  onClick: onNow
43
43
  }, locale.now));
44
44
  }
45
- okNode = needConfirmButton && /*#__PURE__*/React.createElement("li", {
45
+ okNode = needConfirmButton && (/*#__PURE__*/React.createElement("li", {
46
46
  className: "".concat(prefixCls, "-ok")
47
47
  }, /*#__PURE__*/React.createElement(Button, {
48
48
  onClick: onOk,
49
49
  className: classnames("".concat(prefixCls, "-ok-btn"), okDisabled && "".concat(prefixCls, "-btn-disabled"))
50
- }, locale.confrim));
50
+ }, locale.confrim)));
51
51
  }
52
52
  if (!presetNode && !okNode) {
53
53
  return null;
@@ -35,7 +35,7 @@ var documentBody = document.body;
35
35
  // return ('-' + size || 0) + 'px'
36
36
  // }
37
37
  var InternalDrawer = function InternalDrawer(props, ref) {
38
- var _classNames, _context2, _context3, _classNames2;
38
+ var _context2, _context3;
39
39
  var _a;
40
40
  var _useContext = useContext(ConfigContext),
41
41
  getPrefixCls = _useContext.getPrefixCls,
@@ -180,7 +180,7 @@ var InternalDrawer = function InternalDrawer(props, ref) {
180
180
  setDraerTransform(visible, placementName, value);
181
181
  }
182
182
  }, [contentRef, getHorizontalBoolAndPlacementName, height, setDraerTransform, visible, width]);
183
- var drawerClasses = classNames(drawerPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(drawerPrefixCls, "-hide"), !visible), _defineProperty(_classNames, "".concat(drawerPrefixCls, "-active"), visible), _defineProperty(_classNames, "".concat(drawerPrefixCls, "-not-at-body"), !isBody), _classNames));
183
+ var drawerClasses = classNames(drawerPrefixCls, className, _defineProperty(_defineProperty(_defineProperty({}, "".concat(drawerPrefixCls, "-hide"), !visible), "".concat(drawerPrefixCls, "-active"), visible), "".concat(drawerPrefixCls, "-not-at-body"), !isBody));
184
184
  var headerClass = "".concat(drawerPrefixCls, "-header");
185
185
  var _getHorizontalBoolAnd2 = getHorizontalBoolAndPlacementName(),
186
186
  placementName = _getHorizontalBoolAnd2.placementName;
@@ -194,28 +194,28 @@ var InternalDrawer = function InternalDrawer(props, ref) {
194
194
  transform: transform
195
195
  });
196
196
  var container = /*#__PURE__*/React.createElement("div", {
197
- className: classNames((_classNames2 = {}, _defineProperty(_classNames2, "".concat(drawerPrefixCls, "-container-box"), true), _defineProperty(_classNames2, "".concat(drawerPrefixCls, "-has-container-box"), drawerContainer), _defineProperty(_classNames2, _concatInstanceProperty(_context3 = "".concat(drawerPrefixCls, "-container-")).call(_context3, placement), true), _classNames2)),
197
+ className: classNames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(drawerPrefixCls, "-container-box"), true), "".concat(drawerPrefixCls, "-has-container-box"), drawerContainer), _concatInstanceProperty(_context3 = "".concat(drawerPrefixCls, "-container-")).call(_context3, placement), true)),
198
198
  style: containerStyle,
199
199
  ref: contentRef
200
- }, (title || closable) && /*#__PURE__*/React.createElement("div", {
200
+ }, (title || closable) && (/*#__PURE__*/React.createElement("div", {
201
201
  className: classNames(headerClass, headerClassName),
202
202
  style: headerStyle
203
203
  }, /*#__PURE__*/React.createElement("div", {
204
204
  className: classNames("".concat(drawerPrefixCls, "-title"), titleClassName),
205
205
  style: titleStyle
206
- }, title), closable && /*#__PURE__*/React.createElement("div", {
206
+ }, title), closable && (/*#__PURE__*/React.createElement("div", {
207
207
  className: "".concat(drawerPrefixCls, "-close-icon"),
208
208
  onClick: function onClick() {
209
209
  return closeDrawer();
210
210
  }
211
211
  }, closeIcon || /*#__PURE__*/React.createElement(Icon, {
212
212
  type: "close"
213
- }))), /*#__PURE__*/React.createElement("div", {
213
+ }))))), /*#__PURE__*/React.createElement("div", {
214
214
  className: "".concat(drawerPrefixCls, "-body")
215
- }, (showChildren || visible) && toArray(children)), footer && /*#__PURE__*/React.createElement("div", {
215
+ }, (showChildren || visible) && toArray(children)), footer && (/*#__PURE__*/React.createElement("div", {
216
216
  className: classNames("".concat(drawerPrefixCls, "-footer"), footerClassName),
217
217
  style: footerStyle
218
- }, footer));
218
+ }, footer)));
219
219
  var opposition = !mask && _includesInstanceProperty(PlacementTypes).call(PlacementTypes, placement) ? _includesInstanceProperty(horizontalPlacements).call(horizontalPlacements, placement) ? _filterInstanceProperty(horizontalPlacements).call(horizontalPlacements, function (p) {
220
220
  return p !== placement;
221
221
  })[0] : _filterInstanceProperty(verticalPlacements).call(verticalPlacements, function (p) {
@@ -230,11 +230,11 @@ var InternalDrawer = function InternalDrawer(props, ref) {
230
230
  zIndex: zindex || 'auto'
231
231
  }, noneMaskStyle), opposition ? _defineProperty({}, opposition, 'unset') : {}),
232
232
  ref: containerRef
233
- }, mask && /*#__PURE__*/React.createElement("div", {
233
+ }, mask && (/*#__PURE__*/React.createElement("div", {
234
234
  onClick: handleMaskClick,
235
235
  className: classNames("".concat(drawerPrefixCls, "-mask"), maskClassName),
236
236
  style: maskStyle
237
- }), container);
237
+ })), container);
238
238
  if (drawerContainer instanceof HTMLElement) return /*#__PURE__*/ReactDOM.createPortal(comp, drawerContainer);else if (drawerContainer !== false) {
239
239
  return /*#__PURE__*/ReactDOM.createPortal(comp, documentBody);
240
240
  }