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
@@ -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
+ };
File without changes
@@ -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
+ };
File without changes
@@ -1 +1 @@
1
- :root{--zt-password-input-height: 48px;--zt-password-input-margin: 0 var(--zt-padding-md);--zt-password-input-font-size: 20px;--zt-password-input-radius: 6px;--zt-password-input-background: var(--zt-background-2);--zt-password-input-info-color: var(--zt-text-color-2);--zt-password-input-info-font-size: var(--zt-font-size-md);--zt-password-input-error-info-color: var(--zt-danger-color);--zt-password-input-dot-size: 8px;--zt-password-input-dot-color: var(--zt-text-color);--zt-password-input-text-color: var(--zt-text-color);--zt-password-input-cursor-color: #0091fa;--zt-password-input-cursor-width: 1px;--zt-password-input-cursor-height: 40%;--zt-password-input-cursor-duration: 1s}.zt-password-input{position:relative;margin:var(--zt-password-input-margin);-webkit-user-select:none;user-select:none}.zt-password-input__info,.zt-password-input__error-info{margin-top:var(--zt-padding-md);font-size:var(--zt-password-input-info-font-size);text-align:center}.zt-password-input__info{color:var(--zt-password-input-info-color)}.zt-password-input__error-info{color:var(--zt-password-input-error-info-color)}.zt-password-input__security{display:flex;width:100%;height:var(--zt-password-input-height);cursor:pointer}.zt-password-input__security:after{border-radius:var(--zt-password-input-radius)}.zt-password-input__security li:last-child{border-radius:0 4px 4px 0}.zt-password-input__security li:first-child{border-radius:0 4px 4px 0}.zt-password-input__security li{position:relative;display:flex;flex:1;align-items:center;justify-content:center;height:100%;color:var(--zt-password-input-text-color);font-size:var(--zt-password-input-font-size);background:var(--zt-password-input-background);border:0 solid rgba(45,75,115,.2)}.zt-password-input__security i{position:absolute;top:50%;left:50%;width:var(--zt-password-input-dot-size);height:var(--zt-password-input-dot-size);background:var(--zt-password-input-dot-color);border-radius:100%;transform:translate(-50%,-50%);visibility:hidden}.zt-password-input__cursor{position:absolute;top:50%;left:50%;width:var(--zt-password-input-cursor-width);height:var(--zt-password-input-cursor-height);background:var(--zt-password-input-cursor-color);width:1px;height:24px;transform:translate(-50%,-50%);animation:var(--zt-password-input-cursor-duration) zt-cursor-flicker infinite}@keyframes zt-cursor-flicker{0%{opacity:0}50%{opacity:1}to{opacity:0}}
1
+ :root{--zt-password-input-height: 48px;--zt-password-input-margin: 0 var(--zt-padding-md);--zt-password-input-radius: 6px;--zt-password-input-background: var(--zt-background-2);--zt-password-input-info-color: var(--zt-text-color-2);--zt-password-input-error-info-color: var(--zt-danger-color);--zt-password-input-dot-size: 8px;--zt-password-input-dot-color: var(--zt-text-color);--zt-password-input-text-color: var(--zt-text-color);--zt-password-input-cursor-color: var(--zt-primary-color);--zt-password-input-cursor-width: 1px;--zt-password-input-cursor-height: 40%;--zt-password-input-cursor-duration: 1s}.zt-password-input{position:relative;margin:var(--zt-password-input-margin);-webkit-user-select:none;user-select:none}.zt-password-input__info,.zt-password-input__error-info{margin-top:var(--zt-padding-md);font-size:var(--zt-font-size-md);text-align:center}.zt-password-input__info{color:var(--zt-password-input-info-color)}.zt-password-input__error-info{color:var(--zt-password-input-error-info-color)}.zt-password-input__security{display:flex;width:100%;height:var(--zt-password-input-height);cursor:pointer}.zt-password-input__security:after{border-radius:var(--zt-password-input-radius)}.zt-password-input__security li:last-child{border-radius:0 4px 4px 0}.zt-password-input__security li:first-child{border-radius:0 4px 4px 0}.zt-password-input__security li{position:relative;display:flex;flex:1;align-items:center;justify-content:center;height:100%;color:var(--zt-password-input-text-color);font-size:var(--zt-font-size-xxl);background:var(--zt-password-input-background);border:0 solid rgba(45,75,115,.2)}.zt-password-input__security i{position:absolute;top:50%;left:50%;width:var(--zt-password-input-dot-size);height:var(--zt-password-input-dot-size);background:var(--zt-password-input-dot-color);border-radius:100%;transform:translate(-50%,-50%);visibility:hidden}.zt-password-input__cursor{position:absolute;top:50%;left:50%;width:var(--zt-password-input-cursor-width);height:var(--zt-password-input-cursor-height);background:var(--zt-password-input-cursor-color);width:1px;height:24px;transform:translate(-50%,-50%);animation:var(--zt-password-input-cursor-duration) zt-cursor-flicker infinite}@keyframes zt-cursor-flicker{0%{opacity:0}50%{opacity:1}to{opacity:0}}
@@ -42,6 +42,7 @@ export declare const PasswordInput: import("../utils").WithInstall<import("vue")
42
42
  }, {}>>;
43
43
  export default PasswordInput;
44
44
  export type { PasswordInputProps } from './PasswordInput';
