@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
4 lines • 980 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import{_ as e}from"./tslib.es6-1173d062.js";import{h as a,F as s}from"./index-136f59ac.js";import{c as l}from"./clsx-09a06a12.js";import"./index-88dea7b1.js";import{e as o,c as i}from"./getRenderStates-dba2a9a8.js";const t=t=>{const{class:d,msg:r,required:n,disabled:u,touched:b,readonly:c,ariaDescribedBy:p,hideLabel:m,label:g,suggestions:y,value:j}=t,h=e(t,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),B=i(r,b),k={"kol-input--disabled":Boolean(u),"kol-input--required":Boolean(n),"kol-input--touched":Boolean(b),"kol-input--readonly":Boolean(c),[`kol-input--${(null==r?void 0:r.type)||"error"}`]:B},f=Object.assign(Object.assign({class:l("kol-input",k,d),required:n,disabled:u,readonly:c,type:"text",list:y?`${h.id}-list`:void 0},o({ariaDescribedBy:p,hideLabel:m,label:g})),h);return a(s,null,a("input",Object.assign({},f,{value:j})),y)};export{t as I};