@nutui/nutui-react 3.0.19-beta.2 → 3.0.19

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 (704) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/cjs/hooks/taro/use-custom-event.js +6 -6
  3. package/dist/cjs/hooks/use-ref-state.js +3 -3
  4. package/dist/cjs/hooks/use-touch.js +2 -1
  5. package/dist/cjs/locales/base.d.ts +2 -0
  6. package/dist/cjs/locales/en-US.js +3 -1
  7. package/dist/cjs/locales/id-ID.js +3 -1
  8. package/dist/cjs/locales/ja-JP.js +3 -1
  9. package/dist/cjs/locales/tr-TR.js +3 -1
  10. package/dist/cjs/locales/zh-CN.js +3 -1
  11. package/dist/cjs/locales/zh-TW.js +3 -1
  12. package/dist/cjs/locales/zh-UG.js +3 -1
  13. package/dist/cjs/packages/actionsheet/style/actionsheet.scss +2 -0
  14. package/dist/cjs/packages/actionsheet/style/style.css +2 -0
  15. package/dist/cjs/packages/actionsheet/style-jmapp/actionsheet.scss +2 -0
  16. package/dist/cjs/packages/actionsheet/style-jmapp/style.css +2 -0
  17. package/dist/cjs/packages/actionsheet/style-jrkf/actionsheet.scss +2 -0
  18. package/dist/cjs/packages/actionsheet/style-jrkf/style.css +2 -0
  19. package/dist/cjs/packages/address/address.js +3 -3
  20. package/dist/cjs/packages/address/utils.js +3 -3
  21. package/dist/cjs/packages/avatarcropper/avatarcropper.js +7 -4
  22. package/dist/cjs/packages/avatarcropper/style/avatarcropper.scss +2 -0
  23. package/dist/cjs/packages/avatarcropper/style/style.css +2 -0
  24. package/dist/cjs/packages/avatarcropper/style-jmapp/avatarcropper.scss +2 -0
  25. package/dist/cjs/packages/avatarcropper/style-jmapp/style.css +2 -0
  26. package/dist/cjs/packages/avatarcropper/style-jrkf/avatarcropper.scss +2 -0
  27. package/dist/cjs/packages/avatarcropper/style-jrkf/style.css +2 -0
  28. package/dist/cjs/packages/badge/style/badge.scss +11 -1
  29. package/dist/cjs/packages/badge/style/style.css +11 -1
  30. package/dist/cjs/packages/badge/style-jmapp/badge.scss +11 -1
  31. package/dist/cjs/packages/badge/style-jmapp/style.css +11 -1
  32. package/dist/cjs/packages/badge/style-jrkf/badge.scss +11 -1
  33. package/dist/cjs/packages/badge/style-jrkf/style.css +11 -1
  34. package/dist/cjs/packages/button/style/button.scss +6 -0
  35. package/dist/cjs/packages/button/style/style.css +11 -5
  36. package/dist/cjs/packages/button/style-jmapp/button.scss +6 -0
  37. package/dist/cjs/packages/button/style-jmapp/style.css +6 -0
  38. package/dist/cjs/packages/button/style-jrkf/button.scss +6 -0
  39. package/dist/cjs/packages/button/style-jrkf/style.css +6 -0
  40. package/dist/cjs/packages/calendar/style/style.css +2 -2
  41. package/dist/cjs/packages/calendar/utils.js +8 -8
  42. package/dist/cjs/packages/calendarcard/icon.js +5 -5
  43. package/dist/cjs/packages/calendarcard/style/style.css +1 -1
  44. package/dist/cjs/packages/calendarcard/utils.js +6 -6
  45. package/dist/cjs/packages/cascader/cascader.js +21 -12
  46. package/dist/cjs/packages/cascader/style/cascader.scss +2 -0
  47. package/dist/cjs/packages/cascader/style/style.css +2 -0
  48. package/dist/cjs/packages/cascader/style-jmapp/cascader.scss +2 -0
  49. package/dist/cjs/packages/cascader/style-jmapp/style.css +2 -0
  50. package/dist/cjs/packages/cascader/style-jrkf/cascader.scss +2 -0
  51. package/dist/cjs/packages/cascader/style-jrkf/style.css +2 -0
  52. package/dist/cjs/packages/cascader/utils.js +3 -3
  53. package/dist/cjs/packages/cellgroup/style/cellgroup.scss +4 -0
  54. package/dist/cjs/packages/cellgroup/style/style.css +4 -0
  55. package/dist/cjs/packages/cellgroup/style-jmapp/cellgroup.scss +4 -0
  56. package/dist/cjs/packages/cellgroup/style-jmapp/style.css +4 -0
  57. package/dist/cjs/packages/cellgroup/style-jrkf/cellgroup.scss +4 -0
  58. package/dist/cjs/packages/cellgroup/style-jrkf/style.css +4 -0
  59. package/dist/cjs/packages/checkbox/checkbox.js +1 -1
  60. package/dist/cjs/packages/checkbox/style/checkbox.scss +9 -0
  61. package/dist/cjs/packages/checkbox/style/style.css +10 -1
  62. package/dist/cjs/packages/checkbox/style-jmapp/checkbox.scss +9 -0
  63. package/dist/cjs/packages/checkbox/style-jmapp/style.css +9 -0
  64. package/dist/cjs/packages/checkbox/style-jrkf/checkbox.scss +9 -0
  65. package/dist/cjs/packages/checkbox/style-jrkf/style.css +9 -0
  66. package/dist/cjs/packages/checkboxgroup/style/checkboxgroup.scss +5 -0
  67. package/dist/cjs/packages/checkboxgroup/style/style.css +5 -0
  68. package/dist/cjs/packages/checkboxgroup/style-jmapp/checkboxgroup.scss +5 -0
  69. package/dist/cjs/packages/checkboxgroup/style-jmapp/style.css +5 -0
  70. package/dist/cjs/packages/checkboxgroup/style-jrkf/checkboxgroup.scss +5 -0
  71. package/dist/cjs/packages/checkboxgroup/style-jrkf/style.css +5 -0
  72. package/dist/cjs/packages/circleprogress/style/style.css +1 -1
  73. package/dist/cjs/packages/collapseitem/collapseitem.js +7 -4
  74. package/dist/cjs/packages/configprovider/configprovider.js +7 -7
  75. package/dist/cjs/packages/configprovider/index.js +6 -6
  76. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  77. package/dist/cjs/packages/countdown/countdown.js +2 -1
  78. package/dist/cjs/packages/countup/style/countup.scss +5 -0
  79. package/dist/cjs/packages/countup/style/style.css +5 -0
  80. package/dist/cjs/packages/countup/style-jmapp/countup.scss +5 -0
  81. package/dist/cjs/packages/countup/style-jmapp/style.css +5 -0
  82. package/dist/cjs/packages/countup/style-jrkf/countup.scss +5 -0
  83. package/dist/cjs/packages/countup/style-jrkf/style.css +5 -0
  84. package/dist/cjs/packages/datepicker/utils.js +9 -9
  85. package/dist/cjs/packages/dialog/content.js +3 -3
  86. package/dist/cjs/packages/dialog/dialog.js +44 -13
  87. package/dist/cjs/packages/dialog/style/dialog.scss +53 -2
  88. package/dist/cjs/packages/dialog/style/style.css +52 -5
  89. package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +53 -2
  90. package/dist/cjs/packages/dialog/style-jmapp/style.css +49 -2
  91. package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +53 -2
  92. package/dist/cjs/packages/dialog/style-jrkf/style.css +49 -2
  93. package/dist/cjs/packages/divider/style/divider.scss +5 -0
  94. package/dist/cjs/packages/divider/style/style.css +5 -0
  95. package/dist/cjs/packages/divider/style-jmapp/divider.scss +5 -0
  96. package/dist/cjs/packages/divider/style-jmapp/style.css +5 -0
  97. package/dist/cjs/packages/divider/style-jrkf/divider.scss +5 -0
  98. package/dist/cjs/packages/divider/style-jrkf/style.css +5 -0
  99. package/dist/cjs/packages/drag/style/drag.scss +5 -0
  100. package/dist/cjs/packages/drag/style/style.css +5 -0
  101. package/dist/cjs/packages/drag/style-jmapp/drag.scss +5 -0
  102. package/dist/cjs/packages/drag/style-jmapp/style.css +5 -0
  103. package/dist/cjs/packages/drag/style-jrkf/drag.scss +5 -0
  104. package/dist/cjs/packages/drag/style-jrkf/style.css +5 -0
  105. package/dist/cjs/packages/elevator/elevator.js +3 -3
  106. package/dist/cjs/packages/elevator/style/elevator.scss +7 -0
  107. package/dist/cjs/packages/elevator/style/style.css +7 -0
  108. package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +7 -0
  109. package/dist/cjs/packages/elevator/style-jmapp/style.css +7 -0
  110. package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +7 -0
  111. package/dist/cjs/packages/elevator/style-jrkf/style.css +7 -0
  112. package/dist/cjs/packages/ellipsis/style/ellipsis.scss +2 -0
  113. package/dist/cjs/packages/ellipsis/style/style.css +2 -0
  114. package/dist/cjs/packages/ellipsis/style-jmapp/ellipsis.scss +2 -0
  115. package/dist/cjs/packages/ellipsis/style-jmapp/style.css +2 -0
  116. package/dist/cjs/packages/ellipsis/style-jrkf/ellipsis.scss +2 -0
  117. package/dist/cjs/packages/ellipsis/style-jrkf/style.css +2 -0
  118. package/dist/cjs/packages/empty/style/style.css +2 -2
  119. package/dist/cjs/packages/form/index.js +2 -0
  120. package/dist/cjs/packages/form/useform.js +57 -50
  121. package/dist/cjs/packages/indicator/style/indicator.scss +2 -0
  122. package/dist/cjs/packages/indicator/style/style.css +2 -0
  123. package/dist/cjs/packages/indicator/style-jmapp/indicator.scss +2 -0
  124. package/dist/cjs/packages/indicator/style-jmapp/style.css +2 -0
  125. package/dist/cjs/packages/indicator/style-jrkf/indicator.scss +2 -0
  126. package/dist/cjs/packages/indicator/style-jrkf/style.css +2 -0
  127. package/dist/cjs/packages/infiniteloading/infiniteloading.js +14 -8
  128. package/dist/cjs/packages/input/input.js +4 -3
  129. package/dist/cjs/packages/input/style/input.scss +1 -2
  130. package/dist/cjs/packages/input/style/style.css +1 -2
  131. package/dist/cjs/packages/input/style-jmapp/input.scss +1 -2
  132. package/dist/cjs/packages/input/style-jmapp/style.css +1 -2
  133. package/dist/cjs/packages/input/style-jrkf/input.scss +1 -2
  134. package/dist/cjs/packages/input/style-jrkf/style.css +1 -2
  135. package/dist/cjs/packages/inputnumber/inputnumber.js +28 -16
  136. package/dist/cjs/packages/inputnumber/style/inputnumber.scss +7 -1
  137. package/dist/cjs/packages/inputnumber/style/style.css +5 -0
  138. package/dist/cjs/packages/inputnumber/style-jmapp/inputnumber.scss +7 -1
  139. package/dist/cjs/packages/inputnumber/style-jmapp/style.css +5 -0
  140. package/dist/cjs/packages/inputnumber/style-jrkf/inputnumber.scss +7 -1
  141. package/dist/cjs/packages/inputnumber/style-jrkf/style.css +5 -0
  142. package/dist/cjs/packages/loading/style/loading.scss +5 -0
  143. package/dist/cjs/packages/loading/style/style.css +5 -0
  144. package/dist/cjs/packages/loading/style-jmapp/loading.scss +5 -0
  145. package/dist/cjs/packages/loading/style-jmapp/style.css +5 -0
  146. package/dist/cjs/packages/loading/style-jrkf/loading.scss +5 -0
  147. package/dist/cjs/packages/loading/style-jrkf/style.css +5 -0
  148. package/dist/cjs/packages/lottie/types.js +2 -0
  149. package/dist/cjs/packages/menuitem/style/menuitem.scss +7 -2
  150. package/dist/cjs/packages/menuitem/style/style.css +7 -2
  151. package/dist/cjs/packages/menuitem/style-jmapp/menuitem.scss +7 -2
  152. package/dist/cjs/packages/menuitem/style-jmapp/style.css +7 -2
  153. package/dist/cjs/packages/menuitem/style-jrkf/menuitem.scss +7 -2
  154. package/dist/cjs/packages/menuitem/style-jrkf/style.css +7 -2
  155. package/dist/cjs/packages/navbar/style/navbar.scss +2 -0
  156. package/dist/cjs/packages/navbar/style/style.css +3 -1
  157. package/dist/cjs/packages/navbar/style-jmapp/navbar.scss +2 -0
  158. package/dist/cjs/packages/navbar/style-jmapp/style.css +2 -0
  159. package/dist/cjs/packages/navbar/style-jrkf/navbar.scss +2 -0
  160. package/dist/cjs/packages/navbar/style-jrkf/style.css +2 -0
  161. package/dist/cjs/packages/noticebar/style/noticebar.scss +4 -0
  162. package/dist/cjs/packages/noticebar/style/style.css +4 -0
  163. package/dist/cjs/packages/noticebar/style-jmapp/noticebar.scss +4 -0
  164. package/dist/cjs/packages/noticebar/style-jmapp/style.css +4 -0
  165. package/dist/cjs/packages/noticebar/style-jrkf/noticebar.scss +4 -0
  166. package/dist/cjs/packages/noticebar/style-jrkf/style.css +4 -0
  167. package/dist/cjs/packages/notify/style/notify.scss +5 -0
  168. package/dist/cjs/packages/notify/style/style.css +5 -0
  169. package/dist/cjs/packages/notify/style-jmapp/notify.scss +5 -0
  170. package/dist/cjs/packages/notify/style-jmapp/style.css +5 -0
  171. package/dist/cjs/packages/notify/style-jrkf/notify.scss +5 -0
  172. package/dist/cjs/packages/notify/style-jrkf/style.css +5 -0
  173. package/dist/cjs/packages/numberkeyboard/style/numberkeyboard.scss +2 -0
  174. package/dist/cjs/packages/numberkeyboard/style/style.css +5 -3
  175. package/dist/cjs/packages/numberkeyboard/style-jmapp/numberkeyboard.scss +2 -0
  176. package/dist/cjs/packages/numberkeyboard/style-jmapp/style.css +2 -0
  177. package/dist/cjs/packages/numberkeyboard/style-jrkf/numberkeyboard.scss +2 -0
  178. package/dist/cjs/packages/numberkeyboard/style-jrkf/style.css +2 -0
  179. package/dist/cjs/packages/nutui.react.build.js +105 -105
  180. package/dist/cjs/packages/nutui.react.js +105 -105
  181. package/dist/cjs/packages/overlay/overlay.js +3 -3
  182. package/dist/cjs/packages/picker/style/style.css +2 -2
  183. package/dist/cjs/packages/pickerview/pickerview.js +2 -1
  184. package/dist/cjs/packages/pickerview/utils.js +3 -3
  185. package/dist/cjs/packages/popover/style/popover.scss +2 -0
  186. package/dist/cjs/packages/popover/style/style.css +2 -0
  187. package/dist/cjs/packages/popover/style-jmapp/popover.scss +2 -0
  188. package/dist/cjs/packages/popover/style-jmapp/style.css +2 -0
  189. package/dist/cjs/packages/popover/style-jrkf/popover.scss +2 -0
  190. package/dist/cjs/packages/popover/style-jrkf/style.css +2 -0
  191. package/dist/cjs/packages/popup/popup.js +24 -3
  192. package/dist/cjs/packages/popup/style/popup.scss +4 -0
  193. package/dist/cjs/packages/popup/style/style.css +5 -2
  194. package/dist/cjs/packages/popup/style-jmapp/popup.scss +4 -0
  195. package/dist/cjs/packages/popup/style-jmapp/style.css +3 -0
  196. package/dist/cjs/packages/popup/style-jrkf/popup.scss +4 -0
  197. package/dist/cjs/packages/popup/style-jrkf/style.css +3 -0
  198. package/dist/cjs/packages/price/style/style.css +1 -1
  199. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +51 -41
  200. package/dist/cjs/packages/radio/index.js +2 -0
  201. package/dist/cjs/packages/radio/style/radio.scss +10 -0
  202. package/dist/cjs/packages/radio/style/style.css +11 -1
  203. package/dist/cjs/packages/radio/style-jmapp/radio.scss +10 -0
  204. package/dist/cjs/packages/radio/style-jmapp/style.css +10 -0
  205. package/dist/cjs/packages/radio/style-jrkf/radio.scss +10 -0
  206. package/dist/cjs/packages/radio/style-jrkf/style.css +10 -0
  207. package/dist/cjs/packages/range/style/range.scss +15 -2
  208. package/dist/cjs/packages/range/style/style.css +15 -1
  209. package/dist/cjs/packages/range/style-jmapp/range.scss +15 -2
  210. package/dist/cjs/packages/range/style-jmapp/style.css +15 -1
  211. package/dist/cjs/packages/range/style-jrkf/range.scss +15 -2
  212. package/dist/cjs/packages/range/style-jrkf/style.css +15 -1
  213. package/dist/cjs/packages/range/utils.js +3 -3
  214. package/dist/cjs/packages/rate/style/rate.scss +5 -0
  215. package/dist/cjs/packages/rate/style/style.css +5 -0
  216. package/dist/cjs/packages/rate/style-jmapp/rate.scss +5 -0
  217. package/dist/cjs/packages/rate/style-jmapp/style.css +5 -0
  218. package/dist/cjs/packages/rate/style-jrkf/rate.scss +5 -0
  219. package/dist/cjs/packages/rate/style-jrkf/style.css +5 -0
  220. package/dist/cjs/packages/resultpage/style/resultpage.scss +5 -0
  221. package/dist/cjs/packages/resultpage/style/style.css +5 -0
  222. package/dist/cjs/packages/resultpage/style-jmapp/resultpage.scss +5 -0
  223. package/dist/cjs/packages/resultpage/style-jmapp/style.css +5 -0
  224. package/dist/cjs/packages/resultpage/style-jrkf/resultpage.scss +5 -0
  225. package/dist/cjs/packages/resultpage/style-jrkf/style.css +5 -0
  226. package/dist/cjs/packages/searchbar/style/searchbar.scss +5 -0
  227. package/dist/cjs/packages/searchbar/style/style.css +5 -0
  228. package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +5 -0
  229. package/dist/cjs/packages/searchbar/style-jmapp/style.css +5 -0
  230. package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +5 -0
  231. package/dist/cjs/packages/searchbar/style-jrkf/style.css +5 -0
  232. package/dist/cjs/packages/segmented/style/segmented.scss +5 -0
  233. package/dist/cjs/packages/segmented/style/style.css +5 -0
  234. package/dist/cjs/packages/segmented/style-jmapp/segmented.scss +5 -0
  235. package/dist/cjs/packages/segmented/style-jmapp/style.css +5 -0
  236. package/dist/cjs/packages/segmented/style-jrkf/segmented.scss +5 -0
  237. package/dist/cjs/packages/segmented/style-jrkf/style.css +5 -0
  238. package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
  239. package/dist/cjs/packages/shortpassword/style/style.css +1 -1
  240. package/dist/cjs/packages/sidebar/style/style.css +1 -1
  241. package/dist/cjs/packages/sidebaritem/style/sidebaritem.scss +2 -0
  242. package/dist/cjs/packages/sidebaritem/style/style.css +2 -0
  243. package/dist/cjs/packages/sidebaritem/style-jmapp/sidebaritem.scss +2 -0
  244. package/dist/cjs/packages/sidebaritem/style-jmapp/style.css +2 -0
  245. package/dist/cjs/packages/sidebaritem/style-jrkf/sidebaritem.scss +2 -0
  246. package/dist/cjs/packages/sidebaritem/style-jrkf/style.css +2 -0
  247. package/dist/cjs/packages/skeleton/skeleton.js +4 -2
  248. package/dist/cjs/packages/skeleton/style/skeleton.scss +5 -0
  249. package/dist/cjs/packages/skeleton/style/style.css +5 -0
  250. package/dist/cjs/packages/skeleton/style-jmapp/skeleton.scss +5 -0
  251. package/dist/cjs/packages/skeleton/style-jmapp/style.css +5 -0
  252. package/dist/cjs/packages/skeleton/style-jrkf/skeleton.scss +5 -0
  253. package/dist/cjs/packages/skeleton/style-jrkf/style.css +5 -0
  254. package/dist/cjs/packages/space/style/space.scss +2 -0
  255. package/dist/cjs/packages/space/style/style.css +2 -0
  256. package/dist/cjs/packages/space/style-jmapp/space.scss +2 -0
  257. package/dist/cjs/packages/space/style-jmapp/style.css +2 -0
  258. package/dist/cjs/packages/space/style-jrkf/space.scss +2 -0
  259. package/dist/cjs/packages/space/style-jrkf/style.css +2 -0
  260. package/dist/cjs/packages/steps/style/steps.scss +9 -0
  261. package/dist/cjs/packages/steps/style/style.css +10 -1
  262. package/dist/cjs/packages/steps/style-jmapp/steps.scss +9 -0
  263. package/dist/cjs/packages/steps/style-jmapp/style.css +9 -0
  264. package/dist/cjs/packages/steps/style-jrkf/steps.scss +9 -0
  265. package/dist/cjs/packages/steps/style-jrkf/style.css +9 -0
  266. package/dist/cjs/packages/swiper/effects/focus.js +4 -4
  267. package/dist/cjs/packages/swiper/index.js +1 -0
  268. package/dist/cjs/packages/switch/style/style.css +10 -0
  269. package/dist/cjs/packages/switch/style/switch.scss +10 -0
  270. package/dist/cjs/packages/switch/style-jmapp/style.css +10 -0
  271. package/dist/cjs/packages/switch/style-jmapp/switch.scss +10 -0
  272. package/dist/cjs/packages/switch/style-jrkf/style.css +10 -0
  273. package/dist/cjs/packages/switch/style-jrkf/switch.scss +10 -0
  274. package/dist/cjs/packages/switch/switch.js +18 -8
  275. package/dist/cjs/packages/tabbaritem/style/style.css +2 -2
  276. package/dist/cjs/packages/table/style/style.css +13 -1
  277. package/dist/cjs/packages/table/style/table.scss +13 -1
  278. package/dist/cjs/packages/table/style-jmapp/style.css +13 -1
  279. package/dist/cjs/packages/table/style-jmapp/table.scss +13 -1
  280. package/dist/cjs/packages/table/style-jrkf/style.css +13 -1
  281. package/dist/cjs/packages/table/style-jrkf/table.scss +13 -1
  282. package/dist/cjs/packages/tabpane/style/style.css +2 -0
  283. package/dist/cjs/packages/tabpane/style/tabpane.scss +2 -0
  284. package/dist/cjs/packages/tabpane/style-jmapp/style.css +2 -0
  285. package/dist/cjs/packages/tabpane/style-jmapp/tabpane.scss +2 -0
  286. package/dist/cjs/packages/tabpane/style-jrkf/style.css +2 -0
  287. package/dist/cjs/packages/tabpane/style-jrkf/tabpane.scss +2 -0
  288. package/dist/cjs/packages/tabs/style/style.css +5 -1
  289. package/dist/cjs/packages/tabs/style/tabs.scss +4 -0
  290. package/dist/cjs/packages/tabs/style-jmapp/style.css +4 -0
  291. package/dist/cjs/packages/tabs/style-jmapp/tabs.scss +4 -0
  292. package/dist/cjs/packages/tabs/style-jrkf/style.css +4 -0
  293. package/dist/cjs/packages/tabs/style-jrkf/tabs.scss +4 -0
  294. package/dist/cjs/packages/tag/style/style.css +6 -1
  295. package/dist/cjs/packages/tag/style/tag.scss +6 -1
  296. package/dist/cjs/packages/tag/style-jmapp/style.css +6 -1
  297. package/dist/cjs/packages/tag/style-jmapp/tag.scss +6 -1
  298. package/dist/cjs/packages/tag/style-jrkf/style.css +6 -1
  299. package/dist/cjs/packages/tag/style-jrkf/tag.scss +6 -1
  300. package/dist/cjs/packages/textarea/textarea.js +3 -1
  301. package/dist/cjs/packages/timeselect/style/style.css +2 -0
  302. package/dist/cjs/packages/timeselect/style/timeselect.scss +2 -0
  303. package/dist/cjs/packages/timeselect/style-jmapp/style.css +2 -0
  304. package/dist/cjs/packages/timeselect/style-jmapp/timeselect.scss +2 -0
  305. package/dist/cjs/packages/timeselect/style-jrkf/style.css +2 -0
  306. package/dist/cjs/packages/timeselect/style-jrkf/timeselect.scss +2 -0
  307. package/dist/cjs/packages/toast/Notification.js +3 -1
  308. package/dist/cjs/packages/toast/style/style.css +10 -1
  309. package/dist/cjs/packages/toast/style/toast.scss +9 -0
  310. package/dist/cjs/packages/toast/style-jmapp/style.css +9 -0
  311. package/dist/cjs/packages/toast/style-jmapp/toast.scss +9 -0
  312. package/dist/cjs/packages/toast/style-jrkf/style.css +9 -0
  313. package/dist/cjs/packages/toast/style-jrkf/toast.scss +9 -0
  314. package/dist/cjs/packages/tour/style/style.css +2 -0
  315. package/dist/cjs/packages/tour/style/tour.scss +2 -0
  316. package/dist/cjs/packages/tour/style-jmapp/style.css +2 -0
  317. package/dist/cjs/packages/tour/style-jmapp/tour.scss +2 -0
  318. package/dist/cjs/packages/tour/style-jrkf/style.css +2 -0
  319. package/dist/cjs/packages/tour/style-jrkf/tour.scss +2 -0
  320. package/dist/cjs/packages/uploader/style/style.css +2 -0
  321. package/dist/cjs/packages/uploader/style/uploader.scss +2 -0
  322. package/dist/cjs/packages/uploader/style-jmapp/style.css +2 -0
  323. package/dist/cjs/packages/uploader/style-jmapp/uploader.scss +2 -0
  324. package/dist/cjs/packages/uploader/style-jrkf/style.css +2 -0
  325. package/dist/cjs/packages/uploader/style-jrkf/uploader.scss +2 -0
  326. package/dist/cjs/packages/uploader/uploader.js +37 -30
  327. package/dist/cjs/packages/virtuallist/style/style.css +2 -0
  328. package/dist/cjs/packages/virtuallist/style/virtuallist.scss +2 -0
  329. package/dist/cjs/packages/virtuallist/style-jmapp/style.css +2 -0
  330. package/dist/cjs/packages/virtuallist/style-jmapp/virtuallist.scss +2 -0
  331. package/dist/cjs/packages/virtuallist/style-jrkf/style.css +2 -0
  332. package/dist/cjs/packages/virtuallist/style-jrkf/virtuallist.scss +2 -0
  333. package/dist/cjs/packages/virtuallist/utils.js +6 -6
  334. package/dist/cjs/packages/watermark/watermark.js +8 -4
  335. package/dist/cjs/types/spec/address/base.js +2 -0
  336. package/dist/cjs/types/spec/dialog/base.d.ts +2 -0
  337. package/dist/cjs/types/spec/input/base.d.ts +2 -1
  338. package/dist/cjs/types/spec/popup/base.d.ts +2 -0
  339. package/dist/cjs/types/spec/radio/base.d.ts +1 -0
  340. package/dist/cjs/types/spec/switch/base.d.ts +1 -0
  341. package/dist/cjs/types/spec/textarea/base.d.ts +1 -0
  342. package/dist/cjs/utils/date.js +5 -5
  343. package/dist/cjs/utils/event-mocker.js +18 -10
  344. package/dist/cjs/utils/get-rect.js +4 -4
  345. package/dist/cjs/utils/get-scroll-parent.js +3 -3
  346. package/dist/cjs/utils/merge-props.js +3 -3
  347. package/dist/cjs/utils/merge.js +6 -6
  348. package/dist/cjs/utils/raf.js +3 -3
  349. package/dist/cjs/utils/render.js +9 -5
  350. package/dist/cjs/utils/rubberband.js +3 -3
  351. package/dist/cjs/utils/taro/get-rect-by-id.js +13 -1
  352. package/dist/cjs/utils/taro/get-rect.js +24 -14
  353. package/dist/cjs/utils/taro/get-system-info.d.ts +3 -0
  354. package/dist/cjs/utils/taro/get-system-info.js +9 -8
  355. package/dist/cjs/utils/taro/platform.js +11 -10
  356. package/dist/cjs/utils/taro/px-transform.js +3 -2
  357. package/dist/es/hooks/taro/use-custom-event.js +2 -2
  358. package/dist/es/hooks/use-touch.js +1 -1
  359. package/dist/es/locales/base.d.ts +2 -0
  360. package/dist/es/locales/en-US.js +3 -1
  361. package/dist/es/locales/id-ID.js +3 -1
  362. package/dist/es/locales/ja-JP.js +3 -1
  363. package/dist/es/locales/tr-TR.js +3 -1
  364. package/dist/es/locales/zh-CN.js +3 -1
  365. package/dist/es/locales/zh-TW.js +3 -1
  366. package/dist/es/locales/zh-UG.js +3 -1
  367. package/dist/es/packages/actionsheet/style/actionsheet.scss +2 -0
  368. package/dist/es/packages/actionsheet/style/style.css +2 -0
  369. package/dist/es/packages/actionsheet/style-jmapp/actionsheet.scss +2 -0
  370. package/dist/es/packages/actionsheet/style-jmapp/style.css +2 -0
  371. package/dist/es/packages/actionsheet/style-jrkf/actionsheet.scss +2 -0
  372. package/dist/es/packages/actionsheet/style-jrkf/style.css +2 -0
  373. package/dist/es/packages/avatarcropper/avatarcropper.js +7 -4
  374. package/dist/es/packages/avatarcropper/style/avatarcropper.scss +2 -0
  375. package/dist/es/packages/avatarcropper/style/style.css +2 -0
  376. package/dist/es/packages/avatarcropper/style-jmapp/avatarcropper.scss +2 -0
  377. package/dist/es/packages/avatarcropper/style-jmapp/style.css +2 -0
  378. package/dist/es/packages/avatarcropper/style-jrkf/avatarcropper.scss +2 -0
  379. package/dist/es/packages/avatarcropper/style-jrkf/style.css +2 -0
  380. package/dist/es/packages/badge/style/badge.scss +11 -1
  381. package/dist/es/packages/badge/style/style.css +11 -1
  382. package/dist/es/packages/badge/style-jmapp/badge.scss +11 -1
  383. package/dist/es/packages/badge/style-jmapp/style.css +11 -1
  384. package/dist/es/packages/badge/style-jrkf/badge.scss +11 -1
  385. package/dist/es/packages/badge/style-jrkf/style.css +11 -1
  386. package/dist/es/packages/button/style/button.scss +6 -0
  387. package/dist/es/packages/button/style/style.css +11 -5
  388. package/dist/es/packages/button/style-jmapp/button.scss +6 -0
  389. package/dist/es/packages/button/style-jmapp/style.css +6 -0
  390. package/dist/es/packages/button/style-jrkf/button.scss +6 -0
  391. package/dist/es/packages/button/style-jrkf/style.css +6 -0
  392. package/dist/es/packages/calendar/style/style.css +2 -2
  393. package/dist/es/packages/calendarcard/style/style.css +1 -1
  394. package/dist/es/packages/cascader/cascader.js +21 -12
  395. package/dist/es/packages/cascader/style/cascader.scss +2 -0
  396. package/dist/es/packages/cascader/style/style.css +2 -0
  397. package/dist/es/packages/cascader/style-jmapp/cascader.scss +2 -0
  398. package/dist/es/packages/cascader/style-jmapp/style.css +2 -0
  399. package/dist/es/packages/cascader/style-jrkf/cascader.scss +2 -0
  400. package/dist/es/packages/cascader/style-jrkf/style.css +2 -0
  401. package/dist/es/packages/cellgroup/style/cellgroup.scss +4 -0
  402. package/dist/es/packages/cellgroup/style/style.css +4 -0
  403. package/dist/es/packages/cellgroup/style-jmapp/cellgroup.scss +4 -0
  404. package/dist/es/packages/cellgroup/style-jmapp/style.css +4 -0
  405. package/dist/es/packages/cellgroup/style-jrkf/cellgroup.scss +4 -0
  406. package/dist/es/packages/cellgroup/style-jrkf/style.css +4 -0
  407. package/dist/es/packages/checkbox/checkbox.js +1 -1
  408. package/dist/es/packages/checkbox/style/checkbox.scss +9 -0
  409. package/dist/es/packages/checkbox/style/style.css +10 -1
  410. package/dist/es/packages/checkbox/style-jmapp/checkbox.scss +9 -0
  411. package/dist/es/packages/checkbox/style-jmapp/style.css +9 -0
  412. package/dist/es/packages/checkbox/style-jrkf/checkbox.scss +9 -0
  413. package/dist/es/packages/checkbox/style-jrkf/style.css +9 -0
  414. package/dist/es/packages/checkboxgroup/style/checkboxgroup.scss +5 -0
  415. package/dist/es/packages/checkboxgroup/style/style.css +5 -0
  416. package/dist/es/packages/checkboxgroup/style-jmapp/checkboxgroup.scss +5 -0
  417. package/dist/es/packages/checkboxgroup/style-jmapp/style.css +5 -0
  418. package/dist/es/packages/checkboxgroup/style-jrkf/checkboxgroup.scss +5 -0
  419. package/dist/es/packages/checkboxgroup/style-jrkf/style.css +5 -0
  420. package/dist/es/packages/circleprogress/style/style.css +1 -1
  421. package/dist/es/packages/collapseitem/collapseitem.js +7 -4
  422. package/dist/es/packages/configprovider/types.d.ts +1 -1
  423. package/dist/es/packages/countdown/countdown.js +2 -1
  424. package/dist/es/packages/countup/style/countup.scss +5 -0
  425. package/dist/es/packages/countup/style/style.css +5 -0
  426. package/dist/es/packages/countup/style-jmapp/countup.scss +5 -0
  427. package/dist/es/packages/countup/style-jmapp/style.css +5 -0
  428. package/dist/es/packages/countup/style-jrkf/countup.scss +5 -0
  429. package/dist/es/packages/countup/style-jrkf/style.css +5 -0
  430. package/dist/es/packages/dialog/dialog.js +44 -13
  431. package/dist/es/packages/dialog/style/dialog.scss +53 -2
  432. package/dist/es/packages/dialog/style/style.css +52 -5
  433. package/dist/es/packages/dialog/style-jmapp/dialog.scss +53 -2
  434. package/dist/es/packages/dialog/style-jmapp/style.css +49 -2
  435. package/dist/es/packages/dialog/style-jrkf/dialog.scss +53 -2
  436. package/dist/es/packages/dialog/style-jrkf/style.css +49 -2
  437. package/dist/es/packages/divider/style/divider.scss +5 -0
  438. package/dist/es/packages/divider/style/style.css +5 -0
  439. package/dist/es/packages/divider/style-jmapp/divider.scss +5 -0
  440. package/dist/es/packages/divider/style-jmapp/style.css +5 -0
  441. package/dist/es/packages/divider/style-jrkf/divider.scss +5 -0
  442. package/dist/es/packages/divider/style-jrkf/style.css +5 -0
  443. package/dist/es/packages/drag/style/drag.scss +5 -0
  444. package/dist/es/packages/drag/style/style.css +5 -0
  445. package/dist/es/packages/drag/style-jmapp/drag.scss +5 -0
  446. package/dist/es/packages/drag/style-jmapp/style.css +5 -0
  447. package/dist/es/packages/drag/style-jrkf/drag.scss +5 -0
  448. package/dist/es/packages/drag/style-jrkf/style.css +5 -0
  449. package/dist/es/packages/elevator/style/elevator.scss +7 -0
  450. package/dist/es/packages/elevator/style/style.css +7 -0
  451. package/dist/es/packages/elevator/style-jmapp/elevator.scss +7 -0
  452. package/dist/es/packages/elevator/style-jmapp/style.css +7 -0
  453. package/dist/es/packages/elevator/style-jrkf/elevator.scss +7 -0
  454. package/dist/es/packages/elevator/style-jrkf/style.css +7 -0
  455. package/dist/es/packages/ellipsis/style/ellipsis.scss +2 -0
  456. package/dist/es/packages/ellipsis/style/style.css +2 -0
  457. package/dist/es/packages/ellipsis/style-jmapp/ellipsis.scss +2 -0
  458. package/dist/es/packages/ellipsis/style-jmapp/style.css +2 -0
  459. package/dist/es/packages/ellipsis/style-jrkf/ellipsis.scss +2 -0
  460. package/dist/es/packages/ellipsis/style-jrkf/style.css +2 -0
  461. package/dist/es/packages/empty/style/style.css +2 -2
  462. package/dist/es/packages/form/index.js +1 -0
  463. package/dist/es/packages/form/useform.js +53 -46
  464. package/dist/es/packages/indicator/style/indicator.scss +2 -0
  465. package/dist/es/packages/indicator/style/style.css +2 -0
  466. package/dist/es/packages/indicator/style-jmapp/indicator.scss +2 -0
  467. package/dist/es/packages/indicator/style-jmapp/style.css +2 -0
  468. package/dist/es/packages/indicator/style-jrkf/indicator.scss +2 -0
  469. package/dist/es/packages/indicator/style-jrkf/style.css +2 -0
  470. package/dist/es/packages/infiniteloading/infiniteloading.js +14 -8
  471. package/dist/es/packages/input/input.js +4 -3
  472. package/dist/es/packages/input/style/input.scss +1 -2
  473. package/dist/es/packages/input/style/style.css +1 -2
  474. package/dist/es/packages/input/style-jmapp/input.scss +1 -2
  475. package/dist/es/packages/input/style-jmapp/style.css +1 -2
  476. package/dist/es/packages/input/style-jrkf/input.scss +1 -2
  477. package/dist/es/packages/input/style-jrkf/style.css +1 -2
  478. package/dist/es/packages/inputnumber/inputnumber.js +28 -16
  479. package/dist/es/packages/inputnumber/style/inputnumber.scss +7 -1
  480. package/dist/es/packages/inputnumber/style/style.css +5 -0
  481. package/dist/es/packages/inputnumber/style-jmapp/inputnumber.scss +7 -1
  482. package/dist/es/packages/inputnumber/style-jmapp/style.css +5 -0
  483. package/dist/es/packages/inputnumber/style-jrkf/inputnumber.scss +7 -1
  484. package/dist/es/packages/inputnumber/style-jrkf/style.css +5 -0
  485. package/dist/es/packages/loading/style/loading.scss +5 -0
  486. package/dist/es/packages/loading/style/style.css +5 -0
  487. package/dist/es/packages/loading/style-jmapp/loading.scss +5 -0
  488. package/dist/es/packages/loading/style-jmapp/style.css +5 -0
  489. package/dist/es/packages/loading/style-jrkf/loading.scss +5 -0
  490. package/dist/es/packages/loading/style-jrkf/style.css +5 -0
  491. package/dist/es/packages/lottie/types.js +1 -1
  492. package/dist/es/packages/menuitem/style/menuitem.scss +7 -2
  493. package/dist/es/packages/menuitem/style/style.css +7 -2
  494. package/dist/es/packages/menuitem/style-jmapp/menuitem.scss +7 -2
  495. package/dist/es/packages/menuitem/style-jmapp/style.css +7 -2
  496. package/dist/es/packages/menuitem/style-jrkf/menuitem.scss +7 -2
  497. package/dist/es/packages/menuitem/style-jrkf/style.css +7 -2
  498. package/dist/es/packages/navbar/style/navbar.scss +2 -0
  499. package/dist/es/packages/navbar/style/style.css +3 -1
  500. package/dist/es/packages/navbar/style-jmapp/navbar.scss +2 -0
  501. package/dist/es/packages/navbar/style-jmapp/style.css +2 -0
  502. package/dist/es/packages/navbar/style-jrkf/navbar.scss +2 -0
  503. package/dist/es/packages/navbar/style-jrkf/style.css +2 -0
  504. package/dist/es/packages/noticebar/style/noticebar.scss +4 -0
  505. package/dist/es/packages/noticebar/style/style.css +4 -0
  506. package/dist/es/packages/noticebar/style-jmapp/noticebar.scss +4 -0
  507. package/dist/es/packages/noticebar/style-jmapp/style.css +4 -0
  508. package/dist/es/packages/noticebar/style-jrkf/noticebar.scss +4 -0
  509. package/dist/es/packages/noticebar/style-jrkf/style.css +4 -0
  510. package/dist/es/packages/notify/style/notify.scss +5 -0
  511. package/dist/es/packages/notify/style/style.css +5 -0
  512. package/dist/es/packages/notify/style-jmapp/notify.scss +5 -0
  513. package/dist/es/packages/notify/style-jmapp/style.css +5 -0
  514. package/dist/es/packages/notify/style-jrkf/notify.scss +5 -0
  515. package/dist/es/packages/notify/style-jrkf/style.css +5 -0
  516. package/dist/es/packages/numberkeyboard/style/numberkeyboard.scss +2 -0
  517. package/dist/es/packages/numberkeyboard/style/style.css +5 -3
  518. package/dist/es/packages/numberkeyboard/style-jmapp/numberkeyboard.scss +2 -0
  519. package/dist/es/packages/numberkeyboard/style-jmapp/style.css +2 -0
  520. package/dist/es/packages/numberkeyboard/style-jrkf/numberkeyboard.scss +2 -0
  521. package/dist/es/packages/numberkeyboard/style-jrkf/style.css +2 -0
  522. package/dist/es/packages/picker/style/style.css +2 -2
  523. package/dist/es/packages/pickerview/pickerview.js +2 -1
  524. package/dist/es/packages/popover/style/popover.scss +2 -0
  525. package/dist/es/packages/popover/style/style.css +2 -0
  526. package/dist/es/packages/popover/style-jmapp/popover.scss +2 -0
  527. package/dist/es/packages/popover/style-jmapp/style.css +2 -0
  528. package/dist/es/packages/popover/style-jrkf/popover.scss +2 -0
  529. package/dist/es/packages/popover/style-jrkf/style.css +2 -0
  530. package/dist/es/packages/popup/popup.js +24 -3
  531. package/dist/es/packages/popup/style/popup.scss +4 -0
  532. package/dist/es/packages/popup/style/style.css +5 -2
  533. package/dist/es/packages/popup/style-jmapp/popup.scss +4 -0
  534. package/dist/es/packages/popup/style-jmapp/style.css +3 -0
  535. package/dist/es/packages/popup/style-jrkf/popup.scss +4 -0
  536. package/dist/es/packages/popup/style-jrkf/style.css +3 -0
  537. package/dist/es/packages/price/style/style.css +1 -1
  538. package/dist/es/packages/pulltorefresh/pulltorefresh.js +51 -41
  539. package/dist/es/packages/radio/index.js +1 -0
  540. package/dist/es/packages/radio/style/radio.scss +10 -0
  541. package/dist/es/packages/radio/style/style.css +11 -1
  542. package/dist/es/packages/radio/style-jmapp/radio.scss +10 -0
  543. package/dist/es/packages/radio/style-jmapp/style.css +10 -0
  544. package/dist/es/packages/radio/style-jrkf/radio.scss +10 -0
  545. package/dist/es/packages/radio/style-jrkf/style.css +10 -0
  546. package/dist/es/packages/range/style/range.scss +15 -2
  547. package/dist/es/packages/range/style/style.css +15 -1
  548. package/dist/es/packages/range/style-jmapp/range.scss +15 -2
  549. package/dist/es/packages/range/style-jmapp/style.css +15 -1
  550. package/dist/es/packages/range/style-jrkf/range.scss +15 -2
  551. package/dist/es/packages/range/style-jrkf/style.css +15 -1
  552. package/dist/es/packages/rate/style/rate.scss +5 -0
  553. package/dist/es/packages/rate/style/style.css +5 -0
  554. package/dist/es/packages/rate/style-jmapp/rate.scss +5 -0
  555. package/dist/es/packages/rate/style-jmapp/style.css +5 -0
  556. package/dist/es/packages/rate/style-jrkf/rate.scss +5 -0
  557. package/dist/es/packages/rate/style-jrkf/style.css +5 -0
  558. package/dist/es/packages/resultpage/style/resultpage.scss +5 -0
  559. package/dist/es/packages/resultpage/style/style.css +5 -0
  560. package/dist/es/packages/resultpage/style-jmapp/resultpage.scss +5 -0
  561. package/dist/es/packages/resultpage/style-jmapp/style.css +5 -0
  562. package/dist/es/packages/resultpage/style-jrkf/resultpage.scss +5 -0
  563. package/dist/es/packages/resultpage/style-jrkf/style.css +5 -0
  564. package/dist/es/packages/searchbar/style/searchbar.scss +5 -0
  565. package/dist/es/packages/searchbar/style/style.css +5 -0
  566. package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +5 -0
  567. package/dist/es/packages/searchbar/style-jmapp/style.css +5 -0
  568. package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +5 -0
  569. package/dist/es/packages/searchbar/style-jrkf/style.css +5 -0
  570. package/dist/es/packages/segmented/style/segmented.scss +5 -0
  571. package/dist/es/packages/segmented/style/style.css +5 -0
  572. package/dist/es/packages/segmented/style-jmapp/segmented.scss +5 -0
  573. package/dist/es/packages/segmented/style-jmapp/style.css +5 -0
  574. package/dist/es/packages/segmented/style-jrkf/segmented.scss +5 -0
  575. package/dist/es/packages/segmented/style-jrkf/style.css +5 -0
  576. package/dist/es/packages/shortpassword/style/style.css +1 -1
  577. package/dist/es/packages/sidebar/style/style.css +1 -1
  578. package/dist/es/packages/sidebaritem/style/sidebaritem.scss +2 -0
  579. package/dist/es/packages/sidebaritem/style/style.css +2 -0
  580. package/dist/es/packages/sidebaritem/style-jmapp/sidebaritem.scss +2 -0
  581. package/dist/es/packages/sidebaritem/style-jmapp/style.css +2 -0
  582. package/dist/es/packages/sidebaritem/style-jrkf/sidebaritem.scss +2 -0
  583. package/dist/es/packages/sidebaritem/style-jrkf/style.css +2 -0
  584. package/dist/es/packages/skeleton/skeleton.js +4 -2
  585. package/dist/es/packages/skeleton/style/skeleton.scss +5 -0
  586. package/dist/es/packages/skeleton/style/style.css +5 -0
  587. package/dist/es/packages/skeleton/style-jmapp/skeleton.scss +5 -0
  588. package/dist/es/packages/skeleton/style-jmapp/style.css +5 -0
  589. package/dist/es/packages/skeleton/style-jrkf/skeleton.scss +5 -0
  590. package/dist/es/packages/skeleton/style-jrkf/style.css +5 -0
  591. package/dist/es/packages/space/style/space.scss +2 -0
  592. package/dist/es/packages/space/style/style.css +2 -0
  593. package/dist/es/packages/space/style-jmapp/space.scss +2 -0
  594. package/dist/es/packages/space/style-jmapp/style.css +2 -0
  595. package/dist/es/packages/space/style-jrkf/space.scss +2 -0
  596. package/dist/es/packages/space/style-jrkf/style.css +2 -0
  597. package/dist/es/packages/steps/style/steps.scss +9 -0
  598. package/dist/es/packages/steps/style/style.css +10 -1
  599. package/dist/es/packages/steps/style-jmapp/steps.scss +9 -0
  600. package/dist/es/packages/steps/style-jmapp/style.css +9 -0
  601. package/dist/es/packages/steps/style-jrkf/steps.scss +9 -0
  602. package/dist/es/packages/steps/style-jrkf/style.css +9 -0
  603. package/dist/es/packages/swiper/index.js +1 -0
  604. package/dist/es/packages/switch/style/style.css +10 -0
  605. package/dist/es/packages/switch/style/switch.scss +10 -0
  606. package/dist/es/packages/switch/style-jmapp/style.css +10 -0
  607. package/dist/es/packages/switch/style-jmapp/switch.scss +10 -0
  608. package/dist/es/packages/switch/style-jrkf/style.css +10 -0
  609. package/dist/es/packages/switch/style-jrkf/switch.scss +10 -0
  610. package/dist/es/packages/switch/switch.js +18 -8
  611. package/dist/es/packages/tabbaritem/style/style.css +2 -2
  612. package/dist/es/packages/table/style/style.css +13 -1
  613. package/dist/es/packages/table/style/table.scss +13 -1
  614. package/dist/es/packages/table/style-jmapp/style.css +13 -1
  615. package/dist/es/packages/table/style-jmapp/table.scss +13 -1
  616. package/dist/es/packages/table/style-jrkf/style.css +13 -1
  617. package/dist/es/packages/table/style-jrkf/table.scss +13 -1
  618. package/dist/es/packages/tabpane/style/style.css +2 -0
  619. package/dist/es/packages/tabpane/style/tabpane.scss +2 -0
  620. package/dist/es/packages/tabpane/style-jmapp/style.css +2 -0
  621. package/dist/es/packages/tabpane/style-jmapp/tabpane.scss +2 -0
  622. package/dist/es/packages/tabpane/style-jrkf/style.css +2 -0
  623. package/dist/es/packages/tabpane/style-jrkf/tabpane.scss +2 -0
  624. package/dist/es/packages/tabs/style/style.css +5 -1
  625. package/dist/es/packages/tabs/style/tabs.scss +4 -0
  626. package/dist/es/packages/tabs/style-jmapp/style.css +4 -0
  627. package/dist/es/packages/tabs/style-jmapp/tabs.scss +4 -0
  628. package/dist/es/packages/tabs/style-jrkf/style.css +4 -0
  629. package/dist/es/packages/tabs/style-jrkf/tabs.scss +4 -0
  630. package/dist/es/packages/tag/style/style.css +6 -1
  631. package/dist/es/packages/tag/style/tag.scss +6 -1
  632. package/dist/es/packages/tag/style-jmapp/style.css +6 -1
  633. package/dist/es/packages/tag/style-jmapp/tag.scss +6 -1
  634. package/dist/es/packages/tag/style-jrkf/style.css +6 -1
  635. package/dist/es/packages/tag/style-jrkf/tag.scss +6 -1
  636. package/dist/es/packages/textarea/textarea.js +3 -1
  637. package/dist/es/packages/timeselect/style/style.css +2 -0
  638. package/dist/es/packages/timeselect/style/timeselect.scss +2 -0
  639. package/dist/es/packages/timeselect/style-jmapp/style.css +2 -0
  640. package/dist/es/packages/timeselect/style-jmapp/timeselect.scss +2 -0
  641. package/dist/es/packages/timeselect/style-jrkf/style.css +2 -0
  642. package/dist/es/packages/timeselect/style-jrkf/timeselect.scss +2 -0
  643. package/dist/es/packages/toast/Notification.js +3 -1
  644. package/dist/es/packages/toast/style/style.css +10 -1
  645. package/dist/es/packages/toast/style/toast.scss +9 -0
  646. package/dist/es/packages/toast/style-jmapp/style.css +9 -0
  647. package/dist/es/packages/toast/style-jmapp/toast.scss +9 -0
  648. package/dist/es/packages/toast/style-jrkf/style.css +9 -0
  649. package/dist/es/packages/toast/style-jrkf/toast.scss +9 -0
  650. package/dist/es/packages/tour/style/style.css +2 -0
  651. package/dist/es/packages/tour/style/tour.scss +2 -0
  652. package/dist/es/packages/tour/style-jmapp/style.css +2 -0
  653. package/dist/es/packages/tour/style-jmapp/tour.scss +2 -0
  654. package/dist/es/packages/tour/style-jrkf/style.css +2 -0
  655. package/dist/es/packages/tour/style-jrkf/tour.scss +2 -0
  656. package/dist/es/packages/uploader/style/style.css +2 -0
  657. package/dist/es/packages/uploader/style/uploader.scss +2 -0
  658. package/dist/es/packages/uploader/style-jmapp/style.css +2 -0
  659. package/dist/es/packages/uploader/style-jmapp/uploader.scss +2 -0
  660. package/dist/es/packages/uploader/style-jrkf/style.css +2 -0
  661. package/dist/es/packages/uploader/style-jrkf/uploader.scss +2 -0
  662. package/dist/es/packages/uploader/uploader.js +37 -30
  663. package/dist/es/packages/virtuallist/style/style.css +2 -0
  664. package/dist/es/packages/virtuallist/style/virtuallist.scss +2 -0
  665. package/dist/es/packages/virtuallist/style-jmapp/style.css +2 -0
  666. package/dist/es/packages/virtuallist/style-jmapp/virtuallist.scss +2 -0
  667. package/dist/es/packages/virtuallist/style-jrkf/style.css +2 -0
  668. package/dist/es/packages/virtuallist/style-jrkf/virtuallist.scss +2 -0
  669. package/dist/es/packages/watermark/watermark.js +8 -4
  670. package/dist/es/types/spec/address/base.js +1 -1
  671. package/dist/es/types/spec/dialog/base.d.ts +8 -0
  672. package/dist/es/types/spec/input/base.d.ts +5 -1
  673. package/dist/es/types/spec/popup/base.d.ts +8 -0
  674. package/dist/es/types/spec/radio/base.d.ts +1 -0
  675. package/dist/es/types/spec/switch/base.d.ts +1 -0
  676. package/dist/es/types/spec/textarea/base.d.ts +1 -0
  677. package/dist/es/utils/event-mocker.js +12 -4
  678. package/dist/es/utils/render.js +6 -2
  679. package/dist/es/utils/taro/get-rect-by-id.js +13 -1
  680. package/dist/es/utils/taro/get-rect.js +20 -10
  681. package/dist/es/utils/taro/get-system-info.d.ts +3 -0
  682. package/dist/es/utils/taro/get-system-info.js +7 -4
  683. package/dist/es/utils/taro/platform.js +5 -5
  684. package/dist/es/utils/taro/px-transform.js +2 -2
  685. package/dist/nutui.react.umd.js +677 -419
  686. package/dist/style-jmapp.css +1 -1
  687. package/dist/style-jmapp.scss +38 -38
  688. package/dist/style-jrkf.css +1 -1
  689. package/dist/style-jrkf.scss +35 -35
  690. package/dist/style.css +1 -1
  691. package/dist/style.scss +41 -41
  692. package/dist/styles/theme-daojia.scss +369 -0
  693. package/dist/styles/theme-dark-daojia.scss +365 -0
  694. package/dist/styles/theme-dark.scss +2 -1
  695. package/dist/styles/theme-default.scss +4 -1
  696. package/dist/styles/themes/daojia.css +1 -0
  697. package/dist/styles/themes/dark-daojia.css +1 -0
  698. package/dist/styles/themes/dark.css +1 -1
  699. package/dist/styles/themes/default.css +1 -1
  700. package/dist/styles/variables-daojia.scss +2583 -0
  701. package/dist/styles/variables-jmapp.scss +42 -0
  702. package/dist/styles/variables-jrkf.scss +42 -0
  703. package/dist/styles/variables.scss +55 -12
  704. package/package.json +1 -1
