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
@@ -74,12 +74,12 @@ module DesignSystemHelper
74
74
  will_paginate(collection, defaults.merge!(options))
75
75
  end
76
76
 
77
- def ds_alert(message)
78
- DesignSystem::Registry.builder(brand, 'notification', self).render_alert(message)
77
+ def ds_alert(message = nil, &)
78
+ DesignSystem::Registry.builder(brand, 'notification', self).render_alert(message, &)
79
79
  end
80
80
 
81
- def ds_notice(message)
82
- DesignSystem::Registry.builder(brand, 'notification', self).render_notice(message)
81
+ def ds_notice(message = nil, &)
82
+ DesignSystem::Registry.builder(brand, 'notification', self).render_notice(message, &)
83
83
  end
84
84
 
85
85
  def ds_heading(text, level: 2, **options)
@@ -114,4 +114,8 @@ module DesignSystemHelper
114
114
 
115
115
  DesignSystem::Registry.builder(brand, 'details', self).render_details(summary_text, &)
116
116
  end
117
+
118
+ def ds_action_link(name = nil, options = nil, html_options = nil)
119
+ DesignSystem::Registry.builder(brand, 'action_link', self).render_action_link(name, options, html_options)
120
+ end
117
121
  end
@@ -118,6 +118,7 @@
118
118
  </header>
119
119
  <div class="govuk-width-container">
120
120
  <%= yield :breadcrumbs %>
121
+ <%= yield :backlink %>
121
122
  <main class="govuk-main-wrapper" id="main-content">
122
123
  <%= render :partial => 'layouts/alert_and_notice' %>
123
124
  <%= yield %>
@@ -2,8 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
7
6
 
8
7
  <link rel="preload" as="font" href="https://assets.nhs.uk/fonts/FrutigerLTW01-55Roman.woff2" type="font/woff2" crossorigin>
9
8
  <link rel="preload" as="font" href="https://assets.nhs.uk/fonts/FrutigerLTW01-65Bold.woff2" type="font/woff2" crossorigin>
@@ -12,36 +11,29 @@
12
11
 
13
12
  <%= stylesheet_link_tag 'nhsuk', 'data-turbo-track': 'reload' %>
14
13
 
15
- <script src="/design_system/static/nhsuk-frontend-9.6.4/nhsuk.min.js" defer></script>
16
-
17
- <link rel="shortcut icon" href="/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.ico" type="image/x-icon">
18
- <link rel="apple-touch-icon" href="/design_system/static/nhsuk-frontend-9.6.4/favicons/apple-touch-icon-180x180.png">
19
- <link rel="mask-icon" href="/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.svg" color="#005eb8">
20
- <link rel="icon" sizes="192x192" href="/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon-192x192.png">
21
- <meta name="msapplication-TileImage" content="/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-144x144.png">
22
- <meta name="msapplication-TileColor" content="#005eb8">
23
- <meta name="msapplication-square70x70logo" content="/design_system/static/nhsuk-frontend-9.6.4/favicons/smalltile-70x70.png">
24
- <meta name="msapplication-square150x150logo" content="/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-150x150.png">
25
- <meta name="msapplication-wide310x150logo" content="/design_system/static/nhsuk-frontend-9.6.4/favicons/widetile-310x150.png">
26
- <meta name="msapplication-square310x310logo" content="/design_system/static/nhsuk-frontend-9.6.4/favicons/largetile-310x310.png">
14
+ <link rel="icon" href="/design_system/static/nhsuk-frontend-10.3.1/images/favicon.ico" sizes="48x48">
15
+ <link rel="icon" href="/design_system/static/nhsuk-frontend-10.3.1/images/favicon.svg" sizes="any" type="image/svg+xml">
16
+ <link rel="mask-icon" href="/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-mask.svg" color="#005eb8">
17
+ <link rel="apple-touch-icon" href="/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-180.png">
18
+ <link rel="manifest" href="/design_system/static/nhsuk-frontend-10.3.1/manifest.json">
27
19
 
