zartui 3.1.9 → 3.1.11

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 (508) hide show
  1. package/README.md +23 -23
  2. package/es/action-sheet/index.css +1 -1
  3. package/es/action-sheet/index.d.ts +1 -0
  4. package/es/action-sheet/types.d.ts +14 -0
  5. package/es/action-sheet/types.mjs +0 -0
  6. package/es/avatar/index.css +1 -1
  7. package/es/avatar/index.d.ts +1 -1
  8. package/es/avatar/types.d.ts +10 -0
  9. package/es/badge/index.css +1 -1
  10. package/es/badge/index.d.ts +1 -0
  11. package/es/badge/types.d.ts +15 -0
  12. package/es/badge/types.mjs +0 -0
  13. package/es/button/index.css +1 -1
  14. package/es/button/index.d.ts +1 -1
  15. package/es/button/types.d.ts +35 -0
  16. package/es/calendar/CalendarDay.mjs +8 -1
  17. package/es/calendar/CalendarHeader.mjs +2 -2
  18. package/es/calendar/index.css +1 -1
  19. package/es/calendar/index.d.ts +1 -1
  20. package/es/calendar/types.d.ts +25 -0
  21. package/es/cascader/Cascader.d.ts +1 -1
  22. package/es/cascader/index.css +1 -1
  23. package/es/cascader/index.d.ts +2 -2
  24. package/es/cascader/types.d.ts +21 -0
  25. package/es/cell/Cell.d.ts +24 -1
  26. package/es/cell/Cell.mjs +30 -5
  27. package/es/cell/index.css +1 -1
  28. package/es/cell/index.d.ts +15 -2
  29. package/es/cell/types.d.ts +24 -0
  30. package/es/cell-group/index.css +1 -1
  31. package/es/checkbox/Checkbox.d.ts +1 -1
  32. package/es/checkbox/Checker.mjs +6 -0
  33. package/es/checkbox/index.css +1 -1
  34. package/es/checkbox/index.d.ts +2 -2
  35. package/es/checkbox/types.d.ts +19 -0
  36. package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
  37. package/es/checkbox-group/index.css +1 -1
  38. package/es/checkbox-group/index.d.ts +1 -1
  39. package/es/collapse/Collapse.d.ts +1 -1
  40. package/es/collapse/index.d.ts +1 -1
  41. package/es/collapse-item/index.css +1 -1
  42. package/es/collapse-item/index.d.ts +1 -1
  43. package/es/collapse-item/types.d.ts +8 -0
  44. package/es/config-provider/index.d.ts +2 -1
  45. package/es/config-provider/types.d.ts +138 -0
  46. package/es/config-provider/types.mjs +0 -0
  47. package/es/date-time-picker/DateTimePicker.d.ts +3 -3
  48. package/es/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
  49. package/es/date-time-picker/index.css +1 -1
  50. package/es/date-time-picker/index.d.ts +3 -3
  51. package/es/date-time-picker/utils.d.ts +1 -1
  52. package/es/dialog/Dialog.d.ts +1 -1
  53. package/es/dialog/index.css +1 -1
  54. package/es/dialog/index.d.ts +2 -2
  55. package/es/dialog/types.d.ts +18 -0
  56. package/es/divider/index.css +1 -1
  57. package/es/divider/index.d.ts +1 -0
  58. package/es/divider/types.d.ts +8 -0
  59. package/es/divider/types.mjs +0 -0
  60. package/es/dropdown-item/DropdownItem.d.ts +1 -1
  61. package/es/dropdown-item/DropdownItem.mjs +1 -0
  62. package/es/dropdown-item/index.css +1 -1
  63. package/es/dropdown-item/index.d.ts +2 -2
  64. package/es/dropdown-item/types.d.ts +3 -0
  65. package/es/dropdown-menu/index.css +1 -1
  66. package/es/dropdown-menu/index.d.ts +1 -1
  67. package/es/dropdown-menu/types.d.ts +12 -0
  68. package/es/empty/Empty.mjs +5 -3
  69. package/es/empty/Images.d.ts +20 -9
  70. package/es/empty/Images.mjs +755 -563
  71. package/es/empty/index.css +1 -1
  72. package/es/empty/index.d.ts +1 -0
  73. package/es/empty/types.d.ts +8 -0
  74. package/es/empty/types.mjs +0 -0
  75. package/es/field/Field.d.ts +17 -2
  76. package/es/field/index.css +1 -1
  77. package/es/field/index.d.ts +13 -3
  78. package/es/field/types.d.ts +22 -0
  79. package/es/grid-item/index.css +1 -1
  80. package/es/grid-item/index.d.ts +1 -0
  81. package/es/grid-item/types.d.ts +7 -0
  82. package/es/grid-item/types.mjs +0 -0
  83. package/es/hierarchy-select/Breadcrumb.mjs +1 -1
  84. package/es/hierarchy-select/HierarchySelect.d.ts +13 -0
  85. package/es/hierarchy-select/HierarchySelect.mjs +133 -21
  86. package/es/hierarchy-select/index.css +1 -1
  87. package/es/hierarchy-select/index.d.ts +10 -1
  88. package/es/hierarchy-select/svg/SubIcon.d.ts +2 -1
  89. package/es/hierarchy-select/svg/SubIcon.mjs +10 -29
  90. package/es/hierarchy-select/types.d.ts +21 -0
  91. package/es/image/index.css +1 -1
  92. package/es/image/index.d.ts +1 -0
  93. package/es/image/types.d.ts +5 -0
  94. package/es/image/types.mjs +0 -0
  95. package/es/image-preview/ImagePreview.d.ts +1 -1
  96. package/es/image-preview/index.css +1 -1
  97. package/es/image-preview/index.d.ts +2 -2
  98. package/es/image-preview/types.d.ts +10 -0
  99. package/es/index-anchor/index.css +1 -1
  100. package/es/index-anchor/types.d.ts +1 -3
  101. package/es/index-bar/IndexBar.d.ts +26 -0
  102. package/es/index-bar/IndexBar.mjs +192 -50
  103. package/es/index-bar/index.css +1 -1
  104. package/es/index-bar/index.d.ts +18 -0
  105. package/es/index-bar/types.d.ts +5 -3
  106. package/es/index.d.ts +1 -1
  107. package/es/index.mjs +1 -1
  108. package/es/lazyload/vue-lazyload/index.d.ts +55 -55
  109. package/es/list/index.css +1 -1
  110. package/es/list/index.d.ts +1 -1
  111. package/es/list/types.d.ts +5 -0
  112. package/es/loading/index.css +1 -1
  113. package/es/loading/index.d.ts +1 -0
  114. package/es/loading/types.d.ts +6 -0
  115. package/es/loading/types.mjs +0 -0
  116. package/es/media-picker/index.css +1 -1
  117. package/es/media-picker/index.d.ts +1 -1
  118. package/es/media-picker/type.d.ts +12 -0
  119. package/es/media-player/index.css +1 -1
  120. package/es/multiple-picker/MultiplePicker.d.ts +3 -3
  121. package/es/multiple-picker/index.css +1 -1
  122. package/es/multiple-picker/index.d.ts +4 -3
  123. package/es/multiple-picker/types.d.ts +17 -0
  124. package/es/nav-bar/index.css +1 -1
  125. package/es/nav-bar/index.d.ts +1 -0
  126. package/es/nav-bar/types.d.ts +16 -0
  127. package/es/nav-bar/types.mjs +0 -0
  128. package/es/notice-bar/index.css +1 -1
  129. package/es/notice-bar/index.d.ts +1 -1
  130. package/es/notice-bar/types.d.ts +10 -0
  131. package/es/notify/index.css +1 -1
  132. package/es/notify/index.d.ts +1 -1
  133. package/es/notify/types.d.ts +8 -0
  134. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  135. package/es/number-keyboard/index.css +1 -1
  136. package/es/number-keyboard/index.d.ts +2 -1
  137. package/es/number-keyboard/types.d.ts +14 -0
  138. package/es/number-keyboard/types.mjs +0 -0
  139. package/es/overlay/index.d.ts +1 -0
  140. package/es/overlay/types.d.ts +4 -0
  141. package/es/overlay/types.mjs +0 -0
  142. package/es/password-input/index.css +1 -1
  143. package/es/password-input/index.d.ts +1 -0
  144. package/es/password-input/types.d.ts +15 -0
  145. package/es/password-input/types.mjs +0 -0
  146. package/es/picker/Picker.d.ts +6 -6
  147. package/es/picker/index.css +1 -1
  148. package/es/picker/index.d.ts +7 -7
  149. package/es/picker/types.d.ts +17 -0
  150. package/es/popover/Popover.mjs +1 -1
  151. package/es/popover/index.css +1 -1
  152. package/es/popover/index.d.ts +1 -1
  153. package/es/popover/types.d.ts +12 -0
  154. package/es/popup/index.css +1 -1
  155. package/es/popup/index.d.ts +1 -1
  156. package/es/popup/types.d.ts +8 -0
  157. package/es/pull-refresh/PullRefresh.d.ts +1 -1
  158. package/es/pull-refresh/index.css +1 -1
  159. package/es/pull-refresh/index.d.ts +2 -1
  160. package/es/pull-refresh/types.d.ts +6 -0
  161. package/es/pull-refresh/types.mjs +0 -0
  162. package/es/radio/index.css +1 -1
  163. package/es/radio/index.d.ts +1 -0
  164. package/es/radio/types.d.ts +18 -0
  165. package/es/radio/types.mjs +0 -0
  166. package/es/radio-group/RadioGroup.d.ts +1 -1
  167. package/es/radio-group/index.css +1 -1
  168. package/es/radio-group/index.d.ts +1 -1
  169. package/es/radio-picker/RadioPicker.d.ts +3 -3
  170. package/es/radio-picker/index.css +1 -1
  171. package/es/radio-picker/index.d.ts +4 -4
  172. package/es/radio-picker/types.d.ts +24 -0
  173. package/es/rate/Rate.d.ts +1 -1
  174. package/es/rate/index.css +1 -1
  175. package/es/rate/index.d.ts +2 -1
  176. package/es/rate/types.d.ts +6 -0
  177. package/es/rate/types.mjs +0 -0
  178. package/es/search/Search.d.ts +2 -2
  179. package/es/search/index.css +1 -1
  180. package/es/search/index.d.ts +3 -3
  181. package/es/search/types.d.ts +12 -0
  182. package/es/signature/index.css +1 -1
  183. package/es/signature/index.d.ts +1 -1
  184. package/es/signature/types.d.ts +9 -0
  185. package/es/skeleton/index.d.ts +1 -0
  186. package/es/skeleton/types.d.ts +9 -0
  187. package/es/skeleton/types.mjs +0 -0
  188. package/es/step/Step.mjs +2 -2
  189. package/es/step/index.css +1 -1
  190. package/es/step/index.d.ts +1 -0
  191. package/es/step/types.d.ts +6 -0
  192. package/es/step/types.mjs +0 -0
  193. package/es/stepper/Stepper.d.ts +1 -1
  194. package/es/stepper/index.css +1 -1
  195. package/es/stepper/index.d.ts +2 -1
  196. package/es/stepper/types.d.ts +17 -0
  197. package/es/stepper/types.mjs +0 -0
  198. package/es/steps/index.css +1 -1
  199. package/es/steps/index.d.ts +1 -0
  200. package/es/steps/types.d.ts +5 -0
  201. package/es/steps/types.mjs +0 -0
  202. package/es/sticky/index.d.ts +1 -0
  203. package/es/sticky/types.d.ts +3 -0
  204. package/es/sticky/types.mjs +0 -0
  205. package/es/style/base.css +1 -1
  206. package/es/style/css-variables.css +1 -1
  207. package/es/swipe/index.css +1 -1
  208. package/es/swipe/index.d.ts +1 -1
  209. package/es/swipe/types.d.ts +10 -0
  210. package/es/switch/Switch.d.ts +1 -1
  211. package/es/switch/index.css +1 -1
  212. package/es/switch/index.d.ts +2 -1
  213. package/es/switch/types.d.ts +18 -0
  214. package/es/switch/types.mjs +0 -0
  215. package/es/tabbar/Tabbar.d.ts +1 -1
  216. package/es/tabbar/index.d.ts +2 -1
  217. package/es/tabbar/types.d.ts +5 -0
  218. package/es/tabbar/types.mjs +0 -0
  219. package/es/tabbar-item/index.css +1 -1
  220. package/es/tabbar-item/index.d.ts +1 -0
  221. package/es/tabbar-item/types.d.ts +14 -0
  222. package/es/tabbar-item/types.mjs +0 -0
  223. package/es/table/index.css +1 -1
  224. package/es/table/index.d.ts +1 -0
  225. package/es/table/types.d.ts +10 -0
  226. package/es/tabs/index.css +1 -1
  227. package/es/tabs/index.d.ts +1 -1
  228. package/es/tabs/types.d.ts +17 -0
  229. package/es/tag/Tag.mjs +5 -4
  230. package/es/tag/index.css +1 -1
  231. package/es/tag/index.d.ts +1 -0
  232. package/es/tag/types.d.ts +17 -0
  233. package/es/tag/types.mjs +0 -0
  234. package/es/text-ellipsis/types.d.ts +1 -0
  235. package/es/time-picker/TimePicker.d.ts +3 -3
  236. package/es/time-picker/index.css +1 -1
  237. package/es/time-picker/index.d.ts +4 -3
  238. package/es/time-picker/types.d.ts +23 -0
  239. package/es/time-picker/types.mjs +0 -0
  240. package/es/timeline/index.css +1 -1
  241. package/es/timeline/index.d.ts +1 -0
  242. package/es/timeline/types.d.ts +9 -0
  243. package/es/timeline/types.mjs +0 -0
  244. package/es/toast/index.css +1 -1
  245. package/es/toast/index.d.ts +1 -1
  246. package/es/toast/types.d.ts +15 -0
  247. package/es/uploader/index.css +1 -1
  248. package/es/uploader/index.d.ts +1 -1
  249. package/es/uploader/types.d.ts +21 -0
  250. package/es/vue-sfc-shim.d.ts +6 -6
  251. package/es/vue-tsx-shim.d.ts +23 -23
  252. package/lib/action-sheet/index.css +1 -1
  253. package/lib/action-sheet/index.d.ts +1 -0
  254. package/lib/action-sheet/types.d.ts +14 -0
  255. package/lib/action-sheet/types.js +15 -0
  256. package/lib/avatar/index.css +1 -1
  257. package/lib/avatar/index.d.ts +1 -1
  258. package/lib/avatar/types.d.ts +10 -0
  259. package/lib/badge/index.css +1 -1
  260. package/lib/badge/index.d.ts +1 -0
  261. package/lib/badge/types.d.ts +15 -0
  262. package/lib/badge/types.js +15 -0
  263. package/lib/button/index.css +1 -1
  264. package/lib/button/index.d.ts +1 -1
  265. package/lib/button/types.d.ts +35 -0
  266. package/lib/calendar/CalendarDay.js +8 -1
  267. package/lib/calendar/CalendarHeader.js +2 -2
  268. package/lib/calendar/index.css +1 -1
  269. package/lib/calendar/index.d.ts +1 -1
  270. package/lib/calendar/types.d.ts +25 -0
  271. package/lib/cascader/Cascader.d.ts +1 -1
  272. package/lib/cascader/index.css +1 -1
  273. package/lib/cascader/index.d.ts +2 -2
  274. package/lib/cascader/types.d.ts +21 -0
  275. package/lib/cell/Cell.d.ts +24 -1
  276. package/lib/cell/Cell.js +28 -3
  277. package/lib/cell/index.css +1 -1
  278. package/lib/cell/index.d.ts +15 -2
  279. package/lib/cell/types.d.ts +24 -0
  280. package/lib/cell-group/index.css +1 -1
  281. package/lib/checkbox/Checkbox.d.ts +1 -1
  282. package/lib/checkbox/Checker.js +6 -0
  283. package/lib/checkbox/index.css +1 -1
  284. package/lib/checkbox/index.d.ts +2 -2
  285. package/lib/checkbox/types.d.ts +19 -0
  286. package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
  287. package/lib/checkbox-group/index.css +1 -1
  288. package/lib/checkbox-group/index.d.ts +1 -1
  289. package/lib/collapse/Collapse.d.ts +1 -1
  290. package/lib/collapse/index.d.ts +1 -1
  291. package/lib/collapse-item/index.css +1 -1
  292. package/lib/collapse-item/index.d.ts +1 -1
  293. package/lib/collapse-item/types.d.ts +8 -0
  294. package/lib/config-provider/index.d.ts +2 -1
  295. package/lib/config-provider/types.d.ts +138 -0
  296. package/lib/config-provider/types.js +15 -0
  297. package/lib/date-time-picker/DateTimePicker.d.ts +3 -3
  298. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
  299. package/lib/date-time-picker/index.css +1 -1
  300. package/lib/date-time-picker/index.d.ts +3 -3
  301. package/lib/date-time-picker/utils.d.ts +1 -1
  302. package/lib/dialog/Dialog.d.ts +1 -1
  303. package/lib/dialog/index.css +1 -1
  304. package/lib/dialog/index.d.ts +2 -2
  305. package/lib/dialog/types.d.ts +18 -0
  306. package/lib/divider/index.css +1 -1
  307. package/lib/divider/index.d.ts +1 -0
  308. package/lib/divider/types.d.ts +8 -0
  309. package/lib/divider/types.js +15 -0
  310. package/lib/dropdown-item/DropdownItem.d.ts +1 -1
  311. package/lib/dropdown-item/DropdownItem.js +1 -0
  312. package/lib/dropdown-item/index.css +1 -1
  313. package/lib/dropdown-item/index.d.ts +2 -2
  314. package/lib/dropdown-item/types.d.ts +3 -0
  315. package/lib/dropdown-menu/index.css +1 -1
  316. package/lib/dropdown-menu/index.d.ts +1 -1
  317. package/lib/dropdown-menu/types.d.ts +12 -0
  318. package/lib/empty/Empty.js +4 -2
  319. package/lib/empty/Images.d.ts +20 -9
  320. package/lib/empty/Images.js +755 -563
  321. package/lib/empty/index.css +1 -1
  322. package/lib/empty/index.d.ts +1 -0
  323. package/lib/empty/types.d.ts +8 -0
  324. package/lib/empty/types.js +15 -0
  325. package/lib/field/Field.d.ts +17 -2
  326. package/lib/field/index.css +1 -1
  327. package/lib/field/index.d.ts +13 -3
  328. package/lib/field/types.d.ts +22 -0
  329. package/lib/grid-item/index.css +1 -1
  330. package/lib/grid-item/index.d.ts +1 -0
  331. package/lib/grid-item/types.d.ts +7 -0
  332. package/lib/grid-item/types.js +15 -0
  333. package/lib/hierarchy-select/Breadcrumb.js +1 -1
  334. package/lib/hierarchy-select/HierarchySelect.d.ts +13 -0
  335. package/lib/hierarchy-select/HierarchySelect.js +132 -20
  336. package/lib/hierarchy-select/index.css +1 -1
  337. package/lib/hierarchy-select/index.d.ts +10 -1
  338. package/lib/hierarchy-select/svg/SubIcon.d.ts +2 -1
  339. package/lib/hierarchy-select/svg/SubIcon.js +9 -28
  340. package/lib/hierarchy-select/types.d.ts +21 -0
  341. package/lib/image/index.css +1 -1
  342. package/lib/image/index.d.ts +1 -0
  343. package/lib/image/types.d.ts +5 -0
  344. package/lib/image/types.js +15 -0
  345. package/lib/image-preview/ImagePreview.d.ts +1 -1
  346. package/lib/image-preview/index.css +1 -1
  347. package/lib/image-preview/index.d.ts +2 -2
  348. package/lib/image-preview/types.d.ts +10 -0
  349. package/lib/index-anchor/index.css +1 -1
  350. package/lib/index-anchor/types.d.ts +1 -3
  351. package/lib/index-bar/IndexBar.d.ts +26 -0
  352. package/lib/index-bar/IndexBar.js +191 -49
  353. package/lib/index-bar/index.css +1 -1
  354. package/lib/index-bar/index.d.ts +18 -0
  355. package/lib/index-bar/types.d.ts +5 -3
  356. package/lib/index.css +1 -1
  357. package/lib/index.d.ts +1 -1
  358. package/lib/index.js +1 -1
  359. package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
  360. package/lib/list/index.css +1 -1
  361. package/lib/list/index.d.ts +1 -1
  362. package/lib/list/types.d.ts +5 -0
  363. package/lib/loading/index.css +1 -1
  364. package/lib/loading/index.d.ts +1 -0
  365. package/lib/loading/types.d.ts +6 -0
  366. package/lib/loading/types.js +15 -0
  367. package/lib/media-picker/index.css +1 -1
  368. package/lib/media-picker/index.d.ts +1 -1
  369. package/lib/media-picker/type.d.ts +12 -0
  370. package/lib/media-player/index.css +1 -1
  371. package/lib/multiple-picker/MultiplePicker.d.ts +3 -3
  372. package/lib/multiple-picker/index.css +1 -1
  373. package/lib/multiple-picker/index.d.ts +4 -3
  374. package/lib/multiple-picker/types.d.ts +17 -0
  375. package/lib/nav-bar/index.css +1 -1
  376. package/lib/nav-bar/index.d.ts +1 -0
  377. package/lib/nav-bar/types.d.ts +16 -0
  378. package/lib/nav-bar/types.js +15 -0
  379. package/lib/notice-bar/index.css +1 -1
  380. package/lib/notice-bar/index.d.ts +1 -1
  381. package/lib/notice-bar/types.d.ts +10 -0
  382. package/lib/notify/index.css +1 -1
  383. package/lib/notify/index.d.ts +1 -1
  384. package/lib/notify/types.d.ts +8 -0
  385. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  386. package/lib/number-keyboard/index.css +1 -1
  387. package/lib/number-keyboard/index.d.ts +2 -1
  388. package/lib/number-keyboard/types.d.ts +14 -0
  389. package/lib/number-keyboard/types.js +15 -0
  390. package/lib/overlay/index.d.ts +1 -0
  391. package/lib/overlay/types.d.ts +4 -0
  392. package/lib/overlay/types.js +15 -0
  393. package/lib/password-input/index.css +1 -1
  394. package/lib/password-input/index.d.ts +1 -0
  395. package/lib/password-input/types.d.ts +15 -0
  396. package/lib/password-input/types.js +15 -0
  397. package/lib/picker/Picker.d.ts +6 -6
  398. package/lib/picker/index.css +1 -1
  399. package/lib/picker/index.d.ts +7 -7
  400. package/lib/picker/types.d.ts +17 -0
  401. package/lib/popover/Popover.js +1 -1
  402. package/lib/popover/index.css +1 -1
  403. package/lib/popover/index.d.ts +1 -1
  404. package/lib/popover/types.d.ts +12 -0
  405. package/lib/popup/index.css +1 -1
  406. package/lib/popup/index.d.ts +1 -1
  407. package/lib/popup/types.d.ts +8 -0
  408. package/lib/pull-refresh/PullRefresh.d.ts +1 -1
  409. package/lib/pull-refresh/index.css +1 -1
  410. package/lib/pull-refresh/index.d.ts +2 -1
  411. package/lib/pull-refresh/types.d.ts +6 -0
  412. package/lib/pull-refresh/types.js +15 -0
  413. package/lib/radio/index.css +1 -1
  414. package/lib/radio/index.d.ts +1 -0
  415. package/lib/radio/types.d.ts +18 -0
  416. package/lib/radio/types.js +15 -0
  417. package/lib/radio-group/RadioGroup.d.ts +1 -1
  418. package/lib/radio-group/index.css +1 -1
  419. package/lib/radio-group/index.d.ts +1 -1
  420. package/lib/radio-picker/RadioPicker.d.ts +3 -3
  421. package/lib/radio-picker/index.css +1 -1
  422. package/lib/radio-picker/index.d.ts +4 -4
  423. package/lib/radio-picker/types.d.ts +24 -0
  424. package/lib/rate/Rate.d.ts +1 -1
  425. package/lib/rate/index.css +1 -1
  426. package/lib/rate/index.d.ts +2 -1
  427. package/lib/rate/types.d.ts +6 -0
  428. package/lib/rate/types.js +15 -0
  429. package/lib/search/Search.d.ts +2 -2
  430. package/lib/search/index.css +1 -1
  431. package/lib/search/index.d.ts +3 -3
  432. package/lib/search/types.d.ts +12 -0
  433. package/lib/signature/index.css +1 -1
  434. package/lib/signature/index.d.ts +1 -1
  435. package/lib/signature/types.d.ts +9 -0
  436. package/lib/skeleton/index.d.ts +1 -0
  437. package/lib/skeleton/types.d.ts +9 -0
  438. package/lib/skeleton/types.js +15 -0
  439. package/lib/step/Step.js +2 -2
  440. package/lib/step/index.css +1 -1
  441. package/lib/step/index.d.ts +1 -0
  442. package/lib/step/types.d.ts +6 -0
  443. package/lib/step/types.js +15 -0
  444. package/lib/stepper/Stepper.d.ts +1 -1
  445. package/lib/stepper/index.css +1 -1
  446. package/lib/stepper/index.d.ts +2 -1
  447. package/lib/stepper/types.d.ts +17 -0
  448. package/lib/stepper/types.js +15 -0
  449. package/lib/steps/index.css +1 -1
  450. package/lib/steps/index.d.ts +1 -0
  451. package/lib/steps/types.d.ts +5 -0
  452. package/lib/steps/types.js +15 -0
  453. package/lib/sticky/index.d.ts +1 -0
  454. package/lib/sticky/types.d.ts +3 -0
  455. package/lib/sticky/types.js +15 -0
  456. package/lib/style/base.css +1 -1
  457. package/lib/style/css-variables.css +1 -1
  458. package/lib/swipe/index.css +1 -1
  459. package/lib/swipe/index.d.ts +1 -1
  460. package/lib/swipe/types.d.ts +10 -0
  461. package/lib/switch/Switch.d.ts +1 -1
  462. package/lib/switch/index.css +1 -1
  463. package/lib/switch/index.d.ts +2 -1
  464. package/lib/switch/types.d.ts +18 -0
  465. package/lib/switch/types.js +15 -0
  466. package/lib/tabbar/Tabbar.d.ts +1 -1
  467. package/lib/tabbar/index.d.ts +2 -1
  468. package/lib/tabbar/types.d.ts +5 -0
  469. package/lib/tabbar/types.js +15 -0
  470. package/lib/tabbar-item/index.css +1 -1
  471. package/lib/tabbar-item/index.d.ts +1 -0
  472. package/lib/tabbar-item/types.d.ts +14 -0
  473. package/lib/tabbar-item/types.js +15 -0
  474. package/lib/table/index.css +1 -1
  475. package/lib/table/index.d.ts +1 -0
  476. package/lib/table/types.d.ts +10 -0
  477. package/lib/tabs/index.css +1 -1
  478. package/lib/tabs/index.d.ts +1 -1
  479. package/lib/tabs/types.d.ts +17 -0
  480. package/lib/tag/Tag.js +5 -4
  481. package/lib/tag/index.css +1 -1
  482. package/lib/tag/index.d.ts +1 -0
  483. package/lib/tag/types.d.ts +17 -0
  484. package/lib/tag/types.js +15 -0
  485. package/lib/text-ellipsis/types.d.ts +1 -0
  486. package/lib/time-picker/TimePicker.d.ts +3 -3
  487. package/lib/time-picker/index.css +1 -1
  488. package/lib/time-picker/index.d.ts +4 -3
  489. package/lib/time-picker/types.d.ts +23 -0
  490. package/lib/time-picker/types.js +15 -0
  491. package/lib/timeline/index.css +1 -1
  492. package/lib/timeline/index.d.ts +1 -0
  493. package/lib/timeline/types.d.ts +9 -0
  494. package/lib/timeline/types.js +15 -0
  495. package/lib/toast/index.css +1 -1
  496. package/lib/toast/index.d.ts +1 -1
  497. package/lib/toast/types.d.ts +15 -0
  498. package/lib/uploader/index.css +1 -1
  499. package/lib/uploader/index.d.ts +1 -1
  500. package/lib/uploader/types.d.ts +21 -0
  501. package/lib/vue-sfc-shim.d.ts +6 -6
  502. package/lib/vue-tsx-shim.d.ts +23 -23
  503. package/lib/web-types.json +1 -1
  504. package/lib/zartui.cjs.js +1156 -693
  505. package/lib/zartui.es.js +1156 -693
  506. package/lib/zartui.js +1156 -693
  507. package/lib/zartui.min.js +1 -1
  508. package/package.json +5 -4
