centui 0.0.0-stage → 3.1.0

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 (411) hide show
  1. package/LICENSE +433 -0
  2. package/README.md +54 -2
  3. package/dist/ActionBar-Bs5fkyFH.cjs +1 -0
  4. package/dist/ActionBar-CF1zMUMC.js +56 -0
  5. package/dist/ActivityIndicator-BOZRJBDn.cjs +1 -0
  6. package/dist/ActivityIndicator-Cp20c1E0.js +162 -0
  7. package/dist/Agree-ZswFiFNy.cjs +1 -0
  8. package/dist/Agree-lAcOo38C.js +43 -0
  9. package/dist/Amount-B2StZGGW.js +56 -0
  10. package/dist/Amount-CU7Oc4vv.cjs +1 -0
  11. package/dist/Bill-DDVs3Lu3.cjs +1 -0
  12. package/dist/Bill-qQ4LdkmR.js +58 -0
  13. package/dist/Button-Bu8liJQE.cjs +1 -0
  14. package/dist/Button-D7e-cuA1.js +60 -0
  15. package/dist/Captcha-BEF-de8-.cjs +1 -0
  16. package/dist/Captcha-CgpynYTc.js +283 -0
  17. package/dist/Cashier-CJLfQOXm.js +363 -0
  18. package/dist/Cashier-CLJngM0n.cjs +1 -0
  19. package/dist/CellItem-BHEh4Cp-.js +71 -0
  20. package/dist/CellItem-J0LkwZNL.cjs +1 -0
  21. package/dist/Chart-BINJAx7V.js +135 -0
  22. package/dist/Chart-DJ0Q1g1P.cjs +1 -0
  23. package/dist/CheckBox-D5bCJUXD.js +55 -0
  24. package/dist/CheckBox-DDeCshDK.cjs +1 -0
  25. package/dist/CheckBoxBase-BIPGJ-TD.js +43 -0
  26. package/dist/CheckBoxBase-CobK6-tL.cjs +1 -0
  27. package/dist/CheckList-BsKo_Fl3.cjs +1 -0
  28. package/dist/CheckList-ViiCo4yi.js +195 -0
  29. package/dist/Codebox-BLPrFnIv.js +188 -0
  30. package/dist/Codebox-yLkdTU7w.cjs +1 -0
  31. package/dist/DatePicker-CCU6gqG3.cjs +1 -0
  32. package/dist/DatePicker-CYvPJatt.js +175 -0
  33. package/dist/DetailItem-D6-zbZmd.js +21 -0
  34. package/dist/DetailItem-DDJXXao0.cjs +1 -0
  35. package/dist/Dialog-208_XUAL.cjs +1 -0
  36. package/dist/Dialog-Bb7Gth3j.js +148 -0
  37. package/dist/DropMenu-5TA_6bas.js +95 -0
  38. package/dist/DropMenu-D_ZMGOOi.cjs +1 -0
  39. package/dist/Field-0hdNWFNm.js +50 -0
  40. package/dist/Field-DDmHa4zB.cjs +1 -0
  41. package/dist/FieldItem-D79w330m.js +87 -0
  42. package/dist/FieldItem-UFKrl_5J.cjs +1 -0
  43. package/dist/Icon-83WWqE5z.cjs +31 -0
  44. package/dist/Icon-BgCtu0ZV.js +117 -0
  45. package/dist/ImageReader-DjshA_hh.cjs +1 -0
  46. package/dist/ImageReader-hUb5CEbV.js +122 -0
  47. package/dist/ImageViewer-BCEK4DOF.cjs +1 -0
  48. package/dist/ImageViewer-_dTRCIsV.js +68 -0
  49. package/dist/InputItem-DO5Yo_IH.cjs +1 -0
  50. package/dist/InputItem-yHsLFvKt.js +327 -0
  51. package/dist/Landscape-BsHyoM4N.cjs +1 -0
  52. package/dist/Landscape-Dd0abEy1.js +73 -0
  53. package/dist/LicensePlate-CTcAIbcb.js +201 -0
  54. package/dist/LicensePlate-CfwpVw0G.cjs +1 -0
  55. package/dist/NoticeBar-CV355FeO.cjs +1 -0
  56. package/dist/NoticeBar-G5aKL6VO.js +92 -0
  57. package/dist/NumberKeyboard-BWpxsbYt.cjs +1 -0
  58. package/dist/NumberKeyboard-B_TJXxki.js +335 -0
  59. package/dist/Picker-BOEGTBaN.cjs +1 -0
  60. package/dist/Picker-CA-JQ_OC.js +493 -0
  61. package/dist/Popup-Ca1jPi0t.cjs +1 -0
  62. package/dist/Popup-qLk-BsRS.js +116 -0
  63. package/dist/PopupTitleBar-9P4RUMC1.js +84 -0
  64. package/dist/PopupTitleBar-Bfl49eYJ.cjs +1 -0
  65. package/dist/Progress-CT-LHaQ0.cjs +1 -0
  66. package/dist/Progress-Clet0W_n.js +65 -0
  67. package/dist/Radio-B_MxJ65X.cjs +1 -0
  68. package/dist/Radio-DY-ZX0BP.js +67 -0
  69. package/dist/RadioGroup-B00aqM9e.js +84 -0
  70. package/dist/RadioGroup-B6ukqnm5.cjs +1 -0
  71. package/dist/RadioList-D-9PITpr.cjs +1 -0
  72. package/dist/RadioList-DNGsEzgf.js +125 -0
  73. package/dist/ResultPage-DUs8ok5R.js +64 -0
  74. package/dist/ResultPage-YQWDaFmz.cjs +1 -0
  75. package/dist/Roller-BznN57fL.js +91 -0
  76. package/dist/Roller-DALhjhfg.cjs +1 -0
  77. package/dist/RollerSuccess-BbMzNlkv.cjs +1 -0
  78. package/dist/RollerSuccess-CTh43Rh0.js +65 -0
  79. package/dist/Ruler-Bhf5J7hU.js +136 -0
  80. package/dist/Ruler-CEzB0oqG.cjs +1 -0
  81. package/dist/ScrollView-BNY62f7B.js +228 -0
  82. package/dist/ScrollView-BnadVBJC.cjs +1 -0
  83. package/dist/ScrollViewMore-BL1vpyMj.cjs +1 -0
  84. package/dist/ScrollViewMore-DBhoiI1X.js +54 -0
  85. package/dist/Selector-DOU8Af55.js +209 -0
  86. package/dist/Selector-DnFvOGbv.cjs +1 -0
  87. package/dist/Skeleton--SCiydNl.cjs +1 -0
  88. package/dist/Skeleton-DqA5IxL5.js +54 -0
  89. package/dist/Slider-BB2Nhpys.js +100 -0
  90. package/dist/Slider-vV7_nULf.cjs +1 -0
  91. package/dist/Stepper-BnDhL8IO.js +137 -0
  92. package/dist/Stepper-n_mc16V2.cjs +1 -0
  93. package/dist/Steps-BPQwab3T.js +157 -0
  94. package/dist/Steps-Dfpmgl8B.cjs +1 -0
  95. package/dist/SwiperItem-BY5cUoGn.cjs +1 -0
  96. package/dist/SwiperItem-BydyBdYU.js +323 -0
  97. package/dist/Switch-B1rsBY-M.js +31 -0
  98. package/dist/Switch-CghubImq.cjs +1 -0
  99. package/dist/TabPane-BCVsdptu.cjs +1 -0
  100. package/dist/TabPane-Q7oUFzmP.js +237 -0
  101. package/dist/TabPicker-BcL9assY.cjs +1 -0
  102. package/dist/TabPicker-BicPrto7.js +173 -0
  103. package/dist/Tag-C7ygxOwU.js +78 -0
  104. package/dist/Tag-CIA2npnD.cjs +1 -0
  105. package/dist/TextareaItem-Dl-PCLl-.js +168 -0
  106. package/dist/TextareaItem-Du5nl7tv.cjs +1 -0
  107. package/dist/Tip-DHPmevlv.js +165 -0
  108. package/dist/Tip-De_3tKtb.cjs +1 -0
  109. package/dist/Transition-B-baX512.js +14 -0
  110. package/dist/Transition-Bwbqr4Xr.cjs +1 -0
  111. package/dist/WaterMark-CgkuQjv3.js +103 -0
  112. package/dist/WaterMark-M81jg6T5.cjs +1 -0
  113. package/dist/action-bar.cjs +1 -0
  114. package/dist/action-bar.d.ts +1 -0
  115. package/dist/action-bar.js +1 -0
  116. package/dist/action-sheet-BjaReHkr.cjs +1 -0
  117. package/dist/action-sheet-Da8dHevy.js +121 -0
  118. package/dist/action-sheet.cjs +1 -0
  119. package/dist/action-sheet.d.ts +2 -0
  120. package/dist/action-sheet.js +1 -0
  121. package/dist/activity-indicator.cjs +1 -0
  122. package/dist/activity-indicator.d.ts +1 -0
  123. package/dist/activity-indicator.js +4 -0
  124. package/dist/agree.cjs +1 -0
  125. package/dist/agree.d.ts +1 -0
  126. package/dist/agree.js +1 -0
  127. package/dist/amount.cjs +1 -0
  128. package/dist/amount.d.ts +1 -0
  129. package/dist/amount.js +1 -0
  130. package/dist/bill.cjs +1 -0
  131. package/dist/bill.d.ts +1 -0
  132. package/dist/bill.js +1 -0
  133. package/dist/button.cjs +1 -0
  134. package/dist/button.d.ts +1 -0
  135. package/dist/button.js +1 -0
  136. package/dist/captcha.cjs +1 -0
  137. package/dist/captcha.d.ts +1 -0
  138. package/dist/captcha.js +1 -0
  139. package/dist/cashier.cjs +1 -0
  140. package/dist/cashier.d.ts +1 -0
  141. package/dist/cashier.js +1 -0
  142. package/dist/cell-item.cjs +1 -0
  143. package/dist/cell-item.d.ts +1 -0
  144. package/dist/cell-item.js +1 -0
  145. package/dist/chart.cjs +1 -0
  146. package/dist/chart.d.ts +1 -0
  147. package/dist/chart.js +1 -0
  148. package/dist/check-base.cjs +1 -0
  149. package/dist/check-base.d.ts +1 -0
  150. package/dist/check-base.js +1 -0
  151. package/dist/check.cjs +1 -0
  152. package/dist/check.d.ts +1 -0
  153. package/dist/check.js +3 -0
  154. package/dist/codebox.cjs +1 -0
  155. package/dist/codebox.d.ts +1 -0
  156. package/dist/codebox.js +1 -0
  157. package/dist/components/action-bar/ActionBar.vue.d.ts +34 -0
  158. package/dist/components/action-bar/index.d.ts +2 -0
  159. package/dist/components/action-sheet/ActionSheet.vue.d.ts +49 -0
  160. package/dist/components/action-sheet/index.d.ts +25 -0
  161. package/dist/components/activity-indicator/ActivityIndicator.vue.d.ts +31 -0
  162. package/dist/components/activity-indicator/Carousel.vue.d.ts +10 -0
  163. package/dist/components/activity-indicator/CarouselCircle.vue.d.ts +12 -0
  164. package/dist/components/activity-indicator/Roller.vue.d.ts +37 -0
  165. package/dist/components/activity-indicator/RollerSuccess.vue.d.ts +14 -0
  166. package/dist/components/activity-indicator/Spinning.vue.d.ts +10 -0
  167. package/dist/components/activity-indicator/index.d.ts +5 -0
  168. package/dist/components/agree/Agree.vue.d.ts +35 -0
  169. package/dist/components/agree/index.d.ts +1 -0
  170. package/dist/components/amount/Amount.vue.d.ts +25 -0
  171. package/dist/components/amount/index.d.ts +1 -0
  172. package/dist/components/bill/Bill.vue.d.ts +33 -0
  173. package/dist/components/bill/index.d.ts +1 -0
  174. package/dist/components/button/Button.vue.d.ts +38 -0
  175. package/dist/components/button/index.d.ts +1 -0
  176. package/dist/components/captcha/Captcha.vue.d.ts +76 -0
  177. package/dist/components/captcha/index.d.ts +1 -0
  178. package/dist/components/cashier/Cashier.vue.d.ts +101 -0
  179. package/dist/components/cashier/CashierChannel.vue.d.ts +58 -0
  180. package/dist/components/cashier/CashierChannelButton.vue.d.ts +14 -0
  181. package/dist/components/cashier/CashierChannelItem.vue.d.ts +30 -0
  182. package/dist/components/cashier/index.d.ts +4 -0
  183. package/dist/components/cell-item/CellItem.vue.d.ts +38 -0
  184. package/dist/components/cell-item/index.d.ts +1 -0
  185. package/dist/components/chart/Chart.vue.d.ts +30 -0
  186. package/dist/components/chart/index.d.ts +2 -0
  187. package/dist/components/check/Check.vue.d.ts +38 -0
  188. package/dist/components/check/CheckBox.vue.d.ts +31 -0
  189. package/dist/components/check/CheckGroup.vue.d.ts +27 -0
  190. package/dist/components/check/CheckList.vue.d.ts +58 -0
  191. package/dist/components/check/index.d.ts +6 -0
  192. package/dist/components/check/shared.d.ts +52 -0
  193. package/dist/components/check-base/CheckBoxBase.vue.d.ts +25 -0
  194. package/dist/components/check-base/index.d.ts +1 -0
  195. package/dist/components/codebox/Codebox.vue.d.ts +58 -0
  196. package/dist/components/codebox/index.d.ts +1 -0
  197. package/dist/components/date-picker/DatePicker.vue.d.ts +70 -0
  198. package/dist/components/date-picker/index.d.ts +1 -0
  199. package/dist/components/detail-item/DetailItem.vue.d.ts +22 -0
  200. package/dist/components/detail-item/index.d.ts +1 -0
  201. package/dist/components/dialog/Dialog.vue.d.ts +88 -0
  202. package/dist/components/dialog/index.d.ts +40 -0
  203. package/dist/components/drop-menu/DropMenu.vue.d.ts +55 -0
  204. package/dist/components/drop-menu/index.d.ts +1 -0
  205. package/dist/components/field/Field.vue.d.ts +30 -0
  206. package/dist/components/field/index.d.ts +1 -0
  207. package/dist/components/field-item/FieldItem.vue.d.ts +42 -0
  208. package/dist/components/field-item/index.d.ts +1 -0
  209. package/dist/components/icon/Icon.vue.d.ts +20 -0
  210. package/dist/components/icon/default-svg-list.d.ts +2 -0
  211. package/dist/components/icon/index.d.ts +1 -0
  212. package/dist/components/icon/load-sprite.d.ts +6 -0
  213. package/dist/components/image-reader/ImageReader.vue.d.ts +46 -0
  214. package/dist/components/image-reader/index.d.ts +1 -0
  215. package/dist/components/image-viewer/ImageViewer.vue.d.ts +25 -0
  216. package/dist/components/image-viewer/index.d.ts +1 -0
  217. package/dist/components/index.d.ts +3 -0
  218. package/dist/components/input-item/InputItem.vue.d.ts +97 -0
  219. package/dist/components/input-item/cursor.d.ts +7 -0
  220. package/dist/components/input-item/index.d.ts +1 -0
  221. package/dist/components/landscape/Landscape.vue.d.ts +38 -0
  222. package/dist/components/landscape/index.d.ts +1 -0
  223. package/dist/components/license-plate/LicensePlate.vue.d.ts +32 -0
  224. package/dist/components/license-plate/LicensePlateInput.vue.d.ts +14 -0
  225. package/dist/components/license-plate/LicensePlateKeyboard.vue.d.ts +30 -0
  226. package/dist/components/license-plate/index.d.ts +3 -0
  227. package/dist/components/notice-bar/NoticeBar.vue.d.ts +44 -0
  228. package/dist/components/notice-bar/index.d.ts +1 -0
  229. package/dist/components/number-keyboard/KeyboardBoard.vue.d.ts +33 -0
  230. package/dist/components/number-keyboard/KeyboardKey.vue.d.ts +19 -0
  231. package/dist/components/number-keyboard/NumberKeyboard.vue.d.ts +59 -0
  232. package/dist/components/number-keyboard/index.d.ts +3 -0
  233. package/dist/components/picker/Picker.vue.d.ts +64 -0
  234. package/dist/components/picker/PickerColumn.vue.d.ts +64 -0
  235. package/dist/components/picker/index.d.ts +3 -0
  236. package/dist/components/popup/Popup.vue.d.ts +50 -0
  237. package/dist/components/popup/PopupTitleBar.vue.d.ts +45 -0
  238. package/dist/components/popup/index.d.ts +2 -0
  239. package/dist/components/progress/Progress.vue.d.ts +39 -0
  240. package/dist/components/progress/index.d.ts +1 -0
  241. package/dist/components/radio/Radio.vue.d.ts +39 -0
  242. package/dist/components/radio/RadioBox.vue.d.ts +31 -0
  243. package/dist/components/radio/RadioGroup.vue.d.ts +24 -0
  244. package/dist/components/radio/index.d.ts +3 -0
  245. package/dist/components/radio-list/RadioList.vue.d.ts +72 -0
  246. package/dist/components/radio-list/index.d.ts +2 -0
  247. package/dist/components/result-page/ResultPage.vue.d.ts +28 -0
  248. package/dist/components/result-page/index.d.ts +1 -0
  249. package/dist/components/ruler/Ruler.vue.d.ts +34 -0
  250. package/dist/components/ruler/index.d.ts +1 -0
  251. package/dist/components/scroll-view/ScrollView.vue.d.ts +84 -0
  252. package/dist/components/scroll-view/ScrollViewMore.vue.d.ts +12 -0
  253. package/dist/components/scroll-view/ScrollViewRefresh.vue.d.ts +20 -0
  254. package/dist/components/scroll-view/index.d.ts +3 -0
  255. package/dist/components/selector/Selector.vue.d.ts +88 -0
  256. package/dist/components/selector/index.d.ts +2 -0
  257. package/dist/components/skeleton/Skeleton.vue.d.ts +30 -0
  258. package/dist/components/skeleton/index.d.ts +1 -0
  259. package/dist/components/slider/Slider.vue.d.ts +24 -0
  260. package/dist/components/slider/index.d.ts +1 -0
  261. package/dist/components/stepper/Stepper.vue.d.ts +32 -0
  262. package/dist/components/stepper/index.d.ts +1 -0
  263. package/dist/components/steps/Steps.vue.d.ts +56 -0
  264. package/dist/components/steps/index.d.ts +2 -0
  265. package/dist/components/swiper/Swiper.vue.d.ts +57 -0
  266. package/dist/components/swiper/SwiperItem.vue.d.ts +26 -0
  267. package/dist/components/swiper/index.d.ts +2 -0
  268. package/dist/components/switch/Switch.vue.d.ts +16 -0
  269. package/dist/components/switch/index.d.ts +1 -0
  270. package/dist/components/tab-picker/TabPicker.vue.d.ts +78 -0
  271. package/dist/components/tab-picker/index.d.ts +1 -0
  272. package/dist/components/tabs/TabBar.vue.d.ts +50 -0
  273. package/dist/components/tabs/TabPane.vue.d.ts +31 -0
  274. package/dist/components/tabs/Tabs.vue.d.ts +34 -0
  275. package/dist/components/tabs/index.d.ts +3 -0
  276. package/dist/components/tag/Tag.vue.d.ts +39 -0
  277. package/dist/components/tag/index.d.ts +1 -0
  278. package/dist/components/textarea-item/TextareaItem.vue.d.ts +80 -0
  279. package/dist/components/textarea-item/index.d.ts +1 -0
  280. package/dist/components/tip/Tip.vue.d.ts +98 -0
  281. package/dist/components/tip/TipContent.vue.d.ts +33 -0
  282. package/dist/components/tip/index.d.ts +2 -0
  283. package/dist/components/toast/Toast.vue.d.ts +45 -0
  284. package/dist/components/toast/index.d.ts +129 -0
  285. package/dist/components/transition/Transition.vue.d.ts +13 -0
  286. package/dist/components/transition/index.d.ts +1 -0
  287. package/dist/components/water-mark/WaterMark.vue.d.ts +35 -0
  288. package/dist/components/water-mark/index.d.ts +1 -0
  289. package/dist/cursor-BIPoNm8V.js +11 -0
  290. package/dist/cursor-tQE3LcbU.cjs +1 -0
  291. package/dist/date-picker.cjs +1 -0
  292. package/dist/date-picker.d.ts +1 -0
  293. package/dist/date-picker.js +1 -0
  294. package/dist/detail-item.cjs +1 -0
  295. package/dist/detail-item.d.ts +1 -0
  296. package/dist/detail-item.js +1 -0
  297. package/dist/dialog-C38EDWGJ.cjs +1 -0
  298. package/dist/dialog-DdNA6YSe.js +91 -0
  299. package/dist/dialog.cjs +1 -0
  300. package/dist/dialog.d.ts +2 -0
  301. package/dist/dialog.js +3 -0
  302. package/dist/drop-menu.cjs +1 -0
  303. package/dist/drop-menu.d.ts +1 -0
  304. package/dist/drop-menu.js +1 -0
  305. package/dist/field-item.cjs +1 -0
  306. package/dist/field-item.d.ts +1 -0
  307. package/dist/field-item.js +1 -0
  308. package/dist/field.cjs +1 -0
  309. package/dist/field.d.ts +1 -0
  310. package/dist/field.js +1 -0
  311. package/dist/icon.cjs +1 -0
  312. package/dist/icon.d.ts +1 -0
  313. package/dist/icon.js +1 -0
  314. package/dist/image-reader.cjs +1 -0
  315. package/dist/image-reader.d.ts +1 -0
  316. package/dist/image-reader.js +1 -0
  317. package/dist/image-viewer.cjs +1 -0
  318. package/dist/image-viewer.d.ts +1 -0
  319. package/dist/image-viewer.js +1 -0
  320. package/dist/index.cjs +1 -0
  321. package/dist/index.d.ts +64 -0
  322. package/dist/index.js +61 -0
  323. package/dist/input-item.cjs +1 -0
  324. package/dist/input-item.d.ts +1 -0
  325. package/dist/input-item.js +1 -0
  326. package/dist/landscape.cjs +1 -0
  327. package/dist/landscape.d.ts +1 -0
  328. package/dist/landscape.js +1 -0
  329. package/dist/license-plate.cjs +1 -0
  330. package/dist/license-plate.d.ts +1 -0
  331. package/dist/license-plate.js +1 -0
  332. package/dist/notice-bar.cjs +1 -0
  333. package/dist/notice-bar.d.ts +1 -0
  334. package/dist/notice-bar.js +1 -0
  335. package/dist/number-keyboard.cjs +1 -0
  336. package/dist/number-keyboard.d.ts +1 -0
  337. package/dist/number-keyboard.js +1 -0
  338. package/dist/picker.cjs +1 -0
  339. package/dist/picker.d.ts +1 -0
  340. package/dist/picker.js +1 -0
  341. package/dist/popup.cjs +1 -0
  342. package/dist/popup.d.ts +1 -0
  343. package/dist/popup.js +3 -0
  344. package/dist/progress.cjs +1 -0
  345. package/dist/progress.d.ts +1 -0
  346. package/dist/progress.js +1 -0
  347. package/dist/radio-list.cjs +1 -0
  348. package/dist/radio-list.d.ts +1 -0
  349. package/dist/radio-list.js +1 -0
  350. package/dist/radio.cjs +1 -0
  351. package/dist/radio.d.ts +1 -0
  352. package/dist/radio.js +3 -0
  353. package/dist/result-page.cjs +1 -0
  354. package/dist/result-page.d.ts +1 -0
  355. package/dist/result-page.js +1 -0
  356. package/dist/ruler.cjs +1 -0
  357. package/dist/ruler.d.ts +1 -0
  358. package/dist/ruler.js +1 -0
  359. package/dist/scroll-view.cjs +1 -0
  360. package/dist/scroll-view.d.ts +1 -0
  361. package/dist/scroll-view.js +3 -0
  362. package/dist/selector.cjs +1 -0
  363. package/dist/selector.d.ts +1 -0
  364. package/dist/selector.js +1 -0
  365. package/dist/shared-C9XlLe7F.js +36 -0
  366. package/dist/shared-k9cbQbvK.cjs +1 -0
  367. package/dist/skeleton.cjs +1 -0
  368. package/dist/skeleton.d.ts +1 -0
  369. package/dist/skeleton.js +1 -0
  370. package/dist/slider.cjs +1 -0
  371. package/dist/slider.d.ts +1 -0
  372. package/dist/slider.js +1 -0
  373. package/dist/stepper.cjs +1 -0
  374. package/dist/stepper.d.ts +1 -0
  375. package/dist/stepper.js +1 -0
  376. package/dist/steps.cjs +1 -0
  377. package/dist/steps.d.ts +1 -0
  378. package/dist/steps.js +1 -0
  379. package/dist/swiper.cjs +1 -0
  380. package/dist/swiper.d.ts +1 -0
  381. package/dist/swiper.js +1 -0
  382. package/dist/switch.cjs +1 -0
  383. package/dist/switch.d.ts +1 -0
  384. package/dist/switch.js +1 -0
  385. package/dist/tab-picker.cjs +1 -0
  386. package/dist/tab-picker.d.ts +1 -0
  387. package/dist/tab-picker.js +1 -0
  388. package/dist/tabs.cjs +1 -0
  389. package/dist/tabs.d.ts +1 -0
  390. package/dist/tabs.js +1 -0
  391. package/dist/tag.cjs +1 -0
  392. package/dist/tag.d.ts +1 -0
  393. package/dist/tag.js +1 -0
  394. package/dist/textarea-item.cjs +1 -0
  395. package/dist/textarea-item.d.ts +1 -0
  396. package/dist/textarea-item.js +1 -0
  397. package/dist/tip.cjs +1 -0
  398. package/dist/tip.d.ts +1 -0
  399. package/dist/tip.js +1 -0
  400. package/dist/toast-ByIFvpMs.js +146 -0
  401. package/dist/toast-C1K2_cOo.cjs +1 -0
  402. package/dist/toast.cjs +1 -0
  403. package/dist/toast.d.ts +2 -0
  404. package/dist/toast.js +1 -0
  405. package/dist/transition.cjs +1 -0
  406. package/dist/transition.d.ts +1 -0
  407. package/dist/transition.js +1 -0
  408. package/dist/water-mark.cjs +1 -0
  409. package/dist/water-mark.d.ts +1 -0
  410. package/dist/water-mark.js +1 -0
  411. package/package.json +296 -3
