UNPKG

@dialpad/dialtone-vue

Version:

Vue component library for Dialpad's design system Dialtone

35 lines (34 loc) 852 B
import { illustrations as n } from "@dialpad/dialtone-icons/vue2"; import { ILLUSTRATION_NAMES as o } from "./illustration-constants.js"; import { n as i } from "../../_plugin-vue2_normalizer-DSLOjnn3.js"; const s = { name: "DtIllustration", props: { /** * The illustration name in kebab-case */ name: { type: String, required: !0, validator: (r) => o.includes(r) } }, computed: { illustration() { return n[`./src/illustrations/${this.name}.vue`]; } } }; var e = function() { var t = this, a = t._self._c; return t.illustration ? a(t.illustration, { tag: "component", attrs: { "data-qa": t.$attrs["data-qa"] ?? "dt-illustration" } }) : t._e(); }, l = [], u = /* @__PURE__ */ i( s, e, l ); const p = u.exports; export { p as default }; //# sourceMappingURL=illustration.js.map