@@ -28,11 +28,16 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
28
28
  type: import("vue").PropType<boolean | null>;
29
29
  default: null;
30
30
  };
31
+ clearable: BooleanConstructor;
32
+ clearIcon: {
33
+ type: import("vue").PropType<string>;
34
+ default: string;
35
+ };
31
36
  } & {
32
37
  to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
33
38
  url: StringConstructor;
34
39
  replace: BooleanConstructor;
35
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
40
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "click")[], "clear" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
41
  leftIcon: StringConstructor;
37
42
  titleIcon: StringConstructor;
38
43
  title: (NumberConstructor | StringConstructor)[];
@@ -62,12 +67,18 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
62
67
  type: import("vue").PropType<boolean | null>;
63
68
  default: null;
64
69
  };
70
+ clearable: BooleanConstructor;
71
+ clearIcon: {
72
+ type: import("vue").PropType<string>;
73
+ default: string;
74
+ };
65
75
  } & {
66
76
  to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
67
77
  url: StringConstructor;
68
78
  replace: BooleanConstructor;
69
79
  }>> & {
70
80
  onClick?: ((...args: any[]) => any) | undefined;
81
+ onClear?: ((...args: any[]) => any) | undefined;
71
82
  }, {
72
83
  replace: boolean;
73
84
  value: string;
@@ -77,10 +88,12 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
77
88
  isLink: boolean;
78
89
  required: boolean;
79
90
  clickable: boolean | null;
91
+ clearable: boolean;
92
+ clearIcon: string;
80
93
  }, {}>>;