@@ -0,0 +1 @@
1
+ const e=require("./Roller-DALhjhfg.cjs");let t=require("vue"),n=require("@centui/core/web");var r=(0,t.defineComponent)({name:`cu-progress`,__name:`Progress`,props:{size:{default:70},width:{default:void 0},color:{default:`#2F86F6`},borderColor:{default:`rgba(0, 0, 0, .1)`},fill:{default:`transparent`},linecap:{default:`round`},rotate:{default:0},value:{default:0},transition:{type:Boolean,default:!1},duration:{default:1e3}},setup(r){let i=r,a=(0,t.ref)(0),o=(0,t.ref)(!1),s=0;(0,t.watch)(()=>i.value,(e,t)=>{!o.value||!i.transition?a.value=e:c(t,e)},{immediate:!0}),(0,t.onMounted)(()=>{o.value=!0}),(0,t.onBeforeUnmount)(()=>{s&&=(n.Animate.stop(s),0)});function c(e=0,t=0){s&&=(n.Animate.stop(s),0),s=n.Animate.start(n=>{a.value=e+(t-e)*n},()=>!0,()=>{s=0},i.duration)}return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(e.t,{class:`cu-progress`,process:a.value,size:r.size,width:r.width,color:r.color,"border-color":r.borderColor,fill:r.fill,linecap:r.linecap,rotate:r.rotate},{defs:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`defs`)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`default`)]),_:3},8,[`process`,`size`,`width`,`color`,`border-color`,`fill`,`linecap`,`rotate`]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
@@ -0,0 +1,65 @@
1
+ import { t as e } from "./Roller-BznN57fL.js";
2
+ import { createBlock as t, defineComponent as n, onBeforeUnmount as r, onMounted as i, openBlock as a, ref as o, renderSlot as s, watch as c, withCtx as l } from "vue";
3
+ import { Animate as u } from "@centui/core/web";
4
+ // src/components/progress/Progress.vue
5
+ var d = /* @__PURE__ */ n({
6
+ name: "cu-progress",
7
+ __name: "Progress",
8
+ props: {
9
+ size: { default: 70 },
10
+ width: { default: void 0 },
11
+ color: { default: "#2F86F6" },
12
+ borderColor: { default: "rgba(0, 0, 0, .1)" },
13
+ fill: { default: "transparent" },
14
+ linecap: { default: "round" },
15
+ rotate: { default: 0 },
16
+ value: { default: 0 },
17
+ transition: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ duration: { default: 1e3 }
22
+ },
23
+ setup(n) {
24
+ let d = n, f = o(0), p = o(!1), m = 0;
25
+ c(() => d.value, (e, t) => {
26
+ !p.value || !d.transition ? f.value = e : h(t, e);
27
+ }, { immediate: !0 }), i(() => {
28
+ p.value = !0;
29
+ }), r(() => {
30
+ m &&= (u.stop(m), 0);
31
+ });
32
+ function h(e = 0, t = 0) {
33
+ m &&= (u.stop(m), 0), m = u.start((n) => {
34
+ f.value = e + (t - e) * n;
35
+ }, () => !0, () => {
36
+ m = 0;
37
+ }, d.duration);
38
+ }
39
+ return (r, i) => (a(), t(e, {
40
+ class: "cu-progress",
41
+ process: f.value,
42
+ size: n.size,
43
+ width: n.width,
44
+ color: n.color,
45
+ "border-color": n.borderColor,
46
+ fill: n.fill,
47
+ linecap: n.linecap,
48
+ rotate: n.rotate
49
+ }, {
50
+ defs: l(() => [s(r.$slots, "defs")]),
51
+ default: l(() => [s(r.$slots, "default")]),
52
+ _: 3
53
+ }, 8, [
54
+ "process",
55
+ "size",
56
+ "width",
57
+ "color",
58
+ "border-color",
59
+ "fill",
60
+ "linecap",
61
+ "rotate"
62
+ ]));
63
+ }
64
+ });
65
+ export { d as t };
@@ -0,0 +1 @@
1
+ const e=require("./Icon-83WWqE5z.cjs"),t=require("./shared-k9cbQbvK.cjs");let n=require("vue");var r=[`aria-checked`,`aria-disabled`],i={class:`cu-radio-icon`},a={key:0,class:`cu-radio-label`},o=(0,n.defineComponent)({name:`cu-radio`,__name:`Radio`,props:{name:{type:[String,Number,Boolean]},modelValue:{type:[String,Number,Boolean],default:``},size:{default:`md`},label:{default:``},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{default:`checked`},iconInverse:{default:`check`},iconDisabled:{default:`check-disabled`},iconSvg:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(o,{emit:s}){let c=o,{isChecked:l,onClick:u}=t.n(c,s),d=(0,n.computed)(()=>c.disabled?c.iconDisabled:l.value?c.icon:c.iconInverse);return(t,s)=>((0,n.openBlock)(),(0,n.createElementBlock)(`label`,{class:(0,n.normalizeClass)([`cu-radio`,{"is-disabled":o.disabled,"is-checked":(0,n.unref)(l),"is-inline":o.inline}]),role:`radio`,"aria-checked":(0,n.unref)(l),"aria-disabled":o.disabled,onClick:s[0]||=(...e)=>(0,n.unref)(u)&&(0,n.unref)(u)(...e)},[(0,n.createElementVNode)(`div`,i,[(0,n.createVNode)(e.t,{name:d.value,size:o.size,svg:o.iconSvg},null,8,[`name`,`size`,`svg`])]),t.$slots.default||o.label?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,a,[(0,n.renderSlot)(t.$slots,`default`,{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(o.label),1)])])):(0,n.createCommentVNode)(``,!0)],10,r))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
@@ -0,0 +1,67 @@
1
+ import { t as e } from "./Icon-BgCtu0ZV.js";
2
+ import { n as t } from "./shared-C9XlLe7F.js";
3
+ import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, toDisplayString as f, unref as p } from "vue";
4
+ // src/components/radio/Radio.vue?vue&type=script&setup=true&lang.ts
5
+ var m = ["aria-checked", "aria-disabled"], h = { class: "cu-radio-icon" }, g = {
6
+ key: 0,
7
+ class: "cu-radio-label"
8
+ }, _ = /* @__PURE__ */ c({
9
+ name: "cu-radio",
10
+ __name: "Radio",
11
+ props: {
12
+ name: { type: [
13
+ String,
14
+ Number,
15
+ Boolean
16
+ ] },
17
+ modelValue: {
18
+ type: [
19
+ String,
20
+ Number,
21
+ Boolean
22
+ ],
23
+ default: ""
24
+ },
25
+ size: { default: "md" },
26
+ label: { default: "" },
27
+ inline: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ disabled: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ icon: { default: "checked" },
36
+ iconInverse: { default: "check" },
37
+ iconDisabled: { default: "check-disabled" },
38
+ iconSvg: {
39
+ type: Boolean,
40
+ default: !1
41
+ }
42
+ },
43
+ emits: ["update:modelValue"],
44
+ setup(c, { emit: _ }) {
45
+ let v = c, { isChecked: y, onClick: b } = t(v, _), x = n(() => v.disabled ? v.iconDisabled : y.value ? v.icon : v.iconInverse);
46
+ return (t, n) => (u(), i("label", {
47
+ class: l(["cu-radio", {
48
+ "is-disabled": c.disabled,
49
+ "is-checked": p(y),
50
+ "is-inline": c.inline
51
+ }]),
52
+ role: "radio",
53
+ "aria-checked": p(y),
54
+ "aria-disabled": c.disabled,
55
+ onClick: n[0] ||= (...e) => p(b) && p(b)(...e)
56
+ }, [a("div", h, [s(e, {
57
+ name: x.value,
58
+ size: c.size,
59
+ svg: c.iconSvg
60
+ }, null, 8, [
61
+ "name",
62
+ "size",
63
+ "svg"
64
+ ])]), t.$slots.default || c.label ? (u(), i("div", g, [d(t.$slots, "default", {}, () => [o(f(c.label), 1)])])) : r("", !0)], 10, m));
65
+ }
66
+ });
67
+ export { _ as t };
@@ -0,0 +1,84 @@
1
+ import { t as e } from "./CheckBoxBase-BIPGJ-TD.js";
2
+ import { n as t } from "./shared-C9XlLe7F.js";
3
+ import { createBlock as n, createElementBlock as r, createTextVNode as i, defineComponent as a, openBlock as o, provide as s, renderSlot as c, toDisplayString as l, unref as u, withCtx as d } from "vue";
4
+ // src/components/radio/RadioBox.vue
5
+ var f = /* @__PURE__ */ a({
6
+ name: "cu-radio-box",
7
+ __name: "RadioBox",
8
+ props: {
9
+ name: {
10
+ type: [
11
+ String,
12
+ Number,
13
+ Boolean
14
+ ],
15
+ default: !0
16
+ },
17
+ modelValue: {
18
+ type: [
19
+ String,
20
+ Number,
21
+ Boolean
22
+ ],
23
+ default: !1
24
+ },
25
+ label: { default: "" },
26
+ disabled: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ iconPosition: { default: "rt" }
31
+ },
32
+ emits: ["update:modelValue"],
33
+ setup(r, { emit: a }) {
34
+ let { isChecked: s, onClick: f } = t(r, a);
35
+ return (t, a) => (o(), n(e, {
36
+ class: "cu-radio-box",
37
+ role: "radio",
38
+ label: r.label,
39
+ "is-checked": u(s),
40
+ disabled: r.disabled,
41
+ "icon-position": r.iconPosition,
42
+ onClick: u(f)
43
+ }, {
44
+ default: d(() => [c(t.$slots, "default", {}, () => [i(l(r.label), 1)])]),
45
+ _: 3
46
+ }, 8, [
47
+ "label",
48
+ "is-checked",
49
+ "disabled",
50
+ "icon-position",
51
+ "onClick"
52
+ ]));
53
+ }
54
+ }), p = {
55
+ class: "cu-radio-group",
56
+ role: "radiogroup"
57
+ }, m = /* @__PURE__ */ a({
58
+ name: "cu-radio-group",
59
+ __name: "RadioGroup",
60
+ props: {
61
+ modelValue: {
62
+ type: [
63
+ String,
64
+ Number,
65
+ Boolean
66
+ ],
67
+ default: ""
68
+ },
69
+ max: { default: 0 }
70
+ },
71
+ emits: ["update:modelValue"],
72
+ setup(e, { emit: t }) {
73
+ let n = e, i = t;
74
+ return s("rootGroup", {
75
+ get value() {
76
+ return n.modelValue;
77
+ },
78
+ check(e) {
79
+ i("update:modelValue", e);
80
+ }
81
+ }), (e, t) => (o(), r("div", p, [c(e.$slots, "default")]));
82
+ }
83
+ });
84
+ export { f as n, m as t };
@@ -0,0 +1 @@
1
+ const e=require("./CheckBoxBase-CobK6-tL.cjs"),t=require("./shared-k9cbQbvK.cjs");let n=require("vue");var r=(0,n.defineComponent)({name:`cu-radio-box`,__name:`RadioBox`,props:{name:{type:[String,Number,Boolean],default:!0},modelValue:{type:[String,Number,Boolean],default:!1},label:{default:``},disabled:{type:Boolean,default:!1},iconPosition:{default:`rt`}},emits:[`update:modelValue`],setup(r,{emit:i}){let{isChecked:a,onClick:o}=t.n(r,i);return(t,i)=>((0,n.openBlock)(),(0,n.createBlock)(e.t,{class:`cu-radio-box`,role:`radio`,label:r.label,"is-checked":(0,n.unref)(a),disabled:r.disabled,"icon-position":r.iconPosition,onClick:(0,n.unref)(o)},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`default`,{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(r.label),1)])]),_:3},8,[`label`,`is-checked`,`disabled`,`icon-position`,`onClick`]))}}),i={class:`cu-radio-group`,role:`radiogroup`},a=(0,n.defineComponent)({name:`cu-radio-group`,__name:`RadioGroup`,props:{modelValue:{type:[String,Number,Boolean],default:``},max:{default:0}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=e,a=t;return(0,n.provide)(`rootGroup`,{get value(){return r.modelValue},check(e){a(`update:modelValue`,e)}}),(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,i,[(0,n.renderSlot)(e.$slots,`default`)]))}});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
@@ -0,0 +1 @@
1
+ const e=require("./Radio-B_MxJ65X.cjs"),t=require("./CellItem-J0LkwZNL.cjs"),n=require("./InputItem-DO5Yo_IH.cjs");let r=require("vue");var i=(0,r.defineComponent)({name:`cu-radio-list`,__name:`RadioList`,props:{options:{default:()=>[]},modelValue:{type:[String,Number,Boolean],default:``},hasInput:{type:Boolean,default:!1},inputLabel:{default:``},inputPlaceholder:{default:``},alignCenter:{type:Boolean,default:!1},isSlotScope:{type:Boolean,default:void 0},icon:{default:`checked`},iconInverse:{default:`check`},iconDisabled:{default:`check-disabled`},iconSvg:{type:Boolean,default:!1},iconSize:{default:`md`},iconPosition:{default:`left`}},emits:[`update:modelValue`,`change`],setup(i,{expose:a,emit:o}){let s=i,c=o,l=(0,r.useSlots)(),u=(0,r.ref)(s.modelValue),d=(0,r.ref)(!1),f=(0,r.ref)(``),p=(0,r.computed)(()=>d.value?f.value:u.value),m=(0,r.computed)(()=>s.isSlotScope===void 0?!!l.default:s.isSlotScope),h=(0,r.computed)(()=>s.isSlotScope&&!s.icon),g=(0,r.computed)(()=>s.iconPosition===`right`?`right`:`left`);(0,r.watch)(()=>s.modelValue,e=>{e!==u.value&&(u.value=e)}),(0,r.watch)(p,e=>{c(`update:modelValue`,e)});function _(e,t){u.value=e.value,d.value=!1,f.value&&=``,c(`change`,e,t)}function v(e){u.value=e,d.value=!1}function y(e){let t=s.options[e];t&&v(t.value)}return a({select:v,selectByIndex:y}),(a,o)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:(0,r.normalizeClass)([`cu-radio-list`,{"is-align-center":i.alignCenter}])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.options,(n,o)=>((0,r.openBlock)(),(0,r.createBlock)(t.t,{key:o,class:(0,r.normalizeClass)([`cu-radio-item`,{"is-selected":u.value===n.value&&!d.value}]),title:m.value?``:n.text||n.label,brief:m.value?``:n.brief,disabled:n.disabled,"no-border":o===i.options.length-1,onClick:e=>_(n,o)},(0,r.createSlots)({default:(0,r.withCtx)(()=>[m.value?(0,r.renderSlot)(a.$slots,`default`,{option:n,index:o,selected:p.value===n.value},void 0,void 0,0):(0,r.createCommentVNode)(``,!0)]),_:2},[!i.alignCenter&&!d.value&&!h.value?{name:g.value,fn:(0,r.withCtx)(()=>[(0,r.createVNode)(e.t,{name:n.value,"model-value":u.value,disabled:n.disabled,size:i.iconSize,icon:i.icon,"icon-inverse":i.iconInverse,"icon-disabled":i.iconDisabled,"icon-svg":i.iconSvg},null,8,[`name`,`model-value`,`disabled`,`size`,`icon`,`icon-inverse`,`icon-disabled`,`icon-svg`])]),key:`0`}:void 0]),1032,[`class`,`title`,`brief`,`disabled`,`no-border`,`onClick`]))),128)),i.hasInput?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,ref:`inputItem`,class:(0,r.normalizeClass)([`cu-radio-item`,{"is-selected":d.value}]),title:i.inputLabel,placeholder:i.inputPlaceholder,"model-value":f.value,"onUpdate:modelValue":o[0]||=e=>f.value=e,onFocus:o[1]||=e=>d.value=!0},null,8,[`class`,`title`,`placeholder`,`model-value`])):(0,r.createCommentVNode)(``,!0)],2))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -0,0 +1,125 @@
1
+ import { t as e } from "./Radio-DY-ZX0BP.js";
2
+ import { t } from "./CellItem-BHEh4Cp-.js";
3
+ import { t as n } from "./InputItem-yHsLFvKt.js";
4
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createSlots as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, ref as p, renderList as m, renderSlot as h, useSlots as g, watch as _, withCtx as v } from "vue";
5
+ // src/components/radio-list/RadioList.vue
6
+ var y = /* @__PURE__ */ u({
7
+ name: "cu-radio-list",
8
+ __name: "RadioList",
9
+ props: {
10
+ options: { default: () => [] },
11
+ modelValue: {
12
+ type: [
13
+ String,
14
+ Number,
15
+ Boolean
16
+ ],
17
+ default: ""
18
+ },
19
+ hasInput: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ inputLabel: { default: "" },
24
+ inputPlaceholder: { default: "" },
25
+ alignCenter: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ isSlotScope: {
30
+ type: Boolean,
31
+ default: void 0
32
+ },
33
+ icon: { default: "checked" },
34
+ iconInverse: { default: "check" },
35
+ iconDisabled: { default: "check-disabled" },
36
+ iconSvg: {
37
+ type: Boolean,
38
+ default: !1
39
+ },
40
+ iconSize: { default: "md" },
41
+ iconPosition: { default: "left" }
42
+ },
43
+ emits: ["update:modelValue", "change"],
44
+ setup(u, { expose: y, emit: b }) {
45
+ let x = u, S = b, C = g(), w = p(x.modelValue), T = p(!1), E = p(""), D = i(() => T.value ? E.value : w.value), O = i(() => x.isSlotScope === void 0 ? !!C.default : x.isSlotScope), k = i(() => x.isSlotScope && !x.icon), A = i(() => x.iconPosition === "right" ? "right" : "left");
46
+ _(() => x.modelValue, (e) => {
47
+ e !== w.value && (w.value = e);
48
+ }), _(D, (e) => {
49
+ S("update:modelValue", e);
50
+ });
51
+ function j(e, t) {
52
+ w.value = e.value, T.value = !1, E.value &&= "", S("change", e, t);
53
+ }
54
+ function M(e) {
55
+ w.value = e, T.value = !1;
56
+ }
57
+ function N(e) {
58
+ let t = x.options[e];
59
+ t && M(t.value);
60
+ }
61
+ return y({
62
+ select: M,
63
+ selectByIndex: N
64
+ }), (i, p) => (f(), s("div", { class: d(["cu-radio-list", { "is-align-center": u.alignCenter }]) }, [(f(!0), s(r, null, m(u.options, (n, r) => (f(), a(t, {
65
+ key: r,
66
+ class: d(["cu-radio-item", { "is-selected": w.value === n.value && !T.value }]),
67
+ title: O.value ? "" : n.text || n.label,
68
+ brief: O.value ? "" : n.brief,
69
+ disabled: n.disabled,
70
+ "no-border": r === u.options.length - 1,
71
+ onClick: (e) => j(n, r)
72
+ }, c({
73
+ default: v(() => [O.value ? h(i.$slots, "default", {
74
+ option: n,
75
+ index: r,
76
+ selected: D.value === n.value
77
+ }, void 0, void 0, 0) : o("", !0)]),
78
+ _: 2
79
+ }, [!u.alignCenter && !T.value && !k.value ? {
80
+ name: A.value,
81
+ fn: v(() => [l(e, {
82
+ name: n.value,
83
+ "model-value": w.value,
84
+ disabled: n.disabled,
85
+ size: u.iconSize,
86
+ icon: u.icon,
87
+ "icon-inverse": u.iconInverse,
88
+ "icon-disabled": u.iconDisabled,
89
+ "icon-svg": u.iconSvg
90
+ }, null, 8, [
91
+ "name",
92
+ "model-value",
93
+ "disabled",
94
+ "size",
95
+ "icon",
96
+ "icon-inverse",
97
+ "icon-disabled",
98
+ "icon-svg"
99
+ ])]),
100
+ key: "0"
101
+ } : void 0]), 1032, [
102
+ "class",
103
+ "title",
104
+ "brief",
105
+ "disabled",
106
+ "no-border",
107
+ "onClick"
108
+ ]))), 128)), u.hasInput ? (f(), a(n, {
109
+ key: 0,
110
+ ref: "inputItem",
111
+ class: d(["cu-radio-item", { "is-selected": T.value }]),
112
+ title: u.inputLabel,
113
+ placeholder: u.inputPlaceholder,
114
+ "model-value": E.value,
115
+ "onUpdate:modelValue": p[0] ||= (e) => E.value = e,
116
+ onFocus: p[1] ||= (e) => T.value = !0
117
+ }, null, 8, [
118
+ "class",
119
+ "title",
120
+ "placeholder",
121
+ "model-value"
122
+ ])) : o("", !0)], 2));
123
+ }
124
+ });
125
+ export { y as t };
@@ -0,0 +1,64 @@
1
+ import { t as e } from "./Button-D7e-cuA1.js";
2
+ import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderList as d, toDisplayString as f, withCtx as p } from "vue";
3
+ import { t as m } from "@centui/core";
4
+ // src/components/result-page/ResultPage.vue?vue&type=script&setup=true&lang.ts
5
+ var h = { class: "cu-result" }, g = { class: "cu-result-image" }, _ = ["src"], v = {
6
+ key: 0,
7
+ class: "cu-result-text"
8
+ }, y = {
9
+ key: 1,
10
+ class: "cu-result-subtext"
11
+ }, b = {
12
+ key: 2,
13
+ class: "cu-result-buttons"
14
+ }, x = /* @__PURE__ */ c({
15
+ name: "cu-result-page",
16
+ __name: "ResultPage",
17
+ props: {
18
+ type: { default: "empty" },
19
+ imgUrl: { default: "" },
20
+ text: { default: "" },
21
+ subtext: { default: "" },
22
+ buttons: { default: () => [] }
23
+ },
24
+ setup(c) {
25
+ let x = c, S = n(() => x.imgUrl || `//manhattan.didistatic.com/static/manhattan/mand-mobile/result-page/2.1/${x.type}.png`), C = n(() => x.text || {
26
+ network: m("md.result_page.networkError"),
27
+ empty: m("md.result_page.noInformation")
28
+ }[x.type] || ""), w = n(() => x.subtext || { lost: m("md.result_page.lostWay") }[x.type] || "");
29
+ return (n, m) => (u(), a("div", h, [
30
+ o("div", g, [o("img", {
31
+ src: S.value,
32
+ class: l(!c.imgUrl && c.type)
33
+ }, null, 10, _)]),
34
+ C.value ? (u(), a("div", v, f(C.value), 1)) : i("", !0),
35
+ w.value ? (u(), a("div", y, f(w.value), 1)) : i("", !0),
36
+ c.buttons.length ? (u(), a("div", b, [(u(!0), a(t, null, d(c.buttons, (t, n) => (u(), r(e, {
37
+ key: n,
38
+ type: t.type,
39
+ plain: t.plain === void 0 || t.plain,
40
+ round: t.round,
41
+ inactive: t.inactive,
42
+ loading: t.loading,
43
+ icon: t.icon,
44
+ "icon-svg": t.iconSvg,
45
+ size: "small",
46
+ inline: "",
47
+ onClick: (e) => t.handler?.()
48
+ }, {
49
+ default: p(() => [s(f(t.text), 1)]),
50
+ _: 2
51
+ }, 1032, [
52
+ "type",
53
+ "plain",
54
+ "round",
55
+ "inactive",
56
+ "loading",
57
+ "icon",
58
+ "icon-svg",
59
+ "onClick"
60
+ ]))), 128))])) : i("", !0)
61
+ ]));
62
+ }
63
+ });
64
+ export { x as t };
@@ -0,0 +1 @@
1
+ const e=require("./Button-Bu8liJQE.cjs");let t=require("vue"),n=require("@centui/core");var r={class:`cu-result`},i={class:`cu-result-image`},a=[`src`],o={key:0,class:`cu-result-text`},s={key:1,class:`cu-result-subtext`},c={key:2,class:`cu-result-buttons`},l=(0,t.defineComponent)({name:`cu-result-page`,__name:`ResultPage`,props:{type:{default:`empty`},imgUrl:{default:``},text:{default:``},subtext:{default:``},buttons:{default:()=>[]}},setup(l){let u=l,d=(0,t.computed)(()=>u.imgUrl||`//manhattan.didistatic.com/static/manhattan/mand-mobile/result-page/2.1/${u.type}.png`),f=(0,t.computed)(()=>u.text||{network:(0,n.t)(`md.result_page.networkError`),empty:(0,n.t)(`md.result_page.noInformation`)}[u.type]||``),p=(0,t.computed)(()=>u.subtext||{lost:(0,n.t)(`md.result_page.lostWay`)}[u.type]||``);return(n,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,r,[(0,t.createElementVNode)(`div`,i,[(0,t.createElementVNode)(`img`,{src:d.value,class:(0,t.normalizeClass)(!l.imgUrl&&l.type)},null,10,a)]),f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,o,(0,t.toDisplayString)(f.value),1)):(0,t.createCommentVNode)(``,!0),p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,s,(0,t.toDisplayString)(p.value),1)):(0,t.createCommentVNode)(``,!0),l.buttons.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,c,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.buttons,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:r,type:n.type,plain:n.plain===void 0||n.plain,round:n.round,inactive:n.inactive,loading:n.loading,icon:n.icon,"icon-svg":n.iconSvg,size:`small`,inline:``,onClick:e=>n.handler?.()},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.text),1)]),_:2},1032,[`type`,`plain`,`round`,`inactive`,`loading`,`icon`,`icon-svg`,`onClick`]))),128))])):(0,t.createCommentVNode)(``,!0)]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
@@ -0,0 +1,91 @@
1
+ import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeStyle as a, openBlock as o, renderSlot as s } from "vue";
2
+ // src/components/activity-indicator/Roller.vue?vue&type=script&setup=true&lang.ts
3
+ var c = { class: "cu-activity-indicator-rolling" }, l = { class: "rolling-container" }, u = ["viewBox"], d = [
4
+ "stroke",
5
+ "stroke-width",
6
+ "cx",
7
+ "cy",
8
+ "r"
9
+ ], f = {
10
+ key: 0,
11
+ class: "circle"
12
+ }, p = [
13
+ "cx",
14
+ "cy",
15
+ "fill",
16
+ "stroke",
17
+ "stroke-width",
18
+ "stroke-dasharray",
19
+ "stroke-linecap",
20
+ "r"
21
+ ], m = ["values"], h = ["dur", "values"], g = { class: "content" }, _ = 2, v = /* @__PURE__ */ i({
22
+ name: "cu-activity-indicator-rolling",
23
+ __name: "Roller",
24
+ props: {
25
+ size: { default: 70 },
26
+ width: { default: void 0 },
27
+ color: { default: "#2F86F6" },
28
+ borderColor: { default: "rgba(0, 0, 0, .1)" },
29
+ fill: { default: "transparent" },
30
+ linecap: { default: "round" },
31
+ rotate: { default: 0 },
32
+ process: { default: void 0 }
33
+ },
34
+ setup(i) {
35
+ let v = i, y = e(() => v.width || v.size / 12), b = e(() => v.size / 2), x = e(() => v.size + 2 * y.value), S = e(() => v.size * 3.1415), C = e(() => v.process === void 0), w = e(() => `${v.process * S.value} ${(1 - v.process) * S.value}`);
36
+ return (e, v) => (o(), n("div", c, [r("div", l, [(o(), n("svg", {
37
+ viewBox: `0 0 ${x.value} ${x.value}`,
38
+ style: a({
39
+ width: `${i.size}px`,
40
+ height: `${i.size}px`,
41
+ transform: `rotateZ(${i.rotate}deg)`
42
+ }),
43
+ preserveAspectRatio: "xMidYMid",
44
+ class: "cu-activity-indicator-svg rolling"
45
+ }, [
46
+ r("circle", {
47
+ fill: "none",
48
+ stroke: i.borderColor,
49
+ "stroke-width": y.value,
50
+ cx: x.value / 2,
51
+ cy: x.value / 2,
52
+ r: b.value
53
+ }, null, 8, d),
54
+ e.$slots.circle ? s(e.$slots, "circle", {}, void 0, void 0, 1) : (o(), n("g", f, [C.value || (i.process ?? 0) > 0 ? (o(), n("circle", {
55
+ key: 0,
56
+ class: "stroke",
57
+ cx: x.value / 2,
58
+ cy: x.value / 2,
59
+ fill: i.fill,
60
+ stroke: i.color,
61
+ "stroke-width": y.value,
62
+ "stroke-dasharray": C.value ? `${110 * S.value / 125}` : w.value,
63
+ "stroke-linecap": i.linecap,
64
+ r: b.value
65
+ }, [C.value ? (o(), n("animate", {
66
+ key: 0,
67
+ attributeName: "stroke-dashoffset",
68
+ values: `${360 * S.value / 125};${140 * S.value / 125}`,
69
+ dur: "2.2s",
70
+ keyTimes: "0;1",
71
+ calcMode: "spline",
72
+ fill: "freeze",
73
+ keySplines: "0.41,0.314,0.8,0.54",
74
+ repeatCount: "indefinite",
75
+ begin: "0"
76
+ }, null, 8, m)) : t("", !0), C.value ? (o(), n("animateTransform", {
77
+ key: 1,
78
+ dur: `${_}s`,
79
+ values: `0 ${x.value / 2} ${x.value / 2};360 ${x.value / 2} ${x.value / 2}`,
80
+ attributeName: "transform",
81
+ type: "rotate",
82
+ calcMode: "linear",
83
+ keyTimes: "0;1",
84
+ begin: "0",
85
+ repeatCount: "indefinite"
86
+ }, null, 8, h)) : t("", !0)], 8, p)) : t("", !0)])),
87
+ s(e.$slots, "defs")
88
+ ], 12, u)), r("div", g, [s(e.$slots, "default")])])]));
89
+ }
90
+ });
91
+ export { v as t };
@@ -0,0 +1 @@
1
+ let e=require("vue");var t={class:`cu-activity-indicator-rolling`},n={class:`rolling-container`},r=[`viewBox`],i=[`stroke`,`stroke-width`,`cx`,`cy`,`r`],a={key:0,class:`circle`},o=[`cx`,`cy`,`fill`,`stroke`,`stroke-width`,`stroke-dasharray`,`stroke-linecap`,`r`],s=[`values`],c=[`dur`,`values`],l={class:`content`},u=2,d=(0,e.defineComponent)({name:`cu-activity-indicator-rolling`,__name:`Roller`,props:{size:{default:70},width:{default:void 0},color:{default:`#2F86F6`},borderColor:{default:`rgba(0, 0, 0, .1)`},fill:{default:`transparent`},linecap:{default:`round`},rotate:{default:0},process:{default:void 0}},setup(d){let f=d,p=(0,e.computed)(()=>f.width||f.size/12),m=(0,e.computed)(()=>f.size/2),h=(0,e.computed)(()=>f.size+2*p.value),g=(0,e.computed)(()=>f.size*3.1415),_=(0,e.computed)(()=>f.process===void 0),v=(0,e.computed)(()=>`${f.process*g.value} ${(1-f.process)*g.value}`);return(f,y)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,t,[(0,e.createElementVNode)(`div`,n,[((0,e.openBlock)(),(0,e.createElementBlock)(`svg`,{viewBox:`0 0 ${h.value} ${h.value}`,style:(0,e.normalizeStyle)({width:`${d.size}px`,height:`${d.size}px`,transform:`rotateZ(${d.rotate}deg)`}),preserveAspectRatio:`xMidYMid`,class:`cu-activity-indicator-svg rolling`},[(0,e.createElementVNode)(`circle`,{fill:`none`,stroke:d.borderColor,"stroke-width":p.value,cx:h.value/2,cy:h.value/2,r:m.value},null,8,i),f.$slots.circle?(0,e.renderSlot)(f.$slots,`circle`,{},void 0,void 0,1):((0,e.openBlock)(),(0,e.createElementBlock)(`g`,a,[_.value||(d.process??0)>0?((0,e.openBlock)(),(0,e.createElementBlock)(`circle`,{key:0,class:`stroke`,cx:h.value/2,cy:h.value/2,fill:d.fill,stroke:d.color,"stroke-width":p.value,"stroke-dasharray":_.value?`${110*g.value/125}`:v.value,"stroke-linecap":d.linecap,r:m.value},[_.value?((0,e.openBlock)(),(0,e.createElementBlock)(`animate`,{key:0,attributeName:`stroke-dashoffset`,values:`${360*g.value/125};${140*g.value/125}`,dur:`2.2s`,keyTimes:`0;1`,calcMode:`spline`,fill:`freeze`,keySplines:`0.41,0.314,0.8,0.54`,repeatCount:`indefinite`,begin:`0`},null,8,s)):(0,e.createCommentVNode)(``,!0),_.value?((0,e.openBlock)(),(0,e.createElementBlock)(`animateTransform`,{key:1,dur:`${u}s`,values:`0 ${h.value/2} ${h.value/2};360 ${h.value/2} ${h.value/2}`,attributeName:`transform`,type:`rotate`,calcMode:`linear`,keyTimes:`0;1`,begin:`0`,repeatCount:`indefinite`},null,8,c)):(0,e.createCommentVNode)(``,!0)],8,o)):(0,e.createCommentVNode)(``,!0)])),(0,e.renderSlot)(f.$slots,`defs`)],12,r)),(0,e.createElementVNode)(`div`,l,[(0,e.renderSlot)(f.$slots,`default`)])])]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
@@ -0,0 +1 @@
1
+ const e=require("./Roller-DALhjhfg.cjs");let t=require("vue");var n={class:`cu-activity-indicator-rolling-success`},r=(0,t.defineComponent)({name:`cu-activity-indicator-rolling-success`,__name:`RollerSuccess`,props:{isSuccess:{type:Boolean,default:!0},size:{default:70},color:{default:`#28AA8F`},strokeWidth:{default:8}},setup(r){return(i,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,n,[(0,t.createVNode)(e.t,{size:r.size,width:r.strokeWidth,fill:`#FFF6F1`,"border-color":`transparent`},(0,t.createSlots)({default:(0,t.withCtx)(()=>[r.isSuccess?((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{key:0,viewBox:`0 0 100 100`,preserveAspectRatio:`xMidYMid`,class:`right`,style:(0,t.normalizeStyle)({transform:`translate(-50%, -50%) scale(${r.size/70})`})},[(0,t.createElementVNode)(`g`,null,[(0,t.createElementVNode)(`line`,{x1:`32`,y1:`47`,x2:`45`,y2:`62`,style:(0,t.normalizeStyle)({strokeWidth:r.strokeWidth,stroke:r.color}),"stroke-dasharray":`20`},null,4),(0,t.createElementVNode)(`line`,{x1:`42`,y1:`62`,x2:`68.4`,y2:`40`,style:(0,t.normalizeStyle)({strokeWidth:r.strokeWidth,stroke:r.color}),"stroke-dasharray":`35`},null,4)])],4)):(0,t.createCommentVNode)(``,!0)]),_:2},[r.isSuccess?{name:`circle`,fn:(0,t.withCtx)(()=>[a[0]||=(0,t.createElementVNode)(`g`,{name:`circle`},[(0,t.createElementVNode)(`circle`,{class:`success`,cx:`50`,cy:`50`,fill:`#FFF6F1`,stroke:`none`,r:`40`})],-1)]),key:`0`}:void 0]),1032,[`size`,`width`])]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
@@ -0,0 +1,65 @@
1
+ import { t as e } from "./Roller-BznN57fL.js";
2
+ import { createCommentVNode as t, createElementBlock as n, createElementVNode as r, createSlots as i, createVNode as a, defineComponent as o, normalizeStyle as s, openBlock as c, withCtx as l } from "vue";
3
+ // src/components/activity-indicator/RollerSuccess.vue?vue&type=script&setup=true&lang.ts
4
+ var u = { class: "cu-activity-indicator-rolling-success" }, d = /* @__PURE__ */ o({
5
+ name: "cu-activity-indicator-rolling-success",
6
+ __name: "RollerSuccess",
7
+ props: {
8
+ isSuccess: {
9
+ type: Boolean,
10
+ default: !0
11
+ },
12
+ size: { default: 70 },
13
+ color: { default: "#28AA8F" },
14
+ strokeWidth: { default: 8 }
15
+ },
16
+ setup(o) {
17
+ return (d, f) => (c(), n("div", u, [a(e, {
18
+ size: o.size,
19
+ width: o.strokeWidth,
20
+ fill: "#FFF6F1",
21
+ "border-color": "transparent"
22
+ }, i({
23
+ default: l(() => [o.isSuccess ? (c(), n("svg", {
24
+ key: 0,
25
+ viewBox: "0 0 100 100",
26
+ preserveAspectRatio: "xMidYMid",
27
+ class: "right",
28
+ style: s({ transform: `translate(-50%, -50%) scale(${o.size / 70})` })
29
+ }, [r("g", null, [r("line", {
30
+ x1: "32",
31
+ y1: "47",
32
+ x2: "45",
33
+ y2: "62",
34
+ style: s({
35
+ strokeWidth: o.strokeWidth,
36
+ stroke: o.color
37
+ }),
38
+ "stroke-dasharray": "20"
39
+ }, null, 4), r("line", {
40
+ x1: "42",
41
+ y1: "62",
42
+ x2: "68.4",
43
+ y2: "40",
44
+ style: s({
45
+ strokeWidth: o.strokeWidth,
46
+ stroke: o.color
47
+ }),
48
+ "stroke-dasharray": "35"
49
+ }, null, 4)])], 4)) : t("", !0)]),
50
+ _: 2
51
+ }, [o.isSuccess ? {
52
+ name: "circle",
53
+ fn: l(() => [f[0] ||= r("g", { name: "circle" }, [r("circle", {
54
+ class: "success",
55
+ cx: "50",
56
+ cy: "50",
57
+ fill: "#FFF6F1",
58
+ stroke: "none",
59
+ r: "40"
60
+ })], -1)]),
61
+ key: "0"
62
+ } : void 0]), 1032, ["size", "width"])]));
63
+ }
64
+ });
65
+ export { d as t };