@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
12 lines (9 loc) • 1.06 kB
JavaScript
import { a } from './chunk-VWY7QHPJ.js';
import { ScanditHTMLElement, html, defineCustomElements, css } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
var t=class t extends ScanditHTMLElement{constructor(){super();let o=this.attachShadow({mode:"open"});o.innerHTML=html`
<button>
<slot name="icon"></slot>
<slot></slot>
</button>
`,o.append(t.createStyleElement().cloneNode(!0));let e=a.create();e.setAttribute("slot","icon"),e.size=24,this.append(e);}static create(){return document.createElement(t.tag)}static register(){defineCustomElements({[t.tag]:t});}static createStyleElement(){return css`:host{display:inline-block;font-family:SF Pro Text,sans-serif}:host button{align-items:center;background-color:hsla(0,0%,100%,.9);border:none;border-radius:1rem;color:rgba(61,72,82,.8);display:flex;font-size:.688rem;font-weight:600;gap:.25rem;justify-content:center;min-width:140px;min-width:100px;padding:.25rem .5rem}`}};t.tag="scandit-find-card-list-button";var n=t;n.register();
export { n as a };