81
94
  export default Cell;
82
95
  export type { CellProps, CellArrowDirection } from './Cell';
83
- export type { CellDirection } from './types';
96
+ export type { CellDirection, CellThemeVars } from './types';
84
97
  declare module 'vue' {
85
98
  interface GlobalComponents {
86
99
  ZtCell: typeof Cell;
@@ -1 +1,25 @@
1
1
  export type CellDirection = 'horizontal' | 'vertical';
2
+ export type CellThemeVars = {
3
+ cellTextColor?: string;
4
+ cellBorderColor?: string;
5
+ cellActiveColor?: string;
6
+ cellRequiredColor?: string;
7
+ cellLabelColor?: string;
8
+ cellRightIconColor?: string;
9
+ cellVerticalBackground?: string;
10
+ cellHorizontalBackground?: string;
11
+ cellBackground?: string;
12
+ cellValuePadding?: string;
13
+ cellValueRadius?: string;
14
+ cellDirection?: string;
15
+ cellPadding?: string;
16
+ cellRowTitleMaxWidth?: string;
17
+ cellGroupBackground?: string;
18
+ cellGroupTitleColor?: string;
19
+ cellGroupTitlePadding?: string;
20
+ cellGroupInsetPadding?: string;
21
+ cellGroupInsetRadius?: string;
22
+ cellGroupInsetTitlePadding?: string;
23
+ cellLeftIconFontSize?: string;
24
+ cellLeftIconSize?: string;
25
+ };
@@ -1 +1 @@
1
- :root{--zt-cell-group-background: var(--zt-background-2);--zt-cell-group-title-color: var(--zt-text-color-2);--zt-cell-group-title-padding: var(--zt-padding-md) var(--zt-padding-md);--zt-cell-group-title-font-size: var(--zt-font-size-md);--zt-cell-group-title-line-height: 16px;--zt-cell-group-inset-padding: 0 var(--zt-padding-md);--zt-cell-group-inset-radius: var(--zt-radius-lg);--zt-cell-group-inset-title-padding: var(--zt-padding-md) var(--zt-padding-md)}.zt-cell-group{background:var(--zt-cell-group-background)}.zt-cell-group--inset{margin:var(--zt-cell-group-inset-padding);border-radius:var(--zt-cell-group-inset-radius);overflow:hidden}.zt-cell-group__title{padding:var(--zt-cell-group-title-padding);color:var(--zt-cell-group-title-color);font-size:var(--zt-cell-group-title-font-size);line-height:var(--zt-cell-group-title-line-height)}.zt-cell-group__title--inset{padding:var(--zt-cell-group-inset-title-padding)}
1
+ :root{--zt-cell-group-background: var(--zt-background-2);--zt-cell-group-title-color: var(--zt-text-color-2);--zt-cell-group-title-padding: var(--zt-padding-md) var(--zt-padding-md);--zt-cell-group-inset-padding: 0 var(--zt-padding-md);--zt-cell-group-inset-radius: var(--zt-radius-lg);--zt-cell-group-inset-title-padding: var(--zt-padding-md) var(--zt-padding-md)}.zt-cell-group{background:var(--zt-cell-group-background)}.zt-cell-group--inset{margin:var(--zt-cell-group-inset-padding);border-radius:var(--zt-cell-group-inset-radius);overflow:hidden}.zt-cell-group__title{padding:var(--zt-cell-group-title-padding);color:var(--zt-cell-group-title-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-xs)}.zt-cell-group__title--inset{padding:var(--zt-cell-group-inset-title-padding)}
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
44
44
  type: PropType<boolean | null>;
45
45
  default: null;
46
46
  };
47
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
47
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
48
48
  name: PropType<unknown>;
49
49
  shape: {
50
50
  type: PropType<import("./Checker").CheckerShape>;
@@ -78,6 +78,12 @@ var stdin_default = defineComponent({
78
78
  }, [slots.icon ? slots.icon({
79
79
  checked,
80
80
  disabled: disabled.value
81
+ }) : props.role === "radio" ? _createVNode(Icon, {
82
+ "style": iconStyle.value
83
+ }, {
84
+ default: () => [checked ? _createVNode("div", {
85
+ "class": bem("dot")
86
+ }, null) : ""]
81
87
  }) : _createVNode(Icon, {
82
88
  "name": indeterminate ? "minus" : "checkbox-select",
83
89
  "style": iconStyle.value
@@ -1 +1 @@
1
- :root{--zt-checkbox-size: 16px;--zt-checkbox-padding: 12px 0;--zt-checkbox-border-color: var(--zt-gray-a1);--zt-checkbox-duration: var(--zt-duration-fast);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray-a1);--zt-checkbox-round-icon-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-round-icon-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-checkbox-label-margin: var(--zt-padding-xs);--zt-checkbox-label-color: var(--zt-text-color);--zt-checkbox-label-font-size: var(--zt-font-size-md);--zt-checkbox-checked-icon-color: var(--zt-primary-color);--zt-checkbox-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-checkbox-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-checkbox-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-disabled-icon-border: 1px solid var(--zt-gray-a08);--zt-checkbox-disabled-label-color: var(--zt-gray-a2);--zt-checkbox-disabled-background: var(--zt-border-color);--zt-checkbox-disabled-checked-icon-opacity: var(--zt-disabled-opacity);--zt-checkbox-disabled-icon-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%)}.zt-checkbox{position:relative;display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:var(--zt-checkbox-padding)}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-right:var(--zt-padding-sm)}.zt-checkbox__icon{font-size:var(--zt-checkbox-size);cursor:pointer;box-sizing:border-box}.zt-checkbox__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-checkbox-border-color);transition-duration:var(--zt-checkbox-duration);transition-property:color,border-color,background-color}.zt-checkbox__icon--round .zt-icon{border-radius:100%;border:var(--zt-checkbox-round-icon-border);box-shadow:var(--zt-checkbox-round-icon-box-shadow);background:var(--zt-checkbox-round-icon-background)}.zt-checkbox__icon--indeterminate .zt-icon,.zt-checkbox__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-checkbox-checked-icon-color);box-shadow:var(--zt-checkbox-checked-icon-shadow);border:var(--zt-checkbox-checked-icon-border)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:var(--zt-checkbox-disabled-icon-border);box-shadow:var(--zt-checkbox-disabled-icon-shadow);background:var(--zt-checkbox-disabled-icon-background)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:var(--zt-checkbox-disabled-checked-icon-opacity);background:var(--zt-blue);color:var(--zt-white)}.zt-checkbox__label{margin-left:var(--zt-checkbox-label-margin);color:var(--zt-checkbox-label-color);font-size:var(--zt-checkbox-label-font-size)}.zt-checkbox__label--left{margin:0 var(--zt-checkbox-label-margin) 0 0}.zt-checkbox__label--disabled{color:var(--zt-checkbox-disabled-label-color)}.zt-theme-dark{--zt-checkbox-round-icon-box-shadow: none;--zt-checkbox-disabled-icon-shadow: none;--zt-checkbox-round-icon-background: rgba(255, 255, 255, .04);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray);--zt-checkbox-disabled-icon-background: var(--zt-gray-a2)}
1
+ :root{--zt-checkbox-padding: 12px 0;--zt-checkbox-border-color: var(--zt-gray-a1);--zt-checkbox-duration: var(--zt-duration-fast);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray-a1);--zt-checkbox-round-icon-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-round-icon-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-checkbox-label-margin: var(--zt-padding-xs);--zt-checkbox-label-color: var(--zt-text-color);--zt-checkbox-checked-icon-color: var(--zt-primary-color);--zt-checkbox-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-checkbox-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-checkbox-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-disabled-icon-border: 1px solid var(--zt-gray-a08);--zt-checkbox-disabled-label-color: var(--zt-gray-a2);--zt-checkbox-disabled-checked-icon-opacity: var(--zt-disabled-opacity);--zt-checkbox-disabled-icon-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%)}.zt-checkbox{position:relative;display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:var(--zt-checkbox-padding)}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-right:var(--zt-padding-sm)}.zt-checkbox__icon{font-size:var(--zt-font-size-lg);cursor:pointer;box-sizing:border-box}.zt-checkbox__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-checkbox-border-color);transition-duration:var(--zt-checkbox-duration);transition-property:color,border-color,background-color}.zt-checkbox__icon--round .zt-icon{border-radius:100%;border:var(--zt-checkbox-round-icon-border);box-shadow:var(--zt-checkbox-round-icon-box-shadow);background:var(--zt-checkbox-round-icon-background)}.zt-checkbox__icon--indeterminate .zt-icon,.zt-checkbox__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-checkbox-checked-icon-color);box-shadow:var(--zt-checkbox-checked-icon-shadow);border:var(--zt-checkbox-checked-icon-border)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:var(--zt-checkbox-disabled-icon-border);box-shadow:var(--zt-checkbox-disabled-icon-shadow);background:var(--zt-checkbox-disabled-icon-background)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:var(--zt-checkbox-disabled-checked-icon-opacity);background:var(--zt-checkbox-checked-icon-color);color:var(--zt-white)}.zt-checkbox__label{margin-left:var(--zt-checkbox-label-margin);color:var(--zt-checkbox-label-color);font-size:var(--zt-font-size-md)}.zt-checkbox__label--left{margin:0 var(--zt-checkbox-label-margin) 0 0}.zt-checkbox__label--disabled{color:var(--zt-checkbox-disabled-label-color)}.zt-theme-dark{--zt-checkbox-round-icon-box-shadow: none;--zt-checkbox-disabled-icon-shadow: none;--zt-checkbox-round-icon-background: rgba(255, 255, 255, .04);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray);--zt-checkbox-disabled-icon-background: var(--zt-gray-a2)}
@@ -19,7 +19,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
19
19
  type: import("vue").PropType<boolean | null>;
