@sheinx/base 3.0.0-alpha.31 → 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 (916) 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 +44 -46
  48. package/cjs/cascader/cascader.type.d.ts +1 -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.js +6 -13
  257. package/cjs/select/result-more.js +17 -19
  258. package/cjs/select/result.js +20 -25
  259. package/cjs/select/result.type.d.ts +1 -1
  260. package/cjs/select/result.type.d.ts.map +1 -1
  261. package/cjs/select/select.js +45 -43
  262. package/cjs/select/select.type.d.ts +6 -6
  263. package/cjs/select/select.type.d.ts.map +1 -1
  264. package/cjs/slider/index.js +2 -2
  265. package/cjs/slider/slider.js +9 -11
  266. package/cjs/spin/base.js +9 -11
  267. package/cjs/spin/index.js +2 -2
  268. package/cjs/spin/spin.js +11 -12
  269. package/cjs/spin/spin.type.d.ts +2 -2
  270. package/cjs/spin/spin.type.d.ts.map +1 -1
  271. package/cjs/spin/spins.js +25 -27
  272. package/cjs/spin/utils.js +2 -4
  273. package/cjs/steps/index.js +2 -2
  274. package/cjs/steps/step.arrow.d.ts.map +1 -1
  275. package/cjs/steps/step.arrow.js +8 -7
  276. package/cjs/steps/step.default.d.ts.map +1 -1
  277. package/cjs/steps/step.default.js +13 -11
  278. package/cjs/steps/step.dot.d.ts.map +1 -1
  279. package/cjs/steps/step.dot.js +11 -9
  280. package/cjs/steps/step.js +13 -15
  281. package/cjs/steps/steps-context.js +1 -2
  282. package/cjs/steps/steps.js +9 -8
  283. package/cjs/steps/steps.type.d.ts +3 -3
  284. package/cjs/steps/steps.type.d.ts.map +1 -1
  285. package/cjs/sticky/index.js +2 -2
  286. package/cjs/sticky/sticky.js +18 -20
  287. package/cjs/switch/index.js +2 -2
  288. package/cjs/switch/switch.js +16 -12
  289. package/cjs/table/colgroup.js +1 -3
  290. package/cjs/table/index.js +2 -2
  291. package/cjs/table/table.js +15 -19
  292. package/cjs/table/table.type.d.ts +7 -7
  293. package/cjs/table/table.type.d.ts.map +1 -1
  294. package/cjs/table/tbody.js +3 -5
  295. package/cjs/table/tbody.type.d.ts +2 -2
  296. package/cjs/table/tbody.type.d.ts.map +1 -1
  297. package/cjs/table/temp/01-base.d.ts.map +1 -1
  298. package/cjs/table/temp/01-base.js +22 -14
  299. package/cjs/table/tfoot.js +4 -7
  300. package/cjs/table/thead.js +16 -24
  301. package/cjs/table/thead.type.d.ts +1 -1
  302. package/cjs/table/thead.type.d.ts.map +1 -1
  303. package/cjs/table/tr.js +16 -23
  304. package/cjs/table/use-table-select.js +6 -9
  305. package/cjs/tabs/index.js +2 -2
  306. package/cjs/tabs/tab.js +10 -11
  307. package/cjs/tabs/tabs-header.js +21 -19
  308. package/cjs/tabs/tabs-panel.js +8 -6
  309. package/cjs/tabs/tabs.js +24 -26
  310. package/cjs/tabs/tabs.type.d.ts +2 -2
  311. package/cjs/tabs/tabs.type.d.ts.map +1 -1
  312. package/cjs/tag/index.js +2 -2
  313. package/cjs/tag/tag-input.js +9 -10
  314. package/cjs/tag/tag.js +14 -14
  315. package/cjs/tag/tag.type.d.ts +7 -7
  316. package/cjs/tag/tag.type.d.ts.map +1 -1
  317. package/cjs/tag/use-tag.js +11 -8
  318. package/cjs/textarea/index.js +2 -2
  319. package/cjs/textarea/simple-textarea.js +17 -21
  320. package/cjs/textarea/textarea.js +22 -23
  321. package/cjs/textarea/textarea.type.d.ts +1 -6
  322. package/cjs/textarea/textarea.type.d.ts.map +1 -1
  323. package/cjs/textarea/use-auto-size.js +13 -12
  324. package/cjs/tooltip/index.js +2 -2
  325. package/cjs/tooltip/tooltip.js +11 -16
  326. package/cjs/transfer/index.js +2 -2
  327. package/cjs/transfer/transfer-list-header.d.ts.map +1 -1
  328. package/cjs/transfer/transfer-list-header.js +9 -10
  329. package/cjs/transfer/transfer-list-item.d.ts.map +1 -1
  330. package/cjs/transfer/transfer-list-item.js +7 -6
  331. package/cjs/transfer/transfer-list.js +13 -14
  332. package/cjs/transfer/transfer-operate.js +2 -4
  333. package/cjs/transfer/transfer.js +11 -10
  334. package/cjs/transfer/transfer.type.d.ts +2 -2
  335. package/cjs/transfer/transfer.type.d.ts.map +1 -1
  336. package/cjs/tree/index.js +2 -2
  337. package/cjs/tree/tree-checkbox.d.ts +2 -1
  338. package/cjs/tree/tree-checkbox.d.ts.map +1 -1
  339. package/cjs/tree/tree-checkbox.js +4 -3
  340. package/cjs/tree/tree-checkbox.type.d.ts +2 -2
  341. package/cjs/tree/tree-checkbox.type.d.ts.map +1 -1
  342. package/cjs/tree/tree-content.d.ts +2 -1
  343. package/cjs/tree/tree-content.d.ts.map +1 -1
  344. package/cjs/tree/tree-content.js +12 -14
  345. package/cjs/tree/tree-content.type.d.ts +2 -2
  346. package/cjs/tree/tree-content.type.d.ts.map +1 -1
  347. package/cjs/tree/tree-context.d.ts +4 -3
  348. package/cjs/tree/tree-context.d.ts.map +1 -1
  349. package/cjs/tree/tree-context.js +8 -14
  350. package/cjs/tree/tree-context.type.d.ts +2 -2
  351. package/cjs/tree/tree-context.type.d.ts.map +1 -1
  352. package/cjs/tree/tree-list.d.ts +1 -1
  353. package/cjs/tree/tree-list.d.ts.map +1 -1
  354. package/cjs/tree/tree-list.js +4 -4
  355. package/cjs/tree/tree-list.type.d.ts +3 -3
  356. package/cjs/tree/tree-list.type.d.ts.map +1 -1
  357. package/cjs/tree/tree-node.d.ts +1 -1
  358. package/cjs/tree/tree-node.d.ts.map +1 -1
  359. package/cjs/tree/tree-node.js +10 -11
  360. package/cjs/tree/tree-node.type.d.ts +3 -3
  361. package/cjs/tree/tree-node.type.d.ts.map +1 -1
  362. package/cjs/tree/tree-root.d.ts +1 -1
  363. package/cjs/tree/tree-root.d.ts.map +1 -1
  364. package/cjs/tree/tree-root.js +11 -11
  365. package/cjs/tree/tree-root.type.d.ts +3 -3
  366. package/cjs/tree/tree-root.type.d.ts.map +1 -1
  367. package/cjs/tree/tree.d.ts +2 -1
  368. package/cjs/tree/tree.d.ts.map +1 -1
  369. package/cjs/tree/tree.js +19 -21
  370. package/cjs/tree/tree.type.d.ts +4 -4
  371. package/cjs/tree/tree.type.d.ts.map +1 -1
  372. package/cjs/tree-select/index.js +2 -2
  373. package/cjs/tree-select/tree-select.d.ts +1 -1
  374. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  375. package/cjs/tree-select/tree-select.js +33 -35
  376. package/cjs/tree-select/tree-select.type.d.ts +5 -5
  377. package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
  378. package/cjs/upload/button.js +18 -18
  379. package/cjs/upload/button.type.d.ts +1 -1
  380. package/cjs/upload/button.type.d.ts.map +1 -1
  381. package/cjs/upload/drop.js +16 -19
  382. package/cjs/upload/image.js +8 -9
  383. package/cjs/upload/index.js +2 -2
  384. package/cjs/upload/result.js +24 -24
  385. package/cjs/upload/upload.d.ts.map +1 -1
  386. package/cjs/upload/upload.js +12 -22
  387. package/cjs/upload/useInputClick.js +2 -3
  388. package/cjs/virtual-scroll/index.js +2 -2
  389. package/cjs/virtual-scroll/scroll.js +9 -15
  390. package/cjs/virtual-scroll/virtual-scroll-list.js +20 -22
  391. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  392. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  393. package/esm/absolute-list/absolute-context.js +3 -9
  394. package/esm/absolute-list/absolute-list.d.ts +3 -1
  395. package/esm/absolute-list/absolute-list.d.ts.map +1 -1
  396. package/esm/absolute-list/absolute-list.js +20 -34
  397. package/esm/absolute-list/absolute-list.type.d.ts +2 -2
  398. package/esm/absolute-list/absolute-list.type.d.ts.map +1 -1
  399. package/esm/absolute-list/absolute-list.type.js +1 -5
  400. package/esm/absolute-list/index.js +1 -19
  401. package/esm/absolute-list/use-container.js +19 -35
  402. package/esm/alert/alert-icon.js +15 -24
  403. package/esm/alert/alert.js +39 -46
  404. package/esm/alert/alert.type.d.ts +1 -1
  405. package/esm/alert/alert.type.d.ts.map +1 -1
  406. package/esm/alert/alert.type.js +1 -5
  407. package/esm/alert/index.js +1 -19
  408. package/esm/animation-list/animation-list.js +30 -43
  409. package/esm/animation-list/animation-list.type.d.ts +1 -1
  410. package/esm/animation-list/animation-list.type.d.ts.map +1 -1
  411. package/esm/animation-list/animation-list.type.js +1 -5
  412. package/esm/animation-list/index.js +1 -19
  413. package/esm/breadcrumb/breadcrumb.js +35 -39
  414. package/esm/breadcrumb/breadcrumb.type.d.ts +1 -1
  415. package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
  416. package/esm/breadcrumb/breadcrumb.type.js +1 -5
  417. package/esm/breadcrumb/index.js +1 -19
  418. package/esm/breadcrumb/list.js +34 -38
  419. package/esm/button/button-group.js +10 -26
  420. package/esm/button/button-item.js +4 -12
  421. package/esm/button/button.js +26 -32
  422. package/esm/button/button.type.d.ts +1 -1
  423. package/esm/button/button.type.d.ts.map +1 -1
  424. package/esm/button/button.type.js +1 -5
  425. package/esm/button/index.js +2 -26
  426. package/esm/card/card-accordion-context.js +3 -11
  427. package/esm/card/card-accordion.js +23 -26
  428. package/esm/card/card-accordion.type.js +1 -5
  429. package/esm/card/card-body.js +11 -19
  430. package/esm/card/card-body.type.js +1 -5
  431. package/esm/card/card-footer.js +9 -17
  432. package/esm/card/card-footer.type.js +1 -5
  433. package/esm/card/card-header.js +17 -24
  434. package/esm/card/card-header.type.js +1 -5
  435. package/esm/card/card.context.js +3 -10
  436. package/esm/card/card.js +43 -47
  437. package/esm/card/card.type.js +1 -5
  438. package/esm/card/index.js +6 -54
  439. package/esm/card-group/card-group-context.js +3 -9
  440. package/esm/card-group/card-group.js +22 -30
  441. package/esm/card-group/card-group.type.js +1 -5
  442. package/esm/card-group/index.js +2 -26
  443. package/esm/card-group/item.js +18 -30
  444. package/esm/card-group/item.type.js +1 -5
  445. package/esm/card-group/lazyload.js +19 -27
  446. package/esm/carousel/carousel.js +45 -54
  447. package/esm/carousel/carousel.type.d.ts +0 -1
  448. package/esm/carousel/carousel.type.d.ts.map +1 -1
  449. package/esm/carousel/carousel.type.js +1 -5
  450. package/esm/carousel/index.js +1 -19
  451. package/esm/cascader/cascader.d.ts.map +1 -1
  452. package/esm/cascader/cascader.js +118 -127
  453. package/esm/cascader/cascader.type.d.ts +1 -1
  454. package/esm/cascader/cascader.type.d.ts.map +1 -1
  455. package/esm/cascader/cascader.type.js +1 -5
  456. package/esm/cascader/filter-list.js +13 -23
  457. package/esm/cascader/filter-list.type.js +1 -5
  458. package/esm/cascader/filter-node.js +12 -22
  459. package/esm/cascader/filter-node.type.js +1 -5
  460. package/esm/cascader/index.js +1 -19
  461. package/esm/cascader/list.js +9 -18
  462. package/esm/cascader/list.type.js +1 -5
  463. package/esm/cascader/node.d.ts.map +1 -1
  464. package/esm/cascader/node.js +47 -45
  465. package/esm/cascader/node.type.js +1 -5
  466. package/esm/checkbox/checkbox-group.js +21 -29
  467. package/esm/checkbox/checkbox-group.type.js +1 -5
  468. package/esm/checkbox/checkbox.js +28 -35
  469. package/esm/checkbox/checkbox.type.js +1 -5
  470. package/esm/checkbox/group-context.d.ts +1 -1
  471. package/esm/checkbox/group-context.d.ts.map +1 -1
  472. package/esm/checkbox/group-context.js +3 -9
  473. package/esm/checkbox/index.js +2 -26
  474. package/esm/checkbox/simple-checkbox.js +30 -36
  475. package/esm/checkbox/use-checkbox-inputable.js +12 -15
  476. package/esm/collapse/collapse-item.js +28 -41
  477. package/esm/collapse/collapse-item.type.js +1 -5
  478. package/esm/collapse/collapse.js +12 -20
  479. package/esm/collapse/collapse.type.js +1 -5
  480. package/esm/collapse/group-context.d.ts +1 -1
  481. package/esm/collapse/group-context.d.ts.map +1 -1
  482. package/esm/collapse/group-context.js +3 -9
  483. package/esm/collapse/index.js +2 -26
  484. package/esm/common/type.js +1 -5
  485. package/esm/common/use-clear.js +4 -11
  486. package/esm/common/use-inner-title.js +26 -34
  487. package/esm/common/use-tip.js +14 -20
  488. package/esm/common/use-with-form-config.js +10 -19
  489. package/esm/config/index.d.ts +1 -4
  490. package/esm/config/index.d.ts.map +1 -1
  491. package/esm/config/index.js +24 -45
  492. package/esm/config/locale/Props.d.ts +4 -4
  493. package/esm/config/locale/Props.d.ts.map +1 -1
  494. package/esm/config/locale/Props.js +1 -5
  495. package/esm/config/locale/en_US.js +2 -9
  496. package/esm/config/locale/index.js +17 -25
  497. package/esm/config/locale/zh-CN.js +2 -9
  498. package/esm/date-picker/date-picker.d.ts.map +1 -1
  499. package/esm/date-picker/date-picker.js +65 -74
  500. package/esm/date-picker/date-picker.type.d.ts +2 -2
  501. package/esm/date-picker/date-picker.type.d.ts.map +1 -1
  502. package/esm/date-picker/date-picker.type.js +1 -5
  503. package/esm/date-picker/day.js +74 -85
  504. package/esm/date-picker/day.type.js +1 -5
  505. package/esm/date-picker/index.js +1 -19
  506. package/esm/date-picker/month.js +32 -42
  507. package/esm/date-picker/month.type.d.ts +1 -1
  508. package/esm/date-picker/month.type.d.ts.map +1 -1
  509. package/esm/date-picker/month.type.js +1 -5
  510. package/esm/date-picker/picker.js +30 -38
  511. package/esm/date-picker/picker.type.js +1 -5
  512. package/esm/date-picker/pickerTitle.js +8 -15
  513. package/esm/date-picker/quarter.js +31 -41
  514. package/esm/date-picker/quarter.type.d.ts +1 -1
  515. package/esm/date-picker/quarter.type.d.ts.map +1 -1
  516. package/esm/date-picker/quarter.type.js +1 -5
  517. package/esm/date-picker/quick.js +13 -22
  518. package/esm/date-picker/quick.type.js +1 -5
  519. package/esm/date-picker/result.js +43 -52
  520. package/esm/date-picker/time.js +33 -47
  521. package/esm/date-picker/time.type.js +1 -5
  522. package/esm/date-picker/year.js +34 -44
  523. package/esm/date-picker/year.type.d.ts +1 -1
  524. package/esm/date-picker/year.type.d.ts.map +1 -1
  525. package/esm/date-picker/year.type.js +1 -5
  526. package/esm/descriptions/descriptions.js +35 -50
  527. package/esm/descriptions/descriptions.type.d.ts +1 -1
  528. package/esm/descriptions/descriptions.type.d.ts.map +1 -1
  529. package/esm/descriptions/descriptions.type.js +1 -5
  530. package/esm/descriptions/index.js +1 -19
  531. package/esm/divider/divider.js +7 -15
  532. package/esm/divider/divider.type.js +1 -5
  533. package/esm/divider/index.js +1 -19
  534. package/esm/dropdown/Item.js +30 -41
  535. package/esm/dropdown/dropdown.js +11 -19
  536. package/esm/dropdown/dropdown.type.d.ts +5 -5
  537. package/esm/dropdown/dropdown.type.d.ts.map +1 -1
  538. package/esm/dropdown/dropdown.type.js +10 -3
  539. package/esm/dropdown/dropdownIn.d.ts.map +1 -1
  540. package/esm/dropdown/dropdownIn.js +39 -48
  541. package/esm/dropdown/index.d.ts +1 -1
  542. package/esm/dropdown/index.d.ts.map +1 -1
  543. package/esm/dropdown/index.js +1 -19
  544. package/esm/editable-area/editable-area.d.ts.map +1 -1
  545. package/esm/editable-area/editable-area.js +44 -53
  546. package/esm/editable-area/editable-area.type.js +1 -5
  547. package/esm/editable-area/index.js +1 -19
  548. package/esm/empty/empty-image.js +43 -49
  549. package/esm/empty/empty.js +28 -35
  550. package/esm/empty/empty.type.js +1 -5
  551. package/esm/empty/index.js +1 -19
  552. package/esm/form/error-trans.js +11 -21
  553. package/esm/form/form-button.js +16 -24
  554. package/esm/form/form-field.js +9 -18
  555. package/esm/form/form-field.type.d.ts +1 -1
  556. package/esm/form/form-field.type.d.ts.map +1 -1
  557. package/esm/form/form-field.type.js +1 -5
  558. package/esm/form/form-fieldset.js +17 -29
  559. package/esm/form/form-fieldset.type.js +1 -5
  560. package/esm/form/form-flow.js +4 -11
  561. package/esm/form/form-flow.type.js +1 -5
  562. package/esm/form/form-footer-context.js +21 -31
  563. package/esm/form/form-item.js +30 -37
  564. package/esm/form/form-item.type.js +1 -5
  565. package/esm/form/form.d.ts +1 -1
  566. package/esm/form/form.d.ts.map +1 -1
  567. package/esm/form/form.js +29 -42
  568. package/esm/form/form.type.js +1 -8
  569. package/esm/form/index.js +6 -54
  570. package/esm/gap/gap.js +17 -26
  571. package/esm/gap/gap.type.js +1 -5
  572. package/esm/gap/index.js +1 -19
  573. package/esm/gap/support.js +1 -7
  574. package/esm/grid/grid.js +19 -34
  575. package/esm/grid/grid.type.d.ts +1 -1
  576. package/esm/grid/grid.type.d.ts.map +1 -1
  577. package/esm/grid/grid.type.js +1 -5
  578. package/esm/grid/index.js +1 -19
  579. package/esm/grid/util.d.ts +1 -1
  580. package/esm/grid/util.d.ts.map +1 -1
  581. package/esm/grid/util.js +7 -16
  582. package/esm/icon/icon.js +22 -31
  583. package/esm/icon/icon.type.d.ts +1 -1
  584. package/esm/icon/icon.type.d.ts.map +1 -1
  585. package/esm/icon/icon.type.js +1 -5
  586. package/esm/icon/index.js +1 -19
  587. package/esm/icons/config.d.ts +144 -0
  588. package/esm/icons/config.d.ts.map +1 -0
  589. package/esm/icons/config.js +157 -0
  590. package/esm/icons/icons.d.ts +46 -0
  591. package/esm/icons/icons.d.ts.map +1 -0
  592. package/esm/icons/icons.js +177 -0
  593. package/esm/icons/index.d.ts +1 -47
  594. package/esm/icons/index.d.ts.map +1 -1
  595. package/esm/icons/index.js +1 -194
  596. package/esm/image/image-event.js +10 -18
  597. package/esm/image/image-gallery.js +31 -37
  598. package/esm/image/image-group.d.ts.map +1 -1
  599. package/esm/image/image-group.js +30 -44
  600. package/esm/image/image-group.type.js +1 -5
  601. package/esm/image/image-magnify.js +17 -23
  602. package/esm/image/image.js +51 -63
  603. package/esm/image/image.type.d.ts +4 -4
  604. package/esm/image/image.type.d.ts.map +1 -1
  605. package/esm/image/image.type.js +1 -5
  606. package/esm/image/index.js +2 -26
  607. package/esm/index.d.ts +1 -1
  608. package/esm/index.d.ts.map +1 -1
  609. package/esm/index.js +48 -581
  610. package/esm/input/index.js +4 -40
  611. package/esm/input/input-group.js +33 -42
  612. package/esm/input/input-group.type.js +1 -5
  613. package/esm/input/input-number.js +33 -39
  614. package/esm/input/input-number.type.d.ts +1 -1
  615. package/esm/input/input-number.type.d.ts.map +1 -1
  616. package/esm/input/input-number.type.js +1 -5
  617. package/esm/input/input-password.js +23 -29
  618. package/esm/input/input-password.type.js +1 -5
  619. package/esm/input/input.js +18 -27
  620. package/esm/input/input.type.d.ts +1 -1
  621. package/esm/input/input.type.d.ts.map +1 -1
  622. package/esm/input/input.type.js +1 -5
  623. package/esm/input/simple-input.js +31 -37
  624. package/esm/input/use-input-common.d.ts +1 -1
  625. package/esm/input/use-input-common.js +44 -52
  626. package/esm/list/base-item.js +47 -54
  627. package/esm/list/base-item.type.js +1 -5
  628. package/esm/list/index.js +2 -26
  629. package/esm/list/list.d.ts.map +1 -1
  630. package/esm/list/list.js +54 -65
  631. package/esm/list/list.type.js +1 -5
  632. package/esm/menu/index.js +1 -19
  633. package/esm/menu/item.d.ts.map +1 -1
  634. package/esm/menu/item.js +42 -49
  635. package/esm/menu/menu.js +35 -38
  636. package/esm/menu/menu.type.d.ts +2 -2
  637. package/esm/menu/menu.type.d.ts.map +1 -1
  638. package/esm/menu/menu.type.js +1 -5
  639. package/esm/menu/scroll.js +24 -27
  640. package/esm/menu/scrollbar.js +16 -24
  641. package/esm/message/func.js +6 -14
  642. package/esm/message/func.type.d.ts +2 -2
  643. package/esm/message/func.type.d.ts.map +1 -1
  644. package/esm/message/func.type.js +1 -5
  645. package/esm/message/index.js +1 -19
  646. package/esm/message/manager.d.ts.map +1 -1
  647. package/esm/message/manager.js +15 -25
  648. package/esm/message/message.js +59 -65
  649. package/esm/message/message.type.js +1 -5
  650. package/esm/modal/index.js +3 -33
  651. package/esm/modal/modal-content.js +63 -71
  652. package/esm/modal/modal-content.type.js +1 -5
  653. package/esm/modal/modal-func.d.ts +1 -1
  654. package/esm/modal/modal-func.d.ts.map +1 -1
  655. package/esm/modal/modal-func.js +40 -44
  656. package/esm/modal/modal-func.type.js +1 -5
  657. package/esm/modal/modal-submit.js +17 -25
  658. package/esm/modal/modal.js +23 -26
  659. package/esm/modal/modal.type.d.ts +1 -1
  660. package/esm/modal/modal.type.d.ts.map +1 -1
  661. package/esm/modal/modal.type.js +1 -5
  662. package/esm/modal/use-modal-move.js +24 -27
  663. package/esm/modal/use-modal-resize.js +19 -22
  664. package/esm/pagination/index.js +1 -19
  665. package/esm/pagination/pagination-button.js +17 -25
  666. package/esm/pagination/pagination-button.type.js +1 -5
  667. package/esm/pagination/pagination-buttons.js +37 -39
  668. package/esm/pagination/pagination-buttons.type.d.ts +2 -2
  669. package/esm/pagination/pagination-buttons.type.d.ts.map +1 -1
  670. package/esm/pagination/pagination-buttons.type.js +1 -5
  671. package/esm/pagination/pagination-jumper.js +26 -30
  672. package/esm/pagination/pagination-jumper.type.js +1 -5
  673. package/esm/pagination/pagination-next.d.ts.map +1 -1
  674. package/esm/pagination/pagination-next.js +10 -18
  675. package/esm/pagination/pagination-prev.d.ts.map +1 -1
  676. package/esm/pagination/pagination-prev.js +10 -18
  677. package/esm/pagination/pagination-simple.js +11 -17
  678. package/esm/pagination/pagination-simple.type.js +1 -5
  679. package/esm/pagination/pagination-size-list.js +8 -17
  680. package/esm/pagination/pagination-size-list.type.js +1 -5
  681. package/esm/pagination/pagination.d.ts.map +1 -1
  682. package/esm/pagination/pagination.js +28 -38
  683. package/esm/pagination/pagination.type.d.ts +2 -2
  684. package/esm/pagination/pagination.type.d.ts.map +1 -1
  685. package/esm/pagination/pagination.type.js +1 -5
  686. package/esm/popover/confirm.js +39 -46
  687. package/esm/popover/confirm.type.d.ts +2 -2
  688. package/esm/popover/confirm.type.d.ts.map +1 -1
  689. package/esm/popover/confirm.type.js +1 -5
  690. package/esm/popover/index.js +2 -26
  691. package/esm/popover/popover.js +33 -46
  692. package/esm/popover/popover.type.js +1 -5
  693. package/esm/progress/analyzeColor.js +2 -10
  694. package/esm/progress/circle.js +21 -30
  695. package/esm/progress/index.js +1 -19
  696. package/esm/progress/line-popup.js +15 -21
  697. package/esm/progress/line.js +20 -29
  698. package/esm/progress/progress.js +13 -21
  699. package/esm/progress/progress.type.js +1 -5
  700. package/esm/radio/group-context.d.ts +1 -1
  701. package/esm/radio/group-context.d.ts.map +1 -1
  702. package/esm/radio/group-context.js +3 -9
  703. package/esm/radio/index.js +2 -26
  704. package/esm/radio/radio-group.js +34 -41
  705. package/esm/radio/radio-group.type.js +1 -5
  706. package/esm/radio/radio.js +20 -27
  707. package/esm/radio/radio.type.js +1 -5
  708. package/esm/radio/simple-radio.js +24 -30
  709. package/esm/rate/index.js +1 -19
  710. package/esm/rate/rate.js +32 -42
  711. package/esm/rate/rate.type.js +1 -5
  712. package/esm/rule/index.js +1 -12
  713. package/esm/select/index.js +1 -19
  714. package/esm/select/list-columns-option.js +8 -16
  715. package/esm/select/list-columns-option.type.js +1 -5
  716. package/esm/select/list-columns.js +21 -33
  717. package/esm/select/list-option.js +17 -21
  718. package/esm/select/list-option.type.js +1 -5
  719. package/esm/select/list-tree.js +11 -19
  720. package/esm/select/list-tree.type.js +1 -5
  721. package/esm/select/list.js +41 -46
  722. package/esm/select/result-input.js +14 -29
  723. package/esm/select/result-input.type.js +1 -5
  724. package/esm/select/result-more.js +33 -44
  725. package/esm/select/result-more.type.js +1 -5
  726. package/esm/select/result.js +64 -77
  727. package/esm/select/result.type.d.ts +1 -1
  728. package/esm/select/result.type.d.ts.map +1 -1
  729. package/esm/select/result.type.js +1 -5
  730. package/esm/select/select.js +109 -114
  731. package/esm/select/select.type.d.ts +6 -6
  732. package/esm/select/select.type.d.ts.map +1 -1
  733. package/esm/select/select.type.js +1 -5
  734. package/esm/slider/index.js +1 -19
  735. package/esm/slider/slider.js +32 -39
  736. package/esm/slider/slider.type.js +1 -5
  737. package/esm/spin/base.js +16 -25
  738. package/esm/spin/index.js +1 -19
  739. package/esm/spin/spin.js +26 -33
  740. package/esm/spin/spin.type.d.ts +2 -2
  741. package/esm/spin/spin.type.d.ts.map +1 -1
  742. package/esm/spin/spin.type.js +1 -5
  743. package/esm/spin/spins.js +71 -80
  744. package/esm/spin/utils.js +2 -10
  745. package/esm/steps/index.js +2 -26
  746. package/esm/steps/step.arrow.d.ts.map +1 -1
  747. package/esm/steps/step.arrow.js +15 -20
  748. package/esm/steps/step.default.d.ts.map +1 -1
  749. package/esm/steps/step.default.js +25 -29
  750. package/esm/steps/step.dot.d.ts.map +1 -1
  751. package/esm/steps/step.dot.js +20 -24
  752. package/esm/steps/step.js +28 -37
  753. package/esm/steps/step.type.js +1 -5
  754. package/esm/steps/steps-context.js +3 -9
  755. package/esm/steps/steps-context.type.js +1 -5
  756. package/esm/steps/steps.js +18 -24
  757. package/esm/steps/steps.type.d.ts +3 -3
  758. package/esm/steps/steps.type.d.ts.map +1 -1
  759. package/esm/steps/steps.type.js +1 -5
  760. package/esm/sticky/index.js +1 -19
  761. package/esm/sticky/sticky.js +40 -48
  762. package/esm/sticky/sticky.type.js +1 -5
  763. package/esm/switch/index.js +1 -19
  764. package/esm/switch/switch.js +31 -33
  765. package/esm/switch/switch.type.js +1 -5
  766. package/esm/table/colgroup.js +6 -14
  767. package/esm/table/index.js +1 -19
  768. package/esm/table/table.js +89 -100
  769. package/esm/table/table.type.d.ts +7 -7
  770. package/esm/table/table.type.d.ts.map +1 -1
  771. package/esm/table/table.type.js +1 -5
  772. package/esm/table/tbody.js +11 -20
  773. package/esm/table/tbody.type.d.ts +2 -2
  774. package/esm/table/tbody.type.d.ts.map +1 -1
  775. package/esm/table/tbody.type.js +1 -5
  776. package/esm/table/temp/01-base.d.ts.map +1 -1
  777. package/esm/table/temp/01-base.js +40 -37
  778. package/esm/table/tfoot.js +12 -22
  779. package/esm/table/tfoot.type.js +1 -12
  780. package/esm/table/thead.js +47 -62
  781. package/esm/table/thead.type.d.ts +1 -1
  782. package/esm/table/thead.type.d.ts.map +1 -1
  783. package/esm/table/thead.type.js +1 -5
  784. package/esm/table/tr.js +45 -59
  785. package/esm/table/use-table-select.js +20 -29
  786. package/esm/tabs/index.js +2 -26
  787. package/esm/tabs/tab.js +23 -30
  788. package/esm/tabs/tab.type.js +1 -5
  789. package/esm/tabs/tabs-header.js +52 -56
  790. package/esm/tabs/tabs-header.type.js +1 -5
  791. package/esm/tabs/tabs-panel.js +14 -19
  792. package/esm/tabs/tabs-panel.type.js +1 -5
  793. package/esm/tabs/tabs.js +54 -63
  794. package/esm/tabs/tabs.type.d.ts +2 -2
  795. package/esm/tabs/tabs.type.d.ts.map +1 -1
  796. package/esm/tabs/tabs.type.js +1 -5
  797. package/esm/tag/index.js +2 -26
  798. package/esm/tag/tag-input.js +16 -24
  799. package/esm/tag/tag.js +33 -39
  800. package/esm/tag/tag.type.d.ts +7 -7
  801. package/esm/tag/tag.type.d.ts.map +1 -1
  802. package/esm/tag/tag.type.js +1 -5
  803. package/esm/tag/use-tag.js +21 -24
  804. package/esm/textarea/index.js +1 -19
  805. package/esm/textarea/simple-textarea.js +26 -38
  806. package/esm/textarea/textarea.js +51 -60
  807. package/esm/textarea/textarea.type.d.ts +1 -6
  808. package/esm/textarea/textarea.type.d.ts.map +1 -1
  809. package/esm/textarea/textarea.type.js +1 -5
  810. package/esm/textarea/use-auto-size.js +20 -28
  811. package/esm/tooltip/index.js +1 -19
  812. package/esm/tooltip/tooltip.js +28 -40
  813. package/esm/tooltip/tooltip.type.js +1 -5
  814. package/esm/transfer/index.js +1 -19
  815. package/esm/transfer/transfer-list-header.d.ts.map +1 -1
  816. package/esm/transfer/transfer-list-header.js +22 -29
  817. package/esm/transfer/transfer-list-header.type.js +1 -5
  818. package/esm/transfer/transfer-list-item.d.ts.map +1 -1
  819. package/esm/transfer/transfer-list-item.js +21 -26
  820. package/esm/transfer/transfer-list-item.type.js +1 -5
  821. package/esm/transfer/transfer-list.js +42 -49
  822. package/esm/transfer/transfer-list.type.js +1 -5
  823. package/esm/transfer/transfer-operate.js +6 -14
  824. package/esm/transfer/transfer-operate.type.js +1 -5
  825. package/esm/transfer/transfer.js +28 -33
  826. package/esm/transfer/transfer.type.d.ts +2 -2
  827. package/esm/transfer/transfer.type.d.ts.map +1 -1
  828. package/esm/transfer/transfer.type.js +1 -5
  829. package/esm/tree/index.js +1 -19
  830. package/esm/tree/tree-checkbox.d.ts +2 -1
  831. package/esm/tree/tree-checkbox.d.ts.map +1 -1
  832. package/esm/tree/tree-checkbox.js +8 -13
  833. package/esm/tree/tree-checkbox.type.d.ts +2 -2
  834. package/esm/tree/tree-checkbox.type.d.ts.map +1 -1
  835. package/esm/tree/tree-checkbox.type.js +1 -5
  836. package/esm/tree/tree-content.d.ts +2 -1
  837. package/esm/tree/tree-content.d.ts.map +1 -1
  838. package/esm/tree/tree-content.js +36 -44
  839. package/esm/tree/tree-content.type.d.ts +2 -2
  840. package/esm/tree/tree-content.type.d.ts.map +1 -1
  841. package/esm/tree/tree-content.type.js +1 -5
  842. package/esm/tree/tree-context.d.ts +4 -3
  843. package/esm/tree/tree-context.d.ts.map +1 -1
  844. package/esm/tree/tree-context.js +8 -22
  845. package/esm/tree/tree-context.type.d.ts +2 -2
  846. package/esm/tree/tree-context.type.d.ts.map +1 -1
  847. package/esm/tree/tree-context.type.js +1 -5
  848. package/esm/tree/tree-list.d.ts +1 -1
  849. package/esm/tree/tree-list.d.ts.map +1 -1
  850. package/esm/tree/tree-list.js +10 -17
  851. package/esm/tree/tree-list.type.d.ts +3 -3
  852. package/esm/tree/tree-list.type.d.ts.map +1 -1
  853. package/esm/tree/tree-list.type.js +1 -5
  854. package/esm/tree/tree-node.d.ts +1 -1
  855. package/esm/tree/tree-node.d.ts.map +1 -1
  856. package/esm/tree/tree-node.js +25 -32
  857. package/esm/tree/tree-node.type.d.ts +3 -3
  858. package/esm/tree/tree-node.type.d.ts.map +1 -1
  859. package/esm/tree/tree-node.type.js +1 -5
  860. package/esm/tree/tree-root.d.ts +1 -1
  861. package/esm/tree/tree-root.d.ts.map +1 -1
  862. package/esm/tree/tree-root.js +15 -22
  863. package/esm/tree/tree-root.type.d.ts +3 -3
  864. package/esm/tree/tree-root.type.d.ts.map +1 -1
  865. package/esm/tree/tree-root.type.js +1 -5
  866. package/esm/tree/tree.d.ts +2 -1
  867. package/esm/tree/tree.d.ts.map +1 -1
  868. package/esm/tree/tree.js +36 -45
  869. package/esm/tree/tree.type.d.ts +4 -4
  870. package/esm/tree/tree.type.d.ts.map +1 -1
  871. package/esm/tree/tree.type.js +1 -5
  872. package/esm/tree-select/index.js +1 -19
  873. package/esm/tree-select/tree-select.d.ts +1 -1
  874. package/esm/tree-select/tree-select.d.ts.map +1 -1
  875. package/esm/tree-select/tree-select.js +101 -110
  876. package/esm/tree-select/tree-select.type.d.ts +5 -5
  877. package/esm/tree-select/tree-select.type.d.ts.map +1 -1
  878. package/esm/tree-select/tree-select.type.js +1 -5
  879. package/esm/upload/button.js +39 -47
  880. package/esm/upload/button.type.d.ts +1 -1
  881. package/esm/upload/button.type.d.ts.map +1 -1
  882. package/esm/upload/button.type.js +1 -5
  883. package/esm/upload/drop.js +23 -33
  884. package/esm/upload/image.js +10 -18
  885. package/esm/upload/image.type.js +1 -5
  886. package/esm/upload/index.js +3 -33
  887. package/esm/upload/result.js +63 -70
  888. package/esm/upload/upload.d.ts.map +1 -1
  889. package/esm/upload/upload.js +51 -67
  890. package/esm/upload/upload.type.js +1 -5
  891. package/esm/upload/useInputClick.js +5 -12
  892. package/esm/virtual-scroll/index.js +2 -20
  893. package/esm/virtual-scroll/scroll.js +19 -32
  894. package/esm/virtual-scroll/virtual-scroll-list.js +32 -43
  895. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  896. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  897. package/esm/virtual-scroll/virtual-scroll-list.type.js +1 -5
  898. package/package.json +3 -3
  899. package/cjs/icons/caret.d.ts +0 -4
  900. package/cjs/icons/caret.d.ts.map +0 -1
  901. package/cjs/icons/caret.js +0 -19
  902. package/cjs/icons/caret.type.d.ts +0 -2
  903. package/cjs/icons/caret.type.d.ts.map +0 -1
  904. package/cjs/icons/caret.type.js +0 -5
  905. package/cjs/table/temp/00-scroll.d.ts +0 -4
  906. package/cjs/table/temp/00-scroll.d.ts.map +0 -1
  907. package/cjs/table/temp/00-scroll.js +0 -32
  908. package/esm/icons/caret.d.ts +0 -4
  909. package/esm/icons/caret.d.ts.map +0 -1
  910. package/esm/icons/caret.js +0 -19
  911. package/esm/icons/caret.type.d.ts +0 -2
  912. package/esm/icons/caret.type.d.ts.map +0 -1
  913. package/esm/icons/caret.type.js +0 -5
  914. package/esm/table/temp/00-scroll.d.ts +0 -4
  915. package/esm/table/temp/00-scroll.d.ts.map +0 -1
  916. package/esm/table/temp/00-scroll.js +0 -32
