fontawesome_brands:
  label: "Font Awesome: brands"
  description: "The Internet's icon library and toolkit, used by millions of designers, developers, and content creators."
  links:
    - https://fontawesome.com/icons
    - https://docs.fontawesome.com/web/add-icons/svg-bare
  license:
    name: Font Awesome Free License
    url: https://github.com/FortAwesome/Font-Awesome/blob/6.x/LICENSE.txt
    gpl-compatible: true
  extractor: svg
  config:
    sources:
      - /libraries/fontawesome/svgs/brands/{icon_id}.svg
  settings:
    width:
      title: "Width"
      description: "You need to specify the size unit (px, em or other). Default value is 32px."
      type: "string"
      default: "32px"
    height:
      title: "Height"
      description: "You need to specify the size unit (px, em or other). Default value is 32px."
      type: "string"
      default: "32px"
    color:
      title: "Color"
      type: "string"
    alt:
      title: "Alt text"
      type: "string"
      description: "Accessibility alternative text, leave empty for decorative icon."
  template: >-
    {% set attributes = (alt is empty) ? attributes.setAttribute('aria-hidden', 'true').setAttribute('focusable', 'false') : attributes.setAttribute('aria-label', alt) %}
    <svg{{ attributes
      .setAttribute('xmlns', 'http://www.w3.org/2000/svg')
      .setAttribute('fill', color|default('currentColor'))
      .setAttribute('style', 'width:' ~ width|default('32px') ~ ';height:' ~ height|default('32px') ~ ';')
      .addClass(['icon', 'icon-' ~ icon_id])
    }}>
      {{ content }}
    </svg>

fontawesome_regular:
  label: "Font Awesome: regular"
  description: "The Internet's icon library and toolkit, used by millions of designers, developers, and content creators."
  links:
    - https://fontawesome.com/icons
    - https://docs.fontawesome.com/web/add-icons/svg-bare
  license:
    name: Font Awesome Free License
    url: https://github.com/FortAwesome/Font-Awesome/blob/6.x/LICENSE.txt
    gpl-compatible: true
  extractor: svg
  config:
    sources:
      - /libraries/fontawesome/svgs/regular/{icon_id}.svg
  settings:
    width:
      title: "Width"
      description: "You need to specify the size unit (px, em or other). Default value is 32px."
      type: "string"
      default: "32px"
    height:
      title: "Height"
      description: "You need to specify the size unit (px, em or other). Default value is 32px."
      type: "string"
      default: "32px"
    color:
      title: "Color"
      type: "string"
    alt:
      title: "Alt text"
      type: "string"
      description: "Accessibility alternative text, leave empty for decorative icon."
  template: >-
    {% set attributes = (alt is empty) ? attributes.setAttribute('aria-hidden', 'true').setAttribute('focusable', 'false') : attributes.setAttribute('aria-label', alt) %}
    <svg{{ attributes
      .setAttribute('xmlns', 'http://www.w3.org/2000/svg')
      .setAttribute('fill', color|default('currentColor'))
      .setAttribute('style', 'width:' ~ width|default('32px') ~ ';height:' ~ height|default('32px') ~ ';')
      .addClass(['icon', 'icon-' ~ icon_id])
    }}>
      {{ content }}
    </svg>

fontawesome_solid:
  label: "Font Awesome: solid"
  description: "The Internet's icon library and toolkit, used by millions of designers, developers, and content creators."
  links:
    - https://fontawesome.com/icons
    - https://docs.fontawesome.com/web/add-icons/svg-bare
  license:
    name: Font Awesome Free License
    url: https://github.com/FortAwesome/Font-Awesome/blob/6.x/LICENSE.txt
    gpl-compatible: true
  extractor: svg
  config:
    sources:
      - /libraries/fontawesome/svgs/solid/{icon_id}.svg
  settings:
    width:
      title: "Width"
      description: "You need to specify the size unit (px, em or other). Default value is 32px."
      type: "string"
      default: "32px"
    height:
      title: "Height"
      description: "You need to specify the size unit (px, em or other). Default value is 32px."
      type: "string"
      default: "32px"
    color:
      title: "Color"
      type: "string"
    alt:
      title: "Alt text"
      type: "string"
      description: "Accessibility alternative text, leave empty for decorative icon."
  template: >-
    {% set attributes = (alt is empty) ? attributes.setAttribute('aria-hidden', 'true').setAttribute('focusable', 'false') : attributes.setAttribute('aria-label', alt) %}
    <svg{{ attributes
      .setAttribute('xmlns', 'http://www.w3.org/2000/svg')
      .setAttribute('fill', color|default('currentColor'))
      .setAttribute('style', 'width:' ~ width|default('32px') ~ ';height:' ~ height|default('32px') ~ ';')
      .addClass(['icon', 'icon-' ~ icon_id])
    }}>
      {{ content }}
    </svg>
