/*!
 * KoliBri - The accessible HTML-Standard
 */
import{a as l}from"./tslib.es6-QNbPBOk5.js";import{h as o}from"./index-Brmny3Vg.js";import{b as i}from"./component-names-Dy77vq43.js";import{c as e}from"./clsx-COFh-Vc8.js";import{a as s}from"./dev.utils-HhhlYW_9.js";import{K as n}from"./Heading-Hh3eykel.js";const a=(a,d)=>{const{id:r,class:t,label:c,level:p=1,disabled:v,open:b,onClick:u,HeadingProps:_={},HeadingButtonProps:m={},ContentProps:g={}}=a,h=l(a,["id","class","label","level","disabled","open","onClick","HeadingProps","HeadingButtonProps","ContentProps"]);const f=b?"kolicon-chevron-down":"kolicon-chevron-right";const j=s(r,"heading");const k=s(r,"control");return o("div",Object.assign({id:r,class:e("collapsible",{"collapsible--disabled":v===true,"collapsible--open":b===true},t)},h),o(n,{ref:_===null||_===void 0?void 0:_.ref,level:p,class:e("collapsible__heading",_===null||_===void 0?void 0:_.class)},o(i,{class:e("collapsible__heading-button",m===null||m===void 0?void 0:m.class),ref:m===null||m===void 0?void 0:m.ref,slot:"expert",id:j,_ariaControls:k,_ariaExpanded:b,_disabled:v,_icons:(m===null||m===void 0?void 0:m._icons)||`${f}`,_label:c,_on:{onClick:u}})),o("div",{class:e("collapsible__wrapper",g===null||g===void 0?void 0:g.wrapperClass)},o("div",{class:e("collapsible__wrapper-animation",g===null||g===void 0?void 0:g.animationClass)},o("div",{"aria-hidden":b===false?"true":undefined,"aria-labelledby":j,role:"region",class:e("collapsible__content",g===null||g===void 0?void 0:g.class),id:k},d))))};export{a as K};
//# sourceMappingURL=Collapsible-7IQAII4d.js.map