zartui 3.1.9 → 3.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (470) hide show
  1. package/README.md +23 -23
  2. package/es/action-sheet/index.css +1 -1
  3. package/es/action-sheet/index.d.ts +1 -0
  4. package/es/action-sheet/types.d.ts +14 -0
  5. package/es/action-sheet/types.mjs +0 -0
  6. package/es/avatar/index.css +1 -1
  7. package/es/avatar/index.d.ts +1 -1
  8. package/es/avatar/types.d.ts +10 -0
  9. package/es/badge/index.css +1 -1
  10. package/es/badge/index.d.ts +1 -0
  11. package/es/badge/types.d.ts +15 -0
  12. package/es/badge/types.mjs +0 -0
  13. package/es/button/index.css +1 -1
  14. package/es/button/index.d.ts +1 -1
  15. package/es/button/types.d.ts +35 -0
  16. package/es/calendar/CalendarDay.mjs +8 -1
  17. package/es/calendar/CalendarHeader.mjs +2 -2
  18. package/es/calendar/index.css +1 -1
  19. package/es/calendar/index.d.ts +1 -1
  20. package/es/calendar/types.d.ts +25 -0
  21. package/es/cascader/index.css +1 -1
  22. package/es/cascader/index.d.ts +1 -1
  23. package/es/cascader/types.d.ts +21 -0
  24. package/es/cell/index.css +1 -1
  25. package/es/cell/index.d.ts +1 -1
  26. package/es/cell/types.d.ts +24 -0
  27. package/es/cell-group/index.css +1 -1
  28. package/es/checkbox/Checker.mjs +6 -0
  29. package/es/checkbox/index.css +1 -1
  30. package/es/checkbox/index.d.ts +1 -1
  31. package/es/checkbox/types.d.ts +19 -0
  32. package/es/checkbox-group/index.css +1 -1
  33. package/es/collapse-item/index.css +1 -1
  34. package/es/collapse-item/index.d.ts +1 -1
  35. package/es/collapse-item/types.d.ts +8 -0
  36. package/es/config-provider/index.d.ts +2 -1
  37. package/es/config-provider/types.d.ts +138 -0
  38. package/es/config-provider/types.mjs +0 -0
  39. package/es/date-time-picker/DateTimePicker.d.ts +2 -2
  40. package/es/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
  41. package/es/date-time-picker/index.css +1 -1
  42. package/es/date-time-picker/index.d.ts +2 -2
  43. package/es/date-time-picker/utils.d.ts +1 -1
  44. package/es/dialog/Dialog.d.ts +1 -1
  45. package/es/dialog/index.css +1 -1
  46. package/es/dialog/index.d.ts +2 -2
  47. package/es/dialog/types.d.ts +18 -0
  48. package/es/divider/index.css +1 -1
  49. package/es/divider/index.d.ts +1 -0
  50. package/es/divider/types.d.ts +8 -0
  51. package/es/divider/types.mjs +0 -0
  52. package/es/dropdown-item/DropdownItem.mjs +1 -0
  53. package/es/dropdown-item/index.css +1 -1
  54. package/es/dropdown-item/index.d.ts +1 -1
  55. package/es/dropdown-item/types.d.ts +3 -0
  56. package/es/dropdown-menu/index.css +1 -1
  57. package/es/dropdown-menu/index.d.ts +1 -1
  58. package/es/dropdown-menu/types.d.ts +12 -0
  59. package/es/empty/Empty.mjs +5 -3
  60. package/es/empty/Images.d.ts +20 -9
  61. package/es/empty/Images.mjs +755 -563
  62. package/es/empty/index.css +1 -1
  63. package/es/empty/index.d.ts +1 -0
  64. package/es/empty/types.d.ts +8 -0
  65. package/es/empty/types.mjs +0 -0
  66. package/es/field/index.css +1 -1
  67. package/es/field/index.d.ts +1 -1
  68. package/es/field/types.d.ts +22 -0
  69. package/es/grid-item/index.css +1 -1
  70. package/es/grid-item/index.d.ts +1 -0
  71. package/es/grid-item/types.d.ts +7 -0
  72. package/es/grid-item/types.mjs +0 -0
  73. package/es/hierarchy-select/Breadcrumb.mjs +1 -1
  74. package/es/hierarchy-select/HierarchySelect.d.ts +13 -0
  75. package/es/hierarchy-select/HierarchySelect.mjs +132 -21
  76. package/es/hierarchy-select/index.css +1 -1
  77. package/es/hierarchy-select/index.d.ts +10 -1
  78. package/es/hierarchy-select/svg/SubIcon.d.ts +2 -1
  79. package/es/hierarchy-select/svg/SubIcon.mjs +10 -29
  80. package/es/hierarchy-select/types.d.ts +21 -0
  81. package/es/image/index.css +1 -1
  82. package/es/image/index.d.ts +1 -0
  83. package/es/image/types.d.ts +5 -0
  84. package/es/image/types.mjs +0 -0
  85. package/es/image-preview/ImagePreview.d.ts +1 -1
  86. package/es/image-preview/index.css +1 -1
  87. package/es/image-preview/index.d.ts +2 -2
  88. package/es/image-preview/types.d.ts +10 -0
  89. package/es/index-anchor/index.css +1 -1
  90. package/es/index-anchor/types.d.ts +1 -3
  91. package/es/index-bar/IndexBar.d.ts +26 -0
  92. package/es/index-bar/IndexBar.mjs +184 -50
  93. package/es/index-bar/index.css +1 -1
  94. package/es/index-bar/index.d.ts +18 -0
  95. package/es/index-bar/types.d.ts +4 -3
  96. package/es/index.d.ts +1 -1
  97. package/es/index.mjs +1 -1
  98. package/es/lazyload/vue-lazyload/index.d.ts +55 -55
  99. package/es/list/index.css +1 -1
  100. package/es/list/index.d.ts +1 -1
  101. package/es/list/types.d.ts +5 -0
  102. package/es/loading/index.css +1 -1
  103. package/es/loading/index.d.ts +1 -0
  104. package/es/loading/types.d.ts +6 -0
  105. package/es/loading/types.mjs +0 -0
  106. package/es/media-picker/index.css +1 -1
  107. package/es/media-picker/index.d.ts +1 -1
  108. package/es/media-picker/type.d.ts +12 -0
  109. package/es/media-player/index.css +1 -1
  110. package/es/multiple-picker/MultiplePicker.d.ts +3 -3
  111. package/es/multiple-picker/index.css +1 -1
  112. package/es/multiple-picker/index.d.ts +4 -3
  113. package/es/multiple-picker/types.d.ts +17 -0
  114. package/es/nav-bar/index.css +1 -1
  115. package/es/nav-bar/index.d.ts +1 -0
  116. package/es/nav-bar/types.d.ts +16 -0
  117. package/es/nav-bar/types.mjs +0 -0
  118. package/es/notice-bar/index.css +1 -1
  119. package/es/notice-bar/index.d.ts +1 -1
  120. package/es/notice-bar/types.d.ts +10 -0
  121. package/es/notify/index.css +1 -1
  122. package/es/notify/index.d.ts +1 -1
  123. package/es/notify/types.d.ts +8 -0
  124. package/es/number-keyboard/index.css +1 -1
  125. package/es/number-keyboard/index.d.ts +1 -0
  126. package/es/number-keyboard/types.d.ts +14 -0
  127. package/es/number-keyboard/types.mjs +0 -0
  128. package/es/overlay/index.d.ts +1 -0
  129. package/es/overlay/types.d.ts +4 -0
  130. package/es/overlay/types.mjs +0 -0
  131. package/es/password-input/index.css +1 -1
  132. package/es/password-input/index.d.ts +1 -0
  133. package/es/password-input/types.d.ts +15 -0
  134. package/es/password-input/types.mjs +0 -0
  135. package/es/picker/Picker.d.ts +6 -6
  136. package/es/picker/index.css +1 -1
  137. package/es/picker/index.d.ts +7 -7
  138. package/es/picker/types.d.ts +17 -0
  139. package/es/popover/Popover.mjs +1 -1
  140. package/es/popover/index.css +1 -1
  141. package/es/popover/index.d.ts +1 -1
  142. package/es/popover/types.d.ts +12 -0
  143. package/es/popup/index.css +1 -1
  144. package/es/popup/index.d.ts +1 -1
  145. package/es/popup/types.d.ts +8 -0
  146. package/es/pull-refresh/index.css +1 -1
  147. package/es/pull-refresh/index.d.ts +1 -0
  148. package/es/pull-refresh/types.d.ts +6 -0
  149. package/es/pull-refresh/types.mjs +0 -0
  150. package/es/radio/index.css +1 -1
  151. package/es/radio/index.d.ts +1 -0
  152. package/es/radio/types.d.ts +18 -0
  153. package/es/radio/types.mjs +0 -0
  154. package/es/radio-group/index.css +1 -1
  155. package/es/radio-picker/RadioPicker.d.ts +3 -3
  156. package/es/radio-picker/index.css +1 -1
  157. package/es/radio-picker/index.d.ts +4 -4
  158. package/es/radio-picker/types.d.ts +24 -0
  159. package/es/rate/index.css +1 -1
  160. package/es/rate/index.d.ts +1 -0
  161. package/es/rate/types.d.ts +6 -0
  162. package/es/rate/types.mjs +0 -0
  163. package/es/search/index.css +1 -1
  164. package/es/search/index.d.ts +1 -1
  165. package/es/search/types.d.ts +12 -0
  166. package/es/signature/index.css +1 -1
  167. package/es/signature/index.d.ts +1 -1
  168. package/es/signature/types.d.ts +9 -0
  169. package/es/skeleton/index.d.ts +1 -0
  170. package/es/skeleton/types.d.ts +9 -0
  171. package/es/skeleton/types.mjs +0 -0
  172. package/es/step/Step.mjs +2 -2
  173. package/es/step/index.css +1 -1
  174. package/es/step/index.d.ts +1 -0
  175. package/es/step/types.d.ts +6 -0
  176. package/es/step/types.mjs +0 -0
  177. package/es/stepper/index.css +1 -1
  178. package/es/stepper/index.d.ts +1 -0
  179. package/es/stepper/types.d.ts +17 -0
  180. package/es/stepper/types.mjs +0 -0
  181. package/es/steps/index.css +1 -1
  182. package/es/steps/index.d.ts +1 -0
  183. package/es/steps/types.d.ts +5 -0
  184. package/es/steps/types.mjs +0 -0
  185. package/es/sticky/index.d.ts +1 -0
  186. package/es/sticky/types.d.ts +3 -0
  187. package/es/sticky/types.mjs +0 -0
  188. package/es/style/base.css +1 -1
  189. package/es/style/css-variables.css +1 -1
  190. package/es/swipe/index.css +1 -1
  191. package/es/swipe/index.d.ts +1 -1
  192. package/es/swipe/types.d.ts +10 -0
  193. package/es/switch/index.css +1 -1
  194. package/es/switch/index.d.ts +1 -0
  195. package/es/switch/types.d.ts +18 -0
  196. package/es/switch/types.mjs +0 -0
  197. package/es/tabbar/index.d.ts +1 -0
  198. package/es/tabbar/types.d.ts +5 -0
  199. package/es/tabbar/types.mjs +0 -0
  200. package/es/tabbar-item/index.css +1 -1
  201. package/es/tabbar-item/index.d.ts +1 -0
  202. package/es/tabbar-item/types.d.ts +14 -0
  203. package/es/tabbar-item/types.mjs +0 -0
  204. package/es/table/index.css +1 -1
  205. package/es/table/index.d.ts +1 -0
  206. package/es/table/types.d.ts +10 -0
  207. package/es/tabs/index.css +1 -1
  208. package/es/tabs/index.d.ts +1 -1
  209. package/es/tabs/types.d.ts +17 -0
  210. package/es/tag/Tag.mjs +5 -4
  211. package/es/tag/index.css +1 -1
  212. package/es/tag/index.d.ts +1 -0
  213. package/es/tag/types.d.ts +17 -0
  214. package/es/tag/types.mjs +0 -0
  215. package/es/text-ellipsis/types.d.ts +1 -0
  216. package/es/time-picker/TimePicker.d.ts +2 -2
  217. package/es/time-picker/index.css +1 -1
  218. package/es/time-picker/index.d.ts +3 -2
  219. package/es/time-picker/types.d.ts +23 -0
  220. package/es/time-picker/types.mjs +0 -0
  221. package/es/timeline/index.css +1 -1
  222. package/es/timeline/index.d.ts +1 -0
  223. package/es/timeline/types.d.ts +9 -0
  224. package/es/timeline/types.mjs +0 -0
  225. package/es/toast/index.css +1 -1
  226. package/es/toast/index.d.ts +1 -1
  227. package/es/toast/types.d.ts +15 -0
  228. package/es/uploader/index.css +1 -1
  229. package/es/uploader/index.d.ts +1 -1
  230. package/es/uploader/types.d.ts +21 -0
  231. package/es/vue-sfc-shim.d.ts +6 -6
  232. package/es/vue-tsx-shim.d.ts +23 -23
  233. package/lib/action-sheet/index.css +1 -1
  234. package/lib/action-sheet/index.d.ts +1 -0
  235. package/lib/action-sheet/types.d.ts +14 -0
  236. package/lib/action-sheet/types.js +15 -0
  237. package/lib/avatar/index.css +1 -1
  238. package/lib/avatar/index.d.ts +1 -1
  239. package/lib/avatar/types.d.ts +10 -0
  240. package/lib/badge/index.css +1 -1
  241. package/lib/badge/index.d.ts +1 -0
  242. package/lib/badge/types.d.ts +15 -0
  243. package/lib/badge/types.js +15 -0
  244. package/lib/button/index.css +1 -1
  245. package/lib/button/index.d.ts +1 -1
  246. package/lib/button/types.d.ts +35 -0
  247. package/lib/calendar/CalendarDay.js +8 -1
  248. package/lib/calendar/CalendarHeader.js +2 -2
  249. package/lib/calendar/index.css +1 -1
  250. package/lib/calendar/index.d.ts +1 -1
  251. package/lib/calendar/types.d.ts +25 -0
  252. package/lib/cascader/index.css +1 -1
  253. package/lib/cascader/index.d.ts +1 -1
  254. package/lib/cascader/types.d.ts +21 -0
  255. package/lib/cell/index.css +1 -1
  256. package/lib/cell/index.d.ts +1 -1
  257. package/lib/cell/types.d.ts +24 -0
  258. package/lib/cell-group/index.css +1 -1
  259. package/lib/checkbox/Checker.js +6 -0
  260. package/lib/checkbox/index.css +1 -1
  261. package/lib/checkbox/index.d.ts +1 -1
  262. package/lib/checkbox/types.d.ts +19 -0
  263. package/lib/checkbox-group/index.css +1 -1
  264. package/lib/collapse-item/index.css +1 -1
  265. package/lib/collapse-item/index.d.ts +1 -1
  266. package/lib/collapse-item/types.d.ts +8 -0
  267. package/lib/config-provider/index.d.ts +2 -1
  268. package/lib/config-provider/types.d.ts +138 -0
  269. package/lib/config-provider/types.js +15 -0
  270. package/lib/date-time-picker/DateTimePicker.d.ts +2 -2
  271. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
  272. package/lib/date-time-picker/index.css +1 -1
  273. package/lib/date-time-picker/index.d.ts +2 -2
  274. package/lib/date-time-picker/utils.d.ts +1 -1
  275. package/lib/dialog/Dialog.d.ts +1 -1
  276. package/lib/dialog/index.css +1 -1
  277. package/lib/dialog/index.d.ts +2 -2
  278. package/lib/dialog/types.d.ts +18 -0
  279. package/lib/divider/index.css +1 -1
  280. package/lib/divider/index.d.ts +1 -0
  281. package/lib/divider/types.d.ts +8 -0
  282. package/lib/divider/types.js +15 -0
  283. package/lib/dropdown-item/DropdownItem.js +1 -0
  284. package/lib/dropdown-item/index.css +1 -1
  285. package/lib/dropdown-item/index.d.ts +1 -1
  286. package/lib/dropdown-item/types.d.ts +3 -0
  287. package/lib/dropdown-menu/index.css +1 -1
  288. package/lib/dropdown-menu/index.d.ts +1 -1
  289. package/lib/dropdown-menu/types.d.ts +12 -0
  290. package/lib/empty/Empty.js +4 -2
  291. package/lib/empty/Images.d.ts +20 -9
  292. package/lib/empty/Images.js +755 -563
  293. package/lib/empty/index.css +1 -1
  294. package/lib/empty/index.d.ts +1 -0
  295. package/lib/empty/types.d.ts +8 -0
  296. package/lib/empty/types.js +15 -0
  297. package/lib/field/index.css +1 -1
  298. package/lib/field/index.d.ts +1 -1
  299. package/lib/field/types.d.ts +22 -0
  300. package/lib/grid-item/index.css +1 -1
  301. package/lib/grid-item/index.d.ts +1 -0
  302. package/lib/grid-item/types.d.ts +7 -0
  303. package/lib/grid-item/types.js +15 -0
  304. package/lib/hierarchy-select/Breadcrumb.js +1 -1
  305. package/lib/hierarchy-select/HierarchySelect.d.ts +13 -0
  306. package/lib/hierarchy-select/HierarchySelect.js +131 -20
  307. package/lib/hierarchy-select/index.css +1 -1
  308. package/lib/hierarchy-select/index.d.ts +10 -1
  309. package/lib/hierarchy-select/svg/SubIcon.d.ts +2 -1
  310. package/lib/hierarchy-select/svg/SubIcon.js +9 -28
  311. package/lib/hierarchy-select/types.d.ts +21 -0
  312. package/lib/image/index.css +1 -1
  313. package/lib/image/index.d.ts +1 -0
  314. package/lib/image/types.d.ts +5 -0
  315. package/lib/image/types.js +15 -0
  316. package/lib/image-preview/ImagePreview.d.ts +1 -1
  317. package/lib/image-preview/index.css +1 -1
  318. package/lib/image-preview/index.d.ts +2 -2
  319. package/lib/image-preview/types.d.ts +10 -0
  320. package/lib/index-anchor/index.css +1 -1
  321. package/lib/index-anchor/types.d.ts +1 -3
  322. package/lib/index-bar/IndexBar.d.ts +26 -0
  323. package/lib/index-bar/IndexBar.js +183 -49
  324. package/lib/index-bar/index.css +1 -1
  325. package/lib/index-bar/index.d.ts +18 -0
  326. package/lib/index-bar/types.d.ts +4 -3
  327. package/lib/index.css +1 -1
  328. package/lib/index.d.ts +1 -1
  329. package/lib/index.js +1 -1
  330. package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
  331. package/lib/list/index.css +1 -1
  332. package/lib/list/index.d.ts +1 -1
  333. package/lib/list/types.d.ts +5 -0
  334. package/lib/loading/index.css +1 -1
  335. package/lib/loading/index.d.ts +1 -0
  336. package/lib/loading/types.d.ts +6 -0
  337. package/lib/loading/types.js +15 -0
  338. package/lib/media-picker/index.css +1 -1
  339. package/lib/media-picker/index.d.ts +1 -1
  340. package/lib/media-picker/type.d.ts +12 -0
  341. package/lib/media-player/index.css +1 -1
  342. package/lib/multiple-picker/MultiplePicker.d.ts +3 -3
  343. package/lib/multiple-picker/index.css +1 -1
  344. package/lib/multiple-picker/index.d.ts +4 -3
  345. package/lib/multiple-picker/types.d.ts +17 -0
  346. package/lib/nav-bar/index.css +1 -1
  347. package/lib/nav-bar/index.d.ts +1 -0
  348. package/lib/nav-bar/types.d.ts +16 -0
  349. package/lib/nav-bar/types.js +15 -0
  350. package/lib/notice-bar/index.css +1 -1
  351. package/lib/notice-bar/index.d.ts +1 -1
  352. package/lib/notice-bar/types.d.ts +10 -0
  353. package/lib/notify/index.css +1 -1
  354. package/lib/notify/index.d.ts +1 -1
  355. package/lib/notify/types.d.ts +8 -0
  356. package/lib/number-keyboard/index.css +1 -1
  357. package/lib/number-keyboard/index.d.ts +1 -0
  358. package/lib/number-keyboard/types.d.ts +14 -0
  359. package/lib/number-keyboard/types.js +15 -0
  360. package/lib/overlay/index.d.ts +1 -0
  361. package/lib/overlay/types.d.ts +4 -0
  362. package/lib/overlay/types.js +15 -0
  363. package/lib/password-input/index.css +1 -1
  364. package/lib/password-input/index.d.ts +1 -0
  365. package/lib/password-input/types.d.ts +15 -0
  366. package/lib/password-input/types.js +15 -0
  367. package/lib/picker/Picker.d.ts +6 -6
  368. package/lib/picker/index.css +1 -1
  369. package/lib/picker/index.d.ts +7 -7
  370. package/lib/picker/types.d.ts +17 -0
  371. package/lib/popover/Popover.js +1 -1
  372. package/lib/popover/index.css +1 -1
  373. package/lib/popover/index.d.ts +1 -1
  374. package/lib/popover/types.d.ts +12 -0
  375. package/lib/popup/index.css +1 -1
  376. package/lib/popup/index.d.ts +1 -1
  377. package/lib/popup/types.d.ts +8 -0
  378. package/lib/pull-refresh/index.css +1 -1
  379. package/lib/pull-refresh/index.d.ts +1 -0
  380. package/lib/pull-refresh/types.d.ts +6 -0
  381. package/lib/pull-refresh/types.js +15 -0
  382. package/lib/radio/index.css +1 -1
  383. package/lib/radio/index.d.ts +1 -0
  384. package/lib/radio/types.d.ts +18 -0
  385. package/lib/radio/types.js +15 -0
  386. package/lib/radio-group/index.css +1 -1
  387. package/lib/radio-picker/RadioPicker.d.ts +3 -3
  388. package/lib/radio-picker/index.css +1 -1
  389. package/lib/radio-picker/index.d.ts +4 -4
  390. package/lib/radio-picker/types.d.ts +24 -0
  391. package/lib/rate/index.css +1 -1
  392. package/lib/rate/index.d.ts +1 -0
  393. package/lib/rate/types.d.ts +6 -0
  394. package/lib/rate/types.js +15 -0
  395. package/lib/search/index.css +1 -1
  396. package/lib/search/index.d.ts +1 -1
  397. package/lib/search/types.d.ts +12 -0
  398. package/lib/signature/index.css +1 -1
  399. package/lib/signature/index.d.ts +1 -1
  400. package/lib/signature/types.d.ts +9 -0
  401. package/lib/skeleton/index.d.ts +1 -0
  402. package/lib/skeleton/types.d.ts +9 -0
  403. package/lib/skeleton/types.js +15 -0
  404. package/lib/step/Step.js +2 -2
  405. package/lib/step/index.css +1 -1
  406. package/lib/step/index.d.ts +1 -0
  407. package/lib/step/types.d.ts +6 -0
  408. package/lib/step/types.js +15 -0
  409. package/lib/stepper/index.css +1 -1
  410. package/lib/stepper/index.d.ts +1 -0
  411. package/lib/stepper/types.d.ts +17 -0
  412. package/lib/stepper/types.js +15 -0
  413. package/lib/steps/index.css +1 -1
  414. package/lib/steps/index.d.ts +1 -0
  415. package/lib/steps/types.d.ts +5 -0
  416. package/lib/steps/types.js +15 -0
  417. package/lib/sticky/index.d.ts +1 -0
  418. package/lib/sticky/types.d.ts +3 -0
  419. package/lib/sticky/types.js +15 -0
  420. package/lib/style/base.css +1 -1
  421. package/lib/style/css-variables.css +1 -1
  422. package/lib/swipe/index.css +1 -1
  423. package/lib/swipe/index.d.ts +1 -1
  424. package/lib/swipe/types.d.ts +10 -0
  425. package/lib/switch/index.css +1 -1
  426. package/lib/switch/index.d.ts +1 -0
  427. package/lib/switch/types.d.ts +18 -0
  428. package/lib/switch/types.js +15 -0
  429. package/lib/tabbar/index.d.ts +1 -0
  430. package/lib/tabbar/types.d.ts +5 -0
  431. package/lib/tabbar/types.js +15 -0
  432. package/lib/tabbar-item/index.css +1 -1
  433. package/lib/tabbar-item/index.d.ts +1 -0
  434. package/lib/tabbar-item/types.d.ts +14 -0
  435. package/lib/tabbar-item/types.js +15 -0
  436. package/lib/table/index.css +1 -1
  437. package/lib/table/index.d.ts +1 -0
  438. package/lib/table/types.d.ts +10 -0
  439. package/lib/tabs/index.css +1 -1
  440. package/lib/tabs/index.d.ts +1 -1
  441. package/lib/tabs/types.d.ts +17 -0
  442. package/lib/tag/Tag.js +5 -4
  443. package/lib/tag/index.css +1 -1
  444. package/lib/tag/index.d.ts +1 -0
  445. package/lib/tag/types.d.ts +17 -0
  446. package/lib/tag/types.js +15 -0
  447. package/lib/text-ellipsis/types.d.ts +1 -0
  448. package/lib/time-picker/TimePicker.d.ts +2 -2
  449. package/lib/time-picker/index.css +1 -1
  450. package/lib/time-picker/index.d.ts +3 -2
  451. package/lib/time-picker/types.d.ts +23 -0
  452. package/lib/time-picker/types.js +15 -0
  453. package/lib/timeline/index.css +1 -1
  454. package/lib/timeline/index.d.ts +1 -0
  455. package/lib/timeline/types.d.ts +9 -0
  456. package/lib/timeline/types.js +15 -0
  457. package/lib/toast/index.css +1 -1
  458. package/lib/toast/index.d.ts +1 -1
  459. package/lib/toast/types.d.ts +15 -0
  460. package/lib/uploader/index.css +1 -1
  461. package/lib/uploader/index.d.ts +1 -1
  462. package/lib/uploader/types.d.ts +21 -0
  463. package/lib/vue-sfc-shim.d.ts +6 -6
  464. package/lib/vue-tsx-shim.d.ts +23 -23
  465. package/lib/web-types.json +1 -1
  466. package/lib/zartui.cjs.js +1118 -688
  467. package/lib/zartui.es.js +1118 -688
  468. package/lib/zartui.js +1118 -688
  469. package/lib/zartui.min.js +1 -1
  470. package/package.json +5 -5
