@sheinx/base 3.0.0-alpha.30 → 3.0.0-alpha.32

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 (932) hide show
  1. package/cjs/absolute-list/absolute-context.js +1 -2
  2. package/cjs/absolute-list/absolute-list.d.ts +3 -1
  3. package/cjs/absolute-list/absolute-list.d.ts.map +1 -1
  4. package/cjs/absolute-list/absolute-list.js +10 -15
  5. package/cjs/absolute-list/absolute-list.type.d.ts +2 -2
  6. package/cjs/absolute-list/absolute-list.type.d.ts.map +1 -1
  7. package/cjs/absolute-list/index.js +2 -2
  8. package/cjs/absolute-list/use-container.js +7 -14
  9. package/cjs/alert/alert-icon.js +11 -13
  10. package/cjs/alert/alert.js +24 -23
  11. package/cjs/alert/alert.type.d.ts +1 -1
  12. package/cjs/alert/alert.type.d.ts.map +1 -1
  13. package/cjs/alert/index.js +2 -2
  14. package/cjs/animation-list/animation-list.js +20 -25
  15. package/cjs/animation-list/animation-list.type.d.ts +1 -1
  16. package/cjs/animation-list/animation-list.type.d.ts.map +1 -1
  17. package/cjs/animation-list/index.js +2 -2
  18. package/cjs/breadcrumb/breadcrumb.js +16 -15
  19. package/cjs/breadcrumb/breadcrumb.type.d.ts +1 -1
  20. package/cjs/breadcrumb/breadcrumb.type.d.ts.map +1 -1
  21. package/cjs/breadcrumb/index.js +2 -2
  22. package/cjs/breadcrumb/list.js +18 -16
  23. package/cjs/button/button-group.js +6 -12
  24. package/cjs/button/button-item.js +3 -4
  25. package/cjs/button/button.js +13 -13
  26. package/cjs/button/button.type.d.ts +1 -1
  27. package/cjs/button/button.type.d.ts.map +1 -1
  28. package/cjs/button/index.js +2 -2
  29. package/cjs/card/card-accordion-context.js +3 -5
  30. package/cjs/card/card-accordion.js +11 -7
  31. package/cjs/card/card-body.js +3 -4
  32. package/cjs/card/card-footer.js +3 -4
  33. package/cjs/card/card-header.js +4 -5
  34. package/cjs/card/card.context.js +3 -4
  35. package/cjs/card/card.js +17 -16
  36. package/cjs/card/index.js +2 -2
  37. package/cjs/card-group/card-group-context.js +2 -3
  38. package/cjs/card-group/card-group.js +9 -10
  39. package/cjs/card-group/index.js +2 -2
  40. package/cjs/card-group/item.js +6 -10
  41. package/cjs/card-group/lazyload.js +11 -11
  42. package/cjs/carousel/carousel.js +13 -17
  43. package/cjs/carousel/carousel.type.d.ts +0 -1
  44. package/cjs/carousel/carousel.type.d.ts.map +1 -1
  45. package/cjs/carousel/index.js +2 -2
  46. package/cjs/cascader/cascader.d.ts.map +1 -1
  47. package/cjs/cascader/cascader.js +45 -46
  48. package/cjs/cascader/cascader.type.d.ts +4 -1
  49. package/cjs/cascader/cascader.type.d.ts.map +1 -1
  50. package/cjs/cascader/filter-list.js +3 -6
  51. package/cjs/cascader/filter-node.js +3 -6
  52. package/cjs/cascader/index.js +2 -2
  53. package/cjs/cascader/list.js +3 -5
  54. package/cjs/cascader/node.d.ts.map +1 -1
  55. package/cjs/cascader/node.js +26 -18
  56. package/cjs/checkbox/checkbox-group.js +3 -5
  57. package/cjs/checkbox/checkbox.js +14 -14
  58. package/cjs/checkbox/group-context.d.ts +1 -1
  59. package/cjs/checkbox/group-context.d.ts.map +1 -1
  60. package/cjs/checkbox/group-context.js +1 -2
  61. package/cjs/checkbox/index.js +2 -2
  62. package/cjs/checkbox/simple-checkbox.js +12 -12
  63. package/cjs/checkbox/use-checkbox-inputable.js +10 -7
  64. package/cjs/collapse/collapse-item.js +10 -15
  65. package/cjs/collapse/collapse.js +3 -4
  66. package/cjs/collapse/group-context.d.ts +1 -1
  67. package/cjs/collapse/group-context.d.ts.map +1 -1
  68. package/cjs/collapse/group-context.js +1 -2
  69. package/cjs/collapse/index.js +2 -2
  70. package/cjs/common/use-clear.js +2 -3
  71. package/cjs/common/use-inner-title.js +13 -12
  72. package/cjs/common/use-tip.js +8 -9
  73. package/cjs/common/use-with-form-config.js +8 -11
  74. package/cjs/config/index.d.ts +1 -4
  75. package/cjs/config/index.d.ts.map +1 -1
  76. package/cjs/config/index.js +18 -18
  77. package/cjs/config/locale/Props.d.ts +4 -4
  78. package/cjs/config/locale/Props.d.ts.map +1 -1
  79. package/cjs/config/locale/en_US.js +2 -3
  80. package/cjs/config/locale/index.js +3 -3
  81. package/cjs/config/locale/zh-CN.js +2 -3
  82. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  83. package/cjs/date-picker/date-picker.js +26 -27
  84. package/cjs/date-picker/date-picker.type.d.ts +2 -2
  85. package/cjs/date-picker/date-picker.type.d.ts.map +1 -1
  86. package/cjs/date-picker/day.js +15 -21
  87. package/cjs/date-picker/index.js +2 -2
  88. package/cjs/date-picker/month.js +5 -9
  89. package/cjs/date-picker/month.type.d.ts +1 -1
  90. package/cjs/date-picker/month.type.d.ts.map +1 -1
  91. package/cjs/date-picker/picker.js +9 -11
  92. package/cjs/date-picker/pickerTitle.js +2 -3
  93. package/cjs/date-picker/quarter.js +5 -9
  94. package/cjs/date-picker/quarter.type.d.ts +1 -1
  95. package/cjs/date-picker/quarter.type.d.ts.map +1 -1
  96. package/cjs/date-picker/quick.js +3 -5
  97. package/cjs/date-picker/result.js +17 -17
  98. package/cjs/date-picker/time.js +7 -12
  99. package/cjs/date-picker/year.js +5 -9
  100. package/cjs/date-picker/year.type.d.ts +1 -1
  101. package/cjs/date-picker/year.type.d.ts.map +1 -1
  102. package/cjs/descriptions/descriptions.js +11 -18
  103. package/cjs/descriptions/descriptions.type.d.ts +1 -1
  104. package/cjs/descriptions/descriptions.type.d.ts.map +1 -1
  105. package/cjs/descriptions/index.js +2 -2
  106. package/cjs/divider/divider.js +3 -4
  107. package/cjs/divider/index.js +2 -2
  108. package/cjs/dropdown/Item.js +23 -27
  109. package/cjs/dropdown/dropdown.js +8 -9
  110. package/cjs/dropdown/dropdown.type.d.ts +5 -5
  111. package/cjs/dropdown/dropdown.type.d.ts.map +1 -1
  112. package/cjs/dropdown/dropdown.type.js +2 -2
  113. package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
  114. package/cjs/dropdown/dropdownIn.js +11 -14
  115. package/cjs/dropdown/index.d.ts +1 -1
  116. package/cjs/dropdown/index.d.ts.map +1 -1
  117. package/cjs/dropdown/index.js +2 -2
  118. package/cjs/editable-area/editable-area.d.ts.map +1 -1
  119. package/cjs/editable-area/editable-area.js +21 -22
  120. package/cjs/editable-area/index.js +2 -2
  121. package/cjs/empty/empty-image.js +2 -3
  122. package/cjs/empty/empty.js +12 -13
  123. package/cjs/empty/index.js +2 -2
  124. package/cjs/form/error-trans.js +2 -6
  125. package/cjs/form/form-button.js +8 -9
  126. package/cjs/form/form-field.js +2 -4
  127. package/cjs/form/form-field.type.d.ts +1 -1
  128. package/cjs/form/form-field.type.d.ts.map +1 -1
  129. package/cjs/form/form-fieldset.js +2 -8
  130. package/cjs/form/form-flow.js +1 -2
  131. package/cjs/form/form-footer-context.js +14 -16
  132. package/cjs/form/form-item.js +13 -14
  133. package/cjs/form/form.d.ts +1 -1
  134. package/cjs/form/form.d.ts.map +1 -1
  135. package/cjs/form/form.js +16 -20
  136. package/cjs/form/form.type.js +1 -2
  137. package/cjs/form/index.js +2 -2
  138. package/cjs/gap/gap.js +9 -11
  139. package/cjs/gap/index.js +2 -2
  140. package/cjs/grid/grid.js +13 -19
  141. package/cjs/grid/grid.type.d.ts +1 -1
  142. package/cjs/grid/grid.type.d.ts.map +1 -1
  143. package/cjs/grid/index.js +2 -2
  144. package/cjs/grid/util.d.ts +1 -1
  145. package/cjs/grid/util.d.ts.map +1 -1
  146. package/cjs/grid/util.js +0 -3
  147. package/cjs/icon/icon.js +12 -14
  148. package/cjs/icon/icon.type.d.ts +1 -1
  149. package/cjs/icon/icon.type.d.ts.map +1 -1
  150. package/cjs/icon/index.js +2 -2
  151. package/cjs/icons/config.d.ts +144 -0
  152. package/cjs/icons/config.d.ts.map +1 -0
  153. package/cjs/icons/config.js +164 -0
  154. package/cjs/icons/icons.d.ts +46 -0
  155. package/cjs/icons/icons.d.ts.map +1 -0
  156. package/cjs/icons/icons.js +184 -0
  157. package/cjs/icons/index.d.ts +1 -47
  158. package/cjs/icons/index.d.ts.map +1 -1
  159. package/cjs/icons/index.js +14 -187
  160. package/cjs/image/image-event.js +3 -4
  161. package/cjs/image/image-gallery.js +14 -15
  162. package/cjs/image/image-group.d.ts.map +1 -1
  163. package/cjs/image/image-group.js +16 -22
  164. package/cjs/image/image-magnify.js +10 -11
  165. package/cjs/image/image.js +19 -23
  166. package/cjs/image/image.type.d.ts +4 -4
  167. package/cjs/image/image.type.d.ts.map +1 -1
  168. package/cjs/image/index.js +2 -2
  169. package/cjs/index.d.ts +1 -1
  170. package/cjs/index.d.ts.map +1 -1
  171. package/cjs/index.js +4 -6
  172. package/cjs/input/index.js +2 -2
  173. package/cjs/input/input-group.js +26 -27
  174. package/cjs/input/input-number.js +16 -16
  175. package/cjs/input/input-number.type.d.ts +1 -1
  176. package/cjs/input/input-number.type.d.ts.map +1 -1
  177. package/cjs/input/input-password.js +10 -11
  178. package/cjs/input/input.js +8 -10
  179. package/cjs/input/input.type.d.ts +1 -1
  180. package/cjs/input/input.type.d.ts.map +1 -1
  181. package/cjs/input/simple-input.js +16 -16
  182. package/cjs/input/use-input-common.d.ts +1 -1
  183. package/cjs/input/use-input-common.js +22 -22
  184. package/cjs/list/base-item.js +14 -15
  185. package/cjs/list/index.js +2 -2
  186. package/cjs/list/list.d.ts.map +1 -1
  187. package/cjs/list/list.js +16 -21
  188. package/cjs/menu/index.js +2 -2
  189. package/cjs/menu/item.d.ts.map +1 -1
  190. package/cjs/menu/item.js +11 -13
  191. package/cjs/menu/menu.js +16 -13
  192. package/cjs/menu/menu.type.d.ts +2 -2
  193. package/cjs/menu/menu.type.d.ts.map +1 -1
  194. package/cjs/menu/scroll.js +10 -6
  195. package/cjs/menu/scrollbar.js +3 -4
  196. package/cjs/message/func.js +2 -4
  197. package/cjs/message/func.type.d.ts +2 -2
  198. package/cjs/message/func.type.d.ts.map +1 -1
  199. package/cjs/message/index.js +2 -2
  200. package/cjs/message/manager.d.ts.map +1 -1
  201. package/cjs/message/manager.js +6 -7
  202. package/cjs/message/message.js +45 -43
  203. package/cjs/modal/index.js +2 -2
  204. package/cjs/modal/modal-content.js +25 -27
  205. package/cjs/modal/modal-func.d.ts +1 -1
  206. package/cjs/modal/modal-func.d.ts.map +1 -1
  207. package/cjs/modal/modal-func.js +19 -17
  208. package/cjs/modal/modal-submit.js +10 -11
  209. package/cjs/modal/modal.js +15 -11
  210. package/cjs/modal/modal.type.d.ts +1 -1
  211. package/cjs/modal/modal.type.d.ts.map +1 -1
  212. package/cjs/modal/use-modal-move.js +15 -12
  213. package/cjs/modal/use-modal-resize.js +9 -6
  214. package/cjs/pagination/index.js +2 -2
  215. package/cjs/pagination/pagination-button.js +11 -12
  216. package/cjs/pagination/pagination-buttons.js +20 -17
  217. package/cjs/pagination/pagination-buttons.type.d.ts +2 -2
  218. package/cjs/pagination/pagination-buttons.type.d.ts.map +1 -1
  219. package/cjs/pagination/pagination-jumper.js +10 -8
  220. package/cjs/pagination/pagination-next.d.ts.map +1 -1
  221. package/cjs/pagination/pagination-next.js +4 -5
  222. package/cjs/pagination/pagination-prev.d.ts.map +1 -1
  223. package/cjs/pagination/pagination-prev.js +4 -5
  224. package/cjs/pagination/pagination-simple.js +2 -3
  225. package/cjs/pagination/pagination-size-list.js +3 -5
  226. package/cjs/pagination/pagination.d.ts.map +1 -1
  227. package/cjs/pagination/pagination.js +10 -13
  228. package/cjs/pagination/pagination.type.d.ts +2 -2
  229. package/cjs/pagination/pagination.type.d.ts.map +1 -1
  230. package/cjs/popover/confirm.js +24 -23
  231. package/cjs/popover/confirm.type.d.ts +2 -2
  232. package/cjs/popover/confirm.type.d.ts.map +1 -1
  233. package/cjs/popover/index.js +2 -2
  234. package/cjs/popover/popover.js +14 -19
  235. package/cjs/progress/analyzeColor.js +2 -4
  236. package/cjs/progress/circle.js +5 -8
  237. package/cjs/progress/index.js +2 -2
  238. package/cjs/progress/line-popup.js +8 -8
  239. package/cjs/progress/line.js +5 -8
  240. package/cjs/progress/progress.js +8 -9
  241. package/cjs/radio/group-context.d.ts +1 -1
  242. package/cjs/radio/group-context.d.ts.map +1 -1
  243. package/cjs/radio/group-context.js +1 -2
  244. package/cjs/radio/index.js +2 -2
  245. package/cjs/radio/radio-group.js +9 -11
  246. package/cjs/radio/radio.js +12 -12
  247. package/cjs/radio/simple-radio.js +12 -12
  248. package/cjs/rate/index.js +2 -2
  249. package/cjs/rate/rate.js +16 -17
  250. package/cjs/select/index.js +2 -2
  251. package/cjs/select/list-columns-option.js +3 -4
  252. package/cjs/select/list-columns.js +3 -9
  253. package/cjs/select/list-option.js +11 -9
  254. package/cjs/select/list-tree.js +3 -4
  255. package/cjs/select/list.js +23 -20
  256. package/cjs/select/result-input.d.ts.map +1 -1
  257. package/cjs/select/result-input.js +8 -17
  258. package/cjs/select/result-input.type.d.ts +3 -0
  259. package/cjs/select/result-input.type.d.ts.map +1 -1
  260. package/cjs/select/result-more.d.ts.map +1 -1
  261. package/cjs/select/result-more.js +20 -22
  262. package/cjs/select/result-more.type.d.ts +4 -0
  263. package/cjs/select/result-more.type.d.ts.map +1 -1
  264. package/cjs/select/result.d.ts.map +1 -1
  265. package/cjs/select/result.js +23 -29
  266. package/cjs/select/result.type.d.ts +14 -1
  267. package/cjs/select/result.type.d.ts.map +1 -1
  268. package/cjs/select/select.d.ts.map +1 -1
  269. package/cjs/select/select.js +47 -44
  270. package/cjs/select/select.type.d.ts +6 -6
  271. package/cjs/select/select.type.d.ts.map +1 -1
  272. package/cjs/slider/index.js +2 -2
  273. package/cjs/slider/slider.js +9 -11
  274. package/cjs/spin/base.js +9 -11
  275. package/cjs/spin/index.js +2 -2
  276. package/cjs/spin/spin.js +11 -12
  277. package/cjs/spin/spin.type.d.ts +2 -2
  278. package/cjs/spin/spin.type.d.ts.map +1 -1
  279. package/cjs/spin/spins.js +25 -27
  280. package/cjs/spin/utils.js +2 -4
  281. package/cjs/steps/index.js +2 -2
  282. package/cjs/steps/step.arrow.d.ts.map +1 -1
  283. package/cjs/steps/step.arrow.js +8 -7
  284. package/cjs/steps/step.default.d.ts.map +1 -1
  285. package/cjs/steps/step.default.js +13 -11
  286. package/cjs/steps/step.dot.d.ts.map +1 -1
  287. package/cjs/steps/step.dot.js +11 -9
  288. package/cjs/steps/step.js +13 -15
  289. package/cjs/steps/steps-context.js +1 -2
  290. package/cjs/steps/steps.js +9 -8
  291. package/cjs/steps/steps.type.d.ts +3 -3
  292. package/cjs/steps/steps.type.d.ts.map +1 -1
  293. package/cjs/sticky/index.js +2 -2
  294. package/cjs/sticky/sticky.js +18 -20
  295. package/cjs/switch/index.js +2 -2
  296. package/cjs/switch/switch.js +16 -12
  297. package/cjs/table/colgroup.js +1 -3
  298. package/cjs/table/index.js +2 -2
  299. package/cjs/table/table.js +15 -19
  300. package/cjs/table/table.type.d.ts +7 -7
  301. package/cjs/table/table.type.d.ts.map +1 -1
  302. package/cjs/table/tbody.js +3 -5
  303. package/cjs/table/tbody.type.d.ts +2 -2
  304. package/cjs/table/tbody.type.d.ts.map +1 -1
  305. package/cjs/table/temp/01-base.d.ts.map +1 -1
  306. package/cjs/table/temp/01-base.js +22 -14
  307. package/cjs/table/tfoot.js +4 -7
  308. package/cjs/table/thead.js +16 -24
  309. package/cjs/table/thead.type.d.ts +1 -1
  310. package/cjs/table/thead.type.d.ts.map +1 -1
  311. package/cjs/table/tr.js +16 -23
  312. package/cjs/table/use-table-select.js +6 -9
  313. package/cjs/tabs/index.js +2 -2
  314. package/cjs/tabs/tab.js +10 -11
  315. package/cjs/tabs/tabs-header.js +21 -19
  316. package/cjs/tabs/tabs-panel.js +8 -6
  317. package/cjs/tabs/tabs.js +24 -26
  318. package/cjs/tabs/tabs.type.d.ts +2 -2
  319. package/cjs/tabs/tabs.type.d.ts.map +1 -1
  320. package/cjs/tag/index.js +2 -2
  321. package/cjs/tag/tag-input.js +9 -10
  322. package/cjs/tag/tag.js +14 -14
  323. package/cjs/tag/tag.type.d.ts +7 -7
  324. package/cjs/tag/tag.type.d.ts.map +1 -1
  325. package/cjs/tag/use-tag.js +11 -8
  326. package/cjs/textarea/index.js +2 -2
  327. package/cjs/textarea/simple-textarea.js +17 -21
  328. package/cjs/textarea/textarea.js +22 -23
  329. package/cjs/textarea/textarea.type.d.ts +1 -6
  330. package/cjs/textarea/textarea.type.d.ts.map +1 -1
  331. package/cjs/textarea/use-auto-size.js +13 -12
  332. package/cjs/tooltip/index.js +2 -2
  333. package/cjs/tooltip/tooltip.js +11 -16
  334. package/cjs/transfer/index.js +2 -2
  335. package/cjs/transfer/transfer-list-header.d.ts.map +1 -1
  336. package/cjs/transfer/transfer-list-header.js +9 -10
  337. package/cjs/transfer/transfer-list-item.d.ts.map +1 -1
  338. package/cjs/transfer/transfer-list-item.js +7 -6
  339. package/cjs/transfer/transfer-list.js +13 -14
  340. package/cjs/transfer/transfer-operate.js +2 -4
  341. package/cjs/transfer/transfer.js +11 -10
  342. package/cjs/transfer/transfer.type.d.ts +2 -2
  343. package/cjs/transfer/transfer.type.d.ts.map +1 -1
  344. package/cjs/tree/index.js +2 -2
  345. package/cjs/tree/tree-checkbox.d.ts +2 -1
  346. package/cjs/tree/tree-checkbox.d.ts.map +1 -1
  347. package/cjs/tree/tree-checkbox.js +4 -3
  348. package/cjs/tree/tree-checkbox.type.d.ts +2 -2
  349. package/cjs/tree/tree-checkbox.type.d.ts.map +1 -1
  350. package/cjs/tree/tree-content.d.ts +2 -1
  351. package/cjs/tree/tree-content.d.ts.map +1 -1
  352. package/cjs/tree/tree-content.js +12 -14
  353. package/cjs/tree/tree-content.type.d.ts +2 -2
  354. package/cjs/tree/tree-content.type.d.ts.map +1 -1
  355. package/cjs/tree/tree-context.d.ts +4 -3
  356. package/cjs/tree/tree-context.d.ts.map +1 -1
  357. package/cjs/tree/tree-context.js +8 -14
  358. package/cjs/tree/tree-context.type.d.ts +2 -2
  359. package/cjs/tree/tree-context.type.d.ts.map +1 -1
  360. package/cjs/tree/tree-list.d.ts +1 -1
  361. package/cjs/tree/tree-list.d.ts.map +1 -1
  362. package/cjs/tree/tree-list.js +4 -4
  363. package/cjs/tree/tree-list.type.d.ts +3 -3
  364. package/cjs/tree/tree-list.type.d.ts.map +1 -1
  365. package/cjs/tree/tree-node.d.ts +1 -1
  366. package/cjs/tree/tree-node.d.ts.map +1 -1
  367. package/cjs/tree/tree-node.js +10 -11
  368. package/cjs/tree/tree-node.type.d.ts +3 -3
  369. package/cjs/tree/tree-node.type.d.ts.map +1 -1
  370. package/cjs/tree/tree-root.d.ts +1 -1
  371. package/cjs/tree/tree-root.d.ts.map +1 -1
  372. package/cjs/tree/tree-root.js +11 -11
  373. package/cjs/tree/tree-root.type.d.ts +3 -3
  374. package/cjs/tree/tree-root.type.d.ts.map +1 -1
  375. package/cjs/tree/tree.d.ts +2 -1
  376. package/cjs/tree/tree.d.ts.map +1 -1
  377. package/cjs/tree/tree.js +19 -21
  378. package/cjs/tree/tree.type.d.ts +4 -4
  379. package/cjs/tree/tree.type.d.ts.map +1 -1
  380. package/cjs/tree-select/index.js +2 -2
  381. package/cjs/tree-select/tree-select.d.ts +1 -1
  382. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  383. package/cjs/tree-select/tree-select.js +35 -36
  384. package/cjs/tree-select/tree-select.type.d.ts +6 -5
  385. package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
  386. package/cjs/upload/button.js +18 -18
  387. package/cjs/upload/button.type.d.ts +1 -1
  388. package/cjs/upload/button.type.d.ts.map +1 -1
  389. package/cjs/upload/drop.js +16 -19
  390. package/cjs/upload/image.js +8 -9
  391. package/cjs/upload/index.js +2 -2
  392. package/cjs/upload/result.js +24 -24
  393. package/cjs/upload/upload.d.ts.map +1 -1
  394. package/cjs/upload/upload.js +12 -22
  395. package/cjs/upload/useInputClick.js +2 -3
  396. package/cjs/virtual-scroll/index.js +2 -2
  397. package/cjs/virtual-scroll/scroll.js +9 -15
  398. package/cjs/virtual-scroll/virtual-scroll-list.js +20 -22
  399. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  400. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  401. package/esm/absolute-list/absolute-context.js +3 -9
  402. package/esm/absolute-list/absolute-list.d.ts +3 -1
  403. package/esm/absolute-list/absolute-list.d.ts.map +1 -1
  404. package/esm/absolute-list/absolute-list.js +20 -34
  405. package/esm/absolute-list/absolute-list.type.d.ts +2 -2
  406. package/esm/absolute-list/absolute-list.type.d.ts.map +1 -1
  407. package/esm/absolute-list/absolute-list.type.js +1 -5
  408. package/esm/absolute-list/index.js +1 -19
  409. package/esm/absolute-list/use-container.js +19 -35
  410. package/esm/alert/alert-icon.js +15 -24
  411. package/esm/alert/alert.js +39 -46
  412. package/esm/alert/alert.type.d.ts +1 -1
  413. package/esm/alert/alert.type.d.ts.map +1 -1
  414. package/esm/alert/alert.type.js +1 -5
  415. package/esm/alert/index.js +1 -19
  416. package/esm/animation-list/animation-list.js +30 -43
  417. package/esm/animation-list/animation-list.type.d.ts +1 -1
  418. package/esm/animation-list/animation-list.type.d.ts.map +1 -1
  419. package/esm/animation-list/animation-list.type.js +1 -5
  420. package/esm/animation-list/index.js +1 -19
  421. package/esm/breadcrumb/breadcrumb.js +35 -39
  422. package/esm/breadcrumb/breadcrumb.type.d.ts +1 -1
  423. package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
  424. package/esm/breadcrumb/breadcrumb.type.js +1 -5
  425. package/esm/breadcrumb/index.js +1 -19
  426. package/esm/breadcrumb/list.js +34 -38
  427. package/esm/button/button-group.js +10 -26
  428. package/esm/button/button-item.js +4 -12
  429. package/esm/button/button.js +26 -32
  430. package/esm/button/button.type.d.ts +1 -1
  431. package/esm/button/button.type.d.ts.map +1 -1
  432. package/esm/button/button.type.js +1 -5
  433. package/esm/button/index.js +2 -26
  434. package/esm/card/card-accordion-context.js +3 -11
  435. package/esm/card/card-accordion.js +23 -26
  436. package/esm/card/card-accordion.type.js +1 -5
  437. package/esm/card/card-body.js +11 -19
  438. package/esm/card/card-body.type.js +1 -5
  439. package/esm/card/card-footer.js +9 -17
  440. package/esm/card/card-footer.type.js +1 -5
  441. package/esm/card/card-header.js +17 -24
  442. package/esm/card/card-header.type.js +1 -5
  443. package/esm/card/card.context.js +3 -10
  444. package/esm/card/card.js +43 -47
  445. package/esm/card/card.type.js +1 -5
  446. package/esm/card/index.js +6 -54
  447. package/esm/card-group/card-group-context.js +3 -9
  448. package/esm/card-group/card-group.js +22 -30
  449. package/esm/card-group/card-group.type.js +1 -5
  450. package/esm/card-group/index.js +2 -26
  451. package/esm/card-group/item.js +18 -30
  452. package/esm/card-group/item.type.js +1 -5
  453. package/esm/card-group/lazyload.js +19 -27
  454. package/esm/carousel/carousel.js +45 -54
  455. package/esm/carousel/carousel.type.d.ts +0 -1
  456. package/esm/carousel/carousel.type.d.ts.map +1 -1
  457. package/esm/carousel/carousel.type.js +1 -5
  458. package/esm/carousel/index.js +1 -19
  459. package/esm/cascader/cascader.d.ts.map +1 -1
  460. package/esm/cascader/cascader.js +119 -127
  461. package/esm/cascader/cascader.type.d.ts +4 -1
  462. package/esm/cascader/cascader.type.d.ts.map +1 -1
  463. package/esm/cascader/cascader.type.js +1 -5
  464. package/esm/cascader/filter-list.js +13 -23
  465. package/esm/cascader/filter-list.type.js +1 -5
  466. package/esm/cascader/filter-node.js +12 -22
  467. package/esm/cascader/filter-node.type.js +1 -5
  468. package/esm/cascader/index.js +1 -19
  469. package/esm/cascader/list.js +9 -18
  470. package/esm/cascader/list.type.js +1 -5
  471. package/esm/cascader/node.d.ts.map +1 -1
  472. package/esm/cascader/node.js +47 -45
  473. package/esm/cascader/node.type.js +1 -5
  474. package/esm/checkbox/checkbox-group.js +21 -29
  475. package/esm/checkbox/checkbox-group.type.js +1 -5
  476. package/esm/checkbox/checkbox.js +28 -35
  477. package/esm/checkbox/checkbox.type.js +1 -5
  478. package/esm/checkbox/group-context.d.ts +1 -1
  479. package/esm/checkbox/group-context.d.ts.map +1 -1
  480. package/esm/checkbox/group-context.js +3 -9
  481. package/esm/checkbox/index.js +2 -26
  482. package/esm/checkbox/simple-checkbox.js +30 -36
  483. package/esm/checkbox/use-checkbox-inputable.js +12 -15
  484. package/esm/collapse/collapse-item.js +28 -41
  485. package/esm/collapse/collapse-item.type.js +1 -5
  486. package/esm/collapse/collapse.js +12 -20
  487. package/esm/collapse/collapse.type.js +1 -5
  488. package/esm/collapse/group-context.d.ts +1 -1
  489. package/esm/collapse/group-context.d.ts.map +1 -1
  490. package/esm/collapse/group-context.js +3 -9
  491. package/esm/collapse/index.js +2 -26
  492. package/esm/common/type.js +1 -5
  493. package/esm/common/use-clear.js +4 -11
  494. package/esm/common/use-inner-title.js +26 -34
  495. package/esm/common/use-tip.js +14 -20
  496. package/esm/common/use-with-form-config.js +10 -19
  497. package/esm/config/index.d.ts +1 -4
  498. package/esm/config/index.d.ts.map +1 -1
  499. package/esm/config/index.js +24 -45
  500. package/esm/config/locale/Props.d.ts +4 -4
  501. package/esm/config/locale/Props.d.ts.map +1 -1
  502. package/esm/config/locale/Props.js +1 -5
  503. package/esm/config/locale/en_US.js +2 -9
  504. package/esm/config/locale/index.js +17 -25
  505. package/esm/config/locale/zh-CN.js +2 -9
  506. package/esm/date-picker/date-picker.d.ts.map +1 -1
  507. package/esm/date-picker/date-picker.js +65 -74
  508. package/esm/date-picker/date-picker.type.d.ts +2 -2
  509. package/esm/date-picker/date-picker.type.d.ts.map +1 -1
  510. package/esm/date-picker/date-picker.type.js +1 -5
  511. package/esm/date-picker/day.js +74 -85
  512. package/esm/date-picker/day.type.js +1 -5
  513. package/esm/date-picker/index.js +1 -19
  514. package/esm/date-picker/month.js +32 -42
  515. package/esm/date-picker/month.type.d.ts +1 -1
  516. package/esm/date-picker/month.type.d.ts.map +1 -1
  517. package/esm/date-picker/month.type.js +1 -5
  518. package/esm/date-picker/picker.js +30 -38
  519. package/esm/date-picker/picker.type.js +1 -5
  520. package/esm/date-picker/pickerTitle.js +8 -15
  521. package/esm/date-picker/quarter.js +31 -41
  522. package/esm/date-picker/quarter.type.d.ts +1 -1
  523. package/esm/date-picker/quarter.type.d.ts.map +1 -1
  524. package/esm/date-picker/quarter.type.js +1 -5
  525. package/esm/date-picker/quick.js +13 -22
  526. package/esm/date-picker/quick.type.js +1 -5
  527. package/esm/date-picker/result.js +43 -52
  528. package/esm/date-picker/time.js +33 -47
  529. package/esm/date-picker/time.type.js +1 -5
  530. package/esm/date-picker/year.js +34 -44
  531. package/esm/date-picker/year.type.d.ts +1 -1
  532. package/esm/date-picker/year.type.d.ts.map +1 -1
  533. package/esm/date-picker/year.type.js +1 -5
  534. package/esm/descriptions/descriptions.js +35 -50
  535. package/esm/descriptions/descriptions.type.d.ts +1 -1
  536. package/esm/descriptions/descriptions.type.d.ts.map +1 -1
  537. package/esm/descriptions/descriptions.type.js +1 -5
  538. package/esm/descriptions/index.js +1 -19
  539. package/esm/divider/divider.js +7 -15
  540. package/esm/divider/divider.type.js +1 -5
  541. package/esm/divider/index.js +1 -19
  542. package/esm/dropdown/Item.js +30 -41
  543. package/esm/dropdown/dropdown.js +11 -19
  544. package/esm/dropdown/dropdown.type.d.ts +5 -5
  545. package/esm/dropdown/dropdown.type.d.ts.map +1 -1
  546. package/esm/dropdown/dropdown.type.js +10 -3
  547. package/esm/dropdown/dropdownIn.d.ts.map +1 -1
  548. package/esm/dropdown/dropdownIn.js +39 -48
  549. package/esm/dropdown/index.d.ts +1 -1
  550. package/esm/dropdown/index.d.ts.map +1 -1
  551. package/esm/dropdown/index.js +1 -19
  552. package/esm/editable-area/editable-area.d.ts.map +1 -1
  553. package/esm/editable-area/editable-area.js +44 -53
  554. package/esm/editable-area/editable-area.type.js +1 -5
  555. package/esm/editable-area/index.js +1 -19
  556. package/esm/empty/empty-image.js +43 -49
  557. package/esm/empty/empty.js +28 -35
  558. package/esm/empty/empty.type.js +1 -5
  559. package/esm/empty/index.js +1 -19
  560. package/esm/form/error-trans.js +11 -21
  561. package/esm/form/form-button.js +16 -24
  562. package/esm/form/form-field.js +9 -18
  563. package/esm/form/form-field.type.d.ts +1 -1
  564. package/esm/form/form-field.type.d.ts.map +1 -1
  565. package/esm/form/form-field.type.js +1 -5
  566. package/esm/form/form-fieldset.js +17 -29
  567. package/esm/form/form-fieldset.type.js +1 -5
  568. package/esm/form/form-flow.js +4 -11
  569. package/esm/form/form-flow.type.js +1 -5
  570. package/esm/form/form-footer-context.js +21 -31
  571. package/esm/form/form-item.js +30 -37
  572. package/esm/form/form-item.type.js +1 -5
  573. package/esm/form/form.d.ts +1 -1
  574. package/esm/form/form.d.ts.map +1 -1
  575. package/esm/form/form.js +29 -42
  576. package/esm/form/form.type.js +1 -8
  577. package/esm/form/index.js +6 -54
  578. package/esm/gap/gap.js +17 -26
  579. package/esm/gap/gap.type.js +1 -5
  580. package/esm/gap/index.js +1 -19
  581. package/esm/gap/support.js +1 -7
  582. package/esm/grid/grid.js +19 -34
  583. package/esm/grid/grid.type.d.ts +1 -1
  584. package/esm/grid/grid.type.d.ts.map +1 -1
  585. package/esm/grid/grid.type.js +1 -5
  586. package/esm/grid/index.js +1 -19
  587. package/esm/grid/util.d.ts +1 -1
  588. package/esm/grid/util.d.ts.map +1 -1
  589. package/esm/grid/util.js +7 -16
  590. package/esm/icon/icon.js +22 -31
  591. package/esm/icon/icon.type.d.ts +1 -1
  592. package/esm/icon/icon.type.d.ts.map +1 -1
  593. package/esm/icon/icon.type.js +1 -5
  594. package/esm/icon/index.js +1 -19
  595. package/esm/icons/config.d.ts +144 -0
  596. package/esm/icons/config.d.ts.map +1 -0
  597. package/esm/icons/config.js +157 -0
  598. package/esm/icons/icons.d.ts +46 -0
  599. package/esm/icons/icons.d.ts.map +1 -0
  600. package/esm/icons/icons.js +177 -0
  601. package/esm/icons/index.d.ts +1 -47
  602. package/esm/icons/index.d.ts.map +1 -1
  603. package/esm/icons/index.js +1 -194
  604. package/esm/image/image-event.js +10 -18
  605. package/esm/image/image-gallery.js +31 -37
  606. package/esm/image/image-group.d.ts.map +1 -1
  607. package/esm/image/image-group.js +30 -44
  608. package/esm/image/image-group.type.js +1 -5
  609. package/esm/image/image-magnify.js +17 -23
  610. package/esm/image/image.js +51 -63
  611. package/esm/image/image.type.d.ts +4 -4
  612. package/esm/image/image.type.d.ts.map +1 -1
  613. package/esm/image/image.type.js +1 -5
  614. package/esm/image/index.js +2 -26
  615. package/esm/index.d.ts +1 -1
  616. package/esm/index.d.ts.map +1 -1
  617. package/esm/index.js +48 -581
  618. package/esm/input/index.js +4 -40
  619. package/esm/input/input-group.js +33 -42
  620. package/esm/input/input-group.type.js +1 -5
  621. package/esm/input/input-number.js +33 -39
  622. package/esm/input/input-number.type.d.ts +1 -1
  623. package/esm/input/input-number.type.d.ts.map +1 -1
  624. package/esm/input/input-number.type.js +1 -5
  625. package/esm/input/input-password.js +23 -29
  626. package/esm/input/input-password.type.js +1 -5
  627. package/esm/input/input.js +18 -27
  628. package/esm/input/input.type.d.ts +1 -1
  629. package/esm/input/input.type.d.ts.map +1 -1
  630. package/esm/input/input.type.js +1 -5
  631. package/esm/input/simple-input.js +31 -37
  632. package/esm/input/use-input-common.d.ts +1 -1
  633. package/esm/input/use-input-common.js +44 -52
  634. package/esm/list/base-item.js +47 -54
  635. package/esm/list/base-item.type.js +1 -5
  636. package/esm/list/index.js +2 -26
  637. package/esm/list/list.d.ts.map +1 -1
  638. package/esm/list/list.js +54 -65
  639. package/esm/list/list.type.js +1 -5
  640. package/esm/menu/index.js +1 -19
  641. package/esm/menu/item.d.ts.map +1 -1
  642. package/esm/menu/item.js +42 -49
  643. package/esm/menu/menu.js +35 -38
  644. package/esm/menu/menu.type.d.ts +2 -2
  645. package/esm/menu/menu.type.d.ts.map +1 -1
  646. package/esm/menu/menu.type.js +1 -5
  647. package/esm/menu/scroll.js +24 -27
  648. package/esm/menu/scrollbar.js +16 -24
  649. package/esm/message/func.js +6 -14
  650. package/esm/message/func.type.d.ts +2 -2
  651. package/esm/message/func.type.d.ts.map +1 -1
  652. package/esm/message/func.type.js +1 -5
  653. package/esm/message/index.js +1 -19
  654. package/esm/message/manager.d.ts.map +1 -1
  655. package/esm/message/manager.js +15 -25
  656. package/esm/message/message.js +59 -65
  657. package/esm/message/message.type.js +1 -5
  658. package/esm/modal/index.js +3 -33
  659. package/esm/modal/modal-content.js +63 -71
  660. package/esm/modal/modal-content.type.js +1 -5
  661. package/esm/modal/modal-func.d.ts +1 -1
  662. package/esm/modal/modal-func.d.ts.map +1 -1
  663. package/esm/modal/modal-func.js +40 -44
  664. package/esm/modal/modal-func.type.js +1 -5
  665. package/esm/modal/modal-submit.js +17 -25
  666. package/esm/modal/modal.js +23 -26
  667. package/esm/modal/modal.type.d.ts +1 -1
  668. package/esm/modal/modal.type.d.ts.map +1 -1
  669. package/esm/modal/modal.type.js +1 -5
  670. package/esm/modal/use-modal-move.js +24 -27
  671. package/esm/modal/use-modal-resize.js +19 -22
  672. package/esm/pagination/index.js +1 -19
  673. package/esm/pagination/pagination-button.js +17 -25
  674. package/esm/pagination/pagination-button.type.js +1 -5
  675. package/esm/pagination/pagination-buttons.js +37 -39
  676. package/esm/pagination/pagination-buttons.type.d.ts +2 -2
  677. package/esm/pagination/pagination-buttons.type.d.ts.map +1 -1
  678. package/esm/pagination/pagination-buttons.type.js +1 -5
  679. package/esm/pagination/pagination-jumper.js +26 -30
  680. package/esm/pagination/pagination-jumper.type.js +1 -5
  681. package/esm/pagination/pagination-next.d.ts.map +1 -1
  682. package/esm/pagination/pagination-next.js +10 -18
  683. package/esm/pagination/pagination-prev.d.ts.map +1 -1
  684. package/esm/pagination/pagination-prev.js +10 -18
  685. package/esm/pagination/pagination-simple.js +11 -17
  686. package/esm/pagination/pagination-simple.type.js +1 -5
  687. package/esm/pagination/pagination-size-list.js +8 -17
  688. package/esm/pagination/pagination-size-list.type.js +1 -5
  689. package/esm/pagination/pagination.d.ts.map +1 -1
  690. package/esm/pagination/pagination.js +28 -38
  691. package/esm/pagination/pagination.type.d.ts +2 -2
  692. package/esm/pagination/pagination.type.d.ts.map +1 -1
  693. package/esm/pagination/pagination.type.js +1 -5
  694. package/esm/popover/confirm.js +39 -46
  695. package/esm/popover/confirm.type.d.ts +2 -2
  696. package/esm/popover/confirm.type.d.ts.map +1 -1
  697. package/esm/popover/confirm.type.js +1 -5
  698. package/esm/popover/index.js +2 -26
  699. package/esm/popover/popover.js +33 -46
  700. package/esm/popover/popover.type.js +1 -5
  701. package/esm/progress/analyzeColor.js +2 -10
  702. package/esm/progress/circle.js +21 -30
  703. package/esm/progress/index.js +1 -19
  704. package/esm/progress/line-popup.js +15 -21
  705. package/esm/progress/line.js +20 -29
  706. package/esm/progress/progress.js +13 -21
  707. package/esm/progress/progress.type.js +1 -5
  708. package/esm/radio/group-context.d.ts +1 -1
  709. package/esm/radio/group-context.d.ts.map +1 -1
  710. package/esm/radio/group-context.js +3 -9
  711. package/esm/radio/index.js +2 -26
  712. package/esm/radio/radio-group.js +34 -41
  713. package/esm/radio/radio-group.type.js +1 -5
  714. package/esm/radio/radio.js +20 -27
  715. package/esm/radio/radio.type.js +1 -5
  716. package/esm/radio/simple-radio.js +24 -30
  717. package/esm/rate/index.js +1 -19
  718. package/esm/rate/rate.js +32 -42
  719. package/esm/rate/rate.type.js +1 -5
  720. package/esm/rule/index.js +1 -12
  721. package/esm/select/index.js +1 -19
  722. package/esm/select/list-columns-option.js +8 -16
  723. package/esm/select/list-columns-option.type.js +1 -5
  724. package/esm/select/list-columns.js +21 -33
  725. package/esm/select/list-option.js +17 -21
  726. package/esm/select/list-option.type.js +1 -5
  727. package/esm/select/list-tree.js +11 -19
  728. package/esm/select/list-tree.type.js +1 -5
  729. package/esm/select/list.js +41 -46
  730. package/esm/select/result-input.d.ts.map +1 -1
  731. package/esm/select/result-input.js +16 -33
  732. package/esm/select/result-input.type.d.ts +3 -0
  733. package/esm/select/result-input.type.d.ts.map +1 -1
  734. package/esm/select/result-input.type.js +1 -5
  735. package/esm/select/result-more.d.ts.map +1 -1
  736. package/esm/select/result-more.js +36 -47
  737. package/esm/select/result-more.type.d.ts +4 -0
  738. package/esm/select/result-more.type.d.ts.map +1 -1
  739. package/esm/select/result-more.type.js +1 -5
  740. package/esm/select/result.d.ts.map +1 -1
  741. package/esm/select/result.js +67 -81
  742. package/esm/select/result.type.d.ts +14 -1
  743. package/esm/select/result.type.d.ts.map +1 -1
  744. package/esm/select/result.type.js +1 -5
  745. package/esm/select/select.d.ts.map +1 -1
  746. package/esm/select/select.js +111 -115
  747. package/esm/select/select.type.d.ts +6 -6
  748. package/esm/select/select.type.d.ts.map +1 -1
  749. package/esm/select/select.type.js +1 -5
  750. package/esm/slider/index.js +1 -19
  751. package/esm/slider/slider.js +32 -39
  752. package/esm/slider/slider.type.js +1 -5
  753. package/esm/spin/base.js +16 -25
  754. package/esm/spin/index.js +1 -19
  755. package/esm/spin/spin.js +26 -33
  756. package/esm/spin/spin.type.d.ts +2 -2
  757. package/esm/spin/spin.type.d.ts.map +1 -1
  758. package/esm/spin/spin.type.js +1 -5
  759. package/esm/spin/spins.js +71 -80
  760. package/esm/spin/utils.js +2 -10
  761. package/esm/steps/index.js +2 -26
  762. package/esm/steps/step.arrow.d.ts.map +1 -1
  763. package/esm/steps/step.arrow.js +15 -20
  764. package/esm/steps/step.default.d.ts.map +1 -1
  765. package/esm/steps/step.default.js +25 -29
  766. package/esm/steps/step.dot.d.ts.map +1 -1
  767. package/esm/steps/step.dot.js +20 -24
  768. package/esm/steps/step.js +28 -37
  769. package/esm/steps/step.type.js +1 -5
  770. package/esm/steps/steps-context.js +3 -9
  771. package/esm/steps/steps-context.type.js +1 -5
  772. package/esm/steps/steps.js +18 -24
  773. package/esm/steps/steps.type.d.ts +3 -3
  774. package/esm/steps/steps.type.d.ts.map +1 -1
  775. package/esm/steps/steps.type.js +1 -5
  776. package/esm/sticky/index.js +1 -19
  777. package/esm/sticky/sticky.js +40 -48
  778. package/esm/sticky/sticky.type.js +1 -5
  779. package/esm/switch/index.js +1 -19
  780. package/esm/switch/switch.js +31 -33
  781. package/esm/switch/switch.type.js +1 -5
  782. package/esm/table/colgroup.js +6 -14
  783. package/esm/table/index.js +1 -19
  784. package/esm/table/table.js +89 -100
  785. package/esm/table/table.type.d.ts +7 -7
  786. package/esm/table/table.type.d.ts.map +1 -1
  787. package/esm/table/table.type.js +1 -5
  788. package/esm/table/tbody.js +11 -20
  789. package/esm/table/tbody.type.d.ts +2 -2
  790. package/esm/table/tbody.type.d.ts.map +1 -1
  791. package/esm/table/tbody.type.js +1 -5
  792. package/esm/table/temp/01-base.d.ts.map +1 -1
  793. package/esm/table/temp/01-base.js +40 -37
  794. package/esm/table/tfoot.js +12 -22
  795. package/esm/table/tfoot.type.js +1 -12
  796. package/esm/table/thead.js +47 -62
  797. package/esm/table/thead.type.d.ts +1 -1
  798. package/esm/table/thead.type.d.ts.map +1 -1
  799. package/esm/table/thead.type.js +1 -5
  800. package/esm/table/tr.js +45 -59
  801. package/esm/table/use-table-select.js +20 -29
  802. package/esm/tabs/index.js +2 -26
  803. package/esm/tabs/tab.js +23 -30
  804. package/esm/tabs/tab.type.js +1 -5
  805. package/esm/tabs/tabs-header.js +52 -56
  806. package/esm/tabs/tabs-header.type.js +1 -5
  807. package/esm/tabs/tabs-panel.js +14 -19
  808. package/esm/tabs/tabs-panel.type.js +1 -5
  809. package/esm/tabs/tabs.js +54 -63
  810. package/esm/tabs/tabs.type.d.ts +2 -2
  811. package/esm/tabs/tabs.type.d.ts.map +1 -1
  812. package/esm/tabs/tabs.type.js +1 -5
  813. package/esm/tag/index.js +2 -26
  814. package/esm/tag/tag-input.js +16 -24
  815. package/esm/tag/tag.js +33 -39
  816. package/esm/tag/tag.type.d.ts +7 -7
  817. package/esm/tag/tag.type.d.ts.map +1 -1
  818. package/esm/tag/tag.type.js +1 -5
  819. package/esm/tag/use-tag.js +21 -24
  820. package/esm/textarea/index.js +1 -19
  821. package/esm/textarea/simple-textarea.js +26 -38
  822. package/esm/textarea/textarea.js +51 -60
  823. package/esm/textarea/textarea.type.d.ts +1 -6
  824. package/esm/textarea/textarea.type.d.ts.map +1 -1
  825. package/esm/textarea/textarea.type.js +1 -5
  826. package/esm/textarea/use-auto-size.js +20 -28
  827. package/esm/tooltip/index.js +1 -19
  828. package/esm/tooltip/tooltip.js +28 -40
  829. package/esm/tooltip/tooltip.type.js +1 -5
  830. package/esm/transfer/index.js +1 -19
  831. package/esm/transfer/transfer-list-header.d.ts.map +1 -1
  832. package/esm/transfer/transfer-list-header.js +22 -29
  833. package/esm/transfer/transfer-list-header.type.js +1 -5
  834. package/esm/transfer/transfer-list-item.d.ts.map +1 -1
  835. package/esm/transfer/transfer-list-item.js +21 -26
  836. package/esm/transfer/transfer-list-item.type.js +1 -5
  837. package/esm/transfer/transfer-list.js +42 -49
  838. package/esm/transfer/transfer-list.type.js +1 -5
  839. package/esm/transfer/transfer-operate.js +6 -14
  840. package/esm/transfer/transfer-operate.type.js +1 -5
  841. package/esm/transfer/transfer.js +28 -33
  842. package/esm/transfer/transfer.type.d.ts +2 -2
  843. package/esm/transfer/transfer.type.d.ts.map +1 -1
  844. package/esm/transfer/transfer.type.js +1 -5
  845. package/esm/tree/index.js +1 -19
  846. package/esm/tree/tree-checkbox.d.ts +2 -1
  847. package/esm/tree/tree-checkbox.d.ts.map +1 -1
  848. package/esm/tree/tree-checkbox.js +8 -13
  849. package/esm/tree/tree-checkbox.type.d.ts +2 -2
  850. package/esm/tree/tree-checkbox.type.d.ts.map +1 -1
  851. package/esm/tree/tree-checkbox.type.js +1 -5
  852. package/esm/tree/tree-content.d.ts +2 -1
  853. package/esm/tree/tree-content.d.ts.map +1 -1
  854. package/esm/tree/tree-content.js +36 -44
  855. package/esm/tree/tree-content.type.d.ts +2 -2
  856. package/esm/tree/tree-content.type.d.ts.map +1 -1
  857. package/esm/tree/tree-content.type.js +1 -5
  858. package/esm/tree/tree-context.d.ts +4 -3
  859. package/esm/tree/tree-context.d.ts.map +1 -1
  860. package/esm/tree/tree-context.js +8 -22
  861. package/esm/tree/tree-context.type.d.ts +2 -2
  862. package/esm/tree/tree-context.type.d.ts.map +1 -1
  863. package/esm/tree/tree-context.type.js +1 -5
  864. package/esm/tree/tree-list.d.ts +1 -1
  865. package/esm/tree/tree-list.d.ts.map +1 -1
  866. package/esm/tree/tree-list.js +10 -17
  867. package/esm/tree/tree-list.type.d.ts +3 -3
  868. package/esm/tree/tree-list.type.d.ts.map +1 -1
  869. package/esm/tree/tree-list.type.js +1 -5
  870. package/esm/tree/tree-node.d.ts +1 -1
  871. package/esm/tree/tree-node.d.ts.map +1 -1
  872. package/esm/tree/tree-node.js +25 -32
  873. package/esm/tree/tree-node.type.d.ts +3 -3
  874. package/esm/tree/tree-node.type.d.ts.map +1 -1
  875. package/esm/tree/tree-node.type.js +1 -5
  876. package/esm/tree/tree-root.d.ts +1 -1
  877. package/esm/tree/tree-root.d.ts.map +1 -1
  878. package/esm/tree/tree-root.js +15 -22
  879. package/esm/tree/tree-root.type.d.ts +3 -3
  880. package/esm/tree/tree-root.type.d.ts.map +1 -1
  881. package/esm/tree/tree-root.type.js +1 -5
  882. package/esm/tree/tree.d.ts +2 -1
  883. package/esm/tree/tree.d.ts.map +1 -1
  884. package/esm/tree/tree.js +36 -45
  885. package/esm/tree/tree.type.d.ts +4 -4
  886. package/esm/tree/tree.type.d.ts.map +1 -1
  887. package/esm/tree/tree.type.js +1 -5
  888. package/esm/tree-select/index.js +1 -19
  889. package/esm/tree-select/tree-select.d.ts +1 -1
  890. package/esm/tree-select/tree-select.d.ts.map +1 -1
  891. package/esm/tree-select/tree-select.js +103 -111
  892. package/esm/tree-select/tree-select.type.d.ts +6 -5
  893. package/esm/tree-select/tree-select.type.d.ts.map +1 -1
  894. package/esm/tree-select/tree-select.type.js +1 -5
  895. package/esm/upload/button.js +39 -47
  896. package/esm/upload/button.type.d.ts +1 -1
  897. package/esm/upload/button.type.d.ts.map +1 -1
  898. package/esm/upload/button.type.js +1 -5
  899. package/esm/upload/drop.js +23 -33
  900. package/esm/upload/image.js +10 -18
  901. package/esm/upload/image.type.js +1 -5
  902. package/esm/upload/index.js +3 -33
  903. package/esm/upload/result.js +63 -70
  904. package/esm/upload/upload.d.ts.map +1 -1
  905. package/esm/upload/upload.js +51 -67
  906. package/esm/upload/upload.type.js +1 -5
  907. package/esm/upload/useInputClick.js +5 -12
  908. package/esm/virtual-scroll/index.js +2 -20
  909. package/esm/virtual-scroll/scroll.js +19 -32
  910. package/esm/virtual-scroll/virtual-scroll-list.js +32 -43
  911. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  912. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  913. package/esm/virtual-scroll/virtual-scroll-list.type.js +1 -5
  914. package/package.json +3 -3
  915. package/cjs/icons/caret.d.ts +0 -4
  916. package/cjs/icons/caret.d.ts.map +0 -1
  917. package/cjs/icons/caret.js +0 -19
  918. package/cjs/icons/caret.type.d.ts +0 -2
  919. package/cjs/icons/caret.type.d.ts.map +0 -1
  920. package/cjs/icons/caret.type.js +0 -5
  921. package/cjs/table/temp/00-scroll.d.ts +0 -4
  922. package/cjs/table/temp/00-scroll.d.ts.map +0 -1
  923. package/cjs/table/temp/00-scroll.js +0 -32
  924. package/esm/icons/caret.d.ts +0 -4
  925. package/esm/icons/caret.d.ts.map +0 -1
  926. package/esm/icons/caret.js +0 -19
  927. package/esm/icons/caret.type.d.ts +0 -2
  928. package/esm/icons/caret.type.d.ts.map +0 -1
  929. package/esm/icons/caret.type.js +0 -5
  930. package/esm/table/temp/00-scroll.d.ts +0 -4
  931. package/esm/table/temp/00-scroll.d.ts.map +0 -1
  932. package/esm/table/temp/00-scroll.js +0 -32