@@ -1,22 +1,27 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.default = void 0;
8
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
7
  var _react = require("react");
10
8
  var _hooks = require("@sheinx/hooks");
11
9
  var _scrollbar = _interopRequireDefault(require("./scrollbar"));
12
10
  var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13
+ 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."); }
14
+ 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); }
15
+ 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; }
16
+ 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; } }
17
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
18
  var Scroll = function Scroll(props) {
14
19
  var _useRef = (0, _react.useRef)({
15
20
  timer: 0
16
21
  }),
17
22
  context = _useRef.current;
18
23
  var _useState = (0, _react.useState)(0),
19
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
24
+ _useState2 = _slicedToArray(_useState, 2),
20
25
  offset = _useState2[0],
21
26
  setScroll = _useState2[1];
22
27
  var _useState3 = (0, _react.useState)({
@@ -25,7 +30,7 @@ var Scroll = function Scroll(props) {
25
30
  height: 0,
26
31
  scrollHeight: 0
27
32
  }),
28
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
33
+ _useState4 = _slicedToArray(_useState3, 2),
29
34
  info = _useState4[0],
30
35
  setInfo = _useState4[1];
31
36
  var scrollLength = props.direction === 'x' ? info.scrollWidth : info.scrollHeight;
@@ -116,5 +121,4 @@ var Scroll = function Scroll(props) {
116
121
  jssStyle: props.jssStyle
117
122
  });
118
123
  };