45
+ export type { PasswordInputThemeVars } from './types';
45
46
  declare module 'vue' {
46
47
  interface GlobalComponents {
47
48
  ZtPasswordInput: typeof PasswordInput;
@@ -0,0 +1,15 @@
1
+ export type PasswordInputThemeVars = {
2
+ passwordInputHeight?: string;
3
+ passwordInputMargin?: string;
4
+ passwordInputRadius?: string;
5
+ passwordInputBackground?: string;
6
+ passwordInputInfoColor?: string;
7
+ passwordInputErrorInfoColor?: string;
8
+ passwordInputDotSize?: string;
9
+ passwordInputDotColor?: string;
10
+ passwordInputTextColor?: string;
11
+ passwordInputCursorColor?: string;
12
+ passwordInputCursorWidth?: string;
13
+ passwordInputCursorHeight?: string;
14
+ passwordInputCursorDuration?: string;
15
+ };
File without changes
@@ -143,7 +143,7 @@ declare const _default: import("vue").DefineComponent<{
143
143
  type: BooleanConstructor;
144
144
  default: true;
145
145
  };
146
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker")[], "update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
146
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption")[], "update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
147
147
  loading: BooleanConstructor;
148
148
  readonly: BooleanConstructor;
149
149
  allowHtml: BooleanConstructor;
@@ -202,8 +202,8 @@ declare const _default: import("vue").DefineComponent<{
202
202
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
203
203
  onCancel?: ((...args: any[]) => any) | undefined;
204
204
  onConfirm?: ((...args: any[]) => any) | undefined;
205
- onClickOption?: ((...args: any[]) => any) | undefined;
206
205
  "onUpdate:showPicker"?: ((...args: any[]) => any) | undefined;
206
+ onClickOption?: ((...args: any[]) => any) | undefined;
207
207
  }, {
208
208
  title: string;
209
209
  modelValue: Numeric[];
@@ -213,12 +213,12 @@ declare const _default: import("vue").DefineComponent<{
213
213
  showTitle: boolean;
214
214
  columns: (PickerColumn | PickerOption)[];
215
215
  allowHtml: boolean;
216
- optionHeight: string | number;
217
- showToolbar: boolean;
218
216
  swipeDuration: string | number;
217
+ showPicker: boolean;
218
+ showToolbar: boolean;
219
+ toolbarPosition: PickerToolbarPosition;
220
+ optionHeight: string | number;
219
221
  visibleOptionNum: string | number;
220
222
  columnsUnit: string[];
221
- toolbarPosition: PickerToolbarPosition;
222
- showPicker: boolean;
223
223
  }, {}>;
224
224
  export default _default;
@@ -1 +1 @@
1
- :root{--zt-picker-cancel-margin: 8px 4px 8px 16px;--zt-picker-confirm-margin: 8px 16px 8px 4px;--zt-picker-title-height: 44px;--zt-picker-title-border-radius: 16px 16px 0 0;--zt-picker-frame-background-color: var(--zt-gray-a04);--zt-picker-cancel-background-color: var(--zt-white);--zt-picker-title-text-color: var(--zt-gray-a4);--zt-picker-background: var(--zt-background-2);--zt-picker-toolbar-height: 60px;--zt-picker-title-font-size: var(--zt-font-size-md);--zt-picker-title-background: var(--zt-white);--zt-picker-title-line-height: var(--zt-line-height-md);--zt-picker-action-padding: 0 var(--zt-padding-md);--zt-picker-action-font-size: var(--zt-font-size-lg);--zt-picker-confirm-action-color: var(--zt-white);--zt-picker-cancel-action-color: var(--zt-text-color);--zt-picker-option-font-size: var(--zt-font-size-lg);--zt-picker-option-padding: 0 var(--zt-padding-base);--zt-picker-option-text-color: var(--zt-text-color);--zt-picker-option-disabled-opacity: .3;--zt-picker-loading-icon-color: var(--zt-primary-color);--zt-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-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-picker-unit-font-size: var(--zt-font-size-md)}.zt-theme-dark{--zt-picker-selected-background: rgba(255, 255, 255, .08);--zt-picker-title-background: var(--zt-background-2);--zt-picker-title-text-color: var(--zt-gray-default);--zt-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-picker{position:relative;background:var(--zt-picker-background);-webkit-user-select:none;user-select:none}.zt-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-picker-toolbar-height)}.zt-picker__cancel,.zt-picker__confirm{width:50%}.zt-picker__cancel{background:var(--zt-button-default-background);margin:var(--zt-picker-cancel-margin)}.zt-picker__confirm{margin:var(--zt-picker-confirm-margin)}.zt-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-picker-title-height);border-radius:var(--zt-picker-title-border-radius);font-size:var(--zt-picker-title-font-size);background:var(--zt-picker-title-background);color:var(--zt-picker-title-text-color)}.zt-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.zt-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-picker-loading-icon-color);background:var(--zt-picker-loading-mask-color)}.zt-picker__frame{position:absolute;top:50%;z-index:2;transform:translateY(-50%);pointer-events:none;width:100%;background:var(--zt-picker-frame-background-color)}.zt-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--zt-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.zt-picker-column{position:relative;flex:1;overflow:hidden;font-size:var(--zt-picker-option-font-size);background:var(--zt-picker-background)}.zt-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--zt-picker-option-padding);color:var(--zt-picker-option-text-color)}.zt-picker-column__item--disabled{cursor:not-allowed;opacity:var(--zt-picker-option-disabled-opacity)}.zt-picker-column__item--selected{font-weight:700;background:var(--zt-picker-selected-background)}.zt-picker-column__unit{background:var(--zt-picker-title-background);position:absolute;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--zt-picker-option-text-color);font-size:var(--zt-picker-option-font-size);width:100%;height:100%}.zt-picker-column__unit-text{margin:0 4px;font-size:var(--zt-picker-unit-font-size)}
1
+ :root{--zt-picker-cancel-margin: 8px 4px 8px 16px;--zt-picker-confirm-margin: 8px 16px 8px 4px;--zt-picker-title-height: 44px;--zt-picker-title-border-radius: 16px 16px 0 0;--zt-picker-frame-background-color: var(--zt-gray-a06);--zt-picker-title-text-color: var(--zt-gray-a4);--zt-picker-background: var(--zt-background-2);--zt-picker-toolbar-height: 60px;--zt-picker-title-background: var(--zt-background-2);--zt-picker-option-padding: 0 var(--zt-padding-base);--zt-picker-option-text-color: var(--zt-text-color);--zt-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-picker-loading-icon-color: var(--zt-primary-color);--zt-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-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-theme-dark{--zt-picker-loading-mask-color: rgba(0, 0, 0, .6);--zt-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-picker{position:relative;background:var(--zt-picker-background);-webkit-user-select:none;user-select:none}.zt-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-picker-toolbar-height)}.zt-picker__cancel,.zt-picker__confirm{width:50%}.zt-picker__cancel{background:var(--zt-button-default-background);margin:var(--zt-picker-cancel-margin)}.zt-picker__confirm{margin:var(--zt-picker-confirm-margin)}.zt-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-picker-title-height);border-radius:var(--zt-picker-title-border-radius);font-size:var(--zt-font-size-md);background:var(--zt-picker-title-background);color:var(--zt-picker-title-text-color)}.zt-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.zt-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-picker-loading-icon-color);background:var(--zt-picker-loading-mask-color)}.zt-picker__frame{position:absolute;top:50%;z-index:2;transform:translateY(-50%);pointer-events:none;width:100%;background:var(--zt-picker-frame-background-color)}.zt-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--zt-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.zt-picker-column{position:relative;flex:1;overflow:hidden;font-size:var(--zt-font-size-lg);background:var(--zt-picker-background)}.zt-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--zt-picker-option-padding);color:var(--zt-picker-option-text-color)}.zt-picker-column__item--disabled{cursor:not-allowed;opacity:var(--zt-picker-option-disabled-opacity)}.zt-picker-column__item--selected{font-weight:700}.zt-picker-column__unit{background:var(--zt-picker-title-background);position:absolute;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--zt-picker-option-text-color);font-size:var(--zt-font-size-lg);width:100%;height:100%}.zt-picker-column__unit-text{margin:0 4px;font-size:var(--zt-font-size-md)}
@@ -53,7 +53,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
53
53
  type: BooleanConstructor;
54
54
  default: true;
55
55
  };
56
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker")[], "update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption")[], "update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
57
57
  loading: BooleanConstructor;
58
58
  readonly: BooleanConstructor;
59
59
  allowHtml: BooleanConstructor;
@@ -112,8 +112,8 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
112
112
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
113
113
  onCancel?: ((...args: any[]) => any) | undefined;
114
114
  onConfirm?: ((...args: any[]) => any) | undefined;
115
- onClickOption?: ((...args: any[]) => any) | undefined;
116
115
  "onUpdate:showPicker"?: ((...args: any[]) => any) | undefined;
116
+ onClickOption?: ((...args: any[]) => any) | undefined;
117
117
  }, {
118
118
  title: string;
119
119
  modelValue: import("../utils").Numeric[];
@@ -123,18 +123,18 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
123
123
  showTitle: boolean;
124
124
  columns: (import("./types").PickerColumn | import("./types").PickerOption)[];
125
125
  allowHtml: boolean;
126
- optionHeight: string | number;
127
- showToolbar: boolean;
128
126
  swipeDuration: string | number;
127
+ showPicker: boolean;
128
+ showToolbar: boolean;
129
+ toolbarPosition: import("./types").PickerToolbarPosition;
130
+ optionHeight: string | number;
129
131
  visibleOptionNum: string | number;
130
132
  columnsUnit: string[];
131
- toolbarPosition: import("./types").PickerToolbarPosition;
132
- showPicker: boolean;
133
133
  }, {}>>;
134
134
  export default Picker;
135
135
  export { pickerProps } from './Picker';
136
136
  export type { PickerProps };