28
20
  <%= yield :head %>
29
21
  </head>
30
22
  <body class="" data-ds-brand="<%= brand %>" data-ds-layout="<%= @design_system_layout %>">
31
23
  <%= javascript_tag nonce: true do %>
32
- document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
24
+ document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' nhsuk-frontend-supported' : '');
33
25
  <% end %>
34
26
 
35
27
  <a class="nhsuk-skip-link" href="#maincontent">Skip to main content</a>
36
28
 
37
- <header class="nhsuk-header" role="banner">
38
-
39
- <div class="nhsuk-header__container">
40
- <div class="nhsuk-header__logo"><a class="nhsuk-header__link nhsuk-header__link--service" href="/" aria-label="NHS homepage">
29
+ <header class="nhsuk-header" role="banner" data-module="nhsuk-header">
41
30
 
42
- <svg class="nhsuk-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 16" height="40" width="100">
43
- <path class="nhsuk-logo__background" fill="#005eb8" d="M0 0h40v16H0z"></path>
44
- <path class="nhsuk-logo__text" 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>
31
+ <div class="nhsuk-header__container nhsuk-width-container">
32
+ <div class="nhsuk-header__service">
33
+ <a class="nhsuk-header__service-logo nhsuk-header__link--service" href="/" aria-label="NHS homepage">
34
+ <svg class="nhsuk-header__logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 80" height="40" width="100" focusable="false" role="img" aria-label="NHS">
35
+ <title>NHS</title>
36
+ <path fill="currentcolor" d="M200 0v80H0V0h200Zm-27.5 5.5c-14.5 0-29 5-29 22 0 10.2 7.7 13.5 14.7 16.3l.7.3c5.4 2 10.1 3.9 10.1 8.4 0 6.5-8.5 7.5-14 7.5s-12.5-1.5-16-3.5L135 70c5.5 2 13.5 3.5 20 3.5 15.5 0 32-4.5 32-22.5 0-19.5-25.5-16.5-25.5-25.5 0-5.5 5.5-6.5 12.5-6.5a35 35 0 0 1 14.5 3l4-13.5c-4.5-2-12-3-20-3Zm-131 2h-22l-14 65H22l9-45h.5l13.5 45h21.5l14-65H64l-9 45h-.5l-13-45Zm63 0h-18l-13 65h17l6-28H117l-5.5 28H129l13.5-65H125L119.5 32h-20l5-24.5Z" />
45
37
  </svg>
46
38
  <span class="nhsuk-header__service-name">
47
39
  <%= @service_name %>
@@ -49,31 +41,31 @@
49
41
  </a>
50
42
  </div>
51
43
  <% if @searchbar_url %>
52
- <div class="nhsuk-header__content" id="content-header">
53
- <div class="nhsuk-header__search">
54
- <div class="nhsuk-header__search-wrap" id="wrap-search">
55
- <form class="nhsuk-header__search-form" id="search" action="<%= @searchbar_url %>" method="get" role="search">
56
- <label class="nhsuk-u-visually-hidden" for="search-field">Search the NHS website</label>
57
- <input class="nhsuk-search__input" id="search-field" name="search-field" type="search" placeholder="Search" autocomplete="off">
58
- <button class="nhsuk-search__submit" type="submit">
59
- <svg class="nhsuk-icon nhsuk-icon__search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
60
- <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>
44
+ <search class="nhsuk-header__search">
45
+ <form class="nhsuk-header__search-form" id="search" action="<%= @searchbar_url %>" method="get" role="search" novalidate>
46
+ <div class="nhsuk-form-group">
47
+ <label class="nhsuk-label nhsuk-u-visually-hidden" for="search-field">Search the NHS website</label>
48
+ <div class="nhsuk-input-wrapper">
49
+ <input class="nhsuk-input" id="search-field" name="search-field" type="search" placeholder="Search" autocomplete="off">
50
+ <button class="nhsuk-button nhsuk-button--small" data-module="nhsuk-button" type="submit">
51
+ <svg class="nhsuk-icon nhsuk-icon--search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" focusable="false" role="img" aria-label="Search">
52
+ <title>Search</title>
53
+ <path d="m20.7 19.3-4.1-4.1a7 7 0 1 0-1.4 1.4l4 4.1a1 1 0 0 0 1.5 0c.4-.4.4-1 0-1.4ZM6 11a5 5 0 1 1 10 0 5 5 0 0 1-10 0Z" />
61
54
  </svg>