@@ -152,7 +152,9 @@
152
152
  var classnamesExports = classnames.exports;
153
153
  const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
154
154
  const n$b = {
155
- classPrefix: "nut-icon"
155
+ classPrefix: "nut-icon",
156
+ tag: "i",
157
+ fontClassName: "nutui-iconfont"
156
158
  };
157
159
  var re = { exports: {} }, Y = {};
158
160
  /**
@@ -415,18 +417,18 @@
415
417
  if (p2 && n2 && typeof p2.stack == "string") {
416
418
  for (var a = p2.stack.split(`
417
419
  `), v = n2.stack.split(`
418
- `), l2 = a.length - 1, c2 = v.length - 1; l2 >= 1 && c2 >= 0 && a[l2] !== v[c2]; )
419
- c2--;
420
- for (; l2 >= 1 && c2 >= 0; l2--, c2--)
421
- if (a[l2] !== v[c2]) {
422
- if (l2 !== 1 || c2 !== 1)
420
+ `), l2 = a.length - 1, c6 = v.length - 1; l2 >= 1 && c6 >= 0 && a[l2] !== v[c6]; )
421
+ c6--;
422
+ for (; l2 >= 1 && c6 >= 0; l2--, c6--)
423
+ if (a[l2] !== v[c6]) {
424
+ if (l2 !== 1 || c6 !== 1)
423
425
  do
424
- if (l2--, c2--, c2 < 0 || a[l2] !== v[c2]) {
426
+ if (l2--, c6--, c6 < 0 || a[l2] !== v[c6]) {
425
427
  var g = `
426
428
  ` + a[l2].replace(" at new ", " at ");
427
429
  return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, g), g;
428
430
  }
429
- while (l2 >= 1 && c2 >= 0);
431
+ while (l2 >= 1 && c6 >= 0);
430
432
  break;
431
433
  }
432
434
  }
@@ -611,8 +613,8 @@
611
613
  i2[s2] === void 0 && (i2[s2] = l2[s2]);
612
614
  }
613
615
  if (a || v) {
614
- var c2 = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
615
- a && Ze(i2, c2), v && Qe(i2, c2);
616
+ var c6 = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
617
+ a && Ze(i2, c6), v && Qe(i2, c6);
616
618
  }
617
619
  return er(e, a, v, o, n2, W.current, i2);
618
620
  }
@@ -741,9 +743,9 @@ Check the top-level render call using <` + t + ">.");
741
743
  var l2;
742
744
  e === null ? l2 = "null" : z(e) ? l2 = "array" : e !== void 0 && e.$$typeof === E ? (l2 = "<" + (b(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l2 = typeof e, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l2, a);
743
745
  }
744
- var c2 = rr(e, r, t, o, s2);
745
- if (c2 == null)
746
- return c2;
746
+ var c6 = rr(e, r, t, o, s2);
747
+ if (c6 == null)
748
+ return c6;
747
749
  if (i2) {
748
750
  var g = r.children;
749
751
  if (g !== void 0)
@@ -771,7 +773,7 @@ React keys must be passed directly to JSX without using spread:
771
773
  <%s key={someKey} {...props} />`, ee, O, cr, O), Ce[O + ee] = true;
772
774
  }
773
775
  }
774
- return e === R ? ir(c2) : ar(c2), c2;
776
+ return e === R ? ir(c6) : ar(c6), c6;
775
777
  }
776
778
  }
777
779
  function or(e, r, t) {
@@ -861,8 +863,8 @@ React keys must be passed directly to JSX without using spread:
861
863
  ) });
862
864
  };
863
865
  const d$e = (s2) => {
864
- const c2 = { ...hr, ...s2 };
865
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Ask", viewBox: "0 0 1024 1024", children: [
866
+ const c6 = { ...hr, ...s2 };
867
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Ask", viewBox: "0 0 1024 1024", children: [
866
868
  /* @__PURE__ */ xe(
867
869
  "path",
868
870
  {
@@ -930,8 +932,8 @@ React keys must be passed directly to JSX without using spread:
930
932
  }
931
933
  ) });
