UNPKG

@aotearoan/neon

Version:

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

34 lines (33 loc) 699 B
import { defineComponent as c, useAttrs as i, ref as r, computed as a } from "vue"; import m from "../input/NeonInput.vue.es.js"; const k = c({ name: "NeonPassword", components: { NeonInput: m }, emits: [ /** * Emitted when the show/hide password icon is clicked * * @type {void} */ "icon-click" ], setup(p, { emit: o }) { const n = i(), t = r(!1), e = a(() => { const { iconClick: l, ...s } = n; return s; }); return { show: t, sanitizedAttributes: e, iconClicked: () => { t.value = !t.value, o("icon-click"); } }; } }); export { k as default }; //# sourceMappingURL=NeonPassword.es.js.map