UNPKG

@spectrum-web-components/base

Version:

The `SpectrumElement` base class as created by mixing `SpectrumMixin` onto `LitElement` provides text direction support via the CSS `:dir()` pseudo-class, which automatically inherits directionality from the DOM hierarchy. In a TypeScript context, it also

15 lines (14 loc) 514 B
"use strict"; export function defineElement(name, constructor) { if (window.__swc && true) { if (customElements.get(name)) { window.__swc.warn( void 0, `Attempted to redefine <${name}>. This usually indicates that multiple versions of the same web component were loaded onto a single page.`, "https://opensource.adobe.com/spectrum-web-components/registry-conflicts" ); } } customElements.define(name, constructor); } //# sourceMappingURL=define-element.dev.js.map