932
934
  };
933
- const n$5 = (c2) => {
934
- const o = { ...hr, ...c2 };
935
+ const n$5 = (c6) => {
936
+ const o = { ...hr, ...c6 };
935
937
  return /* @__PURE__ */ xe(Rr, { ...o, name: o.name || "Close", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ xe(
936
938
  "path",
937
939
  {
@@ -941,8 +943,8 @@ React keys must be passed directly to JSX without using spread:
941
943
  ) });
942
944
  };
943
945
  const d$d = (a) => {
944
- const c2 = { ...hr, ...a };
945
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Del", viewBox: "0 0 1024 1024", children: [
946
+ const c6 = { ...hr, ...a };
947
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Del", viewBox: "0 0 1024 1024", children: [
946
948
  /* @__PURE__ */ xe(
947
949
  "path",
948
950
  {
@@ -1061,8 +1063,8 @@ React keys must be passed directly to JSX without using spread:
1061
1063
  ) });
1062
1064
  };
1063
1065
  const m$1 = (o) => {
1064
- const c2 = { ...hr, ...o };
1065
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Location", viewBox: "0 0 1024 1024", children: [
1066
+ const c6 = { ...hr, ...o };
1067
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Location", viewBox: "0 0 1024 1024", children: [
1066
1068
  /* @__PURE__ */ xe(
1067
1069
  "path",
1068
1070
  {
@@ -1111,8 +1113,8 @@ React keys must be passed directly to JSX without using spread:
1111
1113
  ) });
1112
1114
  };
