design_system 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/components/_index.scss +36 -20
  3. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/action-link/_action-link.scss +3 -0
  4. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/action-link/_index.scss +84 -0
  5. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/back-link/_back-link.scss +3 -0
  6. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/back-link/_index.scss +56 -0
  7. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/breadcrumb/_breadcrumb.scss +3 -0
  8. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/breadcrumb/_index.scss +103 -0
  9. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/button/_button.scss +3 -0
  10. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/button/_index.scss +207 -0
  11. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/card/_card.scss +3 -0
  12. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/card/_index.scss +526 -0
  13. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/character-count/_character-count.scss +3 -0
  14. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/character-count/_index.scss +54 -0
  15. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/checkboxes/_checkboxes.scss +3 -0
  16. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/checkboxes/_index.scss +337 -0
  17. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/contents-list/_contents-list.scss +3 -0
  18. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/contents-list/_index.scss +32 -0
  19. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/date-input/_date-input.scss +3 -0
  20. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/date-input/_index.scss +40 -0
  21. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/details/_details.scss +3 -0
  22. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/details/_index.scss +374 -0
  23. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/do-dont-list/_do-dont-list.scss +3 -0
  24. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/do-dont-list/_index.scss +37 -0
  25. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-message/_error-message.scss +3 -0
  26. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-message/_index.scss +22 -0
  27. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-summary/_error-summary.scss +3 -0
  28. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-summary/_index.scss +75 -0
  29. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/fieldset/_fieldset.scss +3 -0
  30. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/fieldset/_index.scss +81 -0
  31. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/file-upload/_file-upload.scss +3 -0
  32. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/file-upload/_index.scss +251 -0
  33. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/footer/_footer.scss +3 -0
  34. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/footer/_index.scss +64 -0
  35. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/header/_header.scss +3 -0
  36. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/header/_index.scss +783 -0
  37. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hero/_hero.scss +3 -0
  38. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hero/_index.scss +205 -0
  39. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hint/_hint.scss +3 -0
  40. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hint/_index.scss +53 -0
  41. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/images/_images.scss +3 -0
  42. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/images/_index.scss +53 -0
  43. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/input/_index.scss +184 -0
  44. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/input/_input.scss +3 -0
  45. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/inset-text/_index.scss +34 -0
  46. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/inset-text/_inset-text.scss +3 -0
  47. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/label/_index.scss +53 -0
  48. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/label/_label.scss +3 -0
  49. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/notification-banner/_index.scss +100 -0
  50. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/notification-banner/_notification-banner.scss +3 -0
  51. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/pagination/_index.scss +261 -0
  52. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/pagination/_pagination.scss +3 -0
  53. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/panel/_index.scss +99 -0
  54. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/panel/_panel.scss +3 -0
  55. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/password-input/_index.scss +37 -0
  56. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/password-input/_password-input.scss +3 -0
  57. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/radios/_index.scss +354 -0
  58. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/radios/_radios.scss +3 -0
  59. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/select/_index.scss +63 -0
  60. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/select/_select.scss +3 -0
  61. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/skip-link/_index.scss +48 -0
  62. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/skip-link/_skip-link.scss +3 -0
  63. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/summary-list/_index.scss +215 -0
  64. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/summary-list/_summary-list.scss +3 -0
  65. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tables/_index.scss +205 -0
  66. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tables/_tables.scss +3 -0
  67. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tabs/_index.scss +138 -0
  68. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tabs/_tabs.scss +3 -0
  69. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tag/_index.scss +101 -0
  70. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tag/_tag.scss +3 -0
  71. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/task-list/_index.scss +111 -0
  72. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/task-list/_task-list.scss +3 -0
  73. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/textarea/_index.scss +52 -0
  74. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/textarea/_textarea.scss +3 -0
  75. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/warning-callout/_index.scss +22 -0
  76. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/warning-callout/_warning-callout.scss +3 -0
  77. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/_index.scss +4 -0
  78. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/_nhsuk-frontend-properties.scss +28 -0
  79. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/all.scss +3 -1
  80. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_forms.scss +4 -2
  81. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_index.scss +2 -0
  82. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_links.scss +3 -2
  83. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/elements/_page.scss +66 -0
  84. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_table.scss +6 -5
  85. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_box-sizing.scss +2 -4
  86. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_font-face.scss +29 -15
  87. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_index.scss +2 -0
  88. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/helpers/_colour.scss +106 -0
  89. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/helpers/_index.scss +7 -0
  90. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_button-group.scss +124 -0
  91. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_form-group.scss +47 -0
  92. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/objects/_grid.scss +5 -3
  93. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/objects/_index.scss +4 -0
  94. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_input-wrapper.scss +81 -0
  95. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_main-wrapper.scss +66 -0
  96. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_width-container.scss +98 -0
  97. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_all.scss +3 -1
  98. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_breakpoints.scss +35 -0
  99. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-applied.scss +326 -0
  100. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-deprecated.scss +116 -0
  101. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-palette.scss +41 -0
  102. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours.scss +12 -0
  103. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_globals.scss +214 -0
  104. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_index.scss +5 -1
  105. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_spacing.scss +3 -3
  106. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_typography.scss +15 -34
  107. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_warnings.scss +11 -5
  108. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/styles/_icons.scss +45 -0
  109. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_index.scss +2 -0
  110. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_lists.scss +15 -10
  111. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_section-break.scss +4 -2
  112. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_typography.scss +34 -39
  113. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_all.scss +3 -1
  114. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_buttons.scss +85 -0
  115. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_exports.scss +1 -11
  116. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_focused.scss +134 -0
  117. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_functions.scss +81 -0
  118. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_grid.scss +74 -0
  119. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_index.scss +5 -1
  120. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_links.scss +234 -0
  121. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_mixins.scss +168 -118
  122. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_sass-mq.scss +9 -11
  123. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_shape-arrow.scss +14 -20
  124. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_shape-chevron.scss +65 -0
  125. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_shape-dash.scss +31 -0
  126. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_spacing.scss +25 -14
  127. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_typography.scss +71 -25
  128. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_clearfix.scss +2 -0
  129. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_display.scss +2 -0
  130. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_float.scss +2 -0
  131. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_grid-widths.scss +19 -20
  132. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_index.scss +2 -0
  133. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_link-nowrap.scss +2 -0
  134. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_list-border.scss +6 -2
  135. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_reading-width.scss +2 -0
  136. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_spacing.scss +6 -0
  137. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_text-align.scss +2 -0
  138. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/utilities/_typography.scss +52 -0
  139. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_visually-hidden.scss +2 -0
  140. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_widths.scss +2 -0
  141. data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/vendor/sass-mq.scss +4 -2
  142. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/index.scss +4 -0
  143. data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/nhsuk.scss +3 -0
  144. data/app/assets/stylesheets/design_system/nhsuk.scss +2 -2
  145. data/app/helpers/design_system_helper.rb +8 -4
  146. data/app/views/layouts/govuk/application.html.erb +1 -0
  147. data/app/views/layouts/nhsuk/application.html.erb +52 -59
  148. data/app/views/nhsuk/_navigation.html.erb +9 -13
  149. data/lib/design_system/engine.rb +1 -1
  150. data/lib/design_system/generic/builders/action_link.rb +17 -0
  151. data/lib/design_system/generic/builders/elements/backlink.rb +30 -0
  152. data/lib/design_system/generic/builders/fixed_elements.rb +4 -0
  153. data/lib/design_system/generic/builders/link.rb +9 -0
  154. data/lib/design_system/generic/builders/notification.rb +10 -6
  155. data/lib/design_system/generic/builders/pagination_renderer.rb +4 -9
  156. data/lib/design_system/govuk/builders/action_link.rb +17 -0
  157. data/lib/design_system/govuk/form_builder.rb +6 -2
  158. data/lib/design_system/govuk/test_helpers/form_builder_testable.rb +14 -0
  159. data/lib/design_system/nhsuk/builders/action_link.rb +30 -0
  160. data/lib/design_system/nhsuk/builders/elements/breadcrumbs.rb +12 -16
  161. data/lib/design_system/nhsuk/builders/notification.rb +0 -6
  162. data/lib/design_system/version.rb +1 -1
  163. data/lib/tasks/nhsuk.rake +10 -5
  164. data/public/design_system/static/{nhsuk-frontend-9.6.4/favicons → nhsuk-frontend-10.3.1/images}/favicon.ico +0 -0
  165. data/public/design_system/static/nhsuk-frontend-10.3.1/images/favicon.svg +4 -0
  166. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-180.png +0 -0
  167. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-192.png +0 -0
  168. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-512.png +0 -0
  169. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-mask.svg +3 -0
  170. data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-opengraph-image.png +0 -0
  171. data/public/design_system/static/nhsuk-frontend-10.3.1/manifest.json +39 -0
  172. data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js +1 -0
  173. data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js.map +1 -0
  174. data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk.js +7 -0
  175. metadata +159 -161
  176. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_action-link.scss +0 -1
  177. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_index.scss +0 -73
  178. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_back-link.scss +0 -1
  179. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_index.scss +0 -66
  180. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_breadcrumb.scss +0 -1
  181. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_index.scss +0 -138
  182. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_button.scss +0 -1
  183. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_index.scss +0 -257
  184. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_card.scss +0 -1
  185. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_index.scss +0 -321
  186. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_character-count.scss +0 -1
  187. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_index.scss +0 -19
  188. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_checkboxes.scss +0 -1
  189. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_index.scss +0 -155
  190. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_contents-list.scss +0 -1
  191. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_index.scss +0 -40
  192. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_date-input.scss +0 -1
  193. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_index.scss +0 -29
  194. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_details.scss +0 -1
  195. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_index.scss +0 -211
  196. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_do-dont-list.scss +0 -1
  197. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_index.scss +0 -23
  198. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_error-message.scss +0 -1
  199. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_index.scss +0 -17
  200. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_error-summary.scss +0 -1
  201. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_index.scss +0 -72
  202. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_fieldset.scss +0 -1
  203. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_index.scss +0 -65
  204. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_footer.scss +0 -1
  205. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_index.scss +0 -87
  206. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-base.scss +0 -495
  207. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-organisation.scss +0 -126
  208. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-service.scss +0 -60
  209. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-transactional.scss +0 -61
  210. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-white.scss +0 -117
  211. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header.scss +0 -1
  212. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_index.scss +0 -5
  213. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_hero.scss +0 -1
  214. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_index.scss +0 -187
  215. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_hint.scss +0 -1
  216. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_index.scss +0 -51
  217. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_images.scss +0 -1
  218. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_index.scss +0 -48
  219. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_index.scss +0 -149
  220. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_input.scss +0 -1
  221. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_index.scss +0 -28
  222. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_inset-text.scss +0 -1
  223. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_index.scss +0 -53
  224. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_label.scss +0 -1
  225. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_index.scss +0 -95
  226. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_pagination.scss +0 -1
  227. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_index.scss +0 -57
  228. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_panel.scss +0 -1
  229. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_index.scss +0 -180
  230. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_radios.scss +0 -1
  231. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_index.scss +0 -44
  232. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_select.scss +0 -1
  233. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_index.scss +0 -34
  234. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_skip-link.scss +0 -1
  235. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_index.scss +0 -183
  236. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_summary-list.scss +0 -1
  237. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_index.scss +0 -181
  238. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_tables.scss +0 -1
  239. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_index.scss +0 -120
  240. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_tabs.scss +0 -1
  241. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_index.scss +0 -92
  242. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_tag.scss +0 -1
  243. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_index.scss +0 -101
  244. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_task-list.scss +0 -1
  245. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_index.scss +0 -30
  246. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_textarea.scss +0 -1
  247. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_index.scss +0 -19
  248. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_warning-callout.scss +0 -1
  249. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/elements/_page.scss +0 -43
  250. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_form-group.scss +0 -25
  251. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_main-wrapper.scss +0 -96
  252. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_width-container.scss +0 -63
  253. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_breakpoints.scss +0 -18
  254. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_colours.scss +0 -188
  255. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_globals.scss +0 -82
  256. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/styles/_icons.scss +0 -105
  257. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_focused.scss +0 -86
  258. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_functions.scss +0 -45
  259. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_grid.scss +0 -138
  260. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_ifff.scss +0 -19
  261. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_links.scss +0 -184
  262. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_typography.scss +0 -72
  263. data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/nhsuk.scss +0 -1
  264. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/apple-touch-icon-180x180.png +0 -0
  265. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/apple-touch-icon.png +0 -0
  266. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon-192x192.png +0 -0
  267. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.png +0 -0
  268. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.svg +0 -3
  269. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/largetile-310x310.png +0 -0
  270. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-144x144.png +0 -0
  271. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-150x150.png +0 -0
  272. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/smalltile-70x70.png +0 -0
  273. data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/widetile-310x150.png +0 -0
  274. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-left.svg +0 -3
  275. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right-circle.svg +0 -4
  276. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right.svg +0 -3
  277. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-left.svg +0 -3
  278. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-right.svg +0 -3
  279. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-close.svg +0 -3
  280. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-cross.svg +0 -4
  281. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash-small.svg +0 -3
  282. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash.svg +0 -3
  283. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-minus.svg +0 -4
  284. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-plus.svg +0 -4
  285. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-search.svg +0 -3
  286. data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-tick.svg +0 -3
  287. data/public/design_system/static/nhsuk-frontend-9.6.4/logos/logo-nhs.svg +0 -5
  288. data/public/design_system/static/nhsuk-frontend-9.6.4/logos/nhs-logo.png +0 -0
  289. data/public/design_system/static/nhsuk-frontend-9.6.4/logos/open-graph.png +0 -0
  290. data/public/design_system/static/nhsuk-frontend-9.6.4/nhsuk.js +0 -4
  291. data/public/design_system/static/nhsuk-frontend-9.6.4/nhsuk.min.js +0 -1
  292. /data/public/design_system/static/{design_system-0.10.0 → design_system-0.12.0}/design_system.js +0 -0
