zartui 0.1.113 → 3.0.1

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 (1518) 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 -1
  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 -1
  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/{style/var.css → 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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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/{telemetry/index.css → 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 -1
  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 -1
  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/{telemetry/index.less → 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/{lib/style/var.css → 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 -1
  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 -1
  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 -1
  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 -1
  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/{lib/telemetry/index.css → 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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  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 -1
  203. package/es/style/base.css +1 -1
  204. package/es/style/css-variables.css +1 -0
  205. package/es/style/normalize.css +1 -1
  206. package/es/swipe/Swipe.d.ts +121 -0
  207. package/es/swipe/Swipe.mjs +353 -0
  208. package/es/swipe/index.css +1 -1
  209. package/es/swipe/index.d.ts +90 -0
  210. package/es/swipe/index.mjs +8 -0
  211. package/es/swipe/style/index.d.ts +1 -0
  212. package/es/swipe/style/index.mjs +2 -0
  213. package/es/swipe/types.d.ts +31 -0
  214. package/{lib/telemetry/index.less → es/swipe/types.mjs} +0 -0
  215. package/es/swipe-item/SwipeItem.d.ts +2 -0
  216. package/es/swipe-item/SwipeItem.mjs +82 -0
  217. package/es/swipe-item/index.css +1 -1
  218. package/es/swipe-item/index.d.ts +7 -0
  219. package/es/swipe-item/index.mjs +8 -0
  220. package/es/swipe-item/style/index.d.ts +1 -0
  221. package/es/swipe-item/style/index.mjs +3 -0
  222. package/es/switch/Switch.d.ts +58 -0
  223. package/es/switch/Switch.mjs +85 -0
  224. package/es/switch/index.css +1 -1
  225. package/es/switch/index.d.ts +46 -0
  226. package/es/switch/index.mjs +8 -0
  227. package/es/switch/style/index.d.ts +1 -0
  228. package/es/switch/style/index.mjs +3 -0
  229. package/es/tab/Tab.d.ts +58 -0
  230. package/es/tab/Tab.mjs +113 -0
  231. package/es/tab/index.css +1 -1
  232. package/es/tab/index.d.ts +45 -0
  233. package/es/tab/index.mjs +8 -0
  234. package/es/tab/style/index.d.ts +1 -0
  235. package/es/tab/style/index.mjs +7 -0
  236. package/es/tabs/Tabs.d.ts +154 -0
  237. package/es/tabs/Tabs.mjs +352 -0
  238. package/es/tabs/TabsContent.d.ts +43 -0
  239. package/es/tabs/TabsContent.mjs +64 -0
  240. package/es/tabs/TabsTitle.d.ts +45 -0
  241. package/es/tabs/TabsTitle.mjs +90 -0
  242. package/es/tabs/index.css +1 -1
  243. package/es/tabs/index.d.ts +114 -0
  244. package/es/tabs/index.mjs +8 -0
  245. package/es/tabs/style/index.d.ts +1 -0
  246. package/es/tabs/style/index.mjs +5 -0
  247. package/es/tabs/types.d.ts +23 -0
  248. package/es/tabs/types.mjs +0 -0
  249. package/es/tabs/utils.d.ts +3 -0
  250. package/es/tabs/utils.mjs +37 -0
  251. package/es/toast/Toast.d.ts +112 -0
  252. package/es/toast/Toast.mjs +119 -0
  253. package/es/toast/function-call.d.ts +10 -0
  254. package/es/toast/function-call.mjs +142 -0
  255. package/es/toast/index.css +1 -1
  256. package/es/toast/index.d.ts +79 -0
  257. package/es/toast/index.mjs +26 -0
  258. package/es/toast/lock-click.d.ts +1 -0
  259. package/es/toast/lock-click.mjs +17 -0
  260. package/es/toast/style/index.d.ts +1 -0
  261. package/es/toast/style/index.mjs +7 -0
  262. package/es/toast/types.d.ts +36 -0
  263. package/es/toast/types.mjs +0 -0
  264. package/es/utils/basic.d.ts +18 -0
  265. package/es/utils/basic.mjs +32 -0
  266. package/es/utils/constant.d.ts +8 -0
  267. package/es/utils/constant.mjs +18 -0
  268. package/es/utils/create.d.ts +17 -0
  269. package/es/utils/create.mjs +50 -0
  270. package/es/utils/deep-assign.d.ts +3 -0
  271. package/es/utils/deep-assign.mjs +22 -0
  272. package/es/utils/deep-clone.d.ts +1 -0
  273. package/es/utils/deep-clone.mjs +20 -0
  274. package/es/utils/dom.d.ts +12 -0
  275. package/es/utils/dom.mjs +67 -0
  276. package/es/utils/format.d.ts +13 -0
  277. package/es/utils/format.mjs +120 -0
  278. package/es/utils/index.d.ts +9 -0
  279. package/es/utils/index.mjs +9 -0
  280. package/es/utils/interceptor.d.ts +6 -0
  281. package/es/utils/interceptor.mjs +29 -0
  282. package/es/utils/mount-component.d.ts +14 -0
  283. package/es/utils/mount-component.mjs +39 -0
  284. package/es/utils/props.d.ts +31 -0
  285. package/es/utils/props.mjs +36 -0
  286. package/es/utils/validate.d.ts +9 -0
  287. package/es/utils/validate.mjs +22 -0
  288. package/es/utils/with-install.d.ts +13 -0
  289. package/es/utils/with-install.mjs +12 -0
  290. package/es/vue-sfc-shim.d.ts +6 -0
  291. package/es/vue-tsx-shim.d.ts +16 -0
  292. package/lib/badge/Badge.d.ts +66 -0
  293. package/lib/badge/Badge.js +114 -0
  294. package/lib/badge/index.css +1 -1
  295. package/lib/badge/index.d.ts +49 -0
  296. package/lib/badge/index.js +31 -74
  297. package/lib/badge/style/index.d.ts +1 -0
  298. package/lib/badge/style/index.js +2 -2
  299. package/lib/button/Button.d.ts +154 -0
  300. package/lib/button/Button.js +185 -0
  301. package/lib/button/index.css +1 -1
  302. package/lib/button/index.d.ts +113 -0
  303. package/lib/button/index.js +31 -201
  304. package/lib/button/style/index.d.ts +1 -0
  305. package/lib/button/style/index.js +5 -5
  306. package/lib/button/types.d.ts +5 -0
  307. package/lib/button/types.js +15 -0
  308. package/lib/cell/Cell.d.ts +128 -0
  309. package/lib/cell/Cell.js +151 -0
  310. package/lib/cell/index.css +1 -1
  311. package/lib/cell/index.d.ts +74 -0
  312. package/lib/cell/index.js +33 -153
  313. package/lib/cell/style/index.d.ts +1 -0
  314. package/lib/cell/style/index.js +4 -4
  315. package/lib/col/Col.d.ts +38 -0
  316. package/lib/col/Col.js +82 -0
  317. package/lib/col/index.css +1 -1
  318. package/lib/col/index.d.ts +31 -0
  319. package/lib/col/index.js +31 -61
  320. package/lib/col/style/index.d.ts +1 -0
  321. package/lib/col/style/index.js +3 -2
  322. package/lib/composables/on-popup-reopen.d.ts +3 -0
  323. package/lib/composables/on-popup-reopen.js +35 -0
  324. package/lib/composables/use-expose.d.ts +1 -0
  325. package/lib/composables/use-expose.js +30 -0
  326. package/lib/composables/use-height.d.ts +2 -0
  327. package/lib/composables/use-height.js +39 -0
  328. package/lib/composables/use-id.d.ts +1 -0
  329. package/lib/composables/use-id.js +32 -0
  330. package/lib/composables/use-lazy-render.d.ts +2 -0
  331. package/lib/composables/use-lazy-render.js +36 -0
  332. package/lib/composables/use-lock-scroll.d.ts +2 -0
  333. package/lib/composables/use-lock-scroll.js +75 -0
  334. package/lib/composables/use-placeholder.d.ts +3 -0
  335. package/lib/composables/use-placeholder.js +33 -0
  336. package/lib/composables/use-refs.d.ts +2 -0
  337. package/lib/composables/use-refs.js +39 -0
  338. package/lib/composables/use-route.d.ts +13 -0
  339. package/lib/composables/use-route.js +46 -0
  340. package/lib/composables/use-tab-status.d.ts +3 -0
  341. package/lib/composables/use-tab-status.js +26 -0
  342. package/lib/composables/use-touch.d.ts +16 -0
  343. package/lib/composables/use-touch.js +80 -0
  344. package/lib/composables/use-visibility-change.d.ts +2 -0
  345. package/lib/composables/use-visibility-change.js +49 -0
  346. package/lib/config-provider/ConfigProvider.d.ts +47 -0
  347. package/lib/config-provider/ConfigProvider.js +83 -0
  348. package/lib/config-provider/index.d.ts +33 -0
  349. package/lib/config-provider/index.js +33 -0
  350. package/lib/config-provider/style/index.d.ts +1 -0
  351. package/lib/config-provider/style/index.js +1 -0
  352. package/lib/divider/Divider.d.ts +40 -0
  353. package/lib/divider/Divider.js +50 -0
  354. package/lib/divider/index.css +1 -1
  355. package/lib/divider/index.d.ts +32 -0
  356. package/lib/divider/index.js +31 -55
  357. package/lib/divider/style/index.d.ts +1 -0
  358. package/lib/divider/style/index.js +2 -2
  359. package/lib/empty/Empty.d.ts +29 -0
  360. package/lib/empty/Empty.js +77 -0
  361. package/lib/empty/Images.d.ts +4 -0
  362. package/lib/empty/Images.js +2123 -0
  363. package/lib/empty/index.css +1 -1
  364. package/lib/empty/index.d.ts +24 -0
  365. package/lib/empty/index.js +31 -117
  366. package/lib/empty/style/index.d.ts +1 -0
  367. package/lib/empty/style/index.js +2 -2
  368. package/lib/icon/Icon.d.ts +45 -0
  369. package/lib/icon/Icon.js +78 -0
  370. package/lib/icon/config.d.ts +41 -0
  371. package/lib/icon/config.js +158 -0
  372. package/lib/icon/index.css +1 -1
  373. package/lib/icon/index.d.ts +35 -0
  374. package/lib/icon/index.js +30 -84
  375. package/lib/icon/style/index.d.ts +1 -0
  376. package/lib/icon/style/index.js +3 -3
  377. package/lib/index.css +1 -1
  378. package/lib/index.d.ts +35 -0
  379. package/lib/index.js +119 -332
  380. package/lib/list/List.d.ts +74 -0
  381. package/lib/list/List.js +166 -0
  382. package/lib/list/index.css +1 -1
  383. package/lib/list/index.d.ts +59 -0
  384. package/lib/list/index.js +31 -194
  385. package/lib/list/style/index.d.ts +1 -0
  386. package/lib/list/style/index.js +4 -4
  387. package/lib/list/types.d.ts +7 -0
  388. package/lib/list/types.js +15 -0
  389. package/lib/loading/Loading.d.ts +39 -0
  390. package/lib/loading/Loading.js +133 -0
  391. package/lib/loading/index.css +1 -1
  392. package/lib/loading/index.d.ts +31 -0
  393. package/lib/loading/index.js +31 -164
  394. package/lib/loading/style/index.d.ts +1 -0
  395. package/lib/loading/style/index.js +2 -2
  396. package/lib/locale/index.d.ts +7 -0
  397. package/lib/locale/index.js +44 -33
  398. package/lib/locale/lang/en-US.d.ts +62 -0
  399. package/lib/locale/lang/en-US.js +64 -76
  400. package/lib/locale/lang/zh-CN.d.ts +62 -0
  401. package/lib/locale/lang/zh-CN.js +64 -109
  402. package/lib/locale/style/index.d.ts +1 -0
  403. package/lib/locale/style/index.js +1 -1
  404. package/lib/notice-bar/NoticeBar.d.ts +71 -0
  405. package/lib/notice-bar/NoticeBar.js +190 -0
  406. package/lib/notice-bar/index.css +1 -1
  407. package/lib/notice-bar/index.d.ts +56 -0
  408. package/lib/notice-bar/index.js +31 -295
  409. package/lib/notice-bar/style/index.d.ts +1 -0
  410. package/lib/notice-bar/style/index.js +4 -4
  411. package/lib/notice-bar/types.d.ts +7 -0
  412. package/lib/notice-bar/types.js +15 -0
  413. package/lib/notify/Notify.d.ts +134 -0
  414. package/lib/notify/Notify.js +63 -0
  415. package/lib/notify/function-call.d.ts +6 -0
  416. package/lib/notify/function-call.js +93 -0
  417. package/lib/notify/index.css +1 -0
  418. package/lib/notify/index.d.ts +99 -0
  419. package/lib/notify/index.js +38 -0
  420. package/lib/notify/style/index.d.ts +1 -0
  421. package/lib/notify/style/index.js +6 -0
  422. package/lib/notify/types.d.ts +17 -0
  423. package/lib/notify/types.js +15 -0
  424. package/lib/number-keyboard/NumberKeyboard.d.ts +162 -0
  425. package/lib/number-keyboard/NumberKeyboard.js +268 -0
  426. package/lib/number-keyboard/NumberKeyboardKey.d.ts +24 -0
  427. package/lib/number-keyboard/NumberKeyboardKey.js +114 -0
  428. package/lib/number-keyboard/index.css +1 -1
  429. package/lib/number-keyboard/index.d.ts +119 -0
  430. package/lib/number-keyboard/index.js +31 -283
  431. package/lib/number-keyboard/style/index.d.ts +1 -0
  432. package/lib/number-keyboard/style/index.js +9 -3
  433. package/lib/overlay/Overlay.d.ts +51 -0
  434. package/lib/overlay/Overlay.js +66 -0
  435. package/lib/overlay/index.css +1 -1
  436. package/lib/overlay/index.d.ts +40 -0
  437. package/lib/overlay/index.js +31 -65
  438. package/lib/overlay/style/index.d.ts +1 -0
  439. package/lib/overlay/style/index.js +2 -2
  440. package/lib/password-input/PasswordInput.d.ts +63 -0
  441. package/lib/password-input/PasswordInput.js +97 -0
  442. package/lib/password-input/index.css +1 -1
  443. package/lib/password-input/index.d.ts +49 -0
  444. package/lib/password-input/index.js +31 -91
  445. package/lib/password-input/style/index.d.ts +1 -0
  446. package/lib/password-input/style/index.js +2 -2
  447. package/lib/popup/Popup.d.ts +165 -0
  448. package/lib/popup/Popup.js +224 -0
  449. package/lib/popup/index.css +1 -1
  450. package/lib/popup/index.d.ts +123 -0
  451. package/lib/popup/index.js +31 -131
  452. package/lib/popup/shared.d.ts +30 -0
  453. package/lib/popup/shared.js +41 -0
  454. package/lib/popup/style/index.d.ts +1 -0
  455. package/lib/popup/style/index.js +5 -5
  456. package/lib/popup/types.d.ts +8 -0
  457. package/lib/popup/types.js +15 -0
  458. package/lib/pull-refresh/PullRefresh.d.ts +75 -0
  459. package/lib/pull-refresh/PullRefresh.js +210 -0
  460. package/lib/pull-refresh/index.css +1 -1
  461. package/lib/pull-refresh/index.d.ts +58 -0
  462. package/lib/pull-refresh/index.js +31 -235
  463. package/lib/pull-refresh/style/index.d.ts +1 -0
  464. package/lib/pull-refresh/style/index.js +3 -3
  465. package/lib/rate/Rate.d.ts +107 -0
  466. package/lib/rate/Rate.js +236 -0
  467. package/lib/rate/index.css +1 -1
  468. package/lib/rate/index.d.ts +80 -0
  469. package/lib/rate/index.js +31 -238
  470. package/lib/rate/style/index.d.ts +1 -0
  471. package/lib/rate/style/index.js +4 -4
  472. package/lib/row/Row.d.ts +64 -0
  473. package/lib/row/Row.js +110 -0
  474. package/lib/row/index.css +1 -1
  475. package/lib/row/index.d.ts +42 -0
  476. package/lib/row/index.js +31 -91
  477. package/lib/row/style/index.d.ts +1 -0
  478. package/lib/row/style/index.js +2 -2
  479. package/lib/stepper/Stepper.d.ts +181 -0
  480. package/lib/stepper/Stepper.js +283 -0
  481. package/lib/stepper/index.css +1 -1
  482. package/lib/stepper/index.d.ts +132 -0
  483. package/lib/stepper/index.js +31 -365
  484. package/lib/stepper/style/index.d.ts +1 -0
  485. package/lib/stepper/style/index.js +4 -2
  486. package/lib/sticky/Sticky.d.ts +58 -0
  487. package/lib/sticky/Sticky.js +138 -0
  488. package/lib/sticky/index.css +1 -1
  489. package/lib/sticky/index.d.ts +45 -0
  490. package/lib/sticky/index.js +31 -348
  491. package/lib/sticky/style/index.d.ts +1 -0
  492. package/lib/sticky/style/index.js +2 -2
  493. package/lib/style/animation.css +1 -1
  494. package/lib/style/base.css +1 -1
  495. package/lib/style/css-variables.css +1 -0
  496. package/lib/style/normalize.css +1 -1
  497. package/lib/swipe/Swipe.d.ts +121 -0
  498. package/lib/swipe/Swipe.js +372 -0
  499. package/lib/swipe/index.css +1 -1
  500. package/lib/swipe/index.d.ts +90 -0
  501. package/lib/swipe/index.js +31 -475
  502. package/lib/swipe/style/index.d.ts +1 -0
  503. package/lib/swipe/style/index.js +2 -2
  504. package/lib/swipe/types.d.ts +31 -0
  505. package/lib/swipe/types.js +15 -0
  506. package/lib/swipe-item/SwipeItem.d.ts +2 -0
  507. package/lib/swipe-item/SwipeItem.js +101 -0
  508. package/lib/swipe-item/index.css +1 -1
  509. package/lib/swipe-item/index.d.ts +7 -0
  510. package/lib/swipe-item/index.js +31 -87
  511. package/lib/swipe-item/style/index.d.ts +1 -0
  512. package/lib/swipe-item/style/index.js +3 -2
  513. package/lib/switch/Switch.d.ts +58 -0
  514. package/lib/switch/Switch.js +104 -0
  515. package/lib/switch/index.css +1 -1
  516. package/lib/switch/index.d.ts +46 -0
  517. package/lib/switch/index.js +31 -84
  518. package/lib/switch/style/index.d.ts +1 -0
  519. package/lib/switch/style/index.js +3 -3
  520. package/lib/tab/Tab.d.ts +58 -0
  521. package/lib/tab/Tab.js +132 -0
  522. package/lib/tab/index.css +1 -1
  523. package/lib/tab/index.d.ts +45 -0
  524. package/lib/tab/index.js +31 -112
  525. package/lib/tab/style/index.d.ts +1 -0
  526. package/lib/tab/style/index.js +7 -2
  527. package/lib/tabs/Tabs.d.ts +154 -0
  528. package/lib/tabs/Tabs.js +377 -0
  529. package/lib/tabs/TabsContent.d.ts +43 -0
  530. package/lib/tabs/TabsContent.js +83 -0
  531. package/lib/tabs/TabsTitle.d.ts +45 -0
  532. package/lib/tabs/TabsTitle.js +109 -0
  533. package/lib/tabs/index.css +1 -1
  534. package/lib/tabs/index.d.ts +114 -0
  535. package/lib/tabs/index.js +31 -465
  536. package/lib/tabs/style/index.d.ts +1 -0
  537. package/lib/tabs/style/index.js +5 -4
  538. package/lib/tabs/types.d.ts +23 -0
  539. package/lib/tabs/types.js +15 -0
  540. package/lib/tabs/utils.d.ts +3 -0
  541. package/lib/tabs/utils.js +37 -34
  542. package/lib/toast/Toast.d.ts +112 -0
  543. package/lib/toast/Toast.js +130 -175
  544. package/lib/toast/function-call.d.ts +10 -0
  545. package/lib/toast/function-call.js +167 -0
  546. package/lib/toast/index.css +1 -1
  547. package/lib/toast/index.d.ts +79 -0
  548. package/lib/toast/index.js +39 -201
  549. package/lib/toast/lock-click.d.ts +1 -0
  550. package/lib/toast/lock-click.js +27 -12
  551. package/lib/toast/style/index.d.ts +1 -0
  552. package/lib/toast/style/index.js +7 -7
  553. package/lib/toast/types.d.ts +36 -0
  554. package/lib/toast/types.js +15 -0
  555. package/lib/utils/basic.d.ts +18 -0
  556. package/lib/utils/basic.js +51 -0
  557. package/lib/utils/constant.d.ts +8 -0
  558. package/lib/utils/constant.js +37 -26
  559. package/lib/utils/create.d.ts +17 -0
  560. package/lib/utils/create.js +75 -0
  561. package/lib/utils/deep-assign.d.ts +3 -0
  562. package/lib/utils/deep-assign.js +30 -19
  563. package/lib/utils/deep-clone.d.ts +1 -0
  564. package/lib/utils/deep-clone.js +29 -18
  565. package/lib/utils/dom.d.ts +12 -0
  566. package/lib/utils/dom.js +86 -0
  567. package/lib/utils/format.d.ts +13 -0
  568. package/lib/utils/format.js +139 -0
  569. package/lib/utils/index.d.ts +9 -0
  570. package/lib/utils/index.js +24 -108
  571. package/lib/utils/interceptor.d.ts +6 -0
  572. package/lib/utils/interceptor.js +38 -18
  573. package/lib/utils/mount-component.d.ts +14 -0
  574. package/lib/utils/mount-component.js +58 -0
  575. package/lib/utils/props.d.ts +31 -0
  576. package/lib/utils/props.js +55 -0
  577. package/lib/utils/validate.d.ts +9 -0
  578. package/lib/utils/validate.js +41 -0
  579. package/lib/utils/with-install.d.ts +13 -0
  580. package/lib/utils/with-install.js +31 -0
  581. package/lib/vue-sfc-shim.d.ts +6 -0
  582. package/lib/vue-tsx-shim.d.ts +16 -0
  583. package/lib/web-types.json +3197 -0
  584. package/lib/zartui.cjs.js +6740 -0
  585. package/lib/zartui.es.js +6740 -0
  586. package/lib/zartui.js +6974 -0
  587. package/lib/zartui.min.js +1 -0
  588. package/package.json +50 -61
  589. package/es/action-sheet/index.css +0 -1
  590. package/es/action-sheet/index.js +0 -185
  591. package/es/action-sheet/index.less +0 -132
  592. package/es/action-sheet/style/index.js +0 -7
  593. package/es/action-sheet/style/less.js +0 -7
  594. package/es/area/index.js +0 -321
  595. package/es/area/style/index.js +0 -7
  596. package/es/area/style/less.js +0 -7
  597. package/es/avatar/index.css +0 -1
  598. package/es/avatar/index.js +0 -102
  599. package/es/avatar/index.less +0 -40
  600. package/es/avatar/local.css +0 -1
  601. package/es/avatar/local.less +0 -1
  602. package/es/avatar/style/index.js +0 -2
  603. package/es/avatar/style/less.js +0 -2
  604. package/es/back-top/index.css +0 -1
  605. package/es/back-top/index.js +0 -206
  606. package/es/back-top/index.less +0 -21
  607. package/es/back-top/style/index.js +0 -2
  608. package/es/back-top/style/less.js +0 -2
  609. package/es/badge/index.js +0 -68
  610. package/es/badge/index.less +0 -38
  611. package/es/badge/style/index.js +0 -2
  612. package/es/badge/style/less.js +0 -2
  613. package/es/button/index.js +0 -184
  614. package/es/button/index.less +0 -206
  615. package/es/button/style/index.js +0 -5
  616. package/es/button/style/less.js +0 -5
  617. package/es/calendar/components/Header.js +0 -62
  618. package/es/calendar/components/Month.js +0 -339
  619. package/es/calendar/index.css +0 -1
  620. package/es/calendar/index.js +0 -542
  621. package/es/calendar/index.less +0 -251
  622. package/es/calendar/style/index.js +0 -9
  623. package/es/calendar/style/less.js +0 -9
  624. package/es/calendar/utils.js +0 -66
  625. package/es/cascader/index.css +0 -1
  626. package/es/cascader/index.js +0 -286
  627. package/es/cascader/index.less +0 -87
  628. package/es/cascader/style/index.js +0 -8
  629. package/es/cascader/style/less.js +0 -8
  630. package/es/cell/index.js +0 -137
  631. package/es/cell/index.less +0 -107
  632. package/es/cell/shared.js +0 -29
  633. package/es/cell/style/index.js +0 -4
  634. package/es/cell/style/less.js +0 -4
  635. package/es/cell-group/index.css +0 -1
  636. package/es/cell-group/index.js +0 -41
  637. package/es/cell-group/index.less +0 -22
  638. package/es/cell-group/style/index.js +0 -2
  639. package/es/cell-group/style/less.js +0 -2
  640. package/es/checkbox/index.css +0 -1
  641. package/es/checkbox/index.js +0 -80
  642. package/es/checkbox/index.less +0 -93
  643. package/es/checkbox/style/index.js +0 -4
  644. package/es/checkbox/style/less.js +0 -4
  645. package/es/checkbox-group/index.css +0 -1
  646. package/es/checkbox-group/index.js +0 -64
  647. package/es/checkbox-group/index.less +0 -8
  648. package/es/checkbox-group/style/index.js +0 -2
  649. package/es/checkbox-group/style/less.js +0 -2
  650. package/es/col/index.js +0 -55
  651. package/es/col/index.less +0 -20
  652. package/es/col/style/index.js +0 -2
  653. package/es/col/style/less.js +0 -2
  654. package/es/collapse/index.js +0 -32
  655. package/es/collapse/style/index.js +0 -1
  656. package/es/collapse/style/less.js +0 -1
  657. package/es/collapse-item/index.css +0 -1
  658. package/es/collapse-item/index.js +0 -211
  659. package/es/collapse-item/index.less +0 -87
  660. package/es/collapse-item/style/index.js +0 -5
  661. package/es/collapse-item/style/less.js +0 -5
  662. package/es/count-down/index.css +0 -1
  663. package/es/count-down/index.js +0 -163
  664. package/es/count-down/index.less +0 -8
  665. package/es/count-down/style/index.js +0 -2
  666. package/es/count-down/style/less.js +0 -2
  667. package/es/count-down/utils.js +0 -67
  668. package/es/datetime-picker/DatePicker.js +0 -315
  669. package/es/datetime-picker/TimePicker.js +0 -140
  670. package/es/datetime-picker/index.js +0 -29
  671. package/es/datetime-picker/shared.js +0 -162
  672. package/es/datetime-picker/style/index.js +0 -7
  673. package/es/datetime-picker/style/less.js +0 -7
  674. package/es/datetime-picker/utils.js +0 -29
  675. package/es/dialog/Dialog.js +0 -210
  676. package/es/dialog/index.css +0 -1
  677. package/es/dialog/index.js +0 -109
  678. package/es/dialog/index.less +0 -133
  679. package/es/dialog/style/index.js +0 -8
  680. package/es/dialog/style/less.js +0 -8
  681. package/es/divider/index.js +0 -45
  682. package/es/divider/index.less +0 -64
  683. package/es/divider/style/index.js +0 -2
  684. package/es/divider/style/less.js +0 -2
  685. package/es/dropdown-item/index.css +0 -1
  686. package/es/dropdown-item/index.js +0 -346
  687. package/es/dropdown-item/index.less +0 -84
  688. package/es/dropdown-item/style/index.js +0 -8
  689. package/es/dropdown-item/style/less.js +0 -8
  690. package/es/dropdown-menu/index.css +0 -1
  691. package/es/dropdown-menu/index.js +0 -139
  692. package/es/dropdown-menu/index.less +0 -85
  693. package/es/dropdown-menu/style/index.js +0 -4
  694. package/es/dropdown-menu/style/less.js +0 -4
  695. package/es/empty/Developing.js +0 -1643
  696. package/es/empty/Error.js +0 -484
  697. package/es/empty/NotFound.js +0 -645
  698. package/es/empty/NotRight.js +0 -395
  699. package/es/empty/Search.js +0 -336
  700. package/es/empty/index.js +0 -105
  701. package/es/empty/index.less +0 -40
  702. package/es/empty/style/index.js +0 -2
  703. package/es/empty/style/less.js +0 -2
  704. package/es/field/ClearIcon.js +0 -23
  705. package/es/field/SearchIcon.js +0 -18
  706. package/es/field/index.css +0 -1
  707. package/es/field/index.js +0 -705
  708. package/es/field/index.less +0 -231
  709. package/es/field/style/index.js +0 -5
  710. package/es/field/style/less.js +0 -5
  711. package/es/fold-dialog/index.css +0 -1
  712. package/es/fold-dialog/index.js +0 -144
  713. package/es/fold-dialog/index.less +0 -26
  714. package/es/fold-dialog/style/index.js +0 -2
  715. package/es/fold-dialog/style/less.js +0 -2
  716. package/es/form/index.js +0 -200
  717. package/es/form/style/index.js +0 -1
  718. package/es/form/style/less.js +0 -1
  719. package/es/grid/index.css +0 -1
  720. package/es/grid/index.js +0 -50
  721. package/es/grid/index.less +0 -6
  722. package/es/grid/style/index.js +0 -2
  723. package/es/grid/style/less.js +0 -2
  724. package/es/grid-item/index.css +0 -1
  725. package/es/grid-item/index.js +0 -163
  726. package/es/grid-item/index.less +0 -79
  727. package/es/grid-item/style/index.js +0 -4
  728. package/es/grid-item/style/less.js +0 -4
  729. package/es/hierarchy-select/breadcrumb.js +0 -75
  730. package/es/hierarchy-select/hierarchySelect.js +0 -162
  731. package/es/hierarchy-select/index.css +0 -1
  732. package/es/hierarchy-select/index.js +0 -142
  733. package/es/hierarchy-select/index.less +0 -239
  734. package/es/hierarchy-select/markList.js +0 -242
  735. package/es/hierarchy-select/style/index.js +0 -8
  736. package/es/hierarchy-select/style/less.js +0 -8
  737. package/es/hierarchy-select/svg/SubIcon.js +0 -50
  738. package/es/icon/index.js +0 -74
  739. package/es/icon/index.less +0 -10
  740. package/es/icon/local.css +0 -1
  741. package/es/icon/local.less +0 -1
  742. package/es/icon/style/index.js +0 -3
  743. package/es/icon/style/less.js +0 -3
  744. package/es/image/index.css +0 -1
  745. package/es/image/index.js +0 -189
  746. package/es/image/index.less +0 -47
  747. package/es/image/style/index.js +0 -4
  748. package/es/image/style/less.js +0 -4
  749. package/es/image-preview/ImagePreview.js +0 -237
  750. package/es/image-preview/ImagePreviewItem.js +0 -242
  751. package/es/image-preview/index.css +0 -1
  752. package/es/image-preview/index.js +0 -87
  753. package/es/image-preview/index.less +0 -121
  754. package/es/image-preview/shared.js +0 -7
  755. package/es/image-preview/style/index.js +0 -10
  756. package/es/image-preview/style/less.js +0 -10
  757. package/es/index-anchor/index.css +0 -1
  758. package/es/index-anchor/index.js +0 -83
  759. package/es/index-anchor/index.less +0 -34
  760. package/es/index-anchor/style/index.js +0 -2
  761. package/es/index-anchor/style/less.js +0 -2
  762. package/es/index-bar/IndexIndicate.js +0 -41
  763. package/es/index-bar/index.css +0 -1
  764. package/es/index-bar/index.js +0 -256
  765. package/es/index-bar/index.less +0 -68
  766. package/es/index-bar/style/index.js +0 -2
  767. package/es/index-bar/style/less.js +0 -2
  768. package/es/index.js +0 -99
  769. package/es/info/index.css +0 -1
  770. package/es/info/index.js +0 -30
  771. package/es/info/index.less +0 -29
  772. package/es/info/style/index.js +0 -2
  773. package/es/info/style/less.js +0 -2
  774. package/es/lazyload/index.js +0 -2
  775. package/es/lazyload/style/index.js +0 -1
  776. package/es/lazyload/style/less.js +0 -1
  777. package/es/list/index.js +0 -182
  778. package/es/list/index.less +0 -17
  779. package/es/list/style/index.js +0 -4
  780. package/es/list/style/less.js +0 -4
  781. package/es/loading/index.js +0 -154
  782. package/es/loading/index.less +0 -117
  783. package/es/loading/style/index.js +0 -2
  784. package/es/loading/style/less.js +0 -2
  785. package/es/locale/index.js +0 -27
  786. package/es/locale/lang/de-DE-formal.js +0 -90
  787. package/es/locale/lang/de-DE.js +0 -90
  788. package/es/locale/lang/en-US.js +0 -90
  789. package/es/locale/lang/es-ES.js +0 -90
  790. package/es/locale/lang/fr-FR.js +0 -90
  791. package/es/locale/lang/ja-JP.js +0 -91
  792. package/es/locale/lang/nb-NO.js +0 -90
  793. package/es/locale/lang/ro-RO.js +0 -90
  794. package/es/locale/lang/th-TH.js +0 -91
  795. package/es/locale/lang/tr-TR.js +0 -90
  796. package/es/locale/lang/zh-CN.js +0 -123
  797. package/es/locale/lang/zh-HK.js +0 -91
  798. package/es/locale/lang/zh-TW.js +0 -91
  799. package/es/locale/style/index.js +0 -1
  800. package/es/locale/style/less.js +0 -1
  801. package/es/media-picker/image/DefaultAudioIcon.js +0 -133
  802. package/es/media-picker/image/DefaultFileIcon.js +0 -116
  803. package/es/media-picker/image/DefaultVideoIcon.js +0 -169
  804. package/es/media-picker/image/DeleteIcon.js +0 -41
  805. package/es/media-picker/image/PickFileIcon.js +0 -41
  806. package/es/media-picker/image/PickPhotoIcon.js +0 -41
  807. package/es/media-picker/image/TakeAudioIcon.js +0 -41
  808. package/es/media-picker/image/TakePhotoIcon.js +0 -41
  809. package/es/media-picker/image/TakeVideoIcon.js +0 -41
  810. package/es/media-picker/index.css +0 -1
  811. package/es/media-picker/index.js +0 -992
  812. package/es/media-picker/index.less +0 -148
  813. package/es/media-picker/media-util.js +0 -37
  814. package/es/media-picker/style/index.js +0 -12
  815. package/es/media-picker/style/less.js +0 -12
  816. package/es/media-picker/type.js +0 -24
  817. package/es/media-player/index.css +0 -1
  818. package/es/media-player/index.js +0 -149
  819. package/es/media-player/index.less +0 -14
  820. package/es/media-player/style/index.js +0 -9
  821. package/es/media-player/style/less.js +0 -9
  822. package/es/mixins/bind-event.js +0 -29
  823. package/es/mixins/checkbox.js +0 -166
  824. package/es/mixins/click-outside.js +0 -33
  825. package/es/mixins/close-on-popstate.js +0 -38
  826. package/es/mixins/field.js +0 -24
  827. package/es/mixins/popup/context.js +0 -18
  828. package/es/mixins/popup/index.js +0 -220
  829. package/es/mixins/popup/overlay.js +0 -77
  830. package/es/mixins/popup/type.js +0 -1
  831. package/es/mixins/portal.js +0 -48
  832. package/es/mixins/relation.js +0 -76
  833. package/es/mixins/slots.js +0 -23
  834. package/es/mixins/telemetry.js +0 -11
  835. package/es/mixins/touch.js +0 -59
  836. package/es/multiple-picker/MultiplePickerOptions.js +0 -167
  837. package/es/multiple-picker/index.css +0 -1
  838. package/es/multiple-picker/index.js +0 -234
  839. package/es/multiple-picker/index.less +0 -135
  840. package/es/multiple-picker/shared.js +0 -26
  841. package/es/multiple-picker/style/index.js +0 -7
  842. package/es/multiple-picker/style/less.js +0 -7
  843. package/es/nav-bar/index.css +0 -1
  844. package/es/nav-bar/index.js +0 -144
  845. package/es/nav-bar/index.less +0 -74
  846. package/es/nav-bar/style/index.js +0 -4
  847. package/es/nav-bar/style/less.js +0 -4
  848. package/es/notice-bar/CloseIcon.js +0 -34
  849. package/es/notice-bar/MenuIcon.js +0 -35
  850. package/es/notice-bar/NoticeIcon.js +0 -35
  851. package/es/notice-bar/OpenIcon.js +0 -37
  852. package/es/notice-bar/TipIcon.js +0 -35
  853. package/es/notice-bar/WarningIcon.js +0 -35
  854. package/es/notice-bar/index.js +0 -279
  855. package/es/notice-bar/index.less +0 -66
  856. package/es/notice-bar/style/index.js +0 -4
  857. package/es/notice-bar/style/less.js +0 -4
  858. package/es/number-keyboard/CollapseIcon.js +0 -16
  859. package/es/number-keyboard/DeleteIcon.js +0 -16
  860. package/es/number-keyboard/Key.js +0 -100
  861. package/es/number-keyboard/index.js +0 -272
  862. package/es/number-keyboard/index.less +0 -144
  863. package/es/number-keyboard/style/index.js +0 -3
  864. package/es/number-keyboard/style/less.js +0 -3
  865. package/es/overlay/index.js +0 -53
  866. package/es/overlay/index.less +0 -11
  867. package/es/overlay/style/index.js +0 -2
  868. package/es/overlay/style/less.js +0 -2
  869. package/es/password-input/index.js +0 -80
  870. package/es/password-input/index.less +0 -83
  871. package/es/password-input/style/index.js +0 -2
  872. package/es/password-input/style/less.js +0 -2
  873. package/es/pdf-viewer/index.css +0 -1
  874. package/es/pdf-viewer/index.js +0 -444
  875. package/es/pdf-viewer/index.less +0 -69
  876. package/es/pdf-viewer/style/index.js +0 -9
  877. package/es/pdf-viewer/style/less.js +0 -9
  878. package/es/picker/PickerColumn.js +0 -306
  879. package/es/picker/index.css +0 -1
  880. package/es/picker/index.js +0 -450
  881. package/es/picker/index.less +0 -155
  882. package/es/picker/shared.js +0 -34
  883. package/es/picker/style/index.js +0 -7
  884. package/es/picker/style/less.js +0 -7
  885. package/es/popover/index.css +0 -1
  886. package/es/popover/index.js +0 -211
  887. package/es/popover/index.less +0 -270
  888. package/es/popover/style/index.js +0 -6
  889. package/es/popover/style/less.js +0 -6
  890. package/es/popup/index.js +0 -122
  891. package/es/popup/index.less +0 -137
  892. package/es/popup/style/index.js +0 -5
  893. package/es/popup/style/less.js +0 -5
  894. package/es/pull-refresh/index.js +0 -223
  895. package/es/pull-refresh/index.less +0 -25
  896. package/es/pull-refresh/style/index.js +0 -3
  897. package/es/pull-refresh/style/less.js +0 -3
  898. package/es/radio/index.css +0 -1
  899. package/es/radio/index.js +0 -32
  900. package/es/radio/index.less +0 -104
  901. package/es/radio/style/index.js +0 -4
  902. package/es/radio/style/less.js +0 -4
  903. package/es/radio-group/index.css +0 -1
  904. package/es/radio-group/index.js +0 -32
  905. package/es/radio-group/index.less +0 -8
  906. package/es/radio-group/style/index.js +0 -2
  907. package/es/radio-group/style/less.js +0 -2
  908. package/es/rate/index.js +0 -227
  909. package/es/rate/index.less +0 -47
  910. package/es/rate/style/index.js +0 -4
  911. package/es/rate/style/less.js +0 -4
  912. package/es/row/index.js +0 -85
  913. package/es/row/index.less +0 -42
  914. package/es/row/style/index.js +0 -2
  915. package/es/row/style/less.js +0 -2
  916. package/es/search/index.css +0 -1
  917. package/es/search/index.js +0 -117
  918. package/es/search/index.less +0 -89
  919. package/es/search/style/index.js +0 -6
  920. package/es/search/style/less.js +0 -6
  921. package/es/signature/bezier.js +0 -82
  922. package/es/signature/force-landscape.js +0 -97
  923. package/es/signature/index.css +0 -1
  924. package/es/signature/index.js +0 -283
  925. package/es/signature/index.less +0 -50
  926. package/es/signature/point.js +0 -29
  927. package/es/signature/style/index.js +0 -9
  928. package/es/signature/style/less.js +0 -9
  929. package/es/signature/throttle.js +0 -55
  930. package/es/skeleton/index.css +0 -1
  931. package/es/skeleton/index.js +0 -132
  932. package/es/skeleton/index.less +0 -85
  933. package/es/skeleton/style/index.js +0 -2
  934. package/es/skeleton/style/less.js +0 -2
  935. package/es/slider/index.css +0 -1
  936. package/es/slider/index.js +0 -340
  937. package/es/slider/index.less +0 -108
  938. package/es/slider/style/index.js +0 -2
  939. package/es/slider/style/less.js +0 -2
  940. package/es/step/index.css +0 -1
  941. package/es/step/index.js +0 -123
  942. package/es/step/index.less +0 -103
  943. package/es/step/style/index.js +0 -4
  944. package/es/step/style/less.js +0 -4
  945. package/es/stepper/index.js +0 -353
  946. package/es/stepper/index.less +0 -124
  947. package/es/stepper/style/index.js +0 -2
  948. package/es/stepper/style/less.js +0 -2
  949. package/es/steps/index.css +0 -1
  950. package/es/steps/index.js +0 -36
  951. package/es/steps/index.less +0 -23
  952. package/es/steps/style/index.js +0 -2
  953. package/es/steps/style/less.js +0 -2
  954. package/es/sticky/index.js +0 -338
  955. package/es/sticky/index.less +0 -14
  956. package/es/sticky/style/index.js +0 -2
  957. package/es/sticky/style/less.js +0 -2
  958. package/es/style/animation.less +0 -139
  959. package/es/style/base.less +0 -11
  960. package/es/style/clearfix.css +0 -1
  961. package/es/style/clearfix.less +0 -5
  962. package/es/style/ellipsis.css +0 -1
  963. package/es/style/ellipsis.less +0 -13
  964. package/es/style/hairline.css +0 -1
  965. package/es/style/hairline.less +0 -47
  966. package/es/style/halfPxBorder.css +0 -1
  967. package/es/style/halfPxBorder.less +0 -78
  968. package/es/style/mixins/clearfix.less +0 -7
  969. package/es/style/mixins/ellipsis.less +0 -15
  970. package/es/style/mixins/hairline.less +0 -70
  971. package/es/style/normalize.less +0 -38
  972. package/es/style/reset.css +0 -1
  973. package/es/style/reset.less +0 -171
  974. package/es/style/var.less +0 -1039
  975. package/es/swipe/index.js +0 -463
  976. package/es/swipe/index.less +0 -72
  977. package/es/swipe/style/index.js +0 -2
  978. package/es/swipe/style/less.js +0 -2
  979. package/es/swipe-cell/index.css +0 -1
  980. package/es/swipe-cell/index.js +0 -220
  981. package/es/swipe-cell/index.less +0 -29
  982. package/es/swipe-cell/style/index.js +0 -2
  983. package/es/swipe-cell/style/less.js +0 -2
  984. package/es/swipe-item/index.js +0 -78
  985. package/es/swipe-item/index.less +0 -8
  986. package/es/swipe-item/style/index.js +0 -2
  987. package/es/swipe-item/style/less.js +0 -2
  988. package/es/switch/index.js +0 -74
  989. package/es/switch/index.less +0 -56
  990. package/es/switch/shared.js +0 -19
  991. package/es/switch/style/index.js +0 -3
  992. package/es/switch/style/less.js +0 -3
  993. package/es/switch-cell/index.css +0 -1
  994. package/es/switch-cell/index.js +0 -46
  995. package/es/switch-cell/index.less +0 -15
  996. package/es/switch-cell/style/index.js +0 -7
  997. package/es/switch-cell/style/less.js +0 -7
  998. package/es/tab/index.js +0 -102
  999. package/es/tab/index.less +0 -17
  1000. package/es/tab/style/index.js +0 -2
  1001. package/es/tab/style/less.js +0 -2
  1002. package/es/tabbar/index.css +0 -1
  1003. package/es/tabbar/index.js +0 -113
  1004. package/es/tabbar/index.less +0 -22
  1005. package/es/tabbar/style/index.js +0 -2
  1006. package/es/tabbar/style/less.js +0 -2
  1007. package/es/tabbar-item/index.css +0 -1
  1008. package/es/tabbar-item/index.js +0 -116
  1009. package/es/tabbar-item/index.less +0 -46
  1010. package/es/tabbar-item/style/index.js +0 -4
  1011. package/es/tabbar-item/style/less.js +0 -4
  1012. package/es/table/index.css +0 -1
  1013. package/es/table/index.js +0 -124
  1014. package/es/table/index.less +0 -53
  1015. package/es/table/style/index.js +0 -2
  1016. package/es/table/style/less.js +0 -2
  1017. package/es/tabs/Content.js +0 -78
  1018. package/es/tabs/Title.js +0 -92
  1019. package/es/tabs/index.js +0 -445
  1020. package/es/tabs/index.less +0 -156
  1021. package/es/tabs/style/index.js +0 -4
  1022. package/es/tabs/style/less.js +0 -4
  1023. package/es/tabs/utils.js +0 -43
  1024. package/es/tag/index.css +0 -1
  1025. package/es/tag/index.js +0 -79
  1026. package/es/tag/index.less +0 -99
  1027. package/es/tag/style/index.js +0 -4
  1028. package/es/tag/style/less.js +0 -4
  1029. package/es/telemetry/index.js +0 -53
  1030. package/es/timeline/index.css +0 -1
  1031. package/es/timeline/index.js +0 -210
  1032. package/es/timeline/index.less +0 -130
  1033. package/es/timeline/style/index.js +0 -4
  1034. package/es/timeline/style/less.js +0 -4
  1035. package/es/toast/Toast.js +0 -168
  1036. package/es/toast/index.js +0 -193
  1037. package/es/toast/index.less +0 -82
  1038. package/es/toast/lock-click.js +0 -16
  1039. package/es/toast/style/index.js +0 -7
  1040. package/es/toast/style/less.js +0 -7
  1041. package/es/toast/svg/SuccessIcon.js +0 -35
  1042. package/es/toast/svg/WarnIcon.js +0 -34
  1043. package/es/uploader/index.css +0 -1
  1044. package/es/uploader/index.js +0 -559
  1045. package/es/uploader/index.less +0 -163
  1046. package/es/uploader/style/index.js +0 -11
  1047. package/es/uploader/style/less.js +0 -11
  1048. package/es/uploader/utils.js +0 -66
  1049. package/es/utils/constant.js +0 -12
  1050. package/es/utils/create/bem.js +0 -39
  1051. package/es/utils/create/component.js +0 -62
  1052. package/es/utils/create/i18n.js +0 -16
  1053. package/es/utils/create/index.js +0 -7
  1054. package/es/utils/deep-assign.js +0 -24
  1055. package/es/utils/deep-clone.js +0 -22
  1056. package/es/utils/device.js +0 -8
  1057. package/es/utils/dom/event.js +0 -48
  1058. package/es/utils/dom/node.js +0 -7
  1059. package/es/utils/dom/raf.js +0 -36
  1060. package/es/utils/dom/reset-scroll.js +0 -14
  1061. package/es/utils/dom/scroll.js +0 -69
  1062. package/es/utils/dom/style.js +0 -9
  1063. package/es/utils/easings.js +0 -12
  1064. package/es/utils/format/date-util.js +0 -690
  1065. package/es/utils/format/number.js +0 -52
  1066. package/es/utils/format/string.js +0 -19
  1067. package/es/utils/format/unit.js +0 -59
  1068. package/es/utils/functional.js +0 -56
  1069. package/es/utils/getScroll.js +0 -27
  1070. package/es/utils/index.js +0 -78
  1071. package/es/utils/interceptor.js +0 -22
  1072. package/es/utils/media/image-util.js +0 -138
  1073. package/es/utils/raf.js +0 -58
  1074. package/es/utils/router.js +0 -35
  1075. package/es/utils/scrollTo.js +0 -42
  1076. package/es/utils/types.js +0 -1
  1077. package/es/utils/validate/date.js +0 -4
  1078. package/es/utils/validate/email.js +0 -5
  1079. package/es/utils/validate/mobile.js +0 -4
  1080. package/es/utils/validate/number.js +0 -11
  1081. package/es/utils/validate/system.js +0 -9
  1082. package/es/utils/vnodes.js +0 -36
  1083. package/lib/a037f57fc4d92a8a1f1e.worker.js +0 -60600
  1084. package/lib/action-sheet/index.css +0 -1
  1085. package/lib/action-sheet/index.js +0 -203
  1086. package/lib/action-sheet/index.less +0 -132
  1087. package/lib/action-sheet/style/index.js +0 -7
  1088. package/lib/action-sheet/style/less.js +0 -7
  1089. package/lib/area/index.js +0 -331
  1090. package/lib/area/style/index.js +0 -7
  1091. package/lib/area/style/less.js +0 -7
  1092. package/lib/avatar/index.css +0 -1
  1093. package/lib/avatar/index.js +0 -109
  1094. package/lib/avatar/index.less +0 -40
  1095. package/lib/avatar/local.css +0 -1
  1096. package/lib/avatar/local.less +0 -1
  1097. package/lib/avatar/style/index.js +0 -2
  1098. package/lib/avatar/style/less.js +0 -2
  1099. package/lib/b7cf90b4775181215df7.worker.js +0 -10
  1100. package/lib/back-top/index.css +0 -1
  1101. package/lib/back-top/index.js +0 -218
  1102. package/lib/back-top/index.less +0 -21
  1103. package/lib/back-top/style/index.js +0 -2
  1104. package/lib/back-top/style/less.js +0 -2
  1105. package/lib/badge/index.less +0 -38
  1106. package/lib/badge/style/less.js +0 -2
  1107. package/lib/button/index.less +0 -206
  1108. package/lib/button/style/less.js +0 -5
  1109. package/lib/calendar/components/Header.js +0 -70
  1110. package/lib/calendar/components/Month.js +0 -349
  1111. package/lib/calendar/index.css +0 -1
  1112. package/lib/calendar/index.js +0 -560
  1113. package/lib/calendar/index.less +0 -251
  1114. package/lib/calendar/style/index.js +0 -9
  1115. package/lib/calendar/style/less.js +0 -9
  1116. package/lib/calendar/utils.js +0 -91
  1117. package/lib/cascader/index.css +0 -1
  1118. package/lib/cascader/index.js +0 -299
  1119. package/lib/cascader/index.less +0 -87
  1120. package/lib/cascader/style/index.js +0 -8
  1121. package/lib/cascader/style/less.js +0 -8
  1122. package/lib/cell/index.less +0 -107
  1123. package/lib/cell/shared.js +0 -34
  1124. package/lib/cell/style/less.js +0 -4
  1125. package/lib/cell-group/index.css +0 -1
  1126. package/lib/cell-group/index.js +0 -54
  1127. package/lib/cell-group/index.less +0 -22
  1128. package/lib/cell-group/style/index.js +0 -2
  1129. package/lib/cell-group/style/less.js +0 -2
  1130. package/lib/checkbox/index.css +0 -1
  1131. package/lib/checkbox/index.js +0 -88
  1132. package/lib/checkbox/index.less +0 -93
  1133. package/lib/checkbox/style/index.js +0 -4
  1134. package/lib/checkbox/style/less.js +0 -4
  1135. package/lib/checkbox-group/index.css +0 -1
  1136. package/lib/checkbox-group/index.js +0 -73
  1137. package/lib/checkbox-group/index.less +0 -8
  1138. package/lib/checkbox-group/style/index.js +0 -2
  1139. package/lib/checkbox-group/style/less.js +0 -2
  1140. package/lib/col/index.less +0 -20
  1141. package/lib/col/style/less.js +0 -2
  1142. package/lib/collapse/index.js +0 -40
  1143. package/lib/collapse/style/index.js +0 -1
  1144. package/lib/collapse/style/less.js +0 -1
  1145. package/lib/collapse-item/index.css +0 -1
  1146. package/lib/collapse-item/index.js +0 -226
  1147. package/lib/collapse-item/index.less +0 -87
  1148. package/lib/collapse-item/style/index.js +0 -5
  1149. package/lib/collapse-item/style/less.js +0 -5
  1150. package/lib/count-down/index.css +0 -1
  1151. package/lib/count-down/index.js +0 -172
  1152. package/lib/count-down/index.less +0 -8
  1153. package/lib/count-down/style/index.js +0 -2
  1154. package/lib/count-down/style/less.js +0 -2
  1155. package/lib/count-down/utils.js +0 -78
  1156. package/lib/datetime-picker/DatePicker.js +0 -331
  1157. package/lib/datetime-picker/TimePicker.js +0 -153
  1158. package/lib/datetime-picker/index.js +0 -41
  1159. package/lib/datetime-picker/shared.js +0 -177
  1160. package/lib/datetime-picker/style/index.js +0 -7
  1161. package/lib/datetime-picker/style/less.js +0 -7
  1162. package/lib/datetime-picker/utils.js +0 -39
  1163. package/lib/dialog/Dialog.js +0 -223
  1164. package/lib/dialog/index.css +0 -1
  1165. package/lib/dialog/index.js +0 -121
  1166. package/lib/dialog/index.less +0 -133
  1167. package/lib/dialog/style/index.js +0 -8
  1168. package/lib/dialog/style/less.js +0 -8
  1169. package/lib/divider/index.less +0 -64
  1170. package/lib/divider/style/less.js +0 -2
  1171. package/lib/dropdown-item/index.css +0 -1
  1172. package/lib/dropdown-item/index.js +0 -362
  1173. package/lib/dropdown-item/index.less +0 -84
  1174. package/lib/dropdown-item/style/index.js +0 -8
  1175. package/lib/dropdown-item/style/less.js +0 -8
  1176. package/lib/dropdown-menu/index.css +0 -1
  1177. package/lib/dropdown-menu/index.js +0 -152
  1178. package/lib/dropdown-menu/index.less +0 -85
  1179. package/lib/dropdown-menu/style/index.js +0 -4
  1180. package/lib/dropdown-menu/style/less.js +0 -4
  1181. package/lib/empty/Developing.js +0 -1648
  1182. package/lib/empty/Error.js +0 -489
  1183. package/lib/empty/NotFound.js +0 -650
  1184. package/lib/empty/NotRight.js +0 -400
  1185. package/lib/empty/Search.js +0 -341
  1186. package/lib/empty/index.less +0 -40
  1187. package/lib/empty/style/less.js +0 -2
  1188. package/lib/field/ClearIcon.js +0 -28
  1189. package/lib/field/SearchIcon.js +0 -23
  1190. package/lib/field/index.css +0 -1
  1191. package/lib/field/index.js +0 -723
  1192. package/lib/field/index.less +0 -231
  1193. package/lib/field/style/index.js +0 -5
  1194. package/lib/field/style/less.js +0 -5
  1195. package/lib/fold-dialog/index.css +0 -1
  1196. package/lib/fold-dialog/index.js +0 -151
  1197. package/lib/fold-dialog/index.less +0 -26
  1198. package/lib/fold-dialog/style/index.js +0 -2
  1199. package/lib/fold-dialog/style/less.js +0 -2
  1200. package/lib/form/index.js +0 -208
  1201. package/lib/form/style/index.js +0 -1
  1202. package/lib/form/style/less.js +0 -1
  1203. package/lib/grid/index.css +0 -1
  1204. package/lib/grid/index.js +0 -59
  1205. package/lib/grid/index.less +0 -6
  1206. package/lib/grid/style/index.js +0 -2
  1207. package/lib/grid/style/less.js +0 -2
  1208. package/lib/grid-item/index.css +0 -1
  1209. package/lib/grid-item/index.js +0 -178
  1210. package/lib/grid-item/index.less +0 -79
  1211. package/lib/grid-item/style/index.js +0 -4
  1212. package/lib/grid-item/style/less.js +0 -4
  1213. package/lib/hierarchy-select/breadcrumb.js +0 -85
  1214. package/lib/hierarchy-select/hierarchySelect.js +0 -177
  1215. package/lib/hierarchy-select/index.css +0 -1
  1216. package/lib/hierarchy-select/index.js +0 -155
  1217. package/lib/hierarchy-select/index.less +0 -239
  1218. package/lib/hierarchy-select/markList.js +0 -254
  1219. package/lib/hierarchy-select/style/index.js +0 -8
  1220. package/lib/hierarchy-select/style/less.js +0 -8
  1221. package/lib/hierarchy-select/svg/SubIcon.js +0 -55
  1222. package/lib/icon/index.less +0 -10
  1223. package/lib/icon/local.css +0 -1
  1224. package/lib/icon/local.less +0 -1
  1225. package/lib/icon/style/less.js +0 -3
  1226. package/lib/image/index.css +0 -1
  1227. package/lib/image/index.js +0 -199
  1228. package/lib/image/index.less +0 -47
  1229. package/lib/image/style/index.js +0 -4
  1230. package/lib/image/style/less.js +0 -4
  1231. package/lib/image-preview/ImagePreview.js +0 -253
  1232. package/lib/image-preview/ImagePreviewItem.js +0 -256
  1233. package/lib/image-preview/index.css +0 -1
  1234. package/lib/image-preview/index.js +0 -97
  1235. package/lib/image-preview/index.less +0 -121
  1236. package/lib/image-preview/shared.js +0 -13
  1237. package/lib/image-preview/style/index.js +0 -10
  1238. package/lib/image-preview/style/less.js +0 -10
  1239. package/lib/index-anchor/index.css +0 -1
  1240. package/lib/index-anchor/index.js +0 -93
  1241. package/lib/index-anchor/index.less +0 -34
  1242. package/lib/index-anchor/style/index.js +0 -2
  1243. package/lib/index-anchor/style/less.js +0 -2
  1244. package/lib/index-bar/IndexIndicate.js +0 -46
  1245. package/lib/index-bar/index.css +0 -1
  1246. package/lib/index-bar/index.js +0 -272
  1247. package/lib/index-bar/index.less +0 -68
  1248. package/lib/index-bar/style/index.js +0 -2
  1249. package/lib/index-bar/style/less.js +0 -2
  1250. package/lib/index.less +0 -72
  1251. package/lib/info/index.css +0 -1
  1252. package/lib/info/index.js +0 -42
  1253. package/lib/info/index.less +0 -29
  1254. package/lib/info/style/index.js +0 -2
  1255. package/lib/info/style/less.js +0 -2
  1256. package/lib/lazyload/index.js +0 -11
  1257. package/lib/lazyload/style/index.js +0 -1
  1258. package/lib/lazyload/style/less.js +0 -1
  1259. package/lib/list/index.less +0 -17
  1260. package/lib/list/style/less.js +0 -4
  1261. package/lib/loading/index.less +0 -117
  1262. package/lib/loading/style/less.js +0 -2
  1263. package/lib/locale/lang/de-DE-formal.js +0 -95
  1264. package/lib/locale/lang/de-DE.js +0 -95
  1265. package/lib/locale/lang/es-ES.js +0 -95
  1266. package/lib/locale/lang/fr-FR.js +0 -95
  1267. package/lib/locale/lang/ja-JP.js +0 -96
  1268. package/lib/locale/lang/nb-NO.js +0 -95
  1269. package/lib/locale/lang/ro-RO.js +0 -95
  1270. package/lib/locale/lang/th-TH.js +0 -96
  1271. package/lib/locale/lang/tr-TR.js +0 -95
  1272. package/lib/locale/lang/zh-HK.js +0 -96
  1273. package/lib/locale/lang/zh-TW.js +0 -96
  1274. package/lib/locale/style/less.js +0 -1
  1275. package/lib/media-picker/image/DefaultAudioIcon.js +0 -138
  1276. package/lib/media-picker/image/DefaultFileIcon.js +0 -121
  1277. package/lib/media-picker/image/DefaultVideoIcon.js +0 -174
  1278. package/lib/media-picker/image/DeleteIcon.js +0 -46
  1279. package/lib/media-picker/image/PickFileIcon.js +0 -46
  1280. package/lib/media-picker/image/PickPhotoIcon.js +0 -46
  1281. package/lib/media-picker/image/TakeAudioIcon.js +0 -46
  1282. package/lib/media-picker/image/TakePhotoIcon.js +0 -46
  1283. package/lib/media-picker/image/TakeVideoIcon.js +0 -46
  1284. package/lib/media-picker/index.css +0 -1
  1285. package/lib/media-picker/index.js +0 -1028
  1286. package/lib/media-picker/index.less +0 -148
  1287. package/lib/media-picker/media-util.js +0 -50
  1288. package/lib/media-picker/style/index.js +0 -12
  1289. package/lib/media-picker/style/less.js +0 -12
  1290. package/lib/media-picker/type.js +0 -31
  1291. package/lib/media-player/index.css +0 -1
  1292. package/lib/media-player/index.js +0 -161
  1293. package/lib/media-player/index.less +0 -14
  1294. package/lib/media-player/style/index.js +0 -9
  1295. package/lib/media-player/style/less.js +0 -9
  1296. package/lib/mixins/bind-event.js +0 -36
  1297. package/lib/mixins/checkbox.js +0 -179
  1298. package/lib/mixins/click-outside.js +0 -41
  1299. package/lib/mixins/close-on-popstate.js +0 -46
  1300. package/lib/mixins/field.js +0 -29
  1301. package/lib/mixins/popup/context.js +0 -23
  1302. package/lib/mixins/popup/index.js +0 -236
  1303. package/lib/mixins/popup/overlay.js +0 -97
  1304. package/lib/mixins/popup/type.js +0 -3
  1305. package/lib/mixins/portal.js +0 -53
  1306. package/lib/mixins/relation.js +0 -84
  1307. package/lib/mixins/slots.js +0 -29
  1308. package/lib/mixins/telemetry.js +0 -20
  1309. package/lib/mixins/touch.js +0 -66
  1310. package/lib/multiple-picker/MultiplePickerOptions.js +0 -177
  1311. package/lib/multiple-picker/index.css +0 -1
  1312. package/lib/multiple-picker/index.js +0 -251
  1313. package/lib/multiple-picker/index.less +0 -135
  1314. package/lib/multiple-picker/shared.js +0 -32
  1315. package/lib/multiple-picker/style/index.js +0 -7
  1316. package/lib/multiple-picker/style/less.js +0 -7
  1317. package/lib/nav-bar/index.css +0 -1
  1318. package/lib/nav-bar/index.js +0 -155
  1319. package/lib/nav-bar/index.less +0 -74
  1320. package/lib/nav-bar/style/index.js +0 -4
  1321. package/lib/nav-bar/style/less.js +0 -4
  1322. package/lib/notice-bar/CloseIcon.js +0 -39
  1323. package/lib/notice-bar/MenuIcon.js +0 -40
  1324. package/lib/notice-bar/NoticeIcon.js +0 -40
  1325. package/lib/notice-bar/OpenIcon.js +0 -42
  1326. package/lib/notice-bar/TipIcon.js +0 -40
  1327. package/lib/notice-bar/WarningIcon.js +0 -40
  1328. package/lib/notice-bar/index.less +0 -66
  1329. package/lib/notice-bar/style/less.js +0 -4
  1330. package/lib/number-keyboard/CollapseIcon.js +0 -21
  1331. package/lib/number-keyboard/DeleteIcon.js +0 -21
  1332. package/lib/number-keyboard/Key.js +0 -113
  1333. package/lib/number-keyboard/index.less +0 -144
  1334. package/lib/number-keyboard/style/less.js +0 -3
  1335. package/lib/overlay/index.less +0 -11
  1336. package/lib/overlay/style/less.js +0 -2
  1337. package/lib/password-input/index.less +0 -83
  1338. package/lib/password-input/style/less.js +0 -2
  1339. package/lib/pdf-viewer/index.css +0 -1
  1340. package/lib/pdf-viewer/index.js +0 -459
  1341. package/lib/pdf-viewer/index.less +0 -69
  1342. package/lib/pdf-viewer/style/index.js +0 -9
  1343. package/lib/pdf-viewer/style/less.js +0 -9
  1344. package/lib/picker/PickerColumn.js +0 -320
  1345. package/lib/picker/index.css +0 -1
  1346. package/lib/picker/index.js +0 -467
  1347. package/lib/picker/index.less +0 -155
  1348. package/lib/picker/shared.js +0 -40
  1349. package/lib/picker/style/index.js +0 -7
  1350. package/lib/picker/style/less.js +0 -7
  1351. package/lib/popover/index.css +0 -1
  1352. package/lib/popover/index.js +0 -226
  1353. package/lib/popover/index.less +0 -270
  1354. package/lib/popover/style/index.js +0 -6
  1355. package/lib/popover/style/less.js +0 -6
  1356. package/lib/popup/index.less +0 -137
  1357. package/lib/popup/style/less.js +0 -5
  1358. package/lib/pull-refresh/index.less +0 -25
  1359. package/lib/pull-refresh/style/less.js +0 -3
  1360. package/lib/radio/index.css +0 -1
  1361. package/lib/radio/index.js +0 -40
  1362. package/lib/radio/index.less +0 -104
  1363. package/lib/radio/style/index.js +0 -4
  1364. package/lib/radio/style/less.js +0 -4
  1365. package/lib/radio-group/index.css +0 -1
  1366. package/lib/radio-group/index.js +0 -41
  1367. package/lib/radio-group/index.less +0 -8
  1368. package/lib/radio-group/style/index.js +0 -2
  1369. package/lib/radio-group/style/less.js +0 -2
  1370. package/lib/rate/index.less +0 -47
  1371. package/lib/rate/style/less.js +0 -4
  1372. package/lib/row/index.less +0 -42
  1373. package/lib/row/style/less.js +0 -2
  1374. package/lib/search/index.css +0 -1
  1375. package/lib/search/index.js +0 -131
  1376. package/lib/search/index.less +0 -89
  1377. package/lib/search/style/index.js +0 -6
  1378. package/lib/search/style/less.js +0 -6
  1379. package/lib/signature/bezier.js +0 -90
  1380. package/lib/signature/force-landscape.js +0 -110
  1381. package/lib/signature/index.css +0 -1
  1382. package/lib/signature/index.js +0 -296
  1383. package/lib/signature/index.less +0 -50
  1384. package/lib/signature/point.js +0 -36
  1385. package/lib/signature/style/index.js +0 -9
  1386. package/lib/signature/style/less.js +0 -9
  1387. package/lib/signature/throttle.js +0 -60
  1388. package/lib/skeleton/index.css +0 -1
  1389. package/lib/skeleton/index.js +0 -144
  1390. package/lib/skeleton/index.less +0 -85
  1391. package/lib/skeleton/style/index.js +0 -2
  1392. package/lib/skeleton/style/less.js +0 -2
  1393. package/lib/slider/index.css +0 -1
  1394. package/lib/slider/index.js +0 -352
  1395. package/lib/slider/index.less +0 -108
  1396. package/lib/slider/style/index.js +0 -2
  1397. package/lib/slider/style/less.js +0 -2
  1398. package/lib/step/index.css +0 -1
  1399. package/lib/step/index.js +0 -135
  1400. package/lib/step/index.less +0 -103
  1401. package/lib/step/style/index.js +0 -4
  1402. package/lib/step/style/less.js +0 -4
  1403. package/lib/stepper/index.less +0 -124
  1404. package/lib/stepper/style/less.js +0 -2
  1405. package/lib/steps/index.css +0 -1
  1406. package/lib/steps/index.js +0 -44
  1407. package/lib/steps/index.less +0 -23
  1408. package/lib/steps/style/index.js +0 -2
  1409. package/lib/steps/style/less.js +0 -2
  1410. package/lib/sticky/index.less +0 -14
  1411. package/lib/sticky/style/less.js +0 -2
  1412. package/lib/style/animation.less +0 -139
  1413. package/lib/style/base.less +0 -11
  1414. package/lib/style/clearfix.css +0 -1
  1415. package/lib/style/clearfix.less +0 -5
  1416. package/lib/style/ellipsis.css +0 -1
  1417. package/lib/style/ellipsis.less +0 -13
  1418. package/lib/style/hairline.css +0 -1
  1419. package/lib/style/hairline.less +0 -47
  1420. package/lib/style/halfPxBorder.css +0 -1
  1421. package/lib/style/halfPxBorder.less +0 -78
  1422. package/lib/style/mixins/clearfix.less +0 -7
  1423. package/lib/style/mixins/ellipsis.less +0 -15
  1424. package/lib/style/mixins/hairline.less +0 -70
  1425. package/lib/style/normalize.less +0 -38
  1426. package/lib/style/reset.css +0 -1
  1427. package/lib/style/reset.less +0 -171
  1428. package/lib/style/var.less +0 -1039
  1429. package/lib/swipe/index.less +0 -72
  1430. package/lib/swipe/style/less.js +0 -2
  1431. package/lib/swipe-cell/index.css +0 -1
  1432. package/lib/swipe-cell/index.js +0 -232
  1433. package/lib/swipe-cell/index.less +0 -29
  1434. package/lib/swipe-cell/style/index.js +0 -2
  1435. package/lib/swipe-cell/style/less.js +0 -2
  1436. package/lib/swipe-item/index.less +0 -8
  1437. package/lib/swipe-item/style/less.js +0 -2
  1438. package/lib/switch/index.less +0 -56
  1439. package/lib/switch/shared.js +0 -25
  1440. package/lib/switch/style/less.js +0 -3
  1441. package/lib/switch-cell/index.css +0 -1
  1442. package/lib/switch-cell/index.js +0 -62
  1443. package/lib/switch-cell/index.less +0 -15
  1444. package/lib/switch-cell/style/index.js +0 -7
  1445. package/lib/switch-cell/style/less.js +0 -7
  1446. package/lib/tab/index.less +0 -17
  1447. package/lib/tab/style/less.js +0 -2
  1448. package/lib/tabbar/index.css +0 -1
  1449. package/lib/tabbar/index.js +0 -123
  1450. package/lib/tabbar/index.less +0 -22
  1451. package/lib/tabbar/style/index.js +0 -2
  1452. package/lib/tabbar/style/less.js +0 -2
  1453. package/lib/tabbar-item/index.css +0 -1
  1454. package/lib/tabbar-item/index.js +0 -130
  1455. package/lib/tabbar-item/index.less +0 -46
  1456. package/lib/tabbar-item/style/index.js +0 -4
  1457. package/lib/tabbar-item/style/less.js +0 -4
  1458. package/lib/table/index.css +0 -1
  1459. package/lib/table/index.js +0 -132
  1460. package/lib/table/index.less +0 -53
  1461. package/lib/table/style/index.js +0 -2
  1462. package/lib/table/style/less.js +0 -2
  1463. package/lib/tabs/Content.js +0 -90
  1464. package/lib/tabs/Title.js +0 -102
  1465. package/lib/tabs/index.less +0 -156
  1466. package/lib/tabs/style/less.js +0 -4
  1467. package/lib/tag/index.css +0 -1
  1468. package/lib/tag/index.js +0 -92
  1469. package/lib/tag/index.less +0 -99
  1470. package/lib/tag/style/index.js +0 -4
  1471. package/lib/tag/style/less.js +0 -4
  1472. package/lib/telemetry/index.js +0 -63
  1473. package/lib/timeline/index.css +0 -1
  1474. package/lib/timeline/index.js +0 -221
  1475. package/lib/timeline/index.less +0 -130
  1476. package/lib/timeline/style/index.js +0 -4
  1477. package/lib/timeline/style/less.js +0 -4
  1478. package/lib/toast/index.less +0 -82
  1479. package/lib/toast/style/less.js +0 -7
  1480. package/lib/toast/svg/SuccessIcon.js +0 -40
  1481. package/lib/toast/svg/WarnIcon.js +0 -39
  1482. package/lib/uploader/index.css +0 -1
  1483. package/lib/uploader/index.js +0 -577
  1484. package/lib/uploader/index.less +0 -163
  1485. package/lib/uploader/style/index.js +0 -11
  1486. package/lib/uploader/style/less.js +0 -11
  1487. package/lib/uploader/utils.js +0 -81
  1488. package/lib/utils/create/bem.js +0 -44
  1489. package/lib/utils/create/component.js +0 -79
  1490. package/lib/utils/create/i18n.js +0 -27
  1491. package/lib/utils/create/index.js +0 -15
  1492. package/lib/utils/device.js +0 -15
  1493. package/lib/utils/dom/event.js +0 -62
  1494. package/lib/utils/dom/node.js +0 -12
  1495. package/lib/utils/dom/raf.js +0 -47
  1496. package/lib/utils/dom/reset-scroll.js +0 -21
  1497. package/lib/utils/dom/scroll.js +0 -89
  1498. package/lib/utils/dom/style.js +0 -14
  1499. package/lib/utils/easings.js +0 -17
  1500. package/lib/utils/format/date-util.js +0 -787
  1501. package/lib/utils/format/number.js +0 -60
  1502. package/lib/utils/format/string.js +0 -26
  1503. package/lib/utils/format/unit.js +0 -68
  1504. package/lib/utils/functional.js +0 -68
  1505. package/lib/utils/getScroll.js +0 -34
  1506. package/lib/utils/media/image-util.js +0 -153
  1507. package/lib/utils/raf.js +0 -63
  1508. package/lib/utils/router.js +0 -45
  1509. package/lib/utils/scrollTo.js +0 -56
  1510. package/lib/utils/types.js +0 -3
  1511. package/lib/utils/validate/date.js +0 -10
  1512. package/lib/utils/validate/email.js +0 -10
  1513. package/lib/utils/validate/mobile.js +0 -9
  1514. package/lib/utils/validate/number.js +0 -18
  1515. package/lib/utils/validate/system.js +0 -17
  1516. package/lib/utils/vnodes.js +0 -41
  1517. package/lib/zart.js +0 -84577
  1518. package/lib/zart.min.js +0 -18
@@ -0,0 +1,114 @@
1
+ import { TabsProps } from './Tabs';
2
+ export declare const Tabs: import("../utils").WithInstall<import("vue").DefineComponent<{
3
+ type: {
4
+ type: import("vue").PropType<import("./types").TabsType>;
5
+ default: import("./types").TabsType;
6
+ };
7
+ color: StringConstructor;
8
+ border: BooleanConstructor;
9
+ sticky: BooleanConstructor;
10
+ shrink: BooleanConstructor;
11
+ active: {
12
+ type: (NumberConstructor | StringConstructor)[];
13
+ default: number;
14
+ };
15
+ duration: {
16
+ type: (NumberConstructor | StringConstructor)[];
17
+ default: number;
18
+ };
19
+ animated: BooleanConstructor;
20
+ ellipsis: {
21
+ type: BooleanConstructor;
22
+ default: true;
23
+ };
24
+ swipeable: BooleanConstructor;
25
+ scrollspy: BooleanConstructor;
26
+ offsetTop: {
27
+ type: (NumberConstructor | StringConstructor)[];
28
+ default: number;
29
+ };
30
+ background: StringConstructor;
31
+ lazyRender: {
32
+ type: BooleanConstructor;
33
+ default: true;
34
+ };
35
+ lineWidth: (NumberConstructor | StringConstructor)[];
36
+ lineHeight: (NumberConstructor | StringConstructor)[];
37
+ beforeChange: import("vue").PropType<import("../utils").Interceptor>;
38
+ swipeThreshold: {
39
+ type: (NumberConstructor | StringConstructor)[];
40
+ default: number;
41
+ };
42
+ titleActiveColor: StringConstructor;
43
+ titleInactiveColor: StringConstructor;
44
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change" | "rendered" | "clickTab" | "update:active")[], "scroll" | "change" | "rendered" | "clickTab" | "update:active", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
+ type: {
46
+ type: import("vue").PropType<import("./types").TabsType>;
47
+ default: import("./types").TabsType;
48
+ };
49
+ color: StringConstructor;
50
+ border: BooleanConstructor;
51
+ sticky: BooleanConstructor;
52
+ shrink: BooleanConstructor;
53
+ active: {
54
+ type: (NumberConstructor | StringConstructor)[];
55
+ default: number;
56
+ };
57
+ duration: {
58
+ type: (NumberConstructor | StringConstructor)[];
59
+ default: number;
60
+ };
61
+ animated: BooleanConstructor;
62
+ ellipsis: {
63
+ type: BooleanConstructor;
64
+ default: true;
65
+ };
66
+ swipeable: BooleanConstructor;
67
+ scrollspy: BooleanConstructor;
68
+ offsetTop: {
69
+ type: (NumberConstructor | StringConstructor)[];
70
+ default: number;
71
+ };
72
+ background: StringConstructor;
73
+ lazyRender: {
74
+ type: BooleanConstructor;
75
+ default: true;
76
+ };
77
+ lineWidth: (NumberConstructor | StringConstructor)[];
78
+ lineHeight: (NumberConstructor | StringConstructor)[];
79
+ beforeChange: import("vue").PropType<import("../utils").Interceptor>;
80
+ swipeThreshold: {
81
+ type: (NumberConstructor | StringConstructor)[];
82
+ default: number;
83
+ };
84
+ titleActiveColor: StringConstructor;
85
+ titleInactiveColor: StringConstructor;
86
+ }>> & {
87
+ onChange?: ((...args: any[]) => any) | undefined;
88
+ onScroll?: ((...args: any[]) => any) | undefined;
89
+ onRendered?: ((...args: any[]) => any) | undefined;
90
+ onClickTab?: ((...args: any[]) => any) | undefined;
91
+ "onUpdate:active"?: ((...args: any[]) => any) | undefined;
92
+ }, {
93
+ type: import("./types").TabsType;
94
+ ellipsis: boolean;
95
+ sticky: boolean;
96
+ border: boolean;
97
+ active: string | number;
98
+ duration: string | number;
99
+ lazyRender: boolean;
100
+ offsetTop: string | number;
101
+ shrink: boolean;
102
+ animated: boolean;
103
+ swipeable: boolean;
104
+ scrollspy: boolean;
105
+ swipeThreshold: string | number;
106
+ }>>;
107
+ export default Tabs;
108
+ export type { TabsProps };
109
+ export type { TabsType, TabsInstance } from './types';
110
+ declare module 'vue' {
111
+ interface GlobalComponents {
112
+ ZtTabs: typeof Tabs;
113
+ }
114
+ }
@@ -0,0 +1,8 @@
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Tabs from "./Tabs.mjs";
3
+ const Tabs = withInstall(_Tabs);
4
+ var stdin_default = Tabs;
5
+ export {
6
+ Tabs,
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 "../../sticky/index.css";
4
+ import "../../swipe/index.css";
5
+ import "../index.css";
@@ -0,0 +1,23 @@
1
+ import type { ComponentPublicInstance, ComputedRef } from 'vue';
2
+ import type { Numeric } from '../utils';
3
+ import type { TabsProps } from './Tabs';
4
+ export declare type TabsType = 'line' | 'card';
5
+ export declare type TabsClickTabEventParams = {
6
+ name: Numeric;
7
+ title: string;
8
+ event: MouseEvent;
9
+ disabled: boolean;
10
+ };
11
+ export declare type TabsProvide = {
12
+ id: string;
13
+ props: TabsProps;
14
+ setLine: () => void;
15
+ onRendered: (name: Numeric, title?: string) => void;
16
+ scrollIntoView: (immediate?: boolean) => void;
17
+ currentName: ComputedRef<Numeric | undefined>;
18
+ };
19
+ export declare type TabsExpose = {
20
+ resize: () => void;
21
+ scrollTo: (name: Numeric) => void;
22
+ };
23
+ export declare type TabsInstance = ComponentPublicInstance<TabsProps, TabsExpose>;
File without changes
@@ -0,0 +1,3 @@
1
+ import { ScrollElement } from '../utils';
2
+ export declare function scrollLeftTo(scroller: HTMLElement, to: number, duration: number): void;
3
+ export declare function scrollTopTo(scroller: ScrollElement, to: number, duration: number, callback: () => void): void;
@@ -0,0 +1,37 @@
1
+ import { raf } from "@zartui/use";
2
+ import { getScrollTop, setScrollTop } from "../utils/index.mjs";
3
+ function scrollLeftTo(scroller, to, duration) {
4
+ let count = 0;
5
+ const from = scroller.scrollLeft;
6
+ const frames = duration === 0 ? 1 : Math.round(duration * 1e3 / 16);
7
+ function animate() {
8
+ scroller.scrollLeft += (to - from) / frames;
9
+ if (++count < frames) {
10
+ raf(animate);
11
+ }
12
+ }
13
+ animate();
14
+ }
15
+ function scrollTopTo(scroller, to, duration, callback) {
16
+ let current = getScrollTop(scroller);
17
+ const isDown = current < to;
18
+ const frames = duration === 0 ? 1 : Math.round(duration * 1e3 / 16);
19
+ const step = (to - current) / frames;
20
+ function animate() {
21
+ current += step;
22
+ if (isDown && current > to || !isDown && current < to) {
23
+ current = to;
24
+ }
25
+ setScrollTop(scroller, current);
26
+ if (isDown && current < to || !isDown && current > to) {
27
+ raf(animate);
28
+ } else if (callback) {
29
+ raf(callback);
30
+ }
31
+ }
32
+ animate();
33
+ }
34
+ export {
35
+ scrollLeftTo,
36
+ scrollTopTo
37
+ };
@@ -0,0 +1,112 @@
1
+ import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
2
+ import { LoadingType } from '../loading';
3
+ import type { ToastType, ToastPosition } from './types';
4
+ declare const toastProps: {
5
+ icon: StringConstructor;
6
+ show: BooleanConstructor;
7
+ type: {
8
+ type: PropType<ToastType>;
9
+ default: ToastType;
10
+ };
11
+ overlay: BooleanConstructor;
12
+ message: (NumberConstructor | StringConstructor)[];
13
+ iconSize: (NumberConstructor | StringConstructor)[];
14
+ duration: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ position: {
19
+ type: PropType<ToastPosition>;
20
+ default: ToastPosition;
21
+ };
22
+ teleport: PropType<string | import("vue").RendererElement | null | undefined>;
23
+ className: PropType<unknown>;
24
+ iconPrefix: StringConstructor;
25
+ transition: {
26
+ type: PropType<string>;
27
+ default: string;
28
+ };
29
+ loadingType: PropType<LoadingType>;
30
+ forbidClick: BooleanConstructor;
31
+ overlayClass: PropType<unknown>;
32
+ overlayStyle: PropType<CSSProperties>;
33
+ closeOnClick: BooleanConstructor;
34
+ closeOnClickOverlay: BooleanConstructor;
35
+ };
36
+ export declare type ToastProps = ExtractPropTypes<typeof toastProps>;
37
+ declare const _default: import("vue").DefineComponent<{
38
+ icon: StringConstructor;
39
+ show: BooleanConstructor;
40
+ type: {
41
+ type: PropType<ToastType>;
42
+ default: ToastType;
43
+ };
44
+ overlay: BooleanConstructor;
45
+ message: (NumberConstructor | StringConstructor)[];
46
+ iconSize: (NumberConstructor | StringConstructor)[];
47
+ duration: {
48
+ type: NumberConstructor;
49
+ default: number;
50
+ };
51
+ position: {
52
+ type: PropType<ToastPosition>;
53
+ default: ToastPosition;
54
+ };
55
+ teleport: PropType<string | import("vue").RendererElement | null | undefined>;
56
+ className: PropType<unknown>;
57
+ iconPrefix: StringConstructor;
58
+ transition: {
59
+ type: PropType<string>;
60
+ default: string;
61
+ };
62
+ loadingType: PropType<LoadingType>;
63
+ forbidClick: BooleanConstructor;
64
+ overlayClass: PropType<unknown>;
65
+ overlayStyle: PropType<CSSProperties>;
66
+ closeOnClick: BooleanConstructor;
67
+ closeOnClickOverlay: BooleanConstructor;
68
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
69
+ icon: StringConstructor;
70
+ show: BooleanConstructor;
71
+ type: {
72
+ type: PropType<ToastType>;
73
+ default: ToastType;
74
+ };
75
+ overlay: BooleanConstructor;
76
+ message: (NumberConstructor | StringConstructor)[];
77
+ iconSize: (NumberConstructor | StringConstructor)[];
78
+ duration: {
79
+ type: NumberConstructor;
80
+ default: number;
81
+ };
82
+ position: {
83
+ type: PropType<ToastPosition>;
84
+ default: ToastPosition;
85
+ };
86
+ teleport: PropType<string | import("vue").RendererElement | null | undefined>;
87
+ className: PropType<unknown>;
88
+ iconPrefix: StringConstructor;
89
+ transition: {
90
+ type: PropType<string>;
91
+ default: string;
92
+ };
93
+ loadingType: PropType<LoadingType>;
94
+ forbidClick: BooleanConstructor;
95
+ overlayClass: PropType<unknown>;
96
+ overlayStyle: PropType<CSSProperties>;
97
+ closeOnClick: BooleanConstructor;
98
+ closeOnClickOverlay: BooleanConstructor;
99
+ }>> & {
100
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
101
+ }, {
102
+ type: ToastType;
103
+ position: ToastPosition;
104
+ overlay: boolean;
105
+ show: boolean;
106
+ duration: number;
107
+ closeOnClickOverlay: boolean;
108
+ transition: string;
109
+ forbidClick: boolean;
110
+ closeOnClick: boolean;
111
+ }>;
112
+ export default _default;
@@ -0,0 +1,119 @@
1
+ import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
+ import { watch, onMounted, onUnmounted, defineComponent } from "vue";
3
+ import { pick, isDef, unknownProp, numericProp, makeStringProp, makeNumberProp, createNamespace } from "../utils/index.mjs";
4
+ import { lockClick } from "./lock-click.mjs";
5
+ import { Icon } from "../icon/index.mjs";
6
+ import { Popup } from "../popup/index.mjs";
7
+ import { Loading } from "../loading/index.mjs";
8
+ const [name, bem] = createNamespace("toast");
9
+ const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
10
+ const toastProps = {
11
+ icon: String,
12
+ show: Boolean,
13
+ type: makeStringProp("text"),
14
+ overlay: Boolean,
15
+ message: numericProp,
16
+ iconSize: numericProp,
17
+ duration: makeNumberProp(2e3),
18
+ position: makeStringProp("middle"),
19
+ teleport: [String, Object],
20
+ className: unknownProp,
21
+ iconPrefix: String,
22
+ transition: makeStringProp("zt-fade"),
23
+ loadingType: String,
24
+ forbidClick: Boolean,
25
+ overlayClass: unknownProp,
26
+ overlayStyle: Object,
27
+ closeOnClick: Boolean,
28
+ closeOnClickOverlay: Boolean
29
+ };
30
+ var stdin_default = defineComponent({
31
+ name,
32
+ props: toastProps,
33
+ emits: ["update:show"],
34
+ setup(props, {
35
+ emit
36
+ }) {
37
+ let timer;
38
+ let clickable = false;
39
+ const toggleClickable = () => {
40
+ const newValue = props.show && props.forbidClick;
41
+ if (clickable !== newValue) {
42
+ clickable = newValue;
43
+ lockClick(clickable);
44
+ }
45
+ };
46
+ const updateShow = (show) => emit("update:show", show);
47
+ const onClick = () => {
48
+ if (props.closeOnClick) {
49
+ updateShow(false);
50
+ }
51
+ };
52
+ const clearTimer = () => clearTimeout(timer);
53
+ const renderIcon = () => {
54
+ const {
55
+ icon,
56
+ type,
57
+ iconSize,
58
+ iconPrefix,
59
+ loadingType
60
+ } = props;
61
+ const hasIcon = icon || type === "success" || type === "warning";
62
+ if (hasIcon) {
63
+ return _createVNode(Icon, {
64
+ "name": icon || type,
65
+ "size": iconSize,
66
+ "class": bem("icon"),
67
+ "classPrefix": iconPrefix
68
+ }, null);
69
+ }
70
+ if (type === "loading") {
71
+ return _createVNode(Loading, {
72
+ "class": bem("loading"),
73
+ "size": iconSize,
74
+ "type": loadingType
75
+ }, null);
76
+ }
77
+ };
78
+ const renderMessage = () => {
79
+ const {
80
+ type,
81
+ message
82
+ } = props;
83
+ if (isDef(message) && message !== "") {
84
+ return type === "html" ? _createVNode("div", {
85
+ "key": 0,
86
+ "class": bem("text"),
87
+ "innerHTML": String(message)
88
+ }, null) : _createVNode("div", {
89
+ "class": bem("text")
90
+ }, [message]);
91
+ }
92
+ };
93
+ watch(() => [props.show, props.forbidClick], toggleClickable);
94
+ watch(() => [props.show, props.type, props.message, props.duration], () => {
95
+ clearTimer();
96
+ if (props.show && props.duration > 0) {
97
+ timer = setTimeout(() => {
98
+ updateShow(false);
99
+ }, props.duration);
100
+ }
101
+ });
102
+ onMounted(toggleClickable);
103
+ onUnmounted(toggleClickable);
104
+ return () => _createVNode(Popup, _mergeProps({
105
+ "class": [bem([props.position, {
106
+ [props.type]: !props.icon
107
+ }]), props.className],
108
+ "lockScroll": false,
109
+ "onClick": onClick,
110
+ "onClosed": clearTimer,
111
+ "onUpdate:show": updateShow
112
+ }, pick(props, popupInheritProps)), {
113
+ default: () => [renderIcon(), renderMessage()]
114
+ });
115
+ }
116
+ });
117
+ export {
118
+ stdin_default as default
119
+ };
@@ -0,0 +1,10 @@
1
+ import type { ToastType, ToastOptions, ToastWrapperInstance } from './types';
2
+ export declare function showToast(options?: string | ToastOptions): ToastWrapperInstance;
3
+ export declare const showLoadingToast: (options: string | ToastOptions) => ToastWrapperInstance;
4
+ export declare const showSuccessToast: (options: string | ToastOptions) => ToastWrapperInstance;
5
+ export declare const showFailToast: (options: string | ToastOptions) => ToastWrapperInstance;
6
+ export declare const closeToast: (all?: boolean) => void;
7
+ export declare function setToastDefaultOptions(options: ToastOptions): void;
8
+ export declare function setToastDefaultOptions(type: ToastType, options: ToastOptions): void;
9
+ export declare const resetToastDefaultOptions: (type?: ToastType) => void;
10
+ export declare const allowMultipleToast: (value?: boolean) => void;
@@ -0,0 +1,142 @@
1
+ import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
+ import { ref, watch, getCurrentInstance } from "vue";
3
+ import { extend, isObject, inBrowser } from "../utils/index.mjs";
4
+ import { mountComponent, usePopupState } from "../utils/mount-component.mjs";
5
+ import ZtToast from "./Toast.mjs";
6
+ const defaultOptions = {
7
+ icon: "",
8
+ type: "text",
9
+ message: "",
10
+ className: "",
11
+ overlay: false,
12
+ onClose: void 0,
13
+ onOpened: void 0,
14
+ duration: 2e3,
15
+ teleport: "body",
16
+ iconSize: void 0,
17
+ iconPrefix: void 0,
18
+ position: "middle",
19
+ transition: "zt-fade",
20
+ forbidClick: false,
21
+ loadingType: void 0,
22
+ overlayClass: "",
23
+ overlayStyle: void 0,
24
+ closeOnClick: false,
25
+ closeOnClickOverlay: false
26
+ };
27
+ let queue = [];
28
+ let allowMultiple = false;
29
+ let currentOptions = extend({}, defaultOptions);
30
+ const defaultOptionsMap = /* @__PURE__ */ new Map();
31
+ function parseOptions(message) {
32
+ if (isObject(message)) {
33
+ return message;
34
+ }
35
+ return {
36
+ message
37
+ };
38
+ }
39
+ function createInstance() {
40
+ const {
41
+ instance,
42
+ unmount
43
+ } = mountComponent({
44
+ setup() {
45
+ const message = ref("");
46
+ const {
47
+ open,
48
+ state,
49
+ close,
50
+ toggle
51
+ } = usePopupState();
52
+ const onClosed = () => {
53
+ if (allowMultiple) {
54
+ queue = queue.filter((item) => item !== instance);
55
+ unmount();
56
+ }
57
+ };
58
+ const render = () => {
59
+ const attrs = {
60
+ onClosed,
61
+ "onUpdate:show": toggle
62
+ };
63
+ return _createVNode(ZtToast, _mergeProps(state, attrs), null);
64
+ };
65
+ watch(message, (val) => {
66
+ state.message = val;
67
+ });
68
+ getCurrentInstance().render = render;
69
+ return {
70
+ open,
71
+ close,
72
+ message
73
+ };
74
+ }
75
+ });
76
+ return instance;
77
+ }
78
+ function getInstance() {
79
+ if (!queue.length || allowMultiple) {
80
+ const instance = createInstance();
81
+ queue.push(instance);
82
+ }
83
+ return queue[queue.length - 1];
84
+ }
85
+ function showToast(options = {}) {
86
+ if (!inBrowser) {
87
+ return {};
88
+ }
89
+ const toast = getInstance();
90
+ const parsedOptions = parseOptions(options);
91
+ toast.open(extend({}, currentOptions, defaultOptionsMap.get(parsedOptions.type || currentOptions.type), parsedOptions));
92
+ return toast;
93
+ }
94
+ const createMethod = (type) => (options) => showToast(extend({
95
+ type
96
+ }, parseOptions(options)));
97
+ const showLoadingToast = createMethod("loading");
98
+ const showSuccessToast = createMethod("success");
99
+ const showFailToast = createMethod("warning");
100
+ const closeToast = (all) => {
101
+ var _a;
102
+ if (queue.length) {
103
+ if (all) {
104
+ queue.forEach((toast) => {
105
+ toast.close();
106
+ });
107
+ queue = [];
108
+ } else if (!allowMultiple) {
109
+ queue[0].close();
110
+ } else {
111
+ (_a = queue.shift()) == null ? void 0 : _a.close();
112
+ }
113
+ }
114
+ };
115
+ function setToastDefaultOptions(type, options) {
116
+ if (typeof type === "string") {
117
+ defaultOptionsMap.set(type, options);
118
+ } else {
119
+ extend(currentOptions, type);
120
+ }
121
+ }
122
+ const resetToastDefaultOptions = (type) => {
123
+ if (typeof type === "string") {
124
+ defaultOptionsMap.delete(type);
125
+ } else {
126
+ currentOptions = extend({}, defaultOptions);
127
+ defaultOptionsMap.clear();
128
+ }
129
+ };
130
+ const allowMultipleToast = (value = true) => {
131
+ allowMultiple = value;
132
+ };
133
+ export {
134
+ allowMultipleToast,
135
+ closeToast,
136
+ resetToastDefaultOptions,
137
+ setToastDefaultOptions,
138
+ showFailToast,
139
+ showLoadingToast,
140
+ showSuccessToast,
141
+ showToast
142
+ };
@@ -1 +1 @@
1
- .zt-toast{position:fixed;top:50%;left:50%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;width:88px;max-width:70%;min-height:84px;padding:16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-break:break-all;background-color:rgba(0,0,0,.8);border-radius:4px;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.zt-toast--unclickable{overflow:hidden}.zt-toast--unclickable *{pointer-events:none}.zt-toast--html,.zt-toast--text{width:-webkit-fit-content;width:fit-content;min-width:96px;min-height:0;padding:8px 12px}.zt-toast--html .zt-toast__text,.zt-toast--text .zt-toast__text{margin-top:0}.zt-toast--top{top:20%}.zt-toast--bottom{top:auto;bottom:20%}.zt-toast__icon{font-size:36px}.zt-toast__loading{padding:4px;color:#fff}.zt-toast__text{margin-top:4px}.zt-toast--fail svg,.zt-toast--success svg{width:36px;height:36px}
1
+ body{--zt-toast-max-width: 70%;--zt-toast-font-size: var(--zt-font-size-md);--zt-toast-text-color: var(--zt-white);--zt-toast-loading-icon-color: var(--zt-white);--zt-toast-line-height: var(--zt-line-height-md);--zt-toast-radius: var(--zt-radius-lg);--zt-toast-background: rgba(45, 75, 115, .8);--zt-toast-icon-size: 36px;--zt-toast-text-min-width: 96px;--zt-toast-text-padding: var(--zt-padding-xs) var(--zt-padding-sm);--zt-toast-default-padding: var(--zt-padding-md);--zt-toast-default-width: 88px;--zt-toast-default-min-height: 84px;--zt-toast-position-top-distance: 20%;--zt-toast-position-bottom-distance: 20%}.zt-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--zt-duration-fast);width:var(--zt-toast-default-width);max-width:var(--zt-toast-max-width);min-height:var(--zt-toast-default-min-height);padding:var(--zt-toast-default-padding);color:var(--zt-toast-text-color);font-size:var(--zt-toast-font-size);line-height:var(--zt-toast-line-height);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--zt-toast-background);border-radius:var(--zt-toast-radius)}.zt-toast--unclickable{overflow:hidden;cursor:not-allowed}.zt-toast--unclickable *{pointer-events:none}.zt-toast--text,.zt-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--zt-toast-text-min-width);min-height:0;padding:var(--zt-toast-text-padding)}.zt-toast--text .zt-toast__text,.zt-toast--html .zt-toast__text{margin-top:0}.zt-toast--top{top:var(--zt-toast-position-top-distance)}.zt-toast--bottom{top:auto;bottom:var(--zt-toast-position-bottom-distance)}.zt-toast__icon{font-size:var(--zt-toast-icon-size)}.zt-toast__loading{padding:var(--zt-padding-base);color:var(--zt-toast-loading-icon-color)}.zt-toast__text{margin-top:var(--zt-padding-xs)}
@@ -0,0 +1,79 @@
1
+ export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ icon: StringConstructor;
3
+ show: BooleanConstructor;
4
+ type: {
5
+ type: import("vue").PropType<import("./types").ToastType>;
6
+ default: import("./types").ToastType;
7
+ };
8
+ overlay: BooleanConstructor;
9
+ message: (NumberConstructor | StringConstructor)[];
10
+ iconSize: (NumberConstructor | StringConstructor)[];
11
+ duration: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ position: {
16
+ type: import("vue").PropType<import("./types").ToastPosition>;
17
+ default: import("./types").ToastPosition;
18
+ };
19
+ teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
20
+ className: import("vue").PropType<unknown>;
21
+ iconPrefix: StringConstructor;
22
+ transition: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ loadingType: import("vue").PropType<import("..").LoadingType>;
27
+ forbidClick: BooleanConstructor;
28
+ overlayClass: import("vue").PropType<unknown>;
29
+ overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
30
+ closeOnClick: BooleanConstructor;
31
+ closeOnClickOverlay: BooleanConstructor;
32
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ icon: StringConstructor;
34
+ show: BooleanConstructor;
35
+ type: {
36
+ type: import("vue").PropType<import("./types").ToastType>;
37
+ default: import("./types").ToastType;
38
+ };
39
+ overlay: BooleanConstructor;
40
+ message: (NumberConstructor | StringConstructor)[];
41
+ iconSize: (NumberConstructor | StringConstructor)[];
42
+ duration: {
43
+ type: NumberConstructor;
44
+ default: number;
45
+ };
46
+ position: {
47
+ type: import("vue").PropType<import("./types").ToastPosition>;
48
+ default: import("./types").ToastPosition;
49
+ };
50
+ teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
51
+ className: import("vue").PropType<unknown>;
52
+ iconPrefix: StringConstructor;
53
+ transition: {
54
+ type: import("vue").PropType<string>;
55
+ default: string;
56
+ };
57
+ loadingType: import("vue").PropType<import("..").LoadingType>;
58
+ forbidClick: BooleanConstructor;
59
+ overlayClass: import("vue").PropType<unknown>;
60
+ overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
61
+ closeOnClick: BooleanConstructor;
62
+ closeOnClickOverlay: BooleanConstructor;
63
+ }>> & {
64
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
65
+ }, {
66
+ type: import("./types").ToastType;
67
+ position: import("./types").ToastPosition;
68
+ overlay: boolean;
69
+ show: boolean;
70
+ duration: number;
71
+ closeOnClickOverlay: boolean;
72
+ transition: string;
73
+ forbidClick: boolean;
74
+ closeOnClick: boolean;
75
+ }>>;
76
+ export default Toast;
77
+ export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
78
+ export type { ToastProps } from './Toast';
79
+ export type { ToastType, ToastOptions, ToastPosition } from './types';