UNPKG

@rocketspark/domain-checker

Version:
13 lines 2.29 kB
/*! * * @rocketspark/domain-checker v1.0.12 * git+https://github.com/rocketspark/domain-checker.git * * Copyright (c) Lee Reichardt and project contributors. * * This source code is licensed under the no license license found in the * LICENSE file in the root directory of this source tree. * */ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[714],{2714:function(e,r,t){t.r(r),t.d(r,{rs_accordion:function(){return c}});var o=t(6919);const c=class{constructor(e){(0,o.r)(this,e),this.error=!1,this.onClick=()=>{this.accordionContentElement.style.maxHeight?this.accordionContentElement.style.maxHeight=null:this.accordionContentElement.style.maxHeight=`${this.accordionContentElement.scrollHeight}px`}}render(){return(0,o.h)(o.H,{key:"427d845edc8de063c247053f1c72499e13955590",onClick:this.onClick,class:{"rs-accordion--error":this.error}},(0,o.h)("div",{key:"a71ec160286bf420ded6c0d97c47ed8c91e3d0de",class:"rs-accordion__header"},(0,o.h)("div",{key:"70e88c1e1e7ca2e5a60a65928d843b13818b368c",class:"rs-accordion__header-start"},(0,o.h)("slot",{key:"02f8a3e37ee06409751f7f5fab1de5e04a4e4c22",name:"header-start"}),(0,o.h)("rs-header",{key:"b167ef0f9ca0b76ecb5e7aa3bfb04d1784bb5953",heading:"5",color:"secondary"},this.heading)),(0,o.h)("slot",{key:"b0e2bc7d32efebdd827cd0c21d84e78d3a8394f3",name:"header-end"})),(0,o.h)("div",{key:"be0ed6104fdf62b2ea7f3d5737a594516beda87c",class:"rs-accordion__content",ref:e=>this.accordionContentElement=e},(0,o.h)("slot",{key:"5f3cee7cddaca2585058238e818b8b11ab1afaf0",name:"content"})))}};c.style=':host{display:block;border:1px solid var(--rs-color-grey-light);border-radius:7px;padding:20px 25px;box-sizing:border-box;line-height:21px;cursor:pointer;transition:border 0.2s cubic-bezier(0, 0.55, 0.45, 1)}:host(.rs-accordion--error){border:1px solid var(--rs-color-negative)}.rs-accordion__header{display:flex;align-items:center;justify-content:space-between}.rs-accordion__header-start{display:flex;align-items:center;justify-content:start}::slotted([slot="header-start"]){margin-right:8px}.rs-accordion__content{max-height:0;overflow:hidden;transition:max-height 0.2s cubic-bezier(0, 0.55, 0.45, 1)}::slotted([slot="content"]){padding-top:20px}'}}]); //# sourceMappingURL=714.index.js.map