@sheinx/base 3.0.0-alpha.9 → 3.0.0-rc.10

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 (1322) hide show
  1. package/cjs/absolute-list/absolute-context.d.ts +4 -0
  2. package/cjs/absolute-list/absolute-context.d.ts.map +1 -0
  3. package/cjs/absolute-list/absolute-context.js +10 -0
  4. package/cjs/absolute-list/absolute-list.d.ts +3 -1
  5. package/cjs/absolute-list/absolute-list.d.ts.map +1 -1
  6. package/cjs/absolute-list/absolute-list.js +34 -22
  7. package/cjs/absolute-list/absolute-list.type.d.ts +6 -5
  8. package/cjs/absolute-list/absolute-list.type.d.ts.map +1 -1
  9. package/cjs/absolute-list/index.js +3 -2
  10. package/cjs/absolute-list/use-container.d.ts +5 -5
  11. package/cjs/absolute-list/use-container.d.ts.map +1 -1
  12. package/cjs/absolute-list/use-container.js +19 -17
  13. package/cjs/alert/alert-icon.js +11 -13
  14. package/cjs/alert/alert.js +24 -23
  15. package/cjs/alert/alert.type.d.ts +3 -2
  16. package/cjs/alert/alert.type.d.ts.map +1 -1
  17. package/cjs/alert/index.d.ts +1 -1
  18. package/cjs/alert/index.d.ts.map +1 -1
  19. package/cjs/alert/index.js +3 -2
  20. package/cjs/animation-list/animation-list.d.ts.map +1 -1
  21. package/cjs/animation-list/animation-list.js +64 -45
  22. package/cjs/animation-list/animation-list.type.d.ts +1 -1
  23. package/cjs/animation-list/animation-list.type.d.ts.map +1 -1
  24. package/cjs/animation-list/index.js +3 -2
  25. package/cjs/breadcrumb/breadcrumb.d.ts.map +1 -1
  26. package/cjs/breadcrumb/breadcrumb.js +16 -17
  27. package/cjs/breadcrumb/breadcrumb.type.d.ts +2 -1
  28. package/cjs/breadcrumb/breadcrumb.type.d.ts.map +1 -1
  29. package/cjs/breadcrumb/index.d.ts +1 -1
  30. package/cjs/breadcrumb/index.d.ts.map +1 -1
  31. package/cjs/breadcrumb/index.js +3 -2
  32. package/cjs/breadcrumb/list.js +21 -19
  33. package/cjs/button/button-group.js +6 -12
  34. package/cjs/button/button-item.js +3 -4
  35. package/cjs/button/button.js +23 -22
  36. package/cjs/button/button.type.d.ts +1 -7
  37. package/cjs/button/button.type.d.ts.map +1 -1
  38. package/cjs/button/index.d.ts +1 -1
  39. package/cjs/button/index.d.ts.map +1 -1
  40. package/cjs/button/index.js +3 -2
  41. package/cjs/card/card-accordion-context.d.ts.map +1 -1
  42. package/cjs/card/card-accordion-context.js +4 -5
  43. package/cjs/card/card-accordion.js +11 -7
  44. package/cjs/card/card-accordion.type.d.ts +0 -8
  45. package/cjs/card/card-accordion.type.d.ts.map +1 -1
  46. package/cjs/card/card-body.js +3 -4
  47. package/cjs/card/card-body.type.d.ts +0 -8
  48. package/cjs/card/card-body.type.d.ts.map +1 -1
  49. package/cjs/card/card-footer.js +3 -4
  50. package/cjs/card/card-footer.type.d.ts +0 -8
  51. package/cjs/card/card-footer.type.d.ts.map +1 -1
  52. package/cjs/card/card-header.js +4 -5
  53. package/cjs/card/card-header.type.d.ts +0 -8
  54. package/cjs/card/card-header.type.d.ts.map +1 -1
  55. package/cjs/card/card.context.d.ts.map +1 -1
  56. package/cjs/card/card.context.js +4 -4
  57. package/cjs/card/card.js +17 -16
  58. package/cjs/card/index.d.ts +1 -1
  59. package/cjs/card/index.d.ts.map +1 -1
  60. package/cjs/card/index.js +3 -2
  61. package/cjs/card-group/card-group-context.d.ts.map +1 -1
  62. package/cjs/card-group/card-group-context.js +3 -3
  63. package/cjs/card-group/card-group.js +9 -10
  64. package/cjs/card-group/index.d.ts +1 -1
  65. package/cjs/card-group/index.d.ts.map +1 -1
  66. package/cjs/card-group/index.js +3 -2
  67. package/cjs/card-group/item.js +6 -10
  68. package/cjs/card-group/lazyload.js +11 -11
  69. package/cjs/carousel/carousel.js +13 -17
  70. package/cjs/carousel/carousel.type.d.ts +0 -1
  71. package/cjs/carousel/carousel.type.d.ts.map +1 -1
  72. package/cjs/carousel/index.d.ts +1 -1
  73. package/cjs/carousel/index.d.ts.map +1 -1
  74. package/cjs/carousel/index.js +3 -2
  75. package/cjs/cascader/cascader.d.ts +1 -1
  76. package/cjs/cascader/cascader.d.ts.map +1 -1
  77. package/cjs/cascader/cascader.js +197 -79
  78. package/cjs/cascader/cascader.type.d.ts +94 -22
  79. package/cjs/cascader/cascader.type.d.ts.map +1 -1
  80. package/cjs/cascader/filter-list.js +3 -6
  81. package/cjs/cascader/filter-node.js +3 -6
  82. package/cjs/cascader/index.d.ts +1 -1
  83. package/cjs/cascader/index.d.ts.map +1 -1
  84. package/cjs/cascader/index.js +3 -2
  85. package/cjs/cascader/list.js +3 -5
  86. package/cjs/cascader/node.d.ts.map +1 -1
  87. package/cjs/cascader/node.js +29 -21
  88. package/cjs/checkbox/checkbox-group.d.ts +1 -1
  89. package/cjs/checkbox/checkbox-group.js +9 -11
  90. package/cjs/checkbox/checkbox.d.ts.map +1 -1
  91. package/cjs/checkbox/checkbox.js +19 -14
  92. package/cjs/checkbox/checkbox.type.d.ts +1 -1
  93. package/cjs/checkbox/group-context.d.ts +1 -1
  94. package/cjs/checkbox/group-context.d.ts.map +1 -1
  95. package/cjs/checkbox/group-context.js +2 -2
  96. package/cjs/checkbox/index.d.ts +1 -1
  97. package/cjs/checkbox/index.d.ts.map +1 -1
  98. package/cjs/checkbox/index.js +3 -2
  99. package/cjs/checkbox/simple-checkbox.js +13 -13
  100. package/cjs/checkbox/use-checkbox-inputable.js +10 -7
  101. package/cjs/collapse/collapse-item.js +10 -15
  102. package/cjs/collapse/collapse.js +3 -4
  103. package/cjs/collapse/group-context.d.ts +1 -1
  104. package/cjs/collapse/group-context.d.ts.map +1 -1
  105. package/cjs/collapse/group-context.js +2 -2
  106. package/cjs/collapse/index.d.ts +2 -2
  107. package/cjs/collapse/index.d.ts.map +1 -1
  108. package/cjs/collapse/index.js +3 -2
  109. package/cjs/common/type.d.ts +7 -0
  110. package/cjs/common/type.d.ts.map +1 -1
  111. package/cjs/common/use-clear.js +2 -3
  112. package/cjs/common/use-inner-title.d.ts +2 -0
  113. package/cjs/common/use-inner-title.d.ts.map +1 -1
  114. package/cjs/common/use-inner-title.js +35 -14
  115. package/cjs/common/use-tip.d.ts +18 -2
  116. package/cjs/common/use-tip.d.ts.map +1 -1
  117. package/cjs/common/use-tip.js +8 -10
  118. package/cjs/common/use-with-form-config.d.ts +1 -1
  119. package/cjs/common/use-with-form-config.d.ts.map +1 -1
  120. package/cjs/common/use-with-form-config.js +8 -11
  121. package/cjs/config/index.d.ts +2 -5
  122. package/cjs/config/index.d.ts.map +1 -1
  123. package/cjs/config/index.js +26 -30
  124. package/cjs/config/locale/Props.d.ts +4 -4
  125. package/cjs/config/locale/Props.d.ts.map +1 -1
  126. package/cjs/config/locale/en_US.js +2 -3
  127. package/cjs/config/locale/index.js +4 -3
  128. package/cjs/config/locale/zh-CN.js +2 -3
  129. package/cjs/date-picker/date-picker.d.ts +1 -1
  130. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  131. package/cjs/date-picker/date-picker.js +50 -40
  132. package/cjs/date-picker/date-picker.type.d.ts +20 -9
  133. package/cjs/date-picker/date-picker.type.d.ts.map +1 -1
  134. package/cjs/date-picker/day.js +15 -21
  135. package/cjs/date-picker/index.d.ts +1 -1
  136. package/cjs/date-picker/index.d.ts.map +1 -1
  137. package/cjs/date-picker/index.js +3 -2
  138. package/cjs/date-picker/month.js +5 -9
  139. package/cjs/date-picker/month.type.d.ts +1 -1
  140. package/cjs/date-picker/month.type.d.ts.map +1 -1
  141. package/cjs/date-picker/picker.d.ts.map +1 -1
  142. package/cjs/date-picker/picker.js +13 -14
  143. package/cjs/date-picker/picker.type.d.ts +3 -2
  144. package/cjs/date-picker/picker.type.d.ts.map +1 -1
  145. package/cjs/date-picker/pickerTitle.js +2 -3
  146. package/cjs/date-picker/quarter.js +5 -9
  147. package/cjs/date-picker/quarter.type.d.ts +1 -1
  148. package/cjs/date-picker/quarter.type.d.ts.map +1 -1
  149. package/cjs/date-picker/quick.d.ts.map +1 -1
  150. package/cjs/date-picker/quick.js +8 -6
  151. package/cjs/date-picker/quick.type.d.ts +1 -0
  152. package/cjs/date-picker/quick.type.d.ts.map +1 -1
  153. package/cjs/date-picker/result.d.ts +1 -0
  154. package/cjs/date-picker/result.d.ts.map +1 -1
  155. package/cjs/date-picker/result.js +18 -17
  156. package/cjs/date-picker/time.js +7 -12
  157. package/cjs/date-picker/year.js +5 -9
  158. package/cjs/date-picker/year.type.d.ts +1 -1
  159. package/cjs/date-picker/year.type.d.ts.map +1 -1
  160. package/cjs/descriptions/descriptions.js +11 -18
  161. package/cjs/descriptions/descriptions.type.d.ts +1 -1
  162. package/cjs/descriptions/descriptions.type.d.ts.map +1 -1
  163. package/cjs/descriptions/index.d.ts +1 -1
  164. package/cjs/descriptions/index.d.ts.map +1 -1
  165. package/cjs/descriptions/index.js +3 -2
  166. package/cjs/divider/divider.js +3 -4
  167. package/cjs/divider/index.d.ts +1 -1
  168. package/cjs/divider/index.d.ts.map +1 -1
  169. package/cjs/divider/index.js +3 -2
  170. package/cjs/dropdown/Item.d.ts.map +1 -1
  171. package/cjs/dropdown/Item.js +42 -28
  172. package/cjs/dropdown/dropdown.js +8 -9
  173. package/cjs/dropdown/dropdown.type.d.ts +9 -7
  174. package/cjs/dropdown/dropdown.type.d.ts.map +1 -1
  175. package/cjs/dropdown/dropdown.type.js +2 -2
  176. package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
  177. package/cjs/dropdown/dropdownIn.js +21 -20
  178. package/cjs/dropdown/index.d.ts +1 -1
  179. package/cjs/dropdown/index.d.ts.map +1 -1
  180. package/cjs/dropdown/index.js +3 -2
  181. package/cjs/editable-area/editable-area.d.ts.map +1 -1
  182. package/cjs/editable-area/editable-area.js +29 -36
  183. package/cjs/editable-area/index.d.ts +1 -1
  184. package/cjs/editable-area/index.d.ts.map +1 -1
  185. package/cjs/editable-area/index.js +3 -2
  186. package/cjs/empty/empty-image.js +2 -3
  187. package/cjs/empty/empty.js +12 -13
  188. package/cjs/empty/index.d.ts +1 -1
  189. package/cjs/empty/index.d.ts.map +1 -1
  190. package/cjs/empty/index.js +3 -2
  191. package/cjs/form/error-trans.js +2 -6
  192. package/cjs/form/form-button.js +8 -9
  193. package/cjs/form/form-field.d.ts.map +1 -1
  194. package/cjs/form/form-field.js +13 -7
  195. package/cjs/form/form-field.type.d.ts +1 -1
  196. package/cjs/form/form-field.type.d.ts.map +1 -1
  197. package/cjs/form/form-fieldset.js +8 -14
  198. package/cjs/form/form-flow.js +1 -2
  199. package/cjs/form/form-footer-context.d.ts.map +1 -1
  200. package/cjs/form/form-footer-context.js +15 -16
  201. package/cjs/form/form-item.js +19 -17
  202. package/cjs/form/form.d.ts +1 -1
  203. package/cjs/form/form.d.ts.map +1 -1
  204. package/cjs/form/form.js +29 -24
  205. package/cjs/form/form.type.d.ts +7 -0
  206. package/cjs/form/form.type.d.ts.map +1 -1
  207. package/cjs/form/form.type.js +1 -2
  208. package/cjs/form/index.d.ts +2 -2
  209. package/cjs/form/index.d.ts.map +1 -1
  210. package/cjs/form/index.js +3 -2
  211. package/cjs/gap/gap.d.ts.map +1 -1
  212. package/cjs/gap/gap.js +15 -12
  213. package/cjs/gap/gap.type.d.ts +7 -0
  214. package/cjs/gap/gap.type.d.ts.map +1 -1
  215. package/cjs/gap/index.d.ts +1 -1
  216. package/cjs/gap/index.d.ts.map +1 -1
  217. package/cjs/gap/index.js +3 -2
  218. package/cjs/gap/support.d.ts.map +1 -1
  219. package/cjs/gap/support.js +1 -0
  220. package/cjs/grid/grid.js +13 -19
  221. package/cjs/grid/grid.type.d.ts +1 -1
  222. package/cjs/grid/grid.type.d.ts.map +1 -1
  223. package/cjs/grid/index.js +3 -2
  224. package/cjs/grid/util.d.ts +1 -1
  225. package/cjs/grid/util.d.ts.map +1 -1
  226. package/cjs/grid/util.js +4 -3
  227. package/cjs/icon/icon.d.ts.map +1 -1
  228. package/cjs/icon/icon.js +28 -27
  229. package/cjs/icon/icon.type.d.ts +4 -4
  230. package/cjs/icon/icon.type.d.ts.map +1 -1
  231. package/cjs/icon/index.d.ts +1 -1
  232. package/cjs/icon/index.d.ts.map +1 -1
  233. package/cjs/icon/index.js +3 -2
  234. package/cjs/icons/config.d.ts +144 -0
  235. package/cjs/icons/config.d.ts.map +1 -0
  236. package/cjs/icons/config.js +164 -0
  237. package/cjs/icons/icons.d.ts +46 -0
  238. package/cjs/icons/icons.d.ts.map +1 -0
  239. package/cjs/icons/icons.js +184 -0
  240. package/cjs/icons/index.d.ts +1 -47
  241. package/cjs/icons/index.d.ts.map +1 -1
  242. package/cjs/icons/index.js +15 -187
  243. package/cjs/image/image-event.d.ts +1 -1
  244. package/cjs/image/image-event.d.ts.map +1 -1
  245. package/cjs/image/image-event.js +6 -5
  246. package/cjs/image/image-gallery.js +14 -15
  247. package/cjs/image/image-group.d.ts.map +1 -1
  248. package/cjs/image/image-group.js +21 -24
  249. package/cjs/image/image-group.type.d.ts +2 -1
  250. package/cjs/image/image-group.type.d.ts.map +1 -1
  251. package/cjs/image/image-magnify.js +10 -11
  252. package/cjs/image/image.js +21 -26
  253. package/cjs/image/image.type.d.ts +39 -5
  254. package/cjs/image/image.type.d.ts.map +1 -1
  255. package/cjs/image/index.d.ts +1 -1
  256. package/cjs/image/index.d.ts.map +1 -1
  257. package/cjs/image/index.js +3 -2
  258. package/cjs/index.d.ts +1 -1
  259. package/cjs/index.d.ts.map +1 -1
  260. package/cjs/index.js +5 -6
  261. package/cjs/input/index.d.ts +2 -1
  262. package/cjs/input/index.d.ts.map +1 -1
  263. package/cjs/input/index.js +3 -2
  264. package/cjs/input/input-group.d.ts.map +1 -1
  265. package/cjs/input/input-group.js +32 -31
  266. package/cjs/input/input-number.js +16 -16
  267. package/cjs/input/input-number.type.d.ts +1 -1
  268. package/cjs/input/input-number.type.d.ts.map +1 -1
  269. package/cjs/input/input-password.js +10 -11
  270. package/cjs/input/input.js +8 -10
  271. package/cjs/input/input.type.d.ts +8 -17
  272. package/cjs/input/input.type.d.ts.map +1 -1
  273. package/cjs/input/simple-input.d.ts.map +1 -1
  274. package/cjs/input/simple-input.js +22 -35
  275. package/cjs/input/use-input-common.d.ts +4 -6
  276. package/cjs/input/use-input-common.d.ts.map +1 -1
  277. package/cjs/input/use-input-common.js +31 -35
  278. package/cjs/list/base-item.js +14 -15
  279. package/cjs/list/index.d.ts +1 -1
  280. package/cjs/list/index.d.ts.map +1 -1
  281. package/cjs/list/index.js +3 -2
  282. package/cjs/list/list.d.ts.map +1 -1
  283. package/cjs/list/list.js +23 -26
  284. package/cjs/menu/index.d.ts +1 -1
  285. package/cjs/menu/index.d.ts.map +1 -1
  286. package/cjs/menu/index.js +3 -2
  287. package/cjs/menu/item.d.ts.map +1 -1
  288. package/cjs/menu/item.js +15 -14
  289. package/cjs/menu/menu.d.ts.map +1 -1
  290. package/cjs/menu/menu.js +19 -16
  291. package/cjs/menu/menu.type.d.ts +3 -3
  292. package/cjs/menu/menu.type.d.ts.map +1 -1
  293. package/cjs/menu/scroll.js +11 -7
  294. package/cjs/menu/scrollbar.js +3 -4
  295. package/cjs/message/func.js +2 -4
  296. package/cjs/message/func.type.d.ts +2 -2
  297. package/cjs/message/func.type.d.ts.map +1 -1
  298. package/cjs/message/index.d.ts +1 -0
  299. package/cjs/message/index.d.ts.map +1 -1
  300. package/cjs/message/index.js +3 -2
  301. package/cjs/message/manager.d.ts.map +1 -1
  302. package/cjs/message/manager.js +6 -7
  303. package/cjs/message/message.d.ts.map +1 -1
  304. package/cjs/message/message.js +57 -51
  305. package/cjs/modal/index.d.ts +1 -1
  306. package/cjs/modal/index.d.ts.map +1 -1
  307. package/cjs/modal/index.js +3 -2
  308. package/cjs/modal/modal-content.d.ts.map +1 -1
  309. package/cjs/modal/modal-content.js +50 -31
  310. package/cjs/modal/modal-func.d.ts +1 -1
  311. package/cjs/modal/modal-func.d.ts.map +1 -1
  312. package/cjs/modal/modal-func.js +19 -17
  313. package/cjs/modal/modal-submit.js +10 -11
  314. package/cjs/modal/modal.js +16 -11
  315. package/cjs/modal/modal.type.d.ts +1 -1
  316. package/cjs/modal/modal.type.d.ts.map +1 -1
  317. package/cjs/modal/use-modal-move.js +15 -12
  318. package/cjs/modal/use-modal-resize.js +9 -6
  319. package/cjs/pagination/index.d.ts +1 -1
  320. package/cjs/pagination/index.d.ts.map +1 -1
  321. package/cjs/pagination/index.js +3 -2
  322. package/cjs/pagination/pagination-button.js +11 -12
  323. package/cjs/pagination/pagination-buttons.js +20 -17
  324. package/cjs/pagination/pagination-buttons.type.d.ts +2 -2
  325. package/cjs/pagination/pagination-buttons.type.d.ts.map +1 -1
  326. package/cjs/pagination/pagination-jumper.js +10 -8
  327. package/cjs/pagination/pagination-next.d.ts.map +1 -1
  328. package/cjs/pagination/pagination-next.js +4 -5
  329. package/cjs/pagination/pagination-prev.d.ts.map +1 -1
  330. package/cjs/pagination/pagination-prev.js +4 -5
  331. package/cjs/pagination/pagination-simple.js +2 -3
  332. package/cjs/pagination/pagination-size-list.js +3 -5
  333. package/cjs/pagination/pagination.d.ts.map +1 -1
  334. package/cjs/pagination/pagination.js +14 -17
  335. package/cjs/pagination/pagination.type.d.ts +4 -4
  336. package/cjs/pagination/pagination.type.d.ts.map +1 -1
  337. package/cjs/popover/confirm.js +24 -23
  338. package/cjs/popover/confirm.type.d.ts +2 -2
  339. package/cjs/popover/confirm.type.d.ts.map +1 -1
  340. package/cjs/popover/index.d.ts +1 -1
  341. package/cjs/popover/index.d.ts.map +1 -1
  342. package/cjs/popover/index.js +3 -2
  343. package/cjs/popover/popover.d.ts.map +1 -1
  344. package/cjs/popover/popover.js +23 -20
  345. package/cjs/progress/analyzeColor.js +3 -5
  346. package/cjs/progress/circle.js +5 -8
  347. package/cjs/progress/index.d.ts +1 -1
  348. package/cjs/progress/index.d.ts.map +1 -1
  349. package/cjs/progress/index.js +3 -2
  350. package/cjs/progress/line-popup.js +8 -8
  351. package/cjs/progress/line.js +5 -8
  352. package/cjs/progress/progress.js +8 -9
  353. package/cjs/radio/group-context.d.ts +1 -1
  354. package/cjs/radio/group-context.d.ts.map +1 -1
  355. package/cjs/radio/group-context.js +2 -2
  356. package/cjs/radio/index.d.ts +1 -1
  357. package/cjs/radio/index.d.ts.map +1 -1
  358. package/cjs/radio/index.js +3 -2
  359. package/cjs/radio/radio-group.d.ts +1 -1
  360. package/cjs/radio/radio-group.d.ts.map +1 -1
  361. package/cjs/radio/radio-group.js +15 -17
  362. package/cjs/radio/radio.js +12 -12
  363. package/cjs/radio/simple-radio.js +12 -12
  364. package/cjs/rate/index.d.ts +1 -1
  365. package/cjs/rate/index.d.ts.map +1 -1
  366. package/cjs/rate/index.js +3 -2
  367. package/cjs/rate/rate.d.ts +1 -1
  368. package/cjs/rate/rate.d.ts.map +1 -1
  369. package/cjs/rate/rate.js +20 -19
  370. package/cjs/rate/rate.type.d.ts +2 -2
  371. package/cjs/rate/rate.type.d.ts.map +1 -1
  372. package/cjs/rule/index.js +1 -0
  373. package/cjs/select/index.d.ts +1 -1
  374. package/cjs/select/index.d.ts.map +1 -1
  375. package/cjs/select/index.js +3 -2
  376. package/cjs/select/list-columns-option.d.ts.map +1 -1
  377. package/cjs/select/list-columns-option.js +3 -5
  378. package/cjs/select/list-columns.js +3 -9
  379. package/cjs/select/list-option.d.ts.map +1 -1
  380. package/cjs/select/list-option.js +13 -15
  381. package/cjs/select/list-tree.d.ts.map +1 -1
  382. package/cjs/select/list-tree.js +6 -13
  383. package/cjs/select/list-tree.type.d.ts +1 -1
  384. package/cjs/select/list-tree.type.d.ts.map +1 -1
  385. package/cjs/select/list.js +23 -20
  386. package/cjs/select/result-input.d.ts.map +1 -1
  387. package/cjs/select/result-input.js +41 -43
  388. package/cjs/select/result-input.type.d.ts +6 -1
  389. package/cjs/select/result-input.type.d.ts.map +1 -1
  390. package/cjs/select/result-more.d.ts +2 -2
  391. package/cjs/select/result-more.d.ts.map +1 -1
  392. package/cjs/select/result-more.js +35 -17
  393. package/cjs/select/result-more.type.d.ts +4 -0
  394. package/cjs/select/result-more.type.d.ts.map +1 -1
  395. package/cjs/select/result.d.ts.map +1 -1
  396. package/cjs/select/result.js +145 -87
  397. package/cjs/select/result.type.d.ts +18 -4
  398. package/cjs/select/result.type.d.ts.map +1 -1
  399. package/cjs/select/select.d.ts +1 -1
  400. package/cjs/select/select.d.ts.map +1 -1
  401. package/cjs/select/select.js +267 -187
  402. package/cjs/select/select.type.d.ts +126 -24
  403. package/cjs/select/select.type.d.ts.map +1 -1
  404. package/cjs/slider/index.d.ts +1 -1
  405. package/cjs/slider/index.d.ts.map +1 -1
  406. package/cjs/slider/index.js +3 -2
  407. package/cjs/slider/slider.d.ts +1 -1
  408. package/cjs/slider/slider.d.ts.map +1 -1
  409. package/cjs/slider/slider.js +12 -12
  410. package/cjs/spin/base.d.ts.map +1 -1
  411. package/cjs/spin/base.js +10 -11
  412. package/cjs/spin/index.d.ts +1 -1
  413. package/cjs/spin/index.d.ts.map +1 -1
  414. package/cjs/spin/index.js +3 -2
  415. package/cjs/spin/spin.d.ts +2 -1
  416. package/cjs/spin/spin.d.ts.map +1 -1
  417. package/cjs/spin/spin.js +16 -16
  418. package/cjs/spin/spin.type.d.ts +3 -3
  419. package/cjs/spin/spin.type.d.ts.map +1 -1
  420. package/cjs/spin/spins.js +25 -27
  421. package/cjs/spin/utils.js +2 -4
  422. package/cjs/steps/index.d.ts +1 -1
  423. package/cjs/steps/index.d.ts.map +1 -1
  424. package/cjs/steps/index.js +3 -2
  425. package/cjs/steps/step.arrow.d.ts.map +1 -1
  426. package/cjs/steps/step.arrow.js +8 -7
  427. package/cjs/steps/step.default.d.ts.map +1 -1
  428. package/cjs/steps/step.default.js +13 -11
  429. package/cjs/steps/step.dot.d.ts.map +1 -1
  430. package/cjs/steps/step.dot.js +11 -9
  431. package/cjs/steps/step.js +13 -15
  432. package/cjs/steps/steps-context.d.ts.map +1 -1
  433. package/cjs/steps/steps-context.js +2 -2
  434. package/cjs/steps/steps.js +9 -8
  435. package/cjs/steps/steps.type.d.ts +28 -3
  436. package/cjs/steps/steps.type.d.ts.map +1 -1
  437. package/cjs/sticky/index.d.ts +1 -1
  438. package/cjs/sticky/index.d.ts.map +1 -1
  439. package/cjs/sticky/index.js +3 -2
  440. package/cjs/sticky/sticky.d.ts.map +1 -1
  441. package/cjs/sticky/sticky.js +61 -50
  442. package/cjs/sticky/sticky.type.d.ts +5 -1
  443. package/cjs/sticky/sticky.type.d.ts.map +1 -1
  444. package/cjs/switch/index.d.ts +1 -1
  445. package/cjs/switch/index.d.ts.map +1 -1
  446. package/cjs/switch/index.js +3 -2
  447. package/cjs/switch/switch.d.ts +1 -1
  448. package/cjs/switch/switch.d.ts.map +1 -1
  449. package/cjs/switch/switch.js +19 -13
  450. package/cjs/table/colgroup.js +1 -3
  451. package/cjs/table/index.d.ts +1 -1
  452. package/cjs/table/index.d.ts.map +1 -1
  453. package/cjs/table/index.js +3 -2
  454. package/cjs/table/table.d.ts.map +1 -1
  455. package/cjs/table/table.js +98 -83
  456. package/cjs/table/table.type.d.ts +12 -10
  457. package/cjs/table/table.type.d.ts.map +1 -1
  458. package/cjs/table/tbody.d.ts.map +1 -1
  459. package/cjs/table/tbody.js +6 -6
  460. package/cjs/table/tbody.type.d.ts +4 -3
  461. package/cjs/table/tbody.type.d.ts.map +1 -1
  462. package/cjs/table/temp/01-base.d.ts.map +1 -1
  463. package/cjs/table/temp/01-base.js +22 -14
  464. package/cjs/table/tfoot.js +4 -7
  465. package/cjs/table/thead.d.ts.map +1 -1
  466. package/cjs/table/thead.js +23 -31
  467. package/cjs/table/thead.type.d.ts +2 -2
  468. package/cjs/table/thead.type.d.ts.map +1 -1
  469. package/cjs/table/tr.d.ts +1 -1
  470. package/cjs/table/tr.d.ts.map +1 -1
  471. package/cjs/table/tr.js +24 -31
  472. package/cjs/table/use-table-select.d.ts +1 -2
  473. package/cjs/table/use-table-select.d.ts.map +1 -1
  474. package/cjs/table/use-table-select.js +8 -11
  475. package/cjs/tabs/index.d.ts +1 -1
  476. package/cjs/tabs/index.d.ts.map +1 -1
  477. package/cjs/tabs/index.js +3 -2
  478. package/cjs/tabs/tab.d.ts.map +1 -1
  479. package/cjs/tabs/tab.js +13 -14
  480. package/cjs/tabs/tabs-header.d.ts.map +1 -1
  481. package/cjs/tabs/tabs-header.js +34 -31
  482. package/cjs/tabs/tabs-panel.d.ts.map +1 -1
  483. package/cjs/tabs/tabs-panel.js +17 -6
  484. package/cjs/tabs/tabs.d.ts.map +1 -1
  485. package/cjs/tabs/tabs.js +31 -34
  486. package/cjs/tabs/tabs.type.d.ts +4 -4
  487. package/cjs/tabs/tabs.type.d.ts.map +1 -1
  488. package/cjs/tag/index.d.ts +1 -1
  489. package/cjs/tag/index.d.ts.map +1 -1
  490. package/cjs/tag/index.js +3 -2
  491. package/cjs/tag/tag-input.js +9 -10
  492. package/cjs/tag/tag.d.ts.map +1 -1
  493. package/cjs/tag/tag.js +24 -18
  494. package/cjs/tag/tag.type.d.ts +17 -6
  495. package/cjs/tag/tag.type.d.ts.map +1 -1
  496. package/cjs/tag/use-tag.d.ts.map +1 -1
  497. package/cjs/tag/use-tag.js +17 -9
  498. package/cjs/textarea/index.d.ts +1 -1
  499. package/cjs/textarea/index.d.ts.map +1 -1
  500. package/cjs/textarea/index.js +3 -2
  501. package/cjs/textarea/simple-textarea.js +17 -23
  502. package/cjs/textarea/textarea.d.ts +1 -1
  503. package/cjs/textarea/textarea.d.ts.map +1 -1
  504. package/cjs/textarea/textarea.js +25 -30
  505. package/cjs/textarea/textarea.type.d.ts +4 -2
  506. package/cjs/textarea/textarea.type.d.ts.map +1 -1
  507. package/cjs/textarea/use-auto-size.js +13 -12
  508. package/cjs/tooltip/index.d.ts +1 -1
  509. package/cjs/tooltip/index.d.ts.map +1 -1
  510. package/cjs/tooltip/index.js +3 -2
  511. package/cjs/tooltip/tooltip.d.ts.map +1 -1
  512. package/cjs/tooltip/tooltip.js +22 -22
  513. package/cjs/tooltip/tooltip.type.d.ts +6 -0
  514. package/cjs/tooltip/tooltip.type.d.ts.map +1 -1
  515. package/cjs/transfer/index.d.ts +1 -1
  516. package/cjs/transfer/index.d.ts.map +1 -1
  517. package/cjs/transfer/index.js +3 -2
  518. package/cjs/transfer/transfer-list-header.d.ts.map +1 -1
  519. package/cjs/transfer/transfer-list-header.js +9 -10
  520. package/cjs/transfer/transfer-list-item.d.ts.map +1 -1
  521. package/cjs/transfer/transfer-list-item.js +7 -6
  522. package/cjs/transfer/transfer-list-item.type.d.ts +1 -1
  523. package/cjs/transfer/transfer-list-item.type.d.ts.map +1 -1
  524. package/cjs/transfer/transfer-list.d.ts.map +1 -1
  525. package/cjs/transfer/transfer-list.js +15 -16
  526. package/cjs/transfer/transfer-operate.js +2 -4
  527. package/cjs/transfer/transfer.js +11 -10
  528. package/cjs/transfer/transfer.type.d.ts +30 -3
  529. package/cjs/transfer/transfer.type.d.ts.map +1 -1
  530. package/cjs/tree/index.d.ts +1 -1
  531. package/cjs/tree/index.d.ts.map +1 -1
  532. package/cjs/tree/index.js +3 -2
  533. package/cjs/tree/tree-checkbox.d.ts +2 -1
  534. package/cjs/tree/tree-checkbox.d.ts.map +1 -1
  535. package/cjs/tree/tree-checkbox.js +5 -3
  536. package/cjs/tree/tree-checkbox.type.d.ts +2 -2
  537. package/cjs/tree/tree-checkbox.type.d.ts.map +1 -1
  538. package/cjs/tree/tree-content.d.ts +2 -1
  539. package/cjs/tree/tree-content.d.ts.map +1 -1
  540. package/cjs/tree/tree-content.js +24 -21
  541. package/cjs/tree/tree-content.type.d.ts +2 -2
  542. package/cjs/tree/tree-content.type.d.ts.map +1 -1
  543. package/cjs/tree/tree-context.d.ts +3 -3
  544. package/cjs/tree/tree-context.d.ts.map +1 -1
  545. package/cjs/tree/tree-context.js +8 -13
  546. package/cjs/tree/tree-context.type.d.ts +5 -16
  547. package/cjs/tree/tree-context.type.d.ts.map +1 -1
  548. package/cjs/tree/tree-list.d.ts +1 -1
  549. package/cjs/tree/tree-list.d.ts.map +1 -1
  550. package/cjs/tree/tree-list.js +6 -6
  551. package/cjs/tree/tree-list.type.d.ts +3 -3
  552. package/cjs/tree/tree-list.type.d.ts.map +1 -1
  553. package/cjs/tree/tree-node.d.ts +1 -1
  554. package/cjs/tree/tree-node.d.ts.map +1 -1
  555. package/cjs/tree/tree-node.js +48 -35
  556. package/cjs/tree/tree-node.type.d.ts +3 -3
  557. package/cjs/tree/tree-node.type.d.ts.map +1 -1
  558. package/cjs/tree/tree-root.d.ts +1 -1
  559. package/cjs/tree/tree-root.d.ts.map +1 -1
  560. package/cjs/tree/tree-root.js +11 -11
  561. package/cjs/tree/tree-root.type.d.ts +3 -3
  562. package/cjs/tree/tree-root.type.d.ts.map +1 -1
  563. package/cjs/tree/tree.d.ts +2 -1
  564. package/cjs/tree/tree.d.ts.map +1 -1
  565. package/cjs/tree/tree.js +27 -30
  566. package/cjs/tree/tree.type.d.ts +27 -10
  567. package/cjs/tree/tree.type.d.ts.map +1 -1
  568. package/cjs/tree-select/index.d.ts +1 -1
  569. package/cjs/tree-select/index.d.ts.map +1 -1
  570. package/cjs/tree-select/index.js +3 -2
  571. package/cjs/tree-select/tree-select.d.ts +2 -2
  572. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  573. package/cjs/tree-select/tree-select.js +170 -91
  574. package/cjs/tree-select/tree-select.type.d.ts +93 -20
  575. package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
  576. package/cjs/upload/button.d.ts.map +1 -1
  577. package/cjs/upload/button.js +18 -21
  578. package/cjs/upload/button.type.d.ts +1 -1
  579. package/cjs/upload/button.type.d.ts.map +1 -1
  580. package/cjs/upload/drop.js +16 -19
  581. package/cjs/upload/image.js +8 -9
  582. package/cjs/upload/index.d.ts +1 -1
  583. package/cjs/upload/index.d.ts.map +1 -1
  584. package/cjs/upload/index.js +3 -2
  585. package/cjs/upload/result.d.ts +1 -1
  586. package/cjs/upload/result.d.ts.map +1 -1
  587. package/cjs/upload/result.js +34 -34
  588. package/cjs/upload/upload.d.ts +1 -1
  589. package/cjs/upload/upload.d.ts.map +1 -1
  590. package/cjs/upload/upload.js +17 -25
  591. package/cjs/upload/useInputClick.js +2 -3
  592. package/cjs/virtual-scroll/index.js +3 -2
  593. package/cjs/virtual-scroll/scroll.js +11 -17
  594. package/cjs/virtual-scroll/virtual-scroll-list.js +20 -22
  595. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  596. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  597. package/esm/absolute-list/absolute-context.d.ts +4 -0
  598. package/esm/absolute-list/absolute-context.d.ts.map +1 -0
  599. package/esm/absolute-list/absolute-context.js +5 -0
  600. package/esm/absolute-list/absolute-list.d.ts +3 -1
  601. package/esm/absolute-list/absolute-list.d.ts.map +1 -1
  602. package/esm/absolute-list/absolute-list.js +39 -36
  603. package/esm/absolute-list/absolute-list.type.d.ts +6 -5
  604. package/esm/absolute-list/absolute-list.type.d.ts.map +1 -1
  605. package/esm/absolute-list/absolute-list.type.js +1 -5
  606. package/esm/absolute-list/index.js +2 -19
  607. package/esm/absolute-list/use-container.d.ts +5 -5
  608. package/esm/absolute-list/use-container.d.ts.map +1 -1
  609. package/esm/absolute-list/use-container.js +28 -35
  610. package/esm/alert/alert-icon.js +15 -24
  611. package/esm/alert/alert.js +39 -46
  612. package/esm/alert/alert.type.d.ts +3 -2
  613. package/esm/alert/alert.type.d.ts.map +1 -1
  614. package/esm/alert/alert.type.js +1 -5
  615. package/esm/alert/index.d.ts +1 -1
  616. package/esm/alert/index.d.ts.map +1 -1
  617. package/esm/alert/index.js +2 -19
  618. package/esm/animation-list/animation-list.d.ts.map +1 -1
  619. package/esm/animation-list/animation-list.js +71 -60
  620. package/esm/animation-list/animation-list.type.d.ts +1 -1
  621. package/esm/animation-list/animation-list.type.d.ts.map +1 -1
  622. package/esm/animation-list/animation-list.type.js +1 -5
  623. package/esm/animation-list/index.js +2 -19
  624. package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
  625. package/esm/breadcrumb/breadcrumb.js +35 -41
  626. package/esm/breadcrumb/breadcrumb.type.d.ts +2 -1
  627. package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
  628. package/esm/breadcrumb/breadcrumb.type.js +1 -5
  629. package/esm/breadcrumb/index.d.ts +1 -1
  630. package/esm/breadcrumb/index.d.ts.map +1 -1
  631. package/esm/breadcrumb/index.js +2 -19
  632. package/esm/breadcrumb/list.js +37 -41
  633. package/esm/button/button-group.js +10 -26
  634. package/esm/button/button-item.js +4 -12
  635. package/esm/button/button.js +35 -40
  636. package/esm/button/button.type.d.ts +1 -7
  637. package/esm/button/button.type.d.ts.map +1 -1
  638. package/esm/button/button.type.js +1 -5
  639. package/esm/button/index.d.ts +1 -1
  640. package/esm/button/index.d.ts.map +1 -1
  641. package/esm/button/index.js +3 -26
  642. package/esm/card/card-accordion-context.d.ts.map +1 -1
  643. package/esm/card/card-accordion-context.js +4 -11
  644. package/esm/card/card-accordion.js +23 -26
  645. package/esm/card/card-accordion.type.d.ts +0 -8
  646. package/esm/card/card-accordion.type.d.ts.map +1 -1
  647. package/esm/card/card-accordion.type.js +1 -5
  648. package/esm/card/card-body.js +11 -19
  649. package/esm/card/card-body.type.d.ts +0 -8
  650. package/esm/card/card-body.type.d.ts.map +1 -1
  651. package/esm/card/card-body.type.js +1 -5
  652. package/esm/card/card-footer.js +9 -17
  653. package/esm/card/card-footer.type.d.ts +0 -8
  654. package/esm/card/card-footer.type.d.ts.map +1 -1
  655. package/esm/card/card-footer.type.js +1 -5
  656. package/esm/card/card-header.js +17 -24
  657. package/esm/card/card-header.type.d.ts +0 -8
  658. package/esm/card/card-header.type.d.ts.map +1 -1
  659. package/esm/card/card-header.type.js +1 -5
  660. package/esm/card/card.context.d.ts.map +1 -1
  661. package/esm/card/card.context.js +4 -10
  662. package/esm/card/card.js +43 -47
  663. package/esm/card/card.type.js +1 -5
  664. package/esm/card/index.d.ts +1 -1
  665. package/esm/card/index.d.ts.map +1 -1
  666. package/esm/card/index.js +7 -54
  667. package/esm/card-group/card-group-context.d.ts.map +1 -1
  668. package/esm/card-group/card-group-context.js +4 -9
  669. package/esm/card-group/card-group.js +22 -30
  670. package/esm/card-group/card-group.type.js +1 -5
  671. package/esm/card-group/index.d.ts +1 -1
  672. package/esm/card-group/index.d.ts.map +1 -1
  673. package/esm/card-group/index.js +3 -26
  674. package/esm/card-group/item.js +18 -30
  675. package/esm/card-group/item.type.js +1 -5
  676. package/esm/card-group/lazyload.js +19 -27
  677. package/esm/carousel/carousel.js +45 -54
  678. package/esm/carousel/carousel.type.d.ts +0 -1
  679. package/esm/carousel/carousel.type.d.ts.map +1 -1
  680. package/esm/carousel/carousel.type.js +1 -5
  681. package/esm/carousel/index.d.ts +1 -1
  682. package/esm/carousel/index.d.ts.map +1 -1
  683. package/esm/carousel/index.js +2 -19
  684. package/esm/cascader/cascader.d.ts +1 -1
  685. package/esm/cascader/cascader.d.ts.map +1 -1
  686. package/esm/cascader/cascader.js +248 -137
  687. package/esm/cascader/cascader.type.d.ts +94 -22
  688. package/esm/cascader/cascader.type.d.ts.map +1 -1
  689. package/esm/cascader/cascader.type.js +1 -5
  690. package/esm/cascader/filter-list.js +13 -23
  691. package/esm/cascader/filter-list.type.js +1 -5
  692. package/esm/cascader/filter-node.js +12 -22
  693. package/esm/cascader/filter-node.type.js +1 -5
  694. package/esm/cascader/index.d.ts +1 -1
  695. package/esm/cascader/index.d.ts.map +1 -1
  696. package/esm/cascader/index.js +2 -19
  697. package/esm/cascader/list.js +9 -18
  698. package/esm/cascader/list.type.js +1 -5
  699. package/esm/cascader/node.d.ts.map +1 -1
  700. package/esm/cascader/node.js +49 -47
  701. package/esm/cascader/node.type.js +1 -5
  702. package/esm/checkbox/checkbox-group.d.ts +1 -1
  703. package/esm/checkbox/checkbox-group.js +25 -33
  704. package/esm/checkbox/checkbox-group.type.js +1 -5
  705. package/esm/checkbox/checkbox.d.ts.map +1 -1
  706. package/esm/checkbox/checkbox.js +33 -35
  707. package/esm/checkbox/checkbox.type.d.ts +1 -1
  708. package/esm/checkbox/checkbox.type.js +1 -5
  709. package/esm/checkbox/group-context.d.ts +1 -1
  710. package/esm/checkbox/group-context.d.ts.map +1 -1
  711. package/esm/checkbox/group-context.js +4 -9
  712. package/esm/checkbox/index.d.ts +1 -1
  713. package/esm/checkbox/index.d.ts.map +1 -1
  714. package/esm/checkbox/index.js +3 -26
  715. package/esm/checkbox/simple-checkbox.js +31 -37
  716. package/esm/checkbox/use-checkbox-inputable.js +12 -15
  717. package/esm/collapse/collapse-item.js +28 -41
  718. package/esm/collapse/collapse-item.type.js +1 -5
  719. package/esm/collapse/collapse.js +12 -20
  720. package/esm/collapse/collapse.type.js +1 -5
  721. package/esm/collapse/group-context.d.ts +1 -1
  722. package/esm/collapse/group-context.d.ts.map +1 -1
  723. package/esm/collapse/group-context.js +4 -9
  724. package/esm/collapse/index.d.ts +2 -2
  725. package/esm/collapse/index.d.ts.map +1 -1
  726. package/esm/collapse/index.js +3 -26
  727. package/esm/common/type.d.ts +7 -0
  728. package/esm/common/type.d.ts.map +1 -1
  729. package/esm/common/type.js +1 -5
  730. package/esm/common/use-clear.js +4 -11
  731. package/esm/common/use-inner-title.d.ts +2 -0
  732. package/esm/common/use-inner-title.d.ts.map +1 -1
  733. package/esm/common/use-inner-title.js +40 -28
  734. package/esm/common/use-tip.d.ts +18 -2
  735. package/esm/common/use-tip.d.ts.map +1 -1
  736. package/esm/common/use-tip.js +14 -21
  737. package/esm/common/use-with-form-config.d.ts +1 -1
  738. package/esm/common/use-with-form-config.d.ts.map +1 -1
  739. package/esm/common/use-with-form-config.js +10 -19
  740. package/esm/config/index.d.ts +2 -5
  741. package/esm/config/index.d.ts.map +1 -1
  742. package/esm/config/index.js +29 -54
  743. package/esm/config/locale/Props.d.ts +4 -4
  744. package/esm/config/locale/Props.d.ts.map +1 -1
  745. package/esm/config/locale/Props.js +1 -5
  746. package/esm/config/locale/en_US.js +2 -9
  747. package/esm/config/locale/index.js +18 -25
  748. package/esm/config/locale/zh-CN.js +2 -9
  749. package/esm/date-picker/date-picker.d.ts +1 -1
  750. package/esm/date-picker/date-picker.d.ts.map +1 -1
  751. package/esm/date-picker/date-picker.js +83 -81
  752. package/esm/date-picker/date-picker.type.d.ts +20 -9
  753. package/esm/date-picker/date-picker.type.d.ts.map +1 -1
  754. package/esm/date-picker/date-picker.type.js +1 -5
  755. package/esm/date-picker/day.js +74 -85
  756. package/esm/date-picker/day.type.js +1 -5
  757. package/esm/date-picker/index.d.ts +1 -1
  758. package/esm/date-picker/index.d.ts.map +1 -1
  759. package/esm/date-picker/index.js +2 -19
  760. package/esm/date-picker/month.js +32 -42
  761. package/esm/date-picker/month.type.d.ts +1 -1
  762. package/esm/date-picker/month.type.d.ts.map +1 -1
  763. package/esm/date-picker/month.type.js +1 -5
  764. package/esm/date-picker/picker.d.ts.map +1 -1
  765. package/esm/date-picker/picker.js +33 -40
  766. package/esm/date-picker/picker.type.d.ts +3 -2
  767. package/esm/date-picker/picker.type.d.ts.map +1 -1
  768. package/esm/date-picker/picker.type.js +1 -5
  769. package/esm/date-picker/pickerTitle.js +8 -15
  770. package/esm/date-picker/quarter.js +31 -41
  771. package/esm/date-picker/quarter.type.d.ts +1 -1
  772. package/esm/date-picker/quarter.type.d.ts.map +1 -1
  773. package/esm/date-picker/quarter.type.js +1 -5
  774. package/esm/date-picker/quick.d.ts.map +1 -1
  775. package/esm/date-picker/quick.js +18 -23
  776. package/esm/date-picker/quick.type.d.ts +1 -0
  777. package/esm/date-picker/quick.type.d.ts.map +1 -1
  778. package/esm/date-picker/quick.type.js +1 -5
  779. package/esm/date-picker/result.d.ts +1 -0
  780. package/esm/date-picker/result.d.ts.map +1 -1
  781. package/esm/date-picker/result.js +44 -52
  782. package/esm/date-picker/time.js +33 -47
  783. package/esm/date-picker/time.type.js +1 -5
  784. package/esm/date-picker/year.js +34 -44
  785. package/esm/date-picker/year.type.d.ts +1 -1
  786. package/esm/date-picker/year.type.d.ts.map +1 -1
  787. package/esm/date-picker/year.type.js +1 -5
  788. package/esm/descriptions/descriptions.js +35 -50
  789. package/esm/descriptions/descriptions.type.d.ts +1 -1
  790. package/esm/descriptions/descriptions.type.d.ts.map +1 -1
  791. package/esm/descriptions/descriptions.type.js +1 -5
  792. package/esm/descriptions/index.d.ts +1 -1
  793. package/esm/descriptions/index.d.ts.map +1 -1
  794. package/esm/descriptions/index.js +2 -19
  795. package/esm/divider/divider.js +7 -15
  796. package/esm/divider/divider.type.js +1 -5
  797. package/esm/divider/index.d.ts +1 -1
  798. package/esm/divider/index.d.ts.map +1 -1
  799. package/esm/divider/index.js +2 -19
  800. package/esm/dropdown/Item.d.ts.map +1 -1
  801. package/esm/dropdown/Item.js +47 -41
  802. package/esm/dropdown/dropdown.js +11 -19
  803. package/esm/dropdown/dropdown.type.d.ts +9 -7
  804. package/esm/dropdown/dropdown.type.d.ts.map +1 -1
  805. package/esm/dropdown/dropdown.type.js +10 -3
  806. package/esm/dropdown/dropdownIn.d.ts.map +1 -1
  807. package/esm/dropdown/dropdownIn.js +48 -53
  808. package/esm/dropdown/index.d.ts +1 -1
  809. package/esm/dropdown/index.d.ts.map +1 -1
  810. package/esm/dropdown/index.js +2 -19
  811. package/esm/editable-area/editable-area.d.ts.map +1 -1
  812. package/esm/editable-area/editable-area.js +50 -65
  813. package/esm/editable-area/editable-area.type.js +1 -5
  814. package/esm/editable-area/index.d.ts +1 -1
  815. package/esm/editable-area/index.d.ts.map +1 -1
  816. package/esm/editable-area/index.js +2 -19
  817. package/esm/empty/empty-image.js +43 -49
  818. package/esm/empty/empty.js +28 -35
  819. package/esm/empty/empty.type.js +1 -5
  820. package/esm/empty/index.d.ts +1 -1
  821. package/esm/empty/index.d.ts.map +1 -1
  822. package/esm/empty/index.js +2 -19
  823. package/esm/form/error-trans.js +11 -21
  824. package/esm/form/form-button.js +16 -24
  825. package/esm/form/form-field.d.ts.map +1 -1
  826. package/esm/form/form-field.js +19 -20
  827. package/esm/form/form-field.type.d.ts +1 -1
  828. package/esm/form/form-field.type.d.ts.map +1 -1
  829. package/esm/form/form-field.type.js +1 -5
  830. package/esm/form/form-fieldset.js +22 -34
  831. package/esm/form/form-fieldset.type.js +1 -5
  832. package/esm/form/form-flow.js +4 -11
  833. package/esm/form/form-flow.type.js +1 -5
  834. package/esm/form/form-footer-context.d.ts.map +1 -1
  835. package/esm/form/form-footer-context.js +22 -31
  836. package/esm/form/form-item.js +34 -38
  837. package/esm/form/form-item.type.js +1 -5
  838. package/esm/form/form.d.ts +1 -1
  839. package/esm/form/form.d.ts.map +1 -1
  840. package/esm/form/form.js +41 -45
  841. package/esm/form/form.type.d.ts +7 -0
  842. package/esm/form/form.type.d.ts.map +1 -1
  843. package/esm/form/form.type.js +1 -8
  844. package/esm/form/index.d.ts +2 -2
  845. package/esm/form/index.d.ts.map +1 -1
  846. package/esm/form/index.js +7 -54
  847. package/esm/gap/gap.d.ts.map +1 -1
  848. package/esm/gap/gap.js +21 -25
  849. package/esm/gap/gap.type.d.ts +7 -0
  850. package/esm/gap/gap.type.d.ts.map +1 -1
  851. package/esm/gap/gap.type.js +1 -5
  852. package/esm/gap/index.d.ts +1 -1
  853. package/esm/gap/index.d.ts.map +1 -1
  854. package/esm/gap/index.js +2 -19
  855. package/esm/gap/support.d.ts.map +1 -1
  856. package/esm/gap/support.js +2 -7
  857. package/esm/grid/grid.js +19 -34
  858. package/esm/grid/grid.type.d.ts +1 -1
  859. package/esm/grid/grid.type.d.ts.map +1 -1
  860. package/esm/grid/grid.type.js +1 -5
  861. package/esm/grid/index.js +2 -19
  862. package/esm/grid/util.d.ts +1 -1
  863. package/esm/grid/util.d.ts.map +1 -1
  864. package/esm/grid/util.js +9 -14
  865. package/esm/icon/icon.d.ts.map +1 -1
  866. package/esm/icon/icon.js +36 -42
  867. package/esm/icon/icon.type.d.ts +4 -4
  868. package/esm/icon/icon.type.d.ts.map +1 -1
  869. package/esm/icon/icon.type.js +1 -5
  870. package/esm/icon/index.d.ts +1 -1
  871. package/esm/icon/index.d.ts.map +1 -1
  872. package/esm/icon/index.js +2 -19
  873. package/esm/icons/config.d.ts +144 -0
  874. package/esm/icons/config.d.ts.map +1 -0
  875. package/esm/icons/config.js +157 -0
  876. package/esm/icons/icons.d.ts +46 -0
  877. package/esm/icons/icons.d.ts.map +1 -0
  878. package/esm/icons/icons.js +177 -0
  879. package/esm/icons/index.d.ts +1 -47
  880. package/esm/icons/index.d.ts.map +1 -1
  881. package/esm/icons/index.js +2 -194
  882. package/esm/image/image-event.d.ts +1 -1
  883. package/esm/image/image-event.d.ts.map +1 -1
  884. package/esm/image/image-event.js +12 -18
  885. package/esm/image/image-gallery.js +31 -37
  886. package/esm/image/image-group.d.ts.map +1 -1
  887. package/esm/image/image-group.js +34 -45
  888. package/esm/image/image-group.type.d.ts +2 -1
  889. package/esm/image/image-group.type.d.ts.map +1 -1
  890. package/esm/image/image-group.type.js +1 -5
  891. package/esm/image/image-magnify.js +17 -23
  892. package/esm/image/image.js +53 -66
  893. package/esm/image/image.type.d.ts +39 -5
  894. package/esm/image/image.type.d.ts.map +1 -1
  895. package/esm/image/image.type.js +1 -5
  896. package/esm/image/index.d.ts +1 -1
  897. package/esm/image/index.d.ts.map +1 -1
  898. package/esm/image/index.js +3 -26
  899. package/esm/index.d.ts +1 -1
  900. package/esm/index.d.ts.map +1 -1
  901. package/esm/index.js +49 -581
  902. package/esm/input/index.d.ts +2 -1
  903. package/esm/input/index.d.ts.map +1 -1
  904. package/esm/input/index.js +5 -40
  905. package/esm/input/input-group.d.ts.map +1 -1
  906. package/esm/input/input-group.js +37 -44
  907. package/esm/input/input-group.type.js +1 -5
  908. package/esm/input/input-number.js +33 -39
  909. package/esm/input/input-number.type.d.ts +1 -1
  910. package/esm/input/input-number.type.d.ts.map +1 -1
  911. package/esm/input/input-number.type.js +1 -5
  912. package/esm/input/input-password.js +23 -29
  913. package/esm/input/input-password.type.js +1 -5
  914. package/esm/input/input.js +18 -27
  915. package/esm/input/input.type.d.ts +8 -17
  916. package/esm/input/input.type.d.ts.map +1 -1
  917. package/esm/input/input.type.js +1 -5
  918. package/esm/input/simple-input.d.ts.map +1 -1
  919. package/esm/input/simple-input.js +35 -54
  920. package/esm/input/use-input-common.d.ts +4 -6
  921. package/esm/input/use-input-common.d.ts.map +1 -1
  922. package/esm/input/use-input-common.js +50 -62
  923. package/esm/list/base-item.js +47 -54
  924. package/esm/list/base-item.type.js +1 -5
  925. package/esm/list/index.d.ts +1 -1
  926. package/esm/list/index.d.ts.map +1 -1
  927. package/esm/list/index.js +3 -26
  928. package/esm/list/list.d.ts.map +1 -1
  929. package/esm/list/list.js +61 -70
  930. package/esm/list/list.type.js +1 -5
  931. package/esm/menu/index.d.ts +1 -1
  932. package/esm/menu/index.d.ts.map +1 -1
  933. package/esm/menu/index.js +2 -19
  934. package/esm/menu/item.d.ts.map +1 -1
  935. package/esm/menu/item.js +45 -49
  936. package/esm/menu/menu.d.ts.map +1 -1
  937. package/esm/menu/menu.js +36 -39
  938. package/esm/menu/menu.type.d.ts +3 -3
  939. package/esm/menu/menu.type.d.ts.map +1 -1
  940. package/esm/menu/menu.type.js +1 -5
  941. package/esm/menu/scroll.js +25 -28
  942. package/esm/menu/scrollbar.js +16 -24
  943. package/esm/message/func.js +6 -14
  944. package/esm/message/func.type.d.ts +2 -2
  945. package/esm/message/func.type.d.ts.map +1 -1
  946. package/esm/message/func.type.js +1 -5
  947. package/esm/message/index.d.ts +1 -0
  948. package/esm/message/index.d.ts.map +1 -1
  949. package/esm/message/index.js +2 -19
  950. package/esm/message/manager.d.ts.map +1 -1
  951. package/esm/message/manager.js +15 -25
  952. package/esm/message/message.d.ts.map +1 -1
  953. package/esm/message/message.js +67 -69
  954. package/esm/message/message.type.js +1 -5
  955. package/esm/modal/index.d.ts +1 -1
  956. package/esm/modal/index.d.ts.map +1 -1
  957. package/esm/modal/index.js +4 -33
  958. package/esm/modal/modal-content.d.ts.map +1 -1
  959. package/esm/modal/modal-content.js +87 -74
  960. package/esm/modal/modal-content.type.js +1 -5
  961. package/esm/modal/modal-func.d.ts +1 -1
  962. package/esm/modal/modal-func.d.ts.map +1 -1
  963. package/esm/modal/modal-func.js +40 -44
  964. package/esm/modal/modal-func.type.js +1 -5
  965. package/esm/modal/modal-submit.js +17 -25
  966. package/esm/modal/modal.js +24 -26
  967. package/esm/modal/modal.type.d.ts +1 -1
  968. package/esm/modal/modal.type.d.ts.map +1 -1
  969. package/esm/modal/modal.type.js +1 -5
  970. package/esm/modal/use-modal-move.js +24 -27
  971. package/esm/modal/use-modal-resize.js +19 -22
  972. package/esm/pagination/index.d.ts +1 -1
  973. package/esm/pagination/index.d.ts.map +1 -1
  974. package/esm/pagination/index.js +2 -19
  975. package/esm/pagination/pagination-button.js +17 -25
  976. package/esm/pagination/pagination-button.type.js +1 -5
  977. package/esm/pagination/pagination-buttons.js +37 -39
  978. package/esm/pagination/pagination-buttons.type.d.ts +2 -2
  979. package/esm/pagination/pagination-buttons.type.d.ts.map +1 -1
  980. package/esm/pagination/pagination-buttons.type.js +1 -5
  981. package/esm/pagination/pagination-jumper.js +26 -30
  982. package/esm/pagination/pagination-jumper.type.js +1 -5
  983. package/esm/pagination/pagination-next.d.ts.map +1 -1
  984. package/esm/pagination/pagination-next.js +10 -18
  985. package/esm/pagination/pagination-prev.d.ts.map +1 -1
  986. package/esm/pagination/pagination-prev.js +10 -18
  987. package/esm/pagination/pagination-simple.js +11 -17
  988. package/esm/pagination/pagination-simple.type.js +1 -5
  989. package/esm/pagination/pagination-size-list.js +8 -17
  990. package/esm/pagination/pagination-size-list.type.js +1 -5
  991. package/esm/pagination/pagination.d.ts.map +1 -1
  992. package/esm/pagination/pagination.js +32 -42
  993. package/esm/pagination/pagination.type.d.ts +4 -4
  994. package/esm/pagination/pagination.type.d.ts.map +1 -1
  995. package/esm/pagination/pagination.type.js +1 -5
  996. package/esm/popover/confirm.js +39 -46
  997. package/esm/popover/confirm.type.d.ts +2 -2
  998. package/esm/popover/confirm.type.d.ts.map +1 -1
  999. package/esm/popover/confirm.type.js +1 -5
  1000. package/esm/popover/index.d.ts +1 -1
  1001. package/esm/popover/index.d.ts.map +1 -1
  1002. package/esm/popover/index.js +3 -26
  1003. package/esm/popover/popover.d.ts.map +1 -1
  1004. package/esm/popover/popover.js +40 -45
  1005. package/esm/popover/popover.type.js +1 -5
  1006. package/esm/progress/analyzeColor.js +3 -11
  1007. package/esm/progress/circle.js +21 -30
  1008. package/esm/progress/index.d.ts +1 -1
  1009. package/esm/progress/index.d.ts.map +1 -1
  1010. package/esm/progress/index.js +2 -19
  1011. package/esm/progress/line-popup.js +15 -21
  1012. package/esm/progress/line.js +20 -29
  1013. package/esm/progress/progress.js +13 -21
  1014. package/esm/progress/progress.type.js +1 -5
  1015. package/esm/radio/group-context.d.ts +1 -1
  1016. package/esm/radio/group-context.d.ts.map +1 -1
  1017. package/esm/radio/group-context.js +4 -9
  1018. package/esm/radio/index.d.ts +1 -1
  1019. package/esm/radio/index.d.ts.map +1 -1
  1020. package/esm/radio/index.js +3 -26
  1021. package/esm/radio/radio-group.d.ts +1 -1
  1022. package/esm/radio/radio-group.d.ts.map +1 -1
  1023. package/esm/radio/radio-group.js +38 -45
  1024. package/esm/radio/radio-group.type.js +1 -5
  1025. package/esm/radio/radio.js +20 -27
  1026. package/esm/radio/radio.type.js +1 -5
  1027. package/esm/radio/simple-radio.js +24 -30
  1028. package/esm/rate/index.d.ts +1 -1
  1029. package/esm/rate/index.d.ts.map +1 -1
  1030. package/esm/rate/index.js +2 -19
  1031. package/esm/rate/rate.d.ts +1 -1
  1032. package/esm/rate/rate.d.ts.map +1 -1
  1033. package/esm/rate/rate.js +34 -42
  1034. package/esm/rate/rate.type.d.ts +2 -2
  1035. package/esm/rate/rate.type.d.ts.map +1 -1
  1036. package/esm/rate/rate.type.js +1 -5
  1037. package/esm/rule/index.js +2 -12
  1038. package/esm/select/index.d.ts +1 -1
  1039. package/esm/select/index.d.ts.map +1 -1
  1040. package/esm/select/index.js +2 -19
  1041. package/esm/select/list-columns-option.d.ts.map +1 -1
  1042. package/esm/select/list-columns-option.js +8 -17
  1043. package/esm/select/list-columns-option.type.js +1 -5
  1044. package/esm/select/list-columns.js +21 -33
  1045. package/esm/select/list-option.d.ts.map +1 -1
  1046. package/esm/select/list-option.js +19 -27
  1047. package/esm/select/list-option.type.js +1 -5
  1048. package/esm/select/list-tree.d.ts.map +1 -1
  1049. package/esm/select/list-tree.js +14 -28
  1050. package/esm/select/list-tree.type.d.ts +1 -1
  1051. package/esm/select/list-tree.type.d.ts.map +1 -1
  1052. package/esm/select/list-tree.type.js +1 -5
  1053. package/esm/select/list.js +41 -46
  1054. package/esm/select/result-input.d.ts.map +1 -1
  1055. package/esm/select/result-input.js +49 -59
  1056. package/esm/select/result-input.type.d.ts +6 -1
  1057. package/esm/select/result-input.type.d.ts.map +1 -1
  1058. package/esm/select/result-input.type.js +1 -5
  1059. package/esm/select/result-more.d.ts +2 -2
  1060. package/esm/select/result-more.d.ts.map +1 -1
  1061. package/esm/select/result-more.js +49 -40
  1062. package/esm/select/result-more.type.d.ts +4 -0
  1063. package/esm/select/result-more.type.d.ts.map +1 -1
  1064. package/esm/select/result-more.type.js +1 -5
  1065. package/esm/select/result.d.ts.map +1 -1
  1066. package/esm/select/result.js +178 -128
  1067. package/esm/select/result.type.d.ts +18 -4
  1068. package/esm/select/result.type.d.ts.map +1 -1
  1069. package/esm/select/result.type.js +1 -5
  1070. package/esm/select/select.d.ts +1 -1
  1071. package/esm/select/select.d.ts.map +1 -1
  1072. package/esm/select/select.js +301 -228
  1073. package/esm/select/select.type.d.ts +126 -24
  1074. package/esm/select/select.type.d.ts.map +1 -1
  1075. package/esm/select/select.type.js +1 -5
  1076. package/esm/slider/index.d.ts +1 -1
  1077. package/esm/slider/index.d.ts.map +1 -1
  1078. package/esm/slider/index.js +2 -19
  1079. package/esm/slider/slider.d.ts +1 -1
  1080. package/esm/slider/slider.d.ts.map +1 -1
  1081. package/esm/slider/slider.js +33 -38
  1082. package/esm/slider/slider.type.js +1 -5
  1083. package/esm/spin/base.d.ts.map +1 -1
  1084. package/esm/spin/base.js +16 -24
  1085. package/esm/spin/index.d.ts +1 -1
  1086. package/esm/spin/index.d.ts.map +1 -1
  1087. package/esm/spin/index.js +2 -19
  1088. package/esm/spin/spin.d.ts +2 -1
  1089. package/esm/spin/spin.d.ts.map +1 -1
  1090. package/esm/spin/spin.js +28 -34
  1091. package/esm/spin/spin.type.d.ts +3 -3
  1092. package/esm/spin/spin.type.d.ts.map +1 -1
  1093. package/esm/spin/spin.type.js +1 -5
  1094. package/esm/spin/spins.js +71 -80
  1095. package/esm/spin/utils.js +2 -10
  1096. package/esm/steps/index.d.ts +1 -1
  1097. package/esm/steps/index.d.ts.map +1 -1
  1098. package/esm/steps/index.js +3 -26
  1099. package/esm/steps/step.arrow.d.ts.map +1 -1
  1100. package/esm/steps/step.arrow.js +15 -20
  1101. package/esm/steps/step.default.d.ts.map +1 -1
  1102. package/esm/steps/step.default.js +25 -29
  1103. package/esm/steps/step.dot.d.ts.map +1 -1
  1104. package/esm/steps/step.dot.js +20 -24
  1105. package/esm/steps/step.js +28 -37
  1106. package/esm/steps/step.type.js +1 -5
  1107. package/esm/steps/steps-context.d.ts.map +1 -1
  1108. package/esm/steps/steps-context.js +4 -9
  1109. package/esm/steps/steps-context.type.js +1 -5
  1110. package/esm/steps/steps.js +18 -24
  1111. package/esm/steps/steps.type.d.ts +28 -3
  1112. package/esm/steps/steps.type.d.ts.map +1 -1
  1113. package/esm/steps/steps.type.js +1 -5
  1114. package/esm/sticky/index.d.ts +1 -1
  1115. package/esm/sticky/index.d.ts.map +1 -1
  1116. package/esm/sticky/index.js +2 -19
  1117. package/esm/sticky/sticky.d.ts.map +1 -1
  1118. package/esm/sticky/sticky.js +82 -77
  1119. package/esm/sticky/sticky.type.d.ts +5 -1
  1120. package/esm/sticky/sticky.type.d.ts.map +1 -1
  1121. package/esm/sticky/sticky.type.js +1 -5
  1122. package/esm/switch/index.d.ts +1 -1
  1123. package/esm/switch/index.d.ts.map +1 -1
  1124. package/esm/switch/index.js +2 -19
  1125. package/esm/switch/switch.d.ts +1 -1
  1126. package/esm/switch/switch.d.ts.map +1 -1
  1127. package/esm/switch/switch.js +32 -32
  1128. package/esm/switch/switch.type.js +1 -5
  1129. package/esm/table/colgroup.js +6 -14
  1130. package/esm/table/index.d.ts +1 -1
  1131. package/esm/table/index.d.ts.map +1 -1
  1132. package/esm/table/index.js +2 -19
  1133. package/esm/table/table.d.ts.map +1 -1
  1134. package/esm/table/table.js +163 -155
  1135. package/esm/table/table.type.d.ts +12 -10
  1136. package/esm/table/table.type.d.ts.map +1 -1
  1137. package/esm/table/table.type.js +1 -5
  1138. package/esm/table/tbody.d.ts.map +1 -1
  1139. package/esm/table/tbody.js +14 -21
  1140. package/esm/table/tbody.type.d.ts +4 -3
  1141. package/esm/table/tbody.type.d.ts.map +1 -1
  1142. package/esm/table/tbody.type.js +1 -5
  1143. package/esm/table/temp/01-base.d.ts.map +1 -1
  1144. package/esm/table/temp/01-base.js +40 -37
  1145. package/esm/table/tfoot.js +12 -22
  1146. package/esm/table/tfoot.type.js +1 -12
  1147. package/esm/table/thead.d.ts.map +1 -1
  1148. package/esm/table/thead.js +53 -68
  1149. package/esm/table/thead.type.d.ts +2 -2
  1150. package/esm/table/thead.type.d.ts.map +1 -1
  1151. package/esm/table/thead.type.js +1 -5
  1152. package/esm/table/tr.d.ts +1 -1
  1153. package/esm/table/tr.d.ts.map +1 -1
  1154. package/esm/table/tr.js +52 -66
  1155. package/esm/table/use-table-select.d.ts +1 -2
  1156. package/esm/table/use-table-select.d.ts.map +1 -1
  1157. package/esm/table/use-table-select.js +20 -29
  1158. package/esm/tabs/index.d.ts +1 -1
  1159. package/esm/tabs/index.d.ts.map +1 -1
  1160. package/esm/tabs/index.js +3 -26
  1161. package/esm/tabs/tab.d.ts.map +1 -1
  1162. package/esm/tabs/tab.js +25 -32
  1163. package/esm/tabs/tab.type.js +1 -5
  1164. package/esm/tabs/tabs-header.d.ts.map +1 -1
  1165. package/esm/tabs/tabs-header.js +62 -65
  1166. package/esm/tabs/tabs-header.type.js +1 -5
  1167. package/esm/tabs/tabs-panel.d.ts.map +1 -1
  1168. package/esm/tabs/tabs-panel.js +23 -19
  1169. package/esm/tabs/tabs-panel.type.js +1 -5
  1170. package/esm/tabs/tabs.d.ts.map +1 -1
  1171. package/esm/tabs/tabs.js +59 -69
  1172. package/esm/tabs/tabs.type.d.ts +4 -4
  1173. package/esm/tabs/tabs.type.d.ts.map +1 -1
  1174. package/esm/tabs/tabs.type.js +1 -5
  1175. package/esm/tag/index.d.ts +1 -1
  1176. package/esm/tag/index.d.ts.map +1 -1
  1177. package/esm/tag/index.js +3 -26
  1178. package/esm/tag/tag-input.js +16 -24
  1179. package/esm/tag/tag.d.ts.map +1 -1
  1180. package/esm/tag/tag.js +41 -41
  1181. package/esm/tag/tag.type.d.ts +17 -6
  1182. package/esm/tag/tag.type.d.ts.map +1 -1
  1183. package/esm/tag/tag.type.js +1 -5
  1184. package/esm/tag/use-tag.d.ts.map +1 -1
  1185. package/esm/tag/use-tag.js +27 -25
  1186. package/esm/textarea/index.d.ts +1 -1
  1187. package/esm/textarea/index.d.ts.map +1 -1
  1188. package/esm/textarea/index.js +2 -19
  1189. package/esm/textarea/simple-textarea.js +26 -40
  1190. package/esm/textarea/textarea.d.ts +1 -1
  1191. package/esm/textarea/textarea.d.ts.map +1 -1
  1192. package/esm/textarea/textarea.js +52 -65
  1193. package/esm/textarea/textarea.type.d.ts +4 -2
  1194. package/esm/textarea/textarea.type.d.ts.map +1 -1
  1195. package/esm/textarea/textarea.type.js +1 -5
  1196. package/esm/textarea/use-auto-size.js +20 -28
  1197. package/esm/tooltip/index.d.ts +1 -1
  1198. package/esm/tooltip/index.d.ts.map +1 -1
  1199. package/esm/tooltip/index.js +2 -19
  1200. package/esm/tooltip/tooltip.d.ts.map +1 -1
  1201. package/esm/tooltip/tooltip.js +36 -43
  1202. package/esm/tooltip/tooltip.type.d.ts +6 -0
  1203. package/esm/tooltip/tooltip.type.d.ts.map +1 -1
  1204. package/esm/tooltip/tooltip.type.js +1 -5
  1205. package/esm/transfer/index.d.ts +1 -1
  1206. package/esm/transfer/index.d.ts.map +1 -1
  1207. package/esm/transfer/index.js +2 -19
  1208. package/esm/transfer/transfer-list-header.d.ts.map +1 -1
  1209. package/esm/transfer/transfer-list-header.js +22 -29
  1210. package/esm/transfer/transfer-list-header.type.js +1 -5
  1211. package/esm/transfer/transfer-list-item.d.ts.map +1 -1
  1212. package/esm/transfer/transfer-list-item.js +21 -26
  1213. package/esm/transfer/transfer-list-item.type.d.ts +1 -1
  1214. package/esm/transfer/transfer-list-item.type.d.ts.map +1 -1
  1215. package/esm/transfer/transfer-list-item.type.js +1 -5
  1216. package/esm/transfer/transfer-list.d.ts.map +1 -1
  1217. package/esm/transfer/transfer-list.js +44 -51
  1218. package/esm/transfer/transfer-list.type.js +1 -5
  1219. package/esm/transfer/transfer-operate.js +6 -14
  1220. package/esm/transfer/transfer-operate.type.js +1 -5
  1221. package/esm/transfer/transfer.js +28 -33
  1222. package/esm/transfer/transfer.type.d.ts +30 -3
  1223. package/esm/transfer/transfer.type.d.ts.map +1 -1
  1224. package/esm/transfer/transfer.type.js +1 -5
  1225. package/esm/tree/index.d.ts +1 -1
  1226. package/esm/tree/index.d.ts.map +1 -1
  1227. package/esm/tree/index.js +2 -19
  1228. package/esm/tree/tree-checkbox.d.ts +2 -1
  1229. package/esm/tree/tree-checkbox.d.ts.map +1 -1
  1230. package/esm/tree/tree-checkbox.js +9 -13
  1231. package/esm/tree/tree-checkbox.type.d.ts +2 -2
  1232. package/esm/tree/tree-checkbox.type.d.ts.map +1 -1
  1233. package/esm/tree/tree-checkbox.type.js +1 -5
  1234. package/esm/tree/tree-content.d.ts +2 -1
  1235. package/esm/tree/tree-content.d.ts.map +1 -1
  1236. package/esm/tree/tree-content.js +46 -49
  1237. package/esm/tree/tree-content.type.d.ts +2 -2
  1238. package/esm/tree/tree-content.type.d.ts.map +1 -1
  1239. package/esm/tree/tree-content.type.js +1 -5
  1240. package/esm/tree/tree-context.d.ts +3 -3
  1241. package/esm/tree/tree-context.d.ts.map +1 -1
  1242. package/esm/tree/tree-context.js +8 -21
  1243. package/esm/tree/tree-context.type.d.ts +5 -16
  1244. package/esm/tree/tree-context.type.d.ts.map +1 -1
  1245. package/esm/tree/tree-context.type.js +1 -5
  1246. package/esm/tree/tree-list.d.ts +1 -1
  1247. package/esm/tree/tree-list.d.ts.map +1 -1
  1248. package/esm/tree/tree-list.js +12 -19
  1249. package/esm/tree/tree-list.type.d.ts +3 -3
  1250. package/esm/tree/tree-list.type.d.ts.map +1 -1
  1251. package/esm/tree/tree-list.type.js +1 -5
  1252. package/esm/tree/tree-node.d.ts +1 -1
  1253. package/esm/tree/tree-node.d.ts.map +1 -1
  1254. package/esm/tree/tree-node.js +62 -55
  1255. package/esm/tree/tree-node.type.d.ts +3 -3
  1256. package/esm/tree/tree-node.type.d.ts.map +1 -1
  1257. package/esm/tree/tree-node.type.js +1 -5
  1258. package/esm/tree/tree-root.d.ts +1 -1
  1259. package/esm/tree/tree-root.d.ts.map +1 -1
  1260. package/esm/tree/tree-root.js +15 -22
  1261. package/esm/tree/tree-root.type.d.ts +3 -3
  1262. package/esm/tree/tree-root.type.d.ts.map +1 -1
  1263. package/esm/tree/tree-root.type.js +1 -5
  1264. package/esm/tree/tree.d.ts +2 -1
  1265. package/esm/tree/tree.d.ts.map +1 -1
  1266. package/esm/tree/tree.js +43 -53
  1267. package/esm/tree/tree.type.d.ts +27 -10
  1268. package/esm/tree/tree.type.d.ts.map +1 -1
  1269. package/esm/tree/tree.type.js +1 -5
  1270. package/esm/tree-select/index.d.ts +1 -1
  1271. package/esm/tree-select/index.d.ts.map +1 -1
  1272. package/esm/tree-select/index.js +2 -19
  1273. package/esm/tree-select/tree-select.d.ts +2 -2
  1274. package/esm/tree-select/tree-select.d.ts.map +1 -1
  1275. package/esm/tree-select/tree-select.js +211 -139
  1276. package/esm/tree-select/tree-select.type.d.ts +93 -20
  1277. package/esm/tree-select/tree-select.type.d.ts.map +1 -1
  1278. package/esm/tree-select/tree-select.type.js +1 -5
  1279. package/esm/upload/button.d.ts.map +1 -1
  1280. package/esm/upload/button.js +39 -50
  1281. package/esm/upload/button.type.d.ts +1 -1
  1282. package/esm/upload/button.type.d.ts.map +1 -1
  1283. package/esm/upload/button.type.js +1 -5
  1284. package/esm/upload/drop.js +23 -33
  1285. package/esm/upload/image.js +10 -18
  1286. package/esm/upload/image.type.js +1 -5
  1287. package/esm/upload/index.d.ts +1 -1
  1288. package/esm/upload/index.d.ts.map +1 -1
  1289. package/esm/upload/index.js +4 -33
  1290. package/esm/upload/result.d.ts +1 -1
  1291. package/esm/upload/result.d.ts.map +1 -1
  1292. package/esm/upload/result.js +64 -71
  1293. package/esm/upload/upload.d.ts +1 -1
  1294. package/esm/upload/upload.d.ts.map +1 -1
  1295. package/esm/upload/upload.js +54 -68
  1296. package/esm/upload/upload.type.js +1 -5
  1297. package/esm/upload/useInputClick.js +5 -12
  1298. package/esm/virtual-scroll/index.js +3 -20
  1299. package/esm/virtual-scroll/scroll.js +21 -34
  1300. package/esm/virtual-scroll/virtual-scroll-list.js +32 -43
  1301. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  1302. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  1303. package/esm/virtual-scroll/virtual-scroll-list.type.js +1 -5
  1304. package/package.json +5 -4
  1305. package/cjs/icons/caret.d.ts +0 -4
  1306. package/cjs/icons/caret.d.ts.map +0 -1
  1307. package/cjs/icons/caret.js +0 -19
  1308. package/cjs/icons/caret.type.d.ts +0 -2
  1309. package/cjs/icons/caret.type.d.ts.map +0 -1
  1310. package/cjs/icons/caret.type.js +0 -5
  1311. package/cjs/table/temp/00-scroll.d.ts +0 -4
  1312. package/cjs/table/temp/00-scroll.d.ts.map +0 -1
  1313. package/cjs/table/temp/00-scroll.js +0 -33
  1314. package/esm/icons/caret.d.ts +0 -4
  1315. package/esm/icons/caret.d.ts.map +0 -1
  1316. package/esm/icons/caret.js +0 -19
  1317. package/esm/icons/caret.type.d.ts +0 -2
  1318. package/esm/icons/caret.type.d.ts.map +0 -1
  1319. package/esm/icons/caret.type.js +0 -5
  1320. package/esm/table/temp/00-scroll.d.ts +0 -4
  1321. package/esm/table/temp/00-scroll.d.ts.map +0 -1
  1322. package/esm/table/temp/00-scroll.js +0 -33