20
20
  default: null;
21
21
  };
22
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
23
  name: import("vue").PropType<unknown>;
24
24
  shape: {
25
25
  type: import("vue").PropType<import("./Checker").CheckerShape>;
@@ -52,7 +52,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
52
52
  }, {}>>;
53
53
  export default Checkbox;
54
54
  export type { CheckboxProps } from './Checkbox';
55
- export type { CheckboxShape, CheckboxInstance, CheckboxLabelPosition, } from './types';
55
+ export type { CheckboxShape, CheckboxInstance, CheckboxLabelPosition, CheckboxThemeVars, } from './types';
56
56
  declare module 'vue' {
57
57
  interface GlobalComponents {
58
58
  ZtCheckbox: typeof Checkbox;
@@ -11,3 +11,22 @@ export type CheckboxExpose = {
11
11
  checked: ComputedRef<boolean>;
12
12
  };
13
13
  export type CheckboxInstance = ComponentPublicInstance<CheckboxProps, CheckboxExpose>;
14
+ export type CheckboxThemeVars = {
15
+ checkboxPadding?: string;
16
+ checkboxBorderColor?: string;
17
+ checkboxDuration?: string;
18
+ checkboxRoundIconBorder?: string;
19
+ checkboxRoundIconBoxShadow?: string;
20
+ checkboxRoundIconBackground?: string;
21
+ checkboxLabelMargin?: string;
22
+ checkboxLabelColor?: string;
23
+ checkboxCheckedIconColor?: string;
24
+ checkboxCheckedIconShadow?: string;
25
+ checkboxCheckedIconBorder?: string;
26
+ checkboxDisabledIconShadow?: string;
27
+ checkboxDisabledIconBorder?: string;
28
+ checkboxDisabledIconColor?: string;
29
+ checkboxDisabledLabelColor?: string;
30
+ checkboxDisabledCheckedIconOpacity?: string;
31
+ checkboxDisabledIconBackground?: string;
32
+ };
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  default: () => unknown[];
31
31
  };
32
32
  checkedColor: StringConstructor;
33
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
33
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
34
34
  max: (NumberConstructor | StringConstructor)[];
35
35
  disabled: BooleanConstructor;
36
36
  iconSize: (NumberConstructor | StringConstructor)[];
@@ -1 +1 @@
1
- .zt-checkbox-group--horizontal{display:flex;flex-wrap:wrap}.zt-checkbox-group--vertical .zt-checkbox:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:calc(var(--zt-checkbox-size) + var(--zt-checkbox-label-margin));border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-checkbox-group--vertical .zt-checkbox:last-child:after{display:none}
1
+ .zt-checkbox-group--horizontal{display:flex;flex-wrap:wrap}.zt-checkbox-group--vertical .zt-checkbox:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:calc(var(--zt-font-size-lg) + var(--zt-checkbox-label-margin));border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-checkbox-group--vertical .zt-checkbox:last-child:after{display:none}
@@ -11,7 +11,7 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
11
11
  default: () => unknown[];
12
12
  };
