zartui 0.1.112 → 3.0.2

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 (594) hide show
  1. package/README.md +6 -2
  2. package/es/badge/Badge.d.ts +66 -0
  3. package/es/badge/Badge.mjs +95 -0
  4. package/es/badge/index.css +1 -0
  5. package/es/badge/index.d.ts +49 -0
  6. package/es/badge/index.mjs +8 -0
  7. package/es/badge/style/index.d.ts +1 -0
  8. package/es/badge/style/index.mjs +2 -0
  9. package/es/button/Button.d.ts +154 -0
  10. package/es/button/Button.mjs +166 -0
  11. package/es/button/index.css +1 -0
  12. package/es/button/index.d.ts +113 -0
  13. package/es/button/index.mjs +8 -0
  14. package/es/button/style/index.d.ts +1 -0
  15. package/es/button/style/index.mjs +5 -0
  16. package/es/button/types.d.ts +5 -0
  17. package/es/button/types.mjs +0 -0
  18. package/es/cell/Cell.d.ts +128 -0
  19. package/es/cell/Cell.mjs +132 -0
  20. package/es/cell/index.css +1 -0
  21. package/es/cell/index.d.ts +74 -0
  22. package/es/cell/index.mjs +8 -0
  23. package/es/cell/style/index.d.ts +1 -0
  24. package/es/cell/style/index.mjs +4 -0
  25. package/es/col/Col.d.ts +38 -0
  26. package/es/col/Col.mjs +63 -0
  27. package/es/col/index.css +1 -0
  28. package/es/col/index.d.ts +31 -0
  29. package/es/col/index.mjs +8 -0
  30. package/es/col/style/index.d.ts +1 -0
  31. package/es/col/style/index.mjs +3 -0
  32. package/es/composables/on-popup-reopen.d.ts +3 -0
  33. package/es/composables/on-popup-reopen.mjs +16 -0
  34. package/es/composables/use-expose.d.ts +1 -0
  35. package/es/composables/use-expose.mjs +11 -0
  36. package/es/composables/use-height.d.ts +2 -0
  37. package/es/composables/use-height.mjs +20 -0
  38. package/es/composables/use-id.d.ts +1 -0
  39. package/es/composables/use-id.mjs +13 -0
  40. package/es/composables/use-lazy-render.d.ts +2 -0
  41. package/es/composables/use-lazy-render.mjs +17 -0
  42. package/es/composables/use-lock-scroll.d.ts +2 -0
  43. package/es/composables/use-lock-scroll.mjs +56 -0
  44. package/es/composables/use-placeholder.d.ts +3 -0
  45. package/es/composables/use-placeholder.mjs +14 -0
  46. package/es/composables/use-refs.d.ts +2 -0
  47. package/es/composables/use-refs.mjs +20 -0
  48. package/es/composables/use-route.d.ts +13 -0
  49. package/es/composables/use-route.mjs +29 -0
  50. package/es/composables/use-tab-status.d.ts +3 -0
  51. package/es/composables/use-tab-status.mjs +7 -0
  52. package/es/composables/use-touch.d.ts +16 -0
  53. package/es/composables/use-touch.mjs +61 -0
  54. package/es/composables/use-visibility-change.d.ts +2 -0
  55. package/es/composables/use-visibility-change.mjs +30 -0
  56. package/es/config-provider/ConfigProvider.d.ts +47 -0
  57. package/es/config-provider/ConfigProvider.mjs +64 -0
  58. package/es/config-provider/index.d.ts +33 -0
  59. package/es/config-provider/index.mjs +8 -0
  60. package/es/config-provider/style/index.d.ts +1 -0
  61. package/es/config-provider/style/index.mjs +1 -0
  62. package/es/divider/Divider.d.ts +40 -0
  63. package/es/divider/Divider.mjs +31 -0
  64. package/es/divider/index.css +1 -0
  65. package/es/divider/index.d.ts +32 -0
  66. package/es/divider/index.mjs +8 -0
  67. package/es/divider/style/index.d.ts +1 -0
  68. package/es/divider/style/index.mjs +2 -0
  69. package/es/empty/Empty.d.ts +29 -0
  70. package/es/empty/Empty.mjs +58 -0
  71. package/es/empty/Images.d.ts +4 -0
  72. package/es/empty/Images.mjs +2104 -0
  73. package/es/empty/index.css +1 -0
  74. package/es/empty/index.d.ts +24 -0
  75. package/es/empty/index.mjs +8 -0
  76. package/es/empty/style/index.d.ts +1 -0
  77. package/es/empty/style/index.mjs +2 -0
  78. package/es/icon/Icon.d.ts +45 -0
  79. package/es/icon/Icon.mjs +59 -0
  80. package/es/icon/config.d.ts +41 -0
  81. package/es/icon/config.mjs +139 -0
  82. package/es/icon/index.css +1 -0
  83. package/es/icon/index.d.ts +35 -0
  84. package/es/icon/index.mjs +8 -0
  85. package/es/icon/style/index.d.ts +1 -0
  86. package/es/icon/style/index.mjs +3 -0
  87. package/es/index.d.ts +35 -0
  88. package/es/index.mjs +105 -0
  89. package/es/list/List.d.ts +74 -0
  90. package/es/list/List.mjs +147 -0
  91. package/es/list/index.css +1 -0
  92. package/es/list/index.d.ts +59 -0
  93. package/es/list/index.mjs +8 -0
  94. package/es/list/style/index.d.ts +1 -0
  95. package/es/list/style/index.mjs +4 -0
  96. package/es/list/types.d.ts +7 -0
  97. package/es/list/types.mjs +0 -0
  98. package/es/loading/Loading.d.ts +39 -0
  99. package/es/loading/Loading.mjs +114 -0
  100. package/es/loading/index.css +1 -0
  101. package/es/loading/index.d.ts +31 -0
  102. package/es/loading/index.mjs +8 -0
  103. package/es/loading/style/index.d.ts +1 -0
  104. package/es/loading/style/index.mjs +2 -0
  105. package/es/locale/index.d.ts +7 -0
  106. package/es/locale/index.mjs +24 -0
  107. package/es/locale/lang/en-US.d.ts +62 -0
  108. package/es/locale/lang/en-US.mjs +64 -0
  109. package/es/locale/lang/zh-CN.d.ts +62 -0
  110. package/es/locale/lang/zh-CN.mjs +64 -0
  111. package/es/locale/style/index.d.ts +1 -0
  112. package/es/locale/style/index.mjs +1 -0
  113. package/es/notice-bar/NoticeBar.d.ts +71 -0
  114. package/es/notice-bar/NoticeBar.mjs +165 -0
  115. package/es/notice-bar/index.css +1 -0
  116. package/es/notice-bar/index.d.ts +56 -0
  117. package/es/notice-bar/index.mjs +8 -0
  118. package/es/notice-bar/style/index.d.ts +1 -0
  119. package/es/notice-bar/style/index.mjs +4 -0
  120. package/es/notice-bar/types.d.ts +7 -0
  121. package/es/notice-bar/types.mjs +0 -0
  122. package/es/notify/Notify.d.ts +134 -0
  123. package/es/notify/Notify.mjs +44 -0
  124. package/es/notify/function-call.d.ts +6 -0
  125. package/es/notify/function-call.mjs +68 -0
  126. package/es/notify/index.css +1 -0
  127. package/es/notify/index.d.ts +99 -0
  128. package/es/notify/index.mjs +18 -0
  129. package/es/notify/style/index.d.ts +1 -0
  130. package/es/notify/style/index.mjs +6 -0
  131. package/es/notify/types.d.ts +17 -0
  132. package/es/notify/types.mjs +0 -0
  133. package/es/number-keyboard/NumberKeyboard.d.ts +162 -0
  134. package/es/number-keyboard/NumberKeyboard.mjs +243 -0
  135. package/es/number-keyboard/NumberKeyboardKey.d.ts +24 -0
  136. package/es/number-keyboard/NumberKeyboardKey.mjs +89 -0
  137. package/es/number-keyboard/index.css +1 -0
  138. package/es/number-keyboard/index.d.ts +119 -0
  139. package/es/number-keyboard/index.mjs +8 -0
  140. package/es/number-keyboard/style/index.d.ts +1 -0
  141. package/es/number-keyboard/style/index.mjs +9 -0
  142. package/es/overlay/Overlay.d.ts +51 -0
  143. package/es/overlay/Overlay.mjs +47 -0
  144. package/es/overlay/index.css +1 -0
  145. package/es/overlay/index.d.ts +40 -0
  146. package/es/overlay/index.mjs +8 -0
  147. package/es/overlay/style/index.d.ts +1 -0
  148. package/es/overlay/style/index.mjs +2 -0
  149. package/es/password-input/PasswordInput.d.ts +63 -0
  150. package/es/password-input/PasswordInput.mjs +78 -0
  151. package/es/password-input/index.css +1 -0
  152. package/es/password-input/index.d.ts +49 -0
  153. package/es/password-input/index.mjs +8 -0
  154. package/es/password-input/style/index.d.ts +1 -0
  155. package/es/password-input/style/index.mjs +2 -0
  156. package/es/popup/Popup.d.ts +165 -0
  157. package/es/popup/Popup.mjs +205 -0
  158. package/es/popup/index.css +1 -0
  159. package/es/popup/index.d.ts +123 -0
  160. package/es/popup/index.mjs +8 -0
  161. package/es/popup/shared.d.ts +30 -0
  162. package/es/popup/shared.mjs +22 -0
  163. package/es/popup/style/index.d.ts +1 -0
  164. package/es/popup/style/index.mjs +5 -0
  165. package/es/popup/types.d.ts +8 -0
  166. package/es/popup/types.mjs +0 -0
  167. package/es/pull-refresh/PullRefresh.d.ts +75 -0
  168. package/es/pull-refresh/PullRefresh.mjs +191 -0
  169. package/es/pull-refresh/index.css +1 -0
  170. package/es/pull-refresh/index.d.ts +58 -0
  171. package/es/pull-refresh/index.mjs +8 -0
  172. package/es/pull-refresh/style/index.d.ts +1 -0
  173. package/es/pull-refresh/style/index.mjs +3 -0
  174. package/es/rate/Rate.d.ts +107 -0
  175. package/es/rate/Rate.mjs +217 -0
  176. package/es/rate/index.css +1 -0
  177. package/es/rate/index.d.ts +80 -0
  178. package/es/rate/index.mjs +8 -0
  179. package/es/rate/style/index.d.ts +1 -0
  180. package/es/rate/style/index.mjs +4 -0
  181. package/es/row/Row.d.ts +64 -0
  182. package/es/row/Row.mjs +91 -0
  183. package/es/row/index.css +1 -0
  184. package/es/row/index.d.ts +42 -0
  185. package/es/row/index.mjs +8 -0
  186. package/es/row/style/index.d.ts +1 -0
  187. package/es/row/style/index.mjs +2 -0
  188. package/es/stepper/Stepper.d.ts +181 -0
  189. package/es/stepper/Stepper.mjs +258 -0
  190. package/es/stepper/index.css +1 -0
  191. package/es/stepper/index.d.ts +132 -0
  192. package/es/stepper/index.mjs +8 -0
  193. package/es/stepper/style/index.d.ts +1 -0
  194. package/es/stepper/style/index.mjs +4 -0
  195. package/es/sticky/Sticky.d.ts +58 -0
  196. package/es/sticky/Sticky.mjs +119 -0
  197. package/es/sticky/index.css +1 -0
  198. package/es/sticky/index.d.ts +45 -0
  199. package/es/sticky/index.mjs +8 -0
  200. package/es/sticky/style/index.d.ts +1 -0
  201. package/es/sticky/style/index.mjs +2 -0
  202. package/es/style/animation.css +1 -0
  203. package/es/style/base.css +1 -0
  204. package/es/style/css-variables.css +1 -0
  205. package/es/style/mixins/clearfix.css +0 -0
  206. package/es/style/mixins/ellipsis.css +0 -0
  207. package/es/style/mixins/hairline.css +0 -0
  208. package/es/style/normalize.css +1 -0
  209. package/es/swipe/Swipe.d.ts +121 -0
  210. package/es/swipe/Swipe.mjs +353 -0
  211. package/es/swipe/index.css +1 -0
  212. package/es/swipe/index.d.ts +90 -0
  213. package/es/swipe/index.mjs +8 -0
  214. package/es/swipe/style/index.d.ts +1 -0
  215. package/es/swipe/style/index.mjs +2 -0
  216. package/es/swipe/types.d.ts +31 -0
  217. package/es/swipe/types.mjs +0 -0
  218. package/es/swipe-item/SwipeItem.d.ts +2 -0
  219. package/es/swipe-item/SwipeItem.mjs +82 -0
  220. package/es/swipe-item/index.css +1 -0
  221. package/es/swipe-item/index.d.ts +7 -0
  222. package/es/swipe-item/index.mjs +8 -0
  223. package/es/swipe-item/style/index.d.ts +1 -0
  224. package/es/swipe-item/style/index.mjs +3 -0
  225. package/es/switch/Switch.d.ts +58 -0
  226. package/es/switch/Switch.mjs +85 -0
  227. package/es/switch/index.css +1 -0
  228. package/es/switch/index.d.ts +46 -0
  229. package/es/switch/index.mjs +8 -0
  230. package/es/switch/style/index.d.ts +1 -0
  231. package/es/switch/style/index.mjs +3 -0
  232. package/es/tab/Tab.d.ts +58 -0
  233. package/es/tab/Tab.mjs +113 -0
  234. package/es/tab/index.css +1 -0
  235. package/es/tab/index.d.ts +45 -0
  236. package/es/tab/index.mjs +8 -0
  237. package/es/tab/style/index.d.ts +1 -0
  238. package/es/tab/style/index.mjs +7 -0
  239. package/es/tabs/Tabs.d.ts +154 -0
  240. package/es/tabs/Tabs.mjs +352 -0
  241. package/es/tabs/TabsContent.d.ts +43 -0
  242. package/es/tabs/TabsContent.mjs +64 -0
  243. package/es/tabs/TabsTitle.d.ts +45 -0
  244. package/es/tabs/TabsTitle.mjs +90 -0
  245. package/es/tabs/index.css +1 -0
  246. package/es/tabs/index.d.ts +114 -0
  247. package/es/tabs/index.mjs +8 -0
  248. package/es/tabs/style/index.d.ts +1 -0
  249. package/es/tabs/style/index.mjs +5 -0
  250. package/es/tabs/types.d.ts +23 -0
  251. package/es/tabs/types.mjs +0 -0
  252. package/es/tabs/utils.d.ts +3 -0
  253. package/es/tabs/utils.mjs +37 -0
  254. package/es/toast/Toast.d.ts +112 -0
  255. package/es/toast/Toast.mjs +119 -0
  256. package/es/toast/function-call.d.ts +10 -0
  257. package/es/toast/function-call.mjs +142 -0
  258. package/es/toast/index.css +1 -0
  259. package/es/toast/index.d.ts +79 -0
  260. package/es/toast/index.mjs +26 -0
  261. package/es/toast/lock-click.d.ts +1 -0
  262. package/es/toast/lock-click.mjs +17 -0
  263. package/es/toast/style/index.d.ts +1 -0
  264. package/es/toast/style/index.mjs +7 -0
  265. package/es/toast/types.d.ts +36 -0
  266. package/es/toast/types.mjs +0 -0
  267. package/es/utils/basic.d.ts +18 -0
  268. package/es/utils/basic.mjs +32 -0
  269. package/es/utils/constant.d.ts +8 -0
  270. package/es/utils/constant.mjs +18 -0
  271. package/es/utils/create.d.ts +17 -0
  272. package/es/utils/create.mjs +50 -0
  273. package/es/utils/deep-assign.d.ts +3 -0
  274. package/es/utils/deep-assign.mjs +22 -0
  275. package/es/utils/deep-clone.d.ts +1 -0
  276. package/es/utils/deep-clone.mjs +20 -0
  277. package/es/utils/dom.d.ts +12 -0
  278. package/es/utils/dom.mjs +67 -0
  279. package/es/utils/format.d.ts +13 -0
  280. package/es/utils/format.mjs +120 -0
  281. package/es/utils/index.d.ts +9 -0
  282. package/es/utils/index.mjs +9 -0
  283. package/es/utils/interceptor.d.ts +6 -0
  284. package/es/utils/interceptor.mjs +29 -0
  285. package/es/utils/mount-component.d.ts +14 -0
  286. package/es/utils/mount-component.mjs +39 -0
  287. package/es/utils/props.d.ts +31 -0
  288. package/es/utils/props.mjs +36 -0
  289. package/es/utils/validate.d.ts +9 -0
  290. package/es/utils/validate.mjs +22 -0
  291. package/es/utils/with-install.d.ts +13 -0
  292. package/es/utils/with-install.mjs +12 -0
  293. package/es/vue-sfc-shim.d.ts +6 -0
  294. package/es/vue-tsx-shim.d.ts +16 -0
  295. package/lib/badge/Badge.d.ts +66 -0
  296. package/lib/badge/Badge.js +114 -0
  297. package/lib/badge/index.css +1 -0
  298. package/lib/badge/index.d.ts +49 -0
  299. package/lib/badge/index.js +33 -0
  300. package/lib/badge/style/index.d.ts +1 -0
  301. package/lib/badge/style/index.js +2 -0
  302. package/lib/button/Button.d.ts +154 -0
  303. package/lib/button/Button.js +185 -0
  304. package/lib/button/index.css +1 -0
  305. package/lib/button/index.d.ts +113 -0
  306. package/lib/button/index.js +33 -0
  307. package/lib/button/style/index.d.ts +1 -0
  308. package/lib/button/style/index.js +5 -0
  309. package/lib/button/types.d.ts +5 -0
  310. package/lib/button/types.js +15 -0
  311. package/lib/cell/Cell.d.ts +128 -0
  312. package/lib/cell/Cell.js +151 -0
  313. package/lib/cell/index.css +1 -0
  314. package/lib/cell/index.d.ts +74 -0
  315. package/lib/cell/index.js +33 -0
  316. package/lib/cell/style/index.d.ts +1 -0
  317. package/lib/cell/style/index.js +4 -0
  318. package/lib/col/Col.d.ts +38 -0
  319. package/lib/col/Col.js +82 -0
  320. package/lib/col/index.css +1 -0
  321. package/lib/col/index.d.ts +31 -0
  322. package/lib/col/index.js +33 -0
  323. package/lib/col/style/index.d.ts +1 -0
  324. package/lib/col/style/index.js +3 -0
  325. package/lib/composables/on-popup-reopen.d.ts +3 -0
  326. package/lib/composables/on-popup-reopen.js +35 -0
  327. package/lib/composables/use-expose.d.ts +1 -0
  328. package/lib/composables/use-expose.js +30 -0
  329. package/lib/composables/use-height.d.ts +2 -0
  330. package/lib/composables/use-height.js +39 -0
  331. package/lib/composables/use-id.d.ts +1 -0
  332. package/lib/composables/use-id.js +32 -0
  333. package/lib/composables/use-lazy-render.d.ts +2 -0
  334. package/lib/composables/use-lazy-render.js +36 -0
  335. package/lib/composables/use-lock-scroll.d.ts +2 -0
  336. package/lib/composables/use-lock-scroll.js +75 -0
  337. package/lib/composables/use-placeholder.d.ts +3 -0
  338. package/lib/composables/use-placeholder.js +33 -0
  339. package/lib/composables/use-refs.d.ts +2 -0
  340. package/lib/composables/use-refs.js +39 -0
  341. package/lib/composables/use-route.d.ts +13 -0
  342. package/lib/composables/use-route.js +46 -0
  343. package/lib/composables/use-tab-status.d.ts +3 -0
  344. package/lib/composables/use-tab-status.js +26 -0
  345. package/lib/composables/use-touch.d.ts +16 -0
  346. package/lib/composables/use-touch.js +80 -0
  347. package/lib/composables/use-visibility-change.d.ts +2 -0
  348. package/lib/composables/use-visibility-change.js +49 -0
  349. package/lib/config-provider/ConfigProvider.d.ts +47 -0
  350. package/lib/config-provider/ConfigProvider.js +83 -0
  351. package/lib/config-provider/index.d.ts +33 -0
  352. package/lib/config-provider/index.js +33 -0
  353. package/lib/config-provider/style/index.d.ts +1 -0
  354. package/lib/config-provider/style/index.js +1 -0
  355. package/lib/divider/Divider.d.ts +40 -0
  356. package/lib/divider/Divider.js +50 -0
  357. package/lib/divider/index.css +1 -0
  358. package/lib/divider/index.d.ts +32 -0
  359. package/lib/divider/index.js +33 -0
  360. package/lib/divider/style/index.d.ts +1 -0
  361. package/lib/divider/style/index.js +2 -0
  362. package/lib/empty/Empty.d.ts +29 -0
  363. package/lib/empty/Empty.js +77 -0
  364. package/lib/empty/Images.d.ts +4 -0
  365. package/lib/empty/Images.js +2123 -0
  366. package/lib/empty/index.css +1 -0
  367. package/lib/empty/index.d.ts +24 -0
  368. package/lib/empty/index.js +33 -0
  369. package/lib/empty/style/index.d.ts +1 -0
  370. package/lib/empty/style/index.js +2 -0
  371. package/lib/icon/Icon.d.ts +45 -0
  372. package/lib/icon/Icon.js +78 -0
  373. package/lib/icon/config.d.ts +41 -0
  374. package/lib/icon/config.js +158 -0
  375. package/lib/icon/index.css +1 -0
  376. package/lib/icon/index.d.ts +35 -0
  377. package/lib/icon/index.js +33 -0
  378. package/lib/icon/style/index.d.ts +1 -0
  379. package/lib/icon/style/index.js +3 -0
  380. package/lib/index.css +1 -0
  381. package/lib/index.d.ts +35 -0
  382. package/lib/index.js +125 -0
  383. package/lib/list/List.d.ts +74 -0
  384. package/lib/list/List.js +166 -0
  385. package/lib/list/index.css +1 -0
  386. package/lib/list/index.d.ts +59 -0
  387. package/lib/list/index.js +33 -0
  388. package/lib/list/style/index.d.ts +1 -0
  389. package/lib/list/style/index.js +4 -0
  390. package/lib/list/types.d.ts +7 -0
  391. package/lib/list/types.js +15 -0
  392. package/lib/loading/Loading.d.ts +39 -0
  393. package/lib/loading/Loading.js +133 -0
  394. package/lib/loading/index.css +1 -0
  395. package/lib/loading/index.d.ts +31 -0
  396. package/lib/loading/index.js +33 -0
  397. package/lib/loading/style/index.d.ts +1 -0
  398. package/lib/loading/style/index.js +2 -0
  399. package/lib/locale/index.d.ts +7 -0
  400. package/lib/locale/index.js +49 -0
  401. package/lib/locale/lang/en-US.d.ts +62 -0
  402. package/lib/locale/lang/en-US.js +83 -0
  403. package/lib/locale/lang/zh-CN.d.ts +62 -0
  404. package/lib/locale/lang/zh-CN.js +83 -0
  405. package/lib/locale/style/index.d.ts +1 -0
  406. package/lib/locale/style/index.js +1 -0
  407. package/lib/notice-bar/NoticeBar.d.ts +71 -0
  408. package/lib/notice-bar/NoticeBar.js +190 -0
  409. package/lib/notice-bar/index.css +1 -0
  410. package/lib/notice-bar/index.d.ts +56 -0
  411. package/lib/notice-bar/index.js +33 -0
  412. package/lib/notice-bar/style/index.d.ts +1 -0
  413. package/lib/notice-bar/style/index.js +4 -0
  414. package/lib/notice-bar/types.d.ts +7 -0
  415. package/lib/notice-bar/types.js +15 -0
  416. package/lib/notify/Notify.d.ts +134 -0
  417. package/lib/notify/Notify.js +63 -0
  418. package/lib/notify/function-call.d.ts +6 -0
  419. package/lib/notify/function-call.js +93 -0
  420. package/lib/notify/index.css +1 -0
  421. package/lib/notify/index.d.ts +99 -0
  422. package/lib/notify/index.js +38 -0
  423. package/lib/notify/style/index.d.ts +1 -0
  424. package/lib/notify/style/index.js +6 -0
  425. package/lib/notify/types.d.ts +17 -0
  426. package/lib/notify/types.js +15 -0
  427. package/lib/number-keyboard/NumberKeyboard.d.ts +162 -0
  428. package/lib/number-keyboard/NumberKeyboard.js +268 -0
  429. package/lib/number-keyboard/NumberKeyboardKey.d.ts +24 -0
  430. package/lib/number-keyboard/NumberKeyboardKey.js +114 -0
  431. package/lib/number-keyboard/index.css +1 -0
  432. package/lib/number-keyboard/index.d.ts +119 -0
  433. package/lib/number-keyboard/index.js +33 -0
  434. package/lib/number-keyboard/style/index.d.ts +1 -0
  435. package/lib/number-keyboard/style/index.js +9 -0
  436. package/lib/overlay/Overlay.d.ts +51 -0
  437. package/lib/overlay/Overlay.js +66 -0
  438. package/lib/overlay/index.css +1 -0
  439. package/lib/overlay/index.d.ts +40 -0
  440. package/lib/overlay/index.js +33 -0
  441. package/lib/overlay/style/index.d.ts +1 -0
  442. package/lib/overlay/style/index.js +2 -0
  443. package/lib/password-input/PasswordInput.d.ts +63 -0
  444. package/lib/password-input/PasswordInput.js +97 -0
  445. package/lib/password-input/index.css +1 -0
  446. package/lib/password-input/index.d.ts +49 -0
  447. package/lib/password-input/index.js +33 -0
  448. package/lib/password-input/style/index.d.ts +1 -0
  449. package/lib/password-input/style/index.js +2 -0
  450. package/lib/popup/Popup.d.ts +165 -0
  451. package/lib/popup/Popup.js +224 -0
  452. package/lib/popup/index.css +1 -0
  453. package/lib/popup/index.d.ts +123 -0
  454. package/lib/popup/index.js +33 -0
  455. package/lib/popup/shared.d.ts +30 -0
  456. package/lib/popup/shared.js +41 -0
  457. package/lib/popup/style/index.d.ts +1 -0
  458. package/lib/popup/style/index.js +5 -0
  459. package/lib/popup/types.d.ts +8 -0
  460. package/lib/popup/types.js +15 -0
  461. package/lib/pull-refresh/PullRefresh.d.ts +75 -0
  462. package/lib/pull-refresh/PullRefresh.js +210 -0
  463. package/lib/pull-refresh/index.css +1 -0
  464. package/lib/pull-refresh/index.d.ts +58 -0
  465. package/lib/pull-refresh/index.js +33 -0
  466. package/lib/pull-refresh/style/index.d.ts +1 -0
  467. package/lib/pull-refresh/style/index.js +3 -0
  468. package/lib/rate/Rate.d.ts +107 -0
  469. package/lib/rate/Rate.js +236 -0
  470. package/lib/rate/index.css +1 -0
  471. package/lib/rate/index.d.ts +80 -0
  472. package/lib/rate/index.js +33 -0
  473. package/lib/rate/style/index.d.ts +1 -0
  474. package/lib/rate/style/index.js +4 -0
  475. package/lib/row/Row.d.ts +64 -0
  476. package/lib/row/Row.js +110 -0
  477. package/lib/row/index.css +1 -0
  478. package/lib/row/index.d.ts +42 -0
  479. package/lib/row/index.js +33 -0
  480. package/lib/row/style/index.d.ts +1 -0
  481. package/lib/row/style/index.js +2 -0
  482. package/lib/stepper/Stepper.d.ts +181 -0
  483. package/lib/stepper/Stepper.js +283 -0
  484. package/lib/stepper/index.css +1 -0
  485. package/lib/stepper/index.d.ts +132 -0
  486. package/lib/stepper/index.js +33 -0
  487. package/lib/stepper/style/index.d.ts +1 -0
  488. package/lib/stepper/style/index.js +4 -0
  489. package/lib/sticky/Sticky.d.ts +58 -0
  490. package/lib/sticky/Sticky.js +138 -0
  491. package/lib/sticky/index.css +1 -0
  492. package/lib/sticky/index.d.ts +45 -0
  493. package/lib/sticky/index.js +33 -0
  494. package/lib/sticky/style/index.d.ts +1 -0
  495. package/lib/sticky/style/index.js +2 -0
  496. package/lib/style/animation.css +1 -0
  497. package/lib/style/base.css +1 -0
  498. package/lib/style/css-variables.css +1 -0
  499. package/lib/style/mixins/clearfix.css +0 -0
  500. package/lib/style/mixins/ellipsis.css +0 -0
  501. package/lib/style/mixins/hairline.css +0 -0
  502. package/lib/style/normalize.css +1 -0
  503. package/lib/swipe/Swipe.d.ts +121 -0
  504. package/lib/swipe/Swipe.js +372 -0
  505. package/lib/swipe/index.css +1 -0
  506. package/lib/swipe/index.d.ts +90 -0
  507. package/lib/swipe/index.js +33 -0
  508. package/lib/swipe/style/index.d.ts +1 -0
  509. package/lib/swipe/style/index.js +2 -0
  510. package/lib/swipe/types.d.ts +31 -0
  511. package/lib/swipe/types.js +15 -0
  512. package/lib/swipe-item/SwipeItem.d.ts +2 -0
  513. package/lib/swipe-item/SwipeItem.js +101 -0
  514. package/lib/swipe-item/index.css +1 -0
  515. package/lib/swipe-item/index.d.ts +7 -0
  516. package/lib/swipe-item/index.js +33 -0
  517. package/lib/swipe-item/style/index.d.ts +1 -0
  518. package/lib/swipe-item/style/index.js +3 -0
  519. package/lib/switch/Switch.d.ts +58 -0
  520. package/lib/switch/Switch.js +104 -0
  521. package/lib/switch/index.css +1 -0
  522. package/lib/switch/index.d.ts +46 -0
  523. package/lib/switch/index.js +33 -0
  524. package/lib/switch/style/index.d.ts +1 -0
  525. package/lib/switch/style/index.js +3 -0
  526. package/lib/tab/Tab.d.ts +58 -0
  527. package/lib/tab/Tab.js +132 -0
  528. package/lib/tab/index.css +1 -0
  529. package/lib/tab/index.d.ts +45 -0
  530. package/lib/tab/index.js +33 -0
  531. package/lib/tab/style/index.d.ts +1 -0
  532. package/lib/tab/style/index.js +7 -0
  533. package/lib/tabs/Tabs.d.ts +154 -0
  534. package/lib/tabs/Tabs.js +377 -0
  535. package/lib/tabs/TabsContent.d.ts +43 -0
  536. package/lib/tabs/TabsContent.js +83 -0
  537. package/lib/tabs/TabsTitle.d.ts +45 -0
  538. package/lib/tabs/TabsTitle.js +109 -0
  539. package/lib/tabs/index.css +1 -0
  540. package/lib/tabs/index.d.ts +114 -0
  541. package/lib/tabs/index.js +33 -0
  542. package/lib/tabs/style/index.d.ts +1 -0
  543. package/lib/tabs/style/index.js +5 -0
  544. package/lib/tabs/types.d.ts +23 -0
  545. package/lib/tabs/types.js +15 -0
  546. package/lib/tabs/utils.d.ts +3 -0
  547. package/lib/tabs/utils.js +56 -0
  548. package/lib/toast/Toast.d.ts +112 -0
  549. package/lib/toast/Toast.js +138 -0
  550. package/lib/toast/function-call.d.ts +10 -0
  551. package/lib/toast/function-call.js +167 -0
  552. package/lib/toast/index.css +1 -0
  553. package/lib/toast/index.d.ts +79 -0
  554. package/lib/toast/index.js +42 -0
  555. package/lib/toast/lock-click.d.ts +1 -0
  556. package/lib/toast/lock-click.js +36 -0
  557. package/lib/toast/style/index.d.ts +1 -0
  558. package/lib/toast/style/index.js +7 -0
  559. package/lib/toast/types.d.ts +36 -0
  560. package/lib/toast/types.js +15 -0
  561. package/lib/utils/basic.d.ts +18 -0
  562. package/lib/utils/basic.js +51 -0
  563. package/lib/utils/constant.d.ts +8 -0
  564. package/lib/utils/constant.js +37 -0
  565. package/lib/utils/create.d.ts +17 -0
  566. package/lib/utils/create.js +75 -0
  567. package/lib/utils/deep-assign.d.ts +3 -0
  568. package/lib/utils/deep-assign.js +41 -0
  569. package/lib/utils/deep-clone.d.ts +1 -0
  570. package/lib/utils/deep-clone.js +39 -0
  571. package/lib/utils/dom.d.ts +12 -0
  572. package/lib/utils/dom.js +86 -0
  573. package/lib/utils/format.d.ts +13 -0
  574. package/lib/utils/format.js +139 -0
  575. package/lib/utils/index.d.ts +9 -0
  576. package/lib/utils/index.js +25 -0
  577. package/lib/utils/interceptor.d.ts +6 -0
  578. package/lib/utils/interceptor.js +48 -0
  579. package/lib/utils/mount-component.d.ts +14 -0
  580. package/lib/utils/mount-component.js +58 -0
  581. package/lib/utils/props.d.ts +31 -0
  582. package/lib/utils/props.js +55 -0
  583. package/lib/utils/validate.d.ts +9 -0
  584. package/lib/utils/validate.js +41 -0
  585. package/lib/utils/with-install.d.ts +13 -0
  586. package/lib/utils/with-install.js +31 -0
  587. package/lib/vue-sfc-shim.d.ts +6 -0
  588. package/lib/vue-tsx-shim.d.ts +16 -0
  589. package/lib/web-types.json +3197 -0
  590. package/lib/zartui.cjs.js +6740 -0
  591. package/lib/zartui.es.js +6740 -0
  592. package/lib/zartui.js +6974 -0
  593. package/lib/zartui.min.js +1 -0
  594. package/package.json +50 -61