@@ -39,6 +39,7 @@ export declare const Switch: import("../utils").WithInstall<import("vue").Define
39
39
  }, {}>>;
40
40
  export default Switch;
41
41
  export type { SwitchProps } from './Switch';
42
+ export type { SwitchThemeVars } from './types';
42
43
  declare module 'vue' {
43
44
  interface GlobalComponents {
44
45
  ZtSwitch: typeof Switch;
@@ -0,0 +1,18 @@
1
+ export type SwitchThemeVars = {
2
+ switchWidth?: string;
3
+ switchHeight?: string;
4
+ switchShadow?: string;
5
+ switchNodeSize?: string;
6
+ switchNodeBackground?: string;
7
+ switchNodeOnBackground?: string;
8
+ switchNodeBorder?: string;
9
+ switchNodeOnBorder?: string;
10
+ switchNodeShadow?: string;
11
+ switchNodeOnShadow?: string;
12
+ switchBackground?: string;
13
+ switchOnBackground?: string;
14
+ switchOnShadow?: string;
15
+ switchDuration?: string;
16
+ switchDisabledOpacity?: string;
17
+ switchFontSize?: string;
18
+ };
File without changes
@@ -57,6 +57,7 @@ export declare const Tabbar: import("../utils").WithInstall<import("vue").Define
57
57
  }, {}>>;
58
58
  export default Tabbar;
59
59
  export type { TabbarProps } from './Tabbar';
60
+ export type { TabbarThemeVars } from './types';
60
61
  declare module 'vue' {
61
62
  interface GlobalComponents {
62
63
  ZtTabbar: typeof Tabbar;
@@ -0,0 +1,5 @@
1
+ export type TabbarThemeVars = {
2
+ tabbarHeight?: string;
3
+ tabbarZIndex?: number;
4
+ tabbarBackground?: string;
5
+ };
File without changes
@@ -1 +1 @@
1
- :root{--zt-tabbar-item-font-size: var(--zt-font-size-sm);--zt-tabbar-item-text-color: var(--zt-gray-a6);--zt-tabbar-item-active-color: var(--zt-primary-color);--zt-tabbar-item-margin: 8px auto 6px;--zt-tabbar-item-icon-size: 24px;--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-tabbar-item-icon-margin-bottom: var(--zt-padding-base);--zt-tabbar-item-box-width: 36px;--zt-tabbar-item-box-height: 36px;--zt-tabbar-item-box-border-radius: var(--zt-radius-lg);--zt-tabbar-item-icon-border: 0;--zt-tabbar-item-text-padding-top: 4px;--zt-tabbar-item-text-height: 12px;--zt-tabbar-item-icon-background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%)}.zt-tabbar-item{color:var(--zt-tabbar-item-text-color);margin:var(--zt-tabbar-item-margin);-webkit-text-size-adjust:100%;cursor:pointer;-webkit-user-select:none;user-select:none}.zt-tabbar-item__icon{font-size:var(--zt-tabbar-item-icon-size);border:var(--zt-tabbar-item-icon-border);display:flex;justify-content:center;align-items:center;width:var(--zt-tabbar-item-box-width);height:var(--zt-tabbar-item-box-height);box-shadow:var(--zt-tabbar-item-icon-box-shadow);background:var(--zt-tabbar-item-icon-background);border-radius:var(--zt-tabbar-item-box-border-radius)}.zt-tabbar-item__text{font-size:var(--zt-tabbar-item-font-size);padding-top:var(--zt-tabbar-item-text-padding-top);transform:scale(.83333);text-align:center;height:var(--zt-tabbar-item-text-height);line-height:var(--zt-tabbar-item-text-height)}.zt-tabbar-item--active{color:var(--zt-tabbar-item-active-color);font-weight:var(--zt-font-bold)}.zt-theme-dark{--zt-tabbar-item-text-color: var(--zt-gray);--zt-tabbar-item-icon-border: 1px solid rgba(151, 151, 151, .12);--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .12), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-tabbar-item-icon-background: linear-gradient(135deg, #121d2a 0%, #1d2c3d 100%)}
1
+ :root{--zt-tabbar-item-text-color: var(--zt-gray-a6);--zt-tabbar-item-active-color: var(--zt-primary-color);--zt-tabbar-item-margin: 8px auto 6px;--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-tabbar-item-box-width: 36px;--zt-tabbar-item-box-height: 36px;--zt-tabbar-item-box-border-radius: var(--zt-radius-lg);--zt-tabbar-item-icon-border: 0;--zt-tabbar-item-text-padding-top: 4px;--zt-tabbar-item-text-height: 12px;--zt-tabbar-item-icon-background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);--zt-tabbar-item-icon-font-size: 24px}:root[zt-theme-size=large]{--zt-tabbar-item-icon-font-size: 30px}.zt-tabbar-item{color:var(--zt-tabbar-item-text-color);margin:var(--zt-tabbar-item-margin);-webkit-text-size-adjust:100%;cursor:pointer;-webkit-user-select:none;user-select:none}.zt-tabbar-item__icon{font-size:var(--zt-tabbar-item-icon-font-size);border:var(--zt-tabbar-item-icon-border);display:flex;justify-content:center;align-items:center;width:var(--zt-tabbar-item-box-width);height:var(--zt-tabbar-item-box-height);box-shadow:var(--zt-tabbar-item-icon-box-shadow);background:var(--zt-tabbar-item-icon-background);border-radius:var(--zt-tabbar-item-box-border-radius)}.zt-tabbar-item__text{font-size:var(--zt-font-size-sm);padding-top:var(--zt-tabbar-item-text-padding-top);transform:scale(.83333);text-align:center;height:var(--zt-tabbar-item-text-height);line-height:var(--zt-tabbar-item-text-height)}.zt-tabbar-item--active{color:var(--zt-tabbar-item-active-color);font-weight:var(--zt-font-bold)}.zt-theme-dark{--zt-tabbar-item-text-color: var(--zt-gray);--zt-tabbar-item-icon-border: 1px solid rgba(151, 151, 151, .12);--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .12), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-tabbar-item-icon-background: linear-gradient(135deg, #121d2a 0%, #1d2c3d 100%)}
@@ -28,6 +28,7 @@ export declare const TabbarItem: import("../utils").WithInstall<import("vue").De
28
28
  }, {}>>;
29
29
  export default TabbarItem;
30
30
  export type { TabbarItemProps } from './TabbarItem';
31
+ export type { TabbarItemThemeVars } from './types';
31
32
  declare module 'vue' {
32
33
  interface GlobalComponents {
33
34
  ZtTabbarItem: typeof TabbarItem;
@@ -0,0 +1,14 @@
1
+ export type TabbarItemThemeVars = {
2
+ tabbarItemTextColor?: string;
3
+ tabbarItemActiveColor?: string;
4
+ tabbarItemMargin?: string;
5
+ tabbarItemIconBoxShadow?: string;
6
+ tabbarItemBoxWidth?: string;
7
+ tabbarItemBoxHeight?: string;
8
+ tabbarItemBoxBorderRadius?: string;
9
+ tabbarItemIconBorder?: string;
10
+ tabbarItemTextPaddingTop?: string;
11
+ tabbarItemTextHeight?: string;
12
+ tabbarItemIconBackground?: string;
13
+ tabbarItemIconFontSize?: string;
14
+ };
File without changes
@@ -1 +1 @@
1
- :root{--zt-table-head-height: 40px;--zt-table-head-font-size: var(--zt-font-size-md);--zt-table-head-color: var(--zt-blue);--zt-table-head-background: #e6f5ff;--zt-table-body-height: 40px;--zt-table-body-line-height: 20px;--zt-table-body-font-size: var(--zt-font-size-md);--zt-table-body-color: var(--zt-gray);--zt-table-body-background: var(--zt-white);--zt-table-sort-default: var(--zt-gray-5);--zt-table-sort-active: var(--zt-blue)}.zt-base-hair{position:relative}.zt-base-hair:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table table{border-collapse:separate;border-spacing:0;width:100%;table-layout:auto;box-sizing:border-box}.zt-table--fixed{overflow:auto scroll}.zt-table--fixed::-webkit-scrollbar{width:0;height:0}.zt-table--fixed table{table-layout:fixed}.zt-table--thead-fixed{position:-webkit-sticky!important;position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt-table--bordered{position:relative}.zt-table--bordered:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered:after{border-left-width:var(--zt-border-width)}.zt-table--bordered>table{position:relative}.zt-table--bordered>table:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered>table:after{border-top-width:var(--zt-border-width)}.zt-table--bordered .zt-table__thead>tr>th{position:relative}.zt-table--bordered .zt-table__thead>tr>th:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered .zt-table__thead>tr>th:after{border-right-width:var(--zt-border-width);border-bottom-width:var(--zt-border-width)}.zt-table--bordered .zt-table__tbody>tr>td{position:relative}.zt-table--bordered .zt-table__tbody>tr>td:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered .zt-table__tbody>tr>td:after{border-right-width:var(--zt-border-width);border-bottom-width:var(--zt-border-width)}.zt-table__thead>tr>th{box-sizing:border-box;overflow-wrap:break-word;min-height:var(--zt-table-head-height);font-weight:600;font-size:var(--zt-table-head-font-size);color:var(--zt-table-head-color);text-align:center;line-height:var(--zt-table-head-height);background:var(--zt-table-head-background)}.zt-table__tbody>tr>td{box-sizing:border-box;overflow-wrap:break-word;min-height:var(--zt-table-body-height);font-size:var(--zt-table-body-font-size);color:var(--zt-table-body-color);text-align:center;line-height:var(--zt-table-body-line-height);background:var(--zt-table-body-background);padding:10px 16px}.zt-table--striped .zt-table__tbody>tr:nth-child(2n)>td{background:var(--zt-table-head-background)}.zt-table__left--last{border-right:none!important}.zt-table__left--last:after{content:"";position:absolute;top:0;right:-10px;width:10px;height:100%;opacity:.06;background-image:linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%)}.zt-table__left--fixed{position:-webkit-sticky!important;position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt-table__head{display:flex;justify-content:center}.zt-table__head-sort{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;color:var(--zt-table-sort-default)}.zt-table__head-label{line-height:var(--zt-table-head-height)}.zt-table__sort-active{color:var(--zt-table-sort-active)}.zt-table--skeleton{background-color:#fff;padding-bottom:10px}.zt-table__row{display:flex;box-sizing:border-box;padding:0 10px;height:40px}.zt-table__row--head{display:flex;justify-content:center;align-items:center;background-color:#e7f0fb;margin-bottom:8px}.zt-table__row--head .zt-table__col-item{background-color:#cfdae9;height:20px}.zt-table__col{display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:1;padding:4px 6px;height:40px}.zt-table__col-item{width:100%;height:100%;border-radius:4px;background-color:rgba(45,75,115,.06)}.zt-table--animate{animation:zt-table-blink var(--zt-skeleton-duration) ease-in-out infinite}@keyframes zt-table-blink{50%{opacity:.6}}
1
+ :root{--zt-table-head-color: var(--zt-primary-color);--zt-table-head-height: 40px;--zt-table-head-background: #e6f5ff;--zt-table-body-height: 40px;--zt-table-body-color: var(--zt-gray);--zt-table-body-background: var(--zt-white);--zt-table-sort-default: var(--zt-gray-5);--zt-table-sort-active: var(--zt-primary-color)}:root[zt-theme-size=large]{--zt-table-head-height: 52px}.zt-base-hair{position:relative}.zt-base-hair:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table table{border-collapse:separate;border-spacing:0;width:100%;table-layout:auto;box-sizing:border-box}.zt-table--fixed{overflow:auto scroll}.zt-table--fixed::-webkit-scrollbar{width:0;height:0}.zt-table--fixed table{table-layout:fixed}.zt-table--thead-fixed{position:-webkit-sticky!important;position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt-table--bordered{position:relative}.zt-table--bordered:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered:after{border-left-width:var(--zt-border-width)}.zt-table--bordered>table{position:relative}.zt-table--bordered>table:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered>table:after{border-top-width:var(--zt-border-width)}.zt-table--bordered .zt-table__thead>tr>th{position:relative}.zt-table--bordered .zt-table__thead>tr>th:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered .zt-table__thead>tr>th:after{border-right-width:var(--zt-border-width);border-bottom-width:var(--zt-border-width)}.zt-table--bordered .zt-table__tbody>tr>td{position:relative}.zt-table--bordered .zt-table__tbody>tr>td:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered .zt-table__tbody>tr>td:after{border-right-width:var(--zt-border-width);border-bottom-width:var(--zt-border-width)}.zt-table__thead>tr>th{box-sizing:border-box;overflow-wrap:break-word;min-height:var(--zt-table-head-height);font-weight:600;font-size:var(--zt-font-size-md);color:var(--zt-table-head-color);text-align:center;line-height:var(--zt-table-head-height);background:var(--zt-table-head-background)}.zt-table__tbody>tr>td{box-sizing:border-box;overflow-wrap:break-word;min-height:var(--zt-table-body-height);font-size:var(--zt-font-size-md);color:var(--zt-table-body-color);text-align:center;line-height:var(--zt-line-height-md);background:var(--zt-table-body-background);padding:10px 16px}.zt-table--striped .zt-table__tbody>tr:nth-child(2n)>td{background:var(--zt-table-head-background)}.zt-table__left--last{border-right:none!important}.zt-table__left--last:after{content:"";position:absolute;top:0;right:-10px;width:10px;height:100%;opacity:.06;background-image:linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%)}.zt-table__left--fixed{position:-webkit-sticky!important;position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt-table__head{display:flex;justify-content:center}.zt-table__head-sort{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;color:var(--zt-table-sort-default)}.zt-table__head-label{line-height:var(--zt-table-head-height)}.zt-table__sort-active{color:var(--zt-table-sort-active)}.zt-table--skeleton{background-color:#fff;padding-bottom:10px}.zt-table__row{display:flex;box-sizing:border-box;padding:0 10px;height:40px}.zt-table__row--head{display:flex;justify-content:center;align-items:center;background-color:#e7f0fb;margin-bottom:8px}.zt-table__row--head .zt-table__col-item{background-color:#cfdae9;height:20px}.zt-table__col{display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:1;padding:4px 6px;height:40px}.zt-table__col-item{width:100%;height:100%;border-radius:4px;background-color:rgba(45,75,115,.06)}.zt-table--animate{animation:zt-table-blink var(--zt-skeleton-duration) ease-in-out infinite}@keyframes zt-table-blink{50%{opacity:.6}}
@@ -70,6 +70,7 @@ export declare const Table: import("../utils").WithInstall<import("vue").DefineC
70
70
  export default Table;
71
71
  export { tableProps } from './Table';
72
72
  export type { TableBodyOption, TableHeaderOption, TableProps } from './Table';
73
+ export type { TableThemeVars } from './types';
73
74
  declare module 'vue' {
74
75
  interface GlobalComponents {
75
76
  ZtTable: typeof Table;
@@ -3,3 +3,13 @@ export declare enum SortOrderEnum {
3
3
  ASCEND = "ascend",
4
4
  DESCEND = "descend"
5
5
  }
6
+ export type TableThemeVars = {
7
+ tableHeadColor?: string;
8
+ tableHeadBackground?: string;
9
+ tableBodyHeight?: string;
10
+ tableBodyColor?: string;
11
+ tableBodyBackground?: string;
12
+ tableSortDefault?: string;
13
+ tableSortActive?: string;
14
+ tableHeadHeight?: string;
15
+ };
package/es/tabs/index.css CHANGED
@@ -1 +1 @@
1
- :root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-font-size: var(--zt-font-size-md);--zt-tab-active-font-size: var(--zt-font-size-lg);--zt-tab-active-opacity: .2;--zt-tab-disabled-font-size: var(--zt-font-size-md);--zt-tab-line-height: var(--zt-line-height-md);--zt-tabs-default-color: var(--zt-primary-color);--zt-tabs-line-height: 44px;--zt-tabs-line-bottom: 16px;--zt-tabs-card-height: 32px;--zt-tabs-bottom-bar-width: 12px;--zt-tabs-bottom-bar-height: 4px;--zt-tabs-bottom-bar-color: var(--zt-primary-color);--zt-tabs-bottom-bar-radius: 2px;--zt-tabs-nav-background: var(--zt-background);--zt-tab-text-color: var(--zt-gray-a6);--zt-tabs-overlay-left-background: linear-gradient(90deg, #ffffff 0%, rgba(245, 250, 255, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%)}.zt-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--zt-padding-md);color:var(--zt-tab-text-color);font-size:var(--zt-tab-font-size);line-height:var(--zt-tab-line-height);cursor:pointer}.zt-tab--active{color:var(--zt-tab-active-text-color);font-size:var(--zt-tab-active-font-size);font-weight:var(--zt-font-bold)}.zt-tab--active:active{opacity:var(--zt-tab-active-opacity)}.zt-tab--disabled{color:var(--zt-tab-disabled-text-color);cursor:not-allowed;font-size:var(--zt-tab-disabled-font-size)}.zt-tab--grow{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tab--shrink{flex:none;padding:0 var(--zt-padding-xs)}.zt-tab--card{color:var(--zt-tabs-default-color)}.zt-tab--card.zt-tab--active{color:var(--zt-white);background-color:var(--zt-tabs-default-color)}.zt-tab--card--disabled{color:var(--zt-tab-disabled-text-color)}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper,.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden;position:relative}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__overlay-left,.zt-tabs__overlay-right{position:absolute;top:0;width:var(--zt-tabs-line-height);height:var(--zt-tabs-line-height);pointer-events:none}.zt-tabs__overlay-left{left:0;background:var(--zt-tabs-overlay-left-background)}.zt-tabs__overlay-right{right:0;background:var(--zt-tabs-overlay-right-background)}.zt-tabs__nav{position:relative;display:flex;justify-content:flex-start;background-color:var(--zt-tabs-nav-background);-webkit-user-select:none;user-select:none}.zt-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--complete::-webkit-scrollbar{display:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:var(--zt-tabs-line-bottom)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tab,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tab{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav::-webkit-scrollbar,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav--card.zt-tabs__nav--shrink{display:inline-flex}.zt-tabs__line{position:absolute;bottom:var(--zt-tabs-line-bottom);left:0;z-index:1;width:var(--zt-tabs-bottom-bar-width);height:var(--zt-tabs-bottom-bar-height);background:var(--zt-tabs-bottom-bar-color);border-radius:var(--zt-tabs-bottom-bar-radius)}.zt-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:var(--zt-tabs-line-height)}.zt-tabs--card>.zt-tabs__wrap{height:var(--zt-tabs-card-height)}.zt-theme-dark{--zt-tabs-overlay-left-background: linear-gradient(90deg, #0f1923 0%, rgba(15, 25, 35, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(15, 25, 35, 0) 3%, #0f1923 100%)}
1
+ :root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-active-opacity: .2;--zt-tabs-default-color: var(--zt-primary-color);--zt-tabs-line-height: 44px;--zt-tabs-line-bottom: 16px;--zt-tabs-card-height: 32px;--zt-tabs-bottom-bar-width: 12px;--zt-tabs-bottom-bar-height: 4px;--zt-tabs-bottom-bar-color: var(--zt-primary-color);--zt-tabs-bottom-bar-radius: 2px;--zt-tabs-nav-background: var(--zt-background);--zt-tab-text-color: var(--zt-gray-a6);--zt-tabs-overlay-left-background: linear-gradient(90deg, #ffffff 0%, rgba(245, 250, 255, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%)}.zt-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--zt-padding-md);color:var(--zt-tab-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);cursor:pointer}.zt-tab--active{color:var(--zt-tab-active-text-color);font-size:var(--zt-font-size-lg);font-weight:var(--zt-font-bold)}.zt-tab--active:active{opacity:var(--zt-tab-active-opacity)}.zt-tab--disabled{color:var(--zt-tab-disabled-text-color);cursor:not-allowed;font-size:var(--zt-font-size-md)}.zt-tab--grow{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tab--shrink{flex:none;padding:0 var(--zt-padding-xs)}.zt-tab--card{color:var(--zt-tabs-default-color)}.zt-tab--card.zt-tab--active{color:var(--zt-white);background-color:var(--zt-tabs-default-color)}.zt-tab--card--disabled{color:var(--zt-tab-disabled-text-color)}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper,.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden;position:relative}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__overlay-left,.zt-tabs__overlay-right{position:absolute;top:0;width:var(--zt-tabs-line-height);height:var(--zt-tabs-line-height);pointer-events:none}.zt-tabs__overlay-left{left:0;background:var(--zt-tabs-overlay-left-background)}.zt-tabs__overlay-right{right:0;background:var(--zt-tabs-overlay-right-background)}.zt-tabs__nav{position:relative;display:flex;justify-content:flex-start;background-color:var(--zt-tabs-nav-background);-webkit-user-select:none;user-select:none}.zt-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--complete::-webkit-scrollbar{display:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:var(--zt-tabs-line-bottom)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tab,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tab{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav::-webkit-scrollbar,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav--card.zt-tabs__nav--shrink{display:inline-flex}.zt-tabs__line{position:absolute;bottom:var(--zt-tabs-line-bottom);left:0;z-index:1;width:var(--zt-tabs-bottom-bar-width);height:var(--zt-tabs-bottom-bar-height);background:var(--zt-tabs-bottom-bar-color);border-radius:var(--zt-tabs-bottom-bar-radius)}.zt-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:var(--zt-tabs-line-height)}.zt-tabs--card>.zt-tabs__wrap{height:var(--zt-tabs-card-height)}.zt-theme-dark{--zt-tabs-overlay-left-background: linear-gradient(90deg, #0f1923 0%, rgba(15, 25, 35, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(15, 25, 35, 0) 3%, #0f1923 100%)}
@@ -106,7 +106,7 @@ export declare const Tabs: import("../utils").WithInstall<import("vue").DefineCo
106
106
  }, {}>>;
107
107
  export default Tabs;
108
108
  export type { TabsProps };
109
- export type { TabsType, TabsInstance } from './types';
109
+ export type { TabsType, TabsInstance, TabsThemeVars } from './types';
110
110
  declare module 'vue' {
111
111
  interface GlobalComponents {
112
112
  ZtTabs: typeof Tabs;
@@ -21,3 +21,20 @@ export type TabsExpose = {
21
21
  scrollTo: (name: Numeric) => void;
22
22
  };
23
23
  export type TabsInstance = ComponentPublicInstance<TabsProps, TabsExpose>;
24
+ export type TabsThemeVars = {
25
+ tabActiveTextColor?: string;
26
+ tabDisabledTextColor?: string;
27
+ tabActiveOpacity?: number;
28
+ tabsDefaultColor?: string;
29
+ tabsLineHeight?: string;
30
+ tabsLineBottom?: string;
31
+ tabsCardHeight?: string;
32
+ tabsBottomBarWidth?: string;
33
+ tabsBottomBarHeight?: string;
34
+ tabsBottomBarColor?: string;
35
+ tabsBottomBarRadius?: string;
36
+ tabsNavBackground?: string;
37
+ tabTextColor?: string;
38
+ tabsOverlayLeftBackground?: string;
39
+ tabsOverlayRightBackground?: string;
40
+ };
package/es/tag/Tag.mjs CHANGED
@@ -50,10 +50,11 @@ var stdin_default = defineComponent({
50
50
  style.transformOrigin = "left bottom";
51
51
  const width = Math.sqrt(props.badgeWidth * props.badgeWidth + props.badgeHeight * props.badgeHeight);
52
52
  const originHeight = parseNumber(getComputedStyle(document.body).getPropertyValue("--zt-tag-line-height"), 20);
53
- style.top = -originHeight + "px";
54
- style.right = props.badgeWidth - width + "px";
55
- style.width = width + "px";
56
- style.height = originHeight + "px";
53
+ const isLarge = document.documentElement.getAttribute("zt-theme-size") === "large";
54
+ style.top = isLarge ? "-30px" : -originHeight + "px";
55
+ style.right = isLarge ? "-30px" : props.badgeWidth - width + "px";
56
+ style.width = isLarge ? "100px" : width + "px";
57
+ style.height = isLarge ? "30px" : originHeight + "px";
57
58
  }
58
59
  return style;
59
60
  };
package/es/tag/index.css CHANGED
@@ -1 +1 @@
1
- :root{--zt-tag-padding: var(--zt-padding-base) var(--zt-padding-sm);--zt-tag-text-color: var(--zt-white);--zt-tag-font-size: var(--zt-font-size-sm);--zt-tag-radius: 2px;--zt-tag-line-height: 16px;--zt-tag-icon-gap: 2px;--zt-tag-icon-size: 16px;--zt-tag-close-icon-size: 20px;--zt-tag-round-radius: 12px;--zt-tag-round-line-height: 16px;--zt-tag-badge-padding: 0 var(--zt-padding-sm);--zt-tag-closeable-font-size: var(--zt-font-size-md);--zt-tag-closeable-line-height: 20px;--zt-tag-closeable-radius: 14px;--zt-tag-closeable-background: var(--zt-gray-a6);--zt-tag-danger-color: var(--zt-danger-color);--zt-tag-primary-color: var(--zt-primary-color);--zt-tag-success-color: var(--zt-success-color);--zt-tag-warning-color: var(--zt-warning-color);--zt-tag-default-color: var(--zt-gray-a08);--zt-tag-plain-background: var(--zt-background-2);--zt-tag-stamp-diameter: 60px}.zt-tag{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;padding:var(--zt-tag-padding);color:var(--zt-tag-text-color);font-size:var(--zt-tag-font-size);line-height:var(--zt-tag-line-height);border-radius:var(--zt-tag-radius);overflow:hidden;word-break:break-all}.zt-tag__icon{font-size:var(--zt-tag-icon-size);margin-right:var(--zt-tag-icon-gap)}.zt-tag__image{width:var(--zt-tag-icon-size);height:var(--zt-tag-icon-size);margin-right:var(--zt-tag-icon-gap)}.zt-tag--default{background:var(--zt-tag-default-color)}.zt-tag--default.zt-tag--plain{color:var(--zt-tag-default-color)}.zt-tag--danger{background:var(--zt-tag-danger-color)}.zt-tag--danger.zt-tag--plain{color:var(--zt-tag-danger-color)}.zt-tag--primary{background:var(--zt-tag-primary-color)}.zt-tag--primary.zt-tag--plain{color:var(--zt-tag-primary-color)}.zt-tag--success{background:var(--zt-tag-success-color)}.zt-tag--success.zt-tag--plain{color:var(--zt-tag-success-color)}.zt-tag--warning{background:var(--zt-tag-warning-color)}.zt-tag--warning.zt-tag--plain{color:var(--zt-tag-warning-color)}.zt-tag--plain{background:var(--zt-tag-plain-background);border-color:currentColor}.zt-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.zt-tag--mark{border-radius:0 var(--zt-tag-round-radius) var(--zt-tag-round-radius) 0}.zt-tag--mark:after{display:block;width:2px;content:""}.zt-tag--round{border-radius:var(--zt-tag-round-radius);line-height:var(--zt-tag-round-line-height)}.zt-tag__close{font-size:var(--zt-tag-close-icon-size);margin-left:2px}.zt-tag--closeable{font-size:var(--zt-tag-closeable-font-size);line-height:var(--zt-tag-closeable-line-height);background:var(--zt-tag-closeable-background);border-radius:var(--zt-tag-closeable-radius)}.zt-tag--badge{position:absolute;text-align:center;display:block;box-sizing:border-box;padding:var(--zt-tag-badge-padding)}.zt-tag__stamp{width:var(--zt-tag-stamp-diameter);height:var(--zt-tag-stamp-diameter);background:rgba(0,0,0,0);padding:0}.zt-tag__stamp--text{width:50px;height:24px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;text-align:center;font-weight:600}.zt-tag__stamp--default{color:var(--zt-gray-a6)}.zt-tag__stamp--danger{color:var(--zt-tag-danger-color)}.zt-tag__stamp--primary{color:var(--zt-tag-primary-color)}.zt-tag__stamp--success{color:var(--zt-tag-success-color)}.zt-tag__stamp--warning{color:var(--zt-tag-warning-color)}.zt-theme-dark{--zt-tag-closeable-background: rgba(255, 255, 255, .1)}
1
+ :root{--zt-tag-text-color: var(--zt-white);--zt-tag-radius: 2px;--zt-tag-icon-gap: 2px;--zt-tag-icon-size: 16px;--zt-tag-round-radius: 12px;--zt-tag-badge-padding: 0 var(--zt-padding-sm);--zt-tag-closeable-background: var(--zt-gray-a6);--zt-tag-closeable-height: 28px;--zt-tag-danger-color: var(--zt-danger-color);--zt-tag-primary-color: var(--zt-primary-color);--zt-tag-success-color: var(--zt-success-color);--zt-tag-warning-color: var(--zt-warning-color);--zt-tag-default-color: var(--zt-gray-a08);--zt-tag-plain-background: var(--zt-background-2);--zt-tag-stamp-diameter: 60px}:root[zt-theme-size=large]{--zt-tag-closeable-height: 40px}.zt-tag{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;padding:0 var(--zt-padding-sm);color:var(--zt-tag-text-color);font-size:var(--zt-font-size-sm);line-height:var(--zt-line-height-xl);border-radius:var(--zt-tag-radius);overflow:hidden;word-break:break-all}.zt-tag__icon{font-size:var(--zt-font-size-lg);margin-right:var(--zt-tag-icon-gap)}.zt-tag__image{width:var(--zt-tag-icon-size);height:var(--zt-tag-icon-size);margin-right:var(--zt-tag-icon-gap)}.zt-tag--default{background:var(--zt-tag-default-color)}.zt-tag--default.zt-tag--plain{color:var(--zt-tag-default-color)}.zt-tag--danger{background:var(--zt-tag-danger-color)}.zt-tag--danger.zt-tag--plain{color:var(--zt-tag-danger-color)}.zt-tag--primary{background:var(--zt-tag-primary-color)}.zt-tag--primary.zt-tag--plain{color:var(--zt-tag-primary-color)}.zt-tag--success{background:var(--zt-tag-success-color)}.zt-tag--success.zt-tag--plain{color:var(--zt-tag-success-color)}.zt-tag--warning{background:var(--zt-tag-warning-color)}.zt-tag--warning.zt-tag--plain{color:var(--zt-tag-warning-color)}.zt-tag--plain{background:var(--zt-tag-plain-background);border-color:currentColor}.zt-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.zt-tag--mark{border-radius:0 var(--zt-tag-round-radius) var(--zt-tag-round-radius) 0}.zt-tag--mark:after{display:block;width:2px;content:""}.zt-tag--round{border-radius:calc(var(--zt-line-height-xl) / 2);line-height:var(--zt-line-height-xl)}.zt-tag__close{font-size:var(--zt-font-size-xxl);margin-left:2px}.zt-tag--closeable{font-size:var(--zt-font-size-md);line-height:var(--zt-tag-closeable-height);background:var(--zt-tag-closeable-background);border-radius:calc(var(--zt-tag-closeable-height) / 2)}.zt-tag--badge{position:absolute;text-align:center;display:block;box-sizing:border-box;top:calc(var(--zt-line-height-md) - 2 * var(--zt-line-height-md));padding:var(--zt-tag-badge-padding);height:var(--zt-line-height-md);line-height:var(--zt-line-height-md)}.zt-tag__stamp{width:var(--zt-tag-stamp-diameter);height:var(--zt-tag-stamp-diameter);background:rgba(0,0,0,0);padding:0}.zt-tag__stamp--text{width:50px;height:24px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;text-align:center;font-weight:600}.zt-tag__stamp--default{color:var(--zt-gray-a6)}.zt-tag__stamp--danger{color:var(--zt-tag-danger-color)}.zt-tag__stamp--primary{color:var(--zt-tag-primary-color)}.zt-tag__stamp--success{color:var(--zt-tag-success-color)}.zt-tag__stamp--warning{color:var(--zt-tag-warning-color)}.zt-theme-dark{--zt-tag-closeable-background: rgba(255, 255, 255, .1)}
package/es/tag/index.d.ts CHANGED
@@ -84,6 +84,7 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
84
84
  export default Tag;
85
85
  export { tagProps } from './Tag';
86
86
  export type { TagType, TagProps } from './Tag';
87
+ export type { TagThemeVars } from './types';
87
88
  declare module 'vue' {
88
89
  interface GlobalComponents {
89
90
  ZtTag: typeof Tag;
@@ -0,0 +1,17 @@
1
+ export type TagThemeVars = {
2
+ tagTextColor?: string;
3
+ tagRadius?: string;
4
+ tagIconGap?: string;
5
+ tagIconSize?: string;
6
+ tagRoundRadius?: string;
7
+ tagBadgePadding?: string;
8
+ tagCloseableBackground?: string;
9
+ tagDangerColor?: string;
10
+ tagPrimaryColor?: string;
11
+ tagSuccessColor?: string;
12
+ tagWarningColor?: string;
13
+ tagDefaultColor?: string;
14
+ tagPlainBackground?: string;
15
+ tagStampDiameter?: string;
16
+ tagCloseableHeight?: string;
17
+ };
File without changes
@@ -1,3 +1,4 @@
1
1
  export type TextEllipsisThemeVars = {
2
+ textEllipsisLineHeight?: string;
2
3
  textEllipsisActionColor?: string;
3
4
  };
@@ -270,9 +270,9 @@ declare const _default: import("vue").DefineComponent<{
270
270
  loading: boolean;
271
271
  showTitle: boolean;
272
272
  allowHtml: boolean;
273
- optionHeight: string | number;
274
- showToolbar: boolean;
275
273
  swipeDuration: string | number;
274
+ showToolbar: boolean;
275
+ optionHeight: string | number;
276
276
  visibleOptionNum: string | number;
277
277
  columnsUnit: string[];
278
278
  minHour: string | number;
@@ -1 +1 @@
1
- :root{--zt-time-picker-cancel-margin: 8px 4px 8px 16px;--zt-time-picker-confirm-margin: 8px 16px 8px 4px;--zt-time-picker-title-height: 44px;--zt-time-picker-title-border-radius: 16px 16px 0 0;--zt-time-picker-frame-background-color: var(--zt-gray-a04);--zt-time-picker-cancel-background-color: var(--zt-white);--zt-time-picker-title-text-color: var(--zt-gray-a4);--zt-time-picker-background: var(--zt-background-2);--zt-time-picker-toolbar-height: 60px;--zt-time-picker-title-font-size: var(--zt-font-size-md);--zt-time-picker-title-line-height: var(--zt-line-height-md);--zt-time-picker-action-padding: 0 var(--zt-padding-md);--zt-time-picker-action-font-size: var(--zt-font-size-lg);--zt-time-picker-confirm-action-color: var(--zt-white);--zt-time-picker-cancel-action-color: var(--zt-text-color);--zt-time-picker-option-font-size: 24px;--zt-time-picker-option-radius: 8px;--zt-time-picker-option-padding: 0 var(--zt-padding-base);--zt-time-picker-option-text-color: var(--zt-text-color);--zt-time-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-time-picker-loading-icon-color: var(--zt-primary-color);--zt-time-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-time-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4));--zt-time-picker-unit-font-size: var(--zt-font-size-md);--zt-time-picker-unit-background: var(--zt-white)}.zt-theme-dark{--zt-time-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1));--zt-time-picker-unit-background: rgba(255, 255, 255, .04)}.zt-time-picker{position:relative;background:var(--zt-time-picker-background);-webkit-user-select:none;user-select:none}.zt-time-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-time-picker-toolbar-height)}.zt-time-picker__cancel,.zt-time-picker__confirm{width:50%}.zt-time-picker__cancel{background:#ffffff;margin:var(--zt-time-picker-cancel-margin)}.zt-time-picker__confirm{margin:var(--zt-time-picker-confirm-margin)}.zt-time-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-time-picker-title-height);border-radius:var(--zt-time-picker-title-border-radius);font-size:var(--zt-time-picker-title-font-size);background:#ffffff;color:var(--zt-time-picker-title-text-color)}.zt-time-picker__columns{background:var(--zt-time-picker-background);position:relative;display:flex;cursor:-webkit-grab;cursor:grab;padding:16px 0;justify-content:space-evenly}.zt-time-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--zt-time-picker-loading-icon-color);background:var(--zt-time-picker-loading-mask-color)}.zt-time-picker__frame{position:absolute;top:50%;z-index:2;transform:translateY(-50%);pointer-events:none;width:100%;background:var(--zt-time-picker-frame-background-color)}.zt-time-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--zt-time-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.zt-time-picker__separator{position:absolute;display:flex;align-items:center;width:100%;height:100%;top:0}.zt-time-picker__colon{position:relative}.zt-time-picker__colon:only-child{left:50%}.zt-time-picker__colon:not(:only-child):first-child{left:35%}.zt-time-picker__colon:not(:only-child):last-child{left:65%}.zt-time-picker__colon:before{position:absolute;content:" ";width:6px;height:6px;border-radius:50%;background:var(--zt-gray);left:calc(50% - 3px);top:calc(50% - 9px)}.zt-time-picker__colon:after{position:absolute;content:" ";width:6px;height:6px;border-radius:50%;background:var(--zt-gray);left:calc(50% - 3px);top:calc(50% + 3px)}.zt-time-picker-column{position:relative;overflow:hidden;font-size:var(--zt-time-picker-option-font-size);background:var(--zt-gray-a04);border-radius:var(--zt-time-picker-option-radius)}.zt-time-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-time-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--zt-time-picker-option-padding);color:var(--zt-time-picker-option-text-color)}.zt-time-picker-column__item--disabled{cursor:not-allowed;opacity:var(--zt-time-picker-option-disabled-opacity)}.zt-time-picker-column__unit{position:absolute;display:flex;align-items:center;justify-content:center;background:var(--zt-time-picker-unit-background);color:var(--zt-time-picker-option-text-color);font-size:var(--zt-time-picker-option-font-size);width:100%;height:100%}.zt-time-picker-column__unit-text{margin:0 4px;font-size:var(--zt-time-picker-unit-font-size);font-weight:700}.zt-time-picker-column__arrow-top{width:16px;height:6px;position:absolute;top:8px;left:calc(50% - 8px)}.zt-time-picker-column__arrow-bottom{width:16px;height:6px;transform:rotate(180deg);position:absolute;bottom:8px;left:calc(50% - 8px)}
1
+ :root{--zt-time-picker-cancel-margin: 8px 4px 8px 16px;--zt-time-picker-confirm-margin: 8px 16px 8px 4px;--zt-time-picker-title-height: 44px;--zt-time-picker-title-border-radius: 16px 16px 0 0;--zt-time-picker-frame-background-color: var(--zt-gray-a04);--zt-time-picker-cancel-background-color: var(--zt-white);--zt-time-picker-title-text-color: var(--zt-gray-a4);--zt-time-picker-background: var(--zt-background-2);--zt-time-picker-toolbar-height: 60px;--zt-time-picker-action-padding: 0 var(--zt-padding-md);--zt-time-picker-confirm-action-color: var(--zt-white);--zt-time-picker-cancel-action-color: var(--zt-text-color);--zt-time-picker-option-radius: 8px;--zt-time-picker-option-padding: 0 var(--zt-padding-base);--zt-time-picker-option-text-color: var(--zt-text-color);--zt-time-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-time-picker-loading-icon-color: var(--zt-primary-color);--zt-time-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-time-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4));--zt-time-picker-unit-background: var(--zt-white);--zt-time-picker-unit-font-size: 24px}:root[zt-theme-size=large]{--zt-time-picker-unit-font-size: 30px}.zt-theme-dark{--zt-time-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1));--zt-time-picker-unit-background: rgba(255, 255, 255, .04)}.zt-time-picker{position:relative;background:var(--zt-time-picker-background);-webkit-user-select:none;user-select:none}.zt-time-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-time-picker-toolbar-height)}.zt-time-picker__cancel,.zt-time-picker__confirm{width:50%}.zt-time-picker__cancel{background:#ffffff;margin:var(--zt-time-picker-cancel-margin)}.zt-time-picker__confirm{margin:var(--zt-time-picker-confirm-margin)}.zt-time-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-time-picker-title-height);border-radius:var(--zt-time-picker-title-border-radius);font-size:var(--zt-font-size-md);background:#ffffff;color:var(--zt-time-picker-title-text-color)}.zt-time-picker__columns{background:var(--zt-time-picker-background);position:relative;display:flex;cursor:-webkit-grab;cursor:grab;padding:16px 0;justify-content:space-evenly}.zt-time-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--zt-time-picker-loading-icon-color);background:var(--zt-time-picker-loading-mask-color)}.zt-time-picker__frame{position:absolute;top:50%;z-index:2;transform:translateY(-50%);pointer-events:none;width:100%;background:var(--zt-time-picker-frame-background-color)}.zt-time-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--zt-time-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.zt-time-picker__separator{position:absolute;display:flex;align-items:center;width:100%;height:100%;top:0}.zt-time-picker__colon{position:relative}.zt-time-picker__colon:only-child{left:50%}.zt-time-picker__colon:not(:only-child):first-child{left:35%}.zt-time-picker__colon:not(:only-child):last-child{left:65%}.zt-time-picker__colon:before{position:absolute;content:" ";width:6px;height:6px;border-radius:50%;background:var(--zt-gray);left:calc(50% - 3px);top:calc(50% - 9px)}.zt-time-picker__colon:after{position:absolute;content:" ";width:6px;height:6px;border-radius:50%;background:var(--zt-gray);left:calc(50% - 3px);top:calc(50% + 3px)}.zt-time-picker-column{position:relative;overflow:hidden;font-size:var(--zt-time-picker-unit-font-size);background:var(--zt-gray-a04);border-radius:var(--zt-time-picker-option-radius)}.zt-time-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-time-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--zt-time-picker-option-padding);color:var(--zt-time-picker-option-text-color)}.zt-time-picker-column__item--disabled{cursor:not-allowed;opacity:var(--zt-time-picker-option-disabled-opacity)}.zt-time-picker-column__unit{position:absolute;display:flex;align-items:center;justify-content:center;background:var(--zt-time-picker-unit-background);color:var(--zt-time-picker-option-text-color);font-size:var(--zt-time-picker-unit-font-size);width:100%;height:100%}.zt-time-picker-column__unit-text{margin:0 4px;font-size:var(--zt-font-size-md);font-weight:700}.zt-time-picker-column__arrow-top{width:16px;height:6px;position:absolute;top:8px;left:calc(50% - 8px)}.zt-time-picker-column__arrow-bottom{width:16px;height:6px;transform:rotate(180deg);position:absolute;bottom:8px;left:calc(50% - 8px)}
@@ -181,9 +181,9 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
181
181
  loading: boolean;
182
182
  showTitle: boolean;
183
183
  allowHtml: boolean;
184
- optionHeight: string | number;
185
- showToolbar: boolean;
186
184
  swipeDuration: string | number;
185
+ showToolbar: boolean;
186
+ optionHeight: string | number;
187
187
  visibleOptionNum: string | number;
188
188
  columnsUnit: string[];
189
189
  minHour: string | number;
@@ -198,6 +198,7 @@ export default TimePicker;
198
198
  export { timePickerProps } from './TimePicker';
199
199
  export type { TimePickerProps };
200
200
  export type { TimePickerColumnType } from './TimePicker';
201
+ export type { TimePickerThemeVars } from './types';
201
202
  declare module 'vue' {
202
203
  interface GlobalComponents {
203
204
  ZtTimePicker: typeof TimePicker;
@@ -0,0 +1,23 @@
1
+ export type TimePickerThemeVars = {
2
+ timePickerCancelMargin?: string;
3
+ timePickerConfirmMargin?: string;
4
+ timePickerTitleHeight?: string;
5
+ timePickerTitleBorderRadius?: string;
6
+ timePickerFrameBackgroundColor?: string;
7
+ timePickerCancelBackgroundColor?: string;
8
+ timePickerTitleTextColor?: string;
9
+ timePickerBackground?: string;
10
+ timePickerToolbarHeight?: string;
11
+ timePickerActionPadding?: string;
12
+ timePickerConfirmActionColor?: string;
13
+ timePickerCancelActionColor?: string;
14
+ timePickerOptionRadius?: string;
15
+ timePickerOptionPadding?: string;
16
+ timePickerOptionTextColor?: string;
17
+ timePickerOptionDisabledOpacity?: string;
18
+ timePickerLoadingIconColor?: string;
19
+ timePickerLoadingMaskColor?: string;
20
+ timePickerMaskColor?: string;
21
+ timePickerUnitBackground?: string;
22
+ timePickerUnitFontSize?: string;
23
+ };
File without changes
@@ -1 +1 @@
1
- :root{--zt-timeline-title-color: var(--zt-gray);--zt-timeline-sub-title-color: var(--zt-gray-a6);--zt-timeline-content-color: var(--zt-gray);--zt-timeline-background: var(--zt-white);--zt-timeline-bar-background: var(--zt-primary-color);--zt-timeline-time-color: var(--zt-gray-a8)}.zt-timeline{background-color:var(--zt-timeline-background)}.zt-timeline__top-bar{height:44px;display:flex;justify-content:space-between;align-items:center}.zt-timeline__top-left{display:flex;align-items:center}.zt-timeline__bar{width:4px;height:16px;background:var(--zt-timeline-bar-background);margin-right:12px}.zt-timeline__title{font-size:16px;font-weight:700;color:var(--zt-timeline-title-color);line-height:24px}.zt-timeline__top-right{padding-right:16px;display:flex;align-items:center}.zt-timeline__top-right .zt-switch--on{background:var(--zt-timeline-bar-background)}.zt-timeline__fold-text{font-size:16px;color:var(--zt-gray-a6);line-height:24px;margin-right:8px}.zt-timeline__container{padding-top:16px}.zt-timeline__item{padding:0 16px 16px;display:flex}.zt-timeline__item.last-item .zt-timeline__line-dot,.zt-timeline__item.last-item .zt-timeline__line{height:0}.zt-timeline__item.last-item .zt-timeline__dot{border-color:var(--zt-timeline-bar-background)}.zt-timeline__left-container{margin-right:8px;display:flex;flex-direction:column;align-items:center;position:relative}.zt-timeline__right-container{flex:1}.zt-timeline__dot-container{top:5px}.zt-timeline__dot{width:12px;height:12px;background-color:#fff;border:1px solid rgba(45,75,115,.2);border-radius:50%;z-index:2}.zt-timeline__avatar-box{width:40px;height:40px;z-index:2}.zt-timeline__avatar{width:40px;height:40px;background:#0091fa;border-radius:4px;font-size:14px;font-weight:700;text-align:center;color:#fff;line-height:40px}.zt-timeline__line{background-color:#f5f5f5;width:2px;height:100%;margin-top:4px;margin-bottom:-12px}.zt-timeline__line-dot{position:absolute;background-color:#f5f5f5;width:2px;height:calc(100% + 16px)}.zt-timeline__title-box{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.zt-timeline__time{font-size:12px;color:var(--zt-timeline-time-color);line-height:16px}.zt-timeline__content-box{font-size:14px;color:var(--zt-timeline-content-color);line-height:20px;padding-bottom:8px}.zt-timeline__main-container{background:rgba(0,0,0,.02);border-radius:4px;padding:8px 12px}.zt-timeline__main-container:before{border-radius:4px}.zt-timeline__main-container .zt-timeline__text-bold{font-weight:700}.zt-timeline__opinion-box{padding-top:7px}.zt-timeline__opinion-label{margin-bottom:4px;font-size:14px;color:var(--zt-timeline-sub-title-color);line-height:20px}.zt-timeline__opinion{font-size:14px;color:var(--zt-timeline-content-color);line-height:20px;word-break:break-all}
1
+ :root{--zt-timeline-title-color: var(--zt-gray);--zt-timeline-sub-title-color: var(--zt-gray-a6);--zt-timeline-content-color: var(--zt-gray);--zt-timeline-background: var(--zt-white);--zt-timeline-bar-background: var(--zt-primary-color);--zt-timeline-time-color: var(--zt-gray-a8);--zt-timeline-avatar-size: 40px}:root[zt-theme-size=large]{--zt-timeline-avatar-size: 52px}.zt-timeline{background-color:var(--zt-timeline-background)}.zt-timeline__top-bar{height:44px;display:flex;justify-content:space-between;align-items:center}.zt-timeline__top-left{display:flex;align-items:center}.zt-timeline__bar{width:4px;height:16px;background:var(--zt-timeline-bar-background);margin-right:12px}.zt-timeline__title{flex:7;font-size:var(--zt-font-size-lg);font-weight:700;color:var(--zt-timeline-title-color);line-height:var(--zt-line-height-xl)}.zt-timeline__top-right{padding-right:16px;display:flex;align-items:center}.zt-timeline__top-right .zt-switch--on{background:var(--zt-timeline-bar-background)}.zt-timeline__fold-text{font-size:var(--zt-font-size-lg);color:var(--zt-gray-a6);line-height:var(--zt-line-height-xl);margin-right:8px}.zt-timeline__container{padding-top:16px}.zt-timeline__item{padding:0 16px 16px;display:flex}.zt-timeline__item.last-item .zt-timeline__line-dot,.zt-timeline__item.last-item .zt-timeline__line{height:0}.zt-timeline__item.last-item .zt-timeline__dot{border-color:var(--zt-timeline-bar-background)}.zt-timeline__left-container{margin-right:8px;display:flex;flex-direction:column;align-items:center;position:relative}.zt-timeline__right-container{flex:1}.zt-timeline__dot-container{top:5px}.zt-timeline__dot{width:12px;height:12px;background-color:#fff;border:1px solid rgba(45,75,115,.2);border-radius:50%;z-index:2}.zt-timeline__avatar-box{width:var(--zt-timeline-avatar-size);height:var(--zt-timeline-avatar-size);z-index:2}.zt-timeline__avatar{width:var(--zt-timeline-avatar-size);height:var(--zt-timeline-avatar-size);background:var(--zt-primary-color);border-radius:4px;font-size:var(--zt-font-size-md);font-weight:700;text-align:center;color:#fff;line-height:var(--zt-timeline-avatar-size)}.zt-timeline__line{background-color:#f5f5f5;width:2px;height:100%;margin-top:4px;margin-bottom:-12px}.zt-timeline__line-dot{position:absolute;background-color:#f5f5f5;width:2px;height:calc(100% + 16px)}.zt-timeline__title-box{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.zt-timeline__time{flex:5;text-align:right;font-size:var(--zt-font-size-sm);color:var(--zt-timeline-time-color);line-height:var(--zt-line-height-xs)}.zt-timeline__content-box{font-size:var(--zt-font-size-md);color:var(--zt-timeline-content-color);line-height:var(--zt-line-height-md);padding-bottom:8px}.zt-timeline__main-container{background:rgba(0,0,0,.02);border-radius:4px;padding:8px 12px}.zt-timeline__main-container:before{border-radius:4px}.zt-timeline__main-container .zt-timeline__text-bold{font-weight:700}.zt-timeline__opinion-box{padding-top:7px}.zt-timeline__opinion-label{margin-bottom:4px;font-size:var(--zt-font-size-md);color:var(--zt-timeline-sub-title-color);line-height:var(--zt-line-height-md)}.zt-timeline__opinion{font-size:var(--zt-font-size-md);color:var(--zt-timeline-content-color);line-height:var(--zt-line-height-md);word-break:break-all}
@@ -68,6 +68,7 @@ export declare const Timeline: import("../utils").WithInstall<import("vue").Defi
68
68
  export default Timeline;
69
69
  export { timelineProps } from './Timeline';
70
70
  export type { TimelineProcessOption, TimelineProps } from './Timeline';
71
+ export type { TimelineThemeVars } from './types';
71
72
  declare module 'vue' {
72
73
  interface GlobalComponents {
73
74
  ZtTimeline: typeof Timeline;
@@ -0,0 +1,9 @@
1
+ export type TimelineThemeVars = {
2
+ timelineTitleColor?: string;
3
+ timelineSubTitleColor?: string;
4
+ timelineContentColor?: string;
5
+ timelineBackground?: string;
6
+ timelineBarBackground?: string;
7
+ timelineTimeColor?: string;
8
+ timelineAvatarSize?: string;
9
+ };
File without changes
@@ -1 +1 @@
1
- :root{--zt-toast-max-width: 70%;--zt-toast-font-size: var(--zt-font-size-md);--zt-toast-text-color: var(--zt-white);--zt-toast-loading-icon-color: var(--zt-white);--zt-toast-line-height: var(--zt-line-height-md);--zt-toast-radius: var(--zt-radius-lg);--zt-toast-background: var(--zt-gray-a8);--zt-toast-icon-size: 36px;--zt-toast-text-min-width: 96px;--zt-toast-text-padding: var(--zt-padding-xs) var(--zt-padding-sm);--zt-toast-default-padding: var(--zt-padding-md);--zt-toast-default-width: 88px;--zt-toast-default-min-height: 84px;--zt-toast-position-top-distance: 20%;--zt-toast-position-bottom-distance: 20%}.zt-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--zt-duration-fast);width:var(--zt-toast-default-width);max-width:var(--zt-toast-max-width);min-height:var(--zt-toast-default-min-height);padding:var(--zt-toast-default-padding);color:var(--zt-toast-text-color);font-size:var(--zt-toast-font-size);line-height:var(--zt-toast-line-height);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--zt-toast-background);border-radius:var(--zt-toast-radius)}.zt-toast--break-normal{word-break:normal;word-wrap:normal}.zt-toast--break-word{word-break:normal;word-wrap:break-word}.zt-toast--unclickable{overflow:hidden;cursor:not-allowed}.zt-toast--unclickable *{pointer-events:none}.zt-toast--text,.zt-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--zt-toast-text-min-width);min-height:0;padding:var(--zt-toast-text-padding)}.zt-toast--text .zt-toast__text,.zt-toast--html .zt-toast__text{margin-top:0}.zt-toast--top{top:var(--zt-toast-position-top-distance)}.zt-toast--bottom{top:auto;bottom:var(--zt-toast-position-bottom-distance)}.zt-toast__icon{font-size:var(--zt-toast-icon-size)}.zt-toast__loading{padding:var(--zt-padding-base);color:var(--zt-toast-loading-icon-color)}.zt-toast__text{margin-top:var(--zt-padding-xs)}.zt-theme-dark{--zt-toast-background: var(--zt-gray-a1)}
1
+ :root{--zt-toast-max-width: 70%;--zt-toast-text-color: var(--zt-white);--zt-toast-loading-icon-color: var(--zt-white);--zt-toast-radius: var(--zt-radius-lg);--zt-toast-background: var(--zt-gray-a8);--zt-toast-text-min-width: 96px;--zt-toast-text-padding: var(--zt-padding-xs) var(--zt-padding-sm);--zt-toast-default-padding: var(--zt-padding-md);--zt-toast-default-width: 88px;--zt-toast-default-min-height: 84px;--zt-toast-position-top-distance: 20%;--zt-toast-position-bottom-distance: 20%;--zt-toast-icon-font-size: 36px}:root[zt-theme-size=large]{--zt-toast-icon-font-size: 42px}.zt-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--zt-duration-fast);width:var(--zt-toast-default-width);max-width:var(--zt-toast-max-width);min-height:var(--zt-toast-default-min-height);padding:var(--zt-toast-default-padding);color:var(--zt-toast-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--zt-toast-background);border-radius:var(--zt-toast-radius)}.zt-toast--break-normal{word-break:normal;word-wrap:normal}.zt-toast--break-word{word-break:normal;word-wrap:break-word}.zt-toast--unclickable{overflow:hidden;cursor:not-allowed}.zt-toast--unclickable *{pointer-events:none}.zt-toast--text,.zt-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--zt-toast-text-min-width);min-height:0;padding:var(--zt-toast-text-padding)}.zt-toast--text .zt-toast__text,.zt-toast--html .zt-toast__text{margin-top:0}.zt-toast--top{top:var(--zt-toast-position-top-distance)}.zt-toast--bottom{top:auto;bottom:var(--zt-toast-position-bottom-distance)}.zt-toast__icon{font-size:var(--zt-toast-icon-font-size)}.zt-toast__loading{padding:var(--zt-padding-base);color:var(--zt-toast-loading-icon-color)}.zt-toast__text{margin-top:var(--zt-padding-xs)}.zt-theme-dark{--zt-toast-background: var(--zt-gray-a1)}
@@ -78,7 +78,7 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
78
78
  export default Toast;
79
79
  export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
80
80
  export type { ToastProps } from './Toast';
81
- export type { ToastType, ToastOptions, ToastPosition, ToastWordBreak, ToastWrapperInstance, } from './types';
81
+ export type { ToastType, ToastOptions, ToastPosition, ToastWordBreak, ToastWrapperInstance, ToastThemeVars, } from './types';
82
82
  declare module 'vue' {
83
83
  interface GlobalComponents {
84
84
  ZtToast: typeof Toast;
@@ -36,3 +36,18 @@ export type ToastWrapperInstance = ComponentPublicInstance<{
36
36
  */
37
37
  open: (props: Record<string, any>) => void;
38
38
  }>;
39
+ export type ToastThemeVars = {
40
+ toastMaxWidth?: string;
41
+ toastTextColor?: string;
42
+ toastLoadingIconColor?: string;
43
+ toastRadius?: string;
44
+ toastBackground?: string;
45
+ toastTextMinWidth?: string;
46
+ toastTextPadding?: string;
47
+ toastDefaultPadding?: string;
48
+ toastDefaultWidth?: string;
49
+ toastDefaultMinHeight?: string;
50
+ toastPositionTopDistance?: string;
51
+ toastPositionBottomDistance?: string;
52
+ toastIconFontSize?: string;
53
+ };
@@ -1 +1 @@
1
- :root{--zt-uploader-size: 80px;--zt-uploader-icon-size: 24px;--zt-uploader-icon-color: var(--zt-gray-4);--zt-uploader-text-color: var(--zt-gray-a2);--zt-uploader-text-font-size: var(--zt-font-size-sm);--zt-uploader-upload-background: var(--zt-gray-a1);--zt-uploader-upload-active-color: var(--zt-active-color);--zt-uploader-delete-color: var(--zt-white);--zt-uploader-delete-icon-size: 14px;--zt-uploader-delete-background: rgba(0, 0, 0, .7);--zt-uploader-file-background: var(--zt-background);--zt-uploader-file-icon-size: 20px;--zt-uploader-file-icon-color: var(--zt-gray-7);--zt-uploader-file-name-padding: 0 var(--zt-padding-base);--zt-uploader-file-name-margin-top: var(--zt-padding-xs);--zt-uploader-file-name-font-size: var(--zt-font-size-sm);--zt-uploader-file-name-text-color: var(--zt-gray-7);--zt-uploader-mask-text-color: var(--zt-white);--zt-uploader-mask-background: rgba(50, 50, 51, .88);--zt-uploader-mask-icon-size: 22px;--zt-uploader-mask-message-font-size: var(--zt-font-size-sm);--zt-uploader-mask-message-line-height: var(--zt-line-height-xs);--zt-uploader-loading-icon-size: 22px;--zt-uploader-loading-icon-color: var(--zt-white);--zt-uploader-disabled-opacity: var(--zt-disabled-opacity)}.zt-uploader{position:relative;display:inline-block}.zt-uploader__wrapper{display:flex;flex-wrap:wrap}.zt-uploader__wrapper--disabled{opacity:var(--zt-uploader-disabled-opacity)}.zt-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.zt-uploader__input-wrapper{position:relative}.zt-uploader__input:disabled{cursor:not-allowed}.zt-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--zt-uploader-size);height:var(--zt-uploader-size);margin:0 var(--zt-padding-xs) var(--zt-padding-xs) 0;background:var(--zt-uploader-upload-background)}.zt-uploader__upload:active{background-color:var(--zt-uploader-upload-active-color)}.zt-uploader__upload--readonly:active{background-color:var(--zt-uploader-upload-background)}.zt-uploader__upload-icon{color:var(--zt-uploader-icon-color);font-size:var(--zt-uploader-icon-size)}.zt-uploader__upload-text{margin-top:var(--zt-padding-xs);color:var(--zt-uploader-text-color);font-size:var(--zt-uploader-text-font-size)}.zt-uploader__preview{position:relative;margin:0 var(--zt-padding-xs) var(--zt-padding-xs) 0;cursor:pointer}.zt-uploader__preview-image{display:block;width:var(--zt-uploader-size);height:var(--zt-uploader-size);overflow:hidden}.zt-uploader__preview-delete{position:absolute;top:0;right:0}.zt-uploader__preview-delete--shadow{width:var(--zt-uploader-delete-icon-size);height:var(--zt-uploader-delete-icon-size);background:var(--zt-uploader-delete-background);border-radius:0 0 0 12px}.zt-uploader__preview-delete-icon{position:absolute;top:0;right:0;color:var(--zt-uploader-delete-color);font-size:var(--zt-uploader-delete-icon-size);transform:scale(.7) translate(10%,-10%)}.zt-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.zt-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--zt-uploader-mask-text-color);background:var(--zt-uploader-mask-background)}.zt-uploader__mask-icon{font-size:var(--zt-uploader-mask-icon-size)}.zt-uploader__mask-message{margin-top:6px;padding:0 var(--zt-padding-base);font-size:var(--zt-uploader-mask-message-font-size);line-height:var(--zt-uploader-mask-message-line-height)}.zt-uploader__loading{width:var(--zt-uploader-loading-icon-size);height:var(--zt-uploader-loading-icon-size);color:var(--zt-uploader-loading-icon-color)}.zt-uploader__file{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--zt-uploader-size);height:var(--zt-uploader-size);background:var(--zt-uploader-file-background)}.zt-uploader__file-icon{color:var(--zt-uploader-file-icon-color);font-size:var(--zt-uploader-file-icon-size)}.zt-uploader__file-name{box-sizing:border-box;width:100%;margin-top:var(--zt-uploader-file-name-margin-top);padding:var(--zt-uploader-file-name-padding);color:var(--zt-uploader-file-name-text-color);font-size:var(--zt-uploader-file-name-font-size);text-align:center}
1
+ :root{--zt-uploader-size: 80px;--zt-uploader-icon-color: var(--zt-gray-4);--zt-uploader-text-color: var(--zt-gray-a2);--zt-uploader-upload-background: var(--zt-gray-a1);--zt-uploader-upload-icon-font-size: 24px;--zt-uploader-upload-active-color: var(--zt-active-color);--zt-uploader-delete-color: var(--zt-white);--zt-uploader-delete-icon-size: 14px;--zt-uploader-delete-background: rgba(0, 0, 0, .7);--zt-uploader-file-background: var(--zt-background);--zt-uploader-file-icon-color: var(--zt-gray-7);--zt-uploader-file-name-padding: 0 var(--zt-padding-base);--zt-uploader-file-name-margin-top: var(--zt-padding-xs);--zt-uploader-file-name-text-color: var(--zt-gray-7);--zt-uploader-mask-text-color: var(--zt-white);--zt-uploader-mask-background: rgba(50, 50, 51, .88);--zt-uploader-loading-icon-size: 22px;--zt-uploader-loading-icon-color: var(--zt-white);--zt-uploader-disabled-opacity: var(--zt-disabled-opacity)}:root[zt-theme-size=large]{--zt-uploader-upload-icon-font-size: 30px}.zt-uploader{position:relative;display:inline-block}.zt-uploader__wrapper{display:flex;flex-wrap:wrap}.zt-uploader__wrapper--disabled{opacity:var(--zt-uploader-disabled-opacity)}.zt-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.zt-uploader__input-wrapper{position:relative}.zt-uploader__input:disabled{cursor:not-allowed}.zt-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--zt-uploader-size);height:var(--zt-uploader-size);margin:0 var(--zt-padding-xs) var(--zt-padding-xs) 0;background:var(--zt-uploader-upload-background)}.zt-uploader__upload:active{background-color:var(--zt-uploader-upload-active-color)}.zt-uploader__upload--readonly:active{background-color:var(--zt-uploader-upload-background)}.zt-uploader__upload-icon{color:var(--zt-uploader-icon-color);font-size:var(--zt-uploader-upload-icon-font-size)}.zt-uploader__upload-text{margin-top:var(--zt-padding-xs);color:var(--zt-uploader-text-color);font-size:var(--zt-font-size-sm)}.zt-uploader__preview{position:relative;margin:0 var(--zt-padding-xs) var(--zt-padding-xs) 0;cursor:pointer}.zt-uploader__preview-image{display:block;width:var(--zt-uploader-size);height:var(--zt-uploader-size);overflow:hidden}.zt-uploader__preview-delete{position:absolute;top:0;right:0}.zt-uploader__preview-delete--shadow{width:var(--zt-uploader-delete-icon-size);height:var(--zt-uploader-delete-icon-size);background:var(--zt-uploader-delete-background);border-radius:0 0 0 12px}.zt-uploader__preview-delete-icon{position:absolute;top:0;right:0;color:var(--zt-uploader-delete-color);font-size:var(--zt-font-size-md);transform:scale(.7) translate(10%,-10%)}.zt-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.zt-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--zt-uploader-mask-text-color);background:var(--zt-uploader-mask-background)}.zt-uploader__mask-icon{font-size:var(--zt-font-size-xxxl)}.zt-uploader__mask-message{margin-top:6px;padding:0 var(--zt-padding-base);font-size:var(--zt-font-size-sm);line-height:var(--zt-line-height-xs)}.zt-uploader__loading{width:var(--zt-uploader-loading-icon-size);height:var(--zt-uploader-loading-icon-size);color:var(--zt-uploader-loading-icon-color)}.zt-uploader__file{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--zt-uploader-size);height:var(--zt-uploader-size);background:var(--zt-uploader-file-background)}.zt-uploader__file-icon{color:var(--zt-uploader-file-icon-color);font-size:var(--zt-font-size-xxl)}.zt-uploader__file-name{box-sizing:border-box;width:100%;margin-top:var(--zt-uploader-file-name-margin-top);padding:var(--zt-uploader-file-name-padding);color:var(--zt-uploader-file-name-text-color);font-size:var(--zt-font-size-sm);text-align:center}
@@ -147,7 +147,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
147
147
  export default Uploader;
