@sheinx/base 3.0.0-rc.1 → 3.0.0-rc.11

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 (972) hide show
  1. package/cjs/absolute-list/absolute-context.js +1 -2
  2. package/cjs/absolute-list/absolute-list.d.ts +3 -1
  3. package/cjs/absolute-list/absolute-list.d.ts.map +1 -1
  4. package/cjs/absolute-list/absolute-list.js +10 -15
  5. package/cjs/absolute-list/absolute-list.type.d.ts +2 -2
  6. package/cjs/absolute-list/absolute-list.type.d.ts.map +1 -1
  7. package/cjs/absolute-list/index.js +2 -2
  8. package/cjs/absolute-list/use-container.js +7 -14
  9. package/cjs/alert/alert-icon.js +11 -13
  10. package/cjs/alert/alert.js +24 -23
  11. package/cjs/alert/alert.type.d.ts +3 -2
  12. package/cjs/alert/alert.type.d.ts.map +1 -1
  13. package/cjs/alert/index.js +2 -2
  14. package/cjs/animation-list/animation-list.js +20 -25
  15. package/cjs/animation-list/animation-list.type.d.ts +1 -1
  16. package/cjs/animation-list/animation-list.type.d.ts.map +1 -1
  17. package/cjs/animation-list/index.js +2 -2
  18. package/cjs/breadcrumb/breadcrumb.js +21 -17
  19. package/cjs/breadcrumb/breadcrumb.type.d.ts +7 -1
  20. package/cjs/breadcrumb/breadcrumb.type.d.ts.map +1 -1
  21. package/cjs/breadcrumb/index.js +2 -2
  22. package/cjs/breadcrumb/list.d.ts +1 -0
  23. package/cjs/breadcrumb/list.d.ts.map +1 -1
  24. package/cjs/breadcrumb/list.js +22 -16
  25. package/cjs/button/button-group.js +6 -12
  26. package/cjs/button/button-item.js +3 -4
  27. package/cjs/button/button.js +13 -13
  28. package/cjs/button/button.type.d.ts +1 -1
  29. package/cjs/button/button.type.d.ts.map +1 -1
  30. package/cjs/button/index.js +2 -2
  31. package/cjs/card/card-accordion-context.js +3 -5
  32. package/cjs/card/card-accordion.js +11 -7
  33. package/cjs/card/card-body.js +3 -4
  34. package/cjs/card/card-footer.js +3 -4
  35. package/cjs/card/card-header.js +4 -5
  36. package/cjs/card/card.context.js +3 -4
  37. package/cjs/card/card.js +17 -16
  38. package/cjs/card/index.js +2 -2
  39. package/cjs/card-group/card-group-context.js +2 -3
  40. package/cjs/card-group/card-group.js +9 -10
  41. package/cjs/card-group/index.js +2 -2
  42. package/cjs/card-group/item.js +6 -10
  43. package/cjs/card-group/lazyload.js +11 -11
  44. package/cjs/carousel/carousel.js +13 -17
  45. package/cjs/carousel/carousel.type.d.ts +0 -1
  46. package/cjs/carousel/carousel.type.d.ts.map +1 -1
  47. package/cjs/carousel/index.js +2 -2
  48. package/cjs/cascader/cascader.d.ts.map +1 -1
  49. package/cjs/cascader/cascader.js +51 -53
  50. package/cjs/cascader/cascader.type.d.ts +5 -10
  51. package/cjs/cascader/cascader.type.d.ts.map +1 -1
  52. package/cjs/cascader/filter-list.js +3 -6
  53. package/cjs/cascader/filter-node.js +3 -6
  54. package/cjs/cascader/index.js +2 -2
  55. package/cjs/cascader/list.js +3 -5
  56. package/cjs/cascader/node.d.ts.map +1 -1
  57. package/cjs/cascader/node.js +26 -18
  58. package/cjs/checkbox/checkbox-group.js +3 -5
  59. package/cjs/checkbox/checkbox.d.ts.map +1 -1
  60. package/cjs/checkbox/checkbox.js +19 -14
  61. package/cjs/checkbox/group-context.d.ts +1 -1
  62. package/cjs/checkbox/group-context.d.ts.map +1 -1
  63. package/cjs/checkbox/group-context.js +1 -2
  64. package/cjs/checkbox/index.js +2 -2
  65. package/cjs/checkbox/simple-checkbox.js +12 -12
  66. package/cjs/checkbox/use-checkbox-inputable.js +10 -7
  67. package/cjs/collapse/collapse-item.js +10 -15
  68. package/cjs/collapse/collapse.js +3 -4
  69. package/cjs/collapse/group-context.d.ts +1 -1
  70. package/cjs/collapse/group-context.d.ts.map +1 -1
  71. package/cjs/collapse/group-context.js +1 -2
  72. package/cjs/collapse/index.js +2 -2
  73. package/cjs/common/use-clear.js +2 -3
  74. package/cjs/common/use-inner-title.js +13 -12
  75. package/cjs/common/use-tip.js +8 -9
  76. package/cjs/common/use-with-form-config.js +8 -11
  77. package/cjs/config/index.d.ts +1 -4
  78. package/cjs/config/index.d.ts.map +1 -1
  79. package/cjs/config/index.js +20 -20
  80. package/cjs/config/locale/Props.d.ts +4 -4
  81. package/cjs/config/locale/Props.d.ts.map +1 -1
  82. package/cjs/config/locale/en_US.js +2 -3
  83. package/cjs/config/locale/index.js +3 -3
  84. package/cjs/config/locale/zh-CN.js +2 -3
  85. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  86. package/cjs/date-picker/date-picker.js +26 -27
  87. package/cjs/date-picker/date-picker.type.d.ts +5 -3
  88. package/cjs/date-picker/date-picker.type.d.ts.map +1 -1
  89. package/cjs/date-picker/day.js +15 -21
  90. package/cjs/date-picker/index.js +2 -2
  91. package/cjs/date-picker/month.js +5 -9
  92. package/cjs/date-picker/month.type.d.ts +1 -1
  93. package/cjs/date-picker/month.type.d.ts.map +1 -1
  94. package/cjs/date-picker/picker.js +9 -11
  95. package/cjs/date-picker/pickerTitle.js +2 -3
  96. package/cjs/date-picker/quarter.js +5 -9
  97. package/cjs/date-picker/quarter.type.d.ts +1 -1
  98. package/cjs/date-picker/quarter.type.d.ts.map +1 -1
  99. package/cjs/date-picker/quick.js +3 -5
  100. package/cjs/date-picker/result.js +17 -17
  101. package/cjs/date-picker/time.js +7 -12
  102. package/cjs/date-picker/year.js +5 -9
  103. package/cjs/date-picker/year.type.d.ts +1 -1
  104. package/cjs/date-picker/year.type.d.ts.map +1 -1
  105. package/cjs/descriptions/descriptions.js +11 -18
  106. package/cjs/descriptions/descriptions.type.d.ts +1 -1
  107. package/cjs/descriptions/descriptions.type.d.ts.map +1 -1
  108. package/cjs/descriptions/index.js +2 -2
  109. package/cjs/divider/divider.js +3 -4
  110. package/cjs/divider/index.js +2 -2
  111. package/cjs/dropdown/Item.d.ts.map +1 -1
  112. package/cjs/dropdown/Item.js +41 -28
  113. package/cjs/dropdown/dropdown.js +8 -9
  114. package/cjs/dropdown/dropdown.type.d.ts +5 -5
  115. package/cjs/dropdown/dropdown.type.d.ts.map +1 -1
  116. package/cjs/dropdown/dropdown.type.js +2 -2
  117. package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
  118. package/cjs/dropdown/dropdownIn.js +11 -14
  119. package/cjs/dropdown/index.d.ts +1 -1
  120. package/cjs/dropdown/index.d.ts.map +1 -1
  121. package/cjs/dropdown/index.js +2 -2
  122. package/cjs/editable-area/editable-area.d.ts.map +1 -1
  123. package/cjs/editable-area/editable-area.js +21 -22
  124. package/cjs/editable-area/index.js +2 -2
  125. package/cjs/empty/empty-image.js +2 -3
  126. package/cjs/empty/empty.js +12 -13
  127. package/cjs/empty/index.js +2 -2
  128. package/cjs/form/error-trans.js +2 -6
  129. package/cjs/form/form-button.js +8 -9
  130. package/cjs/form/form-field.js +2 -4
  131. package/cjs/form/form-field.type.d.ts +1 -1
  132. package/cjs/form/form-field.type.d.ts.map +1 -1
  133. package/cjs/form/form-fieldset.js +2 -8
  134. package/cjs/form/form-flow.js +1 -2
  135. package/cjs/form/form-footer-context.js +14 -16
  136. package/cjs/form/form-item.js +13 -14
  137. package/cjs/form/form.d.ts +1 -1
  138. package/cjs/form/form.d.ts.map +1 -1
  139. package/cjs/form/form.js +29 -24
  140. package/cjs/form/form.type.d.ts +7 -0
  141. package/cjs/form/form.type.d.ts.map +1 -1
  142. package/cjs/form/form.type.js +1 -2
  143. package/cjs/form/index.js +2 -2
  144. package/cjs/gap/gap.js +9 -11
  145. package/cjs/gap/index.js +2 -2
  146. package/cjs/grid/grid.js +13 -19
  147. package/cjs/grid/grid.type.d.ts +1 -1
  148. package/cjs/grid/grid.type.d.ts.map +1 -1
  149. package/cjs/grid/index.js +2 -2
  150. package/cjs/grid/util.d.ts +1 -1
  151. package/cjs/grid/util.d.ts.map +1 -1
  152. package/cjs/grid/util.js +0 -3
  153. package/cjs/icon/icon.js +12 -14
  154. package/cjs/icon/icon.type.d.ts +1 -1
  155. package/cjs/icon/icon.type.d.ts.map +1 -1
  156. package/cjs/icon/index.js +2 -2
  157. package/cjs/icons/config.d.ts +144 -0
  158. package/cjs/icons/config.d.ts.map +1 -0
  159. package/cjs/icons/config.js +164 -0
  160. package/cjs/icons/icons.d.ts +46 -0
  161. package/cjs/icons/icons.d.ts.map +1 -0
  162. package/cjs/icons/icons.js +184 -0
  163. package/cjs/icons/index.d.ts +1 -47
  164. package/cjs/icons/index.d.ts.map +1 -1
  165. package/cjs/icons/index.js +14 -187
  166. package/cjs/image/image-event.js +3 -4
  167. package/cjs/image/image-gallery.js +14 -15
  168. package/cjs/image/image-group.d.ts.map +1 -1
  169. package/cjs/image/image-group.js +16 -22
  170. package/cjs/image/image-magnify.js +10 -11
  171. package/cjs/image/image.js +19 -23
  172. package/cjs/image/image.type.d.ts +4 -4
  173. package/cjs/image/image.type.d.ts.map +1 -1
  174. package/cjs/image/index.js +2 -2
  175. package/cjs/index.d.ts +1 -1
  176. package/cjs/index.d.ts.map +1 -1
  177. package/cjs/index.js +4 -6
  178. package/cjs/input/index.js +2 -2
  179. package/cjs/input/input-group.js +26 -27
  180. package/cjs/input/input-number.js +16 -16
  181. package/cjs/input/input-number.type.d.ts +1 -1
  182. package/cjs/input/input-number.type.d.ts.map +1 -1
  183. package/cjs/input/input-password.js +10 -11
  184. package/cjs/input/input.js +8 -10
  185. package/cjs/input/input.type.d.ts +1 -1
  186. package/cjs/input/input.type.d.ts.map +1 -1
  187. package/cjs/input/simple-input.js +16 -16
  188. package/cjs/input/use-input-common.d.ts +1 -1
  189. package/cjs/input/use-input-common.js +22 -22
  190. package/cjs/list/base-item.js +14 -15
  191. package/cjs/list/index.js +2 -2
  192. package/cjs/list/list.d.ts.map +1 -1
  193. package/cjs/list/list.js +16 -21
  194. package/cjs/menu/index.js +2 -2
  195. package/cjs/menu/item.d.ts.map +1 -1
  196. package/cjs/menu/item.js +11 -13
  197. package/cjs/menu/menu.js +16 -13
  198. package/cjs/menu/menu.type.d.ts +2 -2
  199. package/cjs/menu/menu.type.d.ts.map +1 -1
  200. package/cjs/menu/scroll.js +10 -6
  201. package/cjs/menu/scrollbar.js +3 -4
  202. package/cjs/message/func.js +2 -4
  203. package/cjs/message/func.type.d.ts +2 -2
  204. package/cjs/message/func.type.d.ts.map +1 -1
  205. package/cjs/message/index.js +2 -2
  206. package/cjs/message/manager.d.ts.map +1 -1
  207. package/cjs/message/manager.js +6 -7
  208. package/cjs/message/message.js +45 -43
  209. package/cjs/modal/index.js +2 -2
  210. package/cjs/modal/modal-content.d.ts.map +1 -1
  211. package/cjs/modal/modal-content.js +46 -30
  212. package/cjs/modal/modal-func.d.ts +1 -1
  213. package/cjs/modal/modal-func.d.ts.map +1 -1
  214. package/cjs/modal/modal-func.js +19 -17
  215. package/cjs/modal/modal-submit.js +10 -11
  216. package/cjs/modal/modal.js +15 -11
  217. package/cjs/modal/modal.type.d.ts +1 -1
  218. package/cjs/modal/modal.type.d.ts.map +1 -1
  219. package/cjs/modal/use-modal-move.js +15 -12
  220. package/cjs/modal/use-modal-resize.js +9 -6
  221. package/cjs/pagination/index.js +2 -2
  222. package/cjs/pagination/pagination-button.js +11 -12
  223. package/cjs/pagination/pagination-buttons.js +20 -17
  224. package/cjs/pagination/pagination-buttons.type.d.ts +2 -2
  225. package/cjs/pagination/pagination-buttons.type.d.ts.map +1 -1
  226. package/cjs/pagination/pagination-jumper.js +10 -8
  227. package/cjs/pagination/pagination-next.d.ts.map +1 -1
  228. package/cjs/pagination/pagination-next.js +4 -5
  229. package/cjs/pagination/pagination-prev.d.ts.map +1 -1
  230. package/cjs/pagination/pagination-prev.js +4 -5
  231. package/cjs/pagination/pagination-simple.js +2 -3
  232. package/cjs/pagination/pagination-size-list.js +3 -5
  233. package/cjs/pagination/pagination.d.ts.map +1 -1
  234. package/cjs/pagination/pagination.js +10 -13
  235. package/cjs/pagination/pagination.type.d.ts +2 -2
  236. package/cjs/pagination/pagination.type.d.ts.map +1 -1
  237. package/cjs/popover/confirm.js +24 -23
  238. package/cjs/popover/confirm.type.d.ts +2 -2
  239. package/cjs/popover/confirm.type.d.ts.map +1 -1
  240. package/cjs/popover/index.js +2 -2
  241. package/cjs/popover/popover.js +14 -19
  242. package/cjs/progress/analyzeColor.js +2 -4
  243. package/cjs/progress/circle.js +5 -8
  244. package/cjs/progress/index.js +2 -2
  245. package/cjs/progress/line-popup.js +8 -8
  246. package/cjs/progress/line.js +5 -8
  247. package/cjs/progress/progress.js +8 -9
  248. package/cjs/radio/group-context.d.ts +1 -1
  249. package/cjs/radio/group-context.d.ts.map +1 -1
  250. package/cjs/radio/group-context.js +1 -2
  251. package/cjs/radio/index.js +2 -2
  252. package/cjs/radio/radio-group.js +9 -11
  253. package/cjs/radio/radio.js +12 -12
  254. package/cjs/radio/simple-radio.js +12 -12
  255. package/cjs/rate/index.js +2 -2
  256. package/cjs/rate/rate.js +16 -17
  257. package/cjs/select/index.js +2 -2
  258. package/cjs/select/list-columns-option.js +3 -4
  259. package/cjs/select/list-columns.js +3 -9
  260. package/cjs/select/list-option.js +11 -9
  261. package/cjs/select/list-tree.js +3 -4
  262. package/cjs/select/list.js +23 -20
  263. package/cjs/select/result-input.d.ts.map +1 -1
  264. package/cjs/select/result-input.js +8 -17
  265. package/cjs/select/result-input.type.d.ts +3 -0
  266. package/cjs/select/result-input.type.d.ts.map +1 -1
  267. package/cjs/select/result-more.d.ts.map +1 -1
  268. package/cjs/select/result-more.js +20 -22
  269. package/cjs/select/result-more.type.d.ts +4 -0
  270. package/cjs/select/result-more.type.d.ts.map +1 -1
  271. package/cjs/select/result.d.ts.map +1 -1
  272. package/cjs/select/result.js +24 -29
  273. package/cjs/select/result.type.d.ts +14 -1
  274. package/cjs/select/result.type.d.ts.map +1 -1
  275. package/cjs/select/select.d.ts.map +1 -1
  276. package/cjs/select/select.js +54 -49
  277. package/cjs/select/select.type.d.ts +10 -14
  278. package/cjs/select/select.type.d.ts.map +1 -1
  279. package/cjs/slider/index.js +2 -2
  280. package/cjs/slider/slider.js +9 -11
  281. package/cjs/spin/base.js +9 -11
  282. package/cjs/spin/index.js +2 -2
  283. package/cjs/spin/spin.js +11 -12
  284. package/cjs/spin/spin.type.d.ts +2 -2
  285. package/cjs/spin/spin.type.d.ts.map +1 -1
  286. package/cjs/spin/spins.js +25 -27
  287. package/cjs/spin/utils.js +2 -4
  288. package/cjs/steps/index.js +2 -2
  289. package/cjs/steps/step.arrow.d.ts.map +1 -1
  290. package/cjs/steps/step.arrow.js +8 -7
  291. package/cjs/steps/step.default.d.ts.map +1 -1
  292. package/cjs/steps/step.default.js +13 -11
  293. package/cjs/steps/step.dot.d.ts.map +1 -1
  294. package/cjs/steps/step.dot.js +11 -9
  295. package/cjs/steps/step.js +13 -15
  296. package/cjs/steps/steps-context.js +1 -2
  297. package/cjs/steps/steps.js +9 -8
  298. package/cjs/steps/steps.type.d.ts +3 -3
  299. package/cjs/steps/steps.type.d.ts.map +1 -1
  300. package/cjs/sticky/index.js +2 -2
  301. package/cjs/sticky/sticky.d.ts.map +1 -1
  302. package/cjs/sticky/sticky.js +61 -58
  303. package/cjs/sticky/sticky.type.d.ts +5 -1
  304. package/cjs/sticky/sticky.type.d.ts.map +1 -1
  305. package/cjs/switch/index.js +2 -2
  306. package/cjs/switch/switch.js +16 -12
  307. package/cjs/table/colgroup.js +1 -3
  308. package/cjs/table/index.js +2 -2
  309. package/cjs/table/table.d.ts.map +1 -1
  310. package/cjs/table/table.js +82 -73
  311. package/cjs/table/table.type.d.ts +12 -10
  312. package/cjs/table/table.type.d.ts.map +1 -1
  313. package/cjs/table/tbody.d.ts.map +1 -1
  314. package/cjs/table/tbody.js +5 -6
  315. package/cjs/table/tbody.type.d.ts +3 -3
  316. package/cjs/table/tbody.type.d.ts.map +1 -1
  317. package/cjs/table/temp/01-base.d.ts.map +1 -1
  318. package/cjs/table/temp/01-base.js +22 -14
  319. package/cjs/table/tfoot.js +4 -7
  320. package/cjs/table/thead.d.ts.map +1 -1
  321. package/cjs/table/thead.js +22 -30
  322. package/cjs/table/thead.type.d.ts +2 -2
  323. package/cjs/table/thead.type.d.ts.map +1 -1
  324. package/cjs/table/tr.d.ts +1 -1
  325. package/cjs/table/tr.d.ts.map +1 -1
  326. package/cjs/table/tr.js +20 -27
  327. package/cjs/table/use-table-select.js +6 -9
  328. package/cjs/tabs/index.js +2 -2
  329. package/cjs/tabs/tab.js +10 -11
  330. package/cjs/tabs/tabs-header.d.ts.map +1 -1
  331. package/cjs/tabs/tabs-header.js +32 -29
  332. package/cjs/tabs/tabs-panel.d.ts.map +1 -1
  333. package/cjs/tabs/tabs-panel.js +17 -6
  334. package/cjs/tabs/tabs.js +25 -29
  335. package/cjs/tabs/tabs.type.d.ts +2 -2
  336. package/cjs/tabs/tabs.type.d.ts.map +1 -1
  337. package/cjs/tag/index.js +2 -2
  338. package/cjs/tag/tag-input.js +9 -10
  339. package/cjs/tag/tag.js +14 -14
  340. package/cjs/tag/tag.type.d.ts +8 -8
  341. package/cjs/tag/tag.type.d.ts.map +1 -1
  342. package/cjs/tag/use-tag.js +11 -8
  343. package/cjs/textarea/index.js +2 -2
  344. package/cjs/textarea/simple-textarea.js +17 -21
  345. package/cjs/textarea/textarea.js +22 -23
  346. package/cjs/textarea/textarea.type.d.ts +1 -6
  347. package/cjs/textarea/textarea.type.d.ts.map +1 -1
  348. package/cjs/textarea/use-auto-size.js +13 -12
  349. package/cjs/tooltip/index.js +2 -2
  350. package/cjs/tooltip/tooltip.d.ts.map +1 -1
  351. package/cjs/tooltip/tooltip.js +13 -16
  352. package/cjs/tooltip/tooltip.type.d.ts +6 -0
  353. package/cjs/tooltip/tooltip.type.d.ts.map +1 -1
  354. package/cjs/transfer/index.js +2 -2
  355. package/cjs/transfer/transfer-list-header.d.ts.map +1 -1
  356. package/cjs/transfer/transfer-list-header.js +9 -10
  357. package/cjs/transfer/transfer-list-item.d.ts.map +1 -1
  358. package/cjs/transfer/transfer-list-item.js +7 -6
  359. package/cjs/transfer/transfer-list.js +13 -14
  360. package/cjs/transfer/transfer-operate.js +2 -4
  361. package/cjs/transfer/transfer.js +11 -10
  362. package/cjs/transfer/transfer.type.d.ts +2 -2
  363. package/cjs/transfer/transfer.type.d.ts.map +1 -1
  364. package/cjs/tree/index.js +2 -2
  365. package/cjs/tree/tree-checkbox.d.ts +2 -1
  366. package/cjs/tree/tree-checkbox.d.ts.map +1 -1
  367. package/cjs/tree/tree-checkbox.js +4 -3
  368. package/cjs/tree/tree-checkbox.type.d.ts +2 -2
  369. package/cjs/tree/tree-checkbox.type.d.ts.map +1 -1
  370. package/cjs/tree/tree-content.d.ts +2 -1
  371. package/cjs/tree/tree-content.d.ts.map +1 -1
  372. package/cjs/tree/tree-content.js +12 -14
  373. package/cjs/tree/tree-content.type.d.ts +2 -2
  374. package/cjs/tree/tree-content.type.d.ts.map +1 -1
  375. package/cjs/tree/tree-context.d.ts +4 -3
  376. package/cjs/tree/tree-context.d.ts.map +1 -1
  377. package/cjs/tree/tree-context.js +8 -14
  378. package/cjs/tree/tree-context.type.d.ts +2 -2
  379. package/cjs/tree/tree-context.type.d.ts.map +1 -1
  380. package/cjs/tree/tree-list.d.ts +1 -1
  381. package/cjs/tree/tree-list.d.ts.map +1 -1
  382. package/cjs/tree/tree-list.js +4 -4
  383. package/cjs/tree/tree-list.type.d.ts +3 -3
  384. package/cjs/tree/tree-list.type.d.ts.map +1 -1
  385. package/cjs/tree/tree-node.d.ts +1 -1
  386. package/cjs/tree/tree-node.d.ts.map +1 -1
  387. package/cjs/tree/tree-node.js +10 -11
  388. package/cjs/tree/tree-node.type.d.ts +3 -3
  389. package/cjs/tree/tree-node.type.d.ts.map +1 -1
  390. package/cjs/tree/tree-root.d.ts +1 -1
  391. package/cjs/tree/tree-root.d.ts.map +1 -1
  392. package/cjs/tree/tree-root.js +11 -11
  393. package/cjs/tree/tree-root.type.d.ts +3 -3
  394. package/cjs/tree/tree-root.type.d.ts.map +1 -1
  395. package/cjs/tree/tree.d.ts +2 -1
  396. package/cjs/tree/tree.d.ts.map +1 -1
  397. package/cjs/tree/tree.js +19 -21
  398. package/cjs/tree/tree.type.d.ts +4 -4
  399. package/cjs/tree/tree.type.d.ts.map +1 -1
  400. package/cjs/tree-select/index.js +2 -2
  401. package/cjs/tree-select/tree-select.d.ts +1 -1
  402. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  403. package/cjs/tree-select/tree-select.js +44 -42
  404. package/cjs/tree-select/tree-select.type.d.ts +7 -10
  405. package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
  406. package/cjs/upload/button.js +18 -18
  407. package/cjs/upload/button.type.d.ts +1 -1
  408. package/cjs/upload/button.type.d.ts.map +1 -1
  409. package/cjs/upload/drop.js +16 -19
  410. package/cjs/upload/image.js +8 -9
  411. package/cjs/upload/index.js +2 -2
  412. package/cjs/upload/result.js +25 -25
  413. package/cjs/upload/upload.d.ts.map +1 -1
  414. package/cjs/upload/upload.js +12 -22
  415. package/cjs/upload/useInputClick.js +2 -3
  416. package/cjs/virtual-scroll/index.js +2 -2
  417. package/cjs/virtual-scroll/scroll.js +9 -15
  418. package/cjs/virtual-scroll/virtual-scroll-list.js +20 -22
  419. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  420. package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  421. package/esm/absolute-list/absolute-context.js +3 -9
  422. package/esm/absolute-list/absolute-list.d.ts +3 -1
  423. package/esm/absolute-list/absolute-list.d.ts.map +1 -1
  424. package/esm/absolute-list/absolute-list.js +20 -34
  425. package/esm/absolute-list/absolute-list.type.d.ts +2 -2
  426. package/esm/absolute-list/absolute-list.type.d.ts.map +1 -1
  427. package/esm/absolute-list/absolute-list.type.js +1 -5
  428. package/esm/absolute-list/index.js +1 -19
  429. package/esm/absolute-list/use-container.js +19 -35
  430. package/esm/alert/alert-icon.js +15 -24
  431. package/esm/alert/alert.js +39 -46
  432. package/esm/alert/alert.type.d.ts +3 -2
  433. package/esm/alert/alert.type.d.ts.map +1 -1
  434. package/esm/alert/alert.type.js +1 -5
  435. package/esm/alert/index.js +1 -19
  436. package/esm/animation-list/animation-list.js +30 -43
  437. package/esm/animation-list/animation-list.type.d.ts +1 -1
  438. package/esm/animation-list/animation-list.type.d.ts.map +1 -1
  439. package/esm/animation-list/animation-list.type.js +1 -5
  440. package/esm/animation-list/index.js +1 -19
  441. package/esm/breadcrumb/breadcrumb.js +40 -41
  442. package/esm/breadcrumb/breadcrumb.type.d.ts +7 -1
  443. package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
  444. package/esm/breadcrumb/breadcrumb.type.js +1 -5
  445. package/esm/breadcrumb/index.js +1 -19
  446. package/esm/breadcrumb/list.d.ts +1 -0
  447. package/esm/breadcrumb/list.d.ts.map +1 -1
  448. package/esm/breadcrumb/list.js +38 -38
  449. package/esm/button/button-group.js +10 -26
  450. package/esm/button/button-item.js +4 -12
  451. package/esm/button/button.js +26 -32
  452. package/esm/button/button.type.d.ts +1 -1
  453. package/esm/button/button.type.d.ts.map +1 -1
  454. package/esm/button/button.type.js +1 -5
  455. package/esm/button/index.js +2 -26
  456. package/esm/card/card-accordion-context.js +3 -11
  457. package/esm/card/card-accordion.js +23 -26
  458. package/esm/card/card-accordion.type.js +1 -5
  459. package/esm/card/card-body.js +11 -19
  460. package/esm/card/card-body.type.js +1 -5
  461. package/esm/card/card-footer.js +9 -17
  462. package/esm/card/card-footer.type.js +1 -5
  463. package/esm/card/card-header.js +17 -24
  464. package/esm/card/card-header.type.js +1 -5
  465. package/esm/card/card.context.js +3 -10
  466. package/esm/card/card.js +43 -47
  467. package/esm/card/card.type.js +1 -5
  468. package/esm/card/index.js +6 -54
  469. package/esm/card-group/card-group-context.js +3 -9
  470. package/esm/card-group/card-group.js +22 -30
  471. package/esm/card-group/card-group.type.js +1 -5
  472. package/esm/card-group/index.js +2 -26
  473. package/esm/card-group/item.js +18 -30
  474. package/esm/card-group/item.type.js +1 -5
  475. package/esm/card-group/lazyload.js +19 -27
  476. package/esm/carousel/carousel.js +45 -54
  477. package/esm/carousel/carousel.type.d.ts +0 -1
  478. package/esm/carousel/carousel.type.d.ts.map +1 -1
  479. package/esm/carousel/carousel.type.js +1 -5
  480. package/esm/carousel/index.js +1 -19
  481. package/esm/cascader/cascader.d.ts.map +1 -1
  482. package/esm/cascader/cascader.js +122 -131
  483. package/esm/cascader/cascader.type.d.ts +5 -10
  484. package/esm/cascader/cascader.type.d.ts.map +1 -1
  485. package/esm/cascader/cascader.type.js +1 -5
  486. package/esm/cascader/filter-list.js +13 -23
  487. package/esm/cascader/filter-list.type.js +1 -5
  488. package/esm/cascader/filter-node.js +12 -22
  489. package/esm/cascader/filter-node.type.js +1 -5
  490. package/esm/cascader/index.js +1 -19
  491. package/esm/cascader/list.js +9 -18
  492. package/esm/cascader/list.type.js +1 -5
  493. package/esm/cascader/node.d.ts.map +1 -1
  494. package/esm/cascader/node.js +47 -45
  495. package/esm/cascader/node.type.js +1 -5
  496. package/esm/checkbox/checkbox-group.js +21 -29
  497. package/esm/checkbox/checkbox-group.type.js +1 -5
  498. package/esm/checkbox/checkbox.d.ts.map +1 -1
  499. package/esm/checkbox/checkbox.js +33 -35
  500. package/esm/checkbox/checkbox.type.js +1 -5
  501. package/esm/checkbox/group-context.d.ts +1 -1
  502. package/esm/checkbox/group-context.d.ts.map +1 -1
  503. package/esm/checkbox/group-context.js +3 -9
  504. package/esm/checkbox/index.js +2 -26
  505. package/esm/checkbox/simple-checkbox.js +30 -36
  506. package/esm/checkbox/use-checkbox-inputable.js +12 -15
  507. package/esm/collapse/collapse-item.js +28 -41
  508. package/esm/collapse/collapse-item.type.js +1 -5
  509. package/esm/collapse/collapse.js +12 -20
  510. package/esm/collapse/collapse.type.js +1 -5
  511. package/esm/collapse/group-context.d.ts +1 -1
  512. package/esm/collapse/group-context.d.ts.map +1 -1
  513. package/esm/collapse/group-context.js +3 -9
  514. package/esm/collapse/index.js +2 -26
  515. package/esm/common/type.js +1 -5
  516. package/esm/common/use-clear.js +4 -11
  517. package/esm/common/use-inner-title.js +26 -34
  518. package/esm/common/use-tip.js +14 -20
  519. package/esm/common/use-with-form-config.js +10 -19
  520. package/esm/config/index.d.ts +1 -4
  521. package/esm/config/index.d.ts.map +1 -1
  522. package/esm/config/index.js +26 -47
  523. package/esm/config/locale/Props.d.ts +4 -4
  524. package/esm/config/locale/Props.d.ts.map +1 -1
  525. package/esm/config/locale/Props.js +1 -5
  526. package/esm/config/locale/en_US.js +2 -9
  527. package/esm/config/locale/index.js +17 -25
  528. package/esm/config/locale/zh-CN.js +2 -9
  529. package/esm/date-picker/date-picker.d.ts.map +1 -1
  530. package/esm/date-picker/date-picker.js +65 -74
  531. package/esm/date-picker/date-picker.type.d.ts +5 -3
  532. package/esm/date-picker/date-picker.type.d.ts.map +1 -1
  533. package/esm/date-picker/date-picker.type.js +1 -5
  534. package/esm/date-picker/day.js +74 -85
  535. package/esm/date-picker/day.type.js +1 -5
  536. package/esm/date-picker/index.js +1 -19
  537. package/esm/date-picker/month.js +32 -42
  538. package/esm/date-picker/month.type.d.ts +1 -1
  539. package/esm/date-picker/month.type.d.ts.map +1 -1
  540. package/esm/date-picker/month.type.js +1 -5
  541. package/esm/date-picker/picker.js +30 -38
  542. package/esm/date-picker/picker.type.js +1 -5
  543. package/esm/date-picker/pickerTitle.js +8 -15
  544. package/esm/date-picker/quarter.js +31 -41
  545. package/esm/date-picker/quarter.type.d.ts +1 -1
  546. package/esm/date-picker/quarter.type.d.ts.map +1 -1
  547. package/esm/date-picker/quarter.type.js +1 -5
  548. package/esm/date-picker/quick.js +13 -22
  549. package/esm/date-picker/quick.type.js +1 -5
  550. package/esm/date-picker/result.js +43 -52
  551. package/esm/date-picker/time.js +33 -47
  552. package/esm/date-picker/time.type.js +1 -5
  553. package/esm/date-picker/year.js +34 -44
  554. package/esm/date-picker/year.type.d.ts +1 -1
  555. package/esm/date-picker/year.type.d.ts.map +1 -1
  556. package/esm/date-picker/year.type.js +1 -5
  557. package/esm/descriptions/descriptions.js +35 -50
  558. package/esm/descriptions/descriptions.type.d.ts +1 -1
  559. package/esm/descriptions/descriptions.type.d.ts.map +1 -1
  560. package/esm/descriptions/descriptions.type.js +1 -5
  561. package/esm/descriptions/index.js +1 -19
  562. package/esm/divider/divider.js +7 -15
  563. package/esm/divider/divider.type.js +1 -5
  564. package/esm/divider/index.js +1 -19
  565. package/esm/dropdown/Item.d.ts.map +1 -1
  566. package/esm/dropdown/Item.js +46 -41
  567. package/esm/dropdown/dropdown.js +11 -19
  568. package/esm/dropdown/dropdown.type.d.ts +5 -5
  569. package/esm/dropdown/dropdown.type.d.ts.map +1 -1
  570. package/esm/dropdown/dropdown.type.js +10 -3
  571. package/esm/dropdown/dropdownIn.d.ts.map +1 -1
  572. package/esm/dropdown/dropdownIn.js +39 -48
  573. package/esm/dropdown/index.d.ts +1 -1
  574. package/esm/dropdown/index.d.ts.map +1 -1
  575. package/esm/dropdown/index.js +1 -19
  576. package/esm/editable-area/editable-area.d.ts.map +1 -1
  577. package/esm/editable-area/editable-area.js +44 -53
  578. package/esm/editable-area/editable-area.type.js +1 -5
  579. package/esm/editable-area/index.js +1 -19
  580. package/esm/empty/empty-image.js +43 -49
  581. package/esm/empty/empty.js +28 -35
  582. package/esm/empty/empty.type.js +1 -5
  583. package/esm/empty/index.js +1 -19
  584. package/esm/form/error-trans.js +11 -21
  585. package/esm/form/form-button.js +16 -24
  586. package/esm/form/form-field.js +9 -18
  587. package/esm/form/form-field.type.d.ts +1 -1
  588. package/esm/form/form-field.type.d.ts.map +1 -1
  589. package/esm/form/form-field.type.js +1 -5
  590. package/esm/form/form-fieldset.js +17 -29
  591. package/esm/form/form-fieldset.type.js +1 -5
  592. package/esm/form/form-flow.js +4 -11
  593. package/esm/form/form-flow.type.js +1 -5
  594. package/esm/form/form-footer-context.js +21 -31
  595. package/esm/form/form-item.js +30 -37
  596. package/esm/form/form-item.type.js +1 -5
  597. package/esm/form/form.d.ts +1 -1
  598. package/esm/form/form.d.ts.map +1 -1
  599. package/esm/form/form.js +41 -45
  600. package/esm/form/form.type.d.ts +7 -0
  601. package/esm/form/form.type.d.ts.map +1 -1
  602. package/esm/form/form.type.js +1 -8
  603. package/esm/form/index.js +6 -54
  604. package/esm/gap/gap.js +17 -26
  605. package/esm/gap/gap.type.js +1 -5
  606. package/esm/gap/index.js +1 -19
  607. package/esm/gap/support.js +1 -7
  608. package/esm/grid/grid.js +19 -34
  609. package/esm/grid/grid.type.d.ts +1 -1
  610. package/esm/grid/grid.type.d.ts.map +1 -1
  611. package/esm/grid/grid.type.js +1 -5
  612. package/esm/grid/index.js +1 -19
  613. package/esm/grid/util.d.ts +1 -1
  614. package/esm/grid/util.d.ts.map +1 -1
  615. package/esm/grid/util.js +7 -16
  616. package/esm/icon/icon.js +22 -31
  617. package/esm/icon/icon.type.d.ts +1 -1
  618. package/esm/icon/icon.type.d.ts.map +1 -1
  619. package/esm/icon/icon.type.js +1 -5
  620. package/esm/icon/index.js +1 -19
  621. package/esm/icons/config.d.ts +144 -0
  622. package/esm/icons/config.d.ts.map +1 -0
  623. package/esm/icons/config.js +157 -0
  624. package/esm/icons/icons.d.ts +46 -0
  625. package/esm/icons/icons.d.ts.map +1 -0
  626. package/esm/icons/icons.js +177 -0
  627. package/esm/icons/index.d.ts +1 -47
  628. package/esm/icons/index.d.ts.map +1 -1
  629. package/esm/icons/index.js +1 -194
  630. package/esm/image/image-event.js +10 -18
  631. package/esm/image/image-gallery.js +31 -37
  632. package/esm/image/image-group.d.ts.map +1 -1
  633. package/esm/image/image-group.js +30 -44
  634. package/esm/image/image-group.type.js +1 -5
  635. package/esm/image/image-magnify.js +17 -23
  636. package/esm/image/image.js +51 -63
  637. package/esm/image/image.type.d.ts +4 -4
  638. package/esm/image/image.type.d.ts.map +1 -1
  639. package/esm/image/image.type.js +1 -5
  640. package/esm/image/index.js +2 -26
  641. package/esm/index.d.ts +1 -1
  642. package/esm/index.d.ts.map +1 -1
  643. package/esm/index.js +48 -581
  644. package/esm/input/index.js +4 -40
  645. package/esm/input/input-group.js +33 -42
  646. package/esm/input/input-group.type.js +1 -5
  647. package/esm/input/input-number.js +33 -39
  648. package/esm/input/input-number.type.d.ts +1 -1
  649. package/esm/input/input-number.type.d.ts.map +1 -1
  650. package/esm/input/input-number.type.js +1 -5
  651. package/esm/input/input-password.js +23 -29
  652. package/esm/input/input-password.type.js +1 -5
  653. package/esm/input/input.js +18 -27
  654. package/esm/input/input.type.d.ts +1 -1
  655. package/esm/input/input.type.d.ts.map +1 -1
  656. package/esm/input/input.type.js +1 -5
  657. package/esm/input/simple-input.js +31 -37
  658. package/esm/input/use-input-common.d.ts +1 -1
  659. package/esm/input/use-input-common.js +44 -52
  660. package/esm/list/base-item.js +47 -54
  661. package/esm/list/base-item.type.js +1 -5
  662. package/esm/list/index.js +2 -26
  663. package/esm/list/list.d.ts.map +1 -1
  664. package/esm/list/list.js +54 -65
  665. package/esm/list/list.type.js +1 -5
  666. package/esm/menu/index.js +1 -19
  667. package/esm/menu/item.d.ts.map +1 -1
  668. package/esm/menu/item.js +42 -49
  669. package/esm/menu/menu.js +35 -38
  670. package/esm/menu/menu.type.d.ts +2 -2
  671. package/esm/menu/menu.type.d.ts.map +1 -1
  672. package/esm/menu/menu.type.js +1 -5
  673. package/esm/menu/scroll.js +24 -27
  674. package/esm/menu/scrollbar.js +16 -24
  675. package/esm/message/func.js +6 -14
  676. package/esm/message/func.type.d.ts +2 -2
  677. package/esm/message/func.type.d.ts.map +1 -1
  678. package/esm/message/func.type.js +1 -5
  679. package/esm/message/index.js +1 -19
  680. package/esm/message/manager.d.ts.map +1 -1
  681. package/esm/message/manager.js +15 -25
  682. package/esm/message/message.js +59 -65
  683. package/esm/message/message.type.js +1 -5
  684. package/esm/modal/index.js +3 -33
  685. package/esm/modal/modal-content.d.ts.map +1 -1
  686. package/esm/modal/modal-content.js +84 -74
  687. package/esm/modal/modal-content.type.js +1 -5
  688. package/esm/modal/modal-func.d.ts +1 -1
  689. package/esm/modal/modal-func.d.ts.map +1 -1
  690. package/esm/modal/modal-func.js +40 -44
  691. package/esm/modal/modal-func.type.js +1 -5
  692. package/esm/modal/modal-submit.js +17 -25
  693. package/esm/modal/modal.js +23 -26
  694. package/esm/modal/modal.type.d.ts +1 -1
  695. package/esm/modal/modal.type.d.ts.map +1 -1
  696. package/esm/modal/modal.type.js +1 -5
  697. package/esm/modal/use-modal-move.js +24 -27
  698. package/esm/modal/use-modal-resize.js +19 -22
  699. package/esm/pagination/index.js +1 -19
  700. package/esm/pagination/pagination-button.js +17 -25
  701. package/esm/pagination/pagination-button.type.js +1 -5
  702. package/esm/pagination/pagination-buttons.js +37 -39
  703. package/esm/pagination/pagination-buttons.type.d.ts +2 -2
  704. package/esm/pagination/pagination-buttons.type.d.ts.map +1 -1
  705. package/esm/pagination/pagination-buttons.type.js +1 -5
  706. package/esm/pagination/pagination-jumper.js +26 -30
  707. package/esm/pagination/pagination-jumper.type.js +1 -5
  708. package/esm/pagination/pagination-next.d.ts.map +1 -1
  709. package/esm/pagination/pagination-next.js +10 -18
  710. package/esm/pagination/pagination-prev.d.ts.map +1 -1
  711. package/esm/pagination/pagination-prev.js +10 -18
  712. package/esm/pagination/pagination-simple.js +11 -17
  713. package/esm/pagination/pagination-simple.type.js +1 -5
  714. package/esm/pagination/pagination-size-list.js +8 -17
  715. package/esm/pagination/pagination-size-list.type.js +1 -5
  716. package/esm/pagination/pagination.d.ts.map +1 -1
  717. package/esm/pagination/pagination.js +28 -38
  718. package/esm/pagination/pagination.type.d.ts +2 -2
  719. package/esm/pagination/pagination.type.d.ts.map +1 -1
  720. package/esm/pagination/pagination.type.js +1 -5
  721. package/esm/popover/confirm.js +39 -46
  722. package/esm/popover/confirm.type.d.ts +2 -2
  723. package/esm/popover/confirm.type.d.ts.map +1 -1
  724. package/esm/popover/confirm.type.js +1 -5
  725. package/esm/popover/index.js +2 -26
  726. package/esm/popover/popover.js +33 -46
  727. package/esm/popover/popover.type.js +1 -5
  728. package/esm/progress/analyzeColor.js +2 -10
  729. package/esm/progress/circle.js +21 -30
  730. package/esm/progress/index.js +1 -19
  731. package/esm/progress/line-popup.js +15 -21
  732. package/esm/progress/line.js +20 -29
  733. package/esm/progress/progress.js +13 -21
  734. package/esm/progress/progress.type.js +1 -5
  735. package/esm/radio/group-context.d.ts +1 -1
  736. package/esm/radio/group-context.d.ts.map +1 -1
  737. package/esm/radio/group-context.js +3 -9
  738. package/esm/radio/index.js +2 -26
  739. package/esm/radio/radio-group.js +34 -41
  740. package/esm/radio/radio-group.type.js +1 -5
  741. package/esm/radio/radio.js +20 -27
  742. package/esm/radio/radio.type.js +1 -5
  743. package/esm/radio/simple-radio.js +24 -30
  744. package/esm/rate/index.js +1 -19
  745. package/esm/rate/rate.js +32 -42
  746. package/esm/rate/rate.type.js +1 -5
  747. package/esm/rule/index.js +1 -12
  748. package/esm/select/index.js +1 -19
  749. package/esm/select/list-columns-option.js +8 -16
  750. package/esm/select/list-columns-option.type.js +1 -5
  751. package/esm/select/list-columns.js +21 -33
  752. package/esm/select/list-option.js +17 -21
  753. package/esm/select/list-option.type.js +1 -5
  754. package/esm/select/list-tree.js +11 -19
  755. package/esm/select/list-tree.type.js +1 -5
  756. package/esm/select/list.js +41 -46
  757. package/esm/select/result-input.d.ts.map +1 -1
  758. package/esm/select/result-input.js +16 -33
  759. package/esm/select/result-input.type.d.ts +3 -0
  760. package/esm/select/result-input.type.d.ts.map +1 -1
  761. package/esm/select/result-input.type.js +1 -5
  762. package/esm/select/result-more.d.ts.map +1 -1
  763. package/esm/select/result-more.js +36 -47
  764. package/esm/select/result-more.type.d.ts +4 -0
  765. package/esm/select/result-more.type.d.ts.map +1 -1
  766. package/esm/select/result-more.type.js +1 -5
  767. package/esm/select/result.d.ts.map +1 -1
  768. package/esm/select/result.js +68 -81
  769. package/esm/select/result.type.d.ts +14 -1
  770. package/esm/select/result.type.d.ts.map +1 -1
  771. package/esm/select/result.type.js +1 -5
  772. package/esm/select/select.d.ts.map +1 -1
  773. package/esm/select/select.js +115 -117
  774. package/esm/select/select.type.d.ts +10 -14
  775. package/esm/select/select.type.d.ts.map +1 -1
  776. package/esm/select/select.type.js +1 -5
  777. package/esm/slider/index.js +1 -19
  778. package/esm/slider/slider.js +32 -39
  779. package/esm/slider/slider.type.js +1 -5
  780. package/esm/spin/base.js +16 -25
  781. package/esm/spin/index.js +1 -19
  782. package/esm/spin/spin.js +26 -33
  783. package/esm/spin/spin.type.d.ts +2 -2
  784. package/esm/spin/spin.type.d.ts.map +1 -1
  785. package/esm/spin/spin.type.js +1 -5
  786. package/esm/spin/spins.js +71 -80
  787. package/esm/spin/utils.js +2 -10
  788. package/esm/steps/index.js +2 -26
  789. package/esm/steps/step.arrow.d.ts.map +1 -1
  790. package/esm/steps/step.arrow.js +15 -20
  791. package/esm/steps/step.default.d.ts.map +1 -1
  792. package/esm/steps/step.default.js +25 -29
  793. package/esm/steps/step.dot.d.ts.map +1 -1
  794. package/esm/steps/step.dot.js +20 -24
  795. package/esm/steps/step.js +28 -37
  796. package/esm/steps/step.type.js +1 -5
  797. package/esm/steps/steps-context.js +3 -9
  798. package/esm/steps/steps-context.type.js +1 -5
  799. package/esm/steps/steps.js +18 -24
  800. package/esm/steps/steps.type.d.ts +3 -3
  801. package/esm/steps/steps.type.d.ts.map +1 -1
  802. package/esm/steps/steps.type.js +1 -5
  803. package/esm/sticky/index.js +1 -19
  804. package/esm/sticky/sticky.d.ts.map +1 -1
  805. package/esm/sticky/sticky.js +82 -85
  806. package/esm/sticky/sticky.type.d.ts +5 -1
  807. package/esm/sticky/sticky.type.d.ts.map +1 -1
  808. package/esm/sticky/sticky.type.js +1 -5
  809. package/esm/switch/index.js +1 -19
  810. package/esm/switch/switch.js +31 -33
  811. package/esm/switch/switch.type.js +1 -5
  812. package/esm/table/colgroup.js +6 -14
  813. package/esm/table/index.js +1 -19
  814. package/esm/table/table.d.ts.map +1 -1
  815. package/esm/table/table.js +150 -148
  816. package/esm/table/table.type.d.ts +12 -10
  817. package/esm/table/table.type.d.ts.map +1 -1
  818. package/esm/table/table.type.js +1 -5
  819. package/esm/table/tbody.d.ts.map +1 -1
  820. package/esm/table/tbody.js +13 -21
  821. package/esm/table/tbody.type.d.ts +3 -3
  822. package/esm/table/tbody.type.d.ts.map +1 -1
  823. package/esm/table/tbody.type.js +1 -5
  824. package/esm/table/temp/01-base.d.ts.map +1 -1
  825. package/esm/table/temp/01-base.js +40 -37
  826. package/esm/table/tfoot.js +12 -22
  827. package/esm/table/tfoot.type.js +1 -12
  828. package/esm/table/thead.d.ts.map +1 -1
  829. package/esm/table/thead.js +52 -67
  830. package/esm/table/thead.type.d.ts +2 -2
  831. package/esm/table/thead.type.d.ts.map +1 -1
  832. package/esm/table/thead.type.js +1 -5
  833. package/esm/table/tr.d.ts +1 -1
  834. package/esm/table/tr.d.ts.map +1 -1
  835. package/esm/table/tr.js +49 -63
  836. package/esm/table/use-table-select.js +20 -29
  837. package/esm/tabs/index.js +2 -26
  838. package/esm/tabs/tab.js +23 -30
  839. package/esm/tabs/tab.type.js +1 -5
  840. package/esm/tabs/tabs-header.d.ts.map +1 -1
  841. package/esm/tabs/tabs-header.js +60 -63
  842. package/esm/tabs/tabs-header.type.js +1 -5
  843. package/esm/tabs/tabs-panel.d.ts.map +1 -1
  844. package/esm/tabs/tabs-panel.js +23 -19
  845. package/esm/tabs/tabs-panel.type.js +1 -5
  846. package/esm/tabs/tabs.js +54 -65
  847. package/esm/tabs/tabs.type.d.ts +2 -2
  848. package/esm/tabs/tabs.type.d.ts.map +1 -1
  849. package/esm/tabs/tabs.type.js +1 -5
  850. package/esm/tag/index.js +2 -26
  851. package/esm/tag/tag-input.js +16 -24
  852. package/esm/tag/tag.js +33 -39
  853. package/esm/tag/tag.type.d.ts +8 -8
  854. package/esm/tag/tag.type.d.ts.map +1 -1
  855. package/esm/tag/tag.type.js +1 -5
  856. package/esm/tag/use-tag.js +21 -24
  857. package/esm/textarea/index.js +1 -19
  858. package/esm/textarea/simple-textarea.js +26 -38
  859. package/esm/textarea/textarea.js +51 -60
  860. package/esm/textarea/textarea.type.d.ts +1 -6
  861. package/esm/textarea/textarea.type.d.ts.map +1 -1
  862. package/esm/textarea/textarea.type.js +1 -5
  863. package/esm/textarea/use-auto-size.js +20 -28
  864. package/esm/tooltip/index.js +1 -19
  865. package/esm/tooltip/tooltip.d.ts.map +1 -1
  866. package/esm/tooltip/tooltip.js +30 -40
  867. package/esm/tooltip/tooltip.type.d.ts +6 -0
  868. package/esm/tooltip/tooltip.type.d.ts.map +1 -1
  869. package/esm/tooltip/tooltip.type.js +1 -5
  870. package/esm/transfer/index.js +1 -19
  871. package/esm/transfer/transfer-list-header.d.ts.map +1 -1
  872. package/esm/transfer/transfer-list-header.js +22 -29
  873. package/esm/transfer/transfer-list-header.type.js +1 -5
  874. package/esm/transfer/transfer-list-item.d.ts.map +1 -1
  875. package/esm/transfer/transfer-list-item.js +21 -26
  876. package/esm/transfer/transfer-list-item.type.js +1 -5
  877. package/esm/transfer/transfer-list.js +42 -49
  878. package/esm/transfer/transfer-list.type.js +1 -5
  879. package/esm/transfer/transfer-operate.js +6 -14
  880. package/esm/transfer/transfer-operate.type.js +1 -5
  881. package/esm/transfer/transfer.js +28 -33
  882. package/esm/transfer/transfer.type.d.ts +2 -2
  883. package/esm/transfer/transfer.type.d.ts.map +1 -1
  884. package/esm/transfer/transfer.type.js +1 -5
  885. package/esm/tree/index.js +1 -19
  886. package/esm/tree/tree-checkbox.d.ts +2 -1
  887. package/esm/tree/tree-checkbox.d.ts.map +1 -1
  888. package/esm/tree/tree-checkbox.js +8 -13
  889. package/esm/tree/tree-checkbox.type.d.ts +2 -2
  890. package/esm/tree/tree-checkbox.type.d.ts.map +1 -1
  891. package/esm/tree/tree-checkbox.type.js +1 -5
  892. package/esm/tree/tree-content.d.ts +2 -1
  893. package/esm/tree/tree-content.d.ts.map +1 -1
  894. package/esm/tree/tree-content.js +36 -44
  895. package/esm/tree/tree-content.type.d.ts +2 -2
  896. package/esm/tree/tree-content.type.d.ts.map +1 -1
  897. package/esm/tree/tree-content.type.js +1 -5
  898. package/esm/tree/tree-context.d.ts +4 -3
  899. package/esm/tree/tree-context.d.ts.map +1 -1
  900. package/esm/tree/tree-context.js +8 -22
  901. package/esm/tree/tree-context.type.d.ts +2 -2
  902. package/esm/tree/tree-context.type.d.ts.map +1 -1
  903. package/esm/tree/tree-context.type.js +1 -5
  904. package/esm/tree/tree-list.d.ts +1 -1
  905. package/esm/tree/tree-list.d.ts.map +1 -1
  906. package/esm/tree/tree-list.js +10 -17
  907. package/esm/tree/tree-list.type.d.ts +3 -3
  908. package/esm/tree/tree-list.type.d.ts.map +1 -1
  909. package/esm/tree/tree-list.type.js +1 -5
  910. package/esm/tree/tree-node.d.ts +1 -1
  911. package/esm/tree/tree-node.d.ts.map +1 -1
  912. package/esm/tree/tree-node.js +25 -32
  913. package/esm/tree/tree-node.type.d.ts +3 -3
  914. package/esm/tree/tree-node.type.d.ts.map +1 -1
  915. package/esm/tree/tree-node.type.js +1 -5
  916. package/esm/tree/tree-root.d.ts +1 -1
  917. package/esm/tree/tree-root.d.ts.map +1 -1
  918. package/esm/tree/tree-root.js +15 -22
  919. package/esm/tree/tree-root.type.d.ts +3 -3
  920. package/esm/tree/tree-root.type.d.ts.map +1 -1
  921. package/esm/tree/tree-root.type.js +1 -5
  922. package/esm/tree/tree.d.ts +2 -1
  923. package/esm/tree/tree.d.ts.map +1 -1
  924. package/esm/tree/tree.js +36 -45
  925. package/esm/tree/tree.type.d.ts +4 -4
  926. package/esm/tree/tree.type.d.ts.map +1 -1
  927. package/esm/tree/tree.type.js +1 -5
  928. package/esm/tree-select/index.js +1 -19
  929. package/esm/tree-select/tree-select.d.ts +1 -1
  930. package/esm/tree-select/tree-select.d.ts.map +1 -1
  931. package/esm/tree-select/tree-select.js +109 -114
  932. package/esm/tree-select/tree-select.type.d.ts +7 -10
  933. package/esm/tree-select/tree-select.type.d.ts.map +1 -1
  934. package/esm/tree-select/tree-select.type.js +1 -5
  935. package/esm/upload/button.js +39 -47
  936. package/esm/upload/button.type.d.ts +1 -1
  937. package/esm/upload/button.type.d.ts.map +1 -1
  938. package/esm/upload/button.type.js +1 -5
  939. package/esm/upload/drop.js +23 -33
  940. package/esm/upload/image.js +10 -18
  941. package/esm/upload/image.type.js +1 -5
  942. package/esm/upload/index.js +3 -33
  943. package/esm/upload/result.js +63 -70
  944. package/esm/upload/upload.d.ts.map +1 -1
  945. package/esm/upload/upload.js +51 -67
  946. package/esm/upload/upload.type.js +1 -5
  947. package/esm/upload/useInputClick.js +5 -12
  948. package/esm/virtual-scroll/index.js +2 -20
  949. package/esm/virtual-scroll/scroll.js +19 -32
  950. package/esm/virtual-scroll/virtual-scroll-list.js +32 -43
  951. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
  952. package/esm/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
  953. package/esm/virtual-scroll/virtual-scroll-list.type.js +1 -5
  954. package/package.json +3 -3
  955. package/cjs/icons/caret.d.ts +0 -4
  956. package/cjs/icons/caret.d.ts.map +0 -1
  957. package/cjs/icons/caret.js +0 -19
  958. package/cjs/icons/caret.type.d.ts +0 -2
  959. package/cjs/icons/caret.type.d.ts.map +0 -1
  960. package/cjs/icons/caret.type.js +0 -5
  961. package/cjs/table/temp/00-scroll.d.ts +0 -4
  962. package/cjs/table/temp/00-scroll.d.ts.map +0 -1
  963. package/cjs/table/temp/00-scroll.js +0 -32
  964. package/esm/icons/caret.d.ts +0 -4
  965. package/esm/icons/caret.d.ts.map +0 -1
  966. package/esm/icons/caret.js +0 -19
  967. package/esm/icons/caret.type.d.ts +0 -2
  968. package/esm/icons/caret.type.d.ts.map +0 -1
  969. package/esm/icons/caret.type.js +0 -5
  970. package/esm/table/temp/00-scroll.d.ts +0 -4
  971. package/esm/table/temp/00-scroll.d.ts.map +0 -1
  972. package/esm/table/temp/00-scroll.js +0 -32
