zartui 3.1.8 → 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 (478) hide show
  1. package/README.md +23 -25
  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/Field.mjs +2 -0
  67. package/es/field/index.css +1 -1
  68. package/es/field/index.d.ts +1 -1
  69. package/es/field/types.d.ts +22 -0
  70. package/es/grid-item/index.css +1 -1
  71. package/es/grid-item/index.d.ts +1 -0
  72. package/es/grid-item/types.d.ts +7 -0
  73. package/es/grid-item/types.mjs +0 -0
  74. package/es/hierarchy-select/Breadcrumb.mjs +1 -1
  75. package/es/hierarchy-select/HierarchySelect.d.ts +29 -1
  76. package/es/hierarchy-select/HierarchySelect.mjs +140 -26
  77. package/es/hierarchy-select/index.css +1 -1
  78. package/es/hierarchy-select/index.d.ts +21 -2
  79. package/es/hierarchy-select/svg/SubIcon.d.ts +2 -1
  80. package/es/hierarchy-select/svg/SubIcon.mjs +10 -29
  81. package/es/hierarchy-select/types.d.ts +21 -0
  82. package/es/image/index.css +1 -1
  83. package/es/image/index.d.ts +1 -0
  84. package/es/image/types.d.ts +5 -0
  85. package/es/image/types.mjs +0 -0
  86. package/es/image-preview/ImagePreview.d.ts +1 -1
  87. package/es/image-preview/index.css +1 -1
  88. package/es/image-preview/index.d.ts +2 -2
  89. package/es/image-preview/types.d.ts +10 -0
  90. package/es/index-anchor/index.css +1 -1
  91. package/es/index-anchor/types.d.ts +1 -3
  92. package/es/index-bar/IndexBar.d.ts +42 -1
  93. package/es/index-bar/IndexBar.mjs +189 -52
  94. package/es/index-bar/index.css +1 -1
  95. package/es/index-bar/index.d.ts +30 -1
  96. package/es/index-bar/types.d.ts +4 -3
  97. package/es/index.d.ts +1 -1
  98. package/es/index.mjs +1 -1
  99. package/es/lazyload/vue-lazyload/index.d.ts +55 -55
  100. package/es/list/index.css +1 -1
  101. package/es/list/index.d.ts +1 -1
  102. package/es/list/types.d.ts +5 -0
  103. package/es/loading/index.css +1 -1
  104. package/es/loading/index.d.ts +1 -0
  105. package/es/loading/types.d.ts +6 -0
  106. package/es/loading/types.mjs +0 -0
  107. package/es/media-picker/index.css +1 -1
  108. package/es/media-picker/index.d.ts +1 -1
  109. package/es/media-picker/type.d.ts +12 -0
  110. package/es/media-player/index.css +1 -1
  111. package/es/multiple-picker/MultiplePicker.d.ts +3 -3
  112. package/es/multiple-picker/index.css +1 -1
  113. package/es/multiple-picker/index.d.ts +4 -3
  114. package/es/multiple-picker/types.d.ts +17 -0
  115. package/es/nav-bar/index.css +1 -1
  116. package/es/nav-bar/index.d.ts +1 -0
  117. package/es/nav-bar/types.d.ts +16 -0
  118. package/es/nav-bar/types.mjs +0 -0
  119. package/es/notice-bar/index.css +1 -1
  120. package/es/notice-bar/index.d.ts +1 -1
  121. package/es/notice-bar/types.d.ts +10 -0
  122. package/es/notify/index.css +1 -1
  123. package/es/notify/index.d.ts +1 -1
  124. package/es/notify/types.d.ts +8 -0
  125. package/es/number-keyboard/NumberKeyboard.mjs +5 -20
  126. package/es/number-keyboard/index.css +1 -1
  127. package/es/number-keyboard/index.d.ts +1 -0
  128. package/es/number-keyboard/style/index.mjs +0 -1
  129. package/es/number-keyboard/types.d.ts +14 -0
  130. package/es/number-keyboard/types.mjs +0 -0
  131. package/es/overlay/index.d.ts +1 -0
  132. package/es/overlay/types.d.ts +4 -0
  133. package/es/overlay/types.mjs +0 -0
  134. package/es/password-input/index.css +1 -1
  135. package/es/password-input/index.d.ts +1 -0
  136. package/es/password-input/types.d.ts +15 -0
  137. package/es/password-input/types.mjs +0 -0
  138. package/es/picker/Picker.d.ts +6 -6
  139. package/es/picker/index.css +1 -1
  140. package/es/picker/index.d.ts +7 -7
  141. package/es/picker/types.d.ts +17 -0
  142. package/es/popover/Popover.mjs +1 -1
  143. package/es/popover/index.css +1 -1
  144. package/es/popover/index.d.ts +1 -1
  145. package/es/popover/types.d.ts +12 -0
  146. package/es/popup/index.css +1 -1
  147. package/es/popup/index.d.ts +1 -1
  148. package/es/popup/types.d.ts +8 -0
  149. package/es/pull-refresh/index.css +1 -1
  150. package/es/pull-refresh/index.d.ts +1 -0
  151. package/es/pull-refresh/types.d.ts +6 -0
  152. package/es/pull-refresh/types.mjs +0 -0
  153. package/es/radio/index.css +1 -1
  154. package/es/radio/index.d.ts +1 -0
  155. package/es/radio/types.d.ts +18 -0
  156. package/es/radio/types.mjs +0 -0
  157. package/es/radio-group/index.css +1 -1
  158. package/es/radio-picker/RadioPicker.d.ts +3 -3
  159. package/es/radio-picker/index.css +1 -1
  160. package/es/radio-picker/index.d.ts +4 -4
  161. package/es/radio-picker/types.d.ts +24 -0
  162. package/es/rate/index.css +1 -1
  163. package/es/rate/index.d.ts +1 -0
  164. package/es/rate/types.d.ts +6 -0
  165. package/es/rate/types.mjs +0 -0
  166. package/es/search/index.css +1 -1
  167. package/es/search/index.d.ts +1 -1
  168. package/es/search/types.d.ts +12 -0
  169. package/es/signature/index.css +1 -1
  170. package/es/signature/index.d.ts +1 -1
  171. package/es/signature/types.d.ts +9 -0
  172. package/es/skeleton/index.d.ts +1 -0
  173. package/es/skeleton/types.d.ts +9 -0
  174. package/es/skeleton/types.mjs +0 -0
  175. package/es/step/Step.mjs +2 -2
  176. package/es/step/index.css +1 -1
  177. package/es/step/index.d.ts +1 -0
  178. package/es/step/types.d.ts +6 -0
  179. package/es/step/types.mjs +0 -0
  180. package/es/stepper/index.css +1 -1
  181. package/es/stepper/index.d.ts +1 -0
  182. package/es/stepper/types.d.ts +17 -0
  183. package/es/stepper/types.mjs +0 -0
  184. package/es/steps/index.css +1 -1
  185. package/es/steps/index.d.ts +1 -0
  186. package/es/steps/types.d.ts +5 -0
  187. package/es/steps/types.mjs +0 -0
  188. package/es/sticky/index.d.ts +1 -0
  189. package/es/sticky/types.d.ts +3 -0
  190. package/es/sticky/types.mjs +0 -0
  191. package/es/style/base.css +1 -1
  192. package/es/style/css-variables.css +1 -1
  193. package/es/swipe/index.css +1 -1
  194. package/es/swipe/index.d.ts +1 -1
  195. package/es/swipe/types.d.ts +10 -0
  196. package/es/switch/index.css +1 -1
  197. package/es/switch/index.d.ts +1 -0
  198. package/es/switch/types.d.ts +18 -0
  199. package/es/switch/types.mjs +0 -0
  200. package/es/tabbar/index.d.ts +1 -0
  201. package/es/tabbar/types.d.ts +5 -0
  202. package/es/tabbar/types.mjs +0 -0
  203. package/es/tabbar-item/index.css +1 -1
  204. package/es/tabbar-item/index.d.ts +1 -0
  205. package/es/tabbar-item/types.d.ts +14 -0
  206. package/es/tabbar-item/types.mjs +0 -0
  207. package/es/table/index.css +1 -1
  208. package/es/table/index.d.ts +1 -0
  209. package/es/table/types.d.ts +10 -0
  210. package/es/tabs/index.css +1 -1
  211. package/es/tabs/index.d.ts +1 -1
  212. package/es/tabs/types.d.ts +17 -0
  213. package/es/tag/Tag.mjs +5 -4
  214. package/es/tag/index.css +1 -1
  215. package/es/tag/index.d.ts +1 -0
  216. package/es/tag/types.d.ts +17 -0
  217. package/es/tag/types.mjs +0 -0
  218. package/es/text-ellipsis/index.css +1 -1
  219. package/es/text-ellipsis/types.d.ts +1 -0
  220. package/es/time-picker/TimePicker.d.ts +2 -2
  221. package/es/time-picker/index.css +1 -1
  222. package/es/time-picker/index.d.ts +3 -2
  223. package/es/time-picker/types.d.ts +23 -0
  224. package/es/time-picker/types.mjs +0 -0
  225. package/es/timeline/index.css +1 -1
  226. package/es/timeline/index.d.ts +1 -0
  227. package/es/timeline/types.d.ts +9 -0
  228. package/es/timeline/types.mjs +0 -0
  229. package/es/toast/index.css +1 -1
  230. package/es/toast/index.d.ts +1 -1
  231. package/es/toast/types.d.ts +15 -0
  232. package/es/uploader/index.css +1 -1
  233. package/es/uploader/index.d.ts +1 -1
  234. package/es/uploader/types.d.ts +21 -0
  235. package/es/vue-sfc-shim.d.ts +6 -6
  236. package/es/vue-tsx-shim.d.ts +23 -23
  237. package/lib/action-sheet/index.css +1 -1
  238. package/lib/action-sheet/index.d.ts +1 -0
  239. package/lib/action-sheet/types.d.ts +14 -0
  240. package/lib/action-sheet/types.js +15 -0
  241. package/lib/avatar/index.css +1 -1
  242. package/lib/avatar/index.d.ts +1 -1
  243. package/lib/avatar/types.d.ts +10 -0
  244. package/lib/badge/index.css +1 -1
  245. package/lib/badge/index.d.ts +1 -0
  246. package/lib/badge/types.d.ts +15 -0
  247. package/lib/badge/types.js +15 -0
  248. package/lib/button/index.css +1 -1
  249. package/lib/button/index.d.ts +1 -1
  250. package/lib/button/types.d.ts +35 -0
  251. package/lib/calendar/CalendarDay.js +8 -1
  252. package/lib/calendar/CalendarHeader.js +2 -2
  253. package/lib/calendar/index.css +1 -1
  254. package/lib/calendar/index.d.ts +1 -1
  255. package/lib/calendar/types.d.ts +25 -0
  256. package/lib/cascader/index.css +1 -1
  257. package/lib/cascader/index.d.ts +1 -1
  258. package/lib/cascader/types.d.ts +21 -0
  259. package/lib/cell/index.css +1 -1
  260. package/lib/cell/index.d.ts +1 -1
  261. package/lib/cell/types.d.ts +24 -0
  262. package/lib/cell-group/index.css +1 -1
  263. package/lib/checkbox/Checker.js +6 -0
  264. package/lib/checkbox/index.css +1 -1
  265. package/lib/checkbox/index.d.ts +1 -1
  266. package/lib/checkbox/types.d.ts +19 -0
  267. package/lib/checkbox-group/index.css +1 -1
  268. package/lib/collapse-item/index.css +1 -1
  269. package/lib/collapse-item/index.d.ts +1 -1
  270. package/lib/collapse-item/types.d.ts +8 -0
  271. package/lib/config-provider/index.d.ts +2 -1
  272. package/lib/config-provider/types.d.ts +138 -0
  273. package/lib/config-provider/types.js +15 -0
  274. package/lib/date-time-picker/DateTimePicker.d.ts +2 -2
  275. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
  276. package/lib/date-time-picker/index.css +1 -1
  277. package/lib/date-time-picker/index.d.ts +2 -2
  278. package/lib/date-time-picker/utils.d.ts +1 -1
  279. package/lib/dialog/Dialog.d.ts +1 -1
  280. package/lib/dialog/index.css +1 -1
  281. package/lib/dialog/index.d.ts +2 -2
  282. package/lib/dialog/types.d.ts +18 -0
  283. package/lib/divider/index.css +1 -1
  284. package/lib/divider/index.d.ts +1 -0
  285. package/lib/divider/types.d.ts +8 -0
  286. package/lib/divider/types.js +15 -0
  287. package/lib/dropdown-item/DropdownItem.js +1 -0
  288. package/lib/dropdown-item/index.css +1 -1
  289. package/lib/dropdown-item/index.d.ts +1 -1
  290. package/lib/dropdown-item/types.d.ts +3 -0
  291. package/lib/dropdown-menu/index.css +1 -1
  292. package/lib/dropdown-menu/index.d.ts +1 -1
  293. package/lib/dropdown-menu/types.d.ts +12 -0
  294. package/lib/empty/Empty.js +4 -2
  295. package/lib/empty/Images.d.ts +20 -9
  296. package/lib/empty/Images.js +755 -563
  297. package/lib/empty/index.css +1 -1
  298. package/lib/empty/index.d.ts +1 -0
  299. package/lib/empty/types.d.ts +8 -0
  300. package/lib/empty/types.js +15 -0
  301. package/lib/field/Field.js +2 -0
  302. package/lib/field/index.css +1 -1
  303. package/lib/field/index.d.ts +1 -1
  304. package/lib/field/types.d.ts +22 -0
  305. package/lib/grid-item/index.css +1 -1
  306. package/lib/grid-item/index.d.ts +1 -0
  307. package/lib/grid-item/types.d.ts +7 -0
  308. package/lib/grid-item/types.js +15 -0
  309. package/lib/hierarchy-select/Breadcrumb.js +1 -1
  310. package/lib/hierarchy-select/HierarchySelect.d.ts +29 -1
  311. package/lib/hierarchy-select/HierarchySelect.js +138 -24
  312. package/lib/hierarchy-select/index.css +1 -1
  313. package/lib/hierarchy-select/index.d.ts +21 -2
  314. package/lib/hierarchy-select/svg/SubIcon.d.ts +2 -1
  315. package/lib/hierarchy-select/svg/SubIcon.js +9 -28
  316. package/lib/hierarchy-select/types.d.ts +21 -0
  317. package/lib/image/index.css +1 -1
  318. package/lib/image/index.d.ts +1 -0
  319. package/lib/image/types.d.ts +5 -0
  320. package/lib/image/types.js +15 -0
  321. package/lib/image-preview/ImagePreview.d.ts +1 -1
  322. package/lib/image-preview/index.css +1 -1
  323. package/lib/image-preview/index.d.ts +2 -2
  324. package/lib/image-preview/types.d.ts +10 -0
  325. package/lib/index-anchor/index.css +1 -1
  326. package/lib/index-anchor/types.d.ts +1 -3
  327. package/lib/index-bar/IndexBar.d.ts +42 -1
  328. package/lib/index-bar/IndexBar.js +188 -51
  329. package/lib/index-bar/index.css +1 -1
  330. package/lib/index-bar/index.d.ts +30 -1
  331. package/lib/index-bar/types.d.ts +4 -3
  332. package/lib/index.css +1 -1
  333. package/lib/index.d.ts +1 -1
  334. package/lib/index.js +1 -1
  335. package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
  336. package/lib/list/index.css +1 -1
  337. package/lib/list/index.d.ts +1 -1
  338. package/lib/list/types.d.ts +5 -0
  339. package/lib/loading/index.css +1 -1
  340. package/lib/loading/index.d.ts +1 -0
  341. package/lib/loading/types.d.ts +6 -0
  342. package/lib/loading/types.js +15 -0
  343. package/lib/media-picker/index.css +1 -1
  344. package/lib/media-picker/index.d.ts +1 -1
  345. package/lib/media-picker/type.d.ts +12 -0
  346. package/lib/media-player/index.css +1 -1
  347. package/lib/multiple-picker/MultiplePicker.d.ts +3 -3
  348. package/lib/multiple-picker/index.css +1 -1
  349. package/lib/multiple-picker/index.d.ts +4 -3
  350. package/lib/multiple-picker/types.d.ts +17 -0
  351. package/lib/nav-bar/index.css +1 -1
  352. package/lib/nav-bar/index.d.ts +1 -0
  353. package/lib/nav-bar/types.d.ts +16 -0
  354. package/lib/nav-bar/types.js +15 -0
  355. package/lib/notice-bar/index.css +1 -1
  356. package/lib/notice-bar/index.d.ts +1 -1
  357. package/lib/notice-bar/types.d.ts +10 -0
  358. package/lib/notify/index.css +1 -1
  359. package/lib/notify/index.d.ts +1 -1
  360. package/lib/notify/types.d.ts +8 -0
  361. package/lib/number-keyboard/NumberKeyboard.js +4 -19
  362. package/lib/number-keyboard/index.css +1 -1
  363. package/lib/number-keyboard/index.d.ts +1 -0
  364. package/lib/number-keyboard/style/index.js +0 -1
  365. package/lib/number-keyboard/types.d.ts +14 -0
  366. package/lib/number-keyboard/types.js +15 -0
  367. package/lib/overlay/index.d.ts +1 -0
  368. package/lib/overlay/types.d.ts +4 -0
  369. package/lib/overlay/types.js +15 -0
  370. package/lib/password-input/index.css +1 -1
  371. package/lib/password-input/index.d.ts +1 -0
  372. package/lib/password-input/types.d.ts +15 -0
  373. package/lib/password-input/types.js +15 -0
  374. package/lib/picker/Picker.d.ts +6 -6
  375. package/lib/picker/index.css +1 -1
  376. package/lib/picker/index.d.ts +7 -7
  377. package/lib/picker/types.d.ts +17 -0
  378. package/lib/popover/Popover.js +1 -1
  379. package/lib/popover/index.css +1 -1
  380. package/lib/popover/index.d.ts +1 -1
  381. package/lib/popover/types.d.ts +12 -0
  382. package/lib/popup/index.css +1 -1
  383. package/lib/popup/index.d.ts +1 -1
  384. package/lib/popup/types.d.ts +8 -0
  385. package/lib/pull-refresh/index.css +1 -1
  386. package/lib/pull-refresh/index.d.ts +1 -0
  387. package/lib/pull-refresh/types.d.ts +6 -0
  388. package/lib/pull-refresh/types.js +15 -0
  389. package/lib/radio/index.css +1 -1
  390. package/lib/radio/index.d.ts +1 -0
  391. package/lib/radio/types.d.ts +18 -0
  392. package/lib/radio/types.js +15 -0
  393. package/lib/radio-group/index.css +1 -1
  394. package/lib/radio-picker/RadioPicker.d.ts +3 -3
  395. package/lib/radio-picker/index.css +1 -1
  396. package/lib/radio-picker/index.d.ts +4 -4
  397. package/lib/radio-picker/types.d.ts +24 -0
  398. package/lib/rate/index.css +1 -1
  399. package/lib/rate/index.d.ts +1 -0
  400. package/lib/rate/types.d.ts +6 -0
  401. package/lib/rate/types.js +15 -0
  402. package/lib/search/index.css +1 -1
  403. package/lib/search/index.d.ts +1 -1
  404. package/lib/search/types.d.ts +12 -0
  405. package/lib/signature/index.css +1 -1
  406. package/lib/signature/index.d.ts +1 -1
  407. package/lib/signature/types.d.ts +9 -0
  408. package/lib/skeleton/index.d.ts +1 -0
  409. package/lib/skeleton/types.d.ts +9 -0
  410. package/lib/skeleton/types.js +15 -0
  411. package/lib/step/Step.js +2 -2
  412. package/lib/step/index.css +1 -1
  413. package/lib/step/index.d.ts +1 -0
  414. package/lib/step/types.d.ts +6 -0
  415. package/lib/step/types.js +15 -0
  416. package/lib/stepper/index.css +1 -1
  417. package/lib/stepper/index.d.ts +1 -0
  418. package/lib/stepper/types.d.ts +17 -0
  419. package/lib/stepper/types.js +15 -0
  420. package/lib/steps/index.css +1 -1
  421. package/lib/steps/index.d.ts +1 -0
  422. package/lib/steps/types.d.ts +5 -0
  423. package/lib/steps/types.js +15 -0
  424. package/lib/sticky/index.d.ts +1 -0
  425. package/lib/sticky/types.d.ts +3 -0
  426. package/lib/sticky/types.js +15 -0
  427. package/lib/style/base.css +1 -1
  428. package/lib/style/css-variables.css +1 -1
  429. package/lib/swipe/index.css +1 -1
  430. package/lib/swipe/index.d.ts +1 -1
  431. package/lib/swipe/types.d.ts +10 -0
  432. package/lib/switch/index.css +1 -1
  433. package/lib/switch/index.d.ts +1 -0
  434. package/lib/switch/types.d.ts +18 -0
  435. package/lib/switch/types.js +15 -0
  436. package/lib/tabbar/index.d.ts +1 -0
  437. package/lib/tabbar/types.d.ts +5 -0
  438. package/lib/tabbar/types.js +15 -0
  439. package/lib/tabbar-item/index.css +1 -1
  440. package/lib/tabbar-item/index.d.ts +1 -0
  441. package/lib/tabbar-item/types.d.ts +14 -0
  442. package/lib/tabbar-item/types.js +15 -0
  443. package/lib/table/index.css +1 -1
  444. package/lib/table/index.d.ts +1 -0
  445. package/lib/table/types.d.ts +10 -0
  446. package/lib/tabs/index.css +1 -1
  447. package/lib/tabs/index.d.ts +1 -1
  448. package/lib/tabs/types.d.ts +17 -0
  449. package/lib/tag/Tag.js +5 -4
  450. package/lib/tag/index.css +1 -1
  451. package/lib/tag/index.d.ts +1 -0
  452. package/lib/tag/types.d.ts +17 -0
  453. package/lib/tag/types.js +15 -0
  454. package/lib/text-ellipsis/index.css +1 -1
  455. package/lib/text-ellipsis/types.d.ts +1 -0
  456. package/lib/time-picker/TimePicker.d.ts +2 -2
  457. package/lib/time-picker/index.css +1 -1
  458. package/lib/time-picker/index.d.ts +3 -2
  459. package/lib/time-picker/types.d.ts +23 -0
  460. package/lib/time-picker/types.js +15 -0
  461. package/lib/timeline/index.css +1 -1
  462. package/lib/timeline/index.d.ts +1 -0
  463. package/lib/timeline/types.d.ts +9 -0
  464. package/lib/timeline/types.js +15 -0
  465. package/lib/toast/index.css +1 -1
  466. package/lib/toast/index.d.ts +1 -1
  467. package/lib/toast/types.d.ts +15 -0
  468. package/lib/uploader/index.css +1 -1
  469. package/lib/uploader/index.d.ts +1 -1
  470. package/lib/uploader/types.d.ts +21 -0
  471. package/lib/vue-sfc-shim.d.ts +6 -6
  472. package/lib/vue-tsx-shim.d.ts +23 -23
  473. package/lib/web-types.json +1 -1
  474. package/lib/zartui.cjs.js +1148 -726
  475. package/lib/zartui.es.js +1148 -726
  476. package/lib/zartui.js +1152 -730
  477. package/lib/zartui.min.js +1 -1
  478. package/package.json +2 -2
