@sheinx/base 3.0.0-rc.2 → 3.0.0-rc.5

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 (930) 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.d.ts.map +1 -1
  58. package/cjs/checkbox/checkbox.js +19 -14
  59. package/cjs/checkbox/group-context.d.ts +1 -1
  60. package/cjs/checkbox/group-context.d.ts.map +1 -1
  61. package/cjs/checkbox/group-context.js +1 -2
  62. package/cjs/checkbox/index.js +2 -2
  63. package/cjs/checkbox/simple-checkbox.js +12 -12
  64. package/cjs/checkbox/use-checkbox-inputable.js +10 -7
  65. package/cjs/collapse/collapse-item.js +10 -15
  66. package/cjs/collapse/collapse.js +3 -4
  67. package/cjs/collapse/group-context.d.ts +1 -1
  68. package/cjs/collapse/group-context.d.ts.map +1 -1
  69. package/cjs/collapse/group-context.js +1 -2
  70. package/cjs/collapse/index.js +2 -2
  71. package/cjs/common/use-clear.js +2 -3
  72. package/cjs/common/use-inner-title.js +13 -12
  73. package/cjs/common/use-tip.js +8 -9
  74. package/cjs/common/use-with-form-config.js +8 -11
  75. package/cjs/config/index.d.ts +1 -4
  76. package/cjs/config/index.d.ts.map +1 -1
  77. package/cjs/config/index.js +20 -20
  78. package/cjs/config/locale/Props.d.ts +4 -4
  79. package/cjs/config/locale/Props.d.ts.map +1 -1
  80. package/cjs/config/locale/en_US.js +2 -3
  81. package/cjs/config/locale/index.js +3 -3
  82. package/cjs/config/locale/zh-CN.js +2 -3
  83. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  84. package/cjs/date-picker/date-picker.js +26 -27
  85. package/cjs/date-picker/date-picker.type.d.ts +2 -2
  86. package/cjs/date-picker/date-picker.type.d.ts.map +1 -1
  87. package/cjs/date-picker/day.js +15 -21
  88. package/cjs/date-picker/index.js +2 -2
  89. package/cjs/date-picker/month.js +5 -9
  90. package/cjs/date-picker/month.type.d.ts +1 -1
  91. package/cjs/date-picker/month.type.d.ts.map +1 -1
  92. package/cjs/date-picker/picker.js +9 -11
  93. package/cjs/date-picker/pickerTitle.js +2 -3
  94. package/cjs/date-picker/quarter.js +5 -9
  95. package/cjs/date-picker/quarter.type.d.ts +1 -1
  96. package/cjs/date-picker/quarter.type.d.ts.map +1 -1
  97. package/cjs/date-picker/quick.js +3 -5
  98. package/cjs/date-picker/result.js +17 -17
  99. package/cjs/date-picker/time.js +7 -12
  100. package/cjs/date-picker/year.js +5 -9
  101. package/cjs/date-picker/year.type.d.ts +1 -1
  102. package/cjs/date-picker/year.type.d.ts.map +1 -1
  103. package/cjs/descriptions/descriptions.js +11 -18
  104. package/cjs/descriptions/descriptions.type.d.ts +1 -1
  105. package/cjs/descriptions/descriptions.type.d.ts.map +1 -1
  106. package/cjs/descriptions/index.js +2 -2
  107. package/cjs/divider/divider.js +3 -4
  108. package/cjs/divider/index.js +2 -2
  109. package/cjs/dropdown/Item.js +23 -27
  110. package/cjs/dropdown/dropdown.js +8 -9
  111. package/cjs/dropdown/dropdown.type.d.ts +5 -5
  112. package/cjs/dropdown/dropdown.type.d.ts.map +1 -1
  113. package/cjs/dropdown/dropdown.type.js +2 -2
  114. package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
  115. package/cjs/dropdown/dropdownIn.js +11 -14
  116. package/cjs/dropdown/index.d.ts +1 -1
  117. package/cjs/dropdown/index.d.ts.map +1 -1
  118. package/cjs/dropdown/index.js +2 -2
  119. package/cjs/editable-area/editable-area.d.ts.map +1 -1
  120. package/cjs/editable-area/editable-area.js +21 -22
  121. package/cjs/editable-area/index.js +2 -2
  122. package/cjs/empty/empty-image.js +2 -3
  123. package/cjs/empty/empty.js +12 -13
  124. package/cjs/empty/index.js +2 -2
  125. package/cjs/form/error-trans.js +2 -6
  126. package/cjs/form/form-button.js +8 -9
  127. package/cjs/form/form-field.js +2 -4
  128. package/cjs/form/form-field.type.d.ts +1 -1
  129. package/cjs/form/form-field.type.d.ts.map +1 -1
  130. package/cjs/form/form-fieldset.js +2 -8
  131. package/cjs/form/form-flow.js +1 -2
  132. package/cjs/form/form-footer-context.js +14 -16
  133. package/cjs/form/form-item.js +13 -14
  134. package/cjs/form/form.d.ts +1 -1
  135. package/cjs/form/form.d.ts.map +1 -1
  136. package/cjs/form/form.js +18 -21
  137. package/cjs/form/form.type.d.ts +7 -0
  138. package/cjs/form/form.type.d.ts.map +1 -1
  139. package/cjs/form/form.type.js +1 -2
  140. package/cjs/form/index.js +2 -2
  141. package/cjs/gap/gap.js +9 -11
  142. package/cjs/gap/index.js +2 -2
  143. package/cjs/grid/grid.js +13 -19
  144. package/cjs/grid/grid.type.d.ts +1 -1
  145. package/cjs/grid/grid.type.d.ts.map +1 -1
  146. package/cjs/grid/index.js +2 -2
  147. package/cjs/grid/util.d.ts +1 -1
  148. package/cjs/grid/util.d.ts.map +1 -1
  149. package/cjs/grid/util.js +0 -3
  150. package/cjs/icon/icon.js +12 -14
  151. package/cjs/icon/icon.type.d.ts +1 -1
  152. package/cjs/icon/icon.type.d.ts.map +1 -1
  153. package/cjs/icon/index.js +2 -2
  154. package/cjs/icons/config.d.ts +144 -0
  155. package/cjs/icons/config.d.ts.map +1 -0
  156. package/cjs/icons/config.js +164 -0
  157. package/cjs/icons/icons.d.ts +46 -0
  158. package/cjs/icons/icons.d.ts.map +1 -0
  159. package/cjs/icons/icons.js +184 -0
  160. package/cjs/icons/index.d.ts +1 -47
  161. package/cjs/icons/index.d.ts.map +1 -1
  162. package/cjs/icons/index.js +14 -187
  163. package/cjs/image/image-event.js +3 -4
  164. package/cjs/image/image-gallery.js +14 -15
  165. package/cjs/image/image-group.d.ts.map +1 -1
  166. package/cjs/image/image-group.js +16 -22
  167. package/cjs/image/image-magnify.js +10 -11
  168. package/cjs/image/image.js +19 -23
  169. package/cjs/image/image.type.d.ts +4 -4
  170. package/cjs/image/image.type.d.ts.map +1 -1
  171. package/cjs/image/index.js +2 -2
  172. package/cjs/index.d.ts +1 -1
  173. package/cjs/index.d.ts.map +1 -1
  174. package/cjs/index.js +4 -6
  175. package/cjs/input/index.js +2 -2
  176. package/cjs/input/input-group.js +26 -27
  177. package/cjs/input/input-number.js +16 -16
  178. package/cjs/input/input-number.type.d.ts +1 -1
  179. package/cjs/input/input-number.type.d.ts.map +1 -1
  180. package/cjs/input/input-password.js +10 -11
  181. package/cjs/input/input.js +8 -10
  182. package/cjs/input/input.type.d.ts +1 -1
  183. package/cjs/input/input.type.d.ts.map +1 -1
  184. package/cjs/input/simple-input.js +16 -16
  185. package/cjs/input/use-input-common.d.ts +1 -1
  186. package/cjs/input/use-input-common.js +22 -22
  187. package/cjs/list/base-item.js +14 -15
  188. package/cjs/list/index.js +2 -2
  189. package/cjs/list/list.d.ts.map +1 -1
  190. package/cjs/list/list.js +16 -21
  191. package/cjs/menu/index.js +2 -2
  192. package/cjs/menu/item.d.ts.map +1 -1
  193. package/cjs/menu/item.js +11 -13
  194. package/cjs/menu/menu.js +16 -13
  195. package/cjs/menu/menu.type.d.ts +2 -2
  196. package/cjs/menu/menu.type.d.ts.map +1 -1
  197. package/cjs/menu/scroll.js +10 -6
  198. package/cjs/menu/scrollbar.js +3 -4
  199. package/cjs/message/func.js +2 -4
  200. package/cjs/message/func.type.d.ts +2 -2
  201. package/cjs/message/func.type.d.ts.map +1 -1
  202. package/cjs/message/index.js +2 -2
  203. package/cjs/message/manager.d.ts.map +1 -1
  204. package/cjs/message/manager.js +6 -7
  205. package/cjs/message/message.js +45 -43
  206. package/cjs/modal/index.js +2 -2
  207. package/cjs/modal/modal-content.js +25 -27
  208. package/cjs/modal/modal-func.d.ts +1 -1
  209. package/cjs/modal/modal-func.d.ts.map +1 -1
  210. package/cjs/modal/modal-func.js +19 -17
  211. package/cjs/modal/modal-submit.js +10 -11
  212. package/cjs/modal/modal.js +15 -11
  213. package/cjs/modal/modal.type.d.ts +1 -1
  214. package/cjs/modal/modal.type.d.ts.map +1 -1
  215. package/cjs/modal/use-modal-move.js +15 -12
  216. package/cjs/modal/use-modal-resize.js +9 -6
  217. package/cjs/pagination/index.js +2 -2
  218. package/cjs/pagination/pagination-button.js +11 -12
  219. package/cjs/pagination/pagination-buttons.js +20 -17
  220. package/cjs/pagination/pagination-buttons.type.d.ts +2 -2
  221. package/cjs/pagination/pagination-buttons.type.d.ts.map +1 -1
  222. package/cjs/pagination/pagination-jumper.js +10 -8
  223. package/cjs/pagination/pagination-next.d.ts.map +1 -1
  224. package/cjs/pagination/pagination-next.js +4 -5
  225. package/cjs/pagination/pagination-prev.d.ts.map +1 -1
  226. package/cjs/pagination/pagination-prev.js +4 -5
  227. package/cjs/pagination/pagination-simple.js +2 -3
  228. package/cjs/pagination/pagination-size-list.js +3 -5
  229. package/cjs/pagination/pagination.d.ts.map +1 -1
  230. package/cjs/pagination/pagination.js +10 -13
  231. package/cjs/pagination/pagination.type.d.ts +2 -2
  232. package/cjs/pagination/pagination.type.d.ts.map +1 -1
  233. package/cjs/popover/confirm.js +24 -23
  234. package/cjs/popover/confirm.type.d.ts +2 -2
  235. package/cjs/popover/confirm.type.d.ts.map +1 -1
  236. package/cjs/popover/index.js +2 -2
  237. package/cjs/popover/popover.js +14 -19
  238. package/cjs/progress/analyzeColor.js +2 -4
  239. package/cjs/progress/circle.js +5 -8
  240. package/cjs/progress/index.js +2 -2
  241. package/cjs/progress/line-popup.js +8 -8
  242. package/cjs/progress/line.js +5 -8
  243. package/cjs/progress/progress.js +8 -9
  244. package/cjs/radio/group-context.d.ts +1 -1
  245. package/cjs/radio/group-context.d.ts.map +1 -1
  246. package/cjs/radio/group-context.js +1 -2
  247. package/cjs/radio/index.js +2 -2
  248. package/cjs/radio/radio-group.js +9 -11
  249. package/cjs/radio/radio.js +12 -12
  250. package/cjs/radio/simple-radio.js +12 -12
  251. package/cjs/rate/index.js +2 -2
  252. package/cjs/rate/rate.js +16 -17
  253. package/cjs/select/index.js +2 -2
  254. package/cjs/select/list-columns-option.js +3 -4
  255. package/cjs/select/list-columns.js +3 -9
  256. package/cjs/select/list-option.js +11 -9
  257. package/cjs/select/list-tree.js +3 -4
  258. package/cjs/select/list.js +23 -20
  259. package/cjs/select/result-input.js +6 -13
  260. package/cjs/select/result-more.js +17 -19
  261. package/cjs/select/result.d.ts.map +1 -1
  262. package/cjs/select/result.js +21 -25
  263. package/cjs/select/result.type.d.ts +1 -1
  264. package/cjs/select/result.type.d.ts.map +1 -1
  265. package/cjs/select/select.js +45 -43
  266. package/cjs/select/select.type.d.ts +6 -6
  267. package/cjs/select/select.type.d.ts.map +1 -1
  268. package/cjs/slider/index.js +2 -2
  269. package/cjs/slider/slider.js +9 -11
  270. package/cjs/spin/base.js +9 -11
  271. package/cjs/spin/index.js +2 -2
  272. package/cjs/spin/spin.js +11 -12
  273. package/cjs/spin/spin.type.d.ts +2 -2
  274. package/cjs/spin/spin.type.d.ts.map +1 -1
  275. package/cjs/spin/spins.js +25 -27
  276. package/cjs/spin/utils.js +2 -4
  277. package/cjs/steps/index.js +2 -2
  278. package/cjs/steps/step.arrow.d.ts.map +1 -1
  279. package/cjs/steps/step.arrow.js +8 -7
  280. package/cjs/steps/step.default.d.ts.map +1 -1
  281. package/cjs/steps/step.default.js +13 -11
  282. package/cjs/steps/step.dot.d.ts.map +1 -1
  283. package/cjs/steps/step.dot.js +11 -9
  284. package/cjs/steps/step.js +13 -15
  285. package/cjs/steps/steps-context.js +1 -2
  286. package/cjs/steps/steps.js +9 -8
  287. package/cjs/steps/steps.type.d.ts +3 -3
  288. package/cjs/steps/steps.type.d.ts.map +1 -1
  289. package/cjs/sticky/index.js +2 -2
  290. package/cjs/sticky/sticky.d.ts.map +1 -1
  291. package/cjs/sticky/sticky.js +61 -58
  292. package/cjs/sticky/sticky.type.d.ts +5 -1
  293. package/cjs/sticky/sticky.type.d.ts.map +1 -1
  294. package/cjs/switch/index.js +2 -2
  295. package/cjs/switch/switch.js +16 -12
  296. package/cjs/table/colgroup.js +1 -3
  297. package/cjs/table/index.js +2 -2
  298. package/cjs/table/table.js +15 -19
  299. package/cjs/table/table.type.d.ts +7 -7
  300. package/cjs/table/table.type.d.ts.map +1 -1
  301. package/cjs/table/tbody.js +3 -5
  302. package/cjs/table/tbody.type.d.ts +2 -2
  303. package/cjs/table/tbody.type.d.ts.map +1 -1
  304. package/cjs/table/temp/01-base.d.ts.map +1 -1
  305. package/cjs/table/temp/01-base.js +22 -14
  306. package/cjs/table/tfoot.js +4 -7
  307. package/cjs/table/thead.js +16 -24
  308. package/cjs/table/thead.type.d.ts +1 -1
  309. package/cjs/table/thead.type.d.ts.map +1 -1
  310. package/cjs/table/tr.js +16 -23
  311. package/cjs/table/use-table-select.js +6 -9
  312. package/cjs/tabs/index.js +2 -2
  313. package/cjs/tabs/tab.js +10 -11
  314. package/cjs/tabs/tabs-header.js +21 -19
  315. package/cjs/tabs/tabs-panel.js +8 -6
  316. package/cjs/tabs/tabs.js +24 -26
  317. package/cjs/tabs/tabs.type.d.ts +2 -2
  318. package/cjs/tabs/tabs.type.d.ts.map +1 -1
  319. package/cjs/tag/index.js +2 -2
  320. package/cjs/tag/tag-input.js +9 -10
  321. package/cjs/tag/tag.js +14 -14
  322. package/cjs/tag/tag.type.d.ts +7 -7
  323. package/cjs/tag/tag.type.d.ts.map +1 -1
  324. package/cjs/tag/use-tag.js +11 -8
  325. package/cjs/textarea/index.js +2 -2
  326. package/cjs/textarea/simple-textarea.js +17 -21
  327. package/cjs/textarea/textarea.js +22 -23
  328. package/cjs/textarea/textarea.type.d.ts +1 -6
  329. package/cjs/textarea/textarea.type.d.ts.map +1 -1
  330. package/cjs/textarea/use-auto-size.js +13 -12
  331. package/cjs/tooltip/index.js +2 -2
  332. package/cjs/tooltip/tooltip.js +11 -16
  333. package/cjs/transfer/index.js +2 -2
  334. package/cjs/transfer/transfer-list-header.d.ts.map +1 -1
  335. package/cjs/transfer/transfer-list-header.js +9 -10
  336. package/cjs/transfer/transfer-list-item.d.ts.map +1 -1
  337. package/cjs/transfer/transfer-list-item.js +7 -6
  338. package/cjs/transfer/transfer-list.js +13 -14
  339. package/cjs/transfer/transfer-operate.js +2 -4
  340. package/cjs/transfer/transfer.js +11 -10
  341. package/cjs/transfer/transfer.type.d.ts +2 -2
  342. package/cjs/transfer/transfer.type.d.ts.map +1 -1
  343. package/cjs/tree/index.js +2 -2
  344. package/cjs/tree/tree-checkbox.d.ts +2 -1
  345. package/cjs/tree/tree-checkbox.d.ts.map +1 -1
  346. package/cjs/tree/tree-checkbox.js +4 -3
  347. package/cjs/tree/tree-checkbox.type.d.ts +2 -2
  348. package/cjs/tree/tree-checkbox.type.d.ts.map +1 -1
  349. package/cjs/tree/tree-content.d.ts +2 -1
  350. package/cjs/tree/tree-content.d.ts.map +1 -1
  351. package/cjs/tree/tree-content.js +12 -14
  352. package/cjs/tree/tree-content.type.d.ts +2 -2
  353. package/cjs/tree/tree-content.type.d.ts.map +1 -1
  354. package/cjs/tree/tree-context.d.ts +4 -3
  355. package/cjs/tree/tree-context.d.ts.map +1 -1
  356. package/cjs/tree/tree-context.js +8 -14
  357. package/cjs/tree/tree-context.type.d.ts +2 -2
  358. package/cjs/tree/tree-context.type.d.ts.map +1 -1
  359. package/cjs/tree/tree-list.d.ts +1 -1
  360. package/cjs/tree/tree-list.d.ts.map +1 -1
  361. package/cjs/tree/tree-list.js +4 -4
  362. package/cjs/tree/tree-list.type.d.ts +3 -3
  363. package/cjs/tree/tree-list.type.d.ts.map +1 -1
  364. package/cjs/tree/tree-node.d.ts +1 -1
  365. package/cjs/tree/tree-node.d.ts.map +1 -1
  366. package/cjs/tree/tree-node.js +10 -11
  367. package/cjs/tree/tree-node.type.d.ts +3 -3
  368. package/cjs/tree/tree-node.type.d.ts.map +1 -1
  369. package/cjs/tree/tree-root.d.ts +1 -1
  370. package/cjs/tree/tree-root.d.ts.map +1 -1
  371. package/cjs/tree/tree-root.js +11 -11
  372. package/cjs/tree/tree-root.type.d.ts +3 -3
  373. package/cjs/tree/tree-root.type.d.ts.map +1 -1
  374. package/cjs/tree/tree.d.ts +2 -1
  375. package/cjs/tree/tree.d.ts.map +1 -1
  376. package/cjs/tree/tree.js +19 -21
  377. package/cjs/tree/tree.type.d.ts +4 -4
  378. package/cjs/tree/tree.type.d.ts.map +1 -1
  379. package/cjs/tree-select/index.js +2 -2
  380. package/cjs/tree-select/tree-select.d.ts +1 -1
  381. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  382. package/cjs/tree-select/tree-select.js +33 -35
  383. package/cjs/tree-select/tree-select.type.d.ts +5 -5
  384. package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
  385. package/cjs/upload/button.js +18 -18
  386. package/cjs/upload/button.type.d.ts +1 -1
  387. package/cjs/upload/button.type.d.ts.map +1 -1
  388. package/cjs/upload/drop.js +16 -19
  389. package/cjs/upload/image.js +8 -9
  390. package/cjs/upload/index.js +2 -2
  391. package/cjs/upload/result.js +25 -25
  392. package/cjs/upload/upload.d.ts.map +1 -1
  393. package/cjs/upload/upload.js +12 -22
  394. package/cjs/upload/useInputClick.js +2 -3
  395. package/cjs/virtual-scroll/index.js +2 -2
  396. package/cjs/virtual-scroll/scroll.js +9 -15
  397. package/cjs/virtual-scroll/virtual-scroll-list.js +20 -22
  398. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  399. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  400. package/esm/absolute-list/absolute-context.js +3 -9
  401. package/esm/absolute-list/absolute-list.d.ts +3 -1
  402. package/esm/absolute-list/absolute-list.d.ts.map +1 -1
  403. package/esm/absolute-list/absolute-list.js +20 -34
  404. package/esm/absolute-list/absolute-list.type.d.ts +2 -2
  405. package/esm/absolute-list/absolute-list.type.d.ts.map +1 -1
  406. package/esm/absolute-list/absolute-list.type.js +1 -5
  407. package/esm/absolute-list/index.js +1 -19
  408. package/esm/absolute-list/use-container.js +19 -35
  409. package/esm/alert/alert-icon.js +15 -24
  410. package/esm/alert/alert.js +39 -46
  411. package/esm/alert/alert.type.d.ts +1 -1
  412. package/esm/alert/alert.type.d.ts.map +1 -1
  413. package/esm/alert/alert.type.js +1 -5
  414. package/esm/alert/index.js +1 -19
  415. package/esm/animation-list/animation-list.js +30 -43
  416. package/esm/animation-list/animation-list.type.d.ts +1 -1
  417. package/esm/animation-list/animation-list.type.d.ts.map +1 -1
  418. package/esm/animation-list/animation-list.type.js +1 -5
  419. package/esm/animation-list/index.js +1 -19
  420. package/esm/breadcrumb/breadcrumb.js +35 -39
  421. package/esm/breadcrumb/breadcrumb.type.d.ts +1 -1
  422. package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
  423. package/esm/breadcrumb/breadcrumb.type.js +1 -5
  424. package/esm/breadcrumb/index.js +1 -19
  425. package/esm/breadcrumb/list.js +34 -38
  426. package/esm/button/button-group.js +10 -26
  427. package/esm/button/button-item.js +4 -12
  428. package/esm/button/button.js +26 -32
  429. package/esm/button/button.type.d.ts +1 -1
  430. package/esm/button/button.type.d.ts.map +1 -1
  431. package/esm/button/button.type.js +1 -5
  432. package/esm/button/index.js +2 -26
  433. package/esm/card/card-accordion-context.js +3 -11
  434. package/esm/card/card-accordion.js +23 -26
  435. package/esm/card/card-accordion.type.js +1 -5
  436. package/esm/card/card-body.js +11 -19
  437. package/esm/card/card-body.type.js +1 -5
  438. package/esm/card/card-footer.js +9 -17
  439. package/esm/card/card-footer.type.js +1 -5
  440. package/esm/card/card-header.js +17 -24
  441. package/esm/card/card-header.type.js +1 -5
  442. package/esm/card/card.context.js +3 -10
  443. package/esm/card/card.js +43 -47
  444. package/esm/card/card.type.js +1 -5
  445. package/esm/card/index.js +6 -54
  446. package/esm/card-group/card-group-context.js +3 -9
  447. package/esm/card-group/card-group.js +22 -30
  448. package/esm/card-group/card-group.type.js +1 -5
  449. package/esm/card-group/index.js +2 -26
  450. package/esm/card-group/item.js +18 -30
  451. package/esm/card-group/item.type.js +1 -5
  452. package/esm/card-group/lazyload.js +19 -27
  453. package/esm/carousel/carousel.js +45 -54
  454. package/esm/carousel/carousel.type.d.ts +0 -1
  455. package/esm/carousel/carousel.type.d.ts.map +1 -1
  456. package/esm/carousel/carousel.type.js +1 -5
  457. package/esm/carousel/index.js +1 -19
  458. package/esm/cascader/cascader.d.ts.map +1 -1
  459. package/esm/cascader/cascader.js +118 -127
  460. package/esm/cascader/cascader.type.d.ts +1 -1
  461. package/esm/cascader/cascader.type.d.ts.map +1 -1
  462. package/esm/cascader/cascader.type.js +1 -5
  463. package/esm/cascader/filter-list.js +13 -23
  464. package/esm/cascader/filter-list.type.js +1 -5
  465. package/esm/cascader/filter-node.js +12 -22
  466. package/esm/cascader/filter-node.type.js +1 -5
  467. package/esm/cascader/index.js +1 -19
  468. package/esm/cascader/list.js +9 -18
  469. package/esm/cascader/list.type.js +1 -5
  470. package/esm/cascader/node.d.ts.map +1 -1
  471. package/esm/cascader/node.js +47 -45
  472. package/esm/cascader/node.type.js +1 -5
  473. package/esm/checkbox/checkbox-group.js +21 -29
  474. package/esm/checkbox/checkbox-group.type.js +1 -5
  475. package/esm/checkbox/checkbox.d.ts.map +1 -1
  476. package/esm/checkbox/checkbox.js +33 -35
  477. package/esm/checkbox/checkbox.type.js +1 -5
  478. package/esm/checkbox/group-context.d.ts +1 -1
  479. package/esm/checkbox/group-context.d.ts.map +1 -1
  480. package/esm/checkbox/group-context.js +3 -9
  481. package/esm/checkbox/index.js +2 -26
  482. package/esm/checkbox/simple-checkbox.js +30 -36
  483. package/esm/checkbox/use-checkbox-inputable.js +12 -15
  484. package/esm/collapse/collapse-item.js +28 -41
  485. package/esm/collapse/collapse-item.type.js +1 -5
  486. package/esm/collapse/collapse.js +12 -20
  487. package/esm/collapse/collapse.type.js +1 -5
  488. package/esm/collapse/group-context.d.ts +1 -1
  489. package/esm/collapse/group-context.d.ts.map +1 -1
  490. package/esm/collapse/group-context.js +3 -9
  491. package/esm/collapse/index.js +2 -26
  492. package/esm/common/type.js +1 -5
  493. package/esm/common/use-clear.js +4 -11
  494. package/esm/common/use-inner-title.js +26 -34
  495. package/esm/common/use-tip.js +14 -20
  496. package/esm/common/use-with-form-config.js +10 -19
  497. package/esm/config/index.d.ts +1 -4
  498. package/esm/config/index.d.ts.map +1 -1
  499. package/esm/config/index.js +26 -47
  500. package/esm/config/locale/Props.d.ts +4 -4
  501. package/esm/config/locale/Props.d.ts.map +1 -1
  502. package/esm/config/locale/Props.js +1 -5
  503. package/esm/config/locale/en_US.js +2 -9
  504. package/esm/config/locale/index.js +17 -25
  505. package/esm/config/locale/zh-CN.js +2 -9
  506. package/esm/date-picker/date-picker.d.ts.map +1 -1
  507. package/esm/date-picker/date-picker.js +65 -74
  508. package/esm/date-picker/date-picker.type.d.ts +2 -2
  509. package/esm/date-picker/date-picker.type.d.ts.map +1 -1
  510. package/esm/date-picker/date-picker.type.js +1 -5
  511. package/esm/date-picker/day.js +74 -85
  512. package/esm/date-picker/day.type.js +1 -5
  513. package/esm/date-picker/index.js +1 -19
  514. package/esm/date-picker/month.js +32 -42
  515. package/esm/date-picker/month.type.d.ts +1 -1
  516. package/esm/date-picker/month.type.d.ts.map +1 -1
  517. package/esm/date-picker/month.type.js +1 -5
  518. package/esm/date-picker/picker.js +30 -38
  519. package/esm/date-picker/picker.type.js +1 -5
  520. package/esm/date-picker/pickerTitle.js +8 -15
  521. package/esm/date-picker/quarter.js +31 -41
  522. package/esm/date-picker/quarter.type.d.ts +1 -1
  523. package/esm/date-picker/quarter.type.d.ts.map +1 -1
  524. package/esm/date-picker/quarter.type.js +1 -5
  525. package/esm/date-picker/quick.js +13 -22
  526. package/esm/date-picker/quick.type.js +1 -5
  527. package/esm/date-picker/result.js +43 -52
  528. package/esm/date-picker/time.js +33 -47
  529. package/esm/date-picker/time.type.js +1 -5
  530. package/esm/date-picker/year.js +34 -44
  531. package/esm/date-picker/year.type.d.ts +1 -1
  532. package/esm/date-picker/year.type.d.ts.map +1 -1
  533. package/esm/date-picker/year.type.js +1 -5
  534. package/esm/descriptions/descriptions.js +35 -50
  535. package/esm/descriptions/descriptions.type.d.ts +1 -1
  536. package/esm/descriptions/descriptions.type.d.ts.map +1 -1
  537. package/esm/descriptions/descriptions.type.js +1 -5
  538. package/esm/descriptions/index.js +1 -19
  539. package/esm/divider/divider.js +7 -15
  540. package/esm/divider/divider.type.js +1 -5
  541. package/esm/divider/index.js +1 -19
  542. package/esm/dropdown/Item.js +30 -41
  543. package/esm/dropdown/dropdown.js +11 -19
  544. package/esm/dropdown/dropdown.type.d.ts +5 -5
  545. package/esm/dropdown/dropdown.type.d.ts.map +1 -1
  546. package/esm/dropdown/dropdown.type.js +10 -3
  547. package/esm/dropdown/dropdownIn.d.ts.map +1 -1
  548. package/esm/dropdown/dropdownIn.js +39 -48
  549. package/esm/dropdown/index.d.ts +1 -1
  550. package/esm/dropdown/index.d.ts.map +1 -1
  551. package/esm/dropdown/index.js +1 -19
  552. package/esm/editable-area/editable-area.d.ts.map +1 -1
  553. package/esm/editable-area/editable-area.js +44 -53
  554. package/esm/editable-area/editable-area.type.js +1 -5
  555. package/esm/editable-area/index.js +1 -19
  556. package/esm/empty/empty-image.js +43 -49
  557. package/esm/empty/empty.js +28 -35
  558. package/esm/empty/empty.type.js +1 -5
  559. package/esm/empty/index.js +1 -19
  560. package/esm/form/error-trans.js +11 -21
  561. package/esm/form/form-button.js +16 -24
  562. package/esm/form/form-field.js +9 -18
  563. package/esm/form/form-field.type.d.ts +1 -1
  564. package/esm/form/form-field.type.d.ts.map +1 -1
  565. package/esm/form/form-field.type.js +1 -5
  566. package/esm/form/form-fieldset.js +17 -29
  567. package/esm/form/form-fieldset.type.js +1 -5
  568. package/esm/form/form-flow.js +4 -11
  569. package/esm/form/form-flow.type.js +1 -5
  570. package/esm/form/form-footer-context.js +21 -31
  571. package/esm/form/form-item.js +30 -37
  572. package/esm/form/form-item.type.js +1 -5
  573. package/esm/form/form.d.ts +1 -1
  574. package/esm/form/form.d.ts.map +1 -1
  575. package/esm/form/form.js +31 -43
  576. package/esm/form/form.type.d.ts +7 -0
  577. package/esm/form/form.type.d.ts.map +1 -1
  578. package/esm/form/form.type.js +1 -8
  579. package/esm/form/index.js +6 -54
  580. package/esm/gap/gap.js +17 -26
  581. package/esm/gap/gap.type.js +1 -5
  582. package/esm/gap/index.js +1 -19
  583. package/esm/gap/support.js +1 -7
  584. package/esm/grid/grid.js +19 -34
  585. package/esm/grid/grid.type.d.ts +1 -1
  586. package/esm/grid/grid.type.d.ts.map +1 -1
  587. package/esm/grid/grid.type.js +1 -5
  588. package/esm/grid/index.js +1 -19
  589. package/esm/grid/util.d.ts +1 -1
  590. package/esm/grid/util.d.ts.map +1 -1
  591. package/esm/grid/util.js +7 -16
  592. package/esm/icon/icon.js +22 -31
  593. package/esm/icon/icon.type.d.ts +1 -1
  594. package/esm/icon/icon.type.d.ts.map +1 -1
  595. package/esm/icon/icon.type.js +1 -5
  596. package/esm/icon/index.js +1 -19
  597. package/esm/icons/config.d.ts +144 -0
  598. package/esm/icons/config.d.ts.map +1 -0
  599. package/esm/icons/config.js +157 -0
  600. package/esm/icons/icons.d.ts +46 -0
  601. package/esm/icons/icons.d.ts.map +1 -0
  602. package/esm/icons/icons.js +177 -0
  603. package/esm/icons/index.d.ts +1 -47
  604. package/esm/icons/index.d.ts.map +1 -1
  605. package/esm/icons/index.js +1 -194
  606. package/esm/image/image-event.js +10 -18
  607. package/esm/image/image-gallery.js +31 -37
  608. package/esm/image/image-group.d.ts.map +1 -1
  609. package/esm/image/image-group.js +30 -44
  610. package/esm/image/image-group.type.js +1 -5
  611. package/esm/image/image-magnify.js +17 -23
  612. package/esm/image/image.js +51 -63
  613. package/esm/image/image.type.d.ts +4 -4
  614. package/esm/image/image.type.d.ts.map +1 -1
  615. package/esm/image/image.type.js +1 -5
  616. package/esm/image/index.js +2 -26
  617. package/esm/index.d.ts +1 -1
  618. package/esm/index.d.ts.map +1 -1
  619. package/esm/index.js +48 -581
  620. package/esm/input/index.js +4 -40
  621. package/esm/input/input-group.js +33 -42
  622. package/esm/input/input-group.type.js +1 -5
  623. package/esm/input/input-number.js +33 -39
  624. package/esm/input/input-number.type.d.ts +1 -1
  625. package/esm/input/input-number.type.d.ts.map +1 -1
  626. package/esm/input/input-number.type.js +1 -5
  627. package/esm/input/input-password.js +23 -29
  628. package/esm/input/input-password.type.js +1 -5
  629. package/esm/input/input.js +18 -27
  630. package/esm/input/input.type.d.ts +1 -1
  631. package/esm/input/input.type.d.ts.map +1 -1
  632. package/esm/input/input.type.js +1 -5
  633. package/esm/input/simple-input.js +31 -37
  634. package/esm/input/use-input-common.d.ts +1 -1
  635. package/esm/input/use-input-common.js +44 -52
  636. package/esm/list/base-item.js +47 -54
  637. package/esm/list/base-item.type.js +1 -5
  638. package/esm/list/index.js +2 -26
  639. package/esm/list/list.d.ts.map +1 -1
  640. package/esm/list/list.js +54 -65
  641. package/esm/list/list.type.js +1 -5
  642. package/esm/menu/index.js +1 -19
  643. package/esm/menu/item.d.ts.map +1 -1
  644. package/esm/menu/item.js +42 -49
  645. package/esm/menu/menu.js +35 -38
  646. package/esm/menu/menu.type.d.ts +2 -2
  647. package/esm/menu/menu.type.d.ts.map +1 -1
  648. package/esm/menu/menu.type.js +1 -5
  649. package/esm/menu/scroll.js +24 -27
  650. package/esm/menu/scrollbar.js +16 -24
  651. package/esm/message/func.js +6 -14
  652. package/esm/message/func.type.d.ts +2 -2
  653. package/esm/message/func.type.d.ts.map +1 -1
  654. package/esm/message/func.type.js +1 -5
  655. package/esm/message/index.js +1 -19
  656. package/esm/message/manager.d.ts.map +1 -1
  657. package/esm/message/manager.js +15 -25
  658. package/esm/message/message.js +59 -65
  659. package/esm/message/message.type.js +1 -5
  660. package/esm/modal/index.js +3 -33
  661. package/esm/modal/modal-content.js +63 -71
  662. package/esm/modal/modal-content.type.js +1 -5
  663. package/esm/modal/modal-func.d.ts +1 -1
  664. package/esm/modal/modal-func.d.ts.map +1 -1
  665. package/esm/modal/modal-func.js +40 -44
  666. package/esm/modal/modal-func.type.js +1 -5
  667. package/esm/modal/modal-submit.js +17 -25
  668. package/esm/modal/modal.js +23 -26
  669. package/esm/modal/modal.type.d.ts +1 -1
  670. package/esm/modal/modal.type.d.ts.map +1 -1
  671. package/esm/modal/modal.type.js +1 -5
  672. package/esm/modal/use-modal-move.js +24 -27
  673. package/esm/modal/use-modal-resize.js +19 -22
  674. package/esm/pagination/index.js +1 -19
  675. package/esm/pagination/pagination-button.js +17 -25
  676. package/esm/pagination/pagination-button.type.js +1 -5
  677. package/esm/pagination/pagination-buttons.js +37 -39
  678. package/esm/pagination/pagination-buttons.type.d.ts +2 -2
  679. package/esm/pagination/pagination-buttons.type.d.ts.map +1 -1
  680. package/esm/pagination/pagination-buttons.type.js +1 -5
  681. package/esm/pagination/pagination-jumper.js +26 -30
  682. package/esm/pagination/pagination-jumper.type.js +1 -5
  683. package/esm/pagination/pagination-next.d.ts.map +1 -1
  684. package/esm/pagination/pagination-next.js +10 -18
  685. package/esm/pagination/pagination-prev.d.ts.map +1 -1
  686. package/esm/pagination/pagination-prev.js +10 -18
  687. package/esm/pagination/pagination-simple.js +11 -17
  688. package/esm/pagination/pagination-simple.type.js +1 -5
  689. package/esm/pagination/pagination-size-list.js +8 -17
  690. package/esm/pagination/pagination-size-list.type.js +1 -5
  691. package/esm/pagination/pagination.d.ts.map +1 -1
  692. package/esm/pagination/pagination.js +28 -38
  693. package/esm/pagination/pagination.type.d.ts +2 -2
  694. package/esm/pagination/pagination.type.d.ts.map +1 -1
  695. package/esm/pagination/pagination.type.js +1 -5
  696. package/esm/popover/confirm.js +39 -46
  697. package/esm/popover/confirm.type.d.ts +2 -2
  698. package/esm/popover/confirm.type.d.ts.map +1 -1
  699. package/esm/popover/confirm.type.js +1 -5
  700. package/esm/popover/index.js +2 -26
  701. package/esm/popover/popover.js +33 -46
  702. package/esm/popover/popover.type.js +1 -5
  703. package/esm/progress/analyzeColor.js +2 -10
  704. package/esm/progress/circle.js +21 -30
  705. package/esm/progress/index.js +1 -19
  706. package/esm/progress/line-popup.js +15 -21
  707. package/esm/progress/line.js +20 -29
  708. package/esm/progress/progress.js +13 -21
  709. package/esm/progress/progress.type.js +1 -5
  710. package/esm/radio/group-context.d.ts +1 -1
  711. package/esm/radio/group-context.d.ts.map +1 -1
  712. package/esm/radio/group-context.js +3 -9
  713. package/esm/radio/index.js +2 -26
  714. package/esm/radio/radio-group.js +34 -41
  715. package/esm/radio/radio-group.type.js +1 -5
  716. package/esm/radio/radio.js +20 -27
  717. package/esm/radio/radio.type.js +1 -5
  718. package/esm/radio/simple-radio.js +24 -30
  719. package/esm/rate/index.js +1 -19
  720. package/esm/rate/rate.js +32 -42
  721. package/esm/rate/rate.type.js +1 -5
  722. package/esm/rule/index.js +1 -12
  723. package/esm/select/index.js +1 -19
  724. package/esm/select/list-columns-option.js +8 -16
  725. package/esm/select/list-columns-option.type.js +1 -5
  726. package/esm/select/list-columns.js +21 -33
  727. package/esm/select/list-option.js +17 -21
  728. package/esm/select/list-option.type.js +1 -5
  729. package/esm/select/list-tree.js +11 -19
  730. package/esm/select/list-tree.type.js +1 -5
  731. package/esm/select/list.js +41 -46
  732. package/esm/select/result-input.js +14 -29
  733. package/esm/select/result-input.type.js +1 -5
  734. package/esm/select/result-more.js +33 -44
  735. package/esm/select/result-more.type.js +1 -5
  736. package/esm/select/result.d.ts.map +1 -1
  737. package/esm/select/result.js +65 -77
  738. package/esm/select/result.type.d.ts +1 -1
  739. package/esm/select/result.type.d.ts.map +1 -1
  740. package/esm/select/result.type.js +1 -5
  741. package/esm/select/select.js +109 -114
  742. package/esm/select/select.type.d.ts +6 -6
  743. package/esm/select/select.type.d.ts.map +1 -1
  744. package/esm/select/select.type.js +1 -5
  745. package/esm/slider/index.js +1 -19
  746. package/esm/slider/slider.js +32 -39
  747. package/esm/slider/slider.type.js +1 -5
  748. package/esm/spin/base.js +16 -25
  749. package/esm/spin/index.js +1 -19
  750. package/esm/spin/spin.js +26 -33
  751. package/esm/spin/spin.type.d.ts +2 -2
  752. package/esm/spin/spin.type.d.ts.map +1 -1
  753. package/esm/spin/spin.type.js +1 -5
  754. package/esm/spin/spins.js +71 -80
  755. package/esm/spin/utils.js +2 -10
  756. package/esm/steps/index.js +2 -26
  757. package/esm/steps/step.arrow.d.ts.map +1 -1
  758. package/esm/steps/step.arrow.js +15 -20
  759. package/esm/steps/step.default.d.ts.map +1 -1
  760. package/esm/steps/step.default.js +25 -29
  761. package/esm/steps/step.dot.d.ts.map +1 -1
  762. package/esm/steps/step.dot.js +20 -24
  763. package/esm/steps/step.js +28 -37
  764. package/esm/steps/step.type.js +1 -5
  765. package/esm/steps/steps-context.js +3 -9
  766. package/esm/steps/steps-context.type.js +1 -5
  767. package/esm/steps/steps.js +18 -24
  768. package/esm/steps/steps.type.d.ts +3 -3
  769. package/esm/steps/steps.type.d.ts.map +1 -1
  770. package/esm/steps/steps.type.js +1 -5
  771. package/esm/sticky/index.js +1 -19
  772. package/esm/sticky/sticky.d.ts.map +1 -1
  773. package/esm/sticky/sticky.js +82 -85
  774. package/esm/sticky/sticky.type.d.ts +5 -1
  775. package/esm/sticky/sticky.type.d.ts.map +1 -1
  776. package/esm/sticky/sticky.type.js +1 -5
  777. package/esm/switch/index.js +1 -19
  778. package/esm/switch/switch.js +31 -33
  779. package/esm/switch/switch.type.js +1 -5
  780. package/esm/table/colgroup.js +6 -14
  781. package/esm/table/index.js +1 -19
  782. package/esm/table/table.js +89 -100
  783. package/esm/table/table.type.d.ts +7 -7
  784. package/esm/table/table.type.d.ts.map +1 -1
  785. package/esm/table/table.type.js +1 -5
  786. package/esm/table/tbody.js +11 -20
  787. package/esm/table/tbody.type.d.ts +2 -2
  788. package/esm/table/tbody.type.d.ts.map +1 -1
  789. package/esm/table/tbody.type.js +1 -5
  790. package/esm/table/temp/01-base.d.ts.map +1 -1
  791. package/esm/table/temp/01-base.js +40 -37
  792. package/esm/table/tfoot.js +12 -22
  793. package/esm/table/tfoot.type.js +1 -12
  794. package/esm/table/thead.js +47 -62
  795. package/esm/table/thead.type.d.ts +1 -1
  796. package/esm/table/thead.type.d.ts.map +1 -1
  797. package/esm/table/thead.type.js +1 -5
  798. package/esm/table/tr.js +45 -59
  799. package/esm/table/use-table-select.js +20 -29
  800. package/esm/tabs/index.js +2 -26
  801. package/esm/tabs/tab.js +23 -30
  802. package/esm/tabs/tab.type.js +1 -5
  803. package/esm/tabs/tabs-header.js +52 -56
  804. package/esm/tabs/tabs-header.type.js +1 -5
  805. package/esm/tabs/tabs-panel.js +14 -19
  806. package/esm/tabs/tabs-panel.type.js +1 -5
  807. package/esm/tabs/tabs.js +54 -63
  808. package/esm/tabs/tabs.type.d.ts +2 -2
  809. package/esm/tabs/tabs.type.d.ts.map +1 -1
  810. package/esm/tabs/tabs.type.js +1 -5
  811. package/esm/tag/index.js +2 -26
  812. package/esm/tag/tag-input.js +16 -24
  813. package/esm/tag/tag.js +33 -39
  814. package/esm/tag/tag.type.d.ts +7 -7
  815. package/esm/tag/tag.type.d.ts.map +1 -1
  816. package/esm/tag/tag.type.js +1 -5
  817. package/esm/tag/use-tag.js +21 -24
  818. package/esm/textarea/index.js +1 -19
  819. package/esm/textarea/simple-textarea.js +26 -38
  820. package/esm/textarea/textarea.js +51 -60
  821. package/esm/textarea/textarea.type.d.ts +1 -6
  822. package/esm/textarea/textarea.type.d.ts.map +1 -1
  823. package/esm/textarea/textarea.type.js +1 -5
  824. package/esm/textarea/use-auto-size.js +20 -28
  825. package/esm/tooltip/index.js +1 -19
  826. package/esm/tooltip/tooltip.js +28 -40
  827. package/esm/tooltip/tooltip.type.js +1 -5
  828. package/esm/transfer/index.js +1 -19
  829. package/esm/transfer/transfer-list-header.d.ts.map +1 -1
  830. package/esm/transfer/transfer-list-header.js +22 -29
  831. package/esm/transfer/transfer-list-header.type.js +1 -5
  832. package/esm/transfer/transfer-list-item.d.ts.map +1 -1
  833. package/esm/transfer/transfer-list-item.js +21 -26
  834. package/esm/transfer/transfer-list-item.type.js +1 -5
  835. package/esm/transfer/transfer-list.js +42 -49
  836. package/esm/transfer/transfer-list.type.js +1 -5
  837. package/esm/transfer/transfer-operate.js +6 -14
  838. package/esm/transfer/transfer-operate.type.js +1 -5
  839. package/esm/transfer/transfer.js +28 -33
  840. package/esm/transfer/transfer.type.d.ts +2 -2
  841. package/esm/transfer/transfer.type.d.ts.map +1 -1
  842. package/esm/transfer/transfer.type.js +1 -5
  843. package/esm/tree/index.js +1 -19
  844. package/esm/tree/tree-checkbox.d.ts +2 -1
  845. package/esm/tree/tree-checkbox.d.ts.map +1 -1
  846. package/esm/tree/tree-checkbox.js +8 -13
  847. package/esm/tree/tree-checkbox.type.d.ts +2 -2
  848. package/esm/tree/tree-checkbox.type.d.ts.map +1 -1
  849. package/esm/tree/tree-checkbox.type.js +1 -5
  850. package/esm/tree/tree-content.d.ts +2 -1
  851. package/esm/tree/tree-content.d.ts.map +1 -1
  852. package/esm/tree/tree-content.js +36 -44
  853. package/esm/tree/tree-content.type.d.ts +2 -2
  854. package/esm/tree/tree-content.type.d.ts.map +1 -1
  855. package/esm/tree/tree-content.type.js +1 -5
  856. package/esm/tree/tree-context.d.ts +4 -3
  857. package/esm/tree/tree-context.d.ts.map +1 -1
  858. package/esm/tree/tree-context.js +8 -22
  859. package/esm/tree/tree-context.type.d.ts +2 -2
  860. package/esm/tree/tree-context.type.d.ts.map +1 -1
  861. package/esm/tree/tree-context.type.js +1 -5
  862. package/esm/tree/tree-list.d.ts +1 -1
  863. package/esm/tree/tree-list.d.ts.map +1 -1
  864. package/esm/tree/tree-list.js +10 -17
  865. package/esm/tree/tree-list.type.d.ts +3 -3
  866. package/esm/tree/tree-list.type.d.ts.map +1 -1
  867. package/esm/tree/tree-list.type.js +1 -5
  868. package/esm/tree/tree-node.d.ts +1 -1
  869. package/esm/tree/tree-node.d.ts.map +1 -1
  870. package/esm/tree/tree-node.js +25 -32
  871. package/esm/tree/tree-node.type.d.ts +3 -3
  872. package/esm/tree/tree-node.type.d.ts.map +1 -1
  873. package/esm/tree/tree-node.type.js +1 -5
  874. package/esm/tree/tree-root.d.ts +1 -1
  875. package/esm/tree/tree-root.d.ts.map +1 -1
  876. package/esm/tree/tree-root.js +15 -22
  877. package/esm/tree/tree-root.type.d.ts +3 -3
  878. package/esm/tree/tree-root.type.d.ts.map +1 -1
  879. package/esm/tree/tree-root.type.js +1 -5
  880. package/esm/tree/tree.d.ts +2 -1
  881. package/esm/tree/tree.d.ts.map +1 -1
  882. package/esm/tree/tree.js +36 -45
  883. package/esm/tree/tree.type.d.ts +4 -4
  884. package/esm/tree/tree.type.d.ts.map +1 -1
  885. package/esm/tree/tree.type.js +1 -5
  886. package/esm/tree-select/index.js +1 -19
  887. package/esm/tree-select/tree-select.d.ts +1 -1
  888. package/esm/tree-select/tree-select.d.ts.map +1 -1
  889. package/esm/tree-select/tree-select.js +101 -110
  890. package/esm/tree-select/tree-select.type.d.ts +5 -5
  891. package/esm/tree-select/tree-select.type.d.ts.map +1 -1
  892. package/esm/tree-select/tree-select.type.js +1 -5
  893. package/esm/upload/button.js +39 -47
  894. package/esm/upload/button.type.d.ts +1 -1
  895. package/esm/upload/button.type.d.ts.map +1 -1
  896. package/esm/upload/button.type.js +1 -5
  897. package/esm/upload/drop.js +23 -33
  898. package/esm/upload/image.js +10 -18
  899. package/esm/upload/image.type.js +1 -5
  900. package/esm/upload/index.js +3 -33
  901. package/esm/upload/result.js +63 -70
  902. package/esm/upload/upload.d.ts.map +1 -1
  903. package/esm/upload/upload.js +51 -67
  904. package/esm/upload/upload.type.js +1 -5
  905. package/esm/upload/useInputClick.js +5 -12
  906. package/esm/virtual-scroll/index.js +2 -20
  907. package/esm/virtual-scroll/scroll.js +19 -32
  908. package/esm/virtual-scroll/virtual-scroll-list.js +32 -43
  909. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  910. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  911. package/esm/virtual-scroll/virtual-scroll-list.type.js +1 -5
  912. package/package.json +3 -3
  913. package/cjs/icons/caret.d.ts +0 -4
  914. package/cjs/icons/caret.d.ts.map +0 -1
  915. package/cjs/icons/caret.js +0 -19
  916. package/cjs/icons/caret.type.d.ts +0 -2
  917. package/cjs/icons/caret.type.d.ts.map +0 -1
  918. package/cjs/icons/caret.type.js +0 -5
  919. package/cjs/table/temp/00-scroll.d.ts +0 -4
  920. package/cjs/table/temp/00-scroll.d.ts.map +0 -1
  921. package/cjs/table/temp/00-scroll.js +0 -32
  922. package/esm/icons/caret.d.ts +0 -4
  923. package/esm/icons/caret.d.ts.map +0 -1
  924. package/esm/icons/caret.js +0 -19
  925. package/esm/icons/caret.type.d.ts +0 -2
  926. package/esm/icons/caret.type.d.ts.map +0 -1
  927. package/esm/icons/caret.type.js +0 -5
  928. package/esm/table/temp/00-scroll.d.ts +0 -4
  929. package/esm/table/temp/00-scroll.d.ts.map +0 -1
  930. package/esm/table/temp/00-scroll.js +0 -32
