yc-design-vue 2.0.4 → 2.0.6

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 (568) hide show
  1. package/dist/index.umd.js +1 -0
  2. package/dist/style.css +1 -0
  3. package/es/Affix/index.vue.js +1 -1
  4. package/es/Alert/index.d.ts +3 -3
  5. package/es/Alert/index.vue.d.ts +1 -1
  6. package/es/Alert/type.d.ts +2 -2
  7. package/es/Anchor/Anchor.vue.d.ts +1 -1
  8. package/es/Anchor/Anchor.vue.js +2 -2
  9. package/es/Anchor/AnchorLink.vue.js +2 -2
  10. package/es/Anchor/hooks/useContext.d.ts +3 -3
  11. package/es/Anchor/hooks/useContext.js +3 -3
  12. package/es/Anchor/index.d.ts +3 -3
  13. package/es/Anchor/type.d.ts +3 -2
  14. package/es/AutoComplete/index.d.ts +40 -31
  15. package/es/AutoComplete/index.vue.d.ts +72 -54
  16. package/es/Avatar/Avatar.vue.d.ts +1 -1
  17. package/es/Avatar/Avatar.vue.js +3 -3
  18. package/es/Avatar/AvatarGroup.vue.js +2 -2
  19. package/es/Avatar/hooks/useContext.d.ts +1 -2
  20. package/es/Avatar/hooks/useContext.js +3 -3
  21. package/es/Avatar/index.d.ts +3 -3
  22. package/es/Avatar/type.d.ts +3 -2
  23. package/es/BackTop/index.vue.js +1 -1
  24. package/es/Badge/index.d.ts +3 -3
  25. package/es/Badge/index.vue.d.ts +1 -1
  26. package/es/Badge/type.d.ts +2 -2
  27. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  28. package/es/Button/Button.vue.d.ts +2 -2
  29. package/es/Button/Button.vue.js +2 -2
  30. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  31. package/es/Button/ButtonGroup.vue.js +2 -2
  32. package/es/Button/hooks/useContext.d.ts +4 -5
  33. package/es/Button/hooks/useContext.js +3 -3
  34. package/es/Button/index.d.ts +9 -9
  35. package/es/Button/type.d.ts +6 -6
  36. package/es/Card/Card.vue.d.ts +1 -1
  37. package/es/Card/Card.vue.js +2 -2
  38. package/es/Card/CardMeta.vue.js +2 -2
  39. package/es/Card/hooks/useContext.d.ts +2 -2
  40. package/es/Card/hooks/useContext.js +3 -3
  41. package/es/Card/index.d.ts +3 -3
  42. package/es/Card/type.d.ts +1 -2
  43. package/es/Carousel/Carousel.vue.d.ts +2 -2
  44. package/es/Carousel/Carousel.vue.js +2 -2
  45. package/es/Carousel/CarouselArrow.vue.js +2 -2
  46. package/es/Carousel/CarouselIndicator.vue.js +2 -2
  47. package/es/Carousel/CarouselItem.vue.js +2 -2
  48. package/es/Carousel/hooks/useContext.d.ts +5 -5
  49. package/es/Carousel/hooks/useContext.js +3 -3
  50. package/es/Carousel/index.d.ts +6 -6
  51. package/es/Carousel/type.d.ts +6 -6
  52. package/es/Cascader/Cascader.vue.d.ts +23 -23
  53. package/es/Cascader/Cascader.vue.js +2 -2
  54. package/es/Cascader/CascaderIcon.vue.js +2 -2
  55. package/es/Cascader/CascaderOption.vue.js +2 -2
  56. package/es/Cascader/CascaderPanel.vue.js +2 -2
  57. package/es/Cascader/CascaderSearchPanel.vue.js +2 -2
  58. package/es/Cascader/hooks/useContext.d.ts +2 -2
  59. package/es/Cascader/hooks/useContext.js +3 -3
  60. package/es/Cascader/index.d.ts +26 -26
  61. package/es/Checkbox/Checkbox.vue.js +2 -2
  62. package/es/Checkbox/CheckboxGroup.vue.js +2 -2
  63. package/es/Checkbox/hooks/useContext.d.ts +2 -2
  64. package/es/Checkbox/hooks/useContext.js +3 -3
  65. package/es/Collapse/Collapse.vue.js +2 -2
  66. package/es/Collapse/CollapseItem.vue.js +2 -2
  67. package/es/Collapse/hooks/useContext.d.ts +3 -15
  68. package/es/Collapse/hooks/useContext.js +3 -4
  69. package/es/Collapse/type.d.ts +2 -1
  70. package/es/ColorPicker/ColorControl.vue.js +1 -1
  71. package/es/ColorPicker/ColorPalette.vue.js +1 -1
  72. package/es/ColorPicker/ColorPanel.vue.js +2 -2
  73. package/es/ColorPicker/ColorPicker.vue.js +2 -2
  74. package/es/ColorPicker/hooks/useContext.d.ts +2 -2
  75. package/es/ColorPicker/hooks/useContext.js +3 -3
  76. package/es/Comment/hooks/useContext.d.ts +1 -2
  77. package/es/Comment/hooks/useContext.js +3 -3
  78. package/es/Comment/index.vue.js +2 -2
  79. package/es/Descriptions/Descriptions.vue.d.ts +3 -3
  80. package/es/Descriptions/Descriptions.vue.js +2 -2
  81. package/es/Descriptions/ReuseItem.vue.js +2 -2
  82. package/es/Descriptions/ReuseTd.vue.js +2 -2
  83. package/es/Descriptions/hooks/useContext.d.ts +3 -3
  84. package/es/Descriptions/hooks/useContext.js +3 -3
  85. package/es/Descriptions/index.d.ts +9 -9
  86. package/es/Descriptions/type.d.ts +7 -6
  87. package/es/Divider/index.d.ts +6 -6
  88. package/es/Divider/index.vue.d.ts +2 -2
  89. package/es/Divider/type.d.ts +4 -3
  90. package/es/Drawer/Drawer.vue.d.ts +1 -1
  91. package/es/Drawer/DrawerService.vue.d.ts +1 -1
  92. package/es/Drawer/index.d.ts +5 -9
  93. package/es/Drawer/type.d.ts +8 -4
  94. package/es/Dropdown/Doption.vue.js +2 -2
  95. package/es/Dropdown/Dropdown.vue.d.ts +3 -3
  96. package/es/Dropdown/Dropdown.vue.js +2 -2
  97. package/es/Dropdown/DropdownButton.vue.d.ts +3 -3
  98. package/es/Dropdown/Dsubmenu.vue.d.ts +1 -1
  99. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  100. package/es/Dropdown/hooks/useContext.d.ts +2 -2
  101. package/es/Dropdown/hooks/useContext.js +3 -3
  102. package/es/Dropdown/index.d.ts +19 -19
  103. package/es/Dropdown/type.d.ts +4 -6
  104. package/es/Grid/Grid.vue.js +2 -2
  105. package/es/Grid/GridCol.vue.js +2 -2
  106. package/es/Grid/GridItem.vue.js +2 -2
  107. package/es/Grid/GridRow.vue.js +2 -2
  108. package/es/Grid/hooks/useContext.d.ts +1 -13
  109. package/es/Grid/hooks/useContext.js +3 -4
  110. package/es/Image/Image.vue.d.ts +2 -2
  111. package/es/Image/Image.vue.js +2 -2
  112. package/es/Image/ImagePreview.vue.js +2 -2
  113. package/es/Image/ImagePreviewGroup.vue.js +2 -2
  114. package/es/Image/hooks/useContext.d.ts +2 -2
  115. package/es/Image/hooks/useContext.js +3 -3
  116. package/es/Image/index.d.ts +6 -6
  117. package/es/Image/type.d.ts +3 -2
  118. package/es/Input/Input.vue.d.ts +3 -3
  119. package/es/Input/InputSuffix.vue.js +1 -1
  120. package/es/Input/index.d.ts +8 -8
  121. package/es/InputNumber/InputNumber.vue.d.ts +20 -20
  122. package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  123. package/es/InputNumber/index.d.ts +19 -19
  124. package/es/InputNumber/type.d.ts +5 -4
  125. package/es/InputTag/index.d.ts +20 -11
  126. package/es/InputTag/index.vue.d.ts +7 -4
  127. package/es/InputTag/index.vue.js +1 -1
  128. package/es/InputTag/type.d.ts +2 -1
  129. package/es/Layout/LayoutSider.vue.d.ts +3 -3
  130. package/es/Layout/LayoutSider.vue.js +2 -2
  131. package/es/Layout/hooks/useSiderContext.d.ts +1 -2
  132. package/es/Layout/hooks/useSiderContext.js +3 -3
  133. package/es/Layout/index.d.ts +8 -8
  134. package/es/Layout/type.d.ts +3 -4
  135. package/es/Link/index.d.ts +3 -3
  136. package/es/Link/index.vue.d.ts +1 -1
  137. package/es/Link/type.d.ts +2 -2
  138. package/es/List/List.vue.d.ts +7 -7
  139. package/es/List/hooks/useScrollReach.js +1 -0
  140. package/es/List/index.d.ts +6 -6
  141. package/es/List/type.d.ts +2 -3
  142. package/es/Mention/index.d.ts +49 -40
  143. package/es/Mention/index.vue.d.ts +85 -67
  144. package/es/Mention/type.d.ts +3 -2
  145. package/es/Menu/Menu.vue.d.ts +2 -2
  146. package/es/Menu/MenuItem.vue.js +1 -1
  147. package/es/Menu/hooks/useContext.d.ts +2 -2
  148. package/es/Menu/hooks/useContext.js +5 -5
  149. package/es/Menu/index.d.ts +5 -5
  150. package/es/Menu/type.d.ts +2 -2
  151. package/es/Message/type.d.ts +3 -3
  152. package/es/Modal/Modal.vue.d.ts +1 -1
  153. package/es/Modal/ModalService.vue.d.ts +1 -1
  154. package/es/Modal/index.d.ts +13 -13
  155. package/es/Modal/index.js +1 -4
  156. package/es/Modal/type.d.ts +6 -9
  157. package/es/Notification/Notification.vue.d.ts +1 -1
  158. package/es/Notification/index.d.ts +4 -4
  159. package/es/Notification/type.d.ts +3 -4
  160. package/es/OverflowList/index.d.ts +3 -3
  161. package/es/OverflowList/index.vue.d.ts +1 -1
  162. package/es/OverflowList/index.vue.js +2 -2
  163. package/es/OverflowList/type.d.ts +3 -2
  164. package/es/Pagination/Pagination.vue.js +2 -2
  165. package/es/Pagination/PaginationItem.vue.js +2 -2
  166. package/es/Pagination/hooks/useContext.d.ts +2 -2
  167. package/es/Pagination/hooks/useContext.js +3 -3
  168. package/es/Popconfirm/index.d.ts +8 -8
  169. package/es/Popconfirm/index.vue.d.ts +3 -3
  170. package/es/Popconfirm/type.d.ts +2 -3
  171. package/es/Progress/Progress.vue.d.ts +1 -1
  172. package/es/Progress/ProgressCircle.vue.d.ts +3 -3
  173. package/es/Progress/ProgressLine.vue.d.ts +3 -3
  174. package/es/Progress/index.d.ts +3 -3
  175. package/es/Progress/type.d.ts +2 -3
  176. package/es/Radio/Radio.vue.js +2 -2
  177. package/es/Radio/RadioGroup.vue.js +2 -2
  178. package/es/Radio/hooks/useContext.d.ts +2 -2
  179. package/es/Radio/hooks/useContext.js +3 -3
  180. package/es/Radio/type.d.ts +1 -1
  181. package/es/ResizeBox/index.d.ts +3 -3
  182. package/es/ResizeBox/index.vue.d.ts +2 -2
  183. package/es/ResizeBox/type.d.ts +4 -4
  184. package/es/Result/index.d.ts +3 -3
  185. package/es/Result/index.vue.d.ts +1 -1
  186. package/es/Result/type.d.ts +3 -2
  187. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  188. package/es/Scrollbar/Scrollbar.vue.js +2 -2
  189. package/es/Scrollbar/ScrollbarTrack.vue.js +2 -2
  190. package/es/Scrollbar/hooks/useContext.d.ts +2 -2
  191. package/es/Scrollbar/hooks/useContext.js +3 -3
  192. package/es/Scrollbar/index.d.ts +3 -3
  193. package/es/Scrollbar/type.d.ts +2 -1
  194. package/es/Select/Option.vue.js +2 -2
  195. package/es/Select/Select.vue.d.ts +45 -27
  196. package/es/Select/Select.vue.js +2 -2
  197. package/es/Select/SelectIcon.vue.js +2 -2
  198. package/es/Select/SelectRealList.vue.js +2 -2
  199. package/es/Select/SelectView.vue.js +2 -2
  200. package/es/Select/SelectVirtualList.vue.js +3 -3
  201. package/es/Select/hooks/useContext.d.ts +4 -4
  202. package/es/Select/hooks/useContext.js +3 -3
  203. package/es/Select/hooks/useSelectOptions.d.ts +2 -2
  204. package/es/Select/index.d.ts +33 -24
  205. package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
  206. package/es/Skeleton/index.d.ts +2 -2
  207. package/es/Skeleton/type.d.ts +2 -4
  208. package/es/Slider/Slider.vue.js +2 -2
  209. package/es/Slider/SliderBtn.vue.js +2 -2
  210. package/es/Slider/SliderInput.vue.js +2 -2
  211. package/es/Slider/SliderTicks.vue.js +2 -2
  212. package/es/Slider/hooks/useContext.d.ts +2 -2
  213. package/es/Slider/hooks/useContext.js +3 -3
  214. package/es/Space/index.d.ts +6 -6
  215. package/es/Space/index.vue.d.ts +2 -2
  216. package/es/Space/type.d.ts +5 -4
  217. package/es/Spin/index.vue.js +1 -1
  218. package/es/Steps/Step.vue.js +2 -2
  219. package/es/Steps/Steps.vue.js +2 -2
  220. package/es/Steps/hooks/useContext.d.ts +1 -2
  221. package/es/Steps/hooks/useContext.js +3 -3
  222. package/es/Switch/index.d.ts +14 -14
  223. package/es/Switch/index.vue.d.ts +5 -5
  224. package/es/Switch/type.d.ts +4 -4
  225. package/es/Tabs/TabPane.vue.js +2 -2
  226. package/es/Tabs/Tabs.vue.d.ts +1 -1
  227. package/es/Tabs/Tabs.vue.js +2 -2
  228. package/es/Tabs/TabsNavInk.vue.js +2 -2
  229. package/es/Tabs/TabsTab.vue.js +2 -2
  230. package/es/Tabs/hooks/useContext.d.ts +6 -6
  231. package/es/Tabs/hooks/useContext.js +3 -3
  232. package/es/Tabs/index.d.ts +3 -3
  233. package/es/Tabs/type.d.ts +2 -3
  234. package/es/Tag/index.d.ts +3 -3
  235. package/es/Tag/index.vue.d.ts +1 -1
  236. package/es/Tag/type.d.ts +1 -2
  237. package/es/Textarea/hooks/useTextareaHeight.js +1 -1
  238. package/es/Textarea/index.d.ts +5 -5
  239. package/es/Textarea/index.vue.d.ts +2 -2
  240. package/es/Textarea/type.d.ts +2 -2
  241. package/es/TimePicker/TimePicker.vue.d.ts +5 -5
  242. package/es/TimePicker/TimePicker.vue.js +2 -2
  243. package/es/TimePicker/TimePickerPanel.vue.js +2 -2
  244. package/es/TimePicker/hooks/useContext.d.ts +2 -2
  245. package/es/TimePicker/hooks/useContext.js +3 -3
  246. package/es/TimePicker/index.d.ts +13 -13
  247. package/es/Timeline/Timeline.vue.js +2 -2
  248. package/es/Timeline/TimelineItem.vue.d.ts +1 -1
  249. package/es/Timeline/TimelineItem.vue.js +2 -2
  250. package/es/Timeline/hooks/useContext.d.ts +2 -2
  251. package/es/Timeline/hooks/useContext.js +3 -3
  252. package/es/Timeline/index.d.ts +3 -3
  253. package/es/Timeline/type.d.ts +3 -4
  254. package/es/Transfer/Transfer.vue.js +2 -2
  255. package/es/Transfer/TransferPanel.vue.js +3 -3
  256. package/es/Transfer/hooks/useContext.d.ts +2 -2
  257. package/es/Transfer/hooks/useContext.js +3 -3
  258. package/es/Trigger/hooks/useContext.d.ts +2 -3
  259. package/es/Trigger/hooks/useContext.js +4 -4
  260. package/es/Trigger/hooks/useTriggerPosition.js +1 -1
  261. package/es/Trigger/hooks/useTriggerVisible.js +2 -2
  262. package/es/Typography/TypographyBase.vue.d.ts +17 -17
  263. package/es/Typography/TypographyBase.vue.js +1 -1
  264. package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
  265. package/es/Typography/TypographyTitle.vue.d.ts +1 -1
  266. package/es/Typography/type.d.ts +5 -4
  267. package/es/Upload/Upload.vue.d.ts +53 -0
  268. package/es/Upload/Upload.vue.js +110 -0
  269. package/es/Upload/Upload.vue3.js +5 -0
  270. package/es/Upload/UploadButton.vue.d.ts +2 -0
  271. package/es/Upload/UploadButton.vue.js +39 -0
  272. package/es/Upload/UploadButton.vue3.js +5 -0
  273. package/es/Upload/UploadDrag.vue.d.ts +2 -0
  274. package/es/Upload/UploadDrag.vue.js +37 -0
  275. package/es/Upload/UploadDrag.vue3.js +5 -0
  276. package/es/Upload/UploadFileList.vue.d.ts +24 -0
  277. package/es/Upload/UploadFileList.vue.js +7 -0
  278. package/es/Upload/UploadFileList.vue2.js +126 -0
  279. package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
  280. package/es/Upload/UploadPictureCard.vue.js +7 -0
  281. package/es/Upload/UploadPictureCard.vue2.js +132 -0
  282. package/es/Upload/hooks/useContext.d.ts +49 -0
  283. package/es/Upload/hooks/useContext.js +92 -0
  284. package/es/Upload/hooks/useUpload.d.ts +47 -0
  285. package/es/Upload/hooks/useUpload.js +80 -0
  286. package/es/Upload/index.css +1 -0
  287. package/es/Upload/index.d.ts +123 -0
  288. package/es/Upload/index.js +10 -0
  289. package/es/Upload/type.d.ts +72 -0
  290. package/es/VerificationCode/index.d.ts +3 -3
  291. package/es/VerificationCode/index.vue.d.ts +1 -1
  292. package/es/VerificationCode/type.d.ts +5 -4
  293. package/es/Watermark/index.vue.js +1 -1
  294. package/es/_shared/icons/IconDelete.vue.js +19 -1
  295. package/es/_shared/icons/IconDelete.vue2.js +1 -19
  296. package/es/_shared/icons/IconEyeOpen.vue.js +1 -20
  297. package/es/_shared/icons/IconEyeOpen.vue2.js +20 -1
  298. package/es/_shared/icons/IconFile.vue.d.ts +2 -0
  299. package/es/_shared/icons/IconFile.vue.js +22 -0
  300. package/es/_shared/icons/IconFile.vue2.js +4 -0
  301. package/es/_shared/icons/IconSeparator.vue.js +1 -19
  302. package/es/_shared/icons/IconSeparator.vue2.js +19 -1
  303. package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
  304. package/es/_shared/icons/IconUpload.vue.js +22 -0
  305. package/es/_shared/icons/IconUpload.vue2.js +4 -0
  306. package/es/_shared/icons/index.d.ts +2 -0
  307. package/es/_shared/type/index.d.ts +3 -1
  308. package/es/_shared/utils/is.d.ts +0 -15
  309. package/es/_shared/utils/vue-utils.d.ts +1 -0
  310. package/es/_virtual/_plugin-vue_export-helper.js +10 -0
  311. package/es/index.d.ts +36 -35
  312. package/es/index.js +5 -3
  313. package/es/node_modules/@vueuse/core/index.js +171 -9
  314. package/es/node_modules/@vueuse/shared/index.js +29 -0
  315. package/es/style.css +1 -1
  316. package/lib/Affix/index.vue.js +1 -1
  317. package/lib/Alert/index.d.ts +3 -3
  318. package/lib/Alert/index.vue.d.ts +1 -1
  319. package/lib/Alert/type.d.ts +2 -2
  320. package/lib/Anchor/Anchor.vue.d.ts +1 -1
  321. package/lib/Anchor/hooks/useContext.d.ts +3 -3
  322. package/lib/Anchor/hooks/useContext.js +1 -1
  323. package/lib/Anchor/index.d.ts +3 -3
  324. package/lib/Anchor/type.d.ts +3 -2
  325. package/lib/AutoComplete/index.d.ts +40 -31
  326. package/lib/AutoComplete/index.vue.d.ts +72 -54
  327. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  328. package/lib/Avatar/Avatar.vue.js +1 -1
  329. package/lib/Avatar/hooks/useContext.d.ts +1 -2
  330. package/lib/Avatar/hooks/useContext.js +1 -1
  331. package/lib/Avatar/index.d.ts +3 -3
  332. package/lib/Avatar/type.d.ts +3 -2
  333. package/lib/BackTop/index.vue.js +1 -1
  334. package/lib/Badge/index.d.ts +3 -3
  335. package/lib/Badge/index.vue.d.ts +1 -1
  336. package/lib/Badge/type.d.ts +2 -2
  337. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  338. package/lib/Button/Button.vue.d.ts +2 -2
  339. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  340. package/lib/Button/hooks/useContext.d.ts +4 -5
  341. package/lib/Button/hooks/useContext.js +1 -1
  342. package/lib/Button/index.d.ts +9 -9
  343. package/lib/Button/type.d.ts +6 -6
  344. package/lib/Card/Card.vue.d.ts +1 -1
  345. package/lib/Card/hooks/useContext.d.ts +2 -2
  346. package/lib/Card/hooks/useContext.js +1 -1
  347. package/lib/Card/index.d.ts +3 -3
  348. package/lib/Card/type.d.ts +1 -2
  349. package/lib/Carousel/Carousel.vue.d.ts +2 -2
  350. package/lib/Carousel/hooks/useContext.d.ts +5 -5
  351. package/lib/Carousel/hooks/useContext.js +1 -1
  352. package/lib/Carousel/index.d.ts +6 -6
  353. package/lib/Carousel/type.d.ts +6 -6
  354. package/lib/Cascader/Cascader.vue.d.ts +23 -23
  355. package/lib/Cascader/hooks/useContext.d.ts +2 -2
  356. package/lib/Cascader/hooks/useContext.js +1 -1
  357. package/lib/Cascader/index.d.ts +26 -26
  358. package/lib/Checkbox/hooks/useContext.d.ts +2 -2
  359. package/lib/Checkbox/hooks/useContext.js +1 -1
  360. package/lib/Collapse/hooks/useContext.d.ts +3 -15
  361. package/lib/Collapse/hooks/useContext.js +1 -1
  362. package/lib/Collapse/type.d.ts +2 -1
  363. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  364. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  365. package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
  366. package/lib/ColorPicker/hooks/useContext.js +1 -1
  367. package/lib/Comment/hooks/useContext.d.ts +1 -2
  368. package/lib/Comment/hooks/useContext.js +1 -1
  369. package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
  370. package/lib/Descriptions/hooks/useContext.d.ts +3 -3
  371. package/lib/Descriptions/hooks/useContext.js +1 -1
  372. package/lib/Descriptions/index.d.ts +9 -9
  373. package/lib/Descriptions/type.d.ts +7 -6
  374. package/lib/Divider/index.d.ts +6 -6
  375. package/lib/Divider/index.vue.d.ts +2 -2
  376. package/lib/Divider/type.d.ts +4 -3
  377. package/lib/Drawer/Drawer.vue.d.ts +1 -1
  378. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  379. package/lib/Drawer/index.d.ts +5 -9
  380. package/lib/Drawer/type.d.ts +8 -4
  381. package/lib/Dropdown/Dropdown.vue.d.ts +3 -3
  382. package/lib/Dropdown/DropdownButton.vue.d.ts +3 -3
  383. package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
  384. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  385. package/lib/Dropdown/hooks/useContext.d.ts +2 -2
  386. package/lib/Dropdown/hooks/useContext.js +1 -1
  387. package/lib/Dropdown/index.d.ts +19 -19
  388. package/lib/Dropdown/type.d.ts +4 -6
  389. package/lib/Grid/hooks/useContext.d.ts +1 -13
  390. package/lib/Grid/hooks/useContext.js +1 -1
  391. package/lib/Image/Image.vue.d.ts +2 -2
  392. package/lib/Image/ImagePreview.vue.js +1 -1
  393. package/lib/Image/hooks/useContext.d.ts +2 -2
  394. package/lib/Image/hooks/useContext.js +1 -1
  395. package/lib/Image/index.d.ts +6 -6
  396. package/lib/Image/type.d.ts +3 -2
  397. package/lib/Input/Input.vue.d.ts +3 -3
  398. package/lib/Input/InputSuffix.vue.js +1 -1
  399. package/lib/Input/index.d.ts +8 -8
  400. package/lib/InputNumber/InputNumber.vue.d.ts +20 -20
  401. package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  402. package/lib/InputNumber/index.d.ts +19 -19
  403. package/lib/InputNumber/type.d.ts +5 -4
  404. package/lib/InputTag/index.d.ts +20 -11
  405. package/lib/InputTag/index.vue.d.ts +7 -4
  406. package/lib/InputTag/index.vue.js +1 -1
  407. package/lib/InputTag/type.d.ts +2 -1
  408. package/lib/Layout/LayoutSider.vue.d.ts +3 -3
  409. package/lib/Layout/hooks/useSiderContext.d.ts +1 -2
  410. package/lib/Layout/hooks/useSiderContext.js +1 -1
  411. package/lib/Layout/index.d.ts +8 -8
  412. package/lib/Layout/type.d.ts +3 -4
  413. package/lib/Link/index.d.ts +3 -3
  414. package/lib/Link/index.vue.d.ts +1 -1
  415. package/lib/Link/type.d.ts +2 -2
  416. package/lib/List/List.vue.d.ts +7 -7
  417. package/lib/List/hooks/useScrollReach.js +1 -1
  418. package/lib/List/index.d.ts +6 -6
  419. package/lib/List/type.d.ts +2 -3
  420. package/lib/Mention/index.d.ts +49 -40
  421. package/lib/Mention/index.vue.d.ts +85 -67
  422. package/lib/Mention/type.d.ts +3 -2
  423. package/lib/Menu/Menu.vue.d.ts +2 -2
  424. package/lib/Menu/MenuItem.vue.js +1 -1
  425. package/lib/Menu/hooks/useContext.d.ts +2 -2
  426. package/lib/Menu/hooks/useContext.js +1 -1
  427. package/lib/Menu/index.d.ts +5 -5
  428. package/lib/Menu/type.d.ts +2 -2
  429. package/lib/Message/type.d.ts +3 -3
  430. package/lib/Modal/Modal.vue.d.ts +1 -1
  431. package/lib/Modal/ModalService.vue.d.ts +1 -1
  432. package/lib/Modal/index.d.ts +13 -13
  433. package/lib/Modal/index.js +1 -1
  434. package/lib/Modal/type.d.ts +6 -9
  435. package/lib/Notification/Notification.vue.d.ts +1 -1
  436. package/lib/Notification/index.d.ts +4 -4
  437. package/lib/Notification/type.d.ts +3 -4
  438. package/lib/OverflowList/index.d.ts +3 -3
  439. package/lib/OverflowList/index.vue.d.ts +1 -1
  440. package/lib/OverflowList/index.vue.js +1 -1
  441. package/lib/OverflowList/type.d.ts +3 -2
  442. package/lib/Pagination/hooks/useContext.d.ts +2 -2
  443. package/lib/Pagination/hooks/useContext.js +1 -1
  444. package/lib/Popconfirm/index.d.ts +8 -8
  445. package/lib/Popconfirm/index.vue.d.ts +3 -3
  446. package/lib/Popconfirm/type.d.ts +2 -3
  447. package/lib/Progress/Progress.vue.d.ts +1 -1
  448. package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
  449. package/lib/Progress/ProgressLine.vue.d.ts +3 -3
  450. package/lib/Progress/index.d.ts +3 -3
  451. package/lib/Progress/type.d.ts +2 -3
  452. package/lib/Radio/hooks/useContext.d.ts +2 -2
  453. package/lib/Radio/hooks/useContext.js +1 -1
  454. package/lib/Radio/type.d.ts +1 -1
  455. package/lib/ResizeBox/index.d.ts +3 -3
  456. package/lib/ResizeBox/index.vue.d.ts +2 -2
  457. package/lib/ResizeBox/type.d.ts +4 -4
  458. package/lib/Result/index.d.ts +3 -3
  459. package/lib/Result/index.vue.d.ts +1 -1
  460. package/lib/Result/type.d.ts +3 -2
  461. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  462. package/lib/Scrollbar/hooks/useContext.d.ts +2 -2
  463. package/lib/Scrollbar/hooks/useContext.js +1 -1
  464. package/lib/Scrollbar/index.d.ts +3 -3
  465. package/lib/Scrollbar/type.d.ts +2 -1
  466. package/lib/Select/Select.vue.d.ts +45 -27
  467. package/lib/Select/SelectVirtualList.vue.js +1 -1
  468. package/lib/Select/hooks/useContext.d.ts +4 -4
  469. package/lib/Select/hooks/useContext.js +1 -1
  470. package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
  471. package/lib/Select/index.d.ts +33 -24
  472. package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
  473. package/lib/Skeleton/index.d.ts +2 -2
  474. package/lib/Skeleton/type.d.ts +2 -4
  475. package/lib/Slider/hooks/useContext.d.ts +2 -2
  476. package/lib/Slider/hooks/useContext.js +1 -1
  477. package/lib/Space/index.d.ts +6 -6
  478. package/lib/Space/index.vue.d.ts +2 -2
  479. package/lib/Space/type.d.ts +5 -4
  480. package/lib/Spin/index.vue.js +1 -1
  481. package/lib/Steps/hooks/useContext.d.ts +1 -2
  482. package/lib/Steps/hooks/useContext.js +1 -1
  483. package/lib/Switch/index.d.ts +14 -14
  484. package/lib/Switch/index.vue.d.ts +5 -5
  485. package/lib/Switch/type.d.ts +4 -4
  486. package/lib/Tabs/Tabs.vue.d.ts +1 -1
  487. package/lib/Tabs/hooks/useContext.d.ts +6 -6
  488. package/lib/Tabs/hooks/useContext.js +1 -1
  489. package/lib/Tabs/index.d.ts +3 -3
  490. package/lib/Tabs/type.d.ts +2 -3
  491. package/lib/Tag/index.d.ts +3 -3
  492. package/lib/Tag/index.vue.d.ts +1 -1
  493. package/lib/Tag/type.d.ts +1 -2
  494. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  495. package/lib/Textarea/index.d.ts +5 -5
  496. package/lib/Textarea/index.vue.d.ts +2 -2
  497. package/lib/Textarea/type.d.ts +2 -2
  498. package/lib/TimePicker/TimePicker.vue.d.ts +5 -5
  499. package/lib/TimePicker/hooks/useContext.d.ts +2 -2
  500. package/lib/TimePicker/hooks/useContext.js +1 -1
  501. package/lib/TimePicker/index.d.ts +13 -13
  502. package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
  503. package/lib/Timeline/hooks/useContext.d.ts +2 -2
  504. package/lib/Timeline/hooks/useContext.js +1 -1
  505. package/lib/Timeline/index.d.ts +3 -3
  506. package/lib/Timeline/type.d.ts +3 -4
  507. package/lib/Transfer/TransferPanel.vue.js +1 -1
  508. package/lib/Transfer/hooks/useContext.d.ts +2 -2
  509. package/lib/Transfer/hooks/useContext.js +1 -1
  510. package/lib/Trigger/hooks/useContext.d.ts +2 -3
  511. package/lib/Trigger/hooks/useContext.js +1 -1
  512. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  513. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  514. package/lib/Typography/TypographyBase.vue.d.ts +17 -17
  515. package/lib/Typography/TypographyBase.vue.js +1 -1
  516. package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
  517. package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
  518. package/lib/Typography/type.d.ts +5 -4
  519. package/lib/Upload/Upload.vue.d.ts +53 -0
  520. package/lib/Upload/Upload.vue.js +1 -0
  521. package/lib/Upload/Upload.vue3.js +1 -0
  522. package/lib/Upload/UploadButton.vue.d.ts +2 -0
  523. package/lib/Upload/UploadButton.vue.js +1 -0
  524. package/lib/Upload/UploadButton.vue3.js +1 -0
  525. package/lib/Upload/UploadDrag.vue.d.ts +2 -0
  526. package/lib/Upload/UploadDrag.vue.js +1 -0
  527. package/lib/Upload/UploadDrag.vue3.js +1 -0
  528. package/lib/Upload/UploadFileList.vue.d.ts +24 -0
  529. package/lib/Upload/UploadFileList.vue.js +1 -0
  530. package/lib/Upload/UploadFileList.vue2.js +1 -0
  531. package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
  532. package/lib/Upload/UploadPictureCard.vue.js +1 -0
  533. package/lib/Upload/UploadPictureCard.vue2.js +1 -0
  534. package/lib/Upload/hooks/useContext.d.ts +49 -0
  535. package/lib/Upload/hooks/useContext.js +1 -0
  536. package/lib/Upload/hooks/useUpload.d.ts +47 -0
  537. package/lib/Upload/hooks/useUpload.js +1 -0
  538. package/lib/Upload/index.css +1 -0
  539. package/lib/Upload/index.d.ts +123 -0
  540. package/lib/Upload/index.js +1 -0
  541. package/lib/Upload/type.d.ts +72 -0
  542. package/lib/VerificationCode/index.d.ts +3 -3
  543. package/lib/VerificationCode/index.vue.d.ts +1 -1
  544. package/lib/VerificationCode/type.d.ts +5 -4
  545. package/lib/Watermark/index.vue.js +1 -1
  546. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  547. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  548. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  549. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  550. package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
  551. package/lib/_shared/icons/IconFile.vue.js +1 -0
  552. package/lib/_shared/icons/IconFile.vue2.js +1 -0
  553. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  554. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  555. package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
  556. package/lib/_shared/icons/IconUpload.vue.js +1 -0
  557. package/lib/_shared/icons/IconUpload.vue2.js +1 -0
  558. package/lib/_shared/icons/index.d.ts +2 -0
  559. package/lib/_shared/type/index.d.ts +3 -1
  560. package/lib/_shared/utils/is.d.ts +0 -15
  561. package/lib/_shared/utils/vue-utils.d.ts +1 -0
  562. package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  563. package/lib/index.d.ts +36 -35
  564. package/lib/index.js +1 -1
  565. package/lib/node_modules/@vueuse/core/index.js +1 -1
  566. package/lib/node_modules/@vueuse/shared/index.js +1 -1
  567. package/lib/style.css +1 -1
  568. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { SkeletonShapeProps } from './type';
