tdesign-react 0.27.2 → 0.28.0

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 (1680) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/tdesign.css +1037 -81
  3. package/dist/tdesign.css.map +1 -1
  4. package/dist/tdesign.js +900 -545
  5. package/dist/tdesign.js.map +1 -1
  6. package/dist/tdesign.min.css +1 -1
  7. package/dist/tdesign.min.css.map +1 -1
  8. package/dist/tdesign.min.js +4 -4
  9. package/dist/tdesign.min.js.map +1 -1
  10. package/es/_chunks/{dep-901feffa.js → dep-00edd605.js} +4 -4
  11. package/es/_chunks/{dep-901feffa.js.map → dep-00edd605.js.map} +1 -1
  12. package/es/_chunks/{dep-fc0a066c.js → dep-01ecbe32.js} +7 -7
  13. package/es/_chunks/{dep-fc0a066c.js.map → dep-01ecbe32.js.map} +1 -1
  14. package/{esm/_chunks/dep-c6449e5a.js → es/_chunks/dep-104db64f.js} +8 -8
  15. package/es/_chunks/{dep-c6449e5a.js.map → dep-104db64f.js.map} +1 -1
  16. package/{esm/_chunks/dep-3a02c1cc.js → es/_chunks/dep-1450ac72.js} +5 -5
  17. package/es/_chunks/{dep-3a02c1cc.js.map → dep-1450ac72.js.map} +1 -1
  18. package/es/_chunks/{dep-54ba75b6.js → dep-151f48f7.js} +2 -2
  19. package/es/_chunks/dep-151f48f7.js.map +1 -0
  20. package/{esm/_chunks/dep-99f3441a.js → es/_chunks/dep-18190a86.js} +4 -4
  21. package/es/_chunks/{dep-99f3441a.js.map → dep-18190a86.js.map} +1 -1
  22. package/es/_chunks/{dep-48e9cf63.js → dep-1baef241.js} +4 -4
  23. package/es/_chunks/{dep-48e9cf63.js.map → dep-1baef241.js.map} +1 -1
  24. package/es/_chunks/{dep-e858743b.js → dep-1ec3a297.js} +6 -6
  25. package/es/_chunks/{dep-e858743b.js.map → dep-1ec3a297.js.map} +1 -1
  26. package/{esm/_chunks/dep-01e895e5.js → es/_chunks/dep-33d27597.js} +3 -3
  27. package/{esm/_chunks/dep-01e895e5.js.map → es/_chunks/dep-33d27597.js.map} +1 -1
  28. package/{esm/_chunks/dep-90151af2.js → es/_chunks/dep-35891477.js} +5 -5
  29. package/{esm/_chunks/dep-90151af2.js.map → es/_chunks/dep-35891477.js.map} +1 -1
  30. package/{esm/_chunks/dep-1086af6c.js → es/_chunks/dep-3da8c532.js} +9 -9
  31. package/{esm/_chunks/dep-1086af6c.js.map → es/_chunks/dep-3da8c532.js.map} +1 -1
  32. package/es/_chunks/{dep-cdbf6335.js → dep-3e2a0e62.js} +6 -6
  33. package/{esm/_chunks/dep-cdbf6335.js.map → es/_chunks/dep-3e2a0e62.js.map} +1 -1
  34. package/{esm/_chunks/dep-6b8768d8.js → es/_chunks/dep-4f913987.js} +4 -4
  35. package/{esm/_chunks/dep-6b8768d8.js.map → es/_chunks/dep-4f913987.js.map} +1 -1
  36. package/es/_chunks/{dep-53a3b062.js → dep-5c760193.js} +2 -2
  37. package/es/_chunks/{dep-53a3b062.js.map → dep-5c760193.js.map} +1 -1
  38. package/es/_chunks/dep-69e0e6c3.js +8 -0
  39. package/es/_chunks/dep-69e0e6c3.js.map +1 -0
  40. package/{esm/_chunks/dep-778d561f.js → es/_chunks/dep-6aea4a72.js} +4 -4
  41. package/es/_chunks/{dep-778d561f.js.map → dep-6aea4a72.js.map} +1 -1
  42. package/es/_chunks/{dep-703e4e62.js → dep-6c8424d7.js} +3 -3
  43. package/{lib/_chunks/dep-fb599a1a.js.map → es/_chunks/dep-6c8424d7.js.map} +1 -1
  44. package/es/_chunks/{dep-c3e79579.js → dep-6dacf1e7.js} +7 -7
  45. package/es/_chunks/{dep-c3e79579.js.map → dep-6dacf1e7.js.map} +1 -1
  46. package/es/_chunks/{dep-5c63b369.js → dep-6e030c19.js} +16 -16
  47. package/es/_chunks/{dep-5c63b369.js.map → dep-6e030c19.js.map} +1 -1
  48. package/{esm/_chunks/dep-483ef537.js → es/_chunks/dep-6e074833.js} +16 -16
  49. package/es/_chunks/{dep-483ef537.js.map → dep-6e074833.js.map} +1 -1
  50. package/es/_chunks/{dep-ec338634.js → dep-789a9cff.js} +5 -5
  51. package/{esm/_chunks/dep-ec338634.js.map → es/_chunks/dep-789a9cff.js.map} +1 -1
  52. package/{esm/_chunks/dep-976487f9.js → es/_chunks/dep-7ac5e481.js} +8 -8
  53. package/es/_chunks/{dep-976487f9.js.map → dep-7ac5e481.js.map} +1 -1
  54. package/es/_chunks/{dep-6fae8cf6.js → dep-80125e94.js} +5 -5
  55. package/es/_chunks/{dep-6fae8cf6.js.map → dep-80125e94.js.map} +1 -1
  56. package/{esm/_chunks/dep-72a5bdf9.js → es/_chunks/dep-80ab7817.js} +3 -3
  57. package/es/_chunks/{dep-72a5bdf9.js.map → dep-80ab7817.js.map} +1 -1
  58. package/es/_chunks/{dep-d95b175f.js → dep-84a7dd49.js} +6 -6
  59. package/es/_chunks/{dep-d95b175f.js.map → dep-84a7dd49.js.map} +1 -1
  60. package/es/_chunks/{dep-7aeba7e1.js → dep-880a5ebd.js} +4 -4
  61. package/{esm/_chunks/dep-7aeba7e1.js.map → es/_chunks/dep-880a5ebd.js.map} +1 -1
  62. package/{esm/_chunks/dep-8901b13b.js → es/_chunks/dep-89abafca.js} +5 -5
  63. package/{esm/_chunks/dep-8901b13b.js.map → es/_chunks/dep-89abafca.js.map} +1 -1
  64. package/{esm/_chunks/dep-a46f5ce1.js → es/_chunks/dep-92ab2a98.js} +11 -11
  65. package/es/_chunks/{dep-a46f5ce1.js.map → dep-92ab2a98.js.map} +1 -1
  66. package/{esm/_chunks/dep-b1f46984.js → es/_chunks/dep-990275aa.js} +7 -7
  67. package/es/_chunks/{dep-b1f46984.js.map → dep-990275aa.js.map} +1 -1
  68. package/es/_chunks/{dep-08d12fa5.js → dep-9d897185.js} +4 -4
  69. package/es/_chunks/{dep-08d12fa5.js.map → dep-9d897185.js.map} +1 -1
  70. package/es/_chunks/{dep-ee339b82.js → dep-9e25e98e.js} +4 -4
  71. package/es/_chunks/{dep-ee339b82.js.map → dep-9e25e98e.js.map} +1 -1
  72. package/{esm/_chunks/dep-99bd3c69.js → es/_chunks/dep-a1546474.js} +7 -7
  73. package/es/_chunks/{dep-99bd3c69.js.map → dep-a1546474.js.map} +1 -1
  74. package/{esm/_chunks/dep-f2a24fd0.js → es/_chunks/dep-a5b135ae.js} +7 -7
  75. package/es/_chunks/{dep-f2a24fd0.js.map → dep-a5b135ae.js.map} +1 -1
  76. package/es/_chunks/{dep-8646f728.js → dep-a716504a.js} +9 -9
  77. package/{esm/_chunks/dep-8646f728.js.map → es/_chunks/dep-a716504a.js.map} +1 -1
  78. package/{esm/_chunks/dep-32d6dc59.js → es/_chunks/dep-a9d16482.js} +3 -3
  79. package/es/_chunks/{dep-32d6dc59.js.map → dep-a9d16482.js.map} +1 -1
  80. package/es/_chunks/{dep-42df83ef.js → dep-b3f274e6.js} +2 -2
  81. package/es/_chunks/{dep-42df83ef.js.map → dep-b3f274e6.js.map} +1 -1
  82. package/es/_chunks/{dep-b7a1cd76.js → dep-bae013d5.js} +6 -6
  83. package/es/_chunks/{dep-b7a1cd76.js.map → dep-bae013d5.js.map} +1 -1
  84. package/{esm/_chunks/dep-756250f5.js → es/_chunks/dep-bbc93b3b.js} +5 -5
  85. package/es/_chunks/{dep-756250f5.js.map → dep-bbc93b3b.js.map} +1 -1
  86. package/es/_chunks/{dep-e283c6b3.js → dep-bff17e29.js} +7 -7
  87. package/{esm/_chunks/dep-e283c6b3.js.map → es/_chunks/dep-bff17e29.js.map} +1 -1
  88. package/es/_chunks/{dep-6ee32959.js → dep-c1b098f3.js} +8 -8
  89. package/es/_chunks/{dep-6ee32959.js.map → dep-c1b098f3.js.map} +1 -1
  90. package/{esm/_chunks/dep-a58a853f.js → es/_chunks/dep-c216b563.js} +4 -4
  91. package/{esm/_chunks/dep-a58a853f.js.map → es/_chunks/dep-c216b563.js.map} +1 -1
  92. package/{esm/_chunks/dep-f7f5f353.js → es/_chunks/dep-c3351e4f.js} +3 -3
  93. package/es/_chunks/{dep-f7f5f353.js.map → dep-c3351e4f.js.map} +1 -1
  94. package/es/_chunks/{dep-a046771b.js → dep-ca0c816a.js} +5 -5
  95. package/{esm/_chunks/dep-a046771b.js.map → es/_chunks/dep-ca0c816a.js.map} +1 -1
  96. package/es/_chunks/{dep-cbc08115.js → dep-cae0a320.js} +6 -6
  97. package/{esm/_chunks/dep-cbc08115.js.map → es/_chunks/dep-cae0a320.js.map} +1 -1
  98. package/{esm/_chunks/dep-7317a609.js → es/_chunks/dep-d9dba7f7.js} +2 -2
  99. package/es/_chunks/{dep-7317a609.js.map → dep-d9dba7f7.js.map} +1 -1
  100. package/{esm/_chunks/dep-a457ec3c.js → es/_chunks/dep-e0619fb9.js} +3 -3
  101. package/es/_chunks/{dep-a457ec3c.js.map → dep-e0619fb9.js.map} +1 -1
  102. package/{esm/_chunks/dep-3d94520f.js → es/_chunks/dep-e4b64a7f.js} +3 -3
  103. package/es/_chunks/{dep-3d94520f.js.map → dep-e4b64a7f.js.map} +1 -1
  104. package/{esm/_chunks/dep-583810e4.js → es/_chunks/dep-e71391c4.js} +8 -8
  105. package/es/_chunks/{dep-583810e4.js.map → dep-e71391c4.js.map} +1 -1
  106. package/{esm/_chunks/dep-500c5336.js → es/_chunks/dep-e75b3a36.js} +13 -13
  107. package/es/_chunks/{dep-500c5336.js.map → dep-e75b3a36.js.map} +1 -1
  108. package/es/_chunks/{dep-ace4fe58.js → dep-ecbceda8.js} +2 -2
  109. package/es/_chunks/{dep-ace4fe58.js.map → dep-ecbceda8.js.map} +1 -1
  110. package/{esm/_chunks/dep-5a7809fc.js → es/_chunks/dep-ee1680b8.js} +8 -8
  111. package/es/_chunks/{dep-5a7809fc.js.map → dep-ee1680b8.js.map} +1 -1
  112. package/es/_chunks/{dep-6abe483c.js → dep-f1a5d7df.js} +4 -4
  113. package/{esm/_chunks/dep-6abe483c.js.map → es/_chunks/dep-f1a5d7df.js.map} +1 -1
  114. package/es/_chunks/{dep-009d0f6b.js → dep-f6612745.js} +5 -5
  115. package/{esm/_chunks/dep-009d0f6b.js.map → es/_chunks/dep-f6612745.js.map} +1 -1
  116. package/es/_chunks/{dep-f42a5f7d.js → dep-f6ab6501.js} +4 -4
  117. package/es/_chunks/{dep-f42a5f7d.js.map → dep-f6ab6501.js.map} +1 -1
  118. package/es/_chunks/{dep-d11cade3.js → dep-fd19ec48.js} +9 -9
  119. package/{esm/_chunks/dep-d11cade3.js.map → es/_chunks/dep-fd19ec48.js.map} +1 -1
  120. package/es/_common/js/common.js +1 -1
  121. package/es/_common/js/date-picker/utils.js +15 -15
  122. package/es/_common/js/global-config/default-config.js +1 -1
  123. package/es/_common/js/global-config/locale/en_US.js +1 -1
  124. package/es/_common/js/global-config/locale/zh_CN.js +1 -1
  125. package/es/_common/js/loading/circle-adapter.js +5 -5
  126. package/es/_common/js/log/index.js +1 -1
  127. package/es/_common/js/log/log.js +1 -1
  128. package/es/_common/js/log/types.js +1 -1
  129. package/es/_common/js/tree/tree-node-model.js +22 -22
  130. package/es/_common/js/tree/tree-node.js +27 -27
  131. package/es/_common/js/tree/tree-store.js +35 -35
  132. package/es/_common/js/tree/types.js +1 -1
  133. package/es/_common/js/upload/types.js +1 -1
  134. package/es/_common/js/upload/xhr.js +1 -1
  135. package/es/_common/js/utils/calcTextareaHeight.js +5 -5
  136. package/es/_common/js/utils/helper.js +5 -5
  137. package/es/_common/js/utils/set-style.js +1 -1
  138. package/es/_util/callBoth.js +1 -1
  139. package/es/_util/composeRefs.js +1 -1
  140. package/es/_util/dom.d.ts +1 -0
  141. package/es/_util/dom.js +14 -9
  142. package/es/_util/dom.js.map +1 -1
  143. package/es/_util/easing.js +1 -1
  144. package/es/_util/forwardRefWithStatics.js +1 -1
  145. package/es/_util/getScrollbarWidth.js +1 -1
  146. package/es/_util/hasScrollBar.js +1 -1
  147. package/es/_util/helper.js +16 -16
  148. package/es/_util/injectValue.js +1 -1
  149. package/es/_util/insertCSS.js +1 -1
  150. package/es/_util/isCallable.js +1 -1
  151. package/es/_util/linearGradient.js +2 -2
  152. package/es/_util/noop.js +1 -1
  153. package/es/_util/number.js +1 -1
  154. package/es/_util/renderTNode.d.ts +7 -0
  155. package/es/_util/renderTNode.js +16 -0
  156. package/es/_util/renderTNode.js.map +1 -0
  157. package/es/_util/setStyle.js +1 -1
  158. package/es/_util/useAnimation.js +21 -21
  159. package/es/_util/useClickOutside.js +1 -1
  160. package/es/_util/useCommonClassName.js +21 -21
  161. package/es/_util/useConfig.js +21 -21
  162. package/es/_util/useDefault.js +3 -3
  163. package/es/_util/useDefaultValue.js +5 -5
  164. package/es/_util/useDialogEsc.js +3 -3
  165. package/es/_util/useDragSorter.js +3 -3
  166. package/es/_util/useLayoutEffect.js +8 -8
  167. package/es/_util/useMutationObserver.js +9 -9
  168. package/es/_util/usePersistFn.js +1 -1
  169. package/es/_util/usePrevious.js +1 -1
  170. package/es/_util/useRefAndForward.js +1 -1
  171. package/es/_util/useRipple.js +22 -22
  172. package/es/_util/useSetState.js +4 -4
  173. package/es/_util/useSwitch.js +3 -3
  174. package/es/_util/useUpdateEffect.js +8 -8
  175. package/es/_util/useWindowSize.js +4 -4
  176. package/es/addon/Addon.js +22 -22
  177. package/es/addon/index.js +22 -22
  178. package/es/affix/Affix.js +24 -24
  179. package/es/affix/index.js +24 -24
  180. package/es/affix/style/index.js +1 -1
  181. package/es/affix/type.js +1 -1
  182. package/es/alert/Alert.js +24 -24
  183. package/es/alert/index.js +24 -24
  184. package/es/alert/style/index.js +1 -1
  185. package/es/alert/type.js +1 -1
  186. package/es/anchor/Anchor.d.ts +1 -1
  187. package/es/anchor/Anchor.js +36 -34
  188. package/es/anchor/Anchor.js.map +1 -1
  189. package/es/anchor/AnchorContext.js +1 -1
  190. package/es/anchor/AnchorItem.d.ts +3 -1
  191. package/es/anchor/AnchorItem.js +28 -26
  192. package/es/anchor/AnchorItem.js.map +1 -1
  193. package/es/anchor/AnchorTarget.js +28 -28
  194. package/es/anchor/_util/clipboard.js +1 -1
  195. package/es/anchor/_util/dom.js +1 -1
  196. package/es/anchor/index.d.ts +1 -1
  197. package/es/anchor/index.js +30 -30
  198. package/es/anchor/style/index.js +1 -1
  199. package/es/anchor/type.js +1 -1
  200. package/es/avatar/AvararGroup.js +29 -29
  201. package/es/avatar/Avatar.js +29 -29
  202. package/es/avatar/AvatarContext.js +1 -1
  203. package/es/avatar/index.js +29 -29
  204. package/es/avatar/style/index.js +1 -1
  205. package/es/avatar/type.js +1 -1
  206. package/es/badge/Badge.js +22 -22
  207. package/es/badge/index.js +22 -22
  208. package/es/badge/style/index.js +1 -1
  209. package/es/badge/type.js +1 -1
  210. package/es/breadcrumb/Breadcrumb.js +22 -22
  211. package/es/breadcrumb/BreadcrumbContext.js +1 -1
  212. package/es/breadcrumb/BreadcrumbItem.js +22 -22
  213. package/es/breadcrumb/BreadcrumbProps.js +1 -1
  214. package/es/breadcrumb/index.js +22 -22
  215. package/es/breadcrumb/style/index.js +1 -1
  216. package/es/breadcrumb/type.js +1 -1
  217. package/es/button/Button.js +25 -25
  218. package/es/button/index.js +25 -25
  219. package/es/button/style/index.js +1 -1
  220. package/es/button/type.js +1 -1
  221. package/es/calendar/Calendar.js +42 -42
  222. package/es/calendar/_util.js +1 -1
  223. package/es/calendar/index.js +42 -42
  224. package/es/calendar/style/index.js +1 -1
  225. package/es/calendar/type.js +1 -1
  226. package/es/card/type.js +1 -1
  227. package/es/cascader/Cascader.js +48 -48
  228. package/es/cascader/components/InputContent.js +31 -31
  229. package/es/cascader/components/Item.js +35 -35
  230. package/es/cascader/components/Panel.js +35 -35
  231. package/es/cascader/components/style/index.js +1 -1
  232. package/es/cascader/index.js +48 -48
  233. package/es/cascader/interface.js +27 -27
  234. package/es/cascader/style/index.js +1 -1
  235. package/es/cascader/type.d.ts +25 -8
  236. package/es/cascader/type.js +1 -1
  237. package/es/cascader/utils/cascader.js +4 -4
  238. package/es/cascader/utils/helper.js +2 -2
  239. package/es/cascader/utils/inputContent.js +18 -18
  240. package/es/cascader/utils/inputContent.js.map +1 -1
  241. package/es/cascader/utils/item.js +4 -4
  242. package/es/cascader/utils/panel.js +10 -10
  243. package/es/cascader/utils/panel.js.map +1 -1
  244. package/es/checkbox/Checkbox.js +31 -31
  245. package/es/checkbox/CheckboxGroup.js +31 -31
  246. package/es/checkbox/index.js +31 -31
  247. package/es/checkbox/style/index.js +1 -1
  248. package/es/checkbox/type.js +1 -1
  249. package/es/comment/Comment.js +21 -21
  250. package/es/comment/index.js +21 -21
  251. package/es/comment/style/index.js +1 -1
  252. package/es/comment/type.js +1 -1
  253. package/es/common/Check.js +29 -29
  254. package/es/common/FakeArrow.js +21 -21
  255. package/es/common/Portal.js +22 -22
  256. package/es/common.js +1 -1
  257. package/es/config-provider/ConfigContext.js +21 -21
  258. package/es/config-provider/ConfigProvider.js +21 -21
  259. package/es/config-provider/en_US_config.js +1 -1
  260. package/es/config-provider/index.js +21 -21
  261. package/es/config-provider/type.js +1 -1
  262. package/es/config-provider/zh_CN_config.js +1 -1
  263. package/es/date-picker/DatePicker.d.ts +0 -6
  264. package/es/date-picker/DatePicker.js +52 -55
  265. package/es/date-picker/DatePicker.js.map +1 -1
  266. package/es/date-picker/base/CalendarPresets.js +25 -25
  267. package/es/date-picker/base/Cell.js +21 -21
  268. package/es/date-picker/base/Header.js +25 -25
  269. package/es/date-picker/base/Table.js +23 -23
  270. package/es/date-picker/base/style/index.js +1 -1
  271. package/es/date-picker/index.d.ts +0 -6
  272. package/es/date-picker/index.js +35 -35
  273. package/es/date-picker/panel/Date.js +29 -29
  274. package/es/date-picker/panel/DateRange.js +29 -29
  275. package/es/date-picker/panel/style/index.js +1 -1
  276. package/es/date-picker/style/index.js +1 -1
  277. package/es/date-picker/type.js +1 -1
  278. package/es/dialog/Dialog.js +26 -26
  279. package/es/dialog/RenderDialog.js +24 -24
  280. package/es/dialog/index.js +26 -26
  281. package/es/dialog/plugin.js +26 -26
  282. package/es/dialog/style/index.js +1 -1
  283. package/es/dialog/type.js +1 -1
  284. package/es/divider/Divider.js +22 -22
  285. package/es/divider/index.js +22 -22
  286. package/es/divider/style/index.js +1 -1
  287. package/es/divider/type.js +1 -1
  288. package/es/drawer/Drawer.js +25 -25
  289. package/es/drawer/DrawerWrapper.js +22 -22
  290. package/es/drawer/index.js +25 -25
  291. package/es/drawer/style/index.js +1 -1
  292. package/es/drawer/type.js +1 -1
  293. package/es/dropdown/Dropdown.js +40 -40
  294. package/es/dropdown/DropdownItem.js +30 -30
  295. package/es/dropdown/DropdownMenu.js +31 -31
  296. package/es/dropdown/index.js +40 -40
  297. package/es/dropdown/style/index.js +1 -1
  298. package/es/dropdown/type.js +1 -1
  299. package/es/form/Form.js +80 -269
  300. package/es/form/Form.js.map +1 -1
  301. package/es/form/FormContext.js +1 -1
  302. package/es/form/FormItem.js +86 -113
  303. package/es/form/FormItem.js.map +1 -1
  304. package/es/form/formModel.js +27 -27
  305. package/es/form/hooks/useInstance.d.ts +12 -0
  306. package/es/form/hooks/useInstance.js +263 -0
  307. package/es/form/hooks/useInstance.js.map +1 -0
  308. package/es/form/index.js +48 -46
  309. package/es/form/index.js.map +1 -1
  310. package/es/form/style/index.css +60 -0
  311. package/es/form/style/index.js +1 -1
  312. package/es/form/type.d.ts +9 -6
  313. package/es/form/type.js +1 -1
  314. package/es/grid/Col.js +22 -22
  315. package/es/grid/Row.js +41 -36
  316. package/es/grid/Row.js.map +1 -1
  317. package/es/grid/index.js +25 -25
  318. package/es/grid/style/index.js +1 -1
  319. package/es/grid/type.js +1 -1
  320. package/es/index.js +59 -57
  321. package/es/index.js.map +1 -1
  322. package/es/input/Input.js +31 -29
  323. package/es/input/Input.js.map +1 -1
  324. package/es/input/InputGroup.js +22 -22
  325. package/es/input/index.js +29 -29
  326. package/es/input/style/index.js +1 -1
  327. package/es/input/type.js +1 -1
  328. package/es/input-number/InputNumber.js +30 -30
  329. package/es/input-number/StepHandler.js +25 -25
  330. package/es/input-number/index.js +30 -30
  331. package/es/input-number/style/index.js +1 -1
  332. package/es/input-number/type.js +1 -1
  333. package/es/input-number/utils/numberUtils.js +1 -1
  334. package/es/layout/Aside.js +22 -22
  335. package/es/layout/Layout.js +24 -24
  336. package/es/layout/index.js +24 -24
  337. package/es/layout/style/index.js +1 -1
  338. package/es/layout/type.js +1 -1
  339. package/es/list/List.js +25 -25
  340. package/es/list/ListItem.js +21 -21
  341. package/es/list/ListItemMeta.js +21 -21
  342. package/es/list/index.js +25 -25
  343. package/es/list/style/index.js +1 -1
  344. package/es/list/type.js +1 -1
  345. package/es/loading/gradient.js +24 -24
  346. package/es/loading/index.js +25 -25
  347. package/es/loading/loading.js +25 -25
  348. package/es/loading/plugin.js +25 -25
  349. package/es/loading/style/index.js +1 -1
  350. package/es/loading/type.js +1 -1
  351. package/es/locale/LocalReceiver.js +21 -21
  352. package/es/locale/en_US.js +1 -1
  353. package/es/locale/zh_CN.js +1 -1
  354. package/es/menu/HeadMenu.js +25 -25
  355. package/es/menu/Menu.js +25 -25
  356. package/es/menu/MenuContext.js +1 -1
  357. package/es/menu/MenuGroup.js +21 -21
  358. package/es/menu/MenuItem.js +22 -22
  359. package/es/menu/SubMenu.js +24 -24
  360. package/es/menu/_util/cacularPaddingLeft.js +1 -1
  361. package/es/menu/_util/checkMenuType.js +1 -1
  362. package/es/menu/_util/checkSubMenuActive.js +1 -1
  363. package/es/menu/_util/checkSubMenuChildExpanded.js +3 -3
  364. package/es/menu/_util/checkSubMenuChildrenActive.js +1 -1
  365. package/es/menu/_util/constant.js +1 -1
  366. package/es/menu/_util/getSubMenuChildStyle.js +1 -1
  367. package/es/menu/_util/type.js +1 -1
  368. package/es/menu/hooks/useMenuContext.js +6 -6
  369. package/es/menu/index.js +25 -25
  370. package/es/menu/style/index.css +62 -2
  371. package/es/menu/style/index.js +1 -1
  372. package/es/menu/type.js +1 -1
  373. package/es/message/Message.js +25 -25
  374. package/es/message/MessageClose.js +21 -21
  375. package/es/message/MessageComponent.js +25 -25
  376. package/es/message/MessageIcon.js +25 -25
  377. package/es/message/const.js +1 -1
  378. package/es/message/index.js +25 -25
  379. package/es/message/style/index.js +1 -1
  380. package/es/message/type.js +1 -1
  381. package/es/message/useMessageClass.js +21 -21
  382. package/es/notification/Notification.js +25 -25
  383. package/es/notification/NotificationList.js +25 -25
  384. package/es/notification/NotificationPlugin.js +25 -25
  385. package/es/notification/index.js +25 -25
  386. package/es/notification/style/index.css +78 -0
  387. package/es/notification/style/index.js +1 -1
  388. package/es/notification/type.js +1 -1
  389. package/es/pagination/Pagination.js +41 -41
  390. package/es/pagination/index.js +41 -41
  391. package/es/pagination/style/index.js +1 -1
  392. package/es/pagination/type.js +1 -1
  393. package/es/pagination/validators.js +1 -1
  394. package/es/popconfirm/PopConfirm.js +28 -28
  395. package/es/popconfirm/PopContent.js +25 -25
  396. package/es/popconfirm/index.js +28 -28
  397. package/es/popconfirm/style/index.js +1 -1
  398. package/es/popconfirm/type.js +1 -1
  399. package/es/popup/Popup.js +27 -27
  400. package/es/popup/hooks/useTriggerProps.js +1 -1
  401. package/es/popup/index.js +27 -27
  402. package/es/popup/style/index.js +1 -1
  403. package/es/popup/type.js +1 -1
  404. package/es/popup/utils/getTransitionParams.js +1 -1
  405. package/es/progress/Progress.js +22 -22
  406. package/es/progress/index.js +22 -22
  407. package/es/progress/style/index.js +1 -1
  408. package/es/progress/type.js +1 -1
  409. package/es/radio/Radio.js +32 -32
  410. package/es/radio/RadioGroup.js +32 -32
  411. package/es/radio/index.js +32 -32
  412. package/es/radio/style/index.js +1 -1
  413. package/es/radio/type.js +1 -1
  414. package/es/rate/type.js +1 -1
  415. package/es/select/base/Option.js +27 -27
  416. package/es/select/base/OptionGroup.js +21 -21
  417. package/es/select/base/PopupContent.js +31 -31
  418. package/es/select/base/Select.js +75 -79
  419. package/es/select/base/Select.js.map +1 -1
  420. package/es/select/base/style/index.js +1 -1
  421. package/es/select/index.js +41 -41
  422. package/es/select/style/index.css +1 -1
  423. package/es/select/style/index.js +1 -1
  424. package/es/select/type.js +1 -1
  425. package/es/select/util/helper.js +29 -29
  426. package/es/select-input/SelectInput.js +42 -40
  427. package/es/select-input/SelectInput.js.map +1 -1
  428. package/es/select-input/index.js +39 -39
  429. package/es/select-input/style/index.js +1 -1
  430. package/es/select-input/type.d.ts +2 -2
  431. package/es/select-input/type.js +1 -1
  432. package/es/select-input/useMultiple.js +31 -34
  433. package/es/select-input/useMultiple.js.map +1 -1
  434. package/es/select-input/useOverlayStyle.js +13 -11
  435. package/es/select-input/useOverlayStyle.js.map +1 -1
  436. package/es/select-input/useSingle.js +53 -53
  437. package/es/select-input/useSingle.js.map +1 -1
  438. package/es/skeleton/Skeleton.js +31 -31
  439. package/es/skeleton/index.js +31 -31
  440. package/es/skeleton/style/index.js +1 -1
  441. package/es/skeleton/type.js +1 -1
  442. package/es/slider/Slider.js +40 -35
  443. package/es/slider/Slider.js.map +1 -1
  444. package/es/slider/SliderHandleButton.d.ts +1 -0
  445. package/es/slider/SliderHandleButton.js +36 -34
  446. package/es/slider/SliderHandleButton.js.map +1 -1
  447. package/es/slider/index.js +32 -32
  448. package/es/slider/style/index.js +1 -1
  449. package/es/slider/type.d.ts +5 -3
  450. package/es/slider/type.js +1 -1
  451. package/es/slider/utils/handleNumber.js +1 -1
  452. package/es/steps/StepItem.js +21 -21
  453. package/es/steps/Steps.js +21 -21
  454. package/es/steps/StepsContext.js +1 -1
  455. package/es/steps/index.js +21 -21
  456. package/es/steps/style/index.js +1 -1
  457. package/es/steps/type.js +1 -1
  458. package/es/sticky-tool/type.js +1 -1
  459. package/es/style/index.css +8 -0
  460. package/es/style/index.js +1 -1
  461. package/es/swiper/Swiper.js +314 -81
  462. package/es/swiper/Swiper.js.map +1 -1
  463. package/es/swiper/SwiperItem.d.ts +8 -4
  464. package/es/swiper/SwiperItem.js +118 -3
  465. package/es/swiper/SwiperItem.js.map +1 -1
  466. package/es/swiper/index.js +24 -23
  467. package/es/swiper/index.js.map +1 -1
  468. package/es/swiper/style/index.css +799 -60
  469. package/es/swiper/style/index.js +1 -1
  470. package/es/swiper/type.d.ts +62 -4
  471. package/es/swiper/type.js +1 -1
  472. package/es/switch/Switch.js +25 -25
  473. package/es/switch/index.js +25 -25
  474. package/es/switch/style/index.js +1 -1
  475. package/es/switch/type.js +1 -1
  476. package/es/table/base/Table.js +41 -41
  477. package/es/table/base/TableAsyncLoadingBody.js +25 -25
  478. package/es/table/base/TableBody.js +34 -32
  479. package/es/table/base/TableBody.js.map +1 -1
  480. package/es/table/base/TableCell.js +27 -27
  481. package/es/table/base/TableColGroup.js +1 -1
  482. package/es/table/base/TableContext.js +1 -1
  483. package/es/table/base/TableEmptyBody.js +23 -23
  484. package/es/table/base/TableFooter.js +1 -1
  485. package/es/table/base/TableHeader.js +29 -29
  486. package/es/table/base/TableLoadingBody.js +6 -6
  487. package/es/table/base/TableRow.js +31 -31
  488. package/es/table/base/style/index.js +1 -1
  489. package/es/table/enhanced/Table.js +43 -43
  490. package/es/table/enhanced/TableContext.js +1 -1
  491. package/es/table/enhanced/style/index.js +1 -1
  492. package/es/table/enhanced/useTree.js +28 -28
  493. package/es/table/hooks/useColumns.js +4 -4
  494. package/es/table/index.js +43 -43
  495. package/es/table/primary/SorterButton.js +28 -28
  496. package/es/table/primary/Table.js +43 -43
  497. package/es/table/primary/expand-box.js +21 -21
  498. package/es/table/primary/style/index.js +1 -1
  499. package/es/table/primary/useChange.js +2 -2
  500. package/es/table/primary/useExpand.js +28 -28
  501. package/es/table/primary/useFilter.js +35 -35
  502. package/es/table/primary/useFilterButton.js +35 -35
  503. package/es/table/primary/useSelect.js +35 -35
  504. package/es/table/primary/useSorter.js +32 -32
  505. package/es/table/style/index.js +1 -1
  506. package/es/table/type.js +1 -1
  507. package/es/table/util/getRowKeyFromRowKey.js +1 -1
  508. package/es/table/util/index.js +1 -1
  509. package/es/tabs/TabBar.js +23 -23
  510. package/es/tabs/TabNav.js +24 -24
  511. package/es/tabs/TabNavItem.js +22 -22
  512. package/es/tabs/TabPanel.js +21 -21
  513. package/es/tabs/Tabs.js +24 -24
  514. package/es/tabs/index.js +24 -24
  515. package/es/tabs/style/index.js +1 -1
  516. package/es/tabs/type.js +1 -1
  517. package/es/tabs/useTabClass.js +21 -21
  518. package/es/tag/CheckTag.js +24 -24
  519. package/es/tag/Tag.js +24 -24
  520. package/es/tag/index.js +24 -24
  521. package/es/tag/style/index.js +1 -1
  522. package/es/tag/type.js +1 -1
  523. package/es/tag-input/TagInput.js +34 -31
  524. package/es/tag-input/TagInput.js.map +1 -1
  525. package/es/tag-input/index.js +30 -30
  526. package/es/tag-input/style/index.css +12 -1
  527. package/es/tag-input/style/index.js +1 -1
  528. package/es/tag-input/type.js +1 -1
  529. package/es/tag-input/useHover.js +3 -3
  530. package/es/tag-input/useTagList.js +25 -25
  531. package/es/tag-input/useTagScroll.js +3 -3
  532. package/es/textarea/Textarea.js +29 -29
  533. package/es/textarea/index.js +29 -29
  534. package/es/textarea/style/index.js +1 -1
  535. package/es/textarea/type.js +1 -1
  536. package/es/time-picker/InputItems.js +32 -32
  537. package/es/time-picker/TimePicker.js +36 -36
  538. package/es/time-picker/TimeRangePicker.js +36 -36
  539. package/es/time-picker/consts.js +23 -23
  540. package/es/time-picker/index.js +36 -36
  541. package/es/time-picker/interfaces.js +1 -1
  542. package/es/time-picker/panel/SinglePanel.js +32 -32
  543. package/es/time-picker/panel/TimePickerPanel.js +34 -34
  544. package/es/time-picker/panel/TimePickerRangePanel.js +34 -34
  545. package/es/time-picker/panel/style/index.js +1 -1
  546. package/es/time-picker/style/index.js +1 -1
  547. package/es/time-picker/type.js +1 -1
  548. package/es/tooltip/Tooltip.js +28 -28
  549. package/es/tooltip/index.js +28 -28
  550. package/es/tooltip/style/index.js +1 -1
  551. package/es/tooltip/type.js +1 -1
  552. package/es/transfer/Transfer.js +46 -46
  553. package/es/transfer/TransferList.js +44 -44
  554. package/es/transfer/index.js +46 -46
  555. package/es/transfer/style/index.js +1 -1
  556. package/es/transfer/type.js +1 -1
  557. package/es/transfer/utils.js +18 -18
  558. package/es/tree/Tree.js +47 -47
  559. package/es/tree/TreeItem.js +32 -32
  560. package/es/tree/index.js +47 -47
  561. package/es/tree/interface.js +1 -1
  562. package/es/tree/style/index.js +1 -1
  563. package/es/tree/type.js +1 -1
  564. package/es/tree/useControllable.js +3 -3
  565. package/es/tree/useStore.js +41 -41
  566. package/es/tree/useTreeConfig.js +23 -23
  567. package/es/tree-select/SelectArrow.d.ts +8 -0
  568. package/es/tree-select/SelectArrow.js +53 -0
  569. package/es/tree-select/SelectArrow.js.map +1 -0
  570. package/es/tree-select/TreeSelect.js +131 -113
  571. package/es/tree-select/TreeSelect.js.map +1 -1
  572. package/es/tree-select/index.js +50 -50
  573. package/es/tree-select/style/index.js +1 -1
  574. package/es/tree-select/type.d.ts +62 -6
  575. package/es/tree-select/type.js +1 -1
  576. package/es/tree-select/useTreeSelectLocale.js +23 -23
  577. package/es/tree-select/useTreeSelectPassthoughProps.js +22 -22
  578. package/es/tree-select/useTreeSelectPassthoughProps.js.map +1 -1
  579. package/es/tree-select/useTreeSelectUtils.d.ts +1 -1
  580. package/es/tree-select/useTreeSelectUtils.js +38 -38
  581. package/es/tree-select/useTreeSelectUtils.js.map +1 -1
  582. package/es/upload/boolean-render.js +1 -1
  583. package/es/upload/dragger.js +25 -25
  584. package/es/upload/hooks/useDefaultValue.js +7 -7
  585. package/es/upload/hooks/useSizeLimit.js +23 -23
  586. package/es/upload/index.js +40 -40
  587. package/es/upload/style/index.js +1 -1
  588. package/es/upload/themes/dragger-progress.js +25 -25
  589. package/es/upload/themes/flow-list/file-list.js +25 -25
  590. package/es/upload/themes/flow-list/img-list.js +25 -25
  591. package/es/upload/themes/flow-list/index.js +25 -25
  592. package/es/upload/themes/flow-list/style/index.js +1 -1
  593. package/es/upload/themes/image-card.js +26 -26
  594. package/es/upload/themes/single-file.js +25 -25
  595. package/es/upload/themes/style/index.js +1 -1
  596. package/es/upload/tips.js +21 -21
  597. package/es/upload/type.js +1 -1
  598. package/es/upload/types.js +1 -1
  599. package/es/upload/upload-trigger.js +25 -25
  600. package/es/upload/upload.js +40 -40
  601. package/es/upload/util.js +1 -1
  602. package/esm/_chunks/{dep-901feffa.js → dep-00edd605.js} +4 -4
  603. package/esm/_chunks/{dep-901feffa.js.map → dep-00edd605.js.map} +1 -1
  604. package/esm/_chunks/{dep-fc0a066c.js → dep-01ecbe32.js} +7 -7
  605. package/esm/_chunks/{dep-fc0a066c.js.map → dep-01ecbe32.js.map} +1 -1
  606. package/{es/_chunks/dep-c6449e5a.js → esm/_chunks/dep-104db64f.js} +8 -8
  607. package/esm/_chunks/{dep-c6449e5a.js.map → dep-104db64f.js.map} +1 -1
  608. package/{es/_chunks/dep-3a02c1cc.js → esm/_chunks/dep-1450ac72.js} +5 -5
  609. package/esm/_chunks/{dep-3a02c1cc.js.map → dep-1450ac72.js.map} +1 -1
  610. package/esm/_chunks/{dep-54ba75b6.js → dep-151f48f7.js} +2 -2
  611. package/esm/_chunks/dep-151f48f7.js.map +1 -0
  612. package/{es/_chunks/dep-99f3441a.js → esm/_chunks/dep-18190a86.js} +4 -4
  613. package/esm/_chunks/{dep-99f3441a.js.map → dep-18190a86.js.map} +1 -1
  614. package/esm/_chunks/{dep-48e9cf63.js → dep-1baef241.js} +4 -4
  615. package/esm/_chunks/{dep-48e9cf63.js.map → dep-1baef241.js.map} +1 -1
  616. package/esm/_chunks/{dep-e858743b.js → dep-1ec3a297.js} +6 -6
  617. package/esm/_chunks/{dep-e858743b.js.map → dep-1ec3a297.js.map} +1 -1
  618. package/{es/_chunks/dep-01e895e5.js → esm/_chunks/dep-33d27597.js} +3 -3
  619. package/{lib/_chunks/dep-3c025b2f.js.map → esm/_chunks/dep-33d27597.js.map} +1 -1
  620. package/{es/_chunks/dep-90151af2.js → esm/_chunks/dep-35891477.js} +5 -5
  621. package/{es/_chunks/dep-90151af2.js.map → esm/_chunks/dep-35891477.js.map} +1 -1
  622. package/{es/_chunks/dep-1086af6c.js → esm/_chunks/dep-3da8c532.js} +9 -9
  623. package/{es/_chunks/dep-1086af6c.js.map → esm/_chunks/dep-3da8c532.js.map} +1 -1
  624. package/esm/_chunks/{dep-cdbf6335.js → dep-3e2a0e62.js} +6 -6
  625. package/{es/_chunks/dep-cdbf6335.js.map → esm/_chunks/dep-3e2a0e62.js.map} +1 -1
  626. package/{es/_chunks/dep-6b8768d8.js → esm/_chunks/dep-4f913987.js} +4 -4
  627. package/{es/_chunks/dep-6b8768d8.js.map → esm/_chunks/dep-4f913987.js.map} +1 -1
  628. package/esm/_chunks/{dep-53a3b062.js → dep-5c760193.js} +2 -2
  629. package/esm/_chunks/{dep-53a3b062.js.map → dep-5c760193.js.map} +1 -1
  630. package/esm/_chunks/dep-69e0e6c3.js +8 -0
  631. package/esm/_chunks/dep-69e0e6c3.js.map +1 -0
  632. package/{es/_chunks/dep-778d561f.js → esm/_chunks/dep-6aea4a72.js} +4 -4
  633. package/esm/_chunks/{dep-778d561f.js.map → dep-6aea4a72.js.map} +1 -1
  634. package/esm/_chunks/{dep-703e4e62.js → dep-6c8424d7.js} +3 -3
  635. package/{es/_chunks/dep-703e4e62.js.map → esm/_chunks/dep-6c8424d7.js.map} +1 -1
  636. package/esm/_chunks/{dep-c3e79579.js → dep-6dacf1e7.js} +7 -7
  637. package/esm/_chunks/{dep-c3e79579.js.map → dep-6dacf1e7.js.map} +1 -1
  638. package/esm/_chunks/{dep-5c63b369.js → dep-6e030c19.js} +16 -16
  639. package/esm/_chunks/{dep-5c63b369.js.map → dep-6e030c19.js.map} +1 -1
  640. package/{es/_chunks/dep-483ef537.js → esm/_chunks/dep-6e074833.js} +16 -16
  641. package/esm/_chunks/{dep-483ef537.js.map → dep-6e074833.js.map} +1 -1
  642. package/esm/_chunks/{dep-ec338634.js → dep-789a9cff.js} +5 -5
  643. package/{es/_chunks/dep-ec338634.js.map → esm/_chunks/dep-789a9cff.js.map} +1 -1
  644. package/{es/_chunks/dep-976487f9.js → esm/_chunks/dep-7ac5e481.js} +8 -8
  645. package/esm/_chunks/{dep-976487f9.js.map → dep-7ac5e481.js.map} +1 -1
  646. package/esm/_chunks/{dep-6fae8cf6.js → dep-80125e94.js} +5 -5
  647. package/esm/_chunks/{dep-6fae8cf6.js.map → dep-80125e94.js.map} +1 -1
  648. package/{es/_chunks/dep-72a5bdf9.js → esm/_chunks/dep-80ab7817.js} +3 -3
  649. package/esm/_chunks/{dep-72a5bdf9.js.map → dep-80ab7817.js.map} +1 -1
  650. package/esm/_chunks/{dep-d95b175f.js → dep-84a7dd49.js} +6 -6
  651. package/esm/_chunks/{dep-d95b175f.js.map → dep-84a7dd49.js.map} +1 -1
  652. package/esm/_chunks/{dep-7aeba7e1.js → dep-880a5ebd.js} +4 -4
  653. package/{es/_chunks/dep-7aeba7e1.js.map → esm/_chunks/dep-880a5ebd.js.map} +1 -1
  654. package/{es/_chunks/dep-8901b13b.js → esm/_chunks/dep-89abafca.js} +5 -5
  655. package/{es/_chunks/dep-8901b13b.js.map → esm/_chunks/dep-89abafca.js.map} +1 -1
  656. package/{es/_chunks/dep-a46f5ce1.js → esm/_chunks/dep-92ab2a98.js} +11 -11
  657. package/esm/_chunks/{dep-a46f5ce1.js.map → dep-92ab2a98.js.map} +1 -1
  658. package/{es/_chunks/dep-b1f46984.js → esm/_chunks/dep-990275aa.js} +7 -7
  659. package/esm/_chunks/{dep-b1f46984.js.map → dep-990275aa.js.map} +1 -1
  660. package/esm/_chunks/{dep-08d12fa5.js → dep-9d897185.js} +4 -4
  661. package/esm/_chunks/{dep-08d12fa5.js.map → dep-9d897185.js.map} +1 -1
  662. package/esm/_chunks/{dep-ee339b82.js → dep-9e25e98e.js} +4 -4
  663. package/esm/_chunks/{dep-ee339b82.js.map → dep-9e25e98e.js.map} +1 -1
  664. package/{es/_chunks/dep-99bd3c69.js → esm/_chunks/dep-a1546474.js} +7 -7
  665. package/esm/_chunks/{dep-99bd3c69.js.map → dep-a1546474.js.map} +1 -1
  666. package/{es/_chunks/dep-f2a24fd0.js → esm/_chunks/dep-a5b135ae.js} +7 -7
  667. package/esm/_chunks/{dep-f2a24fd0.js.map → dep-a5b135ae.js.map} +1 -1
  668. package/esm/_chunks/{dep-8646f728.js → dep-a716504a.js} +9 -9
  669. package/{es/_chunks/dep-8646f728.js.map → esm/_chunks/dep-a716504a.js.map} +1 -1
  670. package/{es/_chunks/dep-32d6dc59.js → esm/_chunks/dep-a9d16482.js} +3 -3
  671. package/esm/_chunks/{dep-32d6dc59.js.map → dep-a9d16482.js.map} +1 -1
  672. package/esm/_chunks/{dep-42df83ef.js → dep-b3f274e6.js} +2 -2
  673. package/esm/_chunks/{dep-42df83ef.js.map → dep-b3f274e6.js.map} +1 -1
  674. package/esm/_chunks/{dep-b7a1cd76.js → dep-bae013d5.js} +6 -6
  675. package/esm/_chunks/{dep-b7a1cd76.js.map → dep-bae013d5.js.map} +1 -1
  676. package/{es/_chunks/dep-756250f5.js → esm/_chunks/dep-bbc93b3b.js} +5 -5
  677. package/esm/_chunks/{dep-756250f5.js.map → dep-bbc93b3b.js.map} +1 -1
  678. package/esm/_chunks/{dep-e283c6b3.js → dep-bff17e29.js} +7 -7
  679. package/{es/_chunks/dep-e283c6b3.js.map → esm/_chunks/dep-bff17e29.js.map} +1 -1
  680. package/esm/_chunks/{dep-6ee32959.js → dep-c1b098f3.js} +8 -8
  681. package/esm/_chunks/{dep-6ee32959.js.map → dep-c1b098f3.js.map} +1 -1
  682. package/{es/_chunks/dep-a58a853f.js → esm/_chunks/dep-c216b563.js} +4 -4
  683. package/{es/_chunks/dep-a58a853f.js.map → esm/_chunks/dep-c216b563.js.map} +1 -1
  684. package/{es/_chunks/dep-f7f5f353.js → esm/_chunks/dep-c3351e4f.js} +3 -3
  685. package/esm/_chunks/{dep-f7f5f353.js.map → dep-c3351e4f.js.map} +1 -1
  686. package/esm/_chunks/{dep-a046771b.js → dep-ca0c816a.js} +5 -5
  687. package/{es/_chunks/dep-a046771b.js.map → esm/_chunks/dep-ca0c816a.js.map} +1 -1
  688. package/esm/_chunks/{dep-cbc08115.js → dep-cae0a320.js} +6 -6
  689. package/{es/_chunks/dep-cbc08115.js.map → esm/_chunks/dep-cae0a320.js.map} +1 -1
  690. package/{es/_chunks/dep-7317a609.js → esm/_chunks/dep-d9dba7f7.js} +2 -2
  691. package/esm/_chunks/{dep-7317a609.js.map → dep-d9dba7f7.js.map} +1 -1
  692. package/{es/_chunks/dep-a457ec3c.js → esm/_chunks/dep-e0619fb9.js} +3 -3
  693. package/esm/_chunks/{dep-a457ec3c.js.map → dep-e0619fb9.js.map} +1 -1
  694. package/{es/_chunks/dep-3d94520f.js → esm/_chunks/dep-e4b64a7f.js} +3 -3
  695. package/esm/_chunks/{dep-3d94520f.js.map → dep-e4b64a7f.js.map} +1 -1
  696. package/{es/_chunks/dep-583810e4.js → esm/_chunks/dep-e71391c4.js} +8 -8
  697. package/esm/_chunks/{dep-583810e4.js.map → dep-e71391c4.js.map} +1 -1
  698. package/{es/_chunks/dep-500c5336.js → esm/_chunks/dep-e75b3a36.js} +13 -13
  699. package/esm/_chunks/{dep-500c5336.js.map → dep-e75b3a36.js.map} +1 -1
  700. package/esm/_chunks/{dep-ace4fe58.js → dep-ecbceda8.js} +2 -2
  701. package/esm/_chunks/{dep-ace4fe58.js.map → dep-ecbceda8.js.map} +1 -1
  702. package/{es/_chunks/dep-5a7809fc.js → esm/_chunks/dep-ee1680b8.js} +8 -8
  703. package/esm/_chunks/{dep-5a7809fc.js.map → dep-ee1680b8.js.map} +1 -1
  704. package/esm/_chunks/{dep-6abe483c.js → dep-f1a5d7df.js} +4 -4
  705. package/{es/_chunks/dep-6abe483c.js.map → esm/_chunks/dep-f1a5d7df.js.map} +1 -1
  706. package/esm/_chunks/{dep-009d0f6b.js → dep-f6612745.js} +5 -5
  707. package/{es/_chunks/dep-009d0f6b.js.map → esm/_chunks/dep-f6612745.js.map} +1 -1
  708. package/esm/_chunks/{dep-f42a5f7d.js → dep-f6ab6501.js} +4 -4
  709. package/esm/_chunks/{dep-f42a5f7d.js.map → dep-f6ab6501.js.map} +1 -1
  710. package/esm/_chunks/{dep-d11cade3.js → dep-fd19ec48.js} +9 -9
  711. package/{es/_chunks/dep-d11cade3.js.map → esm/_chunks/dep-fd19ec48.js.map} +1 -1
  712. package/esm/_common/js/common.js +1 -1
  713. package/esm/_common/js/date-picker/utils.js +15 -15
  714. package/esm/_common/js/global-config/default-config.js +1 -1
  715. package/esm/_common/js/global-config/locale/en_US.js +1 -1
  716. package/esm/_common/js/global-config/locale/zh_CN.js +1 -1
  717. package/esm/_common/js/loading/circle-adapter.js +5 -5
  718. package/esm/_common/js/log/index.js +1 -1
  719. package/esm/_common/js/log/log.js +1 -1
  720. package/esm/_common/js/log/types.js +1 -1
  721. package/esm/_common/js/tree/tree-node-model.js +22 -22
  722. package/esm/_common/js/tree/tree-node.js +27 -27
  723. package/esm/_common/js/tree/tree-store.js +35 -35
  724. package/esm/_common/js/tree/types.js +1 -1
  725. package/esm/_common/js/upload/types.js +1 -1
  726. package/esm/_common/js/upload/xhr.js +1 -1
  727. package/esm/_common/js/utils/calcTextareaHeight.js +5 -5
  728. package/esm/_common/js/utils/helper.js +5 -5
  729. package/esm/_common/js/utils/set-style.js +1 -1
  730. package/esm/_common/style/web/_global.less +10 -0
  731. package/esm/_common/style/web/_variables.less +0 -5
  732. package/esm/_common/style/web/components/color-picker/_index.less +8 -6
  733. package/esm/_common/style/web/components/color-picker/_var.less +1 -1
  734. package/esm/_common/style/web/components/form/_mixin.less +23 -3
  735. package/esm/_common/style/web/components/menu/_index.less +82 -3
  736. package/esm/_common/style/web/components/notification/_index.less +33 -0
  737. package/esm/_common/style/web/components/notification/_mixin.less +13 -0
  738. package/esm/_common/style/web/components/select/_index.less +6 -1
  739. package/esm/_common/style/web/components/swiper/_docs.less +36 -0
  740. package/esm/_common/style/web/components/swiper-new/_docs.less +35 -0
  741. package/esm/_common/style/web/components/swiper-new/_index.less +259 -0
  742. package/esm/_common/style/web/components/swiper-new/_mixin.less +208 -0
  743. package/esm/_common/style/web/components/swiper-new/_var.less +81 -0
  744. package/esm/_common/style/web/components/tag-input/_index.less +17 -1
  745. package/esm/_util/callBoth.js +1 -1
  746. package/esm/_util/composeRefs.js +1 -1
  747. package/esm/_util/dom.d.ts +1 -0
  748. package/esm/_util/dom.js +14 -9
  749. package/esm/_util/dom.js.map +1 -1
  750. package/esm/_util/easing.js +1 -1
  751. package/esm/_util/forwardRefWithStatics.js +1 -1
  752. package/esm/_util/getScrollbarWidth.js +1 -1
  753. package/esm/_util/hasScrollBar.js +1 -1
  754. package/esm/_util/helper.js +16 -16
  755. package/esm/_util/injectValue.js +1 -1
  756. package/esm/_util/insertCSS.js +1 -1
  757. package/esm/_util/isCallable.js +1 -1
  758. package/esm/_util/linearGradient.js +2 -2
  759. package/esm/_util/noop.js +1 -1
  760. package/esm/_util/number.js +1 -1
  761. package/esm/_util/renderTNode.d.ts +7 -0
  762. package/esm/_util/renderTNode.js +16 -0
  763. package/esm/_util/renderTNode.js.map +1 -0
  764. package/esm/_util/setStyle.js +1 -1
  765. package/esm/_util/useAnimation.js +21 -21
  766. package/esm/_util/useClickOutside.js +1 -1
  767. package/esm/_util/useCommonClassName.js +21 -21
  768. package/esm/_util/useConfig.js +21 -21
  769. package/esm/_util/useDefault.js +3 -3
  770. package/esm/_util/useDefaultValue.js +5 -5
  771. package/esm/_util/useDialogEsc.js +3 -3
  772. package/esm/_util/useDragSorter.js +3 -3
  773. package/esm/_util/useLayoutEffect.js +8 -8
  774. package/esm/_util/useMutationObserver.js +9 -9
  775. package/esm/_util/usePersistFn.js +1 -1
  776. package/esm/_util/usePrevious.js +1 -1
  777. package/esm/_util/useRefAndForward.js +1 -1
  778. package/esm/_util/useRipple.js +22 -22
  779. package/esm/_util/useSetState.js +4 -4
  780. package/esm/_util/useSwitch.js +3 -3
  781. package/esm/_util/useUpdateEffect.js +8 -8
  782. package/esm/_util/useWindowSize.js +4 -4
  783. package/esm/addon/Addon.js +22 -22
  784. package/esm/addon/index.js +22 -22
  785. package/esm/affix/Affix.js +24 -24
  786. package/esm/affix/index.js +24 -24
  787. package/esm/affix/type.js +1 -1
  788. package/esm/alert/Alert.js +24 -24
  789. package/esm/alert/index.js +24 -24
  790. package/esm/alert/type.js +1 -1
  791. package/esm/anchor/Anchor.d.ts +1 -1
  792. package/esm/anchor/Anchor.js +36 -34
  793. package/esm/anchor/Anchor.js.map +1 -1
  794. package/esm/anchor/AnchorContext.js +1 -1
  795. package/esm/anchor/AnchorItem.d.ts +3 -1
  796. package/esm/anchor/AnchorItem.js +28 -26
  797. package/esm/anchor/AnchorItem.js.map +1 -1
  798. package/esm/anchor/AnchorTarget.js +28 -28
  799. package/esm/anchor/_util/clipboard.js +1 -1
  800. package/esm/anchor/_util/dom.js +1 -1
  801. package/esm/anchor/index.d.ts +1 -1
  802. package/esm/anchor/index.js +30 -30
  803. package/esm/anchor/type.js +1 -1
  804. package/esm/avatar/AvararGroup.js +29 -29
  805. package/esm/avatar/Avatar.js +29 -29
  806. package/esm/avatar/AvatarContext.js +1 -1
  807. package/esm/avatar/index.js +29 -29
  808. package/esm/avatar/type.js +1 -1
  809. package/esm/badge/Badge.js +22 -22
  810. package/esm/badge/index.js +22 -22
  811. package/esm/badge/type.js +1 -1
  812. package/esm/breadcrumb/Breadcrumb.js +22 -22
  813. package/esm/breadcrumb/BreadcrumbContext.js +1 -1
  814. package/esm/breadcrumb/BreadcrumbItem.js +22 -22
  815. package/esm/breadcrumb/BreadcrumbProps.js +1 -1
  816. package/esm/breadcrumb/index.js +22 -22
  817. package/esm/breadcrumb/type.js +1 -1
  818. package/esm/button/Button.js +25 -25
  819. package/esm/button/index.js +25 -25
  820. package/esm/button/type.js +1 -1
  821. package/esm/calendar/Calendar.js +42 -42
  822. package/esm/calendar/_util.js +1 -1
  823. package/esm/calendar/index.js +42 -42
  824. package/esm/calendar/type.js +1 -1
  825. package/esm/card/type.js +1 -1
  826. package/esm/cascader/Cascader.js +48 -48
  827. package/esm/cascader/components/InputContent.js +31 -31
  828. package/esm/cascader/components/Item.js +35 -35
  829. package/esm/cascader/components/Panel.js +35 -35
  830. package/esm/cascader/index.js +48 -48
  831. package/esm/cascader/interface.js +27 -27
  832. package/esm/cascader/type.d.ts +25 -8
  833. package/esm/cascader/type.js +1 -1
  834. package/esm/cascader/utils/cascader.js +4 -4
  835. package/esm/cascader/utils/helper.js +2 -2
  836. package/esm/cascader/utils/inputContent.js +18 -18
  837. package/esm/cascader/utils/inputContent.js.map +1 -1
  838. package/esm/cascader/utils/item.js +4 -4
  839. package/esm/cascader/utils/panel.js +10 -10
  840. package/esm/cascader/utils/panel.js.map +1 -1
  841. package/esm/checkbox/Checkbox.js +31 -31
  842. package/esm/checkbox/CheckboxGroup.js +31 -31
  843. package/esm/checkbox/index.js +31 -31
  844. package/esm/checkbox/type.js +1 -1
  845. package/esm/comment/Comment.js +21 -21
  846. package/esm/comment/index.js +21 -21
  847. package/esm/comment/type.js +1 -1
  848. package/esm/common/Check.js +29 -29
  849. package/esm/common/FakeArrow.js +21 -21
  850. package/esm/common/Portal.js +22 -22
  851. package/esm/common.js +1 -1
  852. package/esm/config-provider/ConfigContext.js +21 -21
  853. package/esm/config-provider/ConfigProvider.js +21 -21
  854. package/esm/config-provider/en_US_config.js +1 -1
  855. package/esm/config-provider/index.js +21 -21
  856. package/esm/config-provider/type.js +1 -1
  857. package/esm/config-provider/zh_CN_config.js +1 -1
  858. package/esm/date-picker/DatePicker.d.ts +0 -6
  859. package/esm/date-picker/DatePicker.js +52 -55
  860. package/esm/date-picker/DatePicker.js.map +1 -1
  861. package/esm/date-picker/base/CalendarPresets.js +25 -25
  862. package/esm/date-picker/base/Cell.js +21 -21
  863. package/esm/date-picker/base/Header.js +25 -25
  864. package/esm/date-picker/base/Table.js +23 -23
  865. package/esm/date-picker/index.d.ts +0 -6
  866. package/esm/date-picker/index.js +35 -35
  867. package/esm/date-picker/panel/Date.js +29 -29
  868. package/esm/date-picker/panel/DateRange.js +29 -29
  869. package/esm/date-picker/type.js +1 -1
  870. package/esm/dialog/Dialog.js +26 -26
  871. package/esm/dialog/RenderDialog.js +24 -24
  872. package/esm/dialog/index.js +26 -26
  873. package/esm/dialog/plugin.js +26 -26
  874. package/esm/dialog/type.js +1 -1
  875. package/esm/divider/Divider.js +22 -22
  876. package/esm/divider/index.js +22 -22
  877. package/esm/divider/type.js +1 -1
  878. package/esm/drawer/Drawer.js +25 -25
  879. package/esm/drawer/DrawerWrapper.js +22 -22
  880. package/esm/drawer/index.js +25 -25
  881. package/esm/drawer/type.js +1 -1
  882. package/esm/dropdown/Dropdown.js +40 -40
  883. package/esm/dropdown/DropdownItem.js +30 -30
  884. package/esm/dropdown/DropdownMenu.js +31 -31
  885. package/esm/dropdown/index.js +40 -40
  886. package/esm/dropdown/type.js +1 -1
  887. package/esm/form/Form.js +80 -269
  888. package/esm/form/Form.js.map +1 -1
  889. package/esm/form/FormContext.js +1 -1
  890. package/esm/form/FormItem.js +86 -113
  891. package/esm/form/FormItem.js.map +1 -1
  892. package/esm/form/formModel.js +27 -27
  893. package/esm/form/hooks/useInstance.d.ts +12 -0
  894. package/esm/form/hooks/useInstance.js +263 -0
  895. package/esm/form/hooks/useInstance.js.map +1 -0
  896. package/esm/form/index.js +48 -46
  897. package/esm/form/index.js.map +1 -1
  898. package/esm/form/type.d.ts +9 -6
  899. package/esm/form/type.js +1 -1
  900. package/esm/grid/Col.js +22 -22
  901. package/esm/grid/Row.js +41 -36
  902. package/esm/grid/Row.js.map +1 -1
  903. package/esm/grid/index.js +25 -25
  904. package/esm/grid/type.js +1 -1
  905. package/esm/index.js +59 -57
  906. package/esm/index.js.map +1 -1
  907. package/esm/input/Input.js +31 -29
  908. package/esm/input/Input.js.map +1 -1
  909. package/esm/input/InputGroup.js +22 -22
  910. package/esm/input/index.js +29 -29
  911. package/esm/input/type.js +1 -1
  912. package/esm/input-number/InputNumber.js +30 -30
  913. package/esm/input-number/StepHandler.js +25 -25
  914. package/esm/input-number/index.js +30 -30
  915. package/esm/input-number/type.js +1 -1
  916. package/esm/input-number/utils/numberUtils.js +1 -1
  917. package/esm/layout/Aside.js +22 -22
  918. package/esm/layout/Layout.js +24 -24
  919. package/esm/layout/index.js +24 -24
  920. package/esm/layout/type.js +1 -1
  921. package/esm/list/List.js +25 -25
  922. package/esm/list/ListItem.js +21 -21
  923. package/esm/list/ListItemMeta.js +21 -21
  924. package/esm/list/index.js +25 -25
  925. package/esm/list/type.js +1 -1
  926. package/esm/loading/gradient.js +24 -24
  927. package/esm/loading/index.js +25 -25
  928. package/esm/loading/loading.js +25 -25
  929. package/esm/loading/plugin.js +25 -25
  930. package/esm/loading/type.js +1 -1
  931. package/esm/locale/LocalReceiver.js +21 -21
  932. package/esm/locale/en_US.js +1 -1
  933. package/esm/locale/zh_CN.js +1 -1
  934. package/esm/menu/HeadMenu.js +25 -25
  935. package/esm/menu/Menu.js +25 -25
  936. package/esm/menu/MenuContext.js +1 -1
  937. package/esm/menu/MenuGroup.js +21 -21
  938. package/esm/menu/MenuItem.js +22 -22
  939. package/esm/menu/SubMenu.js +24 -24
  940. package/esm/menu/_util/cacularPaddingLeft.js +1 -1
  941. package/esm/menu/_util/checkMenuType.js +1 -1
  942. package/esm/menu/_util/checkSubMenuActive.js +1 -1
  943. package/esm/menu/_util/checkSubMenuChildExpanded.js +3 -3
  944. package/esm/menu/_util/checkSubMenuChildrenActive.js +1 -1
  945. package/esm/menu/_util/constant.js +1 -1
  946. package/esm/menu/_util/getSubMenuChildStyle.js +1 -1
  947. package/esm/menu/_util/type.js +1 -1
  948. package/esm/menu/hooks/useMenuContext.js +6 -6
  949. package/esm/menu/index.js +25 -25
  950. package/esm/menu/type.js +1 -1
  951. package/esm/message/Message.js +25 -25
  952. package/esm/message/MessageClose.js +21 -21
  953. package/esm/message/MessageComponent.js +25 -25
  954. package/esm/message/MessageIcon.js +25 -25
  955. package/esm/message/const.js +1 -1
  956. package/esm/message/index.js +25 -25
  957. package/esm/message/type.js +1 -1
  958. package/esm/message/useMessageClass.js +21 -21
  959. package/esm/notification/Notification.js +25 -25
  960. package/esm/notification/NotificationList.js +25 -25
  961. package/esm/notification/NotificationPlugin.js +25 -25
  962. package/esm/notification/index.js +25 -25
  963. package/esm/notification/type.js +1 -1
  964. package/esm/pagination/Pagination.js +41 -41
  965. package/esm/pagination/index.js +41 -41
  966. package/esm/pagination/type.js +1 -1
  967. package/esm/pagination/validators.js +1 -1
  968. package/esm/popconfirm/PopConfirm.js +28 -28
  969. package/esm/popconfirm/PopContent.js +25 -25
  970. package/esm/popconfirm/index.js +28 -28
  971. package/esm/popconfirm/type.js +1 -1
  972. package/esm/popup/Popup.js +27 -27
  973. package/esm/popup/hooks/useTriggerProps.js +1 -1
  974. package/esm/popup/index.js +27 -27
  975. package/esm/popup/type.js +1 -1
  976. package/esm/popup/utils/getTransitionParams.js +1 -1
  977. package/esm/progress/Progress.js +22 -22
  978. package/esm/progress/index.js +22 -22
  979. package/esm/progress/type.js +1 -1
  980. package/esm/radio/Radio.js +32 -32
  981. package/esm/radio/RadioGroup.js +32 -32
  982. package/esm/radio/index.js +32 -32
  983. package/esm/radio/type.js +1 -1
  984. package/esm/rate/type.js +1 -1
  985. package/esm/select/base/Option.js +27 -27
  986. package/esm/select/base/OptionGroup.js +21 -21
  987. package/esm/select/base/PopupContent.js +31 -31
  988. package/esm/select/base/Select.js +75 -79
  989. package/esm/select/base/Select.js.map +1 -1
  990. package/esm/select/index.js +41 -41
  991. package/esm/select/type.js +1 -1
  992. package/esm/select/util/helper.js +29 -29
  993. package/esm/select-input/SelectInput.js +42 -40
  994. package/esm/select-input/SelectInput.js.map +1 -1
  995. package/esm/select-input/index.js +39 -39
  996. package/esm/select-input/type.d.ts +2 -2
  997. package/esm/select-input/type.js +1 -1
  998. package/esm/select-input/useMultiple.js +31 -34
  999. package/esm/select-input/useMultiple.js.map +1 -1
  1000. package/esm/select-input/useOverlayStyle.js +13 -11
  1001. package/esm/select-input/useOverlayStyle.js.map +1 -1
  1002. package/esm/select-input/useSingle.js +53 -53
  1003. package/esm/select-input/useSingle.js.map +1 -1
  1004. package/esm/skeleton/Skeleton.js +31 -31
  1005. package/esm/skeleton/index.js +31 -31
  1006. package/esm/skeleton/type.js +1 -1
  1007. package/esm/slider/Slider.js +40 -35
  1008. package/esm/slider/Slider.js.map +1 -1
  1009. package/esm/slider/SliderHandleButton.d.ts +1 -0
  1010. package/esm/slider/SliderHandleButton.js +36 -34
  1011. package/esm/slider/SliderHandleButton.js.map +1 -1
  1012. package/esm/slider/index.js +32 -32
  1013. package/esm/slider/type.d.ts +5 -3
  1014. package/esm/slider/type.js +1 -1
  1015. package/esm/slider/utils/handleNumber.js +1 -1
  1016. package/esm/steps/StepItem.js +21 -21
  1017. package/esm/steps/Steps.js +21 -21
  1018. package/esm/steps/StepsContext.js +1 -1
  1019. package/esm/steps/index.js +21 -21
  1020. package/esm/steps/type.js +1 -1
  1021. package/esm/sticky-tool/type.js +1 -1
  1022. package/esm/swiper/Swiper.js +314 -81
  1023. package/esm/swiper/Swiper.js.map +1 -1
  1024. package/esm/swiper/SwiperItem.d.ts +8 -4
  1025. package/esm/swiper/SwiperItem.js +118 -3
  1026. package/esm/swiper/SwiperItem.js.map +1 -1
  1027. package/esm/swiper/index.js +24 -23
  1028. package/esm/swiper/index.js.map +1 -1
  1029. package/esm/swiper/style/index.js +1 -1
  1030. package/esm/swiper/type.d.ts +62 -4
  1031. package/esm/swiper/type.js +1 -1
  1032. package/esm/switch/Switch.js +25 -25
  1033. package/esm/switch/index.js +25 -25
  1034. package/esm/switch/type.js +1 -1
  1035. package/esm/table/base/Table.js +41 -41
  1036. package/esm/table/base/TableAsyncLoadingBody.js +25 -25
  1037. package/esm/table/base/TableBody.js +34 -32
  1038. package/esm/table/base/TableBody.js.map +1 -1
  1039. package/esm/table/base/TableCell.js +27 -27
  1040. package/esm/table/base/TableColGroup.js +1 -1
  1041. package/esm/table/base/TableContext.js +1 -1
  1042. package/esm/table/base/TableEmptyBody.js +23 -23
  1043. package/esm/table/base/TableFooter.js +1 -1
  1044. package/esm/table/base/TableHeader.js +29 -29
  1045. package/esm/table/base/TableLoadingBody.js +6 -6
  1046. package/esm/table/base/TableRow.js +31 -31
  1047. package/esm/table/enhanced/Table.js +43 -43
  1048. package/esm/table/enhanced/TableContext.js +1 -1
  1049. package/esm/table/enhanced/useTree.js +28 -28
  1050. package/esm/table/hooks/useColumns.js +4 -4
  1051. package/esm/table/index.js +43 -43
  1052. package/esm/table/primary/SorterButton.js +28 -28
  1053. package/esm/table/primary/Table.js +43 -43
  1054. package/esm/table/primary/expand-box.js +21 -21
  1055. package/esm/table/primary/useChange.js +2 -2
  1056. package/esm/table/primary/useExpand.js +28 -28
  1057. package/esm/table/primary/useFilter.js +35 -35
  1058. package/esm/table/primary/useFilterButton.js +35 -35
  1059. package/esm/table/primary/useSelect.js +35 -35
  1060. package/esm/table/primary/useSorter.js +32 -32
  1061. package/esm/table/type.js +1 -1
  1062. package/esm/table/util/getRowKeyFromRowKey.js +1 -1
  1063. package/esm/table/util/index.js +1 -1
  1064. package/esm/tabs/TabBar.js +23 -23
  1065. package/esm/tabs/TabNav.js +24 -24
  1066. package/esm/tabs/TabNavItem.js +22 -22
  1067. package/esm/tabs/TabPanel.js +21 -21
  1068. package/esm/tabs/Tabs.js +24 -24
  1069. package/esm/tabs/index.js +24 -24
  1070. package/esm/tabs/type.js +1 -1
  1071. package/esm/tabs/useTabClass.js +21 -21
  1072. package/esm/tag/CheckTag.js +24 -24
  1073. package/esm/tag/Tag.js +24 -24
  1074. package/esm/tag/index.js +24 -24
  1075. package/esm/tag/type.js +1 -1
  1076. package/esm/tag-input/TagInput.js +34 -31
  1077. package/esm/tag-input/TagInput.js.map +1 -1
  1078. package/esm/tag-input/index.js +30 -30
  1079. package/esm/tag-input/type.js +1 -1
  1080. package/esm/tag-input/useHover.js +3 -3
  1081. package/esm/tag-input/useTagList.js +25 -25
  1082. package/esm/tag-input/useTagScroll.js +3 -3
  1083. package/esm/textarea/Textarea.js +29 -29
  1084. package/esm/textarea/index.js +29 -29
  1085. package/esm/textarea/type.js +1 -1
  1086. package/esm/time-picker/InputItems.js +32 -32
  1087. package/esm/time-picker/TimePicker.js +36 -36
  1088. package/esm/time-picker/TimeRangePicker.js +36 -36
  1089. package/esm/time-picker/consts.js +23 -23
  1090. package/esm/time-picker/index.js +36 -36
  1091. package/esm/time-picker/interfaces.js +1 -1
  1092. package/esm/time-picker/panel/SinglePanel.js +32 -32
  1093. package/esm/time-picker/panel/TimePickerPanel.js +34 -34
  1094. package/esm/time-picker/panel/TimePickerRangePanel.js +34 -34
  1095. package/esm/time-picker/type.js +1 -1
  1096. package/esm/tooltip/Tooltip.js +28 -28
  1097. package/esm/tooltip/index.js +28 -28
  1098. package/esm/tooltip/type.js +1 -1
  1099. package/esm/transfer/Transfer.js +46 -46
  1100. package/esm/transfer/TransferList.js +44 -44
  1101. package/esm/transfer/index.js +46 -46
  1102. package/esm/transfer/type.js +1 -1
  1103. package/esm/transfer/utils.js +18 -18
  1104. package/esm/tree/Tree.js +47 -47
  1105. package/esm/tree/TreeItem.js +32 -32
  1106. package/esm/tree/index.js +47 -47
  1107. package/esm/tree/interface.js +1 -1
  1108. package/esm/tree/type.js +1 -1
  1109. package/esm/tree/useControllable.js +3 -3
  1110. package/esm/tree/useStore.js +41 -41
  1111. package/esm/tree/useTreeConfig.js +23 -23
  1112. package/esm/tree-select/SelectArrow.d.ts +8 -0
  1113. package/esm/tree-select/SelectArrow.js +53 -0
  1114. package/esm/tree-select/SelectArrow.js.map +1 -0
  1115. package/esm/tree-select/TreeSelect.js +131 -113
  1116. package/esm/tree-select/TreeSelect.js.map +1 -1
  1117. package/esm/tree-select/index.js +50 -50
  1118. package/esm/tree-select/type.d.ts +62 -6
  1119. package/esm/tree-select/type.js +1 -1
  1120. package/esm/tree-select/useTreeSelectLocale.js +23 -23
  1121. package/esm/tree-select/useTreeSelectPassthoughProps.js +22 -22
  1122. package/esm/tree-select/useTreeSelectPassthoughProps.js.map +1 -1
  1123. package/esm/tree-select/useTreeSelectUtils.d.ts +1 -1
  1124. package/esm/tree-select/useTreeSelectUtils.js +38 -38
  1125. package/esm/tree-select/useTreeSelectUtils.js.map +1 -1
  1126. package/esm/upload/boolean-render.js +1 -1
  1127. package/esm/upload/dragger.js +25 -25
  1128. package/esm/upload/hooks/useDefaultValue.js +7 -7
  1129. package/esm/upload/hooks/useSizeLimit.js +23 -23
  1130. package/esm/upload/index.js +40 -40
  1131. package/esm/upload/themes/dragger-progress.js +25 -25
  1132. package/esm/upload/themes/flow-list/file-list.js +25 -25
  1133. package/esm/upload/themes/flow-list/img-list.js +25 -25
  1134. package/esm/upload/themes/flow-list/index.js +25 -25
  1135. package/esm/upload/themes/image-card.js +26 -26
  1136. package/esm/upload/themes/single-file.js +25 -25
  1137. package/esm/upload/tips.js +21 -21
  1138. package/esm/upload/type.js +1 -1
  1139. package/esm/upload/types.js +1 -1
  1140. package/esm/upload/upload-trigger.js +25 -25
  1141. package/esm/upload/upload.js +40 -40
  1142. package/esm/upload/util.js +1 -1
  1143. package/lib/_chunks/{dep-5e04b2b0.js → dep-06ac7d27.js} +14 -14
  1144. package/lib/_chunks/{dep-5e04b2b0.js.map → dep-06ac7d27.js.map} +1 -1
  1145. package/lib/_chunks/{dep-b94c629b.js → dep-071eed34.js} +7 -7
  1146. package/lib/_chunks/{dep-b94c629b.js.map → dep-071eed34.js.map} +1 -1
  1147. package/lib/_chunks/{dep-12da16d1.js → dep-0901df83.js} +2 -2
  1148. package/lib/_chunks/{dep-12da16d1.js.map → dep-0901df83.js.map} +1 -1
  1149. package/lib/_chunks/{dep-7f9724f7.js → dep-0bc46dde.js} +3 -3
  1150. package/lib/_chunks/{dep-7f9724f7.js.map → dep-0bc46dde.js.map} +1 -1
  1151. package/lib/_chunks/{dep-b08bc9c8.js → dep-10264c5e.js} +5 -5
  1152. package/lib/_chunks/{dep-b08bc9c8.js.map → dep-10264c5e.js.map} +1 -1
  1153. package/lib/_chunks/{dep-db0608d9.js → dep-10608f6b.js} +5 -5
  1154. package/lib/_chunks/{dep-db0608d9.js.map → dep-10608f6b.js.map} +1 -1
  1155. package/lib/_chunks/{dep-2b752931.js → dep-11f28bb0.js} +5 -5
  1156. package/lib/_chunks/{dep-2b752931.js.map → dep-11f28bb0.js.map} +1 -1
  1157. package/lib/_chunks/{dep-e808a005.js → dep-16f57fd2.js} +3 -3
  1158. package/lib/_chunks/{dep-e808a005.js.map → dep-16f57fd2.js.map} +1 -1
  1159. package/lib/_chunks/{dep-9dd5189a.js → dep-215b525a.js} +3 -3
  1160. package/lib/_chunks/{dep-9dd5189a.js.map → dep-215b525a.js.map} +1 -1
  1161. package/lib/_chunks/{dep-3fff0864.js → dep-2322df0f.js} +7 -7
  1162. package/lib/_chunks/{dep-3fff0864.js.map → dep-2322df0f.js.map} +1 -1
  1163. package/lib/_chunks/{dep-ee83c39e.js → dep-2666fce8.js} +7 -7
  1164. package/lib/_chunks/{dep-ee83c39e.js.map → dep-2666fce8.js.map} +1 -1
  1165. package/lib/_chunks/{dep-a47a838f.js → dep-2b5f881a.js} +2 -2
  1166. package/lib/_chunks/{dep-a47a838f.js.map → dep-2b5f881a.js.map} +1 -1
  1167. package/lib/_chunks/{dep-970d5d55.js → dep-2f77971b.js} +3 -3
  1168. package/lib/_chunks/{dep-970d5d55.js.map → dep-2f77971b.js.map} +1 -1
  1169. package/lib/_chunks/{dep-6984609c.js → dep-3202f2a6.js} +4 -4
  1170. package/lib/_chunks/{dep-6984609c.js.map → dep-3202f2a6.js.map} +1 -1
  1171. package/lib/_chunks/{dep-69e5c80a.js → dep-33d435f0.js} +3 -3
  1172. package/lib/_chunks/{dep-69e5c80a.js.map → dep-33d435f0.js.map} +1 -1
  1173. package/lib/_chunks/{dep-8f00b98c.js → dep-35de0117.js} +3 -3
  1174. package/lib/_chunks/{dep-8f00b98c.js.map → dep-35de0117.js.map} +1 -1
  1175. package/lib/_chunks/{dep-eb057d83.js → dep-370910f8.js} +6 -6
  1176. package/lib/_chunks/{dep-eb057d83.js.map → dep-370910f8.js.map} +1 -1
  1177. package/lib/_chunks/{dep-a73ce995.js → dep-379b3fe2.js} +7 -7
  1178. package/lib/_chunks/{dep-a73ce995.js.map → dep-379b3fe2.js.map} +1 -1
  1179. package/lib/_chunks/{dep-737aa0f3.js → dep-3e000c29.js} +5 -5
  1180. package/lib/_chunks/{dep-737aa0f3.js.map → dep-3e000c29.js.map} +1 -1
  1181. package/lib/_chunks/{dep-20f6923d.js → dep-44b93460.js} +4 -4
  1182. package/lib/_chunks/{dep-20f6923d.js.map → dep-44b93460.js.map} +1 -1
  1183. package/lib/_chunks/{dep-bb11bb62.js → dep-47dec67d.js} +2 -2
  1184. package/lib/_chunks/{dep-bb11bb62.js.map → dep-47dec67d.js.map} +1 -1
  1185. package/lib/_chunks/{dep-e5f11335.js → dep-4ba13b21.js} +4 -4
  1186. package/lib/_chunks/{dep-e5f11335.js.map → dep-4ba13b21.js.map} +1 -1
  1187. package/lib/_chunks/{dep-18233ff2.js → dep-4e175c8d.js} +6 -6
  1188. package/lib/_chunks/{dep-18233ff2.js.map → dep-4e175c8d.js.map} +1 -1
  1189. package/lib/_chunks/{dep-1ad343a0.js → dep-4f5d9d47.js} +4 -4
  1190. package/lib/_chunks/{dep-1ad343a0.js.map → dep-4f5d9d47.js.map} +1 -1
  1191. package/lib/_chunks/{dep-3e45dc37.js → dep-5d3f16ca.js} +5 -5
  1192. package/lib/_chunks/{dep-3e45dc37.js.map → dep-5d3f16ca.js.map} +1 -1
  1193. package/lib/_chunks/{dep-73856d5c.js → dep-606e8b68.js} +7 -7
  1194. package/lib/_chunks/{dep-73856d5c.js.map → dep-606e8b68.js.map} +1 -1
  1195. package/lib/_chunks/{dep-54c988d8.js → dep-65d64731.js} +2 -2
  1196. package/lib/_chunks/{dep-54c988d8.js.map → dep-65d64731.js.map} +1 -1
  1197. package/lib/_chunks/{dep-87edf3ba.js → dep-6a145cca.js} +5 -5
  1198. package/lib/_chunks/{dep-87edf3ba.js.map → dep-6a145cca.js.map} +1 -1
  1199. package/lib/_chunks/{dep-7089b727.js → dep-71e4d21e.js} +2 -2
  1200. package/lib/_chunks/{dep-7089b727.js.map → dep-71e4d21e.js.map} +1 -1
  1201. package/lib/_chunks/{dep-bc85dc8a.js → dep-7f8549d2.js} +6 -6
  1202. package/lib/_chunks/{dep-bc85dc8a.js.map → dep-7f8549d2.js.map} +1 -1
  1203. package/lib/_chunks/{dep-52d82d14.js → dep-81e00bf6.js} +5 -5
  1204. package/lib/_chunks/{dep-52d82d14.js.map → dep-81e00bf6.js.map} +1 -1
  1205. package/lib/_chunks/{dep-d4780c69.js → dep-8d2f3689.js} +2 -2
  1206. package/lib/_chunks/{dep-d4780c69.js.map → dep-8d2f3689.js.map} +1 -1
  1207. package/lib/_chunks/{dep-58869e22.js → dep-8d7bb976.js} +6 -6
  1208. package/lib/_chunks/{dep-58869e22.js.map → dep-8d7bb976.js.map} +1 -1
  1209. package/lib/_chunks/{dep-eaf27329.js → dep-95a06c78.js} +11 -11
  1210. package/lib/_chunks/{dep-eaf27329.js.map → dep-95a06c78.js.map} +1 -1
  1211. package/lib/_chunks/{dep-77fade41.js → dep-98c40b75.js} +5 -5
  1212. package/lib/_chunks/{dep-77fade41.js.map → dep-98c40b75.js.map} +1 -1
  1213. package/lib/_chunks/{dep-65e40b52.js → dep-a49e4831.js} +2 -2
  1214. package/lib/_chunks/{dep-65e40b52.js.map → dep-a49e4831.js.map} +1 -1
  1215. package/lib/_chunks/{dep-700584bd.js → dep-a5ecb0cc.js} +6 -6
  1216. package/lib/_chunks/{dep-700584bd.js.map → dep-a5ecb0cc.js.map} +1 -1
  1217. package/lib/_chunks/{dep-b960cdf8.js → dep-b4bfb8c5.js} +4 -4
  1218. package/lib/_chunks/{dep-b960cdf8.js.map → dep-b4bfb8c5.js.map} +1 -1
  1219. package/lib/_chunks/{dep-083bef0a.js → dep-b738a380.js} +9 -9
  1220. package/lib/_chunks/{dep-083bef0a.js.map → dep-b738a380.js.map} +1 -1
  1221. package/lib/_chunks/{dep-2ee63f2f.js → dep-bd4553de.js} +4 -4
  1222. package/lib/_chunks/{dep-2ee63f2f.js.map → dep-bd4553de.js.map} +1 -1
  1223. package/lib/_chunks/{dep-883a1165.js → dep-c31c68ba.js} +4 -4
  1224. package/lib/_chunks/{dep-883a1165.js.map → dep-c31c68ba.js.map} +1 -1
  1225. package/lib/_chunks/{dep-966008a5.js → dep-c3b52abc.js} +3 -3
  1226. package/lib/_chunks/{dep-966008a5.js.map → dep-c3b52abc.js.map} +1 -1
  1227. package/lib/_chunks/{dep-fc96926a.js → dep-cb7fd82c.js} +6 -6
  1228. package/lib/_chunks/{dep-fc96926a.js.map → dep-cb7fd82c.js.map} +1 -1
  1229. package/lib/_chunks/{dep-c54cbc49.js → dep-cbb89a09.js} +3 -3
  1230. package/lib/_chunks/{dep-c54cbc49.js.map → dep-cbb89a09.js.map} +1 -1
  1231. package/lib/_chunks/{dep-66a91ad2.js → dep-d1988ef8.js} +13 -13
  1232. package/lib/_chunks/{dep-66a91ad2.js.map → dep-d1988ef8.js.map} +1 -1
  1233. package/lib/_chunks/{dep-3c025b2f.js → dep-d236783a.js} +2 -2
  1234. package/{es/_chunks/dep-01e895e5.js.map → lib/_chunks/dep-d236783a.js.map} +1 -1
  1235. package/lib/_chunks/{dep-fb599a1a.js → dep-d49ca178.js} +2 -2
  1236. package/{esm/_chunks/dep-703e4e62.js.map → lib/_chunks/dep-d49ca178.js.map} +1 -1
  1237. package/lib/_chunks/{dep-afebaf15.js → dep-da451f3b.js} +3 -3
  1238. package/lib/_chunks/{dep-afebaf15.js.map → dep-da451f3b.js.map} +1 -1
  1239. package/lib/_chunks/{dep-11fae696.js → dep-dd4cdb4a.js} +6 -6
  1240. package/lib/_chunks/{dep-11fae696.js.map → dep-dd4cdb4a.js.map} +1 -1
  1241. package/lib/_chunks/{dep-6ac1a948.js → dep-e7da1f6b.js} +3 -3
  1242. package/lib/_chunks/{dep-6ac1a948.js.map → dep-e7da1f6b.js.map} +1 -1
  1243. package/lib/_chunks/{dep-6c32e38a.js → dep-f13e42f8.js} +7 -7
  1244. package/lib/_chunks/{dep-6c32e38a.js.map → dep-f13e42f8.js.map} +1 -1
  1245. package/lib/_chunks/{dep-c4e5ba06.js → dep-fb7fc9f7.js} +2 -2
  1246. package/lib/_chunks/{dep-c4e5ba06.js.map → dep-fb7fc9f7.js.map} +1 -1
  1247. package/lib/_chunks/{dep-294a4324.js → dep-ff62dc6c.js} +3 -3
  1248. package/lib/_chunks/{dep-294a4324.js.map → dep-ff62dc6c.js.map} +1 -1
  1249. package/lib/_common/js/common.js +1 -1
  1250. package/lib/_common/js/date-picker/utils.js +14 -14
  1251. package/lib/_common/js/global-config/default-config.js +1 -1
  1252. package/lib/_common/js/global-config/locale/en_US.js +1 -1
  1253. package/lib/_common/js/global-config/locale/zh_CN.js +1 -1
  1254. package/lib/_common/js/loading/circle-adapter.js +5 -5
  1255. package/lib/_common/js/log/index.js +1 -1
  1256. package/lib/_common/js/log/log.js +1 -1
  1257. package/lib/_common/js/log/types.js +1 -1
  1258. package/lib/_common/js/tree/tree-node-model.js +20 -20
  1259. package/lib/_common/js/tree/tree-node.js +25 -25
  1260. package/lib/_common/js/tree/tree-store.js +33 -33
  1261. package/lib/_common/js/tree/types.js +1 -1
  1262. package/lib/_common/js/upload/types.js +1 -1
  1263. package/lib/_common/js/upload/xhr.js +1 -1
  1264. package/lib/_common/js/utils/calcTextareaHeight.js +5 -5
  1265. package/lib/_common/js/utils/helper.js +5 -5
  1266. package/lib/_common/js/utils/set-style.js +1 -1
  1267. package/lib/_util/callBoth.js +1 -1
  1268. package/lib/_util/composeRefs.js +1 -1
  1269. package/lib/_util/dom.d.ts +1 -0
  1270. package/lib/_util/dom.js +12 -6
  1271. package/lib/_util/dom.js.map +1 -1
  1272. package/lib/_util/easing.js +1 -1
  1273. package/lib/_util/forwardRefWithStatics.js +1 -1
  1274. package/lib/_util/getScrollbarWidth.js +1 -1
  1275. package/lib/_util/hasScrollBar.js +1 -1
  1276. package/lib/_util/helper.js +14 -14
  1277. package/lib/_util/injectValue.js +1 -1
  1278. package/lib/_util/insertCSS.js +1 -1
  1279. package/lib/_util/isCallable.js +1 -1
  1280. package/lib/_util/linearGradient.js +2 -2
  1281. package/lib/_util/noop.js +1 -1
  1282. package/lib/_util/number.js +1 -1
  1283. package/lib/_util/renderTNode.d.ts +7 -0
  1284. package/lib/_util/renderTNode.js +20 -0
  1285. package/lib/_util/renderTNode.js.map +1 -0
  1286. package/lib/_util/setStyle.js +1 -1
  1287. package/lib/_util/useAnimation.js +19 -19
  1288. package/lib/_util/useClickOutside.js +1 -1
  1289. package/lib/_util/useCommonClassName.js +19 -19
  1290. package/lib/_util/useConfig.js +19 -19
  1291. package/lib/_util/useDefault.js +3 -3
  1292. package/lib/_util/useDefaultValue.js +5 -5
  1293. package/lib/_util/useDialogEsc.js +3 -3
  1294. package/lib/_util/useDragSorter.js +3 -3
  1295. package/lib/_util/useLayoutEffect.js +6 -6
  1296. package/lib/_util/useMutationObserver.js +8 -8
  1297. package/lib/_util/usePersistFn.js +1 -1
  1298. package/lib/_util/usePrevious.js +1 -1
  1299. package/lib/_util/useRefAndForward.js +1 -1
  1300. package/lib/_util/useRipple.js +20 -20
  1301. package/lib/_util/useSetState.js +4 -4
  1302. package/lib/_util/useSwitch.js +3 -3
  1303. package/lib/_util/useUpdateEffect.js +6 -6
  1304. package/lib/_util/useWindowSize.js +4 -4
  1305. package/lib/addon/Addon.js +20 -20
  1306. package/lib/addon/index.js +20 -20
  1307. package/lib/affix/Affix.js +22 -22
  1308. package/lib/affix/index.js +22 -22
  1309. package/lib/affix/type.js +1 -1
  1310. package/lib/alert/Alert.js +22 -22
  1311. package/lib/alert/index.js +22 -22
  1312. package/lib/alert/type.js +1 -1
  1313. package/lib/anchor/Anchor.d.ts +1 -1
  1314. package/lib/anchor/Anchor.js +34 -32
  1315. package/lib/anchor/Anchor.js.map +1 -1
  1316. package/lib/anchor/AnchorContext.js +1 -1
  1317. package/lib/anchor/AnchorItem.d.ts +3 -1
  1318. package/lib/anchor/AnchorItem.js +26 -24
  1319. package/lib/anchor/AnchorItem.js.map +1 -1
  1320. package/lib/anchor/AnchorTarget.js +26 -26
  1321. package/lib/anchor/_util/clipboard.js +1 -1
  1322. package/lib/anchor/_util/dom.js +1 -1
  1323. package/lib/anchor/index.d.ts +1 -1
  1324. package/lib/anchor/index.js +28 -28
  1325. package/lib/anchor/type.js +1 -1
  1326. package/lib/avatar/AvararGroup.js +27 -27
  1327. package/lib/avatar/Avatar.js +27 -27
  1328. package/lib/avatar/AvatarContext.js +1 -1
  1329. package/lib/avatar/index.js +27 -27
  1330. package/lib/avatar/type.js +1 -1
  1331. package/lib/badge/Badge.js +20 -20
  1332. package/lib/badge/index.js +20 -20
  1333. package/lib/badge/type.js +1 -1
  1334. package/lib/breadcrumb/Breadcrumb.js +20 -20
  1335. package/lib/breadcrumb/BreadcrumbContext.js +1 -1
  1336. package/lib/breadcrumb/BreadcrumbItem.js +20 -20
  1337. package/lib/breadcrumb/BreadcrumbProps.js +1 -1
  1338. package/lib/breadcrumb/index.js +20 -20
  1339. package/lib/breadcrumb/type.js +1 -1
  1340. package/lib/button/Button.js +23 -23
  1341. package/lib/button/index.js +23 -23
  1342. package/lib/button/type.js +1 -1
  1343. package/lib/calendar/Calendar.js +40 -40
  1344. package/lib/calendar/_util.js +1 -1
  1345. package/lib/calendar/index.js +40 -40
  1346. package/lib/calendar/type.js +1 -1
  1347. package/lib/card/type.js +1 -1
  1348. package/lib/cascader/Cascader.js +46 -46
  1349. package/lib/cascader/components/InputContent.js +29 -29
  1350. package/lib/cascader/components/Item.js +33 -33
  1351. package/lib/cascader/components/Panel.js +33 -33
  1352. package/lib/cascader/index.js +46 -46
  1353. package/lib/cascader/interface.js +25 -25
  1354. package/lib/cascader/type.d.ts +25 -8
  1355. package/lib/cascader/type.js +1 -1
  1356. package/lib/cascader/utils/cascader.js +4 -4
  1357. package/lib/cascader/utils/helper.js +2 -2
  1358. package/lib/cascader/utils/inputContent.js +16 -16
  1359. package/lib/cascader/utils/inputContent.js.map +1 -1
  1360. package/lib/cascader/utils/item.js +4 -4
  1361. package/lib/cascader/utils/panel.js +9 -9
  1362. package/lib/cascader/utils/panel.js.map +1 -1
  1363. package/lib/checkbox/Checkbox.js +29 -29
  1364. package/lib/checkbox/CheckboxGroup.js +29 -29
  1365. package/lib/checkbox/index.js +29 -29
  1366. package/lib/checkbox/type.js +1 -1
  1367. package/lib/comment/Comment.js +19 -19
  1368. package/lib/comment/index.js +19 -19
  1369. package/lib/comment/type.js +1 -1
  1370. package/lib/common/Check.js +27 -27
  1371. package/lib/common/FakeArrow.js +19 -19
  1372. package/lib/common/Portal.js +20 -20
  1373. package/lib/common.js +1 -1
  1374. package/lib/config-provider/ConfigContext.js +19 -19
  1375. package/lib/config-provider/ConfigProvider.js +19 -19
  1376. package/lib/config-provider/en_US_config.js +1 -1
  1377. package/lib/config-provider/index.js +19 -19
  1378. package/lib/config-provider/type.js +1 -1
  1379. package/lib/config-provider/zh_CN_config.js +1 -1
  1380. package/lib/date-picker/DatePicker.d.ts +0 -6
  1381. package/lib/date-picker/DatePicker.js +50 -53
  1382. package/lib/date-picker/DatePicker.js.map +1 -1
  1383. package/lib/date-picker/base/CalendarPresets.js +23 -23
  1384. package/lib/date-picker/base/Cell.js +19 -19
  1385. package/lib/date-picker/base/Header.js +23 -23
  1386. package/lib/date-picker/base/Table.js +21 -21
  1387. package/lib/date-picker/index.d.ts +0 -6
  1388. package/lib/date-picker/index.js +33 -33
  1389. package/lib/date-picker/panel/Date.js +27 -27
  1390. package/lib/date-picker/panel/DateRange.js +27 -27
  1391. package/lib/date-picker/type.js +1 -1
  1392. package/lib/dialog/Dialog.js +24 -24
  1393. package/lib/dialog/RenderDialog.js +22 -22
  1394. package/lib/dialog/index.js +24 -24
  1395. package/lib/dialog/plugin.js +24 -24
  1396. package/lib/dialog/type.js +1 -1
  1397. package/lib/divider/Divider.js +20 -20
  1398. package/lib/divider/index.js +20 -20
  1399. package/lib/divider/type.js +1 -1
  1400. package/lib/drawer/Drawer.js +23 -23
  1401. package/lib/drawer/DrawerWrapper.js +20 -20
  1402. package/lib/drawer/index.js +23 -23
  1403. package/lib/drawer/type.js +1 -1
  1404. package/lib/dropdown/Dropdown.js +38 -38
  1405. package/lib/dropdown/DropdownItem.js +28 -28
  1406. package/lib/dropdown/DropdownMenu.js +29 -29
  1407. package/lib/dropdown/index.js +38 -38
  1408. package/lib/dropdown/type.js +1 -1
  1409. package/lib/form/Form.js +78 -267
  1410. package/lib/form/Form.js.map +1 -1
  1411. package/lib/form/FormContext.js +1 -1
  1412. package/lib/form/FormItem.js +84 -111
  1413. package/lib/form/FormItem.js.map +1 -1
  1414. package/lib/form/formModel.js +25 -25
  1415. package/lib/form/hooks/useInstance.d.ts +12 -0
  1416. package/lib/form/hooks/useInstance.js +264 -0
  1417. package/lib/form/hooks/useInstance.js.map +1 -0
  1418. package/lib/form/index.js +46 -44
  1419. package/lib/form/index.js.map +1 -1
  1420. package/lib/form/type.d.ts +9 -6
  1421. package/lib/form/type.js +1 -1
  1422. package/lib/grid/Col.js +20 -20
  1423. package/lib/grid/Row.js +38 -33
  1424. package/lib/grid/Row.js.map +1 -1
  1425. package/lib/grid/index.js +23 -23
  1426. package/lib/grid/type.js +1 -1
  1427. package/lib/index-lib.js +57 -55
  1428. package/lib/index-lib.js.map +1 -1
  1429. package/lib/index.js +57 -55
  1430. package/lib/index.js.map +1 -1
  1431. package/lib/input/Input.js +29 -27
  1432. package/lib/input/Input.js.map +1 -1
  1433. package/lib/input/InputGroup.js +20 -20
  1434. package/lib/input/index.js +27 -27
  1435. package/lib/input/type.js +1 -1
  1436. package/lib/input-number/InputNumber.js +28 -28
  1437. package/lib/input-number/StepHandler.js +23 -23
  1438. package/lib/input-number/index.js +28 -28
  1439. package/lib/input-number/type.js +1 -1
  1440. package/lib/input-number/utils/numberUtils.js +1 -1
  1441. package/lib/layout/Aside.js +20 -20
  1442. package/lib/layout/Layout.js +22 -22
  1443. package/lib/layout/index.js +22 -22
  1444. package/lib/layout/type.js +1 -1
  1445. package/lib/list/List.js +23 -23
  1446. package/lib/list/ListItem.js +19 -19
  1447. package/lib/list/ListItemMeta.js +19 -19
  1448. package/lib/list/index.js +23 -23
  1449. package/lib/list/type.js +1 -1
  1450. package/lib/loading/gradient.js +22 -22
  1451. package/lib/loading/index.js +23 -23
  1452. package/lib/loading/loading.js +23 -23
  1453. package/lib/loading/plugin.js +23 -23
  1454. package/lib/loading/type.js +1 -1
  1455. package/lib/locale/LocalReceiver.js +19 -19
  1456. package/lib/locale/en_US.js +1 -1
  1457. package/lib/locale/zh_CN.js +1 -1
  1458. package/lib/menu/HeadMenu.js +23 -23
  1459. package/lib/menu/Menu.js +23 -23
  1460. package/lib/menu/MenuContext.js +1 -1
  1461. package/lib/menu/MenuGroup.js +19 -19
  1462. package/lib/menu/MenuItem.js +20 -20
  1463. package/lib/menu/SubMenu.js +22 -22
  1464. package/lib/menu/_util/cacularPaddingLeft.js +1 -1
  1465. package/lib/menu/_util/checkMenuType.js +1 -1
  1466. package/lib/menu/_util/checkSubMenuActive.js +1 -1
  1467. package/lib/menu/_util/checkSubMenuChildExpanded.js +3 -3
  1468. package/lib/menu/_util/checkSubMenuChildrenActive.js +1 -1
  1469. package/lib/menu/_util/constant.js +1 -1
  1470. package/lib/menu/_util/getSubMenuChildStyle.js +1 -1
  1471. package/lib/menu/_util/type.js +1 -1
  1472. package/lib/menu/hooks/useMenuContext.js +5 -5
  1473. package/lib/menu/index.js +23 -23
  1474. package/lib/menu/type.js +1 -1
  1475. package/lib/message/Message.js +23 -23
  1476. package/lib/message/MessageClose.js +19 -19
  1477. package/lib/message/MessageComponent.js +23 -23
  1478. package/lib/message/MessageIcon.js +23 -23
  1479. package/lib/message/const.js +1 -1
  1480. package/lib/message/index.js +23 -23
  1481. package/lib/message/type.js +1 -1
  1482. package/lib/message/useMessageClass.js +19 -19
  1483. package/lib/notification/Notification.js +23 -23
  1484. package/lib/notification/NotificationList.js +23 -23
  1485. package/lib/notification/NotificationPlugin.js +23 -23
  1486. package/lib/notification/index.js +23 -23
  1487. package/lib/notification/type.js +1 -1
  1488. package/lib/pagination/Pagination.js +39 -39
  1489. package/lib/pagination/index.js +39 -39
  1490. package/lib/pagination/type.js +1 -1
  1491. package/lib/pagination/validators.js +1 -1
  1492. package/lib/popconfirm/PopConfirm.js +26 -26
  1493. package/lib/popconfirm/PopContent.js +23 -23
  1494. package/lib/popconfirm/index.js +26 -26
  1495. package/lib/popconfirm/type.js +1 -1
  1496. package/lib/popup/Popup.js +25 -25
  1497. package/lib/popup/hooks/useTriggerProps.js +1 -1
  1498. package/lib/popup/index.js +25 -25
  1499. package/lib/popup/type.js +1 -1
  1500. package/lib/popup/utils/getTransitionParams.js +1 -1
  1501. package/lib/progress/Progress.js +20 -20
  1502. package/lib/progress/index.js +20 -20
  1503. package/lib/progress/type.js +1 -1
  1504. package/lib/radio/Radio.js +30 -30
  1505. package/lib/radio/RadioGroup.js +30 -30
  1506. package/lib/radio/index.js +30 -30
  1507. package/lib/radio/type.js +1 -1
  1508. package/lib/rate/type.js +1 -1
  1509. package/lib/select/base/Option.js +25 -25
  1510. package/lib/select/base/OptionGroup.js +19 -19
  1511. package/lib/select/base/PopupContent.js +29 -29
  1512. package/lib/select/base/Select.js +73 -77
  1513. package/lib/select/base/Select.js.map +1 -1
  1514. package/lib/select/index.js +39 -39
  1515. package/lib/select/type.js +1 -1
  1516. package/lib/select/util/helper.js +27 -27
  1517. package/lib/select-input/SelectInput.js +40 -38
  1518. package/lib/select-input/SelectInput.js.map +1 -1
  1519. package/lib/select-input/index.js +37 -37
  1520. package/lib/select-input/type.d.ts +2 -2
  1521. package/lib/select-input/type.js +1 -1
  1522. package/lib/select-input/useMultiple.js +29 -32
  1523. package/lib/select-input/useMultiple.js.map +1 -1
  1524. package/lib/select-input/useOverlayStyle.js +12 -10
  1525. package/lib/select-input/useOverlayStyle.js.map +1 -1
  1526. package/lib/select-input/useSingle.js +50 -50
  1527. package/lib/select-input/useSingle.js.map +1 -1
  1528. package/lib/skeleton/Skeleton.js +29 -29
  1529. package/lib/skeleton/index.js +29 -29
  1530. package/lib/skeleton/type.js +1 -1
  1531. package/lib/slider/Slider.js +38 -33
  1532. package/lib/slider/Slider.js.map +1 -1
  1533. package/lib/slider/SliderHandleButton.d.ts +1 -0
  1534. package/lib/slider/SliderHandleButton.js +34 -32
  1535. package/lib/slider/SliderHandleButton.js.map +1 -1
  1536. package/lib/slider/index.js +30 -30
  1537. package/lib/slider/type.d.ts +5 -3
  1538. package/lib/slider/type.js +1 -1
  1539. package/lib/slider/utils/handleNumber.js +1 -1
  1540. package/lib/steps/StepItem.js +19 -19
  1541. package/lib/steps/Steps.js +19 -19
  1542. package/lib/steps/StepsContext.js +1 -1
  1543. package/lib/steps/index.js +19 -19
  1544. package/lib/steps/type.js +1 -1
  1545. package/lib/sticky-tool/type.js +1 -1
  1546. package/lib/swiper/Swiper.js +292 -78
  1547. package/lib/swiper/Swiper.js.map +1 -1
  1548. package/lib/swiper/SwiperItem.d.ts +8 -4
  1549. package/lib/swiper/SwiperItem.js +116 -3
  1550. package/lib/swiper/SwiperItem.js.map +1 -1
  1551. package/lib/swiper/index.js +22 -21
  1552. package/lib/swiper/index.js.map +1 -1
  1553. package/lib/swiper/type.d.ts +62 -4
  1554. package/lib/swiper/type.js +1 -1
  1555. package/lib/switch/Switch.js +23 -23
  1556. package/lib/switch/index.js +23 -23
  1557. package/lib/switch/type.js +1 -1
  1558. package/lib/table/base/Table.js +39 -39
  1559. package/lib/table/base/TableAsyncLoadingBody.js +23 -23
  1560. package/lib/table/base/TableBody.js +32 -30
  1561. package/lib/table/base/TableBody.js.map +1 -1
  1562. package/lib/table/base/TableCell.js +25 -25
  1563. package/lib/table/base/TableColGroup.js +1 -1
  1564. package/lib/table/base/TableContext.js +1 -1
  1565. package/lib/table/base/TableEmptyBody.js +21 -21
  1566. package/lib/table/base/TableFooter.js +1 -1
  1567. package/lib/table/base/TableHeader.js +27 -27
  1568. package/lib/table/base/TableLoadingBody.js +5 -5
  1569. package/lib/table/base/TableRow.js +29 -29
  1570. package/lib/table/enhanced/Table.js +41 -41
  1571. package/lib/table/enhanced/TableContext.js +1 -1
  1572. package/lib/table/enhanced/useTree.js +26 -26
  1573. package/lib/table/hooks/useColumns.js +4 -4
  1574. package/lib/table/index.js +41 -41
  1575. package/lib/table/primary/SorterButton.js +26 -26
  1576. package/lib/table/primary/Table.js +41 -41
  1577. package/lib/table/primary/expand-box.js +19 -19
  1578. package/lib/table/primary/useChange.js +2 -2
  1579. package/lib/table/primary/useExpand.js +26 -26
  1580. package/lib/table/primary/useFilter.js +33 -33
  1581. package/lib/table/primary/useFilterButton.js +33 -33
  1582. package/lib/table/primary/useSelect.js +33 -33
  1583. package/lib/table/primary/useSorter.js +30 -30
  1584. package/lib/table/type.js +1 -1
  1585. package/lib/table/util/getRowKeyFromRowKey.js +1 -1
  1586. package/lib/table/util/index.js +1 -1
  1587. package/lib/tabs/TabBar.js +21 -21
  1588. package/lib/tabs/TabNav.js +22 -22
  1589. package/lib/tabs/TabNavItem.js +20 -20
  1590. package/lib/tabs/TabPanel.js +19 -19
  1591. package/lib/tabs/Tabs.js +22 -22
  1592. package/lib/tabs/index.js +22 -22
  1593. package/lib/tabs/type.js +1 -1
  1594. package/lib/tabs/useTabClass.js +19 -19
  1595. package/lib/tag/CheckTag.js +22 -22
  1596. package/lib/tag/Tag.js +22 -22
  1597. package/lib/tag/index.js +22 -22
  1598. package/lib/tag/type.js +1 -1
  1599. package/lib/tag-input/TagInput.js +32 -29
  1600. package/lib/tag-input/TagInput.js.map +1 -1
  1601. package/lib/tag-input/index.js +28 -28
  1602. package/lib/tag-input/type.js +1 -1
  1603. package/lib/tag-input/useHover.js +3 -3
  1604. package/lib/tag-input/useTagList.js +23 -23
  1605. package/lib/tag-input/useTagScroll.js +3 -3
  1606. package/lib/textarea/Textarea.js +27 -27
  1607. package/lib/textarea/index.js +27 -27
  1608. package/lib/textarea/type.js +1 -1
  1609. package/lib/time-picker/InputItems.js +30 -30
  1610. package/lib/time-picker/TimePicker.js +34 -34
  1611. package/lib/time-picker/TimeRangePicker.js +34 -34
  1612. package/lib/time-picker/consts.js +21 -21
  1613. package/lib/time-picker/index.js +34 -34
  1614. package/lib/time-picker/interfaces.js +1 -1
  1615. package/lib/time-picker/panel/SinglePanel.js +30 -30
  1616. package/lib/time-picker/panel/TimePickerPanel.js +32 -32
  1617. package/lib/time-picker/panel/TimePickerRangePanel.js +32 -32
  1618. package/lib/time-picker/type.js +1 -1
  1619. package/lib/tooltip/Tooltip.js +26 -26
  1620. package/lib/tooltip/index.js +26 -26
  1621. package/lib/tooltip/type.js +1 -1
  1622. package/lib/transfer/Transfer.js +44 -44
  1623. package/lib/transfer/TransferList.js +42 -42
  1624. package/lib/transfer/index.js +44 -44
  1625. package/lib/transfer/type.js +1 -1
  1626. package/lib/transfer/utils.js +16 -16
  1627. package/lib/tree/Tree.js +45 -45
  1628. package/lib/tree/TreeItem.js +30 -30
  1629. package/lib/tree/index.js +45 -45
  1630. package/lib/tree/interface.js +1 -1
  1631. package/lib/tree/type.js +1 -1
  1632. package/lib/tree/useControllable.js +3 -3
  1633. package/lib/tree/useStore.js +39 -39
  1634. package/lib/tree/useTreeConfig.js +21 -21
  1635. package/lib/tree-select/SelectArrow.d.ts +8 -0
  1636. package/lib/tree-select/{TreeSelectArrow.js → SelectArrow.js} +22 -22
  1637. package/lib/tree-select/SelectArrow.js.map +1 -0
  1638. package/lib/tree-select/TreeSelect.js +128 -110
  1639. package/lib/tree-select/TreeSelect.js.map +1 -1
  1640. package/lib/tree-select/index.js +48 -48
  1641. package/lib/tree-select/type.d.ts +62 -6
  1642. package/lib/tree-select/type.js +1 -1
  1643. package/lib/tree-select/useTreeSelectLocale.js +21 -21
  1644. package/lib/tree-select/useTreeSelectPassthoughProps.js +20 -20
  1645. package/lib/tree-select/useTreeSelectPassthoughProps.js.map +1 -1
  1646. package/lib/tree-select/useTreeSelectUtils.d.ts +1 -1
  1647. package/lib/tree-select/useTreeSelectUtils.js +36 -36
  1648. package/lib/tree-select/useTreeSelectUtils.js.map +1 -1
  1649. package/lib/upload/boolean-render.js +1 -1
  1650. package/lib/upload/dragger.js +23 -23
  1651. package/lib/upload/hooks/useDefaultValue.js +6 -6
  1652. package/lib/upload/hooks/useSizeLimit.js +21 -21
  1653. package/lib/upload/index.js +38 -38
  1654. package/lib/upload/themes/dragger-progress.js +23 -23
  1655. package/lib/upload/themes/flow-list/file-list.js +23 -23
  1656. package/lib/upload/themes/flow-list/img-list.js +23 -23
  1657. package/lib/upload/themes/flow-list/index.js +23 -23
  1658. package/lib/upload/themes/image-card.js +24 -24
  1659. package/lib/upload/themes/single-file.js +23 -23
  1660. package/lib/upload/tips.js +19 -19
  1661. package/lib/upload/type.js +1 -1
  1662. package/lib/upload/types.js +1 -1
  1663. package/lib/upload/upload-trigger.js +23 -23
  1664. package/lib/upload/upload.js +38 -38
  1665. package/lib/upload/util.js +1 -1
  1666. package/package.json +3 -3
  1667. package/es/_chunks/dep-54ba75b6.js.map +0 -1
  1668. package/es/_chunks/dep-a613ac9b.js +0 -8
  1669. package/es/_chunks/dep-a613ac9b.js.map +0 -1
  1670. package/es/tree-select/TreeSelectArrow.d.ts +0 -8
  1671. package/es/tree-select/TreeSelectArrow.js +0 -53
  1672. package/es/tree-select/TreeSelectArrow.js.map +0 -1
  1673. package/esm/_chunks/dep-54ba75b6.js.map +0 -1
  1674. package/esm/_chunks/dep-a613ac9b.js +0 -8
  1675. package/esm/_chunks/dep-a613ac9b.js.map +0 -1
  1676. package/esm/tree-select/TreeSelectArrow.d.ts +0 -8
  1677. package/esm/tree-select/TreeSelectArrow.js +0 -53
  1678. package/esm/tree-select/TreeSelectArrow.js.map +0 -1
  1679. package/lib/tree-select/TreeSelectArrow.d.ts +0 -8
  1680. package/lib/tree-select/TreeSelectArrow.js.map +0 -1