62
- <span class="nhsuk-u-visually-hidden">Search</span>
63
55
  </button>
64
- </form>
56
+ </div>
65
57
  </div>
66
- </div>
67
- </div>
58
+ </form>
59
+ </search>
68
60
  <% end %>
69
61
  </div>
70
62
 
71
63
  <%= render partial: 'nhsuk/navigation' %>
72
64
  </header>
73
65
 
74
- <%= yield :breadcrumbs %>
75
-
76
66
  <div class="nhsuk-width-container ">
67
+ <%= yield :breadcrumbs %>
68
+ <%= yield :backlink %>
77
69
 
78
70
  <main class="nhsuk-main-wrapper " id="maincontent" role="main">
79
71
  <%= render :partial => 'layouts/alert_and_notice' %>
@@ -86,34 +78,35 @@
86
78
  </main>
87
79
  </div>
88
80
 
89
- <footer role="contentinfo">
90
- <div class="nhsuk-footer-container">
91
- <div class="nhsuk-width-container">
81
+ <footer class="nhsuk-footer" role="contentinfo">
82
+ <div class="nhsuk-width-container">
83
+ <div class="nhsuk-footer__meta">
92
84
  <h2 class="nhsuk-u-visually-hidden">Support links</h2>
93
- <div class="nhsuk-footer">
94
- <ul class="nhsuk-footer__list">
95
- <% if controller.footer_links.present? %>
96
- <% controller.footer_links.each do |link| %>
97
- <li class="nhsuk-footer__list-item">
98
- <%= link_to link[:name],
99
- link[:href],
100
- { class: "nhsuk-footer__list-item-link" }.merge(link[:options] || {}) %>
101
- </li>
102
- <% end %>
85
+ <ul class="nhsuk-footer__list">
86
+ <% if controller.footer_links.present? %>
87
+ <% controller.footer_links.each do |link| %>
88
+ <li class="nhsuk-footer__list-item">
89
+ <%= link_to link[:name],
90
+ link[:href],
91
+ { class: "nhsuk-footer__list-item-link" }.merge(link[:options] || {}) %>
92
+ </li>
103
93
  <% end %>
104
- </ul>
105
- <div>
106
- <p class="nhsuk-footer__copyright">
107
- <% if controller.copyright_notice.present? %>
108
- <%= controller.copyright_notice %>
109
- <% end %>
110
- </p>
111
- </div>
112
- </div>
94
+ <% end %>
95
+ </ul>
96
+ <p class="nhsuk-body-s">
97
+ <% if controller.copyright_notice.present? %>
98
+ <%= controller.copyright_notice %>
99
+ <% end %>
100
+ </p>
113
101
  </div>
114
102
  </div>
115
103
  </footer>
116
104
 
105
+ <script type="module" src="/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js"></script>
106
+ <script type="module">
107
+ import { initAll } from '/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js'
108
+ initAll()
109
+ </script>
117
110
  </body>
118
111
 
119
112
  </html>
@@ -1,22 +1,18 @@
1
1
  <% if controller.navigation_items.present? %>
2
- <div class="nhsuk-navigation-container">
3
- <nav class="nhsuk-navigation" id="header-navigation" role="navigation" aria-label="Primary navigation">
2
+ <nav class="nhsuk-header__navigation" aria-label="Menu">
3
+ <div class="nhsuk-header__navigation-container nhsuk-width-container">
4
4
  <ul class="nhsuk-header__navigation-list">
