@kdcloudjs/kdesign 1.0.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 (1689) hide show
  1. package/LICENSE +555 -0
  2. package/README.md +91 -0
  3. package/dist/default-theme.js +534 -0
  4. package/dist/kdesign-complete.less +11901 -0
  5. package/dist/kdesign.css +18244 -0
  6. package/dist/kdesign.css.map +1 -0
  7. package/dist/kdesign.js +118804 -0
  8. package/dist/kdesign.js.map +1 -0
  9. package/dist/kdesign.less +2 -0
  10. package/dist/kdesign.min.css +19 -0
  11. package/dist/kdesign.min.js +203 -0
  12. package/dist/kdesign.min.js.map +1 -0
  13. package/dist/theme.js +13 -0
  14. package/es/_utils/arrayUtil.d.ts +10 -0
  15. package/es/_utils/arrayUtil.js +35 -0
  16. package/es/_utils/devwarning.d.ts +1 -0
  17. package/es/_utils/devwarning.js +10 -0
  18. package/es/_utils/formatUtil.d.ts +46 -0
  19. package/es/_utils/formatUtil.js +347 -0
  20. package/es/_utils/hooks.d.ts +52 -0
  21. package/es/_utils/hooks.js +197 -0
  22. package/es/_utils/index.d.ts +8 -0
  23. package/es/_utils/index.js +15 -0
  24. package/es/_utils/numberUtil.d.ts +34 -0
  25. package/es/_utils/numberUtil.js +184 -0
  26. package/es/_utils/omit.d.ts +1 -0
  27. package/es/_utils/omit.js +11 -0
  28. package/es/_utils/react-children.d.ts +2 -0
  29. package/es/_utils/react-children.js +8 -0
  30. package/es/_utils/reactNode.d.ts +7 -0
  31. package/es/_utils/reactNode.js +10 -0
  32. package/es/_utils/type.d.ts +12 -0
  33. package/es/_utils/type.js +15 -0
  34. package/es/_utils/usePopper.d.ts +28 -0
  35. package/es/_utils/usePopper.js +608 -0
  36. package/es/alert/alert.d.ts +22 -0
  37. package/es/alert/alert.js +208 -0
  38. package/es/alert/index.d.ts +3 -0
  39. package/es/alert/index.js +2 -0
  40. package/es/alert/style/css.js +2 -0
  41. package/es/alert/style/index.css +242 -0
  42. package/es/alert/style/index.d.ts +2 -0
  43. package/es/alert/style/index.js +2 -0
  44. package/es/alert/style/index.less +118 -0
  45. package/es/alert/style/mixin.less +16 -0
  46. package/es/anchor/anchor-link.d.ts +12 -0
  47. package/es/anchor/anchor-link.js +75 -0
  48. package/es/anchor/anchor.d.ts +27 -0
  49. package/es/anchor/anchor.js +511 -0
  50. package/es/anchor/context.d.ts +3 -0
  51. package/es/anchor/context.js +3 -0
  52. package/es/anchor/index.d.ts +7 -0
  53. package/es/anchor/index.js +5 -0
  54. package/es/anchor/style/css.js +2 -0
  55. package/es/anchor/style/index.css +278 -0
  56. package/es/anchor/style/index.d.ts +2 -0
  57. package/es/anchor/style/index.js +2 -0
  58. package/es/anchor/style/index.less +191 -0
  59. package/es/anchor/style/mixin.less +7 -0
  60. package/es/avatar/avatar.d.ts +23 -0
  61. package/es/avatar/avatar.js +156 -0
  62. package/es/avatar/index.d.ts +3 -0
  63. package/es/avatar/index.js +3 -0
  64. package/es/avatar/style/css.js +2 -0
  65. package/es/avatar/style/index.css +192 -0
  66. package/es/avatar/style/index.d.ts +2 -0
  67. package/es/avatar/style/index.js +2 -0
  68. package/es/avatar/style/index.less +72 -0
  69. package/es/avatar/style/mixin.less +5 -0
  70. package/es/badge/badge.d.ts +34 -0
  71. package/es/badge/badge.js +144 -0
  72. package/es/badge/index.d.ts +3 -0
  73. package/es/badge/index.js +3 -0
  74. package/es/badge/style/css.js +2 -0
  75. package/es/badge/style/index.css +226 -0
  76. package/es/badge/style/index.d.ts +2 -0
  77. package/es/badge/style/index.js +2 -0
  78. package/es/badge/style/index.less +129 -0
  79. package/es/badge/style/mixin.less +5 -0
  80. package/es/base-data/base-data.d.ts +4 -0
  81. package/es/base-data/base-data.js +742 -0
  82. package/es/base-data/index.d.ts +3 -0
  83. package/es/base-data/index.js +3 -0
  84. package/es/base-data/interface.d.ts +57 -0
  85. package/es/base-data/interface.js +2 -0
  86. package/es/base-data/style/css.js +2 -0
  87. package/es/base-data/style/index.css +280 -0
  88. package/es/base-data/style/index.d.ts +2 -0
  89. package/es/base-data/style/index.js +2 -0
  90. package/es/base-data/style/index.less +188 -0
  91. package/es/base-data/style/mixin.less +5 -0
  92. package/es/button/button.d.ts +33 -0
  93. package/es/button/button.js +165 -0
  94. package/es/button/index.d.ts +3 -0
  95. package/es/button/index.js +2 -0
  96. package/es/button/style/css.js +2 -0
  97. package/es/button/style/index.css +321 -0
  98. package/es/button/style/index.d.ts +2 -0
  99. package/es/button/style/index.js +2 -0
  100. package/es/button/style/index.less +205 -0
  101. package/es/button/style/mixin.less +39 -0
  102. package/es/card/card.d.ts +24 -0
  103. package/es/card/card.js +64 -0
  104. package/es/card/index.d.ts +3 -0
  105. package/es/card/index.js +3 -0
  106. package/es/card/style/css.js +2 -0
  107. package/es/card/style/index.css +182 -0
  108. package/es/card/style/index.d.ts +2 -0
  109. package/es/card/style/index.js +2 -0
  110. package/es/card/style/index.less +98 -0
  111. package/es/carousel/carousel.d.ts +23 -0
  112. package/es/carousel/carousel.js +257 -0
  113. package/es/carousel/displayList.d.ts +12 -0
  114. package/es/carousel/displayList.js +26 -0
  115. package/es/carousel/fadeList.d.ts +14 -0
  116. package/es/carousel/fadeList.js +33 -0
  117. package/es/carousel/index.d.ts +7 -0
  118. package/es/carousel/index.js +7 -0
  119. package/es/carousel/slideList.d.ts +11 -0
  120. package/es/carousel/slideList.js +28 -0
  121. package/es/carousel/slidebar.d.ts +12 -0
  122. package/es/carousel/slidebar.js +46 -0
  123. package/es/carousel/style/css.js +2 -0
  124. package/es/carousel/style/index.css +327 -0
  125. package/es/carousel/style/index.d.ts +2 -0
  126. package/es/carousel/style/index.js +2 -0
  127. package/es/carousel/style/index.less +138 -0
  128. package/es/carousel/style/mixin.less +5 -0
  129. package/es/cascader/cascader.d.ts +54 -0
  130. package/es/cascader/cascader.js +265 -0
  131. package/es/cascader/index.d.ts +3 -0
  132. package/es/cascader/index.js +3 -0
  133. package/es/cascader/style/css.js +2 -0
  134. package/es/cascader/style/index.css +260 -0
  135. package/es/cascader/style/index.d.ts +2 -0
  136. package/es/cascader/style/index.js +2 -0
  137. package/es/cascader/style/index.less +173 -0
  138. package/es/checkbox/checkbox.d.ts +22 -0
  139. package/es/checkbox/checkbox.js +125 -0
  140. package/es/checkbox/group.d.ts +25 -0
  141. package/es/checkbox/group.js +148 -0
  142. package/es/checkbox/index.d.ts +11 -0
  143. package/es/checkbox/index.js +7 -0
  144. package/es/checkbox/style/css.js +2 -0
  145. package/es/checkbox/style/index.css +376 -0
  146. package/es/checkbox/style/index.d.ts +2 -0
  147. package/es/checkbox/style/index.js +2 -0
  148. package/es/checkbox/style/index.less +246 -0
  149. package/es/city-picker/city-group.d.ts +8 -0
  150. package/es/city-picker/city-group.js +46 -0
  151. package/es/city-picker/city-list.d.ts +12 -0
  152. package/es/city-picker/city-list.js +60 -0
  153. package/es/city-picker/city-panel-item.d.ts +13 -0
  154. package/es/city-picker/city-panel-item.js +27 -0
  155. package/es/city-picker/city-panel.d.ts +17 -0
  156. package/es/city-picker/city-panel.js +177 -0
  157. package/es/city-picker/city-picker.d.ts +24 -0
  158. package/es/city-picker/city-picker.js +175 -0
  159. package/es/city-picker/city-search-panel.d.ts +9 -0
  160. package/es/city-picker/city-search-panel.js +51 -0
  161. package/es/city-picker/index.d.ts +3 -0
  162. package/es/city-picker/index.js +3 -0
  163. package/es/city-picker/no-data.d.ts +2 -0
  164. package/es/city-picker/no-data.js +21 -0
  165. package/es/city-picker/style/css.js +2 -0
  166. package/es/city-picker/style/index.css +410 -0
  167. package/es/city-picker/style/index.d.ts +2 -0
  168. package/es/city-picker/style/index.js +2 -0
  169. package/es/city-picker/style/index.less +280 -0
  170. package/es/city-picker/style/mixin.less +5 -0
  171. package/es/city-picker/utils/grouping.d.ts +7 -0
  172. package/es/city-picker/utils/grouping.js +28 -0
  173. package/es/collapse/collapse.d.ts +20 -0
  174. package/es/collapse/collapse.js +157 -0
  175. package/es/collapse/index.d.ts +10 -0
  176. package/es/collapse/index.js +6 -0
  177. package/es/collapse/panel.d.ts +19 -0
  178. package/es/collapse/panel.js +157 -0
  179. package/es/collapse/style/css.js +2 -0
  180. package/es/collapse/style/index.css +214 -0
  181. package/es/collapse/style/index.d.ts +2 -0
  182. package/es/collapse/style/index.js +2 -0
  183. package/es/collapse/style/index.less +85 -0
  184. package/es/collapse/style/mixin.less +5 -0
  185. package/es/config-provider/ConfigContext.d.ts +22 -0
  186. package/es/config-provider/ConfigContext.js +7 -0
  187. package/es/config-provider/SizeContext.d.ts +8 -0
  188. package/es/config-provider/SizeContext.js +12 -0
  189. package/es/config-provider/compDefaultProps.d.ts +396 -0
  190. package/es/config-provider/compDefaultProps.js +411 -0
  191. package/es/config-provider/configProvider.d.ts +11 -0
  192. package/es/config-provider/configProvider.js +45 -0
  193. package/es/config-provider/defaultConfig.d.ts +10 -0
  194. package/es/config-provider/defaultConfig.js +19 -0
  195. package/es/config-provider/index.d.ts +6 -0
  196. package/es/config-provider/index.js +6 -0
  197. package/es/date-picker/calendar.d.ts +12 -0
  198. package/es/date-picker/calendar.js +108 -0
  199. package/es/date-picker/context.d.ts +29 -0
  200. package/es/date-picker/context.js +3 -0
  201. package/es/date-picker/date-panel.d.ts +53 -0
  202. package/es/date-picker/date-panel.js +272 -0
  203. package/es/date-picker/date-picker.d.ts +51 -0
  204. package/es/date-picker/date-picker.js +444 -0
  205. package/es/date-picker/hooks/use-hover-value.d.ts +3 -0
  206. package/es/date-picker/hooks/use-hover-value.js +53 -0
  207. package/es/date-picker/hooks/use-picker-input.d.ts +16 -0
  208. package/es/date-picker/hooks/use-picker-input.js +114 -0
  209. package/es/date-picker/hooks/use-range-cls.d.ts +14 -0
  210. package/es/date-picker/hooks/use-range-cls.js +42 -0
  211. package/es/date-picker/hooks/use-range-disabled.d.ts +7 -0
  212. package/es/date-picker/hooks/use-range-disabled.js +87 -0
  213. package/es/date-picker/hooks/use-range-view-dates.d.ts +6 -0
  214. package/es/date-picker/hooks/use-range-view-dates.js +113 -0
  215. package/es/date-picker/hooks/use-state-memo.d.ts +1 -0
  216. package/es/date-picker/hooks/use-state-memo.js +11 -0
  217. package/es/date-picker/hooks/use-text-value-mapping.d.ts +5 -0
  218. package/es/date-picker/hooks/use-text-value-mapping.js +31 -0
  219. package/es/date-picker/hooks/use-value-texts.d.ts +5 -0
  220. package/es/date-picker/hooks/use-value-texts.js +15 -0
  221. package/es/date-picker/index.d.ts +4 -0
  222. package/es/date-picker/index.js +4 -0
  223. package/es/date-picker/interface.d.ts +135 -0
  224. package/es/date-picker/interface.js +0 -0
  225. package/es/date-picker/locale/en_GB.d.ts +1 -0
  226. package/es/date-picker/locale/en_GB.js +33 -0
  227. package/es/date-picker/locale/en_US.d.ts +1 -0
  228. package/es/date-picker/locale/en_US.js +33 -0
  229. package/es/date-picker/locale/zh_CN.d.ts +3 -0
  230. package/es/date-picker/locale/zh_CN.js +41 -0
  231. package/es/date-picker/locale/zh_TW.d.ts +1 -0
  232. package/es/date-picker/locale/zh_TW.js +33 -0
  233. package/es/date-picker/panel/date-time/date-time.d.ts +12 -0
  234. package/es/date-picker/panel/date-time/date-time.js +40 -0
  235. package/es/date-picker/panel/header/header.d.ts +15 -0
  236. package/es/date-picker/panel/header/header.js +56 -0
  237. package/es/date-picker/panel/month/month.d.ts +8 -0
  238. package/es/date-picker/panel/month/month.js +145 -0
  239. package/es/date-picker/panel/quarter/quarter.d.ts +6 -0
  240. package/es/date-picker/panel/quarter/quarter.js +132 -0
  241. package/es/date-picker/panel/time/time-column.d.ts +17 -0
  242. package/es/date-picker/panel/time/time-column.js +82 -0
  243. package/es/date-picker/panel/time/time.d.ts +20 -0
  244. package/es/date-picker/panel/time/time.js +252 -0
  245. package/es/date-picker/panel/week/week.d.ts +10 -0
  246. package/es/date-picker/panel/week/week.js +250 -0
  247. package/es/date-picker/panel/year/year.d.ts +9 -0
  248. package/es/date-picker/panel/year/year.js +142 -0
  249. package/es/date-picker/popper.d.ts +15 -0
  250. package/es/date-picker/popper.js +78 -0
  251. package/es/date-picker/range/input-range.d.ts +35 -0
  252. package/es/date-picker/range/input-range.js +246 -0
  253. package/es/date-picker/range-picker.d.ts +49 -0
  254. package/es/date-picker/range-picker.js +764 -0
  255. package/es/date-picker/single/input-date.d.ts +19 -0
  256. package/es/date-picker/single/input-date.js +173 -0
  257. package/es/date-picker/style/css.js +1 -0
  258. package/es/date-picker/style/index.css +880 -0
  259. package/es/date-picker/style/index.d.ts +1 -0
  260. package/es/date-picker/style/index.js +1 -0
  261. package/es/date-picker/style/index.less +820 -0
  262. package/es/date-picker/style/mixin.less +85 -0
  263. package/es/date-picker/utils/date-fns.d.ts +86 -0
  264. package/es/date-picker/utils/date-fns.js +297 -0
  265. package/es/date-picker/utils/get-extra-footer.d.ts +3 -0
  266. package/es/date-picker/utils/get-extra-footer.js +10 -0
  267. package/es/date-picker/utils/get-ranges.d.ts +13 -0
  268. package/es/date-picker/utils/get-ranges.js +64 -0
  269. package/es/date-picker/utils/index.d.ts +28 -0
  270. package/es/date-picker/utils/index.js +371 -0
  271. package/es/drawer/drawer.d.ts +41 -0
  272. package/es/drawer/drawer.js +247 -0
  273. package/es/drawer/index.d.ts +3 -0
  274. package/es/drawer/index.js +3 -0
  275. package/es/drawer/style/css.js +2 -0
  276. package/es/drawer/style/index.css +230 -0
  277. package/es/drawer/style/index.d.ts +2 -0
  278. package/es/drawer/style/index.js +2 -0
  279. package/es/drawer/style/index.less +105 -0
  280. package/es/drawer/style/mixin.less +10 -0
  281. package/es/dropdown/dropdown.d.ts +25 -0
  282. package/es/dropdown/dropdown.js +124 -0
  283. package/es/dropdown/index.d.ts +3 -0
  284. package/es/dropdown/index.js +3 -0
  285. package/es/dropdown/menu.d.ts +21 -0
  286. package/es/dropdown/menu.js +98 -0
  287. package/es/dropdown/style/css.js +2 -0
  288. package/es/dropdown/style/index.css +271 -0
  289. package/es/dropdown/style/index.d.ts +2 -0
  290. package/es/dropdown/style/index.js +2 -0
  291. package/es/dropdown/style/index.less +124 -0
  292. package/es/empty/empty.d.ts +10 -0
  293. package/es/empty/empty.js +78 -0
  294. package/es/empty/img/transfer-empty.png +0 -0
  295. package/es/empty/index.d.ts +3 -0
  296. package/es/empty/index.js +3 -0
  297. package/es/empty/style/css.js +2 -0
  298. package/es/empty/style/index.css +116 -0
  299. package/es/empty/style/index.d.ts +2 -0
  300. package/es/empty/style/index.js +2 -0
  301. package/es/empty/style/index.less +23 -0
  302. package/es/empty/style/mixin.less +5 -0
  303. package/es/filter/condition.d.ts +4 -0
  304. package/es/filter/condition.js +99 -0
  305. package/es/filter/filter.d.ts +4 -0
  306. package/es/filter/filter.js +219 -0
  307. package/es/filter/index.d.ts +3 -0
  308. package/es/filter/index.js +3 -0
  309. package/es/filter/interface.d.ts +79 -0
  310. package/es/filter/interface.js +0 -0
  311. package/es/filter/scheme.d.ts +4 -0
  312. package/es/filter/scheme.js +328 -0
  313. package/es/filter/style/css.js +2 -0
  314. package/es/filter/style/index.css +345 -0
  315. package/es/filter/style/index.d.ts +2 -0
  316. package/es/filter/style/index.js +2 -0
  317. package/es/filter/style/index.less +263 -0
  318. package/es/form/Field.d.ts +20 -0
  319. package/es/form/Field.js +255 -0
  320. package/es/form/FieldContext.d.ts +4 -0
  321. package/es/form/FieldContext.js +29 -0
  322. package/es/form/FieldLabel.d.ts +11 -0
  323. package/es/form/FieldLabel.js +45 -0
  324. package/es/form/FieldWrapper.d.ts +8 -0
  325. package/es/form/FieldWrapper.js +31 -0
  326. package/es/form/Form.d.ts +19 -0
  327. package/es/form/Form.js +114 -0
  328. package/es/form/FormContext.d.ts +12 -0
  329. package/es/form/FormContext.js +36 -0
  330. package/es/form/hooks/useForceUpdate.d.ts +2 -0
  331. package/es/form/hooks/useForceUpdate.js +15 -0
  332. package/es/form/hooks/useForm.d.ts +3 -0
  333. package/es/form/hooks/useForm.js +367 -0
  334. package/es/form/index.d.ts +21 -0
  335. package/es/form/index.js +13 -0
  336. package/es/form/interface.d.ts +105 -0
  337. package/es/form/interface.js +0 -0
  338. package/es/form/style/css.js +2 -0
  339. package/es/form/style/index.css +179 -0
  340. package/es/form/style/index.d.ts +2 -0
  341. package/es/form/style/index.js +2 -0
  342. package/es/form/style/index.less +84 -0
  343. package/es/form/style/mixin.less +5 -0
  344. package/es/grid/col.d.ts +21 -0
  345. package/es/grid/col.js +106 -0
  346. package/es/grid/index.d.ts +3 -0
  347. package/es/grid/index.js +3 -0
  348. package/es/grid/row.d.ts +21 -0
  349. package/es/grid/row.js +112 -0
  350. package/es/grid/style/css.js +2 -0
  351. package/es/grid/style/index.css +118 -0
  352. package/es/grid/style/index.d.ts +2 -0
  353. package/es/grid/style/index.js +2 -0
  354. package/es/grid/style/index.less +22 -0
  355. package/es/icon/icon.d.ts +16 -0
  356. package/es/icon/icon.js +60 -0
  357. package/es/icon/index.d.ts +3 -0
  358. package/es/icon/index.js +3 -0
  359. package/es/icon/interface.d.ts +3 -0
  360. package/es/icon/interface.js +5 -0
  361. package/es/icon/style/css.js +2 -0
  362. package/es/icon/style/index.css +104 -0
  363. package/es/icon/style/index.d.ts +2 -0
  364. package/es/icon/style/index.js +2 -0
  365. package/es/icon/style/index.less +14 -0
  366. package/es/image/image.d.ts +29 -0
  367. package/es/image/image.js +147 -0
  368. package/es/image/index.d.ts +3 -0
  369. package/es/image/index.js +3 -0
  370. package/es/image/preview-group.d.ts +11 -0
  371. package/es/image/preview-group.js +118 -0
  372. package/es/image/preview.d.ts +27 -0
  373. package/es/image/preview.js +180 -0
  374. package/es/image/style/css.js +2 -0
  375. package/es/image/style/index.css +322 -0
  376. package/es/image/style/index.d.ts +2 -0
  377. package/es/image/style/index.js +2 -0
  378. package/es/image/style/index.less +222 -0
  379. package/es/image-cropper/cropper.d.ts +25 -0
  380. package/es/image-cropper/cropper.js +122 -0
  381. package/es/image-cropper/image-cropper.d.ts +32 -0
  382. package/es/image-cropper/image-cropper.js +189 -0
  383. package/es/image-cropper/index.d.ts +2 -0
  384. package/es/image-cropper/index.js +2 -0
  385. package/es/image-cropper/operation-bar.d.ts +18 -0
  386. package/es/image-cropper/operation-bar.js +112 -0
  387. package/es/image-cropper/style/css.js +2 -0
  388. package/es/image-cropper/style/index.css +385 -0
  389. package/es/image-cropper/style/index.d.ts +2 -0
  390. package/es/image-cropper/style/index.js +2 -0
  391. package/es/image-cropper/style/index.less +325 -0
  392. package/es/index.d.ts +54 -0
  393. package/es/index.js +56 -0
  394. package/es/input/ClearableLabeledInput.d.ts +25 -0
  395. package/es/input/ClearableLabeledInput.js +146 -0
  396. package/es/input/TextArea.d.ts +22 -0
  397. package/es/input/TextArea.js +224 -0
  398. package/es/input/calculateNodeHeight.d.ts +13 -0
  399. package/es/input/calculateNodeHeight.js +98 -0
  400. package/es/input/index.d.ts +5 -0
  401. package/es/input/index.js +6 -0
  402. package/es/input/input.d.ts +26 -0
  403. package/es/input/input.js +160 -0
  404. package/es/input/style/css.js +1 -0
  405. package/es/input/style/index.css +499 -0
  406. package/es/input/style/index.d.ts +1 -0
  407. package/es/input/style/index.js +1 -0
  408. package/es/input/style/index.less +238 -0
  409. package/es/input/style/mixin.less +59 -0
  410. package/es/input-number/index.d.ts +3 -0
  411. package/es/input-number/index.js +2 -0
  412. package/es/input-number/inputNumber.d.ts +26 -0
  413. package/es/input-number/inputNumber.js +350 -0
  414. package/es/input-number/style/css.js +1 -0
  415. package/es/input-number/style/index.css +212 -0
  416. package/es/input-number/style/index.d.ts +1 -0
  417. package/es/input-number/style/index.js +1 -0
  418. package/es/input-number/style/index.less +65 -0
  419. package/es/input-number/style/mixin.less +15 -0
  420. package/es/layout/index.d.ts +13 -0
  421. package/es/layout/index.js +8 -0
  422. package/es/layout/layout.d.ts +23 -0
  423. package/es/layout/layout.js +153 -0
  424. package/es/layout/sider.d.ts +29 -0
  425. package/es/layout/sider.js +228 -0
  426. package/es/layout/style/css.js +2 -0
  427. package/es/layout/style/index.css +236 -0
  428. package/es/layout/style/index.d.ts +2 -0
  429. package/es/layout/style/index.js +2 -0
  430. package/es/layout/style/index.less +133 -0
  431. package/es/layout/style/light.less +11 -0
  432. package/es/locale/index.d.ts +3 -0
  433. package/es/locale/index.js +3 -0
  434. package/es/locale/locale.d.ts +120 -0
  435. package/es/locale/locale.js +256 -0
  436. package/es/locale/zh-CN.d.ts +78 -0
  437. package/es/locale/zh-CN.js +68 -0
  438. package/es/menu/index.d.ts +3 -0
  439. package/es/menu/index.js +3 -0
  440. package/es/menu/interface.d.ts +12 -0
  441. package/es/menu/interface.js +0 -0
  442. package/es/menu/menu.d.ts +24 -0
  443. package/es/menu/menu.js +160 -0
  444. package/es/menu/menuItem.d.ts +10 -0
  445. package/es/menu/menuItem.js +147 -0
  446. package/es/menu/style/css.js +2 -0
  447. package/es/menu/style/index.css +475 -0
  448. package/es/menu/style/index.d.ts +2 -0
  449. package/es/menu/style/index.js +2 -0
  450. package/es/menu/style/index.less +198 -0
  451. package/es/menu/style/mixin.less +100 -0
  452. package/es/menu/subMenu.d.ts +13 -0
  453. package/es/menu/subMenu.js +373 -0
  454. package/es/menu/util.d.ts +9 -0
  455. package/es/menu/util.js +75 -0
  456. package/es/message/content.d.ts +7 -0
  457. package/es/message/content.js +87 -0
  458. package/es/message/index.d.ts +21 -0
  459. package/es/message/index.js +123 -0
  460. package/es/message/style/css.js +2 -0
  461. package/es/message/style/index.css +190 -0
  462. package/es/message/style/index.d.ts +2 -0
  463. package/es/message/style/index.js +2 -0
  464. package/es/message/style/index.less +94 -0
  465. package/es/modal/confirm.d.ts +9 -0
  466. package/es/modal/confirm.js +56 -0
  467. package/es/modal/index.d.ts +6 -0
  468. package/es/modal/index.js +18 -0
  469. package/es/modal/modal.d.ts +45 -0
  470. package/es/modal/modal.js +260 -0
  471. package/es/modal/style/css.js +2 -0
  472. package/es/modal/style/index.css +244 -0
  473. package/es/modal/style/index.d.ts +2 -0
  474. package/es/modal/style/index.js +2 -0
  475. package/es/modal/style/index.less +144 -0
  476. package/es/modal/style/mixin.less +11 -0
  477. package/es/notification/content.d.ts +7 -0
  478. package/es/notification/content.js +132 -0
  479. package/es/notification/index.d.ts +34 -0
  480. package/es/notification/index.js +149 -0
  481. package/es/notification/style/css.js +2 -0
  482. package/es/notification/style/index.css +236 -0
  483. package/es/notification/style/index.d.ts +2 -0
  484. package/es/notification/style/index.js +2 -0
  485. package/es/notification/style/index.less +148 -0
  486. package/es/notification-base/index.d.ts +5 -0
  487. package/es/notification-base/index.js +97 -0
  488. package/es/notification-base/notice.d.ts +16 -0
  489. package/es/notification-base/notice.js +91 -0
  490. package/es/notification-base/notification.d.ts +7 -0
  491. package/es/notification-base/notification.js +85 -0
  492. package/es/pagination/index.d.ts +3 -0
  493. package/es/pagination/index.js +2 -0
  494. package/es/pagination/pagination.d.ts +29 -0
  495. package/es/pagination/pagination.js +428 -0
  496. package/es/pagination/style/css.js +2 -0
  497. package/es/pagination/style/index.css +707 -0
  498. package/es/pagination/style/index.d.ts +2 -0
  499. package/es/pagination/style/index.js +2 -0
  500. package/es/pagination/style/index.less +579 -0
  501. package/es/popconfirm/index.d.ts +3 -0
  502. package/es/popconfirm/index.js +3 -0
  503. package/es/popconfirm/popconfirm.d.ts +19 -0
  504. package/es/popconfirm/popconfirm.js +93 -0
  505. package/es/popconfirm/style/css.js +2 -0
  506. package/es/popconfirm/style/index.css +213 -0
  507. package/es/popconfirm/style/index.d.ts +2 -0
  508. package/es/popconfirm/style/index.js +2 -0
  509. package/es/popconfirm/style/index.less +59 -0
  510. package/es/progress/circle.d.ts +8 -0
  511. package/es/progress/circle.js +105 -0
  512. package/es/progress/index.d.ts +3 -0
  513. package/es/progress/index.js +2 -0
  514. package/es/progress/line.d.ts +8 -0
  515. package/es/progress/line.js +36 -0
  516. package/es/progress/progress.d.ts +35 -0
  517. package/es/progress/progress.js +171 -0
  518. package/es/progress/style/css.js +2 -0
  519. package/es/progress/style/index.css +242 -0
  520. package/es/progress/style/index.d.ts +2 -0
  521. package/es/progress/style/index.js +2 -0
  522. package/es/progress/style/index.less +176 -0
  523. package/es/progress/style/mixin.less +5 -0
  524. package/es/progress/utils.d.ts +6 -0
  525. package/es/progress/utils.js +77 -0
  526. package/es/radio/context.d.ts +5 -0
  527. package/es/radio/context.js +4 -0
  528. package/es/radio/group.d.ts +4 -0
  529. package/es/radio/group.js +108 -0
  530. package/es/radio/index.d.ts +12 -0
  531. package/es/radio/index.js +8 -0
  532. package/es/radio/interface.d.ts +47 -0
  533. package/es/radio/interface.js +0 -0
  534. package/es/radio/radio-button.d.ts +4 -0
  535. package/es/radio/radio-button.js +50 -0
  536. package/es/radio/radio.d.ts +4 -0
  537. package/es/radio/radio.js +100 -0
  538. package/es/radio/style/css.js +2 -0
  539. package/es/radio/style/index.css +398 -0
  540. package/es/radio/style/index.d.ts +2 -0
  541. package/es/radio/style/index.js +2 -0
  542. package/es/radio/style/index.less +315 -0
  543. package/es/rate/index.d.ts +3 -0
  544. package/es/rate/index.js +2 -0
  545. package/es/rate/rate.d.ts +23 -0
  546. package/es/rate/rate.js +278 -0
  547. package/es/rate/style/css.js +2 -0
  548. package/es/rate/style/index.css +201 -0
  549. package/es/rate/style/index.d.ts +2 -0
  550. package/es/rate/style/index.js +2 -0
  551. package/es/rate/style/index.less +79 -0
  552. package/es/search/index.d.ts +8 -0
  553. package/es/search/index.js +6 -0
  554. package/es/search/interface.d.ts +73 -0
  555. package/es/search/interface.js +4 -0
  556. package/es/search/option.d.ts +4 -0
  557. package/es/search/option.js +54 -0
  558. package/es/search/quick-search.d.ts +4 -0
  559. package/es/search/quick-search.js +567 -0
  560. package/es/search/search-panel.d.ts +29 -0
  561. package/es/search/search-panel.js +250 -0
  562. package/es/search/search.d.ts +4 -0
  563. package/es/search/search.js +144 -0
  564. package/es/search/style/css.js +2 -0
  565. package/es/search/style/index.css +703 -0
  566. package/es/search/style/index.d.ts +2 -0
  567. package/es/search/style/index.js +2 -0
  568. package/es/search/style/index.less +486 -0
  569. package/es/search/style/mixin.less +46 -0
  570. package/es/select/index.d.ts +8 -0
  571. package/es/select/index.js +5 -0
  572. package/es/select/interface.d.ts +59 -0
  573. package/es/select/interface.js +5 -0
  574. package/es/select/option.d.ts +16 -0
  575. package/es/select/option.js +80 -0
  576. package/es/select/select.d.ts +4 -0
  577. package/es/select/select.js +684 -0
  578. package/es/select/style/css.js +1 -0
  579. package/es/select/style/index.css +599 -0
  580. package/es/select/style/index.d.ts +1 -0
  581. package/es/select/style/index.js +1 -0
  582. package/es/select/style/index.less +368 -0
  583. package/es/select/style/mixin.less +85 -0
  584. package/es/slider/index.d.ts +3 -0
  585. package/es/slider/index.js +3 -0
  586. package/es/slider/marks.d.ts +17 -0
  587. package/es/slider/marks.js +57 -0
  588. package/es/slider/slider.d.ts +30 -0
  589. package/es/slider/slider.js +299 -0
  590. package/es/slider/sliderTooltip.d.ts +11 -0
  591. package/es/slider/sliderTooltip.js +52 -0
  592. package/es/slider/steps.d.ts +17 -0
  593. package/es/slider/steps.js +63 -0
  594. package/es/slider/style/css.js +2 -0
  595. package/es/slider/style/index.css +305 -0
  596. package/es/slider/style/index.d.ts +2 -0
  597. package/es/slider/style/index.js +2 -0
  598. package/es/slider/style/index.less +167 -0
  599. package/es/slider/style/mixin.less +40 -0
  600. package/es/slider/track.d.ts +10 -0
  601. package/es/slider/track.js +22 -0
  602. package/es/slider/utils.d.ts +8 -0
  603. package/es/slider/utils.js +60 -0
  604. package/es/space/index.d.ts +3 -0
  605. package/es/space/index.js +3 -0
  606. package/es/space/space.d.ts +16 -0
  607. package/es/space/space.js +100 -0
  608. package/es/space/style/css.js +2 -0
  609. package/es/space/style/index.css +139 -0
  610. package/es/space/style/index.d.ts +2 -0
  611. package/es/space/style/index.js +2 -0
  612. package/es/space/style/index.less +42 -0
  613. package/es/spin/index.d.ts +3 -0
  614. package/es/spin/index.js +3 -0
  615. package/es/spin/spin.d.ts +13 -0
  616. package/es/spin/spin.js +118 -0
  617. package/es/spin/style/css.js +2 -0
  618. package/es/spin/style/index.css +291 -0
  619. package/es/spin/style/index.d.ts +2 -0
  620. package/es/spin/style/index.js +2 -0
  621. package/es/spin/style/index.less +163 -0
  622. package/es/spin/style/mixin.less +8 -0
  623. package/es/split-panel/index.d.ts +3 -0
  624. package/es/split-panel/index.js +3 -0
  625. package/es/split-panel/interface.d.ts +3 -0
  626. package/es/split-panel/interface.js +0 -0
  627. package/es/split-panel/split-panel.d.ts +24 -0
  628. package/es/split-panel/split-panel.js +280 -0
  629. package/es/split-panel/style/css.js +2 -0
  630. package/es/split-panel/style/index.css +278 -0
  631. package/es/split-panel/style/index.d.ts +2 -0
  632. package/es/split-panel/style/index.js +2 -0
  633. package/es/split-panel/style/index.less +192 -0
  634. package/es/split-panel/trigger.d.ts +15 -0
  635. package/es/split-panel/trigger.js +65 -0
  636. package/es/stepper/index.d.ts +3 -0
  637. package/es/stepper/index.js +3 -0
  638. package/es/stepper/stepper.d.ts +11 -0
  639. package/es/stepper/stepper.js +221 -0
  640. package/es/stepper/style/css.js +2 -0
  641. package/es/stepper/style/index.css +224 -0
  642. package/es/stepper/style/index.d.ts +2 -0
  643. package/es/stepper/style/index.js +2 -0
  644. package/es/stepper/style/index.less +78 -0
  645. package/es/stepper/style/mixin.less +15 -0
  646. package/es/steps/Step.d.ts +19 -0
  647. package/es/steps/Step.js +101 -0
  648. package/es/steps/Steps.d.ts +16 -0
  649. package/es/steps/Steps.js +113 -0
  650. package/es/steps/index.d.ts +5 -0
  651. package/es/steps/index.js +5 -0
  652. package/es/steps/interface.d.ts +13 -0
  653. package/es/steps/interface.js +4 -0
  654. package/es/steps/style/css.js +2 -0
  655. package/es/steps/style/index.css +305 -0
  656. package/es/steps/style/index.d.ts +2 -0
  657. package/es/steps/style/index.js +2 -0
  658. package/es/steps/style/index.less +192 -0
  659. package/es/steps/style/mixin.less +41 -0
  660. package/es/style/color/colors.less +2 -0
  661. package/es/style/core/index.less +2 -0
  662. package/es/style/core/motion/other.less +126 -0
  663. package/es/style/core/motion/slide.less +120 -0
  664. package/es/style/core/motion/zoom.less +247 -0
  665. package/es/style/core/motion.less +3 -0
  666. package/es/style/core/reset.less +235 -0
  667. package/es/style/css.js +1 -0
  668. package/es/style/index.css +1814 -0
  669. package/es/style/index.d.ts +1 -0
  670. package/es/style/index.js +1 -0
  671. package/es/style/index.less +3 -0
  672. package/es/style/mixins/index.less +90 -0
  673. package/es/style/mixins/overlay.less +22 -0
  674. package/es/style/mixins/reset.less +13 -0
  675. package/es/style/themes/default.less +696 -0
  676. package/es/style/themes/index.less +1 -0
  677. package/es/switch/index.d.ts +3 -0
  678. package/es/switch/index.js +2 -0
  679. package/es/switch/style/css.js +2 -0
  680. package/es/switch/style/index.css +208 -0
  681. package/es/switch/style/index.d.ts +2 -0
  682. package/es/switch/style/index.js +2 -0
  683. package/es/switch/style/index.less +70 -0
  684. package/es/switch/style/mixin.less +39 -0
  685. package/es/switch/switch.d.ts +20 -0
  686. package/es/switch/switch.js +99 -0
  687. package/es/table/feature/autoRowSpan.d.ts +3 -0
  688. package/es/table/feature/autoRowSpan.js +9 -0
  689. package/es/table/feature/columnDrag.d.ts +4 -0
  690. package/es/table/feature/columnDrag.js +9 -0
  691. package/es/table/feature/columnResize.d.ts +4 -0
  692. package/es/table/feature/columnResize.js +9 -0
  693. package/es/table/feature/contextMenu.d.ts +3 -0
  694. package/es/table/feature/contextMenu.js +9 -0
  695. package/es/table/feature/filter.d.ts +3 -0
  696. package/es/table/feature/filter.js +11 -0
  697. package/es/table/feature/rowDetail.d.ts +3 -0
  698. package/es/table/feature/rowDetail.js +10 -0
  699. package/es/table/feature/rowSelection.d.ts +3 -0
  700. package/es/table/feature/rowSelection.js +59 -0
  701. package/es/table/feature/sort.d.ts +3 -0
  702. package/es/table/feature/sort.js +11 -0
  703. package/es/table/feature/treeMode.d.ts +3 -0
  704. package/es/table/feature/treeMode.js +10 -0
  705. package/es/table/index.d.ts +2 -0
  706. package/es/table/index.js +2 -0
  707. package/es/table/interface.d.ts +34 -0
  708. package/es/table/interface.js +0 -0
  709. package/es/table/style/css.js +2 -0
  710. package/es/table/style/index.css +99 -0
  711. package/es/table/style/index.d.ts +2 -0
  712. package/es/table/style/index.js +2 -0
  713. package/es/table/style/index.less +8 -0
  714. package/es/table/style/mixin.less +1 -0
  715. package/es/table/table.d.ts +3 -0
  716. package/es/table/table.js +125 -0
  717. package/es/tabs/active-line.d.ts +8 -0
  718. package/es/tabs/active-line.js +29 -0
  719. package/es/tabs/arrow-button.d.ts +11 -0
  720. package/es/tabs/arrow-button.js +35 -0
  721. package/es/tabs/context.d.ts +5 -0
  722. package/es/tabs/context.js +4 -0
  723. package/es/tabs/index.d.ts +8 -0
  724. package/es/tabs/index.js +6 -0
  725. package/es/tabs/style/css.js +2 -0
  726. package/es/tabs/style/index.css +548 -0
  727. package/es/tabs/style/index.d.ts +2 -0
  728. package/es/tabs/style/index.js +2 -0
  729. package/es/tabs/style/index.less +396 -0
  730. package/es/tabs/style/mixin.less +32 -0
  731. package/es/tabs/tab-pane.d.ts +23 -0
  732. package/es/tabs/tab-pane.js +100 -0
  733. package/es/tabs/tabs.d.ts +30 -0
  734. package/es/tabs/tabs.js +447 -0
  735. package/es/tag/index.d.ts +3 -0
  736. package/es/tag/index.js +3 -0
  737. package/es/tag/style/css.js +2 -0
  738. package/es/tag/style/index.css +641 -0
  739. package/es/tag/style/index.d.ts +2 -0
  740. package/es/tag/style/index.js +2 -0
  741. package/es/tag/style/index.less +144 -0
  742. package/es/tag/style/mixin.less +44 -0
  743. package/es/tag/tag.d.ts +24 -0
  744. package/es/tag/tag.js +127 -0
  745. package/es/timeline/Timeline.d.ts +18 -0
  746. package/es/timeline/Timeline.js +104 -0
  747. package/es/timeline/TimelineItem.d.ts +15 -0
  748. package/es/timeline/TimelineItem.js +79 -0
  749. package/es/timeline/index.d.ts +4 -0
  750. package/es/timeline/index.js +2 -0
  751. package/es/timeline/style/css.js +2 -0
  752. package/es/timeline/style/index.css +300 -0
  753. package/es/timeline/style/index.d.ts +2 -0
  754. package/es/timeline/style/index.js +2 -0
  755. package/es/timeline/style/index.less +259 -0
  756. package/es/tooltip/index.d.ts +3 -0
  757. package/es/tooltip/index.js +3 -0
  758. package/es/tooltip/style/css.js +2 -0
  759. package/es/tooltip/style/index.css +180 -0
  760. package/es/tooltip/style/index.d.ts +2 -0
  761. package/es/tooltip/style/index.js +2 -0
  762. package/es/tooltip/style/index.less +27 -0
  763. package/es/tooltip/tooltip.d.ts +9 -0
  764. package/es/tooltip/tooltip.js +32 -0
  765. package/es/transfer/img/transfer-empty.png +0 -0
  766. package/es/transfer/index.d.ts +6 -0
  767. package/es/transfer/index.js +2 -0
  768. package/es/transfer/interface.d.ts +21 -0
  769. package/es/transfer/interface.js +0 -0
  770. package/es/transfer/list-body.d.ts +14 -0
  771. package/es/transfer/list-body.js +110 -0
  772. package/es/transfer/list-item.d.ts +15 -0
  773. package/es/transfer/list-item.js +59 -0
  774. package/es/transfer/list.d.ts +35 -0
  775. package/es/transfer/list.js +241 -0
  776. package/es/transfer/operation.d.ts +16 -0
  777. package/es/transfer/operation.js +45 -0
  778. package/es/transfer/search.d.ts +11 -0
  779. package/es/transfer/search.js +53 -0
  780. package/es/transfer/style/css.js +2 -0
  781. package/es/transfer/style/index.css +344 -0
  782. package/es/transfer/style/index.d.ts +2 -0
  783. package/es/transfer/style/index.js +2 -0
  784. package/es/transfer/style/index.less +186 -0
  785. package/es/transfer/style/mixins.less +3 -0
  786. package/es/transfer/transfer.d.ts +32 -0
  787. package/es/transfer/transfer.js +336 -0
  788. package/es/tree/index.d.ts +5 -0
  789. package/es/tree/index.js +5 -0
  790. package/es/tree/style/css.js +2 -0
  791. package/es/tree/style/index.css +268 -0
  792. package/es/tree/style/index.d.ts +2 -0
  793. package/es/tree/style/index.js +2 -0
  794. package/es/tree/style/index.less +144 -0
  795. package/es/tree/style/mixin.less +5 -0
  796. package/es/tree/tree.d.ts +57 -0
  797. package/es/tree/tree.js +312 -0
  798. package/es/tree/treeHooks.d.ts +9 -0
  799. package/es/tree/treeHooks.js +143 -0
  800. package/es/tree/treeNode.d.ts +40 -0
  801. package/es/tree/treeNode.js +333 -0
  802. package/es/tree/utils/treeUtils.d.ts +46 -0
  803. package/es/tree/utils/treeUtils.js +499 -0
  804. package/es/typography/base.d.ts +21 -0
  805. package/es/typography/base.js +96 -0
  806. package/es/typography/index.d.ts +11 -0
  807. package/es/typography/index.js +10 -0
  808. package/es/typography/paragraph.d.ts +7 -0
  809. package/es/typography/paragraph.js +11 -0
  810. package/es/typography/style/css.js +2 -0
  811. package/es/typography/style/index.css +242 -0
  812. package/es/typography/style/index.d.ts +2 -0
  813. package/es/typography/style/index.js +2 -0
  814. package/es/typography/style/index.less +140 -0
  815. package/es/typography/style/mixin.less +83 -0
  816. package/es/typography/text.d.ts +7 -0
  817. package/es/typography/text.js +11 -0
  818. package/es/typography/title.d.ts +10 -0
  819. package/es/typography/title.js +42 -0
  820. package/es/typography/typography.d.ts +14 -0
  821. package/es/typography/typography.js +53 -0
  822. package/es/upload/dragger.d.ts +7 -0
  823. package/es/upload/dragger.js +37 -0
  824. package/es/upload/index.d.ts +9 -0
  825. package/es/upload/index.js +6 -0
  826. package/es/upload/interface.d.ts +144 -0
  827. package/es/upload/interface.js +0 -0
  828. package/es/upload/request.d.ts +2 -0
  829. package/es/upload/request.js +100 -0
  830. package/es/upload/scan-files.d.ts +14 -0
  831. package/es/upload/scan-files.js +67 -0
  832. package/es/upload/style/css.js +2 -0
  833. package/es/upload/style/index.css +362 -0
  834. package/es/upload/style/index.d.ts +2 -0
  835. package/es/upload/style/index.js +2 -0
  836. package/es/upload/style/index.less +223 -0
  837. package/es/upload/upload.d.ts +4 -0
  838. package/es/upload/upload.js +534 -0
  839. package/es/upload/utils.d.ts +2 -0
  840. package/es/upload/utils.js +24 -0
  841. package/es/upload/verify-file.d.ts +3 -0
  842. package/es/upload/verify-file.js +30 -0
  843. package/es/view-container/context.d.ts +5 -0
  844. package/es/view-container/context.js +4 -0
  845. package/es/view-container/index.d.ts +3 -0
  846. package/es/view-container/index.js +2 -0
  847. package/es/view-container/view-container.d.ts +9 -0
  848. package/es/view-container/view-container.js +33 -0
  849. package/es/view-container/view-pane.d.ts +1 -0
  850. package/es/view-container/view-pane.js +0 -0
  851. package/lib/_utils/arrayUtil.d.ts +10 -0
  852. package/lib/_utils/arrayUtil.js +47 -0
  853. package/lib/_utils/devwarning.d.ts +1 -0
  854. package/lib/_utils/devwarning.js +21 -0
  855. package/lib/_utils/formatUtil.d.ts +46 -0
  856. package/lib/_utils/formatUtil.js +359 -0
  857. package/lib/_utils/hooks.d.ts +52 -0
  858. package/lib/_utils/hooks.js +220 -0
  859. package/lib/_utils/index.d.ts +8 -0
  860. package/lib/_utils/index.js +28 -0
  861. package/lib/_utils/numberUtil.d.ts +34 -0
  862. package/lib/_utils/numberUtil.js +205 -0
  863. package/lib/_utils/omit.d.ts +1 -0
  864. package/lib/_utils/omit.js +21 -0
  865. package/lib/_utils/react-children.d.ts +2 -0
  866. package/lib/_utils/react-children.js +20 -0
  867. package/lib/_utils/reactNode.d.ts +7 -0
  868. package/lib/_utils/reactNode.js +32 -0
  869. package/lib/_utils/type.d.ts +12 -0
  870. package/lib/_utils/type.js +27 -0
  871. package/lib/_utils/usePopper.d.ts +28 -0
  872. package/lib/_utils/usePopper.js +645 -0
  873. package/lib/alert/alert.d.ts +22 -0
  874. package/lib/alert/alert.js +247 -0
  875. package/lib/alert/index.d.ts +3 -0
  876. package/lib/alert/index.js +13 -0
  877. package/lib/alert/style/css.js +5 -0
  878. package/lib/alert/style/index.css +242 -0
  879. package/lib/alert/style/index.d.ts +2 -0
  880. package/lib/alert/style/index.js +5 -0
  881. package/lib/alert/style/index.less +118 -0
  882. package/lib/alert/style/mixin.less +16 -0
  883. package/lib/anchor/anchor-link.d.ts +12 -0
  884. package/lib/anchor/anchor-link.js +100 -0
  885. package/lib/anchor/anchor.d.ts +27 -0
  886. package/lib/anchor/anchor.js +561 -0
  887. package/lib/anchor/context.d.ts +3 -0
  888. package/lib/anchor/context.js +22 -0
  889. package/lib/anchor/index.d.ts +7 -0
  890. package/lib/anchor/index.js +17 -0
  891. package/lib/anchor/style/css.js +5 -0
  892. package/lib/anchor/style/index.css +278 -0
  893. package/lib/anchor/style/index.d.ts +2 -0
  894. package/lib/anchor/style/index.js +5 -0
  895. package/lib/anchor/style/index.less +191 -0
  896. package/lib/anchor/style/mixin.less +7 -0
  897. package/lib/avatar/avatar.d.ts +23 -0
  898. package/lib/avatar/avatar.js +197 -0
  899. package/lib/avatar/index.d.ts +3 -0
  900. package/lib/avatar/index.js +36 -0
  901. package/lib/avatar/style/css.js +5 -0
  902. package/lib/avatar/style/index.css +192 -0
  903. package/lib/avatar/style/index.d.ts +2 -0
  904. package/lib/avatar/style/index.js +5 -0
  905. package/lib/avatar/style/index.less +72 -0
  906. package/lib/avatar/style/mixin.less +5 -0
  907. package/lib/badge/badge.d.ts +34 -0
  908. package/lib/badge/badge.js +176 -0
  909. package/lib/badge/index.d.ts +3 -0
  910. package/lib/badge/index.js +36 -0
  911. package/lib/badge/style/css.js +5 -0
  912. package/lib/badge/style/index.css +226 -0
  913. package/lib/badge/style/index.d.ts +2 -0
  914. package/lib/badge/style/index.js +5 -0
  915. package/lib/badge/style/index.less +129 -0
  916. package/lib/badge/style/mixin.less +5 -0
  917. package/lib/base-data/base-data.d.ts +4 -0
  918. package/lib/base-data/base-data.js +776 -0
  919. package/lib/base-data/index.d.ts +3 -0
  920. package/lib/base-data/index.js +36 -0
  921. package/lib/base-data/interface.d.ts +57 -0
  922. package/lib/base-data/interface.js +11 -0
  923. package/lib/base-data/style/css.js +5 -0
  924. package/lib/base-data/style/index.css +280 -0
  925. package/lib/base-data/style/index.d.ts +2 -0
  926. package/lib/base-data/style/index.js +5 -0
  927. package/lib/base-data/style/index.less +188 -0
  928. package/lib/base-data/style/mixin.less +5 -0
  929. package/lib/button/button.d.ts +33 -0
  930. package/lib/button/button.js +200 -0
  931. package/lib/button/index.d.ts +3 -0
  932. package/lib/button/index.js +13 -0
  933. package/lib/button/style/css.js +5 -0
  934. package/lib/button/style/index.css +321 -0
  935. package/lib/button/style/index.d.ts +2 -0
  936. package/lib/button/style/index.js +5 -0
  937. package/lib/button/style/index.less +205 -0
  938. package/lib/button/style/mixin.less +39 -0
  939. package/lib/card/card.d.ts +24 -0
  940. package/lib/card/card.js +89 -0
  941. package/lib/card/index.d.ts +3 -0
  942. package/lib/card/index.js +36 -0
  943. package/lib/card/style/css.js +5 -0
  944. package/lib/card/style/index.css +182 -0
  945. package/lib/card/style/index.d.ts +2 -0
  946. package/lib/card/style/index.js +5 -0
  947. package/lib/card/style/index.less +98 -0
  948. package/lib/carousel/carousel.d.ts +23 -0
  949. package/lib/carousel/carousel.js +315 -0
  950. package/lib/carousel/displayList.d.ts +12 -0
  951. package/lib/carousel/displayList.js +42 -0
  952. package/lib/carousel/fadeList.d.ts +14 -0
  953. package/lib/carousel/fadeList.js +49 -0
  954. package/lib/carousel/index.d.ts +7 -0
  955. package/lib/carousel/index.js +64 -0
  956. package/lib/carousel/slideList.d.ts +11 -0
  957. package/lib/carousel/slideList.js +43 -0
  958. package/lib/carousel/slidebar.d.ts +12 -0
  959. package/lib/carousel/slidebar.js +64 -0
  960. package/lib/carousel/style/css.js +5 -0
  961. package/lib/carousel/style/index.css +327 -0
  962. package/lib/carousel/style/index.d.ts +2 -0
  963. package/lib/carousel/style/index.js +5 -0
  964. package/lib/carousel/style/index.less +138 -0
  965. package/lib/carousel/style/mixin.less +5 -0
  966. package/lib/cascader/cascader.d.ts +54 -0
  967. package/lib/cascader/cascader.js +295 -0
  968. package/lib/cascader/index.d.ts +3 -0
  969. package/lib/cascader/index.js +36 -0
  970. package/lib/cascader/style/css.js +5 -0
  971. package/lib/cascader/style/index.css +260 -0
  972. package/lib/cascader/style/index.d.ts +2 -0
  973. package/lib/cascader/style/index.js +5 -0
  974. package/lib/cascader/style/index.less +173 -0
  975. package/lib/checkbox/checkbox.d.ts +22 -0
  976. package/lib/checkbox/checkbox.js +159 -0
  977. package/lib/checkbox/group.d.ts +25 -0
  978. package/lib/checkbox/group.js +188 -0
  979. package/lib/checkbox/index.d.ts +11 -0
  980. package/lib/checkbox/index.js +45 -0
  981. package/lib/checkbox/style/css.js +5 -0
  982. package/lib/checkbox/style/index.css +376 -0
  983. package/lib/checkbox/style/index.d.ts +2 -0
  984. package/lib/checkbox/style/index.js +5 -0
  985. package/lib/checkbox/style/index.less +246 -0
  986. package/lib/city-picker/city-group.d.ts +8 -0
  987. package/lib/city-picker/city-group.js +70 -0
  988. package/lib/city-picker/city-list.d.ts +12 -0
  989. package/lib/city-picker/city-list.js +85 -0
  990. package/lib/city-picker/city-panel-item.d.ts +13 -0
  991. package/lib/city-picker/city-panel-item.js +49 -0
  992. package/lib/city-picker/city-panel.d.ts +17 -0
  993. package/lib/city-picker/city-panel.js +204 -0
  994. package/lib/city-picker/city-picker.d.ts +24 -0
  995. package/lib/city-picker/city-picker.js +209 -0
  996. package/lib/city-picker/city-search-panel.d.ts +9 -0
  997. package/lib/city-picker/city-search-panel.js +76 -0
  998. package/lib/city-picker/index.d.ts +3 -0
  999. package/lib/city-picker/index.js +36 -0
  1000. package/lib/city-picker/no-data.d.ts +2 -0
  1001. package/lib/city-picker/no-data.js +43 -0
  1002. package/lib/city-picker/style/css.js +5 -0
  1003. package/lib/city-picker/style/index.css +410 -0
  1004. package/lib/city-picker/style/index.d.ts +2 -0
  1005. package/lib/city-picker/style/index.js +5 -0
  1006. package/lib/city-picker/style/index.less +280 -0
  1007. package/lib/city-picker/style/mixin.less +5 -0
  1008. package/lib/city-picker/utils/grouping.d.ts +7 -0
  1009. package/lib/city-picker/utils/grouping.js +35 -0
  1010. package/lib/collapse/collapse.d.ts +20 -0
  1011. package/lib/collapse/collapse.js +188 -0
  1012. package/lib/collapse/index.d.ts +10 -0
  1013. package/lib/collapse/index.js +23 -0
  1014. package/lib/collapse/panel.d.ts +19 -0
  1015. package/lib/collapse/panel.js +188 -0
  1016. package/lib/collapse/style/css.js +5 -0
  1017. package/lib/collapse/style/index.css +214 -0
  1018. package/lib/collapse/style/index.d.ts +2 -0
  1019. package/lib/collapse/style/index.js +5 -0
  1020. package/lib/collapse/style/index.less +85 -0
  1021. package/lib/collapse/style/mixin.less +5 -0
  1022. package/lib/config-provider/ConfigContext.d.ts +22 -0
  1023. package/lib/config-provider/ConfigContext.js +19 -0
  1024. package/lib/config-provider/SizeContext.d.ts +8 -0
  1025. package/lib/config-provider/SizeContext.js +26 -0
  1026. package/lib/config-provider/compDefaultProps.d.ts +396 -0
  1027. package/lib/config-provider/compDefaultProps.js +430 -0
  1028. package/lib/config-provider/configProvider.d.ts +11 -0
  1029. package/lib/config-provider/configProvider.js +69 -0
  1030. package/lib/config-provider/defaultConfig.d.ts +10 -0
  1031. package/lib/config-provider/defaultConfig.js +31 -0
  1032. package/lib/config-provider/index.d.ts +6 -0
  1033. package/lib/config-provider/index.js +37 -0
  1034. package/lib/date-picker/calendar.d.ts +12 -0
  1035. package/lib/date-picker/calendar.js +135 -0
  1036. package/lib/date-picker/context.d.ts +29 -0
  1037. package/lib/date-picker/context.js +22 -0
  1038. package/lib/date-picker/date-panel.d.ts +53 -0
  1039. package/lib/date-picker/date-panel.js +305 -0
  1040. package/lib/date-picker/date-picker.d.ts +51 -0
  1041. package/lib/date-picker/date-picker.js +487 -0
  1042. package/lib/date-picker/hooks/use-hover-value.d.ts +3 -0
  1043. package/lib/date-picker/hooks/use-hover-value.js +66 -0
  1044. package/lib/date-picker/hooks/use-picker-input.d.ts +16 -0
  1045. package/lib/date-picker/hooks/use-picker-input.js +125 -0
  1046. package/lib/date-picker/hooks/use-range-cls.d.ts +14 -0
  1047. package/lib/date-picker/hooks/use-range-cls.js +56 -0
  1048. package/lib/date-picker/hooks/use-range-disabled.d.ts +7 -0
  1049. package/lib/date-picker/hooks/use-range-disabled.js +107 -0
  1050. package/lib/date-picker/hooks/use-range-view-dates.d.ts +6 -0
  1051. package/lib/date-picker/hooks/use-range-view-dates.js +137 -0
  1052. package/lib/date-picker/hooks/use-state-memo.d.ts +1 -0
  1053. package/lib/date-picker/hooks/use-state-memo.js +21 -0
  1054. package/lib/date-picker/hooks/use-text-value-mapping.d.ts +5 -0
  1055. package/lib/date-picker/hooks/use-text-value-mapping.js +52 -0
  1056. package/lib/date-picker/hooks/use-value-texts.d.ts +5 -0
  1057. package/lib/date-picker/hooks/use-value-texts.js +26 -0
  1058. package/lib/date-picker/index.d.ts +4 -0
  1059. package/lib/date-picker/index.js +21 -0
  1060. package/lib/date-picker/interface.d.ts +135 -0
  1061. package/lib/date-picker/interface.js +0 -0
  1062. package/lib/date-picker/locale/en_GB.d.ts +1 -0
  1063. package/lib/date-picker/locale/en_GB.js +33 -0
  1064. package/lib/date-picker/locale/en_US.d.ts +1 -0
  1065. package/lib/date-picker/locale/en_US.js +33 -0
  1066. package/lib/date-picker/locale/zh_CN.d.ts +3 -0
  1067. package/lib/date-picker/locale/zh_CN.js +48 -0
  1068. package/lib/date-picker/locale/zh_TW.d.ts +1 -0
  1069. package/lib/date-picker/locale/zh_TW.js +33 -0
  1070. package/lib/date-picker/panel/date-time/date-time.d.ts +12 -0
  1071. package/lib/date-picker/panel/date-time/date-time.js +66 -0
  1072. package/lib/date-picker/panel/header/header.d.ts +15 -0
  1073. package/lib/date-picker/panel/header/header.js +79 -0
  1074. package/lib/date-picker/panel/month/month.d.ts +8 -0
  1075. package/lib/date-picker/panel/month/month.js +174 -0
  1076. package/lib/date-picker/panel/quarter/quarter.d.ts +6 -0
  1077. package/lib/date-picker/panel/quarter/quarter.js +160 -0
  1078. package/lib/date-picker/panel/time/time-column.d.ts +17 -0
  1079. package/lib/date-picker/panel/time/time-column.js +107 -0
  1080. package/lib/date-picker/panel/time/time.d.ts +20 -0
  1081. package/lib/date-picker/panel/time/time.js +285 -0
  1082. package/lib/date-picker/panel/week/week.d.ts +10 -0
  1083. package/lib/date-picker/panel/week/week.js +279 -0
  1084. package/lib/date-picker/panel/year/year.d.ts +9 -0
  1085. package/lib/date-picker/panel/year/year.js +168 -0
  1086. package/lib/date-picker/popper.d.ts +15 -0
  1087. package/lib/date-picker/popper.js +103 -0
  1088. package/lib/date-picker/range/input-range.d.ts +35 -0
  1089. package/lib/date-picker/range/input-range.js +276 -0
  1090. package/lib/date-picker/range-picker.d.ts +49 -0
  1091. package/lib/date-picker/range-picker.js +821 -0
  1092. package/lib/date-picker/single/input-date.d.ts +19 -0
  1093. package/lib/date-picker/single/input-date.js +204 -0
  1094. package/lib/date-picker/style/css.js +3 -0
  1095. package/lib/date-picker/style/index.css +880 -0
  1096. package/lib/date-picker/style/index.d.ts +1 -0
  1097. package/lib/date-picker/style/index.js +3 -0
  1098. package/lib/date-picker/style/index.less +820 -0
  1099. package/lib/date-picker/style/mixin.less +85 -0
  1100. package/lib/date-picker/utils/date-fns.d.ts +86 -0
  1101. package/lib/date-picker/utils/date-fns.js +577 -0
  1102. package/lib/date-picker/utils/get-extra-footer.d.ts +3 -0
  1103. package/lib/date-picker/utils/get-extra-footer.js +28 -0
  1104. package/lib/date-picker/utils/get-ranges.d.ts +13 -0
  1105. package/lib/date-picker/utils/get-ranges.js +76 -0
  1106. package/lib/date-picker/utils/index.d.ts +28 -0
  1107. package/lib/date-picker/utils/index.js +422 -0
  1108. package/lib/drawer/drawer.d.ts +41 -0
  1109. package/lib/drawer/drawer.js +288 -0
  1110. package/lib/drawer/index.d.ts +3 -0
  1111. package/lib/drawer/index.js +36 -0
  1112. package/lib/drawer/style/css.js +5 -0
  1113. package/lib/drawer/style/index.css +230 -0
  1114. package/lib/drawer/style/index.d.ts +2 -0
  1115. package/lib/drawer/style/index.js +5 -0
  1116. package/lib/drawer/style/index.less +105 -0
  1117. package/lib/drawer/style/mixin.less +10 -0
  1118. package/lib/dropdown/dropdown.d.ts +25 -0
  1119. package/lib/dropdown/dropdown.js +152 -0
  1120. package/lib/dropdown/index.d.ts +3 -0
  1121. package/lib/dropdown/index.js +36 -0
  1122. package/lib/dropdown/menu.d.ts +21 -0
  1123. package/lib/dropdown/menu.js +127 -0
  1124. package/lib/dropdown/style/css.js +5 -0
  1125. package/lib/dropdown/style/index.css +271 -0
  1126. package/lib/dropdown/style/index.d.ts +2 -0
  1127. package/lib/dropdown/style/index.js +5 -0
  1128. package/lib/dropdown/style/index.less +124 -0
  1129. package/lib/empty/empty.d.ts +10 -0
  1130. package/lib/empty/empty.js +104 -0
  1131. package/lib/empty/img/transfer-empty.png +0 -0
  1132. package/lib/empty/index.d.ts +3 -0
  1133. package/lib/empty/index.js +36 -0
  1134. package/lib/empty/style/css.js +5 -0
  1135. package/lib/empty/style/index.css +116 -0
  1136. package/lib/empty/style/index.d.ts +2 -0
  1137. package/lib/empty/style/index.js +5 -0
  1138. package/lib/empty/style/index.less +23 -0
  1139. package/lib/empty/style/mixin.less +5 -0
  1140. package/lib/filter/condition.d.ts +4 -0
  1141. package/lib/filter/condition.js +123 -0
  1142. package/lib/filter/filter.d.ts +4 -0
  1143. package/lib/filter/filter.js +251 -0
  1144. package/lib/filter/index.d.ts +3 -0
  1145. package/lib/filter/index.js +36 -0
  1146. package/lib/filter/interface.d.ts +79 -0
  1147. package/lib/filter/interface.js +0 -0
  1148. package/lib/filter/scheme.d.ts +4 -0
  1149. package/lib/filter/scheme.js +352 -0
  1150. package/lib/filter/style/css.js +5 -0
  1151. package/lib/filter/style/index.css +345 -0
  1152. package/lib/filter/style/index.d.ts +2 -0
  1153. package/lib/filter/style/index.js +5 -0
  1154. package/lib/filter/style/index.less +263 -0
  1155. package/lib/form/Field.d.ts +20 -0
  1156. package/lib/form/Field.js +295 -0
  1157. package/lib/form/FieldContext.d.ts +4 -0
  1158. package/lib/form/FieldContext.js +41 -0
  1159. package/lib/form/FieldLabel.d.ts +11 -0
  1160. package/lib/form/FieldLabel.js +70 -0
  1161. package/lib/form/FieldWrapper.d.ts +8 -0
  1162. package/lib/form/FieldWrapper.js +54 -0
  1163. package/lib/form/Form.d.ts +19 -0
  1164. package/lib/form/Form.js +146 -0
  1165. package/lib/form/FormContext.d.ts +12 -0
  1166. package/lib/form/FormContext.js +51 -0
  1167. package/lib/form/hooks/useForceUpdate.d.ts +2 -0
  1168. package/lib/form/hooks/useForceUpdate.js +27 -0
  1169. package/lib/form/hooks/useForm.d.ts +3 -0
  1170. package/lib/form/hooks/useForm.js +391 -0
  1171. package/lib/form/index.d.ts +21 -0
  1172. package/lib/form/index.js +49 -0
  1173. package/lib/form/interface.d.ts +105 -0
  1174. package/lib/form/interface.js +0 -0
  1175. package/lib/form/style/css.js +5 -0
  1176. package/lib/form/style/index.css +179 -0
  1177. package/lib/form/style/index.d.ts +2 -0
  1178. package/lib/form/style/index.js +5 -0
  1179. package/lib/form/style/index.less +84 -0
  1180. package/lib/form/style/mixin.less +5 -0
  1181. package/lib/grid/col.d.ts +21 -0
  1182. package/lib/grid/col.js +130 -0
  1183. package/lib/grid/index.d.ts +3 -0
  1184. package/lib/grid/index.js +23 -0
  1185. package/lib/grid/row.d.ts +21 -0
  1186. package/lib/grid/row.js +137 -0
  1187. package/lib/grid/style/css.js +5 -0
  1188. package/lib/grid/style/index.css +118 -0
  1189. package/lib/grid/style/index.d.ts +2 -0
  1190. package/lib/grid/style/index.js +5 -0
  1191. package/lib/grid/style/index.less +22 -0
  1192. package/lib/icon/icon.d.ts +16 -0
  1193. package/lib/icon/icon.js +89 -0
  1194. package/lib/icon/index.d.ts +3 -0
  1195. package/lib/icon/index.js +36 -0
  1196. package/lib/icon/interface.d.ts +3 -0
  1197. package/lib/icon/interface.js +21 -0
  1198. package/lib/icon/style/css.js +5 -0
  1199. package/lib/icon/style/index.css +104 -0
  1200. package/lib/icon/style/index.d.ts +2 -0
  1201. package/lib/icon/style/index.js +5 -0
  1202. package/lib/icon/style/index.less +14 -0
  1203. package/lib/image/image.d.ts +29 -0
  1204. package/lib/image/image.js +175 -0
  1205. package/lib/image/index.d.ts +3 -0
  1206. package/lib/image/index.js +36 -0
  1207. package/lib/image/preview-group.d.ts +11 -0
  1208. package/lib/image/preview-group.js +144 -0
  1209. package/lib/image/preview.d.ts +27 -0
  1210. package/lib/image/preview.js +210 -0
  1211. package/lib/image/style/css.js +5 -0
  1212. package/lib/image/style/index.css +322 -0
  1213. package/lib/image/style/index.d.ts +2 -0
  1214. package/lib/image/style/index.js +5 -0
  1215. package/lib/image/style/index.less +222 -0
  1216. package/lib/image-cropper/cropper.d.ts +25 -0
  1217. package/lib/image-cropper/cropper.js +148 -0
  1218. package/lib/image-cropper/image-cropper.d.ts +32 -0
  1219. package/lib/image-cropper/image-cropper.js +222 -0
  1220. package/lib/image-cropper/index.d.ts +2 -0
  1221. package/lib/image-cropper/index.js +13 -0
  1222. package/lib/image-cropper/operation-bar.d.ts +18 -0
  1223. package/lib/image-cropper/operation-bar.js +142 -0
  1224. package/lib/image-cropper/style/css.js +5 -0
  1225. package/lib/image-cropper/style/index.css +385 -0
  1226. package/lib/image-cropper/style/index.d.ts +2 -0
  1227. package/lib/image-cropper/style/index.js +5 -0
  1228. package/lib/image-cropper/style/index.less +325 -0
  1229. package/lib/index.d.ts +54 -0
  1230. package/lib/index.js +484 -0
  1231. package/lib/input/ClearableLabeledInput.d.ts +25 -0
  1232. package/lib/input/ClearableLabeledInput.js +164 -0
  1233. package/lib/input/TextArea.d.ts +22 -0
  1234. package/lib/input/TextArea.js +259 -0
  1235. package/lib/input/calculateNodeHeight.d.ts +13 -0
  1236. package/lib/input/calculateNodeHeight.js +113 -0
  1237. package/lib/input/index.d.ts +5 -0
  1238. package/lib/input/index.js +44 -0
  1239. package/lib/input/input.d.ts +26 -0
  1240. package/lib/input/input.js +196 -0
  1241. package/lib/input/style/css.js +3 -0
  1242. package/lib/input/style/index.css +499 -0
  1243. package/lib/input/style/index.d.ts +1 -0
  1244. package/lib/input/style/index.js +3 -0
  1245. package/lib/input/style/index.less +238 -0
  1246. package/lib/input/style/mixin.less +59 -0
  1247. package/lib/input-number/index.d.ts +3 -0
  1248. package/lib/input-number/index.js +13 -0
  1249. package/lib/input-number/inputNumber.d.ts +26 -0
  1250. package/lib/input-number/inputNumber.js +382 -0
  1251. package/lib/input-number/style/css.js +3 -0
  1252. package/lib/input-number/style/index.css +212 -0
  1253. package/lib/input-number/style/index.d.ts +1 -0
  1254. package/lib/input-number/style/index.js +3 -0
  1255. package/lib/input-number/style/index.less +65 -0
  1256. package/lib/input-number/style/mixin.less +15 -0
  1257. package/lib/layout/index.d.ts +13 -0
  1258. package/lib/layout/index.js +30 -0
  1259. package/lib/layout/layout.d.ts +23 -0
  1260. package/lib/layout/layout.js +184 -0
  1261. package/lib/layout/sider.d.ts +29 -0
  1262. package/lib/layout/sider.js +257 -0
  1263. package/lib/layout/style/css.js +5 -0
  1264. package/lib/layout/style/index.css +236 -0
  1265. package/lib/layout/style/index.d.ts +2 -0
  1266. package/lib/layout/style/index.js +5 -0
  1267. package/lib/layout/style/index.less +133 -0
  1268. package/lib/layout/style/light.less +11 -0
  1269. package/lib/locale/index.d.ts +3 -0
  1270. package/lib/locale/index.js +33 -0
  1271. package/lib/locale/locale.d.ts +120 -0
  1272. package/lib/locale/locale.js +281 -0
  1273. package/lib/locale/zh-CN.d.ts +78 -0
  1274. package/lib/locale/zh-CN.js +78 -0
  1275. package/lib/menu/index.d.ts +3 -0
  1276. package/lib/menu/index.js +36 -0
  1277. package/lib/menu/interface.d.ts +12 -0
  1278. package/lib/menu/interface.js +0 -0
  1279. package/lib/menu/menu.d.ts +24 -0
  1280. package/lib/menu/menu.js +191 -0
  1281. package/lib/menu/menuItem.d.ts +10 -0
  1282. package/lib/menu/menuItem.js +174 -0
  1283. package/lib/menu/style/css.js +5 -0
  1284. package/lib/menu/style/index.css +475 -0
  1285. package/lib/menu/style/index.d.ts +2 -0
  1286. package/lib/menu/style/index.js +5 -0
  1287. package/lib/menu/style/index.less +198 -0
  1288. package/lib/menu/style/mixin.less +100 -0
  1289. package/lib/menu/subMenu.d.ts +13 -0
  1290. package/lib/menu/subMenu.js +407 -0
  1291. package/lib/menu/util.d.ts +9 -0
  1292. package/lib/menu/util.js +105 -0
  1293. package/lib/message/content.d.ts +7 -0
  1294. package/lib/message/content.js +109 -0
  1295. package/lib/message/index.d.ts +21 -0
  1296. package/lib/message/index.js +138 -0
  1297. package/lib/message/style/css.js +5 -0
  1298. package/lib/message/style/index.css +190 -0
  1299. package/lib/message/style/index.d.ts +2 -0
  1300. package/lib/message/style/index.js +5 -0
  1301. package/lib/message/style/index.less +94 -0
  1302. package/lib/modal/confirm.d.ts +9 -0
  1303. package/lib/modal/confirm.js +75 -0
  1304. package/lib/modal/index.d.ts +6 -0
  1305. package/lib/modal/index.js +52 -0
  1306. package/lib/modal/modal.d.ts +45 -0
  1307. package/lib/modal/modal.js +298 -0
  1308. package/lib/modal/style/css.js +5 -0
  1309. package/lib/modal/style/index.css +244 -0
  1310. package/lib/modal/style/index.d.ts +2 -0
  1311. package/lib/modal/style/index.js +5 -0
  1312. package/lib/modal/style/index.less +144 -0
  1313. package/lib/modal/style/mixin.less +11 -0
  1314. package/lib/notification/content.d.ts +7 -0
  1315. package/lib/notification/content.js +156 -0
  1316. package/lib/notification/index.d.ts +34 -0
  1317. package/lib/notification/index.js +164 -0
  1318. package/lib/notification/style/css.js +5 -0
  1319. package/lib/notification/style/index.css +236 -0
  1320. package/lib/notification/style/index.d.ts +2 -0
  1321. package/lib/notification/style/index.js +5 -0
  1322. package/lib/notification/style/index.less +148 -0
  1323. package/lib/notification-base/index.d.ts +5 -0
  1324. package/lib/notification-base/index.js +112 -0
  1325. package/lib/notification-base/notice.d.ts +16 -0
  1326. package/lib/notification-base/notice.js +119 -0
  1327. package/lib/notification-base/notification.d.ts +7 -0
  1328. package/lib/notification-base/notification.js +110 -0
  1329. package/lib/pagination/index.d.ts +3 -0
  1330. package/lib/pagination/index.js +13 -0
  1331. package/lib/pagination/pagination.d.ts +29 -0
  1332. package/lib/pagination/pagination.js +465 -0
  1333. package/lib/pagination/style/css.js +5 -0
  1334. package/lib/pagination/style/index.css +707 -0
  1335. package/lib/pagination/style/index.d.ts +2 -0
  1336. package/lib/pagination/style/index.js +5 -0
  1337. package/lib/pagination/style/index.less +579 -0
  1338. package/lib/popconfirm/index.d.ts +3 -0
  1339. package/lib/popconfirm/index.js +36 -0
  1340. package/lib/popconfirm/popconfirm.d.ts +19 -0
  1341. package/lib/popconfirm/popconfirm.js +119 -0
  1342. package/lib/popconfirm/style/css.js +5 -0
  1343. package/lib/popconfirm/style/index.css +213 -0
  1344. package/lib/popconfirm/style/index.d.ts +2 -0
  1345. package/lib/popconfirm/style/index.js +5 -0
  1346. package/lib/popconfirm/style/index.less +59 -0
  1347. package/lib/progress/circle.d.ts +8 -0
  1348. package/lib/progress/circle.js +120 -0
  1349. package/lib/progress/index.d.ts +3 -0
  1350. package/lib/progress/index.js +13 -0
  1351. package/lib/progress/line.d.ts +8 -0
  1352. package/lib/progress/line.js +46 -0
  1353. package/lib/progress/progress.d.ts +35 -0
  1354. package/lib/progress/progress.js +206 -0
  1355. package/lib/progress/style/css.js +5 -0
  1356. package/lib/progress/style/index.css +242 -0
  1357. package/lib/progress/style/index.d.ts +2 -0
  1358. package/lib/progress/style/index.js +5 -0
  1359. package/lib/progress/style/index.less +176 -0
  1360. package/lib/progress/style/mixin.less +5 -0
  1361. package/lib/progress/utils.d.ts +6 -0
  1362. package/lib/progress/utils.js +95 -0
  1363. package/lib/radio/context.d.ts +5 -0
  1364. package/lib/radio/context.js +24 -0
  1365. package/lib/radio/group.d.ts +4 -0
  1366. package/lib/radio/group.js +139 -0
  1367. package/lib/radio/index.d.ts +12 -0
  1368. package/lib/radio/index.js +32 -0
  1369. package/lib/radio/interface.d.ts +47 -0
  1370. package/lib/radio/interface.js +0 -0
  1371. package/lib/radio/radio-button.d.ts +4 -0
  1372. package/lib/radio/radio-button.js +76 -0
  1373. package/lib/radio/radio.d.ts +4 -0
  1374. package/lib/radio/radio.js +126 -0
  1375. package/lib/radio/style/css.js +5 -0
  1376. package/lib/radio/style/index.css +398 -0
  1377. package/lib/radio/style/index.d.ts +2 -0
  1378. package/lib/radio/style/index.js +5 -0
  1379. package/lib/radio/style/index.less +315 -0
  1380. package/lib/rate/index.d.ts +3 -0
  1381. package/lib/rate/index.js +13 -0
  1382. package/lib/rate/rate.d.ts +23 -0
  1383. package/lib/rate/rate.js +307 -0
  1384. package/lib/rate/style/css.js +5 -0
  1385. package/lib/rate/style/index.css +201 -0
  1386. package/lib/rate/style/index.d.ts +2 -0
  1387. package/lib/rate/style/index.js +5 -0
  1388. package/lib/rate/style/index.less +79 -0
  1389. package/lib/search/index.d.ts +8 -0
  1390. package/lib/search/index.js +34 -0
  1391. package/lib/search/interface.d.ts +73 -0
  1392. package/lib/search/interface.js +15 -0
  1393. package/lib/search/option.d.ts +4 -0
  1394. package/lib/search/option.js +79 -0
  1395. package/lib/search/quick-search.d.ts +4 -0
  1396. package/lib/search/quick-search.js +596 -0
  1397. package/lib/search/search-panel.d.ts +29 -0
  1398. package/lib/search/search-panel.js +280 -0
  1399. package/lib/search/search.d.ts +4 -0
  1400. package/lib/search/search.js +177 -0
  1401. package/lib/search/style/css.js +5 -0
  1402. package/lib/search/style/index.css +703 -0
  1403. package/lib/search/style/index.d.ts +2 -0
  1404. package/lib/search/style/index.js +5 -0
  1405. package/lib/search/style/index.less +486 -0
  1406. package/lib/search/style/mixin.less +46 -0
  1407. package/lib/select/index.d.ts +8 -0
  1408. package/lib/select/index.js +17 -0
  1409. package/lib/select/interface.d.ts +59 -0
  1410. package/lib/select/interface.js +16 -0
  1411. package/lib/select/option.d.ts +16 -0
  1412. package/lib/select/option.js +108 -0
  1413. package/lib/select/select.d.ts +4 -0
  1414. package/lib/select/select.js +712 -0
  1415. package/lib/select/style/css.js +3 -0
  1416. package/lib/select/style/index.css +599 -0
  1417. package/lib/select/style/index.d.ts +1 -0
  1418. package/lib/select/style/index.js +3 -0
  1419. package/lib/select/style/index.less +368 -0
  1420. package/lib/select/style/mixin.less +85 -0
  1421. package/lib/slider/index.d.ts +3 -0
  1422. package/lib/slider/index.js +36 -0
  1423. package/lib/slider/marks.d.ts +17 -0
  1424. package/lib/slider/marks.js +72 -0
  1425. package/lib/slider/slider.d.ts +30 -0
  1426. package/lib/slider/slider.js +333 -0
  1427. package/lib/slider/sliderTooltip.d.ts +11 -0
  1428. package/lib/slider/sliderTooltip.js +78 -0
  1429. package/lib/slider/steps.d.ts +17 -0
  1430. package/lib/slider/steps.js +76 -0
  1431. package/lib/slider/style/css.js +5 -0
  1432. package/lib/slider/style/index.css +305 -0
  1433. package/lib/slider/style/index.d.ts +2 -0
  1434. package/lib/slider/style/index.js +5 -0
  1435. package/lib/slider/style/index.less +167 -0
  1436. package/lib/slider/style/mixin.less +40 -0
  1437. package/lib/slider/track.d.ts +10 -0
  1438. package/lib/slider/track.js +33 -0
  1439. package/lib/slider/utils.d.ts +8 -0
  1440. package/lib/slider/utils.js +78 -0
  1441. package/lib/space/index.d.ts +3 -0
  1442. package/lib/space/index.js +36 -0
  1443. package/lib/space/space.d.ts +16 -0
  1444. package/lib/space/space.js +129 -0
  1445. package/lib/space/style/css.js +5 -0
  1446. package/lib/space/style/index.css +139 -0
  1447. package/lib/space/style/index.d.ts +2 -0
  1448. package/lib/space/style/index.js +5 -0
  1449. package/lib/space/style/index.less +42 -0
  1450. package/lib/spin/index.d.ts +3 -0
  1451. package/lib/spin/index.js +36 -0
  1452. package/lib/spin/spin.d.ts +13 -0
  1453. package/lib/spin/spin.js +150 -0
  1454. package/lib/spin/style/css.js +5 -0
  1455. package/lib/spin/style/index.css +291 -0
  1456. package/lib/spin/style/index.d.ts +2 -0
  1457. package/lib/spin/style/index.js +5 -0
  1458. package/lib/spin/style/index.less +163 -0
  1459. package/lib/spin/style/mixin.less +8 -0
  1460. package/lib/split-panel/index.d.ts +3 -0
  1461. package/lib/split-panel/index.js +36 -0
  1462. package/lib/split-panel/interface.d.ts +3 -0
  1463. package/lib/split-panel/interface.js +0 -0
  1464. package/lib/split-panel/split-panel.d.ts +24 -0
  1465. package/lib/split-panel/split-panel.js +312 -0
  1466. package/lib/split-panel/style/css.js +5 -0
  1467. package/lib/split-panel/style/index.css +278 -0
  1468. package/lib/split-panel/style/index.d.ts +2 -0
  1469. package/lib/split-panel/style/index.js +5 -0
  1470. package/lib/split-panel/style/index.less +192 -0
  1471. package/lib/split-panel/trigger.d.ts +15 -0
  1472. package/lib/split-panel/trigger.js +79 -0
  1473. package/lib/stepper/index.d.ts +3 -0
  1474. package/lib/stepper/index.js +36 -0
  1475. package/lib/stepper/stepper.d.ts +11 -0
  1476. package/lib/stepper/stepper.js +258 -0
  1477. package/lib/stepper/style/css.js +5 -0
  1478. package/lib/stepper/style/index.css +224 -0
  1479. package/lib/stepper/style/index.d.ts +2 -0
  1480. package/lib/stepper/style/index.js +5 -0
  1481. package/lib/stepper/style/index.less +78 -0
  1482. package/lib/stepper/style/mixin.less +15 -0
  1483. package/lib/steps/Step.d.ts +19 -0
  1484. package/lib/steps/Step.js +115 -0
  1485. package/lib/steps/Steps.d.ts +16 -0
  1486. package/lib/steps/Steps.js +143 -0
  1487. package/lib/steps/index.d.ts +5 -0
  1488. package/lib/steps/index.js +41 -0
  1489. package/lib/steps/interface.d.ts +13 -0
  1490. package/lib/steps/interface.js +15 -0
  1491. package/lib/steps/style/css.js +5 -0
  1492. package/lib/steps/style/index.css +305 -0
  1493. package/lib/steps/style/index.d.ts +2 -0
  1494. package/lib/steps/style/index.js +5 -0
  1495. package/lib/steps/style/index.less +192 -0
  1496. package/lib/steps/style/mixin.less +41 -0
  1497. package/lib/style/color/colors.less +2 -0
  1498. package/lib/style/components.less +52 -0
  1499. package/lib/style/core/index.less +2 -0
  1500. package/lib/style/core/motion/other.less +126 -0
  1501. package/lib/style/core/motion/slide.less +120 -0
  1502. package/lib/style/core/motion/zoom.less +247 -0
  1503. package/lib/style/core/motion.less +3 -0
  1504. package/lib/style/core/reset.less +235 -0
  1505. package/lib/style/css.js +3 -0
  1506. package/lib/style/index.css +1814 -0
  1507. package/lib/style/index.d.ts +1 -0
  1508. package/lib/style/index.js +3 -0
  1509. package/lib/style/index.less +3 -0
  1510. package/lib/style/mixins/index.less +90 -0
  1511. package/lib/style/mixins/overlay.less +22 -0
  1512. package/lib/style/mixins/reset.less +13 -0
  1513. package/lib/style/themes/default.less +696 -0
  1514. package/lib/style/themes/index.less +1 -0
  1515. package/lib/switch/index.d.ts +3 -0
  1516. package/lib/switch/index.js +13 -0
  1517. package/lib/switch/style/css.js +5 -0
  1518. package/lib/switch/style/index.css +208 -0
  1519. package/lib/switch/style/index.d.ts +2 -0
  1520. package/lib/switch/style/index.js +5 -0
  1521. package/lib/switch/style/index.less +70 -0
  1522. package/lib/switch/style/mixin.less +39 -0
  1523. package/lib/switch/switch.d.ts +20 -0
  1524. package/lib/switch/switch.js +131 -0
  1525. package/lib/table/feature/autoRowSpan.d.ts +3 -0
  1526. package/lib/table/feature/autoRowSpan.js +17 -0
  1527. package/lib/table/feature/columnDrag.d.ts +4 -0
  1528. package/lib/table/feature/columnDrag.js +17 -0
  1529. package/lib/table/feature/columnResize.d.ts +4 -0
  1530. package/lib/table/feature/columnResize.js +17 -0
  1531. package/lib/table/feature/contextMenu.d.ts +3 -0
  1532. package/lib/table/feature/contextMenu.js +17 -0
  1533. package/lib/table/feature/filter.d.ts +3 -0
  1534. package/lib/table/feature/filter.js +23 -0
  1535. package/lib/table/feature/rowDetail.d.ts +3 -0
  1536. package/lib/table/feature/rowDetail.js +21 -0
  1537. package/lib/table/feature/rowSelection.d.ts +3 -0
  1538. package/lib/table/feature/rowSelection.js +70 -0
  1539. package/lib/table/feature/sort.d.ts +3 -0
  1540. package/lib/table/feature/sort.js +23 -0
  1541. package/lib/table/feature/treeMode.d.ts +3 -0
  1542. package/lib/table/feature/treeMode.js +21 -0
  1543. package/lib/table/index.d.ts +2 -0
  1544. package/lib/table/index.js +13 -0
  1545. package/lib/table/interface.d.ts +34 -0
  1546. package/lib/table/interface.js +0 -0
  1547. package/lib/table/style/css.js +5 -0
  1548. package/lib/table/style/index.css +99 -0
  1549. package/lib/table/style/index.d.ts +2 -0
  1550. package/lib/table/style/index.js +5 -0
  1551. package/lib/table/style/index.less +8 -0
  1552. package/lib/table/style/mixin.less +1 -0
  1553. package/lib/table/table.d.ts +3 -0
  1554. package/lib/table/table.js +164 -0
  1555. package/lib/tabs/active-line.d.ts +8 -0
  1556. package/lib/tabs/active-line.js +51 -0
  1557. package/lib/tabs/arrow-button.d.ts +11 -0
  1558. package/lib/tabs/arrow-button.js +61 -0
  1559. package/lib/tabs/context.d.ts +5 -0
  1560. package/lib/tabs/context.js +24 -0
  1561. package/lib/tabs/index.d.ts +8 -0
  1562. package/lib/tabs/index.js +18 -0
  1563. package/lib/tabs/style/css.js +5 -0
  1564. package/lib/tabs/style/index.css +548 -0
  1565. package/lib/tabs/style/index.d.ts +2 -0
  1566. package/lib/tabs/style/index.js +5 -0
  1567. package/lib/tabs/style/index.less +396 -0
  1568. package/lib/tabs/style/mixin.less +32 -0
  1569. package/lib/tabs/tab-pane.d.ts +23 -0
  1570. package/lib/tabs/tab-pane.js +129 -0
  1571. package/lib/tabs/tabs.d.ts +30 -0
  1572. package/lib/tabs/tabs.js +494 -0
  1573. package/lib/tag/index.d.ts +3 -0
  1574. package/lib/tag/index.js +36 -0
  1575. package/lib/tag/style/css.js +5 -0
  1576. package/lib/tag/style/index.css +641 -0
  1577. package/lib/tag/style/index.d.ts +2 -0
  1578. package/lib/tag/style/index.js +5 -0
  1579. package/lib/tag/style/index.less +144 -0
  1580. package/lib/tag/style/mixin.less +44 -0
  1581. package/lib/tag/tag.d.ts +24 -0
  1582. package/lib/tag/tag.js +161 -0
  1583. package/lib/timeline/Timeline.d.ts +18 -0
  1584. package/lib/timeline/Timeline.js +129 -0
  1585. package/lib/timeline/TimelineItem.d.ts +15 -0
  1586. package/lib/timeline/TimelineItem.js +105 -0
  1587. package/lib/timeline/index.d.ts +4 -0
  1588. package/lib/timeline/index.js +13 -0
  1589. package/lib/timeline/style/css.js +5 -0
  1590. package/lib/timeline/style/index.css +300 -0
  1591. package/lib/timeline/style/index.d.ts +2 -0
  1592. package/lib/timeline/style/index.js +5 -0
  1593. package/lib/timeline/style/index.less +259 -0
  1594. package/lib/tooltip/index.d.ts +3 -0
  1595. package/lib/tooltip/index.js +36 -0
  1596. package/lib/tooltip/style/css.js +5 -0
  1597. package/lib/tooltip/style/index.css +180 -0
  1598. package/lib/tooltip/style/index.d.ts +2 -0
  1599. package/lib/tooltip/style/index.js +5 -0
  1600. package/lib/tooltip/style/index.less +27 -0
  1601. package/lib/tooltip/tooltip.d.ts +9 -0
  1602. package/lib/tooltip/tooltip.js +55 -0
  1603. package/lib/transfer/img/transfer-empty.png +0 -0
  1604. package/lib/transfer/index.d.ts +6 -0
  1605. package/lib/transfer/index.js +13 -0
  1606. package/lib/transfer/interface.d.ts +21 -0
  1607. package/lib/transfer/interface.js +0 -0
  1608. package/lib/transfer/list-body.d.ts +14 -0
  1609. package/lib/transfer/list-body.js +141 -0
  1610. package/lib/transfer/list-item.d.ts +15 -0
  1611. package/lib/transfer/list-item.js +76 -0
  1612. package/lib/transfer/list.d.ts +35 -0
  1613. package/lib/transfer/list.js +275 -0
  1614. package/lib/transfer/operation.d.ts +16 -0
  1615. package/lib/transfer/operation.js +57 -0
  1616. package/lib/transfer/search.d.ts +11 -0
  1617. package/lib/transfer/search.js +66 -0
  1618. package/lib/transfer/style/css.js +5 -0
  1619. package/lib/transfer/style/index.css +344 -0
  1620. package/lib/transfer/style/index.d.ts +2 -0
  1621. package/lib/transfer/style/index.js +5 -0
  1622. package/lib/transfer/style/index.less +186 -0
  1623. package/lib/transfer/style/mixins.less +3 -0
  1624. package/lib/transfer/transfer.d.ts +32 -0
  1625. package/lib/transfer/transfer.js +370 -0
  1626. package/lib/tree/index.d.ts +5 -0
  1627. package/lib/tree/index.js +48 -0
  1628. package/lib/tree/style/css.js +5 -0
  1629. package/lib/tree/style/index.css +268 -0
  1630. package/lib/tree/style/index.d.ts +2 -0
  1631. package/lib/tree/style/index.js +5 -0
  1632. package/lib/tree/style/index.less +144 -0
  1633. package/lib/tree/style/mixin.less +5 -0
  1634. package/lib/tree/tree.d.ts +57 -0
  1635. package/lib/tree/tree.js +361 -0
  1636. package/lib/tree/treeHooks.d.ts +9 -0
  1637. package/lib/tree/treeHooks.js +193 -0
  1638. package/lib/tree/treeNode.d.ts +40 -0
  1639. package/lib/tree/treeNode.js +374 -0
  1640. package/lib/tree/utils/treeUtils.d.ts +46 -0
  1641. package/lib/tree/utils/treeUtils.js +564 -0
  1642. package/lib/typography/base.d.ts +21 -0
  1643. package/lib/typography/base.js +130 -0
  1644. package/lib/typography/index.d.ts +11 -0
  1645. package/lib/typography/index.js +24 -0
  1646. package/lib/typography/paragraph.d.ts +7 -0
  1647. package/lib/typography/paragraph.js +33 -0
  1648. package/lib/typography/style/css.js +5 -0
  1649. package/lib/typography/style/index.css +242 -0
  1650. package/lib/typography/style/index.d.ts +2 -0
  1651. package/lib/typography/style/index.js +5 -0
  1652. package/lib/typography/style/index.less +140 -0
  1653. package/lib/typography/style/mixin.less +83 -0
  1654. package/lib/typography/text.d.ts +7 -0
  1655. package/lib/typography/text.js +23 -0
  1656. package/lib/typography/title.d.ts +10 -0
  1657. package/lib/typography/title.js +58 -0
  1658. package/lib/typography/typography.d.ts +14 -0
  1659. package/lib/typography/typography.js +79 -0
  1660. package/lib/upload/dragger.d.ts +7 -0
  1661. package/lib/upload/dragger.js +59 -0
  1662. package/lib/upload/index.d.ts +9 -0
  1663. package/lib/upload/index.js +42 -0
  1664. package/lib/upload/interface.d.ts +144 -0
  1665. package/lib/upload/interface.js +0 -0
  1666. package/lib/upload/request.d.ts +2 -0
  1667. package/lib/upload/request.js +108 -0
  1668. package/lib/upload/scan-files.d.ts +14 -0
  1669. package/lib/upload/scan-files.js +77 -0
  1670. package/lib/upload/style/css.js +5 -0
  1671. package/lib/upload/style/index.css +362 -0
  1672. package/lib/upload/style/index.d.ts +2 -0
  1673. package/lib/upload/style/index.js +5 -0
  1674. package/lib/upload/style/index.less +223 -0
  1675. package/lib/upload/upload.d.ts +4 -0
  1676. package/lib/upload/upload.js +567 -0
  1677. package/lib/upload/utils.d.ts +2 -0
  1678. package/lib/upload/utils.js +36 -0
  1679. package/lib/upload/verify-file.d.ts +3 -0
  1680. package/lib/upload/verify-file.js +41 -0
  1681. package/lib/view-container/context.d.ts +5 -0
  1682. package/lib/view-container/context.js +24 -0
  1683. package/lib/view-container/index.d.ts +3 -0
  1684. package/lib/view-container/index.js +13 -0
  1685. package/lib/view-container/view-container.d.ts +9 -0
  1686. package/lib/view-container/view-container.js +58 -0
  1687. package/lib/view-container/view-pane.d.ts +1 -0
  1688. package/lib/view-container/view-pane.js +0 -0
  1689. package/package.json +239 -0