119
- var _default = Scroll;
120
- exports.default = _default;
124
+ var _default = exports.default = Scroll;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -10,9 +9,10 @@ var _hooks = require("@sheinx/hooks");
10
9
  var _classnames = _interopRequireDefault(require("classnames"));
11
10
  var _config = require("../config");
12
11
  var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  var Scrollbar = function Scrollbar(props) {
14
14
  var _props$jssStyle, _props$jssStyle$menu;
15
- var classes = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 ? void 0 : (_props$jssStyle$menu = _props$jssStyle.menu) === null || _props$jssStyle$menu === void 0 ? void 0 : _props$jssStyle$menu.call(_props$jssStyle);
15
+ var classes = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$menu = _props$jssStyle.menu) === null || _props$jssStyle$menu === void 0 ? void 0 : _props$jssStyle$menu.call(_props$jssStyle);
16
16
  var show = props.scrollLength > props.length;
17
17
  var config = (0, _config.useConfig)();
18
18
  var isRtl = config.direction === 'rtl';
@@ -86,5 +86,4 @@ var Scrollbar = function Scrollbar(props) {
86
86
  })
87
87
  });
88
88
  };
89
- var _default = Scrollbar;
90
- exports.default = _default;
89
+ var _default = exports.default = Scrollbar;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- require("core-js/modules/web.dom-collections.for-each.js");
8
7
  var _manager = require("./manager");
