@apdesign/web-react 1.0.0 → 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 (2290) hide show
  1. package/README.md +6 -114
  2. package/README.zh-CN.md +10 -111
  3. package/dist/arco-icon.min.js +2 -2
  4. package/dist/arco.development.js +22 -22
  5. package/dist/arco.min.js +2 -2
  6. package/dist/css/index.less +73 -73
  7. package/es/Affix/index.d.ts +10 -10
  8. package/es/Affix/index.js +172 -172
  9. package/es/Affix/interface.d.ts +52 -52
  10. package/es/Affix/interface.js +1 -1
  11. package/es/Affix/style/index.d.ts +2 -2
  12. package/es/Affix/style/index.js +2 -2
  13. package/es/Alert/index.d.ts +5 -5
  14. package/es/Alert/index.js +100 -100
  15. package/es/Alert/interface.d.ts +66 -66
  16. package/es/Alert/interface.js +1 -1
  17. package/es/Alert/style/index.d.ts +2 -2
  18. package/es/Alert/style/index.js +2 -2
  19. package/es/Anchor/anchor.d.ts +9 -9
  20. package/es/Anchor/anchor.js +275 -275
  21. package/es/Anchor/context.d.ts +11 -11
  22. package/es/Anchor/context.js +8 -8
  23. package/es/Anchor/index.d.ts +4 -4
  24. package/es/Anchor/index.js +2 -2
  25. package/es/Anchor/interface.d.ts +105 -105
  26. package/es/Anchor/interface.js +1 -1
  27. package/es/Anchor/link.d.ts +6 -6
  28. package/es/Anchor/link.js +69 -69
  29. package/es/Anchor/style/index.d.ts +3 -3
  30. package/es/Anchor/style/index.js +3 -3
  31. package/es/Anchor/utils.d.ts +4 -4
  32. package/es/Anchor/utils.js +42 -42
  33. package/es/AutoComplete/index.d.ts +12 -12
  34. package/es/AutoComplete/index.js +161 -161
  35. package/es/AutoComplete/interface.d.ts +127 -127
  36. package/es/AutoComplete/interface.js +1 -1
  37. package/es/AutoComplete/style/index.d.ts +4 -4
  38. package/es/AutoComplete/style/index.js +4 -4
  39. package/es/Avatar/avatar.d.ts +6 -6
  40. package/es/Avatar/avatar.js +81 -81
  41. package/es/Avatar/context.d.ts +4 -4
  42. package/es/Avatar/context.js +2 -2
  43. package/es/Avatar/group.d.ts +6 -6
  44. package/es/Avatar/group.js +67 -67
  45. package/es/Avatar/index.d.ts +8 -8
  46. package/es/Avatar/index.js +6 -6
  47. package/es/Avatar/interface.d.ts +95 -95
  48. package/es/Avatar/interface.js +1 -1
  49. package/es/Avatar/style/index.d.ts +3 -3
  50. package/es/Avatar/style/index.js +3 -3
  51. package/es/BackTop/index.d.ts +7 -7
  52. package/es/BackTop/index.js +93 -93
  53. package/es/BackTop/interface.d.ts +37 -37
  54. package/es/BackTop/interface.js +1 -1
  55. package/es/BackTop/style/index.d.ts +2 -2
  56. package/es/BackTop/style/index.js +2 -2
  57. package/es/Badge/count.d.ts +8 -8
  58. package/es/Badge/count.js +33 -33
  59. package/es/Badge/index.d.ts +5 -5
  60. package/es/Badge/index.js +114 -114
  61. package/es/Badge/interface.d.ts +57 -57
  62. package/es/Badge/interface.js +1 -1
  63. package/es/Badge/style/index.d.ts +2 -2
  64. package/es/Badge/style/index.js +2 -2
  65. package/es/Breadcrumb/index.d.ts +8 -8
  66. package/es/Breadcrumb/index.js +95 -95
  67. package/es/Breadcrumb/interface.d.ts +78 -78
  68. package/es/Breadcrumb/interface.js +1 -1
  69. package/es/Breadcrumb/item.d.ts +8 -8
  70. package/es/Breadcrumb/item.js +65 -65
  71. package/es/Breadcrumb/style/index.d.ts +3 -3
  72. package/es/Breadcrumb/style/index.js +3 -3
  73. package/es/Button/group.d.ts +5 -5
  74. package/es/Button/group.js +35 -35
  75. package/es/Button/index.d.ts +15 -15
  76. package/es/Button/index.js +132 -132
  77. package/es/Button/interface.d.ts +105 -105
  78. package/es/Button/interface.js +1 -1
  79. package/es/Button/style/index.d.ts +2 -2
  80. package/es/Button/style/index.js +2 -2
  81. package/es/Calendar/header/header.d.ts +2 -2
  82. package/es/Calendar/header/header.js +65 -65
  83. package/es/Calendar/header/panel-header.d.ts +2 -2
  84. package/es/Calendar/header/panel-header.js +28 -28
  85. package/es/Calendar/hooks/useCellClassName.d.ts +1 -1
  86. package/es/Calendar/hooks/useCellClassName.js +53 -53
  87. package/es/Calendar/index.d.ts +7 -7
  88. package/es/Calendar/index.js +142 -142
  89. package/es/Calendar/interface.d.ts +122 -122
  90. package/es/Calendar/interface.js +1 -1
  91. package/es/Calendar/month.d.ts +15 -15
  92. package/es/Calendar/month.js +133 -133
  93. package/es/Calendar/style/index.d.ts +4 -4
  94. package/es/Calendar/style/index.js +4 -4
  95. package/es/Calendar/week-list.d.ts +10 -10
  96. package/es/Calendar/week-list.js +17 -17
  97. package/es/Calendar/year.d.ts +13 -13
  98. package/es/Calendar/year.js +59 -59
  99. package/es/Card/grid.d.ts +5 -5
  100. package/es/Card/grid.js +13 -13
  101. package/es/Card/index.d.ts +10 -10
  102. package/es/Card/index.js +76 -76
  103. package/es/Card/interface.d.ts +99 -99
  104. package/es/Card/interface.js +1 -1
  105. package/es/Card/meta.d.ts +5 -5
  106. package/es/Card/meta.js +42 -42
  107. package/es/Card/style/index.d.ts +3 -3
  108. package/es/Card/style/index.js +3 -3
  109. package/es/Carousel/arrow.d.ts +4 -4
  110. package/es/Carousel/arrow.js +36 -36
  111. package/es/Carousel/index.d.ts +5 -5
  112. package/es/Carousel/index.js +288 -288
  113. package/es/Carousel/indicator.d.ts +4 -4
  114. package/es/Carousel/indicator.js +57 -57
  115. package/es/Carousel/interface.d.ts +144 -144
  116. package/es/Carousel/interface.js +1 -1
  117. package/es/Carousel/style/index.d.ts +2 -2
  118. package/es/Carousel/style/index.js +2 -2
  119. package/es/Cascader/base/node.d.ts +78 -78
  120. package/es/Cascader/base/node.js +201 -201
  121. package/es/Cascader/base/store.d.ts +43 -43
  122. package/es/Cascader/base/store.js +166 -166
  123. package/es/Cascader/cascader.d.ts +17 -17
  124. package/es/Cascader/cascader.js +344 -344
  125. package/es/Cascader/hook/useRefCurrent.d.ts +3 -3
  126. package/es/Cascader/hook/useRefCurrent.js +41 -41
  127. package/es/Cascader/index.d.ts +5 -5
  128. package/es/Cascader/index.js +3 -3
  129. package/es/Cascader/interface.d.ts +308 -308
  130. package/es/Cascader/interface.js +1 -1
  131. package/es/Cascader/panel/list.d.ts +4 -4
  132. package/es/Cascader/panel/list.js +383 -383
  133. package/es/Cascader/panel/option.d.ts +23 -23
  134. package/es/Cascader/panel/option.js +12 -12
  135. package/es/Cascader/panel/search-panel.d.ts +28 -28
  136. package/es/Cascader/panel/search-panel.js +206 -206
  137. package/es/Cascader/style/index.d.ts +6 -6
  138. package/es/Cascader/style/index.js +6 -6
  139. package/es/Cascader/util.d.ts +24 -24
  140. package/es/Cascader/util.js +111 -111
  141. package/es/Checkbox/checkbox.d.ts +14 -14
  142. package/es/Checkbox/checkbox.js +122 -122
  143. package/es/Checkbox/group.d.ts +17 -17
  144. package/es/Checkbox/group.js +109 -109
  145. package/es/Checkbox/icon-check.d.ts +3 -3
  146. package/es/Checkbox/icon-check.js +6 -6
  147. package/es/Checkbox/index.d.ts +4 -4
  148. package/es/Checkbox/index.js +3 -3
  149. package/es/Checkbox/interface.d.ts +102 -102
  150. package/es/Checkbox/interface.js +1 -1
  151. package/es/Checkbox/style/index.d.ts +2 -2
  152. package/es/Checkbox/style/index.js +2 -2
  153. package/es/Checkbox/useCheckbox.d.ts +22 -22
  154. package/es/Checkbox/useCheckbox.js +103 -103
  155. package/es/Collapse/collapse.d.ts +14 -14
  156. package/es/Collapse/collapse.js +120 -120
  157. package/es/Collapse/index.d.ts +3 -3
  158. package/es/Collapse/index.js +2 -2
  159. package/es/Collapse/interface.d.ts +111 -111
  160. package/es/Collapse/interface.js +1 -1
  161. package/es/Collapse/item.d.ts +7 -7
  162. package/es/Collapse/item.js +101 -101
  163. package/es/Collapse/style/index.d.ts +2 -2
  164. package/es/Collapse/style/index.js +2 -2
  165. package/es/ColorPicker/colors.d.ts +1 -1
  166. package/es/ColorPicker/colors.js +24 -24
  167. package/es/ColorPicker/control-bar.d.ts +12 -12
  168. package/es/ColorPicker/control-bar.js +36 -36
  169. package/es/ColorPicker/hooks/useColorPicker.d.ts +30 -30
  170. package/es/ColorPicker/hooks/useColorPicker.js +94 -94
  171. package/es/ColorPicker/hooks/useControlBlock.d.ts +11 -11
  172. package/es/ColorPicker/hooks/useControlBlock.js +71 -71
  173. package/es/ColorPicker/index.d.ts +5 -5
  174. package/es/ColorPicker/index.js +59 -59
  175. package/es/ColorPicker/input-alpha.d.ts +7 -7
  176. package/es/ColorPicker/input-alpha.js +9 -9
  177. package/es/ColorPicker/input-hex.d.ts +11 -11
  178. package/es/ColorPicker/input-hex.js +59 -59
  179. package/es/ColorPicker/input-rgb.d.ts +10 -10
  180. package/es/ColorPicker/input-rgb.js +21 -21
  181. package/es/ColorPicker/interface.d.ts +126 -126
  182. package/es/ColorPicker/interface.js +1 -1
  183. package/es/ColorPicker/palette.d.ts +7 -7
  184. package/es/ColorPicker/palette.js +25 -25
  185. package/es/ColorPicker/panel.d.ts +20 -20
  186. package/es/ColorPicker/panel.js +114 -114
  187. package/es/ColorPicker/style/index.d.ts +4 -4
  188. package/es/ColorPicker/style/index.js +4 -4
  189. package/es/Comment/index.d.ts +7 -7
  190. package/es/Comment/index.js +50 -50
  191. package/es/Comment/interface.d.ts +41 -41
  192. package/es/Comment/interface.js +1 -1
  193. package/es/Comment/style/index.d.ts +2 -2
  194. package/es/Comment/style/index.js +2 -2
  195. package/es/ConfigProvider/context.d.ts +4 -4
  196. package/es/ConfigProvider/context.js +34 -34
  197. package/es/ConfigProvider/index.d.ts +11 -11
  198. package/es/ConfigProvider/index.js +98 -98
  199. package/es/ConfigProvider/interface.d.ts +248 -248
  200. package/es/ConfigProvider/interface.js +1 -1
  201. package/es/ConfigProvider/style/index.d.ts +1 -1
  202. package/es/ConfigProvider/style/index.js +1 -1
  203. package/es/ConfigProvider/util.d.ts +2 -2
  204. package/es/ConfigProvider/util.js +118 -118
  205. package/es/DatePicker/__test__/utils.d.ts +4 -4
  206. package/es/DatePicker/__test__/utils.js +34 -34
  207. package/es/DatePicker/context.d.ts +8 -8
  208. package/es/DatePicker/context.js +2 -2
  209. package/es/DatePicker/hooks/useCellClassName.d.ts +1 -1
  210. package/es/DatePicker/hooks/useCellClassName.js +107 -107
  211. package/es/DatePicker/index.d.ts +4 -4
  212. package/es/DatePicker/index.js +85 -85
  213. package/es/DatePicker/interface.d.ts +518 -518
  214. package/es/DatePicker/interface.js +1 -1
  215. package/es/DatePicker/panels/body.d.ts +30 -30
  216. package/es/DatePicker/panels/body.js +44 -44
  217. package/es/DatePicker/panels/date/index.d.ts +24 -24
  218. package/es/DatePicker/panels/date/index.js +159 -159
  219. package/es/DatePicker/panels/footer.d.ts +1 -1
  220. package/es/DatePicker/panels/footer.js +20 -20
  221. package/es/DatePicker/panels/header.d.ts +20 -20
  222. package/es/DatePicker/panels/header.js +54 -54
  223. package/es/DatePicker/panels/month/index.d.ts +17 -17
  224. package/es/DatePicker/panels/month/index.js +84 -84
  225. package/es/DatePicker/panels/quarter/index.d.ts +17 -17
  226. package/es/DatePicker/panels/quarter/index.js +64 -64
  227. package/es/DatePicker/panels/range/index.d.ts +28 -28
  228. package/es/DatePicker/panels/range/index.js +146 -146
  229. package/es/DatePicker/panels/shortcuts.d.ts +4 -4
  230. package/es/DatePicker/panels/shortcuts.js +25 -25
  231. package/es/DatePicker/panels/week/index.d.ts +16 -16
  232. package/es/DatePicker/panels/week/index.js +37 -37
  233. package/es/DatePicker/panels/week-list.d.ts +8 -8
  234. package/es/DatePicker/panels/week-list.js +12 -12
  235. package/es/DatePicker/panels/year/index.d.ts +16 -16
  236. package/es/DatePicker/panels/year/index.js +64 -64
  237. package/es/DatePicker/picker-range.d.ts +4 -4
  238. package/es/DatePicker/picker-range.js +685 -685
  239. package/es/DatePicker/picker.d.ts +18 -18
  240. package/es/DatePicker/picker.js +403 -403
  241. package/es/DatePicker/style/index.d.ts +7 -7
  242. package/es/DatePicker/style/index.js +7 -7
  243. package/es/DatePicker/util.d.ts +9 -9
  244. package/es/DatePicker/util.js +96 -96
  245. package/es/Descriptions/index.d.ts +7 -7
  246. package/es/Descriptions/index.js +151 -151
  247. package/es/Descriptions/interface.d.ts +79 -79
  248. package/es/Descriptions/interface.js +1 -1
  249. package/es/Descriptions/style/index.d.ts +2 -2
  250. package/es/Descriptions/style/index.js +2 -2
  251. package/es/Divider/index.d.ts +5 -5
  252. package/es/Divider/index.js +45 -45
  253. package/es/Divider/interface.d.ts +21 -21
  254. package/es/Divider/interface.js +1 -1
  255. package/es/Divider/style/index.d.ts +2 -2
  256. package/es/Divider/style/index.js +2 -2
  257. package/es/Drawer/index.d.ts +5 -5
  258. package/es/Drawer/index.js +201 -201
  259. package/es/Drawer/interface.d.ts +185 -185
  260. package/es/Drawer/interface.js +1 -1
  261. package/es/Drawer/style/index.d.ts +3 -3
  262. package/es/Drawer/style/index.js +3 -3
  263. package/es/Dropdown/button.d.ts +5 -5
  264. package/es/Dropdown/button.js +72 -72
  265. package/es/Dropdown/index.d.ts +8 -8
  266. package/es/Dropdown/index.js +170 -170
  267. package/es/Dropdown/interface.d.ts +109 -109
  268. package/es/Dropdown/interface.js +1 -1
  269. package/es/Dropdown/style/index.d.ts +4 -4
  270. package/es/Dropdown/style/index.js +4 -4
  271. package/es/Empty/index.d.ts +5 -5
  272. package/es/Empty/index.js +43 -43
  273. package/es/Empty/interface.d.ts +23 -23
  274. package/es/Empty/interface.js +1 -1
  275. package/es/Empty/style/index.d.ts +2 -2
  276. package/es/Empty/style/index.js +2 -2
  277. package/es/Form/context.d.ts +14 -14
  278. package/es/Form/context.js +37 -37
  279. package/es/Form/control.d.ts +66 -66
  280. package/es/Form/control.js +434 -434
  281. package/es/Form/form-item.d.ts +7 -7
  282. package/es/Form/form-item.js +263 -263
  283. package/es/Form/form-label.d.ts +9 -9
  284. package/es/Form/form-label.js +72 -72
  285. package/es/Form/form-list.d.ts +6 -6
  286. package/es/Form/form-list.js +148 -148
  287. package/es/Form/form-provider.d.ts +4 -4
  288. package/es/Form/form-provider.js +33 -33
  289. package/es/Form/form.d.ts +8 -8
  290. package/es/Form/form.js +159 -159
  291. package/es/Form/hooks/useContext.d.ts +10 -10
  292. package/es/Form/hooks/useContext.js +42 -42
  293. package/es/Form/hooks/useState.d.ts +3 -3
  294. package/es/Form/hooks/useState.js +56 -56
  295. package/es/Form/hooks/useWatch.d.ts +3 -3
  296. package/es/Form/hooks/useWatch.js +63 -63
  297. package/es/Form/index.d.ts +24 -24
  298. package/es/Form/index.js +19 -19
  299. package/es/Form/interface.d.ts +533 -533
  300. package/es/Form/interface.js +15 -15
  301. package/es/Form/promisify.d.ts +2 -2
  302. package/es/Form/promisify.js +50 -50
  303. package/es/Form/store.d.ts +95 -95
  304. package/es/Form/store.js +526 -526
  305. package/es/Form/style/index.d.ts +3 -3
  306. package/es/Form/style/index.js +3 -3
  307. package/es/Form/useForm.d.ts +3 -3
  308. package/es/Form/useForm.js +57 -57
  309. package/es/Form/utils.d.ts +14 -14
  310. package/es/Form/utils.js +198 -198
  311. package/es/Grid/col.d.ts +5 -5
  312. package/es/Grid/col.js +93 -93
  313. package/es/Grid/context.d.ts +20 -20
  314. package/es/Grid/context.js +4 -4
  315. package/es/Grid/grid-item.d.ts +7 -7
  316. package/es/Grid/grid-item.js +91 -91
  317. package/es/Grid/grid.d.ts +5 -5
  318. package/es/Grid/grid.js +134 -134
  319. package/es/Grid/hooks/useResponsiveState.d.ts +2 -2
  320. package/es/Grid/hooks/useResponsiveState.js +63 -63
  321. package/es/Grid/index.d.ts +11 -11
  322. package/es/Grid/index.js +9 -9
  323. package/es/Grid/interface.d.ts +239 -239
  324. package/es/Grid/interface.js +1 -1
  325. package/es/Grid/row.d.ts +5 -5
  326. package/es/Grid/row.js +121 -121
  327. package/es/Grid/style/index.d.ts +2 -2
  328. package/es/Grid/style/index.js +2 -2
  329. package/es/Grid/utils.d.ts +11 -11
  330. package/es/Grid/utils.js +51 -51
  331. package/es/Icon/addFromIconFontCn.d.ts +9 -9
  332. package/es/Icon/addFromIconFontCn.js +57 -57
  333. package/es/Icon/index.d.ts +25 -25
  334. package/es/Icon/index.js +72 -72
  335. package/es/Image/image-footer.d.ts +13 -13
  336. package/es/Image/image-footer.js +50 -50
  337. package/es/Image/image-preview-arrow.d.ts +9 -9
  338. package/es/Image/image-preview-arrow.js +30 -30
  339. package/es/Image/image-preview-group.d.ts +10 -10
  340. package/es/Image/image-preview-group.js +173 -173
  341. package/es/Image/image-preview-toolbar.d.ts +14 -14
  342. package/es/Image/image-preview-toolbar.js +111 -111
  343. package/es/Image/image-preview.d.ts +7 -7
  344. package/es/Image/image-preview.js +451 -451
  345. package/es/Image/image.d.ts +11 -11
  346. package/es/Image/image.js +195 -195
  347. package/es/Image/index.d.ts +3 -3
  348. package/es/Image/index.js +2 -2
  349. package/es/Image/interface.d.ts +274 -274
  350. package/es/Image/interface.js +1 -1
  351. package/es/Image/previewGroupContext.d.ts +25 -25
  352. package/es/Image/previewGroupContext.js +14 -14
  353. package/es/Image/style/index.d.ts +2 -2
  354. package/es/Image/style/index.js +2 -2
  355. package/es/Image/trigger-for-toolbar.d.ts +10 -10
  356. package/es/Image/trigger-for-toolbar.js +8 -8
  357. package/es/Image/utils/getFixTranslate.d.ts +1 -1
  358. package/es/Image/utils/getFixTranslate.js +39 -39
  359. package/es/Image/utils/getScale.d.ts +13 -13
  360. package/es/Image/utils/getScale.js +80 -80
  361. package/es/Image/utils/hooks/useImageStatus.d.ts +11 -11
  362. package/es/Image/utils/hooks/useImageStatus.js +34 -34
  363. package/es/Image/utils/hooks/useShowFooter.d.ts +8 -8
  364. package/es/Image/utils/hooks/useShowFooter.js +7 -7
  365. package/es/Input/autoSizeTextAreaHeight.d.ts +5 -5
  366. package/es/Input/autoSizeTextAreaHeight.js +99 -99
  367. package/es/Input/group.d.ts +7 -7
  368. package/es/Input/group.js +37 -37
  369. package/es/Input/index.d.ts +7 -7
  370. package/es/Input/index.js +2 -2
  371. package/es/Input/input-element.d.ts +4 -4
  372. package/es/Input/input-element.js +227 -227
  373. package/es/Input/input.d.ts +17 -17
  374. package/es/Input/input.js +154 -154
  375. package/es/Input/interface.d.ts +325 -325
  376. package/es/Input/interface.js +1 -1
  377. package/es/Input/password.d.ts +5 -5
  378. package/es/Input/password.js +93 -93
  379. package/es/Input/search.d.ts +5 -5
  380. package/es/Input/search.js +77 -77
  381. package/es/Input/style/index.d.ts +3 -3
  382. package/es/Input/style/index.js +3 -3
  383. package/es/Input/textarea.d.ts +12 -12
  384. package/es/Input/textarea.js +169 -169
  385. package/es/Input/useComposition.d.ts +17 -17
  386. package/es/Input/useComposition.js +72 -72
  387. package/es/InputNumber/Decimal.d.ts +21 -21
  388. package/es/InputNumber/Decimal.js +194 -194
  389. package/es/InputNumber/index.d.ts +6 -6
  390. package/es/InputNumber/index.js +248 -248
  391. package/es/InputNumber/interface.d.ts +141 -141
  392. package/es/InputNumber/interface.js +1 -1
  393. package/es/InputNumber/style/index.d.ts +3 -3
  394. package/es/InputNumber/style/index.js +3 -3
  395. package/es/InputNumber/useSelectionRange.d.ts +4 -4
  396. package/es/InputNumber/useSelectionRange.js +26 -26
  397. package/es/InputNumber/utils.d.ts +28 -28
  398. package/es/InputNumber/utils.js +113 -113
  399. package/es/InputTag/index.d.ts +3 -3
  400. package/es/InputTag/index.js +2 -2
  401. package/es/InputTag/input-tag.d.ts +9 -9
  402. package/es/InputTag/input-tag.js +503 -503
  403. package/es/InputTag/interface.d.ts +215 -215
  404. package/es/InputTag/interface.js +1 -1
  405. package/es/InputTag/style/index.d.ts +3 -3
  406. package/es/InputTag/style/index.js +3 -3
  407. package/es/Layout/content.d.ts +4 -4
  408. package/es/Layout/content.js +35 -35
  409. package/es/Layout/footer.d.ts +4 -4
  410. package/es/Layout/footer.js +35 -35
  411. package/es/Layout/header.d.ts +4 -4
  412. package/es/Layout/header.js +35 -35
  413. package/es/Layout/index.d.ts +17 -17
  414. package/es/Layout/index.js +87 -87
  415. package/es/Layout/interface.d.ts +121 -121
  416. package/es/Layout/interface.js +1 -1
  417. package/es/Layout/sider.d.ts +10 -10
  418. package/es/Layout/sider.js +143 -143
  419. package/es/Layout/style/index.d.ts +4 -4
  420. package/es/Layout/style/index.js +4 -4
  421. package/es/Link/index.d.ts +5 -5
  422. package/es/Link/index.js +63 -63
  423. package/es/Link/interface.d.ts +30 -30
  424. package/es/Link/interface.js +1 -1
  425. package/es/Link/style/index.d.ts +2 -2
  426. package/es/Link/style/index.js +2 -2
  427. package/es/List/index.d.ts +12 -12
  428. package/es/List/index.js +232 -232
  429. package/es/List/interface.d.ts +192 -192
  430. package/es/List/interface.js +1 -1
  431. package/es/List/item.d.ts +7 -7
  432. package/es/List/item.js +62 -62
  433. package/es/List/meta.d.ts +4 -4
  434. package/es/List/meta.js +41 -41
  435. package/es/List/style/index.d.ts +6 -6
  436. package/es/List/style/index.js +6 -6
  437. package/es/Mentions/index.d.ts +5 -5
  438. package/es/Mentions/index.js +152 -152
  439. package/es/Mentions/interface.d.ts +92 -92
  440. package/es/Mentions/interface.js +1 -1
  441. package/es/Mentions/style/index.d.ts +2 -2
  442. package/es/Mentions/style/index.js +2 -2
  443. package/es/Mentions/utils.d.ts +9 -9
  444. package/es/Mentions/utils.js +21 -21
  445. package/es/Menu/context.d.ts +16 -16
  446. package/es/Menu/context.js +3 -3
  447. package/es/Menu/indent.d.ts +5 -5
  448. package/es/Menu/indent.js +35 -35
  449. package/es/Menu/index.d.ts +13 -13
  450. package/es/Menu/index.js +202 -202
  451. package/es/Menu/interface.d.ts +233 -233
  452. package/es/Menu/interface.js +1 -1
  453. package/es/Menu/item-group.d.ts +6 -6
  454. package/es/Menu/item-group.js +21 -21
  455. package/es/Menu/item.d.ts +6 -6
  456. package/es/Menu/item.js +84 -84
  457. package/es/Menu/overflow-wrap.d.ts +9 -9
  458. package/es/Menu/overflow-wrap.js +131 -131
  459. package/es/Menu/style/index.d.ts +4 -4
  460. package/es/Menu/style/index.js +4 -4
  461. package/es/Menu/sub-menu/index.d.ts +6 -6
  462. package/es/Menu/sub-menu/index.js +34 -34
  463. package/es/Menu/sub-menu/inline.d.ts +5 -5
  464. package/es/Menu/sub-menu/inline.js +154 -154
  465. package/es/Menu/sub-menu/pop.d.ts +5 -5
  466. package/es/Menu/sub-menu/pop.js +99 -99
  467. package/es/Menu/util.d.ts +16 -16
  468. package/es/Menu/util.js +134 -134
  469. package/es/Message/index.d.ts +30 -30
  470. package/es/Message/index.js +189 -189
  471. package/es/Message/interface.d.ts +83 -83
  472. package/es/Message/interface.js +1 -1
  473. package/es/Message/style/index.d.ts +2 -2
  474. package/es/Message/style/index.js +2 -2
  475. package/es/Message/useMessage.d.ts +5 -5
  476. package/es/Message/useMessage.js +71 -71
  477. package/es/Modal/config.d.ts +10 -10
  478. package/es/Modal/config.js +28 -28
  479. package/es/Modal/confirm.d.ts +14 -14
  480. package/es/Modal/confirm.js +142 -142
  481. package/es/Modal/index.d.ts +2 -2
  482. package/es/Modal/index.js +2 -2
  483. package/es/Modal/interface.d.ts +190 -190
  484. package/es/Modal/interface.js +1 -1
  485. package/es/Modal/modal.d.ts +18 -18
  486. package/es/Modal/modal.js +324 -324
  487. package/es/Modal/style/index.d.ts +3 -3
  488. package/es/Modal/style/index.js +3 -3
  489. package/es/Modal/useModal/hookModal.d.ts +8 -8
  490. package/es/Modal/useModal/hookModal.js +62 -62
  491. package/es/Modal/useModal/index.d.ts +4 -4
  492. package/es/Modal/useModal/index.js +63 -63
  493. package/es/Notification/index.d.ts +26 -26
  494. package/es/Notification/index.js +204 -204
  495. package/es/Notification/interface.d.ts +77 -77
  496. package/es/Notification/interface.js +1 -1
  497. package/es/Notification/style/index.d.ts +2 -2
  498. package/es/Notification/style/index.js +2 -2
  499. package/es/Notification/useNotification.d.ts +5 -5
  500. package/es/Notification/useNotification.js +68 -68
  501. package/es/PageHeader/index.d.ts +8 -8
  502. package/es/PageHeader/index.js +90 -90
  503. package/es/PageHeader/interface.d.ts +44 -44
  504. package/es/PageHeader/interface.js +1 -1
  505. package/es/PageHeader/style/index.d.ts +3 -3
  506. package/es/PageHeader/style/index.js +3 -3
  507. package/es/Pagination/index.d.ts +3 -3
  508. package/es/Pagination/index.js +2 -2
  509. package/es/Pagination/interface.d.ts +133 -133
  510. package/es/Pagination/interface.js +1 -1
  511. package/es/Pagination/page-item.d.ts +62 -62
  512. package/es/Pagination/page-item.js +143 -143
  513. package/es/Pagination/page-jumper.d.ts +13 -13
  514. package/es/Pagination/page-jumper.js +84 -84
  515. package/es/Pagination/page-options.d.ts +13 -13
  516. package/es/Pagination/page-options.js +29 -29
  517. package/es/Pagination/pagination.d.ts +11 -11
  518. package/es/Pagination/pagination.js +252 -252
  519. package/es/Pagination/style/index.d.ts +4 -4
  520. package/es/Pagination/style/index.js +4 -4
  521. package/es/Popconfirm/index.d.ts +7 -7
  522. package/es/Popconfirm/index.js +131 -131
  523. package/es/Popconfirm/interface.d.ts +128 -128
  524. package/es/Popconfirm/interface.js +1 -1
  525. package/es/Popconfirm/style/index.d.ts +5 -5
  526. package/es/Popconfirm/style/index.js +5 -5
  527. package/es/Popover/index.d.ts +7 -7
  528. package/es/Popover/index.js +49 -49
  529. package/es/Popover/interface.d.ts +20 -20
  530. package/es/Popover/interface.js +1 -1
  531. package/es/Popover/style/index.d.ts +3 -3
  532. package/es/Popover/style/index.js +3 -3
  533. package/es/Portal/Portal.d.ts +15 -15
  534. package/es/Portal/Portal.js +57 -57
  535. package/es/Portal/index.d.ts +19 -19
  536. package/es/Portal/index.js +48 -48
  537. package/es/Progress/circle-progress.d.ts +8 -8
  538. package/es/Progress/circle-progress.js +68 -68
  539. package/es/Progress/index.d.ts +5 -5
  540. package/es/Progress/index.js +71 -71
  541. package/es/Progress/interface.d.ts +87 -87
  542. package/es/Progress/interface.js +1 -1
  543. package/es/Progress/line-progess.d.ts +2 -2
  544. package/es/Progress/line-progess.js +62 -62
  545. package/es/Progress/steps-progress.d.ts +2 -2
  546. package/es/Progress/steps-progress.js +62 -62
  547. package/es/Progress/style/index.d.ts +3 -3
  548. package/es/Progress/style/index.js +3 -3
  549. package/es/Radio/group.d.ts +10 -10
  550. package/es/Radio/group.js +97 -97
  551. package/es/Radio/index.d.ts +5 -5
  552. package/es/Radio/index.js +3 -3
  553. package/es/Radio/interface.d.ts +103 -103
  554. package/es/Radio/interface.js +1 -1
  555. package/es/Radio/radio.d.ts +11 -11
  556. package/es/Radio/radio.js +107 -107
  557. package/es/Radio/style/index.d.ts +2 -2
  558. package/es/Radio/style/index.js +2 -2
  559. package/es/Rate/index.d.ts +5 -5
  560. package/es/Rate/index.js +161 -161
  561. package/es/Rate/interface.d.ts +70 -70
  562. package/es/Rate/interface.js +1 -1
  563. package/es/Rate/style/index.d.ts +3 -3
  564. package/es/Rate/style/index.js +3 -3
  565. package/es/ResizeBox/index.d.ts +13 -13
  566. package/es/ResizeBox/index.js +225 -225
  567. package/es/ResizeBox/interface.d.ts +264 -264
  568. package/es/ResizeBox/interface.js +1 -1
  569. package/es/ResizeBox/resize-trigger.d.ts +30 -30
  570. package/es/ResizeBox/resize-trigger.js +91 -91
  571. package/es/ResizeBox/split-group.d.ts +4 -4
  572. package/es/ResizeBox/split-group.js +321 -321
  573. package/es/ResizeBox/split.d.ts +5 -5
  574. package/es/ResizeBox/split.js +150 -150
  575. package/es/ResizeBox/style/index.d.ts +2 -2
  576. package/es/ResizeBox/style/index.js +2 -2
  577. package/es/Result/403.d.ts +1 -1
  578. package/es/Result/403.js +160 -160
  579. package/es/Result/404.d.ts +1 -1
  580. package/es/Result/404.js +126 -126
  581. package/es/Result/500.d.ts +1 -1
  582. package/es/Result/500.js +164 -164
  583. package/es/Result/index.d.ts +7 -7
  584. package/es/Result/index.js +69 -69
  585. package/es/Result/interface.d.ts +35 -35
  586. package/es/Result/interface.js +1 -1
  587. package/es/Result/style/index.d.ts +2 -2
  588. package/es/Result/style/index.js +2 -2
  589. package/es/Select/index.d.ts +3 -3
  590. package/es/Select/index.js +2 -2
  591. package/es/Select/interface.d.ts +315 -315
  592. package/es/Select/interface.js +1 -1
  593. package/es/Select/opt-group.d.ts +6 -6
  594. package/es/Select/opt-group.js +32 -32
  595. package/es/Select/option.d.ts +6 -6
  596. package/es/Select/option.js +73 -73
  597. package/es/Select/select.d.ts +10 -10
  598. package/es/Select/select.js +672 -672
  599. package/es/Select/style/index.d.ts +6 -6
  600. package/es/Select/style/index.js +6 -6
  601. package/es/Select/utils.d.ts +26 -26
  602. package/es/Select/utils.js +189 -189
  603. package/es/Skeleton/image.d.ts +2 -2
  604. package/es/Skeleton/image.js +12 -12
  605. package/es/Skeleton/index.d.ts +7 -7
  606. package/es/Skeleton/index.js +54 -54
  607. package/es/Skeleton/interface.d.ts +50 -50
  608. package/es/Skeleton/interface.js +1 -1
  609. package/es/Skeleton/style/index.d.ts +2 -2
  610. package/es/Skeleton/style/index.js +2 -2
  611. package/es/Skeleton/text.d.ts +2 -2
  612. package/es/Skeleton/text.js +21 -21
  613. package/es/Slider/button.d.ts +21 -21
  614. package/es/Slider/button.js +178 -178
  615. package/es/Slider/dots.d.ts +17 -17
  616. package/es/Slider/dots.js +33 -33
  617. package/es/Slider/hooks/useInterval.d.ts +24 -24
  618. package/es/Slider/hooks/useInterval.js +125 -125
  619. package/es/Slider/hooks/useLegalValue.d.ts +15 -15
  620. package/es/Slider/hooks/useLegalValue.js +107 -107
  621. package/es/Slider/index.d.ts +5 -5
  622. package/es/Slider/index.js +351 -351
  623. package/es/Slider/input.d.ts +15 -15
  624. package/es/Slider/input.js +81 -81
  625. package/es/Slider/interface.d.ts +122 -122
  626. package/es/Slider/interface.js +1 -1
  627. package/es/Slider/marks.d.ts +16 -16
  628. package/es/Slider/marks.js +26 -26
  629. package/es/Slider/style/index.d.ts +5 -5
  630. package/es/Slider/style/index.js +5 -5
  631. package/es/Slider/ticks.d.ts +13 -13
  632. package/es/Slider/ticks.js +29 -29
  633. package/es/Slider/utils.d.ts +11 -11
  634. package/es/Slider/utils.js +86 -86
  635. package/es/Space/index.d.ts +5 -5
  636. package/es/Space/index.js +115 -115
  637. package/es/Space/interface.d.ts +38 -38
  638. package/es/Space/interface.js +1 -1
  639. package/es/Space/style/index.d.ts +2 -2
  640. package/es/Space/style/index.js +2 -2
  641. package/es/Space/toArray.d.ts +1 -1
  642. package/es/Space/toArray.js +14 -14
  643. package/es/Spin/dot-loading.d.ts +5 -5
  644. package/es/Spin/dot-loading.js +43 -43
  645. package/es/Spin/index.d.ts +5 -5
  646. package/es/Spin/index.js +86 -86
  647. package/es/Spin/interface.d.ts +50 -50
  648. package/es/Spin/interface.js +1 -1
  649. package/es/Spin/style/index.d.ts +2 -2
  650. package/es/Spin/style/index.js +2 -2
  651. package/es/Statistic/countdown.d.ts +5 -5
  652. package/es/Statistic/countdown.js +68 -68
  653. package/es/Statistic/index.d.ts +8 -8
  654. package/es/Statistic/index.js +150 -150
  655. package/es/Statistic/interface.d.ts +139 -139
  656. package/es/Statistic/interface.js +1 -1
  657. package/es/Statistic/style/index.d.ts +3 -3
  658. package/es/Statistic/style/index.js +3 -3
  659. package/es/Statistic/util.d.ts +1 -1
  660. package/es/Statistic/util.js +42 -42
  661. package/es/Steps/index.d.ts +8 -8
  662. package/es/Steps/index.js +69 -69
  663. package/es/Steps/interface.d.ts +124 -124
  664. package/es/Steps/interface.js +1 -1
  665. package/es/Steps/step.d.ts +5 -5
  666. package/es/Steps/step.js +72 -72
  667. package/es/Steps/style/index.d.ts +2 -2
  668. package/es/Steps/style/index.js +2 -2
  669. package/es/Switch/index.d.ts +10 -10
  670. package/es/Switch/index.js +112 -112
  671. package/es/Switch/interface.d.ts +65 -65
  672. package/es/Switch/interface.js +1 -1
  673. package/es/Switch/style/index.d.ts +2 -2
  674. package/es/Switch/style/index.js +2 -2
  675. package/es/Table/__test__/common/columns.d.ts +11 -11
  676. package/es/Table/__test__/common/columns.js +193 -193
  677. package/es/Table/__test__/common/data.d.ts +29 -29
  678. package/es/Table/__test__/common/data.js +139 -139
  679. package/es/Table/colgroup.d.ts +13 -13
  680. package/es/Table/colgroup.js +46 -46
  681. package/es/Table/constant.d.ts +2 -2
  682. package/es/Table/constant.js +2 -2
  683. package/es/Table/hooks/useColumns.d.ts +3 -3
  684. package/es/Table/hooks/useColumns.js +191 -191
  685. package/es/Table/hooks/useComponent.d.ts +30 -30
  686. package/es/Table/hooks/useComponent.js +64 -64
  687. package/es/Table/hooks/useExpand.d.ts +3 -3
  688. package/es/Table/hooks/useExpand.js +66 -66
  689. package/es/Table/hooks/useRowSelection.d.ts +12 -12
  690. package/es/Table/hooks/useRowSelection.js +158 -158
  691. package/es/Table/hooks/useSorter.d.ts +7 -7
  692. package/es/Table/hooks/useSorter.js +122 -122
  693. package/es/Table/hooks/useStickyClassNames.d.ts +3 -3
  694. package/es/Table/hooks/useStickyClassNames.js +38 -38
  695. package/es/Table/hooks/useStickyOffsets.d.ts +3 -3
  696. package/es/Table/hooks/useStickyOffsets.js +66 -66
  697. package/es/Table/index.d.ts +8 -8
  698. package/es/Table/index.js +5 -5
  699. package/es/Table/interface.d.ts +704 -704
  700. package/es/Table/interface.js +1 -1
  701. package/es/Table/style/index.d.ts +11 -11
  702. package/es/Table/style/index.js +11 -11
  703. package/es/Table/summary/cell.d.ts +12 -12
  704. package/es/Table/summary/cell.js +30 -30
  705. package/es/Table/summary/context.d.ts +10 -10
  706. package/es/Table/summary/context.js +2 -2
  707. package/es/Table/summary/index.d.ts +8 -8
  708. package/es/Table/summary/index.js +8 -8
  709. package/es/Table/summary/row.d.ts +7 -7
  710. package/es/Table/summary/row.js +56 -56
  711. package/es/Table/table.d.ts +10 -10
  712. package/es/Table/table.js +701 -701
  713. package/es/Table/tbody/index.d.ts +3 -3
  714. package/es/Table/tbody/index.js +119 -119
  715. package/es/Table/tbody/td.d.ts +25 -25
  716. package/es/Table/tbody/td.js +117 -117
  717. package/es/Table/tbody/tr.d.ts +16 -16
  718. package/es/Table/tbody/tr.js +140 -140
  719. package/es/Table/tfoot/index.d.ts +3 -3
  720. package/es/Table/tfoot/index.js +9 -9
  721. package/es/Table/thead/column.d.ts +3 -3
  722. package/es/Table/thead/column.js +220 -220
  723. package/es/Table/thead/index.d.ts +3 -3
  724. package/es/Table/thead/index.js +91 -91
  725. package/es/Table/utils.d.ts +17 -17
  726. package/es/Table/utils.js +211 -211
  727. package/es/Tabs/hook/useDomSize.d.ts +11 -11
  728. package/es/Tabs/hook/useDomSize.js +34 -34
  729. package/es/Tabs/hook/useHeaderScroll.d.ts +9 -9
  730. package/es/Tabs/hook/useHeaderScroll.js +86 -86
  731. package/es/Tabs/index.d.ts +4 -4
  732. package/es/Tabs/index.js +2 -2
  733. package/es/Tabs/interface.d.ts +213 -213
  734. package/es/Tabs/interface.js +1 -1
  735. package/es/Tabs/style/index.d.ts +3 -3
  736. package/es/Tabs/style/index.js +3 -3
  737. package/es/Tabs/tab-content.d.ts +9 -9
  738. package/es/Tabs/tab-content.js +34 -34
  739. package/es/Tabs/tab-header/dropdown-icon.d.ts +1 -1
  740. package/es/Tabs/tab-header/dropdown-icon.js +54 -54
  741. package/es/Tabs/tab-header/index.d.ts +4 -4
  742. package/es/Tabs/tab-header/index.js +305 -305
  743. package/es/Tabs/tab-header/tab-ink.d.ts +11 -11
  744. package/es/Tabs/tab-header/tab-ink.js +58 -58
  745. package/es/Tabs/tab-header/tab-nav-icon.d.ts +17 -17
  746. package/es/Tabs/tab-header/tab-nav-icon.js +79 -79
  747. package/es/Tabs/tab-header/tab-title.d.ts +17 -17
  748. package/es/Tabs/tab-header/tab-title.js +56 -56
  749. package/es/Tabs/tab-pane.d.ts +8 -8
  750. package/es/Tabs/tab-pane.js +38 -38
  751. package/es/Tabs/tabs.d.ts +18 -18
  752. package/es/Tabs/tabs.js +153 -153
  753. package/es/Tabs/utils.d.ts +12 -12
  754. package/es/Tabs/utils.js +37 -37
  755. package/es/Tag/index.d.ts +5 -5
  756. package/es/Tag/index.js +135 -135
  757. package/es/Tag/interface.d.ts +72 -72
  758. package/es/Tag/interface.js +1 -1
  759. package/es/Tag/style/index.d.ts +2 -2
  760. package/es/Tag/style/index.js +2 -2
  761. package/es/TimePicker/context.d.ts +7 -7
  762. package/es/TimePicker/context.js +2 -2
  763. package/es/TimePicker/index.d.ts +4 -4
  764. package/es/TimePicker/index.js +49 -49
  765. package/es/TimePicker/interface.d.ts +244 -244
  766. package/es/TimePicker/interface.js +1 -1
  767. package/es/TimePicker/picker.d.ts +15 -15
  768. package/es/TimePicker/picker.js +223 -223
  769. package/es/TimePicker/range-picker.d.ts +12 -12
  770. package/es/TimePicker/range-picker.js +56 -56
  771. package/es/TimePicker/style/index.d.ts +5 -5
  772. package/es/TimePicker/style/index.js +5 -5
  773. package/es/TimePicker/time-column.d.ts +17 -17
  774. package/es/TimePicker/time-column.js +55 -55
  775. package/es/TimePicker/time-picker.d.ts +24 -24
  776. package/es/TimePicker/time-picker.js +236 -236
  777. package/es/TimePicker/util.d.ts +7 -7
  778. package/es/TimePicker/util.js +55 -55
  779. package/es/Timeline/index.d.ts +3 -3
  780. package/es/Timeline/index.js +2 -2
  781. package/es/Timeline/interface.d.ts +95 -95
  782. package/es/Timeline/interface.js +1 -1
  783. package/es/Timeline/item.d.ts +7 -7
  784. package/es/Timeline/item.js +67 -67
  785. package/es/Timeline/style/index.d.ts +2 -2
  786. package/es/Timeline/style/index.js +2 -2
  787. package/es/Timeline/timeline.d.ts +10 -10
  788. package/es/Timeline/timeline.js +97 -97
  789. package/es/Tooltip/index.d.ts +10 -10
  790. package/es/Tooltip/index.js +90 -90
  791. package/es/Tooltip/interface.d.ts +92 -92
  792. package/es/Tooltip/interface.js +1 -1
  793. package/es/Tooltip/style/index.d.ts +3 -3
  794. package/es/Tooltip/style/index.js +3 -3
  795. package/es/Transfer/index.d.ts +5 -5
  796. package/es/Transfer/index.js +223 -223
  797. package/es/Transfer/interface.d.ts +225 -225
  798. package/es/Transfer/interface.js +1 -1
  799. package/es/Transfer/item.d.ts +3 -3
  800. package/es/Transfer/item.js +117 -117
  801. package/es/Transfer/list.d.ts +5 -5
  802. package/es/Transfer/list.js +152 -152
  803. package/es/Transfer/style/index.d.ts +6 -6
  804. package/es/Transfer/style/index.js +6 -6
  805. package/es/Tree/animation.d.ts +7 -7
  806. package/es/Tree/animation.js +119 -119
  807. package/es/Tree/context.d.ts +27 -27
  808. package/es/Tree/context.js +2 -2
  809. package/es/Tree/index.d.ts +73 -73
  810. package/es/Tree/index.js +750 -750
  811. package/es/Tree/interface.d.ts +344 -344
  812. package/es/Tree/interface.js +1 -1
  813. package/es/Tree/node-list.d.ts +3 -3
  814. package/es/Tree/node-list.js +125 -125
  815. package/es/Tree/node.d.ts +12 -12
  816. package/es/Tree/node.js +268 -268
  817. package/es/Tree/style/index.d.ts +3 -3
  818. package/es/Tree/style/index.js +3 -3
  819. package/es/Tree/util.d.ts +13 -13
  820. package/es/Tree/util.js +169 -169
  821. package/es/TreeSelect/hook/useKeyCache.d.ts +6 -6
  822. package/es/TreeSelect/hook/useKeyCache.js +83 -83
  823. package/es/TreeSelect/hook/useStateValue.d.ts +19 -19
  824. package/es/TreeSelect/hook/useStateValue.js +139 -139
  825. package/es/TreeSelect/hook/useTreeData.d.ts +3 -3
  826. package/es/TreeSelect/hook/useTreeData.js +33 -33
  827. package/es/TreeSelect/index.d.ts +4 -4
  828. package/es/TreeSelect/index.js +2 -2
  829. package/es/TreeSelect/interface.d.ts +211 -211
  830. package/es/TreeSelect/interface.js +10 -10
  831. package/es/TreeSelect/style/index.d.ts +5 -5
  832. package/es/TreeSelect/style/index.js +5 -5
  833. package/es/TreeSelect/tree-list.d.ts +12 -12
  834. package/es/TreeSelect/tree-list.js +144 -144
  835. package/es/TreeSelect/tree-select.d.ts +12 -12
  836. package/es/TreeSelect/tree-select.js +343 -343
  837. package/es/TreeSelect/utils.d.ts +1 -1
  838. package/es/TreeSelect/utils.js +13 -13
  839. package/es/Trigger/getPopupStyle.d.ts +20 -20
  840. package/es/Trigger/getPopupStyle.js +394 -394
  841. package/es/Trigger/index.d.ts +123 -123
  842. package/es/Trigger/index.js +917 -917
  843. package/es/Trigger/interface.d.ts +246 -246
  844. package/es/Trigger/interface.js +1 -1
  845. package/es/Trigger/portal.d.ts +8 -8
  846. package/es/Trigger/portal.js +24 -24
  847. package/es/Trigger/style/index.d.ts +2 -2
  848. package/es/Trigger/style/index.js +2 -2
  849. package/es/Typography/base.d.ts +6 -6
  850. package/es/Typography/base.js +217 -217
  851. package/es/Typography/edit-content.d.ts +4 -4
  852. package/es/Typography/edit-content.js +30 -30
  853. package/es/Typography/ellipsis.d.ts +6 -6
  854. package/es/Typography/ellipsis.js +204 -204
  855. package/es/Typography/index.d.ts +13 -13
  856. package/es/Typography/index.js +11 -11
  857. package/es/Typography/interface.d.ts +262 -262
  858. package/es/Typography/interface.js +1 -1
  859. package/es/Typography/operations.d.ts +3 -3
  860. package/es/Typography/operations.js +88 -88
  861. package/es/Typography/paragraph.d.ts +4 -4
  862. package/es/Typography/paragraph.js +25 -25
  863. package/es/Typography/style/index.d.ts +5 -5
  864. package/es/Typography/style/index.js +5 -5
  865. package/es/Typography/text.d.ts +3 -3
  866. package/es/Typography/text.js +19 -19
  867. package/es/Typography/title.d.ts +4 -4
  868. package/es/Typography/title.js +31 -31
  869. package/es/Typography/typography.d.ts +4 -4
  870. package/es/Typography/typography.js +13 -13
  871. package/es/Typography/useCssEllipsis.d.ts +6 -6
  872. package/es/Typography/useCssEllipsis.js +69 -69
  873. package/es/Typography/useEllipsis.d.ts +21 -21
  874. package/es/Typography/useEllipsis.js +217 -217
  875. package/es/Upload/index.d.ts +3 -3
  876. package/es/Upload/index.js +2 -2
  877. package/es/Upload/interface.d.ts +337 -337
  878. package/es/Upload/interface.js +6 -6
  879. package/es/Upload/list/index.d.ts +6 -6
  880. package/es/Upload/list/index.js +125 -125
  881. package/es/Upload/list/pictureItem.d.ts +9 -9
  882. package/es/Upload/list/pictureItem.js +57 -57
  883. package/es/Upload/list/textItem.d.ts +9 -9
  884. package/es/Upload/list/textItem.js +103 -103
  885. package/es/Upload/list/uploadProgress.d.ts +14 -14
  886. package/es/Upload/list/uploadProgress.js +60 -60
  887. package/es/Upload/request.d.ts +3 -3
  888. package/es/Upload/request.js +64 -64
  889. package/es/Upload/style/index.d.ts +6 -6
  890. package/es/Upload/style/index.js +6 -6
  891. package/es/Upload/trigger-node.d.ts +6 -6
  892. package/es/Upload/trigger-node.js +132 -132
  893. package/es/Upload/upload.d.ts +12 -12
  894. package/es/Upload/upload.js +225 -225
  895. package/es/Upload/uploader.d.ts +28 -28
  896. package/es/Upload/uploader.js +256 -256
  897. package/es/Upload/util.d.ts +4 -4
  898. package/es/Upload/util.js +114 -114
  899. package/es/VerificationCode/index.d.ts +4 -4
  900. package/es/VerificationCode/index.js +2 -2
  901. package/es/VerificationCode/interface.d.ts +80 -80
  902. package/es/VerificationCode/interface.js +1 -1
  903. package/es/VerificationCode/style/index.d.ts +3 -3
  904. package/es/VerificationCode/style/index.js +3 -3
  905. package/es/VerificationCode/verification-code.d.ts +5 -5
  906. package/es/VerificationCode/verification-code.js +79 -79
  907. package/es/Watermark/index.d.ts +4 -4
  908. package/es/Watermark/index.js +2 -2
  909. package/es/Watermark/interface.d.ts +70 -70
  910. package/es/Watermark/interface.js +1 -1
  911. package/es/Watermark/style/index.d.ts +1 -1
  912. package/es/Watermark/style/index.js +1 -1
  913. package/es/Watermark/watermark.d.ts +5 -5
  914. package/es/Watermark/watermark.js +67 -67
  915. package/es/_class/Draggable/index.d.ts +2 -2
  916. package/es/_class/Draggable/index.js +35 -35
  917. package/es/_class/Draggable/interface.d.ts +24 -24
  918. package/es/_class/Draggable/interface.js +1 -1
  919. package/es/_class/Draggable/item.d.ts +3 -3
  920. package/es/_class/Draggable/item.js +88 -88
  921. package/es/_class/OverflowEllipsis/OverflowItem.d.ts +10 -10
  922. package/es/_class/OverflowEllipsis/OverflowItem.js +23 -23
  923. package/es/_class/OverflowEllipsis/index.d.ts +11 -11
  924. package/es/_class/OverflowEllipsis/index.js +109 -109
  925. package/es/_class/VirtualList/Filler.d.ts +15 -15
  926. package/es/_class/VirtualList/Filler.js +30 -30
  927. package/es/_class/VirtualList/index.d.ts +39 -39
  928. package/es/_class/VirtualList/index.js +485 -485
  929. package/es/_class/VirtualList/utils/algorithmUtil.d.ts +23 -23
  930. package/es/_class/VirtualList/utils/algorithmUtil.js +70 -70
  931. package/es/_class/VirtualList/utils/itemUtil.d.ts +75 -75
  932. package/es/_class/VirtualList/utils/itemUtil.js +132 -132
  933. package/es/_class/icon-hover.d.ts +10 -10
  934. package/es/_class/icon-hover.js +36 -36
  935. package/es/_class/notice.d.ts +50 -50
  936. package/es/_class/notice.js +170 -170
  937. package/es/_class/notification.d.ts +15 -15
  938. package/es/_class/notification.js +93 -93
  939. package/es/_class/picker/input-range.d.ts +35 -35
  940. package/es/_class/picker/input-range.js +173 -173
  941. package/es/_class/picker/input.d.ts +31 -31
  942. package/es/_class/picker/input.js +114 -114
  943. package/es/_class/select-view.d.ts +158 -158
  944. package/es/_class/select-view.js +368 -368
  945. package/es/_hooks/useVerificationCode/index.d.ts +2 -2
  946. package/es/_hooks/useVerificationCode/index.js +119 -119
  947. package/es/_hooks/useVerificationCode/interface.d.ts +63 -63
  948. package/es/_hooks/useVerificationCode/interface.js +1 -1
  949. package/es/_hooks/useWatermark/index.d.ts +2 -2
  950. package/es/_hooks/useWatermark/index.js +307 -307
  951. package/es/_hooks/useWatermark/interface.d.ts +81 -81
  952. package/es/_hooks/useWatermark/interface.js +1 -1
  953. package/es/_hooks/useWatermark/utils.d.ts +1 -1
  954. package/es/_hooks/useWatermark/utils.js +15 -15
  955. package/es/_util/CSSTransition.d.ts +2 -2
  956. package/es/_util/CSSTransition.js +85 -85
  957. package/es/_util/classNames.d.ts +5 -5
  958. package/es/_util/classNames.js +61 -61
  959. package/es/_util/clipboard.d.ts +1 -1
  960. package/es/_util/clipboard.js +83 -83
  961. package/es/_util/color.d.ts +27 -27
  962. package/es/_util/color.js +190 -190
  963. package/es/_util/constant.d.ts +3 -3
  964. package/es/_util/constant.js +17 -17
  965. package/es/_util/contextHolder.d.ts +9 -9
  966. package/es/_util/contextHolder.js +47 -47
  967. package/es/_util/dayjs.d.ts +21 -21
  968. package/es/_util/dayjs.js +294 -294
  969. package/es/_util/dom.d.ts +12 -12
  970. package/es/_util/dom.js +64 -64
  971. package/es/_util/fillNBSP.d.ts +1 -1
  972. package/es/_util/fillNBSP.js +6 -6
  973. package/es/_util/getHighlightText.d.ts +5 -5
  974. package/es/_util/getHighlightText.js +32 -32
  975. package/es/_util/getHotkeyHandler.d.ts +16 -16
  976. package/es/_util/getHotkeyHandler.js +35 -35
  977. package/es/_util/getStringLength.d.ts +1 -1
  978. package/es/_util/getStringLength.js +13 -13
  979. package/es/_util/hooks/useComputedState.d.ts +4 -4
  980. package/es/_util/hooks/useComputedState.js +25 -25
  981. package/es/_util/hooks/useCreate.d.ts +1 -1
  982. package/es/_util/hooks/useCreate.js +8 -8
  983. package/es/_util/hooks/useForceUpdate.d.ts +2 -2
  984. package/es/_util/hooks/useForceUpdate.js +21 -21
  985. package/es/_util/hooks/useId.d.ts +6 -6
  986. package/es/_util/hooks/useId.js +33 -33
  987. package/es/_util/hooks/useInView.d.ts +11 -11
  988. package/es/_util/hooks/useInView.js +60 -60
  989. package/es/_util/hooks/useIntersectionObserver.d.ts +7 -7
  990. package/es/_util/hooks/useIntersectionObserver.js +29 -29
  991. package/es/_util/hooks/useInterval.d.ts +1 -1
  992. package/es/_util/hooks/useInterval.js +29 -29
  993. package/es/_util/hooks/useIsFirstRender.d.ts +1 -1
  994. package/es/_util/hooks/useIsFirstRender.js +8 -8
  995. package/es/_util/hooks/useIsomorphicLayoutEffect.d.ts +3 -3
  996. package/es/_util/hooks/useIsomorphicLayoutEffect.js +6 -6
  997. package/es/_util/hooks/useKeyboardEvent.d.ts +14 -14
  998. package/es/_util/hooks/useKeyboardEvent.js +29 -29
  999. package/es/_util/hooks/useMergeProps.d.ts +4 -4
  1000. package/es/_util/hooks/useMergeProps.js +31 -31
  1001. package/es/_util/hooks/useMergeValue.d.ts +5 -5
  1002. package/es/_util/hooks/useMergeValue.js +44 -44
  1003. package/es/_util/hooks/useOverflowHidden.d.ts +5 -5
  1004. package/es/_util/hooks/useOverflowHidden.js +43 -43
  1005. package/es/_util/hooks/useOverrideRef.d.ts +5 -5
  1006. package/es/_util/hooks/useOverrideRef.js +18 -18
  1007. package/es/_util/hooks/usePersistCallback.d.ts +1 -1
  1008. package/es/_util/hooks/usePersistCallback.js +40 -40
  1009. package/es/_util/hooks/usePrevious.d.ts +2 -2
  1010. package/es/_util/hooks/usePrevious.js +8 -8
  1011. package/es/_util/hooks/useRefs.d.ts +1 -1
  1012. package/es/_util/hooks/useRefs.js +15 -15
  1013. package/es/_util/hooks/useResizeObserver.d.ts +6 -6
  1014. package/es/_util/hooks/useResizeObserver.js +25 -25
  1015. package/es/_util/hooks/useStateCallback.d.ts +5 -5
  1016. package/es/_util/hooks/useStateCallback.js +30 -30
  1017. package/es/_util/hooks/useStateWithPromise.d.ts +2 -2
  1018. package/es/_util/hooks/useStateWithPromise.js +47 -47
  1019. package/es/_util/hooks/useUpdate.d.ts +2 -2
  1020. package/es/_util/hooks/useUpdate.js +13 -13
  1021. package/es/_util/hooks/useWatch.d.ts +2 -2
  1022. package/es/_util/hooks/useWatch.js +10 -10
  1023. package/es/_util/include.d.ts +1 -1
  1024. package/es/_util/include.js +10 -10
  1025. package/es/_util/is.d.ts +27 -27
  1026. package/es/_util/is.js +131 -131
  1027. package/es/_util/keycode.d.ts +36 -36
  1028. package/es/_util/keycode.js +37 -37
  1029. package/es/_util/mergeProps.d.ts +1 -1
  1030. package/es/_util/mergeProps.js +23 -23
  1031. package/es/_util/mergedToString.d.ts +2 -2
  1032. package/es/_util/mergedToString.js +20 -20
  1033. package/es/_util/omit.d.ts +1 -1
  1034. package/es/_util/omit.js +22 -22
  1035. package/es/_util/pad.d.ts +2 -2
  1036. package/es/_util/pad.js +18 -18
  1037. package/es/_util/pick.d.ts +4 -4
  1038. package/es/_util/pick.js +25 -25
  1039. package/es/_util/raf.d.ts +3 -3
  1040. package/es/_util/raf.js +29 -29
  1041. package/es/_util/react-dom.d.ts +13 -13
  1042. package/es/_util/react-dom.js +105 -105
  1043. package/es/_util/resizeObserver.d.ts +21 -21
  1044. package/es/_util/resizeObserver.js +90 -90
  1045. package/es/_util/responsiveObserve.d.ts +15 -15
  1046. package/es/_util/responsiveObserve.js +85 -85
  1047. package/es/_util/scrollIntoView.d.ts +2 -2
  1048. package/es/_util/scrollIntoView.js +27 -27
  1049. package/es/_util/style.d.ts +3 -3
  1050. package/es/_util/style.js +38 -38
  1051. package/es/_util/throttleByRaf.d.ts +4 -4
  1052. package/es/_util/throttleByRaf.js +45 -45
  1053. package/es/_util/throttleByRafV2.d.ts +4 -4
  1054. package/es/_util/throttleByRafV2.js +49 -49
  1055. package/es/_util/type.d.ts +4 -4
  1056. package/es/_util/type.js +1 -1
  1057. package/es/_util/warning.d.ts +1 -1
  1058. package/es/_util/warning.js +11 -11
  1059. package/es/index.d.ts +142 -142
  1060. package/es/index.js +72 -72
  1061. package/es/locale/ar-EG.d.ts +228 -228
  1062. package/es/locale/ar-EG.js +167 -167
  1063. package/es/locale/de-DE.d.ts +228 -228
  1064. package/es/locale/de-DE.js +165 -165
  1065. package/es/locale/default.d.ts +2 -2
  1066. package/es/locale/default.js +2 -2
  1067. package/es/locale/en-US.d.ts +234 -234
  1068. package/es/locale/en-US.js +172 -172
  1069. package/es/locale/es-ES.d.ts +228 -228
  1070. package/es/locale/es-ES.js +165 -165
  1071. package/es/locale/fr-FR.d.ts +228 -228
  1072. package/es/locale/fr-FR.js +165 -165
  1073. package/es/locale/id-ID.d.ts +228 -228
  1074. package/es/locale/id-ID.js +165 -165
  1075. package/es/locale/interface.d.ts +39 -39
  1076. package/es/locale/interface.js +1 -1
  1077. package/es/locale/it-IT.d.ts +228 -228
  1078. package/es/locale/it-IT.js +165 -165
  1079. package/es/locale/ja-JP.d.ts +281 -281
  1080. package/es/locale/ja-JP.js +218 -218
  1081. package/es/locale/ko-KR.d.ts +228 -228
  1082. package/es/locale/ko-KR.js +165 -165
  1083. package/es/locale/ms-MY.d.ts +228 -228
  1084. package/es/locale/ms-MY.js +165 -165
  1085. package/es/locale/pt-BR.d.ts +228 -228
  1086. package/es/locale/pt-BR.js +165 -165
  1087. package/es/locale/pt-PT.d.ts +228 -228
  1088. package/es/locale/pt-PT.js +165 -165
  1089. package/es/locale/ru-RU.d.ts +228 -228
  1090. package/es/locale/ru-RU.js +165 -165
  1091. package/es/locale/th-TH.d.ts +228 -228
  1092. package/es/locale/th-TH.js +165 -165
  1093. package/es/locale/tr-TR.d.ts +229 -229
  1094. package/es/locale/tr-TR.js +167 -167
  1095. package/es/locale/vi-VN.d.ts +228 -228
  1096. package/es/locale/vi-VN.js +166 -166
  1097. package/es/locale/zh-CN.d.ts +281 -281
  1098. package/es/locale/zh-CN.js +219 -219
  1099. package/es/locale/zh-HK.d.ts +281 -281
  1100. package/es/locale/zh-HK.js +219 -219
  1101. package/es/locale/zh-TW.d.ts +281 -281
  1102. package/es/locale/zh-TW.js +218 -218
  1103. package/hooks/es/index.d.ts +2 -2
  1104. package/hooks/es/index.js +2 -2
  1105. package/hooks/es/useVerificationCode/index.d.ts +2 -2
  1106. package/hooks/es/useVerificationCode/index.js +2 -2
  1107. package/hooks/es/useWatermark/index.d.ts +2 -2
  1108. package/hooks/es/useWatermark/index.js +2 -2
  1109. package/hooks/lib/index.d.ts +2 -2
  1110. package/hooks/lib/index.js +10 -10
  1111. package/hooks/lib/useVerificationCode/index.d.ts +2 -2
  1112. package/hooks/lib/useVerificationCode/index.js +7 -7
  1113. package/hooks/lib/useWatermark/index.d.ts +2 -2
  1114. package/hooks/lib/useWatermark/index.js +7 -7
  1115. package/hooks/package.json +2 -2
  1116. package/icon/icons.json +439 -309
  1117. package/icon/index.d.ts +37 -0
  1118. package/icon/index.es.js +38 -1
  1119. package/icon/index.js +860 -564
  1120. package/icon/react-icon/IconYtBasicConfigMaterial/index.js +60 -0
  1121. package/icon/react-icon/IconYtCalendar/index.js +55 -0
  1122. package/icon/react-icon/IconYtCircular/index.js +50 -0
  1123. package/icon/react-icon/IconYtDirectionArrowDown/index.js +50 -0
  1124. package/icon/react-icon/IconYtDirectionArrowLeft/index.js +50 -0
  1125. package/icon/react-icon/IconYtDirectionArrowRight/index.js +50 -0
  1126. package/icon/react-icon/IconYtDirectionArrowUp/index.js +50 -0
  1127. package/icon/react-icon/IconYtDirectionCaretDown/index.js +48 -0
  1128. package/icon/react-icon/IconYtDirectionCaretLeft/index.js +48 -0
  1129. package/icon/react-icon/IconYtDirectionCaretRight/index.js +48 -0
  1130. package/icon/react-icon/IconYtDirectionCaretUp/index.js +48 -0
  1131. package/icon/react-icon/IconYtDirectionDoubleDown/index.js +51 -0
  1132. package/icon/react-icon/IconYtDirectionDoubleLeft/index.js +51 -0
  1133. package/icon/react-icon/IconYtDirectionDoubleRight/index.js +51 -0
  1134. package/icon/react-icon/IconYtDirectionDoubleUp/index.js +51 -0
  1135. package/icon/react-icon/IconYtDirectionDown/index.js +50 -0
  1136. package/icon/react-icon/IconYtDirectionLeft/index.js +50 -0
  1137. package/icon/react-icon/IconYtDirectionMenuFold/index.js +53 -0
  1138. package/icon/react-icon/IconYtDirectionMenuUnfold/index.js +53 -0
  1139. package/icon/react-icon/IconYtDirectionRight/index.js +50 -0
  1140. package/icon/react-icon/IconYtDirectionUp/index.js +50 -0
  1141. package/icon/react-icon/IconYtForecastingManagement/index.js +60 -0
  1142. package/icon/react-icon/IconYtGeneralCalendar/index.js +55 -0
  1143. package/icon/react-icon/IconYtGeneralDragDot/index.js +50 -0
  1144. package/icon/react-icon/IconYtGeneralDragDotVertical/index.js +50 -0
  1145. package/icon/react-icon/IconYtGeneralMore/index.js +50 -0
  1146. package/icon/react-icon/IconYtGeneralRefresh/index.js +50 -0
  1147. package/icon/react-icon/IconYtGeneralSetting/index.js +57 -0
  1148. package/icon/react-icon/IconYtMaterialControl/index.js +55 -0
  1149. package/icon/react-icon/IconYtMoon/index.js +50 -0
  1150. package/icon/react-icon/IconYtNotification/index.js +55 -0
  1151. package/icon/react-icon/IconYtOmnichannelInventory/index.js +61 -0
  1152. package/icon/react-icon/IconYtOmnichannelSalesCenter/index.js +60 -0
  1153. package/icon/react-icon/IconYtSearch/index.js +50 -0
  1154. package/icon/react-icon/IconYtSetting/index.js +55 -0
  1155. package/icon/react-icon/IconYtSortSwitching/index.js +48 -0
  1156. package/icon/react-icon/IconYtSun/index.js +50 -0
  1157. package/icon/react-icon-cjs/IconYtBasicConfigMaterial/index.js +79 -0
  1158. package/icon/react-icon-cjs/IconYtCalendar/index.js +74 -0
  1159. package/icon/react-icon-cjs/IconYtCircular/index.js +69 -0
  1160. package/icon/react-icon-cjs/IconYtDirectionArrowDown/index.js +69 -0
  1161. package/icon/react-icon-cjs/IconYtDirectionArrowLeft/index.js +69 -0
  1162. package/icon/react-icon-cjs/IconYtDirectionArrowRight/index.js +69 -0
  1163. package/icon/react-icon-cjs/IconYtDirectionArrowUp/index.js +69 -0
  1164. package/icon/react-icon-cjs/IconYtDirectionCaretDown/index.js +67 -0
  1165. package/icon/react-icon-cjs/IconYtDirectionCaretLeft/index.js +67 -0
  1166. package/icon/react-icon-cjs/IconYtDirectionCaretRight/index.js +67 -0
  1167. package/icon/react-icon-cjs/IconYtDirectionCaretUp/index.js +67 -0
  1168. package/icon/react-icon-cjs/IconYtDirectionDoubleDown/index.js +70 -0
  1169. package/icon/react-icon-cjs/IconYtDirectionDoubleLeft/index.js +70 -0
  1170. package/icon/react-icon-cjs/IconYtDirectionDoubleRight/index.js +70 -0
  1171. package/icon/react-icon-cjs/IconYtDirectionDoubleUp/index.js +70 -0
  1172. package/icon/react-icon-cjs/IconYtDirectionDown/index.js +69 -0
  1173. package/icon/react-icon-cjs/IconYtDirectionLeft/index.js +69 -0
  1174. package/icon/react-icon-cjs/IconYtDirectionMenuFold/index.js +72 -0
  1175. package/icon/react-icon-cjs/IconYtDirectionMenuUnfold/index.js +72 -0
  1176. package/icon/react-icon-cjs/IconYtDirectionRight/index.js +69 -0
  1177. package/icon/react-icon-cjs/IconYtDirectionUp/index.js +69 -0
  1178. package/icon/react-icon-cjs/IconYtForecastingManagement/index.js +79 -0
  1179. package/icon/react-icon-cjs/IconYtGeneralCalendar/index.js +74 -0
  1180. package/icon/react-icon-cjs/IconYtGeneralDragDot/index.js +69 -0
  1181. package/icon/react-icon-cjs/IconYtGeneralDragDotVertical/index.js +69 -0
  1182. package/icon/react-icon-cjs/IconYtGeneralMore/index.js +69 -0
  1183. package/icon/react-icon-cjs/IconYtGeneralRefresh/index.js +69 -0
  1184. package/icon/react-icon-cjs/IconYtGeneralSetting/index.js +76 -0
  1185. package/icon/react-icon-cjs/IconYtMaterialControl/index.js +74 -0
  1186. package/icon/react-icon-cjs/IconYtMoon/index.js +69 -0
  1187. package/icon/react-icon-cjs/IconYtNotification/index.js +74 -0
  1188. package/icon/react-icon-cjs/IconYtOmnichannelInventory/index.js +80 -0
  1189. package/icon/react-icon-cjs/IconYtOmnichannelSalesCenter/index.js +79 -0
  1190. package/icon/react-icon-cjs/IconYtSearch/index.js +69 -0
  1191. package/icon/react-icon-cjs/IconYtSetting/index.js +74 -0
  1192. package/icon/react-icon-cjs/IconYtSortSwitching/index.js +67 -0
  1193. package/icon/react-icon-cjs/IconYtSun/index.js +69 -0
  1194. package/lib/Affix/index.d.ts +10 -10
  1195. package/lib/Affix/index.js +196 -196
  1196. package/lib/Affix/interface.d.ts +52 -52
  1197. package/lib/Affix/interface.js +2 -2
  1198. package/lib/Affix/style/index.d.ts +2 -2
  1199. package/lib/Affix/style/index.js +4 -4
  1200. package/lib/Alert/index.d.ts +5 -5
  1201. package/lib/Alert/index.js +124 -124
  1202. package/lib/Alert/interface.d.ts +66 -66
  1203. package/lib/Alert/interface.js +2 -2
  1204. package/lib/Alert/style/index.d.ts +2 -2
  1205. package/lib/Alert/style/index.js +4 -4
  1206. package/lib/Anchor/anchor.d.ts +9 -9
  1207. package/lib/Anchor/anchor.js +299 -299
  1208. package/lib/Anchor/context.d.ts +11 -11
  1209. package/lib/Anchor/context.js +10 -10
  1210. package/lib/Anchor/index.d.ts +4 -4
  1211. package/lib/Anchor/index.js +7 -7
  1212. package/lib/Anchor/interface.d.ts +105 -105
  1213. package/lib/Anchor/interface.js +2 -2
  1214. package/lib/Anchor/link.d.ts +6 -6
  1215. package/lib/Anchor/link.js +93 -93
  1216. package/lib/Anchor/style/index.d.ts +3 -3
  1217. package/lib/Anchor/style/index.js +5 -5
  1218. package/lib/Anchor/utils.d.ts +4 -4
  1219. package/lib/Anchor/utils.js +52 -52
  1220. package/lib/AutoComplete/index.d.ts +12 -12
  1221. package/lib/AutoComplete/index.js +185 -185
  1222. package/lib/AutoComplete/interface.d.ts +127 -127
  1223. package/lib/AutoComplete/interface.js +2 -2
  1224. package/lib/AutoComplete/style/index.d.ts +4 -4
  1225. package/lib/AutoComplete/style/index.js +6 -6
  1226. package/lib/Avatar/avatar.d.ts +6 -6
  1227. package/lib/Avatar/avatar.js +105 -105
  1228. package/lib/Avatar/context.d.ts +4 -4
  1229. package/lib/Avatar/context.js +4 -4
  1230. package/lib/Avatar/group.d.ts +6 -6
  1231. package/lib/Avatar/group.js +91 -91
  1232. package/lib/Avatar/index.d.ts +8 -8
  1233. package/lib/Avatar/index.js +21 -21
  1234. package/lib/Avatar/interface.d.ts +95 -95
  1235. package/lib/Avatar/interface.js +2 -2
  1236. package/lib/Avatar/style/index.d.ts +3 -3
  1237. package/lib/Avatar/style/index.js +5 -5
  1238. package/lib/BackTop/index.d.ts +7 -7
  1239. package/lib/BackTop/index.js +117 -117
  1240. package/lib/BackTop/interface.d.ts +37 -37
  1241. package/lib/BackTop/interface.js +2 -2
  1242. package/lib/BackTop/style/index.d.ts +2 -2
  1243. package/lib/BackTop/style/index.js +4 -4
  1244. package/lib/Badge/count.d.ts +8 -8
  1245. package/lib/Badge/count.js +57 -57
  1246. package/lib/Badge/index.d.ts +5 -5
  1247. package/lib/Badge/index.js +138 -138
  1248. package/lib/Badge/interface.d.ts +57 -57
  1249. package/lib/Badge/interface.js +2 -2
  1250. package/lib/Badge/style/index.d.ts +2 -2
  1251. package/lib/Badge/style/index.js +4 -4
  1252. package/lib/Breadcrumb/index.d.ts +8 -8
  1253. package/lib/Breadcrumb/index.js +119 -119
  1254. package/lib/Breadcrumb/interface.d.ts +78 -78
  1255. package/lib/Breadcrumb/interface.js +2 -2
  1256. package/lib/Breadcrumb/item.d.ts +8 -8
  1257. package/lib/Breadcrumb/item.js +89 -89
  1258. package/lib/Breadcrumb/style/index.d.ts +3 -3
  1259. package/lib/Breadcrumb/style/index.js +5 -5
  1260. package/lib/Button/group.d.ts +5 -5
  1261. package/lib/Button/group.js +59 -59
  1262. package/lib/Button/index.d.ts +15 -15
  1263. package/lib/Button/index.js +156 -156
  1264. package/lib/Button/interface.d.ts +105 -105
  1265. package/lib/Button/interface.js +2 -2
  1266. package/lib/Button/style/index.d.ts +2 -2
  1267. package/lib/Button/style/index.js +4 -4
  1268. package/lib/Calendar/header/header.d.ts +2 -2
  1269. package/lib/Calendar/header/header.js +89 -89
  1270. package/lib/Calendar/header/panel-header.d.ts +2 -2
  1271. package/lib/Calendar/header/panel-header.js +33 -33
  1272. package/lib/Calendar/hooks/useCellClassName.d.ts +1 -1
  1273. package/lib/Calendar/hooks/useCellClassName.js +59 -59
  1274. package/lib/Calendar/index.d.ts +7 -7
  1275. package/lib/Calendar/index.js +166 -166
  1276. package/lib/Calendar/interface.d.ts +122 -122
  1277. package/lib/Calendar/interface.js +2 -2
  1278. package/lib/Calendar/month.d.ts +15 -15
  1279. package/lib/Calendar/month.js +140 -140
  1280. package/lib/Calendar/style/index.d.ts +4 -4
  1281. package/lib/Calendar/style/index.js +6 -6
  1282. package/lib/Calendar/week-list.d.ts +10 -10
  1283. package/lib/Calendar/week-list.js +22 -22
  1284. package/lib/Calendar/year.d.ts +13 -13
  1285. package/lib/Calendar/year.js +64 -64
  1286. package/lib/Card/grid.d.ts +5 -5
  1287. package/lib/Card/grid.js +37 -37
  1288. package/lib/Card/index.d.ts +10 -10
  1289. package/lib/Card/index.js +100 -100
  1290. package/lib/Card/interface.d.ts +99 -99
  1291. package/lib/Card/interface.js +2 -2
  1292. package/lib/Card/meta.d.ts +5 -5
  1293. package/lib/Card/meta.js +66 -66
  1294. package/lib/Card/style/index.d.ts +3 -3
  1295. package/lib/Card/style/index.js +5 -5
  1296. package/lib/Carousel/arrow.d.ts +4 -4
  1297. package/lib/Carousel/arrow.js +60 -60
  1298. package/lib/Carousel/index.d.ts +5 -5
  1299. package/lib/Carousel/index.js +312 -312
  1300. package/lib/Carousel/indicator.d.ts +4 -4
  1301. package/lib/Carousel/indicator.js +81 -81
  1302. package/lib/Carousel/interface.d.ts +144 -144
  1303. package/lib/Carousel/interface.js +2 -2
  1304. package/lib/Carousel/style/index.d.ts +2 -2
  1305. package/lib/Carousel/style/index.js +4 -4
  1306. package/lib/Cascader/base/node.d.ts +78 -78
  1307. package/lib/Cascader/base/node.js +203 -203
  1308. package/lib/Cascader/base/store.d.ts +43 -43
  1309. package/lib/Cascader/base/store.js +171 -171
  1310. package/lib/Cascader/cascader.d.ts +17 -17
  1311. package/lib/Cascader/cascader.js +369 -369
  1312. package/lib/Cascader/hook/useRefCurrent.d.ts +3 -3
  1313. package/lib/Cascader/hook/useRefCurrent.js +46 -46
  1314. package/lib/Cascader/index.d.ts +5 -5
  1315. package/lib/Cascader/index.js +18 -18
  1316. package/lib/Cascader/interface.d.ts +308 -308
  1317. package/lib/Cascader/interface.js +2 -2
  1318. package/lib/Cascader/panel/list.d.ts +4 -4
  1319. package/lib/Cascader/panel/list.js +409 -409
  1320. package/lib/Cascader/panel/option.d.ts +23 -23
  1321. package/lib/Cascader/panel/option.js +17 -17
  1322. package/lib/Cascader/panel/search-panel.d.ts +28 -28
  1323. package/lib/Cascader/panel/search-panel.js +232 -232
  1324. package/lib/Cascader/style/index.d.ts +6 -6
  1325. package/lib/Cascader/style/index.js +8 -8
  1326. package/lib/Cascader/util.d.ts +24 -24
  1327. package/lib/Cascader/util.js +125 -125
  1328. package/lib/Checkbox/checkbox.d.ts +14 -14
  1329. package/lib/Checkbox/checkbox.js +146 -146
  1330. package/lib/Checkbox/group.d.ts +17 -17
  1331. package/lib/Checkbox/group.js +135 -135
  1332. package/lib/Checkbox/icon-check.d.ts +3 -3
  1333. package/lib/Checkbox/icon-check.js +12 -12
  1334. package/lib/Checkbox/index.d.ts +4 -4
  1335. package/lib/Checkbox/index.js +10 -10
  1336. package/lib/Checkbox/interface.d.ts +102 -102
  1337. package/lib/Checkbox/interface.js +2 -2
  1338. package/lib/Checkbox/style/index.d.ts +2 -2
  1339. package/lib/Checkbox/style/index.js +4 -4
  1340. package/lib/Checkbox/useCheckbox.d.ts +22 -22
  1341. package/lib/Checkbox/useCheckbox.js +105 -105
  1342. package/lib/Collapse/collapse.d.ts +14 -14
  1343. package/lib/Collapse/collapse.js +145 -145
  1344. package/lib/Collapse/index.d.ts +3 -3
  1345. package/lib/Collapse/index.js +7 -7
  1346. package/lib/Collapse/interface.d.ts +111 -111
  1347. package/lib/Collapse/interface.js +2 -2
  1348. package/lib/Collapse/item.d.ts +7 -7
  1349. package/lib/Collapse/item.js +125 -125
  1350. package/lib/Collapse/style/index.d.ts +2 -2
  1351. package/lib/Collapse/style/index.js +4 -4
  1352. package/lib/ColorPicker/colors.d.ts +1 -1
  1353. package/lib/ColorPicker/colors.js +27 -27
  1354. package/lib/ColorPicker/control-bar.d.ts +12 -12
  1355. package/lib/ColorPicker/control-bar.js +62 -62
  1356. package/lib/ColorPicker/hooks/useColorPicker.d.ts +30 -30
  1357. package/lib/ColorPicker/hooks/useColorPicker.js +101 -101
  1358. package/lib/ColorPicker/hooks/useControlBlock.d.ts +12 -12
  1359. package/lib/ColorPicker/hooks/useControlBlock.js +75 -75
  1360. package/lib/ColorPicker/index.d.ts +5 -5
  1361. package/lib/ColorPicker/index.js +83 -83
  1362. package/lib/ColorPicker/input-alpha.d.ts +7 -7
  1363. package/lib/ColorPicker/input-alpha.js +35 -35
  1364. package/lib/ColorPicker/input-hex.d.ts +11 -11
  1365. package/lib/ColorPicker/input-hex.js +85 -85
  1366. package/lib/ColorPicker/input-rgb.d.ts +10 -10
  1367. package/lib/ColorPicker/input-rgb.js +47 -47
  1368. package/lib/ColorPicker/interface.d.ts +126 -126
  1369. package/lib/ColorPicker/interface.js +2 -2
  1370. package/lib/ColorPicker/palette.d.ts +7 -7
  1371. package/lib/ColorPicker/palette.js +48 -48
  1372. package/lib/ColorPicker/panel.d.ts +20 -20
  1373. package/lib/ColorPicker/panel.js +140 -140
  1374. package/lib/ColorPicker/style/index.d.ts +4 -4
  1375. package/lib/ColorPicker/style/index.js +6 -6
  1376. package/lib/Comment/index.d.ts +7 -7
  1377. package/lib/Comment/index.js +74 -74
  1378. package/lib/Comment/interface.d.ts +41 -41
  1379. package/lib/Comment/interface.js +2 -2
  1380. package/lib/Comment/style/index.d.ts +2 -2
  1381. package/lib/Comment/style/index.js +4 -4
  1382. package/lib/ConfigProvider/context.d.ts +4 -4
  1383. package/lib/ConfigProvider/context.js +59 -59
  1384. package/lib/ConfigProvider/index.d.ts +11 -11
  1385. package/lib/ConfigProvider/index.js +123 -123
  1386. package/lib/ConfigProvider/interface.d.ts +248 -248
  1387. package/lib/ConfigProvider/interface.js +2 -2
  1388. package/lib/ConfigProvider/style/index.d.ts +1 -1
  1389. package/lib/ConfigProvider/style/index.js +3 -3
  1390. package/lib/ConfigProvider/util.d.ts +2 -2
  1391. package/lib/ConfigProvider/util.js +123 -123
  1392. package/lib/DatePicker/__test__/utils.d.ts +4 -4
  1393. package/lib/DatePicker/__test__/utils.js +41 -41
  1394. package/lib/DatePicker/context.d.ts +8 -8
  1395. package/lib/DatePicker/context.js +4 -4
  1396. package/lib/DatePicker/hooks/useCellClassName.d.ts +1 -1
  1397. package/lib/DatePicker/hooks/useCellClassName.js +113 -113
  1398. package/lib/DatePicker/index.d.ts +4 -4
  1399. package/lib/DatePicker/index.js +90 -90
  1400. package/lib/DatePicker/interface.d.ts +518 -518
  1401. package/lib/DatePicker/interface.js +2 -2
  1402. package/lib/DatePicker/panels/body.d.ts +30 -30
  1403. package/lib/DatePicker/panels/body.js +68 -68
  1404. package/lib/DatePicker/panels/date/index.d.ts +24 -24
  1405. package/lib/DatePicker/panels/date/index.js +183 -183
  1406. package/lib/DatePicker/panels/footer.d.ts +1 -1
  1407. package/lib/DatePicker/panels/footer.js +26 -26
  1408. package/lib/DatePicker/panels/header.d.ts +20 -20
  1409. package/lib/DatePicker/panels/header.js +59 -59
  1410. package/lib/DatePicker/panels/month/index.d.ts +17 -17
  1411. package/lib/DatePicker/panels/month/index.js +108 -108
  1412. package/lib/DatePicker/panels/quarter/index.d.ts +17 -17
  1413. package/lib/DatePicker/panels/quarter/index.js +88 -88
  1414. package/lib/DatePicker/panels/range/index.d.ts +28 -28
  1415. package/lib/DatePicker/panels/range/index.js +170 -170
  1416. package/lib/DatePicker/panels/shortcuts.d.ts +4 -4
  1417. package/lib/DatePicker/panels/shortcuts.js +49 -49
  1418. package/lib/DatePicker/panels/week/index.d.ts +16 -16
  1419. package/lib/DatePicker/panels/week/index.js +61 -61
  1420. package/lib/DatePicker/panels/week-list.d.ts +8 -8
  1421. package/lib/DatePicker/panels/week-list.js +17 -17
  1422. package/lib/DatePicker/panels/year/index.d.ts +16 -16
  1423. package/lib/DatePicker/panels/year/index.js +88 -88
  1424. package/lib/DatePicker/picker-range.d.ts +4 -4
  1425. package/lib/DatePicker/picker-range.js +709 -709
  1426. package/lib/DatePicker/picker.d.ts +18 -18
  1427. package/lib/DatePicker/picker.js +427 -427
  1428. package/lib/DatePicker/style/index.d.ts +7 -7
  1429. package/lib/DatePicker/style/index.js +9 -9
  1430. package/lib/DatePicker/util.d.ts +9 -9
  1431. package/lib/DatePicker/util.js +108 -108
  1432. package/lib/Descriptions/index.d.ts +7 -7
  1433. package/lib/Descriptions/index.js +175 -175
  1434. package/lib/Descriptions/interface.d.ts +79 -79
  1435. package/lib/Descriptions/interface.js +2 -2
  1436. package/lib/Descriptions/style/index.d.ts +2 -2
  1437. package/lib/Descriptions/style/index.js +4 -4
  1438. package/lib/Divider/index.d.ts +5 -5
  1439. package/lib/Divider/index.js +69 -69
  1440. package/lib/Divider/interface.d.ts +21 -21
  1441. package/lib/Divider/interface.js +2 -2
  1442. package/lib/Divider/style/index.d.ts +2 -2
  1443. package/lib/Divider/style/index.js +4 -4
  1444. package/lib/Drawer/index.d.ts +5 -5
  1445. package/lib/Drawer/index.js +225 -225
  1446. package/lib/Drawer/interface.d.ts +185 -185
  1447. package/lib/Drawer/interface.js +2 -2
  1448. package/lib/Drawer/style/index.d.ts +3 -3
  1449. package/lib/Drawer/style/index.js +5 -5
  1450. package/lib/Dropdown/button.d.ts +5 -5
  1451. package/lib/Dropdown/button.js +96 -96
  1452. package/lib/Dropdown/index.d.ts +8 -8
  1453. package/lib/Dropdown/index.js +194 -194
  1454. package/lib/Dropdown/interface.d.ts +109 -109
  1455. package/lib/Dropdown/interface.js +2 -2
  1456. package/lib/Dropdown/style/index.d.ts +4 -4
  1457. package/lib/Dropdown/style/index.js +6 -6
  1458. package/lib/Empty/index.d.ts +5 -5
  1459. package/lib/Empty/index.js +67 -67
  1460. package/lib/Empty/interface.d.ts +23 -23
  1461. package/lib/Empty/interface.js +2 -2
  1462. package/lib/Empty/style/index.d.ts +2 -2
  1463. package/lib/Empty/style/index.js +4 -4
  1464. package/lib/Form/context.d.ts +14 -14
  1465. package/lib/Form/context.js +40 -40
  1466. package/lib/Form/control.d.ts +66 -66
  1467. package/lib/Form/control.js +458 -458
  1468. package/lib/Form/form-item.d.ts +7 -7
  1469. package/lib/Form/form-item.js +287 -287
  1470. package/lib/Form/form-label.d.ts +9 -9
  1471. package/lib/Form/form-label.js +96 -96
  1472. package/lib/Form/form-list.d.ts +6 -6
  1473. package/lib/Form/form-list.js +172 -172
  1474. package/lib/Form/form-provider.d.ts +4 -4
  1475. package/lib/Form/form-provider.js +54 -54
  1476. package/lib/Form/form.d.ts +8 -8
  1477. package/lib/Form/form.js +183 -183
  1478. package/lib/Form/hooks/useContext.d.ts +10 -10
  1479. package/lib/Form/hooks/useContext.js +47 -47
  1480. package/lib/Form/hooks/useState.d.ts +3 -3
  1481. package/lib/Form/hooks/useState.js +61 -61
  1482. package/lib/Form/hooks/useWatch.d.ts +3 -3
  1483. package/lib/Form/hooks/useWatch.js +68 -68
  1484. package/lib/Form/index.d.ts +24 -24
  1485. package/lib/Form/index.js +24 -24
  1486. package/lib/Form/interface.d.ts +533 -533
  1487. package/lib/Form/interface.js +18 -18
  1488. package/lib/Form/promisify.d.ts +2 -2
  1489. package/lib/Form/promisify.js +52 -52
  1490. package/lib/Form/store.d.ts +95 -95
  1491. package/lib/Form/store.js +531 -531
  1492. package/lib/Form/style/index.d.ts +3 -3
  1493. package/lib/Form/style/index.js +5 -5
  1494. package/lib/Form/useForm.d.ts +3 -3
  1495. package/lib/Form/useForm.js +65 -65
  1496. package/lib/Form/utils.d.ts +14 -14
  1497. package/lib/Form/utils.js +211 -211
  1498. package/lib/Grid/col.d.ts +5 -5
  1499. package/lib/Grid/col.js +117 -117
  1500. package/lib/Grid/context.d.ts +20 -20
  1501. package/lib/Grid/context.js +7 -7
  1502. package/lib/Grid/grid-item.d.ts +7 -7
  1503. package/lib/Grid/grid-item.js +115 -115
  1504. package/lib/Grid/grid.d.ts +5 -5
  1505. package/lib/Grid/grid.js +158 -158
  1506. package/lib/Grid/hooks/useResponsiveState.d.ts +2 -2
  1507. package/lib/Grid/hooks/useResponsiveState.js +86 -86
  1508. package/lib/Grid/index.d.ts +11 -11
  1509. package/lib/Grid/index.js +14 -14
  1510. package/lib/Grid/interface.d.ts +239 -239
  1511. package/lib/Grid/interface.js +2 -2
  1512. package/lib/Grid/row.d.ts +5 -5
  1513. package/lib/Grid/row.js +145 -145
  1514. package/lib/Grid/style/index.d.ts +2 -2
  1515. package/lib/Grid/style/index.js +4 -4
  1516. package/lib/Grid/utils.d.ts +11 -11
  1517. package/lib/Grid/utils.js +56 -56
  1518. package/lib/Icon/addFromIconFontCn.d.ts +9 -9
  1519. package/lib/Icon/addFromIconFontCn.js +82 -82
  1520. package/lib/Icon/index.d.ts +25 -25
  1521. package/lib/Icon/index.js +96 -96
  1522. package/lib/Image/image-footer.d.ts +13 -13
  1523. package/lib/Image/image-footer.js +57 -57
  1524. package/lib/Image/image-preview-arrow.d.ts +9 -9
  1525. package/lib/Image/image-preview-arrow.js +54 -54
  1526. package/lib/Image/image-preview-group.d.ts +10 -10
  1527. package/lib/Image/image-preview-group.js +197 -197
  1528. package/lib/Image/image-preview-toolbar.d.ts +14 -14
  1529. package/lib/Image/image-preview-toolbar.js +135 -135
  1530. package/lib/Image/image-preview.d.ts +7 -7
  1531. package/lib/Image/image-preview.js +475 -475
  1532. package/lib/Image/image.d.ts +11 -11
  1533. package/lib/Image/image.js +219 -219
  1534. package/lib/Image/index.d.ts +3 -3
  1535. package/lib/Image/index.js +7 -7
  1536. package/lib/Image/interface.d.ts +274 -274
  1537. package/lib/Image/interface.js +2 -2
  1538. package/lib/Image/previewGroupContext.d.ts +25 -25
  1539. package/lib/Image/previewGroupContext.js +17 -17
  1540. package/lib/Image/style/index.d.ts +2 -2
  1541. package/lib/Image/style/index.js +4 -4
  1542. package/lib/Image/trigger-for-toolbar.d.ts +10 -10
  1543. package/lib/Image/trigger-for-toolbar.js +15 -15
  1544. package/lib/Image/utils/getFixTranslate.d.ts +1 -1
  1545. package/lib/Image/utils/getFixTranslate.js +42 -42
  1546. package/lib/Image/utils/getScale.d.ts +13 -13
  1547. package/lib/Image/utils/getScale.js +83 -83
  1548. package/lib/Image/utils/hooks/useImageStatus.d.ts +12 -12
  1549. package/lib/Image/utils/hooks/useImageStatus.js +37 -37
  1550. package/lib/Image/utils/hooks/useShowFooter.d.ts +8 -8
  1551. package/lib/Image/utils/hooks/useShowFooter.js +10 -10
  1552. package/lib/Input/autoSizeTextAreaHeight.d.ts +5 -5
  1553. package/lib/Input/autoSizeTextAreaHeight.js +101 -101
  1554. package/lib/Input/group.d.ts +7 -7
  1555. package/lib/Input/group.js +61 -61
  1556. package/lib/Input/index.d.ts +7 -7
  1557. package/lib/Input/index.js +7 -7
  1558. package/lib/Input/input-element.d.ts +4 -4
  1559. package/lib/Input/input-element.js +251 -251
  1560. package/lib/Input/input.d.ts +17 -17
  1561. package/lib/Input/input.js +180 -180
  1562. package/lib/Input/interface.d.ts +325 -325
  1563. package/lib/Input/interface.js +2 -2
  1564. package/lib/Input/password.d.ts +5 -5
  1565. package/lib/Input/password.js +117 -117
  1566. package/lib/Input/search.d.ts +5 -5
  1567. package/lib/Input/search.js +101 -101
  1568. package/lib/Input/style/index.d.ts +3 -3
  1569. package/lib/Input/style/index.js +5 -5
  1570. package/lib/Input/textarea.d.ts +12 -12
  1571. package/lib/Input/textarea.js +193 -193
  1572. package/lib/Input/useComposition.d.ts +17 -17
  1573. package/lib/Input/useComposition.js +75 -75
  1574. package/lib/InputNumber/Decimal.d.ts +21 -21
  1575. package/lib/InputNumber/Decimal.js +199 -199
  1576. package/lib/InputNumber/index.d.ts +6 -6
  1577. package/lib/InputNumber/index.js +272 -272
  1578. package/lib/InputNumber/interface.d.ts +141 -141
  1579. package/lib/InputNumber/interface.js +2 -2
  1580. package/lib/InputNumber/style/index.d.ts +3 -3
  1581. package/lib/InputNumber/style/index.js +5 -5
  1582. package/lib/InputNumber/useSelectionRange.d.ts +4 -4
  1583. package/lib/InputNumber/useSelectionRange.js +32 -32
  1584. package/lib/InputNumber/utils.d.ts +28 -28
  1585. package/lib/InputNumber/utils.js +122 -122
  1586. package/lib/InputTag/index.d.ts +3 -3
  1587. package/lib/InputTag/index.js +7 -7
  1588. package/lib/InputTag/input-tag.d.ts +9 -9
  1589. package/lib/InputTag/input-tag.js +527 -527
  1590. package/lib/InputTag/interface.d.ts +215 -215
  1591. package/lib/InputTag/interface.js +2 -2
  1592. package/lib/InputTag/style/index.d.ts +3 -3
  1593. package/lib/InputTag/style/index.js +5 -5
  1594. package/lib/Layout/content.d.ts +4 -4
  1595. package/lib/Layout/content.js +59 -59
  1596. package/lib/Layout/footer.d.ts +4 -4
  1597. package/lib/Layout/footer.js +59 -59
  1598. package/lib/Layout/header.d.ts +4 -4
  1599. package/lib/Layout/header.js +59 -59
  1600. package/lib/Layout/index.d.ts +17 -17
  1601. package/lib/Layout/index.js +112 -112
  1602. package/lib/Layout/interface.d.ts +121 -121
  1603. package/lib/Layout/interface.js +2 -2
  1604. package/lib/Layout/sider.d.ts +10 -10
  1605. package/lib/Layout/sider.js +168 -168
  1606. package/lib/Layout/style/index.d.ts +4 -4
  1607. package/lib/Layout/style/index.js +6 -6
  1608. package/lib/Link/index.d.ts +5 -5
  1609. package/lib/Link/index.js +87 -87
  1610. package/lib/Link/interface.d.ts +30 -30
  1611. package/lib/Link/interface.js +2 -2
  1612. package/lib/Link/style/index.d.ts +2 -2
  1613. package/lib/Link/style/index.js +4 -4
  1614. package/lib/List/index.d.ts +12 -12
  1615. package/lib/List/index.js +256 -256
  1616. package/lib/List/interface.d.ts +192 -192
  1617. package/lib/List/interface.js +2 -2
  1618. package/lib/List/item.d.ts +7 -7
  1619. package/lib/List/item.js +86 -86
  1620. package/lib/List/meta.d.ts +4 -4
  1621. package/lib/List/meta.js +65 -65
  1622. package/lib/List/style/index.d.ts +6 -6
  1623. package/lib/List/style/index.js +8 -8
  1624. package/lib/Mentions/index.d.ts +5 -5
  1625. package/lib/Mentions/index.js +176 -176
  1626. package/lib/Mentions/interface.d.ts +92 -92
  1627. package/lib/Mentions/interface.js +2 -2
  1628. package/lib/Mentions/style/index.d.ts +2 -2
  1629. package/lib/Mentions/style/index.js +4 -4
  1630. package/lib/Mentions/utils.d.ts +9 -9
  1631. package/lib/Mentions/utils.js +27 -27
  1632. package/lib/Menu/context.d.ts +16 -16
  1633. package/lib/Menu/context.js +5 -5
  1634. package/lib/Menu/indent.d.ts +5 -5
  1635. package/lib/Menu/indent.js +60 -60
  1636. package/lib/Menu/index.d.ts +13 -13
  1637. package/lib/Menu/index.js +226 -226
  1638. package/lib/Menu/interface.d.ts +233 -233
  1639. package/lib/Menu/interface.js +2 -2
  1640. package/lib/Menu/item-group.d.ts +6 -6
  1641. package/lib/Menu/item-group.js +45 -45
  1642. package/lib/Menu/item.d.ts +6 -6
  1643. package/lib/Menu/item.js +108 -108
  1644. package/lib/Menu/overflow-wrap.d.ts +9 -9
  1645. package/lib/Menu/overflow-wrap.js +155 -155
  1646. package/lib/Menu/style/index.d.ts +4 -4
  1647. package/lib/Menu/style/index.js +6 -6
  1648. package/lib/Menu/sub-menu/index.d.ts +6 -6
  1649. package/lib/Menu/sub-menu/index.js +58 -58
  1650. package/lib/Menu/sub-menu/inline.d.ts +5 -5
  1651. package/lib/Menu/sub-menu/inline.js +178 -178
  1652. package/lib/Menu/sub-menu/pop.d.ts +5 -5
  1653. package/lib/Menu/sub-menu/pop.js +123 -123
  1654. package/lib/Menu/util.d.ts +16 -16
  1655. package/lib/Menu/util.js +143 -143
  1656. package/lib/Message/index.d.ts +30 -30
  1657. package/lib/Message/index.js +194 -194
  1658. package/lib/Message/interface.d.ts +83 -83
  1659. package/lib/Message/interface.js +2 -2
  1660. package/lib/Message/style/index.d.ts +2 -2
  1661. package/lib/Message/style/index.js +4 -4
  1662. package/lib/Message/useMessage.d.ts +5 -5
  1663. package/lib/Message/useMessage.js +95 -95
  1664. package/lib/Modal/config.d.ts +10 -10
  1665. package/lib/Modal/config.js +35 -35
  1666. package/lib/Modal/confirm.d.ts +14 -14
  1667. package/lib/Modal/confirm.js +149 -149
  1668. package/lib/Modal/index.d.ts +2 -2
  1669. package/lib/Modal/index.js +7 -7
  1670. package/lib/Modal/interface.d.ts +190 -190
  1671. package/lib/Modal/interface.js +2 -2
  1672. package/lib/Modal/modal.d.ts +18 -18
  1673. package/lib/Modal/modal.js +348 -348
  1674. package/lib/Modal/style/index.d.ts +3 -3
  1675. package/lib/Modal/style/index.js +5 -5
  1676. package/lib/Modal/useModal/hookModal.d.ts +8 -8
  1677. package/lib/Modal/useModal/hookModal.js +86 -86
  1678. package/lib/Modal/useModal/index.d.ts +4 -4
  1679. package/lib/Modal/useModal/index.js +87 -87
  1680. package/lib/Notification/index.d.ts +26 -26
  1681. package/lib/Notification/index.js +209 -209
  1682. package/lib/Notification/interface.d.ts +77 -77
  1683. package/lib/Notification/interface.js +2 -2
  1684. package/lib/Notification/style/index.d.ts +2 -2
  1685. package/lib/Notification/style/index.js +4 -4
  1686. package/lib/Notification/useNotification.d.ts +5 -5
  1687. package/lib/Notification/useNotification.js +92 -92
  1688. package/lib/PageHeader/index.d.ts +8 -8
  1689. package/lib/PageHeader/index.js +114 -114
  1690. package/lib/PageHeader/interface.d.ts +44 -44
  1691. package/lib/PageHeader/interface.js +2 -2
  1692. package/lib/PageHeader/style/index.d.ts +3 -3
  1693. package/lib/PageHeader/style/index.js +5 -5
  1694. package/lib/Pagination/index.d.ts +3 -3
  1695. package/lib/Pagination/index.js +7 -7
  1696. package/lib/Pagination/interface.d.ts +133 -133
  1697. package/lib/Pagination/interface.js +2 -2
  1698. package/lib/Pagination/page-item.d.ts +62 -62
  1699. package/lib/Pagination/page-item.js +170 -170
  1700. package/lib/Pagination/page-jumper.d.ts +13 -13
  1701. package/lib/Pagination/page-jumper.js +108 -108
  1702. package/lib/Pagination/page-options.d.ts +13 -13
  1703. package/lib/Pagination/page-options.js +53 -53
  1704. package/lib/Pagination/pagination.d.ts +11 -11
  1705. package/lib/Pagination/pagination.js +276 -276
  1706. package/lib/Pagination/style/index.d.ts +4 -4
  1707. package/lib/Pagination/style/index.js +6 -6
  1708. package/lib/Popconfirm/index.d.ts +7 -7
  1709. package/lib/Popconfirm/index.js +155 -155
  1710. package/lib/Popconfirm/interface.d.ts +128 -128
  1711. package/lib/Popconfirm/interface.js +2 -2
  1712. package/lib/Popconfirm/style/index.d.ts +5 -5
  1713. package/lib/Popconfirm/style/index.js +7 -7
  1714. package/lib/Popover/index.d.ts +7 -7
  1715. package/lib/Popover/index.js +73 -73
  1716. package/lib/Popover/interface.d.ts +20 -20
  1717. package/lib/Popover/interface.js +2 -2
  1718. package/lib/Popover/style/index.d.ts +3 -3
  1719. package/lib/Popover/style/index.js +5 -5
  1720. package/lib/Portal/Portal.d.ts +15 -15
  1721. package/lib/Portal/Portal.js +62 -62
  1722. package/lib/Portal/index.d.ts +19 -19
  1723. package/lib/Portal/index.js +72 -72
  1724. package/lib/Progress/circle-progress.d.ts +8 -8
  1725. package/lib/Progress/circle-progress.js +92 -92
  1726. package/lib/Progress/index.d.ts +5 -5
  1727. package/lib/Progress/index.js +95 -95
  1728. package/lib/Progress/interface.d.ts +87 -87
  1729. package/lib/Progress/interface.js +2 -2
  1730. package/lib/Progress/line-progess.d.ts +2 -2
  1731. package/lib/Progress/line-progess.js +86 -86
  1732. package/lib/Progress/steps-progress.d.ts +2 -2
  1733. package/lib/Progress/steps-progress.js +88 -88
  1734. package/lib/Progress/style/index.d.ts +3 -3
  1735. package/lib/Progress/style/index.js +5 -5
  1736. package/lib/Radio/group.d.ts +10 -10
  1737. package/lib/Radio/group.js +123 -123
  1738. package/lib/Radio/index.d.ts +5 -5
  1739. package/lib/Radio/index.js +10 -10
  1740. package/lib/Radio/interface.d.ts +103 -103
  1741. package/lib/Radio/interface.js +2 -2
  1742. package/lib/Radio/radio.d.ts +11 -11
  1743. package/lib/Radio/radio.js +131 -131
  1744. package/lib/Radio/style/index.d.ts +2 -2
  1745. package/lib/Radio/style/index.js +4 -4
  1746. package/lib/Rate/index.d.ts +5 -5
  1747. package/lib/Rate/index.js +185 -185
  1748. package/lib/Rate/interface.d.ts +70 -70
  1749. package/lib/Rate/interface.js +2 -2
  1750. package/lib/Rate/style/index.d.ts +3 -3
  1751. package/lib/Rate/style/index.js +5 -5
  1752. package/lib/ResizeBox/index.d.ts +13 -13
  1753. package/lib/ResizeBox/index.js +249 -249
  1754. package/lib/ResizeBox/interface.d.ts +264 -264
  1755. package/lib/ResizeBox/interface.js +2 -2
  1756. package/lib/ResizeBox/resize-trigger.d.ts +30 -30
  1757. package/lib/ResizeBox/resize-trigger.js +116 -116
  1758. package/lib/ResizeBox/split-group.d.ts +4 -4
  1759. package/lib/ResizeBox/split-group.js +345 -345
  1760. package/lib/ResizeBox/split.d.ts +5 -5
  1761. package/lib/ResizeBox/split.js +174 -174
  1762. package/lib/ResizeBox/style/index.d.ts +2 -2
  1763. package/lib/ResizeBox/style/index.js +4 -4
  1764. package/lib/Result/403.d.ts +1 -1
  1765. package/lib/Result/403.js +166 -166
  1766. package/lib/Result/404.d.ts +1 -1
  1767. package/lib/Result/404.js +132 -132
  1768. package/lib/Result/500.d.ts +1 -1
  1769. package/lib/Result/500.js +170 -170
  1770. package/lib/Result/index.d.ts +7 -7
  1771. package/lib/Result/index.js +93 -93
  1772. package/lib/Result/interface.d.ts +35 -35
  1773. package/lib/Result/interface.js +2 -2
  1774. package/lib/Result/style/index.d.ts +2 -2
  1775. package/lib/Result/style/index.js +4 -4
  1776. package/lib/Select/index.d.ts +3 -3
  1777. package/lib/Select/index.js +7 -7
  1778. package/lib/Select/interface.d.ts +315 -315
  1779. package/lib/Select/interface.js +2 -2
  1780. package/lib/Select/opt-group.d.ts +6 -6
  1781. package/lib/Select/opt-group.js +37 -37
  1782. package/lib/Select/option.d.ts +6 -6
  1783. package/lib/Select/option.js +78 -78
  1784. package/lib/Select/select.d.ts +10 -10
  1785. package/lib/Select/select.js +696 -696
  1786. package/lib/Select/style/index.d.ts +6 -6
  1787. package/lib/Select/style/index.js +8 -8
  1788. package/lib/Select/utils.d.ts +26 -26
  1789. package/lib/Select/utils.js +200 -200
  1790. package/lib/Skeleton/image.d.ts +2 -2
  1791. package/lib/Skeleton/image.js +18 -18
  1792. package/lib/Skeleton/index.d.ts +7 -7
  1793. package/lib/Skeleton/index.js +78 -78
  1794. package/lib/Skeleton/interface.d.ts +50 -50
  1795. package/lib/Skeleton/interface.js +2 -2
  1796. package/lib/Skeleton/style/index.d.ts +2 -2
  1797. package/lib/Skeleton/style/index.js +4 -4
  1798. package/lib/Skeleton/text.d.ts +2 -2
  1799. package/lib/Skeleton/text.js +27 -27
  1800. package/lib/Slider/button.d.ts +21 -21
  1801. package/lib/Slider/button.js +202 -202
  1802. package/lib/Slider/dots.d.ts +17 -17
  1803. package/lib/Slider/dots.js +57 -57
  1804. package/lib/Slider/hooks/useInterval.d.ts +24 -24
  1805. package/lib/Slider/hooks/useInterval.js +127 -127
  1806. package/lib/Slider/hooks/useLegalValue.d.ts +15 -15
  1807. package/lib/Slider/hooks/useLegalValue.js +110 -110
  1808. package/lib/Slider/index.d.ts +5 -5
  1809. package/lib/Slider/index.js +375 -375
  1810. package/lib/Slider/input.d.ts +15 -15
  1811. package/lib/Slider/input.js +105 -105
  1812. package/lib/Slider/interface.d.ts +122 -122
  1813. package/lib/Slider/interface.js +2 -2
  1814. package/lib/Slider/marks.d.ts +16 -16
  1815. package/lib/Slider/marks.js +47 -47
  1816. package/lib/Slider/style/index.d.ts +5 -5
  1817. package/lib/Slider/style/index.js +7 -7
  1818. package/lib/Slider/ticks.d.ts +13 -13
  1819. package/lib/Slider/ticks.js +53 -53
  1820. package/lib/Slider/utils.d.ts +11 -11
  1821. package/lib/Slider/utils.js +99 -99
  1822. package/lib/Space/index.d.ts +5 -5
  1823. package/lib/Space/index.js +139 -139
  1824. package/lib/Space/interface.d.ts +38 -38
  1825. package/lib/Space/interface.js +2 -2
  1826. package/lib/Space/style/index.d.ts +2 -2
  1827. package/lib/Space/style/index.js +4 -4
  1828. package/lib/Space/toArray.d.ts +1 -1
  1829. package/lib/Space/toArray.js +20 -20
  1830. package/lib/Spin/dot-loading.d.ts +5 -5
  1831. package/lib/Spin/dot-loading.js +65 -65
  1832. package/lib/Spin/index.d.ts +5 -5
  1833. package/lib/Spin/index.js +110 -110
  1834. package/lib/Spin/interface.d.ts +50 -50
  1835. package/lib/Spin/interface.js +2 -2
  1836. package/lib/Spin/style/index.d.ts +2 -2
  1837. package/lib/Spin/style/index.js +4 -4
  1838. package/lib/Statistic/countdown.d.ts +5 -5
  1839. package/lib/Statistic/countdown.js +92 -92
  1840. package/lib/Statistic/index.d.ts +8 -8
  1841. package/lib/Statistic/index.js +174 -174
  1842. package/lib/Statistic/interface.d.ts +139 -139
  1843. package/lib/Statistic/interface.js +2 -2
  1844. package/lib/Statistic/style/index.d.ts +3 -3
  1845. package/lib/Statistic/style/index.js +5 -5
  1846. package/lib/Statistic/util.d.ts +1 -1
  1847. package/lib/Statistic/util.js +46 -46
  1848. package/lib/Steps/index.d.ts +8 -8
  1849. package/lib/Steps/index.js +93 -93
  1850. package/lib/Steps/interface.d.ts +124 -124
  1851. package/lib/Steps/interface.js +2 -2
  1852. package/lib/Steps/step.d.ts +5 -5
  1853. package/lib/Steps/step.js +96 -96
  1854. package/lib/Steps/style/index.d.ts +2 -2
  1855. package/lib/Steps/style/index.js +4 -4
  1856. package/lib/Switch/index.d.ts +10 -10
  1857. package/lib/Switch/index.js +136 -136
  1858. package/lib/Switch/interface.d.ts +65 -65
  1859. package/lib/Switch/interface.js +2 -2
  1860. package/lib/Switch/style/index.d.ts +2 -2
  1861. package/lib/Switch/style/index.js +4 -4
  1862. package/lib/Table/__test__/common/columns.d.ts +11 -11
  1863. package/lib/Table/__test__/common/columns.js +199 -199
  1864. package/lib/Table/__test__/common/data.d.ts +29 -29
  1865. package/lib/Table/__test__/common/data.js +142 -142
  1866. package/lib/Table/colgroup.d.ts +13 -13
  1867. package/lib/Table/colgroup.js +67 -67
  1868. package/lib/Table/constant.d.ts +2 -2
  1869. package/lib/Table/constant.js +5 -5
  1870. package/lib/Table/hooks/useColumns.d.ts +3 -3
  1871. package/lib/Table/hooks/useColumns.js +196 -196
  1872. package/lib/Table/hooks/useComponent.d.ts +31 -31
  1873. package/lib/Table/hooks/useComponent.js +70 -70
  1874. package/lib/Table/hooks/useExpand.d.ts +3 -3
  1875. package/lib/Table/hooks/useExpand.js +69 -69
  1876. package/lib/Table/hooks/useRowSelection.d.ts +12 -12
  1877. package/lib/Table/hooks/useRowSelection.js +161 -161
  1878. package/lib/Table/hooks/useSorter.d.ts +7 -7
  1879. package/lib/Table/hooks/useSorter.js +128 -128
  1880. package/lib/Table/hooks/useStickyClassNames.d.ts +3 -3
  1881. package/lib/Table/hooks/useStickyClassNames.js +43 -43
  1882. package/lib/Table/hooks/useStickyOffsets.d.ts +3 -3
  1883. package/lib/Table/hooks/useStickyOffsets.js +68 -68
  1884. package/lib/Table/index.d.ts +9 -9
  1885. package/lib/Table/index.js +10 -10
  1886. package/lib/Table/interface.d.ts +704 -704
  1887. package/lib/Table/interface.js +2 -2
  1888. package/lib/Table/style/index.d.ts +11 -11
  1889. package/lib/Table/style/index.js +13 -13
  1890. package/lib/Table/summary/cell.d.ts +12 -12
  1891. package/lib/Table/summary/cell.js +35 -35
  1892. package/lib/Table/summary/context.d.ts +10 -10
  1893. package/lib/Table/summary/context.js +5 -5
  1894. package/lib/Table/summary/index.d.ts +8 -8
  1895. package/lib/Table/summary/index.js +13 -13
  1896. package/lib/Table/summary/row.d.ts +7 -7
  1897. package/lib/Table/summary/row.js +80 -80
  1898. package/lib/Table/table.d.ts +10 -10
  1899. package/lib/Table/table.js +725 -725
  1900. package/lib/Table/tbody/index.d.ts +3 -3
  1901. package/lib/Table/tbody/index.js +143 -143
  1902. package/lib/Table/tbody/td.d.ts +25 -25
  1903. package/lib/Table/tbody/td.js +141 -141
  1904. package/lib/Table/tbody/tr.d.ts +16 -16
  1905. package/lib/Table/tbody/tr.js +164 -164
  1906. package/lib/Table/tfoot/index.d.ts +3 -3
  1907. package/lib/Table/tfoot/index.js +14 -14
  1908. package/lib/Table/thead/column.d.ts +3 -3
  1909. package/lib/Table/thead/column.js +244 -244
  1910. package/lib/Table/thead/index.d.ts +3 -3
  1911. package/lib/Table/thead/index.js +115 -115
  1912. package/lib/Table/utils.d.ts +17 -17
  1913. package/lib/Table/utils.js +224 -224
  1914. package/lib/Tabs/hook/useDomSize.d.ts +11 -11
  1915. package/lib/Tabs/hook/useDomSize.js +37 -37
  1916. package/lib/Tabs/hook/useHeaderScroll.d.ts +9 -9
  1917. package/lib/Tabs/hook/useHeaderScroll.js +89 -89
  1918. package/lib/Tabs/index.d.ts +4 -4
  1919. package/lib/Tabs/index.js +7 -7
  1920. package/lib/Tabs/interface.d.ts +213 -213
  1921. package/lib/Tabs/interface.js +2 -2
  1922. package/lib/Tabs/style/index.d.ts +3 -3
  1923. package/lib/Tabs/style/index.js +5 -5
  1924. package/lib/Tabs/tab-content.d.ts +9 -9
  1925. package/lib/Tabs/tab-content.js +59 -59
  1926. package/lib/Tabs/tab-header/dropdown-icon.d.ts +1 -1
  1927. package/lib/Tabs/tab-header/dropdown-icon.js +79 -79
  1928. package/lib/Tabs/tab-header/index.d.ts +4 -4
  1929. package/lib/Tabs/tab-header/index.js +329 -329
  1930. package/lib/Tabs/tab-header/tab-ink.d.ts +11 -11
  1931. package/lib/Tabs/tab-header/tab-ink.js +82 -82
  1932. package/lib/Tabs/tab-header/tab-nav-icon.d.ts +17 -17
  1933. package/lib/Tabs/tab-header/tab-nav-icon.js +103 -103
  1934. package/lib/Tabs/tab-header/tab-title.d.ts +17 -17
  1935. package/lib/Tabs/tab-header/tab-title.js +61 -61
  1936. package/lib/Tabs/tab-pane.d.ts +8 -8
  1937. package/lib/Tabs/tab-pane.js +62 -62
  1938. package/lib/Tabs/tabs.d.ts +18 -18
  1939. package/lib/Tabs/tabs.js +178 -178
  1940. package/lib/Tabs/utils.d.ts +12 -12
  1941. package/lib/Tabs/utils.js +43 -43
  1942. package/lib/Tag/index.d.ts +5 -5
  1943. package/lib/Tag/index.js +159 -159
  1944. package/lib/Tag/interface.d.ts +72 -72
  1945. package/lib/Tag/interface.js +2 -2
  1946. package/lib/Tag/style/index.d.ts +2 -2
  1947. package/lib/Tag/style/index.js +4 -4
  1948. package/lib/TimePicker/context.d.ts +7 -7
  1949. package/lib/TimePicker/context.js +4 -4
  1950. package/lib/TimePicker/index.d.ts +4 -4
  1951. package/lib/TimePicker/index.js +54 -54
  1952. package/lib/TimePicker/interface.d.ts +244 -244
  1953. package/lib/TimePicker/interface.js +2 -2
  1954. package/lib/TimePicker/picker.d.ts +15 -15
  1955. package/lib/TimePicker/picker.js +247 -247
  1956. package/lib/TimePicker/range-picker.d.ts +12 -12
  1957. package/lib/TimePicker/range-picker.js +80 -80
  1958. package/lib/TimePicker/style/index.d.ts +5 -5
  1959. package/lib/TimePicker/style/index.js +7 -7
  1960. package/lib/TimePicker/time-column.d.ts +17 -17
  1961. package/lib/TimePicker/time-column.js +80 -80
  1962. package/lib/TimePicker/time-picker.d.ts +24 -24
  1963. package/lib/TimePicker/time-picker.js +260 -260
  1964. package/lib/TimePicker/util.d.ts +7 -7
  1965. package/lib/TimePicker/util.js +64 -64
  1966. package/lib/Timeline/index.d.ts +3 -3
  1967. package/lib/Timeline/index.js +7 -7
  1968. package/lib/Timeline/interface.d.ts +95 -95
  1969. package/lib/Timeline/interface.js +2 -2
  1970. package/lib/Timeline/item.d.ts +7 -7
  1971. package/lib/Timeline/item.js +91 -91
  1972. package/lib/Timeline/style/index.d.ts +2 -2
  1973. package/lib/Timeline/style/index.js +4 -4
  1974. package/lib/Timeline/timeline.d.ts +10 -10
  1975. package/lib/Timeline/timeline.js +121 -121
  1976. package/lib/Tooltip/index.d.ts +10 -10
  1977. package/lib/Tooltip/index.js +114 -114
  1978. package/lib/Tooltip/interface.d.ts +92 -92
  1979. package/lib/Tooltip/interface.js +2 -2
  1980. package/lib/Tooltip/style/index.d.ts +3 -3
  1981. package/lib/Tooltip/style/index.js +5 -5
  1982. package/lib/Transfer/index.d.ts +5 -5
  1983. package/lib/Transfer/index.js +247 -247
  1984. package/lib/Transfer/interface.d.ts +225 -225
  1985. package/lib/Transfer/interface.js +2 -2
  1986. package/lib/Transfer/item.d.ts +3 -3
  1987. package/lib/Transfer/item.js +141 -141
  1988. package/lib/Transfer/list.d.ts +5 -5
  1989. package/lib/Transfer/list.js +178 -178
  1990. package/lib/Transfer/style/index.d.ts +6 -6
  1991. package/lib/Transfer/style/index.js +8 -8
  1992. package/lib/Tree/animation.d.ts +7 -7
  1993. package/lib/Tree/animation.js +143 -143
  1994. package/lib/Tree/context.d.ts +27 -27
  1995. package/lib/Tree/context.js +5 -5
  1996. package/lib/Tree/index.d.ts +73 -73
  1997. package/lib/Tree/index.js +774 -774
  1998. package/lib/Tree/interface.d.ts +344 -344
  1999. package/lib/Tree/interface.js +2 -2
  2000. package/lib/Tree/node-list.d.ts +3 -3
  2001. package/lib/Tree/node-list.js +149 -149
  2002. package/lib/Tree/node.d.ts +12 -12
  2003. package/lib/Tree/node.js +292 -292
  2004. package/lib/Tree/style/index.d.ts +3 -3
  2005. package/lib/Tree/style/index.js +5 -5
  2006. package/lib/Tree/util.d.ts +13 -13
  2007. package/lib/Tree/util.js +179 -179
  2008. package/lib/TreeSelect/hook/useKeyCache.d.ts +6 -6
  2009. package/lib/TreeSelect/hook/useKeyCache.js +88 -88
  2010. package/lib/TreeSelect/hook/useStateValue.d.ts +19 -19
  2011. package/lib/TreeSelect/hook/useStateValue.js +146 -146
  2012. package/lib/TreeSelect/hook/useTreeData.d.ts +3 -3
  2013. package/lib/TreeSelect/hook/useTreeData.js +39 -39
  2014. package/lib/TreeSelect/index.d.ts +4 -4
  2015. package/lib/TreeSelect/index.js +7 -7
  2016. package/lib/TreeSelect/interface.d.ts +211 -211
  2017. package/lib/TreeSelect/interface.js +13 -13
  2018. package/lib/TreeSelect/style/index.d.ts +5 -5
  2019. package/lib/TreeSelect/style/index.js +7 -7
  2020. package/lib/TreeSelect/tree-list.d.ts +12 -12
  2021. package/lib/TreeSelect/tree-list.js +168 -168
  2022. package/lib/TreeSelect/tree-select.d.ts +12 -12
  2023. package/lib/TreeSelect/tree-select.js +367 -367
  2024. package/lib/TreeSelect/utils.d.ts +1 -1
  2025. package/lib/TreeSelect/utils.js +17 -17
  2026. package/lib/Trigger/getPopupStyle.d.ts +20 -20
  2027. package/lib/Trigger/getPopupStyle.js +398 -398
  2028. package/lib/Trigger/index.d.ts +123 -123
  2029. package/lib/Trigger/index.js +942 -942
  2030. package/lib/Trigger/interface.d.ts +246 -246
  2031. package/lib/Trigger/interface.js +2 -2
  2032. package/lib/Trigger/portal.d.ts +8 -8
  2033. package/lib/Trigger/portal.js +29 -29
  2034. package/lib/Trigger/style/index.d.ts +2 -2
  2035. package/lib/Trigger/style/index.js +4 -4
  2036. package/lib/Typography/base.d.ts +6 -6
  2037. package/lib/Typography/base.js +241 -241
  2038. package/lib/Typography/edit-content.d.ts +4 -4
  2039. package/lib/Typography/edit-content.js +54 -54
  2040. package/lib/Typography/ellipsis.d.ts +6 -6
  2041. package/lib/Typography/ellipsis.js +228 -228
  2042. package/lib/Typography/index.d.ts +13 -13
  2043. package/lib/Typography/index.js +16 -16
  2044. package/lib/Typography/interface.d.ts +262 -262
  2045. package/lib/Typography/interface.js +2 -2
  2046. package/lib/Typography/operations.d.ts +3 -3
  2047. package/lib/Typography/operations.js +113 -113
  2048. package/lib/Typography/paragraph.d.ts +4 -4
  2049. package/lib/Typography/paragraph.js +49 -49
  2050. package/lib/Typography/style/index.d.ts +5 -5
  2051. package/lib/Typography/style/index.js +7 -7
  2052. package/lib/Typography/text.d.ts +3 -3
  2053. package/lib/Typography/text.js +43 -43
  2054. package/lib/Typography/title.d.ts +4 -4
  2055. package/lib/Typography/title.js +55 -55
  2056. package/lib/Typography/typography.d.ts +4 -4
  2057. package/lib/Typography/typography.js +37 -37
  2058. package/lib/Typography/useCssEllipsis.d.ts +6 -6
  2059. package/lib/Typography/useCssEllipsis.js +71 -71
  2060. package/lib/Typography/useEllipsis.d.ts +21 -21
  2061. package/lib/Typography/useEllipsis.js +242 -242
  2062. package/lib/Upload/index.d.ts +3 -3
  2063. package/lib/Upload/index.js +7 -7
  2064. package/lib/Upload/interface.d.ts +337 -337
  2065. package/lib/Upload/interface.js +9 -9
  2066. package/lib/Upload/list/index.d.ts +6 -6
  2067. package/lib/Upload/list/index.js +151 -151
  2068. package/lib/Upload/list/pictureItem.d.ts +9 -9
  2069. package/lib/Upload/list/pictureItem.js +81 -81
  2070. package/lib/Upload/list/textItem.d.ts +9 -9
  2071. package/lib/Upload/list/textItem.js +127 -127
  2072. package/lib/Upload/list/uploadProgress.d.ts +14 -14
  2073. package/lib/Upload/list/uploadProgress.js +84 -84
  2074. package/lib/Upload/request.d.ts +3 -3
  2075. package/lib/Upload/request.js +66 -66
  2076. package/lib/Upload/style/index.d.ts +6 -6
  2077. package/lib/Upload/style/index.js +8 -8
  2078. package/lib/Upload/trigger-node.d.ts +6 -6
  2079. package/lib/Upload/trigger-node.js +156 -156
  2080. package/lib/Upload/upload.d.ts +12 -12
  2081. package/lib/Upload/upload.js +249 -249
  2082. package/lib/Upload/uploader.d.ts +28 -28
  2083. package/lib/Upload/uploader.js +261 -261
  2084. package/lib/Upload/util.d.ts +4 -4
  2085. package/lib/Upload/util.js +120 -120
  2086. package/lib/VerificationCode/index.d.ts +4 -4
  2087. package/lib/VerificationCode/index.js +7 -7
  2088. package/lib/VerificationCode/interface.d.ts +80 -80
  2089. package/lib/VerificationCode/interface.js +2 -2
  2090. package/lib/VerificationCode/style/index.d.ts +3 -3
  2091. package/lib/VerificationCode/style/index.js +5 -5
  2092. package/lib/VerificationCode/verification-code.d.ts +5 -5
  2093. package/lib/VerificationCode/verification-code.js +105 -105
  2094. package/lib/Watermark/index.d.ts +4 -4
  2095. package/lib/Watermark/index.js +7 -7
  2096. package/lib/Watermark/interface.d.ts +70 -70
  2097. package/lib/Watermark/interface.js +2 -2
  2098. package/lib/Watermark/style/index.d.ts +1 -1
  2099. package/lib/Watermark/style/index.js +3 -3
  2100. package/lib/Watermark/watermark.d.ts +5 -5
  2101. package/lib/Watermark/watermark.js +93 -93
  2102. package/lib/_class/Draggable/index.d.ts +2 -2
  2103. package/lib/_class/Draggable/index.js +60 -60
  2104. package/lib/_class/Draggable/interface.d.ts +24 -24
  2105. package/lib/_class/Draggable/interface.js +2 -2
  2106. package/lib/_class/Draggable/item.d.ts +3 -3
  2107. package/lib/_class/Draggable/item.js +112 -112
  2108. package/lib/_class/OverflowEllipsis/OverflowItem.d.ts +10 -10
  2109. package/lib/_class/OverflowEllipsis/OverflowItem.js +48 -48
  2110. package/lib/_class/OverflowEllipsis/index.d.ts +11 -11
  2111. package/lib/_class/OverflowEllipsis/index.js +134 -134
  2112. package/lib/_class/VirtualList/Filler.d.ts +15 -15
  2113. package/lib/_class/VirtualList/Filler.js +51 -51
  2114. package/lib/_class/VirtualList/index.d.ts +39 -39
  2115. package/lib/_class/VirtualList/index.js +509 -509
  2116. package/lib/_class/VirtualList/utils/algorithmUtil.d.ts +23 -23
  2117. package/lib/_class/VirtualList/utils/algorithmUtil.js +75 -75
  2118. package/lib/_class/VirtualList/utils/itemUtil.d.ts +75 -75
  2119. package/lib/_class/VirtualList/utils/itemUtil.js +147 -147
  2120. package/lib/_class/icon-hover.d.ts +10 -10
  2121. package/lib/_class/icon-hover.js +61 -61
  2122. package/lib/_class/notice.d.ts +50 -50
  2123. package/lib/_class/notice.js +194 -194
  2124. package/lib/_class/notification.d.ts +15 -15
  2125. package/lib/_class/notification.js +95 -95
  2126. package/lib/_class/picker/input-range.d.ts +35 -35
  2127. package/lib/_class/picker/input-range.js +197 -197
  2128. package/lib/_class/picker/input.d.ts +31 -31
  2129. package/lib/_class/picker/input.js +138 -138
  2130. package/lib/_class/select-view.d.ts +158 -158
  2131. package/lib/_class/select-view.js +392 -392
  2132. package/lib/_hooks/useVerificationCode/index.d.ts +2 -2
  2133. package/lib/_hooks/useVerificationCode/index.js +125 -125
  2134. package/lib/_hooks/useVerificationCode/interface.d.ts +63 -63
  2135. package/lib/_hooks/useVerificationCode/interface.js +2 -2
  2136. package/lib/_hooks/useWatermark/index.d.ts +2 -2
  2137. package/lib/_hooks/useWatermark/index.js +313 -313
  2138. package/lib/_hooks/useWatermark/interface.d.ts +81 -81
  2139. package/lib/_hooks/useWatermark/interface.js +2 -2
  2140. package/lib/_hooks/useWatermark/utils.d.ts +1 -1
  2141. package/lib/_hooks/useWatermark/utils.js +19 -19
  2142. package/lib/_util/CSSTransition.d.ts +2 -2
  2143. package/lib/_util/CSSTransition.js +107 -107
  2144. package/lib/_util/classNames.d.ts +5 -5
  2145. package/lib/_util/classNames.js +67 -67
  2146. package/lib/_util/clipboard.d.ts +1 -1
  2147. package/lib/_util/clipboard.js +86 -86
  2148. package/lib/_util/color.d.ts +27 -27
  2149. package/lib/_util/color.js +202 -202
  2150. package/lib/_util/constant.d.ts +3 -3
  2151. package/lib/_util/constant.js +26 -26
  2152. package/lib/_util/contextHolder.d.ts +9 -9
  2153. package/lib/_util/contextHolder.js +68 -68
  2154. package/lib/_util/dayjs.d.ts +21 -21
  2155. package/lib/_util/dayjs.js +311 -311
  2156. package/lib/_util/dom.d.ts +12 -12
  2157. package/lib/_util/dom.js +70 -70
  2158. package/lib/_util/fillNBSP.d.ts +1 -1
  2159. package/lib/_util/fillNBSP.js +9 -9
  2160. package/lib/_util/getHighlightText.d.ts +5 -5
  2161. package/lib/_util/getHighlightText.js +57 -57
  2162. package/lib/_util/getHotkeyHandler.d.ts +16 -16
  2163. package/lib/_util/getHotkeyHandler.js +38 -38
  2164. package/lib/_util/getStringLength.d.ts +1 -1
  2165. package/lib/_util/getStringLength.js +16 -16
  2166. package/lib/_util/hooks/useComputedState.d.ts +4 -4
  2167. package/lib/_util/hooks/useComputedState.js +28 -28
  2168. package/lib/_util/hooks/useCreate.d.ts +1 -1
  2169. package/lib/_util/hooks/useCreate.js +30 -30
  2170. package/lib/_util/hooks/useForceUpdate.d.ts +2 -2
  2171. package/lib/_util/hooks/useForceUpdate.js +24 -24
  2172. package/lib/_util/hooks/useId.d.ts +6 -6
  2173. package/lib/_util/hooks/useId.js +36 -36
  2174. package/lib/_util/hooks/useInView.d.ts +11 -11
  2175. package/lib/_util/hooks/useInView.js +81 -81
  2176. package/lib/_util/hooks/useIntersectionObserver.d.ts +7 -7
  2177. package/lib/_util/hooks/useIntersectionObserver.js +32 -32
  2178. package/lib/_util/hooks/useInterval.d.ts +1 -1
  2179. package/lib/_util/hooks/useInterval.js +33 -33
  2180. package/lib/_util/hooks/useIsFirstRender.d.ts +1 -1
  2181. package/lib/_util/hooks/useIsFirstRender.js +11 -11
  2182. package/lib/_util/hooks/useIsomorphicLayoutEffect.d.ts +3 -3
  2183. package/lib/_util/hooks/useIsomorphicLayoutEffect.js +8 -8
  2184. package/lib/_util/hooks/useKeyboardEvent.d.ts +14 -14
  2185. package/lib/_util/hooks/useKeyboardEvent.js +32 -32
  2186. package/lib/_util/hooks/useMergeProps.d.ts +4 -4
  2187. package/lib/_util/hooks/useMergeProps.js +37 -37
  2188. package/lib/_util/hooks/useMergeValue.d.ts +5 -5
  2189. package/lib/_util/hooks/useMergeValue.js +50 -50
  2190. package/lib/_util/hooks/useOverflowHidden.d.ts +5 -5
  2191. package/lib/_util/hooks/useOverflowHidden.js +46 -46
  2192. package/lib/_util/hooks/useOverrideRef.d.ts +5 -5
  2193. package/lib/_util/hooks/useOverrideRef.js +40 -40
  2194. package/lib/_util/hooks/usePersistCallback.d.ts +1 -1
  2195. package/lib/_util/hooks/usePersistCallback.js +43 -43
  2196. package/lib/_util/hooks/usePrevious.d.ts +2 -2
  2197. package/lib/_util/hooks/usePrevious.js +11 -11
  2198. package/lib/_util/hooks/useRefs.d.ts +1 -1
  2199. package/lib/_util/hooks/useRefs.js +18 -18
  2200. package/lib/_util/hooks/useResizeObserver.d.ts +6 -6
  2201. package/lib/_util/hooks/useResizeObserver.js +31 -31
  2202. package/lib/_util/hooks/useStateCallback.d.ts +5 -5
  2203. package/lib/_util/hooks/useStateCallback.js +32 -32
  2204. package/lib/_util/hooks/useStateWithPromise.d.ts +2 -2
  2205. package/lib/_util/hooks/useStateWithPromise.js +49 -49
  2206. package/lib/_util/hooks/useUpdate.d.ts +2 -2
  2207. package/lib/_util/hooks/useUpdate.js +16 -16
  2208. package/lib/_util/hooks/useWatch.d.ts +2 -2
  2209. package/lib/_util/hooks/useWatch.js +16 -16
  2210. package/lib/_util/include.d.ts +1 -1
  2211. package/lib/_util/include.js +13 -13
  2212. package/lib/_util/is.d.ts +27 -27
  2213. package/lib/_util/is.js +159 -159
  2214. package/lib/_util/keycode.d.ts +36 -36
  2215. package/lib/_util/keycode.js +40 -40
  2216. package/lib/_util/mergeProps.d.ts +1 -1
  2217. package/lib/_util/mergeProps.js +26 -26
  2218. package/lib/_util/mergedToString.d.ts +2 -2
  2219. package/lib/_util/mergedToString.js +26 -26
  2220. package/lib/_util/omit.d.ts +1 -1
  2221. package/lib/_util/omit.js +25 -25
  2222. package/lib/_util/pad.d.ts +2 -2
  2223. package/lib/_util/pad.js +23 -23
  2224. package/lib/_util/pick.d.ts +4 -4
  2225. package/lib/_util/pick.js +30 -30
  2226. package/lib/_util/raf.d.ts +3 -3
  2227. package/lib/_util/raf.js +33 -33
  2228. package/lib/_util/react-dom.d.ts +13 -13
  2229. package/lib/_util/react-dom.js +113 -113
  2230. package/lib/_util/resizeObserver.d.ts +21 -21
  2231. package/lib/_util/resizeObserver.js +114 -114
  2232. package/lib/_util/responsiveObserve.d.ts +15 -15
  2233. package/lib/_util/responsiveObserve.js +88 -88
  2234. package/lib/_util/scrollIntoView.d.ts +2 -2
  2235. package/lib/_util/scrollIntoView.js +33 -33
  2236. package/lib/_util/style.d.ts +3 -3
  2237. package/lib/_util/style.js +44 -44
  2238. package/lib/_util/throttleByRaf.d.ts +4 -4
  2239. package/lib/_util/throttleByRaf.js +48 -48
  2240. package/lib/_util/throttleByRafV2.d.ts +4 -4
  2241. package/lib/_util/throttleByRafV2.js +52 -52
  2242. package/lib/_util/type.d.ts +4 -4
  2243. package/lib/_util/type.js +2 -2
  2244. package/lib/_util/warning.d.ts +1 -1
  2245. package/lib/_util/warning.js +14 -14
  2246. package/lib/index.d.ts +142 -142
  2247. package/lib/index.js +150 -150
  2248. package/lib/locale/ar-EG.d.ts +228 -228
  2249. package/lib/locale/ar-EG.js +169 -169
  2250. package/lib/locale/de-DE.d.ts +228 -228
  2251. package/lib/locale/de-DE.js +167 -167
  2252. package/lib/locale/default.d.ts +2 -2
  2253. package/lib/locale/default.js +7 -7
  2254. package/lib/locale/en-US.d.ts +234 -234
  2255. package/lib/locale/en-US.js +174 -174
  2256. package/lib/locale/es-ES.d.ts +228 -228
  2257. package/lib/locale/es-ES.js +167 -167
  2258. package/lib/locale/fr-FR.d.ts +228 -228
  2259. package/lib/locale/fr-FR.js +167 -167
  2260. package/lib/locale/id-ID.d.ts +228 -228
  2261. package/lib/locale/id-ID.js +167 -167
  2262. package/lib/locale/interface.d.ts +39 -39
  2263. package/lib/locale/interface.js +2 -2
  2264. package/lib/locale/it-IT.d.ts +228 -228
  2265. package/lib/locale/it-IT.js +167 -167
  2266. package/lib/locale/ja-JP.d.ts +281 -281
  2267. package/lib/locale/ja-JP.js +220 -220
  2268. package/lib/locale/ko-KR.d.ts +228 -228
  2269. package/lib/locale/ko-KR.js +167 -167
  2270. package/lib/locale/ms-MY.d.ts +228 -228
  2271. package/lib/locale/ms-MY.js +167 -167
  2272. package/lib/locale/pt-BR.d.ts +228 -228
  2273. package/lib/locale/pt-BR.js +167 -167
  2274. package/lib/locale/pt-PT.d.ts +228 -228
  2275. package/lib/locale/pt-PT.js +167 -167
  2276. package/lib/locale/ru-RU.d.ts +228 -228
  2277. package/lib/locale/ru-RU.js +167 -167
  2278. package/lib/locale/th-TH.d.ts +228 -228
  2279. package/lib/locale/th-TH.js +167 -167
  2280. package/lib/locale/tr-TR.d.ts +229 -229
  2281. package/lib/locale/tr-TR.js +169 -169
  2282. package/lib/locale/vi-VN.d.ts +228 -228
  2283. package/lib/locale/vi-VN.js +168 -168
  2284. package/lib/locale/zh-CN.d.ts +281 -281
  2285. package/lib/locale/zh-CN.js +221 -221
  2286. package/lib/locale/zh-HK.d.ts +281 -281
  2287. package/lib/locale/zh-HK.js +221 -221
  2288. package/lib/locale/zh-TW.d.ts +281 -281
  2289. package/lib/locale/zh-TW.js +220 -220
  2290. package/package.json +5 -16