5
5
  <% controller.navigation_items.each do |item| %>
6
6
  <li class="nhsuk-header__navigation-item">
7
7
  <%= link_to(item[:label], item[:path], item[:options].merge(class: 'nhsuk-header__navigation-link')) %>
8
8
  </li>
9
9
  <% end %>
10
- <li class="nhsuk-mobile-menu-container">
11
- <button class="nhsuk-header__menu-toggle nhsuk-header__navigation-link" id="toggle-menu" aria-expanded="false">
12
- <span class="nhsuk-u-visually-hidden">Browse</span>
13
- More
14
- <svg class="nhsuk-icon nhsuk-icon__chevron-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
15
- <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>
16
- </svg>
17
- </button>
18
- </li>
10
+ <li class="nhsuk-header__menu" hidden>
11
+ <button class="nhsuk-header__menu-toggle nhsuk-header__navigation-link" id="toggle-menu" aria-expanded="false">
12
+ <span class="nhsuk-u-visually-hidden">Browse</span>More
13
+ </button>
14
+ </li>
19
15
  </ul>
20
- </nav>
21
- </div>
16
+ </div>
17
+ </nav>
22
18
  <% end %>
@@ -16,7 +16,7 @@ module DesignSystem
16
16
  urls: [
17
17
  "/design_system/static/design_system-#{DesignSystem::VERSION}",
18
18
  '/design_system/static/govuk-frontend-5.11.1',
19
- '/design_system/static/nhsuk-frontend-9.6.4',
19
+ '/design_system/static/nhsuk-frontend-10.3.1',
20
20
  '/design_system/static/stimulus-3.2.2',
21
21
  '/design_system/static/tailwind-4.1.6'
22
22
  ],
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DesignSystem
4
+ module Generic
5
+ module Builders
6
+ # This class provides generic methods to display action links, which should be used to signpost the start of a digital service.
7
+ class ActionLink < Base
8
+ def render_action_link(name = nil, options = nil, html_options = nil)
9
+ options ||= {}
10
+ html_options ||= {}
11
+
12
+ prep_style(name, options, html_options)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DesignSystem
4
+ module Generic
5
+ module Builders
6
+ module Elements
7
+ # This mixin module is used to provide back link.
8
+ module Backlink
9
+ def backlink(label, path)
10
+ @backlink = true
11
+ @label = label || 'Back'
12
+ @path = path
13
+ end
14
+
15
+ private
16
+
17
+ def content_for_backlink
18
+ content_for(:backlink) do
19
+ render_backlink
20
+ end
21
+ end
22
+
23
+ def render_backlink
24
+ link_to(@label, @path, class: "#{brand}-back-link")
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -5,12 +5,16 @@ module DesignSystem
5
5
  module Builders
6
6
  # This class is used to provide the generic fixed elements builder.
7
7
  class FixedElements < Base
8
+ include Elements::Backlink
8
9
  include Elements::Breadcrumbs
9
10
  include Elements::Form
10
11
  include Elements::Headings
11
12
 
12
13
  def render
14
+ raise ArgumentError, 'Cannot use both backlink and breadcrumbs' if @backlink && @breadcrumbs.present?
15
+
13
16
  content_for_breadcrumbs if @breadcrumbs.present?
17
+ content_for_backlink if @backlink.present?
14
18
 
15
19
  render_main_container do
16
20
  safe_buffer = ActiveSupport::SafeBuffer.new
@@ -25,6 +25,15 @@ module DesignSystem
25
25
  def prep_link_classes(type)
26
26
  if type && button_type_class_hash[type].present?
27
27
  button_type_class_hash[type]
28
+ else
29
+ link_class
30
+ end
31
+ end
32
+
33
+ def link_class
34
+ case @context.instance_variable_get(:@link_context)
35
+ when :notification_banner
36
+ "#{brand}-notification-banner__link"
28
37
  else
29
38
  "#{brand}-link"
30
39
  end
