UNPKG

@public-ui/components

Version:

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

5 lines 1.42 kB
/*! * KoliBri - The accessible HTML-Standard */ import{o,p as t,b as e,i as n,F as i,G as l}from"./common-Cx_AGO_M.js";const c=(o,t,e)=>{if(l(e)){o[t]=e}else if(n(e,1)){o[t]={icon:e}}};const f=o=>{let t={};if(n(o,1)){t={left:{icon:o}}}else if(typeof o==="object"&&o!==null){c(t,"top",o.top);c(t,"right",o.right);c(t,"bottom",o.bottom);c(t,"left",o.left)}return t};const s=o=>{var t,e,n;if((t=o.nextState)===null||t===void 0?void 0:t.has("_icons")){const t=(e=o.nextState)===null||e===void 0?void 0:e.get("_icons");(n=o.nextState)===null||n===void 0?void 0:n.set("_icons",f(t))}};const u=o=>typeof o==="object"&&o!==null&&(typeof o.style==="undefined"||i(o.style))&&(typeof o.label==="undefined"||n(o.label))&&n(o.icon,1);const d=(i,l,c={})=>{o(l,(()=>{var o;try{l=t(l)}catch(o){}e(i,"_icons",(o=>{const t=typeof o==="object"&&o!==null&&Object.keys(o).length===0;return o===null||t||n(o,1)||typeof o==="object"&&o!==null&&(n(o.left,0)||u(o.left)||n(o.right,0)||u(o.right)||n(o.top,0)||u(o.top)||n(o.bottom,0)||u(o.bottom))}),new Set(["KoliBriIcon"]),l,Object.assign(Object.assign({},c),{defaultValue:{},hooks:{afterPatch:(o=c.hooks)===null||o===void 0?void 0:o.afterPatch,beforePatch:(o,t,e,n)=>{var i,l;if(typeof((i=c.hooks)===null||i===void 0?void 0:i.beforePatch)==="function"){(l=c.hooks)===null||l===void 0?void 0:l.beforePatch(o,t,e,n)}s(e)}}}))}))};export{d as v}; //# sourceMappingURL=icons-oAzMYWgV.js.map