9
8
  var defaultOptions = {};
10
9
  var create = function create(type) {
@@ -43,7 +42,7 @@ var create = function create(type) {
43
42
  });
44
43
  };
45
44
  };
46
- var _default = {
45
+ var _default = exports.default = {
47
46
  show: create('default'),
48
47
  success: create('success'),
49
48
  info: create('info'),
@@ -61,5 +60,4 @@ var _default = {
61
60
  setOptions: function setOptions(options) {
62
61
  defaultOptions = options;
63
62
  }
64
- };
65
- exports.default = _default;
63
+ };
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { MessageClasses } from './message.type';
3
3
  import { AlertClasses } from '../alert/alert.type';
4
- export declare type MessageType = 'default' | 'success' | 'info' | 'warning' | 'danger';
5
- export declare type PositionType = 'top' | 'middle' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
4
+ export type MessageType = 'default' | 'success' | 'info' | 'warning' | 'danger';
5
+ export type PositionType = 'top' | 'middle' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
6
6
  export interface MessageFuncArg {
7
7
  /**
8
8
  * @en The message content
@@ -1 +1 @@
1
- {"version":3,"file":"func.type.d.ts","sourceRoot":"","sources":["func.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,oBAAY,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhF,oBAAY,YAAY,GACpB,KAAK,GACL,QAAQ,GACR,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;IACxF;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,GAAG,WAAW,CAAC;IAC9C,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,cAAc,CAAC;QAC/B,KAAK,CAAC,EAAE,MAAM,YAAY,CAAC;KAC5B,CAAC;CACH"}
1
+ {"version":3,"file":"func.type.d.ts","sourceRoot":"","sources":["func.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhF,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,QAAQ,GACR,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;IACxF;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,GAAG,WAAW,CAAC;IAC9C,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,cAAc,CAAC;QAC/B,KAAK,CAAC,EAAE,MAAM,YAAY,CAAC;KAC5B,CAAC;CACH"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  "use client";
3
3
 
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -17,4 +16,5 @@ Object.defineProperty(exports, "default", {
17
16
  return _func.default;
18
17
  }
19
18
  });
20
- var _func = _interopRequireDefault(require("./func"));
19
+ var _func = _interopRequireDefault(require("./func"));
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1 +1 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["manager.tsx"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAc9C,eAAO,MAAM,OAAO,aAAc,MAAM,SAWvC,CAAC;AAEF,UAAU,MAAM;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,GAAG,WAAW,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CACpC;AACD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,oBA+B1C;AAED,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["manager.tsx"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAc9C,eAAO,MAAM,OAAO,aAAc,MAAM,SAWvC,CAAC;AAEF,UAAU,MAAM;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,GAAG,WAAW,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CACpC;AACD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,oBAiC1C;AAED,eAAe,OAAO,CAAC"}
@@ -1,17 +1,16 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.destroy = exports.default = void 0;
8
7
  exports.getComponent = getComponent;
9
- require("core-js/modules/es.promise.js");
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
  var _message = _interopRequireDefault(require("./message"));
12
10
  var _config = require("../config");
13
11
  var _hooks = require("@sheinx/hooks");
14
12
  var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
14
  // import classNames from 'classnames';
16
15
 
17
16
  var lastContainer = null;
@@ -22,7 +21,7 @@ var getContainer = function getContainer(container) {
22
21
  if (target instanceof HTMLElement) return target;
23
22
  return (0, _config.getDefaultContainer)();
24
23
  };
25
- var destroy = function destroy(position) {
24
+ var destroy = exports.destroy = function destroy(position) {
26
25
  var component = components[position];
27
26
  var element = elements[position];
28
27
  if (element) {
@@ -34,7 +33,6 @@ var destroy = function destroy(position) {
34
33
  delete components[position];
35
34
  }
36
35
  };
37
- exports.destroy = destroy;
38
36
  function getComponent(params) {
39
37
  var position = params.position,
40
38
  container = params.container,
@@ -53,7 +51,9 @@ function getComponent(params) {
53
51
  var div = document.createElement('div');
54
52
  div.className = rootClassName || '';
55
53
  elements[position] = div;
56
- target.appendChild(div);
54
+ if (target) {
55
+ target.appendChild(div);
56
+ }
57
57
  _hooks.util.ReactRender( /*#__PURE__*/(0, _jsxRuntime.jsx)(_message.default, {
58
58
  ref: function ref(comp) {
59
59
  if (!comp) return;
@@ -67,5 +67,4 @@ function getComponent(params) {
67
67
  }
68
68
  });
69
69
  }
70
- var _default = _message.default;
71
- exports.default = _default;
70
+ var _default = exports.default = _message.default;
@@ -1,39 +1,40 @@
1
1
  "use strict";
2
2
  'use client';
3
3
 
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");
4
+ 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); }
10
5
  Object.defineProperty(exports, "__esModule", {
11
6
  value: true
12
7
  });