137
- export type { PickerColumn, PickerOption, PickerInstance, PickerFieldNames, PickerToolbarPosition, PickerCancelEventParams, PickerChangeEventParams, PickerConfirmEventParams, } from './types';
137
+ export type { PickerColumn, PickerOption, PickerInstance, PickerFieldNames, PickerToolbarPosition, PickerCancelEventParams, PickerChangeEventParams, PickerConfirmEventParams, PickerThemeVars, } from './types';
138
138
  declare module 'vue' {
139
139
  interface GlobalComponents {
140
140
  ZtPicker: typeof Picker;
@@ -42,3 +42,20 @@ export type PickerCancelEventParams = PickerConfirmEventParams;
42
42
  export type PickerChangeEventParams = PickerConfirmEventParams & {
43
43
  columnIndex: number;
44
44
  };
45
+ export type PickerThemeVars = {
46
+ pickerCancelMargin?: string;
47
+ pickerConfirmMargin?: string;
48
+ pickerTitleHeight?: string;
49
+ pickerTitleBorderRadius?: string;
50
+ pickerFrameBackgroundColor?: string;
51
+ pickerTitleTextColor?: string;
52
+ pickerBackground?: string;
53
+ pickerToolbarHeight?: string;
54
+ pickerTitleBackground?: string;
55
+ pickerOptionPadding?: string;
56
+ pickerOptionTextColor?: string;
57
+ pickerOptionDisabledOpacity?: string;
58
+ pickerLoadingIconColor?: string;
59
+ pickerLoadingMaskColor?: string;
60
+ pickerMaskColor?: string;
61
+ };
@@ -165,7 +165,7 @@ var stdin_default = defineComponent({
165
165
  "with-icon": icon
166
166
  }), className],
167
167
  "style": selected ? {
168
- color: "#0091fa"
168
+ color: "var(--zt-primary-color)"
169
169
  } : {
170
170
  color
171
171
  },
@@ -1 +1 @@
1
- :root{--zt-popover-arrow-size: 6px;--zt-popover-radius: var(--zt-radius-lg);--zt-popover-action-width: 120px;--zt-popover-action-height: 40px;--zt-popover-action-font-size: var(--zt-font-size-md);--zt-popover-action-line-height: var(--zt-line-height-md);--zt-popover-action-icon-size: 20px;--zt-popover-light-text-color: var(--zt-text-color);--zt-popover-light-background: var(--zt-background-2);--zt-popover-light-action-disabled-text-color: var(--zt-text-color-3);--zt-popover-dark-text-color: var(--zt-white);--zt-popover-dark-background: #4a4a4a;--zt-popover-dark-action-disabled-text-color: var(--zt-text-color-2)}.zt-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.zt-popover__wrapper{display:inline-block}.zt-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--zt-popover-arrow-size)}.zt-popover__content{overflow:hidden;border-radius:var(--zt-popover-radius)}.zt-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--zt-popover-action-width);height:var(--zt-popover-action-height);padding:0 var(--zt-padding-md);font-size:var(--zt-popover-action-font-size);line-height:var(--zt-line-height-md);cursor:pointer}.zt-popover__action:last-child .zt-popover__action-text:after{display:none}.zt-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.zt-popover__action-icon{margin-right:var(--zt-padding-xs);font-size:var(--zt-popover-action-icon-size)}.zt-popover__action--with-icon .zt-popover__action-text{justify-content:flex-start}.zt-popover[data-popper-placement^=top] .zt-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;margin-bottom:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=top]{transform-origin:50% 100%}.zt-popover[data-popper-placement=top] .zt-popover__arrow{left:50%;transform:translate(-50%)}.zt-popover[data-popper-placement=top-start]{transform-origin:0 100%}.zt-popover[data-popper-placement=top-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=top-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover[data-popper-placement^=left] .zt-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translateY(-50%);margin-right:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=left]{transform-origin:100% 50%}.zt-popover[data-popper-placement=left] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=left-start]{transform-origin:100% 0}.zt-popover[data-popper-placement=left-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=left-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=right] .zt-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translateY(-50%);margin-left:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=right]{transform-origin:0 50%}.zt-popover[data-popper-placement=right] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=right-start]{transform-origin:0 0}.zt-popover[data-popper-placement=right-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=right-end]{transform-origin:0 100%}.zt-popover[data-popper-placement=right-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=bottom] .zt-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%);margin-top:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=bottom]{transform-origin:50% 0}.zt-popover[data-popper-placement=bottom] .zt-popover__arrow{left:50%}.zt-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.zt-popover[data-popper-placement=bottom-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.zt-popover[data-popper-placement=bottom-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover--light{display:none;color:var(--zt-popover-light-text-color)}.zt-popover--light .zt-popover__content{background:var(--zt-popover-light-background);box-shadow:0 2px 12px rgba(50,50,51,.12)}.zt-popover--light .zt-popover__arrow{color:var(--zt-popover-light-background)}.zt-popover--light .zt-popover__action:active{background-color:var(--zt-active-color)}.zt-popover--light .zt-popover__action--selected{color:var(--zt-blue);cursor:not-allowed}.zt-popover--light .zt-popover__action--selected:active{background-color:transparent}.zt-popover--light .zt-popover__action--disabled{color:var(--zt-popover-light-action-disabled-text-color);cursor:not-allowed}.zt-popover--light .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark{display:none;color:var(--zt-popover-dark-text-color)}.zt-popover--dark .zt-popover__content{background:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__arrow{color:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__action:active{background-color:rgba(0,0,0,.2)}.zt-popover--dark .zt-popover__action--disabled{color:var(--zt-popover-dark-action-disabled-text-color)}.zt-popover--dark .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark .zt-popover__action-text:after{border-color:var(--zt-gray-7)}.zt-popover--show{display:block}.zt-popover--hidden{display:none}.zt-popover-zoom-enter-from,.zt-popover-zoom-leave-active{transform:scale(.8);opacity:0}.zt-popover-zoom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popover-zoom-leave-active{transition-timing-function:var(--zt-ease-in)}
1
+ :root{--zt-popover-arrow-size: 6px;--zt-popover-radius: var(--zt-radius-lg);--zt-popover-action-width: 120px;--zt-popover-action-height: 40px;--zt-popover-light-text-color: var(--zt-text-color);--zt-popover-light-background: var(--zt-background-2);--zt-popover-light-action-disabled-text-color: var(--zt-text-color-3);--zt-popover-dark-text-color: var(--zt-white);--zt-popover-dark-background: #4a4a4a;--zt-popover-dark-action-disabled-text-color: var(--zt-text-color-2)}.zt-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.zt-popover__wrapper{display:inline-block}.zt-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--zt-popover-arrow-size)}.zt-popover__content{overflow:hidden;border-radius:var(--zt-popover-radius)}.zt-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--zt-popover-action-width);height:var(--zt-popover-action-height);padding:0 var(--zt-padding-md);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);cursor:pointer}.zt-popover__action:last-child .zt-popover__action-text:after{display:none}.zt-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.zt-popover__action-icon{margin-right:var(--zt-padding-xs);font-size:var(--zt-font-size-xxl)}.zt-popover__action--with-icon .zt-popover__action-text{justify-content:flex-start}.zt-popover[data-popper-placement^=top] .zt-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;margin-bottom:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=top]{transform-origin:50% 100%}.zt-popover[data-popper-placement=top] .zt-popover__arrow{left:50%;transform:translate(-50%)}.zt-popover[data-popper-placement=top-start]{transform-origin:0 100%}.zt-popover[data-popper-placement=top-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=top-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover[data-popper-placement^=left] .zt-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translateY(-50%);margin-right:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=left]{transform-origin:100% 50%}.zt-popover[data-popper-placement=left] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=left-start]{transform-origin:100% 0}.zt-popover[data-popper-placement=left-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=left-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=right] .zt-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translateY(-50%);margin-left:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=right]{transform-origin:0 50%}.zt-popover[data-popper-placement=right] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=right-start]{transform-origin:0 0}.zt-popover[data-popper-placement=right-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=right-end]{transform-origin:0 100%}.zt-popover[data-popper-placement=right-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=bottom] .zt-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%);margin-top:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=bottom]{transform-origin:50% 0}.zt-popover[data-popper-placement=bottom] .zt-popover__arrow{left:50%}.zt-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.zt-popover[data-popper-placement=bottom-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.zt-popover[data-popper-placement=bottom-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover--light{display:none;color:var(--zt-popover-light-text-color)}.zt-popover--light .zt-popover__content{background:var(--zt-popover-light-background);box-shadow:0 2px 12px rgba(50,50,51,.12)}.zt-popover--light .zt-popover__arrow{color:var(--zt-popover-light-background)}.zt-popover--light .zt-popover__action:active{background-color:var(--zt-active-color)}.zt-popover--light .zt-popover__action--selected{color:var(--zt-primary-color);cursor:not-allowed}.zt-popover--light .zt-popover__action--selected:active{background-color:transparent}.zt-popover--light .zt-popover__action--disabled{color:var(--zt-popover-light-action-disabled-text-color);cursor:not-allowed}.zt-popover--light .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark{display:none;color:var(--zt-popover-dark-text-color)}.zt-popover--dark .zt-popover__content{background:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__arrow{color:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__action:active{background-color:rgba(0,0,0,.2)}.zt-popover--dark .zt-popover__action--disabled{color:var(--zt-popover-dark-action-disabled-text-color)}.zt-popover--dark .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark .zt-popover__action-text:after{border-color:var(--zt-gray-7)}.zt-popover--show{display:block}.zt-popover--hidden{display:none}.zt-popover-zoom-enter-from,.zt-popover-zoom-leave-active{transform:scale(.8);opacity:0}.zt-popover-zoom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popover-zoom-leave-active{transition-timing-function:var(--zt-ease-in)}
@@ -122,7 +122,7 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
122
122
  export default Popover;
123
123
  export { popoverProps } from './Popover';
124
124
  export type { PopoverProps } from './Popover';
125
- export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, } from './types';
125
+ export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, PopoverThemeVars, } from './types';
126
126
  declare module 'vue' {
127
127
  interface GlobalComponents {
128
128
  ZtPopover: typeof Popover;
@@ -9,3 +9,15 @@ export type PopoverAction = {
9
9
  className?: string;
10
10
  [key: PropertyKey]: any;
11
11
  };
12
+ export type PopoverThemeVars = {
13
+ popoverArrowSize?: string;
14
+ popoverRadius?: string;
15
+ popoverActionWidth?: string;
16
+ popoverActionHeight?: string;
17
+ popoverLightTextColor?: string;
18
+ popoverLightBackground?: string;
19
+ popoverLightActionDisabledTextColor?: string;
20
+ popoverDarkTextColor?: string;
21
+ popoverDarkBackground?: string;
22
+ popoverDarkActionDisabledTextColor?: string;
23
+ };
@@ -1 +1 @@
1
- :root{--zt-popup-background: var(--zt-background-2);--zt-popup-transition: transform var(--zt-duration-base);--zt-popup-round-radius: 16px;--zt-popup-close-icon-size: 22px;--zt-popup-close-icon-color: var(--zt-gray-5);--zt-popup-close-icon-margin: 16px;--zt-popup-close-icon-z-index: 1}.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--zt-popup-background);transition:var(--zt-popup-transition);-webkit-overflow-scrolling:touch}.zt-popup__slider{position:fixed;width:100%;bottom:0;left:0;border-radius:16px 16px 0 0;background-color:var(--zt-popup-background)}.zt-popup__slider-title{height:40px;text-align:center}.zt-popup__slider-bar{display:inline-block;width:32px;height:4px;transform:scaleY(-1);background:rgba(45,75,115,.2);border-radius:3px}.zt-popup__slider-content{overflow-y:auto}.zt-popup--center{top:50%;left:50%;transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:var(--zt-popup-round-radius)}.zt-popup--top{top:0;left:0;width:100%}.zt-popup--top.zt-popup--round{border-radius:0 0 var(--zt-popup-round-radius) var(--zt-popup-round-radius)}.zt-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.zt-popup--right.zt-popup--round{border-radius:var(--zt-popup-round-radius) 0 0 var(--zt-popup-round-radius)}.zt-popup--bottom{bottom:0;left:0;width:100%}.zt-popup--bottom.zt-popup--round{border-radius:var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0 0}.zt-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.zt-popup--left.zt-popup--round{border-radius:0 var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0}.zt-popup-slide-top-enter-active,.zt-popup-slide-left-enter-active,.zt-popup-slide-right-enter-active,.zt-popup-slide-bottom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popup-slide-top-leave-active,.zt-popup-slide-left-leave-active,.zt-popup-slide-right-leave-active,.zt-popup-slide-bottom-leave-active{transition-timing-function:var(--zt-ease-in)}.zt-popup-slide-top-enter-from,.zt-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.zt-popup-slide-right-enter-from,.zt-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.zt-popup-slide-bottom-enter-from,.zt-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.zt-popup-slide-left-enter-from,.zt-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.zt-popup__slider-icon{z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size);cursor:pointer}.zt-popup__close-icon{position:absolute;z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size)}.zt-popup__close-icon--top-left{top:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--top-right{top:var(--zt-popup-close-icon-margin);right:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-left{bottom:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-right{right:var(--zt-popup-close-icon-margin);bottom:var(--zt-popup-close-icon-margin)}
1
+ :root{--zt-popup-background: var(--zt-background-2);--zt-popup-transition: transform var(--zt-duration-base);--zt-popup-round-radius: 16px;--zt-popup-close-icon-color: var(--zt-gray-a6);--zt-popup-close-icon-margin: 16px;--zt-popup-close-icon-z-index: 1}.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--zt-popup-background);transition:var(--zt-popup-transition);-webkit-overflow-scrolling:touch}.zt-popup__slider{position:fixed;width:100%;bottom:0;left:0;border-radius:16px 16px 0 0;background-color:var(--zt-popup-background)}.zt-popup__slider-title{height:40px;text-align:center}.zt-popup__slider-bar{display:inline-block;width:32px;height:4px;transform:scaleY(-1);background:rgba(45,75,115,.2);border-radius:3px}.zt-popup__slider-content{overflow-y:auto}.zt-popup--center{top:50%;left:50%;transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:var(--zt-popup-round-radius)}.zt-popup--top{top:0;left:0;width:100%}.zt-popup--top.zt-popup--round{border-radius:0 0 var(--zt-popup-round-radius) var(--zt-popup-round-radius)}.zt-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.zt-popup--right.zt-popup--round{border-radius:var(--zt-popup-round-radius) 0 0 var(--zt-popup-round-radius)}.zt-popup--bottom{bottom:0;left:0;width:100%}.zt-popup--bottom.zt-popup--round{border-radius:var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0 0}.zt-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.zt-popup--left.zt-popup--round{border-radius:0 var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0}.zt-popup-slide-top-enter-active,.zt-popup-slide-left-enter-active,.zt-popup-slide-right-enter-active,.zt-popup-slide-bottom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popup-slide-top-leave-active,.zt-popup-slide-left-leave-active,.zt-popup-slide-right-leave-active,.zt-popup-slide-bottom-leave-active{transition-timing-function:var(--zt-ease-in)}.zt-popup-slide-top-enter-from,.zt-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.zt-popup-slide-right-enter-from,.zt-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.zt-popup-slide-bottom-enter-from,.zt-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.zt-popup-slide-left-enter-from,.zt-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.zt-popup__slider-icon{z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-font-size-xxxl);cursor:pointer}.zt-popup__close-icon{position:absolute;z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-font-size-xxxl)}.zt-popup__close-icon--top-left{top:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--top-right{top:var(--zt-popup-close-icon-margin);right:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-left{bottom:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-right{right:var(--zt-popup-close-icon-margin);bottom:var(--zt-popup-close-icon-margin)}
@@ -145,7 +145,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
145
145
  }, {}>>;
146
146
  export default Popup;
147
147
  export type { PopupProps } from './Popup';
148
- export type { PopupPosition, PopupInstance, PopupCloseIconPosition, } from './types';
148
+ export type { PopupPosition, PopupInstance, PopupCloseIconPosition, PopupThemeVars, } from './types';
149
149
  declare module 'vue' {
150
150
  interface GlobalComponents {
151
151
  ZtPopup: typeof Popup;
@@ -6,3 +6,11 @@ export type PopupExpose = {
6
6
  popupRef: Ref<HTMLElement>;
7
7
  };
8
8
  export type PopupInstance = ComponentPublicInstance<PopupProps, PopupExpose>;
9
+ export type PopupThemeVars = {
10
+ popupBackground?: string;
11
+ popupTransition?: string;
12
+ popupRoundRadius?: string;
13
+ popupCloseIconColor?: string;
14
+ popupCloseIconMargin?: string;
15
+ popupCloseIconZIndex?: number;
16
+ };
@@ -1 +1 @@
1
- :root{--zt-pull-refresh-head-height: 50px;--zt-pull-refresh-head-font-size: var(--zt-font-size-md);--zt-pull-refresh-head-text-color: var(--zt-text-color-2);--zt-pull-refresh-loading-icon-size: 14px;--zt-pull-refresh-head-background: var(--zt-background)}.zt-pull-refresh{overflow:hidden}.zt-pull-refresh__track{position:relative;height:100%;transition-property:transform}.zt-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--zt-pull-refresh-head-height);overflow:hidden;color:var(--zt-pull-refresh-head-text-color);font-size:var(--zt-pull-refresh-head-font-size);line-height:var(--zt-pull-refresh-head-height);text-align:center;transform:translateY(-100%);background:var(--zt-pull-refresh-head-background)}.zt-pull-refresh__loading .zt-loading__spinner{width:var(--zt-pull-refresh-loading-icon-size);height:var(--zt-pull-refresh-loading-icon-size)}
1
+ :root{--zt-pull-refresh-head-text-color: var(--zt-text-color-2);--zt-pull-refresh-loading-icon-size: 14px;--zt-pull-refresh-head-background: var(--zt-background);--zt-pull-refresh-head-height: 50px}:root[zt-theme-size=large]{--zt-pull-refresh-head-height: 62px}.zt-pull-refresh{overflow:hidden}.zt-pull-refresh__track{position:relative;height:100%;transition-property:transform}.zt-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--zt-pull-refresh-head-height);overflow:hidden;color:var(--zt-pull-refresh-head-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-pull-refresh-head-height);text-align:center;transform:translateY(-100%);background:var(--zt-pull-refresh-head-background)}.zt-pull-refresh__loading .zt-loading__spinner{width:var(--zt-pull-refresh-loading-icon-size);height:var(--zt-pull-refresh-loading-icon-size)}
@@ -51,6 +51,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
51
51
  }, {}>>;
