import { Component, h, Prop } from '@stencil/core';
import { MDCRipple } from '@material/ripple';
export class NkWalletButton {
  constructor() {
    this.disabled = false;
    this.loading = false;
    this.ripple = null;
  }
  render() {
    return (h("div", { part: "wallet-btn-container", class: "mdc-touch-target-wrapper" },
      h("button", { part: "wallet-btn", disabled: this.disabled, ref: el => (this.button = el), class: "mdc-button mdc-button--raised" },
        h("span", { class: "mdc-button__ripple" }),
        h("span", { class: "mdc-button__touch" }),
        h("span", { class: "mdc-button__label" }, this.loading ? h("nk-loading", null) : h("slot", null)))));
  }
  componentDidLoad() {
    this.ripple = new MDCRipple(this.button);
  }
  static get is() { return "nk-wallet-button"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["nk-wallet-button.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["nk-wallet-button.css"]
  }; }
  static get properties() { return {
    "disabled": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "disabled",
      "reflect": false,
      "defaultValue": "false"
    },
    "loading": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "loading",
      "reflect": false,
      "defaultValue": "false"
    }
  }; }
}