2
2
  declare const _default: import('vue').DefineComponent<SkeletonShapeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonShapeProps> & Readonly<{}>, {
3
- size: import('./type').SkeletonShapeSize;
4
- shape: import('./type').SkeletonShapeShape;
3
+ size: Exclude<import('..').Size, "mini">;
4
+ shape: Exclude<import('..').Shape, "round">;
5
5
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -31,8 +31,8 @@ declare const Skeleton: {
31
31
  $slots: Readonly<import('./type').SkeletonSlots> & import('./type').SkeletonSlots;
32
32
  }) & {
33
33
  shape: import('vue').DefineComponent<import('./type').SkeletonShapeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./type').SkeletonShapeProps> & Readonly<{}>, {
34
- size: import('./type').SkeletonShapeSize;
35
- shape: import('./type').SkeletonShapeShape;
34
+ size: Exclude<import('..').Size, "mini">;
35
+ shape: Exclude<import('..').Shape, "round">;
36
36
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
37
37
  line: import('vue').DefineComponent<import('./type').SkeletonLineProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./type').SkeletonLineProps> & Readonly<{}>, {
38
38
  lineHeight: number;
@@ -15,8 +15,6 @@ export interface SkeletonLineProps {
15
15
  lineSpacing?: number;
16
16
  }
17
17
  export interface SkeletonShapeProps {
18
- shape?: SkeletonShapeShape;
19
- size?: SkeletonShapeSize;
18
+ shape?: Exclude<Shape, 'round'>;
19
+ size?: Exclude<Size, 'mini'>;
20
20
  }
21
- export type SkeletonShapeSize = Exclude<Size, 'mini'>;
22
- export type SkeletonShapeShape = Exclude<Shape, 'round'>;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createCommentVNode, createBlock, createVNode, normalizeStyle } from "vue";
2
- import useContext from "./hooks/useContext.js";
2
+ import useSliderContext from "./hooks/useContext.js";
3
3
  import _sfc_main$1 from "./SliderTicks.vue.js";
