@varlet/ui 1.27.20 → 2.0.0-alpha.1663742071515

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 (561) hide show
  1. package/LICENCE +1 -1
  2. package/README.md +27 -33
  3. package/README.zh-CN.md +92 -0
  4. package/es/action-sheet/actionSheet.css +1 -1
  5. package/es/action-sheet/props.js +1 -1
  6. package/es/bottom-navigation/BottomNavigation.js +1 -1
  7. package/es/button/Button.js +2 -1
  8. package/es/button/button.css +1 -1
  9. package/es/button/props.js +5 -0
  10. package/es/card/Card.js +18 -22
  11. package/es/card/card.css +1 -1
  12. package/es/card/props.js +0 -7
  13. package/es/cell/Cell.js +3 -3
  14. package/es/cell/cell.css +1 -1
  15. package/es/cell/props.js +2 -2
  16. package/es/chip/chip.css +1 -1
  17. package/es/date-picker/DatePicker.js +1 -1
  18. package/es/date-picker/props.js +1 -1
  19. package/es/date-picker/src/day-picker-panel.js +1 -1
  20. package/es/date-picker/src/month-picker-panel.js +1 -1
  21. package/es/dialog/props.js +1 -1
  22. package/es/divider/Divider.js +1 -1
  23. package/es/image-preview/props.js +1 -1
  24. package/es/index.js +5 -0
  25. package/es/lazy/index.js +1 -1
  26. package/es/loading/loading.css +1 -1
  27. package/es/loading/props.js +1 -2
  28. package/es/locale/index.js +7 -2
  29. package/es/menu/Menu.js +318 -94
  30. package/es/{action-sheet/ActionSheetSfc.less → menu/MenuSfc.css} +0 -0
  31. package/es/menu/index.js +1 -1
  32. package/es/menu/menu.css +1 -1
  33. package/es/menu/props.js +23 -6
  34. package/es/menu/style/index.js +3 -2
  35. package/es/pagination/Pagination.js +7 -3
  36. package/es/pagination/pagination.css +1 -1
  37. package/es/picker/props.js +1 -1
  38. package/es/popup/Popup.js +3 -3
  39. package/es/rate/Rate.js +20 -36
  40. package/es/rate/rate.css +1 -1
  41. package/es/ripple/index.js +2 -2
  42. package/es/select/Select.js +18 -46
  43. package/es/select/select.css +1 -1
  44. package/es/slider/Slider.js +1 -1
  45. package/es/snackbar/core.js +4 -2
  46. package/es/snackbar/index.js +1 -1
  47. package/es/snackbar/props.js +6 -2
  48. package/es/snackbar/style/index.js +1 -1
  49. package/es/space/Space.js +6 -2
  50. package/es/style-provider/StyleProvider.js +5 -1
  51. package/es/style-provider/index.js +1 -5
  52. package/es/style.css +1 -1
  53. package/es/style.js +1 -0
  54. package/es/switch/Switch.js +6 -5
  55. package/es/tabs/tabs.css +1 -1
  56. package/es/tabs-items/TabsItems.js +8 -2
  57. package/es/themes/dark/cell.js +1 -1
  58. package/es/themes/dark/index.js +3 -2
  59. package/es/themes/dark/menu.js +3 -0
  60. package/es/themes/index.js +4 -0
  61. package/es/time-picker/TimePicker.js +1 -1
  62. package/es/time-picker/props.js +1 -1
  63. package/es/umdIndex.js +5 -0
  64. package/es/utils/components.js +2 -2
  65. package/es/utils/jest.js +0 -19
  66. package/es/varlet.esm.js +12805 -13960
  67. package/highlight/attributes.json +41 -9
  68. package/highlight/tags.json +14 -6
  69. package/highlight/web-types.json +83 -11
  70. package/lib/action-sheet/actionSheet.css +1 -1
  71. package/lib/action-sheet/props.js +1 -1
  72. package/lib/bottom-navigation/BottomNavigation.js +1 -1
  73. package/lib/button/Button.js +2 -1
  74. package/lib/button/button.css +1 -1
  75. package/lib/button/props.js +5 -0
  76. package/lib/card/Card.js +18 -22
  77. package/lib/card/card.css +1 -1
  78. package/lib/card/props.js +0 -7
  79. package/lib/cell/Cell.js +3 -3
  80. package/lib/cell/cell.css +1 -1
  81. package/lib/cell/props.js +2 -2
  82. package/lib/chip/chip.css +1 -1
  83. package/lib/date-picker/DatePicker.js +1 -1
  84. package/lib/date-picker/props.js +1 -1
  85. package/lib/date-picker/src/day-picker-panel.js +1 -1
  86. package/lib/date-picker/src/month-picker-panel.js +1 -1
  87. package/lib/dialog/props.js +1 -1
  88. package/lib/divider/Divider.js +1 -1
  89. package/lib/image-preview/props.js +1 -1
  90. package/lib/index.js +3 -0
  91. package/lib/lazy/index.js +1 -1
  92. package/lib/loading/loading.css +1 -1
  93. package/lib/loading/props.js +1 -2
  94. package/lib/locale/index.js +11 -1
  95. package/lib/menu/Menu.js +321 -91
  96. package/{es/app-bar/AppBarSfc.less → lib/menu/MenuSfc.css} +0 -0
  97. package/lib/menu/index.js +1 -1
  98. package/lib/menu/menu.css +1 -1
  99. package/lib/menu/props.js +23 -6
  100. package/lib/menu/style/index.js +3 -2
  101. package/lib/pagination/Pagination.js +6 -2
  102. package/lib/pagination/pagination.css +1 -1
  103. package/lib/picker/props.js +1 -1
  104. package/lib/popup/Popup.js +2 -2
  105. package/lib/rate/Rate.js +20 -36
  106. package/lib/rate/rate.css +1 -1
  107. package/lib/ripple/index.js +2 -2
  108. package/lib/select/Select.js +17 -45
  109. package/lib/select/select.css +1 -1
  110. package/lib/slider/Slider.js +1 -1
  111. package/lib/snackbar/core.js +4 -2
  112. package/lib/snackbar/index.js +1 -1
  113. package/lib/snackbar/props.js +6 -2
  114. package/lib/space/Space.js +6 -2
  115. package/lib/style-provider/StyleProvider.js +5 -1
  116. package/lib/style-provider/index.js +1 -5
  117. package/lib/style.css +1 -1
  118. package/lib/style.js +1 -0
  119. package/lib/switch/Switch.js +6 -5
  120. package/lib/tabs/tabs.css +1 -1
  121. package/lib/tabs-items/TabsItems.js +9 -3
  122. package/lib/themes/dark/cell.js +1 -1
  123. package/lib/themes/dark/index.js +4 -2
  124. package/lib/themes/dark/menu.js +8 -0
  125. package/lib/themes/index.js +13 -0
  126. package/lib/time-picker/TimePicker.js +1 -1
  127. package/lib/time-picker/props.js +1 -1
  128. package/lib/utils/components.js +3 -3
  129. package/lib/utils/jest.js +0 -21
  130. package/package.json +10 -7
  131. package/types/actionSheet.d.ts +1 -2
  132. package/types/appBar.d.ts +4 -3
  133. package/types/backTop.d.ts +1 -2
  134. package/types/badge.d.ts +5 -4
  135. package/types/bottomNavigation.d.ts +1 -2
  136. package/types/bottomNavigationItem.d.ts +1 -2
  137. package/types/button.d.ts +7 -6
  138. package/types/card.d.ts +7 -8
  139. package/types/cell.d.ts +3 -4
  140. package/types/checkbox.d.ts +1 -2
  141. package/types/checkboxGroup.d.ts +4 -5
  142. package/types/chip.d.ts +3 -4
  143. package/types/col.d.ts +1 -2
  144. package/types/collapse.d.ts +1 -2
  145. package/types/collapseItem.d.ts +1 -2
  146. package/types/countdown.d.ts +1 -2
  147. package/types/counter.d.ts +3 -4
  148. package/types/datePicker.d.ts +5 -4
  149. package/types/dialog.d.ts +4 -3
  150. package/types/divider.d.ts +1 -2
  151. package/types/form.d.ts +1 -2
  152. package/types/icon.d.ts +1 -2
  153. package/types/image.d.ts +4 -3
  154. package/types/imagePreview.d.ts +2 -3
  155. package/types/index.d.ts +67 -0
  156. package/types/indexAnchor.d.ts +1 -2
  157. package/types/indexBar.d.ts +1 -2
  158. package/types/input.d.ts +6 -5
  159. package/types/list.d.ts +1 -2
  160. package/types/loading.d.ts +5 -4
  161. package/types/locale.d.ts +3 -0
  162. package/types/menu.d.ts +27 -3
  163. package/types/option.d.ts +1 -2
  164. package/types/pagination.d.ts +1 -2
  165. package/types/picker.d.ts +1 -2
  166. package/types/popup.d.ts +4 -3
  167. package/types/progress.d.ts +4 -3
  168. package/types/pullRefresh.d.ts +1 -2
  169. package/types/radio.d.ts +3 -4
  170. package/types/radioGroup.d.ts +4 -5
  171. package/types/rate.d.ts +1 -2
  172. package/types/row.d.ts +7 -4
  173. package/types/select.d.ts +6 -5
  174. package/types/skeleton.d.ts +1 -2
  175. package/types/slider.d.ts +4 -3
  176. package/types/snackbar.d.ts +9 -9
  177. package/types/space.d.ts +1 -2
  178. package/types/step.d.ts +1 -2
  179. package/types/steps.d.ts +2 -3
  180. package/types/sticky.d.ts +1 -2
  181. package/types/styleProvider.d.ts +2 -2
  182. package/types/swipe.d.ts +1 -2
  183. package/types/swipeItem.d.ts +1 -2
  184. package/types/switch.d.ts +1 -2
  185. package/types/tab.d.ts +1 -2
  186. package/types/tabItem.d.ts +1 -2
  187. package/types/table.d.ts +1 -2
  188. package/types/tabs.d.ts +3 -4
  189. package/types/tabsItems.d.ts +4 -2
  190. package/types/timePicker.d.ts +5 -4
  191. package/types/uploader.d.ts +12 -7
  192. package/types/varComponent.d.ts +6 -0
  193. package/umd/varlet.js +16 -4
  194. package/README.en-US.md +0 -93
  195. package/es/action-sheet/actionSheet.less +0 -68
  196. package/es/action-sheet/style/less.js +0 -6
  197. package/es/app-bar/appBar.less +0 -57
  198. package/es/app-bar/style/less.js +0 -4
  199. package/es/back-top/BackTopSfc.less +0 -0
  200. package/es/back-top/backTop.less +0 -27
  201. package/es/back-top/style/less.js +0 -5
  202. package/es/badge/BadgeSfc.less +0 -0
  203. package/es/badge/badge.less +0 -119
  204. package/es/badge/style/less.js +0 -4
  205. package/es/bottom-navigation/BottomNavigationSfc.less +0 -0
  206. package/es/bottom-navigation/bottomNavigation.less +0 -56
  207. package/es/bottom-navigation/style/less.js +0 -4
  208. package/es/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
  209. package/es/bottom-navigation-item/bottomNavigationItem.less +0 -78
  210. package/es/bottom-navigation-item/style/less.js +0 -6
  211. package/es/button/ButtonSfc.less +0 -0
  212. package/es/button/button.less +0 -183
  213. package/es/button/style/less.js +0 -6
  214. package/es/card/CardSfc.less +0 -0
  215. package/es/card/card.less +0 -189
  216. package/es/card/style/less.js +0 -5
  217. package/es/cell/CellSfc.less +0 -0
  218. package/es/cell/cell.less +0 -78
  219. package/es/cell/style/less.js +0 -4
  220. package/es/checkbox/CheckboxSfc.less +0 -0
  221. package/es/checkbox/checkbox.less +0 -78
  222. package/es/checkbox/style/less.js +0 -6
  223. package/es/checkbox-group/CheckboxGroupSfc.less +0 -0
  224. package/es/checkbox-group/checkboxGroup.less +0 -12
  225. package/es/checkbox-group/style/less.js +0 -4
  226. package/es/chip/ChipSfc.less +0 -0
  227. package/es/chip/chip.less +0 -182
  228. package/es/chip/style/less.js +0 -4
  229. package/es/col/ColSfc.less +0 -0
  230. package/es/col/col.less +0 -74
  231. package/es/col/style/less.js +0 -3
  232. package/es/collapse/CollapseSfc.less +0 -1
  233. package/es/collapse/style/less.js +0 -3
  234. package/es/collapse-item/CollapseItemSfc.less +0 -0
  235. package/es/collapse-item/collapseItem.less +0 -105
  236. package/es/collapse-item/style/less.js +0 -4
  237. package/es/context/style/less.js +0 -0
  238. package/es/countdown/CountdownSfc.less +0 -0
  239. package/es/countdown/style/less.js +0 -2
  240. package/es/counter/CounterSfc.less +0 -0
  241. package/es/counter/counter.less +0 -89
  242. package/es/counter/style/less.js +0 -7
  243. package/es/date-picker/DatePickerSfc.less +0 -0
  244. package/es/date-picker/date-picker.less +0 -354
  245. package/es/date-picker/style/less.js +0 -7
  246. package/es/dialog/DialogSfc.less +0 -0
  247. package/es/dialog/dialog.less +0 -77
  248. package/es/dialog/style/less.js +0 -5
  249. package/es/divider/DividerSfc.less +0 -0
  250. package/es/divider/divider.less +0 -78
  251. package/es/divider/style/less.js +0 -3
  252. package/es/form/FormSfc.less +0 -0
  253. package/es/form/style/less.js +0 -2
  254. package/es/form-details/FormDetailsSfc.less +0 -0
  255. package/es/form-details/formDetails.less +0 -48
  256. package/es/form-details/style/less.js +0 -3
  257. package/es/icon/IconSfc.less +0 -0
  258. package/es/icon/icon.less +0 -26
  259. package/es/icon/style/less.js +0 -3
  260. package/es/image/ImageSfc.less +0 -0
  261. package/es/image/image.less +0 -9
  262. package/es/image/style/less.js +0 -4
  263. package/es/image-preview/ImagePreviewSfc.less +0 -0
  264. package/es/image-preview/imagePreview.less +0 -76
  265. package/es/image-preview/style/less.js +0 -7
  266. package/es/index-anchor/IndexAnchorSfc.less +0 -1
  267. package/es/index-anchor/style/less.js +0 -3
  268. package/es/index-bar/IndexBarSfc.less +0 -0
  269. package/es/index-bar/indexBar.less +0 -43
  270. package/es/index-bar/style/less.js +0 -3
  271. package/es/input/InputSfc.less +0 -0
  272. package/es/input/input.less +0 -187
  273. package/es/input/style/less.js +0 -5
  274. package/es/lazy/style/less.js +0 -0
  275. package/es/less.js +0 -64
  276. package/es/list/ListSfc.less +0 -0
  277. package/es/list/list.less +0 -63
  278. package/es/list/style/less.js +0 -5
  279. package/es/loading/LoadingSfc.less +0 -0
  280. package/es/loading/loading.less +0 -500
  281. package/es/loading/style/less.js +0 -3
  282. package/es/locale/style/less.js +0 -0
  283. package/es/menu/menu.less +0 -21
  284. package/es/menu/style/less.js +0 -3
  285. package/es/option/OptionSfc.less +0 -0
  286. package/es/option/option.less +0 -37
  287. package/es/option/style/less.js +0 -6
  288. package/es/pagination/PaginationSfc.less +0 -0
  289. package/es/pagination/pagination.less +0 -188
  290. package/es/pagination/style/less.js +0 -8
  291. package/es/picker/PickerSfc.less +0 -0
  292. package/es/picker/picker.less +0 -106
  293. package/es/picker/style/less.js +0 -5
  294. package/es/popup/popup.less +0 -125
  295. package/es/popup/style/less.js +0 -2
  296. package/es/progress/ProgressSfc.less +0 -0
  297. package/es/progress/progress.less +0 -101
  298. package/es/progress/style/less.js +0 -3
  299. package/es/pull-refresh/PullRefreshSfc.less +0 -0
  300. package/es/pull-refresh/pullRefresh.less +0 -56
  301. package/es/pull-refresh/style/less.js +0 -5
  302. package/es/radio/RadioSfc.less +0 -0
  303. package/es/radio/radio.less +0 -78
  304. package/es/radio/style/less.js +0 -6
  305. package/es/radio-group/RadioGroupSfc.less +0 -0
  306. package/es/radio-group/radioGroup.less +0 -12
  307. package/es/radio-group/style/less.js +0 -4
  308. package/es/rate/RateSfc.less +0 -0
  309. package/es/rate/rate.less +0 -48
  310. package/es/rate/style/less.js +0 -6
  311. package/es/ripple/ripple.less +0 -20
  312. package/es/ripple/style/less.js +0 -2
  313. package/es/row/RowSfc.less +0 -0
  314. package/es/row/row.less +0 -4
  315. package/es/row/style/less.js +0 -3
  316. package/es/select/SelectSfc.less +0 -0
  317. package/es/select/select.less +0 -184
  318. package/es/select/style/less.js +0 -7
  319. package/es/skeleton/SkeletonSfc.less +0 -0
  320. package/es/skeleton/skeleton.less +0 -138
  321. package/es/skeleton/style/less.js +0 -3
  322. package/es/slider/SliderSfc.less +0 -0
  323. package/es/slider/slider.less +0 -147
  324. package/es/slider/style/less.js +0 -4
  325. package/es/snackbar/SnackbarSfc.less +0 -0
  326. package/es/snackbar/coreSfc.less +0 -0
  327. package/es/snackbar/snackbar.less +0 -129
  328. package/es/snackbar/style/less.js +0 -8
  329. package/es/space/space.less +0 -6
  330. package/es/space/style/less.js +0 -2
  331. package/es/step/StepSfc.less +0 -0
  332. package/es/step/step.less +0 -145
  333. package/es/step/style/less.js +0 -4
  334. package/es/steps/StepsSfc.less +0 -1
  335. package/es/steps/style/less.js +0 -2
  336. package/es/sticky/StickySfc.less +0 -0
  337. package/es/sticky/sticky.less +0 -8
  338. package/es/sticky/style/less.js +0 -3
  339. package/es/style-provider/StyleProviderSfc.less +0 -0
  340. package/es/style-provider/style/less.js +0 -2
  341. package/es/styles/common.less +0 -73
  342. package/es/styles/elevation.less +0 -128
  343. package/es/styles/style/less.js +0 -0
  344. package/es/styles/var.css +0 -0
  345. package/es/styles/var.less +0 -30
  346. package/es/swipe/SwipeSfc.less +0 -0
  347. package/es/swipe/style/less.js +0 -3
  348. package/es/swipe/swipe.less +0 -60
  349. package/es/swipe-item/SwipeItemSfc.less +0 -0
  350. package/es/swipe-item/style/less.js +0 -3
  351. package/es/swipe-item/swipeItem.less +0 -5
  352. package/es/switch/SwitchSfc.less +0 -0
  353. package/es/switch/style/less.js +0 -7
  354. package/es/switch/switch.less +0 -94
  355. package/es/tab/TabSfc.less +0 -0
  356. package/es/tab/style/less.js +0 -4
  357. package/es/tab/tab.less +0 -46
  358. package/es/tab-item/TabItemSfc.less +0 -0
  359. package/es/tab-item/style/less.js +0 -4
  360. package/es/tab-item/tabItem.less +0 -6
  361. package/es/table/TableSfc.less +0 -0
  362. package/es/table/style/less.js +0 -4
  363. package/es/table/table.less +0 -110
  364. package/es/tabs/TabsSfc.less +0 -0
  365. package/es/tabs/style/less.js +0 -5
  366. package/es/tabs/tabs.less +0 -99
  367. package/es/tabs-items/TabsItemsSfc.less +0 -0
  368. package/es/tabs-items/style/less.js +0 -3
  369. package/es/themes/style/less.js +0 -0
  370. package/es/time-picker/TimePickerSfc.less +0 -0
  371. package/es/time-picker/style/less.js +0 -4
  372. package/es/time-picker/timePicker.less +0 -237
  373. package/es/uploader/UploaderSfc.less +0 -0
  374. package/es/uploader/style/less.js +0 -8
  375. package/es/uploader/uploader.less +0 -216
  376. package/es/utils/style/less.js +0 -0
  377. package/lib/action-sheet/ActionSheetSfc.less +0 -0
  378. package/lib/action-sheet/actionSheet.less +0 -68
  379. package/lib/action-sheet/style/less.js +0 -6
  380. package/lib/app-bar/AppBarSfc.less +0 -0
  381. package/lib/app-bar/appBar.less +0 -57
  382. package/lib/app-bar/style/less.js +0 -4
  383. package/lib/back-top/BackTopSfc.less +0 -0
  384. package/lib/back-top/backTop.less +0 -27
  385. package/lib/back-top/style/less.js +0 -5
  386. package/lib/badge/BadgeSfc.less +0 -0
  387. package/lib/badge/badge.less +0 -119
  388. package/lib/badge/style/less.js +0 -4
  389. package/lib/bottom-navigation/BottomNavigationSfc.less +0 -0
  390. package/lib/bottom-navigation/bottomNavigation.less +0 -56
  391. package/lib/bottom-navigation/style/less.js +0 -4
  392. package/lib/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
  393. package/lib/bottom-navigation-item/bottomNavigationItem.less +0 -78
  394. package/lib/bottom-navigation-item/style/less.js +0 -6
  395. package/lib/button/ButtonSfc.less +0 -0
  396. package/lib/button/button.less +0 -183
  397. package/lib/button/style/less.js +0 -6
  398. package/lib/card/CardSfc.less +0 -0
  399. package/lib/card/card.less +0 -189
  400. package/lib/card/style/less.js +0 -5
  401. package/lib/cell/CellSfc.less +0 -0
  402. package/lib/cell/cell.less +0 -78
  403. package/lib/cell/style/less.js +0 -4
  404. package/lib/checkbox/CheckboxSfc.less +0 -0
  405. package/lib/checkbox/checkbox.less +0 -78
  406. package/lib/checkbox/style/less.js +0 -6
  407. package/lib/checkbox-group/CheckboxGroupSfc.less +0 -0
  408. package/lib/checkbox-group/checkboxGroup.less +0 -12
  409. package/lib/checkbox-group/style/less.js +0 -4
  410. package/lib/chip/ChipSfc.less +0 -0
  411. package/lib/chip/chip.less +0 -182
  412. package/lib/chip/style/less.js +0 -4
  413. package/lib/col/ColSfc.less +0 -0
  414. package/lib/col/col.less +0 -74
  415. package/lib/col/style/less.js +0 -3
  416. package/lib/collapse/CollapseSfc.less +0 -1
  417. package/lib/collapse/style/less.js +0 -3
  418. package/lib/collapse-item/CollapseItemSfc.less +0 -0
  419. package/lib/collapse-item/collapseItem.less +0 -105
  420. package/lib/collapse-item/style/less.js +0 -4
  421. package/lib/context/style/less.js +0 -0
  422. package/lib/countdown/CountdownSfc.less +0 -0
  423. package/lib/countdown/style/less.js +0 -2
  424. package/lib/counter/CounterSfc.less +0 -0
  425. package/lib/counter/counter.less +0 -89
  426. package/lib/counter/style/less.js +0 -7
  427. package/lib/date-picker/DatePickerSfc.less +0 -0
  428. package/lib/date-picker/date-picker.less +0 -354
  429. package/lib/date-picker/style/less.js +0 -7
  430. package/lib/dialog/DialogSfc.less +0 -0
  431. package/lib/dialog/dialog.less +0 -77
  432. package/lib/dialog/style/less.js +0 -5
  433. package/lib/divider/DividerSfc.less +0 -0
  434. package/lib/divider/divider.less +0 -78
  435. package/lib/divider/style/less.js +0 -3
  436. package/lib/form/FormSfc.less +0 -0
  437. package/lib/form/style/less.js +0 -2
  438. package/lib/form-details/FormDetailsSfc.less +0 -0
  439. package/lib/form-details/formDetails.less +0 -48
  440. package/lib/form-details/style/less.js +0 -3
  441. package/lib/icon/IconSfc.less +0 -0
  442. package/lib/icon/icon.less +0 -26
  443. package/lib/icon/style/less.js +0 -3
  444. package/lib/image/ImageSfc.less +0 -0
  445. package/lib/image/image.less +0 -9
  446. package/lib/image/style/less.js +0 -4
  447. package/lib/image-preview/ImagePreviewSfc.less +0 -0
  448. package/lib/image-preview/imagePreview.less +0 -76
  449. package/lib/image-preview/style/less.js +0 -7
  450. package/lib/index-anchor/IndexAnchorSfc.less +0 -1
  451. package/lib/index-anchor/style/less.js +0 -3
  452. package/lib/index-bar/IndexBarSfc.less +0 -0
  453. package/lib/index-bar/indexBar.less +0 -43
  454. package/lib/index-bar/style/less.js +0 -3
  455. package/lib/input/InputSfc.less +0 -0
  456. package/lib/input/input.less +0 -187
  457. package/lib/input/style/less.js +0 -5
  458. package/lib/lazy/style/less.js +0 -0
  459. package/lib/less.js +0 -64
  460. package/lib/list/ListSfc.less +0 -0
  461. package/lib/list/list.less +0 -63
  462. package/lib/list/style/less.js +0 -5
  463. package/lib/loading/LoadingSfc.less +0 -0
  464. package/lib/loading/loading.less +0 -500
  465. package/lib/loading/style/less.js +0 -3
  466. package/lib/locale/style/less.js +0 -0
  467. package/lib/menu/menu.less +0 -21
  468. package/lib/menu/style/less.js +0 -3
  469. package/lib/option/OptionSfc.less +0 -0
  470. package/lib/option/option.less +0 -37
  471. package/lib/option/style/less.js +0 -6
  472. package/lib/pagination/PaginationSfc.less +0 -0
  473. package/lib/pagination/pagination.less +0 -188
  474. package/lib/pagination/style/less.js +0 -8
  475. package/lib/picker/PickerSfc.less +0 -0
  476. package/lib/picker/picker.less +0 -106
  477. package/lib/picker/style/less.js +0 -5
  478. package/lib/popup/popup.less +0 -125
  479. package/lib/popup/style/less.js +0 -2
  480. package/lib/progress/ProgressSfc.less +0 -0
  481. package/lib/progress/progress.less +0 -101
  482. package/lib/progress/style/less.js +0 -3
  483. package/lib/pull-refresh/PullRefreshSfc.less +0 -0
  484. package/lib/pull-refresh/pullRefresh.less +0 -56
  485. package/lib/pull-refresh/style/less.js +0 -5
  486. package/lib/radio/RadioSfc.less +0 -0
  487. package/lib/radio/radio.less +0 -78
  488. package/lib/radio/style/less.js +0 -6
  489. package/lib/radio-group/RadioGroupSfc.less +0 -0
  490. package/lib/radio-group/radioGroup.less +0 -12
  491. package/lib/radio-group/style/less.js +0 -4
  492. package/lib/rate/RateSfc.less +0 -0
  493. package/lib/rate/rate.less +0 -48
  494. package/lib/rate/style/less.js +0 -6
  495. package/lib/ripple/ripple.less +0 -20
  496. package/lib/ripple/style/less.js +0 -2
  497. package/lib/row/RowSfc.less +0 -0
  498. package/lib/row/row.less +0 -4
  499. package/lib/row/style/less.js +0 -3
  500. package/lib/select/SelectSfc.less +0 -0
  501. package/lib/select/select.less +0 -184
  502. package/lib/select/style/less.js +0 -7
  503. package/lib/skeleton/SkeletonSfc.less +0 -0
  504. package/lib/skeleton/skeleton.less +0 -138
  505. package/lib/skeleton/style/less.js +0 -3
  506. package/lib/slider/SliderSfc.less +0 -0
  507. package/lib/slider/slider.less +0 -147
  508. package/lib/slider/style/less.js +0 -4
  509. package/lib/snackbar/SnackbarSfc.less +0 -0
  510. package/lib/snackbar/coreSfc.less +0 -0
  511. package/lib/snackbar/snackbar.less +0 -129
  512. package/lib/snackbar/style/less.js +0 -8
  513. package/lib/space/space.less +0 -6
  514. package/lib/space/style/less.js +0 -2
  515. package/lib/step/StepSfc.less +0 -0
  516. package/lib/step/step.less +0 -145
  517. package/lib/step/style/less.js +0 -4
  518. package/lib/steps/StepsSfc.less +0 -1
  519. package/lib/steps/style/less.js +0 -2
  520. package/lib/sticky/StickySfc.less +0 -0
  521. package/lib/sticky/sticky.less +0 -8
  522. package/lib/sticky/style/less.js +0 -3
  523. package/lib/style-provider/StyleProviderSfc.less +0 -0
  524. package/lib/style-provider/style/less.js +0 -2
  525. package/lib/styles/common.less +0 -73
  526. package/lib/styles/elevation.less +0 -128
  527. package/lib/styles/style/less.js +0 -0
  528. package/lib/styles/var.css +0 -0
  529. package/lib/styles/var.less +0 -30
  530. package/lib/swipe/SwipeSfc.less +0 -0
  531. package/lib/swipe/style/less.js +0 -3
  532. package/lib/swipe/swipe.less +0 -60
  533. package/lib/swipe-item/SwipeItemSfc.less +0 -0
  534. package/lib/swipe-item/style/less.js +0 -3
  535. package/lib/swipe-item/swipeItem.less +0 -5
  536. package/lib/switch/SwitchSfc.less +0 -0
  537. package/lib/switch/style/less.js +0 -7
  538. package/lib/switch/switch.less +0 -94
  539. package/lib/tab/TabSfc.less +0 -0
  540. package/lib/tab/style/less.js +0 -4
  541. package/lib/tab/tab.less +0 -46
  542. package/lib/tab-item/TabItemSfc.less +0 -0
  543. package/lib/tab-item/style/less.js +0 -4
  544. package/lib/tab-item/tabItem.less +0 -6
  545. package/lib/table/TableSfc.less +0 -0
  546. package/lib/table/style/less.js +0 -4
  547. package/lib/table/table.less +0 -110
  548. package/lib/tabs/TabsSfc.less +0 -0
  549. package/lib/tabs/style/less.js +0 -5
  550. package/lib/tabs/tabs.less +0 -99
  551. package/lib/tabs-items/TabsItemsSfc.less +0 -0
  552. package/lib/tabs-items/style/less.js +0 -3
  553. package/lib/themes/style/less.js +0 -0
  554. package/lib/time-picker/TimePickerSfc.less +0 -0
  555. package/lib/time-picker/style/less.js +0 -4
  556. package/lib/time-picker/timePicker.less +0 -237
  557. package/lib/uploader/UploaderSfc.less +0 -0
  558. package/lib/uploader/style/less.js +0 -8
  559. package/lib/uploader/uploader.less +0 -216
  560. package/lib/utils/style/less.js +0 -0
  561. package/types/global.d.ts +0 -68