@@ -1,942 +1,942 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
- if (k2 === undefined) k2 = k;
30
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
31
- }) : (function(o, m, k, k2) {
32
- if (k2 === undefined) k2 = k;
33
- o[k2] = m[k];
34
- }));
35
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
36
- Object.defineProperty(o, "default", { enumerable: true, value: v });
37
- }) : function(o, v) {
38
- o["default"] = v;
39
- });
40
- var __importStar = (this && this.__importStar) || function (mod) {
41
- if (mod && mod.__esModule) return mod;
42
- var result = {};
43
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44
- __setModuleDefault(result, mod);
45
- return result;
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.EventsByTriggerNeed = void 0;
52
- var react_1 = __importStar(require("react"));
53
- var resize_observer_polyfill_1 = __importDefault(require("resize-observer-polyfill"));
54
- var react_transition_group_1 = require("react-transition-group");
55
- var react_dom_1 = require("../_util/react-dom");
56
- var dom_1 = require("../_util/dom");
57
- var is_1 = require("../_util/is");
58
- var pick_1 = require("../_util/pick");
59
- var keycode_1 = require("../_util/keycode");
60
- var portal_1 = __importDefault(require("./portal"));
61
- var resizeObserver_1 = __importDefault(require("../_util/resizeObserver"));
62
- var classNames_1 = __importDefault(require("../_util/classNames"));
63
- var ConfigProvider_1 = require("../ConfigProvider");
64
- var getPopupStyle_1 = __importStar(require("./getPopupStyle"));
65
- var throttleByRaf_1 = __importDefault(require("../_util/throttleByRaf"));
66
- var raf_1 = require("../_util/raf");
67
- var mergeProps_1 = __importDefault(require("../_util/mergeProps"));
68
- function getDOMPos(dom, options) {
69
- if (!dom) {
70
- return {};
71
- }
72
- var _a = (0, getPopupStyle_1.getBoundingClientRect)(dom, options), width = _a.width, height = _a.height, left = _a.left, right = _a.right;
73
- return {
74
- width: width,
75
- height: height,
76
- left: left,
77
- right: right,
78
- };
79
- }
80
- exports.EventsByTriggerNeed = [
81
- 'onClick',
82
- 'onMouseEnter',
83
- 'onMouseLeave',
84
- 'onMouseMove',
85
- 'onFocus',
86
- 'onBlur',
87
- 'onContextMenu',
88
- 'onKeyDown',
89
- ];
90
- function splitChildrenStyle(obj, keys) {
91
- var picked = {};
92
- var omitted = __assign({}, obj);
93
- keys.forEach(function (key) {
94
- if (obj && key in obj) {
95
- picked[key] = obj[key];
96
- delete omitted[key];
97
- }
98
- });
99
- return { picked: picked, omitted: omitted };
100
- }
101
- var defaultProps = {
102
- blurToHide: true,
103
- // clickToClose: true,
104
- classNames: 'fadeIn',
105
- trigger: 'hover',
106
- position: 'bottom',
107
- duration: 200,
108
- unmountOnExit: true,
109
- popupAlign: {},
110
- popupHoverStay: true,
111
- clickOutsideToClose: true,
112
- escToClose: false,
113
- mouseLeaveToClose: true,
114
- containerScrollToClose: false,
115
- getDocument: function () { return window.document; },
116
- autoFixPosition: true,
117
- mouseEnterDelay: 100,
118
- mouseLeaveDelay: 100,
119
- autoFitPosition: true,
120
- };
121
- var Trigger = /** @class */ (function (_super) {
122
- __extends(Trigger, _super);
123
- function Trigger(props, context) {
124
- var _this = _super.call(this, props, context) || this;
125
- _this.delayTimer = null;
126
- _this.updatePositionTimer = null;
127
- // is popup open?
128
- _this.popupOpen = false;
129
- // if mousedown to hide popup, ignore onFocus
130
- _this.mousedownToHide = false;
131
- _this.hasPopupMouseDown = false;
132
- _this.unmount = false;
133
- _this.isDidMount = false;
134
- // 保存鼠标的位置
135
- _this.mouseLocation = {
136
- clientX: 0,
137
- clientY: 0,
138
- };
139
- // 保存当前的mount container dom元素
140
- _this.observerContainer = null;
141
- // 保存当前节点到 popupContainer 间的所有滚动元素
142
- _this.scrollElements = null;
143
- // container 触发 resize时执行
144
- _this.resizeObserver = new resize_observer_polyfill_1.default(function () {
145
- _this.handleUpdatePosition();
146
- });
147
- _this.childrenDom = null;
148
- // 保存children节点的尺寸。 主要用于在弹出层动画前和动画完成后比较尺寸是否有变化。
149
- _this.childrenDomSize = {};
150
- _this.getMergedProps = function (basePropsOrKeys) {
151
- var componentConfig = _this.context.componentConfig;
152
- var props = (0, mergeProps_1.default)(basePropsOrKeys && (0, is_1.isObject)(basePropsOrKeys) ? basePropsOrKeys : _this.props, defaultProps, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.Trigger, basePropsOrKeys && (0, is_1.isArray)(basePropsOrKeys) ? basePropsOrKeys : undefined);
153
- return props;
154
- };
155
- _this.getRootElement = function () {
156
- var _a, _b;
157
- _this.childrenDom = (0, react_dom_1.findDOMNode)(((_b = (_a = _this.props).getTargetDOMNode) === null || _b === void 0 ? void 0 : _b.call(_a)) || _this.rootElementRef, _this);
158
- return _this.childrenDom;
159
- };
160
- _this.getPopupElement = function () {
161
- var _a;
162
- return ((_a = _this.triggerRef) === null || _a === void 0 ? void 0 : _a.current) || null;
163
- };
164
- _this.offScrollListeners = function () {
165
- (_this.scrollElements || []).forEach(function (item) {
166
- (0, dom_1.off)(item, 'scroll', _this.handleScroll);
167
- });
168
- _this.scrollElements = null;
169
- };
170
- _this.offWindowResize = function () {
171
- _this.handleWindowResize = false;
172
- (0, dom_1.off)(window, 'resize', _this.handleUpdatePosition);
173
- };
174
- _this.offContainerResize = function () {
175
- if (_this.resizeObserver && _this.observerContainer) {
176
- _this.resizeObserver.unobserve(_this.observerContainer);
177
- _this.observerContainer = null;
178
- }
179
- };
180
- _this.handleScroll = function () {
181
- var currentProps = _this.getMergedProps(['containerScrollToClose', 'updateOnScroll']);
182
- if (currentProps.containerScrollToClose) {
183
- _this.setPopupVisible(false);
184
- }
185
- else if (currentProps.updateOnScroll) {
186
- _this.handleUpdatePosition();
187
- }
188
- };
189
- _this.onContainersScroll = function (props) {
190
- var _a, _b;
191
- if (_this.scrollElements) {
192
- return;
193
- }
194
- _this.scrollElements = (0, dom_1.getScrollElements)(_this.childrenDom, (_a = _this.popupContainer) === null || _a === void 0 ? void 0 : _a.parentNode);
195
- // 弹出层挂载载 body 且 body 不是滚动元素时,需要额外检测 document.documentElement 是否是滚动元素
196
- // 默认 html,body 不限制宽高时,滚动事件仅能在 window 上监听
197
- // fix: https://github.com/arco-design/arco-design/issues/1599
198
- if (props.containerScrollToClose &&
199
- ((_b = _this.popupContainer) === null || _b === void 0 ? void 0 : _b.parentNode) === document.body &&
200
- _this.scrollElements.indexOf(document.body) === -1 &&
201
- (0, dom_1.isScrollElement)(document.documentElement)) {
202
- _this.scrollElements.push(window);
203
- }
204
- _this.scrollElements.forEach(function (item) {
205
- (0, dom_1.on)(item, 'scroll', _this.handleScroll);
206
- });
207
- };
208
- _this.onContainerResize = function () {
209
- var _a;
210
- // containerParent 相当于是通过getPopupContainer传入的节点
211
- // 因为 this.popupContainer 会被挂载到getPopupContainer返回的节点上
212
- var containerParent = (_a = _this.popupContainer) === null || _a === void 0 ? void 0 : _a.parentNode;
213
- if (_this.resizeObserver && _this.observerContainer !== containerParent) {
214
- // 说明containerParent变了,取消之前的监听,监听新的container
215
- _this.offContainerResize();
216
- containerParent && _this.resizeObserver.observe(containerParent);
217
- _this.observerContainer = containerParent;
218
- }
219
- };
220
- // getPopupContainer 改变时候触发
221
- _this.handleUpdatePosition = (0, throttleByRaf_1.default)(function () {
222
- _this.updatePopupPosition();
223
- });
224
- _this.isClickTrigger = function () {
225
- var trigger = _this.getMergedProps(['trigger']).trigger;
226
- return [].concat(trigger).indexOf('click') > -1;
227
- };
228
- _this.isFocusTrigger = function () {
229
- var trigger = _this.getMergedProps(['trigger']).trigger;
230
- return [].concat(trigger).indexOf('focus') > -1;
231
- };
232
- _this.isHoverTrigger = function () {
233
- var trigger = _this.getMergedProps(['trigger']).trigger;
234
- return [].concat(trigger).indexOf('hover') > -1;
235
- };
236
- _this.isContextMenuTrigger = function () {
237
- var trigger = _this.getMergedProps(['trigger']).trigger;
238
- return [].concat(trigger).indexOf('contextMenu') > -1;
239
- };
240
- // 是否在鼠标移出触发节点和popup的时候隐藏弹出层
241
- _this.isMouseLeaveToClose = function () {
242
- return _this.isHoverTrigger() && _this.getMergedProps(['mouseLeaveToClose']).mouseLeaveToClose;
243
- };
244
- // 是否在悬浮到popup的时候隐藏弹出层
245
- _this.isPopupHoverHide = function () {
246
- return _this.isHoverTrigger() && !_this.getMergedProps(['popupHoverStay']).popupHoverStay;
247
- };
248
- _this.isClickToHide = function () {
249
- if (_this.isClickTrigger() || _this.isContextMenuTrigger()) {
250
- var _a = _this.getMergedProps(['clickToClose']).clickToClose, clickToClose = _a === void 0 ? true : _a;
251
- return clickToClose;
252
- }
253
- // 2.44.0 及之前版本 clickToClose 对 hover触发不生效。
254
- // 2.44.1 之后只有在props直接传入clickToClose 时才生效于 hover 触发方式,避免如以下用法前后表现不一致
255
- // <Trigger><Trigger trigger="click"><button>sss</button></a></Trigger></Trigger>
256
- return _this.isHoverTrigger() && _this.props.clickToClose;
257
- };
258
- _this.isBlurToHide = function () {
259
- return _this.isFocusTrigger() && _this.getMergedProps(['blurToHide']).blurToHide;
260
- };
261
- _this.clearTimer = function () {
262
- if (_this.updatePositionTimer) {
263
- if (_this.updatePositionTimer.cancel) {
264
- _this.updatePositionTimer.cancel();
265
- }
266
- else {
267
- clearTimeout(_this.updatePositionTimer);
268
- _this.updatePositionTimer = null;
269
- }
270
- }
271
- if (_this.delayTimer) {
272
- clearTimeout(_this.delayTimer);
273
- _this.delayTimer = null;
274
- }
275
- if (_this.mouseDownTimeout) {
276
- clearTimeout(_this.mouseDownTimeout);
277
- _this.mouseDownTimeout = null;
278
- }
279
- };
280
- _this.offClickOutside = function () {
281
- if (_this.handleClickOutside) {
282
- var getDocument = _this.getMergedProps(['getDocument']).getDocument;
283
- var root = (0, is_1.isFunction)(getDocument) && getDocument();
284
- (0, dom_1.off)(root, 'mousedown', _this.onClickOutside);
285
- _this.handleClickOutside = false;
286
- }
287
- };
288
- _this.getTransformOrigin = function (position) {
289
- var _a, _b;
290
- var content = _this.getPopupElement();
291
- if (!content)
292
- return {};
293
- var _c = _this.getMergedProps(['showArrow', 'classNames']), showArrow = _c.showArrow, classNames = _c.classNames;
294
- var top = (showArrow && ((_a = _this.arrowStyle) === null || _a === void 0 ? void 0 : _a.top)) || 0;
295
- var left = (showArrow && ((_b = _this.arrowStyle) === null || _b === void 0 ? void 0 : _b.left)) || 0;
296
- top = top ? top + "px" : '';
297
- left = left ? left + "px" : '';
298
- var transformOrigin = {
299
- top: (left || '50%') + " 100% 0",
300
- tl: (left || '15px') + " 100% 0",
301
- tr: (left || content.clientWidth - 15 + "px") + " 100% 0",
302
- bottom: (left || '50%') + " 0 0",
303
- bl: (left || '15px') + " 0 0",
304
- br: (left || content.clientWidth - 15 + "px") + " 0 0",
305
- left: "100% " + (top || '50%') + " 0",
306
- lt: "100% " + (top || '15px') + " 0",
307
- lb: "100% " + (top || content.clientHeight - 15 + "px") + " 0",
308
- right: "0 " + (top || '50%') + " 0",
309
- rt: "0 " + (top || '15px') + " 0",
310
- rb: "0 " + (top || content.clientHeight - 15 + "px") + " 0",
311
- };
312
- // tooltip popover popconfirm
313
- if (classNames && classNames.indexOf('zoom') > -1) {
314
- return {
315
- transformOrigin: transformOrigin[position],
316
- };
317
- }
318
- if (classNames === 'slideDynamicOrigin') {
319
- var origin_1 = '0% 0%';
320
- if (['top', 'tl', 'tr'].indexOf(position) > -1) {
321
- origin_1 = '100% 100%';
322
- }
323
- return {
324
- transformOrigin: origin_1,
325
- };
326
- }
327
- return {};
328
- };
329
- // 下拉框存在初始translateY/translateX,需要根据真实的弹出位置确定
330
- _this.getTransformTranslate = function () {
331
- if (_this.getMergedProps(['classNames']).classNames !== 'slideDynamicOrigin') {
332
- return '';
333
- }
334
- switch (_this.realPosition) {
335
- case 'bottom':
336
- case 'bl':
337
- case 'br':
338
- return 'scaleY(0.9) translateY(-4px)';
339
- case 'top':
340
- case 'tl':
341
- case 'tr':
342
- return 'scaleY(0.9) translateY(4px)';
343
- default:
344
- return '';
345
- }
346
- };
347
- _this.getPopupStyle = function () {
348
- if (_this.unmount || !_this.popupContainer) {
349
- return;
350
- }
351
- var mountContainer = _this.popupContainer;
352
- var content = _this.triggerRef.current;
353
- var child = _this.getRootElement();
354
- // offsetParent=null when display:none or position: fixed
355
- if (!child.offsetParent && !child.getClientRects().length) {
356
- return _this.state.popupStyle;
357
- }
358
- var mergedProps = _this.getMergedProps();
359
- var _a = (0, getPopupStyle_1.default)(mergedProps, content, child, mountContainer, _this.mouseLocation), style = _a.style, arrowStyle = _a.arrowStyle, realPosition = _a.realPosition;
360
- _this.realPosition = realPosition || mergedProps.position;
361
- _this.arrowStyle = arrowStyle || {};
362
- return __assign(__assign({}, style), _this.getTransformOrigin(_this.realPosition));
363
- };
364
- _this.showPopup = function (callback) {
365
- if (callback === void 0) { callback = function () { }; }
366
- var popupStyle = _this.getPopupStyle();
367
- _this.setState({
368
- popupStyle: popupStyle,
369
- }, callback);
370
- };
371
- _this.update = (0, throttleByRaf_1.default)(function (callback) {
372
- if (_this.unmount || !_this.state.popupVisible) {
373
- return;
374
- }
375
- var popupStyle = _this.getPopupStyle();
376
- _this.setState({
377
- popupStyle: popupStyle,
378
- }, function () {
379
- callback === null || callback === void 0 ? void 0 : callback();
380
- });
381
- });
382
- _this.getRootDOMNode = function () {
383
- return _this.getRootElement();
384
- };
385
- _this.updatePopupPosition = function (delay, callback) {
386
- if (delay === void 0) { delay = 0; }
387
- var currentVisible = _this.state.popupVisible;
388
- if (!currentVisible) {
389
- return;
390
- }
391
- if (delay < 4) {
392
- _this.updatePositionTimer = _this.update(callback);
393
- return;
394
- }
395
- _this.updatePositionTimer = setTimeout(function () {
396
- var popupStyle = _this.getPopupStyle();
397
- _this.setState({
398
- popupStyle: popupStyle,
399
- }, function () {
400
- callback === null || callback === void 0 ? void 0 : callback();
401
- });
402
- }, delay);
403
- };
404
- _this.setPopupVisible = function (visible, delay, callback) {
405
- if (delay === void 0) { delay = 0; }
406
- var mergedProps = _this.getMergedProps(['onVisibleChange', 'popupVisible']);
407
- var onVisibleChange = mergedProps.onVisibleChange;
408
- var currentVisible = _this.state.popupVisible;
409
- if (visible !== currentVisible) {
410
- _this.delayToDo(delay, function () {
411
- onVisibleChange && onVisibleChange(visible);
412
- if (!('popupVisible' in mergedProps)) {
413
- if (visible) {
414
- _this.setState({
415
- popupVisible: true,
416
- }, function () {
417
- _this.showPopup(callback);
418
- });
419
- }
420
- else {
421
- _this.setState({
422
- popupVisible: false,
423
- }, function () {
424
- callback === null || callback === void 0 ? void 0 : callback();
425
- });
426
- }
427
- }
428
- else {
429
- callback === null || callback === void 0 ? void 0 : callback();
430
- }
431
- });
432
- }
433
- else {
434
- callback === null || callback === void 0 ? void 0 : callback();
435
- }
436
- };
437
- _this.delayToDo = function (delay, callback) {
438
- if (delay) {
439
- _this.clearDelayTimer();
440
- _this.delayTimer = setTimeout(function () {
441
- callback();
442
- _this.clearDelayTimer();
443
- }, delay);
444
- }
445
- else {
446
- callback();
447
- }
448
- };
449
- // 点击非popup内部,非children内部的节点,触发clickoutside 逻辑
450
- _this.onClickOutside = function (e) {
451
- var _a = _this.getMergedProps([
452
- 'onClickOutside',
453
- 'clickOutsideToClose',
454
- ]), onClickOutside = _a.onClickOutside, clickOutsideToClose = _a.clickOutsideToClose;
455
- var triggerNode = _this.getPopupElement();
456
- var childrenDom = _this.getRootElement();
457
- if (!(0, dom_1.contains)(triggerNode, e.target) &&
458
- !(0, dom_1.contains)(childrenDom, e.target) &&
459
- !_this.hasPopupMouseDown) {
460
- onClickOutside === null || onClickOutside === void 0 ? void 0 : onClickOutside();
461
- if (clickOutsideToClose) {
462
- // 以下判断条件避免onVisibleChange触发两次
463
- // blurToHide 为true时不需要执行,因为onBlur里会执行setPopupVisible
464
- // hover 触发方式,不执行以下逻辑。因为mouseLeave里会执行setPopupVisible
465
- if (!_this.isBlurToHide() && !_this.isHoverTrigger()) {
466
- _this.setPopupVisible(false);
467
- }
468
- }
469
- }
470
- };
471
- _this.onKeyDown = function (e) {
472
- var keyCode = e.keyCode || e.which;
473
- _this.triggerPropsEvent('onKeyDown', e);
474
- if (keyCode === keycode_1.Esc.code) {
475
- _this.onPressEsc(e);
476
- }
477
- };
478
- _this.onPressEsc = function (e) {
479
- var escToClose = _this.getMergedProps(['escToClose']).escToClose;
480
- if (escToClose && e && e.key === keycode_1.Esc.key && _this.state.popupVisible) {
481
- _this.setPopupVisible(false);
482
- }
483
- };
484
- _this.onMouseEnter = function (e) {
485
- var mouseEnterDelay = _this.getMergedProps(['mouseEnterDelay']).mouseEnterDelay;
486
- _this.triggerPropsEvent('onMouseEnter', e);
487
- _this.clearDelayTimer();
488
- _this.setPopupVisible(true, mouseEnterDelay || 0);
489
- };
490
- _this.onMouseMove = function (e) {
491
- _this.triggerPropsEvent('onMouseMove', e);
492
- _this.setMouseLocation(e);
493
- if (_this.state.popupVisible) {
494
- _this.update();
495
- }
496
- };
497
- _this.onMouseLeave = function (e) {
498
- var mouseLeaveDelay = _this.getMergedProps(['mouseLeaveDelay']).mouseLeaveDelay;
499
- _this.clearDelayTimer();
500
- _this.triggerPropsEvent('onMouseLeave', e);
501
- if (_this.isMouseLeaveToClose()) {
502
- if (_this.state.popupVisible) {
503
- _this.setPopupVisible(false, mouseLeaveDelay || 0);
504
- }
505
- }
506
- };
507
- _this.onPopupMouseEnter = function () {
508
- _this.clearDelayTimer();
509
- };
510
- _this.onPopupMouseLeave = function (e) {
511
- _this.onMouseLeave(e);
512
- };
513
- _this.setMouseLocation = function (e) {
514
- if (_this.getMergedProps(['alignPoint']).alignPoint) {
515
- _this.mouseLocation = {
516
- clientX: e.clientX,
517
- clientY: e.clientY,
518
- };
519
- }
520
- };
521
- _this.onContextMenu = function (e) {
522
- e.preventDefault();
523
- _this.triggerPropsEvent('onContextMenu', e);
524
- _this.setMouseLocation(e);
525
- if (!_this.state.popupVisible) {
526
- _this.setPopupVisible(true, 0);
527
- }
528
- else {
529
- // 更新位置
530
- _this.getMergedProps(['alignPoint']).alignPoint && _this.update();
531
- }
532
- };
533
- _this.clickToHidePopup = function (e) {
534
- var popupVisible = _this.state.popupVisible;
535
- if (popupVisible) {
536
- _this.mousedownToHide = true;
537
- }
538
- _this.triggerPropsEvent('onClick', e);
539
- if (_this.isClickToHide() && popupVisible) {
540
- _this.setPopupVisible(!popupVisible, 0);
541
- }
542
- };
543
- _this.onClick = function (e) {
544
- var popupVisible = _this.state.popupVisible;
545
- if (popupVisible) {
546
- _this.mousedownToHide = true;
547
- }
548
- _this.triggerPropsEvent('onClick', e);
549
- _this.setMouseLocation(e);
550
- if (!_this.isClickToHide() && popupVisible) {
551
- return;
552
- }
553
- _this.setPopupVisible(!popupVisible, 0);
554
- };
555
- _this.onFocus = function (e) {
556
- var focusDelay = _this.getMergedProps(['focusDelay']).focusDelay;
557
- var onFocus = function () {
558
- _this.triggerPropsEvent('onFocus', e);
559
- };
560
- _this.clearDelayTimer();
561
- if (!_this.mousedownToHide) {
562
- if (_this.state.popupVisible) {
563
- onFocus === null || onFocus === void 0 ? void 0 : onFocus();
564
- }
565
- else {
566
- _this.setPopupVisible(true, focusDelay || 0, onFocus);
567
- }
568
- }
569
- _this.mousedownToHide = false;
570
- };
571
- _this.onBlur = function (e) {
572
- _this.setPopupVisible(false, 200, function () { return _this.triggerPropsEvent('onBlur', e); });
573
- };
574
- _this.onResize = function () {
575
- if (_this.getMergedProps(['autoFixPosition']).autoFixPosition && _this.state.popupVisible) {
576
- _this.updatePopupPosition();
577
- }
578
- };
579
- _this.onPopupMouseDown = function () {
580
- _this.hasPopupMouseDown = true;
581
- clearTimeout(_this.mouseDownTimeout);
582
- _this.mouseDownTimeout = setTimeout(function () {
583
- _this.hasPopupMouseDown = false;
584
- }, 0);
585
- };
586
- // 当 children 中的元素 disabled 时,不能正确触发 hover 等事件,所以当监测到对应
587
- // 组件有 disabled 时,给元素加一层 span,处理事件,模拟样式
588
- _this.getChild = function () {
589
- var _a;
590
- var children = _this.props.children;
591
- var element = children;
592
- var elementType = (element && typeof element !== 'string' && element.type);
593
- var child = children;
594
- if (['string', 'number'].indexOf(typeof children) > -1 || react_1.default.Children.count(children) > 1) {
595
- child = react_1.default.createElement("span", null, children);
596
- }
597
- else if (element &&
598
- elementType &&
599
- (elementType.__BYTE_BUTTON === true ||
600
- elementType.__BYTE_CHECKBOX === true ||
601
- elementType.__BYTE_SWITCH === true ||
602
- elementType.__BYTE_RADIO === true ||
603
- elementType === 'button') &&
604
- element.props.disabled) {
605
- // 从样式中提取出会影响布局的到上层 span 样式中。
606
- var _b = splitChildrenStyle(element.props.style, [
607
- 'position',
608
- 'left',
609
- 'right',
610
- 'top',
611
- 'bottom',
612
- 'float',
613
- 'display',
614
- 'zIndex',
615
- ]), picked = _b.picked, omitted = _b.omitted;
616
- child = (react_1.default.createElement("span", { className: (_a = element.props) === null || _a === void 0 ? void 0 : _a.className, style: __assign(__assign({ display: 'inline-block' }, picked), { cursor: 'not-allowed' }) }, react_1.default.cloneElement(element, {
617
- style: __assign(__assign({}, omitted), { pointerEvents: 'none' }),
618
- className: undefined,
619
- })));
620
- }
621
- // 防止为空报错
622
- return child || react_1.default.createElement("span", null);
623
- };
624
- // 创建的dom节点插入getPopupContainer。
625
- _this.appendToContainer = function (node) {
626
- (0, raf_1.caf)(_this.rafId);
627
- if (_this.isDidMount) {
628
- var getGlobalPopupContainer = _this.context.getPopupContainer;
629
- var getPopupContainer = _this.getMergedProps(['getPopupContainer']).getPopupContainer;
630
- var gpc = getPopupContainer || getGlobalPopupContainer;
631
- var rootElement = _this.getRootElement();
632
- var parent_1 = gpc(rootElement);
633
- if (parent_1) {
634
- parent_1.appendChild(node);
635
- return;
636
- }
637
- }
638
- _this.rafId = (0, raf_1.raf)(function () {
639
- _this.appendToContainer(node);
640
- });
641
- };
642
- _this.getContainer = function () {
643
- var popupContainer = document.createElement('div');
644
- popupContainer.style.width = '100%';
645
- popupContainer.style.position = 'absolute';
646
- popupContainer.style.top = '0';
647
- popupContainer.style.left = '0';
648
- _this.popupContainer = popupContainer;
649
- _this.appendToContainer(popupContainer);
650
- return popupContainer;
651
- };
652
- // 1. 触发直接附加到 Trigger 上的事件,大多是Trigger直接嵌套Trigger的情况
653
- // 2. 触发children上直接被附加的事件
654
- _this.triggerPropsEvent = function (eventName, e) {
655
- var child = _this.getChild();
656
- var childHandler = child && child.props && child.props[eventName];
657
- var handlerFn = _this.getMergedProps([eventName])[eventName];
658
- if ((0, is_1.isFunction)(childHandler)) {
659
- childHandler(e);
660
- }
661
- if ((0, is_1.isFunction)(handlerFn)) {
662
- handlerFn(e);
663
- }
664
- };
665
- // 触发 children/ trigger 组件上被附加的事件
666
- _this.triggerOriginEvent = function (eventName) {
667
- var child = _this.getChild();
668
- var childHandler = child && child.props && child.props[eventName];
669
- var propsHandler = _this.getMergedProps([eventName])[eventName];
670
- if ((0, is_1.isFunction)(propsHandler) && (0, is_1.isFunction)(childHandler)) {
671
- return function (e) {
672
- childHandler(e);
673
- propsHandler(e);
674
- };
675
- }
676
- return childHandler || propsHandler;
677
- };
678
- var mergedProps = _this.getMergedProps(props);
679
- var popupVisible = 'popupVisible' in mergedProps ? mergedProps.popupVisible : mergedProps.defaultPopupVisible;
680
- _this.popupOpen = !!popupVisible;
681
- _this.triggerRef = (0, react_1.createRef)();
682
- _this.state = {
683
- popupVisible: !!popupVisible,
684
- popupStyle: {},
685
- };
686
- return _this;
687
- }
688
- Trigger.getDerivedStateFromProps = function (nextProps, state) {
689
- if ('popupVisible' in nextProps && nextProps.popupVisible !== state.popupVisible) {
690
- return {
691
- popupVisible: nextProps.popupVisible,
692
- };
693
- }
694
- return null;
695
- };
696
- Trigger.prototype.componentDidMount = function () {
697
- this.componentDidUpdate(this.getMergedProps());
698
- this.isDidMount = true;
699
- this.unmount = false;
700
- this.childrenDom = this.getRootElement();
701
- if (this.state.popupVisible) {
702
- this.childrenDomSize = getDOMPos(this.childrenDom, {
703
- boundaryDistance: this.props.alignPoint ? undefined : this.props.boundaryDistance,
704
- position: this.props.position,
705
- });
706
- }
707
- };
708
- Trigger.prototype.componentDidUpdate = function (_prevProps) {
709
- var prevProps = this.getMergedProps(_prevProps);
710
- var currentProps = this.getMergedProps();
711
- if (!prevProps.popupVisible && currentProps.popupVisible) {
712
- this.update();
713
- }
714
- var popupVisible = this.state.popupVisible;
715
- this.popupOpen = popupVisible;
716
- var getDocument = currentProps.getDocument;
717
- if (!popupVisible) {
718
- this.offClickOutside();
719
- this.offContainerResize();
720
- this.offWindowResize();
721
- this.offScrollListeners();
722
- return;
723
- }
724
- var rect = getDOMPos(this.childrenDom, {
725
- boundaryDistance: this.props.alignPoint ? {} : this.props.boundaryDistance,
726
- position: this.props.position,
727
- });
728
- // children节点的尺寸改变,主要是处理children 存在scale等动画属性,或者移动位置的时候,popup 的位置有问题
729
- if (JSON.stringify(rect) !== JSON.stringify(this.childrenDomSize)) {
730
- this.updatePopupPosition();
731
- this.childrenDomSize = rect;
732
- }
733
- // popupVisible为true
734
- this.onContainerResize();
735
- if (currentProps.updateOnScroll || currentProps.containerScrollToClose) {
736
- this.onContainersScroll(currentProps);
737
- }
738
- if (!this.handleWindowResize) {
739
- (0, dom_1.on)(window, 'resize', this.handleUpdatePosition);
740
- this.handleWindowResize = true;
741
- }
742
- if (!this.handleClickOutside) {
743
- var root = (0, is_1.isFunction)(getDocument) && getDocument();
744
- if (root) {
745
- // clickOutside 必须监听mousedown。
746
- // 1. 如果事件目标元素在click后被移除,document.onclick被触发时已经没有该元素,会错误触发clickOutside逻辑,隐藏popup。
747
- // 2. 点击label标签,会触发对应input元素的点击事件,导致触发clickOutside,隐藏popup。
748
- (0, dom_1.on)(root, 'mousedown', this.onClickOutside, {
749
- capture: (0, is_1.isObject)(currentProps.clickOutsideToClose)
750
- ? currentProps.clickOutsideToClose.capture
751
- : false,
752
- });
753
- this.handleClickOutside = true;
754
- }
755
- }
756
- };
757
- Trigger.prototype.componentWillUnmount = function () {
758
- this.unmount = true;
759
- this.offClickOutside();
760
- this.clearTimer();
761
- this.offWindowResize();
762
- this.offScrollListeners();
763
- this.offContainerResize();
764
- (0, raf_1.caf)(this.rafId);
765
- };
766
- Trigger.prototype.clearDelayTimer = function () {
767
- if (this.delayTimer) {
768
- clearTimeout(this.delayTimer);
769
- this.delayTimer = null;
770
- }
771
- };
772
- Trigger.prototype.render = function () {
773
- var _a, _b, _c;
774
- var _this = this;
775
- var _d;
776
- var _e = this.getMergedProps(), children = _e.children, style = _e.style, className = _e.className, arrowProps = _e.arrowProps, disabled = _e.disabled, popup = _e.popup, classNames = _e.classNames, duration = _e.duration, unmountOnExit = _e.unmountOnExit, alignPoint = _e.alignPoint, autoAlignPopupWidth = _e.autoAlignPopupWidth, position = _e.position, childrenPrefix = _e.childrenPrefix, showArrow = _e.showArrow, dropdownPopupStyle = _e.popupStyle, __onExit = _e.__onExit, __onExited = _e.__onExited;
777
- var isExistChildren = children || children === 0;
778
- var _f = this.context, getPrefixCls = _f.getPrefixCls, zIndex = _f.zIndex, rtl = _f.rtl;
779
- var _g = this.state, popupVisible = _g.popupVisible, popupStyle = _g.popupStyle;
780
- if (!popup) {
781
- return null;
782
- }
783
- var mergeProps = {};
784
- var popupEventProps = {
785
- onMouseDown: this.onPopupMouseDown,
786
- };
787
- if (this.isHoverTrigger() && !disabled) {
788
- mergeProps.onMouseEnter = this.onMouseEnter;
789
- mergeProps.onMouseLeave = this.onMouseLeave;
790
- // https://github.com/arco-design/arco-design/issues/1804
791
- // TODO: remove login in next major version
792
- if (this.isClickToHide()) {
793
- mergeProps.onClick = this.clickToHidePopup;
794
- }
795
- if (alignPoint) {
796
- mergeProps.onMouseMove = this.onMouseMove;
797
- }
798
- if (!this.isPopupHoverHide()) {
799
- popupEventProps.onMouseEnter = this.onPopupMouseEnter;
800
- popupEventProps.onMouseLeave = this.onPopupMouseLeave;
801
- }
802
- }
803
- else {
804
- mergeProps.onMouseEnter = this.triggerOriginEvent('onMouseEnter');
805
- mergeProps.onMouseLeave = this.triggerOriginEvent('onMouseLeave');
806
- }
807
- if (this.isContextMenuTrigger() && !disabled) {
808
- mergeProps.onContextMenu = this.onContextMenu;
809
- mergeProps.onClick = this.clickToHidePopup;
810
- }
811
- else {
812
- mergeProps.onContextMenu = this.triggerOriginEvent('onContextMenu');
813
- }
814
- if (this.isClickTrigger() && !disabled) {
815
- mergeProps.onClick = this.onClick;
816
- }
817
- else {
818
- mergeProps.onClick = mergeProps.onClick || this.triggerOriginEvent('onClick');
819
- }
820
- if (this.isFocusTrigger() && !disabled) {
821
- mergeProps.onFocus = this.onFocus;
822
- if (this.isBlurToHide()) {
823
- mergeProps.onBlur = this.onBlur;
824
- }
825
- }
826
- else {
827
- mergeProps.onFocus = this.triggerOriginEvent('onFocus');
828
- mergeProps.onBlur = this.triggerOriginEvent('onBlur');
829
- }
830
- if (!disabled) {
831
- mergeProps.onKeyDown = this.onKeyDown;
832
- }
833
- else {
834
- mergeProps.onKeyDown = this.triggerOriginEvent('onKeyDown');
835
- }
836
- var child = this.getChild();
837
- var popupChildren = react_1.default.Children.only(popup());
838
- if (child.props.className) {
839
- mergeProps.className = child.props.className;
840
- }
841
- if (childrenPrefix && popupVisible) {
842
- mergeProps.className = mergeProps.className
843
- ? mergeProps.className + " " + childrenPrefix + "-open"
844
- : childrenPrefix + "-open";
845
- }
846
- // 只有在focus触发时,设置tabIndex,点击tab键,能触发focus事件,展示弹出框
847
- if (this.isFocusTrigger()) {
848
- mergeProps.tabIndex = disabled ? -1 : 0;
849
- }
850
- var prefixCls = getPrefixCls('trigger');
851
- var popupClassName = (0, classNames_1.default)(prefixCls, childrenPrefix, prefixCls + "-position-" + position, (_a = {}, _a[prefixCls + "-rtl"] = rtl, _a), className);
852
- var childrenComponent = isExistChildren && (react_1.default.createElement(resizeObserver_1.default, { onResize: this.onResize, getTargetDOMNode: function () {
853
- return _this.rootElementRef;
854
- } }, react_1.default.cloneElement(child, __assign(__assign({}, mergeProps), { ref: !(0, is_1.supportRef)(child)
855
- ? undefined
856
- : function (node) {
857
- _this.rootElementRef = node;
858
- (0, react_dom_1.callbackOriginRef)(child, node);
859
- } }))));
860
- var portalContent = (react_1.default.createElement(react_transition_group_1.CSSTransition, { in: !!popupVisible, timeout: duration, classNames: classNames, unmountOnExit: unmountOnExit, appear: true, mountOnEnter: true, onEnter: function () {
861
- _this.triggerRefDestoried = false;
862
- var e = _this.getPopupElement();
863
- if (!e) {
864
- return;
865
- }
866
- e.style.display = 'initial';
867
- e.style.pointerEvents = 'none';
868
- if (classNames === 'slideDynamicOrigin') {
869
- // 下拉菜单
870
- e.style.transform = _this.getTransformTranslate();
871
- }
872
- }, onEntering: function () {
873
- var e = _this.getPopupElement();
874
- if (!e) {
875
- return;
876
- }
877
- if (classNames === 'slideDynamicOrigin') {
878
- // 下拉菜单
879
- e.style.transform = '';
880
- }
881
- }, onEntered: function () {
882
- var e = _this.getPopupElement();
883
- if (!e) {
884
- return;
885
- }
886
- e.style.pointerEvents = 'auto';
887
- _this.forceUpdate();
888
- }, onExit: function () {
889
- var e = _this.getPopupElement();
890
- if (!e) {
891
- return;
892
- }
893
- // 避免消失动画时对元素的快速点击触发意外的操作
894
- e.style.pointerEvents = 'none';
895
- __onExit === null || __onExit === void 0 ? void 0 : __onExit(e);
896
- }, onExited: function () {
897
- var e = _this.getPopupElement();
898
- if (!e) {
899
- return;
900
- }
901
- e.style.display = 'none';
902
- // 这里立即设置为null是为了在setState popupStyle引起重新渲染时,能触发 Portal的卸载事件。移除父节点。
903
- // 否则只有在下个循环中 triggerRef 才会变为null,需要重新forceUpdate,才能触发Portal的unmount。
904
- if (unmountOnExit) {
905
- _this.triggerRefDestoried = true;
906
- }
907
- _this.setState({ popupStyle: {} });
908
- __onExited === null || __onExited === void 0 ? void 0 : __onExited(e);
909
- }, nodeRef: this.triggerRef },
910
- react_1.default.createElement(resizeObserver_1.default, { onResize: function () {
911
- var target = _this.triggerRef.current;
912
- if (target) {
913
- // Avoid the flickering problem caused by the size change and positioning not being recalculated in time.
914
- // TODO: Consider changing the popup style directly in the next major version
915
- var popupStyle_1 = _this.getPopupStyle();
916
- var style_1 = _this.props.style || {};
917
- target.style.top = String(style_1.top || popupStyle_1.top + "px");
918
- target.style.left = String(style_1.left || popupStyle_1.left + "px");
919
- }
920
- _this.onResize();
921
- }, getTargetDOMNode: function () { return _this.getPopupElement(); } },
922
- react_1.default.createElement("span", __assign({ ref: this.triggerRef, "trigger-placement": this.realPosition, style: __assign(__assign(__assign({ width: autoAlignPopupWidth && (style === null || style === void 0 ? void 0 : style.width) === undefined
923
- ? (_d = this.childrenDomSize) === null || _d === void 0 ? void 0 : _d.width
924
- : '' }, popupStyle), { position: 'absolute', zIndex: zIndex || '' }), style) }, popupEventProps, { className: popupClassName }, (0, pick_1.pickDataAttributes)(this.props)),
925
- react_1.default.createElement(popupChildren.type, __assign({ ref: popupChildren.ref }, popupChildren.props, { style: __assign(__assign({}, popupChildren.props.style), dropdownPopupStyle) })),
926
- (showArrow || arrowProps) && (react_1.default.createElement("div", { className: (0, classNames_1.default)(prefixCls + "-arrow-container", (_b = {},
927
- _b[childrenPrefix + "-arrow-container"] = childrenPrefix,
928
- _b)) },
929
- react_1.default.createElement("div", __assign({}, arrowProps, { className: (0, classNames_1.default)(prefixCls + "-arrow", (_c = {},
930
- _c[childrenPrefix + "-arrow"] = childrenPrefix,
931
- _c), arrowProps === null || arrowProps === void 0 ? void 0 : arrowProps.className), style: __assign(__assign({}, this.arrowStyle), arrowProps === null || arrowProps === void 0 ? void 0 : arrowProps.style) }))))))));
932
- // 如果 triggerRef 不存在,说明弹出层内容被销毁,可以隐藏portal。
933
- var portal = popupVisible || (this.getPopupElement() && !this.triggerRefDestoried) ? (react_1.default.createElement(portal_1.default, { getContainer: this.getContainer }, portalContent)) : null;
934
- return isExistChildren ? (react_1.default.createElement(react_1.default.Fragment, null,
935
- childrenComponent,
936
- portal)) : (portal);
937
- };
938
- Trigger.displayName = 'Trigger';
939
- Trigger.contextType = ConfigProvider_1.ConfigContext;
940
- return Trigger;
941
- }(react_1.PureComponent));
942
- exports.default = Trigger;
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __assign = (this && this.__assign) || function () {
18
+ __assign = Object.assign || function(t) {
19
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20
+ s = arguments[i];
21
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
+ t[p] = s[p];
23
+ }
24
+ return t;
25
+ };
26
+ return __assign.apply(this, arguments);
27
+ };
28
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
+ if (k2 === undefined) k2 = k;
30
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
31
+ }) : (function(o, m, k, k2) {
32
+ if (k2 === undefined) k2 = k;
33
+ o[k2] = m[k];
34
+ }));
35
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
36
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
37
+ }) : function(o, v) {
38
+ o["default"] = v;
39
+ });
40
+ var __importStar = (this && this.__importStar) || function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.EventsByTriggerNeed = void 0;
52
+ var react_1 = __importStar(require("react"));
53
+ var resize_observer_polyfill_1 = __importDefault(require("resize-observer-polyfill"));
54
+ var react_transition_group_1 = require("react-transition-group");
55
+ var react_dom_1 = require("../_util/react-dom");
56
+ var dom_1 = require("../_util/dom");
57
+ var is_1 = require("../_util/is");
58
+ var pick_1 = require("../_util/pick");
59
+ var keycode_1 = require("../_util/keycode");
60
+ var portal_1 = __importDefault(require("./portal"));
61
+ var resizeObserver_1 = __importDefault(require("../_util/resizeObserver"));
62
+ var classNames_1 = __importDefault(require("../_util/classNames"));
63
+ var ConfigProvider_1 = require("../ConfigProvider");
64
+ var getPopupStyle_1 = __importStar(require("./getPopupStyle"));
65
+ var throttleByRaf_1 = __importDefault(require("../_util/throttleByRaf"));
66
+ var raf_1 = require("../_util/raf");
67
+ var mergeProps_1 = __importDefault(require("../_util/mergeProps"));
68
+ function getDOMPos(dom, options) {
69
+ if (!dom) {
70
+ return {};
71
+ }
72
+ var _a = (0, getPopupStyle_1.getBoundingClientRect)(dom, options), width = _a.width, height = _a.height, left = _a.left, right = _a.right;
73
+ return {
74
+ width: width,
75
+ height: height,
76
+ left: left,
77
+ right: right,
78
+ };
79
+ }
80
+ exports.EventsByTriggerNeed = [
81
+ 'onClick',
82
+ 'onMouseEnter',
83
+ 'onMouseLeave',
84
+ 'onMouseMove',
85
+ 'onFocus',
86
+ 'onBlur',
87
+ 'onContextMenu',
88
+ 'onKeyDown',
89
+ ];
90
+ function splitChildrenStyle(obj, keys) {
91
+ var picked = {};
92
+ var omitted = __assign({}, obj);
93
+ keys.forEach(function (key) {
94
+ if (obj && key in obj) {
95
+ picked[key] = obj[key];
96
+ delete omitted[key];
97
+ }
98
+ });
99
+ return { picked: picked, omitted: omitted };
100
+ }
101
+ var defaultProps = {
102
+ blurToHide: true,
103
+ // clickToClose: true,
104
+ classNames: 'fadeIn',
105
+ trigger: 'hover',
106
+ position: 'bottom',
107
+ duration: 200,
108
+ unmountOnExit: true,
109
+ popupAlign: {},
110
+ popupHoverStay: true,
111
+ clickOutsideToClose: true,
112
+ escToClose: false,
113
+ mouseLeaveToClose: true,
114
+ containerScrollToClose: false,
115
+ getDocument: function () { return window.document; },
116
+ autoFixPosition: true,
117
+ mouseEnterDelay: 100,
118
+ mouseLeaveDelay: 100,
119
+ autoFitPosition: true,
120
+ };
121
+ var Trigger = /** @class */ (function (_super) {
122
+ __extends(Trigger, _super);
123
+ function Trigger(props, context) {
124
+ var _this = _super.call(this, props, context) || this;
125
+ _this.delayTimer = null;
126
+ _this.updatePositionTimer = null;
127
+ // is popup open?
128
+ _this.popupOpen = false;
129
+ // if mousedown to hide popup, ignore onFocus
130
+ _this.mousedownToHide = false;
131
+ _this.hasPopupMouseDown = false;
132
+ _this.unmount = false;
133
+ _this.isDidMount = false;
134
+ // 保存鼠标的位置
135
+ _this.mouseLocation = {
136
+ clientX: 0,
137
+ clientY: 0,
138
+ };
139
+ // 保存当前的mount container dom元素
140
+ _this.observerContainer = null;
141
+ // 保存当前节点到 popupContainer 间的所有滚动元素
142
+ _this.scrollElements = null;
143
+ // container 触发 resize时执行
144
+ _this.resizeObserver = new resize_observer_polyfill_1.default(function () {
145
+ _this.handleUpdatePosition();
146
+ });
147
+ _this.childrenDom = null;
148
+ // 保存children节点的尺寸。 主要用于在弹出层动画前和动画完成后比较尺寸是否有变化。
149
+ _this.childrenDomSize = {};
150
+ _this.getMergedProps = function (basePropsOrKeys) {
151
+ var componentConfig = _this.context.componentConfig;
152
+ var props = (0, mergeProps_1.default)(basePropsOrKeys && (0, is_1.isObject)(basePropsOrKeys) ? basePropsOrKeys : _this.props, defaultProps, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.Trigger, basePropsOrKeys && (0, is_1.isArray)(basePropsOrKeys) ? basePropsOrKeys : undefined);
153
+ return props;
154
+ };
155
+ _this.getRootElement = function () {
156
+ var _a, _b;
157
+ _this.childrenDom = (0, react_dom_1.findDOMNode)(((_b = (_a = _this.props).getTargetDOMNode) === null || _b === void 0 ? void 0 : _b.call(_a)) || _this.rootElementRef, _this);
158
+ return _this.childrenDom;
159
+ };
160
+ _this.getPopupElement = function () {
161
+ var _a;
162
+ return ((_a = _this.triggerRef) === null || _a === void 0 ? void 0 : _a.current) || null;
163
+ };
164
+ _this.offScrollListeners = function () {
165
+ (_this.scrollElements || []).forEach(function (item) {
166
+ (0, dom_1.off)(item, 'scroll', _this.handleScroll);
167
+ });
168
+ _this.scrollElements = null;
169
+ };
170
+ _this.offWindowResize = function () {
171
+ _this.handleWindowResize = false;
172
+ (0, dom_1.off)(window, 'resize', _this.handleUpdatePosition);
173
+ };
174
+ _this.offContainerResize = function () {
175
+ if (_this.resizeObserver && _this.observerContainer) {
176
+ _this.resizeObserver.unobserve(_this.observerContainer);
177
+ _this.observerContainer = null;
178
+ }
179
+ };
180
+ _this.handleScroll = function () {
181
+ var currentProps = _this.getMergedProps(['containerScrollToClose', 'updateOnScroll']);
182
+ if (currentProps.containerScrollToClose) {
183
+ _this.setPopupVisible(false);
184
+ }
185
+ else if (currentProps.updateOnScroll) {
186
+ _this.handleUpdatePosition();
187
+ }
188
+ };
189
+ _this.onContainersScroll = function (props) {
190
+ var _a, _b;
191
+ if (_this.scrollElements) {
192
+ return;
193
+ }
194
+ _this.scrollElements = (0, dom_1.getScrollElements)(_this.childrenDom, (_a = _this.popupContainer) === null || _a === void 0 ? void 0 : _a.parentNode);
195
+ // 弹出层挂载载 body 且 body 不是滚动元素时,需要额外检测 document.documentElement 是否是滚动元素
196
+ // 默认 html,body 不限制宽高时,滚动事件仅能在 window 上监听
197
+ // fix: https://github.com/arco-design/arco-design/issues/1599
198
+ if (props.containerScrollToClose &&
199
+ ((_b = _this.popupContainer) === null || _b === void 0 ? void 0 : _b.parentNode) === document.body &&
200
+ _this.scrollElements.indexOf(document.body) === -1 &&
201
+ (0, dom_1.isScrollElement)(document.documentElement)) {
202
+ _this.scrollElements.push(window);
203
+ }
204
+ _this.scrollElements.forEach(function (item) {
205
+ (0, dom_1.on)(item, 'scroll', _this.handleScroll);
206
+ });
207
+ };
208
+ _this.onContainerResize = function () {
209
+ var _a;
210
+ // containerParent 相当于是通过getPopupContainer传入的节点
211
+ // 因为 this.popupContainer 会被挂载到getPopupContainer返回的节点上
212
+ var containerParent = (_a = _this.popupContainer) === null || _a === void 0 ? void 0 : _a.parentNode;
213
+ if (_this.resizeObserver && _this.observerContainer !== containerParent) {
214
+ // 说明containerParent变了,取消之前的监听,监听新的container
215
+ _this.offContainerResize();
216
+ containerParent && _this.resizeObserver.observe(containerParent);
217
+ _this.observerContainer = containerParent;
218
+ }
219
+ };
220
+ // getPopupContainer 改变时候触发
221
+ _this.handleUpdatePosition = (0, throttleByRaf_1.default)(function () {
222
+ _this.updatePopupPosition();
223
+ });
224
+ _this.isClickTrigger = function () {
225
+ var trigger = _this.getMergedProps(['trigger']).trigger;
226
+ return [].concat(trigger).indexOf('click') > -1;
227
+ };
228
+ _this.isFocusTrigger = function () {
229
+ var trigger = _this.getMergedProps(['trigger']).trigger;
230
+ return [].concat(trigger).indexOf('focus') > -1;
231
+ };
232
+ _this.isHoverTrigger = function () {
233
+ var trigger = _this.getMergedProps(['trigger']).trigger;
234
+ return [].concat(trigger).indexOf('hover') > -1;
235
+ };
236
+ _this.isContextMenuTrigger = function () {
237
+ var trigger = _this.getMergedProps(['trigger']).trigger;
238
+ return [].concat(trigger).indexOf('contextMenu') > -1;
239
+ };
240
+ // 是否在鼠标移出触发节点和popup的时候隐藏弹出层
241
+ _this.isMouseLeaveToClose = function () {
242
+ return _this.isHoverTrigger() && _this.getMergedProps(['mouseLeaveToClose']).mouseLeaveToClose;
243
+ };
244
+ // 是否在悬浮到popup的时候隐藏弹出层
245
+ _this.isPopupHoverHide = function () {
246
+ return _this.isHoverTrigger() && !_this.getMergedProps(['popupHoverStay']).popupHoverStay;
247
+ };
248
+ _this.isClickToHide = function () {
249
+ if (_this.isClickTrigger() || _this.isContextMenuTrigger()) {
250
+ var _a = _this.getMergedProps(['clickToClose']).clickToClose, clickToClose = _a === void 0 ? true : _a;
251
+ return clickToClose;
252
+ }
253
+ // 2.44.0 及之前版本 clickToClose 对 hover触发不生效。
254
+ // 2.44.1 之后只有在props直接传入clickToClose 时才生效于 hover 触发方式,避免如以下用法前后表现不一致
255
+ // <Trigger><Trigger trigger="click"><button>sss</button></a></Trigger></Trigger>
256
+ return _this.isHoverTrigger() && _this.props.clickToClose;
257
+ };
258
+ _this.isBlurToHide = function () {
259
+ return _this.isFocusTrigger() && _this.getMergedProps(['blurToHide']).blurToHide;
260
+ };
261
+ _this.clearTimer = function () {
262
+ if (_this.updatePositionTimer) {
263
+ if (_this.updatePositionTimer.cancel) {
264
+ _this.updatePositionTimer.cancel();
265
+ }
266
+ else {
267
+ clearTimeout(_this.updatePositionTimer);
268
+ _this.updatePositionTimer = null;
269
+ }
270
+ }
271
+ if (_this.delayTimer) {
272
+ clearTimeout(_this.delayTimer);
273
+ _this.delayTimer = null;
274
+ }
275
+ if (_this.mouseDownTimeout) {
276
+ clearTimeout(_this.mouseDownTimeout);
277
+ _this.mouseDownTimeout = null;
278
+ }
279
+ };
280
+ _this.offClickOutside = function () {
281
+ if (_this.handleClickOutside) {
282
+ var getDocument = _this.getMergedProps(['getDocument']).getDocument;
283
+ var root = (0, is_1.isFunction)(getDocument) && getDocument();
284
+ (0, dom_1.off)(root, 'mousedown', _this.onClickOutside);
285
+ _this.handleClickOutside = false;
286
+ }
287
+ };
288
+ _this.getTransformOrigin = function (position) {
289
+ var _a, _b;
290
+ var content = _this.getPopupElement();
291
+ if (!content)
292
+ return {};
293
+ var _c = _this.getMergedProps(['showArrow', 'classNames']), showArrow = _c.showArrow, classNames = _c.classNames;
294
+ var top = (showArrow && ((_a = _this.arrowStyle) === null || _a === void 0 ? void 0 : _a.top)) || 0;
295
+ var left = (showArrow && ((_b = _this.arrowStyle) === null || _b === void 0 ? void 0 : _b.left)) || 0;
296
+ top = top ? top + "px" : '';
297
+ left = left ? left + "px" : '';
298
+ var transformOrigin = {
299
+ top: (left || '50%') + " 100% 0",
300
+ tl: (left || '15px') + " 100% 0",
301
+ tr: (left || content.clientWidth - 15 + "px") + " 100% 0",
302
+ bottom: (left || '50%') + " 0 0",
303
+ bl: (left || '15px') + " 0 0",
304
+ br: (left || content.clientWidth - 15 + "px") + " 0 0",
305
+ left: "100% " + (top || '50%') + " 0",
306
+ lt: "100% " + (top || '15px') + " 0",
307
+ lb: "100% " + (top || content.clientHeight - 15 + "px") + " 0",
308
+ right: "0 " + (top || '50%') + " 0",
309
+ rt: "0 " + (top || '15px') + " 0",
310
+ rb: "0 " + (top || content.clientHeight - 15 + "px") + " 0",
311
+ };
312
+ // tooltip popover popconfirm
313
+ if (classNames && classNames.indexOf('zoom') > -1) {
314
+ return {
315
+ transformOrigin: transformOrigin[position],
316
+ };
317
+ }
318
+ if (classNames === 'slideDynamicOrigin') {
319
+ var origin_1 = '0% 0%';
320
+ if (['top', 'tl', 'tr'].indexOf(position) > -1) {
321
+ origin_1 = '100% 100%';
322
+ }
323
+ return {
324
+ transformOrigin: origin_1,
325
+ };
326
+ }
327
+ return {};
328
+ };
329
+ // 下拉框存在初始translateY/translateX,需要根据真实的弹出位置确定
330
+ _this.getTransformTranslate = function () {
331
+ if (_this.getMergedProps(['classNames']).classNames !== 'slideDynamicOrigin') {
332
+ return '';
333
+ }
334
+ switch (_this.realPosition) {
335
+ case 'bottom':
336
+ case 'bl':
337
+ case 'br':
338
+ return 'scaleY(0.9) translateY(-4px)';
339
+ case 'top':
340
+ case 'tl':
341
+ case 'tr':
342
+ return 'scaleY(0.9) translateY(4px)';
343
+ default:
344
+ return '';
345
+ }
346
+ };
347
+ _this.getPopupStyle = function () {
348
+ if (_this.unmount || !_this.popupContainer) {
349
+ return;
350
+ }
351
+ var mountContainer = _this.popupContainer;
352
+ var content = _this.triggerRef.current;
353
+ var child = _this.getRootElement();
354
+ // offsetParent=null when display:none or position: fixed
355
+ if (!child.offsetParent && !child.getClientRects().length) {
356
+ return _this.state.popupStyle;
357
+ }
358
+ var mergedProps = _this.getMergedProps();
359
+ var _a = (0, getPopupStyle_1.default)(mergedProps, content, child, mountContainer, _this.mouseLocation), style = _a.style, arrowStyle = _a.arrowStyle, realPosition = _a.realPosition;
360
+ _this.realPosition = realPosition || mergedProps.position;
361
+ _this.arrowStyle = arrowStyle || {};
362
+ return __assign(__assign({}, style), _this.getTransformOrigin(_this.realPosition));
363
+ };
364
+ _this.showPopup = function (callback) {
365
+ if (callback === void 0) { callback = function () { }; }
366
+ var popupStyle = _this.getPopupStyle();
367
+ _this.setState({
368
+ popupStyle: popupStyle,
369
+ }, callback);
370
+ };
371
+ _this.update = (0, throttleByRaf_1.default)(function (callback) {
372
+ if (_this.unmount || !_this.state.popupVisible) {
373
+ return;
374
+ }
375
+ var popupStyle = _this.getPopupStyle();
376
+ _this.setState({
377
+ popupStyle: popupStyle,
378
+ }, function () {
379
+ callback === null || callback === void 0 ? void 0 : callback();
380
+ });
381
+ });
382
+ _this.getRootDOMNode = function () {
383
+ return _this.getRootElement();
384
+ };
385
+ _this.updatePopupPosition = function (delay, callback) {
386
+ if (delay === void 0) { delay = 0; }
387
+ var currentVisible = _this.state.popupVisible;
388
+ if (!currentVisible) {
389
+ return;
390
+ }
391
+ if (delay < 4) {
392
+ _this.updatePositionTimer = _this.update(callback);
393
+ return;
394
+ }
395
+ _this.updatePositionTimer = setTimeout(function () {
396
+ var popupStyle = _this.getPopupStyle();
397
+ _this.setState({
398
+ popupStyle: popupStyle,
399
+ }, function () {
400
+ callback === null || callback === void 0 ? void 0 : callback();
401
+ });
402
+ }, delay);
403
+ };
404
+ _this.setPopupVisible = function (visible, delay, callback) {
405
+ if (delay === void 0) { delay = 0; }
406
+ var mergedProps = _this.getMergedProps(['onVisibleChange', 'popupVisible']);
407
+ var onVisibleChange = mergedProps.onVisibleChange;
408
+ var currentVisible = _this.state.popupVisible;
409
+ if (visible !== currentVisible) {
410
+ _this.delayToDo(delay, function () {
411
+ onVisibleChange && onVisibleChange(visible);
412
+ if (!('popupVisible' in mergedProps)) {
413
+ if (visible) {
414
+ _this.setState({
415
+ popupVisible: true,
416
+ }, function () {
417
+ _this.showPopup(callback);
418
+ });
419
+ }
420
+ else {
421
+ _this.setState({
422
+ popupVisible: false,
423
+ }, function () {
424
+ callback === null || callback === void 0 ? void 0 : callback();
425
+ });
426
+ }
427
+ }
428
+ else {
429
+ callback === null || callback === void 0 ? void 0 : callback();
430
+ }
431
+ });
432
+ }
433
+ else {
434
+ callback === null || callback === void 0 ? void 0 : callback();
435
+ }
436
+ };
437
+ _this.delayToDo = function (delay, callback) {
438
+ if (delay) {
439
+ _this.clearDelayTimer();
440
+ _this.delayTimer = setTimeout(function () {
441
+ callback();
442
+ _this.clearDelayTimer();
443
+ }, delay);
444
+ }
445
+ else {
446
+ callback();
447
+ }
448
+ };
449
+ // 点击非popup内部,非children内部的节点,触发clickoutside 逻辑
450
+ _this.onClickOutside = function (e) {
451
+ var _a = _this.getMergedProps([
452
+ 'onClickOutside',
453
+ 'clickOutsideToClose',
454
+ ]), onClickOutside = _a.onClickOutside, clickOutsideToClose = _a.clickOutsideToClose;
455
+ var triggerNode = _this.getPopupElement();
456
+ var childrenDom = _this.getRootElement();
457
+ if (!(0, dom_1.contains)(triggerNode, e.target) &&
458
+ !(0, dom_1.contains)(childrenDom, e.target) &&
459
+ !_this.hasPopupMouseDown) {
460
+ onClickOutside === null || onClickOutside === void 0 ? void 0 : onClickOutside();
461
+ if (clickOutsideToClose) {
462
+ // 以下判断条件避免onVisibleChange触发两次
463
+ // blurToHide 为true时不需要执行,因为onBlur里会执行setPopupVisible
464
+ // hover 触发方式,不执行以下逻辑。因为mouseLeave里会执行setPopupVisible
465
+ if (!_this.isBlurToHide() && !_this.isHoverTrigger()) {
466
+ _this.setPopupVisible(false);
467
+ }
468
+ }
469
+ }
470
+ };
471
+ _this.onKeyDown = function (e) {
472
+ var keyCode = e.keyCode || e.which;
473
+ _this.triggerPropsEvent('onKeyDown', e);
474
+ if (keyCode === keycode_1.Esc.code) {
475
+ _this.onPressEsc(e);
476
+ }
477
+ };
478
+ _this.onPressEsc = function (e) {
479
+ var escToClose = _this.getMergedProps(['escToClose']).escToClose;
480
+ if (escToClose && e && e.key === keycode_1.Esc.key && _this.state.popupVisible) {
481
+ _this.setPopupVisible(false);
482
+ }
483
+ };
484
+ _this.onMouseEnter = function (e) {
485
+ var mouseEnterDelay = _this.getMergedProps(['mouseEnterDelay']).mouseEnterDelay;
486
+ _this.triggerPropsEvent('onMouseEnter', e);
487
+ _this.clearDelayTimer();
488
+ _this.setPopupVisible(true, mouseEnterDelay || 0);
489
+ };
490
+ _this.onMouseMove = function (e) {
491
+ _this.triggerPropsEvent('onMouseMove', e);
492
+ _this.setMouseLocation(e);
493
+ if (_this.state.popupVisible) {
494
+ _this.update();
495
+ }
496
+ };
497
+ _this.onMouseLeave = function (e) {
498
+ var mouseLeaveDelay = _this.getMergedProps(['mouseLeaveDelay']).mouseLeaveDelay;
499
+ _this.clearDelayTimer();
500
+ _this.triggerPropsEvent('onMouseLeave', e);
501
+ if (_this.isMouseLeaveToClose()) {
502
+ if (_this.state.popupVisible) {
503
+ _this.setPopupVisible(false, mouseLeaveDelay || 0);
504
+ }
505
+ }
506
+ };
507
+ _this.onPopupMouseEnter = function () {
508
+ _this.clearDelayTimer();
509
+ };
510
+ _this.onPopupMouseLeave = function (e) {
511
+ _this.onMouseLeave(e);
512
+ };
513
+ _this.setMouseLocation = function (e) {
514
+ if (_this.getMergedProps(['alignPoint']).alignPoint) {
515
+ _this.mouseLocation = {
516
+ clientX: e.clientX,
517
+ clientY: e.clientY,
518
+ };
519
+ }
520
+ };
521
+ _this.onContextMenu = function (e) {
522
+ e.preventDefault();
523
+ _this.triggerPropsEvent('onContextMenu', e);
524
+ _this.setMouseLocation(e);
525
+ if (!_this.state.popupVisible) {
526
+ _this.setPopupVisible(true, 0);
527
+ }
528
+ else {
529
+ // 更新位置
530
+ _this.getMergedProps(['alignPoint']).alignPoint && _this.update();
531
+ }
532
+ };
533
+ _this.clickToHidePopup = function (e) {
534
+ var popupVisible = _this.state.popupVisible;
535
+ if (popupVisible) {
536
+ _this.mousedownToHide = true;
537
+ }
538
+ _this.triggerPropsEvent('onClick', e);
539
+ if (_this.isClickToHide() && popupVisible) {
540
+ _this.setPopupVisible(!popupVisible, 0);
541
+ }
542
+ };
543
+ _this.onClick = function (e) {
544
+ var popupVisible = _this.state.popupVisible;
545
+ if (popupVisible) {
546
+ _this.mousedownToHide = true;
547
+ }
548
+ _this.triggerPropsEvent('onClick', e);
549
+ _this.setMouseLocation(e);
550
+ if (!_this.isClickToHide() && popupVisible) {
551
+ return;
552
+ }
553
+ _this.setPopupVisible(!popupVisible, 0);
554
+ };
555
+ _this.onFocus = function (e) {
556
+ var focusDelay = _this.getMergedProps(['focusDelay']).focusDelay;
557
+ var onFocus = function () {
558
+ _this.triggerPropsEvent('onFocus', e);
559
+ };
560
+ _this.clearDelayTimer();
561
+ if (!_this.mousedownToHide) {
562
+ if (_this.state.popupVisible) {
563
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus();
564
+ }
565
+ else {
566
+ _this.setPopupVisible(true, focusDelay || 0, onFocus);
567
+ }
568
+ }
569
+ _this.mousedownToHide = false;
570
+ };
571
+ _this.onBlur = function (e) {
572
+ _this.setPopupVisible(false, 200, function () { return _this.triggerPropsEvent('onBlur', e); });
573
+ };
574
+ _this.onResize = function () {
575
+ if (_this.getMergedProps(['autoFixPosition']).autoFixPosition && _this.state.popupVisible) {
576
+ _this.updatePopupPosition();
577
+ }
578
+ };
579
+ _this.onPopupMouseDown = function () {
580
+ _this.hasPopupMouseDown = true;
581
+ clearTimeout(_this.mouseDownTimeout);
582
+ _this.mouseDownTimeout = setTimeout(function () {
583
+ _this.hasPopupMouseDown = false;
584
+ }, 0);
585
+ };
586
+ // 当 children 中的元素 disabled 时,不能正确触发 hover 等事件,所以当监测到对应
587
+ // 组件有 disabled 时,给元素加一层 span,处理事件,模拟样式
588
+ _this.getChild = function () {
589
+ var _a;
590
+ var children = _this.props.children;
591
+ var element = children;
592
+ var elementType = (element && typeof element !== 'string' && element.type);
593
+ var child = children;
594
+ if (['string', 'number'].indexOf(typeof children) > -1 || react_1.default.Children.count(children) > 1) {
595
+ child = react_1.default.createElement("span", null, children);
596
+ }
597
+ else if (element &&
598
+ elementType &&
599
+ (elementType.__BYTE_BUTTON === true ||
600
+ elementType.__BYTE_CHECKBOX === true ||
601
+ elementType.__BYTE_SWITCH === true ||
602
+ elementType.__BYTE_RADIO === true ||
603
+ elementType === 'button') &&
604
+ element.props.disabled) {
605
+ // 从样式中提取出会影响布局的到上层 span 样式中。
606
+ var _b = splitChildrenStyle(element.props.style, [
607
+ 'position',
608
+ 'left',
609
+ 'right',
610
+ 'top',
611
+ 'bottom',
612
+ 'float',
613
+ 'display',
614
+ 'zIndex',
615
+ ]), picked = _b.picked, omitted = _b.omitted;
616
+ child = (react_1.default.createElement("span", { className: (_a = element.props) === null || _a === void 0 ? void 0 : _a.className, style: __assign(__assign({ display: 'inline-block' }, picked), { cursor: 'not-allowed' }) }, react_1.default.cloneElement(element, {
617
+ style: __assign(__assign({}, omitted), { pointerEvents: 'none' }),
618
+ className: undefined,
619
+ })));
620
+ }
621
+ // 防止为空报错
622
+ return child || react_1.default.createElement("span", null);
623
+ };
624
+ // 创建的dom节点插入getPopupContainer。
625
+ _this.appendToContainer = function (node) {
626
+ (0, raf_1.caf)(_this.rafId);
627
+ if (_this.isDidMount) {
628
+ var getGlobalPopupContainer = _this.context.getPopupContainer;
629
+ var getPopupContainer = _this.getMergedProps(['getPopupContainer']).getPopupContainer;
630
+ var gpc = getPopupContainer || getGlobalPopupContainer;
631
+ var rootElement = _this.getRootElement();
632
+ var parent_1 = gpc(rootElement);
633
+ if (parent_1) {
634
+ parent_1.appendChild(node);
635
+ return;
636
+ }
637
+ }
638
+ _this.rafId = (0, raf_1.raf)(function () {
639
+ _this.appendToContainer(node);
640
+ });
641
+ };
642
+ _this.getContainer = function () {
643
+ var popupContainer = document.createElement('div');
644
+ popupContainer.style.width = '100%';
645
+ popupContainer.style.position = 'absolute';
646
+ popupContainer.style.top = '0';
647
+ popupContainer.style.left = '0';
648
+ _this.popupContainer = popupContainer;
649
+ _this.appendToContainer(popupContainer);
650
+ return popupContainer;
651
+ };
652
+ // 1. 触发直接附加到 Trigger 上的事件,大多是Trigger直接嵌套Trigger的情况
653
+ // 2. 触发children上直接被附加的事件
654
+ _this.triggerPropsEvent = function (eventName, e) {
655
+ var child = _this.getChild();
656
+ var childHandler = child && child.props && child.props[eventName];
657
+ var handlerFn = _this.getMergedProps([eventName])[eventName];
658
+ if ((0, is_1.isFunction)(childHandler)) {
659
+ childHandler(e);
660
+ }
661
+ if ((0, is_1.isFunction)(handlerFn)) {
662
+ handlerFn(e);
663
+ }
664
+ };
665
+ // 触发 children/ trigger 组件上被附加的事件
666
+ _this.triggerOriginEvent = function (eventName) {
667
+ var child = _this.getChild();
668
+ var childHandler = child && child.props && child.props[eventName];
669
+ var propsHandler = _this.getMergedProps([eventName])[eventName];
670
+ if ((0, is_1.isFunction)(propsHandler) && (0, is_1.isFunction)(childHandler)) {
671
+ return function (e) {
672
+ childHandler(e);
673
+ propsHandler(e);
674
+ };
675
+ }
676
+ return childHandler || propsHandler;
677
+ };
678
+ var mergedProps = _this.getMergedProps(props);
679
+ var popupVisible = 'popupVisible' in mergedProps ? mergedProps.popupVisible : mergedProps.defaultPopupVisible;
680
+ _this.popupOpen = !!popupVisible;
681
+ _this.triggerRef = (0, react_1.createRef)();
682
+ _this.state = {
683
+ popupVisible: !!popupVisible,
684
+ popupStyle: {},
685
+ };
686
+ return _this;
687
+ }
688
+ Trigger.getDerivedStateFromProps = function (nextProps, state) {
689
+ if ('popupVisible' in nextProps && nextProps.popupVisible !== state.popupVisible) {
690
+ return {
691
+ popupVisible: nextProps.popupVisible,
692
+ };
693
+ }
694
+ return null;
695
+ };
696
+ Trigger.prototype.componentDidMount = function () {
697
+ this.componentDidUpdate(this.getMergedProps());
698
+ this.isDidMount = true;
699
+ this.unmount = false;
700
+ this.childrenDom = this.getRootElement();
701
+ if (this.state.popupVisible) {
702
+ this.childrenDomSize = getDOMPos(this.childrenDom, {
703
+ boundaryDistance: this.props.alignPoint ? undefined : this.props.boundaryDistance,
704
+ position: this.props.position,
705
+ });
706
+ }
707
+ };
708
+ Trigger.prototype.componentDidUpdate = function (_prevProps) {
709
+ var prevProps = this.getMergedProps(_prevProps);
710
+ var currentProps = this.getMergedProps();
711
+ if (!prevProps.popupVisible && currentProps.popupVisible) {
712
+ this.update();
713
+ }
714
+ var popupVisible = this.state.popupVisible;
715
+ this.popupOpen = popupVisible;
716
+ var getDocument = currentProps.getDocument;
717
+ if (!popupVisible) {
718
+ this.offClickOutside();
719
+ this.offContainerResize();
720
+ this.offWindowResize();
721
+ this.offScrollListeners();
722
+ return;
723
+ }
724
+ var rect = getDOMPos(this.childrenDom, {
725
+ boundaryDistance: this.props.alignPoint ? {} : this.props.boundaryDistance,
726
+ position: this.props.position,
727
+ });
728
+ // children节点的尺寸改变,主要是处理children 存在scale等动画属性,或者移动位置的时候,popup 的位置有问题
729
+ if (JSON.stringify(rect) !== JSON.stringify(this.childrenDomSize)) {
730
+ this.updatePopupPosition();
731
+ this.childrenDomSize = rect;
732
+ }
733
+ // popupVisible为true
734
+ this.onContainerResize();
735
+ if (currentProps.updateOnScroll || currentProps.containerScrollToClose) {
736
+ this.onContainersScroll(currentProps);
737
+ }
738
+ if (!this.handleWindowResize) {
739
+ (0, dom_1.on)(window, 'resize', this.handleUpdatePosition);
740
+ this.handleWindowResize = true;
741
+ }
742
+ if (!this.handleClickOutside) {
743
+ var root = (0, is_1.isFunction)(getDocument) && getDocument();
744
+ if (root) {
745
+ // clickOutside 必须监听mousedown。
746
+ // 1. 如果事件目标元素在click后被移除,document.onclick被触发时已经没有该元素,会错误触发clickOutside逻辑,隐藏popup。
747
+ // 2. 点击label标签,会触发对应input元素的点击事件,导致触发clickOutside,隐藏popup。
748
+ (0, dom_1.on)(root, 'mousedown', this.onClickOutside, {
749
+ capture: (0, is_1.isObject)(currentProps.clickOutsideToClose)
750
+ ? currentProps.clickOutsideToClose.capture
751
+ : false,
752
+ });
753
+ this.handleClickOutside = true;
754
+ }
755
+ }
756
+ };
757
+ Trigger.prototype.componentWillUnmount = function () {
758
+ this.unmount = true;
759
+ this.offClickOutside();
760
+ this.clearTimer();
761
+ this.offWindowResize();
762
+ this.offScrollListeners();
763
+ this.offContainerResize();
764
+ (0, raf_1.caf)(this.rafId);
765
+ };
766
+ Trigger.prototype.clearDelayTimer = function () {
767
+ if (this.delayTimer) {
768
+ clearTimeout(this.delayTimer);
769
+ this.delayTimer = null;
770
+ }
771
+ };
772
+ Trigger.prototype.render = function () {
773
+ var _a, _b, _c;
774
+ var _this = this;
775
+ var _d;
776
+ var _e = this.getMergedProps(), children = _e.children, style = _e.style, className = _e.className, arrowProps = _e.arrowProps, disabled = _e.disabled, popup = _e.popup, classNames = _e.classNames, duration = _e.duration, unmountOnExit = _e.unmountOnExit, alignPoint = _e.alignPoint, autoAlignPopupWidth = _e.autoAlignPopupWidth, position = _e.position, childrenPrefix = _e.childrenPrefix, showArrow = _e.showArrow, dropdownPopupStyle = _e.popupStyle, __onExit = _e.__onExit, __onExited = _e.__onExited;
777
+ var isExistChildren = children || children === 0;
778
+ var _f = this.context, getPrefixCls = _f.getPrefixCls, zIndex = _f.zIndex, rtl = _f.rtl;
779
+ var _g = this.state, popupVisible = _g.popupVisible, popupStyle = _g.popupStyle;
780
+ if (!popup) {
781
+ return null;
782
+ }
783
+ var mergeProps = {};
784
+ var popupEventProps = {
785
+ onMouseDown: this.onPopupMouseDown,
786
+ };
787
+ if (this.isHoverTrigger() && !disabled) {
788
+ mergeProps.onMouseEnter = this.onMouseEnter;
789
+ mergeProps.onMouseLeave = this.onMouseLeave;
790
+ // https://github.com/arco-design/arco-design/issues/1804
791
+ // TODO: remove login in next major version
792
+ if (this.isClickToHide()) {
793
+ mergeProps.onClick = this.clickToHidePopup;
794
+ }
795
+ if (alignPoint) {
796
+ mergeProps.onMouseMove = this.onMouseMove;
797
+ }
798
+ if (!this.isPopupHoverHide()) {
799
+ popupEventProps.onMouseEnter = this.onPopupMouseEnter;
800
+ popupEventProps.onMouseLeave = this.onPopupMouseLeave;
801
+ }
802
+ }
803
+ else {
804
+ mergeProps.onMouseEnter = this.triggerOriginEvent('onMouseEnter');
805
+ mergeProps.onMouseLeave = this.triggerOriginEvent('onMouseLeave');
806
+ }
807
+ if (this.isContextMenuTrigger() && !disabled) {
808
+ mergeProps.onContextMenu = this.onContextMenu;
809
+ mergeProps.onClick = this.clickToHidePopup;
810
+ }
811
+ else {
812
+ mergeProps.onContextMenu = this.triggerOriginEvent('onContextMenu');
813
+ }
814
+ if (this.isClickTrigger() && !disabled) {
815
+ mergeProps.onClick = this.onClick;
816
+ }
817
+ else {
818
+ mergeProps.onClick = mergeProps.onClick || this.triggerOriginEvent('onClick');
819
+ }
820
+ if (this.isFocusTrigger() && !disabled) {
821
+ mergeProps.onFocus = this.onFocus;
822
+ if (this.isBlurToHide()) {
823
+ mergeProps.onBlur = this.onBlur;
824
+ }
825
+ }
826
+ else {
827
+ mergeProps.onFocus = this.triggerOriginEvent('onFocus');
828
+ mergeProps.onBlur = this.triggerOriginEvent('onBlur');
829
+ }
830
+ if (!disabled) {
831
+ mergeProps.onKeyDown = this.onKeyDown;
832
+ }
833
+ else {
834
+ mergeProps.onKeyDown = this.triggerOriginEvent('onKeyDown');
835
+ }
836
+ var child = this.getChild();
837
+ var popupChildren = react_1.default.Children.only(popup());
838
+ if (child.props.className) {
839
+ mergeProps.className = child.props.className;
840
+ }
841
+ if (childrenPrefix && popupVisible) {
842
+ mergeProps.className = mergeProps.className
843
+ ? mergeProps.className + " " + childrenPrefix + "-open"
844
+ : childrenPrefix + "-open";
845
+ }
846
+ // 只有在focus触发时,设置tabIndex,点击tab键,能触发focus事件,展示弹出框
847
+ if (this.isFocusTrigger()) {
848
+ mergeProps.tabIndex = disabled ? -1 : 0;
849
+ }
850
+ var prefixCls = getPrefixCls('trigger');
851
+ var popupClassName = (0, classNames_1.default)(prefixCls, childrenPrefix, prefixCls + "-position-" + position, (_a = {}, _a[prefixCls + "-rtl"] = rtl, _a), className);
852
+ var childrenComponent = isExistChildren && (react_1.default.createElement(resizeObserver_1.default, { onResize: this.onResize, getTargetDOMNode: function () {
853
+ return _this.rootElementRef;
854
+ } }, react_1.default.cloneElement(child, __assign(__assign({}, mergeProps), { ref: !(0, is_1.supportRef)(child)
855
+ ? undefined
856
+ : function (node) {
857
+ _this.rootElementRef = node;
858
+ (0, react_dom_1.callbackOriginRef)(child, node);
859
+ } }))));
860
+ var portalContent = (react_1.default.createElement(react_transition_group_1.CSSTransition, { in: !!popupVisible, timeout: duration, classNames: classNames, unmountOnExit: unmountOnExit, appear: true, mountOnEnter: true, onEnter: function () {
861
+ _this.triggerRefDestoried = false;
862
+ var e = _this.getPopupElement();
863
+ if (!e) {
864
+ return;
865
+ }
866
+ e.style.display = 'initial';
867
+ e.style.pointerEvents = 'none';
868
+ if (classNames === 'slideDynamicOrigin') {
869
+ // 下拉菜单
870
+ e.style.transform = _this.getTransformTranslate();
871
+ }
872
+ }, onEntering: function () {
873
+ var e = _this.getPopupElement();
874
+ if (!e) {
875
+ return;
876
+ }
877
+ if (classNames === 'slideDynamicOrigin') {
878
+ // 下拉菜单
879
+ e.style.transform = '';
880
+ }
881
+ }, onEntered: function () {
882
+ var e = _this.getPopupElement();
883
+ if (!e) {
884
+ return;
885
+ }
886
+ e.style.pointerEvents = 'auto';
887
+ _this.forceUpdate();
888
+ }, onExit: function () {
889
+ var e = _this.getPopupElement();
890
+ if (!e) {
891
+ return;
892
+ }
893
+ // 避免消失动画时对元素的快速点击触发意外的操作
894
+ e.style.pointerEvents = 'none';
895
+ __onExit === null || __onExit === void 0 ? void 0 : __onExit(e);
896
+ }, onExited: function () {
897
+ var e = _this.getPopupElement();
898
+ if (!e) {
899
+ return;
900
+ }
901
+ e.style.display = 'none';
902
+ // 这里立即设置为null是为了在setState popupStyle引起重新渲染时,能触发 Portal的卸载事件。移除父节点。
903
+ // 否则只有在下个循环中 triggerRef 才会变为null,需要重新forceUpdate,才能触发Portal的unmount。
904
+ if (unmountOnExit) {
905
+ _this.triggerRefDestoried = true;
906
+ }
907
+ _this.setState({ popupStyle: {} });
908
+ __onExited === null || __onExited === void 0 ? void 0 : __onExited(e);
909
+ }, nodeRef: this.triggerRef },
910
+ react_1.default.createElement(resizeObserver_1.default, { onResize: function () {
911
+ var target = _this.triggerRef.current;
912
+ if (target) {
913
+ // Avoid the flickering problem caused by the size change and positioning not being recalculated in time.
914
+ // TODO: Consider changing the popup style directly in the next major version
915
+ var popupStyle_1 = _this.getPopupStyle();
916
+ var style_1 = _this.props.style || {};
917
+ target.style.top = String(style_1.top || popupStyle_1.top + "px");
918
+ target.style.left = String(style_1.left || popupStyle_1.left + "px");
919
+ }
920
+ _this.onResize();
921
+ }, getTargetDOMNode: function () { return _this.getPopupElement(); } },
922
+ react_1.default.createElement("span", __assign({ ref: this.triggerRef, "trigger-placement": this.realPosition, style: __assign(__assign(__assign({ width: autoAlignPopupWidth && (style === null || style === void 0 ? void 0 : style.width) === undefined
923
+ ? (_d = this.childrenDomSize) === null || _d === void 0 ? void 0 : _d.width
924
+ : '' }, popupStyle), { position: 'absolute', zIndex: zIndex || '' }), style) }, popupEventProps, { className: popupClassName }, (0, pick_1.pickDataAttributes)(this.props)),
925
+ react_1.default.createElement(popupChildren.type, __assign({ ref: popupChildren.ref }, popupChildren.props, { style: __assign(__assign({}, popupChildren.props.style), dropdownPopupStyle) })),
926
+ (showArrow || arrowProps) && (react_1.default.createElement("div", { className: (0, classNames_1.default)(prefixCls + "-arrow-container", (_b = {},
927
+ _b[childrenPrefix + "-arrow-container"] = childrenPrefix,
928
+ _b)) },
929
+ react_1.default.createElement("div", __assign({}, arrowProps, { className: (0, classNames_1.default)(prefixCls + "-arrow", (_c = {},
930
+ _c[childrenPrefix + "-arrow"] = childrenPrefix,
931
+ _c), arrowProps === null || arrowProps === void 0 ? void 0 : arrowProps.className), style: __assign(__assign({}, this.arrowStyle), arrowProps === null || arrowProps === void 0 ? void 0 : arrowProps.style) }))))))));
932
+ // 如果 triggerRef 不存在,说明弹出层内容被销毁,可以隐藏portal。
933
+ var portal = popupVisible || (this.getPopupElement() && !this.triggerRefDestoried) ? (react_1.default.createElement(portal_1.default, { getContainer: this.getContainer }, portalContent)) : null;
934
+ return isExistChildren ? (react_1.default.createElement(react_1.default.Fragment, null,
935
+ childrenComponent,
936
+ portal)) : (portal);
937
+ };
938
+ Trigger.displayName = 'Trigger';
939
+ Trigger.contextType = ConfigProvider_1.ConfigContext;
940
+ return Trigger;
941
+ }(react_1.PureComponent));
942
+ exports.default = Trigger;