13
13
  checkedColor: StringConstructor;
14
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  max: (NumberConstructor | StringConstructor)[];
16
16
  disabled: BooleanConstructor;
17
17
  iconSize: (NumberConstructor | StringConstructor)[];
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
34
34
  type: PropType<Numeric | Numeric[]>;
35
35
  default: string;
36
36
  };
37
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
37
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
38
38
  border: {
39
39
  type: BooleanConstructor;
40
40
  default: true;
@@ -8,7 +8,7 @@ export declare const Collapse: import("../utils").WithInstall<import("vue").Defi
8
8
  type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
9
9
  default: string;
10
10
  };
11
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
12
  border: {
13
13
  type: BooleanConstructor;
14
14
  default: true;
@@ -1 +1 @@
1
- :root{--zt-collapse-item-duration: var(--zt-duration-base);--zt-collapse-item-content-padding: var(--zt-padding-sm) var(--zt-padding-md);--zt-collapse-item-content-font-size: var(--zt-font-size-md);--zt-collapse-item-content-line-height: 20px;--zt-collapse-item-content-text-color: var(--zt-text-color);--zt-collapse-item-content-background: var(--zt-background);--zt-collapse-item-title-padding: 10px 16px;--zt-collapse-item-title-line-height: 24px;--zt-collapse-item-title-font-size: 16px}.zt-collapse-item{-webkit-user-select:none;user-select:none}.zt-collapse-item__title{position:relative;display:flex;align-items:center;background-color:var(--zt-background);padding:var(--zt-collapse-item-title-padding)}.zt-collapse-item__bar{position:absolute;left:0;width:4px;height:16px;background:var(--zt-blue)}.zt-collapse-item__bar--custom{background:var(--zt-white)}.zt-collapse-item__icon{font-size:var(--zt-collapse-item-title-line-height);color:var(--zt-gray-a4);transition:transform var(--zt-collapse-item-duration)}.zt-collapse-item__icon--expanded{color:var(--zt-blue);transform:rotate(-180deg)}.zt-collapse-item__icon--custom{color:var(--zt-white)}.zt-collapse-item__text{flex:1;font-weight:600;font-size:var(--zt-collapse-item-title-font-size);color:var(--zt-text-color);line-height:var(--zt-collapse-item-title-line-height)}.zt-collapse-item__text--custom{color:var(--zt-white)}.zt-collapse-item__text--disabled{cursor:not-allowed}.zt-collapse-item__wrapper{overflow:hidden;transition:height var(--zt-collapse-item-duration) ease-in-out;will-change:height}.zt-collapse-item__content{color:var(--zt-collapse-item-content-text-color);font-size:var(--zt-collapse-item-content-font-size);line-height:var(--zt-collapse-item-content-line-height);background:var(--zt-collapse-item-content-background)}
1
+ :root{--zt-collapse-item-duration: var(--zt-duration-base);--zt-collapse-item-content-padding: var(--zt-padding-sm) var(--zt-padding-md);--zt-collapse-item-content-text-color: var(--zt-text-color);--zt-collapse-item-content-background: var(--zt-background);--zt-collapse-item-title-padding: 10px 16px;--zt-collapse-item-icon-font-size: 24px}:root[zt-theme-size=large]{--zt-collapse-item-icon-font-size: 30px}.zt-collapse-item{-webkit-user-select:none;user-select:none}.zt-collapse-item__title{position:relative;display:flex;align-items:center;background-color:var(--zt-background);padding:var(--zt-collapse-item-title-padding)}.zt-collapse-item__bar{position:absolute;left:0;width:4px;height:16px;background:var(--zt-primary-color)}.zt-collapse-item__bar--custom{background:var(--zt-white)}.zt-collapse-item__icon{font-size:var(--zt-collapse-item-icon-font-size);color:var(--zt-gray-a4);transition:transform var(--zt-collapse-item-duration)}.zt-collapse-item__icon--expanded{color:var(--zt-primary-color);transform:rotate(-180deg)}.zt-collapse-item__icon--custom{color:var(--zt-white)}.zt-collapse-item__text{flex:1;font-weight:600;font-size:var(--zt-font-size-lg);color:var(--zt-text-color);line-height:var(--zt-line-height-xl)}.zt-collapse-item__text--custom{color:var(--zt-white)}.zt-collapse-item__text--disabled{cursor:not-allowed}.zt-collapse-item__wrapper{overflow:hidden;transition:height var(--zt-collapse-item-duration) ease-in-out;will-change:height}.zt-collapse-item__content{color:var(--zt-collapse-item-content-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);background:var(--zt-collapse-item-content-background)}
@@ -22,7 +22,7 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
22
22
  export default CollapseItem;
23
23
  export { collapseItemProps } from './CollapseItem';
24
24
  export type { CollapseItemProps } from './CollapseItem';
25
- export type { CollapseItemInstance } from './types';
25
+ export type { CollapseItemInstance, CollapseItemThemeVars } from './types';
26
26
  declare module 'vue' {
27
27
  interface GlobalComponents {
28
28
  ZtCollapseItem: typeof CollapseItem;
@@ -4,3 +4,11 @@ export type CollapseItemExpose = {
4
4
  toggle: (newValue?: boolean) => void;
5
5
  };
6
6
  export type CollapseItemInstance = ComponentPublicInstance<CollapseItemProps, CollapseItemExpose>;
7
+ export type CollapseItemThemeVars = {
8
+ collapseItemDuration?: string;
9
+ collapseItemContentPadding?: string;
10
+ collapseItemContentTextColor?: string;
11
+ collapseItemContentBackground?: string;
12
+ collapseItemTitlePadding?: string;
13
+ collapseItemIconFontSize?: string;
14
+ };
@@ -40,7 +40,8 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
40
40
  themeVarsScope: import("./ConfigProvider").ConfigProviderThemeVarsScope;
41
41
  }, {}>>;
42
42
  export default ConfigProvider;
43
- export type { ConfigProviderProps, ConfigProviderTheme, } from './ConfigProvider';
43
+ export type { ConfigProviderProps, ConfigProviderTheme, ConfigProviderThemeVarsScope, } from './ConfigProvider';
44
+ export type { ConfigProviderThemeVars } from './types';
44
45
  declare module 'vue' {
45
46
  interface GlobalComponents {
46
47
  ZtConfigProvider: typeof ConfigProvider;
@@ -0,0 +1,138 @@
1
+ export type BaseThemeVars = {
2
+ greenR?: string;
3
+ greenG?: string;
4
+ greenB?: string;
5
+ greenRgb?: string;
6
+ deepGreenR?: string;
7
+ deepGreenG?: string;
8
+ deepGreenB?: string;
9
+ deepGreenRgb?: string;
10
+ orangeR?: string;
11
+ orangeG?: string;
12
+ orangeB?: string;
13
+ orangeRgb?: string;
14
+ yellowR?: string;
15
+ yellowG?: string;
16
+ yellowB?: string;
17
+ yellowRgb?: string;
18
+ blueR?: string;
19
+ blueG?: string;
20
+ blueB?: string;
21
+ blueRgb?: string;
22
+ grayR?: string;
23
+ grayG?: string;
24
+ grayB?: string;
25
+ grayRgb?: string;
26
+ redR?: string;
27
+ redG?: string;
28
+ redB?: string;
29
+ redRgb?: string;
30
+ primaryColorR?: string;
31
+ primaryColorG?: string;
32
+ primaryColorB?: string;
33
+ primaryColorRgb?: string;
34
+ black?: string;
35
+ white?: string;
36
+ gray?: string;
37
+ grayA04?: string;
38
+ grayA06?: string;
39
+ grayA08?: string;
40
+ grayA1?: string;
41
+ grayA2?: string;
42
+ grayA4?: string;
43
+ grayA6?: string;
44
+ grayA8?: string;
45
+ red?: string;
46
+ blue?: string;
47
+ orange?: string;
48
+ orange2?: string;
49
+ green?: string;
50
+ yellow?: string;
51
+ textColorRgb?: string;
52
+ primaryColor?: string;
53
+ primaryColorLight?: string;
54
+ primaryColorA1?: string;
55
+ primaryColorA2?: string;
56
+ primaryColorA6?: string;
57
+ successColor?: string;
58
+ dangerColor?: string;
59
+ warningColor?: string;
60
+ textColor?: string;
61
+ textColor2?: string;
62
+ textColor3?: string;
63
+ placeholderColor?: string;
64
+ activeColor?: string;
65
+ activeOpacity?: number;
66
+ disabledOpacity?: number;
67
+ background?: string;
68
+ background2?: string;
69
+ background3?: string;
70
+ background4?: string;
71
+ background5?: string;
72
+ backgroundCard?: string;
73
+ paddingXxs?: string;
74
+ paddingBase?: string;
75
+ paddingXs?: string;
76
+ paddingSm?: string;
77
+ paddingMd?: string;
78
+ paddingLg?: string;
79
+ paddingXl?: string;
80
+ fontBold?: number;
81
+ fontSizeXs?: string;
82
+ fontSizeSm?: string;
83
+ fontSizeMd?: string;
84
+ fontSizeLg?: string;
85
+ fontSizeGt?: string;
86
+ fontSize1?: string;
87
+ fontSize2?: string;
88
+ fontSize3?: string;
89
+ fontSize4?: string;
90
+ fontSize5?: string;
91
+ fontSize6?: string;
92
+ fontSize7?: string;
93
+ fontSize8?: string;
94
+ fontSize9?: string;
95
+ fontSize10?: string;
96
+ fontSize11?: string;
97
+ fontSize12?: string;
98
+ fontSize13?: string;
99
+ fontSize14?: string;
100
+ fontSize15?: string;
101
+ lineHeightXs?: string;
102
+ lineHeightSm?: string;
103
+ lineHeightMd?: string;
104
+ lineHeightLg?: string;
105
+ lineHeight1?: string;
106
+ lineHeight2?: string;
107
+ lineHeight3?: string;
108
+ lineHeight4?: string;
109
+ lineHeight5?: string;
110
+ lineHeight6?: string;
111
+ lineHeight7?: string;
112
+ lineHeight8?: string;
113
+ lineHeight9?: string;
114
+ lineHeight10?: string;
115
+ lineHeight11?: string;
116
+ lineHeight12?: string;
117
+ lineHeight13?: string;
118
+ lineHeight14?: string;
119
+ lineHeight15?: string;
120
+ lineHeight16?: string;
121
+ lineHeight17?: string;
122
+ lineHeight18?: string;
123
+ lineHeight19?: string;
124
+ baseFont?: string;
125
+ priceFont?: string;
126
+ durationBase?: string;
127
+ durationFast?: string;
128
+ easeOut?: string;
129
+ easeIn?: string;
130
+ borderColor?: string;
131
+ borderWidth?: string;
132
+ radiusSm?: string;
133
+ radiusMd?: string;
134
+ radiusLg?: string;
135
+ radiusGt?: string;
136
+ radiusMax?: string;
137
+ };
138
+ export type ConfigProviderThemeVars = BaseThemeVars & import('../action-sheet').ActionSheetThemeVars & import('../avatar').AvatarThemeVars & import('../badge').BadgeThemeVars & import('../button').ButtonThemeVars & import('../calendar').CalendarThemeVars & import('../cascader').CascaderThemeVars & import('../cell').CellThemeVars & import('../checkbox').CheckboxThemeVars & import('../collapse-item').CollapseItemThemeVars & import('../dialog').DialogThemeVars & import('../divider').DividerThemeVars & import('../dropdown-item').DropdownItemThemeVars & import('../dropdown-menu').DropdownMenuThemeVars & import('../empty').EmptyThemeVars & import('../field').FieldThemeVars & import('../grid-item').GridItemThemeVars & import('../hierarchy-select').HierarchySelectThemeVars & import('../image').ImageThemeVars & import('../image-preview').ImagePreviewThemeVars & import('../index-anchor').IndexAnchorThemeVars & import('../index-bar').IndexBarThemeVars & import('../list').ListThemeVars & import('../loading').LoadingThemeVars & import('../media-picker').MediaPickerThemeVars & import('../multiple-picker').MultiplePickerThemeVars & import('../nav-bar').NavBarThemeVars & import('../notice-bar').NoticeBarThemeVars & import('../notify').NotifyThemeVars & import('../number-keyboard').NumberKeyboardThemeVars & import('../overlay').OverlayThemeVars & import('../password-input').PasswordInputThemeVars & import('../picker').PickerThemeVars & import('../popover').PopoverThemeVars & import('../popup').PopupThemeVars & import('../pull-refresh').PullRefreshThemeVars & import('../radio').RadioThemeVars & import('../radio-picker').RadioPickerThemeVars & import('../rate').RateThemeVars & import('../search').SearchThemeVars & import('../signature').SignatureThemeVars & import('../skeleton').SkeletonThemeVars & import('../step').StepThemeVars & import('../stepper').StepperThemeVars & import('../steps').StepsThemeVars & import('../sticky').StickyThemeVars & import('../swipe').SwipeThemeVars & import('../switch').SwitchThemeVars & import('../tabbar').TabbarThemeVars & import('../tabbar-item').TabbarItemThemeVars & import('../table').TableThemeVars & import('../tabs').TabsThemeVars & import('../tag').TagThemeVars & import('../text-ellipsis').TextEllipsisThemeVars & import('../time-picker').TimePickerThemeVars & import('../timeline').TimelineThemeVars & import('../toast').ToastThemeVars & import('../uploader').UploaderThemeVars;
File without changes
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
102
102
  type: import("vue").PropType<string[]>;
103
103
  default: () => string[];
104
104
  };
105
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue")[], "update:modelValue" | "cancel" | "change" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
105
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "update:modelValue" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue")[], "cancel" | "change" | "update:modelValue" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
106
106
  loading: BooleanConstructor;
107
107
  readonly: BooleanConstructor;
108
108
  allowHtml: BooleanConstructor;
@@ -230,9 +230,9 @@ declare const _default: import("vue").DefineComponent<{
230
230
  minDate: Date;
231
231
  maxDate: Date;
232
232
  allowHtml: boolean;
233
- optionHeight: string | number;
234
- showToolbar: boolean;
235
233
  swipeDuration: string | number;
234
+ showToolbar: boolean;
235
+ optionHeight: string | number;
236
236
  visibleOptionNum: string | number;
237
237
  columnsUnit: string[];
238
238
  columnsType: DateTimePickerColumnType[];
@@ -201,7 +201,7 @@ declare const _default: import("vue").DefineComponent<{
201
201
  type: PropType<string[]>;
202
202
  default: () => string[];
203
203
  };
204
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
204
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
205
205
  loading: BooleanConstructor;
206
206
  readonly: BooleanConstructor;
207
207
  allowHtml: BooleanConstructor;
@@ -322,9 +322,9 @@ declare const _default: import("vue").DefineComponent<{
322
322
  minDate: Date;
323
323
  maxDate: Date;
324
324
  allowHtml: boolean;
325
- optionHeight: string | number;
326
- showToolbar: boolean;
327
325
  swipeDuration: string | number;
326
+ showToolbar: boolean;
327
+ optionHeight: string | number;
328
328
  visibleOptionNum: string | number;
329
329
  columnsUnit: string[];
330
330
  columnsType: DateTimePickerColumnType[];
@@ -1 +1 @@
1
- .zt-date-time-picker__title-bar{display:flex;flex-direction:column;align-items:center;padding:12px;flex:1;color:var(--zt-text-color)}.zt-date-time-picker__title-bar--unselected{color:var(--zt-gray-a4)}.zt-date-time-picker__title{font-weight:700;font-size:14px;line-height:20px;height:20px}.zt-date-time-picker__title--selected{color:var(--zt-blue)}.zt-date-time-picker__title--unselected{font-weight:400}.zt-date-time-picker__value{font-size:14px;line-height:20px;height:20px;margin-top:4px}.zt-date-time-picker__title-tab-bar{display:flex;align-items:center}.zt-date-time-picker__title-separator{width:1px;height:40px;background-color:var(--zt-gray-a1)}
1
+ .zt-date-time-picker__title-bar{display:flex;flex-direction:column;align-items:center;padding:12px;flex:1;color:var(--zt-text-color)}.zt-date-time-picker__title-bar--unselected{color:var(--zt-gray-a4)}.zt-date-time-picker__title{font-weight:700;font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);height:var(--zt-line-height-md)}.zt-date-time-picker__title--selected{color:var(--zt-primary-color)}.zt-date-time-picker__title--unselected{font-weight:400}.zt-date-time-picker__value{font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);height:var(--zt-line-height-md);margin-top:4px}.zt-date-time-picker__title-tab-bar{display:flex;align-items:center}.zt-date-time-picker__title-separator{width:1px;height:40px;background-color:var(--zt-gray-a1)}
@@ -99,7 +99,7 @@ export declare const DateTimePicker: import("../utils").WithInstall<import("vue"
99
99
  type: import("vue").PropType<string[]>;
100
100
  default: () => string[];
101
101
  };
102
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue")[], "update:modelValue" | "cancel" | "change" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
102
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "update:modelValue" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue")[], "cancel" | "change" | "update:modelValue" | "update:show" | "confirm" | "startChange" | "endChange" | "update:startValue" | "update:endValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
103
103
  loading: BooleanConstructor;
104
104
  readonly: BooleanConstructor;
105
105
  allowHtml: BooleanConstructor;
@@ -227,9 +227,9 @@ export declare const DateTimePicker: import("../utils").WithInstall<import("vue"
227
227
  minDate: Date;
228
228
  maxDate: Date;
229
229
  allowHtml: boolean;
230
- optionHeight: string | number;
231
- showToolbar: boolean;
232
230
  swipeDuration: string | number;
231
+ showToolbar: boolean;
232
+ optionHeight: string | number;
233
233
  visibleOptionNum: string | number;
234
234
  columnsUnit: string[];
235
235
  columnsType: import("./DateTimePicker").DateTimePickerColumnType[];
@@ -46,7 +46,7 @@ export declare const sharedProps: {
46
46
  default: (type: string, option: PickerOption) => PickerOption;
47
47
  };
48
48
  };
49
- export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "showTitle" | "allowHtml" | "optionHeight" | "showToolbar" | "swipeDuration" | "visibleOptionNum" | "cancelButtonText" | "confirmButtonText")[];
49
+ export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "showTitle" | "allowHtml" | "cancelButtonText" | "confirmButtonText" | "swipeDuration" | "showToolbar" | "optionHeight" | "visibleOptionNum")[];
50
50
  export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
51
51
  export declare const getMonthEndDay: (year: number, month: number) => number;
52
52
  export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter?: Filter) => PickerOption[];
