# The global library is added via localgov_base.theme file.
# This is so we can do a check that the "Remove CSS" theme setting
# is not turned on.
global:
  css:
    base:
      css/base/variables.css: {}
      css/base/base.css: {}
      css/layout/layout-utilities.css: {}
      css/base/fields.css: {}
      css/components/form-items.css: {}
      css/components/admin-toolbar.css: {}
      css/components/messages.css: {}
      css/components/skip-link.css: {}
    theme:
      css/print/print.css: { media: print }
  # Declare dependencies for other libraries that we want to load
  # on every page.
  dependencies:
    - localgov_base/grid
    - localgov_base/header
    - localgov_base/footer
    - localgov_base/images
    - localgov_base/callout
    - localgov_base/secondary-menu
    - localgov_base/wysiwyg-styles

grid:
  css:
    layout:
      css/layout/grid.css: {}

region-tabs:
  css:
    theme:
      css/components/region-tabs.css: {}

unpublished-bg:
  css:
    theme:
      css/components/unpublished-bg.css: {}

callout:
  css:
    theme:
      css/components/callout.css: {}

wysiwyg-styles:
  css:
    theme:
      css/components/wysiwyg-styles.css: {}

secondary-menu:
  css:
    theme:
      css/components/secondary-menu.css: {}
header:
  css:
    theme:
      css/components/header.css: {}

header-js:
  js:
    js/header.js: {}
  dependencies:
    - core/drupal
    - core/drupal.debounce
    - core/once

sticky-header:
  css:
    theme:
      css/components/sticky-header.css: {}
  js:
    js/sticky-header.js: {}
  dependencies:
    - core/drupal
    - core/drupal.debounce
    - core/once

footer:
  css:
    theme:
      css/components/footer.css: {}

breadcrumbs:
  css:
    theme:
      css/components/breadcrumbs.css: {}

menu-main:
  css:
    theme:
      css/components/menu-main.css: {}

page-title-block:
  css:
    theme:
      css/components/page-title-block.css: {}

service-landing-page:
  css:
    theme:
      css/components/service-landing-page.css: {}

service-statuses:
  css:
    theme:
      css/components/service-statuses.css: {}

step-by-step:
  css:
    theme:
      css/components/step-by-step.css: {}

service-cta-block:
  css:
    theme:
      css/components/service-cta-block.css: {}

full:
  css:
    theme:
      css/components/full.css: {}

teaser:
  css:
    theme:
      css/components/teaser.css: {}

card:
  css:
    theme:
      css/components/card.css: {}

page-sections:
  css:
    theme:
      css/components/page-sections.css: {}

alert-banner:
  css:
    theme:
      css/components/alert-banner.css: {}

topic-list-builder:
  css:
    theme:
      css/components/topic-list-builder.css: {}

guides:
  js:
    js/guides.js: {}
  dependencies:
    - core/drupal

guide-nav:
  css:
    theme:
      css/components/guide-nav.css: {}

# DEPRECATED
#
# This library is no longer used by any component in localgov_base.
#
# @see components/prev-next/ for the in-use component and libraries.
prev-next:
  css:
    theme:
      components/prev-next/prev-next.css: {}

sidebar:
  css:
    theme:
      css/components/sidebar.css: {}

ia-block:
  css:
    theme:
      css/components/ia-block.css: {}

featured-subsite:
  css:
    theme:
      css/components/featured-subsite.css: {}

link-and-summary:
  css:
    theme:
      css/components/link-and-summary.css: {}

link:
  css:
    theme:
      css/components/link.css: {}

contact:
  css:
    theme:
      css/components/contact.css: {}

key-contacts:
  css:
    theme:
      css/components/key-contacts.css: {}

box-links:
  css:
    theme:
      css/components/box-links.css: {}

fact-box:
  css:
    theme:
      css/components/fact-box.css: {}

image-with-caption:
  css:
    theme:
      css/components/image-with-caption.css: {}

media-with-text:
  css:
    theme:
      css/components/media-with-text.css: {}

quote:
  css:
    theme:
      css/components/quote.css: {}

featured-teasers:
  css:
    theme:
      css/components/featured-teasers.css: {}

newsroom-teaser:
  css:
    theme:
      css/components/newsroom-teaser.css: {}

tabs:
  css:
    theme:
      css/components/tabs.css: {}

directories:
  css:
    theme:
      css/components/directories.css: {}

facets:
  css:
    theme:
      css/components/facets.css: {}

news:
  css:
    theme:
      css/components/news.css: {}

blog:
  css:
    theme:
      css/components/blog.css: {}

events:
  css:
    theme:
      css/components/events.css: {}

pager:
  css:
    theme:
      css/components/pager.css: {}

callout-box:
  css:
    theme:
      css/components/callout-box.css: {}

banner:
  css:
    theme:
      css/components/banner.css: {}

sitewide-search:
  css:
    theme:
      css/components/sitewide-search.css: {}

leaflet:
  css:
    theme:
      css/components/leaflet.css: {}

video:
  css:
    theme:
      css/components/video.css: {}

form-errors:
  css:
    theme:
      css/components/form-errors.css: {}

preview-link:
  css:
    theme:
      css/components/preview-link.css: {}

term:
  css:
    theme:
      css/components/term.css: {}

embedded-views:
  css:
    theme:
      css/components/embedded-views.css: {}

subsites-menu:
  css:
    theme:
      css/components/subsites-menu.css: {}
  js:
    js/subsites-menu.js: {}
  dependencies:
    - core/drupal
    - core/drupal.debounce

tabledrag:
  css:
    theme:
      css/components/tabledrag.css: {}

localgov_eu_cookie_compliance:
  css:
    theme:
      css/components/localgov_eu_cookie_compliance.css: {}

# DEPRECATED
#
# This library is no longer used by any component in localgov_base, and the
# javascript could change.
#
# @see components/add-to-calendar/ for the in-use component and libraries.
add-to-calendar:
  css:
    theme:
      components/add-to-calendar/add-to-calendar.css: {}
  js:
    components/add-to-calendar/add-to-calendar.js: {}
  dependencies:
    - core/drupal
    - core/once

back-to-top:
  css:
    theme:
      css/components/back-to-top.css: {}
  js:
    js/back-to-top.js: {}
  dependencies:
    - core/drupal
    - core/once

accordion:
  css:
    theme:
      css/components/accordion.css: {}

equal-heights-blocks:
  js:
    js/equal-heights-blocks.js: {}
  dependencies:
    - core/drupal
    - core/drupal.debounce
    - core/drupalSettings

responsive-tables:
  css:
    theme:
      css/components/responsive-tables.css: {}
  js:
    js/responsive-tables.js: {}

images:
  js:
    js/images.js: {}

  dependencies:
    - core/drupal
    - core/once