package/types/index.d.ts CHANGED
@@ -66,3 +66,70 @@ export * from './timePicker'
66
66
  export * from './uploader'
67
67
  export * from './varComponent'
68
68
  export * from './varDirective'
69
+
70
+ declare module 'vue' {
71
+ export interface GlobalComponents {
72
+ VarActionSheet: typeof import('@varlet/ui')['_ActionSheetComponent']
73
+ VarAppBar: typeof import('@varlet/ui')['_AppBarComponent']
74
+ VarBackTop: typeof import('@varlet/ui')['_BackTopComponent']
75
+ VarBadge: typeof import('@varlet/ui')['_BadgeComponent']
76
+ VarBottomNavigation: typeof import('@varlet/ui')['_BottomNavigationComponent']
77
+ VarBottomNavigationItem: typeof import('@varlet/ui')['_BottomNavigationItemComponent']
78
+ VarButton: typeof import('@varlet/ui')['_ButtonComponent']
79
+ VarCard: typeof import('@varlet/ui')['_CardComponent']
80
+ VarCell: typeof import('@varlet/ui')['_CellComponent']
81
+ VarCheckbox: typeof import('@varlet/ui')['_CheckboxComponent']
82
+ VarCheckboxGroup: typeof import('@varlet/ui')['_CheckboxGroupComponent']
83
+ VarChip: typeof import('@varlet/ui')['_ChipComponent']
84
+ VarCol: typeof import('@varlet/ui')['_ColComponent']
85
+ VarCollapse: typeof import('@varlet/ui')['_CollapseComponent']
86
+ VarCollapseItem: typeof import('@varlet/ui')['_CollapseItemComponent']
87
+ VarCountdown: typeof import('@varlet/ui')['_CountdownComponent']
88
+ VarCounter: typeof import('@varlet/ui')['_CounterComponent']
89
+ VarDatePicker: typeof import('@varlet/ui')['_DatePickerComponent']
90
+ VarDialog: typeof import('@varlet/ui')['_DialogComponent']
91
+ VarDivider: typeof import('@varlet/ui')['_DividerComponent']
92
+ VarForm: typeof import('@varlet/ui')['_FormComponent']
93
+ VarIcon: typeof import('@varlet/ui')['_IconComponent']
94
+ VarImage: typeof import('@varlet/ui')['_ImageComponent']
95
+ VarImagePreview: typeof import('@varlet/ui')['_ImagePreviewComponent']
96
+ VarIndexAnchor: typeof import('@varlet/ui')['_IndexAnchorComponent']
97
+ VarIndexBar: typeof import('@varlet/ui')['_IndexBarComponent']
98
+ VarInput: typeof import('@varlet/ui')['_InputComponent']
99
+ VarLazy: typeof import('@varlet/ui')['_LazyComponent']
100
+ VarList: typeof import('@varlet/ui')['_ListComponent']
101
+ VarLoading: typeof import('@varlet/ui')['_LoadingComponent']
102
+ VarLocale: typeof import('@varlet/ui')['_LocaleComponent']
103
+ VarMenu: typeof import('@varlet/ui')['_MenuComponent']
104
+ VarOption: typeof import('@varlet/ui')['_OptionComponent']
105
+ VarPagination: typeof import('@varlet/ui')['_PaginationComponent']
106
+ VarPicker: typeof import('@varlet/ui')['_PickerComponent']
107
+ VarPopup: typeof import('@varlet/ui')['_PopupComponent']
108
+ VarProgress: typeof import('@varlet/ui')['_ProgressComponent']
109
+ VarPullRefresh: typeof import('@varlet/ui')['_PullRefreshComponent']
110
+ VarRadio: typeof import('@varlet/ui')['_RadioComponent']
111
+ VarRadioGroup: typeof import('@varlet/ui')['_RadioGroupComponent']
112
+ VarRate: typeof import('@varlet/ui')['_RateComponent']
113
+ VarRipple: typeof import('@varlet/ui')['_RippleComponent']
114
+ VarRow: typeof import('@varlet/ui')['_RowComponent']
115
+ VarSelect: typeof import('@varlet/ui')['_SelectComponent']
116
+ VarSkeleton: typeof import('@varlet/ui')['_SkeletonComponent']
117
+ VarSlider: typeof import('@varlet/ui')['_SliderComponent']
118
+ VarSnackbar: typeof import('@varlet/ui')['_SnackbarComponent']
119
+ VarSpace: typeof import('@varlet/ui')['_SpaceComponent']
120
+ VarStep: typeof import('@varlet/ui')['_StepComponent']
121
+ VarSteps: typeof import('@varlet/ui')['_StepsComponent']
122
+ VarSticky: typeof import('@varlet/ui')['_StickyComponent']
123
+ VarStyleProvider: typeof import('@varlet/ui')['_StyleProviderComponent']
124
+ VarSwipe: typeof import('@varlet/ui')['_SwipeComponent']
125
+ VarSwipeItem: typeof import('@varlet/ui')['_SwipeItemComponent']
126
+ VarSwitch: typeof import('@varlet/ui')['_SwitchComponent']
127
+ VarTab: typeof import('@varlet/ui')['_TabComponent']
128
+ VarTabItem: typeof import('@varlet/ui')['_TabItemComponent']
129
+ VarTable: typeof import('@varlet/ui')['_TableComponent']
130
+ VarTabs: typeof import('@varlet/ui')['_TabsComponent']
131
+ VarTabsItems: typeof import('@varlet/ui')['_TabsItemsComponent']
132
+ VarTimePicker: typeof import('@varlet/ui')['_TimePickerComponent']
133
+ VarUploader: typeof import('@varlet/ui')['_UploaderComponent']
134
+ }
135
+ }
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface IndexAnchorProps extends BasicAttributes {
5
4
  index: string | number
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface IndexBarProps extends BasicAttributes {
5
4
  sticky?: boolean
package/types/input.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
- export type InputValidateTriggers = 'onFocus' | 'onBlur' | 'onChange' | 'onClick' | 'onClear' | 'onInput'
3
+ export type InputValidateTrigger = 'onFocus' | 'onBlur' | 'onChange' | 'onClick' | 'onClear' | 'onInput'
4
+
5
+ export type InputType = 'text' | 'password' | 'number' | 'tel' | 'email'
5
6
 
6
7
  export interface InputProps extends BasicAttributes {
7
8
  modelValue?: string
8
- type?: 'text' | 'password' | 'number' | 'tel' | 'email'
9
+ type?: InputType
9
10
  textarea?: boolean
10
11
  rows?: string | number
11
12
  placeholder?: string
@@ -19,7 +20,7 @@ export interface InputProps extends BasicAttributes {
19
20
  clearable?: boolean
20
21
  resize?: boolean
21
22
  autofocus?: boolean
22
- validateTrigger?: InputValidateTriggers[]
23
+ validateTrigger?: InputValidateTrigger[]
23
24
  rules?: Array<(v: string) => any>
24
25
  onFocus?: (e: Event) => void
25
26
  onBlur?: (e: Event) => void
package/types/list.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface ListProps extends BasicAttributes {
5
4
  loading?: boolean
@@ -1,10 +1,11 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes, Size as LoadingSize } from './varComponent'
2
+
3
+ export type LoadingType = 'circle' | 'wave' | 'cube' | 'rect' | 'disappear'
3
4
 
4
5
  export interface LoadingProps extends BasicAttributes {
5
- type?: 'circle' | 'wave' | 'cube' | 'rect' | 'disappear'
6
+ type?: LoadingType
6
7
  radius?: string | number
7
- size?: 'normal' | 'mini' | 'small' | 'large'
8
+ size?: LoadingSize
8
9
  color?: string
9
10
  description?: string
10
11
  show?: boolean
package/types/locale.d.ts CHANGED
@@ -30,11 +30,14 @@ export type Pack = {
30
30
  }
31
31
 
32
32
  interface Locale {
33
+ zhCN: Pack
34
+ enUS: Pack
33
35
  packs: Record<string, Partial<Pack>>
34
36
  pack: Ref<Partial<Pack>>
35
37
  add(lang: string, pack: Partial<Pack>): void
36
38
  use(lang: string): void
37
39
  merge(lang: string, pack: Partial<Pack>): void
40
+
38
41
  useLocale<T = Pack>(): {
39
42
  packs: Record<string, Partial<T>>
40
43
  pack: Ref<Partial<T>>
package/types/menu.d.ts CHANGED
@@ -1,11 +1,31 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
2
+ import { Placement as PopperPlacement } from '@popperjs/core/lib/enums'
3
+ import { TeleportProps } from 'vue'
4
+
5
+ type NeededPopperPlacement = Exclude<PopperPlacement, 'auto' | 'auto-start' | 'auto-end'>
6
+
7
+ export type MenuPlacement =
8
+ | NeededPopperPlacement
9
+ | 'cover-top'
10
+ | 'cover-top-start'
11
+ | 'cover-top-end'
12
+ | 'cover-bottom'
13
+ | 'cover-bottom-start'
14
+ | 'cover-bottom-end'
15
+ | 'cover-left'
16
+ | 'cover-right'
17
+
18
+ export type MenuTrigger = 'click' | 'hover'
3
19
 
4
20
  export interface MenuProps extends BasicAttributes {
5
21
  show?: boolean
6
- alignment?: 'top' | 'bottom'
22
+ disabled?: boolean
23
+ trigger?: MenuTrigger
24
+ placement?: MenuPlacement
7
25
  offsetX?: string | number
8
26
  offsetY?: string | number
27
+ teleport?: TeleportProps['to']
28
+ defaultStyle?: boolean
9
29
  onOpen?: () => void
10
30
  onOpened?: () => void
11
31
  onClose?: () => void
@@ -16,6 +36,10 @@ export interface MenuProps extends BasicAttributes {
16
36
  export class Menu extends VarComponent {
17
37
  $props: MenuProps
18
38
 
39
+ open(): void
40
+
41
+ close(): void
42
+
19
43
  resize(): void
20
44
  }
21
45
 
package/types/option.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface OptionProps extends BasicAttributes {
5
4
  label?: any
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  type Range = [number, number]
5
4
 
package/types/picker.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import type { App } from 'vue'
2
- import { VarComponent } from './varComponent'
3
- import type { BasicAttributes } from './varComponent'
2
+ import { VarComponent, BasicAttributes } from './varComponent'
4
3
 
5
4
  export interface NormalColumn extends BasicAttributes {
6
5
  texts: Texts
package/types/popup.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
  import type { TeleportProps } from 'vue'
4
3
 
4
+ export type PopupPosition = 'top' | 'bottom' | 'right' | 'left' | 'center'
5
+
5
6
  export interface PopupProps extends BasicAttributes {
6
7
  show?: boolean
7
- position?: 'top' | 'bottom' | 'right' | 'left' | 'center'
8
+ position?: PopupPosition
8
9
  overlay?: boolean
9
10
  overlayClass?: string
10
11
  overlayStyle?: Record<string, any>
@@ -1,8 +1,9 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
2
+
3
+ export type ProgressMode = 'linear' | 'circle'
3
4
 
4
5
  export interface ProgressProps extends BasicAttributes {
5
- mode?: 'linear' | 'circle'
6
+ mode?: ProgressMode
6
7
  lineWidth?: string | number
7
8
  color?: string
8
9
  trackColor?: string
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface PullRefreshProps extends BasicAttributes {
5
4
  modelValue?: boolean
package/types/radio.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
- export type RadioValidateTriggers = 'onChange'
3
+ export type RadioValidateTrigger = 'onChange'
5
4
 
6
5
  export interface RadioProps extends BasicAttributes {
7
6
  modelValue?: any
@@ -13,7 +12,7 @@ export interface RadioProps extends BasicAttributes {
13
12
  readonly?: boolean
14
13
  iconSize?: string | number
15
14
  ripple?: boolean
16
- validateTrigger?: Array<RadioValidateTriggers>
15
+ validateTrigger?: Array<RadioValidateTrigger>
17
16
  rules?: Array<(value: any) => any>
18
17
  onClick?: (e: Event) => void
19
18
  onChange?: (value: any) => void
@@ -1,12 +1,11 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes, Direction as RadioGroupDirection } from './varComponent'
3
2
 
4
- export type RadioGroupValidateTriggers = 'onChange'
3
+ export type RadioGroupValidateTrigger = 'onChange'
5
4
 
6
5
  export interface RadioGroupProps extends BasicAttributes {
7
6
  modelValue?: any
8
- direction?: 'horizontal' | 'vertical'
9
- validateTrigger?: Array<RadioGroupValidateTriggers>
7
+ direction?: RadioGroupDirection
8
+ validateTrigger?: Array<RadioGroupValidateTrigger>
10
9
  rules?: Array<(value: any) => any>
11
10
  onChange?: (value: any) => void
12
11
  'onUpdate:modelValue'?: (value: any) => void
package/types/rate.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface RateProps extends BasicAttributes {
5
4
  modelValue?: string | number
package/types/row.d.ts CHANGED
@@ -1,10 +1,13 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
2
+
3
+ export type RowJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'
4
+
5
+ export type RowAlign = 'flex-start' | 'center' | 'flex-end'
3
6
 
4
7
  export interface RowProps extends BasicAttributes {
5
8
  gutter?: string | number
6
- justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'
7
- align?: 'flex-start' | 'center' | 'flex-end'
9
+ justify?: RowJustify
10
+ align?: RowAlign
8
11
  onClick?: (e: Event) => void
9
12
  }
10
13
 
package/types/select.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
- export type SelectValidateTriggers = 'onFocus' | 'onBlur' | 'onChange' | 'onClick' | 'onClear' | 'onClose'
3
+ export type SelectValidateTrigger = 'onFocus' | 'onBlur' | 'onChange' | 'onClick' | 'onClear' | 'onClose'
4
+
5
+ export type SelectTextAlign = 'left' | 'right' | 'center'
5
6
 
6
7
  export interface SelectProps extends BasicAttributes {
7
8
  modelValue?: any
@@ -18,8 +19,8 @@ export interface SelectProps extends BasicAttributes {
18
19
  readonly?: boolean
19
20
  clearable?: boolean
20
21
  separator?: string
21
- textAlign?: 'left' | 'right' | 'center'
22
- validateTrigger?: Array<SelectValidateTriggers>
22
+ textAlign?: SelectTextAlign
23
+ validateTrigger?: Array<SelectValidateTrigger>
23
24
  rules?: Array<(v: any) => any>
24
25
  onFocus?: (e: Event) => void
25
26
  onBlur?: (e: Event) => void
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface SkeletonProps extends BasicAttributes {
5
4
  loading?: boolean
package/types/slider.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
2
+
3
+ export type SliderLabelVisible = 'always' | 'normal' | 'never'
3
4
 
4
5
  export interface SliderProps extends BasicAttributes {
5
6
  modelValue?: number | Array<number>
6
7
  step?: number | string
7
8
  range?: boolean
8
- labelVisible?: 'always' | 'normal' | 'never'
9
+ labelVisible?: SliderLabelVisible
9
10
  activeColor?: string
10
11
  trackColor?: string
11
12
  thumbColor?: string
@@ -1,17 +1,19 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
3
- import type { App, TeleportProps } from 'vue'
1
+ import { VarComponent, BasicAttributes, Size as LoadingSize } from './varComponent'
2
+ import { LoadingType } from './loading'
3
+ import { App, TeleportProps } from 'vue'
4
4
 
5
- export type LoadingType = 'circle' | 'wave' | 'cube' | 'rect' | 'disappear'
5
+ export type SnackbarPosition = 'top' | 'center' | 'bottom'
6
6
 
7
- export type LoadingSize = 'normal' | 'mini' | 'small' | 'large'
7
+ export type SnackbarType = 'success' | 'warning' | 'info' | 'error' | 'loading'
8
8
 
9
9
  export interface SnackbarProps extends BasicAttributes {
10
10
  type?: SnackbarType
11
11
  content?: string
12
- position?: 'top' | 'center' | 'bottom'
12
+ position?: SnackbarPosition
13
13
  loadingType?: LoadingType
14
14
  loadingSize?: LoadingSize
15
+ loadingColor?: string
16
+ loadingRadius?: string | number
15
17
  teleport?: TeleportProps['to']
16
18
  lockScroll?: boolean
17
19
  contentClass?: string
@@ -30,8 +32,6 @@ export class SnackbarComponent extends VarComponent {
30
32
  $props: SnackbarProps
31
33
  }
32
34
 
33
- export type SnackbarType = 'success' | 'warning' | 'info' | 'error' | 'loading'
34
-
35
35
  export interface SnackbarHandel {
36
36
  clear: () => void
37
37
  }
@@ -39,7 +39,7 @@ export interface SnackbarHandel {
39
39
  export interface SnackbarOptions {
40
40
  type?: SnackbarType
41
41
  content?: string
42
- position?: 'top' | 'center' | 'bottom'
42
+ position?: SnackbarPosition
43
43
  loadingType?: string
44
44
  loadingSize?: string
45
45
  teleport?: string
package/types/space.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export type SpaceAlign = 'stretch' | 'center' | 'start' | 'end' | 'baseline' | 'initial' | 'inherit'
5
4
 
package/types/step.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface StepProps extends BasicAttributes {
5
4
  activeIcon?: string
package/types/steps.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes, Direction as StepsDirection } from './varComponent'
3
2
 
4
3
  export interface StepsProps extends BasicAttributes {
5
4
  active?: string | number
6
- direction?: 'horizontal' | 'vertical'
5
+ direction?: StepsDirection
7
6
  activeColor?: string
8
7
  inactiveColor?: string
9
8
  onClickStep?: (index: number) => void
package/types/sticky.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface StickyProps extends BasicAttributes {
5
4
  offsetTop?: string | number
@@ -1,11 +1,11 @@
1
1
  import type { App } from 'vue'
2
- import { VarComponent } from './varComponent'
3
- import type { BasicAttributes } from './varComponent'
2
+ import { VarComponent, BasicAttributes } from './varComponent'
4
3
 
5
4
  export type StyleVars = Record<string, string>
6
5
 
7
6
  export interface StyleProviderProps extends BasicAttributes {
8
7
  styleVars?: StyleVars
8
+ tag?: string
9
9
  }
10
10
 
11
11
  export class StyleProviderComponent extends VarComponent {
package/types/swipe.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface SwipeProps extends BasicAttributes {
5
4
  loop?: boolean
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface SwipeItemProps extends BasicAttributes {}
5
4
 
package/types/switch.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface SwitchProps extends BasicAttributes {
5
4
  modelValue?: any
package/types/tab.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface TabProps extends BasicAttributes {
5
4
  name?: string | number
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface TabItemProps extends BasicAttributes {
5
4
  name?: string | number
package/types/table.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export interface TableProps extends BasicAttributes {
5
4
  fullWidth?: string | number
package/types/tabs.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes, Direction as TabsDirection } from './varComponent'
3
2
 
4
3
  export interface TabsProps extends BasicAttributes {
5
4
  active?: string | number
6
- layoutDirection?: 'horizontal' | 'vertical'
7
- itemDirection?: 'horizontal' | 'vertical'
5
+ layoutDirection?: TabsDirection
6
+ itemDirection?: TabsDirection
8
7
  fixedBottom?: boolean
9
8
  activeColor?: string
10
9
  inactiveColor?: string
@@ -1,5 +1,5 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
2
+ import type { Swipe } from './swipe'
3
3
 
4
4
  export interface TabsItemsProps extends BasicAttributes {
5
5
  active?: string | number
@@ -8,6 +8,8 @@ export interface TabsItemsProps extends BasicAttributes {
8
8
 
9
9
  export class TabsItems extends VarComponent {
10
10
  $props: TabsItemsProps
11
+
12
+ getSwipe(): Swipe
11
13
  }
12
14
 
13
15
  export class _TabsItemsComponent extends TabsItems {}
@@ -1,5 +1,4 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
3
2
 
4
3
  export type AllowedTime = {
5
4
  hours?: (hour: number) => boolean
@@ -7,13 +6,15 @@ export type AllowedTime = {
7
6
  seconds?: (second: number) => boolean
8
7
  }
9
8
 
9
+ export type TimePickerFormat = 'ampm' | '24hr'
10
+
10
11
  export interface TimePickerProps extends BasicAttributes {
11
12
  modelValue?: string
12
- shadow?: boolean
13
+ elevation?: boolean
13
14
  color?: string
14
15
  headerColor?: string
15
16
  allowedTime?: AllowedTime
16
- format?: 'ampm' | '24hr'
17
+ format?: TimePickerFormat
17
18
  min?: string
18
19
  max?: string
19
20
  useSeconds?: boolean
@@ -1,16 +1,19 @@
1
- import { VarComponent } from './varComponent'
2
- import type { BasicAttributes } from './varComponent'
1
+ import { VarComponent, BasicAttributes } from './varComponent'
2
+
3
+ export type VarFileFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
4
+
5
+ export type VarFileState = 'loading' | 'success' | 'error'
3
6
 
4
7
  export interface VarFile extends BasicAttributes {
5
8
  file?: File
6
9
  name?: string
7
10
  url?: string
8
11
  cover?: string
9
- fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
10
- state?: 'loading' | 'success' | 'error'
12
+ fit?: VarFileFit
13
+ state?: VarFileState
11
14
  }
12
15
 
13
- export type UploaderValidateTriggers = 'onChange' | 'onRemove'
16
+ export type UploaderValidateTrigger = 'onChange' | 'onRemove'
14
17
 
15
18
  export type UploaderVarFileUtils = {
16
19
  getLoading(): VarFile[]
@@ -18,10 +21,12 @@ export type UploaderVarFileUtils = {
18
21
  getError(): VarFile[]
19
22
  }
20
23
 
24
+ export type UploaderCapture = boolean | 'user' | 'environment'
25
+
21
26
  interface UploaderProps {
22
27
  modelValue?: VarFile[]
23
28
  accept?: string
24
- capture?: boolean | 'user' | 'environment'
29
+ capture?: UploaderCapture
25
30
  multiple?: boolean
26
31
  readonly?: boolean
27
32
  disabled?: boolean
@@ -31,7 +36,7 @@ interface UploaderProps {
31
36
  previewed?: boolean
32
37
  hideList?: boolean
33
38
  ripple?: boolean
34
- validateTrigger?: Array<UploaderValidateTriggers>
39
+ validateTrigger?: Array<UploaderValidateTrigger>
35
40
  rules?: Array<(v: VarFile[], u: UploaderVarFileUtils) => any>
36
41
  onBeforeRead?: (file: VarFile) => Promise<boolean> | boolean
37
42
  onAfterRead?: (file: VarFile) => any