centui 0.0.0-stage → 3.0.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 (301) hide show
  1. package/LICENSE +433 -0
  2. package/README.md +54 -2
  3. package/dist/Agree-DT46e5q5.cjs +1 -0
  4. package/dist/Agree-yTGTi4e6.js +44 -0
  5. package/dist/Amount-De-oObat.cjs +1 -0
  6. package/dist/Amount-wOtRYOdx.js +62 -0
  7. package/dist/Button-BIi6CrwM.js +61 -0
  8. package/dist/Button-Blpwwbnw.cjs +1 -0
  9. package/dist/CellItem-T78DHako.cjs +1 -0
  10. package/dist/CellItem-YZD-BxKt.js +72 -0
  11. package/dist/CheckBoxBase-BDsytL_r.cjs +1 -0
  12. package/dist/CheckBoxBase-BjyVzGqj.js +40 -0
  13. package/dist/CheckList-Bfy3B-eN.js +239 -0
  14. package/dist/CheckList-DEmLmccw.cjs +1 -0
  15. package/dist/Codebox-Cgj7wyzd.cjs +1 -0
  16. package/dist/Codebox-D0UtCj11.js +189 -0
  17. package/dist/DatePicker-B1AVbKhK.cjs +1 -0
  18. package/dist/DatePicker-TAHuve5t.js +177 -0
  19. package/dist/Field-CseJzTZz.js +51 -0
  20. package/dist/Field-DDmHa4zB.cjs +1 -0
  21. package/dist/FieldItem-Cc7bw5vU.js +88 -0
  22. package/dist/FieldItem-Dkpx5Kxk.cjs +1 -0
  23. package/dist/Icon-dWGSK6Ou.js +119 -0
  24. package/dist/Icon-jaEPn7d7.cjs +31 -0
  25. package/dist/InputItem-EJ4Y3tpU.cjs +1 -0
  26. package/dist/InputItem-bhFtp97z.js +322 -0
  27. package/dist/NoticeBar-DSf_EjTL.cjs +1 -0
  28. package/dist/NoticeBar-PEYcjXwD.js +84 -0
  29. package/dist/NumberKeyboard-BX0c0l2r.cjs +1 -0
  30. package/dist/NumberKeyboard-C7TRF5iC.js +320 -0
  31. package/dist/Picker-D-TPtSxf.cjs +1 -0
  32. package/dist/Picker-Dam0LEcc.js +476 -0
  33. package/dist/Popup-Cm4BuaOo.cjs +1 -0
  34. package/dist/Popup-DPYBBL95.js +116 -0
  35. package/dist/PopupTitleBar-B4vwxKC7.cjs +1 -0
  36. package/dist/PopupTitleBar-nVurLaOe.js +85 -0
  37. package/dist/Progress-CwIC6scr.js +67 -0
  38. package/dist/Progress-DukssNvl.cjs +1 -0
  39. package/dist/Radio-ZHivLdvi.cjs +1 -0
  40. package/dist/Radio-fsc7_N5K.js +65 -0
  41. package/dist/RadioGroup-BR_jSDR4.cjs +1 -0
  42. package/dist/RadioGroup-CMPmk8X_.js +82 -0
  43. package/dist/RadioList-CkerkQEY.js +127 -0
  44. package/dist/RadioList-upQgua8Z.cjs +1 -0
  45. package/dist/Roller-DALhjhfg.cjs +1 -0
  46. package/dist/Roller-DFJ7jMV0.js +92 -0
  47. package/dist/RollerSuccess--JecJ7bz.cjs +1 -0
  48. package/dist/RollerSuccess-CVEmS9gU.js +224 -0
  49. package/dist/ScrollViewMore-BWph-i1-.cjs +1 -0
  50. package/dist/ScrollViewMore-BgYJx-TP.js +278 -0
  51. package/dist/Skeleton--SCiydNl.cjs +1 -0
  52. package/dist/Skeleton-BG_j23KI.js +55 -0
  53. package/dist/Slider-D3wrE8hn.cjs +1 -0
  54. package/dist/Slider-DteN8p-L.js +95 -0
  55. package/dist/Stepper-1EOk4pCY.js +127 -0
  56. package/dist/Stepper-BJr4I6_8.cjs +1 -0
  57. package/dist/SwiperItem-B6TgjCsM.cjs +1 -0
  58. package/dist/SwiperItem-CKd-XKT7.js +337 -0
  59. package/dist/Switch-B6DvVj2p.js +30 -0
  60. package/dist/Switch-BVPjF8CM.cjs +1 -0
  61. package/dist/Tag-CPv77lC8.cjs +1 -0
  62. package/dist/Tag-bs5j40pF.js +66 -0
  63. package/dist/Tip-BFZSiRc1.js +166 -0
  64. package/dist/Tip-C3brAF9N.cjs +1 -0
  65. package/dist/action-sheet-DKpi2GLQ.js +118 -0
  66. package/dist/action-sheet-LJilF3EQ.cjs +1 -0
  67. package/dist/action-sheet.cjs +1 -0
  68. package/dist/action-sheet.d.ts +2 -0
  69. package/dist/action-sheet.js +2 -0
  70. package/dist/activity-indicator.cjs +1 -0
  71. package/dist/activity-indicator.d.ts +1 -0
  72. package/dist/activity-indicator.js +3 -0
  73. package/dist/agree.cjs +1 -0
  74. package/dist/agree.d.ts +1 -0
  75. package/dist/agree.js +2 -0
  76. package/dist/amount.cjs +1 -0
  77. package/dist/amount.d.ts +1 -0
  78. package/dist/amount.js +2 -0
  79. package/dist/button.cjs +1 -0
  80. package/dist/button.d.ts +1 -0
  81. package/dist/button.js +2 -0
  82. package/dist/cell-item.cjs +1 -0
  83. package/dist/cell-item.d.ts +1 -0
  84. package/dist/cell-item.js +2 -0
  85. package/dist/check-base.cjs +1 -0
  86. package/dist/check-base.d.ts +1 -0
  87. package/dist/check-base.js +2 -0
  88. package/dist/check.cjs +1 -0
  89. package/dist/check.d.ts +1 -0
  90. package/dist/check.js +2 -0
  91. package/dist/codebox.cjs +1 -0
  92. package/dist/codebox.d.ts +1 -0
  93. package/dist/codebox.js +2 -0
  94. package/dist/components/action-bar/ActionBar.vue.d.ts +34 -0
  95. package/dist/components/action-bar/index.d.ts +2 -0
  96. package/dist/components/action-sheet/ActionSheet.vue.d.ts +44 -0
  97. package/dist/components/action-sheet/index.d.ts +25 -0
  98. package/dist/components/activity-indicator/ActivityIndicator.vue.d.ts +31 -0
  99. package/dist/components/activity-indicator/Carousel.vue.d.ts +10 -0
  100. package/dist/components/activity-indicator/CarouselCircle.vue.d.ts +12 -0
  101. package/dist/components/activity-indicator/Roller.vue.d.ts +37 -0
  102. package/dist/components/activity-indicator/RollerSuccess.vue.d.ts +14 -0
  103. package/dist/components/activity-indicator/Spinning.vue.d.ts +10 -0
  104. package/dist/components/activity-indicator/index.d.ts +5 -0
  105. package/dist/components/agree/Agree.vue.d.ts +35 -0
  106. package/dist/components/agree/index.d.ts +1 -0
  107. package/dist/components/amount/Amount.vue.d.ts +25 -0
  108. package/dist/components/amount/index.d.ts +1 -0
  109. package/dist/components/bill/Bill.vue.d.ts +33 -0
  110. package/dist/components/bill/index.d.ts +1 -0
  111. package/dist/components/button/Button.vue.d.ts +38 -0
  112. package/dist/components/button/index.d.ts +1 -0
  113. package/dist/components/captcha/Captcha.vue.d.ts +76 -0
  114. package/dist/components/captcha/index.d.ts +1 -0
  115. package/dist/components/cashier/Cashier.vue.d.ts +101 -0
  116. package/dist/components/cashier/CashierChannel.vue.d.ts +54 -0
  117. package/dist/components/cashier/CashierChannelButton.vue.d.ts +14 -0
  118. package/dist/components/cashier/CashierChannelItem.vue.d.ts +30 -0
  119. package/dist/components/cashier/index.d.ts +4 -0
  120. package/dist/components/cell-item/CellItem.vue.d.ts +38 -0
  121. package/dist/components/cell-item/index.d.ts +1 -0
  122. package/dist/components/chart/Chart.vue.d.ts +30 -0
  123. package/dist/components/chart/index.d.ts +2 -0
  124. package/dist/components/check/Check.vue.d.ts +38 -0
  125. package/dist/components/check/CheckBox.vue.d.ts +31 -0
  126. package/dist/components/check/CheckGroup.vue.d.ts +27 -0
  127. package/dist/components/check/CheckList.vue.d.ts +58 -0
  128. package/dist/components/check/index.d.ts +6 -0
  129. package/dist/components/check/shared.d.ts +52 -0
  130. package/dist/components/check-base/CheckBoxBase.vue.d.ts +25 -0
  131. package/dist/components/check-base/index.d.ts +1 -0
  132. package/dist/components/codebox/Codebox.vue.d.ts +58 -0
  133. package/dist/components/codebox/index.d.ts +1 -0
  134. package/dist/components/date-picker/DatePicker.vue.d.ts +70 -0
  135. package/dist/components/date-picker/index.d.ts +1 -0
  136. package/dist/components/detail-item/DetailItem.vue.d.ts +22 -0
  137. package/dist/components/detail-item/index.d.ts +1 -0
  138. package/dist/components/dialog/Dialog.vue.d.ts +78 -0
  139. package/dist/components/dialog/index.d.ts +40 -0
  140. package/dist/components/drop-menu/DropMenu.vue.d.ts +55 -0
  141. package/dist/components/drop-menu/index.d.ts +1 -0
  142. package/dist/components/field/Field.vue.d.ts +30 -0
  143. package/dist/components/field/index.d.ts +1 -0
  144. package/dist/components/field-item/FieldItem.vue.d.ts +42 -0
  145. package/dist/components/field-item/index.d.ts +1 -0
  146. package/dist/components/icon/Icon.vue.d.ts +20 -0
  147. package/dist/components/icon/default-svg-list.d.ts +2 -0
  148. package/dist/components/icon/index.d.ts +1 -0
  149. package/dist/components/icon/load-sprite.d.ts +6 -0
  150. package/dist/components/image-reader/ImageReader.vue.d.ts +46 -0
  151. package/dist/components/image-reader/index.d.ts +1 -0
  152. package/dist/components/image-viewer/ImageViewer.vue.d.ts +25 -0
  153. package/dist/components/image-viewer/index.d.ts +1 -0
  154. package/dist/components/index.d.ts +3 -0
  155. package/dist/components/input-item/InputItem.vue.d.ts +97 -0
  156. package/dist/components/input-item/cursor.d.ts +7 -0
  157. package/dist/components/input-item/index.d.ts +1 -0
  158. package/dist/components/landscape/Landscape.vue.d.ts +38 -0
  159. package/dist/components/landscape/index.d.ts +1 -0
  160. package/dist/components/license-plate/LicensePlate.vue.d.ts +32 -0
  161. package/dist/components/license-plate/LicensePlateInput.vue.d.ts +14 -0
  162. package/dist/components/license-plate/LicensePlateKeyboard.vue.d.ts +30 -0
  163. package/dist/components/license-plate/index.d.ts +3 -0
  164. package/dist/components/notice-bar/NoticeBar.vue.d.ts +44 -0
  165. package/dist/components/notice-bar/index.d.ts +1 -0
  166. package/dist/components/number-keyboard/KeyboardBoard.vue.d.ts +33 -0
  167. package/dist/components/number-keyboard/KeyboardKey.vue.d.ts +16 -0
  168. package/dist/components/number-keyboard/NumberKeyboard.vue.d.ts +59 -0
  169. package/dist/components/number-keyboard/index.d.ts +3 -0
  170. package/dist/components/picker/Picker.vue.d.ts +64 -0
  171. package/dist/components/picker/PickerColumn.vue.d.ts +64 -0
  172. package/dist/components/picker/index.d.ts +3 -0
  173. package/dist/components/popup/Popup.vue.d.ts +50 -0
  174. package/dist/components/popup/PopupTitleBar.vue.d.ts +41 -0
  175. package/dist/components/popup/index.d.ts +2 -0
  176. package/dist/components/progress/Progress.vue.d.ts +39 -0
  177. package/dist/components/progress/index.d.ts +1 -0
  178. package/dist/components/radio/Radio.vue.d.ts +39 -0
  179. package/dist/components/radio/RadioBox.vue.d.ts +31 -0
  180. package/dist/components/radio/RadioGroup.vue.d.ts +24 -0
  181. package/dist/components/radio/index.d.ts +3 -0
  182. package/dist/components/radio-list/RadioList.vue.d.ts +72 -0
  183. package/dist/components/radio-list/index.d.ts +2 -0
  184. package/dist/components/result-page/ResultPage.vue.d.ts +28 -0
  185. package/dist/components/result-page/index.d.ts +1 -0
  186. package/dist/components/ruler/Ruler.vue.d.ts +34 -0
  187. package/dist/components/ruler/index.d.ts +1 -0
  188. package/dist/components/scroll-view/ScrollView.vue.d.ts +84 -0
  189. package/dist/components/scroll-view/ScrollViewMore.vue.d.ts +12 -0
  190. package/dist/components/scroll-view/ScrollViewRefresh.vue.d.ts +20 -0
  191. package/dist/components/scroll-view/index.d.ts +3 -0
  192. package/dist/components/selector/Selector.vue.d.ts +88 -0
  193. package/dist/components/selector/index.d.ts +2 -0
  194. package/dist/components/skeleton/Skeleton.vue.d.ts +30 -0
  195. package/dist/components/skeleton/index.d.ts +1 -0
  196. package/dist/components/slider/Slider.vue.d.ts +24 -0
  197. package/dist/components/slider/index.d.ts +1 -0
  198. package/dist/components/stepper/Stepper.vue.d.ts +32 -0
  199. package/dist/components/stepper/index.d.ts +1 -0
  200. package/dist/components/steps/Steps.vue.d.ts +56 -0
  201. package/dist/components/steps/index.d.ts +2 -0
  202. package/dist/components/swiper/Swiper.vue.d.ts +57 -0
  203. package/dist/components/swiper/SwiperItem.vue.d.ts +26 -0
  204. package/dist/components/swiper/index.d.ts +2 -0
  205. package/dist/components/switch/Switch.vue.d.ts +16 -0
  206. package/dist/components/switch/index.d.ts +1 -0
  207. package/dist/components/tab-picker/TabPicker.vue.d.ts +78 -0
  208. package/dist/components/tab-picker/index.d.ts +1 -0
  209. package/dist/components/tabs/TabBar.vue.d.ts +50 -0
  210. package/dist/components/tabs/TabPane.vue.d.ts +31 -0
  211. package/dist/components/tabs/Tabs.vue.d.ts +34 -0
  212. package/dist/components/tabs/index.d.ts +3 -0
  213. package/dist/components/tag/Tag.vue.d.ts +39 -0
  214. package/dist/components/tag/index.d.ts +1 -0
  215. package/dist/components/textarea-item/TextareaItem.vue.d.ts +80 -0
  216. package/dist/components/textarea-item/index.d.ts +1 -0
  217. package/dist/components/tip/Tip.vue.d.ts +98 -0
  218. package/dist/components/tip/TipContent.vue.d.ts +33 -0
  219. package/dist/components/tip/index.d.ts +2 -0
  220. package/dist/components/toast/Toast.vue.d.ts +45 -0
  221. package/dist/components/toast/index.d.ts +129 -0
  222. package/dist/components/transition/Transition.vue.d.ts +13 -0
  223. package/dist/components/transition/index.d.ts +1 -0
  224. package/dist/components/water-mark/WaterMark.vue.d.ts +35 -0
  225. package/dist/components/water-mark/index.d.ts +1 -0
  226. package/dist/date-picker.cjs +1 -0
  227. package/dist/date-picker.d.ts +1 -0
  228. package/dist/date-picker.js +2 -0
  229. package/dist/dialog-0-E4Vyc-.cjs +1 -0
  230. package/dist/dialog-DHIZ2SMK.js +227 -0
  231. package/dist/dialog.cjs +1 -0
  232. package/dist/dialog.d.ts +2 -0
  233. package/dist/dialog.js +2 -0
  234. package/dist/field-item.cjs +1 -0
  235. package/dist/field-item.d.ts +1 -0
  236. package/dist/field-item.js +2 -0
  237. package/dist/field.cjs +1 -0
  238. package/dist/field.d.ts +1 -0
  239. package/dist/field.js +2 -0
  240. package/dist/icon.cjs +1 -0
  241. package/dist/icon.d.ts +1 -0
  242. package/dist/icon.js +2 -0
  243. package/dist/index.cjs +1 -0
  244. package/dist/index.d.ts +63 -0
  245. package/dist/index.js +2669 -0
  246. package/dist/input-item.cjs +1 -0
  247. package/dist/input-item.d.ts +1 -0
  248. package/dist/input-item.js +2 -0
  249. package/dist/notice-bar.cjs +1 -0
  250. package/dist/notice-bar.d.ts +1 -0
  251. package/dist/notice-bar.js +2 -0
  252. package/dist/number-keyboard.cjs +1 -0
  253. package/dist/number-keyboard.d.ts +1 -0
  254. package/dist/number-keyboard.js +2 -0
  255. package/dist/picker.cjs +1 -0
  256. package/dist/picker.d.ts +1 -0
  257. package/dist/picker.js +2 -0
  258. package/dist/popup.cjs +1 -0
  259. package/dist/popup.d.ts +1 -0
  260. package/dist/popup.js +3 -0
  261. package/dist/progress.cjs +1 -0
  262. package/dist/progress.d.ts +1 -0
  263. package/dist/progress.js +2 -0
  264. package/dist/radio-list.cjs +1 -0
  265. package/dist/radio-list.d.ts +1 -0
  266. package/dist/radio-list.js +2 -0
  267. package/dist/radio.cjs +1 -0
  268. package/dist/radio.d.ts +1 -0
  269. package/dist/radio.js +3 -0
  270. package/dist/scroll-view.cjs +1 -0
  271. package/dist/scroll-view.d.ts +1 -0
  272. package/dist/scroll-view.js +2 -0
  273. package/dist/shared-BtSkmaWC.js +37 -0
  274. package/dist/shared-k9cbQbvK.cjs +1 -0
  275. package/dist/skeleton.cjs +1 -0
  276. package/dist/skeleton.d.ts +1 -0
  277. package/dist/skeleton.js +2 -0
  278. package/dist/slider.cjs +1 -0
  279. package/dist/slider.d.ts +1 -0
  280. package/dist/slider.js +2 -0
  281. package/dist/stepper.cjs +1 -0
  282. package/dist/stepper.d.ts +1 -0
  283. package/dist/stepper.js +2 -0
  284. package/dist/swiper.cjs +1 -0
  285. package/dist/swiper.d.ts +1 -0
  286. package/dist/swiper.js +2 -0
  287. package/dist/switch.cjs +1 -0
  288. package/dist/switch.d.ts +1 -0
  289. package/dist/switch.js +2 -0
  290. package/dist/tag.cjs +1 -0
  291. package/dist/tag.d.ts +1 -0
  292. package/dist/tag.js +2 -0
  293. package/dist/tip.cjs +1 -0
  294. package/dist/tip.d.ts +1 -0
  295. package/dist/tip.js +2 -0
  296. package/dist/toast-CAeyMc5r.cjs +1 -0
  297. package/dist/toast-DX-RoB7Q.js +146 -0
  298. package/dist/toast.cjs +1 -0
  299. package/dist/toast.d.ts +2 -0
  300. package/dist/toast.js +2 -0
  301. package/package.json +195 -3