1113
1115
  const n$3 = (r) => {
1114
- const c2 = { ...hr, ...r };
1115
- return /* @__PURE__ */ xe(Rr, { ...c2, name: c2.name || "Notice", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ xe(
1116
+ const c6 = { ...hr, ...r };
1117
+ return /* @__PURE__ */ xe(Rr, { ...c6, name: c6.name || "Notice", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ xe(
1116
1118
  "path",
1117
1119
  {
1118
1120
  d: "M544 21.33C544 9.6 534.4 0 522.67 0h-21.34C489.6 0 480 9.6 480 21.33v65.5c-179.41 16.21-320 167.04-320 350.5v226.35c0 26.45-6.19 52.69-17.92 76.37l-36.48 72.96c-14.29 28.37 6.4 61.65 38.19 61.66h736.42c31.79 0 52.27-33.28 38.19-61.66l-36.48-72.96A172.4 172.4 0 0 1 864 663.68V437.33c0-183.68-140.59-334.51-320-350.5zm-32 128c159.15 0 288 128.85 288 288v226.35c0 36.48 8.53 72.32 24.75 104.96l21.12 42.03H178.13l21.12-42.03C215.46 736 224 700.16 224 663.68V437.33c0-159.15 128.85-288 288-288M405.33 1024c-11.73 0-21.33-9.6-21.33-21.33v-21.34c0-11.73 9.6-21.33 21.33-21.33h213.34c11.73 0 21.33 9.6 21.33 21.33v21.34c0 11.73-9.6 21.33-21.33 21.33z",
@@ -1121,8 +1123,8 @@ React keys must be passed directly to JSX without using spread:
1121
1123
  ) });
1122
1124
  };
1123
1125
  const m = (o) => {
1124
- const c2 = { ...hr, ...o };
1125
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Photograph", viewBox: "0 0 1024 1024", children: [
1126
+ const c6 = { ...hr, ...o };
1127
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Photograph", viewBox: "0 0 1024 1024", children: [
1126
1128
  /* @__PURE__ */ xe(
1127
1129
  "path",
1128
1130
  {
@@ -1160,8 +1162,8 @@ React keys must be passed directly to JSX without using spread:
1160
1162
  }
1161
1163
  ) });
1162
1164
  };
1163
- const n$1 = (c2) => {
1164
- const a = { ...hr, ...c2 };
1165
+ const n$1 = (c6) => {
1166
+ const a = { ...hr, ...c6 };
1165
1167
  return /* @__PURE__ */ Er(Rr, { ...a, name: a.name || "Service", viewBox: "0 0 1024 1024", children: [
1166
1168
  /* @__PURE__ */ xe(
1167
1169
  "path",
@@ -1211,8 +1213,8 @@ React keys must be passed directly to JSX without using spread:
1211
1213
  ] });
1212
1214
  };
1213
1215
  const p$1 = (o) => {
1214
- const c2 = { ...hr, ...o };
1215
- return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Tips", viewBox: "0 0 1024 1024", children: [
1216
+ const c6 = { ...hr, ...o };
1217
+ return /* @__PURE__ */ Er(Rr, { ...c6, name: c6.name || "Tips", viewBox: "0 0 1024 1024", children: [
1216
1218
  /* @__PURE__ */ xe(
1217
1219
  "path",
1218
1220
  {
@@ -1790,6 +1792,7 @@ React keys must be passed directly to JSX without using spread:
1790
1792
  select: "请选择",
1791
1793
  edit: "编辑",
1792
1794
  reset: "重置",
1795
+ close: "关闭",
1793
1796
  video: {
1794
1797
  errorTip: "视频加载失败",
1795
1798
  clickRetry: "点击重试"
@@ -1935,7 +1938,8 @@ React keys must be passed directly to JSX without using spread:
1935
1938
  },
1936
1939
  watermark: {
1937
1940
  errorCanvasTips: "当前环境不支持Canvas"
1938
- }
1941
+ },
1942
+ mask: "蒙层"
1939
1943
  };
1940
1944
  function bound(position2, min, max) {
1941
1945
  var ret = position2;
@@ -1948,7 +1952,7 @@ React keys must be passed directly to JSX without using spread:
1948
1952
  return ret;
1949
1953
  }
1950
1954
  var canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
1951
- var clamp$1 = function(num, min, max) {
1955
+ var clamp$2 = function(num, min, max) {
1952
1956
  return Math.min(Math.max(num, min), max);
1953
1957
  };
1954
1958
  function _array_like_to_array(arr, len) {
@@ -2655,7 +2659,10 @@ React keys must be passed directly to JSX without using spread:
2655
2659
  return unmountComponentAtNode(container);
2656
2660
  }
2657
2661
  function concurrentUnmount(container) {
2658
- return _async_to_generator(function() {
2662
+ return _concurrentUnmount.apply(this, arguments);
2663
+ }
2664
+ function _concurrentUnmount() {
2665
+ _concurrentUnmount = _async_to_generator(function(container) {
2659
2666
  return __generator(this, function(_state) {
2660
2667
  return [
2661
2668
  2,
@@ -2666,7 +2673,8 @@ React keys must be passed directly to JSX without using spread:
2666
2673
  })
2667
2674
  ];
2668
2675
  });
2669
- })();
2676
+ });
2677
+ return _concurrentUnmount.apply(this, arguments);
2670
2678
  }
2671
2679
  function unmount(container) {
2672
2680
  if (createRoot) {
@@ -3053,7 +3061,7 @@ React keys must be passed directly to JSX without using spread:
3053
3061
  if (null == r) return {};
3054
3062
  var t = {};
3055
3063
  for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
3056
- if (-1 !== e.indexOf(n2)) continue;
3064
+ if (e.includes(n2)) continue;
3057
3065
  t[n2] = r[n2];
3058
3066
  }
3059
3067
  return t;
@@ -3081,12 +3089,12 @@ React keys must be passed directly to JSX without using spread:
3081
3089
  function requireReactIs_production_min() {
3082
3090
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
3083
3091
  hasRequiredReactIs_production_min = 1;
3084
- var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p2 = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
3092
+ var b = "function" === typeof Symbol && Symbol.for, c6 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p2 = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
3085
3093
  function z(a) {
3086
3094
  if ("object" === typeof a && null !== a) {
3087
3095
  var u = a.$$typeof;
3088
3096
  switch (u) {
3089
- case c2:
3097
+ case c6:
3090
3098
  switch (a = a.type, a) {
3091
3099
  case l2:
3092
3100
  case m2:
@@ -3119,7 +3127,7 @@ React keys must be passed directly to JSX without using spread:
3119
3127
  reactIs_production_min.ConcurrentMode = m2;
3120
3128
  reactIs_production_min.ContextConsumer = k;
3121
3129
  reactIs_production_min.ContextProvider = h;
3122
- reactIs_production_min.Element = c2;
3130
+ reactIs_production_min.Element = c6;
3123
3131
  reactIs_production_min.ForwardRef = n2;
3124
3132
  reactIs_production_min.Fragment = e;
3125
3133
  reactIs_production_min.Lazy = t;
@@ -3139,7 +3147,7 @@ React keys must be passed directly to JSX without using spread:
3139
3147
  return z(a) === h;
3140
3148
  };
3141
3149
  reactIs_production_min.isElement = function(a) {
3142
- return "object" === typeof a && null !== a && a.$$typeof === c2;
3150
+ return "object" === typeof a && null !== a && a.$$typeof === c6;
3143
3151
  };
3144
3152
  reactIs_production_min.isForwardRef = function(a) {
3145
3153
  return z(a) === n2;
@@ -4473,13 +4481,13 @@ React keys must be passed directly to JSX without using spread:
4473
4481
  Transition.ENTERED = ENTERED;
4474
4482
  Transition.EXITING = EXITING;
4475
4483
  var _addClass = function addClass$1(node, classes) {
4476
- return node && classes && classes.split(" ").forEach(function(c2) {
4477
- return addClass(node, c2);
4484
+ return node && classes && classes.split(" ").forEach(function(c6) {
4485
+ return addClass(node, c6);
4478
4486
  });
4479
4487
  };
4480
4488
  var removeClass = function removeClass2(node, classes) {
4481
- return node && classes && classes.split(" ").forEach(function(c2) {
4482
- return removeClass$1(node, c2);
4489
+ return node && classes && classes.split(" ").forEach(function(c6) {
4490
+ return removeClass$1(node, c6);
4483
4491
  });
4484
4492
  };
4485
4493
  var CSSTransition = /* @__PURE__ */ function(_React$Component) {
@@ -5611,7 +5619,7 @@ React keys must be passed directly to JSX without using spread:
5611
5619
  }, children));
5612
5620
  };
5613
5621
  BackTop.displayName = "NutBackTop";
5614
- function clamp(v, min, max) {
5622
+ function clamp$1(v, min, max) {
5615
5623
  return Math.max(min, Math.min(v, max));
5616
5624
  }
5617
5625
  const V = {
@@ -5639,7 +5647,7 @@ React keys must be passed directly to JSX without using spread:
5639
5647
  return distance * dimension * constant / (dimension + constant * distance);
5640
5648
  }
5641
5649
  function rubberbandIfOutOfBounds(position2, min, max, constant = 0.15) {
5642
- if (constant === 0) return clamp(position2, min, max);
5650
+ if (constant === 0) return clamp$1(position2, min, max);
5643
5651
  if (position2 < min) return -rubberband(min - position2, max - min, constant) + min;
5644
5652
  if (position2 > max) return +rubberband(position2 - max, max - min, constant) + max;
5645
5653
  return position2;
@@ -6200,8 +6208,8 @@ React keys must be passed directly to JSX without using spread:
6200
6208
  const DISPLACEMENT = 10;
6201
6209
  const KEYS_DELTA_MAP = {
6202
6210
  ArrowRight: (factor = 1) => [DISPLACEMENT * factor, 0],
6203
- ArrowLeft: (factor = 1) => [-DISPLACEMENT * factor, 0],
6204
- ArrowUp: (factor = 1) => [0, -DISPLACEMENT * factor],
6211
+ ArrowLeft: (factor = 1) => [-10 * factor, 0],
6212
+ ArrowUp: (factor = 1) => [0, -10 * factor],
6205
6213
  ArrowDown: (factor = 1) => [0, DISPLACEMENT * factor]
6206
6214
  };
6207
6215
  class DragEngine extends CoordinatesEngine {
@@ -7733,6 +7741,7 @@ Please add \`${key2}Action\` when creating your handler.`);
7733
7741
  const index2 = arr.findIndex(test);
7734
7742
  return index2 < 0 ? arr.length : index2;
7735
7743
  }
7744
+ const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
7736
7745
  const colors = {
7737
7746
  transparent: 0,
7738
7747
  aliceblue: 4042850303,
@@ -8026,8 +8035,63 @@ Please add \`${key2}Action\` when creating your handler.`);
8026
8035
  for (var i2 = 1; i2 < inputRange.length - 1; ++i2) if (inputRange[i2] >= input) break;
8027
8036
  return i2 - 1;
8028
8037
  }
8038
+ const steps = (steps2, direction = "end") => (progress) => {
8039
+ progress = direction === "end" ? Math.min(progress, 0.999) : Math.max(progress, 1e-3);
8040
+ const expanded = progress * steps2;
8041
+ const rounded = direction === "end" ? Math.floor(expanded) : Math.ceil(expanded);
8042
+ return clamp(0, 1, rounded / steps2);
8043
+ };
8044
+ const c1 = 1.70158;
8045
+ const c2 = c1 * 1.525;
8046
+ const c3 = c1 + 1;
8047
+ const c4 = 2 * Math.PI / 3;
8048
+ const c5 = 2 * Math.PI / 4.5;
8049
+ const bounceOut = (x) => {
8050
+ const n1 = 7.5625;
8051
+ const d1 = 2.75;
8052
+ if (x < 1 / d1) {
8053
+ return n1 * x * x;
8054
+ } else if (x < 2 / d1) {
8055
+ return n1 * (x -= 1.5 / d1) * x + 0.75;
8056
+ } else if (x < 2.5 / d1) {
8057
+ return n1 * (x -= 2.25 / d1) * x + 0.9375;
8058
+ } else {
8059
+ return n1 * (x -= 2.625 / d1) * x + 0.984375;
8060
+ }
8061
+ };
8029
8062
  const easings = {
8030
- linear: (x) => x
8063
+ linear: (x) => x,
8064
+ easeInQuad: (x) => x * x,
8065
+ easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
8066
+ easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
8067
+ easeInCubic: (x) => x * x * x,
8068
+ easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
8069
+ easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
8070
+ easeInQuart: (x) => x * x * x * x,
8071
+ easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
8072
+ easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
8073
+ easeInQuint: (x) => x * x * x * x * x,
8074
+ easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
8075
+ easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
8076
+ easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
8077
+ easeOutSine: (x) => Math.sin(x * Math.PI / 2),
8078
+ easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
8079
+ easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
8080
+ easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
8081
+ easeInOutExpo: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? Math.pow(2, 20 * x - 10) / 2 : (2 - Math.pow(2, -20 * x + 10)) / 2,
8082
+ easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
8083
+ easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
8084
+ easeInOutCirc: (x) => x < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x + 2, 2)) + 1) / 2,
8085
+ easeInBack: (x) => c3 * x * x * x - c1 * x * x,
8086
+ easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
8087
+ easeInOutBack: (x) => x < 0.5 ? Math.pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2) / 2 : (Math.pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2,
8088
+ easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
8089
+ easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
8090
+ easeInOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / 2 : Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5) / 2 + 1,
8091
+ easeInBounce: (x) => 1 - bounceOut(1 - x),
8092
+ easeOutBounce: bounceOut,
8093
+ easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2,
8094
+ steps
8031
8095
  };
8032
8096
  function _extends$3() {
8033
8097
  _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
@@ -8219,7 +8283,7 @@ Please add \`${key2}Action\` when creating your handler.`);
8219
8283
  const prevCache = committed.current;
8220
8284
  let cache = prevCache;
8221
8285
  if (cache) {
8222
- const useCache = Boolean(inputs && cache.inputs && areInputsEqual(inputs, cache.inputs));
8286
+ const useCache = Boolean(cache.inputs && areInputsEqual(inputs, cache.inputs));
8223
8287
  if (!useCache) {
8224
8288
  cache = {
8225
8289
  inputs,
@@ -8681,6 +8745,26 @@ Please add \`${key2}Action\` when creating your handler.`);
8681
8745
  default: {
8682
8746
  tension: 170,
8683
8747
  friction: 26
8748
+ },
8749
+ gentle: {
8750
+ tension: 120,
8751
+ friction: 14
8752
+ },
8753
+ wobbly: {
8754
+ tension: 180,
8755
+ friction: 12
8756
+ },
8757
+ stiff: {
8758
+ tension: 210,
8759
+ friction: 20
8760
+ },
8761
+ slow: {
8762
+ tension: 280,
8763
+ friction: 60
8764
+ },
8765
+ molasses: {
8766
+ tension: 280,
8767
+ friction: 120
8684
8768
  }
8685
8769
  };
8686
8770
  const defaults = _extends$1({}, config$1.default, {
@@ -9032,8 +9116,8 @@ Please add \`${key2}Action\` when creating your handler.`);
9032
9116
  const hasAnimated = (target) => (target[$P] & HAS_ANIMATED) > 0;
9033
9117
  const isAnimating = (target) => (target[$P] & IS_ANIMATING) > 0;
9034
9118
  const isPaused = (target) => (target[$P] & IS_PAUSED) > 0;
9035
- const setActiveBit = (target, active2) => active2 ? target[$P] |= IS_ANIMATING | HAS_ANIMATED : target[$P] &= ~IS_ANIMATING;
9036
- const setPausedBit = (target, paused) => paused ? target[$P] |= IS_PAUSED : target[$P] &= ~IS_PAUSED;
9119
+ const setActiveBit = (target, active2) => active2 ? target[$P] |= IS_ANIMATING | HAS_ANIMATED : target[$P] &= -3;
9120
+ const setPausedBit = (target, paused) => paused ? target[$P] |= IS_PAUSED : target[$P] &= -5;
9037
9121
  class SpringValue extends FrameValue {
9038
9122
  constructor(arg1, arg2) {
9039
9123
  super();
@@ -11588,8 +11672,9 @@ Please add \`${key2}Action\` when creating your handler.`);
11588
11672
  });
11589
11673
  var _zIndex = 1100;
11590
11674
  var Popup = function(props) {
11591
- var _$_object_spread = _object_spread({}, defaultProps$1d, props), children = _$_object_spread.children, visible = _$_object_spread.visible, overlay = _$_object_spread.overlay, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, overlayStyle = _$_object_spread.overlayStyle, overlayClassName = _$_object_spread.overlayClassName, zIndex = _$_object_spread.zIndex, lockScroll = _$_object_spread.lockScroll, duration = _$_object_spread.duration, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, left = _$_object_spread.left, title = _$_object_spread.title, description = _$_object_spread.description, style = _$_object_spread.style, transition = _$_object_spread.transition, round = _$_object_spread.round, position2 = _$_object_spread.position, className = _$_object_spread.className, destroyOnClose = _$_object_spread.destroyOnClose, portal = _$_object_spread.portal, resizable = _$_object_spread.resizable, minHeight = _$_object_spread.minHeight, onOpen = _$_object_spread.onOpen, onClose = _$_object_spread.onClose, onOverlayClick = _$_object_spread.onOverlayClick, onCloseIconClick = _$_object_spread.onCloseIconClick, afterShow = _$_object_spread.afterShow, afterClose = _$_object_spread.afterClose, onClick = _$_object_spread.onClick, onTouchStart = _$_object_spread.onTouchStart, onTouchMove = _$_object_spread.onTouchMove, onTouchEnd = _$_object_spread.onTouchEnd;
11675
+ var _$_object_spread = _object_spread({}, defaultProps$1d, props), children = _$_object_spread.children, visible = _$_object_spread.visible, overlay = _$_object_spread.overlay, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, overlayStyle = _$_object_spread.overlayStyle, overlayClassName = _$_object_spread.overlayClassName, zIndex = _$_object_spread.zIndex, lockScroll = _$_object_spread.lockScroll, duration = _$_object_spread.duration, closeable = _$_object_spread.closeable, closeIconPosition = _$_object_spread.closeIconPosition, closeIcon = _$_object_spread.closeIcon, left = _$_object_spread.left, title = _$_object_spread.title, top = _$_object_spread.top, description = _$_object_spread.description, style = _$_object_spread.style, transition = _$_object_spread.transition, round = _$_object_spread.round, position2 = _$_object_spread.position, className = _$_object_spread.className, destroyOnClose = _$_object_spread.destroyOnClose, portal = _$_object_spread.portal, resizable = _$_object_spread.resizable, minHeight = _$_object_spread.minHeight, onOpen = _$_object_spread.onOpen, onClose = _$_object_spread.onClose, onOverlayClick = _$_object_spread.onOverlayClick, onCloseIconClick = _$_object_spread.onCloseIconClick, afterShow = _$_object_spread.afterShow, afterClose = _$_object_spread.afterClose, onClick = _$_object_spread.onClick, onTouchStart = _$_object_spread.onTouchStart, onTouchMove = _$_object_spread.onTouchMove, onTouchEnd = _$_object_spread.onTouchEnd, closeAriaLabel = _$_object_spread.closeAriaLabel;
11592
11676
  var nodeRef = React.useRef(null);
11677
+ var topNodeRef = React.useRef(null);
11593
11678
  var innerIndex = zIndex || _zIndex;
11594
11679
  var _useState = _sliced_to_array(React.useState(innerIndex), 2), index2 = _useState[0], setIndex = _useState[1];
11595
11680
  var _useState1 = _sliced_to_array(React.useState(visible), 2), innerVisible = _useState1[0], setInnerVisible = _useState1[1];
@@ -11600,6 +11685,7 @@ Please add \`${key2}Action\` when creating your handler.`);
11600
11685
  var heightRef = React.useRef(0);
11601
11686
  var defaultHeightRef = React.useRef(0);
11602
11687
  var isTouching = React.useRef(false);
11688
+ var locale = useConfig().locale;
11603
11689
  useLockScroll(nodeRef, innerVisible && lockScroll);
11604
11690
  var classPrefix2 = "nut-popup";
11605
11691
  var overlayStyles = _object_spread({}, overlayStyle);
@@ -11622,6 +11708,14 @@ Please add \`${key2}Action\` when creating your handler.`);
11622
11708
  }
11623
11709
  onOpen && onOpen();
11624
11710
  };
11711
+ React.useEffect(function() {
11712
+ if (topNodeRef.current && nodeRef.current) {
11713
+ var _nodeRef_current;
11714
+ topNodeRef.current.style.bottom = "".concat((_nodeRef_current = nodeRef.current) === null || _nodeRef_current === void 0 ? void 0 : _nodeRef_current.clientHeight, "px");
11715
+ }
11716
+ }, [
11717
+ innerVisible
11718
+ ]);
11625
11719
  var close = function() {
11626
11720
  if (innerVisible) {
11627
11721
  setInnerVisible(false);
@@ -11646,9 +11740,19 @@ Please add \`${key2}Action\` when creating your handler.`);
11646
11740
  var closeClasses = classNames("".concat(classPrefix2, "-title-right"), "".concat(classPrefix2, "-title-right-").concat(closeIconPosition));
11647
11741
  return /* @__PURE__ */ React.createElement(React.Fragment, null, closeable && /* @__PURE__ */ React.createElement("div", {
11648
11742
  className: closeClasses,
11649
- onClick: handleCloseIconClick
11743
+ onClick: handleCloseIconClick,
11744
+ role: "button",
11745
+ "aria-label": closeAriaLabel || locale.close,
11746
+ tabIndex: -1
11650
11747
  }, /* @__PURE__ */ React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ React.createElement(n$5, null)));
11651
11748
  };
11749
+ var renderTop = function() {
11750
+ if (!top) return null;
11751
+ return /* @__PURE__ */ React.createElement("div", {
11752
+ className: "".concat(classPrefix2, "-bottom-top"),
11753
+ ref: topNodeRef
11754
+ }, top);
11755
+ };
11652
11756
  var renderTitle = function() {
11653
11757
  if (left || title || description) {
11654
11758
  return /* @__PURE__ */ React.createElement("div", {
@@ -11715,7 +11819,7 @@ Please add \`${key2}Action\` when creating your handler.`);
11715
11819
  onTouchMove: handleTouchMove,
11716
11820
  onTouchEnd: handleTouchEnd,
11717
11821
  onTouchCancel: handleTouchEnd
11718
- }, renderTitle(), showChildren && children));
11822
+ }, renderTop(), renderTitle(), showChildren && children));
11719
11823
  };
11720
11824
  var renderNode = function() {
11721
11825
  return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay && /* @__PURE__ */ React.createElement(Overlay, {
@@ -11982,8 +12086,8 @@ Please add \`${key2}Action\` when creating your handler.`);
11982
12086
  outerOptions
11983
12087
  ]);
11984
12088
  React.useEffect(function() {
11985
- var load = function() {
11986
- return _async_to_generator(function() {
12089
+ var load = /* @__PURE__ */ function() {
12090
+ var _ref = _async_to_generator(function() {
11987
12091
  var parent2, error;
11988
12092
  return __generator(this, function(_state) {
11989
12093
  switch (_state.label) {
@@ -12001,8 +12105,8 @@ Please add \`${key2}Action\` when creating your handler.`);
12001
12105
  ]);
12002
12106
  return [
12003
12107
  4,
12004
- innerValue.reduce(function(promise, val2, key2) {
12005
- return _async_to_generator(function() {
12108
+ innerValue.reduce(/* @__PURE__ */ function() {
12109
+ var _ref2 = _async_to_generator(function(promise, val2, key2) {
12006
12110
  var pane, parent3, node;
12007
12111
  return __generator(this, function(_state2) {
12008
12112
  switch (_state2.label) {
@@ -12042,8 +12146,11 @@ Please add \`${key2}Action\` when creating your handler.`);
12042
12146
  ];
12043
12147
  }
12044
12148
  });
12045
- })();
12046
- }, Promise.resolve(parent2))
12149
+ });
12150
+ return function(promise, val2, key2) {
12151
+ return _ref2.apply(this, arguments);
12152
+ };
12153
+ }(), Promise.resolve(parent2))
12047
12154
  ];
12048
12155
  case 2:
12049
12156
  _state.sent();
@@ -12065,14 +12172,17 @@ Please add \`${key2}Action\` when creating your handler.`);
12065
12172
  ];
12066
12173
  }
12067
12174
  });
12068
- })();
12069
- };
12175
+ });
12176
+ return function load2() {
12177
+ return _ref.apply(this, arguments);
12178
+ };
12179
+ }();
12070
12180
  if (lazy) load();
