import { Component, Prop, h } from '@stencil/core';
export class Icon {
  constructor() {
    /** Sets icon size. */
    this.size = 'base';
    /** Sets icon stroke-width. */
    this.strokeWidth = 'regular';
  }
  // --------------------------------------------------------------------------
  //
  //  Lifecycle Methods
  //
  // --------------------------------------------------------------------------
  render() {
    const El = `abds-icon-${this.icon}`;
    return h(El, { size: this.size, "stroke-width": this.strokeWidth });
  }
  static get is() { return "abds-icon"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["icon.css"]
  }; }
  static get styleUrls() { return {
    "$": ["icon.css"]
  }; }
  static get properties() { return {
    "icon": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": true,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Sets abds-icon to display."
      },
      "attribute": "icon",
      "reflect": true
    },
    "size": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "FontSize",
        "resolved": "\"2xl\" | \"2xs\" | \"3xl\" | \"4xl\" | \"5xl\" | \"6xl\" | \"7xl\" | \"base\" | \"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\"",
        "references": {
          "FontSize": {
            "location": "import",
            "path": "../types"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Sets icon size."
      },
      "attribute": "size",
      "reflect": true,
      "defaultValue": "'base'"
    },
    "strokeWidth": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "StrokeWidth",
        "resolved": "\"bold\" | \"medium\" | \"regular\" | \"semibold\"",
        "references": {
          "StrokeWidth": {
            "location": "import",
            "path": "../types"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Sets icon stroke-width."
      },
      "attribute": "stroke-width",
      "reflect": true,
      "defaultValue": "'regular'"
    }
  }; }
}
//# sourceMappingURL=icon.js.map