@@ -1,30 +1,23 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.filter.js");
4
- require("core-js/modules/web.dom-collections.for-each.js");
5
- require("core-js/modules/es.object.get-own-property-descriptors.js");
6
- require("core-js/modules/es.array.iterator.js");
7
- require("core-js/modules/es.weak-map.js");
8
- require("core-js/modules/web.dom-collections.iterator.js");
9
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
10
- var _typeof = require("@babel/runtime/helpers/typeof");
11
- Object.defineProperty(exports, "__esModule", {
12
- value: true
13
- });
14
- exports.default = void 0;
15
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
- var _react = _interopRequireWildcard(require("react"));
18
- var _upload = _interopRequireDefault(require("./upload"));
19
- var _button = _interopRequireDefault(require("../button"));
20
- var _spin = _interopRequireDefault(require("../spin"));
21
- var _hooks = require("@sheinx/hooks");
22
- var _classnames = _interopRequireDefault(require("classnames"));
23
- var _jsxRuntime = require("react/jsx-runtime");
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import React, { isValidElement } from 'react';
14
+ import Upload from "./upload";
15
+ import Button from "../button";
16
+ import Spin from "../spin";
17
+ import { usePersistFn } from '@sheinx/hooks';
18
+ import classNames from 'classnames';
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { jsxs as _jsxs } from "react/jsx-runtime";
28
21
  var handleKeyDown = function handleKeyDown(e) {
29
22
  if (e.keyCode === 13) e.target.click();
30
23
  };