52
52
  export default PullRefresh;
53
53
  export type { PullRefreshProps } from './PullRefresh';
54
+ export type { PullRefreshThemeVars } from './types';
54
55
  declare module 'vue' {
55
56
  interface GlobalComponents {
56
57
  ZtPullRefresh: typeof PullRefresh;
@@ -0,0 +1,6 @@
1
+ export type PullRefreshThemeVars = {
2
+ pullRefreshHeadTextColor?: string;
3
+ pullRefreshLoadingIconSize?: string;
4
+ pullRefreshHeadBackground?: string;
5
+ pullRefreshHeadHeight?: string;
6
+ };
File without changes
@@ -1 +1 @@
1
- :root{--zt-radio-size: 16px;--zt-radio-padding: 12px 0;--zt-radio-border-color: var(--zt-gray-5);--zt-radio-duration: var(--zt-duration-fast);--zt-radio-round-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 rgba(45, 75, 115, .2);--zt-radio-round-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-radio-dot-white: var(--zt-white);--zt-radio-round-border: 1px solid rgba(45, 75, 115, .13);--zt-radio-label-margin: 14px;--zt-radio-label-color: var(--zt-text-color);--zt-radio-label-font-size: var(--zt-font-size-md);--zt-radio-checked-icon-color: var(--zt-primary-color);--zt-radio-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-radio-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-radio-disabled-icon-color: var(--zt-gray-5);--zt-radio-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 rgba(45, 75, 115, .2);--zt-radio-disabled-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-radio-disabled-label-color: var(--zt-text-color-3);--zt-radio-disabled-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%);--zt-radio-disabled-checked-icon-opacity: .4}.zt-radio{position:relative;display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:var(--zt-radio-padding)}.zt-radio--disabled{cursor:not-allowed}.zt-radio--label-disabled{cursor:default}.zt-radio--horizontal{margin-right:var(--zt-padding-md)}.zt-radio__icon{font-size:var(--zt-radio-size);cursor:pointer;box-sizing:border-box}.zt-radio__icon .zt-icon{display:flex;justify-content:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid var(--zt-radio-border-color);transition-duration:var(--zt-radio-duration);transition-property:color,border-color,background-color}.zt-radio__icon--round .zt-icon{border-radius:100%;border:var(--zt-radio-round-border);box-shadow:var(--zt-radio-round-box-shadow);background:var(--zt-radio-round-background)}.zt-radio__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-radio-checked-icon-color);box-shadow:var(--zt-radio-checked-icon-shadow);border:var(--zt-radio-checked-icon-border)}.zt-radio__icon--disabled{cursor:not-allowed}.zt-radio__icon--disabled .zt-icon{border:var(--zt-radio-disabled-icon-border);box-shadow:var(--zt-radio-disabled-icon-shadow);background:var(--zt-radio-disabled-background)}.zt-radio__icon--disabled.zt-radio__icon--checked .zt-icon{opacity:var(--zt-radio-disabled-checked-icon-opacity);background:var(--zt-blue);color:var(--zt-white)}.zt-radio__dot{width:calc(var(--zt-radio-size) * .5);height:calc(var(--zt-radio-size) * .5);background:var(--zt-radio-dot-white);border-radius:50%}.zt-radio__label{margin-left:var(--zt-radio-label-margin);color:var(--zt-radio-label-color);font-size:var(--zt-radio-label-font-size)}.zt-radio__label--left{margin:0 var(--zt-radio-label-margin) 0 0}.zt-radio__label--disabled{color:var(--zt-radio-disabled-label-color)}.zt-theme-dark{--zt-radio-dot-white: #ffffff;--zt-radio-round-box-shadow: none;--zt-radio-disabled-icon-shadow: none;--zt-radio-round-background: linear-gradient(179deg, #19232d 0%, rgba(255, 255, 255, .2) 100%);--zt-radio-round-border: 1px solid rgba(255, 255, 255, .2);--zt-radio-disabled-label-color: #000c18 80%;--zt-radio-disabled-background: linear-gradient(135deg, #0e1824 0%, #203043 100%);--zt-radio-disabled-icon-border: 1px solid rgba(255, 255, 255, .2)}
1
+ :root{--zt-radio-padding: 12px 0;--zt-radio-border-color: var(--zt-gray-a1);--zt-radio-duration: var(--zt-duration-fast);--zt-radio-round-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 var(--zt-gray-a2);--zt-radio-round-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-radio-round-border: 1px solid var(--zt-gray-a1);--zt-radio-label-margin: 14px;--zt-radio-label-color: var(--zt-text-color);--zt-radio-checked-icon-color: var(--zt-primary-color);--zt-radio-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-radio-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-radio-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 var(--zt-gray-a2);--zt-radio-disabled-icon-border: 1px solid var(--zt-gray-a08);--zt-radio-disabled-label-color: var(--zt-gray-a2);--zt-radio-disabled-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%);--zt-radio-disabled-checked-icon-opacity: var(--zt-disabled-opacity)}.zt-radio{position:relative;display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:var(--zt-radio-padding)}.zt-radio--disabled{cursor:not-allowed}.zt-radio--label-disabled{cursor:default}.zt-radio--horizontal{margin-right:var(--zt-padding-md)}.zt-radio__icon{font-size:var(--zt-font-size-lg);cursor:pointer;box-sizing:border-box}.zt-radio__icon .zt-icon{display:flex;justify-content:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid var(--zt-radio-border-color);transition-duration:var(--zt-radio-duration);transition-property:color,border-color,background-color}.zt-radio__icon--round .zt-icon{border-radius:100%;border:var(--zt-radio-round-border);box-shadow:var(--zt-radio-round-box-shadow);background:var(--zt-radio-round-background)}.zt-radio__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-radio-checked-icon-color);box-shadow:var(--zt-radio-checked-icon-shadow);border:var(--zt-radio-checked-icon-border)}.zt-radio__icon--disabled{cursor:not-allowed}.zt-radio__icon--disabled .zt-icon{border:var(--zt-radio-disabled-icon-border);box-shadow:var(--zt-radio-disabled-icon-shadow);background:var(--zt-radio-disabled-background)}.zt-radio__icon--disabled.zt-radio__icon--checked .zt-icon{opacity:var(--zt-radio-disabled-checked-icon-opacity);background:var(--zt-radio-checked-icon-color);color:var(--zt-white)}.zt-radio__dot{width:calc(var(--zt-font-size-lg) * .5);height:calc(var(--zt-font-size-lg) * .5);background:var(--zt-white);border-radius:50%}.zt-radio__label{margin-left:var(--zt-radio-label-margin);color:var(--zt-radio-label-color);font-size:var(--zt-font-size-md)}.zt-radio__label--left{margin:0 var(--zt-radio-label-margin) 0 0}.zt-radio__label--disabled{color:var(--zt-radio-disabled-label-color)}.zt-theme-dark{--zt-radio-round-box-shadow: none;--zt-radio-disabled-icon-shadow: none;--zt-radio-round-background: linear-gradient(179deg, #19232d 0%, rgba(255, 255, 255, .2) 100%);--zt-radio-round-border: 1px solid var(--zt-gray);--zt-radio-disabled-background: linear-gradient(135deg, #0e1824 0%, #203043 100%)}
@@ -31,6 +31,7 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineC
31
31
  }, {}>>;
32
32
  export default Radio;
33
33
  export type { RadioProps, RadioShape, RadioLabelPosition } from './Radio';
34
+ export type { RadioThemeVars } from './types';
34
35
  declare module 'vue' {
35
36
  interface GlobalComponents {
36
37
  ZtRadio: typeof Radio;
@@ -0,0 +1,18 @@
1
+ export type RadioThemeVars = {
2
+ radioPadding?: string;
3
+ radioBorderColor?: string;
4
+ radioDuration?: string;
5
+ radioRoundBoxShadow?: string;
6
+ radioRoundBackground?: string;
7
+ radioRoundBorder?: string;
8
+ radioLabelMargin?: string;
9
+ radioLabelColor?: string;
10
+ radioCheckedIconColor?: string;
11
+ radioCheckedIconShadow?: string;
12
+ radioCheckedIconBorder?: string;
13
+ radioDisabledIconShadow?: string;
14
+ radioDisabledIconBorder?: string;
15
+ radioDisabledLabelColor?: string;
16
+ radioDisabledBackground?: string;
17
+ radioDisabledCheckedIconOpacity?: string;
18
+ };
File without changes
@@ -1 +1 @@
1
- .zt-radio-group--horizontal{display:flex;flex-wrap:wrap}.zt-radio-group--vertical .zt-radio:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:calc(var(--zt-radio-size) + var(--zt-radio-label-margin));border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-radio-group--vertical .zt-radio:last-child:after{display:none}
1
+ .zt-radio-group--horizontal{display:flex;flex-wrap:wrap}.zt-radio-group--vertical .zt-radio:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:calc(var(--zt-font-size-lg) + var(--zt-radio-label-margin));border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-radio-group--vertical .zt-radio:last-child:after{display:none}
@@ -129,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
129
129
  type: PropType<string>;
130
130
  default: string;
131
131
  };
132
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker")[], "update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
132
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption")[], "update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
133
133
  loading: BooleanConstructor;
134
134
  readonly: BooleanConstructor;
135
135
  allowHtml: BooleanConstructor;
@@ -185,8 +185,8 @@ declare const _default: import("vue").DefineComponent<{
185
185
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
186
186
  onCancel?: ((...args: any[]) => any) | undefined;
187
187
  onConfirm?: ((...args: any[]) => any) | undefined;
188
- onClickOption?: ((...args: any[]) => any) | undefined;
189
188
  "onUpdate:showPicker"?: ((...args: any[]) => any) | undefined;
189
+ onClickOption?: ((...args: any[]) => any) | undefined;
190
190
  }, {
191
191
  title: string;
192
192
  modelValue: Numeric[];
@@ -196,9 +196,9 @@ declare const _default: import("vue").DefineComponent<{
196
196
  showTitle: boolean;
197
197
  columns: (PickerColumn | RadioPickerOption)[];
198
198
  allowHtml: boolean;
199
- showToolbar: boolean;
200
199
  swipeDuration: string | number;
201
200
  showPicker: boolean;
201
+ showToolbar: boolean;
202
202
  wrapHeight: string | number;
203
203
  searchable: boolean;
204
204
  autoSearch: boolean;
@@ -1 +1 @@
1
- :root{--zt-radio-picker-cancel-margin: 8px 4px 8px 16px;--zt-radio-picker-confirm-margin: 8px 16px 8px 4px;--zt-radio-picker-title-height: 44px;--zt-radio-picker-search-padding-top-bottom: 12px;--zt-radio-picker-search-radio-label-match-color: var(--zt-blue);--zt-radio-picker-title-border-radius: 16px 16px 0 0;--zt-radio-picker-frame-background-color: var(--zt-gray-a04);--zt-radio-picker-cancel-background-color: var(--zt-white);--zt-radio-picker-title-text-color: var(--zt-gray-a4);--zt-radio-picker-background: var(--zt-background-2);--zt-radio-picker-toolbar-height: 60px;--zt-radio-picker-title-font-size: var(--zt-font-size-md);--zt-radio-picker-title-background: var(--zt-white);--zt-radio-picker-title-line-height: var(--zt-line-height-md);--zt-radio-picker-action-padding: 0 var(--zt-padding-md);--zt-radio-picker-action-font-size: var(--zt-font-size-lg);--zt-radio-picker-confirm-action-color: var(--zt-white);--zt-radio-picker-cancel-action-color: var(--zt-text-color);--zt-radio-picker-option-font-size: var(--zt-font-size-lg);--zt-radio-picker-option-radio-label-margin: 8px;--zt-radio-picker-option-padding: 12px var(--zt-padding-md);--zt-radio-picker-option-text-color: var(--zt-text-color);--zt-radio-picker-option-disabled-opacity: .3;--zt-radio-picker-loading-icon-color: var(--zt-primary-color);--zt-radio-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-radio-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-radio-picker-unit-font-size: var(--zt-font-size-md)}.zt-theme-dark{--zt-radio-picker-selected-background: rgba(255, 255, 255, .08);--zt-radio-picker-title-background: var(--zt-background-2);--zt-radio-picker-title-text-color: var(--zt-gray-default);--zt-radio-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-radio-picker{position:relative;background:var(--zt-radio-picker-background);-webkit-user-select:none;user-select:none}.zt-radio-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-radio-picker-toolbar-height)}.zt-radio-picker__cancel,.zt-radio-picker__confirm{width:50%}.zt-radio-picker__cancel{background:var(--zt-button-default-background);margin:var(--zt-radio-picker-cancel-margin)}.zt-radio-picker__confirm{margin:var(--zt-radio-picker-confirm-margin)}.zt-radio-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-radio-picker-title-height);border-radius:var(--zt-radio-picker-title-border-radius);font-size:var(--zt-radio-picker-title-font-size);background:var(--zt-radio-picker-title-background);color:var(--zt-radio-picker-title-text-color)}.zt-radio-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.zt-radio-picker__search{padding-top:var(--zt-radio-picker-search-padding-top-bottom);padding-bottom:var(--zt-radio-picker-search-padding-top-bottom)}.zt-radio-picker__search .zt-search{padding-top:0;padding-bottom:0}.zt-radio-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-radio-picker-loading-icon-color);background:var(--zt-radio-picker-loading-mask-color)}.zt-radio-picker__frame{position:absolute;top:50%;z-index:2;transform:translateY(-50%);pointer-events:none;width:100%;background:var(--zt-radio-picker-frame-background-color)}.zt-radio-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--zt-radio-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.zt-radio-picker-column{position:relative;flex:1;overflow:hidden;font-size:var(--zt-radio-picker-option-font-size);background:var(--zt-radio-picker-background)}.zt-radio-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-radio-picker-column__item{display:flex;align-items:center;justify-content:flex-start;color:var(--zt-radio-picker-option-text-color)}.zt-radio-picker-column__item--not-match{display:none}.zt-radio-picker-column__item.zt-radio{padding:var(--zt-radio-picker-option-padding)}.zt-radio-picker-column__item.zt-radio:after{left:calc(var(--zt-radio-size) + var(--zt-radio-label-margin) + var(--zt-padding-md))}.zt-radio-picker-column__item.zt-radio .zt-radio__label{margin-left:var(--zt-radio-picker-option-radio-label-margin)}.zt-radio-picker-column__search-empty .zt-empty__description{padding:unset}
1
+ :root{--zt-radio-picker-cancel-margin: 8px 4px 8px 16px;--zt-radio-picker-confirm-margin: 8px 16px 8px 4px;--zt-radio-picker-title-height: 44px;--zt-radio-picker-search-padding-top-bottom: 12px;--zt-radio-picker-search-radio-label-match-color: var(--zt-primary-color);--zt-radio-picker-title-border-radius: 16px 16px 0 0;--zt-radio-picker-frame-background-color: var(--zt-gray-a04);--zt-radio-picker-cancel-background-color: var(--zt-white);--zt-radio-picker-title-text-color: var(--zt-gray-a4);--zt-radio-picker-background: var(--zt-background-2);--zt-radio-picker-toolbar-height: 60px;--zt-radio-picker-title-background: var(--zt-background-2);--zt-radio-picker-action-padding: 0 var(--zt-padding-md);--zt-radio-picker-confirm-action-color: var(--zt-white);--zt-radio-picker-cancel-action-color: var(--zt-text-color);--zt-radio-picker-option-radio-label-margin: 8px;--zt-radio-picker-option-padding: 12px var(--zt-padding-md);--zt-radio-picker-option-text-color: var(--zt-text-color);--zt-radio-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-radio-picker-loading-icon-color: var(--zt-primary-color);--zt-radio-picker-loading-mask-color: var(--zt-picker-loading-mask-color);--zt-radio-picker-mask-color: var(--zt-picker-mask-color)}.zt-radio-picker{position:relative;background:var(--zt-radio-picker-background);-webkit-user-select:none;user-select:none}.zt-radio-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-radio-picker-toolbar-height)}.zt-radio-picker__cancel,.zt-radio-picker__confirm{width:50%}.zt-radio-picker__cancel{background:var(--zt-button-default-background);margin:var(--zt-radio-picker-cancel-margin)}.zt-radio-picker__confirm{margin:var(--zt-radio-picker-confirm-margin)}.zt-radio-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-radio-picker-title-height);border-radius:var(--zt-radio-picker-title-border-radius);font-size:var(--zt-font-size-md);background:var(--zt-radio-picker-title-background);color:var(--zt-radio-picker-title-text-color)}.zt-radio-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.zt-radio-picker__search{padding-top:var(--zt-radio-picker-search-padding-top-bottom);padding-bottom:var(--zt-radio-picker-search-padding-top-bottom)}.zt-radio-picker__search .zt-search{padding-top:0;padding-bottom:0}.zt-radio-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-radio-picker-loading-icon-color);background:var(--zt-radio-picker-loading-mask-color)}.zt-radio-picker__frame{position:absolute;top:50%;z-index:2;transform:translateY(-50%);pointer-events:none;width:100%;background:var(--zt-radio-picker-frame-background-color)}.zt-radio-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--zt-radio-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.zt-radio-picker-column{position:relative;flex:1;overflow:hidden;font-size:var(--zt-font-size-lg);background:var(--zt-radio-picker-background)}.zt-radio-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-radio-picker-column__item{display:flex;align-items:center;justify-content:flex-start;color:var(--zt-radio-picker-option-text-color)}.zt-radio-picker-column__item--not-match{display:none}.zt-radio-picker-column__item.zt-radio{padding:var(--zt-radio-picker-option-padding)}.zt-radio-picker-column__item.zt-radio:after{left:calc(var(--zt-font-size-lg) + var(--zt-radio-label-margin) + var(--zt-padding-md))}.zt-radio-picker-column__item.zt-radio .zt-radio__label{margin-left:var(--zt-radio-picker-option-radio-label-margin)}.zt-radio-picker-column__search-empty{height:100%}
@@ -50,7 +50,7 @@ export declare const RadioPicker: import("../utils").WithInstall<import("vue").D
50
50
  type: import("vue").PropType<string>;