12071
12181
  }, [
12072
12182
  lazy
12073
12183
  ]);
12074
- var chooseItem = function(pane, levelIndex) {
12075
- return _async_to_generator(function() {
12184
+ var chooseItem = /* @__PURE__ */ function() {
12185
+ var _ref = _async_to_generator(function(pane, levelIndex) {
12076
12186
  var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
12077
12187
  return __generator(this, function(_state) {
12078
12188
  switch (_state.label) {
@@ -12124,8 +12234,11 @@ Please add \`${key2}Action\` when creating your handler.`);
12124
12234
  ];
12125
12235
  }
12126
12236
  });
12127
- })();
12128
- };
12237
+ });
12238
+ return function chooseItem2(pane, levelIndex) {
12239
+ return _ref.apply(this, arguments);
12240
+ };
12241
+ }();
12129
12242
  var renderCascaderItem = function(item, levelIndex) {
12130
12243
  var _item_pane;
12131
12244
  return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index2) {
@@ -13752,9 +13865,9 @@ Please add \`${key2}Action\` when creating your handler.`);
13752
13865
  var isMid = function(day) {
13753
13866
  if (type2 === "range" || type2 === "week") {
13754
13867
  if (innerValue.length === 2) {
13755
- var c1 = compareDay(innerValue[0], day);
13756
- var c2 = compareDay(day, innerValue[1]);
13757
- if (c1 && c1 < 0 && c2 && c2 < 0) {
13868
+ var c12 = compareDay(innerValue[0], day);
13869
+ var c22 = compareDay(day, innerValue[1]);
13870
+ if (c12 && c12 < 0 && c22 && c22 < 0) {
13758
13871
  return true;
13759
13872
  }
13760
13873
  }
@@ -13793,22 +13906,22 @@ Please add \`${key2}Action\` when creating your handler.`);
13793
13906
  };
13794
13907
  var jumpTo = function(year, month2) {
13795
13908
  if (startDate) {
13796
- var c2 = compareDay({
13909
+ var c6 = compareDay({
13797
13910
  year,
13798
13911
  month: month2,
13799
13912
  date: 31
13800
13913
  }, convertDateToDay(startDate));
13801
- if (c2 && c2 < 0) {
13914
+ if (c6 && c6 < 0) {
13802
13915
  return;
13803
13916
  }
13804
13917
  }
13805
13918
  if (endDate) {
13806
- var c1 = compareDay({
13919
+ var c12 = compareDay({
13807
13920
  year,
13808
13921
  month: month2,
13809
13922
  date: 1
13810
13923
  }, convertDateToDay(endDate));
13811
- if (c1 && c1 > 0) {
13924
+ if (c12 && c12 > 0) {
13812
13925
  return;
13813
13926
  }
13814
13927
  }
@@ -14129,7 +14242,7 @@ Please add \`${key2}Action\` when creating your handler.`);
14129
14242
  };
14130
14243
  var _obj;
14131
14244
  return /* @__PURE__ */ React.createElement("div", _object_spread_props(_object_spread({
14132
- className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx2 === null || ctx2 === void 0 ? void 0 : ctx2.list), _obj), className)
14245
+ className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx2 === null || ctx2 === void 0 ? void 0 : ctx2.list), _define_property(_obj, "".concat(classPrefix$j, "-active"), innerChecked), _obj), className)
14133
14246
  }, rest), {
14134
14247
  onClick: handleClick
14135
14248
  }), renderCheckboxItem());
@@ -14184,9 +14297,9 @@ Please add \`${key2}Action\` when creating your handler.`);
14184
14297
  var childProps = child.props;
14185
14298
  childrenLabel.push(childProps.value);
14186
14299
  });
14187
- var reverse2 = childrenLabel.filter(function(c2) {
14300
+ var reverse2 = childrenLabel.filter(function(c6) {
14188
14301
  return (_value === null || _value === void 0 ? void 0 : _value.findIndex(function(v) {
14189
- return v === c2;
14302
+ return v === c6;
14190
14303
  })) === -1;
14191
14304
  });
14192
14305
  setValue(reverse2);
@@ -14499,6 +14612,8 @@ Please add \`${key2}Action\` when creating your handler.`);
14499
14612
  if (!options3.length) return [];
14500
14613
  var formatted = [];
14501
14614
  var columnOptions = {
14615
+ label: "",
14616
+ value: "",
14502
14617
  children: options3
14503
14618
  };
14504
14619
  var columnIndex = 0;
@@ -16258,6 +16373,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16258
16373
  var _this = this;
16259
16374
  var _this1 = this;
16260
16375
  _class_call_check(this, FormStore2);
16376
+ var _this2 = this;
16261
16377
  _define_property(this, "initialValues", {});
16262
16378
  _define_property(this, "updateList", []);
16263
16379
  _define_property(this, "store", {});
@@ -16326,8 +16442,8 @@ Please add \`${key2}Action\` when creating your handler.`);
16326
16442
  _define_property(this, "setCallback", function(callback) {
16327
16443
  _this.callbacks = _object_spread({}, _this.callbacks, callback);
16328
16444
  });
16329
- _define_property(this, "validateEntities", function(entity, errs) {
16330
- return _async_to_generator(function() {
16445
+ _define_property(this, "validateEntities", /* @__PURE__ */ function() {
16446
+ var _ref = _async_to_generator(function(entity, errs) {
16331
16447
  var _entity_props, name2, _entity_props_rules, rules2, descriptor, validator, _this_store, param, errors, _errs;
16332
16448
  return __generator(this, function(_state) {
16333
16449
  switch (_state.label) {
@@ -16361,7 +16477,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16361
16477
  ]);
16362
16478
  return [
16363
16479
  4,
16364
- validator.validate(_define_property({}, name2, (_this_store = this.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
16480
+ validator.validate(_define_property({}, name2, (_this_store = _this2.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
16365
16481
  ];
16366
16482
  case 2:
16367
16483
  _state.sent();
@@ -16374,7 +16490,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16374
16490
  errors = param.errors;
16375
16491
  if (errors) {
16376
16492
  (_errs = errs).push.apply(_errs, _to_consumable_array(errors));
16377
- this.errors[name2] = errors;
16493
+ _this2.errors[name2] = errors;
16378
16494
  }
16379
16495
  return [
16380
16496
  3,
@@ -16382,7 +16498,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16382
16498
  ];
16383
16499
  case 4:
16384
16500
  if (!errs || errs.length === 0) {
16385
- this.errors[name2] = [];
16501
+ _this2.errors[name2] = [];
16386
16502
  }
16387
16503
  return [
16388
16504
  7
@@ -16394,20 +16510,22 @@ Please add \`${key2}Action\` when creating your handler.`);
16394
16510
  ];
16395
16511
  }
16396
16512
  });
16397
- }).call(_this);
16398
- });
16399
- _define_property(this, "validateFields", function(nameList) {
16400
- return _async_to_generator(function() {
16401
- var _this2, filterEntities, errs;
16513
+ });
16514
+ return function(entity, errs) {
16515
+ return _ref.apply(this, arguments);
16516
+ };
16517
+ }());
16518
+ _define_property(this, "validateFields", /* @__PURE__ */ function() {
16519
+ var _ref = _async_to_generator(function(nameList) {
16520
+ var filterEntities, errs;
16402
16521
  return __generator(this, function(_state) {
16403
16522
  switch (_state.label) {
16404
16523
  case 0:
16405
- _this2 = this;
16406
16524
  filterEntities = [];
16407
16525
  if (!nameList || nameList.length === 0) {
16408
- filterEntities = this.fieldEntities;
16526
+ filterEntities = _this2.fieldEntities;
16409
16527
  } else {
16410
- filterEntities = this.fieldEntities.filter(function(param) {
16528
+ filterEntities = _this2.fieldEntities.filter(function(param) {
16411
16529
  var name2 = param.props.name;
16412
16530
  return nameList.includes(name2);
16413
16531
  });
@@ -16415,14 +16533,14 @@ Please add \`${key2}Action\` when creating your handler.`);
16415
16533
  errs = [];
16416
16534
  return [
16417
16535
  4,
16418
- Promise.all(filterEntities.map(function(entity) {
16419
- return _async_to_generator(function() {
16536
+ Promise.all(filterEntities.map(/* @__PURE__ */ function() {
16537
+ var _ref2 = _async_to_generator(function(entity) {
16420
16538
  return __generator(this, function(_state2) {
16421
16539
  switch (_state2.label) {
16422
16540
  case 0:
16423
16541
  return [
16424
16542
  4,
16425
- this.validateEntities(entity, errs)
16543
+ _this2.validateEntities(entity, errs)
16426
16544
  ];
16427
16545
  case 1:
16428
16546
  _state2.sent();
@@ -16431,8 +16549,11 @@ Please add \`${key2}Action\` when creating your handler.`);
16431
16549
  ];
16432
16550
  }
16433
16551
  });
16434
- }).call(_this2);
16435
- }))
16552
+ });
16553
+ return function(entity) {
16554
+ return _ref2.apply(this, arguments);
16555
+ };
16556
+ }()))
16436
16557
  ];
16437
16558
  case 1:
16438
16559
  _state.sent();
@@ -16442,32 +16563,33 @@ Please add \`${key2}Action\` when creating your handler.`);
16442
16563
  ];
16443
16564
  }
16444
16565
  });
16445
- }).call(_this);
16446
- });
16447
- _define_property(this, "submit", function() {
16448
- return _async_to_generator(function() {
16449
- var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
16450
- return __generator(this, function(_state) {
16451
- switch (_state.label) {
16452
- case 0:
16453
- return [
16454
- 4,
16455
- this.validateFields()
16456
- ];
16457
- case 1:
16458
- errors = _state.sent();
16459
- if (errors.length === 0) {
16460
- (_this_callbacks_onFinish = (_this_callbacks = this.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, this.store);
16461
- } else if (errors.length > 0) {
16462
- (_this_callbacks_onFinishFailed = (_this_callbacks1 = this.callbacks).onFinishFailed) === null || _this_callbacks_onFinishFailed === void 0 ? void 0 : _this_callbacks_onFinishFailed.call(_this_callbacks1, this.store, errors);
16463
- }
16464
- return [
16465
- 2
16466
- ];
16467
- }
16468
- });
16469
- }).call(_this);
16470
- });
16566
+ });
16567
+ return function(nameList) {
16568
+ return _ref.apply(this, arguments);
16569
+ };
16570
+ }());
16571
+ _define_property(this, "submit", /* @__PURE__ */ _async_to_generator(function() {
16572
+ var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
16573
+ return __generator(this, function(_state) {
16574
+ switch (_state.label) {
16575
+ case 0:
16576
+ return [
16577
+ 4,
16578
+ _this2.validateFields()
16579
+ ];
16580
+ case 1:
16581
+ errors = _state.sent();
16582
+ if (errors.length === 0) {
16583
+ (_this_callbacks_onFinish = (_this_callbacks = _this2.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, _this2.store);
16584
+ } else if (errors.length > 0) {
16585
+ (_this_callbacks_onFinishFailed = (_this_callbacks1 = _this2.callbacks).onFinishFailed) === null || _this_callbacks_onFinishFailed === void 0 ? void 0 : _this_callbacks_onFinishFailed.call(_this_callbacks1, _this2.store, errors);
16586
+ }
16587
+ return [
16588
+ 2
16589
+ ];
16590
+ }
16591
+ });
16592
+ }));
16471
16593
  _define_property(this, "resetFields", function(namePaths) {
16472
16594
  if (namePaths && namePaths.length) {
16473
16595
  namePaths.forEach(function(path) {
@@ -16971,7 +17093,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16971
17093
  var Input = /* @__PURE__ */ React.forwardRef(function(props, ref) {
16972
17094
  var rtl = useRtl();
16973
17095
  var locale = useConfig().locale;
16974
- var _ref = _object_spread({}, defaultProps$Y, props), type2 = _ref.type, name2 = _ref.name, placeholder = _ref.placeholder, align = _ref.align, disabled = _ref.disabled, readOnly = _ref.readOnly, maxLength = _ref.maxLength, clearable = _ref.clearable, clearIcon = _ref.clearIcon, formatTrigger = _ref.formatTrigger, autoFocus = _ref.autoFocus, style = _ref.style, className = _ref.className, onChange = _ref.onChange, onFocus = _ref.onFocus, onClear = _ref.onClear, formatter = _ref.formatter, onClick = _ref.onClick, confirmType = _ref.confirmType, plain = _ref.plain, defaultValue = _ref.defaultValue, _value = _ref.value, onCompositionStart = _ref.onCompositionStart, onCompositionEnd = _ref.onCompositionEnd, rest = _object_without_properties(_ref, [
17096
+ var _ref = _object_spread({}, defaultProps$Y, props), type2 = _ref.type, name2 = _ref.name, placeholder = _ref.placeholder, align = _ref.align, disabled = _ref.disabled, readOnly = _ref.readOnly, maxLength = _ref.maxLength, clearable = _ref.clearable, clearIcon = _ref.clearIcon, formatTrigger = _ref.formatTrigger, autoFocus = _ref.autoFocus, style = _ref.style, className = _ref.className, inputStyle = _ref.inputStyle, onChange = _ref.onChange, onFocus = _ref.onFocus, onClear = _ref.onClear, formatter = _ref.formatter, onClick = _ref.onClick, confirmType = _ref.confirmType, plain = _ref.plain, defaultValue = _ref.defaultValue, _value = _ref.value, onCompositionStart = _ref.onCompositionStart, onCompositionEnd = _ref.onCompositionEnd, rest = _object_without_properties(_ref, [
16975
17097
  "type",
16976
17098
  "name",
16977
17099
  "placeholder",
@@ -16985,6 +17107,7 @@ Please add \`${key2}Action\` when creating your handler.`);
16985
17107
  "autoFocus",
16986
17108
  "style",
16987
17109
  "className",
17110
+ "inputStyle",
16988
17111
  "onChange",
16989
17112
  "onFocus",
16990
17113
  "onClear",
@@ -17081,9 +17204,9 @@ Please add \`${key2}Action\` when creating your handler.`);
17081
17204
  ref: inputRef,
17082
17205
  name: name2,
17083
17206
  className: "nut-input-native",
17084
- style: {
17207
+ style: _object_spread({}, {
17085
17208
  textAlign: getTextAlign()
17086
- },
17209
+ }, inputStyle),
17087
17210
  type: getInputType(type2),
17088
17211
  maxLength,
17089
17212
  placeholder: placeholder === void 0 ? locale.placeholder : placeholder,
@@ -17203,8 +17326,8 @@ Please add \`${key2}Action\` when creating your handler.`);
17203
17326
  var stepAmount = parseFloat(stepValue) * symbol;
17204
17327
  return (currentValue * dig + stepAmount * dig) / dig;
17205
17328
  };
17206
- var update2 = function(negative, e) {
17207
- return _async_to_generator(function() {
17329
+ var update2 = /* @__PURE__ */ function() {
17330
+ var _ref2 = _async_to_generator(function(negative, e) {
17208
17331
  var shouldOverBoundary, maybeResume, nextValue;
17209
17332
  return __generator(this, function(_state) {
17210
17333
  switch (_state.label) {
@@ -17235,10 +17358,13 @@ Please add \`${key2}Action\` when creating your handler.`);
17235
17358
  ];
17236
17359
  }
17237
17360
  });
17238
- })();
17239
- };
17240
- var handleReduce = function(e) {
17241
- return _async_to_generator(function() {
17361
+ });
17362
+ return function update3(negative, e) {
17363
+ return _ref2.apply(this, arguments);
17364
+ };
17365
+ }();
17366
+ var handleReduce = /* @__PURE__ */ function() {
17367
+ var _ref2 = _async_to_generator(function(e) {
17242
17368
  return __generator(this, function(_state) {
17243
17369
  switch (_state.label) {
17244
17370
  case 0:
@@ -17256,10 +17382,13 @@ Please add \`${key2}Action\` when creating your handler.`);
17256
17382
  ];
17257
17383
  }
17258
17384
  });
17259
- })();
17260
- };
17261
- var handlePlus = function(e) {
17262
- return _async_to_generator(function() {
17385
+ });
17386
+ return function handleReduce2(e) {
17387
+ return _ref2.apply(this, arguments);
17388
+ };
17389
+ }();
17390
+ var handlePlus = /* @__PURE__ */ function() {
17391
+ var _ref2 = _async_to_generator(function(e) {
17263
17392
  return __generator(this, function(_state) {
17264
17393
  switch (_state.label) {
17265
17394
  case 0:
@@ -17277,15 +17406,18 @@ Please add \`${key2}Action\` when creating your handler.`);
17277
17406
  ];
17278
17407
  }
17279
17408
  });
17280
- })();
17281
- };
17409
+ });
17410
+ return function handlePlus2(e) {
17411
+ return _ref2.apply(this, arguments);
17412
+ };
17413
+ }();
17282
17414
  var parseValue = function(text2) {
17283
17415
  if (text2 === "") return null;
17284
17416
  if (text2 === "-") return null;
17285
17417
  return text2;
17286
17418
  };
17287
- var handleInputChange = function(e) {
17288
- return _async_to_generator(function() {
17419
+ var handleInputChange = /* @__PURE__ */ function() {
17420
+ var _ref2 = _async_to_generator(function(e) {
17289
17421
  var valueStr, maybeResume;
17290
17422
  return __generator(this, function(_state) {
17291
17423
  switch (_state.label) {
@@ -17315,8 +17447,11 @@ Please add \`${key2}Action\` when creating your handler.`);
17315
17447
  ];
17316
17448
  }
17317
17449
  });
17318
- })();
17319
- };
17450
+ });
17451
+ return function handleInputChange2(e) {
17452
+ return _ref2.apply(this, arguments);
17453
+ };
17454
+ }();
17320
17455
  var handleFocus = function(e) {
17321
17456
  setFocused(true);
17322
17457
  setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
@@ -19221,7 +19356,7 @@ Please add \`${key2}Action\` when creating your handler.`);
19221
19356
  }
19222
19357
  });
19223
19358
  var Switch = function(props) {
19224
- var _ref = _object_spread({}, defaultProps$M, props), checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, activeText = _ref.activeText, inactiveText = _ref.inactiveText, loadingIcon = _ref.loadingIcon, className = _ref.className, style = _ref.style, onChange = _ref.onChange, propLoading = _ref.loading, onLoadingChange = _ref.onLoadingChange, rest = _object_without_properties(_ref, [
19359
+ var _ref = _object_spread({}, defaultProps$M, props), checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, activeText = _ref.activeText, inactiveText = _ref.inactiveText, loadingIcon = _ref.loadingIcon, className = _ref.className, style = _ref.style, onChange = _ref.onChange, propLoading = _ref.loading, onLoadingChange = _ref.onLoadingChange, ariaLabel = _ref.ariaLabel, rest = _object_without_properties(_ref, [
19225
19360
  "checked",
19226
19361
  "defaultChecked",
19227
19362
  "disabled",
@@ -19232,7 +19367,8 @@ Please add \`${key2}Action\` when creating your handler.`);
19232
19367
  "style",
19233
19368
  "onChange",
19234
19369
  "loading",
19235
- "onLoadingChange"
19370
+ "onLoadingChange",
19371
+ "ariaLabel"
19236
19372
  ]);
19237
19373
  var classPrefix2 = "nut-switch";
19238
19374
  var rtl = useRtl();
@@ -19262,8 +19398,8 @@ Please add \`${key2}Action\` when creating your handler.`);
19262
19398
  (_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-close"), !value2), _define_property(_obj2, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj2, "".concat(classPrefix2, "-disabled-close"), disabled && !value2), _obj2)
19263
19399
  ]);
