UNPKG

@aotearoan/neon

Version:

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

3 lines (2 loc) 1.3 kB
"use strict";const d=require("./NeonSelectableCard.cjs.js"),e=require("vue"),a=require("../../../_virtual/_plugin-vue_export-helper.cjs.js");function i(o,n,p,u,b,v){const s=e.resolveComponent("neon-switch"),r=e.resolveComponent("neon-card-header"),t=e.resolveComponent("neon-card");return e.openBlock(),e.createBlock(t,{class:e.normalizeClass([[`neon-selectable-card--${o.color}`,{"neon-selectable-card--selected":o.modelValue},{"neon-selectable-card--disabled":o.disabled}],"neon-selectable-card"]),"horizontal-borders":!1,"no-break":!0,size:o.size,orientation:"horizontal",tabindex:"0",onClick:n[1]||(n[1]=l=>o.clicked()),onKeydown:[n[2]||(n[2]=e.withKeys(e.withModifiers(l=>o.clicked(),["stop","prevent"]),["enter"])),n[3]||(n[3]=e.withKeys(e.withModifiers(l=>o.clicked(),["stop","prevent"]),["space"]))]},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s,{color:o.color,disabled:o.disabled,"model-value":o.modelValue,size:o.size,class:"neon-selectable-card__checkbox","switch-style":"checkbox","onUpdate:modelValue":n[0]||(n[0]=l=>o.clicked())},null,8,["color","disabled","model-value","size"])]),_:1}),e.renderSlot(o.$slots,"default")]),_:3},8,["class","size"])}const c=a(d,[["render",i]]);module.exports=c; //# sourceMappingURL=NeonSelectableCard.vue.cjs.js.map