@@ -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: .3;--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-default);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-default);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-default);--zt-timeline-sub-title-color: var(--zt-gray-a6);--zt-timeline-content-color: var(--zt-gray-default);--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: rgba(45, 75, 115, .8);--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: rgba(255, 255, 255, .1);--zt-toast-text-color: var(--zt-white)}
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-text-color-2);--zt-uploader-text-font-size: var(--zt-font-size-sm);--zt-uploader-upload-background: var(--zt-gray-1);--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-text-color-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-text-color-a2);--zt-action-sheet-subname-color: var(--zt-text-color-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-white)}.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}.zt-theme-dark{--zt-action-sheet-item-background: var(--zt-background);--zt-action-sheet-description-color: var(--zt-gray-default);--zt-action-sheet-subname-color: var(--zt-gray-default);--zt-action-sheet-description-background: var(--zt-background)}
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);
@@ -1 +1 @@
1
- :root{--zt-avatar-background-color: var(--zt-blue);--zt-avatar-color: var(--zt-white);--zt-avatar-size-small: 32px;--zt-avatar-font-size-small: 12px;--zt-avatar-size-medium: 48px;--zt-avatar-font-size-medium: 16px;--zt-avatar-size-large: 60px;--zt-avatar-font-size-large: 20px;--zt-avatar-square-radius: 4px;--zt-avatar-border-color: #ffffff;--zt-avatar-border-shadow-color: rgba(45, 75, 115, .2)}.zt-avatar{font-weight:700;display:flex;justify-content:center;align-items:center}.zt-avatar__img{background-color:var(--zt-avatar-background-color);color:var(--zt-avatar-color);text-align:center}.zt-avatar__img--small{width:var(--zt-avatar-size-small);height:var(--zt-avatar-size-small);font-size:var(--zt-avatar-font-size-small);line-height:var(--zt-avatar-size-small)}.zt-avatar__img--medium{width:var(--zt-avatar-size-medium);height:var(--zt-avatar-size-medium);font-size:var(--zt-avatar-font-size-medium);line-height:var(--zt-avatar-size-medium)}.zt-avatar__img--large{width:var(--zt-avatar-size-large);height:var(--zt-avatar-size-large);font-size:var(--zt-avatar-font-size-large);line-height:var(--zt-avatar-size-large)}.zt-avatar__img--square{border-radius:var(--zt-avatar-square-radius)}.zt-avatar__img--round{border-radius:var(--zt-radius-max)}.zt-avatar__img.zt-avatar__img--border{box-sizing:border-box;border:1px solid var(--zt-avatar-border-color);box-shadow:0 4px 12px 0 var(--zt-avatar-border-shadow-color)}
1
+ :root{--zt-avatar-background: var(--zt-primary-color);--zt-avatar-color: var(--zt-white);--zt-avatar-square-radius: 4px;--zt-avatar-border-color: var(--zt-background-2);--zt-avatar-border-shadow-color: var(--zt-gray-a2);--zt-avatar-small-size: 32px;--zt-avatar-medium-size: 48px;--zt-avatar-large-size: 60px}:root[zt-theme-size=large]{--zt-avatar-small-size: 44px;--zt-avatar-medium-size: 60px;--zt-avatar-large-size: 72px}.zt-avatar{font-weight:700;display:flex;justify-content:center;align-items:center}.zt-avatar__img{background:var(--zt-avatar-background);color:var(--zt-avatar-color);text-align:center}.zt-avatar__img--small{width:var(--zt-avatar-small-size);height:var(--zt-avatar-small-size);font-size:var(--zt-font-size-sm);line-height:var(--zt-avatar-small-size)}.zt-avatar__img--medium{width:var(--zt-avatar-medium-size);height:var(--zt-avatar-medium-size);font-size:var(--zt-font-size-lg);line-height:var(--zt-avatar-medium-size)}.zt-avatar__img--large{width:var(--zt-avatar-large-size);height:var(--zt-avatar-large-size);font-size:var(--zt-font-size-xxl);line-height:var(--zt-avatar-large-size)}.zt-avatar__img--square{border-radius:var(--zt-avatar-square-radius)}.zt-avatar__img--round{border-radius:var(--zt-radius-max)}.zt-avatar__img.zt-avatar__img--border{box-sizing:border-box;border:1px solid var(--zt-avatar-border-color);box-shadow:0 4px 12px 0 var(--zt-avatar-border-shadow-color)}
@@ -38,7 +38,7 @@ export declare const Avatar: import("../utils").WithInstall<import("vue").Define
38
38
  }, {}>>;