@@ -0,0 +1,166 @@
1
+ import { t as e } from "./Icon-dWGSK6Ou.js";
2
+ import { Fragment as t, cloneVNode as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, getCurrentInstance as u, normalizeClass as d, onBeforeUnmount as f, onMounted as p, openBlock as m, render as h, renderSlot as g, toDisplayString as _ } from "vue";
3
+ import { randomId as v } from "@centui/core";
4
+ //#region src/components/tip/TipContent.vue?vue&type=script&setup=true&lang.ts
5
+ var y = { class: "cu-tip-content" }, b = ["textContent"], x = /* @__PURE__ */ l({
6
+ name: "cu-tip-content",
7
+ __name: "TipContent",
8
+ props: {
9
+ placement: { default: "top" },
10
+ closable: {
11
+ type: Boolean,
12
+ default: !0
13
+ },
14
+ icon: { default: void 0 },
15
+ iconSvg: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ content: { default: "" },
20
+ name: { default: void 0 }
21
+ },
22
+ emits: ["close"],
23
+ setup(n, { emit: c }) {
24
+ let l = n, u = c, f = r(() => ({
25
+ "has-close": l.closable,
26
+ [`is-${l.placement}`]: [
27
+ "left",
28
+ "bottom",
29
+ "right"
30
+ ].includes(l.placement),
31
+ [String(l.name)]: !!l.name
32
+ }));
33
+ function p() {
34
+ u("close");
35
+ }
36
+ return (r, c) => (m(), o("div", { class: d(["cu-tip", f.value]) }, [s("div", y, [r.$slots.default ? g(r.$slots, "default", {}, void 0, void 0, 1) : (m(), o(t, { key: 0 }, [n.icon ? (m(), i(e, {
37
+ key: 0,
38
+ class: "content-icon",
39
+ name: n.icon,
40
+ svg: n.iconSvg
41
+ }, null, 8, ["name", "svg"])) : a("", !0), s("div", {
42
+ class: "content-text",
43
+ textContent: _(n.content)
44
+ }, null, 8, b)], 64)), n.closable ? (m(), i(e, {
45
+ key: 2,
46
+ name: "close",
47
+ size: "md",
48
+ onClick: p
49
+ })) : a("", !0)]), c[0] ||= s("div", { class: "cu-tip-bg" }, null, -1)], 2));
50
+ }
51
+ }), S = l({
52
+ name: "cu-tip",
53
+ props: {
54
+ placement: {
55
+ type: String,
56
+ default: "top"
57
+ },
58
+ name: {
59
+ type: [String, Number],
60
+ default: void 0
61
+ },
62
+ icon: {
63
+ type: String,
64
+ default: void 0
65
+ },
66
+ iconSvg: {
67
+ type: Boolean,
68
+ default: !1
69
+ },
70
+ content: {
71
+ type: [String, Number],
72
+ default: ""
73
+ },
74
+ closable: {
75
+ type: Boolean,
76
+ default: !0
77
+ },
78
+ fill: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
82
+ offset: {
83
+ type: Object,
84
+ default: () => ({
85
+ top: 0,
86
+ left: 0
87
+ })
88
+ }
89
+ },
90
+ emits: ["show", "hide"],
91
+ setup(e, { slots: t, emit: r }) {
92
+ let i = null, a = null, o = u();
93
+ function s() {
94
+ let e = o?.proxy?.$el;
95
+ return e && e.nodeType === 1 ? e : null;
96
+ }
97
+ p(() => {
98
+ i = l(s() ?? document.body);
99
+ }), f(() => {
100
+ _(), i = null;
101
+ });
102
+ function l(e) {
103
+ if (e === null || e === document.body) return e;
104
+ let t = window.getComputedStyle(e).overflowY, n = t !== "visible" && t !== "hidden", r = e.getAttribute && e.getAttribute("scroll-wrapper") !== null;
105
+ return n && e.scrollHeight > e.clientHeight || r ? e : l(e.parentNode);
106
+ }
107
+ function d(e, t) {
108
+ let n = 0, r = 0, i = e;
109
+ for (; i && (n += i.offsetLeft, r += i.offsetTop, i !== t && i !== document.body && i !== null);) i = i.offsetParent;
110
+ return {
111
+ x: n,
112
+ y: r
113
+ };
114
+ }
115
+ function m() {
116
+ if (a) return a;
117
+ a = document.createElement("div");
118
+ let t = c(x, {
119
+ icon: e.icon,
120
+ iconSvg: e.iconSvg,
121
+ placement: e.placement,
122
+ content: e.content,
123
+ closable: e.closable,
124
+ name: e.name ?? v("tip"),
125
+ onClose: b
126
+ });
127
+ return h(t, a), a;
128
+ }
129
+ function g(t) {
130
+ if (!a) return;
131
+ let n = a.firstElementChild, r = d(t, i), o = e.offset.top || 0, s = e.offset.left || 0, c = n.offsetWidth, l = n.offsetHeight, u = "";
132
+ switch (e.fill && (e.placement === "top" || e.placement === "bottom") && (c = t.offsetWidth, u += `width: ${c}px;`), e.fill && (e.placement === "left" || e.placement === "right") && (l = t.offsetHeight, u += `height: ${l}px;`), e.placement) {
133
+ case "left":
134
+ r.y += (t.offsetHeight - l) / 2, r.x -= c + 10;
135
+ break;
136
+ case "right":
137
+ r.y += (t.offsetHeight - l) / 2, r.x += t.offsetWidth + 10;
138
+ break;
139
+ case "bottom":
140
+ r.y += t.offsetHeight + 10, r.x += (t.offsetWidth - c) / 2;
141
+ break;
142
+ default: r.y -= l + 10, r.x += (t.offsetWidth - c) / 2;
143
+ }
144
+ u += `position: absolute; top: ${r.y + o}px; left: ${r.x + s}px;`, n.style.cssText = u;
145
+ }
146
+ function _() {
147
+ a && a.parentNode && a.parentNode.removeChild(a);
148
+ }
149
+ function y() {
150
+ let t = m(), n = s();
151
+ i && t.parentNode !== i && n && i.appendChild(t), n && g(n), r("show", e.name);
152
+ }
153
+ function b() {
154
+ a && a.parentNode !== null && (a.parentNode.removeChild(a), r("hide", e.name));
155
+ }
156
+ return () => {
157
+ let e = t.default?.() ?? [];
158
+ if (!e.length) return e;
159
+ let r = null;
160
+ for (let t of e) if (r = t, t.type || t.props && Object.keys(t.props).length) break;
161
+ return r ? n(r, { onClick: y }) : e;
162
+ };
163
+ }
164
+ });
165
+ //#endregion
166
+ export { x as n, S as t };
@@ -0,0 +1 @@
1
+ const e=require("./Icon-jaEPn7d7.cjs");let t=require("vue"),n=require("@centui/core");var r={class:`cu-tip-content`},i=[`textContent`],a=(0,t.defineComponent)({name:`cu-tip-content`,__name:`TipContent`,props:{placement:{default:`top`},closable:{type:Boolean,default:!0},icon:{default:void 0},iconSvg:{type:Boolean,default:!1},content:{default:``},name:{default:void 0}},emits:[`close`],setup(n,{emit:a}){let o=n,s=a,c=(0,t.computed)(()=>({"has-close":o.closable,[`is-${o.placement}`]:[`left`,`bottom`,`right`].includes(o.placement),[String(o.name)]:!!o.name}));function l(){s(`close`)}return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cu-tip`,c.value])},[(0,t.createElementVNode)(`div`,r,[a.$slots.default?(0,t.renderSlot)(a.$slots,`default`,{},void 0,void 0,1):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[n.icon?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:0,class:`content-icon`,name:n.icon,svg:n.iconSvg},null,8,[`name`,`svg`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:`content-text`,textContent:(0,t.toDisplayString)(n.content)},null,8,i)],64)),n.closable?((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:2,name:`close`,size:`md`,onClick:l})):(0,t.createCommentVNode)(``,!0)]),o[0]||=(0,t.createElementVNode)(`div`,{class:`cu-tip-bg`},null,-1)],2))}}),o=(0,t.defineComponent)({name:`cu-tip`,props:{placement:{type:String,default:`top`},name:{type:[String,Number],default:void 0},icon:{type:String,default:void 0},iconSvg:{type:Boolean,default:!1},content:{type:[String,Number],default:``},closable:{type:Boolean,default:!0},fill:{type:Boolean,default:!1},offset:{type:Object,default:()=>({top:0,left:0})}},emits:[`show`,`hide`],setup(e,{slots:r,emit:i}){let o=null,s=null,c=(0,t.getCurrentInstance)();function l(){let e=c?.proxy?.$el;return e&&e.nodeType===1?e:null}(0,t.onMounted)(()=>{o=u(l()??document.body)}),(0,t.onBeforeUnmount)(()=>{m(),o=null});function u(e){if(e===null||e===document.body)return e;let t=window.getComputedStyle(e).overflowY,n=t!==`visible`&&t!==`hidden`,r=e.getAttribute&&e.getAttribute(`scroll-wrapper`)!==null;return n&&e.scrollHeight>e.clientHeight||r?e:u(e.parentNode)}function d(e,t){let n=0,r=0,i=e;for(;i&&(n+=i.offsetLeft,r+=i.offsetTop,i!==t&&i!==document.body&&i!==null);)i=i.offsetParent;return{x:n,y:r}}function f(){if(s)return s;s=document.createElement(`div`);let r=(0,t.createVNode)(a,{icon:e.icon,iconSvg:e.iconSvg,placement:e.placement,content:e.content,closable:e.closable,name:e.name??(0,n.randomId)(`tip`),onClose:g});return(0,t.render)(r,s),s}function p(t){if(!s)return;let n=s.firstElementChild,r=d(t,o),i=e.offset.top||0,a=e.offset.left||0,c=n.offsetWidth,l=n.offsetHeight,u=``;switch(e.fill&&(e.placement===`top`||e.placement===`bottom`)&&(c=t.offsetWidth,u+=`width: ${c}px;`),e.fill&&(e.placement===`left`||e.placement===`right`)&&(l=t.offsetHeight,u+=`height: ${l}px;`),e.placement){case`left`:r.y+=(t.offsetHeight-l)/2,r.x-=c+10;break;case`right`:r.y+=(t.offsetHeight-l)/2,r.x+=t.offsetWidth+10;break;case`bottom`:r.y+=t.offsetHeight+10,r.x+=(t.offsetWidth-c)/2;break;default:r.y-=l+10,r.x+=(t.offsetWidth-c)/2}u+=`position: absolute; top: ${r.y+i}px; left: ${r.x+a}px;`,n.style.cssText=u}function m(){s&&s.parentNode&&s.parentNode.removeChild(s)}function h(){let t=f(),n=l();o&&t.parentNode!==o&&n&&o.appendChild(t),n&&p(n),i(`show`,e.name)}function g(){s&&s.parentNode!==null&&(s.parentNode.removeChild(s),i(`hide`,e.name))}return()=>{let e=r.default?.()??[];if(!e.length)return e;let n=null;for(let t of e)if(n=t,t.type||t.props&&Object.keys(t.props).length)break;return n?(0,t.cloneVNode)(n,{onClick:h}):e}}});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
@@ -0,0 +1,118 @@
1
+ import { t as e } from "./Popup-DPYBBL95.js";
2
+ import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, ref as l, render as u, renderList as d, toDisplayString as f, unref as p, watch as m, withCtx as h } from "vue";
3
+ import { inArray as g, t as _ } from "@centui/core";
4
+ //#region src/components/action-sheet/ActionSheet.vue?vue&type=script&setup=true&lang.ts
5
+ var v = { class: "cu-action-sheet" }, y = { class: "cu-action-sheet-content" }, b = {
6
+ key: 0,
7
+ class: "cu-action-sheet-header"
8
+ }, x = { class: "cu-action-sheet-list" }, S = ["onClick"], C = { class: "cu-action-sheet-item-wrapper" }, w = ["innerHTML"], T = /* @__PURE__ */ o({
9
+ name: "cu-action-sheet",
10
+ __name: "ActionSheet",
11
+ props: {
12
+ modelValue: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ title: { default: "" },
17
+ options: { default: () => [] },
18
+ defaultIndex: { default: -1 },
19
+ invalidIndex: { default: -1 },
20
+ cancelText: { default: void 0 },
21
+ maxHeight: { default: 400 }
22
+ },
23
+ emits: [
24
+ "update:modelValue",
25
+ "show",
26
+ "hide",
27
+ "selected",
28
+ "cancel"
29
+ ],
30
+ setup(o, { emit: u }) {
31
+ let T = o, E = u, D = T.cancelText ?? _("md.action_sheet.cancel"), O = l(T.modelValue), k = l(T.defaultIndex);
32
+ m(() => T.modelValue, (e) => {
33
+ O.value = e;
34
+ });
35
+ function A(e) {
36
+ e || F();
37
+ }
38
+ function j() {
39
+ E("show");
40
+ }
41
+ function M() {
42
+ E("hide"), F();
43
+ }
44
+ function N(e, t) {
45
+ t === T.invalidIndex || g(T.invalidIndex, t) || (k.value = t, E("selected", e), F());
46
+ }
47
+ function P() {
48
+ E("cancel"), F();
49
+ }
50
+ function F() {
51
+ O.value = !1, E("update:modelValue", !1);
52
+ }
53
+ return (l, u) => (c(), r("div", v, [a(e, {
54
+ class: "inner-popup large-radius",
55
+ "model-value": O.value,
56
+ position: "bottom",
57
+ "prevent-scroll": "",
58
+ "onUpdate:modelValue": A,
59
+ onShow: j,
60
+ onHide: M
61
+ }, {
62
+ default: h(() => [i("div", y, [o.title ? (c(), r("header", b, f(o.title), 1)) : n("", !0), i("ul", x, [(c(!0), r(t, null, d(o.options, (e, t) => (c(), r("li", {
63
+ key: t,
64
+ class: s({
65
+ active: t === k.value,
66
+ disabled: t === o.invalidIndex,
67
+ "cu-action-sheet-item": !0
68
+ }),
69
+ onClick: (n) => N(e, t)
70
+ }, [i("div", C, [i("div", {
71
+ class: "cu-action-sheet-item-section",
72
+ innerHTML: e.text || e.label
73
+ }, null, 8, w)])], 10, S))), 128)), i("li", {
74
+ class: "cu-action-sheet-cancel",
75
+ onClick: P
76
+ }, f(p(D)), 1)])])]),
77
+ _: 1
78
+ }, 8, ["model-value"])]));
79
+ }
80
+ }), E = () => {}, D = [];
81
+ function O({ value: e = !0, title: t = "", options: n = [], defaultIndex: r = -1, invalidIndex: i = -1, cancelText: o = "取消", maxHeight: s = 400, onShow: c = E, onHide: l = E, onSelected: d = E, onCancel: f = E }) {
82
+ let p = document.createElement("div");
83
+ document.body.appendChild(p);
84
+ let m = {
85
+ value: !1,
86
+ close: () => {}
87
+ }, h = () => {
88
+ let e = a(T, {
89
+ modelValue: m.value,
90
+ title: t,
91
+ options: n,
92
+ defaultIndex: r,
93
+ invalidIndex: i,
94
+ cancelText: o,
95
+ maxHeight: s,
96
+ "onUpdate:modelValue": (e) => {
97
+ m.value = e, e && h();
98
+ },
99
+ onShow: c,
100
+ onHide: () => {
101
+ let e = p.parentNode;
102
+ e && e.removeChild(p);
103
+ let t = D.indexOf(m);
104
+ t >= 0 && D.splice(t, 1), u(null, p), l();
105
+ },
106
+ onSelected: d,
107
+ onCancel: f
108
+ });
109
+ u(e, p);
110
+ };
111
+ return m.close = () => {
112
+ m.value = !1, h();
113
+ }, D.push(m), e && (m.value = !0, h()), m;
114
+ }
115
+ var k = T;
116
+ k.create = O;
117
+ //#endregion
118
+ export { T as n, k as t };
@@ -0,0 +1 @@
1
+ const e=require("./Popup-Cm4BuaOo.cjs");let t=require("vue"),n=require("@centui/core");var r={class:`cu-action-sheet`},i={class:`cu-action-sheet-content`},a={key:0,class:`cu-action-sheet-header`},o={class:`cu-action-sheet-list`},s=[`onClick`],c={class:`cu-action-sheet-item-wrapper`},l=[`innerHTML`],u=(0,t.defineComponent)({name:`cu-action-sheet`,__name:`ActionSheet`,props:{modelValue:{type:Boolean,default:!1},title:{default:``},options:{default:()=>[]},defaultIndex:{default:-1},invalidIndex:{default:-1},cancelText:{default:void 0},maxHeight:{default:400}},emits:[`update:modelValue`,`show`,`hide`,`selected`,`cancel`],setup(u,{emit:d}){let f=u,p=d,m=f.cancelText??(0,n.t)(`md.action_sheet.cancel`),h=(0,t.ref)(f.modelValue),g=(0,t.ref)(f.defaultIndex);(0,t.watch)(()=>f.modelValue,e=>{h.value=e});function _(e){e||S()}function v(){p(`show`)}function y(){p(`hide`),S()}function b(e,t){t===f.invalidIndex||(0,n.inArray)(f.invalidIndex,t)||(g.value=t,p(`selected`,e),S())}function x(){p(`cancel`),S()}function S(){h.value=!1,p(`update:modelValue`,!1)}return(n,d)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,r,[(0,t.createVNode)(e.t,{class:`inner-popup large-radius`,"model-value":h.value,position:`bottom`,"prevent-scroll":``,"onUpdate:modelValue":_,onShow:v,onHide:y},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,i,[u.title?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,a,(0,t.toDisplayString)(u.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`ul`,o,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(u.options,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:(0,t.normalizeClass)({active:n===g.value,disabled:n===u.invalidIndex,"cu-action-sheet-item":!0}),onClick:t=>b(e,n)},[(0,t.createElementVNode)(`div`,c,[(0,t.createElementVNode)(`div`,{class:`cu-action-sheet-item-section`,innerHTML:e.text||e.label},null,8,l)])],10,s))),128)),(0,t.createElementVNode)(`li`,{class:`cu-action-sheet-cancel`,onClick:x},(0,t.toDisplayString)((0,t.unref)(m)),1)])])]),_:1},8,[`model-value`])]))}}),d=()=>{},f=[];function p({value:e=!0,title:n=``,options:r=[],defaultIndex:i=-1,invalidIndex:a=-1,cancelText:o=`取消`,maxHeight:s=400,onShow:c=d,onHide:l=d,onSelected:p=d,onCancel:m=d}){let h=document.createElement(`div`);document.body.appendChild(h);let g={value:!1,close:()=>{}},_=()=>{let e=(0,t.createVNode)(u,{modelValue:g.value,title:n,options:r,defaultIndex:i,invalidIndex:a,cancelText:o,maxHeight:s,"onUpdate:modelValue":e=>{g.value=e,e&&_()},onShow:c,onHide:()=>{let e=h.parentNode;e&&e.removeChild(h);let n=f.indexOf(g);n>=0&&f.splice(n,1),(0,t.render)(null,h),l()},onSelected:p,onCancel:m});(0,t.render)(e,h)};return g.close=()=>{g.value=!1,_()},f.push(g),e&&(g.value=!0,_()),g}var m=u;m.create=p,Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
@@ -0,0 +1 @@
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./action-sheet-LJilF3EQ.cjs");exports.CuActionSheet=e.n,exports.default=e.t;
@@ -0,0 +1,2 @@
1
+ export * from './components/action-sheet';
2
+ export { default } from './components/action-sheet';
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "./action-sheet-DKpi2GLQ.js";
2
+ export { e as CuActionSheet, t as default };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Roller-DALhjhfg.cjs"),t=require("./RollerSuccess--JecJ7bz.cjs");exports.CuActivityIndicator=t.n,exports.CuActivityIndicatorCarousel=t.r,exports.CuActivityIndicatorRolling=e.t,exports.CuActivityIndicatorSpinning=t.i,exports.CuRollerSuccess=t.t;
@@ -0,0 +1 @@
1
+ export * from './components/activity-indicator';
@@ -0,0 +1,3 @@
1
+ import { t as e } from "./Roller-DFJ7jMV0.js";
2
+ import { i as t, n, r, t as i } from "./RollerSuccess-CVEmS9gU.js";
3
+ export { n as CuActivityIndicator, r as CuActivityIndicatorCarousel, e as CuActivityIndicatorRolling, t as CuActivityIndicatorSpinning, i as CuRollerSuccess };
package/dist/agree.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Agree-DT46e5q5.cjs");exports.CuAgree=e.t;
@@ -0,0 +1 @@
1
+ export * from './components/agree';
package/dist/agree.js ADDED
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./Agree-yTGTi4e6.js";
2
+ export { e as CuAgree };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Amount-De-oObat.cjs");exports.CuAmount=e.t;
@@ -0,0 +1 @@
1
+ export * from './components/amount';
package/dist/amount.js ADDED
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./Amount-wOtRYOdx.js";
2
+ export { e as CuAmount };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Button-Blpwwbnw.cjs");exports.CuButton=e.t;
@@ -0,0 +1 @@
1
+ export * from './components/button';
package/dist/button.js ADDED
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./Button-BIi6CrwM.js";
2
+ export { e as CuButton };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./CellItem-T78DHako.cjs");exports.CuCellItem=e.t;
@@ -0,0 +1 @@
1
+ export * from './components/cell-item';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./CellItem-YZD-BxKt.js";
2
+ export { e as CuCellItem };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./CheckBoxBase-BDsytL_r.cjs");exports.CuCheckBaseBox=e.t;
@@ -0,0 +1 @@
1
+ export * from './components/check-base';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./CheckBoxBase-BjyVzGqj.js";
2
+ export { e as CuCheckBaseBox };
package/dist/check.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./CheckList-DEmLmccw.cjs");exports.CuCheck=e.i,exports.CuCheckBox=e.r,exports.CuCheckGroup=e.n,exports.CuCheckList=e.t;
@@ -0,0 +1 @@
1
+ export * from './components/check';
package/dist/check.js ADDED
@@ -0,0 +1,2 @@
1
+ import { i as e, n as t, r as n, t as r } from "./CheckList-Bfy3B-eN.js";
2
+ export { e as CuCheck, n as CuCheckBox, t as CuCheckGroup, r as CuCheckList };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Codebox-Cgj7wyzd.cjs");exports.CuCodebox=e.t;
@@ -0,0 +1 @@
1
+ export * from './components/codebox';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./Codebox-D0UtCj11.js";
2
+ export { e as CuCodebox };
@@ -0,0 +1,34 @@
1
+ export interface ActionBarAction {
2
+ text?: string;
3
+ type?: string;
4
+ plain?: boolean;
5
+ round?: boolean;
6
+ inactive?: boolean;
7
+ loading?: boolean;
8
+ icon?: string;
9
+ iconSvg?: boolean;
10
+ disabled?: boolean;
11
+ onClick?: (event: MouseEvent, action: ActionBarAction) => void;
12
+ }
13
+ type __VLS_Props = {
14
+ actions?: Array<ActionBarAction>;
15
+ };
16
+ declare var __VLS_1: {};
17
+ type __VLS_Slots = {} & {
18
+ default?: (props: typeof __VLS_1) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ click: (event: MouseEvent, action: ActionBarAction) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onClick?: ((event: MouseEvent, action: ActionBarAction) => any) | undefined;
24
+ }>, {
25
+ actions: Array<ActionBarAction>;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,2 @@
1
+ export { default as CuActionBar } from './ActionBar.vue';
2
+ export type { ActionBarAction } from './ActionBar.vue';
@@ -0,0 +1,44 @@
1
+ export interface ActionSheetOption {
2
+ text?: string;
3
+ label?: string;
4
+ disabled?: boolean;
5
+ }
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
8
+ declare const __VLS_export: import('vue').DefineComponent<{
9
+ modelValue?: boolean;
10
+ title?: string;
11
+ options?: ActionSheetOption[];
12
+ defaultIndex?: number;
13
+ invalidIndex?: number | number[];
14
+ cancelText?: string;
15
+ maxHeight?: number;
16
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ "update:modelValue": (value: boolean) => any;
18
+ show: () => any;
19
+ hide: () => any;
20
+ cancel: () => any;
21
+ selected: (option: ActionSheetOption) => any;
22
+ }, string, import('vue').PublicProps, Readonly<{
23
+ modelValue?: boolean;
24
+ title?: string;
25
+ options?: ActionSheetOption[];
26
+ defaultIndex?: number;
27
+ invalidIndex?: number | number[];
28
+ cancelText?: string;
29
+ maxHeight?: number;
30
+ }> & Readonly<{
31
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
32
+ onShow?: (() => any) | undefined;
33
+ onHide?: (() => any) | undefined;
34
+ onCancel?: (() => any) | undefined;
35
+ onSelected?: ((option: ActionSheetOption) => any) | undefined;
36
+ }>, {
37
+ title: string;
38
+ modelValue: boolean;
39
+ cancelText: string;
40
+ options: ActionSheetOption[];
41
+ defaultIndex: number;
42
+ invalidIndex: number | number[];
43
+ maxHeight: number;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,25 @@
1
+ import { default as CuActionSheetComponent, ActionSheetOption } from './ActionSheet.vue';
2
+ export type { ActionSheetOption };
3
+ export interface ActionSheetCreateProps {
4
+ value?: boolean;
5
+ title?: string;
6
+ options?: ActionSheetOption[];
7
+ defaultIndex?: number;
8
+ invalidIndex?: number | number[];
9
+ cancelText?: string;
10
+ maxHeight?: number;
11
+ onShow?: () => void;
12
+ onHide?: () => void;
13
+ onSelected?: (option: ActionSheetOption) => void;
14
+ onCancel?: () => void;
15
+ }
16
+ interface ActionSheetInstance {
17
+ value: boolean;
18
+ close: () => void;
19
+ }
20
+ type ActionSheetStatic = typeof CuActionSheetComponent & {
21
+ create: (props: ActionSheetCreateProps) => ActionSheetInstance;
22
+ };
23
+ declare const ActionSheet: ActionSheetStatic;
24
+ export { CuActionSheetComponent as CuActionSheet };
25
+ export default ActionSheet;
@@ -0,0 +1,31 @@
1
+ type __VLS_Props = {
2
+ /** roller | spinner | carousel */
3
+ type?: string;
4
+ size?: number;
5
+ width?: number;
6
+ color?: string;
7
+ textColor?: string;
8
+ textSize?: number;
9
+ vertical?: boolean;
10
+ };
11
+ declare var __VLS_16: {};
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_16) => any;
14
+ };
15
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ size: number;
17
+ color: string;
18
+ type: string;
19
+ width: number;
20
+ textColor: string;
21
+ textSize: number;
22
+ vertical: boolean;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ size?: number;
3
+ color?: string;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ size: number;
7
+ color: string;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ size?: number;
3
+ index?: number;
4
+ animateValues?: number[];
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ size: number;
8
+ index: number;
9
+ animateValues: number[];
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,37 @@
1
+ type __VLS_Props = {
2
+ size?: number;
3
+ width?: number;
4
+ color?: string;
5
+ borderColor?: string;
6
+ fill?: string;
7
+ linecap?: 'butt' | 'round' | 'square' | 'inherit';
8
+ rotate?: number;
9
+ /** 进度控制 0-1;不传时为自动不定态动画 */
10
+ process?: number;
11
+ };
12
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
13
+ type __VLS_Slots = {} & {
14
+ circle?: (props: typeof __VLS_1) => any;
15
+ } & {
16
+ defs?: (props: typeof __VLS_3) => any;
17
+ } & {
18
+ default?: (props: typeof __VLS_5) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
+ fill: string;
22
+ size: number;
23
+ color: string;
24
+ width: number;
25
+ borderColor: string;
26
+ linecap: "butt" | "round" | "square" | "inherit";
27
+ rotate: number;
28
+ process: number;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ isSuccess?: boolean;
3
+ size?: number;
4
+ color?: string;
5
+ strokeWidth?: number;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ size: number;
9
+ color: string;
10
+ strokeWidth: number;
11
+ isSuccess: boolean;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ size?: number;
3
+ color?: string;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ size: number;
7
+ color: string;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export { default as CuActivityIndicator } from './ActivityIndicator.vue';
2
+ export { default as CuActivityIndicatorRolling } from './Roller.vue';
3
+ export { default as CuActivityIndicatorSpinning } from './Spinning.vue';
4
+ export { default as CuActivityIndicatorCarousel } from './Carousel.vue';
5
+ export { default as CuRollerSuccess } from './RollerSuccess.vue';