4
4
  /* empty css */
5
5
  import _sfc_main$2 from "./SliderBtn.vue.js";
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
44
  const props = __props;
45
45
  const emits = __emit;
46
46
  const trackRef = ref();
47
- const { ticks, marks, range, direction, min, normalizeValue } = useContext().provide(props, emits, trackRef);
47
+ const { ticks, marks, range, direction, min, normalizeValue } = useSliderContext().provide(props, emits, trackRef);
48
48
  const startPosition = ref({
49
49
  bottom: 0,
50
50
  left: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, toRefs, ref, computed, watch, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeStyle } from "vue";
2
- import useContext from "./hooks/useContext.js";
2
+ import useSliderContext from "./hooks/useContext.js";
3
3
  import useSliderDraggable from "./hooks/useSliderDraggable.js";
4
4
  import Tooltip from "../Tooltip/index.js";
5
5
  import { useControlValue } from "../_shared/utils/control.js";
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  formatTooltip,
29
29
  normalizeValue,
30
30
  denormalizeValue
31
- } = useContext().inject();
31
+ } = useSliderContext().inject();
32
32
  const computedValue = computed({
33
33
  get() {
34
34
  return type.value == "start" ? startValue.value : endValue.value;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, toRefs, computed, createBlock, openBlock, unref } from "vue";
2
- import useContext from "./hooks/useContext.js";
2
+ import useSliderContext from "./hooks/useContext.js";
3
3
  import InputNumber from "../InputNumber/index.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "SliderInput",
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  endValue,
18
18
  tempStartValue,
19
19
  tempEndValue
20
- } = useContext().inject();
20
+ } = useSliderContext().inject();
21
21
  const computedValue = computed({
22
22
  get() {
23
23
  return type.value == "start" ? tempStartValue.value : tempEndValue.value;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, toRefs, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, normalizeStyle, toDisplayString } from "vue";
2
- import useContext from "./hooks/useContext.js";
2
+ import useSliderContext from "./hooks/useContext.js";
3
3
  const _hoisted_1 = ["onClick"];
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "SliderTicks",
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  setup(__props) {
12
12
  const props = __props;
13
13
  const { type } = toRefs(props);
14
- const { min, max, startValue, endValue, range, direction, normalizeValue } = useContext().inject();
14
+ const { min, max, startValue, endValue, range, direction, normalizeValue } = useSliderContext().inject();
15
15
  const getPosition = (value) => {
16
16
  const curValue = normalizeValue(value);
17
17
  if (type.value == "ticks") {
@@ -18,7 +18,7 @@ type SliderContext = {
18
18
  normalizeValue: (value: number) => number;
19
19
  denormalizeValue: (value: number) => number;
20
20
  };
21
- declare const _default: () => {
21
+ export default function useSliderContext(): {
22
22
  inject: () => SliderContext;
23
23
  provide: (props: RecordType, emits: SliderEmits, trackRef: Ref<HTMLDivElement | undefined>) => {
24
24
  range: Ref<boolean, boolean>;
@@ -41,4 +41,4 @@ declare const _default: () => {
41
41
  normalizeValue: (value: number) => number;
42
42
  };
43
43
  };
44
- export default _default;
44
+ export {};
@@ -2,7 +2,7 @@ import { toRefs, computed, ref, provide, inject } from "vue";
2
2
  import { useControlValue } from "../../_shared/utils/control.js";
3
3
  import { isArray } from "../../_shared/utils/is.js";
4
4
  const SLIDER_CONTEXT_KEY = "slider-context";
5
- const useContext = () => {
5
+ function useSliderContext() {
6
6
  const provide$1 = (props, emits, trackRef) => {
7
7
  const {
8
8
  modelValue,
@@ -152,7 +152,7 @@ const useContext = () => {
152
152
  inject: inject$1,
153
153
  provide: provide$1
154
154
  };
155
- };
155
+ }
156
156
  export {
157
- useContext as default
157
+ useSliderContext as default
158
158
  };
@@ -5,10 +5,10 @@ export * from './type';
5
5
  declare const Space: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
7
7
  fill: boolean;
8
- size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
8
+ size: (number | import('..').Size) | [number | import('..').Size, number | import('..').Size];
9
9
  wrap: boolean;
10
10
  direction: import('..').Direction;
11
- align: import('./type').SpaceAlign;
11
+ align: "center" | "end" | "start" | "baseline";
12
12
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
13
13
  P: {};
14
14
  B: {};
@@ -18,20 +18,20 @@ declare const Space: {
18
18
  Defaults: {};
19
19
  }, Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, {
20
20
  fill: boolean;
21
- size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
21
+ size: (number | import('..').Size) | [number | import('..').Size, number | import('..').Size];
22
22
  wrap: boolean;
23
23
  direction: import('..').Direction;
24
- align: import('./type').SpaceAlign;
24
+ align: "center" | "end" | "start" | "baseline";
25
25
  }>;
26
26
  __isFragment?: never;
27
27
  __isTeleport?: never;
28
28
  __isSuspense?: never;
29
29
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
30
30
  fill: boolean;
31
- size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
31
+ size: (number | import('..').Size) | [number | import('..').Size, number | import('..').Size];
32
32
  wrap: boolean;
33
33
  direction: import('..').Direction;
34
- align: import('./type').SpaceAlign;
34
+ align: "center" | "end" | "start" | "baseline";
35
35
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
36
36
  $slots: any;
37
37
  }) & {
@@ -8,10 +8,10 @@ declare function __VLS_template(): {
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<SpaceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpaceProps> & Readonly<{}>, {
10
10
  fill: boolean;
11
- size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
11
+ size: (number | import('..').Size) | [number | import('..').Size, number | import('..').Size];
12
12
  wrap: boolean;
13
13
  direction: import('..').Direction;
14
- align: import('./type').SpaceAlign;
14
+ align: "center" | "end" | "start" | "baseline";
15
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
17
  export default _default;
@@ -1,7 +1,7 @@
1
- import { Direction, Size } from '../_shared/type';
1
+ import { Direction, Size as _Size } from '../_shared/type';
2
2
  import { VNode } from 'vue';
3
3
  export interface SpaceProps {
4
- align?: SpaceAlign;
4
+ align?: Align;
5
5
  direction?: Direction;
6
6
  wrap?: boolean;
7
7
  fill?: boolean;
@@ -11,5 +11,6 @@ export interface SpaceSlots {
11
11
  default?: () => VNode[];
12
12
  split?: () => VNode[];
13
13
  }
14
- export type SpaceAlign = 'start' | 'end' | 'center' | 'baseline';
15
- export type SpaceSize = Size | number;
14
+ type Align = 'start' | 'end' | 'center' | 'baseline';
15
+ type SpaceSize = _Size | number;
16
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, useSlots, createElementBlock, openBlock, createVNode, createBlock, renderSlot, unref, withCtx, createCommentVNode, normalizeStyle, normalizeClass, Fragment, renderList, createElementVNode, createTextVNode, toDisplayString, Transition } from "vue";
2
- import { createReusableTemplate } from "../node_modules/@vueuse/core/index.js";
3
2
  import { valueToPx } from "../_shared/utils/dom.js";
3
+ import { createReusableTemplate } from "../node_modules/@vueuse/core/index.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
5
5
  /* empty css */
6
6
  import _sfc_main$1 from "../_shared/icons/IconCheck.vue.js";
7
7
  import _sfc_main$2 from "../_shared/icons/IconClose.vue.js";
8
- import useContext from "./hooks/useContext.js";
8
+ import useStepsContext from "./hooks/useContext.js";
9
9
  const _hoisted_1 = {
10
10
  key: 0,
11
11
  class: "yc-steps-item-tail"
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  lineLess: _lineLess,
47
47
  small: _small,
48
48
  emits
49
- } = useContext().inject(props);
49
+ } = useStepsContext().inject(props);
50
50
  const small = computed(() => {
51
51
  return type.value != "dot" ? _small.value : false;
52
52
  });
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
2
- import useContext from "./hooks/useContext.js";
2
+ import useStepsContext from "./hooks/useContext.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  ...{
5
5
  name: "Steps"
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  setup(__props, { emit: __emit }) {
21
21
  const props = __props;
22
22
  const emits = __emit;
23
- const { type, labelPlacement, direction } = useContext().provide(props, emits);
23
+ const { type, labelPlacement, direction } = useStepsContext().provide(props, emits);
24
24
  return (_ctx, _cache) => {
25
25
  return openBlock(), createElementBlock("div", {
26
26
  class: normalizeClass([
@@ -1,7 +1,7 @@
1
1
  import { Ref, Reactive } from 'vue';
2
2
  import { StepsEmits, StepStatus, StepType } from '../type';
3
3
  import { Direction, RecordType } from '../../_shared/type';
4
- declare const _default: () => {
4
+ export default function useStepsContext(): {
5
5
  provide: (props: RecordType, emits: StepsEmits) => {
6
6
  direction: import('vue').ComputedRef<Direction>;
7
7
  labelPlacement: import('vue').ComputedRef<Direction>;
@@ -23,4 +23,3 @@ declare const _default: () => {
23
23
  emits: StepsEmits;
24
24
  };
25
25
  };
26
- export default _default;
@@ -3,7 +3,7 @@ import { nanoid } from "../../node_modules/nanoid/index.browser.js";
3
3
  import { isUndefined } from "../../_shared/utils/is.js";
4
4
  import { useControlValue } from "../../_shared/utils/control.js";
5
5
  const STEPS_CONTEXT_KEY = "card-context";
6
- const useContext = () => {
6
+ function useStepsContext() {
7
7
  const provide$1 = (props, emits) => {
8
8
  const {
9
9
  status,
@@ -127,7 +127,7 @@ const useContext = () => {
127
127
  provide: provide$1,
128
128
  inject: inject$1
129
129
  };
130
- };
130
+ }
131
131
  export {
132
- useContext as default
132
+ useStepsContext as default
133
133
  };
@@ -5,17 +5,17 @@ export * from './type';
5
5
  declare const Switch: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SwitchProps> & Readonly<{
7
7
  onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
8
- onFocus?: ((ev: FocusEvent) => any) | undefined;
9
8
  onBlur?: ((ev: FocusEvent) => any) | undefined;
9
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
10
10
  "onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
12
  change: (value: import('./type').SwitchValue, ev: Event) => any;
13
- focus: (ev: FocusEvent) => any;
14
13
  blur: (ev: FocusEvent) => any;
14
+ focus: (ev: FocusEvent) => any;
15
15
  "update:modelValue": (value: import('./type').SwitchValue) => any;
16
16
  }, import('vue').PublicProps, {
17
- size: import('./type').SwitchSize;
18
- type: import('./type').SwitchType;
17
+ size: Exclude<import('..').Size, "mini" | "large">;
18
+ type: "round" | "circle" | "line";
19
19
  disabled: boolean;
20
20
  loading: boolean;
21
21
  defaultChecked: import('./type').SwitchValue;
@@ -26,7 +26,7 @@ declare const Switch: {
26
26
  uncheckedColor: string;
27
27
  checkedText: string;
28
28
  uncheckedText: string;
29
- beforeChange: import('./type').BeforeChange;
29
+ beforeChange: (newValue: import('./type').SwitchValue) => Promise<boolean | void> | boolean | void;
30
30
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
31
31
  P: {};
32
32
  B: {};
@@ -36,12 +36,12 @@ declare const Switch: {
36
36
  Defaults: {};
37
37
  }, Readonly<import('./type').SwitchProps> & Readonly<{
38
38
  onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
39
- onFocus?: ((ev: FocusEvent) => any) | undefined;
40
39
  onBlur?: ((ev: FocusEvent) => any) | undefined;
40
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
41
41
  "onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
42
42
  }>, {}, {}, {}, {}, {
43
- size: import('./type').SwitchSize;
44
- type: import('./type').SwitchType;
43
+ size: Exclude<import('..').Size, "mini" | "large">;
44
+ type: "round" | "circle" | "line";
45
45
  disabled: boolean;
46
46
  loading: boolean;
47
47
  defaultChecked: import('./type').SwitchValue;
@@ -52,24 +52,24 @@ declare const Switch: {
52
52
  uncheckedColor: string;
53
53
  checkedText: string;
54
54
  uncheckedText: string;
55
- beforeChange: import('./type').BeforeChange;
55
+ beforeChange: (newValue: import('./type').SwitchValue) => Promise<boolean | void> | boolean | void;
56
56
  }>;
57
57
  __isFragment?: never;
58
58
  __isTeleport?: never;
59
59
  __isSuspense?: never;
60
60
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').SwitchProps> & Readonly<{
61
61
  onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
62
- onFocus?: ((ev: FocusEvent) => any) | undefined;
63
62
  onBlur?: ((ev: FocusEvent) => any) | undefined;
63
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
64
64
  "onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
65
65
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
66
66
  change: (value: import('./type').SwitchValue, ev: Event) => any;
67
- focus: (ev: FocusEvent) => any;
68
67
  blur: (ev: FocusEvent) => any;
68
+ focus: (ev: FocusEvent) => any;
69
69
  "update:modelValue": (value: import('./type').SwitchValue) => any;
70
70
  }, string, {
71
- size: import('./type').SwitchSize;
72
- type: import('./type').SwitchType;
71
+ size: Exclude<import('..').Size, "mini" | "large">;
72
+ type: "round" | "circle" | "line";
73
73
  disabled: boolean;
74
74
  loading: boolean;
75
75
  defaultChecked: import('./type').SwitchValue;
@@ -80,7 +80,7 @@ declare const Switch: {
80
80
  uncheckedColor: string;
81
81
  checkedText: string;
82
82
  uncheckedText: string;
83
- beforeChange: import('./type').BeforeChange;
83
+ beforeChange: (newValue: import('./type').SwitchValue) => Promise<boolean | void> | boolean | void;
84
84
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
85
85
  $slots: any;
86
86
  }) & {
@@ -8,17 +8,17 @@ declare function __VLS_template(): {
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
10
  change: (value: SwitchValue, ev: Event) => any;
11
- focus: (ev: FocusEvent) => any;
12
11
  blur: (ev: FocusEvent) => any;
12
+ focus: (ev: FocusEvent) => any;
13
13
  "update:modelValue": (value: SwitchValue) => any;
14
14
  }, string, import('vue').PublicProps, Readonly<SwitchProps> & Readonly<{
15
15
  onChange?: ((value: SwitchValue, ev: Event) => any) | undefined;
16
- onFocus?: ((ev: FocusEvent) => any) | undefined;
17
16
  onBlur?: ((ev: FocusEvent) => any) | undefined;
17
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
18
18
  "onUpdate:modelValue"?: ((value: SwitchValue) => any) | undefined;
19
19
  }>, {
20
- size: import('./type').SwitchSize;
21
- type: import('./type').SwitchType;
20
+ size: Exclude<import('..').Size, "mini" | "large">;
21
+ type: "round" | "circle" | "line";
22
22
  disabled: boolean;
23
23
  loading: boolean;
24
24
  defaultChecked: SwitchValue;
@@ -29,7 +29,7 @@ declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}
29
29
  uncheckedColor: string;
30
30
  checkedText: string;
31
31
  uncheckedText: string;
32
- beforeChange: import('./type').BeforeChange;
32
+ beforeChange: (newValue: SwitchValue) => Promise<boolean | void> | boolean | void;
33
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
34
34
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
35
  export default _default;
@@ -6,7 +6,7 @@ export interface SwitchProps {
6
6
  disabled?: boolean;
7
7
  loading?: boolean;
8
8
  type?: SwitchType;
9
- size?: SwitchSize;
9
+ size?: Exclude<Size, 'mini' | 'large'>;
10
10
  checkedValue?: SwitchValue;
11
11
  uncheckedValue?: SwitchValue;
12
12
  checkedColor?: string;
@@ -28,6 +28,6 @@ export interface SwitchSlots {
28
28
  unchecked?: () => VNode[];
29
29
  }
30
30
  export type SwitchValue = string | number | boolean;
31
- export type SwitchType = 'circle' | 'round' | 'line';
32
- export type SwitchSize = Exclude<Size, 'mini' | 'large'>;
33
- export type BeforeChange = (newValue: SwitchValue) => Promise<boolean | void> | boolean | void;
31
+ type SwitchType = 'circle' | 'round' | 'line';
32
+ type BeforeChange = (newValue: SwitchValue) => Promise<boolean | void> | boolean | void;
33
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, unref, renderSlot } from "vue";
2
2
  import { isUndefined } from "../_shared/utils/is.js";
3
- import useContext from "./hooks/useContext.js";
3
+ import useTabsContext from "./hooks/useContext.js";
4
4
  const _hoisted_1 = { class: "yc-tabs-content-item" };
5
5
  const _hoisted_2 = {
6
6
  key: 0,
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  },
21
21
  setup(__props) {
22
22
  const props = __props;
23
- const { computedActiveKey, destoryOnHide: _destoryOnHide } = useContext().inject();
23
+ const { computedActiveKey, destoryOnHide: _destoryOnHide } = useTabsContext().inject();
24
24
  const destoryOnHide = computed(() => {
25
25
  return !isUndefined(props.destoryOnHide) ? props.destoryOnHide : _destoryOnHide.value;
26
26
  });
@@ -24,7 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {}, {},
24
24
  size: import('..').Size;
25
25
  type: import('./type').TabType;
26
26
  trigger: import('..').EventTrigger;
27
- position: import('./type').TabPositon;
27
+ position: import('..').Position;
28
28
  justify: boolean;
29
29
  animation: boolean;
30
30
  direction: import('..').Direction;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useSlots, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createCommentVNode, createBlock, withCtx, createVNode, normalizeStyle, Fragment, renderList, renderSlot, resolveDynamicComponent, nextTick } from "vue";
2
2
  import { valueToPx } from "../_shared/utils/dom.js";
3
3
  import { findComponentsFromVnodes } from "../_shared/utils/vue-utils.js";
4
- import useContext from "./hooks/useContext.js";
4
+ import useTabsContext from "./hooks/useContext.js";
5
5
  import useTabsScroll from "./hooks/useTabsScroll.js";
6
6
  /* empty css */
7
7
  /* empty css */
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  const props = __props;
50
50
  const emits = __emit;
51
51
  const listRef = ref();
52
- const { computedActiveKey, size, direction, autoSwitch, position } = useContext().provide(props, emits, listRef);
52
+ const { computedActiveKey, size, direction, autoSwitch, position } = useTabsContext().provide(props, emits, listRef);
53
53
  const tabPanes = computed(
54
54
  () => {
55
55
  var _a;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, toRefs, computed, createElementBlock, openBlock, normalizeStyle } from "vue";
2
2
  import { isUndefined } from "../_shared/utils/is.js";
3
3
  import { valueToPx } from "../_shared/utils/dom.js";
4
- import useContext from "./hooks/useContext.js";
4
+ import useTabsContext from "./hooks/useContext.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "TabsNavInk",
7
7
  props: {
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  setup(__props) {
12
12
  const props = __props;
13
13
  const { curIndex, panes } = toRefs(props);
14
- const { titleRefs, listRef, direction, editable } = useContext().inject();
14
+ const { titleRefs, listRef, direction, editable } = useTabsContext().inject();
15
15
  const sliderStyle = computed(() => {
16
16
  var _a, _b, _c;
17
17
  const curPane = panes.value[curIndex.value];
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, toRefs, onMounted, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent } from "vue";
2
- import useContext from "./hooks/useContext.js";
2
+ import useTabsContext from "./hooks/useContext.js";
3
3
  import { isUndefined } from "../_shared/utils/is.js";
4
4
  import _sfc_main$1 from "./TabButton.vue.js";
5
5
  /* empty css */
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  headerPadding,
25
25
  size,
26
26
  emits
27
- } = useContext().inject();
27
+ } = useTabsContext().inject();
28
28
  const renderTitle = (node2) => {
29
29
  const { slots, title } = node2;
30
30
  return slots.title ?? (() => title);
@@ -1,12 +1,12 @@
1
1
  import { Ref, Slots } from 'vue';
2
- import { TabPaneProps as _TabPaneProps, TabKey, TabsEmits, TabType, TabPositon } from '../type';
3
- import { Direction, EventTrigger, RecordType, Required, Size } from '../../_shared/type';
2
+ import { TabPaneProps as _TabPaneProps, TabKey, TabsEmits, TabType } from '../type';
3
+ import { Direction, EventTrigger, Position, RecordType, Required, Size } from '../../_shared/type';
4
4
  type TabsContext = {
5
5
  computedActiveKey: Ref<TabKey>;
6
6
  type: Ref<TabType>;
7
7
  trigger: Ref<EventTrigger>;
8
8
  direction: Ref<Direction>;
9
- position: Ref<TabPositon>;
9
+ position: Ref<Position>;
10
10
  editable: Ref<boolean>;
11
11
  destoryOnHide: Ref<boolean>;
12
12
  listRef: Ref<HTMLDivElement | undefined>;
@@ -20,16 +20,16 @@ type TabPaneProps = Required<_TabPaneProps>;
20
20
  export type PaneNode = {
21
21
  slots: Slots;
22
22
  } & TabPaneProps;
23
- declare const _default: () => {
23
+ export default function useTabsContext(): {
24
24
  provide: (props: RecordType, emits: TabsEmits, listRef: Ref<HTMLDivElement | undefined>) => {
25
25
  computedActiveKey: import('vue').WritableComputedRef<TabKey, TabKey>;
26
26
  size: import('vue').ComputedRef<any>;
27
27
  direction: import('vue').ComputedRef<Direction>;
28
- position: Ref<TabPositon, TabPositon>;
28
+ position: Ref<Position, Position>;
29
29
  autoSwitch: Ref<boolean, boolean>;
30
30
  titleRefs: Ref<HTMLSpanElement[], HTMLSpanElement[]>;
31
31
  tabRefs: Ref<HTMLDivElement[], HTMLDivElement[]>;
32
32
  };
33
33
  inject: () => TabsContext;
34
34
  };
35
- export default _default;
35
+ export {};
@@ -2,7 +2,7 @@ import { toRefs, ref, computed, provide, inject } from "vue";
2
2
  import { useControlValue } from "../../_shared/utils/control.js";
3
3
  import { getGlobalConfig } from "../../_shared/utils/global-config.js";
4
4
  const TABS_CONTEXT_KEY = "tabs-context";
5
- const useContext = () => {
5
+ function useTabsContext() {
6
6
  const provide$1 = (props, emits, listRef) => {
7
7
  const { size } = getGlobalConfig(props);
8
8
  const {
@@ -81,7 +81,7 @@ const useContext = () => {
81
81
  provide: provide$1,
82
82
  inject: inject$1
83
83
  };
84
- };
84
+ }
85
85
  export {
86
- useContext as default
86
+ useTabsContext as default
87
87
  };
@@ -21,7 +21,7 @@ declare const Tabs: {
21
21
  size: import('..').Size;
22
22
  type: import('./type').TabType;
23
23
  trigger: import('..').EventTrigger;
24
- position: import('./type').TabPositon;
24
+ position: import('..').Position;
25
25
  justify: boolean;
26
26
  animation: boolean;
27
27
  direction: import('..').Direction;
@@ -52,7 +52,7 @@ declare const Tabs: {
52
52
  size: import('..').Size;
53
53
  type: import('./type').TabType;
54
54
  trigger: import('..').EventTrigger;
55
- position: import('./type').TabPositon;
55
+ position: import('..').Position;
56
56
  justify: boolean;
57
57
  animation: boolean;
58
58
  direction: import('..').Direction;
@@ -84,7 +84,7 @@ declare const Tabs: {
84
84
  size: import('..').Size;
85
85
  type: import('./type').TabType;
86
86
  trigger: import('..').EventTrigger;
87
- position: import('./type').TabPositon;
87
+ position: import('..').Position;
88
88
  justify: boolean;
89
89
  animation: boolean;
90
90
  direction: import('..').Direction;
package/es/Tabs/type.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { Direction, Size, EventTrigger } from '../_shared/type';
1
+ import { Direction, Size, EventTrigger, Position } from '../_shared/type';
2
2
  import { VNode } from 'vue';
3
3
  export interface TabsProps {
4
4
  activeKey?: TabKey;
5
5
  defaultActiveKey?: TabKey;
6
- position?: TabPositon;
6
+ position?: Position;
7
7
  size?: Size;
8
8
  type?: TabType;
9
9
  direction?: Direction;
@@ -41,4 +41,3 @@ export interface TabPaneSlots {
41
41
  }
42
42
  export type TabKey = string | number;
43
43
  export type TabType = 'line' | 'card' | 'card-gutter' | 'text' | 'rounded' | 'capsule';
44
- export type TabPositon = 'left' | 'right' | 'bottom' | 'top';