@nextcloud/vue
Version:
Nextcloud vue components
43 lines (42 loc) • 1.5 kB
JavaScript
import '../assets/NcHotkeyList.css';
import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, unref, renderSlot } from "vue";
import { r as register, q as t33, a as t } from "./_l10n.mjs";
import { c as createElementId } from "./createElementId.mjs";
import { _ as _export_sfc } from "./_plugin-vue_export-helper.mjs";
register(t33);
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "NcHotkeyList",
props: {
label: { default: () => void 0 }
},
setup(__props) {
const labelId = `NcHotkeyList_${createElementId()}`;
return (_ctx, _cache) => {
return openBlock(), createElementBlock("div", {
class: normalizeClass(_ctx.$style.hotkeyList)
}, [
createElementVNode("div", {
id: labelId,
class: normalizeClass([_ctx.$style.hotkeyList__heading, { "hidden-visually": !__props.label }])
}, toDisplayString(__props.label || unref(t)("Keyboard shortcuts")), 3),
createElementVNode("ul", { "aria-labelledby": labelId }, [
renderSlot(_ctx.$slots, "default")
])
], 2);
};
}
});
const hotkeyList = "_hotkeyList_l5aVR";
const hotkeyList__heading = "_hotkeyList__heading_hiuXH";
const style0 = {
hotkeyList,
hotkeyList__heading
};
const cssModules = {
"$style": style0
};
const NcHotkeyList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
export {
NcHotkeyList as N
};
//# sourceMappingURL=NcHotkeyList.mjs.map