UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

7 lines 1.4 kB
import{adoptStyles as e,css as t,getCompatibleStyle as n,unsafeCSS as r}from"../@lit/reactive-element/css-tag.js";import{ReactiveElement as i,defaultConverter as a,notEqual as o}from"../@lit/reactive-element/reactive-element.js";import{_$LH as s,html as c,noChange as l,nothing as u,render as d}from"../lit-html/lit-html.js"; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const f=globalThis;var p=class extends i{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=d(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return l}};p._$litElement$=!0,p.finalized=!0,f.litElementHydrateSupport?.({LitElement:p});const m=f.litElementPolyfillSupport;m?.({LitElement:p}),(f.litElementVersions??=[]).push(`4.2.0`);export{p as LitElement,i as ReactiveElement,s as _$LH,e as adoptStyles,t as css,a as defaultConverter,n as getCompatibleStyle,c as html,l as noChange,o as notEqual,u as nothing,d as render,r as unsafeCSS}; //# sourceMappingURL=lit-element.js.map