import { h, Host } from "@stencil/core";
const LIGHT_STYLE = { border: '3px solid rgba(255, 255, 255, 0.3)', borderTopColor: '#fff' };
const DARK_STYLE = { border: '3px solid rgba(0, 0, 0, 0.3)', borderTopColor: '#333' };
/**
 * Display a small loading spinner.
 *
 * ```ts
 * <verdocs-spinner />
 * ```
 */
export class VerdocsQuickFilter {
    constructor() {
        this.size = 32;
        this.mode = 'light';
    }
    render() {
        return (h(Host, { key: '335641f6984681e976a14e02f973413eabb612c9', style: {
                width: `${this.size}px`, //
                height: `${this.size}px`,
                flex: `0 0 ${this.size}px`,
                ...(this.mode === 'light' ? LIGHT_STYLE : DARK_STYLE),
            } }));
    }
    static get is() { return "verdocs-spinner"; }
    static get originalStyleUrls() {
        return {
            "$": ["verdocs-spinner.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["verdocs-spinner.css"]
        };
    }
    static get properties() {
        return {
            "size": {
                "type": "number",
                "attribute": "size",
                "mutable": false,
                "complexType": {
                    "original": "number",
                    "resolved": "number",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "defaultValue": "32"
            },
            "mode": {
                "type": "string",
                "attribute": "mode",
                "mutable": false,
                "complexType": {
                    "original": "'light' | 'dark'",
                    "resolved": "\"dark\" | \"light\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "defaultValue": "'light'"
            }
        };
    }
}
//# sourceMappingURL=verdocs-spinner.js.map
