tdesign-react 0.22.1 → 0.23.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 (2832) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/cjs/_chunks/dep-01eba63c.js +49 -0
  3. package/cjs/_chunks/dep-01eba63c.js.map +1 -0
  4. package/cjs/_chunks/dep-069dcce3.js +47 -0
  5. package/cjs/_chunks/dep-069dcce3.js.map +1 -0
  6. package/cjs/_chunks/dep-0ec4a40c.js +159 -0
  7. package/cjs/_chunks/dep-0ec4a40c.js.map +1 -0
  8. package/cjs/_chunks/dep-14268b89.js +47 -0
  9. package/cjs/_chunks/dep-14268b89.js.map +1 -0
  10. package/cjs/_chunks/dep-193075dd.js +28 -0
  11. package/cjs/_chunks/dep-193075dd.js.map +1 -0
  12. package/cjs/_chunks/dep-28c92f2b.js +26 -0
  13. package/cjs/_chunks/dep-28c92f2b.js.map +1 -0
  14. package/cjs/_chunks/dep-297336a6.js +161 -0
  15. package/cjs/_chunks/dep-297336a6.js.map +1 -0
  16. package/cjs/_chunks/dep-37063cf1.js +47 -0
  17. package/cjs/_chunks/dep-37063cf1.js.map +1 -0
  18. package/cjs/_chunks/dep-3936d71e.js +275 -0
  19. package/cjs/_chunks/dep-3936d71e.js.map +1 -0
  20. package/cjs/_chunks/dep-3d22a9b1.js +88 -0
  21. package/cjs/_chunks/dep-3d22a9b1.js.map +1 -0
  22. package/cjs/_chunks/dep-3e75c768.js +69 -0
  23. package/cjs/_chunks/dep-3e75c768.js.map +1 -0
  24. package/cjs/_chunks/dep-40adb9d6.js +568 -0
  25. package/cjs/_chunks/dep-40adb9d6.js.map +1 -0
  26. package/cjs/_chunks/dep-421ee0a3.js +110 -0
  27. package/cjs/_chunks/dep-421ee0a3.js.map +1 -0
  28. package/cjs/_chunks/dep-47177f07.js +36 -0
  29. package/cjs/_chunks/dep-47177f07.js.map +1 -0
  30. package/cjs/_chunks/dep-47be2d02.js +395 -0
  31. package/cjs/_chunks/dep-47be2d02.js.map +1 -0
  32. package/cjs/_chunks/dep-480f6d21.js +197 -0
  33. package/cjs/_chunks/dep-480f6d21.js.map +1 -0
  34. package/cjs/_chunks/dep-4af53794.js +30 -0
  35. package/cjs/_chunks/dep-4af53794.js.map +1 -0
  36. package/cjs/_chunks/dep-56755bdf.js +45 -0
  37. package/cjs/_chunks/dep-56755bdf.js.map +1 -0
  38. package/cjs/_chunks/dep-588b21da.js +232 -0
  39. package/cjs/_chunks/dep-588b21da.js.map +1 -0
  40. package/cjs/_chunks/dep-59d9cd64.js +772 -0
  41. package/cjs/_chunks/dep-59d9cd64.js.map +1 -0
  42. package/cjs/_chunks/dep-5c95645c.js +108 -0
  43. package/cjs/_chunks/dep-5c95645c.js.map +1 -0
  44. package/cjs/_chunks/dep-640a069e.js +95 -0
  45. package/cjs/_chunks/dep-640a069e.js.map +1 -0
  46. package/cjs/_chunks/dep-69db5a7a.js +308 -0
  47. package/cjs/_chunks/dep-69db5a7a.js.map +1 -0
  48. package/cjs/_chunks/dep-6df4e076.js +44 -0
  49. package/cjs/_chunks/dep-6df4e076.js.map +1 -0
  50. package/cjs/_chunks/dep-6e4749ac.js +25 -0
  51. package/cjs/_chunks/dep-6e4749ac.js.map +1 -0
  52. package/cjs/_chunks/dep-6f6f8585.js +132 -0
  53. package/cjs/_chunks/dep-6f6f8585.js.map +1 -0
  54. package/cjs/_chunks/dep-718240e7.js +97 -0
  55. package/cjs/_chunks/dep-718240e7.js.map +1 -0
  56. package/cjs/_chunks/dep-7a5a5782.js +20 -0
  57. package/cjs/_chunks/dep-7a5a5782.js.map +1 -0
  58. package/cjs/_chunks/dep-83c57744.js +51 -0
  59. package/cjs/_chunks/dep-83c57744.js.map +1 -0
  60. package/cjs/_chunks/dep-84adf720.js +54 -0
  61. package/cjs/_chunks/dep-84adf720.js.map +1 -0
  62. package/cjs/_chunks/dep-887ddf9a.js +57 -0
  63. package/cjs/_chunks/dep-887ddf9a.js.map +1 -0
  64. package/cjs/_chunks/dep-8d77d442.js +119 -0
  65. package/cjs/_chunks/dep-8d77d442.js.map +1 -0
  66. package/cjs/_chunks/dep-8e345302.js +18 -0
  67. package/cjs/_chunks/dep-8e345302.js.map +1 -0
  68. package/cjs/_chunks/dep-8efc45c5.js +27 -0
  69. package/cjs/_chunks/dep-8efc45c5.js.map +1 -0
  70. package/cjs/_chunks/dep-90afeac3.js +86 -0
  71. package/cjs/_chunks/dep-90afeac3.js.map +1 -0
  72. package/cjs/_chunks/dep-92c93e34.js +740 -0
  73. package/cjs/_chunks/dep-92c93e34.js.map +1 -0
  74. package/cjs/_chunks/dep-94d2a54a.js +34 -0
  75. package/cjs/_chunks/dep-94d2a54a.js.map +1 -0
  76. package/cjs/_chunks/dep-a0608a67.js +141 -0
  77. package/cjs/_chunks/dep-a0608a67.js.map +1 -0
  78. package/cjs/_chunks/dep-a27abb15.js +957 -0
  79. package/cjs/_chunks/dep-a27abb15.js.map +1 -0
  80. package/cjs/_chunks/dep-a5c11047.js +44 -0
  81. package/cjs/_chunks/dep-a5c11047.js.map +1 -0
  82. package/cjs/_chunks/dep-a767fd94.js +46 -0
  83. package/cjs/_chunks/dep-a767fd94.js.map +1 -0
  84. package/cjs/_chunks/dep-b102c53a.js +26 -0
  85. package/cjs/_chunks/dep-b102c53a.js.map +1 -0
  86. package/cjs/_chunks/dep-b9e73793.js +43 -0
  87. package/cjs/_chunks/dep-b9e73793.js.map +1 -0
  88. package/cjs/_chunks/dep-c1a327ec.js +75 -0
  89. package/cjs/_chunks/dep-c1a327ec.js.map +1 -0
  90. package/cjs/_chunks/dep-c5115095.js +35 -0
  91. package/cjs/_chunks/dep-c5115095.js.map +1 -0
  92. package/cjs/_chunks/dep-d02076c3.js +120 -0
  93. package/cjs/_chunks/dep-d02076c3.js.map +1 -0
  94. package/cjs/_chunks/dep-de5cb09f.js +201 -0
  95. package/cjs/_chunks/dep-de5cb09f.js.map +1 -0
  96. package/cjs/_chunks/dep-e9da3029.js +230 -0
  97. package/cjs/_chunks/dep-e9da3029.js.map +1 -0
  98. package/cjs/_chunks/dep-f17e069c.js +200 -0
  99. package/cjs/_chunks/dep-f17e069c.js.map +1 -0
  100. package/cjs/_chunks/dep-f25dd55b.js +52 -0
  101. package/cjs/_chunks/dep-f25dd55b.js.map +1 -0
  102. package/cjs/_chunks/dep-f40d66d2.js +20 -0
  103. package/cjs/_chunks/dep-f40d66d2.js.map +1 -0
  104. package/cjs/_chunks/dep-f481476f.js +47 -0
  105. package/cjs/_chunks/dep-f481476f.js.map +1 -0
  106. package/cjs/_chunks/dep-f9cc9672.js +864 -0
  107. package/cjs/_chunks/dep-f9cc9672.js.map +1 -0
  108. package/cjs/_chunks/dep-fda248de.js +28 -0
  109. package/cjs/_chunks/dep-fda248de.js.map +1 -0
  110. package/cjs/_common/js/common.d.ts +3 -0
  111. package/cjs/_common/js/common.js +1 -1
  112. package/cjs/_common/js/date-picker/utils.d.ts +87 -0
  113. package/cjs/_common/js/date-picker/utils.js +395 -0
  114. package/cjs/_common/js/date-picker/utils.js.map +1 -0
  115. package/cjs/_common/js/loading/circle-adapter.d.ts +1 -0
  116. package/cjs/_common/js/loading/circle-adapter.js +54 -0
  117. package/cjs/_common/js/loading/circle-adapter.js.map +1 -0
  118. package/cjs/_common/js/log/log.d.ts +3 -0
  119. package/cjs/_common/js/log/log.js +1 -1
  120. package/cjs/_common/js/log/types.d.ts +8 -0
  121. package/cjs/_common/js/log/types.js +1 -1
  122. package/cjs/_common/js/tree/tree-node-model.js +25 -24
  123. package/cjs/_common/js/tree/tree-node-model.js.map +1 -1
  124. package/cjs/_common/js/tree/tree-node.js +28 -27
  125. package/cjs/_common/js/tree/tree-node.js.map +1 -1
  126. package/cjs/_common/js/tree/tree-store.js +37 -36
  127. package/cjs/_common/js/tree/tree-store.js.map +1 -1
  128. package/cjs/_common/js/tree/types.js +1 -1
  129. package/cjs/_common/js/upload/types.js +1 -1
  130. package/cjs/_common/js/upload/xhr.js +1 -1
  131. package/cjs/_common/js/utils/set-style.d.ts +8 -0
  132. package/cjs/_common/js/utils/set-style.js +19 -0
  133. package/cjs/_common/js/utils/set-style.js.map +1 -0
  134. package/cjs/_util/callBoth.js +1 -1
  135. package/cjs/_util/composeRefs.js +4 -2
  136. package/cjs/_util/composeRefs.js.map +1 -1
  137. package/cjs/_util/dom.js +6 -6
  138. package/cjs/_util/easing.js +1 -1
  139. package/cjs/_util/forwardRefWithStatics.js +1 -1
  140. package/cjs/_util/getScrollbarWidth.js +1 -1
  141. package/cjs/_util/hasScrollBar.js +1 -1
  142. package/cjs/_util/helper.js +14 -14
  143. package/cjs/_util/injectValue.js +1 -1
  144. package/cjs/_util/insertCSS.js +1 -1
  145. package/cjs/_util/isCallable.js +1 -1
  146. package/cjs/_util/linearGradient.js +2 -2
  147. package/cjs/_util/noop.js +1 -1
  148. package/cjs/_util/number.js +1 -1
  149. package/cjs/_util/setStyle.js +1 -1
  150. package/cjs/_util/useClickOutside.js +1 -1
  151. package/cjs/_util/useCommonClassName.js +1 -1
  152. package/cjs/_util/useConfig.js +1 -1
  153. package/cjs/_util/useDefault.js +3 -3
  154. package/cjs/_util/useDefaultValue.js +5 -5
  155. package/cjs/_util/usePersistFn.js +1 -1
  156. package/cjs/_util/usePrevious.js +1 -1
  157. package/cjs/_util/useRefAndForward.js +1 -1
  158. package/cjs/_util/useRipple.js +1 -1
  159. package/cjs/_util/useSetState.js +4 -4
  160. package/cjs/_util/useUpdateEffect.js +1 -1
  161. package/cjs/addon/Addon.js +3 -3
  162. package/cjs/addon/index.js +3 -3
  163. package/cjs/affix/Affix.js +11 -11
  164. package/cjs/affix/index.js +11 -11
  165. package/cjs/affix/type.js +1 -1
  166. package/cjs/alert/Alert.js +5 -5
  167. package/cjs/alert/index.js +5 -5
  168. package/cjs/alert/type.js +1 -1
  169. package/cjs/anchor/Anchor.js +22 -21
  170. package/cjs/anchor/Anchor.js.map +1 -1
  171. package/cjs/anchor/AnchorContext.js +1 -1
  172. package/cjs/anchor/AnchorItem.js +2 -2
  173. package/cjs/anchor/AnchorTarget.js +11 -10
  174. package/cjs/anchor/AnchorTarget.js.map +1 -1
  175. package/cjs/anchor/_util/clipboard.js +1 -1
  176. package/cjs/anchor/_util/dom.js +1 -1
  177. package/cjs/anchor/index.js +22 -21
  178. package/cjs/anchor/index.js.map +1 -1
  179. package/cjs/anchor/type.js +1 -1
  180. package/cjs/avatar/AvararGroup.js +6 -7
  181. package/cjs/avatar/AvararGroup.js.map +1 -1
  182. package/cjs/avatar/Avatar.js +6 -7
  183. package/cjs/avatar/Avatar.js.map +1 -1
  184. package/cjs/avatar/AvatarContext.js +1 -1
  185. package/cjs/avatar/index.js +6 -7
  186. package/cjs/avatar/index.js.map +1 -1
  187. package/cjs/avatar/type.js +1 -1
  188. package/cjs/badge/Badge.js +3 -3
  189. package/cjs/badge/index.js +3 -3
  190. package/cjs/badge/type.js +1 -1
  191. package/cjs/breadcrumb/Breadcrumb.js +3 -3
  192. package/cjs/breadcrumb/BreadcrumbContext.js +1 -1
  193. package/cjs/breadcrumb/BreadcrumbItem.js +3 -3
  194. package/cjs/breadcrumb/BreadcrumbProps.js +1 -1
  195. package/cjs/breadcrumb/index.js +3 -3
  196. package/cjs/breadcrumb/type.js +1 -1
  197. package/cjs/button/Button.js +14 -12
  198. package/cjs/button/Button.js.map +1 -1
  199. package/cjs/button/index.js +12 -10
  200. package/cjs/button/index.js.map +1 -1
  201. package/cjs/button/type.js +1 -1
  202. package/cjs/calendar/Calendar.js +26 -25
  203. package/cjs/calendar/Calendar.js.map +1 -1
  204. package/cjs/calendar/_util.js +1 -1
  205. package/cjs/calendar/index.js +26 -25
  206. package/cjs/calendar/index.js.map +1 -1
  207. package/cjs/calendar/type.js +1 -1
  208. package/cjs/card/type.js +1 -1
  209. package/cjs/cascader/Cascader.js +47 -45
  210. package/cjs/cascader/Cascader.js.map +1 -1
  211. package/cjs/cascader/components/InputContent.js +20 -20
  212. package/cjs/cascader/components/Item.js +20 -19
  213. package/cjs/cascader/components/Item.js.map +1 -1
  214. package/cjs/cascader/components/Panel.js +20 -19
  215. package/cjs/cascader/components/Panel.js.map +1 -1
  216. package/cjs/cascader/index.js +47 -45
  217. package/cjs/cascader/index.js.map +1 -1
  218. package/cjs/cascader/interface.js +28 -27
  219. package/cjs/cascader/interface.js.map +1 -1
  220. package/cjs/cascader/type.js +1 -1
  221. package/cjs/cascader/utils/cascader.js +4 -4
  222. package/cjs/cascader/utils/helper.js +2 -2
  223. package/cjs/cascader/utils/inputContent.js +17 -17
  224. package/cjs/cascader/utils/item.js +4 -4
  225. package/cjs/cascader/utils/panel.js +7 -7
  226. package/cjs/checkbox/Checkbox.js +16 -16
  227. package/cjs/checkbox/CheckboxGroup.js +16 -16
  228. package/cjs/checkbox/index.js +16 -16
  229. package/cjs/checkbox/type.js +1 -1
  230. package/cjs/comment/Comment.js +1 -1
  231. package/cjs/comment/index.js +1 -1
  232. package/cjs/comment/type.js +1 -1
  233. package/cjs/common/Check.js +14 -14
  234. package/cjs/common/FakeArrow.js +2 -2
  235. package/cjs/common/Portal.js +4 -4
  236. package/cjs/common.js +1 -1
  237. package/cjs/config-provider/ConfigContext.js +1 -1
  238. package/cjs/config-provider/ConfigProvider.js +3 -3
  239. package/cjs/config-provider/index.js +3 -3
  240. package/cjs/config-provider/type.js +1 -1
  241. package/cjs/date-picker/DatePicker.js +32 -31
  242. package/cjs/date-picker/DatePicker.js.map +1 -1
  243. package/cjs/date-picker/base/CalendarPresets.js +12 -10
  244. package/cjs/date-picker/base/CalendarPresets.js.map +1 -1
  245. package/cjs/date-picker/base/Cell.js +2 -2
  246. package/cjs/date-picker/base/Header.js +12 -10
  247. package/cjs/date-picker/base/Header.js.map +1 -1
  248. package/cjs/date-picker/base/Table.js +4 -4
  249. package/cjs/date-picker/index.js +32 -31
  250. package/cjs/date-picker/index.js.map +1 -1
  251. package/cjs/date-picker/panel/Date.d.ts +2 -1
  252. package/cjs/date-picker/panel/Date.js +34 -32
  253. package/cjs/date-picker/panel/Date.js.map +1 -1
  254. package/cjs/date-picker/panel/DateRange.js +40 -38
  255. package/cjs/date-picker/panel/DateRange.js.map +1 -1
  256. package/cjs/date-picker/type.js +1 -1
  257. package/cjs/dialog/Dialog.js +12 -10
  258. package/cjs/dialog/Dialog.js.map +1 -1
  259. package/cjs/dialog/RenderDialog.js +5 -5
  260. package/cjs/dialog/index.js +12 -10
  261. package/cjs/dialog/index.js.map +1 -1
  262. package/cjs/dialog/plugin.js +12 -10
  263. package/cjs/dialog/plugin.js.map +1 -1
  264. package/cjs/dialog/type.d.ts +3 -9
  265. package/cjs/dialog/type.js +1 -1
  266. package/cjs/divider/Divider.js +17 -8
  267. package/cjs/divider/Divider.js.map +1 -1
  268. package/cjs/divider/index.js +3 -3
  269. package/cjs/divider/type.js +1 -1
  270. package/cjs/drawer/Drawer.js +13 -11
  271. package/cjs/drawer/Drawer.js.map +1 -1
  272. package/cjs/drawer/DrawerWrapper.js +4 -4
  273. package/cjs/drawer/_util.js +1 -1
  274. package/cjs/drawer/index.js +12 -10
  275. package/cjs/drawer/index.js.map +1 -1
  276. package/cjs/drawer/type.js +1 -1
  277. package/cjs/dropdown/Dropdown.js +36 -37
  278. package/cjs/dropdown/Dropdown.js.map +1 -1
  279. package/cjs/dropdown/DropdownItem.js +14 -14
  280. package/cjs/dropdown/DropdownMenu.js +15 -15
  281. package/cjs/dropdown/index.js +36 -37
  282. package/cjs/dropdown/index.js.map +1 -1
  283. package/cjs/dropdown/type.js +1 -1
  284. package/cjs/form/Form.d.ts +4 -1
  285. package/cjs/form/Form.js +70 -53
  286. package/cjs/form/Form.js.map +1 -1
  287. package/cjs/form/FormContext.js +1 -1
  288. package/cjs/form/FormItem.js +53 -41
  289. package/cjs/form/FormItem.js.map +1 -1
  290. package/cjs/form/formModel.js +26 -26
  291. package/cjs/form/index.js +46 -43
  292. package/cjs/form/index.js.map +1 -1
  293. package/cjs/form/type.js +1 -1
  294. package/cjs/grid/Col.js +5 -5
  295. package/cjs/grid/Row.js +7 -7
  296. package/cjs/grid/index.js +7 -7
  297. package/cjs/grid/type.js +1 -1
  298. package/cjs/index.js +60 -57
  299. package/cjs/index.js.map +1 -1
  300. package/cjs/input/Input.d.ts +8 -4
  301. package/cjs/input/Input.js +110 -51
  302. package/cjs/input/Input.js.map +1 -1
  303. package/cjs/input/InputGroup.js +3 -3
  304. package/cjs/input/index.d.ts +1 -1
  305. package/cjs/input/index.js +5 -9
  306. package/cjs/input/index.js.map +1 -1
  307. package/cjs/input/type.d.ts +28 -7
  308. package/cjs/input/type.js +1 -1
  309. package/cjs/input-number/InputNumber.js +12 -12
  310. package/cjs/input-number/StepHandler.js +12 -10
  311. package/cjs/input-number/StepHandler.js.map +1 -1
  312. package/cjs/input-number/index.js +12 -12
  313. package/cjs/input-number/type.js +1 -1
  314. package/cjs/input-number/utils/numberUtils.js +1 -1
  315. package/cjs/layout/Aside.js +3 -3
  316. package/cjs/layout/Layout.js +6 -6
  317. package/cjs/layout/index.js +6 -6
  318. package/cjs/layout/type.js +1 -1
  319. package/cjs/list/List.js +11 -9
  320. package/cjs/list/List.js.map +1 -1
  321. package/cjs/list/ListItem.js +1 -1
  322. package/cjs/list/ListItemMeta.js +1 -1
  323. package/cjs/list/index.js +11 -9
  324. package/cjs/list/index.js.map +1 -1
  325. package/cjs/list/type.js +1 -1
  326. package/cjs/loading/gradient.js +5 -45
  327. package/cjs/loading/gradient.js.map +1 -1
  328. package/cjs/loading/index.js +11 -9
  329. package/cjs/loading/index.js.map +1 -1
  330. package/cjs/loading/loading.js +19 -12
  331. package/cjs/loading/loading.js.map +1 -1
  332. package/cjs/loading/plugin.js +11 -9
  333. package/cjs/loading/plugin.js.map +1 -1
  334. package/cjs/loading/type.js +1 -1
  335. package/cjs/locale/LocalReceiver.js +2 -2
  336. package/cjs/locale/type.js +1 -1
  337. package/cjs/locale/zh_CN.js +2 -2
  338. package/cjs/locale/zh_CN.js.map +1 -1
  339. package/cjs/menu/HeadMenu.js +7 -7
  340. package/cjs/menu/Menu.js +7 -7
  341. package/cjs/menu/MenuContext.js +1 -1
  342. package/cjs/menu/MenuGroup.js +1 -1
  343. package/cjs/menu/MenuItem.js +2 -2
  344. package/cjs/menu/SubMenu.js +4 -4
  345. package/cjs/menu/_util/cacularPaddingLeft.js +1 -1
  346. package/cjs/menu/_util/checkMenuType.js +1 -1
  347. package/cjs/menu/_util/checkSubMenuActive.js +1 -1
  348. package/cjs/menu/_util/checkSubMenuChildExpanded.js +3 -3
  349. package/cjs/menu/_util/checkSubMenuChildrenActive.js +1 -1
  350. package/cjs/menu/_util/constant.js +1 -1
  351. package/cjs/menu/_util/getSubMenuChildStyle.js +1 -1
  352. package/cjs/menu/_util/type.js +1 -1
  353. package/cjs/menu/hooks/useMenuContext.js +5 -5
  354. package/cjs/menu/index.js +7 -7
  355. package/cjs/menu/type.js +1 -1
  356. package/cjs/message/Message.js +11 -9
  357. package/cjs/message/Message.js.map +1 -1
  358. package/cjs/message/MessageClose.js +1 -1
  359. package/cjs/message/MessageComponent.js +11 -9
  360. package/cjs/message/MessageComponent.js.map +1 -1
  361. package/cjs/message/MessageIcon.js +11 -9
  362. package/cjs/message/MessageIcon.js.map +1 -1
  363. package/cjs/message/const.js +1 -1
  364. package/cjs/message/index.js +11 -9
  365. package/cjs/message/index.js.map +1 -1
  366. package/cjs/message/type.js +1 -1
  367. package/cjs/message/useMessageClass.js +1 -1
  368. package/cjs/notification/Notification.js +3 -3
  369. package/cjs/notification/NotificationList.js +5 -5
  370. package/cjs/notification/NotificationPlugin.js +6 -6
  371. package/cjs/notification/index.js +6 -6
  372. package/cjs/notification/type.js +1 -1
  373. package/cjs/pagination/Pagination.js +22 -21
  374. package/cjs/pagination/Pagination.js.map +1 -1
  375. package/cjs/pagination/index.js +22 -21
  376. package/cjs/pagination/index.js.map +1 -1
  377. package/cjs/pagination/type.js +1 -1
  378. package/cjs/pagination/validators.js +1 -1
  379. package/cjs/popconfirm/PopConfirm.js +13 -12
  380. package/cjs/popconfirm/PopConfirm.js.map +1 -1
  381. package/cjs/popconfirm/PopContent.js +12 -10
  382. package/cjs/popconfirm/PopContent.js.map +1 -1
  383. package/cjs/popconfirm/index.js +13 -12
  384. package/cjs/popconfirm/index.js.map +1 -1
  385. package/cjs/popconfirm/type.js +1 -1
  386. package/cjs/popup/Popup.js +45 -63
  387. package/cjs/popup/Popup.js.map +1 -1
  388. package/cjs/popup/Portal.js +1 -1
  389. package/cjs/popup/hooks/usePopupCssTransition.js +8 -5
  390. package/cjs/popup/hooks/usePopupCssTransition.js.map +1 -1
  391. package/cjs/popup/hooks/useTriggerProps.js +1 -1
  392. package/cjs/popup/index.js +4 -5
  393. package/cjs/popup/index.js.map +1 -1
  394. package/cjs/popup/type.js +1 -1
  395. package/cjs/progress/Progress.js +3 -3
  396. package/cjs/progress/index.js +3 -3
  397. package/cjs/progress/type.js +1 -1
  398. package/cjs/radio/Radio.js +15 -15
  399. package/cjs/radio/RadioGroup.js +15 -15
  400. package/cjs/radio/index.js +15 -15
  401. package/cjs/radio/type.js +1 -1
  402. package/cjs/rate/type.js +1 -1
  403. package/cjs/select/base/Option.js +16 -16
  404. package/cjs/select/base/OptionGroup.js +2 -2
  405. package/cjs/select/base/PopupContent.js +20 -20
  406. package/cjs/select/base/Select.js +22 -21
  407. package/cjs/select/base/Select.js.map +1 -1
  408. package/cjs/select/index.js +22 -21
  409. package/cjs/select/index.js.map +1 -1
  410. package/cjs/select/type.js +1 -1
  411. package/cjs/select/util/helper.js +18 -18
  412. package/cjs/skeleton/type.js +1 -1
  413. package/cjs/slider/Slider.js +12 -13
  414. package/cjs/slider/Slider.js.map +1 -1
  415. package/cjs/slider/SliderHandleButton.js +6 -7
  416. package/cjs/slider/SliderHandleButton.js.map +1 -1
  417. package/cjs/slider/index.js +12 -13
  418. package/cjs/slider/index.js.map +1 -1
  419. package/cjs/slider/type.js +1 -1
  420. package/cjs/slider/utils/handleNumber.js +1 -1
  421. package/cjs/steps/StepItem.js +2 -2
  422. package/cjs/steps/Steps.js +2 -2
  423. package/cjs/steps/StepsContext.js +1 -1
  424. package/cjs/steps/index.js +2 -2
  425. package/cjs/steps/type.js +1 -1
  426. package/cjs/sticky-tool/type.js +1 -1
  427. package/cjs/swiper/Swiper.js +4 -4
  428. package/cjs/swiper/SwiperItem.js +1 -1
  429. package/cjs/swiper/index.js +4 -4
  430. package/cjs/swiper/type.js +1 -1
  431. package/cjs/switch/Switch.js +12 -10
  432. package/cjs/switch/Switch.js.map +1 -1
  433. package/cjs/switch/index.js +12 -10
  434. package/cjs/switch/index.js.map +1 -1
  435. package/cjs/switch/type.js +1 -1
  436. package/cjs/table/base/Table.d.ts +2 -1
  437. package/cjs/table/base/Table.js +32 -28
  438. package/cjs/table/base/Table.js.map +1 -1
  439. package/cjs/table/base/TableAsyncLoadingBody.js +13 -11
  440. package/cjs/table/base/TableAsyncLoadingBody.js.map +1 -1
  441. package/cjs/table/base/TableBody.js +17 -17
  442. package/cjs/table/base/TableCell.js +4 -4
  443. package/cjs/table/base/TableColGroup.js +1 -1
  444. package/cjs/table/base/TableContext.js +1 -1
  445. package/cjs/table/base/TableEmptyBody.js +1 -1
  446. package/cjs/table/base/TableFooter.js +1 -1
  447. package/cjs/table/base/TableHeader.js +10 -10
  448. package/cjs/table/base/TableLoadingBody.js +5 -5
  449. package/cjs/table/base/TableRow.js +17 -17
  450. package/cjs/table/hooks/useColumns.js +4 -4
  451. package/cjs/table/index.js +29 -28
  452. package/cjs/table/index.js.map +1 -1
  453. package/cjs/table/primary/FilterButton.js +20 -21
  454. package/cjs/table/primary/FilterButton.js.map +1 -1
  455. package/cjs/table/primary/SorterButton.js +6 -7
  456. package/cjs/table/primary/SorterButton.js.map +1 -1
  457. package/cjs/table/primary/Table.js +29 -28
  458. package/cjs/table/primary/Table.js.map +1 -1
  459. package/cjs/table/primary/expand-box.js +2 -2
  460. package/cjs/table/primary/useExpand.js +17 -17
  461. package/cjs/table/primary/useFilter.js +20 -21
  462. package/cjs/table/primary/useFilter.js.map +1 -1
  463. package/cjs/table/primary/useSelect.js +20 -20
  464. package/cjs/table/primary/useSorter.js +18 -19
  465. package/cjs/table/primary/useSorter.js.map +1 -1
  466. package/cjs/table/type.js +1 -1
  467. package/cjs/table/util/getRowKeyFromRowKey.js +1 -1
  468. package/cjs/table/util/index.js +1 -1
  469. package/cjs/tabs/TabBar.js +4 -4
  470. package/cjs/tabs/TabNav.js +4 -4
  471. package/cjs/tabs/TabNavItem.js +1 -1
  472. package/cjs/tabs/TabPanel.js +1 -1
  473. package/cjs/tabs/Tabs.js +4 -4
  474. package/cjs/tabs/index.js +4 -4
  475. package/cjs/tabs/type.js +1 -1
  476. package/cjs/tabs/useTabClass.js +1 -1
  477. package/cjs/tag/CheckTag.js +5 -5
  478. package/cjs/tag/Tag.js +5 -5
  479. package/cjs/tag/index.js +5 -5
  480. package/cjs/tag/type.js +1 -1
  481. package/cjs/textarea/Textarea.js +14 -14
  482. package/cjs/textarea/index.js +14 -14
  483. package/cjs/textarea/type.js +1 -1
  484. package/cjs/time-picker/InputItems.js +38 -28
  485. package/cjs/time-picker/InputItems.js.map +1 -1
  486. package/cjs/time-picker/TimePicker.js +29 -28
  487. package/cjs/time-picker/TimePicker.js.map +1 -1
  488. package/cjs/time-picker/TimeRangePicker.js +29 -28
  489. package/cjs/time-picker/TimeRangePicker.js.map +1 -1
  490. package/cjs/time-picker/consts.js +4 -4
  491. package/cjs/time-picker/index.js +29 -28
  492. package/cjs/time-picker/index.js.map +1 -1
  493. package/cjs/time-picker/interfaces.js +1 -1
  494. package/cjs/time-picker/panel/SinglePanel.js +24 -24
  495. package/cjs/time-picker/panel/TimePickerPanel.js +28 -26
  496. package/cjs/time-picker/panel/TimePickerPanel.js.map +1 -1
  497. package/cjs/time-picker/panel/TimePickerRangePanel.js +28 -26
  498. package/cjs/time-picker/panel/TimePickerRangePanel.js.map +1 -1
  499. package/cjs/time-picker/type.js +1 -1
  500. package/cjs/tooltip/Tooltip.js +6 -7
  501. package/cjs/tooltip/Tooltip.js.map +1 -1
  502. package/cjs/tooltip/index.js +6 -7
  503. package/cjs/tooltip/index.js.map +1 -1
  504. package/cjs/tooltip/type.js +1 -1
  505. package/cjs/transfer/Transfer.js +39 -38
  506. package/cjs/transfer/Transfer.js.map +1 -1
  507. package/cjs/transfer/TransferList.js +34 -33
  508. package/cjs/transfer/TransferList.js.map +1 -1
  509. package/cjs/transfer/index.js +39 -38
  510. package/cjs/transfer/index.js.map +1 -1
  511. package/cjs/transfer/type.js +1 -1
  512. package/cjs/transfer/utils.js +17 -17
  513. package/cjs/tree/Tree.js +48 -45
  514. package/cjs/tree/Tree.js.map +1 -1
  515. package/cjs/tree/TreeItem.js +19 -17
  516. package/cjs/tree/TreeItem.js.map +1 -1
  517. package/cjs/tree/index.js +48 -45
  518. package/cjs/tree/index.js.map +1 -1
  519. package/cjs/tree/interface.js +1 -1
  520. package/cjs/tree/type.js +1 -1
  521. package/cjs/tree/useControllable.js +3 -3
  522. package/cjs/tree/useStore.js +41 -40
  523. package/cjs/tree/useStore.js.map +1 -1
  524. package/cjs/tree/useTreeConfig.js +1 -1
  525. package/cjs/tree-select/TreeSelect.js +49 -47
  526. package/cjs/tree-select/TreeSelect.js.map +1 -1
  527. package/cjs/tree-select/TreeSelectInput.js +21 -21
  528. package/cjs/tree-select/TreeSelectSuffix.js +22 -20
  529. package/cjs/tree-select/TreeSelectSuffix.js.map +1 -1
  530. package/cjs/tree-select/TreeSelectTags.js +5 -5
  531. package/cjs/tree-select/index.js +49 -47
  532. package/cjs/tree-select/index.js.map +1 -1
  533. package/cjs/tree-select/type.js +1 -1
  534. package/cjs/tree-select/useTreeSelectConfig.js +2 -2
  535. package/cjs/upload/boolean-render.js +1 -1
  536. package/cjs/upload/dragger.js +13 -11
  537. package/cjs/upload/dragger.js.map +1 -1
  538. package/cjs/upload/hooks/useDefaultValue.js +6 -6
  539. package/cjs/upload/hooks/useSizeLimit.d.ts +2 -0
  540. package/cjs/upload/hooks/useSizeLimit.js +67 -0
  541. package/cjs/upload/hooks/useSizeLimit.js.map +1 -0
  542. package/cjs/upload/index.js +39 -36
  543. package/cjs/upload/index.js.map +1 -1
  544. package/cjs/upload/themes/dragger-progress.js +13 -11
  545. package/cjs/upload/themes/dragger-progress.js.map +1 -1
  546. package/cjs/upload/themes/flow-list/file-list.js +12 -10
  547. package/cjs/upload/themes/flow-list/file-list.js.map +1 -1
  548. package/cjs/upload/themes/flow-list/img-list.js +12 -10
  549. package/cjs/upload/themes/flow-list/img-list.js.map +1 -1
  550. package/cjs/upload/themes/flow-list/index.js +13 -11
  551. package/cjs/upload/themes/flow-list/index.js.map +1 -1
  552. package/cjs/upload/themes/image-card.js +13 -11
  553. package/cjs/upload/themes/image-card.js.map +1 -1
  554. package/cjs/upload/themes/single-file.js +11 -9
  555. package/cjs/upload/themes/single-file.js.map +1 -1
  556. package/cjs/upload/tips.js +1 -1
  557. package/cjs/upload/type.d.ts +3 -2
  558. package/cjs/upload/type.js +1 -1
  559. package/cjs/upload/types.js +1 -1
  560. package/cjs/upload/upload-trigger.js +12 -10
  561. package/cjs/upload/upload-trigger.js.map +1 -1
  562. package/cjs/upload/upload.js +58 -44
  563. package/cjs/upload/upload.js.map +1 -1
  564. package/cjs/upload/util.js +3 -3
  565. package/dist/tdesign.css +119 -55
  566. package/dist/tdesign.css.map +1 -1
  567. package/dist/tdesign.js +2001 -1696
  568. package/dist/tdesign.js.map +1 -1
  569. package/dist/tdesign.min.css +1 -1
  570. package/dist/tdesign.min.css.map +1 -1
  571. package/dist/tdesign.min.js +4 -4
  572. package/dist/tdesign.min.js.map +1 -1
  573. package/es/_chunks/dep-045d914f.js +26 -0
  574. package/es/_chunks/dep-045d914f.js.map +1 -0
  575. package/es/_chunks/dep-07388879.js +222 -0
  576. package/es/_chunks/dep-07388879.js.map +1 -0
  577. package/es/_chunks/dep-184b21c3.js +108 -0
  578. package/es/_chunks/dep-184b21c3.js.map +1 -0
  579. package/es/_chunks/dep-1ae028f2.js +50 -0
  580. package/es/_chunks/dep-1ae028f2.js.map +1 -0
  581. package/es/_chunks/dep-1bcb0f03.js +47 -0
  582. package/es/_chunks/dep-1bcb0f03.js.map +1 -0
  583. package/es/_chunks/dep-26028aac.js +34 -0
  584. package/es/_chunks/dep-26028aac.js.map +1 -0
  585. package/es/_chunks/dep-27db1e3c.js +49 -0
  586. package/es/_chunks/dep-27db1e3c.js.map +1 -0
  587. package/es/_chunks/dep-30477921.js +865 -0
  588. package/es/_chunks/dep-30477921.js.map +1 -0
  589. package/es/_chunks/dep-33e85467.js +26 -0
  590. package/es/_chunks/dep-33e85467.js.map +1 -0
  591. package/es/_chunks/dep-36ec1fee.js +232 -0
  592. package/es/_chunks/dep-36ec1fee.js.map +1 -0
  593. package/es/_chunks/dep-3882ffcd.js +41 -0
  594. package/es/_chunks/dep-3882ffcd.js.map +1 -0
  595. package/es/_chunks/dep-3a07fdc5.js +735 -0
  596. package/es/_chunks/dep-3a07fdc5.js.map +1 -0
  597. package/es/_chunks/dep-3ef615a3.js +52 -0
  598. package/es/_chunks/dep-3ef615a3.js.map +1 -0
  599. package/es/_chunks/dep-42431ee2.js +56 -0
  600. package/es/_chunks/dep-42431ee2.js.map +1 -0
  601. package/es/_chunks/dep-42dfd306.js +27 -0
  602. package/es/_chunks/dep-42dfd306.js.map +1 -0
  603. package/es/_chunks/dep-442ff40f.js +52 -0
  604. package/es/_chunks/dep-442ff40f.js.map +1 -0
  605. package/es/_chunks/dep-44534aa1.js +68 -0
  606. package/es/_chunks/dep-44534aa1.js.map +1 -0
  607. package/es/_chunks/dep-45ba95e4.js +93 -0
  608. package/es/_chunks/dep-45ba95e4.js.map +1 -0
  609. package/es/_chunks/dep-50f46574.js +48 -0
  610. package/es/_chunks/dep-50f46574.js.map +1 -0
  611. package/es/_chunks/dep-5154a629.js +154 -0
  612. package/es/_chunks/dep-5154a629.js.map +1 -0
  613. package/es/_chunks/dep-5469de86.js +158 -0
  614. package/es/_chunks/dep-5469de86.js.map +1 -0
  615. package/es/_chunks/dep-55ec31d6.js +18 -0
  616. package/es/_chunks/dep-55ec31d6.js.map +1 -0
  617. package/es/_chunks/dep-5c879b29.js +200 -0
  618. package/es/_chunks/dep-5c879b29.js.map +1 -0
  619. package/es/_chunks/dep-61768ea7.js +45 -0
  620. package/es/_chunks/dep-61768ea7.js.map +1 -0
  621. package/es/_chunks/dep-6216481e.js +84 -0
  622. package/es/_chunks/dep-6216481e.js.map +1 -0
  623. package/es/_chunks/dep-68236d72.js +954 -0
  624. package/es/_chunks/dep-68236d72.js.map +1 -0
  625. package/es/_chunks/dep-71117f38.js +47 -0
  626. package/es/_chunks/dep-71117f38.js.map +1 -0
  627. package/es/_chunks/dep-711e796f.js +117 -0
  628. package/es/_chunks/dep-711e796f.js.map +1 -0
  629. package/es/_chunks/dep-72ef6cf6.js +23 -0
  630. package/es/_chunks/dep-72ef6cf6.js.map +1 -0
  631. package/es/_chunks/dep-7556f79a.js +388 -0
  632. package/es/_chunks/dep-7556f79a.js.map +1 -0
  633. package/es/_chunks/dep-8fede92a.js +305 -0
  634. package/es/_chunks/dep-8fede92a.js.map +1 -0
  635. package/es/_chunks/dep-9825193d.js +8 -0
  636. package/es/_chunks/dep-9825193d.js.map +1 -0
  637. package/es/_chunks/dep-98b17dae.js +75 -0
  638. package/es/_chunks/dep-98b17dae.js.map +1 -0
  639. package/es/_chunks/dep-9bf19387.js +567 -0
  640. package/es/_chunks/dep-9bf19387.js.map +1 -0
  641. package/es/_chunks/dep-9f46a2fc.js +8 -0
  642. package/es/_chunks/dep-9f46a2fc.js.map +1 -0
  643. package/es/_chunks/dep-9f80f9d6.js +129 -0
  644. package/es/_chunks/dep-9f80f9d6.js.map +1 -0
  645. package/es/_chunks/dep-a2bc34d5.js +26 -0
  646. package/es/_chunks/dep-a2bc34d5.js.map +1 -0
  647. package/es/_chunks/dep-a3ebf465.js +45 -0
  648. package/es/_chunks/dep-a3ebf465.js.map +1 -0
  649. package/es/_chunks/dep-a57a3adc.js +26 -0
  650. package/es/_chunks/dep-a57a3adc.js.map +1 -0
  651. package/es/_chunks/dep-a57dc5be.js +8 -0
  652. package/es/_chunks/dep-a57dc5be.js.map +1 -0
  653. package/es/_chunks/dep-abd9fbed.js +17 -0
  654. package/es/_chunks/dep-abd9fbed.js.map +1 -0
  655. package/es/_chunks/dep-ae12755c.js +36 -0
  656. package/es/_chunks/dep-ae12755c.js.map +1 -0
  657. package/es/_chunks/dep-b4546e0e.js +27 -0
  658. package/es/_chunks/dep-b4546e0e.js.map +1 -0
  659. package/es/_chunks/dep-ba7f3134.js +44 -0
  660. package/es/_chunks/dep-ba7f3134.js.map +1 -0
  661. package/es/_chunks/dep-be6500d4.js +274 -0
  662. package/es/_chunks/dep-be6500d4.js.map +1 -0
  663. package/es/_chunks/dep-c27cb807.js +197 -0
  664. package/es/_chunks/dep-c27cb807.js.map +1 -0
  665. package/es/_chunks/dep-c55cb8a1.js +97 -0
  666. package/es/_chunks/dep-c55cb8a1.js.map +1 -0
  667. package/es/_chunks/dep-c611ea38.js +42 -0
  668. package/es/_chunks/dep-c611ea38.js.map +1 -0
  669. package/es/_chunks/dep-cbb0c1c0.js +85 -0
  670. package/es/_chunks/dep-cbb0c1c0.js.map +1 -0
  671. package/es/_chunks/dep-cdcdc773.js +129 -0
  672. package/es/_chunks/dep-cdcdc773.js.map +1 -0
  673. package/es/_chunks/dep-d4c7e673.js +33 -0
  674. package/es/_chunks/dep-d4c7e673.js.map +1 -0
  675. package/es/_chunks/dep-e273b26f.js +19 -0
  676. package/es/_chunks/dep-e273b26f.js.map +1 -0
  677. package/es/_chunks/dep-ec5da0c1.js +108 -0
  678. package/es/_chunks/dep-ec5da0c1.js.map +1 -0
  679. package/es/_chunks/dep-eddcc10b.js +773 -0
  680. package/es/_chunks/dep-eddcc10b.js.map +1 -0
  681. package/es/_chunks/dep-f253fe70.js +119 -0
  682. package/es/_chunks/dep-f253fe70.js.map +1 -0
  683. package/es/_chunks/dep-f2705322.js +190 -0
  684. package/es/_chunks/dep-f2705322.js.map +1 -0
  685. package/es/_chunks/dep-f326b5da.js +42 -0
  686. package/es/_chunks/dep-f326b5da.js.map +1 -0
  687. package/es/_chunks/dep-fa30ac54.js +47 -0
  688. package/es/_chunks/dep-fa30ac54.js.map +1 -0
  689. package/es/_common/js/common.d.ts +3 -0
  690. package/es/_common/js/common.js +1 -1
  691. package/es/_common/js/date-picker/utils.d.ts +87 -0
  692. package/es/_common/js/date-picker/utils.js +382 -0
  693. package/es/_common/js/date-picker/utils.js.map +1 -0
  694. package/es/_common/js/loading/circle-adapter.d.ts +1 -0
  695. package/es/_common/js/loading/circle-adapter.js +50 -0
  696. package/es/_common/js/loading/circle-adapter.js.map +1 -0
  697. package/es/_common/js/log/log.d.ts +3 -0
  698. package/es/_common/js/log/log.js +1 -1
  699. package/es/_common/js/log/types.d.ts +8 -0
  700. package/es/_common/js/log/types.js +1 -1
  701. package/es/_common/js/tree/tree-node-model.js +29 -28
  702. package/es/_common/js/tree/tree-node-model.js.map +1 -1
  703. package/es/_common/js/tree/tree-node.js +32 -31
  704. package/es/_common/js/tree/tree-node.js.map +1 -1
  705. package/es/_common/js/tree/tree-store.js +41 -40
  706. package/es/_common/js/tree/tree-store.js.map +1 -1
  707. package/es/_common/js/tree/types.js +1 -1
  708. package/es/_common/js/upload/types.js +1 -1
  709. package/es/_common/js/upload/xhr.js +1 -1
  710. package/es/_common/js/utils/set-style.d.ts +8 -0
  711. package/es/_common/js/utils/set-style.js +15 -0
  712. package/es/_common/js/utils/set-style.js.map +1 -0
  713. package/es/_util/callBoth.js +1 -1
  714. package/es/_util/composeRefs.js +4 -2
  715. package/es/_util/composeRefs.js.map +1 -1
  716. package/es/_util/dom.js +8 -8
  717. package/es/_util/easing.js +1 -1
  718. package/es/_util/forwardRefWithStatics.js +1 -1
  719. package/es/_util/getScrollbarWidth.js +1 -1
  720. package/es/_util/hasScrollBar.js +1 -1
  721. package/es/_util/helper.js +16 -16
  722. package/es/_util/injectValue.js +1 -1
  723. package/es/_util/insertCSS.js +1 -1
  724. package/es/_util/isCallable.js +1 -1
  725. package/es/_util/linearGradient.js +2 -2
  726. package/es/_util/noop.js +1 -1
  727. package/es/_util/number.js +1 -1
  728. package/es/_util/setStyle.js +1 -1
  729. package/es/_util/useClickOutside.js +1 -1
  730. package/es/_util/useCommonClassName.js +1 -1
  731. package/es/_util/useConfig.js +1 -1
  732. package/es/_util/useDefault.js +3 -3
  733. package/es/_util/useDefaultValue.js +5 -5
  734. package/es/_util/usePersistFn.js +1 -1
  735. package/es/_util/usePrevious.js +1 -1
  736. package/es/_util/useRefAndForward.js +1 -1
  737. package/es/_util/useRipple.js +1 -1
  738. package/es/_util/useSetState.js +4 -4
  739. package/es/_util/useUpdateEffect.js +1 -1
  740. package/es/addon/Addon.js +3 -3
  741. package/es/addon/index.js +3 -3
  742. package/es/affix/Affix.js +14 -14
  743. package/es/affix/index.js +14 -14
  744. package/es/affix/style/index.js +1 -1
  745. package/es/affix/type.js +1 -1
  746. package/es/alert/Alert.js +5 -5
  747. package/es/alert/index.js +5 -5
  748. package/es/alert/style/index.css +2 -0
  749. package/es/alert/style/index.js +1 -1
  750. package/es/alert/type.js +1 -1
  751. package/es/anchor/Anchor.js +26 -25
  752. package/es/anchor/Anchor.js.map +1 -1
  753. package/es/anchor/AnchorContext.js +1 -1
  754. package/es/anchor/AnchorItem.js +2 -2
  755. package/es/anchor/AnchorTarget.js +13 -12
  756. package/es/anchor/AnchorTarget.js.map +1 -1
  757. package/es/anchor/_util/clipboard.js +1 -1
  758. package/es/anchor/_util/dom.js +1 -1
  759. package/es/anchor/index.js +26 -25
  760. package/es/anchor/index.js.map +1 -1
  761. package/es/anchor/style/index.js +1 -1
  762. package/es/anchor/type.js +1 -1
  763. package/es/avatar/AvararGroup.js +6 -7
  764. package/es/avatar/AvararGroup.js.map +1 -1
  765. package/es/avatar/Avatar.js +6 -7
  766. package/es/avatar/Avatar.js.map +1 -1
  767. package/es/avatar/AvatarContext.js +1 -1
  768. package/es/avatar/index.js +6 -7
  769. package/es/avatar/index.js.map +1 -1
  770. package/es/avatar/style/index.js +1 -1
  771. package/es/avatar/type.js +1 -1
  772. package/es/badge/Badge.js +3 -3
  773. package/es/badge/index.js +3 -3
  774. package/es/badge/style/index.js +1 -1
  775. package/es/badge/type.js +1 -1
  776. package/es/breadcrumb/Breadcrumb.js +3 -3
  777. package/es/breadcrumb/BreadcrumbContext.js +1 -1
  778. package/es/breadcrumb/BreadcrumbItem.js +3 -3
  779. package/es/breadcrumb/BreadcrumbProps.js +1 -1
  780. package/es/breadcrumb/index.js +3 -3
  781. package/es/breadcrumb/style/index.js +1 -1
  782. package/es/breadcrumb/type.js +1 -1
  783. package/es/button/Button.js +16 -14
  784. package/es/button/Button.js.map +1 -1
  785. package/es/button/index.js +14 -12
  786. package/es/button/index.js.map +1 -1
  787. package/es/button/style/index.css +2 -2
  788. package/es/button/style/index.js +1 -1
  789. package/es/button/type.js +1 -1
  790. package/es/calendar/Calendar.js +30 -29
  791. package/es/calendar/Calendar.js.map +1 -1
  792. package/es/calendar/_util.js +1 -1
  793. package/es/calendar/index.js +30 -29
  794. package/es/calendar/index.js.map +1 -1
  795. package/es/calendar/style/index.js +1 -1
  796. package/es/calendar/type.js +1 -1
  797. package/es/card/type.js +1 -1
  798. package/es/cascader/Cascader.js +51 -49
  799. package/es/cascader/Cascader.js.map +1 -1
  800. package/es/cascader/components/InputContent.js +24 -24
  801. package/es/cascader/components/Item.js +22 -21
  802. package/es/cascader/components/Item.js.map +1 -1
  803. package/es/cascader/components/Panel.js +22 -21
  804. package/es/cascader/components/Panel.js.map +1 -1
  805. package/es/cascader/components/style/index.js +1 -1
  806. package/es/cascader/index.js +51 -49
  807. package/es/cascader/index.js.map +1 -1
  808. package/es/cascader/interface.js +32 -31
  809. package/es/cascader/interface.js.map +1 -1
  810. package/es/cascader/style/index.css +5 -5
  811. package/es/cascader/style/index.js +1 -1
  812. package/es/cascader/type.js +1 -1
  813. package/es/cascader/utils/cascader.js +4 -4
  814. package/es/cascader/utils/helper.js +2 -2
  815. package/es/cascader/utils/inputContent.js +21 -21
  816. package/es/cascader/utils/item.js +4 -4
  817. package/es/cascader/utils/panel.js +8 -8
  818. package/es/checkbox/Checkbox.js +18 -18
  819. package/es/checkbox/CheckboxGroup.js +18 -18
  820. package/es/checkbox/index.js +18 -18
  821. package/es/checkbox/style/index.js +1 -1
  822. package/es/checkbox/type.js +1 -1
  823. package/es/comment/Comment.js +1 -1
  824. package/es/comment/index.js +1 -1
  825. package/es/comment/style/index.js +1 -1
  826. package/es/comment/type.js +1 -1
  827. package/es/common/Check.js +16 -16
  828. package/es/common/FakeArrow.js +2 -2
  829. package/es/common/Portal.js +4 -4
  830. package/es/common.js +1 -1
  831. package/es/config-provider/ConfigContext.js +1 -1
  832. package/es/config-provider/ConfigProvider.js +3 -3
  833. package/es/config-provider/index.js +3 -3
  834. package/es/config-provider/type.js +1 -1
  835. package/es/date-picker/DatePicker.js +36 -35
  836. package/es/date-picker/DatePicker.js.map +1 -1
  837. package/es/date-picker/base/CalendarPresets.js +14 -12
  838. package/es/date-picker/base/CalendarPresets.js.map +1 -1
  839. package/es/date-picker/base/Cell.js +2 -2
  840. package/es/date-picker/base/Header.js +14 -12
  841. package/es/date-picker/base/Header.js.map +1 -1
  842. package/es/date-picker/base/Table.js +5 -5
  843. package/es/date-picker/base/style/index.js +1 -1
  844. package/es/date-picker/index.js +36 -35
  845. package/es/date-picker/index.js.map +1 -1
  846. package/es/date-picker/panel/Date.d.ts +2 -1
  847. package/es/date-picker/panel/Date.js +31 -29
  848. package/es/date-picker/panel/Date.js.map +1 -1
  849. package/es/date-picker/panel/DateRange.js +31 -29
  850. package/es/date-picker/panel/DateRange.js.map +1 -1
  851. package/es/date-picker/panel/style/index.js +1 -1
  852. package/es/date-picker/style/index.css +0 -3
  853. package/es/date-picker/style/index.js +1 -1
  854. package/es/date-picker/type.js +1 -1
  855. package/es/dialog/Dialog.js +14 -12
  856. package/es/dialog/Dialog.js.map +1 -1
  857. package/es/dialog/RenderDialog.js +5 -5
  858. package/es/dialog/index.js +14 -12
  859. package/es/dialog/index.js.map +1 -1
  860. package/es/dialog/plugin.js +14 -12
  861. package/es/dialog/plugin.js.map +1 -1
  862. package/es/dialog/style/index.js +1 -1
  863. package/es/dialog/type.d.ts +3 -9
  864. package/es/dialog/type.js +1 -1
  865. package/es/divider/Divider.js +17 -8
  866. package/es/divider/Divider.js.map +1 -1
  867. package/es/divider/index.js +3 -3
  868. package/es/divider/style/index.js +1 -1
  869. package/es/divider/type.js +1 -1
  870. package/es/drawer/Drawer.js +15 -13
  871. package/es/drawer/Drawer.js.map +1 -1
  872. package/es/drawer/DrawerWrapper.js +4 -4
  873. package/es/drawer/_util.js +1 -1
  874. package/es/drawer/index.js +14 -12
  875. package/es/drawer/index.js.map +1 -1
  876. package/es/drawer/style/index.js +1 -1
  877. package/es/drawer/type.js +1 -1
  878. package/es/dropdown/Dropdown.js +40 -41
  879. package/es/dropdown/Dropdown.js.map +1 -1
  880. package/es/dropdown/DropdownItem.js +16 -16
  881. package/es/dropdown/DropdownMenu.js +17 -17
  882. package/es/dropdown/index.js +40 -41
  883. package/es/dropdown/index.js.map +1 -1
  884. package/es/dropdown/style/index.js +1 -1
  885. package/es/dropdown/type.js +1 -1
  886. package/es/form/Form.d.ts +4 -1
  887. package/es/form/Form.js +74 -57
  888. package/es/form/Form.js.map +1 -1
  889. package/es/form/FormContext.js +1 -1
  890. package/es/form/FormItem.js +57 -45
  891. package/es/form/FormItem.js.map +1 -1
  892. package/es/form/formModel.js +30 -30
  893. package/es/form/index.js +50 -47
  894. package/es/form/index.js.map +1 -1
  895. package/es/form/style/index.js +1 -1
  896. package/es/form/type.js +1 -1
  897. package/es/grid/Col.js +6 -6
  898. package/es/grid/Row.js +8 -8
  899. package/es/grid/index.js +8 -8
  900. package/es/grid/style/index.js +1 -1
  901. package/es/grid/type.js +1 -1
  902. package/es/index.js +64 -61
  903. package/es/index.js.map +1 -1
  904. package/es/input/Input.d.ts +8 -4
  905. package/es/input/Input.js +111 -54
  906. package/es/input/Input.js.map +1 -1
  907. package/es/input/InputGroup.js +3 -3
  908. package/es/input/index.d.ts +1 -1
  909. package/es/input/index.js +5 -11
  910. package/es/input/index.js.map +1 -1
  911. package/es/input/style/index.css +24 -6
  912. package/es/input/style/index.js +1 -1
  913. package/es/input/type.d.ts +28 -7
  914. package/es/input/type.js +1 -1
  915. package/es/input-number/InputNumber.js +14 -15
  916. package/es/input-number/InputNumber.js.map +1 -1
  917. package/es/input-number/StepHandler.js +14 -12
  918. package/es/input-number/StepHandler.js.map +1 -1
  919. package/es/input-number/index.js +14 -15
  920. package/es/input-number/index.js.map +1 -1
  921. package/es/input-number/style/index.css +20 -0
  922. package/es/input-number/style/index.js +1 -1
  923. package/es/input-number/type.js +1 -1
  924. package/es/input-number/utils/numberUtils.js +1 -1
  925. package/es/layout/Aside.js +3 -3
  926. package/es/layout/Layout.js +6 -6
  927. package/es/layout/index.js +6 -6
  928. package/es/layout/style/index.js +1 -1
  929. package/es/layout/type.js +1 -1
  930. package/es/list/List.js +13 -11
  931. package/es/list/List.js.map +1 -1
  932. package/es/list/ListItem.js +1 -1
  933. package/es/list/ListItemMeta.js +1 -1
  934. package/es/list/index.js +13 -11
  935. package/es/list/index.js.map +1 -1
  936. package/es/list/style/index.js +1 -1
  937. package/es/list/type.js +1 -1
  938. package/es/loading/gradient.js +6 -46
  939. package/es/loading/gradient.js.map +1 -1
  940. package/es/loading/index.js +13 -11
  941. package/es/loading/index.js.map +1 -1
  942. package/es/loading/loading.js +21 -14
  943. package/es/loading/loading.js.map +1 -1
  944. package/es/loading/plugin.js +13 -11
  945. package/es/loading/plugin.js.map +1 -1
  946. package/es/loading/style/index.css +20 -0
  947. package/es/loading/style/index.js +1 -1
  948. package/es/loading/type.js +1 -1
  949. package/es/locale/LocalReceiver.js +3 -3
  950. package/es/locale/type.js +1 -1
  951. package/es/locale/zh_CN.js +2 -2
  952. package/es/locale/zh_CN.js.map +1 -1
  953. package/es/menu/HeadMenu.js +8 -8
  954. package/es/menu/Menu.js +8 -8
  955. package/es/menu/MenuContext.js +1 -1
  956. package/es/menu/MenuGroup.js +1 -1
  957. package/es/menu/MenuItem.js +2 -2
  958. package/es/menu/SubMenu.js +4 -4
  959. package/es/menu/_util/cacularPaddingLeft.js +1 -1
  960. package/es/menu/_util/checkMenuType.js +1 -1
  961. package/es/menu/_util/checkSubMenuActive.js +1 -1
  962. package/es/menu/_util/checkSubMenuChildExpanded.js +3 -3
  963. package/es/menu/_util/checkSubMenuChildrenActive.js +1 -1
  964. package/es/menu/_util/constant.js +1 -1
  965. package/es/menu/_util/getSubMenuChildStyle.js +1 -1
  966. package/es/menu/_util/type.js +1 -1
  967. package/es/menu/hooks/useMenuContext.js +5 -5
  968. package/es/menu/index.js +8 -8
  969. package/es/menu/style/index.js +1 -1
  970. package/es/menu/type.js +1 -1
  971. package/es/message/Message.js +13 -11
  972. package/es/message/Message.js.map +1 -1
  973. package/es/message/MessageClose.js +1 -1
  974. package/es/message/MessageComponent.js +13 -11
  975. package/es/message/MessageComponent.js.map +1 -1
  976. package/es/message/MessageIcon.js +13 -11
  977. package/es/message/MessageIcon.js.map +1 -1
  978. package/es/message/const.js +1 -1
  979. package/es/message/index.js +13 -11
  980. package/es/message/index.js.map +1 -1
  981. package/es/message/style/index.js +1 -1
  982. package/es/message/type.js +1 -1
  983. package/es/message/useMessageClass.js +1 -1
  984. package/es/notification/Notification.js +3 -3
  985. package/es/notification/NotificationList.js +5 -5
  986. package/es/notification/NotificationPlugin.js +6 -6
  987. package/es/notification/index.js +6 -6
  988. package/es/notification/style/index.js +1 -1
  989. package/es/notification/type.js +1 -1
  990. package/es/pagination/Pagination.js +26 -25
  991. package/es/pagination/Pagination.js.map +1 -1
  992. package/es/pagination/index.js +26 -25
  993. package/es/pagination/index.js.map +1 -1
  994. package/es/pagination/style/index.css +0 -10
  995. package/es/pagination/style/index.js +1 -1
  996. package/es/pagination/type.js +1 -1
  997. package/es/pagination/validators.js +1 -1
  998. package/es/popconfirm/PopConfirm.js +15 -14
  999. package/es/popconfirm/PopConfirm.js.map +1 -1
  1000. package/es/popconfirm/PopContent.js +14 -12
  1001. package/es/popconfirm/PopContent.js.map +1 -1
  1002. package/es/popconfirm/index.js +15 -14
  1003. package/es/popconfirm/index.js.map +1 -1
  1004. package/es/popconfirm/style/index.js +1 -1
  1005. package/es/popconfirm/type.js +1 -1
  1006. package/es/popup/Popup.js +46 -64
  1007. package/es/popup/Popup.js.map +1 -1
  1008. package/es/popup/Portal.js +1 -1
  1009. package/es/popup/hooks/usePopupCssTransition.js +8 -5
  1010. package/es/popup/hooks/usePopupCssTransition.js.map +1 -1
  1011. package/es/popup/hooks/useTriggerProps.js +1 -1
  1012. package/es/popup/index.js +4 -5
  1013. package/es/popup/index.js.map +1 -1
  1014. package/es/popup/style/index.css +2 -2
  1015. package/es/popup/style/index.js +1 -1
  1016. package/es/popup/type.js +1 -1
  1017. package/es/progress/Progress.js +3 -3
  1018. package/es/progress/index.js +3 -3
  1019. package/es/progress/style/index.js +1 -1
  1020. package/es/progress/type.js +1 -1
  1021. package/es/radio/Radio.js +17 -17
  1022. package/es/radio/RadioGroup.js +17 -17
  1023. package/es/radio/index.js +17 -17
  1024. package/es/radio/style/index.css +10 -10
  1025. package/es/radio/style/index.js +1 -1
  1026. package/es/radio/type.js +1 -1
  1027. package/es/rate/type.js +1 -1
  1028. package/es/select/base/Option.js +20 -20
  1029. package/es/select/base/OptionGroup.js +2 -2
  1030. package/es/select/base/PopupContent.js +24 -24
  1031. package/es/select/base/Select.js +26 -25
  1032. package/es/select/base/Select.js.map +1 -1
  1033. package/es/select/base/style/index.js +1 -1
  1034. package/es/select/index.js +26 -25
  1035. package/es/select/index.js.map +1 -1
  1036. package/es/select/style/index.css +4 -4
  1037. package/es/select/style/index.js +1 -1
  1038. package/es/select/type.js +1 -1
  1039. package/es/select/util/helper.js +22 -22
  1040. package/es/skeleton/type.js +1 -1
  1041. package/es/slider/Slider.js +14 -16
  1042. package/es/slider/Slider.js.map +1 -1
  1043. package/es/slider/SliderHandleButton.js +7 -8
  1044. package/es/slider/SliderHandleButton.js.map +1 -1
  1045. package/es/slider/index.js +14 -16
  1046. package/es/slider/index.js.map +1 -1
  1047. package/es/slider/style/index.js +1 -1
  1048. package/es/slider/type.js +1 -1
  1049. package/es/slider/utils/handleNumber.js +1 -1
  1050. package/es/steps/StepItem.js +2 -2
  1051. package/es/steps/Steps.js +2 -2
  1052. package/es/steps/StepsContext.js +1 -1
  1053. package/es/steps/index.js +2 -2
  1054. package/es/steps/style/index.js +1 -1
  1055. package/es/steps/type.js +1 -1
  1056. package/es/sticky-tool/type.js +1 -1
  1057. package/es/style/index.js +1 -1
  1058. package/es/swiper/Swiper.js +4 -4
  1059. package/es/swiper/SwiperItem.js +1 -1
  1060. package/es/swiper/index.js +4 -4
  1061. package/es/swiper/style/index.js +1 -1
  1062. package/es/swiper/type.js +1 -1
  1063. package/es/switch/Switch.js +14 -12
  1064. package/es/switch/Switch.js.map +1 -1
  1065. package/es/switch/index.js +14 -12
  1066. package/es/switch/index.js.map +1 -1
  1067. package/es/switch/style/index.css +2 -2
  1068. package/es/switch/style/index.js +1 -1
  1069. package/es/switch/type.js +1 -1
  1070. package/es/table/base/Table.d.ts +2 -1
  1071. package/es/table/base/Table.js +36 -32
  1072. package/es/table/base/Table.js.map +1 -1
  1073. package/es/table/base/TableAsyncLoadingBody.js +16 -14
  1074. package/es/table/base/TableAsyncLoadingBody.js.map +1 -1
  1075. package/es/table/base/TableBody.js +21 -21
  1076. package/es/table/base/TableCell.js +4 -4
  1077. package/es/table/base/TableColGroup.js +1 -1
  1078. package/es/table/base/TableContext.js +1 -1
  1079. package/es/table/base/TableEmptyBody.js +1 -1
  1080. package/es/table/base/TableFooter.js +1 -1
  1081. package/es/table/base/TableHeader.js +12 -12
  1082. package/es/table/base/TableLoadingBody.js +7 -7
  1083. package/es/table/base/TableRow.js +21 -21
  1084. package/es/table/base/style/index.js +1 -1
  1085. package/es/table/hooks/useColumns.js +4 -4
  1086. package/es/table/index.js +33 -32
  1087. package/es/table/index.js.map +1 -1
  1088. package/es/table/primary/FilterButton.js +23 -24
  1089. package/es/table/primary/FilterButton.js.map +1 -1
  1090. package/es/table/primary/SorterButton.js +7 -8
  1091. package/es/table/primary/SorterButton.js.map +1 -1
  1092. package/es/table/primary/Table.js +33 -32
  1093. package/es/table/primary/Table.js.map +1 -1
  1094. package/es/table/primary/expand-box.js +3 -3
  1095. package/es/table/primary/style/index.js +1 -1
  1096. package/es/table/primary/useExpand.js +22 -22
  1097. package/es/table/primary/useFilter.js +23 -24
  1098. package/es/table/primary/useFilter.js.map +1 -1
  1099. package/es/table/primary/useSelect.js +23 -23
  1100. package/es/table/primary/useSorter.js +22 -23
  1101. package/es/table/primary/useSorter.js.map +1 -1
  1102. package/es/table/style/index.css +1 -5
  1103. package/es/table/style/index.js +1 -1
  1104. package/es/table/type.js +1 -1
  1105. package/es/table/util/getRowKeyFromRowKey.js +1 -1
  1106. package/es/table/util/index.js +1 -1
  1107. package/es/tabs/TabBar.js +4 -4
  1108. package/es/tabs/TabNav.js +4 -4
  1109. package/es/tabs/TabNavItem.js +1 -1
  1110. package/es/tabs/TabPanel.js +1 -1
  1111. package/es/tabs/Tabs.js +4 -4
  1112. package/es/tabs/index.js +4 -4
  1113. package/es/tabs/style/index.js +1 -1
  1114. package/es/tabs/type.js +1 -1
  1115. package/es/tabs/useTabClass.js +1 -1
  1116. package/es/tag/CheckTag.js +5 -5
  1117. package/es/tag/Tag.js +5 -5
  1118. package/es/tag/index.js +5 -5
  1119. package/es/tag/style/index.js +1 -1
  1120. package/es/tag/type.js +1 -1
  1121. package/es/textarea/Textarea.js +16 -16
  1122. package/es/textarea/index.js +16 -16
  1123. package/es/textarea/style/index.js +1 -1
  1124. package/es/textarea/type.js +1 -1
  1125. package/es/time-picker/InputItems.js +43 -33
  1126. package/es/time-picker/InputItems.js.map +1 -1
  1127. package/es/time-picker/TimePicker.js +33 -32
  1128. package/es/time-picker/TimePicker.js.map +1 -1
  1129. package/es/time-picker/TimeRangePicker.js +33 -32
  1130. package/es/time-picker/TimeRangePicker.js.map +1 -1
  1131. package/es/time-picker/consts.js +5 -5
  1132. package/es/time-picker/index.js +33 -32
  1133. package/es/time-picker/index.js.map +1 -1
  1134. package/es/time-picker/interfaces.js +1 -1
  1135. package/es/time-picker/panel/SinglePanel.js +29 -29
  1136. package/es/time-picker/panel/TimePickerPanel.js +32 -30
  1137. package/es/time-picker/panel/TimePickerPanel.js.map +1 -1
  1138. package/es/time-picker/panel/TimePickerRangePanel.js +32 -30
  1139. package/es/time-picker/panel/TimePickerRangePanel.js.map +1 -1
  1140. package/es/time-picker/panel/style/index.js +1 -1
  1141. package/es/time-picker/style/index.js +1 -1
  1142. package/es/time-picker/type.js +1 -1
  1143. package/es/tooltip/Tooltip.js +7 -8
  1144. package/es/tooltip/Tooltip.js.map +1 -1
  1145. package/es/tooltip/index.js +7 -8
  1146. package/es/tooltip/index.js.map +1 -1
  1147. package/es/tooltip/style/index.js +1 -1
  1148. package/es/tooltip/type.js +1 -1
  1149. package/es/transfer/Transfer.js +43 -42
  1150. package/es/transfer/Transfer.js.map +1 -1
  1151. package/es/transfer/TransferList.js +38 -37
  1152. package/es/transfer/TransferList.js.map +1 -1
  1153. package/es/transfer/index.js +43 -42
  1154. package/es/transfer/index.js.map +1 -1
  1155. package/es/transfer/style/index.js +1 -1
  1156. package/es/transfer/type.js +1 -1
  1157. package/es/transfer/utils.js +21 -21
  1158. package/es/tree/Tree.js +52 -49
  1159. package/es/tree/Tree.js.map +1 -1
  1160. package/es/tree/TreeItem.js +21 -19
  1161. package/es/tree/TreeItem.js.map +1 -1
  1162. package/es/tree/index.js +52 -49
  1163. package/es/tree/index.js.map +1 -1
  1164. package/es/tree/interface.js +1 -1
  1165. package/es/tree/style/index.js +1 -1
  1166. package/es/tree/type.js +1 -1
  1167. package/es/tree/useControllable.js +3 -3
  1168. package/es/tree/useStore.js +45 -44
  1169. package/es/tree/useStore.js.map +1 -1
  1170. package/es/tree/useTreeConfig.js +1 -1
  1171. package/es/tree-select/TreeSelect.js +53 -51
  1172. package/es/tree-select/TreeSelect.js.map +1 -1
  1173. package/es/tree-select/TreeSelectInput.js +25 -25
  1174. package/es/tree-select/TreeSelectSuffix.js +26 -24
  1175. package/es/tree-select/TreeSelectSuffix.js.map +1 -1
  1176. package/es/tree-select/TreeSelectTags.js +5 -5
  1177. package/es/tree-select/index.js +53 -51
  1178. package/es/tree-select/index.js.map +1 -1
  1179. package/es/tree-select/style/index.js +1 -1
  1180. package/es/tree-select/type.js +1 -1
  1181. package/es/tree-select/useTreeSelectConfig.js +2 -2
  1182. package/es/upload/boolean-render.js +1 -1
  1183. package/es/upload/dragger.js +15 -13
  1184. package/es/upload/dragger.js.map +1 -1
  1185. package/es/upload/hooks/useDefaultValue.js +7 -7
  1186. package/es/upload/hooks/useSizeLimit.d.ts +2 -0
  1187. package/es/upload/hooks/useSizeLimit.js +66 -0
  1188. package/es/upload/hooks/useSizeLimit.js.map +1 -0
  1189. package/es/upload/index.js +43 -40
  1190. package/es/upload/index.js.map +1 -1
  1191. package/es/upload/style/index.css +27 -6
  1192. package/es/upload/style/index.js +1 -1
  1193. package/es/upload/themes/dragger-progress.js +15 -13
  1194. package/es/upload/themes/dragger-progress.js.map +1 -1
  1195. package/es/upload/themes/flow-list/file-list.js +14 -12
  1196. package/es/upload/themes/flow-list/file-list.js.map +1 -1
  1197. package/es/upload/themes/flow-list/img-list.js +14 -12
  1198. package/es/upload/themes/flow-list/img-list.js.map +1 -1
  1199. package/es/upload/themes/flow-list/index.js +15 -13
  1200. package/es/upload/themes/flow-list/index.js.map +1 -1
  1201. package/es/upload/themes/flow-list/style/index.js +1 -1
  1202. package/es/upload/themes/image-card.js +15 -13
  1203. package/es/upload/themes/image-card.js.map +1 -1
  1204. package/es/upload/themes/single-file.js +13 -11
  1205. package/es/upload/themes/single-file.js.map +1 -1
  1206. package/es/upload/themes/style/index.js +1 -1
  1207. package/es/upload/tips.js +1 -1
  1208. package/es/upload/type.d.ts +3 -2
  1209. package/es/upload/type.js +1 -1
  1210. package/es/upload/types.js +1 -1
  1211. package/es/upload/upload-trigger.js +14 -12
  1212. package/es/upload/upload-trigger.js.map +1 -1
  1213. package/es/upload/upload.js +62 -48
  1214. package/es/upload/upload.js.map +1 -1
  1215. package/es/upload/util.js +3 -3
  1216. package/esm/_chunks/dep-045d914f.js +26 -0
  1217. package/esm/_chunks/dep-045d914f.js.map +1 -0
  1218. package/esm/_chunks/dep-07388879.js +222 -0
  1219. package/esm/_chunks/dep-07388879.js.map +1 -0
  1220. package/esm/_chunks/dep-184b21c3.js +108 -0
  1221. package/esm/_chunks/dep-184b21c3.js.map +1 -0
  1222. package/esm/_chunks/dep-1ae028f2.js +50 -0
  1223. package/esm/_chunks/dep-1ae028f2.js.map +1 -0
  1224. package/esm/_chunks/dep-1bcb0f03.js +47 -0
  1225. package/esm/_chunks/dep-1bcb0f03.js.map +1 -0
  1226. package/esm/_chunks/dep-26028aac.js +34 -0
  1227. package/esm/_chunks/dep-26028aac.js.map +1 -0
  1228. package/esm/_chunks/dep-27db1e3c.js +49 -0
  1229. package/esm/_chunks/dep-27db1e3c.js.map +1 -0
  1230. package/esm/_chunks/dep-30477921.js +865 -0
  1231. package/esm/_chunks/dep-30477921.js.map +1 -0
  1232. package/esm/_chunks/dep-33e85467.js +26 -0
  1233. package/esm/_chunks/dep-33e85467.js.map +1 -0
  1234. package/esm/_chunks/dep-36ec1fee.js +232 -0
  1235. package/esm/_chunks/dep-36ec1fee.js.map +1 -0
  1236. package/esm/_chunks/dep-3882ffcd.js +41 -0
  1237. package/esm/_chunks/dep-3882ffcd.js.map +1 -0
  1238. package/esm/_chunks/dep-3a07fdc5.js +735 -0
  1239. package/esm/_chunks/dep-3a07fdc5.js.map +1 -0
  1240. package/esm/_chunks/dep-3ef615a3.js +52 -0
  1241. package/esm/_chunks/dep-3ef615a3.js.map +1 -0
  1242. package/esm/_chunks/dep-42431ee2.js +56 -0
  1243. package/esm/_chunks/dep-42431ee2.js.map +1 -0
  1244. package/esm/_chunks/dep-42dfd306.js +27 -0
  1245. package/esm/_chunks/dep-42dfd306.js.map +1 -0
  1246. package/esm/_chunks/dep-442ff40f.js +52 -0
  1247. package/esm/_chunks/dep-442ff40f.js.map +1 -0
  1248. package/esm/_chunks/dep-44534aa1.js +68 -0
  1249. package/esm/_chunks/dep-44534aa1.js.map +1 -0
  1250. package/esm/_chunks/dep-45ba95e4.js +93 -0
  1251. package/esm/_chunks/dep-45ba95e4.js.map +1 -0
  1252. package/esm/_chunks/dep-50f46574.js +48 -0
  1253. package/esm/_chunks/dep-50f46574.js.map +1 -0
  1254. package/esm/_chunks/dep-5154a629.js +154 -0
  1255. package/esm/_chunks/dep-5154a629.js.map +1 -0
  1256. package/esm/_chunks/dep-5469de86.js +158 -0
  1257. package/esm/_chunks/dep-5469de86.js.map +1 -0
  1258. package/esm/_chunks/dep-55ec31d6.js +18 -0
  1259. package/esm/_chunks/dep-55ec31d6.js.map +1 -0
  1260. package/esm/_chunks/dep-5c879b29.js +200 -0
  1261. package/esm/_chunks/dep-5c879b29.js.map +1 -0
  1262. package/esm/_chunks/dep-61768ea7.js +45 -0
  1263. package/esm/_chunks/dep-61768ea7.js.map +1 -0
  1264. package/esm/_chunks/dep-6216481e.js +84 -0
  1265. package/esm/_chunks/dep-6216481e.js.map +1 -0
  1266. package/esm/_chunks/dep-68236d72.js +954 -0
  1267. package/esm/_chunks/dep-68236d72.js.map +1 -0
  1268. package/esm/_chunks/dep-71117f38.js +47 -0
  1269. package/esm/_chunks/dep-71117f38.js.map +1 -0
  1270. package/esm/_chunks/dep-711e796f.js +117 -0
  1271. package/esm/_chunks/dep-711e796f.js.map +1 -0
  1272. package/esm/_chunks/dep-72ef6cf6.js +23 -0
  1273. package/esm/_chunks/dep-72ef6cf6.js.map +1 -0
  1274. package/esm/_chunks/dep-7556f79a.js +388 -0
  1275. package/esm/_chunks/dep-7556f79a.js.map +1 -0
  1276. package/esm/_chunks/dep-8fede92a.js +305 -0
  1277. package/esm/_chunks/dep-8fede92a.js.map +1 -0
  1278. package/esm/_chunks/dep-9825193d.js +8 -0
  1279. package/esm/_chunks/dep-9825193d.js.map +1 -0
  1280. package/esm/_chunks/dep-98b17dae.js +75 -0
  1281. package/esm/_chunks/dep-98b17dae.js.map +1 -0
  1282. package/esm/_chunks/dep-9bf19387.js +567 -0
  1283. package/esm/_chunks/dep-9bf19387.js.map +1 -0
  1284. package/esm/_chunks/dep-9f46a2fc.js +8 -0
  1285. package/esm/_chunks/dep-9f46a2fc.js.map +1 -0
  1286. package/esm/_chunks/dep-9f80f9d6.js +129 -0
  1287. package/esm/_chunks/dep-9f80f9d6.js.map +1 -0
  1288. package/esm/_chunks/dep-a2bc34d5.js +26 -0
  1289. package/esm/_chunks/dep-a2bc34d5.js.map +1 -0
  1290. package/esm/_chunks/dep-a3ebf465.js +45 -0
  1291. package/esm/_chunks/dep-a3ebf465.js.map +1 -0
  1292. package/esm/_chunks/dep-a57a3adc.js +26 -0
  1293. package/esm/_chunks/dep-a57a3adc.js.map +1 -0
  1294. package/esm/_chunks/dep-a57dc5be.js +8 -0
  1295. package/esm/_chunks/dep-a57dc5be.js.map +1 -0
  1296. package/esm/_chunks/dep-abd9fbed.js +17 -0
  1297. package/esm/_chunks/dep-abd9fbed.js.map +1 -0
  1298. package/esm/_chunks/dep-ae12755c.js +36 -0
  1299. package/esm/_chunks/dep-ae12755c.js.map +1 -0
  1300. package/esm/_chunks/dep-b4546e0e.js +27 -0
  1301. package/esm/_chunks/dep-b4546e0e.js.map +1 -0
  1302. package/esm/_chunks/dep-ba7f3134.js +44 -0
  1303. package/esm/_chunks/dep-ba7f3134.js.map +1 -0
  1304. package/esm/_chunks/dep-be6500d4.js +274 -0
  1305. package/esm/_chunks/dep-be6500d4.js.map +1 -0
  1306. package/esm/_chunks/dep-c27cb807.js +197 -0
  1307. package/esm/_chunks/dep-c27cb807.js.map +1 -0
  1308. package/esm/_chunks/dep-c55cb8a1.js +97 -0
  1309. package/esm/_chunks/dep-c55cb8a1.js.map +1 -0
  1310. package/esm/_chunks/dep-c611ea38.js +42 -0
  1311. package/esm/_chunks/dep-c611ea38.js.map +1 -0
  1312. package/esm/_chunks/dep-cbb0c1c0.js +85 -0
  1313. package/esm/_chunks/dep-cbb0c1c0.js.map +1 -0
  1314. package/esm/_chunks/dep-cdcdc773.js +129 -0
  1315. package/esm/_chunks/dep-cdcdc773.js.map +1 -0
  1316. package/esm/_chunks/dep-d4c7e673.js +33 -0
  1317. package/esm/_chunks/dep-d4c7e673.js.map +1 -0
  1318. package/esm/_chunks/dep-e273b26f.js +19 -0
  1319. package/esm/_chunks/dep-e273b26f.js.map +1 -0
  1320. package/esm/_chunks/dep-ec5da0c1.js +108 -0
  1321. package/esm/_chunks/dep-ec5da0c1.js.map +1 -0
  1322. package/esm/_chunks/dep-eddcc10b.js +773 -0
  1323. package/esm/_chunks/dep-eddcc10b.js.map +1 -0
  1324. package/esm/_chunks/dep-f253fe70.js +119 -0
  1325. package/esm/_chunks/dep-f253fe70.js.map +1 -0
  1326. package/esm/_chunks/dep-f2705322.js +190 -0
  1327. package/esm/_chunks/dep-f2705322.js.map +1 -0
  1328. package/esm/_chunks/dep-f326b5da.js +42 -0
  1329. package/esm/_chunks/dep-f326b5da.js.map +1 -0
  1330. package/esm/_chunks/dep-fa30ac54.js +47 -0
  1331. package/esm/_chunks/dep-fa30ac54.js.map +1 -0
  1332. package/esm/_common/js/common.d.ts +3 -0
  1333. package/esm/_common/js/common.js +1 -1
  1334. package/esm/_common/js/date-picker/utils.d.ts +87 -0
  1335. package/esm/_common/js/date-picker/utils.js +382 -0
  1336. package/esm/_common/js/date-picker/utils.js.map +1 -0
  1337. package/esm/_common/js/loading/circle-adapter.d.ts +1 -0
  1338. package/esm/_common/js/loading/circle-adapter.js +50 -0
  1339. package/esm/_common/js/loading/circle-adapter.js.map +1 -0
  1340. package/esm/_common/js/log/log.d.ts +3 -0
  1341. package/esm/_common/js/log/log.js +1 -1
  1342. package/esm/_common/js/log/types.d.ts +8 -0
  1343. package/esm/_common/js/log/types.js +1 -1
  1344. package/esm/_common/js/tree/tree-node-model.js +29 -28
  1345. package/esm/_common/js/tree/tree-node-model.js.map +1 -1
  1346. package/esm/_common/js/tree/tree-node.js +32 -31
  1347. package/esm/_common/js/tree/tree-node.js.map +1 -1
  1348. package/esm/_common/js/tree/tree-store.js +41 -40
  1349. package/esm/_common/js/tree/tree-store.js.map +1 -1
  1350. package/esm/_common/js/tree/types.js +1 -1
  1351. package/esm/_common/js/upload/types.js +1 -1
  1352. package/esm/_common/js/upload/xhr.js +1 -1
  1353. package/esm/_common/js/utils/set-style.d.ts +8 -0
  1354. package/esm/_common/js/utils/set-style.js +15 -0
  1355. package/esm/_common/js/utils/set-style.js.map +1 -0
  1356. package/esm/_common/style/web/_variables.less +1 -1
  1357. package/esm/_common/style/web/components/alert/_index.less +1 -0
  1358. package/esm/_common/style/web/components/button/_index.less +2 -2
  1359. package/esm/_common/style/web/components/cascader/_index.less +3 -3
  1360. package/esm/_common/style/web/components/date-picker/_index.less +0 -6
  1361. package/esm/_common/style/web/components/input/_index.less +28 -4
  1362. package/esm/_common/style/web/components/input/_var.less +5 -0
  1363. package/esm/_common/style/web/components/pagination/_index.less +0 -2
  1364. package/esm/_common/style/web/components/pagination/_mixin.less +0 -1
  1365. package/esm/_common/style/web/components/select/_index.less +2 -2
  1366. package/esm/_common/style/web/components/skeleton/_index.less +105 -0
  1367. package/esm/_common/style/web/components/skeleton/_mixin.less +0 -0
  1368. package/esm/_common/style/web/components/skeleton/_var.less +37 -0
  1369. package/esm/_common/style/web/components/table/_index.less +1 -6
  1370. package/esm/_common/style/web/components/tag-input/_index.less +79 -0
  1371. package/esm/_common/style/web/components/tag-input/_var.less +0 -0
  1372. package/esm/_common/style/web/components/upload/_index.less +4 -0
  1373. package/esm/_common/style/web/components/upload/_var.less +1 -0
  1374. package/esm/_common/style/web/docs.less +3 -0
  1375. package/esm/_common/style/web/utilities/_animation.less +11 -1
  1376. package/esm/_util/callBoth.js +1 -1
  1377. package/esm/_util/composeRefs.js +4 -2
  1378. package/esm/_util/composeRefs.js.map +1 -1
  1379. package/esm/_util/dom.js +8 -8
  1380. package/esm/_util/easing.js +1 -1
  1381. package/esm/_util/forwardRefWithStatics.js +1 -1
  1382. package/esm/_util/getScrollbarWidth.js +1 -1
  1383. package/esm/_util/hasScrollBar.js +1 -1
  1384. package/esm/_util/helper.js +16 -16
  1385. package/esm/_util/injectValue.js +1 -1
  1386. package/esm/_util/insertCSS.js +1 -1
  1387. package/esm/_util/isCallable.js +1 -1
  1388. package/esm/_util/linearGradient.js +2 -2
  1389. package/esm/_util/noop.js +1 -1
  1390. package/esm/_util/number.js +1 -1
  1391. package/esm/_util/setStyle.js +1 -1
  1392. package/esm/_util/useClickOutside.js +1 -1
  1393. package/esm/_util/useCommonClassName.js +1 -1
  1394. package/esm/_util/useConfig.js +1 -1
  1395. package/esm/_util/useDefault.js +3 -3
  1396. package/esm/_util/useDefaultValue.js +5 -5
  1397. package/esm/_util/usePersistFn.js +1 -1
  1398. package/esm/_util/usePrevious.js +1 -1
  1399. package/esm/_util/useRefAndForward.js +1 -1
  1400. package/esm/_util/useRipple.js +1 -1
  1401. package/esm/_util/useSetState.js +4 -4
  1402. package/esm/_util/useUpdateEffect.js +1 -1
  1403. package/esm/addon/Addon.js +3 -3
  1404. package/esm/addon/index.js +3 -3
  1405. package/esm/affix/Affix.js +14 -14
  1406. package/esm/affix/index.js +14 -14
  1407. package/esm/affix/type.js +1 -1
  1408. package/esm/alert/Alert.js +5 -5
  1409. package/esm/alert/index.js +5 -5
  1410. package/esm/alert/type.js +1 -1
  1411. package/esm/anchor/Anchor.js +26 -25
  1412. package/esm/anchor/Anchor.js.map +1 -1
  1413. package/esm/anchor/AnchorContext.js +1 -1
  1414. package/esm/anchor/AnchorItem.js +2 -2
  1415. package/esm/anchor/AnchorTarget.js +13 -12
  1416. package/esm/anchor/AnchorTarget.js.map +1 -1
  1417. package/esm/anchor/_util/clipboard.js +1 -1
  1418. package/esm/anchor/_util/dom.js +1 -1
  1419. package/esm/anchor/index.js +26 -25
  1420. package/esm/anchor/index.js.map +1 -1
  1421. package/esm/anchor/type.js +1 -1
  1422. package/esm/avatar/AvararGroup.js +6 -7
  1423. package/esm/avatar/AvararGroup.js.map +1 -1
  1424. package/esm/avatar/Avatar.js +6 -7
  1425. package/esm/avatar/Avatar.js.map +1 -1
  1426. package/esm/avatar/AvatarContext.js +1 -1
  1427. package/esm/avatar/index.js +6 -7
  1428. package/esm/avatar/index.js.map +1 -1
  1429. package/esm/avatar/type.js +1 -1
  1430. package/esm/badge/Badge.js +3 -3
  1431. package/esm/badge/index.js +3 -3
  1432. package/esm/badge/type.js +1 -1
  1433. package/esm/breadcrumb/Breadcrumb.js +3 -3
  1434. package/esm/breadcrumb/BreadcrumbContext.js +1 -1
  1435. package/esm/breadcrumb/BreadcrumbItem.js +3 -3
  1436. package/esm/breadcrumb/BreadcrumbProps.js +1 -1
  1437. package/esm/breadcrumb/index.js +3 -3
  1438. package/esm/breadcrumb/type.js +1 -1
  1439. package/esm/button/Button.js +16 -14
  1440. package/esm/button/Button.js.map +1 -1
  1441. package/esm/button/index.js +14 -12
  1442. package/esm/button/index.js.map +1 -1
  1443. package/esm/button/type.js +1 -1
  1444. package/esm/calendar/Calendar.js +30 -29
  1445. package/esm/calendar/Calendar.js.map +1 -1
  1446. package/esm/calendar/_util.js +1 -1
  1447. package/esm/calendar/index.js +30 -29
  1448. package/esm/calendar/index.js.map +1 -1
  1449. package/esm/calendar/type.js +1 -1
  1450. package/esm/card/type.js +1 -1
  1451. package/esm/cascader/Cascader.js +51 -49
  1452. package/esm/cascader/Cascader.js.map +1 -1
  1453. package/esm/cascader/components/InputContent.js +24 -24
  1454. package/esm/cascader/components/Item.js +22 -21
  1455. package/esm/cascader/components/Item.js.map +1 -1
  1456. package/esm/cascader/components/Panel.js +22 -21
  1457. package/esm/cascader/components/Panel.js.map +1 -1
  1458. package/esm/cascader/index.js +51 -49
  1459. package/esm/cascader/index.js.map +1 -1
  1460. package/esm/cascader/interface.js +32 -31
  1461. package/esm/cascader/interface.js.map +1 -1
  1462. package/esm/cascader/type.js +1 -1
  1463. package/esm/cascader/utils/cascader.js +4 -4
  1464. package/esm/cascader/utils/helper.js +2 -2
  1465. package/esm/cascader/utils/inputContent.js +21 -21
  1466. package/esm/cascader/utils/item.js +4 -4
  1467. package/esm/cascader/utils/panel.js +8 -8
  1468. package/esm/checkbox/Checkbox.js +18 -18
  1469. package/esm/checkbox/CheckboxGroup.js +18 -18
  1470. package/esm/checkbox/index.js +18 -18
  1471. package/esm/checkbox/type.js +1 -1
  1472. package/esm/comment/Comment.js +1 -1
  1473. package/esm/comment/index.js +1 -1
  1474. package/esm/comment/type.js +1 -1
  1475. package/esm/common/Check.js +16 -16
  1476. package/esm/common/FakeArrow.js +2 -2
  1477. package/esm/common/Portal.js +4 -4
  1478. package/esm/common.js +1 -1
  1479. package/esm/config-provider/ConfigContext.js +1 -1
  1480. package/esm/config-provider/ConfigProvider.js +3 -3
  1481. package/esm/config-provider/index.js +3 -3
  1482. package/esm/config-provider/type.js +1 -1
  1483. package/esm/date-picker/DatePicker.js +36 -35
  1484. package/esm/date-picker/DatePicker.js.map +1 -1
  1485. package/esm/date-picker/base/CalendarPresets.js +14 -12
  1486. package/esm/date-picker/base/CalendarPresets.js.map +1 -1
  1487. package/esm/date-picker/base/Cell.js +2 -2
  1488. package/esm/date-picker/base/Header.js +14 -12
  1489. package/esm/date-picker/base/Header.js.map +1 -1
  1490. package/esm/date-picker/base/Table.js +5 -5
  1491. package/esm/date-picker/index.js +36 -35
  1492. package/esm/date-picker/index.js.map +1 -1
  1493. package/esm/date-picker/panel/Date.d.ts +2 -1
  1494. package/esm/date-picker/panel/Date.js +31 -29
  1495. package/esm/date-picker/panel/Date.js.map +1 -1
  1496. package/esm/date-picker/panel/DateRange.js +31 -29
  1497. package/esm/date-picker/panel/DateRange.js.map +1 -1
  1498. package/esm/date-picker/type.js +1 -1
  1499. package/esm/dialog/Dialog.js +14 -12
  1500. package/esm/dialog/Dialog.js.map +1 -1
  1501. package/esm/dialog/RenderDialog.js +5 -5
  1502. package/esm/dialog/index.js +14 -12
  1503. package/esm/dialog/index.js.map +1 -1
  1504. package/esm/dialog/plugin.js +14 -12
  1505. package/esm/dialog/plugin.js.map +1 -1
  1506. package/esm/dialog/type.d.ts +3 -9
  1507. package/esm/dialog/type.js +1 -1
  1508. package/esm/divider/Divider.js +17 -8
  1509. package/esm/divider/Divider.js.map +1 -1
  1510. package/esm/divider/index.js +3 -3
  1511. package/esm/divider/type.js +1 -1
  1512. package/esm/drawer/Drawer.js +15 -13
  1513. package/esm/drawer/Drawer.js.map +1 -1
  1514. package/esm/drawer/DrawerWrapper.js +4 -4
  1515. package/esm/drawer/_util.js +1 -1
  1516. package/esm/drawer/index.js +14 -12
  1517. package/esm/drawer/index.js.map +1 -1
  1518. package/esm/drawer/type.js +1 -1
  1519. package/esm/dropdown/Dropdown.js +40 -41
  1520. package/esm/dropdown/Dropdown.js.map +1 -1
  1521. package/esm/dropdown/DropdownItem.js +16 -16
  1522. package/esm/dropdown/DropdownMenu.js +17 -17
  1523. package/esm/dropdown/index.js +40 -41
  1524. package/esm/dropdown/index.js.map +1 -1
  1525. package/esm/dropdown/type.js +1 -1
  1526. package/esm/form/Form.d.ts +4 -1
  1527. package/esm/form/Form.js +74 -57
  1528. package/esm/form/Form.js.map +1 -1
  1529. package/esm/form/FormContext.js +1 -1
  1530. package/esm/form/FormItem.js +57 -45
  1531. package/esm/form/FormItem.js.map +1 -1
  1532. package/esm/form/formModel.js +30 -30
  1533. package/esm/form/index.js +50 -47
  1534. package/esm/form/index.js.map +1 -1
  1535. package/esm/form/type.js +1 -1
  1536. package/esm/grid/Col.js +6 -6
  1537. package/esm/grid/Row.js +8 -8
  1538. package/esm/grid/index.js +8 -8
  1539. package/esm/grid/type.js +1 -1
  1540. package/esm/index.js +64 -61
  1541. package/esm/index.js.map +1 -1
  1542. package/esm/input/Input.d.ts +8 -4
  1543. package/esm/input/Input.js +111 -54
  1544. package/esm/input/Input.js.map +1 -1
  1545. package/esm/input/InputGroup.js +3 -3
  1546. package/esm/input/index.d.ts +1 -1
  1547. package/esm/input/index.js +5 -11
  1548. package/esm/input/index.js.map +1 -1
  1549. package/esm/input/type.d.ts +28 -7
  1550. package/esm/input/type.js +1 -1
  1551. package/esm/input-number/InputNumber.js +14 -15
  1552. package/esm/input-number/InputNumber.js.map +1 -1
  1553. package/esm/input-number/StepHandler.js +14 -12
  1554. package/esm/input-number/StepHandler.js.map +1 -1
  1555. package/esm/input-number/index.js +14 -15
  1556. package/esm/input-number/index.js.map +1 -1
  1557. package/esm/input-number/type.js +1 -1
  1558. package/esm/input-number/utils/numberUtils.js +1 -1
  1559. package/esm/layout/Aside.js +3 -3
  1560. package/esm/layout/Layout.js +6 -6
  1561. package/esm/layout/index.js +6 -6
  1562. package/esm/layout/type.js +1 -1
  1563. package/esm/list/List.js +13 -11
  1564. package/esm/list/List.js.map +1 -1
  1565. package/esm/list/ListItem.js +1 -1
  1566. package/esm/list/ListItemMeta.js +1 -1
  1567. package/esm/list/index.js +13 -11
  1568. package/esm/list/index.js.map +1 -1
  1569. package/esm/list/type.js +1 -1
  1570. package/esm/loading/gradient.js +6 -46
  1571. package/esm/loading/gradient.js.map +1 -1
  1572. package/esm/loading/index.js +13 -11
  1573. package/esm/loading/index.js.map +1 -1
  1574. package/esm/loading/loading.js +21 -14
  1575. package/esm/loading/loading.js.map +1 -1
  1576. package/esm/loading/plugin.js +13 -11
  1577. package/esm/loading/plugin.js.map +1 -1
  1578. package/esm/loading/type.js +1 -1
  1579. package/esm/locale/LocalReceiver.js +3 -3
  1580. package/esm/locale/type.js +1 -1
  1581. package/esm/locale/zh_CN.js +2 -2
  1582. package/esm/locale/zh_CN.js.map +1 -1
  1583. package/esm/menu/HeadMenu.js +8 -8
  1584. package/esm/menu/Menu.js +8 -8
  1585. package/esm/menu/MenuContext.js +1 -1
  1586. package/esm/menu/MenuGroup.js +1 -1
  1587. package/esm/menu/MenuItem.js +2 -2
  1588. package/esm/menu/SubMenu.js +4 -4
  1589. package/esm/menu/_util/cacularPaddingLeft.js +1 -1
  1590. package/esm/menu/_util/checkMenuType.js +1 -1
  1591. package/esm/menu/_util/checkSubMenuActive.js +1 -1
  1592. package/esm/menu/_util/checkSubMenuChildExpanded.js +3 -3
  1593. package/esm/menu/_util/checkSubMenuChildrenActive.js +1 -1
  1594. package/esm/menu/_util/constant.js +1 -1
  1595. package/esm/menu/_util/getSubMenuChildStyle.js +1 -1
  1596. package/esm/menu/_util/type.js +1 -1
  1597. package/esm/menu/hooks/useMenuContext.js +5 -5
  1598. package/esm/menu/index.js +8 -8
  1599. package/esm/menu/type.js +1 -1
  1600. package/esm/message/Message.js +13 -11
  1601. package/esm/message/Message.js.map +1 -1
  1602. package/esm/message/MessageClose.js +1 -1
  1603. package/esm/message/MessageComponent.js +13 -11
  1604. package/esm/message/MessageComponent.js.map +1 -1
  1605. package/esm/message/MessageIcon.js +13 -11
  1606. package/esm/message/MessageIcon.js.map +1 -1
  1607. package/esm/message/const.js +1 -1
  1608. package/esm/message/index.js +13 -11
  1609. package/esm/message/index.js.map +1 -1
  1610. package/esm/message/type.js +1 -1
  1611. package/esm/message/useMessageClass.js +1 -1
  1612. package/esm/notification/Notification.js +3 -3
  1613. package/esm/notification/NotificationList.js +5 -5
  1614. package/esm/notification/NotificationPlugin.js +6 -6
  1615. package/esm/notification/index.js +6 -6
  1616. package/esm/notification/type.js +1 -1
  1617. package/esm/pagination/Pagination.js +26 -25
  1618. package/esm/pagination/Pagination.js.map +1 -1
  1619. package/esm/pagination/index.js +26 -25
  1620. package/esm/pagination/index.js.map +1 -1
  1621. package/esm/pagination/type.js +1 -1
  1622. package/esm/pagination/validators.js +1 -1
  1623. package/esm/popconfirm/PopConfirm.js +15 -14
  1624. package/esm/popconfirm/PopConfirm.js.map +1 -1
  1625. package/esm/popconfirm/PopContent.js +14 -12
  1626. package/esm/popconfirm/PopContent.js.map +1 -1
  1627. package/esm/popconfirm/index.js +15 -14
  1628. package/esm/popconfirm/index.js.map +1 -1
  1629. package/esm/popconfirm/type.js +1 -1
  1630. package/esm/popup/Popup.js +46 -64
  1631. package/esm/popup/Popup.js.map +1 -1
  1632. package/esm/popup/Portal.js +1 -1
  1633. package/esm/popup/hooks/usePopupCssTransition.js +8 -5
  1634. package/esm/popup/hooks/usePopupCssTransition.js.map +1 -1
  1635. package/esm/popup/hooks/useTriggerProps.js +1 -1
  1636. package/esm/popup/index.js +4 -5
  1637. package/esm/popup/index.js.map +1 -1
  1638. package/esm/popup/type.js +1 -1
  1639. package/esm/progress/Progress.js +3 -3
  1640. package/esm/progress/index.js +3 -3
  1641. package/esm/progress/type.js +1 -1
  1642. package/esm/radio/Radio.js +17 -17
  1643. package/esm/radio/RadioGroup.js +17 -17
  1644. package/esm/radio/index.js +17 -17
  1645. package/esm/radio/type.js +1 -1
  1646. package/esm/rate/type.js +1 -1
  1647. package/esm/select/base/Option.js +20 -20
  1648. package/esm/select/base/OptionGroup.js +2 -2
  1649. package/esm/select/base/PopupContent.js +24 -24
  1650. package/esm/select/base/Select.js +26 -25
  1651. package/esm/select/base/Select.js.map +1 -1
  1652. package/esm/select/index.js +26 -25
  1653. package/esm/select/index.js.map +1 -1
  1654. package/esm/select/type.js +1 -1
  1655. package/esm/select/util/helper.js +22 -22
  1656. package/esm/skeleton/type.js +1 -1
  1657. package/esm/slider/Slider.js +14 -16
  1658. package/esm/slider/Slider.js.map +1 -1
  1659. package/esm/slider/SliderHandleButton.js +7 -8
  1660. package/esm/slider/SliderHandleButton.js.map +1 -1
  1661. package/esm/slider/index.js +14 -16
  1662. package/esm/slider/index.js.map +1 -1
  1663. package/esm/slider/type.js +1 -1
  1664. package/esm/slider/utils/handleNumber.js +1 -1
  1665. package/esm/steps/StepItem.js +2 -2
  1666. package/esm/steps/Steps.js +2 -2
  1667. package/esm/steps/StepsContext.js +1 -1
  1668. package/esm/steps/index.js +2 -2
  1669. package/esm/steps/type.js +1 -1
  1670. package/esm/sticky-tool/type.js +1 -1
  1671. package/esm/swiper/Swiper.js +4 -4
  1672. package/esm/swiper/SwiperItem.js +1 -1
  1673. package/esm/swiper/index.js +4 -4
  1674. package/esm/swiper/type.js +1 -1
  1675. package/esm/switch/Switch.js +14 -12
  1676. package/esm/switch/Switch.js.map +1 -1
  1677. package/esm/switch/index.js +14 -12
  1678. package/esm/switch/index.js.map +1 -1
  1679. package/esm/switch/type.js +1 -1
  1680. package/esm/table/base/Table.d.ts +2 -1
  1681. package/esm/table/base/Table.js +36 -32
  1682. package/esm/table/base/Table.js.map +1 -1
  1683. package/esm/table/base/TableAsyncLoadingBody.js +16 -14
  1684. package/esm/table/base/TableAsyncLoadingBody.js.map +1 -1
  1685. package/esm/table/base/TableBody.js +21 -21
  1686. package/esm/table/base/TableCell.js +4 -4
  1687. package/esm/table/base/TableColGroup.js +1 -1
  1688. package/esm/table/base/TableContext.js +1 -1
  1689. package/esm/table/base/TableEmptyBody.js +1 -1
  1690. package/esm/table/base/TableFooter.js +1 -1
  1691. package/esm/table/base/TableHeader.js +12 -12
  1692. package/esm/table/base/TableLoadingBody.js +7 -7
  1693. package/esm/table/base/TableRow.js +21 -21
  1694. package/esm/table/hooks/useColumns.js +4 -4
  1695. package/esm/table/index.js +33 -32
  1696. package/esm/table/index.js.map +1 -1
  1697. package/esm/table/primary/FilterButton.js +23 -24
  1698. package/esm/table/primary/FilterButton.js.map +1 -1
  1699. package/esm/table/primary/SorterButton.js +7 -8
  1700. package/esm/table/primary/SorterButton.js.map +1 -1
  1701. package/esm/table/primary/Table.js +33 -32
  1702. package/esm/table/primary/Table.js.map +1 -1
  1703. package/esm/table/primary/expand-box.js +3 -3
  1704. package/esm/table/primary/useExpand.js +22 -22
  1705. package/esm/table/primary/useFilter.js +23 -24
  1706. package/esm/table/primary/useFilter.js.map +1 -1
  1707. package/esm/table/primary/useSelect.js +23 -23
  1708. package/esm/table/primary/useSorter.js +22 -23
  1709. package/esm/table/primary/useSorter.js.map +1 -1
  1710. package/esm/table/type.js +1 -1
  1711. package/esm/table/util/getRowKeyFromRowKey.js +1 -1
  1712. package/esm/table/util/index.js +1 -1
  1713. package/esm/tabs/TabBar.js +4 -4
  1714. package/esm/tabs/TabNav.js +4 -4
  1715. package/esm/tabs/TabNavItem.js +1 -1
  1716. package/esm/tabs/TabPanel.js +1 -1
  1717. package/esm/tabs/Tabs.js +4 -4
  1718. package/esm/tabs/index.js +4 -4
  1719. package/esm/tabs/type.js +1 -1
  1720. package/esm/tabs/useTabClass.js +1 -1
  1721. package/esm/tag/CheckTag.js +5 -5
  1722. package/esm/tag/Tag.js +5 -5
  1723. package/esm/tag/index.js +5 -5
  1724. package/esm/tag/type.js +1 -1
  1725. package/esm/textarea/Textarea.js +16 -16
  1726. package/esm/textarea/index.js +16 -16
  1727. package/esm/textarea/type.js +1 -1
  1728. package/esm/time-picker/InputItems.js +43 -33
  1729. package/esm/time-picker/InputItems.js.map +1 -1
  1730. package/esm/time-picker/TimePicker.js +33 -32
  1731. package/esm/time-picker/TimePicker.js.map +1 -1
  1732. package/esm/time-picker/TimeRangePicker.js +33 -32
  1733. package/esm/time-picker/TimeRangePicker.js.map +1 -1
  1734. package/esm/time-picker/consts.js +5 -5
  1735. package/esm/time-picker/index.js +33 -32
  1736. package/esm/time-picker/index.js.map +1 -1
  1737. package/esm/time-picker/interfaces.js +1 -1
  1738. package/esm/time-picker/panel/SinglePanel.js +29 -29
  1739. package/esm/time-picker/panel/TimePickerPanel.js +32 -30
  1740. package/esm/time-picker/panel/TimePickerPanel.js.map +1 -1
  1741. package/esm/time-picker/panel/TimePickerRangePanel.js +32 -30
  1742. package/esm/time-picker/panel/TimePickerRangePanel.js.map +1 -1
  1743. package/esm/time-picker/type.js +1 -1
  1744. package/esm/tooltip/Tooltip.js +7 -8
  1745. package/esm/tooltip/Tooltip.js.map +1 -1
  1746. package/esm/tooltip/index.js +7 -8
  1747. package/esm/tooltip/index.js.map +1 -1
  1748. package/esm/tooltip/type.js +1 -1
  1749. package/esm/transfer/Transfer.js +43 -42
  1750. package/esm/transfer/Transfer.js.map +1 -1
  1751. package/esm/transfer/TransferList.js +38 -37
  1752. package/esm/transfer/TransferList.js.map +1 -1
  1753. package/esm/transfer/index.js +43 -42
  1754. package/esm/transfer/index.js.map +1 -1
  1755. package/esm/transfer/type.js +1 -1
  1756. package/esm/transfer/utils.js +21 -21
  1757. package/esm/tree/Tree.js +52 -49
  1758. package/esm/tree/Tree.js.map +1 -1
  1759. package/esm/tree/TreeItem.js +21 -19
  1760. package/esm/tree/TreeItem.js.map +1 -1
  1761. package/esm/tree/index.js +52 -49
  1762. package/esm/tree/index.js.map +1 -1
  1763. package/esm/tree/interface.js +1 -1
  1764. package/esm/tree/type.js +1 -1
  1765. package/esm/tree/useControllable.js +3 -3
  1766. package/esm/tree/useStore.js +45 -44
  1767. package/esm/tree/useStore.js.map +1 -1
  1768. package/esm/tree/useTreeConfig.js +1 -1
  1769. package/esm/tree-select/TreeSelect.js +53 -51
  1770. package/esm/tree-select/TreeSelect.js.map +1 -1
  1771. package/esm/tree-select/TreeSelectInput.js +25 -25
  1772. package/esm/tree-select/TreeSelectSuffix.js +26 -24
  1773. package/esm/tree-select/TreeSelectSuffix.js.map +1 -1
  1774. package/esm/tree-select/TreeSelectTags.js +5 -5
  1775. package/esm/tree-select/index.js +53 -51
  1776. package/esm/tree-select/index.js.map +1 -1
  1777. package/esm/tree-select/type.js +1 -1
  1778. package/esm/tree-select/useTreeSelectConfig.js +2 -2
  1779. package/esm/upload/boolean-render.js +1 -1
  1780. package/esm/upload/dragger.js +15 -13
  1781. package/esm/upload/dragger.js.map +1 -1
  1782. package/esm/upload/hooks/useDefaultValue.js +7 -7
  1783. package/esm/upload/hooks/useSizeLimit.d.ts +2 -0
  1784. package/esm/upload/hooks/useSizeLimit.js +66 -0
  1785. package/esm/upload/hooks/useSizeLimit.js.map +1 -0
  1786. package/esm/upload/index.js +43 -40
  1787. package/esm/upload/index.js.map +1 -1
  1788. package/esm/upload/themes/dragger-progress.js +15 -13
  1789. package/esm/upload/themes/dragger-progress.js.map +1 -1
  1790. package/esm/upload/themes/flow-list/file-list.js +14 -12
  1791. package/esm/upload/themes/flow-list/file-list.js.map +1 -1
  1792. package/esm/upload/themes/flow-list/img-list.js +14 -12
  1793. package/esm/upload/themes/flow-list/img-list.js.map +1 -1
  1794. package/esm/upload/themes/flow-list/index.js +15 -13
  1795. package/esm/upload/themes/flow-list/index.js.map +1 -1
  1796. package/esm/upload/themes/image-card.js +15 -13
  1797. package/esm/upload/themes/image-card.js.map +1 -1
  1798. package/esm/upload/themes/single-file.js +13 -11
  1799. package/esm/upload/themes/single-file.js.map +1 -1
  1800. package/esm/upload/tips.js +1 -1
  1801. package/esm/upload/type.d.ts +3 -2
  1802. package/esm/upload/type.js +1 -1
  1803. package/esm/upload/types.js +1 -1
  1804. package/esm/upload/upload-trigger.js +14 -12
  1805. package/esm/upload/upload-trigger.js.map +1 -1
  1806. package/esm/upload/upload.js +62 -48
  1807. package/esm/upload/upload.js.map +1 -1
  1808. package/esm/upload/util.js +3 -3
  1809. package/lib/_chunks/dep-00c682f2.js +67 -0
  1810. package/lib/_chunks/dep-00c682f2.js.map +1 -0
  1811. package/lib/_chunks/dep-0532d795.js +302 -0
  1812. package/lib/_chunks/dep-0532d795.js.map +1 -0
  1813. package/lib/_chunks/dep-073cc01e.js +566 -0
  1814. package/lib/_chunks/dep-073cc01e.js.map +1 -0
  1815. package/lib/_chunks/dep-0e93f995.js +116 -0
  1816. package/lib/_chunks/dep-0e93f995.js.map +1 -0
  1817. package/lib/_chunks/dep-106adff6.js +16 -0
  1818. package/lib/_chunks/dep-106adff6.js.map +1 -0
  1819. package/lib/_chunks/dep-17da32ea.js +155 -0
  1820. package/lib/_chunks/dep-17da32ea.js.map +1 -0
  1821. package/lib/_chunks/dep-1bdb91ee.js +73 -0
  1822. package/lib/_chunks/dep-1bdb91ee.js.map +1 -0
  1823. package/lib/_chunks/dep-2670b458.js +153 -0
  1824. package/lib/_chunks/dep-2670b458.js.map +1 -0
  1825. package/lib/_chunks/dep-2c954aac.js +42 -0
  1826. package/lib/_chunks/dep-2c954aac.js.map +1 -0
  1827. package/lib/_chunks/dep-314993f3.js +24 -0
  1828. package/lib/_chunks/dep-314993f3.js.map +1 -0
  1829. package/lib/_chunks/dep-33e85467.js +26 -0
  1830. package/lib/_chunks/dep-33e85467.js.map +1 -0
  1831. package/lib/_chunks/dep-347cfd5e.js +386 -0
  1832. package/lib/_chunks/dep-347cfd5e.js.map +1 -0
  1833. package/lib/_chunks/dep-3720660d.js +25 -0
  1834. package/lib/_chunks/dep-3720660d.js.map +1 -0
  1835. package/lib/_chunks/dep-393a231f.js +860 -0
  1836. package/lib/_chunks/dep-393a231f.js.map +1 -0
  1837. package/lib/_chunks/dep-3b234d38.js +733 -0
  1838. package/lib/_chunks/dep-3b234d38.js.map +1 -0
  1839. package/lib/_chunks/dep-3c713383.js +106 -0
  1840. package/lib/_chunks/dep-3c713383.js.map +1 -0
  1841. package/lib/_chunks/dep-3f6bcf45.js +18 -0
  1842. package/lib/_chunks/dep-3f6bcf45.js.map +1 -0
  1843. package/lib/_chunks/dep-42dfd306.js +27 -0
  1844. package/lib/_chunks/dep-42dfd306.js.map +1 -0
  1845. package/lib/_chunks/dep-442ff40f.js +52 -0
  1846. package/lib/_chunks/dep-442ff40f.js.map +1 -0
  1847. package/lib/_chunks/dep-44e9b93c.js +92 -0
  1848. package/lib/_chunks/dep-44e9b93c.js.map +1 -0
  1849. package/lib/_chunks/dep-5496d5fc.js +24 -0
  1850. package/lib/_chunks/dep-5496d5fc.js.map +1 -0
  1851. package/lib/_chunks/dep-5588acf9.js +83 -0
  1852. package/lib/_chunks/dep-5588acf9.js.map +1 -0
  1853. package/lib/_chunks/dep-55ec31d6.js +18 -0
  1854. package/lib/_chunks/dep-55ec31d6.js.map +1 -0
  1855. package/lib/_chunks/dep-566d4902.js +34 -0
  1856. package/lib/_chunks/dep-566d4902.js.map +1 -0
  1857. package/lib/_chunks/dep-595a775f.js +41 -0
  1858. package/lib/_chunks/dep-595a775f.js.map +1 -0
  1859. package/lib/_chunks/dep-644def38.js +45 -0
  1860. package/lib/_chunks/dep-644def38.js.map +1 -0
  1861. package/lib/_chunks/dep-6609d273.js +95 -0
  1862. package/lib/_chunks/dep-6609d273.js.map +1 -0
  1863. package/lib/_chunks/dep-72ef6cf6.js +23 -0
  1864. package/lib/_chunks/dep-72ef6cf6.js.map +1 -0
  1865. package/lib/_chunks/dep-76ac4ad1.js +33 -0
  1866. package/lib/_chunks/dep-76ac4ad1.js.map +1 -0
  1867. package/lib/_chunks/dep-78bdf5e4.js +769 -0
  1868. package/lib/_chunks/dep-78bdf5e4.js.map +1 -0
  1869. package/lib/_chunks/dep-7cc7e3b1.js +43 -0
  1870. package/lib/_chunks/dep-7cc7e3b1.js.map +1 -0
  1871. package/lib/_chunks/dep-7dfff374.js +189 -0
  1872. package/lib/_chunks/dep-7dfff374.js.map +1 -0
  1873. package/lib/_chunks/dep-9779f7b5.js +54 -0
  1874. package/lib/_chunks/dep-9779f7b5.js.map +1 -0
  1875. package/lib/_chunks/dep-9f75cf86.js +47 -0
  1876. package/lib/_chunks/dep-9f75cf86.js.map +1 -0
  1877. package/lib/_chunks/dep-a20bc341.js +273 -0
  1878. package/lib/_chunks/dep-a20bc341.js.map +1 -0
  1879. package/lib/_chunks/dep-a2bc34d5.js +26 -0
  1880. package/lib/_chunks/dep-a2bc34d5.js.map +1 -0
  1881. package/lib/_chunks/dep-ab2216ba.js +221 -0
  1882. package/lib/_chunks/dep-ab2216ba.js.map +1 -0
  1883. package/lib/_chunks/dep-ad63776f.js +134 -0
  1884. package/lib/_chunks/dep-ad63776f.js.map +1 -0
  1885. package/lib/_chunks/dep-b05d4541.js +50 -0
  1886. package/lib/_chunks/dep-b05d4541.js.map +1 -0
  1887. package/lib/_chunks/dep-befa6559.js +45 -0
  1888. package/lib/_chunks/dep-befa6559.js.map +1 -0
  1889. package/lib/_chunks/dep-c0c0ba5e.js +128 -0
  1890. package/lib/_chunks/dep-c0c0ba5e.js.map +1 -0
  1891. package/lib/_chunks/dep-c0e4122f.js +84 -0
  1892. package/lib/_chunks/dep-c0e4122f.js.map +1 -0
  1893. package/lib/_chunks/dep-c1730598.js +196 -0
  1894. package/lib/_chunks/dep-c1730598.js.map +1 -0
  1895. package/lib/_chunks/dep-c611ea38.js +42 -0
  1896. package/lib/_chunks/dep-c611ea38.js.map +1 -0
  1897. package/lib/_chunks/dep-c87bcb14.js +953 -0
  1898. package/lib/_chunks/dep-c87bcb14.js.map +1 -0
  1899. package/lib/_chunks/dep-cb3cccda.js +199 -0
  1900. package/lib/_chunks/dep-cb3cccda.js.map +1 -0
  1901. package/lib/_chunks/dep-cfb40ae9.js +230 -0
  1902. package/lib/_chunks/dep-cfb40ae9.js.map +1 -0
  1903. package/lib/_chunks/dep-db274e18.js +106 -0
  1904. package/lib/_chunks/dep-db274e18.js.map +1 -0
  1905. package/lib/_chunks/dep-e09b37eb.js +44 -0
  1906. package/lib/_chunks/dep-e09b37eb.js.map +1 -0
  1907. package/lib/_chunks/dep-e4b59541.js +49 -0
  1908. package/lib/_chunks/dep-e4b59541.js.map +1 -0
  1909. package/lib/_chunks/dep-e71d0ba4.js +45 -0
  1910. package/lib/_chunks/dep-e71d0ba4.js.map +1 -0
  1911. package/lib/_chunks/dep-e7d98398.js +117 -0
  1912. package/lib/_chunks/dep-e7d98398.js.map +1 -0
  1913. package/lib/_chunks/dep-f4f551a6.js +45 -0
  1914. package/lib/_chunks/dep-f4f551a6.js.map +1 -0
  1915. package/lib/_chunks/dep-fa7917fc.js +32 -0
  1916. package/lib/_chunks/dep-fa7917fc.js.map +1 -0
  1917. package/lib/_common/js/common.d.ts +3 -0
  1918. package/lib/_common/js/common.js +1 -1
  1919. package/lib/_common/js/date-picker/utils.d.ts +87 -0
  1920. package/lib/_common/js/date-picker/utils.js +379 -0
  1921. package/lib/_common/js/date-picker/utils.js.map +1 -0
  1922. package/lib/_common/js/loading/circle-adapter.d.ts +1 -0
  1923. package/lib/_common/js/loading/circle-adapter.js +50 -0
  1924. package/lib/_common/js/loading/circle-adapter.js.map +1 -0
  1925. package/lib/_common/js/log/log.d.ts +3 -0
  1926. package/lib/_common/js/log/log.js +1 -1
  1927. package/lib/_common/js/log/types.d.ts +8 -0
  1928. package/lib/_common/js/log/types.js +1 -1
  1929. package/lib/_common/js/tree/tree-node-model.js +25 -24
  1930. package/lib/_common/js/tree/tree-node-model.js.map +1 -1
  1931. package/lib/_common/js/tree/tree-node.js +28 -27
  1932. package/lib/_common/js/tree/tree-node.js.map +1 -1
  1933. package/lib/_common/js/tree/tree-store.js +37 -36
  1934. package/lib/_common/js/tree/tree-store.js.map +1 -1
  1935. package/lib/_common/js/tree/types.js +1 -1
  1936. package/lib/_common/js/upload/types.js +1 -1
  1937. package/lib/_common/js/upload/xhr.js +1 -1
  1938. package/lib/_common/js/utils/set-style.d.ts +8 -0
  1939. package/lib/_common/js/utils/set-style.js +15 -0
  1940. package/lib/_common/js/utils/set-style.js.map +1 -0
  1941. package/lib/_util/callBoth.js +1 -1
  1942. package/lib/_util/composeRefs.js +4 -2
  1943. package/lib/_util/composeRefs.js.map +1 -1
  1944. package/lib/_util/dom.js +6 -6
  1945. package/lib/_util/easing.js +1 -1
  1946. package/lib/_util/forwardRefWithStatics.js +1 -1
  1947. package/lib/_util/getScrollbarWidth.js +1 -1
  1948. package/lib/_util/hasScrollBar.js +1 -1
  1949. package/lib/_util/helper.js +14 -14
  1950. package/lib/_util/injectValue.js +1 -1
  1951. package/lib/_util/insertCSS.js +1 -1
  1952. package/lib/_util/isCallable.js +1 -1
  1953. package/lib/_util/linearGradient.js +2 -2
  1954. package/lib/_util/noop.js +1 -1
  1955. package/lib/_util/number.js +1 -1
  1956. package/lib/_util/setStyle.js +1 -1
  1957. package/lib/_util/useClickOutside.js +1 -1
  1958. package/lib/_util/useCommonClassName.js +1 -1
  1959. package/lib/_util/useConfig.js +1 -1
  1960. package/lib/_util/useDefault.js +3 -3
  1961. package/lib/_util/useDefaultValue.js +5 -5
  1962. package/lib/_util/usePersistFn.js +1 -1
  1963. package/lib/_util/usePrevious.js +1 -1
  1964. package/lib/_util/useRefAndForward.js +1 -1
  1965. package/lib/_util/useRipple.js +1 -1
  1966. package/lib/_util/useSetState.js +4 -4
  1967. package/lib/_util/useUpdateEffect.js +1 -1
  1968. package/lib/addon/Addon.js +3 -3
  1969. package/lib/addon/index.js +3 -3
  1970. package/lib/affix/Affix.js +11 -11
  1971. package/lib/affix/index.js +11 -11
  1972. package/lib/affix/type.js +1 -1
  1973. package/lib/alert/Alert.js +5 -5
  1974. package/lib/alert/index.js +5 -5
  1975. package/lib/alert/type.js +1 -1
  1976. package/lib/anchor/Anchor.js +22 -21
  1977. package/lib/anchor/Anchor.js.map +1 -1
  1978. package/lib/anchor/AnchorContext.js +1 -1
  1979. package/lib/anchor/AnchorItem.js +2 -2
  1980. package/lib/anchor/AnchorTarget.js +11 -10
  1981. package/lib/anchor/AnchorTarget.js.map +1 -1
  1982. package/lib/anchor/_util/clipboard.js +1 -1
  1983. package/lib/anchor/_util/dom.js +1 -1
  1984. package/lib/anchor/index.js +22 -21
  1985. package/lib/anchor/index.js.map +1 -1
  1986. package/lib/anchor/type.js +1 -1
  1987. package/lib/avatar/AvararGroup.js +6 -7
  1988. package/lib/avatar/AvararGroup.js.map +1 -1
  1989. package/lib/avatar/Avatar.js +6 -7
  1990. package/lib/avatar/Avatar.js.map +1 -1
  1991. package/lib/avatar/AvatarContext.js +1 -1
  1992. package/lib/avatar/index.js +6 -7
  1993. package/lib/avatar/index.js.map +1 -1
  1994. package/lib/avatar/type.js +1 -1
  1995. package/lib/badge/Badge.js +3 -3
  1996. package/lib/badge/index.js +3 -3
  1997. package/lib/badge/type.js +1 -1
  1998. package/lib/breadcrumb/Breadcrumb.js +3 -3
  1999. package/lib/breadcrumb/BreadcrumbContext.js +1 -1
  2000. package/lib/breadcrumb/BreadcrumbItem.js +3 -3
  2001. package/lib/breadcrumb/BreadcrumbProps.js +1 -1
  2002. package/lib/breadcrumb/index.js +3 -3
  2003. package/lib/breadcrumb/type.js +1 -1
  2004. package/lib/button/Button.js +14 -12
  2005. package/lib/button/Button.js.map +1 -1
  2006. package/lib/button/index.js +12 -10
  2007. package/lib/button/index.js.map +1 -1
  2008. package/lib/button/type.js +1 -1
  2009. package/lib/calendar/Calendar.js +26 -25
  2010. package/lib/calendar/Calendar.js.map +1 -1
  2011. package/lib/calendar/_util.js +1 -1
  2012. package/lib/calendar/index.js +26 -25
  2013. package/lib/calendar/index.js.map +1 -1
  2014. package/lib/calendar/type.js +1 -1
  2015. package/lib/card/type.js +1 -1
  2016. package/lib/cascader/Cascader.js +47 -45
  2017. package/lib/cascader/Cascader.js.map +1 -1
  2018. package/lib/cascader/components/InputContent.js +20 -20
  2019. package/lib/cascader/components/Item.js +20 -19
  2020. package/lib/cascader/components/Item.js.map +1 -1
  2021. package/lib/cascader/components/Panel.js +20 -19
  2022. package/lib/cascader/components/Panel.js.map +1 -1
  2023. package/lib/cascader/index.js +47 -45
  2024. package/lib/cascader/index.js.map +1 -1
  2025. package/lib/cascader/interface.js +28 -27
  2026. package/lib/cascader/interface.js.map +1 -1
  2027. package/lib/cascader/type.js +1 -1
  2028. package/lib/cascader/utils/cascader.js +4 -4
  2029. package/lib/cascader/utils/helper.js +2 -2
  2030. package/lib/cascader/utils/inputContent.js +17 -17
  2031. package/lib/cascader/utils/item.js +4 -4
  2032. package/lib/cascader/utils/panel.js +7 -7
  2033. package/lib/checkbox/Checkbox.js +16 -16
  2034. package/lib/checkbox/CheckboxGroup.js +16 -16
  2035. package/lib/checkbox/index.js +16 -16
  2036. package/lib/checkbox/type.js +1 -1
  2037. package/lib/comment/Comment.js +1 -1
  2038. package/lib/comment/index.js +1 -1
  2039. package/lib/comment/type.js +1 -1
  2040. package/lib/common/Check.js +14 -14
  2041. package/lib/common/FakeArrow.js +2 -2
  2042. package/lib/common/Portal.js +4 -4
  2043. package/lib/common.js +1 -1
  2044. package/lib/config-provider/ConfigContext.js +1 -1
  2045. package/lib/config-provider/ConfigProvider.js +3 -3
  2046. package/lib/config-provider/index.js +3 -3
  2047. package/lib/config-provider/type.js +1 -1
  2048. package/lib/date-picker/DatePicker.js +32 -31
  2049. package/lib/date-picker/DatePicker.js.map +1 -1
  2050. package/lib/date-picker/base/CalendarPresets.js +12 -10
  2051. package/lib/date-picker/base/CalendarPresets.js.map +1 -1
  2052. package/lib/date-picker/base/Cell.js +2 -2
  2053. package/lib/date-picker/base/Header.js +12 -10
  2054. package/lib/date-picker/base/Header.js.map +1 -1
  2055. package/lib/date-picker/base/Table.js +4 -4
  2056. package/lib/date-picker/index.js +32 -31
  2057. package/lib/date-picker/index.js.map +1 -1
  2058. package/lib/date-picker/panel/Date.d.ts +2 -1
  2059. package/lib/date-picker/panel/Date.js +27 -25
  2060. package/lib/date-picker/panel/Date.js.map +1 -1
  2061. package/lib/date-picker/panel/DateRange.js +27 -25
  2062. package/lib/date-picker/panel/DateRange.js.map +1 -1
  2063. package/lib/date-picker/type.js +1 -1
  2064. package/lib/dialog/Dialog.js +12 -10
  2065. package/lib/dialog/Dialog.js.map +1 -1
  2066. package/lib/dialog/RenderDialog.js +5 -5
  2067. package/lib/dialog/index.js +12 -10
  2068. package/lib/dialog/index.js.map +1 -1
  2069. package/lib/dialog/plugin.js +12 -10
  2070. package/lib/dialog/plugin.js.map +1 -1
  2071. package/lib/dialog/type.d.ts +3 -9
  2072. package/lib/dialog/type.js +1 -1
  2073. package/lib/divider/Divider.js +17 -8
  2074. package/lib/divider/Divider.js.map +1 -1
  2075. package/lib/divider/index.js +3 -3
  2076. package/lib/divider/type.js +1 -1
  2077. package/lib/drawer/Drawer.js +13 -11
  2078. package/lib/drawer/Drawer.js.map +1 -1
  2079. package/lib/drawer/DrawerWrapper.js +4 -4
  2080. package/lib/drawer/_util.js +1 -1
  2081. package/lib/drawer/index.js +12 -10
  2082. package/lib/drawer/index.js.map +1 -1
  2083. package/lib/drawer/type.js +1 -1
  2084. package/lib/dropdown/Dropdown.js +36 -37
  2085. package/lib/dropdown/Dropdown.js.map +1 -1
  2086. package/lib/dropdown/DropdownItem.js +14 -14
  2087. package/lib/dropdown/DropdownMenu.js +15 -15
  2088. package/lib/dropdown/index.js +36 -37
  2089. package/lib/dropdown/index.js.map +1 -1
  2090. package/lib/dropdown/type.js +1 -1
  2091. package/lib/form/Form.d.ts +4 -1
  2092. package/lib/form/Form.js +70 -53
  2093. package/lib/form/Form.js.map +1 -1
  2094. package/lib/form/FormContext.js +1 -1
  2095. package/lib/form/FormItem.js +53 -41
  2096. package/lib/form/FormItem.js.map +1 -1
  2097. package/lib/form/formModel.js +26 -26
  2098. package/lib/form/index.js +46 -43
  2099. package/lib/form/index.js.map +1 -1
  2100. package/lib/form/type.js +1 -1
  2101. package/lib/grid/Col.js +5 -5
  2102. package/lib/grid/Row.js +7 -7
  2103. package/lib/grid/index.js +7 -7
  2104. package/lib/grid/type.js +1 -1
  2105. package/lib/index.js +60 -57
  2106. package/lib/index.js.map +1 -1
  2107. package/lib/input/Input.d.ts +8 -4
  2108. package/lib/input/Input.js +111 -52
  2109. package/lib/input/Input.js.map +1 -1
  2110. package/lib/input/InputGroup.js +3 -3
  2111. package/lib/input/index.d.ts +1 -1
  2112. package/lib/input/index.js +5 -9
  2113. package/lib/input/index.js.map +1 -1
  2114. package/lib/input/type.d.ts +28 -7
  2115. package/lib/input/type.js +1 -1
  2116. package/lib/input-number/InputNumber.js +12 -12
  2117. package/lib/input-number/StepHandler.js +12 -10
  2118. package/lib/input-number/StepHandler.js.map +1 -1
  2119. package/lib/input-number/index.js +12 -12
  2120. package/lib/input-number/type.js +1 -1
  2121. package/lib/input-number/utils/numberUtils.js +1 -1
  2122. package/lib/layout/Aside.js +3 -3
  2123. package/lib/layout/Layout.js +6 -6
  2124. package/lib/layout/index.js +6 -6
  2125. package/lib/layout/type.js +1 -1
  2126. package/lib/list/List.js +11 -9
  2127. package/lib/list/List.js.map +1 -1
  2128. package/lib/list/ListItem.js +1 -1
  2129. package/lib/list/ListItemMeta.js +1 -1
  2130. package/lib/list/index.js +11 -9
  2131. package/lib/list/index.js.map +1 -1
  2132. package/lib/list/type.js +1 -1
  2133. package/lib/loading/gradient.js +6 -46
  2134. package/lib/loading/gradient.js.map +1 -1
  2135. package/lib/loading/index.js +11 -9
  2136. package/lib/loading/index.js.map +1 -1
  2137. package/lib/loading/loading.js +19 -12
  2138. package/lib/loading/loading.js.map +1 -1
  2139. package/lib/loading/plugin.js +11 -9
  2140. package/lib/loading/plugin.js.map +1 -1
  2141. package/lib/loading/type.js +1 -1
  2142. package/lib/locale/LocalReceiver.js +2 -2
  2143. package/lib/locale/type.js +1 -1
  2144. package/lib/locale/zh_CN.js +2 -2
  2145. package/lib/locale/zh_CN.js.map +1 -1
  2146. package/lib/menu/HeadMenu.js +7 -7
  2147. package/lib/menu/Menu.js +7 -7
  2148. package/lib/menu/MenuContext.js +1 -1
  2149. package/lib/menu/MenuGroup.js +1 -1
  2150. package/lib/menu/MenuItem.js +2 -2
  2151. package/lib/menu/SubMenu.js +4 -4
  2152. package/lib/menu/_util/cacularPaddingLeft.js +1 -1
  2153. package/lib/menu/_util/checkMenuType.js +1 -1
  2154. package/lib/menu/_util/checkSubMenuActive.js +1 -1
  2155. package/lib/menu/_util/checkSubMenuChildExpanded.js +3 -3
  2156. package/lib/menu/_util/checkSubMenuChildrenActive.js +1 -1
  2157. package/lib/menu/_util/constant.js +1 -1
  2158. package/lib/menu/_util/getSubMenuChildStyle.js +1 -1
  2159. package/lib/menu/_util/type.js +1 -1
  2160. package/lib/menu/hooks/useMenuContext.js +5 -5
  2161. package/lib/menu/index.js +7 -7
  2162. package/lib/menu/type.js +1 -1
  2163. package/lib/message/Message.js +11 -9
  2164. package/lib/message/Message.js.map +1 -1
  2165. package/lib/message/MessageClose.js +1 -1
  2166. package/lib/message/MessageComponent.js +11 -9
  2167. package/lib/message/MessageComponent.js.map +1 -1
  2168. package/lib/message/MessageIcon.js +11 -9
  2169. package/lib/message/MessageIcon.js.map +1 -1
  2170. package/lib/message/const.js +1 -1
  2171. package/lib/message/index.js +11 -9
  2172. package/lib/message/index.js.map +1 -1
  2173. package/lib/message/type.js +1 -1
  2174. package/lib/message/useMessageClass.js +1 -1
  2175. package/lib/notification/Notification.js +3 -3
  2176. package/lib/notification/NotificationList.js +5 -5
  2177. package/lib/notification/NotificationPlugin.js +6 -6
  2178. package/lib/notification/index.js +6 -6
  2179. package/lib/notification/type.js +1 -1
  2180. package/lib/pagination/Pagination.js +22 -21
  2181. package/lib/pagination/Pagination.js.map +1 -1
  2182. package/lib/pagination/index.js +22 -21
  2183. package/lib/pagination/index.js.map +1 -1
  2184. package/lib/pagination/type.js +1 -1
  2185. package/lib/pagination/validators.js +1 -1
  2186. package/lib/popconfirm/PopConfirm.js +13 -12
  2187. package/lib/popconfirm/PopConfirm.js.map +1 -1
  2188. package/lib/popconfirm/PopContent.js +12 -10
  2189. package/lib/popconfirm/PopContent.js.map +1 -1
  2190. package/lib/popconfirm/index.js +13 -12
  2191. package/lib/popconfirm/index.js.map +1 -1
  2192. package/lib/popconfirm/type.js +1 -1
  2193. package/lib/popup/Popup.js +46 -64
  2194. package/lib/popup/Popup.js.map +1 -1
  2195. package/lib/popup/Portal.js +1 -1
  2196. package/lib/popup/hooks/usePopupCssTransition.js +8 -5
  2197. package/lib/popup/hooks/usePopupCssTransition.js.map +1 -1
  2198. package/lib/popup/hooks/useTriggerProps.js +1 -1
  2199. package/lib/popup/index.js +4 -5
  2200. package/lib/popup/index.js.map +1 -1
  2201. package/lib/popup/type.js +1 -1
  2202. package/lib/progress/Progress.js +3 -3
  2203. package/lib/progress/index.js +3 -3
  2204. package/lib/progress/type.js +1 -1
  2205. package/lib/radio/Radio.js +15 -15
  2206. package/lib/radio/RadioGroup.js +15 -15
  2207. package/lib/radio/index.js +15 -15
  2208. package/lib/radio/type.js +1 -1
  2209. package/lib/rate/type.js +1 -1
  2210. package/lib/select/base/Option.js +16 -16
  2211. package/lib/select/base/OptionGroup.js +2 -2
  2212. package/lib/select/base/PopupContent.js +20 -20
  2213. package/lib/select/base/Select.js +22 -21
  2214. package/lib/select/base/Select.js.map +1 -1
  2215. package/lib/select/index.js +22 -21
  2216. package/lib/select/index.js.map +1 -1
  2217. package/lib/select/type.js +1 -1
  2218. package/lib/select/util/helper.js +18 -18
  2219. package/lib/skeleton/type.js +1 -1
  2220. package/lib/slider/Slider.js +12 -13
  2221. package/lib/slider/Slider.js.map +1 -1
  2222. package/lib/slider/SliderHandleButton.js +6 -7
  2223. package/lib/slider/SliderHandleButton.js.map +1 -1
  2224. package/lib/slider/index.js +12 -13
  2225. package/lib/slider/index.js.map +1 -1
  2226. package/lib/slider/type.js +1 -1
  2227. package/lib/slider/utils/handleNumber.js +1 -1
  2228. package/lib/steps/StepItem.js +2 -2
  2229. package/lib/steps/Steps.js +2 -2
  2230. package/lib/steps/StepsContext.js +1 -1
  2231. package/lib/steps/index.js +2 -2
  2232. package/lib/steps/type.js +1 -1
  2233. package/lib/sticky-tool/type.js +1 -1
  2234. package/lib/swiper/Swiper.js +4 -4
  2235. package/lib/swiper/SwiperItem.js +1 -1
  2236. package/lib/swiper/index.js +4 -4
  2237. package/lib/swiper/type.js +1 -1
  2238. package/lib/switch/Switch.js +12 -10
  2239. package/lib/switch/Switch.js.map +1 -1
  2240. package/lib/switch/index.js +12 -10
  2241. package/lib/switch/index.js.map +1 -1
  2242. package/lib/switch/type.js +1 -1
  2243. package/lib/table/base/Table.d.ts +2 -1
  2244. package/lib/table/base/Table.js +32 -28
  2245. package/lib/table/base/Table.js.map +1 -1
  2246. package/lib/table/base/TableAsyncLoadingBody.js +13 -11
  2247. package/lib/table/base/TableAsyncLoadingBody.js.map +1 -1
  2248. package/lib/table/base/TableBody.js +17 -17
  2249. package/lib/table/base/TableCell.js +4 -4
  2250. package/lib/table/base/TableColGroup.js +1 -1
  2251. package/lib/table/base/TableContext.js +1 -1
  2252. package/lib/table/base/TableEmptyBody.js +1 -1
  2253. package/lib/table/base/TableFooter.js +1 -1
  2254. package/lib/table/base/TableHeader.js +10 -10
  2255. package/lib/table/base/TableLoadingBody.js +5 -5
  2256. package/lib/table/base/TableRow.js +17 -17
  2257. package/lib/table/hooks/useColumns.js +4 -4
  2258. package/lib/table/index.js +29 -28
  2259. package/lib/table/index.js.map +1 -1
  2260. package/lib/table/primary/FilterButton.js +20 -21
  2261. package/lib/table/primary/FilterButton.js.map +1 -1
  2262. package/lib/table/primary/SorterButton.js +6 -7
  2263. package/lib/table/primary/SorterButton.js.map +1 -1
  2264. package/lib/table/primary/Table.js +29 -28
  2265. package/lib/table/primary/Table.js.map +1 -1
  2266. package/lib/table/primary/expand-box.js +2 -2
  2267. package/lib/table/primary/useExpand.js +17 -17
  2268. package/lib/table/primary/useFilter.js +20 -21
  2269. package/lib/table/primary/useFilter.js.map +1 -1
  2270. package/lib/table/primary/useSelect.js +20 -20
  2271. package/lib/table/primary/useSorter.js +18 -19
  2272. package/lib/table/primary/useSorter.js.map +1 -1
  2273. package/lib/table/type.js +1 -1
  2274. package/lib/table/util/getRowKeyFromRowKey.js +1 -1
  2275. package/lib/table/util/index.js +1 -1
  2276. package/lib/tabs/TabBar.js +4 -4
  2277. package/lib/tabs/TabNav.js +4 -4
  2278. package/lib/tabs/TabNavItem.js +1 -1
  2279. package/lib/tabs/TabPanel.js +1 -1
  2280. package/lib/tabs/Tabs.js +4 -4
  2281. package/lib/tabs/index.js +4 -4
  2282. package/lib/tabs/type.js +1 -1
  2283. package/lib/tabs/useTabClass.js +1 -1
  2284. package/lib/tag/CheckTag.js +5 -5
  2285. package/lib/tag/Tag.js +5 -5
  2286. package/lib/tag/index.js +5 -5
  2287. package/lib/tag/type.js +1 -1
  2288. package/lib/textarea/Textarea.js +14 -14
  2289. package/lib/textarea/index.js +14 -14
  2290. package/lib/textarea/type.js +1 -1
  2291. package/lib/time-picker/InputItems.js +39 -29
  2292. package/lib/time-picker/InputItems.js.map +1 -1
  2293. package/lib/time-picker/TimePicker.js +29 -28
  2294. package/lib/time-picker/TimePicker.js.map +1 -1
  2295. package/lib/time-picker/TimeRangePicker.js +29 -28
  2296. package/lib/time-picker/TimeRangePicker.js.map +1 -1
  2297. package/lib/time-picker/consts.js +4 -4
  2298. package/lib/time-picker/index.js +29 -28
  2299. package/lib/time-picker/index.js.map +1 -1
  2300. package/lib/time-picker/interfaces.js +1 -1
  2301. package/lib/time-picker/panel/SinglePanel.js +24 -24
  2302. package/lib/time-picker/panel/TimePickerPanel.js +28 -26
  2303. package/lib/time-picker/panel/TimePickerPanel.js.map +1 -1
  2304. package/lib/time-picker/panel/TimePickerRangePanel.js +28 -26
  2305. package/lib/time-picker/panel/TimePickerRangePanel.js.map +1 -1
  2306. package/lib/time-picker/type.js +1 -1
  2307. package/lib/tooltip/Tooltip.js +6 -7
  2308. package/lib/tooltip/Tooltip.js.map +1 -1
  2309. package/lib/tooltip/index.js +6 -7
  2310. package/lib/tooltip/index.js.map +1 -1
  2311. package/lib/tooltip/type.js +1 -1
  2312. package/lib/transfer/Transfer.js +39 -38
  2313. package/lib/transfer/Transfer.js.map +1 -1
  2314. package/lib/transfer/TransferList.js +34 -33
  2315. package/lib/transfer/TransferList.js.map +1 -1
  2316. package/lib/transfer/index.js +39 -38
  2317. package/lib/transfer/index.js.map +1 -1
  2318. package/lib/transfer/type.js +1 -1
  2319. package/lib/transfer/utils.js +17 -17
  2320. package/lib/tree/Tree.js +48 -45
  2321. package/lib/tree/Tree.js.map +1 -1
  2322. package/lib/tree/TreeItem.js +19 -17
  2323. package/lib/tree/TreeItem.js.map +1 -1
  2324. package/lib/tree/index.js +48 -45
  2325. package/lib/tree/index.js.map +1 -1
  2326. package/lib/tree/interface.js +1 -1
  2327. package/lib/tree/type.js +1 -1
  2328. package/lib/tree/useControllable.js +3 -3
  2329. package/lib/tree/useStore.js +41 -40
  2330. package/lib/tree/useStore.js.map +1 -1
  2331. package/lib/tree/useTreeConfig.js +1 -1
  2332. package/lib/tree-select/TreeSelect.js +49 -47
  2333. package/lib/tree-select/TreeSelect.js.map +1 -1
  2334. package/lib/tree-select/TreeSelectInput.js +21 -21
  2335. package/lib/tree-select/TreeSelectSuffix.js +22 -20
  2336. package/lib/tree-select/TreeSelectSuffix.js.map +1 -1
  2337. package/lib/tree-select/TreeSelectTags.js +5 -5
  2338. package/lib/tree-select/index.js +49 -47
  2339. package/lib/tree-select/index.js.map +1 -1
  2340. package/lib/tree-select/type.js +1 -1
  2341. package/lib/tree-select/useTreeSelectConfig.js +2 -2
  2342. package/lib/upload/boolean-render.js +1 -1
  2343. package/lib/upload/dragger.js +13 -11
  2344. package/lib/upload/dragger.js.map +1 -1
  2345. package/lib/upload/hooks/useDefaultValue.js +6 -6
  2346. package/lib/upload/hooks/useSizeLimit.d.ts +2 -0
  2347. package/lib/upload/hooks/useSizeLimit.js +63 -0
  2348. package/lib/upload/hooks/useSizeLimit.js.map +1 -0
  2349. package/lib/upload/index.js +39 -36
  2350. package/lib/upload/index.js.map +1 -1
  2351. package/lib/upload/themes/dragger-progress.js +13 -11
  2352. package/lib/upload/themes/dragger-progress.js.map +1 -1
  2353. package/lib/upload/themes/flow-list/file-list.js +12 -10
  2354. package/lib/upload/themes/flow-list/file-list.js.map +1 -1
  2355. package/lib/upload/themes/flow-list/img-list.js +12 -10
  2356. package/lib/upload/themes/flow-list/img-list.js.map +1 -1
  2357. package/lib/upload/themes/flow-list/index.js +13 -11
  2358. package/lib/upload/themes/flow-list/index.js.map +1 -1
  2359. package/lib/upload/themes/image-card.js +13 -11
  2360. package/lib/upload/themes/image-card.js.map +1 -1
  2361. package/lib/upload/themes/single-file.js +11 -9
  2362. package/lib/upload/themes/single-file.js.map +1 -1
  2363. package/lib/upload/tips.js +1 -1
  2364. package/lib/upload/type.d.ts +3 -2
  2365. package/lib/upload/type.js +1 -1
  2366. package/lib/upload/types.js +1 -1
  2367. package/lib/upload/upload-trigger.js +12 -10
  2368. package/lib/upload/upload-trigger.js.map +1 -1
  2369. package/lib/upload/upload.js +58 -44
  2370. package/lib/upload/upload.js.map +1 -1
  2371. package/lib/upload/util.js +3 -3
  2372. package/package.json +8 -7
  2373. package/cjs/_chunks/dep-045b87c1.js +0 -30
  2374. package/cjs/_chunks/dep-045b87c1.js.map +0 -1
  2375. package/cjs/_chunks/dep-059e74d9.js +0 -47
  2376. package/cjs/_chunks/dep-059e74d9.js.map +0 -1
  2377. package/cjs/_chunks/dep-0705da20.js +0 -44
  2378. package/cjs/_chunks/dep-0705da20.js.map +0 -1
  2379. package/cjs/_chunks/dep-07d4a79b.js +0 -26
  2380. package/cjs/_chunks/dep-07d4a79b.js.map +0 -1
  2381. package/cjs/_chunks/dep-0e3f1753.js +0 -141
  2382. package/cjs/_chunks/dep-0e3f1753.js.map +0 -1
  2383. package/cjs/_chunks/dep-15af0f44.js +0 -275
  2384. package/cjs/_chunks/dep-15af0f44.js.map +0 -1
  2385. package/cjs/_chunks/dep-1bafebb1.js +0 -52
  2386. package/cjs/_chunks/dep-1bafebb1.js.map +0 -1
  2387. package/cjs/_chunks/dep-20e76bfc.js +0 -159
  2388. package/cjs/_chunks/dep-20e76bfc.js.map +0 -1
  2389. package/cjs/_chunks/dep-228a3548.js +0 -232
  2390. package/cjs/_chunks/dep-228a3548.js.map +0 -1
  2391. package/cjs/_chunks/dep-35453ccd.js +0 -864
  2392. package/cjs/_chunks/dep-35453ccd.js.map +0 -1
  2393. package/cjs/_chunks/dep-3ca698ba.js +0 -568
  2394. package/cjs/_chunks/dep-3ca698ba.js.map +0 -1
  2395. package/cjs/_chunks/dep-449daca3.js +0 -25
  2396. package/cjs/_chunks/dep-449daca3.js.map +0 -1
  2397. package/cjs/_chunks/dep-48870ae5.js +0 -18
  2398. package/cjs/_chunks/dep-48870ae5.js.map +0 -1
  2399. package/cjs/_chunks/dep-4a02b995.js +0 -57
  2400. package/cjs/_chunks/dep-4a02b995.js.map +0 -1
  2401. package/cjs/_chunks/dep-4f605641.js +0 -740
  2402. package/cjs/_chunks/dep-4f605641.js.map +0 -1
  2403. package/cjs/_chunks/dep-552722c0.js +0 -86
  2404. package/cjs/_chunks/dep-552722c0.js.map +0 -1
  2405. package/cjs/_chunks/dep-55c2ba72.js +0 -200
  2406. package/cjs/_chunks/dep-55c2ba72.js.map +0 -1
  2407. package/cjs/_chunks/dep-59b9b071.js +0 -108
  2408. package/cjs/_chunks/dep-59b9b071.js.map +0 -1
  2409. package/cjs/_chunks/dep-5e46865d.js +0 -95
  2410. package/cjs/_chunks/dep-5e46865d.js.map +0 -1
  2411. package/cjs/_chunks/dep-6681bc7b.js +0 -49
  2412. package/cjs/_chunks/dep-6681bc7b.js.map +0 -1
  2413. package/cjs/_chunks/dep-66fbd01b.js +0 -120
  2414. package/cjs/_chunks/dep-66fbd01b.js.map +0 -1
  2415. package/cjs/_chunks/dep-69abf228.js +0 -27
  2416. package/cjs/_chunks/dep-69abf228.js.map +0 -1
  2417. package/cjs/_chunks/dep-72511bfe.js +0 -45
  2418. package/cjs/_chunks/dep-72511bfe.js.map +0 -1
  2419. package/cjs/_chunks/dep-72f8673c.js +0 -97
  2420. package/cjs/_chunks/dep-72f8673c.js.map +0 -1
  2421. package/cjs/_chunks/dep-735b841a.js +0 -20
  2422. package/cjs/_chunks/dep-735b841a.js.map +0 -1
  2423. package/cjs/_chunks/dep-7a0cfc4c.js +0 -110
  2424. package/cjs/_chunks/dep-7a0cfc4c.js.map +0 -1
  2425. package/cjs/_chunks/dep-7d00ab60.js +0 -34
  2426. package/cjs/_chunks/dep-7d00ab60.js.map +0 -1
  2427. package/cjs/_chunks/dep-8027cfc6.js +0 -197
  2428. package/cjs/_chunks/dep-8027cfc6.js.map +0 -1
  2429. package/cjs/_chunks/dep-871fbfc7.js +0 -28
  2430. package/cjs/_chunks/dep-871fbfc7.js.map +0 -1
  2431. package/cjs/_chunks/dep-87ec326c.js +0 -954
  2432. package/cjs/_chunks/dep-87ec326c.js.map +0 -1
  2433. package/cjs/_chunks/dep-8bb9b7ba.js +0 -119
  2434. package/cjs/_chunks/dep-8bb9b7ba.js.map +0 -1
  2435. package/cjs/_chunks/dep-8f3deb2a.js +0 -28
  2436. package/cjs/_chunks/dep-8f3deb2a.js.map +0 -1
  2437. package/cjs/_chunks/dep-9125a75e.js +0 -36
  2438. package/cjs/_chunks/dep-9125a75e.js.map +0 -1
  2439. package/cjs/_chunks/dep-942a7aba.js +0 -26
  2440. package/cjs/_chunks/dep-942a7aba.js.map +0 -1
  2441. package/cjs/_chunks/dep-99d6d655.js +0 -201
  2442. package/cjs/_chunks/dep-99d6d655.js.map +0 -1
  2443. package/cjs/_chunks/dep-9c74d22d.js +0 -43
  2444. package/cjs/_chunks/dep-9c74d22d.js.map +0 -1
  2445. package/cjs/_chunks/dep-9e6db8fb.js +0 -75
  2446. package/cjs/_chunks/dep-9e6db8fb.js.map +0 -1
  2447. package/cjs/_chunks/dep-a7666a95.js +0 -26
  2448. package/cjs/_chunks/dep-a7666a95.js.map +0 -1
  2449. package/cjs/_chunks/dep-a81e362c.js +0 -88
  2450. package/cjs/_chunks/dep-a81e362c.js.map +0 -1
  2451. package/cjs/_chunks/dep-af921283.js +0 -46
  2452. package/cjs/_chunks/dep-af921283.js.map +0 -1
  2453. package/cjs/_chunks/dep-b000fdae.js +0 -772
  2454. package/cjs/_chunks/dep-b000fdae.js.map +0 -1
  2455. package/cjs/_chunks/dep-bc486aab.js +0 -132
  2456. package/cjs/_chunks/dep-bc486aab.js.map +0 -1
  2457. package/cjs/_chunks/dep-c5449fbe.js +0 -69
  2458. package/cjs/_chunks/dep-c5449fbe.js.map +0 -1
  2459. package/cjs/_chunks/dep-c57ef5b6.js +0 -395
  2460. package/cjs/_chunks/dep-c57ef5b6.js.map +0 -1
  2461. package/cjs/_chunks/dep-c7adf4af.js +0 -47
  2462. package/cjs/_chunks/dep-c7adf4af.js.map +0 -1
  2463. package/cjs/_chunks/dep-c82d4aac.js +0 -308
  2464. package/cjs/_chunks/dep-c82d4aac.js.map +0 -1
  2465. package/cjs/_chunks/dep-d2229c5d.js +0 -35
  2466. package/cjs/_chunks/dep-d2229c5d.js.map +0 -1
  2467. package/cjs/_chunks/dep-e03ca79d.js +0 -44
  2468. package/cjs/_chunks/dep-e03ca79d.js.map +0 -1
  2469. package/cjs/_chunks/dep-e4430646.js +0 -230
  2470. package/cjs/_chunks/dep-e4430646.js.map +0 -1
  2471. package/cjs/_chunks/dep-f0639562.js +0 -51
  2472. package/cjs/_chunks/dep-f0639562.js.map +0 -1
  2473. package/cjs/_chunks/dep-f1b75399.js +0 -161
  2474. package/cjs/_chunks/dep-f1b75399.js.map +0 -1
  2475. package/cjs/_chunks/dep-f445e9bb.js +0 -47
  2476. package/cjs/_chunks/dep-f445e9bb.js.map +0 -1
  2477. package/cjs/_chunks/dep-fa36e79f.js +0 -54
  2478. package/cjs/_chunks/dep-fa36e79f.js.map +0 -1
  2479. package/cjs/_chunks/dep-fb89215e.js +0 -47
  2480. package/cjs/_chunks/dep-fb89215e.js.map +0 -1
  2481. package/cjs/date-picker/utils.d.ts +0 -130
  2482. package/cjs/date-picker/utils.js +0 -460
  2483. package/cjs/date-picker/utils.js.map +0 -1
  2484. package/es/_chunks/dep-028895a6.js +0 -93
  2485. package/es/_chunks/dep-028895a6.js.map +0 -1
  2486. package/es/_chunks/dep-0758224e.js +0 -388
  2487. package/es/_chunks/dep-0758224e.js.map +0 -1
  2488. package/es/_chunks/dep-0ce610a9.js +0 -108
  2489. package/es/_chunks/dep-0ce610a9.js.map +0 -1
  2490. package/es/_chunks/dep-0de37580.js +0 -49
  2491. package/es/_chunks/dep-0de37580.js.map +0 -1
  2492. package/es/_chunks/dep-121f2926.js +0 -773
  2493. package/es/_chunks/dep-121f2926.js.map +0 -1
  2494. package/es/_chunks/dep-124f91c5.js +0 -26
  2495. package/es/_chunks/dep-124f91c5.js.map +0 -1
  2496. package/es/_chunks/dep-14692160.js +0 -45
  2497. package/es/_chunks/dep-14692160.js.map +0 -1
  2498. package/es/_chunks/dep-14bd2526.js +0 -56
  2499. package/es/_chunks/dep-14bd2526.js.map +0 -1
  2500. package/es/_chunks/dep-156c830d.js +0 -24
  2501. package/es/_chunks/dep-156c830d.js.map +0 -1
  2502. package/es/_chunks/dep-1997c424.js +0 -75
  2503. package/es/_chunks/dep-1997c424.js.map +0 -1
  2504. package/es/_chunks/dep-25536592.js +0 -52
  2505. package/es/_chunks/dep-25536592.js.map +0 -1
  2506. package/es/_chunks/dep-27d690ce.js +0 -42
  2507. package/es/_chunks/dep-27d690ce.js.map +0 -1
  2508. package/es/_chunks/dep-2eff142e.js +0 -8
  2509. package/es/_chunks/dep-2eff142e.js.map +0 -1
  2510. package/es/_chunks/dep-304ab091.js +0 -129
  2511. package/es/_chunks/dep-304ab091.js.map +0 -1
  2512. package/es/_chunks/dep-312619d6.js +0 -17
  2513. package/es/_chunks/dep-312619d6.js.map +0 -1
  2514. package/es/_chunks/dep-3853103d.js +0 -44
  2515. package/es/_chunks/dep-3853103d.js.map +0 -1
  2516. package/es/_chunks/dep-39f90ded.js +0 -305
  2517. package/es/_chunks/dep-39f90ded.js.map +0 -1
  2518. package/es/_chunks/dep-444d31ef.js +0 -117
  2519. package/es/_chunks/dep-444d31ef.js.map +0 -1
  2520. package/es/_chunks/dep-44c00646.js +0 -108
  2521. package/es/_chunks/dep-44c00646.js.map +0 -1
  2522. package/es/_chunks/dep-4fb1b483.js +0 -865
  2523. package/es/_chunks/dep-4fb1b483.js.map +0 -1
  2524. package/es/_chunks/dep-55e3e3e3.js +0 -26
  2525. package/es/_chunks/dep-55e3e3e3.js.map +0 -1
  2526. package/es/_chunks/dep-5ace74d6.js +0 -158
  2527. package/es/_chunks/dep-5ace74d6.js.map +0 -1
  2528. package/es/_chunks/dep-6615471e.js +0 -274
  2529. package/es/_chunks/dep-6615471e.js.map +0 -1
  2530. package/es/_chunks/dep-66dcd197.js +0 -34
  2531. package/es/_chunks/dep-66dcd197.js.map +0 -1
  2532. package/es/_chunks/dep-6bae5139.js +0 -47
  2533. package/es/_chunks/dep-6bae5139.js.map +0 -1
  2534. package/es/_chunks/dep-6cc10247.js +0 -154
  2535. package/es/_chunks/dep-6cc10247.js.map +0 -1
  2536. package/es/_chunks/dep-7daf07a9.js +0 -48
  2537. package/es/_chunks/dep-7daf07a9.js.map +0 -1
  2538. package/es/_chunks/dep-8309e373.js +0 -8
  2539. package/es/_chunks/dep-8309e373.js.map +0 -1
  2540. package/es/_chunks/dep-897ce04d.js +0 -36
  2541. package/es/_chunks/dep-897ce04d.js.map +0 -1
  2542. package/es/_chunks/dep-8bccb9b0.js +0 -26
  2543. package/es/_chunks/dep-8bccb9b0.js.map +0 -1
  2544. package/es/_chunks/dep-8dc257e5.js +0 -200
  2545. package/es/_chunks/dep-8dc257e5.js.map +0 -1
  2546. package/es/_chunks/dep-9332bbea.js +0 -23
  2547. package/es/_chunks/dep-9332bbea.js.map +0 -1
  2548. package/es/_chunks/dep-93971e86.js +0 -52
  2549. package/es/_chunks/dep-93971e86.js.map +0 -1
  2550. package/es/_chunks/dep-93bd2d05.js +0 -567
  2551. package/es/_chunks/dep-93bd2d05.js.map +0 -1
  2552. package/es/_chunks/dep-95c9ff5b.js +0 -42
  2553. package/es/_chunks/dep-95c9ff5b.js.map +0 -1
  2554. package/es/_chunks/dep-9e88086c.js +0 -232
  2555. package/es/_chunks/dep-9e88086c.js.map +0 -1
  2556. package/es/_chunks/dep-a0400c35.js +0 -735
  2557. package/es/_chunks/dep-a0400c35.js.map +0 -1
  2558. package/es/_chunks/dep-a5b60243.js +0 -222
  2559. package/es/_chunks/dep-a5b60243.js.map +0 -1
  2560. package/es/_chunks/dep-a764e3bd.js +0 -19
  2561. package/es/_chunks/dep-a764e3bd.js.map +0 -1
  2562. package/es/_chunks/dep-a8d92bd9.js +0 -97
  2563. package/es/_chunks/dep-a8d92bd9.js.map +0 -1
  2564. package/es/_chunks/dep-aa2bff1b.js +0 -129
  2565. package/es/_chunks/dep-aa2bff1b.js.map +0 -1
  2566. package/es/_chunks/dep-ab1e2688.js +0 -41
  2567. package/es/_chunks/dep-ab1e2688.js.map +0 -1
  2568. package/es/_chunks/dep-ab9c749e.js +0 -26
  2569. package/es/_chunks/dep-ab9c749e.js.map +0 -1
  2570. package/es/_chunks/dep-ae2e9ece.js +0 -45
  2571. package/es/_chunks/dep-ae2e9ece.js.map +0 -1
  2572. package/es/_chunks/dep-b12a3761.js +0 -197
  2573. package/es/_chunks/dep-b12a3761.js.map +0 -1
  2574. package/es/_chunks/dep-b8263a1c.js +0 -47
  2575. package/es/_chunks/dep-b8263a1c.js.map +0 -1
  2576. package/es/_chunks/dep-beac373a.js +0 -27
  2577. package/es/_chunks/dep-beac373a.js.map +0 -1
  2578. package/es/_chunks/dep-c8351fc0.js +0 -951
  2579. package/es/_chunks/dep-c8351fc0.js.map +0 -1
  2580. package/es/_chunks/dep-cac5f189.js +0 -119
  2581. package/es/_chunks/dep-cac5f189.js.map +0 -1
  2582. package/es/_chunks/dep-d098d908.js +0 -8
  2583. package/es/_chunks/dep-d098d908.js.map +0 -1
  2584. package/es/_chunks/dep-d2535fd6.js +0 -50
  2585. package/es/_chunks/dep-d2535fd6.js.map +0 -1
  2586. package/es/_chunks/dep-d44ac8a4.js +0 -190
  2587. package/es/_chunks/dep-d44ac8a4.js.map +0 -1
  2588. package/es/_chunks/dep-e2a0e7b2.js +0 -27
  2589. package/es/_chunks/dep-e2a0e7b2.js.map +0 -1
  2590. package/es/_chunks/dep-ea69dcf8.js +0 -47
  2591. package/es/_chunks/dep-ea69dcf8.js.map +0 -1
  2592. package/es/_chunks/dep-ee2e5653.js +0 -84
  2593. package/es/_chunks/dep-ee2e5653.js.map +0 -1
  2594. package/es/_chunks/dep-f5f7d3f4.js +0 -68
  2595. package/es/_chunks/dep-f5f7d3f4.js.map +0 -1
  2596. package/es/_chunks/dep-f88db21e.js +0 -33
  2597. package/es/_chunks/dep-f88db21e.js.map +0 -1
  2598. package/es/_chunks/dep-fcfd7649.js +0 -85
  2599. package/es/_chunks/dep-fcfd7649.js.map +0 -1
  2600. package/es/date-picker/utils.d.ts +0 -130
  2601. package/es/date-picker/utils.js +0 -442
  2602. package/es/date-picker/utils.js.map +0 -1
  2603. package/esm/_chunks/dep-028895a6.js +0 -93
  2604. package/esm/_chunks/dep-028895a6.js.map +0 -1
  2605. package/esm/_chunks/dep-0758224e.js +0 -388
  2606. package/esm/_chunks/dep-0758224e.js.map +0 -1
  2607. package/esm/_chunks/dep-0ce610a9.js +0 -108
  2608. package/esm/_chunks/dep-0ce610a9.js.map +0 -1
  2609. package/esm/_chunks/dep-0de37580.js +0 -49
  2610. package/esm/_chunks/dep-0de37580.js.map +0 -1
  2611. package/esm/_chunks/dep-121f2926.js +0 -773
  2612. package/esm/_chunks/dep-121f2926.js.map +0 -1
  2613. package/esm/_chunks/dep-124f91c5.js +0 -26
  2614. package/esm/_chunks/dep-124f91c5.js.map +0 -1
  2615. package/esm/_chunks/dep-14692160.js +0 -45
  2616. package/esm/_chunks/dep-14692160.js.map +0 -1
  2617. package/esm/_chunks/dep-14bd2526.js +0 -56
  2618. package/esm/_chunks/dep-14bd2526.js.map +0 -1
  2619. package/esm/_chunks/dep-156c830d.js +0 -24
  2620. package/esm/_chunks/dep-156c830d.js.map +0 -1
  2621. package/esm/_chunks/dep-1997c424.js +0 -75
  2622. package/esm/_chunks/dep-1997c424.js.map +0 -1
  2623. package/esm/_chunks/dep-25536592.js +0 -52
  2624. package/esm/_chunks/dep-25536592.js.map +0 -1
  2625. package/esm/_chunks/dep-27d690ce.js +0 -42
  2626. package/esm/_chunks/dep-27d690ce.js.map +0 -1
  2627. package/esm/_chunks/dep-2eff142e.js +0 -8
  2628. package/esm/_chunks/dep-2eff142e.js.map +0 -1
  2629. package/esm/_chunks/dep-304ab091.js +0 -129
  2630. package/esm/_chunks/dep-304ab091.js.map +0 -1
  2631. package/esm/_chunks/dep-312619d6.js +0 -17
  2632. package/esm/_chunks/dep-312619d6.js.map +0 -1
  2633. package/esm/_chunks/dep-3853103d.js +0 -44
  2634. package/esm/_chunks/dep-3853103d.js.map +0 -1
  2635. package/esm/_chunks/dep-39f90ded.js +0 -305
  2636. package/esm/_chunks/dep-39f90ded.js.map +0 -1
  2637. package/esm/_chunks/dep-444d31ef.js +0 -117
  2638. package/esm/_chunks/dep-444d31ef.js.map +0 -1
  2639. package/esm/_chunks/dep-44c00646.js +0 -108
  2640. package/esm/_chunks/dep-44c00646.js.map +0 -1
  2641. package/esm/_chunks/dep-4fb1b483.js +0 -865
  2642. package/esm/_chunks/dep-4fb1b483.js.map +0 -1
  2643. package/esm/_chunks/dep-55e3e3e3.js +0 -26
  2644. package/esm/_chunks/dep-55e3e3e3.js.map +0 -1
  2645. package/esm/_chunks/dep-5ace74d6.js +0 -158
  2646. package/esm/_chunks/dep-5ace74d6.js.map +0 -1
  2647. package/esm/_chunks/dep-6615471e.js +0 -274
  2648. package/esm/_chunks/dep-6615471e.js.map +0 -1
  2649. package/esm/_chunks/dep-66dcd197.js +0 -34
  2650. package/esm/_chunks/dep-66dcd197.js.map +0 -1
  2651. package/esm/_chunks/dep-6bae5139.js +0 -47
  2652. package/esm/_chunks/dep-6bae5139.js.map +0 -1
  2653. package/esm/_chunks/dep-6cc10247.js +0 -154
  2654. package/esm/_chunks/dep-6cc10247.js.map +0 -1
  2655. package/esm/_chunks/dep-7daf07a9.js +0 -48
  2656. package/esm/_chunks/dep-7daf07a9.js.map +0 -1
  2657. package/esm/_chunks/dep-8309e373.js +0 -8
  2658. package/esm/_chunks/dep-8309e373.js.map +0 -1
  2659. package/esm/_chunks/dep-897ce04d.js +0 -36
  2660. package/esm/_chunks/dep-897ce04d.js.map +0 -1
  2661. package/esm/_chunks/dep-8bccb9b0.js +0 -26
  2662. package/esm/_chunks/dep-8bccb9b0.js.map +0 -1
  2663. package/esm/_chunks/dep-8dc257e5.js +0 -200
  2664. package/esm/_chunks/dep-8dc257e5.js.map +0 -1
  2665. package/esm/_chunks/dep-9332bbea.js +0 -23
  2666. package/esm/_chunks/dep-9332bbea.js.map +0 -1
  2667. package/esm/_chunks/dep-93971e86.js +0 -52
  2668. package/esm/_chunks/dep-93971e86.js.map +0 -1
  2669. package/esm/_chunks/dep-93bd2d05.js +0 -567
  2670. package/esm/_chunks/dep-93bd2d05.js.map +0 -1
  2671. package/esm/_chunks/dep-95c9ff5b.js +0 -42
  2672. package/esm/_chunks/dep-95c9ff5b.js.map +0 -1
  2673. package/esm/_chunks/dep-9e88086c.js +0 -232
  2674. package/esm/_chunks/dep-9e88086c.js.map +0 -1
  2675. package/esm/_chunks/dep-a0400c35.js +0 -735
  2676. package/esm/_chunks/dep-a0400c35.js.map +0 -1
  2677. package/esm/_chunks/dep-a5b60243.js +0 -222
  2678. package/esm/_chunks/dep-a5b60243.js.map +0 -1
  2679. package/esm/_chunks/dep-a764e3bd.js +0 -19
  2680. package/esm/_chunks/dep-a764e3bd.js.map +0 -1
  2681. package/esm/_chunks/dep-a8d92bd9.js +0 -97
  2682. package/esm/_chunks/dep-a8d92bd9.js.map +0 -1
  2683. package/esm/_chunks/dep-aa2bff1b.js +0 -129
  2684. package/esm/_chunks/dep-aa2bff1b.js.map +0 -1
  2685. package/esm/_chunks/dep-ab1e2688.js +0 -41
  2686. package/esm/_chunks/dep-ab1e2688.js.map +0 -1
  2687. package/esm/_chunks/dep-ab9c749e.js +0 -26
  2688. package/esm/_chunks/dep-ab9c749e.js.map +0 -1
  2689. package/esm/_chunks/dep-ae2e9ece.js +0 -45
  2690. package/esm/_chunks/dep-ae2e9ece.js.map +0 -1
  2691. package/esm/_chunks/dep-b12a3761.js +0 -197
  2692. package/esm/_chunks/dep-b12a3761.js.map +0 -1
  2693. package/esm/_chunks/dep-b8263a1c.js +0 -47
  2694. package/esm/_chunks/dep-b8263a1c.js.map +0 -1
  2695. package/esm/_chunks/dep-beac373a.js +0 -27
  2696. package/esm/_chunks/dep-beac373a.js.map +0 -1
  2697. package/esm/_chunks/dep-c8351fc0.js +0 -951
  2698. package/esm/_chunks/dep-c8351fc0.js.map +0 -1
  2699. package/esm/_chunks/dep-cac5f189.js +0 -119
  2700. package/esm/_chunks/dep-cac5f189.js.map +0 -1
  2701. package/esm/_chunks/dep-d098d908.js +0 -8
  2702. package/esm/_chunks/dep-d098d908.js.map +0 -1
  2703. package/esm/_chunks/dep-d2535fd6.js +0 -50
  2704. package/esm/_chunks/dep-d2535fd6.js.map +0 -1
  2705. package/esm/_chunks/dep-d44ac8a4.js +0 -190
  2706. package/esm/_chunks/dep-d44ac8a4.js.map +0 -1
  2707. package/esm/_chunks/dep-e2a0e7b2.js +0 -27
  2708. package/esm/_chunks/dep-e2a0e7b2.js.map +0 -1
  2709. package/esm/_chunks/dep-ea69dcf8.js +0 -47
  2710. package/esm/_chunks/dep-ea69dcf8.js.map +0 -1
  2711. package/esm/_chunks/dep-ee2e5653.js +0 -84
  2712. package/esm/_chunks/dep-ee2e5653.js.map +0 -1
  2713. package/esm/_chunks/dep-f5f7d3f4.js +0 -68
  2714. package/esm/_chunks/dep-f5f7d3f4.js.map +0 -1
  2715. package/esm/_chunks/dep-f88db21e.js +0 -33
  2716. package/esm/_chunks/dep-f88db21e.js.map +0 -1
  2717. package/esm/_chunks/dep-fcfd7649.js +0 -85
  2718. package/esm/_chunks/dep-fcfd7649.js.map +0 -1
  2719. package/esm/date-picker/utils.d.ts +0 -130
  2720. package/esm/date-picker/utils.js +0 -442
  2721. package/esm/date-picker/utils.js.map +0 -1
  2722. package/lib/_chunks/dep-00169190.js +0 -302
  2723. package/lib/_chunks/dep-00169190.js.map +0 -1
  2724. package/lib/_chunks/dep-0268bf88.js +0 -47
  2725. package/lib/_chunks/dep-0268bf88.js.map +0 -1
  2726. package/lib/_chunks/dep-04305406.js +0 -34
  2727. package/lib/_chunks/dep-04305406.js.map +0 -1
  2728. package/lib/_chunks/dep-055d1d0f.js +0 -54
  2729. package/lib/_chunks/dep-055d1d0f.js.map +0 -1
  2730. package/lib/_chunks/dep-060885ed.js +0 -67
  2731. package/lib/_chunks/dep-060885ed.js.map +0 -1
  2732. package/lib/_chunks/dep-0762ef06.js +0 -273
  2733. package/lib/_chunks/dep-0762ef06.js.map +0 -1
  2734. package/lib/_chunks/dep-07c9edb2.js +0 -84
  2735. package/lib/_chunks/dep-07c9edb2.js.map +0 -1
  2736. package/lib/_chunks/dep-124f91c5.js +0 -26
  2737. package/lib/_chunks/dep-124f91c5.js.map +0 -1
  2738. package/lib/_chunks/dep-156c830d.js +0 -24
  2739. package/lib/_chunks/dep-156c830d.js.map +0 -1
  2740. package/lib/_chunks/dep-17892822.js +0 -43
  2741. package/lib/_chunks/dep-17892822.js.map +0 -1
  2742. package/lib/_chunks/dep-18a6adb5.js +0 -189
  2743. package/lib/_chunks/dep-18a6adb5.js.map +0 -1
  2744. package/lib/_chunks/dep-26c74cb0.js +0 -106
  2745. package/lib/_chunks/dep-26c74cb0.js.map +0 -1
  2746. package/lib/_chunks/dep-27d690ce.js +0 -42
  2747. package/lib/_chunks/dep-27d690ce.js.map +0 -1
  2748. package/lib/_chunks/dep-2924d6ff.js +0 -24
  2749. package/lib/_chunks/dep-2924d6ff.js.map +0 -1
  2750. package/lib/_chunks/dep-37f63687.js +0 -950
  2751. package/lib/_chunks/dep-37f63687.js.map +0 -1
  2752. package/lib/_chunks/dep-38f29685.js +0 -83
  2753. package/lib/_chunks/dep-38f29685.js.map +0 -1
  2754. package/lib/_chunks/dep-3dccad86.js +0 -45
  2755. package/lib/_chunks/dep-3dccad86.js.map +0 -1
  2756. package/lib/_chunks/dep-4912e829.js +0 -199
  2757. package/lib/_chunks/dep-4912e829.js.map +0 -1
  2758. package/lib/_chunks/dep-532b8f09.js +0 -196
  2759. package/lib/_chunks/dep-532b8f09.js.map +0 -1
  2760. package/lib/_chunks/dep-5913685b.js +0 -566
  2761. package/lib/_chunks/dep-5913685b.js.map +0 -1
  2762. package/lib/_chunks/dep-5950eb93.js +0 -45
  2763. package/lib/_chunks/dep-5950eb93.js.map +0 -1
  2764. package/lib/_chunks/dep-61d30284.js +0 -92
  2765. package/lib/_chunks/dep-61d30284.js.map +0 -1
  2766. package/lib/_chunks/dep-623f5502.js +0 -44
  2767. package/lib/_chunks/dep-623f5502.js.map +0 -1
  2768. package/lib/_chunks/dep-6ca758b4.js +0 -16
  2769. package/lib/_chunks/dep-6ca758b4.js.map +0 -1
  2770. package/lib/_chunks/dep-6cc953ca.js +0 -33
  2771. package/lib/_chunks/dep-6cc953ca.js.map +0 -1
  2772. package/lib/_chunks/dep-734d525f.js +0 -733
  2773. package/lib/_chunks/dep-734d525f.js.map +0 -1
  2774. package/lib/_chunks/dep-76c67131.js +0 -106
  2775. package/lib/_chunks/dep-76c67131.js.map +0 -1
  2776. package/lib/_chunks/dep-7cf92957.js +0 -41
  2777. package/lib/_chunks/dep-7cf92957.js.map +0 -1
  2778. package/lib/_chunks/dep-7dc750a9.js +0 -860
  2779. package/lib/_chunks/dep-7dc750a9.js.map +0 -1
  2780. package/lib/_chunks/dep-8610b562.js +0 -153
  2781. package/lib/_chunks/dep-8610b562.js.map +0 -1
  2782. package/lib/_chunks/dep-8acca302.js +0 -25
  2783. package/lib/_chunks/dep-8acca302.js.map +0 -1
  2784. package/lib/_chunks/dep-9332bbea.js +0 -23
  2785. package/lib/_chunks/dep-9332bbea.js.map +0 -1
  2786. package/lib/_chunks/dep-93971e86.js +0 -52
  2787. package/lib/_chunks/dep-93971e86.js.map +0 -1
  2788. package/lib/_chunks/dep-97e692ae.js +0 -95
  2789. package/lib/_chunks/dep-97e692ae.js.map +0 -1
  2790. package/lib/_chunks/dep-99f6ab64.js +0 -32
  2791. package/lib/_chunks/dep-99f6ab64.js.map +0 -1
  2792. package/lib/_chunks/dep-a347fb20.js +0 -50
  2793. package/lib/_chunks/dep-a347fb20.js.map +0 -1
  2794. package/lib/_chunks/dep-a554e9c2.js +0 -155
  2795. package/lib/_chunks/dep-a554e9c2.js.map +0 -1
  2796. package/lib/_chunks/dep-ab9c749e.js +0 -26
  2797. package/lib/_chunks/dep-ab9c749e.js.map +0 -1
  2798. package/lib/_chunks/dep-aeb2fb38.js +0 -45
  2799. package/lib/_chunks/dep-aeb2fb38.js.map +0 -1
  2800. package/lib/_chunks/dep-b33ecffe.js +0 -18
  2801. package/lib/_chunks/dep-b33ecffe.js.map +0 -1
  2802. package/lib/_chunks/dep-beac373a.js +0 -27
  2803. package/lib/_chunks/dep-beac373a.js.map +0 -1
  2804. package/lib/_chunks/dep-beebb45e.js +0 -45
  2805. package/lib/_chunks/dep-beebb45e.js.map +0 -1
  2806. package/lib/_chunks/dep-bf08cd6d.js +0 -769
  2807. package/lib/_chunks/dep-bf08cd6d.js.map +0 -1
  2808. package/lib/_chunks/dep-c6576f8f.js +0 -134
  2809. package/lib/_chunks/dep-c6576f8f.js.map +0 -1
  2810. package/lib/_chunks/dep-cc1bc349.js +0 -73
  2811. package/lib/_chunks/dep-cc1bc349.js.map +0 -1
  2812. package/lib/_chunks/dep-d94d4b8e.js +0 -221
  2813. package/lib/_chunks/dep-d94d4b8e.js.map +0 -1
  2814. package/lib/_chunks/dep-e2a4740c.js +0 -49
  2815. package/lib/_chunks/dep-e2a4740c.js.map +0 -1
  2816. package/lib/_chunks/dep-e335ac07.js +0 -230
  2817. package/lib/_chunks/dep-e335ac07.js.map +0 -1
  2818. package/lib/_chunks/dep-e7a51908.js +0 -24
  2819. package/lib/_chunks/dep-e7a51908.js.map +0 -1
  2820. package/lib/_chunks/dep-e7eff919.js +0 -128
  2821. package/lib/_chunks/dep-e7eff919.js.map +0 -1
  2822. package/lib/_chunks/dep-f3f6eedc.js +0 -42
  2823. package/lib/_chunks/dep-f3f6eedc.js.map +0 -1
  2824. package/lib/_chunks/dep-f99c7286.js +0 -386
  2825. package/lib/_chunks/dep-f99c7286.js.map +0 -1
  2826. package/lib/_chunks/dep-fba8d70d.js +0 -116
  2827. package/lib/_chunks/dep-fba8d70d.js.map +0 -1
  2828. package/lib/_chunks/dep-fc84e5e6.js +0 -117
  2829. package/lib/_chunks/dep-fc84e5e6.js.map +0 -1
  2830. package/lib/date-picker/utils.d.ts +0 -130
  2831. package/lib/date-picker/utils.js +0 -439
  2832. package/lib/date-picker/utils.js.map +0 -1
package/dist/tdesign.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v0.22.1
2
+ * tdesign v0.23.0
3
3
  * (c) 2022 tdesign
4
4
  * @license MIT
5
5
  */
@@ -37,17 +37,11 @@
37
37
  function _typeof(obj) {
38
38
  "@babel/helpers - typeof";
39
39
 
40
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
41
- _typeof = function _typeof(obj) {
42
- return typeof obj;
43
- };
44
- } else {
45
- _typeof = function _typeof(obj) {
46
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
47
- };
48
- }
49
-
50
- return _typeof(obj);
40
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
41
+ return typeof obj;
42
+ } : function (obj) {
43
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
44
+ }, _typeof(obj);
51
45
  }
52
46
 
53
47
  function _arrayWithHoles(arr) {
@@ -295,7 +289,7 @@
295
289
  year: "\u8BF7\u9009\u62E9\u5E74\u4EFD"
296
290
  },
297
291
  weekdays: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
298
- months: ["\u4E00\u6708", "\u4E8C\u6708", "\u4E09\u6708", "\u56DB\u6708", "\u4E94\u6708", "\u516D\u6708", "\u4E03\u6708", "\u516B\u6708", "\u4E5D\u6708", "\u5341\u6708", "\u5341\u4E00\u6708", "\u5341\u4E8C\u6708"],
292
+ months: ["1 \u6708", "2 \u6708", "3 \u6708", "4 \u6708", "5 \u6708", "6 \u6708", "7 \u6708", "8 \u6708", "9 \u6708", "10 \u6708", "11 \u6708", "12 \u6708"],
299
293
  firstDayOfWeek: 0,
300
294
  rangeSeparator: " \u81F3 ",
301
295
  direction: "ltr",
@@ -334,9 +328,9 @@
334
328
 
335
329
  var _excluded$u = ["width", "className", "style", "children"];
336
330
 
337
- function ownKeys$1Y(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; }
331
+ function ownKeys$1Z(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; }
338
332
 
339
- function _objectSpread$1Y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Y(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
333
+ function _objectSpread$1Z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Z(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
340
334
 
341
335
  var Aside = function Aside(props) {
342
336
  var width = props.width,
@@ -351,14 +345,14 @@
351
345
  var asideClassNames = classNames$1("".concat(classPrefix, "-layout__sider"), className);
352
346
  var asideWidth = typeof width === "number" ? "".concat(width, "px") : String(width);
353
347
 
354
- var asideStyle = _objectSpread$1Y({
348
+ var asideStyle = _objectSpread$1Z({
355
349
  width: asideWidth,
356
350
  maxWidth: asideWidth,
357
351
  minWidth: asideWidth,
358
352
  flex: "0 0 ".concat(asideWidth)
359
353
  }, style);
360
354
 
361
- return /* @__PURE__ */React__default["default"].createElement("aside", _objectSpread$1Y({
355
+ return /* @__PURE__ */React__default["default"].createElement("aside", _objectSpread$1Z({
362
356
  className: asideClassNames,
363
357
  style: asideStyle
364
358
  }, otherAsideProps), children);
@@ -374,9 +368,9 @@
374
368
  _excluded3 = ["className", "style", "children"],
375
369
  _excluded4 = ["direction", "className", "style", "children"];
376
370
 
377
- function ownKeys$1X(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; }
371
+ function ownKeys$1Y(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; }
378
372
 
379
- function _objectSpread$1X(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1X(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1X(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
373
+ function _objectSpread$1Y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Y(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
380
374
 
381
375
  var Header = function Header(props) {
382
376
  var _useConfig = useConfig$1(),
@@ -388,7 +382,7 @@
388
382
  others = _objectWithoutProperties$1(props, _excluded$t);
389
383
 
390
384
  var headerClassNames = classNames$1("".concat(classPrefix, "-layout__header"), className);
391
- return /* @__PURE__ */React__default["default"].createElement("header", _objectSpread$1X({
385
+ return /* @__PURE__ */React__default["default"].createElement("header", _objectSpread$1Y({
392
386
  className: headerClassNames,
393
387
  style: style
394
388
  }, others), children);
@@ -404,7 +398,7 @@
404
398
  others = _objectWithoutProperties$1(props, _excluded2$2);
405
399
 
406
400
  var footerClassNames = classNames$1("".concat(classPrefix, "-layout__footer"), className);
407
- return /* @__PURE__ */React__default["default"].createElement("footer", _objectSpread$1X({
401
+ return /* @__PURE__ */React__default["default"].createElement("footer", _objectSpread$1Y({
408
402
  className: footerClassNames,
409
403
  style: style
410
404
  }, others), children);
@@ -420,7 +414,7 @@
420
414
  others = _objectWithoutProperties$1(props, _excluded3);
421
415
 
422
416
  var contentClassNames = classNames$1("".concat(classPrefix, "-layout__content"), className);
423
- return /* @__PURE__ */React__default["default"].createElement("main", _objectSpread$1X({
417
+ return /* @__PURE__ */React__default["default"].createElement("main", _objectSpread$1Y({
424
418
  className: contentClassNames,
425
419
  style: style
426
420
  }, others), children);
@@ -451,7 +445,7 @@
451
445
  classPrefix = _useConfig4.classPrefix;
452
446
 
453
447
  var layoutClassNames = classNames$1("".concat(classPrefix, "-layout"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-layout--with-sider"), !!asides.length), _defineProperty$2(_classNames, "".concat(classPrefix, "-layout__direction-").concat(direction), direction), _classNames), className);
454
- return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1X({
448
+ return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1Y({
455
449
  className: layoutClassNames,
456
450
  style: style
457
451
  }, otherLayoutProps), children);
@@ -478,9 +472,9 @@
478
472
 
479
473
  var _excluded$s = ["flex", "offset", "order", "pull", "push", "span", "tag", "className", "children", "style"];
480
474
 
481
- function ownKeys$1W(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; }
475
+ function ownKeys$1X(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; }
482
476
 
483
- function _objectSpread$1W(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1W(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1W(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
477
+ function _objectSpread$1X(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1X(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1X(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
484
478
 
485
479
  var calcColPadding = function calcColPadding(gutter, currentSize) {
486
480
  var paddingObj = {};
@@ -561,14 +555,14 @@
561
555
  sizeObj = sizeProp || {};
562
556
  }
563
557
 
564
- return _objectSpread$1W(_objectSpread$1W({}, acc), {}, (_objectSpread2 = {}, _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-").concat(sizeObj.span), sizeObj.span !== void 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-order-").concat(sizeObj.order), parseInt(sizeObj.order, 10) >= 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-offset-").concat(sizeObj.offset), parseInt(sizeObj.offset, 10) >= 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-push-").concat(sizeObj.push), parseInt(sizeObj.push, 10) >= 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-pull-").concat(sizeObj.pull), parseInt(sizeObj.pull, 10) >= 0), _objectSpread2));
558
+ return _objectSpread$1X(_objectSpread$1X({}, acc), {}, (_objectSpread2 = {}, _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-").concat(sizeObj.span), sizeObj.span !== void 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-order-").concat(sizeObj.order), parseInt(sizeObj.order, 10) >= 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-offset-").concat(sizeObj.offset), parseInt(sizeObj.offset, 10) >= 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-push-").concat(sizeObj.push), parseInt(sizeObj.push, 10) >= 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-pull-").concat(sizeObj.pull), parseInt(sizeObj.pull, 10) >= 0), _objectSpread2));
565
559
  }, {});
566
560
  var colClassNames = classNames$1("".concat(classPrefix, "-col"), className, (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-col-").concat(span), span !== void 0), _defineProperty$2(_classNames, "".concat(classPrefix, "-col-offset-").concat(offset), parseInt(offset, 10) >= 0), _defineProperty$2(_classNames, "".concat(classPrefix, "-col-pull-").concat(pull), parseInt(pull, 10) >= 0), _defineProperty$2(_classNames, "".concat(classPrefix, "-col-push-").concat(push), parseInt(push, 10) >= 0), _defineProperty$2(_classNames, "".concat(classPrefix, "-col-order-").concat(order), parseInt(order, 10) >= 0), _classNames), sizeClasses);
567
561
 
568
- var colStyle = _objectSpread$1W(_objectSpread$1W({}, calcColPadding(rowGutter, rowSize)), propStyle);
562
+ var colStyle = _objectSpread$1X(_objectSpread$1X({}, calcColPadding(rowGutter, rowSize)), propStyle);
569
563
 
570
564
  flex && (colStyle.flex = parseFlex(flex));
571
- return /*#__PURE__*/React__default["default"].createElement(tag, _objectSpread$1W({
565
+ return /*#__PURE__*/React__default["default"].createElement(tag, _objectSpread$1X({
572
566
  className: colClassNames,
573
567
  style: colStyle
574
568
  }, otherColProps), children);
@@ -578,9 +572,9 @@
578
572
 
579
573
  var _excluded$r = ["align", "gutter", "justify", "tag", "style", "className", "children"];
580
574
 
581
- function ownKeys$1V(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; }
575
+ function ownKeys$1W(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; }
582
576
 
583
- function _objectSpread$1V(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1V(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1V(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
577
+ function _objectSpread$1W(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1W(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1W(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
584
578
 
585
579
  var calcSize = function calcSize(width) {
586
580
  var size = "xs";
@@ -690,7 +684,7 @@
690
684
 
691
685
  var rowClassNames = classNames$1("".concat(classPrefix, "-row"), className, (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-row--").concat(justify), true), _defineProperty$2(_classNames, "".concat(classPrefix, "-row--").concat(align), true), _classNames));
692
686
 
693
- var rowStyle = _objectSpread$1V(_objectSpread$1V({}, calcRowStyle(gutter, size)), propStyle);
687
+ var rowStyle = _objectSpread$1W(_objectSpread$1W({}, calcRowStyle(gutter, size)), propStyle);
694
688
 
695
689
  React.useEffect(function () {
696
690
  window.addEventListener("resize", updateSize);
@@ -698,7 +692,7 @@
698
692
  window.removeEventListener("resize", updateSize);
699
693
  };
700
694
  });
701
- return /*#__PURE__*/React__default["default"].createElement(tag, _objectSpread$1V({
695
+ return /*#__PURE__*/React__default["default"].createElement(tag, _objectSpread$1W({
702
696
  className: rowClassNames,
703
697
  style: rowStyle
704
698
  }, otherRowProps), React__default["default"].Children.map(children, function (child) {
@@ -1169,54 +1163,61 @@
1169
1163
  });
1170
1164
  Portal$1.displayName = "Portal";
1171
1165
 
1172
- function ownKeys$1U(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; }
1166
+ function setStyle$1(el, styles) {
1167
+ var keys = Object.keys(styles);
1168
+ keys.forEach(function (key) {
1169
+ el.style[key] = styles[key];
1170
+ });
1171
+ }
1173
1172
 
1174
- function _objectSpread$1U(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1U(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1U(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1173
+ function ownKeys$1V(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; }
1174
+
1175
+ function _objectSpread$1V(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1V(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1V(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1176
+ function circleAdapter(circleElem) {
1177
+ var _window, _window$getComputedSt2, _window2, _window2$navigator;
1178
+
1179
+ var basicStyle = {};
1180
+
1181
+ if (!circleElem) {
1182
+ return;
1183
+ }
1184
+
1185
+ var _window$getComputedSt = (_window = window) === null || _window === void 0 ? void 0 : (_window$getComputedSt2 = _window.getComputedStyle) === null || _window$getComputedSt2 === void 0 ? void 0 : _window$getComputedSt2.call(_window, circleElem),
1186
+ color = _window$getComputedSt.color,
1187
+ fontSize = _window$getComputedSt.fontSize;
1188
+
1189
+ var ua = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$navigator = _window2.navigator) === null || _window2$navigator === void 0 ? void 0 : _window2$navigator.userAgent;
1190
+ var isSafari = /Safari/.test(ua) && !/Chrome/.test(ua);
1191
+
1192
+ if (isSafari) {
1193
+ basicStyle = {
1194
+ transformOrigin: "-1px -1px",
1195
+ transform: "scale(".concat(parseInt(fontSize, 10) / 14, ")")
1196
+ };
1197
+ }
1198
+
1199
+ if (color) {
1200
+ var matched = color.match(/[\d.]+/g);
1201
+ var endColor = "rgba(".concat(matched[0], ", ").concat(matched[1], ", ").concat(matched[2], ", 0)");
1202
+ setStyle$1(circleElem, _objectSpread$1V(_objectSpread$1V({}, basicStyle), {}, {
1203
+ background: "conic-gradient(from 90deg at 50% 50%,".concat(endColor, " 0deg, ").concat(color, " 360deg)")
1204
+ }));
1205
+ } else {
1206
+ setStyle$1(circleElem, _objectSpread$1V(_objectSpread$1V({}, basicStyle), {}, {
1207
+ background: ""
1208
+ }));
1209
+ }
1210
+ }
1175
1211
 
1176
1212
  var GradientLoading = function GradientLoading() {
1177
1213
  var _useConfig = useConfig$1(),
1178
1214
  classPrefix = _useConfig.classPrefix;
1179
1215
 
1180
- var _useState = React.useState({}),
1181
- _useState2 = _slicedToArray(_useState, 2),
1182
- styleFromEnv = _useState2[0],
1183
- setStyleFromEnv = _useState2[1];
1184
-
1185
1216
  var conicRef = React.useRef();
1186
1217
  var gradientClass = "".concat(classPrefix, "-loading__gradient");
1187
1218
  React.useEffect(function () {
1188
1219
  var el = conicRef === null || conicRef === void 0 ? void 0 : conicRef.current;
1189
- var basicStyle = {};
1190
-
1191
- if (el) {
1192
- var _window, _window$navigator;
1193
-
1194
- var _getComputedStyle = getComputedStyle(el),
1195
- fontSize = _getComputedStyle.fontSize,
1196
- color = _getComputedStyle.color;
1197
-
1198
- var ua = (_window = window) === null || _window === void 0 ? void 0 : (_window$navigator = _window.navigator) === null || _window$navigator === void 0 ? void 0 : _window$navigator.userAgent;
1199
- var isSafari = /Safari/.test(ua) && !/Chrome/.test(ua);
1200
-
1201
- if (isSafari) {
1202
- basicStyle = {
1203
- transformOrigin: "-1px -1px",
1204
- transform: "scale(".concat(parseInt(fontSize, 10) / 14, ")")
1205
- };
1206
- }
1207
-
1208
- if (color) {
1209
- var matched = color.match(/[\d.]+/g);
1210
- var endColor = "rgba(".concat(matched[0], ", ").concat(matched[1], ", ").concat(matched[2], ", 0)");
1211
- setStyleFromEnv(_objectSpread$1U(_objectSpread$1U({}, basicStyle), {}, {
1212
- background: "conic-gradient(from 90deg at 50% 50%,".concat(endColor, " 0deg, ").concat(color, " 360deg)")
1213
- }));
1214
- } else {
1215
- setStyleFromEnv(_objectSpread$1U(_objectSpread$1U({}, basicStyle), {}, {
1216
- background: ""
1217
- }));
1218
- }
1219
- }
1220
+ circleAdapter(el);
1220
1221
  }, []);
1221
1222
  return /* @__PURE__ */React__default["default"].createElement("svg", {
1222
1223
  className: classNames$1(gradientClass, "".concat(classPrefix, "-icon-loading")),
@@ -1232,11 +1233,14 @@
1232
1233
  height: "12"
1233
1234
  }, /* @__PURE__ */React__default["default"].createElement("div", {
1234
1235
  className: "".concat(gradientClass, "-conic"),
1235
- style: styleFromEnv,
1236
1236
  ref: conicRef
1237
1237
  })));
1238
1238
  };
1239
1239
 
1240
+ function ownKeys$1U(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; }
1241
+
1242
+ function _objectSpread$1U(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1U(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1U(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1243
+
1240
1244
  var Loading$1 = function Loading(props) {
1241
1245
  var attach = props.attach,
1242
1246
  _props$indicator = props.indicator,
@@ -1258,7 +1262,8 @@
1258
1262
  _props$inheritColor = props.inheritColor,
1259
1263
  inheritColor = _props$inheritColor === void 0 ? false : _props$inheritColor,
1260
1264
  zIndex = props.zIndex,
1261
- className = props.className;
1265
+ className = props.className,
1266
+ style = props.style;
1262
1267
 
1263
1268
  var _useState = React.useState(delay ? false : loading),
1264
1269
  _useState2 = _slicedToArray(_useState, 2),
@@ -1303,8 +1308,8 @@
1303
1308
  styles["font-size"] = size;
1304
1309
  }
1305
1310
 
1306
- return styles;
1307
- }, [size, zIndex]);
1311
+ return style ? _objectSpread$1U(_objectSpread$1U({}, styles), style) : styles;
1312
+ }, [size, zIndex, style]);
1308
1313
  var sizeMap = {
1309
1314
  large: "".concat(classPrefix, "-size-l"),
1310
1315
  small: "".concat(classPrefix, "-size-s"),
@@ -3920,269 +3925,6 @@
3920
3925
 
3921
3926
  var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? React__namespace.useLayoutEffect : React__namespace.useEffect;
3922
3927
 
3923
- function getBoundingClientRect(element) {
3924
- var rect = element.getBoundingClientRect();
3925
- return {
3926
- width: rect.width,
3927
- height: rect.height,
3928
- top: rect.top,
3929
- right: rect.right,
3930
- bottom: rect.bottom,
3931
- left: rect.left,
3932
- x: rect.left,
3933
- y: rect.top
3934
- };
3935
- }
3936
-
3937
- /*:: import type { Window } from '../types'; */
3938
-
3939
- /*:: declare function getWindow(node: Node | Window): Window; */
3940
- function getWindow(node) {
3941
- if (node.toString() !== '[object Window]') {
3942
- var ownerDocument = node.ownerDocument;
3943
- return ownerDocument ? ownerDocument.defaultView : window;
3944
- }
3945
-
3946
- return node;
3947
- }
3948
-
3949
- function getWindowScroll(node) {
3950
- var win = getWindow(node);
3951
- var scrollLeft = win.pageXOffset;
3952
- var scrollTop = win.pageYOffset;
3953
- return {
3954
- scrollLeft: scrollLeft,
3955
- scrollTop: scrollTop
3956
- };
3957
- }
3958
-
3959
- /*:: declare function isElement(node: mixed): boolean %checks(node instanceof
3960
- Element); */
3961
-
3962
- function isElement(node) {
3963
- var OwnElement = getWindow(node).Element;
3964
- return node instanceof OwnElement || node instanceof Element;
3965
- }
3966
- /*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
3967
- HTMLElement); */
3968
-
3969
-
3970
- function isHTMLElement(node) {
3971
- var OwnElement = getWindow(node).HTMLElement;
3972
- return node instanceof OwnElement || node instanceof HTMLElement;
3973
- }
3974
-
3975
- function getHTMLElementScroll(element) {
3976
- return {
3977
- scrollLeft: element.scrollLeft,
3978
- scrollTop: element.scrollTop
3979
- };
3980
- }
3981
-
3982
- function getNodeScroll(node) {
3983
- if (node === getWindow(node) || !isHTMLElement(node)) {
3984
- return getWindowScroll(node);
3985
- } else {
3986
- return getHTMLElementScroll(node);
3987
- }
3988
- }
3989
-
3990
- function getNodeName(element) {
3991
- return element ? (element.nodeName || '').toLowerCase() : null;
3992
- }
3993
-
3994
- function getDocumentElement(element) {
3995
- // $FlowFixMe: assume body is always available
3996
- return (isElement(element) ? element.ownerDocument : element.document).documentElement;
3997
- }
3998
-
3999
- function getWindowScrollBarX(element) {
4000
- // If <html> has a CSS width greater than the viewport, then this will be
4001
- // incorrect for RTL.
4002
- // Popper 1 is broken in this case and never had a bug report so let's assume
4003
- // it's not an issue. I don't think anyone ever specifies width on <html>
4004
- // anyway.
4005
- // Browsers where the left scrollbar doesn't cause an issue report `0` for
4006
- // this (e.g. Edge 2019, IE11, Safari)
4007
- return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
4008
- }
4009
-
4010
- function getComputedStyle$1(element) {
4011
- return getWindow(element).getComputedStyle(element);
4012
- }
4013
-
4014
- function isScrollParent(element) {
4015
- // Firefox wants us to check `-x` and `-y` variations as well
4016
- var _getComputedStyle = getComputedStyle$1(element),
4017
- overflow = _getComputedStyle.overflow,
4018
- overflowX = _getComputedStyle.overflowX,
4019
- overflowY = _getComputedStyle.overflowY;
4020
-
4021
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
4022
- }
4023
-
4024
- // Composite means it takes into account transforms as well as layout.
4025
-
4026
- function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
4027
- if (isFixed === void 0) {
4028
- isFixed = false;
4029
- }
4030
-
4031
- var documentElement = getDocumentElement(offsetParent);
4032
- var rect = getBoundingClientRect(elementOrVirtualElement);
4033
- var isOffsetParentAnElement = isHTMLElement(offsetParent);
4034
- var scroll = {
4035
- scrollLeft: 0,
4036
- scrollTop: 0
4037
- };
4038
- var offsets = {
4039
- x: 0,
4040
- y: 0
4041
- };
4042
-
4043
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
4044
- if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
4045
- isScrollParent(documentElement)) {
4046
- scroll = getNodeScroll(offsetParent);
4047
- }
4048
-
4049
- if (isHTMLElement(offsetParent)) {
4050
- offsets = getBoundingClientRect(offsetParent);
4051
- offsets.x += offsetParent.clientLeft;
4052
- offsets.y += offsetParent.clientTop;
4053
- } else if (documentElement) {
4054
- offsets.x = getWindowScrollBarX(documentElement);
4055
- }
4056
- }
4057
-
4058
- return {
4059
- x: rect.left + scroll.scrollLeft - offsets.x,
4060
- y: rect.top + scroll.scrollTop - offsets.y,
4061
- width: rect.width,
4062
- height: rect.height
4063
- };
4064
- }
4065
-
4066
- // Returns the layout rect of an element relative to its offsetParent. Layout
4067
- // means it doesn't take into account transforms.
4068
- function getLayoutRect(element) {
4069
- return {
4070
- x: element.offsetLeft,
4071
- y: element.offsetTop,
4072
- width: element.offsetWidth,
4073
- height: element.offsetHeight
4074
- };
4075
- }
4076
-
4077
- function getParentNode(element) {
4078
- if (getNodeName(element) === 'html') {
4079
- return element;
4080
- }
4081
-
4082
- return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
4083
- element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
4084
- element.parentNode || // DOM Element detected
4085
- // $FlowFixMe: need a better way to handle this...
4086
- element.host || // ShadowRoot detected
4087
- // $FlowFixMe: HTMLElement is a Node
4088
- getDocumentElement(element) // fallback
4089
-
4090
- );
4091
- }
4092
-
4093
- function getScrollParent(node) {
4094
- if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
4095
- // $FlowFixMe: assume body is always available
4096
- return node.ownerDocument.body;
4097
- }
4098
-
4099
- if (isHTMLElement(node) && isScrollParent(node)) {
4100
- return node;
4101
- }
4102
-
4103
- return getScrollParent(getParentNode(node));
4104
- }
4105
-
4106
- /*
4107
- given a DOM element, return the list of all scroll parents, up the list of ancesors
4108
- until we get to the top window object. This list is what we attach scroll listeners
4109
- to, because if any of these parent elements scroll, we'll need to re-calculate the
4110
- reference element's position.
4111
- */
4112
-
4113
- function listScrollParents(element, list) {
4114
- if (list === void 0) {
4115
- list = [];
4116
- }
4117
-
4118
- var scrollParent = getScrollParent(element);
4119
- var isBody = getNodeName(scrollParent) === 'body';
4120
- var win = getWindow(scrollParent);
4121
- var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
4122
- var updatedList = list.concat(target);
4123
- return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
4124
- updatedList.concat(listScrollParents(getParentNode(target)));
4125
- }
4126
-
4127
- function isTableElement(element) {
4128
- return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
4129
- }
4130
-
4131
- function getTrueOffsetParent(element) {
4132
- if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
4133
- getComputedStyle$1(element).position === 'fixed') {
4134
- return null;
4135
- }
4136
-
4137
- var offsetParent = element.offsetParent;
4138
-
4139
- if (offsetParent) {
4140
- var html = getDocumentElement(offsetParent);
4141
-
4142
- if (getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && getComputedStyle$1(html).position !== 'static') {
4143
- return html;
4144
- }
4145
- }
4146
-
4147
- return offsetParent;
4148
- } // `.offsetParent` reports `null` for fixed elements, while absolute elements
4149
- // return the containing block
4150
-
4151
-
4152
- function getContainingBlock(element) {
4153
- var currentNode = getParentNode(element);
4154
-
4155
- while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
4156
- var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
4157
- // create a containing block.
4158
-
4159
- if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
4160
- return currentNode;
4161
- } else {
4162
- currentNode = currentNode.parentNode;
4163
- }
4164
- }
4165
-
4166
- return null;
4167
- } // Gets the closest ancestor positioned element. Handles some edge cases,
4168
- // such as table ancestors and cross browser bugs.
4169
-
4170
-
4171
- function getOffsetParent(element) {
4172
- var window = getWindow(element);
4173
- var offsetParent = getTrueOffsetParent(element);
4174
-
4175
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
4176
- offsetParent = getTrueOffsetParent(offsetParent);
4177
- }
4178
-
4179
- if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static') {
4180
- return window;
4181
- }
4182
-
4183
- return offsetParent || getContainingBlock(element) || window;
4184
- }
4185
-
4186
3928
  var top = 'top';
4187
3929
  var bottom = 'bottom';
4188
3930
  var right = 'right';
@@ -4215,256 +3957,207 @@
4215
3957
  var afterWrite = 'afterWrite';
4216
3958
  var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
4217
3959
 
4218
- function order(modifiers) {
4219
- var map = new Map();
4220
- var visited = new Set();
4221
- var result = [];
4222
- modifiers.forEach(function (modifier) {
4223
- map.set(modifier.name, modifier);
4224
- }); // On visiting object, check for its dependencies and visit them recursively
3960
+ function getNodeName(element) {
3961
+ return element ? (element.nodeName || '').toLowerCase() : null;
3962
+ }
4225
3963
 
4226
- function sort(modifier) {
4227
- visited.add(modifier.name);
4228
- var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
4229
- requires.forEach(function (dep) {
4230
- if (!visited.has(dep)) {
4231
- var depModifier = map.get(dep);
3964
+ function getWindow(node) {
3965
+ if (node == null) {
3966
+ return window;
3967
+ }
4232
3968
 
4233
- if (depModifier) {
4234
- sort(depModifier);
4235
- }
4236
- }
4237
- });
4238
- result.push(modifier);
3969
+ if (node.toString() !== '[object Window]') {
3970
+ var ownerDocument = node.ownerDocument;
3971
+ return ownerDocument ? ownerDocument.defaultView || window : window;
4239
3972
  }
4240
3973
 
4241
- modifiers.forEach(function (modifier) {
4242
- if (!visited.has(modifier.name)) {
4243
- // check for visited object
4244
- sort(modifier);
4245
- }
4246
- });
4247
- return result;
3974
+ return node;
4248
3975
  }
4249
3976
 
4250
- function orderModifiers(modifiers) {
4251
- // order based on dependencies
4252
- var orderedModifiers = order(modifiers); // order based on phase
4253
-
4254
- return modifierPhases.reduce(function (acc, phase) {
4255
- return acc.concat(orderedModifiers.filter(function (modifier) {
4256
- return modifier.phase === phase;
4257
- }));
4258
- }, []);
3977
+ function isElement(node) {
3978
+ var OwnElement = getWindow(node).Element;
3979
+ return node instanceof OwnElement || node instanceof Element;
4259
3980
  }
4260
3981
 
4261
- function debounce$2(fn) {
4262
- var pending;
4263
- return function () {
4264
- if (!pending) {
4265
- pending = new Promise(function (resolve) {
4266
- Promise.resolve().then(function () {
4267
- pending = undefined;
4268
- resolve(fn());
4269
- });
4270
- });
4271
- }
4272
-
4273
- return pending;
4274
- };
3982
+ function isHTMLElement(node) {
3983
+ var OwnElement = getWindow(node).HTMLElement;
3984
+ return node instanceof OwnElement || node instanceof HTMLElement;
4275
3985
  }
4276
3986
 
4277
- function format(str) {
4278
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4279
- args[_key - 1] = arguments[_key];
3987
+ function isShadowRoot(node) {
3988
+ // IE 11 has no ShadowRoot
3989
+ if (typeof ShadowRoot === 'undefined') {
3990
+ return false;
4280
3991
  }
4281
3992
 
4282
- return [].concat(args).reduce(function (p, c) {
4283
- return p.replace(/%s/, c);
4284
- }, str);
3993
+ var OwnElement = getWindow(node).ShadowRoot;
3994
+ return node instanceof OwnElement || node instanceof ShadowRoot;
4285
3995
  }
4286
3996
 
4287
- var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
4288
- var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
4289
- var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
4290
- function validateModifiers(modifiers) {
4291
- modifiers.forEach(function (modifier) {
4292
- Object.keys(modifier).forEach(function (key) {
4293
- switch (key) {
4294
- case 'name':
4295
- if (typeof modifier.name !== 'string') {
4296
- console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
4297
- }
4298
-
4299
- break;
4300
-
4301
- case 'enabled':
4302
- if (typeof modifier.enabled !== 'boolean') {
4303
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
4304
- }
4305
-
4306
- case 'phase':
4307
- if (modifierPhases.indexOf(modifier.phase) < 0) {
4308
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
4309
- }
4310
-
4311
- break;
3997
+ // and applies them to the HTMLElements such as popper and arrow
4312
3998
 
4313
- case 'fn':
4314
- if (typeof modifier.fn !== 'function') {
4315
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
4316
- }
3999
+ function applyStyles(_ref) {
4000
+ var state = _ref.state;
4001
+ Object.keys(state.elements).forEach(function (name) {
4002
+ var style = state.styles[name] || {};
4003
+ var attributes = state.attributes[name] || {};
4004
+ var element = state.elements[name]; // arrow is optional + virtual elements
4317
4005
 
4318
- break;
4006
+ if (!isHTMLElement(element) || !getNodeName(element)) {
4007
+ return;
4008
+ } // Flow doesn't support to extend this property, but it's the most
4009
+ // effective way to apply styles to an HTMLElement
4010
+ // $FlowFixMe[cannot-write]
4319
4011
 
4320
- case 'effect':
4321
- if (typeof modifier.effect !== 'function') {
4322
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
4323
- }
4324
4012
 
4325
- break;
4013
+ Object.assign(element.style, style);
4014
+ Object.keys(attributes).forEach(function (name) {
4015
+ var value = attributes[name];
4326
4016
 
4327
- case 'requires':
4328
- if (!Array.isArray(modifier.requires)) {
4329
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
4330
- }
4017
+ if (value === false) {
4018
+ element.removeAttribute(name);
4019
+ } else {
4020
+ element.setAttribute(name, value === true ? '' : value);
4021
+ }
4022
+ });
4023
+ });
4024
+ }
4331
4025
 
4332
- break;
4026
+ function effect$2(_ref2) {
4027
+ var state = _ref2.state;
4028
+ var initialStyles = {
4029
+ popper: {
4030
+ position: state.options.strategy,
4031
+ left: '0',
4032
+ top: '0',
4033
+ margin: '0'
4034
+ },
4035
+ arrow: {
4036
+ position: 'absolute'
4037
+ },
4038
+ reference: {}
4039
+ };
4040
+ Object.assign(state.elements.popper.style, initialStyles.popper);
4041
+ state.styles = initialStyles;
4333
4042
 
4334
- case 'requiresIfExists':
4335
- if (!Array.isArray(modifier.requiresIfExists)) {
4336
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
4337
- }
4043
+ if (state.elements.arrow) {
4044
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
4045
+ }
4338
4046
 
4339
- break;
4047
+ return function () {
4048
+ Object.keys(state.elements).forEach(function (name) {
4049
+ var element = state.elements[name];
4050
+ var attributes = state.attributes[name] || {};
4051
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
4340
4052
 
4341
- case 'options':
4342
- case 'data':
4343
- break;
4053
+ var style = styleProperties.reduce(function (style, property) {
4054
+ style[property] = '';
4055
+ return style;
4056
+ }, {}); // arrow is optional + virtual elements
4344
4057
 
4345
- default:
4346
- console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
4347
- return "\"" + s + "\"";
4348
- }).join(', ') + "; but \"" + key + "\" was provided.");
4058
+ if (!isHTMLElement(element) || !getNodeName(element)) {
4059
+ return;
4349
4060
  }
4350
4061
 
4351
- modifier.requires && modifier.requires.forEach(function (requirement) {
4352
- if (modifiers.find(function (mod) {
4353
- return mod.name === requirement;
4354
- }) == null) {
4355
- console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
4356
- }
4062
+ Object.assign(element.style, style);
4063
+ Object.keys(attributes).forEach(function (attribute) {
4064
+ element.removeAttribute(attribute);
4357
4065
  });
4358
4066
  });
4359
- });
4360
- }
4067
+ };
4068
+ } // eslint-disable-next-line import/no-unused-modules
4361
4069
 
4362
- function uniqueBy(arr, fn) {
4363
- var identifiers = new Set();
4364
- return arr.filter(function (item) {
4365
- var identifier = fn(item);
4366
4070
 
4367
- if (!identifiers.has(identifier)) {
4368
- identifiers.add(identifier);
4369
- return true;
4370
- }
4371
- });
4372
- }
4071
+ var applyStyles$1 = {
4072
+ name: 'applyStyles',
4073
+ enabled: true,
4074
+ phase: 'write',
4075
+ fn: applyStyles,
4076
+ effect: effect$2,
4077
+ requires: ['computeStyles']
4078
+ };
4373
4079
 
4374
4080
  function getBasePlacement(placement) {
4375
4081
  return placement.split('-')[0];
4376
4082
  }
4377
4083
 
4378
- function mergeByName(modifiers) {
4379
- var merged = modifiers.reduce(function (merged, current) {
4380
- var existing = merged[current.name];
4381
- merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
4382
- options: Object.assign(Object.assign({}, existing.options), current.options),
4383
- data: Object.assign(Object.assign({}, existing.data), current.data)
4384
- }) : current;
4385
- return merged;
4386
- }, {}); // IE11 does not support Object.values
4084
+ var max = Math.max;
4085
+ var min = Math.min;
4086
+ var round = Math.round;
4387
4087
 
4388
- return Object.keys(merged).map(function (key) {
4389
- return merged[key];
4390
- });
4391
- }
4088
+ function getBoundingClientRect(element, includeScale) {
4089
+ if (includeScale === void 0) {
4090
+ includeScale = false;
4091
+ }
4392
4092
 
4393
- function getViewportRect(element) {
4394
- var win = getWindow(element);
4395
- var html = getDocumentElement(element);
4396
- var visualViewport = win.visualViewport;
4397
- var width = html.clientWidth;
4398
- var height = html.clientHeight;
4399
- var x = 0;
4400
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
4401
- // can be obscured underneath it.
4402
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
4403
- // if it isn't open, so if this isn't available, the popper will be detected
4404
- // to overflow the bottom of the screen too early.
4093
+ var rect = element.getBoundingClientRect();
4094
+ var scaleX = 1;
4095
+ var scaleY = 1;
4405
4096
 
4406
- if (visualViewport) {
4407
- width = visualViewport.width;
4408
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
4409
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
4410
- // errors due to floating point numbers, so we need to check precision.
4411
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
4412
- // Feature detection fails in mobile emulation mode in Chrome.
4413
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
4414
- // 0.001
4415
- // Fallback here: "Not Safari" userAgent
4097
+ if (isHTMLElement(element) && includeScale) {
4098
+ var offsetHeight = element.offsetHeight;
4099
+ var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
4100
+ // Fallback to 1 in case both values are `0`
4416
4101
 
4417
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
4418
- x = visualViewport.offsetLeft;
4419
- y = visualViewport.offsetTop;
4102
+ if (offsetWidth > 0) {
4103
+ scaleX = round(rect.width) / offsetWidth || 1;
4104
+ }
4105
+
4106
+ if (offsetHeight > 0) {
4107
+ scaleY = round(rect.height) / offsetHeight || 1;
4420
4108
  }
4421
4109
  }
4422
4110
 
4423
4111
  return {
4424
- width: width,
4425
- height: height,
4426
- x: x + getWindowScrollBarX(element),
4427
- y: y
4112
+ width: rect.width / scaleX,
4113
+ height: rect.height / scaleY,
4114
+ top: rect.top / scaleY,
4115
+ right: rect.right / scaleX,
4116
+ bottom: rect.bottom / scaleY,
4117
+ left: rect.left / scaleX,
4118
+ x: rect.left / scaleX,
4119
+ y: rect.top / scaleY
4428
4120
  };
4429
4121
  }
4430
4122
 
4431
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable
4123
+ // means it doesn't take into account transforms.
4432
4124
 
4433
- function getDocumentRect(element) {
4434
- var html = getDocumentElement(element);
4435
- var winScroll = getWindowScroll(element);
4436
- var body = element.ownerDocument.body;
4437
- var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
4438
- var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
4439
- var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
4440
- var y = -winScroll.scrollTop;
4125
+ function getLayoutRect(element) {
4126
+ var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
4127
+ // Fixes https://github.com/popperjs/popper-core/issues/1223
4441
4128
 
4442
- if (getComputedStyle$1(body || html).direction === 'rtl') {
4443
- x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
4129
+ var width = element.offsetWidth;
4130
+ var height = element.offsetHeight;
4131
+
4132
+ if (Math.abs(clientRect.width - width) <= 1) {
4133
+ width = clientRect.width;
4134
+ }
4135
+
4136
+ if (Math.abs(clientRect.height - height) <= 1) {
4137
+ height = clientRect.height;
4444
4138
  }
4445
4139
 
4446
4140
  return {
4141
+ x: element.offsetLeft,
4142
+ y: element.offsetTop,
4447
4143
  width: width,
4448
- height: height,
4449
- x: x,
4450
- y: y
4144
+ height: height
4451
4145
  };
4452
4146
  }
4453
4147
 
4454
4148
  function contains(parent, child) {
4455
- // $FlowFixMe: hasOwnProperty doesn't seem to work in tests
4456
- var isShadow = Boolean(child.getRootNode && child.getRootNode().host); // First, attempt with faster native method
4149
+ var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
4457
4150
 
4458
4151
  if (parent.contains(child)) {
4459
4152
  return true;
4460
4153
  } // then fallback to custom implementation with Shadow DOM support
4461
- else if (isShadow) {
4154
+ else if (rootNode && isShadowRoot(rootNode)) {
4462
4155
  var next = child;
4463
4156
 
4464
4157
  do {
4465
4158
  if (next && parent.isSameNode(next)) {
4466
4159
  return true;
4467
- } // $FlowFixMe: need a better way to handle this...
4160
+ } // $FlowFixMe[prop-missing]: need a better way to handle this...
4468
4161
 
4469
4162
 
4470
4163
  next = next.parentNode || next.host;
@@ -4475,142 +4168,105 @@
4475
4168
  return false;
4476
4169
  }
4477
4170
 
4478
- function rectToClientRect(rect) {
4479
- return Object.assign(Object.assign({}, rect), {}, {
4480
- left: rect.x,
4481
- top: rect.y,
4482
- right: rect.x + rect.width,
4483
- bottom: rect.y + rect.height
4484
- });
4171
+ function getComputedStyle$1(element) {
4172
+ return getWindow(element).getComputedStyle(element);
4485
4173
  }
4486
4174
 
4487
- function getInnerBoundingClientRect(element) {
4488
- var rect = getBoundingClientRect(element);
4489
- rect.top = rect.top + element.clientTop;
4490
- rect.left = rect.left + element.clientLeft;
4491
- rect.bottom = rect.top + element.clientHeight;
4492
- rect.right = rect.left + element.clientWidth;
4493
- rect.width = element.clientWidth;
4494
- rect.height = element.clientHeight;
4495
- rect.x = rect.left;
4496
- rect.y = rect.top;
4497
- return rect;
4175
+ function isTableElement(element) {
4176
+ return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
4498
4177
  }
4499
4178
 
4500
- function getClientRectFromMixedType(element, clippingParent) {
4501
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
4502
- } // A "clipping parent" is an overflowable container with the characteristic of
4503
- // clipping (or hiding) overflowing elements with a position different from
4504
- // `initial`
4179
+ function getDocumentElement(element) {
4180
+ // $FlowFixMe[incompatible-return]: assume body is always available
4181
+ return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
4182
+ element.document) || window.document).documentElement;
4183
+ }
4505
4184
 
4185
+ function getParentNode(element) {
4186
+ if (getNodeName(element) === 'html') {
4187
+ return element;
4188
+ }
4506
4189
 
4507
- function getClippingParents(element) {
4508
- var clippingParents = listScrollParents(getParentNode(element));
4509
- var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
4510
- var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
4190
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
4191
+ // $FlowFixMe[incompatible-return]
4192
+ // $FlowFixMe[prop-missing]
4193
+ element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
4194
+ element.parentNode || ( // DOM Element detected
4195
+ isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
4196
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
4197
+ getDocumentElement(element) // fallback
4511
4198
 
4512
- if (!isElement(clipperElement)) {
4513
- return [];
4514
- } // $FlowFixMe: https://github.com/facebook/flow/issues/1414
4199
+ );
4200
+ }
4515
4201
 
4202
+ function getTrueOffsetParent(element) {
4203
+ if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
4204
+ getComputedStyle$1(element).position === 'fixed') {
4205
+ return null;
4206
+ }
4516
4207
 
4517
- return clippingParents.filter(function (clippingParent) {
4518
- return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
4519
- });
4520
- } // Gets the maximum area that the element is visible in due to any number of
4521
- // clipping parents
4208
+ return element.offsetParent;
4209
+ } // `.offsetParent` reports `null` for fixed elements, while absolute elements
4210
+ // return the containing block
4522
4211
 
4523
4212
 
4524
- function getClippingRect(element, boundary, rootBoundary) {
4525
- var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
4526
- var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
4527
- var firstClippingParent = clippingParents[0];
4528
- var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
4529
- var rect = getClientRectFromMixedType(element, clippingParent);
4530
- accRect.top = Math.max(rect.top, accRect.top);
4531
- accRect.right = Math.min(rect.right, accRect.right);
4532
- accRect.bottom = Math.min(rect.bottom, accRect.bottom);
4533
- accRect.left = Math.max(rect.left, accRect.left);
4534
- return accRect;
4535
- }, getClientRectFromMixedType(element, firstClippingParent));
4536
- clippingRect.width = clippingRect.right - clippingRect.left;
4537
- clippingRect.height = clippingRect.bottom - clippingRect.top;
4538
- clippingRect.x = clippingRect.left;
4539
- clippingRect.y = clippingRect.top;
4540
- return clippingRect;
4541
- }
4213
+ function getContainingBlock(element) {
4214
+ var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
4215
+ var isIE = navigator.userAgent.indexOf('Trident') !== -1;
4542
4216
 
4543
- function getVariation(placement) {
4544
- return placement.split('-')[1];
4545
- }
4217
+ if (isIE && isHTMLElement(element)) {
4218
+ // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
4219
+ var elementCss = getComputedStyle$1(element);
4546
4220
 
4547
- function getMainAxisFromPlacement(placement) {
4548
- return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
4549
- }
4221
+ if (elementCss.position === 'fixed') {
4222
+ return null;
4223
+ }
4224
+ }
4550
4225
 
4551
- function computeOffsets(_ref) {
4552
- var reference = _ref.reference,
4553
- element = _ref.element,
4554
- placement = _ref.placement;
4555
- var basePlacement = placement ? getBasePlacement(placement) : null;
4556
- var variation = placement ? getVariation(placement) : null;
4557
- var commonX = reference.x + reference.width / 2 - element.width / 2;
4558
- var commonY = reference.y + reference.height / 2 - element.height / 2;
4559
- var offsets;
4226
+ var currentNode = getParentNode(element);
4560
4227
 
4561
- switch (basePlacement) {
4562
- case top:
4563
- offsets = {
4564
- x: commonX,
4565
- y: reference.y - element.height
4566
- };
4567
- break;
4228
+ while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
4229
+ var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
4230
+ // create a containing block.
4231
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
4568
4232
 
4569
- case bottom:
4570
- offsets = {
4571
- x: commonX,
4572
- y: reference.y + reference.height
4573
- };
4574
- break;
4233
+ if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
4234
+ return currentNode;
4235
+ } else {
4236
+ currentNode = currentNode.parentNode;
4237
+ }
4238
+ }
4575
4239
 
4576
- case right:
4577
- offsets = {
4578
- x: reference.x + reference.width,
4579
- y: commonY
4580
- };
4581
- break;
4240
+ return null;
4241
+ } // Gets the closest ancestor positioned element. Handles some edge cases,
4242
+ // such as table ancestors and cross browser bugs.
4582
4243
 
4583
- case left:
4584
- offsets = {
4585
- x: reference.x - element.width,
4586
- y: commonY
4587
- };
4588
- break;
4589
4244
 
4590
- default:
4591
- offsets = {
4592
- x: reference.x,
4593
- y: reference.y
4594
- };
4595
- }
4245
+ function getOffsetParent(element) {
4246
+ var window = getWindow(element);
4247
+ var offsetParent = getTrueOffsetParent(element);
4596
4248
 
4597
- var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
4249
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
4250
+ offsetParent = getTrueOffsetParent(offsetParent);
4251
+ }
4598
4252
 
4599
- if (mainAxis != null) {
4600
- var len = mainAxis === 'y' ? 'height' : 'width';
4253
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
4254
+ return window;
4255
+ }
4601
4256
 
4602
- switch (variation) {
4603
- case start:
4604
- offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
4605
- break;
4257
+ return offsetParent || getContainingBlock(element) || window;
4258
+ }
4606
4259
 
4607
- case end:
4608
- offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
4609
- break;
4610
- }
4611
- }
4260
+ function getMainAxisFromPlacement(placement) {
4261
+ return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
4262
+ }
4612
4263
 
4613
- return offsets;
4264
+ function within(min$1, value, max$1) {
4265
+ return max(min$1, min(value, max$1));
4266
+ }
4267
+ function withinMaxClamp(min, value, max) {
4268
+ var v = within(min, value, max);
4269
+ return v > max ? max : v;
4614
4270
  }
4615
4271
 
4616
4272
  function getFreshSideObject() {
@@ -4623,7 +4279,7 @@
4623
4279
  }
4624
4280
 
4625
4281
  function mergePaddingObject(paddingObject) {
4626
- return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
4282
+ return Object.assign({}, getFreshSideObject(), paddingObject);
4627
4283
  }
4628
4284
 
4629
4285
  function expandToHashMap(value, keys) {
@@ -4633,374 +4289,100 @@
4633
4289
  }, {});
4634
4290
  }
4635
4291
 
4636
- function detectOverflow(state, options) {
4637
- if (options === void 0) {
4638
- options = {};
4639
- }
4292
+ var toPaddingObject = function toPaddingObject(padding, state) {
4293
+ padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
4294
+ placement: state.placement
4295
+ })) : padding;
4296
+ return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
4297
+ };
4640
4298
 
4641
- var _options = options,
4642
- _options$placement = _options.placement,
4643
- placement = _options$placement === void 0 ? state.placement : _options$placement,
4644
- _options$boundary = _options.boundary,
4645
- boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
4646
- _options$rootBoundary = _options.rootBoundary,
4647
- rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
4648
- _options$elementConte = _options.elementContext,
4649
- elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
4650
- _options$altBoundary = _options.altBoundary,
4651
- altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
4652
- _options$padding = _options.padding,
4653
- padding = _options$padding === void 0 ? 0 : _options$padding;
4654
- var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
4655
- var altContext = elementContext === popper ? reference : popper;
4656
- var referenceElement = state.elements.reference;
4657
- var popperRect = state.rects.popper;
4658
- var element = state.elements[altBoundary ? altContext : elementContext];
4659
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
4660
- var referenceClientRect = getBoundingClientRect(referenceElement);
4661
- var popperOffsets = computeOffsets({
4662
- reference: referenceClientRect,
4663
- element: popperRect,
4664
- strategy: 'absolute',
4665
- placement: placement
4666
- });
4667
- var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
4668
- var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
4669
- // 0 or negative = within the clipping rect
4299
+ function arrow(_ref) {
4300
+ var _state$modifiersData$;
4670
4301
 
4671
- var overflowOffsets = {
4672
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
4673
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
4674
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
4675
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
4676
- };
4677
- var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
4302
+ var state = _ref.state,
4303
+ name = _ref.name,
4304
+ options = _ref.options;
4305
+ var arrowElement = state.elements.arrow;
4306
+ var popperOffsets = state.modifiersData.popperOffsets;
4307
+ var basePlacement = getBasePlacement(state.placement);
4308
+ var axis = getMainAxisFromPlacement(basePlacement);
4309
+ var isVertical = [left, right].indexOf(basePlacement) >= 0;
4310
+ var len = isVertical ? 'height' : 'width';
4678
4311
 
4679
- if (elementContext === popper && offsetData) {
4680
- var offset = offsetData[placement];
4681
- Object.keys(overflowOffsets).forEach(function (key) {
4682
- var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
4683
- var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
4684
- overflowOffsets[key] += offset[axis] * multiply;
4685
- });
4312
+ if (!arrowElement || !popperOffsets) {
4313
+ return;
4686
4314
  }
4687
4315
 
4688
- return overflowOffsets;
4689
- }
4690
-
4691
- var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
4692
- var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
4693
- var DEFAULT_OPTIONS = {
4694
- placement: 'bottom',
4695
- modifiers: [],
4696
- strategy: 'absolute'
4697
- };
4316
+ var paddingObject = toPaddingObject(options.padding, state);
4317
+ var arrowRect = getLayoutRect(arrowElement);
4318
+ var minProp = axis === 'y' ? top : left;
4319
+ var maxProp = axis === 'y' ? bottom : right;
4320
+ var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
4321
+ var startDiff = popperOffsets[axis] - state.rects.reference[axis];
4322
+ var arrowOffsetParent = getOffsetParent(arrowElement);
4323
+ var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
4324
+ var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
4325
+ // outside of the popper bounds
4698
4326
 
4699
- function areValidElements() {
4700
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4701
- args[_key] = arguments[_key];
4702
- }
4327
+ var min = paddingObject[minProp];
4328
+ var max = clientSize - arrowRect[len] - paddingObject[maxProp];
4329
+ var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
4330
+ var offset = within(min, center, max); // Prevents breaking syntax highlighting...
4703
4331
 
4704
- return !args.some(function (element) {
4705
- return !(element && typeof element.getBoundingClientRect === 'function');
4706
- });
4332
+ var axisProp = axis;
4333
+ state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
4707
4334
  }
4708
4335
 
4709
- function popperGenerator(generatorOptions) {
4710
- if (generatorOptions === void 0) {
4711
- generatorOptions = {};
4712
- }
4336
+ function effect$1(_ref2) {
4337
+ var state = _ref2.state,
4338
+ options = _ref2.options;
4339
+ var _options$element = options.element,
4340
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
4713
4341
 
4714
- var _generatorOptions = generatorOptions,
4715
- _generatorOptions$def = _generatorOptions.defaultModifiers,
4716
- defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
4717
- _generatorOptions$def2 = _generatorOptions.defaultOptions,
4718
- defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
4719
- return function createPopper(reference, popper, options) {
4720
- if (options === void 0) {
4721
- options = defaultOptions;
4722
- }
4723
-
4724
- var state = {
4725
- placement: 'bottom',
4726
- orderedModifiers: [],
4727
- options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
4728
- modifiersData: {},
4729
- elements: {
4730
- reference: reference,
4731
- popper: popper
4732
- },
4733
- attributes: {},
4734
- styles: {}
4735
- };
4736
- var effectCleanupFns = [];
4737
- var isDestroyed = false;
4738
- var instance = {
4739
- state: state,
4740
- setOptions: function setOptions(options) {
4741
- cleanupModifierEffects();
4742
- state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
4743
- state.scrollParents = {
4744
- reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
4745
- popper: listScrollParents(popper)
4746
- }; // Orders the modifiers based on their dependencies and `phase`
4747
- // properties
4748
-
4749
- var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
4750
-
4751
- state.orderedModifiers = orderedModifiers.filter(function (m) {
4752
- return m.enabled;
4753
- }); // Validate the provided modifiers so that the consumer will get warned
4754
- // if one of the modifiers is invalid for any reason
4755
-
4756
- {
4757
- var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
4758
- var name = _ref.name;
4759
- return name;
4760
- });
4761
- validateModifiers(modifiers);
4762
-
4763
- if (getBasePlacement(state.options.placement) === auto) {
4764
- var flipModifier = state.orderedModifiers.find(function (_ref2) {
4765
- var name = _ref2.name;
4766
- return name === 'flip';
4767
- });
4768
-
4769
- if (!flipModifier) {
4770
- console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
4771
- }
4772
- }
4773
-
4774
- var _getComputedStyle = getComputedStyle$1(popper),
4775
- marginTop = _getComputedStyle.marginTop,
4776
- marginRight = _getComputedStyle.marginRight,
4777
- marginBottom = _getComputedStyle.marginBottom,
4778
- marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
4779
- // cause bugs with positioning, so we'll warn the consumer
4780
-
4781
-
4782
- if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
4783
- return parseFloat(margin);
4784
- })) {
4785
- console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
4786
- }
4787
- }
4788
-
4789
- runModifierEffects();
4790
- return instance.update();
4791
- },
4792
- // Sync update – it will always be executed, even if not necessary. This
4793
- // is useful for low frequency updates where sync behavior simplifies the
4794
- // logic.
4795
- // For high frequency updates (e.g. `resize` and `scroll` events), always
4796
- // prefer the async Popper#update method
4797
- forceUpdate: function forceUpdate() {
4798
- if (isDestroyed) {
4799
- return;
4800
- }
4801
-
4802
- var _state$elements = state.elements,
4803
- reference = _state$elements.reference,
4804
- popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
4805
- // anymore
4806
-
4807
- if (!areValidElements(reference, popper)) {
4808
- {
4809
- console.error(INVALID_ELEMENT_ERROR);
4810
- }
4811
-
4812
- return;
4813
- } // Store the reference and popper rects to be read by modifiers
4814
-
4815
-
4816
- state.rects = {
4817
- reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
4818
- popper: getLayoutRect(popper)
4819
- }; // Modifiers have the ability to reset the current update cycle. The
4820
- // most common use case for this is the `flip` modifier changing the
4821
- // placement, which then needs to re-run all the modifiers, because the
4822
- // logic was previously ran for the previous placement and is therefore
4823
- // stale/incorrect
4824
-
4825
- state.reset = false;
4826
- state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
4827
- // is filled with the initial data specified by the modifier. This means
4828
- // it doesn't persist and is fresh on each update.
4829
- // To ensure persistent data, use `${name}#persistent`
4830
-
4831
- state.orderedModifiers.forEach(function (modifier) {
4832
- return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
4833
- });
4834
- var __debug_loops__ = 0;
4835
-
4836
- for (var index = 0; index < state.orderedModifiers.length; index++) {
4837
- {
4838
- __debug_loops__ += 1;
4839
-
4840
- if (__debug_loops__ > 100) {
4841
- console.error(INFINITE_LOOP_ERROR);
4842
- break;
4843
- }
4844
- }
4845
-
4846
- if (state.reset === true) {
4847
- state.reset = false;
4848
- index = -1;
4849
- continue;
4850
- }
4851
-
4852
- var _state$orderedModifie = state.orderedModifiers[index],
4853
- fn = _state$orderedModifie.fn,
4854
- _state$orderedModifie2 = _state$orderedModifie.options,
4855
- _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
4856
- name = _state$orderedModifie.name;
4342
+ if (arrowElement == null) {
4343
+ return;
4344
+ } // CSS selector
4857
4345
 
4858
- if (typeof fn === 'function') {
4859
- state = fn({
4860
- state: state,
4861
- options: _options,
4862
- name: name,
4863
- instance: instance
4864
- }) || state;
4865
- }
4866
- }
4867
- },
4868
- // Async and optimistically optimized update – it will not be executed if
4869
- // not necessary (debounced to run at most once-per-tick)
4870
- update: debounce$2(function () {
4871
- return new Promise(function (resolve) {
4872
- instance.forceUpdate();
4873
- resolve(state);
4874
- });
4875
- }),
4876
- destroy: function destroy() {
4877
- cleanupModifierEffects();
4878
- isDestroyed = true;
4879
- }
4880
- };
4881
4346
 
4882
- if (!areValidElements(reference, popper)) {
4883
- {
4884
- console.error(INVALID_ELEMENT_ERROR);
4885
- }
4347
+ if (typeof arrowElement === 'string') {
4348
+ arrowElement = state.elements.popper.querySelector(arrowElement);
4886
4349
 
4887
- return instance;
4350
+ if (!arrowElement) {
4351
+ return;
4888
4352
  }
4353
+ }
4889
4354
 
4890
- instance.setOptions(options).then(function (state) {
4891
- if (!isDestroyed && options.onFirstUpdate) {
4892
- options.onFirstUpdate(state);
4893
- }
4894
- }); // Modifiers have the ability to execute arbitrary code before the first
4895
- // update cycle runs. They will be executed in the same order as the update
4896
- // cycle. This is useful when a modifier adds some persistent data that
4897
- // other modifiers need to use, but the modifier is run after the dependent
4898
- // one.
4899
-
4900
- function runModifierEffects() {
4901
- state.orderedModifiers.forEach(function (_ref3) {
4902
- var name = _ref3.name,
4903
- _ref3$options = _ref3.options,
4904
- options = _ref3$options === void 0 ? {} : _ref3$options,
4905
- effect = _ref3.effect;
4906
-
4907
- if (typeof effect === 'function') {
4908
- var cleanupFn = effect({
4909
- state: state,
4910
- name: name,
4911
- instance: instance,
4912
- options: options
4913
- });
4914
-
4915
- var noopFn = function noopFn() {};
4916
-
4917
- effectCleanupFns.push(cleanupFn || noopFn);
4918
- }
4919
- });
4355
+ {
4356
+ if (!isHTMLElement(arrowElement)) {
4357
+ console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
4920
4358
  }
4359
+ }
4921
4360
 
4922
- function cleanupModifierEffects() {
4923
- effectCleanupFns.forEach(function (fn) {
4924
- return fn();
4925
- });
4926
- effectCleanupFns = [];
4361
+ if (!contains(state.elements.popper, arrowElement)) {
4362
+ {
4363
+ console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
4927
4364
  }
4928
4365
 
4929
- return instance;
4930
- };
4931
- }
4932
-
4933
- var passive = {
4934
- passive: true
4935
- };
4936
-
4937
- function effect$2(_ref) {
4938
- var state = _ref.state,
4939
- instance = _ref.instance,
4940
- options = _ref.options;
4941
- var _options$scroll = options.scroll,
4942
- scroll = _options$scroll === void 0 ? true : _options$scroll,
4943
- _options$resize = options.resize,
4944
- resize = _options$resize === void 0 ? true : _options$resize;
4945
- var window = getWindow(state.elements.popper);
4946
- var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
4947
-
4948
- if (scroll) {
4949
- scrollParents.forEach(function (scrollParent) {
4950
- scrollParent.addEventListener('scroll', instance.update, passive);
4951
- });
4952
- }
4953
-
4954
- if (resize) {
4955
- window.addEventListener('resize', instance.update, passive);
4366
+ return;
4956
4367
  }
4957
4368
 
4958
- return function () {
4959
- if (scroll) {
4960
- scrollParents.forEach(function (scrollParent) {
4961
- scrollParent.removeEventListener('scroll', instance.update, passive);
4962
- });
4963
- }
4964
-
4965
- if (resize) {
4966
- window.removeEventListener('resize', instance.update, passive);
4967
- }
4968
- };
4369
+ state.elements.arrow = arrowElement;
4969
4370
  } // eslint-disable-next-line import/no-unused-modules
4970
4371
 
4971
4372
 
4972
- var eventListeners = {
4973
- name: 'eventListeners',
4373
+ var arrow$1 = {
4374
+ name: 'arrow',
4974
4375
  enabled: true,
4975
- phase: 'write',
4976
- fn: function fn() {},
4977
- effect: effect$2,
4978
- data: {}
4376
+ phase: 'main',
4377
+ fn: arrow,
4378
+ effect: effect$1,
4379
+ requires: ['popperOffsets'],
4380
+ requiresIfExists: ['preventOverflow']
4979
4381
  };
4980
4382
 
4981
- function popperOffsets(_ref) {
4982
- var state = _ref.state,
4983
- name = _ref.name; // Offsets are the actual position the popper needs to have to be
4984
- // properly positioned near its reference element
4985
- // This is the most basic placement, and will be adjusted by
4986
- // the modifiers in the next step
4987
-
4988
- state.modifiersData[name] = computeOffsets({
4989
- reference: state.rects.reference,
4990
- element: state.rects.popper,
4991
- strategy: 'absolute',
4992
- placement: state.placement
4993
- });
4994
- } // eslint-disable-next-line import/no-unused-modules
4995
-
4996
-
4997
- var popperOffsets$1 = {
4998
- name: 'popperOffsets',
4999
- enabled: true,
5000
- phase: 'read',
5001
- fn: popperOffsets,
5002
- data: {}
5003
- };
4383
+ function getVariation(placement) {
4384
+ return placement.split('-')[1];
4385
+ }
5004
4386
 
5005
4387
  var unsetSides = {
5006
4388
  top: 'auto',
@@ -5011,14 +4393,14 @@
5011
4393
  // Zooming can change the DPR, but it seems to report a value that will
5012
4394
  // cleanly divide the values into the appropriate subpixels.
5013
4395
 
5014
- function roundOffsets(_ref) {
4396
+ function roundOffsetsByDPR(_ref) {
5015
4397
  var x = _ref.x,
5016
4398
  y = _ref.y;
5017
4399
  var win = window;
5018
4400
  var dpr = win.devicePixelRatio || 1;
5019
4401
  return {
5020
- x: Math.round(x * dpr) / dpr || 0,
5021
- y: Math.round(y * dpr) / dpr || 0
4402
+ x: round(x * dpr) / dpr || 0,
4403
+ y: round(y * dpr) / dpr || 0
5022
4404
  };
5023
4405
  }
5024
4406
 
@@ -5028,15 +4410,28 @@
5028
4410
  var popper = _ref2.popper,
5029
4411
  popperRect = _ref2.popperRect,
5030
4412
  placement = _ref2.placement,
4413
+ variation = _ref2.variation,
5031
4414
  offsets = _ref2.offsets,
5032
4415
  position = _ref2.position,
5033
4416
  gpuAcceleration = _ref2.gpuAcceleration,
5034
- adaptive = _ref2.adaptive;
5035
-
5036
- var _roundOffsets = roundOffsets(offsets),
5037
- x = _roundOffsets.x,
5038
- y = _roundOffsets.y;
4417
+ adaptive = _ref2.adaptive,
4418
+ roundOffsets = _ref2.roundOffsets,
4419
+ isFixed = _ref2.isFixed;
4420
+ var _offsets$x = offsets.x,
4421
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
4422
+ _offsets$y = offsets.y,
4423
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
4424
+
4425
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
4426
+ x: x,
4427
+ y: y
4428
+ }) : {
4429
+ x: x,
4430
+ y: y
4431
+ };
5039
4432
 
4433
+ x = _ref3.x;
4434
+ y = _ref3.y;
5040
4435
  var hasX = offsets.hasOwnProperty('x');
5041
4436
  var hasY = offsets.hasOwnProperty('y');
5042
4437
  var sideX = left;
@@ -5045,23 +4440,34 @@
5045
4440
 
5046
4441
  if (adaptive) {
5047
4442
  var offsetParent = getOffsetParent(popper);
4443
+ var heightProp = 'clientHeight';
4444
+ var widthProp = 'clientWidth';
5048
4445
 
5049
4446
  if (offsetParent === getWindow(popper)) {
5050
4447
  offsetParent = getDocumentElement(popper);
5051
- } // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
5052
4448
 
5053
- /*:: offsetParent = (offsetParent: Element); */
4449
+ if (getComputedStyle$1(offsetParent).position !== 'static' && position === 'absolute') {
4450
+ heightProp = 'scrollHeight';
4451
+ widthProp = 'scrollWidth';
4452
+ }
4453
+ } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
4454
+
5054
4455
 
4456
+ offsetParent = offsetParent;
5055
4457
 
5056
- if (placement === top) {
4458
+ if (placement === top || (placement === left || placement === right) && variation === end) {
5057
4459
  sideY = bottom;
5058
- y -= offsetParent.clientHeight - popperRect.height;
4460
+ var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
4461
+ offsetParent[heightProp];
4462
+ y -= offsetY - popperRect.height;
5059
4463
  y *= gpuAcceleration ? 1 : -1;
5060
4464
  }
5061
4465
 
5062
- if (placement === left) {
4466
+ if (placement === left || (placement === top || placement === bottom) && variation === end) {
5063
4467
  sideX = right;
5064
- x -= offsetParent.clientWidth - popperRect.width;
4468
+ var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
4469
+ offsetParent[widthProp];
4470
+ x -= offsetX - popperRect.width;
5065
4471
  x *= gpuAcceleration ? 1 : -1;
5066
4472
  }
5067
4473
  }
@@ -5070,22 +4476,35 @@
5070
4476
  position: position
5071
4477
  }, adaptive && unsetSides);
5072
4478
 
4479
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
4480
+ x: x,
4481
+ y: y
4482
+ }) : {
4483
+ x: x,
4484
+ y: y
4485
+ };
4486
+
4487
+ x = _ref4.x;
4488
+ y = _ref4.y;
4489
+
5073
4490
  if (gpuAcceleration) {
5074
4491
  var _Object$assign;
5075
4492
 
5076
- return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
4493
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
5077
4494
  }
5078
4495
 
5079
- return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
4496
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
5080
4497
  }
5081
4498
 
5082
- function computeStyles(_ref3) {
5083
- var state = _ref3.state,
5084
- options = _ref3.options;
4499
+ function computeStyles(_ref5) {
4500
+ var state = _ref5.state,
4501
+ options = _ref5.options;
5085
4502
  var _options$gpuAccelerat = options.gpuAcceleration,
5086
4503
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
5087
4504
  _options$adaptive = options.adaptive,
5088
- adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
4505
+ adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
4506
+ _options$roundOffsets = options.roundOffsets,
4507
+ roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
5089
4508
 
5090
4509
  {
5091
4510
  var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
@@ -5099,28 +4518,32 @@
5099
4518
 
5100
4519
  var commonStyles = {
5101
4520
  placement: getBasePlacement(state.placement),
4521
+ variation: getVariation(state.placement),
5102
4522
  popper: state.elements.popper,
5103
4523
  popperRect: state.rects.popper,
5104
- gpuAcceleration: gpuAcceleration
4524
+ gpuAcceleration: gpuAcceleration,
4525
+ isFixed: state.options.strategy === 'fixed'
5105
4526
  };
5106
4527
 
5107
4528
  if (state.modifiersData.popperOffsets != null) {
5108
- state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
4529
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
5109
4530
  offsets: state.modifiersData.popperOffsets,
5110
4531
  position: state.options.strategy,
5111
- adaptive: adaptive
4532
+ adaptive: adaptive,
4533
+ roundOffsets: roundOffsets
5112
4534
  })));
5113
4535
  }
5114
4536
 
5115
4537
  if (state.modifiersData.arrow != null) {
5116
- state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
4538
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
5117
4539
  offsets: state.modifiersData.arrow,
5118
4540
  position: 'absolute',
5119
- adaptive: false
4541
+ adaptive: false,
4542
+ roundOffsets: roundOffsets
5120
4543
  })));
5121
4544
  }
5122
4545
 
5123
- state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
4546
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
5124
4547
  'data-popper-placement': state.placement
5125
4548
  });
5126
4549
  } // eslint-disable-next-line import/no-unused-modules
@@ -5134,141 +4557,52 @@
5134
4557
  data: {}
5135
4558
  };
5136
4559
 
5137
- // and applies them to the HTMLElements such as popper and arrow
5138
-
5139
- function applyStyles(_ref) {
5140
- var state = _ref.state;
5141
- Object.keys(state.elements).forEach(function (name) {
5142
- var style = state.styles[name] || {};
5143
- var attributes = state.attributes[name] || {};
5144
- var element = state.elements[name]; // arrow is optional + virtual elements
5145
-
5146
- if (!isHTMLElement(element) || !getNodeName(element)) {
5147
- return;
5148
- } // Flow doesn't support to extend this property, but it's the most
5149
- // effective way to apply styles to an HTMLElement
5150
- // $FlowFixMe
5151
-
4560
+ var passive = {
4561
+ passive: true
4562
+ };
5152
4563
 
5153
- Object.assign(element.style, style);
5154
- Object.keys(attributes).forEach(function (name) {
5155
- var value = attributes[name];
4564
+ function effect(_ref) {
4565
+ var state = _ref.state,
4566
+ instance = _ref.instance,
4567
+ options = _ref.options;
4568
+ var _options$scroll = options.scroll,
4569
+ scroll = _options$scroll === void 0 ? true : _options$scroll,
4570
+ _options$resize = options.resize,
4571
+ resize = _options$resize === void 0 ? true : _options$resize;
4572
+ var window = getWindow(state.elements.popper);
4573
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
5156
4574
 
5157
- if (value === false) {
5158
- element.removeAttribute(name);
5159
- } else {
5160
- element.setAttribute(name, value === true ? '' : value);
5161
- }
4575
+ if (scroll) {
4576
+ scrollParents.forEach(function (scrollParent) {
4577
+ scrollParent.addEventListener('scroll', instance.update, passive);
5162
4578
  });
5163
- });
5164
- }
5165
-
5166
- function effect$1(_ref2) {
5167
- var state = _ref2.state;
5168
- var initialStyles = {
5169
- popper: {
5170
- position: state.options.strategy,
5171
- left: '0',
5172
- top: '0',
5173
- margin: '0'
5174
- },
5175
- arrow: {
5176
- position: 'absolute'
5177
- },
5178
- reference: {}
5179
- };
5180
- Object.assign(state.elements.popper.style, initialStyles.popper);
4579
+ }
5181
4580
 
5182
- if (state.elements.arrow) {
5183
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
4581
+ if (resize) {
4582
+ window.addEventListener('resize', instance.update, passive);
5184
4583
  }
5185
4584
 
5186
4585
  return function () {
5187
- Object.keys(state.elements).forEach(function (name) {
5188
- var element = state.elements[name];
5189
- var attributes = state.attributes[name] || {};
5190
- var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
5191
-
5192
- var style = styleProperties.reduce(function (style, property) {
5193
- style[property] = '';
5194
- return style;
5195
- }, {}); // arrow is optional + virtual elements
5196
-
5197
- if (!isHTMLElement(element) || !getNodeName(element)) {
5198
- return;
5199
- } // Flow doesn't support to extend this property, but it's the most
5200
- // effective way to apply styles to an HTMLElement
5201
- // $FlowFixMe
5202
-
5203
-
5204
- Object.assign(element.style, style);
5205
- Object.keys(attributes).forEach(function (attribute) {
5206
- element.removeAttribute(attribute);
4586
+ if (scroll) {
4587
+ scrollParents.forEach(function (scrollParent) {
4588
+ scrollParent.removeEventListener('scroll', instance.update, passive);
5207
4589
  });
5208
- });
5209
- };
5210
- } // eslint-disable-next-line import/no-unused-modules
5211
-
5212
-
5213
- var applyStyles$1 = {
5214
- name: 'applyStyles',
5215
- enabled: true,
5216
- phase: 'write',
5217
- fn: applyStyles,
5218
- effect: effect$1,
5219
- requires: ['computeStyles']
5220
- };
5221
-
5222
- function distanceAndSkiddingToXY(placement, rects, offset) {
5223
- var basePlacement = getBasePlacement(placement);
5224
- var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
5225
-
5226
- var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
5227
- placement: placement
5228
- })) : offset,
5229
- skidding = _ref[0],
5230
- distance = _ref[1];
4590
+ }
5231
4591
 
5232
- skidding = skidding || 0;
5233
- distance = (distance || 0) * invertDistance;
5234
- return [left, right].indexOf(basePlacement) >= 0 ? {
5235
- x: distance,
5236
- y: skidding
5237
- } : {
5238
- x: skidding,
5239
- y: distance
4592
+ if (resize) {
4593
+ window.removeEventListener('resize', instance.update, passive);
4594
+ }
5240
4595
  };
5241
- }
5242
-
5243
- function offset(_ref2) {
5244
- var state = _ref2.state,
5245
- options = _ref2.options,
5246
- name = _ref2.name;
5247
- var _options$offset = options.offset,
5248
- offset = _options$offset === void 0 ? [0, 0] : _options$offset;
5249
- var data = placements.reduce(function (acc, placement) {
5250
- acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
5251
- return acc;
5252
- }, {});
5253
- var _data$state$placement = data[state.placement],
5254
- x = _data$state$placement.x,
5255
- y = _data$state$placement.y;
5256
-
5257
- if (state.modifiersData.popperOffsets != null) {
5258
- state.modifiersData.popperOffsets.x += x;
5259
- state.modifiersData.popperOffsets.y += y;
5260
- }
5261
-
5262
- state.modifiersData[name] = data;
5263
4596
  } // eslint-disable-next-line import/no-unused-modules
5264
4597
 
5265
4598
 
5266
- var offset$1 = {
5267
- name: 'offset',
4599
+ var eventListeners = {
4600
+ name: 'eventListeners',
5268
4601
  enabled: true,
5269
- phase: 'main',
5270
- requires: ['popperOffsets'],
5271
- fn: offset
4602
+ phase: 'write',
4603
+ fn: function fn() {},
4604
+ effect: effect,
4605
+ data: {}
5272
4606
  };
5273
4607
 
5274
4608
  var hash$1 = {
@@ -5293,19 +4627,329 @@
5293
4627
  });
5294
4628
  }
5295
4629
 
5296
- /*:: type OverflowsMap = { [ComputedPlacement]: number }; */
4630
+ function getWindowScroll(node) {
4631
+ var win = getWindow(node);
4632
+ var scrollLeft = win.pageXOffset;
4633
+ var scrollTop = win.pageYOffset;
4634
+ return {
4635
+ scrollLeft: scrollLeft,
4636
+ scrollTop: scrollTop
4637
+ };
4638
+ }
5297
4639
 
5298
- /*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
4640
+ function getWindowScrollBarX(element) {
4641
+ // If <html> has a CSS width greater than the viewport, then this will be
4642
+ // incorrect for RTL.
4643
+ // Popper 1 is broken in this case and never had a bug report so let's assume
4644
+ // it's not an issue. I don't think anyone ever specifies width on <html>
4645
+ // anyway.
4646
+ // Browsers where the left scrollbar doesn't cause an issue report `0` for
4647
+ // this (e.g. Edge 2019, IE11, Safari)
4648
+ return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
4649
+ }
5299
4650
 
5300
- function computeAutoPlacement(state, options) {
5301
- if (options === void 0) {
5302
- options = {};
4651
+ function getViewportRect(element) {
4652
+ var win = getWindow(element);
4653
+ var html = getDocumentElement(element);
4654
+ var visualViewport = win.visualViewport;
4655
+ var width = html.clientWidth;
4656
+ var height = html.clientHeight;
4657
+ var x = 0;
4658
+ var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
4659
+ // can be obscured underneath it.
4660
+ // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
4661
+ // if it isn't open, so if this isn't available, the popper will be detected
4662
+ // to overflow the bottom of the screen too early.
4663
+
4664
+ if (visualViewport) {
4665
+ width = visualViewport.width;
4666
+ height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
4667
+ // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
4668
+ // errors due to floating point numbers, so we need to check precision.
4669
+ // Safari returns a number <= 0, usually < -1 when pinch-zoomed
4670
+ // Feature detection fails in mobile emulation mode in Chrome.
4671
+ // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
4672
+ // 0.001
4673
+ // Fallback here: "Not Safari" userAgent
4674
+
4675
+ if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
4676
+ x = visualViewport.offsetLeft;
4677
+ y = visualViewport.offsetTop;
4678
+ }
5303
4679
  }
5304
4680
 
5305
- var _options = options,
5306
- placement = _options.placement,
5307
- boundary = _options.boundary,
5308
- rootBoundary = _options.rootBoundary,
4681
+ return {
4682
+ width: width,
4683
+ height: height,
4684
+ x: x + getWindowScrollBarX(element),
4685
+ y: y
4686
+ };
4687
+ }
4688
+
4689
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable
4690
+
4691
+ function getDocumentRect(element) {
4692
+ var _element$ownerDocumen;
4693
+
4694
+ var html = getDocumentElement(element);
4695
+ var winScroll = getWindowScroll(element);
4696
+ var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
4697
+ var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
4698
+ var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
4699
+ var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
4700
+ var y = -winScroll.scrollTop;
4701
+
4702
+ if (getComputedStyle$1(body || html).direction === 'rtl') {
4703
+ x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
4704
+ }
4705
+
4706
+ return {
4707
+ width: width,
4708
+ height: height,
4709
+ x: x,
4710
+ y: y
4711
+ };
4712
+ }
4713
+
4714
+ function isScrollParent(element) {
4715
+ // Firefox wants us to check `-x` and `-y` variations as well
4716
+ var _getComputedStyle = getComputedStyle$1(element),
4717
+ overflow = _getComputedStyle.overflow,
4718
+ overflowX = _getComputedStyle.overflowX,
4719
+ overflowY = _getComputedStyle.overflowY;
4720
+
4721
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
4722
+ }
4723
+
4724
+ function getScrollParent(node) {
4725
+ if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
4726
+ // $FlowFixMe[incompatible-return]: assume body is always available
4727
+ return node.ownerDocument.body;
4728
+ }
4729
+
4730
+ if (isHTMLElement(node) && isScrollParent(node)) {
4731
+ return node;
4732
+ }
4733
+
4734
+ return getScrollParent(getParentNode(node));
4735
+ }
4736
+
4737
+ /*
4738
+ given a DOM element, return the list of all scroll parents, up the list of ancesors
4739
+ until we get to the top window object. This list is what we attach scroll listeners
4740
+ to, because if any of these parent elements scroll, we'll need to re-calculate the
4741
+ reference element's position.
4742
+ */
4743
+
4744
+ function listScrollParents(element, list) {
4745
+ var _element$ownerDocumen;
4746
+
4747
+ if (list === void 0) {
4748
+ list = [];
4749
+ }
4750
+
4751
+ var scrollParent = getScrollParent(element);
4752
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
4753
+ var win = getWindow(scrollParent);
4754
+ var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
4755
+ var updatedList = list.concat(target);
4756
+ return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
4757
+ updatedList.concat(listScrollParents(getParentNode(target)));
4758
+ }
4759
+
4760
+ function rectToClientRect(rect) {
4761
+ return Object.assign({}, rect, {
4762
+ left: rect.x,
4763
+ top: rect.y,
4764
+ right: rect.x + rect.width,
4765
+ bottom: rect.y + rect.height
4766
+ });
4767
+ }
4768
+
4769
+ function getInnerBoundingClientRect(element) {
4770
+ var rect = getBoundingClientRect(element);
4771
+ rect.top = rect.top + element.clientTop;
4772
+ rect.left = rect.left + element.clientLeft;
4773
+ rect.bottom = rect.top + element.clientHeight;
4774
+ rect.right = rect.left + element.clientWidth;
4775
+ rect.width = element.clientWidth;
4776
+ rect.height = element.clientHeight;
4777
+ rect.x = rect.left;
4778
+ rect.y = rect.top;
4779
+ return rect;
4780
+ }
4781
+
4782
+ function getClientRectFromMixedType(element, clippingParent) {
4783
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
4784
+ } // A "clipping parent" is an overflowable container with the characteristic of
4785
+ // clipping (or hiding) overflowing elements with a position different from
4786
+ // `initial`
4787
+
4788
+
4789
+ function getClippingParents(element) {
4790
+ var clippingParents = listScrollParents(getParentNode(element));
4791
+ var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
4792
+ var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
4793
+
4794
+ if (!isElement(clipperElement)) {
4795
+ return [];
4796
+ } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
4797
+
4798
+
4799
+ return clippingParents.filter(function (clippingParent) {
4800
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
4801
+ });
4802
+ } // Gets the maximum area that the element is visible in due to any number of
4803
+ // clipping parents
4804
+
4805
+
4806
+ function getClippingRect(element, boundary, rootBoundary) {
4807
+ var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
4808
+ var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
4809
+ var firstClippingParent = clippingParents[0];
4810
+ var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
4811
+ var rect = getClientRectFromMixedType(element, clippingParent);
4812
+ accRect.top = max(rect.top, accRect.top);
4813
+ accRect.right = min(rect.right, accRect.right);
4814
+ accRect.bottom = min(rect.bottom, accRect.bottom);
4815
+ accRect.left = max(rect.left, accRect.left);
4816
+ return accRect;
4817
+ }, getClientRectFromMixedType(element, firstClippingParent));
4818
+ clippingRect.width = clippingRect.right - clippingRect.left;
4819
+ clippingRect.height = clippingRect.bottom - clippingRect.top;
4820
+ clippingRect.x = clippingRect.left;
4821
+ clippingRect.y = clippingRect.top;
4822
+ return clippingRect;
4823
+ }
4824
+
4825
+ function computeOffsets(_ref) {
4826
+ var reference = _ref.reference,
4827
+ element = _ref.element,
4828
+ placement = _ref.placement;
4829
+ var basePlacement = placement ? getBasePlacement(placement) : null;
4830
+ var variation = placement ? getVariation(placement) : null;
4831
+ var commonX = reference.x + reference.width / 2 - element.width / 2;
4832
+ var commonY = reference.y + reference.height / 2 - element.height / 2;
4833
+ var offsets;
4834
+
4835
+ switch (basePlacement) {
4836
+ case top:
4837
+ offsets = {
4838
+ x: commonX,
4839
+ y: reference.y - element.height
4840
+ };
4841
+ break;
4842
+
4843
+ case bottom:
4844
+ offsets = {
4845
+ x: commonX,
4846
+ y: reference.y + reference.height
4847
+ };
4848
+ break;
4849
+
4850
+ case right:
4851
+ offsets = {
4852
+ x: reference.x + reference.width,
4853
+ y: commonY
4854
+ };
4855
+ break;
4856
+
4857
+ case left:
4858
+ offsets = {
4859
+ x: reference.x - element.width,
4860
+ y: commonY
4861
+ };
4862
+ break;
4863
+
4864
+ default:
4865
+ offsets = {
4866
+ x: reference.x,
4867
+ y: reference.y
4868
+ };
4869
+ }
4870
+
4871
+ var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
4872
+
4873
+ if (mainAxis != null) {
4874
+ var len = mainAxis === 'y' ? 'height' : 'width';
4875
+
4876
+ switch (variation) {
4877
+ case start:
4878
+ offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
4879
+ break;
4880
+
4881
+ case end:
4882
+ offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
4883
+ break;
4884
+ }
4885
+ }
4886
+
4887
+ return offsets;
4888
+ }
4889
+
4890
+ function detectOverflow(state, options) {
4891
+ if (options === void 0) {
4892
+ options = {};
4893
+ }
4894
+
4895
+ var _options = options,
4896
+ _options$placement = _options.placement,
4897
+ placement = _options$placement === void 0 ? state.placement : _options$placement,
4898
+ _options$boundary = _options.boundary,
4899
+ boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
4900
+ _options$rootBoundary = _options.rootBoundary,
4901
+ rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
4902
+ _options$elementConte = _options.elementContext,
4903
+ elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
4904
+ _options$altBoundary = _options.altBoundary,
4905
+ altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
4906
+ _options$padding = _options.padding,
4907
+ padding = _options$padding === void 0 ? 0 : _options$padding;
4908
+ var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
4909
+ var altContext = elementContext === popper ? reference : popper;
4910
+ var popperRect = state.rects.popper;
4911
+ var element = state.elements[altBoundary ? altContext : elementContext];
4912
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
4913
+ var referenceClientRect = getBoundingClientRect(state.elements.reference);
4914
+ var popperOffsets = computeOffsets({
4915
+ reference: referenceClientRect,
4916
+ element: popperRect,
4917
+ strategy: 'absolute',
4918
+ placement: placement
4919
+ });
4920
+ var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
4921
+ var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
4922
+ // 0 or negative = within the clipping rect
4923
+
4924
+ var overflowOffsets = {
4925
+ top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
4926
+ bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
4927
+ left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
4928
+ right: elementClientRect.right - clippingClientRect.right + paddingObject.right
4929
+ };
4930
+ var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
4931
+
4932
+ if (elementContext === popper && offsetData) {
4933
+ var offset = offsetData[placement];
4934
+ Object.keys(overflowOffsets).forEach(function (key) {
4935
+ var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
4936
+ var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
4937
+ overflowOffsets[key] += offset[axis] * multiply;
4938
+ });
4939
+ }
4940
+
4941
+ return overflowOffsets;
4942
+ }
4943
+
4944
+ function computeAutoPlacement(state, options) {
4945
+ if (options === void 0) {
4946
+ options = {};
4947
+ }
4948
+
4949
+ var _options = options,
4950
+ placement = _options.placement,
4951
+ boundary = _options.boundary,
4952
+ rootBoundary = _options.rootBoundary,
5309
4953
  padding = _options.padding,
5310
4954
  flipVariations = _options.flipVariations,
5311
4955
  _options$allowedAutoP = _options.allowedAutoPlacements,
@@ -5313,8 +4957,7 @@
5313
4957
  var variation = getVariation(placement);
5314
4958
  var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
5315
4959
  return getVariation(placement) === variation;
5316
- }) : basePlacements; // $FlowFixMe
5317
-
4960
+ }) : basePlacements;
5318
4961
  var allowedPlacements = placements$1.filter(function (placement) {
5319
4962
  return allowedAutoPlacements.indexOf(placement) >= 0;
5320
4963
  });
@@ -5325,7 +4968,7 @@
5325
4968
  {
5326
4969
  console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
5327
4970
  }
5328
- } // $FlowFixMe: Flow seems to have problems with two array unions...
4971
+ } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
5329
4972
 
5330
4973
 
5331
4974
  var overflows = allowedPlacements.reduce(function (acc, placement) {
@@ -5409,344 +5052,833 @@
5409
5052
  });
5410
5053
  var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
5411
5054
 
5412
- if (referenceRect[len] > popperRect[len]) {
5413
- mainVariationSide = getOppositePlacement(mainVariationSide);
5414
- }
5055
+ if (referenceRect[len] > popperRect[len]) {
5056
+ mainVariationSide = getOppositePlacement(mainVariationSide);
5057
+ }
5058
+
5059
+ var altVariationSide = getOppositePlacement(mainVariationSide);
5060
+ var checks = [];
5061
+
5062
+ if (checkMainAxis) {
5063
+ checks.push(overflow[_basePlacement] <= 0);
5064
+ }
5065
+
5066
+ if (checkAltAxis) {
5067
+ checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
5068
+ }
5069
+
5070
+ if (checks.every(function (check) {
5071
+ return check;
5072
+ })) {
5073
+ firstFittingPlacement = placement;
5074
+ makeFallbackChecks = false;
5075
+ break;
5076
+ }
5077
+
5078
+ checksMap.set(placement, checks);
5079
+ }
5080
+
5081
+ if (makeFallbackChecks) {
5082
+ // `2` may be desired in some cases – research later
5083
+ var numberOfChecks = flipVariations ? 3 : 1;
5084
+
5085
+ var _loop = function _loop(_i) {
5086
+ var fittingPlacement = placements.find(function (placement) {
5087
+ var checks = checksMap.get(placement);
5088
+
5089
+ if (checks) {
5090
+ return checks.slice(0, _i).every(function (check) {
5091
+ return check;
5092
+ });
5093
+ }
5094
+ });
5095
+
5096
+ if (fittingPlacement) {
5097
+ firstFittingPlacement = fittingPlacement;
5098
+ return "break";
5099
+ }
5100
+ };
5101
+
5102
+ for (var _i = numberOfChecks; _i > 0; _i--) {
5103
+ var _ret = _loop(_i);
5104
+
5105
+ if (_ret === "break") break;
5106
+ }
5107
+ }
5108
+
5109
+ if (state.placement !== firstFittingPlacement) {
5110
+ state.modifiersData[name]._skip = true;
5111
+ state.placement = firstFittingPlacement;
5112
+ state.reset = true;
5113
+ }
5114
+ } // eslint-disable-next-line import/no-unused-modules
5115
+
5116
+
5117
+ var flip$1 = {
5118
+ name: 'flip',
5119
+ enabled: true,
5120
+ phase: 'main',
5121
+ fn: flip,
5122
+ requiresIfExists: ['offset'],
5123
+ data: {
5124
+ _skip: false
5125
+ }
5126
+ };
5127
+
5128
+ function getSideOffsets(overflow, rect, preventedOffsets) {
5129
+ if (preventedOffsets === void 0) {
5130
+ preventedOffsets = {
5131
+ x: 0,
5132
+ y: 0
5133
+ };
5134
+ }
5135
+
5136
+ return {
5137
+ top: overflow.top - rect.height - preventedOffsets.y,
5138
+ right: overflow.right - rect.width + preventedOffsets.x,
5139
+ bottom: overflow.bottom - rect.height + preventedOffsets.y,
5140
+ left: overflow.left - rect.width - preventedOffsets.x
5141
+ };
5142
+ }
5143
+
5144
+ function isAnySideFullyClipped(overflow) {
5145
+ return [top, right, bottom, left].some(function (side) {
5146
+ return overflow[side] >= 0;
5147
+ });
5148
+ }
5149
+
5150
+ function hide(_ref) {
5151
+ var state = _ref.state,
5152
+ name = _ref.name;
5153
+ var referenceRect = state.rects.reference;
5154
+ var popperRect = state.rects.popper;
5155
+ var preventedOffsets = state.modifiersData.preventOverflow;
5156
+ var referenceOverflow = detectOverflow(state, {
5157
+ elementContext: 'reference'
5158
+ });
5159
+ var popperAltOverflow = detectOverflow(state, {
5160
+ altBoundary: true
5161
+ });
5162
+ var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
5163
+ var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
5164
+ var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
5165
+ var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
5166
+ state.modifiersData[name] = {
5167
+ referenceClippingOffsets: referenceClippingOffsets,
5168
+ popperEscapeOffsets: popperEscapeOffsets,
5169
+ isReferenceHidden: isReferenceHidden,
5170
+ hasPopperEscaped: hasPopperEscaped
5171
+ };
5172
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
5173
+ 'data-popper-reference-hidden': isReferenceHidden,
5174
+ 'data-popper-escaped': hasPopperEscaped
5175
+ });
5176
+ } // eslint-disable-next-line import/no-unused-modules
5177
+
5178
+
5179
+ var hide$1 = {
5180
+ name: 'hide',
5181
+ enabled: true,
5182
+ phase: 'main',
5183
+ requiresIfExists: ['preventOverflow'],
5184
+ fn: hide
5185
+ };
5186
+
5187
+ function distanceAndSkiddingToXY(placement, rects, offset) {
5188
+ var basePlacement = getBasePlacement(placement);
5189
+ var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
5190
+
5191
+ var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
5192
+ placement: placement
5193
+ })) : offset,
5194
+ skidding = _ref[0],
5195
+ distance = _ref[1];
5196
+
5197
+ skidding = skidding || 0;
5198
+ distance = (distance || 0) * invertDistance;
5199
+ return [left, right].indexOf(basePlacement) >= 0 ? {
5200
+ x: distance,
5201
+ y: skidding
5202
+ } : {
5203
+ x: skidding,
5204
+ y: distance
5205
+ };
5206
+ }
5207
+
5208
+ function offset(_ref2) {
5209
+ var state = _ref2.state,
5210
+ options = _ref2.options,
5211
+ name = _ref2.name;
5212
+ var _options$offset = options.offset,
5213
+ offset = _options$offset === void 0 ? [0, 0] : _options$offset;
5214
+ var data = placements.reduce(function (acc, placement) {
5215
+ acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
5216
+ return acc;
5217
+ }, {});
5218
+ var _data$state$placement = data[state.placement],
5219
+ x = _data$state$placement.x,
5220
+ y = _data$state$placement.y;
5221
+
5222
+ if (state.modifiersData.popperOffsets != null) {
5223
+ state.modifiersData.popperOffsets.x += x;
5224
+ state.modifiersData.popperOffsets.y += y;
5225
+ }
5226
+
5227
+ state.modifiersData[name] = data;
5228
+ } // eslint-disable-next-line import/no-unused-modules
5229
+
5230
+
5231
+ var offset$1 = {
5232
+ name: 'offset',
5233
+ enabled: true,
5234
+ phase: 'main',
5235
+ requires: ['popperOffsets'],
5236
+ fn: offset
5237
+ };
5238
+
5239
+ function popperOffsets(_ref) {
5240
+ var state = _ref.state,
5241
+ name = _ref.name; // Offsets are the actual position the popper needs to have to be
5242
+ // properly positioned near its reference element
5243
+ // This is the most basic placement, and will be adjusted by
5244
+ // the modifiers in the next step
5245
+
5246
+ state.modifiersData[name] = computeOffsets({
5247
+ reference: state.rects.reference,
5248
+ element: state.rects.popper,
5249
+ strategy: 'absolute',
5250
+ placement: state.placement
5251
+ });
5252
+ } // eslint-disable-next-line import/no-unused-modules
5253
+
5254
+
5255
+ var popperOffsets$1 = {
5256
+ name: 'popperOffsets',
5257
+ enabled: true,
5258
+ phase: 'read',
5259
+ fn: popperOffsets,
5260
+ data: {}
5261
+ };
5262
+
5263
+ function getAltAxis(axis) {
5264
+ return axis === 'x' ? 'y' : 'x';
5265
+ }
5266
+
5267
+ function preventOverflow(_ref) {
5268
+ var state = _ref.state,
5269
+ options = _ref.options,
5270
+ name = _ref.name;
5271
+ var _options$mainAxis = options.mainAxis,
5272
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
5273
+ _options$altAxis = options.altAxis,
5274
+ checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
5275
+ boundary = options.boundary,
5276
+ rootBoundary = options.rootBoundary,
5277
+ altBoundary = options.altBoundary,
5278
+ padding = options.padding,
5279
+ _options$tether = options.tether,
5280
+ tether = _options$tether === void 0 ? true : _options$tether,
5281
+ _options$tetherOffset = options.tetherOffset,
5282
+ tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
5283
+ var overflow = detectOverflow(state, {
5284
+ boundary: boundary,
5285
+ rootBoundary: rootBoundary,
5286
+ padding: padding,
5287
+ altBoundary: altBoundary
5288
+ });
5289
+ var basePlacement = getBasePlacement(state.placement);
5290
+ var variation = getVariation(state.placement);
5291
+ var isBasePlacement = !variation;
5292
+ var mainAxis = getMainAxisFromPlacement(basePlacement);
5293
+ var altAxis = getAltAxis(mainAxis);
5294
+ var popperOffsets = state.modifiersData.popperOffsets;
5295
+ var referenceRect = state.rects.reference;
5296
+ var popperRect = state.rects.popper;
5297
+ var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
5298
+ placement: state.placement
5299
+ })) : tetherOffset;
5300
+ var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
5301
+ mainAxis: tetherOffsetValue,
5302
+ altAxis: tetherOffsetValue
5303
+ } : Object.assign({
5304
+ mainAxis: 0,
5305
+ altAxis: 0
5306
+ }, tetherOffsetValue);
5307
+ var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
5308
+ var data = {
5309
+ x: 0,
5310
+ y: 0
5311
+ };
5312
+
5313
+ if (!popperOffsets) {
5314
+ return;
5315
+ }
5316
+
5317
+ if (checkMainAxis) {
5318
+ var _offsetModifierState$;
5319
+
5320
+ var mainSide = mainAxis === 'y' ? top : left;
5321
+ var altSide = mainAxis === 'y' ? bottom : right;
5322
+ var len = mainAxis === 'y' ? 'height' : 'width';
5323
+ var offset = popperOffsets[mainAxis];
5324
+ var min$1 = offset + overflow[mainSide];
5325
+ var max$1 = offset - overflow[altSide];
5326
+ var additive = tether ? -popperRect[len] / 2 : 0;
5327
+ var minLen = variation === start ? referenceRect[len] : popperRect[len];
5328
+ var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
5329
+ // outside the reference bounds
5330
+
5331
+ var arrowElement = state.elements.arrow;
5332
+ var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
5333
+ width: 0,
5334
+ height: 0
5335
+ };
5336
+ var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
5337
+ var arrowPaddingMin = arrowPaddingObject[mainSide];
5338
+ var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
5339
+ // to include its full size in the calculation. If the reference is small
5340
+ // and near the edge of a boundary, the popper can overflow even if the
5341
+ // reference is not overflowing as well (e.g. virtual elements with no
5342
+ // width or height)
5343
+
5344
+ var arrowLen = within(0, referenceRect[len], arrowRect[len]);
5345
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
5346
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
5347
+ var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
5348
+ var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
5349
+ var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
5350
+ var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
5351
+ var tetherMax = offset + maxOffset - offsetModifierValue;
5352
+ var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
5353
+ popperOffsets[mainAxis] = preventedOffset;
5354
+ data[mainAxis] = preventedOffset - offset;
5355
+ }
5356
+
5357
+ if (checkAltAxis) {
5358
+ var _offsetModifierState$2;
5359
+
5360
+ var _mainSide = mainAxis === 'x' ? top : left;
5361
+
5362
+ var _altSide = mainAxis === 'x' ? bottom : right;
5363
+
5364
+ var _offset = popperOffsets[altAxis];
5365
+
5366
+ var _len = altAxis === 'y' ? 'height' : 'width';
5367
+
5368
+ var _min = _offset + overflow[_mainSide];
5369
+
5370
+ var _max = _offset - overflow[_altSide];
5371
+
5372
+ var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
5373
+
5374
+ var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
5375
+
5376
+ var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
5377
+
5378
+ var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
5379
+
5380
+ var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
5381
+
5382
+ popperOffsets[altAxis] = _preventedOffset;
5383
+ data[altAxis] = _preventedOffset - _offset;
5384
+ }
5385
+
5386
+ state.modifiersData[name] = data;
5387
+ } // eslint-disable-next-line import/no-unused-modules
5388
+
5389
+
5390
+ var preventOverflow$1 = {
5391
+ name: 'preventOverflow',
5392
+ enabled: true,
5393
+ phase: 'main',
5394
+ fn: preventOverflow,
5395
+ requiresIfExists: ['offset']
5396
+ };
5397
+
5398
+ function getHTMLElementScroll(element) {
5399
+ return {
5400
+ scrollLeft: element.scrollLeft,
5401
+ scrollTop: element.scrollTop
5402
+ };
5403
+ }
5404
+
5405
+ function getNodeScroll(node) {
5406
+ if (node === getWindow(node) || !isHTMLElement(node)) {
5407
+ return getWindowScroll(node);
5408
+ } else {
5409
+ return getHTMLElementScroll(node);
5410
+ }
5411
+ }
5412
+
5413
+ function isElementScaled(element) {
5414
+ var rect = element.getBoundingClientRect();
5415
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
5416
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
5417
+ return scaleX !== 1 || scaleY !== 1;
5418
+ } // Returns the composite rect of an element relative to its offsetParent.
5419
+ // Composite means it takes into account transforms as well as layout.
5420
+
5421
+
5422
+ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
5423
+ if (isFixed === void 0) {
5424
+ isFixed = false;
5425
+ }
5426
+
5427
+ var isOffsetParentAnElement = isHTMLElement(offsetParent);
5428
+ var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
5429
+ var documentElement = getDocumentElement(offsetParent);
5430
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
5431
+ var scroll = {
5432
+ scrollLeft: 0,
5433
+ scrollTop: 0
5434
+ };
5435
+ var offsets = {
5436
+ x: 0,
5437
+ y: 0
5438
+ };
5439
+
5440
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
5441
+ if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
5442
+ isScrollParent(documentElement)) {
5443
+ scroll = getNodeScroll(offsetParent);
5444
+ }
5445
+
5446
+ if (isHTMLElement(offsetParent)) {
5447
+ offsets = getBoundingClientRect(offsetParent, true);
5448
+ offsets.x += offsetParent.clientLeft;
5449
+ offsets.y += offsetParent.clientTop;
5450
+ } else if (documentElement) {
5451
+ offsets.x = getWindowScrollBarX(documentElement);
5452
+ }
5453
+ }
5454
+
5455
+ return {
5456
+ x: rect.left + scroll.scrollLeft - offsets.x,
5457
+ y: rect.top + scroll.scrollTop - offsets.y,
5458
+ width: rect.width,
5459
+ height: rect.height
5460
+ };
5461
+ }
5462
+
5463
+ function order(modifiers) {
5464
+ var map = new Map();
5465
+ var visited = new Set();
5466
+ var result = [];
5467
+ modifiers.forEach(function (modifier) {
5468
+ map.set(modifier.name, modifier);
5469
+ }); // On visiting object, check for its dependencies and visit them recursively
5470
+
5471
+ function sort(modifier) {
5472
+ visited.add(modifier.name);
5473
+ var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
5474
+ requires.forEach(function (dep) {
5475
+ if (!visited.has(dep)) {
5476
+ var depModifier = map.get(dep);
5477
+
5478
+ if (depModifier) {
5479
+ sort(depModifier);
5480
+ }
5481
+ }
5482
+ });
5483
+ result.push(modifier);
5484
+ }
5485
+
5486
+ modifiers.forEach(function (modifier) {
5487
+ if (!visited.has(modifier.name)) {
5488
+ // check for visited object
5489
+ sort(modifier);
5490
+ }
5491
+ });
5492
+ return result;
5493
+ }
5494
+
5495
+ function orderModifiers(modifiers) {
5496
+ // order based on dependencies
5497
+ var orderedModifiers = order(modifiers); // order based on phase
5498
+
5499
+ return modifierPhases.reduce(function (acc, phase) {
5500
+ return acc.concat(orderedModifiers.filter(function (modifier) {
5501
+ return modifier.phase === phase;
5502
+ }));
5503
+ }, []);
5504
+ }
5505
+
5506
+ function debounce$2(fn) {
5507
+ var pending;
5508
+ return function () {
5509
+ if (!pending) {
5510
+ pending = new Promise(function (resolve) {
5511
+ Promise.resolve().then(function () {
5512
+ pending = undefined;
5513
+ resolve(fn());
5514
+ });
5515
+ });
5516
+ }
5517
+
5518
+ return pending;
5519
+ };
5520
+ }
5521
+
5522
+ function format(str) {
5523
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5524
+ args[_key - 1] = arguments[_key];
5525
+ }
5526
+
5527
+ return [].concat(args).reduce(function (p, c) {
5528
+ return p.replace(/%s/, c);
5529
+ }, str);
5530
+ }
5531
+
5532
+ var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
5533
+ var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
5534
+ var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
5535
+ function validateModifiers(modifiers) {
5536
+ modifiers.forEach(function (modifier) {
5537
+ [].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
5538
+ .filter(function (value, index, self) {
5539
+ return self.indexOf(value) === index;
5540
+ }).forEach(function (key) {
5541
+ switch (key) {
5542
+ case 'name':
5543
+ if (typeof modifier.name !== 'string') {
5544
+ console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
5545
+ }
5546
+
5547
+ break;
5548
+
5549
+ case 'enabled':
5550
+ if (typeof modifier.enabled !== 'boolean') {
5551
+ console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
5552
+ }
5553
+
5554
+ break;
5555
+
5556
+ case 'phase':
5557
+ if (modifierPhases.indexOf(modifier.phase) < 0) {
5558
+ console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
5559
+ }
5560
+
5561
+ break;
5562
+
5563
+ case 'fn':
5564
+ if (typeof modifier.fn !== 'function') {
5565
+ console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
5566
+ }
5567
+
5568
+ break;
5569
+
5570
+ case 'effect':
5571
+ if (modifier.effect != null && typeof modifier.effect !== 'function') {
5572
+ console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
5573
+ }
5415
5574
 
5416
- var altVariationSide = getOppositePlacement(mainVariationSide);
5417
- var checks = [];
5575
+ break;
5418
5576
 
5419
- if (checkMainAxis) {
5420
- checks.push(overflow[_basePlacement] <= 0);
5421
- }
5577
+ case 'requires':
5578
+ if (modifier.requires != null && !Array.isArray(modifier.requires)) {
5579
+ console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
5580
+ }
5422
5581
 
5423
- if (checkAltAxis) {
5424
- checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
5425
- }
5582
+ break;
5426
5583
 
5427
- if (checks.every(function (check) {
5428
- return check;
5429
- })) {
5430
- firstFittingPlacement = placement;
5431
- makeFallbackChecks = false;
5432
- break;
5433
- }
5584
+ case 'requiresIfExists':
5585
+ if (!Array.isArray(modifier.requiresIfExists)) {
5586
+ console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
5587
+ }
5434
5588
 
5435
- checksMap.set(placement, checks);
5436
- }
5589
+ break;
5437
5590
 
5438
- if (makeFallbackChecks) {
5439
- // `2` may be desired in some cases – research later
5440
- var numberOfChecks = flipVariations ? 3 : 1;
5591
+ case 'options':
5592
+ case 'data':
5593
+ break;
5441
5594
 
5442
- var _loop = function _loop(_i) {
5443
- var fittingPlacement = placements.find(function (placement) {
5444
- var checks = checksMap.get(placement);
5595
+ default:
5596
+ console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
5597
+ return "\"" + s + "\"";
5598
+ }).join(', ') + "; but \"" + key + "\" was provided.");
5599
+ }
5445
5600
 
5446
- if (checks) {
5447
- return checks.slice(0, _i).every(function (check) {
5448
- return check;
5449
- });
5601
+ modifier.requires && modifier.requires.forEach(function (requirement) {
5602
+ if (modifiers.find(function (mod) {
5603
+ return mod.name === requirement;
5604
+ }) == null) {
5605
+ console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
5450
5606
  }
5451
5607
  });
5608
+ });
5609
+ });
5610
+ }
5452
5611
 
5453
- if (fittingPlacement) {
5454
- firstFittingPlacement = fittingPlacement;
5455
- return "break";
5456
- }
5457
- };
5458
-
5459
- for (var _i = numberOfChecks; _i > 0; _i--) {
5460
- var _ret = _loop(_i);
5612
+ function uniqueBy(arr, fn) {
5613
+ var identifiers = new Set();
5614
+ return arr.filter(function (item) {
5615
+ var identifier = fn(item);
5461
5616
 
5462
- if (_ret === "break") break;
5617
+ if (!identifiers.has(identifier)) {
5618
+ identifiers.add(identifier);
5619
+ return true;
5463
5620
  }
5464
- }
5621
+ });
5622
+ }
5465
5623
 
5466
- if (state.placement !== firstFittingPlacement) {
5467
- state.modifiersData[name]._skip = true;
5468
- state.placement = firstFittingPlacement;
5469
- state.reset = true;
5470
- }
5471
- } // eslint-disable-next-line import/no-unused-modules
5624
+ function mergeByName(modifiers) {
5625
+ var merged = modifiers.reduce(function (merged, current) {
5626
+ var existing = merged[current.name];
5627
+ merged[current.name] = existing ? Object.assign({}, existing, current, {
5628
+ options: Object.assign({}, existing.options, current.options),
5629
+ data: Object.assign({}, existing.data, current.data)
5630
+ }) : current;
5631
+ return merged;
5632
+ }, {}); // IE11 does not support Object.values
5472
5633
 
5634
+ return Object.keys(merged).map(function (key) {
5635
+ return merged[key];
5636
+ });
5637
+ }
5473
5638
 
5474
- var flip$1 = {
5475
- name: 'flip',
5476
- enabled: true,
5477
- phase: 'main',
5478
- fn: flip,
5479
- requiresIfExists: ['offset'],
5480
- data: {
5481
- _skip: false
5482
- }
5639
+ var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
5640
+ var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
5641
+ var DEFAULT_OPTIONS = {
5642
+ placement: 'bottom',
5643
+ modifiers: [],
5644
+ strategy: 'absolute'
5483
5645
  };
5484
5646
 
5485
- function getAltAxis(axis) {
5486
- return axis === 'x' ? 'y' : 'x';
5487
- }
5488
-
5489
- function within(min, value, max) {
5490
- return Math.max(min, Math.min(value, max));
5491
- }
5647
+ function areValidElements() {
5648
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5649
+ args[_key] = arguments[_key];
5650
+ }
5492
5651
 
5493
- function preventOverflow(_ref) {
5494
- var state = _ref.state,
5495
- options = _ref.options,
5496
- name = _ref.name;
5497
- var _options$mainAxis = options.mainAxis,
5498
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
5499
- _options$altAxis = options.altAxis,
5500
- checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
5501
- boundary = options.boundary,
5502
- rootBoundary = options.rootBoundary,
5503
- altBoundary = options.altBoundary,
5504
- padding = options.padding,
5505
- _options$tether = options.tether,
5506
- tether = _options$tether === void 0 ? true : _options$tether,
5507
- _options$tetherOffset = options.tetherOffset,
5508
- tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
5509
- var overflow = detectOverflow(state, {
5510
- boundary: boundary,
5511
- rootBoundary: rootBoundary,
5512
- padding: padding,
5513
- altBoundary: altBoundary
5652
+ return !args.some(function (element) {
5653
+ return !(element && typeof element.getBoundingClientRect === 'function');
5514
5654
  });
5515
- var basePlacement = getBasePlacement(state.placement);
5516
- var variation = getVariation(state.placement);
5517
- var isBasePlacement = !variation;
5518
- var mainAxis = getMainAxisFromPlacement(basePlacement);
5519
- var altAxis = getAltAxis(mainAxis);
5520
- var popperOffsets = state.modifiersData.popperOffsets;
5521
- var referenceRect = state.rects.reference;
5522
- var popperRect = state.rects.popper;
5523
- var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
5524
- placement: state.placement
5525
- })) : tetherOffset;
5526
- var data = {
5527
- x: 0,
5528
- y: 0
5529
- };
5655
+ }
5530
5656
 
5531
- if (!popperOffsets) {
5532
- return;
5657
+ function popperGenerator(generatorOptions) {
5658
+ if (generatorOptions === void 0) {
5659
+ generatorOptions = {};
5533
5660
  }
5534
5661
 
5535
- if (checkMainAxis) {
5536
- var mainSide = mainAxis === 'y' ? top : left;
5537
- var altSide = mainAxis === 'y' ? bottom : right;
5538
- var len = mainAxis === 'y' ? 'height' : 'width';
5539
- var offset = popperOffsets[mainAxis];
5540
- var min = popperOffsets[mainAxis] + overflow[mainSide];
5541
- var max = popperOffsets[mainAxis] - overflow[altSide];
5542
- var additive = tether ? -popperRect[len] / 2 : 0;
5543
- var minLen = variation === start ? referenceRect[len] : popperRect[len];
5544
- var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
5545
- // outside the reference bounds
5662
+ var _generatorOptions = generatorOptions,
5663
+ _generatorOptions$def = _generatorOptions.defaultModifiers,
5664
+ defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
5665
+ _generatorOptions$def2 = _generatorOptions.defaultOptions,
5666
+ defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
5667
+ return function createPopper(reference, popper, options) {
5668
+ if (options === void 0) {
5669
+ options = defaultOptions;
5670
+ }
5546
5671
 
5547
- var arrowElement = state.elements.arrow;
5548
- var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
5549
- width: 0,
5550
- height: 0
5672
+ var state = {
5673
+ placement: 'bottom',
5674
+ orderedModifiers: [],
5675
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
5676
+ modifiersData: {},
5677
+ elements: {
5678
+ reference: reference,
5679
+ popper: popper
5680
+ },
5681
+ attributes: {},
5682
+ styles: {}
5551
5683
  };
5552
- var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
5553
- var arrowPaddingMin = arrowPaddingObject[mainSide];
5554
- var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
5555
- // to include its full size in the calculation. If the reference is small
5556
- // and near the edge of a boundary, the popper can overflow even if the
5557
- // reference is not overflowing as well (e.g. virtual elements with no
5558
- // width or height)
5684
+ var effectCleanupFns = [];
5685
+ var isDestroyed = false;
5686
+ var instance = {
5687
+ state: state,
5688
+ setOptions: function setOptions(setOptionsAction) {
5689
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
5690
+ cleanupModifierEffects();
5691
+ state.options = Object.assign({}, defaultOptions, state.options, options);
5692
+ state.scrollParents = {
5693
+ reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
5694
+ popper: listScrollParents(popper)
5695
+ }; // Orders the modifiers based on their dependencies and `phase`
5696
+ // properties
5559
5697
 
5560
- var arrowLen = within(0, referenceRect[len], arrowRect[len]);
5561
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
5562
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
5563
- var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
5564
- var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
5565
- var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
5566
- var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
5567
- var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
5568
- var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
5569
- popperOffsets[mainAxis] = preventedOffset;
5570
- data[mainAxis] = preventedOffset - offset;
5571
- }
5698
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
5572
5699
 
5573
- if (checkAltAxis) {
5574
- var _mainSide = mainAxis === 'x' ? top : left;
5700
+ state.orderedModifiers = orderedModifiers.filter(function (m) {
5701
+ return m.enabled;
5702
+ }); // Validate the provided modifiers so that the consumer will get warned
5703
+ // if one of the modifiers is invalid for any reason
5575
5704
 
5576
- var _altSide = mainAxis === 'x' ? bottom : right;
5705
+ {
5706
+ var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
5707
+ var name = _ref.name;
5708
+ return name;
5709
+ });
5710
+ validateModifiers(modifiers);
5577
5711
 
5578
- var _offset = popperOffsets[altAxis];
5712
+ if (getBasePlacement(state.options.placement) === auto) {
5713
+ var flipModifier = state.orderedModifiers.find(function (_ref2) {
5714
+ var name = _ref2.name;
5715
+ return name === 'flip';
5716
+ });
5579
5717
 
5580
- var _min = _offset + overflow[_mainSide];
5718
+ if (!flipModifier) {
5719
+ console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
5720
+ }
5721
+ }
5581
5722
 
5582
- var _max = _offset - overflow[_altSide];
5723
+ var _getComputedStyle = getComputedStyle$1(popper),
5724
+ marginTop = _getComputedStyle.marginTop,
5725
+ marginRight = _getComputedStyle.marginRight,
5726
+ marginBottom = _getComputedStyle.marginBottom,
5727
+ marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
5728
+ // cause bugs with positioning, so we'll warn the consumer
5583
5729
 
5584
- var _preventedOffset = within(_min, _offset, _max);
5585
5730
 
5586
- popperOffsets[altAxis] = _preventedOffset;
5587
- data[altAxis] = _preventedOffset - _offset;
5588
- }
5731
+ if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
5732
+ return parseFloat(margin);
5733
+ })) {
5734
+ console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
5735
+ }
5736
+ }
5589
5737
 
5590
- state.modifiersData[name] = data;
5591
- } // eslint-disable-next-line import/no-unused-modules
5738
+ runModifierEffects();
5739
+ return instance.update();
5740
+ },
5741
+ // Sync update – it will always be executed, even if not necessary. This
5742
+ // is useful for low frequency updates where sync behavior simplifies the
5743
+ // logic.
5744
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
5745
+ // prefer the async Popper#update method
5746
+ forceUpdate: function forceUpdate() {
5747
+ if (isDestroyed) {
5748
+ return;
5749
+ }
5592
5750
 
5751
+ var _state$elements = state.elements,
5752
+ reference = _state$elements.reference,
5753
+ popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
5754
+ // anymore
5593
5755
 
5594
- var preventOverflow$1 = {
5595
- name: 'preventOverflow',
5596
- enabled: true,
5597
- phase: 'main',
5598
- fn: preventOverflow,
5599
- requiresIfExists: ['offset']
5600
- };
5756
+ if (!areValidElements(reference, popper)) {
5757
+ {
5758
+ console.error(INVALID_ELEMENT_ERROR);
5759
+ }
5601
5760
 
5602
- function arrow(_ref) {
5603
- var _state$modifiersData$;
5761
+ return;
5762
+ } // Store the reference and popper rects to be read by modifiers
5604
5763
 
5605
- var state = _ref.state,
5606
- name = _ref.name;
5607
- var arrowElement = state.elements.arrow;
5608
- var popperOffsets = state.modifiersData.popperOffsets;
5609
- var basePlacement = getBasePlacement(state.placement);
5610
- var axis = getMainAxisFromPlacement(basePlacement);
5611
- var isVertical = [left, right].indexOf(basePlacement) >= 0;
5612
- var len = isVertical ? 'height' : 'width';
5613
5764
 
5614
- if (!arrowElement || !popperOffsets) {
5615
- return;
5616
- }
5765
+ state.rects = {
5766
+ reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
5767
+ popper: getLayoutRect(popper)
5768
+ }; // Modifiers have the ability to reset the current update cycle. The
5769
+ // most common use case for this is the `flip` modifier changing the
5770
+ // placement, which then needs to re-run all the modifiers, because the
5771
+ // logic was previously ran for the previous placement and is therefore
5772
+ // stale/incorrect
5617
5773
 
5618
- var paddingObject = state.modifiersData[name + "#persistent"].padding;
5619
- var arrowRect = getLayoutRect(arrowElement);
5620
- var minProp = axis === 'y' ? top : left;
5621
- var maxProp = axis === 'y' ? bottom : right;
5622
- var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
5623
- var startDiff = popperOffsets[axis] - state.rects.reference[axis];
5624
- var arrowOffsetParent = getOffsetParent(arrowElement);
5625
- var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
5626
- var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
5627
- // outside of the popper bounds
5774
+ state.reset = false;
5775
+ state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
5776
+ // is filled with the initial data specified by the modifier. This means
5777
+ // it doesn't persist and is fresh on each update.
5778
+ // To ensure persistent data, use `${name}#persistent`
5628
5779
 
5629
- var min = paddingObject[minProp];
5630
- var max = clientSize - arrowRect[len] - paddingObject[maxProp];
5631
- var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
5632
- var offset = within(min, center, max); // Prevents breaking syntax highlighting...
5780
+ state.orderedModifiers.forEach(function (modifier) {
5781
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
5782
+ });
5783
+ var __debug_loops__ = 0;
5633
5784
 
5634
- var axisProp = axis;
5635
- state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
5636
- }
5785
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
5786
+ {
5787
+ __debug_loops__ += 1;
5637
5788
 
5638
- function effect(_ref2) {
5639
- var state = _ref2.state,
5640
- options = _ref2.options,
5641
- name = _ref2.name;
5642
- var _options$element = options.element,
5643
- arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
5644
- _options$padding = options.padding,
5645
- padding = _options$padding === void 0 ? 0 : _options$padding;
5789
+ if (__debug_loops__ > 100) {
5790
+ console.error(INFINITE_LOOP_ERROR);
5791
+ break;
5792
+ }
5793
+ }
5646
5794
 
5647
- if (arrowElement == null) {
5648
- return;
5649
- } // CSS selector
5795
+ if (state.reset === true) {
5796
+ state.reset = false;
5797
+ index = -1;
5798
+ continue;
5799
+ }
5650
5800
 
5801
+ var _state$orderedModifie = state.orderedModifiers[index],
5802
+ fn = _state$orderedModifie.fn,
5803
+ _state$orderedModifie2 = _state$orderedModifie.options,
5804
+ _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
5805
+ name = _state$orderedModifie.name;
5651
5806
 
5652
- if (typeof arrowElement === 'string') {
5653
- arrowElement = state.elements.popper.querySelector(arrowElement);
5807
+ if (typeof fn === 'function') {
5808
+ state = fn({
5809
+ state: state,
5810
+ options: _options,
5811
+ name: name,
5812
+ instance: instance
5813
+ }) || state;
5814
+ }
5815
+ }
5816
+ },
5817
+ // Async and optimistically optimized update – it will not be executed if
5818
+ // not necessary (debounced to run at most once-per-tick)
5819
+ update: debounce$2(function () {
5820
+ return new Promise(function (resolve) {
5821
+ instance.forceUpdate();
5822
+ resolve(state);
5823
+ });
5824
+ }),
5825
+ destroy: function destroy() {
5826
+ cleanupModifierEffects();
5827
+ isDestroyed = true;
5828
+ }
5829
+ };
5654
5830
 
5655
- if (!arrowElement) {
5656
- return;
5657
- }
5658
- }
5831
+ if (!areValidElements(reference, popper)) {
5832
+ {
5833
+ console.error(INVALID_ELEMENT_ERROR);
5834
+ }
5659
5835
 
5660
- {
5661
- if (!isHTMLElement(arrowElement)) {
5662
- console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
5836
+ return instance;
5663
5837
  }
5664
- }
5665
5838
 
5666
- if (!contains(state.elements.popper, arrowElement)) {
5667
- {
5668
- console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
5669
- }
5839
+ instance.setOptions(options).then(function (state) {
5840
+ if (!isDestroyed && options.onFirstUpdate) {
5841
+ options.onFirstUpdate(state);
5842
+ }
5843
+ }); // Modifiers have the ability to execute arbitrary code before the first
5844
+ // update cycle runs. They will be executed in the same order as the update
5845
+ // cycle. This is useful when a modifier adds some persistent data that
5846
+ // other modifiers need to use, but the modifier is run after the dependent
5847
+ // one.
5670
5848
 
5671
- return;
5672
- }
5849
+ function runModifierEffects() {
5850
+ state.orderedModifiers.forEach(function (_ref3) {
5851
+ var name = _ref3.name,
5852
+ _ref3$options = _ref3.options,
5853
+ options = _ref3$options === void 0 ? {} : _ref3$options,
5854
+ effect = _ref3.effect;
5673
5855
 
5674
- state.elements.arrow = arrowElement;
5675
- state.modifiersData[name + "#persistent"] = {
5676
- padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
5677
- };
5678
- } // eslint-disable-next-line import/no-unused-modules
5856
+ if (typeof effect === 'function') {
5857
+ var cleanupFn = effect({
5858
+ state: state,
5859
+ name: name,
5860
+ instance: instance,
5861
+ options: options
5862
+ });
5679
5863
 
5864
+ var noopFn = function noopFn() {};
5680
5865
 
5681
- var arrow$1 = {
5682
- name: 'arrow',
5683
- enabled: true,
5684
- phase: 'main',
5685
- fn: arrow,
5686
- effect: effect,
5687
- requires: ['popperOffsets'],
5688
- requiresIfExists: ['preventOverflow']
5689
- };
5866
+ effectCleanupFns.push(cleanupFn || noopFn);
5867
+ }
5868
+ });
5869
+ }
5690
5870
 
5691
- function getSideOffsets(overflow, rect, preventedOffsets) {
5692
- if (preventedOffsets === void 0) {
5693
- preventedOffsets = {
5694
- x: 0,
5695
- y: 0
5696
- };
5697
- }
5871
+ function cleanupModifierEffects() {
5872
+ effectCleanupFns.forEach(function (fn) {
5873
+ return fn();
5874
+ });
5875
+ effectCleanupFns = [];
5876
+ }
5698
5877
 
5699
- return {
5700
- top: overflow.top - rect.height - preventedOffsets.y,
5701
- right: overflow.right - rect.width + preventedOffsets.x,
5702
- bottom: overflow.bottom - rect.height + preventedOffsets.y,
5703
- left: overflow.left - rect.width - preventedOffsets.x
5878
+ return instance;
5704
5879
  };
5705
5880
  }
5706
5881
 
5707
- function isAnySideFullyClipped(overflow) {
5708
- return [top, right, bottom, left].some(function (side) {
5709
- return overflow[side] >= 0;
5710
- });
5711
- }
5712
-
5713
- function hide(_ref) {
5714
- var state = _ref.state,
5715
- name = _ref.name;
5716
- var referenceRect = state.rects.reference;
5717
- var popperRect = state.rects.popper;
5718
- var preventedOffsets = state.modifiersData.preventOverflow;
5719
- var referenceOverflow = detectOverflow(state, {
5720
- elementContext: 'reference'
5721
- });
5722
- var popperAltOverflow = detectOverflow(state, {
5723
- altBoundary: true
5724
- });
5725
- var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
5726
- var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
5727
- var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
5728
- var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
5729
- state.modifiersData[name] = {
5730
- referenceClippingOffsets: referenceClippingOffsets,
5731
- popperEscapeOffsets: popperEscapeOffsets,
5732
- isReferenceHidden: isReferenceHidden,
5733
- hasPopperEscaped: hasPopperEscaped
5734
- };
5735
- state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
5736
- 'data-popper-reference-hidden': isReferenceHidden,
5737
- 'data-popper-escaped': hasPopperEscaped
5738
- });
5739
- } // eslint-disable-next-line import/no-unused-modules
5740
-
5741
-
5742
- var hide$1 = {
5743
- name: 'hide',
5744
- enabled: true,
5745
- phase: 'main',
5746
- requiresIfExists: ['preventOverflow'],
5747
- fn: hide
5748
- };
5749
-
5750
5882
  var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
5751
5883
  var createPopper = /*#__PURE__*/popperGenerator({
5752
5884
  defaultModifiers: defaultModifiers
@@ -6038,7 +6170,9 @@
6038
6170
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
6039
6171
  var ref = _step.value;
6040
6172
 
6041
- if (typeof ref === "function") {
6173
+ if (instance && instance.currentElement && typeof ref === "function") {
6174
+ ref(instance.currentElement);
6175
+ } else if (typeof ref === "function") {
6042
6176
  ref(instance);
6043
6177
  } else if (ref) {
6044
6178
  ref.current = instance;
@@ -6052,14 +6186,6 @@
6052
6186
  };
6053
6187
  }
6054
6188
 
6055
- function usePrevious(state) {
6056
- var ref = React.useRef();
6057
- React.useEffect(function () {
6058
- ref.current = state;
6059
- });
6060
- return ref.current;
6061
- }
6062
-
6063
6189
  var Portal = function Portal(props) {
6064
6190
  var children = props.children,
6065
6191
  attach = props.attach;
@@ -6262,7 +6388,10 @@
6262
6388
  var scrollHeight = contentEle.scrollHeight;
6263
6389
  var minHeight = presetMaxHeight !== Infinity ? presetMaxHeight : scrollHeight;
6264
6390
  contentEle.style.maxHeight = "".concat(minHeight, "px");
6265
- contentEle.style.overflow = "";
6391
+
6392
+ if (presetMaxHeight !== Infinity) {
6393
+ contentEle.style.overflow = "";
6394
+ }
6266
6395
  }
6267
6396
  };
6268
6397
 
@@ -6350,8 +6479,6 @@
6350
6479
  visible = _useDefault2[0],
6351
6480
  setVisible = _useDefault2[1];
6352
6481
 
6353
- var preVisible = usePrevious(visible);
6354
-
6355
6482
  var _useState = React.useState(null),
6356
6483
  _useState2 = _slicedToArray(_useState, 2),
6357
6484
  triggerRef = _useState2[0],
@@ -6363,48 +6490,49 @@
6363
6490
  setOverlayRef = _useState4[1];
6364
6491
 
6365
6492
  var contentRef = React.useRef(null);
6493
+ var popupRef = React.useRef(null);
6494
+ var popperRef = React.useRef(null);
6495
+ var onPopperFirstUpdate = React.useCallback(function (state) {
6496
+ var referenceElmRect = popupRef.current.getBoundingClientRect();
6497
+ var referenceElmTop = referenceElmRect.top,
6498
+ referenceElmLeft = referenceElmRect.left,
6499
+ bottom = referenceElmRect.bottom,
6500
+ right = referenceElmRect.right;
6501
+ var referenceElmBottom = window.innerHeight - bottom;
6502
+ var referenceElmRight = window.innerWidth - right;
6503
+ var _contentRef$current = contentRef.current,
6504
+ contentScrollHeight = _contentRef$current.scrollHeight,
6505
+ contentOffsetWidth = _contentRef$current.offsetWidth;
6506
+ var newPlacement = state.options.placement;
6366
6507
 
6367
- var _useState5 = React.useState(false),
6368
- _useState6 = _slicedToArray(_useState5, 2),
6369
- firstUpdate = _useState6[0],
6370
- setFirstUpdate = _useState6[1];
6508
+ if (referenceElmBottom < contentScrollHeight && referenceElmTop >= contentScrollHeight) {
6509
+ newPlacement = state.options.placement.replace("bottom", "top");
6510
+ }
6371
6511
 
6372
- var onPopperFirstUpdate = React.useMemo(function () {
6373
- return function () {
6374
- setFirstUpdate(true);
6375
- };
6376
- }, []);
6377
- var popperOptions = React.useMemo(function () {
6378
- var _contentRef$current, _childElement$offsetH, _childElement$offsetW;
6512
+ if (referenceElmTop < contentScrollHeight && referenceElmBottom >= contentScrollHeight) {
6513
+ newPlacement = state.options.placement.replace("top", "bottom");
6514
+ }
6379
6515
 
6380
- if (!visible) return {
6381
- padding: 0
6382
- };
6383
- var childElement = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.firstElementChild;
6384
- var height = (_childElement$offsetH = childElement === null || childElement === void 0 ? void 0 : childElement.offsetHeight) !== null && _childElement$offsetH !== void 0 ? _childElement$offsetH : 0;
6385
- var width = (_childElement$offsetW = childElement === null || childElement === void 0 ? void 0 : childElement.offsetWidth) !== null && _childElement$offsetW !== void 0 ? _childElement$offsetW : 0;
6386
- return {
6387
- padding: {
6388
- top: height,
6389
- left: width,
6390
- right: width,
6391
- bottom: height
6392
- }
6393
- };
6394
- }, [visible, overlayRef]);
6516
+ if (referenceElmLeft < contentOffsetWidth && referenceElmRight >= contentOffsetWidth) {
6517
+ newPlacement = state.options.placement.replace("left", "right");
6518
+ }
6395
6519
 
6396
- var _usePopper = usePopper(triggerRef, overlayRef, {
6397
- placement: placementMap[placement],
6398
- onFirstUpdate: onPopperFirstUpdate,
6399
- modifiers: [{
6400
- name: "flip",
6401
- options: _objectSpread$1R({}, popperOptions)
6402
- }]
6403
- }),
6404
- styles = _usePopper.styles,
6405
- attributes = _usePopper.attributes,
6406
- update = _usePopper.update;
6520
+ if (referenceElmRight < contentOffsetWidth && referenceElmLeft >= contentOffsetWidth) {
6521
+ newPlacement = state.options.placement.replace("right", "left");
6522
+ }
6407
6523
 
6524
+ Object.assign(state.options, _objectSpread$1R(_objectSpread$1R({}, state.options), {}, {
6525
+ placement: newPlacement
6526
+ }));
6527
+ popperRef.current.update();
6528
+ }, []);
6529
+ popperRef.current = usePopper(triggerRef, overlayRef, {
6530
+ placement: placementMap[placement],
6531
+ onFirstUpdate: onPopperFirstUpdate
6532
+ });
6533
+ var _popperRef$current = popperRef.current,
6534
+ styles = _popperRef$current.styles,
6535
+ attributes = _popperRef$current.attributes;
6408
6536
  var defaultStyles = React.useMemo(function () {
6409
6537
  if (triggerRef && typeof overlayStyle === "function") return _objectSpread$1R(_objectSpread$1R({}, overlayStyle(triggerRef)), {}, {
6410
6538
  zIndex: zIndex
@@ -6447,22 +6575,6 @@
6447
6575
  classPrefix: classPrefix,
6448
6576
  expandAnimation: expandAnimation
6449
6577
  });
6450
- React.useEffect(function () {
6451
- if ((visible || firstUpdate) && update) {
6452
- update();
6453
- }
6454
- }, [visible, preVisible, update, children, firstUpdate]);
6455
-
6456
- var handlePopupWrapperMouseDown = function handlePopupWrapperMouseDown() {
6457
- var removeUpdate = function removeUpdate() {
6458
- return window.removeEventListener("mousemove", update);
6459
- };
6460
-
6461
- window.removeEventListener("mouseup", removeUpdate);
6462
- window.addEventListener("mousemove", update);
6463
- window.addEventListener("mouseup", removeUpdate);
6464
- };
6465
-
6466
6578
  var portal = visible || overlayRef ? /* @__PURE__ */React__default["default"].createElement(Portal, {
6467
6579
  attach: attach
6468
6580
  }, /* @__PURE__ */React__default["default"].createElement(CSSTransition$1, _objectSpread$1R({
@@ -6483,8 +6595,8 @@
6483
6595
  }) : null, content)))) : null;
6484
6596
  return /* @__PURE__ */React__default["default"].createElement("div", {
6485
6597
  className: classNames$1("".concat(classPrefix, "-popup__reference"), className),
6486
- onMouseDown: handlePopupWrapperMouseDown,
6487
- style: style
6598
+ style: style,
6599
+ ref: popupRef
6488
6600
  }, triggerNode, portal);
6489
6601
  });
6490
6602
  Popup$1.displayName = "Popup";
@@ -6683,13 +6795,13 @@
6683
6795
  }
6684
6796
  }
6685
6797
 
6686
- return /* @__PURE__ */React__default["default"].createElement("button", _objectSpread$1Q({
6798
+ return /* @__PURE__ */React__default["default"].createElement("button", _objectSpread$1Q(_objectSpread$1Q({}, buttonProps), {}, {
6687
6799
  ref: ref || btnRef,
6688
6800
  type: type,
6689
6801
  className: classNames$1(className, ["".concat(classPrefix, "-button"), "".concat(classPrefix, "-button--theme-").concat(renderTheme), "".concat(classPrefix, "-button--variant-").concat(variant)], (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-button--shape-").concat(shape), shape !== "rectangle"), _defineProperty$2(_classNames, "".concat(classPrefix, "-button--ghost"), ghost), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-loading"), loading), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-disabled"), disabled || loading), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-full-width"), block), _classNames)),
6690
6802
  onClick: !disabled && !loading ? onClick : void 0,
6691
6803
  disabled: disabled || loading
6692
- }, buttonProps), iconNode ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, iconNode, (hasChildren || hasContent) && /* @__PURE__ */React__default["default"].createElement("span", {
6804
+ }), iconNode ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, iconNode, (hasChildren || hasContent) && /* @__PURE__ */React__default["default"].createElement("span", {
6693
6805
  className: "".concat(classPrefix, "-button__text")
6694
6806
  }, childrenNode)) : /* @__PURE__ */React__default["default"].createElement("span", {
6695
6807
  className: "".concat(classPrefix, "-button__text")
@@ -6699,45 +6811,6 @@
6699
6811
 
6700
6812
  var Button = Button$1;
6701
6813
 
6702
- var baseGetTag$8 = _baseGetTag,
6703
- isObject$a = isObject_1;
6704
- /** `Object#toString` result references. */
6705
-
6706
- var asyncTag = '[object AsyncFunction]',
6707
- funcTag$2 = '[object Function]',
6708
- genTag$1 = '[object GeneratorFunction]',
6709
- proxyTag = '[object Proxy]';
6710
- /**
6711
- * Checks if `value` is classified as a `Function` object.
6712
- *
6713
- * @static
6714
- * @memberOf _
6715
- * @since 0.1.0
6716
- * @category Lang
6717
- * @param {*} value The value to check.
6718
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
6719
- * @example
6720
- *
6721
- * _.isFunction(_);
6722
- * // => true
6723
- *
6724
- * _.isFunction(/abc/);
6725
- * // => false
6726
- */
6727
-
6728
- function isFunction$3(value) {
6729
- if (!isObject$a(value)) {
6730
- return false;
6731
- } // The use of `Object#toString` avoids issues with the `typeof` operator
6732
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
6733
-
6734
-
6735
- var tag = baseGetTag$8(value);
6736
- return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
6737
- }
6738
-
6739
- var isFunction_1 = isFunction$3;
6740
-
6741
6814
  function _objectWithoutPropertiesLoose(source, excluded) {
6742
6815
  if (source == null) return {};
6743
6816
  var target = {};
@@ -8808,7 +8881,7 @@
8808
8881
  }, restProps);
8809
8882
  }
8810
8883
 
8811
- var _excluded$m = ["disabled", "status", "size", "className", "style", "prefixIcon", "suffixIcon", "clearable", "value", "onChange", "onClear", "onEnter", "onKeydown", "onCompositionStart", "onCompositionEnd", "autofocus", "readonly"];
8884
+ var _excluded$m = ["disabled", "status", "size", "className", "style", "prefixIcon", "suffixIcon", "clearable", "value", "tips", "onChange", "onClear", "onEnter", "onKeydown", "onFocus", "onBlur", "onPaste", "onCompositionStart", "onCompositionEnd", "autofocus", "readonly"];
8812
8885
 
8813
8886
  function ownKeys$1h(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; }
8814
8887
 
@@ -8841,10 +8914,14 @@
8841
8914
  suffixIcon = _useDefaultValue.suffixIcon,
8842
8915
  clearable = _useDefaultValue.clearable,
8843
8916
  value = _useDefaultValue.value,
8917
+ tips = _useDefaultValue.tips,
8844
8918
  onChange = _useDefaultValue.onChange,
8845
8919
  onClear = _useDefaultValue.onClear,
8846
8920
  onEnter = _useDefaultValue.onEnter,
8847
8921
  onKeydown = _useDefaultValue.onKeydown,
8922
+ onFocus = _useDefaultValue.onFocus,
8923
+ onBlur = _useDefaultValue.onBlur,
8924
+ onPaste = _useDefaultValue.onPaste,
8848
8925
  onCompositionStart = _useDefaultValue.onCompositionStart,
8849
8926
  onCompositionEnd = _useDefaultValue.onCompositionEnd,
8850
8927
  autofocus = _useDefaultValue.autofocus,
@@ -8855,6 +8932,8 @@
8855
8932
  classPrefix = _useConfig.classPrefix;
8856
8933
 
8857
8934
  var composingRef = React.useRef(false);
8935
+ var inputRef = React.useRef();
8936
+ var wrapperRef = React.useRef();
8858
8937
 
8859
8938
  var _useState = React.useState(false),
8860
8939
  _useState2 = _slicedToArray(_useState, 2),
@@ -8872,17 +8951,10 @@
8872
8951
  setComposingValue = _useState6[1];
8873
8952
 
8874
8953
  var isShowClearIcon = clearable && value && !disabled && isHover;
8875
- var componentType = "input";
8876
8954
  var prefixIconContent = renderIcon$1(classPrefix, "prefix", prefixIcon);
8877
8955
  var suffixIconNew = isShowClearIcon ? /* @__PURE__ */React__default["default"].createElement(CloseCircleFilledIcon, {
8878
8956
  className: "".concat(classPrefix, "-input__suffix-clear"),
8879
- onClick: handleClear,
8880
- onMouseUp: function onMouseUp(e) {
8881
- return e.preventDefault();
8882
- },
8883
- onMouseDown: function onMouseDown(e) {
8884
- return e.preventDefault();
8885
- }
8957
+ onClick: handleClear
8886
8958
  }) : suffixIcon;
8887
8959
  var suffixIconContent = renderIcon$1(classPrefix, "suffix", suffixIconNew);
8888
8960
  var inputPropsNames = Object.keys(restProps).filter(function (key) {
@@ -8890,7 +8962,9 @@
8890
8962
  });
8891
8963
  var inputProps = inputPropsNames.reduce(function (inputProps2, key) {
8892
8964
  return Object.assign(inputProps2, _defineProperty$2({}, key, props[key]));
8893
- }, {});
8965
+ }, {
8966
+ className: ""
8967
+ });
8894
8968
  var eventPropsNames = Object.keys(restProps).filter(function (key) {
8895
8969
  return /^on[A-Z]/.test(key);
8896
8970
  });
@@ -8902,19 +8976,35 @@
8902
8976
  }));
8903
8977
  return eventProps2;
8904
8978
  }, {});
8979
+ var wrapperProps = {
8980
+ style: style,
8981
+ ref: wrapperRef
8982
+ };
8905
8983
  var renderInput = /* @__PURE__ */React__default["default"].createElement("input", _objectSpread$1h(_objectSpread$1h(_objectSpread$1h({
8984
+ ref: inputRef
8985
+ }, inputProps), eventProps), {}, {
8986
+ className: classNames$1(inputProps.className, "".concat(classPrefix, "-input__inner")),
8987
+ value: composingRef.current ? composingRefValue : value,
8906
8988
  readOnly: readonly,
8907
8989
  disabled: disabled,
8908
- className: "".concat(classPrefix, "-").concat(componentType, "__inner")
8909
- }, inputProps), {}, {
8910
- value: composingRef.current ? composingRefValue : value
8911
- }, eventProps), {}, {
8912
8990
  autoFocus: autofocus,
8913
8991
  onChange: handleChange,
8914
8992
  onKeyDown: handleKeyDown,
8915
8993
  onCompositionStart: handleCompositionStart,
8916
- onCompositionEnd: handleCompositionEnd
8994
+ onCompositionEnd: handleCompositionEnd,
8995
+ onFocus: handleFocus,
8996
+ onBlur: handleBlur,
8997
+ onPaste: handlePaste
8917
8998
  }));
8999
+ var renderInputNode = /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1h(_objectSpread$1h({}, wrapperProps), {}, {
9000
+ className: classNames$1(tips ? "" : className, "".concat(classPrefix, "-input"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-is-readonly"), readonly), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-disabled"), disabled), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-focused"), isFocused), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-").concat(status), status), _defineProperty$2(_classNames, "".concat(classPrefix, "-input--prefix"), prefixIcon), _defineProperty$2(_classNames, "".concat(classPrefix, "-input--suffix"), suffixIconContent), _defineProperty$2(_classNames, "".concat(classPrefix, "-input--focused"), isFocused), _classNames)),
9001
+ onMouseEnter: function onMouseEnter() {
9002
+ return toggleIsHover(true);
9003
+ },
9004
+ onMouseLeave: function onMouseLeave() {
9005
+ return toggleIsHover(false);
9006
+ }
9007
+ }), prefixIconContent, renderInput, suffixIconContent);
8918
9008
 
8919
9009
  function handleChange(e) {
8920
9010
  var value2 = e.currentTarget.value;
@@ -8929,10 +9019,10 @@
8929
9019
  }
8930
9020
 
8931
9021
  function handleClear(e) {
8932
- isFunction_1(onChange) && onChange("", {
9022
+ onChange === null || onChange === void 0 ? void 0 : onChange("", {
8933
9023
  e: e
8934
9024
  });
8935
- isFunction_1(onClear) && onClear({
9025
+ onClear === null || onClear === void 0 ? void 0 : onClear({
8936
9026
  e: e
8937
9027
  });
8938
9028
  }
@@ -8940,46 +9030,92 @@
8940
9030
  function handleKeyDown(e) {
8941
9031
  var key = e.key,
8942
9032
  value2 = e.currentTarget.value;
8943
- isFunction_1(onEnter) && key === "Enter" && onEnter(value2, {
9033
+ key === "Enter" && (onEnter === null || onEnter === void 0 ? void 0 : onEnter(value2, {
8944
9034
  e: e
8945
- });
8946
- isFunction_1(onKeydown) && onKeydown(value2, {
9035
+ }));
9036
+ onKeydown === null || onKeydown === void 0 ? void 0 : onKeydown(value2, {
8947
9037
  e: e
8948
9038
  });
8949
9039
  }
8950
9040
 
8951
- function handleCompositionStart(event) {
9041
+ function handleCompositionStart(e) {
8952
9042
  composingRef.current = true;
8953
- isFunction_1(onCompositionStart) && onCompositionStart(event);
9043
+ var value2 = e.currentTarget.value;
9044
+ onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(value2, {
9045
+ e: e
9046
+ });
8954
9047
  }
8955
9048
 
8956
- function handleCompositionEnd(event) {
9049
+ function handleCompositionEnd(e) {
9050
+ var value2 = e.currentTarget.value;
9051
+
8957
9052
  if (composingRef.current) {
8958
9053
  composingRef.current = false;
8959
- handleChange(event);
9054
+ handleChange(e);
8960
9055
  }
8961
9056
 
8962
9057
  setComposingValue("");
8963
- isFunction_1(onCompositionEnd) && onCompositionEnd(event);
9058
+ onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(value2, {
9059
+ e: e
9060
+ });
8964
9061
  }
8965
9062
 
8966
- return /* @__PURE__ */React__default["default"].createElement("div", {
8967
- ref: ref,
8968
- style: style,
8969
- className: classNames$1("".concat(classPrefix, "-").concat(componentType), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-is-disabled"), disabled), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-focused"), isFocused), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-").concat(status), status), _defineProperty$2(_classNames, "".concat(classPrefix, "-").concat(componentType, "--prefix"), prefixIcon), _defineProperty$2(_classNames, "".concat(classPrefix, "-").concat(componentType, "--suffix"), suffixIconContent), _defineProperty$2(_classNames, "".concat(classPrefix, "-").concat(componentType, "--focused"), isFocused), _classNames), className),
8970
- onMouseEnter: function onMouseEnter() {
8971
- return toggleIsHover(true);
8972
- },
8973
- onMouseLeave: function onMouseLeave() {
8974
- return toggleIsHover(false);
8975
- },
8976
- onFocus: function onFocus() {
8977
- return toggleIsFocused(true);
8978
- },
8979
- onBlur: function onBlur() {
8980
- return toggleIsFocused(false);
8981
- }
8982
- }, prefixIconContent, renderInput, suffixIconContent);
9063
+ function handleFocus(e) {
9064
+ var value2 = e.currentTarget.value;
9065
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(value2, {
9066
+ e: e
9067
+ });
9068
+ toggleIsFocused(true);
9069
+ }
9070
+
9071
+ function handleBlur(e) {
9072
+ var value2 = e.currentTarget.value;
9073
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(value2, {
9074
+ e: e
9075
+ });
9076
+ toggleIsFocused(false);
9077
+ }
9078
+
9079
+ function handlePaste(e) {
9080
+ var clipData = e.clipboardData;
9081
+ var pasteValue = clipData === null || clipData === void 0 ? void 0 : clipData.getData("text/plain");
9082
+ onPaste === null || onPaste === void 0 ? void 0 : onPaste({
9083
+ e: e,
9084
+ pasteValue: pasteValue
9085
+ });
9086
+ }
9087
+
9088
+ React.useImperativeHandle(ref, function () {
9089
+ return {
9090
+ currentElement: wrapperRef.current,
9091
+ inputElement: inputRef.current,
9092
+ focus: function focus() {
9093
+ var _inputRef$current;
9094
+
9095
+ return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
9096
+ },
9097
+ blur: function blur() {
9098
+ var _inputRef$current2;
9099
+
9100
+ return (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
9101
+ },
9102
+ select: function select() {
9103
+ var _inputRef$current3;
9104
+
9105
+ return (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.select();
9106
+ }
9107
+ };
9108
+ });
9109
+
9110
+ if (tips) {
9111
+ return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1h(_objectSpread$1h({}, wrapperProps), {}, {
9112
+ className: classNames$1(className, "".concat(classPrefix, "-input__wrap"))
9113
+ }), renderInputNode, /* @__PURE__ */React__default["default"].createElement("div", {
9114
+ className: classNames$1("".concat(classPrefix, "-input__tips"), "".concat(classPrefix, "-input__tips--").concat(status || "normal"))
9115
+ }, tips));
9116
+ }
9117
+
9118
+ return renderInputNode;
8983
9119
  }, {
8984
9120
  Group: InputGroup
8985
9121
  });
@@ -9249,7 +9385,7 @@
9249
9385
 
9250
9386
  var _arrayMap = arrayMap$3;
9251
9387
 
9252
- var baseGetTag$7 = _baseGetTag,
9388
+ var baseGetTag$8 = _baseGetTag,
9253
9389
  isObjectLike$b = isObjectLike_1;
9254
9390
  /** `Object#toString` result references. */
9255
9391
 
@@ -9273,7 +9409,7 @@
9273
9409
  */
9274
9410
 
9275
9411
  function isSymbol$4(value) {
9276
- return _typeof(value) == 'symbol' || isObjectLike$b(value) && baseGetTag$7(value) == symbolTag$3;
9412
+ return _typeof(value) == 'symbol' || isObjectLike$b(value) && baseGetTag$8(value) == symbolTag$3;
9277
9413
  }
9278
9414
 
9279
9415
  var isSymbol_1 = isSymbol$4;
@@ -10356,7 +10492,7 @@
10356
10492
 
10357
10493
  var Radio = Radio$1;
10358
10494
 
10359
- var baseGetTag$6 = _baseGetTag,
10495
+ var baseGetTag$7 = _baseGetTag,
10360
10496
  isObjectLike$a = isObjectLike_1;
10361
10497
  /** `Object#toString` result references. */
10362
10498
 
@@ -10389,7 +10525,7 @@
10389
10525
  */
10390
10526
 
10391
10527
  function isNumber(value) {
10392
- return typeof value == 'number' || isObjectLike$a(value) && baseGetTag$6(value) == numberTag$4;
10528
+ return typeof value == 'number' || isObjectLike$a(value) && baseGetTag$7(value) == numberTag$4;
10393
10529
  }
10394
10530
 
10395
10531
  var isNumber_1 = isNumber;
@@ -11518,7 +11654,7 @@
11518
11654
  var _baseTrim = baseTrim$1;
11519
11655
 
11520
11656
  var baseTrim = _baseTrim,
11521
- isObject$9 = isObject_1,
11657
+ isObject$a = isObject_1,
11522
11658
  isSymbol$2 = isSymbol_1;
11523
11659
  /** Used as references for various `Number` constants. */
11524
11660
 
@@ -11568,9 +11704,9 @@
11568
11704
  return NAN;
11569
11705
  }
11570
11706
 
11571
- if (isObject$9(value)) {
11707
+ if (isObject$a(value)) {
11572
11708
  var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
11573
- value = isObject$9(other) ? other + '' : other;
11709
+ value = isObject$a(other) ? other + '' : other;
11574
11710
  }
11575
11711
 
11576
11712
  if (typeof value != 'string') {
@@ -11584,7 +11720,7 @@
11584
11720
 
11585
11721
  var toNumber_1 = toNumber$2;
11586
11722
 
11587
- var isObject$8 = isObject_1,
11723
+ var isObject$9 = isObject_1,
11588
11724
  now = now_1,
11589
11725
  toNumber$1 = toNumber_1;
11590
11726
  /** Error message constants. */
@@ -11667,7 +11803,7 @@
11667
11803
 
11668
11804
  wait = toNumber$1(wait) || 0;
11669
11805
 
11670
- if (isObject$8(options)) {
11806
+ if (isObject$9(options)) {
11671
11807
  leading = !!options.leading;
11672
11808
  maxing = 'maxWait' in options;
11673
11809
  maxWait = maxing ? nativeMax$4(toNumber$1(options.maxWait) || 0, wait) : maxWait;
@@ -11779,7 +11915,7 @@
11779
11915
  var debounce_1 = debounce$1;
11780
11916
 
11781
11917
  var debounce = debounce_1,
11782
- isObject$7 = isObject_1;
11918
+ isObject$8 = isObject_1;
11783
11919
  /** Error message constants. */
11784
11920
 
11785
11921
  var FUNC_ERROR_TEXT$1 = 'Expected a function';
@@ -11836,7 +11972,7 @@
11836
11972
  throw new TypeError(FUNC_ERROR_TEXT$1);
11837
11973
  }
11838
11974
 
11839
- if (isObject$7(options)) {
11975
+ if (isObject$8(options)) {
11840
11976
  leading = 'leading' in options ? !!options.leading : leading;
11841
11977
  trailing = 'trailing' in options ? !!options.trailing : trailing;
11842
11978
  }
@@ -11850,6 +11986,45 @@
11850
11986
 
11851
11987
  var throttle_1 = throttle;
11852
11988
 
11989
+ var baseGetTag$6 = _baseGetTag,
11990
+ isObject$7 = isObject_1;
11991
+ /** `Object#toString` result references. */
11992
+
11993
+ var asyncTag = '[object AsyncFunction]',
11994
+ funcTag$2 = '[object Function]',
11995
+ genTag$1 = '[object GeneratorFunction]',
11996
+ proxyTag = '[object Proxy]';
11997
+ /**
11998
+ * Checks if `value` is classified as a `Function` object.
11999
+ *
12000
+ * @static
12001
+ * @memberOf _
12002
+ * @since 0.1.0
12003
+ * @category Lang
12004
+ * @param {*} value The value to check.
12005
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
12006
+ * @example
12007
+ *
12008
+ * _.isFunction(_);
12009
+ * // => true
12010
+ *
12011
+ * _.isFunction(/abc/);
12012
+ * // => false
12013
+ */
12014
+
12015
+ function isFunction$3(value) {
12016
+ if (!isObject$7(value)) {
12017
+ return false;
12018
+ } // The use of `Object#toString` avoids issues with the `typeof` operator
12019
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
12020
+
12021
+
12022
+ var tag = baseGetTag$6(value);
12023
+ return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
12024
+ }
12025
+
12026
+ var isFunction_1 = isFunction$3;
12027
+
11853
12028
  var isArray$9 = isArray_1,
11854
12029
  isSymbol$1 = isSymbol_1;
11855
12030
  /** Used to match property names within property paths. */
@@ -24309,7 +24484,9 @@
24309
24484
  var _useConfig = useConfig$1(),
24310
24485
  classPrefix = _useConfig.classPrefix;
24311
24486
 
24312
- var _props$bordered = props.bordered,
24487
+ var className = props.className,
24488
+ style = props.style,
24489
+ _props$bordered = props.bordered,
24313
24490
  bordered = _props$bordered === void 0 ? false : _props$bordered,
24314
24491
  _props$stripe = props.stripe,
24315
24492
  stripe = _props$stripe === void 0 ? false : _props$stripe,
@@ -24525,10 +24702,10 @@
24525
24702
  }
24526
24703
 
24527
24704
  function getTableWithFixedHeader() {
24528
- var style = {};
24705
+ var style2 = {};
24529
24706
 
24530
24707
  if (isHasScrollbar) {
24531
- style = _objectSpread$T(_objectSpread$T({}, style), {}, {
24708
+ style2 = _objectSpread$T(_objectSpread$T({}, style2), {}, {
24532
24709
  paddingRight: scrollBarWidth
24533
24710
  });
24534
24711
  }
@@ -24536,7 +24713,7 @@
24536
24713
  var fixedHeaderRN = /* @__PURE__ */React__default["default"].createElement("div", {
24537
24714
  ref: scrollHeaderRef,
24538
24715
  className: "".concat(classPrefix, "-table__header"),
24539
- style: style
24716
+ style: style2
24540
24717
  }, getTable({
24541
24718
  enableBody: false
24542
24719
  }));
@@ -24605,7 +24782,8 @@
24605
24782
  }
24606
24783
 
24607
24784
  return /* @__PURE__ */React__default["default"].createElement("div", {
24608
- className: classNames$1("".concat(classPrefix, "-table"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-table--striped"), stripe), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--bordered"), bordered), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--hoverable"), hover), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--align-").concat(verticalAlign), verticalAlign), _defineProperty$2(_classNames, "".concat(classPrefix, "-table__header--fixed"), fixedHeader), _defineProperty$2(_classNames, "".concat(classPrefix, "-table__cell--fixed ").concat(classPrefix, "-table--has-fixed"), hasFixedColumns), _classNames))
24785
+ className: classNames$1("".concat(classPrefix, "-table"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-table--striped"), stripe), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--bordered"), bordered), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--hoverable"), hover), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--align-").concat(verticalAlign), verticalAlign), _defineProperty$2(_classNames, "".concat(classPrefix, "-table__header--fixed"), fixedHeader), _defineProperty$2(_classNames, "".concat(classPrefix, "-table__cell--fixed ").concat(classPrefix, "-table--has-fixed"), hasFixedColumns), _classNames), className),
24786
+ style: style
24609
24787
  }, /* @__PURE__ */React__default["default"].createElement(TableContextProvider, {
24610
24788
  value: table
24611
24789
  }, /* @__PURE__ */React__default["default"].createElement(Loading, {
@@ -29922,6 +30100,9 @@
29922
30100
  function _createClass(Constructor, protoProps, staticProps) {
29923
30101
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29924
30102
  if (staticProps) _defineProperties(Constructor, staticProps);
30103
+ Object.defineProperty(Constructor, "prototype", {
30104
+ writable: false
30105
+ });
29925
30106
  return Constructor;
29926
30107
  }
29927
30108
 
@@ -31658,6 +31839,31 @@
31658
31839
  });
31659
31840
  var pick_1 = pick;
31660
31841
 
31842
+ var logSet = /* @__PURE__ */new Set();
31843
+ var log = {
31844
+ warn: function warn(componentName, message) {
31845
+ console.warn("TDesign ".concat(componentName, " Warn: ").concat(message));
31846
+ },
31847
+ warnOnce: function warnOnce(componentName, message) {
31848
+ var msgContent = "TDesign ".concat(componentName, " Warn: ").concat(message);
31849
+ if (logSet.has(msgContent)) return;
31850
+ logSet.add(msgContent);
31851
+ console.warn(msgContent);
31852
+ },
31853
+ error: function error(componentName, message) {
31854
+ console.error("TDesign ".concat(componentName, " Error: ").concat(message));
31855
+ },
31856
+ errorOnce: function errorOnce(componentName, message) {
31857
+ var msgContent = "TDesign ".concat(componentName, " Error: ").concat(message);
31858
+ if (logSet.has(msgContent)) return;
31859
+ logSet.add(msgContent);
31860
+ console.error(msgContent);
31861
+ },
31862
+ info: function info(componentName, message) {
31863
+ console.info("TDesign ".concat(componentName, " Info: ").concat(message));
31864
+ }
31865
+ };
31866
+
31661
31867
  function ownKeys$x(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; }
31662
31868
 
31663
31869
  function _objectSpread$x(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -31758,7 +31964,7 @@
31758
31964
  var targetNode = tree.getNode(value);
31759
31965
 
31760
31966
  if (!targetNode) {
31761
- console.warn("TDesign Tree Warn: `".concat(value, "` is not exist"));
31967
+ log.warnOnce("Tree", "`".concat(value, "` is not exist"));
31762
31968
  return;
31763
31969
  }
31764
31970
 
@@ -31768,7 +31974,7 @@
31768
31974
  });
31769
31975
 
31770
31976
  if (parentValues.indexOf(node.value) < 0) {
31771
- console.warn("TDesign Tree Warn: `".concat(value, "` is not a childNode of current node"));
31977
+ log.warnOnce("Tree", "`".concat(value, "` is not a childNode of current node"));
31772
31978
  return;
31773
31979
  }
31774
31980
 
@@ -34430,7 +34636,7 @@
34430
34636
 
34431
34637
  var TreeSelect = TreeSelect$1;
34432
34638
 
34433
- var _excluded$8 = ["layout", "dashed", "align", "className", "style", "children"];
34639
+ var _excluded$8 = ["layout", "dashed", "align", "className", "style", "children", "content"];
34434
34640
 
34435
34641
  function ownKeys$s(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; }
34436
34642
 
@@ -34447,18 +34653,27 @@
34447
34653
  className = props.className,
34448
34654
  style = props.style,
34449
34655
  children = props.children,
34656
+ content = props.content,
34450
34657
  otherDividerProps = _objectWithoutProperties$1(props, _excluded$8);
34451
34658
 
34452
34659
  var _useConfig = useConfig$1(),
34453
34660
  classPrefix = _useConfig.classPrefix;
34454
34661
 
34455
- var dividerClassNames = classNames$1("".concat(classPrefix, "-divider"), className, (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--horizontal"), layout === "horizontal"), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--vertical"), layout === "vertical"), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--dashed"), !!dashed), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--with-text"), !!children), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--with-text-").concat(align), !!children), _classNames));
34456
- return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$s({
34662
+ var hasChildren = typeof children !== "undefined";
34663
+ var hasContent = typeof content !== "undefined";
34664
+ var childrenNode = children;
34665
+
34666
+ if (!hasChildren && hasContent) {
34667
+ childrenNode = content;
34668
+ }
34669
+
34670
+ var dividerClassNames = classNames$1("".concat(classPrefix, "-divider"), className, (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--horizontal"), layout === "horizontal"), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--vertical"), layout === "vertical"), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--dashed"), !!dashed), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--with-text"), !!childrenNode), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--with-text-").concat(align), !!childrenNode), _classNames));
34671
+ return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$s(_objectSpread$s({}, otherDividerProps), {}, {
34457
34672
  className: dividerClassNames,
34458
34673
  style: style
34459
- }, otherDividerProps), children ? /* @__PURE__ */React__default["default"].createElement("span", {
34674
+ }), childrenNode ? /* @__PURE__ */React__default["default"].createElement("span", {
34460
34675
  className: "".concat(classPrefix, "-divider__inner-text")
34461
- }, children) : null);
34676
+ }, childrenNode) : null);
34462
34677
  };
34463
34678
 
34464
34679
  Divider$1.displayName = "Divider";
@@ -38926,6 +39141,53 @@
38926
39141
  }, restProps);
38927
39142
  }
38928
39143
 
39144
+ var SIZE_MAP = {
39145
+ B: 1,
39146
+ KB: 1024,
39147
+ MB: 1048576,
39148
+ GB: 1073741824
39149
+ };
39150
+
39151
+ function judgeIsSuitableSize(fileSize, sizeLimit, unit) {
39152
+ var units = ["B", "KB", "MB", "GB"];
39153
+ var index = units.indexOf(unit);
39154
+
39155
+ if (index === -1) {
39156
+ console.warn("TDesign Upload Warn: `sizeLimit.unit` can only be one of ".concat(units.join()));
39157
+ }
39158
+
39159
+ return fileSize <= sizeLimit * SIZE_MAP[unit];
39160
+ }
39161
+
39162
+ function useHandleLimit() {
39163
+ var _useLocaleReceiver = useLocaleReceiver("upload"),
39164
+ _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 2),
39165
+ local = _useLocaleReceiver2[0],
39166
+ t = _useLocaleReceiver2[1];
39167
+
39168
+ return handleSizeLimit;
39169
+
39170
+ function handleSizeLimit(fileSize, rawSizeLimit) {
39171
+ var sizeLimit = typeof rawSizeLimit === "number" ? {
39172
+ size: rawSizeLimit,
39173
+ unit: "KB"
39174
+ } : rawSizeLimit;
39175
+ sizeLimit.unit = sizeLimit.unit.toUpperCase();
39176
+ var isSuitableSize = judgeIsSuitableSize(fileSize, sizeLimit.size, sizeLimit.unit);
39177
+ var errorMsg;
39178
+
39179
+ if (!isSuitableSize) {
39180
+ errorMsg = sizeLimit.message ? t(sizeLimit.message, {
39181
+ sizeLimit: sizeLimit.size
39182
+ }) : "".concat(t(local.sizeLimitMessage, {
39183
+ sizeLimit: sizeLimit.size
39184
+ }), " ").concat(sizeLimit.unit);
39185
+ }
39186
+
39187
+ return [isSuitableSize, errorMsg];
39188
+ }
39189
+ }
39190
+
38929
39191
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
38930
39192
 
38931
39193
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -38960,6 +39222,9 @@
38960
39222
  withCredentials = _useDefaultValue.withCredentials,
38961
39223
  _useDefaultValue$auto = _useDefaultValue.autoUpload,
38962
39224
  autoUpload = _useDefaultValue$auto === void 0 ? true : _useDefaultValue$auto,
39225
+ _useDefaultValue$file = _useDefaultValue.files,
39226
+ fileList = _useDefaultValue$file === void 0 ? [] : _useDefaultValue$file,
39227
+ sizeLimit = _useDefaultValue.sizeLimit,
38963
39228
  formatResponse = _useDefaultValue.formatResponse,
38964
39229
  beforeUpload = _useDefaultValue.beforeUpload,
38965
39230
  onProgress = _useDefaultValue.onProgress,
@@ -38970,8 +39235,6 @@
38970
39235
  onDragenter = _useDefaultValue.onDragenter,
38971
39236
  onDragleave = _useDefaultValue.onDragleave,
38972
39237
  requestMethod = _useDefaultValue.requestMethod,
38973
- _useDefaultValue$file = _useDefaultValue.files,
38974
- fileList = _useDefaultValue$file === void 0 ? [] : _useDefaultValue$file,
38975
39238
  customDraggerRender = _useDefaultValue.customDraggerRender,
38976
39239
  children = _useDefaultValue.children;
38977
39240
 
@@ -39011,6 +39274,7 @@
39011
39274
  setShowImg(false);
39012
39275
  setImgURL("");
39013
39276
  }, []);
39277
+ var handleSizeLimit = useHandleLimit();
39014
39278
  var handlePreviewImg = React.useCallback(function (event, file) {
39015
39279
  if (!file.url) throw new Error("Error file");
39016
39280
  setImgURL(file.url);
@@ -39265,14 +39529,23 @@
39265
39529
  if (typeof beforeUpload === "function") {
39266
39530
  var r = beforeUpload(file);
39267
39531
  if (r instanceof Promise) return r;
39268
- return new Promise(function (resolve) {
39269
- return resolve(r);
39270
- });
39532
+ return Promise.resolve(r);
39271
39533
  }
39272
39534
 
39273
- return new Promise(function (resolve) {
39274
- return resolve(true);
39275
- });
39535
+ if (sizeLimit) {
39536
+ var _handleSizeLimit = handleSizeLimit(file.size, sizeLimit),
39537
+ _handleSizeLimit2 = _slicedToArray(_handleSizeLimit, 2),
39538
+ overrideSize = _handleSizeLimit2[0],
39539
+ errorMsg2 = _handleSizeLimit2[1];
39540
+
39541
+ if (errorMsg2) {
39542
+ setErrorMsg(errorMsg2);
39543
+ }
39544
+
39545
+ return Promise.resolve(overrideSize);
39546
+ }
39547
+
39548
+ return Promise.resolve(true);
39276
39549
  };
39277
39550
 
39278
39551
  var uploadFiles = function uploadFiles() {
@@ -40989,6 +41262,15 @@
40989
41262
  }, [formValue]);
40990
41263
  React.useEffect(function () {
40991
41264
  formItemsRef.current.push(currentFormItemRef);
41265
+ return function () {
41266
+ var index = formItemsRef.current.indexOf(currentFormItemRef);
41267
+
41268
+ if (index !== -1) {
41269
+ var _formItemsRef$current;
41270
+
41271
+ (_formItemsRef$current = formItemsRef.current) === null || _formItemsRef$current === void 0 ? void 0 : _formItemsRef$current.splice(index, 1);
41272
+ }
41273
+ };
40992
41274
  }, []);
40993
41275
  React.useImperativeHandle(currentFormItemRef, function () {
40994
41276
  return {
@@ -41099,6 +41381,7 @@
41099
41381
  classPrefix = _useConfig.classPrefix;
41100
41382
 
41101
41383
  var formClass = classNames$1(className, "".concat(classPrefix, "-form"), _defineProperty$2({}, "".concat(classPrefix, "-form-inline"), layout === "inline"));
41384
+ var formRef = React.useRef();
41102
41385
  var formItemsRef = React.useRef([]);
41103
41386
  var FORM_ITEM_CLASS_PREFIX = "".concat(classPrefix, "-form-item__");
41104
41387
 
@@ -41141,8 +41424,10 @@
41141
41424
  e === null || e === void 0 ? void 0 : e.preventDefault();
41142
41425
  formItemsRef.current.forEach(function (_ref) {
41143
41426
  var formItemRef = _ref.current;
41144
- if (!isFunction_1(formItemRef.resetField)) return;
41145
- formItemRef.resetField();
41427
+
41428
+ if (formItemRef && isFunction_1(formItemRef.resetField)) {
41429
+ formItemRef.resetField();
41430
+ }
41146
41431
  });
41147
41432
  onReset === null || onReset === void 0 ? void 0 : onReset({
41148
41433
  e: e
@@ -41162,7 +41447,7 @@
41162
41447
 
41163
41448
  var list = formItemsRef.current.filter(function (_ref3) {
41164
41449
  var formItemRef = _ref3.current;
41165
- return isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
41450
+ return formItemRef && isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
41166
41451
  }).map(function (_ref4) {
41167
41452
  var formItemRef = _ref4.current;
41168
41453
  return formItemRef.validate(trigger);
@@ -41187,7 +41472,7 @@
41187
41472
  formItemsRef.current.forEach(function (_ref5) {
41188
41473
  var formItemRef = _ref5.current;
41189
41474
 
41190
- if (formItemRef.name) {
41475
+ if (formItemRef !== null && formItemRef !== void 0 && formItemRef.name) {
41191
41476
  fieldsValue[formItemRef.name] = formItemRef.value;
41192
41477
  }
41193
41478
  });
@@ -41198,7 +41483,7 @@
41198
41483
  if (!name) return null;
41199
41484
  var target = formItemsRef.current.find(function (_ref6) {
41200
41485
  var formItemRef = _ref6.current;
41201
- return formItemRef.name === name;
41486
+ return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
41202
41487
  });
41203
41488
  return target && target.value;
41204
41489
  }
@@ -41207,8 +41492,13 @@
41207
41492
  var fileds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
41208
41493
  var formItemsMap = formItemsRef.current.reduce(function (acc, _ref7) {
41209
41494
  var currItem = _ref7.current;
41210
- var name = currItem.name;
41211
- return _objectSpread$j(_objectSpread$j({}, acc), {}, _defineProperty$2({}, name, currItem));
41495
+
41496
+ if (currItem !== null && currItem !== void 0 && currItem.name) {
41497
+ var name = currItem.name;
41498
+ return _objectSpread$j(_objectSpread$j({}, acc), {}, _defineProperty$2({}, name, currItem));
41499
+ }
41500
+
41501
+ return acc;
41212
41502
  }, {});
41213
41503
  Object.keys(fileds).forEach(function (key) {
41214
41504
  var _formItemsMap$key;
@@ -41222,8 +41512,13 @@
41222
41512
  if (!Array.isArray(fileds)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
41223
41513
  var formItemsMap = formItemsRef.current.reduce(function (acc, _ref8) {
41224
41514
  var currItem = _ref8.current;
41225
- var name = currItem.name;
41226
- return _objectSpread$j(_objectSpread$j({}, acc), {}, _defineProperty$2({}, name, currItem));
41515
+
41516
+ if (currItem !== null && currItem !== void 0 && currItem.name) {
41517
+ var name = currItem.name;
41518
+ return _objectSpread$j(_objectSpread$j({}, acc), {}, _defineProperty$2({}, name, currItem));
41519
+ }
41520
+
41521
+ return acc;
41227
41522
  }, {});
41228
41523
  fileds.forEach(function (filed) {
41229
41524
  var _formItemsMap$name;
@@ -41240,6 +41535,7 @@
41240
41535
 
41241
41536
  React.useImperativeHandle(ref, function () {
41242
41537
  return {
41538
+ currentElement: formRef.current,
41243
41539
  submit: submitHandler,
41244
41540
  reset: resetHandler,
41245
41541
  getFieldValue: getFieldValue,
@@ -41276,7 +41572,7 @@
41276
41572
  style: style,
41277
41573
  onSubmit: submitHandler,
41278
41574
  onReset: resetHandler,
41279
- ref: ref
41575
+ ref: formRef
41280
41576
  }, children));
41281
41577
  }, {
41282
41578
  FormItem: FormItem
@@ -41531,7 +41827,7 @@
41531
41827
  theme: "primary",
41532
41828
  onClick: onConfirmClick,
41533
41829
  className: "".concat(prefixCls, "__confirm")
41534
- }, confirmText);
41830
+ }, confirmBtn && typeof confirmBtn === "string" ? confirmBtn : confirmText);
41535
41831
  var renderCancelBtn = cancelBtn && /*#__PURE__*/React__default["default"].isValidElement(cancelBtn) ? cancelBtn : defaultCancelBtn;
41536
41832
  var renderConfirmBtn = confirmBtn && /*#__PURE__*/React__default["default"].isValidElement(confirmBtn) ? confirmBtn : defaultConfirmBtn;
41537
41833
  var footerStyle = {
@@ -44962,8 +45258,8 @@
44962
45258
 
44963
45259
  var _useState = React.useState(void 0),
44964
45260
  _useState2 = _slicedToArray(_useState, 2),
44965
- formatedValue = _useState2[0],
44966
- changeFormatedValue = _useState2[1];
45261
+ formattedValue = _useState2[0],
45262
+ changeFormattedValue = _useState2[1];
44967
45263
 
44968
45264
  React.useEffect(function () {
44969
45265
  if (!startTime) return;
@@ -44971,7 +45267,7 @@
44971
45267
  var hour = /[h]{1}/.test(format) ? dayjsValue.hour() % 12 : dayjsValue.hour();
44972
45268
  var minute = dayjsValue.minute();
44973
45269
  var second = dayjsValue.second();
44974
- changeFormatedValue(function (preVal) {
45270
+ changeFormattedValue(function (preVal) {
44975
45271
  return [{
44976
45272
  hour: padStart_1(String(hour), 2, "0"),
44977
45273
  minute: padStart_1(String(minute), 2, "0"),
@@ -44986,7 +45282,7 @@
44986
45282
  var hour = /[h]{1}/.test(format) ? dayjsValue.hour() % 12 : dayjsValue.hour();
44987
45283
  var minute = dayjsValue.minute();
44988
45284
  var second = dayjsValue.second();
44989
- changeFormatedValue(function (preVal) {
45285
+ changeFormattedValue(function (preVal) {
44990
45286
  return [preVal[0], {
44991
45287
  hour: padStart_1(String(hour), 2, "0"),
44992
45288
  minute: padStart_1(String(minute), 2, "0"),
@@ -44996,6 +45292,16 @@
44996
45292
  });
44997
45293
  }, [endTime, format]);
44998
45294
  var handleInputChange = React.useCallback(function (type, result, index) {
45295
+ var max = 59;
45296
+
45297
+ if (type === EPickerCols.hour) {
45298
+ max = /[h]{1}/.test(format) ? 11 : 23;
45299
+ }
45300
+
45301
+ if (isNaN(Number(result))) return;
45302
+ result = String(result).length > 2 ? String(result).slice(1, 3) : result;
45303
+ if (Number(result) > max) return;
45304
+
44999
45305
  if (!isRangePicker) {
45000
45306
  var _currentDayjsValue$ty;
45001
45307
 
@@ -45026,10 +45332,10 @@
45026
45332
  var which = e.which;
45027
45333
 
45028
45334
  if ([up, down].includes(which)) {
45029
- var _formatedValue$index;
45335
+ var _formattedValue$index;
45030
45336
 
45031
45337
  if (type === EPickerCols.meridiem) return;
45032
- var timeValue = formatedValue === null || formatedValue === void 0 ? void 0 : (_formatedValue$index = formatedValue[index]) === null || _formatedValue$index === void 0 ? void 0 : _formatedValue$index[type];
45338
+ var timeValue = formattedValue === null || formattedValue === void 0 ? void 0 : (_formattedValue$index = formattedValue[index]) === null || _formattedValue$index === void 0 ? void 0 : _formattedValue$index[type];
45033
45339
  var current = timeValue ? Number(timeValue) : 0;
45034
45340
  var operate = which === up ? -1 : 1;
45035
45341
  var result = current + operate;
@@ -45043,7 +45349,7 @@
45043
45349
  result = maxHour;
45044
45350
  }
45045
45351
  } else if (result > 59) {
45046
- result = 1;
45352
+ result = 0;
45047
45353
  } else if (result < 0) {
45048
45354
  result = 59;
45049
45355
  }
@@ -45062,7 +45368,7 @@
45062
45368
  if (input !== null && input !== void 0 && input.focus) input.focus();
45063
45369
  }
45064
45370
  }
45065
- }, [allowInput, format, formatedValue, handleInputChange]);
45371
+ }, [allowInput, format, formattedValue, handleInputChange]);
45066
45372
  var TEXT_CONFIG = useTimePickerTextConfig();
45067
45373
 
45068
45374
  function renderMeridiemItem(text) {
@@ -45100,7 +45406,7 @@
45100
45406
  onChange: function onChange(e) {
45101
45407
  var _e$target2;
45102
45408
 
45103
- return handleInputChange(type, e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
45409
+ return handleInputChange(type, e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value, index);
45104
45410
  },
45105
45411
  onBlur: function onBlur(e) {
45106
45412
  return _onBlur({
@@ -45127,7 +45433,7 @@
45127
45433
 
45128
45434
  return /* @__PURE__ */React__default["default"].createElement("div", {
45129
45435
  className: inputItemClass
45130
- }, isRangePicker ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, renderItems(formatedValue === null || formatedValue === void 0 ? void 0 : formatedValue[0], 0), " - ", renderItems(formatedValue === null || formatedValue === void 0 ? void 0 : formatedValue[1], 1)) : renderItems(formatedValue === null || formatedValue === void 0 ? void 0 : formatedValue[0], 0));
45436
+ }, isRangePicker ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, renderItems(formattedValue === null || formattedValue === void 0 ? void 0 : formattedValue[0], 0), " - ", renderItems(formattedValue === null || formattedValue === void 0 ? void 0 : formattedValue[1], 1)) : renderItems(formattedValue === null || formattedValue === void 0 ? void 0 : formattedValue[0], 0));
45131
45437
  };
45132
45438
 
45133
45439
  var TimeRangePicker = function TimeRangePicker(props) {
@@ -45751,21 +46057,21 @@
45751
46057
  return str[0].toUpperCase().concat(str.substring(1, str.length));
45752
46058
  }
45753
46059
 
45754
- function getFirstDayOfMonth(_ref3) {
45755
- var year = _ref3.year,
45756
- month = _ref3.month;
46060
+ function getFirstDayOfMonth(_ref) {
46061
+ var year = _ref.year,
46062
+ month = _ref.month;
45757
46063
  return new Date(year, month, 1);
45758
46064
  }
45759
46065
 
45760
- function getDaysInMonth(_ref4) {
45761
- var year = _ref4.year,
45762
- month = _ref4.month;
46066
+ function getDaysInMonth(_ref2) {
46067
+ var year = _ref2.year,
46068
+ month = _ref2.month;
45763
46069
  return new Date(year, month + 1, 0).getDate();
45764
46070
  }
45765
46071
 
45766
- function getLastDayOfMonth(_ref5) {
45767
- var year = _ref5.year,
45768
- month = _ref5.month;
46072
+ function getLastDayOfMonth(_ref3) {
46073
+ var year = _ref3.year,
46074
+ month = _ref3.month;
45769
46075
  return new Date(year, month, getDaysInMonth({
45770
46076
  year: year,
45771
46077
  month: month
@@ -45784,9 +46090,9 @@
45784
46090
  return isSameMonth(date1, date2) && date1.getDate() === date2.getDate();
45785
46091
  }
45786
46092
 
45787
- function isBetween(value, _ref6) {
45788
- var start = _ref6.start,
45789
- end = _ref6.end;
46093
+ function isBetween(value, _ref4) {
46094
+ var start = _ref4.start,
46095
+ end = _ref4.end;
45790
46096
  var date = new Date(value.getFullYear(), value.getMonth(), value.getDate());
45791
46097
  var startTime = new Date(start.getFullYear(), start.getMonth(), start.getDate());
45792
46098
  var endTime = new Date(end.getFullYear(), end.getMonth(), end.getDate());
@@ -45818,18 +46124,20 @@
45818
46124
  return new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0);
45819
46125
  }
45820
46126
  function getDateObj(date) {
46127
+ var tempDate = date;
46128
+
45821
46129
  if (!(date instanceof Date)) {
45822
- throw new Error("date must be Date object");
46130
+ tempDate = getToday();
45823
46131
  }
45824
46132
 
45825
46133
  return {
45826
- year: date.getFullYear(),
45827
- month: date.getMonth(),
45828
- date: date.getDate(),
45829
- hours: date.getHours(),
45830
- minutes: date.getMinutes(),
45831
- seconds: date.getSeconds(),
45832
- meridiem: date.getHours() > 11 ? "PM" : "AM"
46134
+ year: tempDate.getFullYear(),
46135
+ month: tempDate.getMonth(),
46136
+ date: tempDate.getDate(),
46137
+ hours: tempDate.getHours(),
46138
+ minutes: tempDate.getMinutes(),
46139
+ seconds: tempDate.getSeconds(),
46140
+ meridiem: tempDate.getHours() > 11 ? "PM" : "AM"
45833
46141
  };
45834
46142
  }
45835
46143
  function setDateTime(d, hour, min, sec) {
@@ -45843,9 +46151,9 @@
45843
46151
  function subtractMonth(date, num) {
45844
46152
  var day = date.getDate();
45845
46153
  var newDate = new Date(date);
45846
- var monthNum = num;
46154
+ var _num = num;
45847
46155
 
45848
- while (monthNum--) {
46156
+ while (_num--) {
45849
46157
  newDate.setDate(0);
45850
46158
  }
45851
46159
 
@@ -45853,22 +46161,22 @@
45853
46161
  return newDate;
45854
46162
  }
45855
46163
  function addMonth(date, num) {
45856
- var monthNum = num;
45857
- if (num < 0) monthNum = 0;
46164
+ var _num = num;
46165
+ if (num < 0) _num = 0;
45858
46166
  var newDate = new Date(date);
45859
- newDate.setMonth(date.getMonth() + monthNum);
46167
+ newDate.setMonth(date.getMonth() + _num);
45860
46168
  return newDate;
45861
46169
  }
45862
- function getWeeks(_ref7, _ref8) {
45863
- var year = _ref7.year,
45864
- month = _ref7.month;
45865
- var firstDayOfWeek = _ref8.firstDayOfWeek,
45866
- _ref8$disableDate = _ref8.disableDate,
45867
- disableDate = _ref8$disableDate === void 0 ? function () {
46170
+ function getWeeks(_ref5, _ref6) {
46171
+ var year = _ref5.year,
46172
+ month = _ref5.month;
46173
+ var firstDayOfWeek = _ref6.firstDayOfWeek,
46174
+ _ref6$disableDate = _ref6.disableDate,
46175
+ disableDate = _ref6$disableDate === void 0 ? function () {
45868
46176
  return false;
45869
- } : _ref8$disableDate,
45870
- minDate = _ref8.minDate,
45871
- maxDate = _ref8.maxDate;
46177
+ } : _ref6$disableDate,
46178
+ minDate = _ref6.minDate,
46179
+ maxDate = _ref6.maxDate;
45872
46180
  var prependDay = getFirstDayOfMonth({
45873
46181
  year: year,
45874
46182
  month: month
@@ -45882,15 +46190,16 @@
45882
46190
  month: month
45883
46191
  });
45884
46192
  var daysArr = [];
46193
+ var i = 1;
45885
46194
  var today = getToday();
45886
46195
 
45887
- for (var i = 1; i <= maxDays; i++) {
46196
+ for (i; i <= maxDays; i++) {
45888
46197
  var currentDay = new Date(year, month, i);
45889
46198
  daysArr.push({
45890
46199
  text: i,
45891
46200
  active: false,
45892
46201
  value: currentDay,
45893
- disabled: disableDate(currentDay) || outOfRanges(currentDay, minDate, maxDate),
46202
+ disabled: typeof disableDate === "function" && disableDate(currentDay) || outOfRanges(currentDay, minDate, maxDate),
45894
46203
  now: isSame(today, currentDay),
45895
46204
  firstDayOfMonth: i === 1,
45896
46205
  lastDayOfMonth: i === maxDays,
@@ -45898,16 +46207,15 @@
45898
46207
  });
45899
46208
  }
45900
46209
 
45901
- if (prependDay.getDay() !== firstDayOfWeek - 1) {
46210
+ if (prependDay.getDay() !== firstDayOfWeek) {
45902
46211
  prependDay.setDate(0);
45903
- var FLAG = true;
45904
46212
 
45905
- while (FLAG) {
46213
+ while (true) {
45906
46214
  daysArr.unshift({
45907
46215
  text: prependDay.getDate().toString(),
45908
46216
  active: false,
45909
46217
  value: new Date(prependDay),
45910
- disabled: disableDate(prependDay) || outOfRanges(prependDay, minDate, maxDate),
46218
+ disabled: typeof disableDate === "function" && disableDate(prependDay) || outOfRanges(prependDay, minDate, maxDate),
45911
46219
  additional: true,
45912
46220
  type: "prev-month"
45913
46221
  });
@@ -45924,7 +46232,7 @@
45924
46232
  text: appendDay.getDate(),
45925
46233
  active: false,
45926
46234
  value: new Date(appendDay),
45927
- disabled: disableDate(appendDay) || outOfRanges(appendDay, minDate, maxDate),
46235
+ disabled: typeof disableDate === "function" && disableDate(appendDay) || outOfRanges(appendDay, minDate, maxDate),
45928
46236
  additional: true,
45929
46237
  type: "next-month"
45930
46238
  });
@@ -45932,13 +46240,13 @@
45932
46240
 
45933
46241
  return chunk_1(daysArr, 7);
45934
46242
  }
45935
- function getYears(year, _ref9) {
45936
- var _ref9$disableDate = _ref9.disableDate,
45937
- disableDate = _ref9$disableDate === void 0 ? function () {
46243
+ function getYears(year, _ref7) {
46244
+ var _ref7$disableDate = _ref7.disableDate,
46245
+ disableDate = _ref7$disableDate === void 0 ? function () {
45938
46246
  return false;
45939
- } : _ref9$disableDate,
45940
- minDate = _ref9.minDate,
45941
- maxDate = _ref9.maxDate;
46247
+ } : _ref7$disableDate,
46248
+ minDate = _ref7.minDate,
46249
+ maxDate = _ref7.maxDate;
45942
46250
  var startYear = parseInt((year / 10).toString(), 10) * 10;
45943
46251
  var endYear = startYear + 9;
45944
46252
  var yearArr = [];
@@ -45950,7 +46258,7 @@
45950
46258
  var outOfRangeMonth = 0;
45951
46259
 
45952
46260
  for (var j = 0; j < 12; j++) {
45953
- var d = new Date(i, j, j === 11 ? 31 : 1);
46261
+ var d = new Date(i, j);
45954
46262
  if (typeof disableDate === "function" && disableDate(d)) disabledMonth += 1;
45955
46263
  if (outOfRanges(d, minDate, maxDate)) outOfRangeMonth += 1;
45956
46264
  }
@@ -45966,16 +46274,15 @@
45966
46274
 
45967
46275
  return chunk_1(yearArr, 4);
45968
46276
  }
45969
- function getMonths(year, _ref10) {
45970
- var _ref10$disableDate = _ref10.disableDate,
45971
- disableDate = _ref10$disableDate === void 0 ? function () {
46277
+ function getMonths(year, params) {
46278
+ var _params$disableDate = params.disableDate,
46279
+ disableDate = _params$disableDate === void 0 ? function () {
45972
46280
  return false;
45973
- } : _ref10$disableDate,
45974
- minDate = _ref10.minDate,
45975
- maxDate = _ref10.maxDate,
45976
- _ref10$monthText = _ref10.monthText,
45977
- monthText = _ref10$monthText === void 0 ? "" : _ref10$monthText;
45978
- var monthArr = [];
46281
+ } : _params$disableDate,
46282
+ minDate = params.minDate,
46283
+ maxDate = params.maxDate,
46284
+ monthLocal = params.monthLocal;
46285
+ var MonthArr = [];
45979
46286
  var today = getToday();
45980
46287
 
45981
46288
  for (var i = 0; i <= 11; i++) {
@@ -45989,23 +46296,23 @@
45989
46296
 
45990
46297
  for (var j = 1; j <= daysInMonth; j++) {
45991
46298
  var d = new Date(year, i, j);
45992
- if (disableDate(d)) disabledDay += 1;
46299
+ if (typeof disableDate === "function" && disableDate(d)) disabledDay += 1;
45993
46300
  if (outOfRanges(d, minDate, maxDate)) outOfRangeDay += 1;
45994
46301
  }
45995
46302
 
45996
- monthArr.push({
46303
+ MonthArr.push({
45997
46304
  value: date,
45998
46305
  now: isSame(date, today, "month"),
45999
46306
  disabled: disabledDay === daysInMonth || outOfRangeDay === daysInMonth,
46000
46307
  active: false,
46001
- text: "".concat(date.getMonth() + 1, " ").concat(monthText)
46308
+ text: monthLocal[date.getMonth()]
46002
46309
  });
46003
46310
  }
46004
46311
 
46005
- return chunk_1(monthArr, 4);
46312
+ return chunk_1(MonthArr, 4);
46006
46313
  }
46007
- function flagActive(data, _ref11) {
46008
- var args = _extends({}, _ref11);
46314
+ function flagActive(data, _ref8) {
46315
+ var args = _extends({}, _ref8);
46009
46316
 
46010
46317
  var start = args.start,
46011
46318
  end = args.end,
@@ -46015,29 +46322,27 @@
46015
46322
  if (!end) {
46016
46323
  return data.map(function (row) {
46017
46324
  return row.map(function (item) {
46018
- Object.assign(item, {
46019
- active: isSame(item.value, start, type)
46020
- });
46021
- return item;
46325
+ var _item = item;
46326
+ _item.active = isSame(item.value, start, type);
46327
+ return _item;
46022
46328
  });
46023
46329
  });
46024
46330
  }
46025
46331
 
46026
46332
  return data.map(function (row) {
46027
46333
  return row.map(function (item) {
46334
+ var _item = item;
46028
46335
  var date = item.value;
46029
46336
  var isStart = isSame(start, date, type);
46030
46337
  var isEnd = isSame(end, date, type);
46031
- Object.assign(item, {
46032
- active: isStart || isEnd,
46033
- highlight: isBetween(date, {
46034
- start: start,
46035
- end: end
46036
- }),
46037
- startOfRange: isStart,
46038
- endOfRange: isEnd
46338
+ _item.active = isStart || isEnd;
46339
+ _item.highlight = isBetween(date, {
46340
+ start: start,
46341
+ end: end
46039
46342
  });
46040
- return item;
46343
+ _item.startOfRange = isStart;
46344
+ _item.endOfRange = isEnd;
46345
+ return _item;
46041
46346
  });
46042
46347
  });
46043
46348
  }
@@ -46050,7 +46355,7 @@
46050
46355
  local = _useLocaleReceiver2[0],
46051
46356
  t = _useLocaleReceiver2[1];
46052
46357
 
46053
- var monthAriaLabel = t(local.monthAriaLabel);
46358
+ var monthAriaLabel = t(local.months);
46054
46359
 
46055
46360
  var _useConfig = useConfig$1(),
46056
46361
  classPrefix = _useConfig.classPrefix;
@@ -46130,7 +46435,7 @@
46130
46435
  minDate: minDate,
46131
46436
  maxDate: maxDate,
46132
46437
  firstDayOfWeek: firstDayOfWeek,
46133
- monthText: monthAriaLabel
46438
+ monthLocal: monthAriaLabel
46134
46439
  };
46135
46440
 
46136
46441
  switch (type) {
@@ -46211,7 +46516,7 @@
46211
46516
  local = _useLocaleReceiver2[0],
46212
46517
  t = _useLocaleReceiver2[1];
46213
46518
 
46214
- var monthAriaLabel = t(local.monthAriaLabel);
46519
+ var monthAriaLabel = t(local.months);
46215
46520
 
46216
46521
  var _useConfig = useConfig$1(),
46217
46522
  classPrefix = _useConfig.classPrefix;
@@ -46458,7 +46763,7 @@
46458
46763
  minDate: minDate,
46459
46764
  maxDate: maxDate,
46460
46765
  firstDayOfWeek: firstDayOfWeek,
46461
- monthText: monthAriaLabel
46766
+ monthLocal: monthAriaLabel
46462
46767
  };
46463
46768
 
46464
46769
  switch (type) {