@@ -0,0 +1,252 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/extends";
2
+ import _slicedToArray from "@babel/runtime-corejs3/helpers/slicedToArray";
3
+ import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find";
4
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
5
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
6
+ import * as React from 'react';
7
+ import classNames from 'classnames';
8
+ import TimeColumn from './time-column';
9
+ import { formatDate, newDate, setTime as utilSetTime } from '../../utils/date-fns';
10
+ import Context from '../../context';
11
+ import useStateMemo from '../../hooks/use-state-memo';
12
+ import { leftPad } from '../../utils';
13
+ import Header from '../header/header'; // export interface TimePanelProps extends SharedTimeProps {
14
+ // format?: string
15
+ // // active?: boolean
16
+ // }
17
+
18
+ function shouldUnitsUpdate(prevUnits, nextUnits) {
19
+ if (prevUnits.length !== nextUnits.length) return true;
20
+
21
+ for (var i = 0; i < prevUnits.length; i += 1) {
22
+ if (prevUnits[i].disabled !== nextUnits[i].disabled) return true;
23
+ }
24
+
25
+ return false;
26
+ }
27
+
28
+ function TimePanel(props) {
29
+ var context = React.useContext(Context);
30
+ var prefixCls = context.prefixCls,
31
+ dateValue = context.dateValue,
32
+ onSelect = context.onSelect,
33
+ _context$originHour = context.originHour,
34
+ originHour = _context$originHour === void 0 ? -1 : _context$originHour,
35
+ _context$minute = context.minute,
36
+ minute = _context$minute === void 0 ? -1 : _context$minute,
37
+ _context$second = context.second,
38
+ second = _context$second === void 0 ? -1 : _context$second,
39
+ _context$hours = context.hours,
40
+ rawHours = _context$hours === void 0 ? [] : _context$hours,
41
+ _context$minutes = context.minutes,
42
+ minutes = _context$minutes === void 0 ? [] : _context$minutes,
43
+ _context$seconds = context.seconds,
44
+ seconds = _context$seconds === void 0 ? [] : _context$seconds,
45
+ disabledTimePanel = context.disabledTimePanel;
46
+ var picker = props.picker,
47
+ _props$format = props.format,
48
+ format = _props$format === void 0 ? 'HH:mm:ss' : _props$format,
49
+ showHour = props.showHour,
50
+ showMinute = props.showMinute,
51
+ showSecond = props.showSecond,
52
+ _props$use12Hours = props.use12Hours,
53
+ use12Hours = _props$use12Hours === void 0 ? false : _props$use12Hours,
54
+ hideDisabledOptions = props.hideDisabledOptions; // console.log(rawHours)
55
+
56
+ if (disabledTimePanel) {
57
+ originHour = -1;
58
+ minute = -1;
59
+ second = -1;
60
+ } // const bodyOperationRef = React.useRef<BodyOperationRef>()
61
+ // ======================= Keyboard =======================
62
+ // const [activeColumnIndex, setActiveColumnIndex] = React.useState(-1)
63
+ // debugger
64
+
65
+
66
+ var value = dateValue; // if (mergedActivePickerIndex === 0) {
67
+ // value = rangeValue![0]
68
+ // } else if (mergedActivePickerIndex === 1) {
69
+ // value = rangeValue![1]
70
+ // }
71
+
72
+ var columns = [];
73
+ var columnPrefixCls = "".concat(prefixCls, "-time");
74
+ var isPM; // const originHour = value ? getHours(value) : -1
75
+
76
+ var hour = originHour; // const minute = value ? getMinutes(value) : -1
77
+ // const second = value ? getSeconds(value) : -1
78
+
79
+ var setTime = function setTime(isPM, newHour, newMinute, newSecond) {
80
+ var _a, _b, _c;
81
+
82
+ var date = value || newDate();
83
+
84
+ var _hour = newHour > -1 ? newHour : (_a = _findInstanceProperty(rawHours).call(rawHours, function (n) {
85
+ return !n.disabled;
86
+ })) === null || _a === void 0 ? void 0 : _a.value;
87
+
88
+ var _minute = newMinute > -1 ? newMinute : (_b = _findInstanceProperty(minutes).call(minutes, function (n) {
89
+ return !n.disabled;
90
+ })) === null || _b === void 0 ? void 0 : _b.value;
91
+
92
+ var _second = newSecond > -1 ? newSecond : (_c = _findInstanceProperty(seconds).call(seconds, function (n) {
93
+ return !n.disabled;
94
+ })) === null || _c === void 0 ? void 0 : _c.value;
95
+
96
+ if (!_hour && _hour !== 0) {
97
+ _hour = -1;
98
+ }
99
+
100
+ if (!_minute && _minute !== 0) {
101
+ _minute = -1;
102
+ }
103
+
104
+ if (!_second && _second !== 0) {
105
+ _second = -1;
106
+ } // 所有时或分或秒 disabled 时,返回空(date-time)
107
+
108
+
109
+ if (_hour > -1 && _minute > -1 && _second > -1) {
110
+ date = utilSetTime(date, {
111
+ hour: !use12Hours || !isPM ? _hour : _hour + 12,
112
+ minute: _minute,
113
+ second: _second
114
+ });
115
+ return date;
116
+ }
117
+
118
+ return null;
119
+ }; // const rawHours = generateUnits(0, 23, hourStep, disabledHours && disabledHours())
120
+
121
+
122
+ var memorizedRawHours = useStateMemo(function () {
123
+ return rawHours;
124
+ }, rawHours, shouldUnitsUpdate);
125
+
126
+ if (use12Hours) {
127
+ isPM = hour >= 12;
128
+ hour %= 12;
129
+ }
130
+
131
+ var _React$useMemo = React.useMemo(function () {
132
+ if (!use12Hours) {
133
+ return [false, false];
134
+ }
135
+
136
+ var AMPMDisabled = [true, true];
137
+ memorizedRawHours.forEach(function (_ref) {
138
+ var disabled = _ref.disabled,
139
+ hourValue = _ref.value;
140
+ if (disabled) return;
141
+
142
+ if (hourValue >= 12) {
143
+ AMPMDisabled[1] = false;
144
+ } else {
145
+ AMPMDisabled[0] = false;
146
+ }
147
+ });
148
+ return AMPMDisabled;
149
+ }, [use12Hours, memorizedRawHours]),
150
+ _React$useMemo2 = _slicedToArray(_React$useMemo, 2),
151
+ AMDisabled = _React$useMemo2[0],
152
+ PMDisabled = _React$useMemo2[1];
153
+
154
+ var hours = React.useMemo(function () {
155
+ var _context;
156
+
157
+ if (!use12Hours) return memorizedRawHours;
158
+ return _mapInstanceProperty(_context = _filterInstanceProperty(memorizedRawHours).call(memorizedRawHours, isPM ? function (hourMeta) {
159
+ return hourMeta.value >= 12;
160
+ } : function (hourMeta) {
161
+ return hourMeta.value < 12;
162
+ })).call(_context, function (hourMeta) {
163
+ var hourValue = hourMeta.value % 12;
164
+ var hourLabel = hourValue === 0 ? '12' : leftPad(hourValue, 2);
165
+ return _extends(_extends({}, hourMeta), {
166
+ label: hourLabel,
167
+ value: hourValue
168
+ });
169
+ });
170
+ }, [use12Hours, memorizedRawHours, isPM]); // const minutes = generateUnits(0, 59, minuteStep, disabledMinutes && disabledMinutes(originHour))
171
+ // const seconds = generateUnits(0, 59, secondStep, disabledSeconds && disabledSeconds(originHour, minute))
172
+
173
+ function addColumnNode(condition, node, columnValue, units, onColumnSelect) {
174
+ if (condition !== false) {
175
+ columns.push({
176
+ node: /*#__PURE__*/React.cloneElement(node, {
177
+ prefixCls: columnPrefixCls,
178
+ value: columnValue,
179
+ onSelect: onColumnSelect,
180
+ units: units,
181
+ selectValue: value,
182
+ hideDisabledOptions: hideDisabledOptions
183
+ })
184
+ });
185
+ }
186
+ }
187
+
188
+ addColumnNode(showHour, /*#__PURE__*/React.createElement(TimeColumn, {
189
+ key: "hour"
190
+ }), hour, hours, function (num) {
191
+ var time = setTime(isPM, num, minute, second);
192
+
193
+ if (time) {
194
+ onSelect(time, 'mouse');
195
+ }
196
+ });
197
+ addColumnNode(showMinute, /*#__PURE__*/React.createElement(TimeColumn, {
198
+ key: "minute"
199
+ }), minute, minutes, function (num) {
200
+ var time = setTime(isPM, hour, num, second);
201
+
202
+ if (time) {
203
+ onSelect(time, 'mouse');
204
+ }
205
+ });
206
+ addColumnNode(showSecond, /*#__PURE__*/React.createElement(TimeColumn, {
207
+ key: "second"
208
+ }), second, seconds, function (num) {
209
+ var time = setTime(isPM, hour, minute, num);
210
+
211
+ if (time) {
212
+ onSelect(time, 'mouse');
213
+ }
214
+ });
215
+ var PMIndex = -1;
216
+
217
+ if (typeof isPM === 'boolean') {
218
+ PMIndex = isPM ? 1 : 0;
219
+ }
220
+
221
+ addColumnNode(use12Hours === true, /*#__PURE__*/React.createElement(TimeColumn, {
222
+ key: "12hours"
223
+ }), PMIndex, [{
224
+ label: 'AM',
225
+ value: 0,
226
+ disabled: AMDisabled
227
+ }, {
228
+ label: 'PM',
229
+ value: 1,
230
+ disabled: PMDisabled
231
+ }], function (num) {
232
+ var time = setTime(!!num, hour, minute, second);
233
+
234
+ if (time) {
235
+ onSelect(time, 'mouse');
236
+ }
237
+ });
238
+ return /*#__PURE__*/React.createElement("div", {
239
+ className: classNames("".concat(prefixCls, "-time"), {// [`${panelPrefixCls}-active`]: active,
240
+ })
241
+ }, picker !== 'time' ? /*#__PURE__*/React.createElement(Header, {
242
+ className: "".concat(prefixCls, "-time-header")
243
+ }, !disabledTimePanel && value ? formatDate(value, format) : null) : null, /*#__PURE__*/React.createElement("div", {
244
+ className: classNames("".concat(prefixCls, "-content"), {// [`${panelPrefixCls}-active`]: active,
245
+ })
246
+ }, _mapInstanceProperty(columns).call(columns, function (_ref2) {
247
+ var node = _ref2.node;
248
+ return node;
249
+ })));
250
+ }
251
+
252
+ export default TimePanel;
@@ -0,0 +1,10 @@
1
+ import { DateType, PickerMode } from '../../interface';
2
+ export interface WeekProps {
3
+ day: DateType;
4
+ picker: PickerMode;
5
+ showWeekNumber?: boolean;
6
+ showTime?: boolean;
7
+ disabledDate?: (date: DateType) => boolean;
8
+ }
9
+ declare function Week(props: WeekProps): JSX.Element;
10
+ export default Week;
@@ -0,0 +1,250 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/extends";
2
+ import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
3
+ import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find";
4
+ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
5
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
6
+ import React, { useContext } from 'react';
7
+ import classnames from 'classnames';
8
+ import Context from '../../context';
9
+ import { getDate, getStartOfWeek, addDays, newDate, getWeek, getMonth, isAfter, isSameMonth, getEndOfWeek, setTime } from '../../utils/date-fns';
10
+ import { getHours, getMinutes, getSeconds, isBefore, isSameDay, isSameWeek } from 'date-fns';
11
+ import useRangeCls from '../../hooks/use-range-cls';
12
+
13
+ var formatWeekNumber = function formatWeekNumber(date) {
14
+ return getWeek(date);
15
+ };
16
+
17
+ var isDisabledTime = function isDisabledTime(value, units) {
18
+ var _a;
19
+
20
+ return (_a = _findInstanceProperty(units).call(units, function (n) {
21
+ return n.value === value;
22
+ })) === null || _a === void 0 ? void 0 : _a.disabled;
23
+ };
24
+
25
+ function Week(props) {
26
+ var context = useContext(Context);
27
+ var prefixCls = context.prefixCls,
28
+ dateValue = context.dateValue,
29
+ rangeValue = context.rangeValue,
30
+ panelPosition = context.panelPosition,
31
+ hoverRangedValue = context.hoverRangedValue,
32
+ viewDate = context.viewDate,
33
+ _context$hours = context.hours,
34
+ hours = _context$hours === void 0 ? [] : _context$hours,
35
+ _context$minutes = context.minutes,
36
+ minutes = _context$minutes === void 0 ? [] : _context$minutes,
37
+ _context$seconds = context.seconds,
38
+ seconds = _context$seconds === void 0 ? [] : _context$seconds,
39
+ disabledTimePanel = context.disabledTimePanel,
40
+ onSelect = context.onSelect,
41
+ onDateMouseEnter = context.onDateMouseEnter,
42
+ onDateMouseLeave = context.onDateMouseLeave;
43
+ var showWeekNumber = props.showWeekNumber,
44
+ day = props.day,
45
+ picker = props.picker,
46
+ showTime = props.showTime,
47
+ disabledDate = props.disabledDate;
48
+ var currentMonth = getMonth(viewDate);
49
+
50
+ var _dateValue;
51
+
52
+ if (panelPosition) {
53
+ _dateValue = rangeValue;
54
+ } else {
55
+ _dateValue = dateValue;
56
+ }
57
+
58
+ var hasFindToday = false;
59
+ var hasFindSelected = false;
60
+
61
+ var getSelected = function getSelected(date) {
62
+ if (hasFindSelected) return false;
63
+
64
+ if (Array.isArray(_dateValue)) {
65
+ return _dateValue[0] && isSameDay(_dateValue[0], date) || _dateValue[1] && isSameDay(_dateValue[1], date);
66
+ } else {
67
+ if (_dateValue && isSameDay(_dateValue, date)) {
68
+ hasFindSelected = true;
69
+ return true;
70
+ }
71
+
72
+ return false;
73
+ }
74
+ };
75
+
76
+ var getToday = function getToday(date) {
77
+ if (hasFindToday) return false;
78
+ hasFindToday = isSameDay(date, newDate()); // 如果 today 被选中则返回 false
79
+
80
+ if (hasFindToday) {
81
+ if (Array.isArray(_dateValue)) {
82
+ return !(_dateValue[0] && isSameDay(_dateValue[0], date) || _dateValue[1] && isSameDay(_dateValue[1], date));
83
+ } else {
84
+ return _dateValue ? !isSameDay(_dateValue, date) : true;
85
+ }
86
+ }
87
+ };
88
+
89
+ var getWeekToday = function getWeekToday(date) {
90
+ if (hasFindToday) return false;
91
+ hasFindToday = isSameDay(date, newDate());
92
+ return hasFindToday;
93
+ };
94
+
95
+ var getWeekSelected = function getWeekSelected(date) {
96
+ if (hasFindSelected) return false;
97
+
98
+ if (Array.isArray(_dateValue)) {
99
+ // 如果是 endSelected 需要判断选中的周最后一天是否为本月
100
+ return _dateValue[0] && isSameWeek(_dateValue[0], date) || _dateValue[1] && isSameWeek(_dateValue[1], date) && isSameMonth(getEndOfWeek(_dateValue[1]), viewDate);
101
+ } else {
102
+ if (_dateValue && isSameWeek(_dateValue, date)) {
103
+ hasFindSelected = true;
104
+ return true;
105
+ }
106
+
107
+ return false;
108
+ }
109
+ };
110
+
111
+ var getDayClassNames = function getDayClassNames(date) {
112
+ var _classnames, _context, _context2;
113
+
114
+ 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))) : '';
115
+ };
116
+
117
+ var getRangeCls = useRangeCls({
118
+ prefixCls: prefixCls,
119
+ rangeValue: rangeValue,
120
+ hoverRangedValue: hoverRangedValue,
121
+ isRange: !!panelPosition,
122
+ isCurrentMonth: function isCurrentMonth(date) {
123
+ return isSameMonth(date, viewDate);
124
+ },
125
+ isAfterStart: function isAfterStart(date, rangedValue) {
126
+ return rangedValue[0] ? isAfter(date, rangedValue[0]) : false;
127
+ },
128
+ isBeforeEnd: function isBeforeEnd(date, rangedValue) {
129
+ return rangedValue[1] ? isBefore(date, rangedValue[1]) : false;
130
+ },
131
+ isStart: function isStart(date, rangedValue) {
132
+ return rangedValue[0] ? isSameDay(date, rangedValue[0]) : false;
133
+ },
134
+ isEnd: function isEnd(date, rangedValue) {
135
+ if (rangedValue[1] && isSameDay(date, rangedValue[1])) {
136
+ if (picker === 'date') {
137
+ return true;
138
+ } else {
139
+ return isSameMonth(getStartOfWeek(date), getEndOfWeek(date));
140
+ }
141
+ }
142
+
143
+ return false;
144
+ }
145
+ });
146
+
147
+ var getEffectTime = function getEffectTime(date) {
148
+ if (showTime && !disabledTimePanel) {
149
+ // debugger
150
+ var dateHour = getHours(date);
151
+ var dateMinute = getMinutes(date);
152
+ var dateSecond = getSeconds(date);
153
+ var hour = isDisabledTime(dateHour, hours) ? _findInstanceProperty(hours).call(hours, function (n) {
154
+ return !n.disabled;
155
+ }).value : dateHour;
156
+ var minute = isDisabledTime(dateMinute, minutes) ? _findInstanceProperty(minutes).call(minutes, function (n) {
157
+ return !n.disabled;
158
+ }).value : dateMinute;
159
+ var second = isDisabledTime(dateSecond, seconds) ? _findInstanceProperty(seconds).call(seconds, function (n) {
160
+ return !n.disabled;
161
+ }).value : dateSecond;
162
+ date = setTime(date, {
163
+ hour: hour,
164
+ minute: minute,
165
+ second: second
166
+ });
167
+ }
168
+
169
+ return date;
170
+ };
171
+
172
+ var handleDayClick = function handleDayClick(day) {
173
+ if (!(disabledDate && disabledDate(day))) {
174
+ onSelect(day, 'mouse');
175
+ }
176
+ };
177
+
178
+ var renderDays = function renderDays() {
179
+ var _context3, _classnames4;
180
+
181
+ var startOfWeek = getStartOfWeek(day);
182
+ var days = [];
183
+ var weekNumber = formatWeekNumber(startOfWeek);
184
+
185
+ if (showWeekNumber) {
186
+ var calenderWeekNumberCls = classnames("".concat(prefixCls, "-calendar-weeknumber"));
187
+ days.push( /*#__PURE__*/React.createElement("div", {
188
+ key: "W",
189
+ className: calenderWeekNumberCls
190
+ }, weekNumber));
191
+ }
192
+
193
+ var week = _concatInstanceProperty(days).call(days, _mapInstanceProperty(_context3 = [0, 1, 2, 3, 4, 5, 6]).call(_context3, function (offset) {
194
+ var _classnames3;
195
+
196
+ var day = addDays(startOfWeek, offset);
197
+ var date = getDate(day);
198
+ var now;
199
+
200
+ if (panelPosition === 'left') {
201
+ now = rangeValue && rangeValue[0] || viewDate;
202
+ } else if (panelPosition === 'right') {
203
+ now = rangeValue && rangeValue[1] || viewDate;
204
+ } else {
205
+ now = dateValue || viewDate;
206
+ } // if(hours) {
207
+ // }
208
+
209
+
210
+ var dayTime = setTime(day, {
211
+ hour: getHours(now),
212
+ minute: getMinutes(now),
213
+ second: getSeconds(now)
214
+ });
215
+ var _props = {
216
+ onClick: function onClick() {
217
+ return handleDayClick(getEffectTime(dayTime));
218
+ },
219
+ onMouseEnter: function onMouseEnter() {
220
+ if (onDateMouseEnter) {
221
+ if (!(disabledDate && disabledDate(dayTime))) {
222
+ picker === 'week' ? onDateMouseEnter(startOfWeek) : onDateMouseEnter(getEffectTime(dayTime));
223
+ }
224
+ }
225
+ },
226
+ onMouseLeave: function onMouseLeave() {
227
+ if (onDateMouseLeave) {
228
+ onDateMouseLeave();
229
+ }
230
+ }
231
+ }; // console.log('disabledDate', disabledDate)
232
+
233
+ return /*#__PURE__*/React.createElement("div", _extends({
234
+ key: day.valueOf(),
235
+ 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))
236
+ }, _props), /*#__PURE__*/React.createElement("div", {
237
+ className: getDayClassNames(day)
238
+ }, date));
239
+ }));
240
+
241
+ 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));
242
+ return /*#__PURE__*/React.createElement("div", {
243
+ className: calenderLineCls
244
+ }, week);
245
+ };
246
+
247
+ return /*#__PURE__*/React.createElement(React.Fragment, null, renderDays());
248
+ }
249
+
250
+ export default Week;
@@ -0,0 +1,9 @@
1
+ import { DateType } from '../../interface';
2
+ export interface YearProps {
3
+ yearItemNumber: number;
4
+ minDate?: DateType;
5
+ maxDate?: DateType;
6
+ disabledDate?: (date: DateType) => boolean;
7
+ }
8
+ declare function Year(props: YearProps): JSX.Element;
9
+ export default Year;
@@ -0,0 +1,142 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/extends";
2
+ import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
3
+ import React, { useContext } from 'react';
4
+ import classnames from 'classnames';
5
+ import Context from '../../context';
6
+ import { getYearsPeriod, getYear, newDate, setYear, isAfter, getStartOfYear, isSameYear, isBefore } from '../../utils/date-fns';
7
+ import useRangeCls from '../../hooks/use-range-cls';
8
+
9
+ function Year(props) {
10
+ var context = useContext(Context);
11
+ var prefixCls = context.prefixCls,
12
+ dateValue = context.dateValue,
13
+ viewDate = context.viewDate,
14
+ onDateMouseEnter = context.onDateMouseEnter,
15
+ onDateMouseLeave = context.onDateMouseLeave,
16
+ onSelect = context.onSelect,
17
+ rangeValue = context.rangeValue,
18
+ panelPosition = context.panelPosition,
19
+ hoverRangedValue = context.hoverRangedValue;
20
+ var yearItemNumber = props.yearItemNumber,
21
+ disabledDate = props.disabledDate;
22
+
23
+ var _dateValue;
24
+
25
+ if (panelPosition) {
26
+ _dateValue = rangeValue;
27
+ } else {
28
+ _dateValue = dateValue;
29
+ }
30
+
31
+ var hasFindSelected = false;
32
+ var hasFindToday = false;
33
+
34
+ var getYearSelected = function getYearSelected(year) {
35
+ if (hasFindSelected) return false;
36
+
37
+ if (Array.isArray(_dateValue)) {
38
+ return _dateValue[0] && getYear(_dateValue[0]) === year || _dateValue[1] && getYear(_dateValue[1]) === year;
39
+ } else {
40
+ if (_dateValue && getYear(_dateValue) === year) {
41
+ hasFindSelected = true;
42
+ return true;
43
+ }
44
+
45
+ return false;
46
+ }
47
+ };
48
+
49
+ var getYearToday = function getYearToday(year) {
50
+ if (hasFindToday) return false;
51
+
52
+ if (year === getYear(newDate())) {
53
+ hasFindToday = true;
54
+
55
+ if (Array.isArray(_dateValue)) {
56
+ return _dateValue[0] ? getYear(_dateValue[0]) !== getYear(newDate()) : _dateValue[1] ? getYear(_dateValue[1]) !== getYear(newDate()) : true;
57
+ } else {
58
+ return _dateValue ? getYear(_dateValue) !== year : true;
59
+ }
60
+ }
61
+ };
62
+
63
+ function getYearClassNames(y) {
64
+ var _classnames;
65
+
66
+ 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));
67
+ }
68
+
69
+ var getRangeCls = useRangeCls({
70
+ prefixCls: prefixCls,
71
+ rangeValue: rangeValue,
72
+ hoverRangedValue: hoverRangedValue,
73
+ isRange: !!panelPosition,
74
+ isAfterStart: function isAfterStart(date, rangedValue) {
75
+ return rangedValue[0] ? isAfter(getStartOfYear(date), getStartOfYear(rangedValue[0])) : false;
76
+ },
77
+ isBeforeEnd: function isBeforeEnd(date, rangedValue) {
78
+ return rangedValue[1] ? isBefore(getStartOfYear(date), getStartOfYear(rangedValue[1])) : false;
79
+ },
80
+ isStart: function isStart(date, rangedValue) {
81
+ return rangedValue[0] ? isSameYear(date, rangedValue[0]) : false;
82
+ },
83
+ isEnd: function isEnd(date, rangedValue) {
84
+ return rangedValue[1] ? isSameYear(date, rangedValue[1]) : false;
85
+ }
86
+ });
87
+
88
+ var handleClick = function handleClick(date) {
89
+ if (!(disabledDate && disabledDate(date))) {
90
+ onSelect(date, 'mouse');
91
+ }
92
+ };
93
+
94
+ function getYearList() {
95
+ var yearsList = [];
96
+
97
+ var _getYearsPeriod = getYearsPeriod(viewDate, yearItemNumber),
98
+ startPeriod = _getYearsPeriod.startPeriod,
99
+ endPeriod = _getYearsPeriod.endPeriod;
100
+
101
+ var _loop = function _loop(y) {
102
+ var year = setYear(viewDate, y);
103
+ var _props = {
104
+ onClick: function onClick() {
105
+ return handleClick(year);
106
+ },
107
+ onMouseEnter: function onMouseEnter() {
108
+ if (onDateMouseEnter && !(disabledDate && disabledDate(year))) {
109
+ onDateMouseEnter(year);
110
+ }
111
+ },
112
+ onMouseLeave: function onMouseLeave() {
113
+ if (onDateMouseLeave) {
114
+ onDateMouseLeave();
115
+ }
116
+ }
117
+ };
118
+ yearsList.push( /*#__PURE__*/React.createElement("div", _extends({
119
+ className: classnames("".concat(prefixCls, "-year-item"), _defineProperty({}, "".concat(prefixCls, "-year-item-disabled"), disabledDate && disabledDate(year)), getRangeCls(year)),
120
+ key: y
121
+ }, _props), /*#__PURE__*/React.createElement("span", {
122
+ className: getYearClassNames(y)
123
+ }, y)));
124
+ };
125
+
126
+ for (var y = startPeriod; y <= endPeriod; y++) {
127
+ _loop(y);
128
+ }
129
+
130
+ return yearsList;
131
+ }
132
+
133
+ var yearCls = classnames("".concat(prefixCls, "-year"));
134
+ var yearWarpperCls = classnames("".concat(prefixCls, "-year-warpper"));
135
+ return /*#__PURE__*/React.createElement("div", {
136
+ className: yearCls
137
+ }, /*#__PURE__*/React.createElement("div", {
138
+ className: yearWarpperCls
139
+ }, getYearList()));
140
+ }
141
+
142
+ export default Year;
@@ -0,0 +1,15 @@
1
+ import React, { RefObject } from 'react';
2
+ import { OutPopperProps, PickerMode } from './interface';
3
+ export interface PopperProps extends OutPopperProps {
4
+ prefixCls: string;
5
+ inputDivRef: RefObject<HTMLDivElement>;
6
+ children: React.ReactNode;
7
+ isRange?: boolean;
8
+ isShowTime?: boolean;
9
+ picker?: PickerMode;
10
+ arrowLeft?: number;
11
+ triggerInnerOpen: (open: boolean) => void;
12
+ onClickOutside?: () => void;
13
+ }
14
+ declare const _default: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<HTMLDivElement>>;
15
+ export default _default;