13
8
  exports.default = void 0;
14
- require("core-js/modules/es.array.map.js");
15
- require("core-js/modules/es.array.concat.js");
16
- require("core-js/modules/es.array.filter.js");
17
- require("core-js/modules/web.dom-collections.for-each.js");
18
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
19
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
20
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
21
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
22
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
23
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
24
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
25
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
26
9
  var _react = _interopRequireWildcard(require("react"));
27
10
  var _alert = _interopRequireDefault(require("../alert"));
28
11
  var _classnames = _interopRequireDefault(require("classnames"));
29
12
  var _hooks = require("@sheinx/hooks");
30
13
  var _jsxRuntime = require("react/jsx-runtime");
31
- 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); }
32
- 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; }
33
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
19
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
23
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
24
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
34
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
- 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; }
36
- 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; }
26
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
27
+ 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; }
28
+ 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; }
29
+ 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; }
30
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
31
+ 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); }
32
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
+ 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."); }
34
+ 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); }
35
+ 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; }
36
+ 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; } }
37
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
38
  var getUidStr = _hooks.util.getUidStr,
38
39
  getDataAttribute = _hooks.util.getDataAttribute,
39
40
  produce = _hooks.util.produce;
@@ -45,7 +46,7 @@ var MessagePure = function MessagePure(props) {
45
46
  position = props.position,
46
47
  timeoutMap = props.timeoutMap;
47
48
  var _useState = (0, _react.useState)(timeoutMap),
48
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
49
+ _useState2 = _slicedToArray(_useState, 2),
49
50
  timeoutByIdMap = _useState2[0],
50
51
  setTimeoutByIdMap = _useState2[1];
51
52
  (0, _react.useEffect)(function () {
@@ -53,7 +54,7 @@ var MessagePure = function MessagePure(props) {
53
54
  }, [Object.keys(timeoutMap).length]);
54
55
 
55
56
  // hooks
56
- var styles = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$message = jssStyle.message) === null || _jssStyle$message === void 0 ? void 0 : _jssStyle$message.call(jssStyle);
57
+ var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$message = jssStyle.message) === null || _jssStyle$message === void 0 ? void 0 : _jssStyle$message.call(jssStyle);
57
58
  var handleClassName = function handleClassName(position, closeMsg) {
58
59
  return (0, _classnames.default)(styles === null || styles === void 0 ? void 0 : styles.item, closeMsg ? styles === null || styles === void 0 ? void 0 : styles.itemDismissed : styles === null || styles === void 0 ? void 0 : styles.itemShow);
59
60
  };