19264
19400
  };
19265
- var onClick = function() {
19266
- return _async_to_generator(function() {
19401
+ var onClick = /* @__PURE__ */ function() {
19402
+ var _ref2 = _async_to_generator(function() {
19267
19403
  return __generator(this, function(_state) {
19268
19404
  switch (_state.label) {
19269
19405
  case 0:
@@ -19307,14 +19443,23 @@ Please add \`${key2}Action\` when creating your handler.`);
19307
19443
  ];
19308
19444
  }
19309
19445
  });
19310
- })();
19311
- };
19446
+ });
19447
+ return function onClick2() {
19448
+ return _ref2.apply(this, arguments);
19449
+ };
19450
+ }();
19312
19451
  var _obj, _obj1;
19313
- return /* @__PURE__ */ React.createElement("div", _object_spread({
19452
+ return /* @__PURE__ */ React.createElement("div", _object_spread_props(_object_spread({
19314
19453
  className: classes(),
19315
19454
  onClick,
19316
19455
  style
19317
- }, rest), /* @__PURE__ */ React.createElement("div", {
19456
+ }, rest), {
19457
+ role: "switch",
19458
+ tabIndex: disabled ? -1 : 0,
19459
+ "aria-checked": value2,
19460
+ "aria-disabled": disabled,
19461
+ "aria-label": ariaLabel
19462
+ }), /* @__PURE__ */ React.createElement("div", {
19318
19463
  className: classNames([
19319
19464
  [
19320
19465
  "".concat(classPrefix2, "-button")
@@ -19344,7 +19489,7 @@ Please add \`${key2}Action\` when creating your handler.`);
19344
19489
  });
19345
19490
  var TextArea = /* @__PURE__ */ React.forwardRef(function(props, ref) {
19346
19491
  var locale = useConfig().locale;
19347
- var _ref = _object_spread({}, defaultProps$L, props), className = _ref.className, value2 = _ref.value, defaultValue = _ref.defaultValue, showCount = _ref.showCount, maxLength = _ref.maxLength, rows = _ref.rows, placeholder = _ref.placeholder, readOnly = _ref.readOnly, disabled = _ref.disabled, autoSize = _ref.autoSize, style = _ref.style, plain = _ref.plain, status = _ref.status, onChange = _ref.onChange, onBlur = _ref.onBlur, onFocus = _ref.onFocus, rest = _object_without_properties(_ref, [
19492
+ var _ref = _object_spread({}, defaultProps$L, props), className = _ref.className, value2 = _ref.value, defaultValue = _ref.defaultValue, showCount = _ref.showCount, maxLength = _ref.maxLength, rows = _ref.rows, placeholder = _ref.placeholder, readOnly = _ref.readOnly, disabled = _ref.disabled, autoSize = _ref.autoSize, style = _ref.style, plain = _ref.plain, status = _ref.status, viewId = _ref.viewId, onChange = _ref.onChange, onBlur = _ref.onBlur, onFocus = _ref.onFocus, rest = _object_without_properties(_ref, [
19348
19493
  "className",
19349
19494
  "value",
19350
19495
  "defaultValue",
@@ -19358,6 +19503,7 @@ Please add \`${key2}Action\` when creating your handler.`);
19358
19503
  "style",
19359
19504
  "plain",
19360
19505
  "status",
19506
+ "viewId",
19361
19507
  "onChange",
19362
19508
  "onBlur",
19363
19509
  "onFocus"
@@ -19431,6 +19577,7 @@ Please add \`${key2}Action\` when creating your handler.`);
19431
19577
  });
19432
19578
  var _obj;
19433
19579
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
19580
+ id: viewId,
19434
19581
  className: classNames(classPrefix2, (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj, "".concat(classPrefix2, "-readonly"), readOnly), _define_property(_obj, "".concat(classPrefix2, "-rtl"), rtl), _define_property(_obj, "".concat(classPrefix2, "-plain"), plain), _define_property(_obj, "".concat(classPrefix2, "-container"), !plain), _define_property(_obj, "".concat(classPrefix2, "-").concat(status), status), _obj), className)
19435
19582
  }, /* @__PURE__ */ React.createElement("textarea", _object_spread_props(_object_spread({}, rest), {
19436
19583
  ref: textareaRef,
@@ -19755,24 +19902,22 @@ Please add \`${key2}Action\` when creating your handler.`);
19755
19902
  ]);
19756
19903
  React.useImperativeHandle(ref, function() {
19757
19904
  return {
19758
- submit: function() {
19759
- return _async_to_generator(function() {
19760
- return __generator(this, function(_state) {
19761
- switch (_state.label) {
19762
- case 0:
19763
- return [
19764
- 4,
19765
- uploadAction(uploadQueue)
19766
- ];
19767
- case 1:
19768
- _state.sent();
19769
- return [
19770
- 2
19771
- ];
19772
- }
19773
- });
19774
- })();
19775
- },
19905
+ submit: /* @__PURE__ */ _async_to_generator(function() {
19906
+ return __generator(this, function(_state) {
19907
+ switch (_state.label) {
19908
+ case 0:
19909
+ return [
19910
+ 4,
19911
+ uploadAction(uploadQueue)
19912
+ ];
19913
+ case 1:
19914
+ _state.sent();
19915
+ return [
19916
+ 2
19917
+ ];
19918
+ }
19919
+ });
19920
+ }),
19776
19921
  clear: function() {
19777
19922
  clearUploadQueue();
19778
19923
  }
@@ -19829,8 +19974,8 @@ Please add \`${key2}Action\` when creating your handler.`);
19829
19974
  }
19830
19975
  });
19831
19976
  };
19832
- var fileChange = function(event) {
19833
- return _async_to_generator(function() {
19977
+ var fileChange = /* @__PURE__ */ function() {
19978
+ var _ref = _async_to_generator(function(event) {
19834
19979
  var $el, files, _files, filesArr, tasks;
19835
19980
  return __generator(this, function(_state) {
19836
19981
  switch (_state.label) {
@@ -19916,10 +20061,13 @@ Please add \`${key2}Action\` when creating your handler.`);
19916
20061
  ];
19917
20062
  }
19918
20063
  });
19919
- })();
19920
- };
19921
- var uploadAction = function(tasks) {
19922
- return _async_to_generator(function() {
20064
+ });
20065
+ return function fileChange2(event) {
20066
+ return _ref.apply(this, arguments);
20067
+ };
20068
+ }();
20069
+ var uploadAction = /* @__PURE__ */ function() {
20070
+ var _ref = _async_to_generator(function(tasks) {
19923
20071
  var taskIds;
19924
20072
  return __generator(this, function(_state) {
19925
20073
  switch (_state.label) {
@@ -19938,8 +20086,8 @@ Please add \`${key2}Action\` when creating your handler.`);
19938
20086
  }));
19939
20087
  return [
19940
20088
  4,
19941
- Promise.all(tasks.map(function(currentTask, index2) {
19942
- return _async_to_generator(function() {
20089
+ Promise.all(tasks.map(/* @__PURE__ */ function() {
20090
+ var _ref2 = _async_to_generator(function(currentTask, index2) {
19943
20091
  var result, list, e, list1;
19944
20092
  return __generator(this, function(_state2) {
19945
20093
  switch (_state2.label) {
@@ -19986,8 +20134,11 @@ Please add \`${key2}Action\` when creating your handler.`);
19986
20134
  ];
19987
20135
  }
19988
20136
  });
19989
- })();
19990
- })).catch(function(errs) {
20137
+ });
20138
+ return function(currentTask, index2) {
20139
+ return _ref2.apply(this, arguments);
20140
+ };
20141
+ }())).catch(function(errs) {
19991
20142
  return console.error(errs);
19992
20143
  })
19993
20144
  ];
@@ -19998,8 +20149,11 @@ Please add \`${key2}Action\` when creating your handler.`);
19998
20149
  ];
19999
20150
  }
20000
20151
  });
20001
- })();
20002
- };
20152
+ });
20153
+ return function uploadAction2(tasks) {
20154
+ return _ref.apply(this, arguments);
20155
+ };
20156
+ }();
20003
20157
  var handleItemClick = function(file, index2) {
20004
20158
  onFileItemClick === null || onFileItemClick === void 0 ? void 0 : onFileItemClick(file, index2);
20005
20159
  };
@@ -20262,6 +20416,8 @@ Please add \`${key2}Action\` when creating your handler.`);
20262
20416
  content: "",
20263
20417
  header: "",
20264
20418
  footer: "",
20419
+ cancelBadge: "",
20420
+ confirmBadge: "",
20265
20421
  confirmText: "",
20266
20422
  cancelText: "",
20267
20423
  closeOnOverlayClick: true,
@@ -20291,7 +20447,7 @@ Please add \`${key2}Action\` when creating your handler.`);
20291
20447
  }
20292
20448
  });
20293
20449
  var BaseDialog = function(props, ref) {
20294
- var _mergeProps = mergeProps(defaultProps$H, props), closeOnOverlayClick = _mergeProps.closeOnOverlayClick, confirmText = _mergeProps.confirmText, cancelText = _mergeProps.cancelText, children = _mergeProps.children, className = _mergeProps.className, closeIconPosition = _mergeProps.closeIconPosition, closeIcon = _mergeProps.closeIcon, content2 = _mergeProps.content, disableConfirmButton = _mergeProps.disableConfirmButton, footer = _mergeProps.footer, footerDirection = _mergeProps.footerDirection, header = _mergeProps.header, hideConfirmButton = _mergeProps.hideConfirmButton, hideCancelButton = _mergeProps.hideCancelButton, lockScroll = _mergeProps.lockScroll, overlay = _mergeProps.overlay, overlayStyle = _mergeProps.overlayStyle, overlayClassName = _mergeProps.overlayClassName, style = _mergeProps.style, title = _mergeProps.title, visible = _mergeProps.visible, zIndex = _mergeProps.zIndex, beforeCancel = _mergeProps.beforeCancel, beforeClose = _mergeProps.beforeClose, onClose = _mergeProps.onClose, onCancel = _mergeProps.onCancel, onConfirm = _mergeProps.onConfirm, onOverlayClick = _mergeProps.onOverlayClick;
20450
+ var _mergeProps = mergeProps(defaultProps$H, props), closeOnOverlayClick = _mergeProps.closeOnOverlayClick, confirmText = _mergeProps.confirmText, cancelText = _mergeProps.cancelText, children = _mergeProps.children, className = _mergeProps.className, closeIconPosition = _mergeProps.closeIconPosition, closeIcon = _mergeProps.closeIcon, content2 = _mergeProps.content, disableConfirmButton = _mergeProps.disableConfirmButton, footer = _mergeProps.footer, footerDirection = _mergeProps.footerDirection, header = _mergeProps.header, cancelBadge = _mergeProps.cancelBadge, confirmBadge = _mergeProps.confirmBadge, hideConfirmButton = _mergeProps.hideConfirmButton, hideCancelButton = _mergeProps.hideCancelButton, lockScroll = _mergeProps.lockScroll, overlay = _mergeProps.overlay, overlayStyle = _mergeProps.overlayStyle, overlayClassName = _mergeProps.overlayClassName, style = _mergeProps.style, title = _mergeProps.title, visible = _mergeProps.visible, zIndex = _mergeProps.zIndex, beforeCancel = _mergeProps.beforeCancel, beforeClose = _mergeProps.beforeClose, onClose = _mergeProps.onClose, onCancel = _mergeProps.onCancel, onConfirm = _mergeProps.onConfirm, onOverlayClick = _mergeProps.onOverlayClick;
20295
20451
  var classPrefix2 = "nut-dialog";
20296
20452
  var locale = useConfig().locale;
20297
20453
  var _useState = _sliced_to_array(React.useState(false), 2), loading = _useState[0], setLoading = _useState[1];
@@ -20302,8 +20458,8 @@ Please add \`${key2}Action\` when creating your handler.`);
20302
20458
  if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
20303
20459
  onCancel();
20304
20460
  };
20305
- var handleOk = function(e) {
20306
- return _async_to_generator(function() {
20461
+ var handleOk = /* @__PURE__ */ function() {
20462
+ var _ref = _async_to_generator(function(e) {
20307
20463
  return __generator(this, function(_state) {
20308
20464
  switch (_state.label) {
20309
20465
  case 0:
@@ -20342,14 +20498,14 @@ Please add \`${key2}Action\` when creating your handler.`);
20342
20498
  ];
20343
20499
  }
20344
20500
  });
20345
- })();
20346
- };
20501
+ });
20502
+ return function handleOk2(e) {
20503
+ return _ref.apply(this, arguments);
20504
+ };
20505
+ }();
20347
20506
  var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix2, "-footer-block") : "";
20348
20507
  var renderCancelOfVertical = function() {
20349
20508
  return !hideCancelButton && /* @__PURE__ */ React.createElement("div", {
20350
- style: {
20351
- order: 2
20352
- },
20353
20509
  className: "".concat(classPrefix2, "-footer-cancel ").concat(btnClass),
20354
20510
  onClick: function(e) {
20355
20511
  return handleCancel(e);
@@ -20357,17 +20513,43 @@ Please add \`${key2}Action\` when creating your handler.`);
20357
20513
  }, cancelText || locale.cancel);
20358
20514
  };
20359
20515
  var renderCancel = function() {
20360
- return !hideCancelButton && /* @__PURE__ */ React.createElement(Button, {
20516
+ return !hideCancelButton && /* @__PURE__ */ React.createElement(React.Fragment, null, cancelBadge ? /* @__PURE__ */ React.createElement("div", {
20517
+ className: "".concat(classPrefix2, "-footer-cancel-container")
20518
+ }, /* @__PURE__ */ React.createElement(Button, {
20361
20519
  type: "default",
20362
20520
  size: "large",
20363
20521
  className: "".concat(classPrefix2, "-footer-cancel ").concat(btnClass),
20364
20522
  onClick: function(e) {
20365
20523
  return handleCancel(e);
20366
20524
  }
20367
- }, cancelText || locale.cancel);
20525
+ }, cancelText || locale.cancel), cancelBadge ? /* @__PURE__ */ React.createElement("div", {
20526
+ className: "".concat(classPrefix2, "-footer-cancel-badge")
20527
+ }, cancelBadge) : null) : /* @__PURE__ */ React.createElement(Button, {
20528
+ type: "default",
20529
+ size: "large",
20530
+ className: "".concat(classPrefix2, "-footer-cancel ").concat(btnClass),
20531
+ onClick: function(e) {
20532
+ return handleCancel(e);
20533
+ }
20534
+ }, cancelText || locale.cancel));
20368
20535
  };
20369
20536
  var renderConfirm = function() {
20370
- return !hideConfirmButton && /* @__PURE__ */ React.createElement(Button, {
20537
+ return !hideConfirmButton && /* @__PURE__ */ React.createElement(React.Fragment, null, confirmBadge ? /* @__PURE__ */ React.createElement("div", {
20538
+ className: "".concat(classPrefix2, "-footer-ok-container")
20539
+ }, /* @__PURE__ */ React.createElement(Button, {
20540
+ type: "primary",
20541
+ size: "large",
20542
+ className: classNames("".concat(classPrefix2, "-footer-ok ").concat(btnClass), {
20543
+ disabled: disableConfirmButton
20544
+ }),
20545
+ disabled: disableConfirmButton,
20546
+ onClick: function(e) {
20547
+ return handleOk(e);
20548
+ },
20549
+ loading
20550
+ }, confirmText || locale.confirm), confirmBadge ? /* @__PURE__ */ React.createElement("div", {
20551
+ className: "".concat(classPrefix2, "-footer-ok-badge")
20552
+ }, confirmBadge) : null) : /* @__PURE__ */ React.createElement(Button, {
20371
20553
  type: "primary",
20372
20554
  size: "large",
20373
20555
  className: classNames("".concat(classPrefix2, "-footer-ok ").concat(btnClass), {
@@ -20378,7 +20560,7 @@ Please add \`${key2}Action\` when creating your handler.`);
20378
20560
  return handleOk(e);
20379
20561
  },
20380
20562
  loading
20381
- }, confirmText || locale.confirm);
20563
+ }, confirmText || locale.confirm));
20382
20564
  };
20383
20565
  return footer || /* @__PURE__ */ React.createElement(React.Fragment, null, footerDirection === "vertical" ? /* @__PURE__ */ React.createElement(React.Fragment, null, renderConfirm(), renderCancelOfVertical()) : /* @__PURE__ */ React.createElement(React.Fragment, null, renderCancel(), renderConfirm()));
20384
20566
  };
@@ -20393,7 +20575,10 @@ Please add \`${key2}Action\` when creating your handler.`);
20393
20575
  var systomIcon = closeIconPosition !== "bottom" ? /* @__PURE__ */ React.createElement(n$5, null) : /* @__PURE__ */ React.createElement(d$c, null);
20394
20576
  return /* @__PURE__ */ React.createElement("div", {
20395
20577
  className: closeClasses,
20396
- onClick: handleClose
20578
+ onClick: handleClose,
20579
+ role: "button",
20580
+ "aria-label": locale.close,
20581
+ tabIndex: 0
20397
20582
  }, /* @__PURE__ */ React.isValidElement(closeIcon) ? closeIcon : systomIcon);
20398
20583
  };
20399
20584
  var onHandleClickOverlay = function(e) {
@@ -20722,8 +20907,8 @@ Please add \`${key2}Action\` when creating your handler.`);
20722
20907
  transition: isTouching.current ? "height 0s cubic-bezier(0.25,0.1,0.25,1)" : "height 0.2s cubic-bezier(0.25,0.1,0.25,1)"
20723
20908
  };
20724
20909
  };
20725
- var handleScroll = function() {
20726
- return _async_to_generator(function() {
20910
+ var handleScroll = /* @__PURE__ */ function() {
20911
+ var _ref2 = _async_to_generator(function() {
20727
20912
  return __generator(this, function(_state) {
20728
20913
  switch (_state.label) {
20729
20914
  case 0:
@@ -20745,8 +20930,11 @@ Please add \`${key2}Action\` when creating your handler.`);
20745
20930
  ];
20746
20931
  }
20747
20932
  });
20748
- })();
20749
- };
20933
+ });
20934
+ return function handleScroll2() {
20935
+ return _ref2.apply(this, arguments);
20936
+ };
20937
+ }();
20750
20938
  var infiniteDone = function() {
20751
20939
  setIsInfiniting(false);
20752
20940
  };
@@ -20782,8 +20970,8 @@ Please add \`${key2}Action\` when creating your handler.`);
20782
20970
  isTouching.current = false;
20783
20971
  }
20784
20972
  };
20785
- var touchEnd = function() {
20786
- return _async_to_generator(function() {
20973
+ var touchEnd = /* @__PURE__ */ function() {
20974
+ var _ref2 = _async_to_generator(function() {
20787
20975
  return __generator(this, function(_state) {
20788
20976
  switch (_state.label) {
20789
20977
  case 0:
@@ -20813,8 +21001,11 @@ Please add \`${key2}Action\` when creating your handler.`);
20813
21001
  ];
20814
21002
  }
20815
21003
  });
20816
- })();
20817
- };
21004
+ });
21005
+ return function touchEnd2() {
21006
+ return _ref2.apply(this, arguments);
21007
+ };
21008
+ }();
20818
21009
  var getWindowScrollTop = function() {
20819
21010
  return window.scrollY !== void 0 ? window.scrollY : (document.documentElement || document.body.parentNode || document.body).scrollTop;
20820
21011
  };
@@ -21485,7 +21676,7 @@ Please add \`${key2}Action\` when creating your handler.`);
21485
21676
  messageInstance$1 = null;
21486
21677
  }
21487
21678
  Notification$1.newInstance(props, function(notification) {
21488
- return callback && callback(notification);
21679
+ return callback(notification);
21489
21680
  });
21490
21681
  }
21491
21682
  function notice$1(opts2) {
@@ -21813,7 +22004,41 @@ Please add \`${key2}Action\` when creating your handler.`);
21813
22004
  });