51
51
  default: string;
52
52
  };
53
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker")[], "update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "update:showPicker", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
53
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption")[], "update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
54
54
  loading: BooleanConstructor;
55
55
  readonly: BooleanConstructor;
56
56
  allowHtml: BooleanConstructor;
@@ -106,8 +106,8 @@ export declare const RadioPicker: import("../utils").WithInstall<import("vue").D
106
106
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
107
107
  onCancel?: ((...args: any[]) => any) | undefined;
108
108
  onConfirm?: ((...args: any[]) => any) | undefined;
109
- onClickOption?: ((...args: any[]) => any) | undefined;
110
109
  "onUpdate:showPicker"?: ((...args: any[]) => any) | undefined;
110
+ onClickOption?: ((...args: any[]) => any) | undefined;
111
111
  }, {
112
112
  title: string;
113
113
  modelValue: import("../utils").Numeric[];
@@ -117,9 +117,9 @@ export declare const RadioPicker: import("../utils").WithInstall<import("vue").D
117
117
  showTitle: boolean;
118
118
  columns: (import("./types").PickerColumn | import("./types").RadioPickerOption)[];
119
119
  allowHtml: boolean;
120
- showToolbar: boolean;
121
120
  swipeDuration: string | number;
122
121
  showPicker: boolean;
122
+ showToolbar: boolean;
123
123
  wrapHeight: string | number;
124
124
  searchable: boolean;
125
125
  autoSearch: boolean;
@@ -127,7 +127,7 @@ export declare const RadioPicker: import("../utils").WithInstall<import("vue").D
127
127
  }, {}>>;
