import{R as C}from"./RadioGroup.keys.DchJ5ZwD.js";import{d as h,o as p,f as g,x as r,n as i,u as s,t as y,b,_ as v,y as E,N as T,r as w,c as m,a as B,w as P,e as x,i as A}from"./framework.lR6TOfHX.js";const O=["id","name","value","checked","disabled"],M=["for"],k=h({__name:"VariantButton",props:{disabled:{type:Boolean},fullWidth:{type:Boolean},id:{},label:{},modelValue:{},name:{},value:{}},emits:["input"],setup(a,{emit:d}){const e=a,n=b(),t=d;return(l,o)=>(p(),g("div",{class:i([s(n).root,{"tw-w-full":e.fullWidth}])},[r("input",{id:`${e.name}-${e.id}`,class:i(["tw-sr-only",s(n).input]),type:"radio",name:e.name,value:e.value,checked:e.modelValue===e.value,disabled:e.disabled||e.disabled,onInput:o[0]||(o[0]=u=>t("input",u))},null,42,O),r("label",{class:i(s(n).label),for:`${e.name}-${e.id}`},y(e.label),11,M)],2))}}),I="_label_1mshv_2",K="_root_1mshv_14",S="_input_1mshv_32",D={label:I,root:K,input:S},U={$style:D},z=v(k,[["__cssModules",U]]);k.__docgen={type:1,props:[{name:"disabled",global:!1,description:"Whether the input should be disabled",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[167,186]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"fullWidth",global:!1,description:"Whether the group should expand to the parent's width",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[269,289]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"id",global:!1,description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,tags:[],required:!0,type:"string | number",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[451,471]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]}},{name:"label",global:!1,description:"The description which appears to the right of the radio button",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[563,578]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"modelValue",global:!1,description:"value bound to the parent component",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[643,675]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"name",global:!1,description:'Passed to the "name" attribute of the `<input>` element.',tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[761,775]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"value",global:!1,description:"The value for the radio input.",tags:[],required:!0,type:"string",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[835,849]}],schema:"string"},{name:"key",global:!0,description:"",tags:[],required:!1,type:"PropertyKey | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65002,65020]}],schema:{kind:"enum",type:"PropertyKey | undefined",schema:["undefined","string","number","symbol"]}},{name:"ref",global:!0,description:"",tags:[],required:!1,type:"VNodeRef | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65025,65040]}],schema:{kind:"enum",type:"VNodeRef | undefined",schema:["undefined","string","Ref<any, any>",{kind:"event",type:"(ref: Element | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, ... 4 more ..., any> | null, refs: Record<...>): void",schema:[]}]}},{name:"ref_for",global:!0,description:"",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65045,65063]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"ref_key",global:!0,description:"",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65068,65085]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"class",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71969,71985]}],schema:"unknown"},{name:"style",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71990,72006]}],schema:"unknown"}],events:[{name:"input",description:"",tags:[],type:"[event: Event]",signature:'(event: "input", event: Event): void',declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[17423,17458]}],schema:["Event"]}],slots:[],exposed:[{name:"name",type:"string | undefined",description:'Passed to the "name" attribute of the `<input>` element.',declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[761,775]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"modelValue",type:"string | undefined",description:"value bound to the parent component",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[643,675]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"fullWidth",type:"boolean | undefined",description:"Whether the group should expand to the parent's width",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[269,289]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"id",type:"string | number",description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[451,471]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]}},{name:"label",type:"string | undefined",description:"The description which appears to the right of the radio button",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[563,578]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"disabled",type:"boolean | undefined",description:"Whether the input should be disabled",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[167,186]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"value",type:"string",description:"The value for the radio input.",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantButton.vue",range:[835,849]}],schema:"string"},{name:"onInput",type:"((event: Event) => any) | undefined",description:"",declarations:[],schema:{kind:"enum",type:"((event: Event) => any) | undefined",schema:["undefined",{kind:"event",type:"(event: Event): any",schema:["Event"]}]}}]};const F=["id","name","value","checked","disabled"],J=["for"],_=h({__name:"VariantChip",props:{disabled:{type:Boolean},fullWidth:{type:Boolean},id:{},label:{},modelValue:{},name:{},value:{}},emits:["input"],setup(a,{emit:d}){const e=a,n=b(),t=d;return(l,o)=>(p(),g("div",{class:i([s(n).root,{"tw-w-full":e.fullWidth}])},[r("input",{id:`${e.name}-${e.id}`,class:i(["tw-sr-only",s(n).input]),type:"radio",name:e.name,value:e.value,checked:e.modelValue===e.value,disabled:e.disabled||e.disabled,onInput:o[0]||(o[0]=u=>t("input",u))},null,42,F),r("label",{class:i(s(n).label),for:`${e.name}-${e.id}`},y(e.label),11,J)],2))}}),H="_label_vdpts_2",L="_input_vdpts_16",Q={label:H,input:L},X={$style:Q},Y=v(_,[["__cssModules",X]]);_.__docgen={type:1,props:[{name:"disabled",global:!1,description:"Whether the input should be disabled",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[167,186]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"fullWidth",global:!1,description:"Whether the group should expand to the parent's width",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[269,289]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"id",global:!1,description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,tags:[],required:!0,type:"string | number",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[451,471]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]}},{name:"label",global:!1,description:"The description which appears to the right of the radio button",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[563,578]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"modelValue",global:!1,description:"value bound to the parent component",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[643,675]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"name",global:!1,description:'Passed to the "name" attribute of the `<input>` element.',tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[761,775]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"value",global:!1,description:"The value for the radio input.",tags:[],required:!0,type:"string",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[835,849]}],schema:"string"},{name:"key",global:!0,description:"",tags:[],required:!1,type:"PropertyKey | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65002,65020]}],schema:{kind:"enum",type:"PropertyKey | undefined",schema:["undefined","string","number","symbol"]}},{name:"ref",global:!0,description:"",tags:[],required:!1,type:"VNodeRef | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65025,65040]}],schema:{kind:"enum",type:"VNodeRef | undefined",schema:["undefined","string","Ref<any, any>",{kind:"event",type:"(ref: Element | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, ... 4 more ..., any> | null, refs: Record<...>): void",schema:[]}]}},{name:"ref_for",global:!0,description:"",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65045,65063]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"ref_key",global:!0,description:"",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65068,65085]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"class",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71969,71985]}],schema:"unknown"},{name:"style",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71990,72006]}],schema:"unknown"}],events:[{name:"input",description:"",tags:[],type:"[event: Event]",signature:'(event: "input", event: Event): void',declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[17423,17458]}],schema:["Event"]}],slots:[],exposed:[{name:"name",type:"string | undefined",description:'Passed to the "name" attribute of the `<input>` element.',declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[761,775]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"modelValue",type:"string | undefined",description:"value bound to the parent component",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[643,675]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"fullWidth",type:"boolean | undefined",description:"Whether the group should expand to the parent's width",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[269,289]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"id",type:"string | number",description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[451,471]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]}},{name:"label",type:"string | undefined",description:"The description which appears to the right of the radio button",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[563,578]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"disabled",type:"boolean | undefined",description:"Whether the input should be disabled",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[167,186]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"value",type:"string",description:"The value for the radio input.",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantChip.vue",range:[835,849]}],schema:"string"},{name:"onInput",type:"((event: Event) => any) | undefined",description:"",declarations:[],schema:{kind:"enum",type:"((event: Event) => any) | undefined",schema:["undefined",{kind:"event",type:"(event: Event): any",schema:["Event"]}]}}]};const Z=["id","name","value","checked","disabled"],j=["for"],R=h({__name:"VariantRadio",props:{disabled:{type:Boolean},fullWidth:{type:Boolean},id:{},label:{},modelValue:{},name:{},value:{}},emits:["input"],setup(a,{emit:d}){const e=a,n=b(),t=d;return(l,o)=>(p(),g("div",{class:i(["tw-flex",[s(n).root,{"tw-w-full":e.fullWidth}]])},[r("input",{id:`${e.name}-${e.id}`,class:i(s(n).input),type:"radio",name:e.name,value:e.value,checked:e.modelValue===e.value,disabled:e.disabled,onInput:o[0]||(o[0]=u=>t("input",u))},null,42,Z),E(r("label",{class:i([s(n).label,{"tw-text-ice-500":e.disabled}]),for:`${e.name}-${e.id}`},y(e.label),11,j),[[T,e.label]])],2))}}),G="_label_kw8hn_2",ee="_input_kw8hn_9",ne={label:G,input:ee},te={$style:ne},ae=v(R,[["__cssModules",te]]);R.__docgen={type:1,props:[{name:"disabled",global:!1,description:"Whether the input should be disabled",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[167,186]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"fullWidth",global:!1,description:"Whether the group should expand to the parent's width",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[269,289]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"id",global:!1,description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,tags:[],required:!0,type:"string | number",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[451,471]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]}},{name:"label",global:!1,description:"The description which appears to the right of the radio button",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[563,578]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"modelValue",global:!1,description:"value bound to the parent component",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[643,675]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"name",global:!1,description:'Passed to the "name" attribute of the `<input>` element.',tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[761,775]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"value",global:!1,description:"The value for the radio input.",tags:[],required:!0,type:"string",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[835,849]}],schema:"string"},{name:"key",global:!0,description:"",tags:[],required:!1,type:"PropertyKey | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65002,65020]}],schema:{kind:"enum",type:"PropertyKey | undefined",schema:["undefined","string","number","symbol"]}},{name:"ref",global:!0,description:"",tags:[],required:!1,type:"VNodeRef | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65025,65040]}],schema:{kind:"enum",type:"VNodeRef | undefined",schema:["undefined","string","Ref<any, any>",{kind:"event",type:"(ref: Element | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, ... 4 more ..., any> | null, refs: Record<...>): void",schema:[]}]}},{name:"ref_for",global:!0,description:"",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65045,65063]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"ref_key",global:!0,description:"",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65068,65085]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"class",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71969,71985]}],schema:"unknown"},{name:"style",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71990,72006]}],schema:"unknown"}],events:[{name:"input",description:"",tags:[],type:"[event: Event]",signature:'(event: "input", event: Event): void',declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[17423,17458]}],schema:["Event"]}],slots:[],exposed:[{name:"name",type:"string | undefined",description:'Passed to the "name" attribute of the `<input>` element.',declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[761,775]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"modelValue",type:"string | undefined",description:"value bound to the parent component",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[643,675]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"fullWidth",type:"boolean | undefined",description:"Whether the group should expand to the parent's width",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[269,289]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"id",type:"string | number",description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[451,471]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]}},{name:"label",type:"string | undefined",description:"The description which appears to the right of the radio button",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[563,578]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"disabled",type:"boolean | undefined",description:"Whether the input should be disabled",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[167,186]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"value",type:"string",description:"The value for the radio input.",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantRadio.vue",range:[835,849]}],schema:"string"},{name:"onInput",type:"((event: Event) => any) | undefined",description:"",declarations:[],schema:{kind:"enum",type:"((event: Event) => any) | undefined",schema:["undefined",{kind:"event",type:"(event: Event): any",schema:["Event"]}]}}]};const se=["for"],ie=["id","aria-labelledby","name","value","checked","disabled"],oe=["id"],N=h({__name:"VariantTile",props:{disabled:{type:Boolean},fullWidth:{type:Boolean},id:{},label:{},modelValue:{},name:{},value:{}},emits:["input"],setup(a,{emit:d}){const e=a,n=b(),t=d;return(l,o)=>(p(),g("label",{class:i([s(n).root,{"tw-w-full":e.fullWidth,[s(n)["root--disabled"]]:e.disabled}]),for:`${e.name}-${e.id}`},[r("div",{class:i(["tw-flex tw-border",[s(n)["tile-header"],{"tw-border-blue-500 tw-bg-blue-100":e.modelValue===e.value&&!e.disabled,"tw-border-ice-500 tw-bg-ice-100":e.modelValue!==e.value||e.disabled}]])},[r("input",{id:`${e.name}-${e.id}`,"aria-labelledby":`tile-label-${e.name}-${e.id}`,class:i(["tw-sr-only",s(n).input]),type:"radio",name:e.name,value:e.value,checked:e.modelValue===e.value,disabled:e.disabled,onInput:o[0]||(o[0]=u=>t("input",u))},null,42,ie),r("div",{id:`tile-label-${e.name}-${e.id}`,class:i([s(n).label,{"tw-text-ice-500":e.disabled}])},y(e.label),11,oe)],2),r("div",{class:i([s(n)["tile-body"],{"tw-border-ice-500":e.modelValue!==e.value||e.disabled,"tw-border-blue-500":e.modelValue===e.value&&!e.disabled}])},[w(l.$slots,"default")],2)],10,se))}}),re="_root_583pa_2",de="_label_583pa_32",ue="_input_583pa_39",le={root:re,"root--disabled":"_root--disabled_583pa_11","tile-header":"_tile-header_583pa_15","tile-body":"_tile-body_583pa_16",label:de,input:ue},me={$style:le},ce=v(N,[["__cssModules",me]]);N.__docgen={type:1,props:[{name:"disabled",global:!1,description:"Whether the input should be disabled",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[167,186]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"fullWidth",global:!1,description:"Whether the group should expand to the parent's width",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[269,289]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"id",global:!1,description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,tags:[],required:!0,type:"string | number",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[451,471]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]}},{name:"label",global:!1,description:"The description which appears to the right of the radio button",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[563,578]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"modelValue",global:!1,description:"value bound to the parent component",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[643,675]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"name",global:!1,description:'Passed to the "name" attribute of the `<input>` element.',tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[761,775]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"value",global:!1,description:"The value for the radio input.",tags:[],required:!0,type:"string",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[835,849]}],schema:"string"},{name:"key",global:!0,description:"",tags:[],required:!1,type:"PropertyKey | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65002,65020]}],schema:{kind:"enum",type:"PropertyKey | undefined",schema:["undefined","string","number","symbol"]}},{name:"ref",global:!0,description:"",tags:[],required:!1,type:"VNodeRef | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65025,65040]}],schema:{kind:"enum",type:"VNodeRef | undefined",schema:["undefined","string","Ref<any, any>",{kind:"event",type:"(ref: Element | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, ... 4 more ..., any> | null, refs: Record<...>): void",schema:[]}]}},{name:"ref_for",global:!0,description:"",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65045,65063]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"ref_key",global:!0,description:"",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65068,65085]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"class",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71969,71985]}],schema:"unknown"},{name:"style",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71990,72006]}],schema:"unknown"}],events:[{name:"input",description:"",tags:[],type:"[event: Event]",signature:'(event: "input", event: Event): void',declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[17423,17458]}],schema:["Event"]}],slots:[{name:"default",type:"{}",description:"",declarations:[],schema:{kind:"object",type:"{}",schema:{}}}],exposed:[{name:"$slots",type:"Readonly<InternalSlots> & { default?(_: {}): any; }",description:"",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[26265,26292]}],schema:{kind:"object",type:"Readonly<InternalSlots> & { default?(_: {}): any; }",schema:{default:{name:"default",global:!1,description:"",tags:[],required:!1,type:"((_: {}) => any) | undefined",declarations:[],schema:{kind:"enum",type:"((_: {}) => any) | undefined",schema:["undefined",{kind:"event",type:"(_: {}): any",schema:[]}]}}}}},{name:"name",type:"string | undefined",description:'Passed to the "name" attribute of the `<input>` element.',declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[761,775]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"modelValue",type:"string | undefined",description:"value bound to the parent component",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[643,675]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"fullWidth",type:"boolean | undefined",description:"Whether the group should expand to the parent's width",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[269,289]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"id",type:"string | number",description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[451,471]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]}},{name:"label",type:"string | undefined",description:"The description which appears to the right of the radio button",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[563,578]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"disabled",type:"boolean | undefined",description:"Whether the input should be disabled",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[167,186]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"value",type:"string",description:"The value for the radio input.",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/components/VariantTile.vue",range:[835,849]}],schema:"string"},{name:"onInput",type:"((event: Event) => any) | undefined",description:"",declarations:[],schema:{kind:"enum",type:"((event: Event) => any) | undefined",schema:["undefined",{kind:"event",type:"(event: Event): any",schema:["Event"]}]}}]};var c=(a=>(a.Radio="radio",a.Button="button",a.Chip="chip",a.Tile="tile",a))(c||{});const he=h({__name:"RadioNew",props:{name:{default:void 0},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},id:{default:void 0},modelValue:{default:void 0},hasError:{type:Boolean,default:!1},label:{default:""},variant:{default:void 0},value:{}},emits:["update:modelValue"],setup(a,{emit:d}){const e={[c.Button]:z,[c.Chip]:Y,[c.Radio]:ae,[c.Tile]:ce},n=A(C.key,null),t=a,l=m(()=>t.modelValue||(n==null?void 0:n.modelValue.value)),o=m(()=>t.name||(n==null?void 0:n.name.value)),u=m(()=>t.fullWidth||(n==null?void 0:n.fullWidth.value)),V=m(()=>t.disabled||(n==null?void 0:n.disabled.value)),q=m(()=>t.variant||(n==null?void 0:n.variant.value)||"radio"),$=d;function W(f){if(n!=null&&n.update){n.update(f);return}$("update:modelValue",f.target.value)}return(f,pe)=>(p(),B(x(e[q.value]),{id:t.id,disabled:V.value,"has-error":t.hasError,"full-width":u.value,label:t.label,"model-value":l.value,name:o.value,value:t.value,onInput:W},{default:P(()=>[w(f.$slots,"default")]),_:3},40,["id","disabled","has-error","full-width","label","model-value","name","value"]))}});he.__docgen={type:1,props:[{name:"name",global:!1,description:'Passed to the "name" attribute of the `<input>` element.',tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[169,183]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]},default:"undefined"},{name:"disabled",global:!1,description:"Whether the entire group should be disabled",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[256,275]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]},default:"false"},{name:"fullWidth",global:!1,description:"Whether the group should expand to the parent's width",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[358,378]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]},default:"false"},{name:"id",global:!1,description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,tags:[],required:!1,type:"string | number",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[540,560]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]},default:"undefined"},{name:"modelValue",global:!1,description:"value bound to the parent component",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[625,657]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]},default:"undefined"},{name:"hasError",global:!1,description:"Adds error styling",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[705,724]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]},default:"false"},{name:"label",global:!1,description:"The description which appears to the right of the radio button",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[816,831]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]},default:'""'},{name:"variant",global:!1,description:"the styling for the radio button",tags:[{name:"defaultValue",text:"'radio'"}],required:!1,type:'"radio" | "button" | "chip" | "tile" | undefined',declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[915,939]}],schema:{kind:"enum",type:'"radio" | "button" | "chip" | "tile" | undefined',schema:["undefined",'"radio"','"button"','"chip"','"tile"']},default:"undefined"},{name:"value",global:!1,description:"The value for the radio input.",tags:[],required:!0,type:"string",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[999,1013]}],schema:"string"},{name:"key",global:!0,description:"",tags:[],required:!1,type:"PropertyKey | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65002,65020]}],schema:{kind:"enum",type:"PropertyKey | undefined",schema:["undefined","string","number","symbol"]}},{name:"ref",global:!0,description:"",tags:[],required:!1,type:"VNodeRef | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65025,65040]}],schema:{kind:"enum",type:"VNodeRef | undefined",schema:["undefined","string","Ref<any, any>",{kind:"event",type:"(ref: Element | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, ... 4 more ..., any> | null, refs: Record<...>): void",schema:[]}]}},{name:"ref_for",global:!0,description:"",tags:[],required:!1,type:"boolean | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65045,65063]}],schema:{kind:"enum",type:"boolean | undefined",schema:["undefined","false","true"]}},{name:"ref_key",global:!0,description:"",tags:[],required:!1,type:"string | undefined",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[65068,65085]}],schema:{kind:"enum",type:"string | undefined",schema:["undefined","string"]}},{name:"class",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71969,71985]}],schema:"unknown"},{name:"style",global:!0,description:"",tags:[],required:!1,type:"unknown",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[71990,72006]}],schema:"unknown"}],events:[{name:"update:modelValue",description:"",tags:[],type:"[value: string]",signature:'(event: "update:modelValue", value: string): void',declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[17423,17458]}],schema:["string"]}],slots:[{name:"default",type:"{}",description:"",declarations:[],schema:{kind:"object",type:"{}",schema:{}}}],exposed:[{name:"$slots",type:"Readonly<InternalSlots> & { default?(_: {}): any; }",description:"",declarations:[{file:"/home/runner/work/stash/stash/node_modules/@vue/runtime-core/dist/runtime-core.d.ts",range:[26265,26292]}],schema:{kind:"object",type:"Readonly<InternalSlots> & { default?(_: {}): any; }",schema:{default:{name:"default",global:!1,description:"",tags:[],required:!1,type:"((_: {}) => any) | undefined",declarations:[],schema:{kind:"enum",type:"((_: {}) => any) | undefined",schema:["undefined",{kind:"event",type:"(_: {}): any",schema:[]}]}}}}},{name:"name",type:"string",description:'Passed to the "name" attribute of the `<input>` element.',declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[169,183]}],schema:"string"},{name:"modelValue",type:"string",description:"value bound to the parent component",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[625,657]}],schema:"string"},{name:"variant",type:'"radio" | "button" | "chip" | "tile"',description:"the styling for the radio button",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[915,939]}],schema:{kind:"enum",type:'"radio" | "button" | "chip" | "tile"',schema:['"radio"','"button"','"chip"','"tile"']}},{name:"fullWidth",type:"boolean",description:"Whether the group should expand to the parent's width",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[358,378]}],schema:{kind:"enum",type:"boolean",schema:["false","true"]}},{name:"id",type:"string | number",description:`A unique string to distinguish one Radio instance from another
and to link the label to the input; required for accessibility`,declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[540,560]}],schema:{kind:"enum",type:"string | number",schema:["string","number"]}},{name:"label",type:"string",description:"The description which appears to the right of the radio button",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[816,831]}],schema:"string"},{name:"disabled",type:"boolean",description:"Whether the entire group should be disabled",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[256,275]}],schema:{kind:"enum",type:"boolean",schema:["false","true"]}},{name:"hasError",type:"boolean",description:"Adds error styling",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[705,724]}],schema:{kind:"enum",type:"boolean",schema:["false","true"]}},{name:"value",type:"string",description:"The value for the radio input.",declarations:[{file:"/home/runner/work/stash/stash/src/components/RadioNew/RadioNew.vue",range:[999,1013]}],schema:"string"},{name:"onUpdate:modelValue",type:"((value: string) => any) | undefined",description:"",declarations:[],schema:{kind:"enum",type:"((value: string) => any) | undefined",schema:["undefined",{kind:"event",type:"(value: string): any",schema:["string"]}]}}]};export{c as RadioVariant,he as default};
