@dialpad/dialtone
Version:
Dialpad's Dialtone design system monorepo
37 lines (36 loc) • 1.22 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue2 = require("@dialpad/dialtone-icons/vue2");
const illustration_constants = require("./illustration_constants.cjs");
const _pluginVue2_normalizer = require("../../_virtual/_plugin-vue2_normalizer.cjs");
const _sfc_main = {
name: "DtIllustration",
props: {
/**
* The illustration name in kebab-case
*/
name: {
type: String,
required: true,
validator: (name) => illustration_constants.ILLUSTRATION_NAMES.includes(name)
}
},
computed: {
illustration() {
return vue2.illustrations[`./src/illustrations/${this.name}.vue`];
}
}
};
var _sfc_render = function render() {
var _vm = this, _c = _vm._self._c;
return _vm.illustration ? _c(_vm.illustration, { tag: "component", attrs: { "data-qa": _vm.$attrs["data-qa"] ?? "dt-illustration" } }) : _vm._e();
};
var _sfc_staticRenderFns = [];
var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.default(
_sfc_main,
_sfc_render,
_sfc_staticRenderFns
);
const illustration = __component__.exports;
exports.default = illustration;
//# sourceMappingURL=illustration.vue.cjs.map