@@ -4,5 +4,9 @@ export interface ReultMoreProps<DataItem, Value> extends Pick<SelectProps<DataIt
4
4
  data: React.ReactNode[];
5
5
  more?: number;
6
6
  showNum?: number;
7
+ classes: {
8
+ tag: string;
9
+ moreWrapper: string;
10
+ };
7
11
  }
8
12
  //# sourceMappingURL=result-more.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"result-more.type.d.ts","sourceRoot":"","sources":["result-more.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,cAAc,CAAC,QAAQ,EAAE,KAAK,CAC7C,SAAQ,IAAI,CACV,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,EAC1B,UAAU,GACV,MAAM,GACN,UAAU,GACV,aAAa,GACb,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,iBAAiB,GACjB,qBAAqB,GACrB,UAAU,GACV,UAAU,CACb;IACD,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"result-more.type.d.ts","sourceRoot":"","sources":["result-more.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,cAAc,CAAC,QAAQ,EAAE,KAAK,CAC7C,SAAQ,IAAI,CACV,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,EAC1B,UAAU,GACV,MAAM,GACN,UAAU,GACV,aAAa,GACb,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,iBAAiB,GACjB,qBAAqB,GACrB,UAAU,GACV,UAAU,CACb;IACD,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["result.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAS5C,QAAA,MAAM,MAAM,uEA4WX,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["result.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQ5C,QAAA,MAAM,MAAM,uEA6WX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,24 +1,10 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.array.filter.js");