@@ -109,7 +110,7 @@ var MessagePure = function MessagePure(props) {
109
110
  props.onClose(id, dismissDuration, props.cachedHeight[id]);
110
111
  }, duration * 1000);
111
112
  setTimeoutByIdMap(function (prev) {
112
- return _objectSpread(_objectSpread({}, prev), {}, (0, _defineProperty2.default)({}, id, closeTimeDelay));
113
+ return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, id, closeTimeDelay));
113
114
  });
114
115
  }
115
116
  },
@@ -141,24 +142,24 @@ var MessagePure = function MessagePure(props) {
141
142
  }));
142
143
  };
143
144
  var Message = /*#__PURE__*/function (_React$PureComponent) {
144
- (0, _inherits2.default)(Message, _React$PureComponent);
145
+ _inherits(Message, _React$PureComponent);
145
146
  var _super = _createSuper(Message);
146
147
  function Message(props) {
147
148
  var _this;
148
- (0, _classCallCheck2.default)(this, Message);
149
+ _classCallCheck(this, Message);
149
150
  _this = _super.call(this, props);
150
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "cachedHeight", void 0);
151
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "timeoutMap", void 0);
151
+ _defineProperty(_assertThisInitialized(_this), "cachedHeight", void 0);
152
+ _defineProperty(_assertThisInitialized(_this), "timeoutMap", void 0);
152
153
  _this.state = {
153
154
  messages: []
154
155
  };
