UNPKG

@aotearoan/neon

Version:

Neon is a lightweight design library of Vue 3 components with minimal dependencies.

42 lines (41 loc) 1.03 kB
import { defineComponent as c } from "vue"; import { NeonAlertLevel as e } from "../../../../common/enums/NeonAlertLevel.es.js"; import i from "../../../presentation/icon/NeonIcon.vue.es.js"; import s from "../../../navigation/link/NeonLink.vue.es.js"; const d = c({ name: "NeonAlertContainer", components: { NeonIcon: i, NeonLink: s }, props: { modelValue: { type: Array, required: !0 }, placement: { type: String, required: !0 } }, setup(o, { emit: n }) { return { closeMessage: (r) => { n( "update:modelValue", o.modelValue.filter((t) => t.id !== r) ); }, icon: (r) => { switch (r) { case e.Info: return "info-circle"; case e.Success: return "check-circle"; case e.Warn: return "exclamation-circle"; case e.Error: return "times-circle"; } } }; } }); export { d as default }; //# sourceMappingURL=NeonAlertContainer.es.js.map