4
- require("core-js/modules/es.object.get-own-property-descriptors.js");
5
- require("core-js/modules/es.array.iterator.js");
6
- require("core-js/modules/es.weak-map.js");
7
- require("core-js/modules/web.dom-collections.iterator.js");
8
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
9
- var _typeof = require("@babel/runtime/helpers/typeof");
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
4
  Object.defineProperty(exports, "__esModule", {
11
5
  value: true
12
6
  });
13
7
  exports.default = void 0;
14
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
- require("core-js/modules/es.string.trim.js");
17
- require("core-js/modules/es.array.includes.js");
18
- require("core-js/modules/es.regexp.exec.js");
19
- require("core-js/modules/es.string.split.js");
20
- require("core-js/modules/es.array.map.js");
21
- require("core-js/modules/web.dom-collections.for-each.js");
22
8
  var _react = _interopRequireWildcard(require("react"));
23
9
  var _classnames = _interopRequireDefault(require("classnames"));
24
10
  var _hooks = require("@sheinx/hooks");
@@ -26,10 +12,20 @@ var _resultInput = _interopRequireDefault(require("./result-input"));
26
12
  var _resultMore = _interopRequireWildcard(require("./result-more"));
27
13
  var _tag = _interopRequireDefault(require("../tag"));
28
14
  var _jsxRuntime = require("react/jsx-runtime");