21814
22005
  var PullToRefresh = function(p2) {
21815
22006
  var doRefresh = function doRefresh2() {
21816
- return _async_to_generator(function() {
22007
+ return _doRefresh.apply(this, arguments);
22008
+ };
22009
+ var classPrefix2 = "nut-pulltorefresh";
22010
+ var locale = useConfig().locale;
22011
+ var props = _object_spread({}, defaultProps$A, p2, {
22012
+ pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
22013
+ canReleaseText: p2.canReleaseText || locale.pullToRefresh.canReleaseText,
22014
+ refreshingText: p2.refreshingText || locale.pullToRefresh.refreshingText,
22015
+ completeText: p2.completeText || locale.pullToRefresh.completeText
22016
+ });
22017
+ var classes = classNames(classPrefix2, props.className, "".concat(classPrefix2, "-").concat(props.type));
22018
+ var headHeight = props.headHeight;
22019
+ var threshold = props.threshold;
22020
+ var _useState = _sliced_to_array(React.useState("pulling"), 2), status = _useState[0], setStatus = _useState[1];
22021
+ var _useSpring = _sliced_to_array(useSpring(function() {
22022
+ return {
22023
+ from: {
22024
+ height: 0
22025
+ },
22026
+ config: {
22027
+ tension: 300,
22028
+ friction: 30,
22029
+ clamp: true
22030
+ }
22031
+ };
22032
+ }), 2), springStyles = _useSpring[0], api = _useSpring[1];
22033
+ var elementRef = React.useRef(null);
22034
+ var pullingRef = React.useRef(false);
22035
+ React.useEffect(function() {
22036
+ var _elementRef_current;
22037
+ (_elementRef_current = elementRef.current) === null || _elementRef_current === void 0 ? void 0 : _elementRef_current.addEventListener("touchmove", function() {
22038
+ });
22039
+ }, []);
22040
+ function _doRefresh() {
22041
+ _doRefresh = _async_to_generator(function() {
21817
22042
  var e;
21818
22043
  return __generator(this, function(_state) {
21819
22044
  switch (_state.label) {
@@ -21844,8 +22069,8 @@ Please add \`${key2}Action\` when creating your handler.`);
21844
22069
  case 3:
21845
22070
  e = _state.sent();
21846
22071
  api.start({
21847
- to: function(next) {
21848
- return _async_to_generator(function() {
22072
+ to: /* @__PURE__ */ function() {
22073
+ var _ref = _async_to_generator(function(next) {
21849
22074
  return __generator(this, function(_state2) {
21850
22075
  switch (_state2.label) {
21851
22076
  case 0:
@@ -21863,8 +22088,11 @@ Please add \`${key2}Action\` when creating your handler.`);
21863
22088
  ];
21864
22089
  }
21865
22090
  });
21866
- })();
21867
- }
22091
+ });
22092
+ return function(next) {
22093
+ return _ref.apply(this, arguments);
22094
+ };
22095
+ }()
21868
22096
  });
21869
22097
  throw e;
21870
22098
  case 4:
@@ -21881,8 +22109,8 @@ Please add \`${key2}Action\` when creating your handler.`);
21881
22109
  _state.label = 6;
21882
22110
  case 6:
21883
22111
  api.start({
21884
- to: function(next) {
21885
- return _async_to_generator(function() {
22112
+ to: /* @__PURE__ */ function() {
22113
+ var _ref = _async_to_generator(function(next) {
21886
22114
  return __generator(this, function(_state2) {
21887
22115
  switch (_state2.label) {
21888
22116
  case 0:
@@ -21900,47 +22128,20 @@ Please add \`${key2}Action\` when creating your handler.`);
21900
22128
  ];
21901
22129
  }
21902
22130
  });
21903
- })();
21904
- }
22131
+ });
22132
+ return function(next) {
22133
+ return _ref.apply(this, arguments);
22134
+ };
22135
+ }()
21905
22136
  });
21906
22137
  return [
21907
22138
  2
21908
22139
  ];
21909
22140
  }
21910
22141
  });
21911
- })();
21912
- };
21913
- var classPrefix2 = "nut-pulltorefresh";
21914
- var locale = useConfig().locale;
21915
- var props = _object_spread({}, defaultProps$A, p2, {
21916
- pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
21917
- canReleaseText: p2.canReleaseText || locale.pullToRefresh.canReleaseText,
21918
- refreshingText: p2.refreshingText || locale.pullToRefresh.refreshingText,
21919
- completeText: p2.completeText || locale.pullToRefresh.completeText
21920
- });
21921
- var classes = classNames(classPrefix2, props.className, "".concat(classPrefix2, "-").concat(props.type));
21922
- var headHeight = props.headHeight;
21923
- var threshold = props.threshold;
21924
- var _useState = _sliced_to_array(React.useState("pulling"), 2), status = _useState[0], setStatus = _useState[1];
21925
- var _useSpring = _sliced_to_array(useSpring(function() {
21926
- return {
21927
- from: {
21928
- height: 0
21929
- },
21930
- config: {
21931
- tension: 300,
21932
- friction: 30,
21933
- clamp: true
21934
- }
21935
- };
21936
- }), 2), springStyles = _useSpring[0], api = _useSpring[1];
21937
- var elementRef = React.useRef(null);
21938
- var pullingRef = React.useRef(false);
21939
- React.useEffect(function() {
21940
- var _elementRef_current;
21941
- (_elementRef_current = elementRef.current) === null || _elementRef_current === void 0 ? void 0 : _elementRef_current.addEventListener("touchmove", function() {
21942
22142
  });
21943
- }, []);
22143
+ return _doRefresh.apply(this, arguments);
22144
+ }
21944
22145
  useDrag(function(state) {
21945
22146
  var getScrollTop = function getScrollTop2(element) {
21946
22147
  return "scrollTop" in element ? element.scrollTop : element.scrollY;
@@ -22506,7 +22707,9 @@ Please add \`${key2}Action\` when creating your handler.`);
22506
22707
  id: "toast-".concat(id)
22507
22708
  }, /* @__PURE__ */ React__namespace.createElement("div", {
22508
22709
  className: classNames("".concat(classPrefix$a, "-inner"), "".concat(classPrefix$a, "-").concat(position2), contentClassName, "".concat(classPrefix$a, "-inner-").concat(size), "".concat(classPrefix$a, "-inner-").concat(wordBreak), _define_property({}, "".concat(classPrefix$a, "-inner-descrption"), content2)),
22509
- style: _object_spread({}, contentStyle)
22710
+ style: _object_spread({}, contentStyle),
22711
+ role: "alert",
22712
+ "aria-label": (title !== null && title !== void 0 ? title : "") + (content2 !== null && content2 !== void 0 ? content2 : "")
22510
22713
  }, this.renderIcon(), title && /* @__PURE__ */ React__namespace.createElement("div", {
22511
22714
  className: "".concat(classPrefix$a, "-title")
22512
22715
  }, title), content2 && /* @__PURE__ */ React__namespace.createElement("span", {
@@ -22566,7 +22769,7 @@ Please add \`${key2}Action\` when creating your handler.`);
22566
22769
  messageInstance = null;
22567
22770
  }
22568
22771
  Notification.newInstance(props, function(notification) {
22569
- return callback && callback(notification);
22772
+ return callback(notification);
22570
22773
  });
22571
22774
  }
22572
22775
  function notice(opts2) {
@@ -23305,8 +23508,8 @@ Please add \`${key2}Action\` when creating your handler.`);
23305
23508
  var _useState = _sliced_to_array(React.useState(0), 2), tran = _useState[0], setTran = _useState[1];
23306
23509
  var _useRefState = _sliced_to_array(useRefState(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
23307
23510
  var _useState1 = _sliced_to_array(React.useState(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
23308
- var updateRectHeight = function() {
23309
- return _async_to_generator(function() {
23511
+ var updateRectHeight = /* @__PURE__ */ function() {
23512
+ var _ref2 = _async_to_generator(function() {
23310
23513
  var height2;
23311
23514
  return __generator(this, function(_state) {
23312
23515
  height2 = contentRef.current.offsetHeight;
@@ -23319,8 +23522,11 @@ Please add \`${key2}Action\` when creating your handler.`);
23319
23522
  2
23320
23523
  ];
23321
23524
  });
23322
- })();
23323
- };
23525
+ });
23526
+ return function updateRectHeight2() {
23527
+ return _ref2.apply(this, arguments);
23528
+ };
23529
+ }();
23324
23530
  React.useEffect(function() {
23325
23531
  updateRectHeight();
23326
23532
  }, [
@@ -24115,11 +24321,11 @@ Please add \`${key2}Action\` when creating your handler.`);
24115
24321
  var _$_object_spread = _object_spread({}, defaultProps$i, props), children = _$_object_spread.children, direction = _$_object_spread.direction, indicator = _$_object_spread.indicator, loop2 = _$_object_spread.loop, effect2 = _$_object_spread.effect, autoplay = _$_object_spread.autoplay, touchable = _$_object_spread.touchable, defaultValue = _$_object_spread.defaultValue, duration = _$_object_spread.duration, style = _$_object_spread.style, className = _$_object_spread.className;
24116
24322
  var isVertical = direction === "vertical";
24117
24323
  var count = React.useMemo(function() {
24118
- var c2 = 0;
24324
+ var c6 = 0;
24119
24325
  React.Children.map(children, function() {
24120
- c2 += 1;
24326
+ c6 += 1;
24121
24327
  });
24122
- return c2;
24328
+ return c6;
24123
24329
  }, [
24124
24330
  children
24125
24331
  ]);
@@ -24567,7 +24773,7 @@ Please add \`${key2}Action\` when creating your handler.`);
24567
24773
  ImagePreview.displayName = "NutImagePreview";
24568
24774
  var lottie$1 = { exports: {} };
24569
24775
  (function(module, exports) {
24570
- typeof document !== "undefined" && typeof navigator !== "undefined" && function(global2, factory) {
24776
+ typeof navigator !== "undefined" && function(global2, factory) {
24571
24777
  module.exports = factory();
24572
24778
  }(commonjsGlobal, function() {
24573
24779
  var svgNS = "http://www.w3.org/2000/svg";
@@ -24737,13 +24943,18 @@ Please add \`${key2}Action\` when creating your handler.`);
24737
24943
  length: len
24738
24944
  });
24739
24945
  }
24740
- function _typeof$6(o) {
24946
+ function _typeof$6(obj) {
24741
24947
  "@babel/helpers - typeof";
24742
- return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
24743
- return typeof o2;
24744
- } : function(o2) {
24745
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
24746
- }, _typeof$6(o);
24948
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
24949
+ _typeof$6 = function _typeof2(obj2) {
24950
+ return typeof obj2;
24951
+ };
24952
+ } else {
24953
+ _typeof$6 = function _typeof2(obj2) {
24954
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
24955
+ };
24956
+ }
24957
+ return _typeof$6(obj);
24747
24958
  }
24748
24959
  var subframeEnabled = true;
24749
24960
  var expressionsPlugin = null;
@@ -24990,13 +25201,18 @@ Please add \`${key2}Action\` when creating your handler.`);
24990
25201
  function createNS(type2) {
24991
25202
  return document.createElementNS(svgNS, type2);
24992
25203
  }
24993
- function _typeof$5(o) {
25204
+ function _typeof$5(obj) {
24994
25205
  "@babel/helpers - typeof";
24995
- return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
24996
- return typeof o2;
24997
- } : function(o2) {
24998
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
24999
- }, _typeof$5(o);
25206
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
25207
+ _typeof$5 = function _typeof2(obj2) {
25208
+ return typeof obj2;
25209
+ };
25210
+ } else {
25211
+ _typeof$5 = function _typeof2(obj2) {
25212
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
25213
+ };
25214
+ }
25215
+ return _typeof$5(obj);
25000
25216
  }
25001
25217
  var dataManager = /* @__PURE__ */ function() {
25002
25218
  var _counterId = 1;
@@ -25952,13 +26168,18 @@ Please add \`${key2}Action\` when creating your handler.`);
25952
26168
  }
25953
26169
  return "";
25954
26170
  }
25955
- function _typeof$4(o) {
26171
+ function _typeof$4(obj) {
25956
26172
  "@babel/helpers - typeof";
25957
- return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
25958
- return typeof o2;
25959
- } : function(o2) {
25960
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
25961
- }, _typeof$4(o);
26173
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
26174
+ _typeof$4 = function _typeof2(obj2) {
26175
+ return typeof obj2;
26176
+ };
26177
+ } else {
26178
+ _typeof$4 = function _typeof2(obj2) {
26179
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
26180
+ };
26181
+ }
26182
+ return _typeof$4(obj);
25962
26183
  }
25963
26184
  var AnimationItem = function AnimationItem2() {
25964
26185
  this._cbs = [];
@@ -26847,12 +27068,12 @@ Please add \`${key2}Action\` when creating your handler.`);
26847
27068
  var ob2 = {};
26848
27069
  ob2.getBezierEasing = getBezierEasing;
26849
27070
  var beziers = {};
26850
- function getBezierEasing(a, b, c2, d2, nm) {
26851
- var str = nm || ("bez_" + a + "_" + b + "_" + c2 + "_" + d2).replace(/\./g, "p");
27071
+ function getBezierEasing(a, b, c6, d2, nm) {
27072
+ var str = nm || ("bez_" + a + "_" + b + "_" + c6 + "_" + d2).replace(/\./g, "p");
26852
27073
  if (beziers[str]) {
26853
27074
  return beziers[str];
26854
27075
  }
26855
- var bezEasing = new BezierEasing([a, b, c2, d2]);
27076
+ var bezEasing = new BezierEasing([a, b, c6, d2]);
26856
27077
  beziers[str] = bezEasing;
26857
27078
  return bezEasing;
26858
27079
  }
@@ -27462,16 +27683,16 @@ Please add \`${key2}Action\` when creating your handler.`);
27462
27683
  var heading = values[0] * degToRads;
27463
27684
  var attitude = values[1] * degToRads;
27464
27685
  var bank = values[2] * degToRads;
27465
- var c1 = Math.cos(heading / 2);
27466
- var c2 = Math.cos(attitude / 2);
27467
- var c3 = Math.cos(bank / 2);
27686
+ var c12 = Math.cos(heading / 2);
27687
+ var c22 = Math.cos(attitude / 2);
27688
+ var c32 = Math.cos(bank / 2);
27468
27689
  var s1 = Math.sin(heading / 2);
27469
27690
  var s2 = Math.sin(attitude / 2);
27470
27691
  var s3 = Math.sin(bank / 2);
27471
- var w = c1 * c2 * c3 - s1 * s2 * s3;
27472
- var x = s1 * s2 * c3 + c1 * c2 * s3;
27473
- var y = s1 * c2 * c3 + c1 * s2 * s3;
27474
- var z = c1 * s2 * c3 - s1 * c2 * s3;
27692
+ var w = c12 * c22 * c32 - s1 * s2 * s3;
27693
+ var x = s1 * s2 * c32 + c12 * c22 * s3;
27694
+ var y = s1 * c22 * c32 + c12 * s2 * s3;
27695
+ var z = c12 * s2 * c32 - s1 * c22 * s3;
27475
27696
  return [x, y, z, w];
27476
27697
  }
27477
27698
  function getValueAtCurrentTime() {
@@ -28469,10 +28690,10 @@ Please add \`${key2}Action\` when creating your handler.`);
28469
28690
  }
28470
28691
  return this._t(sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, sz, 0, 0, 0, 0, 1);
28471
28692
  }
28472
- function setTransform(a, b, c2, d2, e, f, g, h, i2, j, k, l2, m2, n2, o, p2) {
28693
+ function setTransform(a, b, c6, d2, e, f, g, h, i2, j, k, l2, m2, n2, o, p2) {
28473
28694
  this.props[0] = a;
28474
28695
  this.props[1] = b;
28475
- this.props[2] = c2;
28696
+ this.props[2] = c6;
28476
28697
  this.props[3] = d2;
28477
28698
  this.props[4] = e;
28478
28699
  this.props[5] = f;
@@ -28495,9 +28716,9 @@ Please add \`${key2}Action\` when creating your handler.`);
28495
28716
  }
28496
28717
  return this;
28497
28718
  }
28498
- function transform2(a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2) {
28719
+ function transform2(a2, b2, c22, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2) {
28499
28720
  var _p = this.props;
28500
- if (a2 === 1 && b2 === 0 && c2 === 0 && d2 === 0 && e2 === 0 && f2 === 1 && g2 === 0 && h2 === 0 && i2 === 0 && j2 === 0 && k2 === 1 && l2 === 0) {
28721
+ if (a2 === 1 && b2 === 0 && c22 === 0 && d2 === 0 && e2 === 0 && f2 === 1 && g2 === 0 && h2 === 0 && i2 === 0 && j2 === 0 && k2 === 1 && l2 === 0) {
28501
28722
  _p[12] = _p[12] * a2 + _p[15] * m2;
28502
28723
  _p[13] = _p[13] * f2 + _p[15] * n2;
28503
28724
  _p[14] = _p[14] * k2 + _p[15] * o2;
@@ -28507,7 +28728,7 @@ Please add \`${key2}Action\` when creating your handler.`);
28507
28728
  }
28508
28729
  var a1 = _p[0];
28509
28730
  var b1 = _p[1];
28510
- var c1 = _p[2];
28731
+ var c12 = _p[2];
28511
28732
  var d1 = _p[3];
28512
28733
  var e1 = _p[4];
28513
28734
  var f1 = _p[5];
@@ -28521,21 +28742,21 @@ Please add \`${key2}Action\` when creating your handler.`);
28521
28742
  var n1 = _p[13];
28522
28743
  var o1 = _p[14];
28523
28744
  var p1 = _p[15];
28524
- _p[0] = a1 * a2 + b1 * e2 + c1 * i2 + d1 * m2;
28525
- _p[1] = a1 * b2 + b1 * f2 + c1 * j2 + d1 * n2;
28526
- _p[2] = a1 * c2 + b1 * g2 + c1 * k2 + d1 * o2;
28527
- _p[3] = a1 * d2 + b1 * h2 + c1 * l2 + d1 * p2;
28745
+ _p[0] = a1 * a2 + b1 * e2 + c12 * i2 + d1 * m2;
28746
+ _p[1] = a1 * b2 + b1 * f2 + c12 * j2 + d1 * n2;
28747
+ _p[2] = a1 * c22 + b1 * g2 + c12 * k2 + d1 * o2;
28748
+ _p[3] = a1 * d2 + b1 * h2 + c12 * l2 + d1 * p2;
28528
28749
  _p[4] = e1 * a2 + f1 * e2 + g1 * i2 + h1 * m2;
28529
28750
  _p[5] = e1 * b2 + f1 * f2 + g1 * j2 + h1 * n2;
28530
- _p[6] = e1 * c2 + f1 * g2 + g1 * k2 + h1 * o2;
28751
+ _p[6] = e1 * c22 + f1 * g2 + g1 * k2 + h1 * o2;
28531
28752
  _p[7] = e1 * d2 + f1 * h2 + g1 * l2 + h1 * p2;
28532
28753
  _p[8] = i1 * a2 + j1 * e2 + k1 * i2 + l1 * m2;
28533
28754
  _p[9] = i1 * b2 + j1 * f2 + k1 * j2 + l1 * n2;
28534
- _p[10] = i1 * c2 + j1 * g2 + k1 * k2 + l1 * o2;
28755
+ _p[10] = i1 * c22 + j1 * g2 + k1 * k2 + l1 * o2;
28535
28756
  _p[11] = i1 * d2 + j1 * h2 + k1 * l2 + l1 * p2;
28536
28757
  _p[12] = m1 * a2 + n1 * e2 + o1 * i2 + p1 * m2;
28537
28758
  _p[13] = m1 * b2 + n1 * f2 + o1 * j2 + p1 * n2;
28538
- _p[14] = m1 * c2 + n1 * g2 + o1 * k2 + p1 * o2;
28759
+ _p[14] = m1 * c22 + n1 * g2 + o1 * k2 + p1 * o2;
28539
28760
  _p[15] = m1 * d2 + n1 * h2 + o1 * l2 + p1 * p2;
28540
28761
  this._identityCalculated = false;
28541
28762
  return this;
@@ -28594,14 +28815,14 @@ Please add \`${key2}Action\` when creating your handler.`);
28594
28815
  var determinant = this.props[0] * this.props[5] - this.props[1] * this.props[4];
28595
28816
  var a = this.props[5] / determinant;
28596
28817
  var b = -this.props[1] / determinant;
28597
- var c2 = -this.props[4] / determinant;
28818
+ var c6 = -this.props[4] / determinant;
28598
28819
  var d2 = this.props[0] / determinant;
28599
28820
  var e = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / determinant;
28600
28821
  var f = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / determinant;
28601
28822
  var inverseMatrix = new Matrix();
28602
28823
  inverseMatrix.props[0] = a;
28603
28824
  inverseMatrix.props[1] = b;
28604
- inverseMatrix.props[4] = c2;
28825
+ inverseMatrix.props[4] = c6;
28605
28826
  inverseMatrix.props[5] = d2;
28606
28827
  inverseMatrix.props[12] = e;
28607
28828
  inverseMatrix.props[13] = f;
@@ -28727,13 +28948,18 @@ Please add \`${key2}Action\` when creating your handler.`);
28727
28948
  this.reset();
28728
28949
  };
28729
28950
  }();
