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
package/lib/index.d.ts CHANGED
@@ -78,4 +78,4 @@ declare namespace _default {
78
78
  }
79
79
  export default _default;
80
80
  export function install(app: any): void;
81
- export const version: "3.1.8";
81
+ export const version: "3.1.10";
package/lib/index.js CHANGED
@@ -170,7 +170,7 @@ __reExport(stdin_exports, require("./time-picker"), module.exports);
170
170
  __reExport(stdin_exports, require("./timeline"), module.exports);
171
171
  __reExport(stdin_exports, require("./toast"), module.exports);
172
172
  __reExport(stdin_exports, require("./uploader"), module.exports);
173
- const version = "3.1.8";
173
+ const version = "3.1.10";
174
174
  function install(app) {
175
175
  const components = [
176
176
  import_action_sheet.ActionSheet,
@@ -1,55 +1,55 @@
1
- import type { App } from 'vue';
2
-
3
- declare type ListenEvent =
4
- | 'scroll'
5
- | 'wheel'
6
- | 'mousewheel'
7
- | 'resize'
8
- | 'animationend'
9
- | 'transitionend'
10
- | 'touchmove';
11
-
12
- // eslint-disable-next-line
13
- declare type Callback = (listener: any, options: LazyloadOptions) => void;
14
-
15
- declare type Filter = {
16
- webp?: Callback;
17
- progressive?: Callback;
18
- };
19
-
20
- declare type Adapter = {
21
- error?: Callback;
22
- loaded?: Callback;
23
- loading?: Callback;
24
- };
25
-
26
- export declare type LazyloadOptions = {
27
- error?: string;
28
- filter?: Filter;
29
- silent?: boolean;
30
- adapter?: Adapter;
31
- loading?: string;
32
- attempt?: number;
33
- preLoad?: number;
34
- observer?: boolean;
35
- lazyImage?: boolean;
36
- throttleWait?: number;
37
- listenEvents?: ListenEvent[];
38
- dispatchEvent?: boolean;
39
- lazyComponent?: boolean;
40
- observerOptions?: IntersectionObserverInit;
41
- };
42
-
43
- export declare const Lazyload: {
44
- install(app: App, options?: LazyloadOptions): void;
45
- };
46
-
47
- declare module '@vue/runtime-core' {
48
- interface ComponentCustomProperties {
49
- $Lazyload: {
50
- $on: (event: string, handler: Callback) => void;
51
- $off: (event: string, handler?: Callback) => void;
52
- $once: (event: string, handler: Callback) => void;
53
- };
54
- }
55
- }
1
+ import type { App } from 'vue';
2
+
3
+ declare type ListenEvent =
4
+ | 'scroll'
5
+ | 'wheel'
6
+ | 'mousewheel'
7
+ | 'resize'
8
+ | 'animationend'
9
+ | 'transitionend'
10
+ | 'touchmove';
11
+
12
+ // eslint-disable-next-line
13
+ declare type Callback = (listener: any, options: LazyloadOptions) => void;
14
+
15
+ declare type Filter = {
16
+ webp?: Callback;
17
+ progressive?: Callback;
18
+ };
19
+
20
+ declare type Adapter = {
21
+ error?: Callback;
22
+ loaded?: Callback;
23
+ loading?: Callback;
24
+ };
25
+
26
+ export declare type LazyloadOptions = {
27
+ error?: string;
28
+ filter?: Filter;
29
+ silent?: boolean;
30
+ adapter?: Adapter;
31
+ loading?: string;
32
+ attempt?: number;
33
+ preLoad?: number;
34
+ observer?: boolean;
35
+ lazyImage?: boolean;
36
+ throttleWait?: number;
37
+ listenEvents?: ListenEvent[];
38
+ dispatchEvent?: boolean;
39
+ lazyComponent?: boolean;
40
+ observerOptions?: IntersectionObserverInit;
41
+ };
42
+
43
+ export declare const Lazyload: {
44
+ install(app: App, options?: LazyloadOptions): void;
45
+ };
46
+
47
+ declare module '@vue/runtime-core' {
48
+ interface ComponentCustomProperties {
49
+ $Lazyload: {
50
+ $on: (event: string, handler: Callback) => void;
51
+ $off: (event: string, handler?: Callback) => void;
52
+ $once: (event: string, handler: Callback) => void;
53
+ };
54
+ }
55
+ }
@@ -1 +1 @@
1
- :root{--zt-list-text-color: var(--zt-text-color-a6);--zt-list-text-font-size: var(--zt-font-size-md);--zt-list-text-line-height: 44px;--zt-list-loading-icon-size: 16px}.zt-list__loading,.zt-list__finished-text,.zt-list__error-text{color:var(--zt-list-text-color);font-size:var(--zt-list-text-font-size);line-height:var(--zt-list-text-line-height);text-align:center}.zt-list__placeholder{height:0;pointer-events:none}.zt-list__loading-icon .zt-loading__spinner{width:var(--zt-list-loading-icon-size);height:var(--zt-list-loading-icon-size)}
1
+ :root{--zt-list-text-color: var(--zt-gray-a6);--zt-list-loading-icon-size: 16px;--zt-list-line-height: 44px}:root[zt-theme-size=large]{--zt-list-line-height: 56px}.zt-list__loading,.zt-list__finished-text,.zt-list__error-text{color:var(--zt-list-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-list-line-height);text-align:center}.zt-list__placeholder{height:0;pointer-events:none}.zt-list__loading-icon .zt-loading__spinner{width:var(--zt-list-loading-icon-size);height:var(--zt-list-loading-icon-size)}
@@ -53,7 +53,7 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
53
53
  }, {}>>;
54
54
  export default List;
55
55
  export type { ListProps };
56
- export type { ListInstance, ListDirection } from './types';
56
+ export type { ListInstance, ListDirection, ListThemeVars } from './types';
57
57
  declare module 'vue' {
58
58
  interface GlobalComponents {
59
59
  ZtList: typeof List;
@@ -5,3 +5,8 @@ export type ListExpose = {
5
5
  check: () => void;
6
6
  };
7
7
  export type ListInstance = ComponentPublicInstance<ListProps, ListExpose>;
8
+ export type ListThemeVars = {
9
+ listTextColor?: string;
10
+ listLoadingIconSize?: string;
11
+ listLineHeight?: string;
12
+ };
@@ -1 +1 @@
1
- :root{--zt-loading-text-color: var(--zt-text-color-a6);--zt-loading-text-font-size: var(--zt-font-size-md);--zt-loading-spinner-color: var(--zt-text-color-a4);--zt-loading-spinner-size: 36px;--zt-loading-spinner-duration: .8s;--zt-loading-text-line-height: 20px}.zt-loading{position:relative;color:var(--zt-loading-spinner-color);font-size:0;vertical-align:middle}.zt-loading__spinner{position:relative;display:inline-block;width:var(--zt-loading-spinner-size);max-width:100%;height:var(--zt-loading-spinner-size);max-height:100%;vertical-align:middle;animation:zt-rotate var(--zt-loading-spinner-duration) linear infinite}.zt-loading__spinner--spinner{animation-timing-function:steps(12)}.zt-loading__spinner--circular{animation-duration:2s}.zt-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.zt-loading__line:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.zt-loading__circular{display:block;width:100%;height:100%}.zt-loading__circular circle{animation:zt-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.zt-loading__snake{display:block;width:100%;height:100%}.zt-loading__text{display:inline-block;margin-left:var(--zt-padding-base);color:var(--zt-loading-text-color);font-size:var(--zt-loading-text-font-size);line-height:var(--zt-loading-text-line-height);vertical-align:middle}.zt-loading--vertical{display:flex;flex-direction:column;align-items:center}.zt-loading--vertical .zt-loading__text{margin:var(--zt-padding-base) 0 0}.zt-loading--horizontal-with-text .zt-loading__spinner--snake{width:20px;height:20px}@keyframes zt-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.zt-loading__spinner--spinner i:nth-of-type(1){transform:rotate(30deg);opacity:1}.zt-loading__spinner--spinner i:nth-of-type(2){transform:rotate(60deg);opacity:.9375}.zt-loading__spinner--spinner i:nth-of-type(3){transform:rotate(90deg);opacity:.875}.zt-loading__spinner--spinner i:nth-of-type(4){transform:rotate(120deg);opacity:.8125}.zt-loading__spinner--spinner i:nth-of-type(5){transform:rotate(150deg);opacity:.75}.zt-loading__spinner--spinner i:nth-of-type(6){transform:rotate(180deg);opacity:.6875}.zt-loading__spinner--spinner i:nth-of-type(7){transform:rotate(210deg);opacity:.625}.zt-loading__spinner--spinner i:nth-of-type(8){transform:rotate(240deg);opacity:.5625}.zt-loading__spinner--spinner i:nth-of-type(9){transform:rotate(270deg);opacity:.5}.zt-loading__spinner--spinner i:nth-of-type(10){transform:rotate(300deg);opacity:.4375}.zt-loading__spinner--spinner i:nth-of-type(11){transform:rotate(330deg);opacity:.375}.zt-loading__spinner--spinner i:nth-of-type(12){transform:rotate(360deg);opacity:.3125}
1
+ :root{--zt-loading-text-color: var(--zt-gray-a6);--zt-loading-spinner-color: var(--zt-gray-a4);--zt-loading-spinner-size: 36px;--zt-loading-spinner-duration: .8s}.zt-loading{position:relative;color:var(--zt-loading-spinner-color);font-size:0;vertical-align:middle}.zt-loading__spinner{position:relative;display:inline-block;width:var(--zt-loading-spinner-size);max-width:100%;height:var(--zt-loading-spinner-size);max-height:100%;vertical-align:middle;animation:zt-rotate var(--zt-loading-spinner-duration) linear infinite}.zt-loading__spinner--spinner{animation-timing-function:steps(12)}.zt-loading__spinner--circular{animation-duration:2s}.zt-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.zt-loading__line:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.zt-loading__circular{display:block;width:100%;height:100%}.zt-loading__circular circle{animation:zt-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.zt-loading__snake{display:block;width:100%;height:100%}.zt-loading__text{display:inline-block;margin-left:var(--zt-padding-base);color:var(--zt-loading-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);vertical-align:middle}.zt-loading--vertical{display:flex;flex-direction:column;align-items:center}.zt-loading--vertical .zt-loading__text{margin:var(--zt-padding-base) 0 0}.zt-loading--horizontal-with-text .zt-loading__spinner--snake{width:20px;height:20px}@keyframes zt-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.zt-loading__spinner--spinner i:nth-of-type(1){transform:rotate(30deg);opacity:1}.zt-loading__spinner--spinner i:nth-of-type(2){transform:rotate(60deg);opacity:.9375}.zt-loading__spinner--spinner i:nth-of-type(3){transform:rotate(90deg);opacity:.875}.zt-loading__spinner--spinner i:nth-of-type(4){transform:rotate(120deg);opacity:.8125}.zt-loading__spinner--spinner i:nth-of-type(5){transform:rotate(150deg);opacity:.75}.zt-loading__spinner--spinner i:nth-of-type(6){transform:rotate(180deg);opacity:.6875}.zt-loading__spinner--spinner i:nth-of-type(7){transform:rotate(210deg);opacity:.625}.zt-loading__spinner--spinner i:nth-of-type(8){transform:rotate(240deg);opacity:.5625}.zt-loading__spinner--spinner i:nth-of-type(9){transform:rotate(270deg);opacity:.5}.zt-loading__spinner--spinner i:nth-of-type(10){transform:rotate(300deg);opacity:.4375}.zt-loading__spinner--spinner i:nth-of-type(11){transform:rotate(330deg);opacity:.375}.zt-loading__spinner--spinner i:nth-of-type(12){transform:rotate(360deg);opacity:.3125}
@@ -24,6 +24,7 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
24
24
  }, {}>>;
25
25
  export default Loading;
26
26
  export type { LoadingType, LoadingProps } from './Loading';
27
+ export type { LoadingThemeVars } from './types';
27
28
  declare module 'vue' {
28
29
  interface GlobalComponents {
29
30
  ZtLoading: typeof Loading;
@@ -0,0 +1,6 @@
1
+ export type LoadingThemeVars = {
2
+ loadingTextColor?: string;
3
+ loadingSpinnerColor?: string;
4
+ loadingSpinnerSize?: string;
5
+ loadingSpinnerDuration?: string;
6
+ };
@@ -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-media-picker-image-color: #2d4b73;--zt-media-picker-button-background: linear-gradient(135deg, #e6ebf0 0%, #fff 100%, #fff 100%);--zt-media-picker-button-box-shadow: -4px -4px 8px 0 #fff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-media-picker-button-border: 0;--zt-media-picker-button-active-border: 1px solid rgba(255, 255, 255, .75);--zt-media-picker-button-active-box-shadow: inset 4px 4px 8px 0 rgba(45, 75, 115, .24)}.zt-media-picker__hidden{display:none}.zt-media-picker__title{position:relative;height:44px;line-height:44px;font-weight:700;font-size:16px;color:var(--zt-text-color);padding:0 16px}.zt-media-picker__title:before{position:absolute;width:4px;height:16px;background:var(--zt-blue);left:0;top:14px;content:" "}.zt-media-picker__title: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-media-picker__line{width:100%;height:92px;display:flex;align-items:center;overflow-x:auto}.zt-media-picker__line::-webkit-scrollbar{width:0;height:0}.zt-media-picker__line:after{content:" ";min-width:16px;height:10px}.zt-media-picker__box{width:48px;display:flex;flex-direction:column;align-items:center}.zt-media-picker__box:first-child{margin-left:16px}.zt-media-picker__box:not(:last-child){margin-right:24px}.zt-media-picker__button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:var(--zt-media-picker-button-background);box-shadow:var(--zt-media-picker-button-box-shadow);border:var(--zt-media-picker-button-border);border-radius:8px;box-sizing:border-box}.zt-media-picker__button:active{background:rgba(45,75,115,.04);border:var(--zt-media-picker-button-active-border);box-shadow:var(--zt-media-picker-button-active-box-shadow)}.zt-media-picker__icon{width:32px;height:32px;color:var(--zt-media-picker-image-color)}.zt-media-picker__label{margin-top:8px;font-size:12px;color:var(--zt-gray-a8);letter-spacing:0;text-align:center;line-height:16px;-webkit-user-select:none;user-select:none}.zt-media-picker__grid{padding:0 16px 8px!important}.zt-media-picker__delete{box-sizing:content-box;width:20px;height:20px;position:absolute;padding:4px;top:0;right:0}.zt-media-picker .zt-image{width:100%;height:100%}.zt-media-picker .zt-grid-item__content{padding:0}.zt-media-picker__thumbnail{width:100%;height:100%}.zt-media-picker__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-white);background-color:var(--zt-uploader-mask-background);border-radius:4px}.zt-media-picker__mask-icon{font-size:var(--zt-uploader-mask-icon-size)}.zt-media-picker__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-media-picker__loading{width:var(--zt-uploader-loading-icon-size);height:var(--zt-uploader-loading-icon-size);color:var(--zt-uploader-icon-color)}.zt-theme-dark{--zt-media-picker-image-color: #ffffff;--zt-media-picker-button-background: linear-gradient(135deg, #111c29 0%, #1d2c3e 100%, #1c2a3c 100%);--zt-media-picker-button-box-shadow: -4px -4px 8px 0 #ffffff14, 4px 4px 8px 0 #000c18cc;--zt-media-picker-button-border: 1px solid #ffffff1f;--zt-media-picker-button-active-border: 1px solid #ffffff1f;--zt-media-picker-button-active-box-shadow: inset 6px 6px 6px 0 #000d1b}
1
+ :root{--zt-media-picker-image-color: var(--zt-text-color);--zt-media-picker-button-background: linear-gradient(135deg, #e6ebf0 0%, #fff 100%, #fff 100%);--zt-media-picker-button-box-shadow: -4px -4px 8px 0 var(--zt-white), 4px 4px 8px 0 var(--zt-gray-a1);--zt-media-picker-button-border: 0;--zt-media-picker-button-active-border: 1px solid rgba(255, 255, 255, .75);--zt-media-picker-button-active-box-shadow: inset 4px 4px 8px 0 var(--zt-gray-a2);--zt-media-picker-line-height: 46px;--zt-media-picker-box-size: 48px;--zt-media-picker-icon-size: 32px;--zt-media-picker-title-height: 44px}:root[zt-theme-size=large]{--zt-media-picker-line-height: 52px;--zt-media-picker-box-size: 54px;--zt-media-picker-icon-size: 38px;--zt-media-picker-title-height: 56px}.zt-media-picker__hidden{display:none}.zt-media-picker__title{position:relative;height:var(--zt-media-picker-title-height);line-height:var(--zt-media-picker-title-height);font-weight:700;font-size:var(--zt-font-size-lg);color:var(--zt-text-color);padding:0 16px}.zt-media-picker__title:before{position:absolute;width:4px;height:16px;background:var(--zt-primary-color);left:0;top:14px;content:" "}.zt-media-picker__title: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-media-picker__line{width:100%;height:calc(var(--zt-media-picker-line-height) * 2);display:flex;align-items:center;overflow-x:auto}.zt-media-picker__line::-webkit-scrollbar{width:0;height:0}.zt-media-picker__line:after{content:" ";min-width:16px;height:10px}.zt-media-picker__box{width:var(--zt-media-picker-box-size);display:flex;flex-direction:column;align-items:center}.zt-media-picker__box:first-child{margin-left:16px}.zt-media-picker__box:not(:last-child){margin-right:24px}.zt-media-picker__button{display:flex;align-items:center;justify-content:center;width:var(--zt-media-picker-box-size);height:var(--zt-media-picker-box-size);background:var(--zt-media-picker-button-background);box-shadow:var(--zt-media-picker-button-box-shadow);border:var(--zt-media-picker-button-border);border-radius:8px;box-sizing:border-box}.zt-media-picker__button:active{background:rgba(45,75,115,.04);border:var(--zt-media-picker-button-active-border);box-shadow:var(--zt-media-picker-button-active-box-shadow)}.zt-media-picker__icon{width:var(--zt-media-picker-icon-size);height:var(--zt-media-picker-icon-size);color:var(--zt-media-picker-image-color)}.zt-media-picker__label{margin-top:8px;font-size:var(--zt-font-size-sm);color:var(--zt-gray-a8);letter-spacing:0;text-align:center;line-height:var(--zt-line-height-xs);-webkit-user-select:none;user-select:none}.zt-media-picker__grid{padding:0 16px 8px!important}.zt-media-picker__delete{box-sizing:content-box;width:20px;height:20px;position:absolute;padding:4px;top:0;right:0}.zt-media-picker .zt-image{width:100%;height:100%}.zt-media-picker .zt-grid-item__content{padding:0}.zt-media-picker__thumbnail{width:100%;height:100%}.zt-media-picker__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-white);background-color:var(--zt-uploader-mask-background);border-radius:4px}.zt-media-picker__mask-icon{font-size:var(--zt-font-size-xxxl)}.zt-media-picker__mask-message{margin-top:6px;padding:0 var(--zt-padding-base);font-size:var(--zt-font-size-sm);line-height:var(--zt-uploader-mask-message-line-height)}.zt-media-picker__loading{width:var(--zt-uploader-loading-icon-size);height:var(--zt-uploader-loading-icon-size);color:var(--zt-uploader-icon-color)}.zt-theme-dark{--zt-media-picker-button-background: linear-gradient(135deg, #111c29 0%, #1d2c3e 100%, #1c2a3c 100%);--zt-media-picker-button-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .08), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-media-picker-button-border: 1px solid var(--zt-gray-a1);--zt-media-picker-button-active-border: 1px solid var(--zt-gray-a1);--zt-media-picker-button-active-box-shadow: inset 6px 6px 6px 0 #000d1b}
@@ -146,7 +146,7 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
146
146
  }, {}>>;
147
147
  export default MediaPicker;
148
148
  export type { MediaPickerProps } from './MediaPicker';
149
- export type { Media, MediaType, MediaAddType, MediaUploadStatus, MediaPreview, MediaPick, MediaBeforeRead, MediaAfterRead, MediaBeforeDelete, } from './type';
149
+ export type { Media, MediaType, MediaAddType, MediaUploadStatus, MediaPreview, MediaPick, MediaBeforeRead, MediaAfterRead, MediaBeforeDelete, MediaPickerThemeVars, } from './type';
150
150
  declare module 'vue' {
151
151
  interface GlobalComponents {
152
152
  ZtMediaPicker: typeof MediaPicker;
@@ -20,3 +20,15 @@ export type MediaAfterRead = (medias: Array<Media>) => void;
20
20
  export type MediaBeforeDelete = (media: Media) => boolean | Promise<void>;
21
21
  export type MediaPick = (mediaType: MediaType, mediaAddType: MediaAddType) => boolean;
22
22
  export type MediaPreview = (medias: Array<Media>, index: number) => boolean;
23
+ export type MediaPickerThemeVars = {
24
+ mediaPickerImageColor?: string;
25
+ mediaPickerButtonBackground?: string;
26
+ mediaPickerButtonBoxShadow?: string;
27
+ mediaPickerButtonBorder?: string;
28
+ mediaPickerButtonActiveBorder?: string;
29
+ mediaPickerButtonActiveBoxShadow?: string;
30
+ mediaPickerLineHeight?: string;
31
+ mediaPickerBoxSize?: string;
32
+ mediaPickerIconSize?: string;
33
+ mediaPickerTitleHeight?: string;
34
+ };
@@ -1 +1 @@
1
- .zt-media-player{background-color:var(--zt-background);font-size:0}.zt-media-player__video{width:100%;height:400px;max-height:70%;background-color:rgba(0,0,0,.8)}.zt-media-player__audio{width:100%}.zt-media-player__cancel{padding:8px 16px;color:var(--zt-text-color)}.zt-media-player__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-media-player__cancel-btn:active{opacity:var(--zt-active-opacity)}
1
+ .zt-media-player{background-color:var(--zt-background);font-size:0}.zt-media-player__video{width:100%;height:400px;max-height:70%;background-color:rgba(0,0,0,.8)}.zt-media-player__audio{width:100%}.zt-media-player__cancel{padding:8px 16px;color:var(--zt-text-color)}.zt-media-player__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-media-player__cancel-btn:active{opacity:var(--zt-active-opacity)}
@@ -156,12 +156,12 @@ declare const _default: import("vue").DefineComponent<{
156
156
  loading: boolean;
157
157
  options: PickerOption[];
158
158
  allowHtml: boolean;
159
- showToolbar: boolean;
160
- toolbarPosition: string;
161
- showPicker: boolean;
162
159
  textKey: string;
163
160
  itemHeight: string | number;
164
161
  columnCounts: number;
162
+ showPicker: boolean;
163
+ showToolbar: boolean;
164
+ toolbarPosition: string;
165
165
  selectedIndex: number[];
166
166
  }, {}>;
167
167
  export default _default;
@@ -1 +1 @@
1
- :root{--zt-multiple-picker-warpper-padding: 12px 16px 4px 16px;--zt-multiple-picker-option-text-color: var(--zt-gray-default);--zt-multiple-picker-background-color: var(--zt-white);--zt-multiple-picker-toolbar-height: 44px;--zt-multiple-picker-action-padding: 0 var(--zt-padding-md);--zt-multiple-picker-title-font-size: var(--zt-font-size-md);--zt-multiple-picker-title-opacity: var(--zt-disabled-opacity);--zt-multiple-picker-title-padding: 12px 0;--zt-multiple-picker-title-line-height: var(--zt-line-height-md);--zt-multiple-picker-item-padding: 0 4px 8px 0;--zt-multiple-picker-action-font-size: var(--zt-font-size-md);--zt-multiple-picker-confirm-action-font-weight: var(--zt-font-bold);--zt-multiple-picker-confirm-action-color: var(--zt-blue);--zt-multiple-picker-cancel-action-font-weight: normal;--zt-multiple-picker-cancel-action-color: var(--zt-black);--zt-multiple-picker-option-font-size: var(--zt-font-size-md);--zt-multiple-picker-option-disabled-opacity: .3;--zt-multiple-picker-option-active-opacity: .7;--zt-multiple-picker-max-height: 84vh;--zt-multiple-picker-loading-icon-color: var(--zt-blue);--zt-multiple-picker-loading-index: 3;--zt-multiple-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-multiple-picker-toolbar-padding: 8px 16px;--zt-multiple-picker-ellipsis-border-radius: 18px;--zt-multiple-picker-ellipsis-border: 1px solid var(--zt-gray-a2);--zt-multiple-picker-ellipsis-line-height: 20px;--zt-multiple-picker-title-background: var(--zt-white)}.zt-multiple-picker{display:flex;flex-direction:column;justify-content:space-between;position:relative;background-color:var(--zt-multiple-picker-background-color);-webkit-user-select:none;user-select:none;max-height:var(--zt-multiple-picker-max-height)}.zt-multiple-picker__toolbar{display:flex;align-items:center;justify-content:space-between;box-sizing:content-box;flex-shrink:0;background:var(--zt-multiple-picker-title-background);height:var(--zt-multiple-picker-toolbar-height);padding:var(--zt-multiple-picker-toolbar-padding)}.zt-multiple-picker__cancel,.zt-multiple-picker__confirm{height:100%;padding:var(--zt-multiple-picker-action-padding);font-size:var(--zt-multiple-picker-action-font-size);background-color:transparent;border:none;cursor:pointer}.zt-multiple-picker__cancel:active,.zt-multiple-picker__confirm:active{opacity:var(--zt-multiple-picker-option-active-opacity)}.zt-multiple-picker__confirm{color:var(--zt-multiple-picker-confirm-action-color);font-weight:var(--zt-multiple-picker-confirm-action-font-weight)}.zt-multiple-picker__cancel{color:var(--zt-multiple-picker-cancel-action-color);font-weight:var(--zt-multiple-picker-cancel-action-font-weight)}.zt-multiple-picker__title{flex-shrink:0;font-weight:var(--zt-multiple-picker-cancel-action-font-weight);font-size:var(--zt-multiple-picker-title-font-size);line-height:var(--zt-multiple-picker-title-line-height);text-align:center;background:var(--zt-multiple-picker-title-background);color:var(--zt-gray-default);opacity:var(--zt-multiple-picker-title-opacity);padding:var(--zt-multiple-picker-title-padding)}.zt-multiple-picker__options{position:relative;display:flex;cursor:-webkit-grab;cursor:grab;overflow-y:scroll}.zt-multiple-picker__options: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-multiple-picker__options:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:0;border-top:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-multiple-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-multiple-picker-loading-icon-color);background-color:var(--zt-multiple-picker-loading-mask-color)}.zt-multiple-picker-options{flex:1;overflow-y:scroll;font-size:var(--zt-multiple-picker-option-font-size);margin:0;outline:0 none;padding:0}.zt-multiple-picker-options__wrapper{display:flex;flex-wrap:wrap;background-color:var(--zt-multiple-picker-background-color);padding:var(--zt-multiple-picker-warpper-padding)}.zt-multiple-picker-options__item{color:var(--zt-multiple-picker-option-text-color);padding:var(--zt-multiple-picker-item-padding);box-sizing:border-box;text-align:center;font-size:var(--zt-font-size-md)}.zt-multiple-picker-options__item .zt-ellipsis{line-height:var(--zt-multiple-picker-ellipsis-line-height);border-radius:var(--zt-multiple-picker-ellipsis-border-radius);border:var(--zt-multiple-picker-ellipsis-border);padding:var(--zt-multiple-picker-toolbar-padding);opacity:var(--zt-active-opacity)}.zt-multiple-picker-options__item--disabled{cursor:not-allowed;opacity:var(--zt-multiple-picker-option-disabled-opacity)}.zt-multiple-picker-options__item--last{padding-right:0}.zt-multiple-picker-options__item--selected .zt-ellipsis{background:rgba(0,145,250,.1);border:1px solid rgba(0,145,250,.6);border-radius:var(--zt-multiple-picker-ellipsis-border-radius);color:var(--zt-blue);opacity:1}.zt-theme-dark{--zt-multiple-picker-title-background: var(--zt-background-2);--zt-multiple-picker-title-opacity: 1;--zt-multiple-picker-background-color: var(--zt-background-2);--zt-multiple-picker-option-text-color: var(--zt-white);--zt-multiple-picker-cancel-action-color: rgba(255, 255, 255, .04);--zt-multiple-picker-ellipsis-border: .5px solid rgba(255, 255, 255, .2)}
1
+ :root{--zt-multiple-picker-warpper-padding: 12px 16px 4px 16px;--zt-multiple-picker-option-text-color: var(--zt-gray-a6);--zt-multiple-picker-background-color: var(--zt-background-2);--zt-multiple-picker-toolbar-height: 44px;--zt-multiple-picker-title-text-color: var(--zt-gray-a4);--zt-multiple-picker-title-padding: 12px 0;--zt-multiple-picker-item-padding: 0 4px 8px 0;--zt-multiple-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-multiple-picker-max-height: 84vh;--zt-multiple-picker-loading-icon-color: var(--zt-primary-color);--zt-multiple-picker-loading-mask-color: var(--zt-picker-loading-mask-color);--zt-multiple-picker-toolbar-padding: 8px 16px;--zt-multiple-picker-ellipsis-border: 1px solid var(--zt-gray-a2);--zt-multiple-picker-title-background: var(--zt-background-2);--zt-multiple-picker-ellipsis-height: 38px}:root[zt-theme-size=large]{--zt-multiple-picker-ellipsis-height: 50px}.zt-multiple-picker{display:flex;flex-direction:column;justify-content:space-between;position:relative;background-color:var(--zt-multiple-picker-background-color);-webkit-user-select:none;user-select:none;max-height:var(--zt-multiple-picker-max-height)}.zt-multiple-picker__toolbar{display:flex;align-items:center;justify-content:space-between;box-sizing:content-box;flex-shrink:0;background:var(--zt-multiple-picker-title-background);height:var(--zt-multiple-picker-toolbar-height);padding:var(--zt-multiple-picker-toolbar-padding)}.zt-multiple-picker__title{flex-shrink:0;font-weight:var(--zt-multiple-picker-cancel-action-font-weight);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);text-align:center;background:var(--zt-multiple-picker-title-background);color:var(--zt-multiple-picker-title-text-color);padding:var(--zt-multiple-picker-title-padding)}.zt-multiple-picker__options{position:relative;display:flex;cursor:-webkit-grab;cursor:grab;overflow-y:scroll}.zt-multiple-picker__options: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-multiple-picker__options:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:0;border-top:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-multiple-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-multiple-picker-loading-icon-color);background-color:var(--zt-multiple-picker-loading-mask-color)}.zt-multiple-picker-options{flex:1;overflow-y:scroll;font-size:var(--zt-font-size-md);margin:0;outline:0 none;padding:0}.zt-multiple-picker-options__wrapper{display:flex;flex-wrap:wrap;background-color:var(--zt-multiple-picker-background-color);padding:var(--zt-multiple-picker-warpper-padding)}.zt-multiple-picker-options__item{color:var(--zt-multiple-picker-option-text-color);padding:var(--zt-multiple-picker-item-padding);box-sizing:border-box;text-align:center;font-size:var(--zt-font-size-md)}.zt-multiple-picker-options__item .zt-ellipsis{height:var(--zt-multiple-picker-ellipsis-height);line-height:var(--zt-multiple-picker-ellipsis-height);border-radius:calc(var(--zt-multiple-picker-ellipsis-height) / 2);border:var(--zt-multiple-picker-ellipsis-border);padding:0 var(--zt-padding-md)}.zt-multiple-picker-options__item:active{opacity:var(--zt-active-opacity)}.zt-multiple-picker-options__item--disabled{cursor:not-allowed;opacity:var(--zt-multiple-picker-option-disabled-opacity)}.zt-multiple-picker-options__item--last{padding-right:0}.zt-multiple-picker-options__item--selected{color:var(--zt-primary-color)}.zt-multiple-picker-options__item--selected .zt-ellipsis{background:var(--zt-primary-color-a1)}
@@ -1,4 +1,5 @@
1
1
  import { MultiplePickerProps } from './MultiplePicker';
2
+ export type { MultiplePickerThemeVars } from './types';
2
3
  export declare const MultiplePicker: import("../utils").WithInstall<import("vue").DefineComponent<{
3
4
  title: StringConstructor;
4
5
  loading: BooleanConstructor;
@@ -106,12 +107,12 @@ export declare const MultiplePicker: import("../utils").WithInstall<import("vue"
106
107
  loading: boolean;
107
108
  options: import("./types").PickerOption[];
108
109
  allowHtml: boolean;
109
- showToolbar: boolean;
110
- toolbarPosition: string;
111
- showPicker: boolean;
112
110
  textKey: string;
113
111
  itemHeight: string | number;
114
112
  columnCounts: number;
113
+ showPicker: boolean;
114
+ showToolbar: boolean;
115
+ toolbarPosition: string;
115
116
  selectedIndex: number[];
116
117
  }, {}>>;
117
118
  export default MultiplePicker;
@@ -13,3 +13,20 @@ export type MultiplePickerOptionsExpose = {
13
13
  setConfirmIndex: (indexes: PickerOption) => void;
14
14
  };
15
15
  export type MultiplePickerInstance = ComponentPublicInstance<MultiplePickerOptionsProps, MultiplePickerOptionsExpose>;
16
+ export type MultiplePickerThemeVars = {
17
+ multiplePickerWarpperPadding?: string;
18
+ multiplePickerOptionTextColor?: string;
19
+ multiplePickerBackgroundColor?: string;
20
+ multiplePickerToolbarHeight?: string;
21
+ multiplePickerTitleTextColor?: string;
22
+ multiplePickerTitlePadding?: string;
23
+ multiplePickerItemPadding?: string;
24
+ multiplePickerOptionDisabledOpacity?: string;
25
+ multiplePickerMaxHeight?: string;
26
+ multiplePickerLoadingIconColor?: string;
27
+ multiplePickerLoadingMaskColor?: string;
28
+ multiplePickerToolbarPadding?: string;
29
+ multiplePickerEllipsisBorder?: string;
30
+ multiplePickerTitleBackground?: string;
31
+ multiplePickerEllipsisHeight?: string;
32
+ };
@@ -1 +1 @@
1
- :root{--zt-nav-bar-height: 44px;--zt-nav-bar-padding-bottom: 12px;--zt-nav-bar-background: var(--zt-background);--zt-nav-bar-icon-font-size: 24px;--zt-nav-bar-icon-color: var(--zt-text-color);--zt-nav-bar-icon-size: 36px;--zt-nav-bar-button-height: 36px;--zt-nav-bar-border-height: 18px;--zt-nav-bar-text-color: var(--zt-primary-color);--zt-nav-bar-title-font-size: var(--zt-font-size-gt);--zt-nav-bar-title-text-color: var(--zt-text-color);--zt-nav-bar-title-height: 28px;--zt-nav-bar-z-index: 1;--zt-nav-bar-btn-border-radius: 18px;--zt-nav-bar-padding-left: 16px;--zt-nav-bar-padding-right: 16px;--zt-nav-bar-btn-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%, #ffffff 100%);--zt-nav-bar-btn-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-nav-bar-btn-border: 1px solid rgba(255, 255, 255, .75)}.zt-nav-bar{position:relative;padding-bottom:var(--zt-nav-bar-padding-bottom);z-index:var(--zt-nav-bar-z-index);text-align:center;-webkit-user-select:none;user-select:none;color:var(--zt-nav-bar-icon-color)}.zt-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.zt-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.zt-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--zt-nav-bar-height)}.zt-nav-bar__icon{width:var(--zt-nav-bar-icon-size);height:var(--zt-nav-bar-icon-size);line-height:var(--zt-nav-bar-icon-size);font-size:var(--zt-nav-bar-icon-font-size)}.zt-nav-bar__text{display:inline-block;font-size:var(--zt-font-size-lg);padding-right:var(--zt-nav-bar-padding-left);padding-left:var(--zt-nav-bar-padding-right)}.zt-nav-bar__text--left-text{padding-left:0}.zt-nav-bar__bar-btn{display:flex;align-items:center;box-sizing:border-box;height:var(--zt-nav-bar-button-height);line-height:var(--zt-nav-bar-button-height);background:var(--zt-nav-bar-btn-background);box-shadow:var(--zt-nav-bar-btn-box-shadow);border-radius:var(--zt-nav-bar-btn-border-radius);border:var(--zt-nav-bar-btn-border)}.zt-nav-bar__bar-btn:active{border:1px solid rgba(255,255,255,.75);box-shadow:inset 4px 4px 8px rgba(45,75,115,.24);background:rgba(45,75,115,.04)}.zt-nav-bar__title{height:var(--zt-nav-bar-title-height);text-align:center;line-height:var(--zt-nav-bar-title-height);max-width:50%;margin:0 auto;font-weight:var(--zt-font-bold);font-size:var(--zt-nav-bar-title-font-size)}.zt-nav-bar__left,.zt-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--zt-padding-md);font-size:var(--zt-font-size-md);max-width:30%}.zt-nav-bar__left{left:0}.zt-nav-bar__right{right:0}.zt-theme-dark{--zt-nav-bar-btn-background: linear-gradient(135deg, #0e1824 0%, #203043 100%, #ffffff 100%, #1d2c3d 100%);--zt-nav-bar-btn-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .12), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-nav-bar-btn-border: 1px solid #394555}
1
+ :root{--zt-nav-bar-height: 44px;--zt-nav-bar-padding-bottom: 12px;--zt-nav-bar-icon-color: var(--zt-text-color);--zt-nav-bar-button-height: 36px;--zt-nav-bar-title-height: 28px;--zt-nav-bar-z-index: 1;--zt-nav-bar-btn-border-radius: 18px;--zt-nav-bar-padding-left: 16px;--zt-nav-bar-padding-right: 16px;--zt-nav-bar-btn-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%, #ffffff 100%);--zt-nav-bar-btn-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-nav-bar-btn-border: 1px solid rgba(255, 255, 255, .75);--zt-nav-bar-icon-font-size: 24px;--zt-nav-bar-icon-size: 36px}:root[zt-theme-size=large]{--zt-nav-bar-icon-size: 48px;--zt-nav-bar-icon-font-size: 30px;--zt-nav-bar-title-height: 40px}.zt-nav-bar{position:relative;padding-bottom:var(--zt-nav-bar-padding-bottom);z-index:var(--zt-nav-bar-z-index);text-align:center;-webkit-user-select:none;user-select:none;color:var(--zt-nav-bar-icon-color)}.zt-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.zt-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.zt-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--zt-nav-bar-height)}.zt-nav-bar__icon{width:var(--zt-nav-bar-icon-size);height:var(--zt-nav-bar-icon-size);line-height:var(--zt-nav-bar-icon-size);font-size:var(--zt-nav-bar-icon-font-size)}.zt-nav-bar__text{display:inline-block;font-size:var(--zt-font-size-lg);padding-right:var(--zt-nav-bar-padding-left);padding-left:var(--zt-nav-bar-padding-right)}.zt-nav-bar__text--left-text{padding-left:0}.zt-nav-bar__bar-btn{display:flex;align-items:center;box-sizing:border-box;height:var(--zt-nav-bar-button-height);line-height:var(--zt-nav-bar-icon-size);background:var(--zt-nav-bar-btn-background);box-shadow:var(--zt-nav-bar-btn-box-shadow);border-radius:var(--zt-nav-bar-btn-border-radius);border:var(--zt-nav-bar-btn-border)}.zt-nav-bar__bar-btn:active{border:1px solid rgba(255,255,255,.75);box-shadow:inset 4px 4px 8px rgba(45,75,115,.24);background:rgba(45,75,115,.04)}.zt-nav-bar__title{height:var(--zt-nav-bar-title-height);text-align:center;line-height:var(--zt-nav-bar-title-height);max-width:50%;margin:0 auto;font-weight:var(--zt-font-bold);font-size:var(--zt-font-size-xl)}.zt-nav-bar__left,.zt-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--zt-padding-md);font-size:var(--zt-font-size-md);max-width:30%}.zt-nav-bar__left{left:0}.zt-nav-bar__right{right:0}.zt-theme-dark{--zt-nav-bar-btn-background: linear-gradient(135deg, #0e1824 0%, #203043 100%, #ffffff 100%, #1d2c3d 100%);--zt-nav-bar-btn-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .12), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-nav-bar-btn-border: 1px solid #394555}
@@ -49,6 +49,7 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
49
49
  }, {}>>;
50
50
  export default NavBar;
51
51
  export type { NavBarProps } from './NavBar';
52
+ export type { NavBarThemeVars } from './types';
52
53
  declare module 'vue' {
53
54
  interface GlobalComponents {
54
55
  ZtNavBar: typeof NavBar;
@@ -0,0 +1,16 @@
1
+ export type NavBarThemeVars = {
2
+ navBarHeight?: string;
3
+ navBarPaddingBottom?: string;
4
+ navBarIconColor?: string;
5
+ navBarButtonHeight?: string;
6
+ navBarTitleHeight?: string;
7
+ navBarZIndex?: string;
8
+ navBarBtnBorderRadius?: string;
9
+ navBarPaddingLeft?: string;
10
+ navBarPaddingRight?: string;
11
+ navBarBtnBackground?: string;
12
+ navBarBtnBoxShadow?: string;
13
+ navBarBtnBorder?: string;
14
+ navBarIconFontSize?: string;
15
+ navBarIconSize?: string;
16
+ };
@@ -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-notice-bar-height: 36px;--zt-notice-bar-padding: 0 var(--zt-padding-md);--zt-notice-bar-wrapable-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notice-bar-text-color: var(--zt-orange-2);--zt-notice-bar-font-size: var(--zt-font-size-md);--zt-notice-bar-line-height: 36px;--zt-notice-bar-background: var(--zt-background-4);--zt-notice-bar-icon-size: 20px;--zt-notice-bar-icon-min-width: 20px;--zt-notice-bar-icon-height: 20px}.zt-notice-bar{position:relative;display:flex;align-items:center;height:var(--zt-notice-bar-height);padding:var(--zt-notice-bar-padding);color:var(--zt-notice-bar-text-color);font-size:var(--zt-notice-bar-font-size);line-height:var(--zt-notice-bar-line-height);background:var(--zt-notice-bar-background)}.zt-notice-bar__left-icon,.zt-notice-bar__right-icon{min-width:var(--zt-notice-bar-icon-min-width);font-size:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-height)}.zt-notice-bar__right-icon{text-align:right;cursor:pointer}.zt-notice-bar__left-icon-size,.zt-notice-bar__right-icon-size{width:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-size)}.zt-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.zt-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.zt-notice-bar__content.zt-ellipsis{max-width:100%}.zt-notice-bar--wrapable{height:auto;padding:var(--zt-notice-bar-wrapable-padding)}.zt-notice-bar--wrapable .zt-notice-bar__wrap{height:auto}.zt-notice-bar--wrapable .zt-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}.zt-theme-dark{--zt-notice-bar-background: rgba(255, 245, 211, .1)}
1
+ :root{--zt-notice-bar-padding: 0 var(--zt-padding-md);--zt-notice-bar-wrapable-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notice-bar-text-color: var(--zt-orange);--zt-notice-bar-background: var(--zt-background-4);--zt-notice-bar-icon-size: 20px;--zt-notice-bar-icon-min-width: 20px;--zt-notice-bar-icon-height: 20px;--zt-notice-bar-height: 36px}:root[zt-theme-size=large]{--zt-notice-bar-height: 48px}.zt-notice-bar{position:relative;display:flex;align-items:center;height:var(--zt-notice-bar-height);padding:var(--zt-notice-bar-padding);color:var(--zt-notice-bar-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-notice-bar-height);background:var(--zt-notice-bar-background)}.zt-notice-bar__left-icon,.zt-notice-bar__right-icon{min-width:var(--zt-notice-bar-icon-min-width);font-size:var(--zt-font-size-xxl)}.zt-notice-bar__right-icon{text-align:right;cursor:pointer}.zt-notice-bar__left-icon-size,.zt-notice-bar__right-icon-size{width:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-size)}.zt-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.zt-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.zt-notice-bar__content.zt-ellipsis{max-width:100%}.zt-notice-bar--wrapable{height:auto;padding:var(--zt-notice-bar-wrapable-padding)}.zt-notice-bar--wrapable .zt-notice-bar__wrap{height:auto}.zt-notice-bar--wrapable .zt-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}.zt-theme-dark{--zt-notice-bar-background: rgba(255, 245, 211, .1)}
@@ -48,7 +48,7 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
48
48
  }, {}>>;
49
49
  export default NoticeBar;
50
50
  export type { NoticeBarProps };
51
- export type { NoticeBarMode, NoticeBarInstance } from './types';
51
+ export type { NoticeBarMode, NoticeBarInstance, NoticeBarThemeVars, } from './types';
52
52
  declare module 'vue' {
53
53
  interface GlobalComponents {
54
54
  ZtNoticeBar: typeof NoticeBar;
@@ -5,3 +5,13 @@ export type NoticeBarExpose = {
5
5
  reset: () => void;
6
6
  };
7
7
  export type NoticeBarInstance = ComponentPublicInstance<NoticeBarProps, NoticeBarExpose>;
8
+ export type NoticeBarThemeVars = {
9
+ noticeBarPadding?: string;
10
+ noticeBarWrapablePadding?: string;
11
+ noticeBarTextColor?: string;
12
+ noticeBarBackground?: string;
13
+ noticeBarIconSize?: string;
14
+ noticeBarIconMinWidth?: string;
15
+ noticeBarIconHeight?: string;
16
+ noticeBarHeight?: string;
17
+ };
@@ -1 +1 @@
1
- :root{--zt-notify-text-color: var(--zt-white);--zt-notify-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notify-font-size: var(--zt-font-size-md);--zt-notify-line-height: var(--zt-line-height-md);--zt-notify-primary-background: var(--zt-primary-color);--zt-notify-success-background: var(--zt-success-color);--zt-notify-danger-background: var(--zt-danger-color);--zt-notify-warning-background: var(--zt-warning-color)}.zt-notify{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--zt-notify-padding);color:var(--zt-notify-text-color);font-size:var(--zt-notify-font-size);line-height:var(--zt-notify-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word}.zt-notify--primary{background:var(--zt-notify-primary-background)}.zt-notify--success{background:var(--zt-notify-success-background)}.zt-notify--danger{background:var(--zt-notify-danger-background)}.zt-notify--warning{background:var(--zt-notify-warning-background)}
1
+ :root{--zt-notify-text-color: var(--zt-white);--zt-notify-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notify-primary-background: var(--zt-primary-color);--zt-notify-success-background: var(--zt-success-color);--zt-notify-danger-background: var(--zt-danger-color);--zt-notify-warning-background: var(--zt-warning-color)}.zt-notify{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--zt-notify-padding);color:var(--zt-notify-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);white-space:pre-wrap;text-align:center;word-wrap:break-word}.zt-notify--primary{background:var(--zt-notify-primary-background)}.zt-notify--success{background:var(--zt-notify-success-background)}.zt-notify--danger{background:var(--zt-notify-danger-background)}.zt-notify--warning{background:var(--zt-notify-warning-background)}
@@ -91,7 +91,7 @@ export declare const Notify: import("../utils").WithInstall<import("vue").Define
91
91
  export default Notify;
92
92
  export { showNotify, closeNotify, setNotifyDefaultOptions, resetNotifyDefaultOptions, } from './function-call';
93
93
  export type { NotifyProps } from './Notify';
94
- export type { NotifyType, NotifyOptions } from './types';
94
+ export type { NotifyType, NotifyOptions, NotifyThemeVars } from './types';
95
95
  declare module 'vue' {
96
96
  interface GlobalComponents {
97
97
  ZtNotify: typeof Notify;
@@ -15,3 +15,11 @@ export type NotifyOptions = {
15
15
  onClose?: () => void;
16
16
  onOpened?: () => void;
17
17
  };
18
+ export type NotifyThemeVars = {
19
+ notifyTextColor?: string;
20
+ notifyPadding?: string;
21
+ notifyPrimaryBackground?: string;
22
+ notifySuccessBackground?: string;
23
+ notifyDangerBackground?: string;
24
+ notifyWarningBackground?: string;
25
+ };
@@ -35,7 +35,6 @@ var import_vue2 = require("vue");
35
35
  var import_utils = require("../utils");
36
36
  var import_use = require("@zartui/use");
37
37
  var import_NumberKeyboardKey = __toESM(require("./NumberKeyboardKey"));
38
- var import_Button = __toESM(require("../button/Button"));
39
38
  var import_toast = require("../toast");
40
39
  const [name, bem] = (0, import_utils.createNamespace)("number-keyboard");
41
40
  const numberKeyboardProps = {
@@ -158,13 +157,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
158
157
  };
159
158
  const renderTitle = () => {
160
159
  const {
161
- title,
162
- theme,
163
- closeButtonText
160
+ title
164
161
  } = props;
165
162
  const leftSlot = slots["title-left"];
166
- const showClose = closeButtonText && theme === "default";
167
- const showTitle = title || showClose || leftSlot;
163
+ const showTitle = title || leftSlot;
168
164
  if (!showTitle) {
169
165
  return;
170
166
  }
@@ -172,7 +168,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
172
168
  "class": bem("header")
173
169
  }, [leftSlot && (0, import_vue.createVNode)("span", {
174
170
  "class": bem("title-left")
175
- }, [leftSlot()]), title && (0, import_vue.createVNode)("h2", {
171
+ }, [leftSlot()]), title && (0, import_vue.createVNode)("div", {
176
172
  "class": bem("title")
177
173
  }, [title])]);
178
174
  };
@@ -227,11 +223,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
227
223
  return () => {
228
224
  const Title = renderTitle();
229
225
  const {
230
- theme,
231
- closeButtonText,
232
226
  title
233
227
  } = props;
234
- const showClose = closeButtonText && theme === "default";
235
228
  const Content = (0, import_vue.createVNode)(import_vue2.Transition, {
236
229
  "name": props.transition ? "zt-slide-up" : ""
237
230
  }, {
@@ -248,15 +241,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
248
241
  "class": [bem("body"), title ? "" : bem("body-no-title")]
249
242
  }, [(0, import_vue.createVNode)("div", {
250
243
  "class": bem("keys")
251
- }, [renderKeys()]), renderSidebar()]), showClose && (0, import_vue.createVNode)("div", {
252
- "class": bem("finish-button-box")
253
- }, [(0, import_vue.createVNode)(import_Button.default, {
254
- "type": "primary",
255
- "block": true,
256
- "text": closeButtonText,
257
- "class": [bem("finish-button"), import_utils.HAPTICS_FEEDBACK],
258
- "onClick": onClose
259
- }, null)])]), [[import_vue.vShow, props.show]])]
244
+ }, [renderKeys()]), renderSidebar()])]), [[import_vue.vShow, props.show]])]
260
245
  });