@@ -1,138 +0,0 @@
1
- @use "sass:map";
2
- @use "sass:math";
3
- @use "../settings" as *;
4
- @use "mixins" as *;
5
- @use "sass-mq" as *;
6
-
7
- ////
8
- /// Grid
9
- ///
10
- /// @group tools
11
- /// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
12
- ////
13
-
14
- /// Grid width percentage
15
- ///
16
- /// @param {String} $key - Name of grid width (e.g. two-thirds)
17
- /// @return {Number} Percentage width
18
- /// @throw if `$key` is not a valid grid width
19
-
20
- @function nhsuk-grid-width($key) {
21
- @if map.has-key($nhsuk-grid-widths, $key) {
22
- @return map.get($nhsuk-grid-widths, $key);
23
- }
24
-
25
- @error "Unknown grid width `#{$key}`";
26
- }
27
-
28
- /// Grid width percentage (alias)
29
- ///
30
- /// @alias nhsuk-grid-width
31
- /// @deprecated To be removed in v10.0, replaced by nhsuk-grid-width
32
-
33
- @function grid-width($key) {
34
- @warn "The `grid-width` function will be removed in a future release, use `nhsuk-grid-width` instead.";
35
- @return nhsuk-grid-width($key);
36
- }
37
-
38
- /// Generate grid row styles
39
- ///
40
- /// Creates a grid row class with a standardised margin.
41
- ///
42
- /// @param {String} $class [nhsuk-grid-row] CSS class name
43
- ///
44
- /// @example scss - Default
45
- /// @include govuk-grid-row;
46
- ///
47
- /// @example scss - Customising the class name
48
- /// @include govuk-grid-row("app-grid");
49
- ///
50
- /// @deprecated To be removed in v10.0, replaced by the nhsuk-grid-row class
51
-
52
- @mixin nhsuk-grid-row($class: "nhsuk-grid-row") {
53
- @include nhsuk-warning("nhsuk-grid-row", "nhsuk-grid-row is deprecated. Use `.nhsuk-grid-row` class instead.");
54
-
55
- .#{$class} {
56
- @include nhsuk-clearfix;
57
- margin-right: -($nhsuk-gutter-half);
58
- margin-left: -($nhsuk-gutter-half);
59
- }
60
- }
61
-
62
- /// Generate grid row styles (deprecated)
63
- ///
64
- /// @alias nhsuk-grid-row
65
- /// @deprecated To be removed in v10.0
66
-
67
- @mixin govuk-grid-row($args...) {
68
- @include nhsuk-warning("govuk-grid-row", "govuk-grid-row is deprecated. Use `.nhsuk-grid-row` class instead.");
69
- @include nhsuk-grid-row($args...);
70
- }
71
-
72
- /// Generate grid column styles
73
- ///
74
- /// Creates a grid column with standard gutter between the columns.
75
- ///
76
- /// If a `$class` is provided (which is the default, but deprecated behaviour),
77
- /// the generated rules will be wrapped in a predefined selector in the format
78
- /// `$class-$width` (e.g. `nhsuk-grid-column-full`). This behaviour is
79
- /// deprecated and will be removed in v10.0
80
- ///
81
- /// Grid widths are defined in the `$nhsuk-grid-widths` map.
82
- ///
83
- /// By default the column width changes from 100% to specified width at the
84
- /// 'desktop' breakpoint, but other breakpoints can be specified using the `$at`
85
- /// parameter.
86
- ///
87
- /// @param {String} $width [full] name of a grid width from $nhsuk-grid-widths
88
- /// @param {String} $float [left] left | right
89
- /// @param {String} $at [desktop] - mobile | tablet | desktop | any custom breakpoint
90
- /// @param {String} $class [nhsuk-grid-column] CSS class name (deprecated)
91
- ///
92
- /// @example scss - Default
93
- /// .nhsuk-grid-column-two-thirds {
94
- /// @include nhsuk-grid-column(two-thirds, $class: false)
95
- /// }
96
- ///
97
- /// @example scss - Customising the breakpoint where width percentage is applied
98
- /// .nhsuk-grid-column-one-half-at-tablet {
99
- /// @include nhsuk-grid-column(one-half, $at: tablet);
100
- /// }
101
- ///
102
- /// @example scss - Customising the float direction
103
- /// .nhsuk-grid-column-one-half-right {
104
- /// @include nhsuk-grid-column(two-thirds, $float: right, $class: false);
105
- /// }
106
- ///
107
- /// @example scss - Customising the class name (deprecated)
108
- /// @include nhsuk-grid-column(one-half, $class: "test-column");
109
- ///
110
- /// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
111
-
112
- @mixin nhsuk-grid-column($width: full, $float: left, $at: desktop, $class: "nhsuk-grid-column") {
113
- @if $class {
114
- .#{$class}-#{$width} {
115
- @include nhsuk-grid-column($width, $float, $at, $class: false);
116
- }
117
- } @else {
118
- box-sizing: border-box;
119
- @if $at != tablet {
120
- width: 100%;
121
- }
122
- padding: 0 $nhsuk-gutter-half;
123
- @include nhsuk-media-query($from: $at) {
124
- width: nhsuk-grid-width($width);
125
- float: $float;
126
- }
127
- }
128
- }
129
-
130
- /// Generate grid column styles (deprecated)
131
- ///
132
- /// @alias nhsuk-grid-column
133
- /// @deprecated To be removed in v10.0, replaced by nhsuk-grid-column
134
-
135
- @mixin govuk-grid-column($args...) {
136
- @include nhsuk-warning("govuk-grid-column", "govuk-grid-column is deprecated. Use nhsuk-grid-column instead.");
137
- @include nhsuk-grid-column($args...);
138
- }
@@ -1,19 +0,0 @@
1
- ////
2
- /// Ifff
3
- ///
4
- /// Syntactic sugar around Sass' built-in `if` function that does not require
5
- /// you to pass a value for `$if-false`.
6
- ///
7
- /// @group tools
8
- /// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
9
- ///
10
- /// @param {Boolean} $condition - Whether to return the value of `$if-true`
11
- /// @param {Mixed} $if-true - Value to return if `$condition` is truthy
12
- /// @return {Mixed} Value of `$if-true` if `$condition` is truthy, else null
13
- ///
14
- /// @deprecated To be removed in v10.0, use `if($condition, $if-true, null);` instead.
15
-
16
- @function iff($condition, $if-true) {
17
- @warn "The `iff` function will be removed in a future release, use `if($condition, $if-true, null);` instead.";
18
- @return if($condition, $if-true, null);
19
- }
@@ -1,184 +0,0 @@
1
- @use "../settings" as *;
2
- @use "focused" as *;
3
-
4
- ////
5
- /// Links
6
- ///
7
- /// @group tools
8
- ////
9
-
10
- /// Link styling with colour overrides
11
- ///
12
- /// @param {Color} $link-colour [$nhsuk-link-color] - Link colour
13
- /// @param {Color} $link-hover-colour [$nhsuk-link-hover-color] - Link hover colour
14
- /// @param {Color} $link-visited-colour [$nhsuk-link-visited-color] - Link visited colour
15
- /// @param {Color} $link-active-colour [$nhsuk-link-active-color] - Link active colour
16
- ///
17
-
18
- @mixin nhsuk-link-style(
19
- $link-color: $nhsuk-link-color,
20
- $link-visited-color: $nhsuk-link-visited-color,
21
- $link-hover-color: $nhsuk-link-hover-color,
22
- $link-active-color: $nhsuk-link-active-color
23
- ) {
24
- & {
25
- color: $link-color;
26
- text-decoration: underline;
27
- }
28
-
29
- .nhsuk-icon {
30
- fill: $link-color;
31
- }
32
-
33
- @include nhsuk-link-style-visited($link-visited-color);
34
- @include nhsuk-link-style-hover($link-hover-color);
35
- @include nhsuk-link-style-active($link-active-color);
36
- @include nhsuk-link-style-focus;
37
- }
38
-
39
- /// Default link styling
40
- ///
41
- /// @example scss
42
- /// @include nhsuk-link-style-default;
43
- ///
44
-
45
- @mixin nhsuk-link-style-default {
46
- @include nhsuk-link-style;
47
- }
48
-
49
- /// White link styling, used in hero
50
- /// component, and in the `.nhsuk-link--reverse`
51
- /// modifier class.
52
- ///
53
- /// @example scss
54
- /// @include nhsuk-link-style-white;
55
- ///
56
-
57
- @mixin nhsuk-link-style-white {
58
- @include nhsuk-link-style-text($override-color: $nhsuk-reverse-text-color);
59
- }
60
-
61
- /// Default link visited only styling
62
- ///
63
- /// @param {Color} $link-visited-color [$nhsuk-link-visited-color] - Link visited colour
64
- ///
65
- /// @example scss
66
- /// @include nhsuk-link-style-visited;
67
- ///
68
-
69
- @mixin nhsuk-link-style-visited($link-visited-color: $nhsuk-link-visited-color) {
70
- &:visited {
71
- color: $link-visited-color;
72
-
73
- .nhsuk-icon {
74
- fill: $link-visited-color;
75
- }
76
- }
77
- }
78
-
79
- /// Default link hover only styling
80
- ///
81
- /// @param {Color} $link-hover-colour [$nhsuk-link-hover-color] - Link hover colour
82
- ///
83
- /// @example scss
84
- /// @include nhsuk-link-style-hover;
85
- ///
86
-
87
- @mixin nhsuk-link-style-hover($link-hover-colour: $nhsuk-link-hover-color) {
88
- &:hover,
89
- &:hover:visited {
90
- color: $link-hover-colour;
91
- text-decoration: none;
92
-
93
- .nhsuk-icon {
94
- fill: $link-hover-colour;
95
- }
96
- }
97
- }
98
-
99
- /// Default link focus only styling
100
- ///
101
- /// @example scss
102
- /// @include nhsuk-link-style-focus;
103
- ///
104
-
105
- @mixin nhsuk-link-style-focus {
106
- &:focus,
107
- &:focus:visited {
108
- @include nhsuk-focused-text;
109
-
110
- &:hover {
111
- text-decoration: none;
112
- }
113
- }
114
- }
115
-
116
- /// Default link active only styling
117
- ///
118
- /// @param {Color} $link-active-colour [$nhsuk-link-active-color] - Link active colour
119
- ///
120
- /// @example scss
121
- /// @include nhsuk-link-style-active;
122
- ///
123
-
124
- @mixin nhsuk-link-style-active($link-active-colour: $nhsuk-link-active-color) {
125
- &:active,
126
- &:active:visited {
127
- color: $link-active-colour;
128
-
129
- .nhsuk-icon {
130
- fill: $link-active-colour;
131
- }
132
- }
133
- }
134
-
135
- /// No visited state link mixin
136
- ///
137
- /// Used in cases where it is not helpful to distinguish between visited and
138
- /// non-visited links.
139
- ///
140
- /// For example, navigation links to pages with dynamic content like admin
141
- /// dashboards. The content on the page is changing all the time, so the fact
142
- /// that you’ve visited it before is not important.
143
- ///
144
- /// If you use this mixin in a component you must also include the
145
- /// nhsuk-link-style-default mixin in order to get the focus state.
146
- ///
147
- /// @example scss
148
- /// .nhsuk-component__link {
149
- /// @include nhsuk-link-style-default;
150
- /// @include nhsuk-link-style-no-visited-state;
151
- /// }
152
- ///
153
-
154
- @mixin nhsuk-link-style-no-visited-state {
155
- @include nhsuk-link-style-visited($link-visited-color: $nhsuk-link-color);
156
- }
157
-
158
- /// Text link styles
159
- ///
160
- /// Makes links use the primary text colour, in all states. Use this mixin for
161
- /// navigation components, such as breadcrumbs or the back link.
162
- ///
163
- /// @param {Color} $override-color [$nhsuk-text-color] - Link colour for all states
164
- ///
165
- /// @example scss
166
- /// .nhsuk-component__link {
167
- /// @include nhsuk-link-style-text;
168
- /// }
169
- ///
170
-
171
- @mixin nhsuk-link-style-text($override-color: $nhsuk-text-color) {
172
- @include nhsuk-link-style(
173
- $link-color: $override-color,
174
- $link-visited-color: $override-color,
175
- $link-hover-color: $override-color,
176
- $link-active-color: $override-color
177
- );
178
-
179
- // Force a colour change on hover to work around a bug in Safari
180
- // https://bugs.webkit.org/show_bug.cgi?id=224483
181
- &:not(:focus):hover {
182
- color: rgba($override-color, 0.99);
183
- }
184
- }
@@ -1,72 +0,0 @@
1
- @use "sass:map";
2
- @use "../settings" as *;
3
- @use "../tools" as *;
4
-
5
- ////
6
- /// Typography
7
- ///
8
- /// @group utilities
9
- ////
10
-
11
- // Utility classes are allowed to use !important;
12
- // so we disable stylelint for that rule
13
-
14
- /// Font size and line height
15
- ///
16
- /// Generate typography override classes for each responsive font map in the
17
- /// typography scale eg .nhsuk-u-font-size-48
18
- ///
19
- /// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
20
-
21
- // nhsuk-u-font-size-24 is deprecated
22
- @each $size, $font-map in $nhsuk-typography-scale {
23
- .nhsuk-u-font-size-#{$size} {
24
- $font-map: map.get($nhsuk-typography-scale, $size);
25
-
26
- // Add underscore to deprecated typography scale keys
27
- @if map.has-key($font-map, "deprecation") {
28
- $size: _#{$size};
29
- }
30
-
31
- @include nhsuk-font-size($size, $important: true);
32
- }
33
- }
34
-
35
- /// Weights
36
- ///
37
- /// Generate font weight override classes for normal and bold
38
- ///
39
- /// @example html
40
- /// <h3 class="nhsuk-heading-s nhsuk-u-font-weight-normal">Example</h3>
41
- /// <p class="nhsuk-u-font-weight-bold">Example</p>
42
-
43
- .nhsuk-u-font-weight-normal {
44
- @include nhsuk-typography-weight-normal($important: true);
45
- }
46
-
47
- .nhsuk-u-font-weight-bold {
48
- @include nhsuk-typography-weight-bold($important: true);
49
- }
50
-
51
- /// Typography helpers
52
-
53
- /// Word break
54
- ///
55
- /// @example html
56
- /// <p class="text-u-word-break-word"></p>
57
-
58
- .nhsuk-u-text-break-word {
59
- @include nhsuk-text-break-word($important: true);
60
- }
61
-
62
- /// Colours
63
-
64
- /// Secondary text colour
65
- ///
66
- /// @example html
67
- /// <p class="nhsuk-u-secondary-text-color">Published on: 15 March 2018</p>
68
-
69
- .nhsuk-u-secondary-text-color {
70
- // stylelint-disable-next-line declaration-no-important
71
- color: $nhsuk-secondary-text-color !important;
72
- }
@@ -1,3 +0,0 @@
1
- <svg version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 310 310">
2
- <path d="M0 155v63h310V92H0v63zm288.4-50.5c4.3.7 8.3 1.8 8.8 2.3.5.5-.3 4.7-2.2 10.4l-3 9.6-6.3-2c-7.4-2.4-23.2-2.9-28.9-.9-7.2 2.4-9 9.2-3.9 14 1.5 1.4 6.7 4.2 11.4 6.1 18.3 7.3 24.7 14.6 24.7 28.1 0 8.8-2.8 16.4-8.1 21.9-10.3 10.6-32.3 15.3-54.9 11.6-12.8-2.1-17.3-3.5-16.6-5.2.3-.7 1.7-5.2 3.1-9.9 1.5-4.7 2.7-8.5 2.8-8.5.1 0 2.7 1 5.7 2.2 7.6 3.1 28.5 3.3 34.3.4 7.5-3.7 8.7-12.2 2.4-17-1.8-1.3-7-4-11.7-5.8-17.4-7-22.2-12.2-22.8-24.4-.9-17.2 8.9-28.7 27.9-32.8 8.3-1.9 27.3-1.9 37.3-.1zm-222.6 6.7c1.1 3.5 5.7 19 10.3 34.6 4.5 15.5 8.6 27.9 8.9 27.5.4-.5 3.8-16 7.5-34.6l6.8-33.7h12.4c6.8 0 12.3.4 12.3.9 0 1-19.9 94.8-20.6 97.4-.5 1.6-2 1.7-17.2 1.5l-16.7-.3-10.4-34.7c-5.8-19.1-10.6-34.6-10.8-34.4-.2.1-3.2 14.9-6.8 32.7-3.6 17.8-6.7 33.4-7 34.6-.5 2.2-.9 2.3-13.1 2.3-11.5 0-12.5-.1-12-1.8.2-.9 5.1-23.4 10.7-50L30.4 105h33.5l1.9 6.2zM161 106c0 .5-1.6 8.5-3.5 17.7s-3.5 17.3-3.5 18c0 1 3.7 1.3 15.9 1.3h16l1.2-5.8c.6-3.1 2.4-11.6 3.8-18.7l2.7-13 13.2-.3c7.3-.1 13.2.1 13.2.5s-4.6 23-10.2 50L199.6 205h-13.4c-13.4 0-13.4 0-12.9-2.3.3-1.2 2.2-10.1 4.2-19.7 1.9-9.6 3.8-18.3 4.1-19.3.5-1.6-.7-1.7-15.8-1.7h-16.4l-4.4 21.5-4.4 21.5h-13.4c-13.4 0-13.4 0-12.9-2.3.3-1.2 4.9-23.1 10.2-48.7 5.3-25.6 9.8-47.1 10-47.8.5-1.5 26.5-1.8 26.5-.2z"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__arrow-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="34" height="34">
2
- <path d="M4.1 12.3l2.7 3c.2.2.5.2.7 0 .1-.1.1-.2.1-.3v-2h11c.6 0 1-.4 1-1s-.4-1-1-1h-11V9c0-.2-.1-.4-.3-.5h-.2c-.1 0-.3.1-.4.2l-2.7 3c0 .2 0 .4.1.6z"></path>
3
- </svg>
@@ -1,4 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__arrow-right-circle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" height="34" width="34">
2
- <path d="M0 0h24v24H0z" fill="none"></path>
3
- <path d="M12 2a10 10 0 0 0-9.95 9h11.64L9.74 7.05a1 1 0 0 1 1.41-1.41l5.66 5.65a1 1 0 0 1 0 1.42l-5.66 5.65a1 1 0 0 1-1.41 0 1 1 0 0 1 0-1.41L13.69 13H2.05A10 10 0 1 0 12 2z"></path>
4
- </svg>
@@ -1,3 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="34" height="34">
2
- <path d="M19.6 11.66l-2.73-3A.51.51 0 0 0 16 9v2H5a1 1 0 0 0 0 2h11v2a.5.5 0 0 0 .32.46.39.39 0 0 0 .18 0 .52.52 0 0 0 .37-.16l2.73-3a.5.5 0 0 0 0-.64z"></path>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__chevron-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" height="34" width="34">
2
- <path d="M8.5 12c0-.3.1-.5.3-.7l5-5c.4-.4 1-.4 1.4 0s.4 1 0 1.4L10.9 12l4.3 4.3c.4.4.4 1 0 1.4s-1 .4-1.4 0l-5-5c-.2-.2-.3-.4-.3-.7z"></path>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__chevron-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" height="34" width="34">
2
- <path d="M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z"></path>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__close" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false" height="34" width="34">
2
- <path d="M13.41 12l5.3-5.29a1 1 0 1 0-1.42-1.42L12 10.59l-5.29-5.3a1 1 0 0 0-1.42 1.42l5.3 5.29-5.3 5.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l5.29-5.3 5.29 5.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"></path>
3
- </svg>
@@ -1,4 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__cross" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" height="34" width="34">
2
- <path d="M17 18.5c-.4 0-.8-.1-1.1-.4l-10-10c-.6-.6-.6-1.6 0-2.1.6-.6 1.5-.6 2.1 0l10 10c.6.6.6 1.5 0 2.1-.3.3-.6.4-1 .4z"></path>
3
- <path d="M7 18.5c-.4 0-.8-.1-1.1-.4-.6-.6-.6-1.5 0-2.1l10-10c.6-.6 1.5-.6 2.1 0 .6.6.6 1.5 0 2.1l-10 10c-.3.3-.6.4-1 .4z"></path>
4
- </svg>
@@ -1,3 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__emdash" xmlns="http://www.w3.org/2000/svg" width="16" height="1" aria-hidden="true">
2
- <path d="M0 0h16v1H0z"></path>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__emdash" xmlns="http://www.w3.org/2000/svg" width="19" height="1" aria-hidden="true">
2
- <path d="M0 0h19v1H0z"></path>
3
- </svg>
@@ -1,4 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__minus" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" height="34" width="34">
2
- <circle cx="12" cy="12" r="10"></circle>
3
- <path fill="none" stroke="#fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M8 12h8"></path>
4
- </svg>
@@ -1,4 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__plus" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" height="34" width="34">
2
- <circle cx="12" cy="12" r="10"></circle>
3
- <path fill="none" stroke="#fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M12 8v8M8 12h8"></path>
4
- </svg>
@@ -1,3 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false" height="34" width="34">
2
- <path d="M19.71 18.29l-4.11-4.1a7 7 0 1 0-1.41 1.41l4.1 4.11a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 10a5 5 0 1 1 5 5 5 5 0 0 1-5-5z"></path>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg class="nhsuk-icon nhsuk-icon__tick" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" fill="none" height="34" width="34">
2
- <path stroke-width="4" stroke-linecap="round" stroke="#007f3b" d="M18.4 7.8l-8.5 8.4L5.6 12"></path>
3
- </svg>
@@ -1,5 +0,0 @@
1
- <svg class="nhsuk-logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" role="presentation" focusable="false" viewBox="0 0 40 16">
2
- <path fill="#005eb8" d="M0 0h40v16H0z"></path>
3
- <path fill="#fff" d="M3.9 1.5h4.4l2.6 9h.1l1.8-9h3.3l-2.8 13H9l-2.7-9h-.1l-1.8 9H1.1M17.3 1.5h3.6l-1 4.9h4L25 1.5h3.5l-2.7 13h-3.5l1.1-5.6h-4.1l-1.2 5.6h-3.4M37.7 4.4c-.7-.3-1.6-.6-2.9-.6-1.4 0-2.5.2-2.5 1.3 0 1.8 5.1 1.2 5.1 5.1 0 3.6-3.3 4.5-6.4 4.5-1.3 0-2.9-.3-4-.7l.8-2.7c.7.4 2.1.7 3.2.7s2.8-.2 2.8-1.5c0-2.1-5.1-1.3-5.1-5 0-3.4 2.9-4.4 5.8-4.4 1.6 0 3.1.2 4 .6"></path>
4
- <image xlink:href="" src="https://assets.nhs.uk/images/nhs-logo.png"></image>
5
- </svg>
@@ -1,4 +0,0 @@
1
- const { initAll } = require('.')
2
-
3
- // Initialise components
4
- document.addEventListener('DOMContentLoaded', () => initAll(document))
@@ -1 +0,0 @@
1
- !function(){var e={848:function(e){e.exports={toggleAttribute:function(e,t){if(e&&t){var n="true"===e.getAttribute(t)?"false":"true";e.setAttribute(t,n)}},toggleConditionalInput:function(e,t){if(e&&t){var n=e.getAttribute("aria-controls");if(n){var i=document.getElementById(n);i&&(e.checked?(i.classList.remove(t),e.setAttribute("aria-expanded","true")):(i.classList.add(t),e.setAttribute("aria-expanded","false")))}}},generateUniqueID:function(){var e=(new Date).getTime();return void 0!==window.performance&&"function"==typeof window.performance.now&&(e+=window.performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))},setFocus:function(e,t){void 0===t&&(t={});var n=e.getAttribute("tabindex");function i(){e.removeEventListener("blur",i),t.onBlur&&t.onBlur.call(e),n||e.removeAttribute("tabindex")}n||e.setAttribute("tabindex","-1"),e.addEventListener("focus",(function t(){e.removeEventListener("focus",t),e.addEventListener("blur",i)})),t.onBeforeFocus&&t.onBeforeFocus.call(e),e.focus()}}},807:function(e){var t=function(){function e(e){if(!e)return this;this.$module=e,this.debounceFormSubmitTimer=null,this.$module.addEventListener("keydown",this.handleKeyDown.bind(this)),this.$module.addEventListener("click",this.debounce.bind(this))}var t=e.prototype;return t.handleKeyDown=function(e){var t=e.target;"button"===t.getAttribute("role")&&32===e.keyCode&&(e.preventDefault(),t.click())},t.debounce=function(e){var t=this;if("true"===e.target.getAttribute("data-prevent-double-click"))return this.debounceFormSubmitTimer?(e.preventDefault(),!1):void(this.debounceFormSubmitTimer=setTimeout((function(){t.debounceFormSubmitTimer=null}),1e3))},e}();e.exports=function(e){var n=(void 0===e?{}:e).scope;(void 0===n?document:n).querySelectorAll('[data-module="nhsuk-button"]').forEach((function(e){new t(e)}))}},997:function(e){var t=function(){function e(t){if(!t)return this;var n=t.querySelector(".nhsuk-js-character-count");if(!n)return this;this.$module=t,this.$textarea=n,this.$visibleCountMessage=null,this.$screenReaderCountMessage=null,this.lastInputTimestamp=null;var i=document.getElementById(this.$textarea.id+"-info");this.$textarea.insertAdjacentElement("afterend",i);var s=document.createElement("div");s.className="nhsuk-character-count__sr-status nhsuk-u-visually-hidden",s.setAttribute("aria-live","polite"),this.$screenReaderCountMessage=s,i.insertAdjacentElement("afterend",s);var o=document.createElement("div");o.className=i.className,o.classList.add("nhsuk-character-count__status"),o.setAttribute("aria-hidden","true"),this.$visibleCountMessage=o,i.insertAdjacentElement("afterend",o),i.classList.add("nhsuk-u-visually-hidden"),this.options=e.getDataset(this.$module);var a=this.defaults.characterCountAttribute;this.options.maxwords&&(a=this.defaults.wordCountAttribute),this.maxLength=this.$module.getAttribute(a),this.maxLength&&(this.$textarea.removeAttribute("maxlength"),this.bindChangeEvents(),"onpageshow"in window?window.addEventListener("pageshow",this.updateCountMessage.bind(this)):window.addEventListener("DOMContentLoaded",this.updateCountMessage.bind(this)),this.updateCountMessage())}e.getDataset=function(e){var t={},n=e.attributes;if(n)for(var i=0;i<n.length;i++){var s=n[i],o=s.name.match(/^data-(.+)/);o&&(t[o[1]]=s.value)}return t};var t=e.prototype;return t.count=function(e){var t;this.options.maxwords?t=(e.match(/\S+/g)||[]).length:t=e.length;return t},t.bindChangeEvents=function(){var e=this.$textarea;e.addEventListener("keyup",this.handleKeyUp.bind(this)),e.addEventListener("focus",this.handleFocus.bind(this)),e.addEventListener("blur",this.handleBlur.bind(this))},t.checkIfValueChanged=function(){this.$textarea.oldValue||(this.$textarea.oldValue=""),this.$textarea.value!==this.$textarea.oldValue&&(this.$textarea.oldValue=this.$textarea.value,this.updateCountMessage())},t.updateCountMessage=function(){this.updateVisibleCountMessage(),this.updateScreenReaderCountMessage()},t.updateVisibleCountMessage=function(){var e=this.$textarea,t=this.$visibleCountMessage,n=this.maxLength-this.count(e.value);this.isOverThreshold()?t.classList.remove("nhsuk-character-count__message--disabled"):t.classList.add("nhsuk-character-count__message--disabled"),n<0?(e.classList.add("nhsuk-textarea--error"),t.classList.remove("nhsuk-hint"),t.classList.add("nhsuk-error-message")):(e.classList.remove("nhsuk-textarea--error"),t.classList.remove("nhsuk-error-message"),t.classList.add("nhsuk-hint")),t.innerHTML=this.formattedUpdateMessage()},t.updateScreenReaderCountMessage=function(){var e=this.$screenReaderCountMessage;this.isOverThreshold()?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",!0),e.innerHTML=this.formattedUpdateMessage()},t.formattedUpdateMessage=function(){var e,t=this.$textarea,n=this.options,i=this.maxLength-this.count(t.value),s="character";return n.maxwords&&(s="word"),s+=-1===i||1===i?"":"s",e=i<0?"too many":"remaining","You have "+Math.abs(i)+" "+s+" "+e},t.isOverThreshold=function(){var e=this.$textarea,t=this.options,n=this.count(e.value);return this.maxLength*(t.threshold?t.threshold:0)/100<=n},t.handleKeyUp=function(){this.updateVisibleCountMessage(),this.lastInputTimestamp=Date.now()},t.handleFocus=function(){var e=this;this.valueChecker=setInterval((function(){(!e.lastInputTimestamp||Date.now()-500>=e.lastInputTimestamp)&&e.checkIfValueChanged()}),1e3)},t.handleBlur=function(){clearInterval(this.valueChecker)},e}();t.prototype.defaults={characterCountAttribute:"data-maxlength",wordCountAttribute:"data-maxwords"},e.exports=function(e){var n=(void 0===e?{}:e).scope;(void 0===n?document:n).querySelectorAll('[data-module="nhsuk-character-count"]').forEach((function(e){new t(e)}))}},305:function(e,t,n){var i=n(848).toggleConditionalInput,s=function(e){e.form.querySelectorAll('input[type="checkbox"]').forEach((function(e){return i(e,"nhsuk-checkboxes__conditional--hidden")}))};e.exports=function(e){var t=(void 0===e?{}:e).scope,n=(void 0===t?document:t).querySelectorAll(".nhsuk-checkboxes .nhsuk-checkboxes__input"),o=function(e){var t;(i(e.target,"nhsuk-checkboxes__conditional--hidden"),e.target.checked)&&(e.target.hasAttribute("data-checkbox-exclusive")?((t=e.target).form.querySelectorAll('input[type="checkbox"][data-checkbox-exclusive-group="'+t.getAttribute("data-checkbox-exclusive-group")+'"]').forEach((function(e){t.form===e.form&&e!==t&&(e.checked=!1)})),s(t)):function(e){e.form.querySelectorAll('input[type="checkbox"][data-checkbox-exclusive][data-checkbox-exclusive-group="'+e.getAttribute("data-checkbox-exclusive-group")+'"]').forEach((function(t){e.form===t.form&&(t.checked=!1)})),s(e)}(e.target))};"onpageshow"in window?window.addEventListener("pageshow",(function(){return n.forEach((function(e){return s(e)}))})):window.addEventListener("DOMContentLoaded",(function(){return n.forEach((function(e){return s(e)}))})),n.forEach((function(e){return s(e)})),n.forEach((function(e){e.addEventListener("change",o)}))}},277:function(e,t,n){var i=n(848),s=i.generateUniqueID,o=i.toggleAttribute;e.exports=function(e){var t=(void 0===e?{}:e).scope,n=(void 0===t?document:t).querySelectorAll("details");n.forEach((function(e){"HTMLDetailsElement"in window&&e instanceof HTMLDetailsElement||e.hasAttribute("nhsuk-polyfilled")||function(e){e.setAttribute("nhsuk-polyfilled","true");var t=e.querySelector(".nhsuk-details__text");t.id||t.setAttribute("id","details-content-"+s());var n=e.querySelector(".nhsuk-details__summary");n.setAttribute("role","button"),n.setAttribute("aria-controls",t.id),n.setAttribute("tabIndex","0"),!0==(null!==e.getAttribute("open"))?(n.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false")):(n.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true"),t.style.display="none"),n.addEventListener("click",(function(){o(n,"aria-expanded"),o(t,"aria-hidden"),t.style.display="true"===t.getAttribute("aria-hidden")?"none":"",e.hasAttribute("open")?e.removeAttribute("open"):e.setAttribute("open","open")})),n.addEventListener("keydown",(function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),n.click())}))}(e)}))}},673:function(e){function t(e){if("A"!==e.tagName||!1===e.href)return!1;var t=document.querySelector(e.hash);if(!t)return!1;var n=function(e){var t=e.closest("fieldset");if(t){var n=t.getElementsByTagName("legend");if(n.length){var i=n[0];if("checkbox"===e.type||"radio"===e.type)return i;var s=i.getBoundingClientRect().top,o=e.getBoundingClientRect();if(o.height&&window.innerHeight&&o.top+o.height-s<window.innerHeight/2)return i}}return document.querySelector("label[for='"+e.getAttribute("id")+"']")||e.closest("label")}(t);return!!n&&(n.scrollIntoView(),t.focus({preventScroll:!0}),!0)}function n(e){t(e.target)&&e.preventDefault()}e.exports=function(e){var t=void 0===e?{}:e,i=t.focusOnPageLoad,s=void 0===i||i,o=t.scope,a=(void 0===o?document:o).querySelector(".nhsuk-error-summary");a&&(s&&a.focus(),a.addEventListener("click",n))}},649:function(e){var t=function(){function e(e){return e?(this.$module=e,this.navigationList=this.$module.querySelector(".nhsuk-header__navigation-list"),this.navigationItems=this.$module.querySelectorAll(".nhsuk-header__navigation-item"),this.mobileMenuToggleButton=this.$module.querySelector(".nhsuk-header__menu-toggle"),this.mobileMenuContainer=this.$module.querySelector(".nhsuk-mobile-menu-container"),this.navigationList&&this.navigationItems&&this.navigationItems.length&&this.mobileMenuToggleButton&&this.mobileMenuContainer?(this.mobileMenu=document.createElement("ul"),this.menuIsEnabled=!1,this.menuIsOpen=!1,this.handleEscapeKey=this.onEscapeKey.bind(this),this.handleUpdateNavigation=this.debounce(this.updateNavigation),this.handleToggleMobileMenu=this.toggleMobileMenu.bind(this),this.setupNavigation(),void this.updateNavigation()):this):this}var t=e.prototype;return t.debounce=function(e,t){var n,i=this;return void 0===t&&(t=100),function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(i,o)}),t)}},t.resetNavigation=function(){var e=this,t=0;this.breakpoints.forEach((function(n){e.navigationList.insertBefore(n.element,e.mobileMenuContainer),t+=n.element.offsetWidth,n.right=t})),this.width=this.navigationList.offsetWidth},t.setupNavigation=function(){var e=this;this.breakpoints=[],this.navigationItems.forEach((function(t){e.breakpoints.push({element:t,right:0})})),window.addEventListener("resize",this.handleUpdateNavigation)},t.setupMobileMenu=function(){this.mobileMenu.parentElement||(this.mobileMenuContainer.appendChild(this.mobileMenu),this.mobileMenu.classList.add("nhsuk-header__drop-down","nhsuk-header__drop-down--hidden"))},t.enableMobileMenu=function(){this.menuIsEnabled||(this.menuIsEnabled=!0,this.mobileMenuToggleButton.classList.add("nhsuk-header__menu-toggle--visible"),this.mobileMenuContainer.classList.add("nhsuk-mobile-menu-container--visible"),this.mobileMenuToggleButton.addEventListener("click",this.handleToggleMobileMenu))},t.disableMobileMenu=function(){this.menuIsEnabled&&(this.closeMobileMenu(),this.menuIsEnabled=!1,this.mobileMenuToggleButton.classList.remove("nhsuk-header__menu-toggle--visible"),this.mobileMenuContainer.classList.remove("nhsuk-mobile-menu-container--visible"),this.mobileMenuToggleButton.removeEventListener("click",this.handleToggleMobileMenu))},t.closeMobileMenu=function(){this.menuIsEnabled&&this.menuIsOpen&&(this.menuIsOpen=!1,this.mobileMenu.classList.add("nhsuk-header__drop-down--hidden"),this.$module.style.marginBottom=0,this.mobileMenuToggleButton.setAttribute("aria-expanded","false"),document.removeEventListener("keydown",this.handleEscapeKey))},t.onEscapeKey=function(e){"Escape"===e.key&&this.closeMobileMenu()},t.openMobileMenu=function(){if(this.menuIsEnabled&&!this.menuIsOpen){this.menuIsOpen=!0,this.mobileMenu.classList.remove("nhsuk-header__drop-down--hidden");var e=this.mobileMenu.offsetHeight;this.$module.style.marginBottom=e+"px",this.mobileMenuToggleButton.setAttribute("aria-expanded","true"),document.addEventListener("keydown",this.handleEscapeKey)}},t.toggleMobileMenu=function(){this.menuIsEnabled&&(this.menuIsOpen?this.closeMobileMenu():this.openMobileMenu())},t.updateNavigation=function(){var e=this;this.resetNavigation(),this.breakpoints.filter((function(t){return t.right>e.width})).length?(this.setupMobileMenu(),this.enableMobileMenu(),this.width-=this.mobileMenuContainer.offsetWidth,this.breakpoints.forEach((function(t){t.right>e.width&&e.mobileMenu.insertAdjacentElement("beforeend",t.element)}))):this.disableMobileMenu()},e}();e.exports=function(e){void 0===e&&(e={});var n=(e.scope||document).querySelector(".nhsuk-navigation");new t(n)}},551:function(e,t,n){var i=n(848).toggleConditionalInput;e.exports=function(e){var t=(void 0===e?{}:e).scope,n=(void 0===t?document:t).querySelectorAll(".nhsuk-radios--conditional .nhsuk-radios__input"),s=function(){n.forEach((function(e){return i(e,"nhsuk-radios__conditional--hidden")}))};"onpageshow"in window?window.addEventListener("pageshow",s):window.addEventListener("DOMContentLoaded",s),s(),n.forEach((function(e){e.addEventListener("change",s)}))}},829:function(e,t,n){var i=n(848).setFocus;e.exports=function(e){void 0===e&&(e={});var t=(e.scope||document).querySelector(".nhsuk-skip-link");if(t&&t instanceof HTMLAnchorElement){var n=t.hash.split("#").pop(),s=n?document.getElementById(n):null;s&&t.addEventListener("click",(function(){return i(s,{onBeforeFocus:function(){s.classList.add("nhsuk-skip-link-focused-element")},onBlur:function(){s.classList.remove("nhsuk-skip-link-focused-element")}})}))}}},303:function(e){var t=function(){function e(e){this.$module=e,this.$tabs=e.querySelectorAll(".nhsuk-tabs__tab"),this.keys={down:40,left:37,right:39,up:38},this.jsHiddenClass="nhsuk-tabs__panel--hidden",this.showEvent=new CustomEvent("tab.show"),this.hideEvent=new CustomEvent("tab.hide"),"function"==typeof window.matchMedia?this.setupResponsiveChecks():this.setup()}var t=e.prototype;return t.setupResponsiveChecks=function(){this.mql=window.matchMedia("(min-width: 641px)"),"addEventListener"in this.mql?this.mql.addEventListener("change",this.checkMode.bind(this)):this.mql.addListener(this.checkMode.bind(this)),this.checkMode()},t.checkMode=function(){this.mql.matches?this.setup():this.teardown()},t.setup=function(){var e=this,t=this.$module,n=this.$tabs,i=t.querySelector(".nhsuk-tabs__list"),s=t.querySelectorAll(".nhsuk-tabs__list-item");if(n&&i&&s){i.setAttribute("role","tablist"),s.forEach((function(e){e.setAttribute("role","presentation")})),n.forEach((function(t){e.setAttributes(t),t.boundTabClick=e.onTabClick.bind(e),t.boundTabKeydown=e.onTabKeydown.bind(e),t.addEventListener("click",t.boundTabClick,!0),t.addEventListener("keydown",t.boundTabKeydown,!0),e.hideTab(t)}));var o=this.getTab(window.location.hash)||this.$tabs[0];this.showTab(o),t.boundOnHashChange=this.onHashChange.bind(this),window.addEventListener("hashchange",t.boundOnHashChange,!0)}},t.teardown=function(){var e=this,t=this.$module,n=this.$tabs,i=t.querySelector(".nhsuk-tabs__list"),s=t.querySelectorAll(".nhsuk-tabs__list-item");n&&i&&s&&(i.removeAttribute("role"),s.forEach((function(e){e.removeAttribute("role","presentation")})),n.forEach((function(t){t.removeEventListener("click",t.boundTabClick,!0),t.removeEventListener("keydown",t.boundTabKeydown,!0),e.unsetAttributes(t)})),window.removeEventListener("hashchange",t.boundOnHashChange,!0))},t.onHashChange=function(){var e=window.location.hash,t=this.getTab(e);if(t)if(this.changingHash)this.changingHash=!1;else{var n=this.getCurrentTab();this.hideTab(n),this.showTab(t),t.focus()}},t.hideTab=function(e){this.unhighlightTab(e),this.hidePanel(e)},t.showTab=function(e){this.highlightTab(e),this.showPanel(e)},t.getTab=function(e){return this.$module.querySelector('.nhsuk-tabs__tab[href="'+e+'"]')},t.setAttributes=function(t){var n=e.getHref(t).slice(1);t.setAttribute("id","tab_"+n),t.setAttribute("role","tab"),t.setAttribute("aria-controls",n),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1");var i=this.getPanel(t);i.setAttribute("role","tabpanel"),i.setAttribute("aria-labelledby",t.id),i.classList.add(this.jsHiddenClass)},t.unsetAttributes=function(e){e.removeAttribute("id"),e.removeAttribute("role"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-selected"),e.removeAttribute("tabindex");var t=this.getPanel(e);t.removeAttribute("role"),t.removeAttribute("aria-labelledby"),t.removeAttribute("tabindex"),t.classList.remove(this.jsHiddenClass)},t.onTabClick=function(e){e.target.classList.contains("nhsuk-tabs__tab")||(e.stopPropagation(),e.preventDefault()),e.preventDefault();var t=e.target,n=this.getCurrentTab();this.hideTab(n),this.showTab(t),this.createHistoryEntry(t)},t.createHistoryEntry=function(t){var n=this.getPanel(t),i=n.id;n.id="",this.changingHash=!0,window.location.hash=e.getHref(t).slice(1),n.id=i},t.onTabKeydown=function(e){switch(e.keyCode){case this.keys.left:case this.keys.up:this.activatePreviousTab(),e.preventDefault();break;case this.keys.right:case this.keys.down:this.activateNextTab(),e.preventDefault()}},t.activateNextTab=function(){var e,t=this.getCurrentTab(),n=t.parentNode.nextElementSibling;n&&(e=n.querySelector(".nhsuk-tabs__tab")),e&&(this.hideTab(t),this.showTab(e),e.focus(),this.createHistoryEntry(e))},t.activatePreviousTab=function(){var e,t=this.getCurrentTab(),n=t.parentNode.previousElementSibling;n&&(e=n.querySelector(".nhsuk-tabs__tab")),e&&(this.hideTab(t),this.showTab(e),e.focus(),this.createHistoryEntry(e))},t.getPanel=function(t){return this.$module.querySelector(e.getHref(t))},t.showPanel=function(e){var t=this.getPanel(e);t.classList.remove(this.jsHiddenClass),t.dispatchEvent(this.showEvent)},t.hidePanel=function(e){var t=this.getPanel(e);t.classList.add(this.jsHiddenClass),t.dispatchEvent(this.hideEvent)},t.unhighlightTab=function(e){e.setAttribute("aria-selected","false"),e.parentNode.classList.remove("nhsuk-tabs__list-item--selected"),e.setAttribute("tabindex","-1")},t.highlightTab=function(e){e.setAttribute("aria-selected","true"),e.parentNode.classList.add("nhsuk-tabs__list-item--selected"),e.setAttribute("tabindex","0")},t.getCurrentTab=function(){return this.$module.querySelector(".nhsuk-tabs__list-item--selected .nhsuk-tabs__tab")},e.getHref=function(e){var t=e.getAttribute("href");return t.slice(t.indexOf("#"),t.length)},e}();e.exports=function(e){var n=(void 0===e?{}:e).scope;(void 0===n?document:n).querySelectorAll('[data-module="nhsuk-tabs"]').forEach((function(e){new t(e)}))}},849:function(e,t,n){var i=n(807),s=n(997),o=n(305),a=n(277),r=n(673),u=n(649),h=n(551),d=n(829),l=n(303);n(621),e.exports={initButton:i,initCharacterCount:s,initCheckboxes:o,initDetails:a,initErrorSummary:r,initHeader:u,initRadios:h,initSkipLink:d,initTabs:l,initAll:function(e){u({scope:e}),d({scope:e}),i({scope:e}),s({scope:e}),o({scope:e}),a({scope:e}),r({scope:e}),h({scope:e}),l({scope:e})}}},621:function(){NodeList.prototype.forEach||(NodeList.prototype.forEach=Array.prototype.forEach),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{enumerable:!1,value:function(e){return this.filter((function(t){return t===e})).length>0}}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n})}},t={};var n=function n(i){var s=t[i];if(void 0!==s)return s.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(849),i=n.initAll;document.addEventListener("DOMContentLoaded",(function(){return i(document)}))}();//# sourceMappingURL=nhsuk.min.js.map