UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

4 lines 985 B
/*! * KoliBri - The accessible HTML-Standard */ import{_ as e}from"./Heading-D6_TFw6T.js";import{h as o,F as l}from"./index-CElQfBOC.js";import{c as s}from"./clsx-eK3rPvPS.js";import"./common-7RW_NFNf.js";import{e as a,c as i}from"./FormFieldStateWrapper-BlcmQgCr.js";const r=r=>{const{class:t,msg:d,required:n,disabled:u,touched:c,readonly:p,ariaDescribedBy:b,hideLabel:m,label:g,suggestions:y,value:B}=r,j=e(r,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),h=i(d,c),f={"kol-input--disabled":Boolean(u),"kol-input--required":Boolean(n),"kol-input--touched":Boolean(c),"kol-input--readonly":Boolean(p),[`kol-input--${(null==d?void 0:d.type)||"error"}`]:h},k=Object.assign(Object.assign({class:s("kol-input",f,t),required:n,disabled:u,readonly:p,type:"text",list:y?`${j.id}-list`:void 0},a({ariaDescribedBy:b,hideLabel:m,label:g})),j);return o(l,null,o("input",Object.assign({},k,{value:B})),y)};export{r as I};