261
246
  if (props.teleport) {
262
247
  return (0, import_vue.createVNode)(import_vue2.Teleport, {
@@ -1 +1 @@
1
- :root{--zt-number-keyboard-background: #edf3fa;--zt-number-keyboard-key-height: 44px;--zt-number-keyboard-key-font-size: 24px;--zt-number-keyboard-key-active-color: var(--zt-gray-3);--zt-number-keyboard-key-background: var(--zt-background-2);--zt-number-keyboard-delete-font-size: 20px;--zt-number-keyboard-title-color: var(--zt-gray-7);--zt-number-keyboard-title-height: 34px;--zt-number-keyboard-title-font-size: 14px;--zt-number-keyboard-close-padding: 0 var(--zt-padding-md);--zt-number-keyboard-close-color: var(--zt-link-color);--zt-number-keyboard-close-font-size: var(--zt-font-size-md);--zt-number-keyboard-button-text-color: var(--zt-white);--zt-number-keyboard-button-background: var(--zt-primary-color);--zt-number-keyboard-z-index: 100;--zt-number-keyboard-key-spacing: 0 8px 8px 0;--zt-number-keyboard-radius: 16px 16px 0 0;--zt-key-font-color: var(--zt-text-color)}.zt-theme-dark{--zt-number-keyboard-background: var(--zt-gray-default);--zt-number-keyboard-key-background: var(--zt-gray-7);--zt-number-keyboard-key-active-color: var(--zt-gray-6)}.zt-number-keyboard{position:fixed;bottom:0;left:0;z-index:var(--zt-number-keyboard-z-index);width:100%;padding-bottom:8px;background:var(--zt-number-keyboard-background);-webkit-user-select:none;user-select:none;border-radius:var(--zt-number-keyboard-radius);box-sizing:border-box}.zt-number-keyboard--with-title{border-radius:20px 20px 0 0}.zt-number-keyboard__header{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;height:var(--zt-number-keyboard-title-height);padding-top:2px;color:var(--zt-number-keyboard-title-color)}.zt-number-keyboard__title{display:inline-block;font-weight:400;color:#2d4b73;opacity:.6;line-height:20px;font-size:var(--zt-number-keyboard-title-font-size)}.zt-number-keyboard__title-left{position:absolute;left:0}.zt-number-keyboard__body{display:flex;padding:2px 8px 0 16px}.zt-number-keyboard__body-no-title{padding-top:16px}.zt-number-keyboard__keys{display:flex;flex:3;flex-wrap:wrap}.zt-number-keyboard__close{position:absolute;right:0;height:100%;padding:var(--zt-number-keyboard-close-padding);color:var(--zt-number-keyboard-close-color);font-size:var(--zt-number-keyboard-close-font-size);background-color:transparent;border:none}.zt-number-keyboard__sidebar{display:flex;flex:1;flex-direction:column}.zt-number-keyboard--unfit{padding-bottom:0}.zt-key{display:flex;align-items:center;justify-content:center;height:var(--zt-number-keyboard-key-height);font-size:var(--zt-number-keyboard-key-font-size);line-height:40px;background:var(--zt-number-keyboard-key-background);border-radius:var(--zt-radius-md);cursor:pointer;color:var(--zt-key-font-color)}.zt-key--large{position:absolute;top:0;right:6px;bottom:8px;left:0;height:auto}.zt-key--blue,.zt-key--delete{font-size:var(--zt-number-keyboard-delete-font-size)}.zt-key--active{background-color:var(--zt-number-keyboard-key-active-color)}.zt-key--blue{color:var(--zt-number-keyboard-button-text-color);background:var(--zt-number-keyboard-button-background);line-height:28px;letter-spacing:0}.zt-key--blue.zt-key--active{opacity:var(--zt-active-opacity)}.zt-key__wrapper{position:relative;flex:1;flex-basis:33%;box-sizing:border-box;padding:var(--zt-number-keyboard-key-spacing)}.zt-key__wrapper--wider{flex-basis:66%}.zt-key__delete-icon{width:40px;height:40px}.zt-key__collapse-icon{width:30px;height:24px}.zt-key__loading-icon{color:var(--zt-number-keyboard-button-text-color)}.zt-number-keyboard__finish-button-box{padding:4px 16px 12px}.zt-number-keyboard__no-title{padding-bottom:0}
1
+ :root{--zt-number-keyboard-background: var(--zt-background-3);--zt-number-keyboard-key-background: var(--zt-background-card);--zt-number-keyboard-title-color: var(--zt-gray-a6);--zt-number-keyboard-button-text-color: var(--zt-white);--zt-number-keyboard-button-background: var(--zt-primary-color);--zt-number-keyboard-z-index: 100;--zt-number-keyboard-key-spacing: 0 8px 8px 0;--zt-number-keyboard-radius: 16px 16px 0 0;--zt-number-keyboard-key-font-size: 24px;--zt-number-keyboard-header-height: 34px;--zt-number-keyboard-button-height: 28px;--zt-number-keyboard-key-height: 44px}:root[zt-theme-size=large]{--zt-number-keyboard-key-font-size: 30px;--zt-number-keyboard-header-height: 46px;--zt-number-keyboard-button-height: 40px;--zt-number-keyboard-key-height: 56px}.zt-number-keyboard{position:fixed;bottom:0;left:0;z-index:var(--zt-number-keyboard-z-index);width:100%;padding-bottom:8px;background:var(--zt-number-keyboard-background);-webkit-user-select:none;user-select:none;border-radius:var(--zt-number-keyboard-radius);box-sizing:border-box}.zt-number-keyboard--with-title{border-radius:20px 20px 0 0}.zt-number-keyboard__header{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;height:var(--zt-number-keyboard-header-height);padding-top:2px;color:var(--zt-number-keyboard-title-color);font-size:var(--zt-font-size-md);line-height:var(--zt-number-keyboard-header-height)}.zt-number-keyboard__title{display:inline-block}.zt-number-keyboard__title-left{position:absolute;left:0}.zt-number-keyboard__body{display:flex;padding:2px 8px 0 16px}.zt-number-keyboard__body-no-title{padding-top:16px}.zt-number-keyboard__keys{display:flex;flex:3;flex-wrap:wrap}.zt-number-keyboard__sidebar{display:flex;flex:1;flex-direction:column}.zt-number-keyboard--unfit{padding-bottom:0}.zt-key{display:flex;align-items:center;justify-content:center;height:var(--zt-number-keyboard-key-height);font-size:var(--zt-number-keyboard-key-font-size);line-height:var(--zt-number-keyboard-key-height);background:var(--zt-number-keyboard-key-background);border-radius:var(--zt-radius-md);cursor:pointer;color:var(--zt-text-color)}.zt-key--large{position:absolute;top:0;right:6px;bottom:8px;left:0;height:auto}.zt-key--blue,.zt-key--delete{font-size:var(--zt-font-size-xxl)}.zt-key--active{opacity:var(--zt-active-opacity)}.zt-key--blue{color:var(--zt-number-keyboard-button-text-color);background:var(--zt-number-keyboard-button-background);line-height:var(--zt-number-keyboard-button-height);letter-spacing:0}.zt-key--blue.zt-key--active{opacity:var(--zt-active-opacity)}.zt-key__wrapper{position:relative;flex:1;flex-basis:33%;box-sizing:border-box;padding:var(--zt-number-keyboard-key-spacing)}.zt-key__wrapper--wider{flex-basis:66%}.zt-key__delete-icon{width:40px;height:40px}.zt-key__collapse-icon{width:30px;height:24px}.zt-key__loading-icon{color:var(--zt-number-keyboard-button-text-color)}.zt-number-keyboard__no-title{padding-bottom:0}
@@ -112,6 +112,7 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
112
112
  }, {}>>;
113
113
  export default NumberKeyboard;
114
114
  export type { NumberKeyboardProps, NumberKeyboardTheme, } from './NumberKeyboard';
115
+ export type { NumberKeyboardThemeVars } from './types';
115
116
  declare module 'vue' {
116
117
  interface GlobalComponents {
117
118
  ZtNumberKeyboard: typeof NumberKeyboard;
@@ -5,5 +5,4 @@ require("../../overlay/index.css");
5
5
  require("../../popup/index.css");
6
6
  require("../../loading/index.css");
7
7
  require("../../toast/index.css");
8
- require("../../button/index.css");
9
8
  require("../index.css");
@@ -0,0 +1,14 @@
1
+ export type NumberKeyboardThemeVars = {
2
+ numberKeyboardBackground?: string;
3
+ numberKeyboardKeyBackground?: string;
4
+ numberKeyboardTitleColor?: string;
5
+ numberKeyboardButtonTextColor?: string;
6
+ numberKeyboardButtonBackground?: string;
7
+ numberKeyboardZIndex?: number;
8
+ numberKeyboardKeySpacing?: string;
9
+ numberKeyboardRadius?: string;
10
+ numberKeyboardKeyFontSize?: string;
11
+ numberKeyboardHeaderHeight?: string;
12
+ numberKeyboardButtonHeight?: string;
13
+ numberKeyboardKeyHeight?: 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);
@@ -33,6 +33,7 @@ export declare const Overlay: import("../utils").WithInstall<import("vue").Defin
33
33
  }, {}>>;
34
34
  export default Overlay;
35
35
  export type { OverlayProps } from './Overlay';
36
+ export type { OverlayThemeVars } from './types';
36
37
  declare module 'vue' {
37
38
  interface GlobalComponents {
38
39
  ZtOverlay: typeof Overlay;
@@ -0,0 +1,4 @@
1
+ export type OverlayThemeVars = {
2
+ overlayZIndex?: number;
3
+ overlayBackground?: string;
4
+ };