@rocketspark/domain-checker
Version:
Embeddable Domain Checker for Rocketspark
13 lines • 1.93 kB
JavaScript
/*!
*
* @rocketspark/domain-checker v0.0.34
* 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 n}});var o=t(7915);const n=class{constructor(e){(0,o.r)(this,e),this.onClick=()=>{this.accordionContentElement.style.maxHeight?this.accordionContentElement.style.maxHeight=null:this.accordionContentElement.style.maxHeight=`${this.accordionContentElement.scrollHeight}px`},this.heading=void 0,this.error=!1}render(){return(0,o.h)(o.H,{onClick:this.onClick,class:{"rs-accordion--error":this.error}},(0,o.h)("div",{class:"rs-accordion__header"},(0,o.h)("div",{class:"rs-accordion__header-start"},(0,o.h)("slot",{name:"header-start"}),(0,o.h)("rs-header",{heading:"5",color:"secondary"},this.heading)),(0,o.h)("slot",{name:"header-end"})),(0,o.h)("div",{class:"rs-accordion__content",ref:e=>this.accordionContentElement=e},(0,o.h)("slot",{name:"content"})))}};n.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