UNPKG

@public-ui/components

Version:

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

5 lines 1.1 kB
/*! * KoliBri - The accessible HTML-Standard */ import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s,F as o}from"./index-BQlHOxik.js";import"./common-Cx_AGO_M.js";import{i as l,c as a,g as i}from"./FormFieldStateWrapper-BWTMRKXT.js";import{c as t}from"./clsx-COFh-Vc8.js";import{a as r}from"./dev.utils-02Sl9bQo.js";const d=d=>{const{class:n,msg:u,required:c,disabled:b,touched:p,readonly:m,ariaDescribedBy:B,hideLabel:j,label:y,suggestions:g,value:k}=d,f=e(d,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]);const h={["kol-input--disabled"]:Boolean(b),["kol-input--required"]:Boolean(c),["kol-input--touched"]:Boolean(p),["kol-input--readonly"]:Boolean(m),[`kol-input--${i(u)}`]:l(u,p)};const O=Object.assign(Object.assign({class:t("kol-input",h,n),required:c,disabled:b,readonly:m,type:"text",list:g&&typeof f.id==="string"?r(f.id,"list"):undefined},a({ariaDescribedBy:B,hideLabel:j,label:y})),f);return s(o,null,s("input",Object.assign({},O,{value:k})),g)};export{d as I}; //# sourceMappingURL=Input-DQJln-L5.js.map