@@ -1,54 +1,49 @@
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
- require("core-js/modules/es.array.slice.js");
12
- require("core-js/modules/es.array.concat.js");
13
- require("core-js/modules/es.array.map.js");
14
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
15
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
- var _classnames = _interopRequireDefault(require("classnames"));
17
- var _hooks = require("@sheinx/hooks");
18
- var _react = _interopRequireDefault(require("react"));
19
- var _list = _interopRequireDefault(require("./list"));
20
- var _jsxRuntime = require("react/jsx-runtime");
21
- 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; }
22
- 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; }
23
- var getKey = _hooks.util.getKey;
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ 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); }
5
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
+ 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; }
8
+ 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; }
9
+ 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; }
10
+ 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; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ 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); }
13
+ import classNames from 'classnames';
14
+ import { util } from '@sheinx/hooks';
15
+ import React from 'react';
16
+ import List from "./list";
17
+ import { Fragment as _Fragment } from "react/jsx-runtime";
18
+ import { jsx as _jsx } from "react/jsx-runtime";
19
+ import { jsxs as _jsxs } from "react/jsx-runtime";
20
+ var getKey = util.getKey;
24
21
  var Breadcrumb = function Breadcrumb(props) {
25
22
  var _props$jssStyle, _props$jssStyle$bread;
26
23
  var _props$data = props.data,
27
24
  data = _props$data === void 0 ? [] : _props$data,
28
25
  _props$separator = props.separator,
29
26
  separator = _props$separator === void 0 ? '/' : _props$separator;
30
- var breadcrumbClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 ? void 0 : (_props$jssStyle$bread = _props$jssStyle.breadcrumb) === null || _props$jssStyle$bread === void 0 ? void 0 : _props$jssStyle$bread.call(_props$jssStyle);
31
- // ...
32
-
27
+ var breadcrumbClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$bread = _props$jssStyle.breadcrumb) === null || _props$jssStyle$bread === void 0 ? void 0 : _props$jssStyle$bread.call(_props$jssStyle);
33
28
  var renderItem = function renderItem(dataItem) {
34
29
  var d = dataItem;
35
30
  var item = d.title;
36
- if (! /*#__PURE__*/_react.default.isValidElement(item)) {
31
+ if (! /*#__PURE__*/React.isValidElement(item)) {
37
32
  if (d.onClick || d.url) {
38
33
  var _props = {
39
34
  onClick: d.onClick
40
35
  };
41
36
  if (d.url) _props.href = d.url;
42
- item = /*#__PURE__*/(0, _jsxRuntime.jsxs)("a", _objectSpread(_objectSpread({}, _props), {}, {
37
+ item = /*#__PURE__*/_jsxs("a", _objectSpread(_objectSpread({}, _props), {}, {
43
38
  className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.content,
44
- children: [d.icon, d.icon && d.title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
39
+ children: [d.icon, d.icon && d.title && /*#__PURE__*/_jsx(_Fragment, {
45
40
  children: "\xA0"
46
41
  }), d.title]
47
42
  }));
48
43
  } else {
49
- item = /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
44
+ item = /*#__PURE__*/_jsxs("span", {
50
45
  className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.content,
51
- children: [d.icon, d.icon && d.title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
46
+ children: [d.icon, d.icon && d.title && /*#__PURE__*/_jsx(_Fragment, {
52
47
  children: "\xA0"
53
48
  }), d.title]
54
49
  });
@@ -57,35 +52,35 @@ var Breadcrumb = function Breadcrumb(props) {
57
52
  return props.renderItem ? props.renderItem(dataItem) : item;
58
53
  };
59
54
  var renderArray = function renderArray(data) {
60
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_list.default, {
55
+ return /*#__PURE__*/_jsx(List, {
61
56
  data: data,
62
57
  renderItem: renderItem,
63
58
  jssStyle: props.jssStyle
64
59
  });
65
60
  };
66
- var className = (0, _classnames.default)(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.wrapper, props.className);
61
+ var className = classNames(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.wrapper, props.className);
67
62
  var getRenderData = function getRenderData() {
68
63
  if (!props.max) return data;
69
64
  if (data.length <= props.max) return data;
70
65
  var first = data[0];
71
66
  var reset = data.slice(data.length - props.max + 1);
72
67
  var more = {
73
- title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
74
- className: (0, _classnames.default)(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.content, breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.ellipsis),
68
+ title: /*#__PURE__*/_jsx("span", {
69
+ className: classNames(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.content, breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.ellipsis),
75
70
  children: "..."
76
71
  })
77
72
  };
78
- return [first, more].concat((0, _toConsumableArray2.default)(reset));
73
+ return [first, more].concat(_toConsumableArray(reset));
79
74
  };
80
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
75
+ return /*#__PURE__*/_jsx("div", {
81
76
  className: className,
82
77
  style: props.style,
83
78
  children: data && getRenderData().map(function (d, index) {
84
79
  var itemFirst = Array.isArray(d) ? d[0] : d;
85
80
  var isLastItem = index === (props.max !== undefined ? props.max : data.length - 1);
86
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
81
+ return /*#__PURE__*/_jsxs("div", {
87
82
  className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item,
88
- children: [Array.isArray(d) ? renderArray(d) : renderItem(d), !isLastItem && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
83
+ children: [Array.isArray(d) ? renderArray(d) : renderItem(d), !isLastItem && /*#__PURE__*/_jsx("div", {
89
84
  className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.separator,
90
85
  children: separator
91
86
  })]
@@ -93,5 +88,4 @@ var Breadcrumb = function Breadcrumb(props) {
93
88
  })
94
89
  });
95
90
  };
96
- var _default = Breadcrumb;
97
- exports.default = _default;
91
+ export default Breadcrumb;
@@ -3,7 +3,7 @@ import type { CommonType } from '../common/type';
3
3
  import type { ReactNode } from 'react';
4
4
  import type { KeygenType } from '@sheinx/hooks';
5
5
  import type { PopoverJssStyle } from '../popover/popover.type';
6
- export declare type StructureArray<T> = Array<T | T[]>;
6
+ export type StructureArray<T> = Array<T | T[]>;
7
7
  export interface BreadcrumbClasses {
8
8
  wrapper: string;
9
9
  down: string;
@@ -15,6 +15,7 @@ export interface BreadcrumbClasses {
15
15
  itemWithDrop: string;
16
16
  dropdown: string;
17
17
  ellipsis: string;
18
+ itemWrapper: string;
18
19
  }
19
20
  export interface BreadcrumbJssStyle extends PopoverJssStyle {
20
21
  breadcrumb?: () => BreadcrumbClasses;
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.type.d.ts","sourceRoot":"","sources":["breadcrumb.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,oBAAY,cAAc,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,UAAU,CAAC,EAAE,MAAM,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,eAAe,CAAC,IAAI,GAAG,kBAAkB,CACxD,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;IAC/C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAE9B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IAE5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,SAAS,CAAC;IACxC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAErD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB"}
1
+ {"version":3,"file":"breadcrumb.type.d.ts","sourceRoot":"","sources":["breadcrumb.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,UAAU,CAAC,EAAE,MAAM,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,eAAe,CAAC,IAAI,GAAG,kBAAkB,CACxD,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;IAC/C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAE9B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IAE5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,SAAS,CAAC;IACxC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAErD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB"}
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ export {};
@@ -1,3 +1,3 @@
1
1
  export { default, default as Breadcrumb } from './breadcrumb';
2
- export type { BreadcrumbProps, BreadcrumbDataType } from './breadcrumb.type';
2
+ export type { BreadcrumbProps, BreadcrumbDataType, BreadcrumbClasses } from './breadcrumb.type';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,19 +1,2 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "Breadcrumb", {
8
- enumerable: true,
9
- get: function get() {
10
- return _breadcrumb.default;
11
- }
12
- });
13
- Object.defineProperty(exports, "default", {
14
- enumerable: true,
15
- get: function get() {
16
- return _breadcrumb.default;
17
- }
18
- });
19
- var _breadcrumb = _interopRequireDefault(require("./breadcrumb"));
1
+ "use client";
2
+ export { default, default as Breadcrumb } from "./breadcrumb";
@@ -1,30 +1,27 @@
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 _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
13
- require("core-js/modules/es.array.map.js");
14
- require("core-js/modules/es.array.slice.js");
15
- var _react = _interopRequireDefault(require("react"));
16
- var _classnames = _interopRequireDefault(require("classnames"));
17
- var _animationList = _interopRequireDefault(require("../animation-list"));
18
- var _absoluteList = _interopRequireDefault(require("../absolute-list"));
19
- var _hooks = require("@sheinx/hooks");
20
- var _caret = _interopRequireDefault(require("../icons/caret"));
21
- var _jsxRuntime = require("react/jsx-runtime");
22
- 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; }
23
- 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 _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import React from 'react';
14
+ import classNames from 'classnames';
15
+ import AnimationList from "../animation-list";
16
+ import AbsoluteList from "../absolute-list";
17
+ import { usePopup } from '@sheinx/hooks';
18
+ import Icons from "../icons";
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { jsxs as _jsxs } from "react/jsx-runtime";
24
21
  var List = function List(props) {
25
22
  var _props$jssStyle, _props$jssStyle$bread;
26
- var classes = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 ? void 0 : (_props$jssStyle$bread = _props$jssStyle.breadcrumb) === null || _props$jssStyle$bread === void 0 ? void 0 : _props$jssStyle$bread.call(_props$jssStyle);
27
- var _usePopup = (0, _hooks.usePopup)({
23
+ var classes = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$bread = _props$jssStyle.breadcrumb) === null || _props$jssStyle$bread === void 0 ? void 0 : _props$jssStyle$bread.call(_props$jssStyle);
24
+ var _usePopup = usePopup({
28
25
  disabled: false,
29
26
  trigger: 'hover',
30
27
  position: 'bottom',
@@ -40,10 +37,10 @@ var List = function List(props) {
40
37
  closePop = _usePopup.closePop;
41
38
  var renderList = function renderList(arr) {
42
39
  return arr.map(function (item, index) {
43
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
40
+ return /*#__PURE__*/_jsx("div", {
44
41
  className: classes === null || classes === void 0 ? void 0 : classes.itemWrapper,
45
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
46
- className: (0, _classnames.default)(classes === null || classes === void 0 ? void 0 : classes.dropdownItem),
42
+ children: /*#__PURE__*/_jsx("div", {
43
+ className: classNames(classes === null || classes === void 0 ? void 0 : classes.dropdownItem),
47
44
  onClick: closePop,
48
45
  children: props.renderItem(item)
49
46
  })
@@ -51,35 +48,34 @@ var List = function List(props) {
51
48
  });
52
49
  };
53
50
  var targetProps = getTargetProps();
54
- var _props$data = (0, _toArray2.default)(props.data),
51
+ var _props$data = _toArray(props.data),
55
52
  first = _props$data[0],
56
53
  rest = _props$data.slice(1);
57
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({
54
+ return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
58
55
  ref: targetRef
59
56
  }, targetProps), {}, {
60
57
  className: classes === null || classes === void 0 ? void 0 : classes.itemWithDrop,
61
- children: [props.renderItem(first), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
62
- className: (0, _classnames.default)(classes === null || classes === void 0 ? void 0 : classes.down, open && (classes === null || classes === void 0 ? void 0 : classes.downOpen)),
63
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_caret.default, {})
64
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_absoluteList.default, {
58
+ children: [props.renderItem(first), /*#__PURE__*/_jsx("div", {
59
+ className: classNames(classes === null || classes === void 0 ? void 0 : classes.down, open && (classes === null || classes === void 0 ? void 0 : classes.downOpen)),
60
+ children: Icons.breadcrumb.DropdownArrow
61
+ }), /*#__PURE__*/_jsx(AbsoluteList, {
65
62
  position: position,
66
63
  focus: open,
67
- parentElement: targetRef.current,
64
+ parentElRef: targetRef,
68
65
  absolute: true,
69
66
  fixedWidth: 'min',
70
- popupEl: popupRef.current,
67
+ popupElRef: popupRef,
71
68
  adjust: true,
72
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_animationList.default, {
73
- className: (0, _classnames.default)(classes === null || classes === void 0 ? void 0 : classes.dropdown),
69
+ children: /*#__PURE__*/_jsx(AnimationList, {
70
+ className: classNames(classes === null || classes === void 0 ? void 0 : classes.dropdown),
74
71
  type: 'fade',
75
72
  duration: 'fast',
76
73
  show: open,
77
74
  onRef: popupRef,
78
- animation: true,
75
+ animation: false,
79
76
  children: renderList(rest)
80
77
  })
81
78
  })]
82
79
  }));
83
80
  };
84
- var _default = List;
85
- exports.default = _default;
81
+ export default List;
@@ -1,21 +1,6 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.iterator.js");
4
- require("core-js/modules/es.weak-map.js");
5
- require("core-js/modules/web.dom-collections.iterator.js");
6
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
7
- var _typeof = require("@babel/runtime/helpers/typeof");
8
- Object.defineProperty(exports, "__esModule", {
9
- value: true
10
- });
11
- exports.default = void 0;
12
- require("core-js/modules/es.array.map.js");
13
- require("core-js/modules/es.promise.js");
14
- var _react = _interopRequireWildcard(require("react"));
15
- var _classnames = _interopRequireDefault(require("classnames"));
16
- var _jsxRuntime = require("react/jsx-runtime");
17
- 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); }
18
- 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; }
1
+ import React, { Children, cloneElement } from 'react';
2
+ import classNames from 'classnames';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
19
4
  var Group = function Group(props) {
20
5
  var _jssStyle$button;
21
6
  var children = props.children,
@@ -32,23 +17,22 @@ var Group = function Group(props) {
32
17
  console.warn('[Button / Button.Group] The properties outline, and text are being deprecated and you should use the mode property to specify the style of the button instead.');
33
18
  }
34
19
  var modeSetted = mode || (text ? 'text' : outline ? 'outline' : undefined);
35
- var buttonStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$button = jssStyle.button) === null || _jssStyle$button === void 0 ? void 0 : _jssStyle$button.call(jssStyle)) || {};
36
- var groupClass = (0, _classnames.default)(className, buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.group, shape === 'round' && buttonStyle.round, size === 'small' && buttonStyle.small, size === 'large' && buttonStyle.large);
20
+ var buttonStyle = (jssStyle === null || jssStyle === void 0 || (_jssStyle$button = jssStyle.button) === null || _jssStyle$button === void 0 ? void 0 : _jssStyle$button.call(jssStyle)) || {};
21
+ var groupClass = classNames(className, buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.group, shape === 'round' && buttonStyle.round, size === 'small' && buttonStyle.small, size === 'large' && buttonStyle.large);
37
22
  var shapeSetted = shape === 'round' ? 'round' : undefined;
38
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
23
+ return /*#__PURE__*/_jsx("div", {
39
24
  className: groupClass,
40
25
  style: style,
41
- children: _react.Children.toArray(children).map(function (child) {
26
+ children: Children.toArray(children).map(function (child) {
42
27
  var Child = child;
43
- return /*#__PURE__*/(0, _react.cloneElement)(Child, {
28
+ return /*#__PURE__*/cloneElement(Child, {
44
29
  size: size,
45
30
  mode: modeSetted || Child.props.mode,
46
31
  shape: shapeSetted,
47
32
  type: Child.props.type || type,
48
- className: (0, _classnames.default)(Child.props.className)
33
+ className: classNames(Child.props.className)
49
34
  });
50
35
  })
51
36
  });
52
37
  };
53
- var _default = Group;
54
- exports.default = _default;
38
+ export default Group;
@@ -1,11 +1,4 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _classnames = _interopRequireDefault(require("classnames"));
1
+ import classNames from 'classnames';
9
2
  var GroupItem = function GroupItem(props) {
10
3
  var _jssStyle$button;
11
4
  var mode = props.mode,
@@ -16,9 +9,8 @@ var GroupItem = function GroupItem(props) {
16
9
  outline = props.outline,
17
10
  jssStyle = props.jssStyle;
18
11
  var modeSetted = mode || (text ? 'text' : outline ? 'outline' : undefined);
19
- var buttonStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$button = jssStyle.button) === null || _jssStyle$button === void 0 ? void 0 : _jssStyle$button.call(jssStyle)) || {};
20
- var buttonItemClass = (0, _classnames.default)(className, buttonStyle.groupItem, !!disabled && buttonStyle.disabled, buttonStyle[type || 'default'], modeSetted === 'text' && buttonStyle.text, modeSetted === 'dashed' && buttonStyle.dashed, modeSetted === 'outline' && buttonStyle.outline);
12
+ var buttonStyle = (jssStyle === null || jssStyle === void 0 || (_jssStyle$button = jssStyle.button) === null || _jssStyle$button === void 0 ? void 0 : _jssStyle$button.call(jssStyle)) || {};
13
+ var buttonItemClass = classNames(className, buttonStyle.groupItem, !!disabled && buttonStyle.disabled, buttonStyle[type || 'default'], modeSetted === 'text' && buttonStyle.text, modeSetted === 'dashed' && buttonStyle.dashed, modeSetted === 'outline' && buttonStyle.outline);
21
14
  return buttonItemClass;
22
15
  };
23
- var _default = GroupItem;
24
- exports.default = _default;
16
+ export default GroupItem;
@@ -1,25 +1,20 @@
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
- var _hooks = require("@sheinx/hooks");
14
- var _classnames = _interopRequireDefault(require("classnames"));
15
- var _react = _interopRequireDefault(require("react"));
16
- var _buttonGroup = _interopRequireDefault(require("./button-group"));
17
- var _spin = _interopRequireDefault(require("../spin"));
18
- var _jsxRuntime = require("react/jsx-runtime");
19
- var _excluded = ["jssStyle", "className", "style", "children", "loading", "href", "text", "outline", "shape", "size", "type", "space", "target", "mode", "htmlType", "renderInnerWrapper", "renderLoading"],
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
+ var _excluded = ["jssStyle", "className", "style", "children", "loading", "href", "text", "outline", "shape", "size", "type", "space", "target", "mode", "htmlType", "renderLoading"],
20
3
  _excluded2 = ["htmlType", "onRef"];
21
- 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; }
22
- 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; }
4
+ 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; }
5
+ 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; }
6
+ 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; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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); }
9
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
+ import { useButton } from '@sheinx/hooks';
12
+ import classNames from 'classnames';
13
+ import React from 'react';
14
+ import ButtonGroup from "./button-group";
15
+ import Spin from "../spin";
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { jsxs as _jsxs } from "react/jsx-runtime";
23
18
  var Button = function Button(props) {
24
19
  var _jssStyle$button;
25
20
  var jssStyle = props.jssStyle,
@@ -39,10 +34,9 @@ var Button = function Button(props) {
39
34
  modeProp = props.mode,
40
35
  _props$htmlType = props.htmlType,
41
36
  htmlTypeProp = _props$htmlType === void 0 ? 'button' : _props$htmlType,
42
- renderInnerWrapper = props.renderInnerWrapper,
43
37
  renderLoading = props.renderLoading,
44
- rest = (0, _objectWithoutProperties2.default)(props, _excluded);
45
- var _useButton = (0, _hooks.useButton)(_objectSpread({
38
+ rest = _objectWithoutProperties(props, _excluded);
39
+ var _useButton = useButton(_objectSpread({
46
40
  loading: loading,
47
41
  htmlType: htmlTypeProp
48
42
  }, rest)),
@@ -50,23 +44,24 @@ var Button = function Button(props) {
50
44
  getSpaceChildren = _useButton.getSpaceChildren,
51
45
  getAnchorProps = _useButton.getAnchorProps,
52
46
  disabled = _useButton.disabled;
53
- var buttonStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$button = jssStyle.button) === null || _jssStyle$button === void 0 ? void 0 : _jssStyle$button.call(jssStyle)) || {};
47
+ var buttonStyle = (jssStyle === null || jssStyle === void 0 || (_jssStyle$button = jssStyle.button) === null || _jssStyle$button === void 0 ? void 0 : _jssStyle$button.call(jssStyle)) || {};
54
48
  var getType = function getType() {
55
49
  if (typeProp === 'default') return 'secondary';
56
50
  return typeProp;
57
51
  };
58
52
  var getMode = function getMode() {
59
- if (typeProp === 'default' && modeProp === undefined) return 'outline';
53
+ if (typeProp === 'default' && modeProp === undefined && outline) return 'outline';
54
+ if (typeProp === 'default' && modeProp === undefined && text) return 'text';
60
55
  return modeProp;
61
56
  };
62
57
  var mode = getMode();
63
58
  var type = getType();
64
59
  var modeSetted = mode || (text ? 'text' : outline ? 'outline' : undefined);
65
- var rootClass = (0, _classnames.default)(className, buttonStyle[type || 'default'], buttonStyle.button, !!disabled && buttonStyle.disabled, !!loading && buttonStyle.loading, !!href && buttonStyle.href, modeSetted === 'text' && buttonStyle.text, modeSetted === 'dashed' && buttonStyle.dashed, modeSetted === 'outline' && buttonStyle.outline, shape === 'round' && buttonStyle.round, shape === 'circle' && buttonStyle.circle, shape === 'square' && buttonStyle.square, size === 'small' && buttonStyle.small, size === 'large' && buttonStyle.large);
60
+ var rootClass = classNames(className, buttonStyle[type || 'default'], buttonStyle.button, !!disabled && buttonStyle.disabled, !!loading && buttonStyle.loading, modeSetted === 'text' && buttonStyle.text, modeSetted === 'dashed' && buttonStyle.dashed, modeSetted === 'outline' && buttonStyle.outline, shape === 'round' && buttonStyle.round, shape === 'circle' && buttonStyle.circle, shape === 'square' && buttonStyle.square, size === 'small' && buttonStyle.small, size === 'large' && buttonStyle.large);
66
61
  var rootProps = getButtonProps();
67
62
  var htmlType = rootProps.htmlType,
68
63
  onRef = rootProps.onRef,
69
- buttonProps = (0, _objectWithoutProperties2.default)(rootProps, _excluded2);
64
+ buttonProps = _objectWithoutProperties(rootProps, _excluded2);
70
65
  var getSpinSize = function getSpinSize() {
71
66
  if (size === 'small') {
72
67
  return 10;
@@ -76,15 +71,16 @@ var Button = function Button(props) {
76
71
  }
77
72
  return 12;
78
73
  };
79
- var childrenEl = getSpaceChildren(children, space, buttonStyle.spaceWrapper);
74
+ var childrenEl = getSpaceChildren(children, space);
80
75
  var buttonInnerEl = childrenEl;
81
- if (typeof renderInnerWrapper === 'function') {
82
- buttonInnerEl = renderInnerWrapper(childrenEl);
83
- }
84
- var loadingEl = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
76
+
77
+ // if (typeof renderInnerWrapper === 'function') {
78
+ // buttonInnerEl = renderInnerWrapper(childrenEl);
79
+ // }
80
+
81
+ var loadingEl = /*#__PURE__*/_jsx("div", {
85
82
  className: buttonStyle.spin,
86
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_spin.default, {
87
- name: "ring",
83
+ children: /*#__PURE__*/_jsx(Spin, {
88
84
  size: getSpinSize(),
89
85
  jssStyle: jssStyle
90
86
  })
@@ -93,7 +89,7 @@ var Button = function Button(props) {
93
89
  loadingEl = renderLoading(loadingEl);
94
90
  }
95
91
  if (href && !disabled) {
96
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("a", _objectSpread(_objectSpread({}, getAnchorProps({
92
+ return /*#__PURE__*/_jsxs("a", _objectSpread(_objectSpread({}, getAnchorProps({
97
93
  className: rootClass,
98
94
  style: style
99
95
  })), {}, {
@@ -106,7 +102,7 @@ var Button = function Button(props) {
106
102
  return (
107
103
  /*#__PURE__*/
108
104
  // eslint-disable-next-line react/button-has-type
109
- (0, _jsxRuntime.jsxs)("button", _objectSpread(_objectSpread({}, buttonProps), {}, {
105
+ _jsxs("button", _objectSpread(_objectSpread({}, buttonProps), {}, {
110
106
  type: htmlType,
111
107
  ref: onRef,
112
108
  className: rootClass,
@@ -115,6 +111,5 @@ var Button = function Button(props) {
115
111
  }))
116
112
  );
117
113
  };
118
- Button.Group = _buttonGroup.default;
119
- var _default = Button;
120
- exports.default = _default;
114
+ Button.Group = ButtonGroup;
115
+ export default Button;
@@ -20,7 +20,6 @@ export interface ButtonClasses {
20
20
  danger: string;
21
21
  warning: string;
22
22
  success: string;
23
- href: string;
24
23
  link: string;
25
24
  dashed: string;
26
25
  outline: string;
@@ -84,11 +83,6 @@ export interface ButtonBaseProps extends BaseButtonProps, Pick<CommonType, 'styl
84
83
  * @cn 自定义loading
85
84
  */
86
85
  renderLoading?: (buttonEl: React.ReactNode) => React.ReactElement;
87
- /**
88
- * @en Customize the inner wrapper
89
- * @cn 自定义内部包裹
90
- */
91
- renderInnerWrapper?: (innerWrapperEl: React.ReactNode) => React.ReactElement;
92
86
  }
93
87
  export interface ButtonGroupProps extends Pick<CommonType, 'style' | 'className' | 'size'> {
94
88
  /**
@@ -127,5 +121,5 @@ export interface ButtonGroupProps extends Pick<CommonType, 'style' | 'className'
127
121
  children: React.ReactNode;
128
122
  jssStyle?: ButtonJssStyle;
129
123
  }
130
- export declare type ButtonProps = ButtonBaseProps;
124
+ export type ButtonProps = ButtonBaseProps;
131
125
  //# sourceMappingURL=button.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["button.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAGlB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,CAAC;IAE9E;;;;OAIG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,MAAM,WAAW,eACf,SAAQ,eAAe,EACrB,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,CAAC,EACvC,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAClE,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC;QAC7B,IAAI,CAAC,EAAE,MAAM,WAAW,CAAC;KAC1B,CAAC;IACF;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,CAAC;IACjE;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,CAAC;IAClE;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,cAAc,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,CAAC;CAC9E;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,CAAC;IACxF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,oBAAY,WAAW,GAAG,eAAe,CAAC"}
1
+ {"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["button.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAGlB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,CAAC;IAC9E;;;;OAIG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,MAAM,WAAW,eACf,SAAQ,eAAe,EACrB,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,CAAC,EACvC,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAClE,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC;QAC7B,IAAI,CAAC,EAAE,MAAM,WAAW,CAAC;KAC1B,CAAC;IACF;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,CAAC;IACjE;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,CAAC;CACnE;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,CAAC;IACxF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC"}
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  export { default, default as Button } from './button';
2
2
  export type { ButtonProps } from './button.type';
3
3
  export { default as ButtonGroup } from './button-group';
4
- export type { ButtonGroupProps } from './button.type';
4
+ export type { ButtonGroupProps, ButtonClasses } from './button.type';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}