@apdesign/web-react 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2290) hide show
  1. package/README.md +6 -107
  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,672 +1,672 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __read = (this && this.__read) || function (o, n) {
13
- var m = typeof Symbol === "function" && o[Symbol.iterator];
14
- if (!m) return o;
15
- var i = m.call(o), r, ar = [], e;
16
- try {
17
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
- }
19
- catch (error) { e = { error: error }; }
20
- finally {
21
- try {
22
- if (r && !r.done && (m = i["return"])) m.call(i);
23
- }
24
- finally { if (e) throw e.error; }
25
- }
26
- return ar;
27
- };
28
- var __values = (this && this.__values) || function(o) {
29
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
30
- if (m) return m.call(o);
31
- if (o && typeof o.length === "number") return {
32
- next: function () {
33
- if (o && i >= o.length) o = void 0;
34
- return { value: o && o[i++], done: !o };
35
- }
36
- };
37
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
38
- };
39
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
40
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
41
- if (ar || !(i in from)) {
42
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
43
- ar[i] = from[i];
44
- }
45
- }
46
- return to.concat(ar || Array.prototype.slice.call(from));
47
- };
48
- import React, { useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState, } from 'react';
49
- import cs from '../_util/classNames';
50
- import { ArrowUp, ArrowDown, Enter, Esc, Tab } from '../_util/keycode';
51
- import Trigger from '../Trigger';
52
- import OptGroup from './opt-group';
53
- import Option from './option';
54
- import ResizeObserver from '../_util/resizeObserver';
55
- import { isArray, isFunction, isObject } from '../_util/is';
56
- import getHotkeyHandler from '../_util/getHotkeyHandler';
57
- import warning from '../_util/warning';
58
- import SelectView from '../_class/select-view';
59
- import VirtualList from '../_class/VirtualList';
60
- import { preventDefaultEvent, isEmptyValue, getValidValue, isSelectOption, isSelectOptGroup, flatChildren, } from './utils';
61
- import { ConfigContext } from '../ConfigProvider';
62
- import useMergeValue from '../_util/hooks/useMergeValue';
63
- import omit from '../_util/omit';
64
- import useMergeProps from '../_util/hooks/useMergeProps';
65
- import useId from '../_util/hooks/useId';
66
- // 用户创建中的option的origin标识
67
- var USER_CREATING_OPTION_ORIGIN = 'userCreatingOption';
68
- var defaultProps = {
69
- trigger: 'click',
70
- bordered: true,
71
- filterOption: true,
72
- unmountOnExit: true,
73
- defaultActiveFirstOption: true,
74
- };
75
- var triggerPopupAlign = { bottom: 4 };
76
- function Select(baseProps, ref) {
77
- var _a = useContext(ConfigContext), getPrefixCls = _a.getPrefixCls, renderEmpty = _a.renderEmpty, componentConfig = _a.componentConfig, rtl = _a.rtl;
78
- var props = useMergeProps(baseProps, defaultProps, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.Select);
79
- var children = props.children, renderFormat = props.renderFormat, defaultActiveFirstOption = props.defaultActiveFirstOption, disabled = props.disabled, unmountOnExit = props.unmountOnExit, notFoundContent = props.notFoundContent, showSearch = props.showSearch, tokenSeparators = props.tokenSeparators, options = props.options, filterOption = props.filterOption, labelInValue = props.labelInValue, getPopupContainer = props.getPopupContainer, trigger = props.trigger, triggerElement = props.triggerElement, triggerProps = props.triggerProps, dropdownRender = props.dropdownRender, dropdownMenuStyle = props.dropdownMenuStyle, dropdownMenuClassName = props.dropdownMenuClassName, virtualListProps = props.virtualListProps,
80
- // events
81
- onChange = props.onChange, onSelect = props.onSelect, onDeselect = props.onDeselect, onClear = props.onClear, onSearch = props.onSearch, onFocus = props.onFocus, onBlur = props.onBlur, onPopupScroll = props.onPopupScroll, onVisibleChange = props.onVisibleChange, onInputValueChange = props.onInputValueChange, onPaste = props.onPaste, onKeyDown = props.onKeyDown;
82
- // TODO 兼容逻辑,3.0 移除 tags 模式
83
- var mode = props.mode, allowCreate = props.allowCreate;
84
- if (mode === 'tags') {
85
- mode = 'multiple';
86
- allowCreate = true;
87
- warning(true, "[Arco Select] The 'tags' mode will be removed in the next major version, please use {mode: \"multiple\", allowCreate: true} instead.");
88
- }
89
- var prefixCls = getPrefixCls('select');
90
- var isMultipleMode = mode === 'multiple';
91
- // TODO: 统一 useMergeValue 函数的表现
92
- var _b = __read(useState(getValidValue(props.defaultValue, isMultipleMode, labelInValue)), 2), stateValue = _b[0], setValue = _b[1];
93
- var value = 'value' in props ? getValidValue(props.value, isMultipleMode, labelInValue) : stateValue;
94
- var _c = __read(useMergeValue('', {
95
- value: 'inputValue' in props ? props.inputValue || '' : undefined,
96
- }), 3), inputValue = _c[0], setInputValue = _c[1], stateInputValue = _c[2];
97
- var _d = __read(useMergeValue(false, {
98
- defaultValue: props.defaultPopupVisible,
99
- value: 'popupVisible' in props
100
- ? props.popupVisible
101
- : triggerProps && 'popupVisible' in triggerProps
102
- ? triggerProps.popupVisible
103
- : undefined,
104
- }), 2), popupVisible = _d[0], setPopupVisible = _d[1];
105
- // allowCreate 时,用户正在创建的选项值
106
- var _e = __read(useState(null), 2), userCreatingOption = _e[0], setUserCreatingOption = _e[1];
107
- // allowCreate 时,由用户输入而扩展到选项中的值
108
- var _f = __read(useState([]), 2), userCreatedOptions = _f[0], setUserCreatedOptions = _f[1];
109
- // 具有选中态或者 hover 态的 option 的 value
110
- var _g = __read(useState(isArray(value) ? value[0] : value), 2), valueActive = _g[0], setValueActive = _g[1];
111
- // 缓存较为耗时的 flatChildren 的结果
112
- var _h = useMemo(function () {
113
- return flatChildren({ children: children, options: options, filterOption: filterOption }, {
114
- prefixCls: prefixCls,
115
- inputValue: inputValue,
116
- userCreatedOptions: userCreatedOptions,
117
- userCreatingOption: userCreatingOption,
118
- });
119
- }, [children, options, filterOption, inputValue, userCreatingOption, userCreatedOptions]), childrenList = _h.childrenList, optionInfoMap = _h.optionInfoMap, optionValueList = _h.optionValueList, optionIndexListForArrowKey = _h.optionIndexListForArrowKey, hasOptGroup = _h.hasOptGroup, hasComplexLabelInOptions = _h.hasComplexLabelInOptions;
120
- // ref
121
- var refWrapper = useRef(null);
122
- var refTrigger = useRef(null);
123
- var refSelectView = useRef(null);
124
- // 用来保存 value 和选中项的映射
125
- var refValueMap = useRef([]);
126
- // 用 none 表示目前处于键盘操作中,忽略鼠标的 onMouseEnter 和 onMouseLeave 事件
127
- var refKeyboardArrowDirection = useRef(null);
128
- // 触发 onInputValueChange 回调的值
129
- var refOnInputChangeCallbackValue = useRef(inputValue);
130
- // 触发 onInputValueChange 回调的原因
131
- var refOnInputChangeCallbackReason = useRef(null);
132
- // 上次成功触发自动分词的时间
133
- var refTSLastSeparateTriggered = useRef(0);
134
- // Whether in the hidden animation of drop-down
135
- var refPopupExiting = useRef(false);
136
- // Unique ID of this select instance
137
- var instancePopupID = useId(prefixCls + "-popup-");
138
- var isNoOptionSelected = isEmptyValue(value, isMultipleMode);
139
- var valueActiveDefault = useMemo(function () {
140
- var _a, _b;
141
- if (defaultActiveFirstOption) {
142
- var firstValue = isArray(value) ? value[0] : value;
143
- // only valid option will render in option list
144
- // if it's not rendered (e.g. filtered by user-search), ignore it
145
- var isFirstValueOptionSelectable = !isNoOptionSelected && ((_a = optionInfoMap.get(firstValue)) === null || _a === void 0 ? void 0 : _a._valid);
146
- // 是否第一个 option 是创建中选项
147
- var isFirstCreatingOption = ((_b = optionInfoMap === null || optionInfoMap === void 0 ? void 0 : optionInfoMap.get(optionValueList[0])) === null || _b === void 0 ? void 0 : _b._origin) === USER_CREATING_OPTION_ORIGIN;
148
- return isFirstValueOptionSelectable && !isFirstCreatingOption
149
- ? firstValue
150
- : optionValueList[optionIndexListForArrowKey[0]];
151
- }
152
- return undefined;
153
- }, [
154
- value,
155
- optionInfoMap,
156
- optionValueList,
157
- optionIndexListForArrowKey,
158
- defaultActiveFirstOption,
159
- isNoOptionSelected,
160
- ]);
161
- var scrollIntoView = useCallback(function (optionValue, options) {
162
- var _a;
163
- var activeOption = optionInfoMap.get(optionValue);
164
- if (refWrapper.current && ((_a = activeOption === null || activeOption === void 0 ? void 0 : activeOption.child) === null || _a === void 0 ? void 0 : _a.props)) {
165
- refWrapper.current.scrollTo({ key: activeOption.child.props._key, options: options });
166
- }
167
- }, [optionInfoMap]);
168
- var userCreatedOptionFormatter = useCallback(function (inputValue, creating) {
169
- if (creating === void 0) { creating = false; }
170
- return isObject(allowCreate) && typeof (allowCreate === null || allowCreate === void 0 ? void 0 : allowCreate.formatter) === 'function'
171
- ? allowCreate.formatter(inputValue, creating)
172
- : inputValue;
173
- }, [allowCreate]);
174
- // Try to update inputValue and trigger onInputValueChange callback
175
- var tryUpdateInputValue = function (value, reason) {
176
- if (value !== refOnInputChangeCallbackValue.current ||
177
- reason !== refOnInputChangeCallbackReason.current) {
178
- setInputValue(value);
179
- refOnInputChangeCallbackValue.current = value;
180
- refOnInputChangeCallbackReason.current = reason;
181
- onInputValueChange && onInputValueChange(value, reason);
182
- }
183
- };
184
- // 尝试更新 popupVisible,触发 onVisibleChange
185
- var tryUpdatePopupVisible = function (value) {
186
- if (popupVisible !== value) {
187
- setPopupVisible(value);
188
- onVisibleChange && onVisibleChange(value);
189
- triggerProps && triggerProps.onVisibleChange && triggerProps.onVisibleChange(value);
190
- }
191
- };
192
- // 处理模式切换时 value 格式的校正
193
- useEffect(function () {
194
- if (isMultipleMode) {
195
- if (!Array.isArray(value)) {
196
- setValue(value === undefined ? [] : [value]);
197
- }
198
- }
199
- else if (Array.isArray(value)) {
200
- setValue(value.length === 0 ? undefined : value[0]);
201
- }
202
- }, [isMultipleMode, value]);
203
- // 选项下拉框显示/隐藏时的一些自动行为
204
- useEffect(function () {
205
- if (popupVisible) {
206
- // 重新设置 hover 态的 Option
207
- setValueActive(valueActiveDefault);
208
- // 在弹出框动画结束之后再执行scrollIntoView,否则会有不必要的滚动产生
209
- var firstValue_1 = isArray(value) ? value[0] : value;
210
- if (!isNoOptionSelected && optionInfoMap.has(firstValue_1)) {
211
- setTimeout(function () { return scrollIntoView(firstValue_1); });
212
- }
213
- }
214
- }, [popupVisible]);
215
- // 处理键盘选择Option时的列表滚动
216
- useEffect(function () {
217
- if (refKeyboardArrowDirection.current === 'up' ||
218
- refKeyboardArrowDirection.current === 'down') {
219
- scrollIntoView(valueActive);
220
- refKeyboardArrowDirection.current = 'none';
221
- }
222
- }, [valueActive]);
223
- // 选项列表改变后,将 active 选项重置
224
- useEffect(function () {
225
- setValueActive(valueActiveDefault);
226
- }, [JSON.stringify(childrenList.map(function (child) { var _a; return (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.value; }))]);
227
- // 更新 refValueMap,避免数组规模无节制扩大
228
- useEffect(function () {
229
- refValueMap.current = refValueMap.current.filter(function (x) {
230
- return isMultipleMode
231
- ? isArray(value) && value.indexOf(x.value) > -1
232
- : x.value === value;
233
- });
234
- }, [value, isMultipleMode]);
235
- // allowCreate 时,value 改变时更新下拉框选项
236
- useEffect(function () {
237
- if (allowCreate) {
238
- var nextUserCreatedOptions = void 0;
239
- if (isEmptyValue(value, isMultipleMode)) {
240
- nextUserCreatedOptions = [];
241
- }
242
- else {
243
- // 将单选和多选的情况统一处理
244
- var currentValueList_1 = Array.isArray(value) ? value : [value];
245
- // 将无对应下拉框选项的 value 当作用户创建的选项
246
- var newUserCreatedOptions = currentValueList_1
247
- .filter(function (v) {
248
- var _a;
249
- var option = optionInfoMap.get(v) || ((_a = refValueMap.current.find(function (item) { return item.value === v; })) === null || _a === void 0 ? void 0 : _a.option);
250
- return !option || option._origin === USER_CREATING_OPTION_ORIGIN;
251
- })
252
- .map(function (op) { return userCreatedOptionFormatter(op); });
253
- // 将 value 中不存在的 Option 移除
254
- var validUserCreatedOptions = userCreatedOptions.filter(function (op) {
255
- var opValue = isObject(op) ? op.value : op;
256
- return currentValueList_1.indexOf(opValue) !== -1;
257
- });
258
- nextUserCreatedOptions = validUserCreatedOptions.concat(newUserCreatedOptions);
259
- }
260
- var getOptionsValueString = function (options) {
261
- return options.map(function (option) { return (isObject(option) ? option.value : option); }).toString();
262
- };
263
- // only update state when user-created options changed
264
- if (getOptionsValueString(nextUserCreatedOptions) !== getOptionsValueString(userCreatedOptions)) {
265
- setUserCreatedOptions(nextUserCreatedOptions);
266
- }
267
- }
268
- }, [value, allowCreate, isMultipleMode, userCreatedOptionFormatter]);
269
- // allowCreate 时,根据输入内容动态修改下拉框选项
270
- useEffect(function () {
271
- if (allowCreate) {
272
- // 避免正在输入的内容覆盖已有的选项
273
- setUserCreatingOption(inputValue && !optionInfoMap.has(inputValue)
274
- ? userCreatedOptionFormatter(inputValue, true)
275
- : null);
276
- }
277
- }, [inputValue, userCreatedOptionFormatter]);
278
- // 在 inputValue 变化时,适时触发 onSearch
279
- useEffect(function () {
280
- var reason = refOnInputChangeCallbackReason.current;
281
- if (stateInputValue === inputValue && (reason === 'manual' || reason === 'optionListHide')) {
282
- onSearch && onSearch(inputValue, reason);
283
- }
284
- }, [inputValue]);
285
- var getOptionInfoByValue = useCallback(function (value) {
286
- var option = optionInfoMap.get(value);
287
- if (option) {
288
- var index = refValueMap.current.findIndex(function (item) { return item.value === value; });
289
- if (index > -1) {
290
- refValueMap.current.splice(index, 1, { value: value, option: option });
291
- }
292
- else {
293
- refValueMap.current.push({ value: value, option: option });
294
- }
295
- return option;
296
- }
297
- var item = refValueMap.current.find(function (x) { return x.value === value; });
298
- return item && item.option;
299
- }, [optionInfoMap]);
300
- // 使用方向键选择时,获取下一个 active option 的值
301
- var getValueActive = function (direction) {
302
- if (!optionIndexListForArrowKey.length) {
303
- return undefined;
304
- }
305
- if (valueActive === undefined || !optionInfoMap.has(valueActive)) {
306
- return optionValueList[optionIndexListForArrowKey[0]];
307
- }
308
- var activeOption = optionInfoMap.get(valueActive);
309
- var activeIndex = activeOption._index;
310
- var _index = optionIndexListForArrowKey.indexOf(activeIndex);
311
- var _length = optionIndexListForArrowKey.length;
312
- return optionValueList[optionIndexListForArrowKey[((direction === 'up' ? _index - 1 : _index + 1) + _length) % _length]];
313
- };
314
- // Object should be returned when labelInValue is true
315
- var getValueAndOptionForCallback = function (stateValue, isEmpty) {
316
- if (isEmpty === void 0) { isEmpty = isEmptyValue(stateValue, isMultipleMode); }
317
- var value = stateValue;
318
- var option = stateValue === undefined
319
- ? undefined
320
- : Array.isArray(stateValue)
321
- ? stateValue.map(getOptionInfoByValue)
322
- : getOptionInfoByValue(stateValue);
323
- if (labelInValue && !isEmpty) {
324
- var getOptionLabel_1 = function (optionValue, optionInfo) {
325
- var e_1, _a;
326
- if (optionInfo) {
327
- return optionInfo.children;
328
- }
329
- // https://github.com/arco-design/arco-design/issues/442
330
- // Make sure parameter value has valid label if props.value is already set
331
- var propValue = 'value' in props ? props.value : 'defaultValue' in props ? props.defaultValue : null;
332
- // Multiple mode
333
- if (Array.isArray(propValue)) {
334
- try {
335
- for (var propValue_1 = __values(propValue), propValue_1_1 = propValue_1.next(); !propValue_1_1.done; propValue_1_1 = propValue_1.next()) {
336
- var item = propValue_1_1.value;
337
- if (isObject(item) && item.value === optionValue) {
338
- return item.label;
339
- }
340
- }
341
- }
342
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
343
- finally {
344
- try {
345
- if (propValue_1_1 && !propValue_1_1.done && (_a = propValue_1.return)) _a.call(propValue_1);
346
- }
347
- finally { if (e_1) throw e_1.error; }
348
- }
349
- }
350
- // Single mode
351
- else if (isObject(propValue) && propValue.value === optionValue) {
352
- return propValue.label;
353
- }
354
- };
355
- if (Array.isArray(stateValue)) {
356
- value = stateValue.map(function (optionValue, index) { return ({
357
- value: optionValue,
358
- label: getOptionLabel_1(optionValue, option[index]),
359
- }); });
360
- }
361
- else {
362
- value = { value: stateValue, label: getOptionLabel_1(stateValue, option) };
363
- }
364
- }
365
- return { option: option, value: value };
366
- };
367
- var tryUpdateSelectValue = function (value) {
368
- setValue(value);
369
- if (onChange) {
370
- var paramsForCallback = getValueAndOptionForCallback(value);
371
- onChange(paramsForCallback.value, paramsForCallback.option);
372
- }
373
- };
374
- // 多选时,选择/取消选择一个选项
375
- var checkOption = function (optionValue, operation) {
376
- // 取消选中时不需要检查option是否存在,因为可能已被外部剔除了此选项
377
- if (operation === 'remove' || (operation === 'add' && optionInfoMap.get(optionValue))) {
378
- var newValue = operation === 'add'
379
- ? value.concat(optionValue)
380
- : value.filter(function (v) { return v !== optionValue; });
381
- var callbackToTrigger = operation === 'add' ? onSelect : onDeselect;
382
- tryUpdateSelectValue(newValue);
383
- if (typeof callbackToTrigger === 'function') {
384
- var paramsForCallback = getValueAndOptionForCallback(optionValue, false);
385
- callbackToTrigger(paramsForCallback.value, paramsForCallback.option);
386
- }
387
- }
388
- };
389
- var handleOptionClick = function (optionValue, disabled) {
390
- if (disabled) {
391
- return;
392
- }
393
- if (isMultipleMode) {
394
- checkOption(optionValue, value.indexOf(optionValue) === -1 ? 'add' : 'remove');
395
- // 点击一个选项时,清空输入框内容
396
- if (!isObject(showSearch) || !showSearch.retainInputValueWhileSelect) {
397
- tryUpdateInputValue('', 'optionChecked');
398
- }
399
- }
400
- else {
401
- if (optionValue !== value) {
402
- tryUpdateSelectValue(optionValue);
403
- }
404
- setTimeout(function () {
405
- tryUpdatePopupVisible(false);
406
- });
407
- }
408
- };
409
- // 注册快捷键
410
- var hotkeyHandler = getHotkeyHandler(new Map([
411
- [Esc.code, function () { return tryUpdatePopupVisible(false); }],
412
- [
413
- Enter.code,
414
- function () {
415
- if (popupVisible) {
416
- var option = optionInfoMap.get(valueActive);
417
- option && handleOptionClick(valueActive, option.disabled);
418
- }
419
- else {
420
- tryUpdatePopupVisible(true);
421
- }
422
- },
423
- ],
424
- [
425
- Tab.code,
426
- // 按tab键切换,关闭开启的弹出框
427
- function () { return tryUpdatePopupVisible(false); },
428
- ],
429
- [
430
- ArrowUp.code,
431
- function () {
432
- if (popupVisible) {
433
- refKeyboardArrowDirection.current = 'up';
434
- setValueActive(getValueActive('up'));
435
- return false;
436
- }
437
- },
438
- ],
439
- [
440
- ArrowDown.code,
441
- function () {
442
- if (popupVisible) {
443
- refKeyboardArrowDirection.current = 'down';
444
- setValueActive(getValueActive('down'));
445
- return false;
446
- }
447
- },
448
- ],
449
- ]));
450
- var renderPopup = function () {
451
- var _a;
452
- var _b, _c;
453
- // 没有设置弹出框的 width 时,需要在虚拟列表渲染的瞬间获得子元素的最大宽度
454
- var needMeasureLongestItem = (triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.autoAlignPopupWidth) === false &&
455
- (!((_b = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.style) === null || _b === void 0 ? void 0 : _b.width) || ((_c = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.style) === null || _c === void 0 ? void 0 : _c.width) === 'auto');
456
- // Option 存在复杂子元素时,让获得最长子元素变得困难,此时直接禁用虚拟滚动
457
- var needForbidVirtual = needMeasureLongestItem && hasComplexLabelInOptions;
458
- var mergedNotFoundContent = 'notFoundContent' in props ? notFoundContent : renderEmpty('Select');
459
- // 选项列表元素
460
- var eleOptionList = childrenList.length ? (React.createElement(VirtualList, __assign({ id: instancePopupID, role: "listbox", style: dropdownMenuStyle, className: cs(prefixCls + "-popup-inner", dropdownMenuClassName), ref: refWrapper, data: childrenList, height: null, isStaticItemHeight: !hasOptGroup, measureLongestItem: needMeasureLongestItem, itemKey: function (child) { return child.props._key; }, onMouseDown: preventDefaultEvent, onMouseMove: function () {
461
- refKeyboardArrowDirection.current = null;
462
- }, onScroll: function (e) { return onPopupScroll && onPopupScroll(e.target); } }, virtualListProps, { threshold: needForbidVirtual ? null : virtualListProps === null || virtualListProps === void 0 ? void 0 : virtualListProps.threshold }), function (child) {
463
- var _a;
464
- if (isSelectOptGroup(child)) {
465
- return React.createElement(child.type, __assign({}, child.props, { prefixCls: prefixCls }));
466
- }
467
- if (isSelectOption(child)) {
468
- var optionValue = (_a = child.props) === null || _a === void 0 ? void 0 : _a.value;
469
- var userCreatingOptionValue = isObject(userCreatingOption)
470
- ? userCreatingOption.value
471
- : userCreatingOption;
472
- var userCreatedOptionValues = userCreatedOptions.map(function (op) {
473
- return isObject(op) ? op.value : op;
474
- });
475
- var optionProps = {
476
- prefixCls: prefixCls,
477
- rtl: rtl,
478
- _valueActive: valueActive,
479
- _valueSelect: value,
480
- _isMultipleMode: isMultipleMode,
481
- _isUserCreatingOption: allowCreate && userCreatingOptionValue === optionValue,
482
- _isUserCreatedOption: allowCreate && userCreatedOptionValues.indexOf(optionValue) > -1,
483
- _onClick: handleOptionClick,
484
- _onMouseEnter: function (value) {
485
- refKeyboardArrowDirection.current === null && setValueActive(value);
486
- },
487
- _onMouseLeave: function () {
488
- refKeyboardArrowDirection.current === null && setValueActive(undefined);
489
- },
490
- };
491
- return child && React.createElement(child.type, __assign({}, child.props, optionProps));
492
- }
493
- return child;
494
- })) : null;
495
- // Avoid drop-down box jitter when user is creating a selection
496
- var isUserCreating = allowCreate && inputValue;
497
- // Dropdown-placeholder when there is no options
498
- var eleNoOptionPlaceholder = mergedNotFoundContent && !isUserCreating ? (React.createElement("div", { style: dropdownMenuStyle, className: cs(prefixCls + "-popup-inner", dropdownMenuClassName) }, mergedNotFoundContent)) : null;
499
- return (React.createElement("div", { className: cs(prefixCls + "-popup", (_a = {},
500
- _a[prefixCls + "-popup-hidden"] = eleOptionList === null && eleNoOptionPlaceholder === null,
501
- _a[prefixCls + "-popup-multiple"] = isMultipleMode,
502
- _a)),
503
- // Make sure hotkey works when dropdown layer get focused
504
- tabIndex: -1, onKeyDown: function (e) { return hotkeyHandler(e); } }, typeof dropdownRender === 'function'
505
- ? dropdownRender(eleOptionList || eleNoOptionPlaceholder)
506
- : eleOptionList || eleNoOptionPlaceholder));
507
- };
508
- var handleTokenSeparators = function (str) {
509
- // clear the timestamp, and then we can judge whether tokenSeparators has been triggered
510
- // according to timestamp value
511
- refTSLastSeparateTriggered.current = null;
512
- if (isMultipleMode && isArray(tokenSeparators) && tokenSeparators.length) {
513
- var rawValues_1 = str.split(new RegExp("[" + tokenSeparators.join('') + "]"));
514
- // 输入了分隔符的情况
515
- if (rawValues_1.length > 1) {
516
- // record the timestamp of tokenSeparators triggered
517
- refTSLastSeparateTriggered.current = Date.now();
518
- var splitValues = rawValues_1.filter(function (v, index) { return v && rawValues_1.indexOf(v) === index; });
519
- var newValue_1 = value.slice(0);
520
- var needUpdate_1 = false;
521
- splitValues.forEach(function (v) {
522
- if (newValue_1.indexOf(v) === -1 && (allowCreate || optionInfoMap.get(v))) {
523
- newValue_1.push(v);
524
- needUpdate_1 = true;
525
- }
526
- });
527
- if (needUpdate_1) {
528
- tryUpdateSelectValue(newValue_1);
529
- }
530
- }
531
- }
532
- return !!refTSLastSeparateTriggered.current;
533
- };
534
- // SelectView组件事件处理
535
- var selectViewEventHandlers = {
536
- onFocus: onFocus,
537
- onBlur: function (event) {
538
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
539
- // when drop-down is always hidden, input-text needs to be cleared after blur
540
- !popupVisible && !refPopupExiting.current && tryUpdateInputValue('', 'optionListHide');
541
- },
542
- onKeyDown: function (event) {
543
- // 处理特殊功能键的自动分词
544
- if (event.target.tagName === 'INPUT' && event.target.value) {
545
- var isTab = event.key === Tab.key;
546
- var isEnter = event.key === Enter.key;
547
- if (isEnter || isTab) {
548
- var suffix = isEnter ? '\n' : isTab ? '\t' : '';
549
- if (handleTokenSeparators(event.target.value + suffix)) {
550
- // 回车后不会触发 onChangeInputValue 回调,所以在这里直接清空输入框
551
- tryUpdateInputValue('', 'tokenSeparator');
552
- }
553
- }
554
- }
555
- // 处理快捷键
556
- hotkeyHandler(event);
557
- onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
558
- },
559
- onChangeInputValue: function (value, _a) {
560
- var inputType = _a.nativeEvent.inputType;
561
- // Pasting in the input box will trigger onPaste first and then onChange, but the value of onChange does not contain a newline character.
562
- // If word segmentation has just been triggered due to pasting, onChange will no longer attempt word segmentation.
563
- // Do NOT use await, need to update input value right away
564
- inputType !== 'insertFromPaste' && handleTokenSeparators(value);
565
- if (refTSLastSeparateTriggered.current) {
566
- tryUpdateInputValue('', 'tokenSeparator');
567
- }
568
- else {
569
- tryUpdateInputValue(value, 'manual');
570
- }
571
- if (!popupVisible && value) {
572
- tryUpdatePopupVisible(true);
573
- }
574
- },
575
- onPaste: function (e) {
576
- handleTokenSeparators(e.clipboardData.getData('text'));
577
- onPaste === null || onPaste === void 0 ? void 0 : onPaste(e);
578
- },
579
- // Option Items
580
- onRemoveCheckedItem: function (_, index, event) {
581
- event.stopPropagation();
582
- checkOption(value[index], 'remove');
583
- },
584
- onClear: function (event) {
585
- event.stopPropagation();
586
- if (isMultipleMode) {
587
- // 保留已经被选中但被disabled的选项值
588
- var newValue = value.filter(function (v) {
589
- var item = optionInfoMap.get(v);
590
- return item && item.disabled;
591
- });
592
- tryUpdateSelectValue(newValue);
593
- }
594
- else {
595
- tryUpdateSelectValue(undefined);
596
- }
597
- tryUpdateInputValue('', 'manual');
598
- onClear === null || onClear === void 0 ? void 0 : onClear(popupVisible);
599
- },
600
- };
601
- useImperativeHandle(ref, function () {
602
- var _a, _b;
603
- return ({
604
- dom: (_a = refSelectView.current) === null || _a === void 0 ? void 0 : _a.dom,
605
- focus: function () {
606
- refSelectView.current && refSelectView.current.focus();
607
- },
608
- blur: function () {
609
- refSelectView.current && refSelectView.current.blur();
610
- },
611
- hotkeyHandler: hotkeyHandler,
612
- activeOptionValue: valueActive,
613
- getOptionInfoByValue: getOptionInfoByValue,
614
- getOptionInfoList: function () { return __spreadArray([], __read(optionInfoMap.values()), false).filter(function (info) { return info._valid; }); },
615
- scrollIntoView: scrollIntoView,
616
- getRootDOMNode: (_b = refSelectView.current) === null || _b === void 0 ? void 0 : _b.getRootDOMNode,
617
- });
618
- }, [hotkeyHandler, optionInfoMap, valueActive, getOptionInfoByValue, scrollIntoView]);
619
- var renderView = function (eleView) {
620
- return (React.createElement(Trigger, __assign({ ref: function (ref) { return (refTrigger.current = ref); }, popup: renderPopup, trigger: trigger, disabled: disabled, getPopupContainer: getPopupContainer, classNames: "slideDynamicOrigin", autoAlignPopupWidth: true, popupAlign: triggerPopupAlign, popupVisible: popupVisible, unmountOnExit: unmountOnExit, onVisibleChange: tryUpdatePopupVisible, __onExit: function () {
621
- refPopupExiting.current = true;
622
- }, __onExited: function () {
623
- refPopupExiting.current = false;
624
- tryUpdateInputValue('', 'optionListHide');
625
- } }, omit(triggerProps, ['popupVisible', 'onVisibleChange'])), eleView));
626
- };
627
- var usedTriggerElement = typeof triggerElement === 'function'
628
- ? triggerElement(getValueAndOptionForCallback(value))
629
- : triggerElement;
630
- return (React.createElement(ResizeObserver, { onResize: function () { return refTrigger.current.updatePopupPosition(); } }, usedTriggerElement !== undefined && usedTriggerElement !== null ? (renderView(usedTriggerElement)) : (React.createElement(SelectView, __assign({}, props, selectViewEventHandlers, { ref: refSelectView,
631
- // state
632
- value: value, inputValue: inputValue, popupVisible: popupVisible,
633
- // other
634
- rtl: rtl, prefixCls: prefixCls, allowCreate: !!allowCreate, ariaControls: instancePopupID, isEmptyValue: isNoOptionSelected, isMultiple: isMultipleMode, onSort: tryUpdateSelectValue, renderText: function (value) {
635
- var option = getOptionInfoByValue(value);
636
- var text = value;
637
- if (isFunction(renderFormat)) {
638
- var paramsForCallback = getValueAndOptionForCallback(value, false);
639
- text = renderFormat(paramsForCallback.option || null, paramsForCallback.value);
640
- }
641
- else {
642
- var foundLabelFromProps = false;
643
- if (labelInValue) {
644
- var propValue = props.value || props.defaultValue;
645
- if (Array.isArray(propValue)) {
646
- var targetLabeledValue = propValue.find(function (item) { return isObject(item) && item.value === value; });
647
- if (targetLabeledValue) {
648
- text = targetLabeledValue.label;
649
- foundLabelFromProps = true;
650
- }
651
- }
652
- else if (isObject(propValue)) {
653
- text = propValue.label;
654
- foundLabelFromProps = true;
655
- }
656
- }
657
- if (!foundLabelFromProps && option && 'children' in option) {
658
- text = option.children;
659
- }
660
- }
661
- return {
662
- text: text,
663
- disabled: option && option.disabled,
664
- };
665
- }, renderView: renderView })))));
666
- }
667
- var ForwardRefSelect = React.forwardRef(Select);
668
- var SelectComponent = ForwardRefSelect;
669
- SelectComponent.displayName = 'Select';
670
- SelectComponent.Option = Option;
671
- SelectComponent.OptGroup = OptGroup;
672
- export default SelectComponent;
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
28
+ var __values = (this && this.__values) || function(o) {
29
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
30
+ if (m) return m.call(o);
31
+ if (o && typeof o.length === "number") return {
32
+ next: function () {
33
+ if (o && i >= o.length) o = void 0;
34
+ return { value: o && o[i++], done: !o };
35
+ }
36
+ };
37
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
38
+ };
39
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
40
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
41
+ if (ar || !(i in from)) {
42
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
43
+ ar[i] = from[i];
44
+ }
45
+ }
46
+ return to.concat(ar || Array.prototype.slice.call(from));
47
+ };
48
+ import React, { useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState, } from 'react';
49
+ import cs from '../_util/classNames';
50
+ import { ArrowUp, ArrowDown, Enter, Esc, Tab } from '../_util/keycode';
51
+ import Trigger from '../Trigger';
52
+ import OptGroup from './opt-group';
53
+ import Option from './option';
54
+ import ResizeObserver from '../_util/resizeObserver';
55
+ import { isArray, isFunction, isObject } from '../_util/is';
56
+ import getHotkeyHandler from '../_util/getHotkeyHandler';
57
+ import warning from '../_util/warning';
58
+ import SelectView from '../_class/select-view';
59
+ import VirtualList from '../_class/VirtualList';
60
+ import { preventDefaultEvent, isEmptyValue, getValidValue, isSelectOption, isSelectOptGroup, flatChildren, } from './utils';
61
+ import { ConfigContext } from '../ConfigProvider';
62
+ import useMergeValue from '../_util/hooks/useMergeValue';
63
+ import omit from '../_util/omit';
64
+ import useMergeProps from '../_util/hooks/useMergeProps';
65
+ import useId from '../_util/hooks/useId';
66
+ // 用户创建中的option的origin标识
67
+ var USER_CREATING_OPTION_ORIGIN = 'userCreatingOption';
68
+ var defaultProps = {
69
+ trigger: 'click',
70
+ bordered: true,
71
+ filterOption: true,
72
+ unmountOnExit: true,
73
+ defaultActiveFirstOption: true,
74
+ };
75
+ var triggerPopupAlign = { bottom: 4 };
76
+ function Select(baseProps, ref) {
77
+ var _a = useContext(ConfigContext), getPrefixCls = _a.getPrefixCls, renderEmpty = _a.renderEmpty, componentConfig = _a.componentConfig, rtl = _a.rtl;
78
+ var props = useMergeProps(baseProps, defaultProps, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.Select);
79
+ var children = props.children, renderFormat = props.renderFormat, defaultActiveFirstOption = props.defaultActiveFirstOption, disabled = props.disabled, unmountOnExit = props.unmountOnExit, notFoundContent = props.notFoundContent, showSearch = props.showSearch, tokenSeparators = props.tokenSeparators, options = props.options, filterOption = props.filterOption, labelInValue = props.labelInValue, getPopupContainer = props.getPopupContainer, trigger = props.trigger, triggerElement = props.triggerElement, triggerProps = props.triggerProps, dropdownRender = props.dropdownRender, dropdownMenuStyle = props.dropdownMenuStyle, dropdownMenuClassName = props.dropdownMenuClassName, virtualListProps = props.virtualListProps,
80
+ // events
81
+ onChange = props.onChange, onSelect = props.onSelect, onDeselect = props.onDeselect, onClear = props.onClear, onSearch = props.onSearch, onFocus = props.onFocus, onBlur = props.onBlur, onPopupScroll = props.onPopupScroll, onVisibleChange = props.onVisibleChange, onInputValueChange = props.onInputValueChange, onPaste = props.onPaste, onKeyDown = props.onKeyDown;
82
+ // TODO 兼容逻辑,3.0 移除 tags 模式
83
+ var mode = props.mode, allowCreate = props.allowCreate;
84
+ if (mode === 'tags') {
85
+ mode = 'multiple';
86
+ allowCreate = true;
87
+ warning(true, "[Arco Select] The 'tags' mode will be removed in the next major version, please use {mode: \"multiple\", allowCreate: true} instead.");
88
+ }
89
+ var prefixCls = getPrefixCls('select');
90
+ var isMultipleMode = mode === 'multiple';
91
+ // TODO: 统一 useMergeValue 函数的表现
92
+ var _b = __read(useState(getValidValue(props.defaultValue, isMultipleMode, labelInValue)), 2), stateValue = _b[0], setValue = _b[1];
93
+ var value = 'value' in props ? getValidValue(props.value, isMultipleMode, labelInValue) : stateValue;
94
+ var _c = __read(useMergeValue('', {
95
+ value: 'inputValue' in props ? props.inputValue || '' : undefined,
96
+ }), 3), inputValue = _c[0], setInputValue = _c[1], stateInputValue = _c[2];
97
+ var _d = __read(useMergeValue(false, {
98
+ defaultValue: props.defaultPopupVisible,
99
+ value: 'popupVisible' in props
100
+ ? props.popupVisible
101
+ : triggerProps && 'popupVisible' in triggerProps
102
+ ? triggerProps.popupVisible
103
+ : undefined,
104
+ }), 2), popupVisible = _d[0], setPopupVisible = _d[1];
105
+ // allowCreate 时,用户正在创建的选项值
106
+ var _e = __read(useState(null), 2), userCreatingOption = _e[0], setUserCreatingOption = _e[1];
107
+ // allowCreate 时,由用户输入而扩展到选项中的值
108
+ var _f = __read(useState([]), 2), userCreatedOptions = _f[0], setUserCreatedOptions = _f[1];
109
+ // 具有选中态或者 hover 态的 option 的 value
110
+ var _g = __read(useState(isArray(value) ? value[0] : value), 2), valueActive = _g[0], setValueActive = _g[1];
111
+ // 缓存较为耗时的 flatChildren 的结果
112
+ var _h = useMemo(function () {
113
+ return flatChildren({ children: children, options: options, filterOption: filterOption }, {
114
+ prefixCls: prefixCls,
115
+ inputValue: inputValue,
116
+ userCreatedOptions: userCreatedOptions,
117
+ userCreatingOption: userCreatingOption,
118
+ });
119
+ }, [children, options, filterOption, inputValue, userCreatingOption, userCreatedOptions]), childrenList = _h.childrenList, optionInfoMap = _h.optionInfoMap, optionValueList = _h.optionValueList, optionIndexListForArrowKey = _h.optionIndexListForArrowKey, hasOptGroup = _h.hasOptGroup, hasComplexLabelInOptions = _h.hasComplexLabelInOptions;
120
+ // ref
121
+ var refWrapper = useRef(null);
122
+ var refTrigger = useRef(null);
123
+ var refSelectView = useRef(null);
124
+ // 用来保存 value 和选中项的映射
125
+ var refValueMap = useRef([]);
126
+ // 用 none 表示目前处于键盘操作中,忽略鼠标的 onMouseEnter 和 onMouseLeave 事件
127
+ var refKeyboardArrowDirection = useRef(null);
128
+ // 触发 onInputValueChange 回调的值
129
+ var refOnInputChangeCallbackValue = useRef(inputValue);
130
+ // 触发 onInputValueChange 回调的原因
131
+ var refOnInputChangeCallbackReason = useRef(null);
132
+ // 上次成功触发自动分词的时间
133
+ var refTSLastSeparateTriggered = useRef(0);
134
+ // Whether in the hidden animation of drop-down
135
+ var refPopupExiting = useRef(false);
136
+ // Unique ID of this select instance
137
+ var instancePopupID = useId(prefixCls + "-popup-");
138
+ var isNoOptionSelected = isEmptyValue(value, isMultipleMode);
139
+ var valueActiveDefault = useMemo(function () {
140
+ var _a, _b;
141
+ if (defaultActiveFirstOption) {
142
+ var firstValue = isArray(value) ? value[0] : value;
143
+ // only valid option will render in option list
144
+ // if it's not rendered (e.g. filtered by user-search), ignore it
145
+ var isFirstValueOptionSelectable = !isNoOptionSelected && ((_a = optionInfoMap.get(firstValue)) === null || _a === void 0 ? void 0 : _a._valid);
146
+ // 是否第一个 option 是创建中选项
147
+ var isFirstCreatingOption = ((_b = optionInfoMap === null || optionInfoMap === void 0 ? void 0 : optionInfoMap.get(optionValueList[0])) === null || _b === void 0 ? void 0 : _b._origin) === USER_CREATING_OPTION_ORIGIN;
148
+ return isFirstValueOptionSelectable && !isFirstCreatingOption
149
+ ? firstValue
150
+ : optionValueList[optionIndexListForArrowKey[0]];
151
+ }
152
+ return undefined;
153
+ }, [
154
+ value,
155
+ optionInfoMap,
156
+ optionValueList,
157
+ optionIndexListForArrowKey,
158
+ defaultActiveFirstOption,
159
+ isNoOptionSelected,
160
+ ]);
161
+ var scrollIntoView = useCallback(function (optionValue, options) {
162
+ var _a;
163
+ var activeOption = optionInfoMap.get(optionValue);
164
+ if (refWrapper.current && ((_a = activeOption === null || activeOption === void 0 ? void 0 : activeOption.child) === null || _a === void 0 ? void 0 : _a.props)) {
165
+ refWrapper.current.scrollTo({ key: activeOption.child.props._key, options: options });
166
+ }
167
+ }, [optionInfoMap]);
168
+ var userCreatedOptionFormatter = useCallback(function (inputValue, creating) {
169
+ if (creating === void 0) { creating = false; }
170
+ return isObject(allowCreate) && typeof (allowCreate === null || allowCreate === void 0 ? void 0 : allowCreate.formatter) === 'function'
171
+ ? allowCreate.formatter(inputValue, creating)
172
+ : inputValue;
173
+ }, [allowCreate]);
174
+ // Try to update inputValue and trigger onInputValueChange callback
175
+ var tryUpdateInputValue = function (value, reason) {
176
+ if (value !== refOnInputChangeCallbackValue.current ||
177
+ reason !== refOnInputChangeCallbackReason.current) {
178
+ setInputValue(value);
179
+ refOnInputChangeCallbackValue.current = value;
180
+ refOnInputChangeCallbackReason.current = reason;
181
+ onInputValueChange && onInputValueChange(value, reason);
182
+ }
183
+ };
184
+ // 尝试更新 popupVisible,触发 onVisibleChange
185
+ var tryUpdatePopupVisible = function (value) {
186
+ if (popupVisible !== value) {
187
+ setPopupVisible(value);
188
+ onVisibleChange && onVisibleChange(value);
189
+ triggerProps && triggerProps.onVisibleChange && triggerProps.onVisibleChange(value);
190
+ }
191
+ };
192
+ // 处理模式切换时 value 格式的校正
193
+ useEffect(function () {
194
+ if (isMultipleMode) {
195
+ if (!Array.isArray(value)) {
196
+ setValue(value === undefined ? [] : [value]);
197
+ }
198
+ }
199
+ else if (Array.isArray(value)) {
200
+ setValue(value.length === 0 ? undefined : value[0]);
201
+ }
202
+ }, [isMultipleMode, value]);
203
+ // 选项下拉框显示/隐藏时的一些自动行为
204
+ useEffect(function () {
205
+ if (popupVisible) {
206
+ // 重新设置 hover 态的 Option
207
+ setValueActive(valueActiveDefault);
208
+ // 在弹出框动画结束之后再执行scrollIntoView,否则会有不必要的滚动产生
209
+ var firstValue_1 = isArray(value) ? value[0] : value;
210
+ if (!isNoOptionSelected && optionInfoMap.has(firstValue_1)) {
211
+ setTimeout(function () { return scrollIntoView(firstValue_1); });
212
+ }
213
+ }
214
+ }, [popupVisible]);
215
+ // 处理键盘选择Option时的列表滚动
216
+ useEffect(function () {
217
+ if (refKeyboardArrowDirection.current === 'up' ||
218
+ refKeyboardArrowDirection.current === 'down') {
219
+ scrollIntoView(valueActive);
220
+ refKeyboardArrowDirection.current = 'none';
221
+ }
222
+ }, [valueActive]);
223
+ // 选项列表改变后,将 active 选项重置
224
+ useEffect(function () {
225
+ setValueActive(valueActiveDefault);
226
+ }, [JSON.stringify(childrenList.map(function (child) { var _a; return (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.value; }))]);
227
+ // 更新 refValueMap,避免数组规模无节制扩大
228
+ useEffect(function () {
229
+ refValueMap.current = refValueMap.current.filter(function (x) {
230
+ return isMultipleMode
231
+ ? isArray(value) && value.indexOf(x.value) > -1
232
+ : x.value === value;
233
+ });
234
+ }, [value, isMultipleMode]);
235
+ // allowCreate 时,value 改变时更新下拉框选项
236
+ useEffect(function () {
237
+ if (allowCreate) {
238
+ var nextUserCreatedOptions = void 0;
239
+ if (isEmptyValue(value, isMultipleMode)) {
240
+ nextUserCreatedOptions = [];
241
+ }
242
+ else {
243
+ // 将单选和多选的情况统一处理
244
+ var currentValueList_1 = Array.isArray(value) ? value : [value];
245
+ // 将无对应下拉框选项的 value 当作用户创建的选项
246
+ var newUserCreatedOptions = currentValueList_1
247
+ .filter(function (v) {
248
+ var _a;
249
+ var option = optionInfoMap.get(v) || ((_a = refValueMap.current.find(function (item) { return item.value === v; })) === null || _a === void 0 ? void 0 : _a.option);
250
+ return !option || option._origin === USER_CREATING_OPTION_ORIGIN;
251
+ })
252
+ .map(function (op) { return userCreatedOptionFormatter(op); });
253
+ // 将 value 中不存在的 Option 移除
254
+ var validUserCreatedOptions = userCreatedOptions.filter(function (op) {
255
+ var opValue = isObject(op) ? op.value : op;
256
+ return currentValueList_1.indexOf(opValue) !== -1;
257
+ });
258
+ nextUserCreatedOptions = validUserCreatedOptions.concat(newUserCreatedOptions);
259
+ }
260
+ var getOptionsValueString = function (options) {
261
+ return options.map(function (option) { return (isObject(option) ? option.value : option); }).toString();
262
+ };
263
+ // only update state when user-created options changed
264
+ if (getOptionsValueString(nextUserCreatedOptions) !== getOptionsValueString(userCreatedOptions)) {
265
+ setUserCreatedOptions(nextUserCreatedOptions);
266
+ }
267
+ }
268
+ }, [value, allowCreate, isMultipleMode, userCreatedOptionFormatter]);
269
+ // allowCreate 时,根据输入内容动态修改下拉框选项
270
+ useEffect(function () {
271
+ if (allowCreate) {
272
+ // 避免正在输入的内容覆盖已有的选项
273
+ setUserCreatingOption(inputValue && !optionInfoMap.has(inputValue)
274
+ ? userCreatedOptionFormatter(inputValue, true)
275
+ : null);
276
+ }
277
+ }, [inputValue, userCreatedOptionFormatter]);
278
+ // 在 inputValue 变化时,适时触发 onSearch
279
+ useEffect(function () {
280
+ var reason = refOnInputChangeCallbackReason.current;
281
+ if (stateInputValue === inputValue && (reason === 'manual' || reason === 'optionListHide')) {
282
+ onSearch && onSearch(inputValue, reason);
283
+ }
284
+ }, [inputValue]);
285
+ var getOptionInfoByValue = useCallback(function (value) {
286
+ var option = optionInfoMap.get(value);
287
+ if (option) {
288
+ var index = refValueMap.current.findIndex(function (item) { return item.value === value; });
289
+ if (index > -1) {
290
+ refValueMap.current.splice(index, 1, { value: value, option: option });
291
+ }
292
+ else {
293
+ refValueMap.current.push({ value: value, option: option });
294
+ }
295
+ return option;
296
+ }
297
+ var item = refValueMap.current.find(function (x) { return x.value === value; });
298
+ return item && item.option;
299
+ }, [optionInfoMap]);
300
+ // 使用方向键选择时,获取下一个 active option 的值
301
+ var getValueActive = function (direction) {
302
+ if (!optionIndexListForArrowKey.length) {
303
+ return undefined;
304
+ }
305
+ if (valueActive === undefined || !optionInfoMap.has(valueActive)) {
306
+ return optionValueList[optionIndexListForArrowKey[0]];
307
+ }
308
+ var activeOption = optionInfoMap.get(valueActive);
309
+ var activeIndex = activeOption._index;
310
+ var _index = optionIndexListForArrowKey.indexOf(activeIndex);
311
+ var _length = optionIndexListForArrowKey.length;
312
+ return optionValueList[optionIndexListForArrowKey[((direction === 'up' ? _index - 1 : _index + 1) + _length) % _length]];
313
+ };
314
+ // Object should be returned when labelInValue is true
315
+ var getValueAndOptionForCallback = function (stateValue, isEmpty) {
316
+ if (isEmpty === void 0) { isEmpty = isEmptyValue(stateValue, isMultipleMode); }
317
+ var value = stateValue;
318
+ var option = stateValue === undefined
319
+ ? undefined
320
+ : Array.isArray(stateValue)
321
+ ? stateValue.map(getOptionInfoByValue)
322
+ : getOptionInfoByValue(stateValue);
323
+ if (labelInValue && !isEmpty) {
324
+ var getOptionLabel_1 = function (optionValue, optionInfo) {
325
+ var e_1, _a;
326
+ if (optionInfo) {
327
+ return optionInfo.children;
328
+ }
329
+ // https://github.com/arco-design/arco-design/issues/442
330
+ // Make sure parameter value has valid label if props.value is already set
331
+ var propValue = 'value' in props ? props.value : 'defaultValue' in props ? props.defaultValue : null;
332
+ // Multiple mode
333
+ if (Array.isArray(propValue)) {
334
+ try {
335
+ for (var propValue_1 = __values(propValue), propValue_1_1 = propValue_1.next(); !propValue_1_1.done; propValue_1_1 = propValue_1.next()) {
336
+ var item = propValue_1_1.value;
337
+ if (isObject(item) && item.value === optionValue) {
338
+ return item.label;
339
+ }
340
+ }
341
+ }
342
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
343
+ finally {
344
+ try {
345
+ if (propValue_1_1 && !propValue_1_1.done && (_a = propValue_1.return)) _a.call(propValue_1);
346
+ }
347
+ finally { if (e_1) throw e_1.error; }
348
+ }
349
+ }
350
+ // Single mode
351
+ else if (isObject(propValue) && propValue.value === optionValue) {
352
+ return propValue.label;
353
+ }
354
+ };
355
+ if (Array.isArray(stateValue)) {
356
+ value = stateValue.map(function (optionValue, index) { return ({
357
+ value: optionValue,
358
+ label: getOptionLabel_1(optionValue, option[index]),
359
+ }); });
360
+ }
361
+ else {
362
+ value = { value: stateValue, label: getOptionLabel_1(stateValue, option) };
363
+ }
364
+ }
365
+ return { option: option, value: value };
366
+ };
367
+ var tryUpdateSelectValue = function (value) {
368
+ setValue(value);
369
+ if (onChange) {
370
+ var paramsForCallback = getValueAndOptionForCallback(value);
371
+ onChange(paramsForCallback.value, paramsForCallback.option);
372
+ }
373
+ };
374
+ // 多选时,选择/取消选择一个选项
375
+ var checkOption = function (optionValue, operation) {
376
+ // 取消选中时不需要检查option是否存在,因为可能已被外部剔除了此选项
377
+ if (operation === 'remove' || (operation === 'add' && optionInfoMap.get(optionValue))) {
378
+ var newValue = operation === 'add'
379
+ ? value.concat(optionValue)
380
+ : value.filter(function (v) { return v !== optionValue; });
381
+ var callbackToTrigger = operation === 'add' ? onSelect : onDeselect;
382
+ tryUpdateSelectValue(newValue);
383
+ if (typeof callbackToTrigger === 'function') {
384
+ var paramsForCallback = getValueAndOptionForCallback(optionValue, false);
385
+ callbackToTrigger(paramsForCallback.value, paramsForCallback.option);
386
+ }
387
+ }
388
+ };
389
+ var handleOptionClick = function (optionValue, disabled) {
390
+ if (disabled) {
391
+ return;
392
+ }
393
+ if (isMultipleMode) {
394
+ checkOption(optionValue, value.indexOf(optionValue) === -1 ? 'add' : 'remove');
395
+ // 点击一个选项时,清空输入框内容
396
+ if (!isObject(showSearch) || !showSearch.retainInputValueWhileSelect) {
397
+ tryUpdateInputValue('', 'optionChecked');
398
+ }
399
+ }
400
+ else {
401
+ if (optionValue !== value) {
402
+ tryUpdateSelectValue(optionValue);
403
+ }
404
+ setTimeout(function () {
405
+ tryUpdatePopupVisible(false);
406
+ });
407
+ }
408
+ };
409
+ // 注册快捷键
410
+ var hotkeyHandler = getHotkeyHandler(new Map([
411
+ [Esc.code, function () { return tryUpdatePopupVisible(false); }],
412
+ [
413
+ Enter.code,
414
+ function () {
415
+ if (popupVisible) {
416
+ var option = optionInfoMap.get(valueActive);
417
+ option && handleOptionClick(valueActive, option.disabled);
418
+ }
419
+ else {
420
+ tryUpdatePopupVisible(true);
421
+ }
422
+ },
423
+ ],
424
+ [
425
+ Tab.code,
426
+ // 按tab键切换,关闭开启的弹出框
427
+ function () { return tryUpdatePopupVisible(false); },
428
+ ],
429
+ [
430
+ ArrowUp.code,
431
+ function () {
432
+ if (popupVisible) {
433
+ refKeyboardArrowDirection.current = 'up';
434
+ setValueActive(getValueActive('up'));
435
+ return false;
436
+ }
437
+ },
438
+ ],
439
+ [
440
+ ArrowDown.code,
441
+ function () {
442
+ if (popupVisible) {
443
+ refKeyboardArrowDirection.current = 'down';
444
+ setValueActive(getValueActive('down'));
445
+ return false;
446
+ }
447
+ },
448
+ ],
449
+ ]));
450
+ var renderPopup = function () {
451
+ var _a;
452
+ var _b, _c;
453
+ // 没有设置弹出框的 width 时,需要在虚拟列表渲染的瞬间获得子元素的最大宽度
454
+ var needMeasureLongestItem = (triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.autoAlignPopupWidth) === false &&
455
+ (!((_b = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.style) === null || _b === void 0 ? void 0 : _b.width) || ((_c = triggerProps === null || triggerProps === void 0 ? void 0 : triggerProps.style) === null || _c === void 0 ? void 0 : _c.width) === 'auto');
456
+ // Option 存在复杂子元素时,让获得最长子元素变得困难,此时直接禁用虚拟滚动
457
+ var needForbidVirtual = needMeasureLongestItem && hasComplexLabelInOptions;
458
+ var mergedNotFoundContent = 'notFoundContent' in props ? notFoundContent : renderEmpty('Select');
459
+ // 选项列表元素
460
+ var eleOptionList = childrenList.length ? (React.createElement(VirtualList, __assign({ id: instancePopupID, role: "listbox", style: dropdownMenuStyle, className: cs(prefixCls + "-popup-inner", dropdownMenuClassName), ref: refWrapper, data: childrenList, height: null, isStaticItemHeight: !hasOptGroup, measureLongestItem: needMeasureLongestItem, itemKey: function (child) { return child.props._key; }, onMouseDown: preventDefaultEvent, onMouseMove: function () {
461
+ refKeyboardArrowDirection.current = null;
462
+ }, onScroll: function (e) { return onPopupScroll && onPopupScroll(e.target); } }, virtualListProps, { threshold: needForbidVirtual ? null : virtualListProps === null || virtualListProps === void 0 ? void 0 : virtualListProps.threshold }), function (child) {
463
+ var _a;
464
+ if (isSelectOptGroup(child)) {
465
+ return React.createElement(child.type, __assign({}, child.props, { prefixCls: prefixCls }));
466
+ }
467
+ if (isSelectOption(child)) {
468
+ var optionValue = (_a = child.props) === null || _a === void 0 ? void 0 : _a.value;
469
+ var userCreatingOptionValue = isObject(userCreatingOption)
470
+ ? userCreatingOption.value
471
+ : userCreatingOption;
472
+ var userCreatedOptionValues = userCreatedOptions.map(function (op) {
473
+ return isObject(op) ? op.value : op;
474
+ });
475
+ var optionProps = {
476
+ prefixCls: prefixCls,
477
+ rtl: rtl,
478
+ _valueActive: valueActive,
479
+ _valueSelect: value,
480
+ _isMultipleMode: isMultipleMode,
481
+ _isUserCreatingOption: allowCreate && userCreatingOptionValue === optionValue,
482
+ _isUserCreatedOption: allowCreate && userCreatedOptionValues.indexOf(optionValue) > -1,
483
+ _onClick: handleOptionClick,
484
+ _onMouseEnter: function (value) {
485
+ refKeyboardArrowDirection.current === null && setValueActive(value);
486
+ },
487
+ _onMouseLeave: function () {
488
+ refKeyboardArrowDirection.current === null && setValueActive(undefined);
489
+ },
490
+ };
491
+ return child && React.createElement(child.type, __assign({}, child.props, optionProps));
492
+ }
493
+ return child;
494
+ })) : null;
495
+ // Avoid drop-down box jitter when user is creating a selection
496
+ var isUserCreating = allowCreate && inputValue;
497
+ // Dropdown-placeholder when there is no options
498
+ var eleNoOptionPlaceholder = mergedNotFoundContent && !isUserCreating ? (React.createElement("div", { style: dropdownMenuStyle, className: cs(prefixCls + "-popup-inner", dropdownMenuClassName) }, mergedNotFoundContent)) : null;
499
+ return (React.createElement("div", { className: cs(prefixCls + "-popup", (_a = {},
500
+ _a[prefixCls + "-popup-hidden"] = eleOptionList === null && eleNoOptionPlaceholder === null,
501
+ _a[prefixCls + "-popup-multiple"] = isMultipleMode,
502
+ _a)),
503
+ // Make sure hotkey works when dropdown layer get focused
504
+ tabIndex: -1, onKeyDown: function (e) { return hotkeyHandler(e); } }, typeof dropdownRender === 'function'
505
+ ? dropdownRender(eleOptionList || eleNoOptionPlaceholder)
506
+ : eleOptionList || eleNoOptionPlaceholder));
507
+ };
508
+ var handleTokenSeparators = function (str) {
509
+ // clear the timestamp, and then we can judge whether tokenSeparators has been triggered
510
+ // according to timestamp value
511
+ refTSLastSeparateTriggered.current = null;
512
+ if (isMultipleMode && isArray(tokenSeparators) && tokenSeparators.length) {
513
+ var rawValues_1 = str.split(new RegExp("[" + tokenSeparators.join('') + "]"));
514
+ // 输入了分隔符的情况
515
+ if (rawValues_1.length > 1) {
516
+ // record the timestamp of tokenSeparators triggered
517
+ refTSLastSeparateTriggered.current = Date.now();
518
+ var splitValues = rawValues_1.filter(function (v, index) { return v && rawValues_1.indexOf(v) === index; });
519
+ var newValue_1 = value.slice(0);
520
+ var needUpdate_1 = false;
521
+ splitValues.forEach(function (v) {
522
+ if (newValue_1.indexOf(v) === -1 && (allowCreate || optionInfoMap.get(v))) {
523
+ newValue_1.push(v);
524
+ needUpdate_1 = true;
525
+ }
526
+ });
527
+ if (needUpdate_1) {
528
+ tryUpdateSelectValue(newValue_1);
529
+ }
530
+ }
531
+ }
532
+ return !!refTSLastSeparateTriggered.current;
533
+ };
534
+ // SelectView组件事件处理
535
+ var selectViewEventHandlers = {
536
+ onFocus: onFocus,
537
+ onBlur: function (event) {
538
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
539
+ // when drop-down is always hidden, input-text needs to be cleared after blur
540
+ !popupVisible && !refPopupExiting.current && tryUpdateInputValue('', 'optionListHide');
541
+ },
542
+ onKeyDown: function (event) {
543
+ // 处理特殊功能键的自动分词
544
+ if (event.target.tagName === 'INPUT' && event.target.value) {
545
+ var isTab = event.key === Tab.key;
546
+ var isEnter = event.key === Enter.key;
547
+ if (isEnter || isTab) {
548
+ var suffix = isEnter ? '\n' : isTab ? '\t' : '';
549
+ if (handleTokenSeparators(event.target.value + suffix)) {
550
+ // 回车后不会触发 onChangeInputValue 回调,所以在这里直接清空输入框
551
+ tryUpdateInputValue('', 'tokenSeparator');
552
+ }
553
+ }
554
+ }
555
+ // 处理快捷键
556
+ hotkeyHandler(event);
557
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
558
+ },
559
+ onChangeInputValue: function (value, _a) {
560
+ var inputType = _a.nativeEvent.inputType;
561
+ // Pasting in the input box will trigger onPaste first and then onChange, but the value of onChange does not contain a newline character.
562
+ // If word segmentation has just been triggered due to pasting, onChange will no longer attempt word segmentation.
563
+ // Do NOT use await, need to update input value right away
564
+ inputType !== 'insertFromPaste' && handleTokenSeparators(value);
565
+ if (refTSLastSeparateTriggered.current) {
566
+ tryUpdateInputValue('', 'tokenSeparator');
567
+ }
568
+ else {
569
+ tryUpdateInputValue(value, 'manual');
570
+ }
571
+ if (!popupVisible && value) {
572
+ tryUpdatePopupVisible(true);
573
+ }
574
+ },
575
+ onPaste: function (e) {
576
+ handleTokenSeparators(e.clipboardData.getData('text'));
577
+ onPaste === null || onPaste === void 0 ? void 0 : onPaste(e);
578
+ },
579
+ // Option Items
580
+ onRemoveCheckedItem: function (_, index, event) {
581
+ event.stopPropagation();
582
+ checkOption(value[index], 'remove');
583
+ },
584
+ onClear: function (event) {
585
+ event.stopPropagation();
586
+ if (isMultipleMode) {
587
+ // 保留已经被选中但被disabled的选项值
588
+ var newValue = value.filter(function (v) {
589
+ var item = optionInfoMap.get(v);
590
+ return item && item.disabled;
591
+ });
592
+ tryUpdateSelectValue(newValue);
593
+ }
594
+ else {
595
+ tryUpdateSelectValue(undefined);
596
+ }
597
+ tryUpdateInputValue('', 'manual');
598
+ onClear === null || onClear === void 0 ? void 0 : onClear(popupVisible);
599
+ },
600
+ };
601
+ useImperativeHandle(ref, function () {
602
+ var _a, _b;
603
+ return ({
604
+ dom: (_a = refSelectView.current) === null || _a === void 0 ? void 0 : _a.dom,
605
+ focus: function () {
606
+ refSelectView.current && refSelectView.current.focus();
607
+ },
608
+ blur: function () {
609
+ refSelectView.current && refSelectView.current.blur();
610
+ },
611
+ hotkeyHandler: hotkeyHandler,
612
+ activeOptionValue: valueActive,
613
+ getOptionInfoByValue: getOptionInfoByValue,
614
+ getOptionInfoList: function () { return __spreadArray([], __read(optionInfoMap.values()), false).filter(function (info) { return info._valid; }); },
615
+ scrollIntoView: scrollIntoView,
616
+ getRootDOMNode: (_b = refSelectView.current) === null || _b === void 0 ? void 0 : _b.getRootDOMNode,
617
+ });
618
+ }, [hotkeyHandler, optionInfoMap, valueActive, getOptionInfoByValue, scrollIntoView]);
619
+ var renderView = function (eleView) {
620
+ return (React.createElement(Trigger, __assign({ ref: function (ref) { return (refTrigger.current = ref); }, popup: renderPopup, trigger: trigger, disabled: disabled, getPopupContainer: getPopupContainer, classNames: "slideDynamicOrigin", autoAlignPopupWidth: true, popupAlign: triggerPopupAlign, popupVisible: popupVisible, unmountOnExit: unmountOnExit, onVisibleChange: tryUpdatePopupVisible, __onExit: function () {
621
+ refPopupExiting.current = true;
622
+ }, __onExited: function () {
623
+ refPopupExiting.current = false;
624
+ tryUpdateInputValue('', 'optionListHide');
625
+ } }, omit(triggerProps, ['popupVisible', 'onVisibleChange'])), eleView));
626
+ };
627
+ var usedTriggerElement = typeof triggerElement === 'function'
628
+ ? triggerElement(getValueAndOptionForCallback(value))
629
+ : triggerElement;
630
+ return (React.createElement(ResizeObserver, { onResize: function () { return refTrigger.current.updatePopupPosition(); } }, usedTriggerElement !== undefined && usedTriggerElement !== null ? (renderView(usedTriggerElement)) : (React.createElement(SelectView, __assign({}, props, selectViewEventHandlers, { ref: refSelectView,
631
+ // state
632
+ value: value, inputValue: inputValue, popupVisible: popupVisible,
633
+ // other
634
+ rtl: rtl, prefixCls: prefixCls, allowCreate: !!allowCreate, ariaControls: instancePopupID, isEmptyValue: isNoOptionSelected, isMultiple: isMultipleMode, onSort: tryUpdateSelectValue, renderText: function (value) {
635
+ var option = getOptionInfoByValue(value);
636
+ var text = value;
637
+ if (isFunction(renderFormat)) {
638
+ var paramsForCallback = getValueAndOptionForCallback(value, false);
639
+ text = renderFormat(paramsForCallback.option || null, paramsForCallback.value);
640
+ }
641
+ else {
642
+ var foundLabelFromProps = false;
643
+ if (labelInValue) {
644
+ var propValue = props.value || props.defaultValue;
645
+ if (Array.isArray(propValue)) {
646
+ var targetLabeledValue = propValue.find(function (item) { return isObject(item) && item.value === value; });
647
+ if (targetLabeledValue) {
648
+ text = targetLabeledValue.label;
649
+ foundLabelFromProps = true;
650
+ }
651
+ }
652
+ else if (isObject(propValue)) {
653
+ text = propValue.label;
654
+ foundLabelFromProps = true;
655
+ }
656
+ }
657
+ if (!foundLabelFromProps && option && 'children' in option) {
658
+ text = option.children;
659
+ }
660
+ }
661
+ return {
662
+ text: text,
663
+ disabled: option && option.disabled,
664
+ };
665
+ }, renderView: renderView })))));
666
+ }
667
+ var ForwardRefSelect = React.forwardRef(Select);
668
+ var SelectComponent = ForwardRefSelect;
669
+ SelectComponent.displayName = 'Select';
670
+ SelectComponent.Option = Option;
671
+ SelectComponent.OptGroup = OptGroup;
672
+ export default SelectComponent;