@dialpad/dialtone
Version:
Dialpad's Dialtone design system monorepo
48 lines (47 loc) • 1.25 kB
JavaScript
import { t as e } from "../../_plugin-vue_export-helper-BTgDAbhb.js";
import t from "../stack/stack.js";
import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, normalizeClass as o, openBlock as s, renderSlot as c, resolveComponent as l, toDisplayString as u, withCtx as d } from "vue";
//#region components/dropdown/dropdown_list.vue
var f = {
compatConfig: { MODE: 3 },
name: "DtDropdownList",
components: { DtStack: t },
props: {
heading: {
type: String,
default: ""
},
listClass: {
type: [
String,
Array,
Object
],
default: ""
}
}
};
function p(e, t, f, p, m, h) {
let g = l("dt-stack");
return s(), i("li", null, [f.heading ? (s(), n(g, {
key: 0,
direction: "row",
align: "center",
class: "dt-dropdown-list--header d-fs12 d-fc-black-400 d-fw-bold d-lh4 d-py4 d-px12"
}, {
default: d(() => [a("span", null, u(f.heading), 1)]),
_: 1
})) : r("", !0), a("ul", {
class: o([
"d-ps-relative",
"d-stack2",
"d-px0",
f.listClass
]),
"data-qa": "dt-dropdown-list-wrapper"
}, [c(e.$slots, "default")], 2)]);
}
var m = /* @__PURE__ */ e(f, [["render", p]]);
//#endregion
export { m as default };
//# sourceMappingURL=dropdown-list.js.map