@@ -181,8 +181,8 @@ declare const _default: import("vue").DefineComponent<{
181
181
  closeOnClickOverlay: boolean;
182
182
  transition: string;
183
183
  closeOnPopstate: boolean;
184
- allowHtml: boolean;
185
184
  primaryHeader: boolean;
185
+ allowHtml: boolean;
186
186
  showCancelButton: boolean;
187
187
  cancelButtonDisabled: boolean;
188
188
  confirmButtonDisabled: boolean;
@@ -1 +1 @@
1
- :root{--zt-dialog-width: 350px;--zt-dialog-max-width: 90%;--zt-dialog-font-size: var(--zt-font-size-lg);--zt-dialog-transition: var(--zt-duration-base);--zt-dialog-radius: 12px;--zt-dialog-background: var(--zt-background-2);--zt-dialog-header-font-weight: var(--zt-font-bold);--zt-dialog-header-line-height: 24px;--zt-dialog-header-padding-top: 24px;--zt-dialog-header-isolated-padding: var(--zt-padding-lg) 0;--zt-dialog-header-primary-padding: 10px;--zt-dialog-message-padding: var(--zt-padding-lg) var(--zt-padding-md);--zt-dialog-message-font-size: var(--zt-font-size-lg);--zt-dialog-message-line-height: var(--zt-line-height-md);--zt-dialog-message-max-height: 60vh;--zt-dialog-has-title-message-font-size: var(--zt-font-size-md);--zt-dialog-has-title-message-text-color: var(--zt-gray-a6);--zt-dialog-has-title-message-padding-top: var(--zt-padding-xs);--zt-dialog-has-title-message-primary-header: var(--zt-padding-lg);--zt-dialog-confirm-button-text-color: var(--zt-white);--zt-dialog-cancel-button-background-color: var(--zt-white);--zt-dialog-cancel-button-border: none}.zt-dialog{top:45%;width:var(--zt-dialog-width);max-width:var(--zt-dialog-max-width);overflow:hidden;font-size:var(--zt-dialog-font-size);background:var(--zt-dialog-background);border-radius:var(--zt-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--zt-dialog-transition);transition-property:transform,opacity}.zt-dialog__header{color:var(--zt-text-color);padding-top:var(--zt-dialog-header-padding-top);font-weight:var(--zt-dialog-header-font-weight);line-height:var(--zt-dialog-header-line-height);text-align:center}.zt-dialog__header--isolated{padding:var(--zt-dialog-header-isolated-padding)}.zt-dialog__header--custom-title{padding-left:0;padding-right:0;padding-top:0}.zt-dialog__header--primary{padding:var(--zt-dialog-header-primary-padding);background:var(--zt-primary-color);color:var(--zt-white)}.zt-dialog__content{text-align:center;font-size:0}.zt-dialog__message{display:inline-block;color:var(--zt-gray-a8);max-height:var(--zt-dialog-message-max-height);padding:var(--zt-dialog-message-padding);overflow-y:auto;font-size:var(--zt-dialog-message-font-size);line-height:var(--zt-dialog-message-line-height);white-space:pre-wrap;text-align:left;word-wrap:break-word;-webkit-overflow-scrolling:touch}.zt-dialog__message--has-title{padding-top:var(--zt-dialog-has-title-message-padding-top);color:var(--zt-dialog-has-title-message-text-color);font-size:var(--zt-dialog-has-title-message-font-size)}.zt-dialog__message--primary-header{padding-top:var(--zt-dialog-has-title-message-primary-header)}.zt-dialog__message--left{text-align:left}.zt-dialog__message--right{text-align:right}.zt-dialog__message--justify{text-align:justify}.zt-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none;margin:0 var(--zt-padding-xl) var(--zt-padding-lg)}.zt-dialog__confirm,.zt-dialog__cancel{flex:1;margin:0;border:var(--zt-dialog-cancel-button-border);background-color:var(--zt-dialog-cancel-button-background-color)}.zt-dialog__confirm,.zt-dialog__confirm:active{color:var(--zt-dialog-confirm-button-text-color)}.zt-dialog__confirm--with-cancel{margin-left:8px}.zt-dialog--round-button .zt-dialog__footer{position:relative;height:auto;padding:var(--zt-padding-xs) var(--zt-padding-lg) var(--zt-padding-md)}.zt-dialog--round-button .zt-dialog__message{padding-bottom:var(--zt-padding-md);color:var(--zt-text-color)}.zt-dialog--round-button .zt-dialog__confirm,.zt-dialog--round-button .zt-dialog__cancel{height:var(--zt-dialog-round-button-height)}.zt-dialog--round-button .zt-dialog__confirm{color:var(--zt-white)}.zt-dialog-bounce-enter-from{transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.zt-dialog-bounce-leave-active{transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}.zt-theme-dark{--zt-dialog-cancel-button-border: .5px solid rgba(255, 255, 255, .2);--zt-dialog-cancel-button-background-color: rbga(255, 255, 255, .2)}
1
+ :root{--zt-dialog-width: 350px;--zt-dialog-max-width: 90%;--zt-dialog-transition: var(--zt-duration-base);--zt-dialog-radius: 12px;--zt-dialog-background: var(--zt-background-2);--zt-dialog-header-font-weight: var(--zt-font-bold);--zt-dialog-header-padding-top: 24px;--zt-dialog-header-isolated-padding: var(--zt-padding-lg) 0;--zt-dialog-header-primary-padding: 10px;--zt-dialog-message-padding: var(--zt-padding-lg) var(--zt-padding-md);--zt-dialog-message-max-height: 60vh;--zt-dialog-has-title-message-text-color: var(--zt-gray-a6);--zt-dialog-has-title-message-padding-top: var(--zt-padding-xs);--zt-dialog-has-title-message-primary-header: var(--zt-padding-lg);--zt-dialog-confirm-button-text-color: var(--zt-white);--zt-dialog-cancel-button-background-color: var(--zt-white)}.zt-dialog{top:45%;width:var(--zt-dialog-width);max-width:var(--zt-dialog-max-width);overflow:hidden;font-size:var(--zt-font-size-lg);background:var(--zt-dialog-background);border-radius:var(--zt-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--zt-dialog-transition);transition-property:transform,opacity}.zt-dialog__header{color:var(--zt-text-color);padding-top:var(--zt-dialog-header-padding-top);font-weight:var(--zt-dialog-header-font-weight);line-height:var(--zt-line-height-xl);text-align:center}.zt-dialog__header--isolated{padding:var(--zt-dialog-header-isolated-padding)}.zt-dialog__header--custom-title{padding-left:0;padding-right:0;padding-top:0}.zt-dialog__header--primary{padding:var(--zt-dialog-header-primary-padding);background:var(--zt-primary-color);color:var(--zt-white)}.zt-dialog__content{text-align:center;font-size:0}.zt-dialog__message{display:inline-block;color:var(--zt-gray-a8);max-height:var(--zt-dialog-message-max-height);padding:var(--zt-dialog-message-padding);overflow-y:auto;font-size:var(--zt-font-size-lg);line-height:var(--zt-line-height-md);white-space:pre-wrap;text-align:left;word-wrap:break-word;-webkit-overflow-scrolling:touch}.zt-dialog__message--has-title{padding-top:var(--zt-dialog-has-title-message-padding-top);color:var(--zt-dialog-has-title-message-text-color);font-size:var(--zt-font-size-md)}.zt-dialog__message--primary-header{padding-top:var(--zt-dialog-has-title-message-primary-header)}.zt-dialog__message--left{text-align:left}.zt-dialog__message--right{text-align:right}.zt-dialog__message--justify{text-align:justify}.zt-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none;margin:0 var(--zt-padding-xl) var(--zt-padding-lg)}.zt-dialog__confirm,.zt-dialog__cancel{flex:1;margin:0;background-color:var(--zt-dialog-cancel-button-background-color)}.zt-dialog__confirm,.zt-dialog__confirm:active{color:var(--zt-dialog-confirm-button-text-color)}.zt-dialog__confirm--with-cancel{margin-left:8px}.zt-dialog--round-button .zt-dialog__footer{position:relative;height:auto;padding:var(--zt-padding-xs) var(--zt-padding-lg) var(--zt-padding-md)}.zt-dialog--round-button .zt-dialog__message{padding-bottom:var(--zt-padding-md);color:var(--zt-text-color)}.zt-dialog--round-button .zt-dialog__confirm,.zt-dialog--round-button .zt-dialog__cancel{height:var(--zt-dialog-round-button-height)}.zt-dialog--round-button .zt-dialog__confirm{color:var(--zt-white)}.zt-dialog-bounce-enter-from{transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.zt-dialog-bounce-leave-active{transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}.zt-theme-dark{--zt-dialog-cancel-button-background-color: rbga(255, 255, 255, .2)}
@@ -122,8 +122,8 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
122
122
  closeOnClickOverlay: boolean;
123
123
  transition: string;
124
124
  closeOnPopstate: boolean;
125
- allowHtml: boolean;
126
125
  primaryHeader: boolean;
126
+ allowHtml: boolean;
127
127
  showCancelButton: boolean;
128
128
  cancelButtonDisabled: boolean;
129
129
  confirmButtonDisabled: boolean;
@@ -133,7 +133,7 @@ export default Dialog;
133
133
  export { dialogProps } from './Dialog';
134
134
  export { showDialog, closeDialog, showConfirmDialog, setDialogDefaultOptions, resetDialogDefaultOptions, } from './function-call';
135
135
  export type { DialogProps } from './Dialog';
136
- export type { DialogTheme, DialogMessage, DialogOptions, DialogMessageAlign, } from './types';
136
+ export type { DialogTheme, DialogMessage, DialogOptions, DialogMessageAlign, DialogThemeVars, } from './types';
137
137
  declare module 'vue' {
138
138
  interface GlobalComponents {
139
139
  ZtDialog: typeof Dialog;
@@ -31,3 +31,21 @@ export type DialogOptions = {
31
31
  confirmButtonDisabled?: boolean;
32
32
  closeOnClickOverlay?: boolean;
33
33
  };
34
+ export type DialogThemeVars = {
35
+ dialogWidth?: string;
36
+ dialogMaxWidth?: string;
37
+ dialogTransition?: string;
38
+ dialogRadius?: string;
39
+ dialogBackground?: string;
40
+ dialogHeaderFontWeight?: string;
41
+ dialogHeaderPaddingTop?: string;
42
+ dialogHeaderIsolatedPadding?: string;
43
+ dialogHeaderPrimaryPadding?: string;
44
+ dialogMessagePadding?: string;
45
+ dialogMessageMaxHeight?: string;
46
+ dialogHasTitleMessageTextColor?: string;
47
+ dialogHasTitleMessagePaddingTop?: string;
48
+ dialogHasTitleMessagePrimaryHeader?: string;
49
+ dialogConfirmButtonTextColor?: string;
50
+ dialogCancelButtonBackgroundColor?: string;
51
+ };
@@ -1 +1 @@
1
- :root{--zt-divider-margin: var(--zt-padding-md) 0;--zt-divider-text-color: var(--zt-gray-a4);--zt-divider-font-size: var(--zt-font-size-md);--zt-divider-line-height: 24px;--zt-divider-border-color: var(--zt-border-color);--zt-divider-content-padding: var(--zt-padding-md);--zt-divider-content-left-width: 10%;--zt-divider-content-right-width: 10%}.zt-divider{display:flex;align-items:center;margin:var(--zt-divider-margin);color:var(--zt-divider-text-color);font-size:var(--zt-divider-font-size);line-height:var(--zt-divider-line-height);border-color:var(--zt-divider-border-color);border-style:solid;border-width:0}.zt-divider:before,.zt-divider:after{display:block;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:var(--zt-border-width) 0 0}.zt-divider:before{content:""}.zt-divider--hairline:before,.zt-divider--hairline:after{transform:scaleY(.5)}.zt-divider--dashed{border-style:dashed}.zt-divider--content-center:before,.zt-divider--content-left:before,.zt-divider--content-right:before{margin-right:var(--zt-divider-content-padding)}.zt-divider--content-center:after,.zt-divider--content-left:after,.zt-divider--content-right:after{margin-left:var(--zt-divider-content-padding);content:""}.zt-divider--content-left:before{max-width:var(--zt-divider-content-left-width)}.zt-divider--content-right:after{max-width:var(--zt-divider-content-right-width)}
1
+ :root{--zt-divider-margin: var(--zt-padding-md) 0;--zt-divider-text-color: var(--zt-gray-a4);--zt-divider-border-color: var(--zt-border-color);--zt-divider-content-padding: var(--zt-padding-md);--zt-divider-content-left-width: 10%;--zt-divider-content-right-width: 10%}.zt-divider{display:flex;align-items:center;margin:var(--zt-divider-margin);color:var(--zt-divider-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-xl);border-color:var(--zt-divider-border-color);border-style:solid;border-width:0}.zt-divider:before,.zt-divider:after{display:block;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:var(--zt-border-width) 0 0}.zt-divider:before{content:""}.zt-divider--hairline:before,.zt-divider--hairline:after{transform:scaleY(.5)}.zt-divider--dashed{border-style:dashed}.zt-divider--content-center:before,.zt-divider--content-left:before,.zt-divider--content-right:before{margin-right:var(--zt-divider-content-padding)}.zt-divider--content-center:after,.zt-divider--content-left:after,.zt-divider--content-right:after{margin-left:var(--zt-divider-content-padding);content:""}.zt-divider--content-left:before{max-width:var(--zt-divider-content-left-width)}.zt-divider--content-right:after{max-width:var(--zt-divider-content-right-width)}
@@ -25,6 +25,7 @@ export declare const Divider: import("../utils").WithInstall<import("vue").Defin
25
25
  }, {}>>;
26
26
  export default Divider;
27
27
  export type { DividerProps, DividerContentPosition } from './Divider';
28
+ export type { DividerThemeVars } from './types';
28
29
  declare module 'vue' {
29
30
  interface GlobalComponents {
30
31
  ZtDivider: typeof Divider;
@@ -0,0 +1,8 @@
1
+ export type DividerThemeVars = {
2
+ dividerMargin?: string;
3
+ dividerTextColor?: string;
4
+ dividerBorderColor?: string;
5
+ dividerContentPadding?: string;
6
+ dividerContentLeftWidth?: string;
7
+ dividerContentRightWidth?: string;
8
+ };
File without changes
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  };
41
41
  titleClass: PropType<unknown>;
42
42
  multiSelect: BooleanConstructor;
43
- }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "open" | "update:modelValue" | "change" | "close" | "opened" | "closed" | "confirm")[], "reset" | "open" | "update:modelValue" | "change" | "close" | "opened" | "closed" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
43
+ }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "open" | "change" | "close" | "update:modelValue" | "opened" | "closed" | "confirm")[], "reset" | "open" | "change" | "close" | "update:modelValue" | "opened" | "closed" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
44
44
  title: StringConstructor;
45
45
  options: {
46
46
  type: PropType<DropdownItemOption[]>;
@@ -274,6 +274,7 @@ var stdin_default = defineComponent({
274
274
  }, {
275
275
  default: () => [_createTextVNode("\u91CD\u7F6E")]
276
276
  }), _createVNode(Button, {
277
+ "type": "primary",
277
278
  "onClick": onClickConfirm,
278
279
  "class": bem("button-confirm")
279
280
  }, {