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.
- package/LICENSE +433 -0
- package/README.md +54 -2
- package/dist/Agree-DT46e5q5.cjs +1 -0
- package/dist/Agree-yTGTi4e6.js +44 -0
- package/dist/Amount-De-oObat.cjs +1 -0
- package/dist/Amount-wOtRYOdx.js +62 -0
- package/dist/Button-BIi6CrwM.js +61 -0
- package/dist/Button-Blpwwbnw.cjs +1 -0
- package/dist/CellItem-T78DHako.cjs +1 -0
- package/dist/CellItem-YZD-BxKt.js +72 -0
- package/dist/CheckBoxBase-BDsytL_r.cjs +1 -0
- package/dist/CheckBoxBase-BjyVzGqj.js +40 -0
- package/dist/CheckList-Bfy3B-eN.js +239 -0
- package/dist/CheckList-DEmLmccw.cjs +1 -0
- package/dist/Codebox-Cgj7wyzd.cjs +1 -0
- package/dist/Codebox-D0UtCj11.js +189 -0
- package/dist/DatePicker-B1AVbKhK.cjs +1 -0
- package/dist/DatePicker-TAHuve5t.js +177 -0
- package/dist/Field-CseJzTZz.js +51 -0
- package/dist/Field-DDmHa4zB.cjs +1 -0
- package/dist/FieldItem-Cc7bw5vU.js +88 -0
- package/dist/FieldItem-Dkpx5Kxk.cjs +1 -0
- package/dist/Icon-dWGSK6Ou.js +119 -0
- package/dist/Icon-jaEPn7d7.cjs +31 -0
- package/dist/InputItem-EJ4Y3tpU.cjs +1 -0
- package/dist/InputItem-bhFtp97z.js +322 -0
- package/dist/NoticeBar-DSf_EjTL.cjs +1 -0
- package/dist/NoticeBar-PEYcjXwD.js +84 -0
- package/dist/NumberKeyboard-BX0c0l2r.cjs +1 -0
- package/dist/NumberKeyboard-C7TRF5iC.js +320 -0
- package/dist/Picker-D-TPtSxf.cjs +1 -0
- package/dist/Picker-Dam0LEcc.js +476 -0
- package/dist/Popup-Cm4BuaOo.cjs +1 -0
- package/dist/Popup-DPYBBL95.js +116 -0
- package/dist/PopupTitleBar-B4vwxKC7.cjs +1 -0
- package/dist/PopupTitleBar-nVurLaOe.js +85 -0
- package/dist/Progress-CwIC6scr.js +67 -0
- package/dist/Progress-DukssNvl.cjs +1 -0
- package/dist/Radio-ZHivLdvi.cjs +1 -0
- package/dist/Radio-fsc7_N5K.js +65 -0
- package/dist/RadioGroup-BR_jSDR4.cjs +1 -0
- package/dist/RadioGroup-CMPmk8X_.js +82 -0
- package/dist/RadioList-CkerkQEY.js +127 -0
- package/dist/RadioList-upQgua8Z.cjs +1 -0
- package/dist/Roller-DALhjhfg.cjs +1 -0
- package/dist/Roller-DFJ7jMV0.js +92 -0
- package/dist/RollerSuccess--JecJ7bz.cjs +1 -0
- package/dist/RollerSuccess-CVEmS9gU.js +224 -0
- package/dist/ScrollViewMore-BWph-i1-.cjs +1 -0
- package/dist/ScrollViewMore-BgYJx-TP.js +278 -0
- package/dist/Skeleton--SCiydNl.cjs +1 -0
- package/dist/Skeleton-BG_j23KI.js +55 -0
- package/dist/Slider-D3wrE8hn.cjs +1 -0
- package/dist/Slider-DteN8p-L.js +95 -0
- package/dist/Stepper-1EOk4pCY.js +127 -0
- package/dist/Stepper-BJr4I6_8.cjs +1 -0
- package/dist/SwiperItem-B6TgjCsM.cjs +1 -0
- package/dist/SwiperItem-CKd-XKT7.js +337 -0
- package/dist/Switch-B6DvVj2p.js +30 -0
- package/dist/Switch-BVPjF8CM.cjs +1 -0
- package/dist/Tag-CPv77lC8.cjs +1 -0
- package/dist/Tag-bs5j40pF.js +66 -0
- package/dist/Tip-BFZSiRc1.js +166 -0
- package/dist/Tip-C3brAF9N.cjs +1 -0
- package/dist/action-sheet-DKpi2GLQ.js +118 -0
- package/dist/action-sheet-LJilF3EQ.cjs +1 -0
- package/dist/action-sheet.cjs +1 -0
- package/dist/action-sheet.d.ts +2 -0
- package/dist/action-sheet.js +2 -0
- package/dist/activity-indicator.cjs +1 -0
- package/dist/activity-indicator.d.ts +1 -0
- package/dist/activity-indicator.js +3 -0
- package/dist/agree.cjs +1 -0
- package/dist/agree.d.ts +1 -0
- package/dist/agree.js +2 -0
- package/dist/amount.cjs +1 -0
- package/dist/amount.d.ts +1 -0
- package/dist/amount.js +2 -0
- package/dist/button.cjs +1 -0
- package/dist/button.d.ts +1 -0
- package/dist/button.js +2 -0
- package/dist/cell-item.cjs +1 -0
- package/dist/cell-item.d.ts +1 -0
- package/dist/cell-item.js +2 -0
- package/dist/check-base.cjs +1 -0
- package/dist/check-base.d.ts +1 -0
- package/dist/check-base.js +2 -0
- package/dist/check.cjs +1 -0
- package/dist/check.d.ts +1 -0
- package/dist/check.js +2 -0
- package/dist/codebox.cjs +1 -0
- package/dist/codebox.d.ts +1 -0
- package/dist/codebox.js +2 -0
- package/dist/components/action-bar/ActionBar.vue.d.ts +34 -0
- package/dist/components/action-bar/index.d.ts +2 -0
- package/dist/components/action-sheet/ActionSheet.vue.d.ts +44 -0
- package/dist/components/action-sheet/index.d.ts +25 -0
- package/dist/components/activity-indicator/ActivityIndicator.vue.d.ts +31 -0
- package/dist/components/activity-indicator/Carousel.vue.d.ts +10 -0
- package/dist/components/activity-indicator/CarouselCircle.vue.d.ts +12 -0
- package/dist/components/activity-indicator/Roller.vue.d.ts +37 -0
- package/dist/components/activity-indicator/RollerSuccess.vue.d.ts +14 -0
- package/dist/components/activity-indicator/Spinning.vue.d.ts +10 -0
- package/dist/components/activity-indicator/index.d.ts +5 -0
- package/dist/components/agree/Agree.vue.d.ts +35 -0
- package/dist/components/agree/index.d.ts +1 -0
- package/dist/components/amount/Amount.vue.d.ts +25 -0
- package/dist/components/amount/index.d.ts +1 -0
- package/dist/components/bill/Bill.vue.d.ts +33 -0
- package/dist/components/bill/index.d.ts +1 -0
- package/dist/components/button/Button.vue.d.ts +38 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/captcha/Captcha.vue.d.ts +76 -0
- package/dist/components/captcha/index.d.ts +1 -0
- package/dist/components/cashier/Cashier.vue.d.ts +101 -0
- package/dist/components/cashier/CashierChannel.vue.d.ts +54 -0
- package/dist/components/cashier/CashierChannelButton.vue.d.ts +14 -0
- package/dist/components/cashier/CashierChannelItem.vue.d.ts +30 -0
- package/dist/components/cashier/index.d.ts +4 -0
- package/dist/components/cell-item/CellItem.vue.d.ts +38 -0
- package/dist/components/cell-item/index.d.ts +1 -0
- package/dist/components/chart/Chart.vue.d.ts +30 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/check/Check.vue.d.ts +38 -0
- package/dist/components/check/CheckBox.vue.d.ts +31 -0
- package/dist/components/check/CheckGroup.vue.d.ts +27 -0
- package/dist/components/check/CheckList.vue.d.ts +58 -0
- package/dist/components/check/index.d.ts +6 -0
- package/dist/components/check/shared.d.ts +52 -0
- package/dist/components/check-base/CheckBoxBase.vue.d.ts +25 -0
- package/dist/components/check-base/index.d.ts +1 -0
- package/dist/components/codebox/Codebox.vue.d.ts +58 -0
- package/dist/components/codebox/index.d.ts +1 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +70 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/detail-item/DetailItem.vue.d.ts +22 -0
- package/dist/components/detail-item/index.d.ts +1 -0
- package/dist/components/dialog/Dialog.vue.d.ts +78 -0
- package/dist/components/dialog/index.d.ts +40 -0
- package/dist/components/drop-menu/DropMenu.vue.d.ts +55 -0
- package/dist/components/drop-menu/index.d.ts +1 -0
- package/dist/components/field/Field.vue.d.ts +30 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field-item/FieldItem.vue.d.ts +42 -0
- package/dist/components/field-item/index.d.ts +1 -0
- package/dist/components/icon/Icon.vue.d.ts +20 -0
- package/dist/components/icon/default-svg-list.d.ts +2 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icon/load-sprite.d.ts +6 -0
- package/dist/components/image-reader/ImageReader.vue.d.ts +46 -0
- package/dist/components/image-reader/index.d.ts +1 -0
- package/dist/components/image-viewer/ImageViewer.vue.d.ts +25 -0
- package/dist/components/image-viewer/index.d.ts +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/input-item/InputItem.vue.d.ts +97 -0
- package/dist/components/input-item/cursor.d.ts +7 -0
- package/dist/components/input-item/index.d.ts +1 -0
- package/dist/components/landscape/Landscape.vue.d.ts +38 -0
- package/dist/components/landscape/index.d.ts +1 -0
- package/dist/components/license-plate/LicensePlate.vue.d.ts +32 -0
- package/dist/components/license-plate/LicensePlateInput.vue.d.ts +14 -0
- package/dist/components/license-plate/LicensePlateKeyboard.vue.d.ts +30 -0
- package/dist/components/license-plate/index.d.ts +3 -0
- package/dist/components/notice-bar/NoticeBar.vue.d.ts +44 -0
- package/dist/components/notice-bar/index.d.ts +1 -0
- package/dist/components/number-keyboard/KeyboardBoard.vue.d.ts +33 -0
- package/dist/components/number-keyboard/KeyboardKey.vue.d.ts +16 -0
- package/dist/components/number-keyboard/NumberKeyboard.vue.d.ts +59 -0
- package/dist/components/number-keyboard/index.d.ts +3 -0
- package/dist/components/picker/Picker.vue.d.ts +64 -0
- package/dist/components/picker/PickerColumn.vue.d.ts +64 -0
- package/dist/components/picker/index.d.ts +3 -0
- package/dist/components/popup/Popup.vue.d.ts +50 -0
- package/dist/components/popup/PopupTitleBar.vue.d.ts +41 -0
- package/dist/components/popup/index.d.ts +2 -0
- package/dist/components/progress/Progress.vue.d.ts +39 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/radio/Radio.vue.d.ts +39 -0
- package/dist/components/radio/RadioBox.vue.d.ts +31 -0
- package/dist/components/radio/RadioGroup.vue.d.ts +24 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio-list/RadioList.vue.d.ts +72 -0
- package/dist/components/radio-list/index.d.ts +2 -0
- package/dist/components/result-page/ResultPage.vue.d.ts +28 -0
- package/dist/components/result-page/index.d.ts +1 -0
- package/dist/components/ruler/Ruler.vue.d.ts +34 -0
- package/dist/components/ruler/index.d.ts +1 -0
- package/dist/components/scroll-view/ScrollView.vue.d.ts +84 -0
- package/dist/components/scroll-view/ScrollViewMore.vue.d.ts +12 -0
- package/dist/components/scroll-view/ScrollViewRefresh.vue.d.ts +20 -0
- package/dist/components/scroll-view/index.d.ts +3 -0
- package/dist/components/selector/Selector.vue.d.ts +88 -0
- package/dist/components/selector/index.d.ts +2 -0
- package/dist/components/skeleton/Skeleton.vue.d.ts +30 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/slider/Slider.vue.d.ts +24 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/stepper/Stepper.vue.d.ts +32 -0
- package/dist/components/stepper/index.d.ts +1 -0
- package/dist/components/steps/Steps.vue.d.ts +56 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/swiper/Swiper.vue.d.ts +57 -0
- package/dist/components/swiper/SwiperItem.vue.d.ts +26 -0
- package/dist/components/swiper/index.d.ts +2 -0
- package/dist/components/switch/Switch.vue.d.ts +16 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/tab-picker/TabPicker.vue.d.ts +78 -0
- package/dist/components/tab-picker/index.d.ts +1 -0
- package/dist/components/tabs/TabBar.vue.d.ts +50 -0
- package/dist/components/tabs/TabPane.vue.d.ts +31 -0
- package/dist/components/tabs/Tabs.vue.d.ts +34 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tag/Tag.vue.d.ts +39 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/textarea-item/TextareaItem.vue.d.ts +80 -0
- package/dist/components/textarea-item/index.d.ts +1 -0
- package/dist/components/tip/Tip.vue.d.ts +98 -0
- package/dist/components/tip/TipContent.vue.d.ts +33 -0
- package/dist/components/tip/index.d.ts +2 -0
- package/dist/components/toast/Toast.vue.d.ts +45 -0
- package/dist/components/toast/index.d.ts +129 -0
- package/dist/components/transition/Transition.vue.d.ts +13 -0
- package/dist/components/transition/index.d.ts +1 -0
- package/dist/components/water-mark/WaterMark.vue.d.ts +35 -0
- package/dist/components/water-mark/index.d.ts +1 -0
- package/dist/date-picker.cjs +1 -0
- package/dist/date-picker.d.ts +1 -0
- package/dist/date-picker.js +2 -0
- package/dist/dialog-0-E4Vyc-.cjs +1 -0
- package/dist/dialog-DHIZ2SMK.js +227 -0
- package/dist/dialog.cjs +1 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dialog.js +2 -0
- package/dist/field-item.cjs +1 -0
- package/dist/field-item.d.ts +1 -0
- package/dist/field-item.js +2 -0
- package/dist/field.cjs +1 -0
- package/dist/field.d.ts +1 -0
- package/dist/field.js +2 -0
- package/dist/icon.cjs +1 -0
- package/dist/icon.d.ts +1 -0
- package/dist/icon.js +2 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.js +2669 -0
- package/dist/input-item.cjs +1 -0
- package/dist/input-item.d.ts +1 -0
- package/dist/input-item.js +2 -0
- package/dist/notice-bar.cjs +1 -0
- package/dist/notice-bar.d.ts +1 -0
- package/dist/notice-bar.js +2 -0
- package/dist/number-keyboard.cjs +1 -0
- package/dist/number-keyboard.d.ts +1 -0
- package/dist/number-keyboard.js +2 -0
- package/dist/picker.cjs +1 -0
- package/dist/picker.d.ts +1 -0
- package/dist/picker.js +2 -0
- package/dist/popup.cjs +1 -0
- package/dist/popup.d.ts +1 -0
- package/dist/popup.js +3 -0
- package/dist/progress.cjs +1 -0
- package/dist/progress.d.ts +1 -0
- package/dist/progress.js +2 -0
- package/dist/radio-list.cjs +1 -0
- package/dist/radio-list.d.ts +1 -0
- package/dist/radio-list.js +2 -0
- package/dist/radio.cjs +1 -0
- package/dist/radio.d.ts +1 -0
- package/dist/radio.js +3 -0
- package/dist/scroll-view.cjs +1 -0
- package/dist/scroll-view.d.ts +1 -0
- package/dist/scroll-view.js +2 -0
- package/dist/shared-BtSkmaWC.js +37 -0
- package/dist/shared-k9cbQbvK.cjs +1 -0
- package/dist/skeleton.cjs +1 -0
- package/dist/skeleton.d.ts +1 -0
- package/dist/skeleton.js +2 -0
- package/dist/slider.cjs +1 -0
- package/dist/slider.d.ts +1 -0
- package/dist/slider.js +2 -0
- package/dist/stepper.cjs +1 -0
- package/dist/stepper.d.ts +1 -0
- package/dist/stepper.js +2 -0
- package/dist/swiper.cjs +1 -0
- package/dist/swiper.d.ts +1 -0
- package/dist/swiper.js +2 -0
- package/dist/switch.cjs +1 -0
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +2 -0
- package/dist/tag.cjs +1 -0
- package/dist/tag.d.ts +1 -0
- package/dist/tag.js +2 -0
- package/dist/tip.cjs +1 -0
- package/dist/tip.d.ts +1 -0
- package/dist/tip.js +2 -0
- package/dist/toast-CAeyMc5r.cjs +1 -0
- package/dist/toast-DX-RoB7Q.js +146 -0
- package/dist/toast.cjs +1 -0
- package/dist/toast.d.ts +2 -0
- package/dist/toast.js +2 -0
- package/package.json +195 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./InputItem-EJ4Y3tpU.cjs");exports.CuInputItem=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/input-item';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./NoticeBar-DSf_EjTL.cjs");exports.CuNoticeBar=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/notice-bar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./NumberKeyboard-BX0c0l2r.cjs");exports.CuNumberKey=e.r,exports.CuNumberKeyboard=e.t,exports.CuNumberKeyboardContainer=e.n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/number-keyboard';
|
package/dist/picker.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Picker-D-TPtSxf.cjs");exports.CuPicker=e.t,exports.CuPickerColumn=e.n;
|
package/dist/picker.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/picker';
|
package/dist/picker.js
ADDED
package/dist/popup.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Popup-Cm4BuaOo.cjs"),t=require("./PopupTitleBar-B4vwxKC7.cjs");exports.CuPopup=e.t,exports.CuPopupTitleBar=t.t;
|
package/dist/popup.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/popup';
|
package/dist/popup.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Progress-DukssNvl.cjs");exports.CuProgress=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/progress';
|
package/dist/progress.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./RadioList-upQgua8Z.cjs");exports.CuRadioList=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/radio-list';
|
package/dist/radio.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Radio-ZHivLdvi.cjs"),t=require("./RadioGroup-BR_jSDR4.cjs");exports.CuRadio=e.t,exports.CuRadioBox=t.n,exports.CuRadioGroup=t.t;
|
package/dist/radio.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/radio';
|
package/dist/radio.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./ScrollViewMore-BWph-i1-.cjs");exports.CuScrollView=e.r,exports.CuScrollViewMore=e.t,exports.CuScrollViewRefresh=e.n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/scroll-view';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { computed as e, inject as t, onBeforeUnmount as n, onMounted as r } from "vue";
|
|
2
|
+
//#region src/components/check/shared.ts
|
|
3
|
+
function i(i, a) {
|
|
4
|
+
let o = t("rootGroup", null), s = e(() => i.modelValue === i.name || !!o && o.value.indexOf(i.name) !== -1), c = {
|
|
5
|
+
get name() {
|
|
6
|
+
return i.name;
|
|
7
|
+
},
|
|
8
|
+
get disabled() {
|
|
9
|
+
return i.disabled;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
r(() => {
|
|
13
|
+
o?.register(c);
|
|
14
|
+
}), n(() => {
|
|
15
|
+
o?.unregister(c);
|
|
16
|
+
});
|
|
17
|
+
function l() {
|
|
18
|
+
i.disabled || (typeof i.name == "boolean" ? a("update:modelValue", !i.modelValue) : s.value ? (a("update:modelValue", ""), o && o.uncheck(i.name)) : (a("update:modelValue", i.name), o && o.check(i.name)));
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
rootGroup: o,
|
|
22
|
+
isChecked: s,
|
|
23
|
+
onClick: l
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function a(n, r) {
|
|
27
|
+
let i = t("rootGroup", null), a = e(() => n.modelValue === n.name || !!i && i.value === n.name);
|
|
28
|
+
function o() {
|
|
29
|
+
n.disabled || (r("update:modelValue", n.name), i && i.check(n.name));
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
isChecked: a,
|
|
33
|
+
onClick: o
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { a as n, i as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("vue");function t(t,n){let r=(0,e.inject)(`rootGroup`,null),i=(0,e.computed)(()=>t.modelValue===t.name||!!r&&r.value.indexOf(t.name)!==-1),a={get name(){return t.name},get disabled(){return t.disabled}};(0,e.onMounted)(()=>{r?.register(a)}),(0,e.onBeforeUnmount)(()=>{r?.unregister(a)});function o(){t.disabled||(typeof t.name==`boolean`?n(`update:modelValue`,!t.modelValue):i.value?(n(`update:modelValue`,``),r&&r.uncheck(t.name)):(n(`update:modelValue`,t.name),r&&r.check(t.name)))}return{rootGroup:r,isChecked:i,onClick:o}}function n(t,n){let r=(0,e.inject)(`rootGroup`,null),i=(0,e.computed)(()=>t.modelValue===t.name||!!r&&r.value===t.name);function a(){t.disabled||(n(`update:modelValue`,t.name),r&&r.check(t.name))}return{isChecked:i,onClick:a}}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Skeleton--SCiydNl.cjs");exports.CuSkeleton=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/skeleton';
|
package/dist/skeleton.js
ADDED
package/dist/slider.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Slider-D3wrE8hn.cjs");exports.CuSlider=e.t;
|
package/dist/slider.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/slider';
|
package/dist/slider.js
ADDED
package/dist/stepper.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Stepper-BJr4I6_8.cjs");exports.CuStepper=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/stepper';
|
package/dist/stepper.js
ADDED
package/dist/swiper.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./SwiperItem-B6TgjCsM.cjs");exports.CuSwiper=e.n,exports.CuSwiperItem=e.t;
|
package/dist/swiper.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/swiper';
|
package/dist/swiper.js
ADDED
package/dist/switch.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Switch-BVPjF8CM.cjs");exports.CuSwitch=e.t;
|
package/dist/switch.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/switch';
|
package/dist/switch.js
ADDED
package/dist/tag.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Tag-CPv77lC8.cjs");exports.CuTag=e.t;
|
package/dist/tag.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/tag';
|
package/dist/tag.js
ADDED
package/dist/tip.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Tip-C3brAF9N.cjs");exports.CuTip=e.t,exports.CuTipContent=e.n;
|
package/dist/tip.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/tip';
|
package/dist/tip.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Icon-jaEPn7d7.cjs"),t=require("./Popup-Cm4BuaOo.cjs");let n=require("vue");var r=[`textContent`],i=(0,n.defineComponent)({name:`cu-toast`,__name:`Toast`,props:{icon:{default:``},iconSvg:{type:Boolean,default:!1},content:{default:``},duration:{default:0},position:{default:`center`},hasMask:{type:Boolean,default:!1},square:{type:Boolean,default:!1}},emits:[`show`,`hide`],setup(i,{expose:a,emit:o}){let s=i,c=o,l=(0,n.ref)(!1),u=null;(0,n.onBeforeUnmount)(()=>{u&&clearTimeout(u)});function d(){c(`show`)}function f(){c(`hide`)}function p(){u&&clearTimeout(u),l.value&&s.duration&&(u=setTimeout(()=>{h()},s.duration))}function m(){l.value=!0,p()}function h(){l.value=!1}return a({visible:l,show:m,hide:h,fire:p}),(a,o)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{class:(0,n.normalizeClass)([`cu-toast`,[i.position]])},[(0,n.createVNode)(t.t,{"model-value":l.value,"has-mask":i.hasMask,"mask-closable":!1,onShow:d,onHide:f},{default:(0,n.withCtx)(()=>[a.$slots.default?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:0,class:(0,n.normalizeClass)([`cu-toast-content`,{square:i.square}])},[(0,n.renderSlot)(a.$slots,`default`)],2)):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:1,class:(0,n.normalizeClass)([`cu-toast-content`,{square:i.square}])},[i.icon?((0,n.openBlock)(),(0,n.createBlock)(e.t,{key:0,name:i.icon,size:`lg`,svg:i.iconSvg},null,8,[`name`,`svg`])):(0,n.createCommentVNode)(``,!0),i.content?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:1,class:`cu-toast-text`,textContent:(0,n.toDisplayString)(i.content)},null,8,r)):(0,n.createCommentVNode)(``,!0)],2))]),_:3},8,[`model-value`,`has-mask`])],2))}}),a=null;function o(e){let t=e.parentNode??document.body;if(!a||a.container.parentNode!==t){let e=document.createElement(`div`);t.appendChild(e),a={container:e,vnode:(0,n.createVNode)(i,{}),vm:null}}a.vnode=(0,n.createVNode)(i,{content:e.content??``,icon:e.icon??``,iconSvg:e.iconSvg??!1,duration:e.duration??3e3,position:e.position??`center`,hasMask:e.hasMask??!1,square:e.square??!1}),(0,n.render)(a.vnode,a.container);let r=a.vnode.component?.exposed;return a.vm={get visible(){return r.visible.value},show:()=>r.show(),hide:()=>r.hide()},a.vm}var s=(e={})=>{let t=o(e);return t.show(),t};s.hide=()=>{a&&a.vm.visible&&a.vm.hide()},s.info=(e=``,t=3e3,n=!1,r=document.body,i=!1)=>s({icon:``,content:e,duration:t,hasMask:n,parentNode:r,square:i}),s.succeed=(e=``,t=3e3,n=!1,r=document.body,i=!1)=>s({icon:`success`,content:e,duration:t,hasMask:n,parentNode:r,square:i}),s.failed=(e=``,t=3e3,n=!1,r=document.body,i=!1)=>s({icon:`fail`,content:e,duration:t,hasMask:n,parentNode:r,square:i}),s.loading=(e=``,t=0,n=!0,r=document.body,i=!1)=>s({icon:`spinner`,iconSvg:!0,content:e,duration:t,hasMask:n,parentNode:r,square:i}),s.component=i,Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { t as e } from "./Icon-dWGSK6Ou.js";
|
|
2
|
+
import { t } from "./Popup-DPYBBL95.js";
|
|
3
|
+
import { createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, normalizeClass as s, onBeforeUnmount as c, openBlock as l, ref as u, render as d, renderSlot as f, toDisplayString as p, withCtx as m } from "vue";
|
|
4
|
+
//#region src/components/toast/Toast.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var h = ["textContent"], g = /* @__PURE__ */ o({
|
|
6
|
+
name: "cu-toast",
|
|
7
|
+
__name: "Toast",
|
|
8
|
+
props: {
|
|
9
|
+
icon: { default: "" },
|
|
10
|
+
iconSvg: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
},
|
|
14
|
+
content: { default: "" },
|
|
15
|
+
duration: { default: 0 },
|
|
16
|
+
position: { default: "center" },
|
|
17
|
+
hasMask: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
square: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["show", "hide"],
|
|
27
|
+
setup(o, { expose: d, emit: g }) {
|
|
28
|
+
let _ = o, v = g, y = u(!1), b = null;
|
|
29
|
+
c(() => {
|
|
30
|
+
b && clearTimeout(b);
|
|
31
|
+
});
|
|
32
|
+
function x() {
|
|
33
|
+
v("show");
|
|
34
|
+
}
|
|
35
|
+
function S() {
|
|
36
|
+
v("hide");
|
|
37
|
+
}
|
|
38
|
+
function C() {
|
|
39
|
+
b && clearTimeout(b), y.value && _.duration && (b = setTimeout(() => {
|
|
40
|
+
T();
|
|
41
|
+
}, _.duration));
|
|
42
|
+
}
|
|
43
|
+
function w() {
|
|
44
|
+
y.value = !0, C();
|
|
45
|
+
}
|
|
46
|
+
function T() {
|
|
47
|
+
y.value = !1;
|
|
48
|
+
}
|
|
49
|
+
return d({
|
|
50
|
+
visible: y,
|
|
51
|
+
show: w,
|
|
52
|
+
hide: T,
|
|
53
|
+
fire: C
|
|
54
|
+
}), (c, u) => (l(), i("div", { class: s(["cu-toast", [o.position]]) }, [a(t, {
|
|
55
|
+
"model-value": y.value,
|
|
56
|
+
"has-mask": o.hasMask,
|
|
57
|
+
"mask-closable": !1,
|
|
58
|
+
onShow: x,
|
|
59
|
+
onHide: S
|
|
60
|
+
}, {
|
|
61
|
+
default: m(() => [c.$slots.default ? (l(), i("div", {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: s(["cu-toast-content", { square: o.square }])
|
|
64
|
+
}, [f(c.$slots, "default")], 2)) : (l(), i("div", {
|
|
65
|
+
key: 1,
|
|
66
|
+
class: s(["cu-toast-content", { square: o.square }])
|
|
67
|
+
}, [o.icon ? (l(), n(e, {
|
|
68
|
+
key: 0,
|
|
69
|
+
name: o.icon,
|
|
70
|
+
size: "lg",
|
|
71
|
+
svg: o.iconSvg
|
|
72
|
+
}, null, 8, ["name", "svg"])) : r("", !0), o.content ? (l(), i("div", {
|
|
73
|
+
key: 1,
|
|
74
|
+
class: "cu-toast-text",
|
|
75
|
+
textContent: p(o.content)
|
|
76
|
+
}, null, 8, h)) : r("", !0)], 2))]),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 8, ["model-value", "has-mask"])], 2));
|
|
79
|
+
}
|
|
80
|
+
}), _ = null;
|
|
81
|
+
function v(e) {
|
|
82
|
+
let t = e.parentNode ?? document.body;
|
|
83
|
+
if (!_ || _.container.parentNode !== t) {
|
|
84
|
+
let e = document.createElement("div");
|
|
85
|
+
t.appendChild(e), _ = {
|
|
86
|
+
container: e,
|
|
87
|
+
vnode: a(g, {}),
|
|
88
|
+
vm: null
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
_.vnode = a(g, {
|
|
92
|
+
content: e.content ?? "",
|
|
93
|
+
icon: e.icon ?? "",
|
|
94
|
+
iconSvg: e.iconSvg ?? !1,
|
|
95
|
+
duration: e.duration ?? 3e3,
|
|
96
|
+
position: e.position ?? "center",
|
|
97
|
+
hasMask: e.hasMask ?? !1,
|
|
98
|
+
square: e.square ?? !1
|
|
99
|
+
}), d(_.vnode, _.container);
|
|
100
|
+
let n = _.vnode.component?.exposed;
|
|
101
|
+
return _.vm = {
|
|
102
|
+
get visible() {
|
|
103
|
+
return n.visible.value;
|
|
104
|
+
},
|
|
105
|
+
show: () => n.show(),
|
|
106
|
+
hide: () => n.hide()
|
|
107
|
+
}, _.vm;
|
|
108
|
+
}
|
|
109
|
+
var y = (e = {}) => {
|
|
110
|
+
let t = v(e);
|
|
111
|
+
return t.show(), t;
|
|
112
|
+
};
|
|
113
|
+
y.hide = () => {
|
|
114
|
+
_ && _.vm.visible && _.vm.hide();
|
|
115
|
+
}, y.info = (e = "", t = 3e3, n = !1, r = document.body, i = !1) => y({
|
|
116
|
+
icon: "",
|
|
117
|
+
content: e,
|
|
118
|
+
duration: t,
|
|
119
|
+
hasMask: n,
|
|
120
|
+
parentNode: r,
|
|
121
|
+
square: i
|
|
122
|
+
}), y.succeed = (e = "", t = 3e3, n = !1, r = document.body, i = !1) => y({
|
|
123
|
+
icon: "success",
|
|
124
|
+
content: e,
|
|
125
|
+
duration: t,
|
|
126
|
+
hasMask: n,
|
|
127
|
+
parentNode: r,
|
|
128
|
+
square: i
|
|
129
|
+
}), y.failed = (e = "", t = 3e3, n = !1, r = document.body, i = !1) => y({
|
|
130
|
+
icon: "fail",
|
|
131
|
+
content: e,
|
|
132
|
+
duration: t,
|
|
133
|
+
hasMask: n,
|
|
134
|
+
parentNode: r,
|
|
135
|
+
square: i
|
|
136
|
+
}), y.loading = (e = "", t = 0, n = !0, r = document.body, i = !1) => y({
|
|
137
|
+
icon: "spinner",
|
|
138
|
+
iconSvg: !0,
|
|
139
|
+
content: e,
|
|
140
|
+
duration: t,
|
|
141
|
+
hasMask: n,
|
|
142
|
+
parentNode: r,
|
|
143
|
+
square: i
|
|
144
|
+
}), y.component = g;
|
|
145
|
+
//#endregion
|
|
146
|
+
export { g as n, y as t };
|
package/dist/toast.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./toast-CAeyMc5r.cjs");exports.CuToast=e.n,exports.default=e.t;
|
package/dist/toast.d.ts
ADDED
package/dist/toast.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,198 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "centui",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "A Vue 3 based mobile UI toolkit, the successor of mand-mobile v2",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"main": "./dist/index.cjs",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./es/action-sheet": {
|
|
18
|
+
"types": "./dist/action-sheet.d.ts",
|
|
19
|
+
"import": "./dist/action-sheet.js",
|
|
20
|
+
"require": "./dist/action-sheet.cjs"
|
|
21
|
+
},
|
|
22
|
+
"./es/activity-indicator": {
|
|
23
|
+
"types": "./dist/activity-indicator.d.ts",
|
|
24
|
+
"import": "./dist/activity-indicator.js",
|
|
25
|
+
"require": "./dist/activity-indicator.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./es/agree": {
|
|
28
|
+
"types": "./dist/agree.d.ts",
|
|
29
|
+
"import": "./dist/agree.js",
|
|
30
|
+
"require": "./dist/agree.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./es/amount": {
|
|
33
|
+
"types": "./dist/amount.d.ts",
|
|
34
|
+
"import": "./dist/amount.js",
|
|
35
|
+
"require": "./dist/amount.cjs"
|
|
36
|
+
},
|
|
37
|
+
"./es/button": {
|
|
38
|
+
"types": "./dist/button.d.ts",
|
|
39
|
+
"import": "./dist/button.js",
|
|
40
|
+
"require": "./dist/button.cjs"
|
|
41
|
+
},
|
|
42
|
+
"./es/cell-item": {
|
|
43
|
+
"types": "./dist/cell-item.d.ts",
|
|
44
|
+
"import": "./dist/cell-item.js",
|
|
45
|
+
"require": "./dist/cell-item.cjs"
|
|
46
|
+
},
|
|
47
|
+
"./es/check": {
|
|
48
|
+
"types": "./dist/check.d.ts",
|
|
49
|
+
"import": "./dist/check.js",
|
|
50
|
+
"require": "./dist/check.cjs"
|
|
51
|
+
},
|
|
52
|
+
"./es/check-base": {
|
|
53
|
+
"types": "./dist/check-base.d.ts",
|
|
54
|
+
"import": "./dist/check-base.js",
|
|
55
|
+
"require": "./dist/check-base.cjs"
|
|
56
|
+
},
|
|
57
|
+
"./es/codebox": {
|
|
58
|
+
"types": "./dist/codebox.d.ts",
|
|
59
|
+
"import": "./dist/codebox.js",
|
|
60
|
+
"require": "./dist/codebox.cjs"
|
|
61
|
+
},
|
|
62
|
+
"./es/date-picker": {
|
|
63
|
+
"types": "./dist/date-picker.d.ts",
|
|
64
|
+
"import": "./dist/date-picker.js",
|
|
65
|
+
"require": "./dist/date-picker.cjs"
|
|
66
|
+
},
|
|
67
|
+
"./es/dialog": {
|
|
68
|
+
"types": "./dist/dialog.d.ts",
|
|
69
|
+
"import": "./dist/dialog.js",
|
|
70
|
+
"require": "./dist/dialog.cjs"
|
|
71
|
+
},
|
|
72
|
+
"./es/field": {
|
|
73
|
+
"types": "./dist/field.d.ts",
|
|
74
|
+
"import": "./dist/field.js",
|
|
75
|
+
"require": "./dist/field.cjs"
|
|
76
|
+
},
|
|
77
|
+
"./es/field-item": {
|
|
78
|
+
"types": "./dist/field-item.d.ts",
|
|
79
|
+
"import": "./dist/field-item.js",
|
|
80
|
+
"require": "./dist/field-item.cjs"
|
|
81
|
+
},
|
|
82
|
+
"./es/icon": {
|
|
83
|
+
"types": "./dist/icon.d.ts",
|
|
84
|
+
"import": "./dist/icon.js",
|
|
85
|
+
"require": "./dist/icon.cjs"
|
|
86
|
+
},
|
|
87
|
+
"./es/input-item": {
|
|
88
|
+
"types": "./dist/input-item.d.ts",
|
|
89
|
+
"import": "./dist/input-item.js",
|
|
90
|
+
"require": "./dist/input-item.cjs"
|
|
91
|
+
},
|
|
92
|
+
"./es/notice-bar": {
|
|
93
|
+
"types": "./dist/notice-bar.d.ts",
|
|
94
|
+
"import": "./dist/notice-bar.js",
|
|
95
|
+
"require": "./dist/notice-bar.cjs"
|
|
96
|
+
},
|
|
97
|
+
"./es/number-keyboard": {
|
|
98
|
+
"types": "./dist/number-keyboard.d.ts",
|
|
99
|
+
"import": "./dist/number-keyboard.js",
|
|
100
|
+
"require": "./dist/number-keyboard.cjs"
|
|
101
|
+
},
|
|
102
|
+
"./es/picker": {
|
|
103
|
+
"types": "./dist/picker.d.ts",
|
|
104
|
+
"import": "./dist/picker.js",
|
|
105
|
+
"require": "./dist/picker.cjs"
|
|
106
|
+
},
|
|
107
|
+
"./es/popup": {
|
|
108
|
+
"types": "./dist/popup.d.ts",
|
|
109
|
+
"import": "./dist/popup.js",
|
|
110
|
+
"require": "./dist/popup.cjs"
|
|
111
|
+
},
|
|
112
|
+
"./es/progress": {
|
|
113
|
+
"types": "./dist/progress.d.ts",
|
|
114
|
+
"import": "./dist/progress.js",
|
|
115
|
+
"require": "./dist/progress.cjs"
|
|
116
|
+
},
|
|
117
|
+
"./es/radio": {
|
|
118
|
+
"types": "./dist/radio.d.ts",
|
|
119
|
+
"import": "./dist/radio.js",
|
|
120
|
+
"require": "./dist/radio.cjs"
|
|
121
|
+
},
|
|
122
|
+
"./es/radio-list": {
|
|
123
|
+
"types": "./dist/radio-list.d.ts",
|
|
124
|
+
"import": "./dist/radio-list.js",
|
|
125
|
+
"require": "./dist/radio-list.cjs"
|
|
126
|
+
},
|
|
127
|
+
"./es/scroll-view": {
|
|
128
|
+
"types": "./dist/scroll-view.d.ts",
|
|
129
|
+
"import": "./dist/scroll-view.js",
|
|
130
|
+
"require": "./dist/scroll-view.cjs"
|
|
131
|
+
},
|
|
132
|
+
"./es/skeleton": {
|
|
133
|
+
"types": "./dist/skeleton.d.ts",
|
|
134
|
+
"import": "./dist/skeleton.js",
|
|
135
|
+
"require": "./dist/skeleton.cjs"
|
|
136
|
+
},
|
|
137
|
+
"./es/slider": {
|
|
138
|
+
"types": "./dist/slider.d.ts",
|
|
139
|
+
"import": "./dist/slider.js",
|
|
140
|
+
"require": "./dist/slider.cjs"
|
|
141
|
+
},
|
|
142
|
+
"./es/stepper": {
|
|
143
|
+
"types": "./dist/stepper.d.ts",
|
|
144
|
+
"import": "./dist/stepper.js",
|
|
145
|
+
"require": "./dist/stepper.cjs"
|
|
146
|
+
},
|
|
147
|
+
"./es/swiper": {
|
|
148
|
+
"types": "./dist/swiper.d.ts",
|
|
149
|
+
"import": "./dist/swiper.js",
|
|
150
|
+
"require": "./dist/swiper.cjs"
|
|
151
|
+
},
|
|
152
|
+
"./es/switch": {
|
|
153
|
+
"types": "./dist/switch.d.ts",
|
|
154
|
+
"import": "./dist/switch.js",
|
|
155
|
+
"require": "./dist/switch.cjs"
|
|
156
|
+
},
|
|
157
|
+
"./es/tag": {
|
|
158
|
+
"types": "./dist/tag.d.ts",
|
|
159
|
+
"import": "./dist/tag.js",
|
|
160
|
+
"require": "./dist/tag.cjs"
|
|
161
|
+
},
|
|
162
|
+
"./es/tip": {
|
|
163
|
+
"types": "./dist/tip.d.ts",
|
|
164
|
+
"import": "./dist/tip.js",
|
|
165
|
+
"require": "./dist/tip.cjs"
|
|
166
|
+
},
|
|
167
|
+
"./es/toast": {
|
|
168
|
+
"types": "./dist/toast.d.ts",
|
|
169
|
+
"import": "./dist/toast.js",
|
|
170
|
+
"require": "./dist/toast.cjs"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"files": [
|
|
174
|
+
"dist"
|
|
175
|
+
],
|
|
176
|
+
"dependencies": {
|
|
177
|
+
"@centui/core": "0.2.0"
|
|
178
|
+
},
|
|
179
|
+
"peerDependencies": {
|
|
180
|
+
"vue": "^3.4.0"
|
|
181
|
+
},
|
|
182
|
+
"devDependencies": {
|
|
183
|
+
"@centui/styles": "0.2.0",
|
|
184
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
185
|
+
"@vitest/coverage-istanbul": "^5.0.0",
|
|
186
|
+
"@vue/test-utils": "^2.4.6",
|
|
187
|
+
"vite-plugin-dts": "^5.1.0",
|
|
188
|
+
"vue": "^3.5.13",
|
|
189
|
+
"vue-tsc": "^3.0.0"
|
|
190
|
+
},
|
|
191
|
+
"scripts": {
|
|
192
|
+
"build": "vite build",
|
|
193
|
+
"typecheck": "vue-tsc --noEmit",
|
|
194
|
+
"test": "vitest run",
|
|
195
|
+
"test:coverage": "vitest run --coverage",
|
|
196
|
+
"playground": "vite playground"
|
|
197
|
+
}
|
|
6
198
|
}
|