29
- 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); }
30
- 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; }
31
- 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; }
32
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
22
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
24
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
26
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
27
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
28
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
29
  var isObject = _hooks.util.isObject,
34
30
  isEmpty = _hooks.util.isEmpty,
35
31
  isNumber = _hooks.util.isNumber,
@@ -38,7 +34,6 @@ var isObject = _hooks.util.isObject,
38
34
  isFunc = _hooks.util.isFunc,
39
35
  isArray = _hooks.util.isArray;
40
36
  var Result = function Result(props) {
41
- var _jssStyle$select;
42
37
  var jssStyle = props.jssStyle,
43
38
  multiple = props.multiple,
44
39
  size = props.size,
@@ -72,7 +67,7 @@ var Result = function Result(props) {
72
67
  onResultItemClick = props.onResultItemClick;
73
68
  var value = [null, undefined, ''].includes(valueProp) ? [] : multiple ? valueProp : [valueProp];
74
69
  var _useState = (0, _react.useState)(-1),
75
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
70
+ _useState2 = _slicedToArray(_useState, 2),
76
71
  more = _useState2[0],
77
72
  setMore = _useState2[1];
78
73
  var resultRef = (0, _react.useRef)(null);
@@ -80,7 +75,7 @@ var Result = function Result(props) {
80
75
  var prevMore = (0, _react.useRef)(more);
81
76
  var showInput = allowOnFilter;
82
77
  var mounted = (0, _react.useRef)(false);
83
- var styles = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
78
+ var styles = props.classes;
84
79
  var rootClass = (0, _classnames.default)(styles.resultTextWrapper, compressed && styles.compressedWrapper, multiple && styles.multipleResultWrapper, multiple && compressed && styles.multipleCompressedWrapper);
85
80
  var renderResultContent = function renderResultContent(data, index, nodes) {
86
81
  if (checkUnMatched(data)) {
@@ -111,7 +106,7 @@ var Result = function Result(props) {
111
106
  return more;
112
107
  };
113
108
  var handleResultItemClick = function handleResultItemClick(e, item) {
114
- onResultItemClick === null || onResultItemClick === void 0 ? void 0 : onResultItemClick(e, item);
109
+ onResultItemClick === null || onResultItemClick === void 0 || onResultItemClick(e, item);
115
110
  };
116
111
  var renderInput = function renderInput() {
117
112
  var placeholder2 = empty ? placeholder : '';
@@ -124,7 +119,7 @@ var Result = function Result(props) {
124
119
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.default.Fragment, {
125
120
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_resultInput.default, {
126
121
  isEmpty: empty,
127
- jssStyle: jssStyle,
122
+ classes: props.classes,
128
123
  value: filterText,
129
124
  trim: trim,
130
125
  focus: focus,
@@ -153,7 +148,7 @@ var Result = function Result(props) {
153
148
  key = getKey(keygen, item, index);
154
149
  }
155
150
  var handleClose = function handleClose() {
156
- onRemove === null || onRemove === void 0 ? void 0 : onRemove(item, key, index);
151
+ onRemove === null || onRemove === void 0 || onRemove(item, key, index);
157
152
  };
158
153
  var isDisabled;
159
154
  if (_hooks.util.isFunc(disabled)) {
@@ -254,7 +249,8 @@ var Result = function Result(props) {
254
249
  var moreNumber = getCompressedBound();
255
250
  var renderMultipleResultMore = /*#__PURE__*/(0, _jsxRuntime.jsx)(_resultMore.default, {
256
251
  keygen: keygen,
257
- jssStyle: jssStyle,
252
+ classes: props.classes,
253
+ jssStyle: props.jssStyle,
258
254
  data: result,
259
255
  size: size,
260
256
  more: moreNumber,
@@ -293,7 +289,7 @@ var Result = function Result(props) {
293
289
  (0, _react.useEffect)(function () {
294
290
  if (!focus && mounted.current) {
295
291
  setTimeout(function () {
296
- onFilter === null || onFilter === void 0 ? void 0 : onFilter('', 'blur');
292
+ onFilter === null || onFilter === void 0 || onFilter('', 'blur');
297
293
  }, 400);
298
294
  }
299
295
  mounted.current = true;
@@ -341,5 +337,4 @@ var Result = function Result(props) {
341
337
  children: renderResult()
342
338
  });
343
339
  };
344
- var _default = Result;
345
- exports.default = _default;
340
+ var _default = exports.default = Result;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { KeygenResult, UnMatchedData } from '@sheinx/hooks';
3
3
  import { SelectProps } from './select.type';
4
- export declare type ResultType<Value> = UnMatchedData | Value;
4
+ export type ResultType<Value> = UnMatchedData | Value;
5
5
  export interface ResultProps<DataItem, Value> extends Pick<SelectProps<DataItem, Value>, 'jssStyle' | 'size' | 'multiple' | 'placeholder' | 'keygen' | 'value' | 'compressed' | 'compressedBound' | 'compressedClassName' | 'disabled' | 'resultClassName' | 'renderUnmatched' | 'focusSelected' | 'maxLength' | 'trim' | 'separator'> {
6
6
  data: DataItem[];
7
7
  focus: boolean;
@@ -23,5 +23,18 @@ export interface ResultProps<DataItem, Value> extends Pick<SelectProps<DataItem,
23
23
  onRemove?: (item: DataItem | UnMatchedData, key?: KeygenResult, index?: number) => void;
24
24
  onResultItemClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, item: DataItem, index?: number) => void;
25
25
  convertBr?: string | ((text: string) => string);
26
+ classes: {
27
+ tag: string;
28
+ resultTextWrapper: string;
29
+ compressedWrapper: string;
30
+ multipleResultWrapper: string;
31
+ multipleCompressedWrapper: string;
32
+ hideTag: string;
33
+ space: string;
34
+ placeholder: string;
35
+ ellipsis: string;
36
+ moreWrapper: string;
37
+ inputMirror: string;
38
+ };
26
39
  }
27
40
  //# sourceMappingURL=result.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"result.type.d.ts","sourceRoot":"","sources":["result.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,oBAAY,UAAU,CAAC,KAAK,IAAI,aAAa,GAAG,KAAK,CAAC;AAEtD,MAAM,WAAW,WAAW,CAAC,QAAQ,EAAE,KAAK,CAC1C,SAAQ,IAAI,CACV,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,EAC1B,UAAU,GACV,MAAM,GACN,UAAU,GACV,aAAa,GACb,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,iBAAiB,GACjB,qBAAqB,GACrB,UAAU,GACV,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,WAAW,GACX,MAAM,GACN,WAAW,CACd;IACD,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,CAAC;IACtC,YAAY,EAAE,CACZ,IAAI,EAAE,QAAQ,EACd,KAAK,CAAC,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,CAAC,QAAQ,GAAG,aAAa,CAAC,EAAE,KACjC,KAAK,CAAC,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IAC5D,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAChE,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,CAAC,SAAS,CAAC;IAEtD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,eAAe,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,CAAC,QAAQ,GAAG,aAAa,CAAC,EAAE,CAAC;IACjE,cAAc,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,KAAK,OAAO,CAAC;IAC5D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,EAAE,GAAG,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxF,iBAAiB,CAAC,EAAE,CAClB,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,EAC/C,IAAI,EAAE,QAAQ,EACd,KAAK,CAAC,EAAE,MAAM,KACX,IAAI,CAAC;IACV,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;CACjD"}
1
+ {"version":3,"file":"result.type.d.ts","sourceRoot":"","sources":["result.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,MAAM,UAAU,CAAC,KAAK,IAAI,aAAa,GAAG,KAAK,CAAC;AAEtD,MAAM,WAAW,WAAW,CAAC,QAAQ,EAAE,KAAK,CAC1C,SAAQ,IAAI,CACV,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,EAC1B,UAAU,GACV,MAAM,GACN,UAAU,GACV,aAAa,GACb,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,iBAAiB,GACjB,qBAAqB,GACrB,UAAU,GACV,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,WAAW,GACX,MAAM,GACN,WAAW,CACd;IACD,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,CAAC;IACtC,YAAY,EAAE,CACZ,IAAI,EAAE,QAAQ,EACd,KAAK,CAAC,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,CAAC,QAAQ,GAAG,aAAa,CAAC,EAAE,KACjC,KAAK,CAAC,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IAC5D,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAChE,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,CAAC,SAAS,CAAC;IAEtD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,eAAe,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,CAAC,QAAQ,GAAG,aAAa,CAAC,EAAE,CAAC;IACjE,cAAc,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,KAAK,OAAO,CAAC;IAC5D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,EAAE,GAAG,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxF,iBAAiB,CAAC,EAAE,CAClB,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,EAC/C,IAAI,EAAE,QAAQ,EACd,KAAK,CAAC,EAAE,MAAM,KACX,IAAI,CAAC;IACV,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IAChD,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;QACZ,iBAAiB,EAAE,MAAM,CAAC;QAC1B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,yBAAyB,EAAE,MAAM,CAAC;QAClC,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,eAAe,EAAqB,MAAM,eAAe,CAAC;AAkBnE,iBAAS,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,eAqtBxE;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,eAAe,EAAqB,MAAM,eAAe,CAAC;AAkBnE,iBAAS,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,eAstBxE;AAED,eAAe,MAAM,CAAC"}
@@ -1,21 +1,10 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.array.filter.js");
4
- require("core-js/modules/web.dom-collections.for-each.js");
5
- require("core-js/modules/es.object.get-own-property-descriptors.js");
6
- require("core-js/modules/es.array.iterator.js");
7
- require("core-js/modules/es.weak-map.js");
8
- require("core-js/modules/web.dom-collections.iterator.js");
9
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
10
- var _typeof = require("@babel/runtime/helpers/typeof");
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
4
  Object.defineProperty(exports, "__esModule", {
12
5
  value: true
13
6
  });
14
7
  exports.default = void 0;
15
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
16
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
18
- require("core-js/modules/es.string.trim.js");
19
8
  var _react = _interopRequireWildcard(require("react"));
20
9
  var _classnames = _interopRequireDefault(require("classnames"));
21
10
  var _hooks = require("@sheinx/hooks");
@@ -32,10 +21,24 @@ var _useWithFormConfig = _interopRequireDefault(require("../common/use-with-form
32
21
  var _useTip = _interopRequireDefault(require("../common/use-tip"));
33
22
  var _config = require("../config");
34
23
  var _jsxRuntime = require("react/jsx-runtime");
35
- 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); }
36
- 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; }
37
- 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; }
38
- 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; }
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
26
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
27
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
30
+ 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."); }
31
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
32
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
33
+ 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; }
34
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
35
+ 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); }
36
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
37
+ 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."); }
38
+ 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); }
39
+ 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; }
40
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
41
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
39
42
  var preventDefault = function preventDefault(e) {
40
43
  e.preventDefault();
41
44
  };
@@ -120,20 +123,19 @@ function Select(props0) {
120
123
  onFocus = props.onFocus,
121
124
  onCollapseProp = props.onCollapse,
122
125
  onEnterExpand = props.onEnterExpand,
123
- onFilterWidthCreate = props.onFilterWidthCreate,
124
126
  filterSameChange = props.filterSameChange;
125
127
  var hasFilter = _hooks.util.isFunc(props.onAdvancedFilter || onFilterProp);
126
128
  var showInput = hasFilter || _hooks.util.isFunc(onCreateProp);
127
- var styles = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
129
+ var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
128
130
  var rootStyle = Object.assign({
129
131
  width: width
130
132
  }, style);
131
133
  var _useState = (0, _react.useState)('keyboard'),
132
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
134
+ _useState2 = _slicedToArray(_useState, 2),
133
135
  controlType = _useState2[0],
134
136
  setControlType = _useState2[1];
135
137
  var _useState3 = (0, _react.useState)(false),
136
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
138
+ _useState4 = _slicedToArray(_useState3, 2),
137
139
  focused = _useState4[0],
138
140
  setFocused = _useState4[1];
139
141
  var isPreventBlur = (0, _react.useRef)(false);
@@ -151,7 +153,7 @@ function Select(props0) {
151
153
  onAdvancedFilter: 'onAdvancedFilter' in props,
152
154
  onCreate: onCreateProp,
153
155
  onFilter: props.onAdvancedFilter || onFilterProp,
154
- onFilterWidthCreate: onFilterWidthCreate,
156
+ // onFilterWidthCreate,
155
157
  filterDelay: props.filterDelay
156
158
  }),
157
159
  filterText = _useFilter.filterText,
@@ -164,7 +166,7 @@ function Select(props0) {
164
166
  onClearCreatedData = _useFilter.onClearCreatedData,
165
167
  rawData = _useFilter.rawData;
166
168
  var onCollapse = (0, _hooks.usePersistFn)(function (collapse) {
167
- onCollapseProp === null || onCollapseProp === void 0 ? void 0 : onCollapseProp(collapse);
169
+ onCollapseProp === null || onCollapseProp === void 0 || onCollapseProp(collapse);
168
170
  if (isPreventBlur.current) {
169
171
  isPreventBlur.current = false;
170
172
  return;
@@ -176,14 +178,14 @@ function Select(props0) {
176
178
  onClearCreatedData();
177
179
  });
178
180
  var renderMoreIcon = function renderMoreIcon() {
179
- return _icons.default.More;
181
+ return _icons.default.select.More;
180
182
  };
181
183
  var _useTiled = (0, _hooks.useTiled)({
182
184
  data: filterData0,
183
185
  filterText: filterText,
184
186
  onAdvancedFilter: props.onAdvancedFilter,
185
187
  keygen: keygen,
186
- originIcon: _icons.default.More,
188
+ originIcon: _icons.default.select.More,
187
189
  moreIcon: renderMoreIcon,
188
190
  childrenKey: childrenKey,
189
191
  expanded: expanded,
@@ -210,7 +212,7 @@ function Select(props0) {
210
212
  popupProviderValue = _usePopup.providerValue;
211
213
  var handleSelectChange = (0, _hooks.usePersistFn)(function (value, dataItem, checked) {
212
214
  if (createdData || props.emptyAfterSelect) {
213
- onFilter === null || onFilter === void 0 ? void 0 : onFilter('');
215
+ onFilter === null || onFilter === void 0 || onFilter('');
214
216
  }
215
217
  var shouldFocus = showInput && props.reFocus;
216
218
  if (!multiple && !shouldFocus) {
@@ -218,9 +220,9 @@ function Select(props0) {
218
220
  }
219
221
  if (multiple && !shouldFocus) {
220
222
  var _inputRef$current;
221
- inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.select();
223
+ inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
222
224
  }
223
- onChange === null || onChange === void 0 ? void 0 : onChange(value, dataItem, checked);
225
+ onChange === null || onChange === void 0 || onChange(value, dataItem, checked);
224
226
  });
225
227
  var _useSelect = (0, _hooks.useSelect)({
226
228
  value: valueProp,
@@ -270,7 +272,7 @@ function Select(props0) {
270
272
  var focusAndOpen = function focusAndOpen() {
271
273
  if (!focused) {
272
274
  var _inputRef$current2;
273
- (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
275
+ (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
274
276
  } else {
275
277
  openPop();
276
278
  }
@@ -281,7 +283,7 @@ function Select(props0) {
281
283
  if (disabled === true) return;
282
284
  if (!focus) {
283
285
  var _inputRef$current3;
284
- (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus();
286
+ (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.focus();
285
287
  }
286
288
  if (open) {
287
289
  if (e.target.tagName === 'INPUT') {
@@ -301,18 +303,18 @@ function Select(props0) {
301
303
  rootRef: targetRef,
302
304
  jssStyle: props.jssStyle
303
305
  });
304
- var rootClass = (0, _classnames.default)(className, isEmpty && styles.wrapperEmpty, styles === null || styles === void 0 ? void 0 : styles.wrapper, open && (styles === null || styles === void 0 ? void 0 : styles.wrapperOpen), disabled === true && (styles === null || styles === void 0 ? void 0 : styles.wrapperDisabled), disabled !== true && focused && (styles === null || styles === void 0 ? void 0 : styles.wrapperFocus), innerTitle && (styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitle), size === 'small' && (styles === null || styles === void 0 ? void 0 : styles.wrapperSmall), size === 'large' && (styles === null || styles === void 0 ? void 0 : styles.wrapperLarge), (!!props.error || props.status === 'error') && (styles === null || styles === void 0 ? void 0 : styles.wrapperError), clearable && (styles === null || styles === void 0 ? void 0 : styles.clearable), !border && (styles === null || styles === void 0 ? void 0 : styles.wrapperNoBorder), !!underline && (styles === null || styles === void 0 ? void 0 : styles.wrapperUnderline), (0, _defineProperty2.default)({}, styles === null || styles === void 0 ? void 0 : styles.multiple, multiple));
306
+ var rootClass = (0, _classnames.default)(className, isEmpty && styles.wrapperEmpty, styles === null || styles === void 0 ? void 0 : styles.wrapper, open && (styles === null || styles === void 0 ? void 0 : styles.wrapperOpen), disabled === true && (styles === null || styles === void 0 ? void 0 : styles.wrapperDisabled), disabled !== true && focused && (styles === null || styles === void 0 ? void 0 : styles.wrapperFocus), innerTitle && (styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitle), size === 'small' && (styles === null || styles === void 0 ? void 0 : styles.wrapperSmall), size === 'large' && (styles === null || styles === void 0 ? void 0 : styles.wrapperLarge), (!!props.error || props.status === 'error') && (styles === null || styles === void 0 ? void 0 : styles.wrapperError), clearable && (styles === null || styles === void 0 ? void 0 : styles.clearable), !border && (styles === null || styles === void 0 ? void 0 : styles.wrapperNoBorder), !!underline && (styles === null || styles === void 0 ? void 0 : styles.wrapperUnderline), _defineProperty({}, styles === null || styles === void 0 ? void 0 : styles.multiple, multiple));
305
307
  var getRenderItem = function getRenderItem(data, index) {
306
308
  return typeof renderItemProp === 'function' ? renderItemProp(data, index) : data[renderItemProp];
307
309
  };
308
310
  var renderItem = getRenderItem;
309
311
  var handleFocus = (0, _hooks.usePersistFn)(function (e) {
310
312
  setFocused(true);
311
- onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
313
+ onFocus === null || onFocus === void 0 || onFocus(e);
312
314
  });
313
315
  var handleBlur = (0, _hooks.usePersistFn)(function (e) {
314
316
  setFocused(false);
315
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
317
+ onBlur === null || onBlur === void 0 || onBlur(e);
316
318
  });
317
319
  var handleChange = function handleChange(item) {
318
320
  if (multiple) {
@@ -369,12 +371,12 @@ function Select(props0) {
369
371
  }
370
372
  if (onCreate && !hideCreateOption) {
371
373
  var _optionListRef$curren2;
372
- (_optionListRef$curren2 = optionListRef.current) === null || _optionListRef$curren2 === void 0 ? void 0 : _optionListRef$curren2.hoverMove(0, true);
374
+ (_optionListRef$curren2 = optionListRef.current) === null || _optionListRef$curren2 === void 0 || _optionListRef$curren2.hoverMove(0, true);
373
375
  }
374
376
  if (hideCreate) {
375
377
  // optionListRef.current?.hoverMove(filterData.length - 1, true);
376
378
  }
377
- onFilter === null || onFilter === void 0 ? void 0 : onFilter(trim ? text.trim() : text, from);
379
+ onFilter === null || onFilter === void 0 || onFilter(trim ? text.trim() : text, from);
378
380
  };
379
381
  var handleOptionClick = function handleOptionClick() {
380
382
  isPreventBlur.current = true;
@@ -389,7 +391,7 @@ function Select(props0) {
389
391
  if (inputText) return;
390
392
  e.preventDefault();
391
393
  var raws = Array.isArray(value) ? value : [value];
392
- var values = (0, _toConsumableArray2.default)(raws);
394
+ var values = _toConsumableArray(raws);
393
395
  var last = values.pop();
394
396
  if (last) {
395
397
  datum.remove(last);
@@ -409,7 +411,7 @@ function Select(props0) {
409
411
 
410
412
  // tab 可关闭下拉列表
411
413
  if (e.keyCode === 9 || e.code === 'Tab') {
412
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
414
+ onBlur === null || onBlur === void 0 || onBlur(e);
413
415
  if (open) closePop();
414
416
  return;
415
417
  }
@@ -417,11 +419,11 @@ function Select(props0) {
417
419
  setControlType('keyboard');
418
420
  switch (e.keyCode || e.code) {
419
421
  case 38 || 'ArrowUp':
420
- if ((_optionListRef$curren3 = optionListRef.current) !== null && _optionListRef$curren3 !== void 0 && _optionListRef$curren3.hoverHover) (_optionListRef$curren4 = optionListRef.current) === null || _optionListRef$curren4 === void 0 ? void 0 : _optionListRef$curren4.hoverMove(-1);
422
+ if ((_optionListRef$curren3 = optionListRef.current) !== null && _optionListRef$curren3 !== void 0 && _optionListRef$curren3.hoverHover) (_optionListRef$curren4 = optionListRef.current) === null || _optionListRef$curren4 === void 0 || _optionListRef$curren4.hoverMove(-1);
421
423
  e.preventDefault();
422
424
  break;
423
425
  case 40 || 'ArrowDown':
424
- if ((_optionListRef$curren5 = optionListRef.current) !== null && _optionListRef$curren5 !== void 0 && _optionListRef$curren5.hoverHover) (_optionListRef$curren6 = optionListRef.current) === null || _optionListRef$curren6 === void 0 ? void 0 : _optionListRef$curren6.hoverMove(1);
426
+ if ((_optionListRef$curren5 = optionListRef.current) !== null && _optionListRef$curren5 !== void 0 && _optionListRef$curren5.hoverHover) (_optionListRef$curren6 = optionListRef.current) === null || _optionListRef$curren6 === void 0 || _optionListRef$curren6.hoverMove(1);
425
427
  e.preventDefault();
426
428
  break;
427
429
  case 13 || 'Enter':
@@ -439,7 +441,7 @@ function Select(props0) {
439
441
  e.stopPropagation();
440
442
  datum.removeAll();
441
443
  if (filterText) {
442
- onFilter === null || onFilter === void 0 ? void 0 : onFilter('');
444
+ onFilter === null || onFilter === void 0 || onFilter('');
443
445
  }
444
446
  if (open) closePop();
445
447
  };
@@ -468,7 +470,7 @@ function Select(props0) {
468
470
  });
469
471
  var renderClearable = function renderClearable() {
470
472
  if (!multiple !== undefined && !showArrow) return null;
471
- var defaultIcon = multiple ? _icons.default.More : _icons.default.ArrowDown;
473
+ var defaultIcon = multiple ? _icons.default.select.More : _icons.default.select.DropdownArrow;
472
474
  var arrow = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
473
475
  className: (0, _classnames.default)(styles.arrowIcon, open && !compressed && styles.arrowIconOpen),
474
476
  onClick: handleResultClick,
@@ -477,7 +479,7 @@ function Select(props0) {
477
479
  var close = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
478
480
  className: styles.clearIcon,
479
481
  onClick: handleClear,
480
- children: isEmpty ? arrow : _icons.default.PcCloseCircleFill
482
+ children: isEmpty ? arrow : _icons.default.select.Close
481
483
  });
482
484
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
483
485
  children: [close, !open && arrow]
@@ -488,7 +490,7 @@ function Select(props0) {
488
490
  return renderClearable();
489
491
  }
490
492
  if (!multiple && !showArrow) return null;
491
- var defaultIcon = multiple ? _icons.default.More : _icons.default.ArrowDown;
493
+ var defaultIcon = multiple ? _icons.default.select.More : _icons.default.select.DropdownArrow;
492
494
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
493
495
  className: (0, _classnames.default)(styles.arrowIcon, open && !compressed && styles.arrowIconOpen),
494
496
  onClick: handleResultClick,
@@ -531,15 +533,19 @@ function Select(props0) {
531
533
  onClearCreatedData: onClearCreatedData,
532
534
  getDataByValues: getDataByValues,
533
535
  checkUnMatched: checkUnMatched,
534
- onRemove: handleRemove
536
+ onRemove: handleRemove,
537
+ classes: styles
535
538
  })
536
539
  });
537
540
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(PopupProvider, {
538
541
  value: popupProviderValue,
539
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
542
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
540
543
  className: (0, _classnames.default)(styles === null || styles === void 0 ? void 0 : styles.resultWrapper, styles === null || styles === void 0 ? void 0 : styles.wrapperPaddingBox, styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitleTop, styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitleBottom),
541
544
  onClick: handleResultClick,
542
- children: renderInnerTitle(result)
545
+ children: [renderInnerTitle(result), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
546
+ className: styles.iconWrapper,
547
+ children: renderIcon()
548
+ })]
543
549
  })
544
550
  });
545
551
  };
@@ -654,7 +660,7 @@ function Select(props0) {
654
660
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({
655
661
  ref: targetRef,
656
662
  tabIndex: disabled === true || showInput ? undefined : 0
657
- }, _hooks.util.getDataAttribute((0, _defineProperty2.default)({}, 'input-border', 'true'))), {}, {
663
+ }, _hooks.util.getDataAttribute(_defineProperty({}, 'input-border', 'true'))), {}, {
658
664
  className: rootClass,
659
665
  style: rootStyle,
660
666
  onKeyDown: handleKeyDown,
@@ -666,7 +672,7 @@ function Select(props0) {
666
672
  e.preventDefault();
667
673
  }
668
674
  },
669
- children: [tipNode, renderResult(), renderIcon(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_absoluteList.AbsoluteList, {
675
+ children: [tipNode, renderResult(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_absoluteList.AbsoluteList, {
670
676
  adjust: true,
671
677
  focus: open,
672
678
  fixedWidth: autoAdapt ? 'min' : true,
@@ -690,5 +696,4 @@ function Select(props0) {
690
696
  })]
691
697
  }));
692
698
  }
693
- var _default = Select;
694
- exports.default = _default;
699
+ var _default = exports.default = Select;
@@ -11,7 +11,7 @@ import { RadioClasses } from '../radio/radio.type';
11
11
  import { SpinClasses } from '../spin/spin.type';
12
12
  import { InputClasses } from '../input/input.type';
13
13
  import { BaseTipProps } from '../common/use-tip';
14
- export declare type SelectClasses = {
14
+ export type SelectClasses = {
15
15
  wrapper: string;
16
16
  wrapperEmpty: string;
17
17
  wrapperOpen: string;
@@ -74,12 +74,13 @@ export declare type SelectClasses = {
74
74
  columnsRadio: string;
75
75
  columnsCheckbox: string;
76
76
  footer: string;
77
+ iconWrapper: string;
77
78
  moreIcon: string;
78
79
  hideTag: string;
79
80
  empty: string;
80
81
  popover: string;
81
82
  };
82
- export declare type JssStyleType = {
83
+ export type JssStyleType = {
83
84
  tag?: () => TagClasses;
84
85
  select?: () => SelectClasses;
85
86
  innerTitle?: () => InnerTitleClasses;
@@ -90,8 +91,8 @@ export declare type JssStyleType = {
90
91
  spin?: () => SpinClasses;
91
92
  input?: () => InputClasses;
92
93
  };
93
- export declare type DatumType<DataItem, Value> = ReturnType<typeof useListSelect<DataItem, Value>>;
94
- export declare type OptionListRefType = {
94
+ export type DatumType<DataItem, Value> = ReturnType<typeof useListSelect<DataItem, Value>>;
95
+ export type OptionListRefType = {
95
96
  hoverMove: (index: number, force?: boolean) => void;
96
97
  hoverHover: (index: number) => void;
97
98
  getHoverIndex: () => number;
@@ -110,7 +111,7 @@ export interface BaseListProps<DataItem, Value> extends Pick<SelectProps<DataIte
110
111
  onControlTypeChange: React.Dispatch<React.SetStateAction<'mouse' | 'keyboard'>>;
111
112
  onOptionClick: (data: DataItem, index: number) => void;
112
113
  }
113
- export interface SelectPropsBase<DataItem, Value> extends Omit<BaseSelectProps<DataItem, Value>, 'control'>, Pick<CommonType, 'className' | 'style' | 'size' | 'status' | 'innerTitle' | 'filterSameChange'>, Pick<AbsoluteListProps, 'absolute' | 'zIndex'>, BaseTipProps {
114
+ export interface SelectPropsBase<DataItem, Value> extends Omit<BaseSelectProps<DataItem, Value>, 'control' | 'filterSameChange'>, Pick<CommonType, 'className' | 'style' | 'size' | 'status' | 'innerTitle' | 'filterSameChange'>, Pick<AbsoluteListProps, 'absolute' | 'zIndex'>, BaseTipProps {
114
115
  jssStyle?: JssStyleType;
115
116
  /**
116
117
  * @en custom empty copy
@@ -147,12 +148,6 @@ export interface SelectPropsBase<DataItem, Value> extends Omit<BaseSelectProps<D
147
148
  * @override any
148
149
  */
149
150
  value?: Value;
150
- /**
151
- * @en Allow enter something into DatePicker
152
- * @cn 可输入
153
- * @default false
154
- */
155
- inputable?: boolean;
156
151
  /**
157
152
  * @en If clearable is true, show clear value icon
158
153
  * @cn 是否显示清除数据图标
@@ -189,7 +184,9 @@ export interface SelectPropsBase<DataItem, Value> extends Omit<BaseSelectProps<D
189
184
  loading?: boolean | React.ReactNode;
190
185
  }) => React.ReactNode;
191
186
  /**
192
- * @deprecated 已弃用
187
+ * @cn 是否展示边框
188
+ * @en Whether to display border
189
+ * @default true
193
190
  */
194
191
  border?: boolean;
195
192
  /**
@@ -412,7 +409,6 @@ export interface SelectPropsBase<DataItem, Value> extends Omit<BaseSelectProps<D
412
409
  * @en Added a new API, which is used to compare whether the same data already exists when onFilter and onCreate are turned on. By default, the input value is compared with the keygen value
413
410
  * @cn 新增 api ,开启 onFilter 和 onCreate 时,用于比对是否已经存在相同的数据,默认用输入的值和 keygen 值比对
414
411
  */
415
- onFilterWidthCreate?: (data: DataItem, createdData: DataItem, key: string | number) => boolean;
416
412
  /**
417
413
  * @en empty input after select value
418
414
  * @cn 选中后是否清空输入框内容
@@ -462,5 +458,5 @@ export interface SelectPropsB<DataItem, Value> extends Omit<SelectPropsBase<Data
462
458
  */
463
459
  childrenKey?: ObjectKey<DataItem>;
464
460
  }
465
- export declare type SelectProps<DataItem, Value> = SelectPropsA<DataItem, Value> | SelectPropsB<DataItem, Value>;
461
+ export type SelectProps<DataItem, Value> = SelectPropsA<DataItem, Value> | SelectPropsB<DataItem, Value>;
466
462
  //# sourceMappingURL=select.type.d.ts.map