package/dist/tdesign.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v0.27.2
2
+ * tdesign v0.28.0
3
3
  * (c) 2022 tdesign
4
4
  * @license MIT
5
5
  */
@@ -3524,6 +3524,11 @@
3524
3524
 
3525
3525
  return document.body;
3526
3526
  };
3527
+ var getCssVarsValue = function getCssVarsValue(name, element) {
3528
+ if (!canUseDocument) return;
3529
+ var el = element || document.documentElement;
3530
+ return getComputedStyle(el).getPropertyValue(name);
3531
+ };
3527
3532
 
3528
3533
  var _excluded$s = ["align", "gutter", "justify", "tag", "style", "className", "children"];
3529
3534
 
@@ -3532,20 +3537,25 @@
3532
3537
  function _objectSpread$28(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$28(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$28(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3533
3538
 
3534
3539
  var calcSize = function calcSize(width) {
3540
+ var smWidth = getCssVarsValue("--td-screen-sm") || 768;
3541
+ var mdWidth = getCssVarsValue("--td-screen-md") || 992;
3542
+ var lgWidth = getCssVarsValue("--td-screen-lg") || 1200;
3543
+ var xlWidth = getCssVarsValue("--td-screen-xl") || 1400;
3544
+ var xxlWidth = getCssVarsValue("--td-screen-xxl") || 1880;
3535
3545
  var size = "xs";
3536
3546
 
3537
- if (width < 768) {
3538
- size = "xs";
3539
- } else if (width >= 768 && width < 992) {
3540
- size = "sm";
3541
- } else if (width >= 992 && width < 1200) {
3542
- size = "md";
3543
- } else if (width >= 1200 && width < 1400) {
3544
- size = "lg";
3545
- } else if (width >= 1400 && width < 1880) {
3547
+ if (width >= xxlWidth) {
3548
+ size = "xxl";
3549
+ } else if (width >= xlWidth) {
3546
3550
  size = "xl";
3551
+ } else if (width >= lgWidth) {
3552
+ size = "lg";
3553
+ } else if (width >= mdWidth) {
3554
+ size = "md";
3555
+ } else if (width >= smWidth) {
3556
+ size = "sm";
3547
3557
  } else {
3548
- size = "xxl";
3558
+ size = "xs";
3549
3559
  }
3550
3560
 
3551
3561
  return size;
@@ -13131,6 +13141,7 @@
13131
13141
  }
13132
13142
 
13133
13143
  function handleFocus(e) {
13144
+ if (readonly) return;
13134
13145
  var value2 = e.currentTarget.value;
13135
13146
  onFocus === null || onFocus === void 0 ? void 0 : onFocus(value2, {
13136
13147
  e: e
@@ -13139,6 +13150,7 @@
13139
13150
  }
13140
13151
 
13141
13152
  function handleBlur(e) {
13153
+ if (readonly) return;
13142
13154
  var value2 = e.currentTarget.value;
13143
13155
  format && onChange(format(value2), {
13144
13156
  e: e
@@ -15912,6 +15924,8 @@
15912
15924
  }
15913
15925
 
15914
15926
  function useSingle(props) {
15927
+ var _props$defaultInputVa;
15928
+
15915
15929
  var value = props.value,
15916
15930
  keys = props.keys,
15917
15931
  loading = props.loading,
@@ -15922,10 +15936,10 @@
15922
15936
 
15923
15937
  var inputRef = React.useRef();
15924
15938
 
15925
- var _useState = React.useState(""),
15926
- _useState2 = _slicedToArray(_useState, 2),
15927
- inputValue = _useState2[0],
15928
- setInputValue = _useState2[1];
15939
+ var _useDefault = useDefault(props.inputValue, (_props$defaultInputVa = props.defaultInputValue) !== null && _props$defaultInputVa !== void 0 ? _props$defaultInputVa : "", props.onInputChange),
15940
+ _useDefault2 = _slicedToArray(_useDefault, 2),
15941
+ inputValue = _useDefault2[0],
15942
+ setInputValue = _useDefault2[1];
15929
15943
 
15930
15944
  var showLoading = React.useMemo(function () {
15931
15945
  return !disabled && loading;
@@ -15943,34 +15957,30 @@
15943
15957
 
15944
15958
  context === null || context === void 0 ? void 0 : (_context$e = context.e) === null || _context$e === void 0 ? void 0 : _context$e.stopPropagation();
15945
15959
  (_props$onClear = props.onClear) === null || _props$onClear === void 0 ? void 0 : _props$onClear.call(props, context);
15946
- setInputValue("");
15960
+ setInputValue("", {
15961
+ trigger: "clear"
15962
+ });
15947
15963
  };
15948
15964
 
15949
15965
  var onInnerInputChange = function onInnerInputChange(value2, context) {
15950
15966
  if (props.allowInput) {
15951
- var _props$onInputChange;
15952
-
15953
- setInputValue(value2);
15954
- (_props$onInputChange = props.onInputChange) === null || _props$onInputChange === void 0 ? void 0 : _props$onInputChange.call(props, value2, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
15967
+ setInputValue(value2, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
15955
15968
  trigger: "input"
15956
15969
  }));
15957
15970
  }
15958
15971
  };
15959
15972
 
15960
- React.useEffect(function () {
15961
- setInputValue(getInputValue(value, keys));
15962
- }, [keys, value]);
15963
-
15964
15973
  var renderSelectSingle = function renderSelectSingle(popupVisible) {
15965
15974
  var _props$inputProps;
15966
15975
 
15967
15976
  var singleValueDisplay = !props.multiple ? props.valueDisplay : null;
15977
+ var displayedValue = popupVisible && props.allowInput ? inputValue : getInputValue(value, keys);
15968
15978
  return /* @__PURE__ */React__default["default"].createElement(Input, _objectSpread$1d(_objectSpread$1d(_objectSpread$1d({
15969
15979
  ref: inputRef
15970
15980
  }, commonInputProps), {}, {
15971
15981
  autoWidth: props.borderless || props.autoWidth,
15972
15982
  placeholder: singleValueDisplay ? "" : props.placeholder,
15973
- value: singleValueDisplay ? void 0 : inputValue,
15983
+ value: singleValueDisplay ? void 0 : displayedValue,
15974
15984
  label: /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, props.label, singleValueDisplay),
15975
15985
  onChange: onInnerInputChange,
15976
15986
  readonly: !props.allowInput,
@@ -15981,7 +15991,6 @@
15981
15991
  (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props, value, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
15982
15992
  inputValue: val
15983
15993
  }));
15984
- setInputValue(getInputValue(value, keys));
15985
15994
  },
15986
15995
  onFocus: function onFocus(val, context) {
15987
15996
  var _props$onFocus;
@@ -15989,6 +15998,9 @@
15989
15998
  (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 ? void 0 : _props$onFocus.call(props, value, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
15990
15999
  inputValue: val
15991
16000
  }));
16001
+ !popupVisible && setInputValue(getInputValue(value, keys), _objectSpread$1d(_objectSpread$1d({}, context), {}, {
16002
+ trigger: "input"
16003
+ }));
15992
16004
  }
15993
16005
  }, props.inputProps), {}, {
15994
16006
  className: classNames$1((_props$inputProps = props.inputProps) === null || _props$inputProps === void 0 ? void 0 : _props$inputProps.className, _defineProperty$2({}, "".concat(classPrefix, "-input--focused"), popupVisible))
@@ -26020,6 +26032,8 @@
26020
26032
 
26021
26033
  function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$19(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$19(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26022
26034
  var TagInput$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
26035
+ var _ref;
26036
+
26023
26037
  var _useConfig = useConfig$1(),
26024
26038
  prefix = _useConfig.classPrefix;
26025
26039
 
@@ -26080,9 +26094,9 @@
26080
26094
  renderLabel = _useTagList.renderLabel;
26081
26095
 
26082
26096
  var NAME_CLASS = "".concat(prefix, "-tag-input");
26097
+ var WITH_SUFFIX_ICON_CLASS = "".concat(prefix, "-tag-input__with-suffix-icon");
26083
26098
  var CLEAR_CLASS = "".concat(prefix, "-tag-input__suffix-clear");
26084
26099
  var BREAK_LINE_CLASS = "".concat(prefix, "-tag-input--break-line");
26085
- var classes = [NAME_CLASS, _defineProperty$2({}, BREAK_LINE_CLASS, excessTagsDisplayType === "break-line"), props.className];
26086
26100
  var tagInputPlaceholder = !(tagValue !== null && tagValue !== void 0 && tagValue.length) ? placeholder : "";
26087
26101
  var showClearIcon = Boolean(!readonly && !disabled && clearable && isHover && (tagValue === null || tagValue === void 0 ? void 0 : tagValue.length));
26088
26102
  React.useImperativeHandle(ref, function () {
@@ -26126,6 +26140,7 @@
26126
26140
  });
26127
26141
  }
26128
26142
  }) : valueDisplay;
26143
+ var classes = [NAME_CLASS, (_ref = {}, _defineProperty$2(_ref, BREAK_LINE_CLASS, excessTagsDisplayType === "break-line"), _defineProperty$2(_ref, WITH_SUFFIX_ICON_CLASS, !!suffixIconNode), _ref), props.className];
26129
26144
  return /* @__PURE__ */React__default["default"].createElement(Input, _objectSpread$19(_objectSpread$19({
26130
26145
  ref: tagInputRef
26131
26146
  }, inputProps), {}, {
@@ -26237,7 +26252,7 @@
26237
26252
  return /* @__PURE__ */React__default["default"].createElement(TagInput, _objectSpread$18(_objectSpread$18(_objectSpread$18({
26238
26253
  ref: tagInputRef
26239
26254
  }, p.commonInputProps), {}, {
26240
- readonly: !props.allowInput,
26255
+ readonly: !props.allowInput || props.readonly,
26241
26256
  autoWidth: props.borderless || props.autoWidth,
26242
26257
  minCollapsedNum: props.minCollapsedNum,
26243
26258
  collapsedItems: props.collapsedItems,
@@ -26262,9 +26277,6 @@
26262
26277
  (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props, props.value, _objectSpread$18(_objectSpread$18({}, context), {}, {
26263
26278
  tagInputValue: val
26264
26279
  }));
26265
- setTInputValue("", _objectSpread$18(_objectSpread$18({}, context), {}, {
26266
- trigger: "blur"
26267
- }));
26268
26280
  },
26269
26281
  onFocus: function onFocus(val, context) {
26270
26282
  var _props$onFocus;
@@ -26292,7 +26304,8 @@
26292
26304
  var MAX_POPUP_WIDTH = 1e3;
26293
26305
  function useOverlayStyle(props) {
26294
26306
  var popupProps = props.popupProps,
26295
- borderless = props.borderless;
26307
+ borderless = props.borderless,
26308
+ autoWidth = props.autoWidth;
26296
26309
 
26297
26310
  var _useState = React.useState(false),
26298
26311
  _useState2 = _slicedToArray(_useState, 2),
@@ -26317,6 +26330,7 @@
26317
26330
  var onInnerPopupVisibleChange = function onInnerPopupVisibleChange(visible, context) {
26318
26331
  var _props$onPopupVisible;
26319
26332
 
26333
+ if (props.readonly) return;
26320
26334
  var newVisible = context.trigger === "trigger-element-click" ? true : visible;
26321
26335
  setInnerPopupVisible(newVisible);
26322
26336
  (_props$onPopupVisible = props.onPopupVisibleChange) === null || _props$onPopupVisible === void 0 ? void 0 : _props$onPopupVisible.call(props, newVisible, context);
@@ -26328,7 +26342,7 @@
26328
26342
 
26329
26343
  if (isFunction_1(overlayStyle) || isObject_1(overlayStyle) && overlayStyle.width) {
26330
26344
  result = overlayStyle;
26331
- } else if (!borderless) {
26345
+ } else if (!borderless && !autoWidth) {
26332
26346
  result = macthWidthFunc;
26333
26347
  }
26334
26348
 
@@ -26357,7 +26371,8 @@
26357
26371
  value = props.value,
26358
26372
  popupVisible = props.popupVisible,
26359
26373
  popupProps = props.popupProps,
26360
- borderless = props.borderless;
26374
+ borderless = props.borderless,
26375
+ disabled = props.disabled;
26361
26376
 
26362
26377
  var _useOverlayStyle = useOverlayStyle(props),
26363
26378
  tOverlayStyle = _useOverlayStyle.tOverlayStyle,
@@ -26391,6 +26406,7 @@
26391
26406
  hideEmptyPopup: true,
26392
26407
  onVisibleChange: onInnerPopupVisibleChange
26393
26408
  }, visibleProps), popupProps), {}, {
26409
+ disabled: disabled,
26394
26410
  overlayStyle: tOverlayStyle
26395
26411
  }), multiple ? renderSelectMultiple({
26396
26412
  commonInputProps: commonInputProps,
@@ -26601,8 +26617,6 @@
26601
26617
  onVisibleChange = props.onVisibleChange,
26602
26618
  _props$showArrow = props.showArrow,
26603
26619
  showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
26604
- inputValue = props.inputValue,
26605
- defaultInputValue = props.defaultInputValue,
26606
26620
  inputProps = props.inputProps,
26607
26621
  panelBottomContent = props.panelBottomContent,
26608
26622
  panelTopContent = props.panelTopContent,
@@ -26625,30 +26639,30 @@
26625
26639
  showPopup = _useState2[0],
26626
26640
  setShowPopup = _useState2[1];
26627
26641
 
26628
- var _useState3 = React.useState(void 0),
26642
+ var _useDefault3 = useDefault(props.inputValue, props.defaultInputValue, props.onInputChange),
26643
+ _useDefault4 = _slicedToArray(_useDefault3, 2),
26644
+ inputValue = _useDefault4[0],
26645
+ onInputChange = _useDefault4[1];
26646
+
26647
+ var _useState3 = React.useState([]),
26629
26648
  _useState4 = _slicedToArray(_useState3, 2),
26630
- inputVal = _useState4[0],
26631
- setInputVal = _useState4[1];
26649
+ currentOptions = _useState4[0],
26650
+ setCurrentOptions = _useState4[1];
26632
26651
 
26633
26652
  var _useState5 = React.useState([]),
26634
26653
  _useState6 = _slicedToArray(_useState5, 2),
26635
- currentOptions = _useState6[0],
26636
- setCurrentOptions = _useState6[1];
26654
+ tmpPropOptions = _useState6[0],
26655
+ setTmpPropOptions = _useState6[1];
26637
26656
 
26638
- var _useState7 = React.useState([]),
26657
+ var _useState7 = React.useState({}),
26639
26658
  _useState8 = _slicedToArray(_useState7, 2),
26640
- tmpPropOptions = _useState8[0],
26641
- setTmpPropOptions = _useState8[1];
26659
+ valueToOption = _useState8[0],
26660
+ setValueToOption = _useState8[1];
26642
26661
 
26643
- var _useState9 = React.useState({}),
26662
+ var _useState9 = React.useState([]),
26644
26663
  _useState10 = _slicedToArray(_useState9, 2),
26645
- valueToOption = _useState10[0],
26646
- setValueToOption = _useState10[1];
26647
-
26648
- var _useState11 = React.useState([]),
26649
- _useState12 = _slicedToArray(_useState11, 2),
26650
- selectedOptions = _useState12[0],
26651
- setSelectedOptions = _useState12[1];
26664
+ selectedOptions = _useState10[0],
26665
+ setSelectedOptions = _useState10[1];
26652
26666
 
26653
26667
  var selectedLabel = React.useMemo(function () {
26654
26668
  if (multiple) {
@@ -26715,10 +26729,7 @@
26715
26729
  if (disabled) return;
26716
26730
  setShowPopup(visible);
26717
26731
  onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(visible);
26718
-
26719
- if (!visible && !multiple && filterable) {
26720
- setInputVal(selectedLabel);
26721
- }
26732
+ visible && onInputChange("");
26722
26733
  };
26723
26734
 
26724
26735
  var onTagChange = function onTagChange(currentTags, context) {
@@ -26758,11 +26769,11 @@
26758
26769
  }
26759
26770
  };
26760
26771
 
26761
- var handleChange = function handleChange(value2, _ref3) {
26762
- var label = _ref3.label;
26763
-
26764
- if (filterable) {
26765
- setInputVal(!multiple || reserveKeyword && multiple ? label : "");
26772
+ var handleChange = function handleChange(value2) {
26773
+ if (multiple) {
26774
+ !reserveKeyword && onInputChange("", {
26775
+ trigger: "clear"
26776
+ });
26766
26777
  }
26767
26778
 
26768
26779
  if (creatable && isFunction_1(onCreate)) {
@@ -26773,7 +26784,7 @@
26773
26784
  }
26774
26785
  }
26775
26786
 
26776
- onChange ? onChange(value2, null) : setInputVal(label);
26787
+ onChange === null || onChange === void 0 ? void 0 : onChange(value2, null);
26777
26788
  };
26778
26789
 
26779
26790
  var handleFilter = function handleFilter(value2) {
@@ -26808,14 +26819,12 @@
26808
26819
  };
26809
26820
 
26810
26821
  var handleInputChange = function handleInputChange(value2) {
26811
- setInputVal(value2);
26822
+ onInputChange(value2);
26812
26823
 
26813
26824
  if (isFunction_1(onSearch)) {
26814
26825
  onSearch(value2);
26815
26826
  return;
26816
26827
  }
26817
-
26818
- handleFilter(value2);
26819
26828
  };
26820
26829
 
26821
26830
  var onClearValue = function onClearValue(context) {
@@ -26827,10 +26836,14 @@
26827
26836
  onChange(null, context);
26828
26837
  }
26829
26838
 
26830
- setInputVal(void 0);
26839
+ onInputChange(void 0);
26831
26840
  onClear(context);
26832
26841
  };
26833
26842
 
26843
+ React.useEffect(function () {
26844
+ handleFilter(String(inputValue));
26845
+ }, [inputValue]);
26846
+
26834
26847
  var renderSuffixIcon = function renderSuffixIcon() {
26835
26848
  if (loading) {
26836
26849
  return /* @__PURE__ */React__default["default"].createElement(Loading, {
@@ -26877,8 +26890,8 @@
26877
26890
  }
26878
26891
 
26879
26892
  if (multiple) {
26880
- return function (_ref4) {
26881
- var onClose = _ref4.onClose;
26893
+ return function (_ref3) {
26894
+ var onClose = _ref3.onClose;
26882
26895
  return valueDisplay({
26883
26896
  value: selectedLabel,
26884
26897
  onClose: onClose
@@ -26911,7 +26924,7 @@
26911
26924
  readonly: readonly,
26912
26925
  allowInput: multiple || filterable,
26913
26926
  multiple: multiple,
26914
- value: isString_1(inputVal) && !multiple ? inputVal : selectedLabel,
26927
+ value: selectedLabel,
26915
26928
  valueDisplay: renderValueDisplay(),
26916
26929
  clearable: clearable,
26917
26930
  disabled: disabled,
@@ -26919,9 +26932,8 @@
26919
26932
  label: prefixIcon,
26920
26933
  suffixIcon: renderSuffixIcon(),
26921
26934
  panel: renderContent(),
26922
- placeholder: placeholder || t(local.placeholder),
26923
- inputValue: inputValue,
26924
- defaultInputValue: defaultInputValue,
26935
+ placeholder: !multiple && showPopup && selectedLabel ? selectedLabel : placeholder || t(local.placeholder),
26936
+ inputValue: showPopup ? inputValue : "",
26925
26937
  tagInputProps: _objectSpread$14({}, tagInputProps),
26926
26938
  tagProps: tagProps,
26927
26939
  inputProps: _objectSpread$14({
@@ -28047,7 +28059,9 @@
28047
28059
  getRowEventsRef.current = getRowEvents;
28048
28060
  var rows = React.useMemo(function () {
28049
28061
  return flattenVisibleData.map(function (row, index) {
28050
- var rowKeyValue = get_1(row, rowKey) || index;
28062
+ var _get;
28063
+
28064
+ var rowKeyValue = (_get = get_1(row, rowKey)) !== null && _get !== void 0 ? _get : index;
28051
28065
  var rowEvents = getRowEventsRef.current(row, index);
28052
28066
  return /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, {
28053
28067
  key: rowKeyValue
@@ -36839,7 +36853,7 @@
36839
36853
  function ownKeys$w(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
36840
36854
 
36841
36855
  function _objectSpread$w(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
36842
- var useTreeSelectUtils = function useTreeSelectUtils(_ref, $tree) {
36856
+ var useTreeSelectUtils = function useTreeSelectUtils(_ref, treeRef) {
36843
36857
  var data = _ref.data,
36844
36858
  treeProps = _ref.treeProps,
36845
36859
  valueType = _ref.valueType;
@@ -36851,8 +36865,8 @@
36851
36865
  var getNodeItem = usePersistFn(function (value) {
36852
36866
  var _defaultStore$getNode;
36853
36867
 
36854
- if ($tree.current) {
36855
- return $tree.current.getItem(value);
36868
+ if (treeRef.current) {
36869
+ return treeRef.current.getItem(value);
36856
36870
  }
36857
36871
 
36858
36872
  return (_defaultStore$getNode = defaultStore.getNode(value)) === null || _defaultStore$getNode === void 0 ? void 0 : _defaultStore$getNode.getModel();
@@ -36883,7 +36897,7 @@
36883
36897
  };
36884
36898
  };
36885
36899
 
36886
- var TreeSelectArrow = function TreeSelectArrow(_ref) {
36900
+ var SelectArrow = function SelectArrow(_ref) {
36887
36901
  var _classNames;
36888
36902
 
36889
36903
  var isActive = _ref.isActive,
@@ -36900,7 +36914,7 @@
36900
36914
  });
36901
36915
  };
36902
36916
 
36903
- var SelectInputPassthroughPropsKey = ["multiple", "style", "disabled", "minCollapsedNum", "popupProps", "clearable", "loading"];
36917
+ var SelectInputPassthroughPropsKey = ["multiple", "style", "disabled", "minCollapsedNum", "popupProps", "clearable", "loading", "autoWidth", "borderless", "readonly"];
36904
36918
  var useTreeSelectPassThroughProps = function useTreeSelectPassThroughProps(props) {
36905
36919
  return pick_1(props, SelectInputPassthroughPropsKey);
36906
36920
  };
@@ -36964,6 +36978,10 @@
36964
36978
  classPrefix = _useConfig.classPrefix;
36965
36979
 
36966
36980
  var className = props.className,
36981
+ inputValue = props.inputValue,
36982
+ defaultInputValue = props.defaultInputValue,
36983
+ onInputChange = props.onInputChange,
36984
+ readonly = props.readonly,
36967
36985
  disabled = props.disabled,
36968
36986
  multiple = props.multiple,
36969
36987
  prefixIcon = props.prefixIcon,
@@ -36979,6 +36997,7 @@
36979
36997
  onClear = props.onClear,
36980
36998
  valueDisplay = props.valueDisplay,
36981
36999
  treeProps = props.treeProps,
37000
+ inputProps = props.inputProps,
36982
37001
  onBlur = props.onBlur,
36983
37002
  onFocus = props.onFocus,
36984
37003
  onSearch = props.onSearch,
@@ -36990,90 +37009,95 @@
36990
37009
  value = _useDefault2[0],
36991
37010
  onChange = _useDefault2[1];
36992
37011
 
37012
+ var _useDefault3 = useDefault(props.popupVisible, false, props.onPopupVisibleChange),
37013
+ _useDefault4 = _slicedToArray(_useDefault3, 2),
37014
+ popupVisible = _useDefault4[0],
37015
+ setPopupVisble = _useDefault4[1];
37016
+
36993
37017
  var _useSwitch = useSwitch(),
36994
37018
  _useSwitch2 = _slicedToArray(_useSwitch, 2),
36995
- popupVisible = _useSwitch2[0],
36996
- popupAction = _useSwitch2[1];
37019
+ hover = _useSwitch2[0],
37020
+ hoverAction = _useSwitch2[1];
36997
37021
 
36998
- var _useSwitch3 = useSwitch(),
36999
- _useSwitch4 = _slicedToArray(_useSwitch3, 2),
37000
- hover = _useSwitch4[0],
37001
- hoverAction = _useSwitch4[1];
37002
-
37003
- var _useState = React.useState(""),
37004
- _useState2 = _slicedToArray(_useState, 2),
37005
- filterInput = _useState2[0],
37006
- setFilterInput = _useState2[1];
37022
+ var _useDefault5 = useDefault(inputValue, defaultInputValue, onInputChange),
37023
+ _useDefault6 = _slicedToArray(_useDefault5, 2),
37024
+ filterInput = _useDefault6[0],
37025
+ setFilterInput = _useDefault6[1];
37007
37026
 
37008
- var $tree = React.useRef();
37027
+ var treeRef = React.useRef();
37009
37028
 
37010
- var _useTreeSelectUtils = useTreeSelectUtils(props, $tree),
37029
+ var _useTreeSelectUtils = useTreeSelectUtils(props, treeRef),
37011
37030
  normalizeValue = _useTreeSelectUtils.normalizeValue,
37012
37031
  formatValue = _useTreeSelectUtils.formatValue,
37013
37032
  getNodeItem = _useTreeSelectUtils.getNodeItem;
37014
37033
 
37015
- var filterable = React.useMemo(function () {
37016
- return rawFilterable || !!props.filter;
37017
- }, [props.filter, rawFilterable]);
37034
+ var filterable = rawFilterable || !!props.filter;
37018
37035
  var normalizedValue = React.useMemo(function () {
37019
- return (multiple ? value : [value]).map(normalizeValue).filter(function (_ref) {
37020
- var value2 = _ref.value;
37021
- return value2 !== null && value2 !== void 0 ? value2 : false;
37022
- });
37036
+ return (multiple ? value : [value]).reduce(function (result, value2) {
37037
+ var normalized = normalizeValue(value2);
37038
+ normalized.value && result.push(normalized);
37039
+ return result;
37040
+ }, []);
37023
37041
  }, [multiple, normalizeValue, value]);
37024
- var filterText = React.useMemo(function () {
37025
- return String(filterInput);
37026
- }, [filterInput]);
37027
- var inputValue = React.useMemo(function () {
37042
+ var filterText = String(filterInput);
37043
+ var internalInputValue = React.useMemo(function () {
37028
37044
  if (multiple) return normalizedValue;
37029
37045
  return filterable && popupVisible ? filterText : normalizedValue[0];
37030
37046
  }, [multiple, normalizedValue, filterable, popupVisible, filterText]);
37031
37047
  var inputPlaceholader = React.useMemo(function () {
37032
37048
  if (filterable && !multiple && popupVisible && normalizedValue.length) {
37033
- return typeof normalizedValue[0].label === "string" ? normalizedValue[0].label : normalizedValue[0].value;
37049
+ return typeof normalizedValue[0].label === "string" ? normalizedValue[0].label : String(normalizedValue[0].value);
37034
37050
  }
37035
37051
 
37036
37052
  return placeholder;
37037
37053
  }, [filterable, multiple, popupVisible, normalizedValue, placeholder]);
37038
- var showLoading = React.useMemo(function () {
37039
- return !disabled && loading;
37040
- }, [loading, disabled]);
37041
- var showFakePlaceholder = React.useMemo(function () {
37042
- return multiple && !filterable && !normalizedValue.length;
37043
- }, [filterable, multiple, normalizedValue]);
37054
+ var showLoading = !disabled && loading;
37055
+ var showFakePlaceholder = multiple && !filterable && !normalizedValue.length;
37044
37056
  var handleFilter = React.useCallback(function (node) {
37045
37057
  return filterable ? filter(filterText, node) : true;
37046
37058
  }, [filter, filterText, filterable]);
37047
37059
  var handleSingleChange = usePersistFn(function (value2, context) {
37048
37060
  var $value = value2.length ? value2[0] : null;
37049
- onChange(formatValue($value, context.node.label), context);
37050
- popupAction.off();
37061
+ onChange(formatValue($value, context.node.label), _objectSpread$v(_objectSpread$v({}, context), {}, {
37062
+ trigger: $value === null ? "uncheck" : "check"
37063
+ }));
37064
+ setPopupVisble(false, {
37065
+ trigger: "trigger-element-click"
37066
+ });
37051
37067
  });
37052
37068
  var handleMultiChange = usePersistFn(function (value2, context) {
37053
37069
  (max === 0 || value2.length <= max) && onChange(value2.map(function (value3) {
37054
37070
  var _getNodeItem;
37055
37071
 
37056
37072
  return formatValue(value3, (_getNodeItem = getNodeItem(value3)) === null || _getNodeItem === void 0 ? void 0 : _getNodeItem.label);
37057
- }), context);
37073
+ }), _objectSpread$v(_objectSpread$v({}, context), {}, {
37074
+ trigger: value2.length > normalizedValue.length ? "check" : "uncheck"
37075
+ }));
37058
37076
  });
37059
37077
  var handleClear = usePersistFn(function (ctx) {
37060
37078
  ctx.e.stopPropagation();
37061
37079
  onChange(multiple ? [] : formatValue(null), {
37062
- node: null
37080
+ node: null,
37081
+ trigger: "clear",
37082
+ e: ctx.e
37063
37083
  });
37064
37084
  onClear === null || onClear === void 0 ? void 0 : onClear(ctx);
37065
- popupAction.off();
37085
+ setPopupVisble(false, {
37086
+ trigger: "trigger-element-click"
37087
+ });
37066
37088
  });
37067
37089
  var handleRemove = usePersistFn(function (index, e) {
37068
37090
  var node = getNodeItem(normalizedValue[index].value);
37069
37091
  onChange(normalizedValue.filter(function (value2, i) {
37070
37092
  return i !== index;
37071
- }).map(function (_ref2) {
37072
- var value2 = _ref2.value,
37073
- label = _ref2.label;
37093
+ }).map(function (_ref) {
37094
+ var value2 = _ref.value,
37095
+ label = _ref.label;
37074
37096
  return formatValue(value2, label);
37075
37097
  }), {
37076
- node: node
37098
+ node: node,
37099
+ trigger: "tag-remove",
37100
+ e: e
37077
37101
  });
37078
37102
  onRemove === null || onRemove === void 0 ? void 0 : onRemove({
37079
37103
  value: node.value,
@@ -37115,20 +37139,21 @@
37115
37139
  var handleEnter = usePersistFn(function (text) {
37116
37140
  onSearch === null || onSearch === void 0 ? void 0 : onSearch(text);
37117
37141
  });
37118
- var handleFilterChange = usePersistFn(function (value2, _ref3) {
37119
- var trigger = _ref3.trigger;
37120
-
37121
- if (trigger !== "blur") {
37122
- setFilterInput(value2);
37123
- }
37142
+ var handleFilterChange = usePersistFn(function (value2) {
37143
+ return setFilterInput(value2);
37124
37144
  });
37125
37145
  React.useEffect(function () {
37126
37146
  popupVisible && setFilterInput("");
37127
37147
  }, [popupVisible]);
37148
+ React.useEffect(function () {
37149
+ setFilterInput("");
37150
+ }, [value]);
37128
37151
 
37129
37152
  var renderTree = function renderTree() {
37130
- return showLoading ? loadingItem : /* @__PURE__ */React__default["default"].createElement(Tree, _objectSpread$v(_objectSpread$v({
37131
- ref: $tree,
37153
+ if (readonly) return empty;
37154
+ if (showLoading) return loadingItem;
37155
+ return /* @__PURE__ */React__default["default"].createElement(Tree, _objectSpread$v(_objectSpread$v({
37156
+ ref: treeRef,
37132
37157
  hover: true,
37133
37158
  transition: true,
37134
37159
  expandAll: true,
@@ -37139,14 +37164,14 @@
37139
37164
  }, multiple ? {
37140
37165
  checkable: true,
37141
37166
  onChange: handleMultiChange,
37142
- value: normalizedValue.map(function (_ref4) {
37143
- var value2 = _ref4.value;
37167
+ value: normalizedValue.map(function (_ref2) {
37168
+ var value2 = _ref2.value;
37144
37169
  return value2;
37145
37170
  })
37146
37171
  } : {
37147
37172
  activable: true,
37148
- actived: normalizedValue.map(function (_ref5) {
37149
- var value2 = _ref5.value;
37173
+ actived: normalizedValue.map(function (_ref3) {
37174
+ var value2 = _ref3.value;
37150
37175
  return value2;
37151
37176
  }),
37152
37177
  onActive: handleSingleChange
@@ -37170,8 +37195,9 @@
37170
37195
  };
37171
37196
 
37172
37197
  var normalizedValueDisplay = function normalizedValueDisplay() {
37173
- if (multiple) return function (_ref6) {
37174
- var onClose = _ref6.onClose;
37198
+ if (typeof valueDisplay === "string") return valueDisplay;
37199
+ if (multiple) return function (_ref4) {
37200
+ var onClose = _ref4.onClose;
37175
37201
  return valueDisplay({
37176
37202
  value: normalizedValue,
37177
37203
  onClose: onClose
@@ -37183,32 +37209,38 @@
37183
37209
  }) : "";
37184
37210
  };
37185
37211
 
37186
- return /* @__PURE__ */React__default["default"].createElement(SelectInput$1, _objectSpread$v(_objectSpread$v({}, selectInputProps), {}, {
37212
+ return /* @__PURE__ */React__default["default"].createElement(SelectInput$1, _objectSpread$v(_objectSpread$v(_objectSpread$v({}, props.selectInputProps), selectInputProps), {}, {
37187
37213
  ref: ref,
37188
37214
  className: classNames$1("".concat(classPrefix, "-tree-select"), _defineProperty$2({}, "".concat(classPrefix, "-tree-select--without-input"), multiple && !filterable), className),
37189
- value: inputValue,
37215
+ value: internalInputValue,
37190
37216
  inputValue: popupVisible ? filterText : "",
37191
37217
  panel: renderTree(),
37192
37218
  allowInput: multiple || filterable,
37193
- inputProps: {
37219
+ inputProps: _objectSpread$v(_objectSpread$v({}, inputProps), {}, {
37194
37220
  size: size
37195
- },
37221
+ }),
37196
37222
  tagInputProps: {
37197
37223
  size: size,
37198
- excessTagsDisplayType: "break-line"
37224
+ excessTagsDisplayType: "break-line",
37225
+ inputProps: inputProps,
37226
+ tagProps: props.tagProps
37199
37227
  },
37200
37228
  placeholder: inputPlaceholader,
37201
37229
  popupVisible: popupVisible && !disabled,
37202
37230
  onInputChange: handleFilterChange,
37203
- onPopupVisibleChange: useMergeFn(popupAction.set),
37204
- onFocus: useMergeFn(handleFocus, popupAction.on),
37231
+ onPopupVisibleChange: useMergeFn(setPopupVisble),
37232
+ onFocus: useMergeFn(handleFocus, function () {
37233
+ return setPopupVisble(true, {
37234
+ trigger: "trigger-element-click"
37235
+ });
37236
+ }),
37205
37237
  onBlur: useMergeFn(handleBlur),
37206
37238
  onClear: handleClear,
37207
37239
  onTagChange: handleTagChange,
37208
37240
  onEnter: handleEnter,
37209
37241
  onMouseenter: hoverAction.on,
37210
37242
  onMouseleave: hoverAction.off,
37211
- suffixIcon: /* @__PURE__ */React__default["default"].createElement(TreeSelectArrow, {
37243
+ suffixIcon: readonly ? null : /* @__PURE__ */React__default["default"].createElement(SelectArrow, {
37212
37244
  isActive: popupVisible,
37213
37245
  isHighlight: hover || popupVisible,
37214
37246
  disabled: disabled
@@ -37683,7 +37715,7 @@
37683
37715
  });
37684
37716
  }
37685
37717
 
37686
- var _excluded$8 = ["href", "title", "target", "children"];
37718
+ var _excluded$8 = ["href", "title", "target", "children", "className"];
37687
37719
 
37688
37720
  function ownKeys$r(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37689
37721
 
@@ -37701,6 +37733,8 @@
37701
37733
  target = props.target,
37702
37734
  _props$children = props.children,
37703
37735
  children = _props$children === void 0 ? [] : _props$children,
37736
+ _props$className = props.className,
37737
+ className = _props$className === void 0 ? "" : _props$className,
37704
37738
  rest = _objectWithoutProperties$1(props, _excluded$8);
37705
37739
 
37706
37740
  var _useConfig = useConfig$1(),
@@ -37721,9 +37755,9 @@
37721
37755
  return unregisterItem(href);
37722
37756
  };
37723
37757
  }, [href, registerItem, unregisterItem]);
37724
- return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$r({
37725
- className: classNames$1("".concat(classPrefix, "-anchor__item"), _defineProperty$2({}, "".concat(classPrefix, "-is-active"), activeItem === href))
37726
- }, rest), /* @__PURE__ */React__default["default"].createElement("a", {
37758
+ return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$r(_objectSpread$r({}, rest), {}, {
37759
+ className: classNames$1("".concat(classPrefix, "-anchor__item"), _defineProperty$2({}, "".concat(classPrefix, "-is-active"), activeItem === href), className)
37760
+ }), /* @__PURE__ */React__default["default"].createElement("a", {
37727
37761
  href: href,
37728
37762
  className: classNames$1("".concat(classPrefix, "-anchor__item-link")),
37729
37763
  title: titleAttr,
@@ -38871,7 +38905,7 @@
38871
38905
  }, /*#__PURE__*/React__default["default"].createElement(Content));
38872
38906
  };
38873
38907
 
38874
- var _excluded$7 = ["affixProps", "bounds", "targetOffset", "container", "size", "children", "cursor", "onClick", "onChange"];
38908
+ var _excluded$7 = ["affixProps", "bounds", "targetOffset", "container", "size", "children", "cursor", "onClick", "onChange", "className"];
38875
38909
 
38876
38910
  function ownKeys$q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
38877
38911
 
@@ -38896,6 +38930,8 @@
38896
38930
  onClick = _props$onClick === void 0 ? noop$1 : _props$onClick,
38897
38931
  _props$onChange = props.onChange,
38898
38932
  onChange = _props$onChange === void 0 ? noop$1 : _props$onChange,
38933
+ _props$className = props.className,
38934
+ className = _props$className === void 0 ? "" : _props$className,
38899
38935
  rest = _objectWithoutProperties$1(props, _excluded$7);
38900
38936
 
38901
38937
  var _useConfig = useConfig$1(),
@@ -39019,7 +39055,7 @@
39019
39055
  scrollContainer.removeEventListener("scroll", handleScroll);
39020
39056
  };
39021
39057
  }, [container, handleScroll]);
39022
- var anchorClass = classNames$1("".concat(classPrefix, "-anchor"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-m"), size === "medium"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _classNames));
39058
+ var anchorClass = classNames$1("".concat(classPrefix, "-anchor"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-m"), size === "medium"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _classNames), className);
39023
39059
 
39024
39060
  var CursorCmp = function CursorCmp() {
39025
39061
  if (isFunction_1(cursor)) return cursor();
@@ -39036,10 +39072,10 @@
39036
39072
  registerItem: registerItem,
39037
39073
  unregisterItem: unregisterItem
39038
39074
  }
39039
- }, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$q({
39075
+ }, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$q(_objectSpread$q({}, rest), {}, {
39040
39076
  className: anchorClass,
39041
39077
  ref: anchorEl
39042
- }, rest), /* @__PURE__ */React__default["default"].createElement("div", {
39078
+ }), /* @__PURE__ */React__default["default"].createElement("div", {
39043
39079
  className: "".concat(classPrefix, "-anchor__line")
39044
39080
  }, /* @__PURE__ */React__default["default"].createElement("div", {
39045
39081
  className: "".concat(classPrefix, "-anchor__line-cursor-wrapper"),
@@ -40031,6 +40067,229 @@
40031
40067
 
40032
40068
  var Calendar = Calendar$1;
40033
40069
 
40070
+ function ownKeys$o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40071
+
40072
+ function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40073
+ function useInstance(props, formRef, formItemsRef) {
40074
+ var _useConfig = useConfig$1(),
40075
+ classPrefix = _useConfig.classPrefix;
40076
+
40077
+ var FORM_ITEM_CLASS_PREFIX = "".concat(classPrefix, "-form-item__");
40078
+ var scrollToFirstError = props.scrollToFirstError,
40079
+ _props$preventSubmitD = props.preventSubmitDefault,
40080
+ preventSubmitDefault = _props$preventSubmitD === void 0 ? true : _props$preventSubmitD,
40081
+ onSubmit = props.onSubmit;
40082
+
40083
+ function getFormItemsMap() {
40084
+ var formItemsMap = formItemsRef.current.reduce(function (acc, _ref) {
40085
+ var currItem = _ref.current;
40086
+
40087
+ if (currItem !== null && currItem !== void 0 && currItem.name) {
40088
+ var name = currItem.name;
40089
+ return _objectSpread$o(_objectSpread$o({}, acc), {}, _defineProperty$2({}, name, currItem));
40090
+ }
40091
+
40092
+ return acc;
40093
+ }, {});
40094
+ return formItemsMap;
40095
+ }
40096
+
40097
+ function getFirstError(r) {
40098
+ var _r$firstKey$;
40099
+
40100
+ if (r === true) return;
40101
+
40102
+ var _Object$keys = Object.keys(r),
40103
+ _Object$keys2 = _slicedToArray(_Object$keys, 1),
40104
+ firstKey = _Object$keys2[0];
40105
+
40106
+ if (scrollToFirstError) {
40107
+ scrollTo(".".concat(FORM_ITEM_CLASS_PREFIX + firstKey));
40108
+ }
40109
+
40110
+ return (_r$firstKey$ = r[firstKey][0]) === null || _r$firstKey$ === void 0 ? void 0 : _r$firstKey$.message;
40111
+ }
40112
+
40113
+ function scrollTo(selector) {
40114
+ var dom = formRef.current.querySelector(selector);
40115
+ var behavior = scrollToFirstError;
40116
+ dom && dom.scrollIntoView({
40117
+ behavior: behavior
40118
+ });
40119
+ }
40120
+
40121
+ function submit(e) {
40122
+ if (preventSubmitDefault) {
40123
+ var _e$preventDefault, _e$stopPropagation;
40124
+
40125
+ e === null || e === void 0 ? void 0 : (_e$preventDefault = e.preventDefault) === null || _e$preventDefault === void 0 ? void 0 : _e$preventDefault.call(e);
40126
+ e === null || e === void 0 ? void 0 : (_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
40127
+ }
40128
+
40129
+ validate().then(function (r) {
40130
+ var firstError = getFirstError(r);
40131
+ onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
40132
+ validateResult: r,
40133
+ firstError: firstError,
40134
+ e: e
40135
+ });
40136
+ });
40137
+ }
40138
+
40139
+ function validate(param) {
40140
+ function needValidate(name, fields2) {
40141
+ if (!fields2 || !Array.isArray(fields2)) return true;
40142
+ return fields2.indexOf(name) !== -1;
40143
+ }
40144
+
40145
+ var _ref2 = param || {},
40146
+ fields = _ref2.fields,
40147
+ _ref2$trigger = _ref2.trigger,
40148
+ trigger = _ref2$trigger === void 0 ? "all" : _ref2$trigger;
40149
+
40150
+ var list = formItemsRef.current.filter(function (_ref3) {
40151
+ var formItemRef = _ref3.current;
40152
+ return formItemRef && isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
40153
+ }).map(function (_ref4) {
40154
+ var formItemRef = _ref4.current;
40155
+ return formItemRef.validate(trigger);
40156
+ });
40157
+ return new Promise(function (resolve) {
40158
+ Promise.all(flatten_1(list)).then(function (arr) {
40159
+ var r = arr.reduce(function (r2, err) {
40160
+ return Object.assign(r2 || {}, err);
40161
+ }, {});
40162
+ Object.keys(r).forEach(function (key) {
40163
+ if (r[key] === true) {
40164
+ delete r[key];
40165
+ } else {
40166
+ r[key] = r[key].filter(function (fr) {
40167
+ return fr.result === false;
40168
+ });
40169
+ }
40170
+ });
40171
+ resolve(isEmpty_1(r) ? true : r);
40172
+ })["catch"](console.error);
40173
+ });
40174
+ }
40175
+
40176
+ function getFieldValue(name) {
40177
+ var _target$current;
40178
+
40179
+ if (!name) return null;
40180
+ var target = formItemsRef.current.find(function (_ref5) {
40181
+ var formItemRef = _ref5.current;
40182
+ return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
40183
+ });
40184
+ return (_target$current = target.current) === null || _target$current === void 0 ? void 0 : _target$current.value;
40185
+ }
40186
+
40187
+ function getFieldsValue(nameList) {
40188
+ var fieldsValue = {};
40189
+ var formItemsMap = getFormItemsMap();
40190
+
40191
+ if (nameList === true) {
40192
+ formItemsRef.current.forEach(function (_ref6) {
40193
+ var formItemRef = _ref6.current;
40194
+
40195
+ if (formItemRef !== null && formItemRef !== void 0 && formItemRef.name) {
40196
+ fieldsValue[formItemRef.name] = formItemRef.value;
40197
+ }
40198
+ });
40199
+ } else {
40200
+ if (!Array.isArray(nameList)) throw new Error("getFieldsValue \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
40201
+ nameList.forEach(function (name) {
40202
+ if (formItemsMap[name]) fieldsValue[name] = formItemsMap[name].value;
40203
+ });
40204
+ }
40205
+
40206
+ return fieldsValue;
40207
+ }
40208
+
40209
+ function setFieldsValue() {
40210
+ var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
40211
+ var formItemsMap = getFormItemsMap();
40212
+ Object.keys(fields).forEach(function (key) {
40213
+ var _formItemsMap$key;
40214
+
40215
+ (_formItemsMap$key = formItemsMap[key]) === null || _formItemsMap$key === void 0 ? void 0 : _formItemsMap$key.setValue(fields[key]);
40216
+ });
40217
+ }
40218
+
40219
+ function setFields() {
40220
+ var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
40221
+ if (!Array.isArray(fields)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
40222
+ var formItemsMap = getFormItemsMap();
40223
+ fields.forEach(function (field) {
40224
+ var _formItemsMap$name;
40225
+
40226
+ var name = field.name,
40227
+ value = field.value,
40228
+ status = field.status;
40229
+ (_formItemsMap$name = formItemsMap[name]) === null || _formItemsMap$name === void 0 ? void 0 : _formItemsMap$name.setField({
40230
+ value: value,
40231
+ status: status
40232
+ });
40233
+ });
40234
+ }
40235
+
40236
+ function reset(params) {
40237
+ if (typeof params === "undefined") {
40238
+ formItemsRef.current.forEach(function (_ref7) {
40239
+ var formItemRef = _ref7.current;
40240
+ formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
40241
+ });
40242
+ } else {
40243
+ var _params$type = params.type,
40244
+ type = _params$type === void 0 ? "initial" : _params$type,
40245
+ _params$fields = params.fields,
40246
+ fields = _params$fields === void 0 ? [] : _params$fields;
40247
+ var formItemsMap = getFormItemsMap();
40248
+ fields.forEach(function (name) {
40249
+ var _formItemsMap$name2;
40250
+
40251
+ (_formItemsMap$name2 = formItemsMap[name]) === null || _formItemsMap$name2 === void 0 ? void 0 : _formItemsMap$name2.resetField(type);
40252
+ });
40253
+ }
40254
+ }
40255
+
40256
+ function clearValidate(fields) {
40257
+ if (typeof fields === "undefined") {
40258
+ formItemsRef.current.forEach(function (_ref8) {
40259
+ var formItemRef = _ref8.current;
40260
+ formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetValidate());
40261
+ });
40262
+ } else {
40263
+ if (!Array.isArray(fields)) throw new Error("clearValidate \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
40264
+ var formItemsMap = getFormItemsMap();
40265
+ fields.forEach(function (name) {
40266
+ var _formItemsMap$name3;
40267
+
40268
+ (_formItemsMap$name3 = formItemsMap[name]) === null || _formItemsMap$name3 === void 0 ? void 0 : _formItemsMap$name3.resetValidate();
40269
+ });
40270
+ }
40271
+ }
40272
+
40273
+ function setValidateMessage(message) {
40274
+ var formItemsMap = getFormItemsMap();
40275
+ Object.keys(message).forEach(function (name) {
40276
+ formItemsMap[name].setValidateMessage(message[name]);
40277
+ });
40278
+ }
40279
+
40280
+ return {
40281
+ submit: submit,
40282
+ reset: reset,
40283
+ validate: validate,
40284
+ clearValidate: clearValidate,
40285
+ setFields: setFields,
40286
+ setFieldsValue: setFieldsValue,
40287
+ setValidateMessage: setValidateMessage,
40288
+ getFieldValue: getFieldValue,
40289
+ getFieldsValue: getFieldsValue
40290
+ };
40291
+ }
40292
+
40034
40293
  var FormContext = /*#__PURE__*/React__default["default"].createContext({
40035
40294
  labelWidth: "calc(1 / 12 * 100%)",
40036
40295
  labelAlign: "right",
@@ -40052,33 +40311,6 @@
40052
40311
  return React__default["default"].useContext(FormContext);
40053
40312
  };
40054
40313
 
40055
- /**
40056
- * Checks if `value` is `null` or `undefined`.
40057
- *
40058
- * @static
40059
- * @memberOf _
40060
- * @since 4.0.0
40061
- * @category Lang
40062
- * @param {*} value The value to check.
40063
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
40064
- * @example
40065
- *
40066
- * _.isNil(null);
40067
- * // => true
40068
- *
40069
- * _.isNil(void 0);
40070
- * // => true
40071
- *
40072
- * _.isNil(NaN);
40073
- * // => false
40074
- */
40075
-
40076
- function isNil(value) {
40077
- return value == null;
40078
- }
40079
-
40080
- var isNil_1 = isNil;
40081
-
40082
40314
  var copyObject$1 = _copyObject,
40083
40315
  createAssigner = _createAssigner,
40084
40316
  keysIn = keysIn_1;
@@ -42419,9 +42651,9 @@
42419
42651
 
42420
42652
  var _excluded$6 = ["value", "defaultFiles", "files", "onChange"];
42421
42653
 
42422
- function ownKeys$o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
42654
+ function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
42423
42655
 
42424
- function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
42656
+ function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
42425
42657
  function useDefaultValue(props, defaultDefaultValue) {
42426
42658
  var value = props.value,
42427
42659
  defaultFiles = props.defaultFiles,
@@ -42440,7 +42672,7 @@
42440
42672
  finalValue = _useDefault2[0],
42441
42673
  finalOnChange = _useDefault2[1];
42442
42674
 
42443
- return _objectSpread$o({
42675
+ return _objectSpread$n({
42444
42676
  files: finalValue,
42445
42677
  onChange: finalOnChange
42446
42678
  }, restProps);
@@ -42499,9 +42731,9 @@
42499
42731
 
42500
42732
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
42501
42733
 
42502
- function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
42734
+ function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
42503
42735
 
42504
- function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
42736
+ function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
42505
42737
 
42506
42738
  var Upload$1 = function Upload(props, ref) {
42507
42739
  var _useDefaultValue = useDefaultValue(props, []),
@@ -42720,7 +42952,7 @@
42720
42952
  _ref3$type = _ref3.type,
42721
42953
  type = _ref3$type === void 0 ? "mock" : _ref3$type;
42722
42954
 
42723
- var tmpFile = _objectSpread$n({}, file);
42955
+ var tmpFile = _objectSpread$m({}, file);
42724
42956
 
42725
42957
  tmpFile.percent = percent;
42726
42958
  var progressCtx = {
@@ -42755,7 +42987,7 @@
42755
42987
  var r = res.response || {};
42756
42988
  onError({
42757
42989
  file: file,
42758
- response: _objectSpread$n(_objectSpread$n({}, r), {}, {
42990
+ response: _objectSpread$m(_objectSpread$m({}, r), {}, {
42759
42991
  error: res.error
42760
42992
  })
42761
42993
  });
@@ -42769,7 +43001,7 @@
42769
43001
  while (1) {
42770
43002
  switch (_context.prev = _context.next) {
42771
43003
  case 0:
42772
- file = _objectSpread$n({}, uploadFile);
43004
+ file = _objectSpread$m({}, uploadFile);
42773
43005
 
42774
43006
  if (!(file.status !== "waiting")) {
42775
43007
  _context.next = 3;
@@ -42854,7 +43086,7 @@
42854
43086
 
42855
43087
  var file = typeof format === "function" ? format(fileRaw) : fileRaw;
42856
43088
 
42857
- var uploadFile = _objectSpread$n({
43089
+ var uploadFile = _objectSpread$m({
42858
43090
  raw: fileRaw,
42859
43091
  lastModified: fileRaw.lastModified,
42860
43092
  name: fileRaw.name,
@@ -43153,6 +43385,14 @@
43153
43385
 
43154
43386
  var Upload = _Upload;
43155
43387
 
43388
+ function renderTNode(tnode, defaultNode) {
43389
+ if (typeof tnode === "function") {
43390
+ return tnode();
43391
+ }
43392
+
43393
+ return tnode || defaultNode;
43394
+ }
43395
+
43156
43396
  var isDate$2 = {exports: {}};
43157
43397
 
43158
43398
  var merge = {exports: {}};
@@ -44139,9 +44379,9 @@
44139
44379
 
44140
44380
  var isURL = /*@__PURE__*/getDefaultExportFromCjs(isURL$1.exports);
44141
44381
 
44142
- function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
44382
+ function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
44143
44383
 
44144
- function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
44384
+ function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
44145
44385
  function isValueEmpty(val) {
44146
44386
  var type = Object.prototype.toString.call(val);
44147
44387
  var typeMap = {
@@ -44270,7 +44510,7 @@
44270
44510
  break;
44271
44511
  }
44272
44512
 
44273
- return _context.abrupt("return", _objectSpread$m(_objectSpread$m({}, rule), {}, {
44513
+ return _context.abrupt("return", _objectSpread$l(_objectSpread$l({}, rule), {}, {
44274
44514
  result: validateResult
44275
44515
  }));
44276
44516
 
@@ -44326,9 +44566,9 @@
44326
44566
  return _validate.apply(this, arguments);
44327
44567
  }
44328
44568
 
44329
- function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
44569
+ function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
44330
44570
 
44331
- function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
44571
+ function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
44332
44572
 
44333
44573
  var ctrlKeyMap = /* @__PURE__ */new Map();
44334
44574
  ctrlKeyMap.set(Checkbox, "checked");
@@ -44343,8 +44583,8 @@
44343
44583
  React__default["default"].Children.forEach(children, function (child) {
44344
44584
  if (!child) return;
44345
44585
 
44346
- if (_typeof(child.type) === "object") {
44347
- defaultInitialData = initialDataMap.get(child.type) || initialData;
44586
+ if ( /*#__PURE__*/React__default["default"].isValidElement(child) && typeof initialData === "undefined") {
44587
+ defaultInitialData = initialDataMap.get(child.type);
44348
44588
  }
44349
44589
  });
44350
44590
  return defaultInitialData;
@@ -44356,27 +44596,13 @@
44356
44596
  var _useConfig = useConfig$1(),
44357
44597
  classPrefix = _useConfig.classPrefix;
44358
44598
 
44359
- var children = props.children,
44360
- label = props.label,
44361
- name = props.name,
44362
- help = props.help,
44363
- statusIconFromProp = props.statusIcon,
44364
- rulesFromProp = props.rules,
44365
- labelWidth = props.labelWidth,
44366
- labelAlign = props.labelAlign,
44367
- initialData = props.initialData,
44368
- requiredMark = props.requiredMark,
44369
- successBorder = props.successBorder,
44370
- className = props.className,
44371
- formItemStyle = props.style;
44372
-
44373
44599
  var _useFormContext = useFormContext(),
44374
44600
  colon = _useFormContext.colon,
44375
- requiredMarkFromContext = _useFormContext.requiredMark,
44376
44601
  layout = _useFormContext.layout,
44602
+ requiredMarkFromContext = _useFormContext.requiredMark,
44377
44603
  labelAlignFromContext = _useFormContext.labelAlign,
44378
44604
  labelWidthFromContext = _useFormContext.labelWidth,
44379
- showErrorMessage = _useFormContext.showErrorMessage,
44605
+ showErrorMessageFromContext = _useFormContext.showErrorMessage,
44380
44606
  disabledFromContext = _useFormContext.disabled,
44381
44607
  resetTypeFromContext = _useFormContext.resetType,
44382
44608
  rulesFromContext = _useFormContext.rules,
@@ -44385,6 +44611,27 @@
44385
44611
  formItemsRef = _useFormContext.formItemsRef,
44386
44612
  onFormItemValueChange = _useFormContext.onFormItemValueChange;
44387
44613
 
44614
+ var children = props.children,
44615
+ style = props.style,
44616
+ label = props.label,
44617
+ name = props.name,
44618
+ help = props.help,
44619
+ initialData = props.initialData,
44620
+ className = props.className,
44621
+ successBorder = props.successBorder,
44622
+ _props$statusIcon = props.statusIcon,
44623
+ statusIcon = _props$statusIcon === void 0 ? statusIconFromContext : _props$statusIcon,
44624
+ _props$rules = props.rules,
44625
+ innerRules = _props$rules === void 0 ? (rulesFromContext === null || rulesFromContext === void 0 ? void 0 : rulesFromContext[name]) || [] : _props$rules,
44626
+ _props$labelWidth = props.labelWidth,
44627
+ labelWidth = _props$labelWidth === void 0 ? labelWidthFromContext : _props$labelWidth,
44628
+ _props$labelAlign = props.labelAlign,
44629
+ labelAlign = _props$labelAlign === void 0 ? labelAlignFromContext : _props$labelAlign,
44630
+ _props$requiredMark = props.requiredMark,
44631
+ requiredMark = _props$requiredMark === void 0 ? requiredMarkFromContext : _props$requiredMark,
44632
+ _props$showErrorMessa = props.showErrorMessage,
44633
+ showErrorMessage = _props$showErrorMessa === void 0 ? showErrorMessageFromContext : _props$showErrorMessa;
44634
+
44388
44635
  var _useState = React.useState([]),
44389
44636
  _useState2 = _slicedToArray(_useState, 2),
44390
44637
  errorList = _useState2[0],
@@ -44421,14 +44668,10 @@
44421
44668
  var innerFormItemsRef = React.useRef([]);
44422
44669
  var shouldValidate = React.useRef(null);
44423
44670
  var isMounted = React.useRef(false);
44424
- var innerRules = rulesFromContext && rulesFromContext[name] || rulesFromProp || [];
44425
- var innerLabelWidth = isNil_1(labelWidth) ? labelWidthFromContext : labelWidth;
44426
- var innerLabelAlign = isNil_1(labelAlign) ? labelAlignFromContext : labelAlign;
44427
- var innerRequiredMark = isNil_1(requiredMark) ? requiredMarkFromContext : requiredMark;
44428
44671
  var formItemClass = classNames$1(className, "".concat(classPrefix, "-form__item"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-form-item__").concat(name), name), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-help"), help), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-extra"), renderTipsInfo()), _classNames));
44429
- var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"), innerRequiredMark && innerRules.filter(function (rule) {
44672
+ var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"), requiredMark && innerRules.filter(function (rule) {
44430
44673
  return rule.required;
44431
- }).length > 0), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--colon"), colon && label), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--top"), innerLabelAlign === "top" || !innerLabelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--left"), innerLabelAlign === "left" && innerLabelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--right"), innerLabelAlign === "right" && innerLabelWidth), _classNames2));
44674
+ }).length > 0), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--colon"), colon && label), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--top"), labelAlign === "top" || !labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--left"), labelAlign === "left" && labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--right"), labelAlign === "right" && labelWidth), _classNames2));
44432
44675
 
44433
44676
  var contentClass = function contentClass() {
44434
44677
  var _classNames4;
@@ -44450,20 +44693,20 @@
44450
44693
  var labelStyle = {};
44451
44694
  var contentStyle = {};
44452
44695
 
44453
- if (innerLabelWidth && innerLabelAlign !== "top") {
44454
- if (typeof innerLabelWidth === "number") {
44696
+ if (labelWidth && labelAlign !== "top") {
44697
+ if (typeof labelWidth === "number") {
44455
44698
  labelStyle = {
44456
- width: "".concat(innerLabelWidth, "px")
44699
+ width: "".concat(labelWidth, "px")
44457
44700
  };
44458
44701
  contentStyle = {
44459
- marginLeft: layout !== "inline" ? "".concat(innerLabelWidth, "px") : ""
44702
+ marginLeft: layout !== "inline" ? "".concat(labelWidth, "px") : ""
44460
44703
  };
44461
44704
  } else {
44462
44705
  labelStyle = {
44463
- width: innerLabelWidth
44706
+ width: labelWidth
44464
44707
  };
44465
44708
  contentStyle = {
44466
- marginLeft: layout !== "inline" ? innerLabelWidth : ""
44709
+ marginLeft: layout !== "inline" ? labelWidth : ""
44467
44710
  };
44468
44711
  }
44469
44712
  }
@@ -44472,7 +44715,7 @@
44472
44715
  var helpNode = null;
44473
44716
  if (help) helpNode = /* @__PURE__ */React__default["default"].createElement("div", {
44474
44717
  className: "".concat(classPrefix, "-form__help")
44475
- }, help);
44718
+ }, renderTNode(help));
44476
44719
  var list = errorList;
44477
44720
 
44478
44721
  if (showErrorMessage && list && list[0] && list[0].message) {
@@ -44491,7 +44734,7 @@
44491
44734
  }
44492
44735
 
44493
44736
  var renderSuffixIcon = function renderSuffixIcon() {
44494
- if (statusIconFromProp === false) return null;
44737
+ if (statusIcon === false) return null;
44495
44738
 
44496
44739
  var resultIcon = function resultIcon(iconSlot) {
44497
44740
  return /* @__PURE__ */React__default["default"].createElement("span", {
@@ -44526,22 +44769,18 @@
44526
44769
  return null;
44527
44770
  };
44528
44771
 
44529
- if ( /*#__PURE__*/React__default["default"].isValidElement(statusIconFromProp)) {
44530
- return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(statusIconFromProp, _objectSpread$l({
44772
+ if ( /*#__PURE__*/React__default["default"].isValidElement(statusIcon)) {
44773
+ return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(statusIcon, _objectSpread$k({
44531
44774
  style: {
44532
44775
  color: "unset"
44533
44776
  }
44534
- }, statusIconFromProp.props)));
44777
+ }, statusIcon.props)));
44535
44778
  }
44536
44779
 
44537
- if (statusIconFromContext === true) {
44780
+ if (statusIcon === true) {
44538
44781
  return getDefaultIcon();
44539
44782
  }
44540
44783
 
44541
- if ( /*#__PURE__*/React__default["default"].isValidElement(statusIconFromContext)) {
44542
- return resultIcon(statusIconFromProp);
44543
- }
44544
-
44545
44784
  return null;
44546
44785
  };
44547
44786
 
@@ -44724,7 +44963,7 @@
44724
44963
  });
44725
44964
  return /* @__PURE__ */React__default["default"].createElement("div", {
44726
44965
  className: formItemClass,
44727
- style: formItemStyle,
44966
+ style: style,
44728
44967
  ref: ref
44729
44968
  }, label && /* @__PURE__ */React__default["default"].createElement("div", {
44730
44969
  className: formItemLabelClass,
@@ -44773,7 +45012,7 @@
44773
45012
  ctrlKey = ctrlKeyMap.get(child.type) || "value";
44774
45013
  }
44775
45014
 
44776
- return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$l(_objectSpread$l({
45015
+ return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$k(_objectSpread$k({
44777
45016
  disabled: disabledFromContext
44778
45017
  }, child.props), {}, (_objectSpread2 = {}, _defineProperty$2(_objectSpread2, ctrlKey, formValue), _defineProperty$2(_objectSpread2, "onChange", function onChange(value) {
44779
45018
  onChangeFromProps.call(null, value);
@@ -44788,9 +45027,6 @@
44788
45027
  }), renderSuffixIcon()), renderTipsInfo()));
44789
45028
  });
44790
45029
 
44791
- function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
44792
-
44793
- function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
44794
45030
  var Form$1 = forwardRefWithStatics(function (props, ref) {
44795
45031
  var _useConfig = useConfig$1(),
44796
45032
  classPrefix = _useConfig.classPrefix,
@@ -44823,54 +45059,40 @@
44823
45059
  preventSubmitDefault = _props$preventSubmitD === void 0 ? true : _props$preventSubmitD,
44824
45060
  disabled = props.disabled,
44825
45061
  children = props.children,
44826
- onSubmit = props.onSubmit,
44827
45062
  onReset = props.onReset,
44828
45063
  _props$onValuesChange = props.onValuesChange,
44829
45064
  onValuesChange = _props$onValuesChange === void 0 ? noop$1 : _props$onValuesChange;
44830
45065
  var formClass = classNames$1(className, "".concat(classPrefix, "-form"), _defineProperty$2({}, "".concat(classPrefix, "-form-inline"), layout === "inline"));
44831
45066
  var formRef = React.useRef();
44832
45067
  var formItemsRef = React.useRef([]);
44833
- var FORM_ITEM_CLASS_PREFIX = "".concat(classPrefix, "-form-item__");
44834
-
44835
- function getFormItemsMap() {
44836
- var formItemsMap = formItemsRef.current.reduce(function (acc, _ref) {
44837
- var currItem = _ref.current;
44838
45068
 
44839
- if (currItem !== null && currItem !== void 0 && currItem.name) {
44840
- var name = currItem.name;
44841
- return _objectSpread$k(_objectSpread$k({}, acc), {}, _defineProperty$2({}, name, currItem));
44842
- }
45069
+ var _useInstance = useInstance(props, formRef, formItemsRef),
45070
+ submit = _useInstance.submit,
45071
+ reset = _useInstance.reset,
45072
+ getFieldValue = _useInstance.getFieldValue,
45073
+ getFieldsValue = _useInstance.getFieldsValue,
45074
+ setFieldsValue = _useInstance.setFieldsValue,
45075
+ setFields = _useInstance.setFields,
45076
+ validate = _useInstance.validate,
45077
+ clearValidate = _useInstance.clearValidate,
45078
+ setValidateMessage = _useInstance.setValidateMessage;
44843
45079
 
44844
- return acc;
44845
- }, {});
44846
- return formItemsMap;
44847
- }
44848
-
44849
- function getFirstError(r) {
44850
- var _r$firstKey$;
44851
-
44852
- if (r === true) return;
44853
-
44854
- var _Object$keys = Object.keys(r),
44855
- _Object$keys2 = _slicedToArray(_Object$keys, 1),
44856
- firstKey = _Object$keys2[0];
44857
-
44858
- if (scrollToFirstError) {
44859
- scrollTo(".".concat(FORM_ITEM_CLASS_PREFIX + firstKey));
44860
- }
44861
-
44862
- return (_r$firstKey$ = r[firstKey][0]) === null || _r$firstKey$ === void 0 ? void 0 : _r$firstKey$.message;
44863
- }
44864
-
44865
- function scrollTo(selector) {
44866
- var dom = formRef.current.querySelector(selector);
44867
- var behavior = scrollToFirstError;
44868
- dom && dom.scrollIntoView({
44869
- behavior: behavior
44870
- });
44871
- }
45080
+ React.useImperativeHandle(ref, function () {
45081
+ return {
45082
+ currentElement: formRef.current,
45083
+ submit: submit,
45084
+ reset: reset,
45085
+ getFieldValue: getFieldValue,
45086
+ getFieldsValue: getFieldsValue,
45087
+ setFieldsValue: setFieldsValue,
45088
+ setFields: setFields,
45089
+ validate: validate,
45090
+ clearValidate: clearValidate,
45091
+ setValidateMessage: setValidateMessage
45092
+ };
45093
+ });
44872
45094
 
44873
- function submitHandler(e) {
45095
+ function onResetHandler(e) {
44874
45096
  if (preventSubmitDefault) {
44875
45097
  var _e$preventDefault, _e$stopPropagation;
44876
45098
 
@@ -44878,26 +45100,8 @@
44878
45100
  (_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
44879
45101
  }
44880
45102
 
44881
- validate().then(function (r) {
44882
- var firstError = getFirstError(r);
44883
- onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
44884
- validateResult: r,
44885
- firstError: firstError,
44886
- e: e
44887
- });
44888
- });
44889
- }
44890
-
44891
- function resetHandler(e) {
44892
- if (preventSubmitDefault) {
44893
- var _e$preventDefault2, _e$stopPropagation2;
44894
-
44895
- (_e$preventDefault2 = e.preventDefault) === null || _e$preventDefault2 === void 0 ? void 0 : _e$preventDefault2.call(e);
44896
- (_e$stopPropagation2 = e.stopPropagation) === null || _e$stopPropagation2 === void 0 ? void 0 : _e$stopPropagation2.call(e);
44897
- }
44898
-
44899
- formItemsRef.current.forEach(function (_ref2) {
44900
- var formItemRef = _ref2.current;
45103
+ formItemsRef.current.forEach(function (_ref) {
45104
+ var formItemRef = _ref.current;
44901
45105
  formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
44902
45106
  });
44903
45107
  onReset === null || onReset === void 0 ? void 0 : onReset({
@@ -44905,162 +45109,6 @@
44905
45109
  });
44906
45110
  }
44907
45111
 
44908
- function validate(param) {
44909
- function needValidate(name, fields2) {
44910
- if (!fields2 || !Array.isArray(fields2)) return true;
44911
- return fields2.indexOf(name) !== -1;
44912
- }
44913
-
44914
- var _ref3 = param || {},
44915
- fields = _ref3.fields,
44916
- _ref3$trigger = _ref3.trigger,
44917
- trigger = _ref3$trigger === void 0 ? "all" : _ref3$trigger;
44918
-
44919
- var list = formItemsRef.current.filter(function (_ref4) {
44920
- var formItemRef = _ref4.current;
44921
- return formItemRef && isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
44922
- }).map(function (_ref5) {
44923
- var formItemRef = _ref5.current;
44924
- return formItemRef.validate(trigger);
44925
- });
44926
- return new Promise(function (resolve) {
44927
- Promise.all(flatten_1(list)).then(function (arr) {
44928
- var r = arr.reduce(function (r2, err) {
44929
- return Object.assign(r2 || {}, err);
44930
- }, {});
44931
- Object.keys(r).forEach(function (key) {
44932
- if (r[key] === true) {
44933
- delete r[key];
44934
- } else {
44935
- r[key] = r[key].filter(function (fr) {
44936
- return fr.result === false;
44937
- });
44938
- }
44939
- });
44940
- resolve(isEmpty_1(r) ? true : r);
44941
- })["catch"](console.error);
44942
- });
44943
- }
44944
-
44945
- function getFieldValue(name) {
44946
- var _target$current;
44947
-
44948
- if (!name) return null;
44949
- var target = formItemsRef.current.find(function (_ref6) {
44950
- var formItemRef = _ref6.current;
44951
- return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
44952
- });
44953
- return (_target$current = target.current) === null || _target$current === void 0 ? void 0 : _target$current.value;
44954
- }
44955
-
44956
- function getFieldsValue(nameList) {
44957
- var fieldsValue = {};
44958
- var formItemsMap = getFormItemsMap();
44959
-
44960
- if (nameList === true) {
44961
- formItemsRef.current.forEach(function (_ref7) {
44962
- var formItemRef = _ref7.current;
44963
-
44964
- if (formItemRef !== null && formItemRef !== void 0 && formItemRef.name) {
44965
- fieldsValue[formItemRef.name] = formItemRef.value;
44966
- }
44967
- });
44968
- } else {
44969
- if (!Array.isArray(nameList)) throw new Error("getFieldsValue \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
44970
- nameList.forEach(function (name) {
44971
- if (formItemsMap[name]) fieldsValue[name] = formItemsMap[name].value;
44972
- });
44973
- }
44974
-
44975
- return fieldsValue;
44976
- }
44977
-
44978
- function setFieldsValue() {
44979
- var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
44980
- var formItemsMap = getFormItemsMap();
44981
- Object.keys(fields).forEach(function (key) {
44982
- var _formItemsMap$key;
44983
-
44984
- (_formItemsMap$key = formItemsMap[key]) === null || _formItemsMap$key === void 0 ? void 0 : _formItemsMap$key.setValue(fields[key]);
44985
- });
44986
- }
44987
-
44988
- function setFields() {
44989
- var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
44990
- if (!Array.isArray(fields)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
44991
- var formItemsMap = getFormItemsMap();
44992
- fields.forEach(function (field) {
44993
- var _formItemsMap$name;
44994
-
44995
- var name = field.name,
44996
- value = field.value,
44997
- status = field.status;
44998
- (_formItemsMap$name = formItemsMap[name]) === null || _formItemsMap$name === void 0 ? void 0 : _formItemsMap$name.setField({
44999
- value: value,
45000
- status: status
45001
- });
45002
- });
45003
- }
45004
-
45005
- function reset(params) {
45006
- if (typeof params === "undefined") {
45007
- formItemsRef.current.forEach(function (_ref8) {
45008
- var formItemRef = _ref8.current;
45009
- formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
45010
- });
45011
- } else {
45012
- var _params$type = params.type,
45013
- type = _params$type === void 0 ? "initial" : _params$type,
45014
- _params$fields = params.fields,
45015
- fields = _params$fields === void 0 ? [] : _params$fields;
45016
- var formItemsMap = getFormItemsMap();
45017
- fields.forEach(function (name) {
45018
- var _formItemsMap$name2;
45019
-
45020
- (_formItemsMap$name2 = formItemsMap[name]) === null || _formItemsMap$name2 === void 0 ? void 0 : _formItemsMap$name2.resetField(type);
45021
- });
45022
- }
45023
- }
45024
-
45025
- function clearValidate(fields) {
45026
- if (typeof fields === "undefined") {
45027
- formItemsRef.current.forEach(function (_ref9) {
45028
- var formItemRef = _ref9.current;
45029
- formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetValidate());
45030
- });
45031
- } else {
45032
- if (!Array.isArray(fields)) throw new Error("clearValidate \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
45033
- var formItemsMap = getFormItemsMap();
45034
- fields.forEach(function (name) {
45035
- var _formItemsMap$name3;
45036
-
45037
- (_formItemsMap$name3 = formItemsMap[name]) === null || _formItemsMap$name3 === void 0 ? void 0 : _formItemsMap$name3.resetValidate();
45038
- });
45039
- }
45040
- }
45041
-
45042
- function setValidateMessage(message) {
45043
- var formItemsMap = getFormItemsMap();
45044
- Object.keys(message).forEach(function (name) {
45045
- formItemsMap[name].setValidateMessage(message[name]);
45046
- });
45047
- }
45048
-
45049
- React.useImperativeHandle(ref, function () {
45050
- return {
45051
- currentElement: formRef.current,
45052
- submit: submitHandler,
45053
- reset: reset,
45054
- getFieldValue: getFieldValue,
45055
- getFieldsValue: getFieldsValue,
45056
- setFieldsValue: setFieldsValue,
45057
- setFields: setFields,
45058
- validate: validate,
45059
- clearValidate: clearValidate,
45060
- setValidateMessage: setValidateMessage
45061
- };
45062
- });
45063
-
45064
45112
  function onFormItemValueChange(changedValue) {
45065
45113
  var allFields = getFieldsValue(true);
45066
45114
  onValuesChange(changedValue, allFields);
@@ -45068,10 +45116,10 @@
45068
45116
 
45069
45117
  function onKeyDownHandler(e) {
45070
45118
  if (preventSubmitDefault && e.key === "Enter") {
45071
- var _e$preventDefault3, _e$stopPropagation3;
45119
+ var _e$preventDefault2, _e$stopPropagation2;
45072
45120
 
45073
- (_e$preventDefault3 = e.preventDefault) === null || _e$preventDefault3 === void 0 ? void 0 : _e$preventDefault3.call(e);
45074
- (_e$stopPropagation3 = e.stopPropagation) === null || _e$stopPropagation3 === void 0 ? void 0 : _e$stopPropagation3.call(e);
45121
+ (_e$preventDefault2 = e.preventDefault) === null || _e$preventDefault2 === void 0 ? void 0 : _e$preventDefault2.call(e);
45122
+ (_e$stopPropagation2 = e.stopPropagation) === null || _e$stopPropagation2 === void 0 ? void 0 : _e$stopPropagation2.call(e);
45075
45123
  }
45076
45124
  }
45077
45125
 
@@ -45097,8 +45145,8 @@
45097
45145
  ref: formRef,
45098
45146
  style: style,
45099
45147
  className: formClass,
45100
- onSubmit: submitHandler,
45101
- onReset: resetHandler,
45148
+ onSubmit: submit,
45149
+ onReset: onResetHandler,
45102
45150
  onKeyDown: onKeyDownHandler
45103
45151
  }, children));
45104
45152
  }, {
@@ -46690,7 +46738,8 @@
46690
46738
  var onChange = _ref.onChange,
46691
46739
  style = _ref.style,
46692
46740
  classPrefix = _ref.classPrefix,
46693
- toolTipProps = _ref.toolTipProps;
46741
+ toolTipProps = _ref.toolTipProps,
46742
+ hideTips = _ref.hideTips;
46694
46743
 
46695
46744
  var _useState = React.useState(false),
46696
46745
  _useState2 = _slicedToArray(_useState, 2),
@@ -46734,10 +46783,7 @@
46734
46783
  setPopupVisible(false);
46735
46784
  };
46736
46785
 
46737
- return /* @__PURE__ */React__default["default"].createElement(Tooltip$1, _objectSpread$c({
46738
- visible: popupVisible,
46739
- placement: "top"
46740
- }, toolTipProps), /* @__PURE__ */React__default["default"].createElement("div", {
46786
+ var handleNode = /* @__PURE__ */React__default["default"].createElement("div", {
46741
46787
  style: style,
46742
46788
  className: "".concat(classPrefix, "-slider__button-wrapper"),
46743
46789
  onMouseDown: function onMouseDown(e) {
@@ -46751,7 +46797,11 @@
46751
46797
  }
46752
46798
  }, /* @__PURE__ */React__default["default"].createElement("div", {
46753
46799
  className: classNames$1("".concat(classPrefix, "-slider__button"), _defineProperty$2({}, "".concat(classPrefix, "-slider__button--dragging"), isDragging))
46754
- })));
46800
+ }));
46801
+ return hideTips ? handleNode : /* @__PURE__ */React__default["default"].createElement(Tooltip$1, _objectSpread$c({
46802
+ visible: popupVisible,
46803
+ placement: "top"
46804
+ }, toolTipProps), handleNode);
46755
46805
  };
46756
46806
 
46757
46807
  function accAdd(arg1, arg2) {
@@ -46956,6 +47006,7 @@
46956
47006
  };
46957
47007
 
46958
47008
  var onSliderChange = function onSliderChange(event, nodeIndex) {
47009
+ if (disabled) return;
46959
47010
  var clientKey = isVertical ? "clientY" : "clientX";
46960
47011
  var sliderPositionInfo = sliderRef.current.getBoundingClientRect();
46961
47012
  var sliderOffset = sliderPositionInfo[startDirection];
@@ -46970,13 +47021,17 @@
46970
47021
 
46971
47022
  var createHandleButton = function createHandleButton(nodeIndex, style2) {
46972
47023
  var currentValue = renderValue[nodeIndex];
46973
- var tipLabel = typeof label === "string" ? label.replace(/\$\{value\}/g, currentValue.toString()) : label;
46974
- if (tipLabel === true || !tipLabel) tipLabel = currentValue;
47024
+ var tipLabel = currentValue;
47025
+ if (isFunction_1(label)) tipLabel = label({
47026
+ value: currentValue,
47027
+ position: nodeIndex === LEFT_NODE ? "start" : "end"
47028
+ });
47029
+ if (isString_1(label)) tipLabel = label.replace(/\$\{value\}/g, currentValue.toString());
46975
47030
  return /* @__PURE__ */React__default["default"].createElement(SliderHandleButton, {
46976
47031
  toolTipProps: _objectSpread$b({
46977
- disabled: label === false,
46978
47032
  content: tipLabel
46979
47033
  }, tooltipProps),
47034
+ hideTips: label === false,
46980
47035
  classPrefix: classPrefix,
46981
47036
  style: style2,
46982
47037
  onChange: function onChange(e) {
@@ -47089,7 +47144,7 @@
47089
47144
  setVisible(false);
47090
47145
  }
47091
47146
 
47092
- setValue(value2, "checked", node.getModel());
47147
+ setValue(value2, "check", node.getModel());
47093
47148
  }
47094
47149
  }
47095
47150
  function valueChangeEffect(node, cascaderContext) {
@@ -47138,7 +47193,7 @@
47138
47193
  setFilterActive(false);
47139
47194
  }
47140
47195
 
47141
- setValue(checked, "checked", node.getModel());
47196
+ setValue(checked, "check", node.getModel());
47142
47197
  }
47143
47198
 
47144
47199
  function getLabelIsEllipsis(node, size) {
@@ -47518,7 +47573,7 @@
47518
47573
  setValue = cascaderContext.setValue;
47519
47574
  if (disabled) return;
47520
47575
  var checked = node.setChecked(!node.isChecked());
47521
- setValue(checked, "unchecked", node.getModel());
47576
+ setValue(checked, "uncheck", node.getModel());
47522
47577
 
47523
47578
  if (isFunction_1(onRemove)) {
47524
47579
  onRemove({
@@ -50582,6 +50637,15 @@
50582
50637
  var TIME_FORMAT = "HH:mm:ss";
50583
50638
 
50584
50639
  var DatePicker$1 = function DatePicker(props) {
50640
+ var _useLocaleReceiver = useLocaleReceiver("datePicker"),
50641
+ _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 2),
50642
+ local = _useLocaleReceiver2[0],
50643
+ t = _useLocaleReceiver2[1];
50644
+
50645
+ var selectTimeText = t(local.selectTime);
50646
+ var selectDateText = t(local.selectDate);
50647
+ var confirmText = t(local.confirm);
50648
+ var rangeSeparatorText = t(local.rangeSeparator);
50585
50649
  var className = props.className,
50586
50650
  style = props.style,
50587
50651
  allowInput = props.allowInput,
@@ -50589,32 +50653,26 @@
50589
50653
  disabled = props.disabled,
50590
50654
  disableDate = props.disableDate,
50591
50655
  enableTimePicker = props.enableTimePicker,
50592
- format = props.format,
50656
+ _props$format = props.format,
50657
+ format = _props$format === void 0 ? "YYYY-MM-DD" : _props$format,
50593
50658
  inputProps = props.inputProps,
50594
- mode = props.mode,
50659
+ _props$mode = props.mode,
50660
+ mode = _props$mode === void 0 ? "month" : _props$mode,
50595
50661
  popupProps = props.popupProps,
50596
50662
  prefixIcon = props.prefixIcon,
50597
50663
  presets = props.presets,
50598
50664
  range = props.range,
50599
- size = props.size,
50665
+ _props$size = props.size,
50666
+ size = _props$size === void 0 ? "medium" : _props$size,
50600
50667
  suffixIcon = props.suffixIcon,
50601
50668
  value = props.value,
50602
50669
  defaultValue = props.defaultValue,
50603
50670
  firstDayOfWeek = props.firstDayOfWeek,
50671
+ _props$placeholder = props.placeholder,
50672
+ placeholder = _props$placeholder === void 0 ? t(local.placeholder[mode]) : _props$placeholder,
50604
50673
  onChange = props.onChange,
50605
50674
  onPick = props.onPick;
50606
50675
 
50607
- var _useLocaleReceiver = useLocaleReceiver("datePicker"),
50608
- _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 2),
50609
- local = _useLocaleReceiver2[0],
50610
- t = _useLocaleReceiver2[1];
50611
-
50612
- var selectTimeText = t(local.selectTime);
50613
- var selectDateText = t(local.selectDate);
50614
- var confirmText = t(local.confirm);
50615
- var rangeSeparatorText = t(local.rangeSeparator);
50616
- var placeholder = t(local.placeholder[mode]);
50617
-
50618
50676
  var _useConfig = useConfig$1(),
50619
50677
  classPrefix = _useConfig.classPrefix;
50620
50678
 
@@ -51058,20 +51116,104 @@
51058
51116
  };
51059
51117
 
51060
51118
  DatePicker$1.displayName = "DatePicker";
51061
- DatePicker$1.defaultProps = {
51062
- format: "YYYY-MM-DD",
51063
- mode: "month",
51064
- placeholder: "\u8BF7\u9009\u62E9",
51065
- size: "medium"
51066
- };
51067
51119
 
51068
51120
  var DatePicker = DatePicker$1;
51069
51121
 
51122
+ var CARD_SCALE = 210 / 332;
51123
+ var itemWidth = 0.415;
51124
+
51125
+ var disposeIndex = function disposeIndex(index, currentIndex, childrenLength) {
51126
+ if (currentIndex === 0 && index === childrenLength - 1) {
51127
+ return -1;
51128
+ }
51129
+
51130
+ if (currentIndex === childrenLength - 1 && index === 0) {
51131
+ return childrenLength;
51132
+ }
51133
+
51134
+ if (index < currentIndex - 1 && currentIndex - index >= childrenLength / 2) {
51135
+ return childrenLength + 1;
51136
+ }
51137
+
51138
+ if (index > currentIndex + 1 && index - currentIndex >= childrenLength / 2) {
51139
+ return -2;
51140
+ }
51141
+
51142
+ return index;
51143
+ };
51144
+
51145
+ var calculateTranslate = function calculateTranslate(index, currentIndex, parentWidth, inStage) {
51146
+ if (inStage) {
51147
+ return parentWidth * ((index - currentIndex) * (1 - itemWidth * CARD_SCALE) - itemWidth + 1) / 2;
51148
+ }
51149
+
51150
+ if (index < currentIndex) {
51151
+ return -itemWidth * (1 + CARD_SCALE) * parentWidth / 2;
51152
+ }
51153
+
51154
+ return (2 + itemWidth * (CARD_SCALE - 1)) * parentWidth / 2;
51155
+ };
51156
+
51157
+ var getZindex = function getZindex(isActivity, inStage) {
51158
+ if (isActivity) {
51159
+ return 2;
51160
+ }
51161
+
51162
+ if (inStage) {
51163
+ return 1;
51164
+ }
51165
+
51166
+ return 0;
51167
+ };
51168
+
51070
51169
  var SwiperItem = function SwiperItem(props) {
51170
+ var _classnames;
51171
+
51071
51172
  var children = props.children,
51072
- className = props.className;
51173
+ currentIndex = props.currentIndex,
51174
+ index = props.index,
51175
+ animation = props.animation,
51176
+ _props$duration = props.duration,
51177
+ duration = _props$duration === void 0 ? 300 : _props$duration,
51178
+ needAnimation = props.needAnimation,
51179
+ _props$type = props.type,
51180
+ type = _props$type === void 0 ? "default" : _props$type,
51181
+ childrenLength = props.childrenLength,
51182
+ getWrapAttribute = props.getWrapAttribute;
51183
+
51184
+ var _useConfig = useConfig$1(),
51185
+ classPrefix = _useConfig.classPrefix;
51186
+
51187
+ var getSwiperItemStyle = function getSwiperItemStyle() {
51188
+ if (animation === "fade") {
51189
+ return {
51190
+ opacity: currentIndex === index ? 1 : 0,
51191
+ transition: needAnimation ? "opacity ".concat(duration / 1e3, "s") : ""
51192
+ };
51193
+ }
51194
+
51195
+ if (type === "card") {
51196
+ var wrapWidth = getWrapAttribute("offsetWidth");
51197
+ var translateIndex = index !== currentIndex && childrenLength > 2 ? disposeIndex(index, currentIndex, childrenLength) : index;
51198
+ var inStage = Math.round(Math.abs(translateIndex - currentIndex)) <= 1;
51199
+ var translate = calculateTranslate(translateIndex, currentIndex, wrapWidth, inStage).toFixed(2);
51200
+ var isActivity = translateIndex === currentIndex;
51201
+ var zIndex = getZindex(isActivity, inStage);
51202
+ return {
51203
+ msTransform: "translateX(".concat(translate, "px) scale(").concat(isActivity ? 1 : CARD_SCALE, ")"),
51204
+ WebkitTransform: "translateX(".concat(translate, "px) scale(").concat(isActivity ? 1 : CARD_SCALE, ")"),
51205
+ transform: "translateX(".concat(translate, "px) scale(").concat(isActivity ? 1 : CARD_SCALE, ")"),
51206
+ transition: "transform ".concat(duration / 1e3, "s ease"),
51207
+ zIndex: zIndex
51208
+ };
51209
+ }
51210
+
51211
+ return {};
51212
+ };
51213
+
51073
51214
  return /* @__PURE__ */React__default["default"].createElement("div", {
51074
- className: className
51215
+ className: classNames$1("".concat(classPrefix, "-swiper__container__item"), (_classnames = {}, _defineProperty$2(_classnames, "".concat(classPrefix, "-swiper__card"), type === "card"), _defineProperty$2(_classnames, "".concat(classPrefix, "-is-active"), type === "card" && index === currentIndex), _defineProperty$2(_classnames, "".concat(classPrefix, "-swiper__fade"), animation === "fade"), _classnames)),
51216
+ style: getSwiperItemStyle()
51075
51217
  }, children);
51076
51218
  };
51077
51219
 
@@ -51081,10 +51223,22 @@
51081
51223
 
51082
51224
  function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
51083
51225
 
51226
+ var defaultNavigation = {
51227
+ placement: "inside",
51228
+ showSlideBtn: "always",
51229
+ size: "medium",
51230
+ type: "bars"
51231
+ };
51232
+
51084
51233
  var Swiper$1 = function Swiper(props) {
51085
- var _props$autoplay = props.autoplay,
51234
+ var _classnames4, _classnames5;
51235
+
51236
+ var _props$animation = props.animation,
51237
+ animation = _props$animation === void 0 ? "slide" : _props$animation,
51238
+ _props$autoplay = props.autoplay,
51086
51239
  autoplay = _props$autoplay === void 0 ? true : _props$autoplay,
51087
- current = props.current,
51240
+ _props$current = props.current,
51241
+ current = _props$current === void 0 ? 0 : _props$current,
51088
51242
  _props$defaultCurrent = props.defaultCurrent,
51089
51243
  defaultCurrent = _props$defaultCurrent === void 0 ? 0 : _props$defaultCurrent,
51090
51244
  _props$direction = props.direction,
@@ -51093,27 +51247,59 @@
51093
51247
  duration = _props$duration === void 0 ? 300 : _props$duration,
51094
51248
  _props$interval = props.interval,
51095
51249
  interval = _props$interval === void 0 ? 5e3 : _props$interval,
51250
+ _props$trigger = props.trigger,
51251
+ trigger = _props$trigger === void 0 ? "hover" : _props$trigger,
51252
+ height = props.height,
51253
+ _props$loop = props.loop,
51254
+ loop = _props$loop === void 0 ? true : _props$loop,
51255
+ _props$stopOnHover = props.stopOnHover,
51256
+ stopOnHover = _props$stopOnHover === void 0 ? true : _props$stopOnHover,
51096
51257
  _props$onChange = props.onChange,
51097
51258
  onChange = _props$onChange === void 0 ? noop$1 : _props$onChange,
51098
51259
  className = props.className,
51099
- children = props.children;
51260
+ children = props.children,
51261
+ navigation = props.navigation,
51262
+ _props$type = props.type,
51263
+ type = _props$type === void 0 ? "default" : _props$type;
51100
51264
 
51101
51265
  var _useConfig = useConfig$1(),
51102
51266
  classPrefix = _useConfig.classPrefix;
51103
51267
 
51268
+ var navigationConfig = defaultNavigation;
51269
+ var navigationNode = null;
51270
+
51271
+ if ( /*#__PURE__*/React.isValidElement(navigation)) {
51272
+ navigationNode = navigation;
51273
+ } else {
51274
+ navigationConfig = _objectSpread$4(_objectSpread$4({}, defaultNavigation), navigation);
51275
+ }
51276
+
51104
51277
  var _useState = React.useState(defaultCurrent),
51105
51278
  _useState2 = _slicedToArray(_useState, 2),
51106
51279
  currentIndex = _useState2[0],
51107
51280
  setCurrentIndex = _useState2[1];
51108
51281
 
51109
- var _useState3 = React.useState(true),
51282
+ var _useState3 = React.useState(false),
51110
51283
  _useState4 = _slicedToArray(_useState3, 2),
51111
- animation = _useState4[0],
51112
- setAnimation = _useState4[1];
51284
+ needAnimation = _useState4[0],
51285
+ setNeedAnimation = _useState4[1];
51286
+
51287
+ var _useState5 = React.useState(navigationConfig.showSlideBtn === "always"),
51288
+ _useState6 = _slicedToArray(_useState5, 2),
51289
+ arrowShow = _useState6[0],
51290
+ setArrowShow = _useState6[1];
51113
51291
 
51114
51292
  var swiperTimer = React.useRef(null);
51293
+ var swiperAnimationTimer = React.useRef(null);
51115
51294
  var isHovering = React.useRef(false);
51116
- var wrapperRef = React.useRef(null);
51295
+ var swiperWrap = React.useRef(null);
51296
+
51297
+ var getWrapAttribute = function getWrapAttribute(attr) {
51298
+ var _swiperWrap$current, _swiperWrap$current$p;
51299
+
51300
+ return (_swiperWrap$current = swiperWrap.current) === null || _swiperWrap$current === void 0 ? void 0 : (_swiperWrap$current$p = _swiperWrap$current.parentNode) === null || _swiperWrap$current$p === void 0 ? void 0 : _swiperWrap$current$p[attr];
51301
+ };
51302
+
51117
51303
  var childrenList = React.useMemo(function () {
51118
51304
  return React__default["default"].Children.toArray(children).filter(function (child) {
51119
51305
  return child.type.displayName === SwiperItem.displayName;
@@ -51121,22 +51307,28 @@
51121
51307
  }, [children]);
51122
51308
  var childrenLength = childrenList.length;
51123
51309
  var swiperItemList = childrenList.map(function (child, index) {
51124
- return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$4({
51125
- value: index
51126
- }, child.props));
51310
+ return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$4(_objectSpread$4({
51311
+ key: index,
51312
+ index: index,
51313
+ currentIndex: currentIndex,
51314
+ needAnimation: needAnimation,
51315
+ childrenLength: childrenLength,
51316
+ getWrapAttribute: getWrapAttribute
51317
+ }, props), child.props));
51127
51318
  });
51128
51319
 
51129
- if (childrenLength > 0) {
51320
+ if (childrenLength > 0 && type === "default") {
51130
51321
  var firstEle = swiperItemList[0];
51131
51322
  swiperItemList.push( /*#__PURE__*/React__default["default"].cloneElement(firstEle, _objectSpread$4(_objectSpread$4({}, firstEle.props), {}, {
51132
- key: "".concat(firstEle.key, "-cloned")
51323
+ key: childrenLength,
51324
+ index: childrenLength
51133
51325
  })));
51134
51326
  }
51135
51327
 
51136
51328
  var swiperItemLength = swiperItemList.length;
51137
51329
  var swiperTo = React.useCallback(function (index, context) {
51138
51330
  onChange(index % childrenLength, context);
51139
- setAnimation(true);
51331
+ setNeedAnimation(true);
51140
51332
  setCurrentIndex(index);
51141
51333
  }, [childrenLength, onChange]);
51142
51334
  var setTimer = React.useCallback(function () {
@@ -51154,78 +51346,241 @@
51154
51346
  swiperTimer.current = null;
51155
51347
  }
51156
51348
  }, []);
51349
+ var isEnd = React.useCallback(function () {
51350
+ if (type === "card") {
51351
+ return !loop && currentIndex + 1 >= swiperItemLength;
51352
+ }
51353
+
51354
+ return !loop && currentIndex + 2 >= swiperItemLength;
51355
+ }, [loop, currentIndex, swiperItemLength, type]);
51157
51356
  React.useEffect(function () {
51158
51357
  if (current !== void 0) {
51159
51358
  swiperTo(current % childrenLength, {
51160
- source: ""
51359
+ source: "autoplay"
51161
51360
  });
51162
51361
  }
51163
51362
  }, [current, childrenLength, swiperTo]);
51164
51363
  React.useEffect(function () {
51165
- if (!isHovering.current) {
51166
- clearTimer();
51167
- setTimer();
51364
+ if (currentIndex + 1 > swiperItemLength && type === "card") {
51365
+ return setCurrentIndex(0);
51168
51366
  }
51169
- }, [clearTimer, setTimer]);
51170
- React.useEffect(function () {
51171
- setTimeout(function () {
51172
- setAnimation(false);
51173
51367
 
51174
- if (currentIndex + 1 >= swiperItemLength) {
51368
+ if (swiperAnimationTimer.current) {
51369
+ clearTimeout(swiperAnimationTimer.current);
51370
+ swiperAnimationTimer.current = null;
51371
+ }
51372
+
51373
+ swiperAnimationTimer.current = setTimeout(function () {
51374
+ setNeedAnimation(false);
51375
+
51376
+ if (isEnd()) {
51377
+ clearTimer();
51378
+ }
51379
+
51380
+ if (currentIndex + 1 >= swiperItemLength && type !== "card") {
51175
51381
  setCurrentIndex(0);
51176
51382
  }
51177
51383
  }, duration + 50);
51178
- }, [currentIndex, swiperItemLength, duration, direction]);
51384
+ }, [currentIndex, swiperItemLength, duration, type, clearTimer, isEnd]);
51385
+ React.useEffect(function () {
51386
+ if (!isHovering.current || !stopOnHover) {
51387
+ clearTimer();
51388
+ setTimer();
51389
+ }
51390
+ }, [setTimer, clearTimer, stopOnHover]);
51179
51391
 
51180
51392
  var onMouseEnter = function onMouseEnter() {
51181
51393
  isHovering.current = true;
51182
- clearTimer();
51394
+
51395
+ if (stopOnHover) {
51396
+ clearTimer();
51397
+ }
51398
+
51399
+ if (navigationConfig.showSlideBtn === "hover") {
51400
+ setArrowShow(true);
51401
+ }
51183
51402
  };
51184
51403
 
51185
51404
  var onMouseLeave = function onMouseLeave() {
51186
51405
  isHovering.current = false;
51187
- setTimer();
51406
+
51407
+ if (!isEnd()) {
51408
+ setTimer();
51409
+ }
51410
+
51411
+ if (navigationConfig.showSlideBtn === "hover") {
51412
+ setArrowShow(false);
51413
+ }
51188
51414
  };
51189
51415
 
51190
- var wrapperStyle = {};
51416
+ var navMouseAction = function navMouseAction(action, index) {
51417
+ if (action === "enter"
51418
+ /* Enter */
51419
+ && trigger === "hover") {
51420
+ swiperTo(index, {
51421
+ source: "hover"
51422
+ });
51423
+ }
51191
51424
 
51192
- if (direction === "vertical") {
51193
- wrapperStyle = {
51194
- height: "".concat(swiperItemLength * 100, "%"),
51195
- top: "-".concat(currentIndex * 100, "%"),
51196
- transition: animation ? "top ".concat(duration / 1e3, "s") : ""
51197
- };
51198
- } else {
51199
- wrapperStyle = {
51200
- width: "".concat(swiperItemLength * 100, "%"),
51201
- left: "-".concat(currentIndex * 100, "%"),
51202
- transition: animation ? "left ".concat(duration / 1e3, "s") : ""
51203
- };
51204
- }
51425
+ if (action === "click"
51426
+ /* Click */
51427
+ && trigger === "click") {
51428
+ swiperTo(index, {
51429
+ source: "click"
51430
+ });
51431
+ }
51432
+ };
51433
+
51434
+ var arrowClick = function arrowClick(direction2) {
51435
+ if (needAnimation) {
51436
+ return false;
51437
+ }
51438
+
51439
+ if (direction2 === "right"
51440
+ /* Right */
51441
+ ) {
51442
+ if (type === "card") {
51443
+ return swiperTo(currentIndex + 1 >= swiperItemLength ? 0 : currentIndex + 1, {
51444
+ source: "click"
51445
+ });
51446
+ }
51447
+
51448
+ return swiperTo(currentIndex + 1, {
51449
+ source: "click"
51450
+ });
51451
+ }
51452
+
51453
+ if (direction2 === "left"
51454
+ /* Left */
51455
+ ) {
51456
+ if (currentIndex - 1 < 0) {
51457
+ return swiperTo(childrenLength - 1, {
51458
+ source: "click"
51459
+ });
51460
+ }
51461
+
51462
+ return swiperTo(currentIndex - 1, {
51463
+ source: "click"
51464
+ });
51465
+ }
51466
+ };
51467
+
51468
+ var createArrow = function createArrow(type2) {
51469
+ if (!arrowShow) {
51470
+ return "";
51471
+ }
51472
+
51473
+ if (navigationConfig.type === "fraction" && type2 === "default"
51474
+ /* Default */
51475
+ ) {
51476
+ return "";
51477
+ }
51478
+
51479
+ var fractionIndex = currentIndex + 1 > childrenLength ? 1 : currentIndex + 1;
51480
+ return /* @__PURE__ */React__default["default"].createElement("div", {
51481
+ className: classNames$1("".concat(classPrefix, "-swiper__arrow"), _defineProperty$2({}, "".concat(classPrefix, "-swiper__arrow--default"), type2 === "default"))
51482
+ }, /* @__PURE__ */React__default["default"].createElement("div", {
51483
+ className: "".concat(classPrefix, "-swiper__arrow-left"),
51484
+ onClick: function onClick() {
51485
+ return arrowClick("left"
51486
+ /* Left */
51487
+ );
51488
+ }
51489
+ }, /* @__PURE__ */React__default["default"].createElement(ChevronLeftIcon, null)), type2 === "fraction"
51490
+ /* Fraction */
51491
+ ? /* @__PURE__ */React__default["default"].createElement("div", {
51492
+ className: "".concat(classPrefix, "-swiper__navigation-text-fraction")
51493
+ }, fractionIndex, "/", childrenLength) : "", /* @__PURE__ */React__default["default"].createElement("div", {
51494
+ className: "".concat(classPrefix, "-swiper__arrow-right"),
51495
+ onClick: function onClick() {
51496
+ return arrowClick("right"
51497
+ /* Right */
51498
+ );
51499
+ }
51500
+ }, /* @__PURE__ */React__default["default"].createElement(ChevronRightIcon, null)));
51501
+ };
51502
+
51503
+ var createNavigation = function createNavigation() {
51504
+ if (navigationConfig.type === "fraction") {
51505
+ return /* @__PURE__ */React__default["default"].createElement("div", {
51506
+ className: classNames$1("".concat(classPrefix, "-swiper__navigation"), "".concat(classPrefix, "-swiper__navigation--fraction"))
51507
+ }, createArrow("fraction"
51508
+ /* Fraction */
51509
+ ));
51510
+ }
51511
+
51512
+ return navigationNode ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, navigationNode) : /* @__PURE__ */React__default["default"].createElement("ul", {
51513
+ className: classNames$1("".concat(classPrefix, "-swiper__navigation"), _defineProperty$2({}, "".concat(classPrefix, "-swiper__navigation-bars"), navigationConfig.type === "bars"))
51514
+ }, childrenList.map(function (_, i) {
51515
+ return /* @__PURE__ */React__default["default"].createElement("li", {
51516
+ key: i,
51517
+ className: classNames$1("".concat(classPrefix, "-swiper__navigation-item"), _defineProperty$2({}, "".concat(classPrefix, "-is-active"), i === currentIndex % childrenLength)),
51518
+ onClick: function onClick() {
51519
+ return navMouseAction("click"
51520
+ /* Click */
51521
+ , i);
51522
+ },
51523
+ onMouseEnter: function onMouseEnter() {
51524
+ return navMouseAction("enter"
51525
+ /* Enter */
51526
+ , i);
51527
+ },
51528
+ onMouseLeave: function onMouseLeave() {
51529
+ return navMouseAction("leave"
51530
+ /* Leave */
51531
+ , i);
51532
+ }
51533
+ }, /* @__PURE__ */React__default["default"].createElement("span", null));
51534
+ }));
51535
+ };
51536
+
51537
+ var getWrapperStyle = function getWrapperStyle() {
51538
+ var offsetHeight = height ? "".concat(height, "px") : "".concat(getWrapAttribute("offsetHeight"), "px");
51539
+
51540
+ if (type === "card" || animation === "fade") {
51541
+ return {
51542
+ height: offsetHeight
51543
+ };
51544
+ }
51545
+
51546
+ if (animation === "slide") {
51547
+ if (direction === "vertical") {
51548
+ return {
51549
+ height: offsetHeight,
51550
+ msTransform: "translate3d(0, -".concat(currentIndex * 100, "%, 0px)"),
51551
+ WebkitTransform: "translate3d(0, -".concat(currentIndex * 100, "%, 0px)"),
51552
+ transform: "translate3d(0, -".concat(currentIndex * 100, "%, 0px)"),
51553
+ transition: needAnimation ? "transform ".concat(duration / 1e3, "s ease") : ""
51554
+ };
51555
+ }
51556
+
51557
+ return {
51558
+ msTransform: "translate3d(-".concat(currentIndex * 100, "%, 0px, 0px)"),
51559
+ WebkitTransform: "translate3d(-".concat(currentIndex * 100, "%, 0px, 0px)"),
51560
+ transform: "translate3d(-".concat(currentIndex * 100, "%, 0px, 0px)"),
51561
+ transition: needAnimation ? "transform ".concat(duration / 1e3, "s ease") : ""
51562
+ };
51563
+ }
51564
+ };
51205
51565
 
51206
51566
  return /* @__PURE__ */React__default["default"].createElement("div", {
51207
51567
  className: classNames$1("".concat(classPrefix, "-swiper"), className),
51208
51568
  onMouseEnter: onMouseEnter,
51209
- onMouseLeave: onMouseLeave
51569
+ onMouseLeave: onMouseLeave,
51570
+ ref: swiperWrap
51210
51571
  }, /* @__PURE__ */React__default["default"].createElement("div", {
51211
- className: "".concat(classPrefix, "-swiper__content")
51572
+ className: classNames$1("".concat(classPrefix, "-swiper__wrap"), (_classnames4 = {}, _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--inside"), navigationConfig.placement === "inside"), _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--outside"), navigationConfig.placement === "outside"), _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--vertical"), direction === "vertical"), _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--large"), navigationConfig.size === "large"), _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--small"), navigationConfig.size === "small"), _classnames4))
51212
51573
  }, /* @__PURE__ */React__default["default"].createElement("div", {
51213
- ref: wrapperRef,
51214
- className: "".concat(classPrefix, "-swiper__swiper-wrap--").concat(direction),
51215
- style: wrapperStyle
51216
- }, swiperItemList)), /* @__PURE__ */React__default["default"].createElement("ul", {
51217
- className: "".concat(classPrefix, "-swiper__trigger-wrap")
51218
- }, childrenList.map(function (_, i) {
51219
- return /* @__PURE__ */React__default["default"].createElement("li", {
51220
- key: i,
51221
- className: i === currentIndex % childrenLength ? "".concat(classPrefix, "-swiper__trigger--active") : "",
51222
- onClick: function onClick() {
51223
- return swiperTo(i, {
51224
- source: "touch"
51225
- });
51226
- }
51227
- });
51228
- })));
51574
+ className: classNames$1("".concat(classPrefix, "-swiper__content"), (_classnames5 = {}, _defineProperty$2(_classnames5, "".concat(classPrefix, "-swiper-fade"), animation === "fade"), _defineProperty$2(_classnames5, "".concat(classPrefix, "-swiper-card"), type === "card"), _classnames5)),
51575
+ style: {
51576
+ height: ""
51577
+ }
51578
+ }, /* @__PURE__ */React__default["default"].createElement("div", {
51579
+ className: "".concat(classPrefix, "-swiper__container"),
51580
+ style: getWrapperStyle()
51581
+ }, swiperItemList)), createNavigation(), createArrow("default"
51582
+ /* Default */
51583
+ )));
51229
51584
  };
51230
51585
 
51231
51586
  Swiper$1.SwiperItem = SwiperItem;