39
39
  export default Avatar;
40
40
  export type { AvatarProps } from './Avatar';
41
- export type { AvatarShape, AvatarSize } from './types';
41
+ export type { AvatarShape, AvatarSize, AvatarThemeVars } from './types';
42
42
  declare module 'vue' {
43
43
  interface GlobalComponents {
44
44
  ZtAvatar: typeof Avatar;
@@ -1,2 +1,12 @@
1
1
  export type AvatarSize = 'large' | 'medium' | 'small';
2
2
  export type AvatarShape = 'square' | 'round';
3
+ export type AvatarThemeVars = {
4
+ avatarBackground?: string;
5
+ avatarColor?: string;
6
+ avatarSquareRadius?: string;
7
+ avatarBorderColor?: string;
8
+ avatarBorderShadowColor?: string;
9
+ avatarSmallSize?: string;
10
+ avatarMediumSize?: string;
11
+ avatarLargeSize?: string;
12
+ };
@@ -1 +1 @@
1
- :root{--zt-badge-size: 16px;--zt-badge-color: var(--zt-white);--zt-badge-padding: 1px 4px;--zt-badge-font-size: var(--zt-font-size-sm);--zt-badge-max-width: 44px;--zt-badge-height: 16px;--zt-badge-font-weight: var(--zt-font-bold);--zt-badge-border-width: var(--zt-border-width);--zt-badge-background: var(--zt-danger-color);--zt-badge-dot-color: var(--zt-danger-color);--zt-badge-dot-size: 8px;--zt-badge-font: -apple-system-font, helvetica neue, arial, sans-serif;--zt-badge-border-left-color: var(--zt-border-left-color);--zt-badge-border-right-color: var(--zt-border-right-color)}.zt-badge{display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:var(--zt-badge-size);max-width:var(--zt-badge-max-width);padding:var(--zt-badge-padding);color:var(--zt-badge-color);font-weight:var(--zt-badge-font-weight);font-size:var(--zt-badge-font-size);font-family:var(--zt-badge-font);height:var(--zt-badge-height);border-radius:var(--zt-radius-lg);box-shadow:0 2px 4px rgba(255,75,80,.4);letter-spacing:0;background-image:linear-gradient(to right,var(--zt-badge-background),var(--zt-badge-background)),linear-gradient(134deg,var(--zt-badge-border-left-color) 0%,var(--zt-badge-border-right-color) 100%);background-clip:padding-box,border-box;background-origin:padding-box,border-box}.zt-badge--fixed{position:absolute;transform-origin:100%}.zt-badge--top-left{top:0;left:0;transform:translate(-50%,-50%)}.zt-badge--top-right{top:4px;right:0;transform:translate(50%,-50%)}.zt-badge--bottom-left{bottom:0;left:0;transform:translate(-50%,50%)}.zt-badge--bottom-right{bottom:0;right:0;transform:translate(50%,50%)}.zt-badge--dot{width:var(--zt-badge-dot-size);min-width:0;height:var(--zt-badge-dot-size);border-radius:50%;padding:0;border:var(--zt-badge-border-width) solid transparent;background-clip:border-box;background-origin:padding-box,border-box;background-image:linear-gradient(to right,var(--zt-badge-dot-color),var(--zt-badge-dot-color)),linear-gradient(to right,#ffcdcd,#dc0004)}.zt-badge__wrapper{position:relative;display:inline-block}.zt-badge__wrapper--badge-num{white-space:nowrap;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.badge-dot{padding:0}
1
+ :root{--zt-badge-size: 16px;--zt-badge-color: var(--zt-white);--zt-badge-padding: 1px 4px;--zt-badge-max-width: 44px;--zt-badge-height: 16px;--zt-badge-font-weight: var(--zt-font-bold);--zt-badge-border-width: var(--zt-border-width);--zt-badge-background: var(--zt-danger-color);--zt-badge-dot-color: var(--zt-danger-color);--zt-badge-dot-size: 8px;--zt-badge-font: -apple-system-font, helvetica neue, arial, sans-serif;--zt-badge-border-left-color: #ffcdcd;--zt-badge-border-right-color: rgba(220, 0, 4, .8)}.zt-badge{display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:var(--zt-badge-size);max-width:var(--zt-badge-max-width);padding:var(--zt-badge-padding);color:var(--zt-badge-color);font-weight:var(--zt-badge-font-weight);font-size:var(--zt-font-size-sm);font-family:var(--zt-badge-font);height:var(--zt-badge-height);border-radius:var(--zt-radius-lg);box-shadow:0 2px 4px rgba(255,75,80,.4);letter-spacing:0;background-image:linear-gradient(to right,var(--zt-badge-background),var(--zt-badge-background)),linear-gradient(134deg,var(--zt-badge-border-left-color) 0%,var(--zt-badge-border-right-color) 100%);background-clip:padding-box,border-box;background-origin:padding-box,border-box}.zt-badge--fixed{position:absolute;transform-origin:100%}.zt-badge--top-left{top:0;left:0;transform:translate(-50%,-50%)}.zt-badge--top-right{top:4px;right:0;transform:translate(50%,-50%)}.zt-badge--bottom-left{bottom:0;left:0;transform:translate(-50%,50%)}.zt-badge--bottom-right{bottom:0;right:0;transform:translate(50%,50%)}.zt-badge--dot{width:var(--zt-badge-dot-size);min-width:0;height:var(--zt-badge-dot-size);border-radius:50%;padding:0;border:var(--zt-badge-border-width) solid transparent;background-clip:border-box;background-origin:padding-box,border-box;background-image:linear-gradient(to right,var(--zt-badge-dot-color),var(--zt-badge-dot-color)),linear-gradient(to right,#ffcdcd,#dc0004)}.zt-badge__wrapper{position:relative;display:inline-block}.zt-badge__wrapper--badge-num{white-space:nowrap;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.badge-dot{padding:0}
@@ -46,6 +46,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
46
46
  }, {}>>;
47
47
  export default Badge;
48
48
  export type { BadgeProps, BadgePosition } from './Badge';
49
+ export type { BadgeThemeVars } from './types';
49
50
  declare module 'vue' {
50
51
  interface GlobalComponents {
51
52
  ZtBadge: typeof Badge;
@@ -0,0 +1,15 @@
1
+ export type BadgeThemeVars = {
2
+ badgeSize?: string;
3
+ badgeColor?: string;
4
+ badgePadding?: string;
5
+ badgeMaxWidth?: string;
6
+ badgeHeight?: string;
7
+ badgeFontWeight?: string;
8
+ badgeBorderWidth?: string;
9
+ badgeBackground?: string;
10
+ badgeDotColor?: string;
11
+ badgeDotSize?: string;
12
+ badgeFont?: string;
13
+ badgeBorderLeftColor?: string;
14
+ badgeBorderRightColor?: string;
15
+ };
@@ -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);
@@ -1 +1 @@
1
- :root{--zt-button-mini-height: 24px;--zt-button-mini-padding: 0 var(--zt-padding-sm);--zt-button-mini-font-size: var(--zt-font-size-sm);--zt-button-small-height: 28px;--zt-button-small-padding: 0 var(--zt-padding-sm);--zt-button-small-font-size: var(--zt-font-size-md);--zt-button-medium-height: 36px;--zt-button-medium-padding: 0 var(--zt-padding-md);--zt-button-medium-font-size: var(--zt-font-size-md);--zt-button-normal-padding: 0 var(--zt-padding-lg);--zt-button-normal-font-size: var(--zt-font-size-lg);--zt-button-large-height: 50px;--zt-button-default-height: 44px;--zt-button-default-line-height: calc(var(--zt-button-normal-font-size) * 2 - 8px);--zt-button-default-font-size: var(--zt-font-size-lg);--zt-button-default-color: var(--zt-text-color);--zt-button-default-background: var(--zt-button-plain-background);--zt-button-default-border-color: rgba(45, 75, 115, .2);--zt-button-primary-color: var(--zt-white);--zt-button-primary-background: linear-gradient(-45deg, #3cafff 0%, var(--zt-primary-color) 100%);--zt-button-primary-light-background: rgba(1, 144, 250, .1);--zt-button-primary-border-color: var(--zt-blue-light);--zt-button-success-color: var(--zt-white);--zt-button-success-background: var(--zt-success-color);--zt-button-success-border-color: var(--zt-success-color);--zt-button-danger-color: var(--zt-white);--zt-button-danger-background: var(--zt-danger-color);--zt-button-danger-border-color: var(--zt-danger-color);--zt-button-warning-color: var(--zt-white);--zt-button-warning-background: var(--zt-warning-color);--zt-button-warning-border-color: var(--zt-warning-color);--zt-button-border-width: var(--zt-border-width);--zt-button-radius: 22px;--zt-button-round-radius: var(--zt-radius-max);--zt-button-plain-background: transparent;--zt-button-disabled-opacity: var(--zt-disabled-opacity);--zt-button-icon-mini-size: 16px;--zt-button-icon-small-size: 20px;--zt-button-icon-medium-size: 20px;--zt-button-icon-normal-size: 24px;--zt-button-loading-icon-size: 20px;--zt-button-inner-block-horizontal-margin: 16px}.zt-button{position:relative;display:inline-block;box-sizing:border-box;height:var(--zt-button-default-height);margin:0;padding:0;font-size:var(--zt-button-default-font-size);line-height:var(--zt-button-default-line-height);text-align:center;border-radius:var(--zt-button-radius);cursor:pointer;transition:opacity var(--zt-duration-fast);-webkit-appearance:none;-webkit-font-smoothing:auto}.zt-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background:var(--zt-black);border:inherit;border-color:var(--zt-black);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}.zt-button:active:before{opacity:.1}.zt-button--loading:before,.zt-button--disabled:before{display:none}.zt-button--default{color:var(--zt-button-default-color);background:var(--zt-button-default-background);border:var(--zt-button-border-width) solid var(--zt-button-default-border-color)}.zt-button--primary{color:var(--zt-button-primary-color);background:var(--zt-button-primary-background);border:var(--zt-button-border-width) solid var(--zt-button-primary-border-color)}.zt-button--primary-light{color:var(--zt-blue);background:var(--zt-button-primary-light-background);border:none}.zt-button--success{color:var(--zt-button-success-color);background:var(--zt-button-success-background);border:var(--zt-button-border-width) solid var(--zt-button-success-border-color)}.zt-button--danger{color:var(--zt-button-danger-color);background:var(--zt-button-danger-background);border:var(--zt-button-border-width) solid var(--zt-button-danger-border-color)}.zt-button--warning{color:var(--zt-button-warning-color);background:var(--zt-button-warning-background);border:var(--zt-button-border-width) solid var(--zt-button-warning-border-color)}.zt-button--plain{background:var(--zt-button-plain-background)}.zt-button--plain.zt-button--primary{color:var(--zt-blue-light)}.zt-button--plain.zt-button--success{color:var(--zt-button-success-background)}.zt-button--plain.zt-button--danger{color:var(--zt-button-danger-background)}.zt-button--plain.zt-button--warning{color:var(--zt-button-warning-background)}.zt-button--large{width:100%;height:var(--zt-button-large-height)}.zt-button--normal{padding:var(--zt-button-normal-padding);font-size:var(--zt-button-normal-font-size)}.zt-button--medium{height:var(--zt-button-medium-height);padding:var(--zt-button-medium-padding);font-size:var(--zt-button-medium-font-size)}.zt-button--small{height:var(--zt-button-small-height);padding:var(--zt-button-small-padding);font-size:var(--zt-button-small-font-size)}.zt-button--mini{height:var(--zt-button-mini-height);padding:var(--zt-button-mini-padding);font-size:var(--zt-button-mini-font-size)}.zt-button--mini+.zt-button--mini{margin-left:var(--zt-padding-base)}.zt-button__loading{color:inherit;font-size:inherit}.zt-button__loading .zt-loading__spinner{color:currentColor;width:var(--zt-button-loading-icon-size);height:var(--zt-button-loading-icon-size)}.zt-button--block{display:block;width:100%}.zt-button--block-inner{display:block;width:calc(100% - 2 * var(--zt-button-inner-block-horizontal-margin));margin:0 var(--zt-button-inner-block-horizontal-margin)}.zt-button--disabled{cursor:not-allowed;opacity:var(--zt-button-disabled-opacity)}.zt-button--loading{cursor:default}.zt-button--round{border-radius:var(--zt-button-round-radius);padding:0}.zt-button--round.zt-button--mini{width:var(--zt-button-mini-height)}.zt-button--round.zt-button--small{width:var(--zt-button-small-height)}.zt-button--round.zt-button--medium{width:var(--zt-button-medium-height)}.zt-button--round.zt-button--normal{width:var(--zt-button-default-height)}.zt-button--square{border-radius:0}.zt-button__content{display:flex;align-items:center;justify-content:center;height:100%}.zt-button__content:before{content:" "}.zt-button__icon{font-size:var(--zt-button-icon-normal-size)}.zt-button__icon--mini{font-size:var(--zt-button-icon-mini-size)}.zt-button__icon--small{font-size:var(--zt-button-icon-small-size)}.zt-button__icon--medium{font-size:var(--zt-button-icon-medium-size)}.zt-button__icon+.zt-button__text,.zt-button__loading+.zt-button__text,.zt-button__text+.zt-button__icon,.zt-button__text+.zt-button__loading{margin-left:var(--zt-padding-xxs)}.zt-button--hairline{border-width:0}.zt-button--hairline:after{border-color:inherit;border-radius:calc(var(--zt-button-radius) * 2)}.zt-button--hairline.zt-button--round:after{border-radius:var(--zt-button-round-radius)}.zt-button--hairline.zt-button--square:after{border-radius:0}.zt-theme-dark{--zt-button-danger-color: var(--zt-white);--zt-button-success-color: var(--zt-white);--zt-button-warning-color: var(--zt-white);--zt-button-default-border-color: var(--zt-gray-default)}
1
+ :root{--zt-button-mini-height: 24px;--zt-button-mini-padding: 0 var(--zt-padding-sm);--zt-button-small-height: 28px;--zt-button-small-padding: 0 var(--zt-padding-sm);--zt-button-medium-height: 36px;--zt-button-medium-padding: 0 var(--zt-padding-md);--zt-button-normal-padding: 0 var(--zt-padding-lg);--zt-button-large-height: 50px;--zt-button-default-height: 44px;--zt-button-default-color: var(--zt-text-color);--zt-button-default-background: var(--zt-button-plain-background);--zt-button-default-border-color: var(--zt-gray-a2);--zt-button-primary-color: var(--zt-white);--zt-button-primary-background: linear-gradient(90deg, var(--zt-primary-color) 0%, var(--zt-primary-color-light) 100%);--zt-button-primary-light-background: var(--zt-primary-color-a1);--zt-button-primary-border-color: var(--zt-primary-color);--zt-button-success-color: var(--zt-white);--zt-button-success-background: var(--zt-success-color);--zt-button-success-border-color: var(--zt-success-color);--zt-button-danger-color: var(--zt-white);--zt-button-danger-background: var(--zt-danger-color);--zt-button-danger-border-color: var(--zt-danger-color);--zt-button-warning-color: var(--zt-white);--zt-button-warning-background: var(--zt-warning-color);--zt-button-warning-border-color: var(--zt-warning-color);--zt-button-border-width: var(--zt-border-width);--zt-button-radius: 22px;--zt-button-round-radius: var(--zt-radius-max);--zt-button-plain-background: transparent;--zt-button-disabled-opacity: var(--zt-disabled-opacity);--zt-button-loading-icon-size: 20px;--zt-button-inner-block-horizontal-margin: 16px;--zt-button-icon-font-size: 24px}:root[zt-theme-size=large]{--zt-button-icon-font-size: 30px}.zt-button{position:relative;display:inline-block;box-sizing:border-box;height:var(--zt-button-default-height);margin:0;padding:0;font-size:var(--zt-font-size-lg);line-height:var(--zt-line-height-xl);text-align:center;border-radius:var(--zt-button-radius);cursor:pointer;transition:opacity var(--zt-duration-fast);-webkit-appearance:none;-webkit-font-smoothing:auto}.zt-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background:var(--zt-black);border:inherit;border-color:var(--zt-black);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}.zt-button:active:before{opacity:.1}.zt-button--loading:before,.zt-button--disabled:before{display:none}.zt-button--default{color:var(--zt-button-default-color);background:var(--zt-button-default-background);border:var(--zt-button-border-width) solid var(--zt-button-default-border-color)}.zt-button--primary{color:var(--zt-button-primary-color);background:var(--zt-button-primary-background);border:var(--zt-button-border-width) solid var(--zt-button-primary-border-color)}.zt-button--primary-light{color:var(--zt-primary-color);background:var(--zt-button-primary-light-background);border:none}.zt-button--success{color:var(--zt-button-success-color);background:var(--zt-button-success-background);border:var(--zt-button-border-width) solid var(--zt-button-success-border-color)}.zt-button--danger{color:var(--zt-button-danger-color);background:var(--zt-button-danger-background);border:var(--zt-button-border-width) solid var(--zt-button-danger-border-color)}.zt-button--warning{color:var(--zt-button-warning-color);background:var(--zt-button-warning-background);border:var(--zt-button-border-width) solid var(--zt-button-warning-border-color)}.zt-button--plain{background:var(--zt-button-plain-background)}.zt-button--plain.zt-button--primary{color:var(--zt-primary-color)}.zt-button--plain.zt-button--success{color:var(--zt-button-success-background)}.zt-button--plain.zt-button--danger{color:var(--zt-button-danger-background)}.zt-button--plain.zt-button--warning{color:var(--zt-button-warning-background)}.zt-button--large{width:100%;height:var(--zt-button-large-height)}.zt-button--normal{padding:var(--zt-button-normal-padding);font-size:var(--zt-font-size-lg)}.zt-button--medium{height:var(--zt-button-medium-height);padding:var(--zt-button-medium-padding);font-size:var(--zt-font-size-md)}.zt-button--small{height:var(--zt-button-small-height);padding:var(--zt-button-small-padding);font-size:var(--zt-font-size-md)}.zt-button--mini{height:var(--zt-button-mini-height);padding:var(--zt-button-mini-padding);font-size:var(--zt-font-size-sm)}.zt-button--mini+.zt-button--mini{margin-left:var(--zt-padding-base)}.zt-button__loading{color:inherit;font-size:inherit}.zt-button__loading .zt-loading__spinner{color:currentColor;width:var(--zt-button-loading-icon-size);height:var(--zt-button-loading-icon-size)}.zt-button--block{display:block;width:100%}.zt-button--block-inner{display:block;width:calc(100% - 2 * var(--zt-button-inner-block-horizontal-margin));margin:0 var(--zt-button-inner-block-horizontal-margin)}.zt-button--disabled{cursor:not-allowed;opacity:var(--zt-button-disabled-opacity)}.zt-button--loading{cursor:default}.zt-button--round{border-radius:var(--zt-button-round-radius);padding:0}.zt-button--round.zt-button--mini{width:var(--zt-button-mini-height)}.zt-button--round.zt-button--small{width:var(--zt-button-small-height)}.zt-button--round.zt-button--medium{width:var(--zt-button-medium-height)}.zt-button--round.zt-button--normal{width:var(--zt-button-default-height)}.zt-button--square{border-radius:0}.zt-button__content{display:flex;align-items:center;justify-content:center;height:100%}.zt-button__content:before{content:" "}.zt-button__icon{font-size:var(--zt-button-icon-font-size)}.zt-button__icon--mini{font-size:var(--zt-font-size-lg)}.zt-button__icon--small{font-size:var(--zt-font-size-xxl)}.zt-button__icon--medium{font-size:var(--zt-font-size-xxxl)}.zt-button__icon+.zt-button__text,.zt-button__loading+.zt-button__text,.zt-button__text+.zt-button__icon,.zt-button__text+.zt-button__loading{margin-left:var(--zt-padding-xxs)}.zt-button--hairline{border-width:0}.zt-button--hairline:after{border-color:inherit;border-radius:calc(var(--zt-button-radius) * 2)}.zt-button--hairline.zt-button--round:after{border-radius:var(--zt-button-round-radius)}.zt-button--hairline.zt-button--square:after{border-radius:0}
@@ -107,7 +107,7 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
107
107
  }, {}>>;
108
108
  export default Button;
109
109
  export type { ButtonProps } from './Button';
110
- export type { ButtonType, ButtonSize, ButtonNativeType, ButtonIconPosition, } from './types';
110
+ export type { ButtonType, ButtonSize, ButtonNativeType, ButtonIconPosition, ButtonThemeVars, } from './types';
111
111
  declare module 'vue' {
112
112
  interface GlobalComponents {
113
113
  ZtButton: typeof Button;
@@ -3,3 +3,38 @@ export type ButtonType = 'default' | 'primary' | 'primary-light' | 'success' | '
3
3
  export type ButtonSize = 'normal' | 'medium' | 'small' | 'mini';
4
4
  export type ButtonNativeType = NonNullable<ButtonHTMLAttributes['type']>;
5
5
  export type ButtonIconPosition = 'left' | 'right';
6
+ export type ButtonThemeVars = {
7
+ buttonMiniHeight?: string;
8
+ buttonMiniPadding?: string;
9
+ buttonSmallHeight?: string;
10
+ buttonSmallPadding?: string;
11
+ buttonMediumHeight?: string;
12
+ buttonMediumPadding?: string;
13
+ buttonNormalPadding?: string;
14
+ buttonLargeHeight?: string;
15
+ buttonDefaultHeight?: string;
16
+ buttonDefaultColor?: string;
17
+ buttonDefaultBackground?: string;
18
+ buttonDefaultBorderColor?: string;
19
+ buttonPrimaryColor?: string;
20
+ buttonPrimaryBackground?: string;
21
+ buttonPrimaryLightBackground?: string;
22
+ buttonPrimaryBorderColor?: string;
23
+ buttonSuccessColor?: string;
24
+ buttonSuccessBackground?: string;
25
+ buttonSuccessBorderColor?: string;
26
+ buttonDangerColor?: string;
27
+ buttonDangerBackground?: string;
28
+ buttonDangerBorderColor?: string;
29
+ buttonWarningColor?: string;
30
+ buttonWarningBackground?: string;
31
+ buttonWarningBorderColor?: string;
32
+ buttonBorderWidth?: string;
33
+ buttonRadius?: string;
34
+ buttonRoundRadius?: string;
35
+ buttonPlainBackground?: string;
36
+ buttonDisabledOpacity?: string;
37
+ buttonLoadingIconSize?: string;
38
+ buttonInnerBlockHorizontalMargin?: string;
39
+ buttonIconFontSize?: string;
40
+ };
@@ -38,6 +38,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
38
38
  setup(props, {
39
39
  emit
40
40
  }) {
41
+ const getBoxShadowColor = (color) => {
42
+ if (!color)
43
+ return "";
44
+ return `0 0 0 3px ${color}1a`;
45
+ };
41
46
  const style = (0, import_vue2.computed)(() => {
42
47
  var _a;
43
48
  const {
@@ -65,6 +70,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
65
70
  case "multiple-middle":
66
71
  case "multiple-selected":
67
72
  style2.background = color;
73
+ style2.boxShadow = getBoxShadowColor(color);
68
74
  break;
69
75
  case "middle":
70
76
  style2.color = color;
@@ -98,7 +104,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
98
104
  "style": {
99
105
  width: rowHeight,
100
106
  height: rowHeight,
101
- background: color
107
+ background: color,
108
+ boxShadow: getBoxShadowColor(color)
102
109
  }
103
110
  }, [Nodes]);
104
111
  }
@@ -79,7 +79,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
79
79
  "fill-rule": "evenodd"
80
80
  }, [(0, import_vue.createVNode)("g", {
81
81
  "transform": "translate(-32.000000, -320.000000)",
82
- "fill": "#0091FA",
82
+ "class": (0, import_utils2.bem)("svg-defs-path-fill"),
83
83
  "fill-rule": "nonzero"
84
84
  }, [(0, import_vue.createVNode)("g", {
85
85
  "transform": "translate(0.000000, 70.000000)"
@@ -117,7 +117,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
117
117
  "fill-rule": "evenodd"
118
118
  }, [(0, import_vue.createVNode)("g", {
119
119
  "transform": "translate(-80.000000, -320.000000)",
120
- "fill": "#0091FA",
120
+ "class": (0, import_utils2.bem)("svg-defs-path-fill"),
121
121
  "fill-rule": "nonzero"
122
122
  }, [(0, import_vue.createVNode)("g", {
123
123
  "transform": "translate(0.000000, 70.000000)"
@@ -1 +1 @@
1
- :root{--zt-calendar-background: var(--zt-background-2);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-header-title-font-size: var(--zt-font-size-md);--zt-calendar-header-subtitle-font-size: var(--zt-font-size-md);--zt-calendar-weekdays-height: 30px;--zt-calendar-weekdays-font-size: var(--zt-font-size-sm);--zt-calendar-weekdays-font-color: var(----zt-gray-default);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-month-title-font-size: var(--zt-font-size-md);--zt-calendar-month-mark-color: rgba(242, 243, 245, .8);--zt-calendar-month-mark-font-size: 160px;--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-font-size: var(--zt-font-size-lg);--zt-calendar-day-margin-bottom: 4px;--zt-calendar-range-edge-color: var(--zt-white);--zt-calendar-range-edge-background: var(--zt-primary-color);--zt-calendar-range-middle-color: var(--zt-primary-color);--zt-calendar-range-middle-background-opacity: .1;--zt-calendar-selected-day-size: var(--zt-calendar-day-height);--zt-calendar-selected-day-color: var(--zt-white);--zt-calendar-info-font-size: var(--zt-font-size-xs);--zt-calendar-info-line-height: var(--zt-line-height-xs);--zt-calendar-selected-day-background: var(--zt-primary-color);--zt-calendar-day-disabled-color: var(--zt-gray-a2);--zt-calendar-confirm-button-height: 36px;--zt-calendar-confirm-button-margin: 7px 0;--zt-calendar-header-title-color: var(--zt-gray-a4)}.zt-calendar{display:flex;flex-direction:column;height:100%;background:var(--zt-calendar-background);color:var(--zt-text-color)}.zt-calendar__popup.zt-popup--top,.zt-calendar__popup.zt-popup--bottom{height:var(--zt-calendar-popup-height)}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__header{flex-shrink:0}.zt-calendar__month-title,.zt-calendar__header-title,.zt-calendar__header-subtitle{display:flex;padding:0 16px;color:var(--zt-text-color);height:var(--zt-calendar-header-title-height);line-height:var(--zt-calendar-header-title-height);text-align:center;align-items:center;justify-content:center}.zt-calendar__month-title--opt,.zt-calendar__header-title--opt,.zt-calendar__header-subtitle--opt{width:32px;height:32px;line-height:32px;border-radius:50%;padding:0;margin:0 8px}.zt-calendar__month-title--right,.zt-calendar__header-title--right,.zt-calendar__header-subtitle--right{transform:rotate(180deg)}.zt-calendar__month-title--unenable,.zt-calendar__header-title--unenable,.zt-calendar__header-subtitle--unenable{opacity:.2}.zt-calendar__month-title--enable,.zt-calendar__header-title--enable,.zt-calendar__header-subtitle--enable{opacity:1}.zt-calendar__month-title--enable:active,.zt-calendar__header-title--enable:active,.zt-calendar__header-subtitle--enable:active{border-radius:50%;background-color:var(--zt-gray-a1);opacity:.6}.zt-calendar__month-title-text,.zt-calendar__header-title-text,.zt-calendar__header-subtitle-text{flex-grow:1}.zt-calendar__header-title{font-size:var(--zt-calendar-header-title-font-size);color:var(--zt-calendar-header-title-color);position:relative;display:flex;justify-content:center;align-items:center}.zt-calendar__header-title:after{top:var(--zt-calendar-header-title-height);content:"";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-calendar__header-subtitle{font-size:var(--zt-calendar-header-subtitle-font-size)}.zt-calendar__month-title{font-size:var(--zt-calendar-month-title-font-size)}.zt-calendar__weekdays{display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{flex:1;font-size:var(--zt-calendar-weekdays-font-size);line-height:var(--zt-calendar-weekdays-height);font-weight:var(--zt-font-bold);text-align:center;background:var(--zt-calendar-weekdays-background);color:var(--zt-calendar-weekdays-font-color)}.zt-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:var(--zt-calendar-background);box-shadow:var(--zt-calendar-body-box-shadow)}.zt-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__day,.zt-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:var(--zt-calendar-day-height);margin-bottom:var(--zt-calendar-day-margin-bottom);font-size:var(--zt-calendar-day-font-size);cursor:pointer;outline:none}.zt-calendar__day--end,.zt-calendar__day--start,.zt-calendar__day--start-end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected{color:var(--zt-calendar-range-edge-color);background:var(--zt-calendar-range-edge-background);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__day--start{border-radius:var(--zt-calendar-day-height-half) 0 0 var(--zt-calendar-day-height-half);border-right:none}.zt-calendar__day--end{border-radius:0 var(--zt-calendar-day-height-half) var(--zt-calendar-day-height-half) 0;border-left:none}.zt-calendar__day--start-end,.zt-calendar__day--multiple-selected{border-radius:var(--zt-calendar-day-height-half)}.zt-calendar__day--middle{color:var(--zt-calendar-range-middle-color)}.zt-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--zt-calendar-range-middle-background-opacity);content:""}.zt-calendar__day--disabled,.zt-calendar__day--preview{color:var(--zt-calendar-day-disabled-color);cursor:default}.zt-calendar__selected-day{font-weight:var(--zt-font-bold);width:var(--zt-calendar-selected-day-size);height:var(--zt-calendar-selected-day-size);color:var(--zt-calendar-selected-day-color);background:var(--zt-calendar-selected-day-background);border-radius:calc(var(--zt-calendar-selected-day-size) / 2);box-shadow:0 0 0 3px rgba(0,145,250,.1)}.zt-calendar__footer{flex-shrink:0;display:flex;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-theme-dark{--zt-calendar-header-title-color: var(--zt-gray-a6);--zt-calendar-range-middle-color: none;--zt-calendar-weekdays-font-color: rgba(255, 255, 255, .8);--zt-calendar-weekdays-background: rgba(255, 255, 255, .04);--zt-calendar-month-mark-color: rgba(100, 101, 102, .2);--zt-calendar-day-disabled-color: rgba(255, 255, 255, .3)}
1
+ :root{--zt-calendar-background: var(--zt-background-2);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-weekdays-font-color: var(--zt-gray-a8);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-margin-bottom: 4px;--zt-calendar-range-edge-color: var(--zt-white);--zt-calendar-range-edge-background: var(--zt-primary-color);--zt-calendar-range-middle-color: var(--zt-primary-color);--zt-calendar-range-middle-background-opacity: .1;--zt-calendar-selected-day-size: var(--zt-calendar-day-height);--zt-calendar-selected-day-color: var(--zt-white);--zt-calendar-selected-day-background: var(--zt-primary-color);--zt-calendar-day-disabled-color: var(--zt-gray-a2);--zt-calendar-confirm-button-height: 36px;--zt-calendar-confirm-button-margin: 7px 0;--zt-calendar-header-title-color: var(--zt-gray-a4);--zt-calendar-weekday-line-height: 30px;--zt-calendar-header-height: 32px;--zt-calendar-header-subtitle-line-height: 44px}:root[zt-theme-size=large]{--zt-calendar-weekday-line-height: 42px;--zt-calendar-header-height: 44px;--zt-calendar-header-subtitle-line-height: 56px}.zt-calendar{display:flex;flex-direction:column;height:100%;background:var(--zt-calendar-background);color:var(--zt-text-color)}.zt-calendar__popup.zt-popup--top,.zt-calendar__popup.zt-popup--bottom{height:var(--zt-calendar-popup-height)}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__header{flex-shrink:0}.zt-calendar__svg-defs-path-fill{fill:var(--zt-primary-color)}.zt-calendar__month-title,.zt-calendar__header-title,.zt-calendar__header-subtitle{display:flex;padding:0 16px;color:var(--zt-text-color);height:var(--zt-calendar-header-title-height);line-height:var(--zt-calendar-header-subtitle-line-height);text-align:center;align-items:center;justify-content:center}.zt-calendar__month-title--opt,.zt-calendar__header-title--opt,.zt-calendar__header-subtitle--opt{width:32px;height:32px;line-height:var(--zt-calendar-header-height);border-radius:50%;padding:0;margin:0 8px}.zt-calendar__month-title--right,.zt-calendar__header-title--right,.zt-calendar__header-subtitle--right{transform:rotate(180deg)}.zt-calendar__month-title--unenable,.zt-calendar__header-title--unenable,.zt-calendar__header-subtitle--unenable{opacity:.2}.zt-calendar__month-title--enable,.zt-calendar__header-title--enable,.zt-calendar__header-subtitle--enable{opacity:1}.zt-calendar__month-title--enable:active,.zt-calendar__header-title--enable:active,.zt-calendar__header-subtitle--enable:active{border-radius:50%;background-color:var(--zt-gray-a1);opacity:.6}.zt-calendar__month-title-text,.zt-calendar__header-title-text,.zt-calendar__header-subtitle-text{flex-grow:1}.zt-calendar__header-title{font-size:var(--zt-font-size-md);color:var(--zt-calendar-header-title-color);position:relative;display:flex;justify-content:center;align-items:center}.zt-calendar__header-title:after{top:var(--zt-calendar-header-title-height);content:"";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-calendar__header-subtitle,.zt-calendar__month-title{font-size:var(--zt-font-size-md)}.zt-calendar__weekdays{display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{flex:1;font-size:var(--zt-font-size-sm);line-height:var(--zt-calendar-weekday-line-height);font-weight:var(--zt-font-bold);text-align:center;background:var(--zt-calendar-weekdays-background);color:var(--zt-calendar-weekdays-font-color)}.zt-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:var(--zt-calendar-background);box-shadow:var(--zt-calendar-body-box-shadow)}.zt-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__day,.zt-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:var(--zt-calendar-day-height);margin-bottom:var(--zt-calendar-day-margin-bottom);font-size:var(--zt-font-size-lg);cursor:pointer;outline:none}.zt-calendar__day--end,.zt-calendar__day--start,.zt-calendar__day--start-end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected{color:var(--zt-calendar-range-edge-color);background:var(--zt-calendar-range-edge-background);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__day--start{border-radius:var(--zt-calendar-day-height-half) 0 0 var(--zt-calendar-day-height-half);border-right:none}.zt-calendar__day--end{border-radius:0 var(--zt-calendar-day-height-half) var(--zt-calendar-day-height-half) 0;border-left:none}.zt-calendar__day--start-end,.zt-calendar__day--multiple-selected{border-radius:var(--zt-calendar-day-height-half)}.zt-calendar__day--middle{color:var(--zt-calendar-range-middle-color)}.zt-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--zt-calendar-range-middle-background-opacity);content:""}.zt-calendar__day--disabled,.zt-calendar__day--preview{color:var(--zt-calendar-day-disabled-color);cursor:default}.zt-calendar__selected-day{font-weight:var(--zt-font-bold);width:var(--zt-calendar-selected-day-size);height:var(--zt-calendar-selected-day-size);color:var(--zt-calendar-selected-day-color);background:var(--zt-calendar-selected-day-background);border-radius:calc(var(--zt-calendar-selected-day-size) / 2);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__footer{flex-shrink:0;display:flex;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-theme-dark{--zt-calendar-range-middle-color: var(--zt-white)}
@@ -211,7 +211,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
211
211
  export default Calendar;
212
212
  export { calendarProps } from './Calendar';
213
213
  export type { CalendarProps } from './Calendar';
214
- export type { CalendarType, CalendarDayItem, CalendarDayType, CalendarInstance, } from './types';
214
+ export type { CalendarType, CalendarDayItem, CalendarDayType, CalendarInstance, CalendarThemeVars, } from './types';
215
215
  declare module 'vue' {
216
216
  interface GlobalComponents {
217
217
  ZtCalendar: typeof Calendar;