155
156
  _this.cachedHeight = {};
156
157
  _this.timeoutMap = {};
157
- _this.removeMessage = _this.removeMessage.bind((0, _assertThisInitialized2.default)(_this));
158
- _this.closeMessageForAnimation = _this.closeMessageForAnimation.bind((0, _assertThisInitialized2.default)(_this));
158
+ _this.removeMessage = _this.removeMessage.bind(_assertThisInitialized(_this));
159
+ _this.closeMessageForAnimation = _this.closeMessageForAnimation.bind(_assertThisInitialized(_this));
159
160
  return _this;
160
161
  }
161
- (0, _createClass2.default)(Message, [{
162
+ _createClass(Message, [{
162
163
  key: "addMessage",
163
164
  value: function addMessage(msg) {
164
165
  var _this2 = this;
@@ -190,7 +191,7 @@ var Message = /*#__PURE__*/function (_React$PureComponent) {
190
191
  });
191
192
  if (messages.length === 0) {
192
193
  var _this$props$onDestroy, _this$props;
193
- (_this$props$onDestroy = (_this$props = this.props).onDestroy) === null || _this$props$onDestroy === void 0 ? void 0 : _this$props$onDestroy.call(_this$props);
194
+ (_this$props$onDestroy = (_this$props = this.props).onDestroy) === null || _this$props$onDestroy === void 0 || _this$props$onDestroy.call(_this$props);
194
195
  } else {
195
196
  this.setState({
196
197
  messages: messages
@@ -203,14 +204,16 @@ var Message = /*#__PURE__*/function (_React$PureComponent) {
203
204
  value: function closeMessageForAnimation(id, duration, msgHeight) {
204
205
  var _this3 = this;
205
206
  // duration animation duration time
206
- this.setState(produce(function (state) {
207
- state.messages.forEach(function (m) {
208
- if (m.id === id) {
209
- m.dismiss = true;
210
- m.h = msgHeight || 0;
211
- }
207
+ this.setState(function (preState) {
208
+ return produce(preState, function (state) {
209
+ state.messages.forEach(function (m) {
210
+ if (m.id === id) {
211
+ m.dismiss = true;
212
+ m.h = msgHeight || 0;
213
+ }
214
+ });
212
215
  });
213
- }));
216
+ });
214
217
  setTimeout(function () {
215
218
  _this3.removeMessage(id);
216
219
  }, duration);
@@ -232,5 +235,4 @@ var Message = /*#__PURE__*/function (_React$PureComponent) {
232
235
  }]);
233
236
  return Message;
234
237
  }(_react.default.PureComponent);
235
- var _default = Message;
236
- exports.default = _default;
238
+ var _default = exports.default = Message;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  "use client";
3
3
 
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -31,4 +30,5 @@ Object.defineProperty(exports, "default", {
31
30
  });
32
31
  var _modal = _interopRequireDefault(require("./modal"));
33
32
  var _modalFunc = _interopRequireDefault(require("./modal-func"));
34
- var _modalSubmit = _interopRequireDefault(require("./modal-submit"));
33
+ var _modalSubmit = _interopRequireDefault(require("./modal-submit"));
34
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,21 +1,10 @@
1
1
  "use strict";
2
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");
3
+ 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); }
11
4
  Object.defineProperty(exports, "__esModule", {
12
5
  value: true
13
6
  });
14
7
  exports.default = void 0;
15
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
- require("core-js/modules/es.array.includes.js");
18
- require("core-js/modules/es.array.concat.js");
19
8
  var _classnames = _interopRequireDefault(require("classnames"));
20
9
  var _react = _interopRequireWildcard(require("react"));
21
10
  var _alertIcon = _interopRequireWildcard(require("../alert/alert-icon"));
@@ -23,10 +12,20 @@ var _icons = _interopRequireDefault(require("../icons"));
23
12
  var _hooks = require("@sheinx/hooks");
24
13
  var _formFooterContext = require("../form/form-footer-context");
25
14
  var _jsxRuntime = require("react/jsx-runtime");
26
- 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); }
27
- 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; }
28
- 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; }
29
- 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; }
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
+ 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; }
19
+ 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; }
20
+ 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; }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
22
+ 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); }
23
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
24
+ 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."); }
25
+ 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); }
26
+ 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; }
27
+ 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; } }
28
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
30
29
  var hasMask = false;
31
30
  var mousePosition = null;