128
128
  export default RadioPicker;
129
129
  export { radioPickerProps } from './RadioPicker';
130
- export type { PickerCancelEventParams as RadioPickerCancelEventParams, PickerChangeEventParams as RadioPickerChangeEventParams, PickerColumn as RadioPickerColumn, PickerConfirmEventParams as RadioPickerConfirmEventParams, PickerFieldNames as RadioPickerFieldNames, RadioPickerInstance, RadioPickerOption, PickerToolbarPosition as RadioPickerToolbarPosition, } from './types';
130
+ export type { PickerCancelEventParams as RadioPickerCancelEventParams, PickerChangeEventParams as RadioPickerChangeEventParams, PickerColumn as RadioPickerColumn, PickerConfirmEventParams as RadioPickerConfirmEventParams, PickerFieldNames as RadioPickerFieldNames, RadioPickerInstance, RadioPickerOption, PickerToolbarPosition as RadioPickerToolbarPosition, RadioPickerThemeVars, } from './types';
131
131
  export type { RadioPickerProps };
132
132
  declare module 'vue' {
133
133
  interface GlobalComponents {
@@ -42,3 +42,27 @@ export type PickerCancelEventParams = PickerConfirmEventParams;
42
42
  export type PickerChangeEventParams = PickerConfirmEventParams & {
43
43
  columnIndex: number;
44
44
  };
45
+ export type RadioPickerThemeVars = {
46
+ pickerCancelMargin?: string;
47
+ pickerConfirmMargin?: string;
48
+ pickerTitleHeight?: string;
49
+ pickerSearchPaddingTopBottom?: string;
50
+ pickerSearchRadioLabelMatchColor?: string;
51
+ pickerTitleBorderRadius?: string;
52
+ pickerFrameBackgroundColor?: string;
53
+ pickerCancelBackgroundColor?: string;
54
+ pickerTitleTextColor?: string;
55
+ pickerBackground?: string;
56
+ pickerToolbarHeight?: string;
57
+ pickerTitleBackground?: string;
58
+ pickerActionPadding?: string;
59
+ pickerConfirmActionColor?: string;
60
+ pickerCancelActionColor?: string;
61
+ pickerOptionRadioLabelMargin?: string;
62
+ pickerOptionPadding?: string;
63
+ pickerOptionTextColor?: string;
64
+ pickerOptionDisabledOpacity?: string;
65
+ pickerLoadingIconColor?: string;
66
+ pickerLoadingMaskColor?: string;
67
+ pickerMaskColor?: string;
68
+ };
package/es/rate/index.css CHANGED
@@ -1 +1 @@
1
- :root{--zt-rate-icon-size: 20px;--zt-rate-icon-gutter: var(--zt-padding-base);--zt-rate-icon-void-color: rgba(0, 0, 0, .2);--zt-rate-icon-full-color: var(--zt-yellow);--zt-rate-icon-disabled-color: var(--zt-gray-5)}.zt-rate{cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;display:inline-flex;align-items:center}.zt-rate__item{position:relative}.zt-rate__item:not(:last-child){padding-right:var(--zt-rate-icon-gutter)}.zt-rate__icon{display:block;width:1em;color:var(--zt-rate-icon-void-color);font-size:var(--zt-rate-icon-size)}.zt-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.zt-rate__icon--full{color:var(--zt-rate-icon-full-color)}.zt-rate__icon--disabled{color:var(--zt-rate-icon-disabled-color)}.zt-rate--disabled{cursor:not-allowed}.zt-rate--readonly{cursor:default}.zt-theme-dark{--zt-rate-icon-void-color: rgba(255, 255, 255, .2)}
1
+ :root{--zt-rate-icon-gutter: var(--zt-padding-base);--zt-rate-icon-void-color: rgba(0, 0, 0, .2);--zt-rate-icon-full-color: var(--zt-yellow);--zt-rate-icon-disabled-color: var(--zt-gray-5)}.zt-rate{cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;display:inline-flex;align-items:center}.zt-rate__item{position:relative}.zt-rate__item:not(:last-child){padding-right:var(--zt-rate-icon-gutter)}.zt-rate__icon{display:block;width:1em;color:var(--zt-rate-icon-void-color);font-size:var(--zt-font-size-xxl)}.zt-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.zt-rate__icon--full{color:var(--zt-rate-icon-full-color)}.zt-rate__icon--disabled{color:var(--zt-rate-icon-disabled-color)}.zt-rate--disabled{cursor:not-allowed}.zt-rate--readonly{cursor:default}.zt-theme-dark{--zt-rate-icon-void-color: rgba(255, 255, 255, .2)}
@@ -73,6 +73,7 @@ export declare const Rate: import("../utils").WithInstall<import("vue").DefineCo
73
73
  }, {}>>;
74
74
  export default Rate;
75
75
  export type { RateProps } from './Rate';
76
+ export type { RateThemeVars } from './types';
76
77
  declare module 'vue' {
77
78
  interface GlobalComponents {
78
79
  ZtRate: typeof Rate;
@@ -0,0 +1,6 @@
1
+ export type RateThemeVars = {
2
+ rateIconGutter?: string;
3
+ rateIconVoidColor?: string;
4
+ rateIconFullColor?: string;
5
+ rateIconDisabledColor?: string;
6
+ };
File without changes
@@ -1 +1 @@
1
- :root{--zt-search-padding: 4px var(--zt-padding-md);--zt-search-background: transparent;--zt-search-content-background: var(--zt-gray-a04);--zt-search-input-height: 20px;--zt-search-label-padding: 8px 0 8px 12px;--zt-search-label-color: var(--zt-text-color);--zt-search-label-font-size: var(--zt-font-size-md);--zt-search-left-icon-color: var(--zt-gray-a4);--zt-search-action-padding: 0 var(--zt-padding-md);--zt-search-action-text-color: var(--zt-blue);--zt-search-action-font-size: var(--zt-font-size-md);--zt-search-border-radius-sm: 2px;--zt-search-content-box-shadow: inset 4px 4px 8px 0 var(--zt-gray-a1);--zt-search-content-border-color: linear-gradient(#fff, rgba(255, 255, 255, .4));--zt-search-round-border: none;--zt-search-placeholder: var(--zt-gray-a2)}.zt-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--zt-search-padding);background-color:var(--zt-search-background)}.zt-search__content{display:flex;flex:1;background-color:var(--zt-search-content-background);border-radius:var(--zt-radius-sm);box-shadow:var(--zt-search-content-box-shadow);padding-left:var(--zt-padding-sm)}.zt-search__content--round{border-radius:var(--zt-radius-max);border:var(--zt-search-round-border)}.zt-search__label{padding:var(--zt-search-label-padding);color:var(--zt-search-label-color);font-size:var(--zt-search-label-font-size);line-height:var(--zt-search-input-height)}.zt-search__field{width:100%}.zt-search .zt-cell--horizontal{background:transparent;padding:8px 16px 8px 0}.zt-search--show-action{padding-right:0}.zt-search input{caret-color:var(--zt-blue)}.zt-search input::-webkit-search-decoration,.zt-search input::-webkit-search-cancel-button,.zt-search input::-webkit-search-results-button,.zt-search input::-webkit-search-results-decoration{display:none}.zt-search input::-webkit-input-placeholder{color:var(--zt-search-placeholder)}.zt-search input::placeholder{color:var(--zt-search-placeholder)}.zt-search__action{padding:var(--zt-search-action-padding);color:var(--zt-search-action-text-color);font-size:var(--zt-search-action-font-size);font-weight:400;height:36px;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;justify-content:center;align-items:center}.zt-search__action:active{background-color:rgba(0,0,0,.04)}.zt-theme-dark{--zt-search-content-background: var(--zt-background);--zt-search-content-box-shadow: inset 4px 4px 8px 0 var(--zt-background);--zt-search-round-border: 1px solid rgba(15, 155, 255, .2)}
1
+ :root{--zt-search-padding: 4px var(--zt-padding-md);--zt-search-background: transparent;--zt-search-content-background: var(--zt-gray-a04);--zt-search-label-padding: 8px 0 8px 12px;--zt-search-label-color: var(--zt-text-color);--zt-search-action-padding: 0 var(--zt-padding-md);--zt-search-action-text-color: var(--zt-primary-color);--zt-search-content-box-shadow: inset 4px 4px 8px 0 var(--zt-gray-a1);--zt-search-round-border: none;--zt-search-placeholder: var(--zt-gray-a2)}.zt-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--zt-search-padding);background-color:var(--zt-search-background)}.zt-search__content{display:flex;flex:1;background-color:var(--zt-search-content-background);border-radius:var(--zt-radius-sm);box-shadow:var(--zt-search-content-box-shadow);padding-left:var(--zt-padding-sm)}.zt-search__content--round{border-radius:var(--zt-radius-max);border:var(--zt-search-round-border)}.zt-search__label{padding:var(--zt-search-label-padding);color:var(--zt-search-label-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md)}.zt-search__field{width:100%}.zt-search .zt-cell--horizontal{background:transparent;padding:8px 16px 8px 0}.zt-search--show-action{padding-right:0}.zt-search input{caret-color:var(--zt-primary-color)}.zt-search input::-webkit-search-decoration,.zt-search input::-webkit-search-cancel-button,.zt-search input::-webkit-search-results-button,.zt-search input::-webkit-search-results-decoration{display:none}.zt-search input::-webkit-input-placeholder{color:var(--zt-search-placeholder)}.zt-search input::placeholder{color:var(--zt-search-placeholder)}.zt-search__action{padding:var(--zt-search-action-padding);color:var(--zt-search-action-text-color);font-size:var(--zt-font-size-md);font-weight:400;height:36px;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;justify-content:center;align-items:center}.zt-search__action:active{background-color:rgba(0,0,0,.04)}.zt-theme-dark{--zt-search-content-background: var(--zt-background-2);--zt-search-content-box-shadow: inset 4px 4px 8px 0 var(--zt-background);--zt-search-round-border: 1px solid rgba(15, 155, 255, .2)}
@@ -151,7 +151,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
151
151
  export default Search;
152
152
  export { searchProps } from './Search';
153
153
  export type { SearchProps };
154
- export type { SearchShape, SearchInstance } from './types';
154
+ export type { SearchShape, SearchInstance, SearchThemeVars } from './types';
155
155
  declare module 'vue' {
156
156
  interface GlobalComponents {
157
157
  ZtSearch: typeof Search;
@@ -6,3 +6,15 @@ export type SearchExpose = {
6
6
  blur: () => void;
7
7
  };
8
8
  export type SearchInstance = ComponentPublicInstance<SearchProps, SearchExpose>;
9
+ export type SearchThemeVars = {
10
+ searchPadding?: string;
11
+ searchBackground?: string;
12
+ searchContentBackground?: string;
13
+ searchLabelPadding?: string;
14
+ searchLabelColor?: string;
15
+ searchActionPadding?: string;
16
+ searchActionTextColor?: string;
17
+ searchContentBoxShadow?: string;
18
+ searchRoundBorder?: string;
19
+ searchPlaceholder?: string;
20
+ };
@@ -1 +1 @@
1
- :root{--zt-signature-canvas-z-index: 1;--zt-signature-canvas-background-color: var(--zt-white);--zt-signature-hint-z-index: 2;--zt-signature-actions-z-index: 2;--zt-signature-button-backgroud: #ffffff;--zt-signature-button-again-border: .5px solid #ff8700;--zt-signature-button-cancel-border: .5px solid rgba(45, 75, 115, .2);--zt-signature-button-complete-background-image: linear-gradient(-45deg, #3cafff 0%, #0091fa 100%)}.zt-signature{background-color:var(--zt-background);width:100%;height:100%;position:relative}.zt-signature__placeholder{z-index:var(--zt-signature-hint-z-index);pointer-events:none;position:absolute;left:0;top:calc(50% - 12px);font-size:16px;height:24px;width:100%;color:var(--zt-gray-a2);text-align:center}.zt-signature__canvasWrapper{z-index:var(--zt-signature-canvas-z-index);position:absolute;top:0;left:0;width:100%;height:100%;background:var(--zt-signature-canvas-background-color)}.zt-signature__canvas{background:var(--zt-signature-canvas-background-color);color:var(--zt-signature-canvas-background-color)}.zt-signature__actions{z-index:var(--zt-signature-actions-z-index);position:absolute;right:0;bottom:16px;width:320px;float:right}.zt-signature__actions button{float:left;width:96px;margin-right:8px}.zt-signature__stroke{color:var(--zt-text-color)}.zt-signature__button-again{background:var(--zt-signature-button-backgroud);border:var(--zt-signature-button-again-border)}.zt-signature__button-cancel{background:var(--zt-signature-button-backgroud);color:var(--zt-text-color);border:var(--zt-signature-button-cancel-border)}.zt-signature__button-complete{background-image:var(--zt-signature-button-complete-background-image)}.zt-theme-dark{--zt-signature-canvas-background-color: #19222d;--zt-signature-button-backgroud: rgba(255, 255, 255, .04);--zt-signature-button-again-border: 0px;--zt-signature-button-cancel-border: 0px;--zt-signature-button-complete-background-image: linear-gradient(-45deg, #3cafff 0%, #0091fa 100%)}
1
+ :root{--zt-signature-canvas-z-index: 1;--zt-signature-canvas-background-color: var(--zt-white);--zt-signature-hint-z-index: 2;--zt-signature-actions-z-index: 2;--zt-signature-button-background: #ffffff;--zt-signature-button-again-border: .5px solid var(--zt-orange);--zt-signature-button-cancel-border: .5px solid rgba(45, 75, 115, .2)}.zt-signature{background-color:var(--zt-background);width:100%;height:100%;position:relative}.zt-signature__placeholder{z-index:var(--zt-signature-hint-z-index);pointer-events:none;position:absolute;left:0;top:calc(50% - 12px);font-size:var(--zt-font-size-lg);height:24px;width:100%;color:var(--zt-gray-a2);text-align:center}.zt-signature__canvasWrapper{z-index:var(--zt-signature-canvas-z-index);position:absolute;top:0;left:0;width:100%;height:100%;background:var(--zt-signature-canvas-background-color)}.zt-signature__canvas{background:var(--zt-signature-canvas-background-color);color:var(--zt-signature-canvas-background-color)}.zt-signature__actions{z-index:var(--zt-signature-actions-z-index);position:absolute;right:0;bottom:16px;width:320px;float:right}.zt-signature__actions button{float:left;width:96px;margin-right:8px}.zt-signature__stroke{color:var(--zt-text-color)}.zt-signature__button-again{background:var(--zt-signature-button-background);border:var(--zt-signature-button-again-border)}.zt-signature__button-cancel{background:var(--zt-signature-button-background);color:var(--zt-text-color);border:var(--zt-signature-button-cancel-border)}.zt-theme-dark{--zt-signature-canvas-background-color: #19222d;--zt-signature-button-background: rgba(255, 255, 255, .04);--zt-signature-button-again-border: 0px;--zt-signature-button-cancel-border: 0px}
@@ -75,7 +75,7 @@ export declare const Signature: import("../utils").WithInstall<import("vue").Def
75
75
  export default Signature;
76
76
  export { signatureProps } from './Signature';
77
77
  export type { SignatureProps } from './Signature';
78
- export type { SignatureResultType } from './types';
78
+ export type { SignatureResultType, SignatureThemeVars } from './types';
79
79
  declare module 'vue' {
80
80
  interface GlobalComponents {
81
81
  ZtSignature: typeof Signature;