@@ -7,19 +7,23 @@ module DesignSystem
7
7
  class Notification < Base
8
8
  include ActionView::Helpers::SanitizeHelper
9
9
 
10
- def render_alert(msg)
10
+ def render_alert(msg = nil, &)
11
+ content_to_display = block_given? ? capture(&) : msg
11
12
  content_tag(:div, class: "#{brand}-error-summary", 'aria-labelledby': 'error-summary-title', role: 'alert',
12
13
  tabindex: '-1') do
13
- content_tag(:h2, sanitize(msg, tags: %w[b p br a], attributes: %w[href target]),
14
+ content_tag(:h2, content_to_display,
14
15
  class: "#{brand}-error-summary__title", id: 'error-summary-title')
15
16
  end
16
17
  end
17
18
 
18
- def render_notice(msg)
19
+ def render_notice(msg = nil, &)
20
+ @context.instance_variable_set(:@link_context, :notification_banner)
21
+
22
+ content_to_display = block_given? ? capture(&) : msg
19
23
  content_tag(:div, class: "#{brand}-notification-banner", role: 'region',
20
24
  'aria-labelledby': "#{brand}-notification-banner-title",
21
25
  'data-module': "#{brand}-notification-banner") do
22
- banner_tile + banner_content(msg)
26
+ banner_tile + banner_content(content_to_display)
23
27
  end
24
28
  end
25
29
 
@@ -32,9 +36,9 @@ module DesignSystem
32
36
  end
33
37
  end
34
38
 
35
- def banner_content(msg)
39
+ def banner_content(content)
36
40
  content_tag(:div, class: "#{brand}-notification-banner__content") do
37
- content_tag(:p, sanitize(msg, tags: %w[b p br a], attributes: %w[href targ]),
41
+ content_tag(:p, content,
38
42
  class: "#{brand}-notification-banner__heading")
39
43
  end
40
44
  end
@@ -60,11 +60,8 @@ module DesignSystem
60
60
  # SVG for the "Previous" icon
61
61
  def previous_icon
62
62
  %(
63
- <svg class="#{brand}-icon nhsuk-icon__arrow-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
64
- aria-hidden="true" width="34" height="34">
65
- <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
66
- 1-1s-.4-1-1-1h-11V9c0-.2-.1-.4-.3-.5h-.2c-.1 0-.3.1-.4.2l-2.7
67
- 3c0 .2 0 .4.1.6z"></path>
63
+ <svg class="#{brand}-icon nhsuk-icon--arrow-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" focusable="false" aria-hidden="true">
64
+ <path d="M10.7 6.3c.4.4.4 1 0 1.4L7.4 11H19a1 1 0 0 1 0 2H7.4l3.3 3.3c.4.4.4 1 0 1.4a1 1 0 0 1-1.4 0l-5-5A1 1 0 0 1 4 12c0-.3.1-.5.3-.7l5-5a1 1 0 0 1 1.4 0Z"/>
68
65
  </svg>
69
66
  )
70
67
  end
@@ -72,10 +69,8 @@ module DesignSystem
72
69
  # SVG for the "Next" icon
73
70
  def next_icon
74
71
  %(
75
- <svg class="#{brand}-icon nhsuk-icon__arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
76
- aria-hidden="true" width="34" height="34">
77
- <path d="M19.9 11.7l-2.7-3c-.2-.2-.5-.2-.7 0-.1.1-.1.2-.1.3v2H5c-.6 0-1 .4-1 1s.4 1 1 1h11v2c0
78
- .2.1.4.3.5h.2c.1 0 .3-.1.4-.2l2.7-3c0-.2 0-.4-.1-.6z"></path>
72
+ <svg class="#{brand}-icon nhsuk-icon--arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" focusable="false" aria-hidden="true">
73
+ <path d="m14.7 6.3 5 5c.2.2.3.4.3.7 0 .3-.1.5-.3.7l-5 5a1 1 0 0 1-1.4-1.4l3.3-3.3H5a1 1 0 0 1 0-2h11.6l-3.3-3.3a1 1 0 1 1 1.4-1.4Z"/>
79
74
  </svg>
80
75
  )
81
76
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DesignSystem
4
+ module Govuk
5
+ module Builders
6
+ # This class provides GOVUK Action Link. GOVUK doesn't have a specific action link component, so we use the button styled link component.
7
+ class ActionLink < ::DesignSystem::Generic::Builders::ActionLink
8
+ private
9
+
10
+ def prep_style(name, options, html_options)
11
+ html_options[:class] = "#{brand}-button"
12
+ link_to(name, options, html_options)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -405,14 +405,18 @@ module DesignSystem
405
405
  # If translation returns the humanized version of the value,
406
406
  # it means no translation was found, so return the original value
407
407
  # Extra condition: if value contains dots and translation is only the last part
408
- if translation == value.to_s.humanize ||
409
- (value.to_s.include?('.') && translation == value.to_s.split('.').last.humanize)
408
+ if translation == value.to_s.humanize || value_contains_dots?(value, translation)
410
409
  value.to_s
411
410
  else
412
411
  translation
413
412
  end
414
413
  end
415
414
 
415
+ def value_contains_dots?(value, translation)
416
+ (value.to_s.include?('.') && translation == value.to_s.split('.').last.humanize) ||
417
+ (value.to_s.ends_with?('.') && translation.blank?)
418
+ end
419
+
416
420
  # GOVUKDesignSystemFormBuilder::Base field_id method
417
421
  def govuk_field_id(method, link_errors: false)
418
422
  GOVUKDesignSystemFormBuilder::Base.new(self, object_name, method).field_id(link_errors:)
@@ -137,6 +137,20 @@ module DesignSystem
137
137
  end
138
138
  end
139
139
 
140
+ test 'ds_check_box item ending with dot in value is not incorrectly translated' do
141
+ value_ending_with_dot = 'Made up dummy values with a full stop.'
142
+ @output_buffer = ds_form_with(model: DummyModel.new, builder: @builder, url: '/') do |f|
143
+ f.ds_check_box(:role, {}, value_ending_with_dot)
144
+ end
145
+
146
+ assert_select('form') do
147
+ assert_select("div.#{@brand}-checkboxes__item") do
148
+ label = assert_select("label.#{@brand}-label.#{@brand}-checkboxes__label").first
149
+ assert_equal value_ending_with_dot, label.text.strip
150
+ end
151
+ end
152
+ end
153
+
140
154
  test 'ds_collection_select' do
141
155
  @output_buffer = ds_form_with(model: assistants(:one), builder: @builder) do |f|
142
156
  f.ds_collection_select(:department_id, Department.all, :id, :title)
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DesignSystem
4
+ module Nhsuk
5
+ module Builders
6
+ # This class provides NHSUK Action Link.
7
+ class ActionLink < ::DesignSystem::Generic::Builders::ActionLink
8
+ private
9
+
10
+ def prep_style(name, options, html_options)
11
+ html_options[:class] = "#{brand}-action-link"
12
+
13
+ link_to(options, html_options) do
14
+ arrow_right_circle_icon +
15
+ content_tag(:span, name, class: "#{brand}-action-link__text")
16
+ end
17
+ end
18
+
19
+ def arrow_right_circle_icon
20
+ %(
21
+ <svg class="nhsuk-icon nhsuk-icon__arrow-right-circle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="36" height="36">
22
+ <path d="M0 0h24v24H0z" fill="none"></path>
23
+ <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>
24
+ </svg>
25
+ ).html_safe
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -9,31 +9,27 @@ module DesignSystem
9
9
  def content_for_breadcrumbs
10
10
  content_for(:breadcrumbs) do
11
11
  content_tag(:nav, 'aria-label': 'Breadcrumb', class: "#{brand}-breadcrumb") do
12
- content_tag(:div, class: "#{brand}-width-container") do
13
- content_tag(:ol, class: "#{brand}-breadcrumb__list") do
14
- @breadcrumbs.each_with_object(ActiveSupport::SafeBuffer.new) do |breadcrumb, safe_buffer|
15
- safe_buffer.concat(render_breadcrumb(breadcrumb))
16
- end
17
- end +
18
- content_for_back_link
19
- end
12
+ content_tag(:ol, class: "#{brand}-breadcrumb__list") do
13
+ @breadcrumbs.each_with_object(ActiveSupport::SafeBuffer.new) do |breadcrumb, safe_buffer|
14
+ safe_buffer.concat(render_breadcrumb(breadcrumb))
15
+ end
16
+ end +
17
+ content_for_back_link
20
18
  end
21
19
  end
22
20
  end
23
21
 
24
22
  def content_for_back_link
25
- content_tag(:p, class: "#{brand}-breadcrumb__back") do
26
- link_to(@breadcrumbs.last[:path],
27
- class: "#{brand}-breadcrumb__backlink",
28
- 'aria-current': @context.current_page?(@breadcrumbs.last[:path]) ? 'page' : nil) do
29
- content_tag(:span, 'Back to &nbsp;'.html_safe, class: "#{brand}-u-visually-hidden") +
30
- @breadcrumbs.last[:label]
31
- end
23
+ link_to(@breadcrumbs.last[:path],
24
+ class: "#{brand}-back-link",
25
+ 'aria-current': @context.current_page?(@breadcrumbs.last[:path]) ? 'page' : nil) do
26
+ content_tag(:span, 'Back to &nbsp;'.html_safe, class: "#{brand}-u-visually-hidden") +
27
+ @breadcrumbs.last[:label]
32
28
  end
33
29
  end
34
30
 
35
31
  def render_breadcrumb(breadcrumb)
36
- content_tag(:li, class: "#{brand}-breadcrumb__item") do
32
+ content_tag(:li, class: "#{brand}-breadcrumb__list-item") do
37
33
  link_to(breadcrumb[:label],
38
34
  breadcrumb[:path],
39
35
  class: "#{brand}-breadcrumb__link",
@@ -5,12 +5,6 @@ module DesignSystem
5
5
  module Builders
6
6
  # This class provides Nhsuk notifications html.
7
7
  class Notification < ::DesignSystem::Govuk::Builders::Notification
8
- def render_notice(msg)
9
- content = content_tag(:p, sanitize(msg, tags: %w[b p br a], attributes: %w[href target]))
10
- content_tag(:div, class: "#{brand}-inset-text") do
11
- content_tag(:span, 'Information:', class: "#{brand}-u-visually-hidden") + content
12
- end
13
- end
14
8
  end
15
9
  end
16
10
  end
@@ -1,3 +1,3 @@
1
1
  module DesignSystem
2
- VERSION = '0.10.0'.freeze
2
+ VERSION = '0.12.0'.freeze
3
3
  end
data/lib/tasks/nhsuk.rake CHANGED
@@ -39,7 +39,7 @@ module NhsukHelpers
39
39
  end
40
40
 
41
41
  def self.copy_scss_files(temp_dir, version, brand)
42
- base_path = "#{temp_dir}/node_modules/#{brand}-frontend/packages"
42
+ base_path = "#{temp_dir}/node_modules/#{brand}-frontend/dist/#{brand}"
43
43
  target_base = "#{STYLESHEET_PATH}/#{versioned_dir(version, brand)}"
44
44
 
45
45
  # Copy SCSS files from directories
@@ -53,24 +53,29 @@ module NhsukHelpers
53
53
  end
54
54
 
55
55
  # Copy root SCSS files
56
+ FileUtils.cp("#{base_path}/index.scss", "#{target_base}/index.scss")
56
57
  FileUtils.cp("#{base_path}/#{brand}.scss", "#{target_base}/#{brand}.scss")
57
58
  end
58
59
 
59
60
  def self.copy_assets_files(temp_dir, version, brand)
60
61
  FileUtils.cp_r(
61
- "#{temp_dir}/node_modules/#{brand}-frontend/packages/assets/.",
62
+ "#{temp_dir}/node_modules/#{brand}-frontend/dist/#{brand}/assets/.",
62
63
  "#{ASSETS_PATH}/#{versioned_dir(version, brand)}/"
63
64
  )
64
65
  end
65
66
 
66
67
  def self.copy_js_files(temp_dir, version, brand)
67
68
  FileUtils.cp(
68
- "#{temp_dir}/node_modules/#{brand}-frontend/packages/#{brand}.js",
69
+ "#{temp_dir}/node_modules/#{brand}-frontend/dist/#{brand}/#{brand}.js",
69
70
  "#{ASSETS_PATH}/#{versioned_dir(version, brand)}/#{brand}.js"
70
71
  )
71
72
  FileUtils.cp(
72
- "#{temp_dir}/node_modules/#{brand}-frontend/dist/#{brand}.min.js",
73
- "#{ASSETS_PATH}/#{versioned_dir(version, brand)}/#{brand}.min.js"
73
+ "#{temp_dir}/node_modules/#{brand}-frontend/dist/#{brand}/#{brand}-frontend.min.js",
74
+ "#{ASSETS_PATH}/#{versioned_dir(version, brand)}/#{brand}-frontend.min.js"
75
+ )
76
+ FileUtils.cp(
77
+ "#{temp_dir}/node_modules/#{brand}-frontend/dist/#{brand}/#{brand}-frontend.min.js.map",
78
+ "#{ASSETS_PATH}/#{versioned_dir(version, brand)}/#{brand}-frontend.min.js.map"
74
79
  )
75
80
  end
76
81
  end
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 108 108">
2
+ <path fill="#FFF" d="M4 34h100v40H4z"/>
3
+ <path fill="#005EB8" d="M104 34v40H4V34h100Zm-13.8 2.8c-7.2 0-14.5 2.5-14.5 11 0 5 3.9 6.7 7.4 8.1l.4.1c2.7 1 5 2 5 4.3 0 3.2-4.3 3.7-7 3.7a19 19 0 0 1-8-1.8l-2 6.8c2.8 1 6.8 1.8 10 1.8 7.8 0 16-2.3 16-11.3 0-9.8-12.8-8.3-12.8-12.8 0-2.7 2.8-3.2 6.3-3.2 2.5 0 5 .5 7.3 1.5l2-6.8c-2.3-1-6-1.5-10-1.5Zm-65.5 1h-11l-7 32.5H15l4.5-22.5h.3l6.7 22.5h10.8l7-32.5H36l-4.5 22.5h-.3l-6.4-22.5Zm31.6 0h-9l-6.5 32.5h8.5l3-14h10.2l-2.8 14h8.8l6.8-32.5h-8.8L63.7 50h-10l2.5-12.3Z"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 108 108">
2
+ <path d="M104 34v40H4V34h100Zm-13.8 2.8c-7.2 0-14.5 2.5-14.5 11 0 5 3.9 6.7 7.4 8.1l.4.1c2.7 1 5 2 5 4.3 0 3.2-4.3 3.7-7 3.7a19 19 0 0 1-8-1.8l-2 6.8c2.8 1 6.8 1.8 10 1.8 7.8 0 16-2.3 16-11.3 0-9.8-12.8-8.3-12.8-12.8 0-2.7 2.8-3.2 6.3-3.2 2.5 0 5 .5 7.3 1.5l2-6.8c-2.3-1-6-1.5-10-1.5Zm-65.5 1h-11l-7 32.5H15l4.5-22.5h.3l6.7 22.5h10.8l7-32.5H36l-4.5 22.5h-.3l-6.4-22.5Zm31.6 0h-9l-6.5 32.5h8.5l3-14h10.2l-2.8 14h8.8l6.8-32.5h-8.8L63.7 50h-10l2.5-12.3Z"/>
3
+ </svg>