28730
- function _typeof$3(o) {
28951
+ function _typeof$3(obj) {
28731
28952
  "@babel/helpers - typeof";
28732
- return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
28733
- return typeof o2;
28734
- } : function(o2) {
28735
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
28736
- }, _typeof$3(o);
28953
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
28954
+ _typeof$3 = function _typeof2(obj2) {
28955
+ return typeof obj2;
28956
+ };
28957
+ } else {
28958
+ _typeof$3 = function _typeof2(obj2) {
28959
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
28960
+ };
28961
+ }
28962
+ return _typeof$3(obj);
28737
28963
  }
28738
28964
  var lottie = {};
28739
28965
  function setLocation(href) {
@@ -28817,7 +29043,7 @@ Please add \`${key2}Action\` when creating your handler.`);
28817
29043
  lottie.useWebWorker = setWebWorker;
28818
29044
  lottie.setIDPrefix = setPrefix;
28819
29045
  lottie.__getFactory = getFactory;
28820
- lottie.version = "5.13.0";
29046
+ lottie.version = "5.12.2";
28821
29047
  function checkReady() {
28822
29048
  if (document.readyState === "complete") {
28823
29049
  clearInterval(readyStateCheckInterval);
@@ -29894,9 +30120,9 @@ Please add \`${key2}Action\` when creating your handler.`);
29894
30120
  function lerpPoint(p0, p1, amount) {
29895
30121
  return [lerp(p0[0], p1[0], amount), lerp(p0[1], p1[1], amount)];
29896
30122
  }
29897
- function quadRoots(a, b, c2) {
30123
+ function quadRoots(a, b, c6) {
29898
30124
  if (a === 0) return [];
29899
- var s2 = b * b - 4 * a * c2;
30125
+ var s2 = b * b - 4 * a * c6;
29900
30126
  if (s2 < 0) return [];
29901
30127
  var singleRoot = -b / (2 * a);
29902
30128
  if (s2 === 0) return [singleRoot];
@@ -31411,7 +31637,7 @@ Please add \`${key2}Action\` when creating your handler.`);
31411
31637
  }
31412
31638
  }
31413
31639
  }
31414
- if (!this.localTransforms || this.finalTransform._matMdf) {
31640
+ if (this.finalTransform._matMdf) {
31415
31641
  this.finalTransform._localMatMdf = this.finalTransform._matMdf;
31416
31642
  }
31417
31643
  if (this.finalTransform._opMdf) {
@@ -32649,7 +32875,7 @@ Please add \`${key2}Action\` when creating your handler.`);
32649
32875
  itemData.of.setAttribute("r", rad);
32650
32876
  }
32651
32877
  }
32652
- if (itemData.s._mdf || itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
32878
+ if (itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
32653
32879
  if (!rad) {
32654
32880
  rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
32655
32881
  }
@@ -32846,7 +33072,7 @@ Please add \`${key2}Action\` when creating your handler.`);
32846
33072
  var j;
32847
33073
  var jLen = this.stylesList.length;
32848
33074
  for (j = 0; j < jLen; j += 1) {
32849
- if (arr.indexOf(this.stylesList[j]) === -1 && !this.stylesList[j].closed) {
33075
+ if (!this.stylesList[j].closed) {
32850
33076
  arr.push(this.stylesList[j]);
32851
33077
  }
32852
33078
  }
@@ -32888,7 +33114,7 @@ Please add \`${key2}Action\` when creating your handler.`);
32888
33114
  if (!processedPos) {
32889
33115
  itemsData[i2] = this.createStyleElement(arr[i2], level);
32890
33116
  } else {
32891
- itemsData[i2].style.closed = arr[i2].hd;
33117
+ itemsData[i2].style.closed = false;
32892
33118
  }
32893
33119
  if (arr[i2]._render) {
32894
33120
  if (itemsData[i2].style.pElem.parentNode !== container) {
@@ -36800,21 +37026,21 @@ Please add \`${key2}Action\` when creating your handler.`);
36800
37026
  };
36801
37027
  HShapeElement.prototype.getBoundsOfCurve = function(p0, p1, p2, p3) {
36802
37028
  var bounds = [[p0[0], p3[0]], [p0[1], p3[1]]];
36803
- for (var a, b, c2, t, b2ac, t1, t2, i2 = 0; i2 < 2; ++i2) {
37029
+ for (var a, b, c6, t, b2ac, t1, t2, i2 = 0; i2 < 2; ++i2) {
36804
37030
  b = 6 * p0[i2] - 12 * p1[i2] + 6 * p2[i2];
36805
37031
  a = -3 * p0[i2] + 9 * p1[i2] - 9 * p2[i2] + 3 * p3[i2];
36806
- c2 = 3 * p1[i2] - 3 * p0[i2];
37032
+ c6 = 3 * p1[i2] - 3 * p0[i2];
36807
37033
  b |= 0;
36808
37034
  a |= 0;
36809
- c2 |= 0;
37035
+ c6 |= 0;
36810
37036
  if (a === 0 && b === 0) ;
36811
37037
  else if (a === 0) {
36812
- t = -c2 / b;
37038
+ t = -c6 / b;
36813
37039
  if (t > 0 && t < 1) {
36814
37040
  bounds[i2].push(this.calculateF(t, p0, p1, p2, p3, i2));
36815
37041
  }
36816
37042
  } else {
36817
- b2ac = b * b - 4 * c2 * a;
37043
+ b2ac = b * b - 4 * c6 * a;
36818
37044
  if (b2ac >= 0) {
36819
37045
  t1 = (-b + bmSqrt(b2ac)) / (2 * a);
36820
37046
  if (t1 > 0 && t1 < 1) bounds[i2].push(this.calculateF(t1, p0, p1, p2, p3, i2));
@@ -37725,13 +37951,18 @@ Please add \`${key2}Action\` when creating your handler.`);
37725
37951
  return _thisLayerFunction;
37726
37952
  };
37727
37953
  }();
37728
- function _typeof$2(o) {
37954
+ function _typeof$2(obj) {
37729
37955
  "@babel/helpers - typeof";
37730
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
37731
- return typeof o2;
37732
- } : function(o2) {
37733
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
37734
- }, _typeof$2(o);
37956
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
37957
+ _typeof$2 = function _typeof2(obj2) {
37958
+ return typeof obj2;
37959
+ };
37960
+ } else {
37961
+ _typeof$2 = function _typeof2(obj2) {
37962
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
37963
+ };
37964
+ }
37965
+ return _typeof$2(obj);
37735
37966
  }
37736
37967
  function seedRandom(pool, math) {
37737
37968
  var global2 = this, width2 = 256, chunks = 6, digits = 52, rngname = "random", startdenom = math.pow(width2, chunks), significance = math.pow(2, digits), overflow = significance * 2, mask2 = width2 - 1, nodecrypto;
@@ -37850,13 +38081,18 @@ Please add \`${key2}Action\` when creating your handler.`);
37850
38081
  var propTypes = {
37851
38082
  SHAPE: "shape"
37852
38083
  };
37853
- function _typeof$1(o) {
38084
+ function _typeof$1(obj) {
37854
38085
  "@babel/helpers - typeof";
37855
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
37856
- return typeof o2;
37857
- } : function(o2) {
37858
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
37859
- }, _typeof$1(o);
38086
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
38087
+ _typeof$1 = function _typeof2(obj2) {
38088
+ return typeof obj2;
38089
+ };
38090
+ } else {
38091
+ _typeof$1 = function _typeof2(obj2) {
38092
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
38093
+ };
38094
+ }
38095
+ return _typeof$1(obj);
37860
38096
  }
37861
38097
  var ExpressionManager = function() {
37862
38098
  var ob = {};
@@ -38224,7 +38460,6 @@ Please add \`${key2}Action\` when creating your handler.`);
38224
38460
  var content;
38225
38461
  var effect;
38226
38462
  var thisProperty = property;
38227
- thisProperty._name = elem.data.nm;
38228
38463
  thisProperty.valueAtTime = thisProperty.getValueAtTime;
38229
38464
  Object.defineProperty(thisProperty, "value", {
38230
38465
  get: function get() {
@@ -38661,7 +38896,6 @@ Please add \`${key2}Action\` when creating your handler.`);
38661
38896
  if (expressionValue.value !== val2) {
38662
38897
  expressionValue = new Number(val2);
38663
38898
  expressionValue.value = val2;
38664
- expressionValue[0] = val2;
38665
38899
  completeProperty(expressionValue, property2, "unidimensional");
38666
38900
  }
38667
38901
  return expressionValue;
@@ -39701,13 +39935,18 @@ Please add \`${key2}Action\` when creating your handler.`);
39701
39935
  return _thisLayerFunction;
39702
39936
  };
39703
39937
  }();
39704
- function _typeof(o) {
39938
+ function _typeof(obj) {
39705
39939
  "@babel/helpers - typeof";
39706
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
39707
- return typeof o2;
39708
- } : function(o2) {
39709
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
39710
- }, _typeof(o);
39940
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
39941
+ _typeof = function _typeof2(obj2) {
39942
+ return typeof obj2;
39943
+ };
39944
+ } else {
39945
+ _typeof = function _typeof2(obj2) {
39946
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
39947
+ };
39948
+ }
39949
+ return _typeof(obj);
39711
39950
  }
39712
39951
  var FootageInterface = /* @__PURE__ */ function() {
39713
39952
  var outlineInterfaceFactory = function outlineInterfaceFactory2(elem2) {
@@ -40819,106 +41058,122 @@ Please add \`${key2}Action\` when creating your handler.`);
40819
41058
  })(lottie$1, lottie$1.exports);
40820
41059
  var lottieExports = lottie$1.exports;
40821
41060
  const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports);
40822
- function _arrayLikeToArray(r, a) {
40823
- (null == a || a > r.length) && (a = r.length);
40824
- for (var e = 0, n2 = Array(a); e < a; e++) n2[e] = r[e];
40825
- return n2;
40826
- }
40827
- function _arrayWithHoles(r) {
40828
- if (Array.isArray(r)) return r;
40829
- }
40830
- function _defineProperty(e, r, t) {
40831
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
40832
- value: t,
40833
- enumerable: true,
40834
- configurable: true,
40835
- writable: true
40836
- }) : e[r] = t, e;
40837
- }
40838
- function _iterableToArrayLimit(r, l2) {
40839
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
40840
- if (null != t) {
40841
- var e, n2, i2, u, a = [], f = true, o = false;
41061
+ function _iterableToArrayLimit(arr, i2) {
41062
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
41063
+ if (null != _i) {
41064
+ var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
40842
41065
  try {
40843
- if (i2 = (t = t.call(r)).next, 0 === l2) ;
40844
- else for (; !(f = (e = i2.call(t)).done) && (a.push(e.value), a.length !== l2); f = true) ;
40845
- } catch (r2) {
40846
- o = true, n2 = r2;
41066
+ if (_x = (_i = _i.call(arr)).next, 0 === i2) ;
41067
+ else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i2); _n = true) ;
41068
+ } catch (err) {
41069
+ _d = true, _e = err;
40847
41070
  } finally {
40848
41071
  try {
40849
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
41072
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
40850
41073
  } finally {
40851
- if (o) throw n2;
41074
+ if (_d) throw _e;
40852
41075
  }
40853
41076
  }
40854
- return a;
41077
+ return _arr;
40855
41078
  }
40856
41079
  }
40857
- function _nonIterableRest() {
40858
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
40859
- }
40860
- function ownKeys(e, r) {
40861
- var t = Object.keys(e);
41080
+ function ownKeys(object2, enumerableOnly) {
41081
+ var keys = Object.keys(object2);
40862
41082
  if (Object.getOwnPropertySymbols) {
40863
- var o = Object.getOwnPropertySymbols(e);
40864
- r && (o = o.filter(function(r2) {
40865
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
40866
- })), t.push.apply(t, o);
41083
+ var symbols = Object.getOwnPropertySymbols(object2);
41084
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
41085
+ return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
41086
+ })), keys.push.apply(keys, symbols);
40867
41087
  }
40868
- return t;
41088
+ return keys;
40869
41089
  }
40870
- function _objectSpread2(e) {
40871
- for (var r = 1; r < arguments.length; r++) {
40872
- var t = null != arguments[r] ? arguments[r] : {};
40873
- r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
40874
- _defineProperty(e, r2, t[r2]);
40875
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
40876
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
41090
+ function _objectSpread2(target) {
41091
+ for (var i2 = 1; i2 < arguments.length; i2++) {
41092
+ var source = null != arguments[i2] ? arguments[i2] : {};
41093
+ i2 % 2 ? ownKeys(Object(source), true).forEach(function(key2) {
41094
+ _defineProperty(target, key2, source[key2]);
41095
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key2) {
41096
+ Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2));
40877
41097
  });
40878
41098
  }
40879
- return e;
41099
+ return target;
40880
41100
  }
40881
- function _objectWithoutProperties(e, t) {
40882
- if (null == e) return {};
40883
- var o, r, i2 = _objectWithoutPropertiesLoose(e, t);
40884
- if (Object.getOwnPropertySymbols) {
40885
- var s2 = Object.getOwnPropertySymbols(e);
40886
- for (r = 0; r < s2.length; r++) o = s2[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i2[o] = e[o]);
41101
+ function _defineProperty(obj, key2, value2) {
41102
+ key2 = _toPropertyKey(key2);
41103
+ if (key2 in obj) {
41104
+ Object.defineProperty(obj, key2, {
41105
+ value: value2,
41106
+ enumerable: true,
41107
+ configurable: true,
41108
+ writable: true
41109
+ });
41110
+ } else {
41111
+ obj[key2] = value2;
40887
41112
  }
40888
- return i2;
41113
+ return obj;
40889
41114
  }
40890
- function _objectWithoutPropertiesLoose(r, e) {
40891
- if (null == r) return {};
40892
- var t = {};
40893
- for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
40894
- if (e.includes(n2)) continue;
40895
- t[n2] = r[n2];
41115
+ function _objectWithoutPropertiesLoose(source, excluded) {
41116
+ if (source == null) return {};
41117
+ var target = {};
41118
+ var sourceKeys = Object.keys(source);
41119
+ var key2, i2;
41120
+ for (i2 = 0; i2 < sourceKeys.length; i2++) {
41121
+ key2 = sourceKeys[i2];
41122
+ if (excluded.indexOf(key2) >= 0) continue;
41123
+ target[key2] = source[key2];
40896
41124
  }
40897
- return t;
40898
- }
40899
- function _slicedToArray(r, e) {
40900
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
41125
+ return target;
40901
41126
  }
40902
- function _toPrimitive(t, r) {
40903
- if ("object" != typeof t || !t) return t;
40904
- var e = t[Symbol.toPrimitive];
40905
- if (void 0 !== e) {
40906
- var i2 = e.call(t, r);
40907
- if ("object" != typeof i2) return i2;
40908
- throw new TypeError("@@toPrimitive must return a primitive value.");
41127
+ function _objectWithoutProperties(source, excluded) {
41128
+ if (source == null) return {};
41129
+ var target = _objectWithoutPropertiesLoose(source, excluded);
41130
+ var key2, i2;
41131
+ if (Object.getOwnPropertySymbols) {
41132
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
41133
+ for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
41134
+ key2 = sourceSymbolKeys[i2];
41135
+ if (excluded.indexOf(key2) >= 0) continue;
41136
+ if (!Object.prototype.propertyIsEnumerable.call(source, key2)) continue;
41137
+ target[key2] = source[key2];
41138
+ }
40909
41139
  }
40910
- return ("string" === r ? String : Number)(t);
41140
+ return target;
40911
41141
  }
40912
- function _toPropertyKey(t) {
40913
- var i2 = _toPrimitive(t, "string");
40914
- return "symbol" == typeof i2 ? i2 : i2 + "";
41142
+ function _slicedToArray(arr, i2) {
41143
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray(arr, i2) || _nonIterableRest();
40915
41144
  }
40916
- function _unsupportedIterableToArray(r, a) {
40917
- if (r) {
40918
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
40919
- var t = {}.toString.call(r).slice(8, -1);
40920
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
41145
+ function _arrayWithHoles(arr) {
41146
+ if (Array.isArray(arr)) return arr;
41147
+ }
41148
+ function _unsupportedIterableToArray(o, minLen) {
41149
+ if (!o) return;
41150
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
41151
+ var n2 = Object.prototype.toString.call(o).slice(8, -1);
41152
+ if (n2 === "Object" && o.constructor) n2 = o.constructor.name;
41153
+ if (n2 === "Map" || n2 === "Set") return Array.from(o);
41154
+ if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray(o, minLen);
41155
+ }
41156
+ function _arrayLikeToArray(arr, len) {
41157
+ if (len == null || len > arr.length) len = arr.length;
41158
+ for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++) arr2[i2] = arr[i2];
41159
+ return arr2;
41160
+ }
41161
+ function _nonIterableRest() {
41162
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
41163
+ }
41164
+ function _toPrimitive(input, hint) {
41165
+ if (typeof input !== "object" || input === null) return input;
41166
+ var prim = input[Symbol.toPrimitive];
41167
+ if (prim !== void 0) {
41168
+ var res = prim.call(input, hint || "default");
41169
+ if (typeof res !== "object") return res;
41170
+ throw new TypeError("@@toPrimitive must return a primitive value.");
40921
41171
  }
41172
+ return (hint === "string" ? String : Number)(input);
41173
+ }
41174
+ function _toPropertyKey(arg) {
41175
+ var key2 = _toPrimitive(arg, "string");
41176
+ return typeof key2 === "symbol" ? key2 : String(key2);
40922
41177
  }
40923
41178
  var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"];
40924
41179
  var useLottie = function useLottie2(props, style) {
@@ -42691,8 +42946,8 @@ Please add \`${key2}Action\` when creating your handler.`);
42691
42946
  }));
42692
42947
  resetScale(scale2);
42693
42948
  };
42694
- var inputImageChange = function(event) {
42695
- return _async_to_generator(function() {
42949
+ var inputImageChange = /* @__PURE__ */ function() {
42950
+ var _ref2 = _async_to_generator(function(event) {
42696
42951
  var $el, files, base64, image;
42697
42952
  return __generator(this, function(_state) {
42698
42953
  switch (_state.label) {
@@ -42721,8 +42976,11 @@ Please add \`${key2}Action\` when creating your handler.`);
42721
42976
  ];
42722
42977
  }
42723
42978
  });
42724
- })();
42725
- };
42979
+ });
42980
+ return function inputImageChange2(event) {
42981
+ return _ref2.apply(this, arguments);
42982
+ };
42983
+ }();
42726
42984
  var resetScale = function(scale2) {
42727
42985
  setState(_object_spread_props(_object_spread({}, state), {
42728
42986
  moveX: 0,
@@ -42733,7 +42991,7 @@ Please add \`${key2}Action\` when creating your handler.`);
42733
42991
  }));
42734
42992
  };
42735
42993
  var setScale = function(scale2) {
42736
- scale2 = clamp$1(scale2, 0.3, +maxZoom + 1);
42994
+ scale2 = clamp$2(scale2, 0.3, +maxZoom + 1);
42737
42995
  if (scale2 !== state.scale) {
42738
42996
  setState(_object_spread_props(_object_spread({}, state), {
42739
42997
  scale: scale2
@@ -42779,8 +43037,8 @@ Please add \`${key2}Action\` when creating your handler.`);
42779
43037
  var moveX = deltaX.current * state.scale + startMoveX;
42780
43038
  var moveY = deltaY.current * state.scale + startMoveY;
42781
43039
  setState(_object_spread_props(_object_spread({}, state), {
42782
- moveX: clamp$1(moveX, -maxMoveX, maxMoveX),
42783
- moveY: clamp$1(moveY, -maxMoveY, maxMoveY)
43040
+ moveX: clamp$2(moveX, -maxMoveX, maxMoveX),
43041
+ moveY: clamp$2(moveY, -maxMoveY, maxMoveY)
42784
43042
  }));
42785
43043
  }
42786
43044
  if (zooming && touches.length === 2) {
@@ -42796,8 +43054,8 @@ Please add \`${key2}Action\` when creating your handler.`);
42796
43054
  if (!event.touches.length) {
42797
43055
  if (zooming) {
42798
43056
  setState(_object_spread_props(_object_spread({}, state), {
42799
- moveX: clamp$1(state.moveX, -maxMoveX, maxMoveX),
42800
- moveY: clamp$1(state.moveY, -maxMoveY, maxMoveY)
43057
+ moveX: clamp$2(state.moveX, -maxMoveX, maxMoveX),
43058
+ moveY: clamp$2(state.moveY, -maxMoveY, maxMoveY)
42801
43059
  }));
42802
43060
  setZooming(false);
42803
43061
  }
@@ -43539,7 +43797,7 @@ Please add \`${key2}Action\` when creating your handler.`);
43539
43797
  exports.bound = bound;
43540
43798
  exports.canUseDom = canUseDom;
43541
43799
  exports.cancelRaf = cancelRaf;
43542
- exports.clamp = clamp$1;
43800
+ exports.clamp = clamp$2;
43543
43801
  exports.clone = clone;
43544
43802
  exports.destroyList = destroyList;
43545
43803
  exports.funcInterceptor = funcInterceptor;