@@ -1,54 +1,48 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.filter.js");
4
- require("core-js/modules/web.dom-collections.for-each.js");
5
- require("core-js/modules/es.object.get-own-property-descriptors.js");
6
- require("core-js/modules/es.array.iterator.js");
7
- require("core-js/modules/es.weak-map.js");
8
- require("core-js/modules/web.dom-collections.iterator.js");
9
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
10
- var _typeof = require("@babel/runtime/helpers/typeof");
11
- Object.defineProperty(exports, "__esModule", {
12
- value: true
13
- });
14
- exports.default = void 0;
15
- require("core-js/modules/es.array.concat.js");
16
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
18
- var _hooks = require("@sheinx/hooks");
19
- var _reactDom = require("react-dom");
20
- var _react = _interopRequireWildcard(require("react"));
21
- var _jsxRuntime = require("react/jsx-runtime");
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26
- var cssSupport = _hooks.util.cssSupport;
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { usePersistFn, util, useResize, useRender } from '@sheinx/hooks';
14
+ import { createPortal } from 'react-dom';
15
+ import React, { useEffect, useRef, useState } from 'react';
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { Fragment as _Fragment } from "react/jsx-runtime";
18
+ import { jsxs as _jsxs } from "react/jsx-runtime";
19
+ var cssSupport = util.cssSupport;
27
20
  var supportSticky = cssSupport('position', 'sticky');
