vue-toastify
Version:
<p align="center">Simple and dependency-free notification plugin.</p>
44 lines (43 loc) • 991 B
JavaScript
import { reactive as o, readonly as s } from "vue";
/*! ================================
vue-toastify v2.1.0
(c) 2019-present Nandor Kraszlan
Released under MIT License
================================== */
const a = o({
singular: !1,
withBackdrop: !1,
backdrop: "rgba(0, 0, 0, 0.2)",
position: "bottom-right",
defaultTitle: !0,
canTimeout: !0,
pauseOnHover: !1,
pauseOnFocusLoss: !0,
iconEnabled: !0,
draggable: !0,
dragThreshold: 0.75,
hideProgressbar: !1,
errorDuration: 8e3,
successDuration: 4e3,
warningInfoDuration: 6e3,
theme: "dark",
baseIconClass: "",
orderLatest: !0,
transition: void 0,
oneType: !1,
maxToasts: 6,
customNotifications: {},
enableHtmlInterpretation: !0
});
function n() {
return {
settings: s(a),
updateSettings: (e, r) => {
let t = {};
return typeof e == "object" && r === void 0 ? t = e : typeof e == "string" && (t = { [e]: r }), s(Object.assign(a, t));
}
};
}
export {
n as default
};