32
31
  var getClickPosition = function getClickPosition(e) {
@@ -43,7 +42,7 @@ if (_hooks.util.isBrowser()) {
43
42
  }
44
43
  var Modal = function Modal(props) {
45
44
  var _props$jssStyle, _props$jssStyle$modal;
46
- var modalClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 ? void 0 : (_props$jssStyle$modal = _props$jssStyle.modal) === null || _props$jssStyle$modal === void 0 ? void 0 : _props$jssStyle$modal.call(_props$jssStyle);
45
+ var modalClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$modal = _props$jssStyle.modal) === null || _props$jssStyle$modal === void 0 ? void 0 : _props$jssStyle$modal.call(_props$jssStyle);
47
46
  var panelRef = (0, _react.useRef)(null);
48
47
  var isPositionX = ['left', 'right'].includes(props.position || '');
49
48
  var isPositionY = ['top', 'bottom'].includes(props.position || '');
@@ -61,7 +60,7 @@ var Modal = function Modal(props) {
61
60
  var width = style.width || props.width || defaultWidth;
62
61
  var height = style.height || props.height;
63
62
  var _useState = (0, _react.useState)(''),
64
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
63
+ _useState2 = _slicedToArray(_useState, 2),
65
64
  origin = _useState2[0],
66
65
  setOrigin = _useState2[1];
67
66
  var _useRef = (0, _react.useRef)({
@@ -72,11 +71,11 @@ var Modal = function Modal(props) {
72
71
  }),
73
72
  context = _useRef.current;
74
73
  var _useState3 = (0, _react.useState)(props.visible || props.autoShow),
75
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
74
+ _useState4 = _slicedToArray(_useState3, 2),
76
75
  animation = _useState4[0],
77
76
  setAnimation = _useState4[1];
78
77
  var _useState5 = (0, _react.useState)(props.visible || props.autoShow),
79
- _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
78
+ _useState6 = _slicedToArray(_useState5, 2),
80
79
  visible = _useState6[0],
81
80
  setVisible = _useState6[1];
82
81
  var moveInfo = (0, _hooks.useDragMove)();
@@ -128,7 +127,7 @@ var Modal = function Modal(props) {
128
127
  setVisible(false);
129
128
  setAnimation(true);
130
129
  }
131
- (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
130
+ (_props$onClose = props.onClose) === null || _props$onClose === void 0 || _props$onClose.call(props);
132
131
  });
133
132
  var handleMaskClick = function handleMaskClick(e) {
134
133
  if (e.currentTarget !== e.target) return;
@@ -169,16 +168,16 @@ var Modal = function Modal(props) {
169
168
  (0, _react.useEffect)(function () {
170
169
  var _props$shouldDestroy;
171
170
  // notify parent destroy
172
- (_props$shouldDestroy = props.shouldDestroy) === null || _props$shouldDestroy === void 0 ? void 0 : _props$shouldDestroy.call(props, canDestroy);
171
+ (_props$shouldDestroy = props.shouldDestroy) === null || _props$shouldDestroy === void 0 || _props$shouldDestroy.call(props, canDestroy);
173
172
  }, [canDestroy]);
174
173
  (0, _react.useEffect)(function () {
175
174
  // unmount
176
175
  return function () {
177
176
  var _props$shouldDestroy2;
178
- (_props$shouldDestroy2 = props.shouldDestroy) === null || _props$shouldDestroy2 === void 0 ? void 0 : _props$shouldDestroy2.call(props, true);
177
+ (_props$shouldDestroy2 = props.shouldDestroy) === null || _props$shouldDestroy2 === void 0 || _props$shouldDestroy2.call(props, true);
179
178
  if (props.autoShow) {
180
179
  var _props$onClose2;
181
- (_props$onClose2 = props.onClose) === null || _props$onClose2 === void 0 ? void 0 : _props$onClose2.call(props);
180
+ (_props$onClose2 = props.onClose) === null || _props$onClose2 === void 0 || _props$onClose2.call(props);
182
181
  }
183
182
  if (context.isMask) {
184
183
  context.isMask = false;
@@ -207,7 +206,7 @@ var Modal = function Modal(props) {
207
206
  }), showCloseIcon && !props.hideClose && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
208
207
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerClose,
209
208
  onClick: handleClose,
210
- children: _icons.default === null || _icons.default === void 0 ? void 0 : _icons.default.Close
209
+ children: _icons.default.modal.Close
211
210
  })]
212
211
  });
213
212
  };
@@ -294,5 +293,4 @@ var Modal = function Modal(props) {
294
293
  })
295
294
  });
296
295
  };
297
- var _default = Modal;
298
- exports.default = _default;
296
+ var _default = exports.default = Modal;
@@ -1,7 +1,7 @@
1
1
  import type { ModalJssStyle } from './modal.type';
2
2
  import type { ModalOptions } from './modal-func.type';
3
3
  export declare const closeAll: () => void;
4
- declare type MethodType = 'info' | 'warning' | 'error' | 'confirm' | 'show' | 'success';
4
+ type MethodType = 'info' | 'warning' | 'error' | 'confirm' | 'show' | 'success';
5
5
  declare const _default: {
6
6
  type: (type: MethodType, jssStyle: ModalJssStyle) => (options: Omit<ModalOptions, "jssStyle">) => void;
7
7
  closeAll: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"modal-func.d.ts","sourceRoot":"","sources":["modal-func.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWtD,eAAO,MAAM,QAAQ,YAIpB,CAAC;AA8CF,aAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;;;;;AA2DhF,wBAGE"}
1
+ {"version":3,"file":"modal-func.d.ts","sourceRoot":"","sources":["modal-func.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAYtD,eAAO,MAAM,QAAQ,YAIpB,CAAC;AA8CF,KAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;;;;;AA4DhF,wBAGE"}
@@ -1,18 +1,10 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.array.filter.js");
4
- require("core-js/modules/es.object.get-own-property-descriptors.js");
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
+ 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); }
6
4
  Object.defineProperty(exports, "__esModule", {
7
5
  value: true
8
6
  });
9
7
  exports.default = exports.closeAll = void 0;
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
- require("core-js/modules/es.array.iterator.js");
13
- require("core-js/modules/es.set.js");
14
- require("core-js/modules/web.dom-collections.iterator.js");
15
- require("core-js/modules/web.dom-collections.for-each.js");
16
8
  var _react = require("react");
17
9
  var _hooks = require("@sheinx/hooks");
18
10
  var _modalContent = _interopRequireDefault(require("./modal-content"));
@@ -20,22 +12,32 @@ var _button = _interopRequireDefault(require("../button/button"));
20
12
  var _config = require("../config");
21
13
  var _useContainer = require("../absolute-list/use-container");
22
14
  var _jsxRuntime = require("react/jsx-runtime");
23
- 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; }
24
- 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; }
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ 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; }
17
+ 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; }
18
+ 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; }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
20
+ 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); }
21
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
22
+ 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."); }
23
+ 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); }
24
+ 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; }
25
+ 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; } }
26
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
27
  var modals = new Set();
26
28
  var destroy = function destroy(root) {
29
+ if (!root) return;
27
30
  _hooks.util.ReactUnmount(root);
28
31
  if (root && root.parentElement) {
29
32
  root.parentElement.removeChild(root);
30
33
  }
31
34
  modals.delete(root);
32
35
  };
33
- var closeAll = function closeAll() {
36
+ var closeAll = exports.closeAll = function closeAll() {
34
37
  modals.forEach(function (modal) {
35
38
  destroy(modal);
36
39
  });
37
40
  };
38
- exports.closeAll = closeAll;
39
41
  var closeCallback = function closeCallback(fn, close, setLoading) {
40
42
  return function () {
41
43
  var callback;
@@ -56,7 +58,7 @@ var LoadingOk = function LoadingOk(props) {
56
58
  var _useConfig = (0, _config.useConfig)(),
57
59
  locale = _useConfig.locale;
58
60
  var _useState = (0, _react.useState)(false),
59
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
61
+ _useState2 = _slicedToArray(_useState, 2),
60
62
  loading = _useState2[0],
61
63
  setLoading = _useState2[1];
62
64
  var callback = closeCallback(props.onOk, props.destroy, setLoading);
@@ -88,6 +90,7 @@ var method = function method(type, jssStyle) {
88
90
  var root = (0, _useContainer.getRoot)({
89
91
  container: options.container
90
92
  });
93
+ if (!root) return;
91
94
  var destroyModal = function destroyModal() {
92
95
  destroy(root);
93
96
  };
@@ -123,8 +126,7 @@ var method = function method(type, jssStyle) {
123
126
  _hooks.util.ReactRender(Content, root);
124
127
  };
125
128
  };
126
- var _default = {
129
+ var _default = exports.default = {
127
130
  type: method,
128
131
  closeAll: closeAll
129
- };
130
- exports.default = _default;
132
+ };