28
21
  var defaultZIndex = 900;
29
- var getFirstScrollParent = function getFirstScrollParent(el) {
30
- var parent = el.parentNode;
31
- while (parent) {
32
- if (parent === document.body || parent === document.documentElement) {
33
- parent = document.body;
34
- break;
35
- }
36
- var _window$getComputedSt = window.getComputedStyle(parent),
37
- overflowY = _window$getComputedSt.overflowY;
38
- if (overflowY === 'scroll' || overflowY === 'auto') {
39
- break;
40
- }
41
- parent = parent.parentNode;
42
- }
43
- return parent;
44
- };
22
+
23
+ // const getFirstScrollParent = (el: HTMLElement) => {
24
+ // let parent = el.parentNode as HTMLElement;
25
+ // while (parent) {
26
+ // if (parent === document.body || parent === document.documentElement) {
27
+ // parent = document.body;
28
+ // break;
29
+ // }
30
+ // const { overflowY } = window.getComputedStyle(parent);
31
+ // if (overflowY === 'scroll' || overflowY === 'auto') {
32
+ // break;
33
+ // }
34
+ // parent = parent.parentNode as HTMLElement;
35
+ // }
36
+ // return parent;
37
+ // };
38
+
45
39
  var Sticky = function Sticky(props) {
46
40
  var _props$style;
47
- var css = props.css,
48
- children = props.children,
41
+ var children = props.children,
49
42
  top = props.top,
50
43
  bottom = props.bottom;
51
- var _useRef = (0, _react.useRef)({
44
+ var css = props.css || props.target;
45
+ var _useRef = useRef({
52
46
  target: null,
53
47
  div: null,
54
48
  observer: null,
@@ -56,36 +50,36 @@ var Sticky = function Sticky(props) {
56
50
  isTop: false
57
51
  }),
58
52
  context = _useRef.current;
59
- var _useState = (0, _react.useState)({}),
60
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
53
+ var _useState = useState({}),
54
+ _useState2 = _slicedToArray(_useState, 2),
61
55
  style = _useState2[0],
62
56
  setStyle = _useState2[1];
63
- var _useState3 = (0, _react.useState)(false),
64
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
57
+ var _useState3 = useState(false),
58
+ _useState4 = _slicedToArray(_useState3, 2),
65
59
  show = _useState4[0],
66
60
  setShow = _useState4[1];
67
- var _useState5 = (0, _react.useState)(true),
68
- _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
61
+ var _useState5 = useState(true),
62
+ _useState6 = _slicedToArray(_useState5, 2),
69
63
  parentVisible = _useState6[0],
70
64
  setParentVisible = _useState6[1];
71
- var forceRender = (0, _hooks.useRender)();
72
- var elementRef = (0, _react.useRef)(null);
73
- var elementSize = (0, _hooks.useResize)({
65
+ var forceRender = useRender();
66
+ var elementRef = useRef(null);
67
+ var elementSize = useResize({
74
68
  targetRef: elementRef,
75
69
  timer: 0
76
70
  });
77
71
  var getTarget = function getTarget() {
78
- var target = props.target;
79
- if (typeof props.target === 'string') {
80
- target = document.querySelector(props.target);
72
+ var scrollContainer = props.scrollContainer;
73
+ if (typeof scrollContainer === 'string') {
74
+ scrollContainer = document.querySelector(scrollContainer);
81
75
  }
82
76
  // 判断是否是dom元素
83
- if (target && target.nodeType === 1) {
84
- return target;
77
+ if (scrollContainer && scrollContainer.nodeType === 1) {
78
+ return scrollContainer;
85
79
  }
86
- return getFirstScrollParent(elementRef.current);
80
+ return document.body;
87
81
  };
88
- var updateStyle = (0, _hooks.usePersistFn)(function () {
82
+ var updateStyle = usePersistFn(function () {
89
83
  if (context.div && !context.isTop && show) {
90
84
  var shouldFixed = context.target === document.body;
91
85
  var scrollRect = context.target.getBoundingClientRect();
@@ -107,7 +101,7 @@ var Sticky = function Sticky(props) {
107
101
  }
108
102
  }
109
103
  });
110
- var handlePosition = (0, _hooks.usePersistFn)(function (entries) {
104
+ var handlePosition = usePersistFn(function (entries) {
111
105
  var entry = entries[0];
112
106
  var scrollRect = entry.rootBounds;
113
107
  var targetRect = entry.boundingClientRect;
@@ -158,7 +152,7 @@ var Sticky = function Sticky(props) {
158
152
  setShow(false);
159
153
  }
160
154
  });
161
- var handleParentVisible = (0, _hooks.usePersistFn)(function (entries) {
155
+ var handleParentVisible = usePersistFn(function (entries) {
162
156
  var entry = entries[0];
163
157
  if (entry.isIntersecting) {
164
158
  setParentVisible(true);
@@ -179,7 +173,7 @@ var Sticky = function Sticky(props) {
179
173
  };
180
174
  var createObserver = function createObserver() {
181
175
  var target = getTarget();
182
- if (!context.div) {
176
+ if (!context.div && target !== document.body) {
183
177
  context.div = document.createElement('div');
184
178
  context.div.style.position = 'relative';
185
179
  }
@@ -187,18 +181,21 @@ var Sticky = function Sticky(props) {
187
181
  forceRender();
188
182
  context.target = target;
189
183
  cleanEvents();
190
- if (target === document.body) {
191
- document.body.appendChild(context.div);
192
- } else {
193
- target.parentNode.insertBefore(context.div, target);
194
- }
195
- var _style4 = window.getComputedStyle(target);
196
- if (_style4.position === 'absolute' || _style4.position === 'fixed') {
197
- context.div.style.position = _style4.position;
198
- context.div.style.top = _style4.top;
199
- context.div.style.left = _style4.left;
200
- context.div.style.right = _style4.right;
201
- context.div.style.bottom = _style4.bottom;
184
+ if (context.div) {
185
+ // append div
186
+ if (target === document.body) {
187
+ document.body.appendChild(context.div);
188
+ } else {
189
+ target.parentNode.insertBefore(context.div, target);
190
+ }
191
+ var _style4 = window.getComputedStyle(target);
192
+ if (_style4.position === 'absolute' || _style4.position === 'fixed') {
193
+ context.div.style.position = _style4.position;
194
+ context.div.style.top = _style4.top;
195
+ context.div.style.left = _style4.left;
196
+ context.div.style.right = _style4.right;
197
+ context.div.style.bottom = _style4.bottom;
198
+ }
202
199
  }
203
200
  if (window.IntersectionObserver) {
204
201
  var observer = new IntersectionObserver(handlePosition, {
@@ -223,7 +220,7 @@ var Sticky = function Sticky(props) {
223
220
  }
224
221
  }
225
222
  };
226
- (0, _react.useEffect)(function () {
223
+ useEffect(function () {
227
224
  if (!css) {
228
225
  createObserver();
229
226
  window.addEventListener('resize', updateStyle);
@@ -236,7 +233,7 @@ var Sticky = function Sticky(props) {
236
233
  }
237
234
  };
238
235
  }, [css]);
239
- (0, _react.useEffect)(function () {
236
+ useEffect(function () {
240
237
  if (props.parent && context.parentObserver) {
241
238
  context.parentObserver.observe(props.parent);
242
239
  }
@@ -253,7 +250,7 @@ var Sticky = function Sticky(props) {
253
250
  // 2. 指定滚动容器 在滚动容器上方插入一个dom占位 基于该dom渲染和定位
254
251
  // 3. 使用 intersectionObserver 来判断是否需要sticky
255
252
  if (css && supportSticky) {
256
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
253
+ return /*#__PURE__*/_jsx("div", {
257
254
  className: props.className,
258
255
  style: _objectSpread(_objectSpread({
259
256
  zIndex: defaultZIndex
@@ -265,18 +262,19 @@ var Sticky = function Sticky(props) {
265
262
  children: children
266
263
  });
267
264
  }
268
- var StickyEl = show && parentVisible ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
265
+ var StickyEl = show && parentVisible ? /*#__PURE__*/_jsx("div", {
269
266
  style: _objectSpread(_objectSpread({
270
267
  zIndex: defaultZIndex
271
268
  }, style), elementSize),
272
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
269
+ children: /*#__PURE__*/_jsx("div", {
273
270
  className: props.className,
274
271
  style: props.style,
275
272
  children: children
276
273
  })
277
274
  }) : null;
278
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
279
- children: [context.target && context.div && /*#__PURE__*/(0, _reactDom.createPortal)(StickyEl, context.div), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
275
+ var isFixed = style.position === 'fixed';
276
+ return /*#__PURE__*/_jsxs(_Fragment, {
277
+ children: [isFixed ? StickyEl : context.target && context.div && /*#__PURE__*/createPortal(StickyEl, context.div), /*#__PURE__*/_jsx("div", {
280
278
  className: props.className,
281
279
  style: _objectSpread(_objectSpread({}, props.style), {}, {
282
280
  opacity: show && parentVisible ? 0 : (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.opacity
@@ -286,5 +284,4 @@ var Sticky = function Sticky(props) {
286
284
  })]
287
285
  });
288
286
  };
289
- var _default = Sticky;
290
- exports.default = _default;
287
+ export default Sticky;
@@ -17,11 +17,15 @@ export interface StickyProps extends Pick<CommonType, 'className' | 'style'> {
17
17
  * @cn 距离底部多少偏移量触发
18
18
  */
19
19
  bottom?: number;
20
+ /**
21
+ * @deprecated use scrollContainer
22
+ */
23
+ target?: string | HTMLElement | null;
20
24
  /**
21
25
  * @en Custom attachment target. You can pass in HTMLElement or css selector. The target must be an ancestor node of the Sticky component
22
26
  * @cn 自定义附着的目标。可以传入 HTMLElement 或者 css selector,target 必须为 Sticky 组件的祖先节点
23
27
  */
24
- target?: string | HTMLElement | null;
28
+ scrollContainer?: string | HTMLElement | null;
25
29
  /**
26
30
  * @cn sticky 父级元素, 当父元素离开视窗时,sticky 将失效
27
31
  * @en sticky parent, when the parent element leaves the viewport, the sticky will be invalid
@@ -1 +1 @@
1
- {"version":3,"file":"sticky.type.d.ts","sourceRoot":"","sources":["sticky.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;IAC1E,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,MAAM,aAAa,CAAC;KAC7B,CAAC;IAEF;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;IAErC;;;OAGG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
1
+ {"version":3,"file":"sticky.type.d.ts","sourceRoot":"","sources":["sticky.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;IAC1E,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,MAAM,aAAa,CAAC;KAC7B,CAAC;IAEF;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;IAErC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;IAE9C;;;OAGG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ export {};
@@ -1,20 +1,2 @@
1
- "use strict";
2
1
  "use client";
3
-
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- Object.defineProperty(exports, "Switch", {
9
- enumerable: true,
10
- get: function get() {
11
- return _switch.default;
12
- }
13
- });
14
- Object.defineProperty(exports, "default", {
15
- enumerable: true,
16
- get: function get() {
17
- return _switch.default;
18
- }
19
- });
20
- var _switch = _interopRequireDefault(require("./switch"));
2
+ export { default, default as Switch } from "./switch";
@@ -1,34 +1,33 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.filter.js");
4
- require("core-js/modules/web.dom-collections.for-each.js");
5
- require("core-js/modules/es.object.get-own-property-descriptors.js");
6
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.default = void 0;
11
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
- var _hooks = require("@sheinx/hooks");
14
- var _classnames = _interopRequireDefault(require("classnames"));
15
- var _react = _interopRequireDefault(require("react"));
16
- var _useWithFormConfig = _interopRequireDefault(require("../common/use-with-form-config"));
17
- var _jsxRuntime = require("react/jsx-runtime");
18
- 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; }
19
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { useCheck, useInputAble } from '@sheinx/hooks';
14
+ import classNames from 'classnames';
15
+ import React from 'react';
16
+ import useWithFormConfig from "../common/use-with-form-config";
17
+ import { jsx as _jsx } from "react/jsx-runtime";
18
+ import { jsxs as _jsxs } from "react/jsx-runtime";
20
19
  var Switch = function Switch(props0) {
21
20
  var _jssStyle$switch;
22
- var props = (0, _useWithFormConfig.default)(props0);
21
+ var props = useWithFormConfig(props0);
23
22
  var jssStyle = props.jssStyle,
24
23
  content = props.content,
25
24
  size = props.size,
26
25
  loading = props.loading,
27
26
  className = props.className,
28
27
  style = props.style;
29
- var switchClasses = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$switch = jssStyle.switch) === null || _jssStyle$switch === void 0 ? void 0 : _jssStyle$switch.call(jssStyle);
28
+ var switchClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$switch = jssStyle.switch) === null || _jssStyle$switch === void 0 ? void 0 : _jssStyle$switch.call(jssStyle);
30
29
  var disabled = props.disabled || props.loading;
31
- var _useInputAble = (0, _hooks.useInputAble)({
30
+ var _useInputAble = useInputAble({
32
31
  value: props.value,
33
32
  onChange: props.onChange,
34
33
  defaultValue: props.defaultValue,
@@ -43,7 +42,7 @@ var Switch = function Switch(props0) {
43
42
  }
44
43
  return !!value;
45
44
  };
46
- var _useCheck = (0, _hooks.useCheck)({
45
+ var _useCheck = useCheck({
47
46
  checked: getChecked(),
48
47
  onChange: onChange,
49
48
  onClick: props.onClick,
@@ -54,34 +53,33 @@ var Switch = function Switch(props0) {
54
53
  getRootProps = _useCheck.getRootProps,
55
54
  checked = _useCheck.checked;
56
55
  var _ref = content || [],
57
- _ref2 = (0, _slicedToArray2.default)(_ref, 2),
56
+ _ref2 = _slicedToArray(_ref, 2),
58
57
  checkedContent = _ref2[0],
59
58
  unCheckedContent = _ref2[1];
60
- var rootClassName = (0, _classnames.default)(className, switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapper, !!checked && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperChecked), disabled && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperDisabled), size === 'small' && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperSmall), size === 'large' && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperLarge));
59
+ var rootClassName = classNames(className, switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapper, !!checked && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperChecked), disabled && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperDisabled), size === 'small' && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperSmall), size === 'large' && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperLarge));
61
60
  var rootProps = getRootProps({
62
61
  className: rootClassName,
63
62
  style: style
64
63
  });
65
64
  var inputProps = getInputProps();
66
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", _objectSpread(_objectSpread({
65
+ return /*#__PURE__*/_jsxs("button", _objectSpread(_objectSpread({
67
66
  type: 'button',
68
67
  role: 'switch'
69
68
  }, rootProps), {}, {
70
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread(_objectSpread({}, inputProps), {}, {
69
+ children: [/*#__PURE__*/_jsx("input", _objectSpread(_objectSpread({}, inputProps), {}, {
71
70
  type: 'checkbox'
72
- })), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
71
+ })), /*#__PURE__*/_jsx("div", {
73
72
  className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.indicator,
74
- children: loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
73
+ children: loading ? /*#__PURE__*/_jsx("div", {
75
74
  className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.loading
76
75
  }) : null
77
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
76
+ }), /*#__PURE__*/_jsx("div", {
78
77
  className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.content,
79
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
78
+ children: /*#__PURE__*/_jsx("div", {
80
79
  className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.textPadding,
81
80
  children: checked ? checkedContent : unCheckedContent
82
81
  })
83
82
  })]
84
83
  }));
85
84
  };
86
- var _default = Switch;
87
- exports.default = _default;
85
+ export default Switch;
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ export {};
@@ -1,11 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- require("core-js/modules/es.array.map.js");
8
- var _jsxRuntime = require("react/jsx-runtime");
1
+ import { jsx as _jsx } from "react/jsx-runtime";
9
2
  var Colgroup = function Colgroup(props) {
10
3
  var _props$colgroup = props.colgroup,
11
4
  colgroup = _props$colgroup === void 0 ? [] : _props$colgroup,
@@ -13,10 +6,10 @@ var Colgroup = function Colgroup(props) {
13
6
  columns = _props$columns === void 0 ? [] : _props$columns;
14
7
  var useColgroup = colgroup && colgroup.length === columns.length;
15
8
  if (useColgroup) {
16
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("colgroup", {
9
+ return /*#__PURE__*/_jsx("colgroup", {
17
10
  children: colgroup === null || colgroup === void 0 ? void 0 : colgroup.map(function (item, index) {
18
11
  var isLast = index === colgroup.length - 1;
19
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("col", {
12
+ return /*#__PURE__*/_jsx("col", {
20
13
  style: {
21
14
  width: isLast && props.shouldLastColAuto ? undefined : item
22
15
  }
@@ -24,9 +17,9 @@ var Colgroup = function Colgroup(props) {
24
17
  })
25
18
  });
26
19
  }
27
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("colgroup", {
20
+ return /*#__PURE__*/_jsx("colgroup", {
28
21
  children: columns.map(function (item) {
29
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("col", {
22
+ return /*#__PURE__*/_jsx("col", {
30
23
  style: {
31
24
  width: item.width
32
25
  }
@@ -34,5 +27,4 @@ var Colgroup = function Colgroup(props) {
34
27
  })
35
28
  });
36
29
  };
37
- var _default = Colgroup;
38
- exports.default = _default;
30
+ export default Colgroup;
@@ -1,20 +1,2 @@
1
- "use strict";
2
1
  "use client";
3
-
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- Object.defineProperty(exports, "Table", {
9
- enumerable: true,
10
- get: function get() {
11
- return _table.default;
12
- }
13
- });
14
- Object.defineProperty(exports, "default", {
15
- enumerable: true,
16
- get: function get() {
17
- return _table.default;
18
- }
19
- });
20
- var _table = _interopRequireDefault(require("./table"));
2
+ export { default, default as Table } from "./table";