@@ -43,26 +36,26 @@ var UploadButton = function UploadButton(props) {
43
36
  renderContent: undefined,
44
37
  recoverAble: false
45
38
  };
46
- var uploadClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 ? void 0 : (_props$jssStyle$uploa = _props$jssStyle.upload) === null || _props$jssStyle$uploa === void 0 ? void 0 : _props$jssStyle$uploa.call(_props$jssStyle);
47
- var _React$useState = _react.default.useState(-1),
48
- _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
39
+ var uploadClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$uploa = _props$jssStyle.upload) === null || _props$jssStyle$uploa === void 0 ? void 0 : _props$jssStyle$uploa.call(_props$jssStyle);
40
+ var _React$useState = React.useState(-1),
41
+ _React$useState2 = _slicedToArray(_React$useState, 2),
49
42
  process = _React$useState2[0],
50
43
  setProcess = _React$useState2[1];
51
- var onProgress = (0, _hooks.usePersistFn)(function (file) {
44
+ var onProgress = usePersistFn(function (file) {
52
45
  setProcess(file.process);
53
46
  });
54
- var onStart = (0, _hooks.usePersistFn)(function () {
47
+ var onStart = usePersistFn(function () {
55
48
  setProcess(0);
56
49
  });
57
- var onHttpError = (0, _hooks.usePersistFn)(function (xhr, file) {
50
+ var onHttpError = usePersistFn(function (xhr, file) {
58
51
  setProcess(-1);
59
52
  return props.onHttpError ? props.onHttpError(xhr, file) : undefined;
60
53
  });
61
- var onSuccess = (0, _hooks.usePersistFn)(function (value, file, data) {
54
+ var onSuccess = usePersistFn(function (value, file, data) {
62
55
  setProcess(-1);
63
56
  return props.onSuccess ? props.onSuccess(value, file, data) : value;
64
57
  });
65
- var onClick = (0, _hooks.usePersistFn)(function (e) {
58
+ var onClick = usePersistFn(function (e) {
66
59
  if (process >= 0) {
67
60
  e.stopPropagation();
68
61
  }
@@ -70,12 +63,12 @@ var UploadButton = function UploadButton(props) {
70
63
  var renderLoadingView = function renderLoadingView(color) {
71
64
  var placeholder = props.placeholder,
72
65
  loading = props.loading;
73
- return /*#__PURE__*/(0, _react.isValidElement)(loading) ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
66
+ return /*#__PURE__*/isValidElement(loading) ? /*#__PURE__*/_jsx("span", {
74
67
  children: loading
75
- }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
76
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
68
+ }) : /*#__PURE__*/_jsxs("span", {
69
+ children: [/*#__PURE__*/_jsx("span", {
77
70
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.buttonBgSpin,
78
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_spin.default, {
71
+ children: /*#__PURE__*/_jsx(Spin, {
79
72
  jssStyle: props.jssStyle,
80
73
  size: 10,
81
74
  color: color
@@ -87,31 +80,30 @@ var UploadButton = function UploadButton(props) {
87
80
  var style = {
88
81
  right: uploading ? "".concat(100 - Math.min(99, process), "%") : '100%'
89
82
  };
90
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_upload.default, _objectSpread(_objectSpread(_objectSpread({}, props), innerProps), {}, {
83
+ return /*#__PURE__*/_jsx(Upload, _objectSpread(_objectSpread(_objectSpread({}, props), innerProps), {}, {
91
84
  onProgress: onProgress,
92
85
  onStart: onStart,
93
86
  onSuccess: onSuccess,
94
87
  onHttpError: onHttpError,
95
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_button.default, {
88
+ children: /*#__PURE__*/_jsxs(Button, {
96
89
  jssStyle: props.jssStyle,
97
90
  tabIndex: props.disabled ? -1 : 0,
98
91
  disabled: props.disabled,
99
- className: (0, _classnames.default)(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.button, uploading && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.buttonUploading)),
92
+ className: classNames(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.button, uploading && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.buttonUploading)),
100
93
  type: props.type || 'primary',
101
94
  size: props.size,
102
95
  onClick: onClick,
103
96
  onKeyDown: handleKeyDown,
104
- children: [uploading && [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
97
+ children: [uploading && [/*#__PURE__*/_jsx("div", {
105
98
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.buttonCover
106
- }, 'cover'), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
99
+ }, 'cover'), /*#__PURE__*/_jsx("div", {
107
100
  style: style,
108
101
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.buttonBg,
109
102
  children: renderLoadingView('#fff')
110
- }, 'bg')], /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
103
+ }, 'bg')], /*#__PURE__*/_jsx("span", {
111
104
  children: uploading ? renderLoadingView() : props.placeholder
112
105
  })]
113
106
  })
114
107
  }));
115
108
  };
116
- var _default = UploadButton;
117
- exports.default = _default;
109
+ export default UploadButton;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { UploadProps } from './upload.type';
3
3
  import { ButtonProps } from '../button/button.type';
4
- export declare type ButtonUploadInnerPropsType = Pick<UploadProps<any>, 'listType' | 'imageStyle' | 'canDelete' | 'showUploadList' | 'customResult' | 'drop' | 'multiple' | 'leftHandler' | 'onPreview' | 'renderContent' | 'recoverAble'>;
4
+ export type ButtonUploadInnerPropsType = Pick<UploadProps<any>, 'listType' | 'imageStyle' | 'canDelete' | 'showUploadList' | 'customResult' | 'drop' | 'multiple' | 'leftHandler' | 'onPreview' | 'renderContent' | 'recoverAble'>;
5
5
  export interface UploadButtonProps<T> extends Omit<UploadProps<T>, keyof ButtonUploadInnerPropsType>, Pick<ButtonProps, 'size' | 'type'> {
6
6
  /**
7
7
  * @cn 上传中按钮的内容,如果是字符串默认会有spin loading
@@ -1 +1 @@
1
- {"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["button.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,oBAAY,0BAA0B,GAAG,IAAI,CAC3C,WAAW,CAAC,GAAG,CAAC,EACd,UAAU,GACV,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,MAAM,GACN,UAAU,GACV,aAAa,GACb,WAAW,GACX,eAAe,GACf,aAAa,CAChB,CAAC;AAEF,MAAM,WAAW,iBAAiB,CAAC,CAAC,CAClC,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,0BAA0B,CAAC,EAC5D,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B"}
1
+ {"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["button.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,WAAW,CAAC,GAAG,CAAC,EACd,UAAU,GACV,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,MAAM,GACN,UAAU,GACV,aAAa,GACb,WAAW,GACX,eAAe,GACf,aAAa,CAChB,CAAC;AAEF,MAAM,WAAW,iBAAiB,CAAC,CAAC,CAClC,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,0BAA0B,CAAC,EAC5D,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B"}
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ export {};
@@ -1,31 +1,22 @@
1
- "use strict";
2
-
3
- require("core-js/modules/web.dom-collections.for-each.js");
4
- require("core-js/modules/es.object.get-own-property-descriptors.js");
5
- require("core-js/modules/es.array.iterator.js");
6
- require("core-js/modules/es.weak-map.js");
7
- require("core-js/modules/web.dom-collections.iterator.js");
8
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
9
- var _typeof = require("@babel/runtime/helpers/typeof");
10
- Object.defineProperty(exports, "__esModule", {
11
- value: true
12
- });
13
- exports.default = void 0;
14
- require("core-js/modules/es.array.filter.js");
15
- require("core-js/modules/es.array.from.js");
16
- require("core-js/modules/es.promise.js");
17
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
19
- var _react = _interopRequireWildcard(require("react"));
20
- var _hooks = require("@sheinx/hooks");
21
- var _jsxRuntime = require("react/jsx-runtime");
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import React, { useState } from 'react';
14
+ import { util } from '@sheinx/hooks';
15
+ import { Fragment as _Fragment } from "react/jsx-runtime";
16
+ import { jsx as _jsx } from "react/jsx-runtime";
26
17
  var useDrop = function useDrop(props) {
27
- var _useState = (0, _react.useState)(false),
28
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
18
+ var _useState = useState(false),
19
+ _useState2 = _slicedToArray(_useState, 2),
29
20
  isoOver = _useState2[0],
30
21
  setOver = _useState2[1];
31
22
  var handleFileDrop = function handleFileDrop(e) {
@@ -35,7 +26,7 @@ var useDrop = function useDrop(props) {
35
26
  onDrop = props.onDrop,
36
27
  dropData = props.dropData;
37
28
  var filter = accept ? Array.prototype.filter.call(files, function (f) {
38
- return _hooks.util.attrAccept(f, accept);
29
+ return util.attrAccept(f, accept);
39
30
  }) : Array.from(files);
40
31
  if (!filter || filter.length === 0) return;
41
32
  if (onDrop) onDrop(multiple ? filter : [filter[0]], dropData);
@@ -64,16 +55,15 @@ var Drop = function Drop(props) {
64
55
  var _useDrop = useDrop(props),
65
56
  isoOver = _useDrop.isoOver,
66
57
  getDropProps = _useDrop.getDropProps;
67
- if (!props.drop) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
58
+ if (!props.drop) return /*#__PURE__*/_jsx(_Fragment, {
68
59
  children: props.children
69
60
  });
70
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _objectSpread(_objectSpread(_objectSpread({}, getDropProps()), {}, {
61
+ return /*#__PURE__*/_jsx("span", _objectSpread(_objectSpread(_objectSpread({}, getDropProps()), {}, {
71
62
  className: props.className
72
- }, _hooks.util.getDataAttribute({
63
+ }, util.getDataAttribute({
73
64
  dragover: isoOver ? 'true' : 'false'
74
65
  })), {}, {
75
66
  children: props.children
76
67
  }));
77
68
  };
78
- var _default = Drop;
79
- exports.default = _default;
69
+ export default Drop;
@@ -1,20 +1,13 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.filter.js");
4
- require("core-js/modules/web.dom-collections.for-each.js");
5
- require("core-js/modules/es.object.get-own-property-descriptors.js");
6
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.default = void 0;
11
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
- var _upload = _interopRequireDefault(require("./upload"));
13
- var _jsxRuntime = require("react/jsx-runtime");
14
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import Upload from "./upload";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
16
9
  var Image = function Image(props) {
17
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_upload.default, _objectSpread(_objectSpread({}, props), {}, {
10
+ return /*#__PURE__*/_jsx(Upload, _objectSpread(_objectSpread({}, props), {}, {
18
11
  listType: 'image',
19
12
  imageStyle: _objectSpread(_objectSpread({}, props.imageStyle), {}, {
20
13
  width: props.width,
@@ -22,5 +15,4 @@ var Image = function Image(props) {
22
15
  })
23
16
  }));
24
17
  };
25
- var _default = Image;
26
- exports.default = _default;
18
+ export default Image;
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ export {};
@@ -1,34 +1,4 @@
1
- "use strict";
2
1
  "use client";
3
-
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- Object.defineProperty(exports, "Upload", {
9
- enumerable: true,
10
- get: function get() {
11
- return _upload.default;
12
- }
13
- });
14
- Object.defineProperty(exports, "UploadButton", {
15
- enumerable: true,
16
- get: function get() {
17
- return _button.default;
18
- }
19
- });
20
- Object.defineProperty(exports, "UploadImage", {
21
- enumerable: true,
22
- get: function get() {
23
- return _image.default;
24
- }
25
- });
26
- Object.defineProperty(exports, "default", {
27
- enumerable: true,
28
- get: function get() {
29
- return _upload.default;
30
- }
31
- });
32
- var _upload = _interopRequireDefault(require("./upload"));
33
- var _image = _interopRequireDefault(require("./image"));
34
- var _button = _interopRequireDefault(require("./button"));
2
+ export { default, default as Upload } from "./upload";
3
+ export { default as UploadImage } from "./image";
4
+ export { default as UploadButton } from "./button";
@@ -1,104 +1,98 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.filter.js");
4
- require("core-js/modules/web.dom-collections.for-each.js");
5
- require("core-js/modules/es.object.get-own-property-descriptors.js");
6
- require("core-js/modules/es.weak-map.js");
7
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
8
- var _typeof = require("@babel/runtime/helpers/typeof");
9
- Object.defineProperty(exports, "__esModule", {
10
- value: true
11
- });
12
- exports.default = void 0;
13
- require("core-js/modules/es.array.iterator.js");
14
- require("core-js/modules/web.dom-collections.iterator.js");
15
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
- var _react = _interopRequireWildcard(require("react"));
18
- var _classnames = _interopRequireDefault(require("classnames"));
19
- var _spin = _interopRequireDefault(require("../spin"));
20
- var _image = _interopRequireDefault(require("../image"));
21
- var _popover = require("../popover");
22
- var _icons = _interopRequireDefault(require("../icons"));
23
- var _jsxRuntime = require("react/jsx-runtime");
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import React, { useRef, useState } from 'react';
14
+ import classNames from 'classnames';
15
+ import Spin from "../spin";
16
+ import Image from "../image";
17
+ import { PopoverConfirm } from "../popover";
18
+ import icons from "../icons";
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { jsxs as _jsxs } from "react/jsx-runtime";
21
+ import { Fragment as _Fragment } from "react/jsx-runtime";
28
22
  var Result = function Result(props) {
29
23
  var _props$jssStyle, _props$jssStyle$uploa;
30
- var uploadClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 ? void 0 : (_props$jssStyle$uploa = _props$jssStyle.upload) === null || _props$jssStyle$uploa === void 0 ? void 0 : _props$jssStyle$uploa.call(_props$jssStyle);
24
+ var uploadClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$uploa = _props$jssStyle.upload) === null || _props$jssStyle$uploa === void 0 ? void 0 : _props$jssStyle$uploa.call(_props$jssStyle);
31
25
  var status = props.status,
32
26
  name = props.name,
33
27
  message = props.message,
34
28
  confirm = props.confirm,
35
29
  listType = props.listType,
36
30
  src = props.src;
37
- var _useState = (0, _react.useState)(false),
38
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
31
+ var _useState = useState(false),
32
+ _useState2 = _slicedToArray(_useState, 2),
39
33
  isConfirm = _useState2[0],
40
34
  setIsConfirm = _useState2[1];
41
35
  var confirmProps = typeof confirm === 'string' ? {
42
36
  children: confirm
43
37
  } : confirm;
44
- var _useRef = (0, _react.useRef)({
38
+ var _useRef = useRef({
45
39
  preview: function preview() {}
46
40
  }),
47
41
  context = _useRef.current;
48
42
  var renderText = function renderText() {
49
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
50
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
43
+ return /*#__PURE__*/_jsxs(_Fragment, {
44
+ children: [/*#__PURE__*/_jsxs("div", {
51
45
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultText,
52
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
46
+ children: [/*#__PURE__*/_jsx("div", {
53
47
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon,
54
- children: _icons.default.File
55
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
48
+ children: icons.upload.File
49
+ }), /*#__PURE__*/_jsxs("div", {
56
50
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultTextBody,
57
- children: [name, message && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
51
+ children: [name, message && /*#__PURE__*/_jsxs("span", {
58
52
  children: ["(", message, ") "]
59
53
  })]
60
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
54
+ }), /*#__PURE__*/_jsxs("div", {
61
55
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultTextFooter,
62
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
63
- className: (0, _classnames.default)(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultStatusIcon),
64
- children: [status === 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_spin.default, {
56
+ children: [/*#__PURE__*/_jsxs("div", {
57
+ className: classNames(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultStatusIcon),
58
+ children: [status === 1 && /*#__PURE__*/_jsx(Spin, {
65
59
  jssStyle: props.jssStyle,
66
60
  size: 10,
67
61
  name: 'ring'
68
- }), status === 2 && _icons.default.PcCheckCircleFill, status === 3 && _icons.default.PcWarningCircleFill]
69
- }), status === 1 && props.process !== -1 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
62
+ }), status === 2 && icons.upload.Success, status === 3 && icons.upload.Warning]
63
+ }), status === 1 && props.process !== -1 && /*#__PURE__*/_jsxs("div", {
70
64
  children: [Math.min(99, Math.floor(props.process || 0)), "%"]
71
65
  })]
72
66
  })]
73
- }), props.removeAble && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
74
- className: (0, _classnames.default)(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultClose, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.iconHover),
67
+ }), props.removeAble && /*#__PURE__*/_jsxs("div", {
68
+ className: classNames(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultClose, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.iconHover),
75
69
  onClick: confirmProps ? undefined : props.onRemove,
76
- children: [confirmProps && /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.PopoverConfirm, _objectSpread(_objectSpread({
70
+ children: [confirmProps && /*#__PURE__*/_jsx(PopoverConfirm, _objectSpread(_objectSpread({
77
71
  position: "top"
78
72
  }, confirmProps), {}, {
79
73
  onOk: props.onRemove,
80
74
  jssStyle: props.jssStyle
81
- })), status === -1 ? _icons.default.Return : _icons.default.Delete]
75
+ })), status === -1 ? icons.upload.Recover : icons.upload.Delete]
82
76
  })]
83
77
  });
84
78
  };
85
79
  var renderImage = function renderImage() {
86
- var topBtn = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
87
- className: (0, _classnames.default)(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultTopBtn, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.customImageBtn),
80
+ var topBtn = /*#__PURE__*/_jsx("div", {
81
+ className: classNames(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultTopBtn, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.customImageBtn),
88
82
  onClick: props.onRemove,
89
- children: status === -1 ? _icons.default.UndeleteOpaque : _icons.default.CloseOpaqueMultic1
83
+ children: status === -1 ? icons.upload.RecoverImage : icons.upload.DeleteImage
90
84
  });
91
- var errorTip = status === -1 && message && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
85
+ var errorTip = status === -1 && message && /*#__PURE__*/_jsx("div", {
92
86
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultTip,
93
87
  children: message
94
88
  });
95
89
  if (props.customImage) {
96
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
90
+ return /*#__PURE__*/_jsxs(_Fragment, {
97
91
  children: [props.customImage, topBtn, errorTip]
98
92
  });
99
93
  }
100
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
101
- children: [src && /*#__PURE__*/(0, _jsxRuntime.jsx)(_image.default, {
94
+ return /*#__PURE__*/_jsxs(_Fragment, {
95
+ children: [src && /*#__PURE__*/_jsx(Image, {
102
96
  componentRef: function componentRef(img) {
103
97
  context.preview = img.preview;
104
98
  },
@@ -108,17 +102,17 @@ var Result = function Result(props) {
108
102
  fit: "center",
109
103
  width: "auto",
110
104
  height: 0
111
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
112
- className: (0, _classnames.default)(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultMask, (isConfirm || status === 1) && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultMaskShow)),
113
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
105
+ }), /*#__PURE__*/_jsxs("div", {
106
+ className: classNames(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultMask, (isConfirm || status === 1) && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultMaskShow)),
107
+ children: [/*#__PURE__*/_jsxs("div", {
114
108
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultMaskOperator,
115
- children: [status === 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_spin.default, {
109
+ children: [status === 1 && /*#__PURE__*/_jsx(Spin, {
116
110
  size: 'null',
117
111
  jssStyle: props.jssStyle,
118
112
  name: 'ring',
119
113
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultLoading
120
- }), (status === 2 || status === -1) && src && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
121
- className: (0, _classnames.default)(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon),
114
+ }), (status === 2 || status === -1) && src && /*#__PURE__*/_jsx("div", {
115
+ className: classNames(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon),
122
116
  onClick: function onClick() {
123
117
  if (props.onPreview) {
124
118
  props.onPreview(src, props.values[props.index], props.index, props.values, {
@@ -128,29 +122,28 @@ var Result = function Result(props) {
128
122
  context.preview();
129
123
  }
130
124
  },
131
- children: _icons.default.Preview
132
- }), status === 2 && props.removeAble && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
133
- className: (0, _classnames.default)(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon),
125
+ children: icons.upload.PreviewImage
126
+ }), status === 2 && props.removeAble && /*#__PURE__*/_jsxs("div", {
127
+ className: classNames(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon),
134
128
  onClick: confirmProps ? undefined : props.onRemove,
135
- children: [confirmProps && /*#__PURE__*/(0, _jsxRuntime.jsx)(_popover.PopoverConfirm, _objectSpread(_objectSpread({
129
+ children: [confirmProps && /*#__PURE__*/_jsx(PopoverConfirm, _objectSpread(_objectSpread({
136
130
  onVisibleChange: setIsConfirm
137
131
  }, confirmProps), {}, {
138
132
  onOk: props.onRemove,
139
133
  jssStyle: props.jssStyle
140
- })), _icons.default.Delete]
134
+ })), icons.upload.Delete]
141
135
  })]
142
- }), status === 1 && props.process !== -1 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
136
+ }), status === 1 && props.process !== -1 && /*#__PURE__*/_jsxs("div", {
143
137
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultMaskInfo,
144
138
  children: [Math.min(99, Math.floor(props.process || 0)), "%"]
145
139
  })]
146
140
  }), status !== 2 && props.removeAble && topBtn, errorTip]
147
141
  });
148
142
  };
149
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
150
- className: (0, _classnames.default)(listType === 'image' ? uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResult : uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.result, status === 3 && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultError), status === 2 && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultSuccess), status === 1 && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultUploading), status === -1 && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultDeleted)),
143
+ return /*#__PURE__*/_jsx("div", {
144
+ className: classNames(listType === 'image' ? uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResult : uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.result, status === 3 && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultError), status === 2 && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultSuccess), status === 1 && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultUploading), status === -1 && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.resultDeleted)),
151
145
  style: listType === 'image' ? props.imageStyle : undefined,
152
146
  children: listType === 'image' ? renderImage() : renderText()
153
147
  });
154
148
  };
155
- var _default = Result;
156
- exports.default = _default;
149
+ export default Result;
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["upload.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5C,QAAA,MAAM,MAAM,4CAoPX,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["upload.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5C,QAAA,MAAM,MAAM,4CAsPX,CAAC;AAEF,eAAe,MAAM,CAAC"}