@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
4 lines • 758 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import{w as t,e as n,d as a}from"./common-7RW_NFNf.js";const o=["button","link","tab","treeitem"],i=(n,a)=>{t(n,"_role",(t=>"string"==typeof t&&o.includes(t)),new Set([`KoliBriAlternativeButtonLinkRole {${o.join(", ")}`]),a)},e=(t,a)=>{n(t,"_ariaDescription",a)},r=(t,n)=>{a(t,"_ariaExpanded",n)},s=["primary","secondary","normal","tertiary","danger","ghost","custom"],l=(n,a)=>{t(n,"_buttonVariant",(t=>"string"==typeof t&&s.includes(t)),new Set([`KoliBriButtonVariant {${s.join(", ")}`]),a,{defaultValue:"normal"})},c=["inline","standalone"],m=(n,a)=>{t(n,"_linkVariant",(t=>"string"==typeof t&&c.includes(t)),new Set([`KoliBriLinkVariant {${c.join(", ")}`]),a)};export{r as a,m as b,i as c,l as d,e as v};