148
148
  export { uploaderProps } from './Uploader';
149
149
  export type { UploaderProps };
150
- export type { UploaderInstance, UploaderResultType, UploaderFileListItem, } from './types';
150
+ export type { UploaderInstance, UploaderResultType, UploaderFileListItem, UploaderThemeVars, } from './types';
151
151
  declare module 'vue' {
152
152
  interface GlobalComponents {
153
153
  ZtUploader: typeof Uploader;
@@ -29,3 +29,24 @@ export type UploaderExpose = {
29
29
  closeImagePreview: () => void;
30
30
  };
31
31
  export type UploaderInstance = ComponentPublicInstance<UploaderProps, UploaderExpose>;
32
+ export type UploaderThemeVars = {
33
+ uploaderSize?: string;
34
+ uploaderIconColor?: string;
35
+ uploaderTextColor?: string;
36
+ uploaderUploadBackground?: string;
37
+ uploaderUploadActiveColor?: string;
38
+ uploaderDeleteColor?: string;
39
+ uploaderDeleteIconSize?: string;
40
+ uploaderDeleteBackground?: string;
41
+ uploaderFileBackground?: string;
42
+ uploaderFileIconColor?: string;
43
+ uploaderFileNamePadding?: string;
44
+ uploaderFileNameMarginTop?: string;
45
+ uploaderFileNameTextColor?: string;
46
+ uploaderMaskTextColor?: string;
47
+ uploaderMaskBackground?: string;
48
+ uploaderLoadingIconSize?: string;
49
+ uploaderLoadingIconColor?: string;
50
+ uploaderDisabledOpacity?: string;
51
+ uploaderUploadIconFontSize?: string;
52
+ };
@@ -1,6 +1,6 @@
1
- declare module '*.vue' {
2
- // eslint-disable-next-line
3
- import { DefineComponent } from 'vue';
4
- const Component: DefineComponent;
5
- export default Component;
6
- }
1
+ declare module '*.vue' {
2
+ // eslint-disable-next-line
3
+ import { DefineComponent } from 'vue';
4
+ const Component: DefineComponent;
5
+ export default Component;
6
+ }
@@ -1,23 +1,23 @@
1
- import 'vue';
2
-
3
- type EventHandler = (...args: any[]) => void;
4
-
5
- declare module 'vue' {
6
- interface ComponentCustomProps {
7
- id?: string;
8
- role?: string;
9
- tabindex?: number;
10
- onClick?: EventHandler;
11
- onTouchend?: EventHandler;
12
- onTouchmove?: EventHandler;
13
- onTouchstart?: EventHandler;
14
- onTouchcancel?: EventHandler;
15
- onTouchmovePassive?: EventHandler;
16
- onTouchstartPassive?: EventHandler;
17
- }
18
-
19
- interface HTMLAttributes {
20
- onTouchmovePassive?: EventHandler;
21
- onTouchstartPassive?: EventHandler;
22
- }
23
- }
1
+ import 'vue';
2
+
3
+ type EventHandler = (...args: any[]) => void;
4
+
5
+ declare module 'vue' {
6
+ interface ComponentCustomProps {
7
+ id?: string;
8
+ role?: string;
9
+ tabindex?: number;
10
+ onClick?: EventHandler;
11
+ onTouchend?: EventHandler;
12
+ onTouchmove?: EventHandler;
13
+ onTouchstart?: EventHandler;
14
+ onTouchcancel?: EventHandler;
15
+ onTouchmovePassive?: EventHandler;
16
+ onTouchstartPassive?: EventHandler;
17
+ }
18
+
19
+ interface HTMLAttributes {
20
+ onTouchmovePassive?: EventHandler;
21
+ onTouchstartPassive?: EventHandler;
22
+ }
23
+ }
@@ -1 +1 @@
1
- :root{--zt-action-sheet-max-height: 80%;--zt-action-sheet-header-height: 44px;--zt-action-sheet-header-font-size: var(--zt-font-size-lg);--zt-action-sheet-description-color: var(--zt-gray-a4);--zt-action-sheet-description-font-size: var(--zt-font-size-md);--zt-action-sheet-description-line-height: var(--zt-line-height-md);--zt-action-sheet-item-background: var(--zt-background-2);--zt-action-sheet-item-font-size: var(--zt-font-size-lg);--zt-action-sheet-item-line-height: 24px;--zt-action-sheet-item-text-color: var(--zt-text-color);--zt-action-sheet-item-disabled-text-color: var(--zt-gray-a2);--zt-action-sheet-subname-color: var(--zt-gray-a6);--zt-action-sheet-subname-font-size: var(--zt-font-size-sm);--zt-action-sheet-subname-line-height: var(--zt-line-height-xs);--zt-action-sheet-close-icon-size: 22px;--zt-action-sheet-close-icon-color: var(--zt-gray-5);--zt-action-sheet-close-icon-padding: 0 var(--zt-padding-md);--zt-action-sheet-cancel-text-color: var(--zt-text-color);--zt-action-sheet-loading-icon-size: 16px;--zt-action-sheet-description-background: var(--zt-background-2)}.zt-action-sheet{display:flex;flex-direction:column;max-height:var(--zt-action-sheet-max-height);overflow:hidden;color:var(--zt-action-sheet-item-text-color)}.zt-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.zt-action-sheet__item,.zt-action-sheet__cancel{display:block;width:100%;padding:10px var(--zt-padding-md);font-size:var(--zt-action-sheet-item-font-size);background:var(--zt-action-sheet-item-background);border:none;cursor:pointer}.zt-action-sheet__item{line-height:var(--zt-action-sheet-item-line-height)}.zt-action-sheet__item:active{background-color:var(--zt-gray-a04)}.zt-action-sheet__item--loading,.zt-action-sheet__item--disabled{color:var(--zt-action-sheet-item-disabled-text-color)}.zt-action-sheet__item--loading:active,.zt-action-sheet__item--disabled:active{background-color:var(--zt-action-sheet-item-background)}.zt-action-sheet__item--disabled{cursor:not-allowed}.zt-action-sheet__item--loading{cursor:default}.zt-action-sheet__item--with-sub{padding-top:8px;padding-bottom:8px}.zt-action-sheet__cancel{padding:8px 16px;flex-shrink:0;box-sizing:border-box;color:var(--zt-action-sheet-cancel-text-color)}.zt-action-sheet__cancel-btn{width:100%;border:none;cursor:pointer;background-color:var(--zt-gray-a04);border-radius:20px;height:44px;font-size:16px;color:var(--zt-text-color);line-height:24px}.zt-action-sheet__cancel-btn:active{opacity:var(--zt-active-opacity)}.zt-action-sheet__subname{margin-top:var(--zt-padding-xxs);color:var(--zt-action-sheet-subname-color);font-size:var(--zt-action-sheet-subname-font-size);line-height:var(--zt-action-sheet-subname-line-height)}.zt-action-sheet__header{flex-shrink:0;font-weight:var(--zt-font-bold);font-size:var(--zt-action-sheet-header-font-size);line-height:var(--zt-action-sheet-header-height);text-align:center}.zt-action-sheet__description{background:var(--zt-action-sheet-description-background);position:relative;flex-shrink:0;padding:12px var(--zt-padding-md);color:var(--zt-action-sheet-description-color);font-size:var(--zt-action-sheet-description-font-size);line-height:var(--zt-action-sheet-description-line-height);text-align:center}.zt-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-action-sheet__description--custom{padding:0}.zt-action-sheet__loading-icon .zt-loading__spinner{width:var(--zt-action-sheet-loading-icon-size);height:var(--zt-action-sheet-loading-icon-size)}.zt-action-sheet__close{position:absolute;top:0;right:0;padding:var(--zt-action-sheet-close-icon-padding);color:var(--zt-action-sheet-close-icon-color);font-size:var(--zt-action-sheet-close-icon-size);line-height:inherit}
1
+ :root{--zt-action-sheet-max-height: 80%;--zt-action-sheet-header-height: 44px;--zt-action-sheet-description-color: var(--zt-gray-a4);--zt-action-sheet-item-background: var(--zt-background-2);--zt-action-sheet-item-text-color: var(--zt-text-color);--zt-action-sheet-item-disabled-text-color: var(--zt-gray-a2);--zt-action-sheet-subname-color: var(--zt-gray-a6);--zt-action-sheet-close-icon-color: var(--zt-gray-5);--zt-action-sheet-close-icon-padding: 0 var(--zt-padding-md);--zt-action-sheet-cancel-text-color: var(--zt-text-color);--zt-action-sheet-loading-icon-size: 16px;--zt-action-sheet-description-background: var(--zt-background-2)}:root[zt-theme-size=large]{--zt-action-sheet-header-height: 56px}.zt-action-sheet{display:flex;flex-direction:column;max-height:var(--zt-action-sheet-max-height);overflow:hidden;color:var(--zt-action-sheet-item-text-color)}.zt-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.zt-action-sheet__item,.zt-action-sheet__cancel{display:block;width:100%;padding:10px var(--zt-padding-md);font-size:var(--zt-font-size-lg);background:var(--zt-action-sheet-item-background);border:none;cursor:pointer}.zt-action-sheet__item{line-height:var(--zt-line-height-xl)}.zt-action-sheet__item:active{background-color:var(--zt-gray-a04)}.zt-action-sheet__item--loading,.zt-action-sheet__item--disabled{color:var(--zt-action-sheet-item-disabled-text-color)}.zt-action-sheet__item--loading:active,.zt-action-sheet__item--disabled:active{background-color:var(--zt-action-sheet-item-background)}.zt-action-sheet__item--disabled{cursor:not-allowed}.zt-action-sheet__item--loading{cursor:default}.zt-action-sheet__item--with-sub{padding-top:8px;padding-bottom:8px}.zt-action-sheet__cancel{padding:8px 16px;flex-shrink:0;box-sizing:border-box;color:var(--zt-action-sheet-cancel-text-color)}.zt-action-sheet__cancel-btn{width:100%;border:none;cursor:pointer;background-color:var(--zt-gray-a04);border-radius:20px;height:44px;font-size:var(--zt-font-size-lg);color:var(--zt-text-color);line-height:var(--zt-line-height-xl)}.zt-action-sheet__cancel-btn:active{opacity:var(--zt-active-opacity)}.zt-action-sheet__subname{margin-top:var(--zt-padding-xxs);color:var(--zt-action-sheet-subname-color);font-size:var(--zt-font-size-sm);line-height:var(--zt-line-height-xs)}.zt-action-sheet__header{flex-shrink:0;font-weight:var(--zt-font-bold);font-size:var(--zt-font-size-lg);line-height:var(--zt-action-sheet-header-height);text-align:center}.zt-action-sheet__description{background:var(--zt-action-sheet-description-background);position:relative;flex-shrink:0;padding:12px var(--zt-padding-md);color:var(--zt-action-sheet-description-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);text-align:center}.zt-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-action-sheet__description--custom{padding:0}.zt-action-sheet__loading-icon .zt-loading__spinner{width:var(--zt-action-sheet-loading-icon-size);height:var(--zt-action-sheet-loading-icon-size)}.zt-action-sheet__close{position:absolute;top:0;right:0;padding:var(--zt-action-sheet-close-icon-padding);color:var(--zt-action-sheet-close-icon-color);font-size:var(--zt-font-size-xxxl);line-height:inherit}
@@ -128,6 +128,7 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
128
128
  export default ActionSheet;
129
129
  export { actionSheetProps } from './ActionSheet';
130
130
  export type { ActionSheetProps, ActionSheetAction } from './ActionSheet';
131
+ export type { ActionSheetThemeVars } from './types';
131
132
  declare module 'vue' {
132
133
  interface GlobalComponents {
133
134
  ZtActionSheet: typeof ActionSheet;
@@ -0,0 +1,14 @@
1
+ export type ActionSheetThemeVars = {
2
+ actionSheetMaxHeight?: string;
3
+ actionSheetDescriptionColor?: string;
4
+ actionSheetItemBackground?: string;
5
+ actionSheetItemTextColor?: string;
6
+ actionSheetItemDisaabledTextColor?: string;
7
+ actionSheetSubnameColor?: string;
8
+ actionSheetCloseIconColor?: string;
9
+ actionSheetCloseIconPadding?: string;
10
+ actionSheetCancelTextColor?: string;
11
+ actionSheetLoadingIconSize?: string;
12
+ actionSheetDescriptionBackground?: string;
13
+ actionSheetHeaderHeight?: string;
14
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);