@@ -0,0 +1,113 @@
1
+ export declare const Button: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
3
+ url: StringConstructor;
4
+ replace: BooleanConstructor;
5
+ } & {
6
+ tag: {
7
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
8
+ default: keyof HTMLElementTagNameMap;
9
+ };
10
+ text: StringConstructor;
11
+ icon: StringConstructor;
12
+ type: {
13
+ type: import("vue").PropType<import("./types").ButtonType>;
14
+ default: import("./types").ButtonType;
15
+ };
16
+ size: {
17
+ type: import("vue").PropType<import("./types").ButtonSize>;
18
+ default: import("./types").ButtonSize;
19
+ };
20
+ color: StringConstructor;
21
+ backgroundColor: StringConstructor;
22
+ borderLess: BooleanConstructor;
23
+ borderColor: StringConstructor;
24
+ block: BooleanConstructor;
25
+ blockInner: BooleanConstructor;
26
+ plain: BooleanConstructor;
27
+ round: BooleanConstructor;
28
+ square: BooleanConstructor;
29
+ loading: BooleanConstructor;
30
+ hairline: BooleanConstructor;
31
+ disabled: BooleanConstructor;
32
+ iconPrefix: StringConstructor;
33
+ nativeType: {
34
+ type: import("vue").PropType<import("./types").ButtonNativeType>;
35
+ default: import("./types").ButtonNativeType;
36
+ };
37
+ loadingSize: (NumberConstructor | StringConstructor)[];
38
+ loadingText: StringConstructor;
39
+ loadingType: import("vue").PropType<import("..").LoadingType>;
40
+ iconPosition: {
41
+ type: import("vue").PropType<import("./types").ButtonIconPosition>;
42
+ default: import("./types").ButtonIconPosition;
43
+ };
44
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
+ to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
46
+ url: StringConstructor;
47
+ replace: BooleanConstructor;
48
+ } & {
49
+ tag: {
50
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
51
+ default: keyof HTMLElementTagNameMap;
52
+ };
53
+ text: StringConstructor;
54
+ icon: StringConstructor;
55
+ type: {
56
+ type: import("vue").PropType<import("./types").ButtonType>;
57
+ default: import("./types").ButtonType;
58
+ };
59
+ size: {
60
+ type: import("vue").PropType<import("./types").ButtonSize>;
61
+ default: import("./types").ButtonSize;
62
+ };
63
+ color: StringConstructor;
64
+ backgroundColor: StringConstructor;
65
+ borderLess: BooleanConstructor;
66
+ borderColor: StringConstructor;
67
+ block: BooleanConstructor;
68
+ blockInner: BooleanConstructor;
69
+ plain: BooleanConstructor;
70
+ round: BooleanConstructor;
71
+ square: BooleanConstructor;
72
+ loading: BooleanConstructor;
73
+ hairline: BooleanConstructor;
74
+ disabled: BooleanConstructor;
75
+ iconPrefix: StringConstructor;
76
+ nativeType: {
77
+ type: import("vue").PropType<import("./types").ButtonNativeType>;
78
+ default: import("./types").ButtonNativeType;
79
+ };
80
+ loadingSize: (NumberConstructor | StringConstructor)[];
81
+ loadingText: StringConstructor;
82
+ loadingType: import("vue").PropType<import("..").LoadingType>;
83
+ iconPosition: {
84
+ type: import("vue").PropType<import("./types").ButtonIconPosition>;
85
+ default: import("./types").ButtonIconPosition;
86
+ };
87
+ }>> & {
88
+ onClick?: ((...args: any[]) => any) | undefined;
89
+ }, {
90
+ replace: boolean;
91
+ type: import("./types").ButtonType;
92
+ tag: keyof HTMLElementTagNameMap;
93
+ round: boolean;
94
+ disabled: boolean;
95
+ size: import("./types").ButtonSize;
96
+ loading: boolean;
97
+ block: boolean;
98
+ square: boolean;
99
+ borderLess: boolean;
100
+ blockInner: boolean;
101
+ plain: boolean;
102
+ hairline: boolean;
103
+ nativeType: import("./types").ButtonNativeType;
104
+ iconPosition: import("./types").ButtonIconPosition;
105
+ }>>;
106
+ export default Button;
107
+ export type { ButtonProps } from './Button';
108
+ export type { ButtonType, ButtonSize, ButtonNativeType, ButtonIconPosition, } from './types';
109
+ declare module 'vue' {
110
+ interface GlobalComponents {
111
+ ZtButton: typeof Button;
112
+ }
113
+ }
@@ -0,0 +1,8 @@
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Button from "./Button.mjs";
3
+ const Button = withInstall(_Button);
4
+ var stdin_default = Button;
5
+ export {
6
+ Button,
7
+ stdin_default as default
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import "../../style/base.css";
2
+ import "../../badge/index.css";
3
+ import "../../icon/index.css";
4
+ import "../../loading/index.css";
5
+ import "../index.css";
@@ -0,0 +1,5 @@
1
+ import type { ButtonHTMLAttributes } from 'vue';
2
+ export declare type ButtonType = 'default' | 'primary' | 'primary-light' | 'success' | 'warning' | 'danger';
3
+ export declare type ButtonSize = 'normal' | 'medium' | 'small' | 'mini';
4
+ export declare type ButtonNativeType = NonNullable<ButtonHTMLAttributes['type']>;
5
+ export declare type ButtonIconPosition = 'left' | 'right';
File without changes
@@ -0,0 +1,128 @@
1
+ import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
2
+ export declare type CellSize = 'normal' | 'large';
3
+ export declare type CellArrowDirection = 'up' | 'down' | 'left' | 'right';
4
+ export declare const cellSharedProps: {
5
+ icon: StringConstructor;
6
+ size: PropType<CellSize>;
7
+ title: (NumberConstructor | StringConstructor)[];
8
+ value: (NumberConstructor | StringConstructor)[];
9
+ label: (NumberConstructor | StringConstructor)[];
10
+ center: BooleanConstructor;
11
+ isLink: BooleanConstructor;
12
+ border: {
13
+ type: BooleanConstructor;
14
+ default: true;
15
+ };
16
+ required: BooleanConstructor;
17
+ iconPrefix: StringConstructor;
18
+ valueClass: PropType<unknown>;
19
+ labelClass: PropType<unknown>;
20
+ titleClass: PropType<unknown>;
21
+ titleStyle: PropType<string | CSSProperties>;
22
+ arrowDirection: PropType<CellArrowDirection>;
23
+ clickable: {
24
+ type: PropType<boolean | null>;
25
+ default: null;
26
+ };
27
+ direction: StringConstructor;
28
+ fullLine: BooleanConstructor;
29
+ };
30
+ declare const cellProps: {
31
+ icon: StringConstructor;
32
+ size: PropType<CellSize>;
33
+ title: (NumberConstructor | StringConstructor)[];
34
+ value: (NumberConstructor | StringConstructor)[];
35
+ label: (NumberConstructor | StringConstructor)[];
36
+ center: BooleanConstructor;
37
+ isLink: BooleanConstructor;
38
+ border: {
39
+ type: BooleanConstructor;
40
+ default: true;
41
+ };
42
+ required: BooleanConstructor;
43
+ iconPrefix: StringConstructor;
44
+ valueClass: PropType<unknown>;
45
+ labelClass: PropType<unknown>;
46
+ titleClass: PropType<unknown>;
47
+ titleStyle: PropType<string | CSSProperties>;
48
+ arrowDirection: PropType<CellArrowDirection>;
49
+ clickable: {
50
+ type: PropType<boolean | null>;
51
+ default: null;
52
+ };
53
+ direction: StringConstructor;
54
+ fullLine: BooleanConstructor;
55
+ } & {
56
+ to: PropType<import("vue-router").RouteLocationRaw>;
57
+ url: StringConstructor;
58
+ replace: BooleanConstructor;
59
+ };
60
+ export declare type CellProps = ExtractPropTypes<typeof cellProps>;
61
+ declare const _default: import("vue").DefineComponent<{
62
+ icon: StringConstructor;
63
+ size: PropType<CellSize>;
64
+ title: (NumberConstructor | StringConstructor)[];
65
+ value: (NumberConstructor | StringConstructor)[];
66
+ label: (NumberConstructor | StringConstructor)[];
67
+ center: BooleanConstructor;
68
+ isLink: BooleanConstructor;
69
+ border: {
70
+ type: BooleanConstructor;
71
+ default: true;
72
+ };
73
+ required: BooleanConstructor;
74
+ iconPrefix: StringConstructor;
75
+ valueClass: PropType<unknown>;
76
+ labelClass: PropType<unknown>;
77
+ titleClass: PropType<unknown>;
78
+ titleStyle: PropType<string | CSSProperties>;
79
+ arrowDirection: PropType<CellArrowDirection>;
80
+ clickable: {
81
+ type: PropType<boolean | null>;
82
+ default: null;
83
+ };
84
+ direction: StringConstructor;
85
+ fullLine: BooleanConstructor;
86
+ } & {
87
+ to: PropType<import("vue-router").RouteLocationRaw>;
88
+ url: StringConstructor;
89
+ replace: BooleanConstructor;
90
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
91
+ icon: StringConstructor;
92
+ size: PropType<CellSize>;
93
+ title: (NumberConstructor | StringConstructor)[];
94
+ value: (NumberConstructor | StringConstructor)[];
95
+ label: (NumberConstructor | StringConstructor)[];
96
+ center: BooleanConstructor;
97
+ isLink: BooleanConstructor;
98
+ border: {
99
+ type: BooleanConstructor;
100
+ default: true;
101
+ };
102
+ required: BooleanConstructor;
103
+ iconPrefix: StringConstructor;
104
+ valueClass: PropType<unknown>;
105
+ labelClass: PropType<unknown>;
106
+ titleClass: PropType<unknown>;
107
+ titleStyle: PropType<string | CSSProperties>;
108
+ arrowDirection: PropType<CellArrowDirection>;
109
+ clickable: {
110
+ type: PropType<boolean | null>;
111
+ default: null;
112
+ };
113
+ direction: StringConstructor;
114
+ fullLine: BooleanConstructor;
115
+ } & {
116
+ to: PropType<import("vue-router").RouteLocationRaw>;
117
+ url: StringConstructor;
118
+ replace: BooleanConstructor;
119
+ }>>, {
120
+ replace: boolean;
121
+ required: boolean;
122
+ center: boolean;
123
+ border: boolean;
124
+ isLink: boolean;
125
+ clickable: boolean | null;
126
+ fullLine: boolean;
127
+ }>;
128
+ export default _default;
@@ -0,0 +1,132 @@
1
+ import { createVNode as _createVNode } from "vue";
2
+ import { defineComponent } from "vue";
3
+ import { isDef, extend, truthProp, unknownProp, numericProp, createNamespace } from "../utils/index.mjs";
4
+ import { useRoute, routeProps } from "../composables/use-route.mjs";
5
+ import { Icon } from "../icon/index.mjs";
6
+ const [name, bem] = createNamespace("cell");
7
+ const cellSharedProps = {
8
+ icon: String,
9
+ size: String,
10
+ title: numericProp,
11
+ value: numericProp,
12
+ label: numericProp,
13
+ center: Boolean,
14
+ isLink: Boolean,
15
+ border: truthProp,
16
+ required: Boolean,
17
+ iconPrefix: String,
18
+ valueClass: unknownProp,
19
+ labelClass: unknownProp,
20
+ titleClass: unknownProp,
21
+ titleStyle: null,
22
+ arrowDirection: String,
23
+ clickable: {
24
+ type: Boolean,
25
+ default: null
26
+ },
27
+ direction: String,
28
+ fullLine: Boolean
29
+ };
30
+ const cellProps = extend({}, cellSharedProps, routeProps);
31
+ var stdin_default = defineComponent({
32
+ name,
33
+ props: cellProps,
34
+ setup(props, {
35
+ slots
36
+ }) {
37
+ const route = useRoute();
38
+ const renderLabel = () => {
39
+ const showLabel = slots.label || isDef(props.label);
40
+ if (showLabel) {
41
+ return _createVNode("div", {
42
+ "class": [bem("label"), props.labelClass]
43
+ }, [slots.label ? slots.label() : props.label]);
44
+ }
45
+ };
46
+ const renderTitle = () => {
47
+ if (slots.title || isDef(props.title)) {
48
+ return _createVNode("div", {
49
+ "class": [bem("title"), props.titleClass],
50
+ "style": props.titleStyle
51
+ }, [slots.title ? slots.title() : _createVNode("span", {
52
+ "class": bem("title") + "-text"
53
+ }, [props.title]), renderLabel()]);
54
+ }
55
+ };
56
+ const renderRightIcon = () => {
57
+ if (slots["right-icon"]) {
58
+ return slots["right-icon"]();
59
+ }
60
+ if (props.isLink) {
61
+ const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow-right";
62
+ return _createVNode(Icon, {
63
+ "name": name2,
64
+ "class": bem("right-icon"),
65
+ "size": "20"
66
+ }, null);
67
+ }
68
+ };
69
+ const renderValue = () => {
70
+ var _a;
71
+ const slot = slots.value || slots.default;
72
+ const hasValue = slot || isDef(props.value);
73
+ if (hasValue) {
74
+ return _createVNode("div", {
75
+ "class": [bem("value"), props.valueClass, (props == null ? void 0 : props.fullLine) ? bem("full-line") : ""]
76
+ }, [slot ? slot() : _createVNode("span", {
77
+ "class": bem("value-text")
78
+ }, [props.value]), (_a = slots.extra) == null ? void 0 : _a.call(slots), renderRightIcon()]);
79
+ }
80
+ };
81
+ const renderLeftIcon = () => {
82
+ if (slots.icon) {
83
+ return slots.icon();
84
+ }
85
+ if (props.icon) {
86
+ return _createVNode(Icon, {
87
+ "name": props.icon,
88
+ "class": bem("left-icon"),
89
+ "classPrefix": props.iconPrefix
90
+ }, null);
91
+ }
92
+ };
93
+ return () => {
94
+ var _a;
95
+ const {
96
+ size,
97
+ center,
98
+ border,
99
+ isLink,
100
+ required
101
+ } = props;
102
+ const clickable = (_a = props.clickable) != null ? _a : isLink;
103
+ const classes = {
104
+ center,
105
+ required,
106
+ clickable,
107
+ borderless: !border
108
+ };
109
+ if (size) {
110
+ classes[size] = !!size;
111
+ }
112
+ if ((props == null ? void 0 : props.direction) === "row") {
113
+ return _createVNode("div", {
114
+ "class": [bem(classes), bem("direction__row")],
115
+ "role": clickable ? "button" : void 0,
116
+ "tabindex": clickable ? 0 : void 0,
117
+ "onClick": route
118
+ }, [renderLeftIcon(), renderTitle(), renderValue()]);
119
+ }
120
+ return _createVNode("div", {
121
+ "class": bem(classes),
122
+ "role": clickable ? "button" : void 0,
123
+ "tabindex": clickable ? 0 : void 0,
124
+ "onClick": route
125
+ }, [renderLeftIcon(), renderTitle(), renderValue()]);
126
+ };
127
+ }
128
+ });
129
+ export {
130
+ cellSharedProps,
131
+ stdin_default as default
132
+ };
@@ -0,0 +1 @@
1
+ body{--zt-cell-font-size: var(--zt-font-size-md);--zt-cell-line-height: 20px;--zt-cell-vertical-padding: 10px;--zt-cell-horizontal-padding: var(--zt-padding-md);--zt-cell-text-color: var(--zt-text-color);--zt-cell-border-color: var(--zt-border-color);--zt-cell-active-color: var(--zt-active-color);--zt-cell-required-color: var(--zt-danger-color);--zt-cell-label-color: var(--zt-text-color-2);--zt-cell-label-font-size: var(--zt-font-size-sm);--zt-cell-label-line-height: var(--zt-line-height-sm);--zt-cell-label-margin-top: var(--zt-padding-base);--zt-cell-value-color: var(--zt-text-color-2);--zt-cell-icon-size: 16px;--zt-cell-right-icon-color: var(--zt-text-color-a4);--zt-cell-large-vertical-padding: var(--zt-padding-sm);--zt-cell-large-title-font-size: var(--zt-font-size-lg);--zt-cell-large-label-font-size: var(--zt-font-size-md);--zt-cell-value-height: 44px;--zt-cell-background: var(--zt-background);--zt-cell-value-padding: 12px 12px 12px 12px;--zt-cell-direction: column;--zt-cell-title-text-line-height: 20px;--zt-cell-value-color: var(--zt-gray-8)}.zt-cell{position:relative;display:flex;box-sizing:border-box;width:100%;overflow:hidden;color:var(--zt-cell-text-color);font-size:var(--zt-cell-font-size);line-height:var(--zt-cell-line-height);background:var(--zt-cell-background);flex-direction:var(--zt-cell-direction)}.zt-cell:last-child:after,.zt-cell--borderless:after{display:none}.zt-cell__label{margin-top:var(--zt-cell-label-margin-top);color:var(--zt-cell-label-color);font-size:var(--zt-cell-label-font-size);line-height:var(--zt-cell-label-line-height)}.zt-cell__value{position:relative;overflow:hidden;color:var(--zt-cell-value-color);vertical-align:middle;word-wrap:break-word;background:#ffffff;padding:var(--zt-cell-value-padding);box-sizing:border-box;display:flex}.zt-cell__value-text{font-size:var(--zt-cell-font-size);color:var(--zt-cell-value-color);display:inline-block;line-height:var(--zt-cell-title-text-line-height);word-break:break-all;flex:1}.zt-cell__title{margin-bottom:8px;display:flex;align-items:center}.zt-cell__title-text{font-size:var(--zt-cell-font-size);color:var(--zt-cell-value-color);line-height:var(--zt-cell-title-text-line-height);word-break:break-all;display:inline-block;max-height:var(--zt-cell-title-text-line-height);overflow:hidden}.zt-cell__left-icon,.zt-cell__right-icon{height:var(--zt-cell-line-height);font-size:var(--zt-cell-icon-size);line-height:var(--zt-cell-line-height)}.zt-cell__left-icon{margin-right:var(--zt-padding-base)}.zt-cell__right-icon{margin-left:var(--zt-padding-base);color:var(--zt-cell-right-icon-color)}.zt-cell--clickable{cursor:pointer}.zt-cell--clickable .zt-cell__value:active{background-color:var(--zt-cell-active-color)}.zt-cell--required{overflow:visible}.zt-cell--required:before{position:absolute;left:var(--zt-padding-xs);color:var(--zt-cell-required-color);font-size:var(--zt-cell-font-size);content:"*"}.zt-cell--center{align-items:center}.zt-cell--large{padding-top:var(--zt-cell-large-vertical-padding);padding-bottom:var(--zt-cell-large-vertical-padding)}.zt-cell--large .zt-cell__title{font-size:var(--zt-cell-large-title-font-size)}.zt-cell--large .zt-cell__label{font-size:var(--zt-cell-large-label-font-size)}.zt-cell__direction__row{flex-direction:row;justify-content:space-between;background:#ffffff}.zt-cell__direction__row .zt-cell__title{padding:10px 16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;margin:0}.zt-cell__direction__row .zt-cell__value{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zt-cell__full-line{padding:12px 16px}
@@ -0,0 +1,74 @@
1
+ export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ icon: StringConstructor;
3
+ size: import("vue").PropType<import("./Cell").CellSize>;
4
+ title: (NumberConstructor | StringConstructor)[];
5
+ value: (NumberConstructor | StringConstructor)[];
6
+ label: (NumberConstructor | StringConstructor)[];
7
+ center: BooleanConstructor;
8
+ isLink: BooleanConstructor;
9
+ border: {
10
+ type: BooleanConstructor;
11
+ default: true;
12
+ };
13
+ required: BooleanConstructor;
14
+ iconPrefix: StringConstructor;
15
+ valueClass: import("vue").PropType<unknown>;
16
+ labelClass: import("vue").PropType<unknown>;
17
+ titleClass: import("vue").PropType<unknown>;
18
+ titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
19
+ arrowDirection: import("vue").PropType<import("./Cell").CellArrowDirection>;
20
+ clickable: {
21
+ type: import("vue").PropType<boolean | null>;
22
+ default: null;
23
+ };
24
+ direction: StringConstructor;
25
+ fullLine: BooleanConstructor;
26
+ } & {
27
+ to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
28
+ url: StringConstructor;
29
+ replace: BooleanConstructor;
30
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
+ icon: StringConstructor;
32
+ size: import("vue").PropType<import("./Cell").CellSize>;
33
+ title: (NumberConstructor | StringConstructor)[];
34
+ value: (NumberConstructor | StringConstructor)[];
35
+ label: (NumberConstructor | StringConstructor)[];
36
+ center: BooleanConstructor;
37
+ isLink: BooleanConstructor;
38
+ border: {
39
+ type: BooleanConstructor;
40
+ default: true;
41
+ };
42
+ required: BooleanConstructor;
43
+ iconPrefix: StringConstructor;
44
+ valueClass: import("vue").PropType<unknown>;
45
+ labelClass: import("vue").PropType<unknown>;
46
+ titleClass: import("vue").PropType<unknown>;
47
+ titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
48
+ arrowDirection: import("vue").PropType<import("./Cell").CellArrowDirection>;
49
+ clickable: {
50
+ type: import("vue").PropType<boolean | null>;
51
+ default: null;
52
+ };
53
+ direction: StringConstructor;
54
+ fullLine: BooleanConstructor;
55
+ } & {
56
+ to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
57
+ url: StringConstructor;
58
+ replace: BooleanConstructor;
59
+ }>>, {
60
+ replace: boolean;
61
+ required: boolean;
62
+ center: boolean;
63
+ border: boolean;
64
+ isLink: boolean;
65
+ clickable: boolean | null;
66
+ fullLine: boolean;
67
+ }>>;
68
+ export default Cell;
69
+ export type { CellSize, CellProps, CellArrowDirection } from './Cell';
70
+ declare module 'vue' {
71
+ interface GlobalComponents {
72
+ ZtCell: typeof Cell;
73
+ }
74
+ }
@@ -0,0 +1,8 @@
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Cell from "./Cell.mjs";
3
+ const Cell = withInstall(_Cell);
4
+ var stdin_default = Cell;
5
+ export {
6
+ Cell,
7
+ stdin_default as default
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import "../../style/base.css";
2
+ import "../../badge/index.css";
3
+ import "../../icon/index.css";
4
+ import "../index.css";
@@ -0,0 +1,38 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const colProps: {
3
+ tag: {
4
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
5
+ default: keyof HTMLElementTagNameMap;
6
+ };
7
+ span: {
8
+ type: (NumberConstructor | StringConstructor)[];
9
+ default: number;
10
+ };
11
+ offset: (NumberConstructor | StringConstructor)[];
12
+ };
13
+ export declare type ColProps = ExtractPropTypes<typeof colProps>;
14
+ declare const _default: import("vue").DefineComponent<{
15
+ tag: {
16
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
17
+ default: keyof HTMLElementTagNameMap;
18
+ };
19
+ span: {
20
+ type: (NumberConstructor | StringConstructor)[];
21
+ default: number;
22
+ };
23
+ offset: (NumberConstructor | StringConstructor)[];
24
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
25
+ tag: {
26
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
27
+ default: keyof HTMLElementTagNameMap;
28
+ };
29
+ span: {
30
+ type: (NumberConstructor | StringConstructor)[];
31
+ default: number;
32
+ };
33
+ offset: (NumberConstructor | StringConstructor)[];
34
+ }>>, {
35
+ span: string | number;
36
+ tag: keyof HTMLElementTagNameMap;
37
+ }>;
38
+ export default _default;
package/es/col/Col.mjs ADDED
@@ -0,0 +1,63 @@
1
+ import { createVNode as _createVNode } from "vue";
2
+ import { computed, defineComponent } from "vue";
3
+ import { numericProp, createNamespace, makeNumericProp, makeStringProp } from "../utils/index.mjs";
4
+ import { useParent } from "@zartui/use";
5
+ import { ROW_KEY } from "../row/Row.mjs";
6
+ const [name, bem] = createNamespace("col");
7
+ const colProps = {
8
+ tag: makeStringProp("div"),
9
+ span: makeNumericProp(0),
10
+ offset: numericProp
11
+ };
12
+ var stdin_default = defineComponent({
13
+ name,
14
+ props: colProps,
15
+ setup(props, {
16
+ slots
17
+ }) {
18
+ const {
19
+ parent,
20
+ index
21
+ } = useParent(ROW_KEY);
22
+ const style = computed(() => {
23
+ if (!parent) {
24
+ return;
25
+ }
26
+ const {
27
+ spaces
28
+ } = parent;
29
+ if (spaces && spaces.value && spaces.value[index.value]) {
30
+ const {
31
+ left,
32
+ right
33
+ } = spaces.value[index.value];
34
+ return {
35
+ paddingLeft: left ? `${left}px` : null,
36
+ paddingRight: right ? `${right}px` : null
37
+ };
38
+ }
39
+ });
40
+ return () => {
41
+ const {
42
+ tag,
43
+ span,
44
+ offset
45
+ } = props;
46
+ return _createVNode(tag, {
47
+ "style": style.value,
48
+ "class": bem({
49
+ [span]: span,
50
+ [`offset-${offset}`]: offset
51
+ })
52
+ }, {
53
+ default: () => {
54
+ var _a;
55
+ return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
56
+ }
57
+ });
58
+ };
59
+ }
60
+ });
61
+ export {
62
+ stdin_default as default
63
+ };
@@ -0,0 +1 @@
1
+ .zt-col{display:block;box-sizing:border-box;min-height:1px}.zt-col--1{flex:0 0 4.16666667%;max-width:4.16666667%}.zt-col--offset-1{margin-left:4.16666667%}.zt-col--2{flex:0 0 8.33333333%;max-width:8.33333333%}.zt-col--offset-2{margin-left:8.33333333%}.zt-col--3{flex:0 0 12.5%;max-width:12.5%}.zt-col--offset-3{margin-left:12.5%}.zt-col--4{flex:0 0 16.66666667%;max-width:16.66666667%}.zt-col--offset-4{margin-left:16.66666667%}.zt-col--5{flex:0 0 20.83333333%;max-width:20.83333333%}.zt-col--offset-5{margin-left:20.83333333%}.zt-col--6{flex:0 0 25%;max-width:25%}.zt-col--offset-6{margin-left:25%}.zt-col--7{flex:0 0 29.16666667%;max-width:29.16666667%}.zt-col--offset-7{margin-left:29.16666667%}.zt-col--8{flex:0 0 33.33333333%;max-width:33.33333333%}.zt-col--offset-8{margin-left:33.33333333%}.zt-col--9{flex:0 0 37.5%;max-width:37.5%}.zt-col--offset-9{margin-left:37.5%}.zt-col--10{flex:0 0 41.66666667%;max-width:41.66666667%}.zt-col--offset-10{margin-left:41.66666667%}.zt-col--11{flex:0 0 45.83333333%;max-width:45.83333333%}.zt-col--offset-11{margin-left:45.83333333%}.zt-col--12{flex:0 0 50%;max-width:50%}.zt-col--offset-12{margin-left:50%}.zt-col--13{flex:0 0 54.16666667%;max-width:54.16666667%}.zt-col--offset-13{margin-left:54.16666667%}.zt-col--14{flex:0 0 58.33333333%;max-width:58.33333333%}.zt-col--offset-14{margin-left:58.33333333%}.zt-col--15{flex:0 0 62.5%;max-width:62.5%}.zt-col--offset-15{margin-left:62.5%}.zt-col--16{flex:0 0 66.66666667%;max-width:66.66666667%}.zt-col--offset-16{margin-left:66.66666667%}.zt-col--17{flex:0 0 70.83333333%;max-width:70.83333333%}.zt-col--offset-17{margin-left:70.83333333%}.zt-col--18{flex:0 0 75%;max-width:75%}.zt-col--offset-18{margin-left:75%}.zt-col--19{flex:0 0 79.16666667%;max-width:79.16666667%}.zt-col--offset-19{margin-left:79.16666667%}.zt-col--20{flex:0 0 83.33333333%;max-width:83.33333333%}.zt-col--offset-20{margin-left:83.33333333%}.zt-col--21{flex:0 0 87.5%;max-width:87.5%}.zt-col--offset-21{margin-left:87.5%}.zt-col--22{flex:0 0 91.66666667%;max-width:91.66666667%}.zt-col--offset-22{margin-left:91.66666667%}.zt-col--23{flex:0 0 95.83333333%;max-width:95.83333333%}.zt-col--offset-23{margin-left:95.83333333%}.zt-col--24{flex:0 0 100%;max-width:100%}.zt-col--offset-24{margin-left:100%}
@@ -0,0 +1,31 @@
1
+ export declare const Col: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ tag: {
3
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
4
+ default: keyof HTMLElementTagNameMap;
5
+ };
6
+ span: {
7
+ type: (NumberConstructor | StringConstructor)[];
8
+ default: number;
9
+ };
10
+ offset: (NumberConstructor | StringConstructor)[];
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ tag: {
13
+ type: import("vue").PropType<keyof HTMLElementTagNameMap>;
14
+ default: keyof HTMLElementTagNameMap;
15
+ };
16
+ span: {
17
+ type: (NumberConstructor | StringConstructor)[];
18
+ default: number;
19
+ };
20
+ offset: (NumberConstructor | StringConstructor)[];
21
+ }>>, {
22
+ span: string | number;
23
+ tag: keyof HTMLElementTagNameMap;
24
+ }>>;
25
+ export default Col;
26
+ export type { ColProps } from './Col';
27
+ declare module 'vue' {
28
+ interface GlobalComponents {
29
+ ZtCol: typeof Col;
30
+ }
31
+ }
@@ -0,0 +1,8 @@
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Col from "./Col.mjs";
3
+ const Col = withInstall(_Col);
4
+ var stdin_default = Col;
5
+ export {
6
+ Col,
7
+ stdin_default as default
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import "../../style/base.css";
2
+ import "../../row/index.css";
3
+ import "../index.css";
@@ -0,0 +1,3 @@
1
+ import { InjectionKey } from 'vue';
2
+ export declare const POPUP_TOGGLE_KEY: InjectionKey<() => boolean>;
3
+ export declare function onPopupReopen(callback: () => void): void;